* gdbarch.sh (skip_solib_resolver): Change into a multi-arch
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-14 Mark Kettenis <kettenis@gnu.org>
2
3 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
4 function.
5 * gdbarch.c, gdbarch.h: Regenerate.
6 * infrun.c (handle_inferior_event): Call
7 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
8 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
9 definition.
10 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
11 prototype.
12
13 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
14
15 * libunwind-frame.c: New file.
16 * libunwind-frame.h: New file.
17 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
18 * configure.in: Add --with-libunwind option support. Define
19 HAVE_LIBUNWIND if libunwind support selected / defaulted.
20 Also check for libunwind.h and libunwind-ia64.h headers.
21 * configure: Regenerated.
22 * Makefile.in: Add support for libunwind-frame.o.
23 * config.in: Regenerated.
24
25 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
26
27 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
28 set up the ia64 linux native target method for getting the kernel
29 unwind table.
30 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
31 * inftarg.c (child_xfer_partial): Enable section of code to
32 handle TARGET_OBJECT_UNWIND_TABLE.
33 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
34
35 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
36
37 * config/arm/nbsd.mt (TM_FILE): Define.
38 * config/arm/tm-nbsd.h: New file.
39
40 2003-11-14 Andrew Cagney <cagney@redhat.com>
41
42 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
43 * ppc-sysv-tdep.c: Include "objfiles.h".
44 (ppc64_sysv_abi_push_dummy_call): Provide the
45 the FN's objfile when looking for the descriptor.
46
47 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
48 "name_of_malloc" to ".malloc".
49
50 2003-11-13 Mark Kettenis <kettenis@gnu.org>
51
52 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
53
54 2003-11-13 David Carlton <carlton@kealia.com>
55
56 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
57
58 2003-11-13 Andrew Cagney <cagney@redhat.com>
59
60 * arch-utils.h (selected_architecture_name): Declare.
61 (selected_byte_order): Declare.
62 * arch-utils.c (selected_byte_order): New function.
63 (selected_architecture_name): New function.
64 (target_architecture_auto): Make static.
65 (set_architecture_string): Make static.
66 (target_byte_order): Make static.
67 (target_byte_order_auto): Make static.
68 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
69 non-multi-arch definition.
70 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
71 (target_byte_order, target_architecture): Delete declaration.
72 (target_byte_order_auto, target_architecture_auto): Ditto.
73 * gdbarch.h: Re-generate.
74 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
75 "selected_byte_order".
76
77 2003-11-13 Andrew Cagney <cagney@redhat.com>
78
79 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
80
81 2003-11-13 Jim Blandy <jimb@redhat.com>
82
83 * cp-namespace.c: Doc fix.
84
85 2003-11-12 Michael Snyder <msnyder@redhat.com>
86
87 * sh64_tdep.c: Regularize some names.
88 (sh_sh64_register_name): Rename to sh64_register_name.
89 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
90 (sh_sh64_register_byte): Rename to sh64_register_byte.
91 (sh_sh64_build_float_register_type):
92 Rename to sh64_build_float_register_type.
93 (sh_sh64_register_convert_to_virtual):
94 Rename to sh64_register_convert_to_virtual.
95 (sh_sh64_register_convert_to_raw):
96 Rename to sh64_register_convert_to_raw.
97
98 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
99 sh64_media_reg_base_num, sh64_compact_reg_base_num,
100 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
101 sh64_extract_return_value, sh64_show_media_regs,
102 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
103 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
104 sh64_pseudo_register_read, sh64_pseudo_register_write,
105 sh64_do_pseudo_register, sh_compact_print_registers_info):
106 Delete unused variable 'tdep'.
107
108 * sh64-tdep.c: Coding standard and spelling comment fixes.
109 (sh64_extract_return_value): Replace deprecated_store_floating
110 with store_typed_floating.
111 (sh_sh64_register_convert_to_raw): Replace
112 deprecated_store_floating with store_typed_floating.
113 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
114 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
115 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
116 sh64_extract_struct_value_address, sh64_pop_frame,
117 sh64_extract_return_value, sh64_store_return_value,
118 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
119 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
120 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
121 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
122 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
123 deprecated_register_virtual_type, deprecated_register_raw_size,
124 deprecated_max_register_raw_size, or
125 deprecated_max_register_virtual_size. Instead, just set
126 gdbarch_register_type.
127 (sh_sh64_register_raw_size): Delete.
128 (sh_sh64_register_virtual_size): Delete.
129
130 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
131
132 * dwarf2read.c (struct dwarf2_cu): New type.
133
134 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
135 dwarf2_cu structure to pass down.
136
137 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
138 (add_partial_enumeration, locate_pdi_sibling, process_die)
139 (read_file_scope, read_func_scope)
140 (read_lexical_block_scope, dwarf2_get_pc_bounds)
141 (dwarf2_add_field, dwarf2_attach_fields_to_type)
142 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
143 (read_structure_scope, read_enumeration, read_array_type)
144 (read_common_block, read_namespace, read_tag_pointer_type)
145 (read_tag_ptr_to_member_type, read_tag_reference_type)
146 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
147 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
148 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
149 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
150 (read_full_die. read_attribute_value, read_attribute)
151 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
152 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
153 (die_containing_type, type_at_offset, tag_type_to_type)
154 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
155 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
156
157 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
158
159 PR breakpoints/1450
160 * breakpoint.c (insert_bp_location): Fix a logic error by returning
161 0 after a catchpoint fails.
162
163 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
164
165 * mips-tdep.c (msymbol_size): Delete.
166
167 2003-11-07 Michael Chastain <mec@shout.net>
168
169 * symtab.h (struct minimal_symbol): Add size.
170 * dbxread.c: Use it.
171 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
172 Rename to record_minimal_symbol.
173 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
174 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
175 (install_minimal_symbols): Ditto.
176 * objfiles.c (terminate_minimal_symbol_table): Ditto.
177 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
178 * m68hc11-tdep.c: Ditto.
179 * mips-tdep.c: Ditto.
180 * sh64-tdep.c: Ditto.
181
182 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
183
184 * MAINTAINERS: Change my e-mail address.
185
186 2003-11-10 Andrew Cagney <cagney@redhat.com>
187
188 * gdbarch.sh (return_value): Replace "inval" and "outval" with
189 "readbuf" and "writebuf".
190 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
191 * d10v-tdep.c (d10v_return_value): Ditto.
192 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
193 (ppc_sysv_abi_broken_return_value): Ditto.
194 (ppc64_sysv_abi_return_value): Ditto.
195 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
196 (ppc_sysv_abi_return_value): Ditto.
197 (ppc_sysv_abi_broken_return_value): Ditto.
198 (ppc64_sysv_abi_return_value): Ditto.
199 * values.c (register_value_being_returned): Update call.
200 * stack.c (return_command): Update call.
201 * gdbarch.h, gdbarch.c: Re-generate.
202
203 * target.h (struct target_ops): Order xfer buffer parameters "read
204 write" not "write read".
205 * bfd-target.c (target_bfd_xfer_partial): Update.
206 * remote.c (remote_xfer_partial): Update.
207 * inftarg.c (child_xfer_partial): Update.
208 * target.c (default_xfer_partial): Update.
209 (target_read_partial, target_write_partial): Update.
210 (debug_to_xfer_partial): Update.
211
212 * arch-utils.h, arch-utils.c: Fix typo in comment.
213
214 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
215 (gdbarch_from_bfd): Call gdbarch_find_by_info.
216 (set_gdbarch_from_file): Call
217 "deprecated_current_gdbarch_select_hack".
218
219 2003-11-09 Andrew Cagney <cagney@redhat.com>
220
221 * arch-utils.c (gdbarch_update_p): New function.
222 * gdbarch.sh (gdbarch_update_p): Delete function.
223 (find_arch_by_info, gdbarch_find_by_info): New functions.
224 (deprecated_current_gdbarch_select_hack): New function.
225 * gdbarch.c: Re-generate.
226
227 * gdbarch.sh (clear_gdbarch_swap): Delete function.
228 (swapout_gdbarch_swap): Delete function.
229 (swapin_gdbarch_swap): Delete function.
230 (init_gdbarch_swap): Delete function.
231 (initialize_non_multiarch): Delete function.
232 (current_gdbarch_swap_in_hack): New function.
233 (current_gdbarch_swap_out_hack): New function.
234 (current_gdbarch_swap_init_hack): New function.
235 * gdbarch.c: Re-generate.
236
237 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
238 parameter to "current_gdbarch". Add comment explaining why.
239 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
240 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
241 * gdbarch.c: Re-generate.
242
243 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
244 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
245 * config/s390/xm-linux.h: Delete file.
246 * config/m88k/xm-delta88v4.h: Delete stray.
247
248 * Makefile.in (arch-utils.o): Update dependencies.
249 * arch-utils.c: Include "osabi.h".
250 (gdbarch_info_fill): New function.
251 * arch-utils.h (gdbarch_info_fill): Declare.
252 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
253 * gdbarch.c: Re-generate.
254
255 2003-11-09 Mark Kettenis <kettenis@gnu.org>
256 David S. Miller <davem@redhat.com>
257
258 * glibc-tdep.c, glibc-tdep.h: New files.
259 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
260 * config/i386/linux.mt (TDEPFILES): Likewise.
261 * i386-linux-tdep.c (glibc-tdep.h): Include.
262 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
263 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
264 * arm-linux-tdep.c (glibc-tdep.h): Include.
265 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
266 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
267 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
268 (glibc_tdep_h): Define.
269 (glibc-tdep.o): Add dependencies.
270 (arm-linux-tdep.o): Update dependencies.
271 (i386-linux-tdep.o): Likewise.
272
273 2003-11-09 Andrew Cagney <cagney@redhat.com>
274
275 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
276 * config/mips/nm-irix6.h: Delete file.
277 * config/mips/nm-linux.h: Update copyright.
278 (MIPS_GNULINUX_TARGET): Delete macro.
279 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
280 * config/mips/xm-irix6.h: Delete file.
281 * config/mips/linux.mh (XM_FILE): Delete definition.
282 * config/mips/xm-linux.h: Delete file.
283
284 2003-11-09 Andrew Cagney <cagney@redhat.com>
285
286 * d10v-tdep.c (d10v_return_value): New function.
287 (d10v_use_struct_convention): Delete function.
288 (d10v_store_return_value): Delete function.
289 (d10v_extract_struct_value_address): Delete function.
290 (d10v_gdbarch_init): Set "return_value" instead of
291 "extract_return_value", "store_return_value",
292 "extract_struct_value_address", and "use_struct_convention".
293 (RET1_REGNUM): Delete const.
294
295 2003-11-09 Mark Kettenis <kettenis@gnu.org>
296
297 From David S. Miller <davem@redhat.com>:
298 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
299 * gdbarch.c, gdbarch.h: Regenerated.
300 * arch-utils.c (generic_skip_solib_resolver): New function.
301 * arch-utils.h (generic_skip_solib_resolver): New prototype.
302 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
303
304 2003-11-07 Andrew Cagney <cagney@redhat.com>
305
306 * top.c (print_gdb_version): Replace STREQ with strcmp.
307 * valops.c (value_struct_elt_for_reference): Ditto.
308 (value_struct_elt_for_reference): Ditto.
309 * symtab.c (gdb_mangle_name): Ditto.
310 (find_line_symtab): Ditto.
311 * symmisc.c (maintenance_print_symbols): Ditto.
312 * symfile.c (symbol_file_command): Ditto.
313 * stabsread.c (define_symbol, read_type): Ditto.
314 (cleanup_undefined_types, scan_file_globals): Ditto.
315 * solib.c (solib_map_sections): Ditto.
316 * solib-svr4.c (bfd_lookup_symbol): Ditto.
317 * rs6000-tdep.c (skip_prologue): Ditto.
318 * p-valprint.c (pascal_value_print): Ditto.
319 (pascal_object_is_vtbl_ptr_type): Ditto.
320 * objfiles.c (in_plt_section): Ditto.
321 * minsyms.c (lookup_minimal_symbol): Ditto.
322 (compact_minimal_symbols): Ditto.
323 (find_solib_trampoline_target): Ditto.
324 * mdebugread.c (parse_type): Ditto.
325 * language.c (set_language_command): Ditto.
326 (set_type_command, set_range_command): Ditto.
327 * f-lang.c (add_common_block): Ditto.
328 (add_common_block): Ditto.
329 (find_first_common_named): Ditto.
330 (patch_all_commons_by_name): Ditto.
331 * elfread.c (elf_locate_sections): Ditto.
332 (elf_locate_sections): Ditto.
333 (elfstab_offset_sections): Ditto.
334 * dwarf2read.c (dwarf2_locate_sections): Ditto.
335 * dbxread.c (add_old_header_file): Ditto.
336 (find_corresponding_bincl_psymtab): Ditto.
337 (read_dbx_symtab, process_one_symbol): Ditto.
338 * coffread.c (patch_opaque_types): Ditto.
339 * cli/cli-decode.c (delete_cmd): Ditto.
340 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
341 * c-typeprint.c (c_type_print_base): Ditto.
342 * breakpoint.c (bpstat_stop_status): Ditto.
343 (clear_command, breakpoint_re_set_one): Ditto.
344
345 2003-11-07 Andrew Cagney <cagney@redhat.com>
346
347 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
348 * bcache.c (struct bstring): Make "length" an unsigned short, add
349 "half_hash".
350 (struct bcache): Add "half_hash_error_count".
351 (bcache): Compute and save the "half_hash". Compare the
352 "half_hash" before comparing the length. Update
353 half_hash_error_count.
354
355 2003-11-07 Andrew Cagney <cagney@redhat.com>
356
357 * inftarg.c (child_xfer_partial): New function
358 (init_child_ops): Set "to_xfer_partial".
359
360 2003-11-07 Andrew Cagney <cagney@redhat.com>
361
362 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
363 set "return_value" instead of "use_struct_convention".
364 (ppc_linux_use_struct_convention): Delete function.
365 (ppc_linux_return_value): New function.
366 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
367 (ppc_sysv_abi_broken_return_value): New function.
368 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
369 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
370 static.
371 (ppc_sysv_abi_extract_return_value): Delete function.
372 (ppc_sysv_abi_broken_extract_return_value): Delete function.
373 (ppc_sysv_abi_store_return_value): Delete function.
374 (ppc_sysv_abi_broken_store_return_value): Delete function.
375 (ppc_sysv_abi_use_struct_convention): Delete function.
376 (ppc64_sysv_abi_use_struct_convention): Delete function.
377 (ppc64_sysv_abi_extract_return_value): Delete function.
378 (ppc64_sysv_abi_store_return_value): Delete function.
379 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
380 (ppcnbsd_init_abi): Set "return_value", instead of
381 "use_struct_convention", "extract_return_value", and
382 "store_return_value".
383 (ppcnbsd_use_struct_convention): Delete function.
384 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
385 (ppc_sysv_abi_return_value): Declare.
386 (ppc_sysv_abi_broken_return_value): Declare.
387 (ppc_sysv_abi_use_struct_convention): Delete.
388 (ppc_sysv_abi_store_return_value): Delete.
389 (ppc_sysv_abi_extract_return_value): Delete.
390 (ppc_sysv_abi_broken_store_return_value): Delete.
391 (ppc_sysv_abi_broken_extract_return_value): Delete.
392 (ppc64_sysv_abi_use_struct_convention): Delete.
393 (ppc64_sysv_abi_extract_return_value): Delete.
394 (ppc64_sysv_abi_store_return_value): Delete.
395 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
396 set "return_value" instead of "extract_return_value",
397 "store_return_value", and "use_struct_convention".
398
399 2003-11-07 Mark Kettenis <kettenis@gnu.org>
400
401 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
402
403 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
404 fscanf.
405
406 2003-11-07 Mark Kettenis <kettenis@gnu.org>
407
408 * fbsd-proc.c: Fix formatting.
409
410 2003-11-06 Kevin Buettner <kevinb@redhat.com>
411
412 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
413 Define.
414 (new_variant): Set name for iacc0_regnum.
415 (frv_register_name): Accommodate pseudo-registers.
416 (frv_register_type): Add case for iacc0_regnum.
417 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
418 (frv_gdbarch_init): Set number of pseudo registers. Establish
419 pseudo-register read/write methods.
420
421 2003-11-06 Andrew Cagney <cagney@redhat.com>
422
423 * valops.c (destructor_name_p): Replace STREQN with strncmp.
424 * top.c (command_line_input): Ditto.
425 * objc-exp.y (yylex): Ditto.
426 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
427 * jv-exp.y (yylex): Ditto.
428 * f-exp.y (yylex): Ditto.
429 * event-top.c (command_line_handler): Ditto.
430 * environ.c (get_in_environ): Ditto.
431 (set_in_environ): Ditto.
432 * dwarfread.c (handle_producer): Ditto.
433 * dbxread.c (process_one_symbol): Ditto.
434 * c-typeprint.c (c_type_print_base): Ditto.
435 * c-exp.y (yylex): Ditto.
436
437 2003-11-06 Andrew Cagney <cagney@redhat.com>
438 Jeff Johnston <jjohnstn@redhat.com>
439
440 * target.c (add_target): Only set "to_xfer_partial" when NULL.
441 (init_dummy_target): Set "to_xfer_partial".
442
443 2003-11-06 Andrew Cagney <cagney@redhat.com>
444
445 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
446 REGISTER_CONVENTION.
447
448 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
449
450 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
451 static.
452
453 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
454
455 * breakpoint.c (remove_breakpoint): Take an bp_location
456 instead of a breakpoint argument. Check the bp_location's type.
457 Fix a reversed condition for hardware breakpoints.
458
459 (insert_bp_location): Update call to remove_breakpoint.
460 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
461 (remove_hw_watchpoints): Likewise.
462 (reattach_breakpoints): Likewise.
463 (detach_breakpoints): Likewise.
464 (delete_breakpoint): Likewise.
465
466 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
467
468 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
469 (beakpoint_init_inferior): Likewise.
470 (breakpoint_here_p): Likewise. Only check addresses for software
471 or hardware breakpoints.
472 (breakpoint_inserted_here_p): Likewise.
473 (breakpoint_thread_match): Likewise. Correct comment.
474 (bpstat_have_active_hw_watchpoints): Likewise.
475 (check_duplicates): Likewise.
476
477 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
478
479 * breakpoints.c (insert_bp_location): New function, broken out
480 from insert_breakpoints. Work on an bp_location instead of a
481 breakpoint.
482 (insert_breakpoints): Use it.
483
484 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
485
486 * breakpoint.h (struct bp_location): Add section.
487 (struct breakpoint): Remove section.
488 * breakpoint.c (insert_breakpoints, remove_breakpoint)
489 (breakpoint_here_p, breakpoint_inserted_here_p)
490 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
491 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
492 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
493 section through loc.
494
495 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
496
497 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
498 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
499
500 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
501
502 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
503 arguments. Initialize owner and type for the new breakpoint
504 location item.
505 (set_raw_breakpoint): Update call to allocate_bp_location.
506
507 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
508
509 * breakpoint.h (struct bp_location): Add a chain pointer.
510 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
511 macros.
512 (bp_location_chain): New variable.
513 (allocate_bp_location): New function.
514 (set_raw_breakpoint): Use it.
515 (delete_breakpoint): Remove ->loc from the bp_location_chain.
516
517 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
518
519 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
520 (struct breakpoint): Remove address, shadow_contents, inserted,
521 requested_address, and duplicate. Add a struct bp_location.
522 * breakpoint.c (condition_command, read_memory_nobpt)
523 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
524 (reattach_breakpoints, update_breakpoints_after_exec)
525 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
526 (breakpoint_init_inferior, breakpoint_here_p)
527 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
528 (breakpoint_thread_match, bpstat_stop_status)
529 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
530 (describe_other_breakpoints, check_duplicates)
531 (make_breakpoint_permanent, create_thread_event_breakpoint)
532 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
533 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
534 (watch_command_1, print_one_exception_catchpoint)
535 (clear_command, breakpoint_re_set_one): Adjust member accesses to
536 use the breakpoint's ->loc.
537 (set_raw_breakpoint): Likewise. Initialize ->loc.
538 (delete_breakpoint): Likewise. Free ->loc.
539
540 2003-11-05 Andrew Cagney <cagney@redhat.com>
541
542 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
543 macro.
544 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
545 * config/i386/tm-cygwin.h
546 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
547 * config/powerpc/tm-linux.h
548 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
549 (at_subroutine_call_instruction_target): Delete declaration.
550 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
551 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
552 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
553
554 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
555 "struct bfd_section" and "struct bfd".
556 * target.h (struct section_table): Ditto.
557 * rs6000-nat.c (xcoff_relocate_core): Ditto.
558 * solib-svr4.c (elf_locate_base): Ditto.
559 * pa64solib.c (dld_cache_t): Ditto.
560 * objfiles.h (struct obj_section): Ditto.
561 * objfiles.c (add_to_objfile_sections): Ditto.
562 * exec.c (bfdsec_to_vmap): Ditto.
563 (add_to_section_table): Ditto.
564 (build_section_table): Ditto.
565 * corelow.c (get_core_register_section): Ditto.
566 * coffread.c (find_linenos): Ditto.
567 * elfread.c (elf_interpreter): Delete #if0'd function.
568
569 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
570 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
571 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
572 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
573
574 * arch-utils.h (generic_cannot_extract_struct_value_address):
575 Delete declaration.
576 * wince.c (_initialize_wince): Fix multi-line string.
577 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
578
579 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
580
581 * top.c (execute_command): Fix broken logic for command execution
582 while inferior is running in async mode.
583
584 2003-11-06 Mark Kettenis <kettenis@gnu.org>
585
586 * dwarf2-frame.c (execute_cfa_program): Mark register as
587 REG_SAVED_REG for DW_CFA_register opcode.
588
589 2003-11-05 Mark Kettenis <kettenis@gnu.org>
590
591 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
592 %rsp, %rip and %eflags to match ABI-change.
593
594 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
595
596 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
597 (ia64_gdbarch_init): Don't bother calculating the os.
598 Instead use the gdbarch_info struct and look at the osabi field.
599 Also use gdbarch_list_lookup_by_info() to look for a
600 candidate gdbarch.
601
602 2003-11-05 Kevin Buettner <kevinb@redhat.com>
603
604 * frv-tdep.c (frv_register_byte): Delete.
605 (frv_extract_return_value, frv_store_return_value)
606 (frv_extract_struct_value_address): Don't call frv_register_byte().
607 Convert to non-deprecated form.
608 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
609 Convert calls to set_gdbarch_deprecated_extract_return_value(),
610 set_gdbarch_deprecated_store_return_value(), and
611 set_gdbarch_deprecated_extract_struct_value_address() into
612 non-deprecated forms.
613
614 2003-11-05 Andrew Cagney <cagney@redhat.com>
615
616 * mips-tdep.c (mips_dump_tdep): Do not print
617 PRINT_EXTRA_FRAME_INFO.
618 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
619 Rename PRINT_EXTRA_FRAME_INFO.
620 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
621 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
622 (mips_print_extra_frame_info): Delete declaration.
623 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
624
625 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
626
627 * coffread.c (coff_symtab_read): Remove passing of info parameter
628 to prim_record_minimal_symbol_and_info.
629
630 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
631
632 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
633 (decode_base_type): Delete ifdeffed out code.
634
635 2003-11-04 Andrew Cagney <cagney@redhat.com>
636
637 * symtab.c (find_active_alias): Delete function.
638 (lookup_block_symbol): Delete alias code.
639 * stabsread.c (resolve_live_range): Delete function.
640 (add_live_range): Delete function.
641 (resolve_symbol_reference): Delete function.
642 (define_symbol): Delete live range and alias code.
643 (scan_file_globals): Delete alias code.
644 * symtab.h (SYMBOL_RANGES): Delete macro.
645 (struct range_list): Delete structure.
646 (struct symbol): Delete field "ranges".
647 (SYMBOL_ALIASES): Delete macro.
648 (struct alias_list): Delete structure.
649 (struct symbol): Delete field "aliases".
650
651 2003-11-04 Michael Snyder <msnyder@redhat.com>
652
653 * MAINTAINERS: Remove myself as owner of breakpoints and
654 of sparc/solaris.
655
656 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
657
658 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
659 (sh_sh4al_dsp_register_name): Ditto.
660 (sh4_nofpu_show_regs): Ditto.
661 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
662 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
663
664 2003-11-03 Andrew Cagney <cagney@redhat.com>
665
666 * bcache.c: Include "gdb_assert.h".
667 (struct bcache): Add fields "expand_count" and
668 "expand_hash_count".
669 (expand_hash_table): Update the expand counts.
670 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
671 on object sizes and hashes.
672 * Makefile.in (bcache.o): Update dependencies.
673
674 2003-11-03 Andrew Cagney <cagney@redhat.com>
675
676 * exec.c (xfer_memory): Eliminate xfer_fn.
677
678 2003-10-31 Kevin Buettner <kevinb@redhat.com>
679
680 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
681 (opcodes/frv-desc.h): Include.
682 (iacc0h_regnum, iacc0l_regnum): Define.
683 (last_spr_regnum, frv_num_regs): Update.
684 (new_variant): Don't supply default names for holes in the SPRs.
685 Supply names for iacc0h_regnum and iacc0l_regnum.
686 (frv_register_type): Use symbolic constants first_fpr_regnum and
687 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
688 builtin_type_int instead of builtin_type_int32.
689 (frv_register_sim_regno): New function.
690 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
691 * Makefile.in (gdb_sim_frv_h): Define.
692 (frv-tdep.o): Update dependencies.
693
694 2003-10-31 Andrew Cagney <cagney@redhat.com>
695
696 * avr-tdep.c (avr_frame_this_id): Do not call
697 deprecated_inside_entry_file.
698 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
699 * m32r-tdep.c (m32r_frame_this_id): Ditto.
700 * d10v-tdep.c (d10v_frame_this_id): Ditto.
701 * arm-tdep.c (arm_prologue_this_id): Ditto.
702 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
703
704 2003-10-31 Jim Blandy <jimb@redhat.com>
705
706 * elfread.c (elf_symtab_read): Allocate correct number of tail
707 elements to sectinfo structure. (Fix from Woody LaRue.)
708
709 2003-10-31 Andrew Cagney <cagney@redhat.com>
710
711 * stack.c (return_command): Use get_frame_type, instead of
712 CALL_DUMMY_HAS_COMPLETED.
713 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
714 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
715
716 2003-10-31 Mark Kettenis <kettenis@gnu.org>
717
718 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
719 explicitly specify size of array.
720 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
721 TDEP->sc_num_regs.
722
723 2003-10-31 Andrew Cagney <cagney@redhat.com>
724
725 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
726 function.
727 (s390_gdbarch_init): Set extract_struct_value_address.
728 * arch-utils.c (generic_cannot_extract_struct_value_address):
729 Delete function.
730 * arch-utils.h (generic_cannot_extract_struct_value_address):
731 Delete definition.
732
733 2003-10-31 Mark Kettenis <kettenis@gnu.org>
734
735 * i386-linux-nat.c (fetch_core_registers): Remove.
736 (linux_elf_core_fns): Remove.
737 (_initialize_i386_linux_nat): Remove.
738
739 2003-10-31 Andrew Cagney <cagney@redhat.com>
740
741 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
742 "exec.h".
743 (exec_entry_point): New function.
744 (enable_break): Create a "tmp_bfd_target", use that and
745 entry_point_address when computing the relocation offset.
746 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
747 * Makefile.in (solib-svr4.o): Update dependencies.
748
749 2003-10-31 Andrew Cagney <cagney@redhat.com>
750
751 * defs.h (XZALLOC): Define.
752 * target.h (struct target_ops): Add "to_data";
753 * bfd-target.h, bfd-target.c: New files.
754 * Makefile.in (SFILES): Add "bfd-target.c".
755 (COMMON_OBS): Add "bfd-target.o".
756 (bfd-target.o): Specify dependencies.
757 (bfd_target_h): Define.
758 * defs.h (XZALLOC): Define.
759
760 2003-10-31 Andrew Cagney <cagney@redhat.com>
761
762 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
763 adjust_breakpoint_address.
764 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
765 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
766 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
767 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
768
769 2003-10-31 Andrew Cagney <cagney@redhat.com>
770
771 * target.h (struct target_ops): Replace "to_read_partial" and
772 "to_write_partial" with "to_xfer_partial". Update comments.
773 * target.c (debug_to_write_partial): Delete function.
774 (debug_to_xfer_partial): Replace debug_to_read_partial.
775 (add_target, update_current_target, setup_target_debug): Set
776 "to_xfer_partial" instead of "to_read_partial" and
777 "to_write_partial".
778 (default_xfer_partial): Replace "default_write_partial".
779 (default_read_partial): Delete.
780 (target_read_partial, target_write_partial): Call
781 "to_xfer_partial".
782 * remote.c (init_remote_ops): Set "to_xfer_partial".
783 (init_remote_async_ops): Ditto.
784 (remote_xfer_partial): Replace "remote_read_partial".
785
786 2003-10-31 Mark Kettenis <kettenis@gnu.org>
787
788 * i386-tdep.c (i386_supply_fpregset): Support floating-point
789 registers in `fxsave' format.
790 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
791
792 2003-10-30 Mark Kettenis <kettenis@gnu.org>
793
794 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
795 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
796 TDEP->gregset_num_regs and tdep->sizeof_gregset.
797
798 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
799 specify size of array.
800 (i386_linux_init_abi): Remove initialization of
801 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
802 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
803
804 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
805 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
806 core-regset.o.
807
808 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
809 the ELF header.
810
811 2003-10-29 Mark Kettenis <kettenis@gnu.org>
812
813 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
814 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
815 core-regset.o.
816
817 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
818
819 * corelow.c: Include "arch-utils.h", "regset.h" and
820 "gdb_assert.h".
821 (core_gdbarch): New variable.
822 (sniff_core_bfd): Don't sniff if we have support for register sets
823 in CORE_GDBARCH.
824 (core_close): Reset CORE_GDBARCH.
825 (core_open): Initialize CORE_GDBARCH.
826 (get_core_register_section): Use register sets if they are
827 supported by CORE_GDBARCH.
828 (get_core_registers): Don't print error message if we have support
829 for register sets in CORE_GDBARCH.
830
831 2003-10-29 Andrew Cagney <cagney@redhat.com>
832
833 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
834 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
835
836 2003-10-29 Mark Kettenis <kettenis@gnu.org>
837
838 * objfiles.h (clear_objfile_data): New prototype.
839 * objfiles.c (clear_objfile_data): New function.
840 * symfile.c (reread_symbols): Clear per-objfile data.
841
842 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
843
844 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
845 printf_unfiltered instead of printf_filtered for output messages.
846 (add_symbol_file_command): Ditto.
847 (reread_symbols): Ditto.
848 (overlay_auto_command): Ditto.
849 (overlay_manual_command): Ditto.
850 (overlay_off_command): Ditto.
851
852 2003-10-27 Mark Kettenis <kettenis@gnu.org>
853
854 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
855 (gdbarch_from_bfd): New function.
856 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
857 deprecated_select_gdbarch_hack.
858 * arch-utils.h (gdbarch_from_bfd): New prototype.
859
860 2003-10-27 Andrew Cagney <cagney@redhat.com>
861
862 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
863 arch_info. Use warning instead of fprintf_filtered. Do not use
864 deprecated bfd_printable_arch_mach.
865
866 2003-10-26 Kevin Buettner <kevinb@redhat.com>
867
868 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
869 Delete.
870 (frv_register_type): Rename from frv_register_virtual_type. Add
871 ``struct gdbarch *'' parameter.
872 (frv_gdbarch_init): Delete calls to the following functions:
873 set_gdbarch_deprecated_size(),
874 set_gdbarch_deprecated_register_bytes(),
875 set_gdbarch_deprecated_register_raw_size(),
876 set_gdbarch_deprecated_max_register_raw_size(),
877 set_gdbarch_deprecated_register_virtual_size(),
878 set_gdbarch_deprecated_max_register_virtual_size(),
879 set_gdbarch_deprecated_register_virtual_size(),
880 set_gdbarch_deprecated_register_virtual_type().
881 Add call to function set_gdbarch_register_type().
882
883 2003-10-26 Mark Kettenis <kettenis@gnu.org>
884
885 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
886 FDOFF_REGNUM): Remove defines.
887 * win32-nat.c (do_child_fetch_inferior_registers): Include
888 "i387-tdep.h".
889 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
890 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
891 undefine I387_ST0_REGNUM.
892
893 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
894 * x86-64-tdep.c (x86_64_store_return_value): Use
895 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
896
897 Change register numbers to enumartion values.
898 * i386-tdep.h (enum i386_regnum): New.
899 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
900 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
901 I386_ST0_REGNUM): Remove defines.
902 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
903 I386_EDI_REGNUM): Remove defines.
904
905 2003-10-24 Andrew Cagney <cagney@redhat.com>
906
907 * target.c: Include "gdbcore.h".
908 (get_target_memory, get_target_memory_unsigned): New functions.
909 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
910 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
911 Use get_target_memory_unsigned.
912 * Makefile.in (target.o): Update dependencies.
913
914 2003-10-24 Andrew Cagney <cagney@redhat.com>
915
916 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
917 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
918 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
919 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
920 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
921
922 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
923 (can_run_code_for): Use the OO term "singleton".
924
925 2003-10-23 Andrew Cagney <cagney@redhat.com>
926
927 * Makefile.in (stack.o): Add $(regcache_h).
928 * stack.c: Include "regcache.h"
929 (return_command): Rewrite. Use get_frame_id and
930 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
931 about unhandled return-values.
932 * value.h (set_return_value): Delete declaration.
933 * values.c (set_return_value): Delete function.
934
935 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
936
937 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
938 (pseudo_regs): Add comment regarding register stack registers.
939 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
940 (floatformat_valid): New static routine.
941 (floatformat_ia64_ext): Add name field and set up is_valid routine
942 to floatformat_valid().
943 (examine_prologue): For the previous cfm, use
944 frame_unwind_register()
945 if the cfm is not stored in a register-stack register. Save the
946 previous cfm value in the prev_cfm field. Add debug output.
947 (ia64_frame_this_id): Use frame_id_build_special() to also register
948 the bsp. Add debug output.
949 (ia64_sigtramp_frame_this_id): Ditto.
950 (ia64_frame_prev_register): Look at cache saved_regs for a few more
951 registers and also add some checks for framelessness before accepting
952 current register values for fields such as return address. For cfm,
953 use the cached prev_cfm field if available. Add comment to explain
954 PSR logic. Add debug output.
955 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
956 as part of initialization.
957 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
958 calculated. Cache the bsp and cfm values.
959 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
960 instead of using ia64_frame_prev_register() which doesn't expect most
961 registers to be saved. The saved values for bsp and sp
962 can be taken from the cache. Add debug output.
963 (ia64_push_dummy_call): Use frame_id_build_special() to also register
964 the bsp.
965
966 2003-10-23 Jim Blandy <jimb@redhat.com>
967
968 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
969 architecture the current arch can run code for --- but not if it's
970 a superset.
971 (can_run_code_for): New function.
972
973 2003-10-22 James E Wilson <wilson@specifixinc.com>
974
975 * MAINTAINERS: Move myself from paper trail section back to write
976 after approval section.
977
978 2003-10-22 Andrew Cagney <cagney@redhat.com>
979
980 * exec.h: New file.
981 * win32-nat.c: Include "exec.h".
982 * solib.c: Include "exec.h".
983 * target.h (build_section_table): Delete declaration.
984 * somsolib.c: Include "exec.h".
985 (exec_ops): Delete extern declaration.
986 * rs6000-nat.c: Update copyright. Include "exec.h".
987 (exec_ops): Delete extern declaration.
988 * pa64solib.c: Update copyright. Include "exec.h".
989 (exec_ops): Delete extern declaration.
990 * exec.c: Update copyright. Include "exec.h".
991 * corelow.c: Update dependencies. Include "exec.h".
992 * Makefile.in (exec_h): Define.
993 (exec.o, somsolib.o): Update dependencies.
994 (pa64solib.o, corelow.o): Update dependencies.
995
996 2003-10-22 Andrew Cagney <cagney@redhat.com>
997
998 * target.c: Include "gdb_assert.h" (target_read): Call
999 "target_read_partial", not "target_write_partial".
1000 (default_read_partial, default_write_partial): New function.
1001 (target_read_partial, target_write_partial): Simplify, assume that
1002 there is always a read/write method.
1003 (update_current_target, add_target): Always set "to_read_partial"
1004 and "to_write_partial".
1005 (target_write, target_read): Fail on a zero byte transfer.
1006 * Makefile.in (target.o): Update dependencies.
1007 * target.h: Update copyright date.
1008 (target_object): Fix typo.
1009
1010 2003-10-22 Andrew Cagney <cagney@redhat.com>
1011
1012 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1013 multi-arch method, add "targ" parameter.
1014 (struct target_ops): Declare.
1015 * gdbarch.h, gdbarch.c: Re-generate.
1016 * Makefile.in (c-valprint.o): Update dependencies.
1017 * arch-utils.h: Update copyright.
1018 (convert_from_func_ptr_addr_identity): Declare.
1019 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1020 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1021 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1022 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1023 * infcall.c (find_function_addr, call_function_by_hand): Update.
1024 * c-valprint.c: Include "target.h".
1025 (print_function_pointer_address): Update.
1026
1027 2003-10-22 Andrew Cagney <cagney@redhat.com>
1028
1029 * target.c (target_close): New function.
1030 (debug_to_close): Use "target_close".
1031 (push_target): Use "target_close".
1032 (unpush_target): Use "target_close".
1033 (pop_target): Use "target_close".
1034 * target.h (struct target_ops): Add "to_xclose".
1035 (target_open): Delete macro. Move comment to "to_open".
1036 (target_close): Replace macro with function that takes a target.
1037 * top.c (quit_target): Pass "current_target" to "target_close".
1038
1039 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1040
1041 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1042 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1043 * symtab.h (lookup_minimal_symbol_text): Update.
1044 * breakpoint.c (create_overlay_event_breakpoint,
1045 create_longjmp_breakpoint): Update callers.
1046 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1047 * symtab.c (find_pc_sect_line): Ditto.
1048
1049 2003-10-21 Andrew Cagney <cagney@redhat.com>
1050
1051 * target.c (errno): Delete extern declaration.
1052
1053 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1054
1055 * ia64-tdep.c: Change all occurrences of
1056 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1057 (ia64_frame_prev_register): Minor whitespace change.
1058
1059 2003-10-20 Michael Chastain <mec@shout.net>
1060
1061 * config/djgpp/fnchange.lst: Add lines for:
1062 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1063 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1064 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1065 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1066 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1067 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1068 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1069
1070 2003-10-20 Andrew Cagney <cagney@redhat.com>
1071
1072 * values.c (register_value_being_returned): Update comments. Use
1073 "gdbarch_return_value" when available.
1074 (using_struct_return): Ditto.
1075 (set_return_value): Ditto. Use "gdbarch_return_value" when
1076 available.. Print a warning, and not an error, when an unhandled
1077 return type is encountered.
1078 * infcmd.c: Include "gdb_assert.h".
1079 (print_return_value): When gdbarch_return_value_p, and using
1080 struct return, assume that the value is not available.
1081 * defs.h (return_value_convention): Define.
1082 * gdbarch.sh (gdbarch_return_value): New predicate method.
1083 * gdbarch.h, gdbarch.c: Re-generate
1084 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1085
1086 2003-10-20 Andrew Cagney <cagney@redhat.com>
1087
1088 * symtab.c: Replace "struct sec" with "struct bfd_section".
1089 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1090
1091 2003-10-19 Michael Chastain <mec@shout.net>
1092
1093 * config/djgpp/fnchange.lst: Add lines for:
1094 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1095 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1096 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1097
1098 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1099
1100 * amd64fbsd-nat.c (fetch_inferior_registers,
1101 store_inferior_registers): Remove functions.
1102 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1103
1104 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1105
1106 Add NetBSD/amd64 native configuration:
1107 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1108 * amd64nbsd-tdep.c: New file.
1109 * amd64nbsd-nat.c: New file.
1110 * amd64bsd-nat.c: New file.
1111 * config/i386/nbsd64.mh: New file.
1112 * config/i386/nbsd64.mt: New file.
1113 * configure.host: Add x86_64-*-netbsd*.
1114 * configure.tgt: Add x86_64-*-netbsd*.
1115 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1116 New targets.
1117 * NEWS (New native configurations): Mention NetBSD/amd64.
1118
1119 2003-10-17 Michael Chastain <mec@shout.net>
1120
1121 * config/djgpp/fnchange.lst: Remove dead lines for:
1122 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1123 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1124 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1125 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1126 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1127 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1128 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1129 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1130 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1131 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1132 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1133 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1134 gdb/config/sparc/tm-sparclite.h,
1135 gdb/gdbtk/generic/ChangeLog-2001,
1136 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1137 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1138 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1139 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1140 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1141 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1142 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1143 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1144 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1145 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1146 itcl/iwidgets3.0.0/demos/fileselectionbox,
1147 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1148 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1149 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1150 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1151 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1152 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1153 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1154 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1155 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1156 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1157 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1158 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1159 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1160 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1161 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1162 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1163 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1164 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1165 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1166 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1167 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1168 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1169 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1170 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1171 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1172 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1173 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1174 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1175 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1176 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1177 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1178 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1179 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1180 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1181 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1182 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1183 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1184 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1185 itcl/iwidgets3.0.0/demos/scrolledframe,
1186 itcl/iwidgets3.0.0/demos/scrolledhtml,
1187 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1188 itcl/iwidgets3.0.0/demos/scrolledtext,
1189 itcl/iwidgets3.0.0/demos/selectionbox,
1190 itcl/iwidgets3.0.0/demos/selectiondialog,
1191 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1192 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1193 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1194 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1195 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1196 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1197 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1198 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1199 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1200 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1201 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1202 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1203 itcl/iwidgets3.0.0/doc/selectionbox.n,
1204 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1205 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1206 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1207 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1208 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1209 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1210 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1211 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1212 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1213 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1214 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1215 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1216 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1217 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1218 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1219 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1220 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1221 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1222 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1223 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1224 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1225 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1226 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1227 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1228 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1229 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1230 itcl/iwidgets3.0.0/tests/selectionbox.test,
1231 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1232 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1233 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1234 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1235 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1236 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1237 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1238 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1239 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1240 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1241 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1242 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1243 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1244 tk/mac/tkMacProjects.sit.hqx.
1245
1246 2003-10-17 Andrew Cagney <cagney@redhat.com>
1247
1248 * target.c (target_section_by_addr): New function.
1249 (do_xfer_memory): Use "target_section_by_addr".
1250 * target.h (target_section_by_addr): Declare.
1251
1252 * target.h (struct target_ops): Add "to_read_partial" and
1253 "to_write_partial", delete "to_query".
1254 (target_read_partial, target_write_partial): Declare.
1255 (target_read, target_write): Declare.
1256 (target_query): Delete macro.
1257 * target.c (target_read_partial): New function.
1258 (target_write_partial, target_read, target_write): New function.
1259 (update_current_target): Delete inheritance of "to_query". Add
1260 comments about "to_read_partial" and "to_write_partial".
1261 (debug_to_partial_read, debug_to_partial_write): New functions.
1262 (debug_to_query): Delete function.
1263 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1264 instead of "to_query".
1265 * remote.c (remote_read_partial): Replace "remote_query".
1266 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1267 (init_remote_async_ops): Ditto.
1268 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1269 "target_read_partial" instead of "target_query".
1270 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1271 Use "target_read_partial" instead of "target_query".
1272
1273 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1274
1275 * frame.h (struct frame_id): Add new field: special_addr.
1276 (frame_id_build_special): New prototype.
1277 * frame.c (frame_id_build_special): New function.
1278 (frame_id_build): Change to call frame_id_build_special().
1279 (frame_id_eq): Change to also test special_addr field.
1280 (frame_id_inner): Update comment.
1281
1282 2003-10-17 Andrew Cagney <cagney@redhat.com>
1283
1284 * target.c (update_current_target): Perform the target cleanup.
1285 Put the target stack beneath the squashed "current_target".
1286 (add_target): Delete disabled call to "cleanup_target".
1287 (cleanup_target): Delete function.
1288 (push_target, unpush_target): Do not call "cleanup_target".
1289
1290 2003-10-17 Andrew Cagney <cagney@redhat.com>
1291
1292 * target.c (target_stack): Change to a static target_ops.
1293 (update_current_target): Walk the "struct target_ops" stack.
1294 (pop_target, do_xfer_memory, target_info): Ditto.
1295 (find_target_beneath): Ditto.
1296 (push_target): Rewrite to use the "struct target_ops" stack.
1297 (unpush_target): Ditto.
1298 * target.h (struct target_stack_item): Delete definition.
1299 (target_stack): Delete declaration.
1300 (struct target_ops): Add field "beneath".
1301
1302 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1303
1304 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1305 declaration.
1306 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1307 (h8300_examine_prologue): Use h8300_normal_mode flag
1308 (h8300_gdbarch_init): Set architecture info for normal mode
1309
1310 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1311
1312 * remote.c (remote_protocol_vcont): New variable.
1313 (set_remote_protocol_vcont_packet_cmd): New function.
1314 (show_remote_protocol_vcont_packet_cmd): New function.
1315 (init_all_packet_configs): Handle remote_protocol_vcont.
1316 (remote_vcont_probe): New function.
1317 (remote_vcont_resume): New function.
1318 (remote_resume): Use it.
1319 (remote_async_resume): Call remote_resume.
1320 (_initialize_remote): Add verbose-resume packet commands.
1321
1322 2003-10-16 Andrew Cagney <cagney@redhat.com>
1323
1324 * infrun.c (handle_inferior_event): Add comment about
1325 "frame_id_inner" being too weak.
1326
1327 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1328
1329 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1330 second parameter, which is always null. Remove
1331 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1332 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1333 accordingly.
1334 * somsolib.c (som_solib_create_inferior_hook,
1335 som_solib_desire_dynamic_linker_symbols): Update callers.
1336 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1337
1338 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1339
1340 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1341 debug interface, SDI (Scalable Debug Interface).
1342 * NEWS: Mention m32r SDI protocol was supported.
1343 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1344 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1345
1346 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1347
1348 * ia64-linux-tdep.c: Include gdbcore.h.
1349 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1350 (ia64_linux_sigcontext_register_addr): Find the address of the
1351 sigcontext area stored in the sigframe instead of using
1352 a magic offset constant.
1353
1354 2003-10-15 Andrew Cagney <cagney@redhat.com>
1355
1356 * remote.c (remote_search): Delete function.
1357 * target.h (target_search): Delete disabled macro.
1358 (struct target_ops): Delete disabled field "to_search".
1359
1360 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1361
1362 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1363 instead of deprecated_inside_entry_file().
1364
1365 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1366
1367 * sh-tdep.c: Fix copy/paste hangover in comment.
1368 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1369 mode.
1370 (sh3e_sh4_extract_return_value): Ditto.
1371
1372 2003-10-13 Richard Henderson <rth@redhat.com>
1373
1374 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1375 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1376 match c_val_print a bit closer.
1377
1378 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1379
1380 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1381 (frv_gdbarch_adjust_breakpoint_address): New function.
1382 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1383 method.
1384
1385 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1386
1387 * breakpoint.h (struct breakpoint): Add new member
1388 ``requested_address''.
1389 * breakpoint.c (breakpoint_adjustment_warning)
1390 (adjust_breakpoint_address): New static functions.
1391 (print_it_typical): Issue warning if breakpoint's address is different
1392 from its requested address.
1393 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1394 (breakpoint_re_set_one): Set breakpoint's
1395 ``requested_address'' field. Set ``address'' field to the
1396 result of calling adjust_breakpoint_address() on the requested
1397 address.
1398
1399 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1400
1401 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1402 * gdbarch.h, gdbarch.c: Regenerate.
1403
1404 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1405
1406 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1407 TDEP->sc_num_regs.
1408
1409 * i386fbsd-tdep.c: New file.
1410 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1411 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1412 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1413 i386bsd-tdep.c.
1414 (_initialize_i386fbsd_tdep): New function.
1415 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1416 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1417 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1418 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1419 TDEP->sc_num_regs.
1420 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1421 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1422 to initialize TDEP->sc_num_regs.
1423 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1424 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1425 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1426 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1427 FreeBSD ELF OS/ABI's here.
1428 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1429 (i386fbsd-tdep.o): New target.
1430 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1431 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1432
1433 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1434 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1435 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1436 in initialization of TDEP->sc_num_regs.
1437
1438 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1439 (x86_64_init_abi): Initialize regset_from_core_section if
1440 appropriate.
1441
1442 * i386-tdep.c (i386_regset_from_core_section): New function.
1443 (i386_gdbarch_init): Initialize regset_from_core_section if
1444 appropriate.
1445 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1446
1447 * i386-tdep.h (struct regset): Declare opaque.
1448
1449 * gdbarch.sh (regset_from_core_section): New method.
1450 (struct regset): Declare opaque.
1451 * gdbarch.c, gdbarch.h: Regenerated.
1452
1453 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1454
1455 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1456 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1457 Correct test for pc within section.
1458
1459 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1460
1461 * gdbarch.sh: Remove trailing whitepsace from comments.
1462
1463 2003-10-08 Roland McGrath <roland@redhat.com>
1464
1465 * gcore.c (make_mem_sec): Function removed, folded into ...
1466 (gcore_create_callback): ... here. To omit a section, clear its
1467 SEC_LOAD bit rather than zeroing its size.
1468 Omit read-only sections only if they correspond to a known disk file.
1469 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1470
1471 2003-10-10 Michael Snyder <msnyder@redhat.com>
1472
1473 * d10v-tdep.c: Fix typo in comment.
1474
1475 2003-10-10 Andrew Cagney <cagney@redhat.com>
1476
1477 * rs6000-tdep.c (e500_store_return_value): Delete function.
1478 (e500_extract_return_value): Delete function.
1479 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1480 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1481 "ppc_sysv_abi_restore_return_value" where applicable.
1482 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1483 (ppc_sysv_abi_extract_return_value): Declare.
1484 (ppc_sysv_abi_broken_store_return_value): Declare.
1485 (ppc_sysv_abi_broken_extract_return_value): Declare.
1486 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1487 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1488 start of file.
1489 (do_ppc_sysv_return_value): New function.
1490 (ppc_sysv_abi_extract_return_value): New function.
1491 (ppc_sysv_abi_store_return_value): New function.
1492 (ppc_sysv_abi_broken_extract_return_value): New function.
1493 (ppc_sysv_abi_broken_store_return_value): New function.
1494 (ppc_sysv_abi_use_struct_convention): Call
1495 do_ppc_sysv_return_value.
1496
1497 2003-10-10 J. Brobecker <brobecker@gnat.com>
1498
1499 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1500 to lookup the main function symbol.
1501
1502 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1503
1504 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1505 types correctly.
1506 (sh_push_dummy_call_fpu): Fix argument passing rules.
1507 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1508 float types.
1509 (sh3e_sh4_store_return_value): Ditto.
1510
1511 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1512
1513 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1514 comment.
1515
1516 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1517
1518 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1519 more readable code. Accomodate passing of bitfields.
1520
1521 2003-10-10 Andrew Cagney <cagney@redhat.com>
1522
1523 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1524 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1525 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1526 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1527 (ppc64_sysv_abi_push_dummy_call): New function.
1528 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1529 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1530 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1531
1532 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1533
1534 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1535 * README: Ditto.
1536 * d10v-tdep.c: Ditto.
1537 * h8300-tdep.c: Ditto.
1538 * remote-e7000.c: Ditto.
1539 * remote-hms.c: Ditto.
1540 * ser-e7kpc.c: Ditto.
1541 * sh-stub.c: Ditto.
1542 * sh-tdep.c: Ditto.
1543 * sh-tdep.h: Ditto.
1544 * sh3-rom.c: Ditto.
1545 * sh64-tdep.c: Ditto.
1546 * top.c: Ditto.
1547 * wince.c: Ditto.
1548 * config/d10v/d10v.mt: Ditto.
1549 * config/sh/embed.mt: Ditto.
1550 * config/sh/linux.mt: Ditto.
1551 * config/sh/tm-linux.h: Ditto.
1552 * config/sh/tm-sh.h: Ditto.
1553 * config/sh/wince.mt: Ditto.
1554
1555 2003-10-09 Andrew Cagney <cagney@redhat.com>
1556
1557 * ppc-tdep.h (struct type): Declare opaque.
1558 * x86-64-tdep.h (struct regcache): Declare opaque.
1559 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1560 coding style.
1561
1562 2003-10-09 Andrew Cagney <cagney@redhat.com>
1563
1564 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1565 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1566 (SOFTWARE_SINGLE_STEP_P): Ditto.
1567 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1568 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1569 (SOFTWARE_SINGLE_STEP_P): Ditto.
1570 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1571 software_single_step to rs6000_software_single_step.
1572
1573 2003-10-09 Andrew Cagney <cagney@redhat.com>
1574
1575 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1576
1577 2003-10-09 Michael Snyder <msnyder@redhat.com>
1578
1579 * frame.h: Fix typo in comment.
1580 * dummy-frame.c: Fix typo in comment.
1581 * d10v-tdep.c: Random whitespace/comment tweaks.
1582
1583 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1584
1585 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1586 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1587 on stack.
1588
1589 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1590 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1591 in detail.
1592
1593 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1594
1595 * remote-mips.c (mips_initialize): Remove unneeded call to
1596 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1597
1598 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1599
1600 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1601 a memory pointer.
1602
1603 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1604
1605 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1606 for any lwp we resume.
1607 (running_callback): Add lwps that have pending status events
1608 against them to be considered running.
1609
1610 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1611
1612 * m32r-tdep.c : Include "dis-asm.h".
1613 * Makefile.in (m32r-tdep.o): Update dependencies.
1614
1615 2003-10-06 J. Brobecker <brobecker@gnat.com>
1616
1617 * completer.h (get_gdb_completer_word_break_characters): Delete.
1618 * completer.c: include language.h.
1619 (gdb_completer_word_break_characters): Delete.
1620 (get_gdb_completer_word_break_characters): Delete.
1621 (location_completer): Use the word break characters of the current
1622 language.
1623 (complete_line): Likewise.
1624 (line_completion_function): Likewise.
1625 (skip_quoted_chars): Likewise.
1626 * Makefile.in (completer.o): Add dependency on language.h.
1627 * top.c (init_main): Set the readline word break characters
1628 to GDB's default word break characters.
1629
1630 2003-10-06 J. Brobecker <brobecker@gnat.com>
1631
1632 * language.h (language_defn): new field, la_word_break_characters.
1633 * language.c (unknown_language_defn): Set new field to
1634 default_word_break_characters.
1635 (auto_language_defn): Likewise.
1636 (local_language_defn): Likewise.
1637 * ada-lang.c (ada_language_defn): Likewise.
1638 * c-lang.c (c_language_defn): Likewise.
1639 (cplus_language_defn): Likewise.
1640 (asm_language_defn): Likewise.
1641 (minimal_language_defn): Likewise.
1642 * f-lang.c (f_language_defn): Likewise.
1643 * jv-lang.c (java_language_defn): Likewise.
1644 * m2-lang.c (m2_language_defn): Likewise.
1645 * objc-lang.c (objc_language_defn): Likewise.
1646 * p-lang.c (pascal_language_defn): Likewise.
1647 * scm-lang.c (scm_language_defn): Likewise.
1648
1649 2003-10-06 Andrew Cagney <cagney@redhat.com>
1650
1651 * ppc-sysv-tdep.c: Re-indent.
1652
1653 2003-10-06 J. Brobecker <brobecker@gnat.com>
1654
1655 * language.h (default_word_break_characters): Add prototype.
1656 * language.c (default_word_break_characters): New function.
1657
1658 2003-10-06 Andreas Schwab <schwab@suse.de>
1659
1660 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1661 with %eax.
1662
1663 2003-10-06 Andrew Cagney <cagney@redhat.com>
1664
1665 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1666 "h8500-tdep.c".
1667 (z8k-tdep.o): Delete custom build rule.
1668
1669 2003-10-06 Andrew Cagney <cagney@redhat.com>
1670
1671 * Makefile.in: Update all dependencies.
1672
1673 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1674 No longer list PA as as obsolete candidate. List m32r as
1675 broken instead of obsolete.
1676
1677 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1678 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1679 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1680 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1681 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1682 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1683 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1684 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1685 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1686 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1687 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1688 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1689 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1690 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1691 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1692 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1693 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1694 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1695 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1696 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1697 * config/z8k/z8k.mt: Ditto.
1698
1699 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1700 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1701 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1702 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1703 sparclite were removed.
1704 * configure.host, configure.tgt: Remove corresponding tuples.
1705
1706 * breakpoint.c, breakpoint.h: Remove obsolete code.
1707 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1708 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1709 * stabsread.h, xcoffread.c: Ditto.
1710
1711 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1712 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1713 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1714 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1715
1716 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1717
1718 * f-valprint.c: Reformatting
1719
1720 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1721
1722 * x86-64-tdep.c: Remove duplicate comment.
1723
1724 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1725 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1726 names for return values. This fixes a bug since we looked at %rbx
1727 instead of %rdx.
1728
1729 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1730
1731 * x86-64-tdep.c: Include "regset.h".
1732
1733 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1734 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1735 sizeof_fpregset.
1736 * i386-tdep.c: Include "regset.h".
1737 (i386_supply_gregset): New function.
1738 (i386_supply_fpregset): New function.
1739 (i386_gdbarch_init): Initialze register set-related members of
1740 TDEP.
1741 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1742 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1743
1744 2003-10-03 Andrew Cagney <cagney@redhat.com>
1745
1746 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1747 set extract_return_value, store_return_value and
1748 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1749 ppc64_sysv_abi_store_return_value and
1750 ppc64_sysv_abi_use_struct_convention.
1751 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1752 (ppc64_sysv_abi_store_return_value): Declare.
1753 (ppc64_sysv_abi_use_struct_convention): Declare.
1754 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1755 (ppc64_sysv_abi_extract_return_value): New function.
1756 (ppc64_sysv_abi_store_return_value): New function.
1757 (ppc64_sysv_abi_use_struct_convention): New function.
1758 (ppc64_sysv_abi_return_value): New function.
1759
1760 2003-10-03 Andrew Cagney <cagney@redhat.com>
1761
1762 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1763 convert a descriptor to a function when it's in the ".opd"
1764 section.
1765
1766 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1767
1768 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1769 reg_size to keep GCC silent.
1770
1771 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1772
1773 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1774 base for DW_EH_PE_textrel encodings.
1775 (read_encoded_value): Add a DW_EH_PE_textrel case.
1776 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1777 section.
1778
1779 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1780
1781 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1782
1783 2003-10-02 Andrew Cagney <cagney@redhat.com>
1784
1785 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1786 REGISTER_RAW_SIZE.
1787 * gdbarch.h, gdbarch.c: Re-generate.
1788 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1789 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1790 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1791 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1792 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1793 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1794 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1795 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1796 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1797 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1798 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1799 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1800 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1801 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1802 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1803 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1804
1805 2003-10-02 Jim Blandy <jimb@redhat.com>
1806
1807 * dwarf2read.c (struct die_info): Doc fix.
1808
1809 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1810
1811 * sh-tdep.c: Running thru gdb_indent.sh.
1812
1813 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1814
1815 * sh-tdep.c (sh_justify_value_in_reg): New function.
1816 (sh_stack_allocsize): Ditto.
1817 (flt_argreg_array): New array used for floating point argument
1818 passing.
1819 (sh_init_flt_argreg): New function.
1820 (sh_next_flt_argreg): Ditto.
1821 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1822 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1823 Fix argument passing strategy.
1824 (sh_push_dummy_call_nofpu): Ditto.
1825
1826 2003-10-01 Andrew Cagney <cagney@redhat.com>
1827
1828 * value.h (register_value_being_returned): Declare. Replace
1829 "value_being_returned".
1830 * infcall.c (call_function_by_hand): Use
1831 register_value_being_returned.
1832 * infcmd.c (print_return_value): Call
1833 "register_value_being_returned", handle struct return locally.
1834 * values.c (register_value_being_returned): New function. Replace
1835 "value_being_returned".
1836
1837 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1838
1839 * linux-proc.c (linux_do_registers): New function.
1840 (linux_make_note_section): Use linux_do_registers in case of
1841 single threaded inferior programs.
1842
1843 2003-10-01 Andrew Cagney <cagney@redhat.com>
1844
1845 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1846 use STRUCT_ADDR. When not using "struct return convention", pass
1847 "0" to "value_being_returned". Add FIXMEs.
1848 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1849 value_being_returned. Add comments.
1850 * values.c (value_being_returned): Add fixme.
1851 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1852 (hppa_value_returned_from_stack): Add FIXME.
1853
1854 2003-09-30 David Carlton <carlton@kealia.com>
1855
1856 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1857 'has_children' and 'next' by 'child' and 'sibling'.
1858 (read_comp_unit): Rework algorithm, breaking body into
1859 read_die_and_children and read_die_and_siblings.
1860 (read_die_and_children, read_die_and_siblings): New.
1861 (read_full_die): Add 'has_children' argument; set it instead of
1862 the die's 'has_children' field. Minor formatting cleanup.
1863 (free_die_list): Use die->child and die->sibling instead of
1864 die->next.
1865 (dump_die_list): Ditto.
1866 (sibling_die): Use die->sibling.
1867 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1868 'has_children' and 'next' fields.
1869 (process_die, read_file_scope, read_func_scope)
1870 (read_lexical_block_scope, read_structure_scope)
1871 (read_enumeration, read_array_type, read_common_block)
1872 (read_namespace, read_subroutine_type, dump_die): Ditto.
1873
1874 2003-09-30 Andrew Cagney <cagney@redhat.com>
1875
1876 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1877 to 224, not 220.
1878
1879 2003-09-30 Andrew Cagney <cagney@redhat.com>
1880
1881 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1882 REGISTER_VIRTUAL_SIZE.
1883 * gdbarch.h, gdbarch.c: Regenerate.
1884 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1885 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1886 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1887
1888 2003-09-29 Andrew Cagney <cagney@redhat.com>
1889
1890 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1891 REGISTER_VIRTUAL_TYPE.
1892 * gdbarch.h, gdbarch.c: Regenerate.
1893 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1894 * sh64-tdep.c, sparc-tdep.c: Update.
1895
1896 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1897 * remote-vxmips.c (vx_read_register): Ditto.
1898 * remote-vx68.c (vx_read_register): Ditto.
1899 * gnu-nat.c (inf_validate_procs): Ditto.
1900
1901 2003-09-29 J. Brobecker <brobecker@gnat.com>
1902
1903 * infcall.c (call_function_by_hand): Fix build failure
1904 introduced in the previous change to this file.
1905
1906 2003-09-29 Andrew Cagney <cagney@redhat.com>
1907
1908 * NEWS: Mention Objective-C.
1909
1910 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1911
1912 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1913 test if the register has been saved on the stack.
1914 (arm_scan_prologue_cache): When analysing the instruction
1915 "str lr, [sp, #-4]", save the address where lr has been stored.
1916
1917 2003-09-28 Andrew Cagney <cagney@redhat.com>
1918
1919 * frame.c (frame_read_unsigned_register): Delete function.
1920 * frame.h (frame_read_unsigned_register): Delete declaration.
1921 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1922 get_frame_register_unsigned.
1923 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1924 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1925 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1926
1927 * frame.h (frame_read_register): Delete declaration.
1928 * frame.c (frame_read_register): Delete function.
1929 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1930 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1931 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1932 * mips-tdep.c (mips_register_to_value): Ditto.
1933 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1934 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1935
1936 * frame.c (frame_read_signed_register): Delete function.
1937 (frame_read_unsigned_register): Update comments.
1938 * frame.h (frame_read_signed_register): Delete declaration.
1939 * h8300-tdep.c (h8300_print_register): Use
1940 get_frame_register_signed.
1941 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1942
1943 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1944 Rename VALUE_RETURNED_FROM_STACK.
1945 * infcmd.c (print_return_value): Update.
1946 * infcall.c (call_function_by_hand): Update.
1947
1948 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1949
1950 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1951 regcache argument and reverse the order of the other two
1952 arguments. Remove local regcache variable. Determine
1953 architecture from REGCACHE. Update comments.
1954 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1955 reverse the order of the other two arguments. Remove local
1956 regcache variable. Determine architecture from REGCACHE. Update
1957 comments.
1958 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1959 prototypes. Update comments.
1960 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1961 comment.
1962 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1963 Update.
1964 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1965 * i386-interix-nat.c (supply_fpregset): Update.
1966 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1967 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1968 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1969 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1970 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1971 Update.
1972 * i386obsd-tdep.c (fetch_core_registers): Update.
1973 * i386v4-nat.c (supply_fpregset): Update.
1974 * x86-64-linux-nat.c (supply_fpregset): Update.
1975 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1976
1977 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1978
1979 * i386-tdep.h: Put opaque declarations in alphabetical
1980 order. Remove spurious whitespace.
1981 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1982 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1983 * i386-tdep.c (MM0_REGNUM): Remove define.
1984 (i386_mmx_regnum_p): Add gdbarch argument.
1985 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1986 Rewrite using new macro definitions for FPU/SSE registers.
1987 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1988 definitions from i387-tdep.h.
1989 (i386_register_name): Update.
1990 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1991 new macro definitions for FPU/SSE registers.
1992 (i386_extract_return_value): Determine whether floating-point
1993 registers are present by examining REGCACHE's architecture.
1994 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1995 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1996 FPU/SSE registers.
1997 (i386_register_type): Update.
1998 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1999 definitions for FPU registers. Use REGCACHE's architecture to
2000 determine the appropriate register numbers.
2001 (i386_pseudo_register_read, i386_pseudo_register_write,
2002 i386_register_reggroup_p): Update.
2003 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2004 TDEP->mm0_regnum.
2005 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2006 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2007 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2008 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2009 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2010 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2011 *' to `void *'.
2012 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2013 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2014 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2015 definitions for FPU/SSE registers.
2016 (FXSAVE_MXCSR_ADDR): New define.
2017 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2018 TDEP->mm0_regnum.
2019 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2020 (I387_ST0_REGNUM): Define.
2021
2022 * regcache.h (get_regcache_arch): New prototype.
2023 * regcache.c (get_regcache_arch): New function.
2024
2025 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2026 whitespace.
2027
2028 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2029 Initialize using ARRAY_SIZE.
2030
2031 2003-09-27 Andrew Cagney <cagney@redhat.com>
2032
2033 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2034 "init_frame_pc_default".
2035 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2037 * vax-tdep.c (vax_gdbarch_init): Update.
2038 * v850-tdep.c (v850_gdbarch_init): Update.
2039 * sh64-tdep.c (sh64_gdbarch_init): Update.
2040 * s390-tdep.c (s390_gdbarch_init): Update.
2041 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2042 * mcore-tdep.c (mcore_gdbarch_init): Update.
2043 * h8300-tdep.c (h8300_gdbarch_init): Update.
2044 * cris-tdep.c (cris_gdbarch_init): Update.
2045 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2046
2047 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2048
2049 * regset.h: New file.
2050 * Makefile.in (regset_h): Add.
2051
2052 2003-09-25 Andrew Cagney <cagney@redhat.com>
2053
2054 * frame.h (deprecated_frame_saved_regs): Rename
2055 get_frame_saved_regs.
2056 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2057 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2058 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2059 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2060 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2061
2062 2003-09-25 Andrew Cagney <cagney@redhat.com>
2063
2064 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2065 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2066 and Java.
2067 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2068 arm*-*-* do not use the new frame code.
2069
2070 2003-09-25 David Carlton <carlton@kealia.com>
2071
2072 * c-exp.y: Remove 'register' declarations.
2073 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2074
2075 2003-09-25 David Carlton <carlton@kealia.com>
2076
2077 * c-exp.y: Include cp-support.h. Add qualified_type.
2078 (yylex): Delete nested type hack; add comments.
2079 * cp-namespace.c (cp_lookup_nested_type): New function.
2080 * cp-support.h: Declare cp_lookup_nested_type.
2081 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2082 instead of value_struct_elt_for_reference.
2083 * valops.c: Include cp-support.h.
2084 (value_aggregate_elt): New function.
2085 (value_namespace_elt): Ditto.
2086 (value_struct_elt_for_reference): Make static.
2087 * value.h: Delete declaration of value_struct_elt_for_reference;
2088 add declaration for value_aggregate_elt.
2089 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2090 (valops.o): Ditto.
2091
2092 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2093
2094 * stack.c: Include "reggroups.h".
2095 (frame_info): Only display registers in all_reggroup.
2096 * Makefile.in (stack.o): Update dependencies.
2097
2098 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2099
2100 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2101 "add ip, sp #n" in the prologue.
2102 (arm_scan_prologue): Ditto.
2103
2104 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2105
2106 * MAINTAINERS (write after approval): Add myself.
2107
2108 2003-09-25 Andreas Schwab <schwab@suse.de>
2109
2110 * m68k-tdep.c: Include "dwarf2-frame.h".
2111 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2112 * Makefile.in (m68k-tdep.o): Update dependencies.
2113
2114 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2115
2116 * sh-tdep.c (struct frame_extra_info): Remove.
2117 (struct sh_frame_cache): New structure.
2118 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2119 (GET_TARGET_REG): Ditto but target register.
2120 (GET_PUSHED_REG): Remove.
2121 (IS_MOV_ARG_TO_REG): New macro.
2122 (IS_MOV_ARG_TO_IND_R14): New macro.
2123 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2124 (IS_MOVW_PCREL_TO_REG): New macro.
2125 (IS_MOVL_PCREL_TO_REG): New macro.
2126 (IS_SUB_REG_FROM_SP): New macro.
2127 (IS_ARG_MOV): Remove.
2128 (IS_MOV_TO_R14): Remove.
2129 (IS_RESTORE_FP): New macro.
2130 (IS_RTS): New macro.
2131 (IS_LDS): New macro.
2132 (IS_MOV_FP_SP): New macro.
2133 (IS_ADD_REG_TO_FP): New macro.
2134 (IS_ADD_IMM_FP): New macro.
2135 (sh_skip_prologue_hard_way): Remove.
2136 (sh_saved_pc_after_call): Remove.
2137 (sh_frame_chain): Remove.
2138 (sh_find_callers_reg): Remove.
2139 (sh_nofp_frame_init_saved_regs): Remove.
2140 (sh_fp_frame_init_saved_regs): Remove.
2141 (sh_init_extra_frame_info): Remove.
2142 (sh_analyze_prologue): New function.
2143 (sh_skip_prologue): Remove deprecated code. Rely on new function
2144 sh_analyze_prologue when after_prologue fails.
2145 (sh_frame_saved_pc): Remove.
2146 (sh_alloc_frame_cache): New function.
2147 (sh_frame_cache): Ditto.
2148 (sh_frame_prev_register): Ditto.
2149 (sh_frame_this_id): Ditto.
2150 (sh_frame_unwind): New structure defining the heuristic frame
2151 sniffer interface.
2152 (sh_frame_sniffer): New function.
2153 (sh_unwind_sp): Ditto.
2154 (sh_unwind_pc): Ditto.
2155 (sh_unwind_dummy_id): Ditto.
2156 (sh_frame_base_address): Ditto.
2157 (sh_frame_base): New structure defining new frame base code.
2158 (sh_in_function_epilogue_p): New function.
2159 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2160 code and to call all new code instead. Initialize dwarf2 and
2161 heuristic frame sniffer.
2162
2163 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2164
2165 * parser-defs.h (struct exp_descriptor): New definition, containing
2166 language-specific info for printing, prefixifying, dumping, and
2167 evaluating expressions.
2168 (exp_descriptor_standard): Declare new variable.
2169 (print_subexp): Make global and declare here (from expprint.c).
2170 (dump_subexp): Ditto.
2171 (dump_subexp_body_standard): Declare.
2172 (operator_length_standard): Declare.
2173 (op_name_standard): Declare.
2174 (print_subexp): Declare.
2175 (print_subexp_standard): Declare.
2176
2177 * language.h (struct language_defn): Add la_exp_desc field to hold
2178 pointer to table for language-specific operators.
2179 Remove evaluate_exp field, which is now in struct exp_descriptor.
2180
2181 * parse.c (operator_length): Move most code to new
2182 operator_length_standard function. Use language-specific information.
2183 (operator_length_standard): New function taking most code from
2184 operator_length.
2185 (exp_descriptor_standard): New constant.
2186
2187 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2188 and OP_EXTENDED_LAST.
2189
2190 * expprint.c (print_subexp): Use language-specific print_subexp.
2191 Make global; remove static declaration.
2192 Move most code to print_subexp_standard.
2193 (print_subexp_standard): New function, containing code formerly in
2194 print_subexp.
2195 (op_name): Add expression to argument signature.
2196 Use langauge-specific op_name.
2197 Move most code to op_name_standard.
2198 (op_name_standard): New function, containing code formerly in op_name.
2199 (dump_subexp): Use new version of op_name function.
2200 Use language-specific dump_subexp_body, and move most existing code to
2201 dump_subexp_body_standard.
2202 (dump_raw_expression): Use new op_name interface.
2203 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2204 (dump_subexp_body_standard): New function, containing code formerly
2205 in dump_subexp_body.
2206
2207 * language.c (unknown_language): Add default la_exp_desc field and
2208 remove evaluate_exp field.
2209 (auto_language): Ditto.
2210 (local_language): Ditto.
2211 * f-lang.c (f_language_defn): Ditto.
2212 * c-lang.c (c_language_defn): Ditto.
2213 (cplus_language_defn): Ditto.
2214 (asm_language_defn): Ditto.
2215 (minimal_language_defn): Ditto.
2216 * p-lang.c (pascal_language_defn): Ditto.
2217 * m2-lang.c (m2_language_defn): Ditto.
2218 * objc-lang.c (objc_language_defn): Ditto.
2219
2220 * jv-lang.c (exp_descriptor_java): New variable, containing
2221 Java-specific expression evaluator.
2222 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2223 field.
2224 * scm-lang.c (exp_descriptor_scm): New variable, containing
2225 Scheme-specific expression evaluator.
2226 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2227 field.
2228 * objc-lang.c (print_object_command): Take evaluate_exp from the
2229 la_exp_desc field.
2230
2231 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2232
2233 * eval.c: Include parser-defs.h for the full declaration of
2234 la_exp_desc's type.
2235 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2236
2237 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2238
2239 * parser-defs.h (operator_length): Declare.
2240
2241 * parse.c (length_of_subexp): Use operator_length to get operator
2242 lengths and arities for operators.
2243 Move most code to new operator_length function.
2244 (operator_length): New function absorbing most code from
2245 length_of_subexp.
2246 (prefixify_subexp): Remove large case and use operator_length instead.
2247 (parse_exp_1): Use renamings:
2248 dump_prefix_expression => dump_raw_expression and
2249 dump_postfix_expression => dump_prefix_expression.
2250
2251 * expression.h (dump_prefix_expression): Rename to ...
2252 (dump_raw_expression): New name.
2253 (dump_postfix_expression): Rename to ...
2254 (dump_prefix_expression): New name.
2255
2256 * expprint.c (dump_subexp): Make global. Add comment.
2257 Move most existing code to dump_subexp_body.
2258 (dump_subexp_body): New function.
2259 (dump_prefix_expression): Rename to dump_raw_expression.
2260 Remove attempt to print the expression via print_expression: it can't
2261 work before the expression is prefixified.
2262 (dump_raw_expression): Renamed from dump_prefix_expression.
2263 (dump_postfix_expression): Rename to dump_prefix_expression, since
2264 that's what it does.
2265 Remove 'note' parameter, since this routine must be used on
2266 prefixified expression.
2267 (dump_prefix_expression): Renamed from dump_postfix_expression.
2268
2269 2003-09-22 Jim Blandy <jimb@redhat.com>
2270
2271 * dwarf2read.c (read_array_type): When building the type for an
2272 array of unspecified length, make sure to choose the upper bound
2273 so that the array's total length comes out to be zero --- that's
2274 how we represent such arrays.
2275
2276 2003-09-22 Michael Chastain <mec@shout.net>
2277
2278 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2279
2280 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2281
2282 * top.c (quit_force): Fix indirect call to quit_target so
2283 a struct qt_args pointer is passed.
2284
2285 2003-09-22 Andrew Cagney <cagney@redhat.com>
2286
2287 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2288 * arch-utils.c (init_frame_pc_noop): Delete function.
2289 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2290 "init_frame_pc".
2291 * mips-tdep.c (mips_gdbarch_init): Ditto.
2292 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2293 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2294 declaration.
2295 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2296 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2297 declaration.
2298 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2299
2300 2003-09-22 Anthony Green <green@redhat.com>
2301
2302 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2303 declaration.
2304
2305 2003-09-20 Andrew Cagney <cagney@redhat.com>
2306
2307 * breakpoint.c: Eliminate ARGSUSED.
2308 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2309 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2310 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2311 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2312 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2313 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2314 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2315 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2316 * wince.c, remote-vx.c: Ditto.
2317
2318 * cli/cli-script.c: Remove "register" attributes.
2319 * config/pa/tm-hppa.h: Ditto.
2320 * cli/cli-decode.c: Ditto.
2321 * cli/cli-cmds.c: Ditto.
2322
2323 2003-09-19 Andrew Cagney <cagney@redhat.com>
2324
2325 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2326 DEPRECATED_NPC_REGNUM.
2327 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2328
2329 2003-09-19 Christopher Faylor <cgf@redhat.com>
2330
2331 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2332
2333 2003-09-19 Jim Blandy <jimb@redhat.com>
2334
2335 * macrotab.c (macro_include): Use the correct comparison to find
2336 the appropriate place for this inclusion in the list.
2337
2338 2003-09-19 Andrew Cagney <cagney@redhat.com>
2339
2340 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2341 (DEPRECATED_HPUX_TEXT_END): Define.
2342 (deprecated_hpux_text_end): Declare.
2343 (struct target_ops): Declare opaque.
2344 * hppah-nat.c (text_end): Make static.
2345 (deprecated_hpux_text_end): New function.
2346 * exec.c (text_end): Delete global variable.
2347 (NEED_TEXT_START_END): Do not define.
2348 (exec_file_attach): Replace code computing "text_end" code with
2349 call to DEPRECATED_HPUX_TEXT_END.
2350
2351 2003-09-19 Andrew Cagney <cagney@redhat.com>
2352
2353 * utils.c (align_up, align_down): New functions.
2354 * defs.h (align_up, align_down): Declare.
2355 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2356 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2357 and "align_down".
2358 (round_up, round_down): Delete functions.
2359 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2360 "align_down".
2361 (ROUND_DOWN, ROUND_UP): Delete macros.
2362 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2363 * h8300-tdep.c: Replace "round_up" and "round_down" with
2364 "align_up" and "align_down".
2365 (round_up, round_down): Delete macros.
2366 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2367 "align_down".
2368 (ROUND_UP, ROUND_DOWN): Delete macros.
2369
2370 2003-09-18 J. Brobecker <brobecker@gnat.com>
2371
2372 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2373 hard-coded constant. Use the proper machine name instead.
2374
2375 2003-09-17 Andrew Cagney <cagney@redhat.com>
2376
2377 * sparc-tdep.c (legacy_register_name): Delete function.
2378 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2379 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2380 * infcmd.c (gdb_register_name): Delete variable.
2381 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2382 REGISTER_NAME and "tm.h".
2383 * gdbarch.h, gdbarch.c: Regenerate.
2384 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2385 REGISTER_NAMES in comments.
2386 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2387 * m68klinux-nat.c (regmap): Ditto.
2388
2389 2003-09-17 Jim Blandy <jimb@redhat.com>
2390
2391 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2392
2393 2003-09-17 Andrew Cagney <cagney@redhat.com>
2394
2395 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2396 (ppcnbsd_init_abi): Set "use_struct_convention" to
2397 "ppcnbsd_use_struct_convention".
2398
2399 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2400
2401 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2402 * gdbarch.h, gdbarch.c: Regenerate.
2403 (stabs_argument_has_addr): New architecture method.
2404 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2405 * arch-utils.c: Include "buildsym.h".
2406 (default_stabs_argument_has_addr): New function.
2407 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2408 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2409
2410 2003-09-17 Andrew Cagney <cagney@redhat.com>
2411
2412 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2413 * gdbarch.h, gdbarch.c: Regenerate.
2414 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2415 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2416 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2417 * sparcnbsd-tdep.c: Update.
2418
2419 2003-09-17 Andrew Cagney <cagney@redhat.com>
2420
2421 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2422 * gdbarch.h, gdbarch.c: Regenerate.
2423 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2424 * d10v-tdep.c, frame.c: Update.
2425 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2426 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2427 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2428 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2429 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2430 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2431 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2432 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2433 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2434 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2435 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2436 * config/pa/nm-hppah.h: Update.
2437
2438 2003-09-16 Andrew Cagney <cagney@redhat.com>
2439
2440 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2441 "use_struct_convention" to "ppc_linux_use_struct_convention".
2442 (ppc_linux_use_struct_convention): New function.
2443 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2444 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2445 "rs6000_use_struct_convention".
2446 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2447 declaration.
2448 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2449 Delete function.
2450
2451 2003-09-16 Andrew Cagney <cagney@redhat.com>
2452
2453 * buildsym.c: Remove more occurances of "register".
2454 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2455 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2456 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2457 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2458 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2459 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2460 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2461 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2462
2463 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2464
2465 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2466 numbers to enumeration values.
2467 * sh-tdep.c: Accomodate above change.
2468 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2469 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2470 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2471 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2472 (IS_FPUSH): Rename from IS_FMOV.
2473 (sh_extract_struct_value_address): Remove useless comment.
2474 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2475 instead of own local values.
2476 (sh_dump_tdep): Remove.
2477 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2478 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2479
2480 2003-09-15 Andrew Cagney <cagney@redhat.com>
2481
2482 * doublest.c (convert_floatformat_to_doublest): No longer need to
2483 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2484
2485 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2486
2487 * values.c (unpack_double): Call floatformat_is_valid.
2488
2489 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2490
2491 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2492 ps_strings into a long.
2493
2494 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2495 _initialize_am64fbsd_nat.
2496
2497 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2498
2499 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2500 associated with DW_AT_ranges attribute is out of bounds.
2501
2502 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2503
2504 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2505
2506 2003-09-14 Michael Chastain <mec@shout.net>
2507
2508 * config/m68k/nm-apollo68v.h: Delete.
2509 * config/m68k/xm-apollo68v.h: Delete.
2510
2511 2003-09-14 Andrew Cagney <cagney@redhat.com>
2512
2513 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2514 * dcache.c: Update copyrights and descriptions.
2515 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2516
2517 2003-09-14 Andrew Cagney <cagney@redhat.com>
2518
2519 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2520 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2521
2522 2003-09-14 Andrew Cagney <cagney@redhat.com>
2523
2524 * alpha-nat.c: Remove some occurances of "register".
2525 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2526 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2527 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2528 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2529 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2530 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2531 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2532 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2533 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2534 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2535 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2536 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2537 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2538 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2539 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2540 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2541 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2542 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2543 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2544 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2545 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2546 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2547
2548 2003-09-13 Andrew Cagney <cagney@redhat.com>
2549
2550 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2551 * ppc-tdep.h (struct regcache): Declare opaque.
2552 * objfiles.h (struct objfile_data): Declare opaque.
2553 * cp-support.h (struct objfile): Declare opaque.
2554 * linux-nat.h (target_waitstatus): Declare opaque.
2555
2556 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2557
2558 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2559 (stabs_argument_has_addr): New architecture method.
2560 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2561 * arch-utils.c: Include "buildsym.h".
2562 (default_stabs_argument_has_addr): New function.
2563 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2564 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2565
2566 * cris-tdep.c (cris_gdbarch_init): Set
2567 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2568 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2569 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2570 * mips-tdep.c (mips_gdbarch_init): Likewise.
2571 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2572 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2573
2574 2003-09-13 Andrew Cagney <cagney@redhat.com>
2575
2576 * values.c (using_struct_return): Delete "function" and "funcaddr"
2577 parameters.
2578 * value.h (using_struct_return): Update declaration.
2579 * infcmd.c (finish_command_continuation): Update.
2580 (finish_command): Update.
2581 * infcall.c (call_function_by_hand): Update.
2582 * eval.c (evaluate_subexp_standard): Update.
2583
2584 2003-09-13 Christopher Faylor <cgf@redhat.com>
2585
2586 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2587 SSE registers since gdb will not operate correctly without this.
2588 Restore include file ordering munged in previous change.
2589 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2590
2591 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2592
2593 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2594 REG_STRUCT_HAS_ADDR.
2595 * gdbarch.c, gdbarch.h: Updated.
2596 * infcall.c (call_function_by_hand): Update.
2597 * stabsread.c (define_symbol): Updated.
2598
2599 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2600
2601 2003-09-12 Christopher Faylor <cgf@redhat.com>
2602
2603 * win32-nat.c: Reorganize so that defines used by target headers are
2604 actually defined by the system headers.
2605 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2606 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2607
2608 2003-09-12 Jim Blandy <jimb@redhat.com>
2609
2610 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2611 the file has no .data, .bss, or .rodata sections. Instead wait
2612 until we see a variable alleged to live in one of those sections.
2613
2614 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2615 .bss section, presume that any variables we find live in the
2616 .rodata section.
2617
2618 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2619 offsets for global and static variables.
2620
2621 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2622 symbol types are, by definition, in the .data section, so it is
2623 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2624 If there is no .data section, there should be no N_DATA or N_DATA
2625 | N_EXT symbols.
2626
2627 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2628
2629 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2630 (amd64fbsd_sigcontext_addr): Rewrite.
2631 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2632 with correct values.
2633 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2634 (amd64fbsd_init_abi): Fix typo.
2635
2636 2003-09-12 Andrew Cagney <cagney@redhat.com>
2637
2638 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2639 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2640
2641 2003-09-12 Andrew Cagney <cagney@redhat.com>
2642
2643 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2644 "entry_file_highpc". Update comments.
2645 * defs.h (deprecated_inside_entry_file): Rename
2646 "inside_entry_file".
2647 * blockframe.c (deprecated_inside_entry_file): Rename
2648 "inside_entry_file".
2649 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2650 * vax-tdep.c (vax_frame_chain): Update.
2651 * sh64-tdep.c (sh64_frame_chain): Update.
2652 * sh-tdep.c (sh_frame_chain): Update.
2653 * rs6000-tdep.c (rs6000_frame_chain): Update.
2654 * ns32k-tdep.c (ns32k_frame_chain): Update.
2655 * mips-tdep.c (mips_frame_chain): Update.
2656 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2657 * m32r-tdep.c (m32r_frame_this_id): Update.
2658 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2659 * frv-tdep.c (frv_frame_this_id): Update.
2660 * d10v-tdep.c (d10v_frame_this_id): Update.
2661 * cris-tdep.c (cris_frame_chain): Update.
2662 * blockframe.c (legacy_frame_chain_valid): Update.
2663 * avr-tdep.c (avr_frame_this_id): Update.
2664 * arm-tdep.c (arm_prologue_this_id): Update.
2665 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2666 * objfiles.c (objfile_relocate): Update.
2667 * mipsread.c (mipscoff_symfile_read): Update.
2668 (mipscoff_symfile_read): Update.
2669 * mdebugread.c (parse_partial_symbols): Update.
2670 * dwarfread.c (read_file_scope): Update.
2671 * dwarf2read.c (read_file_scope): Update.
2672 * dbxread.c (read_dbx_symtab): Update.
2673 (read_dbx_symtab): Update.
2674 * coffread.c (complete_symtab): Update.
2675
2676 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2677
2678 * top.c (quit_target): New static helper function.
2679 (quit_force): Moved code to quit_target(). Call quit_target()
2680 via catch_errors() to catch errors during quit.
2681
2682 2003-09-11 David Carlton <carlton@kealia.com>
2683
2684 * buildsym.c (finish_block): Use allocate_block to allocate the
2685 block.
2686 * mdebugread.c (new_block): Add FIXME.
2687
2688 2003-09-11 David Carlton <carlton@kealia.com>
2689
2690 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2691 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2692 (recursive_dump_type): Ditto.
2693 * printcmd.c (print_formatted): Ditto.
2694 * typeprint.c (print_type_scalar): Ditto.
2695 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2696 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2697 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2698 maint_cplus_cmd_list.
2699 * cp-support.c: Make maint_cplus_cmd_list extern.
2700 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2701 command.h.
2702 (lookup_symbol_file): Look in possible namespace blocks when
2703 appropriate.
2704 (initialize_namespace_symtab): New.
2705 (get_possible_namespace_block, free_namespace_block)
2706 (check_possible_namespace_symbols)
2707 (check_possible_namespace_symbols_loop)
2708 (check_one_possible_namespace_symbol)
2709 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2710 (_initialize_cp_namespace): Ditto.
2711 * block.h: Declare allocate_block.
2712 * block.c (allocate_block): New.
2713 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2714 allocate_block.
2715 * symfile.h: Update declaration of add_psymbol_to_list.
2716 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2717 question.
2718 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2719 scan_partial_symbols_call.
2720 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2721 helper functions.
2722 (add_partial_symbol): If necessary, scan mangled names for names
2723 of namespaces.
2724 (add_partial_namespace): Add NAMESPACE argument; generate partial
2725 symbols associated to namespaces.
2726 (add_partial_enumeration): Add NAMESPACE argument.
2727 (new_symbol): Allow namespace syms.
2728 (read_namespace): Generate namespace syms.
2729 * objfiles.h: Add opaque declaration of struct symtab.
2730 (struct objfile): Add cp_namespace_symtab member.
2731 * objfiles.c (allocate_objfile): Set
2732 objfile->cp_namespace_symtab.
2733 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2734 dictionary_h, command_h.
2735
2736 2003-09-11 Andrew Cagney <cagney@redhat.com>
2737
2738 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2739 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2740 near the function's end.
2741 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2742 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2743 regcache_raw_write_signed to set SP_REGNUM.
2744
2745 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2746
2747 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2748 orig_addrs is set up properly.
2749
2750 2003-09-11 Andrew Cagney <cagney@redhat.com>
2751
2752 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2753 * gdbarch.h, gdbarch.c: Re-generate.
2754 * infcall.c (call_function_by_hand): Update.
2755 * hppa-tdep.c (hppa_push_arguments): Update.
2756 * ada-lang.c (place_on_stack): Update.
2757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2758 * sparc-tdep.c (sparc_gdbarch_init): Update.
2759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2760 * hppa-tdep.c (hppa_gdbarch_init): Update.
2761 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2762 stack_align.
2763
2764 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2765
2766 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2767 register do need a frame.
2768
2769 2003-09-11 Andrew Cagney <cagney@redhat.com>
2770
2771 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2772 buildable since GDB 5.0.
2773 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2774 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2775 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2776 * irix4-nat.c: Delete file.
2777 * config/mips/irix4.mh: Delete file.
2778 * config/mips/irix3.mh: Delete file.
2779 * config/mips/irix3.mt: Delete file.
2780 * config/mips/tm-irix3.h: Delete file.
2781 * config/mips/nm-irix3.h: Delete file.
2782 * config/mips/xm-irix3.h: Delete file.
2783 * config/mips/nm-irix4.h: Delete file.
2784 * config/mips/xm-irix4.h: Delete file.
2785 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2786
2787 2003-09-10 J. Brobecker <brobecker@gnat.com>
2788
2789 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2790 * Makefile.in (hppa-tdep.o): Update dependencies.
2791
2792 2003-09-10 James E Wilson <wilson@specifixinc.com>
2793
2794 * MAINTAINERS: Change my e-mail address. Move to paper trail
2795 section.
2796
2797 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2798
2799 * MAINTAINERS (frv): New ISA entry.
2800
2801 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2802
2803 * frv-tdep.c (dis-asm.h): Include.
2804 * Makefile.in (frv-tdep.o): Update dependencies.
2805
2806 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2807
2808 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2809 Fix typo for high range of floating registers.
2810
2811 2003-09-09 David Carlton <carlton@kealia.com>
2812
2813 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2814 highpc initialization here out of scan_partial_symbols.
2815 (scan_partial_symbols): Restructure into a recursive version,
2816 calling add_partial_namespace and add_partial_enumeration when
2817 appropriate.
2818 (add_partial_namespace): New.
2819 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2820
2821 2003-09-09 Andrew Cagney <cagney@redhat.com>
2822
2823 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2824 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2825 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2826 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2827
2828 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2829 (rs6000_push_dummy_call): Set the "TOC" register.
2830
2831 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2832 methods "max_register_raw_size", "max_register_virtual_size" or
2833 "register_virtual_size".
2834
2835 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2836
2837 * MAINTAINERS: Update my e-mail address.
2838
2839 2003-09-09 Andrew Cagney <cagney@redhat.com>
2840
2841 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2842 (rs6000_push_dummy_call): Store the struct return address.
2843 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2844
2845 2003-09-09 Andrew Cagney <cagney@redhat.com>
2846
2847 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2848 "ppc_sysv_abi_push_arguments".
2849 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2850 "ppc_sysv_abi_push_arguments".
2851 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2852 instead of "push_arguments".
2853 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2854
2855 2003-09-09 Andrew Cagney <cagney@redhat.com>
2856
2857 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2858 instead of CALL_DUMMY_ADDRESS.
2859
2860 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2861
2862 * p-lang.c: Eliminate "register".
2863 * c-lang.c: Ditto.
2864 * expprint.c: Ditto.
2865 * f-lang.c: Ditto.
2866 * jv-lang.c: Ditto.
2867 * language.c: Ditto.
2868 * m2-lang.c: Ditto.
2869 * parse.c: Ditto.
2870 * scm-lang.c: Ditto.
2871 * objc-lang.c: Ditto.
2872
2873 2003-09-09 Nick Clifton <nickc@redhat.com>
2874
2875 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2876
2877 2003-09-04 Andrew Cagney <cagney@redhat.com>
2878
2879 * avr-tdep.c: Include "dis-asm.h".
2880 * cris-tdep.c: Include "dis-asm.h".
2881 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2882 instead of corresponding typedef.
2883 * h8300-tdep.c: Include "dis-asm.h".
2884 * ia64-tdep.c: Include "dis-asm.h".
2885 * i386-tdep.c: Include "dis-asm.h".
2886 (i386_print_insn): Use "struct disassemble_info" instead of
2887 corresponding typedef.
2888 * m68k-tdep.c: Include "dis-asm.h".
2889 * mcore-tdep.c: Include "dis-asm.h".
2890 * mips-tdep.c: Include "dis-asm.h".
2891 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2892 instead of corresponding typedef.
2893 * ns32k-tdep.c: Include "dis-asm.h".
2894 * s390-tdep.c: Include "dis-asm.h".
2895 * sparc-tdep.c: Include "dis-asm.h".
2896 * vax-tdep.c: Include "dis-asm.h".
2897 * v850-tdep.c: Include "dis-asm.h".
2898 * mn10300-tdep.c: Include "dis-asm.h".
2899 * rs6000-tdep.c: Include "dis-asm.h".
2900 * xstormy16-tdep.c: Include "dis-asm.h".
2901 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2902 print_insn_xstormy16.
2903 * Makefile.in (v850-tdep.o): Update dependencies.
2904 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2905 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2906 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2907 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2908 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2909 (gdbarch_h): Remove $(dis_asm_h).
2910 * disasm.c: Include "dis-asm.h".
2911 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2912 corresponding typedef.
2913 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2914 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2915 * gdbarch.sh: Do not include "dis-asm.h".
2916 (struct disassemble_info): Declare opaque.
2917 (TARGET_PRINT_INSN): Update declaration.
2918 * gdbarch.h, gdbarch.c: Re-generate.
2919
2920 2003-09-08 Andrew Cagney <cagney@redhat.com>
2921
2922 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2923 CALL_DUMMY_ADDRESS, change to a predicate.
2924 * gdbarch.h, gdbarch.c: Re-generate.
2925 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2926 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2927 * infcall.c (call_function_by_hand): Ditto.
2928 * sparc-tdep.c (sparc_push_return_address): Ditto.
2929 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2930 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2931 CALL_DUMMY_ADDRESS with entry_point_address.
2932 * v850-tdep.c (v850_push_return_address): Ditto.
2933 * s390-tdep.c (s390_push_return_address): Ditto.
2934 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2935 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2936 * mcore-tdep.c (mcore_push_return_address): Ditto.
2937 * cris-tdep.c (cris_push_return_address): Ditto.
2938 * arm-tdep.c (arm_push_return_address): Ditto.
2939
2940 2003-09-08 Andrew Cagney <cagney@redhat.com>
2941
2942 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2943 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2944 and REG_UNMODIFIED to REG_SAME_VALUE.
2945 (execute_cfa_program): Update.
2946 (dwarf2_frame_cache): Update. Initialize table to
2947 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2948 location.
2949 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2950
2951 2003-09-08 Andrew Cagney <cagney@redhat.com>
2952
2953 * gnu-nat.c: Remove "inline" function attribute.
2954 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2955
2956 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2957
2958 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2959 target.
2960
2961 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2962
2963 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2964 (frame_extra_info): Rename this struct to frv_unwind_cache.
2965 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2966 Add fields ``prev_sp'' and ``base''.
2967 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2968 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2969 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2970 Delete.
2971 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2972 Revise all callers. Fill in the unwind cache argument and make
2973 other adjustments to account for new frame mechanisms.
2974 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2975 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2976 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2977 (frv_frame_unwind, frv_frame_base): New structs.
2978 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2979 additional arguments expected by this method and adjust function
2980 body accordingly.
2981 (frv_gdbarch_init): Remove calls to the following functions:
2982 set_gdbarch_deprecated_init_frame_pc(),
2983 set_gdbarch_deprecated_saved_pc_after_call(),
2984 set_gdbarch_deprecated_frame_chain(),
2985 set_gdbarch_deprecated_frame_saved_pc(),
2986 set_gdbarch_deprecated_frame_init_saved_regs(),
2987 set_gdbarch_deprecated_push_arguments(),
2988 set_gdbarch_deprecated_push_return_address(),
2989 set_gdbarch_deprecated_pop_frame(),
2990 set_gdbarch_deprecated_call_dummy_words(),
2991 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2992 set_gdbarch_deprecated_init_extra_frame_info(),
2993 set_gdbarch_deprecated_dummy_write_sp(), and
2994 set_gdbarch_deprecated_pc_in_call_dummy().
2995 Add calls to the following functions:
2996 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2997 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2998 frame_base_set_default().
2999 * Makefile.in (frv-tdep.o): Update dependencies.
3000
3001 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3002
3003 * dwarf2-frame.c (read_encoded_value): Add support for
3004 DW_EH_PE_aligned encoding.
3005
3006 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3007
3008 * infrun.c (normal_stop): Don't print a message if the inferior
3009 has exited.
3010
3011 2003-09-08 Jim Blandy <jimb@redhat.com>
3012
3013 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3014 * dbxread.c: #include "gdb_assert.h".
3015 (read_dbx_symtab): If the objfile has no .data section, use the
3016 section index for the .bss section instead.
3017
3018 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3019
3020 * frame.c (deprecated_safe_get_selected_frame): New function.
3021 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3022 * findvar.c (read_var_value): Call it.
3023
3024 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3025
3026 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3027 (sh64-tdep.o): Add dependencies.
3028 * configure.tgt: Add FIXME to sh-*-linux*.
3029 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3030 (sh_gdbarch_init): Always set correct sh_show_regs function
3031 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3032 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3033 * sh64-tdep.c: New file, containing all sh64 related code from
3034 sh-tdep.c.
3035 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3036 * config/sh/linux.mt (TDEPFILES): Ditto.
3037 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3038 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3039 * config/sh/wince.mt (TDEPFILES): Ditto.
3040
3041 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3042
3043 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3044 (stop_wait_callback): Handle !lp->signalled also.
3045 (lin_lwp_has_pending, flush_callback): New functions.
3046 (lin_lwp_wait): Call flush_callback.
3047 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3048 (linux_proc_pending_signals): New function.
3049 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3050
3051 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3052
3053 From Nick Kelsey <nickk@ubicom.com>:
3054 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3055 when the stop PC is at the beginning of a function also.
3056
3057 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3058
3059 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3060 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3061
3062 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3063
3064 * sol-thread.c: Include "gdb_string.h".
3065
3066 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3067
3068 * gcore.c: Reorder include files in alphabetical order. Include
3069 "gdb_assert.h". Various coding style fixes.
3070 (derive_stack_segment, derive_heap_segment): Replace check for
3071 non-null BOTTOM and TOP with gdb_assert.
3072 (derive_heap_segment): Replace check for successful creation of
3073 ZERO with gdb_assert.
3074 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3075
3076 2003-09-04 Andrew Cagney <cagney@redhat.com>
3077
3078 * thread-db.c (verbose_dlsym): New function.
3079 (thread_db_load): Use verbose_dlsym
3080 (thread_db_new_objfile): Print that libthread_db was loaded, and
3081 that thread debugging was enabled.
3082
3083 2003-09-04 Andrew Cagney <cagney@redhat.com>
3084
3085 * configure.tgt: Add "mips64*-*-*" target. Delete
3086 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3087 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3088 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3089 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3090 mips*-sony-*, and mips64*-*-elf* targets.
3091 * config/mips/embedl.mt: Delete file.
3092 * config/mips/embedl64.mt: Delete file.
3093 * config/mips/mips.mt: Delete file.
3094 * config/mips/mips64.mt: Delete file.
3095 * config/mips/tm-embed.h: Delete file.
3096 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3097 * config/mips/embed64.mt: Delete out-of-date comment.
3098
3099 2003-09-04 Andrew Cagney <cagney@redhat.com>
3100
3101 * hppa-tdep.c (hppa_gdbarch_init): Set
3102 "have_nonsteppable_watchpoint".
3103 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3104 * mips-tdep.c (mips_dump_tdep): Do not print
3105 HAVE_NONSTEPPABLE_WATCHPOINT.
3106 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3107 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3108 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3109 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3110
3111 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3112
3113 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3114 unused code. Add comment.
3115
3116 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3117
3118 * breakpoint.c (watchpoint_check): Check for pc being in an
3119 epilogue if watchpoint frame couldn't be found.
3120
3121 2003-09-04 Andrew Cagney <cagney@redhat.com>
3122
3123 * Makefile.in: Re-generate all dependencies.
3124
3125 2003-09-03 Andrew Cagney <cagney@redhat.com>
3126
3127 * arch-utils.h (legacy_print_insn): Delete declaration.
3128 * arch-utils.c (legacy_print_insn): Delete function.
3129 * disasm.c (deprecated_tm_print_insn_info): Delete.
3130 (_initialize_disasm): Delete function, contained code initializing
3131 deprecated_tm_print_insn_info.
3132 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3133 (deprecated_tm_print_insn_info): Delete.
3134 (TARGET_PRINT_INSN): Do not provide a default.
3135 * gdbarch.h, gdbarch.c: Re-generate.
3136
3137 2003-09-03 Andrew Cagney <cagney@redhat.com>
3138
3139 * disasm.c (fprintf_disasm): New function.
3140 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3141 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3142 reverts 2003-08-14 change.
3143 (_initialize_disasm): Call "init_disassemble_info", instead of
3144 INIT_DISASSEMBLE_INFO_NO_ARCH.
3145
3146 2003-09-03 Michael Snyder <msnyder@redhat.com>
3147
3148 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3149
3150 2003-09-03 Andrew Cagney <cagney@redhat.com>
3151
3152 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3153 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3154 * symfile.c (syms_from_objfile): Update.
3155 (reread_symbols): `Update
3156 * exec.c (exec_file_attach): Update.
3157 (exec_file_attach): Update.
3158 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3159 2003-08-29 change.
3160 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3161
3162 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3163
3164 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3165 trad-frame.h.
3166 (arm_get_cache): Delete macro.
3167 (struct arm_prologue_cache): Update comments. Make saved_regs into
3168 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3169 to prev_sp.
3170 (thumb_scan_prologue): Update for cache changes. Don't call
3171 DEPRECATED_PC_IN_CALL_DUMMY.
3172 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3173 argument and use it in desperation search for our prologue. Do not
3174 search past the specified PC.
3175 (arm_make_prologue_cache): Simplify.
3176
3177 (arm_prologue_this_id, arm_prologue_prev_register)
3178 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3179 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3180 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3181 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3182 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3183
3184 (arm_frame_chain_valid, arm_find_callers_reg)
3185 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3186 (arm_pop_frame): Delete obsolete methods.
3187 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3188
3189 (arm_gdbarch_init): Update for new frame methods. Register prologue
3190 and sigtramp unwinders. Set the default frame base method.
3191
3192 * Makefile.in (arm-tdep.o): Update dependencies.
3193 * varobj.c (find_frame_addr_in_frame_chain): Call
3194 get_frame_base_address.
3195 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3196
3197 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3198
3199 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3200 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3201 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3202 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3203 Take NEXT_FRAME and CACHE arguments. Call
3204 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3205 Set unwound_pc in CACHE instead of modifying the frame argument.
3206 Don't bother checking the frame type when looking for sigtramp
3207 frames.
3208 (arm_make_prologue_cache, arm_frame_chain)
3209 (arm_init_extra_frame_info): New functions.
3210
3211 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3212
3213 * arm-tdep.c (arm_get_cache): Define.
3214 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3215 unwound_sp, unwound_pc, and saved_regs.
3216 (thumb_scan_prologue): Take a cache instead of the frame.
3217 (arm_scan_prologue): Likewise.
3218 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3219 instead of a temporary frame.
3220 (arm_init_extra_frame_info): Allocate and use a cache.
3221 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3222
3223 2003-09-03 Andrew Cagney <cagney@redhat.com>
3224
3225 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3226 * config/mips/wince.mt (TM_CLIBS): Ditto.
3227 * config/sh/wince.mt (TM_CLIBS): Ditto.
3228 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3229 * config/sparc/sp64.mt (CC): Delete.
3230
3231 2003-09-03 Andrew Cagney <cagney@redhat.com>
3232
3233 * defs.h: Do not include "arch-utils.h".
3234 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3235 GDB_MULTI_ARCH_PURE.
3236 * configure.in (GDB_MULTI_ARCH): Do not define.
3237 * configure, config.in: Regenerate.
3238 * configure.tgt: Do not set variable "gdb_multi_arch".
3239 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3240 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3241 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3242 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3243 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3244 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3245 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3246 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3247 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3248 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3249 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3250 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3251 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3252 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3253 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3254 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3255 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3256 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3257
3258 2003-08-30 Michael Chastain <mec@shout.net>
3259
3260 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3261 * config/m68k/nm-hp300hpux.h: Delete.
3262 * config/m68k/tm-hp300hpux.h: Delete.
3263 * config/m68k/xm-hp300hpux.h: Delete.
3264 * config/m68k/xm-hp300bsd.h: Delete.
3265 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3266 tm-hp300hpux.h, xm-hp300hpux.h.
3267 * somsolib.c: Remove comment about hp300 shared libraries.
3268
3269 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3270
3271 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3272 Only define PTRACE_GET_THREAD_AREA is not already defined.
3273 Various style fixes in code and comments and some additional
3274 spelling fixes in comments. Move after functions dealing with
3275 debug registers.
3276 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3277 Fix coding-style.
3278
3279 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3280 frame_unwind_register_unsigned instead of
3281 frame_unwind_unsigned_register.
3282
3283 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3284
3285 * configure.in: Search for gethostbyname in libnsl.
3286 * configure: Regenerated.
3287
3288 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3289
3290 * configure.in: Remove redundant AC_MSG_RESULT in check for
3291 uintptr_t in stdint.h.
3292 * configure: Regenerated.
3293
3294 * amd64-nat.h (struct regcache): Add opaque declaration.
3295
3296 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3297 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3298 Change "register array" to "register cache" in comments.
3299 (x86_64_linux_gregset64_reg_offset): New variable.
3300 (GETREGS_SUPPLIES): Remove macro.
3301 (supply_gregset): Call amd64_supply_native_gregset instead of
3302 x86_64_linux_supply_gregset.
3303 (fill_gregset): Rename `regno' to `regnum'. Call
3304 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3305 (store_regs): Rename `regno' to `regnum'.
3306 (store_fpregs): Rename `regno' to `regnum'.
3307 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3308 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3309 Reorganize function a bit.
3310 (store_inferior_registers): Rename `regno' to `regnum'. Use
3311 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3312 Reorganize function a bit.
3313 (_initialize_x86_64_linux_nat): New function.
3314 * config/i386/x86-64linux.mh.
3315
3316 2003-08-29 Andrew Cagney <cagney@redhat.com>
3317
3318 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3319 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3320 (target_remove_watchpoint): Delete macro.
3321 (target_insert_watchpoint): Delete macro.
3322 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3323 (remote_mips_stopped_by_watchpoint): Delete declaration.
3324 (remote_mips_remove_watchpoint): Delete declaration.
3325 (remote_mips_set_watchpoint): Delete declaration.
3326 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3327 * remote-mips.c (_initialize_remote_mips): Set
3328 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3329 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3330 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3331 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3332 (mips_stopped_by_watchpoint): Rename
3333 remote_mips_stopped_by_watchpoint.
3334 (mips_can_hardware_watchpoint): Rename
3335 remote_mips_can_use_hardware_watchpoint, update function
3336 signature.
3337
3338 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3339
3340 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3341 USER_DS. We haven't given them a register number yet.
3342
3343 * amd64-nat.h: New file.
3344 * amd64-nat.c: New file.
3345 * amd64fbsd-nat.c: Include "amd64-nat.h".
3346 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3347 (amd64fbsd32_r_reg_offset): New variable.
3348 (supply_gregset): Simply call amd64_supply_native_gregset.
3349 (fill_gregset): Rename `regno' to `regnum'. Simply call
3350 amd64_collect_native_gregset.
3351 (fill_fpregset): Rename `regno' to `regnum'.
3352 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3353 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3354 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3355 `fpregset_t'. Call amd64_supply_native_gregset instead of
3356 supply_gregset. Call x86_64_supply_fxsave instead of
3357 supply_fpregset.
3358 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3359 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3360 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3361 `fpregset_t'. Call amd64_collect_native_gregset instead of
3362 fill_gregset. Call x86_64_collect_fxsave instead of
3363 fill_fpregset.
3364 (_initialize_am64fbsd_nat): Initialize
3365 amd64_native_gregset32_reg_offset and
3366 amd64_native_gregset64_reg_offset.
3367 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3368
3369 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3370 null pointer. Fix typo in comment.
3371
3372 * regcache.c (supply_register): Reimplement to call
3373 regcache_raw_supply.
3374 (regcache_collect): Reimplement by calling regcache_raw_collect.
3375
3376 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3377
3378 * regcache.c (register_buffer): Consitify first argument.
3379 (regcache_raw_supply, regcache_raw_collect): New
3380 functions.
3381
3382 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3383
3384 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3385 by Nathan J. Williams.
3386
3387 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3388
3389 * lin-lwp.c (wait_lwp): New function, copied from
3390 stop_wait_callback. Clean up.
3391 (stop_wait_callback): Use wait_lwp.
3392
3393 2003-08-28 Andrew Cagney <cagney@redhat.com>
3394
3395 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3396 flavour and disassembler options.
3397 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3398 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3399 deprecated_tm_print_insn_info.
3400
3401 2003-08-27 Andrew Cagney <cagney@redhat.com>
3402
3403 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3404 Use target_read_memory.
3405 (s390_get_frame_info): Update. Do not reference
3406 deprecated_tm_print_insn_info.
3407 (s390_check_function_end, s390_is_sigreturn): Ditto.
3408
3409 2003-08-27 Andrew Cagney <cagney@redhat.com>
3410
3411 * Makefile.in (cris-tdep.o): Update dependencies.
3412 * cris-tdep.c: Include "gdb_assert.h".
3413 (cris_gdbarch_init): Set print_insn.
3414 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3415 (cris_delayed_get_disassembler): Simplify, directly call the
3416 disassembler returned by cris_get_disassembler.
3417 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3418 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3419 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3420 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3421 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3422 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3423 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3424 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3425 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3426 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3427 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3428 (gdb_print_insn_sparc): Delete function.
3429 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3430 deprecated_tm_print_insn_info.
3431 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3432 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3433 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3435 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3436 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3437 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3438 (s390_gdbarch_init): Set print_insn.
3439
3440 2003-08-27 Andrew Cagney <cagney@redhat.com>
3441
3442 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3443 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3444 * infcall.c (call_function_by_hand): Convert the entry point
3445 address into a code address.
3446
3447 2003-08-27 Andrew Cagney <cagney@redhat.com>
3448
3449 * dsrec.c: Include "gdb_string.h".
3450 * Makefile.in (dsrec.o): Update dependencies.
3451
3452 2003-08-27 Michael Chastain <mec@shout.net>
3453
3454 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3455
3456 2003-08-27 Andrew Cagney <cagney@redhat.com>
3457
3458 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3459 (alpha_osf1_init_abi): Do not set call_dummy_address.
3460
3461 2003-08-27 David Carlton <carlton@kealia.com>
3462
3463 From Randolph Chung <tausq@debian.org>:
3464 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3465 compiles with -Wformat-nonliteral -Werror.
3466
3467 2003-08-26 Jim Blandy <jimb@redhat.com>
3468
3469 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3470 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3471 bfd_lookup_symbol, since we only want symbols in code sections.
3472 (look_for_base): Pass zero as the SECT_FLAGS argument to
3473 bfd_lookup_symbol, since we're not concerned about which section
3474 the symbol is in.
3475
3476 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3477
3478 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3479 we are frameless or the return address register is already known.
3480
3481 2003-08-26 Andrew Cagney <cagney@redhat.com>
3482
3483 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3484 in size. Add comments.
3485
3486 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3487
3488 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3489 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3490
3491 2003-08-26 Jason Merrill <jason@redhat.com>
3492
3493 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3494 case out of #ifdef MIPS block.
3495
3496 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3497
3498 PR java/1322
3499 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3500 available before calling SECT_OFF_TEXT.
3501 * PROBLEMS: Remove description of java/1322.
3502
3503 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3504
3505 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3506 bof, and nat0-nat127 as pseudo-registers.
3507 (ia64_frame_cache): New struct used to cache frame info.
3508 (ia64_register_reggroup_p): New routine used to override default
3509 register grouping so registers without names are still saved and
3510 restored.
3511 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3512 pseudo values.
3513 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3514 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3515 (ia64_alloc_frame_cache): New routine to create a new
3516 ia64_frame_cache.
3517 (examine_prologue): Change prototype to add next_frame pointer.
3518 Assume frameless until otherwise proven. Verify that the cfm for
3519 current frame matches the cfm that should occur for the prologues
3520 alloc insn and if equal, mark as not frameless. At end of routine,
3521 if not frameless, calculate registers for the previous frame and store
3522 in the cache, if a cache is provided.
3523 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3524 and pass 0 for next_frame.
3525 (ia64_store_return_value): Change to use convert_typed_floating()
3526 instead of calling ia64_convert_to_raw().
3527 (ia64_extract_return_value): Change to use convert_typed_floating()
3528 instead of calling ia64_convert_to_virtual().
3529 (ia64_frame_cache): New routine to support new frame model.
3530 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3531 (ia64_frame_sniffer): Ditto.
3532 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3533 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3534 (ia64_sigtramp_frame_prev_register): Ditto.
3535 (ia64_sigtramp_frame_sniffer): Ditto.
3536 (ia64_frame_base_address): Ditto.
3537 (ia64_extract_struct_value_address): Change to issue error message.
3538 (ia64_frame_align): New routine to align sp.
3539 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3540 (ia64_push_arguments): Removed. Logic moved to
3541 ia64_push_dummy_call().
3542 (ia64_push_return_address): Ditto.
3543 (ia64_unwind_dummy_id): New function.
3544 (ia64_unwind_pc): Ditto.
3545 (ia64_convert_register_p): Ditto.
3546 (ia64_register_to_value): Ditto.
3547 (ia64_value_to_register): Ditto.
3548 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3549 (ia64_register_byte, ia64_register_raw_size): Ditto.
3550 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3551 (ia64_saved_pc_after_call): Ditto.
3552 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3553 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3554 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3555 (ia64_register_convert_to_raw): Ditto.
3556 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3557 (ia64_init_extra_frame_info): Ditto.
3558 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3559 (ia64_gdbarch_init): Remove registering of deprecated functions that
3560 are no longer used. Add registration of new gdbarch functions.
3561 Remove registering deprecated_write_sp. Replace
3562 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3563 Delete set_gdbarch_deprecated_register_convertible(),
3564 set_gdbarch_deprecated_register_convert_to_virtual(), and
3565 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3566 set_gdbarch_deprecated_register_size(),
3567 set_gdbarch_deprecated_register_bytes(),
3568 set_gdbarch_pcregnum(),
3569 set_gdbarch_deprecated_register_byte(),
3570 set_gdbarch_deprecated_register_raw_size(),
3571 set_gdbarch_deprecated_max_register_raw_size(),
3572 set_gdbarch_deprecated_register_virtual_size(),
3573 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3574 Replace set_gdbarch_deprecated_extract_return_value() with
3575 set_gdbarch_extract_return_value(). Remove calls to:
3576 set_gdbarch_deprecated_saved_pc_after_call();
3577 set_gdbarch_deprecated_frame_chain(),
3578 set_gdbarch_deprecated_frame_saved_pc(),
3579 set_gdbarch_deprecated_frame_init_saved_regs(),
3580 set_gdbarch_deprecated_get_saved_register(),
3581 set_gdbarch_deprecated_call_dummy_words(),
3582 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3583 set_gdbarch_deprecated_init_extra_frame_info(),
3584 set_gdbarch_deprecated_frame_args_address(),
3585 set_gdbarch_deprecated_frame_locals_address(),
3586 and set_gdbarch_deprecated_dummy_write_sp().
3587 Add set_gdbarch_convert_register_p(),
3588 set_gdbarch_register_to_value(),
3589 set_gdbarch_value_to_register(),
3590 set_gdbarch_push_dummy_call(),
3591 set_gdbarch_frame_align(),
3592 set_gdbarch_unwind_dummy_id(),
3593 set_gdbarch_unwind_pc(),
3594 frame_unwind_append_sniffer(),
3595 frame_unwind_append_sniffer(),
3596 and frame_base_set_default().
3597
3598 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3599
3600 * configure.tgt: Document need for special "mipsisa64" handling.
3601 (mipsisa64*-*-linux64): Handle as target linux64.
3602 (mipsisa64*-*-*): Handle as target embed64.
3603
3604 2003-08-18 Michael Chastain <mec@shout.net>
3605
3606 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3607 objfile bug.
3608
3609 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3610
3611 * i387-tdep.h: Update copyright date.
3612 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3613
3614 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3615 CFLAGS games to reflect reality.
3616
3617 2003-08-24 Andrew Cagney <cagney@redhat.com>
3618
3619 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3620 GDB_MULTI_ARCH is always non-zero.
3621 * osabi.c (_initialize_gdb_osabi): Ditto.
3622 (gdbarch_init_osabi): Ditto.
3623 * sparc-tdep.c: Ditto for #if code.
3624
3625 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3626
3627 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3628 Update comments.
3629 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3630 comments.
3631 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3632 x86_64_supply_fxsave.
3633 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3634 x86_64_supply_fxsave.
3635 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3636 x86_64_supply_fxsave.
3637
3638 2003-08-23 Andreas Jaeger <aj@suse.de>
3639
3640 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3641 i387_supply_fxsave.
3642
3643 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3644
3645 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3646 i387_supply_register.
3647 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3648 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3649 i387_supply_fsave.
3650 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3651 i387_supply_fxsave.
3652 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3653 i387_supply_fsave.
3654 * i386bsd-nat.c (supply_fpregset): Adjust call to
3655 i387_supply_fsave.
3656 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3657 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3658 supply_fpregset.
3659 (store_inferior_registers): Remove extraneous whitespace. Call
3660 i387_fill_fsave instead of fill_fpregset.
3661 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3662 (supply_fpregset): Likewise.
3663 * i386v4-nat.c (supply_fpregset): Adjust call to
3664 i387_supply_fsave.
3665 * i386-interix-nat.c (supply_fpregset): Adjust call to
3666 i387_supply_fsave.
3667 * i386-linux-nat.c (supply_fpregset): Adjust call to
3668 i387_supply_fsave.
3669 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3670 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3671 i387supply_fsave and i387_supply_fxsave.
3672 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3673 Incorporate code from `i387_supply_register.
3674 (i387_supply_register): Remove.
3675 (i387_supply_fxsave): Add `regnum' argument.
3676 Update comments.
3677 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3678 prototype.
3679 (i387_supply_register): remove prototype.
3680 Update comments.
3681
3682 2003-08-22 Michael Chastain <mec@shout.net>
3683
3684 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3685 Add lines for files in gdb/testsuite/gdb.cp/* that are
3686 still not 8.3 unique.
3687
3688 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3689
3690 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3691 TYPE_VPTR_FIELDNO is valid.
3692
3693 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3694
3695 * utils.c (set_width_command): Remove prototypes.
3696 (set_screen_size): New prototype.
3697 (init_page_info): Simplify by fetching the screen size from
3698 Readline. Call set_screen_size.
3699 (set_screen_size): New function.
3700 (set_width): Add missing whitespace in comment.
3701 (set_width_command): Call set_screen_size.
3702 (set_height_command): New function.
3703 (initialize_utils): Fix formatting. Make "set height" command
3704 call set_height_command. Remove redundant code that turns off
3705 pagination if output isn't a terminal. Remove redundant call to
3706 set_width_command.
3707
3708 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3709
3710 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3711 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3712 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3713 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3714 `case' keyword.
3715 (sparc64_register_info): Give the reister with number
3716 SPARC64_STATE_REGNUM a name.
3717 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3718 %asi and %ccr.
3719 (sparc64_push_dummy_call): Take BIAS into account when checking
3720 stcak alignment.
3721 (sparc_software_single_step): Remove assertions that check whether
3722 NPC and NNPC were zero.
3723 (sparc_supply_rwindow): Make public. Merge functionality with
3724 sparc64_supply_rwindow.
3725 (sparc_fill_rwindow): Make public. Merge functionality with
3726 sparc64_fill_rwindow.
3727 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3728 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3729 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3730 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3731 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3732
3733 * reggroups.c: Add whitespace after declarations of local
3734 variables in functions.
3735
3736 2003-08-21 Michael Chastain <mec@shout.net>
3737
3738 * gdbtypes.h: Change array bound type from an int to enum.
3739
3740 2003-08-21 Andrew Cagney <cagney@redhat.com>
3741
3742 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3743 * config/sparc/tm-sparc.h: Ditto.
3744 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3745 unconditionally.
3746 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3747
3748 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3749
3750 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3751 (register_objfile_data, set_objfile_data, objfile_data): New
3752 prototypes.
3753 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3754 prototypes.
3755 (allocate_objfile): Call objfile_alloc_data.
3756 (free_objfile): Call objfile_free_data.
3757 (struct objfile_data): New.
3758 (struct objfile_data_registration): New.
3759 (struct objfile_data_registry): New.
3760 (objfile_data_registry): New variable.
3761 (register_objfile_data): New function.
3762 (objfile_alloc_data, objfile_free_data): New functions.
3763 (set_objfile_data, objfile_data): New functions.
3764 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3765 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3766 (_initialize_dwarf2_frame): New function and prototype.
3767
3768 2003-08-21 Andrew Cagney <cagney@redhat.com>
3769
3770 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3771 a specific architecture.
3772 * arch-utils.h (set_architecture_from_arch_mach): Delete
3773 declaration.
3774 (target_architecture_hook): Delete declaration.
3775 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3776 (default_float_format): Assume GDB_MULTI_ARCH.
3777 (default_double_format): Assume GDB_MULTI_ARCH.
3778 (set_endian_from_file): Delete function.
3779 (arch_ok): Delete function.
3780 (set_arch): Delete function.
3781 (set_architecture_from_arch_mach): Delete function.
3782 (set_architecture_from_file): Delete function.
3783 (set_architecture): Assume GDB_MULTI_ARCH.
3784 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3785
3786 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3787
3788 Rewrite FreeBSD/sparc64 native configuration.
3789 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3790 * sparc64fbsd-nat.c: New file.
3791 * sparc64fbsd-tdep.c: New file.
3792 * sparc64-tdep.c sparc64-tdep.h: New files.
3793 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3794 sparc64fbsd-tdep.o): New dependencies.
3795 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3796 and sparc64fbsd-tdep.c.
3797 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3798 * config/sparc/fbsd.mh: Remove copyright notice.
3799 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3800 sparcbsd-nat.o.
3801 * config/sparc/fbsd.mt: Remove copyright notice.
3802 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3803 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3804 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3805 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3806 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3807 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3808 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3809 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3810 "sparc/tm-sp64.h".
3811 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3812 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3813
3814 2003-08-21 Michael Chastain <mec@shout.net>
3815
3816 * symtab.h: Add doco on the space critical structures and
3817 some measurements of space usage.
3818
3819 2003-08-21 Michael Snyder <msnyder@redhat.com>
3820
3821 * tracepoint.c (trace_dump_command): Trace break address
3822 is subject to DECR_PC_AFTER_BREAK.
3823 (set_traceframe_context): Make "trace_line" an int.
3824 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3825
3826 2003-08-20 Michael Snyder <msnyder@redhat.com>
3827
3828 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3829 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3830 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3831 argument passing.
3832 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3833 functions, replace sh_push_dummy_call.
3834 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3835
3836 2003-08-20 Michael Chastain <mec@shout.net>
3837
3838 * gdbtypes.h (struct main_type): Rearrange to save space.
3839
3840 2003-08-20 Michael Snyder <msnyder@redhat.com>
3841
3842 * trad-frame.c: Comment typo fix.
3843
3844 2003-08-20 Michael Snyder <msnyder@redhat.com>
3845 Kevin Buettner <kevinb@redhat.com>
3846
3847 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3848 (frv_frame_init_saved_regs): Add declaration.
3849 (frame_extra_info): Add new field ``saved_regs''.
3850 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3851 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3852 Update frame related code.
3853 (frv_extract_struct_value_address): Adjust formatting.
3854 * Makefile.in (frv-tdep.o): Update dependencies.
3855 * config/frv/tm-frv.h (target_insert_watchpoint)
3856 (target_remove_watchpoint, target_insert_hw_breakpoint)
3857 (target_remove_hw_breakpoint): Delete these macros.
3858 (remote_insert_watchpoint, remote_remove_watchpoint)
3859 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3860 these declarations.
3861
3862 2003-08-20 Michael Chastain <mec@shout.net>
3863
3864 * defs.h (ENUM_BITFIELD): New macro.
3865 * symtab.h (ENUM_BITFIELD): Use it.
3866 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3867
3868 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3869
3870 * MAINTAINERS (write after approval): Add myself.
3871
3872 2003-08-18 Andrew Cagney <cagney@redhat.com>
3873
3874 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3875 * gdbarch.h, gdbarch.c: Re-generate.
3876 * infcall.c (call_function_by_hand): Adjust the SP by
3877 frame_red_zone_size before allocating any stack space.
3878 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3879 * x86-64-tdep.c (x86_64_frame_align): New function.
3880 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3881
3882 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3883 Remove code adjusting SP so that it skips over the Red Zone.
3884
3885 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3886
3887 * NEWS (New native configurations): Mention FreeBSD/amd64.
3888
3889 2003-08-18 Andrew Cagney <cagney@redhat.com>
3890
3891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3892 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3893 "m68k_frame_p".
3894 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3895
3896 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3897
3898 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3899
3900 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3901
3902 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3903 Define.
3904 * i386-linux-nat.c: Include "linux-nat.h".
3905 (child_post_startup_inferior): New function.
3906
3907 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3908
3909 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3910 at the start of a frameless function. This probably fixes PR
3911 backtrace/1338.
3912
3913 2003-08-17 Michael Chastain <mec@shout.net>
3914
3915 * symfile.c (find_sym_fns): Remove special case for apollo target.
3916
3917 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3918
3919 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3920 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3921 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3922 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3923 (linux_supports_tracevforkdone): New function.
3924 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3925 TRACEVFORKDONE.
3926 (child_follow_fork): Handle vfork.
3927 (linux_handle_extended_wait): Likewise. Also handle exec.
3928 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3929 * NEWS: Mention fork tracing.
3930
3931 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3932
3933 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3934
3935 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * Makefile.in (i386-linux-nat.o): Update dependencies.
3938 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3939 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3940 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3941 * i386-linux-nat.c: Include "linux-nat.h".
3942 (child_post_startup_inferior): New function.
3943 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3944 * infptrace.c (kill_inferior): Wrap in #ifdef.
3945 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3946 attaching to each LWP.
3947 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3948 (init_lin_lwp_ops): Fill in some more operations.
3949 * linux-nat.h (linux_enable_event_reporting)
3950 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3951 prototypes.
3952 * linux-nat.c (linux_enable_event_reporting): New function.
3953 (child_post_attach, linux_child_post_startup_inferior)
3954 (child_post_startup_inferior, child_follow_fork)
3955 (linux_handle_extended_wait, kill_inferior): New functions.
3956
3957 2003-08-16 Andrew Cagney <cagney@redhat.com>
3958
3959 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3960 * gdbarch.h, gdbarch.c: Re-generate.
3961
3962 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3963
3964 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3965
3966 2003-08-16 Andrew Cagney <cagney@redhat.com>
3967
3968 * NEWS: Mention that "set prompt-escape-char" was deleted.
3969 * top.c (get_prompt_1): Delete function.
3970 (gdb_prompt_escape):
3971 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3972 prompt-escape-char" command.
3973 (MAX_PROMPT_SIZE): Delete macro.
3974 (get_prompt): Simplify, do not call get_prompt_1.
3975
3976 2003-08-16 Andrew Cagney <cagney@redhat.com>
3977
3978 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3979 -Werror. -Wformat-nonliteral problems.
3980
3981 2003-08-15 J. Brobecker <brobecker@gnat.com>
3982
3983 Further multiarching work mostly for hppa64-*-hpux11:
3984 * hppa-tdep.h: New file.
3985 * hppa-tdep.c: #include hppa-tdep.c.
3986 (hppa32_num_regs): Renamed from hppa_num_regs.
3987 (hppa64_num_regs): New constant.
3988 (hppa64_call_dummy_breakpoint_offset): New constant.
3989 (hppa32_call_dummy_length): New constant.
3990 (hppa64_call_dummy_length): New constant.
3991 (hppa32_stack_align): Make name 32bit explicit.
3992 (hppa32_register_virtual_type): Likewise.
3993 (hppa32_extract_return_value): Likewise.
3994 (hppa32_use_struct_convention): Likewise.
3995 (hppa32_store_return_value): Likewise.
3996 (hppa64_register_virtual_type): New function.
3997 (hppa64_extract_return_value): New function.
3998 (hppa64_use_struct_convention): New function.
3999 (hppa64_store_return_value): New function.
4000 (hppa_frame_locals_address): Remove declaration, function does
4001 not exist anymore.
4002 (hppa_register_byte): Add support for PA64 ABI.
4003 (hppa_gdbarch_init): Add support for PA64 ABI.
4004 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4005 Make name 32bit explicit.
4006 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4007 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4008 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4009 (hppa64_hpux_frame_base_before_sigtramp): New function.
4010 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4011 * config/pa/tm-hppa64.h: Remove macros that are no longer
4012 necessary now that the gdbarch vector is properly setup.
4013 Transform some macros into function calls. Some minor cleanup.
4014 * config/pa/tm-hppah.h: Update function calls in macros
4015 following the function renaming in hppa-hpux-tdep.c.
4016 * Makefile.in (hppa_tdep_h): New variable.
4017 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4018
4019 2003-08-14 Michael Snyder <msnyder@redhat.com>
4020
4021 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4022
4023 2003-08-13 J. Brobecker <brobecker@gnat.com>
4024
4025 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4026 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4027 routine.
4028
4029 2003-08-13 Michael Snyder <msnyder@redhat.com>
4030
4031 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4032 (frv_saved_pc_after_call): Use deprecated ftype.
4033 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4034 (frv_remote_translate_xfer_address): Remove.
4035 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4036
4037 2003-08-13 J. Brobecker <brobecker@gnat.com>
4038
4039 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4040 initialization after the common gdbarch initialization, not before.
4041
4042 2003-08-13 J. Brobecker <brobecker@gnat.com>
4043
4044 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4045 (ADDR_BITS_REMOVE): Remove, redundant.
4046
4047 2003-08-13 J. Brobecker <brobecker@gnat.com>
4048
4049 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4050 gdbarch method to clear the 2 low bits of text addresses.
4051
4052 2003-08-12 Andrew Cagney <cagney@redhat.com>
4053
4054 * Makefile.in (dsrec.o): Update dependencies.
4055 * dsrec.c: Include "gdb_assert.h".
4056 (make_srec): Use snprintf instead of sprintf, use a literal format
4057 string.
4058
4059 2003-08-12 Andrew Cagney <cagney@redhat.com>
4060
4061 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4062 FRAME_OBSTACK_ZALLOC.
4063
4064 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4065
4066 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4067 SSE registers.
4068
4069 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4070
4071 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4072 amd64fbsd_sc_reg_offset): Add extern declarations.
4073 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4074 declarations.
4075
4076 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4077
4078 * MAINTAINERS (write after approval): Update my mail address.
4079
4080 2003-08-10 Andrew Cagney <cagney@redhat.com>
4081
4082 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4083
4084 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4085
4086 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4087 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4088 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4089 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4090 i386bsd_sc_reg_offset): Add extern declarations.
4091 * i386obsd-nat.c: Include "i386-tdep.h"
4092 (_initialize_i386obsd_nat): Remove extern declarations.
4093 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4094 declarations.
4095 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4096 declarations.
4097
4098 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4099 instead of frame_read_register.
4100 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4101 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4102 SP_REGNUM.
4103 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4104 instead of frame_unwind_unsigned_register. Use
4105 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4106 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4107 instead of read_register. Use builtin_type_void_data_ptr instead
4108 of builtin_type_void_func_ptr when extracting the address of the
4109 jmp_buf.
4110 (i386_extract_return_value, i386_store_return_value,
4111 i386_pseudo_register_read, i386_pseudo_register_write): Use
4112 register_size instead REGISTER_RAW_SIZE.
4113
4114 2003-08-10 Andrew Cagney <cagney@redhat.com>
4115
4116 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4117 sprintf. Make "name" constant.
4118
4119 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4120
4121 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4122 instead of frame_read_register.
4123 (i387_print_float_info): Use get_frame_register and
4124 get_frame_register_unsigned instead of frame_register_read.
4125
4126 * i386fbsd-nat.c: Include "i386-tdep.h".
4127 (child_resume): Make `eflags' an ULONGEST. Use
4128 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4129 instead of register_read and register_write.
4130
4131 * i386bsd-nat.c (fetch_inferior_registers,
4132 store_inferior_registers): Don't use && at the end of a line.
4133 (_initialize_i386bsd_nat): Fix typo.
4134
4135 * frame.c (_initialize_frame): Add missing backslash.
4136
4137 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4138 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4139 and supply_register instead of manipulating the register buffer
4140 directly.
4141
4142 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4143 * config/i386/nm-i386sol2.h
4144 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4145
4146 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4147 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4148 instructions that GCC likes to mingle into the prologue. Fixes
4149 gdb/1253 and gdb/1255.
4150
4151 2003-08-09 Andrew Cagney <cagney@redhat.com>
4152
4153 Fix GDB PR cli/926.
4154 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4155 * command.h (add_setshow_uinteger_cmd): Declare.
4156 * frame.c (set_backtrace_cmd): New function.
4157 (show_backtrace_cmd): New function.
4158 * frame.c (_initialize_frame): Replace "set/show
4159 backtrace-below-main" with "set/show backtrace past-main". Add
4160 command "set/show backtrace limit".
4161 (backtrace_past_main): Rename "backtrace_below_main".
4162 (backtrace_limit): New variable.
4163 (get_prev_frame): Update. Check the backtrace_limit.
4164
4165 2003-08-09 Andrew Cagney <cagney@redhat.com>
4166
4167 * defs.h (xstrprintf): Declare.
4168 * utils.c (xstrprintf): New function.
4169 * breakpoint.c (insert_breakpoints): Replace sprintf and
4170 non-literal format strings, with xstrprintf and cleanups.
4171 (delete_breakpoint,breakpoint_re_set): Ditto.
4172 (commands_command, insert_breakpoints): Ditto.
4173 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4174 (break_at_finish_command_1): Ditto.
4175
4176 2003-08-09 Andrew Cagney <cagney@redhat.com>
4177
4178 * MAINTAINERS (language support): List Adam Fedor as Objective C
4179 maintainer.
4180
4181 2003-08-08 J. Brobecker <brobecker@gnat.com>
4182
4183 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4184 are now multiarched.
4185
4186 2003-08-08 J. Brobecker <brobecker@gnat.com>
4187
4188 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4189 longer necessary now that hppa64 is partially multiarch'ed.
4190
4191 2003-08-08 Andrew Cagney <cagney@redhat.com>
4192
4193 * interps.c (interp_set): Check for a NULL "old_interp".
4194
4195 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4196
4197 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4198 (install-only): Support DESTDIR.
4199 (uninstall): Likewise.
4200 (install-gdbtk): Likewise.
4201
4202 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4203
4204 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4205 contains something meaningful at all times.
4206
4207 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4208
4209 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4210
4211 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4212
4213 * MAINTAINERS (write after approval): Added self.
4214
4215 2003-08-07 Andrew Cagney <cagney@redhat.com>
4216
4217 * inferior.h (AT_SYMBOL): Define.
4218 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4219 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4220 * mips-tdep.c (mips_call_dummy_address): Delete function.
4221 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4222 set call_dummy_address.
4223
4224 2003-08-07 Andrew Cagney <cagney@redhat.com>
4225
4226 * language.c (op_error): Delete function.
4227 (binop_type_check): Delete function.
4228 * language.h (type_op_error, range_op_error): Delete macros.
4229 (op_error): Delete declaration.
4230
4231 2003-08-07 Andrew Cagney <cagney@redhat.com>
4232
4233 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4234
4235 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4236
4237 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4238 (x86_64_push_arguments): Skip the red zone.
4239
4240 2003-08-05 Andrew Cagney <cagney@redhat.com>
4241
4242 * reggroups.c (reggroup_next): Check for the final entry.
4243
4244 2003-08-04 Andrew Cagney <cagney@redhat.com>
4245
4246 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4247 * cli/cli-script.c (define_command): Call query directly, instead
4248 of passing it a buffer.
4249 * ocd.c (ocd_error): Pass error a constant format string.
4250 * remote-mips.c (mips_error): Use fputs_filtered.
4251
4252 * solib-svr4.c (_initialize_svr4_solib): Update
4253 register_gdbarch_data call.
4254 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4255
4256 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4257 (register_gdbarch_data): Delete "free" parameter. Update
4258 comments.
4259 * gdbarch.h, gdbarch.c: Re-generate.
4260 * reggroups.c (_initialize_reggroup): Update.
4261 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4262 * frame-base.c (_initialize_frame_base): Update.
4263 * frame-unwind.c (_initialize_frame_unwind): Update.
4264 * user-regs.c (_initialize_user_regs): Update.
4265 * remote.c (_initialize_remote): Update.
4266 * regcache.c (_initialize_regcache): Update.
4267
4268 * regcache.c (xfree_regcache_descr): Delete function.
4269 (_initialize_regcache): Update call to register_gdbarch_data.
4270 (init_regcache_descr, init_legacy_regcache_descr): Use
4271 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4272
4273 * remote.c (free_remote_state): Delete function.
4274 (_initialize_remote): Update register_gdbarch_data.
4275 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4276 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4277
4278 2003-08-04 Andrew Cagney <cagney@redhat.com>
4279
4280 * reggroups.c (struct reggroup_el): Define.
4281 (struct reggroups): Delete field "nr_group". Replace array
4282 "group" with a "first" to "last" linked list.
4283 (reggroups_init): Update. Allocate using gdbarch's obstack.
4284 (reggroups_free): Delete function.
4285 (add_group): Update. Add "el" parameter.
4286 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4287 (default_groups): Update.
4288 (reggroup_next): Replace reggroups.
4289 (reggroups_dump): Update.
4290 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4291 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4292 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4293
4294 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4295
4296 * Makefile.in (tui-interp.o): Update dependencies.
4297
4298 2003-08-04 David Carlton <carlton@kealia.com>
4299
4300 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4301 to internal_error call.
4302 * source.c (forward_search_command): Add "%s" format argument.
4303 (reverse_search_command): Ditto.
4304 * top.c (quit_confirm): Ditto.
4305 * cli/cli-setshow.c (do_setshow_command): Ditto.
4306 * cp-valprint.c (cp_print_class_method): Replace
4307 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4308 (cp_print_class_member): Ditto.
4309 * event-top.c (command_line_handler): Ditto.
4310 * linux-proc.c (linux_info_proc_cmd): Ditto.
4311 * p-typeprint.c (pascal_type_print_base): Ditto.
4312 * p-valprint.c (pascal_object_print_class_method): Ditto.
4313 (pascal_object_print_class_member): Ditto.
4314 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4315 * remote.c (remote_cisco_section_offsets): Ditto.
4316 * top.c (command_line_input): Ditto.
4317 * utils.c (vwarning,error_stream,quit): Ditto.
4318 * valprint.c (print_floating,print_binary_chars)
4319 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4320
4321 2003-08-04 Andrew Cagney <cagney@redhat.com>
4322
4323 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4324
4325 2003-08-02 Andrew Cagney <cagney@redhat.com>
4326
4327 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4328 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4329 amd64fbsd-nat.c.
4330
4331 2003-08-02 Andrew Cagney <cagney@redhat.com>
4332
4333 * Makefile.in: Update all dependencies and definitions.
4334
4335 2003-08-02 Adam Fedor <fedor@gnu.org>
4336
4337 * linespec.c (is_objc_method_format): New function
4338 (decode_line_1, locate_first_half): Use it.
4339 Fixes PR objc/1298
4340
4341 2003-08-01 Andrew Cagney <cagney@redhat.com>
4342
4343 * NEWS: Mention that m32r is multi-arch.
4344 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4345 * configure.tgt: Recognize m32r-*-*.
4346 * config/m32r/tm-m32r.h: Delete file.
4347 * config/m32r/m32r.mt: New file.
4348 * m32r-rom.c (m32r_upload_command): Use hostent only when
4349 gethostname succeeds, in order to avoid a compilation
4350 warning.
4351 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4352 compiler warning.
4353
4354 2003-08-01 Michael Snyder <msnyder@redhat.com>
4355
4356 * sh-tdep.c (sh_frame_align): New gdbarch method.
4357 (sh_gdbarch_init): Set up frame_align method.
4358
4359 2003-07-31 Michael Snyder <msnyder@redhat.com>
4360
4361 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4362 which is already covered by the new frames infrastructure.
4363
4364 2003-07-31 Andrew Cagney <cagney@redhat.com>
4365
4366 * user-regs.c (struct user_reg): Add "next" link.
4367 (struct user_regs): Replace "user" with "first" and "last" links.
4368 (append_user_reg): Add pre-allocated "reg" parameter.
4369 (builtin_user_regs): Provide initial value for "last".
4370 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4371 (user_regs_init): Allocate memory from the gdbarch obstack.
4372 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4373 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4374 linked list.
4375 (usernum_to_user_reg): New function.
4376 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4377 (value_of_user_reg): Use usernum_to_user_reg.
4378 (user_regs_free): Delete function.
4379 (_initialize_user_regs): Update register_gdbarch_data call.
4380
4381 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4382
4383 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4384
4385 2003-07-30 Michael Snyder <msnyder@redhat.com>
4386
4387 * value.h (value_being_returned): Add a struct_addr argument.
4388 * infcall.c (call_function_by_hand): Pass struct_addr to
4389 value_being_returned.
4390 * infcmd.c (print_return_value): Pass zero as struct_addr.
4391 * values.c (value_being_returned): If struct_addr is passed,
4392 use it instead of trying to recover it from the inferior.
4393
4394 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4395
4396 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4397 the prologue analyzer won't need to attempt to extract the pc
4398 value from the woefully incomplete dummy frame.
4399 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4400 possible. Disable code which modifies the frame.
4401
4402 2003-07-28 Andrew Cagney <cagney@redhat.com>
4403
4404 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4405 to level 2.
4406 (annotate_breakpoints_table, annotate_record): Ditto.
4407 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4408 (annotate_field_name_end, annotate_field_value): Ditto.
4409 (annotate_field_end, annotate_frame_source_begin): Ditto.
4410 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4411 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4412 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4413 (annotate_frame_address_end, annotate_frame_address): Ditto.
4414 (annotate_frame_args, annotate_frame_end): Ditto.
4415 (annotate_frame_where, annotate_arg_begin): Ditto.
4416 (annotate_arg_name_end, annotate_arg_value): Ditto.
4417 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4418 (annotate_function_call, annotate_signal_name): Ditto.
4419 (annotate_signal_string, annotate_signal_name_end): Ditto.
4420 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4421 (annotate_value_begin, annotate_value_history_value): Ditto.
4422 (annotate_value_history_end, annotate_value_end): Ditto.
4423 (annotate_display_begin, annotate_display_number_end): Ditto.
4424 (annotate_display_format, annotate_display_expression): Ditto.
4425 (annotate_display_expression_end, annotate_display_value): Ditto.
4426 (annotate_display_end, annotate_array_section_begin): Ditto.
4427 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4428 (annotate_elt, annotate_array_section_end): Ditto.
4429
4430 2003-07-28 Andrew Cagney <cagney@redhat.com>
4431
4432 * regcache.c (struct regcache_descr): Update comments on
4433 nr_raw_registers.
4434 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4435 sizeof_raw_register_valid_p.
4436 (init_regcache_descr): Set nr_raw_registers and
4437 sizeof_raw_register_valid_p before calling
4438 init_legacy_regcache_descr.
4439
4440 2003-07-28 Andrew Cagney <cagney@redhat.com>
4441
4442 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4443 MOD NUM_REGS.
4444
4445 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4446
4447 * thread.c (info_threads_command): Use get_selected_frame ().
4448 Check that there is at least one non-sentinel frame.
4449
4450 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4451
4452 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4453 (m68hc11_pop_frame): Remove.
4454 (m68hc11_frame_saved_pc): Remove.
4455 (m68hc11_frame_chain): Remove.
4456 (m68hc11_frame_init_saved_regs): Remove.
4457 (m68hc11_init_extra_frame_info): Remove.
4458 (m68hc11_store_struct_return): Remove.
4459 (m68hc11_saved_pc_after_call): Remove.
4460
4461 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4462
4463 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4464 frame unwind information.
4465 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4466 and adapted for frame unwinding.
4467 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4468 (m68hc11_unwind_pc): New function.
4469 (m68hc11_frame_unwind_cache): New function to analyze frames.
4470 (m68hc11_frame_this_id): New function to create new frame struct.
4471 (m68hc11_frame_prev_register): New function to unwind a register from
4472 the frame.
4473 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4474 (m68hc11_frame_p): New function for the above.
4475 (m68hc11_frame_base_address): New function to return fp of frame.
4476 (m68hc11_frame_args_address): Update for frame.
4477 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4478 (m68hc11_unwind_sp): New function.
4479 (m68hc11_unwind_dummy_id): New function.
4480 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4481 calls.
4482
4483 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4484
4485 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4486 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4487 when we are beyond the current pc.
4488
4489 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4490
4491 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4492 from m68hc11_push_arguments.
4493 (m68hc11_push_arguments): Remove.
4494 (m68hc11_push_return_address): Remove.
4495 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4496 handlers; remove deprecated_extra_stack_alignment_needed.
4497
4498 2003-07-27 Andrew Cagney <cagney@redhat.com>
4499
4500 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4501 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4502 REAL_PC and not the pointer.
4503 * hppa-hpux-tdep.c: Include frame.h
4504
4505 2003-07-27 Andrew Cagney <cagney@redhat.com>
4506
4507 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4508 GDB_MULTI_ACH_PARTIAL.
4509
4510 2003-07-27 Andrew Cagney <cagney@redhat.com>
4511
4512 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4513 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4514 operator at start and not end of line.
4515 (decode_prologue): Ditto.
4516 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4517 frame_unwind_register_unsigned instead of
4518 frame_unwind_unsigned_register.
4519 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4520 read_register.
4521 (m32r_push_dummy_call): Use register_size instead of
4522 REGISTER_RAW_SIZE.
4523 (m32r_frame_sniffer): Replace m32r_frame_p.
4524 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4525 * m32r-rom.c (report_transfer_performance): Delete extern
4526 declaration.
4527 (m32r_load, m32r_upload_command): Use print_transfer_performance
4528 instead of report_transfer_performance.
4529 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4530 / add_show_from_set.
4531
4532 2003-07-26 Andrew Cagney <cagney@redhat.com>
4533
4534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4535 store_return_value and extract_struct_value_address.
4536
4537 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4538
4539 PR c++/1267
4540 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4541 NULL, default to the section containing PC.
4542
4543 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4544
4545 * NEWS: Mention "regs" deprecated for m68hc11 too.
4546
4547 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4548 (m68hc11_print_register): New function to print out one register.
4549 (m68hc11_print_registers_info): New function to print registers.
4550 (show_regs): Deprecate and use the above.
4551 (m68hc11_gdbarch_init): Install the print_registers_info.
4552
4553 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4554
4555 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4556 that we have a SIGTRAP before returning non-zero.
4557
4558 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4559 Elena Zannoni <ezannoni@redhat.com>
4560
4561 * linespec.c (decode_line_2): Avoid crash if
4562 find_function_start_sal() returns empty record.
4563
4564 2003-07-23 Andreas Schwab <schwab@suse.de>
4565
4566 * ia64-tdep.c (ia64_print_insn): New function.
4567 (ia64_gdbarch_init): Set print_insn to it.
4568 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4569 deprecated_tm_print_insn_info.
4570
4571 2003-07-22 Michael Snyder <msnyder@redhat.com>
4572
4573 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4574 handle 8-bit returns (long long).
4575 (h8300h_extract_return_value): Ditto.
4576 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4577
4578 2003-07-22 Andrew Cagney <cagney@redhat.com>
4579
4580 * gdbarch.c Include "gdb_obstack.h".
4581 (struct gdbarch): Add an "obstack".
4582 (alloc_gdbarch_data): Allocate the gdbarch data using
4583 GDBARCH_OBSTACK_CALLOC.
4584 (free_gdbarch_data): Delete function.
4585 (gdbarch_obstack_zalloc): New function.
4586 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4587 Assert that the architecture is not initialized.
4588 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4589 vector from the obstack.
4590 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4591 architecture obstack.
4592 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4593 (set_gdbarch_data): Assert that the data is not initialized.
4594 (struct gdbarch_data): Delete member "free".
4595 (register_gdbarch_data): Do not initialize "free".
4596 * gdbarch.h, gdbarch.c: Re-generate.
4597
4598 2003-07-22 Andrew Cagney <cagney@redhat.com>
4599
4600 * configure.in (build_warnings): Add -Wformat-nonliteral.
4601 * configure: Re-generate.
4602
4603 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4604
4605 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4606
4607 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4608
4609 * findvar.c (read_var_value): Remove case for thread local storage
4610 variables. It is now entirely handled by the dwarf2 location
4611 expression code.
4612 * printcmd.c (address_info): Ditto.
4613 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4614 enumeration value.
4615 (struct symbol): Remove objfile field, which was used by
4616 LOC_THREAD_LOCAL_STATIC only.
4617 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4618 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4619 usage of objfile pointer.
4620 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4621 thread local variables.
4622 Add include of objfiles.h.
4623 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4624 storage variables.
4625 * Makefile.in (dwarf2loc.o): Update dependencies.
4626
4627 2003-07-22 Andrew Cagney <cagney@redhat.com>
4628
4629 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4630 get_frame_base.
4631 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4632 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4633 (struct value): Add opaque declaration.
4634 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4635
4636 2003-07-21 Andrew Cagney <cagney@redhat.com>
4637
4638 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4639 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4640
4641 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4642
4643 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4644 regcache_cooked_read_unsigned instead of read_register.
4645 (m68hc11_saved_pc_after_call): Likewise.
4646 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4647 instead of write_register.
4648 (m68hc11_register_type): New function.
4649 (m68hc11_register_virtual_type): Remove.
4650 (m68hc11_store_return_value): Convert to use the regcache.
4651 (m68hc11_extract_struct_value_address): Likewise.
4652 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4653 m68hc11_register_type; undeprecate store_return_value and
4654 extract_struct_value_address.
4655
4656 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4657
4658 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4659 and translate to use regcache.
4660 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4661
4662 2003-07-18 Andrew Cagney <cagney@redhat.com>
4663
4664 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4665 * gdbarch.h, gdbarch.c: Re-generate.
4666 * i386-tdep.c (i386_gdbarch_init): Do not set
4667 DWARF2_BUILD_FRAME_INFO.
4668 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4669 unconditionally.
4670 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4671 DWARF2_BUILD_FRAME_INFO.
4672
4673 2003-07-18 Andrew Cagney <cagney@redhat.com>
4674
4675 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4676 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4677
4678 2003-07-18 Andrew Cagney <cagney@redhat.com>
4679
4680 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4681 frame_unwind_address_in_block, instead of frame_pc_unwind.
4682 (dwarf2_frame_cache): Ditto.
4683
4684 2003-07-18 Andrew Cagney <cagney@redhat.com>
4685
4686 * user-regs.h (struct gdbarch): Declare opaque.
4687 * ui-out.h (struct ui_file): Declare opaque.
4688 * dwarf2-frame.h (struct frame_info): Declare opaque.
4689
4690 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4691
4692 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4693 #include "...".
4694 (procfs_meminfo): Change strerror to safe_strerror.
4695 (procfs_can_run): Remove K&R badness.
4696
4697 2003-07-17 Michael Snyder <msnyder@redhat.com>
4698
4699 * remote-sim.c: Comment typo fix.
4700
4701 2003-07-17 Andrew Cagney <cagney@redhat.com>
4702
4703 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4704 configure.
4705 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4706 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4707 GDB_MULTI_ARCH_PARTIAL.
4708
4709 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4710
4711 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4712 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4713 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4714
4715 2003-07-16 Theodore A. Roth <troth@openavr.org>
4716
4717 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4718 found.
4719 (avr_frame_unwind_cache): Don't unwind FP for main.
4720 Update a comment.
4721 Save the computed prev_sp.
4722 (avr_saved_regs_unwinder): Remove function.
4723 (avr_frame_prev_register): Use PC unwind logic from
4724 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4725
4726 2003-07-16 Andrew Cagney <cagney@redhat.com>
4727
4728 * frame-base.h (frame_base_p_ftype): Delete definition.
4729 (frame_base_append_predicate): Delete declaration.
4730 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4731 (frame_unwind_append_predicate): Delete declaration.
4732 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4733 (append_predicate): Delete parameter "p".
4734 (frame_unwind_append_predicate): Delete function.
4735 (frame_unwind_append_sniffer): Update call to append_predicate.
4736 (frame_unwind_free): Delete function.
4737 (_initialize_frame_unwind): Pass NULL as "free" to
4738 register_gdbarch_data.
4739 (frame_unwind_init): Append the dummy_frame_sniffer.
4740 (frame_unwind_find_by_frame): Simplify.
4741 * frame-base.c (struct frame_base_table): Delete field "p".
4742 (append_predicate): Delete parameter "p".
4743 (frame_base_append_predicate): Delete function.
4744 (frame_base_append_sniffer): Update call to append_predicate.
4745 (frame_base_free): Delete function.
4746 (frame_base_find_by_frame): Simplify.
4747 (_initialize_frame_base): Pass NULL as "free" to
4748 register_gdbarch_data.
4749 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4750 (x86_64_sigtramp_frame_sniffer): Replace
4751 "x86_64_sigtramp_frame_p".
4752 (x86_64_init_abi): Set the frame unwind sniffers.
4753 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4754 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4755 (m68k_gdbarch_init): Set the frame unwind sniffers.
4756 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4757 "i386_sigtramp_frame_p".
4758 (i386_frame_sniffer): Replace "i386_frame_p".
4759 (i386_gdbarch_init): Set the frame unwind sniffers.
4760 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4761 (avr_gdbarch_init): Set the frame unwind sniffers.
4762 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4763 "alpha_sigtramp_frame_p"
4764 (alpha_heuristic_frame_sniffer): Replace
4765 "alpha_heuristic_frame_p".
4766 (alpha_gdbarch_init): Set the frame unwind sniffers.
4767 (alpha_dwarf2_init_abi): Ditto.
4768 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4769 "alpha_debug_frame_p".
4770 (alpha_mdebug_frame_base_sniffer): Replace
4771 "alpha_mdebug_frame_base_p".
4772 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4773 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4774 (d10v_gdbarch_init): Set the frame unwind sniffer.
4775 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4776 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4777 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4778 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4779 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4780 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4781
4782 2003-07-16 Michael Snyder <msnyder@redhat.com>
4783
4784 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4785 should go thru sh_dsp_register_sim_regno, else the dsp regs
4786 will not get the right values.
4787
4788 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4789
4790 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4791 deprecated_store_floating by call to store_typed_floating.
4792 (sh_sh4_register_convert_to_raw): Substitute call to
4793 deprecated_extract_floating by call to extract_typed_floating.
4794
4795 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4796
4797 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4798
4799 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4800
4801 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4802 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4803 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4804 as possible.
4805 (do_pseudo_register): Remove.
4806 (sh_push_dummy_code): New function.
4807 (sh64_store_struct_return): Rename from sh_store_struct_return.
4808 Only called for sh64 now.
4809 (sh_extract_struct_value_address): Regcache'ify.
4810 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4811 and accomodate new tasks.
4812 (sh64_push_return_address): Rename from sh_push_return_address.
4813 Only called for sh64 now.
4814 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4815 Regcache'ify.
4816 (sh3e_sh4_extract_return_value): Regcache'ify.
4817 (sh_default_store_return_value): Ditto.
4818 (sh3e_sh4_store_return_value): Ditto.
4819 (sh_default_register_byte): Remove.
4820 (sh_sh4_register_byte): Remove.
4821 (sh_default_register_raw_size): Remove.
4822 (sh_sh4_register_raw_size): Remove.
4823 (sh_register_virtual_size): Remove.
4824 (sh_sh3e_register_virtual_type): Remove.
4825 (sh_sh3e_register_type): New function.
4826 (sh_sh4_register_virtual_type): Remove.
4827 (sh_sh4_register_type): New function.
4828 (sh_default_register_virtual_type): Remove.
4829 (sh_default_register_type): New function.
4830 (do_fv_register_info): Add parameters to accomodate call from
4831 sh_print_registers_info.
4832 (do_dr_register_info): Ditto.
4833 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4834 Add parameters to accomodate call from sh_print_registers_info.
4835 (sh_do_fp_register): Ditto.
4836 (sh64_do_pseudo_register): Call do_dr_register_info,
4837 do_fv_register_info and sh_do_fp_register with default parameters.
4838 (sh_do_register): Add parameters to accomodate call from
4839 sh_print_registers_info.
4840 (sh_print_register): Ditto.
4841 (sh_print_registers_info): Rename from sh_do_registers_info.
4842 Add parameters to be used as gdbarch_print_registers_info
4843 implementation. Accomodate removed do_pseudo_register function
4844 pointer.
4845 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4846 function pointer. Call sh_print_register with default parameters.
4847 (sh64_do_registers_info): Call sh_print_registers_info instead of
4848 sh_do_registers_info.
4849 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4850 detection of deprecated vs. non-deprecated functionality.
4851 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4852 function pointer assignments by direct function calls.
4853
4854 2003-07-15 Andrew Cagney <cagney@redhat.com>
4855
4856 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4857 (frame_register_unwind, create_new_frame): Ditto.
4858 (legacy_get_prev_frame, get_frame_type): Ditto.
4859 (get_frame_base_address): Use frame_base_find_by_frame.
4860 (get_frame_locals_address): Use frame_base_find_by_frame.
4861 (get_frame_args_address): Use frame_base_find_by_frame.
4862 * frame-base.h (frame_base_sniffer_ftype): Declare.
4863 (frame_base_append_sniffer): Declare.
4864 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4865 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4866 (frame_base_append_sniffer): New function.
4867 (frame_base_append_predicate): Add a NULL sniffer.
4868 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4869 (struct frame_base_table): Add "sniffer".
4870 (frame_base_free): Free the "sniffer" table.
4871 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4872 (frame_unwind_append_sniffer): Declare.
4873 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4874 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4875 (struct frame_unwind_table): Add "sniffer", delete "middle".
4876 (append_predicate): Add "sniffer" parameter, append the sniffer.
4877 (frame_unwind_init): Update append_predicate call.
4878 (frame_unwind_append_sniffer): New function.
4879 (frame_unwind_append_predicate): Update append_predicate call.
4880 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4881
4882 2003-07-15 Andrew Cagney <cagney@redhat.com>
4883
4884 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4885 before code inhibiting repeated unwind attempts. Add to
4886 commentary on that test's problems.
4887 * blockframe.c (inside_main_func): Look for "main" in the minimal
4888 symbol table.
4889 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4890 identical.
4891
4892 2003-07-15 Andrew Cagney <cagney@redhat.com>
4893
4894 * complaints.c (struct explanation): Define.
4895 (struct complaints): Change type of "explanation" to "struct
4896 explanation".
4897 (symfile_explanations): Convert to a "struct explanation" table.
4898 (vcomplaint): Update.
4899
4900 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4901
4902 * x86-64-linux-nat.c (regmap): Removed.
4903 (supply_gregset, fill_gregset): Call
4904 x86_64_linux_(fill,supply)_gregset functions.
4905 * x86-64-linux-tdep.c (USER_*): New defines.
4906 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4907 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4908 New functions.
4909 (fetch_core_registers): Ditto.
4910 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4911 * x86-64-linux-tdep.h: New file.
4912 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4913 and core-regset.o.
4914 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4915
4916 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4917
4918 * x86-64-tdep.c (x86_64_store_return_value): Use
4919 regcache_cooked_write_part instead of regcache_cooked_write.
4920
4921 * configure.host: Add x86_64-*-freebsd*.
4922 * configure.tgt: Add x86_64-*-freebsd*.
4923 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4924 * amd64fbsd-nat.c: New file.
4925 * amd64fbsd-tdep.c: New file.
4926 * config/i386/nm-fbsd64.h: New file.
4927 * config/i386/fbsd64.mh: New file.
4928 * config/i386/fbsd64.mt: New file.
4929
4930 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4931
4932 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4933 `sc_regs_offset' and `sc_fpregs_offset'.
4934 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4935 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4936 (alpha_sigtramp_register_address): Rewrite to use new members of
4937 `struct gdbarch_tdep'.
4938 (alpha_gdbarch_init): Initialize new members of struct
4939 gdbarch_tdep'.
4940 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4941 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4942 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4943 (alphafbsd_pc_in_sigtramp): Implement.
4944 (alphafbsd_sigtramp_offset): New function.
4945 (alphafbsd_sigcontext_addr): New function.
4946 (alphafbsd_init_abi): Initialize signal trampoline related members
4947 of `struct gdbarch_tdep'.
4948 (_initialize_alphafbsd_tdep): Add prototype.
4949
4950 2003-07-11 Theodore A. Roth <troth@openavr.org>
4951
4952 * Makefile.in (install-only): Quote sed expression when generating
4953 transformed_name.
4954
4955 2003-07-11 Richard Henderson <rth@redhat.com>
4956
4957 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4958 * dwarf2-frame.c: Include complaints.h.
4959 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4960 variable initialization; return NULL on error.
4961 (decode_frame_entry): New.
4962
4963 2003-07-11 Andrew Cagney <cagney@redhat.com>
4964
4965 * frame.h (frame_address_in_block): Delete declaration.
4966 * blockframe.c (frame_address_in_block): Delete function.
4967 (get_frame_block): Use get_frame_address_in_block.
4968 (block_innermost_frame): Ditto.
4969 * stack.c (print_frame, backtrace_command_1): Ditto.
4970
4971 * frame.h (get_frame_address_in_block): Declare.
4972 (frame_unwind_address_in_block): Declare.
4973 * frame.c (frame_unwind_address_in_block): New function.
4974 (get_frame_address_in_block): New function.
4975
4976 2003-07-10 Andrew Cagney <cagney@redhat.com>
4977
4978 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4979 pre-default. Note: re-generate has no effect.
4980
4981 2003-07-10 Andrew Cagney <cagney@redhat.com>
4982
4983 * gdbarch.sh: When a variable, but not a function, compare against
4984 0. Fix problem in previous patch.
4985 * gdbarch.c: Re-generate.
4986
4987 2003-07-10 Andrew Cagney <cagney@redhat.com>
4988
4989 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4990 functions against NULL, not 0.
4991 * gdbarch.c: Re-generate.
4992
4993 2003-07-10 Fred Fish <fnf@ninemoons.com>
4994
4995 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4996 null string instead of a null pointer.
4997 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4998
4999 2003-07-09 Michael Snyder <msnyder@redhat.com>
5000
5001 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5002
5003 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5004
5005 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5006 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5007 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5008 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5009 * x86-64-tdep.c: ... from here.
5010
5011 2003-07-09 Andreas Schwab <schwab@suse.de>
5012
5013 * m68k-tdep.h (enum struct_return): Define.
5014 (struct gdbarch_tdep): Add struct_return.
5015 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5016 bytes are padded to the right, not to the left. Pass struct value
5017 address in register %a1, not on stack.
5018 (m68k_use_struct_convention): New function.
5019 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5020 struct_return in tdep to pcc_struct_return.
5021 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5022 reg_struct_return.
5023
5024 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5025
5026 * somread.c (som_symfile_offsets): Fix compilation error.
5027
5028 2003-07-09 Andrew Cagney <cagney@redhat.com>
5029
5030 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5031 Add comments about the checks.
5032
5033 2003-07-08 Andrew Cagney <cagney@redhat.com>
5034
5035 * Makefile.in: Make dependency section headers consistent.
5036 (config_h): Move to $BUILD headers section.
5037 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5038 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5039 (ada-exp.tab.c): Move to YACC/LEX section.
5040 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5041 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5042
5043 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5044
5045 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5046 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5047 of strerror with safe_strerror, use ISO C function definitions,
5048 and replace instances of sprintf with snprintf.
5049
5050 2003-07-07 Andrew Cagney <cagney@redhat.com>
5051
5052 * frame.c (get_prev_frame): Enable check for identical frames.
5053 Update comments. Update error messages.
5054
5055 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5056
5057 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5058
5059 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5060
5061 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5062 sort_symtab_syms, no longer necessary.
5063
5064 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5065
5066 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5067
5068 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5069
5070 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5071 (mips_register_byte): Likewise.
5072
5073 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5074
5075 * Makefile.in (sparc_tdep_h): New.
5076 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5077 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5078 * sparc-linux-nat.c: Include "sparc-tdep.h".
5079 * sparc-nat.c: Likewise.
5080 * sparc-tdep.c: Likewise.
5081 * sparc64nbsd-nat.c: Likewise.
5082 * sparcnbsd-nat.c: Likewise.
5083 * sparcnbsd-tdep.c: Likewise.
5084 * sparc-tdep.h: New file.
5085 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5086 and sparc_npc_regnum.
5087
5088 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5089
5090 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5091 (mips_linux_cannot_store_register): List supported instead of
5092 unsupported registers.
5093
5094 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5095
5096 * disasm.c (dump_insns): Separate instructions from addresses.
5097
5098 2003-07-07 Andreas Schwab <schwab@suse.de>
5099
5100 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5101 dependencies.
5102 * m68k-tdep.c (NUM_FREGS): Delete.
5103 (SIG_PC_FP_OFFSET): Delete.
5104 (TARGET_M68K): Delete.
5105 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5106 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5107 P_MOVEL_SP, P_MOVEML_SP): Define.
5108 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5109 P_TRAP): Delete.
5110 (m68k_register_raw_size): Delete.
5111 (m68k_register_virtual_size): Delete.
5112 (m68k_register_type): Renamed from m68k_register_virtual_type and
5113 add gdbarch argument.
5114 (m68k_store_struct_return): Delete.
5115 (m68k_deprecated_extract_return_value): Delete.
5116 (m68k_deprecated_extract_struct_value_address): Delete.
5117 (m68k_frame_chain): Delete.
5118 (m68k_frame_saved_pc): Delete.
5119 (m68k_fix_call_dummy): Delete.
5120 (m68k_push_dummy_frame): Delete.
5121 (m68k_pop_frame): Delete.
5122 (m68k_extract_return_value): New function.
5123 (m68k_store_return_value): Rewrite using regcache.
5124 (m68k_extract_struct_value_address): Rewrite using regcache.
5125 (m68k_push_dummy_call): New function.
5126 (struct m68k_frame_cache): Define.
5127 (m68k_alloc_frame_cache): New function.
5128 (m68k_analyze_frame_setup): New function.
5129 (m68k_analyze_register_saves): New function.
5130 (m68k_analyze_prologue): New function.
5131 (m68k_skip_prologue): Rewrite using above functions.
5132 (m68k_unwind_pc): New function.
5133 (m68k_frame_cache): New function.
5134 (m68k_frame_this_id): New function.
5135 (m68k_frame_prev_register): New function.
5136 (m68k_frame_unwind): New variable.
5137 (m68k_frame_p): New function.
5138 (m68k_sigtramp_frame_cache): New function.
5139 (m68k_sigtramp_frame_this_id): New function.
5140 (m68k_sigtramp_frame_prev_register): New function.
5141 (m68k_sigtramp_frame_unwind): New variable.
5142 (m68k_sigtramp_frame_p): New function.
5143 (m68k_frame_base_address): New function.
5144 (m68k_frame_base): New function.
5145 (m68k_unwind_dummy_id): New function.
5146 (fill_gregset): Use regcache_collect.
5147 (fill_fpregset): Likewise.
5148 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5149 defined.
5150 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5151 deprecated_init_frame_pc, deprecated_store_struct_return,
5152 deprecated_extract_return_value, deprecated_store_return_value,
5153 deprecated_frame_chain, deprecated_frame_saved_pc,
5154 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5155 deprecated_register_virtual_size,
5156 deprecated_max_register_raw_size,
5157 deprecated_max_register_virtual_size,
5158 deprecated_register_virtual_type, deprecated_register_size,
5159 deprecated_register_byte, deprecated_register_bytes,
5160 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5161 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5162 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5163 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5164 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5165 deprecated_push_dummy_frame, deprecated_pop_frame,
5166 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5167 only if SYSCALL_TRAP is defined. Set extract_return_value,
5168 store_return_value, extract_struct_value_address, register_type,
5169 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5170 predicates.
5171 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5172 M68K_MAX_REGISTER_SIZE): Define.
5173 (struct m68k_sigtramp_info): Define.
5174 (struct gdbarch_tdep): Add get_sigtramp_info.
5175 * m68klinux-nat.c (fetch_register): Use register_size instead of
5176 REGISTER_RAW_SIZE. Don't put assignment in if.
5177 (store_register): Likewise.
5178 (fetch_inferior_registers): Likewise.
5179 (store_inferior_registers): Likewise.
5180 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5181 (m68k_linux_frame_saved_pc): Delete.
5182 (m68k_linux_sigcontext_reg_offset,
5183 m68k_linux_ucontext_reg_offset): Define.
5184 (m68k_linux_get_sigtramp_info): New function.
5185 (m68k_linux_extract_return_value): Rewrite using regcache.
5186 (m68k_linux_store_return_value): Likewise.
5187 (m68k_linux_extract_struct_value_address): Likewise.
5188 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5189 Don't set deprecated_frame_saved_pc,
5190 deprecated_extract_return_value, deprecated_store_return_value,
5191 deprecated_extract_struct_value_address. Set
5192 extract_return_value, store_return_value,
5193 extract_struct_value_address.
5194
5195 2003-07-07 Andrew Cagney <cagney@redhat.com>
5196
5197 * expprint.c: Include "user-regs.h" instead of "frame.h".
5198 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5199 frame_map_regnum_to_name.
5200 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5201 (frame_map_name_to_regnum): Simplify, call
5202 user_reg_map_name_to_regnum.
5203 (frame_map_regnum_to_name): Simplify, call
5204 user_reg_map_regnum_to_name.
5205 (frame_register_unwind): Update.
5206 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5207 (_initialize_frame_reg): Call user_reg_add_builtin.
5208 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5209 (value_of_register): Use value_of_user_reg.
5210 * eval.c (evaluate_subexp_standard): Update.
5211 * parse.c (write_dollar_variable): Update.
5212 * d10v-tdep.c (d10v_print_registers_info): Update.
5213 * infcmd.c (registers_info): Update.
5214 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5215 (builtin_regs_h): Delete macro.
5216 (user_regs_h): Define.
5217 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5218 (builtin-regs.o): Delete target.
5219 (user-regs.o): Specify dependencies.
5220 (expprint.o): Update dependencies.
5221 (findvar.o): Update dependencies.
5222 (frame.o): Update dependencies.
5223 (std-regs.o): Update dependencies.
5224
5225 2003-07-06 Christopher Faylor <cgf@redhat.com>
5226
5227 * win32-nat.c (solib_symbols_add): Use one variable for all section
5228 address stuff. Pass variable rather than address of variable to
5229 safe_symbol_file_add.
5230
5231 2003-07-06 Andreas Schwab <schwab@suse.de>
5232
5233 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5234
5235 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5236
5237 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5238
5239 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5240
5241 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5242
5243 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5244
5245 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5246 * config/i386/nto.mh: New file.
5247 * config/i386/nm-nto.h: New file.
5248 * configure.host: Add i[3456]86-*-nto*.
5249
5250 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5251
5252 * remote-vx.c (vx_add_symbols): Fix compilation error.
5253
5254 2003-07-03 Andrew Cagney <cagney@redhat.com>
5255
5256 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5257 * gdbarch.h, gdbarch.c: Re-generate.
5258 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5259 (legacy_register_name): Declare.
5260 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5261 (REGISTER_NAME): Define.
5262 * sparc-tdep.c (legacy_register_name): New function.
5263 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5264 (REGISTER_NAME): Define.
5265 (hppa64_register_name): Declare.
5266 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5267 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5268 (hppa64_register_name): New function.
5269 (hppa_register_name): New function.
5270 * arch-utils.c (legacy_register_name): Delete.
5271 * arch-utils.h (legacy_register_name): Delete.
5272
5273 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5274
5275 * cli/cli-interp.c (cli_interpreter_resume): Update the
5276 cli_uiout's stream to gdb_stdout.
5277
5278 2003-07-03 Andrew Cagney <cagney@redhat.com>
5279
5280 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5281 predicate.
5282 * gdbarch.h, gdbarch.c: Re-generate.
5283 * regcache.c (init_regcache_descr): Use legacy code when either
5284 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5285
5286 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5287
5288 * NEWS: Move "set logging" entry into GDB 6.0 section.
5289
5290 2003-07-02 Jim Blandy <jimb@redhat.com>
5291
5292 * s390-tdep.c (struct frame_extra_info): new member:
5293 'stack_bought_valid'.
5294 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5295 initialize fextra_info->stack_bought.
5296 (s390_frameless_function_invocation): Don't trust the value of
5297 fextra_info_ptr->stack_bought unless
5298 fextra_info->stack_bought_valid is set.
5299
5300 New S390 prologue analyzer.
5301 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5302 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5303 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5304 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5305 compute_x_addr, s390_on_stack, s390_store,
5306 s390_get_signal_frame_info): New functions.
5307 (S390_NUM_SPILL_SLOTS): New macro.
5308 (s390_get_frame_info): Rewritten.
5309 (is_arg_reg): Deleted.
5310
5311 Break out the decoding of S/390 instructions into separate
5312 functions, to make it more legible, and easier to check
5313 against the spec.
5314 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5315 is_rx, is_rxe): New functions.
5316 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5317 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5318 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5319 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5320 enums for opcode values. (Is this an improvement?)
5321
5322 2003-07-02 Andrew Cagney <cagney@redhat.com>
5323
5324 * i386-tdep.c: Revert change committed as part of trad-frame code
5325 below.
5326
5327 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5328
5329 * breakpoint.c (insert_catchpoint): Make static.
5330
5331 2003-07-02 Andreas Schwab <schwab@suse.de>
5332
5333 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5334 former ia64_push_arguments and ia64_push_return_address, and use
5335 regcache functions instead of read/write_register.
5336 (ia64_gdbarch_init): Set push_dummy_call instead of
5337 deprecated_push_arguments and deprecated_push_return_address.
5338
5339 2003-07-01 Andreas Jaeger <aj@suse.de>
5340
5341 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5342 before the call.
5343 Set %rax only to number of SSE registers used.
5344
5345 2003-07-01 Andrew Cagney <cagney@redhat.com>
5346
5347 * trad-frame.h: Update comments, a -1 .addr is reserved.
5348 (trad_frame_value_p, trad_frame_addr_p): Declare.
5349 (trad_frame_reg_p): Declare.
5350 (trad_frame_set_value): Rename trad_frame_register_value.
5351 (trad_frame_set_unknown): Declare.
5352 * trad-frame.c (trad_frame_realreg_p): New function.
5353 (trad_frame_addr_p, trad_frame_value_p): New function.
5354 (trad_frame_set_unknown): New function.
5355 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5356 (trad_frame_prev_register): Use trad_frame_realreg_p,
5357 trad_frame_addr_p and trad_frame_value_p.
5358 (trad_frame_set_value): Rename trad_frame_register_value.
5359 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5360 and trad_frame_set_value.
5361
5362 2003-06-30 Jim Blandy <jimb@redhat.com>
5363
5364 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5365 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5366 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5367 for 16 registers, and then 32 more bytes.
5368 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5369 New macros.
5370 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5371 Move up in the file, since it's now used by is_simple_arg.
5372 (is_simple_arg): Don't assume registers are four bytes long.
5373 Exclude all double arguments. Extended floats are not simple
5374 args.
5375 (is_power_of_two): New function.
5376 (pass_by_copy_ref): Call is_power_of_two, and check that the
5377 length fits in a register, rather than listing all the acceptable
5378 sizes. Extended floats are not passed by reference.
5379 (s390_push_arguments): Don't assume registers are four bytes long.
5380 Reserve an argument register to point to the buffer for structures
5381 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5382 S390_STACK_FRAME_OVERHEAD.
5383
5384 2003-06-30 Andreas Schwab <schwab@suse.de>
5385
5386 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5387 format error message.
5388
5389 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5390
5391 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5392
5393 2003-06-30 David Carlton <carlton@kealia.com>
5394
5395 Band-aid for PR c++/1245.
5396 * Makefile.in (cp-support.o): Depend on complaints_h.
5397 * cp-support.c: Include complaints.h. Add declaration for
5398 find_last_component.
5399 (cp_find_first_component): Separate code into
5400 cp_find_first_component_aux.
5401 (cp_find_first_component_aux): Call demangled_name_complaint.
5402 (demangled_name_complaint): New.
5403
5404 2003-06-30 Andrew Cagney <cagney@redhat.com>
5405
5406 * remote.c (remote_write_bytes): Explicitly compute and then use
5407 the payload size. Update comments to reflect. Fixes problem of
5408 GDB not sending small packets as found by Fred Fish.
5409
5410 2003-06-30 Andrew Cagney <cagney@redhat.com>
5411
5412 * remote.c (remote_async_wait): Fix -Wformat problem.
5413
5414 2003-06-29 Andrew Cagney <cagney@redhat.com>
5415
5416 * remote.c (remote_wait): Call error, and not warning, when the
5417 packet is corrupt.
5418 (remote_async_wait): Ditto.
5419
5420 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5421
5422 * sparc-tdep.c (sparc_y_regnum): Make external again.
5423
5424 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5425
5426 * cli/cli-logging.c (pop_output_files): Add void to function
5427 definition.
5428
5429 2003-06-29 Andrew Cagney <cagney@redhat.com>
5430
5431 * frame.c (frame_register_unwind): Use unsigned char when dumping
5432 the buffer contents.
5433
5434 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5435
5436 * cli/cli-logging.c: New file.
5437 * cli-out.c (struct ui_out_data): Add original_stream.
5438 (cli_redirect): New function.
5439 (cli_ui_out_impl): Add cli_redirect.
5440 (cli_out_new): Initialize original_stream.
5441 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5442 (uo_redirect, ui_out_redirect): New.
5443 * ui-out.h (struct ui_out_impl): Add redirect member.
5444 (redirect_ftype): New.
5445 (ui_out_redirect): Add prototype.
5446 * Makefile.in: Add rules for cli-logging.c.
5447 * NEWS: Mention "set logging".
5448
5449 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5450
5451 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5452
5453 2003-06-27 Andrew Cagney <cagney@redhat.com>
5454
5455 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5456 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5457 * avr-tdep.c (avr_call_dummy_address): Delete function.
5458 (avr_gdbarch_init): Do not set call_dummy_address.
5459
5460 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5461
5462 * symfile.c (syms_from_objfile): Move variables to inner block.
5463 Move the checks for the non-mainline case a bit earlier to avoid
5464 doing some useless computations.
5465
5466 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5467
5468 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5469
5470 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5471
5472 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5473 sections.
5474
5475 2003-06-26 Michael Chastain <mec@shout.net>
5476
5477 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5478 gdb/testsuite/gdb.c++/pr-1210.exp.
5479
5480 2003-06-26 Andrew Cagney <cagney@redhat.com>
5481
5482 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5483 altivec_expression.h and altivec_registers.h.
5484
5485 2003-06-26 Andrew Cagney <cagney@redhat.com>
5486
5487 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5488 info->mach when MIPS16. Patch suggested by Fred Fish.
5489
5490 2003-06-26 Andrew Cagney <cagney@redhat.com>
5491
5492 * utils.c (internal_vproblem): Print the problem to a reason
5493 buffer and then pass to query. Make the msg variable more local.
5494
5495 2003-06-26 Andrew Cagney <cagney@redhat.com>
5496
5497 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5498 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5499 * gdbarch.h, gdbarch.c: Re-generate.
5500 * frame-base.c (default_frame_args_address): Update. Use
5501 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5502 not available.
5503 (default_frame_locals_address): Ditto for
5504 DEPRECATED_FRAME_LOCALS_ADDRESS.
5505 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5506 (vax_frame_num_args): Update.
5507 (vax_gdbarch_init): Update.
5508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5509 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5510 * mcore-tdep.c (mcore_gdbarch_init): Update.
5511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5512 * ia64-tdep.c (ia64_gdbarch_init): Update.
5513 * symtab.h (address_class): Update comments.
5514 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5515 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5516 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5517 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5518 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5519 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5520 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5521 * alpha-mdebug-tdep.c: Update.
5522 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5523
5524 2003-06-26 Andreas Jaeger <aj@suse.de>
5525
5526 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5527 of SSE registers so that varargs functions work. Rework handling
5528 of passing arguments on the stack.
5529 (x86_64_store_return_value): Return double and float values in SSE
5530 register.
5531
5532 2003-06-24 Michael Chastain <mec@shout.net>
5533
5534 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5535 the "constructor breakpoints ignored" bug.
5536
5537 2003-06-25 David Carlton <carlton@kealia.com>
5538
5539 * MAINTAINERS: Update e-mail address.
5540
5541 2003-06-24 Jim Blandy <jimb@redhat.com>
5542
5543 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5544
5545 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5546 function.
5547 (ppc_linux_init_abi): Register it as the
5548 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5549
5550 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5551 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5552 method.
5553
5554 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5555 (ppc64_standard_linkage_target): Use it.
5556
5557 2003-06-23 Andrew Cagney <cagney@redhat.com>
5558
5559 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5560 for 0 "int0" and 4 "int32" sized registers.
5561 * gdbtypes.c (builtin_type_int0): Define.
5562 (build_gdbtypes): Initialize builtin_type_int0.
5563 * gdbtypes.h (builtin_type_int0): Declare.
5564
5565 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5566
5567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5568 as characters are unsigned.
5569
5570 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5571
5572 PR gdb/1179
5573 * dwarfread.c (struct_type): Skip static fields without crashing.
5574
5575 2003-06-22 Andrew Cagney <cagney@redhat.com>
5576
5577 GDB 6.0 branch created.
5578 * README: Update.
5579 * PROBLEMS: Update. Empty.
5580 * NEWS: Update.
5581
5582 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5583
5584 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5585 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5586
5587 2003-06-22 Andrew Cagney <cagney@redhat.com>
5588
5589 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5590 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5591 Velikov.
5592
5593 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5594
5595 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5596 compilers.
5597
5598 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5599
5600 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5601 argument of val_print.
5602 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5603 to the address argument of baseclass_offset or target_read_memory.
5604 Do add it to the argument of cp_print_value_fields.
5605
5606 2003-06-21 Andrew Cagney <cagney@redhat.com>
5607
5608 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5609 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5610 instead of 0..NUM_REGS.
5611 (mips_register_reggroup_p): New function.
5612 (mips_pseudo_register_write): New function.
5613 (mips_pseudo_register_read): New function.
5614 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5615 based on the register's type.
5616 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5617 cooked.
5618 (mips_get_saved_register): Simplify. Assert that REGNO is a
5619 pseudo / cooked.
5620 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5621 (mips_register_type): Replace mips_register_virtual_type. Map
5622 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5623 when available.
5624 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5625 that the register is cooked / virtual.
5626 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5627 Only get the extra info when needed.
5628 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5629 (mips32_heuristic_proc_desc): Fetch the cooked register.
5630 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5631 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5632 (mips_print_register): Use gdbarch_register_type, instead of
5633 REGISTER_VIRTUAL_TYPE.
5634 (print_gp_register_row): Use gdbarch_register_type, instead of
5635 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5636 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5637 Print the pseudo / cooked registers.
5638 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5639 Print the pseudo / cooked registers.
5640 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5641 REG_NUM is pseudo / cooked.
5642 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5643 (mips_n32n64_xfer_return_value): Ditto.
5644 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5645 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5646 (mips_register_sim_regno): New function.
5647 (mips_gdbarch_init): Set deprecated_register_byte,
5648 register_group_p, pseudo_register_write, pseudo_register_read,
5649 register_sim_regno, and num_pseudo_regs. Set register_type,
5650 instead of register_virtual_type.
5651 * Makefile.in (mips-tdep.o): Update dependencies.
5652 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5653 REGISTER_VIRTUAL_TYPE.
5654 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5655 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5656 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5657 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5658 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5659
5660 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5661
5662 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5663 * cli/cli-cmds.c: Include "gdb_vfork.h".
5664 (shell_escape): Use vfork.
5665
5666 2003-06-21 Andrew Cagney <cagney@redhat.com>
5667
5668 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5669 32 bit floating-point register saves.
5670
5671 * frame.h (deprecated_unwind_get_saved_register): Delete.
5672 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5673 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5674 and deprecated_get_next_frame_hack instead of
5675 deprecated_unwind_get_saved_register.
5676
5677 * mips-tdep.c (mips_dump_tdep): Do not print
5678 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5679
5680 * frame.c (get_frame_register): New function.
5681 (frame_unwind_register_signed): New function.
5682 (get_frame_register_signed): New function.
5683 (frame_unwind_register_unsigned): New function.
5684 (get_frame_register_unsigned): New function.
5685 * frame.h: Add comments on naming schema.
5686 (get_frame_register, frame_unwind_register_signed): Declare.
5687 (get_frame_register_signed, get_frame_register_signed): Declare.
5688 (frame_unwind_register_unsigned): Declare.
5689 (get_frame_register_unsigned): Declare.
5690
5691 2003-06-20 Theodore A. Roth <troth@openavr.org>
5692
5693 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5694
5695 2003-06-20 Theodore A. Roth <troth@openavr.org>
5696
5697 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5698 (avr_read_sp): Ditto.
5699
5700 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5701
5702 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5703 * config/arm/nm-linux.h: Likewise.
5704 * config/arm/tm-linux.h: Likewise.
5705 * config/ia64/nm-linux.h: Likewise.
5706 * config/ia64/tm-ia64.h: Likewise.
5707 * config/s390/tm-linux.h: Likewise.
5708 * config/s390/tm-s390.h: Likewise.
5709 * s390-nat.c: Likewise.
5710 * s390-tdep.c: Likewise.
5711
5712 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5713 * config/ia64/linux.mt: Likewise.
5714 * config/m68k/linux.mh: Likewise.
5715 * config/mips/linux.mt: Likewise.
5716 * config/powerpc/linux.mh: Likewise.
5717 * config/sh/linux.mt: Likewise.
5718
5719 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5720
5721 * solib.c (solib_open): Change tests for whether to search
5722 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5723 comments.
5724
5725 2003-06-19 Theodore A. Roth <troth@openavr.org>
5726
5727 * avr-tdep.c (avr_frame_address): Delete function.
5728 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5729 set_gdbarch_frame_args_address.
5730
5731 2003-06-19 Andrew Cagney <cagney@redhat.com>
5732
5733 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5734 (REGISTER_CONVERT_FROM_TYPE): Delete.
5735 (mips_register_convert_to_type): Delete declaration.
5736 (mips_register_convert_from_type): Delete declaration.
5737 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5738 kernel/.
5739
5740 2003-06-19 Michael Snyder <msnyder@redhat.com>
5741
5742 * linux-nat.h: New file.
5743 * linux-nat.c: Include linux-nat.h.
5744 * lin-lwp.c: Include linux-nat.h.
5745 Move struct lwp_info def to linux-nat.h.
5746 * linux-proc.c: Include linux-nat.h.
5747 (linux_make_note_section): Iterate over lwps instead of threads.
5748 (linux_do_thread_registers): Use lwp instead of merged pid.
5749 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5750 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5751 Add dependency on linux_nat_h.
5752
5753 2003-06-19 Theodore A. Roth <troth@openavr.org>
5754
5755 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5756
5757 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5758
5759 * varobj.c (get_type, get_target_type): Use check_typedef.
5760
5761 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5762
5763 * breakpoint.c (insert_catchpoint): Call internal_error.
5764
5765 2003-06-19 Theodore A. Roth <troth@openavr.org>
5766
5767 * avr-tdep.c (avr_push_dummy_code): Delete function.
5768 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5769
5770 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5771
5772 * arch-utils.c (default_prepare_to_proceed): Remove.
5773 (generic_prepare_to_proceed): Remove.
5774 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5775 (generic_prepare_to_proceed): Remove prototype.
5776 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5777 * gdbarch.c: Regenerate.
5778 * gdbarch.h: Regenerate.
5779 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5780 * hppah-nat.c (hppa_switched_threads): Remove.
5781 * infrun.c (prepare_to_proceed): New static function, copied from
5782 generic_prepare_to_proceed. Remove select_it argument.
5783 (proceed): Call prepare_to_proceed.
5784 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5785 variables.
5786 (ptrace_wait): Don't set the removed variables.
5787 (hppa_switched_threads): Remove.
5788 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5789 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5790 (lin_lwp_prepare_to_proceed): Remove prototype.
5791 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5792 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5793
5794 2003-06-18 Theodore A. Roth <troth@openavr.org>
5795
5796 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5797 trad-frame.h.
5798 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5799 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5800 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5801 (AVR_PROLOGUE_*): Enumerate prologue types.
5802 (struct frame_extra_info): Remove.
5803 (struct avr_unwind_cache): Define.
5804 (avr_write_sp): Delete function.
5805 (avr_read_fp): Ditto.
5806 (avr_init_extra_frame_info): Ditto.
5807 (avr_pop_frame): Ditto.
5808 (avr_frame_saved_pc): Ditto.
5809 (avr_saved_pc_after_call): Ditto.
5810 (avr_push_return_address): Ditto.
5811 (avr_frame_chain): Ditto.
5812 (avr_store_struct_return): Ditto.
5813 (avr_push_arguments): Ditto.
5814 (avr_scan_prologue): Update comments. Changed to set up the info for
5815 cache unwinding. Now returns end of prologue PC.
5816 (avr_skip_prologue): Better handling of functions lacking a prologue
5817 by using avr_scan_prologue.
5818 (avr_scan_arg_moves): New function.
5819 (avr_saved_regs_unwinder): Ditto.
5820 (avr_frame_unwind_cache): Ditto.
5821 (avr_unwind_pc): Ditto.
5822 (avr_frame_this_id): Ditto.
5823 (avr_frame_prev_register): Ditto.
5824 (avr_frame_p): Ditto.
5825 (avr_frame_base_address ): Ditto.
5826 (avr_unwind_dummy_id): Ditto.
5827 (avr_push_dummy_code): Ditto.
5828 (push_stack_item): Ditto.
5829 (pop_stack_item): Ditto.
5830 (avr_push_dummy_call): Ditto.
5831 (struct stack_item): Define.
5832 (avr_frame_unwind): Declare structure.
5833 (avr_frame_base): Ditto.
5834 (avr_gdbarch_init): Remove calls to
5835 set_gdbarch_deprecated_init_frame_pc,
5836 set_gdbarch_deprecated_target_read_fp,
5837 set_gdbarch_deprecated_dummy_write_sp,
5838 set_gdbarch_deprecated_fp_regnum,
5839 set_gdbarch_deprecated_push_arguments,
5840 set_gdbarch_deprecated_push_return_address,
5841 set_gdbarch_deprecated_pop_frame,
5842 set_gdbarch_deprecated_store_struct_return,
5843 set_gdbarch_deprecated_frame_init_saved_regs,
5844 set_gdbarch_deprecated_init_extra_frame_info,
5845 set_gdbarch_deprecated_frame_chain,
5846 set_gdbarch_deprecated_frame_saved_pc,
5847 set_gdbarch_deprecated_saved_pc_after_call.
5848 Add calls to set_gdbarch_push_dummy_call,
5849 set_gdbarch_push_dummy_code,
5850 frame_unwind_append_predicate,
5851 frame_base_set_default,
5852 set_gdbarch_unwind_dummy_id,
5853 set_gdbarch_unwind_pc.
5854 Wrap a long line.
5855
5856 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5857
5858 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5859 registers for H8/300S.
5860 (h8300_print_registers_info): Ditto.
5861 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5862
5863 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5864
5865 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5866 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5867 (lin_lwp_wait): Likewise. Update comments.
5868 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5869 (pull_pid_from_list, linux_record_stopped_pid): New.
5870
5871 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5872
5873 * ada-lang.c (scan_discrim_bound): Name first argument.
5874 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5875 declared by ALL_BLOCK_SYMBOLS.
5876
5877 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5878
5879 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5880 ("regcache.h"): Include it.
5881 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5882
5883 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5884
5885 * NEWS: Mention gdbserver detach change and "disconnect" command.
5886 * infcmd.c (disconnect_command): New function.
5887 (_initialize_infcmd): Add ``disconnect'' command.
5888 * remote.c (remote_async_detach): Delete.
5889 (remote_detach): Merge remote_async_detach.
5890 (remote_disconnect): New.
5891 (init_remote_ops): Set to_disconnect.
5892 (init_remote_cisco_ops): Likewise.
5893 (init_remote_async_ops): Likewise. Use remote_detach.
5894 * target.c (cleanup_target): Default to_disconnect.
5895 (update_current_target): Inherit to_disconnect.
5896 (target_disconnect, debug_to_disconnect): New functions.
5897 (setup_target_debug): Set to_disconnect.
5898 * target.h (struct target_ops): Add to_disconnect.
5899 (target_disconnect): Add prototype.
5900
5901 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5902
5903 * breakpoint.c (insert_catchpoint): New function.
5904 (insert_breakpoints): Use catch_exceptions to call
5905 insert_catchpoint. Disable catchpoints if they fail to insert.
5906
5907 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5908
5909 * symfile.c (reread_symbols): Clear sym_private.
5910
5911 2003-06-17 Andrew Cagney <cagney@redhat.com>
5912
5913 * trad-frame.h (struct frame_info): Add opaque declaration.
5914 * remote-fileio.h (struct cmd_list_element): Add opaque
5915 declaration.
5916 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5917 comments.
5918
5919 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5920
5921 * remote.c (remote_prepare_to_store): Replace call to
5922 deprecated_read_register_bytes with multiple regcache_raw_read
5923 calls.
5924
5925 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5926
5927 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5928 (nto_find_and_open_solib): Likewise.
5929 (nto_init_solib_absolute_prefix): Likewise.
5930 (_initialize_nto_tdep): Fix indentation.
5931
5932 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5933
5934 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5935
5936 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5937
5938 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5939
5940 2003-06-17 Jim Blandy <jimb@redhat.com>
5941
5942 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5943
5944 2003-06-16 Theodore A. Roth <troth@openavr.org>
5945
5946 * avr-tdep.c (avr_extract_return_value): New function.
5947 (avr_gdbarch_init): Set extract_return_value method.
5948
5949 2003-06-16 Andrew Cagney <cagney@redhat.com>
5950
5951 * frame.h (deprecated_get_next_frame_hack): Declare.
5952 * frame.c (legacy_saved_regs_prev_register): Only require
5953 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5954 there are always saved regs.
5955 (deprecated_generic_get_saved_register): Do not require
5956 DEPRECATED_FRAME_INIT_SAVED_REGS.
5957 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5958 use frame ID unwind instead.
5959 (deprecated_get_next_frame_hack): New function.
5960
5961 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5962
5963 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5964 (h8300_push_dummy_call): ...this function. Some minor optimization.
5965 (h8300_push_return_address): Remove.
5966 (h8300_gdbarch_init): Remove calls to
5967 set_gdbarch_deprecated_dummy_write_sp,
5968 set_gdbarch_deprecated_push_arguments and
5969 set_gdbarch_deprecated_push_return_address.
5970 Add call to set_gdbarch_push_dummy_call.
5971
5972 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5973
5974 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5975 (E_PSEUDO_EXR_REGNUM): Ditto.
5976 (h8300_is_argument_spill): Check for instructions moving argument
5977 registers into safe registers.
5978 (h8300_skip_prologue): Check for stm instruction to push registers
5979 used for register variables onto stack.
5980 (gdb_print_insn_h8300): Remove.
5981 (h8300_examine_prologue): Add a comment.
5982 (h8300_register_name): Take pseudo registers into account.
5983 (h8300s_register_name): Ditto.
5984 (h8300sx_register_name): Ditto.
5985 (h8300_print_register): Ditto.
5986 (h8300_print_registers_info): Define "nice" printing order.
5987 (h8300_saved_pc_after_call): Take pseudo registers into account.
5988 (h8300_register_type): Ditto. Return type used for remote connection
5989 when requesting real CCR or EXR register, return actual type when
5990 requesting pseudo CCR or EXR.
5991 (h8300_pseudo_register_read): New function.
5992 (h8300_pseudo_register_write): Ditto.
5993 (h8300_dbg_reg_to_regnum): Ditto.
5994 (h8300s_dbg_reg_to_regnum): Ditto.
5995 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5996 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5997 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5998 set_gdbarch_print_insn architecture dependent.
5999 Call set_gdbarch_pseudo_register_read and
6000 set_gdbarch_pseudo_register_write.
6001 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6002
6003 2003-06-16 Andrew Cagney <cagney@redhat.com>
6004
6005 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6006 * gdbarch.h, gdbarch.c: Re-generate.
6007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6008 * s390-tdep.c (s390_gdbarch_init): Update.
6009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6011 * mips-tdep.c (mips_gdbarch_init): Update.
6012 * mcore-tdep.c (mcore_gdbarch_init): Update.
6013 * cris-tdep.c (cris_gdbarch_init): Update.
6014 * infcall.c (call_function_by_hand): Update.
6015 * ia64-tdep.c (ia64_push_arguments): Update comment.
6016 * frame.c (legacy_get_prev_frame): Do not assume
6017 SAVE_DUMMY_FRAME_TOS_P.
6018 * dummy-frame.c (find_dummy_frame): Update comment.
6019
6020 2003-06-16 Andrew Cagney <cagney@redhat.com>
6021
6022 * regcache.c (do_cooked_read): Do not use register_valid_p.
6023
6024 2003-06-15 Theodore A. Roth <troth@openavr.org>
6025
6026 * avr-tdep.c (avr_register_type): Remove a blank line.
6027 (avr_scan_prologue): Correct some comments.
6028
6029 2003-06-15 Theodore A. Roth <troth@openavr.org>
6030
6031 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6032 prologue types.
6033 Properly scan prologues generated by gcc with the -mcall-prologues
6034 option.
6035 Add code to scan -mcall-prologues for mega devices.
6036
6037 2003-06-15 Theodore A. Roth <troth@openavr.org>
6038
6039 * avr-tdep.c (avr_register_byte): Delete function.
6040 (avr_register_raw_size): Delete function.
6041 (avr_register_virtual_size): Delete function.
6042 (avr_register_virtual_type): Delete function.
6043 (avr_register_type): New function.
6044 (avr_address_to_pointer): Remove unused code.
6045 (avr_read_fp): Need to read FP as two separate bytes due to change to
6046 avr_register_type() usage.
6047 (avr_gdbarch_init): Don't set deprecated_register_size.
6048 Don't set deprecated_register_bytes.
6049 Don't set deprecated_register_byte.
6050 Don't set deprecated_register_raw_size.
6051 Don't set deprecated_max_register_raw_size.
6052 Don't set deprecated_register_virtual_size.
6053 Don't set deprecated_max_register_virtual_size.
6054 Don't set deprecated_register_virtual_type.
6055 Set register_type method.
6056
6057 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6058
6059 * Makefile.in (linux-nat.o): Add rule.
6060 * linux-nat.c: New file.
6061 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6062 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6063 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6064 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6065 * config/arm/linux.mh (NATDEPFILES): Likewise.
6066 * config/i386/linux.mh (NATDEPFILES): Likewise.
6067 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6068 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6069 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6070 * config/mips/linux.mh (NATDEPFILES): Likewise.
6071 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6072 * config/s390/s390.mh (NATDEPFILES): Likewise.
6073 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6074
6075 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6076
6077 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6078 replace out-of-date comment.
6079
6080 2003-06-15 Andrew Cagney <cagney@redhat.com>
6081
6082 * rdi-share/host.h (Fail): Change to a varargs function.
6083 * remote-rdi.c (Fail): Update.
6084
6085 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6086
6087 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6088 (i386_convert_register_p, i386_register_to_value,
6089 i386_register_from_value): Handle types longer than 8 bytes.
6090
6091 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6092
6093 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6094 Move floating-point code to new function in i387-tdep.c.
6095 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6096 New functions containing code moved here from i386-tdep.c.
6097 * i387-tdep.h: Add opaque declaration for `struct type'.
6098 (i387_register_to_value, i387_value_to_register): New prototypes.
6099 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6100 (x86_64_init_abi): Set convert_register_p, register_to_value and
6101 value_to_register here.
6102
6103 2003-06-14 Andrew Cagney <cagney@redhat.com>
6104
6105 * mips-tdep.c (mips_register_to_value): Make static.
6106 (mips_value_to_register): Make static.
6107 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6108 * ia64-tdep.c (ia64_register_raw_size): Make static.
6109 (ia64_register_virtual_size): Make static.
6110 (ia64_register_byte): Make static.
6111 * i387-tdep.c: Include "i387-tdep.h".
6112 (print_387_control_word): Delete function.
6113 (print_387_status_word): Delete function.
6114 (print_387_status_bits): Delete function.
6115 (print_387_control_bits): Delete function.
6116 * Makefile.in (i387-tdep.o): Update dependencies.
6117 * rdi-share/host.h (Fail): Declare.
6118 * remote-rdi.c (Fail): Update to match declaration.
6119
6120 2003-06-14 Andrew Cagney <cagney@redhat.com>
6121
6122 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6123 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6124 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6125 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6126 * README: Delete reference to remote-array.
6127 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6128 (remote-array.o): Delete target.
6129 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6130 * remote-array.c: Delete file.
6131
6132 2003-06-14 Andrew Cagney <cagney@redhat.com>
6133 Mark Kettenis <kettenis@gnu.org>
6134
6135 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6136 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6137 parameter with "frame".
6138 * gdbarch.h, gdbarch.c: Re-generate.
6139 * frame.h (put_frame_register): Declare.
6140 * frame.c (put_frame_register): New function.
6141 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6142 (legacy_register_to_value): Rewrite, use "frame" to get the
6143 register value.
6144 (legacy_value_to_register): Rewrite, use "frame" to find the
6145 register's location before storing.
6146 * arch-utils.h (legacy_convert_register_p): Update.
6147 (legacy_register_to_value, legacy_value_to_register): Update.
6148 * findvar.c (value_from_register): Rewrite, eliminate use of
6149 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6150 "frame" to REGISTER_TO_VALUE.
6151 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6152 lval_reg_frame_relative + lval_register branch of the switch. Do
6153 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6154 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6155 I386_EDI_REGNUM): New defines.
6156 (i386_next_regnum, i386_convert_register_p,
6157 i386_register_to_value, i386_value_to_register): New functions.
6158 (i386_register_convertible, i386_register_convert_to_virtual,
6159 i386_convert_to_raw): Remove functions.
6160 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6161 value_to_register instead of register_convertible,
6162 register_convert_to_virtual and register_convert_to_raw.
6163 * mips-tdep.c (mips_convert_register_p): New function.
6164 (mips_value_to_register): Replace mips_register_convert_from_type.
6165 (mips_register_to_value): Replace mips_register_convert_to_type.
6166 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6167 register_to_value.
6168 * alpha-tdep.c (alpha_convert_register_p): Update.
6169 (alpha_value_to_register): Update, store the register.
6170 (alpha_register_to_value): Update, fetch the register.
6171
6172 2003-06-14 Theodore A. Roth <troth@openavr.org>
6173
6174 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6175 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6176 Don't set deprecated_call_dummy_words.
6177 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6178 Don't set remote_translate_xfer_address.
6179 (avr_io_reg_read_command): Remove commented out debug printf.
6180 Wrap a long line.
6181
6182 2003-06-14 Theodore A. Roth <troth@openavr.org>
6183
6184 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6185 causes gdb to seg fault.
6186
6187 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6188
6189 * sparc-nat.c (fetch_inferior_registers): Correct
6190 a reference to "registers".
6191
6192 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6193
6194 * Makefile.in (exc_request_U_h): Define
6195 (exc_request_S_h): Likewise.
6196 (msg_reply_S_h): Likewise.
6197 (msg_U_h): Likewise.
6198 (notify_S_h): Likewise.
6199 (process_reply_S_h): Likewise.
6200 (gnu-nat.o): Depend on gdb_obstack_h
6201 * gnu-nat.c: Include "gdb_obstack.h".
6202
6203 2003-06-13 Andrew Cagney <cagney@redhat.com>
6204
6205 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6206 * gdbarch.h, gdbarch.c: Re-generate.
6207
6208 2003-06-13 Andrew Cagney <cagney@redhat.com>
6209
6210 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6211 when deprecated REGISTER macros can be deleted.
6212 * gdbarch.h, gdbarch.c: Re-generate.
6213
6214 2003-06-13 Jim Blandy <jimb@redhat.com>
6215
6216 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6217 Linux entry point symbols for _dl_debug_state, too.
6218
6219 2003-06-13 Andrew Cagney <cagney@redhat.com>
6220
6221 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6222 available, do not use the FP register, and always save the TOS.
6223 * dummy-frame.c (dummy_frame_this_id): Do not assert
6224 SAVE_DUMMY_FRAME_TOS.
6225 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6226 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6227 (i386_push_dummy_call): Add 8 to the returned SP.
6228 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6229 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6230 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6231 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6232 (x86_64_push_dummy_call): Return "sp + 16".
6233 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6234 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6235 save_dummy_frame_tos.
6236
6237 2003-06-13 Jim Blandy <jimb@redhat.com>
6238
6239 * frv-tdep.c (frv_use_struct_convention): Delete static
6240 declaration for function deleted in my change of 2003-06-12.
6241
6242 2003-06-13 Theodore A. Roth <troth@openavr.org>
6243
6244 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6245 (avr_pointer_to_address): Shift code addrs left 1 bit.
6246 (avr_convert_from_func_ptr_addr): Delete function since operation is
6247 better handled by avr_address_to_pointer and avr_pointer_to_address.
6248 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6249
6250 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6251
6252 From Kelley Cook <kelleycook@wideopenwest.com>:
6253 * configure.host: Accept i[34567]86 variants.
6254 * configure.tgt: Likewise.
6255 * nlm/configure.in: Likewise.
6256 * nlm/configure: Regenerated.
6257
6258 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6259
6260 * arm-tdep.c (solib-svr4.h): Dont' include it.
6261 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6262 * arm-linux-tdep.c: ... here. Make static.
6263 (arm_linux_init_abi): Register it.
6264 (solib-svr4.h): Include it.
6265 * Makefile.in: Update dependencies.
6266 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6267 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6268
6269 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6270
6271 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6272 indicate registers used for return values.
6273 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6274 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6275 members.
6276 (h8300_init_extra_frame_info): Ditto.
6277 (h8300_frame_locals_address): Removed.
6278 (h8300_frame_args_address): Removed.
6279 (h8300_extract_return_value): Use new regcache structure. Only care
6280 for 16 bit CPUs.
6281 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6282 (h8300_store_return_value): Use new regcache structure. Only care
6283 for 16 bit CPUs.
6284 (h8300h_store_return_value): Same function for 32 bit CPUs.
6285 (h8300_store_struct_return): Removed.
6286 (h8300_extract_struct_value_address): Use new regcache structure.
6287 (h8300h_extract_struct_value_address): Removed.
6288 (h8300_push_dummy_code): New function.
6289 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6290 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6291 set_gdbarch_store_return_value architecture dependent.
6292 Call set_gdbarch_push_dummy_code and
6293 set_gdbarch_extract_struct_value_address.
6294 Remove calls to set_gdbarch_frame_args_address,
6295 set_gdbarch_frame_locals_address,
6296 set_gdbarch_deprecated_store_struct_return,
6297 set_gdbarch_deprecated_extract_return_value,
6298 set_gdbarch_deprecated_extract_struct_value_address,
6299 set_gdbarch_deprecated_call_dummy_words and
6300 set_gdbarch_deprecated_sizeof_call_dummy_words.
6301
6302 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6303
6304 * h8300-tdep.c (h8300_register_byte): Remove.
6305 (h8300h_register_byte): Remove.
6306 (h8300_register_virtual_type): Remove. Substitute by...
6307 (h8300_register_type): New function.
6308 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6309 (h8300h_extract_struct_value_address): Ditto.
6310 (h8300_gdbarch_init): Drop calls to
6311 set_gdbarch_deprecated_register_byte and
6312 set_gdbarch_deprecated_register_virtual_type.
6313 Add call to set_gdbarch_register_type.
6314
6315 2003-06-13 Andrew Cagney <cagney@redhat.com>
6316
6317 * gdbarch.sh: Update comments on registers.
6318 (deprecated_register_byte): Rename register_byte.
6319 (deprecated_register_raw_size): Rename register_raw_size.
6320 (deprecated_register_virtual_size): Rename register_virtual_size.
6321 (deprecated_register_virtual_type): Rename register_virtual_type.
6322 * gdbarch.h, gdbarch.c: Re-generate.
6323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6324 * vax-tdep.c (vax_gdbarch_init): Update.
6325 * v850-tdep.c (v850_gdbarch_init): Update.
6326 * sparc-tdep.c (sparc_gdbarch_init): Update.
6327 * sh-tdep.c (sh_gdbarch_init): Update.
6328 * s390-tdep.c (s390_gdbarch_init): Update.
6329 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6330 * ns32k-tdep.c: Update.
6331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6332 * mips-tdep.c (mips_gdbarch_init): Update.
6333 * mcore-tdep.c (mcore_gdbarch_init): Update.
6334 * m68k-tdep.c (m68k_gdbarch_init): Update.
6335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6336 * ia64-tdep.c (ia64_gdbarch_init): Update.
6337 * hppa-tdep.c (hppa_gdbarch_init): Update.
6338 * h8300-tdep.c (h8300_gdbarch_init): Update.
6339 * frv-tdep.c (frv_gdbarch_init): Update.
6340 * cris-tdep.c (cris_gdbarch_init): Update.
6341 * avr-tdep.c (avr_gdbarch_init): Update.
6342 * alpha-tdep.c (alpha_gdbarch_init): Update.
6343 * arm-tdep.c (arm_gdbarch_init): Update.
6344
6345 2003-06-13 Andrew Cagney <cagney@redhat.com>
6346
6347 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6348 mips_o32_use_struct_convention with always_use_struct_convention.
6349
6350 2003-06-12 David Carlton <carlton@kealia.com>
6351
6352 * cp-namespace.c (cp_set_block_scope): Comment out
6353 processing_has_namespace_info branch.
6354
6355 2003-06-12 Jim Blandy <jimb@redhat.com>
6356
6357 Recognize and skip 64-bit PowerPC Linux linkage functions.
6358 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6359 insn_pattern, insns_match_pattern, d_field, ds_field): New
6360 functions, macros, and types for working with PPC instructions.
6361 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6362 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6363 ppc64_skip_trampoline_code): New functions, variables, and macros
6364 for recognizing and skipping linkage functions.
6365 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6366 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6367
6368 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6369 register offsets for both the 32- and 64-bit interfaces.
6370
6371 Actually finish the job started by my change of 2003-05-29.
6372 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6373 other #definition of this.
6374 (ppc_linux_skip_trampoline_code): Remove declaration.
6375 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6376 static.
6377 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6378 method for GDBARCH.
6379
6380 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6381 'long' on ppc64-*-linux*.
6382
6383 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6384 isn't #defined, assume the register doesn't exist: act as if
6385 tdep->ppc_mq_regnum were -1.
6386
6387 * configure.host, configure.tgt: Add entries for
6388 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6389 powerpc/linux.mt.
6390 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6391 New files.
6392
6393 * arch-utils.c (always_use_struct_convention): New function.
6394 * arch-utils.h (always_use_struct_convention): New prototype.
6395 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6396 (alpha_gdbarch_init): Register always_use_struct_convention,
6397 instead of alpha_use_struct_convention.
6398 * cris-tdep.c (cris_use_struct_convention): Delete.
6399 (cris_gdbarch_init): Register always_use_struct_convention,
6400 instead of cris_use_struct_convention.
6401 * frv-tdep.c (frv_use_struct_convention): Delete.
6402 (frv_gdbarch_init): Register always_use_struct_convention,
6403 instead of frv_use_struct_convention.
6404 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6405 (h8300_gdbarch_init): Register always_use_struct_convention,
6406 instead of h8300_use_struct_convention.
6407 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6408 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6409 instead of mips_o32_use_struct_convention.
6410
6411 2003-06-12 Andrew Cagney <cagney@redhat.com>
6412
6413 * wince.c: Include "mips-tdep.h".
6414 * mips-tdep.h (mips_next_pc): Declare.
6415 * mcore-tdep.c: Make more local functions static.
6416 * Makefile.in (wince.o): Update dependencies.
6417
6418 2003-06-12 David Carlton <carlton@kealia.com>
6419
6420 * symtab.c (lookup_symbol_aux_minsyms): Replace
6421 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6422 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6423 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6424 SYMBOL_NATURAL_NAME.
6425
6426 2003-06-12 Andreas Schwab <schwab@suse.de>
6427
6428 * Makefile.in (tuiDisassem.o): Update dependencies.
6429
6430 2003-06-12 David Carlton <carlton@bactrian.org>
6431
6432 * symtab.h: Delete declaration of make_symbol_overload_list.
6433 Add declaration of lookup_partial_symbol.
6434 * symtab.c (remove_params): Move to cp-support.c.
6435 (overload_list_add_symbol, make_symbol_overload_list)
6436 (sym_return_val_size, sym_return_val_index): Ditto.
6437 (lookup_partial_symbol): Make extern.
6438 * cp-support.h: Add declaration of make_symbol_overload_list.
6439 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6440 symtab.h, and block.h.
6441 (remove_params): Move here from symtab.c.
6442 (overload_list_add_symbol, make_symbol_overload_list)
6443 (sym_return_val_size, sym_return_val_index): Ditto.
6444 * valops.c: Include cp-support.h.
6445 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6446 frame_h, and block_h.
6447 (valops.o): Depend on cp_support_h.
6448
6449 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6450
6451 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6452 substitute by NUM_REGS throughout.
6453 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6454 (h8300s_register_name): New function for H8S registers.
6455 (h8300sx_register_name): Ditto for H8SX registers.
6456 (h8300_print_register): Revise register printing, avoid depending
6457 on 32 bit long.
6458 (h8300_register_byte): Only care for H8/300 registers.
6459 (h8300h_register_byte): New function for any other architecture.
6460 (h8300_register_raw_size): Remove.
6461 (h8300_register_virtual_type): Revise to return actually useful
6462 type.
6463 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6464 (h8300h_extract_struct_value_address): New function for any other
6465 architecture.
6466 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6467 set_gdbarch_register_name, set_gdbarch_register_byte,
6468 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6469 Remove calls to set_gdbarch_deprecated_register_size,
6470 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6471 set_gdbarch_deprecated_max_register_raw_size,
6472 set_gdbarch_register_virtual_size and
6473 set_gdbarch_deprecated_max_register_virtual_size entirely.
6474 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6475 set_gdbarch_long_double_bit.
6476
6477 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6478
6479 * doublest.c (convert_doublest_to_floatformat): When dealing
6480 with the implied integer bit, only alter mant_bits if we are
6481 processing a full 32 bits of mantissa.
6482
6483 2003-06-11 David Carlton <carlton@bactrian.org>
6484
6485 * dictionary.h: New.
6486 * dictionary.c: New.
6487 * block.h: Add opaque declaration for struct dictionary.
6488 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6489 'sym' members.
6490 (BLOCK_DICT): New macro.
6491 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6492 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6493 BLOCK_SHOULD_SORT.
6494 (ALL_BLOCK_SYMBOLS): Update definition.
6495 * Makefile.in (SFILES): Add dictionary.c.
6496 (dictionary_h): New.
6497 (COMMON_OBS): Add dictionary.o.
6498 (dictionary.o): New.
6499 (ada-lang.o): Depend on dictionary_h.
6500 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6501 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6502 (mi-cmd-stack.o): Ditto.
6503 (gdbtk-cmds.o): Update dependencies.
6504 (gdbtk-stack.o): Ditto.
6505 * ada-lang.c: Include dictionary.h.
6506 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6507 (fill_in_ada_prototype, debug_print_block): Ditto.
6508 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6509 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6510 'is_sorted'.
6511 * mdebugread.c: Include dictionary.h.
6512 (struct parse_stack): Delete 'maxsyms' member.
6513 (parse_symbol): Update calls to new_block. Delete calls to
6514 shrink_block. Use dictionary methods.
6515 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6516 Update calls to new_symtab. Don't maintain maxsyms data.
6517 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6518 (add_symbol): Just call dict_add_symbol.
6519 (new_symtab): Delete 'maxsyms' argument.
6520 (new_symtab): Update calls to new_block.
6521 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6522 (shrink_block): Delete function.
6523 (fixup_sigtramp): Update call to new_block. Add symbol via
6524 dict_add_symbol.
6525 * jv-lang.c: Include dictionary.h.
6526 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6527 appropriately. Set class_symtab->free_func. Make sure the
6528 blockvector is big enough to hold two blocks.
6529 (add_class_symtab_symbol): Use dictionary methods.
6530 (free_class_block): New function.
6531 (type_from_class): Replace explicit iteration by
6532 ALL_BLOCK_SYMBOLS.
6533 * symtab.h (struct symtab): Replace 'free_ptr' method by
6534 'free_func'.
6535 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6536 sort_symtab_syms.
6537 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6538 sort_symtab_syms.
6539 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6540 Include dictionary.h.
6541 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6542 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6543 sort_symtab_syms.
6544 * objfiles.c: Include dictionary.h.
6545 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6546 * buildsym.c: Include dictionary.h.
6547 (finish_block): Use dictionary methods.
6548 (end_symtab): Set free_func to NULL, not free_ptr.
6549 * tracepoint.c: Include dictionary.h.
6550 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6551 (scope_info): Ditto.
6552 * stack.c: Include dictionary.h.
6553 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6554 (print_block_frame_labels, print_frame_arg_vars)
6555 (print_frame_args): Ditto.
6556 * symmisc.c (free_symtab_block): Use dictionary methods.
6557 (dump_symtab): Ditto.
6558 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6559 Include dictionary.h.
6560 * symfile.h: Delete declarations of sort_block_syms,
6561 sort_symtab_syms.
6562 * symfile.c (sort_block_syms): Delete.
6563 (sort_symtab_syms): Delete.
6564 * symtab.c: Include dictionary.h.
6565 (lookup_block_symbol): Use dictionary iterators.
6566 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6567 (search_symbols, make_symbol_completion_list): Ditto.
6568 (make_symbol_overload_list): Ditto.
6569 * valops.c (value_of_local): Use dict_empty.
6570 Include dictionary.h.
6571
6572 2003-06-11 J. Brobecker <brobecker@gnat.com>
6573
6574 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6575
6576 2003-06-11 David Carlton <carlton@bactrian.org>
6577
6578 * block.h (BLOCK_SHOULD_SORT): Delete.
6579 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6580 blocks.
6581 * ada-lang.c (ada_add_block_symbols): Ditto.
6582 * symfile.c (sort_block_syms): Delete.
6583 (sort_symtab_syms): Ditto.
6584 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6585 declarations.
6586 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6587 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6588 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6589 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6590 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6591 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6592 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6593
6594 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6595
6596 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6597 bits to 128.
6598
6599 2003-06-11 Andrew Cagney <cagney@redhat.com>
6600
6601 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6602 REGISTER_CONVERTIBLE.
6603 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6604 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6605 * gdbarch.h, gdbarch.c: Re-generate.
6606 * arch-utils.h (deprecated_register_convertible_not): Rename
6607 generic_register_convertible_not.
6608 * arch-utils.c (deprecated_register_convertible_not): Rename
6609 generic_register_convertible.
6610 (legacy_convert_register_p, legacy_register_to_value): Update.
6611 * sh-tdep.c (sh64_push_arguments): Update.
6612 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6613 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6614 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6615 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6616 * arch-utils.c (legacy_value_to_register): Update.
6617 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6618 (rs6000_register_convert_to_raw): Make parameter "from" const.
6619 * mips-tdep.c (mips_gdbarch_init): Update.
6620 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6621 * infcmd.c (default_print_registers_info): Update.
6622 * ia64-tdep.c (ia64_gdbarch_init): Update.
6623 (ia64_register_convert_to_raw): Make parameter "from" const.
6624 * i386-tdep.c (i386_gdbarch_init): Update.
6625 (i386_register_convert_to_raw): Update.
6626
6627 2003-06-11 Andrew Cagney <cagney@redhat.com>
6628
6629 * remote-fileio.c: Include "remote-fileio.h".
6630 * Makefile.in (remote-fileio.o): Update dependencies.
6631 (remote_fileio_h): Fix typo.
6632
6633 2003-06-11 Andrew Cagney <cagney@redhat.com>
6634
6635 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6636 (xstormy16_save_dummy_frame_tos): Make static.
6637 (_initialize_xstormy16_tdep): Add declaration.
6638 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6639 * v850-tdep.c: Make local functions static.
6640 (_initialize_v850_tdep): Add declaration.
6641 * sparc-tdep.c: Make local functions static.
6642 (_initialize_sparc_tdep): Add declaration.
6643 * sh-tdep.c: Make local functions static.
6644 (_initialize_sh_tdep): Add declaration.
6645 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6646 * s390-tdep.c: Make local functions static.
6647 (_initialize_s390_tdep): Add declaration.
6648 * dbxread.c (find_stab_function_addr): Make static.
6649 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6650 * ocd.c (_initialize_remote_ocd): Add declaration.
6651 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6652 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6653 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6654 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6655 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6656 * remote-array.c (_initialize_array): Add declaration.
6657 (_initialize_remote_monitors): Add declaration.
6658 * remote-mips.c: Make local functions static.
6659 (_initialize_remote_mips): Add declaration.
6660 * mcore-tdep.c: Make all local functions static.
6661 (_initialize_mcore_tdep): Add declaration.
6662 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6663 * abug-rom.c (_initialize_abug_rom): Add declaration.
6664 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6665 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6666 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6667 * remote-est.c (_initialize_est): Add declaration.
6668 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6669 (m68hc11_call_dummy_address): Make static.
6670 * ia64-tdep.c: Make local functions static.
6671 (_initialize_ia64_tdep): Add declaration.
6672 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6673 * monitor.c (monitor_wait_filter): Make static.
6674 (_initialize_remote_monitors): Add declaration.
6675 * remote-hms.c (_initialize_remote_hms): Add declaration.
6676 * remote-e7000.c (fetch_regs_from_dump): Make static.
6677 (expect_n): Make static.
6678 (_initialize_remote_e7000): Add declaration.
6679 * ser-e7kpc.c: Always include "defs.h".
6680 (_initialize_ser_e7000pc): Add declaration.
6681 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6682 * cris-tdep.c: Make all but one function static.
6683 (_initialize_cris_tdep): Add declaration.
6684 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6685 * solib.c (update_solib_list): Make static.
6686 (_initialize_solib): Add declaration.
6687 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6688 (_initialize_avr_tdep): Add declaration.
6689 * remote-rdi.c (voiddummy): Make static.
6690 (_initialize_remote_rdi): Add declaration.
6691 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6692 * remote-rdp.c (send_rdp): Make static.
6693 (_initialize_remote_rdp): Add declaration.
6694 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6695
6696 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6697
6698 * remote-fileio.c: Make ari happy.
6699
6700 2003-06-10 J. Brobecker <brobecker@gnat.com>
6701
6702 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6703 fetching the trailing bytes of the buffer we are about to write.
6704
6705 2003-06-10 Andrew Cagney <cagney@redhat.com>
6706
6707 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6708 * Makefile.in (remote-fileio.o): Update dependencies.
6709 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6710 include <setjmp.h>, or <sys/types.h> conditional on USG.
6711 (remote_fio_jmp_buf): Delete global variable.
6712
6713 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6714 Martin M. Hunt <hunt@redhat.com>
6715
6716 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6717 (SFILES): Add remote-fileio.c.
6718 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6719 dependencies for building remote.o.
6720 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6721 * remote-fileio.h: New header file defining remote File-I/O interface.
6722 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6723 static storage class.
6724 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6725 'F' packet.
6726 (_initialize_remote): Call initialize_remote_fileio().
6727 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6728 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6729 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6730 (captured_main): Initialize new ui_files.
6731 * ui-file.c: Add read and fgets input functions.
6732 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6733 (null_file_read): New function.
6734 (ui_file_read): New function.
6735 (set_ui_file_read): New function.
6736 (stdio_file_read): New function.
6737 * ui-file.h: New type ui_file_read_ftype.
6738 (set_ui_file_read): Declare.
6739 (ui_file_read): Declare.
6740
6741 2003-06-09 Andrew Cagney <cagney@redhat.com>
6742
6743 * frame.h (deprecated_unwind_get_saved_register): Rename
6744 generic_unwind_get_saved_register, update comments.
6745 * mips-tdep.c (mips_get_saved_register): Update.
6746 * frame.c (deprecated_unwind_get_saved_register): Update.
6747
6748 2003-06-09 Andrew Cagney <cagney@redhat.com>
6749
6750 * vax-tdep.c (vax_frame_locals_address): Delete function.
6751 (vax_gdbarch_init): Do not set frame_locals_address.
6752 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6753 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6754 * s390-tdep.c (s390_frame_args_address): Delete function.
6755 (s390_gdbarch_init): Do not set frame_args_address or
6756 frame_locals_address.
6757 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6758 (ns32k_gdbarch_init): Do not set frame_locals_address.
6759 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6760 (hppa_frame_locals_address): Delete function.
6761 (hppa_gdbarch_init): Do not set frame_args_address, or
6762 frame_locals_address.
6763 * arm-tdep.c (arm_frame_args_address): Delete.
6764 (arm_frame_locals_address): Delete.
6765 (arm_gdbarch_init): Do not set frame_args_address, or
6766 frame_locals_address.
6767
6768 2003-06-09 Andrew Cagney <cagney@redhat.com>
6769
6770 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6771 * gdbarch.h, gdbarch.c: Re-generate.
6772 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6773 * arch-utils.c (frame_num_args_unknown): Delete function.
6774 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6775 (frame_info): Use FRAME_NUM_ARGS_P.
6776 * arm-tdep.c (arm_frame_num_args): Delete function.
6777 (arm_gdbarch_init): Do not set frame_num_args.
6778 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6779 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6780 (hppa_gdbarch_init): Do not set frame_num_args.
6781 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6783 frame_num_args to default frame_num_args_unknown.
6784 * v850-tdep.c (v850_gdbarch_init): Ditto.
6785 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6786 * sh-tdep.c (sh_gdbarch_init): Ditto.
6787 * s390-tdep.c (s390_gdbarch_init): Ditto.
6788 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6789 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6790 * mips-tdep.c (mips_gdbarch_init): Ditto.
6791 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6792 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6794 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6795 * i386-tdep.c (i386_gdbarch_init): Ditto.
6796 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6797 * frv-tdep.c (frv_gdbarch_init): Ditto.
6798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6799 * cris-tdep.c (cris_gdbarch_init): Ditto.
6800 * avr-tdep.c (avr_gdbarch_init): Ditto.
6801 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6802
6803 2003-06-09 Andrew Cagney <cagney@redhat.com>
6804
6805 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6806 (print_frame_args): Moved to "stack.c".
6807 * stack.c: Include "gdb_assert.h".
6808 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6809 (print_frame_args): Moved from "printcmd.c".
6810 * frame.h (print_frame_args): Delete declaration.
6811 * Makefile.in (stack.o): Update dependencies.
6812
6813 2003-06-08 Andrew Cagney <cagney@redhat.com>
6814
6815 * frame.c (get_prev_frame): Remove reference to
6816 frame_args_address_correct in comments.
6817 * frame-base.c (default_frame_args_address): Delete code
6818 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6819 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6820 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6821 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6822 (vax_frame_args_address_correct): Delete declaration.
6823
6824 2003-06-08 Andrew Cagney <cagney@redhat.com>
6825
6826 * gdbarch.sh (UNWIND_SP): Add.
6827 * gdbarch.h, gdbarch.c: Re-generate.
6828 * frame.c (frame_sp_unwind): New function.
6829 (get_frame_sp): New function.
6830 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6831 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6832 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6833 value.
6834 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6835 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6836
6837 2003-06-08 Andrew Cagney <cagney@redhat.com>
6838
6839 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6840 REMOTE_BREAKPOINT.
6841 * remote.c: Update.
6842 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6843 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6844 * config/m68k/tm-sun3.h: Update.
6845 * config/m68k/tm-m68klynx.h: Update.
6846 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6847
6848 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6849 trad_frame". Update comments.
6850 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6851 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6852 (trad_frame_register_value, trad_frame_prev_register): Update.
6853
6854 2003-06-08 Andrew Cagney <cagney@redhat.com>
6855
6856 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6857 from GCC's acinclude.m4.
6858 * configure.in: Check for getopt's delcaration.
6859 * aclocal.m4, config.in, configure: Re-generate.
6860 * main.c (error_init): Delete declaration.
6861 * defs.h (error_init): Declare.
6862 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6863 (rs6000_convert_from_func_ptr_addr): Make static.
6864 (_initialize_rs6000_tdep): Add declaration.
6865 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6866 (show_commands, set_verbose, show_history): Delete declaration.
6867 * top.h (set_verbose): Add declaration.
6868 (show_history, set_history, show_commands): Add declaration.
6869 (do_restore_instream_cleanup): Add declaration.
6870 * objc-lang.c (specialcmp): Make static.
6871 (print_object_command): Make static.
6872 (find_objc_msgsend): Make static.
6873 (find_objc_msgcall_submethod_helper): Make static.
6874 (find_objc_msgcall_submethod): Make static.
6875 (_initialize_objc_language): Add declaration.
6876 (find_implementation_from_class): Make static.
6877 (find_implementation): Make static.
6878 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6879 * objc-lang.h (lookup_struct_typedef): Add declaration.
6880 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6881 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6882 (do_restore_user_call_depth): Make static.
6883 (do_restore_instream_cleanup): Delete declaration.
6884 (dont_repeat): Delete declaration.
6885 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6886 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6887 * reggroups.c (_initialize_reggroup): Add declaration.
6888 * cp-support.c (_initialize_cp_support): Add declaration.
6889 * cp-abi.c (_initialize_cp_abi): Add declaration.
6890 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6891 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6892 (_initialize_gnu_v3_abi): Add declaration.
6893 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6894 (_initialize_gnu_v2_abi): Add declaration.
6895 * frame-base.c (_initialize_frame_base): Add declaration.
6896 * doublest.c (floatformat_from_length): Make static.
6897 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6898 * frame.c (create_sentinel_frame): Make static.
6899 (_initialize_frame): Add declaration.
6900 * top.c (do_catch_errors): Make static.
6901 (gdb_rl_operate_and_get_next_completion): Make static.
6902 * typeprint.c: Include "typeprint.h".
6903 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6904 (sentinel_frame_this_id): Make static.
6905 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6906 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6907 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6908 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6909 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6910 * maint.c (maintenance_print_architecture): Make static.
6911 * signals/signals.c (_initialize_signals): Add declaration.
6912 * std-regs.c (_initialize_frame_reg): Add declaration.
6913 * jv-exp.y (push_variable): ISO C definition.
6914 (push_qualified_expression_name): Ditto.
6915 * memattr.c (_initialize_mem): Add declaration.
6916 * remote.c (remote_check_watch_resources): Make static.
6917 (remote_stopped_by_watchpoint): Make static.
6918 (remote_stopped_data_address): Make static.
6919 * d10v-tdep.c (nr_dmap_regs): Make static.
6920 (a0_regnum): Make static.
6921 (d10v_frame_unwind_cache): Make static.
6922 (d10v_frame_p): Make static.
6923 * osabi.c (show_osabi): Make static.
6924 (_initialize_gdb_osabi): Add extern declaration.
6925 * gdbtypes.c (make_qualified_type): Make static.
6926 (safe_parse_type): Make static.
6927 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6928 * macrotab.c (macro_bcache_free): Make static.
6929 * interps.c (interp_set_quiet): Make static.
6930 (interpreter_exec_cmd): Make static.
6931 * stack.h (select_frame_command): New file.
6932 * stack.c: Include "stack.h".
6933 (select_frame_command_wrapper): Delete function.
6934 (select_frame_command): Make global.
6935 * infcall.c: Include "infcall.h".
6936 * linespec.c: Include "linespec.h".
6937 * symfile.c (sections_overlap): Make static.
6938 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6939 * charset.c (_initialize_charset): Add missing prototype.
6940 * regcache.c (init_legacy_regcache_descr): Make static.
6941 (do_regcache_xfree): Make static.
6942 (regcache_xfer_part): Make static.
6943 (_initialize_regcache): Add missing prototype.
6944 * breakpoint.c (parse_breakpoint_sals): Make static.
6945 (breakpoint_sals_to_pc): Make static.
6946 * interps.h (clear_interpreter_hooks): ISO C declaration.
6947 * Makefile.in (stack_h): Define.
6948 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6949 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6950
6951 2003-06-08 Andrew Cagney <cagney@redhat.com>
6952
6953 * Makefile.in (d10v-tdep.o): Update dependencies.
6954 (SFILES): Add trad-frame.c.
6955 (trad_frame_h): Define.
6956 (COMMON_OBS): Add trad-frame.o.
6957 (trad-frame.o): Specify dependencies.
6958 * d10v-tdep.c: Include "trad-frame.h".
6959 (saved_regs_unwinder): Delete function.
6960 (d10v_frame_prev_register): Use trad_frame_prev_register.
6961 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6962 trad_frame", delete "regs" and "prev_sp".
6963 (prologue_find_regs): Use trad-frame.
6964 * trad-frame.h, trad-frame.c: New files.
6965
6966 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6967
6968 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6969
6970 2003-06-07 Adam Fedor <fedor@gnu.org>
6971
6972 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6973 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6974 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6975 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6976 resolve_msgsend_super, resolve_msgsend_super_stret):
6977 Use it.
6978
6979 2003-06-07 Andrew Cagney <cagney@redhat.com>
6980
6981 * symfile.h: Re-indent, clean up comments.
6982
6983 2003-06-07 Andrew Cagney <cagney@redhat.com>
6984
6985 * inferior.h (deprecated_write_sp): Replace
6986 generic_target_write_sp.
6987 * regcache.c (deprecated_write_sp): Replace
6988 generic_target_write_sp.
6989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6990 * vax-tdep.c (vax_gdbarch_init): Update.
6991 * v850-tdep.c (v850_gdbarch_init): Update.
6992 * sparc-tdep.c (sparc_gdbarch_init): Update.
6993 * sh-tdep.c (sh_gdbarch_init): Update.
6994 * s390-tdep.c (s390_gdbarch_init): Update.
6995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6996 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6997 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6998 * mcore-tdep.c (mcore_gdbarch_init): Update.
6999 * m68k-tdep.c (m68k_gdbarch_init): Update.
7000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7001 * ia64-tdep.c (ia64_gdbarch_init): Update.
7002 * h8300-tdep.c (h8300_gdbarch_init): Update.
7003 * frv-tdep.c (frv_gdbarch_init): Update.
7004 * cris-tdep.c (cris_gdbarch_init): Update.
7005 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7006
7007 2003-06-07 Andrew Cagney <cagney@redhat.com>
7008
7009 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7010 Assert that PC_REGNUM is valid.
7011 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7012
7013 2003-06-07 Andrew Cagney <cagney@redhat.com>
7014
7015 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7016 * gdbarch.h, gdbarch.c: Regenerate.
7017 * mn10300-tdep.c: Include "gdb_assert.h".
7018 (mn10300_read_fp): New function.
7019 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7020 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7021 * ia64-tdep.c: Include "gdb_assert.h".
7022 (ia64_read_fp): New function.
7023 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7024 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7025 * regcache.c (generic_target_read_sp): Delete function.
7026 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7027 * inferior.h (generic_target_read_sp): Delete declaration.
7028 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7029 generic_target_read_sp.
7030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7031 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7032 * sh-tdep.c (sh_gdbarch_init): Ditto.
7033 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7034 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7035
7036 2003-06-07 Andrew Cagney <cagney@redhat.com>
7037
7038 * gdbarch.sh: Comment each field of startup_gdbarch.
7039 * gdbarch.h, gdbarch.c: Re-generate.
7040
7041 2003-06-07 Andrew Cagney <cagney@redhat.com>
7042
7043 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7044 * gdbarch.h, gdbarch.c: Re-generate.
7045 * regcache.c: Update comments on read_pc et.al.
7046 (generic_target_read_pc): Delete function.
7047 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7048 * inferior.h (generic_target_read_pc): Delete declaration.
7049 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7050 generic_target_read_pc.
7051 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7052 * sh-tdep.c (sh_gdbarch_init): Ditto.
7053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7055
7056 2003-06-07 Andrew Cagney <cagney@redhat.com>
7057
7058 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7059 "index" with "special_local_sect". Use strcmp instead of STREQ.
7060 Append period to coments.
7061
7062 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7063
7064 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7065 (elfstab_offset_sections): Likewise.
7066 * gdb-stabs.h (stab_section_info): Likewise.
7067 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7068 * objfiles.c (objfile_relocate): Likewise.
7069 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7070 * remote.c (get_offsets): Likewise.
7071 (remote_cisco_objfile_relocate): Likewise.
7072 * somread.c (som_symfile_offsets): Likewise.
7073 * symfile.c (alloc_section_addr_info): New function.
7074 (build_section_addr_info_from_section_tab): Use it.
7075 (free_section_addr_info): Adjust.
7076 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7077 (syms_from_objfile): Allocate local_addr dynamically.
7078 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7079 dynamically.
7080 (add_symbol_file_command): Allocate sect_opts dynamically.
7081 (reread_symbols): Avoid use of SECT_OFF_MAX.
7082 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7083 (alloc_section_addr_info): Declare it.
7084 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7085 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7086 dynamically.
7087 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7088
7089 2003-06-06 Andrew Cagney <cagney@redhat.com>
7090
7091 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7092 (d10v_frame_unwind_cache): Do not set "return_pc".
7093
7094 2003-06-06 Michael Snyder <msnyder@redhat.com>
7095
7096 * h8300-tdep.c: Make tidy (long lines).
7097
7098 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7099
7100 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7101 to regcache_collect().
7102
7103 2003-06-05 J. Brobecker <brobecker@gnat.com>
7104
7105 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7106 pc_in_sigtramp multiarch method.
7107 (hppa_hpux_som_init_abi): Use it.
7108 (hppa_hpux_elf_init_abi): Likewise.
7109 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7110 macro has been multiarched.
7111 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7112 macro here, as hppa64 isn't multiarched yet.
7113
7114 2003-06-05 Andrew Cagney <cagney@redhat.com>
7115
7116 * Makefile.in (value_h): Add $(frame_h).
7117 * value.h: Include "frame.h".
7118 (struct value): Replace "frame_addr" with "frame_id".
7119 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7120 * values.c (allocate_value): Use VALUE_FRAME_ID.
7121 (value_copy): Use VALUE_FRAME_ID.
7122 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7123 * valops.c (value_assign): Update. Use frame_find_by_id.
7124
7125 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7126
7127 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7128 in each pass.
7129
7130 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7131
7132 * thread-db.c (check_event): For create/death event breakpoints,
7133 loop through all messages to ensure that we read the message
7134 corresponding to the breakpoint we are at.
7135
7136 2003-06-04 Michael Snyder <msnyder@redhat.com>
7137
7138 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7139
7140 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7141
7142 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7143 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7144 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7145 when handling .eh_frame sections.
7146
7147 2003-06-04 J. Brobecker <brobecker@gnat.com>
7148
7149 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7150 prepare_to_proceed procedure instead of the hppa-specific one.
7151 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7152
7153 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7154
7155 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7156 * config.in: Regenerated.
7157 * configure.in: Add test for syscall function and check for
7158 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7159 * configure: Regenerated.
7160 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7161 <sys/syscall.h>.
7162 (kill_lwp): New function that uses tkill syscall or
7163 uses kill, depending on whether threading model is nptl or not.
7164 All callers of kill() changed to use kill_lwp().
7165 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7166 see if all threads have already exited in the nptl model.
7167 (stop_and_resume_callback): New callback function used by the
7168 lin_lwp_wait thread exit handling code.
7169 (stop_wait_callback): Check for threads already having exited and
7170 delete such threads fromt the lwp list when discovered.
7171 (stop_callback): Don't assert retcode of kill call.
7172
7173 Roland McGrath <roland@redhat.com>
7174 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7175 nptl libthread_db.
7176
7177 2003-06-03 Richard Henderson <rth@redhat.com>
7178
7179 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7180 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7181 (alpha_sigtramp_frame_prev_register): Likewise.
7182 (alpha_heuristic_frame_prev_register): Likewise.
7183 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7184
7185 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7186 alpha-specific register id names.
7187 (alpha_mdebug_frame_unwind_cache): Likewise.
7188 (alpha_mdebug_frame_prev_register): Likewise.
7189
7190 2003-06-03 Richard Henderson <rth@redhat.com>
7191
7192 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7193 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7194 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7195 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7196 unwind routines.
7197 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7198 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7199 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7200
7201 * alpha-linux-tdep.c: Remove unnecessary includes.
7202 * Makefile.in (alpha-linux-tdep.o): Update.
7203
7204 2003-06-03 Richard Henderson <rth@redhat.com>
7205
7206 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7207 (alphabsd_fill_fpreg): Likewise.
7208
7209 2003-06-03 J. Brobecker <brobecker@gnat.com>
7210
7211 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7212 references to struct frame_info fields by calls to the equivalent
7213 accessors. Necessary now that frame_info is opaque.
7214
7215 2003-06-03 J. Brobecker <brobecker@gnat.com>
7216
7217 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7218 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7219 structure, field no longer exists.
7220
7221 2003-06-03 J. Brobecker <brobecker@gnat.com>
7222
7223 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7224 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7225
7226 2003-06-03 J. Brobecker <brobecker@gnat.com>
7227
7228 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7229 references to struct frame_info fields by calls to the equivalent
7230 accessors. Necessary now that frame_info is opaque.
7231
7232 2003-06-03 J. Brobecker <brobecker@gnat.com>
7233
7234 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7235 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7236 structure, field no longer exists.
7237
7238 2003-06-03 Theodore A. Roth <troth@openavr.org>
7239
7240 * remote.c (init_remote_state): Compute sizeof_g_packet by
7241 accumulation of the size of all registers instead of blindly using
7242 DEPRECATED_REGISTER_BYTES.
7243
7244 2003-06-03 Michael Snyder <msnyder@redhat.com>
7245
7246 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7247 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7248 for h8300sx.
7249
7250 2003-06-03 J. Brobecker <brobecker@gnat.com>
7251
7252 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7253 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7254
7255 2003-06-03 Andrew Cagney <cagney@redhat.com>
7256
7257 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7258 (sparc_convert_to_raw): Delete function.
7259 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7260 register_convert_to_virtual.
7261
7262 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7263
7264 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7265 layer if not dealing with a statically-linked threaded program.
7266
7267 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7268
7269 * solib.c (solib_open): Update comment to reflect actual search order.
7270
7271 2003-06-03 Andrew Cagney <cagney@redhat.com>
7272
7273 * frame.c (get_frame_memory_signed): New function.
7274 (get_frame_memory, get_frame_memory_unsigned): New function.
7275 (get_frame_arch): New function.
7276 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7277 (get_frame_memory, get_frame_unsigned_memory): Declare.
7278 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7279 get_frame_memory_unsigned and get_frame_arch.
7280 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7281
7282 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7283
7284 * MAINTAINERS (write after approval): Add myself.
7285
7286 2003-06-03 Jim Blandy <jimb@redhat.com>
7287
7288 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7289 elements of gregset_t are 64 bits each, but access registers
7290 are still 32 bits, so they're packed two per gregset_t
7291 element. Unpack/pack them properly.
7292
7293 2003-06-02 David Carlton <carlton@bactrian.org>
7294
7295 * linespec.c (find_methods): Break out code into
7296 add_matching_methods and add_constructors.
7297 (add_matching_methods): New.
7298 (add_constructors): Ditto.
7299
7300 2003-06-02 Andrew Cagney <cagney@redhat.com>
7301
7302 * sparc-tdep.c (sparc_print_registers): Delete call to
7303 REGISTER_CONVERTIBLE.
7304 (sparc_gdbarch_init): Do not set register_convertible.
7305 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7306 * frv-tdep.c (frv_gdbarch_init): Ditto.
7307 * cris-tdep.c (cris_gdbarch_init): Ditto.
7308
7309 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7310
7311 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7312 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7313 (syms_from_objfile): Ditto.
7314
7315 2003-06-03 Andreas Schwab <schwab@suse.de>
7316
7317 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7318 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7319
7320 2003-06-02 Richard Henderson <rth@redhat.com>
7321
7322 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7323 a member of all_reggroup.
7324
7325 2003-06-02 Richard Henderson <rth@redhat.com>
7326
7327 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7328 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7329 (alpha_lds, alpha_sts): New.
7330 (alpha_convert_register_p): Change from _register_convertible.
7331 (alpha_register_to_value): Change from _convert_to_virtual;
7332 restructure and fail for type sizes other than 4 or 8.
7333 (alpha_value_to_register): Similarly.
7334 (alpha_extract_return_value): Use alpha_sts.
7335 (alpha_store_return_value): Use alpha_lds.
7336 (alpha_gdbarch_init): Update hooks.
7337
7338 2003-06-02 Richard Henderson <rth@redhat.com>
7339
7340 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7341 regnum identifiers.
7342 (alpha_sigtramp_register_address): Likewise.
7343
7344 2003-06-02 Richard Henderson <rth@redhat.com>
7345
7346 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7347 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7348 * alpha-tdep.h: Declare them.
7349
7350 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7351 Remove zerobuf. Don't error on UNIQUE.
7352 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7353 (ALPHA_REGSET_UNIQUE): Provide default.
7354 (supply_gregset): Use alpha_supply_int_regs.
7355 (fill_gregset): Use alpha_fill_int_regs.
7356 (supply_fpregset): Use alpha_supply_fp_regs.
7357 (fill_fpregset): Use alpha_fill_fp_regs.
7358 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7359 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7360 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7361 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7362 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7363 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7364
7365 2003-06-02 Richard Henderson <rth@redhat.com>
7366
7367 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7368
7369 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7370 (alpha_store_return_value): Likewise.
7371
7372 2003-06-02 David Carlton <carlton@math.stanford.edu>
7373
7374 * block.c (contained_in): Add 'const' to arguments.
7375 (block_function): Ditto.
7376 * block.h: Update declarations for block_function and
7377 contained_in.
7378
7379 2003-06-02 David Carlton <carlton@math.stanford.edu>
7380
7381 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7382 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7383 * p-valprint.c (pascal_val_print): Ditto.
7384 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7385
7386 2003-06-02 Richard Henderson <rth@redhat.com>
7387
7388 * alpha-tdep.c (alpha_push_dummy_call): Use
7389 builtin_type_ieee_double_little instead of builtin_type_double.
7390
7391 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7392 sign-extension of 32-bit values.
7393 (alpha_store_return_value): Similarly.
7394
7395 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7396 (alpha_extract_return_value): Likewise.
7397 (alpha_store_return_value): Likewise.
7398
7399 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7400 (alpha_store_return_value): Error on IEEE Quad floats.
7401
7402 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7403 (alpha_extract_struct_value_address): Likewise.
7404 (alpha_store_return_value): Likewise.
7405 (alpha_store_struct_return): Remove.
7406 (alpha_gdbarch_init): Update hook registration to match.
7407
7408 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7409 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7410 macros where appropriate.
7411 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7412 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7413
7414 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7415 for SP, GP; void_func_ptr for PC; non-language-specific types
7416 for all others.
7417 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7418
7419 2003-06-02 Richard Henderson <rth@redhat.com>
7420
7421 * top.h (lim_at_start): Declare.
7422 * main.c (captured_main): Set it.
7423 * top.c (lim_at_start): Define.
7424 (command_loop): Use it instead of &environ.
7425 * event-top.c (command_handler): Likewise.
7426
7427 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7428
7429 * mipsnbsd-tdep.c: Update copyright years.
7430 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7431
7432 2003-06-01 Richard Henderson <rth@redhat.com>
7433
7434 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7435 (alpha-linux-tdep.o): Update dependencies.
7436 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7437 * alpha-mdebug-tdep.c: Remove unneeded includes.
7438
7439 2003-06-01 Richard Henderson <rth@redhat.com>
7440
7441 * alpha-tdep.c (alpha_register_reggroup_p): New.
7442 (alpha_gdbarch_init): Register it.
7443
7444 2003-06-02 Andrew Cagney <cagney@redhat.com>
7445
7446 * dwarfread.c: Eliminate "register"
7447 (decode_die_type): Eliminate assignment within "if".
7448 (struct_type, decode_array_element_type): Ditto.
7449 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7450 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7451 (decode_modified_type, completedieinfo): Ditto.
7452 * block.c: Eliminate "register".
7453 (blockvector_for_pc_sect): Eliminate assignment within "if".
7454 * cp-support.h (struct symbol): Opaque declaration.
7455 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7456
7457 2003-06-01 Richard Henderson <rth@redhat.com>
7458
7459 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7460 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7461
7462 2003-06-01 Adam Fedor <fedor@gnu.org>
7463
7464 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7465 * gdbarch.[ch]: Regenerate.
7466 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7467 (hppa_gdbarch_init): Set it in the gdbarch vector.
7468 * i386-tdep.c (i386_fetch_pointer_argument): New
7469 (i386_gdbarch_init): Set it into gdbarch.
7470 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7471 (rs6000_gdbarch_init): Set it in gdbarch.
7472 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7473 (sparc_gdbarch_init): Set it in gdbarch.
7474
7475 2003-06-01 Andrew Cagney <cagney@redhat.com>
7476
7477 * defs.h (extract_address): Delete declaration.
7478 * findvar.c (extract_address): Delete function.
7479 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7480 extract_address with the inline equivalent,
7481 extract_unsigned_integer.
7482 (xstormy16_extract_struct_value_address): Ditto.
7483 (xstormy16_pointer_to_address): Ditto.
7484 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7485 * v850-tdep.c (v850_push_arguments): Ditto.
7486 (v850_extract_return_value): Ditto.
7487 (v850_extract_struct_value_address): Ditto.
7488 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7489 (sparcnbsd_get_longjmp_target_64): Ditto.
7490 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7491 (get_longjmp_target): Ditto.
7492 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7493 (sh64_extract_struct_value_address): Ditto.
7494 (sh_push_arguments): Ditto.
7495 (sh64_push_arguments): Ditto.
7496 * remote-vxsparc.c (vx_read_register): Ditto.
7497 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7498 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7499 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7500 * mipsv4-nat.c (get_longjmp_target): Ditto.
7501 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7502 * mips-nat.c (get_longjmp_target): Ditto.
7503 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7504 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7505 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7506 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7507 * irix5-nat.c (get_longjmp_target): Ditto.
7508 * irix4-nat.c (get_longjmp_target): Ditto.
7509 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7510 (ia64_push_arguments): Ditto.
7511 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7512 * h8300-tdep.c (h8300_push_arguments): Ditto.
7513 (h8300_store_return_value): Ditto.
7514 (h8300_extract_struct_value_address): Ditto.
7515 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7516 (frv_push_arguments): Ditto.
7517 * avr-tdep.c (avr_pointer_to_address): Ditto.
7518 (avr_push_arguments): Ditto.
7519 * arm-tdep.c (arm_push_dummy_call): Ditto.
7520 (arm_get_longjmp_target): Ditto.
7521 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7522 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7523 (alpha_get_longjmp_target): Ditto.
7524
7525 * solib-irix.c (extract_mips_address): Inline extract_address,
7526 replacing it with extract_signed_integer.
7527 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7528 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7529 (first_link_map_member, open_symbol_file_object): Ditto.
7530 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7531 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7532 (LM_NEXT, LM_NAME): Ditto.
7533
7534 2003-06-01 Richard Henderson <rth@redhat.com>
7535
7536 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7537 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7538 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7539 (alpha_cannot_store_register): Likewise.
7540 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7541 * alpha-nat.c (supply_gregset): Likewise.
7542 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7543
7544 2003-06-01 Andrew Cagney <cagney@redhat.com>
7545
7546 * infcall.c (call_function_by_hand): Update comment on
7547 DEPRECATED_DUMMY_WRITE_SP.
7548
7549 * mips-tdep.c (mips_gdbarch_init): Do not set
7550 deprecated_dummy_write_sp.
7551 (mips_eabi_push_dummy_call): Set the SP register.
7552 (mips_o64_push_dummy_call): Set the SP register.
7553 (mips_o32_push_dummy_call): Set the SP register.
7554 (mips_n32n64_push_dummy_call): Set the SP register.
7555
7556 2003-06-01 Richard Henderson <rth@redhat.com>
7557
7558 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7559 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7560 (supply_gregset): Likewise.
7561 * alpha-tdep.c (alpha_store_return_value): Likewise.
7562 (alpha_get_longjmp_target): Likewise.
7563 (alpha_register_name): Constify array.
7564 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7565 deprecated_register_size, deprecated_register_bytes,
7566 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7567 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7568 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7569
7570 2003-06-01 Richard Henderson <rth@redhat.com>
7571
7572 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7573 from arg_reg_buffer to regcache to avoid double conversion.
7574
7575 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7576
7577 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7578 SP_REGNUM.
7579 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7580 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7581
7582 2003-06-01 Richard Henderson <rth@redhat.com>
7583
7584 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7585 (decode_frame_entry): Set it. Skip FDE augmentation.
7586
7587 2003-06-01 Richard Henderson <rth@redhat.com>
7588
7589 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7590 not overlapping PC_REGNUM.
7591
7592 2003-06-01 Richard Henderson <rth@redhat.com>
7593
7594 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7595 alpha_push_arguments. Don't dump argument register data to
7596 the target stack. Fix float and 128-bit long double semantics.
7597 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7598 (alpha_fix_call_dummy): Remove.
7599 (alpha_call_dummy_words): Remove.
7600 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7601
7602 2003-06-01 Richard Henderson <rth@redhat.com>
7603
7604 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7605
7606 2003-06-01 Andrew Cagney <cagney@redhat.com>
7607
7608 * mips-tdep.c (is_mips16_addr): New function.
7609 (make_mips16_addr, unmake_mips16_addr): New functions.
7610 (pc_is_mips16, mips_fetch_instruction): Use.
7611 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7612 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7613 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7614 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7615 TARGET_MIPS.
7616 * config/mips/tm-mips.h: Update copyright.
7617 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7618 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7619 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7620 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7621 (TM_PRINT_INSN_MACH): Delete.
7622 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7623
7624 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7625 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7626 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7627 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7628 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7629 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7630 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7631 mips*-*-riscos* and mips*-*-sysv* onto mips.
7632 * config/mips/mips64.mt: New file.
7633 * config/mips/mips.mt: New file.
7634 * config/mips/littlemips.mt: Delete file.
7635 * config/mips/decstation.mt: Delete file.
7636 * config/mips/vr4300el.mt: Delete file.
7637 * config/mips/vr5000el.mt: Delete file.
7638 * config/mips/vr5000.mt: Delete file.
7639 * config/mips/vr4100.mt: Delete file.
7640 * config/mips/vr4xxxel.mt: Delete file.
7641 * config/mips/vr4300.mt: Delete file.
7642 * config/mips/vr4xxx.mt: Delete file.
7643 * config/mips/bigmips.mt: Delete file.
7644 * config/mips/bigmips64.mt: Delete file.
7645 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7646 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7647 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7648 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7649 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7650 "tm-bigmips.h".
7651 * config/mips/tm-irix3.h: Ditto.
7652 * config/mips/tm-mipsv4.h: Ditto.
7653 * config/mips/tm-embed.h: Ditto.
7654 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7655 "tm-bigmips64.h".
7656 * config/mips/tm-vr5000el.h: Delete file.
7657 * config/mips/tm-tx39l.h: Delete file.
7658 * config/mips/tm-vr4300el.h: Delete file.
7659 * config/mips/tm-vr4xxxel.h: Delete file.
7660 * config/mips/tm-vr4300.h: Delete file.
7661 * config/mips/tm-vr4100.h: Delete file.
7662 * config/mips/tm-vr4xxx.h: Delete file.
7663 * config/mips/tm-vr5000.h: Delete file.
7664 * config/mips/tm-embedl64.h: Delete file.
7665 * config/mips/tm-embedl.h: Delete file.
7666 * config/mips/tm-embed64.h: Delete file.
7667 * config/mips/tm-bigmips64.h: Delete file.
7668 * config/mips/tm-bigmips.h: Delete file.
7669
7670 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7671
7672 Fix gdb/1216.
7673 * shnbsd-nat.c: Include "sh-tdep.h".
7674
7675 From Richard Henderson <rth@redhat.com>:
7676 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7677
7678 2003-05-31 Andrew Cagney <cagney@redhat.com>
7679
7680 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7681 forward declaration.
7682 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7683 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7684 (mips_find_saved_regs): Use set_reg_offset.
7685 (mips_frame_init_saved_regs): Delete function.
7686 (mips_pop_frame): Call mips_find_saved_regs instead of
7687 DEPRECATED_FRAME_INIT_SAVED_REGS.
7688
7689 2003-05-31 Andrew Cagney <cagney@redhat.com>
7690
7691 * mips-tdep.c (mips_gdbarch_init): Do not set
7692 deprecated_max_register_raw_size, register_virtual_size, and
7693 deprecated_max_register_virtual_size.
7694
7695 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7696
7697 * i386-tdep.c: Include "dwarf2-frame.h".
7698 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7699 * Makefile.in (i386-tdep.o): Update dependencies.
7700
7701 * dwarf2-frame.c, dwarf2-frame.h: New files.
7702 * Makefile.in (SFILES): Add dwarf2-frame.c.
7703 (dwarf2_frame_h): Define.
7704 (COMMON_OBS): Add dwarf2-frame.o.
7705 (dwarf2-frame.o): Add dependencies.
7706
7707 2003-05-31 Andreas Jaeger <aj@suse.de>
7708
7709 * x86-64-linux-nat.c: Fix comment.
7710
7711 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7712
7713 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7714 function signature.
7715
7716 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7717 have a sigcontext_addr handler.
7718 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7719 sigcontext_addr handler.
7720
7721 2003-05-31 Andrew Cagney <cagney@redhat.com>
7722
7723 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7724 (print_fp_register_row): Replace do_fp_register_row.
7725 (mips_print_fp_register): Add "file" and "frame" parameters.
7726 (mips_print_register): Add "file" and "frame" parameters.
7727 (mips_print_registers_info): Replace mips_do_registers_info.
7728 (mips_gdbarch_init): Set print_registers_info instead of
7729 deprecated_do_registers_info.
7730 (mips_read_fp_register_single): Add "frame" parameter.
7731 (mips_read_fp_register_double): Add "frame" parameter.
7732
7733 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7734
7735 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7736 Fixes a bug where GDB would print the wrong register names for
7737 targets without SSE.
7738
7739 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7740 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7741 registers.
7742
7743 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7744 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7745 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7746 TDEP->sc_sp_offset.
7747
7748 From Michal Ludvig <mludvig@suse.cz>:
7749 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7750 and `sc_num_regs'.
7751 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7752 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7753 I386_ST0_REGNUM): Move here from...
7754 * i386-tdep.c: ... here.
7755 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7756 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7757 registers if possible.
7758 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7759 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7760 Remove variables.
7761 (i386bsd_sc_reg_offset): New variable.
7762 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7763 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7764 TDEP->sc_sp_offset.
7765 (i386fbsd_sc_reg_offset): New variable.
7766 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7767 TDEP->sc_num_regs.
7768 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7769 variables.
7770 (i386fbsd4_sc_reg_offset): New variable.
7771 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7772 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7773 TDEP->sc_sp_offset.
7774 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7775 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7776 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7777 Remove variables.
7778 (i386nbsd_sc_reg_offset): New variable.
7779 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7780 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7781 TDEP->sc_sp_offset.
7782 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7783 Remove variables.
7784 (i386obsd_sc_reg_offset): New variable.
7785 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7786 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7787 TDEP->sc_sp_offset.
7788 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7789 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7790 for frame pointer offset in `struct sigcontext'.
7791
7792 2003-05-31 Andrew Cagney <cagney@redhat.com>
7793
7794 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7795 architecture methods call_dummy_words, sizeof_call_dummy_words,
7796 push_return_address, store_struct_return, and fix_call_dummy. Set
7797 push_dummy_call instead of deprecated_push_arguments.
7798 (mips_store_struct_return): Delete function.
7799 (mips_fix_call_dummy): Delete function.
7800 (mips_push_return_address): Delete function.
7801 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7802 RA_REGNUM and T9_REGNUM.
7803 (mips_n32n64_push_dummy_call): Ditto for
7804 mips_n32n64_push_arguments.
7805 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7806 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7807
7808 2003-05-31 Andrew Cagney <cagney@redhat.com>
7809
7810 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7811 "dummy_addr" to "bp_addr".
7812 * infcall.c (call_function_by_hand): Pass "funaddr" to
7813 gdbarch_push_dummy_call.
7814 * gdbarch.h, gdbarch.c: Re-generate.
7815 * i386-tdep.c (i386_push_dummy_call): Update.
7816 * arm-tdep.c (arm_push_dummy_call): Update.
7817 * d10v-tdep.c (d10v_push_dummy_call): Update.
7818
7819 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7820
7821 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7822 variable declarations.
7823 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7824 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7825 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7826 x86_64_init_frame_pc, x86_64_init_frame_pc,
7827 x86_64_function_has_prologue): Remove prototypes.
7828 (X86_64_NUM_GREGS): New define.
7829 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7830 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7831 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7832 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7833 XMM1_REGNUM): Remove defines.
7834 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7835 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7836 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7837 X86_64_XMM1_REGNUM): New defines.
7838 (struct x86_64_register_info): Renamed from `struct
7839 register_info'. Remove `size' member.
7840 (x86_64_register_info_table): Remove variable.
7841 (x86_64_register_info): New variable.
7842 (X86_64_NUM_REGS): New define.
7843 (X86_64_NUM_GREGS): Remove define.
7844 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7845 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7846 Remove variables.
7847 (x86_54_dwarf2_reg_to_regnum): Remove function.
7848 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7849 (x86_64_dwarf_reg_to_regnum): New function.
7850 (x86_64_register_name): Rewrite.
7851 (x86_64_register_raw_size): Remove function.
7852 (x86_64_register_byte_table): Remove variable.
7853 (x86_64_register_byte): Remove function.
7854 (x86_64_register_virtual_type): Remove function.
7855 (x86_64_register_type): New function.
7856 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7857 x86_64_register_convert_to_raw): Remove functions.
7858 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7859 (x86_64_use_struct_convention): Make static. Adjust for renamed
7860 defines.
7861 (x86_64_frame_init_saved_regs): Remove function.
7862 (x86_64_push_arguments): Make static. Change to accept a regcache
7863 as argument.
7864 (x86_64_store_return_value, x86_64_extract_return_value): Make
7865 static. Rewrite based on i386 counterparts.
7866 (x86_64_push_dummy_call): New function.
7867 (X86_64_NUM_SAVED_REGS): New define.
7868 (x86_64_register_number): Remove function.
7869 (x86_64_store_struct_return): Remove function.
7870 (x86_64_frameless_function_invocation,
7871 x86_64_function_has_prologue): Remove functions.
7872 (PROLOG_BUFSIZE): Remove define.
7873 (struct x86_64_frame_cache): New structure.
7874 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7875 x86_64_frame_cache, x86_64_frame_this_id,
7876 x86_64_frame_prev_register, x86_64_frame_p,
7877 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7878 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7879 functions.
7880 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7881 variables.
7882 (x86_64_skip_prologue): Rewrite in terms of
7883 x86_64_analyze_prologue.
7884 (x86_64_frame_base_address): New function.
7885 (x86_64_frame_base): New variable.
7886 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7887 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7888 set deprecated_fp_regnum, deprecated_register_size,
7889 deprecated_register_bytes, register_raw_size, register_byte,
7890 register_virtual_type, register_convertiable,
7891 register_convert_to_virtual, convert_to_raw,
7892 deprecated_get_saved_register, deprecated_target_read_fp,
7893 deprecated_push_arguments, deprecated_push_return_address,
7894 deprecated_pop_frame, deprecated_store_struct_return,
7895 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7896 frameless_function_invocation, deprecated_frame_saved_pc,
7897 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7898 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7899 deprecated_init_frame_pc and virtual_frame_pointer. Call
7900 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7901 and x86_64_frame_p. Call frame_base_set_default to register
7902 x86_64_frame_base.
7903 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7904 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7905 (_initialize_x86_64_tdep): Remove function.
7906 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7907 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7908 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7909 define.
7910 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7911 (x86_64_linux_sigcontext_addr): Rewrite.
7912 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7913 x86_64_linux_frame_saved_pc): Remove functions.
7914 (x86_64_linux_pc_in_sigtramp): Renamed from
7915 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7916 trampoline.
7917 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7918 Remove_functions.
7919 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7920 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7921 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7922 (x86_64_regmap): Rename to regmap.
7923 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7924 x86_64_num_gregs.
7925 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7926 x86_64_regmap.
7927 (x86_64_fxsave_offset): Remove function.
7928 (supply_fpregset): Simply call x86_64_supply_fxsave.
7929 (fill_fpregset): Simply call x86_64_fill_fxsave.
7930 (fetch_inferior_registers, store_inferior_registers): Avoid
7931 asignment in if-statement.
7932 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7933 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7934 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7935 (fetch_core_registers): Remove function.
7936 (linux_elf_core_fns): Remove.
7937 (offsetoff): Don't define.
7938 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7939 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7940 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7941 add core-regset.o.
7942 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7943 protection against multiple includes instead of NM_X86_64_h. Add
7944 various comments. Include "config/nm-linux.h". Don't include
7945 <signal.h>.
7946 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7947 GET_THREAD_SIGNALS): Remove defines.
7948 (x86_64_register_u_addr, kernel_u_size,
7949 lin_thread_get_thread_signals): Remove prototypes.
7950 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7951 [HAVE_LINK_H]: Don't include "solib.h".
7952 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7953 * config/i386/tm-x86-64linux.h: Fix comments.
7954 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7955 x86-64-tdep.o): Update dependencies.
7956
7957 2003-05-30 Andrew Cagney <cagney@redhat.com>
7958
7959 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7960 Change parameter type to a "struct regcache *".
7961
7962 * gdbarch.sh: Regardless of the multi-arch level, always define
7963 the macro when not already defined.
7964 * gdbarch.h, gdbarch.c: Re-generate.
7965
7966 2003-05-30 Richard Henderson <rth@redhat.com>
7967
7968 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7969 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7970 (alpha_mdebug_frame_this_id): Likewise.
7971 (alpha_mdebug_frame_prev_register): Likewise.
7972 (alpha_mdebug_frame_base_address): Likewise.
7973 (alpha_mdebug_frame_locals_address): Likewise.
7974 (alpha_mdebug_frame_args_address): Likewise.
7975 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7976 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7977 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7978 loop increment.
7979 (alpha_heuristic_frame_this_id): Make static.
7980 (alpha_heuristic_frame_prev_register): Likewise.
7981 (alpha_heuristic_frame_base_address): Likewise.
7982 * alpha-tdep.h: Update.
7983
7984 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7985
7986 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7987 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7988 defenitions.
7989 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7990 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7991 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7992 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7993 I386_ST0_REGNUM): New defines.
7994 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7995 codestream_get): Remove define.
7996 (codestream_next_addr, condestream_addr, condestream_buf,
7997 codestream_off, codestream_cnt): Remove variables.
7998 (codestream_fill, codestream_seek, codestream_read): Remove
7999 functions.
8000 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8001 functionality.
8002 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8003 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8004 i386_frame_saved_pc, i386_saved_pc_after_call,
8005 i386_frame_num_args, i386_frame_init_saved_regs,
8006 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8007 i386_push_arguments): Remove functions.
8008 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8009 functionality. Use i386_analyze_prologue instead of
8010 i386_get_frame_setup.
8011 (I386_NUM_SAVED_REGS): New define.
8012 (struct i386_frame_cache): New structure.
8013 (i386_alloc_frame_cache, i386_analyze_struct_return,
8014 i386_skip_probe, i386_analyze_frame_setup,
8015 i386_analyze_register_saves, i386_analyze_prologue,
8016 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8017 i386_frame_prev_register, i386_sigtramp_frame_cache,
8018 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8019 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8020 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8021 New functions.
8022 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8023 New variables.
8024 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8025 I386_EAX_REGNUM and I386_EDX_REGNUM.
8026 (i386_extract_return_value, i386_store_return_value): Use
8027 I386_ST0_REGNUM where appropriate.
8028 (i386_extract_struct_value_address): Rewrite to use extract_address.
8029 (i386_svr4_pc_in_sigtramp): Add comment.
8030 (i386_svr4_sigcontext_addr): Rewrite.
8031 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8032 TDEP->sc_sp_offset.
8033 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8034 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8035 of new defines. Set push_dummy_call, don't set
8036 deprecated_push_arguments, deprecated_push_return_address,
8037 deprecated_pop_frame. Don't set parm_boundary. Don't set
8038 deprecated_frame_chain, deprecated_frame_saved_pc,
8039 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8040 save_dummy_frame_tos, unwind_pc. Call
8041 frame_unwind_append_predicate and frame_base_set_default. Don't
8042 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8043 Don't set frameless_function_invocation. Don't set
8044 deprecated_register_bytes, deprecated_register_size,
8045 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8046 * i386-linux-tdep.c: Fix formatting in some comments.
8047 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8048 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8049 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8050 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8051 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8052 redundant parentheses.
8053 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8054 (i386_linux_sigcontext_addr): Use it. Rewrite.
8055 (find_minsym_and_objfile): Change name of second argument.
8056 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8057 changed. Use frame_pc_unwind instead of
8058 DEPRECATED_SAVED_PC_AFTER_CALL.
8059 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8060 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8061 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8062 unwinder.
8063 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8064 "dummy-frame.h".
8065 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8066 (_initialize_i386_cygwin_tdep): New prototype.
8067 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8068 deprecated_frame_chain_valid.
8069 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8070 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8071 Rely on the SVR4 defaults.
8072 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8073 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8074
8075 2003-05-30 Andrew Cagney <cagney@redhat.com>
8076
8077 * infcall.c (call_function_by_hand): Always call
8078 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8079
8080 2003-05-30 Richard Henderson <rth@redhat.com>
8081
8082 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8083 increment.
8084
8085 2003-05-29 Jim Blandy <jimb@redhat.com>
8086
8087 Use gdbarch methods for solib stuff on PowerPC Linux.
8088 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8089 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8090 show through.
8091 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8092 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8093 giving the same effect as the #definitions above.
8094
8095 2003-05-29 Adam Fedor <fedor@gnu.org>
8096
8097 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8098 (find_implementation_from_class): Replace it with the standard
8099 case i.e. do nothing.
8100
8101 2003-05-29 Richard Henderson <rth@redhat.com>
8102
8103 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8104 (alpha_linux_sigtramp_offset): Use it. Make static.
8105 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8106 update for new frame model.
8107 * alpha-mdebug-tdep.c: New file.
8108 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8109 (alpha_osf1_init_abi): Install it.
8110 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8111 (linked_proc_desc_table): Remove.
8112 (alpha_frame_past_sigtramp_frame): Remove.
8113 (alpha_dynamic_sigtramp_offset): Remove.
8114 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8115 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8116 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8117 (push_sigtramp_desc): Remove.
8118 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8119 (alpha_cannot_store_register): Likewise.
8120 (alpha_sigcontext_addr): Remove.
8121 (alpha_find_saved_regs): Remove.
8122 (alpha_frame_init_saved_regs): Remove.
8123 (alpha_init_frame_pc_first): Remove.
8124 (read_next_frame_reg): Remove.
8125 (alpha_frame_saved_pc): Remove.
8126 (alpha_saved_pc_after_call): Remove.
8127 (temp_proc_desc, temp_saved_regs): Remove.
8128 (alpha_about_to_return): Remove.
8129 (cached_proc_desc): Remove.
8130 (alpha_frame_chain): Remove.
8131 (alpha_print_extra_frame_info): Remove.
8132 (alpha_init_extra_frame_info): Remove.
8133 (alpha_frame_locals_address): Remove.
8134 (alpha_frame_args_address): Remove.
8135 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8136 (alpha_push_dummy_frame): Remove.
8137 (alpha_pop_frame): Remove.
8138 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8139 (alpha_read_insn): New.
8140 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8141 for different insn encodings.
8142 (alpha_in_lenient_prologue): Remove.
8143 (struct alpha_sigtramp_unwind_cache): New.
8144 (alpha_sigtramp_frame_unwind_cache): New.
8145 (alpha_sigtramp_register_address): New.
8146 (alpha_sigtramp_frame_this_id): New.
8147 (alpha_sigtramp_frame_prev_register): New.
8148 (alpha_sigtramp_frame_unwind): New.
8149 (alpha_sigtramp_frame_p): New.
8150 (struct alpha_heuristic_unwind_cache): New.
8151 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8152 don't count nop insns that occur between functions.
8153 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8154 heuristic_proc_desc, but without the mdebug wrapping.
8155 (alpha_heuristic_frame_this_id): New.
8156 (alpha_heuristic_frame_prev_register): New.
8157 (alpha_heuristic_frame_unwind): New.
8158 (alpha_heuristic_frame_p): New.
8159 (alpha_heuristic_frame_base_address): New.
8160 (alpha_heuristic_frame_base): New.
8161 (alpha_unwind_dummy_id): New.
8162 (alpha_unwind_pc): New.
8163 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8164 frame related deprecated initializations; install replacements.
8165 (alpha_dump_tdep): Remove.
8166 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8167 (alpha_read_insn, alpha_after_prologue,
8168 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8169 alpha_heuristic_frame_prev_register,
8170 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8171 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8172 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8173 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8174
8175 2003-05-29 Andrew Cagney <cagney@redhat.com>
8176
8177 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8178 dependant on the availability of ASSERT_FUNCTION.
8179 (ASSERT_FUNCTION): Do not define when there is no function name.
8180
8181 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8182
8183 From Jimi X <jimix@watson.ibm.com>:
8184 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8185
8186 2003-05-28 Jim Blandy <jimb@redhat.com>
8187
8188 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8189 argument to ptrace to int; the system headers should give it the
8190 right type, and pointers don't fit in ints on powerpc64-*-*.
8191
8192 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8193
8194 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8195 DW_TAG_catch_block.
8196
8197 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8198
8199 * stabsread.c (dbx_lookup_type): Make static.
8200 (read_type): Ditto.
8201 (add_undefined_type): Ditto.
8202 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8203 not export.
8204
8205 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8206
8207 * hpread.c (hpread_has_name): Make static.
8208 (hpread_psymtab_to_symtab): Ditto.
8209 (file_exists): Ditto.
8210 (hpread_call_pxdb): Ditto.
8211 (hpread_pxdb_needed): Ditto.
8212 (hpread_quick_traverse): Ditto.
8213 (hpread_get_header): Ditto.
8214 (hpread_get_lntt): Ditto.
8215 (hpread_get_slt): Ditto.
8216 (class_of): Ditto.
8217
8218 2003-05-25 Andreas Schwab <schwab@suse.de>
8219
8220 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8221 stack_align and deprecated_extra_stack_alignment_needed.
8222 (m68k_stack_align): Delete.
8223
8224 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8225 (m68k_register_virtual_size): Likewise.
8226 (altos_skip_prologue): Remove obsolete function.
8227 (isi_frame_num_args): Likewise.
8228 (news_frame_num_args): Likewise.
8229 (m68k_fix_call_dummy): Make static.
8230 (m68k_push_dummy_frame): Likewise.
8231 (m68k_pop_frame): Likewise.
8232 (m68k_skip_prologue): Likewise.
8233 (m68k_frame_init_saved_regs): Likewise.
8234 (m68k_saved_pc_after_call): Likewise.
8235 (m68k_get_longjmp_target): Make multi-arch.
8236 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8237 structure. Register m68k_get_longjmp_target if enabled.
8238 * m68k-tdep.h (struct gdbarch_tdep): Define.
8239 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8240
8241 * Makefile.in (config.status): Also depend on configure.tgt
8242 and configure.host.
8243 (m68klinux-tdep.o): Update dependencies.
8244 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8245 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8246 (M68K_LINUX_JB_PC): Define.
8247 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8248 and take additional parameter.
8249 (m68k_linux_sigtramp_saved_pc): Update.
8250 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8251 m68k_linux_pc_in_sigtramp, in_plt_section,
8252 find_solib_trampoline_target.
8253 * config/m68k/tm-linux.h: Don't include any tm headers.
8254 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8255 (JB_ELEMENT_SIZE): Likewise.
8256 (JB_PC): Likewise.
8257 (GET_LONGJMP_TARGET): Likewise.
8258 (IN_SIGTRAMP): Likewise.
8259 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8260
8261 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8262
8263 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8264 (sparc32_push_arguments): Re-implement by calling
8265 sparc32_do_push_arguments.
8266
8267 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8268
8269 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8270 SPARC_O1_REGNUM): New defines.
8271 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8272 (sparc32_store_return_value): New function.
8273 (sparc_extract_struct_value_address): Rewrite to operate on a
8274 regcache.
8275 (sparc_gdbarch_init): Don't set
8276 deprecated_extract_struct_value_address. Set
8277 extract_struct_value_address instead. Don't set
8278 deprecated_extract_return_value and deprecated_store_return_value
8279 for 32-bit targets. Set extract_return_value and
8280 store_return_value instead.
8281 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8282 DEPRECATED_EXTRACT_RETURN_VALUE,
8283 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8284 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8285 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8286 (sparc_store_return_value): Remove prototype.
8287 (sparc32_store_return_value): New prototype.
8288 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8289 Adjust prototypes.
8290
8291 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8292
8293 * sparcnbsd-tdep.c: Include "gdb_string.h".
8294
8295 2003-05-23 Andrew Cagney <cagney@redhat.com>
8296
8297 * p-valprint.c (pascal_val_print): Replace extract_address with
8298 the inline equivalent extract_unsigned_integer.
8299 * jv-valprint.c (java_value_print): Ditto.
8300 * ada-valprint.c (ada_val_print_1): Ditto.
8301 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8302
8303 2003-05-23 Theodore A. Roth <troth@openavr.org>
8304
8305 * blockframe.c (frameless_look_for_prologue): Remove unused
8306 after_prologue variable.
8307
8308 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8309
8310 * blockframe.c (get_pc_function_start): Rewrite to avoid
8311 asignments in if-statements.
8312
8313 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8314
8315 Committed by Elena Zannoni <ezannoni@redhat.com>.
8316 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8317 files, don't relocate absolute symbols (and do use mst_abs).
8318
8319 2003-05-23 Andrew Cagney <cagney@redhat.com>
8320
8321 * objc-lang.c: Include "gdb_assert.h".
8322 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8323 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8324 (gdb_check, gdb_check_fatal): Delete functions.
8325 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8326 gdb_assert.
8327 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8328 * Makefile.in (objc-lang.o): Update dependencies.
8329
8330 2003-05-22 Ian Lance Taylor <ian@airs.com>
8331
8332 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8333 with fprintf_filtered, not fprintf_unfiltered.
8334
8335 2003-05-22 Andrew Cagney <cagney@redhat.com>
8336
8337 * stack.c (frame_info): Inline extract_address, replacing it with
8338 extract_unsigned_integer.
8339 * findvar.c (unsigned_pointer_to_address): Ditto.
8340 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8341 * dwarf2expr.c (dwarf2_read_address): Ditto.
8342 * frame.c (frame_pc_unwind): Update comment.
8343 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8344
8345 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8346
8347 * infptrace.c (detach): Call print_sys_errmsg rather than
8348 perror_with_name to issue warning message when errno is non-zero
8349 after calling ptrace detach.
8350
8351 2003-05-21 J. Brobecker <brobecker@gnat.com>
8352
8353 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8354 macro definitions from here...
8355 * hppa-tdep.c: ...to there.
8356
8357 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8358
8359 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8360 register_ptrace_addr(). Fix all callers.
8361
8362 2003-05-21 Andreas Schwab <schwab@suse.de>
8363
8364 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8365 dependencies.
8366 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8367 end.
8368 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8369 (_initialize_m68k_linux_tdep): New function.
8370 (m68k_linux_frame_saved_pc): Make static.
8371 (m68k_linux_extract_return_value): Likewise.
8372 (m68k_linux_store_return_value): Likewise.
8373 (m68k_linux_extract_struct_value_address): Likewise.
8374 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8375 Remove.
8376 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8377 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8378 (DEPRECATED_FRAME_SAVED_PC): Remove.
8379
8380 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8381
8382 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8383 regset numbering rather than our own.
8384
8385 2003-05-19 David Carlton <carlton@bactrian.org>
8386
8387 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8388
8389 2003-05-19 David Carlton <carlton@bactrian.org>
8390
8391 Partial fix for PR c++/827.
8392 * cp-support.h: Include symtab.h.
8393 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8394 * cp-namespace.c: Update contributors.
8395 (cp_lookup_symbol_nonlocal): New.
8396 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8397 (lookup_symbol_file): Ditto.
8398 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8399 * block.h: Declare block_scope, block_using, block_global_block.
8400 * block.c (block_scope): New.
8401 (block_using, block_global_block): Ditto.
8402 * Makefile.in (cp_support_h): Depend on symtab_h.
8403 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8404
8405 2003-05-19 David Carlton <carlton@bactrian.org>
8406
8407 * language.h (struct language_defn): Add 'la_value_of_this'
8408 and 'la_lookup_symbol_nonlocal' members.
8409 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8410 lookup_symbol_static, lookup_symbol_global,
8411 lookup_symbol_aux_block.
8412 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8413 if we should search fields of this and how to do static/global
8414 lookup.
8415 (lookup_symbol_aux_block): Make extern.
8416 (basic_lookup_symbol_nonlocal): New.
8417 (lookup_symbol_static, lookup_symbol_global): Ditto.
8418 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8419 'la_lookup_symbol_nonlocal' members.
8420 * c-lang.c (c_language_defn, cplus_language_defn)
8421 (asm_language_defn, minimal_language_defn): Ditto.
8422 * jv-lang.c (java_language_defn): Ditto.
8423 * language.c (unknown_language_defn, auto_language_defn)
8424 (local_language_defn): Ditto.
8425 * m2-lang.c (m2_language_defn): Ditto.
8426 * objc-lang.c (objc_language_defn): Ditto.
8427 * scm-lang.c (scm_language_defn): Ditto.
8428 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8429 * p-lang.c (pascal_language_defn): Ditto for both.
8430 * Makefile.in (f-lang.o): Depend on value_h.
8431 (p-lang.o): Ditto.
8432
8433 2003-05-19 David Carlton <carlton@bactrian.org>
8434
8435 * block.h: Declare block_static_block.
8436 * block.c (block_static_block): New.
8437 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8438 lookup_symbol_aux_local, calling block_static_block instead.
8439 (lookup_symbol_aux_local): Delete 'static_block' argument.
8440
8441 2003-05-19 David Carlton <carlton@bactrian.org>
8442
8443 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8444
8445 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8446
8447 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8448 register numbers mapping.
8449
8450 2003-05-18 Adam Fedor <fedor@gnu.org>
8451
8452 * symtab.c (completion_list_objc_symbol): New function.
8453 (make_symbol_completion_list): Use it to add ObjC symbols
8454 when looking though the list.
8455 (language_search_unquoted_string): New function.
8456 (make_file_symbol_completion_list): Use it.
8457
8458 2003-05-18 Andreas Schwab <schwab@suse.de>
8459
8460 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8461 dependencies.
8462 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8463 as m68k_linux_extract_return_value.
8464 (DEPRECATED_STORE_RETURN_VALUE): Define as
8465 m68k_linux_store_return_value.
8466 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8467 m68k_linux_extract_struct_value_address.
8468 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8469 get_next_frame, get_frame_base, get_frame_pc.
8470 (m68k_linux_frame_saved_pc): Use get_frame_base.
8471 (m68k_linux_extract_return_value): New function.
8472 (m68k_linux_store_return_value): New function.
8473 (m68k_linux_extract_struct_value_address): New function.
8474 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8475
8476 * c-exp.y (typebase): Remove duplicate occurence of
8477 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8478 of lookup_signed_typename.
8479
8480 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8481
8482 * dwarf2loc.c (find_location_expression): Change type of second
8483 argument to `size_t *'.
8484 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8485 for size variable.
8486
8487 2003-05-18 David Carlton <carlton@bactrian.org>
8488
8489 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8490 'linkage_name'. Add comment.
8491 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8492 'linkage_name'.
8493 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8494 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8495 (lookup_block_symbol): Ditto.
8496
8497 2003-05-16 Andrew Cagney <cagney@redhat.com>
8498
8499 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8500 * gdbarch.h, gdbarch.c: Re-generate.
8501 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8502 * TODO (REGISTER_BYTES): Delete reference.
8503 * alpha-tdep.c (alpha_gdbarch_init): Update.
8504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8505 * x86-64-tdep.c (x86_64_init_abi): Update.
8506 * vax-tdep.c (vax_gdbarch_init): Update.
8507 * v850-tdep.c (v850_gdbarch_init): Update.
8508 * sparc-tdep.c (sparc_gdbarch_init): Update.
8509 * sh-tdep.c (sh_gdbarch_init): Update.
8510 * s390-tdep.c (s390_gdbarch_init): Update.
8511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8512 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8513 (ns32k_gdbarch_init_32382): Update.
8514 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8515 * mcore-tdep.c (mcore_gdbarch_init): Update.
8516 * m68k-tdep.c (m68k_gdbarch_init): Update.
8517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8518 * ia64-tdep.c (ia64_gdbarch_init): Update.
8519 * i386-tdep.c (i386_gdbarch_init): Update.
8520 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8521 * hppa-tdep.c (hppa_gdbarch_init): Update.
8522 * h8300-tdep.c (h8300_gdbarch_init): Update.
8523 * frv-tdep.c (frv_gdbarch_init): Update.
8524 * cris-tdep.c (cris_gdbarch_init): Update.
8525 * avr-tdep.c (avr_gdbarch_init): Update.
8526 * arm-tdep.c (arm_gdbarch_init): Update.
8527 * sparc-tdep.c (sparc_pop_frame): Update.
8528 * rs6000-tdep.c (rs6000_pop_frame): Update.
8529 * remote.c (init_remote_state): Update.
8530 (remote_prepare_to_store): Update.
8531 * remote-vx.c (vx_prepare_to_store): Update.
8532 * remote-sds.c (sds_fetch_registers): Update.
8533 (sds_prepare_to_store): Update.
8534 * remote-array.c: Update.
8535 * regcache.c (init_legacy_regcache_descr): Update.
8536 (init_regcache_descr): Update.
8537 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8538 (mips_o64_extract_return_value): Update.
8539 * irix5-nat.c (fetch_core_registers): Update.
8540 * irix4-nat.c (fetch_core_registers): Update.
8541 * i386-tdep.h: Update.
8542 * hppa-tdep.c (pa_do_registers_info): Update.
8543 (pa_do_strcat_registers_info): Update.
8544 * cris-tdep.c (cris_register_bytes_ok): Update.
8545 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8546 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8547 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8548 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8549 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8550 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8551 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8552 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8553 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8554 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8555 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8556 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8557 (REGISTER_BYTES_OK): Update.
8558 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8559 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8560
8561 2003-05-16 Ian Lance Taylor <ian@airs.com>
8562
8563 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8564 (vax_print_insn, print_insn_arg): Remove static functions.
8565 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8566 print_insn_vax from opcodes library.
8567 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8568
8569 2003-05-15 Andrew Cagney <cagney@redhat.com>
8570
8571 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8572 * target.h (memory_breakpoint_from_pc): Delete declaration.
8573 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8574 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8575 * monitor.c (monitor_insert_breakpoint): Use
8576 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8577 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8578 * gdbarch.h, gdbarch.c: Re-generate.
8579 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8580 (sparc_gdbarch_init): Set breakpoint_from_pc to
8581 sparc_breakpoint_from_pc.
8582 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8583 (BREAKPOINT_FROM_PC): Define.
8584 (sparc_breakpoint_from_pc): Declare.
8585 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8586 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8587 (BREAKPOINT_FROM_PC): Define.
8588 (BREAKPOINT): Delete macro.
8589 * target.h: Update comment.
8590 * s390-tdep.c (s390_gdbarch_init): Update comments.
8591 * remote.c: Update comments.
8592 * remote-mips.c: Update comments.
8593 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8594 * mem-break.c: Update comment.
8595 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8596 (ia64_memory_insert_breakpoint): Update.
8597 * config/sparc/tm-sparc.h: Update comment.
8598 * config/pa/tm-hppa64.h: Update comment.
8599 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8600 (rs6000_breakpoint_from_pc): Update.
8601 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8602 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8603 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8604 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8605 (mips_breakpoint_from_pc): Update.
8606 (mips_dump_tdep): Update.
8607
8608 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8609 * minsyms.c (lookup_minimal_symbol): Inline
8610 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8611
8612 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8613 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8614 * p-lang.c (pascal_printstr): Ditto.
8615 * objc-lang.c (objc_printstr): Ditto.
8616 * m2-lang.c (m2_printstr): Ditto.
8617 * jv-valprint.c (java_print_value_fields): Ditto.
8618 * f-lang.c (f_printstr): Ditto.
8619 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8620 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8621 for repeat_count_threshold.
8622 * Makefile.in (cp-valprint.o): Update dependencies.
8623
8624 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8625
8626 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8627 (examine_prologue): Support looking through leaf functions, knowing
8628 they start with mov r2,r12. Support skipping over indirect stores
8629 of the input registers. Upon hitting a non-nop branch instruction
8630 or predicated instruction, bail out by setting lim_pc to the current
8631 pc value in the loop. At the end, if the lim_pc value is still
8632 beyond our calculated value and we have trust_limit set,
8633 use the lim_pc value.
8634
8635 2003-05-15 Andrew Cagney <cagney@redhat.com>
8636
8637 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8638 generic_find_dummy_frame.
8639 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8640 (deprecated_generic_find_dummy_frame): Update.
8641 (deprecated_read_register_dummy): Update.
8642 * frame.c (deprecated_generic_get_saved_register): Update.
8643
8644 2003-05-15 Theodore A. Roth <troth@openavr.org>
8645
8646 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8647 (avr_gdbarch_init): Set breakpoint_from_pc method.
8648
8649 2003-05-15 Andrew Cagney <cagney@redhat.com>
8650
8651 * regcache.c (build_regcache): Set deprecated_register_valid
8652 directly.
8653 (deprecated_grub_regcache_for_register_valid): Delete function.
8654 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8655 declaration.
8656
8657 2003-05-15 David Carlton <carlton@bactrian.org>
8658
8659 Committed by Elena Zannoni <ezannoni@redhat.com>
8660 * symtab.c (lookup_symbol_aux): Delete calls to
8661 lookup_symbol_aux_minsyms.
8662 (lookup_symbol_aux_minsyms): Comment out function and
8663 prototype. Delete lookup by mangled name.
8664
8665 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8666
8667 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8668 correctly indicate an empty stack and ``stack_allocated'' to the
8669 indicate the number of elements initially allocated.
8670 (dwarf_expr_grow_stack): Simplify method for computing new
8671 stack size. Don't loop infinitely if ``stack_len'' is zero.
8672 (execute_stack_op): Move ``ctx->in_reg'' initialization
8673 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8674 be used in conjuction with DW_OP_piece. Revise error message
8675 accordingly.
8676
8677 2003-05-14 Theodore A. Roth <troth@openavr.org>
8678
8679 * MAINTAINERS: Update my email address.
8680 * avr-tdep.c: Ditto.
8681
8682 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8683
8684 * symtab.h (enum domain_enum): Rename from namespace_enum.
8685 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8686 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8687 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8688 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8689 TYPES_NAMESPACE, METHODS_NAMESPACE.
8690 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8691 (struct symbol, struct partial_symbol): Rename field
8692 'namespace_enum namespace' to 'domain_enum domain'.
8693 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8694 Delete old define kludge for namespace.
8695
8696 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8697 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8698 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8699 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8700 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8701 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8702 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8703 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8704 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8705 occurrences of the above.
8706
8707 2003-05-14 Ian Lance Taylor <ian@airs.com>
8708
8709 * Makefile.in (install-only): Use $(SHELL) when running
8710 mkinstalldirs.
8711
8712 2003-05-13 Ian Lance Taylor <ian@airs.com>
8713
8714 * MAINTAINERS (write after approval): Add myself.
8715
8716 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8717 second and third arguments.
8718 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8719 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8720
8721 2003-05-13 Andrew Cagney <cagney@redhat.com>
8722
8723 * defs.h (store_address): Delete declaration.
8724 findvar.c (store_address): Delete function.
8725 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8726 store_unsigned_integer.
8727 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8728 * v850-tdep.c (v850_push_arguments): Ditto.
8729 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8730 * sh-tdep.c (sh64_get_saved_register): Ditto.
8731 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8732 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8733 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8734 (mips_get_saved_register): Ditto.
8735 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8736 (find_func_descr, ia64_push_arguments): Ditto.
8737 * i386-tdep.c (i386_push_arguments): Ditto.
8738 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8739 * frv-tdep.c (frv_push_arguments): Ditto.
8740 * frame.c (legacy_saved_regs_prev_register): Ditto.
8741 (deprecated_generic_get_saved_register): Ditto.
8742 * findvar.c (unsigned_address_to_pointer): Ditto.
8743 * dwarf2read.c (dwarf2_const_value): Ditto.
8744 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8745 * alpha-tdep.c (alpha_push_arguments): Ditto.
8746
8747 2003-05-12 J. Brobecker <brobecker@gnat.com>
8748
8749 * NEWS: Mention that the hppa-hpux port has been partially
8750 multiarched (32bit ABIT only, so far).
8751
8752 2003-05-11 Andrew Cagney <cagney@redhat.com>
8753
8754 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8755 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8756 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8757 sim/testsuite/sim/arm/misaligned2.ms, and
8758 sim/testsuite/sim/arm/misaligned3.ms.
8759 * disasm.h (struct ui_file): Add opaque struct declaration.
8760 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8761 * frame.h (struct ui_file): Ditto.
8762
8763 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8764
8765 * value.h: Pretty print.
8766
8767 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8768
8769 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8770
8771 2003-05-08 Andrew Cagney <cagney@redhat.com>
8772
8773 * regcache.h (max_register_size): Delete declaration.
8774 * regcache.c (max_register_size): Delete function.
8775 (struct regcache_descr): Delete field "max_register_size".
8776 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8777 registers fit in MAX_REGISTER_SIZE.
8778 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8779 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8780 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8781 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8782 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8783 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8784 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8785 * dve3900-rom.c, hppa-tdep.c: Ditto.
8786
8787 2003-05-08 David Carlton <carlton@math.stanford.edu>
8788
8789 * valops.c (push_word): Fix typo.
8790
8791 2003-05-08 Andrew Cagney <cagney@redhat.com>
8792
8793 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8794 * gdbarch.h: Re-generate.
8795 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8796 (legacy_max_register_raw_size): Delete declaration.
8797 * regcache.c (legacy_max_register_raw_size): Delete function.
8798 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8799 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8800 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8801 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8802 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8803 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8804 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8805 * findvar.c, dwarf2cfi.c: Ditto.
8806
8807 2003-05-08 Andrew Cagney <cagney@redhat.com>
8808
8809 * mips-tdep.c (read_signed_register): New function, moved to here
8810 from "regcache.c".
8811 (read_signed_register_pid): Ditto.
8812 * regcache.c (read_signed_register_pid): Delete function, moved to
8813 "mips-tdep.c".
8814 (read_signed_register): Ditto.
8815 * regcache.h (read_signed_register): Delete declaration.
8816 (read_signed_register_pid): Delete declaration.
8817
8818 2003-05-08 Andrew Cagney <cagney@redhat.com>
8819
8820 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8821 * gdbarch.h: Re-generate.
8822 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8823 (legacy_max_register_virtual_size): Delete declaration.
8824 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8825 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8826 * tracepoint.c (memrange_sortmerge): Ditto.
8827 * sparc-tdep.c (sparc_print_registers): Ditto.
8828 * regcache.c (legacy_max_register_virtual_size): Delete function.
8829
8830 2002-05-08 J. Brobecker <brobecker@gnat.com>
8831
8832 * fork-child.c (escape_bang_in_quoted_argument): New function.
8833 (fork_inferior): Escape '!' characters in quoted arguments
8834 only when needed.
8835
8836 2003-05-08 J. Brobecker <brobecker@gnat.com>
8837
8838 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8839 the language of the CU is not currently supported by GDB.
8840
8841 2003-05-08 J. Brobecker <brobecker@gnat.com>
8842
8843 * defs.h (language): Add language_minimal enum value.
8844 * c-lang.c (minimal_language_defn): New language definition.
8845 (_initialize_c_language): Add the new minimal language to the list
8846 of languages known to GDB.
8847
8848 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8849
8850 * frame.c (get_frame_type): Don't attempt to lazily initialize
8851 frame's unwinder for legacy frames.
8852
8853 2003-05-07 Andrew Cagney <cagney@redhat.com>
8854
8855 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8856 and "regcache" parameters.
8857 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8858
8859 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8860
8861 * dwarf2read.c (dwarf_decode_lines): Only use output of
8862 check_cu_functions() when calling record_line(). Do not update
8863 the current address.
8864
8865 2003-05-07 Andrew Cagney <cagney@redhat.com>
8866
8867 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8868 code.
8869
8870 2003-05-07 Jim Blandy <jimb@redhat.com>
8871
8872 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8873 'maint info symtabs' and 'maint info psymtabs'.
8874 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8875 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8876 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8877 Declarations updated.
8878 * maint.c (maintenance_list_command): Delete.
8879 (_initialize_maint_cmds): Update calls to add_cmd.
8880 * gdbcmd.h (maintenancelistlist): Delete declaration.
8881 * cli/cli-cmds.c (maintenancelistlist): Delete.
8882 (init_cmd_lists): Don't initialize it.
8883 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8884
8885 2003-05-07 Andrew Cagney <cagney@redhat.com>
8886
8887 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8888 "regcache".
8889 (d10v_print_registers_info): Update.
8890 (d10v_dmap_register, d10v_imap_register): Delete functions.
8891 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8892 and "imap_register".
8893 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8894 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8895 * arch-utils.c (generic_remote_translate_xfer_address): Add
8896 "regcache" and "gdbarch" parameters.
8897 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8898 parameter. Change class to multi-arch.
8899 * gdbarch.h, gdbarch.c: Re-generate.
8900 * remote.c (remote_xfer_memory): Use
8901 gdbarch_remote_translate_xfer_address.
8902
8903 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8904
8905 * infrun.c (prev_pc): Move declaration ahead of proceed().
8906 (proceed): Refresh prev_pc value before resuming.
8907 (stop_stepping): Remove code to refresh prev_pc.
8908
8909 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8910
8911 * nto-tdep.c: Removed stray comment.
8912
8913 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8914
8915 * i386-nto-tdep.c: Fix old K&R function definitions.
8916 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8917 Also change add_show_from_set() call to add_setshow_cmd().
8918 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8919
8920 2003-05-05 Andrew Cagney <cagney@redhat.com>
8921
8922 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8923 (fprint_dummy_frames): New function.
8924 (maintenance_print_dummy_frames): New function.
8925 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8926 * frame.c (fprint_frame_id): Make global.
8927 * frame.h (fprint_frame_id): Declare.
8928 * Makefile.in (dummy-frame.o): Update dependencies.
8929
8930 2003-05-05 Andrew Cagney <cagney@redhat.com>
8931
8932 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8933 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8934 SIZEOF_CALL_DUMMY_WORDS.
8935 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8936 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8937 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8938 CALL_DUMMY_BREAKPOINT_OFFSET.
8939 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8940 CALL_DUMMY_START_OFFSET.
8941 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8942 * gdbarch.h, gdbarch.c: Re-generate.
8943 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8944 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8945 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8946 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8947 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8948 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8949 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8950 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8951 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8952 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8953 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8954 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8955 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8956 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8957 * config/sparc/tm-sparc.h: Update.
8958
8959 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8960
8961 * configure.tgt: Add i[3456]86-*-nto*.
8962 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8963 * nto-tdep.c: New file. Neutrino target support routines.
8964 * nto-tdep.h: New file. Neutrino target header.
8965 * config/tm-qnxnto.h: New file.
8966 * config/i386/i386nto.mt: New file.
8967 * config/i386/tm-i386nto.h: New file.
8968
8969 2003-05-04 Andrew Cagney <cagney@redhat.com>
8970
8971 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8972 (load_infrun_state): Ditto.
8973 (struct thread_info): Drop "prev_func_name" field.
8974 * thread.c (load_infrun_state): Update.
8975 (save_infrun_state): Update.
8976 * infrun.c (prev_func_name): Delete variable.
8977 (init_wait_for_inferior): Do not clear prev_func_name.
8978 (stop_stepping, keep_going, context_switch): Do not swap
8979 prev_func_name.
8980 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8981 instead of PC_IN_SIGTRAMP.
8982
8983 2003-05-04 Andrew Cagney <cagney@redhat.com>
8984
8985 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8986 REGISTER_BYTE with register_offset_hack.
8987 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8988 that REGISTER_BYTE is consistent with the regcache.
8989 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8990 * gdbarch.h, gdbarch.c: Regenerate.
8991
8992 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8993
8994 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8995 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8996
8997 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8998
8999 2003-05-03 J. Brobecker <brobecker@gnat.com>
9000
9001 From Thierry Schneider <tpschneider1@yahoo.com>
9002 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9003 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9004 (mi-cmd-symbol.o): Add rule.
9005
9006 2003-05-03 Andrew Cagney <cagney@redhat.com>
9007
9008 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9009 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9010 * gdbarch.h, gdbarch.c: Re-generate.
9011 * d10v-tdep.c (d10v_push_dummy_code): New function.
9012 (d10v_gdbarch_init): Set push_dummy_code.
9013 * infcall.c (legacy_push_dummy_code): New function.
9014 (generic_push_dummy_code): New function.
9015 (push_dummy_code): New function.
9016 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9017 instead of dummy_addr, to push_dummy_call. Move call to
9018 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9019 switch.
9020 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9021
9022 2003-05-03 Andrew Cagney <cagney@redhat.com>
9023
9024 * disasm.h (print_insn): Declare.
9025 * disasm.c (init_gdb_disassemble_info): New function.
9026 (gdb_disassembly): Call init_gdb_disassemble_info.
9027 (gdb_print_insn): New function.
9028 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9029 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9030 * mcore-tdep.c: Include "disasm.h"
9031 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9032 * d10v-tdep.c: Include "disasm.h".
9033 (display_trace): Call gdb_print_insn, instead of print_insn.
9034 (print_insn): Delete function.
9035 * printcmd.c: Include "disasm.h".
9036 (print_insn): Delete function.
9037 (print_formatted): Call gdb_print_insn, instead of print_insn.
9038 * Makefile.in (printcmd.o): Update dependencies.
9039 (mcore-tdep.o, d10v-tdep.o): Ditto.
9040
9041 2003-05-02 Andrew Cagney <cagney@redhat.com>
9042
9043 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9044 PC_REGNUM, re-indent.
9045 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9046 PC_REGNUM isn't set.
9047
9048 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9049 * gdbarch.h, gdbarch.c: Re-generate.
9050 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9051 register_virtual_size, pc_regnum, or register_bytes.
9052 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9053 (d10v_register_type): Use D10V_PC_REGNUM.
9054 (d10v_print_registers_info, d10v_read_pc): Ditto.
9055 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9056 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9057
9058 2003-05-02 David Carlton <carlton@bactrian.org>
9059
9060 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9061 the name with mstrsave.
9062
9063 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9064
9065 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9066 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9067 (host_charset_name, target_charset_name): New vars for use by
9068 set/show commands.
9069 (host_charset_enum, target_charset_enum): New enums for set/show
9070 commands.
9071 (set_charset_sfunc, set_host_charset_sfunc,
9072 set_target_charset_sfunc): New functions.
9073 (set_host_charset, set_target_charset): Make static.
9074 (list_charsets, set_host_charset_command,
9075 set_target_charset_command): Delete functions.
9076 (show_charset_command): Rewrite as....
9077 (show_charset): Hook this up with the set/show command mechanism.
9078 (_initialize_charset): Change names of charsets to match the
9079 set/show enums. Use host_charset_name and target_charset_name.
9080 Use set/show mechanism for charset, host-charset, target-charset
9081 commands. Do not make 'show host-charset' and 'show
9082 target-charset' be aliases of 'show charset'.
9083
9084 * charset.h (set_host_charset, set_target_charset): Don't export,
9085 they are not used outside the file.
9086
9087 2003-05-01 Andrew Cagney <cagney@redhat.com>
9088
9089 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9090 (gdb_disassembly): Make "di" non static, always initialize and
9091 cleanup. Always use dis_asm_read_memory.
9092 (gdb_dis_asm_read_memory): Delete function.
9093
9094 2003-05-01 Andrew Cagney <cagney@redhat.com>
9095
9096 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9097 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9098
9099 2003-04-30 Andrew Cagney <cagney@redhat.com>
9100
9101 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9102 "tm_print_insn_info".
9103 (TARGET_PRINT_INSN_INFO): Delete macro.
9104 (dis_asm_read_memory): Delete function declaration.
9105 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9106 (tm_print_insn_info): Delete variable definition.
9107 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9108 * gdbarch.h, gdbarch.c: Re-generate.
9109 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9110 "deprecated_tm_print_insn_info".
9111 * mcore-tdep.c (mcore_dump_insn): Ditto.
9112 * mips-tdep.c (mips_gdbarch_init): Ditto.
9113 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9114 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9115 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9116 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9117 instead of TARGET_PRINT_INSN_INFO, add comment.
9118 * s390-tdep.c (s390_get_frame_info): Instead of
9119 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9120 (s390_check_function_end, s390_is_sigreturn): Ditto.
9121 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9122 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9123 * disasm.c: Include "gdbcore.h".
9124 (_initialize_disasm): New function, initialize
9125 "deprecated_tm_print_insn_info".
9126 (deprecated_tm_print_insn_info): New variable.
9127 (dis_asm_read_memory): Moved from "corefile.c", made static.
9128 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9129 * Makefile.in (disasm.o): Update dependencies.
9130
9131 2003-04-30 Andrew Cagney <cagney@redhat.com>
9132
9133 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9134
9135 2003-04-29 Adam Fedor <fedor@gnu.org>
9136
9137 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9138 * infcall.c (find_function_addr): Make non-static.
9139 * infcall.h (find_function_addr): Declare.
9140 * Makefile.in (eval.o): Update dependencies.
9141
9142 2003-04-28 Adam Fedor <fedor@gnu.org>
9143
9144 * symtab.c (symbol_find_demangled_name): Check for and demangle
9145 ObjC symbols.
9146 (symbol_init_demangled_name): Init for language_objc as well.
9147
9148 2003-04-28 Andrew Cagney <cagney@redhat.com>
9149
9150 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9151 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9152 * gdbarch.h, gdbarch.c: Re-generate.
9153 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9154 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9155 * inferior.h (deprecated_read_fp): Rename read_fp.
9156 (generic_target_read_fp): Delete declaration.
9157 * regcache.c (generic_target_read_fp): Delete function.
9158 (deprecated_read_fp): Replace read_fp, use
9159 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9160 * d10v-tdep.c (d10v_read_fp): Delete function.
9161 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9162
9163 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9164 deprecated_target_read_fp to generic_target_read_fp.
9165 * sh-tdep.c (sh_gdbarch_init): Ditto.
9166 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9168 * frv-tdep.c (frv_gdbarch_init): Ditto.
9169
9170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9171 deprecated_fp_regnum.
9172 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9173 * vax-tdep.c (vax_gdbarch_init): Ditto.
9174 * v850-tdep.c (v850_gdbarch_init): Ditto.
9175 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9176 * sh-tdep.c (sh_gdbarch_init): Ditto.
9177 * s390-tdep.c (s390_gdbarch_init): Ditto.
9178 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9179 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9181 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9183 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9184 * i386-tdep.c (i386_gdbarch_init): Ditto.
9185 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9186 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9187 * frv-tdep.c (frv_gdbarch_init): Ditto.
9188 * cris-tdep.c (cris_gdbarch_init): Ditto.
9189 * avr-tdep.c (avr_gdbarch_init): Ditto.
9190 * arm-tdep.c (arm_gdbarch_init): Ditto.
9191 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9192
9193 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9194 * v850-tdep.c (v850_gdbarch_init): Ditto.
9195 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9196 * sh-tdep.c (sh_gdbarch_init): Ditto.
9197 * s390-tdep.c (s390_gdbarch_init): Ditto.
9198 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9200 * mips-tdep.c (mips_gdbarch_init): Ditto.
9201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9202 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9203 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9204 * frv-tdep.c (frv_gdbarch_init): Ditto.
9205 * avr-tdep.c (avr_gdbarch_init): Ditto.
9206 * arm-tdep.c (arm_gdbarch_init): Ditto.
9207
9208 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9209 DEPRECATED_FP_REGNUM.
9210 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9211 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9212 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9213 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9214 (sparc32_register_virtual_type): Ditto.
9215 * sh-tdep.c (sh64_frame_chain): Ditto.
9216 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9217 (sh_nofp_frame_init_saved_regs): Ditto.
9218 (sh64_nofp_frame_init_saved_regs): Ditto.
9219 (sh_fp_frame_init_saved_regs): Ditto.
9220 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9221 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9222 * procfs.c (procfs_fetch_registers): Ditto.
9223 (procfs_store_registers): Ditto.
9224 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9225 (store_inferior_registers, fetch_core_registers): Ditto.
9226 (fetch_kcore_registers, clear_regs): Ditto.
9227 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9228 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9229 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9230 * nlm/i386.c (do_status): Ditto.
9231 * mipsv4-nat.c (supply_gregset): Ditto.
9232 * mips-tdep.c: Ditto for comments.
9233 * mips-nat.c (fetch_inferior_registers): Ditto.
9234 (store_inferior_registers, fetch_core_registers): Ditto.
9235 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9236 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9237 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9238 (i386_do_pop_frame, i386_register_type): Ditto.
9239 * hppa-tdep.c (hppa_frame_chain): Ditto.
9240 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9241 (hppa_pop_frame, hppa_read_fp): Ditto.
9242 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9243 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9244 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9245 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9246 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9247 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9248 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9249 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9250 * blockframe.c: Ditto for comments.
9251 * arch-utils.h: Ditto for comments.
9252 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9253 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9254 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9255 * alpha-tdep.h: Ditto for comments.
9256 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9257 (alpha_cannot_store_register): Ditto.
9258 (alpha_push_dummy_frame): Ditto.
9259 * alpha-nat.c (supply_gregset): Ditto.
9260
9261 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9262 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9263 * config/sparc/tm-sparc.h: Update comment.
9264
9265 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9266 deprecated_read_fp instead of TARGET_READ_FP.
9267 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9268 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9269 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9270 deprecated_read_fp instead of read_fp.
9271 * s390-tdep.c (s390_push_arguments): Ditto.
9272 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9273 * frame.h: Ditto in comments.
9274 * frame.c (legacy_get_prev_frame): Ditto.
9275 * dummy-frame.c (dummy_frame_this_id): Ditto.
9276 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9277
9278 2003-04-28 Andrew Cagney <cagney@redhat.com>
9279
9280 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9283 * vax-tdep.c (_initialize_vax_tdep): Update.
9284 * v850-tdep.c (_initialize_v850_tdep): Update.
9285 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9286 * s390-tdep.c (_initialize_s390_tdep): Update.
9287 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9288 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9289 * mips-tdep.c (_initialize_mips_tdep): Update.
9290 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9291 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9292 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9293 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9294 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9295 * frv-tdep.c (_initialize_frv_tdep): Update.
9296 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9297 (_initialize_cris_tdep): Update.
9298 * arch-utils.c (legacy_print_insn): Update.
9299 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9300
9301 2003-04-26 Adam Fedor <fedor@gnu.org>
9302
9303 * linespec.c (decode_objc): New function to decode ObjC calls
9304 (decode_line_1): Check for ObjC calls (using decode_objc)
9305 * Makefile (linespec.o): Update dependencies.
9306
9307 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9308
9309 * breakpoint.h (struct breakpoint_ops): New.
9310 (struct breakpoint): Add ops member.
9311
9312 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9313 (mention): Use new breakpoint ops member.
9314 (set_raw_breakpoint): Initialize ops field to NULL.
9315 (print_exception_catchpoint, print_one_exception_catchpoint)
9316 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9317 (gnu_v3_exception_catchpoint_ops): New.
9318 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9319
9320 2003-04-25 Adam Fedor <fedor@gnu.org>
9321
9322 * Makefile.in (COMMON_OBS): Add objc-lang.o
9323
9324 2003-04-25 Andrew Cagney <cagney@redhat.com>
9325
9326 * d10v-tdep.c (print_insn): Delete function.
9327 (display_trace): Use TARGET_PRINT_INSN.
9328 (_initialize_d10v_tdep): Do not set tm_print_insn.
9329 (d10v_gdbarch_init): Set print_insn.
9330
9331 2003-04-25 Andrew Cagney <cagney@redhat.com>
9332
9333 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9334 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9335 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9336 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9337 (nr_dmap_regs, a0_regnum): ... new functions.
9338 (d10v_print_registers_info): Use a0_regnum, use register_size.
9339 (d10v_register_byte): Delete function.
9340 (d10v_register_raw_size): Delete function.
9341 (d10v_register_type): Use a0_regnum.
9342 (d10v_print_registers_info): Use a0_regnum.
9343 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9344 (d10v_gdbarch_init): Do not set register_byte or
9345 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9346 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9347 extract_address.
9348 (trace_command): Use XCALLOC.
9349 (print_insn): Delete reference to tm_print_insn.
9350 (saved_regs_unwinder): Use store_unsigned_integer instead of
9351 store_address.
9352 * frame.h (FRAME_OBSTACK_CALLOC): Define
9353
9354 2003-04-25 David Carlton <carlton@bactrian.org>
9355
9356 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9357
9358 2003-04-24 Adam Fedor <fedor@gnu.org>
9359
9360 * objc-lang.c: Include "valprint.h"
9361 * Makefile.in (objc-lang.o): Update dependencies.
9362
9363 2003-04-24 Adam Fedor <fedor@gnu.org>
9364
9365 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9366 architecture dependant compilation and mark as unimplemented
9367 (until they get put in the gdbarch vector).
9368
9369 2003-04-23 David Carlton <carlton@bactrian.org>
9370
9371 * cp-support.c (cp_find_first_component): Accept 'operator' in
9372 more locations.
9373
9374 2003-04-23 Andrew Cagney <cagney@redhat.com>
9375
9376 * infcall.c (call_function_by_hand): Eliminate redundant
9377 indentation. Move "saved_async" and "old_cleanups" to where they
9378 are needed.
9379
9380 2003-04-23 Andrew Cagney <cagney@redhat.com>
9381
9382 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9383 and "buffer". Move the "name" code to where it is needed.
9384
9385 2003-04-23 Andrew Cagney <cagney@redhat.com>
9386
9387 * infcall.c (call_function_by_hand): Move variables "start_sp",
9388 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9389 code to ON_STACK switch branch.
9390
9391 2003-04-23 Andrew Cagney <cagney@redhat.com>
9392
9393 * infcall.c (call_function_by_hand): Make declaration of "i",
9394 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9395 lint.
9396
9397 2003-04-23 Andrew Cagney <cagney@redhat.com>
9398
9399 * infcall.c (call_function_by_hand): Delete variable
9400 "n_method_args". Localize "param_type"'s declaration to the loop
9401 that it is used. Reinstate code assigning to said variable -
9402 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9403 Rationalize code using "param_type".
9404
9405 2003-04-22 Andrew Cagney <cagney@redhat.com>
9406
9407 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9408 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9409 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9410 to DEPRECATED_PUSH_RETURN_ADDRESS.
9411
9412 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9413
9414 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9415 on the DWARF2 register number prior to fetching a register.
9416
9417 2003-04-22 J. Brobecker <brobecker@gnat.com>
9418
9419 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9420 Update all the tests using SOFT_FLOAT considering the fact that
9421 this macro was always set to 0.
9422 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9423 considering the fact that this macro was always set to 0.
9424 * hppa-tdep.h (hppa_store_return_value): Likewise.
9425 (hppa_extract_return_value): Likewise.
9426
9427 2003-04-22 J. Brobecker <brobecker@gnat.com>
9428
9429 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9430 the hppa-pro target only.
9431
9432 2003-04-21 J. Brobecker <brobecker@gnat.com>
9433
9434 Ongoing multi-arch conversion effort for HP/UX:
9435 * config/pa/tm-hppa.h: Move all macro that are no longer
9436 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9437 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9438
9439 2003-04-21 J. Brobecker <brobecker@gnat.com>
9440
9441 * config/pa/tm-hppa.h: Obsolete a section that was only used
9442 for hppa-pro.
9443
9444 2003-04-21 J. Brobecker <brobecker@gnat.com>
9445
9446 Ongoing multi-arch conversion for HP/UX.
9447 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9448 if already defined (allows hppa64 to stay non-multiarched for now).
9449 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9450
9451 2003-04-21 Andrew Cagney <cagney@redhat.com>
9452
9453 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9454
9455 2003-04-21 Andrew Cagney <cagney@redhat.com>
9456
9457 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9458 "i386_num_mmx_regs".
9459
9460 2003-04-21 Andrew Cagney <cagney@redhat.com>
9461
9462 * infcall.c: New file.
9463 * infcall.h: New file.
9464 * valarith.c: Include "infcall.h".
9465 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9466 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9467 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9468 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9469 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9470 (SFILES): Add "infcall.c"
9471 (COMMON_OBS): Add "infcall.o".
9472 (infcall.o): Specify dependencies.
9473 * value.h (call_function_by_hand): Delete declaration.
9474 * inferior.h (run_stack_dummy): Delete declaration.
9475 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9476 (run_stack_dummy): Move to "infcall.c", merged into
9477 call_function_by_hand.
9478 * valops.c (call_function_by_hand): Moved to "infcall.c".
9479 (find_function_addr, value_arg_coerce): Ditto.
9480 (unwindonsignal_p, coerce_float_to_double): Ditto.
9481 (_initialize_valops): Move "set/show coerce-float-to-double", and
9482 "set/show unwindonsignal" commands to "infcall.c".
9483 * v850-tdep.c, target.h: Update comments.
9484 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9485 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9486 (sh64_init_extra_frame_info): Update comments.
9487 * mn10300-tdep.c: Update comments.
9488 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9489 * config/sparc/tm-sparc.h: Update comments.
9490 * breakpoint.h: Update comments.
9491 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9492 * arm-tdep.c: Update comment.
9493
9494 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9495
9496 * i386-tdep.c (i386_num_register_names): New variable.
9497 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9498 (MM0_REGNUM): Remove redundant parentheses in define.
9499 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9500 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9501 i386_mxcsr_regnum_p): Remove redundant parentheses.
9502 (i386_register_name): Use i386_num_register_names.
9503
9504 * i386-tdep.c (i386_extract_return_value,
9505 i386_store_return_value): Correct check for availability of
9506 floating-point registers.
9507
9508 * i386-tdep.c (i386_frame_num_args): Remove function.
9509 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9510
9511 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9512 mmx_regnum_to_fp_regnum. Adjust all callers.
9513
9514 * i386-tdep.c (i386_get_longjmp_target): Use
9515 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9516 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9517 extract_address.
9518
9519 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9520
9521 * core-regset.c: Update comments to reflect reality. Re-order
9522 includes.
9523 (fetch_core_registers): Use switch instead of if. Remove
9524 redundant prototype.
9525
9526 2003-04-18 Jim Blandy <jimb@redhat.com>
9527
9528 * s390-tdep.c (s390_frame_align): New function.
9529 (s390_gdbarch_init): Register it with the gdbarch object.
9530
9531 2003-04-17 Richard Henderson <rth@redhat.com>
9532
9533 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9534
9535 2003-04-17 Michael Snyder <msnyder@redhat.com>
9536 Karen Bennet <bennet@redhat.com>
9537
9538 Committed by Elena Zannoni <ezannoni@redhat.com>
9539 * gdb_gcore.sh: New script to create a core dump of a process.
9540
9541 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9542
9543 * values.c (value_being_returned): Don't fetch the return
9544 value if the return type is void.
9545
9546 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9547
9548 * thread-db.c: Reindented.
9549
9550 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9551
9552 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9553 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9554 as types.
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9581
9582 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9583 the size of ``long double'' to 16, instead of 8.
9584
9585 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9586
9587 * i386-linux-nat.c: Add some whitespace to make things more
9588 readable.
9589 (fetch_register, store_register, fetch_inferior_registers,
9590 store_inferior_registers): Get rid of assignment in if-statement.
9591 (store_register): Fix typo in error message.
9592
9593 2003-04-16 Andrew Cagney <cagney@redhat.com>
9594
9595 * utils.c (xmmalloc): Always allocate something, matches
9596 libiberty/xmalloc's semantics.
9597 (xmrealloc, xmcalloc): Ditto.
9598
9599 2003-04-16 Andrew Cagney <cagney@redhat.com>
9600
9601 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9602 update comments.
9603 (get_frame_type): Initialize unwind and type when needed.
9604 (get_frame_id, frame_register_unwind): Ditto.
9605
9606 2003-04-16 Andrew Cagney <cagney@redhat.com>
9607
9608 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9609 obsolete.
9610 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9611 * sparcl-stub.c: Obsolete file.
9612 * config/sparc/tm-sparclet.h: Obsolete file.
9613 * sparclet-stub.c: Obsolete file.
9614 * sparclet-rom.c: Obsolete file.
9615 * sparcl-tdep.c: Obsolete file.
9616 * config/sparc/tm-sparclite.h: Obsolete file.
9617 * config/sparc/sparclite.mt: Obsolete file.
9618 * config/sparc/sparclet.mt: Obsolete file.
9619 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9620 sparc86x-*-* obsolete.
9621
9622 2003-04-15 David Carlton <carlton@math.stanford.edu>
9623
9624 * Makefile.in (SFILES): Add cp-namespace.c.
9625 (COMMON_OBS): Add cp-namespace.o.
9626 (block.o): Depend on gdb_obstack_h and cp_support_h.
9627 (buildsym.o): Depend on cp_support_h.
9628 (cp-namespace.o): New.
9629 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9630 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9631 (dwarf2read.o): Depend on cp_support_h.
9632 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9633 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9634 processing_current_namespace.
9635 (read_namespace): Update processing_current_namespace; check for
9636 anonymous namespaces.
9637 (dwarf2_name): New function.
9638 (dwarf2_extension): Ditto.
9639 * cp-support.h: Update copyright, contributors.
9640 Add inclusion guards.
9641 Add opaque declaration for structs obstack, block, symbol.
9642 (struct using_direct): New struct.
9643 Add declarations for cp_find_first_component,
9644 cp_entire_prefix_len, processing_has_namespace_info,
9645 processing_current_namespace, cp_is_anonymous,
9646 cp_add_using_directive, cp_initialize_namespace,
9647 cp_finalize_namespace, cp_set_block_scope,
9648 cp_scan_for_anonymous_namespaces.
9649 * cp-namespace.c: New file.
9650 * cp-support.c: Update copyright.
9651 Include ctype.h, gdb_assert.h, gdbcmd.h.
9652 New variable maint_cplus_cmd_list.
9653 (cp_find_first_component): New function.
9654 (cp_entire_prefix_len, maint_cplus_command)
9655 (first_component_command, _initialize_cp_support): Ditto.
9656 * buildsym.c: Include cp-support.h.
9657 New variable using_list.
9658 (add_symbol_to_list): Check for anonymous namespaces.
9659 (finish_block): Set block's scope.
9660 (start_symtab): Initialize C++ namespace support.
9661 (end_symtab): Finalize C++ namespace support.
9662 * block.h: Add opaque declarations for structs
9663 block_namespace_info, using_direct, and obstack.
9664 Add declarations for block_set_scope and block_set_using.
9665 (struct block): Add 'language_specific' member.
9666 (BLOCK_NAMESPACE): New macro.
9667 * block.c: Include gdb_obstack.h and cp-support.h.
9668 (struct block_namespace_info): New struct.
9669 (block_set_scope): New function.
9670 (block_set_using, block_initialize_namespace): Ditto.
9671
9672 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9673
9674 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9675 (locate_base): Return early if there aren't any link map offsets.
9676 (svr4_solib_create_inferior_hook): Warn if shared library support
9677 is unavailable.
9678
9679 2003-04-14 David Carlton <carlton@math.stanford.edu>
9680
9681 * symtab.c (symbol_set_names): Add prefix when storing Java names
9682 in hash table. Fix for PR java/1039.
9683
9684 2003-04-14 David Carlton <carlton@math.stanford.edu>
9685
9686 * symtab.c (symbol_set_names): Rename 'name' arg to
9687 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9688 * symtab.h: Change 'name' argument in declaration of
9689 symbol_set_names to 'linkage_name'.
9690 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9691
9692 2003-04-14 Andrew Cagney <cagney@redhat.com>
9693
9694 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9695 return the fully sign-extended register value.
9696 (get_frame_pointer): Ditto.
9697 (mips_pop_frame): Initialize "proc_desc" after checking for a
9698 dummy frame.
9699
9700 2003-04-14 Andrew Cagney <cagney@redhat.com>
9701
9702 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9703 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9704 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9705 (mips_push_register): Delete function.
9706 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9707 PUSH_FP_REGNUM.
9708
9709 2003-04-14 Jim Blandy <jimb@redhat.com>
9710
9711 * symmisc.c: #include "gdb_regex.h".
9712 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9713 functions.
9714 * maint.c (maintenance_list_command): New function.
9715 (_initialize_maint_cmds): Register the above as commands.
9716 * symtab.h (maintenance_list_symtabs,
9717 maintenance_list_psymtabs): New declarations.
9718 * cli/cli-cmds.c (maintenancelistlist): New variable.
9719 (init_cmd_lists): Initialize it.
9720 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9721 * gdbcmd.h (maintenancelistlist): New declaration.
9722 * Makefile.in (symmisc.o): Update dependencies.
9723
9724 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9725
9726 * s390-nat.c: Include asm/types.h for addr_t.
9727
9728 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9729
9730 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9731 actually incoming type.
9732
9733 2003-04-13 Andrew Cagney <cagney@redhat.com>
9734
9735 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9736 get_next_frame and get_frame_saved_regs.
9737
9738 2003-04-13 Andrew Cagney <cagney@redhat.com>
9739
9740 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9741 of gdbarch_num_regs.
9742
9743 2003-04-13 Andrew Cagney <cagney@redhat.com>
9744
9745 * frame.h: Mention what replaced what in "struct frame_info".
9746 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9747 deprecated_update_frame_base_hack and
9748 deprecated_update_frame_pc_hack.
9749 * hppa-tdep.c: Ditto.
9750
9751 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9754 to read_reg and update its comment. Remove regnum member.
9755 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9756 Don't call read_reg when setting in_reg. Call read_reg to get
9757 the frame base if it's in a register. Return the register number
9758 on the stack instead of in the context. Remove extra arguments
9759 to read_reg.
9760 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9761 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9762 the register number on the expression stack.
9763 (needs_frame_read_reg): Remove extra arguments.
9764
9765 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9766
9767 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9768 made non-static.
9769 (execute_stack_op): All callers updated.
9770 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9771 * dwarf2loc.c (find_location_expression): New function.
9772 (dwarf_expr_frame_base): Call it.
9773 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9774 (dwarf2_tracepoint_var_ref): New function, broken out from
9775 locexpr_tracepoint_var_ref.
9776 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9777 Make static.
9778 (loclist_read_variable, loclist_read_needs_frame): New functions.
9779 (loclist_describe_location, loclist_tracepoint_var_ref): New
9780 functions.
9781 (dwarf2_loclist_funcs): New struct location_funcs.
9782 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9783 (struct dwarf2_locexpr_baton): Add comments.
9784 (dwarf2_loclist_funcs): New extern.
9785 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9786 base_address and base_known.
9787 (dwarf_loc_buffer): New variable.
9788 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9789 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9790 (dwarf2_has_info): Initialize dwarf_loc_offset.
9791 (dwarf2_build_psymtabs): Read in .debug_loc.
9792 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9793 DWARF_LOC_SIZE.
9794 (psymtab_to_symtab_1): Likewise. Move base address calculation
9795 here, from...
9796 (dwarf2_get_pc_bounds): ... here. Use the base address from
9797 cu_header.
9798 (dwarf2_symbol_mark_computed): Handle location lists.
9799
9800 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9803 if the linkage name demangled successfully.
9804
9805 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9806
9807 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9808 disassmbly_flavour): Removed.
9809
9810 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9811
9812 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9813
9814 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9815
9816 2003-04-12 Andrew Cagney <cagney@redhat.com>
9817
9818 * frame.h (struct frame_info): Move definition from here ...
9819 * frame.c (struct frame_info): ... to here.
9820
9821 2003-04-12 Andrew Cagney <cagney@redhat.com>
9822
9823 * gdbthread.h (save_infrun_state): Delete parameter
9824 "prev_func_start".
9825 (struct thread_info): Delete field "prev_func_start".
9826 (load_infrun_state): Ditto.
9827 * thread.c (load_infrun_state, save_infrun_state): Update.
9828 * infrun.c (prev_func_start): Delete variable.
9829 (context_switch, init_wait_for_inferior): Update.
9830 (stop_stepping, keep_going): Update.
9831
9832 2003-04-12 Andrew Cagney <cagney@redhat.com>
9833
9834 * gdbarch.sh: Add missing opaque declarations.
9835 * gdbarch.h: Regnerate.
9836 * symtab.h: Add missing opaque declarations.
9837 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9838 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9839 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9840 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9841 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9842 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9843 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9844 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9845 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9846 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9847 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9848 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9849 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9850
9851 2003-04-11 Andrew Cagney <cagney@redhat.com>
9852
9853 * frame.c (get_frame_id): Return this frame's "id".
9854 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9855 function start.
9856 (legacy_saved_regs_this_id): Replace function body with
9857 internal-error.
9858 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9859 FRAME_OBSTACK_ZALLOC.
9860 (create_new_frame): Mark the frame ID as valid.
9861
9862 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9863
9864 * Makefile.in (libbfd_h): Added missing setting.
9865 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9866 according to the selected ABI.
9867
9868 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9869
9870 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9871
9872 2003-04-11 Andrew Cagney <cagney@redhat.com>
9873
9874 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9875 SAVED_PC_AFTER_CALL.
9876 * gdbarch.h, gdbarch.c: Regenerate.
9877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9878 * x86-64-tdep.c (x86_64_init_abi): Update.
9879 * vax-tdep.c (vax_gdbarch_init): Update.
9880 * v850-tdep.c (v850_gdbarch_init): Update.
9881 * sparc-tdep.c (sparc_gdbarch_init): Update.
9882 * sh-tdep.c (sh_gdbarch_init): Update.
9883 * s390-tdep.c (s390_gdbarch_init): Update.
9884 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9885 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9886 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9887 * mips-tdep.c (mips_gdbarch_init): Update.
9888 * mcore-tdep.c (mcore_gdbarch_init): Update.
9889 * m68k-tdep.c (m68k_gdbarch_init): Update.
9890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9891 * ia64-tdep.c (ia64_gdbarch_init): Update.
9892 (ia64_saved_pc_after_call): Update declaration.
9893 * i386ly-tdep.c (i386lynx_init_abi): Update.
9894 * i386-tdep.c (i386_gdbarch_init): Update.
9895 * hppa-tdep.c (hppa_gdbarch_init): Update.
9896 * h8300-tdep.c (h8300_gdbarch_init): Update.
9897 * frv-tdep.c (frv_gdbarch_init): Update.
9898 * cris-tdep.c (cris_gdbarch_init): Update.
9899 * avr-tdep.c (avr_gdbarch_init): Update.
9900 * arm-tdep.c (arm_gdbarch_init): Update.
9901 * alpha-tdep.c (alpha_gdbarch_init): Update.
9902 * ns32knbsd-nat.c (frame_num_args): Update.
9903 * ns32k-tdep.c (umax_frame_num_args): Update.
9904 * mips-tdep.c (mips_init_frame_pc_first): Update.
9905 * infrun.c (step_over_function): Update.
9906 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9907 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9908 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9909 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9910 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9911 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9912 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9913 * arch-utils.c (init_frame_pc_default): Update.
9914 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9915 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9916 declaration.
9917
9918 2003-04-11 Andrew Cagney <cagney@redhat.com>
9919
9920 * i387-tdep.c: Update copyright.
9921 (i387_to_double): Delete function.
9922 (double_to_i387): Delete function.
9923
9924 2003-04-10 Andrew Cagney <cagney@redhat.com>
9925
9926 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9927 frame's function's address. Simplify.
9928 (d10v_frame_unwind_cache): Check that the frame's function is
9929 non-zero.
9930
9931 2003-04-10 Jim Blandy <jimb@redhat.com>
9932
9933 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9934 call to set_gdbarch_deprecated_push_arguments.
9935
9936 2003-04-10 Andrew Cagney <cagney@redhat.com>
9937
9938 * frame.c (fprint_frame_id): New function.
9939 (fprint_frame_type, fprint_frame): New function.
9940 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9941 (create_sentinel_frame, get_frame_id): Ditto.
9942 (frame_id_p, frame_id_eq): Ditto.
9943 (frame_id_inner, create_new_frame): Ditto.
9944 (legacy_get_prev_frame, get_prev_frame): Ditto.
9945 (deprecated_update_frame_pc_hack): Ditto.
9946 (frame_register_unwind): Ditto.
9947 (deprecated_update_frame_base_hack): Ditto.
9948
9949 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9950
9951 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9952 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9953 frame_chain function.
9954 * Makefile.in: Add dependencies due to above change.
9955
9956 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9957
9958 * blockframe.c (legacy_frame_chain_valid): Move call to
9959 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9960 inside_entry_file.
9961
9962 2003-04-09 Andrew Cagney <cagney@redhat.com>
9963
9964 * frame.h (struct frame_id): Replace "pc" and "base" with
9965 "stack_addr" and "code_addr". Update comments.
9966 (frame_id_build): Update parameter names and comment.
9967 (struct frame_info): Replace "id_p" and "id" with "this_id".
9968 * dummy-frame.c (dummy_frame_this_id): Update.
9969 * breakpoint.c (print_one_breakpoint): Update.
9970 * frame.c (get_frame_id): Update.
9971 (get_frame_base, frame_id_build): Update.
9972 (create_sentinel_frame, legacy_get_prev_frame): Update.
9973 (deprecated_update_frame_base_hack): Update.
9974 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9975 (frame_id_inner): Ditto.
9976
9977 2003-04-09 Andrew Cagney <cagney@redhat.com>
9978
9979 * defs.h (gdb_print_host_address): Make "addr" parameter a
9980 pointer constant.
9981 * utils.c (gdb_print_host_address): Update.
9982
9983 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9984
9985 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9986 register number for R0 is 0.
9987
9988 2003-04-09 J. Brobecker <brobecker@gnat.com>
9989
9990 * frame.h (struct gdbarch): Add opaque structure definition
9991 to avoid a compilation warning on LynxOS 4.0.
9992
9993 2003-04-09 Andrew Cagney <cagney@redhat.com>
9994
9995 * frame.h (struct frame_info): Delete field "pc". Replace
9996 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9997 structure.
9998 * frame.c (frame_pc_unwind): Update.
9999 (create_sentinel_frame): Do not set "pc".
10000 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10001 (get_frame_pc): Call frame_pc_unwind.
10002 (deprecated_update_frame_pc_hack): Update.
10003 (create_new_frame): Use "pc" not "->pc".
10004
10005 2003-04-09 Andrew Cagney <cagney@redhat.com>
10006
10007 * frame.c (get_frame_id): Eliminate code updating "frame".
10008 (legacy_get_prev_frame): Ditto.
10009 (get_frame_base): Return id.base directly.
10010 (deprecated_update_frame_base_hack): Update "id.base".
10011 * frame.h (struct frame_info): Delete field "frame".
10012
10013 2003-04-09 Andrew Cagney <cagney@redhat.com>
10014
10015 * NEWS: Mention that the "Sequent family" is obsolete.
10016 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10017 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10018 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10019 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10020 * config/i386/tm-ptx4.h: Obsolete file.
10021 * config/i386/tm-ptx.h: Obsolete file.
10022 * symm-tdep.c: Obsolete file.
10023 * config/i386/symmetry.mt: Obsolete file.
10024 * config/i386/tm-symmetry.h: Obsolete file.
10025 * symm-nat.c: Obsolete file.
10026 * config/i386/nm-symmetry.h: Obsolete file.
10027 * config/i386/xm-symmetry.h: Obsolete file.
10028 * config/i386/symmetry.mh: Obsolete file.
10029 * config/i386/nm-ptx4.h: Obsolete file.
10030 * config/i386/ptx4.mh: Obsolete file.
10031 * config/i386/ptx.mt: Obsolete file.
10032 * config/i386/ptx.mh: Obsolete file.
10033 * config/i386/xm-ptx4.h: Obsolete file.
10034 * config/i386/xm-ptx.h: Obsolete file.
10035
10036 2003-04-09 Andrew Cagney <cagney@redhat.com>
10037
10038 Obsolete mips*-*-mach3*.
10039 * NEWS: Mention that mips*-*-mach3* is obsolete.
10040 * m3-nat.c: Obsolete file.
10041 * config/nm-m3.h: Obsolete file.
10042 * config/mips/tm-mipsm3.h: Obsolete file.
10043 * config/mips/mipsm3.mt: Obsolete file.
10044 * config/mips/mipsm3.mh: Obsolete file.
10045 * config/mips/xm-mipsm3.h: Obsolete file.
10046 * mipsm3-nat.c: Obsolete file.
10047 * configure.host: Obsolete mips-dec-mach3*.
10048 * configure.tgt: Obsolete mips*-*-mach3*.
10049
10050 2003-04-09 Andrew Cagney <cagney@redhat.com>
10051
10052 * doublest.h: Update copyright.
10053 (deprecated_store_floating, deprecated_extract_floating): Rename
10054 store_floating and extract_floating. Update comments.
10055 * doublest.c: Update copyright.
10056 (extract_floating_by_length): Replace extract_floating.
10057 (store_floating_by_length): Replace store_floating.
10058 (deprecated_extract_floating): New function.
10059 (deprecated_store_floating): New function.
10060 (extract_typed_floating): Call extract_floating_by_length.
10061 (store_typed_floating): Call store_floating_by_length.
10062 * x86-64-tdep.c (x86_64_store_return_value): Update.
10063 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10064 (sh64_extract_return_value): Update.
10065 (sh_sh4_register_convert_to_virtual): Update.
10066 (sh_sh64_register_convert_to_virtual): Update.
10067 (sh_sh4_register_convert_to_raw): Update.
10068 (sh_sh64_register_convert_to_raw): Update.
10069 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10070 (rs6000_register_convert_to_raw): Update.
10071 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10072 (ia64_register_convert_to_raw): Update.
10073 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10074 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10075 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10076 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10077 (alpha_register_convert_to_raw): Update.
10078
10079 2003-04-08 Andrew Cagney <cagney@redhat.com>
10080
10081 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10082 * gdbarch.h, gdbarch.c: Re-generate.
10083 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10084 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10085 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10086 conditionally, use frame_pc_unwind as an alternative. Add
10087 comments.
10088 * arch-utils.c (init_frame_pc_default): Only call
10089 SAVED_PC_AFTER_CALL when available.
10090
10091 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10092
10093 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10094 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10095 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10096 (start_remote): Ditto.
10097 (handle_inferior_event): Ditto.
10098 (save_inferior_status): Ditto.
10099 (restore_inferior_status): Ditto.
10100 * infcmd.c (attach_command): Ditto.
10101 * fork-child.c (startup_inferior): Ditto.
10102 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10103 * alpha-tdep.c (heuristic_proc_start): Ditto.
10104 * mips-tdep.c (heuristic_proc_start): Ditto.
10105 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10106 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10107 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10108 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10109 * remote-vx.c (vx_create_inferior): Ditto.
10110
10111 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10112
10113 * infrun.c (stop_soon_quietly): Make it an enum, to better
10114 override the default behavior of handle_inferior_event.
10115 (clear_proceed_status): Update uses of stop_soon_quietly to
10116 reflect that it is now an enum.
10117 (start_remote): Ditto.
10118 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10119 is set to handle the new GNU/Linux kernel behavior for
10120 attach/sigstop. Update uses of stop_soon_quietly.
10121 * inferior.h (enum stop_kind): New enum.
10122 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10123 Reset normal handle_inferior_event behavior, afterwards.
10124 * fork-child.c (startup_inferior): Update.
10125 * alpha-tdep.c (heuristic_proc_start): Update.
10126 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10127 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10128 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10129 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10130 * remote-vx.c (vx_create_inferior): Update.
10131 * mips-tdep.c (heuristic_proc_start): Update.
10132
10133 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10134
10135 * disasm.c (dump_insns): Move variables inside loop, or they will
10136 be freed more than once, causing wild memory corruptions.
10137 (gdb_disassembly): Look for the substring "-thread",
10138 instead of "-threads" in the target name, to make sure to find
10139 the 'multi-thread' target. Also, make sure we do the right thing
10140 with the "core" target.
10141
10142 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10143
10144 * mips-tdep.c (mips_print_fp_register): New function, created from
10145 do_fp_register_row(). Registers are now (also) printed as hex.
10146 Only one register is printed per row.
10147 (mips_print_register, do_fp_register_row): Print floating point
10148 registers with mips_print_fp_register().
10149
10150 2003-04-06 Andrew Cagney <cagney@redhat.com>
10151
10152 * valprint.h (inspect_it): Add extern declaration.
10153 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10154 (selectors_info, classes_info): Ditto.
10155 (find_objc_msgcall): Fix indentation.
10156 (objc_printstr): Delete extern declarations.
10157
10158 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10159
10160 2003-04-06 Andrew Cagney <cagney@redhat.com>
10161
10162 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10163 Update comment.
10164 * frame.c (legacy_saved_regs_this_id): Update.
10165 (legacy_get_prev_frame): Update.
10166 * xstormy16-tdep.c: Update comment.
10167 * sparc-tdep.c (sparc_frame_chain): Update comment.
10168 * blockframe.c (legacy_frame_chain_valid): Update.
10169
10170 2003-04-06 Andrew Cagney <cagney@redhat.com>
10171
10172 * valprint.c (val_print_type_code_int): Delete #ifdef
10173 PRINT_TYPELESS_INTEGER code.
10174
10175 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10176 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10177 multi-arch definition.
10178 * gdbarch.h: Re-generate.
10179
10180 2003-04-05 Andrew Cagney <cagney@redhat.com>
10181
10182 Eliminate FRAME_FIND_SAVED_REGS.
10183 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10184 Change FSR parameter to a pointer.
10185 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10186 Assume FSR parameter is a pointer.
10187 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10188 Make fsr a pointer.
10189 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10190 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10191 saved_regs a pointer.
10192 (hppa_frame_saved_pc): Ditto.
10193 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10194 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10195 pointer.
10196 (restore_pc_queue): Make fsr a pointer.
10197 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10198 (hppa_frame_chain): Make saved_regs a pointer, call
10199 hppa_frame_init_saved_regs.
10200 * sparc-tdep.c: Include "gdb_assert.h".
10201 (sparc_frame_find_saved_regs): Replace internal_error with
10202 gdb_assert.
10203 * remote-vxsparc.c (vx_read_register): Delete reference to
10204 FRAME_FIND_SAVED_REGS.
10205 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10206 * gdbarch.h: Regenerate.
10207 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10208 (deprecated_get_frame_saved_regs): Delete declaration.
10209 (struct frame_saved_regs): Delete definition.
10210 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10211 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10212 (hppa_frame_find_saved_regs): Delete declaration.
10213 (FRAME_FIND_SAVED_REGS): Delete macro.
10214 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10215 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10216 FRAME_FIND_SAVED_REGS in comment.
10217
10218 2003-04-05 Andrew Cagney <cagney@redhat.com>
10219
10220 * frame.c (frame_func_unwind, get_frame_func): New functions.
10221 * frame.h (get_frame_func, frame_func_unwind): Declare.
10222 (struct frame_info): Add field "prev_func" for caching the
10223 previous frame's function address.
10224 * arm-tdep.c (arm_frameless_function_invocation): Combine
10225 get_pc_function_start and get_frame_pc into get_frame_func.
10226 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10227 (sh64_nofp_frame_init_saved_regs): Ditto.
10228 * s390-tdep.c (s390_function_start): Ditto.
10229 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10230 (rs6000_frameless_function_invocation): Ditto.
10231 (rs6000_frame_saved_pc): Ditto.
10232 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10233 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10234 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10235 (i386_frame_init_saved_regs): Ditto.
10236 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10237 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10238 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10239 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10240 * blockframe.c (frameless_look_for_prologue): Ditto.
10241
10242 2003-04-05 Andrew Cagney <cagney@redhat.com>
10243
10244 * frame.c (legacy_get_prev_frame): Link prev to next at the
10245 function start. Update comments.
10246
10247 2003-04-05 Andrew Cagney <cagney@redhat.com>
10248
10249 * frame.c (get_frame_id): Update comment.
10250 (legacy_get_prev_frame): Update comment.
10251 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10252 * gdbarch.h: Regenerate.
10253 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10254 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10255
10256 2003-04-05 Andrew Cagney <cagney@redhat.com>
10257
10258 * stack.c (print_frame_info): Use get_frame_pc.
10259
10260 2003-04-04 Andrew Cagney <cagney@redhat.com>
10261
10262 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10263 the frame's type from the unwinder.
10264 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10265 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10266 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10267 (get_frame_base_address): Use get_frame_type.
10268 (get_frame_locals_address, get_frame_args_address): Ditto.
10269 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10270 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10271 (struct frame_info): Add comment explaining why the frame contains
10272 a "type" field.
10273 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10274 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10275 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10276 NORMAL_FRAME.
10277 * frame-unwind.h: Include "frame.h".
10278 (struct frame_unwind): Add "type" field.
10279 * Makefile.in (frame_unwind_h): Add $(frame_h).
10280
10281 2003-04-04 Andrew Cagney <cagney@redhat.com>
10282
10283 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10284 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10285 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10286 get_frame_base.
10287 (d10v_unwind_dummy_id): Use frame_id_build.
10288 * frame.c (find_frame_sal): Use get_frame_pc.
10289 (create_new_frame): Use deprecated_update_frame_pc_hack and
10290 deprecated_update_frame_base_hack.
10291 (create_sentinel_frame): Add comment about ->pc going away.
10292 (get_prev_frame): Add comment about ->pc going away.
10293 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10294 frame_id_build, deprecated_update_frame_pc_hack and
10295 deprecated_update_frame_base_hack.
10296 (select_frame): Use get_frame_pc.
10297 (legacy_saved_regs_this_id): Use frame_id_build.
10298
10299 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10300
10301 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10302 signed integer case.
10303 (classify_argument): Handle enumerations and references.
10304
10305 2003-04-04 Andrew Cagney <cagney@redhat.com>
10306
10307 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10308 ID to NULL.
10309
10310 2003-04-01 Adam Fedor <fedor@gnu.org>
10311
10312 * gdb/objc-lang.c (selectors_info): Replace calls to
10313 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10314 SYMBOL_NATURAL_NAME.
10315 (classes_info, find_methods): Likewise.
10316
10317 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10318
10319 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10320 ``mach'' to the value determined by bfd_default_set_arch_mach().
10321
10322 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10323
10324 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10325 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10326 (mi-cmd-file.o): Update dependencies.
10327
10328 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10329
10330 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10331 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10332
10333 2003-04-01 Adam Fedor <fedor@gnu.org>
10334
10335 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10336 * language.h (struct language_defn): Add la_demangle.
10337 (language_demangle): Declare.
10338 * language.c (language_demangle): New function.
10339 (unk_lang_demangle): Likewise.
10340 (unknown_language_defn, auto_language_defn, local_language_defn):
10341 Add ukn_lang_demangle.
10342 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10343 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10344 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10345 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10346 * jv-lang.c (java_demangle): New function
10347 (java_language_defn): Use it for la_demangle element.
10348 * objc-lang.c (objc_demangle): Add options argument
10349 (objc_language_defn): Use objc_demangle for la_demangle element.
10350 * maint.c (maintenance_demangle): Replace switch with
10351 call to language_demangle.
10352 * utils.c (fprintf_symbol_filtered): Likewise.
10353
10354 2003-04-01 Andrew Cagney <cagney@redhat.com>
10355
10356 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10357 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10358 PRINT_TYPELESS_INTEGER.
10359 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10360 PUSH_RETURN_ADDRESS.
10361
10362 2003-04-01 Andrew Cagney <cagney@redhat.com>
10363
10364 * Makefile.in (d10v-tdep.o): Update dependencies.
10365 * d10v-tdep.c: Include "frame-base.h".
10366 (d10v_frame_unwind): Make constant.
10367 (d10v_frame_base_address): New function.
10368 (d10v_frame_base): New variable.
10369 (d10v_gdbarch_init): Set frame_base default.
10370 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10371 comment for base.
10372 (d10v_frame_unwind_cache): Set and use "prev_sp".
10373 (d10v_frame_this_id): Use the previous frame's inner most stack
10374 address and this frame's func address for the frame ID. Use
10375 frame_id_build. Don't analyze beyond the current instruction.
10376
10377 2003-04-01 Andrew Cagney <cagney@redhat.com>
10378
10379 * frame.h (get_frame_locals_address, get_frame_args_address):
10380 Refer to the base address, instead of the address of the first
10381 local or parameter.
10382
10383 2003-04-01 Andrew Cagney <cagney@redhat.com>
10384
10385 Add frame debug info addresses:
10386 * frame-base.c: New file.
10387 * frame-base.h: New file.
10388 * frame.h (struct frame_base): Add opaque declaration.
10389 (get_frame_base): Update comment.
10390 (get_frame_base_address): Declare.
10391 (get_frame_locals_address): Declare.
10392 (get_frame_args_address): Declare.
10393 (struct frame_info): Add "base" and "base_cache". Update
10394 comments on the unwinder.
10395 * frame.c: Include "frame-base.h".
10396 (get_frame_locals_address): New function.
10397 (get_frame_base_address): New function.
10398 (get_frame_args_address): New function.
10399 * findvar.c (read_var_value): Use get_frame_locals_address and
10400 get_frame_args_address.
10401 * stack.c (frame_info): Use get_frame_locals_address and
10402 get_frame_args_address.
10403 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10404 moved to "frame-base.c".
10405 * printcmd.c (print_frame_nameless_args): Ditto.
10406 * symtab.h (address_class): Update comments.
10407 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10408 get_frame_base_address.
10409 * dwarf2expr.c (execute_stack_op): Ditto.
10410 * Makefile.in (frame_base_h): Define.
10411 (frame.o): Update dependencies.
10412 (frame-base.o): Add dependencies.
10413 (SFILES): Add frame-base.c.
10414 (COMMON_OBS): Add frame-base.o.
10415
10416 2003-04-01 Andrew Cagney <cagney@redhat.com>
10417
10418 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10419 CALL_DUMMY_LENGTH): Ditto.
10420 * gdbarch.c: Re-generate.
10421 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10422 (CALL_DUMMY_LENGTH): Delete macro.
10423 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10424 * arm-tdep.c (arm_gdbarch_init): Ditto.
10425 * avr-tdep.c (avr_gdbarch_init): Ditto.
10426 * cris-tdep.c (cris_gdbarch_init): Ditto.
10427 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10428 * frv-tdep.c (frv_gdbarch_init): Ditto.
10429 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10430 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10431 * i386-tdep.c (i386_gdbarch_init): Ditto.
10432 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10434 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10435 * mips-tdep.c (mips_gdbarch_init): Ditto.
10436 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10437 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10438 * s390-tdep.c (s390_gdbarch_init): Ditto.
10439 * sh-tdep.c (sh_gdbarch_init): Ditto.
10440 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10441 * v850-tdep.c (v850_gdbarch_init): Ditto.
10442 * vax-tdep.c (vax_gdbarch_init): Ditto.
10443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10444
10445 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10446
10447 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10448
10449 2003-04-01 Andrew Cagney <cagney@redhat.com>
10450
10451 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10452 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10453 * gdbarch.h, gdbarch.c: Re-generate.
10454 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10455 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10456 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10457 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10458 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10459 * infcmd.c (run_stack_dummy): Simplify assuming
10460 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10461 * infrun.c (handle_inferior_event): Ditto.
10462 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10463 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10464 * arm-tdep.c (arm_gdbarch_init): Ditto.
10465 * avr-tdep.c (avr_gdbarch_init): Ditto.
10466 * cris-tdep.c (cris_gdbarch_init): Ditto.
10467 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10468 * frv-tdep.c (frv_gdbarch_init): Ditto.
10469 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10470 * i386-tdep.c (i386_gdbarch_init): Ditto.
10471 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10473 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10474 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10475 * mips-tdep.c (mips_gdbarch_init): Ditto.
10476 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10477 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10478 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10479 * s390-tdep.c (s390_gdbarch_init): Ditto.
10480 * sh-tdep.c (sh_gdbarch_init): Ditto.
10481 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10482 * v850-tdep.c (v850_gdbarch_init): Ditto.
10483 * vax-tdep.c (vax_gdbarch_init): Ditto.
10484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10485
10486 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10487
10488 * symfile.c (symfile_relocate_debug_section): Update call to
10489 bfd_simple_get_relocated_section_contents.
10490
10491 2003-03-31 Andrew Cagney <cagney@redhat.com>
10492
10493 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10494 * gdbarch.h, gdbarch.c: Regenerate.
10495 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10496 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10497 available.
10498 * frame.h (generic_fix_call_dummy): Delete declaration.
10499 * dummy-frame.h: Update comment.
10500 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10502 fix_call_dummy.
10503 * sh-tdep.c (sh_gdbarch_init): Ditto.
10504 * s390-tdep.c (s390_gdbarch_init): Ditto.
10505 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10506 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10508 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10509 * i386-tdep.c (i386_gdbarch_init): Ditto.
10510 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10511 * frv-tdep.c (frv_gdbarch_init): Ditto.
10512 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10513 * cris-tdep.c (cris_gdbarch_init): Ditto.
10514 * avr-tdep.c (avr_gdbarch_init): Ditto.
10515 * arm-tdep.c (arm_gdbarch_init): Ditto.
10516
10517 2003-03-31 J. Brobecker <brobecker@gnat.com>
10518
10519 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10520 (INIT_FRAME_AP): Likewise.
10521 (EXTRA_FRAME_INFO): Likewise.
10522
10523 2003-03-31 Andrew Cagney <cagney@redhat.com>
10524
10525 * gdbarch.sh: Include "symfile.h".
10526 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10527 * gdbarch.h, gdbarch.c: Re-generate.
10528 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10530 call_dummy_address, the default is at entry_point_address.
10531 * v850-tdep.c (v850_gdbarch_init): Ditto.
10532 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10533 * sh-tdep.c (sh_gdbarch_init): Ditto.
10534 * s390-tdep.c (s390_gdbarch_init): Ditto.
10535 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10536 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10537 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10538 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10539 * i386-tdep.c (i386_gdbarch_init): Ditto.
10540 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10541 * frv-tdep.c (frv_gdbarch_init): Ditto.
10542 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10543 * cris-tdep.c (cris_gdbarch_init): Ditto.
10544 * arm-tdep.c (arm_gdbarch_init): Ditto.
10545
10546 2003-03-31 Andrew Cagney <cagney@redhat.com>
10547
10548 * gdbarch.sh (CALL_DUMMY_P): Delete.
10549 * gdbarch.h, gdbarch.c: Re-generate.
10550 * inferior.h (CALL_DUMMY_P): Delete macro.
10551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10552 * vax-tdep.c (vax_gdbarch_init): Update.
10553 * v850-tdep.c (v850_gdbarch_init): Update.
10554 * sparc-tdep.c (sparc_gdbarch_init): Update.
10555 * sh-tdep.c (sh_gdbarch_init): Update.
10556 * s390-tdep.c (s390_gdbarch_init): Update.
10557 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10558 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10560 * mips-tdep.c (mips_gdbarch_init): Update.
10561 * mcore-tdep.c (mcore_gdbarch_init): Update.
10562 * m68k-tdep.c (m68k_gdbarch_init): Update.
10563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10564 * ia64-tdep.c (ia64_gdbarch_init): Update.
10565 * i386-tdep.c (i386_gdbarch_init): Update.
10566 * h8300-tdep.c (h8300_gdbarch_init): Update.
10567 * frv-tdep.c (frv_gdbarch_init): Update.
10568 * d10v-tdep.c (d10v_gdbarch_init): Update.
10569 * cris-tdep.c (cris_gdbarch_init): Update.
10570 * breakpoint.c (deprecated_frame_in_dummy): Update.
10571 * avr-tdep.c (avr_gdbarch_init): Update.
10572 * alpha-tdep.c (alpha_gdbarch_init): Update.
10573 * arm-tdep.c (arm_gdbarch_init): Update.
10574 * dummy-frame.c (dummy_frame_this_id): Update comments.
10575 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10576 * frame.c (legacy_get_prev_frame): Ditto.
10577 * valops.c (call_function_by_hand): Delete function.
10578 (hand_function_call): Rename to call_function_by_hand
10579
10580 2003-03-30 Andrew Cagney <cagney@redhat.com>
10581
10582 2002-11-10 Klee Dienes <kdienes@apple.com>
10583 * value.h (struct value): Update comment.
10584
10585 2003-03-30 Andrew Cagney <cagney@redhat.com>
10586
10587 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10588 D10V_FP_REGNUM.
10589 (d10v_gdbarch_init): Do not set fp_regnum.
10590
10591 * frame.c (get_frame_base): Force ID initialization.
10592 (get_prev_frame): Move computation of the frame ID from here ...
10593 (get_frame_id): ... to here.
10594 (legacy_get_prev_frame): Mark the frame ID as valid.
10595 * frame.h (struct frame_info): Add field "id_p".
10596
10597 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10598
10599 * i386-tdep.c (i386_store_struct_return): Removed.
10600 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10601
10602 2003-03-30 Andrew Cagney <cagney@redhat.com>
10603
10604 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10605 * gdbarch.h, gdbarch.c: Regenerate.
10606 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10608 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10609 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10610 * i386-tdep.c (i386_gdbarch_init): Ditto.
10611 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10612 * cris-tdep.c (cris_gdbarch_init): Ditto.
10613 * vax-tdep.c (vax_gdbarch_init): Ditto.
10614 * s390-tdep.c (s390_gdbarch_init): Ditto.
10615 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10617 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10618 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10619 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10620 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10621 * sparc-tdep.c (sparc_gdbarch_init): Update.
10622 * sh-tdep.c (sh_gdbarch_init): Update.
10623 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10624 * mips-tdep.c (mips_gdbarch_init): Update.
10625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10626 * ia64-tdep.c (ia64_gdbarch_init): Update.
10627 * frv-tdep.c (frv_gdbarch_init): Update.
10628 * avr-tdep.c (avr_gdbarch_init): Update.
10629 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10630 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10631 instead of when push_dummy_call is not available.
10632
10633 2003-03-30 Andrew Cagney <cagney@redhat.com>
10634
10635 * infttrace.c: Include "gdbthread.h".
10636 (parent_attach_all): Fix function signature.
10637 (call_ptrace): Update call.
10638 * Makefile.in (infttrace.o): Update dependencies.
10639
10640 2003-03-30 Andrew Cagney <cagney@redhat.com>
10641
10642 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10643 PUSH_RETURN_ADDRESS.
10644 * gdbarch.h, gdbarch.c: Regenerate.
10645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10646 * x86-64-tdep.c (x86_64_init_abi): Update.
10647 * v850-tdep.c (v850_gdbarch_init): Update.
10648 * sparc-tdep.c (sparc_gdbarch_init): Update.
10649 * sh-tdep.c (sh_gdbarch_init): Update.
10650 * s390-tdep.c (s390_gdbarch_init): Update.
10651 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10652 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10653 * mips-tdep.c (mips_gdbarch_init): Update.
10654 * mcore-tdep.c (mcore_gdbarch_init): Update.
10655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10656 * ia64-tdep.c (ia64_gdbarch_init): Update.
10657 * i386-tdep.c (i386_gdbarch_init): Update.
10658 * h8300-tdep.c (h8300_gdbarch_init): Update.
10659 * frv-tdep.c (frv_gdbarch_init): Update.
10660 * cris-tdep.c (cris_gdbarch_init): Update.
10661 * avr-tdep.c (avr_gdbarch_init): Update.
10662 * arm-tdep.c (arm_gdbarch_init): Update.
10663 * valops.c (hand_function_call): Update.
10664
10665 2003-03-29 Andrew Cagney <cagney@redhat.com>
10666
10667 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10668 sizeof_call_dummy_words.
10669 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10670 define.
10671 * gdbarch.h: Regenerate.
10672
10673 2003-03-29 Andrew Cagney <cagney@redhat.com>
10674
10675 * infttrace.h: New file.
10676 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10677 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10678 (hpread_read_doc_function_type): Detect an initialized type1.
10679 (hpread_quick_traverse): Initialize mod_name_string.
10680 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10681 (som_solib_get_solib_by_pc): Declare.
10682 (so_lib_thread_start_addr): Declare.
10683 (no_shared_libraries): Declare.
10684 * somread.c (init_import_symbols): Make static. Add forward
10685 declaration.
10686 * config/pa/nm-hppah.h: Include "infttrace.h" for
10687 parent_attach_all.
10688 (hppa_insert_hw_watchpoint): Declare.
10689 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10690 * hppah-nat.c: Include "gdb_string.h".
10691 (parent_attach_all): Delete extern declaration, moved to
10692 "infttrace.h".
10693 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10694 int.
10695 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10696 * Makefile.in (infttrace_h): Define.
10697 (hpread.o): Update dependencies.
10698 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10699 * hppa-hpux-tdep.c: Include "gdb_string.h".
10700 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10701 * infrun.c (handle_inferior_event): Always initialize
10702 stepped_after_stopped_by_watchpoint. Add default and remove
10703 fallthrough in switch statement.
10704 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10705 parameter to int.
10706 (hppa_remove_hw_watchpoint): Ditto.
10707
10708 2003-03-29 Andrew Cagney <cagney@redhat.com>
10709
10710 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10711 offset.
10712
10713 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10714
10715 * arm-tdep.c (arm_push_arguments): Delete.
10716 (struct stack_item): New type.
10717 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10718 (arm_store_struct_return): Delte.
10719 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10720 arm_push_arguments or arm_store_struct_return.
10721
10722 2003-03-28 Andrew Cagney <cagney@redhat.com>
10723
10724 * Makefile.in (d10v-tdep.o): Update dependencies.
10725 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10726 * d10v-tdep.c: Include "remote.h".
10727 (target_resume_hook): Delete extern declaration.
10728 (target_wait_loop_hook): Ditto.
10729 (tdisassemble_command): Eliminate assignment in "if" conditional.
10730 (d10v_ts2_register_sim_regno): Eliminate call to
10731 legacy_register_sim_regno.
10732 (d10v_ts3_register_sim_regno): Ditto.
10733
10734 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10735
10736 * thread.c: Reindented.
10737 * lin-lwp.c: Ditto.
10738 * linux-proc.c: Ditto.
10739
10740 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10741
10742 * MAINTAINERS (write after approval): Add myself.
10743
10744 2003-03-27 Theodore A. Roth <troth@openavr.org>
10745
10746 * objc-exp.y: Add missing semi-colons.
10747
10748 2003-03-27 Andrew Cagney <cagney@redhat.com>
10749
10750 * regcache.c (write_sp): Delete function and references.
10751 * inferior.h (write_sp): Delete declaration.
10752 * valops.c (hand_function_call): Replace write_sp with
10753 TARGET_WRITE_SP.
10754 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10755 (sparc_pop_frame): Ditto.
10756
10757 2003-03-27 Andrew Cagney <cagney@redhat.com>
10758
10759 * NEWS: Mention removal of support for hppa*-*-bsd* and
10760 hppa*-*-osf* natives, and hppa*-*-pro* target.
10761 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10762 * config/pa/xm-pa.h: Obsolete file.
10763 * config/pa/xm-hppab.h: Obsolete file.
10764 * config/pa/nm-hppab.h: Obsolete file.
10765 * config/pa/tm-hppab.h: Obsolete file.
10766 * config/pa/tm-hppao.h: Obsolete file.
10767 * config/pa/nm-hppao.h: Obsolete file.
10768 * config/pa/tm-pro.h: Obsolete file.
10769 * config/pa/hppaosf.mt: Obsolete file.
10770 * config/pa/hppaosf.mh: Obsolete file.
10771 * config/pa/hppapro.mt: Obsolete file.
10772 * config/pa/hppabsd.mt: Obsolete file.
10773 * config/pa/hppabsd.mh: Obsolete file.
10774 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10775 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10776 hppa*-*-osf*.
10777
10778 2003-03-27 Andrew Cagney <cagney@redhat.com>
10779
10780 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10781 push_arguments. Don't set push_return_address or write_sp.
10782 (d10v_push_dummy_call): Replace d10v_push_arguments.
10783 (d10v_push_return_address, d10v_write_sp): Delete function,
10784 handled by push_dummy_call.
10785
10786 2003-03-26 Andrew Cagney <cagney@redhat.com>
10787
10788 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10789 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10790 regcache and dummy_addr parameters.
10791 * gdbarch.h, gdbarch.c: Re-generate.
10792 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10793 available; assume it will handle stack alignment and return
10794 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10795 legacy_push_arguments.
10796 (legacy_push_arguments): Rename default_push_arguments.
10797 * value.h (legacy_push_arguments): Rename default_push_arguments.
10798 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10799 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10800 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10801 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10802 * config/i386/tm-symmetry.h: Update.
10803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10804 * x86-64-tdep.c (x86_64_init_abi): Update.
10805 * v850-tdep.c (v850_gdbarch_init): Update.
10806 * sparc-tdep.c (sparc_gdbarch_init): Update.
10807 * sh-tdep.c (sh_gdbarch_init): Update.
10808 * s390-tdep.c (s390_gdbarch_init): Update.
10809 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10810 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10811 * mips-tdep.c (mips_gdbarch_init): Update.
10812 * mcore-tdep.c (mcore_gdbarch_init): Update.
10813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10814 * ia64-tdep.c (ia64_gdbarch_init): Update.
10815 * i386-tdep.c (i386_gdbarch_init): Update.
10816 * hppa-tdep.c (hppa_gdbarch_init): Update.
10817 * h8300-tdep.c (h8300_gdbarch_init): Update.
10818 * frv-tdep.c (frv_gdbarch_init): Update.
10819 * d10v-tdep.c (d10v_gdbarch_init): Update.
10820 * cris-tdep.c (cris_gdbarch_init): Update.
10821 * avr-tdep.c (avr_gdbarch_init): Update.
10822 * arm-tdep.c (arm_gdbarch_init): Update.
10823 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10824 * alpha-tdep.c (alpha_gdbarch_init): Update.
10825
10826 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10827
10828 * signals/signals.c (do_target_signal_to_host): Correct realtime
10829 signal range test.
10830
10831 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10832
10833 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10834 (struct sal_chain, map_catch_names): Remove.
10835 (catch_exception_command_1): Don't call
10836 handle_gnu_4_16_catch_command.
10837
10838 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10839
10840 From Mark Dettinger <dettinge@de.ibm.com>:
10841 * dwarf2cfi.c (read_2u): Increment pointer by two.
10842
10843 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10844
10845 * signals/signals.c: Fix typos in last change.
10846
10847 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10848
10849 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10850 not already defined. Use __SIGRTMIN if available.
10851 (target_signal_from_host): Remove SIGRTMIN block.
10852 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10853 the signal is within the realtime range.
10854
10855 2003-03-25 Adam Fedor <fedor@gnu.org>
10856
10857 * Makefile.in (infrun.o): Add $(language_h)
10858 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10859 for language specific trampolines.
10860 * language.h (struct language_defn): Add skip_trampoline.
10861 (skip_language_trampoline): Declare.
10862 * language.c (unk_lang_trampoline, skip_language_trampoline):
10863 New functions.
10864 (unknown_language_defn, auto_language_defn, local_language_defn):
10865 Add ukn_lang_trampoline.
10866 * ada-lang.c (ada_language_defn): Add NULL for language
10867 specific skip_trampoline.
10868 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10869 scm-lang.c: Likewise.
10870 * objc-lang.c (objc_skip_trampoline): New function.
10871 (objc_language_defn): Add objc_skip_trampoline.
10872
10873 2003-03-25 Andrew Cagney <cagney@redhat.com>
10874
10875 * frame.c (get_prev_frame): Delay validating a frame's ID -
10876 non-NULL, didn't go backwards - until an attempt to unwind it to
10877 the previous frame.
10878
10879 2003-03-25 Andrew Cagney <cagney@redhat.com>
10880
10881 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10882 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10883 * gdbarch.h, gdbarch.c: Re-generate.
10884 * config/sparc/tm-sparc.h
10885 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10886 * sparc-tdep.c (sparc_gdbarch_init): Set
10887 deprecated_extra_stack_alignment_needed.
10888 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10890 extra_stack_alignment_needed.
10891 * v850-tdep.c (v850_gdbarch_init): Ditto.
10892 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10895 * cris-tdep.c (cris_gdbarch_init): Ditto.
10896 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10898
10899 2003-03-25 Andrew Cagney <cagney@redhat.com>
10900
10901 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10902 STORE_STRUCT_RETURN.
10903 * gdbarch.h, gdbarch.c: Regenerate.
10904 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10905 (d10v_push_arguments): Set the struct return register.
10906 (d10v_gdbarch_init): Update.
10907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10908 * x86-64-tdep.c (x86_64_init_abi): Update.
10909 * vax-tdep.c (vax_gdbarch_init): Update.
10910 * v850-tdep.c (v850_gdbarch_init): Update.
10911 * sparc-tdep.c (sparc_gdbarch_init): Update.
10912 * sh-tdep.c (sh_gdbarch_init): Update.
10913 * s390-tdep.c (s390_gdbarch_init): Update.
10914 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10915 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10916 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10917 * mips-tdep.c (mips_gdbarch_init): Update.
10918 * mcore-tdep.c (mcore_gdbarch_init): Update.
10919 * m68k-tdep.c (m68k_gdbarch_init): Update.
10920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10921 * ia64-tdep.c (ia64_gdbarch_init): Update.
10922 * i386-tdep.c (i386_gdbarch_init): Update.
10923 * hppa-tdep.c (hppa_gdbarch_init): Update.
10924 * h8300-tdep.c (h8300_gdbarch_init): Update.
10925 * frv-tdep.c (frv_gdbarch_init): Update.
10926 * cris-tdep.c (cris_gdbarch_init): Update.
10927 * avr-tdep.c (avr_gdbarch_init): Update.
10928 * arm-tdep.c (arm_gdbarch_init): Update.
10929 * alpha-tdep.c (alpha_gdbarch_init): Update.
10930
10931 2003-03-25 Andrew Cagney <cagney@redhat.com>
10932
10933 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10934 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10935 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10936 * gdbarch.h, gdbarch.c: Regenerate.
10937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10938 call_dummy_stack_adjust_p.
10939 * vax-tdep.c (vax_gdbarch_init): Ditto.
10940 * v850-tdep.c (v850_gdbarch_init): Ditto.
10941 * sh-tdep.c (sh_gdbarch_init): Ditto.
10942 * s390-tdep.c (s390_gdbarch_init): Ditto.
10943 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10944 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10945 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10946 * mips-tdep.c (mips_gdbarch_init): Ditto.
10947 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10948 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10950 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10951 * i386-tdep.c (i386_gdbarch_init): Ditto.
10952 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10953 * frv-tdep.c (frv_gdbarch_init): Ditto.
10954 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10955 * cris-tdep.c (cris_gdbarch_init): Ditto.
10956 * avr-tdep.c (avr_gdbarch_init): Ditto.
10957 * arm-tdep.c (arm_gdbarch_init): Ditto.
10958 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10959 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10960 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10961 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10962 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10963 call_dummy_stack_adjust_p.
10964 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10965 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10966 * sparc-tdep.c (sparc32_push_arguments): Update.
10967 * valops.c (hand_function_call): Update.
10968
10969 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10970
10971 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10972 set_gdbarch_char_signed.
10973
10974 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10975
10976 PR cli/548
10977 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10978
10979 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10980
10981 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10982 (_initialize_arm_tdep): Don't set tm_print_insn.
10983
10984 2003-03-24 Adam Fedor <fedor@gnu.org>
10985
10986 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10987 * objc-lang.h: Add multiple inclusion protection.
10988 (start_msglist, add_msglist, end_msglist): Additional declarations.
10989
10990 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10991
10992 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10993 value was renamed to ARM_FLOAT_SOFT_FPA.
10994
10995 2003-03-23 Andrew Cagney <cagney@redhat.com>
10996
10997 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10998 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10999 * gdbarch.h, gdbarch.c: Regenerate.
11000 * valops.c (hand_function_call): Update.
11001 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11002 * frame.c (legacy_saved_regs_this_id): Update.
11003 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11004 * dummy-frame.h: Update.
11005 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11006 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11007 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11008 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11009 * config/m68k/tm-sun3.h: Update.
11010 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11012 * x86-64-tdep.c (x86_64_init_abi): Update.
11013 * vax-tdep.c (vax_gdbarch_init): Update.
11014 * v850-tdep.c (v850_gdbarch_init): Update.
11015 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11016 * sh-tdep.c (sh_gdbarch_init): Update.
11017 * s390-tdep.c (s390_gdbarch_init): Update.
11018 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11019 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11020 (frame_get_saved_regs): Update.
11021 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11022 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11024 * mips-tdep.c (mips_gdbarch_init): Update.
11025 * mcore-tdep.c (mcore_gdbarch_init): Update.
11026 * m68k-tdep.c (m68k_gdbarch_init): Update.
11027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11028 * ia64-tdep.c (ia64_gdbarch_init): Update.
11029 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11030 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11031 (i386_interix_back_one_frame): Update.
11032 * hppa-tdep.c (hppa_gdbarch_init): Update.
11033 (hppa_init_extra_frame_info): Update.
11034 * h8300-tdep.c (h8300_gdbarch_init): Update.
11035 * frv-tdep.c (frv_gdbarch_init): Update.
11036 * cris-tdep.c (cris_gdbarch_init): Update.
11037 * avr-tdep.c (avr_gdbarch_init): Update.
11038 * arm-tdep.c (arm_gdbarch_init): Update.
11039 * alpha-tdep.c (alpha_gdbarch_init): Update.
11040
11041 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11042
11043 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11044 (arm_get_fp_model): Declare.
11045 * arm-tdep.c (fp_model_strings): New string array.
11046 (arm_fp_model, current_fp_model): New variables.
11047 (arm_get_fp_model): New function.
11048 (arm_set_fp): New function.
11049 (set_fp_model_sfunc): New function.
11050 (show_fp_model): New function.
11051 (_initialize_arm_tdep): Add new command to set/show the FPU.
11052 (arm_extract_return_value): Use arm_get_fp_model.
11053 (arm_store_return_value): Likewise.
11054 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11055 to initialize the floating-point data types.
11056 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11057 model is FPA.
11058
11059 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11060
11061 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11062 the current setting of each value.
11063 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11064 new_set and new_show. Use add_setshow_cmd_full and
11065 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11066 commands and add new version as subcommands of "set/show arm".
11067
11068 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11069
11070 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11071 (set_arm_command, show_arm_command): New functions.
11072 (_initialize_arm_tdep): Add them.
11073 (num_disassembly_options): Renamed from num_flavor_options.
11074 (valid_disassembly_styles): Renamed from valid_flavors.
11075 (disassembly_style): Renamed from disassembly_flavor.
11076 (set_disassembly_style_sfunc): Renamed from
11077 set_disassembly_flavor_sfunc.
11078 (set_disassembly_style): Renamed from set_disassembly_flavor.
11079 (arm_othernames): Updated.
11080 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11081 command. Add "set/show arm disassembly" commands. Deprecate
11082 "othernames" command.
11083
11084 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11085
11086 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11087 (arm-tdep.o): Depend on elf_arm_h.
11088
11089 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11090
11091 * Makefile.in (coff_internal_h): Define.
11092 (arm-tdep.o): Update dependencies.
11093
11094 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11095
11096 * arm-tdep.c (prologue_cache): Delete.
11097 (check_prologue_cache, save_prologue_cache): Delete.
11098 (arm_scan_prologue): Don't check or update the prologue_cache.
11099 (arm_gdb_arch_init): Don't initialize it.
11100 (_initialize_arm_tdep): Likewise.
11101
11102 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11103
11104 * MAINTAINERS (tui): Maintainer of tui code.
11105
11106 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11107
11108 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11109 (i386-cygwin-tdep.o): Add dependencies.
11110 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11111 * i386-cygwin-tdep.c: New file.
11112 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11113 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11114
11115 2003-03-20 Andrew Cagney <cagney@redhat.com>
11116
11117 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11118 (handle_inferior_event): Remove code calling
11119 DYNAMIC_TRAMPOLINE_NEXTPC.
11120
11121 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11122 already has a full path.
11123
11124 * main.c (gdb_main): Return 1.
11125 (captured_main): Call error to report an invalid interpreter.
11126
11127 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11128 * alpha-osf1-tdep.c: Include "gdb_string.h".
11129
11130 2003-03-19 J. Brobecker <brobecker@gnat.com>
11131
11132 Continuing work to convert the hppa targets to multiarch partial.
11133
11134 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11135 method, now that hppa_push_dummy_frame has a conformant prototype.
11136 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11137 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11138 for the switch to multiarch partial.
11139
11140 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11141
11142 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11143 when iss is issNull.
11144
11145 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11146
11147 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11148 NUM_REGS bounds check.
11149
11150 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11151
11152 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11153 * mips-tdep.c (gdb_assert.h): Include.
11154 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11155 (mips_register_name): Handle integer registers explicitly. Add
11156 bounds checking.
11157 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11158 (mips_lsi33k_reg_names): Don't list integer registers; they're
11159 handled by mips_register_name() now.
11160 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11161 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11162 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11163 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11164 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11165
11166 2003-03-18 Andrew Cagney <cagney@redhat.com>
11167
11168 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11169 a void pointer.
11170 * gdbtypes.h (print_scalar_formatted): Update declaration.
11171 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11172
11173 2003-03-18 J. Brobecker <brobecker@gnat.com>
11174
11175 * infrun.c (observer.h): Add #include.
11176 (normal_stop): Add call to observer_notify_normal_stop.
11177 * Makefile.in (infrun.o): Add dependency on observer.h.
11178
11179 2003-03-18 J. Brobecker <brobecker@gnat.com>
11180
11181 Continuing work to convert the hppa targets to multiarch partial.
11182 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11183 parameter. Reformat comment.
11184 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11185 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11186 to match new profile.
11187
11188 2003-03-18 J. Brobecker <brobecker@gnat.com>
11189
11190 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11191 appear to be working in any case.
11192
11193 2003-03-18 J. Brobecker <brobecker@gnat.com>
11194
11195 * observer.c (observer_test_first_observer): New static variable.
11196 (observer_test_second_observer): Likewise.
11197 (observer_test_third_observer): Likewise.
11198 (observer_test_first_notification_function): New static function.
11199 (observer_test_second_notification_function): Likewise.
11200 (observer_test_third_notification_function): Likewise.
11201
11202 2003-03-17 J. Brobecker <brobecker@gnat.com>
11203
11204 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11205 * somsolib.c (gdb_assert.h): Likewise.
11206 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11207 (somsolib.o): Likewise.
11208
11209 2003-03-17 Andrew Cagney <cagney@redhat.com>
11210
11211 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11212 BFD. Simplify setting of di.endian.
11213
11214 2003-03-17 Andrew Cagney <cagney@redhat.com>
11215
11216 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11217 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11218
11219 From Elena Zannoni <ezannoni@redhat.com>
11220 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11221 vector and floating-point parameters.
11222 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11223 convention.
11224 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11225
11226 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11227
11228 * MAINTAINERS: Remove my name from several maintainership roles.
11229
11230 2003-03-17 Andrew Cagney <cagney@redhat.com>
11231
11232 Fix frame off-by-one bug.
11233 * frame-unwind.h (frame_this_id_ftype): Replace
11234 frame_unwind_id_ftype.
11235 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11236 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11237 with "prev_register".
11238 * frame-unwind.c (frame_unwind_find_by_pc): Return
11239 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11240 comment.
11241 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11242 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11243 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11244 (dummy_frame_unwind): Update.
11245 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11246 sentinel_frame_register_unwind.
11247 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11248 (sentinel_frame_unwinder): Update.
11249 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11250 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11251 * frame.c (create_sentinel_frame): Update. Initialize
11252 "prologue_cache" instead of "unwind_cache".
11253 (frame_register_unwind): Call this frame's prev_register with the
11254 next frame and this frame's prologue cache.
11255 (get_prev_frame): Simplify. Always call prev frame's this_id with
11256 this frame and prev frame's prologue cache. Document that this
11257 call is shifted one to the left when compared to the
11258 frame_register_unwind call.
11259 (legacy_saved_regs_prev_register): Replace
11260 frame_saved_regs_register_unwind.
11261 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11262 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11263 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11264 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11265 (d10v_frame_unwind): Update.
11266 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11267 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11268 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11269 "saved_regs" with "this_saved_regs".
11270
11271 2003-03-16 Andrew Cagney <cagney@redhat.com>
11272
11273 * frame.c (frame_pop): Don't call target_store_registers. Fix
11274 problem reported by Mark Kettenis.
11275
11276 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11277
11278 * i386-tdep.c (i386_register_type): Renamed from
11279 i386_register_virtual_type. Adjust function signature.
11280 (i386_gdbarch_init): Set register_type instead of
11281 deprecated_max_register_raw_size,
11282 deprecated_max_register_virtual_size and register_virtual_type.
11283
11284 2003-03-14 Andrew Cagney <cagney@redhat.com>
11285
11286 * frame.c (get_prev_frame): When a legacy frame, always call
11287 legacy_get_prev_frame. Simplify unwind code using assumption that
11288 the unwinder is new.
11289 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11290 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11291 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11292
11293 2003-03-14 Andrew Cagney <cagney@redhat.com>
11294
11295 * frame.c (get_saved_register): Delete function.
11296 * frame.h (get_saved_register): Delete declaration.
11297 * xstormy16-tdep.c: Update comment.
11298 * regcache.h: Update comments.
11299 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11300 get_saved_register and extract_address, use
11301 frame_read_unsigned_register.
11302 (sparc_frame_saved_pc): Ditto.
11303 (sparc_get_saved_register): Instead of get_saved_register, use
11304 frame_register.
11305 (sparc_pop_frame): Ditto.
11306 * findvar.c: Update comments.
11307 (value_of_register): Call frame_register instead of
11308 get_saved_register.
11309 (value_from_register): Ditto.
11310 * config/sparc/tm-sparc.h: Update comment.
11311 * breakpoint.c: Update comment.
11312
11313 2003-03-14 Andrew Cagney <cagney@redhat.com>
11314
11315 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11316 GET_SAVED_REGISTER.
11317 * gdbarch.h, gdbarch.c: Re-generate.
11318 * frame.h: Update comments.
11319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11320 * x86-64-tdep.c (x86_64_init_abi): Update.
11321 * sparc-tdep.c (sparc_gdbarch_init): Update.
11322 * sh-tdep.c (sh_gdbarch_init): Update.
11323 * mips-tdep.c (mips_gdbarch_init): Update.
11324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11325 * cris-tdep.c (cris_gdbarch_init): Update.
11326 * ia64-tdep.c (ia64_gdbarch_init): Update.
11327 * frame.c (frame_register): Update.
11328 (get_saved_register): Update.
11329 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11330
11331 2003-03-13 Andrew Cagney <cagney@redhat.com>
11332
11333 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11334 * gdbarch.h, gdbarch.c: Regenerate.
11335 * valops.c (hand_function_call): Update comment.
11336 * stack.c (return_command): Update comment.
11337 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11338 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11340 * x86-64-tdep.c (x86_64_init_abi): Update.
11341 * vax-tdep.c (vax_gdbarch_init): Update.
11342 * v850-tdep.c (v850_gdbarch_init): Update.
11343 * sparc-tdep.c (sparc_gdbarch_init): Update.
11344 * sh-tdep.c (sh_gdbarch_init): Update.
11345 * s390-tdep.c (s390_gdbarch_init): Update.
11346 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11347 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11349 * mips-tdep.c (mips_gdbarch_init): Update.
11350 * mcore-tdep.c (mcore_gdbarch_init): Update.
11351 * m68k-tdep.c (m68k_gdbarch_init): Update.
11352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11353 * ia64-tdep.c (ia64_gdbarch_init): Update.
11354 * i386-tdep.c (i386_gdbarch_init): Update.
11355 * hppa-tdep.c (hppa_gdbarch_init): Update.
11356 * h8300-tdep.c (h8300_gdbarch_init): Update.
11357 * frv-tdep.c (frv_gdbarch_init): Update.
11358 * cris-tdep.c (cris_gdbarch_init): Update.
11359 * avr-tdep.c (avr_gdbarch_init): Update.
11360 * arm-tdep.c (arm_gdbarch_init): Update.
11361 * alpha-tdep.c (alpha_gdbarch_init): Update.
11362
11363 2003-03-13 Andrew Cagney <cagney@redhat.com>
11364
11365 * frame.c (legacy_frame_p): New function.
11366 (get_prev_frame): Use legacy_frame_p.
11367 * frame.h (legacy_frame_p): Declare.
11368
11369 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11370
11371 * MAINTAINERS (write after approval): Alphabetically
11372 listing corrected.
11373
11374 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11375
11376 * MAINTAINERS (write after approval): Add myself.
11377
11378 2003-03-12 Andrew Cagney <cagney@redhat.com>
11379
11380 * frame.c (get_prev_frame): Rename the frame parameter to
11381 "this_frame".
11382 (get_next_frame, legacy_get_prev_frame): Ditto.
11383
11384 2003-03-12 Andrew Cagney <cagney@redhat.com>
11385
11386 * frame.c (get_current_frame): Check target_has_registers before
11387 checking target_has_stack.
11388 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11389 instead of deprecated_selected_frame.
11390 * findvar.c (value_of_register): Pass "frame", not
11391 deprecated_selected_frame, to value_of_builtin_reg.
11392
11393 2003-03-12 Andrew Cagney <cagney@redhat.com>
11394
11395 * regcache.c (regcache_cooked_write_signed): New function.
11396 (regcache_cooked_write_unsigned): New function.
11397 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11398 (regcache_cooked_read_signed): Fix regnum in range assertion.
11399 * regcache.h (regcache_cooked_write_signed): Declare.
11400 (regcache_cooked_write_unsigned): Declare.
11401
11402 2003-03-12 Andrew Cagney <cagney@redhat.com>
11403
11404 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11405 * gdbarch.h, gdbarch.c: Re-generate.
11406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11407 * x86-64-tdep.h: Update.
11408 * x86-64-tdep.c (x86_64_init_abi): Update.
11409 * v850-tdep.c (v850_gdbarch_init): Update.
11410 * sparc-tdep.c (sparc_gdbarch_init): Update.
11411 * sh-tdep.c (sh_gdbarch_init): Update.
11412 * s390-tdep.c (s390_gdbarch_init): Update.
11413 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11414 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11415 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11416 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11417 * mips-tdep.c (mips_gdbarch_init): Update.
11418 * mcore-tdep.c (mcore_gdbarch_init): Update.
11419 * m68k-tdep.c (m68k_gdbarch_init): Update.
11420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11421 * ia64-tdep.c (ia64_gdbarch_init): Update.
11422 * i386-tdep.c (i386_gdbarch_init): Update.
11423 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11424 * hppa-tdep.c (hppa_gdbarch_init): Update.
11425 * h8300-tdep.c (h8300_gdbarch_init): Update.
11426 * frv-tdep.c (frv_gdbarch_init): Update.
11427 * cris-tdep.c (cris_gdbarch_init): Update.
11428 * avr-tdep.c (avr_gdbarch_init): Update.
11429 * arm-tdep.c (arm_gdbarch_init): Update.
11430 * alpha-tdep.c (alpha_gdbarch_init): Update.
11431 * sh-tdep.c (sh_init_extra_frame_info): Update.
11432 (sh64_init_extra_frame_info): Update.
11433 * ns32knbsd-nat.c (frame_num_args): Update.
11434 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11435 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11436 (xstormy16_frame_chain_valid): Update.
11437 * vax-tdep.c (vax_saved_pc_after_call): Update.
11438 * v850-tdep.c (v850_frame_chain): Update.
11439 (v850_pop_frame): Update.
11440 (v850_init_extra_frame_info): Update.
11441 * sparc-tdep.c (setup_arbitrary_frame): Update.
11442 * ns32k-tdep.c (umax_frame_num_args): Update.
11443 * s390-tdep.c (s390_pop_frame_regular): Update.
11444 * mn10300-tdep.c (mn10300_frame_chain): Update.
11445 (mn10300_pop_frame_regular): Update.
11446 (mn10300_init_extra_frame_info): Update.
11447 * mips-tdep.c (mips_init_frame_pc_first): Update.
11448 (mips_frame_chain): Update.
11449 (mips_pop_frame): Update.
11450 * mcore-tdep.c (mcore_frame_chain): Update.
11451 (mcore_pop_frame): Update.
11452 (mcore_init_extra_frame_info): Update.
11453 * arch-utils.c (init_frame_pc_default): Update.
11454 * m68k-tdep.c (isi_frame_num_args): Update.
11455 (delta68_frame_num_args): Update.
11456 (news_frame_num_args): Update.
11457 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11458 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11459 (alpha_frame_chain): Update.
11460 (alpha_pop_frame): Update.
11461 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11462 (hppa_init_extra_frame_info): Update.
11463 (hppa_frame_chain): Update.
11464 (hppa_frame_chain_valid): Update.
11465 * cris-tdep.c (cris_init_extra_frame_info): Update.
11466 * avr-tdep.c (avr_init_extra_frame_info): Update.
11467 * arm-tdep.c (arm_frame_chain_valid): Update.
11468 (arm_init_extra_frame_info): Update.
11469 (arm_pop_frame): Update.
11470 * frame.c (frame_pc_unwind): Update.
11471 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11472 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11473 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11474 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11475 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11476 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11477
11478 2003-03-12 Andrew Cagney <cagney@redhat.com>
11479
11480 Eliminate the need for POP_FRAME.
11481 * frame.c (do_frame_unwind_register): New function.
11482 (frame_pop): When no POP_FRAME, pop the frame using register
11483 unwind and a scratch regcache.
11484 (frame_saved_regs_pop): Delete function.
11485 (trad_frame_unwinder): Update.
11486 * d10v-tdep.c (d10v_frame_pop): Delete function.
11487 (d10v_frame_unwind): Update.
11488 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11489 (sentinel_frame_unwinder): Update.
11490 * dummy-frame.c (dummy_frame_pop): Delete function.
11491 (dummy_frame_unwind): Update.
11492 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11493 (struct frame_unwind): Update.
11494
11495 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11496
11497 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11498 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11499 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11500 Do range checks on register number obtained from debugging info.
11501 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11502 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11503 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11504 mapping function.
11505 (do_fp_register_row): Fix typo which caused double type to be
11506 used when attempting to unpack a float.
11507
11508 2003-03-11 J. Brobecker <brobecker@gnat.com>
11509
11510 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11511
11512 2003-03-11 Andrew Cagney <cagney@redhat.com>
11513
11514 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11515 frame. Problem found by Corinna Vinschen.
11516
11517 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11518
11519 * doublest.c (floatformat_from_length): Accept also
11520 the real size of 'long double' type.
11521
11522 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11523
11524 From Klee Dienes <kdienes@apple.com>:
11525 * breakpoint.c (bpstat_copy): Copy the command lines as well
11526 as the old value, to match what is freed in bpstat_clear.
11527
11528 2003-03-10 David Carlton <carlton@math.stanford.edu>
11529
11530 * minsyms.c (add_minsym_to_hash_table): Replace
11531 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11532 (compare_minimal_symbols, compact_minimal_symbols)
11533 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11534 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11535 of DEPRECATED_SYMBOL_MATCHES_NAME.
11536 (lookup_minimal_symbol_solib_trampoline): Ditto.
11537
11538 2003-03-10 Andrew Cagney <cagney@redhat.com>
11539
11540 * regcache.h (regcache_cooked_read_ftype): Define.
11541 (regcache_save, regcache_restore): Add a cooked_read parameter.
11542 * regcache.c (regcache_save, regcache_restore): Update.
11543 (do_cooked_read): New function.
11544 (regcache_cpy): Pass do_cooked_read to regcache_save and
11545 regcache_restore.
11546
11547 2003-03-10 Andrew Cagney <cagney@redhat.com>
11548
11549 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11550 * gdbarch.h, gdbarch.c: Re-generate.
11551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11552 * x86-64-tdep.h: Update.
11553 * x86-64-tdep.c (x86_64_init_abi): Update.
11554 * v850-tdep.c (v850_gdbarch_init): Update.
11555 * sparc-tdep.c (sparc_gdbarch_init): Update.
11556 * sh-tdep.c (sh_gdbarch_init): Update.
11557 * s390-tdep.c (s390_gdbarch_init): Update.
11558 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11559 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11560 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11561 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11562 * mips-tdep.c (mips_gdbarch_init): Update.
11563 * mcore-tdep.c (mcore_gdbarch_init): Update.
11564 * m68k-tdep.c (m68k_gdbarch_init): Update.
11565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11566 * ia64-tdep.c (ia64_gdbarch_init): Update.
11567 * i386-tdep.c (i386_gdbarch_init): Update.
11568 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11569 * hppa-tdep.c (hppa_gdbarch_init): Update.
11570 * h8300-tdep.c (h8300_gdbarch_init): Update.
11571 * frv-tdep.c (frv_gdbarch_init): Update.
11572 * cris-tdep.c (cris_gdbarch_init): Update.
11573 * avr-tdep.c (avr_gdbarch_init): Update.
11574 * arm-tdep.c (arm_gdbarch_init): Update.
11575 * alpha-tdep.c (alpha_gdbarch_init): Update.
11576 * sh-tdep.c (sh_init_extra_frame_info): Update.
11577 (sh64_init_extra_frame_info): Update.
11578 * ns32knbsd-nat.c (frame_num_args): Update.
11579 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11580 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11581 (xstormy16_frame_chain_valid): Update.
11582 * vax-tdep.c (vax_saved_pc_after_call): Update.
11583 * v850-tdep.c (v850_frame_chain): Update.
11584 (v850_pop_frame): Update.
11585 (v850_init_extra_frame_info): Update.
11586 * sparc-tdep.c (setup_arbitrary_frame): Update.
11587 * ns32k-tdep.c (umax_frame_num_args): Update.
11588 * s390-tdep.c (s390_pop_frame_regular): Update.
11589 * mn10300-tdep.c (mn10300_frame_chain): Update.
11590 (mn10300_pop_frame_regular): Update.
11591 (mn10300_init_extra_frame_info): Update.
11592 * mips-tdep.c (mips_init_frame_pc_first): Update.
11593 (mips_frame_chain): Update.
11594 (mips_pop_frame): Update.
11595 * mcore-tdep.c (mcore_frame_chain): Update.
11596 (mcore_pop_frame): Update.
11597 (mcore_init_extra_frame_info): Update.
11598 * arch-utils.c (init_frame_pc_default): Update.
11599 * m68k-tdep.c (isi_frame_num_args): Update.
11600 (delta68_frame_num_args): Update.
11601 (news_frame_num_args): Update.
11602 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11603 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11604 (alpha_frame_chain): Update.
11605 (alpha_pop_frame): Update.
11606 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11607 (hppa_init_extra_frame_info): Update.
11608 (hppa_frame_chain): Update.
11609 (hppa_frame_chain_valid): Update.
11610 * cris-tdep.c (cris_init_extra_frame_info): Update.
11611 * avr-tdep.c (avr_init_extra_frame_info): Update.
11612 * arm-tdep.c (arm_frame_chain_valid): Update.
11613 (arm_init_extra_frame_info): Update.
11614 (arm_pop_frame): Update.
11615 * frame.c (frame_pc_unwind): Update.
11616 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11617 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11618 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11619 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11620 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11621 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11622
11623 2003-03-10 Andrew Cagney <cagney@redhat.com>
11624
11625 * gdbarch.sh (gdbarch_unwind_pc): New method.
11626 * gdbarch.h, gdbarch.c: Regenerate.
11627 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11628 but use read_pc and FRAME_SAVED_PC as fall backs.
11629 (frame_saved_regs_pc_unwind): Delete function.
11630 (trad_frame_unwinder): Update.
11631 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11632 (struct frame_unwind): Update.
11633 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11634 (dummy_frame_unwind): Update.
11635 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11636 (sentinel_frame_unwinder): Update.
11637 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11638 (d10v_frame_unwind): Update.
11639 (d10v_unwind_pc): New function.
11640 (d10v_gdbarch_init): Set unwind_pc.
11641
11642 2003-03-10 Andrew Cagney <cagney@redhat.com>
11643
11644 * gdbarch.h: Re-generate.
11645
11646 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11647 PC.
11648 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11649 the PC register.
11650
11651 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11652
11653 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11654
11655 2003-03-08 Andrew Cagney <cagney@redhat.com>
11656
11657 * cli-out.c: Update copyright.
11658 (cli_out_data): Define typedef. Use instead of ui_out_data.
11659
11660 2003-03-08 Andrew Cagney <cagney@redhat.com>
11661
11662 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11663 the result.
11664
11665 2003-03-07 Andrew Cagney <cagney@redhat.com>
11666
11667 * gdbarch.sh: Don't generate two macro definitions when an
11668 undefined macro taking no arguments.
11669 * gdbarch.h: Regenerate.
11670
11671 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11672
11673 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11674 (x86_64_unwind_dummy_id): New functions.
11675 (x86_64_init_abi): Register these two new functions.
11676
11677 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11678
11679 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11680 (x86_64_skip_prologue): Move prologue detection to
11681 separate function.
11682 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11683
11684 2003-03-05 Andrew Cagney <cagney@redhat.com>
11685
11686 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11687 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11688 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11689 to use unwind_dummy_id when a dummy frame.
11690 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11691 predicate.
11692 * gdbarch.h, gdbarch.c: Regneerate.
11693
11694 2003-03-05 Andrew Cagney <cagney@redhat.com>
11695
11696 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11697 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11698 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11699 values.
11700
11701 2003-03-05 Andrew Cagney <cagney@redhat.com>
11702
11703 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11704 (struct d10v_unwind_cache): Delete field "frameless". Replace
11705 "next_addr" with "sp_offset". Add "r11_offset".
11706 (d10v_frame_unwind_cache): Update.
11707 (prologue_find_regs): Update. When "mv r11, sp", save the
11708 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11709 RN was saved in r11_offset.
11710
11711 2003-03-05 Andrew Cagney <cagney@redhat.com>
11712
11713 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11714 cached PC value in the next frame.
11715
11716 2003-03-05 Andrew Cagney <cagney@redhat.com>
11717
11718 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11719 "id_unwind_cache" with "id".
11720 (frame_id_unwind): Delete declaration.
11721 * frame.c (frame_id_unwind): Delete function.
11722 (get_prev_frame): Call the frame id unwind method directly. Store
11723 the returned next frame's ID value in NEXT_FRAME. Note that there
11724 is a problem with the wrong unwind ID being called with the wrong
11725 unwind cache.
11726
11727 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11728
11729 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11730
11731 2003-03-05 James Ingham <jingham@apple.com>
11732 Daniel Jacobowitz <drow@mvista.com>
11733
11734 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11735 (auto_cp_abi): New variable.
11736 (current_cp_abi, num_cp_abis): Make static.
11737 (CP_ABI_MAX): Define.
11738 (cp_abis): Turn into an array.
11739 (value_virtual_fn_field): Fix formatting.
11740 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11741 takes a pointer.
11742 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11743 (list_cp_abis, _initialize_cp_abi): New functions.
11744 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11745 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11746 switch_to_cp_abi. Update prototype for register_cp_abi.
11747 * Makefile.in (cp-abi.o): Update dependencies.
11748 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11749 instead of switch_to_cp_abi.
11750 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11751 register_cp_abi.
11752 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11753 register_cp_abi.
11754 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11755
11756 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11757
11758 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11759 * dwarf2loc.c: Include "regcache.h".
11760 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11761 register_size.
11762 * Makefile.in (dwarf2loc.o): Update dependencies.
11763
11764 2003-03-04 Theodore A. Roth <troth@openavr.org>
11765
11766 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11767 number of io registers reported by remote target is not a multiple of
11768 step.
11769
11770 2003-03-04 David Carlton <carlton@math.stanford.edu>
11771
11772 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11773 (lookup_symbol_aux_psymtabs): Update call to
11774 lookup_partial_symbol.
11775 (lookup_transparent_type, find_main_psymtab)
11776 (make_symbol_overload_list): Ditto.
11777
11778 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11779
11780 * MAINTAINERS (Write after approval): Update my email address.
11781
11782 2003-03-03 Andrew Cagney <cagney@redhat.com>
11783
11784 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11785 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11786 predicate. Replace MAX_REGISTER_RAW_SIZE.
11787 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11788 MAX_REGISTER_VIRTUAL_SIZE.
11789 * regcache.c (legacy_max_register_raw_size): New function.
11790 (legacy_max_register_virtual_size): New function.
11791 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11792 (MAX_REGISTER_RAW_SIZE): Define.
11793 (legacy_max_register_raw_size): Declare.
11794 (legacy_max_register_virtual_size): Declare.
11795 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11796 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11797 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11798 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11799 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11800 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11801 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11802 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11803 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11805 * vax-tdep.c (vax_gdbarch_init): Update.
11806 * v850-tdep.c (v850_gdbarch_init): Update.
11807 * sparc-tdep.c (sparc_gdbarch_init): Update.
11808 * sh-tdep.c (sh_gdbarch_init): Update.
11809 * s390-tdep.c (s390_gdbarch_init): Update.
11810 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11811 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11812 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11813 * mips-tdep.c (mips_gdbarch_init): Update.
11814 * mcore-tdep.c (mcore_gdbarch_init): Update.
11815 * m68k-tdep.c (m68k_gdbarch_init): Update.
11816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11817 * ia64-tdep.c (ia64_gdbarch_init): Update.
11818 * i386-tdep.c (i386_gdbarch_init): Update.
11819 * hppa-tdep.c (hppa_gdbarch_init): Update.
11820 * h8300-tdep.c (h8300_gdbarch_init): Update.
11821 * frv-tdep.c (frv_gdbarch_init): Update.
11822 * cris-tdep.c (cris_gdbarch_init): Update.
11823 * avr-tdep.c (avr_gdbarch_init): Update.
11824 * arm-tdep.c (arm_gdbarch_init): Update.
11825 * alpha-tdep.c (alpha_gdbarch_init): Update.
11826 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11827 max_register_raw_size or max_register_virtual_size.
11828
11829 2003-03-03 David Carlton <carlton@math.stanford.edu>
11830
11831 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11832 SYMBOL_MATCHES_NAME, add comment.
11833 (SYMBOL_MATCHES_NATURAL_NAME): New.
11834 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11835 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11836 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11837 * symtab.c (lookup_partial_symbol): Use
11838 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11839 unhelpful comment.
11840 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11841 SYMBOL_MATCHES_NAME.
11842 Fix for PR c++/33.
11843
11844 2003-03-03 David Carlton <carlton@math.stanford.edu>
11845
11846 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11847 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11848 by regexp matching against SYMBOL_NATURAL_NAME.
11849
11850 2003-03-03 David Carlton <carlton@math.stanford.edu>
11851
11852 * linespec.c (find_method): Extract code into collect_methods.
11853 (collect_methods): New.
11854
11855 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11856
11857 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11858 get_frame_base.
11859
11860 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11861 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11862
11863 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11864
11865 * arch-utils.c (generic_register_byte): Fix to use the loop index
11866 and not regnum when summing the size of all registers up to regnum.
11867
11868 2003-03-01 Andrew Cagney <cagney@redhat.com>
11869
11870 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11871 FRAME_INIT_SAVED_REGS.
11872 * gdbarch.h, gdbarch.c: Regenerate.
11873 * stack.c (frame_info): Update.
11874 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11875 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11876 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11877 * ns32k-tdep.c (ns32k_pop_frame): Update.
11878 * mips-tdep.c (mips_pop_frame): Update.
11879 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11880 * ia64-tdep.c (ia64_frame_chain): Update.
11881 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11882 (ia64_frameless_function_invocation): Update.
11883 (ia64_init_extra_frame_info): Update.
11884 (ia64_pop_frame_regular): Update.
11885 * frame.h (struct frame_info): Update comment.
11886 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11887 * frame.c (frame_saved_regs_register_unwind): Update.
11888 (frame_saved_regs_register_unwind): Update.
11889 (deprecated_generic_get_saved_register): Update.
11890 * cris-tdep.c: Update comment.
11891 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11892 Rename macro.
11893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11894 * x86-64-tdep.c (x86_64_init_abi): Update.
11895 * vax-tdep.c (vax_gdbarch_init): Update.
11896 * v850-tdep.c (v850_gdbarch_init): Update.
11897 * sparc-tdep.c (sparc_gdbarch_init): Update.
11898 * sh-tdep.c (sh_gdbarch_init): Update.
11899 * s390-tdep.c (s390_gdbarch_init): Update.
11900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11901 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11902 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11903 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11904 * mips-tdep.c (mips_gdbarch_init): Update.
11905 * mcore-tdep.c (mcore_gdbarch_init): Update.
11906 * m68k-tdep.c (m68k_gdbarch_init): Update.
11907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11908 * ia64-tdep.c (ia64_gdbarch_init): Update.
11909 * i386-tdep.c (i386_gdbarch_init): Update.
11910 * frv-tdep.c (frv_gdbarch_init): Update.
11911 * avr-tdep.c (avr_gdbarch_init): Update.
11912 * arm-tdep.c (arm_gdbarch_init): Update.
11913 * alpha-tdep.c (alpha_gdbarch_init): Update.
11914
11915 2003-03-01 Andrew Cagney <cagney@redhat.com>
11916
11917 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11918 option enum and switch. When no windows, set the interpreter to
11919 INTERP_CONSOLE.
11920
11921 2003-03-01 Andrew Cagney <cagney@redhat.com>
11922
11923 * main.c (captured_main): Replace magic option characters with an
11924 enum.
11925
11926 2003-03-01 Andrew Cagney <cagney@redhat.com>
11927
11928 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11929 INIT_EXTRA_FRAME_INFO.
11930 * gdbarch.h, gdbarch.c: Regenerate.
11931 * arm-tdep.c: Update comments.
11932 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11933 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11934 * frame.h, avr-tdep.c: Ditto.
11935 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11936 (create_new_frame, legacy_get_prev_frame): Ditto.
11937 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11938 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11940 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11941 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11942 * v850-tdep.c (v850_gdbarch_init): Ditto.
11943 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11944 * sh-tdep.c (sh_gdbarch_init): Ditto.
11945 * s390-tdep.c (s390_gdbarch_init): Ditto.
11946 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11947 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11948 * mips-tdep.c (mips_gdbarch_init): Ditto.
11949 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11951 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11952 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11953 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11954 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11955 * frv-tdep.c (frv_gdbarch_init): Ditto.
11956 * cris-tdep.c (cris_gdbarch_init): Ditto.
11957 * avr-tdep.c (avr_gdbarch_init): Ditto.
11958 * arm-tdep.c (arm_gdbarch_init): Ditto.
11959 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11960 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11961
11962 2003-03-01 Andrew Cagney <cagney@redhat.com>
11963
11964 * gdbarch.sh (register_type): New function with predicate.
11965 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11966 * gdbarch.h, gdbarch.c: Re-generate.
11967 * arch-utils.c (generic_register_byte): Use generic_register_size.
11968 (generic_register_size): When available, use
11969 gdbarch_register_type.
11970 * regcache.c (init_regcache_descr): When available, initialize the
11971 register type array using gdbarch_register_type. If the
11972 architecture supplies gdbarch_register_type, do not use the legacy
11973 regcache layout.
11974 * d10v-tdep.c (d10v_register_type): Replace
11975 d10v_register_virtual_type.
11976 (d10v_gdbarch_init): Set register_type instead of
11977 register_virtual_type.
11978
11979 2003-03-01 Andrew Cagney <cagney@redhat.com>
11980
11981 * Makefile.in (ax-gdb.o): Update dependencies.
11982 * ax-gdb.c: Include "regcache.h".
11983 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11984 * findvar.c (value_of_register): Ditto.
11985 * infcmd.c (default_print_registers_info): Ditto.
11986
11987 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11988
11989 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11990 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11991
11992 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11993
11994 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11995 of STREQ.
11996
11997 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * Makefile.in (dwarf2loc.o): Update dependencies.
12000 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12001 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12002 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12003 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12004 (locexpr_tracepoint_var_ref): New function.
12005 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12006
12007 2003-02-28 Andrew Cagney <cagney@redhat.com>
12008
12009 * regcache.c (register_size): New function.
12010 * regcache.h (register_size): Declare
12011 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12012 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12013
12014 2003-02-28 David Carlton <carlton@math.stanford.edu>
12015
12016 * linespec.c (decode_compound): Extract code into find_method.
12017 (find_method): New.
12018
12019 2003-02-28 J. Brobecker <brobecker@gnat.com>
12020
12021 * Makefile.in: Add rules to build and link in observer.o.
12022
12023 2003-02-27 J. Brobecker <brobecker@gnat.com>
12024
12025 * observer.c: Minor comments edits.
12026
12027 2003-02-27 J. Brobecker <brobecker@gnat.com>
12028
12029 * observer.h, observer.c: New file.
12030
12031 2003-02-27 Andrew Cagney <cagney@redhat.com>
12032
12033 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12034
12035 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12036
12037 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12038 (M6812_OP_STS_EXT): Likewise.
12039 (m6811_prologue): Use the above to recognize prologue.
12040 (m6812_prologue): Likewise.
12041
12042 2003-02-27 David Carlton <carlton@math.stanford.edu>
12043
12044 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12045 SYMBOL_PRINT_NAME.
12046 (compare_psymbols): Ditto.
12047 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12048
12049 2003-02-27 Michael Snyder <msnyder@redhat.com>
12050
12051 * f-lang.c (build_fortran_types): New function.
12052 (_initialize_f_language): Gdbarch-register built-in fortran types.
12053 * doublest.c (extract_floating): Fix warning text.
12054
12055 2003-02-27 Andrew Cagney <cagney@redhat.com>
12056
12057 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12058 predicate. Replaces PUSH_DUMMY_FRAME.
12059 * gdbarch.h, gdbarch.c: Regnerate.
12060 * valops.c (hand_function_call): Update. Call
12061 generic_push_dummy_frame directly.
12062 * vax-tdep.c (vax_gdbarch_init): Update.
12063 * sparc-tdep.c (sparc_gdbarch_init): Update.
12064 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12065 * m68k-tdep.c (m68k_gdbarch_init): Update.
12066 * hppa-tdep.c (hppa_gdbarch_init): Update.
12067 * alpha-tdep.c (alpha_gdbarch_init): Update.
12068 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12069 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12070 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12072 push_dummy_frame to generic_push_dummy_frame.
12073 * v850-tdep.c (v850_gdbarch_init): Ditto.
12074 * sh-tdep.c (sh_gdbarch_init): Ditto.
12075 * s390-tdep.c (s390_gdbarch_init): Ditto.
12076 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12077 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12078 * mips-tdep.c (mips_gdbarch_init): Ditto.
12079 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12081 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12082 * i386-tdep.c (i386_gdbarch_init): Ditto.
12083 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12084 * frv-tdep.c (frv_gdbarch_init): Ditto.
12085 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12086 * cris-tdep.c (cris_gdbarch_init): Ditto.
12087 * avr-tdep.c (avr_gdbarch_init): Ditto.
12088 * arm-tdep.c (arm_gdbarch_init): Ditto.
12089
12090 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12091
12092 * mips-tdep.c (show_mips_abi): New function.
12093 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12094 command ``show mips abi''.
12095
12096 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12097
12098 From Elena Zannoni <ezannoni@redhat.com>
12099 * dbxread.c (process_one_symbol): Only record line 0 if one or
12100 more sline entries have been seen for the function.
12101
12102 2003-02-26 Michael Chastain <mec@shout.net>
12103
12104 * configure: Regenerate with autoconf 000227.
12105
12106 2003-02-26 Michael Chastain <mec@shout.net>
12107
12108 Close PR build/660.
12109 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12110 for old libc5/glibc.
12111 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12112
12113 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12114
12115 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12116 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12117
12118 2003-02-26 Michael Chastain <mec@shout.net>
12119
12120 * configure.in: New variable HAVE_UINTPTR_T.
12121 * configure, config.in: Regenerated.
12122
12123 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12124
12125 Fix PR build/1097.
12126 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12127
12128 2003-02-25 Andrew Cagney <cagney@redhat.com>
12129
12130 * frame.c (get_prev_frame): Add comment on check for
12131 inside_entry_func. Only check for inside_entry_file when not a
12132 dummy and not a sentinel. Check that the new frame is not inner
12133 to the old frame.
12134
12135 2003-02-25 Andrew Cagney <cagney@redhat.com>
12136
12137 * frame.c (frame_debug): New variable.
12138 (_initialize_frame): Add "set/show debug frame" command.
12139 (get_prev_frame): When frame_debug, print reason why unwind
12140 failed.
12141
12142 2003-02-25 Michael Chastain <mec@shout.net>
12143
12144 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12145 to avoid uintptr_t definition problems.
12146
12147 2003-02-25 David Carlton <carlton@math.stanford.edu>
12148
12149 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12150 (SYMBOL_LINKAGE_NAME): Ditto.
12151 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12152 SYMBOL_LINKAGE_NAME.
12153 (struct general_symbol_info): Expand comment.
12154 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12155 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12156 (SYMBOL_MATCHES_REGEXP): Ditto.
12157 * symtab.c (symbol_natural_name): New function.
12158 * objfiles.h: Replace all uses of SYMBOL_NAME by
12159 DEPRECATED_SYMBOL_NAME.
12160 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12161 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12162 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12163 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12164 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12165 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12166 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12167 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12168 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12169 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12170 * ada-exp.y: Ditto.
12171 * ada-exp.y: Update copyright.
12172 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12173 * cp-valprint.c: Ditto.
12174
12175 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12176
12177 * infptrace.c (detach): Do not flag error if ptrace detach fails
12178 and errno is set to ESRCH.
12179
12180 2003-02-24 Andrew Cagney <cagney@redhat.com>
12181
12182 * infptrace.c (udot_info): Change type of udot_off to long. Use
12183 paddr when printing udot_off's value.
12184
12185 2003-02-24 David Carlton <carlton@math.stanford.edu>
12186
12187 * symtab.c (make_symbol_overload_list): Only read in partial
12188 symtabs containing a matching partial symbol.
12189
12190 2003-02-24 David Carlton <carlton@math.stanford.edu>
12191
12192 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12193 do the comparison, not strcmp.
12194 * symfile.c (compare_psymbols): Ditto.
12195 * defs.h: Declare strcmp_iw_ordered.
12196 * utils.c (strcmp_iw_ordered): New function.
12197
12198 2003-02-24 Jim Blandy <jimb@redhat.com>
12199
12200 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12201 support, shared libs): Remove my name from here, to better reflect
12202 reality.
12203
12204 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12205
12206 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12207 (target_ops): Add to_have_continuable_watchpoint.
12208 * target.c (update_current_target): Add INHERIT line for
12209 to_have_continuable_watchpoint.
12210 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12211 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12212 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12213 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12214
12215 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12216
12217 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12218 maintainership.
12219
12220 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12221
12222 * solib.c (solib_open): Call target defined search function after
12223 failing with solib-search-path.
12224 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12225 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12226
12227 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12228
12229 * MAINTAINERS: Add myself to Write After section.
12230
12231 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12232
12233 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12234
12235 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12236
12237 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12238 (m68hc11_add_reggroups): New function.
12239 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12240 (m68hc11_gdbarch_init): Install the reggroups.
12241 (_initialize_m68hc11_tdep): Initialize them.
12242
12243 2003-02-21 James E Wilson <wilson@tuliptree.org>
12244
12245 * MAINTAINERS: Update my email address.
12246
12247 2003-02-21 David Carlton <carlton@math.stanford.edu>
12248
12249 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12250
12251 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12252
12253 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12254 * symtab.h: Add opaque declarations of struct axs_value and
12255 struct agent_expr.
12256 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12257 (struct location_funcs): New type.
12258 (struct symbol): Add "loc" to aux_value.
12259 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12260 * dwarf2read.c: Include "dwarf2expr.h".
12261 (dwarf2_symbol_mark_computed): New function.
12262 (read_func_scope): Use it.
12263 (var_decode_location): New function.
12264 (new_symbol): Use it.
12265 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12266
12267 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12268 (dwarf2expr_h, dwarf2loc_h): New variables.
12269 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12270 (dwarf2expr.o, dwarf2loc.o): New rules.
12271 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12272 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12273 LOC_COMPUTED_ARG.
12274 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12275 * m2-exp.y (yylex): Likewise.
12276 * printcmd.c (address_info, print_frame_args): Likewise.
12277 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12278 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12279 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12280 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12281 * symtab.c (lookup_block_symbol): Likewise.
12282
12283 2003-02-20 Adam Fedor <fedor@gnu.org>
12284
12285 * symtab.h: Remove objc_specific struct
12286 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12287 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12288 Have language_objc use cplus_specific struct.
12289
12290 2003-02-20 Tom Tromey <tromey@redhat.com>
12291
12292 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12293 TYPE_NAME, when printing a String value. PR java/1075.
12294
12295 2003-02-20 Adam Fedor <fedor@gnu.org>
12296
12297 * objc-lang.h (find_methods): Remove declaration.
12298 * objc-lang.c (find_methods): Make static.
12299
12300 2003-02-20 Christopher Faylor <cgf@redhat.com>
12301
12302 * win32-nat.c (get_image_name): Check return value from
12303 ReadProcessMemory.
12304 (child_xfer_memory): Ditto.
12305
12306 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12307
12308 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12309 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12310 '${exec_prefix}' (in addition to the expansion thereof) as
12311 relocatable.
12312 * configure: Rebuilt.
12313
12314 2003-02-20 David Carlton <carlton@math.stanford.edu>
12315
12316 * symtab.c (search_symbols): Revert the search_symbols part of my
12317 2002-12-23 patch. Add comment.
12318
12319 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12320
12321 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12322 * dbxread.c (elfstab_build_psymtabs): Don't call
12323 install_minimal_symbols.
12324 (stabsect_build_psymtabs): Likewise.
12325 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12326 earlier.
12327 * somread.c (som_symfile_read): Call install_minimal_symbols
12328 and do_cleanups earlier.
12329 * nlmread.c (nlm_symfile_read): Likewise.
12330 * mdebugread.c (elfmdebug_build_psymtabs): Call
12331 install_minimal_symbols and make appropriate cleanups.
12332
12333 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12334
12335 * solib.c (reload_shared_libraries): New function.
12336 (_initialize_solib): Add callbacks for ``set solib-search-path''
12337 and ``set solib-absolute-prefix''.
12338
12339 2003-02-20 David Carlton <carlton@math.stanford.edu>
12340
12341 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12342 expand comment.
12343 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12344 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12345 * ada-typeprint.c (ada_typedef_print): Ditto.
12346 * ax-gdb.c (gen_var_ref): Ditto.
12347 * breakpoint.c (print_one_breakpoint): Ditto.
12348 * buildsym.c (finish_block): Ditto.
12349 * c-valprint.c (c_val_print): Ditto.
12350 * expprint.c (print_subexp): Ditto.
12351 * findvar.c (locate_var_value): Ditto.
12352 * infcmd.c (jump_command): Ditto.
12353 * linespec.c (decode_line_2, decode_compound): Ditto.
12354 * maint.c (maintenance_translate_address): Ditto.
12355 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12356 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12357 Ditto.
12358 * p-valprint.c (pascal_val_print): Ditto.
12359 * stabsread.c (define_symbol): Ditto.
12360 * stack.c (print_frame, frame_info, print_block_frame_locals)
12361 (print_frame_arg_vars, return_command): Ditto.
12362 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12363 * symmisc.c (print_symbol): Ditto.
12364 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12365 (compare_search_syms, print_symbol_info, print_msymbol_info)
12366 (rbreak_command): Ditto.
12367 * tracepoint.c (tracepoints_info): Ditto.
12368 * typeprint.c (typedef_print): Ditto.
12369 * valops.c (value_of_variable, hand_function_call): Ditto.
12370 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12371 * ada-typeprint.c: Update Copyright.
12372 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12373 * tracepoint.c, cli/cli-cmds.c: Ditto.
12374
12375 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12376
12377 * frame.c (generic_unwind_get_saved_register): Make non-static.
12378 * frame.h (generic_unwind_get_saved_register): Declare.
12379 * mips-tdep.c (read_next_frame_reg): Fetch register from
12380 current regcache when frame is NULL.
12381 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12382 that must be NULL.
12383 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12384 instead of frame_register_unwind().
12385
12386 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12387
12388 * remote-sim.c (gdbsim_insert_breakpoint)
12389 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12390 code.
12391
12392 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12393
12394 * remote.c (_initialize_remote): Add commands "set/show remote
12395 hardware-watchpoint-limit" and "set/show remote
12396 hardware-breakpoint-limit".
12397 (remote_hw_watchpoint_limit): Initialize to -1.
12398 (remote_hw_breakpoint_limit): Ditto.
12399 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12400
12401 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12402
12403 * coff-pe-read.c: New file - support reading of minimal symbols from a
12404 portable executable using the export table.
12405 * coff-pe-read.h: New file.
12406 * coffread.c: Include coff-pe-read.h.
12407 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12408 debugging symbols found.
12409 * Makefile.in (SFILES): Add coff-pe-read.o.
12410 (coff_pe_read_h): Define.
12411 (COMMON_OBS): Add coff-pe-read.o.
12412 (coffread.o): Add coff_pe_read_h dependency.
12413 (coff-pe-read.o): New target.
12414
12415 2003-02-19 David Carlton <carlton@math.stanford.edu>
12416
12417 * Makefile.in (SFILES): Add block.c.
12418 (block_h): New.
12419 (COMMON_OBS): Add block.o.
12420 (block.o): New.
12421 (x86-64-tdep.o): Add $(block_h).
12422 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12423 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12424 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12425 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12426 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12427 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12428 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12429 * value.h: Add opaque declaration for struct block.
12430 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12431 * ada-lang.h: Ditto.
12432 * x86-64-tdep.c: #include "block.h"
12433 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12434 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12435 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12436 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12437 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12438 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12439 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12440 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12441 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12442 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12443 * symtab.c (block_function): Ditto.
12444 (contained_in): Ditto.
12445 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12446 block.h. Add opaque declaration for struct block.
12447 * symtab.h: Move block_function and contained_in declarations to
12448 block.h. Add opaque declarations for struct block, struct
12449 blockvector.
12450 (struct block): Move to block.h.
12451 (struct blockvector): Ditto.
12452 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12453 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12454 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12455 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12456 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12457 Ditto.
12458 * block.c: New file.
12459 * block.h: New file.
12460
12461 2003-02-19 Theodore A. Roth <troth@openavr.org>
12462
12463 * avr-tdep.c (avr_extract_return_value): Remove function.
12464 (avr_store_return_value): Remove function.
12465 (avr_extract_struct_value_address): Remove function.
12466 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12467
12468 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12469
12470 * rs6000-tdep.c: Include "gdb_assert.h".
12471 (registers_e500): Add "acc" and "spefscr".
12472 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12473 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12474 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12475 really is "r0".
12476 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12477
12478 2003-02-18 Keith Seitz <keiths@redhat.com>
12479
12480 * Makefile.in: Add gdbtk-interps.c.
12481
12482 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12483
12484 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12485 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12486
12487 2003-02-18 Andrew Cagney <cagney@redhat.com>
12488
12489 * symtab.h (struct objfile): Add opaque declaration.
12490
12491 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12492
12493 From Jim Ingham <jingham@apple.com>:
12494 * dbxread.c (process_one_symbol): Use last_function_start rather
12495 than function_start_offset to find the real beginning of the
12496 current function. The latter is just the text section offset on
12497 some systems, the former is always the real function start.
12498
12499 2003-02-17 Andrew Cagney <cagney@redhat.com>
12500
12501 * configure.in: Revert ${target} != ${host}.
12502
12503 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12504
12505 * configure.in (Makefile): Use the test ${target} != ${host},
12506 instead of the absence of the "nm.h" file, to determine of the
12507 configuration non-native.
12508 * configure: Regenerate.
12509
12510 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12511
12512 From Brian Ford <ford@vss.fsi.com>
12513
12514 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12515 conditionalize tui_active test.
12516 (lookup_cmd_1): Ditto.
12517
12518 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12519
12520 * configure.in: Add check for _etext.
12521 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12522 available.
12523 * config.in, configure: regenerated.
12524
12525 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12528
12529 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12530
12531 * main.c (tui_version): Delete variable.
12532 (captured_main): When --tui, set interpreter_p to "tui" instead of
12533 enabling tui_version.
12534 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12535 tui_version.
12536 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12537 * cli/cli-cmds.c (disassemble_command): Ditto.
12538 * defs.h (tui_version): Delete declaration.
12539 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12540 (tui-interp.o): Add rules.
12541 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12542
12543 2003-02-14 Christopher Faylor <cgf@redhat.com>
12544
12545 * win32-nat.c (register_loaded_dll): Correctly set address range for
12546 just-loaded dll.
12547
12548 2003-02-12 Jason Molenda (jmolenda@apple.com)
12549
12550 * symmisc.c (print_objfile_statistics): Include information about
12551 the number of psymtabs and symtabs in each object file.
12552
12553 2003-02-13 Keith R Seitz <keiths@redhat.com>
12554
12555 * main.h (struct captured_main_args): Add interpreter_p.
12556 * main.c (captured_main): Initialize interpreter_p from context.
12557 * gdb.c (main): Set interpreter_p argument.
12558 * Makefile.in (gdb.o): Add dependency for interps.h.
12559
12560 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12561
12562 * event-top.c (cli_command_loop): Delete declaration.
12563 (_initialize_event_loop): Delete function setting event_loop_hook.
12564 * event-top.h (cli_command_loop): Declare. Update copyright.
12565 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12566 * interps.c (current_interp_command_loop): When event_loop_p, call
12567 cli_command_loop.
12568
12569 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12570
12571 * interps.h (interp_command_loop_ftype): Change return type to
12572 void.
12573
12574 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12575
12576 * x86-64-tdep.c (x86_64_extract_return_value)
12577 (x86_64_store_return_value): Use regcache instead of regbuf.
12578 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12579 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12580
12581 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12582
12583 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12584 * aclocal.m4: Regenerate.
12585 * configure: Regenerate.
12586
12587 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12588 TCL_LD_SEARCH_FLAGS.
12589
12590 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12591
12592 * dwarf2cfi.c: Reindented.
12593
12594 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12595
12596 * interps.c (clear_interpreter_hooks): Convert function definition
12597 to ISO C.
12598
12599 2003-02-07 David Carlton <carlton@math.stanford.edu>
12600
12601 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12602
12603 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12604
12605 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12606 (struct type): ...to here.
12607 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12608 field.
12609 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12610 (replace_type): Set length on all type variants for a given type.
12611
12612 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12613
12614 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12615 <sys/stat.h>.
12616 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12617
12618 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12619
12620 * Makefile.in (symm-nat.o): Update dependencies.
12621 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12622 (lynx-nat.o, ia64-linux-nat.): Ditto.
12623 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12624 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12625 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12626
12627 * Makefile.in (inflow_h): Define.
12628 (procfs.o, inflow.o, procfs.o): Update dependencies.
12629 * inftarg.c (child_stop): Delete extern declaration of
12630 inferior_process_group. Include "inflow.h".
12631 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12632 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12633 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12634 (our_process_group, inferior_process_group): Extern declarations.
12635
12636 * procfs.c: Include "gdb_assert.h".
12637
12638 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12639 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12640 * jv-typeprint.c (java_type_print_base): Ditto.
12641 * typeprint.c (typedef_print): Eliminate STREQ.
12642 * cli/cli-script.c (define_command, define_command): Ditto.
12643 * main.c (captured_main): Ditto.
12644 * values.c (lookup_internalvar): Ditto.
12645 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12646 within `if' conditional.
12647 * linespec.c (decode_line_2): Ditto.
12648 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12649 (bfd_openw_with_cleanup): Ditto.
12650
12651 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12652
12653 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12654 legacy_extract_return_value and store_return_value to
12655 legacy_return_value.
12656
12657 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12658
12659 * win32-nat.c (get_relocated_section_addrs): New function. Find
12660 section load addresses for symbol handling in relocated DLLs.
12661 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12662
12663 2003-02-05 Fred Fish <fnf@intrinsity.com>
12664
12665 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12666 '=' and '!='.
12667 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12668 with '&' and '=='.
12669 (angel_RDI_info): Ditto.
12670 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12671 with '&' and '!='.
12672 (threads_continue_all_with_signals): Ditto.
12673
12674 2003-02-05 Jim Ingham <jingham@apple.com>
12675 Keith Seitz <keiths@redhat.com>
12676 Elena Zannoni <ezannoni@redhat.com>
12677 Andrew Cagney <ac131313@redhat.com>
12678
12679 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12680 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12681 (SUBDIR_MI_OBS): Add "mi-interp.o".
12682 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12683 (SFILES): Add "interps.c".
12684 (COMMON_OBS): Add "interps.o".
12685 (interps_h, mi_main_h): Define.
12686 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12687 (mi-main.o, main.o, event-top.o): Update dependencies.
12688 * cli/cli-interp.c: New file.
12689 * interps.h, interps.c: New files.
12690 * top.c: (gdb_init): Don't install the default interpreter, handed
12691 by captured_main.
12692 * main.c: Include "interps.h".
12693 (interpreter_p): Note that it should malloc'ed.
12694 (captured_command_loop): Call current_interp_command_loop.
12695 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12696 xfree and xstrdup when updating interpreter_p. Install the
12697 default interpreter. Add hack to stop mi1's copyright notice
12698 being encoded.
12699 * event-top.h (gdb_setup_readline): Declare.
12700 (gdb_disable_readline): Declare.
12701 * event-top.c: Include "interps.h".
12702 (display_gdb_prompt): Call current_interp_display_prompt_p.
12703 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12704 gdb_stdlog, and gdb_stdtarg.
12705 (_initialize_event_loop): Don't call gdb_setup_readline.
12706 * cli-out.c (cli_out_set_stream): New function.
12707 * cli-out.h (cli_out_set_stream): Declare.
12708
12709 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12710
12711 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12712 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12713 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12714 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12715 config/i386/i386v42mp.mt: Removed.
12716
12717 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12718
12719 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12720 GDB_OSABI_SOLARIS.
12721
12722 2003-02-05 Michael Chastain <mec@shout.net>
12723
12724 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12725 2.12.1 and earlier versions.
12726
12727 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12728
12729 Remove orphaned hosts, targets and files.
12730 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12731 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12732 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12733 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12734 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12735 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12736 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12737 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12738 * config/sparc/tm-sp64sim.h: Delete.
12739 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12740 hosts.
12741 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12742 mips*-dec-mach3* targets.
12743
12744 2003-02-04 Michael Chastain <mec@shout.net>
12745
12746 * NEWS: Fix typo: sepcifying -> specifying.
12747
12748 2003-02-04 Michael Chastain <mec@shout.net>
12749
12750 * dwarfread.c: Add documentation on the state of dwarf-1,
12751 looking towards obsoletion.
12752
12753 2003-02-03 Michael Chastain <mec@shout.net>
12754
12755 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12756 gdb/testsuite/gdb.c++/pr-1023.exp.
12757
12758 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12759
12760 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12761 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12762
12763 * utils.c (init_page_info): Delete reference to MPW in comments.
12764 * main.c (captured_main): Delete #ifdef MPW.
12765
12766 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12767
12768 * NEWS: Note that the m32r-*-elf* is obsolete.
12769 * monitor.c (monitor_expect): Obsolete reference to m32r.
12770 * configure.tgt: Mark m32r-*-elf* as obsolete.
12771 * MAINTAINERS: Mark m32k as obsolete.
12772 * m32r-rom.c: Obsolete file.
12773 * config/m32r/m32r.mt: Obsolete file.
12774 * config/m32r/tm-m32r.h: Obsolete file.
12775 * m32r-stub.c: Obsolete file.
12776 * m32r-tdep.c: Obsolete file.
12777
12778 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12779
12780 * NEWS: Mention that the z8k-zilog-none is obsolete.
12781 * MAINTAINERS: Mark z8k as obsolete.
12782 * configure.tgt: Obsolete the z8k-*-coff* target.
12783 * config/z8k/z8k.mt: Obsolete file.
12784 * config/z8k/tm-z8k.h: Obsolete file.
12785 * z8k-tdep.c: Obsolete file.
12786
12787 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12788
12789 * NEWS: Mention that the mn10200-elf is obsolete.
12790 * configure.tgt: Obsolete mn10200-*-* target.
12791 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12792 mention that the mn10200 is obsolete.
12793 * breakpoint.h: Ditto.
12794 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12795 * config/mn10200/mn10200.mt: Obsolete file.
12796 * config/mn10200/tm-mn10200.h: Obsolete file.
12797 * mn10200-tdep.c: Obsolete file.
12798
12799 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12800
12801 * MAINTAINERS: Mark h8500 as obsolete.
12802 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12803 * findvar.c (value_from_register): Ditto.
12804 * h8500-tdep.c: Mark file as obsolete.
12805 * config/h8500/h8500.mt: Ditto.
12806 * config/h8500/tm-h8500.h: Ditto.
12807 * NEWS: Mention that h8500 is obsolete.
12808
12809 2003-02-04 David Carlton <carlton@math.stanford.edu>
12810
12811 * objfiles.c (allocate_objfile): Always set name. Add comment at
12812 start of function.
12813 * jv-lang.c (get_dynamics_objfile): Add comment.
12814
12815 2003-02-04 David Carlton <carlton@math.stanford.edu>
12816
12817 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12818 * printcmd.c (build_address_symbolic): Replace uses of
12819 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12820 SYMBOL_NAME, and asm_demangle.
12821 Update copyright.
12822
12823 2003-02-04 David Carlton <carlton@math.stanford.edu>
12824
12825 * linespec.c (decode_compound): Extract code into
12826 lookup_prefix_sym.
12827 (lookup_prefix_sym): New function.
12828
12829 2003-02-04 David Carlton <carlton@math.stanford.edu>
12830
12831 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12832 FLOAT_COERCION_BADNESS.
12833 * gdbtypes.c (rank_one_type): Replace all uses of
12834 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12835
12836 2003-02-04 Jim Blandy <jimb@redhat.com>
12837
12838 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12839 section, let dwarf_macinfo_section point to it, not
12840 dwarf_loc_section.
12841
12842 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12843
12844 Pointed out by Anton Blanchard <anton@samba.org>.
12845 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12846 (ppc_linux_at_sigtramp_return_path): Use it.
12847
12848 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12849
12850 * defs.h (streq): Add prototype.
12851 * utils.c (streq): New function.
12852
12853 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12854 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12855 * mdebugread.c (new_symbol): Likewise.
12856 * stabsread.c (define_symbol): Likewise.
12857 * coffread.c (process_coff_symbol): Likewise.
12858 * dwarfread.c (new_symbol): Likewise.
12859
12860 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12861 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12862 here.
12863 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12864 SYMBOL_INIT_DEMANGLED_NAME.
12865 * objfiles.c: Include "hashtab.h".
12866 (allocate_objfile): Call htab_set_functions_ex for the
12867 demangled_names_hash.
12868 (free_objfile): Call htab_delete for the demangled_names_hash.
12869 * objfiles.h (struct htab): Add declaration.
12870 (struct objfile): Add demangled_names_hash.
12871 * symfile.c: Include "hashtab.h".
12872 (reread_symbols): Call htab_delete for the demangled_names_hash.
12873 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12874 SYMBOL_NAME in the bcache.
12875 * symtab.c: Include "hashtab.h". Update comments.
12876 (create_demangled_names_hash, symbol_set_names): New functions.
12877 (symbol_find_demangled_name): New function, broken out from
12878 symbol_init_demangled_names.
12879 (symbol_init_demangled_names): Use it.
12880 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12881 (SYMBOL_SET_NAMES): New macro.
12882 (symbol_set_names): Add prototype.
12883
12884 2003-02-03 Jim Blandy <jimb@redhat.com>
12885
12886 Use a single, consistent representation for an empty minimal
12887 symbol table in an objfile.
12888 * objfiles.c (terminate_minimal_symbol_table): New function.
12889 (allocate_objfile): Call it.
12890 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12891 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12892 non-NULL.
12893 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12894 objfile has minimal symbols, compare minimal_symbol_count to zero,
12895 instead of comparing msymbols with NULL.
12896 * objfiles.c (have_minimal_symbols): Same.
12897 * solib-sunos.c (solib_add_common_symbols): Call
12898 terminate_minimal_symbol_table.
12899 * symfile.c (reread_symbols): Same.
12900
12901 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12902
12903 * s390-tdep.c (s390_address_class_type_flags)
12904 (s390_address_class_type_flags_to_name)
12905 (s390_address_class_name_to_type_flags): New functions.
12906 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12907 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12908
12909 2003-02-03 Michael Snyder <msnyder@redhat.com>
12910
12911 * arm-tdep.c: Fix spell-o in comment.
12912
12913 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12914
12915 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12916 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12917 error messages to contain BFD filename.
12918
12919 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12920
12921 Fix PR gdb/742 gdb/743 gdb/877
12922 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12923 (do_mixed_source_and_assembly): Use
12924 make_cleanup_ui_out_tuple_begin_end and
12925 make_cleanup_ui_out_tuple_begin_end.
12926 (do_mixed_source_and_assembly): Ditto.
12927 * thread.c (do_captured_list_thread_ids): Ditto.
12928 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12929 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12930 ui_out_tuple_end): Delete prototypes.
12931 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12932 ui_out_list_end, ui_out_tuple_end): Delete.
12933
12934 From Kevin Buettner <kevinb@redhat.com>:
12935 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12936 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12937 (do_cleanup_table_end): New functions.
12938 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12939 Use cleanups to invoke_ui_out_tuple_end().
12940 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12941 * cli/cli-setshow.c (cmd_show_list): Use
12942 make_cleanup_ui_out_tuple_begin_end.
12943
12944 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12945
12946 * frame.c (frame_unwind_register): New function.
12947 (frame_unwind_unsigned_register): Use.
12948 (frame_unwind_signed_register): Use.
12949 (frame_read_register): New function.
12950 * frame.h (frame_unwind_register): Declare.
12951 (frame_read_register): Declare.
12952
12953 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12954 and frame_unwind_register instead of read_memory, write_register
12955 and deprecated_write_register_bytes.
12956
12957 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12958
12959 * frame.h: Note that namelen can be negative.
12960 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12961 NAME's length.
12962
12963 * NEWS: Mention that the d10v's `regs' command is deprecated.
12964 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12965 (d10v_print_registers_info): New function.
12966 (show_regs): Call d10v_print_registers_info.
12967 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12968
12969 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12970
12971 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12972 lost in the previous patch.
12973
12974 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12975
12976 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12977 * stack.c (print_frame_info_base): Output complete FRAME tuple
12978 for synthesized frames.
12979
12980 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12981
12982 * mips-nat.c (zerobuf): Delete.
12983 (fetch_inferior_registers): Alloc local zerobuf.
12984 (fetch_core_registers): Alloc local zerobuf.
12985 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12986 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12987 * thread-db.c (thread_db_store_registers): Ditto.
12988 * sh-tdep.c (sh_do_register): Ditto.
12989 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12990 * remote-sim.c (gdbsim_store_register): Ditto.
12991 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12992 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12993 * monitor.c (monitor_supply_register): Ditto.
12994 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12995 * mips-nat.c (fetch_inferior_registers): Ditto.
12996 * m68klinux-nat.c (fetch_register): Ditto.
12997 * lynx-nat.c (fetch_inferior_registers): Ditto.
12998 (fetch_inferior_registers): Ditto.
12999 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13000 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13001 (hpux_thread_store_registers): Ditto.
13002 * hppah-nat.c (fetch_register): Ditto.
13003 * hppab-nat.c (fetch_register): Ditto.
13004 * hppa-tdep.c (pa_register_look_aside): Ditto.
13005 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13006 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13007
13008 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13009
13010 * gdbarch.sh: Explictly specify all method levels. When a
13011 variable with an empty level, provide a non-multi-arch default.
13012 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13013 * gdbarch.h: Re-generate.
13014 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13015 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13016
13017 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13018
13019 * defs.h (host_pointer_to_address): Delete declaration.
13020 (address_to_host_pointer): Delete declaration.
13021 * utils.c (host_pointer_to_address): Delete function.
13022 (address_to_host_pointer): Delete function.
13023 * procfs.c (procfs_address_to_host_pointer): New function.
13024 * procfs.c (proc_set_watchpoint): Use.
13025 (procfs_can_use_hw_breakpoint): Update comments.
13026 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13027 (som_solib_add): Use.
13028 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13029 * hppa-tdep.c (unwind_command): Use.
13030
13031 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13032
13033 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13034 strlen d_name.
13035
13036 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13037 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13038 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13039 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13040 (define_symbol): Update.
13041 * symfile.c (generic_load): Remove references to nindy.
13042 * symtab.c: Remove references to nindy.
13043
13044 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13045
13046 * infcmd.c (print_float_info): Delete code conditional on
13047 FLOAT_INFO.
13048 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13049 * config/m68k/nm-apollo68b.h: Ditto.
13050 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13051 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13052 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13053
13054 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13055
13056 * config/i386/tm-i386os9k.h: Removed.
13057
13058 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13059 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13060 they're identical to i[3456]86-*-sysv* now.
13061 * config/i386/i386v32.mh: Removed.
13062 * config/i386/xm-i386v32.h: Removed.
13063 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13064
13065 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13066
13067 * config/i386/i386dgux.mh: Removed.
13068 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13069
13070 * configure.in: Fix typo.
13071 * configure: Regenerated.
13072
13073 2003-01-31 David Carlton <carlton@math.stanford.edu>
13074
13075 * dwarf2read.c (dwarf2_locate_sections): Set
13076 dwarf_ranges_section.
13077
13078 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13079
13080 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13081 * utils.c: Update comments documenting legitimate uses of PTR.
13082
13083 * utils.c: Re-indent.
13084
13085 * config/djgpp/fnchange.lst: Delete nindy files.
13086 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13087 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13088 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13089 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13090 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13091 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13092 * Makefile.in (init.c): Remove nindy references.
13093 (saber_gdb): Delete rule.
13094 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13095 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13096 and a68v-nat.c.
13097 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13098 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13099 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13100 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13101 nindy-share/stop.h.
13102 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13103 * saber.suppress: Delete file.
13104
13105 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13106
13107 * dbxread.c (stabs_data): New static variable.
13108 (fill_symbuf): Support an in-memory buffer for stabs data.
13109 (stabs_seek): New function.
13110 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13111 (read_ofile_symtab): Use stabs_seek.
13112 (elfstab_build_psymtabs): Take an asection* instead of
13113 an offset and size. Relocate the stabs data if necessary.
13114 Save the section* for dbx_psymtab_to_symtab.
13115 * dwarf2read.c: Add section variables for each debug section.
13116 (dwarf2_locate_sections): Fill them in.
13117 (dwarf2_read_section): Take an asection* argument.
13118 Relocate the section contents if necessary.
13119 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13120 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13121 it to dwarf2_read_section.
13122 (dwarf2_build_frame_info): Update callers.
13123 * elfread.c (elf_symfile_read): Update call to
13124 elfstab_build_psymtabs.
13125 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13126 (DBX_STAB_SECTION): New macro.
13127 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13128 * symfile.c (symfile_dummy_outputs): New function.
13129 (symfile_relocate_debug_section): New function.
13130 * symfile.h (symfile_relocate_debug_section): Add prototype.
13131
13132 2003-01-31 Richard Henderson <rth@redhat.com>
13133
13134 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13135 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13136 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13137 * alpha-tdep.c (alpha_register_name): Add "unique".
13138 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13139 (ALPHA_UNIQUE_REGNUM): New.
13140 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13141
13142 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13143
13144 * README: Remove reference to Ericsson 1800 monitor.
13145 * Makefile.in (remote-es.o): Delete rule.
13146 (ALLDEPFILES): Delete remote-es.c.
13147 * remote-es.c: Delete file.
13148 * config/m68k/es1800.mt: Delete file.
13149 * config/djgpp/fnchange.lst: Update.
13150 * configure.tgt: Delete m68*-ericsson-* target.
13151
13152 2003-01-31 Adam Fedor <fedor@gnu.org>
13153
13154 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13155 Remove duplicate/shadowing variable of same name.
13156
13157 2003-01-30 Jim Blandy <jimb@redhat.com>
13158
13159 * symfile.c (find_separate_debug_file): Assert that the objfile's
13160 directory name we compute ends with a slash, and then assume that
13161 that's so everywhere we use it.
13162
13163 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13164
13165 * valops.c (value_assign): Flush frame cache after stores to memory
13166 also.
13167
13168 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13169
13170 * Makefile.in (mon960-rom.o): Delete rule.
13171 * mon960-rom.c: Delete file.
13172
13173 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13174
13175 * d10v-tdep.c: Include "frame-unwind.h".
13176 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13177 list.
13178 (next_addr, uses_frame): Delete.
13179 (struct d10v_unwind_cache): Define.
13180 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13181 Use info instead of next_addr and uses_frame globals.
13182 (d10v_frame_init_saved_regs): Delete function.
13183 (d10v_init_extra_frame_info): Delete function.
13184 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13185 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13186 init_frame_pc or frame_saved_pc.
13187 (d10v_pop_frame): Delete function.
13188 (do_d10v_pop_frame): Delete function.
13189 (d10v_frame_chain): Delete function.
13190 (d10v_frame_chain_valid): Delete function.
13191 (d10v_frame_pc_unwind): New function.
13192 (d10v_frame_id_unwind): New function.
13193 (saved_regs_unwinder): New function.
13194 (d10v_frame_register_unwind): New function.
13195 (d10v_frame_pop): New function.
13196 (d10v_frame_unwind): New variable.
13197 (d10v_frame_p): New function.
13198 (d10v_frame_saved_pc): Delete function.
13199 * Makefile.in (d10v-tdep.o): Update dependencies.
13200
13201 2003-01-30 J. Brobecker <brobecker@gnat.com>
13202
13203 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13204 causing some regressions due to a change in the default value
13205 for this macro.
13206
13207 2003-01-29 Richard Henderson <rth@redhat.com>
13208 Elena Zannoni <ezannoni@redhat.com>
13209 Daniel Jacobowitz <drow@mvista.com>
13210
13211 Fix PR gdb/961.
13212 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13213 variables.
13214 (RANGES_SECTION): New.
13215 (dwarf_ranges_buffer): New variable.
13216 (struct comp_unit_head): Add member "die".
13217 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13218 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13219 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13220 (dwarf2_locate_sections): Likewise.
13221 (dwarf2_build_psymtabs): Read .debug_ranges.
13222 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13223 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13224 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13225 Look for DW_AT_ranges and return the bounding box.
13226
13227 2003-01-29 Brian Ford <ford@vss.fsi.com>
13228
13229 * win32-nat.c (cygwin_pid): Removed as unused.
13230 (child_attach): Try fall back to Cygwin pid.
13231
13232 2003-01-29 Jim Blandy <jimb@redhat.com>
13233
13234 * objfiles.h (struct objfile): Doc fix.
13235
13236 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13237
13238 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13239 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13240 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13241 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13242 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13243 (FRAME_SAVED_PC): Change to a function with predicate.
13244 * gdbarch.h, gdbarch.c: Re-generate.
13245
13246 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13247
13248 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13249
13250 * complaints.c (complain): Delete function.
13251 * complaints.h (struct deprecated_complaint): Delete definition.
13252 (complain): Delete declaration.
13253
13254 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13255
13256 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13257 dummy frames.
13258
13259 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13260
13261 * sentinel-frame.h, sentinel-frame.c: New files.
13262 * Makefile.in (frame.o): Update dependencies.
13263 (SFILES): Add sentinel-frame.c.
13264 (sentinel_frame_h): Define.
13265 (COMMON_OBS): Add sentinel-frame.o.
13266 (sentinel-frame.o): Specify dependencies.
13267 * frame.c: Include "sentinel-frame.h".
13268 (frame_register_unwind): Rewrite assuming that there is always a a
13269 ->next frame.
13270 (frame_register, generic_unwind_get_saved_register): Ditto.
13271 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13272 (create_sentinel_frame, unwind_to_current_frame): New functions.
13273 (get_current_frame): Rewrite using create_sentinel_frame and
13274 unwind_to_current_frame. When possible, always create a frame.
13275 (create_new_frame): Set next to the sentinel frame.
13276 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13277 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13278 ID cache when necessary.
13279 (frame_saved_regs_id_unwind): Use frame_relative_level.
13280 (deprecated_generic_get_saved_register): Use frame_relative_level,
13281 get_frame_saved_regs, get_frame_pc, get_frame_base and
13282 get_next_frame.
13283 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13284 frame_register.
13285
13286 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13287
13288 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13289
13290 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13291
13292 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13293 (maintenance_set_profile_cmd): Use error () instead of warning ().
13294
13295 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13296
13297 * configure.in: Check that -pg works if using --enable-profiling.
13298 Check for monstartup and _mcleanup regardless of --enable-profiling.
13299 * maint.c: Check for monstartup and _mcleanup before using them.
13300 * config.in: Regenerated.
13301 * configure: Regenerated.
13302
13303 2003-01-24 Nick Clifton <nickc@redhat.com>
13304
13305 * Add sh2e support:
13306
13307 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13308
13309 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13310 (sh2e_show_regs): New.
13311 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13312 * config/sh/tm-sh.h: Added sh2e to comments.
13313
13314 2003-01-23 Jim Blandy <jimb@redhat.com>
13315
13316 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13317 symbols found)" message here; we haven't checked for a separate
13318 debug info file yet, so we don't know yet.
13319 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13320 we've looked everywhere. Also, there's no need to print a special
13321 message when we're loading the separate debug info file: the one
13322 symbol_file_add prints is fine.
13323
13324 2003-01-23 Alexander Larsson <alexl@redhat.com>
13325 Jim Blandy <jimb@redhat.com>
13326
13327 Add support for executables whose debug info has been separated
13328 out into a separate file, leaving only a link behind.
13329 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13330 and separate_debug_objfile_backlink.
13331 (put_objfile_before): New declaration.
13332 * symfile.c: #include "filenames.h".
13333 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13334 debug info in a separate file, read that, too. Save the addrs
13335 argument, so we can use it again to read the separated debug info;
13336 syms_from_objfile modifies the table we pass it.
13337 (reread_symbols): After re-reading an objfile, call
13338 reread_separate_symbols to refresh its separate debug info
13339 objfile, if it has one.
13340 (reread_separate_symbols, find_separate_debug_file,
13341 get_debug_link_info, separate_debug_file_exists): New functions.
13342 (debug_file_directory): New global var.
13343 (_initialize_symfile): Initialize debug_file_directory, and
13344 provide the new `set debug-file-directory' command to let the user
13345 change it.
13346 * objfiles.c (free_objfile): If this objfile has its debug info in
13347 a separate objfile, free that one too. If this is itself a
13348 separate debug info objfile, clear our parent's backlink.
13349 (put_objfile_before): New function.
13350 * utils.c (gnu_debuglink_crc32): New function.
13351 * defs.h (gnu_debuglink_crc32): New declaration.
13352 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13353 * configure.in: Handle --with-separate-debug-dir config option.
13354 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13355 * acconfig.h (DEBUGDIR): New macro.
13356 * configure, aclocal.m4, config.in: Regenerated.
13357
13358 2003-01-22 Jim Blandy <jimb@redhat.com>
13359
13360 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13361 like the old symbol_file_add, but taking new arguments: you can
13362 now pass in either a `struct section_addr_info' list to say where
13363 each section is loaded, or a `struct section_offsets' table. Pass
13364 these new arguments through to syms_from_objfile as appropriate.
13365 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13366 with the appropriate quiescent values for the new arguments.
13367
13368 * symfile.c: #include "gdb_assert.h".
13369 (syms_from_objfile): Add the ability to pass in a section offset
13370 table directly, as an alternative to the section_addr_info table.
13371 Document arguments better.
13372 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13373 * symfile.h (syms_from_objfile): Update declaration.
13374 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13375 syms_from_objfile.
13376 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13377
13378 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13379
13380 Original patch by Tom Tromey <tromey@cygnus.com> and
13381 Jason Molenda <jmolenda@apple.com>.
13382 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13383 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13384 * NEWS: Mention profiling.
13385 * configure.in (--enable-gdbtk): Fix typo.
13386 (--enable-profiling): New. Set PROFILE_CFLAGS.
13387 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13388 Fill in function.
13389 (profiling_state): New variable.
13390 (mcleanup_wrapper): New function.
13391 (_initialize_maint): Remove NOTYET, fix call to
13392 add_setshow_boolean_cmd for "maint set profile".
13393 * configure: Regenerated.
13394
13395 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13396
13397 * Makefile.in (install-gdbtk): Install PNG images too.
13398
13399 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13400
13401 * exec.c (text_start): Delete global variable.
13402 (exec_file_attach): Make text_start local to the function.
13403 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13404 * valops.c (hand_function_call): Delete code that handles
13405 BEFORE_TEXT_END and AFTER_TEXT_END.
13406 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13407 of CALL_DUMMY_LOCATION.
13408 * gdbarch.c: Regenerate.
13409 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13410 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13411 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13412 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13413 (text_end): Delete extern declaration.
13414
13415 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13416
13417 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13418 * blockframe.c (backtrace_below_main): Move to "frame.c".
13419 (frame_chain_valid): Delete check for backtrace_below_main.
13420 (_initialize_blockframe): Delete initialization, move ``set
13421 backtrace-below-main'' command to "frame.c".
13422 (do_flush_frames_sfunc): Delete function.
13423 * frame.c: Include "command.h" and "gdbcmd.h".
13424 (frame_type_from_pc): New function.
13425 (create_new_frame): Use frame_type_from_pc.
13426 (legacy_get_prev_frame): New function.
13427 (get_prev_frame): Rewrite. When an old style frame, call
13428 legacy_get_prev_frame. Otherwize, unwind the PC first.
13429 (_initialize_frame): Add ``set backtrace-below-main'' command.
13430 * Makefile.in (frame.o): Update dependencies.
13431
13432 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13433
13434 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13435 DEPRECATED_REGISTERS_INFO.
13436
13437 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13438
13439 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13440 Maintainers'. Update `Various Maintainers'.
13441
13442 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13443
13444 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13445 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13446 Suppress actual parameters when `-'.
13447 * gdbarch.h, gdbarch.c: Regenerate.
13448
13449 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13450
13451 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13452 code handling dummy frames.
13453
13454 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13455
13456 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13457 (struct frame_unwind): Add field pop.
13458 * frame.h (frame_pop): Declare.
13459 * frame.c (frame_saved_regs_pop): New function.
13460 (trad_frame_unwinder): Add frame_saved_regs_pop.
13461 (frame_pop): New function.
13462 * dummy-frame.c (dummy_frame_pop): New function.
13463 (discard_innermost_dummy): New function.
13464 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13465 (dummy_frame_unwind): Add dummy_frame_pop.
13466 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13467 * valops.c (hand_function_call): Ditto.
13468 * stack.c (return_command): Ditto.
13469
13470 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13471
13472 * cris-tdep.c: Fix function declaration indentation.
13473 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13474 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13475 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13476 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13477 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13478 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13479
13480 2003-01-18 Michael Chastain <mec@shout.net>
13481
13482 * README (Unpacking and Installation -- quick overview):
13483 Warn against ".../gdb-5.3/gdb/configure".
13484
13485 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13486
13487 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13488 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13489 (struct frame_unwind): Declare opaque.
13490 (dummy_frame_p): Declare function.
13491 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13492 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13493 * dummy-frame.c: Include "frame-unwind.h".
13494 (dummy_frame_p): New function.
13495 (dummy_frame_unwind): New variable.
13496 * frame.c: Include "frame-unwind.h".
13497 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13498 to use the new unwind field.
13499 (set_unwind_by_pc): Delete function.
13500 (create_new_frame, get_prev_frame): Set unwind field using
13501 frame_unwind_find_by_pc.
13502 (trad_frame_unwind, trad_frame_unwinder): New variables.
13503 * frame.h (trad_frame_unwind): Declare variable.
13504 (frame_id_unwind_ftype): Delete declaration.
13505 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13506 (struct frame_unwind): Declare opaque.
13507 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13508 register_unwind with a single unwind pointer.
13509 * frame-unwind.h, frame-unwind.c: New files.
13510 * Makefile.in (SFILES): Add frame-unwind.c.
13511 (frame_unwind_h): Define.
13512 (COMMON_OBS): Add frame-unwind.o.
13513 (frame-unwind.o): Specify dependencies.
13514 (frame.o, dummy-frame.o): Update dependencies.
13515
13516 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13517
13518 * ada-valprint.c: Eliminate PTR.
13519 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13520 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13521 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13522 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13523 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13524 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13525 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13526
13527 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13528
13529 * main.c (captured_main): Don't use PTR.
13530 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13531 * gdbtypes.c (lookup_primitive_typename): Ditto.
13532 (lookup_struct_elt_type): Ditto.
13533 * f-valprint.c (info_common_command): Ditto.
13534 (list_all_visible_commons): Ditto.
13535 * jv-typeprint.c (java_type_print_base): Ditto.
13536
13537 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13538 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13539 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13540 i386-interix-nat.c and i386-interix-tdep.c. Rename
13541 m68klinux-nat.c and m68klinux-tdep.c. Rename
13542 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13543 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13544 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13545 * main.c (captured_main): Use xfree, not free.
13546
13547 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13548
13549 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13550 ID back using a parameter.
13551 * frame.c (frame_id_unwind): Update call.
13552 (frame_saved_regs_id_unwind): Update.
13553 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13554 * dummy-frame.h (struct frame_id): Add opaque declaration.
13555 (dummy_frame_id_unwind): Update declaration.
13556
13557 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13558
13559 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13560
13561 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13562
13563 * MAINTAINERS (Stephen P. Smith): Updated email address.
13564
13565 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13566
13567 Fix PR gdb/898
13568 * breakpoint.c (until_break_command): Add new argument. Use it to
13569 decide whether to stop only at the current frame or not.
13570 * breakpoint.h (until_break_command): Update prototype.
13571 * infcmd.c (until_command): Add new argument to until_break_command
13572 call.
13573 (advance_command): New function.
13574 (_initialize_infcmd): Update help string for 'until' command.
13575 Add new 'advance' command.
13576
13577 2003-01-14 David Carlton <carlton@math.stanford.edu>
13578
13579 * linespec.c (decode_line_1): Normalize comments.
13580 (set_flags): Ditto.
13581 (locate_first_half): Ditto.
13582 (decode_compound): Ditto.
13583 (symtab_from_filename): Ditto.
13584 (decode_all_digits): Ditto.
13585 (decode_dollar): Ditto.
13586 (find_methods): Ditto.
13587 (find_toplevel_char): Ditto.
13588
13589 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13590
13591 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13592 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13593 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13594 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13595 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13596 * language.c, language.h, m32r-tdep.c: Update copyright.
13597 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13598 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13599 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13600 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13601 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13602 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13603
13604 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13605
13606 * stabsread.h (process_later, resolve_cfront_continuation):
13607 Obsolete.
13608 Update copyright years.
13609 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13610 Update copyright year.
13611 * dbxread.c(struct cont_elem): Obsolete.
13612 (process_later, process_now): Obsolete functions.
13613 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13614 Update copyright year.
13615 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13616 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13617 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13618 (parse_partial_symbols): Obsolete cfront support.
13619 * stabsread.c
13620 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13621 macros.
13622 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13623 read_cfront_baseclasses, read_cfront_member_functions,
13624 resolve_cfront_continuation,read_cfront_static_fields,
13625 copy_cfront_struct_fields): Obsolete functions.
13626 (define_symbol, read_one_struct_field): Obsolete cfront support.
13627 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13628 Update Copyright year.
13629
13630 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13631
13632 * stack.c (print_frame_info, print_stack_frame_base_stub,
13633 print_stack_frame_base, show_and_print_stack_frame_stub,
13634 show_and_print_stack_frame, print_only_stack_frame_stub,
13635 print_only_stack_frame): Delete functions.
13636 (print_stack_frame_stub): Call print_frame_info instead of
13637 print_frame_info_base.
13638 (print_frame_info_base): Rename to print_frame_info.
13639 (backtrace_command_1): Call print_frame_info, instead of
13640 print_frame_info_base.
13641 (current_frame_command): Call print_stack_frame, instead of
13642 print_only_stack_frame.
13643 (frame_command): Call print_stack_frame, instead of
13644 show_and_print_stack_frame.
13645 (up_command): Ditto.
13646 (down_command): Ditto.
13647 * frame.h (print_only_stack_frame): Delete prototype.
13648 * infrun.c (normal_stop): Call print_stack_frame, instead of
13649 show_and_print_stack_frame.
13650 * thread.c (info_threads_command): Call print_stack_frame, instead
13651 of print_only_stack_frame.
13652
13653 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13654
13655 * README (Graphical interface to GDB): Update URL. Point at
13656 gdb/links/.
13657
13658 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13659 version match.
13660
13661 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13662
13663 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13664 lines.
13665
13666 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13667
13668 * thread-db.c (attach_thread): Prototype.
13669 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13670 thread information (ti), and valid flags (th_valid, ti_valid).
13671 (attach_thread): Move target_pid_to_str call to after the thread
13672 is added to GDB's list. Initialize the cache.
13673 (thread_get_info_callback, thread_db_map_id2thr)
13674 (thread_db_get_info): New functions.
13675 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13676 (thread_db_store_registers, thread_db_thread_alive)
13677 (thread_db_get_thread_local_address): Use them.
13678 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13679 of calling error() for threads in unknown state.
13680
13681 (clear_lwpid_callback): New function.
13682 (thread_db_resume): Use it to clear the cache.
13683
13684 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13685
13686 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13687 (resume_callback): Remove dead code.
13688
13689 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13690
13691 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13692 predicate.
13693 * gdbarch.h, gdbarch.c: Regenerate.
13694 * stack.c (frame_info): Only initialize the saved registers when
13695 FRAME_INIT_SAVED_REGS_P.
13696 * frame.c (frame_saved_regs_register_unwind): Assert
13697 FRAME_INIT_SAVED_REGS_P.
13698 (deprecated_generic_get_saved_register): Ditto.
13699
13700 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13701
13702 * source.c (openp): Squelch warning about "filename".
13703
13704 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13705
13706 * source.c (openp): If the file does not exist don't necessarily
13707 search the path.
13708
13709 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13710
13711 Fix PR gdb/872.
13712 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13713 (integer_types_same_name_p): New function.
13714 (rank_one_type): Use it.
13715 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13716
13717 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13718
13719 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13720 variables.
13721 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13722 * configure.in: Add --with-sysroot.
13723 * configure: Regenerated.
13724 * main.c (gdb_sysroot): New variable.
13725 (captured_main): Initialize gdb_sysroot.
13726 * defs.h (gdb_sysroot): New extern declaration.
13727 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13728
13729 2003-01-12 Michael Chastain <mec@shout.net>
13730
13731 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13732
13733 2003-01-12 Michael Chastain <mec@shout.net>
13734
13735 * top.c (print_gdb_version): Bump copyright year to 2003.
13736
13737 2003-01-12 David Carlton <carlton@bactrian.org>
13738
13739 * linespec.c (symtab_from_filename): Rename variable 's' to
13740 'file_symtab'.
13741
13742 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13743
13744 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13745 dummy frame.
13746 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13747
13748 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13749
13750 * d10v-tdep.c: Include "gdb_assert.h".
13751 (d10v_store_return_value): Rewrite to match current interface.
13752 (d10v_extract_struct_value_address): Ditto.
13753 (d10v_extract_return_value): Ditto.
13754 (d10v_gdbarch_init): Set store_restore_value,
13755 extract_struct_value_address and extract_return_value.
13756
13757 2003-01-12 J. Brobecker <brobecker@gnat.com>
13758
13759 * hpread.c (set_namestring): New procedure replacing the
13760 SET_NAMESTRING macro.
13761 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13762 by calls to set_namestring.
13763
13764 2003-01-11 J. Brobecker <brobecker@gnat.com>
13765
13766 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13767 a compilation warning.
13768 (hpread_process_one_debug_symbol): Likewise.
13769
13770 2003-01-10 David Carlton <carlton@math.stanford.edu>
13771
13772 * linespec.c (decode_line_1): Rename variable 's' to
13773 'file_symtab'.
13774 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13775 (decode_dollar): Ditto.
13776 (decode_variable): Ditto.
13777 (symbol_found): Ditto.
13778
13779 2003-01-09 Michael Chastain <mec@shout.net>
13780
13781 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13782
13783 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13784
13785 * win32-nat.c (set_process_privilege): New function.
13786 (child_attach): Call set_process_privilege() to enable the
13787 SE_DEBUG_NAME user privilege if available in process token.
13788
13789 2003-01-10 J. Brobecker <brobecker@gnat.com>
13790
13791 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13792 compilation error in the previous revision.
13793
13794 2003-01-09 David Carlton <carlton@math.stanford.edu>
13795
13796 * linespec.c: Update copyright.
13797
13798 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13799
13800 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13801 than inferior_ptid.
13802 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13803
13804 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13805
13806 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13807 Update comments.
13808 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13809 (frame_saved_regs_zalloc): Update.
13810 (frame_saved_regs_register_unwind): Update.
13811 (create_new_frame): Update.
13812 (get_prev_frame): Update.
13813 (frame_extra_info_zalloc): Update.
13814 (deprecated_get_frame_saved_regs): Update.
13815 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13816 * cris-tdep.c: Update comment.
13817
13818 * somsolib.h: Fix function indentation.
13819 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13820 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13821 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13822 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13823 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13824
13825 * infrun.c (follow_fork): Use ISO C definition.
13826 * expprint.c (print_subexp): Use xfree instead of free.
13827 * charset.c: Include "gdb_string.h" instead of <string.h>.
13828 (register_iconv_charsets): Use ISO C definition.
13829 (host_charset, target_charset): Ditto.
13830 * Makefile.in (charset.o): Update dependencies.
13831 (mi-cmd-env.o): Update dependencies.
13832
13833 2003-01-08 Andrew Cagney <cagney@redhat.com>
13834
13835 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13836 get_frame_base.
13837
13838 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13839
13840 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13841 build directories. Save edited gdb output in Mbuild.log. If a
13842 build fails, remove any final GDB executable.
13843
13844 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13845
13846 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13847 replacing hex constants with function names and stripping leading
13848 file name directory prefixes.
13849
13850 2003-01-08 Andrew Cagney <cagney@redhat.com>
13851
13852 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13853 get_frame_base.
13854
13855 2003-01-08 David Carlton <carlton@math.stanford.edu>
13856
13857 * linespec.c (decode_line_1): Move code into decode_variable.
13858 (decode_variable): New function.
13859
13860 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13861
13862 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13863
13864 2003-01-08 Andrew Cagney <cagney@redhat.com>
13865
13866 * cris-tdep.c (cris_frame_init_saved_regs): Use
13867 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13868 saved_regs buffer.
13869 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13870 (sh64_nofp_frame_init_saved_regs): Ditto.
13871 (sh_fp_frame_init_saved_regs): Ditto.
13872 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13873 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13874 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13875 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13876
13877 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13878
13879 * minsyms.c (lookup_minimal_symbol): Update comment.
13880 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13881 (lookup_minimal_symbol_solib_trampoline): Likewise.
13882
13883 2003-01-08 Andrew Cagney <cagney@redhat.com>
13884
13885 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13886 frame_relative_level.
13887
13888 * alpha-tdep.c: Use get_frame_extra_info.
13889 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13890 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13891 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13892 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13893
13894 * alpha-tdep.c: Use get_next_frame.
13895 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13896 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13897 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13898 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13899 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13900 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13901 * xstormy16-tdep.c: Ditto.
13902
13903 2003-01-07 Andrew Cagney <cagney@redhat.com>
13904
13905 * alpha-tdep.c: Use get_frame_base.
13906 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13907 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13908 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13909 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13910 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13911 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13912 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13913 * config/sparc/tm-sparc.h: Ditto.
13914
13915 2003-01-07 Andrew Cagney <cagney@redhat.com>
13916
13917 * frame.c (deprecated_get_frame_context): New function.
13918 (deprecated_set_frame_context): New function.
13919 * frame.h (deprecated_get_frame_context): Declare.
13920 (deprecated_set_frame_context): Declare.
13921 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13922 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13923
13924 2003-01-07 Andrew Cagney <cagney@redhat.com>
13925
13926 * frame.c (deprecated_set_frame_next_hack): New function.
13927 (deprecated_set_frame_prev_hack): New function.
13928 * frame.h (deprecated_set_frame_next_hack): Declare.
13929 (deprecated_set_frame_prev_hack): Declare.
13930 * mcore-tdep.c (analyze_dummy_frame): Use
13931 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13932 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13933
13934 2003-01-07 David Carlton <carlton@math.stanford.edu>
13935
13936 * linespec.c (decode_line_1): Move code into decode_dollar.
13937 (decode_dollar): New function.
13938
13939 2003-01-07 Andrew Cagney <cagney@redhat.com>
13940
13941 * arm-tdep.c (arm_init_extra_frame_info): Use
13942 deprecated_update_frame_base_hack.
13943 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13944 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13945 (fix_frame_pointer): Ditto.
13946 (mn10300_analyze_prologue): Ditto.
13947
13948 2003-01-07 Andrew Cagney <cagney@redhat.com>
13949
13950 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13951 extra_info using frame_extra_info_zalloc.
13952 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13953 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13954 (sh64_init_extra_frame_info): Ditto.
13955 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13956 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13957 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13958 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13959 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13960 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13961 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13962 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13963 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13964 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13965 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13966 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13967
13968 * mn10300-tdep.c (analyze_dummy_frame): Use
13969 deprecated_set_frame_extra_info_hack.
13970 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13971
13972 2003-01-07 J. Brobecker <brobecker@gnat.com>
13973
13974 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13975 class is not scText. These do not define "real" procedures.
13976 (parse_partial_symbols): Likewise.
13977
13978 2003-01-06 Michael Snyder <msnyder@redhat.com>
13979
13980 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13981
13982 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13983
13984 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13985 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13986 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13987 deprecated_frame_xmalloc_with_cleanup.
13988 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13989 deprecated_frame_xmalloc.
13990 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13991 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13992
13993 2003-01-06 Andrew Cagney <cagney@redhat.com>
13994
13995 * x86-64-linux-tdep.c: Include "osabi.h".
13996 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13997
13998 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13999
14000 2003-01-06 Andrew Cagney <cagney@redhat.com>
14001
14002 * MAINTAINERS (Target Instruction Set Architectures): Update
14003 arm-elf. Can be built with -Werror, has been multiarched.
14004
14005 * value.h (unpack_long): Make buffer parameter constant.
14006 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14007 * scm-lang.h (scm_parse): Ditto.
14008 * defs.h (extract_typed_address, extract_address): Ditto.
14009 (extract_long_unsigned_integer): Ditto.
14010 * inferior.h (unsigned_pointer_to_address): Ditto.
14011 (signed_pointer_to_address): Ditto.
14012 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14013 * gdbarch.h, gdbarch.c: Regenerate.
14014 * findvar.c (extract_long_unsigned_integer): Update.
14015 (extract_address): Update.
14016 (extract_typed_address): Update.
14017 (unsigned_pointer_to_address): Update.
14018 * values.c (unpack_long): Update.
14019 (unpack_double): Update.
14020 (unpack_pointer): Update.
14021 (unpack_field_as_long): Update.
14022 * d10v-tdep.c (d10v_pointer_to_address): Update.
14023 * avr-tdep.c (avr_pointer_to_address): Update.
14024 * scm-lang.c (scm_unpack): Update.
14025 * findvar.c (signed_pointer_to_address): Update.
14026
14027 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14028
14029 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14030 since it is in i386-tdep.c.
14031
14032 2003-01-06 J. Brobecker <brobecker@gnat.com>
14033
14034 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14035 failure introduced in the previous change.
14036
14037 2003-01-05 Michael Chastain <mec@shout.net>
14038
14039 * README: Remove references to deleted remote-*.c files:
14040 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14041 remote-nrom.c, remote-os9k.c, remote-udi.c.
14042
14043 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14044
14045 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14046 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14047 i386_get_longjmp_target.
14048
14049 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14050
14051 * arm-tdep.c (prologue_cache): Change to a pointer.
14052 (_initialize_arm_tdep): Allocate prologue_cache.
14053 (check_prologue_cache): Update.
14054 (save_prologue_cache): Update.
14055 (arm_gdbarch_init): Update.
14056
14057 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14058
14059 * stabsread.c (update_method_name_from_physname): Call complaint()
14060 instead of error.
14061
14062 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14063
14064 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14065 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14066 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14067
14068 * blockframe.c: Include "gdbcmd.h" and "command.h".
14069 (backtrace_below_main): New variable.
14070 (file_frame_chain_valid, func_frame_chain_valid)
14071 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14072 (generic_func_frame_chain_valid): Remove functions.
14073 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14074 (_initialize_blockframe): New function.
14075 * Makefile.in (blockframe.o): Update dependencies.
14076 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14077 comment. Call frame_chain_valid ().
14078 * frame.h: Remove old prototypes. Add prototype for
14079 frame_chain_valid and update comments to match.
14080 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14081 Remove old comment.
14082 * gdbarch.h: Regenerated.
14083 * gdbarch.c: Regenerated.
14084
14085 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14086 set_gdbarch_frame_chain_valid.
14087 * avr-tdep.c (avr_gdbarch_init): Likewise.
14088 * cris-tdep.c (cris_gdbarch_init): Likewise.
14089 * frv-tdep.c (frv_gdbarch_init): Likewise.
14090 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14091 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14092 (i386_nw_init_abi): Likewise.
14093 (i386_gdbarch_init): Likewise.
14094 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14096 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14097 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14098 * mips-tdep.c (mips_gdbarch_init): Likewise.
14099 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14100 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14101 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14102 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14103 * s390-tdep.c (s390_gdbarch_init): Likewise.
14104 * sh-tdep.c (sh_gdbarch_init): Likewise.
14105 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14106 * v850-tdep.c (v850_gdbarch_init): Likewise.
14107 * vax-tdep.c (vax_gdbarch_init): Likewise.
14108 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14109
14110 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14111 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14112 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14113 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14114 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14115 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14116 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14117 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14118
14119 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14120
14121 * Makefile.in (acconfig_h): Remove incorrect macro.
14122 (config_h): Define.
14123 (osabi.o): Update dependencies.
14124 * configure.tgt: Set gdb_osabi based on target triplet.
14125 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14126 * configure: Regenerated.
14127 * config.in: Regenerated.
14128 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14129 (GDB_OSABI_DEFAULT): Define if not already defined.
14130 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14131 (set_osabi_string): New variables.
14132 (gdbarch_register_osabi): Add new OS ABI to
14133 gdb_osabi_available_names.
14134 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14135 (set_osabi, show_osabi): New functions.
14136 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14137
14138 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14139
14140 * arch-utils.c (gdbarch_info_init): Set osabi to
14141 GDB_OSABI_UNINITIALIZED.
14142 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14143 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14144 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14145 * gdbarch.c: Regenerated.
14146 * gdbarch.h: Regenerated.
14147 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14148 there's no BFD.
14149 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14150 * osabi.h (enum gdb_osabi): Move to defs.h.
14151 (gdbarch_init_osabi): Update prototype.
14152 * defs.h (enum gdb_osabi): Moved here.
14153 * Makefile.in: Update dependencies.
14154
14155 * alpha-tdep.h: Don't include "osabi.h".
14156 (struct gdbarch_tdep): Remove osabi member.
14157 * alpha-tdep.c: Include "osabi.h".
14158 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14159 iterate over arches. Update call to gdbarch_init_osabi.
14160 (alpha_dump_tdep): Don't dump osabi.
14161 * alpha-linux-tdep.c: Include "osabi.h".
14162 * alpha-osf1-tdep.c: Include "osabi.h".
14163 * alphafbsd-tdep.c: Include "osabi.h".
14164 * alphanbsd-tdep.c: Include "osabi.h".
14165
14166 * arm-tdep.h: Don't include "osabi.h".
14167 (struct gdbarch_tdep): Remove osabi member.
14168 * arm-tdep.c: Include "osabi.h".
14169 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14170 iterate over arches. Update call to gdbarch_init_osabi.
14171 (arm_dump_tdep): Don't dump osabi.
14172 * arm-linux-tdep.c: Include "osabi.h".
14173 * armnbsd-tdep.c: Include "osabi.h".
14174
14175 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14176 Update call to gdbarch_init_osabi.
14177
14178 * i386-tdep.h: Don't include "osabi.h".
14179 (struct gdbarch_tdep): Remove osabi member.
14180 * i386-tdep.c: Include "osabi.h".
14181 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14182 iterate over arches. Update call to gdbarch_init_osabi.
14183 (i386_dump_tdep): Don't dump osabi.
14184 * i386-linux-tdep.c: Include "osabi.h".
14185 * i386-sol2-tdep.c: Include "osabi.h".
14186 * i386bsd-tdep.c: Include "osabi.h".
14187 * i386gnu-tdep.c: Include "osabi.h".
14188 * i386ly-tdep.c: Include "osabi.h".
14189 * i386nbsd-tdep.c: Include "osabi.h".
14190 * i386obsd-tdep.c: Include "osabi.h".
14191
14192 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14193 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14194 check osabi when iterating over arches. Update call to
14195 gdbarch_init_osabi.
14196 (mips_dump_tdep): Don't dump osabi.
14197
14198 * ns32k-tdep.h: Don't include "osabi.h".
14199 (struct gdbarch_tdep): Remove.
14200 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14201 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14202 allocate tdep. Update call to gdbarch_init_osabi.
14203 (ns32k_dump_tdep): Remove.
14204 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14205 * ns32knbsd-tdep.c: Include "osabi.h".
14206
14207 * ppc-tdep.h: Don't include "osabi.h".
14208 (struct gdbarch_tdep): Remove osabi member.
14209 * rs6000-tdep.c: Include "osabi.h".
14210 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14211 osabi when iterating over arches. Update call to
14212 gdbarch_init_osabi.
14213 (rs6000_dump_tdep): Don't dump osabi.
14214 * ppc-linux-tdep.c: Include "osabi.h".
14215 * ppcnbsd-tdep.c: Include "osabi.h".
14216
14217 * sh-tdep.h: Don't include "osabi.h".
14218 (struct gdbarch_tdep): Remove osabi member.
14219 * sh-tdep.c: Include "osabi.h".
14220 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14221 iterate over arches. Update call to gdbarch_init_osabi.
14222 (sh_dump_tdep): Don't dump osabi.
14223 * shnbsd-tdep.c: Include "osabi.h".
14224
14225 * sparc-tdep.c: Include "osabi.h".
14226 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14227 iterate over arches. Update call to gdbarch_init_osabi.
14228 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14229 tdep structure.
14230
14231 * vax-tdep.h: Don't include "osabi.h".
14232 (struct gdbarch_tdep): Remove.
14233 * vax-tdep.c: Include "osabi.h".
14234 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14235 iterate over arches. Don't allocate tdep. Update call
14236 to gdbarch_init_osabi.
14237 (vax_dump_tdep): Remove.
14238 (_initialize_vax_tdep): Update call to gdbarch_register.
14239
14240 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14241
14242 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14243 entirely.
14244 (breakpoint_re_set_one): Don't fetch the value for a disabled
14245 watchpoint.
14246
14247 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14248
14249 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14250 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14251 (COERCE_FLOAT_TO_DOUBLE): Remove.
14252 * gdbarch.c: Regenerate.
14253 * gdbarch.h: Regenerate.
14254 * Makefile.in: Remove value_h from gdbarch_h.
14255 * valops.c (coerce_float_to_double): New variable.
14256 (default_coerce_float_to_double): Remove.
14257 (standard_coerce_float_to_double): Remove.
14258 (value_arg_coerce): Use coerce_float_to_double.
14259 (_initialize_valops): Add "set coerce-float-to-double".
14260 * value.h (default_coerce_float_to_double): Remove prototype.
14261 (standard_coerce_float_to_double): Remove prototype.
14262
14263 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14264 prototyped.
14265 * mdebugread.c (parse_symbol): Likewise.
14266 * stabsread.c (define_symbol): Mark all functions as prototyped.
14267
14268 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14269 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14270 set_gdbarch_coerce_float_to_double.
14271 * arm-tdep.c (arm_gdbarch_init): Likewise.
14272 * frv-tdep.c (frv_gdbarch_init): Likewise.
14273 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14274 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14275 * mips-tdep.c (mips_gdbarch_init): Likewise.
14276 (mips_coerce_float_to_double): Remove.
14277 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14278 (rs6000_coerce_float_to_double): Remove.
14279 * s390-tdep.c (s390_gdbarch_init): Likewise.
14280 * sh-tdep.c (sh_gdbarch_init): Likewise.
14281 (sh_coerce_float_to_double): Remove.
14282 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14283 (sparc_coerce_float_to_double): Remove.
14284 * v850-tdep.c (v850_gdbarch_init): Likewise.
14285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14286 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14287 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14288 (hppa_coerce_float_to_double): Remove prototype.
14289 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14290
14291 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14292
14293 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14294
14295 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14296
14297 Suggested by Stewart Brown <sb24@avaya.com>:
14298 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14299 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14300 (c_type_print_varspec_suffix): Likewise.
14301
14302 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14303
14304 * configure.in: Don't set and AC_SUBST SUBDIRS.
14305 * configure: Regenerated.
14306
14307 * configure.in: Remove code dealing with shared libraries.
14308 * Makefile.in: Remove HLDFLAGS and HLDENV.
14309 * configure: Regenerated.
14310
14311 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14312
14313 * frame.c (deprecated_frame_xmalloc): New function.
14314 (deprecated_set_frame_saved_regs_hack): New function.
14315 (deprecated_set_frame_extra_info_hack): New function.
14316 * frame.h (deprecated_frame_xmalloc): Declare.
14317 (deprecated_set_frame_saved_regs_hack): Declare.
14318 (deprecated_set_frame_extra_info_hack): Declare.
14319
14320 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14321
14322 * configure.in: Move code that provides the --enable-gdbtk option
14323 right after the code that handles the --enable-tui option, and
14324 polish it somewhat.
14325 * configure: Regenerated.
14326
14327 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14328 AC_CHECK_FUNCS and remove the old check for pread64.
14329 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14330 * acconfig.h (_GNU_SOURCE): Add.
14331 (HAVE_PREAD64): Remove.
14332 * configure, aclocal.m4, config.in: Regenerated.
14333
14334 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14335
14336 * alpha-tdep.c: Use get_frame_saved_regs.
14337 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14338 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14339 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14340 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14341 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14342
14343 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14344
14345 * configure.in: Remove all use of the SUBDIRS variable; add
14346 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14347 code providing the --enable-multi-ice option, and move it right in
14348 front of the code that checks whether gdbserver is supported.
14349 Polish that too.
14350 * configure: Regenerated.
14351 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14352 @SUBDIRS@.
14353
14354 2003-01-03 Andrew Cagney <cagney@redhat.com>
14355
14356 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14357 * avr-tdep.c, cris-tdep.c: Ditto.
14358 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14359 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14360
14361 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14362
14363 * configure.in: Remove --enable-netrom option.
14364 * configure: Regenerated.
14365
14366 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14367
14368 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14369 declaration for `struct re_pattern_buffer' instead.
14370 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14371
14372 2003-01-03 J. Brobecker <brobecker@gnat.com>
14373
14374 * mdebugread.c (parse_symbol): Count until the stEnd matching
14375 the structure name.
14376
14377 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14378
14379 * configure.in: Remove --with-cpu option.
14380 subscripts. Remove evil changequotes here.
14381 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14382 * config.in, configure: Regenerated.
14383
14384 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14385 * configure.in: Cleanup section that sources GDB and BFD configure
14386 subscripts. Remove evil changequotes here.
14387 * config.in, configure: Regenerated.
14388
14389 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14390
14391 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14392 frame accessor methods.
14393 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14394 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14395 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14396 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14397 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14398 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14399 * z8k-tdep.c: Ditto.
14400
14401 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14402
14403 * configure.in: Remove UI_OUT configuration code.
14404 * ada-lang.c: Update assuming UI_OUT is always true.
14405 * Makefile.in (UIOUT_CFLAGS): Remove.
14406 * configure: Regenerated.
14407 * TODO: Remove blurb about elimination of -DUI_OUT.
14408
14409 * configure.in: Move code that provides the --enable-gdbcli,
14410 --enable-gdbmi options right before the code that handles the
14411 --enable-tui option. Polish a bit.
14412 * configure: Regenerated.
14413
14414 * configure.in: Rewrite check for GNU regex and the
14415 --without-included regex option, and move it into the "Checks for
14416 library functions" section. This makes us use the system regex
14417 again by default on systems with version 2 of the GNU C library.
14418 This was apparently broken.
14419 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14420 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14421 * config.in, configure: Regenerated.
14422
14423 * configure.in: Move code that provides the --enable-tui option
14424 before the "Checks for libraries" section. Polish the code
14425 somewhat and set need_curses to yes if we build the TUI. Rewrite
14426 code that looks for a library providing termcap functionality to
14427 match more closely what's done in the Readline library, and move
14428 it into to the "Checks for libraries" section.
14429 * configure: Regenerated.
14430 * Makefile.in (TERMCAP): Remove variable.
14431 * config/i386/go32.mh (TERMCAP): Remove variable.
14432
14433 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14434
14435 * MAINTAINERS: Mention gdb_mbuild.sh.
14436 * gdb_mbuild.sh: Rewrite.
14437
14438 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14439
14440 * configure.in: Fix typo in last change.
14441 * config.in, configure: Regenerated.
14442
14443 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14444
14445 * valarith.c (value_binop): Delete obsolete code and comments.
14446 * configure.host: Ditto.
14447 * buildsym.h (make_blockvector): Ditto.
14448 * buildsym.c (make_blockvector): Ditto.
14449 * defs.h (enum language): Ditto.
14450 (chill_demangle): Ditto.
14451 * elfread.c (elf_symtab_read): Ditto.
14452 * dwarfread.c (CHILL_PRODUCER): Ditto.
14453 (set_cu_language): Ditto.
14454 (handle_producer): Ditto.
14455 * expprint.c (print_subexp): Ditto.
14456 * gdbtypes.c (chill_varying_type): Ditto.
14457 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14458 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14459 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14460 (chill_varying_type): Ditto.
14461 * language.h (_LANG_chill): Ditto.
14462 * language.c (binop_result_type, integral_type): Ditto.
14463 (character_type, string_type, structured_type): Ditto.
14464 (lang_bool_type, binop_type_check): Ditto.
14465 * stabsread.h (os9k_stabs): Ditto.
14466 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14467 (define_symbol, read_type, read_struct_fields): Ditto.
14468 (read_array_type, read_enum_type, read_huge_number): Ditto.
14469 (read_range_type, start_stabs): Ditto.
14470 * symfile.c (init_filename_language_table): Ditto.
14471 (add_psymbol_with_dem_name_to_list): Ditto.
14472 * symtab.c (symbol_init_language_specific): Ditto.
14473 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14474 * symtab.h (struct general_symbol_info): Ditto.
14475 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14476 * typeprint.c (typedef_print): Ditto.
14477 * utils.c (fprintf_symbol_filtered): Ditto.
14478 * valops.c (value_cast, search_struct_field, value_slice): Delete
14479 obsolete code.
14480 (varying_to_slice): Delete function.
14481 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14482 (varying_to_slice): Delete declaration.
14483 * MAINTAINERS: Update.
14484
14485 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14486
14487 * configure.in: Reorganize "Checks for library functions section"
14488 a bit. Remove check for `btowc' and `isascii' functions.
14489 * configure: Regenerated.
14490
14491 * acconfig.h (_MSE_INT_H): Remove.
14492 * configure.in: Create "Checks for header files" section, and move
14493 appropriate tests there. Don't check for objlist.h, wchar.h,
14494 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14495 misdetection fix. Also add "Checks for types", "Checks for
14496 compiler characteristics" and "Checks for library functions"
14497 sections.
14498 * config.in, configure: Regenerated.
14499
14500 * configure.in: Create "Checks for programs" section, and move
14501 appropriate tests there.
14502
14503 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14504
14505 * configure.in: Create "Checks for libraries" section, and move
14506 appropriate tests there. Cleanup check for wctype in libw. Use
14507 AC_SEARCH_LIBS to see whether we need libsocket.
14508 * configure: Regenerated.
14509
14510 For older changes see ChangeLog-2002
14511 \f
14512 Local Variables:
14513 mode: change-log
14514 left-margin: 8
14515 fill-column: 74
14516 version-control: never
14517 End:
This page took 0.31509 seconds and 5 git commands to generate.