* i386-tdep.h (i386_supply_gregset): Provide prototype.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-16 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.h (i386_supply_gregset): Provide prototype.
4 * i386-tdep.c (i386_supply_gregset): Make public.
5
6 2003-11-16 Andrew Cagney <cagney@redhat.com>
7
8 * mips-tdep.c (mips_register_byte): Delete function.
9 (mips_gdbarch_init): Do not set "deprecated_register_byte".
10 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
11 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
12 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
13
14 2003-11-16 Mark Kettenis <kettenis@gnu.org>
15
16 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
17
18 2003-11-16 Andrew Cagney <cagney@redhat.com>
19
20 * config/mips/linux64.mt: Delete file.
21 * config/mips/tm-linux64.h: Delete file.
22 * config/mips/tm-mips64.h: Delete file.
23 * config/mips/embed64.mt: Delete file.
24 * config/djgpp/fnchange.lst: Update.
25 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
26 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
27 * config/mips/tm-irix6.h: Update copyright. Include
28 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
29 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
30 "OP_LDGPR".
31
32 2003-11-15 Andrew Cagney <cagney@redhat.com>
33
34 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
35 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
36 n32 registers 64 bit.
37 (mips_register_raw_size, mips_register_byte): For pseudo
38 registers, use the register's pseudo size and not the
39 corresponding raw register's size.
40 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
41 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
42 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
43 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
44
45 2003-11-15 Andrew Cagney <cagney@redhat.com>
46
47 * mips-tdep.c (struct gdbarch_tdep): Delete member
48 gdb_target_is_mips64.
49 (GDB_TARGET_IS_MIPS64): Delete macro.
50 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
51 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
52 (mips_addr_bits_remove): Simplify.
53
54 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
55 register_size.
56
57 Replace MIPS_REGSIZE with mips_regsize.
58 * mips-tdep.c (mips_regsize): New function.
59 * mips-tdep.h (mips_regsize): Declare.
60 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
61 (SIZEOF_STRUCT_REG): Update.
62 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
63 (mipsnbsd_fill_reg): Update.
64 (mipsnbsd_supply_fpreg): Update.
65 (mipsnbsd_fill_fpreg): Update.
66 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
67 * mips-tdep.c (mips_register_raw_size): Update.
68 (mips_register_type): Update.
69 (SIGFRAME_BASE): Update.
70 (SIGFRAME_PC_OFF): Update.
71 (SIGFRAME_REGSAVE_OFF): Update.
72 (SIGFRAME_FPREGSAVE_OFF): Update.
73 (SIGFRAME_REG_SIZE): Update.
74 (mips32_heuristic_proc_desc): Update.
75 (print_gp_register_row): Update.
76 (mips_dump_tdep): Do not print MIPS_REGSIZE.
77 * irix5-nat.c (supply_gregset): Update.
78 (fetch_core_registers): Update.
79 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
80 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
81 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
82 (MIPS_REGISTER_BYTE): Update.
83 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
84
85 2003-11-15 Andrew Cagney <cagney@redhat.com>
86
87 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
88 USE_REGISTER_NOT_ARG.
89 * stabsread.c (define_symbol): Update.
90
91 2003-11-15 Andrew Cagney <cagney@redhat.com>
92
93 * bcache.h (deprecated_bcache): Declare.
94 (bcache): Make returned buffer constant.
95 * bcache.c (deprecated_bcache): New function.
96 (bcache_data): New function.
97 (bcache): Call bcache data.
98 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
99 (add_psymbol_with_dem_name_to_list): Ditto.
100
101 2003-11-15 Mark Kettenis <kettenis@gnu.org>
102
103 * glibc-tdep.h (struct gdbarch): Declare opaque.
104 (glibc_skip_solib_resolver): Adjust prototype.
105 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
106 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
107 (arm_linux_init_abi): Set skip_solib_resolver.
108 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
109 (i386_linux_init_abi): Set skip_solib_resolver.
110 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
111 (arm_linux_skip_solib_resolver): Remove prototype.
112 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
113 (i386_linux_skip_solib_resolver): Remove prototype.
114
115 2003-11-14 Mark Kettenis <kettenis@gnu.org>
116
117 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
118 function.
119 * gdbarch.c, gdbarch.h: Regenerate.
120 * infrun.c (handle_inferior_event): Call
121 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
122 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
123 definition.
124 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
125 prototype.
126
127 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
128
129 * libunwind-frame.c: New file.
130 * libunwind-frame.h: New file.
131 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
132 * configure.in: Add --with-libunwind option support. Define
133 HAVE_LIBUNWIND if libunwind support selected / defaulted.
134 Also check for libunwind.h and libunwind-ia64.h headers.
135 * configure: Regenerated.
136 * Makefile.in: Add support for libunwind-frame.o.
137 * config.in: Regenerated.
138
139 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
140
141 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
142 set up the ia64 linux native target method for getting the kernel
143 unwind table.
144 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
145 * inftarg.c (child_xfer_partial): Enable section of code to
146 handle TARGET_OBJECT_UNWIND_TABLE.
147 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
148
149 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
150
151 * config/arm/nbsd.mt (TM_FILE): Define.
152 * config/arm/tm-nbsd.h: New file.
153
154 2003-11-14 Andrew Cagney <cagney@redhat.com>
155
156 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
157 * ppc-sysv-tdep.c: Include "objfiles.h".
158 (ppc64_sysv_abi_push_dummy_call): Provide the
159 the FN's objfile when looking for the descriptor.
160
161 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
162 "name_of_malloc" to ".malloc".
163
164 2003-11-13 Mark Kettenis <kettenis@gnu.org>
165
166 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
167
168 2003-11-13 David Carlton <carlton@kealia.com>
169
170 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
171
172 2003-11-13 Andrew Cagney <cagney@redhat.com>
173
174 * arch-utils.h (selected_architecture_name): Declare.
175 (selected_byte_order): Declare.
176 * arch-utils.c (selected_byte_order): New function.
177 (selected_architecture_name): New function.
178 (target_architecture_auto): Make static.
179 (set_architecture_string): Make static.
180 (target_byte_order): Make static.
181 (target_byte_order_auto): Make static.
182 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
183 non-multi-arch definition.
184 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
185 (target_byte_order, target_architecture): Delete declaration.
186 (target_byte_order_auto, target_architecture_auto): Ditto.
187 * gdbarch.h: Re-generate.
188 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
189 "selected_byte_order".
190
191 2003-11-13 Andrew Cagney <cagney@redhat.com>
192
193 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
194
195 2003-11-13 Jim Blandy <jimb@redhat.com>
196
197 * cp-namespace.c: Doc fix.
198
199 2003-11-12 Michael Snyder <msnyder@redhat.com>
200
201 * sh64_tdep.c: Regularize some names.
202 (sh_sh64_register_name): Rename to sh64_register_name.
203 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
204 (sh_sh64_register_byte): Rename to sh64_register_byte.
205 (sh_sh64_build_float_register_type):
206 Rename to sh64_build_float_register_type.
207 (sh_sh64_register_convert_to_virtual):
208 Rename to sh64_register_convert_to_virtual.
209 (sh_sh64_register_convert_to_raw):
210 Rename to sh64_register_convert_to_raw.
211
212 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
213 sh64_media_reg_base_num, sh64_compact_reg_base_num,
214 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
215 sh64_extract_return_value, sh64_show_media_regs,
216 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
217 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
218 sh64_pseudo_register_read, sh64_pseudo_register_write,
219 sh64_do_pseudo_register, sh_compact_print_registers_info):
220 Delete unused variable 'tdep'.
221
222 * sh64-tdep.c: Coding standard and spelling comment fixes.
223 (sh64_extract_return_value): Replace deprecated_store_floating
224 with store_typed_floating.
225 (sh_sh64_register_convert_to_raw): Replace
226 deprecated_store_floating with store_typed_floating.
227 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
228 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
229 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
230 sh64_extract_struct_value_address, sh64_pop_frame,
231 sh64_extract_return_value, sh64_store_return_value,
232 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
233 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
234 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
235 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
236 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
237 deprecated_register_virtual_type, deprecated_register_raw_size,
238 deprecated_max_register_raw_size, or
239 deprecated_max_register_virtual_size. Instead, just set
240 gdbarch_register_type.
241 (sh_sh64_register_raw_size): Delete.
242 (sh_sh64_register_virtual_size): Delete.
243
244 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
245
246 * dwarf2read.c (struct dwarf2_cu): New type.
247
248 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
249 dwarf2_cu structure to pass down.
250
251 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
252 (add_partial_enumeration, locate_pdi_sibling, process_die)
253 (read_file_scope, read_func_scope)
254 (read_lexical_block_scope, dwarf2_get_pc_bounds)
255 (dwarf2_add_field, dwarf2_attach_fields_to_type)
256 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
257 (read_structure_scope, read_enumeration, read_array_type)
258 (read_common_block, read_namespace, read_tag_pointer_type)
259 (read_tag_ptr_to_member_type, read_tag_reference_type)
260 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
261 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
262 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
263 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
264 (read_full_die. read_attribute_value, read_attribute)
265 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
266 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
267 (die_containing_type, type_at_offset, tag_type_to_type)
268 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
269 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
270
271 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
272
273 PR breakpoints/1450
274 * breakpoint.c (insert_bp_location): Fix a logic error by returning
275 0 after a catchpoint fails.
276
277 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
278
279 * mips-tdep.c (msymbol_size): Delete.
280
281 2003-11-07 Michael Chastain <mec@shout.net>
282
283 * symtab.h (struct minimal_symbol): Add size.
284 * dbxread.c: Use it.
285 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
286 Rename to record_minimal_symbol.
287 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
288 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
289 (install_minimal_symbols): Ditto.
290 * objfiles.c (terminate_minimal_symbol_table): Ditto.
291 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
292 * m68hc11-tdep.c: Ditto.
293 * mips-tdep.c: Ditto.
294 * sh64-tdep.c: Ditto.
295
296 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
297
298 * MAINTAINERS: Change my e-mail address.
299
300 2003-11-10 Andrew Cagney <cagney@redhat.com>
301
302 * gdbarch.sh (return_value): Replace "inval" and "outval" with
303 "readbuf" and "writebuf".
304 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
305 * d10v-tdep.c (d10v_return_value): Ditto.
306 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
307 (ppc_sysv_abi_broken_return_value): Ditto.
308 (ppc64_sysv_abi_return_value): Ditto.
309 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
310 (ppc_sysv_abi_return_value): Ditto.
311 (ppc_sysv_abi_broken_return_value): Ditto.
312 (ppc64_sysv_abi_return_value): Ditto.
313 * values.c (register_value_being_returned): Update call.
314 * stack.c (return_command): Update call.
315 * gdbarch.h, gdbarch.c: Re-generate.
316
317 * target.h (struct target_ops): Order xfer buffer parameters "read
318 write" not "write read".
319 * bfd-target.c (target_bfd_xfer_partial): Update.
320 * remote.c (remote_xfer_partial): Update.
321 * inftarg.c (child_xfer_partial): Update.
322 * target.c (default_xfer_partial): Update.
323 (target_read_partial, target_write_partial): Update.
324 (debug_to_xfer_partial): Update.
325
326 * arch-utils.h, arch-utils.c: Fix typo in comment.
327
328 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
329 (gdbarch_from_bfd): Call gdbarch_find_by_info.
330 (set_gdbarch_from_file): Call
331 "deprecated_current_gdbarch_select_hack".
332
333 2003-11-09 Andrew Cagney <cagney@redhat.com>
334
335 * arch-utils.c (gdbarch_update_p): New function.
336 * gdbarch.sh (gdbarch_update_p): Delete function.
337 (find_arch_by_info, gdbarch_find_by_info): New functions.
338 (deprecated_current_gdbarch_select_hack): New function.
339 * gdbarch.c: Re-generate.
340
341 * gdbarch.sh (clear_gdbarch_swap): Delete function.
342 (swapout_gdbarch_swap): Delete function.
343 (swapin_gdbarch_swap): Delete function.
344 (init_gdbarch_swap): Delete function.
345 (initialize_non_multiarch): Delete function.
346 (current_gdbarch_swap_in_hack): New function.
347 (current_gdbarch_swap_out_hack): New function.
348 (current_gdbarch_swap_init_hack): New function.
349 * gdbarch.c: Re-generate.
350
351 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
352 parameter to "current_gdbarch". Add comment explaining why.
353 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
354 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
355 * gdbarch.c: Re-generate.
356
357 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
358 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
359 * config/s390/xm-linux.h: Delete file.
360 * config/m88k/xm-delta88v4.h: Delete stray.
361
362 * Makefile.in (arch-utils.o): Update dependencies.
363 * arch-utils.c: Include "osabi.h".
364 (gdbarch_info_fill): New function.
365 * arch-utils.h (gdbarch_info_fill): Declare.
366 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
367 * gdbarch.c: Re-generate.
368
369 2003-11-09 Mark Kettenis <kettenis@gnu.org>
370 David S. Miller <davem@redhat.com>
371
372 * glibc-tdep.c, glibc-tdep.h: New files.
373 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
374 * config/i386/linux.mt (TDEPFILES): Likewise.
375 * i386-linux-tdep.c (glibc-tdep.h): Include.
376 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
377 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
378 * arm-linux-tdep.c (glibc-tdep.h): Include.
379 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
380 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
381 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
382 (glibc_tdep_h): Define.
383 (glibc-tdep.o): Add dependencies.
384 (arm-linux-tdep.o): Update dependencies.
385 (i386-linux-tdep.o): Likewise.
386
387 2003-11-09 Andrew Cagney <cagney@redhat.com>
388
389 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
390 * config/mips/nm-irix6.h: Delete file.
391 * config/mips/nm-linux.h: Update copyright.
392 (MIPS_GNULINUX_TARGET): Delete macro.
393 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
394 * config/mips/xm-irix6.h: Delete file.
395 * config/mips/linux.mh (XM_FILE): Delete definition.
396 * config/mips/xm-linux.h: Delete file.
397
398 2003-11-09 Andrew Cagney <cagney@redhat.com>
399
400 * d10v-tdep.c (d10v_return_value): New function.
401 (d10v_use_struct_convention): Delete function.
402 (d10v_store_return_value): Delete function.
403 (d10v_extract_struct_value_address): Delete function.
404 (d10v_gdbarch_init): Set "return_value" instead of
405 "extract_return_value", "store_return_value",
406 "extract_struct_value_address", and "use_struct_convention".
407 (RET1_REGNUM): Delete const.
408
409 2003-11-09 Mark Kettenis <kettenis@gnu.org>
410
411 From David S. Miller <davem@redhat.com>:
412 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
413 * gdbarch.c, gdbarch.h: Regenerated.
414 * arch-utils.c (generic_skip_solib_resolver): New function.
415 * arch-utils.h (generic_skip_solib_resolver): New prototype.
416 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
417
418 2003-11-07 Andrew Cagney <cagney@redhat.com>
419
420 * top.c (print_gdb_version): Replace STREQ with strcmp.
421 * valops.c (value_struct_elt_for_reference): Ditto.
422 (value_struct_elt_for_reference): Ditto.
423 * symtab.c (gdb_mangle_name): Ditto.
424 (find_line_symtab): Ditto.
425 * symmisc.c (maintenance_print_symbols): Ditto.
426 * symfile.c (symbol_file_command): Ditto.
427 * stabsread.c (define_symbol, read_type): Ditto.
428 (cleanup_undefined_types, scan_file_globals): Ditto.
429 * solib.c (solib_map_sections): Ditto.
430 * solib-svr4.c (bfd_lookup_symbol): Ditto.
431 * rs6000-tdep.c (skip_prologue): Ditto.
432 * p-valprint.c (pascal_value_print): Ditto.
433 (pascal_object_is_vtbl_ptr_type): Ditto.
434 * objfiles.c (in_plt_section): Ditto.
435 * minsyms.c (lookup_minimal_symbol): Ditto.
436 (compact_minimal_symbols): Ditto.
437 (find_solib_trampoline_target): Ditto.
438 * mdebugread.c (parse_type): Ditto.
439 * language.c (set_language_command): Ditto.
440 (set_type_command, set_range_command): Ditto.
441 * f-lang.c (add_common_block): Ditto.
442 (add_common_block): Ditto.
443 (find_first_common_named): Ditto.
444 (patch_all_commons_by_name): Ditto.
445 * elfread.c (elf_locate_sections): Ditto.
446 (elf_locate_sections): Ditto.
447 (elfstab_offset_sections): Ditto.
448 * dwarf2read.c (dwarf2_locate_sections): Ditto.
449 * dbxread.c (add_old_header_file): Ditto.
450 (find_corresponding_bincl_psymtab): Ditto.
451 (read_dbx_symtab, process_one_symbol): Ditto.
452 * coffread.c (patch_opaque_types): Ditto.
453 * cli/cli-decode.c (delete_cmd): Ditto.
454 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
455 * c-typeprint.c (c_type_print_base): Ditto.
456 * breakpoint.c (bpstat_stop_status): Ditto.
457 (clear_command, breakpoint_re_set_one): Ditto.
458
459 2003-11-07 Andrew Cagney <cagney@redhat.com>
460
461 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
462 * bcache.c (struct bstring): Make "length" an unsigned short, add
463 "half_hash".
464 (struct bcache): Add "half_hash_error_count".
465 (bcache): Compute and save the "half_hash". Compare the
466 "half_hash" before comparing the length. Update
467 half_hash_error_count.
468
469 2003-11-07 Andrew Cagney <cagney@redhat.com>
470
471 * inftarg.c (child_xfer_partial): New function
472 (init_child_ops): Set "to_xfer_partial".
473
474 2003-11-07 Andrew Cagney <cagney@redhat.com>
475
476 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
477 set "return_value" instead of "use_struct_convention".
478 (ppc_linux_use_struct_convention): Delete function.
479 (ppc_linux_return_value): New function.
480 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
481 (ppc_sysv_abi_broken_return_value): New function.
482 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
483 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
484 static.
485 (ppc_sysv_abi_extract_return_value): Delete function.
486 (ppc_sysv_abi_broken_extract_return_value): Delete function.
487 (ppc_sysv_abi_store_return_value): Delete function.
488 (ppc_sysv_abi_broken_store_return_value): Delete function.
489 (ppc_sysv_abi_use_struct_convention): Delete function.
490 (ppc64_sysv_abi_use_struct_convention): Delete function.
491 (ppc64_sysv_abi_extract_return_value): Delete function.
492 (ppc64_sysv_abi_store_return_value): Delete function.
493 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
494 (ppcnbsd_init_abi): Set "return_value", instead of
495 "use_struct_convention", "extract_return_value", and
496 "store_return_value".
497 (ppcnbsd_use_struct_convention): Delete function.
498 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
499 (ppc_sysv_abi_return_value): Declare.
500 (ppc_sysv_abi_broken_return_value): Declare.
501 (ppc_sysv_abi_use_struct_convention): Delete.
502 (ppc_sysv_abi_store_return_value): Delete.
503 (ppc_sysv_abi_extract_return_value): Delete.
504 (ppc_sysv_abi_broken_store_return_value): Delete.
505 (ppc_sysv_abi_broken_extract_return_value): Delete.
506 (ppc64_sysv_abi_use_struct_convention): Delete.
507 (ppc64_sysv_abi_extract_return_value): Delete.
508 (ppc64_sysv_abi_store_return_value): Delete.
509 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
510 set "return_value" instead of "extract_return_value",
511 "store_return_value", and "use_struct_convention".
512
513 2003-11-07 Mark Kettenis <kettenis@gnu.org>
514
515 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
516
517 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
518 fscanf.
519
520 2003-11-07 Mark Kettenis <kettenis@gnu.org>
521
522 * fbsd-proc.c: Fix formatting.
523
524 2003-11-06 Kevin Buettner <kevinb@redhat.com>
525
526 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
527 Define.
528 (new_variant): Set name for iacc0_regnum.
529 (frv_register_name): Accommodate pseudo-registers.
530 (frv_register_type): Add case for iacc0_regnum.
531 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
532 (frv_gdbarch_init): Set number of pseudo registers. Establish
533 pseudo-register read/write methods.
534
535 2003-11-06 Andrew Cagney <cagney@redhat.com>
536
537 * valops.c (destructor_name_p): Replace STREQN with strncmp.
538 * top.c (command_line_input): Ditto.
539 * objc-exp.y (yylex): Ditto.
540 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
541 * jv-exp.y (yylex): Ditto.
542 * f-exp.y (yylex): Ditto.
543 * event-top.c (command_line_handler): Ditto.
544 * environ.c (get_in_environ): Ditto.
545 (set_in_environ): Ditto.
546 * dwarfread.c (handle_producer): Ditto.
547 * dbxread.c (process_one_symbol): Ditto.
548 * c-typeprint.c (c_type_print_base): Ditto.
549 * c-exp.y (yylex): Ditto.
550
551 2003-11-06 Andrew Cagney <cagney@redhat.com>
552 Jeff Johnston <jjohnstn@redhat.com>
553
554 * target.c (add_target): Only set "to_xfer_partial" when NULL.
555 (init_dummy_target): Set "to_xfer_partial".
556
557 2003-11-06 Andrew Cagney <cagney@redhat.com>
558
559 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
560 REGISTER_CONVENTION.
561
562 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
563
564 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
565 static.
566
567 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
568
569 * breakpoint.c (remove_breakpoint): Take an bp_location
570 instead of a breakpoint argument. Check the bp_location's type.
571 Fix a reversed condition for hardware breakpoints.
572
573 (insert_bp_location): Update call to remove_breakpoint.
574 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
575 (remove_hw_watchpoints): Likewise.
576 (reattach_breakpoints): Likewise.
577 (detach_breakpoints): Likewise.
578 (delete_breakpoint): Likewise.
579
580 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
581
582 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
583 (beakpoint_init_inferior): Likewise.
584 (breakpoint_here_p): Likewise. Only check addresses for software
585 or hardware breakpoints.
586 (breakpoint_inserted_here_p): Likewise.
587 (breakpoint_thread_match): Likewise. Correct comment.
588 (bpstat_have_active_hw_watchpoints): Likewise.
589 (check_duplicates): Likewise.
590
591 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
592
593 * breakpoints.c (insert_bp_location): New function, broken out
594 from insert_breakpoints. Work on an bp_location instead of a
595 breakpoint.
596 (insert_breakpoints): Use it.
597
598 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
599
600 * breakpoint.h (struct bp_location): Add section.
601 (struct breakpoint): Remove section.
602 * breakpoint.c (insert_breakpoints, remove_breakpoint)
603 (breakpoint_here_p, breakpoint_inserted_here_p)
604 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
605 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
606 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
607 section through loc.
608
609 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
610
611 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
612 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
613
614 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
615
616 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
617 arguments. Initialize owner and type for the new breakpoint
618 location item.
619 (set_raw_breakpoint): Update call to allocate_bp_location.
620
621 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
622
623 * breakpoint.h (struct bp_location): Add a chain pointer.
624 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
625 macros.
626 (bp_location_chain): New variable.
627 (allocate_bp_location): New function.
628 (set_raw_breakpoint): Use it.
629 (delete_breakpoint): Remove ->loc from the bp_location_chain.
630
631 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
632
633 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
634 (struct breakpoint): Remove address, shadow_contents, inserted,
635 requested_address, and duplicate. Add a struct bp_location.
636 * breakpoint.c (condition_command, read_memory_nobpt)
637 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
638 (reattach_breakpoints, update_breakpoints_after_exec)
639 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
640 (breakpoint_init_inferior, breakpoint_here_p)
641 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
642 (breakpoint_thread_match, bpstat_stop_status)
643 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
644 (describe_other_breakpoints, check_duplicates)
645 (make_breakpoint_permanent, create_thread_event_breakpoint)
646 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
647 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
648 (watch_command_1, print_one_exception_catchpoint)
649 (clear_command, breakpoint_re_set_one): Adjust member accesses to
650 use the breakpoint's ->loc.
651 (set_raw_breakpoint): Likewise. Initialize ->loc.
652 (delete_breakpoint): Likewise. Free ->loc.
653
654 2003-11-05 Andrew Cagney <cagney@redhat.com>
655
656 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
657 macro.
658 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
659 * config/i386/tm-cygwin.h
660 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
661 * config/powerpc/tm-linux.h
662 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
663 (at_subroutine_call_instruction_target): Delete declaration.
664 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
665 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
666 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
667
668 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
669 "struct bfd_section" and "struct bfd".
670 * target.h (struct section_table): Ditto.
671 * rs6000-nat.c (xcoff_relocate_core): Ditto.
672 * solib-svr4.c (elf_locate_base): Ditto.
673 * pa64solib.c (dld_cache_t): Ditto.
674 * objfiles.h (struct obj_section): Ditto.
675 * objfiles.c (add_to_objfile_sections): Ditto.
676 * exec.c (bfdsec_to_vmap): Ditto.
677 (add_to_section_table): Ditto.
678 (build_section_table): Ditto.
679 * corelow.c (get_core_register_section): Ditto.
680 * coffread.c (find_linenos): Ditto.
681 * elfread.c (elf_interpreter): Delete #if0'd function.
682
683 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
684 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
685 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
686 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
687
688 * arch-utils.h (generic_cannot_extract_struct_value_address):
689 Delete declaration.
690 * wince.c (_initialize_wince): Fix multi-line string.
691 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
692
693 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
694
695 * top.c (execute_command): Fix broken logic for command execution
696 while inferior is running in async mode.
697
698 2003-11-06 Mark Kettenis <kettenis@gnu.org>
699
700 * dwarf2-frame.c (execute_cfa_program): Mark register as
701 REG_SAVED_REG for DW_CFA_register opcode.
702
703 2003-11-05 Mark Kettenis <kettenis@gnu.org>
704
705 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
706 %rsp, %rip and %eflags to match ABI-change.
707
708 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
709
710 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
711 (ia64_gdbarch_init): Don't bother calculating the os.
712 Instead use the gdbarch_info struct and look at the osabi field.
713 Also use gdbarch_list_lookup_by_info() to look for a
714 candidate gdbarch.
715
716 2003-11-05 Kevin Buettner <kevinb@redhat.com>
717
718 * frv-tdep.c (frv_register_byte): Delete.
719 (frv_extract_return_value, frv_store_return_value)
720 (frv_extract_struct_value_address): Don't call frv_register_byte().
721 Convert to non-deprecated form.
722 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
723 Convert calls to set_gdbarch_deprecated_extract_return_value(),
724 set_gdbarch_deprecated_store_return_value(), and
725 set_gdbarch_deprecated_extract_struct_value_address() into
726 non-deprecated forms.
727
728 2003-11-05 Andrew Cagney <cagney@redhat.com>
729
730 * mips-tdep.c (mips_dump_tdep): Do not print
731 PRINT_EXTRA_FRAME_INFO.
732 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
733 Rename PRINT_EXTRA_FRAME_INFO.
734 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
735 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
736 (mips_print_extra_frame_info): Delete declaration.
737 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
738
739 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
740
741 * coffread.c (coff_symtab_read): Remove passing of info parameter
742 to prim_record_minimal_symbol_and_info.
743
744 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
745
746 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
747 (decode_base_type): Delete ifdeffed out code.
748
749 2003-11-04 Andrew Cagney <cagney@redhat.com>
750
751 * symtab.c (find_active_alias): Delete function.
752 (lookup_block_symbol): Delete alias code.
753 * stabsread.c (resolve_live_range): Delete function.
754 (add_live_range): Delete function.
755 (resolve_symbol_reference): Delete function.
756 (define_symbol): Delete live range and alias code.
757 (scan_file_globals): Delete alias code.
758 * symtab.h (SYMBOL_RANGES): Delete macro.
759 (struct range_list): Delete structure.
760 (struct symbol): Delete field "ranges".
761 (SYMBOL_ALIASES): Delete macro.
762 (struct alias_list): Delete structure.
763 (struct symbol): Delete field "aliases".
764
765 2003-11-04 Michael Snyder <msnyder@redhat.com>
766
767 * MAINTAINERS: Remove myself as owner of breakpoints and
768 of sparc/solaris.
769
770 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
771
772 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
773 (sh_sh4al_dsp_register_name): Ditto.
774 (sh4_nofpu_show_regs): Ditto.
775 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
776 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
777
778 2003-11-03 Andrew Cagney <cagney@redhat.com>
779
780 * bcache.c: Include "gdb_assert.h".
781 (struct bcache): Add fields "expand_count" and
782 "expand_hash_count".
783 (expand_hash_table): Update the expand counts.
784 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
785 on object sizes and hashes.
786 * Makefile.in (bcache.o): Update dependencies.
787
788 2003-11-03 Andrew Cagney <cagney@redhat.com>
789
790 * exec.c (xfer_memory): Eliminate xfer_fn.
791
792 2003-10-31 Kevin Buettner <kevinb@redhat.com>
793
794 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
795 (opcodes/frv-desc.h): Include.
796 (iacc0h_regnum, iacc0l_regnum): Define.
797 (last_spr_regnum, frv_num_regs): Update.
798 (new_variant): Don't supply default names for holes in the SPRs.
799 Supply names for iacc0h_regnum and iacc0l_regnum.
800 (frv_register_type): Use symbolic constants first_fpr_regnum and
801 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
802 builtin_type_int instead of builtin_type_int32.
803 (frv_register_sim_regno): New function.
804 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
805 * Makefile.in (gdb_sim_frv_h): Define.
806 (frv-tdep.o): Update dependencies.
807
808 2003-10-31 Andrew Cagney <cagney@redhat.com>
809
810 * avr-tdep.c (avr_frame_this_id): Do not call
811 deprecated_inside_entry_file.
812 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
813 * m32r-tdep.c (m32r_frame_this_id): Ditto.
814 * d10v-tdep.c (d10v_frame_this_id): Ditto.
815 * arm-tdep.c (arm_prologue_this_id): Ditto.
816 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
817
818 2003-10-31 Jim Blandy <jimb@redhat.com>
819
820 * elfread.c (elf_symtab_read): Allocate correct number of tail
821 elements to sectinfo structure. (Fix from Woody LaRue.)
822
823 2003-10-31 Andrew Cagney <cagney@redhat.com>
824
825 * stack.c (return_command): Use get_frame_type, instead of
826 CALL_DUMMY_HAS_COMPLETED.
827 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
828 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
829
830 2003-10-31 Mark Kettenis <kettenis@gnu.org>
831
832 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
833 explicitly specify size of array.
834 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
835 TDEP->sc_num_regs.
836
837 2003-10-31 Andrew Cagney <cagney@redhat.com>
838
839 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
840 function.
841 (s390_gdbarch_init): Set extract_struct_value_address.
842 * arch-utils.c (generic_cannot_extract_struct_value_address):
843 Delete function.
844 * arch-utils.h (generic_cannot_extract_struct_value_address):
845 Delete definition.
846
847 2003-10-31 Mark Kettenis <kettenis@gnu.org>
848
849 * i386-linux-nat.c (fetch_core_registers): Remove.
850 (linux_elf_core_fns): Remove.
851 (_initialize_i386_linux_nat): Remove.
852
853 2003-10-31 Andrew Cagney <cagney@redhat.com>
854
855 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
856 "exec.h".
857 (exec_entry_point): New function.
858 (enable_break): Create a "tmp_bfd_target", use that and
859 entry_point_address when computing the relocation offset.
860 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
861 * Makefile.in (solib-svr4.o): Update dependencies.
862
863 2003-10-31 Andrew Cagney <cagney@redhat.com>
864
865 * defs.h (XZALLOC): Define.
866 * target.h (struct target_ops): Add "to_data";
867 * bfd-target.h, bfd-target.c: New files.
868 * Makefile.in (SFILES): Add "bfd-target.c".
869 (COMMON_OBS): Add "bfd-target.o".
870 (bfd-target.o): Specify dependencies.
871 (bfd_target_h): Define.
872 * defs.h (XZALLOC): Define.
873
874 2003-10-31 Andrew Cagney <cagney@redhat.com>
875
876 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
877 adjust_breakpoint_address.
878 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
879 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
880 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
881 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
882
883 2003-10-31 Andrew Cagney <cagney@redhat.com>
884
885 * target.h (struct target_ops): Replace "to_read_partial" and
886 "to_write_partial" with "to_xfer_partial". Update comments.
887 * target.c (debug_to_write_partial): Delete function.
888 (debug_to_xfer_partial): Replace debug_to_read_partial.
889 (add_target, update_current_target, setup_target_debug): Set
890 "to_xfer_partial" instead of "to_read_partial" and
891 "to_write_partial".
892 (default_xfer_partial): Replace "default_write_partial".
893 (default_read_partial): Delete.
894 (target_read_partial, target_write_partial): Call
895 "to_xfer_partial".
896 * remote.c (init_remote_ops): Set "to_xfer_partial".
897 (init_remote_async_ops): Ditto.
898 (remote_xfer_partial): Replace "remote_read_partial".
899
900 2003-10-31 Mark Kettenis <kettenis@gnu.org>
901
902 * i386-tdep.c (i386_supply_fpregset): Support floating-point
903 registers in `fxsave' format.
904 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
905
906 2003-10-30 Mark Kettenis <kettenis@gnu.org>
907
908 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
909 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
910 TDEP->gregset_num_regs and tdep->sizeof_gregset.
911
912 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
913 specify size of array.
914 (i386_linux_init_abi): Remove initialization of
915 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
916 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
917
918 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
919 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
920 core-regset.o.
921
922 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
923 the ELF header.
924
925 2003-10-29 Mark Kettenis <kettenis@gnu.org>
926
927 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
928 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
929 core-regset.o.
930
931 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
932
933 * corelow.c: Include "arch-utils.h", "regset.h" and
934 "gdb_assert.h".
935 (core_gdbarch): New variable.
936 (sniff_core_bfd): Don't sniff if we have support for register sets
937 in CORE_GDBARCH.
938 (core_close): Reset CORE_GDBARCH.
939 (core_open): Initialize CORE_GDBARCH.
940 (get_core_register_section): Use register sets if they are
941 supported by CORE_GDBARCH.
942 (get_core_registers): Don't print error message if we have support
943 for register sets in CORE_GDBARCH.
944
945 2003-10-29 Andrew Cagney <cagney@redhat.com>
946
947 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
948 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
949
950 2003-10-29 Mark Kettenis <kettenis@gnu.org>
951
952 * objfiles.h (clear_objfile_data): New prototype.
953 * objfiles.c (clear_objfile_data): New function.
954 * symfile.c (reread_symbols): Clear per-objfile data.
955
956 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
957
958 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
959 printf_unfiltered instead of printf_filtered for output messages.
960 (add_symbol_file_command): Ditto.
961 (reread_symbols): Ditto.
962 (overlay_auto_command): Ditto.
963 (overlay_manual_command): Ditto.
964 (overlay_off_command): Ditto.
965
966 2003-10-27 Mark Kettenis <kettenis@gnu.org>
967
968 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
969 (gdbarch_from_bfd): New function.
970 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
971 deprecated_select_gdbarch_hack.
972 * arch-utils.h (gdbarch_from_bfd): New prototype.
973
974 2003-10-27 Andrew Cagney <cagney@redhat.com>
975
976 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
977 arch_info. Use warning instead of fprintf_filtered. Do not use
978 deprecated bfd_printable_arch_mach.
979
980 2003-10-26 Kevin Buettner <kevinb@redhat.com>
981
982 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
983 Delete.
984 (frv_register_type): Rename from frv_register_virtual_type. Add
985 ``struct gdbarch *'' parameter.
986 (frv_gdbarch_init): Delete calls to the following functions:
987 set_gdbarch_deprecated_size(),
988 set_gdbarch_deprecated_register_bytes(),
989 set_gdbarch_deprecated_register_raw_size(),
990 set_gdbarch_deprecated_max_register_raw_size(),
991 set_gdbarch_deprecated_register_virtual_size(),
992 set_gdbarch_deprecated_max_register_virtual_size(),
993 set_gdbarch_deprecated_register_virtual_size(),
994 set_gdbarch_deprecated_register_virtual_type().
995 Add call to function set_gdbarch_register_type().
996
997 2003-10-26 Mark Kettenis <kettenis@gnu.org>
998
999 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1000 FDOFF_REGNUM): Remove defines.
1001 * win32-nat.c (do_child_fetch_inferior_registers): Include
1002 "i387-tdep.h".
1003 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1004 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1005 undefine I387_ST0_REGNUM.
1006
1007 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1008 * x86-64-tdep.c (x86_64_store_return_value): Use
1009 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1010
1011 Change register numbers to enumartion values.
1012 * i386-tdep.h (enum i386_regnum): New.
1013 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1014 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1015 I386_ST0_REGNUM): Remove defines.
1016 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1017 I386_EDI_REGNUM): Remove defines.
1018
1019 2003-10-24 Andrew Cagney <cagney@redhat.com>
1020
1021 * target.c: Include "gdbcore.h".
1022 (get_target_memory, get_target_memory_unsigned): New functions.
1023 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1024 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1025 Use get_target_memory_unsigned.
1026 * Makefile.in (target.o): Update dependencies.
1027
1028 2003-10-24 Andrew Cagney <cagney@redhat.com>
1029
1030 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1031 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1032 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1033 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1034 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1035
1036 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1037 (can_run_code_for): Use the OO term "singleton".
1038
1039 2003-10-23 Andrew Cagney <cagney@redhat.com>
1040
1041 * Makefile.in (stack.o): Add $(regcache_h).
1042 * stack.c: Include "regcache.h"
1043 (return_command): Rewrite. Use get_frame_id and
1044 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1045 about unhandled return-values.
1046 * value.h (set_return_value): Delete declaration.
1047 * values.c (set_return_value): Delete function.
1048
1049 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1050
1051 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1052 (pseudo_regs): Add comment regarding register stack registers.
1053 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1054 (floatformat_valid): New static routine.
1055 (floatformat_ia64_ext): Add name field and set up is_valid routine
1056 to floatformat_valid().
1057 (examine_prologue): For the previous cfm, use
1058 frame_unwind_register()
1059 if the cfm is not stored in a register-stack register. Save the
1060 previous cfm value in the prev_cfm field. Add debug output.
1061 (ia64_frame_this_id): Use frame_id_build_special() to also register
1062 the bsp. Add debug output.
1063 (ia64_sigtramp_frame_this_id): Ditto.
1064 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1065 registers and also add some checks for framelessness before accepting
1066 current register values for fields such as return address. For cfm,
1067 use the cached prev_cfm field if available. Add comment to explain
1068 PSR logic. Add debug output.
1069 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1070 as part of initialization.
1071 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1072 calculated. Cache the bsp and cfm values.
1073 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1074 instead of using ia64_frame_prev_register() which doesn't expect most
1075 registers to be saved. The saved values for bsp and sp
1076 can be taken from the cache. Add debug output.
1077 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1078 the bsp.
1079
1080 2003-10-23 Jim Blandy <jimb@redhat.com>
1081
1082 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1083 architecture the current arch can run code for --- but not if it's
1084 a superset.
1085 (can_run_code_for): New function.
1086
1087 2003-10-22 James E Wilson <wilson@specifixinc.com>
1088
1089 * MAINTAINERS: Move myself from paper trail section back to write
1090 after approval section.
1091
1092 2003-10-22 Andrew Cagney <cagney@redhat.com>
1093
1094 * exec.h: New file.
1095 * win32-nat.c: Include "exec.h".
1096 * solib.c: Include "exec.h".
1097 * target.h (build_section_table): Delete declaration.
1098 * somsolib.c: Include "exec.h".
1099 (exec_ops): Delete extern declaration.
1100 * rs6000-nat.c: Update copyright. Include "exec.h".
1101 (exec_ops): Delete extern declaration.
1102 * pa64solib.c: Update copyright. Include "exec.h".
1103 (exec_ops): Delete extern declaration.
1104 * exec.c: Update copyright. Include "exec.h".
1105 * corelow.c: Update dependencies. Include "exec.h".
1106 * Makefile.in (exec_h): Define.
1107 (exec.o, somsolib.o): Update dependencies.
1108 (pa64solib.o, corelow.o): Update dependencies.
1109
1110 2003-10-22 Andrew Cagney <cagney@redhat.com>
1111
1112 * target.c: Include "gdb_assert.h" (target_read): Call
1113 "target_read_partial", not "target_write_partial".
1114 (default_read_partial, default_write_partial): New function.
1115 (target_read_partial, target_write_partial): Simplify, assume that
1116 there is always a read/write method.
1117 (update_current_target, add_target): Always set "to_read_partial"
1118 and "to_write_partial".
1119 (target_write, target_read): Fail on a zero byte transfer.
1120 * Makefile.in (target.o): Update dependencies.
1121 * target.h: Update copyright date.
1122 (target_object): Fix typo.
1123
1124 2003-10-22 Andrew Cagney <cagney@redhat.com>
1125
1126 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1127 multi-arch method, add "targ" parameter.
1128 (struct target_ops): Declare.
1129 * gdbarch.h, gdbarch.c: Re-generate.
1130 * Makefile.in (c-valprint.o): Update dependencies.
1131 * arch-utils.h: Update copyright.
1132 (convert_from_func_ptr_addr_identity): Declare.
1133 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1134 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1135 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1136 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1137 * infcall.c (find_function_addr, call_function_by_hand): Update.
1138 * c-valprint.c: Include "target.h".
1139 (print_function_pointer_address): Update.
1140
1141 2003-10-22 Andrew Cagney <cagney@redhat.com>
1142
1143 * target.c (target_close): New function.
1144 (debug_to_close): Use "target_close".
1145 (push_target): Use "target_close".
1146 (unpush_target): Use "target_close".
1147 (pop_target): Use "target_close".
1148 * target.h (struct target_ops): Add "to_xclose".
1149 (target_open): Delete macro. Move comment to "to_open".
1150 (target_close): Replace macro with function that takes a target.
1151 * top.c (quit_target): Pass "current_target" to "target_close".
1152
1153 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1154
1155 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1156 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1157 * symtab.h (lookup_minimal_symbol_text): Update.
1158 * breakpoint.c (create_overlay_event_breakpoint,
1159 create_longjmp_breakpoint): Update callers.
1160 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1161 * symtab.c (find_pc_sect_line): Ditto.
1162
1163 2003-10-21 Andrew Cagney <cagney@redhat.com>
1164
1165 * target.c (errno): Delete extern declaration.
1166
1167 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1168
1169 * ia64-tdep.c: Change all occurrences of
1170 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1171 (ia64_frame_prev_register): Minor whitespace change.
1172
1173 2003-10-20 Michael Chastain <mec@shout.net>
1174
1175 * config/djgpp/fnchange.lst: Add lines for:
1176 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1177 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1178 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1179 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1180 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1181 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1182 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1183
1184 2003-10-20 Andrew Cagney <cagney@redhat.com>
1185
1186 * values.c (register_value_being_returned): Update comments. Use
1187 "gdbarch_return_value" when available.
1188 (using_struct_return): Ditto.
1189 (set_return_value): Ditto. Use "gdbarch_return_value" when
1190 available.. Print a warning, and not an error, when an unhandled
1191 return type is encountered.
1192 * infcmd.c: Include "gdb_assert.h".
1193 (print_return_value): When gdbarch_return_value_p, and using
1194 struct return, assume that the value is not available.
1195 * defs.h (return_value_convention): Define.
1196 * gdbarch.sh (gdbarch_return_value): New predicate method.
1197 * gdbarch.h, gdbarch.c: Re-generate
1198 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1199
1200 2003-10-20 Andrew Cagney <cagney@redhat.com>
1201
1202 * symtab.c: Replace "struct sec" with "struct bfd_section".
1203 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1204
1205 2003-10-19 Michael Chastain <mec@shout.net>
1206
1207 * config/djgpp/fnchange.lst: Add lines for:
1208 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1209 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1210 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1211
1212 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1213
1214 * amd64fbsd-nat.c (fetch_inferior_registers,
1215 store_inferior_registers): Remove functions.
1216 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1217
1218 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1219
1220 Add NetBSD/amd64 native configuration:
1221 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1222 * amd64nbsd-tdep.c: New file.
1223 * amd64nbsd-nat.c: New file.
1224 * amd64bsd-nat.c: New file.
1225 * config/i386/nbsd64.mh: New file.
1226 * config/i386/nbsd64.mt: New file.
1227 * configure.host: Add x86_64-*-netbsd*.
1228 * configure.tgt: Add x86_64-*-netbsd*.
1229 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1230 New targets.
1231 * NEWS (New native configurations): Mention NetBSD/amd64.
1232
1233 2003-10-17 Michael Chastain <mec@shout.net>
1234
1235 * config/djgpp/fnchange.lst: Remove dead lines for:
1236 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1237 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1238 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1239 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1240 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1241 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1242 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1243 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1244 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1245 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1246 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1247 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1248 gdb/config/sparc/tm-sparclite.h,
1249 gdb/gdbtk/generic/ChangeLog-2001,
1250 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1251 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1252 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1253 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1254 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1255 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1256 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1257 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1258 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1259 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1260 itcl/iwidgets3.0.0/demos/fileselectionbox,
1261 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1262 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1263 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1264 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1265 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1266 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1267 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1268 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1269 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1270 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1271 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1272 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1273 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1274 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1275 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1276 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1277 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1278 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1279 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1280 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1281 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1282 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1283 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1284 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1285 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1286 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1287 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1288 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1289 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1290 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1291 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1292 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1293 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1294 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1295 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1296 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1297 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1298 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1299 itcl/iwidgets3.0.0/demos/scrolledframe,
1300 itcl/iwidgets3.0.0/demos/scrolledhtml,
1301 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1302 itcl/iwidgets3.0.0/demos/scrolledtext,
1303 itcl/iwidgets3.0.0/demos/selectionbox,
1304 itcl/iwidgets3.0.0/demos/selectiondialog,
1305 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1306 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1307 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1308 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1309 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1310 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1311 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1312 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1313 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1314 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1315 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1316 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1317 itcl/iwidgets3.0.0/doc/selectionbox.n,
1318 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1319 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1320 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1321 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1322 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1323 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1324 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1325 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1326 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1327 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1328 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1329 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1330 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1331 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1332 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1333 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1334 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1335 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1336 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1337 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1338 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1339 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1340 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1341 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1342 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1343 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1344 itcl/iwidgets3.0.0/tests/selectionbox.test,
1345 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1346 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1347 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1348 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1349 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1350 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1351 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1352 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1353 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1354 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1355 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1356 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1357 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1358 tk/mac/tkMacProjects.sit.hqx.
1359
1360 2003-10-17 Andrew Cagney <cagney@redhat.com>
1361
1362 * target.c (target_section_by_addr): New function.
1363 (do_xfer_memory): Use "target_section_by_addr".
1364 * target.h (target_section_by_addr): Declare.
1365
1366 * target.h (struct target_ops): Add "to_read_partial" and
1367 "to_write_partial", delete "to_query".
1368 (target_read_partial, target_write_partial): Declare.
1369 (target_read, target_write): Declare.
1370 (target_query): Delete macro.
1371 * target.c (target_read_partial): New function.
1372 (target_write_partial, target_read, target_write): New function.
1373 (update_current_target): Delete inheritance of "to_query". Add
1374 comments about "to_read_partial" and "to_write_partial".
1375 (debug_to_partial_read, debug_to_partial_write): New functions.
1376 (debug_to_query): Delete function.
1377 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1378 instead of "to_query".
1379 * remote.c (remote_read_partial): Replace "remote_query".
1380 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1381 (init_remote_async_ops): Ditto.
1382 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1383 "target_read_partial" instead of "target_query".
1384 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1385 Use "target_read_partial" instead of "target_query".
1386
1387 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1388
1389 * frame.h (struct frame_id): Add new field: special_addr.
1390 (frame_id_build_special): New prototype.
1391 * frame.c (frame_id_build_special): New function.
1392 (frame_id_build): Change to call frame_id_build_special().
1393 (frame_id_eq): Change to also test special_addr field.
1394 (frame_id_inner): Update comment.
1395
1396 2003-10-17 Andrew Cagney <cagney@redhat.com>
1397
1398 * target.c (update_current_target): Perform the target cleanup.
1399 Put the target stack beneath the squashed "current_target".
1400 (add_target): Delete disabled call to "cleanup_target".
1401 (cleanup_target): Delete function.
1402 (push_target, unpush_target): Do not call "cleanup_target".
1403
1404 2003-10-17 Andrew Cagney <cagney@redhat.com>
1405
1406 * target.c (target_stack): Change to a static target_ops.
1407 (update_current_target): Walk the "struct target_ops" stack.
1408 (pop_target, do_xfer_memory, target_info): Ditto.
1409 (find_target_beneath): Ditto.
1410 (push_target): Rewrite to use the "struct target_ops" stack.
1411 (unpush_target): Ditto.
1412 * target.h (struct target_stack_item): Delete definition.
1413 (target_stack): Delete declaration.
1414 (struct target_ops): Add field "beneath".
1415
1416 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1417
1418 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1419 declaration.
1420 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1421 (h8300_examine_prologue): Use h8300_normal_mode flag
1422 (h8300_gdbarch_init): Set architecture info for normal mode
1423
1424 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1425
1426 * remote.c (remote_protocol_vcont): New variable.
1427 (set_remote_protocol_vcont_packet_cmd): New function.
1428 (show_remote_protocol_vcont_packet_cmd): New function.
1429 (init_all_packet_configs): Handle remote_protocol_vcont.
1430 (remote_vcont_probe): New function.
1431 (remote_vcont_resume): New function.
1432 (remote_resume): Use it.
1433 (remote_async_resume): Call remote_resume.
1434 (_initialize_remote): Add verbose-resume packet commands.
1435
1436 2003-10-16 Andrew Cagney <cagney@redhat.com>
1437
1438 * infrun.c (handle_inferior_event): Add comment about
1439 "frame_id_inner" being too weak.
1440
1441 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1442
1443 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1444 second parameter, which is always null. Remove
1445 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1446 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1447 accordingly.
1448 * somsolib.c (som_solib_create_inferior_hook,
1449 som_solib_desire_dynamic_linker_symbols): Update callers.
1450 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1451
1452 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1453
1454 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1455 debug interface, SDI (Scalable Debug Interface).
1456 * NEWS: Mention m32r SDI protocol was supported.
1457 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1458 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1459
1460 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1461
1462 * ia64-linux-tdep.c: Include gdbcore.h.
1463 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1464 (ia64_linux_sigcontext_register_addr): Find the address of the
1465 sigcontext area stored in the sigframe instead of using
1466 a magic offset constant.
1467
1468 2003-10-15 Andrew Cagney <cagney@redhat.com>
1469
1470 * remote.c (remote_search): Delete function.
1471 * target.h (target_search): Delete disabled macro.
1472 (struct target_ops): Delete disabled field "to_search".
1473
1474 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1475
1476 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1477 instead of deprecated_inside_entry_file().
1478
1479 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1480
1481 * sh-tdep.c: Fix copy/paste hangover in comment.
1482 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1483 mode.
1484 (sh3e_sh4_extract_return_value): Ditto.
1485
1486 2003-10-13 Richard Henderson <rth@redhat.com>
1487
1488 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1489 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1490 match c_val_print a bit closer.
1491
1492 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1493
1494 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1495 (frv_gdbarch_adjust_breakpoint_address): New function.
1496 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1497 method.
1498
1499 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1500
1501 * breakpoint.h (struct breakpoint): Add new member
1502 ``requested_address''.
1503 * breakpoint.c (breakpoint_adjustment_warning)
1504 (adjust_breakpoint_address): New static functions.
1505 (print_it_typical): Issue warning if breakpoint's address is different
1506 from its requested address.
1507 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1508 (breakpoint_re_set_one): Set breakpoint's
1509 ``requested_address'' field. Set ``address'' field to the
1510 result of calling adjust_breakpoint_address() on the requested
1511 address.
1512
1513 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1514
1515 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1516 * gdbarch.h, gdbarch.c: Regenerate.
1517
1518 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1519
1520 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1521 TDEP->sc_num_regs.
1522
1523 * i386fbsd-tdep.c: New file.
1524 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1525 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1526 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1527 i386bsd-tdep.c.
1528 (_initialize_i386fbsd_tdep): New function.
1529 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1530 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1531 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1532 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1533 TDEP->sc_num_regs.
1534 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1535 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1536 to initialize TDEP->sc_num_regs.
1537 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1538 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1539 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1540 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1541 FreeBSD ELF OS/ABI's here.
1542 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1543 (i386fbsd-tdep.o): New target.
1544 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1545 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1546
1547 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1548 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1549 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1550 in initialization of TDEP->sc_num_regs.
1551
1552 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1553 (x86_64_init_abi): Initialize regset_from_core_section if
1554 appropriate.
1555
1556 * i386-tdep.c (i386_regset_from_core_section): New function.
1557 (i386_gdbarch_init): Initialize regset_from_core_section if
1558 appropriate.
1559 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1560
1561 * i386-tdep.h (struct regset): Declare opaque.
1562
1563 * gdbarch.sh (regset_from_core_section): New method.
1564 (struct regset): Declare opaque.
1565 * gdbarch.c, gdbarch.h: Regenerated.
1566
1567 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1568
1569 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1570 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1571 Correct test for pc within section.
1572
1573 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1574
1575 * gdbarch.sh: Remove trailing whitepsace from comments.
1576
1577 2003-10-08 Roland McGrath <roland@redhat.com>
1578
1579 * gcore.c (make_mem_sec): Function removed, folded into ...
1580 (gcore_create_callback): ... here. To omit a section, clear its
1581 SEC_LOAD bit rather than zeroing its size.
1582 Omit read-only sections only if they correspond to a known disk file.
1583 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1584
1585 2003-10-10 Michael Snyder <msnyder@redhat.com>
1586
1587 * d10v-tdep.c: Fix typo in comment.
1588
1589 2003-10-10 Andrew Cagney <cagney@redhat.com>
1590
1591 * rs6000-tdep.c (e500_store_return_value): Delete function.
1592 (e500_extract_return_value): Delete function.
1593 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1594 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1595 "ppc_sysv_abi_restore_return_value" where applicable.
1596 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1597 (ppc_sysv_abi_extract_return_value): Declare.
1598 (ppc_sysv_abi_broken_store_return_value): Declare.
1599 (ppc_sysv_abi_broken_extract_return_value): Declare.
1600 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1601 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1602 start of file.
1603 (do_ppc_sysv_return_value): New function.
1604 (ppc_sysv_abi_extract_return_value): New function.
1605 (ppc_sysv_abi_store_return_value): New function.
1606 (ppc_sysv_abi_broken_extract_return_value): New function.
1607 (ppc_sysv_abi_broken_store_return_value): New function.
1608 (ppc_sysv_abi_use_struct_convention): Call
1609 do_ppc_sysv_return_value.
1610
1611 2003-10-10 J. Brobecker <brobecker@gnat.com>
1612
1613 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1614 to lookup the main function symbol.
1615
1616 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1617
1618 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1619 types correctly.
1620 (sh_push_dummy_call_fpu): Fix argument passing rules.
1621 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1622 float types.
1623 (sh3e_sh4_store_return_value): Ditto.
1624
1625 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1626
1627 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1628 comment.
1629
1630 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1631
1632 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1633 more readable code. Accomodate passing of bitfields.
1634
1635 2003-10-10 Andrew Cagney <cagney@redhat.com>
1636
1637 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1638 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1639 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1640 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1641 (ppc64_sysv_abi_push_dummy_call): New function.
1642 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1643 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1644 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1645
1646 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1647
1648 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1649 * README: Ditto.
1650 * d10v-tdep.c: Ditto.
1651 * h8300-tdep.c: Ditto.
1652 * remote-e7000.c: Ditto.
1653 * remote-hms.c: Ditto.
1654 * ser-e7kpc.c: Ditto.
1655 * sh-stub.c: Ditto.
1656 * sh-tdep.c: Ditto.
1657 * sh-tdep.h: Ditto.
1658 * sh3-rom.c: Ditto.
1659 * sh64-tdep.c: Ditto.
1660 * top.c: Ditto.
1661 * wince.c: Ditto.
1662 * config/d10v/d10v.mt: Ditto.
1663 * config/sh/embed.mt: Ditto.
1664 * config/sh/linux.mt: Ditto.
1665 * config/sh/tm-linux.h: Ditto.
1666 * config/sh/tm-sh.h: Ditto.
1667 * config/sh/wince.mt: Ditto.
1668
1669 2003-10-09 Andrew Cagney <cagney@redhat.com>
1670
1671 * ppc-tdep.h (struct type): Declare opaque.
1672 * x86-64-tdep.h (struct regcache): Declare opaque.
1673 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1674 coding style.
1675
1676 2003-10-09 Andrew Cagney <cagney@redhat.com>
1677
1678 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1679 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1680 (SOFTWARE_SINGLE_STEP_P): Ditto.
1681 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1682 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1683 (SOFTWARE_SINGLE_STEP_P): Ditto.
1684 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1685 software_single_step to rs6000_software_single_step.
1686
1687 2003-10-09 Andrew Cagney <cagney@redhat.com>
1688
1689 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1690
1691 2003-10-09 Michael Snyder <msnyder@redhat.com>
1692
1693 * frame.h: Fix typo in comment.
1694 * dummy-frame.c: Fix typo in comment.
1695 * d10v-tdep.c: Random whitespace/comment tweaks.
1696
1697 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1698
1699 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1700 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1701 on stack.
1702
1703 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1704 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1705 in detail.
1706
1707 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1708
1709 * remote-mips.c (mips_initialize): Remove unneeded call to
1710 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1711
1712 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1713
1714 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1715 a memory pointer.
1716
1717 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1718
1719 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1720 for any lwp we resume.
1721 (running_callback): Add lwps that have pending status events
1722 against them to be considered running.
1723
1724 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1725
1726 * m32r-tdep.c : Include "dis-asm.h".
1727 * Makefile.in (m32r-tdep.o): Update dependencies.
1728
1729 2003-10-06 J. Brobecker <brobecker@gnat.com>
1730
1731 * completer.h (get_gdb_completer_word_break_characters): Delete.
1732 * completer.c: include language.h.
1733 (gdb_completer_word_break_characters): Delete.
1734 (get_gdb_completer_word_break_characters): Delete.
1735 (location_completer): Use the word break characters of the current
1736 language.
1737 (complete_line): Likewise.
1738 (line_completion_function): Likewise.
1739 (skip_quoted_chars): Likewise.
1740 * Makefile.in (completer.o): Add dependency on language.h.
1741 * top.c (init_main): Set the readline word break characters
1742 to GDB's default word break characters.
1743
1744 2003-10-06 J. Brobecker <brobecker@gnat.com>
1745
1746 * language.h (language_defn): new field, la_word_break_characters.
1747 * language.c (unknown_language_defn): Set new field to
1748 default_word_break_characters.
1749 (auto_language_defn): Likewise.
1750 (local_language_defn): Likewise.
1751 * ada-lang.c (ada_language_defn): Likewise.
1752 * c-lang.c (c_language_defn): Likewise.
1753 (cplus_language_defn): Likewise.
1754 (asm_language_defn): Likewise.
1755 (minimal_language_defn): Likewise.
1756 * f-lang.c (f_language_defn): Likewise.
1757 * jv-lang.c (java_language_defn): Likewise.
1758 * m2-lang.c (m2_language_defn): Likewise.
1759 * objc-lang.c (objc_language_defn): Likewise.
1760 * p-lang.c (pascal_language_defn): Likewise.
1761 * scm-lang.c (scm_language_defn): Likewise.
1762
1763 2003-10-06 Andrew Cagney <cagney@redhat.com>
1764
1765 * ppc-sysv-tdep.c: Re-indent.
1766
1767 2003-10-06 J. Brobecker <brobecker@gnat.com>
1768
1769 * language.h (default_word_break_characters): Add prototype.
1770 * language.c (default_word_break_characters): New function.
1771
1772 2003-10-06 Andreas Schwab <schwab@suse.de>
1773
1774 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1775 with %eax.
1776
1777 2003-10-06 Andrew Cagney <cagney@redhat.com>
1778
1779 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1780 "h8500-tdep.c".
1781 (z8k-tdep.o): Delete custom build rule.
1782
1783 2003-10-06 Andrew Cagney <cagney@redhat.com>
1784
1785 * Makefile.in: Update all dependencies.
1786
1787 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1788 No longer list PA as as obsolete candidate. List m32r as
1789 broken instead of obsolete.
1790
1791 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1792 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1793 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1794 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1795 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1796 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1797 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1798 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1799 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1800 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1801 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1802 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1803 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1804 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1805 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1806 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1807 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1808 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1809 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1810 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1811 * config/z8k/z8k.mt: Ditto.
1812
1813 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1814 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1815 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1816 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1817 sparclite were removed.
1818 * configure.host, configure.tgt: Remove corresponding tuples.
1819
1820 * breakpoint.c, breakpoint.h: Remove obsolete code.
1821 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1822 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1823 * stabsread.h, xcoffread.c: Ditto.
1824
1825 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1826 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1827 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1828 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1829
1830 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1831
1832 * f-valprint.c: Reformatting
1833
1834 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1835
1836 * x86-64-tdep.c: Remove duplicate comment.
1837
1838 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1839 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1840 names for return values. This fixes a bug since we looked at %rbx
1841 instead of %rdx.
1842
1843 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1844
1845 * x86-64-tdep.c: Include "regset.h".
1846
1847 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1848 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1849 sizeof_fpregset.
1850 * i386-tdep.c: Include "regset.h".
1851 (i386_supply_gregset): New function.
1852 (i386_supply_fpregset): New function.
1853 (i386_gdbarch_init): Initialze register set-related members of
1854 TDEP.
1855 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1856 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1857
1858 2003-10-03 Andrew Cagney <cagney@redhat.com>
1859
1860 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1861 set extract_return_value, store_return_value and
1862 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1863 ppc64_sysv_abi_store_return_value and
1864 ppc64_sysv_abi_use_struct_convention.
1865 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1866 (ppc64_sysv_abi_store_return_value): Declare.
1867 (ppc64_sysv_abi_use_struct_convention): Declare.
1868 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1869 (ppc64_sysv_abi_extract_return_value): New function.
1870 (ppc64_sysv_abi_store_return_value): New function.
1871 (ppc64_sysv_abi_use_struct_convention): New function.
1872 (ppc64_sysv_abi_return_value): New function.
1873
1874 2003-10-03 Andrew Cagney <cagney@redhat.com>
1875
1876 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1877 convert a descriptor to a function when it's in the ".opd"
1878 section.
1879
1880 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1881
1882 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1883 reg_size to keep GCC silent.
1884
1885 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1886
1887 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1888 base for DW_EH_PE_textrel encodings.
1889 (read_encoded_value): Add a DW_EH_PE_textrel case.
1890 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1891 section.
1892
1893 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1894
1895 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1896
1897 2003-10-02 Andrew Cagney <cagney@redhat.com>
1898
1899 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1900 REGISTER_RAW_SIZE.
1901 * gdbarch.h, gdbarch.c: Re-generate.
1902 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1903 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1904 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1905 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1906 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1907 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1908 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1909 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1910 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1911 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1912 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1913 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1914 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1915 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1916 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1917 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1918
1919 2003-10-02 Jim Blandy <jimb@redhat.com>
1920
1921 * dwarf2read.c (struct die_info): Doc fix.
1922
1923 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1924
1925 * sh-tdep.c: Running thru gdb_indent.sh.
1926
1927 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1928
1929 * sh-tdep.c (sh_justify_value_in_reg): New function.
1930 (sh_stack_allocsize): Ditto.
1931 (flt_argreg_array): New array used for floating point argument
1932 passing.
1933 (sh_init_flt_argreg): New function.
1934 (sh_next_flt_argreg): Ditto.
1935 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1936 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1937 Fix argument passing strategy.
1938 (sh_push_dummy_call_nofpu): Ditto.
1939
1940 2003-10-01 Andrew Cagney <cagney@redhat.com>
1941
1942 * value.h (register_value_being_returned): Declare. Replace
1943 "value_being_returned".
1944 * infcall.c (call_function_by_hand): Use
1945 register_value_being_returned.
1946 * infcmd.c (print_return_value): Call
1947 "register_value_being_returned", handle struct return locally.
1948 * values.c (register_value_being_returned): New function. Replace
1949 "value_being_returned".
1950
1951 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1952
1953 * linux-proc.c (linux_do_registers): New function.
1954 (linux_make_note_section): Use linux_do_registers in case of
1955 single threaded inferior programs.
1956
1957 2003-10-01 Andrew Cagney <cagney@redhat.com>
1958
1959 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1960 use STRUCT_ADDR. When not using "struct return convention", pass
1961 "0" to "value_being_returned". Add FIXMEs.
1962 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1963 value_being_returned. Add comments.
1964 * values.c (value_being_returned): Add fixme.
1965 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1966 (hppa_value_returned_from_stack): Add FIXME.
1967
1968 2003-09-30 David Carlton <carlton@kealia.com>
1969
1970 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1971 'has_children' and 'next' by 'child' and 'sibling'.
1972 (read_comp_unit): Rework algorithm, breaking body into
1973 read_die_and_children and read_die_and_siblings.
1974 (read_die_and_children, read_die_and_siblings): New.
1975 (read_full_die): Add 'has_children' argument; set it instead of
1976 the die's 'has_children' field. Minor formatting cleanup.
1977 (free_die_list): Use die->child and die->sibling instead of
1978 die->next.
1979 (dump_die_list): Ditto.
1980 (sibling_die): Use die->sibling.
1981 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1982 'has_children' and 'next' fields.
1983 (process_die, read_file_scope, read_func_scope)
1984 (read_lexical_block_scope, read_structure_scope)
1985 (read_enumeration, read_array_type, read_common_block)
1986 (read_namespace, read_subroutine_type, dump_die): Ditto.
1987
1988 2003-09-30 Andrew Cagney <cagney@redhat.com>
1989
1990 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1991 to 224, not 220.
1992
1993 2003-09-30 Andrew Cagney <cagney@redhat.com>
1994
1995 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1996 REGISTER_VIRTUAL_SIZE.
1997 * gdbarch.h, gdbarch.c: Regenerate.
1998 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1999 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2000 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2001
2002 2003-09-29 Andrew Cagney <cagney@redhat.com>
2003
2004 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2005 REGISTER_VIRTUAL_TYPE.
2006 * gdbarch.h, gdbarch.c: Regenerate.
2007 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2008 * sh64-tdep.c, sparc-tdep.c: Update.
2009
2010 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2011 * remote-vxmips.c (vx_read_register): Ditto.
2012 * remote-vx68.c (vx_read_register): Ditto.
2013 * gnu-nat.c (inf_validate_procs): Ditto.
2014
2015 2003-09-29 J. Brobecker <brobecker@gnat.com>
2016
2017 * infcall.c (call_function_by_hand): Fix build failure
2018 introduced in the previous change to this file.
2019
2020 2003-09-29 Andrew Cagney <cagney@redhat.com>
2021
2022 * NEWS: Mention Objective-C.
2023
2024 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2025
2026 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2027 test if the register has been saved on the stack.
2028 (arm_scan_prologue_cache): When analysing the instruction
2029 "str lr, [sp, #-4]", save the address where lr has been stored.
2030
2031 2003-09-28 Andrew Cagney <cagney@redhat.com>
2032
2033 * frame.c (frame_read_unsigned_register): Delete function.
2034 * frame.h (frame_read_unsigned_register): Delete declaration.
2035 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2036 get_frame_register_unsigned.
2037 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2038 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2039 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2040
2041 * frame.h (frame_read_register): Delete declaration.
2042 * frame.c (frame_read_register): Delete function.
2043 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2044 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2045 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2046 * mips-tdep.c (mips_register_to_value): Ditto.
2047 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2048 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2049
2050 * frame.c (frame_read_signed_register): Delete function.
2051 (frame_read_unsigned_register): Update comments.
2052 * frame.h (frame_read_signed_register): Delete declaration.
2053 * h8300-tdep.c (h8300_print_register): Use
2054 get_frame_register_signed.
2055 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2056
2057 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2058 Rename VALUE_RETURNED_FROM_STACK.
2059 * infcmd.c (print_return_value): Update.
2060 * infcall.c (call_function_by_hand): Update.
2061
2062 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2063
2064 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2065 regcache argument and reverse the order of the other two
2066 arguments. Remove local regcache variable. Determine
2067 architecture from REGCACHE. Update comments.
2068 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2069 reverse the order of the other two arguments. Remove local
2070 regcache variable. Determine architecture from REGCACHE. Update
2071 comments.
2072 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2073 prototypes. Update comments.
2074 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2075 comment.
2076 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2077 Update.
2078 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2079 * i386-interix-nat.c (supply_fpregset): Update.
2080 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2081 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2082 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2083 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2084 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2085 Update.
2086 * i386obsd-tdep.c (fetch_core_registers): Update.
2087 * i386v4-nat.c (supply_fpregset): Update.
2088 * x86-64-linux-nat.c (supply_fpregset): Update.
2089 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2090
2091 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2092
2093 * i386-tdep.h: Put opaque declarations in alphabetical
2094 order. Remove spurious whitespace.
2095 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2096 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2097 * i386-tdep.c (MM0_REGNUM): Remove define.
2098 (i386_mmx_regnum_p): Add gdbarch argument.
2099 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2100 Rewrite using new macro definitions for FPU/SSE registers.
2101 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2102 definitions from i387-tdep.h.
2103 (i386_register_name): Update.
2104 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2105 new macro definitions for FPU/SSE registers.
2106 (i386_extract_return_value): Determine whether floating-point
2107 registers are present by examining REGCACHE's architecture.
2108 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2109 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2110 FPU/SSE registers.
2111 (i386_register_type): Update.
2112 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2113 definitions for FPU registers. Use REGCACHE's architecture to
2114 determine the appropriate register numbers.
2115 (i386_pseudo_register_read, i386_pseudo_register_write,
2116 i386_register_reggroup_p): Update.
2117 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2118 TDEP->mm0_regnum.
2119 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2120 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2121 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2122 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2123 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2124 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2125 *' to `void *'.
2126 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2127 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2128 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2129 definitions for FPU/SSE registers.
2130 (FXSAVE_MXCSR_ADDR): New define.
2131 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2132 TDEP->mm0_regnum.
2133 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2134 (I387_ST0_REGNUM): Define.
2135
2136 * regcache.h (get_regcache_arch): New prototype.
2137 * regcache.c (get_regcache_arch): New function.
2138
2139 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2140 whitespace.
2141
2142 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2143 Initialize using ARRAY_SIZE.
2144
2145 2003-09-27 Andrew Cagney <cagney@redhat.com>
2146
2147 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2148 "init_frame_pc_default".
2149 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2151 * vax-tdep.c (vax_gdbarch_init): Update.
2152 * v850-tdep.c (v850_gdbarch_init): Update.
2153 * sh64-tdep.c (sh64_gdbarch_init): Update.
2154 * s390-tdep.c (s390_gdbarch_init): Update.
2155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2156 * mcore-tdep.c (mcore_gdbarch_init): Update.
2157 * h8300-tdep.c (h8300_gdbarch_init): Update.
2158 * cris-tdep.c (cris_gdbarch_init): Update.
2159 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2160
2161 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2162
2163 * regset.h: New file.
2164 * Makefile.in (regset_h): Add.
2165
2166 2003-09-25 Andrew Cagney <cagney@redhat.com>
2167
2168 * frame.h (deprecated_frame_saved_regs): Rename
2169 get_frame_saved_regs.
2170 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2171 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2172 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2173 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2174 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2175
2176 2003-09-25 Andrew Cagney <cagney@redhat.com>
2177
2178 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2179 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2180 and Java.
2181 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2182 arm*-*-* do not use the new frame code.
2183
2184 2003-09-25 David Carlton <carlton@kealia.com>
2185
2186 * c-exp.y: Remove 'register' declarations.
2187 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2188
2189 2003-09-25 David Carlton <carlton@kealia.com>
2190
2191 * c-exp.y: Include cp-support.h. Add qualified_type.
2192 (yylex): Delete nested type hack; add comments.
2193 * cp-namespace.c (cp_lookup_nested_type): New function.
2194 * cp-support.h: Declare cp_lookup_nested_type.
2195 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2196 instead of value_struct_elt_for_reference.
2197 * valops.c: Include cp-support.h.
2198 (value_aggregate_elt): New function.
2199 (value_namespace_elt): Ditto.
2200 (value_struct_elt_for_reference): Make static.
2201 * value.h: Delete declaration of value_struct_elt_for_reference;
2202 add declaration for value_aggregate_elt.
2203 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2204 (valops.o): Ditto.
2205
2206 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2207
2208 * stack.c: Include "reggroups.h".
2209 (frame_info): Only display registers in all_reggroup.
2210 * Makefile.in (stack.o): Update dependencies.
2211
2212 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2213
2214 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2215 "add ip, sp #n" in the prologue.
2216 (arm_scan_prologue): Ditto.
2217
2218 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2219
2220 * MAINTAINERS (write after approval): Add myself.
2221
2222 2003-09-25 Andreas Schwab <schwab@suse.de>
2223
2224 * m68k-tdep.c: Include "dwarf2-frame.h".
2225 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2226 * Makefile.in (m68k-tdep.o): Update dependencies.
2227
2228 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2229
2230 * sh-tdep.c (struct frame_extra_info): Remove.
2231 (struct sh_frame_cache): New structure.
2232 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2233 (GET_TARGET_REG): Ditto but target register.
2234 (GET_PUSHED_REG): Remove.
2235 (IS_MOV_ARG_TO_REG): New macro.
2236 (IS_MOV_ARG_TO_IND_R14): New macro.
2237 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2238 (IS_MOVW_PCREL_TO_REG): New macro.
2239 (IS_MOVL_PCREL_TO_REG): New macro.
2240 (IS_SUB_REG_FROM_SP): New macro.
2241 (IS_ARG_MOV): Remove.
2242 (IS_MOV_TO_R14): Remove.
2243 (IS_RESTORE_FP): New macro.
2244 (IS_RTS): New macro.
2245 (IS_LDS): New macro.
2246 (IS_MOV_FP_SP): New macro.
2247 (IS_ADD_REG_TO_FP): New macro.
2248 (IS_ADD_IMM_FP): New macro.
2249 (sh_skip_prologue_hard_way): Remove.
2250 (sh_saved_pc_after_call): Remove.
2251 (sh_frame_chain): Remove.
2252 (sh_find_callers_reg): Remove.
2253 (sh_nofp_frame_init_saved_regs): Remove.
2254 (sh_fp_frame_init_saved_regs): Remove.
2255 (sh_init_extra_frame_info): Remove.
2256 (sh_analyze_prologue): New function.
2257 (sh_skip_prologue): Remove deprecated code. Rely on new function
2258 sh_analyze_prologue when after_prologue fails.
2259 (sh_frame_saved_pc): Remove.
2260 (sh_alloc_frame_cache): New function.
2261 (sh_frame_cache): Ditto.
2262 (sh_frame_prev_register): Ditto.
2263 (sh_frame_this_id): Ditto.
2264 (sh_frame_unwind): New structure defining the heuristic frame
2265 sniffer interface.
2266 (sh_frame_sniffer): New function.
2267 (sh_unwind_sp): Ditto.
2268 (sh_unwind_pc): Ditto.
2269 (sh_unwind_dummy_id): Ditto.
2270 (sh_frame_base_address): Ditto.
2271 (sh_frame_base): New structure defining new frame base code.
2272 (sh_in_function_epilogue_p): New function.
2273 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2274 code and to call all new code instead. Initialize dwarf2 and
2275 heuristic frame sniffer.
2276
2277 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2278
2279 * parser-defs.h (struct exp_descriptor): New definition, containing
2280 language-specific info for printing, prefixifying, dumping, and
2281 evaluating expressions.
2282 (exp_descriptor_standard): Declare new variable.
2283 (print_subexp): Make global and declare here (from expprint.c).
2284 (dump_subexp): Ditto.
2285 (dump_subexp_body_standard): Declare.
2286 (operator_length_standard): Declare.
2287 (op_name_standard): Declare.
2288 (print_subexp): Declare.
2289 (print_subexp_standard): Declare.
2290
2291 * language.h (struct language_defn): Add la_exp_desc field to hold
2292 pointer to table for language-specific operators.
2293 Remove evaluate_exp field, which is now in struct exp_descriptor.
2294
2295 * parse.c (operator_length): Move most code to new
2296 operator_length_standard function. Use language-specific information.
2297 (operator_length_standard): New function taking most code from
2298 operator_length.
2299 (exp_descriptor_standard): New constant.
2300
2301 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2302 and OP_EXTENDED_LAST.
2303
2304 * expprint.c (print_subexp): Use language-specific print_subexp.
2305 Make global; remove static declaration.
2306 Move most code to print_subexp_standard.
2307 (print_subexp_standard): New function, containing code formerly in
2308 print_subexp.
2309 (op_name): Add expression to argument signature.
2310 Use langauge-specific op_name.
2311 Move most code to op_name_standard.
2312 (op_name_standard): New function, containing code formerly in op_name.
2313 (dump_subexp): Use new version of op_name function.
2314 Use language-specific dump_subexp_body, and move most existing code to
2315 dump_subexp_body_standard.
2316 (dump_raw_expression): Use new op_name interface.
2317 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2318 (dump_subexp_body_standard): New function, containing code formerly
2319 in dump_subexp_body.
2320
2321 * language.c (unknown_language): Add default la_exp_desc field and
2322 remove evaluate_exp field.
2323 (auto_language): Ditto.
2324 (local_language): Ditto.
2325 * f-lang.c (f_language_defn): Ditto.
2326 * c-lang.c (c_language_defn): Ditto.
2327 (cplus_language_defn): Ditto.
2328 (asm_language_defn): Ditto.
2329 (minimal_language_defn): Ditto.
2330 * p-lang.c (pascal_language_defn): Ditto.
2331 * m2-lang.c (m2_language_defn): Ditto.
2332 * objc-lang.c (objc_language_defn): Ditto.
2333
2334 * jv-lang.c (exp_descriptor_java): New variable, containing
2335 Java-specific expression evaluator.
2336 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2337 field.
2338 * scm-lang.c (exp_descriptor_scm): New variable, containing
2339 Scheme-specific expression evaluator.
2340 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2341 field.
2342 * objc-lang.c (print_object_command): Take evaluate_exp from the
2343 la_exp_desc field.
2344
2345 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2346
2347 * eval.c: Include parser-defs.h for the full declaration of
2348 la_exp_desc's type.
2349 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2350
2351 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2352
2353 * parser-defs.h (operator_length): Declare.
2354
2355 * parse.c (length_of_subexp): Use operator_length to get operator
2356 lengths and arities for operators.
2357 Move most code to new operator_length function.
2358 (operator_length): New function absorbing most code from
2359 length_of_subexp.
2360 (prefixify_subexp): Remove large case and use operator_length instead.
2361 (parse_exp_1): Use renamings:
2362 dump_prefix_expression => dump_raw_expression and
2363 dump_postfix_expression => dump_prefix_expression.
2364
2365 * expression.h (dump_prefix_expression): Rename to ...
2366 (dump_raw_expression): New name.
2367 (dump_postfix_expression): Rename to ...
2368 (dump_prefix_expression): New name.
2369
2370 * expprint.c (dump_subexp): Make global. Add comment.
2371 Move most existing code to dump_subexp_body.
2372 (dump_subexp_body): New function.
2373 (dump_prefix_expression): Rename to dump_raw_expression.
2374 Remove attempt to print the expression via print_expression: it can't
2375 work before the expression is prefixified.
2376 (dump_raw_expression): Renamed from dump_prefix_expression.
2377 (dump_postfix_expression): Rename to dump_prefix_expression, since
2378 that's what it does.
2379 Remove 'note' parameter, since this routine must be used on
2380 prefixified expression.
2381 (dump_prefix_expression): Renamed from dump_postfix_expression.
2382
2383 2003-09-22 Jim Blandy <jimb@redhat.com>
2384
2385 * dwarf2read.c (read_array_type): When building the type for an
2386 array of unspecified length, make sure to choose the upper bound
2387 so that the array's total length comes out to be zero --- that's
2388 how we represent such arrays.
2389
2390 2003-09-22 Michael Chastain <mec@shout.net>
2391
2392 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2393
2394 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2395
2396 * top.c (quit_force): Fix indirect call to quit_target so
2397 a struct qt_args pointer is passed.
2398
2399 2003-09-22 Andrew Cagney <cagney@redhat.com>
2400
2401 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2402 * arch-utils.c (init_frame_pc_noop): Delete function.
2403 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2404 "init_frame_pc".
2405 * mips-tdep.c (mips_gdbarch_init): Ditto.
2406 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2407 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2408 declaration.
2409 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2410 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2411 declaration.
2412 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2413
2414 2003-09-22 Anthony Green <green@redhat.com>
2415
2416 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2417 declaration.
2418
2419 2003-09-20 Andrew Cagney <cagney@redhat.com>
2420
2421 * breakpoint.c: Eliminate ARGSUSED.
2422 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2423 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2424 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2425 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2426 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2427 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2428 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2429 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2430 * wince.c, remote-vx.c: Ditto.
2431
2432 * cli/cli-script.c: Remove "register" attributes.
2433 * config/pa/tm-hppa.h: Ditto.
2434 * cli/cli-decode.c: Ditto.
2435 * cli/cli-cmds.c: Ditto.
2436
2437 2003-09-19 Andrew Cagney <cagney@redhat.com>
2438
2439 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2440 DEPRECATED_NPC_REGNUM.
2441 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2442
2443 2003-09-19 Christopher Faylor <cgf@redhat.com>
2444
2445 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2446
2447 2003-09-19 Jim Blandy <jimb@redhat.com>
2448
2449 * macrotab.c (macro_include): Use the correct comparison to find
2450 the appropriate place for this inclusion in the list.
2451
2452 2003-09-19 Andrew Cagney <cagney@redhat.com>
2453
2454 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2455 (DEPRECATED_HPUX_TEXT_END): Define.
2456 (deprecated_hpux_text_end): Declare.
2457 (struct target_ops): Declare opaque.
2458 * hppah-nat.c (text_end): Make static.
2459 (deprecated_hpux_text_end): New function.
2460 * exec.c (text_end): Delete global variable.
2461 (NEED_TEXT_START_END): Do not define.
2462 (exec_file_attach): Replace code computing "text_end" code with
2463 call to DEPRECATED_HPUX_TEXT_END.
2464
2465 2003-09-19 Andrew Cagney <cagney@redhat.com>
2466
2467 * utils.c (align_up, align_down): New functions.
2468 * defs.h (align_up, align_down): Declare.
2469 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2470 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2471 and "align_down".
2472 (round_up, round_down): Delete functions.
2473 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2474 "align_down".
2475 (ROUND_DOWN, ROUND_UP): Delete macros.
2476 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2477 * h8300-tdep.c: Replace "round_up" and "round_down" with
2478 "align_up" and "align_down".
2479 (round_up, round_down): Delete macros.
2480 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2481 "align_down".
2482 (ROUND_UP, ROUND_DOWN): Delete macros.
2483
2484 2003-09-18 J. Brobecker <brobecker@gnat.com>
2485
2486 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2487 hard-coded constant. Use the proper machine name instead.
2488
2489 2003-09-17 Andrew Cagney <cagney@redhat.com>
2490
2491 * sparc-tdep.c (legacy_register_name): Delete function.
2492 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2493 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2494 * infcmd.c (gdb_register_name): Delete variable.
2495 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2496 REGISTER_NAME and "tm.h".
2497 * gdbarch.h, gdbarch.c: Regenerate.
2498 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2499 REGISTER_NAMES in comments.
2500 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2501 * m68klinux-nat.c (regmap): Ditto.
2502
2503 2003-09-17 Jim Blandy <jimb@redhat.com>
2504
2505 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2506
2507 2003-09-17 Andrew Cagney <cagney@redhat.com>
2508
2509 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2510 (ppcnbsd_init_abi): Set "use_struct_convention" to
2511 "ppcnbsd_use_struct_convention".
2512
2513 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2514
2515 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2516 * gdbarch.h, gdbarch.c: Regenerate.
2517 (stabs_argument_has_addr): New architecture method.
2518 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2519 * arch-utils.c: Include "buildsym.h".
2520 (default_stabs_argument_has_addr): New function.
2521 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2522 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2523
2524 2003-09-17 Andrew Cagney <cagney@redhat.com>
2525
2526 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2527 * gdbarch.h, gdbarch.c: Regenerate.
2528 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2529 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2530 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2531 * sparcnbsd-tdep.c: Update.
2532
2533 2003-09-17 Andrew Cagney <cagney@redhat.com>
2534
2535 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2536 * gdbarch.h, gdbarch.c: Regenerate.
2537 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2538 * d10v-tdep.c, frame.c: Update.
2539 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2540 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2541 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2542 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2543 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2544 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2545 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2546 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2547 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2548 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2549 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2550 * config/pa/nm-hppah.h: Update.
2551
2552 2003-09-16 Andrew Cagney <cagney@redhat.com>
2553
2554 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2555 "use_struct_convention" to "ppc_linux_use_struct_convention".
2556 (ppc_linux_use_struct_convention): New function.
2557 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2558 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2559 "rs6000_use_struct_convention".
2560 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2561 declaration.
2562 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2563 Delete function.
2564
2565 2003-09-16 Andrew Cagney <cagney@redhat.com>
2566
2567 * buildsym.c: Remove more occurances of "register".
2568 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2569 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2570 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2571 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2572 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2573 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2574 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2575 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2576
2577 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2578
2579 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2580 numbers to enumeration values.
2581 * sh-tdep.c: Accomodate above change.
2582 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2583 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2584 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2585 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2586 (IS_FPUSH): Rename from IS_FMOV.
2587 (sh_extract_struct_value_address): Remove useless comment.
2588 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2589 instead of own local values.
2590 (sh_dump_tdep): Remove.
2591 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2592 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2593
2594 2003-09-15 Andrew Cagney <cagney@redhat.com>
2595
2596 * doublest.c (convert_floatformat_to_doublest): No longer need to
2597 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2598
2599 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * values.c (unpack_double): Call floatformat_is_valid.
2602
2603 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2604
2605 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2606 ps_strings into a long.
2607
2608 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2609 _initialize_am64fbsd_nat.
2610
2611 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2612
2613 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2614 associated with DW_AT_ranges attribute is out of bounds.
2615
2616 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2617
2618 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2619
2620 2003-09-14 Michael Chastain <mec@shout.net>
2621
2622 * config/m68k/nm-apollo68v.h: Delete.
2623 * config/m68k/xm-apollo68v.h: Delete.
2624
2625 2003-09-14 Andrew Cagney <cagney@redhat.com>
2626
2627 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2628 * dcache.c: Update copyrights and descriptions.
2629 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2630
2631 2003-09-14 Andrew Cagney <cagney@redhat.com>
2632
2633 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2634 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2635
2636 2003-09-14 Andrew Cagney <cagney@redhat.com>
2637
2638 * alpha-nat.c: Remove some occurances of "register".
2639 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2640 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2641 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2642 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2643 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2644 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2645 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2646 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2647 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2648 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2649 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2650 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2651 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2652 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2653 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2654 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2655 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2656 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2657 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2658 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2659 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2660 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2661
2662 2003-09-13 Andrew Cagney <cagney@redhat.com>
2663
2664 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2665 * ppc-tdep.h (struct regcache): Declare opaque.
2666 * objfiles.h (struct objfile_data): Declare opaque.
2667 * cp-support.h (struct objfile): Declare opaque.
2668 * linux-nat.h (target_waitstatus): Declare opaque.
2669
2670 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2671
2672 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2673 (stabs_argument_has_addr): New architecture method.
2674 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2675 * arch-utils.c: Include "buildsym.h".
2676 (default_stabs_argument_has_addr): New function.
2677 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2678 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2679
2680 * cris-tdep.c (cris_gdbarch_init): Set
2681 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2682 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2683 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2684 * mips-tdep.c (mips_gdbarch_init): Likewise.
2685 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2686 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2687
2688 2003-09-13 Andrew Cagney <cagney@redhat.com>
2689
2690 * values.c (using_struct_return): Delete "function" and "funcaddr"
2691 parameters.
2692 * value.h (using_struct_return): Update declaration.
2693 * infcmd.c (finish_command_continuation): Update.
2694 (finish_command): Update.
2695 * infcall.c (call_function_by_hand): Update.
2696 * eval.c (evaluate_subexp_standard): Update.
2697
2698 2003-09-13 Christopher Faylor <cgf@redhat.com>
2699
2700 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2701 SSE registers since gdb will not operate correctly without this.
2702 Restore include file ordering munged in previous change.
2703 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2704
2705 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2706
2707 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2708 REG_STRUCT_HAS_ADDR.
2709 * gdbarch.c, gdbarch.h: Updated.
2710 * infcall.c (call_function_by_hand): Update.
2711 * stabsread.c (define_symbol): Updated.
2712
2713 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2714
2715 2003-09-12 Christopher Faylor <cgf@redhat.com>
2716
2717 * win32-nat.c: Reorganize so that defines used by target headers are
2718 actually defined by the system headers.
2719 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2720 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2721
2722 2003-09-12 Jim Blandy <jimb@redhat.com>
2723
2724 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2725 the file has no .data, .bss, or .rodata sections. Instead wait
2726 until we see a variable alleged to live in one of those sections.
2727
2728 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2729 .bss section, presume that any variables we find live in the
2730 .rodata section.
2731
2732 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2733 offsets for global and static variables.
2734
2735 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2736 symbol types are, by definition, in the .data section, so it is
2737 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2738 If there is no .data section, there should be no N_DATA or N_DATA
2739 | N_EXT symbols.
2740
2741 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2742
2743 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2744 (amd64fbsd_sigcontext_addr): Rewrite.
2745 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2746 with correct values.
2747 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2748 (amd64fbsd_init_abi): Fix typo.
2749
2750 2003-09-12 Andrew Cagney <cagney@redhat.com>
2751
2752 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2753 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2754
2755 2003-09-12 Andrew Cagney <cagney@redhat.com>
2756
2757 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2758 "entry_file_highpc". Update comments.
2759 * defs.h (deprecated_inside_entry_file): Rename
2760 "inside_entry_file".
2761 * blockframe.c (deprecated_inside_entry_file): Rename
2762 "inside_entry_file".
2763 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2764 * vax-tdep.c (vax_frame_chain): Update.
2765 * sh64-tdep.c (sh64_frame_chain): Update.
2766 * sh-tdep.c (sh_frame_chain): Update.
2767 * rs6000-tdep.c (rs6000_frame_chain): Update.
2768 * ns32k-tdep.c (ns32k_frame_chain): Update.
2769 * mips-tdep.c (mips_frame_chain): Update.
2770 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2771 * m32r-tdep.c (m32r_frame_this_id): Update.
2772 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2773 * frv-tdep.c (frv_frame_this_id): Update.
2774 * d10v-tdep.c (d10v_frame_this_id): Update.
2775 * cris-tdep.c (cris_frame_chain): Update.
2776 * blockframe.c (legacy_frame_chain_valid): Update.
2777 * avr-tdep.c (avr_frame_this_id): Update.
2778 * arm-tdep.c (arm_prologue_this_id): Update.
2779 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2780 * objfiles.c (objfile_relocate): Update.
2781 * mipsread.c (mipscoff_symfile_read): Update.
2782 (mipscoff_symfile_read): Update.
2783 * mdebugread.c (parse_partial_symbols): Update.
2784 * dwarfread.c (read_file_scope): Update.
2785 * dwarf2read.c (read_file_scope): Update.
2786 * dbxread.c (read_dbx_symtab): Update.
2787 (read_dbx_symtab): Update.
2788 * coffread.c (complete_symtab): Update.
2789
2790 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2791
2792 * top.c (quit_target): New static helper function.
2793 (quit_force): Moved code to quit_target(). Call quit_target()
2794 via catch_errors() to catch errors during quit.
2795
2796 2003-09-11 David Carlton <carlton@kealia.com>
2797
2798 * buildsym.c (finish_block): Use allocate_block to allocate the
2799 block.
2800 * mdebugread.c (new_block): Add FIXME.
2801
2802 2003-09-11 David Carlton <carlton@kealia.com>
2803
2804 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2805 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2806 (recursive_dump_type): Ditto.
2807 * printcmd.c (print_formatted): Ditto.
2808 * typeprint.c (print_type_scalar): Ditto.
2809 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2810 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2811 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2812 maint_cplus_cmd_list.
2813 * cp-support.c: Make maint_cplus_cmd_list extern.
2814 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2815 command.h.
2816 (lookup_symbol_file): Look in possible namespace blocks when
2817 appropriate.
2818 (initialize_namespace_symtab): New.
2819 (get_possible_namespace_block, free_namespace_block)
2820 (check_possible_namespace_symbols)
2821 (check_possible_namespace_symbols_loop)
2822 (check_one_possible_namespace_symbol)
2823 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2824 (_initialize_cp_namespace): Ditto.
2825 * block.h: Declare allocate_block.
2826 * block.c (allocate_block): New.
2827 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2828 allocate_block.
2829 * symfile.h: Update declaration of add_psymbol_to_list.
2830 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2831 question.
2832 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2833 scan_partial_symbols_call.
2834 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2835 helper functions.
2836 (add_partial_symbol): If necessary, scan mangled names for names
2837 of namespaces.
2838 (add_partial_namespace): Add NAMESPACE argument; generate partial
2839 symbols associated to namespaces.
2840 (add_partial_enumeration): Add NAMESPACE argument.
2841 (new_symbol): Allow namespace syms.
2842 (read_namespace): Generate namespace syms.
2843 * objfiles.h: Add opaque declaration of struct symtab.
2844 (struct objfile): Add cp_namespace_symtab member.
2845 * objfiles.c (allocate_objfile): Set
2846 objfile->cp_namespace_symtab.
2847 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2848 dictionary_h, command_h.
2849
2850 2003-09-11 Andrew Cagney <cagney@redhat.com>
2851
2852 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2853 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2854 near the function's end.
2855 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2856 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2857 regcache_raw_write_signed to set SP_REGNUM.
2858
2859 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2860
2861 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2862 orig_addrs is set up properly.
2863
2864 2003-09-11 Andrew Cagney <cagney@redhat.com>
2865
2866 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2867 * gdbarch.h, gdbarch.c: Re-generate.
2868 * infcall.c (call_function_by_hand): Update.
2869 * hppa-tdep.c (hppa_push_arguments): Update.
2870 * ada-lang.c (place_on_stack): Update.
2871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2872 * sparc-tdep.c (sparc_gdbarch_init): Update.
2873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2874 * hppa-tdep.c (hppa_gdbarch_init): Update.
2875 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2876 stack_align.
2877
2878 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2879
2880 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2881 register do need a frame.
2882
2883 2003-09-11 Andrew Cagney <cagney@redhat.com>
2884
2885 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2886 buildable since GDB 5.0.
2887 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2888 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2889 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2890 * irix4-nat.c: Delete file.
2891 * config/mips/irix4.mh: Delete file.
2892 * config/mips/irix3.mh: Delete file.
2893 * config/mips/irix3.mt: Delete file.
2894 * config/mips/tm-irix3.h: Delete file.
2895 * config/mips/nm-irix3.h: Delete file.
2896 * config/mips/xm-irix3.h: Delete file.
2897 * config/mips/nm-irix4.h: Delete file.
2898 * config/mips/xm-irix4.h: Delete file.
2899 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2900
2901 2003-09-10 J. Brobecker <brobecker@gnat.com>
2902
2903 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2904 * Makefile.in (hppa-tdep.o): Update dependencies.
2905
2906 2003-09-10 James E Wilson <wilson@specifixinc.com>
2907
2908 * MAINTAINERS: Change my e-mail address. Move to paper trail
2909 section.
2910
2911 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2912
2913 * MAINTAINERS (frv): New ISA entry.
2914
2915 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2916
2917 * frv-tdep.c (dis-asm.h): Include.
2918 * Makefile.in (frv-tdep.o): Update dependencies.
2919
2920 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2921
2922 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2923 Fix typo for high range of floating registers.
2924
2925 2003-09-09 David Carlton <carlton@kealia.com>
2926
2927 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2928 highpc initialization here out of scan_partial_symbols.
2929 (scan_partial_symbols): Restructure into a recursive version,
2930 calling add_partial_namespace and add_partial_enumeration when
2931 appropriate.
2932 (add_partial_namespace): New.
2933 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2934
2935 2003-09-09 Andrew Cagney <cagney@redhat.com>
2936
2937 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2938 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2939 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2940 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2941
2942 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2943 (rs6000_push_dummy_call): Set the "TOC" register.
2944
2945 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2946 methods "max_register_raw_size", "max_register_virtual_size" or
2947 "register_virtual_size".
2948
2949 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2950
2951 * MAINTAINERS: Update my e-mail address.
2952
2953 2003-09-09 Andrew Cagney <cagney@redhat.com>
2954
2955 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2956 (rs6000_push_dummy_call): Store the struct return address.
2957 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2958
2959 2003-09-09 Andrew Cagney <cagney@redhat.com>
2960
2961 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2962 "ppc_sysv_abi_push_arguments".
2963 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2964 "ppc_sysv_abi_push_arguments".
2965 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2966 instead of "push_arguments".
2967 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2968
2969 2003-09-09 Andrew Cagney <cagney@redhat.com>
2970
2971 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2972 instead of CALL_DUMMY_ADDRESS.
2973
2974 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2975
2976 * p-lang.c: Eliminate "register".
2977 * c-lang.c: Ditto.
2978 * expprint.c: Ditto.
2979 * f-lang.c: Ditto.
2980 * jv-lang.c: Ditto.
2981 * language.c: Ditto.
2982 * m2-lang.c: Ditto.
2983 * parse.c: Ditto.
2984 * scm-lang.c: Ditto.
2985 * objc-lang.c: Ditto.
2986
2987 2003-09-09 Nick Clifton <nickc@redhat.com>
2988
2989 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2990
2991 2003-09-04 Andrew Cagney <cagney@redhat.com>
2992
2993 * avr-tdep.c: Include "dis-asm.h".
2994 * cris-tdep.c: Include "dis-asm.h".
2995 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2996 instead of corresponding typedef.
2997 * h8300-tdep.c: Include "dis-asm.h".
2998 * ia64-tdep.c: Include "dis-asm.h".
2999 * i386-tdep.c: Include "dis-asm.h".
3000 (i386_print_insn): Use "struct disassemble_info" instead of
3001 corresponding typedef.
3002 * m68k-tdep.c: Include "dis-asm.h".
3003 * mcore-tdep.c: Include "dis-asm.h".
3004 * mips-tdep.c: Include "dis-asm.h".
3005 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3006 instead of corresponding typedef.
3007 * ns32k-tdep.c: Include "dis-asm.h".
3008 * s390-tdep.c: Include "dis-asm.h".
3009 * sparc-tdep.c: Include "dis-asm.h".
3010 * vax-tdep.c: Include "dis-asm.h".
3011 * v850-tdep.c: Include "dis-asm.h".
3012 * mn10300-tdep.c: Include "dis-asm.h".
3013 * rs6000-tdep.c: Include "dis-asm.h".
3014 * xstormy16-tdep.c: Include "dis-asm.h".
3015 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3016 print_insn_xstormy16.
3017 * Makefile.in (v850-tdep.o): Update dependencies.
3018 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3019 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3020 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3021 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3022 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3023 (gdbarch_h): Remove $(dis_asm_h).
3024 * disasm.c: Include "dis-asm.h".
3025 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3026 corresponding typedef.
3027 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3028 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3029 * gdbarch.sh: Do not include "dis-asm.h".
3030 (struct disassemble_info): Declare opaque.
3031 (TARGET_PRINT_INSN): Update declaration.
3032 * gdbarch.h, gdbarch.c: Re-generate.
3033
3034 2003-09-08 Andrew Cagney <cagney@redhat.com>
3035
3036 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3037 CALL_DUMMY_ADDRESS, change to a predicate.
3038 * gdbarch.h, gdbarch.c: Re-generate.
3039 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3040 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3041 * infcall.c (call_function_by_hand): Ditto.
3042 * sparc-tdep.c (sparc_push_return_address): Ditto.
3043 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3044 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3045 CALL_DUMMY_ADDRESS with entry_point_address.
3046 * v850-tdep.c (v850_push_return_address): Ditto.
3047 * s390-tdep.c (s390_push_return_address): Ditto.
3048 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3049 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3050 * mcore-tdep.c (mcore_push_return_address): Ditto.
3051 * cris-tdep.c (cris_push_return_address): Ditto.
3052 * arm-tdep.c (arm_push_return_address): Ditto.
3053
3054 2003-09-08 Andrew Cagney <cagney@redhat.com>
3055
3056 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3057 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3058 and REG_UNMODIFIED to REG_SAME_VALUE.
3059 (execute_cfa_program): Update.
3060 (dwarf2_frame_cache): Update. Initialize table to
3061 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3062 location.
3063 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3064
3065 2003-09-08 Andrew Cagney <cagney@redhat.com>
3066
3067 * gnu-nat.c: Remove "inline" function attribute.
3068 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3069
3070 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3071
3072 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3073 target.
3074
3075 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3076
3077 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3078 (frame_extra_info): Rename this struct to frv_unwind_cache.
3079 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3080 Add fields ``prev_sp'' and ``base''.
3081 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3082 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3083 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3084 Delete.
3085 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3086 Revise all callers. Fill in the unwind cache argument and make
3087 other adjustments to account for new frame mechanisms.
3088 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3089 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3090 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3091 (frv_frame_unwind, frv_frame_base): New structs.
3092 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3093 additional arguments expected by this method and adjust function
3094 body accordingly.
3095 (frv_gdbarch_init): Remove calls to the following functions:
3096 set_gdbarch_deprecated_init_frame_pc(),
3097 set_gdbarch_deprecated_saved_pc_after_call(),
3098 set_gdbarch_deprecated_frame_chain(),
3099 set_gdbarch_deprecated_frame_saved_pc(),
3100 set_gdbarch_deprecated_frame_init_saved_regs(),
3101 set_gdbarch_deprecated_push_arguments(),
3102 set_gdbarch_deprecated_push_return_address(),
3103 set_gdbarch_deprecated_pop_frame(),
3104 set_gdbarch_deprecated_call_dummy_words(),
3105 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3106 set_gdbarch_deprecated_init_extra_frame_info(),
3107 set_gdbarch_deprecated_dummy_write_sp(), and
3108 set_gdbarch_deprecated_pc_in_call_dummy().
3109 Add calls to the following functions:
3110 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3111 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3112 frame_base_set_default().
3113 * Makefile.in (frv-tdep.o): Update dependencies.
3114
3115 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3116
3117 * dwarf2-frame.c (read_encoded_value): Add support for
3118 DW_EH_PE_aligned encoding.
3119
3120 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3121
3122 * infrun.c (normal_stop): Don't print a message if the inferior
3123 has exited.
3124
3125 2003-09-08 Jim Blandy <jimb@redhat.com>
3126
3127 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3128 * dbxread.c: #include "gdb_assert.h".
3129 (read_dbx_symtab): If the objfile has no .data section, use the
3130 section index for the .bss section instead.
3131
3132 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3133
3134 * frame.c (deprecated_safe_get_selected_frame): New function.
3135 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3136 * findvar.c (read_var_value): Call it.
3137
3138 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3139
3140 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3141 (sh64-tdep.o): Add dependencies.
3142 * configure.tgt: Add FIXME to sh-*-linux*.
3143 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3144 (sh_gdbarch_init): Always set correct sh_show_regs function
3145 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3146 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3147 * sh64-tdep.c: New file, containing all sh64 related code from
3148 sh-tdep.c.
3149 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3150 * config/sh/linux.mt (TDEPFILES): Ditto.
3151 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3152 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3153 * config/sh/wince.mt (TDEPFILES): Ditto.
3154
3155 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3156
3157 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3158 (stop_wait_callback): Handle !lp->signalled also.
3159 (lin_lwp_has_pending, flush_callback): New functions.
3160 (lin_lwp_wait): Call flush_callback.
3161 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3162 (linux_proc_pending_signals): New function.
3163 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3164
3165 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3166
3167 From Nick Kelsey <nickk@ubicom.com>:
3168 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3169 when the stop PC is at the beginning of a function also.
3170
3171 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3172
3173 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3174 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3175
3176 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3177
3178 * sol-thread.c: Include "gdb_string.h".
3179
3180 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3181
3182 * gcore.c: Reorder include files in alphabetical order. Include
3183 "gdb_assert.h". Various coding style fixes.
3184 (derive_stack_segment, derive_heap_segment): Replace check for
3185 non-null BOTTOM and TOP with gdb_assert.
3186 (derive_heap_segment): Replace check for successful creation of
3187 ZERO with gdb_assert.
3188 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3189
3190 2003-09-04 Andrew Cagney <cagney@redhat.com>
3191
3192 * thread-db.c (verbose_dlsym): New function.
3193 (thread_db_load): Use verbose_dlsym
3194 (thread_db_new_objfile): Print that libthread_db was loaded, and
3195 that thread debugging was enabled.
3196
3197 2003-09-04 Andrew Cagney <cagney@redhat.com>
3198
3199 * configure.tgt: Add "mips64*-*-*" target. Delete
3200 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3201 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3202 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3203 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3204 mips*-sony-*, and mips64*-*-elf* targets.
3205 * config/mips/embedl.mt: Delete file.
3206 * config/mips/embedl64.mt: Delete file.
3207 * config/mips/mips.mt: Delete file.
3208 * config/mips/mips64.mt: Delete file.
3209 * config/mips/tm-embed.h: Delete file.
3210 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3211 * config/mips/embed64.mt: Delete out-of-date comment.
3212
3213 2003-09-04 Andrew Cagney <cagney@redhat.com>
3214
3215 * hppa-tdep.c (hppa_gdbarch_init): Set
3216 "have_nonsteppable_watchpoint".
3217 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3218 * mips-tdep.c (mips_dump_tdep): Do not print
3219 HAVE_NONSTEPPABLE_WATCHPOINT.
3220 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3221 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3222 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3223 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3224
3225 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3226
3227 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3228 unused code. Add comment.
3229
3230 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3231
3232 * breakpoint.c (watchpoint_check): Check for pc being in an
3233 epilogue if watchpoint frame couldn't be found.
3234
3235 2003-09-04 Andrew Cagney <cagney@redhat.com>
3236
3237 * Makefile.in: Re-generate all dependencies.
3238
3239 2003-09-03 Andrew Cagney <cagney@redhat.com>
3240
3241 * arch-utils.h (legacy_print_insn): Delete declaration.
3242 * arch-utils.c (legacy_print_insn): Delete function.
3243 * disasm.c (deprecated_tm_print_insn_info): Delete.
3244 (_initialize_disasm): Delete function, contained code initializing
3245 deprecated_tm_print_insn_info.
3246 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3247 (deprecated_tm_print_insn_info): Delete.
3248 (TARGET_PRINT_INSN): Do not provide a default.
3249 * gdbarch.h, gdbarch.c: Re-generate.
3250
3251 2003-09-03 Andrew Cagney <cagney@redhat.com>
3252
3253 * disasm.c (fprintf_disasm): New function.
3254 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3255 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3256 reverts 2003-08-14 change.
3257 (_initialize_disasm): Call "init_disassemble_info", instead of
3258 INIT_DISASSEMBLE_INFO_NO_ARCH.
3259
3260 2003-09-03 Michael Snyder <msnyder@redhat.com>
3261
3262 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3263
3264 2003-09-03 Andrew Cagney <cagney@redhat.com>
3265
3266 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3267 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3268 * symfile.c (syms_from_objfile): Update.
3269 (reread_symbols): `Update
3270 * exec.c (exec_file_attach): Update.
3271 (exec_file_attach): Update.
3272 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3273 2003-08-29 change.
3274 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3275
3276 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3277
3278 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3279 trad-frame.h.
3280 (arm_get_cache): Delete macro.
3281 (struct arm_prologue_cache): Update comments. Make saved_regs into
3282 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3283 to prev_sp.
3284 (thumb_scan_prologue): Update for cache changes. Don't call
3285 DEPRECATED_PC_IN_CALL_DUMMY.
3286 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3287 argument and use it in desperation search for our prologue. Do not
3288 search past the specified PC.
3289 (arm_make_prologue_cache): Simplify.
3290
3291 (arm_prologue_this_id, arm_prologue_prev_register)
3292 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3293 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3294 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3295 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3296 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3297
3298 (arm_frame_chain_valid, arm_find_callers_reg)
3299 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3300 (arm_pop_frame): Delete obsolete methods.
3301 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3302
3303 (arm_gdbarch_init): Update for new frame methods. Register prologue
3304 and sigtramp unwinders. Set the default frame base method.
3305
3306 * Makefile.in (arm-tdep.o): Update dependencies.
3307 * varobj.c (find_frame_addr_in_frame_chain): Call
3308 get_frame_base_address.
3309 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3310
3311 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3312
3313 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3314 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3315 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3316 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3317 Take NEXT_FRAME and CACHE arguments. Call
3318 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3319 Set unwound_pc in CACHE instead of modifying the frame argument.
3320 Don't bother checking the frame type when looking for sigtramp
3321 frames.
3322 (arm_make_prologue_cache, arm_frame_chain)
3323 (arm_init_extra_frame_info): New functions.
3324
3325 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3326
3327 * arm-tdep.c (arm_get_cache): Define.
3328 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3329 unwound_sp, unwound_pc, and saved_regs.
3330 (thumb_scan_prologue): Take a cache instead of the frame.
3331 (arm_scan_prologue): Likewise.
3332 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3333 instead of a temporary frame.
3334 (arm_init_extra_frame_info): Allocate and use a cache.
3335 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3336
3337 2003-09-03 Andrew Cagney <cagney@redhat.com>
3338
3339 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3340 * config/mips/wince.mt (TM_CLIBS): Ditto.
3341 * config/sh/wince.mt (TM_CLIBS): Ditto.
3342 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3343 * config/sparc/sp64.mt (CC): Delete.
3344
3345 2003-09-03 Andrew Cagney <cagney@redhat.com>
3346
3347 * defs.h: Do not include "arch-utils.h".
3348 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3349 GDB_MULTI_ARCH_PURE.
3350 * configure.in (GDB_MULTI_ARCH): Do not define.
3351 * configure, config.in: Regenerate.
3352 * configure.tgt: Do not set variable "gdb_multi_arch".
3353 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3354 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3355 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3356 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3357 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3358 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3359 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3360 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3361 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3362 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3363 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3364 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3365 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3366 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3367 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3368 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3369 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3370 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3371
3372 2003-08-30 Michael Chastain <mec@shout.net>
3373
3374 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3375 * config/m68k/nm-hp300hpux.h: Delete.
3376 * config/m68k/tm-hp300hpux.h: Delete.
3377 * config/m68k/xm-hp300hpux.h: Delete.
3378 * config/m68k/xm-hp300bsd.h: Delete.
3379 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3380 tm-hp300hpux.h, xm-hp300hpux.h.
3381 * somsolib.c: Remove comment about hp300 shared libraries.
3382
3383 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3384
3385 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3386 Only define PTRACE_GET_THREAD_AREA is not already defined.
3387 Various style fixes in code and comments and some additional
3388 spelling fixes in comments. Move after functions dealing with
3389 debug registers.
3390 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3391 Fix coding-style.
3392
3393 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3394 frame_unwind_register_unsigned instead of
3395 frame_unwind_unsigned_register.
3396
3397 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3398
3399 * configure.in: Search for gethostbyname in libnsl.
3400 * configure: Regenerated.
3401
3402 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3403
3404 * configure.in: Remove redundant AC_MSG_RESULT in check for
3405 uintptr_t in stdint.h.
3406 * configure: Regenerated.
3407
3408 * amd64-nat.h (struct regcache): Add opaque declaration.
3409
3410 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3411 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3412 Change "register array" to "register cache" in comments.
3413 (x86_64_linux_gregset64_reg_offset): New variable.
3414 (GETREGS_SUPPLIES): Remove macro.
3415 (supply_gregset): Call amd64_supply_native_gregset instead of
3416 x86_64_linux_supply_gregset.
3417 (fill_gregset): Rename `regno' to `regnum'. Call
3418 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3419 (store_regs): Rename `regno' to `regnum'.
3420 (store_fpregs): Rename `regno' to `regnum'.
3421 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3422 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3423 Reorganize function a bit.
3424 (store_inferior_registers): Rename `regno' to `regnum'. Use
3425 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3426 Reorganize function a bit.
3427 (_initialize_x86_64_linux_nat): New function.
3428 * config/i386/x86-64linux.mh.
3429
3430 2003-08-29 Andrew Cagney <cagney@redhat.com>
3431
3432 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3433 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3434 (target_remove_watchpoint): Delete macro.
3435 (target_insert_watchpoint): Delete macro.
3436 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3437 (remote_mips_stopped_by_watchpoint): Delete declaration.
3438 (remote_mips_remove_watchpoint): Delete declaration.
3439 (remote_mips_set_watchpoint): Delete declaration.
3440 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3441 * remote-mips.c (_initialize_remote_mips): Set
3442 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3443 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3444 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3445 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3446 (mips_stopped_by_watchpoint): Rename
3447 remote_mips_stopped_by_watchpoint.
3448 (mips_can_hardware_watchpoint): Rename
3449 remote_mips_can_use_hardware_watchpoint, update function
3450 signature.
3451
3452 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3453
3454 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3455 USER_DS. We haven't given them a register number yet.
3456
3457 * amd64-nat.h: New file.
3458 * amd64-nat.c: New file.
3459 * amd64fbsd-nat.c: Include "amd64-nat.h".
3460 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3461 (amd64fbsd32_r_reg_offset): New variable.
3462 (supply_gregset): Simply call amd64_supply_native_gregset.
3463 (fill_gregset): Rename `regno' to `regnum'. Simply call
3464 amd64_collect_native_gregset.
3465 (fill_fpregset): Rename `regno' to `regnum'.
3466 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3467 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3468 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3469 `fpregset_t'. Call amd64_supply_native_gregset instead of
3470 supply_gregset. Call x86_64_supply_fxsave instead of
3471 supply_fpregset.
3472 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3473 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3474 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3475 `fpregset_t'. Call amd64_collect_native_gregset instead of
3476 fill_gregset. Call x86_64_collect_fxsave instead of
3477 fill_fpregset.
3478 (_initialize_am64fbsd_nat): Initialize
3479 amd64_native_gregset32_reg_offset and
3480 amd64_native_gregset64_reg_offset.
3481 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3482
3483 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3484 null pointer. Fix typo in comment.
3485
3486 * regcache.c (supply_register): Reimplement to call
3487 regcache_raw_supply.
3488 (regcache_collect): Reimplement by calling regcache_raw_collect.
3489
3490 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3491
3492 * regcache.c (register_buffer): Consitify first argument.
3493 (regcache_raw_supply, regcache_raw_collect): New
3494 functions.
3495
3496 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3497
3498 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3499 by Nathan J. Williams.
3500
3501 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3502
3503 * lin-lwp.c (wait_lwp): New function, copied from
3504 stop_wait_callback. Clean up.
3505 (stop_wait_callback): Use wait_lwp.
3506
3507 2003-08-28 Andrew Cagney <cagney@redhat.com>
3508
3509 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3510 flavour and disassembler options.
3511 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3512 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3513 deprecated_tm_print_insn_info.
3514
3515 2003-08-27 Andrew Cagney <cagney@redhat.com>
3516
3517 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3518 Use target_read_memory.
3519 (s390_get_frame_info): Update. Do not reference
3520 deprecated_tm_print_insn_info.
3521 (s390_check_function_end, s390_is_sigreturn): Ditto.
3522
3523 2003-08-27 Andrew Cagney <cagney@redhat.com>
3524
3525 * Makefile.in (cris-tdep.o): Update dependencies.
3526 * cris-tdep.c: Include "gdb_assert.h".
3527 (cris_gdbarch_init): Set print_insn.
3528 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3529 (cris_delayed_get_disassembler): Simplify, directly call the
3530 disassembler returned by cris_get_disassembler.
3531 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3532 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3533 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3534 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3535 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3536 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3537 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3538 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3539 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3540 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3541 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3542 (gdb_print_insn_sparc): Delete function.
3543 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3544 deprecated_tm_print_insn_info.
3545 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3546 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3547 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3549 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3550 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3551 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3552 (s390_gdbarch_init): Set print_insn.
3553
3554 2003-08-27 Andrew Cagney <cagney@redhat.com>
3555
3556 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3557 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3558 * infcall.c (call_function_by_hand): Convert the entry point
3559 address into a code address.
3560
3561 2003-08-27 Andrew Cagney <cagney@redhat.com>
3562
3563 * dsrec.c: Include "gdb_string.h".
3564 * Makefile.in (dsrec.o): Update dependencies.
3565
3566 2003-08-27 Michael Chastain <mec@shout.net>
3567
3568 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3569
3570 2003-08-27 Andrew Cagney <cagney@redhat.com>
3571
3572 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3573 (alpha_osf1_init_abi): Do not set call_dummy_address.
3574
3575 2003-08-27 David Carlton <carlton@kealia.com>
3576
3577 From Randolph Chung <tausq@debian.org>:
3578 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3579 compiles with -Wformat-nonliteral -Werror.
3580
3581 2003-08-26 Jim Blandy <jimb@redhat.com>
3582
3583 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3584 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3585 bfd_lookup_symbol, since we only want symbols in code sections.
3586 (look_for_base): Pass zero as the SECT_FLAGS argument to
3587 bfd_lookup_symbol, since we're not concerned about which section
3588 the symbol is in.
3589
3590 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3591
3592 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3593 we are frameless or the return address register is already known.
3594
3595 2003-08-26 Andrew Cagney <cagney@redhat.com>
3596
3597 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3598 in size. Add comments.
3599
3600 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3601
3602 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3603 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3604
3605 2003-08-26 Jason Merrill <jason@redhat.com>
3606
3607 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3608 case out of #ifdef MIPS block.
3609
3610 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3611
3612 PR java/1322
3613 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3614 available before calling SECT_OFF_TEXT.
3615 * PROBLEMS: Remove description of java/1322.
3616
3617 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3618
3619 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3620 bof, and nat0-nat127 as pseudo-registers.
3621 (ia64_frame_cache): New struct used to cache frame info.
3622 (ia64_register_reggroup_p): New routine used to override default
3623 register grouping so registers without names are still saved and
3624 restored.
3625 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3626 pseudo values.
3627 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3628 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3629 (ia64_alloc_frame_cache): New routine to create a new
3630 ia64_frame_cache.
3631 (examine_prologue): Change prototype to add next_frame pointer.
3632 Assume frameless until otherwise proven. Verify that the cfm for
3633 current frame matches the cfm that should occur for the prologues
3634 alloc insn and if equal, mark as not frameless. At end of routine,
3635 if not frameless, calculate registers for the previous frame and store
3636 in the cache, if a cache is provided.
3637 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3638 and pass 0 for next_frame.
3639 (ia64_store_return_value): Change to use convert_typed_floating()
3640 instead of calling ia64_convert_to_raw().
3641 (ia64_extract_return_value): Change to use convert_typed_floating()
3642 instead of calling ia64_convert_to_virtual().
3643 (ia64_frame_cache): New routine to support new frame model.
3644 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3645 (ia64_frame_sniffer): Ditto.
3646 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3647 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3648 (ia64_sigtramp_frame_prev_register): Ditto.
3649 (ia64_sigtramp_frame_sniffer): Ditto.
3650 (ia64_frame_base_address): Ditto.
3651 (ia64_extract_struct_value_address): Change to issue error message.
3652 (ia64_frame_align): New routine to align sp.
3653 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3654 (ia64_push_arguments): Removed. Logic moved to
3655 ia64_push_dummy_call().
3656 (ia64_push_return_address): Ditto.
3657 (ia64_unwind_dummy_id): New function.
3658 (ia64_unwind_pc): Ditto.
3659 (ia64_convert_register_p): Ditto.
3660 (ia64_register_to_value): Ditto.
3661 (ia64_value_to_register): Ditto.
3662 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3663 (ia64_register_byte, ia64_register_raw_size): Ditto.
3664 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3665 (ia64_saved_pc_after_call): Ditto.
3666 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3667 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3668 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3669 (ia64_register_convert_to_raw): Ditto.
3670 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3671 (ia64_init_extra_frame_info): Ditto.
3672 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3673 (ia64_gdbarch_init): Remove registering of deprecated functions that
3674 are no longer used. Add registration of new gdbarch functions.
3675 Remove registering deprecated_write_sp. Replace
3676 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3677 Delete set_gdbarch_deprecated_register_convertible(),
3678 set_gdbarch_deprecated_register_convert_to_virtual(), and
3679 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3680 set_gdbarch_deprecated_register_size(),
3681 set_gdbarch_deprecated_register_bytes(),
3682 set_gdbarch_pcregnum(),
3683 set_gdbarch_deprecated_register_byte(),
3684 set_gdbarch_deprecated_register_raw_size(),
3685 set_gdbarch_deprecated_max_register_raw_size(),
3686 set_gdbarch_deprecated_register_virtual_size(),
3687 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3688 Replace set_gdbarch_deprecated_extract_return_value() with
3689 set_gdbarch_extract_return_value(). Remove calls to:
3690 set_gdbarch_deprecated_saved_pc_after_call();
3691 set_gdbarch_deprecated_frame_chain(),
3692 set_gdbarch_deprecated_frame_saved_pc(),
3693 set_gdbarch_deprecated_frame_init_saved_regs(),
3694 set_gdbarch_deprecated_get_saved_register(),
3695 set_gdbarch_deprecated_call_dummy_words(),
3696 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3697 set_gdbarch_deprecated_init_extra_frame_info(),
3698 set_gdbarch_deprecated_frame_args_address(),
3699 set_gdbarch_deprecated_frame_locals_address(),
3700 and set_gdbarch_deprecated_dummy_write_sp().
3701 Add set_gdbarch_convert_register_p(),
3702 set_gdbarch_register_to_value(),
3703 set_gdbarch_value_to_register(),
3704 set_gdbarch_push_dummy_call(),
3705 set_gdbarch_frame_align(),
3706 set_gdbarch_unwind_dummy_id(),
3707 set_gdbarch_unwind_pc(),
3708 frame_unwind_append_sniffer(),
3709 frame_unwind_append_sniffer(),
3710 and frame_base_set_default().
3711
3712 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3713
3714 * configure.tgt: Document need for special "mipsisa64" handling.
3715 (mipsisa64*-*-linux64): Handle as target linux64.
3716 (mipsisa64*-*-*): Handle as target embed64.
3717
3718 2003-08-18 Michael Chastain <mec@shout.net>
3719
3720 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3721 objfile bug.
3722
3723 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3724
3725 * i387-tdep.h: Update copyright date.
3726 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3727
3728 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3729 CFLAGS games to reflect reality.
3730
3731 2003-08-24 Andrew Cagney <cagney@redhat.com>
3732
3733 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3734 GDB_MULTI_ARCH is always non-zero.
3735 * osabi.c (_initialize_gdb_osabi): Ditto.
3736 (gdbarch_init_osabi): Ditto.
3737 * sparc-tdep.c: Ditto for #if code.
3738
3739 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3740
3741 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3742 Update comments.
3743 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3744 comments.
3745 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3746 x86_64_supply_fxsave.
3747 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3748 x86_64_supply_fxsave.
3749 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3750 x86_64_supply_fxsave.
3751
3752 2003-08-23 Andreas Jaeger <aj@suse.de>
3753
3754 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3755 i387_supply_fxsave.
3756
3757 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3758
3759 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3760 i387_supply_register.
3761 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3762 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3763 i387_supply_fsave.
3764 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3765 i387_supply_fxsave.
3766 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3767 i387_supply_fsave.
3768 * i386bsd-nat.c (supply_fpregset): Adjust call to
3769 i387_supply_fsave.
3770 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3771 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3772 supply_fpregset.
3773 (store_inferior_registers): Remove extraneous whitespace. Call
3774 i387_fill_fsave instead of fill_fpregset.
3775 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3776 (supply_fpregset): Likewise.
3777 * i386v4-nat.c (supply_fpregset): Adjust call to
3778 i387_supply_fsave.
3779 * i386-interix-nat.c (supply_fpregset): Adjust call to
3780 i387_supply_fsave.
3781 * i386-linux-nat.c (supply_fpregset): Adjust call to
3782 i387_supply_fsave.
3783 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3784 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3785 i387supply_fsave and i387_supply_fxsave.
3786 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3787 Incorporate code from `i387_supply_register.
3788 (i387_supply_register): Remove.
3789 (i387_supply_fxsave): Add `regnum' argument.
3790 Update comments.
3791 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3792 prototype.
3793 (i387_supply_register): remove prototype.
3794 Update comments.
3795
3796 2003-08-22 Michael Chastain <mec@shout.net>
3797
3798 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3799 Add lines for files in gdb/testsuite/gdb.cp/* that are
3800 still not 8.3 unique.
3801
3802 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3803
3804 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3805 TYPE_VPTR_FIELDNO is valid.
3806
3807 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3808
3809 * utils.c (set_width_command): Remove prototypes.
3810 (set_screen_size): New prototype.
3811 (init_page_info): Simplify by fetching the screen size from
3812 Readline. Call set_screen_size.
3813 (set_screen_size): New function.
3814 (set_width): Add missing whitespace in comment.
3815 (set_width_command): Call set_screen_size.
3816 (set_height_command): New function.
3817 (initialize_utils): Fix formatting. Make "set height" command
3818 call set_height_command. Remove redundant code that turns off
3819 pagination if output isn't a terminal. Remove redundant call to
3820 set_width_command.
3821
3822 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3823
3824 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3825 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3826 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3827 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3828 `case' keyword.
3829 (sparc64_register_info): Give the reister with number
3830 SPARC64_STATE_REGNUM a name.
3831 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3832 %asi and %ccr.
3833 (sparc64_push_dummy_call): Take BIAS into account when checking
3834 stcak alignment.
3835 (sparc_software_single_step): Remove assertions that check whether
3836 NPC and NNPC were zero.
3837 (sparc_supply_rwindow): Make public. Merge functionality with
3838 sparc64_supply_rwindow.
3839 (sparc_fill_rwindow): Make public. Merge functionality with
3840 sparc64_fill_rwindow.
3841 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3842 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3843 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3844 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3845 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3846
3847 * reggroups.c: Add whitespace after declarations of local
3848 variables in functions.
3849
3850 2003-08-21 Michael Chastain <mec@shout.net>
3851
3852 * gdbtypes.h: Change array bound type from an int to enum.
3853
3854 2003-08-21 Andrew Cagney <cagney@redhat.com>
3855
3856 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3857 * config/sparc/tm-sparc.h: Ditto.
3858 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3859 unconditionally.
3860 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3861
3862 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3863
3864 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3865 (register_objfile_data, set_objfile_data, objfile_data): New
3866 prototypes.
3867 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3868 prototypes.
3869 (allocate_objfile): Call objfile_alloc_data.
3870 (free_objfile): Call objfile_free_data.
3871 (struct objfile_data): New.
3872 (struct objfile_data_registration): New.
3873 (struct objfile_data_registry): New.
3874 (objfile_data_registry): New variable.
3875 (register_objfile_data): New function.
3876 (objfile_alloc_data, objfile_free_data): New functions.
3877 (set_objfile_data, objfile_data): New functions.
3878 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3879 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3880 (_initialize_dwarf2_frame): New function and prototype.
3881
3882 2003-08-21 Andrew Cagney <cagney@redhat.com>
3883
3884 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3885 a specific architecture.
3886 * arch-utils.h (set_architecture_from_arch_mach): Delete
3887 declaration.
3888 (target_architecture_hook): Delete declaration.
3889 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3890 (default_float_format): Assume GDB_MULTI_ARCH.
3891 (default_double_format): Assume GDB_MULTI_ARCH.
3892 (set_endian_from_file): Delete function.
3893 (arch_ok): Delete function.
3894 (set_arch): Delete function.
3895 (set_architecture_from_arch_mach): Delete function.
3896 (set_architecture_from_file): Delete function.
3897 (set_architecture): Assume GDB_MULTI_ARCH.
3898 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3899
3900 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3901
3902 Rewrite FreeBSD/sparc64 native configuration.
3903 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3904 * sparc64fbsd-nat.c: New file.
3905 * sparc64fbsd-tdep.c: New file.
3906 * sparc64-tdep.c sparc64-tdep.h: New files.
3907 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3908 sparc64fbsd-tdep.o): New dependencies.
3909 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3910 and sparc64fbsd-tdep.c.
3911 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3912 * config/sparc/fbsd.mh: Remove copyright notice.
3913 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3914 sparcbsd-nat.o.
3915 * config/sparc/fbsd.mt: Remove copyright notice.
3916 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3917 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3918 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3919 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3920 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3921 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3922 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3923 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3924 "sparc/tm-sp64.h".
3925 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3926 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3927
3928 2003-08-21 Michael Chastain <mec@shout.net>
3929
3930 * symtab.h: Add doco on the space critical structures and
3931 some measurements of space usage.
3932
3933 2003-08-21 Michael Snyder <msnyder@redhat.com>
3934
3935 * tracepoint.c (trace_dump_command): Trace break address
3936 is subject to DECR_PC_AFTER_BREAK.
3937 (set_traceframe_context): Make "trace_line" an int.
3938 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3939
3940 2003-08-20 Michael Snyder <msnyder@redhat.com>
3941
3942 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3943 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3944 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3945 argument passing.
3946 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3947 functions, replace sh_push_dummy_call.
3948 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3949
3950 2003-08-20 Michael Chastain <mec@shout.net>
3951
3952 * gdbtypes.h (struct main_type): Rearrange to save space.
3953
3954 2003-08-20 Michael Snyder <msnyder@redhat.com>
3955
3956 * trad-frame.c: Comment typo fix.
3957
3958 2003-08-20 Michael Snyder <msnyder@redhat.com>
3959 Kevin Buettner <kevinb@redhat.com>
3960
3961 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3962 (frv_frame_init_saved_regs): Add declaration.
3963 (frame_extra_info): Add new field ``saved_regs''.
3964 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3965 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3966 Update frame related code.
3967 (frv_extract_struct_value_address): Adjust formatting.
3968 * Makefile.in (frv-tdep.o): Update dependencies.
3969 * config/frv/tm-frv.h (target_insert_watchpoint)
3970 (target_remove_watchpoint, target_insert_hw_breakpoint)
3971 (target_remove_hw_breakpoint): Delete these macros.
3972 (remote_insert_watchpoint, remote_remove_watchpoint)
3973 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3974 these declarations.
3975
3976 2003-08-20 Michael Chastain <mec@shout.net>
3977
3978 * defs.h (ENUM_BITFIELD): New macro.
3979 * symtab.h (ENUM_BITFIELD): Use it.
3980 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3981
3982 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3983
3984 * MAINTAINERS (write after approval): Add myself.
3985
3986 2003-08-18 Andrew Cagney <cagney@redhat.com>
3987
3988 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3989 * gdbarch.h, gdbarch.c: Re-generate.
3990 * infcall.c (call_function_by_hand): Adjust the SP by
3991 frame_red_zone_size before allocating any stack space.
3992 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3993 * x86-64-tdep.c (x86_64_frame_align): New function.
3994 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3995
3996 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3997 Remove code adjusting SP so that it skips over the Red Zone.
3998
3999 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4000
4001 * NEWS (New native configurations): Mention FreeBSD/amd64.
4002
4003 2003-08-18 Andrew Cagney <cagney@redhat.com>
4004
4005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4006 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4007 "m68k_frame_p".
4008 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4009
4010 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4011
4012 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4013
4014 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4015
4016 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4017 Define.
4018 * i386-linux-nat.c: Include "linux-nat.h".
4019 (child_post_startup_inferior): New function.
4020
4021 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4022
4023 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4024 at the start of a frameless function. This probably fixes PR
4025 backtrace/1338.
4026
4027 2003-08-17 Michael Chastain <mec@shout.net>
4028
4029 * symfile.c (find_sym_fns): Remove special case for apollo target.
4030
4031 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4032
4033 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4034 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4035 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4036 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4037 (linux_supports_tracevforkdone): New function.
4038 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4039 TRACEVFORKDONE.
4040 (child_follow_fork): Handle vfork.
4041 (linux_handle_extended_wait): Likewise. Also handle exec.
4042 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4043 * NEWS: Mention fork tracing.
4044
4045 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4046
4047 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4048
4049 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4050
4051 * Makefile.in (i386-linux-nat.o): Update dependencies.
4052 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4053 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4054 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4055 * i386-linux-nat.c: Include "linux-nat.h".
4056 (child_post_startup_inferior): New function.
4057 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4058 * infptrace.c (kill_inferior): Wrap in #ifdef.
4059 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4060 attaching to each LWP.
4061 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4062 (init_lin_lwp_ops): Fill in some more operations.
4063 * linux-nat.h (linux_enable_event_reporting)
4064 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4065 prototypes.
4066 * linux-nat.c (linux_enable_event_reporting): New function.
4067 (child_post_attach, linux_child_post_startup_inferior)
4068 (child_post_startup_inferior, child_follow_fork)
4069 (linux_handle_extended_wait, kill_inferior): New functions.
4070
4071 2003-08-16 Andrew Cagney <cagney@redhat.com>
4072
4073 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4074 * gdbarch.h, gdbarch.c: Re-generate.
4075
4076 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4077
4078 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4079
4080 2003-08-16 Andrew Cagney <cagney@redhat.com>
4081
4082 * NEWS: Mention that "set prompt-escape-char" was deleted.
4083 * top.c (get_prompt_1): Delete function.
4084 (gdb_prompt_escape):
4085 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4086 prompt-escape-char" command.
4087 (MAX_PROMPT_SIZE): Delete macro.
4088 (get_prompt): Simplify, do not call get_prompt_1.
4089
4090 2003-08-16 Andrew Cagney <cagney@redhat.com>
4091
4092 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4093 -Werror. -Wformat-nonliteral problems.
4094
4095 2003-08-15 J. Brobecker <brobecker@gnat.com>
4096
4097 Further multiarching work mostly for hppa64-*-hpux11:
4098 * hppa-tdep.h: New file.
4099 * hppa-tdep.c: #include hppa-tdep.c.
4100 (hppa32_num_regs): Renamed from hppa_num_regs.
4101 (hppa64_num_regs): New constant.
4102 (hppa64_call_dummy_breakpoint_offset): New constant.
4103 (hppa32_call_dummy_length): New constant.
4104 (hppa64_call_dummy_length): New constant.
4105 (hppa32_stack_align): Make name 32bit explicit.
4106 (hppa32_register_virtual_type): Likewise.
4107 (hppa32_extract_return_value): Likewise.
4108 (hppa32_use_struct_convention): Likewise.
4109 (hppa32_store_return_value): Likewise.
4110 (hppa64_register_virtual_type): New function.
4111 (hppa64_extract_return_value): New function.
4112 (hppa64_use_struct_convention): New function.
4113 (hppa64_store_return_value): New function.
4114 (hppa_frame_locals_address): Remove declaration, function does
4115 not exist anymore.
4116 (hppa_register_byte): Add support for PA64 ABI.
4117 (hppa_gdbarch_init): Add support for PA64 ABI.
4118 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4119 Make name 32bit explicit.
4120 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4121 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4122 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4123 (hppa64_hpux_frame_base_before_sigtramp): New function.
4124 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4125 * config/pa/tm-hppa64.h: Remove macros that are no longer
4126 necessary now that the gdbarch vector is properly setup.
4127 Transform some macros into function calls. Some minor cleanup.
4128 * config/pa/tm-hppah.h: Update function calls in macros
4129 following the function renaming in hppa-hpux-tdep.c.
4130 * Makefile.in (hppa_tdep_h): New variable.
4131 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4132
4133 2003-08-14 Michael Snyder <msnyder@redhat.com>
4134
4135 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4136
4137 2003-08-13 J. Brobecker <brobecker@gnat.com>
4138
4139 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4140 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4141 routine.
4142
4143 2003-08-13 Michael Snyder <msnyder@redhat.com>
4144
4145 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4146 (frv_saved_pc_after_call): Use deprecated ftype.
4147 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4148 (frv_remote_translate_xfer_address): Remove.
4149 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4150
4151 2003-08-13 J. Brobecker <brobecker@gnat.com>
4152
4153 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4154 initialization after the common gdbarch initialization, not before.
4155
4156 2003-08-13 J. Brobecker <brobecker@gnat.com>
4157
4158 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4159 (ADDR_BITS_REMOVE): Remove, redundant.
4160
4161 2003-08-13 J. Brobecker <brobecker@gnat.com>
4162
4163 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4164 gdbarch method to clear the 2 low bits of text addresses.
4165
4166 2003-08-12 Andrew Cagney <cagney@redhat.com>
4167
4168 * Makefile.in (dsrec.o): Update dependencies.
4169 * dsrec.c: Include "gdb_assert.h".
4170 (make_srec): Use snprintf instead of sprintf, use a literal format
4171 string.
4172
4173 2003-08-12 Andrew Cagney <cagney@redhat.com>
4174
4175 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4176 FRAME_OBSTACK_ZALLOC.
4177
4178 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4179
4180 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4181 SSE registers.
4182
4183 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4184
4185 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4186 amd64fbsd_sc_reg_offset): Add extern declarations.
4187 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4188 declarations.
4189
4190 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4191
4192 * MAINTAINERS (write after approval): Update my mail address.
4193
4194 2003-08-10 Andrew Cagney <cagney@redhat.com>
4195
4196 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4197
4198 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4199
4200 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4201 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4202 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4203 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4204 i386bsd_sc_reg_offset): Add extern declarations.
4205 * i386obsd-nat.c: Include "i386-tdep.h"
4206 (_initialize_i386obsd_nat): Remove extern declarations.
4207 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4208 declarations.
4209 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4210 declarations.
4211
4212 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4213 instead of frame_read_register.
4214 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4215 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4216 SP_REGNUM.
4217 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4218 instead of frame_unwind_unsigned_register. Use
4219 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4220 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4221 instead of read_register. Use builtin_type_void_data_ptr instead
4222 of builtin_type_void_func_ptr when extracting the address of the
4223 jmp_buf.
4224 (i386_extract_return_value, i386_store_return_value,
4225 i386_pseudo_register_read, i386_pseudo_register_write): Use
4226 register_size instead REGISTER_RAW_SIZE.
4227
4228 2003-08-10 Andrew Cagney <cagney@redhat.com>
4229
4230 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4231 sprintf. Make "name" constant.
4232
4233 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4234
4235 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4236 instead of frame_read_register.
4237 (i387_print_float_info): Use get_frame_register and
4238 get_frame_register_unsigned instead of frame_register_read.
4239
4240 * i386fbsd-nat.c: Include "i386-tdep.h".
4241 (child_resume): Make `eflags' an ULONGEST. Use
4242 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4243 instead of register_read and register_write.
4244
4245 * i386bsd-nat.c (fetch_inferior_registers,
4246 store_inferior_registers): Don't use && at the end of a line.
4247 (_initialize_i386bsd_nat): Fix typo.
4248
4249 * frame.c (_initialize_frame): Add missing backslash.
4250
4251 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4252 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4253 and supply_register instead of manipulating the register buffer
4254 directly.
4255
4256 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4257 * config/i386/nm-i386sol2.h
4258 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4259
4260 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4261 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4262 instructions that GCC likes to mingle into the prologue. Fixes
4263 gdb/1253 and gdb/1255.
4264
4265 2003-08-09 Andrew Cagney <cagney@redhat.com>
4266
4267 Fix GDB PR cli/926.
4268 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4269 * command.h (add_setshow_uinteger_cmd): Declare.
4270 * frame.c (set_backtrace_cmd): New function.
4271 (show_backtrace_cmd): New function.
4272 * frame.c (_initialize_frame): Replace "set/show
4273 backtrace-below-main" with "set/show backtrace past-main". Add
4274 command "set/show backtrace limit".
4275 (backtrace_past_main): Rename "backtrace_below_main".
4276 (backtrace_limit): New variable.
4277 (get_prev_frame): Update. Check the backtrace_limit.
4278
4279 2003-08-09 Andrew Cagney <cagney@redhat.com>
4280
4281 * defs.h (xstrprintf): Declare.
4282 * utils.c (xstrprintf): New function.
4283 * breakpoint.c (insert_breakpoints): Replace sprintf and
4284 non-literal format strings, with xstrprintf and cleanups.
4285 (delete_breakpoint,breakpoint_re_set): Ditto.
4286 (commands_command, insert_breakpoints): Ditto.
4287 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4288 (break_at_finish_command_1): Ditto.
4289
4290 2003-08-09 Andrew Cagney <cagney@redhat.com>
4291
4292 * MAINTAINERS (language support): List Adam Fedor as Objective C
4293 maintainer.
4294
4295 2003-08-08 J. Brobecker <brobecker@gnat.com>
4296
4297 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4298 are now multiarched.
4299
4300 2003-08-08 J. Brobecker <brobecker@gnat.com>
4301
4302 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4303 longer necessary now that hppa64 is partially multiarch'ed.
4304
4305 2003-08-08 Andrew Cagney <cagney@redhat.com>
4306
4307 * interps.c (interp_set): Check for a NULL "old_interp".
4308
4309 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4310
4311 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4312 (install-only): Support DESTDIR.
4313 (uninstall): Likewise.
4314 (install-gdbtk): Likewise.
4315
4316 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4317
4318 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4319 contains something meaningful at all times.
4320
4321 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4322
4323 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4324
4325 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4326
4327 * MAINTAINERS (write after approval): Added self.
4328
4329 2003-08-07 Andrew Cagney <cagney@redhat.com>
4330
4331 * inferior.h (AT_SYMBOL): Define.
4332 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4333 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4334 * mips-tdep.c (mips_call_dummy_address): Delete function.
4335 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4336 set call_dummy_address.
4337
4338 2003-08-07 Andrew Cagney <cagney@redhat.com>
4339
4340 * language.c (op_error): Delete function.
4341 (binop_type_check): Delete function.
4342 * language.h (type_op_error, range_op_error): Delete macros.
4343 (op_error): Delete declaration.
4344
4345 2003-08-07 Andrew Cagney <cagney@redhat.com>
4346
4347 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4348
4349 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4350
4351 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4352 (x86_64_push_arguments): Skip the red zone.
4353
4354 2003-08-05 Andrew Cagney <cagney@redhat.com>
4355
4356 * reggroups.c (reggroup_next): Check for the final entry.
4357
4358 2003-08-04 Andrew Cagney <cagney@redhat.com>
4359
4360 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4361 * cli/cli-script.c (define_command): Call query directly, instead
4362 of passing it a buffer.
4363 * ocd.c (ocd_error): Pass error a constant format string.
4364 * remote-mips.c (mips_error): Use fputs_filtered.
4365
4366 * solib-svr4.c (_initialize_svr4_solib): Update
4367 register_gdbarch_data call.
4368 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4369
4370 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4371 (register_gdbarch_data): Delete "free" parameter. Update
4372 comments.
4373 * gdbarch.h, gdbarch.c: Re-generate.
4374 * reggroups.c (_initialize_reggroup): Update.
4375 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4376 * frame-base.c (_initialize_frame_base): Update.
4377 * frame-unwind.c (_initialize_frame_unwind): Update.
4378 * user-regs.c (_initialize_user_regs): Update.
4379 * remote.c (_initialize_remote): Update.
4380 * regcache.c (_initialize_regcache): Update.
4381
4382 * regcache.c (xfree_regcache_descr): Delete function.
4383 (_initialize_regcache): Update call to register_gdbarch_data.
4384 (init_regcache_descr, init_legacy_regcache_descr): Use
4385 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4386
4387 * remote.c (free_remote_state): Delete function.
4388 (_initialize_remote): Update register_gdbarch_data.
4389 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4390 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4391
4392 2003-08-04 Andrew Cagney <cagney@redhat.com>
4393
4394 * reggroups.c (struct reggroup_el): Define.
4395 (struct reggroups): Delete field "nr_group". Replace array
4396 "group" with a "first" to "last" linked list.
4397 (reggroups_init): Update. Allocate using gdbarch's obstack.
4398 (reggroups_free): Delete function.
4399 (add_group): Update. Add "el" parameter.
4400 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4401 (default_groups): Update.
4402 (reggroup_next): Replace reggroups.
4403 (reggroups_dump): Update.
4404 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4405 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4406 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4407
4408 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4409
4410 * Makefile.in (tui-interp.o): Update dependencies.
4411
4412 2003-08-04 David Carlton <carlton@kealia.com>
4413
4414 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4415 to internal_error call.
4416 * source.c (forward_search_command): Add "%s" format argument.
4417 (reverse_search_command): Ditto.
4418 * top.c (quit_confirm): Ditto.
4419 * cli/cli-setshow.c (do_setshow_command): Ditto.
4420 * cp-valprint.c (cp_print_class_method): Replace
4421 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4422 (cp_print_class_member): Ditto.
4423 * event-top.c (command_line_handler): Ditto.
4424 * linux-proc.c (linux_info_proc_cmd): Ditto.
4425 * p-typeprint.c (pascal_type_print_base): Ditto.
4426 * p-valprint.c (pascal_object_print_class_method): Ditto.
4427 (pascal_object_print_class_member): Ditto.
4428 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4429 * remote.c (remote_cisco_section_offsets): Ditto.
4430 * top.c (command_line_input): Ditto.
4431 * utils.c (vwarning,error_stream,quit): Ditto.
4432 * valprint.c (print_floating,print_binary_chars)
4433 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4434
4435 2003-08-04 Andrew Cagney <cagney@redhat.com>
4436
4437 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4438
4439 2003-08-02 Andrew Cagney <cagney@redhat.com>
4440
4441 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4442 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4443 amd64fbsd-nat.c.
4444
4445 2003-08-02 Andrew Cagney <cagney@redhat.com>
4446
4447 * Makefile.in: Update all dependencies and definitions.
4448
4449 2003-08-02 Adam Fedor <fedor@gnu.org>
4450
4451 * linespec.c (is_objc_method_format): New function
4452 (decode_line_1, locate_first_half): Use it.
4453 Fixes PR objc/1298
4454
4455 2003-08-01 Andrew Cagney <cagney@redhat.com>
4456
4457 * NEWS: Mention that m32r is multi-arch.
4458 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4459 * configure.tgt: Recognize m32r-*-*.
4460 * config/m32r/tm-m32r.h: Delete file.
4461 * config/m32r/m32r.mt: New file.
4462 * m32r-rom.c (m32r_upload_command): Use hostent only when
4463 gethostname succeeds, in order to avoid a compilation
4464 warning.
4465 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4466 compiler warning.
4467
4468 2003-08-01 Michael Snyder <msnyder@redhat.com>
4469
4470 * sh-tdep.c (sh_frame_align): New gdbarch method.
4471 (sh_gdbarch_init): Set up frame_align method.
4472
4473 2003-07-31 Michael Snyder <msnyder@redhat.com>
4474
4475 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4476 which is already covered by the new frames infrastructure.
4477
4478 2003-07-31 Andrew Cagney <cagney@redhat.com>
4479
4480 * user-regs.c (struct user_reg): Add "next" link.
4481 (struct user_regs): Replace "user" with "first" and "last" links.
4482 (append_user_reg): Add pre-allocated "reg" parameter.
4483 (builtin_user_regs): Provide initial value for "last".
4484 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4485 (user_regs_init): Allocate memory from the gdbarch obstack.
4486 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4487 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4488 linked list.
4489 (usernum_to_user_reg): New function.
4490 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4491 (value_of_user_reg): Use usernum_to_user_reg.
4492 (user_regs_free): Delete function.
4493 (_initialize_user_regs): Update register_gdbarch_data call.
4494
4495 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4496
4497 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4498
4499 2003-07-30 Michael Snyder <msnyder@redhat.com>
4500
4501 * value.h (value_being_returned): Add a struct_addr argument.
4502 * infcall.c (call_function_by_hand): Pass struct_addr to
4503 value_being_returned.
4504 * infcmd.c (print_return_value): Pass zero as struct_addr.
4505 * values.c (value_being_returned): If struct_addr is passed,
4506 use it instead of trying to recover it from the inferior.
4507
4508 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4509
4510 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4511 the prologue analyzer won't need to attempt to extract the pc
4512 value from the woefully incomplete dummy frame.
4513 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4514 possible. Disable code which modifies the frame.
4515
4516 2003-07-28 Andrew Cagney <cagney@redhat.com>
4517
4518 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4519 to level 2.
4520 (annotate_breakpoints_table, annotate_record): Ditto.
4521 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4522 (annotate_field_name_end, annotate_field_value): Ditto.
4523 (annotate_field_end, annotate_frame_source_begin): Ditto.
4524 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4525 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4526 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4527 (annotate_frame_address_end, annotate_frame_address): Ditto.
4528 (annotate_frame_args, annotate_frame_end): Ditto.
4529 (annotate_frame_where, annotate_arg_begin): Ditto.
4530 (annotate_arg_name_end, annotate_arg_value): Ditto.
4531 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4532 (annotate_function_call, annotate_signal_name): Ditto.
4533 (annotate_signal_string, annotate_signal_name_end): Ditto.
4534 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4535 (annotate_value_begin, annotate_value_history_value): Ditto.
4536 (annotate_value_history_end, annotate_value_end): Ditto.
4537 (annotate_display_begin, annotate_display_number_end): Ditto.
4538 (annotate_display_format, annotate_display_expression): Ditto.
4539 (annotate_display_expression_end, annotate_display_value): Ditto.
4540 (annotate_display_end, annotate_array_section_begin): Ditto.
4541 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4542 (annotate_elt, annotate_array_section_end): Ditto.
4543
4544 2003-07-28 Andrew Cagney <cagney@redhat.com>
4545
4546 * regcache.c (struct regcache_descr): Update comments on
4547 nr_raw_registers.
4548 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4549 sizeof_raw_register_valid_p.
4550 (init_regcache_descr): Set nr_raw_registers and
4551 sizeof_raw_register_valid_p before calling
4552 init_legacy_regcache_descr.
4553
4554 2003-07-28 Andrew Cagney <cagney@redhat.com>
4555
4556 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4557 MOD NUM_REGS.
4558
4559 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4560
4561 * thread.c (info_threads_command): Use get_selected_frame ().
4562 Check that there is at least one non-sentinel frame.
4563
4564 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4565
4566 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4567 (m68hc11_pop_frame): Remove.
4568 (m68hc11_frame_saved_pc): Remove.
4569 (m68hc11_frame_chain): Remove.
4570 (m68hc11_frame_init_saved_regs): Remove.
4571 (m68hc11_init_extra_frame_info): Remove.
4572 (m68hc11_store_struct_return): Remove.
4573 (m68hc11_saved_pc_after_call): Remove.
4574
4575 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4576
4577 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4578 frame unwind information.
4579 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4580 and adapted for frame unwinding.
4581 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4582 (m68hc11_unwind_pc): New function.
4583 (m68hc11_frame_unwind_cache): New function to analyze frames.
4584 (m68hc11_frame_this_id): New function to create new frame struct.
4585 (m68hc11_frame_prev_register): New function to unwind a register from
4586 the frame.
4587 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4588 (m68hc11_frame_p): New function for the above.
4589 (m68hc11_frame_base_address): New function to return fp of frame.
4590 (m68hc11_frame_args_address): Update for frame.
4591 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4592 (m68hc11_unwind_sp): New function.
4593 (m68hc11_unwind_dummy_id): New function.
4594 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4595 calls.
4596
4597 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4598
4599 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4600 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4601 when we are beyond the current pc.
4602
4603 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4604
4605 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4606 from m68hc11_push_arguments.
4607 (m68hc11_push_arguments): Remove.
4608 (m68hc11_push_return_address): Remove.
4609 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4610 handlers; remove deprecated_extra_stack_alignment_needed.
4611
4612 2003-07-27 Andrew Cagney <cagney@redhat.com>
4613
4614 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4615 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4616 REAL_PC and not the pointer.
4617 * hppa-hpux-tdep.c: Include frame.h
4618
4619 2003-07-27 Andrew Cagney <cagney@redhat.com>
4620
4621 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4622 GDB_MULTI_ACH_PARTIAL.
4623
4624 2003-07-27 Andrew Cagney <cagney@redhat.com>
4625
4626 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4627 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4628 operator at start and not end of line.
4629 (decode_prologue): Ditto.
4630 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4631 frame_unwind_register_unsigned instead of
4632 frame_unwind_unsigned_register.
4633 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4634 read_register.
4635 (m32r_push_dummy_call): Use register_size instead of
4636 REGISTER_RAW_SIZE.
4637 (m32r_frame_sniffer): Replace m32r_frame_p.
4638 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4639 * m32r-rom.c (report_transfer_performance): Delete extern
4640 declaration.
4641 (m32r_load, m32r_upload_command): Use print_transfer_performance
4642 instead of report_transfer_performance.
4643 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4644 / add_show_from_set.
4645
4646 2003-07-26 Andrew Cagney <cagney@redhat.com>
4647
4648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4649 store_return_value and extract_struct_value_address.
4650
4651 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4652
4653 PR c++/1267
4654 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4655 NULL, default to the section containing PC.
4656
4657 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4658
4659 * NEWS: Mention "regs" deprecated for m68hc11 too.
4660
4661 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4662 (m68hc11_print_register): New function to print out one register.
4663 (m68hc11_print_registers_info): New function to print registers.
4664 (show_regs): Deprecate and use the above.
4665 (m68hc11_gdbarch_init): Install the print_registers_info.
4666
4667 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4668
4669 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4670 that we have a SIGTRAP before returning non-zero.
4671
4672 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4673 Elena Zannoni <ezannoni@redhat.com>
4674
4675 * linespec.c (decode_line_2): Avoid crash if
4676 find_function_start_sal() returns empty record.
4677
4678 2003-07-23 Andreas Schwab <schwab@suse.de>
4679
4680 * ia64-tdep.c (ia64_print_insn): New function.
4681 (ia64_gdbarch_init): Set print_insn to it.
4682 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4683 deprecated_tm_print_insn_info.
4684
4685 2003-07-22 Michael Snyder <msnyder@redhat.com>
4686
4687 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4688 handle 8-bit returns (long long).
4689 (h8300h_extract_return_value): Ditto.
4690 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4691
4692 2003-07-22 Andrew Cagney <cagney@redhat.com>
4693
4694 * gdbarch.c Include "gdb_obstack.h".
4695 (struct gdbarch): Add an "obstack".
4696 (alloc_gdbarch_data): Allocate the gdbarch data using
4697 GDBARCH_OBSTACK_CALLOC.
4698 (free_gdbarch_data): Delete function.
4699 (gdbarch_obstack_zalloc): New function.
4700 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4701 Assert that the architecture is not initialized.
4702 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4703 vector from the obstack.
4704 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4705 architecture obstack.
4706 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4707 (set_gdbarch_data): Assert that the data is not initialized.
4708 (struct gdbarch_data): Delete member "free".
4709 (register_gdbarch_data): Do not initialize "free".
4710 * gdbarch.h, gdbarch.c: Re-generate.
4711
4712 2003-07-22 Andrew Cagney <cagney@redhat.com>
4713
4714 * configure.in (build_warnings): Add -Wformat-nonliteral.
4715 * configure: Re-generate.
4716
4717 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4718
4719 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4720
4721 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4722
4723 * findvar.c (read_var_value): Remove case for thread local storage
4724 variables. It is now entirely handled by the dwarf2 location
4725 expression code.
4726 * printcmd.c (address_info): Ditto.
4727 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4728 enumeration value.
4729 (struct symbol): Remove objfile field, which was used by
4730 LOC_THREAD_LOCAL_STATIC only.
4731 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4732 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4733 usage of objfile pointer.
4734 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4735 thread local variables.
4736 Add include of objfiles.h.
4737 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4738 storage variables.
4739 * Makefile.in (dwarf2loc.o): Update dependencies.
4740
4741 2003-07-22 Andrew Cagney <cagney@redhat.com>
4742
4743 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4744 get_frame_base.
4745 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4746 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4747 (struct value): Add opaque declaration.
4748 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4749
4750 2003-07-21 Andrew Cagney <cagney@redhat.com>
4751
4752 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4753 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4754
4755 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4756
4757 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4758 regcache_cooked_read_unsigned instead of read_register.
4759 (m68hc11_saved_pc_after_call): Likewise.
4760 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4761 instead of write_register.
4762 (m68hc11_register_type): New function.
4763 (m68hc11_register_virtual_type): Remove.
4764 (m68hc11_store_return_value): Convert to use the regcache.
4765 (m68hc11_extract_struct_value_address): Likewise.
4766 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4767 m68hc11_register_type; undeprecate store_return_value and
4768 extract_struct_value_address.
4769
4770 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4771
4772 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4773 and translate to use regcache.
4774 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4775
4776 2003-07-18 Andrew Cagney <cagney@redhat.com>
4777
4778 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4779 * gdbarch.h, gdbarch.c: Re-generate.
4780 * i386-tdep.c (i386_gdbarch_init): Do not set
4781 DWARF2_BUILD_FRAME_INFO.
4782 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4783 unconditionally.
4784 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4785 DWARF2_BUILD_FRAME_INFO.
4786
4787 2003-07-18 Andrew Cagney <cagney@redhat.com>
4788
4789 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4790 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4791
4792 2003-07-18 Andrew Cagney <cagney@redhat.com>
4793
4794 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4795 frame_unwind_address_in_block, instead of frame_pc_unwind.
4796 (dwarf2_frame_cache): Ditto.
4797
4798 2003-07-18 Andrew Cagney <cagney@redhat.com>
4799
4800 * user-regs.h (struct gdbarch): Declare opaque.
4801 * ui-out.h (struct ui_file): Declare opaque.
4802 * dwarf2-frame.h (struct frame_info): Declare opaque.
4803
4804 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4805
4806 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4807 #include "...".
4808 (procfs_meminfo): Change strerror to safe_strerror.
4809 (procfs_can_run): Remove K&R badness.
4810
4811 2003-07-17 Michael Snyder <msnyder@redhat.com>
4812
4813 * remote-sim.c: Comment typo fix.
4814
4815 2003-07-17 Andrew Cagney <cagney@redhat.com>
4816
4817 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4818 configure.
4819 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4820 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4821 GDB_MULTI_ARCH_PARTIAL.
4822
4823 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4824
4825 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4826 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4827 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4828
4829 2003-07-16 Theodore A. Roth <troth@openavr.org>
4830
4831 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4832 found.
4833 (avr_frame_unwind_cache): Don't unwind FP for main.
4834 Update a comment.
4835 Save the computed prev_sp.
4836 (avr_saved_regs_unwinder): Remove function.
4837 (avr_frame_prev_register): Use PC unwind logic from
4838 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4839
4840 2003-07-16 Andrew Cagney <cagney@redhat.com>
4841
4842 * frame-base.h (frame_base_p_ftype): Delete definition.
4843 (frame_base_append_predicate): Delete declaration.
4844 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4845 (frame_unwind_append_predicate): Delete declaration.
4846 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4847 (append_predicate): Delete parameter "p".
4848 (frame_unwind_append_predicate): Delete function.
4849 (frame_unwind_append_sniffer): Update call to append_predicate.
4850 (frame_unwind_free): Delete function.
4851 (_initialize_frame_unwind): Pass NULL as "free" to
4852 register_gdbarch_data.
4853 (frame_unwind_init): Append the dummy_frame_sniffer.
4854 (frame_unwind_find_by_frame): Simplify.
4855 * frame-base.c (struct frame_base_table): Delete field "p".
4856 (append_predicate): Delete parameter "p".
4857 (frame_base_append_predicate): Delete function.
4858 (frame_base_append_sniffer): Update call to append_predicate.
4859 (frame_base_free): Delete function.
4860 (frame_base_find_by_frame): Simplify.
4861 (_initialize_frame_base): Pass NULL as "free" to
4862 register_gdbarch_data.
4863 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4864 (x86_64_sigtramp_frame_sniffer): Replace
4865 "x86_64_sigtramp_frame_p".
4866 (x86_64_init_abi): Set the frame unwind sniffers.
4867 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4868 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4869 (m68k_gdbarch_init): Set the frame unwind sniffers.
4870 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4871 "i386_sigtramp_frame_p".
4872 (i386_frame_sniffer): Replace "i386_frame_p".
4873 (i386_gdbarch_init): Set the frame unwind sniffers.
4874 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4875 (avr_gdbarch_init): Set the frame unwind sniffers.
4876 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4877 "alpha_sigtramp_frame_p"
4878 (alpha_heuristic_frame_sniffer): Replace
4879 "alpha_heuristic_frame_p".
4880 (alpha_gdbarch_init): Set the frame unwind sniffers.
4881 (alpha_dwarf2_init_abi): Ditto.
4882 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4883 "alpha_debug_frame_p".
4884 (alpha_mdebug_frame_base_sniffer): Replace
4885 "alpha_mdebug_frame_base_p".
4886 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4887 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4888 (d10v_gdbarch_init): Set the frame unwind sniffer.
4889 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4890 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4891 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4892 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4893 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4894 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4895
4896 2003-07-16 Michael Snyder <msnyder@redhat.com>
4897
4898 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4899 should go thru sh_dsp_register_sim_regno, else the dsp regs
4900 will not get the right values.
4901
4902 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4903
4904 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4905 deprecated_store_floating by call to store_typed_floating.
4906 (sh_sh4_register_convert_to_raw): Substitute call to
4907 deprecated_extract_floating by call to extract_typed_floating.
4908
4909 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4910
4911 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4912
4913 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4914
4915 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4916 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4917 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4918 as possible.
4919 (do_pseudo_register): Remove.
4920 (sh_push_dummy_code): New function.
4921 (sh64_store_struct_return): Rename from sh_store_struct_return.
4922 Only called for sh64 now.
4923 (sh_extract_struct_value_address): Regcache'ify.
4924 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4925 and accomodate new tasks.
4926 (sh64_push_return_address): Rename from sh_push_return_address.
4927 Only called for sh64 now.
4928 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4929 Regcache'ify.
4930 (sh3e_sh4_extract_return_value): Regcache'ify.
4931 (sh_default_store_return_value): Ditto.
4932 (sh3e_sh4_store_return_value): Ditto.
4933 (sh_default_register_byte): Remove.
4934 (sh_sh4_register_byte): Remove.
4935 (sh_default_register_raw_size): Remove.
4936 (sh_sh4_register_raw_size): Remove.
4937 (sh_register_virtual_size): Remove.
4938 (sh_sh3e_register_virtual_type): Remove.
4939 (sh_sh3e_register_type): New function.
4940 (sh_sh4_register_virtual_type): Remove.
4941 (sh_sh4_register_type): New function.
4942 (sh_default_register_virtual_type): Remove.
4943 (sh_default_register_type): New function.
4944 (do_fv_register_info): Add parameters to accomodate call from
4945 sh_print_registers_info.
4946 (do_dr_register_info): Ditto.
4947 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4948 Add parameters to accomodate call from sh_print_registers_info.
4949 (sh_do_fp_register): Ditto.
4950 (sh64_do_pseudo_register): Call do_dr_register_info,
4951 do_fv_register_info and sh_do_fp_register with default parameters.
4952 (sh_do_register): Add parameters to accomodate call from
4953 sh_print_registers_info.
4954 (sh_print_register): Ditto.
4955 (sh_print_registers_info): Rename from sh_do_registers_info.
4956 Add parameters to be used as gdbarch_print_registers_info
4957 implementation. Accomodate removed do_pseudo_register function
4958 pointer.
4959 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4960 function pointer. Call sh_print_register with default parameters.
4961 (sh64_do_registers_info): Call sh_print_registers_info instead of
4962 sh_do_registers_info.
4963 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4964 detection of deprecated vs. non-deprecated functionality.
4965 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4966 function pointer assignments by direct function calls.
4967
4968 2003-07-15 Andrew Cagney <cagney@redhat.com>
4969
4970 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4971 (frame_register_unwind, create_new_frame): Ditto.
4972 (legacy_get_prev_frame, get_frame_type): Ditto.
4973 (get_frame_base_address): Use frame_base_find_by_frame.
4974 (get_frame_locals_address): Use frame_base_find_by_frame.
4975 (get_frame_args_address): Use frame_base_find_by_frame.
4976 * frame-base.h (frame_base_sniffer_ftype): Declare.
4977 (frame_base_append_sniffer): Declare.
4978 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4979 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4980 (frame_base_append_sniffer): New function.
4981 (frame_base_append_predicate): Add a NULL sniffer.
4982 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4983 (struct frame_base_table): Add "sniffer".
4984 (frame_base_free): Free the "sniffer" table.
4985 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4986 (frame_unwind_append_sniffer): Declare.
4987 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4988 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4989 (struct frame_unwind_table): Add "sniffer", delete "middle".
4990 (append_predicate): Add "sniffer" parameter, append the sniffer.
4991 (frame_unwind_init): Update append_predicate call.
4992 (frame_unwind_append_sniffer): New function.
4993 (frame_unwind_append_predicate): Update append_predicate call.
4994 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4995
4996 2003-07-15 Andrew Cagney <cagney@redhat.com>
4997
4998 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4999 before code inhibiting repeated unwind attempts. Add to
5000 commentary on that test's problems.
5001 * blockframe.c (inside_main_func): Look for "main" in the minimal
5002 symbol table.
5003 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5004 identical.
5005
5006 2003-07-15 Andrew Cagney <cagney@redhat.com>
5007
5008 * complaints.c (struct explanation): Define.
5009 (struct complaints): Change type of "explanation" to "struct
5010 explanation".
5011 (symfile_explanations): Convert to a "struct explanation" table.
5012 (vcomplaint): Update.
5013
5014 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5015
5016 * x86-64-linux-nat.c (regmap): Removed.
5017 (supply_gregset, fill_gregset): Call
5018 x86_64_linux_(fill,supply)_gregset functions.
5019 * x86-64-linux-tdep.c (USER_*): New defines.
5020 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5021 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5022 New functions.
5023 (fetch_core_registers): Ditto.
5024 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5025 * x86-64-linux-tdep.h: New file.
5026 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5027 and core-regset.o.
5028 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5029
5030 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5031
5032 * x86-64-tdep.c (x86_64_store_return_value): Use
5033 regcache_cooked_write_part instead of regcache_cooked_write.
5034
5035 * configure.host: Add x86_64-*-freebsd*.
5036 * configure.tgt: Add x86_64-*-freebsd*.
5037 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5038 * amd64fbsd-nat.c: New file.
5039 * amd64fbsd-tdep.c: New file.
5040 * config/i386/nm-fbsd64.h: New file.
5041 * config/i386/fbsd64.mh: New file.
5042 * config/i386/fbsd64.mt: New file.
5043
5044 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5045
5046 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5047 `sc_regs_offset' and `sc_fpregs_offset'.
5048 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5049 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5050 (alpha_sigtramp_register_address): Rewrite to use new members of
5051 `struct gdbarch_tdep'.
5052 (alpha_gdbarch_init): Initialize new members of struct
5053 gdbarch_tdep'.
5054 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5055 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5056 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5057 (alphafbsd_pc_in_sigtramp): Implement.
5058 (alphafbsd_sigtramp_offset): New function.
5059 (alphafbsd_sigcontext_addr): New function.
5060 (alphafbsd_init_abi): Initialize signal trampoline related members
5061 of `struct gdbarch_tdep'.
5062 (_initialize_alphafbsd_tdep): Add prototype.
5063
5064 2003-07-11 Theodore A. Roth <troth@openavr.org>
5065
5066 * Makefile.in (install-only): Quote sed expression when generating
5067 transformed_name.
5068
5069 2003-07-11 Richard Henderson <rth@redhat.com>
5070
5071 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5072 * dwarf2-frame.c: Include complaints.h.
5073 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5074 variable initialization; return NULL on error.
5075 (decode_frame_entry): New.
5076
5077 2003-07-11 Andrew Cagney <cagney@redhat.com>
5078
5079 * frame.h (frame_address_in_block): Delete declaration.
5080 * blockframe.c (frame_address_in_block): Delete function.
5081 (get_frame_block): Use get_frame_address_in_block.
5082 (block_innermost_frame): Ditto.
5083 * stack.c (print_frame, backtrace_command_1): Ditto.
5084
5085 * frame.h (get_frame_address_in_block): Declare.
5086 (frame_unwind_address_in_block): Declare.
5087 * frame.c (frame_unwind_address_in_block): New function.
5088 (get_frame_address_in_block): New function.
5089
5090 2003-07-10 Andrew Cagney <cagney@redhat.com>
5091
5092 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5093 pre-default. Note: re-generate has no effect.
5094
5095 2003-07-10 Andrew Cagney <cagney@redhat.com>
5096
5097 * gdbarch.sh: When a variable, but not a function, compare against
5098 0. Fix problem in previous patch.
5099 * gdbarch.c: Re-generate.
5100
5101 2003-07-10 Andrew Cagney <cagney@redhat.com>
5102
5103 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5104 functions against NULL, not 0.
5105 * gdbarch.c: Re-generate.
5106
5107 2003-07-10 Fred Fish <fnf@ninemoons.com>
5108
5109 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5110 null string instead of a null pointer.
5111 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5112
5113 2003-07-09 Michael Snyder <msnyder@redhat.com>
5114
5115 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5116
5117 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5118
5119 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5120 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5121 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5122 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5123 * x86-64-tdep.c: ... from here.
5124
5125 2003-07-09 Andreas Schwab <schwab@suse.de>
5126
5127 * m68k-tdep.h (enum struct_return): Define.
5128 (struct gdbarch_tdep): Add struct_return.
5129 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5130 bytes are padded to the right, not to the left. Pass struct value
5131 address in register %a1, not on stack.
5132 (m68k_use_struct_convention): New function.
5133 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5134 struct_return in tdep to pcc_struct_return.
5135 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5136 reg_struct_return.
5137
5138 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5139
5140 * somread.c (som_symfile_offsets): Fix compilation error.
5141
5142 2003-07-09 Andrew Cagney <cagney@redhat.com>
5143
5144 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5145 Add comments about the checks.
5146
5147 2003-07-08 Andrew Cagney <cagney@redhat.com>
5148
5149 * Makefile.in: Make dependency section headers consistent.
5150 (config_h): Move to $BUILD headers section.
5151 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5152 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5153 (ada-exp.tab.c): Move to YACC/LEX section.
5154 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5155 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5156
5157 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5158
5159 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5160 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5161 of strerror with safe_strerror, use ISO C function definitions,
5162 and replace instances of sprintf with snprintf.
5163
5164 2003-07-07 Andrew Cagney <cagney@redhat.com>
5165
5166 * frame.c (get_prev_frame): Enable check for identical frames.
5167 Update comments. Update error messages.
5168
5169 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5170
5171 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5172
5173 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5174
5175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5176 sort_symtab_syms, no longer necessary.
5177
5178 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5179
5180 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5181
5182 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5183
5184 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5185 (mips_register_byte): Likewise.
5186
5187 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5188
5189 * Makefile.in (sparc_tdep_h): New.
5190 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5191 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5192 * sparc-linux-nat.c: Include "sparc-tdep.h".
5193 * sparc-nat.c: Likewise.
5194 * sparc-tdep.c: Likewise.
5195 * sparc64nbsd-nat.c: Likewise.
5196 * sparcnbsd-nat.c: Likewise.
5197 * sparcnbsd-tdep.c: Likewise.
5198 * sparc-tdep.h: New file.
5199 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5200 and sparc_npc_regnum.
5201
5202 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5203
5204 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5205 (mips_linux_cannot_store_register): List supported instead of
5206 unsupported registers.
5207
5208 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * disasm.c (dump_insns): Separate instructions from addresses.
5211
5212 2003-07-07 Andreas Schwab <schwab@suse.de>
5213
5214 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5215 dependencies.
5216 * m68k-tdep.c (NUM_FREGS): Delete.
5217 (SIG_PC_FP_OFFSET): Delete.
5218 (TARGET_M68K): Delete.
5219 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5220 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5221 P_MOVEL_SP, P_MOVEML_SP): Define.
5222 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5223 P_TRAP): Delete.
5224 (m68k_register_raw_size): Delete.
5225 (m68k_register_virtual_size): Delete.
5226 (m68k_register_type): Renamed from m68k_register_virtual_type and
5227 add gdbarch argument.
5228 (m68k_store_struct_return): Delete.
5229 (m68k_deprecated_extract_return_value): Delete.
5230 (m68k_deprecated_extract_struct_value_address): Delete.
5231 (m68k_frame_chain): Delete.
5232 (m68k_frame_saved_pc): Delete.
5233 (m68k_fix_call_dummy): Delete.
5234 (m68k_push_dummy_frame): Delete.
5235 (m68k_pop_frame): Delete.
5236 (m68k_extract_return_value): New function.
5237 (m68k_store_return_value): Rewrite using regcache.
5238 (m68k_extract_struct_value_address): Rewrite using regcache.
5239 (m68k_push_dummy_call): New function.
5240 (struct m68k_frame_cache): Define.
5241 (m68k_alloc_frame_cache): New function.
5242 (m68k_analyze_frame_setup): New function.
5243 (m68k_analyze_register_saves): New function.
5244 (m68k_analyze_prologue): New function.
5245 (m68k_skip_prologue): Rewrite using above functions.
5246 (m68k_unwind_pc): New function.
5247 (m68k_frame_cache): New function.
5248 (m68k_frame_this_id): New function.
5249 (m68k_frame_prev_register): New function.
5250 (m68k_frame_unwind): New variable.
5251 (m68k_frame_p): New function.
5252 (m68k_sigtramp_frame_cache): New function.
5253 (m68k_sigtramp_frame_this_id): New function.
5254 (m68k_sigtramp_frame_prev_register): New function.
5255 (m68k_sigtramp_frame_unwind): New variable.
5256 (m68k_sigtramp_frame_p): New function.
5257 (m68k_frame_base_address): New function.
5258 (m68k_frame_base): New function.
5259 (m68k_unwind_dummy_id): New function.
5260 (fill_gregset): Use regcache_collect.
5261 (fill_fpregset): Likewise.
5262 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5263 defined.
5264 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5265 deprecated_init_frame_pc, deprecated_store_struct_return,
5266 deprecated_extract_return_value, deprecated_store_return_value,
5267 deprecated_frame_chain, deprecated_frame_saved_pc,
5268 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5269 deprecated_register_virtual_size,
5270 deprecated_max_register_raw_size,
5271 deprecated_max_register_virtual_size,
5272 deprecated_register_virtual_type, deprecated_register_size,
5273 deprecated_register_byte, deprecated_register_bytes,
5274 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5275 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5276 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5277 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5278 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5279 deprecated_push_dummy_frame, deprecated_pop_frame,
5280 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5281 only if SYSCALL_TRAP is defined. Set extract_return_value,
5282 store_return_value, extract_struct_value_address, register_type,
5283 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5284 predicates.
5285 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5286 M68K_MAX_REGISTER_SIZE): Define.
5287 (struct m68k_sigtramp_info): Define.
5288 (struct gdbarch_tdep): Add get_sigtramp_info.
5289 * m68klinux-nat.c (fetch_register): Use register_size instead of
5290 REGISTER_RAW_SIZE. Don't put assignment in if.
5291 (store_register): Likewise.
5292 (fetch_inferior_registers): Likewise.
5293 (store_inferior_registers): Likewise.
5294 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5295 (m68k_linux_frame_saved_pc): Delete.
5296 (m68k_linux_sigcontext_reg_offset,
5297 m68k_linux_ucontext_reg_offset): Define.
5298 (m68k_linux_get_sigtramp_info): New function.
5299 (m68k_linux_extract_return_value): Rewrite using regcache.
5300 (m68k_linux_store_return_value): Likewise.
5301 (m68k_linux_extract_struct_value_address): Likewise.
5302 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5303 Don't set deprecated_frame_saved_pc,
5304 deprecated_extract_return_value, deprecated_store_return_value,
5305 deprecated_extract_struct_value_address. Set
5306 extract_return_value, store_return_value,
5307 extract_struct_value_address.
5308
5309 2003-07-07 Andrew Cagney <cagney@redhat.com>
5310
5311 * expprint.c: Include "user-regs.h" instead of "frame.h".
5312 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5313 frame_map_regnum_to_name.
5314 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5315 (frame_map_name_to_regnum): Simplify, call
5316 user_reg_map_name_to_regnum.
5317 (frame_map_regnum_to_name): Simplify, call
5318 user_reg_map_regnum_to_name.
5319 (frame_register_unwind): Update.
5320 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5321 (_initialize_frame_reg): Call user_reg_add_builtin.
5322 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5323 (value_of_register): Use value_of_user_reg.
5324 * eval.c (evaluate_subexp_standard): Update.
5325 * parse.c (write_dollar_variable): Update.
5326 * d10v-tdep.c (d10v_print_registers_info): Update.
5327 * infcmd.c (registers_info): Update.
5328 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5329 (builtin_regs_h): Delete macro.
5330 (user_regs_h): Define.
5331 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5332 (builtin-regs.o): Delete target.
5333 (user-regs.o): Specify dependencies.
5334 (expprint.o): Update dependencies.
5335 (findvar.o): Update dependencies.
5336 (frame.o): Update dependencies.
5337 (std-regs.o): Update dependencies.
5338
5339 2003-07-06 Christopher Faylor <cgf@redhat.com>
5340
5341 * win32-nat.c (solib_symbols_add): Use one variable for all section
5342 address stuff. Pass variable rather than address of variable to
5343 safe_symbol_file_add.
5344
5345 2003-07-06 Andreas Schwab <schwab@suse.de>
5346
5347 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5348
5349 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5350
5351 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5352
5353 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5354
5355 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5356
5357 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5358
5359 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5360 * config/i386/nto.mh: New file.
5361 * config/i386/nm-nto.h: New file.
5362 * configure.host: Add i[3456]86-*-nto*.
5363
5364 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5365
5366 * remote-vx.c (vx_add_symbols): Fix compilation error.
5367
5368 2003-07-03 Andrew Cagney <cagney@redhat.com>
5369
5370 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5371 * gdbarch.h, gdbarch.c: Re-generate.
5372 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5373 (legacy_register_name): Declare.
5374 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5375 (REGISTER_NAME): Define.
5376 * sparc-tdep.c (legacy_register_name): New function.
5377 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5378 (REGISTER_NAME): Define.
5379 (hppa64_register_name): Declare.
5380 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5381 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5382 (hppa64_register_name): New function.
5383 (hppa_register_name): New function.
5384 * arch-utils.c (legacy_register_name): Delete.
5385 * arch-utils.h (legacy_register_name): Delete.
5386
5387 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5388
5389 * cli/cli-interp.c (cli_interpreter_resume): Update the
5390 cli_uiout's stream to gdb_stdout.
5391
5392 2003-07-03 Andrew Cagney <cagney@redhat.com>
5393
5394 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5395 predicate.
5396 * gdbarch.h, gdbarch.c: Re-generate.
5397 * regcache.c (init_regcache_descr): Use legacy code when either
5398 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5399
5400 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5401
5402 * NEWS: Move "set logging" entry into GDB 6.0 section.
5403
5404 2003-07-02 Jim Blandy <jimb@redhat.com>
5405
5406 * s390-tdep.c (struct frame_extra_info): new member:
5407 'stack_bought_valid'.
5408 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5409 initialize fextra_info->stack_bought.
5410 (s390_frameless_function_invocation): Don't trust the value of
5411 fextra_info_ptr->stack_bought unless
5412 fextra_info->stack_bought_valid is set.
5413
5414 New S390 prologue analyzer.
5415 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5416 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5417 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5418 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5419 compute_x_addr, s390_on_stack, s390_store,
5420 s390_get_signal_frame_info): New functions.
5421 (S390_NUM_SPILL_SLOTS): New macro.
5422 (s390_get_frame_info): Rewritten.
5423 (is_arg_reg): Deleted.
5424
5425 Break out the decoding of S/390 instructions into separate
5426 functions, to make it more legible, and easier to check
5427 against the spec.
5428 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5429 is_rx, is_rxe): New functions.
5430 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5431 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5432 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5433 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5434 enums for opcode values. (Is this an improvement?)
5435
5436 2003-07-02 Andrew Cagney <cagney@redhat.com>
5437
5438 * i386-tdep.c: Revert change committed as part of trad-frame code
5439 below.
5440
5441 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5442
5443 * breakpoint.c (insert_catchpoint): Make static.
5444
5445 2003-07-02 Andreas Schwab <schwab@suse.de>
5446
5447 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5448 former ia64_push_arguments and ia64_push_return_address, and use
5449 regcache functions instead of read/write_register.
5450 (ia64_gdbarch_init): Set push_dummy_call instead of
5451 deprecated_push_arguments and deprecated_push_return_address.
5452
5453 2003-07-01 Andreas Jaeger <aj@suse.de>
5454
5455 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5456 before the call.
5457 Set %rax only to number of SSE registers used.
5458
5459 2003-07-01 Andrew Cagney <cagney@redhat.com>
5460
5461 * trad-frame.h: Update comments, a -1 .addr is reserved.
5462 (trad_frame_value_p, trad_frame_addr_p): Declare.
5463 (trad_frame_reg_p): Declare.
5464 (trad_frame_set_value): Rename trad_frame_register_value.
5465 (trad_frame_set_unknown): Declare.
5466 * trad-frame.c (trad_frame_realreg_p): New function.
5467 (trad_frame_addr_p, trad_frame_value_p): New function.
5468 (trad_frame_set_unknown): New function.
5469 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5470 (trad_frame_prev_register): Use trad_frame_realreg_p,
5471 trad_frame_addr_p and trad_frame_value_p.
5472 (trad_frame_set_value): Rename trad_frame_register_value.
5473 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5474 and trad_frame_set_value.
5475
5476 2003-06-30 Jim Blandy <jimb@redhat.com>
5477
5478 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5479 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5480 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5481 for 16 registers, and then 32 more bytes.
5482 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5483 New macros.
5484 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5485 Move up in the file, since it's now used by is_simple_arg.
5486 (is_simple_arg): Don't assume registers are four bytes long.
5487 Exclude all double arguments. Extended floats are not simple
5488 args.
5489 (is_power_of_two): New function.
5490 (pass_by_copy_ref): Call is_power_of_two, and check that the
5491 length fits in a register, rather than listing all the acceptable
5492 sizes. Extended floats are not passed by reference.
5493 (s390_push_arguments): Don't assume registers are four bytes long.
5494 Reserve an argument register to point to the buffer for structures
5495 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5496 S390_STACK_FRAME_OVERHEAD.
5497
5498 2003-06-30 Andreas Schwab <schwab@suse.de>
5499
5500 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5501 format error message.
5502
5503 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5504
5505 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5506
5507 2003-06-30 David Carlton <carlton@kealia.com>
5508
5509 Band-aid for PR c++/1245.
5510 * Makefile.in (cp-support.o): Depend on complaints_h.
5511 * cp-support.c: Include complaints.h. Add declaration for
5512 find_last_component.
5513 (cp_find_first_component): Separate code into
5514 cp_find_first_component_aux.
5515 (cp_find_first_component_aux): Call demangled_name_complaint.
5516 (demangled_name_complaint): New.
5517
5518 2003-06-30 Andrew Cagney <cagney@redhat.com>
5519
5520 * remote.c (remote_write_bytes): Explicitly compute and then use
5521 the payload size. Update comments to reflect. Fixes problem of
5522 GDB not sending small packets as found by Fred Fish.
5523
5524 2003-06-30 Andrew Cagney <cagney@redhat.com>
5525
5526 * remote.c (remote_async_wait): Fix -Wformat problem.
5527
5528 2003-06-29 Andrew Cagney <cagney@redhat.com>
5529
5530 * remote.c (remote_wait): Call error, and not warning, when the
5531 packet is corrupt.
5532 (remote_async_wait): Ditto.
5533
5534 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5535
5536 * sparc-tdep.c (sparc_y_regnum): Make external again.
5537
5538 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5539
5540 * cli/cli-logging.c (pop_output_files): Add void to function
5541 definition.
5542
5543 2003-06-29 Andrew Cagney <cagney@redhat.com>
5544
5545 * frame.c (frame_register_unwind): Use unsigned char when dumping
5546 the buffer contents.
5547
5548 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5549
5550 * cli/cli-logging.c: New file.
5551 * cli-out.c (struct ui_out_data): Add original_stream.
5552 (cli_redirect): New function.
5553 (cli_ui_out_impl): Add cli_redirect.
5554 (cli_out_new): Initialize original_stream.
5555 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5556 (uo_redirect, ui_out_redirect): New.
5557 * ui-out.h (struct ui_out_impl): Add redirect member.
5558 (redirect_ftype): New.
5559 (ui_out_redirect): Add prototype.
5560 * Makefile.in: Add rules for cli-logging.c.
5561 * NEWS: Mention "set logging".
5562
5563 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5564
5565 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5566
5567 2003-06-27 Andrew Cagney <cagney@redhat.com>
5568
5569 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5570 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5571 * avr-tdep.c (avr_call_dummy_address): Delete function.
5572 (avr_gdbarch_init): Do not set call_dummy_address.
5573
5574 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5575
5576 * symfile.c (syms_from_objfile): Move variables to inner block.
5577 Move the checks for the non-mainline case a bit earlier to avoid
5578 doing some useless computations.
5579
5580 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5581
5582 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5583
5584 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5585
5586 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5587 sections.
5588
5589 2003-06-26 Michael Chastain <mec@shout.net>
5590
5591 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5592 gdb/testsuite/gdb.c++/pr-1210.exp.
5593
5594 2003-06-26 Andrew Cagney <cagney@redhat.com>
5595
5596 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5597 altivec_expression.h and altivec_registers.h.
5598
5599 2003-06-26 Andrew Cagney <cagney@redhat.com>
5600
5601 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5602 info->mach when MIPS16. Patch suggested by Fred Fish.
5603
5604 2003-06-26 Andrew Cagney <cagney@redhat.com>
5605
5606 * utils.c (internal_vproblem): Print the problem to a reason
5607 buffer and then pass to query. Make the msg variable more local.
5608
5609 2003-06-26 Andrew Cagney <cagney@redhat.com>
5610
5611 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5612 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5613 * gdbarch.h, gdbarch.c: Re-generate.
5614 * frame-base.c (default_frame_args_address): Update. Use
5615 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5616 not available.
5617 (default_frame_locals_address): Ditto for
5618 DEPRECATED_FRAME_LOCALS_ADDRESS.
5619 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5620 (vax_frame_num_args): Update.
5621 (vax_gdbarch_init): Update.
5622 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5623 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5624 * mcore-tdep.c (mcore_gdbarch_init): Update.
5625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5626 * ia64-tdep.c (ia64_gdbarch_init): Update.
5627 * symtab.h (address_class): Update comments.
5628 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5629 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5630 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5631 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5632 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5633 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5634 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5635 * alpha-mdebug-tdep.c: Update.
5636 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5637
5638 2003-06-26 Andreas Jaeger <aj@suse.de>
5639
5640 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5641 of SSE registers so that varargs functions work. Rework handling
5642 of passing arguments on the stack.
5643 (x86_64_store_return_value): Return double and float values in SSE
5644 register.
5645
5646 2003-06-24 Michael Chastain <mec@shout.net>
5647
5648 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5649 the "constructor breakpoints ignored" bug.
5650
5651 2003-06-25 David Carlton <carlton@kealia.com>
5652
5653 * MAINTAINERS: Update e-mail address.
5654
5655 2003-06-24 Jim Blandy <jimb@redhat.com>
5656
5657 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5658
5659 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5660 function.
5661 (ppc_linux_init_abi): Register it as the
5662 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5663
5664 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5665 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5666 method.
5667
5668 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5669 (ppc64_standard_linkage_target): Use it.
5670
5671 2003-06-23 Andrew Cagney <cagney@redhat.com>
5672
5673 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5674 for 0 "int0" and 4 "int32" sized registers.
5675 * gdbtypes.c (builtin_type_int0): Define.
5676 (build_gdbtypes): Initialize builtin_type_int0.
5677 * gdbtypes.h (builtin_type_int0): Declare.
5678
5679 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5680
5681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5682 as characters are unsigned.
5683
5684 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5685
5686 PR gdb/1179
5687 * dwarfread.c (struct_type): Skip static fields without crashing.
5688
5689 2003-06-22 Andrew Cagney <cagney@redhat.com>
5690
5691 GDB 6.0 branch created.
5692 * README: Update.
5693 * PROBLEMS: Update. Empty.
5694 * NEWS: Update.
5695
5696 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5697
5698 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5699 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5700
5701 2003-06-22 Andrew Cagney <cagney@redhat.com>
5702
5703 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5704 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5705 Velikov.
5706
5707 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5708
5709 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5710 compilers.
5711
5712 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5713
5714 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5715 argument of val_print.
5716 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5717 to the address argument of baseclass_offset or target_read_memory.
5718 Do add it to the argument of cp_print_value_fields.
5719
5720 2003-06-21 Andrew Cagney <cagney@redhat.com>
5721
5722 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5723 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5724 instead of 0..NUM_REGS.
5725 (mips_register_reggroup_p): New function.
5726 (mips_pseudo_register_write): New function.
5727 (mips_pseudo_register_read): New function.
5728 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5729 based on the register's type.
5730 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5731 cooked.
5732 (mips_get_saved_register): Simplify. Assert that REGNO is a
5733 pseudo / cooked.
5734 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5735 (mips_register_type): Replace mips_register_virtual_type. Map
5736 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5737 when available.
5738 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5739 that the register is cooked / virtual.
5740 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5741 Only get the extra info when needed.
5742 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5743 (mips32_heuristic_proc_desc): Fetch the cooked register.
5744 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5745 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5746 (mips_print_register): Use gdbarch_register_type, instead of
5747 REGISTER_VIRTUAL_TYPE.
5748 (print_gp_register_row): Use gdbarch_register_type, instead of
5749 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5750 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5751 Print the pseudo / cooked registers.
5752 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5753 Print the pseudo / cooked registers.
5754 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5755 REG_NUM is pseudo / cooked.
5756 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5757 (mips_n32n64_xfer_return_value): Ditto.
5758 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5759 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5760 (mips_register_sim_regno): New function.
5761 (mips_gdbarch_init): Set deprecated_register_byte,
5762 register_group_p, pseudo_register_write, pseudo_register_read,
5763 register_sim_regno, and num_pseudo_regs. Set register_type,
5764 instead of register_virtual_type.
5765 * Makefile.in (mips-tdep.o): Update dependencies.
5766 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5767 REGISTER_VIRTUAL_TYPE.
5768 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5769 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5770 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5771 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5772 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5773
5774 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5775
5776 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5777 * cli/cli-cmds.c: Include "gdb_vfork.h".
5778 (shell_escape): Use vfork.
5779
5780 2003-06-21 Andrew Cagney <cagney@redhat.com>
5781
5782 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5783 32 bit floating-point register saves.
5784
5785 * frame.h (deprecated_unwind_get_saved_register): Delete.
5786 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5787 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5788 and deprecated_get_next_frame_hack instead of
5789 deprecated_unwind_get_saved_register.
5790
5791 * mips-tdep.c (mips_dump_tdep): Do not print
5792 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5793
5794 * frame.c (get_frame_register): New function.
5795 (frame_unwind_register_signed): New function.
5796 (get_frame_register_signed): New function.
5797 (frame_unwind_register_unsigned): New function.
5798 (get_frame_register_unsigned): New function.
5799 * frame.h: Add comments on naming schema.
5800 (get_frame_register, frame_unwind_register_signed): Declare.
5801 (get_frame_register_signed, get_frame_register_signed): Declare.
5802 (frame_unwind_register_unsigned): Declare.
5803 (get_frame_register_unsigned): Declare.
5804
5805 2003-06-20 Theodore A. Roth <troth@openavr.org>
5806
5807 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5808
5809 2003-06-20 Theodore A. Roth <troth@openavr.org>
5810
5811 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5812 (avr_read_sp): Ditto.
5813
5814 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5815
5816 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5817 * config/arm/nm-linux.h: Likewise.
5818 * config/arm/tm-linux.h: Likewise.
5819 * config/ia64/nm-linux.h: Likewise.
5820 * config/ia64/tm-ia64.h: Likewise.
5821 * config/s390/tm-linux.h: Likewise.
5822 * config/s390/tm-s390.h: Likewise.
5823 * s390-nat.c: Likewise.
5824 * s390-tdep.c: Likewise.
5825
5826 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5827 * config/ia64/linux.mt: Likewise.
5828 * config/m68k/linux.mh: Likewise.
5829 * config/mips/linux.mt: Likewise.
5830 * config/powerpc/linux.mh: Likewise.
5831 * config/sh/linux.mt: Likewise.
5832
5833 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5834
5835 * solib.c (solib_open): Change tests for whether to search
5836 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5837 comments.
5838
5839 2003-06-19 Theodore A. Roth <troth@openavr.org>
5840
5841 * avr-tdep.c (avr_frame_address): Delete function.
5842 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5843 set_gdbarch_frame_args_address.
5844
5845 2003-06-19 Andrew Cagney <cagney@redhat.com>
5846
5847 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5848 (REGISTER_CONVERT_FROM_TYPE): Delete.
5849 (mips_register_convert_to_type): Delete declaration.
5850 (mips_register_convert_from_type): Delete declaration.
5851 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5852 kernel/.
5853
5854 2003-06-19 Michael Snyder <msnyder@redhat.com>
5855
5856 * linux-nat.h: New file.
5857 * linux-nat.c: Include linux-nat.h.
5858 * lin-lwp.c: Include linux-nat.h.
5859 Move struct lwp_info def to linux-nat.h.
5860 * linux-proc.c: Include linux-nat.h.
5861 (linux_make_note_section): Iterate over lwps instead of threads.
5862 (linux_do_thread_registers): Use lwp instead of merged pid.
5863 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5864 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5865 Add dependency on linux_nat_h.
5866
5867 2003-06-19 Theodore A. Roth <troth@openavr.org>
5868
5869 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5870
5871 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5872
5873 * varobj.c (get_type, get_target_type): Use check_typedef.
5874
5875 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5876
5877 * breakpoint.c (insert_catchpoint): Call internal_error.
5878
5879 2003-06-19 Theodore A. Roth <troth@openavr.org>
5880
5881 * avr-tdep.c (avr_push_dummy_code): Delete function.
5882 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5883
5884 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5885
5886 * arch-utils.c (default_prepare_to_proceed): Remove.
5887 (generic_prepare_to_proceed): Remove.
5888 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5889 (generic_prepare_to_proceed): Remove prototype.
5890 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5891 * gdbarch.c: Regenerate.
5892 * gdbarch.h: Regenerate.
5893 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5894 * hppah-nat.c (hppa_switched_threads): Remove.
5895 * infrun.c (prepare_to_proceed): New static function, copied from
5896 generic_prepare_to_proceed. Remove select_it argument.
5897 (proceed): Call prepare_to_proceed.
5898 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5899 variables.
5900 (ptrace_wait): Don't set the removed variables.
5901 (hppa_switched_threads): Remove.
5902 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5903 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5904 (lin_lwp_prepare_to_proceed): Remove prototype.
5905 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5906 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5907
5908 2003-06-18 Theodore A. Roth <troth@openavr.org>
5909
5910 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5911 trad-frame.h.
5912 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5913 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5914 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5915 (AVR_PROLOGUE_*): Enumerate prologue types.
5916 (struct frame_extra_info): Remove.
5917 (struct avr_unwind_cache): Define.
5918 (avr_write_sp): Delete function.
5919 (avr_read_fp): Ditto.
5920 (avr_init_extra_frame_info): Ditto.
5921 (avr_pop_frame): Ditto.
5922 (avr_frame_saved_pc): Ditto.
5923 (avr_saved_pc_after_call): Ditto.
5924 (avr_push_return_address): Ditto.
5925 (avr_frame_chain): Ditto.
5926 (avr_store_struct_return): Ditto.
5927 (avr_push_arguments): Ditto.
5928 (avr_scan_prologue): Update comments. Changed to set up the info for
5929 cache unwinding. Now returns end of prologue PC.
5930 (avr_skip_prologue): Better handling of functions lacking a prologue
5931 by using avr_scan_prologue.
5932 (avr_scan_arg_moves): New function.
5933 (avr_saved_regs_unwinder): Ditto.
5934 (avr_frame_unwind_cache): Ditto.
5935 (avr_unwind_pc): Ditto.
5936 (avr_frame_this_id): Ditto.
5937 (avr_frame_prev_register): Ditto.
5938 (avr_frame_p): Ditto.
5939 (avr_frame_base_address ): Ditto.
5940 (avr_unwind_dummy_id): Ditto.
5941 (avr_push_dummy_code): Ditto.
5942 (push_stack_item): Ditto.
5943 (pop_stack_item): Ditto.
5944 (avr_push_dummy_call): Ditto.
5945 (struct stack_item): Define.
5946 (avr_frame_unwind): Declare structure.
5947 (avr_frame_base): Ditto.
5948 (avr_gdbarch_init): Remove calls to
5949 set_gdbarch_deprecated_init_frame_pc,
5950 set_gdbarch_deprecated_target_read_fp,
5951 set_gdbarch_deprecated_dummy_write_sp,
5952 set_gdbarch_deprecated_fp_regnum,
5953 set_gdbarch_deprecated_push_arguments,
5954 set_gdbarch_deprecated_push_return_address,
5955 set_gdbarch_deprecated_pop_frame,
5956 set_gdbarch_deprecated_store_struct_return,
5957 set_gdbarch_deprecated_frame_init_saved_regs,
5958 set_gdbarch_deprecated_init_extra_frame_info,
5959 set_gdbarch_deprecated_frame_chain,
5960 set_gdbarch_deprecated_frame_saved_pc,
5961 set_gdbarch_deprecated_saved_pc_after_call.
5962 Add calls to set_gdbarch_push_dummy_call,
5963 set_gdbarch_push_dummy_code,
5964 frame_unwind_append_predicate,
5965 frame_base_set_default,
5966 set_gdbarch_unwind_dummy_id,
5967 set_gdbarch_unwind_pc.
5968 Wrap a long line.
5969
5970 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5971
5972 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5973 registers for H8/300S.
5974 (h8300_print_registers_info): Ditto.
5975 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5976
5977 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5978
5979 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5980 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5981 (lin_lwp_wait): Likewise. Update comments.
5982 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5983 (pull_pid_from_list, linux_record_stopped_pid): New.
5984
5985 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5986
5987 * ada-lang.c (scan_discrim_bound): Name first argument.
5988 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5989 declared by ALL_BLOCK_SYMBOLS.
5990
5991 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5992
5993 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5994 ("regcache.h"): Include it.
5995 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5996
5997 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5998
5999 * NEWS: Mention gdbserver detach change and "disconnect" command.
6000 * infcmd.c (disconnect_command): New function.
6001 (_initialize_infcmd): Add ``disconnect'' command.
6002 * remote.c (remote_async_detach): Delete.
6003 (remote_detach): Merge remote_async_detach.
6004 (remote_disconnect): New.
6005 (init_remote_ops): Set to_disconnect.
6006 (init_remote_cisco_ops): Likewise.
6007 (init_remote_async_ops): Likewise. Use remote_detach.
6008 * target.c (cleanup_target): Default to_disconnect.
6009 (update_current_target): Inherit to_disconnect.
6010 (target_disconnect, debug_to_disconnect): New functions.
6011 (setup_target_debug): Set to_disconnect.
6012 * target.h (struct target_ops): Add to_disconnect.
6013 (target_disconnect): Add prototype.
6014
6015 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6016
6017 * breakpoint.c (insert_catchpoint): New function.
6018 (insert_breakpoints): Use catch_exceptions to call
6019 insert_catchpoint. Disable catchpoints if they fail to insert.
6020
6021 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6022
6023 * symfile.c (reread_symbols): Clear sym_private.
6024
6025 2003-06-17 Andrew Cagney <cagney@redhat.com>
6026
6027 * trad-frame.h (struct frame_info): Add opaque declaration.
6028 * remote-fileio.h (struct cmd_list_element): Add opaque
6029 declaration.
6030 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6031 comments.
6032
6033 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6034
6035 * remote.c (remote_prepare_to_store): Replace call to
6036 deprecated_read_register_bytes with multiple regcache_raw_read
6037 calls.
6038
6039 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6040
6041 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6042 (nto_find_and_open_solib): Likewise.
6043 (nto_init_solib_absolute_prefix): Likewise.
6044 (_initialize_nto_tdep): Fix indentation.
6045
6046 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6047
6048 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6049
6050 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6051
6052 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6053
6054 2003-06-17 Jim Blandy <jimb@redhat.com>
6055
6056 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6057
6058 2003-06-16 Theodore A. Roth <troth@openavr.org>
6059
6060 * avr-tdep.c (avr_extract_return_value): New function.
6061 (avr_gdbarch_init): Set extract_return_value method.
6062
6063 2003-06-16 Andrew Cagney <cagney@redhat.com>
6064
6065 * frame.h (deprecated_get_next_frame_hack): Declare.
6066 * frame.c (legacy_saved_regs_prev_register): Only require
6067 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6068 there are always saved regs.
6069 (deprecated_generic_get_saved_register): Do not require
6070 DEPRECATED_FRAME_INIT_SAVED_REGS.
6071 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6072 use frame ID unwind instead.
6073 (deprecated_get_next_frame_hack): New function.
6074
6075 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6076
6077 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6078 (h8300_push_dummy_call): ...this function. Some minor optimization.
6079 (h8300_push_return_address): Remove.
6080 (h8300_gdbarch_init): Remove calls to
6081 set_gdbarch_deprecated_dummy_write_sp,
6082 set_gdbarch_deprecated_push_arguments and
6083 set_gdbarch_deprecated_push_return_address.
6084 Add call to set_gdbarch_push_dummy_call.
6085
6086 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6087
6088 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6089 (E_PSEUDO_EXR_REGNUM): Ditto.
6090 (h8300_is_argument_spill): Check for instructions moving argument
6091 registers into safe registers.
6092 (h8300_skip_prologue): Check for stm instruction to push registers
6093 used for register variables onto stack.
6094 (gdb_print_insn_h8300): Remove.
6095 (h8300_examine_prologue): Add a comment.
6096 (h8300_register_name): Take pseudo registers into account.
6097 (h8300s_register_name): Ditto.
6098 (h8300sx_register_name): Ditto.
6099 (h8300_print_register): Ditto.
6100 (h8300_print_registers_info): Define "nice" printing order.
6101 (h8300_saved_pc_after_call): Take pseudo registers into account.
6102 (h8300_register_type): Ditto. Return type used for remote connection
6103 when requesting real CCR or EXR register, return actual type when
6104 requesting pseudo CCR or EXR.
6105 (h8300_pseudo_register_read): New function.
6106 (h8300_pseudo_register_write): Ditto.
6107 (h8300_dbg_reg_to_regnum): Ditto.
6108 (h8300s_dbg_reg_to_regnum): Ditto.
6109 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6110 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6111 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6112 set_gdbarch_print_insn architecture dependent.
6113 Call set_gdbarch_pseudo_register_read and
6114 set_gdbarch_pseudo_register_write.
6115 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6116
6117 2003-06-16 Andrew Cagney <cagney@redhat.com>
6118
6119 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6120 * gdbarch.h, gdbarch.c: Re-generate.
6121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6122 * s390-tdep.c (s390_gdbarch_init): Update.
6123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6124 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6125 * mips-tdep.c (mips_gdbarch_init): Update.
6126 * mcore-tdep.c (mcore_gdbarch_init): Update.
6127 * cris-tdep.c (cris_gdbarch_init): Update.
6128 * infcall.c (call_function_by_hand): Update.
6129 * ia64-tdep.c (ia64_push_arguments): Update comment.
6130 * frame.c (legacy_get_prev_frame): Do not assume
6131 SAVE_DUMMY_FRAME_TOS_P.
6132 * dummy-frame.c (find_dummy_frame): Update comment.
6133
6134 2003-06-16 Andrew Cagney <cagney@redhat.com>
6135
6136 * regcache.c (do_cooked_read): Do not use register_valid_p.
6137
6138 2003-06-15 Theodore A. Roth <troth@openavr.org>
6139
6140 * avr-tdep.c (avr_register_type): Remove a blank line.
6141 (avr_scan_prologue): Correct some comments.
6142
6143 2003-06-15 Theodore A. Roth <troth@openavr.org>
6144
6145 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6146 prologue types.
6147 Properly scan prologues generated by gcc with the -mcall-prologues
6148 option.
6149 Add code to scan -mcall-prologues for mega devices.
6150
6151 2003-06-15 Theodore A. Roth <troth@openavr.org>
6152
6153 * avr-tdep.c (avr_register_byte): Delete function.
6154 (avr_register_raw_size): Delete function.
6155 (avr_register_virtual_size): Delete function.
6156 (avr_register_virtual_type): Delete function.
6157 (avr_register_type): New function.
6158 (avr_address_to_pointer): Remove unused code.
6159 (avr_read_fp): Need to read FP as two separate bytes due to change to
6160 avr_register_type() usage.
6161 (avr_gdbarch_init): Don't set deprecated_register_size.
6162 Don't set deprecated_register_bytes.
6163 Don't set deprecated_register_byte.
6164 Don't set deprecated_register_raw_size.
6165 Don't set deprecated_max_register_raw_size.
6166 Don't set deprecated_register_virtual_size.
6167 Don't set deprecated_max_register_virtual_size.
6168 Don't set deprecated_register_virtual_type.
6169 Set register_type method.
6170
6171 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6172
6173 * Makefile.in (linux-nat.o): Add rule.
6174 * linux-nat.c: New file.
6175 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6176 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6177 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6178 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6179 * config/arm/linux.mh (NATDEPFILES): Likewise.
6180 * config/i386/linux.mh (NATDEPFILES): Likewise.
6181 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6182 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6183 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6184 * config/mips/linux.mh (NATDEPFILES): Likewise.
6185 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6186 * config/s390/s390.mh (NATDEPFILES): Likewise.
6187 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6188
6189 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6190
6191 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6192 replace out-of-date comment.
6193
6194 2003-06-15 Andrew Cagney <cagney@redhat.com>
6195
6196 * rdi-share/host.h (Fail): Change to a varargs function.
6197 * remote-rdi.c (Fail): Update.
6198
6199 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6200
6201 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6202 (i386_convert_register_p, i386_register_to_value,
6203 i386_register_from_value): Handle types longer than 8 bytes.
6204
6205 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6206
6207 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6208 Move floating-point code to new function in i387-tdep.c.
6209 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6210 New functions containing code moved here from i386-tdep.c.
6211 * i387-tdep.h: Add opaque declaration for `struct type'.
6212 (i387_register_to_value, i387_value_to_register): New prototypes.
6213 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6214 (x86_64_init_abi): Set convert_register_p, register_to_value and
6215 value_to_register here.
6216
6217 2003-06-14 Andrew Cagney <cagney@redhat.com>
6218
6219 * mips-tdep.c (mips_register_to_value): Make static.
6220 (mips_value_to_register): Make static.
6221 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6222 * ia64-tdep.c (ia64_register_raw_size): Make static.
6223 (ia64_register_virtual_size): Make static.
6224 (ia64_register_byte): Make static.
6225 * i387-tdep.c: Include "i387-tdep.h".
6226 (print_387_control_word): Delete function.
6227 (print_387_status_word): Delete function.
6228 (print_387_status_bits): Delete function.
6229 (print_387_control_bits): Delete function.
6230 * Makefile.in (i387-tdep.o): Update dependencies.
6231 * rdi-share/host.h (Fail): Declare.
6232 * remote-rdi.c (Fail): Update to match declaration.
6233
6234 2003-06-14 Andrew Cagney <cagney@redhat.com>
6235
6236 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6237 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6238 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6239 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6240 * README: Delete reference to remote-array.
6241 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6242 (remote-array.o): Delete target.
6243 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6244 * remote-array.c: Delete file.
6245
6246 2003-06-14 Andrew Cagney <cagney@redhat.com>
6247 Mark Kettenis <kettenis@gnu.org>
6248
6249 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6250 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6251 parameter with "frame".
6252 * gdbarch.h, gdbarch.c: Re-generate.
6253 * frame.h (put_frame_register): Declare.
6254 * frame.c (put_frame_register): New function.
6255 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6256 (legacy_register_to_value): Rewrite, use "frame" to get the
6257 register value.
6258 (legacy_value_to_register): Rewrite, use "frame" to find the
6259 register's location before storing.
6260 * arch-utils.h (legacy_convert_register_p): Update.
6261 (legacy_register_to_value, legacy_value_to_register): Update.
6262 * findvar.c (value_from_register): Rewrite, eliminate use of
6263 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6264 "frame" to REGISTER_TO_VALUE.
6265 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6266 lval_reg_frame_relative + lval_register branch of the switch. Do
6267 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6268 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6269 I386_EDI_REGNUM): New defines.
6270 (i386_next_regnum, i386_convert_register_p,
6271 i386_register_to_value, i386_value_to_register): New functions.
6272 (i386_register_convertible, i386_register_convert_to_virtual,
6273 i386_convert_to_raw): Remove functions.
6274 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6275 value_to_register instead of register_convertible,
6276 register_convert_to_virtual and register_convert_to_raw.
6277 * mips-tdep.c (mips_convert_register_p): New function.
6278 (mips_value_to_register): Replace mips_register_convert_from_type.
6279 (mips_register_to_value): Replace mips_register_convert_to_type.
6280 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6281 register_to_value.
6282 * alpha-tdep.c (alpha_convert_register_p): Update.
6283 (alpha_value_to_register): Update, store the register.
6284 (alpha_register_to_value): Update, fetch the register.
6285
6286 2003-06-14 Theodore A. Roth <troth@openavr.org>
6287
6288 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6289 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6290 Don't set deprecated_call_dummy_words.
6291 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6292 Don't set remote_translate_xfer_address.
6293 (avr_io_reg_read_command): Remove commented out debug printf.
6294 Wrap a long line.
6295
6296 2003-06-14 Theodore A. Roth <troth@openavr.org>
6297
6298 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6299 causes gdb to seg fault.
6300
6301 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6302
6303 * sparc-nat.c (fetch_inferior_registers): Correct
6304 a reference to "registers".
6305
6306 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6307
6308 * Makefile.in (exc_request_U_h): Define
6309 (exc_request_S_h): Likewise.
6310 (msg_reply_S_h): Likewise.
6311 (msg_U_h): Likewise.
6312 (notify_S_h): Likewise.
6313 (process_reply_S_h): Likewise.
6314 (gnu-nat.o): Depend on gdb_obstack_h
6315 * gnu-nat.c: Include "gdb_obstack.h".
6316
6317 2003-06-13 Andrew Cagney <cagney@redhat.com>
6318
6319 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6320 * gdbarch.h, gdbarch.c: Re-generate.
6321
6322 2003-06-13 Andrew Cagney <cagney@redhat.com>
6323
6324 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6325 when deprecated REGISTER macros can be deleted.
6326 * gdbarch.h, gdbarch.c: Re-generate.
6327
6328 2003-06-13 Jim Blandy <jimb@redhat.com>
6329
6330 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6331 Linux entry point symbols for _dl_debug_state, too.
6332
6333 2003-06-13 Andrew Cagney <cagney@redhat.com>
6334
6335 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6336 available, do not use the FP register, and always save the TOS.
6337 * dummy-frame.c (dummy_frame_this_id): Do not assert
6338 SAVE_DUMMY_FRAME_TOS.
6339 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6340 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6341 (i386_push_dummy_call): Add 8 to the returned SP.
6342 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6343 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6344 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6345 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6346 (x86_64_push_dummy_call): Return "sp + 16".
6347 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6348 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6349 save_dummy_frame_tos.
6350
6351 2003-06-13 Jim Blandy <jimb@redhat.com>
6352
6353 * frv-tdep.c (frv_use_struct_convention): Delete static
6354 declaration for function deleted in my change of 2003-06-12.
6355
6356 2003-06-13 Theodore A. Roth <troth@openavr.org>
6357
6358 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6359 (avr_pointer_to_address): Shift code addrs left 1 bit.
6360 (avr_convert_from_func_ptr_addr): Delete function since operation is
6361 better handled by avr_address_to_pointer and avr_pointer_to_address.
6362 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6363
6364 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6365
6366 From Kelley Cook <kelleycook@wideopenwest.com>:
6367 * configure.host: Accept i[34567]86 variants.
6368 * configure.tgt: Likewise.
6369 * nlm/configure.in: Likewise.
6370 * nlm/configure: Regenerated.
6371
6372 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6373
6374 * arm-tdep.c (solib-svr4.h): Dont' include it.
6375 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6376 * arm-linux-tdep.c: ... here. Make static.
6377 (arm_linux_init_abi): Register it.
6378 (solib-svr4.h): Include it.
6379 * Makefile.in: Update dependencies.
6380 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6381 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6382
6383 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6384
6385 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6386 indicate registers used for return values.
6387 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6388 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6389 members.
6390 (h8300_init_extra_frame_info): Ditto.
6391 (h8300_frame_locals_address): Removed.
6392 (h8300_frame_args_address): Removed.
6393 (h8300_extract_return_value): Use new regcache structure. Only care
6394 for 16 bit CPUs.
6395 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6396 (h8300_store_return_value): Use new regcache structure. Only care
6397 for 16 bit CPUs.
6398 (h8300h_store_return_value): Same function for 32 bit CPUs.
6399 (h8300_store_struct_return): Removed.
6400 (h8300_extract_struct_value_address): Use new regcache structure.
6401 (h8300h_extract_struct_value_address): Removed.
6402 (h8300_push_dummy_code): New function.
6403 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6404 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6405 set_gdbarch_store_return_value architecture dependent.
6406 Call set_gdbarch_push_dummy_code and
6407 set_gdbarch_extract_struct_value_address.
6408 Remove calls to set_gdbarch_frame_args_address,
6409 set_gdbarch_frame_locals_address,
6410 set_gdbarch_deprecated_store_struct_return,
6411 set_gdbarch_deprecated_extract_return_value,
6412 set_gdbarch_deprecated_extract_struct_value_address,
6413 set_gdbarch_deprecated_call_dummy_words and
6414 set_gdbarch_deprecated_sizeof_call_dummy_words.
6415
6416 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6417
6418 * h8300-tdep.c (h8300_register_byte): Remove.
6419 (h8300h_register_byte): Remove.
6420 (h8300_register_virtual_type): Remove. Substitute by...
6421 (h8300_register_type): New function.
6422 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6423 (h8300h_extract_struct_value_address): Ditto.
6424 (h8300_gdbarch_init): Drop calls to
6425 set_gdbarch_deprecated_register_byte and
6426 set_gdbarch_deprecated_register_virtual_type.
6427 Add call to set_gdbarch_register_type.
6428
6429 2003-06-13 Andrew Cagney <cagney@redhat.com>
6430
6431 * gdbarch.sh: Update comments on registers.
6432 (deprecated_register_byte): Rename register_byte.
6433 (deprecated_register_raw_size): Rename register_raw_size.
6434 (deprecated_register_virtual_size): Rename register_virtual_size.
6435 (deprecated_register_virtual_type): Rename register_virtual_type.
6436 * gdbarch.h, gdbarch.c: Re-generate.
6437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6438 * vax-tdep.c (vax_gdbarch_init): Update.
6439 * v850-tdep.c (v850_gdbarch_init): Update.
6440 * sparc-tdep.c (sparc_gdbarch_init): Update.
6441 * sh-tdep.c (sh_gdbarch_init): Update.
6442 * s390-tdep.c (s390_gdbarch_init): Update.
6443 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6444 * ns32k-tdep.c: Update.
6445 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6446 * mips-tdep.c (mips_gdbarch_init): Update.
6447 * mcore-tdep.c (mcore_gdbarch_init): Update.
6448 * m68k-tdep.c (m68k_gdbarch_init): Update.
6449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6450 * ia64-tdep.c (ia64_gdbarch_init): Update.
6451 * hppa-tdep.c (hppa_gdbarch_init): Update.
6452 * h8300-tdep.c (h8300_gdbarch_init): Update.
6453 * frv-tdep.c (frv_gdbarch_init): Update.
6454 * cris-tdep.c (cris_gdbarch_init): Update.
6455 * avr-tdep.c (avr_gdbarch_init): Update.
6456 * alpha-tdep.c (alpha_gdbarch_init): Update.
6457 * arm-tdep.c (arm_gdbarch_init): Update.
6458
6459 2003-06-13 Andrew Cagney <cagney@redhat.com>
6460
6461 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6462 mips_o32_use_struct_convention with always_use_struct_convention.
6463
6464 2003-06-12 David Carlton <carlton@kealia.com>
6465
6466 * cp-namespace.c (cp_set_block_scope): Comment out
6467 processing_has_namespace_info branch.
6468
6469 2003-06-12 Jim Blandy <jimb@redhat.com>
6470
6471 Recognize and skip 64-bit PowerPC Linux linkage functions.
6472 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6473 insn_pattern, insns_match_pattern, d_field, ds_field): New
6474 functions, macros, and types for working with PPC instructions.
6475 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6476 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6477 ppc64_skip_trampoline_code): New functions, variables, and macros
6478 for recognizing and skipping linkage functions.
6479 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6480 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6481
6482 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6483 register offsets for both the 32- and 64-bit interfaces.
6484
6485 Actually finish the job started by my change of 2003-05-29.
6486 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6487 other #definition of this.
6488 (ppc_linux_skip_trampoline_code): Remove declaration.
6489 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6490 static.
6491 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6492 method for GDBARCH.
6493
6494 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6495 'long' on ppc64-*-linux*.
6496
6497 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6498 isn't #defined, assume the register doesn't exist: act as if
6499 tdep->ppc_mq_regnum were -1.
6500
6501 * configure.host, configure.tgt: Add entries for
6502 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6503 powerpc/linux.mt.
6504 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6505 New files.
6506
6507 * arch-utils.c (always_use_struct_convention): New function.
6508 * arch-utils.h (always_use_struct_convention): New prototype.
6509 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6510 (alpha_gdbarch_init): Register always_use_struct_convention,
6511 instead of alpha_use_struct_convention.
6512 * cris-tdep.c (cris_use_struct_convention): Delete.
6513 (cris_gdbarch_init): Register always_use_struct_convention,
6514 instead of cris_use_struct_convention.
6515 * frv-tdep.c (frv_use_struct_convention): Delete.
6516 (frv_gdbarch_init): Register always_use_struct_convention,
6517 instead of frv_use_struct_convention.
6518 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6519 (h8300_gdbarch_init): Register always_use_struct_convention,
6520 instead of h8300_use_struct_convention.
6521 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6522 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6523 instead of mips_o32_use_struct_convention.
6524
6525 2003-06-12 Andrew Cagney <cagney@redhat.com>
6526
6527 * wince.c: Include "mips-tdep.h".
6528 * mips-tdep.h (mips_next_pc): Declare.
6529 * mcore-tdep.c: Make more local functions static.
6530 * Makefile.in (wince.o): Update dependencies.
6531
6532 2003-06-12 David Carlton <carlton@kealia.com>
6533
6534 * symtab.c (lookup_symbol_aux_minsyms): Replace
6535 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6536 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6537 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6538 SYMBOL_NATURAL_NAME.
6539
6540 2003-06-12 Andreas Schwab <schwab@suse.de>
6541
6542 * Makefile.in (tuiDisassem.o): Update dependencies.
6543
6544 2003-06-12 David Carlton <carlton@bactrian.org>
6545
6546 * symtab.h: Delete declaration of make_symbol_overload_list.
6547 Add declaration of lookup_partial_symbol.
6548 * symtab.c (remove_params): Move to cp-support.c.
6549 (overload_list_add_symbol, make_symbol_overload_list)
6550 (sym_return_val_size, sym_return_val_index): Ditto.
6551 (lookup_partial_symbol): Make extern.
6552 * cp-support.h: Add declaration of make_symbol_overload_list.
6553 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6554 symtab.h, and block.h.
6555 (remove_params): Move here from symtab.c.
6556 (overload_list_add_symbol, make_symbol_overload_list)
6557 (sym_return_val_size, sym_return_val_index): Ditto.
6558 * valops.c: Include cp-support.h.
6559 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6560 frame_h, and block_h.
6561 (valops.o): Depend on cp_support_h.
6562
6563 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6564
6565 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6566 substitute by NUM_REGS throughout.
6567 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6568 (h8300s_register_name): New function for H8S registers.
6569 (h8300sx_register_name): Ditto for H8SX registers.
6570 (h8300_print_register): Revise register printing, avoid depending
6571 on 32 bit long.
6572 (h8300_register_byte): Only care for H8/300 registers.
6573 (h8300h_register_byte): New function for any other architecture.
6574 (h8300_register_raw_size): Remove.
6575 (h8300_register_virtual_type): Revise to return actually useful
6576 type.
6577 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6578 (h8300h_extract_struct_value_address): New function for any other
6579 architecture.
6580 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6581 set_gdbarch_register_name, set_gdbarch_register_byte,
6582 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6583 Remove calls to set_gdbarch_deprecated_register_size,
6584 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6585 set_gdbarch_deprecated_max_register_raw_size,
6586 set_gdbarch_register_virtual_size and
6587 set_gdbarch_deprecated_max_register_virtual_size entirely.
6588 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6589 set_gdbarch_long_double_bit.
6590
6591 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6592
6593 * doublest.c (convert_doublest_to_floatformat): When dealing
6594 with the implied integer bit, only alter mant_bits if we are
6595 processing a full 32 bits of mantissa.
6596
6597 2003-06-11 David Carlton <carlton@bactrian.org>
6598
6599 * dictionary.h: New.
6600 * dictionary.c: New.
6601 * block.h: Add opaque declaration for struct dictionary.
6602 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6603 'sym' members.
6604 (BLOCK_DICT): New macro.
6605 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6606 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6607 BLOCK_SHOULD_SORT.
6608 (ALL_BLOCK_SYMBOLS): Update definition.
6609 * Makefile.in (SFILES): Add dictionary.c.
6610 (dictionary_h): New.
6611 (COMMON_OBS): Add dictionary.o.
6612 (dictionary.o): New.
6613 (ada-lang.o): Depend on dictionary_h.
6614 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6615 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6616 (mi-cmd-stack.o): Ditto.
6617 (gdbtk-cmds.o): Update dependencies.
6618 (gdbtk-stack.o): Ditto.
6619 * ada-lang.c: Include dictionary.h.
6620 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6621 (fill_in_ada_prototype, debug_print_block): Ditto.
6622 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6623 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6624 'is_sorted'.
6625 * mdebugread.c: Include dictionary.h.
6626 (struct parse_stack): Delete 'maxsyms' member.
6627 (parse_symbol): Update calls to new_block. Delete calls to
6628 shrink_block. Use dictionary methods.
6629 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6630 Update calls to new_symtab. Don't maintain maxsyms data.
6631 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6632 (add_symbol): Just call dict_add_symbol.
6633 (new_symtab): Delete 'maxsyms' argument.
6634 (new_symtab): Update calls to new_block.
6635 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6636 (shrink_block): Delete function.
6637 (fixup_sigtramp): Update call to new_block. Add symbol via
6638 dict_add_symbol.
6639 * jv-lang.c: Include dictionary.h.
6640 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6641 appropriately. Set class_symtab->free_func. Make sure the
6642 blockvector is big enough to hold two blocks.
6643 (add_class_symtab_symbol): Use dictionary methods.
6644 (free_class_block): New function.
6645 (type_from_class): Replace explicit iteration by
6646 ALL_BLOCK_SYMBOLS.
6647 * symtab.h (struct symtab): Replace 'free_ptr' method by
6648 'free_func'.
6649 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6650 sort_symtab_syms.
6651 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6652 sort_symtab_syms.
6653 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6654 Include dictionary.h.
6655 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6656 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6657 sort_symtab_syms.
6658 * objfiles.c: Include dictionary.h.
6659 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6660 * buildsym.c: Include dictionary.h.
6661 (finish_block): Use dictionary methods.
6662 (end_symtab): Set free_func to NULL, not free_ptr.
6663 * tracepoint.c: Include dictionary.h.
6664 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6665 (scope_info): Ditto.
6666 * stack.c: Include dictionary.h.
6667 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6668 (print_block_frame_labels, print_frame_arg_vars)
6669 (print_frame_args): Ditto.
6670 * symmisc.c (free_symtab_block): Use dictionary methods.
6671 (dump_symtab): Ditto.
6672 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6673 Include dictionary.h.
6674 * symfile.h: Delete declarations of sort_block_syms,
6675 sort_symtab_syms.
6676 * symfile.c (sort_block_syms): Delete.
6677 (sort_symtab_syms): Delete.
6678 * symtab.c: Include dictionary.h.
6679 (lookup_block_symbol): Use dictionary iterators.
6680 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6681 (search_symbols, make_symbol_completion_list): Ditto.
6682 (make_symbol_overload_list): Ditto.
6683 * valops.c (value_of_local): Use dict_empty.
6684 Include dictionary.h.
6685
6686 2003-06-11 J. Brobecker <brobecker@gnat.com>
6687
6688 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6689
6690 2003-06-11 David Carlton <carlton@bactrian.org>
6691
6692 * block.h (BLOCK_SHOULD_SORT): Delete.
6693 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6694 blocks.
6695 * ada-lang.c (ada_add_block_symbols): Ditto.
6696 * symfile.c (sort_block_syms): Delete.
6697 (sort_symtab_syms): Ditto.
6698 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6699 declarations.
6700 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6701 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6702 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6703 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6704 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6705 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6706 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6707
6708 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6709
6710 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6711 bits to 128.
6712
6713 2003-06-11 Andrew Cagney <cagney@redhat.com>
6714
6715 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6716 REGISTER_CONVERTIBLE.
6717 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6718 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6719 * gdbarch.h, gdbarch.c: Re-generate.
6720 * arch-utils.h (deprecated_register_convertible_not): Rename
6721 generic_register_convertible_not.
6722 * arch-utils.c (deprecated_register_convertible_not): Rename
6723 generic_register_convertible.
6724 (legacy_convert_register_p, legacy_register_to_value): Update.
6725 * sh-tdep.c (sh64_push_arguments): Update.
6726 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6727 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6728 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6729 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6730 * arch-utils.c (legacy_value_to_register): Update.
6731 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6732 (rs6000_register_convert_to_raw): Make parameter "from" const.
6733 * mips-tdep.c (mips_gdbarch_init): Update.
6734 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6735 * infcmd.c (default_print_registers_info): Update.
6736 * ia64-tdep.c (ia64_gdbarch_init): Update.
6737 (ia64_register_convert_to_raw): Make parameter "from" const.
6738 * i386-tdep.c (i386_gdbarch_init): Update.
6739 (i386_register_convert_to_raw): Update.
6740
6741 2003-06-11 Andrew Cagney <cagney@redhat.com>
6742
6743 * remote-fileio.c: Include "remote-fileio.h".
6744 * Makefile.in (remote-fileio.o): Update dependencies.
6745 (remote_fileio_h): Fix typo.
6746
6747 2003-06-11 Andrew Cagney <cagney@redhat.com>
6748
6749 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6750 (xstormy16_save_dummy_frame_tos): Make static.
6751 (_initialize_xstormy16_tdep): Add declaration.
6752 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6753 * v850-tdep.c: Make local functions static.
6754 (_initialize_v850_tdep): Add declaration.
6755 * sparc-tdep.c: Make local functions static.
6756 (_initialize_sparc_tdep): Add declaration.
6757 * sh-tdep.c: Make local functions static.
6758 (_initialize_sh_tdep): Add declaration.
6759 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6760 * s390-tdep.c: Make local functions static.
6761 (_initialize_s390_tdep): Add declaration.
6762 * dbxread.c (find_stab_function_addr): Make static.
6763 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6764 * ocd.c (_initialize_remote_ocd): Add declaration.
6765 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6766 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6767 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6768 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6769 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6770 * remote-array.c (_initialize_array): Add declaration.
6771 (_initialize_remote_monitors): Add declaration.
6772 * remote-mips.c: Make local functions static.
6773 (_initialize_remote_mips): Add declaration.
6774 * mcore-tdep.c: Make all local functions static.
6775 (_initialize_mcore_tdep): Add declaration.
6776 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6777 * abug-rom.c (_initialize_abug_rom): Add declaration.
6778 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6779 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6780 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6781 * remote-est.c (_initialize_est): Add declaration.
6782 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6783 (m68hc11_call_dummy_address): Make static.
6784 * ia64-tdep.c: Make local functions static.
6785 (_initialize_ia64_tdep): Add declaration.
6786 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6787 * monitor.c (monitor_wait_filter): Make static.
6788 (_initialize_remote_monitors): Add declaration.
6789 * remote-hms.c (_initialize_remote_hms): Add declaration.
6790 * remote-e7000.c (fetch_regs_from_dump): Make static.
6791 (expect_n): Make static.
6792 (_initialize_remote_e7000): Add declaration.
6793 * ser-e7kpc.c: Always include "defs.h".
6794 (_initialize_ser_e7000pc): Add declaration.
6795 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6796 * cris-tdep.c: Make all but one function static.
6797 (_initialize_cris_tdep): Add declaration.
6798 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6799 * solib.c (update_solib_list): Make static.
6800 (_initialize_solib): Add declaration.
6801 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6802 (_initialize_avr_tdep): Add declaration.
6803 * remote-rdi.c (voiddummy): Make static.
6804 (_initialize_remote_rdi): Add declaration.
6805 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6806 * remote-rdp.c (send_rdp): Make static.
6807 (_initialize_remote_rdp): Add declaration.
6808 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6809
6810 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6811
6812 * remote-fileio.c: Make ari happy.
6813
6814 2003-06-10 J. Brobecker <brobecker@gnat.com>
6815
6816 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6817 fetching the trailing bytes of the buffer we are about to write.
6818
6819 2003-06-10 Andrew Cagney <cagney@redhat.com>
6820
6821 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6822 * Makefile.in (remote-fileio.o): Update dependencies.
6823 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6824 include <setjmp.h>, or <sys/types.h> conditional on USG.
6825 (remote_fio_jmp_buf): Delete global variable.
6826
6827 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6828 Martin M. Hunt <hunt@redhat.com>
6829
6830 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6831 (SFILES): Add remote-fileio.c.
6832 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6833 dependencies for building remote.o.
6834 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6835 * remote-fileio.h: New header file defining remote File-I/O interface.
6836 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6837 static storage class.
6838 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6839 'F' packet.
6840 (_initialize_remote): Call initialize_remote_fileio().
6841 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6842 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6843 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6844 (captured_main): Initialize new ui_files.
6845 * ui-file.c: Add read and fgets input functions.
6846 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6847 (null_file_read): New function.
6848 (ui_file_read): New function.
6849 (set_ui_file_read): New function.
6850 (stdio_file_read): New function.
6851 * ui-file.h: New type ui_file_read_ftype.
6852 (set_ui_file_read): Declare.
6853 (ui_file_read): Declare.
6854
6855 2003-06-09 Andrew Cagney <cagney@redhat.com>
6856
6857 * frame.h (deprecated_unwind_get_saved_register): Rename
6858 generic_unwind_get_saved_register, update comments.
6859 * mips-tdep.c (mips_get_saved_register): Update.
6860 * frame.c (deprecated_unwind_get_saved_register): Update.
6861
6862 2003-06-09 Andrew Cagney <cagney@redhat.com>
6863
6864 * vax-tdep.c (vax_frame_locals_address): Delete function.
6865 (vax_gdbarch_init): Do not set frame_locals_address.
6866 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6867 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6868 * s390-tdep.c (s390_frame_args_address): Delete function.
6869 (s390_gdbarch_init): Do not set frame_args_address or
6870 frame_locals_address.
6871 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6872 (ns32k_gdbarch_init): Do not set frame_locals_address.
6873 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6874 (hppa_frame_locals_address): Delete function.
6875 (hppa_gdbarch_init): Do not set frame_args_address, or
6876 frame_locals_address.
6877 * arm-tdep.c (arm_frame_args_address): Delete.
6878 (arm_frame_locals_address): Delete.
6879 (arm_gdbarch_init): Do not set frame_args_address, or
6880 frame_locals_address.
6881
6882 2003-06-09 Andrew Cagney <cagney@redhat.com>
6883
6884 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6885 * gdbarch.h, gdbarch.c: Re-generate.
6886 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6887 * arch-utils.c (frame_num_args_unknown): Delete function.
6888 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6889 (frame_info): Use FRAME_NUM_ARGS_P.
6890 * arm-tdep.c (arm_frame_num_args): Delete function.
6891 (arm_gdbarch_init): Do not set frame_num_args.
6892 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6893 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6894 (hppa_gdbarch_init): Do not set frame_num_args.
6895 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6897 frame_num_args to default frame_num_args_unknown.
6898 * v850-tdep.c (v850_gdbarch_init): Ditto.
6899 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6900 * sh-tdep.c (sh_gdbarch_init): Ditto.
6901 * s390-tdep.c (s390_gdbarch_init): Ditto.
6902 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6903 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6904 * mips-tdep.c (mips_gdbarch_init): Ditto.
6905 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6906 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6908 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6909 * i386-tdep.c (i386_gdbarch_init): Ditto.
6910 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6911 * frv-tdep.c (frv_gdbarch_init): Ditto.
6912 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6913 * cris-tdep.c (cris_gdbarch_init): Ditto.
6914 * avr-tdep.c (avr_gdbarch_init): Ditto.
6915 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6916
6917 2003-06-09 Andrew Cagney <cagney@redhat.com>
6918
6919 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6920 (print_frame_args): Moved to "stack.c".
6921 * stack.c: Include "gdb_assert.h".
6922 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6923 (print_frame_args): Moved from "printcmd.c".
6924 * frame.h (print_frame_args): Delete declaration.
6925 * Makefile.in (stack.o): Update dependencies.
6926
6927 2003-06-08 Andrew Cagney <cagney@redhat.com>
6928
6929 * frame.c (get_prev_frame): Remove reference to
6930 frame_args_address_correct in comments.
6931 * frame-base.c (default_frame_args_address): Delete code
6932 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6933 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6934 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6935 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6936 (vax_frame_args_address_correct): Delete declaration.
6937
6938 2003-06-08 Andrew Cagney <cagney@redhat.com>
6939
6940 * gdbarch.sh (UNWIND_SP): Add.
6941 * gdbarch.h, gdbarch.c: Re-generate.
6942 * frame.c (frame_sp_unwind): New function.
6943 (get_frame_sp): New function.
6944 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6945 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6946 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6947 value.
6948 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6949 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6950
6951 2003-06-08 Andrew Cagney <cagney@redhat.com>
6952
6953 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6954 REMOTE_BREAKPOINT.
6955 * remote.c: Update.
6956 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6957 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6958 * config/m68k/tm-sun3.h: Update.
6959 * config/m68k/tm-m68klynx.h: Update.
6960 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6961
6962 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6963 trad_frame". Update comments.
6964 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6965 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6966 (trad_frame_register_value, trad_frame_prev_register): Update.
6967
6968 2003-06-08 Andrew Cagney <cagney@redhat.com>
6969
6970 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6971 from GCC's acinclude.m4.
6972 * configure.in: Check for getopt's delcaration.
6973 * aclocal.m4, config.in, configure: Re-generate.
6974 * main.c (error_init): Delete declaration.
6975 * defs.h (error_init): Declare.
6976 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6977 (rs6000_convert_from_func_ptr_addr): Make static.
6978 (_initialize_rs6000_tdep): Add declaration.
6979 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6980 (show_commands, set_verbose, show_history): Delete declaration.
6981 * top.h (set_verbose): Add declaration.
6982 (show_history, set_history, show_commands): Add declaration.
6983 (do_restore_instream_cleanup): Add declaration.
6984 * objc-lang.c (specialcmp): Make static.
6985 (print_object_command): Make static.
6986 (find_objc_msgsend): Make static.
6987 (find_objc_msgcall_submethod_helper): Make static.
6988 (find_objc_msgcall_submethod): Make static.
6989 (_initialize_objc_language): Add declaration.
6990 (find_implementation_from_class): Make static.
6991 (find_implementation): Make static.
6992 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6993 * objc-lang.h (lookup_struct_typedef): Add declaration.
6994 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6995 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6996 (do_restore_user_call_depth): Make static.
6997 (do_restore_instream_cleanup): Delete declaration.
6998 (dont_repeat): Delete declaration.
6999 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7000 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7001 * reggroups.c (_initialize_reggroup): Add declaration.
7002 * cp-support.c (_initialize_cp_support): Add declaration.
7003 * cp-abi.c (_initialize_cp_abi): Add declaration.
7004 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7005 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7006 (_initialize_gnu_v3_abi): Add declaration.
7007 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7008 (_initialize_gnu_v2_abi): Add declaration.
7009 * frame-base.c (_initialize_frame_base): Add declaration.
7010 * doublest.c (floatformat_from_length): Make static.
7011 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7012 * frame.c (create_sentinel_frame): Make static.
7013 (_initialize_frame): Add declaration.
7014 * top.c (do_catch_errors): Make static.
7015 (gdb_rl_operate_and_get_next_completion): Make static.
7016 * typeprint.c: Include "typeprint.h".
7017 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7018 (sentinel_frame_this_id): Make static.
7019 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7020 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7021 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7022 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7023 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7024 * maint.c (maintenance_print_architecture): Make static.
7025 * signals/signals.c (_initialize_signals): Add declaration.
7026 * std-regs.c (_initialize_frame_reg): Add declaration.
7027 * jv-exp.y (push_variable): ISO C definition.
7028 (push_qualified_expression_name): Ditto.
7029 * memattr.c (_initialize_mem): Add declaration.
7030 * remote.c (remote_check_watch_resources): Make static.
7031 (remote_stopped_by_watchpoint): Make static.
7032 (remote_stopped_data_address): Make static.
7033 * d10v-tdep.c (nr_dmap_regs): Make static.
7034 (a0_regnum): Make static.
7035 (d10v_frame_unwind_cache): Make static.
7036 (d10v_frame_p): Make static.
7037 * osabi.c (show_osabi): Make static.
7038 (_initialize_gdb_osabi): Add extern declaration.
7039 * gdbtypes.c (make_qualified_type): Make static.
7040 (safe_parse_type): Make static.
7041 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7042 * macrotab.c (macro_bcache_free): Make static.
7043 * interps.c (interp_set_quiet): Make static.
7044 (interpreter_exec_cmd): Make static.
7045 * stack.h (select_frame_command): New file.
7046 * stack.c: Include "stack.h".
7047 (select_frame_command_wrapper): Delete function.
7048 (select_frame_command): Make global.
7049 * infcall.c: Include "infcall.h".
7050 * linespec.c: Include "linespec.h".
7051 * symfile.c (sections_overlap): Make static.
7052 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7053 * charset.c (_initialize_charset): Add missing prototype.
7054 * regcache.c (init_legacy_regcache_descr): Make static.
7055 (do_regcache_xfree): Make static.
7056 (regcache_xfer_part): Make static.
7057 (_initialize_regcache): Add missing prototype.
7058 * breakpoint.c (parse_breakpoint_sals): Make static.
7059 (breakpoint_sals_to_pc): Make static.
7060 * interps.h (clear_interpreter_hooks): ISO C declaration.
7061 * Makefile.in (stack_h): Define.
7062 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7063 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7064
7065 2003-06-08 Andrew Cagney <cagney@redhat.com>
7066
7067 * Makefile.in (d10v-tdep.o): Update dependencies.
7068 (SFILES): Add trad-frame.c.
7069 (trad_frame_h): Define.
7070 (COMMON_OBS): Add trad-frame.o.
7071 (trad-frame.o): Specify dependencies.
7072 * d10v-tdep.c: Include "trad-frame.h".
7073 (saved_regs_unwinder): Delete function.
7074 (d10v_frame_prev_register): Use trad_frame_prev_register.
7075 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7076 trad_frame", delete "regs" and "prev_sp".
7077 (prologue_find_regs): Use trad-frame.
7078 * trad-frame.h, trad-frame.c: New files.
7079
7080 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7081
7082 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7083
7084 2003-06-07 Adam Fedor <fedor@gnu.org>
7085
7086 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7087 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7088 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7089 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7090 resolve_msgsend_super, resolve_msgsend_super_stret):
7091 Use it.
7092
7093 2003-06-07 Andrew Cagney <cagney@redhat.com>
7094
7095 * symfile.h: Re-indent, clean up comments.
7096
7097 2003-06-07 Andrew Cagney <cagney@redhat.com>
7098
7099 * inferior.h (deprecated_write_sp): Replace
7100 generic_target_write_sp.
7101 * regcache.c (deprecated_write_sp): Replace
7102 generic_target_write_sp.
7103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7104 * vax-tdep.c (vax_gdbarch_init): Update.
7105 * v850-tdep.c (v850_gdbarch_init): Update.
7106 * sparc-tdep.c (sparc_gdbarch_init): Update.
7107 * sh-tdep.c (sh_gdbarch_init): Update.
7108 * s390-tdep.c (s390_gdbarch_init): Update.
7109 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7110 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7111 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7112 * mcore-tdep.c (mcore_gdbarch_init): Update.
7113 * m68k-tdep.c (m68k_gdbarch_init): Update.
7114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7115 * ia64-tdep.c (ia64_gdbarch_init): Update.
7116 * h8300-tdep.c (h8300_gdbarch_init): Update.
7117 * frv-tdep.c (frv_gdbarch_init): Update.
7118 * cris-tdep.c (cris_gdbarch_init): Update.
7119 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7120
7121 2003-06-07 Andrew Cagney <cagney@redhat.com>
7122
7123 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7124 Assert that PC_REGNUM is valid.
7125 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7126
7127 2003-06-07 Andrew Cagney <cagney@redhat.com>
7128
7129 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7130 * gdbarch.h, gdbarch.c: Regenerate.
7131 * mn10300-tdep.c: Include "gdb_assert.h".
7132 (mn10300_read_fp): New function.
7133 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7134 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7135 * ia64-tdep.c: Include "gdb_assert.h".
7136 (ia64_read_fp): New function.
7137 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7138 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7139 * regcache.c (generic_target_read_sp): Delete function.
7140 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7141 * inferior.h (generic_target_read_sp): Delete declaration.
7142 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7143 generic_target_read_sp.
7144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7145 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7146 * sh-tdep.c (sh_gdbarch_init): Ditto.
7147 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7148 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7149
7150 2003-06-07 Andrew Cagney <cagney@redhat.com>
7151
7152 * gdbarch.sh: Comment each field of startup_gdbarch.
7153 * gdbarch.h, gdbarch.c: Re-generate.
7154
7155 2003-06-07 Andrew Cagney <cagney@redhat.com>
7156
7157 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7158 * gdbarch.h, gdbarch.c: Re-generate.
7159 * regcache.c: Update comments on read_pc et.al.
7160 (generic_target_read_pc): Delete function.
7161 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7162 * inferior.h (generic_target_read_pc): Delete declaration.
7163 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7164 generic_target_read_pc.
7165 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7166 * sh-tdep.c (sh_gdbarch_init): Ditto.
7167 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7169
7170 2003-06-07 Andrew Cagney <cagney@redhat.com>
7171
7172 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7173 "index" with "special_local_sect". Use strcmp instead of STREQ.
7174 Append period to coments.
7175
7176 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7177
7178 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7179 (elfstab_offset_sections): Likewise.
7180 * gdb-stabs.h (stab_section_info): Likewise.
7181 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7182 * objfiles.c (objfile_relocate): Likewise.
7183 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7184 * remote.c (get_offsets): Likewise.
7185 (remote_cisco_objfile_relocate): Likewise.
7186 * somread.c (som_symfile_offsets): Likewise.
7187 * symfile.c (alloc_section_addr_info): New function.
7188 (build_section_addr_info_from_section_tab): Use it.
7189 (free_section_addr_info): Adjust.
7190 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7191 (syms_from_objfile): Allocate local_addr dynamically.
7192 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7193 dynamically.
7194 (add_symbol_file_command): Allocate sect_opts dynamically.
7195 (reread_symbols): Avoid use of SECT_OFF_MAX.
7196 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7197 (alloc_section_addr_info): Declare it.
7198 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7199 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7200 dynamically.
7201 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7202
7203 2003-06-06 Andrew Cagney <cagney@redhat.com>
7204
7205 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7206 (d10v_frame_unwind_cache): Do not set "return_pc".
7207
7208 2003-06-06 Michael Snyder <msnyder@redhat.com>
7209
7210 * h8300-tdep.c: Make tidy (long lines).
7211
7212 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7213
7214 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7215 to regcache_collect().
7216
7217 2003-06-05 J. Brobecker <brobecker@gnat.com>
7218
7219 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7220 pc_in_sigtramp multiarch method.
7221 (hppa_hpux_som_init_abi): Use it.
7222 (hppa_hpux_elf_init_abi): Likewise.
7223 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7224 macro has been multiarched.
7225 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7226 macro here, as hppa64 isn't multiarched yet.
7227
7228 2003-06-05 Andrew Cagney <cagney@redhat.com>
7229
7230 * Makefile.in (value_h): Add $(frame_h).
7231 * value.h: Include "frame.h".
7232 (struct value): Replace "frame_addr" with "frame_id".
7233 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7234 * values.c (allocate_value): Use VALUE_FRAME_ID.
7235 (value_copy): Use VALUE_FRAME_ID.
7236 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7237 * valops.c (value_assign): Update. Use frame_find_by_id.
7238
7239 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7240
7241 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7242 in each pass.
7243
7244 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7245
7246 * thread-db.c (check_event): For create/death event breakpoints,
7247 loop through all messages to ensure that we read the message
7248 corresponding to the breakpoint we are at.
7249
7250 2003-06-04 Michael Snyder <msnyder@redhat.com>
7251
7252 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7253
7254 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7255
7256 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7257 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7258 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7259 when handling .eh_frame sections.
7260
7261 2003-06-04 J. Brobecker <brobecker@gnat.com>
7262
7263 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7264 prepare_to_proceed procedure instead of the hppa-specific one.
7265 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7266
7267 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7268
7269 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7270 * config.in: Regenerated.
7271 * configure.in: Add test for syscall function and check for
7272 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7273 * configure: Regenerated.
7274 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7275 <sys/syscall.h>.
7276 (kill_lwp): New function that uses tkill syscall or
7277 uses kill, depending on whether threading model is nptl or not.
7278 All callers of kill() changed to use kill_lwp().
7279 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7280 see if all threads have already exited in the nptl model.
7281 (stop_and_resume_callback): New callback function used by the
7282 lin_lwp_wait thread exit handling code.
7283 (stop_wait_callback): Check for threads already having exited and
7284 delete such threads fromt the lwp list when discovered.
7285 (stop_callback): Don't assert retcode of kill call.
7286
7287 Roland McGrath <roland@redhat.com>
7288 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7289 nptl libthread_db.
7290
7291 2003-06-03 Richard Henderson <rth@redhat.com>
7292
7293 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7294 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7295 (alpha_sigtramp_frame_prev_register): Likewise.
7296 (alpha_heuristic_frame_prev_register): Likewise.
7297 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7298
7299 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7300 alpha-specific register id names.
7301 (alpha_mdebug_frame_unwind_cache): Likewise.
7302 (alpha_mdebug_frame_prev_register): Likewise.
7303
7304 2003-06-03 Richard Henderson <rth@redhat.com>
7305
7306 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7307 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7308 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7309 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7310 unwind routines.
7311 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7312 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7313 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7314
7315 * alpha-linux-tdep.c: Remove unnecessary includes.
7316 * Makefile.in (alpha-linux-tdep.o): Update.
7317
7318 2003-06-03 Richard Henderson <rth@redhat.com>
7319
7320 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7321 (alphabsd_fill_fpreg): Likewise.
7322
7323 2003-06-03 J. Brobecker <brobecker@gnat.com>
7324
7325 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7326 references to struct frame_info fields by calls to the equivalent
7327 accessors. Necessary now that frame_info is opaque.
7328
7329 2003-06-03 J. Brobecker <brobecker@gnat.com>
7330
7331 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7332 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7333 structure, field no longer exists.
7334
7335 2003-06-03 J. Brobecker <brobecker@gnat.com>
7336
7337 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7338 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7339
7340 2003-06-03 J. Brobecker <brobecker@gnat.com>
7341
7342 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7343 references to struct frame_info fields by calls to the equivalent
7344 accessors. Necessary now that frame_info is opaque.
7345
7346 2003-06-03 J. Brobecker <brobecker@gnat.com>
7347
7348 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7349 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7350 structure, field no longer exists.
7351
7352 2003-06-03 Theodore A. Roth <troth@openavr.org>
7353
7354 * remote.c (init_remote_state): Compute sizeof_g_packet by
7355 accumulation of the size of all registers instead of blindly using
7356 DEPRECATED_REGISTER_BYTES.
7357
7358 2003-06-03 Michael Snyder <msnyder@redhat.com>
7359
7360 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7361 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7362 for h8300sx.
7363
7364 2003-06-03 J. Brobecker <brobecker@gnat.com>
7365
7366 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7367 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7368
7369 2003-06-03 Andrew Cagney <cagney@redhat.com>
7370
7371 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7372 (sparc_convert_to_raw): Delete function.
7373 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7374 register_convert_to_virtual.
7375
7376 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7377
7378 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7379 layer if not dealing with a statically-linked threaded program.
7380
7381 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7382
7383 * solib.c (solib_open): Update comment to reflect actual search order.
7384
7385 2003-06-03 Andrew Cagney <cagney@redhat.com>
7386
7387 * frame.c (get_frame_memory_signed): New function.
7388 (get_frame_memory, get_frame_memory_unsigned): New function.
7389 (get_frame_arch): New function.
7390 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7391 (get_frame_memory, get_frame_unsigned_memory): Declare.
7392 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7393 get_frame_memory_unsigned and get_frame_arch.
7394 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7395
7396 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7397
7398 * MAINTAINERS (write after approval): Add myself.
7399
7400 2003-06-03 Jim Blandy <jimb@redhat.com>
7401
7402 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7403 elements of gregset_t are 64 bits each, but access registers
7404 are still 32 bits, so they're packed two per gregset_t
7405 element. Unpack/pack them properly.
7406
7407 2003-06-02 David Carlton <carlton@bactrian.org>
7408
7409 * linespec.c (find_methods): Break out code into
7410 add_matching_methods and add_constructors.
7411 (add_matching_methods): New.
7412 (add_constructors): Ditto.
7413
7414 2003-06-02 Andrew Cagney <cagney@redhat.com>
7415
7416 * sparc-tdep.c (sparc_print_registers): Delete call to
7417 REGISTER_CONVERTIBLE.
7418 (sparc_gdbarch_init): Do not set register_convertible.
7419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7420 * frv-tdep.c (frv_gdbarch_init): Ditto.
7421 * cris-tdep.c (cris_gdbarch_init): Ditto.
7422
7423 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7424
7425 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7426 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7427 (syms_from_objfile): Ditto.
7428
7429 2003-06-03 Andreas Schwab <schwab@suse.de>
7430
7431 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7432 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7433
7434 2003-06-02 Richard Henderson <rth@redhat.com>
7435
7436 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7437 a member of all_reggroup.
7438
7439 2003-06-02 Richard Henderson <rth@redhat.com>
7440
7441 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7442 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7443 (alpha_lds, alpha_sts): New.
7444 (alpha_convert_register_p): Change from _register_convertible.
7445 (alpha_register_to_value): Change from _convert_to_virtual;
7446 restructure and fail for type sizes other than 4 or 8.
7447 (alpha_value_to_register): Similarly.
7448 (alpha_extract_return_value): Use alpha_sts.
7449 (alpha_store_return_value): Use alpha_lds.
7450 (alpha_gdbarch_init): Update hooks.
7451
7452 2003-06-02 Richard Henderson <rth@redhat.com>
7453
7454 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7455 regnum identifiers.
7456 (alpha_sigtramp_register_address): Likewise.
7457
7458 2003-06-02 Richard Henderson <rth@redhat.com>
7459
7460 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7461 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7462 * alpha-tdep.h: Declare them.
7463
7464 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7465 Remove zerobuf. Don't error on UNIQUE.
7466 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7467 (ALPHA_REGSET_UNIQUE): Provide default.
7468 (supply_gregset): Use alpha_supply_int_regs.
7469 (fill_gregset): Use alpha_fill_int_regs.
7470 (supply_fpregset): Use alpha_supply_fp_regs.
7471 (fill_fpregset): Use alpha_fill_fp_regs.
7472 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7473 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7474 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7475 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7476 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7477 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7478
7479 2003-06-02 Richard Henderson <rth@redhat.com>
7480
7481 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7482
7483 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7484 (alpha_store_return_value): Likewise.
7485
7486 2003-06-02 David Carlton <carlton@math.stanford.edu>
7487
7488 * block.c (contained_in): Add 'const' to arguments.
7489 (block_function): Ditto.
7490 * block.h: Update declarations for block_function and
7491 contained_in.
7492
7493 2003-06-02 David Carlton <carlton@math.stanford.edu>
7494
7495 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7496 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7497 * p-valprint.c (pascal_val_print): Ditto.
7498 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7499
7500 2003-06-02 Richard Henderson <rth@redhat.com>
7501
7502 * alpha-tdep.c (alpha_push_dummy_call): Use
7503 builtin_type_ieee_double_little instead of builtin_type_double.
7504
7505 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7506 sign-extension of 32-bit values.
7507 (alpha_store_return_value): Similarly.
7508
7509 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7510 (alpha_extract_return_value): Likewise.
7511 (alpha_store_return_value): Likewise.
7512
7513 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7514 (alpha_store_return_value): Error on IEEE Quad floats.
7515
7516 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7517 (alpha_extract_struct_value_address): Likewise.
7518 (alpha_store_return_value): Likewise.
7519 (alpha_store_struct_return): Remove.
7520 (alpha_gdbarch_init): Update hook registration to match.
7521
7522 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7523 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7524 macros where appropriate.
7525 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7526 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7527
7528 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7529 for SP, GP; void_func_ptr for PC; non-language-specific types
7530 for all others.
7531 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7532
7533 2003-06-02 Richard Henderson <rth@redhat.com>
7534
7535 * top.h (lim_at_start): Declare.
7536 * main.c (captured_main): Set it.
7537 * top.c (lim_at_start): Define.
7538 (command_loop): Use it instead of &environ.
7539 * event-top.c (command_handler): Likewise.
7540
7541 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7542
7543 * mipsnbsd-tdep.c: Update copyright years.
7544 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7545
7546 2003-06-01 Richard Henderson <rth@redhat.com>
7547
7548 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7549 (alpha-linux-tdep.o): Update dependencies.
7550 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7551 * alpha-mdebug-tdep.c: Remove unneeded includes.
7552
7553 2003-06-01 Richard Henderson <rth@redhat.com>
7554
7555 * alpha-tdep.c (alpha_register_reggroup_p): New.
7556 (alpha_gdbarch_init): Register it.
7557
7558 2003-06-02 Andrew Cagney <cagney@redhat.com>
7559
7560 * dwarfread.c: Eliminate "register"
7561 (decode_die_type): Eliminate assignment within "if".
7562 (struct_type, decode_array_element_type): Ditto.
7563 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7564 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7565 (decode_modified_type, completedieinfo): Ditto.
7566 * block.c: Eliminate "register".
7567 (blockvector_for_pc_sect): Eliminate assignment within "if".
7568 * cp-support.h (struct symbol): Opaque declaration.
7569 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7570
7571 2003-06-01 Richard Henderson <rth@redhat.com>
7572
7573 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7574 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7575
7576 2003-06-01 Adam Fedor <fedor@gnu.org>
7577
7578 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7579 * gdbarch.[ch]: Regenerate.
7580 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7581 (hppa_gdbarch_init): Set it in the gdbarch vector.
7582 * i386-tdep.c (i386_fetch_pointer_argument): New
7583 (i386_gdbarch_init): Set it into gdbarch.
7584 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7585 (rs6000_gdbarch_init): Set it in gdbarch.
7586 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7587 (sparc_gdbarch_init): Set it in gdbarch.
7588
7589 2003-06-01 Andrew Cagney <cagney@redhat.com>
7590
7591 * defs.h (extract_address): Delete declaration.
7592 * findvar.c (extract_address): Delete function.
7593 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7594 extract_address with the inline equivalent,
7595 extract_unsigned_integer.
7596 (xstormy16_extract_struct_value_address): Ditto.
7597 (xstormy16_pointer_to_address): Ditto.
7598 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7599 * v850-tdep.c (v850_push_arguments): Ditto.
7600 (v850_extract_return_value): Ditto.
7601 (v850_extract_struct_value_address): Ditto.
7602 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7603 (sparcnbsd_get_longjmp_target_64): Ditto.
7604 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7605 (get_longjmp_target): Ditto.
7606 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7607 (sh64_extract_struct_value_address): Ditto.
7608 (sh_push_arguments): Ditto.
7609 (sh64_push_arguments): Ditto.
7610 * remote-vxsparc.c (vx_read_register): Ditto.
7611 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7612 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7613 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7614 * mipsv4-nat.c (get_longjmp_target): Ditto.
7615 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7616 * mips-nat.c (get_longjmp_target): Ditto.
7617 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7618 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7619 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7620 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7621 * irix5-nat.c (get_longjmp_target): Ditto.
7622 * irix4-nat.c (get_longjmp_target): Ditto.
7623 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7624 (ia64_push_arguments): Ditto.
7625 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7626 * h8300-tdep.c (h8300_push_arguments): Ditto.
7627 (h8300_store_return_value): Ditto.
7628 (h8300_extract_struct_value_address): Ditto.
7629 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7630 (frv_push_arguments): Ditto.
7631 * avr-tdep.c (avr_pointer_to_address): Ditto.
7632 (avr_push_arguments): Ditto.
7633 * arm-tdep.c (arm_push_dummy_call): Ditto.
7634 (arm_get_longjmp_target): Ditto.
7635 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7636 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7637 (alpha_get_longjmp_target): Ditto.
7638
7639 * solib-irix.c (extract_mips_address): Inline extract_address,
7640 replacing it with extract_signed_integer.
7641 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7642 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7643 (first_link_map_member, open_symbol_file_object): Ditto.
7644 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7645 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7646 (LM_NEXT, LM_NAME): Ditto.
7647
7648 2003-06-01 Richard Henderson <rth@redhat.com>
7649
7650 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7651 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7652 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7653 (alpha_cannot_store_register): Likewise.
7654 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7655 * alpha-nat.c (supply_gregset): Likewise.
7656 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7657
7658 2003-06-01 Andrew Cagney <cagney@redhat.com>
7659
7660 * infcall.c (call_function_by_hand): Update comment on
7661 DEPRECATED_DUMMY_WRITE_SP.
7662
7663 * mips-tdep.c (mips_gdbarch_init): Do not set
7664 deprecated_dummy_write_sp.
7665 (mips_eabi_push_dummy_call): Set the SP register.
7666 (mips_o64_push_dummy_call): Set the SP register.
7667 (mips_o32_push_dummy_call): Set the SP register.
7668 (mips_n32n64_push_dummy_call): Set the SP register.
7669
7670 2003-06-01 Richard Henderson <rth@redhat.com>
7671
7672 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7673 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7674 (supply_gregset): Likewise.
7675 * alpha-tdep.c (alpha_store_return_value): Likewise.
7676 (alpha_get_longjmp_target): Likewise.
7677 (alpha_register_name): Constify array.
7678 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7679 deprecated_register_size, deprecated_register_bytes,
7680 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7681 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7682 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7683
7684 2003-06-01 Richard Henderson <rth@redhat.com>
7685
7686 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7687 from arg_reg_buffer to regcache to avoid double conversion.
7688
7689 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7690
7691 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7692 SP_REGNUM.
7693 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7694 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7695
7696 2003-06-01 Richard Henderson <rth@redhat.com>
7697
7698 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7699 (decode_frame_entry): Set it. Skip FDE augmentation.
7700
7701 2003-06-01 Richard Henderson <rth@redhat.com>
7702
7703 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7704 not overlapping PC_REGNUM.
7705
7706 2003-06-01 Richard Henderson <rth@redhat.com>
7707
7708 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7709 alpha_push_arguments. Don't dump argument register data to
7710 the target stack. Fix float and 128-bit long double semantics.
7711 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7712 (alpha_fix_call_dummy): Remove.
7713 (alpha_call_dummy_words): Remove.
7714 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7715
7716 2003-06-01 Richard Henderson <rth@redhat.com>
7717
7718 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7719
7720 2003-06-01 Andrew Cagney <cagney@redhat.com>
7721
7722 * mips-tdep.c (is_mips16_addr): New function.
7723 (make_mips16_addr, unmake_mips16_addr): New functions.
7724 (pc_is_mips16, mips_fetch_instruction): Use.
7725 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7726 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7727 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7728 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7729 TARGET_MIPS.
7730 * config/mips/tm-mips.h: Update copyright.
7731 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7732 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7733 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7734 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7735 (TM_PRINT_INSN_MACH): Delete.
7736 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7737
7738 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7739 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7740 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7741 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7742 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7743 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7744 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7745 mips*-*-riscos* and mips*-*-sysv* onto mips.
7746 * config/mips/mips64.mt: New file.
7747 * config/mips/mips.mt: New file.
7748 * config/mips/littlemips.mt: Delete file.
7749 * config/mips/decstation.mt: Delete file.
7750 * config/mips/vr4300el.mt: Delete file.
7751 * config/mips/vr5000el.mt: Delete file.
7752 * config/mips/vr5000.mt: Delete file.
7753 * config/mips/vr4100.mt: Delete file.
7754 * config/mips/vr4xxxel.mt: Delete file.
7755 * config/mips/vr4300.mt: Delete file.
7756 * config/mips/vr4xxx.mt: Delete file.
7757 * config/mips/bigmips.mt: Delete file.
7758 * config/mips/bigmips64.mt: Delete file.
7759 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7760 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7761 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7762 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7763 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7764 "tm-bigmips.h".
7765 * config/mips/tm-irix3.h: Ditto.
7766 * config/mips/tm-mipsv4.h: Ditto.
7767 * config/mips/tm-embed.h: Ditto.
7768 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7769 "tm-bigmips64.h".
7770 * config/mips/tm-vr5000el.h: Delete file.
7771 * config/mips/tm-tx39l.h: Delete file.
7772 * config/mips/tm-vr4300el.h: Delete file.
7773 * config/mips/tm-vr4xxxel.h: Delete file.
7774 * config/mips/tm-vr4300.h: Delete file.
7775 * config/mips/tm-vr4100.h: Delete file.
7776 * config/mips/tm-vr4xxx.h: Delete file.
7777 * config/mips/tm-vr5000.h: Delete file.
7778 * config/mips/tm-embedl64.h: Delete file.
7779 * config/mips/tm-embedl.h: Delete file.
7780 * config/mips/tm-embed64.h: Delete file.
7781 * config/mips/tm-bigmips64.h: Delete file.
7782 * config/mips/tm-bigmips.h: Delete file.
7783
7784 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7785
7786 Fix gdb/1216.
7787 * shnbsd-nat.c: Include "sh-tdep.h".
7788
7789 From Richard Henderson <rth@redhat.com>:
7790 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7791
7792 2003-05-31 Andrew Cagney <cagney@redhat.com>
7793
7794 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7795 forward declaration.
7796 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7797 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7798 (mips_find_saved_regs): Use set_reg_offset.
7799 (mips_frame_init_saved_regs): Delete function.
7800 (mips_pop_frame): Call mips_find_saved_regs instead of
7801 DEPRECATED_FRAME_INIT_SAVED_REGS.
7802
7803 2003-05-31 Andrew Cagney <cagney@redhat.com>
7804
7805 * mips-tdep.c (mips_gdbarch_init): Do not set
7806 deprecated_max_register_raw_size, register_virtual_size, and
7807 deprecated_max_register_virtual_size.
7808
7809 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7810
7811 * i386-tdep.c: Include "dwarf2-frame.h".
7812 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7813 * Makefile.in (i386-tdep.o): Update dependencies.
7814
7815 * dwarf2-frame.c, dwarf2-frame.h: New files.
7816 * Makefile.in (SFILES): Add dwarf2-frame.c.
7817 (dwarf2_frame_h): Define.
7818 (COMMON_OBS): Add dwarf2-frame.o.
7819 (dwarf2-frame.o): Add dependencies.
7820
7821 2003-05-31 Andreas Jaeger <aj@suse.de>
7822
7823 * x86-64-linux-nat.c: Fix comment.
7824
7825 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7826
7827 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7828 function signature.
7829
7830 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7831 have a sigcontext_addr handler.
7832 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7833 sigcontext_addr handler.
7834
7835 2003-05-31 Andrew Cagney <cagney@redhat.com>
7836
7837 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7838 (print_fp_register_row): Replace do_fp_register_row.
7839 (mips_print_fp_register): Add "file" and "frame" parameters.
7840 (mips_print_register): Add "file" and "frame" parameters.
7841 (mips_print_registers_info): Replace mips_do_registers_info.
7842 (mips_gdbarch_init): Set print_registers_info instead of
7843 deprecated_do_registers_info.
7844 (mips_read_fp_register_single): Add "frame" parameter.
7845 (mips_read_fp_register_double): Add "frame" parameter.
7846
7847 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7848
7849 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7850 Fixes a bug where GDB would print the wrong register names for
7851 targets without SSE.
7852
7853 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7854 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7855 registers.
7856
7857 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7858 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7859 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7860 TDEP->sc_sp_offset.
7861
7862 From Michal Ludvig <mludvig@suse.cz>:
7863 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7864 and `sc_num_regs'.
7865 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7866 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7867 I386_ST0_REGNUM): Move here from...
7868 * i386-tdep.c: ... here.
7869 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7870 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7871 registers if possible.
7872 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7873 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7874 Remove variables.
7875 (i386bsd_sc_reg_offset): New variable.
7876 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7877 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7878 TDEP->sc_sp_offset.
7879 (i386fbsd_sc_reg_offset): New variable.
7880 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7881 TDEP->sc_num_regs.
7882 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7883 variables.
7884 (i386fbsd4_sc_reg_offset): New variable.
7885 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7886 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7887 TDEP->sc_sp_offset.
7888 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7889 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7890 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7891 Remove variables.
7892 (i386nbsd_sc_reg_offset): New variable.
7893 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7894 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7895 TDEP->sc_sp_offset.
7896 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7897 Remove variables.
7898 (i386obsd_sc_reg_offset): New variable.
7899 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7900 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7901 TDEP->sc_sp_offset.
7902 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7903 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7904 for frame pointer offset in `struct sigcontext'.
7905
7906 2003-05-31 Andrew Cagney <cagney@redhat.com>
7907
7908 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7909 architecture methods call_dummy_words, sizeof_call_dummy_words,
7910 push_return_address, store_struct_return, and fix_call_dummy. Set
7911 push_dummy_call instead of deprecated_push_arguments.
7912 (mips_store_struct_return): Delete function.
7913 (mips_fix_call_dummy): Delete function.
7914 (mips_push_return_address): Delete function.
7915 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7916 RA_REGNUM and T9_REGNUM.
7917 (mips_n32n64_push_dummy_call): Ditto for
7918 mips_n32n64_push_arguments.
7919 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7920 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7921
7922 2003-05-31 Andrew Cagney <cagney@redhat.com>
7923
7924 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7925 "dummy_addr" to "bp_addr".
7926 * infcall.c (call_function_by_hand): Pass "funaddr" to
7927 gdbarch_push_dummy_call.
7928 * gdbarch.h, gdbarch.c: Re-generate.
7929 * i386-tdep.c (i386_push_dummy_call): Update.
7930 * arm-tdep.c (arm_push_dummy_call): Update.
7931 * d10v-tdep.c (d10v_push_dummy_call): Update.
7932
7933 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7934
7935 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7936 variable declarations.
7937 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7938 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7939 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7940 x86_64_init_frame_pc, x86_64_init_frame_pc,
7941 x86_64_function_has_prologue): Remove prototypes.
7942 (X86_64_NUM_GREGS): New define.
7943 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7944 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7945 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7946 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7947 XMM1_REGNUM): Remove defines.
7948 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7949 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7950 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7951 X86_64_XMM1_REGNUM): New defines.
7952 (struct x86_64_register_info): Renamed from `struct
7953 register_info'. Remove `size' member.
7954 (x86_64_register_info_table): Remove variable.
7955 (x86_64_register_info): New variable.
7956 (X86_64_NUM_REGS): New define.
7957 (X86_64_NUM_GREGS): Remove define.
7958 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7959 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7960 Remove variables.
7961 (x86_54_dwarf2_reg_to_regnum): Remove function.
7962 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7963 (x86_64_dwarf_reg_to_regnum): New function.
7964 (x86_64_register_name): Rewrite.
7965 (x86_64_register_raw_size): Remove function.
7966 (x86_64_register_byte_table): Remove variable.
7967 (x86_64_register_byte): Remove function.
7968 (x86_64_register_virtual_type): Remove function.
7969 (x86_64_register_type): New function.
7970 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7971 x86_64_register_convert_to_raw): Remove functions.
7972 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7973 (x86_64_use_struct_convention): Make static. Adjust for renamed
7974 defines.
7975 (x86_64_frame_init_saved_regs): Remove function.
7976 (x86_64_push_arguments): Make static. Change to accept a regcache
7977 as argument.
7978 (x86_64_store_return_value, x86_64_extract_return_value): Make
7979 static. Rewrite based on i386 counterparts.
7980 (x86_64_push_dummy_call): New function.
7981 (X86_64_NUM_SAVED_REGS): New define.
7982 (x86_64_register_number): Remove function.
7983 (x86_64_store_struct_return): Remove function.
7984 (x86_64_frameless_function_invocation,
7985 x86_64_function_has_prologue): Remove functions.
7986 (PROLOG_BUFSIZE): Remove define.
7987 (struct x86_64_frame_cache): New structure.
7988 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7989 x86_64_frame_cache, x86_64_frame_this_id,
7990 x86_64_frame_prev_register, x86_64_frame_p,
7991 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7992 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7993 functions.
7994 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7995 variables.
7996 (x86_64_skip_prologue): Rewrite in terms of
7997 x86_64_analyze_prologue.
7998 (x86_64_frame_base_address): New function.
7999 (x86_64_frame_base): New variable.
8000 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8001 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8002 set deprecated_fp_regnum, deprecated_register_size,
8003 deprecated_register_bytes, register_raw_size, register_byte,
8004 register_virtual_type, register_convertiable,
8005 register_convert_to_virtual, convert_to_raw,
8006 deprecated_get_saved_register, deprecated_target_read_fp,
8007 deprecated_push_arguments, deprecated_push_return_address,
8008 deprecated_pop_frame, deprecated_store_struct_return,
8009 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8010 frameless_function_invocation, deprecated_frame_saved_pc,
8011 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8012 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8013 deprecated_init_frame_pc and virtual_frame_pointer. Call
8014 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8015 and x86_64_frame_p. Call frame_base_set_default to register
8016 x86_64_frame_base.
8017 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8018 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8019 (_initialize_x86_64_tdep): Remove function.
8020 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8021 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8022 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8023 define.
8024 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8025 (x86_64_linux_sigcontext_addr): Rewrite.
8026 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8027 x86_64_linux_frame_saved_pc): Remove functions.
8028 (x86_64_linux_pc_in_sigtramp): Renamed from
8029 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8030 trampoline.
8031 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8032 Remove_functions.
8033 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8034 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8035 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8036 (x86_64_regmap): Rename to regmap.
8037 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8038 x86_64_num_gregs.
8039 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8040 x86_64_regmap.
8041 (x86_64_fxsave_offset): Remove function.
8042 (supply_fpregset): Simply call x86_64_supply_fxsave.
8043 (fill_fpregset): Simply call x86_64_fill_fxsave.
8044 (fetch_inferior_registers, store_inferior_registers): Avoid
8045 asignment in if-statement.
8046 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8047 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8048 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8049 (fetch_core_registers): Remove function.
8050 (linux_elf_core_fns): Remove.
8051 (offsetoff): Don't define.
8052 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8053 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8054 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8055 add core-regset.o.
8056 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8057 protection against multiple includes instead of NM_X86_64_h. Add
8058 various comments. Include "config/nm-linux.h". Don't include
8059 <signal.h>.
8060 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8061 GET_THREAD_SIGNALS): Remove defines.
8062 (x86_64_register_u_addr, kernel_u_size,
8063 lin_thread_get_thread_signals): Remove prototypes.
8064 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8065 [HAVE_LINK_H]: Don't include "solib.h".
8066 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8067 * config/i386/tm-x86-64linux.h: Fix comments.
8068 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8069 x86-64-tdep.o): Update dependencies.
8070
8071 2003-05-30 Andrew Cagney <cagney@redhat.com>
8072
8073 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8074 Change parameter type to a "struct regcache *".
8075
8076 * gdbarch.sh: Regardless of the multi-arch level, always define
8077 the macro when not already defined.
8078 * gdbarch.h, gdbarch.c: Re-generate.
8079
8080 2003-05-30 Richard Henderson <rth@redhat.com>
8081
8082 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8083 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8084 (alpha_mdebug_frame_this_id): Likewise.
8085 (alpha_mdebug_frame_prev_register): Likewise.
8086 (alpha_mdebug_frame_base_address): Likewise.
8087 (alpha_mdebug_frame_locals_address): Likewise.
8088 (alpha_mdebug_frame_args_address): Likewise.
8089 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8090 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8091 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8092 loop increment.
8093 (alpha_heuristic_frame_this_id): Make static.
8094 (alpha_heuristic_frame_prev_register): Likewise.
8095 (alpha_heuristic_frame_base_address): Likewise.
8096 * alpha-tdep.h: Update.
8097
8098 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8099
8100 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8101 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8102 defenitions.
8103 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8104 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8105 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8106 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8107 I386_ST0_REGNUM): New defines.
8108 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8109 codestream_get): Remove define.
8110 (codestream_next_addr, condestream_addr, condestream_buf,
8111 codestream_off, codestream_cnt): Remove variables.
8112 (codestream_fill, codestream_seek, codestream_read): Remove
8113 functions.
8114 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8115 functionality.
8116 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8117 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8118 i386_frame_saved_pc, i386_saved_pc_after_call,
8119 i386_frame_num_args, i386_frame_init_saved_regs,
8120 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8121 i386_push_arguments): Remove functions.
8122 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8123 functionality. Use i386_analyze_prologue instead of
8124 i386_get_frame_setup.
8125 (I386_NUM_SAVED_REGS): New define.
8126 (struct i386_frame_cache): New structure.
8127 (i386_alloc_frame_cache, i386_analyze_struct_return,
8128 i386_skip_probe, i386_analyze_frame_setup,
8129 i386_analyze_register_saves, i386_analyze_prologue,
8130 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8131 i386_frame_prev_register, i386_sigtramp_frame_cache,
8132 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8133 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8134 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8135 New functions.
8136 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8137 New variables.
8138 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8139 I386_EAX_REGNUM and I386_EDX_REGNUM.
8140 (i386_extract_return_value, i386_store_return_value): Use
8141 I386_ST0_REGNUM where appropriate.
8142 (i386_extract_struct_value_address): Rewrite to use extract_address.
8143 (i386_svr4_pc_in_sigtramp): Add comment.
8144 (i386_svr4_sigcontext_addr): Rewrite.
8145 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8146 TDEP->sc_sp_offset.
8147 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8148 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8149 of new defines. Set push_dummy_call, don't set
8150 deprecated_push_arguments, deprecated_push_return_address,
8151 deprecated_pop_frame. Don't set parm_boundary. Don't set
8152 deprecated_frame_chain, deprecated_frame_saved_pc,
8153 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8154 save_dummy_frame_tos, unwind_pc. Call
8155 frame_unwind_append_predicate and frame_base_set_default. Don't
8156 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8157 Don't set frameless_function_invocation. Don't set
8158 deprecated_register_bytes, deprecated_register_size,
8159 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8160 * i386-linux-tdep.c: Fix formatting in some comments.
8161 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8162 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8163 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8164 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8165 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8166 redundant parentheses.
8167 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8168 (i386_linux_sigcontext_addr): Use it. Rewrite.
8169 (find_minsym_and_objfile): Change name of second argument.
8170 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8171 changed. Use frame_pc_unwind instead of
8172 DEPRECATED_SAVED_PC_AFTER_CALL.
8173 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8174 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8175 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8176 unwinder.
8177 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8178 "dummy-frame.h".
8179 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8180 (_initialize_i386_cygwin_tdep): New prototype.
8181 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8182 deprecated_frame_chain_valid.
8183 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8184 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8185 Rely on the SVR4 defaults.
8186 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8187 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8188
8189 2003-05-30 Andrew Cagney <cagney@redhat.com>
8190
8191 * infcall.c (call_function_by_hand): Always call
8192 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8193
8194 2003-05-30 Richard Henderson <rth@redhat.com>
8195
8196 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8197 increment.
8198
8199 2003-05-29 Jim Blandy <jimb@redhat.com>
8200
8201 Use gdbarch methods for solib stuff on PowerPC Linux.
8202 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8203 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8204 show through.
8205 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8206 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8207 giving the same effect as the #definitions above.
8208
8209 2003-05-29 Adam Fedor <fedor@gnu.org>
8210
8211 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8212 (find_implementation_from_class): Replace it with the standard
8213 case i.e. do nothing.
8214
8215 2003-05-29 Richard Henderson <rth@redhat.com>
8216
8217 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8218 (alpha_linux_sigtramp_offset): Use it. Make static.
8219 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8220 update for new frame model.
8221 * alpha-mdebug-tdep.c: New file.
8222 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8223 (alpha_osf1_init_abi): Install it.
8224 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8225 (linked_proc_desc_table): Remove.
8226 (alpha_frame_past_sigtramp_frame): Remove.
8227 (alpha_dynamic_sigtramp_offset): Remove.
8228 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8229 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8230 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8231 (push_sigtramp_desc): Remove.
8232 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8233 (alpha_cannot_store_register): Likewise.
8234 (alpha_sigcontext_addr): Remove.
8235 (alpha_find_saved_regs): Remove.
8236 (alpha_frame_init_saved_regs): Remove.
8237 (alpha_init_frame_pc_first): Remove.
8238 (read_next_frame_reg): Remove.
8239 (alpha_frame_saved_pc): Remove.
8240 (alpha_saved_pc_after_call): Remove.
8241 (temp_proc_desc, temp_saved_regs): Remove.
8242 (alpha_about_to_return): Remove.
8243 (cached_proc_desc): Remove.
8244 (alpha_frame_chain): Remove.
8245 (alpha_print_extra_frame_info): Remove.
8246 (alpha_init_extra_frame_info): Remove.
8247 (alpha_frame_locals_address): Remove.
8248 (alpha_frame_args_address): Remove.
8249 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8250 (alpha_push_dummy_frame): Remove.
8251 (alpha_pop_frame): Remove.
8252 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8253 (alpha_read_insn): New.
8254 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8255 for different insn encodings.
8256 (alpha_in_lenient_prologue): Remove.
8257 (struct alpha_sigtramp_unwind_cache): New.
8258 (alpha_sigtramp_frame_unwind_cache): New.
8259 (alpha_sigtramp_register_address): New.
8260 (alpha_sigtramp_frame_this_id): New.
8261 (alpha_sigtramp_frame_prev_register): New.
8262 (alpha_sigtramp_frame_unwind): New.
8263 (alpha_sigtramp_frame_p): New.
8264 (struct alpha_heuristic_unwind_cache): New.
8265 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8266 don't count nop insns that occur between functions.
8267 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8268 heuristic_proc_desc, but without the mdebug wrapping.
8269 (alpha_heuristic_frame_this_id): New.
8270 (alpha_heuristic_frame_prev_register): New.
8271 (alpha_heuristic_frame_unwind): New.
8272 (alpha_heuristic_frame_p): New.
8273 (alpha_heuristic_frame_base_address): New.
8274 (alpha_heuristic_frame_base): New.
8275 (alpha_unwind_dummy_id): New.
8276 (alpha_unwind_pc): New.
8277 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8278 frame related deprecated initializations; install replacements.
8279 (alpha_dump_tdep): Remove.
8280 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8281 (alpha_read_insn, alpha_after_prologue,
8282 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8283 alpha_heuristic_frame_prev_register,
8284 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8285 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8286 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8287 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8288
8289 2003-05-29 Andrew Cagney <cagney@redhat.com>
8290
8291 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8292 dependant on the availability of ASSERT_FUNCTION.
8293 (ASSERT_FUNCTION): Do not define when there is no function name.
8294
8295 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8296
8297 From Jimi X <jimix@watson.ibm.com>:
8298 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8299
8300 2003-05-28 Jim Blandy <jimb@redhat.com>
8301
8302 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8303 argument to ptrace to int; the system headers should give it the
8304 right type, and pointers don't fit in ints on powerpc64-*-*.
8305
8306 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8307
8308 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8309 DW_TAG_catch_block.
8310
8311 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8312
8313 * stabsread.c (dbx_lookup_type): Make static.
8314 (read_type): Ditto.
8315 (add_undefined_type): Ditto.
8316 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8317 not export.
8318
8319 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8320
8321 * hpread.c (hpread_has_name): Make static.
8322 (hpread_psymtab_to_symtab): Ditto.
8323 (file_exists): Ditto.
8324 (hpread_call_pxdb): Ditto.
8325 (hpread_pxdb_needed): Ditto.
8326 (hpread_quick_traverse): Ditto.
8327 (hpread_get_header): Ditto.
8328 (hpread_get_lntt): Ditto.
8329 (hpread_get_slt): Ditto.
8330 (class_of): Ditto.
8331
8332 2003-05-25 Andreas Schwab <schwab@suse.de>
8333
8334 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8335 stack_align and deprecated_extra_stack_alignment_needed.
8336 (m68k_stack_align): Delete.
8337
8338 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8339 (m68k_register_virtual_size): Likewise.
8340 (altos_skip_prologue): Remove obsolete function.
8341 (isi_frame_num_args): Likewise.
8342 (news_frame_num_args): Likewise.
8343 (m68k_fix_call_dummy): Make static.
8344 (m68k_push_dummy_frame): Likewise.
8345 (m68k_pop_frame): Likewise.
8346 (m68k_skip_prologue): Likewise.
8347 (m68k_frame_init_saved_regs): Likewise.
8348 (m68k_saved_pc_after_call): Likewise.
8349 (m68k_get_longjmp_target): Make multi-arch.
8350 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8351 structure. Register m68k_get_longjmp_target if enabled.
8352 * m68k-tdep.h (struct gdbarch_tdep): Define.
8353 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8354
8355 * Makefile.in (config.status): Also depend on configure.tgt
8356 and configure.host.
8357 (m68klinux-tdep.o): Update dependencies.
8358 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8359 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8360 (M68K_LINUX_JB_PC): Define.
8361 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8362 and take additional parameter.
8363 (m68k_linux_sigtramp_saved_pc): Update.
8364 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8365 m68k_linux_pc_in_sigtramp, in_plt_section,
8366 find_solib_trampoline_target.
8367 * config/m68k/tm-linux.h: Don't include any tm headers.
8368 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8369 (JB_ELEMENT_SIZE): Likewise.
8370 (JB_PC): Likewise.
8371 (GET_LONGJMP_TARGET): Likewise.
8372 (IN_SIGTRAMP): Likewise.
8373 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8374
8375 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8376
8377 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8378 (sparc32_push_arguments): Re-implement by calling
8379 sparc32_do_push_arguments.
8380
8381 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8382
8383 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8384 SPARC_O1_REGNUM): New defines.
8385 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8386 (sparc32_store_return_value): New function.
8387 (sparc_extract_struct_value_address): Rewrite to operate on a
8388 regcache.
8389 (sparc_gdbarch_init): Don't set
8390 deprecated_extract_struct_value_address. Set
8391 extract_struct_value_address instead. Don't set
8392 deprecated_extract_return_value and deprecated_store_return_value
8393 for 32-bit targets. Set extract_return_value and
8394 store_return_value instead.
8395 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8396 DEPRECATED_EXTRACT_RETURN_VALUE,
8397 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8398 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8399 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8400 (sparc_store_return_value): Remove prototype.
8401 (sparc32_store_return_value): New prototype.
8402 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8403 Adjust prototypes.
8404
8405 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8406
8407 * sparcnbsd-tdep.c: Include "gdb_string.h".
8408
8409 2003-05-23 Andrew Cagney <cagney@redhat.com>
8410
8411 * p-valprint.c (pascal_val_print): Replace extract_address with
8412 the inline equivalent extract_unsigned_integer.
8413 * jv-valprint.c (java_value_print): Ditto.
8414 * ada-valprint.c (ada_val_print_1): Ditto.
8415 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8416
8417 2003-05-23 Theodore A. Roth <troth@openavr.org>
8418
8419 * blockframe.c (frameless_look_for_prologue): Remove unused
8420 after_prologue variable.
8421
8422 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8423
8424 * blockframe.c (get_pc_function_start): Rewrite to avoid
8425 asignments in if-statements.
8426
8427 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8428
8429 Committed by Elena Zannoni <ezannoni@redhat.com>.
8430 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8431 files, don't relocate absolute symbols (and do use mst_abs).
8432
8433 2003-05-23 Andrew Cagney <cagney@redhat.com>
8434
8435 * objc-lang.c: Include "gdb_assert.h".
8436 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8437 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8438 (gdb_check, gdb_check_fatal): Delete functions.
8439 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8440 gdb_assert.
8441 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8442 * Makefile.in (objc-lang.o): Update dependencies.
8443
8444 2003-05-22 Ian Lance Taylor <ian@airs.com>
8445
8446 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8447 with fprintf_filtered, not fprintf_unfiltered.
8448
8449 2003-05-22 Andrew Cagney <cagney@redhat.com>
8450
8451 * stack.c (frame_info): Inline extract_address, replacing it with
8452 extract_unsigned_integer.
8453 * findvar.c (unsigned_pointer_to_address): Ditto.
8454 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8455 * dwarf2expr.c (dwarf2_read_address): Ditto.
8456 * frame.c (frame_pc_unwind): Update comment.
8457 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8458
8459 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8460
8461 * infptrace.c (detach): Call print_sys_errmsg rather than
8462 perror_with_name to issue warning message when errno is non-zero
8463 after calling ptrace detach.
8464
8465 2003-05-21 J. Brobecker <brobecker@gnat.com>
8466
8467 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8468 macro definitions from here...
8469 * hppa-tdep.c: ...to there.
8470
8471 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8472
8473 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8474 register_ptrace_addr(). Fix all callers.
8475
8476 2003-05-21 Andreas Schwab <schwab@suse.de>
8477
8478 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8479 dependencies.
8480 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8481 end.
8482 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8483 (_initialize_m68k_linux_tdep): New function.
8484 (m68k_linux_frame_saved_pc): Make static.
8485 (m68k_linux_extract_return_value): Likewise.
8486 (m68k_linux_store_return_value): Likewise.
8487 (m68k_linux_extract_struct_value_address): Likewise.
8488 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8489 Remove.
8490 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8491 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8492 (DEPRECATED_FRAME_SAVED_PC): Remove.
8493
8494 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8495
8496 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8497 regset numbering rather than our own.
8498
8499 2003-05-19 David Carlton <carlton@bactrian.org>
8500
8501 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8502
8503 2003-05-19 David Carlton <carlton@bactrian.org>
8504
8505 Partial fix for PR c++/827.
8506 * cp-support.h: Include symtab.h.
8507 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8508 * cp-namespace.c: Update contributors.
8509 (cp_lookup_symbol_nonlocal): New.
8510 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8511 (lookup_symbol_file): Ditto.
8512 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8513 * block.h: Declare block_scope, block_using, block_global_block.
8514 * block.c (block_scope): New.
8515 (block_using, block_global_block): Ditto.
8516 * Makefile.in (cp_support_h): Depend on symtab_h.
8517 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8518
8519 2003-05-19 David Carlton <carlton@bactrian.org>
8520
8521 * language.h (struct language_defn): Add 'la_value_of_this'
8522 and 'la_lookup_symbol_nonlocal' members.
8523 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8524 lookup_symbol_static, lookup_symbol_global,
8525 lookup_symbol_aux_block.
8526 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8527 if we should search fields of this and how to do static/global
8528 lookup.
8529 (lookup_symbol_aux_block): Make extern.
8530 (basic_lookup_symbol_nonlocal): New.
8531 (lookup_symbol_static, lookup_symbol_global): Ditto.
8532 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8533 'la_lookup_symbol_nonlocal' members.
8534 * c-lang.c (c_language_defn, cplus_language_defn)
8535 (asm_language_defn, minimal_language_defn): Ditto.
8536 * jv-lang.c (java_language_defn): Ditto.
8537 * language.c (unknown_language_defn, auto_language_defn)
8538 (local_language_defn): Ditto.
8539 * m2-lang.c (m2_language_defn): Ditto.
8540 * objc-lang.c (objc_language_defn): Ditto.
8541 * scm-lang.c (scm_language_defn): Ditto.
8542 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8543 * p-lang.c (pascal_language_defn): Ditto for both.
8544 * Makefile.in (f-lang.o): Depend on value_h.
8545 (p-lang.o): Ditto.
8546
8547 2003-05-19 David Carlton <carlton@bactrian.org>
8548
8549 * block.h: Declare block_static_block.
8550 * block.c (block_static_block): New.
8551 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8552 lookup_symbol_aux_local, calling block_static_block instead.
8553 (lookup_symbol_aux_local): Delete 'static_block' argument.
8554
8555 2003-05-19 David Carlton <carlton@bactrian.org>
8556
8557 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8558
8559 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8560
8561 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8562 register numbers mapping.
8563
8564 2003-05-18 Adam Fedor <fedor@gnu.org>
8565
8566 * symtab.c (completion_list_objc_symbol): New function.
8567 (make_symbol_completion_list): Use it to add ObjC symbols
8568 when looking though the list.
8569 (language_search_unquoted_string): New function.
8570 (make_file_symbol_completion_list): Use it.
8571
8572 2003-05-18 Andreas Schwab <schwab@suse.de>
8573
8574 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8575 dependencies.
8576 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8577 as m68k_linux_extract_return_value.
8578 (DEPRECATED_STORE_RETURN_VALUE): Define as
8579 m68k_linux_store_return_value.
8580 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8581 m68k_linux_extract_struct_value_address.
8582 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8583 get_next_frame, get_frame_base, get_frame_pc.
8584 (m68k_linux_frame_saved_pc): Use get_frame_base.
8585 (m68k_linux_extract_return_value): New function.
8586 (m68k_linux_store_return_value): New function.
8587 (m68k_linux_extract_struct_value_address): New function.
8588 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8589
8590 * c-exp.y (typebase): Remove duplicate occurence of
8591 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8592 of lookup_signed_typename.
8593
8594 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8595
8596 * dwarf2loc.c (find_location_expression): Change type of second
8597 argument to `size_t *'.
8598 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8599 for size variable.
8600
8601 2003-05-18 David Carlton <carlton@bactrian.org>
8602
8603 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8604 'linkage_name'. Add comment.
8605 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8606 'linkage_name'.
8607 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8608 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8609 (lookup_block_symbol): Ditto.
8610
8611 2003-05-16 Andrew Cagney <cagney@redhat.com>
8612
8613 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8614 * gdbarch.h, gdbarch.c: Re-generate.
8615 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8616 * TODO (REGISTER_BYTES): Delete reference.
8617 * alpha-tdep.c (alpha_gdbarch_init): Update.
8618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8619 * x86-64-tdep.c (x86_64_init_abi): Update.
8620 * vax-tdep.c (vax_gdbarch_init): Update.
8621 * v850-tdep.c (v850_gdbarch_init): Update.
8622 * sparc-tdep.c (sparc_gdbarch_init): Update.
8623 * sh-tdep.c (sh_gdbarch_init): Update.
8624 * s390-tdep.c (s390_gdbarch_init): Update.
8625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8626 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8627 (ns32k_gdbarch_init_32382): Update.
8628 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8629 * mcore-tdep.c (mcore_gdbarch_init): Update.
8630 * m68k-tdep.c (m68k_gdbarch_init): Update.
8631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8632 * ia64-tdep.c (ia64_gdbarch_init): Update.
8633 * i386-tdep.c (i386_gdbarch_init): Update.
8634 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8635 * hppa-tdep.c (hppa_gdbarch_init): Update.
8636 * h8300-tdep.c (h8300_gdbarch_init): Update.
8637 * frv-tdep.c (frv_gdbarch_init): Update.
8638 * cris-tdep.c (cris_gdbarch_init): Update.
8639 * avr-tdep.c (avr_gdbarch_init): Update.
8640 * arm-tdep.c (arm_gdbarch_init): Update.
8641 * sparc-tdep.c (sparc_pop_frame): Update.
8642 * rs6000-tdep.c (rs6000_pop_frame): Update.
8643 * remote.c (init_remote_state): Update.
8644 (remote_prepare_to_store): Update.
8645 * remote-vx.c (vx_prepare_to_store): Update.
8646 * remote-sds.c (sds_fetch_registers): Update.
8647 (sds_prepare_to_store): Update.
8648 * remote-array.c: Update.
8649 * regcache.c (init_legacy_regcache_descr): Update.
8650 (init_regcache_descr): Update.
8651 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8652 (mips_o64_extract_return_value): Update.
8653 * irix5-nat.c (fetch_core_registers): Update.
8654 * irix4-nat.c (fetch_core_registers): Update.
8655 * i386-tdep.h: Update.
8656 * hppa-tdep.c (pa_do_registers_info): Update.
8657 (pa_do_strcat_registers_info): Update.
8658 * cris-tdep.c (cris_register_bytes_ok): Update.
8659 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8660 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8661 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8662 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8663 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8664 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8665 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8666 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8667 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8668 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8669 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8670 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8671 (REGISTER_BYTES_OK): Update.
8672 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8673 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8674
8675 2003-05-16 Ian Lance Taylor <ian@airs.com>
8676
8677 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8678 (vax_print_insn, print_insn_arg): Remove static functions.
8679 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8680 print_insn_vax from opcodes library.
8681 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8682
8683 2003-05-15 Andrew Cagney <cagney@redhat.com>
8684
8685 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8686 * target.h (memory_breakpoint_from_pc): Delete declaration.
8687 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8688 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8689 * monitor.c (monitor_insert_breakpoint): Use
8690 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8691 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8692 * gdbarch.h, gdbarch.c: Re-generate.
8693 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8694 (sparc_gdbarch_init): Set breakpoint_from_pc to
8695 sparc_breakpoint_from_pc.
8696 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8697 (BREAKPOINT_FROM_PC): Define.
8698 (sparc_breakpoint_from_pc): Declare.
8699 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8700 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8701 (BREAKPOINT_FROM_PC): Define.
8702 (BREAKPOINT): Delete macro.
8703 * target.h: Update comment.
8704 * s390-tdep.c (s390_gdbarch_init): Update comments.
8705 * remote.c: Update comments.
8706 * remote-mips.c: Update comments.
8707 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8708 * mem-break.c: Update comment.
8709 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8710 (ia64_memory_insert_breakpoint): Update.
8711 * config/sparc/tm-sparc.h: Update comment.
8712 * config/pa/tm-hppa64.h: Update comment.
8713 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8714 (rs6000_breakpoint_from_pc): Update.
8715 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8716 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8717 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8718 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8719 (mips_breakpoint_from_pc): Update.
8720 (mips_dump_tdep): Update.
8721
8722 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8723 * minsyms.c (lookup_minimal_symbol): Inline
8724 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8725
8726 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8727 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8728 * p-lang.c (pascal_printstr): Ditto.
8729 * objc-lang.c (objc_printstr): Ditto.
8730 * m2-lang.c (m2_printstr): Ditto.
8731 * jv-valprint.c (java_print_value_fields): Ditto.
8732 * f-lang.c (f_printstr): Ditto.
8733 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8734 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8735 for repeat_count_threshold.
8736 * Makefile.in (cp-valprint.o): Update dependencies.
8737
8738 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8739
8740 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8741 (examine_prologue): Support looking through leaf functions, knowing
8742 they start with mov r2,r12. Support skipping over indirect stores
8743 of the input registers. Upon hitting a non-nop branch instruction
8744 or predicated instruction, bail out by setting lim_pc to the current
8745 pc value in the loop. At the end, if the lim_pc value is still
8746 beyond our calculated value and we have trust_limit set,
8747 use the lim_pc value.
8748
8749 2003-05-15 Andrew Cagney <cagney@redhat.com>
8750
8751 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8752 generic_find_dummy_frame.
8753 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8754 (deprecated_generic_find_dummy_frame): Update.
8755 (deprecated_read_register_dummy): Update.
8756 * frame.c (deprecated_generic_get_saved_register): Update.
8757
8758 2003-05-15 Theodore A. Roth <troth@openavr.org>
8759
8760 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8761 (avr_gdbarch_init): Set breakpoint_from_pc method.
8762
8763 2003-05-15 Andrew Cagney <cagney@redhat.com>
8764
8765 * regcache.c (build_regcache): Set deprecated_register_valid
8766 directly.
8767 (deprecated_grub_regcache_for_register_valid): Delete function.
8768 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8769 declaration.
8770
8771 2003-05-15 David Carlton <carlton@bactrian.org>
8772
8773 Committed by Elena Zannoni <ezannoni@redhat.com>
8774 * symtab.c (lookup_symbol_aux): Delete calls to
8775 lookup_symbol_aux_minsyms.
8776 (lookup_symbol_aux_minsyms): Comment out function and
8777 prototype. Delete lookup by mangled name.
8778
8779 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8780
8781 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8782 correctly indicate an empty stack and ``stack_allocated'' to the
8783 indicate the number of elements initially allocated.
8784 (dwarf_expr_grow_stack): Simplify method for computing new
8785 stack size. Don't loop infinitely if ``stack_len'' is zero.
8786 (execute_stack_op): Move ``ctx->in_reg'' initialization
8787 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8788 be used in conjuction with DW_OP_piece. Revise error message
8789 accordingly.
8790
8791 2003-05-14 Theodore A. Roth <troth@openavr.org>
8792
8793 * MAINTAINERS: Update my email address.
8794 * avr-tdep.c: Ditto.
8795
8796 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8797
8798 * symtab.h (enum domain_enum): Rename from namespace_enum.
8799 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8800 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8801 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8802 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8803 TYPES_NAMESPACE, METHODS_NAMESPACE.
8804 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8805 (struct symbol, struct partial_symbol): Rename field
8806 'namespace_enum namespace' to 'domain_enum domain'.
8807 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8808 Delete old define kludge for namespace.
8809
8810 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8811 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8812 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8813 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8814 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8815 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8816 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8817 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8818 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8819 occurrences of the above.
8820
8821 2003-05-14 Ian Lance Taylor <ian@airs.com>
8822
8823 * Makefile.in (install-only): Use $(SHELL) when running
8824 mkinstalldirs.
8825
8826 2003-05-13 Ian Lance Taylor <ian@airs.com>
8827
8828 * MAINTAINERS (write after approval): Add myself.
8829
8830 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8831 second and third arguments.
8832 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8833 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8834
8835 2003-05-13 Andrew Cagney <cagney@redhat.com>
8836
8837 * defs.h (store_address): Delete declaration.
8838 findvar.c (store_address): Delete function.
8839 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8840 store_unsigned_integer.
8841 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8842 * v850-tdep.c (v850_push_arguments): Ditto.
8843 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8844 * sh-tdep.c (sh64_get_saved_register): Ditto.
8845 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8846 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8847 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8848 (mips_get_saved_register): Ditto.
8849 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8850 (find_func_descr, ia64_push_arguments): Ditto.
8851 * i386-tdep.c (i386_push_arguments): Ditto.
8852 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8853 * frv-tdep.c (frv_push_arguments): Ditto.
8854 * frame.c (legacy_saved_regs_prev_register): Ditto.
8855 (deprecated_generic_get_saved_register): Ditto.
8856 * findvar.c (unsigned_address_to_pointer): Ditto.
8857 * dwarf2read.c (dwarf2_const_value): Ditto.
8858 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8859 * alpha-tdep.c (alpha_push_arguments): Ditto.
8860
8861 2003-05-12 J. Brobecker <brobecker@gnat.com>
8862
8863 * NEWS: Mention that the hppa-hpux port has been partially
8864 multiarched (32bit ABIT only, so far).
8865
8866 2003-05-11 Andrew Cagney <cagney@redhat.com>
8867
8868 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8869 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8870 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8871 sim/testsuite/sim/arm/misaligned2.ms, and
8872 sim/testsuite/sim/arm/misaligned3.ms.
8873 * disasm.h (struct ui_file): Add opaque struct declaration.
8874 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8875 * frame.h (struct ui_file): Ditto.
8876
8877 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8878
8879 * value.h: Pretty print.
8880
8881 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8882
8883 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8884
8885 2003-05-08 Andrew Cagney <cagney@redhat.com>
8886
8887 * regcache.h (max_register_size): Delete declaration.
8888 * regcache.c (max_register_size): Delete function.
8889 (struct regcache_descr): Delete field "max_register_size".
8890 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8891 registers fit in MAX_REGISTER_SIZE.
8892 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8893 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8894 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8895 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8896 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8897 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8898 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8899 * dve3900-rom.c, hppa-tdep.c: Ditto.
8900
8901 2003-05-08 David Carlton <carlton@math.stanford.edu>
8902
8903 * valops.c (push_word): Fix typo.
8904
8905 2003-05-08 Andrew Cagney <cagney@redhat.com>
8906
8907 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8908 * gdbarch.h: Re-generate.
8909 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8910 (legacy_max_register_raw_size): Delete declaration.
8911 * regcache.c (legacy_max_register_raw_size): Delete function.
8912 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8913 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8914 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8915 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8916 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8917 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8918 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8919 * findvar.c, dwarf2cfi.c: Ditto.
8920
8921 2003-05-08 Andrew Cagney <cagney@redhat.com>
8922
8923 * mips-tdep.c (read_signed_register): New function, moved to here
8924 from "regcache.c".
8925 (read_signed_register_pid): Ditto.
8926 * regcache.c (read_signed_register_pid): Delete function, moved to
8927 "mips-tdep.c".
8928 (read_signed_register): Ditto.
8929 * regcache.h (read_signed_register): Delete declaration.
8930 (read_signed_register_pid): Delete declaration.
8931
8932 2003-05-08 Andrew Cagney <cagney@redhat.com>
8933
8934 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8935 * gdbarch.h: Re-generate.
8936 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8937 (legacy_max_register_virtual_size): Delete declaration.
8938 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8939 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8940 * tracepoint.c (memrange_sortmerge): Ditto.
8941 * sparc-tdep.c (sparc_print_registers): Ditto.
8942 * regcache.c (legacy_max_register_virtual_size): Delete function.
8943
8944 2002-05-08 J. Brobecker <brobecker@gnat.com>
8945
8946 * fork-child.c (escape_bang_in_quoted_argument): New function.
8947 (fork_inferior): Escape '!' characters in quoted arguments
8948 only when needed.
8949
8950 2003-05-08 J. Brobecker <brobecker@gnat.com>
8951
8952 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8953 the language of the CU is not currently supported by GDB.
8954
8955 2003-05-08 J. Brobecker <brobecker@gnat.com>
8956
8957 * defs.h (language): Add language_minimal enum value.
8958 * c-lang.c (minimal_language_defn): New language definition.
8959 (_initialize_c_language): Add the new minimal language to the list
8960 of languages known to GDB.
8961
8962 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8963
8964 * frame.c (get_frame_type): Don't attempt to lazily initialize
8965 frame's unwinder for legacy frames.
8966
8967 2003-05-07 Andrew Cagney <cagney@redhat.com>
8968
8969 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8970 and "regcache" parameters.
8971 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8972
8973 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8974
8975 * dwarf2read.c (dwarf_decode_lines): Only use output of
8976 check_cu_functions() when calling record_line(). Do not update
8977 the current address.
8978
8979 2003-05-07 Andrew Cagney <cagney@redhat.com>
8980
8981 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8982 code.
8983
8984 2003-05-07 Jim Blandy <jimb@redhat.com>
8985
8986 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8987 'maint info symtabs' and 'maint info psymtabs'.
8988 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8989 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8990 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8991 Declarations updated.
8992 * maint.c (maintenance_list_command): Delete.
8993 (_initialize_maint_cmds): Update calls to add_cmd.
8994 * gdbcmd.h (maintenancelistlist): Delete declaration.
8995 * cli/cli-cmds.c (maintenancelistlist): Delete.
8996 (init_cmd_lists): Don't initialize it.
8997 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8998
8999 2003-05-07 Andrew Cagney <cagney@redhat.com>
9000
9001 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9002 "regcache".
9003 (d10v_print_registers_info): Update.
9004 (d10v_dmap_register, d10v_imap_register): Delete functions.
9005 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9006 and "imap_register".
9007 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9008 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9009 * arch-utils.c (generic_remote_translate_xfer_address): Add
9010 "regcache" and "gdbarch" parameters.
9011 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9012 parameter. Change class to multi-arch.
9013 * gdbarch.h, gdbarch.c: Re-generate.
9014 * remote.c (remote_xfer_memory): Use
9015 gdbarch_remote_translate_xfer_address.
9016
9017 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9018
9019 * infrun.c (prev_pc): Move declaration ahead of proceed().
9020 (proceed): Refresh prev_pc value before resuming.
9021 (stop_stepping): Remove code to refresh prev_pc.
9022
9023 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9024
9025 * nto-tdep.c: Removed stray comment.
9026
9027 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9028
9029 * i386-nto-tdep.c: Fix old K&R function definitions.
9030 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9031 Also change add_show_from_set() call to add_setshow_cmd().
9032 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9033
9034 2003-05-05 Andrew Cagney <cagney@redhat.com>
9035
9036 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9037 (fprint_dummy_frames): New function.
9038 (maintenance_print_dummy_frames): New function.
9039 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9040 * frame.c (fprint_frame_id): Make global.
9041 * frame.h (fprint_frame_id): Declare.
9042 * Makefile.in (dummy-frame.o): Update dependencies.
9043
9044 2003-05-05 Andrew Cagney <cagney@redhat.com>
9045
9046 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9047 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9048 SIZEOF_CALL_DUMMY_WORDS.
9049 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9050 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9051 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9052 CALL_DUMMY_BREAKPOINT_OFFSET.
9053 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9054 CALL_DUMMY_START_OFFSET.
9055 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9056 * gdbarch.h, gdbarch.c: Re-generate.
9057 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9058 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9059 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9060 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9061 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9062 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9063 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9064 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9065 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9066 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9067 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9068 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9069 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9070 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9071 * config/sparc/tm-sparc.h: Update.
9072
9073 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9074
9075 * configure.tgt: Add i[3456]86-*-nto*.
9076 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9077 * nto-tdep.c: New file. Neutrino target support routines.
9078 * nto-tdep.h: New file. Neutrino target header.
9079 * config/tm-qnxnto.h: New file.
9080 * config/i386/i386nto.mt: New file.
9081 * config/i386/tm-i386nto.h: New file.
9082
9083 2003-05-04 Andrew Cagney <cagney@redhat.com>
9084
9085 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9086 (load_infrun_state): Ditto.
9087 (struct thread_info): Drop "prev_func_name" field.
9088 * thread.c (load_infrun_state): Update.
9089 (save_infrun_state): Update.
9090 * infrun.c (prev_func_name): Delete variable.
9091 (init_wait_for_inferior): Do not clear prev_func_name.
9092 (stop_stepping, keep_going, context_switch): Do not swap
9093 prev_func_name.
9094 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9095 instead of PC_IN_SIGTRAMP.
9096
9097 2003-05-04 Andrew Cagney <cagney@redhat.com>
9098
9099 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9100 REGISTER_BYTE with register_offset_hack.
9101 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9102 that REGISTER_BYTE is consistent with the regcache.
9103 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9104 * gdbarch.h, gdbarch.c: Regenerate.
9105
9106 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9107
9108 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9109 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9110
9111 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9112
9113 2003-05-03 J. Brobecker <brobecker@gnat.com>
9114
9115 From Thierry Schneider <tpschneider1@yahoo.com>
9116 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9117 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9118 (mi-cmd-symbol.o): Add rule.
9119
9120 2003-05-03 Andrew Cagney <cagney@redhat.com>
9121
9122 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9123 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9124 * gdbarch.h, gdbarch.c: Re-generate.
9125 * d10v-tdep.c (d10v_push_dummy_code): New function.
9126 (d10v_gdbarch_init): Set push_dummy_code.
9127 * infcall.c (legacy_push_dummy_code): New function.
9128 (generic_push_dummy_code): New function.
9129 (push_dummy_code): New function.
9130 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9131 instead of dummy_addr, to push_dummy_call. Move call to
9132 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9133 switch.
9134 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9135
9136 2003-05-03 Andrew Cagney <cagney@redhat.com>
9137
9138 * disasm.h (print_insn): Declare.
9139 * disasm.c (init_gdb_disassemble_info): New function.
9140 (gdb_disassembly): Call init_gdb_disassemble_info.
9141 (gdb_print_insn): New function.
9142 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9143 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9144 * mcore-tdep.c: Include "disasm.h"
9145 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9146 * d10v-tdep.c: Include "disasm.h".
9147 (display_trace): Call gdb_print_insn, instead of print_insn.
9148 (print_insn): Delete function.
9149 * printcmd.c: Include "disasm.h".
9150 (print_insn): Delete function.
9151 (print_formatted): Call gdb_print_insn, instead of print_insn.
9152 * Makefile.in (printcmd.o): Update dependencies.
9153 (mcore-tdep.o, d10v-tdep.o): Ditto.
9154
9155 2003-05-02 Andrew Cagney <cagney@redhat.com>
9156
9157 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9158 PC_REGNUM, re-indent.
9159 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9160 PC_REGNUM isn't set.
9161
9162 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9163 * gdbarch.h, gdbarch.c: Re-generate.
9164 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9165 register_virtual_size, pc_regnum, or register_bytes.
9166 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9167 (d10v_register_type): Use D10V_PC_REGNUM.
9168 (d10v_print_registers_info, d10v_read_pc): Ditto.
9169 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9170 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9171
9172 2003-05-02 David Carlton <carlton@bactrian.org>
9173
9174 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9175 the name with mstrsave.
9176
9177 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9178
9179 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9180 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9181 (host_charset_name, target_charset_name): New vars for use by
9182 set/show commands.
9183 (host_charset_enum, target_charset_enum): New enums for set/show
9184 commands.
9185 (set_charset_sfunc, set_host_charset_sfunc,
9186 set_target_charset_sfunc): New functions.
9187 (set_host_charset, set_target_charset): Make static.
9188 (list_charsets, set_host_charset_command,
9189 set_target_charset_command): Delete functions.
9190 (show_charset_command): Rewrite as....
9191 (show_charset): Hook this up with the set/show command mechanism.
9192 (_initialize_charset): Change names of charsets to match the
9193 set/show enums. Use host_charset_name and target_charset_name.
9194 Use set/show mechanism for charset, host-charset, target-charset
9195 commands. Do not make 'show host-charset' and 'show
9196 target-charset' be aliases of 'show charset'.
9197
9198 * charset.h (set_host_charset, set_target_charset): Don't export,
9199 they are not used outside the file.
9200
9201 2003-05-01 Andrew Cagney <cagney@redhat.com>
9202
9203 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9204 (gdb_disassembly): Make "di" non static, always initialize and
9205 cleanup. Always use dis_asm_read_memory.
9206 (gdb_dis_asm_read_memory): Delete function.
9207
9208 2003-05-01 Andrew Cagney <cagney@redhat.com>
9209
9210 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9211 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9212
9213 2003-04-30 Andrew Cagney <cagney@redhat.com>
9214
9215 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9216 "tm_print_insn_info".
9217 (TARGET_PRINT_INSN_INFO): Delete macro.
9218 (dis_asm_read_memory): Delete function declaration.
9219 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9220 (tm_print_insn_info): Delete variable definition.
9221 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9222 * gdbarch.h, gdbarch.c: Re-generate.
9223 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9224 "deprecated_tm_print_insn_info".
9225 * mcore-tdep.c (mcore_dump_insn): Ditto.
9226 * mips-tdep.c (mips_gdbarch_init): Ditto.
9227 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9228 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9229 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9230 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9231 instead of TARGET_PRINT_INSN_INFO, add comment.
9232 * s390-tdep.c (s390_get_frame_info): Instead of
9233 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9234 (s390_check_function_end, s390_is_sigreturn): Ditto.
9235 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9236 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9237 * disasm.c: Include "gdbcore.h".
9238 (_initialize_disasm): New function, initialize
9239 "deprecated_tm_print_insn_info".
9240 (deprecated_tm_print_insn_info): New variable.
9241 (dis_asm_read_memory): Moved from "corefile.c", made static.
9242 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9243 * Makefile.in (disasm.o): Update dependencies.
9244
9245 2003-04-30 Andrew Cagney <cagney@redhat.com>
9246
9247 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9248
9249 2003-04-29 Adam Fedor <fedor@gnu.org>
9250
9251 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9252 * infcall.c (find_function_addr): Make non-static.
9253 * infcall.h (find_function_addr): Declare.
9254 * Makefile.in (eval.o): Update dependencies.
9255
9256 2003-04-28 Adam Fedor <fedor@gnu.org>
9257
9258 * symtab.c (symbol_find_demangled_name): Check for and demangle
9259 ObjC symbols.
9260 (symbol_init_demangled_name): Init for language_objc as well.
9261
9262 2003-04-28 Andrew Cagney <cagney@redhat.com>
9263
9264 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9265 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9266 * gdbarch.h, gdbarch.c: Re-generate.
9267 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9268 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9269 * inferior.h (deprecated_read_fp): Rename read_fp.
9270 (generic_target_read_fp): Delete declaration.
9271 * regcache.c (generic_target_read_fp): Delete function.
9272 (deprecated_read_fp): Replace read_fp, use
9273 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9274 * d10v-tdep.c (d10v_read_fp): Delete function.
9275 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9276
9277 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9278 deprecated_target_read_fp to generic_target_read_fp.
9279 * sh-tdep.c (sh_gdbarch_init): Ditto.
9280 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9282 * frv-tdep.c (frv_gdbarch_init): Ditto.
9283
9284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9285 deprecated_fp_regnum.
9286 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9287 * vax-tdep.c (vax_gdbarch_init): Ditto.
9288 * v850-tdep.c (v850_gdbarch_init): Ditto.
9289 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9290 * sh-tdep.c (sh_gdbarch_init): Ditto.
9291 * s390-tdep.c (s390_gdbarch_init): Ditto.
9292 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9293 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9294 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9295 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9297 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9298 * i386-tdep.c (i386_gdbarch_init): Ditto.
9299 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9300 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9301 * frv-tdep.c (frv_gdbarch_init): Ditto.
9302 * cris-tdep.c (cris_gdbarch_init): Ditto.
9303 * avr-tdep.c (avr_gdbarch_init): Ditto.
9304 * arm-tdep.c (arm_gdbarch_init): Ditto.
9305 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9306
9307 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9308 * v850-tdep.c (v850_gdbarch_init): Ditto.
9309 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9310 * sh-tdep.c (sh_gdbarch_init): Ditto.
9311 * s390-tdep.c (s390_gdbarch_init): Ditto.
9312 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9313 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9314 * mips-tdep.c (mips_gdbarch_init): Ditto.
9315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9316 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9317 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9318 * frv-tdep.c (frv_gdbarch_init): Ditto.
9319 * avr-tdep.c (avr_gdbarch_init): Ditto.
9320 * arm-tdep.c (arm_gdbarch_init): Ditto.
9321
9322 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9323 DEPRECATED_FP_REGNUM.
9324 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9325 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9326 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9327 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9328 (sparc32_register_virtual_type): Ditto.
9329 * sh-tdep.c (sh64_frame_chain): Ditto.
9330 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9331 (sh_nofp_frame_init_saved_regs): Ditto.
9332 (sh64_nofp_frame_init_saved_regs): Ditto.
9333 (sh_fp_frame_init_saved_regs): Ditto.
9334 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9335 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9336 * procfs.c (procfs_fetch_registers): Ditto.
9337 (procfs_store_registers): Ditto.
9338 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9339 (store_inferior_registers, fetch_core_registers): Ditto.
9340 (fetch_kcore_registers, clear_regs): Ditto.
9341 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9342 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9343 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9344 * nlm/i386.c (do_status): Ditto.
9345 * mipsv4-nat.c (supply_gregset): Ditto.
9346 * mips-tdep.c: Ditto for comments.
9347 * mips-nat.c (fetch_inferior_registers): Ditto.
9348 (store_inferior_registers, fetch_core_registers): Ditto.
9349 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9350 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9351 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9352 (i386_do_pop_frame, i386_register_type): Ditto.
9353 * hppa-tdep.c (hppa_frame_chain): Ditto.
9354 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9355 (hppa_pop_frame, hppa_read_fp): Ditto.
9356 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9357 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9358 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9359 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9360 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9361 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9362 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9363 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9364 * blockframe.c: Ditto for comments.
9365 * arch-utils.h: Ditto for comments.
9366 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9367 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9368 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9369 * alpha-tdep.h: Ditto for comments.
9370 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9371 (alpha_cannot_store_register): Ditto.
9372 (alpha_push_dummy_frame): Ditto.
9373 * alpha-nat.c (supply_gregset): Ditto.
9374
9375 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9376 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9377 * config/sparc/tm-sparc.h: Update comment.
9378
9379 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9380 deprecated_read_fp instead of TARGET_READ_FP.
9381 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9382 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9383 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9384 deprecated_read_fp instead of read_fp.
9385 * s390-tdep.c (s390_push_arguments): Ditto.
9386 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9387 * frame.h: Ditto in comments.
9388 * frame.c (legacy_get_prev_frame): Ditto.
9389 * dummy-frame.c (dummy_frame_this_id): Ditto.
9390 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9391
9392 2003-04-28 Andrew Cagney <cagney@redhat.com>
9393
9394 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9395 * gdbarch.h, gdbarch.c: Re-generate.
9396 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9397 * vax-tdep.c (_initialize_vax_tdep): Update.
9398 * v850-tdep.c (_initialize_v850_tdep): Update.
9399 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9400 * s390-tdep.c (_initialize_s390_tdep): Update.
9401 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9402 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9403 * mips-tdep.c (_initialize_mips_tdep): Update.
9404 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9405 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9406 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9407 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9408 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9409 * frv-tdep.c (_initialize_frv_tdep): Update.
9410 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9411 (_initialize_cris_tdep): Update.
9412 * arch-utils.c (legacy_print_insn): Update.
9413 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9414
9415 2003-04-26 Adam Fedor <fedor@gnu.org>
9416
9417 * linespec.c (decode_objc): New function to decode ObjC calls
9418 (decode_line_1): Check for ObjC calls (using decode_objc)
9419 * Makefile (linespec.o): Update dependencies.
9420
9421 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9422
9423 * breakpoint.h (struct breakpoint_ops): New.
9424 (struct breakpoint): Add ops member.
9425
9426 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9427 (mention): Use new breakpoint ops member.
9428 (set_raw_breakpoint): Initialize ops field to NULL.
9429 (print_exception_catchpoint, print_one_exception_catchpoint)
9430 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9431 (gnu_v3_exception_catchpoint_ops): New.
9432 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9433
9434 2003-04-25 Adam Fedor <fedor@gnu.org>
9435
9436 * Makefile.in (COMMON_OBS): Add objc-lang.o
9437
9438 2003-04-25 Andrew Cagney <cagney@redhat.com>
9439
9440 * d10v-tdep.c (print_insn): Delete function.
9441 (display_trace): Use TARGET_PRINT_INSN.
9442 (_initialize_d10v_tdep): Do not set tm_print_insn.
9443 (d10v_gdbarch_init): Set print_insn.
9444
9445 2003-04-25 Andrew Cagney <cagney@redhat.com>
9446
9447 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9448 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9449 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9450 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9451 (nr_dmap_regs, a0_regnum): ... new functions.
9452 (d10v_print_registers_info): Use a0_regnum, use register_size.
9453 (d10v_register_byte): Delete function.
9454 (d10v_register_raw_size): Delete function.
9455 (d10v_register_type): Use a0_regnum.
9456 (d10v_print_registers_info): Use a0_regnum.
9457 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9458 (d10v_gdbarch_init): Do not set register_byte or
9459 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9460 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9461 extract_address.
9462 (trace_command): Use XCALLOC.
9463 (print_insn): Delete reference to tm_print_insn.
9464 (saved_regs_unwinder): Use store_unsigned_integer instead of
9465 store_address.
9466 * frame.h (FRAME_OBSTACK_CALLOC): Define
9467
9468 2003-04-25 David Carlton <carlton@bactrian.org>
9469
9470 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9471
9472 2003-04-24 Adam Fedor <fedor@gnu.org>
9473
9474 * objc-lang.c: Include "valprint.h"
9475 * Makefile.in (objc-lang.o): Update dependencies.
9476
9477 2003-04-24 Adam Fedor <fedor@gnu.org>
9478
9479 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9480 architecture dependant compilation and mark as unimplemented
9481 (until they get put in the gdbarch vector).
9482
9483 2003-04-23 David Carlton <carlton@bactrian.org>
9484
9485 * cp-support.c (cp_find_first_component): Accept 'operator' in
9486 more locations.
9487
9488 2003-04-23 Andrew Cagney <cagney@redhat.com>
9489
9490 * infcall.c (call_function_by_hand): Eliminate redundant
9491 indentation. Move "saved_async" and "old_cleanups" to where they
9492 are needed.
9493
9494 2003-04-23 Andrew Cagney <cagney@redhat.com>
9495
9496 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9497 and "buffer". Move the "name" code to where it is needed.
9498
9499 2003-04-23 Andrew Cagney <cagney@redhat.com>
9500
9501 * infcall.c (call_function_by_hand): Move variables "start_sp",
9502 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9503 code to ON_STACK switch branch.
9504
9505 2003-04-23 Andrew Cagney <cagney@redhat.com>
9506
9507 * infcall.c (call_function_by_hand): Make declaration of "i",
9508 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9509 lint.
9510
9511 2003-04-23 Andrew Cagney <cagney@redhat.com>
9512
9513 * infcall.c (call_function_by_hand): Delete variable
9514 "n_method_args". Localize "param_type"'s declaration to the loop
9515 that it is used. Reinstate code assigning to said variable -
9516 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9517 Rationalize code using "param_type".
9518
9519 2003-04-22 Andrew Cagney <cagney@redhat.com>
9520
9521 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9522 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9523 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9524 to DEPRECATED_PUSH_RETURN_ADDRESS.
9525
9526 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9527
9528 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9529 on the DWARF2 register number prior to fetching a register.
9530
9531 2003-04-22 J. Brobecker <brobecker@gnat.com>
9532
9533 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9534 Update all the tests using SOFT_FLOAT considering the fact that
9535 this macro was always set to 0.
9536 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9537 considering the fact that this macro was always set to 0.
9538 * hppa-tdep.h (hppa_store_return_value): Likewise.
9539 (hppa_extract_return_value): Likewise.
9540
9541 2003-04-22 J. Brobecker <brobecker@gnat.com>
9542
9543 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9544 the hppa-pro target only.
9545
9546 2003-04-21 J. Brobecker <brobecker@gnat.com>
9547
9548 Ongoing multi-arch conversion effort for HP/UX:
9549 * config/pa/tm-hppa.h: Move all macro that are no longer
9550 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9551 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9552
9553 2003-04-21 J. Brobecker <brobecker@gnat.com>
9554
9555 * config/pa/tm-hppa.h: Obsolete a section that was only used
9556 for hppa-pro.
9557
9558 2003-04-21 J. Brobecker <brobecker@gnat.com>
9559
9560 Ongoing multi-arch conversion for HP/UX.
9561 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9562 if already defined (allows hppa64 to stay non-multiarched for now).
9563 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9564
9565 2003-04-21 Andrew Cagney <cagney@redhat.com>
9566
9567 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9568
9569 2003-04-21 Andrew Cagney <cagney@redhat.com>
9570
9571 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9572 "i386_num_mmx_regs".
9573
9574 2003-04-21 Andrew Cagney <cagney@redhat.com>
9575
9576 * infcall.c: New file.
9577 * infcall.h: New file.
9578 * valarith.c: Include "infcall.h".
9579 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9580 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9581 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9582 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9583 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9584 (SFILES): Add "infcall.c"
9585 (COMMON_OBS): Add "infcall.o".
9586 (infcall.o): Specify dependencies.
9587 * value.h (call_function_by_hand): Delete declaration.
9588 * inferior.h (run_stack_dummy): Delete declaration.
9589 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9590 (run_stack_dummy): Move to "infcall.c", merged into
9591 call_function_by_hand.
9592 * valops.c (call_function_by_hand): Moved to "infcall.c".
9593 (find_function_addr, value_arg_coerce): Ditto.
9594 (unwindonsignal_p, coerce_float_to_double): Ditto.
9595 (_initialize_valops): Move "set/show coerce-float-to-double", and
9596 "set/show unwindonsignal" commands to "infcall.c".
9597 * v850-tdep.c, target.h: Update comments.
9598 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9599 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9600 (sh64_init_extra_frame_info): Update comments.
9601 * mn10300-tdep.c: Update comments.
9602 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9603 * config/sparc/tm-sparc.h: Update comments.
9604 * breakpoint.h: Update comments.
9605 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9606 * arm-tdep.c: Update comment.
9607
9608 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9609
9610 * i386-tdep.c (i386_num_register_names): New variable.
9611 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9612 (MM0_REGNUM): Remove redundant parentheses in define.
9613 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9614 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9615 i386_mxcsr_regnum_p): Remove redundant parentheses.
9616 (i386_register_name): Use i386_num_register_names.
9617
9618 * i386-tdep.c (i386_extract_return_value,
9619 i386_store_return_value): Correct check for availability of
9620 floating-point registers.
9621
9622 * i386-tdep.c (i386_frame_num_args): Remove function.
9623 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9624
9625 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9626 mmx_regnum_to_fp_regnum. Adjust all callers.
9627
9628 * i386-tdep.c (i386_get_longjmp_target): Use
9629 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9630 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9631 extract_address.
9632
9633 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9634
9635 * core-regset.c: Update comments to reflect reality. Re-order
9636 includes.
9637 (fetch_core_registers): Use switch instead of if. Remove
9638 redundant prototype.
9639
9640 2003-04-18 Jim Blandy <jimb@redhat.com>
9641
9642 * s390-tdep.c (s390_frame_align): New function.
9643 (s390_gdbarch_init): Register it with the gdbarch object.
9644
9645 2003-04-17 Richard Henderson <rth@redhat.com>
9646
9647 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9648
9649 2003-04-17 Michael Snyder <msnyder@redhat.com>
9650 Karen Bennet <bennet@redhat.com>
9651
9652 Committed by Elena Zannoni <ezannoni@redhat.com>
9653 * gdb_gcore.sh: New script to create a core dump of a process.
9654
9655 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9656
9657 * values.c (value_being_returned): Don't fetch the return
9658 value if the return type is void.
9659
9660 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9661
9662 * thread-db.c: Reindented.
9663
9664 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9665
9666 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9667 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9668 as types.
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9695
9696 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9697 the size of ``long double'' to 16, instead of 8.
9698
9699 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9700
9701 * i386-linux-nat.c: Add some whitespace to make things more
9702 readable.
9703 (fetch_register, store_register, fetch_inferior_registers,
9704 store_inferior_registers): Get rid of assignment in if-statement.
9705 (store_register): Fix typo in error message.
9706
9707 2003-04-16 Andrew Cagney <cagney@redhat.com>
9708
9709 * utils.c (xmmalloc): Always allocate something, matches
9710 libiberty/xmalloc's semantics.
9711 (xmrealloc, xmcalloc): Ditto.
9712
9713 2003-04-16 Andrew Cagney <cagney@redhat.com>
9714
9715 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9716 update comments.
9717 (get_frame_type): Initialize unwind and type when needed.
9718 (get_frame_id, frame_register_unwind): Ditto.
9719
9720 2003-04-16 Andrew Cagney <cagney@redhat.com>
9721
9722 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9723 obsolete.
9724 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9725 * sparcl-stub.c: Obsolete file.
9726 * config/sparc/tm-sparclet.h: Obsolete file.
9727 * sparclet-stub.c: Obsolete file.
9728 * sparclet-rom.c: Obsolete file.
9729 * sparcl-tdep.c: Obsolete file.
9730 * config/sparc/tm-sparclite.h: Obsolete file.
9731 * config/sparc/sparclite.mt: Obsolete file.
9732 * config/sparc/sparclet.mt: Obsolete file.
9733 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9734 sparc86x-*-* obsolete.
9735
9736 2003-04-15 David Carlton <carlton@math.stanford.edu>
9737
9738 * Makefile.in (SFILES): Add cp-namespace.c.
9739 (COMMON_OBS): Add cp-namespace.o.
9740 (block.o): Depend on gdb_obstack_h and cp_support_h.
9741 (buildsym.o): Depend on cp_support_h.
9742 (cp-namespace.o): New.
9743 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9744 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9745 (dwarf2read.o): Depend on cp_support_h.
9746 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9747 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9748 processing_current_namespace.
9749 (read_namespace): Update processing_current_namespace; check for
9750 anonymous namespaces.
9751 (dwarf2_name): New function.
9752 (dwarf2_extension): Ditto.
9753 * cp-support.h: Update copyright, contributors.
9754 Add inclusion guards.
9755 Add opaque declaration for structs obstack, block, symbol.
9756 (struct using_direct): New struct.
9757 Add declarations for cp_find_first_component,
9758 cp_entire_prefix_len, processing_has_namespace_info,
9759 processing_current_namespace, cp_is_anonymous,
9760 cp_add_using_directive, cp_initialize_namespace,
9761 cp_finalize_namespace, cp_set_block_scope,
9762 cp_scan_for_anonymous_namespaces.
9763 * cp-namespace.c: New file.
9764 * cp-support.c: Update copyright.
9765 Include ctype.h, gdb_assert.h, gdbcmd.h.
9766 New variable maint_cplus_cmd_list.
9767 (cp_find_first_component): New function.
9768 (cp_entire_prefix_len, maint_cplus_command)
9769 (first_component_command, _initialize_cp_support): Ditto.
9770 * buildsym.c: Include cp-support.h.
9771 New variable using_list.
9772 (add_symbol_to_list): Check for anonymous namespaces.
9773 (finish_block): Set block's scope.
9774 (start_symtab): Initialize C++ namespace support.
9775 (end_symtab): Finalize C++ namespace support.
9776 * block.h: Add opaque declarations for structs
9777 block_namespace_info, using_direct, and obstack.
9778 Add declarations for block_set_scope and block_set_using.
9779 (struct block): Add 'language_specific' member.
9780 (BLOCK_NAMESPACE): New macro.
9781 * block.c: Include gdb_obstack.h and cp-support.h.
9782 (struct block_namespace_info): New struct.
9783 (block_set_scope): New function.
9784 (block_set_using, block_initialize_namespace): Ditto.
9785
9786 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9787
9788 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9789 (locate_base): Return early if there aren't any link map offsets.
9790 (svr4_solib_create_inferior_hook): Warn if shared library support
9791 is unavailable.
9792
9793 2003-04-14 David Carlton <carlton@math.stanford.edu>
9794
9795 * symtab.c (symbol_set_names): Add prefix when storing Java names
9796 in hash table. Fix for PR java/1039.
9797
9798 2003-04-14 David Carlton <carlton@math.stanford.edu>
9799
9800 * symtab.c (symbol_set_names): Rename 'name' arg to
9801 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9802 * symtab.h: Change 'name' argument in declaration of
9803 symbol_set_names to 'linkage_name'.
9804 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9805
9806 2003-04-14 Andrew Cagney <cagney@redhat.com>
9807
9808 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9809 return the fully sign-extended register value.
9810 (get_frame_pointer): Ditto.
9811 (mips_pop_frame): Initialize "proc_desc" after checking for a
9812 dummy frame.
9813
9814 2003-04-14 Andrew Cagney <cagney@redhat.com>
9815
9816 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9817 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9818 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9819 (mips_push_register): Delete function.
9820 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9821 PUSH_FP_REGNUM.
9822
9823 2003-04-14 Jim Blandy <jimb@redhat.com>
9824
9825 * symmisc.c: #include "gdb_regex.h".
9826 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9827 functions.
9828 * maint.c (maintenance_list_command): New function.
9829 (_initialize_maint_cmds): Register the above as commands.
9830 * symtab.h (maintenance_list_symtabs,
9831 maintenance_list_psymtabs): New declarations.
9832 * cli/cli-cmds.c (maintenancelistlist): New variable.
9833 (init_cmd_lists): Initialize it.
9834 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9835 * gdbcmd.h (maintenancelistlist): New declaration.
9836 * Makefile.in (symmisc.o): Update dependencies.
9837
9838 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9839
9840 * s390-nat.c: Include asm/types.h for addr_t.
9841
9842 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9843
9844 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9845 actually incoming type.
9846
9847 2003-04-13 Andrew Cagney <cagney@redhat.com>
9848
9849 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9850 get_next_frame and get_frame_saved_regs.
9851
9852 2003-04-13 Andrew Cagney <cagney@redhat.com>
9853
9854 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9855 of gdbarch_num_regs.
9856
9857 2003-04-13 Andrew Cagney <cagney@redhat.com>
9858
9859 * frame.h: Mention what replaced what in "struct frame_info".
9860 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9861 deprecated_update_frame_base_hack and
9862 deprecated_update_frame_pc_hack.
9863 * hppa-tdep.c: Ditto.
9864
9865 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9866
9867 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9868 to read_reg and update its comment. Remove regnum member.
9869 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9870 Don't call read_reg when setting in_reg. Call read_reg to get
9871 the frame base if it's in a register. Return the register number
9872 on the stack instead of in the context. Remove extra arguments
9873 to read_reg.
9874 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9875 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9876 the register number on the expression stack.
9877 (needs_frame_read_reg): Remove extra arguments.
9878
9879 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9880
9881 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9882 made non-static.
9883 (execute_stack_op): All callers updated.
9884 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9885 * dwarf2loc.c (find_location_expression): New function.
9886 (dwarf_expr_frame_base): Call it.
9887 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9888 (dwarf2_tracepoint_var_ref): New function, broken out from
9889 locexpr_tracepoint_var_ref.
9890 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9891 Make static.
9892 (loclist_read_variable, loclist_read_needs_frame): New functions.
9893 (loclist_describe_location, loclist_tracepoint_var_ref): New
9894 functions.
9895 (dwarf2_loclist_funcs): New struct location_funcs.
9896 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9897 (struct dwarf2_locexpr_baton): Add comments.
9898 (dwarf2_loclist_funcs): New extern.
9899 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9900 base_address and base_known.
9901 (dwarf_loc_buffer): New variable.
9902 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9903 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9904 (dwarf2_has_info): Initialize dwarf_loc_offset.
9905 (dwarf2_build_psymtabs): Read in .debug_loc.
9906 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9907 DWARF_LOC_SIZE.
9908 (psymtab_to_symtab_1): Likewise. Move base address calculation
9909 here, from...
9910 (dwarf2_get_pc_bounds): ... here. Use the base address from
9911 cu_header.
9912 (dwarf2_symbol_mark_computed): Handle location lists.
9913
9914 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9915
9916 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9917 if the linkage name demangled successfully.
9918
9919 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9920
9921 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9922 disassmbly_flavour): Removed.
9923
9924 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9925
9926 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9927
9928 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9929
9930 2003-04-12 Andrew Cagney <cagney@redhat.com>
9931
9932 * frame.h (struct frame_info): Move definition from here ...
9933 * frame.c (struct frame_info): ... to here.
9934
9935 2003-04-12 Andrew Cagney <cagney@redhat.com>
9936
9937 * gdbthread.h (save_infrun_state): Delete parameter
9938 "prev_func_start".
9939 (struct thread_info): Delete field "prev_func_start".
9940 (load_infrun_state): Ditto.
9941 * thread.c (load_infrun_state, save_infrun_state): Update.
9942 * infrun.c (prev_func_start): Delete variable.
9943 (context_switch, init_wait_for_inferior): Update.
9944 (stop_stepping, keep_going): Update.
9945
9946 2003-04-12 Andrew Cagney <cagney@redhat.com>
9947
9948 * gdbarch.sh: Add missing opaque declarations.
9949 * gdbarch.h: Regnerate.
9950 * symtab.h: Add missing opaque declarations.
9951 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9952 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9953 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9954 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9955 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9956 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9957 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9958 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9959 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9960 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9961 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9962 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9963 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9964
9965 2003-04-11 Andrew Cagney <cagney@redhat.com>
9966
9967 * frame.c (get_frame_id): Return this frame's "id".
9968 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9969 function start.
9970 (legacy_saved_regs_this_id): Replace function body with
9971 internal-error.
9972 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9973 FRAME_OBSTACK_ZALLOC.
9974 (create_new_frame): Mark the frame ID as valid.
9975
9976 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9977
9978 * Makefile.in (libbfd_h): Added missing setting.
9979 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9980 according to the selected ABI.
9981
9982 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9983
9984 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9985
9986 2003-04-11 Andrew Cagney <cagney@redhat.com>
9987
9988 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9989 SAVED_PC_AFTER_CALL.
9990 * gdbarch.h, gdbarch.c: Regenerate.
9991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9992 * x86-64-tdep.c (x86_64_init_abi): Update.
9993 * vax-tdep.c (vax_gdbarch_init): Update.
9994 * v850-tdep.c (v850_gdbarch_init): Update.
9995 * sparc-tdep.c (sparc_gdbarch_init): Update.
9996 * sh-tdep.c (sh_gdbarch_init): Update.
9997 * s390-tdep.c (s390_gdbarch_init): Update.
9998 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9999 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10001 * mips-tdep.c (mips_gdbarch_init): Update.
10002 * mcore-tdep.c (mcore_gdbarch_init): Update.
10003 * m68k-tdep.c (m68k_gdbarch_init): Update.
10004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10005 * ia64-tdep.c (ia64_gdbarch_init): Update.
10006 (ia64_saved_pc_after_call): Update declaration.
10007 * i386ly-tdep.c (i386lynx_init_abi): Update.
10008 * i386-tdep.c (i386_gdbarch_init): Update.
10009 * hppa-tdep.c (hppa_gdbarch_init): Update.
10010 * h8300-tdep.c (h8300_gdbarch_init): Update.
10011 * frv-tdep.c (frv_gdbarch_init): Update.
10012 * cris-tdep.c (cris_gdbarch_init): Update.
10013 * avr-tdep.c (avr_gdbarch_init): Update.
10014 * arm-tdep.c (arm_gdbarch_init): Update.
10015 * alpha-tdep.c (alpha_gdbarch_init): Update.
10016 * ns32knbsd-nat.c (frame_num_args): Update.
10017 * ns32k-tdep.c (umax_frame_num_args): Update.
10018 * mips-tdep.c (mips_init_frame_pc_first): Update.
10019 * infrun.c (step_over_function): Update.
10020 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10021 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10022 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10023 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10024 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10025 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10026 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10027 * arch-utils.c (init_frame_pc_default): Update.
10028 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10029 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10030 declaration.
10031
10032 2003-04-11 Andrew Cagney <cagney@redhat.com>
10033
10034 * i387-tdep.c: Update copyright.
10035 (i387_to_double): Delete function.
10036 (double_to_i387): Delete function.
10037
10038 2003-04-10 Andrew Cagney <cagney@redhat.com>
10039
10040 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10041 frame's function's address. Simplify.
10042 (d10v_frame_unwind_cache): Check that the frame's function is
10043 non-zero.
10044
10045 2003-04-10 Jim Blandy <jimb@redhat.com>
10046
10047 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10048 call to set_gdbarch_deprecated_push_arguments.
10049
10050 2003-04-10 Andrew Cagney <cagney@redhat.com>
10051
10052 * frame.c (fprint_frame_id): New function.
10053 (fprint_frame_type, fprint_frame): New function.
10054 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10055 (create_sentinel_frame, get_frame_id): Ditto.
10056 (frame_id_p, frame_id_eq): Ditto.
10057 (frame_id_inner, create_new_frame): Ditto.
10058 (legacy_get_prev_frame, get_prev_frame): Ditto.
10059 (deprecated_update_frame_pc_hack): Ditto.
10060 (frame_register_unwind): Ditto.
10061 (deprecated_update_frame_base_hack): Ditto.
10062
10063 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10064
10065 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10066 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10067 frame_chain function.
10068 * Makefile.in: Add dependencies due to above change.
10069
10070 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10071
10072 * blockframe.c (legacy_frame_chain_valid): Move call to
10073 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10074 inside_entry_file.
10075
10076 2003-04-09 Andrew Cagney <cagney@redhat.com>
10077
10078 * frame.h (struct frame_id): Replace "pc" and "base" with
10079 "stack_addr" and "code_addr". Update comments.
10080 (frame_id_build): Update parameter names and comment.
10081 (struct frame_info): Replace "id_p" and "id" with "this_id".
10082 * dummy-frame.c (dummy_frame_this_id): Update.
10083 * breakpoint.c (print_one_breakpoint): Update.
10084 * frame.c (get_frame_id): Update.
10085 (get_frame_base, frame_id_build): Update.
10086 (create_sentinel_frame, legacy_get_prev_frame): Update.
10087 (deprecated_update_frame_base_hack): Update.
10088 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10089 (frame_id_inner): Ditto.
10090
10091 2003-04-09 Andrew Cagney <cagney@redhat.com>
10092
10093 * defs.h (gdb_print_host_address): Make "addr" parameter a
10094 pointer constant.
10095 * utils.c (gdb_print_host_address): Update.
10096
10097 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10098
10099 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10100 register number for R0 is 0.
10101
10102 2003-04-09 J. Brobecker <brobecker@gnat.com>
10103
10104 * frame.h (struct gdbarch): Add opaque structure definition
10105 to avoid a compilation warning on LynxOS 4.0.
10106
10107 2003-04-09 Andrew Cagney <cagney@redhat.com>
10108
10109 * frame.h (struct frame_info): Delete field "pc". Replace
10110 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10111 structure.
10112 * frame.c (frame_pc_unwind): Update.
10113 (create_sentinel_frame): Do not set "pc".
10114 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10115 (get_frame_pc): Call frame_pc_unwind.
10116 (deprecated_update_frame_pc_hack): Update.
10117 (create_new_frame): Use "pc" not "->pc".
10118
10119 2003-04-09 Andrew Cagney <cagney@redhat.com>
10120
10121 * frame.c (get_frame_id): Eliminate code updating "frame".
10122 (legacy_get_prev_frame): Ditto.
10123 (get_frame_base): Return id.base directly.
10124 (deprecated_update_frame_base_hack): Update "id.base".
10125 * frame.h (struct frame_info): Delete field "frame".
10126
10127 2003-04-09 Andrew Cagney <cagney@redhat.com>
10128
10129 * NEWS: Mention that the "Sequent family" is obsolete.
10130 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10131 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10132 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10133 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10134 * config/i386/tm-ptx4.h: Obsolete file.
10135 * config/i386/tm-ptx.h: Obsolete file.
10136 * symm-tdep.c: Obsolete file.
10137 * config/i386/symmetry.mt: Obsolete file.
10138 * config/i386/tm-symmetry.h: Obsolete file.
10139 * symm-nat.c: Obsolete file.
10140 * config/i386/nm-symmetry.h: Obsolete file.
10141 * config/i386/xm-symmetry.h: Obsolete file.
10142 * config/i386/symmetry.mh: Obsolete file.
10143 * config/i386/nm-ptx4.h: Obsolete file.
10144 * config/i386/ptx4.mh: Obsolete file.
10145 * config/i386/ptx.mt: Obsolete file.
10146 * config/i386/ptx.mh: Obsolete file.
10147 * config/i386/xm-ptx4.h: Obsolete file.
10148 * config/i386/xm-ptx.h: Obsolete file.
10149
10150 2003-04-09 Andrew Cagney <cagney@redhat.com>
10151
10152 Obsolete mips*-*-mach3*.
10153 * NEWS: Mention that mips*-*-mach3* is obsolete.
10154 * m3-nat.c: Obsolete file.
10155 * config/nm-m3.h: Obsolete file.
10156 * config/mips/tm-mipsm3.h: Obsolete file.
10157 * config/mips/mipsm3.mt: Obsolete file.
10158 * config/mips/mipsm3.mh: Obsolete file.
10159 * config/mips/xm-mipsm3.h: Obsolete file.
10160 * mipsm3-nat.c: Obsolete file.
10161 * configure.host: Obsolete mips-dec-mach3*.
10162 * configure.tgt: Obsolete mips*-*-mach3*.
10163
10164 2003-04-09 Andrew Cagney <cagney@redhat.com>
10165
10166 * doublest.h: Update copyright.
10167 (deprecated_store_floating, deprecated_extract_floating): Rename
10168 store_floating and extract_floating. Update comments.
10169 * doublest.c: Update copyright.
10170 (extract_floating_by_length): Replace extract_floating.
10171 (store_floating_by_length): Replace store_floating.
10172 (deprecated_extract_floating): New function.
10173 (deprecated_store_floating): New function.
10174 (extract_typed_floating): Call extract_floating_by_length.
10175 (store_typed_floating): Call store_floating_by_length.
10176 * x86-64-tdep.c (x86_64_store_return_value): Update.
10177 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10178 (sh64_extract_return_value): Update.
10179 (sh_sh4_register_convert_to_virtual): Update.
10180 (sh_sh64_register_convert_to_virtual): Update.
10181 (sh_sh4_register_convert_to_raw): Update.
10182 (sh_sh64_register_convert_to_raw): Update.
10183 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10184 (rs6000_register_convert_to_raw): Update.
10185 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10186 (ia64_register_convert_to_raw): Update.
10187 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10188 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10189 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10190 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10191 (alpha_register_convert_to_raw): Update.
10192
10193 2003-04-08 Andrew Cagney <cagney@redhat.com>
10194
10195 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10196 * gdbarch.h, gdbarch.c: Re-generate.
10197 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10198 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10199 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10200 conditionally, use frame_pc_unwind as an alternative. Add
10201 comments.
10202 * arch-utils.c (init_frame_pc_default): Only call
10203 SAVED_PC_AFTER_CALL when available.
10204
10205 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10206
10207 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10208 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10209 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10210 (start_remote): Ditto.
10211 (handle_inferior_event): Ditto.
10212 (save_inferior_status): Ditto.
10213 (restore_inferior_status): Ditto.
10214 * infcmd.c (attach_command): Ditto.
10215 * fork-child.c (startup_inferior): Ditto.
10216 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10217 * alpha-tdep.c (heuristic_proc_start): Ditto.
10218 * mips-tdep.c (heuristic_proc_start): Ditto.
10219 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10220 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10221 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10222 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10223 * remote-vx.c (vx_create_inferior): Ditto.
10224
10225 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10226
10227 * infrun.c (stop_soon_quietly): Make it an enum, to better
10228 override the default behavior of handle_inferior_event.
10229 (clear_proceed_status): Update uses of stop_soon_quietly to
10230 reflect that it is now an enum.
10231 (start_remote): Ditto.
10232 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10233 is set to handle the new GNU/Linux kernel behavior for
10234 attach/sigstop. Update uses of stop_soon_quietly.
10235 * inferior.h (enum stop_kind): New enum.
10236 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10237 Reset normal handle_inferior_event behavior, afterwards.
10238 * fork-child.c (startup_inferior): Update.
10239 * alpha-tdep.c (heuristic_proc_start): Update.
10240 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10241 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10242 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10243 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10244 * remote-vx.c (vx_create_inferior): Update.
10245 * mips-tdep.c (heuristic_proc_start): Update.
10246
10247 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10248
10249 * disasm.c (dump_insns): Move variables inside loop, or they will
10250 be freed more than once, causing wild memory corruptions.
10251 (gdb_disassembly): Look for the substring "-thread",
10252 instead of "-threads" in the target name, to make sure to find
10253 the 'multi-thread' target. Also, make sure we do the right thing
10254 with the "core" target.
10255
10256 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10257
10258 * mips-tdep.c (mips_print_fp_register): New function, created from
10259 do_fp_register_row(). Registers are now (also) printed as hex.
10260 Only one register is printed per row.
10261 (mips_print_register, do_fp_register_row): Print floating point
10262 registers with mips_print_fp_register().
10263
10264 2003-04-06 Andrew Cagney <cagney@redhat.com>
10265
10266 * valprint.h (inspect_it): Add extern declaration.
10267 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10268 (selectors_info, classes_info): Ditto.
10269 (find_objc_msgcall): Fix indentation.
10270 (objc_printstr): Delete extern declarations.
10271
10272 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10273
10274 2003-04-06 Andrew Cagney <cagney@redhat.com>
10275
10276 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10277 Update comment.
10278 * frame.c (legacy_saved_regs_this_id): Update.
10279 (legacy_get_prev_frame): Update.
10280 * xstormy16-tdep.c: Update comment.
10281 * sparc-tdep.c (sparc_frame_chain): Update comment.
10282 * blockframe.c (legacy_frame_chain_valid): Update.
10283
10284 2003-04-06 Andrew Cagney <cagney@redhat.com>
10285
10286 * valprint.c (val_print_type_code_int): Delete #ifdef
10287 PRINT_TYPELESS_INTEGER code.
10288
10289 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10290 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10291 multi-arch definition.
10292 * gdbarch.h: Re-generate.
10293
10294 2003-04-05 Andrew Cagney <cagney@redhat.com>
10295
10296 Eliminate FRAME_FIND_SAVED_REGS.
10297 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10298 Change FSR parameter to a pointer.
10299 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10300 Assume FSR parameter is a pointer.
10301 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10302 Make fsr a pointer.
10303 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10304 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10305 saved_regs a pointer.
10306 (hppa_frame_saved_pc): Ditto.
10307 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10308 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10309 pointer.
10310 (restore_pc_queue): Make fsr a pointer.
10311 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10312 (hppa_frame_chain): Make saved_regs a pointer, call
10313 hppa_frame_init_saved_regs.
10314 * sparc-tdep.c: Include "gdb_assert.h".
10315 (sparc_frame_find_saved_regs): Replace internal_error with
10316 gdb_assert.
10317 * remote-vxsparc.c (vx_read_register): Delete reference to
10318 FRAME_FIND_SAVED_REGS.
10319 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10320 * gdbarch.h: Regenerate.
10321 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10322 (deprecated_get_frame_saved_regs): Delete declaration.
10323 (struct frame_saved_regs): Delete definition.
10324 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10325 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10326 (hppa_frame_find_saved_regs): Delete declaration.
10327 (FRAME_FIND_SAVED_REGS): Delete macro.
10328 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10329 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10330 FRAME_FIND_SAVED_REGS in comment.
10331
10332 2003-04-05 Andrew Cagney <cagney@redhat.com>
10333
10334 * frame.c (frame_func_unwind, get_frame_func): New functions.
10335 * frame.h (get_frame_func, frame_func_unwind): Declare.
10336 (struct frame_info): Add field "prev_func" for caching the
10337 previous frame's function address.
10338 * arm-tdep.c (arm_frameless_function_invocation): Combine
10339 get_pc_function_start and get_frame_pc into get_frame_func.
10340 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10341 (sh64_nofp_frame_init_saved_regs): Ditto.
10342 * s390-tdep.c (s390_function_start): Ditto.
10343 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10344 (rs6000_frameless_function_invocation): Ditto.
10345 (rs6000_frame_saved_pc): Ditto.
10346 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10347 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10348 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10349 (i386_frame_init_saved_regs): Ditto.
10350 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10351 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10352 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10353 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10354 * blockframe.c (frameless_look_for_prologue): Ditto.
10355
10356 2003-04-05 Andrew Cagney <cagney@redhat.com>
10357
10358 * frame.c (legacy_get_prev_frame): Link prev to next at the
10359 function start. Update comments.
10360
10361 2003-04-05 Andrew Cagney <cagney@redhat.com>
10362
10363 * frame.c (get_frame_id): Update comment.
10364 (legacy_get_prev_frame): Update comment.
10365 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10366 * gdbarch.h: Regenerate.
10367 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10368 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10369
10370 2003-04-05 Andrew Cagney <cagney@redhat.com>
10371
10372 * stack.c (print_frame_info): Use get_frame_pc.
10373
10374 2003-04-04 Andrew Cagney <cagney@redhat.com>
10375
10376 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10377 the frame's type from the unwinder.
10378 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10379 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10380 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10381 (get_frame_base_address): Use get_frame_type.
10382 (get_frame_locals_address, get_frame_args_address): Ditto.
10383 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10384 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10385 (struct frame_info): Add comment explaining why the frame contains
10386 a "type" field.
10387 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10388 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10389 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10390 NORMAL_FRAME.
10391 * frame-unwind.h: Include "frame.h".
10392 (struct frame_unwind): Add "type" field.
10393 * Makefile.in (frame_unwind_h): Add $(frame_h).
10394
10395 2003-04-04 Andrew Cagney <cagney@redhat.com>
10396
10397 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10398 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10399 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10400 get_frame_base.
10401 (d10v_unwind_dummy_id): Use frame_id_build.
10402 * frame.c (find_frame_sal): Use get_frame_pc.
10403 (create_new_frame): Use deprecated_update_frame_pc_hack and
10404 deprecated_update_frame_base_hack.
10405 (create_sentinel_frame): Add comment about ->pc going away.
10406 (get_prev_frame): Add comment about ->pc going away.
10407 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10408 frame_id_build, deprecated_update_frame_pc_hack and
10409 deprecated_update_frame_base_hack.
10410 (select_frame): Use get_frame_pc.
10411 (legacy_saved_regs_this_id): Use frame_id_build.
10412
10413 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10414
10415 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10416 signed integer case.
10417 (classify_argument): Handle enumerations and references.
10418
10419 2003-04-04 Andrew Cagney <cagney@redhat.com>
10420
10421 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10422 ID to NULL.
10423
10424 2003-04-01 Adam Fedor <fedor@gnu.org>
10425
10426 * gdb/objc-lang.c (selectors_info): Replace calls to
10427 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10428 SYMBOL_NATURAL_NAME.
10429 (classes_info, find_methods): Likewise.
10430
10431 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10432
10433 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10434 ``mach'' to the value determined by bfd_default_set_arch_mach().
10435
10436 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10437
10438 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10439 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10440 (mi-cmd-file.o): Update dependencies.
10441
10442 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10443
10444 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10445 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10446
10447 2003-04-01 Adam Fedor <fedor@gnu.org>
10448
10449 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10450 * language.h (struct language_defn): Add la_demangle.
10451 (language_demangle): Declare.
10452 * language.c (language_demangle): New function.
10453 (unk_lang_demangle): Likewise.
10454 (unknown_language_defn, auto_language_defn, local_language_defn):
10455 Add ukn_lang_demangle.
10456 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10457 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10458 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10459 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10460 * jv-lang.c (java_demangle): New function
10461 (java_language_defn): Use it for la_demangle element.
10462 * objc-lang.c (objc_demangle): Add options argument
10463 (objc_language_defn): Use objc_demangle for la_demangle element.
10464 * maint.c (maintenance_demangle): Replace switch with
10465 call to language_demangle.
10466 * utils.c (fprintf_symbol_filtered): Likewise.
10467
10468 2003-04-01 Andrew Cagney <cagney@redhat.com>
10469
10470 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10471 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10472 PRINT_TYPELESS_INTEGER.
10473 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10474 PUSH_RETURN_ADDRESS.
10475
10476 2003-04-01 Andrew Cagney <cagney@redhat.com>
10477
10478 * Makefile.in (d10v-tdep.o): Update dependencies.
10479 * d10v-tdep.c: Include "frame-base.h".
10480 (d10v_frame_unwind): Make constant.
10481 (d10v_frame_base_address): New function.
10482 (d10v_frame_base): New variable.
10483 (d10v_gdbarch_init): Set frame_base default.
10484 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10485 comment for base.
10486 (d10v_frame_unwind_cache): Set and use "prev_sp".
10487 (d10v_frame_this_id): Use the previous frame's inner most stack
10488 address and this frame's func address for the frame ID. Use
10489 frame_id_build. Don't analyze beyond the current instruction.
10490
10491 2003-04-01 Andrew Cagney <cagney@redhat.com>
10492
10493 * frame.h (get_frame_locals_address, get_frame_args_address):
10494 Refer to the base address, instead of the address of the first
10495 local or parameter.
10496
10497 2003-04-01 Andrew Cagney <cagney@redhat.com>
10498
10499 Add frame debug info addresses:
10500 * frame-base.c: New file.
10501 * frame-base.h: New file.
10502 * frame.h (struct frame_base): Add opaque declaration.
10503 (get_frame_base): Update comment.
10504 (get_frame_base_address): Declare.
10505 (get_frame_locals_address): Declare.
10506 (get_frame_args_address): Declare.
10507 (struct frame_info): Add "base" and "base_cache". Update
10508 comments on the unwinder.
10509 * frame.c: Include "frame-base.h".
10510 (get_frame_locals_address): New function.
10511 (get_frame_base_address): New function.
10512 (get_frame_args_address): New function.
10513 * findvar.c (read_var_value): Use get_frame_locals_address and
10514 get_frame_args_address.
10515 * stack.c (frame_info): Use get_frame_locals_address and
10516 get_frame_args_address.
10517 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10518 moved to "frame-base.c".
10519 * printcmd.c (print_frame_nameless_args): Ditto.
10520 * symtab.h (address_class): Update comments.
10521 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10522 get_frame_base_address.
10523 * dwarf2expr.c (execute_stack_op): Ditto.
10524 * Makefile.in (frame_base_h): Define.
10525 (frame.o): Update dependencies.
10526 (frame-base.o): Add dependencies.
10527 (SFILES): Add frame-base.c.
10528 (COMMON_OBS): Add frame-base.o.
10529
10530 2003-04-01 Andrew Cagney <cagney@redhat.com>
10531
10532 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10533 CALL_DUMMY_LENGTH): Ditto.
10534 * gdbarch.c: Re-generate.
10535 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10536 (CALL_DUMMY_LENGTH): Delete macro.
10537 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10538 * arm-tdep.c (arm_gdbarch_init): Ditto.
10539 * avr-tdep.c (avr_gdbarch_init): Ditto.
10540 * cris-tdep.c (cris_gdbarch_init): Ditto.
10541 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10542 * frv-tdep.c (frv_gdbarch_init): Ditto.
10543 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10544 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10545 * i386-tdep.c (i386_gdbarch_init): Ditto.
10546 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10548 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10549 * mips-tdep.c (mips_gdbarch_init): Ditto.
10550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10551 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10552 * s390-tdep.c (s390_gdbarch_init): Ditto.
10553 * sh-tdep.c (sh_gdbarch_init): Ditto.
10554 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10555 * v850-tdep.c (v850_gdbarch_init): Ditto.
10556 * vax-tdep.c (vax_gdbarch_init): Ditto.
10557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10558
10559 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10560
10561 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10562
10563 2003-04-01 Andrew Cagney <cagney@redhat.com>
10564
10565 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10566 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10567 * gdbarch.h, gdbarch.c: Re-generate.
10568 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10569 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10570 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10571 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10572 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10573 * infcmd.c (run_stack_dummy): Simplify assuming
10574 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10575 * infrun.c (handle_inferior_event): Ditto.
10576 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10577 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10578 * arm-tdep.c (arm_gdbarch_init): Ditto.
10579 * avr-tdep.c (avr_gdbarch_init): Ditto.
10580 * cris-tdep.c (cris_gdbarch_init): Ditto.
10581 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10582 * frv-tdep.c (frv_gdbarch_init): Ditto.
10583 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10584 * i386-tdep.c (i386_gdbarch_init): Ditto.
10585 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10587 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10588 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10589 * mips-tdep.c (mips_gdbarch_init): Ditto.
10590 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10591 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10592 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10593 * s390-tdep.c (s390_gdbarch_init): Ditto.
10594 * sh-tdep.c (sh_gdbarch_init): Ditto.
10595 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10596 * v850-tdep.c (v850_gdbarch_init): Ditto.
10597 * vax-tdep.c (vax_gdbarch_init): Ditto.
10598 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10599
10600 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * symfile.c (symfile_relocate_debug_section): Update call to
10603 bfd_simple_get_relocated_section_contents.
10604
10605 2003-03-31 Andrew Cagney <cagney@redhat.com>
10606
10607 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10608 * gdbarch.h, gdbarch.c: Regenerate.
10609 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10610 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10611 available.
10612 * frame.h (generic_fix_call_dummy): Delete declaration.
10613 * dummy-frame.h: Update comment.
10614 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10616 fix_call_dummy.
10617 * sh-tdep.c (sh_gdbarch_init): Ditto.
10618 * s390-tdep.c (s390_gdbarch_init): Ditto.
10619 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10620 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10622 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10623 * i386-tdep.c (i386_gdbarch_init): Ditto.
10624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10625 * frv-tdep.c (frv_gdbarch_init): Ditto.
10626 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10627 * cris-tdep.c (cris_gdbarch_init): Ditto.
10628 * avr-tdep.c (avr_gdbarch_init): Ditto.
10629 * arm-tdep.c (arm_gdbarch_init): Ditto.
10630
10631 2003-03-31 J. Brobecker <brobecker@gnat.com>
10632
10633 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10634 (INIT_FRAME_AP): Likewise.
10635 (EXTRA_FRAME_INFO): Likewise.
10636
10637 2003-03-31 Andrew Cagney <cagney@redhat.com>
10638
10639 * gdbarch.sh: Include "symfile.h".
10640 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10641 * gdbarch.h, gdbarch.c: Re-generate.
10642 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10644 call_dummy_address, the default is at entry_point_address.
10645 * v850-tdep.c (v850_gdbarch_init): Ditto.
10646 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10647 * sh-tdep.c (sh_gdbarch_init): Ditto.
10648 * s390-tdep.c (s390_gdbarch_init): Ditto.
10649 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10650 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10651 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10652 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10653 * i386-tdep.c (i386_gdbarch_init): Ditto.
10654 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10655 * frv-tdep.c (frv_gdbarch_init): Ditto.
10656 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10657 * cris-tdep.c (cris_gdbarch_init): Ditto.
10658 * arm-tdep.c (arm_gdbarch_init): Ditto.
10659
10660 2003-03-31 Andrew Cagney <cagney@redhat.com>
10661
10662 * gdbarch.sh (CALL_DUMMY_P): Delete.
10663 * gdbarch.h, gdbarch.c: Re-generate.
10664 * inferior.h (CALL_DUMMY_P): Delete macro.
10665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10666 * vax-tdep.c (vax_gdbarch_init): Update.
10667 * v850-tdep.c (v850_gdbarch_init): Update.
10668 * sparc-tdep.c (sparc_gdbarch_init): Update.
10669 * sh-tdep.c (sh_gdbarch_init): Update.
10670 * s390-tdep.c (s390_gdbarch_init): Update.
10671 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10672 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10673 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10674 * mips-tdep.c (mips_gdbarch_init): Update.
10675 * mcore-tdep.c (mcore_gdbarch_init): Update.
10676 * m68k-tdep.c (m68k_gdbarch_init): Update.
10677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10678 * ia64-tdep.c (ia64_gdbarch_init): Update.
10679 * i386-tdep.c (i386_gdbarch_init): Update.
10680 * h8300-tdep.c (h8300_gdbarch_init): Update.
10681 * frv-tdep.c (frv_gdbarch_init): Update.
10682 * d10v-tdep.c (d10v_gdbarch_init): Update.
10683 * cris-tdep.c (cris_gdbarch_init): Update.
10684 * breakpoint.c (deprecated_frame_in_dummy): Update.
10685 * avr-tdep.c (avr_gdbarch_init): Update.
10686 * alpha-tdep.c (alpha_gdbarch_init): Update.
10687 * arm-tdep.c (arm_gdbarch_init): Update.
10688 * dummy-frame.c (dummy_frame_this_id): Update comments.
10689 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10690 * frame.c (legacy_get_prev_frame): Ditto.
10691 * valops.c (call_function_by_hand): Delete function.
10692 (hand_function_call): Rename to call_function_by_hand
10693
10694 2003-03-30 Andrew Cagney <cagney@redhat.com>
10695
10696 2002-11-10 Klee Dienes <kdienes@apple.com>
10697 * value.h (struct value): Update comment.
10698
10699 2003-03-30 Andrew Cagney <cagney@redhat.com>
10700
10701 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10702 D10V_FP_REGNUM.
10703 (d10v_gdbarch_init): Do not set fp_regnum.
10704
10705 * frame.c (get_frame_base): Force ID initialization.
10706 (get_prev_frame): Move computation of the frame ID from here ...
10707 (get_frame_id): ... to here.
10708 (legacy_get_prev_frame): Mark the frame ID as valid.
10709 * frame.h (struct frame_info): Add field "id_p".
10710
10711 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10712
10713 * i386-tdep.c (i386_store_struct_return): Removed.
10714 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10715
10716 2003-03-30 Andrew Cagney <cagney@redhat.com>
10717
10718 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10719 * gdbarch.h, gdbarch.c: Regenerate.
10720 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10722 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10723 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10724 * i386-tdep.c (i386_gdbarch_init): Ditto.
10725 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10726 * cris-tdep.c (cris_gdbarch_init): Ditto.
10727 * vax-tdep.c (vax_gdbarch_init): Ditto.
10728 * s390-tdep.c (s390_gdbarch_init): Ditto.
10729 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10730 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10731 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10732 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10733 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10734 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10735 * sparc-tdep.c (sparc_gdbarch_init): Update.
10736 * sh-tdep.c (sh_gdbarch_init): Update.
10737 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10738 * mips-tdep.c (mips_gdbarch_init): Update.
10739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10740 * ia64-tdep.c (ia64_gdbarch_init): Update.
10741 * frv-tdep.c (frv_gdbarch_init): Update.
10742 * avr-tdep.c (avr_gdbarch_init): Update.
10743 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10744 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10745 instead of when push_dummy_call is not available.
10746
10747 2003-03-30 Andrew Cagney <cagney@redhat.com>
10748
10749 * infttrace.c: Include "gdbthread.h".
10750 (parent_attach_all): Fix function signature.
10751 (call_ptrace): Update call.
10752 * Makefile.in (infttrace.o): Update dependencies.
10753
10754 2003-03-30 Andrew Cagney <cagney@redhat.com>
10755
10756 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10757 PUSH_RETURN_ADDRESS.
10758 * gdbarch.h, gdbarch.c: Regenerate.
10759 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10760 * x86-64-tdep.c (x86_64_init_abi): Update.
10761 * v850-tdep.c (v850_gdbarch_init): Update.
10762 * sparc-tdep.c (sparc_gdbarch_init): Update.
10763 * sh-tdep.c (sh_gdbarch_init): Update.
10764 * s390-tdep.c (s390_gdbarch_init): Update.
10765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10766 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10767 * mips-tdep.c (mips_gdbarch_init): Update.
10768 * mcore-tdep.c (mcore_gdbarch_init): Update.
10769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10770 * ia64-tdep.c (ia64_gdbarch_init): Update.
10771 * i386-tdep.c (i386_gdbarch_init): Update.
10772 * h8300-tdep.c (h8300_gdbarch_init): Update.
10773 * frv-tdep.c (frv_gdbarch_init): Update.
10774 * cris-tdep.c (cris_gdbarch_init): Update.
10775 * avr-tdep.c (avr_gdbarch_init): Update.
10776 * arm-tdep.c (arm_gdbarch_init): Update.
10777 * valops.c (hand_function_call): Update.
10778
10779 2003-03-29 Andrew Cagney <cagney@redhat.com>
10780
10781 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10782 sizeof_call_dummy_words.
10783 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10784 define.
10785 * gdbarch.h: Regenerate.
10786
10787 2003-03-29 Andrew Cagney <cagney@redhat.com>
10788
10789 * infttrace.h: New file.
10790 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10791 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10792 (hpread_read_doc_function_type): Detect an initialized type1.
10793 (hpread_quick_traverse): Initialize mod_name_string.
10794 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10795 (som_solib_get_solib_by_pc): Declare.
10796 (so_lib_thread_start_addr): Declare.
10797 (no_shared_libraries): Declare.
10798 * somread.c (init_import_symbols): Make static. Add forward
10799 declaration.
10800 * config/pa/nm-hppah.h: Include "infttrace.h" for
10801 parent_attach_all.
10802 (hppa_insert_hw_watchpoint): Declare.
10803 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10804 * hppah-nat.c: Include "gdb_string.h".
10805 (parent_attach_all): Delete extern declaration, moved to
10806 "infttrace.h".
10807 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10808 int.
10809 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10810 * Makefile.in (infttrace_h): Define.
10811 (hpread.o): Update dependencies.
10812 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10813 * hppa-hpux-tdep.c: Include "gdb_string.h".
10814 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10815 * infrun.c (handle_inferior_event): Always initialize
10816 stepped_after_stopped_by_watchpoint. Add default and remove
10817 fallthrough in switch statement.
10818 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10819 parameter to int.
10820 (hppa_remove_hw_watchpoint): Ditto.
10821
10822 2003-03-29 Andrew Cagney <cagney@redhat.com>
10823
10824 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10825 offset.
10826
10827 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10828
10829 * arm-tdep.c (arm_push_arguments): Delete.
10830 (struct stack_item): New type.
10831 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10832 (arm_store_struct_return): Delte.
10833 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10834 arm_push_arguments or arm_store_struct_return.
10835
10836 2003-03-28 Andrew Cagney <cagney@redhat.com>
10837
10838 * Makefile.in (d10v-tdep.o): Update dependencies.
10839 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10840 * d10v-tdep.c: Include "remote.h".
10841 (target_resume_hook): Delete extern declaration.
10842 (target_wait_loop_hook): Ditto.
10843 (tdisassemble_command): Eliminate assignment in "if" conditional.
10844 (d10v_ts2_register_sim_regno): Eliminate call to
10845 legacy_register_sim_regno.
10846 (d10v_ts3_register_sim_regno): Ditto.
10847
10848 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10849
10850 * thread.c: Reindented.
10851 * lin-lwp.c: Ditto.
10852 * linux-proc.c: Ditto.
10853
10854 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10855
10856 * MAINTAINERS (write after approval): Add myself.
10857
10858 2003-03-27 Theodore A. Roth <troth@openavr.org>
10859
10860 * objc-exp.y: Add missing semi-colons.
10861
10862 2003-03-27 Andrew Cagney <cagney@redhat.com>
10863
10864 * regcache.c (write_sp): Delete function and references.
10865 * inferior.h (write_sp): Delete declaration.
10866 * valops.c (hand_function_call): Replace write_sp with
10867 TARGET_WRITE_SP.
10868 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10869 (sparc_pop_frame): Ditto.
10870
10871 2003-03-27 Andrew Cagney <cagney@redhat.com>
10872
10873 * NEWS: Mention removal of support for hppa*-*-bsd* and
10874 hppa*-*-osf* natives, and hppa*-*-pro* target.
10875 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10876 * config/pa/xm-pa.h: Obsolete file.
10877 * config/pa/xm-hppab.h: Obsolete file.
10878 * config/pa/nm-hppab.h: Obsolete file.
10879 * config/pa/tm-hppab.h: Obsolete file.
10880 * config/pa/tm-hppao.h: Obsolete file.
10881 * config/pa/nm-hppao.h: Obsolete file.
10882 * config/pa/tm-pro.h: Obsolete file.
10883 * config/pa/hppaosf.mt: Obsolete file.
10884 * config/pa/hppaosf.mh: Obsolete file.
10885 * config/pa/hppapro.mt: Obsolete file.
10886 * config/pa/hppabsd.mt: Obsolete file.
10887 * config/pa/hppabsd.mh: Obsolete file.
10888 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10889 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10890 hppa*-*-osf*.
10891
10892 2003-03-27 Andrew Cagney <cagney@redhat.com>
10893
10894 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10895 push_arguments. Don't set push_return_address or write_sp.
10896 (d10v_push_dummy_call): Replace d10v_push_arguments.
10897 (d10v_push_return_address, d10v_write_sp): Delete function,
10898 handled by push_dummy_call.
10899
10900 2003-03-26 Andrew Cagney <cagney@redhat.com>
10901
10902 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10903 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10904 regcache and dummy_addr parameters.
10905 * gdbarch.h, gdbarch.c: Re-generate.
10906 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10907 available; assume it will handle stack alignment and return
10908 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10909 legacy_push_arguments.
10910 (legacy_push_arguments): Rename default_push_arguments.
10911 * value.h (legacy_push_arguments): Rename default_push_arguments.
10912 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10913 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10914 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10915 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10916 * config/i386/tm-symmetry.h: Update.
10917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10918 * x86-64-tdep.c (x86_64_init_abi): Update.
10919 * v850-tdep.c (v850_gdbarch_init): Update.
10920 * sparc-tdep.c (sparc_gdbarch_init): Update.
10921 * sh-tdep.c (sh_gdbarch_init): Update.
10922 * s390-tdep.c (s390_gdbarch_init): Update.
10923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10924 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10925 * mips-tdep.c (mips_gdbarch_init): Update.
10926 * mcore-tdep.c (mcore_gdbarch_init): Update.
10927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10928 * ia64-tdep.c (ia64_gdbarch_init): Update.
10929 * i386-tdep.c (i386_gdbarch_init): Update.
10930 * hppa-tdep.c (hppa_gdbarch_init): Update.
10931 * h8300-tdep.c (h8300_gdbarch_init): Update.
10932 * frv-tdep.c (frv_gdbarch_init): Update.
10933 * d10v-tdep.c (d10v_gdbarch_init): Update.
10934 * cris-tdep.c (cris_gdbarch_init): Update.
10935 * avr-tdep.c (avr_gdbarch_init): Update.
10936 * arm-tdep.c (arm_gdbarch_init): Update.
10937 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10938 * alpha-tdep.c (alpha_gdbarch_init): Update.
10939
10940 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * signals/signals.c (do_target_signal_to_host): Correct realtime
10943 signal range test.
10944
10945 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10948 (struct sal_chain, map_catch_names): Remove.
10949 (catch_exception_command_1): Don't call
10950 handle_gnu_4_16_catch_command.
10951
10952 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10953
10954 From Mark Dettinger <dettinge@de.ibm.com>:
10955 * dwarf2cfi.c (read_2u): Increment pointer by two.
10956
10957 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10958
10959 * signals/signals.c: Fix typos in last change.
10960
10961 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10962
10963 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10964 not already defined. Use __SIGRTMIN if available.
10965 (target_signal_from_host): Remove SIGRTMIN block.
10966 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10967 the signal is within the realtime range.
10968
10969 2003-03-25 Adam Fedor <fedor@gnu.org>
10970
10971 * Makefile.in (infrun.o): Add $(language_h)
10972 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10973 for language specific trampolines.
10974 * language.h (struct language_defn): Add skip_trampoline.
10975 (skip_language_trampoline): Declare.
10976 * language.c (unk_lang_trampoline, skip_language_trampoline):
10977 New functions.
10978 (unknown_language_defn, auto_language_defn, local_language_defn):
10979 Add ukn_lang_trampoline.
10980 * ada-lang.c (ada_language_defn): Add NULL for language
10981 specific skip_trampoline.
10982 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10983 scm-lang.c: Likewise.
10984 * objc-lang.c (objc_skip_trampoline): New function.
10985 (objc_language_defn): Add objc_skip_trampoline.
10986
10987 2003-03-25 Andrew Cagney <cagney@redhat.com>
10988
10989 * frame.c (get_prev_frame): Delay validating a frame's ID -
10990 non-NULL, didn't go backwards - until an attempt to unwind it to
10991 the previous frame.
10992
10993 2003-03-25 Andrew Cagney <cagney@redhat.com>
10994
10995 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10996 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10997 * gdbarch.h, gdbarch.c: Re-generate.
10998 * config/sparc/tm-sparc.h
10999 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11000 * sparc-tdep.c (sparc_gdbarch_init): Set
11001 deprecated_extra_stack_alignment_needed.
11002 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11004 extra_stack_alignment_needed.
11005 * v850-tdep.c (v850_gdbarch_init): Ditto.
11006 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11007 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11008 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11009 * cris-tdep.c (cris_gdbarch_init): Ditto.
11010 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11012
11013 2003-03-25 Andrew Cagney <cagney@redhat.com>
11014
11015 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11016 STORE_STRUCT_RETURN.
11017 * gdbarch.h, gdbarch.c: Regenerate.
11018 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11019 (d10v_push_arguments): Set the struct return register.
11020 (d10v_gdbarch_init): Update.
11021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11022 * x86-64-tdep.c (x86_64_init_abi): Update.
11023 * vax-tdep.c (vax_gdbarch_init): Update.
11024 * v850-tdep.c (v850_gdbarch_init): Update.
11025 * sparc-tdep.c (sparc_gdbarch_init): Update.
11026 * sh-tdep.c (sh_gdbarch_init): Update.
11027 * s390-tdep.c (s390_gdbarch_init): Update.
11028 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11029 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11030 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11031 * mips-tdep.c (mips_gdbarch_init): Update.
11032 * mcore-tdep.c (mcore_gdbarch_init): Update.
11033 * m68k-tdep.c (m68k_gdbarch_init): Update.
11034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11035 * ia64-tdep.c (ia64_gdbarch_init): Update.
11036 * i386-tdep.c (i386_gdbarch_init): Update.
11037 * hppa-tdep.c (hppa_gdbarch_init): Update.
11038 * h8300-tdep.c (h8300_gdbarch_init): Update.
11039 * frv-tdep.c (frv_gdbarch_init): Update.
11040 * cris-tdep.c (cris_gdbarch_init): Update.
11041 * avr-tdep.c (avr_gdbarch_init): Update.
11042 * arm-tdep.c (arm_gdbarch_init): Update.
11043 * alpha-tdep.c (alpha_gdbarch_init): Update.
11044
11045 2003-03-25 Andrew Cagney <cagney@redhat.com>
11046
11047 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11048 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11049 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11050 * gdbarch.h, gdbarch.c: Regenerate.
11051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11052 call_dummy_stack_adjust_p.
11053 * vax-tdep.c (vax_gdbarch_init): Ditto.
11054 * v850-tdep.c (v850_gdbarch_init): Ditto.
11055 * sh-tdep.c (sh_gdbarch_init): Ditto.
11056 * s390-tdep.c (s390_gdbarch_init): Ditto.
11057 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11058 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11059 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11060 * mips-tdep.c (mips_gdbarch_init): Ditto.
11061 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11062 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11064 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11065 * i386-tdep.c (i386_gdbarch_init): Ditto.
11066 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11067 * frv-tdep.c (frv_gdbarch_init): Ditto.
11068 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11069 * cris-tdep.c (cris_gdbarch_init): Ditto.
11070 * avr-tdep.c (avr_gdbarch_init): Ditto.
11071 * arm-tdep.c (arm_gdbarch_init): Ditto.
11072 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11073 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11074 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11075 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11076 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11077 call_dummy_stack_adjust_p.
11078 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11079 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11080 * sparc-tdep.c (sparc32_push_arguments): Update.
11081 * valops.c (hand_function_call): Update.
11082
11083 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11084
11085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11086 set_gdbarch_char_signed.
11087
11088 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11089
11090 PR cli/548
11091 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11092
11093 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11094
11095 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11096 (_initialize_arm_tdep): Don't set tm_print_insn.
11097
11098 2003-03-24 Adam Fedor <fedor@gnu.org>
11099
11100 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11101 * objc-lang.h: Add multiple inclusion protection.
11102 (start_msglist, add_msglist, end_msglist): Additional declarations.
11103
11104 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11105
11106 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11107 value was renamed to ARM_FLOAT_SOFT_FPA.
11108
11109 2003-03-23 Andrew Cagney <cagney@redhat.com>
11110
11111 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11112 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11113 * gdbarch.h, gdbarch.c: Regenerate.
11114 * valops.c (hand_function_call): Update.
11115 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11116 * frame.c (legacy_saved_regs_this_id): Update.
11117 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11118 * dummy-frame.h: Update.
11119 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11120 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11121 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11122 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11123 * config/m68k/tm-sun3.h: Update.
11124 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11126 * x86-64-tdep.c (x86_64_init_abi): Update.
11127 * vax-tdep.c (vax_gdbarch_init): Update.
11128 * v850-tdep.c (v850_gdbarch_init): Update.
11129 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11130 * sh-tdep.c (sh_gdbarch_init): Update.
11131 * s390-tdep.c (s390_gdbarch_init): Update.
11132 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11133 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11134 (frame_get_saved_regs): Update.
11135 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11136 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11137 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11138 * mips-tdep.c (mips_gdbarch_init): Update.
11139 * mcore-tdep.c (mcore_gdbarch_init): Update.
11140 * m68k-tdep.c (m68k_gdbarch_init): Update.
11141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11142 * ia64-tdep.c (ia64_gdbarch_init): Update.
11143 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11144 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11145 (i386_interix_back_one_frame): Update.
11146 * hppa-tdep.c (hppa_gdbarch_init): Update.
11147 (hppa_init_extra_frame_info): Update.
11148 * h8300-tdep.c (h8300_gdbarch_init): Update.
11149 * frv-tdep.c (frv_gdbarch_init): Update.
11150 * cris-tdep.c (cris_gdbarch_init): Update.
11151 * avr-tdep.c (avr_gdbarch_init): Update.
11152 * arm-tdep.c (arm_gdbarch_init): Update.
11153 * alpha-tdep.c (alpha_gdbarch_init): Update.
11154
11155 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11156
11157 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11158 (arm_get_fp_model): Declare.
11159 * arm-tdep.c (fp_model_strings): New string array.
11160 (arm_fp_model, current_fp_model): New variables.
11161 (arm_get_fp_model): New function.
11162 (arm_set_fp): New function.
11163 (set_fp_model_sfunc): New function.
11164 (show_fp_model): New function.
11165 (_initialize_arm_tdep): Add new command to set/show the FPU.
11166 (arm_extract_return_value): Use arm_get_fp_model.
11167 (arm_store_return_value): Likewise.
11168 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11169 to initialize the floating-point data types.
11170 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11171 model is FPA.
11172
11173 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11174
11175 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11176 the current setting of each value.
11177 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11178 new_set and new_show. Use add_setshow_cmd_full and
11179 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11180 commands and add new version as subcommands of "set/show arm".
11181
11182 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11183
11184 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11185 (set_arm_command, show_arm_command): New functions.
11186 (_initialize_arm_tdep): Add them.
11187 (num_disassembly_options): Renamed from num_flavor_options.
11188 (valid_disassembly_styles): Renamed from valid_flavors.
11189 (disassembly_style): Renamed from disassembly_flavor.
11190 (set_disassembly_style_sfunc): Renamed from
11191 set_disassembly_flavor_sfunc.
11192 (set_disassembly_style): Renamed from set_disassembly_flavor.
11193 (arm_othernames): Updated.
11194 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11195 command. Add "set/show arm disassembly" commands. Deprecate
11196 "othernames" command.
11197
11198 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11199
11200 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11201 (arm-tdep.o): Depend on elf_arm_h.
11202
11203 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11204
11205 * Makefile.in (coff_internal_h): Define.
11206 (arm-tdep.o): Update dependencies.
11207
11208 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11209
11210 * arm-tdep.c (prologue_cache): Delete.
11211 (check_prologue_cache, save_prologue_cache): Delete.
11212 (arm_scan_prologue): Don't check or update the prologue_cache.
11213 (arm_gdb_arch_init): Don't initialize it.
11214 (_initialize_arm_tdep): Likewise.
11215
11216 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11217
11218 * MAINTAINERS (tui): Maintainer of tui code.
11219
11220 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11221
11222 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11223 (i386-cygwin-tdep.o): Add dependencies.
11224 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11225 * i386-cygwin-tdep.c: New file.
11226 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11227 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11228
11229 2003-03-20 Andrew Cagney <cagney@redhat.com>
11230
11231 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11232 (handle_inferior_event): Remove code calling
11233 DYNAMIC_TRAMPOLINE_NEXTPC.
11234
11235 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11236 already has a full path.
11237
11238 * main.c (gdb_main): Return 1.
11239 (captured_main): Call error to report an invalid interpreter.
11240
11241 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11242 * alpha-osf1-tdep.c: Include "gdb_string.h".
11243
11244 2003-03-19 J. Brobecker <brobecker@gnat.com>
11245
11246 Continuing work to convert the hppa targets to multiarch partial.
11247
11248 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11249 method, now that hppa_push_dummy_frame has a conformant prototype.
11250 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11251 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11252 for the switch to multiarch partial.
11253
11254 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11255
11256 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11257 when iss is issNull.
11258
11259 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11260
11261 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11262 NUM_REGS bounds check.
11263
11264 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11265
11266 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11267 * mips-tdep.c (gdb_assert.h): Include.
11268 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11269 (mips_register_name): Handle integer registers explicitly. Add
11270 bounds checking.
11271 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11272 (mips_lsi33k_reg_names): Don't list integer registers; they're
11273 handled by mips_register_name() now.
11274 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11275 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11276 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11277 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11278 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11279
11280 2003-03-18 Andrew Cagney <cagney@redhat.com>
11281
11282 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11283 a void pointer.
11284 * gdbtypes.h (print_scalar_formatted): Update declaration.
11285 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11286
11287 2003-03-18 J. Brobecker <brobecker@gnat.com>
11288
11289 * infrun.c (observer.h): Add #include.
11290 (normal_stop): Add call to observer_notify_normal_stop.
11291 * Makefile.in (infrun.o): Add dependency on observer.h.
11292
11293 2003-03-18 J. Brobecker <brobecker@gnat.com>
11294
11295 Continuing work to convert the hppa targets to multiarch partial.
11296 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11297 parameter. Reformat comment.
11298 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11299 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11300 to match new profile.
11301
11302 2003-03-18 J. Brobecker <brobecker@gnat.com>
11303
11304 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11305 appear to be working in any case.
11306
11307 2003-03-18 J. Brobecker <brobecker@gnat.com>
11308
11309 * observer.c (observer_test_first_observer): New static variable.
11310 (observer_test_second_observer): Likewise.
11311 (observer_test_third_observer): Likewise.
11312 (observer_test_first_notification_function): New static function.
11313 (observer_test_second_notification_function): Likewise.
11314 (observer_test_third_notification_function): Likewise.
11315
11316 2003-03-17 J. Brobecker <brobecker@gnat.com>
11317
11318 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11319 * somsolib.c (gdb_assert.h): Likewise.
11320 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11321 (somsolib.o): Likewise.
11322
11323 2003-03-17 Andrew Cagney <cagney@redhat.com>
11324
11325 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11326 BFD. Simplify setting of di.endian.
11327
11328 2003-03-17 Andrew Cagney <cagney@redhat.com>
11329
11330 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11331 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11332
11333 From Elena Zannoni <ezannoni@redhat.com>
11334 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11335 vector and floating-point parameters.
11336 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11337 convention.
11338 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11339
11340 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11341
11342 * MAINTAINERS: Remove my name from several maintainership roles.
11343
11344 2003-03-17 Andrew Cagney <cagney@redhat.com>
11345
11346 Fix frame off-by-one bug.
11347 * frame-unwind.h (frame_this_id_ftype): Replace
11348 frame_unwind_id_ftype.
11349 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11350 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11351 with "prev_register".
11352 * frame-unwind.c (frame_unwind_find_by_pc): Return
11353 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11354 comment.
11355 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11356 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11357 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11358 (dummy_frame_unwind): Update.
11359 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11360 sentinel_frame_register_unwind.
11361 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11362 (sentinel_frame_unwinder): Update.
11363 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11364 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11365 * frame.c (create_sentinel_frame): Update. Initialize
11366 "prologue_cache" instead of "unwind_cache".
11367 (frame_register_unwind): Call this frame's prev_register with the
11368 next frame and this frame's prologue cache.
11369 (get_prev_frame): Simplify. Always call prev frame's this_id with
11370 this frame and prev frame's prologue cache. Document that this
11371 call is shifted one to the left when compared to the
11372 frame_register_unwind call.
11373 (legacy_saved_regs_prev_register): Replace
11374 frame_saved_regs_register_unwind.
11375 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11376 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11377 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11378 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11379 (d10v_frame_unwind): Update.
11380 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11381 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11382 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11383 "saved_regs" with "this_saved_regs".
11384
11385 2003-03-16 Andrew Cagney <cagney@redhat.com>
11386
11387 * frame.c (frame_pop): Don't call target_store_registers. Fix
11388 problem reported by Mark Kettenis.
11389
11390 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11391
11392 * i386-tdep.c (i386_register_type): Renamed from
11393 i386_register_virtual_type. Adjust function signature.
11394 (i386_gdbarch_init): Set register_type instead of
11395 deprecated_max_register_raw_size,
11396 deprecated_max_register_virtual_size and register_virtual_type.
11397
11398 2003-03-14 Andrew Cagney <cagney@redhat.com>
11399
11400 * frame.c (get_prev_frame): When a legacy frame, always call
11401 legacy_get_prev_frame. Simplify unwind code using assumption that
11402 the unwinder is new.
11403 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11404 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11405 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11406
11407 2003-03-14 Andrew Cagney <cagney@redhat.com>
11408
11409 * frame.c (get_saved_register): Delete function.
11410 * frame.h (get_saved_register): Delete declaration.
11411 * xstormy16-tdep.c: Update comment.
11412 * regcache.h: Update comments.
11413 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11414 get_saved_register and extract_address, use
11415 frame_read_unsigned_register.
11416 (sparc_frame_saved_pc): Ditto.
11417 (sparc_get_saved_register): Instead of get_saved_register, use
11418 frame_register.
11419 (sparc_pop_frame): Ditto.
11420 * findvar.c: Update comments.
11421 (value_of_register): Call frame_register instead of
11422 get_saved_register.
11423 (value_from_register): Ditto.
11424 * config/sparc/tm-sparc.h: Update comment.
11425 * breakpoint.c: Update comment.
11426
11427 2003-03-14 Andrew Cagney <cagney@redhat.com>
11428
11429 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11430 GET_SAVED_REGISTER.
11431 * gdbarch.h, gdbarch.c: Re-generate.
11432 * frame.h: Update comments.
11433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11434 * x86-64-tdep.c (x86_64_init_abi): Update.
11435 * sparc-tdep.c (sparc_gdbarch_init): Update.
11436 * sh-tdep.c (sh_gdbarch_init): Update.
11437 * mips-tdep.c (mips_gdbarch_init): Update.
11438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11439 * cris-tdep.c (cris_gdbarch_init): Update.
11440 * ia64-tdep.c (ia64_gdbarch_init): Update.
11441 * frame.c (frame_register): Update.
11442 (get_saved_register): Update.
11443 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11444
11445 2003-03-13 Andrew Cagney <cagney@redhat.com>
11446
11447 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11448 * gdbarch.h, gdbarch.c: Regenerate.
11449 * valops.c (hand_function_call): Update comment.
11450 * stack.c (return_command): Update comment.
11451 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11452 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11454 * x86-64-tdep.c (x86_64_init_abi): Update.
11455 * vax-tdep.c (vax_gdbarch_init): Update.
11456 * v850-tdep.c (v850_gdbarch_init): Update.
11457 * sparc-tdep.c (sparc_gdbarch_init): Update.
11458 * sh-tdep.c (sh_gdbarch_init): Update.
11459 * s390-tdep.c (s390_gdbarch_init): Update.
11460 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11461 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11462 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11463 * mips-tdep.c (mips_gdbarch_init): Update.
11464 * mcore-tdep.c (mcore_gdbarch_init): Update.
11465 * m68k-tdep.c (m68k_gdbarch_init): Update.
11466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11467 * ia64-tdep.c (ia64_gdbarch_init): Update.
11468 * i386-tdep.c (i386_gdbarch_init): Update.
11469 * hppa-tdep.c (hppa_gdbarch_init): Update.
11470 * h8300-tdep.c (h8300_gdbarch_init): Update.
11471 * frv-tdep.c (frv_gdbarch_init): Update.
11472 * cris-tdep.c (cris_gdbarch_init): Update.
11473 * avr-tdep.c (avr_gdbarch_init): Update.
11474 * arm-tdep.c (arm_gdbarch_init): Update.
11475 * alpha-tdep.c (alpha_gdbarch_init): Update.
11476
11477 2003-03-13 Andrew Cagney <cagney@redhat.com>
11478
11479 * frame.c (legacy_frame_p): New function.
11480 (get_prev_frame): Use legacy_frame_p.
11481 * frame.h (legacy_frame_p): Declare.
11482
11483 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11484
11485 * MAINTAINERS (write after approval): Alphabetically
11486 listing corrected.
11487
11488 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11489
11490 * MAINTAINERS (write after approval): Add myself.
11491
11492 2003-03-12 Andrew Cagney <cagney@redhat.com>
11493
11494 * frame.c (get_prev_frame): Rename the frame parameter to
11495 "this_frame".
11496 (get_next_frame, legacy_get_prev_frame): Ditto.
11497
11498 2003-03-12 Andrew Cagney <cagney@redhat.com>
11499
11500 * frame.c (get_current_frame): Check target_has_registers before
11501 checking target_has_stack.
11502 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11503 instead of deprecated_selected_frame.
11504 * findvar.c (value_of_register): Pass "frame", not
11505 deprecated_selected_frame, to value_of_builtin_reg.
11506
11507 2003-03-12 Andrew Cagney <cagney@redhat.com>
11508
11509 * regcache.c (regcache_cooked_write_signed): New function.
11510 (regcache_cooked_write_unsigned): New function.
11511 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11512 (regcache_cooked_read_signed): Fix regnum in range assertion.
11513 * regcache.h (regcache_cooked_write_signed): Declare.
11514 (regcache_cooked_write_unsigned): Declare.
11515
11516 2003-03-12 Andrew Cagney <cagney@redhat.com>
11517
11518 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11519 * gdbarch.h, gdbarch.c: Re-generate.
11520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11521 * x86-64-tdep.h: Update.
11522 * x86-64-tdep.c (x86_64_init_abi): Update.
11523 * v850-tdep.c (v850_gdbarch_init): Update.
11524 * sparc-tdep.c (sparc_gdbarch_init): Update.
11525 * sh-tdep.c (sh_gdbarch_init): Update.
11526 * s390-tdep.c (s390_gdbarch_init): Update.
11527 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11528 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11529 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11530 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11531 * mips-tdep.c (mips_gdbarch_init): Update.
11532 * mcore-tdep.c (mcore_gdbarch_init): Update.
11533 * m68k-tdep.c (m68k_gdbarch_init): Update.
11534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11535 * ia64-tdep.c (ia64_gdbarch_init): Update.
11536 * i386-tdep.c (i386_gdbarch_init): Update.
11537 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11538 * hppa-tdep.c (hppa_gdbarch_init): Update.
11539 * h8300-tdep.c (h8300_gdbarch_init): Update.
11540 * frv-tdep.c (frv_gdbarch_init): Update.
11541 * cris-tdep.c (cris_gdbarch_init): Update.
11542 * avr-tdep.c (avr_gdbarch_init): Update.
11543 * arm-tdep.c (arm_gdbarch_init): Update.
11544 * alpha-tdep.c (alpha_gdbarch_init): Update.
11545 * sh-tdep.c (sh_init_extra_frame_info): Update.
11546 (sh64_init_extra_frame_info): Update.
11547 * ns32knbsd-nat.c (frame_num_args): Update.
11548 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11549 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11550 (xstormy16_frame_chain_valid): Update.
11551 * vax-tdep.c (vax_saved_pc_after_call): Update.
11552 * v850-tdep.c (v850_frame_chain): Update.
11553 (v850_pop_frame): Update.
11554 (v850_init_extra_frame_info): Update.
11555 * sparc-tdep.c (setup_arbitrary_frame): Update.
11556 * ns32k-tdep.c (umax_frame_num_args): Update.
11557 * s390-tdep.c (s390_pop_frame_regular): Update.
11558 * mn10300-tdep.c (mn10300_frame_chain): Update.
11559 (mn10300_pop_frame_regular): Update.
11560 (mn10300_init_extra_frame_info): Update.
11561 * mips-tdep.c (mips_init_frame_pc_first): Update.
11562 (mips_frame_chain): Update.
11563 (mips_pop_frame): Update.
11564 * mcore-tdep.c (mcore_frame_chain): Update.
11565 (mcore_pop_frame): Update.
11566 (mcore_init_extra_frame_info): Update.
11567 * arch-utils.c (init_frame_pc_default): Update.
11568 * m68k-tdep.c (isi_frame_num_args): Update.
11569 (delta68_frame_num_args): Update.
11570 (news_frame_num_args): Update.
11571 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11572 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11573 (alpha_frame_chain): Update.
11574 (alpha_pop_frame): Update.
11575 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11576 (hppa_init_extra_frame_info): Update.
11577 (hppa_frame_chain): Update.
11578 (hppa_frame_chain_valid): Update.
11579 * cris-tdep.c (cris_init_extra_frame_info): Update.
11580 * avr-tdep.c (avr_init_extra_frame_info): Update.
11581 * arm-tdep.c (arm_frame_chain_valid): Update.
11582 (arm_init_extra_frame_info): Update.
11583 (arm_pop_frame): Update.
11584 * frame.c (frame_pc_unwind): Update.
11585 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11586 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11587 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11588 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11589 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11590 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11591
11592 2003-03-12 Andrew Cagney <cagney@redhat.com>
11593
11594 Eliminate the need for POP_FRAME.
11595 * frame.c (do_frame_unwind_register): New function.
11596 (frame_pop): When no POP_FRAME, pop the frame using register
11597 unwind and a scratch regcache.
11598 (frame_saved_regs_pop): Delete function.
11599 (trad_frame_unwinder): Update.
11600 * d10v-tdep.c (d10v_frame_pop): Delete function.
11601 (d10v_frame_unwind): Update.
11602 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11603 (sentinel_frame_unwinder): Update.
11604 * dummy-frame.c (dummy_frame_pop): Delete function.
11605 (dummy_frame_unwind): Update.
11606 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11607 (struct frame_unwind): Update.
11608
11609 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11610
11611 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11612 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11613 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11614 Do range checks on register number obtained from debugging info.
11615 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11616 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11617 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11618 mapping function.
11619 (do_fp_register_row): Fix typo which caused double type to be
11620 used when attempting to unpack a float.
11621
11622 2003-03-11 J. Brobecker <brobecker@gnat.com>
11623
11624 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11625
11626 2003-03-11 Andrew Cagney <cagney@redhat.com>
11627
11628 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11629 frame. Problem found by Corinna Vinschen.
11630
11631 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11632
11633 * doublest.c (floatformat_from_length): Accept also
11634 the real size of 'long double' type.
11635
11636 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11637
11638 From Klee Dienes <kdienes@apple.com>:
11639 * breakpoint.c (bpstat_copy): Copy the command lines as well
11640 as the old value, to match what is freed in bpstat_clear.
11641
11642 2003-03-10 David Carlton <carlton@math.stanford.edu>
11643
11644 * minsyms.c (add_minsym_to_hash_table): Replace
11645 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11646 (compare_minimal_symbols, compact_minimal_symbols)
11647 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11648 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11649 of DEPRECATED_SYMBOL_MATCHES_NAME.
11650 (lookup_minimal_symbol_solib_trampoline): Ditto.
11651
11652 2003-03-10 Andrew Cagney <cagney@redhat.com>
11653
11654 * regcache.h (regcache_cooked_read_ftype): Define.
11655 (regcache_save, regcache_restore): Add a cooked_read parameter.
11656 * regcache.c (regcache_save, regcache_restore): Update.
11657 (do_cooked_read): New function.
11658 (regcache_cpy): Pass do_cooked_read to regcache_save and
11659 regcache_restore.
11660
11661 2003-03-10 Andrew Cagney <cagney@redhat.com>
11662
11663 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11664 * gdbarch.h, gdbarch.c: Re-generate.
11665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11666 * x86-64-tdep.h: Update.
11667 * x86-64-tdep.c (x86_64_init_abi): Update.
11668 * v850-tdep.c (v850_gdbarch_init): Update.
11669 * sparc-tdep.c (sparc_gdbarch_init): Update.
11670 * sh-tdep.c (sh_gdbarch_init): Update.
11671 * s390-tdep.c (s390_gdbarch_init): Update.
11672 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11673 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11674 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11675 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11676 * mips-tdep.c (mips_gdbarch_init): Update.
11677 * mcore-tdep.c (mcore_gdbarch_init): Update.
11678 * m68k-tdep.c (m68k_gdbarch_init): Update.
11679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11680 * ia64-tdep.c (ia64_gdbarch_init): Update.
11681 * i386-tdep.c (i386_gdbarch_init): Update.
11682 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11683 * hppa-tdep.c (hppa_gdbarch_init): Update.
11684 * h8300-tdep.c (h8300_gdbarch_init): Update.
11685 * frv-tdep.c (frv_gdbarch_init): Update.
11686 * cris-tdep.c (cris_gdbarch_init): Update.
11687 * avr-tdep.c (avr_gdbarch_init): Update.
11688 * arm-tdep.c (arm_gdbarch_init): Update.
11689 * alpha-tdep.c (alpha_gdbarch_init): Update.
11690 * sh-tdep.c (sh_init_extra_frame_info): Update.
11691 (sh64_init_extra_frame_info): Update.
11692 * ns32knbsd-nat.c (frame_num_args): Update.
11693 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11694 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11695 (xstormy16_frame_chain_valid): Update.
11696 * vax-tdep.c (vax_saved_pc_after_call): Update.
11697 * v850-tdep.c (v850_frame_chain): Update.
11698 (v850_pop_frame): Update.
11699 (v850_init_extra_frame_info): Update.
11700 * sparc-tdep.c (setup_arbitrary_frame): Update.
11701 * ns32k-tdep.c (umax_frame_num_args): Update.
11702 * s390-tdep.c (s390_pop_frame_regular): Update.
11703 * mn10300-tdep.c (mn10300_frame_chain): Update.
11704 (mn10300_pop_frame_regular): Update.
11705 (mn10300_init_extra_frame_info): Update.
11706 * mips-tdep.c (mips_init_frame_pc_first): Update.
11707 (mips_frame_chain): Update.
11708 (mips_pop_frame): Update.
11709 * mcore-tdep.c (mcore_frame_chain): Update.
11710 (mcore_pop_frame): Update.
11711 (mcore_init_extra_frame_info): Update.
11712 * arch-utils.c (init_frame_pc_default): Update.
11713 * m68k-tdep.c (isi_frame_num_args): Update.
11714 (delta68_frame_num_args): Update.
11715 (news_frame_num_args): Update.
11716 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11717 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11718 (alpha_frame_chain): Update.
11719 (alpha_pop_frame): Update.
11720 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11721 (hppa_init_extra_frame_info): Update.
11722 (hppa_frame_chain): Update.
11723 (hppa_frame_chain_valid): Update.
11724 * cris-tdep.c (cris_init_extra_frame_info): Update.
11725 * avr-tdep.c (avr_init_extra_frame_info): Update.
11726 * arm-tdep.c (arm_frame_chain_valid): Update.
11727 (arm_init_extra_frame_info): Update.
11728 (arm_pop_frame): Update.
11729 * frame.c (frame_pc_unwind): Update.
11730 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11731 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11732 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11733 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11734 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11735 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11736
11737 2003-03-10 Andrew Cagney <cagney@redhat.com>
11738
11739 * gdbarch.sh (gdbarch_unwind_pc): New method.
11740 * gdbarch.h, gdbarch.c: Regenerate.
11741 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11742 but use read_pc and FRAME_SAVED_PC as fall backs.
11743 (frame_saved_regs_pc_unwind): Delete function.
11744 (trad_frame_unwinder): Update.
11745 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11746 (struct frame_unwind): Update.
11747 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11748 (dummy_frame_unwind): Update.
11749 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11750 (sentinel_frame_unwinder): Update.
11751 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11752 (d10v_frame_unwind): Update.
11753 (d10v_unwind_pc): New function.
11754 (d10v_gdbarch_init): Set unwind_pc.
11755
11756 2003-03-10 Andrew Cagney <cagney@redhat.com>
11757
11758 * gdbarch.h: Re-generate.
11759
11760 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11761 PC.
11762 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11763 the PC register.
11764
11765 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11766
11767 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11768
11769 2003-03-08 Andrew Cagney <cagney@redhat.com>
11770
11771 * cli-out.c: Update copyright.
11772 (cli_out_data): Define typedef. Use instead of ui_out_data.
11773
11774 2003-03-08 Andrew Cagney <cagney@redhat.com>
11775
11776 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11777 the result.
11778
11779 2003-03-07 Andrew Cagney <cagney@redhat.com>
11780
11781 * gdbarch.sh: Don't generate two macro definitions when an
11782 undefined macro taking no arguments.
11783 * gdbarch.h: Regenerate.
11784
11785 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11786
11787 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11788 (x86_64_unwind_dummy_id): New functions.
11789 (x86_64_init_abi): Register these two new functions.
11790
11791 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11792
11793 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11794 (x86_64_skip_prologue): Move prologue detection to
11795 separate function.
11796 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11797
11798 2003-03-05 Andrew Cagney <cagney@redhat.com>
11799
11800 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11801 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11802 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11803 to use unwind_dummy_id when a dummy frame.
11804 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11805 predicate.
11806 * gdbarch.h, gdbarch.c: Regneerate.
11807
11808 2003-03-05 Andrew Cagney <cagney@redhat.com>
11809
11810 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11811 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11812 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11813 values.
11814
11815 2003-03-05 Andrew Cagney <cagney@redhat.com>
11816
11817 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11818 (struct d10v_unwind_cache): Delete field "frameless". Replace
11819 "next_addr" with "sp_offset". Add "r11_offset".
11820 (d10v_frame_unwind_cache): Update.
11821 (prologue_find_regs): Update. When "mv r11, sp", save the
11822 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11823 RN was saved in r11_offset.
11824
11825 2003-03-05 Andrew Cagney <cagney@redhat.com>
11826
11827 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11828 cached PC value in the next frame.
11829
11830 2003-03-05 Andrew Cagney <cagney@redhat.com>
11831
11832 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11833 "id_unwind_cache" with "id".
11834 (frame_id_unwind): Delete declaration.
11835 * frame.c (frame_id_unwind): Delete function.
11836 (get_prev_frame): Call the frame id unwind method directly. Store
11837 the returned next frame's ID value in NEXT_FRAME. Note that there
11838 is a problem with the wrong unwind ID being called with the wrong
11839 unwind cache.
11840
11841 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11842
11843 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11844
11845 2003-03-05 James Ingham <jingham@apple.com>
11846 Daniel Jacobowitz <drow@mvista.com>
11847
11848 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11849 (auto_cp_abi): New variable.
11850 (current_cp_abi, num_cp_abis): Make static.
11851 (CP_ABI_MAX): Define.
11852 (cp_abis): Turn into an array.
11853 (value_virtual_fn_field): Fix formatting.
11854 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11855 takes a pointer.
11856 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11857 (list_cp_abis, _initialize_cp_abi): New functions.
11858 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11859 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11860 switch_to_cp_abi. Update prototype for register_cp_abi.
11861 * Makefile.in (cp-abi.o): Update dependencies.
11862 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11863 instead of switch_to_cp_abi.
11864 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11865 register_cp_abi.
11866 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11867 register_cp_abi.
11868 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11869
11870 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11871
11872 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11873 * dwarf2loc.c: Include "regcache.h".
11874 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11875 register_size.
11876 * Makefile.in (dwarf2loc.o): Update dependencies.
11877
11878 2003-03-04 Theodore A. Roth <troth@openavr.org>
11879
11880 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11881 number of io registers reported by remote target is not a multiple of
11882 step.
11883
11884 2003-03-04 David Carlton <carlton@math.stanford.edu>
11885
11886 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11887 (lookup_symbol_aux_psymtabs): Update call to
11888 lookup_partial_symbol.
11889 (lookup_transparent_type, find_main_psymtab)
11890 (make_symbol_overload_list): Ditto.
11891
11892 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11893
11894 * MAINTAINERS (Write after approval): Update my email address.
11895
11896 2003-03-03 Andrew Cagney <cagney@redhat.com>
11897
11898 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11899 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11900 predicate. Replace MAX_REGISTER_RAW_SIZE.
11901 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11902 MAX_REGISTER_VIRTUAL_SIZE.
11903 * regcache.c (legacy_max_register_raw_size): New function.
11904 (legacy_max_register_virtual_size): New function.
11905 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11906 (MAX_REGISTER_RAW_SIZE): Define.
11907 (legacy_max_register_raw_size): Declare.
11908 (legacy_max_register_virtual_size): Declare.
11909 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11910 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11911 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11912 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11913 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11914 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11915 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11916 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11917 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11919 * vax-tdep.c (vax_gdbarch_init): Update.
11920 * v850-tdep.c (v850_gdbarch_init): Update.
11921 * sparc-tdep.c (sparc_gdbarch_init): Update.
11922 * sh-tdep.c (sh_gdbarch_init): Update.
11923 * s390-tdep.c (s390_gdbarch_init): Update.
11924 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11925 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11927 * mips-tdep.c (mips_gdbarch_init): Update.
11928 * mcore-tdep.c (mcore_gdbarch_init): Update.
11929 * m68k-tdep.c (m68k_gdbarch_init): Update.
11930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11931 * ia64-tdep.c (ia64_gdbarch_init): Update.
11932 * i386-tdep.c (i386_gdbarch_init): Update.
11933 * hppa-tdep.c (hppa_gdbarch_init): Update.
11934 * h8300-tdep.c (h8300_gdbarch_init): Update.
11935 * frv-tdep.c (frv_gdbarch_init): Update.
11936 * cris-tdep.c (cris_gdbarch_init): Update.
11937 * avr-tdep.c (avr_gdbarch_init): Update.
11938 * arm-tdep.c (arm_gdbarch_init): Update.
11939 * alpha-tdep.c (alpha_gdbarch_init): Update.
11940 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11941 max_register_raw_size or max_register_virtual_size.
11942
11943 2003-03-03 David Carlton <carlton@math.stanford.edu>
11944
11945 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11946 SYMBOL_MATCHES_NAME, add comment.
11947 (SYMBOL_MATCHES_NATURAL_NAME): New.
11948 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11949 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11950 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11951 * symtab.c (lookup_partial_symbol): Use
11952 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11953 unhelpful comment.
11954 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11955 SYMBOL_MATCHES_NAME.
11956 Fix for PR c++/33.
11957
11958 2003-03-03 David Carlton <carlton@math.stanford.edu>
11959
11960 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11961 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11962 by regexp matching against SYMBOL_NATURAL_NAME.
11963
11964 2003-03-03 David Carlton <carlton@math.stanford.edu>
11965
11966 * linespec.c (find_method): Extract code into collect_methods.
11967 (collect_methods): New.
11968
11969 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11970
11971 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11972 get_frame_base.
11973
11974 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11975 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11976
11977 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11978
11979 * arch-utils.c (generic_register_byte): Fix to use the loop index
11980 and not regnum when summing the size of all registers up to regnum.
11981
11982 2003-03-01 Andrew Cagney <cagney@redhat.com>
11983
11984 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11985 FRAME_INIT_SAVED_REGS.
11986 * gdbarch.h, gdbarch.c: Regenerate.
11987 * stack.c (frame_info): Update.
11988 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11989 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11990 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11991 * ns32k-tdep.c (ns32k_pop_frame): Update.
11992 * mips-tdep.c (mips_pop_frame): Update.
11993 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11994 * ia64-tdep.c (ia64_frame_chain): Update.
11995 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11996 (ia64_frameless_function_invocation): Update.
11997 (ia64_init_extra_frame_info): Update.
11998 (ia64_pop_frame_regular): Update.
11999 * frame.h (struct frame_info): Update comment.
12000 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12001 * frame.c (frame_saved_regs_register_unwind): Update.
12002 (frame_saved_regs_register_unwind): Update.
12003 (deprecated_generic_get_saved_register): Update.
12004 * cris-tdep.c: Update comment.
12005 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12006 Rename macro.
12007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12008 * x86-64-tdep.c (x86_64_init_abi): Update.
12009 * vax-tdep.c (vax_gdbarch_init): Update.
12010 * v850-tdep.c (v850_gdbarch_init): Update.
12011 * sparc-tdep.c (sparc_gdbarch_init): Update.
12012 * sh-tdep.c (sh_gdbarch_init): Update.
12013 * s390-tdep.c (s390_gdbarch_init): Update.
12014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12015 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12016 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12017 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12018 * mips-tdep.c (mips_gdbarch_init): Update.
12019 * mcore-tdep.c (mcore_gdbarch_init): Update.
12020 * m68k-tdep.c (m68k_gdbarch_init): Update.
12021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12022 * ia64-tdep.c (ia64_gdbarch_init): Update.
12023 * i386-tdep.c (i386_gdbarch_init): Update.
12024 * frv-tdep.c (frv_gdbarch_init): Update.
12025 * avr-tdep.c (avr_gdbarch_init): Update.
12026 * arm-tdep.c (arm_gdbarch_init): Update.
12027 * alpha-tdep.c (alpha_gdbarch_init): Update.
12028
12029 2003-03-01 Andrew Cagney <cagney@redhat.com>
12030
12031 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12032 option enum and switch. When no windows, set the interpreter to
12033 INTERP_CONSOLE.
12034
12035 2003-03-01 Andrew Cagney <cagney@redhat.com>
12036
12037 * main.c (captured_main): Replace magic option characters with an
12038 enum.
12039
12040 2003-03-01 Andrew Cagney <cagney@redhat.com>
12041
12042 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12043 INIT_EXTRA_FRAME_INFO.
12044 * gdbarch.h, gdbarch.c: Regenerate.
12045 * arm-tdep.c: Update comments.
12046 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12047 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12048 * frame.h, avr-tdep.c: Ditto.
12049 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12050 (create_new_frame, legacy_get_prev_frame): Ditto.
12051 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12052 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12054 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12055 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12056 * v850-tdep.c (v850_gdbarch_init): Ditto.
12057 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12058 * sh-tdep.c (sh_gdbarch_init): Ditto.
12059 * s390-tdep.c (s390_gdbarch_init): Ditto.
12060 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12061 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12062 * mips-tdep.c (mips_gdbarch_init): Ditto.
12063 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12065 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12066 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12067 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12068 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12069 * frv-tdep.c (frv_gdbarch_init): Ditto.
12070 * cris-tdep.c (cris_gdbarch_init): Ditto.
12071 * avr-tdep.c (avr_gdbarch_init): Ditto.
12072 * arm-tdep.c (arm_gdbarch_init): Ditto.
12073 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12074 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12075
12076 2003-03-01 Andrew Cagney <cagney@redhat.com>
12077
12078 * gdbarch.sh (register_type): New function with predicate.
12079 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12080 * gdbarch.h, gdbarch.c: Re-generate.
12081 * arch-utils.c (generic_register_byte): Use generic_register_size.
12082 (generic_register_size): When available, use
12083 gdbarch_register_type.
12084 * regcache.c (init_regcache_descr): When available, initialize the
12085 register type array using gdbarch_register_type. If the
12086 architecture supplies gdbarch_register_type, do not use the legacy
12087 regcache layout.
12088 * d10v-tdep.c (d10v_register_type): Replace
12089 d10v_register_virtual_type.
12090 (d10v_gdbarch_init): Set register_type instead of
12091 register_virtual_type.
12092
12093 2003-03-01 Andrew Cagney <cagney@redhat.com>
12094
12095 * Makefile.in (ax-gdb.o): Update dependencies.
12096 * ax-gdb.c: Include "regcache.h".
12097 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12098 * findvar.c (value_of_register): Ditto.
12099 * infcmd.c (default_print_registers_info): Ditto.
12100
12101 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12102
12103 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12104 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12105
12106 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12107
12108 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12109 of STREQ.
12110
12111 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12112
12113 * Makefile.in (dwarf2loc.o): Update dependencies.
12114 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12115 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12116 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12117 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12118 (locexpr_tracepoint_var_ref): New function.
12119 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12120
12121 2003-02-28 Andrew Cagney <cagney@redhat.com>
12122
12123 * regcache.c (register_size): New function.
12124 * regcache.h (register_size): Declare
12125 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12126 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12127
12128 2003-02-28 David Carlton <carlton@math.stanford.edu>
12129
12130 * linespec.c (decode_compound): Extract code into find_method.
12131 (find_method): New.
12132
12133 2003-02-28 J. Brobecker <brobecker@gnat.com>
12134
12135 * Makefile.in: Add rules to build and link in observer.o.
12136
12137 2003-02-27 J. Brobecker <brobecker@gnat.com>
12138
12139 * observer.c: Minor comments edits.
12140
12141 2003-02-27 J. Brobecker <brobecker@gnat.com>
12142
12143 * observer.h, observer.c: New file.
12144
12145 2003-02-27 Andrew Cagney <cagney@redhat.com>
12146
12147 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12148
12149 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12150
12151 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12152 (M6812_OP_STS_EXT): Likewise.
12153 (m6811_prologue): Use the above to recognize prologue.
12154 (m6812_prologue): Likewise.
12155
12156 2003-02-27 David Carlton <carlton@math.stanford.edu>
12157
12158 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12159 SYMBOL_PRINT_NAME.
12160 (compare_psymbols): Ditto.
12161 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12162
12163 2003-02-27 Michael Snyder <msnyder@redhat.com>
12164
12165 * f-lang.c (build_fortran_types): New function.
12166 (_initialize_f_language): Gdbarch-register built-in fortran types.
12167 * doublest.c (extract_floating): Fix warning text.
12168
12169 2003-02-27 Andrew Cagney <cagney@redhat.com>
12170
12171 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12172 predicate. Replaces PUSH_DUMMY_FRAME.
12173 * gdbarch.h, gdbarch.c: Regnerate.
12174 * valops.c (hand_function_call): Update. Call
12175 generic_push_dummy_frame directly.
12176 * vax-tdep.c (vax_gdbarch_init): Update.
12177 * sparc-tdep.c (sparc_gdbarch_init): Update.
12178 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12179 * m68k-tdep.c (m68k_gdbarch_init): Update.
12180 * hppa-tdep.c (hppa_gdbarch_init): Update.
12181 * alpha-tdep.c (alpha_gdbarch_init): Update.
12182 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12183 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12184 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12186 push_dummy_frame to generic_push_dummy_frame.
12187 * v850-tdep.c (v850_gdbarch_init): Ditto.
12188 * sh-tdep.c (sh_gdbarch_init): Ditto.
12189 * s390-tdep.c (s390_gdbarch_init): Ditto.
12190 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12191 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12192 * mips-tdep.c (mips_gdbarch_init): Ditto.
12193 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12194 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12195 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12196 * i386-tdep.c (i386_gdbarch_init): Ditto.
12197 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12198 * frv-tdep.c (frv_gdbarch_init): Ditto.
12199 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12200 * cris-tdep.c (cris_gdbarch_init): Ditto.
12201 * avr-tdep.c (avr_gdbarch_init): Ditto.
12202 * arm-tdep.c (arm_gdbarch_init): Ditto.
12203
12204 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12205
12206 * mips-tdep.c (show_mips_abi): New function.
12207 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12208 command ``show mips abi''.
12209
12210 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12211
12212 From Elena Zannoni <ezannoni@redhat.com>
12213 * dbxread.c (process_one_symbol): Only record line 0 if one or
12214 more sline entries have been seen for the function.
12215
12216 2003-02-26 Michael Chastain <mec@shout.net>
12217
12218 * configure: Regenerate with autoconf 000227.
12219
12220 2003-02-26 Michael Chastain <mec@shout.net>
12221
12222 Close PR build/660.
12223 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12224 for old libc5/glibc.
12225 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12226
12227 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12228
12229 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12230 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12231
12232 2003-02-26 Michael Chastain <mec@shout.net>
12233
12234 * configure.in: New variable HAVE_UINTPTR_T.
12235 * configure, config.in: Regenerated.
12236
12237 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12238
12239 Fix PR build/1097.
12240 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12241
12242 2003-02-25 Andrew Cagney <cagney@redhat.com>
12243
12244 * frame.c (get_prev_frame): Add comment on check for
12245 inside_entry_func. Only check for inside_entry_file when not a
12246 dummy and not a sentinel. Check that the new frame is not inner
12247 to the old frame.
12248
12249 2003-02-25 Andrew Cagney <cagney@redhat.com>
12250
12251 * frame.c (frame_debug): New variable.
12252 (_initialize_frame): Add "set/show debug frame" command.
12253 (get_prev_frame): When frame_debug, print reason why unwind
12254 failed.
12255
12256 2003-02-25 Michael Chastain <mec@shout.net>
12257
12258 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12259 to avoid uintptr_t definition problems.
12260
12261 2003-02-25 David Carlton <carlton@math.stanford.edu>
12262
12263 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12264 (SYMBOL_LINKAGE_NAME): Ditto.
12265 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12266 SYMBOL_LINKAGE_NAME.
12267 (struct general_symbol_info): Expand comment.
12268 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12269 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12270 (SYMBOL_MATCHES_REGEXP): Ditto.
12271 * symtab.c (symbol_natural_name): New function.
12272 * objfiles.h: Replace all uses of SYMBOL_NAME by
12273 DEPRECATED_SYMBOL_NAME.
12274 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12275 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12276 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12277 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12278 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12279 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12280 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12281 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12282 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12283 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12284 * ada-exp.y: Ditto.
12285 * ada-exp.y: Update copyright.
12286 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12287 * cp-valprint.c: Ditto.
12288
12289 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12290
12291 * infptrace.c (detach): Do not flag error if ptrace detach fails
12292 and errno is set to ESRCH.
12293
12294 2003-02-24 Andrew Cagney <cagney@redhat.com>
12295
12296 * infptrace.c (udot_info): Change type of udot_off to long. Use
12297 paddr when printing udot_off's value.
12298
12299 2003-02-24 David Carlton <carlton@math.stanford.edu>
12300
12301 * symtab.c (make_symbol_overload_list): Only read in partial
12302 symtabs containing a matching partial symbol.
12303
12304 2003-02-24 David Carlton <carlton@math.stanford.edu>
12305
12306 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12307 do the comparison, not strcmp.
12308 * symfile.c (compare_psymbols): Ditto.
12309 * defs.h: Declare strcmp_iw_ordered.
12310 * utils.c (strcmp_iw_ordered): New function.
12311
12312 2003-02-24 Jim Blandy <jimb@redhat.com>
12313
12314 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12315 support, shared libs): Remove my name from here, to better reflect
12316 reality.
12317
12318 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12319
12320 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12321 (target_ops): Add to_have_continuable_watchpoint.
12322 * target.c (update_current_target): Add INHERIT line for
12323 to_have_continuable_watchpoint.
12324 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12325 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12326 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12327 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12328
12329 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12330
12331 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12332 maintainership.
12333
12334 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12335
12336 * solib.c (solib_open): Call target defined search function after
12337 failing with solib-search-path.
12338 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12339 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12340
12341 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12342
12343 * MAINTAINERS: Add myself to Write After section.
12344
12345 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12346
12347 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12348
12349 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12350
12351 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12352 (m68hc11_add_reggroups): New function.
12353 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12354 (m68hc11_gdbarch_init): Install the reggroups.
12355 (_initialize_m68hc11_tdep): Initialize them.
12356
12357 2003-02-21 James E Wilson <wilson@tuliptree.org>
12358
12359 * MAINTAINERS: Update my email address.
12360
12361 2003-02-21 David Carlton <carlton@math.stanford.edu>
12362
12363 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12364
12365 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12366
12367 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12368 * symtab.h: Add opaque declarations of struct axs_value and
12369 struct agent_expr.
12370 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12371 (struct location_funcs): New type.
12372 (struct symbol): Add "loc" to aux_value.
12373 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12374 * dwarf2read.c: Include "dwarf2expr.h".
12375 (dwarf2_symbol_mark_computed): New function.
12376 (read_func_scope): Use it.
12377 (var_decode_location): New function.
12378 (new_symbol): Use it.
12379 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12380
12381 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12382 (dwarf2expr_h, dwarf2loc_h): New variables.
12383 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12384 (dwarf2expr.o, dwarf2loc.o): New rules.
12385 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12386 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12387 LOC_COMPUTED_ARG.
12388 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12389 * m2-exp.y (yylex): Likewise.
12390 * printcmd.c (address_info, print_frame_args): Likewise.
12391 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12392 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12393 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12394 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12395 * symtab.c (lookup_block_symbol): Likewise.
12396
12397 2003-02-20 Adam Fedor <fedor@gnu.org>
12398
12399 * symtab.h: Remove objc_specific struct
12400 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12401 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12402 Have language_objc use cplus_specific struct.
12403
12404 2003-02-20 Tom Tromey <tromey@redhat.com>
12405
12406 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12407 TYPE_NAME, when printing a String value. PR java/1075.
12408
12409 2003-02-20 Adam Fedor <fedor@gnu.org>
12410
12411 * objc-lang.h (find_methods): Remove declaration.
12412 * objc-lang.c (find_methods): Make static.
12413
12414 2003-02-20 Christopher Faylor <cgf@redhat.com>
12415
12416 * win32-nat.c (get_image_name): Check return value from
12417 ReadProcessMemory.
12418 (child_xfer_memory): Ditto.
12419
12420 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12421
12422 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12423 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12424 '${exec_prefix}' (in addition to the expansion thereof) as
12425 relocatable.
12426 * configure: Rebuilt.
12427
12428 2003-02-20 David Carlton <carlton@math.stanford.edu>
12429
12430 * symtab.c (search_symbols): Revert the search_symbols part of my
12431 2002-12-23 patch. Add comment.
12432
12433 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12434
12435 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12436 * dbxread.c (elfstab_build_psymtabs): Don't call
12437 install_minimal_symbols.
12438 (stabsect_build_psymtabs): Likewise.
12439 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12440 earlier.
12441 * somread.c (som_symfile_read): Call install_minimal_symbols
12442 and do_cleanups earlier.
12443 * nlmread.c (nlm_symfile_read): Likewise.
12444 * mdebugread.c (elfmdebug_build_psymtabs): Call
12445 install_minimal_symbols and make appropriate cleanups.
12446
12447 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12448
12449 * solib.c (reload_shared_libraries): New function.
12450 (_initialize_solib): Add callbacks for ``set solib-search-path''
12451 and ``set solib-absolute-prefix''.
12452
12453 2003-02-20 David Carlton <carlton@math.stanford.edu>
12454
12455 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12456 expand comment.
12457 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12458 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12459 * ada-typeprint.c (ada_typedef_print): Ditto.
12460 * ax-gdb.c (gen_var_ref): Ditto.
12461 * breakpoint.c (print_one_breakpoint): Ditto.
12462 * buildsym.c (finish_block): Ditto.
12463 * c-valprint.c (c_val_print): Ditto.
12464 * expprint.c (print_subexp): Ditto.
12465 * findvar.c (locate_var_value): Ditto.
12466 * infcmd.c (jump_command): Ditto.
12467 * linespec.c (decode_line_2, decode_compound): Ditto.
12468 * maint.c (maintenance_translate_address): Ditto.
12469 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12470 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12471 Ditto.
12472 * p-valprint.c (pascal_val_print): Ditto.
12473 * stabsread.c (define_symbol): Ditto.
12474 * stack.c (print_frame, frame_info, print_block_frame_locals)
12475 (print_frame_arg_vars, return_command): Ditto.
12476 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12477 * symmisc.c (print_symbol): Ditto.
12478 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12479 (compare_search_syms, print_symbol_info, print_msymbol_info)
12480 (rbreak_command): Ditto.
12481 * tracepoint.c (tracepoints_info): Ditto.
12482 * typeprint.c (typedef_print): Ditto.
12483 * valops.c (value_of_variable, hand_function_call): Ditto.
12484 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12485 * ada-typeprint.c: Update Copyright.
12486 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12487 * tracepoint.c, cli/cli-cmds.c: Ditto.
12488
12489 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12490
12491 * frame.c (generic_unwind_get_saved_register): Make non-static.
12492 * frame.h (generic_unwind_get_saved_register): Declare.
12493 * mips-tdep.c (read_next_frame_reg): Fetch register from
12494 current regcache when frame is NULL.
12495 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12496 that must be NULL.
12497 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12498 instead of frame_register_unwind().
12499
12500 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12501
12502 * remote-sim.c (gdbsim_insert_breakpoint)
12503 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12504 code.
12505
12506 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12507
12508 * remote.c (_initialize_remote): Add commands "set/show remote
12509 hardware-watchpoint-limit" and "set/show remote
12510 hardware-breakpoint-limit".
12511 (remote_hw_watchpoint_limit): Initialize to -1.
12512 (remote_hw_breakpoint_limit): Ditto.
12513 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12514
12515 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12516
12517 * coff-pe-read.c: New file - support reading of minimal symbols from a
12518 portable executable using the export table.
12519 * coff-pe-read.h: New file.
12520 * coffread.c: Include coff-pe-read.h.
12521 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12522 debugging symbols found.
12523 * Makefile.in (SFILES): Add coff-pe-read.o.
12524 (coff_pe_read_h): Define.
12525 (COMMON_OBS): Add coff-pe-read.o.
12526 (coffread.o): Add coff_pe_read_h dependency.
12527 (coff-pe-read.o): New target.
12528
12529 2003-02-19 David Carlton <carlton@math.stanford.edu>
12530
12531 * Makefile.in (SFILES): Add block.c.
12532 (block_h): New.
12533 (COMMON_OBS): Add block.o.
12534 (block.o): New.
12535 (x86-64-tdep.o): Add $(block_h).
12536 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12537 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12538 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12539 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12540 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12541 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12542 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12543 * value.h: Add opaque declaration for struct block.
12544 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12545 * ada-lang.h: Ditto.
12546 * x86-64-tdep.c: #include "block.h"
12547 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12548 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12549 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12550 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12551 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12552 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12553 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12554 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12555 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12556 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12557 * symtab.c (block_function): Ditto.
12558 (contained_in): Ditto.
12559 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12560 block.h. Add opaque declaration for struct block.
12561 * symtab.h: Move block_function and contained_in declarations to
12562 block.h. Add opaque declarations for struct block, struct
12563 blockvector.
12564 (struct block): Move to block.h.
12565 (struct blockvector): Ditto.
12566 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12567 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12568 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12569 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12570 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12571 Ditto.
12572 * block.c: New file.
12573 * block.h: New file.
12574
12575 2003-02-19 Theodore A. Roth <troth@openavr.org>
12576
12577 * avr-tdep.c (avr_extract_return_value): Remove function.
12578 (avr_store_return_value): Remove function.
12579 (avr_extract_struct_value_address): Remove function.
12580 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12581
12582 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12583
12584 * rs6000-tdep.c: Include "gdb_assert.h".
12585 (registers_e500): Add "acc" and "spefscr".
12586 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12587 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12588 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12589 really is "r0".
12590 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12591
12592 2003-02-18 Keith Seitz <keiths@redhat.com>
12593
12594 * Makefile.in: Add gdbtk-interps.c.
12595
12596 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12597
12598 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12599 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12600
12601 2003-02-18 Andrew Cagney <cagney@redhat.com>
12602
12603 * symtab.h (struct objfile): Add opaque declaration.
12604
12605 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12606
12607 From Jim Ingham <jingham@apple.com>:
12608 * dbxread.c (process_one_symbol): Use last_function_start rather
12609 than function_start_offset to find the real beginning of the
12610 current function. The latter is just the text section offset on
12611 some systems, the former is always the real function start.
12612
12613 2003-02-17 Andrew Cagney <cagney@redhat.com>
12614
12615 * configure.in: Revert ${target} != ${host}.
12616
12617 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12618
12619 * configure.in (Makefile): Use the test ${target} != ${host},
12620 instead of the absence of the "nm.h" file, to determine of the
12621 configuration non-native.
12622 * configure: Regenerate.
12623
12624 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12625
12626 From Brian Ford <ford@vss.fsi.com>
12627
12628 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12629 conditionalize tui_active test.
12630 (lookup_cmd_1): Ditto.
12631
12632 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12633
12634 * configure.in: Add check for _etext.
12635 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12636 available.
12637 * config.in, configure: regenerated.
12638
12639 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12640
12641 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12642
12643 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12644
12645 * main.c (tui_version): Delete variable.
12646 (captured_main): When --tui, set interpreter_p to "tui" instead of
12647 enabling tui_version.
12648 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12649 tui_version.
12650 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12651 * cli/cli-cmds.c (disassemble_command): Ditto.
12652 * defs.h (tui_version): Delete declaration.
12653 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12654 (tui-interp.o): Add rules.
12655 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12656
12657 2003-02-14 Christopher Faylor <cgf@redhat.com>
12658
12659 * win32-nat.c (register_loaded_dll): Correctly set address range for
12660 just-loaded dll.
12661
12662 2003-02-12 Jason Molenda (jmolenda@apple.com)
12663
12664 * symmisc.c (print_objfile_statistics): Include information about
12665 the number of psymtabs and symtabs in each object file.
12666
12667 2003-02-13 Keith R Seitz <keiths@redhat.com>
12668
12669 * main.h (struct captured_main_args): Add interpreter_p.
12670 * main.c (captured_main): Initialize interpreter_p from context.
12671 * gdb.c (main): Set interpreter_p argument.
12672 * Makefile.in (gdb.o): Add dependency for interps.h.
12673
12674 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12675
12676 * event-top.c (cli_command_loop): Delete declaration.
12677 (_initialize_event_loop): Delete function setting event_loop_hook.
12678 * event-top.h (cli_command_loop): Declare. Update copyright.
12679 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12680 * interps.c (current_interp_command_loop): When event_loop_p, call
12681 cli_command_loop.
12682
12683 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12684
12685 * interps.h (interp_command_loop_ftype): Change return type to
12686 void.
12687
12688 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12689
12690 * x86-64-tdep.c (x86_64_extract_return_value)
12691 (x86_64_store_return_value): Use regcache instead of regbuf.
12692 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12693 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12694
12695 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12696
12697 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12698 * aclocal.m4: Regenerate.
12699 * configure: Regenerate.
12700
12701 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12702 TCL_LD_SEARCH_FLAGS.
12703
12704 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12705
12706 * dwarf2cfi.c: Reindented.
12707
12708 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12709
12710 * interps.c (clear_interpreter_hooks): Convert function definition
12711 to ISO C.
12712
12713 2003-02-07 David Carlton <carlton@math.stanford.edu>
12714
12715 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12716
12717 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12718
12719 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12720 (struct type): ...to here.
12721 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12722 field.
12723 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12724 (replace_type): Set length on all type variants for a given type.
12725
12726 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12727
12728 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12729 <sys/stat.h>.
12730 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12731
12732 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12733
12734 * Makefile.in (symm-nat.o): Update dependencies.
12735 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12736 (lynx-nat.o, ia64-linux-nat.): Ditto.
12737 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12738 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12739 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12740
12741 * Makefile.in (inflow_h): Define.
12742 (procfs.o, inflow.o, procfs.o): Update dependencies.
12743 * inftarg.c (child_stop): Delete extern declaration of
12744 inferior_process_group. Include "inflow.h".
12745 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12746 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12747 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12748 (our_process_group, inferior_process_group): Extern declarations.
12749
12750 * procfs.c: Include "gdb_assert.h".
12751
12752 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12753 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12754 * jv-typeprint.c (java_type_print_base): Ditto.
12755 * typeprint.c (typedef_print): Eliminate STREQ.
12756 * cli/cli-script.c (define_command, define_command): Ditto.
12757 * main.c (captured_main): Ditto.
12758 * values.c (lookup_internalvar): Ditto.
12759 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12760 within `if' conditional.
12761 * linespec.c (decode_line_2): Ditto.
12762 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12763 (bfd_openw_with_cleanup): Ditto.
12764
12765 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12766
12767 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12768 legacy_extract_return_value and store_return_value to
12769 legacy_return_value.
12770
12771 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12772
12773 * win32-nat.c (get_relocated_section_addrs): New function. Find
12774 section load addresses for symbol handling in relocated DLLs.
12775 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12776
12777 2003-02-05 Fred Fish <fnf@intrinsity.com>
12778
12779 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12780 '=' and '!='.
12781 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12782 with '&' and '=='.
12783 (angel_RDI_info): Ditto.
12784 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12785 with '&' and '!='.
12786 (threads_continue_all_with_signals): Ditto.
12787
12788 2003-02-05 Jim Ingham <jingham@apple.com>
12789 Keith Seitz <keiths@redhat.com>
12790 Elena Zannoni <ezannoni@redhat.com>
12791 Andrew Cagney <ac131313@redhat.com>
12792
12793 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12794 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12795 (SUBDIR_MI_OBS): Add "mi-interp.o".
12796 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12797 (SFILES): Add "interps.c".
12798 (COMMON_OBS): Add "interps.o".
12799 (interps_h, mi_main_h): Define.
12800 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12801 (mi-main.o, main.o, event-top.o): Update dependencies.
12802 * cli/cli-interp.c: New file.
12803 * interps.h, interps.c: New files.
12804 * top.c: (gdb_init): Don't install the default interpreter, handed
12805 by captured_main.
12806 * main.c: Include "interps.h".
12807 (interpreter_p): Note that it should malloc'ed.
12808 (captured_command_loop): Call current_interp_command_loop.
12809 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12810 xfree and xstrdup when updating interpreter_p. Install the
12811 default interpreter. Add hack to stop mi1's copyright notice
12812 being encoded.
12813 * event-top.h (gdb_setup_readline): Declare.
12814 (gdb_disable_readline): Declare.
12815 * event-top.c: Include "interps.h".
12816 (display_gdb_prompt): Call current_interp_display_prompt_p.
12817 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12818 gdb_stdlog, and gdb_stdtarg.
12819 (_initialize_event_loop): Don't call gdb_setup_readline.
12820 * cli-out.c (cli_out_set_stream): New function.
12821 * cli-out.h (cli_out_set_stream): Declare.
12822
12823 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12824
12825 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12826 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12827 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12828 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12829 config/i386/i386v42mp.mt: Removed.
12830
12831 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12832
12833 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12834 GDB_OSABI_SOLARIS.
12835
12836 2003-02-05 Michael Chastain <mec@shout.net>
12837
12838 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12839 2.12.1 and earlier versions.
12840
12841 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12842
12843 Remove orphaned hosts, targets and files.
12844 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12845 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12846 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12847 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12848 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12849 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12850 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12851 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12852 * config/sparc/tm-sp64sim.h: Delete.
12853 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12854 hosts.
12855 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12856 mips*-dec-mach3* targets.
12857
12858 2003-02-04 Michael Chastain <mec@shout.net>
12859
12860 * NEWS: Fix typo: sepcifying -> specifying.
12861
12862 2003-02-04 Michael Chastain <mec@shout.net>
12863
12864 * dwarfread.c: Add documentation on the state of dwarf-1,
12865 looking towards obsoletion.
12866
12867 2003-02-03 Michael Chastain <mec@shout.net>
12868
12869 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12870 gdb/testsuite/gdb.c++/pr-1023.exp.
12871
12872 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12873
12874 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12875 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12876
12877 * utils.c (init_page_info): Delete reference to MPW in comments.
12878 * main.c (captured_main): Delete #ifdef MPW.
12879
12880 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12881
12882 * NEWS: Note that the m32r-*-elf* is obsolete.
12883 * monitor.c (monitor_expect): Obsolete reference to m32r.
12884 * configure.tgt: Mark m32r-*-elf* as obsolete.
12885 * MAINTAINERS: Mark m32k as obsolete.
12886 * m32r-rom.c: Obsolete file.
12887 * config/m32r/m32r.mt: Obsolete file.
12888 * config/m32r/tm-m32r.h: Obsolete file.
12889 * m32r-stub.c: Obsolete file.
12890 * m32r-tdep.c: Obsolete file.
12891
12892 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12893
12894 * NEWS: Mention that the z8k-zilog-none is obsolete.
12895 * MAINTAINERS: Mark z8k as obsolete.
12896 * configure.tgt: Obsolete the z8k-*-coff* target.
12897 * config/z8k/z8k.mt: Obsolete file.
12898 * config/z8k/tm-z8k.h: Obsolete file.
12899 * z8k-tdep.c: Obsolete file.
12900
12901 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12902
12903 * NEWS: Mention that the mn10200-elf is obsolete.
12904 * configure.tgt: Obsolete mn10200-*-* target.
12905 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12906 mention that the mn10200 is obsolete.
12907 * breakpoint.h: Ditto.
12908 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12909 * config/mn10200/mn10200.mt: Obsolete file.
12910 * config/mn10200/tm-mn10200.h: Obsolete file.
12911 * mn10200-tdep.c: Obsolete file.
12912
12913 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12914
12915 * MAINTAINERS: Mark h8500 as obsolete.
12916 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12917 * findvar.c (value_from_register): Ditto.
12918 * h8500-tdep.c: Mark file as obsolete.
12919 * config/h8500/h8500.mt: Ditto.
12920 * config/h8500/tm-h8500.h: Ditto.
12921 * NEWS: Mention that h8500 is obsolete.
12922
12923 2003-02-04 David Carlton <carlton@math.stanford.edu>
12924
12925 * objfiles.c (allocate_objfile): Always set name. Add comment at
12926 start of function.
12927 * jv-lang.c (get_dynamics_objfile): Add comment.
12928
12929 2003-02-04 David Carlton <carlton@math.stanford.edu>
12930
12931 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12932 * printcmd.c (build_address_symbolic): Replace uses of
12933 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12934 SYMBOL_NAME, and asm_demangle.
12935 Update copyright.
12936
12937 2003-02-04 David Carlton <carlton@math.stanford.edu>
12938
12939 * linespec.c (decode_compound): Extract code into
12940 lookup_prefix_sym.
12941 (lookup_prefix_sym): New function.
12942
12943 2003-02-04 David Carlton <carlton@math.stanford.edu>
12944
12945 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12946 FLOAT_COERCION_BADNESS.
12947 * gdbtypes.c (rank_one_type): Replace all uses of
12948 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12949
12950 2003-02-04 Jim Blandy <jimb@redhat.com>
12951
12952 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12953 section, let dwarf_macinfo_section point to it, not
12954 dwarf_loc_section.
12955
12956 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12957
12958 Pointed out by Anton Blanchard <anton@samba.org>.
12959 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12960 (ppc_linux_at_sigtramp_return_path): Use it.
12961
12962 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12963
12964 * defs.h (streq): Add prototype.
12965 * utils.c (streq): New function.
12966
12967 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12968 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12969 * mdebugread.c (new_symbol): Likewise.
12970 * stabsread.c (define_symbol): Likewise.
12971 * coffread.c (process_coff_symbol): Likewise.
12972 * dwarfread.c (new_symbol): Likewise.
12973
12974 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12975 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12976 here.
12977 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12978 SYMBOL_INIT_DEMANGLED_NAME.
12979 * objfiles.c: Include "hashtab.h".
12980 (allocate_objfile): Call htab_set_functions_ex for the
12981 demangled_names_hash.
12982 (free_objfile): Call htab_delete for the demangled_names_hash.
12983 * objfiles.h (struct htab): Add declaration.
12984 (struct objfile): Add demangled_names_hash.
12985 * symfile.c: Include "hashtab.h".
12986 (reread_symbols): Call htab_delete for the demangled_names_hash.
12987 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12988 SYMBOL_NAME in the bcache.
12989 * symtab.c: Include "hashtab.h". Update comments.
12990 (create_demangled_names_hash, symbol_set_names): New functions.
12991 (symbol_find_demangled_name): New function, broken out from
12992 symbol_init_demangled_names.
12993 (symbol_init_demangled_names): Use it.
12994 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12995 (SYMBOL_SET_NAMES): New macro.
12996 (symbol_set_names): Add prototype.
12997
12998 2003-02-03 Jim Blandy <jimb@redhat.com>
12999
13000 Use a single, consistent representation for an empty minimal
13001 symbol table in an objfile.
13002 * objfiles.c (terminate_minimal_symbol_table): New function.
13003 (allocate_objfile): Call it.
13004 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13005 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13006 non-NULL.
13007 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13008 objfile has minimal symbols, compare minimal_symbol_count to zero,
13009 instead of comparing msymbols with NULL.
13010 * objfiles.c (have_minimal_symbols): Same.
13011 * solib-sunos.c (solib_add_common_symbols): Call
13012 terminate_minimal_symbol_table.
13013 * symfile.c (reread_symbols): Same.
13014
13015 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13016
13017 * s390-tdep.c (s390_address_class_type_flags)
13018 (s390_address_class_type_flags_to_name)
13019 (s390_address_class_name_to_type_flags): New functions.
13020 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13021 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13022
13023 2003-02-03 Michael Snyder <msnyder@redhat.com>
13024
13025 * arm-tdep.c: Fix spell-o in comment.
13026
13027 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13028
13029 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13030 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13031 error messages to contain BFD filename.
13032
13033 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13034
13035 Fix PR gdb/742 gdb/743 gdb/877
13036 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13037 (do_mixed_source_and_assembly): Use
13038 make_cleanup_ui_out_tuple_begin_end and
13039 make_cleanup_ui_out_tuple_begin_end.
13040 (do_mixed_source_and_assembly): Ditto.
13041 * thread.c (do_captured_list_thread_ids): Ditto.
13042 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13043 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13044 ui_out_tuple_end): Delete prototypes.
13045 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13046 ui_out_list_end, ui_out_tuple_end): Delete.
13047
13048 From Kevin Buettner <kevinb@redhat.com>:
13049 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13050 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13051 (do_cleanup_table_end): New functions.
13052 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13053 Use cleanups to invoke_ui_out_tuple_end().
13054 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13055 * cli/cli-setshow.c (cmd_show_list): Use
13056 make_cleanup_ui_out_tuple_begin_end.
13057
13058 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13059
13060 * frame.c (frame_unwind_register): New function.
13061 (frame_unwind_unsigned_register): Use.
13062 (frame_unwind_signed_register): Use.
13063 (frame_read_register): New function.
13064 * frame.h (frame_unwind_register): Declare.
13065 (frame_read_register): Declare.
13066
13067 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13068 and frame_unwind_register instead of read_memory, write_register
13069 and deprecated_write_register_bytes.
13070
13071 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13072
13073 * frame.h: Note that namelen can be negative.
13074 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13075 NAME's length.
13076
13077 * NEWS: Mention that the d10v's `regs' command is deprecated.
13078 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13079 (d10v_print_registers_info): New function.
13080 (show_regs): Call d10v_print_registers_info.
13081 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13082
13083 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13084
13085 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13086 lost in the previous patch.
13087
13088 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13089
13090 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13091 * stack.c (print_frame_info_base): Output complete FRAME tuple
13092 for synthesized frames.
13093
13094 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13095
13096 * mips-nat.c (zerobuf): Delete.
13097 (fetch_inferior_registers): Alloc local zerobuf.
13098 (fetch_core_registers): Alloc local zerobuf.
13099 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13100 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13101 * thread-db.c (thread_db_store_registers): Ditto.
13102 * sh-tdep.c (sh_do_register): Ditto.
13103 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13104 * remote-sim.c (gdbsim_store_register): Ditto.
13105 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13106 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13107 * monitor.c (monitor_supply_register): Ditto.
13108 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13109 * mips-nat.c (fetch_inferior_registers): Ditto.
13110 * m68klinux-nat.c (fetch_register): Ditto.
13111 * lynx-nat.c (fetch_inferior_registers): Ditto.
13112 (fetch_inferior_registers): Ditto.
13113 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13114 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13115 (hpux_thread_store_registers): Ditto.
13116 * hppah-nat.c (fetch_register): Ditto.
13117 * hppab-nat.c (fetch_register): Ditto.
13118 * hppa-tdep.c (pa_register_look_aside): Ditto.
13119 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13120 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13121
13122 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13123
13124 * gdbarch.sh: Explictly specify all method levels. When a
13125 variable with an empty level, provide a non-multi-arch default.
13126 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13127 * gdbarch.h: Re-generate.
13128 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13129 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13130
13131 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13132
13133 * defs.h (host_pointer_to_address): Delete declaration.
13134 (address_to_host_pointer): Delete declaration.
13135 * utils.c (host_pointer_to_address): Delete function.
13136 (address_to_host_pointer): Delete function.
13137 * procfs.c (procfs_address_to_host_pointer): New function.
13138 * procfs.c (proc_set_watchpoint): Use.
13139 (procfs_can_use_hw_breakpoint): Update comments.
13140 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13141 (som_solib_add): Use.
13142 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13143 * hppa-tdep.c (unwind_command): Use.
13144
13145 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13146
13147 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13148 strlen d_name.
13149
13150 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13151 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13152 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13153 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13154 (define_symbol): Update.
13155 * symfile.c (generic_load): Remove references to nindy.
13156 * symtab.c: Remove references to nindy.
13157
13158 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13159
13160 * infcmd.c (print_float_info): Delete code conditional on
13161 FLOAT_INFO.
13162 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13163 * config/m68k/nm-apollo68b.h: Ditto.
13164 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13165 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13166 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13167
13168 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13169
13170 * config/i386/tm-i386os9k.h: Removed.
13171
13172 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13173 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13174 they're identical to i[3456]86-*-sysv* now.
13175 * config/i386/i386v32.mh: Removed.
13176 * config/i386/xm-i386v32.h: Removed.
13177 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13178
13179 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13180
13181 * config/i386/i386dgux.mh: Removed.
13182 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13183
13184 * configure.in: Fix typo.
13185 * configure: Regenerated.
13186
13187 2003-01-31 David Carlton <carlton@math.stanford.edu>
13188
13189 * dwarf2read.c (dwarf2_locate_sections): Set
13190 dwarf_ranges_section.
13191
13192 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13193
13194 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13195 * utils.c: Update comments documenting legitimate uses of PTR.
13196
13197 * utils.c: Re-indent.
13198
13199 * config/djgpp/fnchange.lst: Delete nindy files.
13200 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13201 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13202 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13203 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13204 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13205 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13206 * Makefile.in (init.c): Remove nindy references.
13207 (saber_gdb): Delete rule.
13208 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13209 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13210 and a68v-nat.c.
13211 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13212 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13213 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13214 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13215 nindy-share/stop.h.
13216 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13217 * saber.suppress: Delete file.
13218
13219 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13220
13221 * dbxread.c (stabs_data): New static variable.
13222 (fill_symbuf): Support an in-memory buffer for stabs data.
13223 (stabs_seek): New function.
13224 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13225 (read_ofile_symtab): Use stabs_seek.
13226 (elfstab_build_psymtabs): Take an asection* instead of
13227 an offset and size. Relocate the stabs data if necessary.
13228 Save the section* for dbx_psymtab_to_symtab.
13229 * dwarf2read.c: Add section variables for each debug section.
13230 (dwarf2_locate_sections): Fill them in.
13231 (dwarf2_read_section): Take an asection* argument.
13232 Relocate the section contents if necessary.
13233 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13234 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13235 it to dwarf2_read_section.
13236 (dwarf2_build_frame_info): Update callers.
13237 * elfread.c (elf_symfile_read): Update call to
13238 elfstab_build_psymtabs.
13239 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13240 (DBX_STAB_SECTION): New macro.
13241 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13242 * symfile.c (symfile_dummy_outputs): New function.
13243 (symfile_relocate_debug_section): New function.
13244 * symfile.h (symfile_relocate_debug_section): Add prototype.
13245
13246 2003-01-31 Richard Henderson <rth@redhat.com>
13247
13248 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13249 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13250 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13251 * alpha-tdep.c (alpha_register_name): Add "unique".
13252 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13253 (ALPHA_UNIQUE_REGNUM): New.
13254 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13255
13256 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13257
13258 * README: Remove reference to Ericsson 1800 monitor.
13259 * Makefile.in (remote-es.o): Delete rule.
13260 (ALLDEPFILES): Delete remote-es.c.
13261 * remote-es.c: Delete file.
13262 * config/m68k/es1800.mt: Delete file.
13263 * config/djgpp/fnchange.lst: Update.
13264 * configure.tgt: Delete m68*-ericsson-* target.
13265
13266 2003-01-31 Adam Fedor <fedor@gnu.org>
13267
13268 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13269 Remove duplicate/shadowing variable of same name.
13270
13271 2003-01-30 Jim Blandy <jimb@redhat.com>
13272
13273 * symfile.c (find_separate_debug_file): Assert that the objfile's
13274 directory name we compute ends with a slash, and then assume that
13275 that's so everywhere we use it.
13276
13277 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13278
13279 * valops.c (value_assign): Flush frame cache after stores to memory
13280 also.
13281
13282 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13283
13284 * Makefile.in (mon960-rom.o): Delete rule.
13285 * mon960-rom.c: Delete file.
13286
13287 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13288
13289 * d10v-tdep.c: Include "frame-unwind.h".
13290 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13291 list.
13292 (next_addr, uses_frame): Delete.
13293 (struct d10v_unwind_cache): Define.
13294 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13295 Use info instead of next_addr and uses_frame globals.
13296 (d10v_frame_init_saved_regs): Delete function.
13297 (d10v_init_extra_frame_info): Delete function.
13298 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13299 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13300 init_frame_pc or frame_saved_pc.
13301 (d10v_pop_frame): Delete function.
13302 (do_d10v_pop_frame): Delete function.
13303 (d10v_frame_chain): Delete function.
13304 (d10v_frame_chain_valid): Delete function.
13305 (d10v_frame_pc_unwind): New function.
13306 (d10v_frame_id_unwind): New function.
13307 (saved_regs_unwinder): New function.
13308 (d10v_frame_register_unwind): New function.
13309 (d10v_frame_pop): New function.
13310 (d10v_frame_unwind): New variable.
13311 (d10v_frame_p): New function.
13312 (d10v_frame_saved_pc): Delete function.
13313 * Makefile.in (d10v-tdep.o): Update dependencies.
13314
13315 2003-01-30 J. Brobecker <brobecker@gnat.com>
13316
13317 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13318 causing some regressions due to a change in the default value
13319 for this macro.
13320
13321 2003-01-29 Richard Henderson <rth@redhat.com>
13322 Elena Zannoni <ezannoni@redhat.com>
13323 Daniel Jacobowitz <drow@mvista.com>
13324
13325 Fix PR gdb/961.
13326 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13327 variables.
13328 (RANGES_SECTION): New.
13329 (dwarf_ranges_buffer): New variable.
13330 (struct comp_unit_head): Add member "die".
13331 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13332 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13333 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13334 (dwarf2_locate_sections): Likewise.
13335 (dwarf2_build_psymtabs): Read .debug_ranges.
13336 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13337 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13338 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13339 Look for DW_AT_ranges and return the bounding box.
13340
13341 2003-01-29 Brian Ford <ford@vss.fsi.com>
13342
13343 * win32-nat.c (cygwin_pid): Removed as unused.
13344 (child_attach): Try fall back to Cygwin pid.
13345
13346 2003-01-29 Jim Blandy <jimb@redhat.com>
13347
13348 * objfiles.h (struct objfile): Doc fix.
13349
13350 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13351
13352 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13353 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13354 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13355 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13356 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13357 (FRAME_SAVED_PC): Change to a function with predicate.
13358 * gdbarch.h, gdbarch.c: Re-generate.
13359
13360 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13361
13362 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13363
13364 * complaints.c (complain): Delete function.
13365 * complaints.h (struct deprecated_complaint): Delete definition.
13366 (complain): Delete declaration.
13367
13368 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13369
13370 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13371 dummy frames.
13372
13373 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13374
13375 * sentinel-frame.h, sentinel-frame.c: New files.
13376 * Makefile.in (frame.o): Update dependencies.
13377 (SFILES): Add sentinel-frame.c.
13378 (sentinel_frame_h): Define.
13379 (COMMON_OBS): Add sentinel-frame.o.
13380 (sentinel-frame.o): Specify dependencies.
13381 * frame.c: Include "sentinel-frame.h".
13382 (frame_register_unwind): Rewrite assuming that there is always a a
13383 ->next frame.
13384 (frame_register, generic_unwind_get_saved_register): Ditto.
13385 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13386 (create_sentinel_frame, unwind_to_current_frame): New functions.
13387 (get_current_frame): Rewrite using create_sentinel_frame and
13388 unwind_to_current_frame. When possible, always create a frame.
13389 (create_new_frame): Set next to the sentinel frame.
13390 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13391 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13392 ID cache when necessary.
13393 (frame_saved_regs_id_unwind): Use frame_relative_level.
13394 (deprecated_generic_get_saved_register): Use frame_relative_level,
13395 get_frame_saved_regs, get_frame_pc, get_frame_base and
13396 get_next_frame.
13397 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13398 frame_register.
13399
13400 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13401
13402 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13403
13404 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13405
13406 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13407 (maintenance_set_profile_cmd): Use error () instead of warning ().
13408
13409 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13410
13411 * configure.in: Check that -pg works if using --enable-profiling.
13412 Check for monstartup and _mcleanup regardless of --enable-profiling.
13413 * maint.c: Check for monstartup and _mcleanup before using them.
13414 * config.in: Regenerated.
13415 * configure: Regenerated.
13416
13417 2003-01-24 Nick Clifton <nickc@redhat.com>
13418
13419 * Add sh2e support:
13420
13421 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13422
13423 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13424 (sh2e_show_regs): New.
13425 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13426 * config/sh/tm-sh.h: Added sh2e to comments.
13427
13428 2003-01-23 Jim Blandy <jimb@redhat.com>
13429
13430 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13431 symbols found)" message here; we haven't checked for a separate
13432 debug info file yet, so we don't know yet.
13433 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13434 we've looked everywhere. Also, there's no need to print a special
13435 message when we're loading the separate debug info file: the one
13436 symbol_file_add prints is fine.
13437
13438 2003-01-23 Alexander Larsson <alexl@redhat.com>
13439 Jim Blandy <jimb@redhat.com>
13440
13441 Add support for executables whose debug info has been separated
13442 out into a separate file, leaving only a link behind.
13443 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13444 and separate_debug_objfile_backlink.
13445 (put_objfile_before): New declaration.
13446 * symfile.c: #include "filenames.h".
13447 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13448 debug info in a separate file, read that, too. Save the addrs
13449 argument, so we can use it again to read the separated debug info;
13450 syms_from_objfile modifies the table we pass it.
13451 (reread_symbols): After re-reading an objfile, call
13452 reread_separate_symbols to refresh its separate debug info
13453 objfile, if it has one.
13454 (reread_separate_symbols, find_separate_debug_file,
13455 get_debug_link_info, separate_debug_file_exists): New functions.
13456 (debug_file_directory): New global var.
13457 (_initialize_symfile): Initialize debug_file_directory, and
13458 provide the new `set debug-file-directory' command to let the user
13459 change it.
13460 * objfiles.c (free_objfile): If this objfile has its debug info in
13461 a separate objfile, free that one too. If this is itself a
13462 separate debug info objfile, clear our parent's backlink.
13463 (put_objfile_before): New function.
13464 * utils.c (gnu_debuglink_crc32): New function.
13465 * defs.h (gnu_debuglink_crc32): New declaration.
13466 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13467 * configure.in: Handle --with-separate-debug-dir config option.
13468 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13469 * acconfig.h (DEBUGDIR): New macro.
13470 * configure, aclocal.m4, config.in: Regenerated.
13471
13472 2003-01-22 Jim Blandy <jimb@redhat.com>
13473
13474 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13475 like the old symbol_file_add, but taking new arguments: you can
13476 now pass in either a `struct section_addr_info' list to say where
13477 each section is loaded, or a `struct section_offsets' table. Pass
13478 these new arguments through to syms_from_objfile as appropriate.
13479 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13480 with the appropriate quiescent values for the new arguments.
13481
13482 * symfile.c: #include "gdb_assert.h".
13483 (syms_from_objfile): Add the ability to pass in a section offset
13484 table directly, as an alternative to the section_addr_info table.
13485 Document arguments better.
13486 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13487 * symfile.h (syms_from_objfile): Update declaration.
13488 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13489 syms_from_objfile.
13490 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13491
13492 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13493
13494 Original patch by Tom Tromey <tromey@cygnus.com> and
13495 Jason Molenda <jmolenda@apple.com>.
13496 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13497 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13498 * NEWS: Mention profiling.
13499 * configure.in (--enable-gdbtk): Fix typo.
13500 (--enable-profiling): New. Set PROFILE_CFLAGS.
13501 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13502 Fill in function.
13503 (profiling_state): New variable.
13504 (mcleanup_wrapper): New function.
13505 (_initialize_maint): Remove NOTYET, fix call to
13506 add_setshow_boolean_cmd for "maint set profile".
13507 * configure: Regenerated.
13508
13509 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13510
13511 * Makefile.in (install-gdbtk): Install PNG images too.
13512
13513 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13514
13515 * exec.c (text_start): Delete global variable.
13516 (exec_file_attach): Make text_start local to the function.
13517 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13518 * valops.c (hand_function_call): Delete code that handles
13519 BEFORE_TEXT_END and AFTER_TEXT_END.
13520 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13521 of CALL_DUMMY_LOCATION.
13522 * gdbarch.c: Regenerate.
13523 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13524 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13525 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13526 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13527 (text_end): Delete extern declaration.
13528
13529 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13530
13531 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13532 * blockframe.c (backtrace_below_main): Move to "frame.c".
13533 (frame_chain_valid): Delete check for backtrace_below_main.
13534 (_initialize_blockframe): Delete initialization, move ``set
13535 backtrace-below-main'' command to "frame.c".
13536 (do_flush_frames_sfunc): Delete function.
13537 * frame.c: Include "command.h" and "gdbcmd.h".
13538 (frame_type_from_pc): New function.
13539 (create_new_frame): Use frame_type_from_pc.
13540 (legacy_get_prev_frame): New function.
13541 (get_prev_frame): Rewrite. When an old style frame, call
13542 legacy_get_prev_frame. Otherwize, unwind the PC first.
13543 (_initialize_frame): Add ``set backtrace-below-main'' command.
13544 * Makefile.in (frame.o): Update dependencies.
13545
13546 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13547
13548 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13549 DEPRECATED_REGISTERS_INFO.
13550
13551 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13552
13553 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13554 Maintainers'. Update `Various Maintainers'.
13555
13556 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13557
13558 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13559 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13560 Suppress actual parameters when `-'.
13561 * gdbarch.h, gdbarch.c: Regenerate.
13562
13563 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13564
13565 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13566 code handling dummy frames.
13567
13568 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13569
13570 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13571 (struct frame_unwind): Add field pop.
13572 * frame.h (frame_pop): Declare.
13573 * frame.c (frame_saved_regs_pop): New function.
13574 (trad_frame_unwinder): Add frame_saved_regs_pop.
13575 (frame_pop): New function.
13576 * dummy-frame.c (dummy_frame_pop): New function.
13577 (discard_innermost_dummy): New function.
13578 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13579 (dummy_frame_unwind): Add dummy_frame_pop.
13580 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13581 * valops.c (hand_function_call): Ditto.
13582 * stack.c (return_command): Ditto.
13583
13584 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13585
13586 * cris-tdep.c: Fix function declaration indentation.
13587 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13588 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13589 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13590 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13591 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13592 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13593
13594 2003-01-18 Michael Chastain <mec@shout.net>
13595
13596 * README (Unpacking and Installation -- quick overview):
13597 Warn against ".../gdb-5.3/gdb/configure".
13598
13599 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13600
13601 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13602 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13603 (struct frame_unwind): Declare opaque.
13604 (dummy_frame_p): Declare function.
13605 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13606 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13607 * dummy-frame.c: Include "frame-unwind.h".
13608 (dummy_frame_p): New function.
13609 (dummy_frame_unwind): New variable.
13610 * frame.c: Include "frame-unwind.h".
13611 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13612 to use the new unwind field.
13613 (set_unwind_by_pc): Delete function.
13614 (create_new_frame, get_prev_frame): Set unwind field using
13615 frame_unwind_find_by_pc.
13616 (trad_frame_unwind, trad_frame_unwinder): New variables.
13617 * frame.h (trad_frame_unwind): Declare variable.
13618 (frame_id_unwind_ftype): Delete declaration.
13619 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13620 (struct frame_unwind): Declare opaque.
13621 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13622 register_unwind with a single unwind pointer.
13623 * frame-unwind.h, frame-unwind.c: New files.
13624 * Makefile.in (SFILES): Add frame-unwind.c.
13625 (frame_unwind_h): Define.
13626 (COMMON_OBS): Add frame-unwind.o.
13627 (frame-unwind.o): Specify dependencies.
13628 (frame.o, dummy-frame.o): Update dependencies.
13629
13630 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13631
13632 * ada-valprint.c: Eliminate PTR.
13633 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13634 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13635 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13636 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13637 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13638 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13639 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13640
13641 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13642
13643 * main.c (captured_main): Don't use PTR.
13644 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13645 * gdbtypes.c (lookup_primitive_typename): Ditto.
13646 (lookup_struct_elt_type): Ditto.
13647 * f-valprint.c (info_common_command): Ditto.
13648 (list_all_visible_commons): Ditto.
13649 * jv-typeprint.c (java_type_print_base): Ditto.
13650
13651 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13652 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13653 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13654 i386-interix-nat.c and i386-interix-tdep.c. Rename
13655 m68klinux-nat.c and m68klinux-tdep.c. Rename
13656 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13657 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13658 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13659 * main.c (captured_main): Use xfree, not free.
13660
13661 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13662
13663 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13664 ID back using a parameter.
13665 * frame.c (frame_id_unwind): Update call.
13666 (frame_saved_regs_id_unwind): Update.
13667 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13668 * dummy-frame.h (struct frame_id): Add opaque declaration.
13669 (dummy_frame_id_unwind): Update declaration.
13670
13671 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13672
13673 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13674
13675 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13676
13677 * MAINTAINERS (Stephen P. Smith): Updated email address.
13678
13679 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13680
13681 Fix PR gdb/898
13682 * breakpoint.c (until_break_command): Add new argument. Use it to
13683 decide whether to stop only at the current frame or not.
13684 * breakpoint.h (until_break_command): Update prototype.
13685 * infcmd.c (until_command): Add new argument to until_break_command
13686 call.
13687 (advance_command): New function.
13688 (_initialize_infcmd): Update help string for 'until' command.
13689 Add new 'advance' command.
13690
13691 2003-01-14 David Carlton <carlton@math.stanford.edu>
13692
13693 * linespec.c (decode_line_1): Normalize comments.
13694 (set_flags): Ditto.
13695 (locate_first_half): Ditto.
13696 (decode_compound): Ditto.
13697 (symtab_from_filename): Ditto.
13698 (decode_all_digits): Ditto.
13699 (decode_dollar): Ditto.
13700 (find_methods): Ditto.
13701 (find_toplevel_char): Ditto.
13702
13703 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13704
13705 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13706 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13707 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13708 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13709 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13710 * language.c, language.h, m32r-tdep.c: Update copyright.
13711 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13712 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13713 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13714 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13715 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13716 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13717
13718 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13719
13720 * stabsread.h (process_later, resolve_cfront_continuation):
13721 Obsolete.
13722 Update copyright years.
13723 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13724 Update copyright year.
13725 * dbxread.c(struct cont_elem): Obsolete.
13726 (process_later, process_now): Obsolete functions.
13727 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13728 Update copyright year.
13729 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13730 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13731 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13732 (parse_partial_symbols): Obsolete cfront support.
13733 * stabsread.c
13734 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13735 macros.
13736 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13737 read_cfront_baseclasses, read_cfront_member_functions,
13738 resolve_cfront_continuation,read_cfront_static_fields,
13739 copy_cfront_struct_fields): Obsolete functions.
13740 (define_symbol, read_one_struct_field): Obsolete cfront support.
13741 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13742 Update Copyright year.
13743
13744 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13745
13746 * stack.c (print_frame_info, print_stack_frame_base_stub,
13747 print_stack_frame_base, show_and_print_stack_frame_stub,
13748 show_and_print_stack_frame, print_only_stack_frame_stub,
13749 print_only_stack_frame): Delete functions.
13750 (print_stack_frame_stub): Call print_frame_info instead of
13751 print_frame_info_base.
13752 (print_frame_info_base): Rename to print_frame_info.
13753 (backtrace_command_1): Call print_frame_info, instead of
13754 print_frame_info_base.
13755 (current_frame_command): Call print_stack_frame, instead of
13756 print_only_stack_frame.
13757 (frame_command): Call print_stack_frame, instead of
13758 show_and_print_stack_frame.
13759 (up_command): Ditto.
13760 (down_command): Ditto.
13761 * frame.h (print_only_stack_frame): Delete prototype.
13762 * infrun.c (normal_stop): Call print_stack_frame, instead of
13763 show_and_print_stack_frame.
13764 * thread.c (info_threads_command): Call print_stack_frame, instead
13765 of print_only_stack_frame.
13766
13767 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13768
13769 * README (Graphical interface to GDB): Update URL. Point at
13770 gdb/links/.
13771
13772 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13773 version match.
13774
13775 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13776
13777 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13778 lines.
13779
13780 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13781
13782 * thread-db.c (attach_thread): Prototype.
13783 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13784 thread information (ti), and valid flags (th_valid, ti_valid).
13785 (attach_thread): Move target_pid_to_str call to after the thread
13786 is added to GDB's list. Initialize the cache.
13787 (thread_get_info_callback, thread_db_map_id2thr)
13788 (thread_db_get_info): New functions.
13789 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13790 (thread_db_store_registers, thread_db_thread_alive)
13791 (thread_db_get_thread_local_address): Use them.
13792 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13793 of calling error() for threads in unknown state.
13794
13795 (clear_lwpid_callback): New function.
13796 (thread_db_resume): Use it to clear the cache.
13797
13798 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13799
13800 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13801 (resume_callback): Remove dead code.
13802
13803 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13804
13805 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13806 predicate.
13807 * gdbarch.h, gdbarch.c: Regenerate.
13808 * stack.c (frame_info): Only initialize the saved registers when
13809 FRAME_INIT_SAVED_REGS_P.
13810 * frame.c (frame_saved_regs_register_unwind): Assert
13811 FRAME_INIT_SAVED_REGS_P.
13812 (deprecated_generic_get_saved_register): Ditto.
13813
13814 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13815
13816 * source.c (openp): Squelch warning about "filename".
13817
13818 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13819
13820 * source.c (openp): If the file does not exist don't necessarily
13821 search the path.
13822
13823 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13824
13825 Fix PR gdb/872.
13826 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13827 (integer_types_same_name_p): New function.
13828 (rank_one_type): Use it.
13829 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13830
13831 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13832
13833 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13834 variables.
13835 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13836 * configure.in: Add --with-sysroot.
13837 * configure: Regenerated.
13838 * main.c (gdb_sysroot): New variable.
13839 (captured_main): Initialize gdb_sysroot.
13840 * defs.h (gdb_sysroot): New extern declaration.
13841 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13842
13843 2003-01-12 Michael Chastain <mec@shout.net>
13844
13845 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13846
13847 2003-01-12 Michael Chastain <mec@shout.net>
13848
13849 * top.c (print_gdb_version): Bump copyright year to 2003.
13850
13851 2003-01-12 David Carlton <carlton@bactrian.org>
13852
13853 * linespec.c (symtab_from_filename): Rename variable 's' to
13854 'file_symtab'.
13855
13856 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13857
13858 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13859 dummy frame.
13860 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13861
13862 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13863
13864 * d10v-tdep.c: Include "gdb_assert.h".
13865 (d10v_store_return_value): Rewrite to match current interface.
13866 (d10v_extract_struct_value_address): Ditto.
13867 (d10v_extract_return_value): Ditto.
13868 (d10v_gdbarch_init): Set store_restore_value,
13869 extract_struct_value_address and extract_return_value.
13870
13871 2003-01-12 J. Brobecker <brobecker@gnat.com>
13872
13873 * hpread.c (set_namestring): New procedure replacing the
13874 SET_NAMESTRING macro.
13875 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13876 by calls to set_namestring.
13877
13878 2003-01-11 J. Brobecker <brobecker@gnat.com>
13879
13880 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13881 a compilation warning.
13882 (hpread_process_one_debug_symbol): Likewise.
13883
13884 2003-01-10 David Carlton <carlton@math.stanford.edu>
13885
13886 * linespec.c (decode_line_1): Rename variable 's' to
13887 'file_symtab'.
13888 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13889 (decode_dollar): Ditto.
13890 (decode_variable): Ditto.
13891 (symbol_found): Ditto.
13892
13893 2003-01-09 Michael Chastain <mec@shout.net>
13894
13895 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13896
13897 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13898
13899 * win32-nat.c (set_process_privilege): New function.
13900 (child_attach): Call set_process_privilege() to enable the
13901 SE_DEBUG_NAME user privilege if available in process token.
13902
13903 2003-01-10 J. Brobecker <brobecker@gnat.com>
13904
13905 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13906 compilation error in the previous revision.
13907
13908 2003-01-09 David Carlton <carlton@math.stanford.edu>
13909
13910 * linespec.c: Update copyright.
13911
13912 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13913
13914 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13915 than inferior_ptid.
13916 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13917
13918 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13919
13920 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13921 Update comments.
13922 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13923 (frame_saved_regs_zalloc): Update.
13924 (frame_saved_regs_register_unwind): Update.
13925 (create_new_frame): Update.
13926 (get_prev_frame): Update.
13927 (frame_extra_info_zalloc): Update.
13928 (deprecated_get_frame_saved_regs): Update.
13929 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13930 * cris-tdep.c: Update comment.
13931
13932 * somsolib.h: Fix function indentation.
13933 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13934 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13935 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13936 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13937 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13938
13939 * infrun.c (follow_fork): Use ISO C definition.
13940 * expprint.c (print_subexp): Use xfree instead of free.
13941 * charset.c: Include "gdb_string.h" instead of <string.h>.
13942 (register_iconv_charsets): Use ISO C definition.
13943 (host_charset, target_charset): Ditto.
13944 * Makefile.in (charset.o): Update dependencies.
13945 (mi-cmd-env.o): Update dependencies.
13946
13947 2003-01-08 Andrew Cagney <cagney@redhat.com>
13948
13949 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13950 get_frame_base.
13951
13952 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13953
13954 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13955 build directories. Save edited gdb output in Mbuild.log. If a
13956 build fails, remove any final GDB executable.
13957
13958 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13959
13960 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13961 replacing hex constants with function names and stripping leading
13962 file name directory prefixes.
13963
13964 2003-01-08 Andrew Cagney <cagney@redhat.com>
13965
13966 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13967 get_frame_base.
13968
13969 2003-01-08 David Carlton <carlton@math.stanford.edu>
13970
13971 * linespec.c (decode_line_1): Move code into decode_variable.
13972 (decode_variable): New function.
13973
13974 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13975
13976 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13977
13978 2003-01-08 Andrew Cagney <cagney@redhat.com>
13979
13980 * cris-tdep.c (cris_frame_init_saved_regs): Use
13981 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13982 saved_regs buffer.
13983 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13984 (sh64_nofp_frame_init_saved_regs): Ditto.
13985 (sh_fp_frame_init_saved_regs): Ditto.
13986 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13987 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13988 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13989 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13990
13991 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13992
13993 * minsyms.c (lookup_minimal_symbol): Update comment.
13994 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13995 (lookup_minimal_symbol_solib_trampoline): Likewise.
13996
13997 2003-01-08 Andrew Cagney <cagney@redhat.com>
13998
13999 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14000 frame_relative_level.
14001
14002 * alpha-tdep.c: Use get_frame_extra_info.
14003 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14004 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14005 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14006 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14007
14008 * alpha-tdep.c: Use get_next_frame.
14009 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14010 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14011 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14012 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14013 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14014 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14015 * xstormy16-tdep.c: Ditto.
14016
14017 2003-01-07 Andrew Cagney <cagney@redhat.com>
14018
14019 * alpha-tdep.c: Use get_frame_base.
14020 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14021 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14022 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14023 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14024 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14025 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14026 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14027 * config/sparc/tm-sparc.h: Ditto.
14028
14029 2003-01-07 Andrew Cagney <cagney@redhat.com>
14030
14031 * frame.c (deprecated_get_frame_context): New function.
14032 (deprecated_set_frame_context): New function.
14033 * frame.h (deprecated_get_frame_context): Declare.
14034 (deprecated_set_frame_context): Declare.
14035 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14036 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14037
14038 2003-01-07 Andrew Cagney <cagney@redhat.com>
14039
14040 * frame.c (deprecated_set_frame_next_hack): New function.
14041 (deprecated_set_frame_prev_hack): New function.
14042 * frame.h (deprecated_set_frame_next_hack): Declare.
14043 (deprecated_set_frame_prev_hack): Declare.
14044 * mcore-tdep.c (analyze_dummy_frame): Use
14045 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14046 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14047
14048 2003-01-07 David Carlton <carlton@math.stanford.edu>
14049
14050 * linespec.c (decode_line_1): Move code into decode_dollar.
14051 (decode_dollar): New function.
14052
14053 2003-01-07 Andrew Cagney <cagney@redhat.com>
14054
14055 * arm-tdep.c (arm_init_extra_frame_info): Use
14056 deprecated_update_frame_base_hack.
14057 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14058 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14059 (fix_frame_pointer): Ditto.
14060 (mn10300_analyze_prologue): Ditto.
14061
14062 2003-01-07 Andrew Cagney <cagney@redhat.com>
14063
14064 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14065 extra_info using frame_extra_info_zalloc.
14066 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14067 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14068 (sh64_init_extra_frame_info): Ditto.
14069 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14070 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14071 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14072 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14073 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14074 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14075 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14076 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14077 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14078 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14079 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14080 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14081
14082 * mn10300-tdep.c (analyze_dummy_frame): Use
14083 deprecated_set_frame_extra_info_hack.
14084 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14085
14086 2003-01-07 J. Brobecker <brobecker@gnat.com>
14087
14088 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14089 class is not scText. These do not define "real" procedures.
14090 (parse_partial_symbols): Likewise.
14091
14092 2003-01-06 Michael Snyder <msnyder@redhat.com>
14093
14094 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14095
14096 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14097
14098 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14099 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14100 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14101 deprecated_frame_xmalloc_with_cleanup.
14102 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14103 deprecated_frame_xmalloc.
14104 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14105 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14106
14107 2003-01-06 Andrew Cagney <cagney@redhat.com>
14108
14109 * x86-64-linux-tdep.c: Include "osabi.h".
14110 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14111
14112 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14113
14114 2003-01-06 Andrew Cagney <cagney@redhat.com>
14115
14116 * MAINTAINERS (Target Instruction Set Architectures): Update
14117 arm-elf. Can be built with -Werror, has been multiarched.
14118
14119 * value.h (unpack_long): Make buffer parameter constant.
14120 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14121 * scm-lang.h (scm_parse): Ditto.
14122 * defs.h (extract_typed_address, extract_address): Ditto.
14123 (extract_long_unsigned_integer): Ditto.
14124 * inferior.h (unsigned_pointer_to_address): Ditto.
14125 (signed_pointer_to_address): Ditto.
14126 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14127 * gdbarch.h, gdbarch.c: Regenerate.
14128 * findvar.c (extract_long_unsigned_integer): Update.
14129 (extract_address): Update.
14130 (extract_typed_address): Update.
14131 (unsigned_pointer_to_address): Update.
14132 * values.c (unpack_long): Update.
14133 (unpack_double): Update.
14134 (unpack_pointer): Update.
14135 (unpack_field_as_long): Update.
14136 * d10v-tdep.c (d10v_pointer_to_address): Update.
14137 * avr-tdep.c (avr_pointer_to_address): Update.
14138 * scm-lang.c (scm_unpack): Update.
14139 * findvar.c (signed_pointer_to_address): Update.
14140
14141 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14142
14143 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14144 since it is in i386-tdep.c.
14145
14146 2003-01-06 J. Brobecker <brobecker@gnat.com>
14147
14148 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14149 failure introduced in the previous change.
14150
14151 2003-01-05 Michael Chastain <mec@shout.net>
14152
14153 * README: Remove references to deleted remote-*.c files:
14154 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14155 remote-nrom.c, remote-os9k.c, remote-udi.c.
14156
14157 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14158
14159 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14160 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14161 i386_get_longjmp_target.
14162
14163 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14164
14165 * arm-tdep.c (prologue_cache): Change to a pointer.
14166 (_initialize_arm_tdep): Allocate prologue_cache.
14167 (check_prologue_cache): Update.
14168 (save_prologue_cache): Update.
14169 (arm_gdbarch_init): Update.
14170
14171 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14172
14173 * stabsread.c (update_method_name_from_physname): Call complaint()
14174 instead of error.
14175
14176 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14177
14178 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14179 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14180 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14181
14182 * blockframe.c: Include "gdbcmd.h" and "command.h".
14183 (backtrace_below_main): New variable.
14184 (file_frame_chain_valid, func_frame_chain_valid)
14185 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14186 (generic_func_frame_chain_valid): Remove functions.
14187 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14188 (_initialize_blockframe): New function.
14189 * Makefile.in (blockframe.o): Update dependencies.
14190 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14191 comment. Call frame_chain_valid ().
14192 * frame.h: Remove old prototypes. Add prototype for
14193 frame_chain_valid and update comments to match.
14194 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14195 Remove old comment.
14196 * gdbarch.h: Regenerated.
14197 * gdbarch.c: Regenerated.
14198
14199 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14200 set_gdbarch_frame_chain_valid.
14201 * avr-tdep.c (avr_gdbarch_init): Likewise.
14202 * cris-tdep.c (cris_gdbarch_init): Likewise.
14203 * frv-tdep.c (frv_gdbarch_init): Likewise.
14204 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14205 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14206 (i386_nw_init_abi): Likewise.
14207 (i386_gdbarch_init): Likewise.
14208 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14210 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14211 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14212 * mips-tdep.c (mips_gdbarch_init): Likewise.
14213 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14214 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14215 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14216 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14217 * s390-tdep.c (s390_gdbarch_init): Likewise.
14218 * sh-tdep.c (sh_gdbarch_init): Likewise.
14219 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14220 * v850-tdep.c (v850_gdbarch_init): Likewise.
14221 * vax-tdep.c (vax_gdbarch_init): Likewise.
14222 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14223
14224 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14225 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14226 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14227 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14228 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14229 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14230 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14231 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14232
14233 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14234
14235 * Makefile.in (acconfig_h): Remove incorrect macro.
14236 (config_h): Define.
14237 (osabi.o): Update dependencies.
14238 * configure.tgt: Set gdb_osabi based on target triplet.
14239 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14240 * configure: Regenerated.
14241 * config.in: Regenerated.
14242 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14243 (GDB_OSABI_DEFAULT): Define if not already defined.
14244 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14245 (set_osabi_string): New variables.
14246 (gdbarch_register_osabi): Add new OS ABI to
14247 gdb_osabi_available_names.
14248 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14249 (set_osabi, show_osabi): New functions.
14250 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14251
14252 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14253
14254 * arch-utils.c (gdbarch_info_init): Set osabi to
14255 GDB_OSABI_UNINITIALIZED.
14256 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14257 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14258 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14259 * gdbarch.c: Regenerated.
14260 * gdbarch.h: Regenerated.
14261 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14262 there's no BFD.
14263 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14264 * osabi.h (enum gdb_osabi): Move to defs.h.
14265 (gdbarch_init_osabi): Update prototype.
14266 * defs.h (enum gdb_osabi): Moved here.
14267 * Makefile.in: Update dependencies.
14268
14269 * alpha-tdep.h: Don't include "osabi.h".
14270 (struct gdbarch_tdep): Remove osabi member.
14271 * alpha-tdep.c: Include "osabi.h".
14272 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14273 iterate over arches. Update call to gdbarch_init_osabi.
14274 (alpha_dump_tdep): Don't dump osabi.
14275 * alpha-linux-tdep.c: Include "osabi.h".
14276 * alpha-osf1-tdep.c: Include "osabi.h".
14277 * alphafbsd-tdep.c: Include "osabi.h".
14278 * alphanbsd-tdep.c: Include "osabi.h".
14279
14280 * arm-tdep.h: Don't include "osabi.h".
14281 (struct gdbarch_tdep): Remove osabi member.
14282 * arm-tdep.c: Include "osabi.h".
14283 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14284 iterate over arches. Update call to gdbarch_init_osabi.
14285 (arm_dump_tdep): Don't dump osabi.
14286 * arm-linux-tdep.c: Include "osabi.h".
14287 * armnbsd-tdep.c: Include "osabi.h".
14288
14289 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14290 Update call to gdbarch_init_osabi.
14291
14292 * i386-tdep.h: Don't include "osabi.h".
14293 (struct gdbarch_tdep): Remove osabi member.
14294 * i386-tdep.c: Include "osabi.h".
14295 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14296 iterate over arches. Update call to gdbarch_init_osabi.
14297 (i386_dump_tdep): Don't dump osabi.
14298 * i386-linux-tdep.c: Include "osabi.h".
14299 * i386-sol2-tdep.c: Include "osabi.h".
14300 * i386bsd-tdep.c: Include "osabi.h".
14301 * i386gnu-tdep.c: Include "osabi.h".
14302 * i386ly-tdep.c: Include "osabi.h".
14303 * i386nbsd-tdep.c: Include "osabi.h".
14304 * i386obsd-tdep.c: Include "osabi.h".
14305
14306 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14307 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14308 check osabi when iterating over arches. Update call to
14309 gdbarch_init_osabi.
14310 (mips_dump_tdep): Don't dump osabi.
14311
14312 * ns32k-tdep.h: Don't include "osabi.h".
14313 (struct gdbarch_tdep): Remove.
14314 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14315 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14316 allocate tdep. Update call to gdbarch_init_osabi.
14317 (ns32k_dump_tdep): Remove.
14318 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14319 * ns32knbsd-tdep.c: Include "osabi.h".
14320
14321 * ppc-tdep.h: Don't include "osabi.h".
14322 (struct gdbarch_tdep): Remove osabi member.
14323 * rs6000-tdep.c: Include "osabi.h".
14324 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14325 osabi when iterating over arches. Update call to
14326 gdbarch_init_osabi.
14327 (rs6000_dump_tdep): Don't dump osabi.
14328 * ppc-linux-tdep.c: Include "osabi.h".
14329 * ppcnbsd-tdep.c: Include "osabi.h".
14330
14331 * sh-tdep.h: Don't include "osabi.h".
14332 (struct gdbarch_tdep): Remove osabi member.
14333 * sh-tdep.c: Include "osabi.h".
14334 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14335 iterate over arches. Update call to gdbarch_init_osabi.
14336 (sh_dump_tdep): Don't dump osabi.
14337 * shnbsd-tdep.c: Include "osabi.h".
14338
14339 * sparc-tdep.c: Include "osabi.h".
14340 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14341 iterate over arches. Update call to gdbarch_init_osabi.
14342 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14343 tdep structure.
14344
14345 * vax-tdep.h: Don't include "osabi.h".
14346 (struct gdbarch_tdep): Remove.
14347 * vax-tdep.c: Include "osabi.h".
14348 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14349 iterate over arches. Don't allocate tdep. Update call
14350 to gdbarch_init_osabi.
14351 (vax_dump_tdep): Remove.
14352 (_initialize_vax_tdep): Update call to gdbarch_register.
14353
14354 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14355
14356 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14357 entirely.
14358 (breakpoint_re_set_one): Don't fetch the value for a disabled
14359 watchpoint.
14360
14361 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14362
14363 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14364 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14365 (COERCE_FLOAT_TO_DOUBLE): Remove.
14366 * gdbarch.c: Regenerate.
14367 * gdbarch.h: Regenerate.
14368 * Makefile.in: Remove value_h from gdbarch_h.
14369 * valops.c (coerce_float_to_double): New variable.
14370 (default_coerce_float_to_double): Remove.
14371 (standard_coerce_float_to_double): Remove.
14372 (value_arg_coerce): Use coerce_float_to_double.
14373 (_initialize_valops): Add "set coerce-float-to-double".
14374 * value.h (default_coerce_float_to_double): Remove prototype.
14375 (standard_coerce_float_to_double): Remove prototype.
14376
14377 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14378 prototyped.
14379 * mdebugread.c (parse_symbol): Likewise.
14380 * stabsread.c (define_symbol): Mark all functions as prototyped.
14381
14382 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14383 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14384 set_gdbarch_coerce_float_to_double.
14385 * arm-tdep.c (arm_gdbarch_init): Likewise.
14386 * frv-tdep.c (frv_gdbarch_init): Likewise.
14387 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14388 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14389 * mips-tdep.c (mips_gdbarch_init): Likewise.
14390 (mips_coerce_float_to_double): Remove.
14391 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14392 (rs6000_coerce_float_to_double): Remove.
14393 * s390-tdep.c (s390_gdbarch_init): Likewise.
14394 * sh-tdep.c (sh_gdbarch_init): Likewise.
14395 (sh_coerce_float_to_double): Remove.
14396 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14397 (sparc_coerce_float_to_double): Remove.
14398 * v850-tdep.c (v850_gdbarch_init): Likewise.
14399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14400 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14401 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14402 (hppa_coerce_float_to_double): Remove prototype.
14403 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14404
14405 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14406
14407 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14408
14409 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14410
14411 Suggested by Stewart Brown <sb24@avaya.com>:
14412 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14413 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14414 (c_type_print_varspec_suffix): Likewise.
14415
14416 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14417
14418 * configure.in: Don't set and AC_SUBST SUBDIRS.
14419 * configure: Regenerated.
14420
14421 * configure.in: Remove code dealing with shared libraries.
14422 * Makefile.in: Remove HLDFLAGS and HLDENV.
14423 * configure: Regenerated.
14424
14425 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14426
14427 * frame.c (deprecated_frame_xmalloc): New function.
14428 (deprecated_set_frame_saved_regs_hack): New function.
14429 (deprecated_set_frame_extra_info_hack): New function.
14430 * frame.h (deprecated_frame_xmalloc): Declare.
14431 (deprecated_set_frame_saved_regs_hack): Declare.
14432 (deprecated_set_frame_extra_info_hack): Declare.
14433
14434 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14435
14436 * configure.in: Move code that provides the --enable-gdbtk option
14437 right after the code that handles the --enable-tui option, and
14438 polish it somewhat.
14439 * configure: Regenerated.
14440
14441 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14442 AC_CHECK_FUNCS and remove the old check for pread64.
14443 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14444 * acconfig.h (_GNU_SOURCE): Add.
14445 (HAVE_PREAD64): Remove.
14446 * configure, aclocal.m4, config.in: Regenerated.
14447
14448 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14449
14450 * alpha-tdep.c: Use get_frame_saved_regs.
14451 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14452 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14453 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14454 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14455 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14456
14457 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14458
14459 * configure.in: Remove all use of the SUBDIRS variable; add
14460 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14461 code providing the --enable-multi-ice option, and move it right in
14462 front of the code that checks whether gdbserver is supported.
14463 Polish that too.
14464 * configure: Regenerated.
14465 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14466 @SUBDIRS@.
14467
14468 2003-01-03 Andrew Cagney <cagney@redhat.com>
14469
14470 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14471 * avr-tdep.c, cris-tdep.c: Ditto.
14472 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14473 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14474
14475 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14476
14477 * configure.in: Remove --enable-netrom option.
14478 * configure: Regenerated.
14479
14480 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14481
14482 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14483 declaration for `struct re_pattern_buffer' instead.
14484 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14485
14486 2003-01-03 J. Brobecker <brobecker@gnat.com>
14487
14488 * mdebugread.c (parse_symbol): Count until the stEnd matching
14489 the structure name.
14490
14491 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14492
14493 * configure.in: Remove --with-cpu option.
14494 subscripts. Remove evil changequotes here.
14495 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14496 * config.in, configure: Regenerated.
14497
14498 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14499 * configure.in: Cleanup section that sources GDB and BFD configure
14500 subscripts. Remove evil changequotes here.
14501 * config.in, configure: Regenerated.
14502
14503 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14504
14505 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14506 frame accessor methods.
14507 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14508 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14509 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14510 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14511 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14512 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14513 * z8k-tdep.c: Ditto.
14514
14515 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14516
14517 * configure.in: Remove UI_OUT configuration code.
14518 * ada-lang.c: Update assuming UI_OUT is always true.
14519 * Makefile.in (UIOUT_CFLAGS): Remove.
14520 * configure: Regenerated.
14521 * TODO: Remove blurb about elimination of -DUI_OUT.
14522
14523 * configure.in: Move code that provides the --enable-gdbcli,
14524 --enable-gdbmi options right before the code that handles the
14525 --enable-tui option. Polish a bit.
14526 * configure: Regenerated.
14527
14528 * configure.in: Rewrite check for GNU regex and the
14529 --without-included regex option, and move it into the "Checks for
14530 library functions" section. This makes us use the system regex
14531 again by default on systems with version 2 of the GNU C library.
14532 This was apparently broken.
14533 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14534 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14535 * config.in, configure: Regenerated.
14536
14537 * configure.in: Move code that provides the --enable-tui option
14538 before the "Checks for libraries" section. Polish the code
14539 somewhat and set need_curses to yes if we build the TUI. Rewrite
14540 code that looks for a library providing termcap functionality to
14541 match more closely what's done in the Readline library, and move
14542 it into to the "Checks for libraries" section.
14543 * configure: Regenerated.
14544 * Makefile.in (TERMCAP): Remove variable.
14545 * config/i386/go32.mh (TERMCAP): Remove variable.
14546
14547 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14548
14549 * MAINTAINERS: Mention gdb_mbuild.sh.
14550 * gdb_mbuild.sh: Rewrite.
14551
14552 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14553
14554 * configure.in: Fix typo in last change.
14555 * config.in, configure: Regenerated.
14556
14557 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14558
14559 * valarith.c (value_binop): Delete obsolete code and comments.
14560 * configure.host: Ditto.
14561 * buildsym.h (make_blockvector): Ditto.
14562 * buildsym.c (make_blockvector): Ditto.
14563 * defs.h (enum language): Ditto.
14564 (chill_demangle): Ditto.
14565 * elfread.c (elf_symtab_read): Ditto.
14566 * dwarfread.c (CHILL_PRODUCER): Ditto.
14567 (set_cu_language): Ditto.
14568 (handle_producer): Ditto.
14569 * expprint.c (print_subexp): Ditto.
14570 * gdbtypes.c (chill_varying_type): Ditto.
14571 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14572 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14573 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14574 (chill_varying_type): Ditto.
14575 * language.h (_LANG_chill): Ditto.
14576 * language.c (binop_result_type, integral_type): Ditto.
14577 (character_type, string_type, structured_type): Ditto.
14578 (lang_bool_type, binop_type_check): Ditto.
14579 * stabsread.h (os9k_stabs): Ditto.
14580 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14581 (define_symbol, read_type, read_struct_fields): Ditto.
14582 (read_array_type, read_enum_type, read_huge_number): Ditto.
14583 (read_range_type, start_stabs): Ditto.
14584 * symfile.c (init_filename_language_table): Ditto.
14585 (add_psymbol_with_dem_name_to_list): Ditto.
14586 * symtab.c (symbol_init_language_specific): Ditto.
14587 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14588 * symtab.h (struct general_symbol_info): Ditto.
14589 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14590 * typeprint.c (typedef_print): Ditto.
14591 * utils.c (fprintf_symbol_filtered): Ditto.
14592 * valops.c (value_cast, search_struct_field, value_slice): Delete
14593 obsolete code.
14594 (varying_to_slice): Delete function.
14595 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14596 (varying_to_slice): Delete declaration.
14597 * MAINTAINERS: Update.
14598
14599 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14600
14601 * configure.in: Reorganize "Checks for library functions section"
14602 a bit. Remove check for `btowc' and `isascii' functions.
14603 * configure: Regenerated.
14604
14605 * acconfig.h (_MSE_INT_H): Remove.
14606 * configure.in: Create "Checks for header files" section, and move
14607 appropriate tests there. Don't check for objlist.h, wchar.h,
14608 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14609 misdetection fix. Also add "Checks for types", "Checks for
14610 compiler characteristics" and "Checks for library functions"
14611 sections.
14612 * config.in, configure: Regenerated.
14613
14614 * configure.in: Create "Checks for programs" section, and move
14615 appropriate tests there.
14616
14617 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14618
14619 * configure.in: Create "Checks for libraries" section, and move
14620 appropriate tests there. Cleanup check for wctype in libw. Use
14621 AC_SEARCH_LIBS to see whether we need libsocket.
14622 * configure: Regenerated.
14623
14624 For older changes see ChangeLog-2002
14625 \f
14626 Local Variables:
14627 mode: change-log
14628 left-margin: 8
14629 fill-column: 74
14630 version-control: never
14631 End:
This page took 0.304407 seconds and 5 git commands to generate.