* glibc-tdep.h (struct gdbarch): Declare opaque.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-15 Mark Kettenis <kettenis@gnu.org>
2
3 * glibc-tdep.h (struct gdbarch): Declare opaque.
4 (glibc_skip_solib_resolver): Adjust prototype.
5 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
6 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
7 (arm_linux_init_abi): Set skip_solib_resolver.
8 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
9 (i386_linux_init_abi): Set skip_solib_resolver.
10 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
11 (arm_linux_skip_solib_resolver): Remove prototype.
12 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
13 (i386_linux_skip_solib_resolver): Remove prototype.
14
15 2003-11-14 Mark Kettenis <kettenis@gnu.org>
16
17 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
18 function.
19 * gdbarch.c, gdbarch.h: Regenerate.
20 * infrun.c (handle_inferior_event): Call
21 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
22 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
23 definition.
24 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
25 prototype.
26
27 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
28
29 * libunwind-frame.c: New file.
30 * libunwind-frame.h: New file.
31 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
32 * configure.in: Add --with-libunwind option support. Define
33 HAVE_LIBUNWIND if libunwind support selected / defaulted.
34 Also check for libunwind.h and libunwind-ia64.h headers.
35 * configure: Regenerated.
36 * Makefile.in: Add support for libunwind-frame.o.
37 * config.in: Regenerated.
38
39 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
40
41 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
42 set up the ia64 linux native target method for getting the kernel
43 unwind table.
44 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
45 * inftarg.c (child_xfer_partial): Enable section of code to
46 handle TARGET_OBJECT_UNWIND_TABLE.
47 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
48
49 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
50
51 * config/arm/nbsd.mt (TM_FILE): Define.
52 * config/arm/tm-nbsd.h: New file.
53
54 2003-11-14 Andrew Cagney <cagney@redhat.com>
55
56 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
57 * ppc-sysv-tdep.c: Include "objfiles.h".
58 (ppc64_sysv_abi_push_dummy_call): Provide the
59 the FN's objfile when looking for the descriptor.
60
61 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
62 "name_of_malloc" to ".malloc".
63
64 2003-11-13 Mark Kettenis <kettenis@gnu.org>
65
66 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
67
68 2003-11-13 David Carlton <carlton@kealia.com>
69
70 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
71
72 2003-11-13 Andrew Cagney <cagney@redhat.com>
73
74 * arch-utils.h (selected_architecture_name): Declare.
75 (selected_byte_order): Declare.
76 * arch-utils.c (selected_byte_order): New function.
77 (selected_architecture_name): New function.
78 (target_architecture_auto): Make static.
79 (set_architecture_string): Make static.
80 (target_byte_order): Make static.
81 (target_byte_order_auto): Make static.
82 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
83 non-multi-arch definition.
84 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
85 (target_byte_order, target_architecture): Delete declaration.
86 (target_byte_order_auto, target_architecture_auto): Ditto.
87 * gdbarch.h: Re-generate.
88 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
89 "selected_byte_order".
90
91 2003-11-13 Andrew Cagney <cagney@redhat.com>
92
93 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
94
95 2003-11-13 Jim Blandy <jimb@redhat.com>
96
97 * cp-namespace.c: Doc fix.
98
99 2003-11-12 Michael Snyder <msnyder@redhat.com>
100
101 * sh64_tdep.c: Regularize some names.
102 (sh_sh64_register_name): Rename to sh64_register_name.
103 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
104 (sh_sh64_register_byte): Rename to sh64_register_byte.
105 (sh_sh64_build_float_register_type):
106 Rename to sh64_build_float_register_type.
107 (sh_sh64_register_convert_to_virtual):
108 Rename to sh64_register_convert_to_virtual.
109 (sh_sh64_register_convert_to_raw):
110 Rename to sh64_register_convert_to_raw.
111
112 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
113 sh64_media_reg_base_num, sh64_compact_reg_base_num,
114 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
115 sh64_extract_return_value, sh64_show_media_regs,
116 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
117 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
118 sh64_pseudo_register_read, sh64_pseudo_register_write,
119 sh64_do_pseudo_register, sh_compact_print_registers_info):
120 Delete unused variable 'tdep'.
121
122 * sh64-tdep.c: Coding standard and spelling comment fixes.
123 (sh64_extract_return_value): Replace deprecated_store_floating
124 with store_typed_floating.
125 (sh_sh64_register_convert_to_raw): Replace
126 deprecated_store_floating with store_typed_floating.
127 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
128 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
129 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
130 sh64_extract_struct_value_address, sh64_pop_frame,
131 sh64_extract_return_value, sh64_store_return_value,
132 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
133 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
134 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
135 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
136 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
137 deprecated_register_virtual_type, deprecated_register_raw_size,
138 deprecated_max_register_raw_size, or
139 deprecated_max_register_virtual_size. Instead, just set
140 gdbarch_register_type.
141 (sh_sh64_register_raw_size): Delete.
142 (sh_sh64_register_virtual_size): Delete.
143
144 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
145
146 * dwarf2read.c (struct dwarf2_cu): New type.
147
148 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
149 dwarf2_cu structure to pass down.
150
151 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
152 (add_partial_enumeration, locate_pdi_sibling, process_die)
153 (read_file_scope, read_func_scope)
154 (read_lexical_block_scope, dwarf2_get_pc_bounds)
155 (dwarf2_add_field, dwarf2_attach_fields_to_type)
156 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
157 (read_structure_scope, read_enumeration, read_array_type)
158 (read_common_block, read_namespace, read_tag_pointer_type)
159 (read_tag_ptr_to_member_type, read_tag_reference_type)
160 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
161 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
162 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
163 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
164 (read_full_die. read_attribute_value, read_attribute)
165 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
166 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
167 (die_containing_type, type_at_offset, tag_type_to_type)
168 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
169 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
170
171 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
172
173 PR breakpoints/1450
174 * breakpoint.c (insert_bp_location): Fix a logic error by returning
175 0 after a catchpoint fails.
176
177 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
178
179 * mips-tdep.c (msymbol_size): Delete.
180
181 2003-11-07 Michael Chastain <mec@shout.net>
182
183 * symtab.h (struct minimal_symbol): Add size.
184 * dbxread.c: Use it.
185 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
186 Rename to record_minimal_symbol.
187 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
188 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
189 (install_minimal_symbols): Ditto.
190 * objfiles.c (terminate_minimal_symbol_table): Ditto.
191 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
192 * m68hc11-tdep.c: Ditto.
193 * mips-tdep.c: Ditto.
194 * sh64-tdep.c: Ditto.
195
196 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
197
198 * MAINTAINERS: Change my e-mail address.
199
200 2003-11-10 Andrew Cagney <cagney@redhat.com>
201
202 * gdbarch.sh (return_value): Replace "inval" and "outval" with
203 "readbuf" and "writebuf".
204 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
205 * d10v-tdep.c (d10v_return_value): Ditto.
206 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
207 (ppc_sysv_abi_broken_return_value): Ditto.
208 (ppc64_sysv_abi_return_value): Ditto.
209 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
210 (ppc_sysv_abi_return_value): Ditto.
211 (ppc_sysv_abi_broken_return_value): Ditto.
212 (ppc64_sysv_abi_return_value): Ditto.
213 * values.c (register_value_being_returned): Update call.
214 * stack.c (return_command): Update call.
215 * gdbarch.h, gdbarch.c: Re-generate.
216
217 * target.h (struct target_ops): Order xfer buffer parameters "read
218 write" not "write read".
219 * bfd-target.c (target_bfd_xfer_partial): Update.
220 * remote.c (remote_xfer_partial): Update.
221 * inftarg.c (child_xfer_partial): Update.
222 * target.c (default_xfer_partial): Update.
223 (target_read_partial, target_write_partial): Update.
224 (debug_to_xfer_partial): Update.
225
226 * arch-utils.h, arch-utils.c: Fix typo in comment.
227
228 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
229 (gdbarch_from_bfd): Call gdbarch_find_by_info.
230 (set_gdbarch_from_file): Call
231 "deprecated_current_gdbarch_select_hack".
232
233 2003-11-09 Andrew Cagney <cagney@redhat.com>
234
235 * arch-utils.c (gdbarch_update_p): New function.
236 * gdbarch.sh (gdbarch_update_p): Delete function.
237 (find_arch_by_info, gdbarch_find_by_info): New functions.
238 (deprecated_current_gdbarch_select_hack): New function.
239 * gdbarch.c: Re-generate.
240
241 * gdbarch.sh (clear_gdbarch_swap): Delete function.
242 (swapout_gdbarch_swap): Delete function.
243 (swapin_gdbarch_swap): Delete function.
244 (init_gdbarch_swap): Delete function.
245 (initialize_non_multiarch): Delete function.
246 (current_gdbarch_swap_in_hack): New function.
247 (current_gdbarch_swap_out_hack): New function.
248 (current_gdbarch_swap_init_hack): New function.
249 * gdbarch.c: Re-generate.
250
251 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
252 parameter to "current_gdbarch". Add comment explaining why.
253 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
254 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
255 * gdbarch.c: Re-generate.
256
257 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
258 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
259 * config/s390/xm-linux.h: Delete file.
260 * config/m88k/xm-delta88v4.h: Delete stray.
261
262 * Makefile.in (arch-utils.o): Update dependencies.
263 * arch-utils.c: Include "osabi.h".
264 (gdbarch_info_fill): New function.
265 * arch-utils.h (gdbarch_info_fill): Declare.
266 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
267 * gdbarch.c: Re-generate.
268
269 2003-11-09 Mark Kettenis <kettenis@gnu.org>
270 David S. Miller <davem@redhat.com>
271
272 * glibc-tdep.c, glibc-tdep.h: New files.
273 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
274 * config/i386/linux.mt (TDEPFILES): Likewise.
275 * i386-linux-tdep.c (glibc-tdep.h): Include.
276 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
277 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
278 * arm-linux-tdep.c (glibc-tdep.h): Include.
279 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
280 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
281 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
282 (glibc_tdep_h): Define.
283 (glibc-tdep.o): Add dependencies.
284 (arm-linux-tdep.o): Update dependencies.
285 (i386-linux-tdep.o): Likewise.
286
287 2003-11-09 Andrew Cagney <cagney@redhat.com>
288
289 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
290 * config/mips/nm-irix6.h: Delete file.
291 * config/mips/nm-linux.h: Update copyright.
292 (MIPS_GNULINUX_TARGET): Delete macro.
293 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
294 * config/mips/xm-irix6.h: Delete file.
295 * config/mips/linux.mh (XM_FILE): Delete definition.
296 * config/mips/xm-linux.h: Delete file.
297
298 2003-11-09 Andrew Cagney <cagney@redhat.com>
299
300 * d10v-tdep.c (d10v_return_value): New function.
301 (d10v_use_struct_convention): Delete function.
302 (d10v_store_return_value): Delete function.
303 (d10v_extract_struct_value_address): Delete function.
304 (d10v_gdbarch_init): Set "return_value" instead of
305 "extract_return_value", "store_return_value",
306 "extract_struct_value_address", and "use_struct_convention".
307 (RET1_REGNUM): Delete const.
308
309 2003-11-09 Mark Kettenis <kettenis@gnu.org>
310
311 From David S. Miller <davem@redhat.com>:
312 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
313 * gdbarch.c, gdbarch.h: Regenerated.
314 * arch-utils.c (generic_skip_solib_resolver): New function.
315 * arch-utils.h (generic_skip_solib_resolver): New prototype.
316 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
317
318 2003-11-07 Andrew Cagney <cagney@redhat.com>
319
320 * top.c (print_gdb_version): Replace STREQ with strcmp.
321 * valops.c (value_struct_elt_for_reference): Ditto.
322 (value_struct_elt_for_reference): Ditto.
323 * symtab.c (gdb_mangle_name): Ditto.
324 (find_line_symtab): Ditto.
325 * symmisc.c (maintenance_print_symbols): Ditto.
326 * symfile.c (symbol_file_command): Ditto.
327 * stabsread.c (define_symbol, read_type): Ditto.
328 (cleanup_undefined_types, scan_file_globals): Ditto.
329 * solib.c (solib_map_sections): Ditto.
330 * solib-svr4.c (bfd_lookup_symbol): Ditto.
331 * rs6000-tdep.c (skip_prologue): Ditto.
332 * p-valprint.c (pascal_value_print): Ditto.
333 (pascal_object_is_vtbl_ptr_type): Ditto.
334 * objfiles.c (in_plt_section): Ditto.
335 * minsyms.c (lookup_minimal_symbol): Ditto.
336 (compact_minimal_symbols): Ditto.
337 (find_solib_trampoline_target): Ditto.
338 * mdebugread.c (parse_type): Ditto.
339 * language.c (set_language_command): Ditto.
340 (set_type_command, set_range_command): Ditto.
341 * f-lang.c (add_common_block): Ditto.
342 (add_common_block): Ditto.
343 (find_first_common_named): Ditto.
344 (patch_all_commons_by_name): Ditto.
345 * elfread.c (elf_locate_sections): Ditto.
346 (elf_locate_sections): Ditto.
347 (elfstab_offset_sections): Ditto.
348 * dwarf2read.c (dwarf2_locate_sections): Ditto.
349 * dbxread.c (add_old_header_file): Ditto.
350 (find_corresponding_bincl_psymtab): Ditto.
351 (read_dbx_symtab, process_one_symbol): Ditto.
352 * coffread.c (patch_opaque_types): Ditto.
353 * cli/cli-decode.c (delete_cmd): Ditto.
354 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
355 * c-typeprint.c (c_type_print_base): Ditto.
356 * breakpoint.c (bpstat_stop_status): Ditto.
357 (clear_command, breakpoint_re_set_one): Ditto.
358
359 2003-11-07 Andrew Cagney <cagney@redhat.com>
360
361 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
362 * bcache.c (struct bstring): Make "length" an unsigned short, add
363 "half_hash".
364 (struct bcache): Add "half_hash_error_count".
365 (bcache): Compute and save the "half_hash". Compare the
366 "half_hash" before comparing the length. Update
367 half_hash_error_count.
368
369 2003-11-07 Andrew Cagney <cagney@redhat.com>
370
371 * inftarg.c (child_xfer_partial): New function
372 (init_child_ops): Set "to_xfer_partial".
373
374 2003-11-07 Andrew Cagney <cagney@redhat.com>
375
376 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
377 set "return_value" instead of "use_struct_convention".
378 (ppc_linux_use_struct_convention): Delete function.
379 (ppc_linux_return_value): New function.
380 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
381 (ppc_sysv_abi_broken_return_value): New function.
382 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
383 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
384 static.
385 (ppc_sysv_abi_extract_return_value): Delete function.
386 (ppc_sysv_abi_broken_extract_return_value): Delete function.
387 (ppc_sysv_abi_store_return_value): Delete function.
388 (ppc_sysv_abi_broken_store_return_value): Delete function.
389 (ppc_sysv_abi_use_struct_convention): Delete function.
390 (ppc64_sysv_abi_use_struct_convention): Delete function.
391 (ppc64_sysv_abi_extract_return_value): Delete function.
392 (ppc64_sysv_abi_store_return_value): Delete function.
393 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
394 (ppcnbsd_init_abi): Set "return_value", instead of
395 "use_struct_convention", "extract_return_value", and
396 "store_return_value".
397 (ppcnbsd_use_struct_convention): Delete function.
398 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
399 (ppc_sysv_abi_return_value): Declare.
400 (ppc_sysv_abi_broken_return_value): Declare.
401 (ppc_sysv_abi_use_struct_convention): Delete.
402 (ppc_sysv_abi_store_return_value): Delete.
403 (ppc_sysv_abi_extract_return_value): Delete.
404 (ppc_sysv_abi_broken_store_return_value): Delete.
405 (ppc_sysv_abi_broken_extract_return_value): Delete.
406 (ppc64_sysv_abi_use_struct_convention): Delete.
407 (ppc64_sysv_abi_extract_return_value): Delete.
408 (ppc64_sysv_abi_store_return_value): Delete.
409 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
410 set "return_value" instead of "extract_return_value",
411 "store_return_value", and "use_struct_convention".
412
413 2003-11-07 Mark Kettenis <kettenis@gnu.org>
414
415 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
416
417 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
418 fscanf.
419
420 2003-11-07 Mark Kettenis <kettenis@gnu.org>
421
422 * fbsd-proc.c: Fix formatting.
423
424 2003-11-06 Kevin Buettner <kevinb@redhat.com>
425
426 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
427 Define.
428 (new_variant): Set name for iacc0_regnum.
429 (frv_register_name): Accommodate pseudo-registers.
430 (frv_register_type): Add case for iacc0_regnum.
431 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
432 (frv_gdbarch_init): Set number of pseudo registers. Establish
433 pseudo-register read/write methods.
434
435 2003-11-06 Andrew Cagney <cagney@redhat.com>
436
437 * valops.c (destructor_name_p): Replace STREQN with strncmp.
438 * top.c (command_line_input): Ditto.
439 * objc-exp.y (yylex): Ditto.
440 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
441 * jv-exp.y (yylex): Ditto.
442 * f-exp.y (yylex): Ditto.
443 * event-top.c (command_line_handler): Ditto.
444 * environ.c (get_in_environ): Ditto.
445 (set_in_environ): Ditto.
446 * dwarfread.c (handle_producer): Ditto.
447 * dbxread.c (process_one_symbol): Ditto.
448 * c-typeprint.c (c_type_print_base): Ditto.
449 * c-exp.y (yylex): Ditto.
450
451 2003-11-06 Andrew Cagney <cagney@redhat.com>
452 Jeff Johnston <jjohnstn@redhat.com>
453
454 * target.c (add_target): Only set "to_xfer_partial" when NULL.
455 (init_dummy_target): Set "to_xfer_partial".
456
457 2003-11-06 Andrew Cagney <cagney@redhat.com>
458
459 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
460 REGISTER_CONVENTION.
461
462 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
463
464 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
465 static.
466
467 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
468
469 * breakpoint.c (remove_breakpoint): Take an bp_location
470 instead of a breakpoint argument. Check the bp_location's type.
471 Fix a reversed condition for hardware breakpoints.
472
473 (insert_bp_location): Update call to remove_breakpoint.
474 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
475 (remove_hw_watchpoints): Likewise.
476 (reattach_breakpoints): Likewise.
477 (detach_breakpoints): Likewise.
478 (delete_breakpoint): Likewise.
479
480 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
481
482 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
483 (beakpoint_init_inferior): Likewise.
484 (breakpoint_here_p): Likewise. Only check addresses for software
485 or hardware breakpoints.
486 (breakpoint_inserted_here_p): Likewise.
487 (breakpoint_thread_match): Likewise. Correct comment.
488 (bpstat_have_active_hw_watchpoints): Likewise.
489 (check_duplicates): Likewise.
490
491 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
492
493 * breakpoints.c (insert_bp_location): New function, broken out
494 from insert_breakpoints. Work on an bp_location instead of a
495 breakpoint.
496 (insert_breakpoints): Use it.
497
498 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
499
500 * breakpoint.h (struct bp_location): Add section.
501 (struct breakpoint): Remove section.
502 * breakpoint.c (insert_breakpoints, remove_breakpoint)
503 (breakpoint_here_p, breakpoint_inserted_here_p)
504 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
505 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
506 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
507 section through loc.
508
509 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
510
511 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
512 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
513
514 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
515
516 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
517 arguments. Initialize owner and type for the new breakpoint
518 location item.
519 (set_raw_breakpoint): Update call to allocate_bp_location.
520
521 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
522
523 * breakpoint.h (struct bp_location): Add a chain pointer.
524 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
525 macros.
526 (bp_location_chain): New variable.
527 (allocate_bp_location): New function.
528 (set_raw_breakpoint): Use it.
529 (delete_breakpoint): Remove ->loc from the bp_location_chain.
530
531 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
532
533 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
534 (struct breakpoint): Remove address, shadow_contents, inserted,
535 requested_address, and duplicate. Add a struct bp_location.
536 * breakpoint.c (condition_command, read_memory_nobpt)
537 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
538 (reattach_breakpoints, update_breakpoints_after_exec)
539 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
540 (breakpoint_init_inferior, breakpoint_here_p)
541 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
542 (breakpoint_thread_match, bpstat_stop_status)
543 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
544 (describe_other_breakpoints, check_duplicates)
545 (make_breakpoint_permanent, create_thread_event_breakpoint)
546 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
547 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
548 (watch_command_1, print_one_exception_catchpoint)
549 (clear_command, breakpoint_re_set_one): Adjust member accesses to
550 use the breakpoint's ->loc.
551 (set_raw_breakpoint): Likewise. Initialize ->loc.
552 (delete_breakpoint): Likewise. Free ->loc.
553
554 2003-11-05 Andrew Cagney <cagney@redhat.com>
555
556 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
557 macro.
558 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
559 * config/i386/tm-cygwin.h
560 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
561 * config/powerpc/tm-linux.h
562 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
563 (at_subroutine_call_instruction_target): Delete declaration.
564 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
565 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
566 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
567
568 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
569 "struct bfd_section" and "struct bfd".
570 * target.h (struct section_table): Ditto.
571 * rs6000-nat.c (xcoff_relocate_core): Ditto.
572 * solib-svr4.c (elf_locate_base): Ditto.
573 * pa64solib.c (dld_cache_t): Ditto.
574 * objfiles.h (struct obj_section): Ditto.
575 * objfiles.c (add_to_objfile_sections): Ditto.
576 * exec.c (bfdsec_to_vmap): Ditto.
577 (add_to_section_table): Ditto.
578 (build_section_table): Ditto.
579 * corelow.c (get_core_register_section): Ditto.
580 * coffread.c (find_linenos): Ditto.
581 * elfread.c (elf_interpreter): Delete #if0'd function.
582
583 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
584 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
585 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
586 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
587
588 * arch-utils.h (generic_cannot_extract_struct_value_address):
589 Delete declaration.
590 * wince.c (_initialize_wince): Fix multi-line string.
591 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
592
593 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
594
595 * top.c (execute_command): Fix broken logic for command execution
596 while inferior is running in async mode.
597
598 2003-11-06 Mark Kettenis <kettenis@gnu.org>
599
600 * dwarf2-frame.c (execute_cfa_program): Mark register as
601 REG_SAVED_REG for DW_CFA_register opcode.
602
603 2003-11-05 Mark Kettenis <kettenis@gnu.org>
604
605 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
606 %rsp, %rip and %eflags to match ABI-change.
607
608 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
609
610 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
611 (ia64_gdbarch_init): Don't bother calculating the os.
612 Instead use the gdbarch_info struct and look at the osabi field.
613 Also use gdbarch_list_lookup_by_info() to look for a
614 candidate gdbarch.
615
616 2003-11-05 Kevin Buettner <kevinb@redhat.com>
617
618 * frv-tdep.c (frv_register_byte): Delete.
619 (frv_extract_return_value, frv_store_return_value)
620 (frv_extract_struct_value_address): Don't call frv_register_byte().
621 Convert to non-deprecated form.
622 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
623 Convert calls to set_gdbarch_deprecated_extract_return_value(),
624 set_gdbarch_deprecated_store_return_value(), and
625 set_gdbarch_deprecated_extract_struct_value_address() into
626 non-deprecated forms.
627
628 2003-11-05 Andrew Cagney <cagney@redhat.com>
629
630 * mips-tdep.c (mips_dump_tdep): Do not print
631 PRINT_EXTRA_FRAME_INFO.
632 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
633 Rename PRINT_EXTRA_FRAME_INFO.
634 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
635 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
636 (mips_print_extra_frame_info): Delete declaration.
637 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
638
639 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
640
641 * coffread.c (coff_symtab_read): Remove passing of info parameter
642 to prim_record_minimal_symbol_and_info.
643
644 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
645
646 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
647 (decode_base_type): Delete ifdeffed out code.
648
649 2003-11-04 Andrew Cagney <cagney@redhat.com>
650
651 * symtab.c (find_active_alias): Delete function.
652 (lookup_block_symbol): Delete alias code.
653 * stabsread.c (resolve_live_range): Delete function.
654 (add_live_range): Delete function.
655 (resolve_symbol_reference): Delete function.
656 (define_symbol): Delete live range and alias code.
657 (scan_file_globals): Delete alias code.
658 * symtab.h (SYMBOL_RANGES): Delete macro.
659 (struct range_list): Delete structure.
660 (struct symbol): Delete field "ranges".
661 (SYMBOL_ALIASES): Delete macro.
662 (struct alias_list): Delete structure.
663 (struct symbol): Delete field "aliases".
664
665 2003-11-04 Michael Snyder <msnyder@redhat.com>
666
667 * MAINTAINERS: Remove myself as owner of breakpoints and
668 of sparc/solaris.
669
670 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
671
672 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
673 (sh_sh4al_dsp_register_name): Ditto.
674 (sh4_nofpu_show_regs): Ditto.
675 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
676 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
677
678 2003-11-03 Andrew Cagney <cagney@redhat.com>
679
680 * bcache.c: Include "gdb_assert.h".
681 (struct bcache): Add fields "expand_count" and
682 "expand_hash_count".
683 (expand_hash_table): Update the expand counts.
684 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
685 on object sizes and hashes.
686 * Makefile.in (bcache.o): Update dependencies.
687
688 2003-11-03 Andrew Cagney <cagney@redhat.com>
689
690 * exec.c (xfer_memory): Eliminate xfer_fn.
691
692 2003-10-31 Kevin Buettner <kevinb@redhat.com>
693
694 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
695 (opcodes/frv-desc.h): Include.
696 (iacc0h_regnum, iacc0l_regnum): Define.
697 (last_spr_regnum, frv_num_regs): Update.
698 (new_variant): Don't supply default names for holes in the SPRs.
699 Supply names for iacc0h_regnum and iacc0l_regnum.
700 (frv_register_type): Use symbolic constants first_fpr_regnum and
701 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
702 builtin_type_int instead of builtin_type_int32.
703 (frv_register_sim_regno): New function.
704 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
705 * Makefile.in (gdb_sim_frv_h): Define.
706 (frv-tdep.o): Update dependencies.
707
708 2003-10-31 Andrew Cagney <cagney@redhat.com>
709
710 * avr-tdep.c (avr_frame_this_id): Do not call
711 deprecated_inside_entry_file.
712 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
713 * m32r-tdep.c (m32r_frame_this_id): Ditto.
714 * d10v-tdep.c (d10v_frame_this_id): Ditto.
715 * arm-tdep.c (arm_prologue_this_id): Ditto.
716 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
717
718 2003-10-31 Jim Blandy <jimb@redhat.com>
719
720 * elfread.c (elf_symtab_read): Allocate correct number of tail
721 elements to sectinfo structure. (Fix from Woody LaRue.)
722
723 2003-10-31 Andrew Cagney <cagney@redhat.com>
724
725 * stack.c (return_command): Use get_frame_type, instead of
726 CALL_DUMMY_HAS_COMPLETED.
727 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
728 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
729
730 2003-10-31 Mark Kettenis <kettenis@gnu.org>
731
732 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
733 explicitly specify size of array.
734 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
735 TDEP->sc_num_regs.
736
737 2003-10-31 Andrew Cagney <cagney@redhat.com>
738
739 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
740 function.
741 (s390_gdbarch_init): Set extract_struct_value_address.
742 * arch-utils.c (generic_cannot_extract_struct_value_address):
743 Delete function.
744 * arch-utils.h (generic_cannot_extract_struct_value_address):
745 Delete definition.
746
747 2003-10-31 Mark Kettenis <kettenis@gnu.org>
748
749 * i386-linux-nat.c (fetch_core_registers): Remove.
750 (linux_elf_core_fns): Remove.
751 (_initialize_i386_linux_nat): Remove.
752
753 2003-10-31 Andrew Cagney <cagney@redhat.com>
754
755 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
756 "exec.h".
757 (exec_entry_point): New function.
758 (enable_break): Create a "tmp_bfd_target", use that and
759 entry_point_address when computing the relocation offset.
760 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
761 * Makefile.in (solib-svr4.o): Update dependencies.
762
763 2003-10-31 Andrew Cagney <cagney@redhat.com>
764
765 * defs.h (XZALLOC): Define.
766 * target.h (struct target_ops): Add "to_data";
767 * bfd-target.h, bfd-target.c: New files.
768 * Makefile.in (SFILES): Add "bfd-target.c".
769 (COMMON_OBS): Add "bfd-target.o".
770 (bfd-target.o): Specify dependencies.
771 (bfd_target_h): Define.
772 * defs.h (XZALLOC): Define.
773
774 2003-10-31 Andrew Cagney <cagney@redhat.com>
775
776 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
777 adjust_breakpoint_address.
778 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
779 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
780 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
781 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
782
783 2003-10-31 Andrew Cagney <cagney@redhat.com>
784
785 * target.h (struct target_ops): Replace "to_read_partial" and
786 "to_write_partial" with "to_xfer_partial". Update comments.
787 * target.c (debug_to_write_partial): Delete function.
788 (debug_to_xfer_partial): Replace debug_to_read_partial.
789 (add_target, update_current_target, setup_target_debug): Set
790 "to_xfer_partial" instead of "to_read_partial" and
791 "to_write_partial".
792 (default_xfer_partial): Replace "default_write_partial".
793 (default_read_partial): Delete.
794 (target_read_partial, target_write_partial): Call
795 "to_xfer_partial".
796 * remote.c (init_remote_ops): Set "to_xfer_partial".
797 (init_remote_async_ops): Ditto.
798 (remote_xfer_partial): Replace "remote_read_partial".
799
800 2003-10-31 Mark Kettenis <kettenis@gnu.org>
801
802 * i386-tdep.c (i386_supply_fpregset): Support floating-point
803 registers in `fxsave' format.
804 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
805
806 2003-10-30 Mark Kettenis <kettenis@gnu.org>
807
808 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
809 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
810 TDEP->gregset_num_regs and tdep->sizeof_gregset.
811
812 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
813 specify size of array.
814 (i386_linux_init_abi): Remove initialization of
815 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
816 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
817
818 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
819 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
820 core-regset.o.
821
822 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
823 the ELF header.
824
825 2003-10-29 Mark Kettenis <kettenis@gnu.org>
826
827 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
828 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
829 core-regset.o.
830
831 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
832
833 * corelow.c: Include "arch-utils.h", "regset.h" and
834 "gdb_assert.h".
835 (core_gdbarch): New variable.
836 (sniff_core_bfd): Don't sniff if we have support for register sets
837 in CORE_GDBARCH.
838 (core_close): Reset CORE_GDBARCH.
839 (core_open): Initialize CORE_GDBARCH.
840 (get_core_register_section): Use register sets if they are
841 supported by CORE_GDBARCH.
842 (get_core_registers): Don't print error message if we have support
843 for register sets in CORE_GDBARCH.
844
845 2003-10-29 Andrew Cagney <cagney@redhat.com>
846
847 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
848 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
849
850 2003-10-29 Mark Kettenis <kettenis@gnu.org>
851
852 * objfiles.h (clear_objfile_data): New prototype.
853 * objfiles.c (clear_objfile_data): New function.
854 * symfile.c (reread_symbols): Clear per-objfile data.
855
856 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
857
858 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
859 printf_unfiltered instead of printf_filtered for output messages.
860 (add_symbol_file_command): Ditto.
861 (reread_symbols): Ditto.
862 (overlay_auto_command): Ditto.
863 (overlay_manual_command): Ditto.
864 (overlay_off_command): Ditto.
865
866 2003-10-27 Mark Kettenis <kettenis@gnu.org>
867
868 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
869 (gdbarch_from_bfd): New function.
870 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
871 deprecated_select_gdbarch_hack.
872 * arch-utils.h (gdbarch_from_bfd): New prototype.
873
874 2003-10-27 Andrew Cagney <cagney@redhat.com>
875
876 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
877 arch_info. Use warning instead of fprintf_filtered. Do not use
878 deprecated bfd_printable_arch_mach.
879
880 2003-10-26 Kevin Buettner <kevinb@redhat.com>
881
882 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
883 Delete.
884 (frv_register_type): Rename from frv_register_virtual_type. Add
885 ``struct gdbarch *'' parameter.
886 (frv_gdbarch_init): Delete calls to the following functions:
887 set_gdbarch_deprecated_size(),
888 set_gdbarch_deprecated_register_bytes(),
889 set_gdbarch_deprecated_register_raw_size(),
890 set_gdbarch_deprecated_max_register_raw_size(),
891 set_gdbarch_deprecated_register_virtual_size(),
892 set_gdbarch_deprecated_max_register_virtual_size(),
893 set_gdbarch_deprecated_register_virtual_size(),
894 set_gdbarch_deprecated_register_virtual_type().
895 Add call to function set_gdbarch_register_type().
896
897 2003-10-26 Mark Kettenis <kettenis@gnu.org>
898
899 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
900 FDOFF_REGNUM): Remove defines.
901 * win32-nat.c (do_child_fetch_inferior_registers): Include
902 "i387-tdep.h".
903 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
904 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
905 undefine I387_ST0_REGNUM.
906
907 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
908 * x86-64-tdep.c (x86_64_store_return_value): Use
909 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
910
911 Change register numbers to enumartion values.
912 * i386-tdep.h (enum i386_regnum): New.
913 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
914 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
915 I386_ST0_REGNUM): Remove defines.
916 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
917 I386_EDI_REGNUM): Remove defines.
918
919 2003-10-24 Andrew Cagney <cagney@redhat.com>
920
921 * target.c: Include "gdbcore.h".
922 (get_target_memory, get_target_memory_unsigned): New functions.
923 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
924 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
925 Use get_target_memory_unsigned.
926 * Makefile.in (target.o): Update dependencies.
927
928 2003-10-24 Andrew Cagney <cagney@redhat.com>
929
930 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
931 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
932 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
933 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
934 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
935
936 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
937 (can_run_code_for): Use the OO term "singleton".
938
939 2003-10-23 Andrew Cagney <cagney@redhat.com>
940
941 * Makefile.in (stack.o): Add $(regcache_h).
942 * stack.c: Include "regcache.h"
943 (return_command): Rewrite. Use get_frame_id and
944 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
945 about unhandled return-values.
946 * value.h (set_return_value): Delete declaration.
947 * values.c (set_return_value): Delete function.
948
949 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
950
951 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
952 (pseudo_regs): Add comment regarding register stack registers.
953 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
954 (floatformat_valid): New static routine.
955 (floatformat_ia64_ext): Add name field and set up is_valid routine
956 to floatformat_valid().
957 (examine_prologue): For the previous cfm, use
958 frame_unwind_register()
959 if the cfm is not stored in a register-stack register. Save the
960 previous cfm value in the prev_cfm field. Add debug output.
961 (ia64_frame_this_id): Use frame_id_build_special() to also register
962 the bsp. Add debug output.
963 (ia64_sigtramp_frame_this_id): Ditto.
964 (ia64_frame_prev_register): Look at cache saved_regs for a few more
965 registers and also add some checks for framelessness before accepting
966 current register values for fields such as return address. For cfm,
967 use the cached prev_cfm field if available. Add comment to explain
968 PSR logic. Add debug output.
969 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
970 as part of initialization.
971 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
972 calculated. Cache the bsp and cfm values.
973 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
974 instead of using ia64_frame_prev_register() which doesn't expect most
975 registers to be saved. The saved values for bsp and sp
976 can be taken from the cache. Add debug output.
977 (ia64_push_dummy_call): Use frame_id_build_special() to also register
978 the bsp.
979
980 2003-10-23 Jim Blandy <jimb@redhat.com>
981
982 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
983 architecture the current arch can run code for --- but not if it's
984 a superset.
985 (can_run_code_for): New function.
986
987 2003-10-22 James E Wilson <wilson@specifixinc.com>
988
989 * MAINTAINERS: Move myself from paper trail section back to write
990 after approval section.
991
992 2003-10-22 Andrew Cagney <cagney@redhat.com>
993
994 * exec.h: New file.
995 * win32-nat.c: Include "exec.h".
996 * solib.c: Include "exec.h".
997 * target.h (build_section_table): Delete declaration.
998 * somsolib.c: Include "exec.h".
999 (exec_ops): Delete extern declaration.
1000 * rs6000-nat.c: Update copyright. Include "exec.h".
1001 (exec_ops): Delete extern declaration.
1002 * pa64solib.c: Update copyright. Include "exec.h".
1003 (exec_ops): Delete extern declaration.
1004 * exec.c: Update copyright. Include "exec.h".
1005 * corelow.c: Update dependencies. Include "exec.h".
1006 * Makefile.in (exec_h): Define.
1007 (exec.o, somsolib.o): Update dependencies.
1008 (pa64solib.o, corelow.o): Update dependencies.
1009
1010 2003-10-22 Andrew Cagney <cagney@redhat.com>
1011
1012 * target.c: Include "gdb_assert.h" (target_read): Call
1013 "target_read_partial", not "target_write_partial".
1014 (default_read_partial, default_write_partial): New function.
1015 (target_read_partial, target_write_partial): Simplify, assume that
1016 there is always a read/write method.
1017 (update_current_target, add_target): Always set "to_read_partial"
1018 and "to_write_partial".
1019 (target_write, target_read): Fail on a zero byte transfer.
1020 * Makefile.in (target.o): Update dependencies.
1021 * target.h: Update copyright date.
1022 (target_object): Fix typo.
1023
1024 2003-10-22 Andrew Cagney <cagney@redhat.com>
1025
1026 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1027 multi-arch method, add "targ" parameter.
1028 (struct target_ops): Declare.
1029 * gdbarch.h, gdbarch.c: Re-generate.
1030 * Makefile.in (c-valprint.o): Update dependencies.
1031 * arch-utils.h: Update copyright.
1032 (convert_from_func_ptr_addr_identity): Declare.
1033 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1034 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1035 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1036 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1037 * infcall.c (find_function_addr, call_function_by_hand): Update.
1038 * c-valprint.c: Include "target.h".
1039 (print_function_pointer_address): Update.
1040
1041 2003-10-22 Andrew Cagney <cagney@redhat.com>
1042
1043 * target.c (target_close): New function.
1044 (debug_to_close): Use "target_close".
1045 (push_target): Use "target_close".
1046 (unpush_target): Use "target_close".
1047 (pop_target): Use "target_close".
1048 * target.h (struct target_ops): Add "to_xclose".
1049 (target_open): Delete macro. Move comment to "to_open".
1050 (target_close): Replace macro with function that takes a target.
1051 * top.c (quit_target): Pass "current_target" to "target_close".
1052
1053 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1054
1055 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1056 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1057 * symtab.h (lookup_minimal_symbol_text): Update.
1058 * breakpoint.c (create_overlay_event_breakpoint,
1059 create_longjmp_breakpoint): Update callers.
1060 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1061 * symtab.c (find_pc_sect_line): Ditto.
1062
1063 2003-10-21 Andrew Cagney <cagney@redhat.com>
1064
1065 * target.c (errno): Delete extern declaration.
1066
1067 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1068
1069 * ia64-tdep.c: Change all occurrences of
1070 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1071 (ia64_frame_prev_register): Minor whitespace change.
1072
1073 2003-10-20 Michael Chastain <mec@shout.net>
1074
1075 * config/djgpp/fnchange.lst: Add lines for:
1076 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1077 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1078 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1079 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1080 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1081 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1082 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1083
1084 2003-10-20 Andrew Cagney <cagney@redhat.com>
1085
1086 * values.c (register_value_being_returned): Update comments. Use
1087 "gdbarch_return_value" when available.
1088 (using_struct_return): Ditto.
1089 (set_return_value): Ditto. Use "gdbarch_return_value" when
1090 available.. Print a warning, and not an error, when an unhandled
1091 return type is encountered.
1092 * infcmd.c: Include "gdb_assert.h".
1093 (print_return_value): When gdbarch_return_value_p, and using
1094 struct return, assume that the value is not available.
1095 * defs.h (return_value_convention): Define.
1096 * gdbarch.sh (gdbarch_return_value): New predicate method.
1097 * gdbarch.h, gdbarch.c: Re-generate
1098 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1099
1100 2003-10-20 Andrew Cagney <cagney@redhat.com>
1101
1102 * symtab.c: Replace "struct sec" with "struct bfd_section".
1103 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1104
1105 2003-10-19 Michael Chastain <mec@shout.net>
1106
1107 * config/djgpp/fnchange.lst: Add lines for:
1108 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1109 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1110 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1111
1112 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1113
1114 * amd64fbsd-nat.c (fetch_inferior_registers,
1115 store_inferior_registers): Remove functions.
1116 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1117
1118 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1119
1120 Add NetBSD/amd64 native configuration:
1121 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1122 * amd64nbsd-tdep.c: New file.
1123 * amd64nbsd-nat.c: New file.
1124 * amd64bsd-nat.c: New file.
1125 * config/i386/nbsd64.mh: New file.
1126 * config/i386/nbsd64.mt: New file.
1127 * configure.host: Add x86_64-*-netbsd*.
1128 * configure.tgt: Add x86_64-*-netbsd*.
1129 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1130 New targets.
1131 * NEWS (New native configurations): Mention NetBSD/amd64.
1132
1133 2003-10-17 Michael Chastain <mec@shout.net>
1134
1135 * config/djgpp/fnchange.lst: Remove dead lines for:
1136 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1137 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1138 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1139 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1140 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1141 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1142 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1143 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1144 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1145 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1146 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1147 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1148 gdb/config/sparc/tm-sparclite.h,
1149 gdb/gdbtk/generic/ChangeLog-2001,
1150 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1151 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1152 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1153 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1154 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1155 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1156 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1157 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1158 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1159 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1160 itcl/iwidgets3.0.0/demos/fileselectionbox,
1161 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1162 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1163 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1164 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1165 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1166 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1167 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1168 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1169 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1170 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1171 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1172 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1173 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1174 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1175 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1176 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1177 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1178 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1179 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1180 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1181 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1182 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1183 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1184 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1185 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1186 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1187 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1188 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1189 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1190 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1191 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1192 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1193 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1194 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1195 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1196 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1197 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1198 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1199 itcl/iwidgets3.0.0/demos/scrolledframe,
1200 itcl/iwidgets3.0.0/demos/scrolledhtml,
1201 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1202 itcl/iwidgets3.0.0/demos/scrolledtext,
1203 itcl/iwidgets3.0.0/demos/selectionbox,
1204 itcl/iwidgets3.0.0/demos/selectiondialog,
1205 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1206 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1207 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1208 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1209 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1210 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1211 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1212 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1213 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1214 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1215 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1216 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1217 itcl/iwidgets3.0.0/doc/selectionbox.n,
1218 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1219 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1220 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1221 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1222 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1223 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1224 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1225 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1226 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1227 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1228 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1229 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1230 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1231 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1232 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1233 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1234 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1235 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1236 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1237 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1238 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1239 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1240 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1241 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1242 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1243 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1244 itcl/iwidgets3.0.0/tests/selectionbox.test,
1245 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1246 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1247 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1248 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1249 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1250 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1251 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1252 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1253 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1254 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1255 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1256 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1257 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1258 tk/mac/tkMacProjects.sit.hqx.
1259
1260 2003-10-17 Andrew Cagney <cagney@redhat.com>
1261
1262 * target.c (target_section_by_addr): New function.
1263 (do_xfer_memory): Use "target_section_by_addr".
1264 * target.h (target_section_by_addr): Declare.
1265
1266 * target.h (struct target_ops): Add "to_read_partial" and
1267 "to_write_partial", delete "to_query".
1268 (target_read_partial, target_write_partial): Declare.
1269 (target_read, target_write): Declare.
1270 (target_query): Delete macro.
1271 * target.c (target_read_partial): New function.
1272 (target_write_partial, target_read, target_write): New function.
1273 (update_current_target): Delete inheritance of "to_query". Add
1274 comments about "to_read_partial" and "to_write_partial".
1275 (debug_to_partial_read, debug_to_partial_write): New functions.
1276 (debug_to_query): Delete function.
1277 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1278 instead of "to_query".
1279 * remote.c (remote_read_partial): Replace "remote_query".
1280 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1281 (init_remote_async_ops): Ditto.
1282 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1283 "target_read_partial" instead of "target_query".
1284 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1285 Use "target_read_partial" instead of "target_query".
1286
1287 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1288
1289 * frame.h (struct frame_id): Add new field: special_addr.
1290 (frame_id_build_special): New prototype.
1291 * frame.c (frame_id_build_special): New function.
1292 (frame_id_build): Change to call frame_id_build_special().
1293 (frame_id_eq): Change to also test special_addr field.
1294 (frame_id_inner): Update comment.
1295
1296 2003-10-17 Andrew Cagney <cagney@redhat.com>
1297
1298 * target.c (update_current_target): Perform the target cleanup.
1299 Put the target stack beneath the squashed "current_target".
1300 (add_target): Delete disabled call to "cleanup_target".
1301 (cleanup_target): Delete function.
1302 (push_target, unpush_target): Do not call "cleanup_target".
1303
1304 2003-10-17 Andrew Cagney <cagney@redhat.com>
1305
1306 * target.c (target_stack): Change to a static target_ops.
1307 (update_current_target): Walk the "struct target_ops" stack.
1308 (pop_target, do_xfer_memory, target_info): Ditto.
1309 (find_target_beneath): Ditto.
1310 (push_target): Rewrite to use the "struct target_ops" stack.
1311 (unpush_target): Ditto.
1312 * target.h (struct target_stack_item): Delete definition.
1313 (target_stack): Delete declaration.
1314 (struct target_ops): Add field "beneath".
1315
1316 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1317
1318 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1319 declaration.
1320 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1321 (h8300_examine_prologue): Use h8300_normal_mode flag
1322 (h8300_gdbarch_init): Set architecture info for normal mode
1323
1324 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1325
1326 * remote.c (remote_protocol_vcont): New variable.
1327 (set_remote_protocol_vcont_packet_cmd): New function.
1328 (show_remote_protocol_vcont_packet_cmd): New function.
1329 (init_all_packet_configs): Handle remote_protocol_vcont.
1330 (remote_vcont_probe): New function.
1331 (remote_vcont_resume): New function.
1332 (remote_resume): Use it.
1333 (remote_async_resume): Call remote_resume.
1334 (_initialize_remote): Add verbose-resume packet commands.
1335
1336 2003-10-16 Andrew Cagney <cagney@redhat.com>
1337
1338 * infrun.c (handle_inferior_event): Add comment about
1339 "frame_id_inner" being too weak.
1340
1341 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1342
1343 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1344 second parameter, which is always null. Remove
1345 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1346 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1347 accordingly.
1348 * somsolib.c (som_solib_create_inferior_hook,
1349 som_solib_desire_dynamic_linker_symbols): Update callers.
1350 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1351
1352 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1353
1354 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1355 debug interface, SDI (Scalable Debug Interface).
1356 * NEWS: Mention m32r SDI protocol was supported.
1357 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1358 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1359
1360 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1361
1362 * ia64-linux-tdep.c: Include gdbcore.h.
1363 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1364 (ia64_linux_sigcontext_register_addr): Find the address of the
1365 sigcontext area stored in the sigframe instead of using
1366 a magic offset constant.
1367
1368 2003-10-15 Andrew Cagney <cagney@redhat.com>
1369
1370 * remote.c (remote_search): Delete function.
1371 * target.h (target_search): Delete disabled macro.
1372 (struct target_ops): Delete disabled field "to_search".
1373
1374 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1375
1376 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1377 instead of deprecated_inside_entry_file().
1378
1379 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1380
1381 * sh-tdep.c: Fix copy/paste hangover in comment.
1382 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1383 mode.
1384 (sh3e_sh4_extract_return_value): Ditto.
1385
1386 2003-10-13 Richard Henderson <rth@redhat.com>
1387
1388 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1389 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1390 match c_val_print a bit closer.
1391
1392 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1393
1394 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1395 (frv_gdbarch_adjust_breakpoint_address): New function.
1396 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1397 method.
1398
1399 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1400
1401 * breakpoint.h (struct breakpoint): Add new member
1402 ``requested_address''.
1403 * breakpoint.c (breakpoint_adjustment_warning)
1404 (adjust_breakpoint_address): New static functions.
1405 (print_it_typical): Issue warning if breakpoint's address is different
1406 from its requested address.
1407 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1408 (breakpoint_re_set_one): Set breakpoint's
1409 ``requested_address'' field. Set ``address'' field to the
1410 result of calling adjust_breakpoint_address() on the requested
1411 address.
1412
1413 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1414
1415 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1416 * gdbarch.h, gdbarch.c: Regenerate.
1417
1418 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1419
1420 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1421 TDEP->sc_num_regs.
1422
1423 * i386fbsd-tdep.c: New file.
1424 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1425 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1426 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1427 i386bsd-tdep.c.
1428 (_initialize_i386fbsd_tdep): New function.
1429 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1430 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1431 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1432 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1433 TDEP->sc_num_regs.
1434 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1435 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1436 to initialize TDEP->sc_num_regs.
1437 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1438 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1439 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1440 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1441 FreeBSD ELF OS/ABI's here.
1442 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1443 (i386fbsd-tdep.o): New target.
1444 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1445 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1446
1447 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1448 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1449 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1450 in initialization of TDEP->sc_num_regs.
1451
1452 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1453 (x86_64_init_abi): Initialize regset_from_core_section if
1454 appropriate.
1455
1456 * i386-tdep.c (i386_regset_from_core_section): New function.
1457 (i386_gdbarch_init): Initialize regset_from_core_section if
1458 appropriate.
1459 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1460
1461 * i386-tdep.h (struct regset): Declare opaque.
1462
1463 * gdbarch.sh (regset_from_core_section): New method.
1464 (struct regset): Declare opaque.
1465 * gdbarch.c, gdbarch.h: Regenerated.
1466
1467 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1468
1469 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1470 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1471 Correct test for pc within section.
1472
1473 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1474
1475 * gdbarch.sh: Remove trailing whitepsace from comments.
1476
1477 2003-10-08 Roland McGrath <roland@redhat.com>
1478
1479 * gcore.c (make_mem_sec): Function removed, folded into ...
1480 (gcore_create_callback): ... here. To omit a section, clear its
1481 SEC_LOAD bit rather than zeroing its size.
1482 Omit read-only sections only if they correspond to a known disk file.
1483 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1484
1485 2003-10-10 Michael Snyder <msnyder@redhat.com>
1486
1487 * d10v-tdep.c: Fix typo in comment.
1488
1489 2003-10-10 Andrew Cagney <cagney@redhat.com>
1490
1491 * rs6000-tdep.c (e500_store_return_value): Delete function.
1492 (e500_extract_return_value): Delete function.
1493 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1494 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1495 "ppc_sysv_abi_restore_return_value" where applicable.
1496 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1497 (ppc_sysv_abi_extract_return_value): Declare.
1498 (ppc_sysv_abi_broken_store_return_value): Declare.
1499 (ppc_sysv_abi_broken_extract_return_value): Declare.
1500 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1501 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1502 start of file.
1503 (do_ppc_sysv_return_value): New function.
1504 (ppc_sysv_abi_extract_return_value): New function.
1505 (ppc_sysv_abi_store_return_value): New function.
1506 (ppc_sysv_abi_broken_extract_return_value): New function.
1507 (ppc_sysv_abi_broken_store_return_value): New function.
1508 (ppc_sysv_abi_use_struct_convention): Call
1509 do_ppc_sysv_return_value.
1510
1511 2003-10-10 J. Brobecker <brobecker@gnat.com>
1512
1513 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1514 to lookup the main function symbol.
1515
1516 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1517
1518 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1519 types correctly.
1520 (sh_push_dummy_call_fpu): Fix argument passing rules.
1521 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1522 float types.
1523 (sh3e_sh4_store_return_value): Ditto.
1524
1525 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1526
1527 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1528 comment.
1529
1530 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1531
1532 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1533 more readable code. Accomodate passing of bitfields.
1534
1535 2003-10-10 Andrew Cagney <cagney@redhat.com>
1536
1537 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1538 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1539 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1540 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1541 (ppc64_sysv_abi_push_dummy_call): New function.
1542 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1543 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1544 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1545
1546 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1547
1548 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1549 * README: Ditto.
1550 * d10v-tdep.c: Ditto.
1551 * h8300-tdep.c: Ditto.
1552 * remote-e7000.c: Ditto.
1553 * remote-hms.c: Ditto.
1554 * ser-e7kpc.c: Ditto.
1555 * sh-stub.c: Ditto.
1556 * sh-tdep.c: Ditto.
1557 * sh-tdep.h: Ditto.
1558 * sh3-rom.c: Ditto.
1559 * sh64-tdep.c: Ditto.
1560 * top.c: Ditto.
1561 * wince.c: Ditto.
1562 * config/d10v/d10v.mt: Ditto.
1563 * config/sh/embed.mt: Ditto.
1564 * config/sh/linux.mt: Ditto.
1565 * config/sh/tm-linux.h: Ditto.
1566 * config/sh/tm-sh.h: Ditto.
1567 * config/sh/wince.mt: Ditto.
1568
1569 2003-10-09 Andrew Cagney <cagney@redhat.com>
1570
1571 * ppc-tdep.h (struct type): Declare opaque.
1572 * x86-64-tdep.h (struct regcache): Declare opaque.
1573 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1574 coding style.
1575
1576 2003-10-09 Andrew Cagney <cagney@redhat.com>
1577
1578 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1579 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1580 (SOFTWARE_SINGLE_STEP_P): Ditto.
1581 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1582 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1583 (SOFTWARE_SINGLE_STEP_P): Ditto.
1584 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1585 software_single_step to rs6000_software_single_step.
1586
1587 2003-10-09 Andrew Cagney <cagney@redhat.com>
1588
1589 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1590
1591 2003-10-09 Michael Snyder <msnyder@redhat.com>
1592
1593 * frame.h: Fix typo in comment.
1594 * dummy-frame.c: Fix typo in comment.
1595 * d10v-tdep.c: Random whitespace/comment tweaks.
1596
1597 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1598
1599 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1600 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1601 on stack.
1602
1603 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1604 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1605 in detail.
1606
1607 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1608
1609 * remote-mips.c (mips_initialize): Remove unneeded call to
1610 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1611
1612 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1613
1614 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1615 a memory pointer.
1616
1617 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1618
1619 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1620 for any lwp we resume.
1621 (running_callback): Add lwps that have pending status events
1622 against them to be considered running.
1623
1624 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1625
1626 * m32r-tdep.c : Include "dis-asm.h".
1627 * Makefile.in (m32r-tdep.o): Update dependencies.
1628
1629 2003-10-06 J. Brobecker <brobecker@gnat.com>
1630
1631 * completer.h (get_gdb_completer_word_break_characters): Delete.
1632 * completer.c: include language.h.
1633 (gdb_completer_word_break_characters): Delete.
1634 (get_gdb_completer_word_break_characters): Delete.
1635 (location_completer): Use the word break characters of the current
1636 language.
1637 (complete_line): Likewise.
1638 (line_completion_function): Likewise.
1639 (skip_quoted_chars): Likewise.
1640 * Makefile.in (completer.o): Add dependency on language.h.
1641 * top.c (init_main): Set the readline word break characters
1642 to GDB's default word break characters.
1643
1644 2003-10-06 J. Brobecker <brobecker@gnat.com>
1645
1646 * language.h (language_defn): new field, la_word_break_characters.
1647 * language.c (unknown_language_defn): Set new field to
1648 default_word_break_characters.
1649 (auto_language_defn): Likewise.
1650 (local_language_defn): Likewise.
1651 * ada-lang.c (ada_language_defn): Likewise.
1652 * c-lang.c (c_language_defn): Likewise.
1653 (cplus_language_defn): Likewise.
1654 (asm_language_defn): Likewise.
1655 (minimal_language_defn): Likewise.
1656 * f-lang.c (f_language_defn): Likewise.
1657 * jv-lang.c (java_language_defn): Likewise.
1658 * m2-lang.c (m2_language_defn): Likewise.
1659 * objc-lang.c (objc_language_defn): Likewise.
1660 * p-lang.c (pascal_language_defn): Likewise.
1661 * scm-lang.c (scm_language_defn): Likewise.
1662
1663 2003-10-06 Andrew Cagney <cagney@redhat.com>
1664
1665 * ppc-sysv-tdep.c: Re-indent.
1666
1667 2003-10-06 J. Brobecker <brobecker@gnat.com>
1668
1669 * language.h (default_word_break_characters): Add prototype.
1670 * language.c (default_word_break_characters): New function.
1671
1672 2003-10-06 Andreas Schwab <schwab@suse.de>
1673
1674 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1675 with %eax.
1676
1677 2003-10-06 Andrew Cagney <cagney@redhat.com>
1678
1679 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1680 "h8500-tdep.c".
1681 (z8k-tdep.o): Delete custom build rule.
1682
1683 2003-10-06 Andrew Cagney <cagney@redhat.com>
1684
1685 * Makefile.in: Update all dependencies.
1686
1687 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1688 No longer list PA as as obsolete candidate. List m32r as
1689 broken instead of obsolete.
1690
1691 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1692 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1693 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1694 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1695 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1696 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1697 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1698 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1699 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1700 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1701 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1702 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1703 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1704 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1705 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1706 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1707 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1708 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1709 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1710 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1711 * config/z8k/z8k.mt: Ditto.
1712
1713 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1714 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1715 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1716 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1717 sparclite were removed.
1718 * configure.host, configure.tgt: Remove corresponding tuples.
1719
1720 * breakpoint.c, breakpoint.h: Remove obsolete code.
1721 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1722 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1723 * stabsread.h, xcoffread.c: Ditto.
1724
1725 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1726 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1727 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1728 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1729
1730 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1731
1732 * f-valprint.c: Reformatting
1733
1734 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1735
1736 * x86-64-tdep.c: Remove duplicate comment.
1737
1738 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1739 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1740 names for return values. This fixes a bug since we looked at %rbx
1741 instead of %rdx.
1742
1743 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1744
1745 * x86-64-tdep.c: Include "regset.h".
1746
1747 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1748 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1749 sizeof_fpregset.
1750 * i386-tdep.c: Include "regset.h".
1751 (i386_supply_gregset): New function.
1752 (i386_supply_fpregset): New function.
1753 (i386_gdbarch_init): Initialze register set-related members of
1754 TDEP.
1755 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1756 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1757
1758 2003-10-03 Andrew Cagney <cagney@redhat.com>
1759
1760 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1761 set extract_return_value, store_return_value and
1762 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1763 ppc64_sysv_abi_store_return_value and
1764 ppc64_sysv_abi_use_struct_convention.
1765 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1766 (ppc64_sysv_abi_store_return_value): Declare.
1767 (ppc64_sysv_abi_use_struct_convention): Declare.
1768 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1769 (ppc64_sysv_abi_extract_return_value): New function.
1770 (ppc64_sysv_abi_store_return_value): New function.
1771 (ppc64_sysv_abi_use_struct_convention): New function.
1772 (ppc64_sysv_abi_return_value): New function.
1773
1774 2003-10-03 Andrew Cagney <cagney@redhat.com>
1775
1776 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1777 convert a descriptor to a function when it's in the ".opd"
1778 section.
1779
1780 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1781
1782 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1783 reg_size to keep GCC silent.
1784
1785 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1786
1787 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1788 base for DW_EH_PE_textrel encodings.
1789 (read_encoded_value): Add a DW_EH_PE_textrel case.
1790 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1791 section.
1792
1793 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1794
1795 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1796
1797 2003-10-02 Andrew Cagney <cagney@redhat.com>
1798
1799 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1800 REGISTER_RAW_SIZE.
1801 * gdbarch.h, gdbarch.c: Re-generate.
1802 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1803 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1804 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1805 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1806 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1807 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1808 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1809 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1810 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1811 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1812 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1813 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1814 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1815 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1816 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1817 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1818
1819 2003-10-02 Jim Blandy <jimb@redhat.com>
1820
1821 * dwarf2read.c (struct die_info): Doc fix.
1822
1823 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1824
1825 * sh-tdep.c: Running thru gdb_indent.sh.
1826
1827 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1828
1829 * sh-tdep.c (sh_justify_value_in_reg): New function.
1830 (sh_stack_allocsize): Ditto.
1831 (flt_argreg_array): New array used for floating point argument
1832 passing.
1833 (sh_init_flt_argreg): New function.
1834 (sh_next_flt_argreg): Ditto.
1835 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1836 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1837 Fix argument passing strategy.
1838 (sh_push_dummy_call_nofpu): Ditto.
1839
1840 2003-10-01 Andrew Cagney <cagney@redhat.com>
1841
1842 * value.h (register_value_being_returned): Declare. Replace
1843 "value_being_returned".
1844 * infcall.c (call_function_by_hand): Use
1845 register_value_being_returned.
1846 * infcmd.c (print_return_value): Call
1847 "register_value_being_returned", handle struct return locally.
1848 * values.c (register_value_being_returned): New function. Replace
1849 "value_being_returned".
1850
1851 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1852
1853 * linux-proc.c (linux_do_registers): New function.
1854 (linux_make_note_section): Use linux_do_registers in case of
1855 single threaded inferior programs.
1856
1857 2003-10-01 Andrew Cagney <cagney@redhat.com>
1858
1859 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1860 use STRUCT_ADDR. When not using "struct return convention", pass
1861 "0" to "value_being_returned". Add FIXMEs.
1862 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1863 value_being_returned. Add comments.
1864 * values.c (value_being_returned): Add fixme.
1865 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1866 (hppa_value_returned_from_stack): Add FIXME.
1867
1868 2003-09-30 David Carlton <carlton@kealia.com>
1869
1870 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1871 'has_children' and 'next' by 'child' and 'sibling'.
1872 (read_comp_unit): Rework algorithm, breaking body into
1873 read_die_and_children and read_die_and_siblings.
1874 (read_die_and_children, read_die_and_siblings): New.
1875 (read_full_die): Add 'has_children' argument; set it instead of
1876 the die's 'has_children' field. Minor formatting cleanup.
1877 (free_die_list): Use die->child and die->sibling instead of
1878 die->next.
1879 (dump_die_list): Ditto.
1880 (sibling_die): Use die->sibling.
1881 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1882 'has_children' and 'next' fields.
1883 (process_die, read_file_scope, read_func_scope)
1884 (read_lexical_block_scope, read_structure_scope)
1885 (read_enumeration, read_array_type, read_common_block)
1886 (read_namespace, read_subroutine_type, dump_die): Ditto.
1887
1888 2003-09-30 Andrew Cagney <cagney@redhat.com>
1889
1890 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1891 to 224, not 220.
1892
1893 2003-09-30 Andrew Cagney <cagney@redhat.com>
1894
1895 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1896 REGISTER_VIRTUAL_SIZE.
1897 * gdbarch.h, gdbarch.c: Regenerate.
1898 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1899 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1900 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1901
1902 2003-09-29 Andrew Cagney <cagney@redhat.com>
1903
1904 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1905 REGISTER_VIRTUAL_TYPE.
1906 * gdbarch.h, gdbarch.c: Regenerate.
1907 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1908 * sh64-tdep.c, sparc-tdep.c: Update.
1909
1910 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1911 * remote-vxmips.c (vx_read_register): Ditto.
1912 * remote-vx68.c (vx_read_register): Ditto.
1913 * gnu-nat.c (inf_validate_procs): Ditto.
1914
1915 2003-09-29 J. Brobecker <brobecker@gnat.com>
1916
1917 * infcall.c (call_function_by_hand): Fix build failure
1918 introduced in the previous change to this file.
1919
1920 2003-09-29 Andrew Cagney <cagney@redhat.com>
1921
1922 * NEWS: Mention Objective-C.
1923
1924 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1925
1926 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1927 test if the register has been saved on the stack.
1928 (arm_scan_prologue_cache): When analysing the instruction
1929 "str lr, [sp, #-4]", save the address where lr has been stored.
1930
1931 2003-09-28 Andrew Cagney <cagney@redhat.com>
1932
1933 * frame.c (frame_read_unsigned_register): Delete function.
1934 * frame.h (frame_read_unsigned_register): Delete declaration.
1935 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1936 get_frame_register_unsigned.
1937 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1938 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1939 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1940
1941 * frame.h (frame_read_register): Delete declaration.
1942 * frame.c (frame_read_register): Delete function.
1943 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1944 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1945 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1946 * mips-tdep.c (mips_register_to_value): Ditto.
1947 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1948 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1949
1950 * frame.c (frame_read_signed_register): Delete function.
1951 (frame_read_unsigned_register): Update comments.
1952 * frame.h (frame_read_signed_register): Delete declaration.
1953 * h8300-tdep.c (h8300_print_register): Use
1954 get_frame_register_signed.
1955 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1956
1957 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1958 Rename VALUE_RETURNED_FROM_STACK.
1959 * infcmd.c (print_return_value): Update.
1960 * infcall.c (call_function_by_hand): Update.
1961
1962 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1963
1964 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1965 regcache argument and reverse the order of the other two
1966 arguments. Remove local regcache variable. Determine
1967 architecture from REGCACHE. Update comments.
1968 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1969 reverse the order of the other two arguments. Remove local
1970 regcache variable. Determine architecture from REGCACHE. Update
1971 comments.
1972 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1973 prototypes. Update comments.
1974 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1975 comment.
1976 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1977 Update.
1978 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1979 * i386-interix-nat.c (supply_fpregset): Update.
1980 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1981 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1982 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1983 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1984 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1985 Update.
1986 * i386obsd-tdep.c (fetch_core_registers): Update.
1987 * i386v4-nat.c (supply_fpregset): Update.
1988 * x86-64-linux-nat.c (supply_fpregset): Update.
1989 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1990
1991 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1992
1993 * i386-tdep.h: Put opaque declarations in alphabetical
1994 order. Remove spurious whitespace.
1995 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1996 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1997 * i386-tdep.c (MM0_REGNUM): Remove define.
1998 (i386_mmx_regnum_p): Add gdbarch argument.
1999 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2000 Rewrite using new macro definitions for FPU/SSE registers.
2001 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2002 definitions from i387-tdep.h.
2003 (i386_register_name): Update.
2004 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2005 new macro definitions for FPU/SSE registers.
2006 (i386_extract_return_value): Determine whether floating-point
2007 registers are present by examining REGCACHE's architecture.
2008 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2009 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2010 FPU/SSE registers.
2011 (i386_register_type): Update.
2012 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2013 definitions for FPU registers. Use REGCACHE's architecture to
2014 determine the appropriate register numbers.
2015 (i386_pseudo_register_read, i386_pseudo_register_write,
2016 i386_register_reggroup_p): Update.
2017 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2018 TDEP->mm0_regnum.
2019 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2020 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2021 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2022 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2023 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2024 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2025 *' to `void *'.
2026 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2027 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2028 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2029 definitions for FPU/SSE registers.
2030 (FXSAVE_MXCSR_ADDR): New define.
2031 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2032 TDEP->mm0_regnum.
2033 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2034 (I387_ST0_REGNUM): Define.
2035
2036 * regcache.h (get_regcache_arch): New prototype.
2037 * regcache.c (get_regcache_arch): New function.
2038
2039 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2040 whitespace.
2041
2042 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2043 Initialize using ARRAY_SIZE.
2044
2045 2003-09-27 Andrew Cagney <cagney@redhat.com>
2046
2047 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2048 "init_frame_pc_default".
2049 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2051 * vax-tdep.c (vax_gdbarch_init): Update.
2052 * v850-tdep.c (v850_gdbarch_init): Update.
2053 * sh64-tdep.c (sh64_gdbarch_init): Update.
2054 * s390-tdep.c (s390_gdbarch_init): Update.
2055 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2056 * mcore-tdep.c (mcore_gdbarch_init): Update.
2057 * h8300-tdep.c (h8300_gdbarch_init): Update.
2058 * cris-tdep.c (cris_gdbarch_init): Update.
2059 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2060
2061 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2062
2063 * regset.h: New file.
2064 * Makefile.in (regset_h): Add.
2065
2066 2003-09-25 Andrew Cagney <cagney@redhat.com>
2067
2068 * frame.h (deprecated_frame_saved_regs): Rename
2069 get_frame_saved_regs.
2070 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2071 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2072 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2073 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2074 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2075
2076 2003-09-25 Andrew Cagney <cagney@redhat.com>
2077
2078 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2079 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2080 and Java.
2081 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2082 arm*-*-* do not use the new frame code.
2083
2084 2003-09-25 David Carlton <carlton@kealia.com>
2085
2086 * c-exp.y: Remove 'register' declarations.
2087 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2088
2089 2003-09-25 David Carlton <carlton@kealia.com>
2090
2091 * c-exp.y: Include cp-support.h. Add qualified_type.
2092 (yylex): Delete nested type hack; add comments.
2093 * cp-namespace.c (cp_lookup_nested_type): New function.
2094 * cp-support.h: Declare cp_lookup_nested_type.
2095 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2096 instead of value_struct_elt_for_reference.
2097 * valops.c: Include cp-support.h.
2098 (value_aggregate_elt): New function.
2099 (value_namespace_elt): Ditto.
2100 (value_struct_elt_for_reference): Make static.
2101 * value.h: Delete declaration of value_struct_elt_for_reference;
2102 add declaration for value_aggregate_elt.
2103 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2104 (valops.o): Ditto.
2105
2106 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2107
2108 * stack.c: Include "reggroups.h".
2109 (frame_info): Only display registers in all_reggroup.
2110 * Makefile.in (stack.o): Update dependencies.
2111
2112 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2113
2114 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2115 "add ip, sp #n" in the prologue.
2116 (arm_scan_prologue): Ditto.
2117
2118 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2119
2120 * MAINTAINERS (write after approval): Add myself.
2121
2122 2003-09-25 Andreas Schwab <schwab@suse.de>
2123
2124 * m68k-tdep.c: Include "dwarf2-frame.h".
2125 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2126 * Makefile.in (m68k-tdep.o): Update dependencies.
2127
2128 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2129
2130 * sh-tdep.c (struct frame_extra_info): Remove.
2131 (struct sh_frame_cache): New structure.
2132 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2133 (GET_TARGET_REG): Ditto but target register.
2134 (GET_PUSHED_REG): Remove.
2135 (IS_MOV_ARG_TO_REG): New macro.
2136 (IS_MOV_ARG_TO_IND_R14): New macro.
2137 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2138 (IS_MOVW_PCREL_TO_REG): New macro.
2139 (IS_MOVL_PCREL_TO_REG): New macro.
2140 (IS_SUB_REG_FROM_SP): New macro.
2141 (IS_ARG_MOV): Remove.
2142 (IS_MOV_TO_R14): Remove.
2143 (IS_RESTORE_FP): New macro.
2144 (IS_RTS): New macro.
2145 (IS_LDS): New macro.
2146 (IS_MOV_FP_SP): New macro.
2147 (IS_ADD_REG_TO_FP): New macro.
2148 (IS_ADD_IMM_FP): New macro.
2149 (sh_skip_prologue_hard_way): Remove.
2150 (sh_saved_pc_after_call): Remove.
2151 (sh_frame_chain): Remove.
2152 (sh_find_callers_reg): Remove.
2153 (sh_nofp_frame_init_saved_regs): Remove.
2154 (sh_fp_frame_init_saved_regs): Remove.
2155 (sh_init_extra_frame_info): Remove.
2156 (sh_analyze_prologue): New function.
2157 (sh_skip_prologue): Remove deprecated code. Rely on new function
2158 sh_analyze_prologue when after_prologue fails.
2159 (sh_frame_saved_pc): Remove.
2160 (sh_alloc_frame_cache): New function.
2161 (sh_frame_cache): Ditto.
2162 (sh_frame_prev_register): Ditto.
2163 (sh_frame_this_id): Ditto.
2164 (sh_frame_unwind): New structure defining the heuristic frame
2165 sniffer interface.
2166 (sh_frame_sniffer): New function.
2167 (sh_unwind_sp): Ditto.
2168 (sh_unwind_pc): Ditto.
2169 (sh_unwind_dummy_id): Ditto.
2170 (sh_frame_base_address): Ditto.
2171 (sh_frame_base): New structure defining new frame base code.
2172 (sh_in_function_epilogue_p): New function.
2173 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2174 code and to call all new code instead. Initialize dwarf2 and
2175 heuristic frame sniffer.
2176
2177 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2178
2179 * parser-defs.h (struct exp_descriptor): New definition, containing
2180 language-specific info for printing, prefixifying, dumping, and
2181 evaluating expressions.
2182 (exp_descriptor_standard): Declare new variable.
2183 (print_subexp): Make global and declare here (from expprint.c).
2184 (dump_subexp): Ditto.
2185 (dump_subexp_body_standard): Declare.
2186 (operator_length_standard): Declare.
2187 (op_name_standard): Declare.
2188 (print_subexp): Declare.
2189 (print_subexp_standard): Declare.
2190
2191 * language.h (struct language_defn): Add la_exp_desc field to hold
2192 pointer to table for language-specific operators.
2193 Remove evaluate_exp field, which is now in struct exp_descriptor.
2194
2195 * parse.c (operator_length): Move most code to new
2196 operator_length_standard function. Use language-specific information.
2197 (operator_length_standard): New function taking most code from
2198 operator_length.
2199 (exp_descriptor_standard): New constant.
2200
2201 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2202 and OP_EXTENDED_LAST.
2203
2204 * expprint.c (print_subexp): Use language-specific print_subexp.
2205 Make global; remove static declaration.
2206 Move most code to print_subexp_standard.
2207 (print_subexp_standard): New function, containing code formerly in
2208 print_subexp.
2209 (op_name): Add expression to argument signature.
2210 Use langauge-specific op_name.
2211 Move most code to op_name_standard.
2212 (op_name_standard): New function, containing code formerly in op_name.
2213 (dump_subexp): Use new version of op_name function.
2214 Use language-specific dump_subexp_body, and move most existing code to
2215 dump_subexp_body_standard.
2216 (dump_raw_expression): Use new op_name interface.
2217 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2218 (dump_subexp_body_standard): New function, containing code formerly
2219 in dump_subexp_body.
2220
2221 * language.c (unknown_language): Add default la_exp_desc field and
2222 remove evaluate_exp field.
2223 (auto_language): Ditto.
2224 (local_language): Ditto.
2225 * f-lang.c (f_language_defn): Ditto.
2226 * c-lang.c (c_language_defn): Ditto.
2227 (cplus_language_defn): Ditto.
2228 (asm_language_defn): Ditto.
2229 (minimal_language_defn): Ditto.
2230 * p-lang.c (pascal_language_defn): Ditto.
2231 * m2-lang.c (m2_language_defn): Ditto.
2232 * objc-lang.c (objc_language_defn): Ditto.
2233
2234 * jv-lang.c (exp_descriptor_java): New variable, containing
2235 Java-specific expression evaluator.
2236 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2237 field.
2238 * scm-lang.c (exp_descriptor_scm): New variable, containing
2239 Scheme-specific expression evaluator.
2240 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2241 field.
2242 * objc-lang.c (print_object_command): Take evaluate_exp from the
2243 la_exp_desc field.
2244
2245 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2246
2247 * eval.c: Include parser-defs.h for the full declaration of
2248 la_exp_desc's type.
2249 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2250
2251 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2252
2253 * parser-defs.h (operator_length): Declare.
2254
2255 * parse.c (length_of_subexp): Use operator_length to get operator
2256 lengths and arities for operators.
2257 Move most code to new operator_length function.
2258 (operator_length): New function absorbing most code from
2259 length_of_subexp.
2260 (prefixify_subexp): Remove large case and use operator_length instead.
2261 (parse_exp_1): Use renamings:
2262 dump_prefix_expression => dump_raw_expression and
2263 dump_postfix_expression => dump_prefix_expression.
2264
2265 * expression.h (dump_prefix_expression): Rename to ...
2266 (dump_raw_expression): New name.
2267 (dump_postfix_expression): Rename to ...
2268 (dump_prefix_expression): New name.
2269
2270 * expprint.c (dump_subexp): Make global. Add comment.
2271 Move most existing code to dump_subexp_body.
2272 (dump_subexp_body): New function.
2273 (dump_prefix_expression): Rename to dump_raw_expression.
2274 Remove attempt to print the expression via print_expression: it can't
2275 work before the expression is prefixified.
2276 (dump_raw_expression): Renamed from dump_prefix_expression.
2277 (dump_postfix_expression): Rename to dump_prefix_expression, since
2278 that's what it does.
2279 Remove 'note' parameter, since this routine must be used on
2280 prefixified expression.
2281 (dump_prefix_expression): Renamed from dump_postfix_expression.
2282
2283 2003-09-22 Jim Blandy <jimb@redhat.com>
2284
2285 * dwarf2read.c (read_array_type): When building the type for an
2286 array of unspecified length, make sure to choose the upper bound
2287 so that the array's total length comes out to be zero --- that's
2288 how we represent such arrays.
2289
2290 2003-09-22 Michael Chastain <mec@shout.net>
2291
2292 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2293
2294 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2295
2296 * top.c (quit_force): Fix indirect call to quit_target so
2297 a struct qt_args pointer is passed.
2298
2299 2003-09-22 Andrew Cagney <cagney@redhat.com>
2300
2301 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2302 * arch-utils.c (init_frame_pc_noop): Delete function.
2303 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2304 "init_frame_pc".
2305 * mips-tdep.c (mips_gdbarch_init): Ditto.
2306 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2307 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2308 declaration.
2309 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2310 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2311 declaration.
2312 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2313
2314 2003-09-22 Anthony Green <green@redhat.com>
2315
2316 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2317 declaration.
2318
2319 2003-09-20 Andrew Cagney <cagney@redhat.com>
2320
2321 * breakpoint.c: Eliminate ARGSUSED.
2322 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2323 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2324 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2325 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2326 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2327 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2328 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2329 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2330 * wince.c, remote-vx.c: Ditto.
2331
2332 * cli/cli-script.c: Remove "register" attributes.
2333 * config/pa/tm-hppa.h: Ditto.
2334 * cli/cli-decode.c: Ditto.
2335 * cli/cli-cmds.c: Ditto.
2336
2337 2003-09-19 Andrew Cagney <cagney@redhat.com>
2338
2339 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2340 DEPRECATED_NPC_REGNUM.
2341 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2342
2343 2003-09-19 Christopher Faylor <cgf@redhat.com>
2344
2345 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2346
2347 2003-09-19 Jim Blandy <jimb@redhat.com>
2348
2349 * macrotab.c (macro_include): Use the correct comparison to find
2350 the appropriate place for this inclusion in the list.
2351
2352 2003-09-19 Andrew Cagney <cagney@redhat.com>
2353
2354 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2355 (DEPRECATED_HPUX_TEXT_END): Define.
2356 (deprecated_hpux_text_end): Declare.
2357 (struct target_ops): Declare opaque.
2358 * hppah-nat.c (text_end): Make static.
2359 (deprecated_hpux_text_end): New function.
2360 * exec.c (text_end): Delete global variable.
2361 (NEED_TEXT_START_END): Do not define.
2362 (exec_file_attach): Replace code computing "text_end" code with
2363 call to DEPRECATED_HPUX_TEXT_END.
2364
2365 2003-09-19 Andrew Cagney <cagney@redhat.com>
2366
2367 * utils.c (align_up, align_down): New functions.
2368 * defs.h (align_up, align_down): Declare.
2369 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2370 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2371 and "align_down".
2372 (round_up, round_down): Delete functions.
2373 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2374 "align_down".
2375 (ROUND_DOWN, ROUND_UP): Delete macros.
2376 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2377 * h8300-tdep.c: Replace "round_up" and "round_down" with
2378 "align_up" and "align_down".
2379 (round_up, round_down): Delete macros.
2380 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2381 "align_down".
2382 (ROUND_UP, ROUND_DOWN): Delete macros.
2383
2384 2003-09-18 J. Brobecker <brobecker@gnat.com>
2385
2386 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2387 hard-coded constant. Use the proper machine name instead.
2388
2389 2003-09-17 Andrew Cagney <cagney@redhat.com>
2390
2391 * sparc-tdep.c (legacy_register_name): Delete function.
2392 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2393 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2394 * infcmd.c (gdb_register_name): Delete variable.
2395 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2396 REGISTER_NAME and "tm.h".
2397 * gdbarch.h, gdbarch.c: Regenerate.
2398 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2399 REGISTER_NAMES in comments.
2400 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2401 * m68klinux-nat.c (regmap): Ditto.
2402
2403 2003-09-17 Jim Blandy <jimb@redhat.com>
2404
2405 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2406
2407 2003-09-17 Andrew Cagney <cagney@redhat.com>
2408
2409 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2410 (ppcnbsd_init_abi): Set "use_struct_convention" to
2411 "ppcnbsd_use_struct_convention".
2412
2413 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2414
2415 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2416 * gdbarch.h, gdbarch.c: Regenerate.
2417 (stabs_argument_has_addr): New architecture method.
2418 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2419 * arch-utils.c: Include "buildsym.h".
2420 (default_stabs_argument_has_addr): New function.
2421 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2422 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2423
2424 2003-09-17 Andrew Cagney <cagney@redhat.com>
2425
2426 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2427 * gdbarch.h, gdbarch.c: Regenerate.
2428 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2429 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2430 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2431 * sparcnbsd-tdep.c: Update.
2432
2433 2003-09-17 Andrew Cagney <cagney@redhat.com>
2434
2435 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2436 * gdbarch.h, gdbarch.c: Regenerate.
2437 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2438 * d10v-tdep.c, frame.c: Update.
2439 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2440 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2441 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2442 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2443 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2444 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2445 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2446 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2447 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2448 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2449 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2450 * config/pa/nm-hppah.h: Update.
2451
2452 2003-09-16 Andrew Cagney <cagney@redhat.com>
2453
2454 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2455 "use_struct_convention" to "ppc_linux_use_struct_convention".
2456 (ppc_linux_use_struct_convention): New function.
2457 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2458 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2459 "rs6000_use_struct_convention".
2460 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2461 declaration.
2462 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2463 Delete function.
2464
2465 2003-09-16 Andrew Cagney <cagney@redhat.com>
2466
2467 * buildsym.c: Remove more occurances of "register".
2468 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2469 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2470 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2471 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2472 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2473 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2474 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2475 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2476
2477 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2478
2479 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2480 numbers to enumeration values.
2481 * sh-tdep.c: Accomodate above change.
2482 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2483 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2484 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2485 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2486 (IS_FPUSH): Rename from IS_FMOV.
2487 (sh_extract_struct_value_address): Remove useless comment.
2488 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2489 instead of own local values.
2490 (sh_dump_tdep): Remove.
2491 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2492 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2493
2494 2003-09-15 Andrew Cagney <cagney@redhat.com>
2495
2496 * doublest.c (convert_floatformat_to_doublest): No longer need to
2497 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2498
2499 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2500
2501 * values.c (unpack_double): Call floatformat_is_valid.
2502
2503 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2504
2505 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2506 ps_strings into a long.
2507
2508 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2509 _initialize_am64fbsd_nat.
2510
2511 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2512
2513 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2514 associated with DW_AT_ranges attribute is out of bounds.
2515
2516 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2517
2518 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2519
2520 2003-09-14 Michael Chastain <mec@shout.net>
2521
2522 * config/m68k/nm-apollo68v.h: Delete.
2523 * config/m68k/xm-apollo68v.h: Delete.
2524
2525 2003-09-14 Andrew Cagney <cagney@redhat.com>
2526
2527 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2528 * dcache.c: Update copyrights and descriptions.
2529 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2530
2531 2003-09-14 Andrew Cagney <cagney@redhat.com>
2532
2533 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2534 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2535
2536 2003-09-14 Andrew Cagney <cagney@redhat.com>
2537
2538 * alpha-nat.c: Remove some occurances of "register".
2539 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2540 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2541 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2542 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2543 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2544 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2545 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2546 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2547 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2548 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2549 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2550 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2551 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2552 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2553 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2554 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2555 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2556 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2557 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2558 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2559 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2560 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2561
2562 2003-09-13 Andrew Cagney <cagney@redhat.com>
2563
2564 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2565 * ppc-tdep.h (struct regcache): Declare opaque.
2566 * objfiles.h (struct objfile_data): Declare opaque.
2567 * cp-support.h (struct objfile): Declare opaque.
2568 * linux-nat.h (target_waitstatus): Declare opaque.
2569
2570 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2571
2572 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2573 (stabs_argument_has_addr): New architecture method.
2574 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2575 * arch-utils.c: Include "buildsym.h".
2576 (default_stabs_argument_has_addr): New function.
2577 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2578 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2579
2580 * cris-tdep.c (cris_gdbarch_init): Set
2581 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2582 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2583 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2584 * mips-tdep.c (mips_gdbarch_init): Likewise.
2585 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2586 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2587
2588 2003-09-13 Andrew Cagney <cagney@redhat.com>
2589
2590 * values.c (using_struct_return): Delete "function" and "funcaddr"
2591 parameters.
2592 * value.h (using_struct_return): Update declaration.
2593 * infcmd.c (finish_command_continuation): Update.
2594 (finish_command): Update.
2595 * infcall.c (call_function_by_hand): Update.
2596 * eval.c (evaluate_subexp_standard): Update.
2597
2598 2003-09-13 Christopher Faylor <cgf@redhat.com>
2599
2600 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2601 SSE registers since gdb will not operate correctly without this.
2602 Restore include file ordering munged in previous change.
2603 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2604
2605 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2606
2607 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2608 REG_STRUCT_HAS_ADDR.
2609 * gdbarch.c, gdbarch.h: Updated.
2610 * infcall.c (call_function_by_hand): Update.
2611 * stabsread.c (define_symbol): Updated.
2612
2613 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2614
2615 2003-09-12 Christopher Faylor <cgf@redhat.com>
2616
2617 * win32-nat.c: Reorganize so that defines used by target headers are
2618 actually defined by the system headers.
2619 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2620 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2621
2622 2003-09-12 Jim Blandy <jimb@redhat.com>
2623
2624 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2625 the file has no .data, .bss, or .rodata sections. Instead wait
2626 until we see a variable alleged to live in one of those sections.
2627
2628 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2629 .bss section, presume that any variables we find live in the
2630 .rodata section.
2631
2632 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2633 offsets for global and static variables.
2634
2635 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2636 symbol types are, by definition, in the .data section, so it is
2637 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2638 If there is no .data section, there should be no N_DATA or N_DATA
2639 | N_EXT symbols.
2640
2641 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2642
2643 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2644 (amd64fbsd_sigcontext_addr): Rewrite.
2645 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2646 with correct values.
2647 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2648 (amd64fbsd_init_abi): Fix typo.
2649
2650 2003-09-12 Andrew Cagney <cagney@redhat.com>
2651
2652 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2653 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2654
2655 2003-09-12 Andrew Cagney <cagney@redhat.com>
2656
2657 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2658 "entry_file_highpc". Update comments.
2659 * defs.h (deprecated_inside_entry_file): Rename
2660 "inside_entry_file".
2661 * blockframe.c (deprecated_inside_entry_file): Rename
2662 "inside_entry_file".
2663 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2664 * vax-tdep.c (vax_frame_chain): Update.
2665 * sh64-tdep.c (sh64_frame_chain): Update.
2666 * sh-tdep.c (sh_frame_chain): Update.
2667 * rs6000-tdep.c (rs6000_frame_chain): Update.
2668 * ns32k-tdep.c (ns32k_frame_chain): Update.
2669 * mips-tdep.c (mips_frame_chain): Update.
2670 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2671 * m32r-tdep.c (m32r_frame_this_id): Update.
2672 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2673 * frv-tdep.c (frv_frame_this_id): Update.
2674 * d10v-tdep.c (d10v_frame_this_id): Update.
2675 * cris-tdep.c (cris_frame_chain): Update.
2676 * blockframe.c (legacy_frame_chain_valid): Update.
2677 * avr-tdep.c (avr_frame_this_id): Update.
2678 * arm-tdep.c (arm_prologue_this_id): Update.
2679 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2680 * objfiles.c (objfile_relocate): Update.
2681 * mipsread.c (mipscoff_symfile_read): Update.
2682 (mipscoff_symfile_read): Update.
2683 * mdebugread.c (parse_partial_symbols): Update.
2684 * dwarfread.c (read_file_scope): Update.
2685 * dwarf2read.c (read_file_scope): Update.
2686 * dbxread.c (read_dbx_symtab): Update.
2687 (read_dbx_symtab): Update.
2688 * coffread.c (complete_symtab): Update.
2689
2690 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2691
2692 * top.c (quit_target): New static helper function.
2693 (quit_force): Moved code to quit_target(). Call quit_target()
2694 via catch_errors() to catch errors during quit.
2695
2696 2003-09-11 David Carlton <carlton@kealia.com>
2697
2698 * buildsym.c (finish_block): Use allocate_block to allocate the
2699 block.
2700 * mdebugread.c (new_block): Add FIXME.
2701
2702 2003-09-11 David Carlton <carlton@kealia.com>
2703
2704 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2705 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2706 (recursive_dump_type): Ditto.
2707 * printcmd.c (print_formatted): Ditto.
2708 * typeprint.c (print_type_scalar): Ditto.
2709 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2710 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2711 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2712 maint_cplus_cmd_list.
2713 * cp-support.c: Make maint_cplus_cmd_list extern.
2714 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2715 command.h.
2716 (lookup_symbol_file): Look in possible namespace blocks when
2717 appropriate.
2718 (initialize_namespace_symtab): New.
2719 (get_possible_namespace_block, free_namespace_block)
2720 (check_possible_namespace_symbols)
2721 (check_possible_namespace_symbols_loop)
2722 (check_one_possible_namespace_symbol)
2723 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2724 (_initialize_cp_namespace): Ditto.
2725 * block.h: Declare allocate_block.
2726 * block.c (allocate_block): New.
2727 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2728 allocate_block.
2729 * symfile.h: Update declaration of add_psymbol_to_list.
2730 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2731 question.
2732 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2733 scan_partial_symbols_call.
2734 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2735 helper functions.
2736 (add_partial_symbol): If necessary, scan mangled names for names
2737 of namespaces.
2738 (add_partial_namespace): Add NAMESPACE argument; generate partial
2739 symbols associated to namespaces.
2740 (add_partial_enumeration): Add NAMESPACE argument.
2741 (new_symbol): Allow namespace syms.
2742 (read_namespace): Generate namespace syms.
2743 * objfiles.h: Add opaque declaration of struct symtab.
2744 (struct objfile): Add cp_namespace_symtab member.
2745 * objfiles.c (allocate_objfile): Set
2746 objfile->cp_namespace_symtab.
2747 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2748 dictionary_h, command_h.
2749
2750 2003-09-11 Andrew Cagney <cagney@redhat.com>
2751
2752 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2753 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2754 near the function's end.
2755 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2756 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2757 regcache_raw_write_signed to set SP_REGNUM.
2758
2759 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2760
2761 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2762 orig_addrs is set up properly.
2763
2764 2003-09-11 Andrew Cagney <cagney@redhat.com>
2765
2766 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2767 * gdbarch.h, gdbarch.c: Re-generate.
2768 * infcall.c (call_function_by_hand): Update.
2769 * hppa-tdep.c (hppa_push_arguments): Update.
2770 * ada-lang.c (place_on_stack): Update.
2771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2772 * sparc-tdep.c (sparc_gdbarch_init): Update.
2773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2774 * hppa-tdep.c (hppa_gdbarch_init): Update.
2775 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2776 stack_align.
2777
2778 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2779
2780 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2781 register do need a frame.
2782
2783 2003-09-11 Andrew Cagney <cagney@redhat.com>
2784
2785 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2786 buildable since GDB 5.0.
2787 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2788 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2789 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2790 * irix4-nat.c: Delete file.
2791 * config/mips/irix4.mh: Delete file.
2792 * config/mips/irix3.mh: Delete file.
2793 * config/mips/irix3.mt: Delete file.
2794 * config/mips/tm-irix3.h: Delete file.
2795 * config/mips/nm-irix3.h: Delete file.
2796 * config/mips/xm-irix3.h: Delete file.
2797 * config/mips/nm-irix4.h: Delete file.
2798 * config/mips/xm-irix4.h: Delete file.
2799 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2800
2801 2003-09-10 J. Brobecker <brobecker@gnat.com>
2802
2803 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2804 * Makefile.in (hppa-tdep.o): Update dependencies.
2805
2806 2003-09-10 James E Wilson <wilson@specifixinc.com>
2807
2808 * MAINTAINERS: Change my e-mail address. Move to paper trail
2809 section.
2810
2811 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2812
2813 * MAINTAINERS (frv): New ISA entry.
2814
2815 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2816
2817 * frv-tdep.c (dis-asm.h): Include.
2818 * Makefile.in (frv-tdep.o): Update dependencies.
2819
2820 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2821
2822 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2823 Fix typo for high range of floating registers.
2824
2825 2003-09-09 David Carlton <carlton@kealia.com>
2826
2827 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2828 highpc initialization here out of scan_partial_symbols.
2829 (scan_partial_symbols): Restructure into a recursive version,
2830 calling add_partial_namespace and add_partial_enumeration when
2831 appropriate.
2832 (add_partial_namespace): New.
2833 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2834
2835 2003-09-09 Andrew Cagney <cagney@redhat.com>
2836
2837 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2838 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2839 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2840 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2841
2842 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2843 (rs6000_push_dummy_call): Set the "TOC" register.
2844
2845 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2846 methods "max_register_raw_size", "max_register_virtual_size" or
2847 "register_virtual_size".
2848
2849 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2850
2851 * MAINTAINERS: Update my e-mail address.
2852
2853 2003-09-09 Andrew Cagney <cagney@redhat.com>
2854
2855 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2856 (rs6000_push_dummy_call): Store the struct return address.
2857 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2858
2859 2003-09-09 Andrew Cagney <cagney@redhat.com>
2860
2861 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2862 "ppc_sysv_abi_push_arguments".
2863 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2864 "ppc_sysv_abi_push_arguments".
2865 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2866 instead of "push_arguments".
2867 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2868
2869 2003-09-09 Andrew Cagney <cagney@redhat.com>
2870
2871 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2872 instead of CALL_DUMMY_ADDRESS.
2873
2874 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2875
2876 * p-lang.c: Eliminate "register".
2877 * c-lang.c: Ditto.
2878 * expprint.c: Ditto.
2879 * f-lang.c: Ditto.
2880 * jv-lang.c: Ditto.
2881 * language.c: Ditto.
2882 * m2-lang.c: Ditto.
2883 * parse.c: Ditto.
2884 * scm-lang.c: Ditto.
2885 * objc-lang.c: Ditto.
2886
2887 2003-09-09 Nick Clifton <nickc@redhat.com>
2888
2889 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2890
2891 2003-09-04 Andrew Cagney <cagney@redhat.com>
2892
2893 * avr-tdep.c: Include "dis-asm.h".
2894 * cris-tdep.c: Include "dis-asm.h".
2895 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2896 instead of corresponding typedef.
2897 * h8300-tdep.c: Include "dis-asm.h".
2898 * ia64-tdep.c: Include "dis-asm.h".
2899 * i386-tdep.c: Include "dis-asm.h".
2900 (i386_print_insn): Use "struct disassemble_info" instead of
2901 corresponding typedef.
2902 * m68k-tdep.c: Include "dis-asm.h".
2903 * mcore-tdep.c: Include "dis-asm.h".
2904 * mips-tdep.c: Include "dis-asm.h".
2905 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2906 instead of corresponding typedef.
2907 * ns32k-tdep.c: Include "dis-asm.h".
2908 * s390-tdep.c: Include "dis-asm.h".
2909 * sparc-tdep.c: Include "dis-asm.h".
2910 * vax-tdep.c: Include "dis-asm.h".
2911 * v850-tdep.c: Include "dis-asm.h".
2912 * mn10300-tdep.c: Include "dis-asm.h".
2913 * rs6000-tdep.c: Include "dis-asm.h".
2914 * xstormy16-tdep.c: Include "dis-asm.h".
2915 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2916 print_insn_xstormy16.
2917 * Makefile.in (v850-tdep.o): Update dependencies.
2918 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2919 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2920 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2921 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2922 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2923 (gdbarch_h): Remove $(dis_asm_h).
2924 * disasm.c: Include "dis-asm.h".
2925 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2926 corresponding typedef.
2927 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2928 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2929 * gdbarch.sh: Do not include "dis-asm.h".
2930 (struct disassemble_info): Declare opaque.
2931 (TARGET_PRINT_INSN): Update declaration.
2932 * gdbarch.h, gdbarch.c: Re-generate.
2933
2934 2003-09-08 Andrew Cagney <cagney@redhat.com>
2935
2936 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2937 CALL_DUMMY_ADDRESS, change to a predicate.
2938 * gdbarch.h, gdbarch.c: Re-generate.
2939 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2940 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2941 * infcall.c (call_function_by_hand): Ditto.
2942 * sparc-tdep.c (sparc_push_return_address): Ditto.
2943 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2944 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2945 CALL_DUMMY_ADDRESS with entry_point_address.
2946 * v850-tdep.c (v850_push_return_address): Ditto.
2947 * s390-tdep.c (s390_push_return_address): Ditto.
2948 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2949 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2950 * mcore-tdep.c (mcore_push_return_address): Ditto.
2951 * cris-tdep.c (cris_push_return_address): Ditto.
2952 * arm-tdep.c (arm_push_return_address): Ditto.
2953
2954 2003-09-08 Andrew Cagney <cagney@redhat.com>
2955
2956 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2957 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2958 and REG_UNMODIFIED to REG_SAME_VALUE.
2959 (execute_cfa_program): Update.
2960 (dwarf2_frame_cache): Update. Initialize table to
2961 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2962 location.
2963 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2964
2965 2003-09-08 Andrew Cagney <cagney@redhat.com>
2966
2967 * gnu-nat.c: Remove "inline" function attribute.
2968 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2969
2970 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2971
2972 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2973 target.
2974
2975 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2976
2977 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2978 (frame_extra_info): Rename this struct to frv_unwind_cache.
2979 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2980 Add fields ``prev_sp'' and ``base''.
2981 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2982 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2983 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2984 Delete.
2985 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2986 Revise all callers. Fill in the unwind cache argument and make
2987 other adjustments to account for new frame mechanisms.
2988 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2989 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2990 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2991 (frv_frame_unwind, frv_frame_base): New structs.
2992 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2993 additional arguments expected by this method and adjust function
2994 body accordingly.
2995 (frv_gdbarch_init): Remove calls to the following functions:
2996 set_gdbarch_deprecated_init_frame_pc(),
2997 set_gdbarch_deprecated_saved_pc_after_call(),
2998 set_gdbarch_deprecated_frame_chain(),
2999 set_gdbarch_deprecated_frame_saved_pc(),
3000 set_gdbarch_deprecated_frame_init_saved_regs(),
3001 set_gdbarch_deprecated_push_arguments(),
3002 set_gdbarch_deprecated_push_return_address(),
3003 set_gdbarch_deprecated_pop_frame(),
3004 set_gdbarch_deprecated_call_dummy_words(),
3005 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3006 set_gdbarch_deprecated_init_extra_frame_info(),
3007 set_gdbarch_deprecated_dummy_write_sp(), and
3008 set_gdbarch_deprecated_pc_in_call_dummy().
3009 Add calls to the following functions:
3010 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3011 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3012 frame_base_set_default().
3013 * Makefile.in (frv-tdep.o): Update dependencies.
3014
3015 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3016
3017 * dwarf2-frame.c (read_encoded_value): Add support for
3018 DW_EH_PE_aligned encoding.
3019
3020 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3021
3022 * infrun.c (normal_stop): Don't print a message if the inferior
3023 has exited.
3024
3025 2003-09-08 Jim Blandy <jimb@redhat.com>
3026
3027 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3028 * dbxread.c: #include "gdb_assert.h".
3029 (read_dbx_symtab): If the objfile has no .data section, use the
3030 section index for the .bss section instead.
3031
3032 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3033
3034 * frame.c (deprecated_safe_get_selected_frame): New function.
3035 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3036 * findvar.c (read_var_value): Call it.
3037
3038 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3039
3040 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3041 (sh64-tdep.o): Add dependencies.
3042 * configure.tgt: Add FIXME to sh-*-linux*.
3043 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3044 (sh_gdbarch_init): Always set correct sh_show_regs function
3045 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3046 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3047 * sh64-tdep.c: New file, containing all sh64 related code from
3048 sh-tdep.c.
3049 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3050 * config/sh/linux.mt (TDEPFILES): Ditto.
3051 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3052 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3053 * config/sh/wince.mt (TDEPFILES): Ditto.
3054
3055 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3056
3057 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3058 (stop_wait_callback): Handle !lp->signalled also.
3059 (lin_lwp_has_pending, flush_callback): New functions.
3060 (lin_lwp_wait): Call flush_callback.
3061 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3062 (linux_proc_pending_signals): New function.
3063 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3064
3065 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3066
3067 From Nick Kelsey <nickk@ubicom.com>:
3068 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3069 when the stop PC is at the beginning of a function also.
3070
3071 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3072
3073 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3074 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3075
3076 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3077
3078 * sol-thread.c: Include "gdb_string.h".
3079
3080 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3081
3082 * gcore.c: Reorder include files in alphabetical order. Include
3083 "gdb_assert.h". Various coding style fixes.
3084 (derive_stack_segment, derive_heap_segment): Replace check for
3085 non-null BOTTOM and TOP with gdb_assert.
3086 (derive_heap_segment): Replace check for successful creation of
3087 ZERO with gdb_assert.
3088 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3089
3090 2003-09-04 Andrew Cagney <cagney@redhat.com>
3091
3092 * thread-db.c (verbose_dlsym): New function.
3093 (thread_db_load): Use verbose_dlsym
3094 (thread_db_new_objfile): Print that libthread_db was loaded, and
3095 that thread debugging was enabled.
3096
3097 2003-09-04 Andrew Cagney <cagney@redhat.com>
3098
3099 * configure.tgt: Add "mips64*-*-*" target. Delete
3100 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3101 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3102 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3103 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3104 mips*-sony-*, and mips64*-*-elf* targets.
3105 * config/mips/embedl.mt: Delete file.
3106 * config/mips/embedl64.mt: Delete file.
3107 * config/mips/mips.mt: Delete file.
3108 * config/mips/mips64.mt: Delete file.
3109 * config/mips/tm-embed.h: Delete file.
3110 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3111 * config/mips/embed64.mt: Delete out-of-date comment.
3112
3113 2003-09-04 Andrew Cagney <cagney@redhat.com>
3114
3115 * hppa-tdep.c (hppa_gdbarch_init): Set
3116 "have_nonsteppable_watchpoint".
3117 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3118 * mips-tdep.c (mips_dump_tdep): Do not print
3119 HAVE_NONSTEPPABLE_WATCHPOINT.
3120 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3121 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3122 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3123 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3124
3125 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3126
3127 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3128 unused code. Add comment.
3129
3130 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3131
3132 * breakpoint.c (watchpoint_check): Check for pc being in an
3133 epilogue if watchpoint frame couldn't be found.
3134
3135 2003-09-04 Andrew Cagney <cagney@redhat.com>
3136
3137 * Makefile.in: Re-generate all dependencies.
3138
3139 2003-09-03 Andrew Cagney <cagney@redhat.com>
3140
3141 * arch-utils.h (legacy_print_insn): Delete declaration.
3142 * arch-utils.c (legacy_print_insn): Delete function.
3143 * disasm.c (deprecated_tm_print_insn_info): Delete.
3144 (_initialize_disasm): Delete function, contained code initializing
3145 deprecated_tm_print_insn_info.
3146 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3147 (deprecated_tm_print_insn_info): Delete.
3148 (TARGET_PRINT_INSN): Do not provide a default.
3149 * gdbarch.h, gdbarch.c: Re-generate.
3150
3151 2003-09-03 Andrew Cagney <cagney@redhat.com>
3152
3153 * disasm.c (fprintf_disasm): New function.
3154 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3155 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3156 reverts 2003-08-14 change.
3157 (_initialize_disasm): Call "init_disassemble_info", instead of
3158 INIT_DISASSEMBLE_INFO_NO_ARCH.
3159
3160 2003-09-03 Michael Snyder <msnyder@redhat.com>
3161
3162 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3163
3164 2003-09-03 Andrew Cagney <cagney@redhat.com>
3165
3166 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3167 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3168 * symfile.c (syms_from_objfile): Update.
3169 (reread_symbols): `Update
3170 * exec.c (exec_file_attach): Update.
3171 (exec_file_attach): Update.
3172 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3173 2003-08-29 change.
3174 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3175
3176 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3177
3178 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3179 trad-frame.h.
3180 (arm_get_cache): Delete macro.
3181 (struct arm_prologue_cache): Update comments. Make saved_regs into
3182 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3183 to prev_sp.
3184 (thumb_scan_prologue): Update for cache changes. Don't call
3185 DEPRECATED_PC_IN_CALL_DUMMY.
3186 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3187 argument and use it in desperation search for our prologue. Do not
3188 search past the specified PC.
3189 (arm_make_prologue_cache): Simplify.
3190
3191 (arm_prologue_this_id, arm_prologue_prev_register)
3192 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3193 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3194 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3195 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3196 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3197
3198 (arm_frame_chain_valid, arm_find_callers_reg)
3199 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3200 (arm_pop_frame): Delete obsolete methods.
3201 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3202
3203 (arm_gdbarch_init): Update for new frame methods. Register prologue
3204 and sigtramp unwinders. Set the default frame base method.
3205
3206 * Makefile.in (arm-tdep.o): Update dependencies.
3207 * varobj.c (find_frame_addr_in_frame_chain): Call
3208 get_frame_base_address.
3209 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3210
3211 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3212
3213 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3214 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3215 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3216 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3217 Take NEXT_FRAME and CACHE arguments. Call
3218 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3219 Set unwound_pc in CACHE instead of modifying the frame argument.
3220 Don't bother checking the frame type when looking for sigtramp
3221 frames.
3222 (arm_make_prologue_cache, arm_frame_chain)
3223 (arm_init_extra_frame_info): New functions.
3224
3225 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3226
3227 * arm-tdep.c (arm_get_cache): Define.
3228 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3229 unwound_sp, unwound_pc, and saved_regs.
3230 (thumb_scan_prologue): Take a cache instead of the frame.
3231 (arm_scan_prologue): Likewise.
3232 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3233 instead of a temporary frame.
3234 (arm_init_extra_frame_info): Allocate and use a cache.
3235 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3236
3237 2003-09-03 Andrew Cagney <cagney@redhat.com>
3238
3239 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3240 * config/mips/wince.mt (TM_CLIBS): Ditto.
3241 * config/sh/wince.mt (TM_CLIBS): Ditto.
3242 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3243 * config/sparc/sp64.mt (CC): Delete.
3244
3245 2003-09-03 Andrew Cagney <cagney@redhat.com>
3246
3247 * defs.h: Do not include "arch-utils.h".
3248 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3249 GDB_MULTI_ARCH_PURE.
3250 * configure.in (GDB_MULTI_ARCH): Do not define.
3251 * configure, config.in: Regenerate.
3252 * configure.tgt: Do not set variable "gdb_multi_arch".
3253 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3254 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3255 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3256 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3257 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3258 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3259 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3260 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3261 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3262 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3263 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3264 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3265 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3266 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3267 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3268 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3269 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3270 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3271
3272 2003-08-30 Michael Chastain <mec@shout.net>
3273
3274 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3275 * config/m68k/nm-hp300hpux.h: Delete.
3276 * config/m68k/tm-hp300hpux.h: Delete.
3277 * config/m68k/xm-hp300hpux.h: Delete.
3278 * config/m68k/xm-hp300bsd.h: Delete.
3279 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3280 tm-hp300hpux.h, xm-hp300hpux.h.
3281 * somsolib.c: Remove comment about hp300 shared libraries.
3282
3283 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3284
3285 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3286 Only define PTRACE_GET_THREAD_AREA is not already defined.
3287 Various style fixes in code and comments and some additional
3288 spelling fixes in comments. Move after functions dealing with
3289 debug registers.
3290 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3291 Fix coding-style.
3292
3293 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3294 frame_unwind_register_unsigned instead of
3295 frame_unwind_unsigned_register.
3296
3297 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3298
3299 * configure.in: Search for gethostbyname in libnsl.
3300 * configure: Regenerated.
3301
3302 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3303
3304 * configure.in: Remove redundant AC_MSG_RESULT in check for
3305 uintptr_t in stdint.h.
3306 * configure: Regenerated.
3307
3308 * amd64-nat.h (struct regcache): Add opaque declaration.
3309
3310 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3311 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3312 Change "register array" to "register cache" in comments.
3313 (x86_64_linux_gregset64_reg_offset): New variable.
3314 (GETREGS_SUPPLIES): Remove macro.
3315 (supply_gregset): Call amd64_supply_native_gregset instead of
3316 x86_64_linux_supply_gregset.
3317 (fill_gregset): Rename `regno' to `regnum'. Call
3318 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3319 (store_regs): Rename `regno' to `regnum'.
3320 (store_fpregs): Rename `regno' to `regnum'.
3321 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3322 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3323 Reorganize function a bit.
3324 (store_inferior_registers): Rename `regno' to `regnum'. Use
3325 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3326 Reorganize function a bit.
3327 (_initialize_x86_64_linux_nat): New function.
3328 * config/i386/x86-64linux.mh.
3329
3330 2003-08-29 Andrew Cagney <cagney@redhat.com>
3331
3332 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3333 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3334 (target_remove_watchpoint): Delete macro.
3335 (target_insert_watchpoint): Delete macro.
3336 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3337 (remote_mips_stopped_by_watchpoint): Delete declaration.
3338 (remote_mips_remove_watchpoint): Delete declaration.
3339 (remote_mips_set_watchpoint): Delete declaration.
3340 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3341 * remote-mips.c (_initialize_remote_mips): Set
3342 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3343 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3344 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3345 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3346 (mips_stopped_by_watchpoint): Rename
3347 remote_mips_stopped_by_watchpoint.
3348 (mips_can_hardware_watchpoint): Rename
3349 remote_mips_can_use_hardware_watchpoint, update function
3350 signature.
3351
3352 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3353
3354 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3355 USER_DS. We haven't given them a register number yet.
3356
3357 * amd64-nat.h: New file.
3358 * amd64-nat.c: New file.
3359 * amd64fbsd-nat.c: Include "amd64-nat.h".
3360 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3361 (amd64fbsd32_r_reg_offset): New variable.
3362 (supply_gregset): Simply call amd64_supply_native_gregset.
3363 (fill_gregset): Rename `regno' to `regnum'. Simply call
3364 amd64_collect_native_gregset.
3365 (fill_fpregset): Rename `regno' to `regnum'.
3366 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3367 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3368 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3369 `fpregset_t'. Call amd64_supply_native_gregset instead of
3370 supply_gregset. Call x86_64_supply_fxsave instead of
3371 supply_fpregset.
3372 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3373 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3374 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3375 `fpregset_t'. Call amd64_collect_native_gregset instead of
3376 fill_gregset. Call x86_64_collect_fxsave instead of
3377 fill_fpregset.
3378 (_initialize_am64fbsd_nat): Initialize
3379 amd64_native_gregset32_reg_offset and
3380 amd64_native_gregset64_reg_offset.
3381 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3382
3383 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3384 null pointer. Fix typo in comment.
3385
3386 * regcache.c (supply_register): Reimplement to call
3387 regcache_raw_supply.
3388 (regcache_collect): Reimplement by calling regcache_raw_collect.
3389
3390 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3391
3392 * regcache.c (register_buffer): Consitify first argument.
3393 (regcache_raw_supply, regcache_raw_collect): New
3394 functions.
3395
3396 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3397
3398 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3399 by Nathan J. Williams.
3400
3401 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3402
3403 * lin-lwp.c (wait_lwp): New function, copied from
3404 stop_wait_callback. Clean up.
3405 (stop_wait_callback): Use wait_lwp.
3406
3407 2003-08-28 Andrew Cagney <cagney@redhat.com>
3408
3409 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3410 flavour and disassembler options.
3411 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3412 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3413 deprecated_tm_print_insn_info.
3414
3415 2003-08-27 Andrew Cagney <cagney@redhat.com>
3416
3417 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3418 Use target_read_memory.
3419 (s390_get_frame_info): Update. Do not reference
3420 deprecated_tm_print_insn_info.
3421 (s390_check_function_end, s390_is_sigreturn): Ditto.
3422
3423 2003-08-27 Andrew Cagney <cagney@redhat.com>
3424
3425 * Makefile.in (cris-tdep.o): Update dependencies.
3426 * cris-tdep.c: Include "gdb_assert.h".
3427 (cris_gdbarch_init): Set print_insn.
3428 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3429 (cris_delayed_get_disassembler): Simplify, directly call the
3430 disassembler returned by cris_get_disassembler.
3431 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3432 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3433 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3434 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3435 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3436 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3437 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3438 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3439 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3440 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3441 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3442 (gdb_print_insn_sparc): Delete function.
3443 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3444 deprecated_tm_print_insn_info.
3445 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3446 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3447 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3449 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3450 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3451 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3452 (s390_gdbarch_init): Set print_insn.
3453
3454 2003-08-27 Andrew Cagney <cagney@redhat.com>
3455
3456 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3457 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3458 * infcall.c (call_function_by_hand): Convert the entry point
3459 address into a code address.
3460
3461 2003-08-27 Andrew Cagney <cagney@redhat.com>
3462
3463 * dsrec.c: Include "gdb_string.h".
3464 * Makefile.in (dsrec.o): Update dependencies.
3465
3466 2003-08-27 Michael Chastain <mec@shout.net>
3467
3468 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3469
3470 2003-08-27 Andrew Cagney <cagney@redhat.com>
3471
3472 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3473 (alpha_osf1_init_abi): Do not set call_dummy_address.
3474
3475 2003-08-27 David Carlton <carlton@kealia.com>
3476
3477 From Randolph Chung <tausq@debian.org>:
3478 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3479 compiles with -Wformat-nonliteral -Werror.
3480
3481 2003-08-26 Jim Blandy <jimb@redhat.com>
3482
3483 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3484 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3485 bfd_lookup_symbol, since we only want symbols in code sections.
3486 (look_for_base): Pass zero as the SECT_FLAGS argument to
3487 bfd_lookup_symbol, since we're not concerned about which section
3488 the symbol is in.
3489
3490 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3491
3492 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3493 we are frameless or the return address register is already known.
3494
3495 2003-08-26 Andrew Cagney <cagney@redhat.com>
3496
3497 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3498 in size. Add comments.
3499
3500 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3501
3502 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3503 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3504
3505 2003-08-26 Jason Merrill <jason@redhat.com>
3506
3507 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3508 case out of #ifdef MIPS block.
3509
3510 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3511
3512 PR java/1322
3513 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3514 available before calling SECT_OFF_TEXT.
3515 * PROBLEMS: Remove description of java/1322.
3516
3517 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3518
3519 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3520 bof, and nat0-nat127 as pseudo-registers.
3521 (ia64_frame_cache): New struct used to cache frame info.
3522 (ia64_register_reggroup_p): New routine used to override default
3523 register grouping so registers without names are still saved and
3524 restored.
3525 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3526 pseudo values.
3527 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3528 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3529 (ia64_alloc_frame_cache): New routine to create a new
3530 ia64_frame_cache.
3531 (examine_prologue): Change prototype to add next_frame pointer.
3532 Assume frameless until otherwise proven. Verify that the cfm for
3533 current frame matches the cfm that should occur for the prologues
3534 alloc insn and if equal, mark as not frameless. At end of routine,
3535 if not frameless, calculate registers for the previous frame and store
3536 in the cache, if a cache is provided.
3537 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3538 and pass 0 for next_frame.
3539 (ia64_store_return_value): Change to use convert_typed_floating()
3540 instead of calling ia64_convert_to_raw().
3541 (ia64_extract_return_value): Change to use convert_typed_floating()
3542 instead of calling ia64_convert_to_virtual().
3543 (ia64_frame_cache): New routine to support new frame model.
3544 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3545 (ia64_frame_sniffer): Ditto.
3546 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3547 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3548 (ia64_sigtramp_frame_prev_register): Ditto.
3549 (ia64_sigtramp_frame_sniffer): Ditto.
3550 (ia64_frame_base_address): Ditto.
3551 (ia64_extract_struct_value_address): Change to issue error message.
3552 (ia64_frame_align): New routine to align sp.
3553 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3554 (ia64_push_arguments): Removed. Logic moved to
3555 ia64_push_dummy_call().
3556 (ia64_push_return_address): Ditto.
3557 (ia64_unwind_dummy_id): New function.
3558 (ia64_unwind_pc): Ditto.
3559 (ia64_convert_register_p): Ditto.
3560 (ia64_register_to_value): Ditto.
3561 (ia64_value_to_register): Ditto.
3562 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3563 (ia64_register_byte, ia64_register_raw_size): Ditto.
3564 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3565 (ia64_saved_pc_after_call): Ditto.
3566 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3567 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3568 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3569 (ia64_register_convert_to_raw): Ditto.
3570 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3571 (ia64_init_extra_frame_info): Ditto.
3572 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3573 (ia64_gdbarch_init): Remove registering of deprecated functions that
3574 are no longer used. Add registration of new gdbarch functions.
3575 Remove registering deprecated_write_sp. Replace
3576 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3577 Delete set_gdbarch_deprecated_register_convertible(),
3578 set_gdbarch_deprecated_register_convert_to_virtual(), and
3579 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3580 set_gdbarch_deprecated_register_size(),
3581 set_gdbarch_deprecated_register_bytes(),
3582 set_gdbarch_pcregnum(),
3583 set_gdbarch_deprecated_register_byte(),
3584 set_gdbarch_deprecated_register_raw_size(),
3585 set_gdbarch_deprecated_max_register_raw_size(),
3586 set_gdbarch_deprecated_register_virtual_size(),
3587 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3588 Replace set_gdbarch_deprecated_extract_return_value() with
3589 set_gdbarch_extract_return_value(). Remove calls to:
3590 set_gdbarch_deprecated_saved_pc_after_call();
3591 set_gdbarch_deprecated_frame_chain(),
3592 set_gdbarch_deprecated_frame_saved_pc(),
3593 set_gdbarch_deprecated_frame_init_saved_regs(),
3594 set_gdbarch_deprecated_get_saved_register(),
3595 set_gdbarch_deprecated_call_dummy_words(),
3596 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3597 set_gdbarch_deprecated_init_extra_frame_info(),
3598 set_gdbarch_deprecated_frame_args_address(),
3599 set_gdbarch_deprecated_frame_locals_address(),
3600 and set_gdbarch_deprecated_dummy_write_sp().
3601 Add set_gdbarch_convert_register_p(),
3602 set_gdbarch_register_to_value(),
3603 set_gdbarch_value_to_register(),
3604 set_gdbarch_push_dummy_call(),
3605 set_gdbarch_frame_align(),
3606 set_gdbarch_unwind_dummy_id(),
3607 set_gdbarch_unwind_pc(),
3608 frame_unwind_append_sniffer(),
3609 frame_unwind_append_sniffer(),
3610 and frame_base_set_default().
3611
3612 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3613
3614 * configure.tgt: Document need for special "mipsisa64" handling.
3615 (mipsisa64*-*-linux64): Handle as target linux64.
3616 (mipsisa64*-*-*): Handle as target embed64.
3617
3618 2003-08-18 Michael Chastain <mec@shout.net>
3619
3620 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3621 objfile bug.
3622
3623 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3624
3625 * i387-tdep.h: Update copyright date.
3626 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3627
3628 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3629 CFLAGS games to reflect reality.
3630
3631 2003-08-24 Andrew Cagney <cagney@redhat.com>
3632
3633 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3634 GDB_MULTI_ARCH is always non-zero.
3635 * osabi.c (_initialize_gdb_osabi): Ditto.
3636 (gdbarch_init_osabi): Ditto.
3637 * sparc-tdep.c: Ditto for #if code.
3638
3639 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3640
3641 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3642 Update comments.
3643 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3644 comments.
3645 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3646 x86_64_supply_fxsave.
3647 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3648 x86_64_supply_fxsave.
3649 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3650 x86_64_supply_fxsave.
3651
3652 2003-08-23 Andreas Jaeger <aj@suse.de>
3653
3654 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3655 i387_supply_fxsave.
3656
3657 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3658
3659 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3660 i387_supply_register.
3661 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3662 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3663 i387_supply_fsave.
3664 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3665 i387_supply_fxsave.
3666 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3667 i387_supply_fsave.
3668 * i386bsd-nat.c (supply_fpregset): Adjust call to
3669 i387_supply_fsave.
3670 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3671 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3672 supply_fpregset.
3673 (store_inferior_registers): Remove extraneous whitespace. Call
3674 i387_fill_fsave instead of fill_fpregset.
3675 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3676 (supply_fpregset): Likewise.
3677 * i386v4-nat.c (supply_fpregset): Adjust call to
3678 i387_supply_fsave.
3679 * i386-interix-nat.c (supply_fpregset): Adjust call to
3680 i387_supply_fsave.
3681 * i386-linux-nat.c (supply_fpregset): Adjust call to
3682 i387_supply_fsave.
3683 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3684 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3685 i387supply_fsave and i387_supply_fxsave.
3686 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3687 Incorporate code from `i387_supply_register.
3688 (i387_supply_register): Remove.
3689 (i387_supply_fxsave): Add `regnum' argument.
3690 Update comments.
3691 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3692 prototype.
3693 (i387_supply_register): remove prototype.
3694 Update comments.
3695
3696 2003-08-22 Michael Chastain <mec@shout.net>
3697
3698 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3699 Add lines for files in gdb/testsuite/gdb.cp/* that are
3700 still not 8.3 unique.
3701
3702 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3703
3704 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3705 TYPE_VPTR_FIELDNO is valid.
3706
3707 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3708
3709 * utils.c (set_width_command): Remove prototypes.
3710 (set_screen_size): New prototype.
3711 (init_page_info): Simplify by fetching the screen size from
3712 Readline. Call set_screen_size.
3713 (set_screen_size): New function.
3714 (set_width): Add missing whitespace in comment.
3715 (set_width_command): Call set_screen_size.
3716 (set_height_command): New function.
3717 (initialize_utils): Fix formatting. Make "set height" command
3718 call set_height_command. Remove redundant code that turns off
3719 pagination if output isn't a terminal. Remove redundant call to
3720 set_width_command.
3721
3722 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3723
3724 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3725 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3726 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3727 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3728 `case' keyword.
3729 (sparc64_register_info): Give the reister with number
3730 SPARC64_STATE_REGNUM a name.
3731 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3732 %asi and %ccr.
3733 (sparc64_push_dummy_call): Take BIAS into account when checking
3734 stcak alignment.
3735 (sparc_software_single_step): Remove assertions that check whether
3736 NPC and NNPC were zero.
3737 (sparc_supply_rwindow): Make public. Merge functionality with
3738 sparc64_supply_rwindow.
3739 (sparc_fill_rwindow): Make public. Merge functionality with
3740 sparc64_fill_rwindow.
3741 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3742 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3743 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3744 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3745 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3746
3747 * reggroups.c: Add whitespace after declarations of local
3748 variables in functions.
3749
3750 2003-08-21 Michael Chastain <mec@shout.net>
3751
3752 * gdbtypes.h: Change array bound type from an int to enum.
3753
3754 2003-08-21 Andrew Cagney <cagney@redhat.com>
3755
3756 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3757 * config/sparc/tm-sparc.h: Ditto.
3758 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3759 unconditionally.
3760 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3761
3762 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3763
3764 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3765 (register_objfile_data, set_objfile_data, objfile_data): New
3766 prototypes.
3767 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3768 prototypes.
3769 (allocate_objfile): Call objfile_alloc_data.
3770 (free_objfile): Call objfile_free_data.
3771 (struct objfile_data): New.
3772 (struct objfile_data_registration): New.
3773 (struct objfile_data_registry): New.
3774 (objfile_data_registry): New variable.
3775 (register_objfile_data): New function.
3776 (objfile_alloc_data, objfile_free_data): New functions.
3777 (set_objfile_data, objfile_data): New functions.
3778 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3779 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3780 (_initialize_dwarf2_frame): New function and prototype.
3781
3782 2003-08-21 Andrew Cagney <cagney@redhat.com>
3783
3784 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3785 a specific architecture.
3786 * arch-utils.h (set_architecture_from_arch_mach): Delete
3787 declaration.
3788 (target_architecture_hook): Delete declaration.
3789 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3790 (default_float_format): Assume GDB_MULTI_ARCH.
3791 (default_double_format): Assume GDB_MULTI_ARCH.
3792 (set_endian_from_file): Delete function.
3793 (arch_ok): Delete function.
3794 (set_arch): Delete function.
3795 (set_architecture_from_arch_mach): Delete function.
3796 (set_architecture_from_file): Delete function.
3797 (set_architecture): Assume GDB_MULTI_ARCH.
3798 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3799
3800 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3801
3802 Rewrite FreeBSD/sparc64 native configuration.
3803 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3804 * sparc64fbsd-nat.c: New file.
3805 * sparc64fbsd-tdep.c: New file.
3806 * sparc64-tdep.c sparc64-tdep.h: New files.
3807 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3808 sparc64fbsd-tdep.o): New dependencies.
3809 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3810 and sparc64fbsd-tdep.c.
3811 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3812 * config/sparc/fbsd.mh: Remove copyright notice.
3813 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3814 sparcbsd-nat.o.
3815 * config/sparc/fbsd.mt: Remove copyright notice.
3816 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3817 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3818 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3819 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3820 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3821 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3822 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3823 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3824 "sparc/tm-sp64.h".
3825 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3826 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3827
3828 2003-08-21 Michael Chastain <mec@shout.net>
3829
3830 * symtab.h: Add doco on the space critical structures and
3831 some measurements of space usage.
3832
3833 2003-08-21 Michael Snyder <msnyder@redhat.com>
3834
3835 * tracepoint.c (trace_dump_command): Trace break address
3836 is subject to DECR_PC_AFTER_BREAK.
3837 (set_traceframe_context): Make "trace_line" an int.
3838 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3839
3840 2003-08-20 Michael Snyder <msnyder@redhat.com>
3841
3842 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3843 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3844 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3845 argument passing.
3846 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3847 functions, replace sh_push_dummy_call.
3848 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3849
3850 2003-08-20 Michael Chastain <mec@shout.net>
3851
3852 * gdbtypes.h (struct main_type): Rearrange to save space.
3853
3854 2003-08-20 Michael Snyder <msnyder@redhat.com>
3855
3856 * trad-frame.c: Comment typo fix.
3857
3858 2003-08-20 Michael Snyder <msnyder@redhat.com>
3859 Kevin Buettner <kevinb@redhat.com>
3860
3861 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3862 (frv_frame_init_saved_regs): Add declaration.
3863 (frame_extra_info): Add new field ``saved_regs''.
3864 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3865 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3866 Update frame related code.
3867 (frv_extract_struct_value_address): Adjust formatting.
3868 * Makefile.in (frv-tdep.o): Update dependencies.
3869 * config/frv/tm-frv.h (target_insert_watchpoint)
3870 (target_remove_watchpoint, target_insert_hw_breakpoint)
3871 (target_remove_hw_breakpoint): Delete these macros.
3872 (remote_insert_watchpoint, remote_remove_watchpoint)
3873 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3874 these declarations.
3875
3876 2003-08-20 Michael Chastain <mec@shout.net>
3877
3878 * defs.h (ENUM_BITFIELD): New macro.
3879 * symtab.h (ENUM_BITFIELD): Use it.
3880 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3881
3882 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3883
3884 * MAINTAINERS (write after approval): Add myself.
3885
3886 2003-08-18 Andrew Cagney <cagney@redhat.com>
3887
3888 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3889 * gdbarch.h, gdbarch.c: Re-generate.
3890 * infcall.c (call_function_by_hand): Adjust the SP by
3891 frame_red_zone_size before allocating any stack space.
3892 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3893 * x86-64-tdep.c (x86_64_frame_align): New function.
3894 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3895
3896 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3897 Remove code adjusting SP so that it skips over the Red Zone.
3898
3899 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3900
3901 * NEWS (New native configurations): Mention FreeBSD/amd64.
3902
3903 2003-08-18 Andrew Cagney <cagney@redhat.com>
3904
3905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3906 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3907 "m68k_frame_p".
3908 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3909
3910 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3911
3912 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3913
3914 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3915
3916 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3917 Define.
3918 * i386-linux-nat.c: Include "linux-nat.h".
3919 (child_post_startup_inferior): New function.
3920
3921 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3922
3923 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3924 at the start of a frameless function. This probably fixes PR
3925 backtrace/1338.
3926
3927 2003-08-17 Michael Chastain <mec@shout.net>
3928
3929 * symfile.c (find_sym_fns): Remove special case for apollo target.
3930
3931 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3932
3933 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3934 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3935 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3936 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3937 (linux_supports_tracevforkdone): New function.
3938 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3939 TRACEVFORKDONE.
3940 (child_follow_fork): Handle vfork.
3941 (linux_handle_extended_wait): Likewise. Also handle exec.
3942 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3943 * NEWS: Mention fork tracing.
3944
3945 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3946
3947 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3948
3949 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3950
3951 * Makefile.in (i386-linux-nat.o): Update dependencies.
3952 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3953 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3954 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3955 * i386-linux-nat.c: Include "linux-nat.h".
3956 (child_post_startup_inferior): New function.
3957 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3958 * infptrace.c (kill_inferior): Wrap in #ifdef.
3959 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3960 attaching to each LWP.
3961 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3962 (init_lin_lwp_ops): Fill in some more operations.
3963 * linux-nat.h (linux_enable_event_reporting)
3964 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3965 prototypes.
3966 * linux-nat.c (linux_enable_event_reporting): New function.
3967 (child_post_attach, linux_child_post_startup_inferior)
3968 (child_post_startup_inferior, child_follow_fork)
3969 (linux_handle_extended_wait, kill_inferior): New functions.
3970
3971 2003-08-16 Andrew Cagney <cagney@redhat.com>
3972
3973 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3974 * gdbarch.h, gdbarch.c: Re-generate.
3975
3976 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3977
3978 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3979
3980 2003-08-16 Andrew Cagney <cagney@redhat.com>
3981
3982 * NEWS: Mention that "set prompt-escape-char" was deleted.
3983 * top.c (get_prompt_1): Delete function.
3984 (gdb_prompt_escape):
3985 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3986 prompt-escape-char" command.
3987 (MAX_PROMPT_SIZE): Delete macro.
3988 (get_prompt): Simplify, do not call get_prompt_1.
3989
3990 2003-08-16 Andrew Cagney <cagney@redhat.com>
3991
3992 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3993 -Werror. -Wformat-nonliteral problems.
3994
3995 2003-08-15 J. Brobecker <brobecker@gnat.com>
3996
3997 Further multiarching work mostly for hppa64-*-hpux11:
3998 * hppa-tdep.h: New file.
3999 * hppa-tdep.c: #include hppa-tdep.c.
4000 (hppa32_num_regs): Renamed from hppa_num_regs.
4001 (hppa64_num_regs): New constant.
4002 (hppa64_call_dummy_breakpoint_offset): New constant.
4003 (hppa32_call_dummy_length): New constant.
4004 (hppa64_call_dummy_length): New constant.
4005 (hppa32_stack_align): Make name 32bit explicit.
4006 (hppa32_register_virtual_type): Likewise.
4007 (hppa32_extract_return_value): Likewise.
4008 (hppa32_use_struct_convention): Likewise.
4009 (hppa32_store_return_value): Likewise.
4010 (hppa64_register_virtual_type): New function.
4011 (hppa64_extract_return_value): New function.
4012 (hppa64_use_struct_convention): New function.
4013 (hppa64_store_return_value): New function.
4014 (hppa_frame_locals_address): Remove declaration, function does
4015 not exist anymore.
4016 (hppa_register_byte): Add support for PA64 ABI.
4017 (hppa_gdbarch_init): Add support for PA64 ABI.
4018 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4019 Make name 32bit explicit.
4020 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4021 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4022 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4023 (hppa64_hpux_frame_base_before_sigtramp): New function.
4024 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4025 * config/pa/tm-hppa64.h: Remove macros that are no longer
4026 necessary now that the gdbarch vector is properly setup.
4027 Transform some macros into function calls. Some minor cleanup.
4028 * config/pa/tm-hppah.h: Update function calls in macros
4029 following the function renaming in hppa-hpux-tdep.c.
4030 * Makefile.in (hppa_tdep_h): New variable.
4031 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4032
4033 2003-08-14 Michael Snyder <msnyder@redhat.com>
4034
4035 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4036
4037 2003-08-13 J. Brobecker <brobecker@gnat.com>
4038
4039 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4040 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4041 routine.
4042
4043 2003-08-13 Michael Snyder <msnyder@redhat.com>
4044
4045 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4046 (frv_saved_pc_after_call): Use deprecated ftype.
4047 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4048 (frv_remote_translate_xfer_address): Remove.
4049 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4050
4051 2003-08-13 J. Brobecker <brobecker@gnat.com>
4052
4053 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4054 initialization after the common gdbarch initialization, not before.
4055
4056 2003-08-13 J. Brobecker <brobecker@gnat.com>
4057
4058 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4059 (ADDR_BITS_REMOVE): Remove, redundant.
4060
4061 2003-08-13 J. Brobecker <brobecker@gnat.com>
4062
4063 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4064 gdbarch method to clear the 2 low bits of text addresses.
4065
4066 2003-08-12 Andrew Cagney <cagney@redhat.com>
4067
4068 * Makefile.in (dsrec.o): Update dependencies.
4069 * dsrec.c: Include "gdb_assert.h".
4070 (make_srec): Use snprintf instead of sprintf, use a literal format
4071 string.
4072
4073 2003-08-12 Andrew Cagney <cagney@redhat.com>
4074
4075 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4076 FRAME_OBSTACK_ZALLOC.
4077
4078 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4079
4080 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4081 SSE registers.
4082
4083 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4084
4085 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4086 amd64fbsd_sc_reg_offset): Add extern declarations.
4087 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4088 declarations.
4089
4090 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4091
4092 * MAINTAINERS (write after approval): Update my mail address.
4093
4094 2003-08-10 Andrew Cagney <cagney@redhat.com>
4095
4096 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4097
4098 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4099
4100 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4101 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4102 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4103 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4104 i386bsd_sc_reg_offset): Add extern declarations.
4105 * i386obsd-nat.c: Include "i386-tdep.h"
4106 (_initialize_i386obsd_nat): Remove extern declarations.
4107 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4108 declarations.
4109 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4110 declarations.
4111
4112 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4113 instead of frame_read_register.
4114 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4115 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4116 SP_REGNUM.
4117 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4118 instead of frame_unwind_unsigned_register. Use
4119 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4120 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4121 instead of read_register. Use builtin_type_void_data_ptr instead
4122 of builtin_type_void_func_ptr when extracting the address of the
4123 jmp_buf.
4124 (i386_extract_return_value, i386_store_return_value,
4125 i386_pseudo_register_read, i386_pseudo_register_write): Use
4126 register_size instead REGISTER_RAW_SIZE.
4127
4128 2003-08-10 Andrew Cagney <cagney@redhat.com>
4129
4130 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4131 sprintf. Make "name" constant.
4132
4133 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4134
4135 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4136 instead of frame_read_register.
4137 (i387_print_float_info): Use get_frame_register and
4138 get_frame_register_unsigned instead of frame_register_read.
4139
4140 * i386fbsd-nat.c: Include "i386-tdep.h".
4141 (child_resume): Make `eflags' an ULONGEST. Use
4142 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4143 instead of register_read and register_write.
4144
4145 * i386bsd-nat.c (fetch_inferior_registers,
4146 store_inferior_registers): Don't use && at the end of a line.
4147 (_initialize_i386bsd_nat): Fix typo.
4148
4149 * frame.c (_initialize_frame): Add missing backslash.
4150
4151 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4152 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4153 and supply_register instead of manipulating the register buffer
4154 directly.
4155
4156 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4157 * config/i386/nm-i386sol2.h
4158 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4159
4160 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4161 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4162 instructions that GCC likes to mingle into the prologue. Fixes
4163 gdb/1253 and gdb/1255.
4164
4165 2003-08-09 Andrew Cagney <cagney@redhat.com>
4166
4167 Fix GDB PR cli/926.
4168 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4169 * command.h (add_setshow_uinteger_cmd): Declare.
4170 * frame.c (set_backtrace_cmd): New function.
4171 (show_backtrace_cmd): New function.
4172 * frame.c (_initialize_frame): Replace "set/show
4173 backtrace-below-main" with "set/show backtrace past-main". Add
4174 command "set/show backtrace limit".
4175 (backtrace_past_main): Rename "backtrace_below_main".
4176 (backtrace_limit): New variable.
4177 (get_prev_frame): Update. Check the backtrace_limit.
4178
4179 2003-08-09 Andrew Cagney <cagney@redhat.com>
4180
4181 * defs.h (xstrprintf): Declare.
4182 * utils.c (xstrprintf): New function.
4183 * breakpoint.c (insert_breakpoints): Replace sprintf and
4184 non-literal format strings, with xstrprintf and cleanups.
4185 (delete_breakpoint,breakpoint_re_set): Ditto.
4186 (commands_command, insert_breakpoints): Ditto.
4187 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4188 (break_at_finish_command_1): Ditto.
4189
4190 2003-08-09 Andrew Cagney <cagney@redhat.com>
4191
4192 * MAINTAINERS (language support): List Adam Fedor as Objective C
4193 maintainer.
4194
4195 2003-08-08 J. Brobecker <brobecker@gnat.com>
4196
4197 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4198 are now multiarched.
4199
4200 2003-08-08 J. Brobecker <brobecker@gnat.com>
4201
4202 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4203 longer necessary now that hppa64 is partially multiarch'ed.
4204
4205 2003-08-08 Andrew Cagney <cagney@redhat.com>
4206
4207 * interps.c (interp_set): Check for a NULL "old_interp".
4208
4209 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4210
4211 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4212 (install-only): Support DESTDIR.
4213 (uninstall): Likewise.
4214 (install-gdbtk): Likewise.
4215
4216 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4217
4218 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4219 contains something meaningful at all times.
4220
4221 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4222
4223 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4224
4225 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4226
4227 * MAINTAINERS (write after approval): Added self.
4228
4229 2003-08-07 Andrew Cagney <cagney@redhat.com>
4230
4231 * inferior.h (AT_SYMBOL): Define.
4232 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4233 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4234 * mips-tdep.c (mips_call_dummy_address): Delete function.
4235 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4236 set call_dummy_address.
4237
4238 2003-08-07 Andrew Cagney <cagney@redhat.com>
4239
4240 * language.c (op_error): Delete function.
4241 (binop_type_check): Delete function.
4242 * language.h (type_op_error, range_op_error): Delete macros.
4243 (op_error): Delete declaration.
4244
4245 2003-08-07 Andrew Cagney <cagney@redhat.com>
4246
4247 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4248
4249 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4250
4251 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4252 (x86_64_push_arguments): Skip the red zone.
4253
4254 2003-08-05 Andrew Cagney <cagney@redhat.com>
4255
4256 * reggroups.c (reggroup_next): Check for the final entry.
4257
4258 2003-08-04 Andrew Cagney <cagney@redhat.com>
4259
4260 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4261 * cli/cli-script.c (define_command): Call query directly, instead
4262 of passing it a buffer.
4263 * ocd.c (ocd_error): Pass error a constant format string.
4264 * remote-mips.c (mips_error): Use fputs_filtered.
4265
4266 * solib-svr4.c (_initialize_svr4_solib): Update
4267 register_gdbarch_data call.
4268 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4269
4270 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4271 (register_gdbarch_data): Delete "free" parameter. Update
4272 comments.
4273 * gdbarch.h, gdbarch.c: Re-generate.
4274 * reggroups.c (_initialize_reggroup): Update.
4275 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4276 * frame-base.c (_initialize_frame_base): Update.
4277 * frame-unwind.c (_initialize_frame_unwind): Update.
4278 * user-regs.c (_initialize_user_regs): Update.
4279 * remote.c (_initialize_remote): Update.
4280 * regcache.c (_initialize_regcache): Update.
4281
4282 * regcache.c (xfree_regcache_descr): Delete function.
4283 (_initialize_regcache): Update call to register_gdbarch_data.
4284 (init_regcache_descr, init_legacy_regcache_descr): Use
4285 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4286
4287 * remote.c (free_remote_state): Delete function.
4288 (_initialize_remote): Update register_gdbarch_data.
4289 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4290 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4291
4292 2003-08-04 Andrew Cagney <cagney@redhat.com>
4293
4294 * reggroups.c (struct reggroup_el): Define.
4295 (struct reggroups): Delete field "nr_group". Replace array
4296 "group" with a "first" to "last" linked list.
4297 (reggroups_init): Update. Allocate using gdbarch's obstack.
4298 (reggroups_free): Delete function.
4299 (add_group): Update. Add "el" parameter.
4300 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4301 (default_groups): Update.
4302 (reggroup_next): Replace reggroups.
4303 (reggroups_dump): Update.
4304 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4305 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4306 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4307
4308 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4309
4310 * Makefile.in (tui-interp.o): Update dependencies.
4311
4312 2003-08-04 David Carlton <carlton@kealia.com>
4313
4314 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4315 to internal_error call.
4316 * source.c (forward_search_command): Add "%s" format argument.
4317 (reverse_search_command): Ditto.
4318 * top.c (quit_confirm): Ditto.
4319 * cli/cli-setshow.c (do_setshow_command): Ditto.
4320 * cp-valprint.c (cp_print_class_method): Replace
4321 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4322 (cp_print_class_member): Ditto.
4323 * event-top.c (command_line_handler): Ditto.
4324 * linux-proc.c (linux_info_proc_cmd): Ditto.
4325 * p-typeprint.c (pascal_type_print_base): Ditto.
4326 * p-valprint.c (pascal_object_print_class_method): Ditto.
4327 (pascal_object_print_class_member): Ditto.
4328 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4329 * remote.c (remote_cisco_section_offsets): Ditto.
4330 * top.c (command_line_input): Ditto.
4331 * utils.c (vwarning,error_stream,quit): Ditto.
4332 * valprint.c (print_floating,print_binary_chars)
4333 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4334
4335 2003-08-04 Andrew Cagney <cagney@redhat.com>
4336
4337 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4338
4339 2003-08-02 Andrew Cagney <cagney@redhat.com>
4340
4341 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4342 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4343 amd64fbsd-nat.c.
4344
4345 2003-08-02 Andrew Cagney <cagney@redhat.com>
4346
4347 * Makefile.in: Update all dependencies and definitions.
4348
4349 2003-08-02 Adam Fedor <fedor@gnu.org>
4350
4351 * linespec.c (is_objc_method_format): New function
4352 (decode_line_1, locate_first_half): Use it.
4353 Fixes PR objc/1298
4354
4355 2003-08-01 Andrew Cagney <cagney@redhat.com>
4356
4357 * NEWS: Mention that m32r is multi-arch.
4358 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4359 * configure.tgt: Recognize m32r-*-*.
4360 * config/m32r/tm-m32r.h: Delete file.
4361 * config/m32r/m32r.mt: New file.
4362 * m32r-rom.c (m32r_upload_command): Use hostent only when
4363 gethostname succeeds, in order to avoid a compilation
4364 warning.
4365 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4366 compiler warning.
4367
4368 2003-08-01 Michael Snyder <msnyder@redhat.com>
4369
4370 * sh-tdep.c (sh_frame_align): New gdbarch method.
4371 (sh_gdbarch_init): Set up frame_align method.
4372
4373 2003-07-31 Michael Snyder <msnyder@redhat.com>
4374
4375 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4376 which is already covered by the new frames infrastructure.
4377
4378 2003-07-31 Andrew Cagney <cagney@redhat.com>
4379
4380 * user-regs.c (struct user_reg): Add "next" link.
4381 (struct user_regs): Replace "user" with "first" and "last" links.
4382 (append_user_reg): Add pre-allocated "reg" parameter.
4383 (builtin_user_regs): Provide initial value for "last".
4384 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4385 (user_regs_init): Allocate memory from the gdbarch obstack.
4386 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4387 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4388 linked list.
4389 (usernum_to_user_reg): New function.
4390 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4391 (value_of_user_reg): Use usernum_to_user_reg.
4392 (user_regs_free): Delete function.
4393 (_initialize_user_regs): Update register_gdbarch_data call.
4394
4395 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4396
4397 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4398
4399 2003-07-30 Michael Snyder <msnyder@redhat.com>
4400
4401 * value.h (value_being_returned): Add a struct_addr argument.
4402 * infcall.c (call_function_by_hand): Pass struct_addr to
4403 value_being_returned.
4404 * infcmd.c (print_return_value): Pass zero as struct_addr.
4405 * values.c (value_being_returned): If struct_addr is passed,
4406 use it instead of trying to recover it from the inferior.
4407
4408 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4409
4410 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4411 the prologue analyzer won't need to attempt to extract the pc
4412 value from the woefully incomplete dummy frame.
4413 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4414 possible. Disable code which modifies the frame.
4415
4416 2003-07-28 Andrew Cagney <cagney@redhat.com>
4417
4418 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4419 to level 2.
4420 (annotate_breakpoints_table, annotate_record): Ditto.
4421 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4422 (annotate_field_name_end, annotate_field_value): Ditto.
4423 (annotate_field_end, annotate_frame_source_begin): Ditto.
4424 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4425 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4426 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4427 (annotate_frame_address_end, annotate_frame_address): Ditto.
4428 (annotate_frame_args, annotate_frame_end): Ditto.
4429 (annotate_frame_where, annotate_arg_begin): Ditto.
4430 (annotate_arg_name_end, annotate_arg_value): Ditto.
4431 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4432 (annotate_function_call, annotate_signal_name): Ditto.
4433 (annotate_signal_string, annotate_signal_name_end): Ditto.
4434 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4435 (annotate_value_begin, annotate_value_history_value): Ditto.
4436 (annotate_value_history_end, annotate_value_end): Ditto.
4437 (annotate_display_begin, annotate_display_number_end): Ditto.
4438 (annotate_display_format, annotate_display_expression): Ditto.
4439 (annotate_display_expression_end, annotate_display_value): Ditto.
4440 (annotate_display_end, annotate_array_section_begin): Ditto.
4441 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4442 (annotate_elt, annotate_array_section_end): Ditto.
4443
4444 2003-07-28 Andrew Cagney <cagney@redhat.com>
4445
4446 * regcache.c (struct regcache_descr): Update comments on
4447 nr_raw_registers.
4448 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4449 sizeof_raw_register_valid_p.
4450 (init_regcache_descr): Set nr_raw_registers and
4451 sizeof_raw_register_valid_p before calling
4452 init_legacy_regcache_descr.
4453
4454 2003-07-28 Andrew Cagney <cagney@redhat.com>
4455
4456 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4457 MOD NUM_REGS.
4458
4459 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4460
4461 * thread.c (info_threads_command): Use get_selected_frame ().
4462 Check that there is at least one non-sentinel frame.
4463
4464 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4465
4466 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4467 (m68hc11_pop_frame): Remove.
4468 (m68hc11_frame_saved_pc): Remove.
4469 (m68hc11_frame_chain): Remove.
4470 (m68hc11_frame_init_saved_regs): Remove.
4471 (m68hc11_init_extra_frame_info): Remove.
4472 (m68hc11_store_struct_return): Remove.
4473 (m68hc11_saved_pc_after_call): Remove.
4474
4475 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4476
4477 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4478 frame unwind information.
4479 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4480 and adapted for frame unwinding.
4481 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4482 (m68hc11_unwind_pc): New function.
4483 (m68hc11_frame_unwind_cache): New function to analyze frames.
4484 (m68hc11_frame_this_id): New function to create new frame struct.
4485 (m68hc11_frame_prev_register): New function to unwind a register from
4486 the frame.
4487 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4488 (m68hc11_frame_p): New function for the above.
4489 (m68hc11_frame_base_address): New function to return fp of frame.
4490 (m68hc11_frame_args_address): Update for frame.
4491 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4492 (m68hc11_unwind_sp): New function.
4493 (m68hc11_unwind_dummy_id): New function.
4494 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4495 calls.
4496
4497 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4498
4499 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4500 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4501 when we are beyond the current pc.
4502
4503 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4504
4505 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4506 from m68hc11_push_arguments.
4507 (m68hc11_push_arguments): Remove.
4508 (m68hc11_push_return_address): Remove.
4509 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4510 handlers; remove deprecated_extra_stack_alignment_needed.
4511
4512 2003-07-27 Andrew Cagney <cagney@redhat.com>
4513
4514 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4515 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4516 REAL_PC and not the pointer.
4517 * hppa-hpux-tdep.c: Include frame.h
4518
4519 2003-07-27 Andrew Cagney <cagney@redhat.com>
4520
4521 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4522 GDB_MULTI_ACH_PARTIAL.
4523
4524 2003-07-27 Andrew Cagney <cagney@redhat.com>
4525
4526 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4527 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4528 operator at start and not end of line.
4529 (decode_prologue): Ditto.
4530 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4531 frame_unwind_register_unsigned instead of
4532 frame_unwind_unsigned_register.
4533 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4534 read_register.
4535 (m32r_push_dummy_call): Use register_size instead of
4536 REGISTER_RAW_SIZE.
4537 (m32r_frame_sniffer): Replace m32r_frame_p.
4538 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4539 * m32r-rom.c (report_transfer_performance): Delete extern
4540 declaration.
4541 (m32r_load, m32r_upload_command): Use print_transfer_performance
4542 instead of report_transfer_performance.
4543 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4544 / add_show_from_set.
4545
4546 2003-07-26 Andrew Cagney <cagney@redhat.com>
4547
4548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4549 store_return_value and extract_struct_value_address.
4550
4551 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4552
4553 PR c++/1267
4554 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4555 NULL, default to the section containing PC.
4556
4557 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4558
4559 * NEWS: Mention "regs" deprecated for m68hc11 too.
4560
4561 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4562 (m68hc11_print_register): New function to print out one register.
4563 (m68hc11_print_registers_info): New function to print registers.
4564 (show_regs): Deprecate and use the above.
4565 (m68hc11_gdbarch_init): Install the print_registers_info.
4566
4567 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4568
4569 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4570 that we have a SIGTRAP before returning non-zero.
4571
4572 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4573 Elena Zannoni <ezannoni@redhat.com>
4574
4575 * linespec.c (decode_line_2): Avoid crash if
4576 find_function_start_sal() returns empty record.
4577
4578 2003-07-23 Andreas Schwab <schwab@suse.de>
4579
4580 * ia64-tdep.c (ia64_print_insn): New function.
4581 (ia64_gdbarch_init): Set print_insn to it.
4582 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4583 deprecated_tm_print_insn_info.
4584
4585 2003-07-22 Michael Snyder <msnyder@redhat.com>
4586
4587 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4588 handle 8-bit returns (long long).
4589 (h8300h_extract_return_value): Ditto.
4590 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4591
4592 2003-07-22 Andrew Cagney <cagney@redhat.com>
4593
4594 * gdbarch.c Include "gdb_obstack.h".
4595 (struct gdbarch): Add an "obstack".
4596 (alloc_gdbarch_data): Allocate the gdbarch data using
4597 GDBARCH_OBSTACK_CALLOC.
4598 (free_gdbarch_data): Delete function.
4599 (gdbarch_obstack_zalloc): New function.
4600 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4601 Assert that the architecture is not initialized.
4602 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4603 vector from the obstack.
4604 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4605 architecture obstack.
4606 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4607 (set_gdbarch_data): Assert that the data is not initialized.
4608 (struct gdbarch_data): Delete member "free".
4609 (register_gdbarch_data): Do not initialize "free".
4610 * gdbarch.h, gdbarch.c: Re-generate.
4611
4612 2003-07-22 Andrew Cagney <cagney@redhat.com>
4613
4614 * configure.in (build_warnings): Add -Wformat-nonliteral.
4615 * configure: Re-generate.
4616
4617 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4618
4619 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4620
4621 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4622
4623 * findvar.c (read_var_value): Remove case for thread local storage
4624 variables. It is now entirely handled by the dwarf2 location
4625 expression code.
4626 * printcmd.c (address_info): Ditto.
4627 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4628 enumeration value.
4629 (struct symbol): Remove objfile field, which was used by
4630 LOC_THREAD_LOCAL_STATIC only.
4631 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4632 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4633 usage of objfile pointer.
4634 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4635 thread local variables.
4636 Add include of objfiles.h.
4637 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4638 storage variables.
4639 * Makefile.in (dwarf2loc.o): Update dependencies.
4640
4641 2003-07-22 Andrew Cagney <cagney@redhat.com>
4642
4643 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4644 get_frame_base.
4645 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4646 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4647 (struct value): Add opaque declaration.
4648 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4649
4650 2003-07-21 Andrew Cagney <cagney@redhat.com>
4651
4652 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4653 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4654
4655 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4656
4657 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4658 regcache_cooked_read_unsigned instead of read_register.
4659 (m68hc11_saved_pc_after_call): Likewise.
4660 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4661 instead of write_register.
4662 (m68hc11_register_type): New function.
4663 (m68hc11_register_virtual_type): Remove.
4664 (m68hc11_store_return_value): Convert to use the regcache.
4665 (m68hc11_extract_struct_value_address): Likewise.
4666 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4667 m68hc11_register_type; undeprecate store_return_value and
4668 extract_struct_value_address.
4669
4670 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4671
4672 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4673 and translate to use regcache.
4674 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4675
4676 2003-07-18 Andrew Cagney <cagney@redhat.com>
4677
4678 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4679 * gdbarch.h, gdbarch.c: Re-generate.
4680 * i386-tdep.c (i386_gdbarch_init): Do not set
4681 DWARF2_BUILD_FRAME_INFO.
4682 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4683 unconditionally.
4684 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4685 DWARF2_BUILD_FRAME_INFO.
4686
4687 2003-07-18 Andrew Cagney <cagney@redhat.com>
4688
4689 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4690 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4691
4692 2003-07-18 Andrew Cagney <cagney@redhat.com>
4693
4694 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4695 frame_unwind_address_in_block, instead of frame_pc_unwind.
4696 (dwarf2_frame_cache): Ditto.
4697
4698 2003-07-18 Andrew Cagney <cagney@redhat.com>
4699
4700 * user-regs.h (struct gdbarch): Declare opaque.
4701 * ui-out.h (struct ui_file): Declare opaque.
4702 * dwarf2-frame.h (struct frame_info): Declare opaque.
4703
4704 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4705
4706 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4707 #include "...".
4708 (procfs_meminfo): Change strerror to safe_strerror.
4709 (procfs_can_run): Remove K&R badness.
4710
4711 2003-07-17 Michael Snyder <msnyder@redhat.com>
4712
4713 * remote-sim.c: Comment typo fix.
4714
4715 2003-07-17 Andrew Cagney <cagney@redhat.com>
4716
4717 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4718 configure.
4719 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4720 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4721 GDB_MULTI_ARCH_PARTIAL.
4722
4723 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4724
4725 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4726 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4727 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4728
4729 2003-07-16 Theodore A. Roth <troth@openavr.org>
4730
4731 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4732 found.
4733 (avr_frame_unwind_cache): Don't unwind FP for main.
4734 Update a comment.
4735 Save the computed prev_sp.
4736 (avr_saved_regs_unwinder): Remove function.
4737 (avr_frame_prev_register): Use PC unwind logic from
4738 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4739
4740 2003-07-16 Andrew Cagney <cagney@redhat.com>
4741
4742 * frame-base.h (frame_base_p_ftype): Delete definition.
4743 (frame_base_append_predicate): Delete declaration.
4744 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4745 (frame_unwind_append_predicate): Delete declaration.
4746 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4747 (append_predicate): Delete parameter "p".
4748 (frame_unwind_append_predicate): Delete function.
4749 (frame_unwind_append_sniffer): Update call to append_predicate.
4750 (frame_unwind_free): Delete function.
4751 (_initialize_frame_unwind): Pass NULL as "free" to
4752 register_gdbarch_data.
4753 (frame_unwind_init): Append the dummy_frame_sniffer.
4754 (frame_unwind_find_by_frame): Simplify.
4755 * frame-base.c (struct frame_base_table): Delete field "p".
4756 (append_predicate): Delete parameter "p".
4757 (frame_base_append_predicate): Delete function.
4758 (frame_base_append_sniffer): Update call to append_predicate.
4759 (frame_base_free): Delete function.
4760 (frame_base_find_by_frame): Simplify.
4761 (_initialize_frame_base): Pass NULL as "free" to
4762 register_gdbarch_data.
4763 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4764 (x86_64_sigtramp_frame_sniffer): Replace
4765 "x86_64_sigtramp_frame_p".
4766 (x86_64_init_abi): Set the frame unwind sniffers.
4767 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4768 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4769 (m68k_gdbarch_init): Set the frame unwind sniffers.
4770 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4771 "i386_sigtramp_frame_p".
4772 (i386_frame_sniffer): Replace "i386_frame_p".
4773 (i386_gdbarch_init): Set the frame unwind sniffers.
4774 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4775 (avr_gdbarch_init): Set the frame unwind sniffers.
4776 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4777 "alpha_sigtramp_frame_p"
4778 (alpha_heuristic_frame_sniffer): Replace
4779 "alpha_heuristic_frame_p".
4780 (alpha_gdbarch_init): Set the frame unwind sniffers.
4781 (alpha_dwarf2_init_abi): Ditto.
4782 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4783 "alpha_debug_frame_p".
4784 (alpha_mdebug_frame_base_sniffer): Replace
4785 "alpha_mdebug_frame_base_p".
4786 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4787 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4788 (d10v_gdbarch_init): Set the frame unwind sniffer.
4789 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4790 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4791 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4792 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4793 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4794 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4795
4796 2003-07-16 Michael Snyder <msnyder@redhat.com>
4797
4798 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4799 should go thru sh_dsp_register_sim_regno, else the dsp regs
4800 will not get the right values.
4801
4802 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4803
4804 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4805 deprecated_store_floating by call to store_typed_floating.
4806 (sh_sh4_register_convert_to_raw): Substitute call to
4807 deprecated_extract_floating by call to extract_typed_floating.
4808
4809 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4810
4811 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4812
4813 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4814
4815 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4816 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4817 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4818 as possible.
4819 (do_pseudo_register): Remove.
4820 (sh_push_dummy_code): New function.
4821 (sh64_store_struct_return): Rename from sh_store_struct_return.
4822 Only called for sh64 now.
4823 (sh_extract_struct_value_address): Regcache'ify.
4824 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4825 and accomodate new tasks.
4826 (sh64_push_return_address): Rename from sh_push_return_address.
4827 Only called for sh64 now.
4828 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4829 Regcache'ify.
4830 (sh3e_sh4_extract_return_value): Regcache'ify.
4831 (sh_default_store_return_value): Ditto.
4832 (sh3e_sh4_store_return_value): Ditto.
4833 (sh_default_register_byte): Remove.
4834 (sh_sh4_register_byte): Remove.
4835 (sh_default_register_raw_size): Remove.
4836 (sh_sh4_register_raw_size): Remove.
4837 (sh_register_virtual_size): Remove.
4838 (sh_sh3e_register_virtual_type): Remove.
4839 (sh_sh3e_register_type): New function.
4840 (sh_sh4_register_virtual_type): Remove.
4841 (sh_sh4_register_type): New function.
4842 (sh_default_register_virtual_type): Remove.
4843 (sh_default_register_type): New function.
4844 (do_fv_register_info): Add parameters to accomodate call from
4845 sh_print_registers_info.
4846 (do_dr_register_info): Ditto.
4847 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4848 Add parameters to accomodate call from sh_print_registers_info.
4849 (sh_do_fp_register): Ditto.
4850 (sh64_do_pseudo_register): Call do_dr_register_info,
4851 do_fv_register_info and sh_do_fp_register with default parameters.
4852 (sh_do_register): Add parameters to accomodate call from
4853 sh_print_registers_info.
4854 (sh_print_register): Ditto.
4855 (sh_print_registers_info): Rename from sh_do_registers_info.
4856 Add parameters to be used as gdbarch_print_registers_info
4857 implementation. Accomodate removed do_pseudo_register function
4858 pointer.
4859 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4860 function pointer. Call sh_print_register with default parameters.
4861 (sh64_do_registers_info): Call sh_print_registers_info instead of
4862 sh_do_registers_info.
4863 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4864 detection of deprecated vs. non-deprecated functionality.
4865 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4866 function pointer assignments by direct function calls.
4867
4868 2003-07-15 Andrew Cagney <cagney@redhat.com>
4869
4870 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4871 (frame_register_unwind, create_new_frame): Ditto.
4872 (legacy_get_prev_frame, get_frame_type): Ditto.
4873 (get_frame_base_address): Use frame_base_find_by_frame.
4874 (get_frame_locals_address): Use frame_base_find_by_frame.
4875 (get_frame_args_address): Use frame_base_find_by_frame.
4876 * frame-base.h (frame_base_sniffer_ftype): Declare.
4877 (frame_base_append_sniffer): Declare.
4878 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4879 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4880 (frame_base_append_sniffer): New function.
4881 (frame_base_append_predicate): Add a NULL sniffer.
4882 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4883 (struct frame_base_table): Add "sniffer".
4884 (frame_base_free): Free the "sniffer" table.
4885 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4886 (frame_unwind_append_sniffer): Declare.
4887 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4888 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4889 (struct frame_unwind_table): Add "sniffer", delete "middle".
4890 (append_predicate): Add "sniffer" parameter, append the sniffer.
4891 (frame_unwind_init): Update append_predicate call.
4892 (frame_unwind_append_sniffer): New function.
4893 (frame_unwind_append_predicate): Update append_predicate call.
4894 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4895
4896 2003-07-15 Andrew Cagney <cagney@redhat.com>
4897
4898 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4899 before code inhibiting repeated unwind attempts. Add to
4900 commentary on that test's problems.
4901 * blockframe.c (inside_main_func): Look for "main" in the minimal
4902 symbol table.
4903 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4904 identical.
4905
4906 2003-07-15 Andrew Cagney <cagney@redhat.com>
4907
4908 * complaints.c (struct explanation): Define.
4909 (struct complaints): Change type of "explanation" to "struct
4910 explanation".
4911 (symfile_explanations): Convert to a "struct explanation" table.
4912 (vcomplaint): Update.
4913
4914 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4915
4916 * x86-64-linux-nat.c (regmap): Removed.
4917 (supply_gregset, fill_gregset): Call
4918 x86_64_linux_(fill,supply)_gregset functions.
4919 * x86-64-linux-tdep.c (USER_*): New defines.
4920 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4921 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4922 New functions.
4923 (fetch_core_registers): Ditto.
4924 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4925 * x86-64-linux-tdep.h: New file.
4926 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4927 and core-regset.o.
4928 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4929
4930 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4931
4932 * x86-64-tdep.c (x86_64_store_return_value): Use
4933 regcache_cooked_write_part instead of regcache_cooked_write.
4934
4935 * configure.host: Add x86_64-*-freebsd*.
4936 * configure.tgt: Add x86_64-*-freebsd*.
4937 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4938 * amd64fbsd-nat.c: New file.
4939 * amd64fbsd-tdep.c: New file.
4940 * config/i386/nm-fbsd64.h: New file.
4941 * config/i386/fbsd64.mh: New file.
4942 * config/i386/fbsd64.mt: New file.
4943
4944 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4945
4946 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4947 `sc_regs_offset' and `sc_fpregs_offset'.
4948 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4949 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4950 (alpha_sigtramp_register_address): Rewrite to use new members of
4951 `struct gdbarch_tdep'.
4952 (alpha_gdbarch_init): Initialize new members of struct
4953 gdbarch_tdep'.
4954 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4955 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4956 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4957 (alphafbsd_pc_in_sigtramp): Implement.
4958 (alphafbsd_sigtramp_offset): New function.
4959 (alphafbsd_sigcontext_addr): New function.
4960 (alphafbsd_init_abi): Initialize signal trampoline related members
4961 of `struct gdbarch_tdep'.
4962 (_initialize_alphafbsd_tdep): Add prototype.
4963
4964 2003-07-11 Theodore A. Roth <troth@openavr.org>
4965
4966 * Makefile.in (install-only): Quote sed expression when generating
4967 transformed_name.
4968
4969 2003-07-11 Richard Henderson <rth@redhat.com>
4970
4971 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4972 * dwarf2-frame.c: Include complaints.h.
4973 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4974 variable initialization; return NULL on error.
4975 (decode_frame_entry): New.
4976
4977 2003-07-11 Andrew Cagney <cagney@redhat.com>
4978
4979 * frame.h (frame_address_in_block): Delete declaration.
4980 * blockframe.c (frame_address_in_block): Delete function.
4981 (get_frame_block): Use get_frame_address_in_block.
4982 (block_innermost_frame): Ditto.
4983 * stack.c (print_frame, backtrace_command_1): Ditto.
4984
4985 * frame.h (get_frame_address_in_block): Declare.
4986 (frame_unwind_address_in_block): Declare.
4987 * frame.c (frame_unwind_address_in_block): New function.
4988 (get_frame_address_in_block): New function.
4989
4990 2003-07-10 Andrew Cagney <cagney@redhat.com>
4991
4992 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4993 pre-default. Note: re-generate has no effect.
4994
4995 2003-07-10 Andrew Cagney <cagney@redhat.com>
4996
4997 * gdbarch.sh: When a variable, but not a function, compare against
4998 0. Fix problem in previous patch.
4999 * gdbarch.c: Re-generate.
5000
5001 2003-07-10 Andrew Cagney <cagney@redhat.com>
5002
5003 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5004 functions against NULL, not 0.
5005 * gdbarch.c: Re-generate.
5006
5007 2003-07-10 Fred Fish <fnf@ninemoons.com>
5008
5009 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5010 null string instead of a null pointer.
5011 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5012
5013 2003-07-09 Michael Snyder <msnyder@redhat.com>
5014
5015 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5016
5017 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5018
5019 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5020 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5021 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5022 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5023 * x86-64-tdep.c: ... from here.
5024
5025 2003-07-09 Andreas Schwab <schwab@suse.de>
5026
5027 * m68k-tdep.h (enum struct_return): Define.
5028 (struct gdbarch_tdep): Add struct_return.
5029 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5030 bytes are padded to the right, not to the left. Pass struct value
5031 address in register %a1, not on stack.
5032 (m68k_use_struct_convention): New function.
5033 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5034 struct_return in tdep to pcc_struct_return.
5035 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5036 reg_struct_return.
5037
5038 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5039
5040 * somread.c (som_symfile_offsets): Fix compilation error.
5041
5042 2003-07-09 Andrew Cagney <cagney@redhat.com>
5043
5044 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5045 Add comments about the checks.
5046
5047 2003-07-08 Andrew Cagney <cagney@redhat.com>
5048
5049 * Makefile.in: Make dependency section headers consistent.
5050 (config_h): Move to $BUILD headers section.
5051 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5052 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5053 (ada-exp.tab.c): Move to YACC/LEX section.
5054 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5055 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5056
5057 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5058
5059 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5060 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5061 of strerror with safe_strerror, use ISO C function definitions,
5062 and replace instances of sprintf with snprintf.
5063
5064 2003-07-07 Andrew Cagney <cagney@redhat.com>
5065
5066 * frame.c (get_prev_frame): Enable check for identical frames.
5067 Update comments. Update error messages.
5068
5069 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5070
5071 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5072
5073 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5074
5075 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5076 sort_symtab_syms, no longer necessary.
5077
5078 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5079
5080 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5081
5082 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5083
5084 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5085 (mips_register_byte): Likewise.
5086
5087 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5088
5089 * Makefile.in (sparc_tdep_h): New.
5090 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5091 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5092 * sparc-linux-nat.c: Include "sparc-tdep.h".
5093 * sparc-nat.c: Likewise.
5094 * sparc-tdep.c: Likewise.
5095 * sparc64nbsd-nat.c: Likewise.
5096 * sparcnbsd-nat.c: Likewise.
5097 * sparcnbsd-tdep.c: Likewise.
5098 * sparc-tdep.h: New file.
5099 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5100 and sparc_npc_regnum.
5101
5102 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5103
5104 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5105 (mips_linux_cannot_store_register): List supported instead of
5106 unsupported registers.
5107
5108 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5109
5110 * disasm.c (dump_insns): Separate instructions from addresses.
5111
5112 2003-07-07 Andreas Schwab <schwab@suse.de>
5113
5114 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5115 dependencies.
5116 * m68k-tdep.c (NUM_FREGS): Delete.
5117 (SIG_PC_FP_OFFSET): Delete.
5118 (TARGET_M68K): Delete.
5119 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5120 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5121 P_MOVEL_SP, P_MOVEML_SP): Define.
5122 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5123 P_TRAP): Delete.
5124 (m68k_register_raw_size): Delete.
5125 (m68k_register_virtual_size): Delete.
5126 (m68k_register_type): Renamed from m68k_register_virtual_type and
5127 add gdbarch argument.
5128 (m68k_store_struct_return): Delete.
5129 (m68k_deprecated_extract_return_value): Delete.
5130 (m68k_deprecated_extract_struct_value_address): Delete.
5131 (m68k_frame_chain): Delete.
5132 (m68k_frame_saved_pc): Delete.
5133 (m68k_fix_call_dummy): Delete.
5134 (m68k_push_dummy_frame): Delete.
5135 (m68k_pop_frame): Delete.
5136 (m68k_extract_return_value): New function.
5137 (m68k_store_return_value): Rewrite using regcache.
5138 (m68k_extract_struct_value_address): Rewrite using regcache.
5139 (m68k_push_dummy_call): New function.
5140 (struct m68k_frame_cache): Define.
5141 (m68k_alloc_frame_cache): New function.
5142 (m68k_analyze_frame_setup): New function.
5143 (m68k_analyze_register_saves): New function.
5144 (m68k_analyze_prologue): New function.
5145 (m68k_skip_prologue): Rewrite using above functions.
5146 (m68k_unwind_pc): New function.
5147 (m68k_frame_cache): New function.
5148 (m68k_frame_this_id): New function.
5149 (m68k_frame_prev_register): New function.
5150 (m68k_frame_unwind): New variable.
5151 (m68k_frame_p): New function.
5152 (m68k_sigtramp_frame_cache): New function.
5153 (m68k_sigtramp_frame_this_id): New function.
5154 (m68k_sigtramp_frame_prev_register): New function.
5155 (m68k_sigtramp_frame_unwind): New variable.
5156 (m68k_sigtramp_frame_p): New function.
5157 (m68k_frame_base_address): New function.
5158 (m68k_frame_base): New function.
5159 (m68k_unwind_dummy_id): New function.
5160 (fill_gregset): Use regcache_collect.
5161 (fill_fpregset): Likewise.
5162 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5163 defined.
5164 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5165 deprecated_init_frame_pc, deprecated_store_struct_return,
5166 deprecated_extract_return_value, deprecated_store_return_value,
5167 deprecated_frame_chain, deprecated_frame_saved_pc,
5168 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5169 deprecated_register_virtual_size,
5170 deprecated_max_register_raw_size,
5171 deprecated_max_register_virtual_size,
5172 deprecated_register_virtual_type, deprecated_register_size,
5173 deprecated_register_byte, deprecated_register_bytes,
5174 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5175 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5176 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5177 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5178 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5179 deprecated_push_dummy_frame, deprecated_pop_frame,
5180 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5181 only if SYSCALL_TRAP is defined. Set extract_return_value,
5182 store_return_value, extract_struct_value_address, register_type,
5183 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5184 predicates.
5185 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5186 M68K_MAX_REGISTER_SIZE): Define.
5187 (struct m68k_sigtramp_info): Define.
5188 (struct gdbarch_tdep): Add get_sigtramp_info.
5189 * m68klinux-nat.c (fetch_register): Use register_size instead of
5190 REGISTER_RAW_SIZE. Don't put assignment in if.
5191 (store_register): Likewise.
5192 (fetch_inferior_registers): Likewise.
5193 (store_inferior_registers): Likewise.
5194 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5195 (m68k_linux_frame_saved_pc): Delete.
5196 (m68k_linux_sigcontext_reg_offset,
5197 m68k_linux_ucontext_reg_offset): Define.
5198 (m68k_linux_get_sigtramp_info): New function.
5199 (m68k_linux_extract_return_value): Rewrite using regcache.
5200 (m68k_linux_store_return_value): Likewise.
5201 (m68k_linux_extract_struct_value_address): Likewise.
5202 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5203 Don't set deprecated_frame_saved_pc,
5204 deprecated_extract_return_value, deprecated_store_return_value,
5205 deprecated_extract_struct_value_address. Set
5206 extract_return_value, store_return_value,
5207 extract_struct_value_address.
5208
5209 2003-07-07 Andrew Cagney <cagney@redhat.com>
5210
5211 * expprint.c: Include "user-regs.h" instead of "frame.h".
5212 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5213 frame_map_regnum_to_name.
5214 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5215 (frame_map_name_to_regnum): Simplify, call
5216 user_reg_map_name_to_regnum.
5217 (frame_map_regnum_to_name): Simplify, call
5218 user_reg_map_regnum_to_name.
5219 (frame_register_unwind): Update.
5220 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5221 (_initialize_frame_reg): Call user_reg_add_builtin.
5222 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5223 (value_of_register): Use value_of_user_reg.
5224 * eval.c (evaluate_subexp_standard): Update.
5225 * parse.c (write_dollar_variable): Update.
5226 * d10v-tdep.c (d10v_print_registers_info): Update.
5227 * infcmd.c (registers_info): Update.
5228 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5229 (builtin_regs_h): Delete macro.
5230 (user_regs_h): Define.
5231 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5232 (builtin-regs.o): Delete target.
5233 (user-regs.o): Specify dependencies.
5234 (expprint.o): Update dependencies.
5235 (findvar.o): Update dependencies.
5236 (frame.o): Update dependencies.
5237 (std-regs.o): Update dependencies.
5238
5239 2003-07-06 Christopher Faylor <cgf@redhat.com>
5240
5241 * win32-nat.c (solib_symbols_add): Use one variable for all section
5242 address stuff. Pass variable rather than address of variable to
5243 safe_symbol_file_add.
5244
5245 2003-07-06 Andreas Schwab <schwab@suse.de>
5246
5247 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5248
5249 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5250
5251 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5252
5253 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5254
5255 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5256
5257 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5258
5259 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5260 * config/i386/nto.mh: New file.
5261 * config/i386/nm-nto.h: New file.
5262 * configure.host: Add i[3456]86-*-nto*.
5263
5264 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5265
5266 * remote-vx.c (vx_add_symbols): Fix compilation error.
5267
5268 2003-07-03 Andrew Cagney <cagney@redhat.com>
5269
5270 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5271 * gdbarch.h, gdbarch.c: Re-generate.
5272 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5273 (legacy_register_name): Declare.
5274 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5275 (REGISTER_NAME): Define.
5276 * sparc-tdep.c (legacy_register_name): New function.
5277 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5278 (REGISTER_NAME): Define.
5279 (hppa64_register_name): Declare.
5280 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5281 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5282 (hppa64_register_name): New function.
5283 (hppa_register_name): New function.
5284 * arch-utils.c (legacy_register_name): Delete.
5285 * arch-utils.h (legacy_register_name): Delete.
5286
5287 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5288
5289 * cli/cli-interp.c (cli_interpreter_resume): Update the
5290 cli_uiout's stream to gdb_stdout.
5291
5292 2003-07-03 Andrew Cagney <cagney@redhat.com>
5293
5294 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5295 predicate.
5296 * gdbarch.h, gdbarch.c: Re-generate.
5297 * regcache.c (init_regcache_descr): Use legacy code when either
5298 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5299
5300 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5301
5302 * NEWS: Move "set logging" entry into GDB 6.0 section.
5303
5304 2003-07-02 Jim Blandy <jimb@redhat.com>
5305
5306 * s390-tdep.c (struct frame_extra_info): new member:
5307 'stack_bought_valid'.
5308 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5309 initialize fextra_info->stack_bought.
5310 (s390_frameless_function_invocation): Don't trust the value of
5311 fextra_info_ptr->stack_bought unless
5312 fextra_info->stack_bought_valid is set.
5313
5314 New S390 prologue analyzer.
5315 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5316 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5317 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5318 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5319 compute_x_addr, s390_on_stack, s390_store,
5320 s390_get_signal_frame_info): New functions.
5321 (S390_NUM_SPILL_SLOTS): New macro.
5322 (s390_get_frame_info): Rewritten.
5323 (is_arg_reg): Deleted.
5324
5325 Break out the decoding of S/390 instructions into separate
5326 functions, to make it more legible, and easier to check
5327 against the spec.
5328 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5329 is_rx, is_rxe): New functions.
5330 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5331 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5332 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5333 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5334 enums for opcode values. (Is this an improvement?)
5335
5336 2003-07-02 Andrew Cagney <cagney@redhat.com>
5337
5338 * i386-tdep.c: Revert change committed as part of trad-frame code
5339 below.
5340
5341 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5342
5343 * breakpoint.c (insert_catchpoint): Make static.
5344
5345 2003-07-02 Andreas Schwab <schwab@suse.de>
5346
5347 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5348 former ia64_push_arguments and ia64_push_return_address, and use
5349 regcache functions instead of read/write_register.
5350 (ia64_gdbarch_init): Set push_dummy_call instead of
5351 deprecated_push_arguments and deprecated_push_return_address.
5352
5353 2003-07-01 Andreas Jaeger <aj@suse.de>
5354
5355 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5356 before the call.
5357 Set %rax only to number of SSE registers used.
5358
5359 2003-07-01 Andrew Cagney <cagney@redhat.com>
5360
5361 * trad-frame.h: Update comments, a -1 .addr is reserved.
5362 (trad_frame_value_p, trad_frame_addr_p): Declare.
5363 (trad_frame_reg_p): Declare.
5364 (trad_frame_set_value): Rename trad_frame_register_value.
5365 (trad_frame_set_unknown): Declare.
5366 * trad-frame.c (trad_frame_realreg_p): New function.
5367 (trad_frame_addr_p, trad_frame_value_p): New function.
5368 (trad_frame_set_unknown): New function.
5369 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5370 (trad_frame_prev_register): Use trad_frame_realreg_p,
5371 trad_frame_addr_p and trad_frame_value_p.
5372 (trad_frame_set_value): Rename trad_frame_register_value.
5373 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5374 and trad_frame_set_value.
5375
5376 2003-06-30 Jim Blandy <jimb@redhat.com>
5377
5378 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5379 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5380 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5381 for 16 registers, and then 32 more bytes.
5382 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5383 New macros.
5384 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5385 Move up in the file, since it's now used by is_simple_arg.
5386 (is_simple_arg): Don't assume registers are four bytes long.
5387 Exclude all double arguments. Extended floats are not simple
5388 args.
5389 (is_power_of_two): New function.
5390 (pass_by_copy_ref): Call is_power_of_two, and check that the
5391 length fits in a register, rather than listing all the acceptable
5392 sizes. Extended floats are not passed by reference.
5393 (s390_push_arguments): Don't assume registers are four bytes long.
5394 Reserve an argument register to point to the buffer for structures
5395 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5396 S390_STACK_FRAME_OVERHEAD.
5397
5398 2003-06-30 Andreas Schwab <schwab@suse.de>
5399
5400 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5401 format error message.
5402
5403 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5404
5405 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5406
5407 2003-06-30 David Carlton <carlton@kealia.com>
5408
5409 Band-aid for PR c++/1245.
5410 * Makefile.in (cp-support.o): Depend on complaints_h.
5411 * cp-support.c: Include complaints.h. Add declaration for
5412 find_last_component.
5413 (cp_find_first_component): Separate code into
5414 cp_find_first_component_aux.
5415 (cp_find_first_component_aux): Call demangled_name_complaint.
5416 (demangled_name_complaint): New.
5417
5418 2003-06-30 Andrew Cagney <cagney@redhat.com>
5419
5420 * remote.c (remote_write_bytes): Explicitly compute and then use
5421 the payload size. Update comments to reflect. Fixes problem of
5422 GDB not sending small packets as found by Fred Fish.
5423
5424 2003-06-30 Andrew Cagney <cagney@redhat.com>
5425
5426 * remote.c (remote_async_wait): Fix -Wformat problem.
5427
5428 2003-06-29 Andrew Cagney <cagney@redhat.com>
5429
5430 * remote.c (remote_wait): Call error, and not warning, when the
5431 packet is corrupt.
5432 (remote_async_wait): Ditto.
5433
5434 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5435
5436 * sparc-tdep.c (sparc_y_regnum): Make external again.
5437
5438 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5439
5440 * cli/cli-logging.c (pop_output_files): Add void to function
5441 definition.
5442
5443 2003-06-29 Andrew Cagney <cagney@redhat.com>
5444
5445 * frame.c (frame_register_unwind): Use unsigned char when dumping
5446 the buffer contents.
5447
5448 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5449
5450 * cli/cli-logging.c: New file.
5451 * cli-out.c (struct ui_out_data): Add original_stream.
5452 (cli_redirect): New function.
5453 (cli_ui_out_impl): Add cli_redirect.
5454 (cli_out_new): Initialize original_stream.
5455 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5456 (uo_redirect, ui_out_redirect): New.
5457 * ui-out.h (struct ui_out_impl): Add redirect member.
5458 (redirect_ftype): New.
5459 (ui_out_redirect): Add prototype.
5460 * Makefile.in: Add rules for cli-logging.c.
5461 * NEWS: Mention "set logging".
5462
5463 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5464
5465 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5466
5467 2003-06-27 Andrew Cagney <cagney@redhat.com>
5468
5469 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5470 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5471 * avr-tdep.c (avr_call_dummy_address): Delete function.
5472 (avr_gdbarch_init): Do not set call_dummy_address.
5473
5474 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5475
5476 * symfile.c (syms_from_objfile): Move variables to inner block.
5477 Move the checks for the non-mainline case a bit earlier to avoid
5478 doing some useless computations.
5479
5480 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5481
5482 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5483
5484 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5485
5486 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5487 sections.
5488
5489 2003-06-26 Michael Chastain <mec@shout.net>
5490
5491 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5492 gdb/testsuite/gdb.c++/pr-1210.exp.
5493
5494 2003-06-26 Andrew Cagney <cagney@redhat.com>
5495
5496 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5497 altivec_expression.h and altivec_registers.h.
5498
5499 2003-06-26 Andrew Cagney <cagney@redhat.com>
5500
5501 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5502 info->mach when MIPS16. Patch suggested by Fred Fish.
5503
5504 2003-06-26 Andrew Cagney <cagney@redhat.com>
5505
5506 * utils.c (internal_vproblem): Print the problem to a reason
5507 buffer and then pass to query. Make the msg variable more local.
5508
5509 2003-06-26 Andrew Cagney <cagney@redhat.com>
5510
5511 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5512 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5513 * gdbarch.h, gdbarch.c: Re-generate.
5514 * frame-base.c (default_frame_args_address): Update. Use
5515 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5516 not available.
5517 (default_frame_locals_address): Ditto for
5518 DEPRECATED_FRAME_LOCALS_ADDRESS.
5519 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5520 (vax_frame_num_args): Update.
5521 (vax_gdbarch_init): Update.
5522 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5523 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5524 * mcore-tdep.c (mcore_gdbarch_init): Update.
5525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5526 * ia64-tdep.c (ia64_gdbarch_init): Update.
5527 * symtab.h (address_class): Update comments.
5528 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5529 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5530 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5531 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5532 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5533 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5534 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5535 * alpha-mdebug-tdep.c: Update.
5536 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5537
5538 2003-06-26 Andreas Jaeger <aj@suse.de>
5539
5540 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5541 of SSE registers so that varargs functions work. Rework handling
5542 of passing arguments on the stack.
5543 (x86_64_store_return_value): Return double and float values in SSE
5544 register.
5545
5546 2003-06-24 Michael Chastain <mec@shout.net>
5547
5548 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5549 the "constructor breakpoints ignored" bug.
5550
5551 2003-06-25 David Carlton <carlton@kealia.com>
5552
5553 * MAINTAINERS: Update e-mail address.
5554
5555 2003-06-24 Jim Blandy <jimb@redhat.com>
5556
5557 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5558
5559 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5560 function.
5561 (ppc_linux_init_abi): Register it as the
5562 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5563
5564 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5565 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5566 method.
5567
5568 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5569 (ppc64_standard_linkage_target): Use it.
5570
5571 2003-06-23 Andrew Cagney <cagney@redhat.com>
5572
5573 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5574 for 0 "int0" and 4 "int32" sized registers.
5575 * gdbtypes.c (builtin_type_int0): Define.
5576 (build_gdbtypes): Initialize builtin_type_int0.
5577 * gdbtypes.h (builtin_type_int0): Declare.
5578
5579 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5580
5581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5582 as characters are unsigned.
5583
5584 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5585
5586 PR gdb/1179
5587 * dwarfread.c (struct_type): Skip static fields without crashing.
5588
5589 2003-06-22 Andrew Cagney <cagney@redhat.com>
5590
5591 GDB 6.0 branch created.
5592 * README: Update.
5593 * PROBLEMS: Update. Empty.
5594 * NEWS: Update.
5595
5596 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5597
5598 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5599 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5600
5601 2003-06-22 Andrew Cagney <cagney@redhat.com>
5602
5603 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5604 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5605 Velikov.
5606
5607 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5608
5609 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5610 compilers.
5611
5612 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5613
5614 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5615 argument of val_print.
5616 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5617 to the address argument of baseclass_offset or target_read_memory.
5618 Do add it to the argument of cp_print_value_fields.
5619
5620 2003-06-21 Andrew Cagney <cagney@redhat.com>
5621
5622 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5623 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5624 instead of 0..NUM_REGS.
5625 (mips_register_reggroup_p): New function.
5626 (mips_pseudo_register_write): New function.
5627 (mips_pseudo_register_read): New function.
5628 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5629 based on the register's type.
5630 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5631 cooked.
5632 (mips_get_saved_register): Simplify. Assert that REGNO is a
5633 pseudo / cooked.
5634 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5635 (mips_register_type): Replace mips_register_virtual_type. Map
5636 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5637 when available.
5638 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5639 that the register is cooked / virtual.
5640 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5641 Only get the extra info when needed.
5642 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5643 (mips32_heuristic_proc_desc): Fetch the cooked register.
5644 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5645 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5646 (mips_print_register): Use gdbarch_register_type, instead of
5647 REGISTER_VIRTUAL_TYPE.
5648 (print_gp_register_row): Use gdbarch_register_type, instead of
5649 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5650 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5651 Print the pseudo / cooked registers.
5652 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5653 Print the pseudo / cooked registers.
5654 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5655 REG_NUM is pseudo / cooked.
5656 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5657 (mips_n32n64_xfer_return_value): Ditto.
5658 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5659 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5660 (mips_register_sim_regno): New function.
5661 (mips_gdbarch_init): Set deprecated_register_byte,
5662 register_group_p, pseudo_register_write, pseudo_register_read,
5663 register_sim_regno, and num_pseudo_regs. Set register_type,
5664 instead of register_virtual_type.
5665 * Makefile.in (mips-tdep.o): Update dependencies.
5666 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5667 REGISTER_VIRTUAL_TYPE.
5668 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5669 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5670 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5671 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5672 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5673
5674 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5675
5676 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5677 * cli/cli-cmds.c: Include "gdb_vfork.h".
5678 (shell_escape): Use vfork.
5679
5680 2003-06-21 Andrew Cagney <cagney@redhat.com>
5681
5682 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5683 32 bit floating-point register saves.
5684
5685 * frame.h (deprecated_unwind_get_saved_register): Delete.
5686 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5687 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5688 and deprecated_get_next_frame_hack instead of
5689 deprecated_unwind_get_saved_register.
5690
5691 * mips-tdep.c (mips_dump_tdep): Do not print
5692 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5693
5694 * frame.c (get_frame_register): New function.
5695 (frame_unwind_register_signed): New function.
5696 (get_frame_register_signed): New function.
5697 (frame_unwind_register_unsigned): New function.
5698 (get_frame_register_unsigned): New function.
5699 * frame.h: Add comments on naming schema.
5700 (get_frame_register, frame_unwind_register_signed): Declare.
5701 (get_frame_register_signed, get_frame_register_signed): Declare.
5702 (frame_unwind_register_unsigned): Declare.
5703 (get_frame_register_unsigned): Declare.
5704
5705 2003-06-20 Theodore A. Roth <troth@openavr.org>
5706
5707 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5708
5709 2003-06-20 Theodore A. Roth <troth@openavr.org>
5710
5711 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5712 (avr_read_sp): Ditto.
5713
5714 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5715
5716 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5717 * config/arm/nm-linux.h: Likewise.
5718 * config/arm/tm-linux.h: Likewise.
5719 * config/ia64/nm-linux.h: Likewise.
5720 * config/ia64/tm-ia64.h: Likewise.
5721 * config/s390/tm-linux.h: Likewise.
5722 * config/s390/tm-s390.h: Likewise.
5723 * s390-nat.c: Likewise.
5724 * s390-tdep.c: Likewise.
5725
5726 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5727 * config/ia64/linux.mt: Likewise.
5728 * config/m68k/linux.mh: Likewise.
5729 * config/mips/linux.mt: Likewise.
5730 * config/powerpc/linux.mh: Likewise.
5731 * config/sh/linux.mt: Likewise.
5732
5733 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5734
5735 * solib.c (solib_open): Change tests for whether to search
5736 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5737 comments.
5738
5739 2003-06-19 Theodore A. Roth <troth@openavr.org>
5740
5741 * avr-tdep.c (avr_frame_address): Delete function.
5742 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5743 set_gdbarch_frame_args_address.
5744
5745 2003-06-19 Andrew Cagney <cagney@redhat.com>
5746
5747 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5748 (REGISTER_CONVERT_FROM_TYPE): Delete.
5749 (mips_register_convert_to_type): Delete declaration.
5750 (mips_register_convert_from_type): Delete declaration.
5751 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5752 kernel/.
5753
5754 2003-06-19 Michael Snyder <msnyder@redhat.com>
5755
5756 * linux-nat.h: New file.
5757 * linux-nat.c: Include linux-nat.h.
5758 * lin-lwp.c: Include linux-nat.h.
5759 Move struct lwp_info def to linux-nat.h.
5760 * linux-proc.c: Include linux-nat.h.
5761 (linux_make_note_section): Iterate over lwps instead of threads.
5762 (linux_do_thread_registers): Use lwp instead of merged pid.
5763 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5764 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5765 Add dependency on linux_nat_h.
5766
5767 2003-06-19 Theodore A. Roth <troth@openavr.org>
5768
5769 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5770
5771 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5772
5773 * varobj.c (get_type, get_target_type): Use check_typedef.
5774
5775 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5776
5777 * breakpoint.c (insert_catchpoint): Call internal_error.
5778
5779 2003-06-19 Theodore A. Roth <troth@openavr.org>
5780
5781 * avr-tdep.c (avr_push_dummy_code): Delete function.
5782 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5783
5784 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5785
5786 * arch-utils.c (default_prepare_to_proceed): Remove.
5787 (generic_prepare_to_proceed): Remove.
5788 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5789 (generic_prepare_to_proceed): Remove prototype.
5790 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5791 * gdbarch.c: Regenerate.
5792 * gdbarch.h: Regenerate.
5793 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5794 * hppah-nat.c (hppa_switched_threads): Remove.
5795 * infrun.c (prepare_to_proceed): New static function, copied from
5796 generic_prepare_to_proceed. Remove select_it argument.
5797 (proceed): Call prepare_to_proceed.
5798 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5799 variables.
5800 (ptrace_wait): Don't set the removed variables.
5801 (hppa_switched_threads): Remove.
5802 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5803 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5804 (lin_lwp_prepare_to_proceed): Remove prototype.
5805 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5806 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5807
5808 2003-06-18 Theodore A. Roth <troth@openavr.org>
5809
5810 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5811 trad-frame.h.
5812 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5813 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5814 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5815 (AVR_PROLOGUE_*): Enumerate prologue types.
5816 (struct frame_extra_info): Remove.
5817 (struct avr_unwind_cache): Define.
5818 (avr_write_sp): Delete function.
5819 (avr_read_fp): Ditto.
5820 (avr_init_extra_frame_info): Ditto.
5821 (avr_pop_frame): Ditto.
5822 (avr_frame_saved_pc): Ditto.
5823 (avr_saved_pc_after_call): Ditto.
5824 (avr_push_return_address): Ditto.
5825 (avr_frame_chain): Ditto.
5826 (avr_store_struct_return): Ditto.
5827 (avr_push_arguments): Ditto.
5828 (avr_scan_prologue): Update comments. Changed to set up the info for
5829 cache unwinding. Now returns end of prologue PC.
5830 (avr_skip_prologue): Better handling of functions lacking a prologue
5831 by using avr_scan_prologue.
5832 (avr_scan_arg_moves): New function.
5833 (avr_saved_regs_unwinder): Ditto.
5834 (avr_frame_unwind_cache): Ditto.
5835 (avr_unwind_pc): Ditto.
5836 (avr_frame_this_id): Ditto.
5837 (avr_frame_prev_register): Ditto.
5838 (avr_frame_p): Ditto.
5839 (avr_frame_base_address ): Ditto.
5840 (avr_unwind_dummy_id): Ditto.
5841 (avr_push_dummy_code): Ditto.
5842 (push_stack_item): Ditto.
5843 (pop_stack_item): Ditto.
5844 (avr_push_dummy_call): Ditto.
5845 (struct stack_item): Define.
5846 (avr_frame_unwind): Declare structure.
5847 (avr_frame_base): Ditto.
5848 (avr_gdbarch_init): Remove calls to
5849 set_gdbarch_deprecated_init_frame_pc,
5850 set_gdbarch_deprecated_target_read_fp,
5851 set_gdbarch_deprecated_dummy_write_sp,
5852 set_gdbarch_deprecated_fp_regnum,
5853 set_gdbarch_deprecated_push_arguments,
5854 set_gdbarch_deprecated_push_return_address,
5855 set_gdbarch_deprecated_pop_frame,
5856 set_gdbarch_deprecated_store_struct_return,
5857 set_gdbarch_deprecated_frame_init_saved_regs,
5858 set_gdbarch_deprecated_init_extra_frame_info,
5859 set_gdbarch_deprecated_frame_chain,
5860 set_gdbarch_deprecated_frame_saved_pc,
5861 set_gdbarch_deprecated_saved_pc_after_call.
5862 Add calls to set_gdbarch_push_dummy_call,
5863 set_gdbarch_push_dummy_code,
5864 frame_unwind_append_predicate,
5865 frame_base_set_default,
5866 set_gdbarch_unwind_dummy_id,
5867 set_gdbarch_unwind_pc.
5868 Wrap a long line.
5869
5870 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5871
5872 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5873 registers for H8/300S.
5874 (h8300_print_registers_info): Ditto.
5875 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5876
5877 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5878
5879 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5880 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5881 (lin_lwp_wait): Likewise. Update comments.
5882 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5883 (pull_pid_from_list, linux_record_stopped_pid): New.
5884
5885 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5886
5887 * ada-lang.c (scan_discrim_bound): Name first argument.
5888 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5889 declared by ALL_BLOCK_SYMBOLS.
5890
5891 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5892
5893 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5894 ("regcache.h"): Include it.
5895 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5896
5897 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5898
5899 * NEWS: Mention gdbserver detach change and "disconnect" command.
5900 * infcmd.c (disconnect_command): New function.
5901 (_initialize_infcmd): Add ``disconnect'' command.
5902 * remote.c (remote_async_detach): Delete.
5903 (remote_detach): Merge remote_async_detach.
5904 (remote_disconnect): New.
5905 (init_remote_ops): Set to_disconnect.
5906 (init_remote_cisco_ops): Likewise.
5907 (init_remote_async_ops): Likewise. Use remote_detach.
5908 * target.c (cleanup_target): Default to_disconnect.
5909 (update_current_target): Inherit to_disconnect.
5910 (target_disconnect, debug_to_disconnect): New functions.
5911 (setup_target_debug): Set to_disconnect.
5912 * target.h (struct target_ops): Add to_disconnect.
5913 (target_disconnect): Add prototype.
5914
5915 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5916
5917 * breakpoint.c (insert_catchpoint): New function.
5918 (insert_breakpoints): Use catch_exceptions to call
5919 insert_catchpoint. Disable catchpoints if they fail to insert.
5920
5921 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5922
5923 * symfile.c (reread_symbols): Clear sym_private.
5924
5925 2003-06-17 Andrew Cagney <cagney@redhat.com>
5926
5927 * trad-frame.h (struct frame_info): Add opaque declaration.
5928 * remote-fileio.h (struct cmd_list_element): Add opaque
5929 declaration.
5930 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5931 comments.
5932
5933 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5934
5935 * remote.c (remote_prepare_to_store): Replace call to
5936 deprecated_read_register_bytes with multiple regcache_raw_read
5937 calls.
5938
5939 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5940
5941 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5942 (nto_find_and_open_solib): Likewise.
5943 (nto_init_solib_absolute_prefix): Likewise.
5944 (_initialize_nto_tdep): Fix indentation.
5945
5946 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5947
5948 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5949
5950 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5951
5952 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5953
5954 2003-06-17 Jim Blandy <jimb@redhat.com>
5955
5956 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5957
5958 2003-06-16 Theodore A. Roth <troth@openavr.org>
5959
5960 * avr-tdep.c (avr_extract_return_value): New function.
5961 (avr_gdbarch_init): Set extract_return_value method.
5962
5963 2003-06-16 Andrew Cagney <cagney@redhat.com>
5964
5965 * frame.h (deprecated_get_next_frame_hack): Declare.
5966 * frame.c (legacy_saved_regs_prev_register): Only require
5967 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5968 there are always saved regs.
5969 (deprecated_generic_get_saved_register): Do not require
5970 DEPRECATED_FRAME_INIT_SAVED_REGS.
5971 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5972 use frame ID unwind instead.
5973 (deprecated_get_next_frame_hack): New function.
5974
5975 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5976
5977 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5978 (h8300_push_dummy_call): ...this function. Some minor optimization.
5979 (h8300_push_return_address): Remove.
5980 (h8300_gdbarch_init): Remove calls to
5981 set_gdbarch_deprecated_dummy_write_sp,
5982 set_gdbarch_deprecated_push_arguments and
5983 set_gdbarch_deprecated_push_return_address.
5984 Add call to set_gdbarch_push_dummy_call.
5985
5986 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5987
5988 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5989 (E_PSEUDO_EXR_REGNUM): Ditto.
5990 (h8300_is_argument_spill): Check for instructions moving argument
5991 registers into safe registers.
5992 (h8300_skip_prologue): Check for stm instruction to push registers
5993 used for register variables onto stack.
5994 (gdb_print_insn_h8300): Remove.
5995 (h8300_examine_prologue): Add a comment.
5996 (h8300_register_name): Take pseudo registers into account.
5997 (h8300s_register_name): Ditto.
5998 (h8300sx_register_name): Ditto.
5999 (h8300_print_register): Ditto.
6000 (h8300_print_registers_info): Define "nice" printing order.
6001 (h8300_saved_pc_after_call): Take pseudo registers into account.
6002 (h8300_register_type): Ditto. Return type used for remote connection
6003 when requesting real CCR or EXR register, return actual type when
6004 requesting pseudo CCR or EXR.
6005 (h8300_pseudo_register_read): New function.
6006 (h8300_pseudo_register_write): Ditto.
6007 (h8300_dbg_reg_to_regnum): Ditto.
6008 (h8300s_dbg_reg_to_regnum): Ditto.
6009 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6010 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6011 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6012 set_gdbarch_print_insn architecture dependent.
6013 Call set_gdbarch_pseudo_register_read and
6014 set_gdbarch_pseudo_register_write.
6015 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6016
6017 2003-06-16 Andrew Cagney <cagney@redhat.com>
6018
6019 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6020 * gdbarch.h, gdbarch.c: Re-generate.
6021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6022 * s390-tdep.c (s390_gdbarch_init): Update.
6023 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6024 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6025 * mips-tdep.c (mips_gdbarch_init): Update.
6026 * mcore-tdep.c (mcore_gdbarch_init): Update.
6027 * cris-tdep.c (cris_gdbarch_init): Update.
6028 * infcall.c (call_function_by_hand): Update.
6029 * ia64-tdep.c (ia64_push_arguments): Update comment.
6030 * frame.c (legacy_get_prev_frame): Do not assume
6031 SAVE_DUMMY_FRAME_TOS_P.
6032 * dummy-frame.c (find_dummy_frame): Update comment.
6033
6034 2003-06-16 Andrew Cagney <cagney@redhat.com>
6035
6036 * regcache.c (do_cooked_read): Do not use register_valid_p.
6037
6038 2003-06-15 Theodore A. Roth <troth@openavr.org>
6039
6040 * avr-tdep.c (avr_register_type): Remove a blank line.
6041 (avr_scan_prologue): Correct some comments.
6042
6043 2003-06-15 Theodore A. Roth <troth@openavr.org>
6044
6045 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6046 prologue types.
6047 Properly scan prologues generated by gcc with the -mcall-prologues
6048 option.
6049 Add code to scan -mcall-prologues for mega devices.
6050
6051 2003-06-15 Theodore A. Roth <troth@openavr.org>
6052
6053 * avr-tdep.c (avr_register_byte): Delete function.
6054 (avr_register_raw_size): Delete function.
6055 (avr_register_virtual_size): Delete function.
6056 (avr_register_virtual_type): Delete function.
6057 (avr_register_type): New function.
6058 (avr_address_to_pointer): Remove unused code.
6059 (avr_read_fp): Need to read FP as two separate bytes due to change to
6060 avr_register_type() usage.
6061 (avr_gdbarch_init): Don't set deprecated_register_size.
6062 Don't set deprecated_register_bytes.
6063 Don't set deprecated_register_byte.
6064 Don't set deprecated_register_raw_size.
6065 Don't set deprecated_max_register_raw_size.
6066 Don't set deprecated_register_virtual_size.
6067 Don't set deprecated_max_register_virtual_size.
6068 Don't set deprecated_register_virtual_type.
6069 Set register_type method.
6070
6071 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6072
6073 * Makefile.in (linux-nat.o): Add rule.
6074 * linux-nat.c: New file.
6075 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6076 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6077 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6078 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6079 * config/arm/linux.mh (NATDEPFILES): Likewise.
6080 * config/i386/linux.mh (NATDEPFILES): Likewise.
6081 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6082 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6083 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6084 * config/mips/linux.mh (NATDEPFILES): Likewise.
6085 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6086 * config/s390/s390.mh (NATDEPFILES): Likewise.
6087 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6088
6089 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6090
6091 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6092 replace out-of-date comment.
6093
6094 2003-06-15 Andrew Cagney <cagney@redhat.com>
6095
6096 * rdi-share/host.h (Fail): Change to a varargs function.
6097 * remote-rdi.c (Fail): Update.
6098
6099 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6100
6101 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6102 (i386_convert_register_p, i386_register_to_value,
6103 i386_register_from_value): Handle types longer than 8 bytes.
6104
6105 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6106
6107 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6108 Move floating-point code to new function in i387-tdep.c.
6109 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6110 New functions containing code moved here from i386-tdep.c.
6111 * i387-tdep.h: Add opaque declaration for `struct type'.
6112 (i387_register_to_value, i387_value_to_register): New prototypes.
6113 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6114 (x86_64_init_abi): Set convert_register_p, register_to_value and
6115 value_to_register here.
6116
6117 2003-06-14 Andrew Cagney <cagney@redhat.com>
6118
6119 * mips-tdep.c (mips_register_to_value): Make static.
6120 (mips_value_to_register): Make static.
6121 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6122 * ia64-tdep.c (ia64_register_raw_size): Make static.
6123 (ia64_register_virtual_size): Make static.
6124 (ia64_register_byte): Make static.
6125 * i387-tdep.c: Include "i387-tdep.h".
6126 (print_387_control_word): Delete function.
6127 (print_387_status_word): Delete function.
6128 (print_387_status_bits): Delete function.
6129 (print_387_control_bits): Delete function.
6130 * Makefile.in (i387-tdep.o): Update dependencies.
6131 * rdi-share/host.h (Fail): Declare.
6132 * remote-rdi.c (Fail): Update to match declaration.
6133
6134 2003-06-14 Andrew Cagney <cagney@redhat.com>
6135
6136 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6137 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6138 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6139 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6140 * README: Delete reference to remote-array.
6141 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6142 (remote-array.o): Delete target.
6143 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6144 * remote-array.c: Delete file.
6145
6146 2003-06-14 Andrew Cagney <cagney@redhat.com>
6147 Mark Kettenis <kettenis@gnu.org>
6148
6149 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6150 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6151 parameter with "frame".
6152 * gdbarch.h, gdbarch.c: Re-generate.
6153 * frame.h (put_frame_register): Declare.
6154 * frame.c (put_frame_register): New function.
6155 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6156 (legacy_register_to_value): Rewrite, use "frame" to get the
6157 register value.
6158 (legacy_value_to_register): Rewrite, use "frame" to find the
6159 register's location before storing.
6160 * arch-utils.h (legacy_convert_register_p): Update.
6161 (legacy_register_to_value, legacy_value_to_register): Update.
6162 * findvar.c (value_from_register): Rewrite, eliminate use of
6163 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6164 "frame" to REGISTER_TO_VALUE.
6165 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6166 lval_reg_frame_relative + lval_register branch of the switch. Do
6167 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6168 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6169 I386_EDI_REGNUM): New defines.
6170 (i386_next_regnum, i386_convert_register_p,
6171 i386_register_to_value, i386_value_to_register): New functions.
6172 (i386_register_convertible, i386_register_convert_to_virtual,
6173 i386_convert_to_raw): Remove functions.
6174 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6175 value_to_register instead of register_convertible,
6176 register_convert_to_virtual and register_convert_to_raw.
6177 * mips-tdep.c (mips_convert_register_p): New function.
6178 (mips_value_to_register): Replace mips_register_convert_from_type.
6179 (mips_register_to_value): Replace mips_register_convert_to_type.
6180 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6181 register_to_value.
6182 * alpha-tdep.c (alpha_convert_register_p): Update.
6183 (alpha_value_to_register): Update, store the register.
6184 (alpha_register_to_value): Update, fetch the register.
6185
6186 2003-06-14 Theodore A. Roth <troth@openavr.org>
6187
6188 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6189 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6190 Don't set deprecated_call_dummy_words.
6191 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6192 Don't set remote_translate_xfer_address.
6193 (avr_io_reg_read_command): Remove commented out debug printf.
6194 Wrap a long line.
6195
6196 2003-06-14 Theodore A. Roth <troth@openavr.org>
6197
6198 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6199 causes gdb to seg fault.
6200
6201 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6202
6203 * sparc-nat.c (fetch_inferior_registers): Correct
6204 a reference to "registers".
6205
6206 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6207
6208 * Makefile.in (exc_request_U_h): Define
6209 (exc_request_S_h): Likewise.
6210 (msg_reply_S_h): Likewise.
6211 (msg_U_h): Likewise.
6212 (notify_S_h): Likewise.
6213 (process_reply_S_h): Likewise.
6214 (gnu-nat.o): Depend on gdb_obstack_h
6215 * gnu-nat.c: Include "gdb_obstack.h".
6216
6217 2003-06-13 Andrew Cagney <cagney@redhat.com>
6218
6219 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6220 * gdbarch.h, gdbarch.c: Re-generate.
6221
6222 2003-06-13 Andrew Cagney <cagney@redhat.com>
6223
6224 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6225 when deprecated REGISTER macros can be deleted.
6226 * gdbarch.h, gdbarch.c: Re-generate.
6227
6228 2003-06-13 Jim Blandy <jimb@redhat.com>
6229
6230 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6231 Linux entry point symbols for _dl_debug_state, too.
6232
6233 2003-06-13 Andrew Cagney <cagney@redhat.com>
6234
6235 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6236 available, do not use the FP register, and always save the TOS.
6237 * dummy-frame.c (dummy_frame_this_id): Do not assert
6238 SAVE_DUMMY_FRAME_TOS.
6239 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6240 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6241 (i386_push_dummy_call): Add 8 to the returned SP.
6242 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6243 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6244 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6245 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6246 (x86_64_push_dummy_call): Return "sp + 16".
6247 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6248 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6249 save_dummy_frame_tos.
6250
6251 2003-06-13 Jim Blandy <jimb@redhat.com>
6252
6253 * frv-tdep.c (frv_use_struct_convention): Delete static
6254 declaration for function deleted in my change of 2003-06-12.
6255
6256 2003-06-13 Theodore A. Roth <troth@openavr.org>
6257
6258 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6259 (avr_pointer_to_address): Shift code addrs left 1 bit.
6260 (avr_convert_from_func_ptr_addr): Delete function since operation is
6261 better handled by avr_address_to_pointer and avr_pointer_to_address.
6262 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6263
6264 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6265
6266 From Kelley Cook <kelleycook@wideopenwest.com>:
6267 * configure.host: Accept i[34567]86 variants.
6268 * configure.tgt: Likewise.
6269 * nlm/configure.in: Likewise.
6270 * nlm/configure: Regenerated.
6271
6272 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6273
6274 * arm-tdep.c (solib-svr4.h): Dont' include it.
6275 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6276 * arm-linux-tdep.c: ... here. Make static.
6277 (arm_linux_init_abi): Register it.
6278 (solib-svr4.h): Include it.
6279 * Makefile.in: Update dependencies.
6280 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6281 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6282
6283 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6284
6285 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6286 indicate registers used for return values.
6287 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6288 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6289 members.
6290 (h8300_init_extra_frame_info): Ditto.
6291 (h8300_frame_locals_address): Removed.
6292 (h8300_frame_args_address): Removed.
6293 (h8300_extract_return_value): Use new regcache structure. Only care
6294 for 16 bit CPUs.
6295 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6296 (h8300_store_return_value): Use new regcache structure. Only care
6297 for 16 bit CPUs.
6298 (h8300h_store_return_value): Same function for 32 bit CPUs.
6299 (h8300_store_struct_return): Removed.
6300 (h8300_extract_struct_value_address): Use new regcache structure.
6301 (h8300h_extract_struct_value_address): Removed.
6302 (h8300_push_dummy_code): New function.
6303 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6304 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6305 set_gdbarch_store_return_value architecture dependent.
6306 Call set_gdbarch_push_dummy_code and
6307 set_gdbarch_extract_struct_value_address.
6308 Remove calls to set_gdbarch_frame_args_address,
6309 set_gdbarch_frame_locals_address,
6310 set_gdbarch_deprecated_store_struct_return,
6311 set_gdbarch_deprecated_extract_return_value,
6312 set_gdbarch_deprecated_extract_struct_value_address,
6313 set_gdbarch_deprecated_call_dummy_words and
6314 set_gdbarch_deprecated_sizeof_call_dummy_words.
6315
6316 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6317
6318 * h8300-tdep.c (h8300_register_byte): Remove.
6319 (h8300h_register_byte): Remove.
6320 (h8300_register_virtual_type): Remove. Substitute by...
6321 (h8300_register_type): New function.
6322 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6323 (h8300h_extract_struct_value_address): Ditto.
6324 (h8300_gdbarch_init): Drop calls to
6325 set_gdbarch_deprecated_register_byte and
6326 set_gdbarch_deprecated_register_virtual_type.
6327 Add call to set_gdbarch_register_type.
6328
6329 2003-06-13 Andrew Cagney <cagney@redhat.com>
6330
6331 * gdbarch.sh: Update comments on registers.
6332 (deprecated_register_byte): Rename register_byte.
6333 (deprecated_register_raw_size): Rename register_raw_size.
6334 (deprecated_register_virtual_size): Rename register_virtual_size.
6335 (deprecated_register_virtual_type): Rename register_virtual_type.
6336 * gdbarch.h, gdbarch.c: Re-generate.
6337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6338 * vax-tdep.c (vax_gdbarch_init): Update.
6339 * v850-tdep.c (v850_gdbarch_init): Update.
6340 * sparc-tdep.c (sparc_gdbarch_init): Update.
6341 * sh-tdep.c (sh_gdbarch_init): Update.
6342 * s390-tdep.c (s390_gdbarch_init): Update.
6343 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6344 * ns32k-tdep.c: Update.
6345 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6346 * mips-tdep.c (mips_gdbarch_init): Update.
6347 * mcore-tdep.c (mcore_gdbarch_init): Update.
6348 * m68k-tdep.c (m68k_gdbarch_init): Update.
6349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6350 * ia64-tdep.c (ia64_gdbarch_init): Update.
6351 * hppa-tdep.c (hppa_gdbarch_init): Update.
6352 * h8300-tdep.c (h8300_gdbarch_init): Update.
6353 * frv-tdep.c (frv_gdbarch_init): Update.
6354 * cris-tdep.c (cris_gdbarch_init): Update.
6355 * avr-tdep.c (avr_gdbarch_init): Update.
6356 * alpha-tdep.c (alpha_gdbarch_init): Update.
6357 * arm-tdep.c (arm_gdbarch_init): Update.
6358
6359 2003-06-13 Andrew Cagney <cagney@redhat.com>
6360
6361 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6362 mips_o32_use_struct_convention with always_use_struct_convention.
6363
6364 2003-06-12 David Carlton <carlton@kealia.com>
6365
6366 * cp-namespace.c (cp_set_block_scope): Comment out
6367 processing_has_namespace_info branch.
6368
6369 2003-06-12 Jim Blandy <jimb@redhat.com>
6370
6371 Recognize and skip 64-bit PowerPC Linux linkage functions.
6372 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6373 insn_pattern, insns_match_pattern, d_field, ds_field): New
6374 functions, macros, and types for working with PPC instructions.
6375 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6376 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6377 ppc64_skip_trampoline_code): New functions, variables, and macros
6378 for recognizing and skipping linkage functions.
6379 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6380 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6381
6382 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6383 register offsets for both the 32- and 64-bit interfaces.
6384
6385 Actually finish the job started by my change of 2003-05-29.
6386 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6387 other #definition of this.
6388 (ppc_linux_skip_trampoline_code): Remove declaration.
6389 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6390 static.
6391 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6392 method for GDBARCH.
6393
6394 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6395 'long' on ppc64-*-linux*.
6396
6397 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6398 isn't #defined, assume the register doesn't exist: act as if
6399 tdep->ppc_mq_regnum were -1.
6400
6401 * configure.host, configure.tgt: Add entries for
6402 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6403 powerpc/linux.mt.
6404 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6405 New files.
6406
6407 * arch-utils.c (always_use_struct_convention): New function.
6408 * arch-utils.h (always_use_struct_convention): New prototype.
6409 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6410 (alpha_gdbarch_init): Register always_use_struct_convention,
6411 instead of alpha_use_struct_convention.
6412 * cris-tdep.c (cris_use_struct_convention): Delete.
6413 (cris_gdbarch_init): Register always_use_struct_convention,
6414 instead of cris_use_struct_convention.
6415 * frv-tdep.c (frv_use_struct_convention): Delete.
6416 (frv_gdbarch_init): Register always_use_struct_convention,
6417 instead of frv_use_struct_convention.
6418 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6419 (h8300_gdbarch_init): Register always_use_struct_convention,
6420 instead of h8300_use_struct_convention.
6421 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6422 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6423 instead of mips_o32_use_struct_convention.
6424
6425 2003-06-12 Andrew Cagney <cagney@redhat.com>
6426
6427 * wince.c: Include "mips-tdep.h".
6428 * mips-tdep.h (mips_next_pc): Declare.
6429 * mcore-tdep.c: Make more local functions static.
6430 * Makefile.in (wince.o): Update dependencies.
6431
6432 2003-06-12 David Carlton <carlton@kealia.com>
6433
6434 * symtab.c (lookup_symbol_aux_minsyms): Replace
6435 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6436 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6437 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6438 SYMBOL_NATURAL_NAME.
6439
6440 2003-06-12 Andreas Schwab <schwab@suse.de>
6441
6442 * Makefile.in (tuiDisassem.o): Update dependencies.
6443
6444 2003-06-12 David Carlton <carlton@bactrian.org>
6445
6446 * symtab.h: Delete declaration of make_symbol_overload_list.
6447 Add declaration of lookup_partial_symbol.
6448 * symtab.c (remove_params): Move to cp-support.c.
6449 (overload_list_add_symbol, make_symbol_overload_list)
6450 (sym_return_val_size, sym_return_val_index): Ditto.
6451 (lookup_partial_symbol): Make extern.
6452 * cp-support.h: Add declaration of make_symbol_overload_list.
6453 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6454 symtab.h, and block.h.
6455 (remove_params): Move here from symtab.c.
6456 (overload_list_add_symbol, make_symbol_overload_list)
6457 (sym_return_val_size, sym_return_val_index): Ditto.
6458 * valops.c: Include cp-support.h.
6459 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6460 frame_h, and block_h.
6461 (valops.o): Depend on cp_support_h.
6462
6463 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6464
6465 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6466 substitute by NUM_REGS throughout.
6467 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6468 (h8300s_register_name): New function for H8S registers.
6469 (h8300sx_register_name): Ditto for H8SX registers.
6470 (h8300_print_register): Revise register printing, avoid depending
6471 on 32 bit long.
6472 (h8300_register_byte): Only care for H8/300 registers.
6473 (h8300h_register_byte): New function for any other architecture.
6474 (h8300_register_raw_size): Remove.
6475 (h8300_register_virtual_type): Revise to return actually useful
6476 type.
6477 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6478 (h8300h_extract_struct_value_address): New function for any other
6479 architecture.
6480 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6481 set_gdbarch_register_name, set_gdbarch_register_byte,
6482 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6483 Remove calls to set_gdbarch_deprecated_register_size,
6484 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6485 set_gdbarch_deprecated_max_register_raw_size,
6486 set_gdbarch_register_virtual_size and
6487 set_gdbarch_deprecated_max_register_virtual_size entirely.
6488 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6489 set_gdbarch_long_double_bit.
6490
6491 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6492
6493 * doublest.c (convert_doublest_to_floatformat): When dealing
6494 with the implied integer bit, only alter mant_bits if we are
6495 processing a full 32 bits of mantissa.
6496
6497 2003-06-11 David Carlton <carlton@bactrian.org>
6498
6499 * dictionary.h: New.
6500 * dictionary.c: New.
6501 * block.h: Add opaque declaration for struct dictionary.
6502 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6503 'sym' members.
6504 (BLOCK_DICT): New macro.
6505 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6506 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6507 BLOCK_SHOULD_SORT.
6508 (ALL_BLOCK_SYMBOLS): Update definition.
6509 * Makefile.in (SFILES): Add dictionary.c.
6510 (dictionary_h): New.
6511 (COMMON_OBS): Add dictionary.o.
6512 (dictionary.o): New.
6513 (ada-lang.o): Depend on dictionary_h.
6514 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6515 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6516 (mi-cmd-stack.o): Ditto.
6517 (gdbtk-cmds.o): Update dependencies.
6518 (gdbtk-stack.o): Ditto.
6519 * ada-lang.c: Include dictionary.h.
6520 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6521 (fill_in_ada_prototype, debug_print_block): Ditto.
6522 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6523 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6524 'is_sorted'.
6525 * mdebugread.c: Include dictionary.h.
6526 (struct parse_stack): Delete 'maxsyms' member.
6527 (parse_symbol): Update calls to new_block. Delete calls to
6528 shrink_block. Use dictionary methods.
6529 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6530 Update calls to new_symtab. Don't maintain maxsyms data.
6531 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6532 (add_symbol): Just call dict_add_symbol.
6533 (new_symtab): Delete 'maxsyms' argument.
6534 (new_symtab): Update calls to new_block.
6535 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6536 (shrink_block): Delete function.
6537 (fixup_sigtramp): Update call to new_block. Add symbol via
6538 dict_add_symbol.
6539 * jv-lang.c: Include dictionary.h.
6540 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6541 appropriately. Set class_symtab->free_func. Make sure the
6542 blockvector is big enough to hold two blocks.
6543 (add_class_symtab_symbol): Use dictionary methods.
6544 (free_class_block): New function.
6545 (type_from_class): Replace explicit iteration by
6546 ALL_BLOCK_SYMBOLS.
6547 * symtab.h (struct symtab): Replace 'free_ptr' method by
6548 'free_func'.
6549 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6550 sort_symtab_syms.
6551 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6552 sort_symtab_syms.
6553 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6554 Include dictionary.h.
6555 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6556 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6557 sort_symtab_syms.
6558 * objfiles.c: Include dictionary.h.
6559 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6560 * buildsym.c: Include dictionary.h.
6561 (finish_block): Use dictionary methods.
6562 (end_symtab): Set free_func to NULL, not free_ptr.
6563 * tracepoint.c: Include dictionary.h.
6564 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6565 (scope_info): Ditto.
6566 * stack.c: Include dictionary.h.
6567 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6568 (print_block_frame_labels, print_frame_arg_vars)
6569 (print_frame_args): Ditto.
6570 * symmisc.c (free_symtab_block): Use dictionary methods.
6571 (dump_symtab): Ditto.
6572 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6573 Include dictionary.h.
6574 * symfile.h: Delete declarations of sort_block_syms,
6575 sort_symtab_syms.
6576 * symfile.c (sort_block_syms): Delete.
6577 (sort_symtab_syms): Delete.
6578 * symtab.c: Include dictionary.h.
6579 (lookup_block_symbol): Use dictionary iterators.
6580 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6581 (search_symbols, make_symbol_completion_list): Ditto.
6582 (make_symbol_overload_list): Ditto.
6583 * valops.c (value_of_local): Use dict_empty.
6584 Include dictionary.h.
6585
6586 2003-06-11 J. Brobecker <brobecker@gnat.com>
6587
6588 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6589
6590 2003-06-11 David Carlton <carlton@bactrian.org>
6591
6592 * block.h (BLOCK_SHOULD_SORT): Delete.
6593 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6594 blocks.
6595 * ada-lang.c (ada_add_block_symbols): Ditto.
6596 * symfile.c (sort_block_syms): Delete.
6597 (sort_symtab_syms): Ditto.
6598 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6599 declarations.
6600 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6601 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6602 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6603 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6604 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6605 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6606 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6607
6608 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6609
6610 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6611 bits to 128.
6612
6613 2003-06-11 Andrew Cagney <cagney@redhat.com>
6614
6615 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6616 REGISTER_CONVERTIBLE.
6617 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6618 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6619 * gdbarch.h, gdbarch.c: Re-generate.
6620 * arch-utils.h (deprecated_register_convertible_not): Rename
6621 generic_register_convertible_not.
6622 * arch-utils.c (deprecated_register_convertible_not): Rename
6623 generic_register_convertible.
6624 (legacy_convert_register_p, legacy_register_to_value): Update.
6625 * sh-tdep.c (sh64_push_arguments): Update.
6626 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6627 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6628 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6629 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6630 * arch-utils.c (legacy_value_to_register): Update.
6631 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6632 (rs6000_register_convert_to_raw): Make parameter "from" const.
6633 * mips-tdep.c (mips_gdbarch_init): Update.
6634 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6635 * infcmd.c (default_print_registers_info): Update.
6636 * ia64-tdep.c (ia64_gdbarch_init): Update.
6637 (ia64_register_convert_to_raw): Make parameter "from" const.
6638 * i386-tdep.c (i386_gdbarch_init): Update.
6639 (i386_register_convert_to_raw): Update.
6640
6641 2003-06-11 Andrew Cagney <cagney@redhat.com>
6642
6643 * remote-fileio.c: Include "remote-fileio.h".
6644 * Makefile.in (remote-fileio.o): Update dependencies.
6645 (remote_fileio_h): Fix typo.
6646
6647 2003-06-11 Andrew Cagney <cagney@redhat.com>
6648
6649 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6650 (xstormy16_save_dummy_frame_tos): Make static.
6651 (_initialize_xstormy16_tdep): Add declaration.
6652 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6653 * v850-tdep.c: Make local functions static.
6654 (_initialize_v850_tdep): Add declaration.
6655 * sparc-tdep.c: Make local functions static.
6656 (_initialize_sparc_tdep): Add declaration.
6657 * sh-tdep.c: Make local functions static.
6658 (_initialize_sh_tdep): Add declaration.
6659 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6660 * s390-tdep.c: Make local functions static.
6661 (_initialize_s390_tdep): Add declaration.
6662 * dbxread.c (find_stab_function_addr): Make static.
6663 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6664 * ocd.c (_initialize_remote_ocd): Add declaration.
6665 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6666 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6667 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6668 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6669 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6670 * remote-array.c (_initialize_array): Add declaration.
6671 (_initialize_remote_monitors): Add declaration.
6672 * remote-mips.c: Make local functions static.
6673 (_initialize_remote_mips): Add declaration.
6674 * mcore-tdep.c: Make all local functions static.
6675 (_initialize_mcore_tdep): Add declaration.
6676 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6677 * abug-rom.c (_initialize_abug_rom): Add declaration.
6678 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6679 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6680 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6681 * remote-est.c (_initialize_est): Add declaration.
6682 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6683 (m68hc11_call_dummy_address): Make static.
6684 * ia64-tdep.c: Make local functions static.
6685 (_initialize_ia64_tdep): Add declaration.
6686 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6687 * monitor.c (monitor_wait_filter): Make static.
6688 (_initialize_remote_monitors): Add declaration.
6689 * remote-hms.c (_initialize_remote_hms): Add declaration.
6690 * remote-e7000.c (fetch_regs_from_dump): Make static.
6691 (expect_n): Make static.
6692 (_initialize_remote_e7000): Add declaration.
6693 * ser-e7kpc.c: Always include "defs.h".
6694 (_initialize_ser_e7000pc): Add declaration.
6695 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6696 * cris-tdep.c: Make all but one function static.
6697 (_initialize_cris_tdep): Add declaration.
6698 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6699 * solib.c (update_solib_list): Make static.
6700 (_initialize_solib): Add declaration.
6701 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6702 (_initialize_avr_tdep): Add declaration.
6703 * remote-rdi.c (voiddummy): Make static.
6704 (_initialize_remote_rdi): Add declaration.
6705 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6706 * remote-rdp.c (send_rdp): Make static.
6707 (_initialize_remote_rdp): Add declaration.
6708 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6709
6710 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6711
6712 * remote-fileio.c: Make ari happy.
6713
6714 2003-06-10 J. Brobecker <brobecker@gnat.com>
6715
6716 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6717 fetching the trailing bytes of the buffer we are about to write.
6718
6719 2003-06-10 Andrew Cagney <cagney@redhat.com>
6720
6721 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6722 * Makefile.in (remote-fileio.o): Update dependencies.
6723 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6724 include <setjmp.h>, or <sys/types.h> conditional on USG.
6725 (remote_fio_jmp_buf): Delete global variable.
6726
6727 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6728 Martin M. Hunt <hunt@redhat.com>
6729
6730 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6731 (SFILES): Add remote-fileio.c.
6732 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6733 dependencies for building remote.o.
6734 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6735 * remote-fileio.h: New header file defining remote File-I/O interface.
6736 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6737 static storage class.
6738 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6739 'F' packet.
6740 (_initialize_remote): Call initialize_remote_fileio().
6741 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6742 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6743 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6744 (captured_main): Initialize new ui_files.
6745 * ui-file.c: Add read and fgets input functions.
6746 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6747 (null_file_read): New function.
6748 (ui_file_read): New function.
6749 (set_ui_file_read): New function.
6750 (stdio_file_read): New function.
6751 * ui-file.h: New type ui_file_read_ftype.
6752 (set_ui_file_read): Declare.
6753 (ui_file_read): Declare.
6754
6755 2003-06-09 Andrew Cagney <cagney@redhat.com>
6756
6757 * frame.h (deprecated_unwind_get_saved_register): Rename
6758 generic_unwind_get_saved_register, update comments.
6759 * mips-tdep.c (mips_get_saved_register): Update.
6760 * frame.c (deprecated_unwind_get_saved_register): Update.
6761
6762 2003-06-09 Andrew Cagney <cagney@redhat.com>
6763
6764 * vax-tdep.c (vax_frame_locals_address): Delete function.
6765 (vax_gdbarch_init): Do not set frame_locals_address.
6766 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6767 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6768 * s390-tdep.c (s390_frame_args_address): Delete function.
6769 (s390_gdbarch_init): Do not set frame_args_address or
6770 frame_locals_address.
6771 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6772 (ns32k_gdbarch_init): Do not set frame_locals_address.
6773 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6774 (hppa_frame_locals_address): Delete function.
6775 (hppa_gdbarch_init): Do not set frame_args_address, or
6776 frame_locals_address.
6777 * arm-tdep.c (arm_frame_args_address): Delete.
6778 (arm_frame_locals_address): Delete.
6779 (arm_gdbarch_init): Do not set frame_args_address, or
6780 frame_locals_address.
6781
6782 2003-06-09 Andrew Cagney <cagney@redhat.com>
6783
6784 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6785 * gdbarch.h, gdbarch.c: Re-generate.
6786 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6787 * arch-utils.c (frame_num_args_unknown): Delete function.
6788 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6789 (frame_info): Use FRAME_NUM_ARGS_P.
6790 * arm-tdep.c (arm_frame_num_args): Delete function.
6791 (arm_gdbarch_init): Do not set frame_num_args.
6792 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6793 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6794 (hppa_gdbarch_init): Do not set frame_num_args.
6795 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6797 frame_num_args to default frame_num_args_unknown.
6798 * v850-tdep.c (v850_gdbarch_init): Ditto.
6799 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6800 * sh-tdep.c (sh_gdbarch_init): Ditto.
6801 * s390-tdep.c (s390_gdbarch_init): Ditto.
6802 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6803 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6804 * mips-tdep.c (mips_gdbarch_init): Ditto.
6805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6806 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6809 * i386-tdep.c (i386_gdbarch_init): Ditto.
6810 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6811 * frv-tdep.c (frv_gdbarch_init): Ditto.
6812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6813 * cris-tdep.c (cris_gdbarch_init): Ditto.
6814 * avr-tdep.c (avr_gdbarch_init): Ditto.
6815 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6816
6817 2003-06-09 Andrew Cagney <cagney@redhat.com>
6818
6819 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6820 (print_frame_args): Moved to "stack.c".
6821 * stack.c: Include "gdb_assert.h".
6822 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6823 (print_frame_args): Moved from "printcmd.c".
6824 * frame.h (print_frame_args): Delete declaration.
6825 * Makefile.in (stack.o): Update dependencies.
6826
6827 2003-06-08 Andrew Cagney <cagney@redhat.com>
6828
6829 * frame.c (get_prev_frame): Remove reference to
6830 frame_args_address_correct in comments.
6831 * frame-base.c (default_frame_args_address): Delete code
6832 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6833 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6834 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6835 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6836 (vax_frame_args_address_correct): Delete declaration.
6837
6838 2003-06-08 Andrew Cagney <cagney@redhat.com>
6839
6840 * gdbarch.sh (UNWIND_SP): Add.
6841 * gdbarch.h, gdbarch.c: Re-generate.
6842 * frame.c (frame_sp_unwind): New function.
6843 (get_frame_sp): New function.
6844 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6845 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6846 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6847 value.
6848 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6849 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6850
6851 2003-06-08 Andrew Cagney <cagney@redhat.com>
6852
6853 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6854 REMOTE_BREAKPOINT.
6855 * remote.c: Update.
6856 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6857 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6858 * config/m68k/tm-sun3.h: Update.
6859 * config/m68k/tm-m68klynx.h: Update.
6860 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6861
6862 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6863 trad_frame". Update comments.
6864 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6865 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6866 (trad_frame_register_value, trad_frame_prev_register): Update.
6867
6868 2003-06-08 Andrew Cagney <cagney@redhat.com>
6869
6870 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6871 from GCC's acinclude.m4.
6872 * configure.in: Check for getopt's delcaration.
6873 * aclocal.m4, config.in, configure: Re-generate.
6874 * main.c (error_init): Delete declaration.
6875 * defs.h (error_init): Declare.
6876 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6877 (rs6000_convert_from_func_ptr_addr): Make static.
6878 (_initialize_rs6000_tdep): Add declaration.
6879 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6880 (show_commands, set_verbose, show_history): Delete declaration.
6881 * top.h (set_verbose): Add declaration.
6882 (show_history, set_history, show_commands): Add declaration.
6883 (do_restore_instream_cleanup): Add declaration.
6884 * objc-lang.c (specialcmp): Make static.
6885 (print_object_command): Make static.
6886 (find_objc_msgsend): Make static.
6887 (find_objc_msgcall_submethod_helper): Make static.
6888 (find_objc_msgcall_submethod): Make static.
6889 (_initialize_objc_language): Add declaration.
6890 (find_implementation_from_class): Make static.
6891 (find_implementation): Make static.
6892 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6893 * objc-lang.h (lookup_struct_typedef): Add declaration.
6894 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6895 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6896 (do_restore_user_call_depth): Make static.
6897 (do_restore_instream_cleanup): Delete declaration.
6898 (dont_repeat): Delete declaration.
6899 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6900 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6901 * reggroups.c (_initialize_reggroup): Add declaration.
6902 * cp-support.c (_initialize_cp_support): Add declaration.
6903 * cp-abi.c (_initialize_cp_abi): Add declaration.
6904 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6905 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6906 (_initialize_gnu_v3_abi): Add declaration.
6907 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6908 (_initialize_gnu_v2_abi): Add declaration.
6909 * frame-base.c (_initialize_frame_base): Add declaration.
6910 * doublest.c (floatformat_from_length): Make static.
6911 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6912 * frame.c (create_sentinel_frame): Make static.
6913 (_initialize_frame): Add declaration.
6914 * top.c (do_catch_errors): Make static.
6915 (gdb_rl_operate_and_get_next_completion): Make static.
6916 * typeprint.c: Include "typeprint.h".
6917 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6918 (sentinel_frame_this_id): Make static.
6919 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6920 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6921 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6922 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6923 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6924 * maint.c (maintenance_print_architecture): Make static.
6925 * signals/signals.c (_initialize_signals): Add declaration.
6926 * std-regs.c (_initialize_frame_reg): Add declaration.
6927 * jv-exp.y (push_variable): ISO C definition.
6928 (push_qualified_expression_name): Ditto.
6929 * memattr.c (_initialize_mem): Add declaration.
6930 * remote.c (remote_check_watch_resources): Make static.
6931 (remote_stopped_by_watchpoint): Make static.
6932 (remote_stopped_data_address): Make static.
6933 * d10v-tdep.c (nr_dmap_regs): Make static.
6934 (a0_regnum): Make static.
6935 (d10v_frame_unwind_cache): Make static.
6936 (d10v_frame_p): Make static.
6937 * osabi.c (show_osabi): Make static.
6938 (_initialize_gdb_osabi): Add extern declaration.
6939 * gdbtypes.c (make_qualified_type): Make static.
6940 (safe_parse_type): Make static.
6941 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6942 * macrotab.c (macro_bcache_free): Make static.
6943 * interps.c (interp_set_quiet): Make static.
6944 (interpreter_exec_cmd): Make static.
6945 * stack.h (select_frame_command): New file.
6946 * stack.c: Include "stack.h".
6947 (select_frame_command_wrapper): Delete function.
6948 (select_frame_command): Make global.
6949 * infcall.c: Include "infcall.h".
6950 * linespec.c: Include "linespec.h".
6951 * symfile.c (sections_overlap): Make static.
6952 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6953 * charset.c (_initialize_charset): Add missing prototype.
6954 * regcache.c (init_legacy_regcache_descr): Make static.
6955 (do_regcache_xfree): Make static.
6956 (regcache_xfer_part): Make static.
6957 (_initialize_regcache): Add missing prototype.
6958 * breakpoint.c (parse_breakpoint_sals): Make static.
6959 (breakpoint_sals_to_pc): Make static.
6960 * interps.h (clear_interpreter_hooks): ISO C declaration.
6961 * Makefile.in (stack_h): Define.
6962 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6963 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6964
6965 2003-06-08 Andrew Cagney <cagney@redhat.com>
6966
6967 * Makefile.in (d10v-tdep.o): Update dependencies.
6968 (SFILES): Add trad-frame.c.
6969 (trad_frame_h): Define.
6970 (COMMON_OBS): Add trad-frame.o.
6971 (trad-frame.o): Specify dependencies.
6972 * d10v-tdep.c: Include "trad-frame.h".
6973 (saved_regs_unwinder): Delete function.
6974 (d10v_frame_prev_register): Use trad_frame_prev_register.
6975 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6976 trad_frame", delete "regs" and "prev_sp".
6977 (prologue_find_regs): Use trad-frame.
6978 * trad-frame.h, trad-frame.c: New files.
6979
6980 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6981
6982 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6983
6984 2003-06-07 Adam Fedor <fedor@gnu.org>
6985
6986 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6987 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6988 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6989 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6990 resolve_msgsend_super, resolve_msgsend_super_stret):
6991 Use it.
6992
6993 2003-06-07 Andrew Cagney <cagney@redhat.com>
6994
6995 * symfile.h: Re-indent, clean up comments.
6996
6997 2003-06-07 Andrew Cagney <cagney@redhat.com>
6998
6999 * inferior.h (deprecated_write_sp): Replace
7000 generic_target_write_sp.
7001 * regcache.c (deprecated_write_sp): Replace
7002 generic_target_write_sp.
7003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7004 * vax-tdep.c (vax_gdbarch_init): Update.
7005 * v850-tdep.c (v850_gdbarch_init): Update.
7006 * sparc-tdep.c (sparc_gdbarch_init): Update.
7007 * sh-tdep.c (sh_gdbarch_init): Update.
7008 * s390-tdep.c (s390_gdbarch_init): Update.
7009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7010 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7011 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7012 * mcore-tdep.c (mcore_gdbarch_init): Update.
7013 * m68k-tdep.c (m68k_gdbarch_init): Update.
7014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7015 * ia64-tdep.c (ia64_gdbarch_init): Update.
7016 * h8300-tdep.c (h8300_gdbarch_init): Update.
7017 * frv-tdep.c (frv_gdbarch_init): Update.
7018 * cris-tdep.c (cris_gdbarch_init): Update.
7019 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7020
7021 2003-06-07 Andrew Cagney <cagney@redhat.com>
7022
7023 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7024 Assert that PC_REGNUM is valid.
7025 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7026
7027 2003-06-07 Andrew Cagney <cagney@redhat.com>
7028
7029 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7030 * gdbarch.h, gdbarch.c: Regenerate.
7031 * mn10300-tdep.c: Include "gdb_assert.h".
7032 (mn10300_read_fp): New function.
7033 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7034 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7035 * ia64-tdep.c: Include "gdb_assert.h".
7036 (ia64_read_fp): New function.
7037 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7038 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7039 * regcache.c (generic_target_read_sp): Delete function.
7040 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7041 * inferior.h (generic_target_read_sp): Delete declaration.
7042 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7043 generic_target_read_sp.
7044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7045 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7046 * sh-tdep.c (sh_gdbarch_init): Ditto.
7047 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7048 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7049
7050 2003-06-07 Andrew Cagney <cagney@redhat.com>
7051
7052 * gdbarch.sh: Comment each field of startup_gdbarch.
7053 * gdbarch.h, gdbarch.c: Re-generate.
7054
7055 2003-06-07 Andrew Cagney <cagney@redhat.com>
7056
7057 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7058 * gdbarch.h, gdbarch.c: Re-generate.
7059 * regcache.c: Update comments on read_pc et.al.
7060 (generic_target_read_pc): Delete function.
7061 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7062 * inferior.h (generic_target_read_pc): Delete declaration.
7063 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7064 generic_target_read_pc.
7065 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7066 * sh-tdep.c (sh_gdbarch_init): Ditto.
7067 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7069
7070 2003-06-07 Andrew Cagney <cagney@redhat.com>
7071
7072 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7073 "index" with "special_local_sect". Use strcmp instead of STREQ.
7074 Append period to coments.
7075
7076 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7077
7078 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7079 (elfstab_offset_sections): Likewise.
7080 * gdb-stabs.h (stab_section_info): Likewise.
7081 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7082 * objfiles.c (objfile_relocate): Likewise.
7083 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7084 * remote.c (get_offsets): Likewise.
7085 (remote_cisco_objfile_relocate): Likewise.
7086 * somread.c (som_symfile_offsets): Likewise.
7087 * symfile.c (alloc_section_addr_info): New function.
7088 (build_section_addr_info_from_section_tab): Use it.
7089 (free_section_addr_info): Adjust.
7090 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7091 (syms_from_objfile): Allocate local_addr dynamically.
7092 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7093 dynamically.
7094 (add_symbol_file_command): Allocate sect_opts dynamically.
7095 (reread_symbols): Avoid use of SECT_OFF_MAX.
7096 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7097 (alloc_section_addr_info): Declare it.
7098 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7099 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7100 dynamically.
7101 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7102
7103 2003-06-06 Andrew Cagney <cagney@redhat.com>
7104
7105 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7106 (d10v_frame_unwind_cache): Do not set "return_pc".
7107
7108 2003-06-06 Michael Snyder <msnyder@redhat.com>
7109
7110 * h8300-tdep.c: Make tidy (long lines).
7111
7112 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7113
7114 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7115 to regcache_collect().
7116
7117 2003-06-05 J. Brobecker <brobecker@gnat.com>
7118
7119 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7120 pc_in_sigtramp multiarch method.
7121 (hppa_hpux_som_init_abi): Use it.
7122 (hppa_hpux_elf_init_abi): Likewise.
7123 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7124 macro has been multiarched.
7125 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7126 macro here, as hppa64 isn't multiarched yet.
7127
7128 2003-06-05 Andrew Cagney <cagney@redhat.com>
7129
7130 * Makefile.in (value_h): Add $(frame_h).
7131 * value.h: Include "frame.h".
7132 (struct value): Replace "frame_addr" with "frame_id".
7133 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7134 * values.c (allocate_value): Use VALUE_FRAME_ID.
7135 (value_copy): Use VALUE_FRAME_ID.
7136 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7137 * valops.c (value_assign): Update. Use frame_find_by_id.
7138
7139 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7140
7141 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7142 in each pass.
7143
7144 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7145
7146 * thread-db.c (check_event): For create/death event breakpoints,
7147 loop through all messages to ensure that we read the message
7148 corresponding to the breakpoint we are at.
7149
7150 2003-06-04 Michael Snyder <msnyder@redhat.com>
7151
7152 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7153
7154 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7155
7156 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7157 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7158 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7159 when handling .eh_frame sections.
7160
7161 2003-06-04 J. Brobecker <brobecker@gnat.com>
7162
7163 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7164 prepare_to_proceed procedure instead of the hppa-specific one.
7165 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7166
7167 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7168
7169 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7170 * config.in: Regenerated.
7171 * configure.in: Add test for syscall function and check for
7172 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7173 * configure: Regenerated.
7174 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7175 <sys/syscall.h>.
7176 (kill_lwp): New function that uses tkill syscall or
7177 uses kill, depending on whether threading model is nptl or not.
7178 All callers of kill() changed to use kill_lwp().
7179 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7180 see if all threads have already exited in the nptl model.
7181 (stop_and_resume_callback): New callback function used by the
7182 lin_lwp_wait thread exit handling code.
7183 (stop_wait_callback): Check for threads already having exited and
7184 delete such threads fromt the lwp list when discovered.
7185 (stop_callback): Don't assert retcode of kill call.
7186
7187 Roland McGrath <roland@redhat.com>
7188 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7189 nptl libthread_db.
7190
7191 2003-06-03 Richard Henderson <rth@redhat.com>
7192
7193 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7194 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7195 (alpha_sigtramp_frame_prev_register): Likewise.
7196 (alpha_heuristic_frame_prev_register): Likewise.
7197 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7198
7199 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7200 alpha-specific register id names.
7201 (alpha_mdebug_frame_unwind_cache): Likewise.
7202 (alpha_mdebug_frame_prev_register): Likewise.
7203
7204 2003-06-03 Richard Henderson <rth@redhat.com>
7205
7206 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7207 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7208 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7209 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7210 unwind routines.
7211 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7212 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7213 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7214
7215 * alpha-linux-tdep.c: Remove unnecessary includes.
7216 * Makefile.in (alpha-linux-tdep.o): Update.
7217
7218 2003-06-03 Richard Henderson <rth@redhat.com>
7219
7220 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7221 (alphabsd_fill_fpreg): Likewise.
7222
7223 2003-06-03 J. Brobecker <brobecker@gnat.com>
7224
7225 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7226 references to struct frame_info fields by calls to the equivalent
7227 accessors. Necessary now that frame_info is opaque.
7228
7229 2003-06-03 J. Brobecker <brobecker@gnat.com>
7230
7231 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7232 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7233 structure, field no longer exists.
7234
7235 2003-06-03 J. Brobecker <brobecker@gnat.com>
7236
7237 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7238 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7239
7240 2003-06-03 J. Brobecker <brobecker@gnat.com>
7241
7242 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7243 references to struct frame_info fields by calls to the equivalent
7244 accessors. Necessary now that frame_info is opaque.
7245
7246 2003-06-03 J. Brobecker <brobecker@gnat.com>
7247
7248 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7249 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7250 structure, field no longer exists.
7251
7252 2003-06-03 Theodore A. Roth <troth@openavr.org>
7253
7254 * remote.c (init_remote_state): Compute sizeof_g_packet by
7255 accumulation of the size of all registers instead of blindly using
7256 DEPRECATED_REGISTER_BYTES.
7257
7258 2003-06-03 Michael Snyder <msnyder@redhat.com>
7259
7260 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7261 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7262 for h8300sx.
7263
7264 2003-06-03 J. Brobecker <brobecker@gnat.com>
7265
7266 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7267 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7268
7269 2003-06-03 Andrew Cagney <cagney@redhat.com>
7270
7271 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7272 (sparc_convert_to_raw): Delete function.
7273 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7274 register_convert_to_virtual.
7275
7276 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7277
7278 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7279 layer if not dealing with a statically-linked threaded program.
7280
7281 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7282
7283 * solib.c (solib_open): Update comment to reflect actual search order.
7284
7285 2003-06-03 Andrew Cagney <cagney@redhat.com>
7286
7287 * frame.c (get_frame_memory_signed): New function.
7288 (get_frame_memory, get_frame_memory_unsigned): New function.
7289 (get_frame_arch): New function.
7290 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7291 (get_frame_memory, get_frame_unsigned_memory): Declare.
7292 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7293 get_frame_memory_unsigned and get_frame_arch.
7294 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7295
7296 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7297
7298 * MAINTAINERS (write after approval): Add myself.
7299
7300 2003-06-03 Jim Blandy <jimb@redhat.com>
7301
7302 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7303 elements of gregset_t are 64 bits each, but access registers
7304 are still 32 bits, so they're packed two per gregset_t
7305 element. Unpack/pack them properly.
7306
7307 2003-06-02 David Carlton <carlton@bactrian.org>
7308
7309 * linespec.c (find_methods): Break out code into
7310 add_matching_methods and add_constructors.
7311 (add_matching_methods): New.
7312 (add_constructors): Ditto.
7313
7314 2003-06-02 Andrew Cagney <cagney@redhat.com>
7315
7316 * sparc-tdep.c (sparc_print_registers): Delete call to
7317 REGISTER_CONVERTIBLE.
7318 (sparc_gdbarch_init): Do not set register_convertible.
7319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7320 * frv-tdep.c (frv_gdbarch_init): Ditto.
7321 * cris-tdep.c (cris_gdbarch_init): Ditto.
7322
7323 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7324
7325 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7326 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7327 (syms_from_objfile): Ditto.
7328
7329 2003-06-03 Andreas Schwab <schwab@suse.de>
7330
7331 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7332 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7333
7334 2003-06-02 Richard Henderson <rth@redhat.com>
7335
7336 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7337 a member of all_reggroup.
7338
7339 2003-06-02 Richard Henderson <rth@redhat.com>
7340
7341 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7342 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7343 (alpha_lds, alpha_sts): New.
7344 (alpha_convert_register_p): Change from _register_convertible.
7345 (alpha_register_to_value): Change from _convert_to_virtual;
7346 restructure and fail for type sizes other than 4 or 8.
7347 (alpha_value_to_register): Similarly.
7348 (alpha_extract_return_value): Use alpha_sts.
7349 (alpha_store_return_value): Use alpha_lds.
7350 (alpha_gdbarch_init): Update hooks.
7351
7352 2003-06-02 Richard Henderson <rth@redhat.com>
7353
7354 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7355 regnum identifiers.
7356 (alpha_sigtramp_register_address): Likewise.
7357
7358 2003-06-02 Richard Henderson <rth@redhat.com>
7359
7360 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7361 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7362 * alpha-tdep.h: Declare them.
7363
7364 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7365 Remove zerobuf. Don't error on UNIQUE.
7366 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7367 (ALPHA_REGSET_UNIQUE): Provide default.
7368 (supply_gregset): Use alpha_supply_int_regs.
7369 (fill_gregset): Use alpha_fill_int_regs.
7370 (supply_fpregset): Use alpha_supply_fp_regs.
7371 (fill_fpregset): Use alpha_fill_fp_regs.
7372 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7373 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7374 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7375 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7376 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7377 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7378
7379 2003-06-02 Richard Henderson <rth@redhat.com>
7380
7381 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7382
7383 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7384 (alpha_store_return_value): Likewise.
7385
7386 2003-06-02 David Carlton <carlton@math.stanford.edu>
7387
7388 * block.c (contained_in): Add 'const' to arguments.
7389 (block_function): Ditto.
7390 * block.h: Update declarations for block_function and
7391 contained_in.
7392
7393 2003-06-02 David Carlton <carlton@math.stanford.edu>
7394
7395 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7396 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7397 * p-valprint.c (pascal_val_print): Ditto.
7398 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7399
7400 2003-06-02 Richard Henderson <rth@redhat.com>
7401
7402 * alpha-tdep.c (alpha_push_dummy_call): Use
7403 builtin_type_ieee_double_little instead of builtin_type_double.
7404
7405 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7406 sign-extension of 32-bit values.
7407 (alpha_store_return_value): Similarly.
7408
7409 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7410 (alpha_extract_return_value): Likewise.
7411 (alpha_store_return_value): Likewise.
7412
7413 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7414 (alpha_store_return_value): Error on IEEE Quad floats.
7415
7416 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7417 (alpha_extract_struct_value_address): Likewise.
7418 (alpha_store_return_value): Likewise.
7419 (alpha_store_struct_return): Remove.
7420 (alpha_gdbarch_init): Update hook registration to match.
7421
7422 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7423 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7424 macros where appropriate.
7425 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7426 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7427
7428 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7429 for SP, GP; void_func_ptr for PC; non-language-specific types
7430 for all others.
7431 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7432
7433 2003-06-02 Richard Henderson <rth@redhat.com>
7434
7435 * top.h (lim_at_start): Declare.
7436 * main.c (captured_main): Set it.
7437 * top.c (lim_at_start): Define.
7438 (command_loop): Use it instead of &environ.
7439 * event-top.c (command_handler): Likewise.
7440
7441 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7442
7443 * mipsnbsd-tdep.c: Update copyright years.
7444 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7445
7446 2003-06-01 Richard Henderson <rth@redhat.com>
7447
7448 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7449 (alpha-linux-tdep.o): Update dependencies.
7450 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7451 * alpha-mdebug-tdep.c: Remove unneeded includes.
7452
7453 2003-06-01 Richard Henderson <rth@redhat.com>
7454
7455 * alpha-tdep.c (alpha_register_reggroup_p): New.
7456 (alpha_gdbarch_init): Register it.
7457
7458 2003-06-02 Andrew Cagney <cagney@redhat.com>
7459
7460 * dwarfread.c: Eliminate "register"
7461 (decode_die_type): Eliminate assignment within "if".
7462 (struct_type, decode_array_element_type): Ditto.
7463 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7464 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7465 (decode_modified_type, completedieinfo): Ditto.
7466 * block.c: Eliminate "register".
7467 (blockvector_for_pc_sect): Eliminate assignment within "if".
7468 * cp-support.h (struct symbol): Opaque declaration.
7469 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7470
7471 2003-06-01 Richard Henderson <rth@redhat.com>
7472
7473 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7474 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7475
7476 2003-06-01 Adam Fedor <fedor@gnu.org>
7477
7478 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7479 * gdbarch.[ch]: Regenerate.
7480 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7481 (hppa_gdbarch_init): Set it in the gdbarch vector.
7482 * i386-tdep.c (i386_fetch_pointer_argument): New
7483 (i386_gdbarch_init): Set it into gdbarch.
7484 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7485 (rs6000_gdbarch_init): Set it in gdbarch.
7486 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7487 (sparc_gdbarch_init): Set it in gdbarch.
7488
7489 2003-06-01 Andrew Cagney <cagney@redhat.com>
7490
7491 * defs.h (extract_address): Delete declaration.
7492 * findvar.c (extract_address): Delete function.
7493 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7494 extract_address with the inline equivalent,
7495 extract_unsigned_integer.
7496 (xstormy16_extract_struct_value_address): Ditto.
7497 (xstormy16_pointer_to_address): Ditto.
7498 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7499 * v850-tdep.c (v850_push_arguments): Ditto.
7500 (v850_extract_return_value): Ditto.
7501 (v850_extract_struct_value_address): Ditto.
7502 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7503 (sparcnbsd_get_longjmp_target_64): Ditto.
7504 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7505 (get_longjmp_target): Ditto.
7506 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7507 (sh64_extract_struct_value_address): Ditto.
7508 (sh_push_arguments): Ditto.
7509 (sh64_push_arguments): Ditto.
7510 * remote-vxsparc.c (vx_read_register): Ditto.
7511 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7512 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7513 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7514 * mipsv4-nat.c (get_longjmp_target): Ditto.
7515 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7516 * mips-nat.c (get_longjmp_target): Ditto.
7517 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7518 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7519 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7520 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7521 * irix5-nat.c (get_longjmp_target): Ditto.
7522 * irix4-nat.c (get_longjmp_target): Ditto.
7523 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7524 (ia64_push_arguments): Ditto.
7525 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7526 * h8300-tdep.c (h8300_push_arguments): Ditto.
7527 (h8300_store_return_value): Ditto.
7528 (h8300_extract_struct_value_address): Ditto.
7529 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7530 (frv_push_arguments): Ditto.
7531 * avr-tdep.c (avr_pointer_to_address): Ditto.
7532 (avr_push_arguments): Ditto.
7533 * arm-tdep.c (arm_push_dummy_call): Ditto.
7534 (arm_get_longjmp_target): Ditto.
7535 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7536 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7537 (alpha_get_longjmp_target): Ditto.
7538
7539 * solib-irix.c (extract_mips_address): Inline extract_address,
7540 replacing it with extract_signed_integer.
7541 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7542 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7543 (first_link_map_member, open_symbol_file_object): Ditto.
7544 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7545 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7546 (LM_NEXT, LM_NAME): Ditto.
7547
7548 2003-06-01 Richard Henderson <rth@redhat.com>
7549
7550 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7551 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7552 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7553 (alpha_cannot_store_register): Likewise.
7554 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7555 * alpha-nat.c (supply_gregset): Likewise.
7556 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7557
7558 2003-06-01 Andrew Cagney <cagney@redhat.com>
7559
7560 * infcall.c (call_function_by_hand): Update comment on
7561 DEPRECATED_DUMMY_WRITE_SP.
7562
7563 * mips-tdep.c (mips_gdbarch_init): Do not set
7564 deprecated_dummy_write_sp.
7565 (mips_eabi_push_dummy_call): Set the SP register.
7566 (mips_o64_push_dummy_call): Set the SP register.
7567 (mips_o32_push_dummy_call): Set the SP register.
7568 (mips_n32n64_push_dummy_call): Set the SP register.
7569
7570 2003-06-01 Richard Henderson <rth@redhat.com>
7571
7572 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7573 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7574 (supply_gregset): Likewise.
7575 * alpha-tdep.c (alpha_store_return_value): Likewise.
7576 (alpha_get_longjmp_target): Likewise.
7577 (alpha_register_name): Constify array.
7578 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7579 deprecated_register_size, deprecated_register_bytes,
7580 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7581 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7582 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7583
7584 2003-06-01 Richard Henderson <rth@redhat.com>
7585
7586 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7587 from arg_reg_buffer to regcache to avoid double conversion.
7588
7589 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7590
7591 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7592 SP_REGNUM.
7593 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7594 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7595
7596 2003-06-01 Richard Henderson <rth@redhat.com>
7597
7598 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7599 (decode_frame_entry): Set it. Skip FDE augmentation.
7600
7601 2003-06-01 Richard Henderson <rth@redhat.com>
7602
7603 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7604 not overlapping PC_REGNUM.
7605
7606 2003-06-01 Richard Henderson <rth@redhat.com>
7607
7608 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7609 alpha_push_arguments. Don't dump argument register data to
7610 the target stack. Fix float and 128-bit long double semantics.
7611 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7612 (alpha_fix_call_dummy): Remove.
7613 (alpha_call_dummy_words): Remove.
7614 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7615
7616 2003-06-01 Richard Henderson <rth@redhat.com>
7617
7618 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7619
7620 2003-06-01 Andrew Cagney <cagney@redhat.com>
7621
7622 * mips-tdep.c (is_mips16_addr): New function.
7623 (make_mips16_addr, unmake_mips16_addr): New functions.
7624 (pc_is_mips16, mips_fetch_instruction): Use.
7625 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7626 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7627 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7628 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7629 TARGET_MIPS.
7630 * config/mips/tm-mips.h: Update copyright.
7631 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7632 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7633 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7634 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7635 (TM_PRINT_INSN_MACH): Delete.
7636 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7637
7638 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7639 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7640 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7641 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7642 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7643 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7644 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7645 mips*-*-riscos* and mips*-*-sysv* onto mips.
7646 * config/mips/mips64.mt: New file.
7647 * config/mips/mips.mt: New file.
7648 * config/mips/littlemips.mt: Delete file.
7649 * config/mips/decstation.mt: Delete file.
7650 * config/mips/vr4300el.mt: Delete file.
7651 * config/mips/vr5000el.mt: Delete file.
7652 * config/mips/vr5000.mt: Delete file.
7653 * config/mips/vr4100.mt: Delete file.
7654 * config/mips/vr4xxxel.mt: Delete file.
7655 * config/mips/vr4300.mt: Delete file.
7656 * config/mips/vr4xxx.mt: Delete file.
7657 * config/mips/bigmips.mt: Delete file.
7658 * config/mips/bigmips64.mt: Delete file.
7659 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7660 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7661 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7662 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7663 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7664 "tm-bigmips.h".
7665 * config/mips/tm-irix3.h: Ditto.
7666 * config/mips/tm-mipsv4.h: Ditto.
7667 * config/mips/tm-embed.h: Ditto.
7668 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7669 "tm-bigmips64.h".
7670 * config/mips/tm-vr5000el.h: Delete file.
7671 * config/mips/tm-tx39l.h: Delete file.
7672 * config/mips/tm-vr4300el.h: Delete file.
7673 * config/mips/tm-vr4xxxel.h: Delete file.
7674 * config/mips/tm-vr4300.h: Delete file.
7675 * config/mips/tm-vr4100.h: Delete file.
7676 * config/mips/tm-vr4xxx.h: Delete file.
7677 * config/mips/tm-vr5000.h: Delete file.
7678 * config/mips/tm-embedl64.h: Delete file.
7679 * config/mips/tm-embedl.h: Delete file.
7680 * config/mips/tm-embed64.h: Delete file.
7681 * config/mips/tm-bigmips64.h: Delete file.
7682 * config/mips/tm-bigmips.h: Delete file.
7683
7684 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7685
7686 Fix gdb/1216.
7687 * shnbsd-nat.c: Include "sh-tdep.h".
7688
7689 From Richard Henderson <rth@redhat.com>:
7690 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7691
7692 2003-05-31 Andrew Cagney <cagney@redhat.com>
7693
7694 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7695 forward declaration.
7696 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7697 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7698 (mips_find_saved_regs): Use set_reg_offset.
7699 (mips_frame_init_saved_regs): Delete function.
7700 (mips_pop_frame): Call mips_find_saved_regs instead of
7701 DEPRECATED_FRAME_INIT_SAVED_REGS.
7702
7703 2003-05-31 Andrew Cagney <cagney@redhat.com>
7704
7705 * mips-tdep.c (mips_gdbarch_init): Do not set
7706 deprecated_max_register_raw_size, register_virtual_size, and
7707 deprecated_max_register_virtual_size.
7708
7709 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7710
7711 * i386-tdep.c: Include "dwarf2-frame.h".
7712 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7713 * Makefile.in (i386-tdep.o): Update dependencies.
7714
7715 * dwarf2-frame.c, dwarf2-frame.h: New files.
7716 * Makefile.in (SFILES): Add dwarf2-frame.c.
7717 (dwarf2_frame_h): Define.
7718 (COMMON_OBS): Add dwarf2-frame.o.
7719 (dwarf2-frame.o): Add dependencies.
7720
7721 2003-05-31 Andreas Jaeger <aj@suse.de>
7722
7723 * x86-64-linux-nat.c: Fix comment.
7724
7725 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7726
7727 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7728 function signature.
7729
7730 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7731 have a sigcontext_addr handler.
7732 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7733 sigcontext_addr handler.
7734
7735 2003-05-31 Andrew Cagney <cagney@redhat.com>
7736
7737 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7738 (print_fp_register_row): Replace do_fp_register_row.
7739 (mips_print_fp_register): Add "file" and "frame" parameters.
7740 (mips_print_register): Add "file" and "frame" parameters.
7741 (mips_print_registers_info): Replace mips_do_registers_info.
7742 (mips_gdbarch_init): Set print_registers_info instead of
7743 deprecated_do_registers_info.
7744 (mips_read_fp_register_single): Add "frame" parameter.
7745 (mips_read_fp_register_double): Add "frame" parameter.
7746
7747 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7748
7749 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7750 Fixes a bug where GDB would print the wrong register names for
7751 targets without SSE.
7752
7753 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7754 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7755 registers.
7756
7757 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7758 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7759 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7760 TDEP->sc_sp_offset.
7761
7762 From Michal Ludvig <mludvig@suse.cz>:
7763 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7764 and `sc_num_regs'.
7765 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7766 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7767 I386_ST0_REGNUM): Move here from...
7768 * i386-tdep.c: ... here.
7769 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7770 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7771 registers if possible.
7772 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7773 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7774 Remove variables.
7775 (i386bsd_sc_reg_offset): New variable.
7776 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7777 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7778 TDEP->sc_sp_offset.
7779 (i386fbsd_sc_reg_offset): New variable.
7780 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7781 TDEP->sc_num_regs.
7782 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7783 variables.
7784 (i386fbsd4_sc_reg_offset): New variable.
7785 (i3864bsd4_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 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7789 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7790 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7791 Remove variables.
7792 (i386nbsd_sc_reg_offset): New variable.
7793 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7794 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7795 TDEP->sc_sp_offset.
7796 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7797 Remove variables.
7798 (i386obsd_sc_reg_offset): New variable.
7799 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7800 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7801 TDEP->sc_sp_offset.
7802 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7803 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7804 for frame pointer offset in `struct sigcontext'.
7805
7806 2003-05-31 Andrew Cagney <cagney@redhat.com>
7807
7808 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7809 architecture methods call_dummy_words, sizeof_call_dummy_words,
7810 push_return_address, store_struct_return, and fix_call_dummy. Set
7811 push_dummy_call instead of deprecated_push_arguments.
7812 (mips_store_struct_return): Delete function.
7813 (mips_fix_call_dummy): Delete function.
7814 (mips_push_return_address): Delete function.
7815 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7816 RA_REGNUM and T9_REGNUM.
7817 (mips_n32n64_push_dummy_call): Ditto for
7818 mips_n32n64_push_arguments.
7819 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7820 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7821
7822 2003-05-31 Andrew Cagney <cagney@redhat.com>
7823
7824 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7825 "dummy_addr" to "bp_addr".
7826 * infcall.c (call_function_by_hand): Pass "funaddr" to
7827 gdbarch_push_dummy_call.
7828 * gdbarch.h, gdbarch.c: Re-generate.
7829 * i386-tdep.c (i386_push_dummy_call): Update.
7830 * arm-tdep.c (arm_push_dummy_call): Update.
7831 * d10v-tdep.c (d10v_push_dummy_call): Update.
7832
7833 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7834
7835 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7836 variable declarations.
7837 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7838 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7839 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7840 x86_64_init_frame_pc, x86_64_init_frame_pc,
7841 x86_64_function_has_prologue): Remove prototypes.
7842 (X86_64_NUM_GREGS): New define.
7843 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7844 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7845 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7846 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7847 XMM1_REGNUM): Remove defines.
7848 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7849 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7850 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7851 X86_64_XMM1_REGNUM): New defines.
7852 (struct x86_64_register_info): Renamed from `struct
7853 register_info'. Remove `size' member.
7854 (x86_64_register_info_table): Remove variable.
7855 (x86_64_register_info): New variable.
7856 (X86_64_NUM_REGS): New define.
7857 (X86_64_NUM_GREGS): Remove define.
7858 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7859 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7860 Remove variables.
7861 (x86_54_dwarf2_reg_to_regnum): Remove function.
7862 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7863 (x86_64_dwarf_reg_to_regnum): New function.
7864 (x86_64_register_name): Rewrite.
7865 (x86_64_register_raw_size): Remove function.
7866 (x86_64_register_byte_table): Remove variable.
7867 (x86_64_register_byte): Remove function.
7868 (x86_64_register_virtual_type): Remove function.
7869 (x86_64_register_type): New function.
7870 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7871 x86_64_register_convert_to_raw): Remove functions.
7872 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7873 (x86_64_use_struct_convention): Make static. Adjust for renamed
7874 defines.
7875 (x86_64_frame_init_saved_regs): Remove function.
7876 (x86_64_push_arguments): Make static. Change to accept a regcache
7877 as argument.
7878 (x86_64_store_return_value, x86_64_extract_return_value): Make
7879 static. Rewrite based on i386 counterparts.
7880 (x86_64_push_dummy_call): New function.
7881 (X86_64_NUM_SAVED_REGS): New define.
7882 (x86_64_register_number): Remove function.
7883 (x86_64_store_struct_return): Remove function.
7884 (x86_64_frameless_function_invocation,
7885 x86_64_function_has_prologue): Remove functions.
7886 (PROLOG_BUFSIZE): Remove define.
7887 (struct x86_64_frame_cache): New structure.
7888 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7889 x86_64_frame_cache, x86_64_frame_this_id,
7890 x86_64_frame_prev_register, x86_64_frame_p,
7891 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7892 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7893 functions.
7894 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7895 variables.
7896 (x86_64_skip_prologue): Rewrite in terms of
7897 x86_64_analyze_prologue.
7898 (x86_64_frame_base_address): New function.
7899 (x86_64_frame_base): New variable.
7900 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7901 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7902 set deprecated_fp_regnum, deprecated_register_size,
7903 deprecated_register_bytes, register_raw_size, register_byte,
7904 register_virtual_type, register_convertiable,
7905 register_convert_to_virtual, convert_to_raw,
7906 deprecated_get_saved_register, deprecated_target_read_fp,
7907 deprecated_push_arguments, deprecated_push_return_address,
7908 deprecated_pop_frame, deprecated_store_struct_return,
7909 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7910 frameless_function_invocation, deprecated_frame_saved_pc,
7911 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7912 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7913 deprecated_init_frame_pc and virtual_frame_pointer. Call
7914 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7915 and x86_64_frame_p. Call frame_base_set_default to register
7916 x86_64_frame_base.
7917 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7918 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7919 (_initialize_x86_64_tdep): Remove function.
7920 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7921 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7922 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7923 define.
7924 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7925 (x86_64_linux_sigcontext_addr): Rewrite.
7926 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7927 x86_64_linux_frame_saved_pc): Remove functions.
7928 (x86_64_linux_pc_in_sigtramp): Renamed from
7929 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7930 trampoline.
7931 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7932 Remove_functions.
7933 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7934 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7935 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7936 (x86_64_regmap): Rename to regmap.
7937 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7938 x86_64_num_gregs.
7939 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7940 x86_64_regmap.
7941 (x86_64_fxsave_offset): Remove function.
7942 (supply_fpregset): Simply call x86_64_supply_fxsave.
7943 (fill_fpregset): Simply call x86_64_fill_fxsave.
7944 (fetch_inferior_registers, store_inferior_registers): Avoid
7945 asignment in if-statement.
7946 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7947 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7948 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7949 (fetch_core_registers): Remove function.
7950 (linux_elf_core_fns): Remove.
7951 (offsetoff): Don't define.
7952 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7953 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7954 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7955 add core-regset.o.
7956 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7957 protection against multiple includes instead of NM_X86_64_h. Add
7958 various comments. Include "config/nm-linux.h". Don't include
7959 <signal.h>.
7960 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7961 GET_THREAD_SIGNALS): Remove defines.
7962 (x86_64_register_u_addr, kernel_u_size,
7963 lin_thread_get_thread_signals): Remove prototypes.
7964 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7965 [HAVE_LINK_H]: Don't include "solib.h".
7966 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7967 * config/i386/tm-x86-64linux.h: Fix comments.
7968 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7969 x86-64-tdep.o): Update dependencies.
7970
7971 2003-05-30 Andrew Cagney <cagney@redhat.com>
7972
7973 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7974 Change parameter type to a "struct regcache *".
7975
7976 * gdbarch.sh: Regardless of the multi-arch level, always define
7977 the macro when not already defined.
7978 * gdbarch.h, gdbarch.c: Re-generate.
7979
7980 2003-05-30 Richard Henderson <rth@redhat.com>
7981
7982 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7983 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7984 (alpha_mdebug_frame_this_id): Likewise.
7985 (alpha_mdebug_frame_prev_register): Likewise.
7986 (alpha_mdebug_frame_base_address): Likewise.
7987 (alpha_mdebug_frame_locals_address): Likewise.
7988 (alpha_mdebug_frame_args_address): Likewise.
7989 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7990 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7991 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7992 loop increment.
7993 (alpha_heuristic_frame_this_id): Make static.
7994 (alpha_heuristic_frame_prev_register): Likewise.
7995 (alpha_heuristic_frame_base_address): Likewise.
7996 * alpha-tdep.h: Update.
7997
7998 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7999
8000 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8001 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8002 defenitions.
8003 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8004 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8005 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8006 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8007 I386_ST0_REGNUM): New defines.
8008 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8009 codestream_get): Remove define.
8010 (codestream_next_addr, condestream_addr, condestream_buf,
8011 codestream_off, codestream_cnt): Remove variables.
8012 (codestream_fill, codestream_seek, codestream_read): Remove
8013 functions.
8014 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8015 functionality.
8016 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8017 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8018 i386_frame_saved_pc, i386_saved_pc_after_call,
8019 i386_frame_num_args, i386_frame_init_saved_regs,
8020 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8021 i386_push_arguments): Remove functions.
8022 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8023 functionality. Use i386_analyze_prologue instead of
8024 i386_get_frame_setup.
8025 (I386_NUM_SAVED_REGS): New define.
8026 (struct i386_frame_cache): New structure.
8027 (i386_alloc_frame_cache, i386_analyze_struct_return,
8028 i386_skip_probe, i386_analyze_frame_setup,
8029 i386_analyze_register_saves, i386_analyze_prologue,
8030 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8031 i386_frame_prev_register, i386_sigtramp_frame_cache,
8032 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8033 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8034 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8035 New functions.
8036 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8037 New variables.
8038 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8039 I386_EAX_REGNUM and I386_EDX_REGNUM.
8040 (i386_extract_return_value, i386_store_return_value): Use
8041 I386_ST0_REGNUM where appropriate.
8042 (i386_extract_struct_value_address): Rewrite to use extract_address.
8043 (i386_svr4_pc_in_sigtramp): Add comment.
8044 (i386_svr4_sigcontext_addr): Rewrite.
8045 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8046 TDEP->sc_sp_offset.
8047 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8048 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8049 of new defines. Set push_dummy_call, don't set
8050 deprecated_push_arguments, deprecated_push_return_address,
8051 deprecated_pop_frame. Don't set parm_boundary. Don't set
8052 deprecated_frame_chain, deprecated_frame_saved_pc,
8053 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8054 save_dummy_frame_tos, unwind_pc. Call
8055 frame_unwind_append_predicate and frame_base_set_default. Don't
8056 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8057 Don't set frameless_function_invocation. Don't set
8058 deprecated_register_bytes, deprecated_register_size,
8059 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8060 * i386-linux-tdep.c: Fix formatting in some comments.
8061 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8062 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8063 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8064 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8065 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8066 redundant parentheses.
8067 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8068 (i386_linux_sigcontext_addr): Use it. Rewrite.
8069 (find_minsym_and_objfile): Change name of second argument.
8070 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8071 changed. Use frame_pc_unwind instead of
8072 DEPRECATED_SAVED_PC_AFTER_CALL.
8073 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8074 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8075 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8076 unwinder.
8077 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8078 "dummy-frame.h".
8079 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8080 (_initialize_i386_cygwin_tdep): New prototype.
8081 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8082 deprecated_frame_chain_valid.
8083 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8084 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8085 Rely on the SVR4 defaults.
8086 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8087 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8088
8089 2003-05-30 Andrew Cagney <cagney@redhat.com>
8090
8091 * infcall.c (call_function_by_hand): Always call
8092 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8093
8094 2003-05-30 Richard Henderson <rth@redhat.com>
8095
8096 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8097 increment.
8098
8099 2003-05-29 Jim Blandy <jimb@redhat.com>
8100
8101 Use gdbarch methods for solib stuff on PowerPC Linux.
8102 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8103 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8104 show through.
8105 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8106 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8107 giving the same effect as the #definitions above.
8108
8109 2003-05-29 Adam Fedor <fedor@gnu.org>
8110
8111 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8112 (find_implementation_from_class): Replace it with the standard
8113 case i.e. do nothing.
8114
8115 2003-05-29 Richard Henderson <rth@redhat.com>
8116
8117 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8118 (alpha_linux_sigtramp_offset): Use it. Make static.
8119 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8120 update for new frame model.
8121 * alpha-mdebug-tdep.c: New file.
8122 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8123 (alpha_osf1_init_abi): Install it.
8124 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8125 (linked_proc_desc_table): Remove.
8126 (alpha_frame_past_sigtramp_frame): Remove.
8127 (alpha_dynamic_sigtramp_offset): Remove.
8128 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8129 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8130 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8131 (push_sigtramp_desc): Remove.
8132 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8133 (alpha_cannot_store_register): Likewise.
8134 (alpha_sigcontext_addr): Remove.
8135 (alpha_find_saved_regs): Remove.
8136 (alpha_frame_init_saved_regs): Remove.
8137 (alpha_init_frame_pc_first): Remove.
8138 (read_next_frame_reg): Remove.
8139 (alpha_frame_saved_pc): Remove.
8140 (alpha_saved_pc_after_call): Remove.
8141 (temp_proc_desc, temp_saved_regs): Remove.
8142 (alpha_about_to_return): Remove.
8143 (cached_proc_desc): Remove.
8144 (alpha_frame_chain): Remove.
8145 (alpha_print_extra_frame_info): Remove.
8146 (alpha_init_extra_frame_info): Remove.
8147 (alpha_frame_locals_address): Remove.
8148 (alpha_frame_args_address): Remove.
8149 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8150 (alpha_push_dummy_frame): Remove.
8151 (alpha_pop_frame): Remove.
8152 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8153 (alpha_read_insn): New.
8154 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8155 for different insn encodings.
8156 (alpha_in_lenient_prologue): Remove.
8157 (struct alpha_sigtramp_unwind_cache): New.
8158 (alpha_sigtramp_frame_unwind_cache): New.
8159 (alpha_sigtramp_register_address): New.
8160 (alpha_sigtramp_frame_this_id): New.
8161 (alpha_sigtramp_frame_prev_register): New.
8162 (alpha_sigtramp_frame_unwind): New.
8163 (alpha_sigtramp_frame_p): New.
8164 (struct alpha_heuristic_unwind_cache): New.
8165 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8166 don't count nop insns that occur between functions.
8167 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8168 heuristic_proc_desc, but without the mdebug wrapping.
8169 (alpha_heuristic_frame_this_id): New.
8170 (alpha_heuristic_frame_prev_register): New.
8171 (alpha_heuristic_frame_unwind): New.
8172 (alpha_heuristic_frame_p): New.
8173 (alpha_heuristic_frame_base_address): New.
8174 (alpha_heuristic_frame_base): New.
8175 (alpha_unwind_dummy_id): New.
8176 (alpha_unwind_pc): New.
8177 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8178 frame related deprecated initializations; install replacements.
8179 (alpha_dump_tdep): Remove.
8180 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8181 (alpha_read_insn, alpha_after_prologue,
8182 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8183 alpha_heuristic_frame_prev_register,
8184 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8185 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8186 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8187 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8188
8189 2003-05-29 Andrew Cagney <cagney@redhat.com>
8190
8191 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8192 dependant on the availability of ASSERT_FUNCTION.
8193 (ASSERT_FUNCTION): Do not define when there is no function name.
8194
8195 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8196
8197 From Jimi X <jimix@watson.ibm.com>:
8198 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8199
8200 2003-05-28 Jim Blandy <jimb@redhat.com>
8201
8202 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8203 argument to ptrace to int; the system headers should give it the
8204 right type, and pointers don't fit in ints on powerpc64-*-*.
8205
8206 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8207
8208 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8209 DW_TAG_catch_block.
8210
8211 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8212
8213 * stabsread.c (dbx_lookup_type): Make static.
8214 (read_type): Ditto.
8215 (add_undefined_type): Ditto.
8216 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8217 not export.
8218
8219 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8220
8221 * hpread.c (hpread_has_name): Make static.
8222 (hpread_psymtab_to_symtab): Ditto.
8223 (file_exists): Ditto.
8224 (hpread_call_pxdb): Ditto.
8225 (hpread_pxdb_needed): Ditto.
8226 (hpread_quick_traverse): Ditto.
8227 (hpread_get_header): Ditto.
8228 (hpread_get_lntt): Ditto.
8229 (hpread_get_slt): Ditto.
8230 (class_of): Ditto.
8231
8232 2003-05-25 Andreas Schwab <schwab@suse.de>
8233
8234 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8235 stack_align and deprecated_extra_stack_alignment_needed.
8236 (m68k_stack_align): Delete.
8237
8238 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8239 (m68k_register_virtual_size): Likewise.
8240 (altos_skip_prologue): Remove obsolete function.
8241 (isi_frame_num_args): Likewise.
8242 (news_frame_num_args): Likewise.
8243 (m68k_fix_call_dummy): Make static.
8244 (m68k_push_dummy_frame): Likewise.
8245 (m68k_pop_frame): Likewise.
8246 (m68k_skip_prologue): Likewise.
8247 (m68k_frame_init_saved_regs): Likewise.
8248 (m68k_saved_pc_after_call): Likewise.
8249 (m68k_get_longjmp_target): Make multi-arch.
8250 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8251 structure. Register m68k_get_longjmp_target if enabled.
8252 * m68k-tdep.h (struct gdbarch_tdep): Define.
8253 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8254
8255 * Makefile.in (config.status): Also depend on configure.tgt
8256 and configure.host.
8257 (m68klinux-tdep.o): Update dependencies.
8258 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8259 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8260 (M68K_LINUX_JB_PC): Define.
8261 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8262 and take additional parameter.
8263 (m68k_linux_sigtramp_saved_pc): Update.
8264 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8265 m68k_linux_pc_in_sigtramp, in_plt_section,
8266 find_solib_trampoline_target.
8267 * config/m68k/tm-linux.h: Don't include any tm headers.
8268 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8269 (JB_ELEMENT_SIZE): Likewise.
8270 (JB_PC): Likewise.
8271 (GET_LONGJMP_TARGET): Likewise.
8272 (IN_SIGTRAMP): Likewise.
8273 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8274
8275 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8276
8277 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8278 (sparc32_push_arguments): Re-implement by calling
8279 sparc32_do_push_arguments.
8280
8281 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8282
8283 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8284 SPARC_O1_REGNUM): New defines.
8285 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8286 (sparc32_store_return_value): New function.
8287 (sparc_extract_struct_value_address): Rewrite to operate on a
8288 regcache.
8289 (sparc_gdbarch_init): Don't set
8290 deprecated_extract_struct_value_address. Set
8291 extract_struct_value_address instead. Don't set
8292 deprecated_extract_return_value and deprecated_store_return_value
8293 for 32-bit targets. Set extract_return_value and
8294 store_return_value instead.
8295 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8296 DEPRECATED_EXTRACT_RETURN_VALUE,
8297 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8298 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8299 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8300 (sparc_store_return_value): Remove prototype.
8301 (sparc32_store_return_value): New prototype.
8302 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8303 Adjust prototypes.
8304
8305 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8306
8307 * sparcnbsd-tdep.c: Include "gdb_string.h".
8308
8309 2003-05-23 Andrew Cagney <cagney@redhat.com>
8310
8311 * p-valprint.c (pascal_val_print): Replace extract_address with
8312 the inline equivalent extract_unsigned_integer.
8313 * jv-valprint.c (java_value_print): Ditto.
8314 * ada-valprint.c (ada_val_print_1): Ditto.
8315 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8316
8317 2003-05-23 Theodore A. Roth <troth@openavr.org>
8318
8319 * blockframe.c (frameless_look_for_prologue): Remove unused
8320 after_prologue variable.
8321
8322 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8323
8324 * blockframe.c (get_pc_function_start): Rewrite to avoid
8325 asignments in if-statements.
8326
8327 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8328
8329 Committed by Elena Zannoni <ezannoni@redhat.com>.
8330 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8331 files, don't relocate absolute symbols (and do use mst_abs).
8332
8333 2003-05-23 Andrew Cagney <cagney@redhat.com>
8334
8335 * objc-lang.c: Include "gdb_assert.h".
8336 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8337 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8338 (gdb_check, gdb_check_fatal): Delete functions.
8339 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8340 gdb_assert.
8341 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8342 * Makefile.in (objc-lang.o): Update dependencies.
8343
8344 2003-05-22 Ian Lance Taylor <ian@airs.com>
8345
8346 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8347 with fprintf_filtered, not fprintf_unfiltered.
8348
8349 2003-05-22 Andrew Cagney <cagney@redhat.com>
8350
8351 * stack.c (frame_info): Inline extract_address, replacing it with
8352 extract_unsigned_integer.
8353 * findvar.c (unsigned_pointer_to_address): Ditto.
8354 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8355 * dwarf2expr.c (dwarf2_read_address): Ditto.
8356 * frame.c (frame_pc_unwind): Update comment.
8357 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8358
8359 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8360
8361 * infptrace.c (detach): Call print_sys_errmsg rather than
8362 perror_with_name to issue warning message when errno is non-zero
8363 after calling ptrace detach.
8364
8365 2003-05-21 J. Brobecker <brobecker@gnat.com>
8366
8367 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8368 macro definitions from here...
8369 * hppa-tdep.c: ...to there.
8370
8371 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8372
8373 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8374 register_ptrace_addr(). Fix all callers.
8375
8376 2003-05-21 Andreas Schwab <schwab@suse.de>
8377
8378 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8379 dependencies.
8380 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8381 end.
8382 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8383 (_initialize_m68k_linux_tdep): New function.
8384 (m68k_linux_frame_saved_pc): Make static.
8385 (m68k_linux_extract_return_value): Likewise.
8386 (m68k_linux_store_return_value): Likewise.
8387 (m68k_linux_extract_struct_value_address): Likewise.
8388 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8389 Remove.
8390 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8391 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8392 (DEPRECATED_FRAME_SAVED_PC): Remove.
8393
8394 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8395
8396 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8397 regset numbering rather than our own.
8398
8399 2003-05-19 David Carlton <carlton@bactrian.org>
8400
8401 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8402
8403 2003-05-19 David Carlton <carlton@bactrian.org>
8404
8405 Partial fix for PR c++/827.
8406 * cp-support.h: Include symtab.h.
8407 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8408 * cp-namespace.c: Update contributors.
8409 (cp_lookup_symbol_nonlocal): New.
8410 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8411 (lookup_symbol_file): Ditto.
8412 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8413 * block.h: Declare block_scope, block_using, block_global_block.
8414 * block.c (block_scope): New.
8415 (block_using, block_global_block): Ditto.
8416 * Makefile.in (cp_support_h): Depend on symtab_h.
8417 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8418
8419 2003-05-19 David Carlton <carlton@bactrian.org>
8420
8421 * language.h (struct language_defn): Add 'la_value_of_this'
8422 and 'la_lookup_symbol_nonlocal' members.
8423 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8424 lookup_symbol_static, lookup_symbol_global,
8425 lookup_symbol_aux_block.
8426 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8427 if we should search fields of this and how to do static/global
8428 lookup.
8429 (lookup_symbol_aux_block): Make extern.
8430 (basic_lookup_symbol_nonlocal): New.
8431 (lookup_symbol_static, lookup_symbol_global): Ditto.
8432 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8433 'la_lookup_symbol_nonlocal' members.
8434 * c-lang.c (c_language_defn, cplus_language_defn)
8435 (asm_language_defn, minimal_language_defn): Ditto.
8436 * jv-lang.c (java_language_defn): Ditto.
8437 * language.c (unknown_language_defn, auto_language_defn)
8438 (local_language_defn): Ditto.
8439 * m2-lang.c (m2_language_defn): Ditto.
8440 * objc-lang.c (objc_language_defn): Ditto.
8441 * scm-lang.c (scm_language_defn): Ditto.
8442 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8443 * p-lang.c (pascal_language_defn): Ditto for both.
8444 * Makefile.in (f-lang.o): Depend on value_h.
8445 (p-lang.o): Ditto.
8446
8447 2003-05-19 David Carlton <carlton@bactrian.org>
8448
8449 * block.h: Declare block_static_block.
8450 * block.c (block_static_block): New.
8451 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8452 lookup_symbol_aux_local, calling block_static_block instead.
8453 (lookup_symbol_aux_local): Delete 'static_block' argument.
8454
8455 2003-05-19 David Carlton <carlton@bactrian.org>
8456
8457 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8458
8459 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8460
8461 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8462 register numbers mapping.
8463
8464 2003-05-18 Adam Fedor <fedor@gnu.org>
8465
8466 * symtab.c (completion_list_objc_symbol): New function.
8467 (make_symbol_completion_list): Use it to add ObjC symbols
8468 when looking though the list.
8469 (language_search_unquoted_string): New function.
8470 (make_file_symbol_completion_list): Use it.
8471
8472 2003-05-18 Andreas Schwab <schwab@suse.de>
8473
8474 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8475 dependencies.
8476 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8477 as m68k_linux_extract_return_value.
8478 (DEPRECATED_STORE_RETURN_VALUE): Define as
8479 m68k_linux_store_return_value.
8480 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8481 m68k_linux_extract_struct_value_address.
8482 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8483 get_next_frame, get_frame_base, get_frame_pc.
8484 (m68k_linux_frame_saved_pc): Use get_frame_base.
8485 (m68k_linux_extract_return_value): New function.
8486 (m68k_linux_store_return_value): New function.
8487 (m68k_linux_extract_struct_value_address): New function.
8488 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8489
8490 * c-exp.y (typebase): Remove duplicate occurence of
8491 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8492 of lookup_signed_typename.
8493
8494 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8495
8496 * dwarf2loc.c (find_location_expression): Change type of second
8497 argument to `size_t *'.
8498 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8499 for size variable.
8500
8501 2003-05-18 David Carlton <carlton@bactrian.org>
8502
8503 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8504 'linkage_name'. Add comment.
8505 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8506 'linkage_name'.
8507 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8508 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8509 (lookup_block_symbol): Ditto.
8510
8511 2003-05-16 Andrew Cagney <cagney@redhat.com>
8512
8513 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8514 * gdbarch.h, gdbarch.c: Re-generate.
8515 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8516 * TODO (REGISTER_BYTES): Delete reference.
8517 * alpha-tdep.c (alpha_gdbarch_init): Update.
8518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8519 * x86-64-tdep.c (x86_64_init_abi): Update.
8520 * vax-tdep.c (vax_gdbarch_init): Update.
8521 * v850-tdep.c (v850_gdbarch_init): Update.
8522 * sparc-tdep.c (sparc_gdbarch_init): Update.
8523 * sh-tdep.c (sh_gdbarch_init): Update.
8524 * s390-tdep.c (s390_gdbarch_init): Update.
8525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8526 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8527 (ns32k_gdbarch_init_32382): Update.
8528 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8529 * mcore-tdep.c (mcore_gdbarch_init): Update.
8530 * m68k-tdep.c (m68k_gdbarch_init): Update.
8531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8532 * ia64-tdep.c (ia64_gdbarch_init): Update.
8533 * i386-tdep.c (i386_gdbarch_init): Update.
8534 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8535 * hppa-tdep.c (hppa_gdbarch_init): Update.
8536 * h8300-tdep.c (h8300_gdbarch_init): Update.
8537 * frv-tdep.c (frv_gdbarch_init): Update.
8538 * cris-tdep.c (cris_gdbarch_init): Update.
8539 * avr-tdep.c (avr_gdbarch_init): Update.
8540 * arm-tdep.c (arm_gdbarch_init): Update.
8541 * sparc-tdep.c (sparc_pop_frame): Update.
8542 * rs6000-tdep.c (rs6000_pop_frame): Update.
8543 * remote.c (init_remote_state): Update.
8544 (remote_prepare_to_store): Update.
8545 * remote-vx.c (vx_prepare_to_store): Update.
8546 * remote-sds.c (sds_fetch_registers): Update.
8547 (sds_prepare_to_store): Update.
8548 * remote-array.c: Update.
8549 * regcache.c (init_legacy_regcache_descr): Update.
8550 (init_regcache_descr): Update.
8551 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8552 (mips_o64_extract_return_value): Update.
8553 * irix5-nat.c (fetch_core_registers): Update.
8554 * irix4-nat.c (fetch_core_registers): Update.
8555 * i386-tdep.h: Update.
8556 * hppa-tdep.c (pa_do_registers_info): Update.
8557 (pa_do_strcat_registers_info): Update.
8558 * cris-tdep.c (cris_register_bytes_ok): Update.
8559 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8560 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8561 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8562 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8563 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8564 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8565 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8566 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8567 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8568 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8569 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8570 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8571 (REGISTER_BYTES_OK): Update.
8572 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8573 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8574
8575 2003-05-16 Ian Lance Taylor <ian@airs.com>
8576
8577 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8578 (vax_print_insn, print_insn_arg): Remove static functions.
8579 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8580 print_insn_vax from opcodes library.
8581 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8582
8583 2003-05-15 Andrew Cagney <cagney@redhat.com>
8584
8585 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8586 * target.h (memory_breakpoint_from_pc): Delete declaration.
8587 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8588 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8589 * monitor.c (monitor_insert_breakpoint): Use
8590 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8591 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8592 * gdbarch.h, gdbarch.c: Re-generate.
8593 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8594 (sparc_gdbarch_init): Set breakpoint_from_pc to
8595 sparc_breakpoint_from_pc.
8596 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8597 (BREAKPOINT_FROM_PC): Define.
8598 (sparc_breakpoint_from_pc): Declare.
8599 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8600 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8601 (BREAKPOINT_FROM_PC): Define.
8602 (BREAKPOINT): Delete macro.
8603 * target.h: Update comment.
8604 * s390-tdep.c (s390_gdbarch_init): Update comments.
8605 * remote.c: Update comments.
8606 * remote-mips.c: Update comments.
8607 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8608 * mem-break.c: Update comment.
8609 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8610 (ia64_memory_insert_breakpoint): Update.
8611 * config/sparc/tm-sparc.h: Update comment.
8612 * config/pa/tm-hppa64.h: Update comment.
8613 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8614 (rs6000_breakpoint_from_pc): Update.
8615 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8616 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8617 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8618 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8619 (mips_breakpoint_from_pc): Update.
8620 (mips_dump_tdep): Update.
8621
8622 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8623 * minsyms.c (lookup_minimal_symbol): Inline
8624 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8625
8626 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8627 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8628 * p-lang.c (pascal_printstr): Ditto.
8629 * objc-lang.c (objc_printstr): Ditto.
8630 * m2-lang.c (m2_printstr): Ditto.
8631 * jv-valprint.c (java_print_value_fields): Ditto.
8632 * f-lang.c (f_printstr): Ditto.
8633 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8634 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8635 for repeat_count_threshold.
8636 * Makefile.in (cp-valprint.o): Update dependencies.
8637
8638 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8639
8640 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8641 (examine_prologue): Support looking through leaf functions, knowing
8642 they start with mov r2,r12. Support skipping over indirect stores
8643 of the input registers. Upon hitting a non-nop branch instruction
8644 or predicated instruction, bail out by setting lim_pc to the current
8645 pc value in the loop. At the end, if the lim_pc value is still
8646 beyond our calculated value and we have trust_limit set,
8647 use the lim_pc value.
8648
8649 2003-05-15 Andrew Cagney <cagney@redhat.com>
8650
8651 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8652 generic_find_dummy_frame.
8653 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8654 (deprecated_generic_find_dummy_frame): Update.
8655 (deprecated_read_register_dummy): Update.
8656 * frame.c (deprecated_generic_get_saved_register): Update.
8657
8658 2003-05-15 Theodore A. Roth <troth@openavr.org>
8659
8660 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8661 (avr_gdbarch_init): Set breakpoint_from_pc method.
8662
8663 2003-05-15 Andrew Cagney <cagney@redhat.com>
8664
8665 * regcache.c (build_regcache): Set deprecated_register_valid
8666 directly.
8667 (deprecated_grub_regcache_for_register_valid): Delete function.
8668 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8669 declaration.
8670
8671 2003-05-15 David Carlton <carlton@bactrian.org>
8672
8673 Committed by Elena Zannoni <ezannoni@redhat.com>
8674 * symtab.c (lookup_symbol_aux): Delete calls to
8675 lookup_symbol_aux_minsyms.
8676 (lookup_symbol_aux_minsyms): Comment out function and
8677 prototype. Delete lookup by mangled name.
8678
8679 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8680
8681 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8682 correctly indicate an empty stack and ``stack_allocated'' to the
8683 indicate the number of elements initially allocated.
8684 (dwarf_expr_grow_stack): Simplify method for computing new
8685 stack size. Don't loop infinitely if ``stack_len'' is zero.
8686 (execute_stack_op): Move ``ctx->in_reg'' initialization
8687 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8688 be used in conjuction with DW_OP_piece. Revise error message
8689 accordingly.
8690
8691 2003-05-14 Theodore A. Roth <troth@openavr.org>
8692
8693 * MAINTAINERS: Update my email address.
8694 * avr-tdep.c: Ditto.
8695
8696 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8697
8698 * symtab.h (enum domain_enum): Rename from namespace_enum.
8699 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8700 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8701 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8702 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8703 TYPES_NAMESPACE, METHODS_NAMESPACE.
8704 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8705 (struct symbol, struct partial_symbol): Rename field
8706 'namespace_enum namespace' to 'domain_enum domain'.
8707 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8708 Delete old define kludge for namespace.
8709
8710 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8711 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8712 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8713 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8714 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8715 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8716 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8717 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8718 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8719 occurrences of the above.
8720
8721 2003-05-14 Ian Lance Taylor <ian@airs.com>
8722
8723 * Makefile.in (install-only): Use $(SHELL) when running
8724 mkinstalldirs.
8725
8726 2003-05-13 Ian Lance Taylor <ian@airs.com>
8727
8728 * MAINTAINERS (write after approval): Add myself.
8729
8730 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8731 second and third arguments.
8732 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8733 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8734
8735 2003-05-13 Andrew Cagney <cagney@redhat.com>
8736
8737 * defs.h (store_address): Delete declaration.
8738 findvar.c (store_address): Delete function.
8739 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8740 store_unsigned_integer.
8741 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8742 * v850-tdep.c (v850_push_arguments): Ditto.
8743 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8744 * sh-tdep.c (sh64_get_saved_register): Ditto.
8745 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8746 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8747 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8748 (mips_get_saved_register): Ditto.
8749 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8750 (find_func_descr, ia64_push_arguments): Ditto.
8751 * i386-tdep.c (i386_push_arguments): Ditto.
8752 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8753 * frv-tdep.c (frv_push_arguments): Ditto.
8754 * frame.c (legacy_saved_regs_prev_register): Ditto.
8755 (deprecated_generic_get_saved_register): Ditto.
8756 * findvar.c (unsigned_address_to_pointer): Ditto.
8757 * dwarf2read.c (dwarf2_const_value): Ditto.
8758 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8759 * alpha-tdep.c (alpha_push_arguments): Ditto.
8760
8761 2003-05-12 J. Brobecker <brobecker@gnat.com>
8762
8763 * NEWS: Mention that the hppa-hpux port has been partially
8764 multiarched (32bit ABIT only, so far).
8765
8766 2003-05-11 Andrew Cagney <cagney@redhat.com>
8767
8768 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8769 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8770 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8771 sim/testsuite/sim/arm/misaligned2.ms, and
8772 sim/testsuite/sim/arm/misaligned3.ms.
8773 * disasm.h (struct ui_file): Add opaque struct declaration.
8774 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8775 * frame.h (struct ui_file): Ditto.
8776
8777 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8778
8779 * value.h: Pretty print.
8780
8781 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8782
8783 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8784
8785 2003-05-08 Andrew Cagney <cagney@redhat.com>
8786
8787 * regcache.h (max_register_size): Delete declaration.
8788 * regcache.c (max_register_size): Delete function.
8789 (struct regcache_descr): Delete field "max_register_size".
8790 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8791 registers fit in MAX_REGISTER_SIZE.
8792 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8793 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8794 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8795 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8796 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8797 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8798 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8799 * dve3900-rom.c, hppa-tdep.c: Ditto.
8800
8801 2003-05-08 David Carlton <carlton@math.stanford.edu>
8802
8803 * valops.c (push_word): Fix typo.
8804
8805 2003-05-08 Andrew Cagney <cagney@redhat.com>
8806
8807 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8808 * gdbarch.h: Re-generate.
8809 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8810 (legacy_max_register_raw_size): Delete declaration.
8811 * regcache.c (legacy_max_register_raw_size): Delete function.
8812 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8813 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8814 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8815 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8816 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8817 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8818 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8819 * findvar.c, dwarf2cfi.c: Ditto.
8820
8821 2003-05-08 Andrew Cagney <cagney@redhat.com>
8822
8823 * mips-tdep.c (read_signed_register): New function, moved to here
8824 from "regcache.c".
8825 (read_signed_register_pid): Ditto.
8826 * regcache.c (read_signed_register_pid): Delete function, moved to
8827 "mips-tdep.c".
8828 (read_signed_register): Ditto.
8829 * regcache.h (read_signed_register): Delete declaration.
8830 (read_signed_register_pid): Delete declaration.
8831
8832 2003-05-08 Andrew Cagney <cagney@redhat.com>
8833
8834 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8835 * gdbarch.h: Re-generate.
8836 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8837 (legacy_max_register_virtual_size): Delete declaration.
8838 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8839 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8840 * tracepoint.c (memrange_sortmerge): Ditto.
8841 * sparc-tdep.c (sparc_print_registers): Ditto.
8842 * regcache.c (legacy_max_register_virtual_size): Delete function.
8843
8844 2002-05-08 J. Brobecker <brobecker@gnat.com>
8845
8846 * fork-child.c (escape_bang_in_quoted_argument): New function.
8847 (fork_inferior): Escape '!' characters in quoted arguments
8848 only when needed.
8849
8850 2003-05-08 J. Brobecker <brobecker@gnat.com>
8851
8852 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8853 the language of the CU is not currently supported by GDB.
8854
8855 2003-05-08 J. Brobecker <brobecker@gnat.com>
8856
8857 * defs.h (language): Add language_minimal enum value.
8858 * c-lang.c (minimal_language_defn): New language definition.
8859 (_initialize_c_language): Add the new minimal language to the list
8860 of languages known to GDB.
8861
8862 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8863
8864 * frame.c (get_frame_type): Don't attempt to lazily initialize
8865 frame's unwinder for legacy frames.
8866
8867 2003-05-07 Andrew Cagney <cagney@redhat.com>
8868
8869 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8870 and "regcache" parameters.
8871 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8872
8873 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8874
8875 * dwarf2read.c (dwarf_decode_lines): Only use output of
8876 check_cu_functions() when calling record_line(). Do not update
8877 the current address.
8878
8879 2003-05-07 Andrew Cagney <cagney@redhat.com>
8880
8881 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8882 code.
8883
8884 2003-05-07 Jim Blandy <jimb@redhat.com>
8885
8886 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8887 'maint info symtabs' and 'maint info psymtabs'.
8888 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8889 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8890 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8891 Declarations updated.
8892 * maint.c (maintenance_list_command): Delete.
8893 (_initialize_maint_cmds): Update calls to add_cmd.
8894 * gdbcmd.h (maintenancelistlist): Delete declaration.
8895 * cli/cli-cmds.c (maintenancelistlist): Delete.
8896 (init_cmd_lists): Don't initialize it.
8897 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8898
8899 2003-05-07 Andrew Cagney <cagney@redhat.com>
8900
8901 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8902 "regcache".
8903 (d10v_print_registers_info): Update.
8904 (d10v_dmap_register, d10v_imap_register): Delete functions.
8905 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8906 and "imap_register".
8907 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8908 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8909 * arch-utils.c (generic_remote_translate_xfer_address): Add
8910 "regcache" and "gdbarch" parameters.
8911 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8912 parameter. Change class to multi-arch.
8913 * gdbarch.h, gdbarch.c: Re-generate.
8914 * remote.c (remote_xfer_memory): Use
8915 gdbarch_remote_translate_xfer_address.
8916
8917 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8918
8919 * infrun.c (prev_pc): Move declaration ahead of proceed().
8920 (proceed): Refresh prev_pc value before resuming.
8921 (stop_stepping): Remove code to refresh prev_pc.
8922
8923 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8924
8925 * nto-tdep.c: Removed stray comment.
8926
8927 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8928
8929 * i386-nto-tdep.c: Fix old K&R function definitions.
8930 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8931 Also change add_show_from_set() call to add_setshow_cmd().
8932 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8933
8934 2003-05-05 Andrew Cagney <cagney@redhat.com>
8935
8936 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8937 (fprint_dummy_frames): New function.
8938 (maintenance_print_dummy_frames): New function.
8939 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8940 * frame.c (fprint_frame_id): Make global.
8941 * frame.h (fprint_frame_id): Declare.
8942 * Makefile.in (dummy-frame.o): Update dependencies.
8943
8944 2003-05-05 Andrew Cagney <cagney@redhat.com>
8945
8946 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8947 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8948 SIZEOF_CALL_DUMMY_WORDS.
8949 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8950 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8951 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8952 CALL_DUMMY_BREAKPOINT_OFFSET.
8953 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8954 CALL_DUMMY_START_OFFSET.
8955 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8956 * gdbarch.h, gdbarch.c: Re-generate.
8957 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8958 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8959 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8960 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8961 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8962 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8963 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8964 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8965 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8966 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8967 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8968 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8969 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8970 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8971 * config/sparc/tm-sparc.h: Update.
8972
8973 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8974
8975 * configure.tgt: Add i[3456]86-*-nto*.
8976 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8977 * nto-tdep.c: New file. Neutrino target support routines.
8978 * nto-tdep.h: New file. Neutrino target header.
8979 * config/tm-qnxnto.h: New file.
8980 * config/i386/i386nto.mt: New file.
8981 * config/i386/tm-i386nto.h: New file.
8982
8983 2003-05-04 Andrew Cagney <cagney@redhat.com>
8984
8985 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8986 (load_infrun_state): Ditto.
8987 (struct thread_info): Drop "prev_func_name" field.
8988 * thread.c (load_infrun_state): Update.
8989 (save_infrun_state): Update.
8990 * infrun.c (prev_func_name): Delete variable.
8991 (init_wait_for_inferior): Do not clear prev_func_name.
8992 (stop_stepping, keep_going, context_switch): Do not swap
8993 prev_func_name.
8994 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8995 instead of PC_IN_SIGTRAMP.
8996
8997 2003-05-04 Andrew Cagney <cagney@redhat.com>
8998
8999 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9000 REGISTER_BYTE with register_offset_hack.
9001 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9002 that REGISTER_BYTE is consistent with the regcache.
9003 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9004 * gdbarch.h, gdbarch.c: Regenerate.
9005
9006 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9007
9008 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9009 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9010
9011 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9012
9013 2003-05-03 J. Brobecker <brobecker@gnat.com>
9014
9015 From Thierry Schneider <tpschneider1@yahoo.com>
9016 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9017 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9018 (mi-cmd-symbol.o): Add rule.
9019
9020 2003-05-03 Andrew Cagney <cagney@redhat.com>
9021
9022 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9023 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9024 * gdbarch.h, gdbarch.c: Re-generate.
9025 * d10v-tdep.c (d10v_push_dummy_code): New function.
9026 (d10v_gdbarch_init): Set push_dummy_code.
9027 * infcall.c (legacy_push_dummy_code): New function.
9028 (generic_push_dummy_code): New function.
9029 (push_dummy_code): New function.
9030 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9031 instead of dummy_addr, to push_dummy_call. Move call to
9032 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9033 switch.
9034 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9035
9036 2003-05-03 Andrew Cagney <cagney@redhat.com>
9037
9038 * disasm.h (print_insn): Declare.
9039 * disasm.c (init_gdb_disassemble_info): New function.
9040 (gdb_disassembly): Call init_gdb_disassemble_info.
9041 (gdb_print_insn): New function.
9042 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9043 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9044 * mcore-tdep.c: Include "disasm.h"
9045 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9046 * d10v-tdep.c: Include "disasm.h".
9047 (display_trace): Call gdb_print_insn, instead of print_insn.
9048 (print_insn): Delete function.
9049 * printcmd.c: Include "disasm.h".
9050 (print_insn): Delete function.
9051 (print_formatted): Call gdb_print_insn, instead of print_insn.
9052 * Makefile.in (printcmd.o): Update dependencies.
9053 (mcore-tdep.o, d10v-tdep.o): Ditto.
9054
9055 2003-05-02 Andrew Cagney <cagney@redhat.com>
9056
9057 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9058 PC_REGNUM, re-indent.
9059 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9060 PC_REGNUM isn't set.
9061
9062 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9063 * gdbarch.h, gdbarch.c: Re-generate.
9064 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9065 register_virtual_size, pc_regnum, or register_bytes.
9066 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9067 (d10v_register_type): Use D10V_PC_REGNUM.
9068 (d10v_print_registers_info, d10v_read_pc): Ditto.
9069 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9070 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9071
9072 2003-05-02 David Carlton <carlton@bactrian.org>
9073
9074 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9075 the name with mstrsave.
9076
9077 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9078
9079 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9080 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9081 (host_charset_name, target_charset_name): New vars for use by
9082 set/show commands.
9083 (host_charset_enum, target_charset_enum): New enums for set/show
9084 commands.
9085 (set_charset_sfunc, set_host_charset_sfunc,
9086 set_target_charset_sfunc): New functions.
9087 (set_host_charset, set_target_charset): Make static.
9088 (list_charsets, set_host_charset_command,
9089 set_target_charset_command): Delete functions.
9090 (show_charset_command): Rewrite as....
9091 (show_charset): Hook this up with the set/show command mechanism.
9092 (_initialize_charset): Change names of charsets to match the
9093 set/show enums. Use host_charset_name and target_charset_name.
9094 Use set/show mechanism for charset, host-charset, target-charset
9095 commands. Do not make 'show host-charset' and 'show
9096 target-charset' be aliases of 'show charset'.
9097
9098 * charset.h (set_host_charset, set_target_charset): Don't export,
9099 they are not used outside the file.
9100
9101 2003-05-01 Andrew Cagney <cagney@redhat.com>
9102
9103 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9104 (gdb_disassembly): Make "di" non static, always initialize and
9105 cleanup. Always use dis_asm_read_memory.
9106 (gdb_dis_asm_read_memory): Delete function.
9107
9108 2003-05-01 Andrew Cagney <cagney@redhat.com>
9109
9110 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9111 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9112
9113 2003-04-30 Andrew Cagney <cagney@redhat.com>
9114
9115 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9116 "tm_print_insn_info".
9117 (TARGET_PRINT_INSN_INFO): Delete macro.
9118 (dis_asm_read_memory): Delete function declaration.
9119 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9120 (tm_print_insn_info): Delete variable definition.
9121 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9122 * gdbarch.h, gdbarch.c: Re-generate.
9123 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9124 "deprecated_tm_print_insn_info".
9125 * mcore-tdep.c (mcore_dump_insn): Ditto.
9126 * mips-tdep.c (mips_gdbarch_init): Ditto.
9127 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9128 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9129 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9130 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9131 instead of TARGET_PRINT_INSN_INFO, add comment.
9132 * s390-tdep.c (s390_get_frame_info): Instead of
9133 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9134 (s390_check_function_end, s390_is_sigreturn): Ditto.
9135 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9136 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9137 * disasm.c: Include "gdbcore.h".
9138 (_initialize_disasm): New function, initialize
9139 "deprecated_tm_print_insn_info".
9140 (deprecated_tm_print_insn_info): New variable.
9141 (dis_asm_read_memory): Moved from "corefile.c", made static.
9142 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9143 * Makefile.in (disasm.o): Update dependencies.
9144
9145 2003-04-30 Andrew Cagney <cagney@redhat.com>
9146
9147 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9148
9149 2003-04-29 Adam Fedor <fedor@gnu.org>
9150
9151 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9152 * infcall.c (find_function_addr): Make non-static.
9153 * infcall.h (find_function_addr): Declare.
9154 * Makefile.in (eval.o): Update dependencies.
9155
9156 2003-04-28 Adam Fedor <fedor@gnu.org>
9157
9158 * symtab.c (symbol_find_demangled_name): Check for and demangle
9159 ObjC symbols.
9160 (symbol_init_demangled_name): Init for language_objc as well.
9161
9162 2003-04-28 Andrew Cagney <cagney@redhat.com>
9163
9164 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9165 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9166 * gdbarch.h, gdbarch.c: Re-generate.
9167 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9168 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9169 * inferior.h (deprecated_read_fp): Rename read_fp.
9170 (generic_target_read_fp): Delete declaration.
9171 * regcache.c (generic_target_read_fp): Delete function.
9172 (deprecated_read_fp): Replace read_fp, use
9173 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9174 * d10v-tdep.c (d10v_read_fp): Delete function.
9175 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9176
9177 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9178 deprecated_target_read_fp to generic_target_read_fp.
9179 * sh-tdep.c (sh_gdbarch_init): Ditto.
9180 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9182 * frv-tdep.c (frv_gdbarch_init): Ditto.
9183
9184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9185 deprecated_fp_regnum.
9186 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9187 * vax-tdep.c (vax_gdbarch_init): Ditto.
9188 * v850-tdep.c (v850_gdbarch_init): Ditto.
9189 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9190 * sh-tdep.c (sh_gdbarch_init): Ditto.
9191 * s390-tdep.c (s390_gdbarch_init): Ditto.
9192 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9193 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9194 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9195 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9197 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9198 * i386-tdep.c (i386_gdbarch_init): Ditto.
9199 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9200 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9201 * frv-tdep.c (frv_gdbarch_init): Ditto.
9202 * cris-tdep.c (cris_gdbarch_init): Ditto.
9203 * avr-tdep.c (avr_gdbarch_init): Ditto.
9204 * arm-tdep.c (arm_gdbarch_init): Ditto.
9205 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9206
9207 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9208 * v850-tdep.c (v850_gdbarch_init): Ditto.
9209 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9210 * sh-tdep.c (sh_gdbarch_init): Ditto.
9211 * s390-tdep.c (s390_gdbarch_init): Ditto.
9212 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9214 * mips-tdep.c (mips_gdbarch_init): Ditto.
9215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9216 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9217 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9218 * frv-tdep.c (frv_gdbarch_init): Ditto.
9219 * avr-tdep.c (avr_gdbarch_init): Ditto.
9220 * arm-tdep.c (arm_gdbarch_init): Ditto.
9221
9222 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9223 DEPRECATED_FP_REGNUM.
9224 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9225 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9226 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9227 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9228 (sparc32_register_virtual_type): Ditto.
9229 * sh-tdep.c (sh64_frame_chain): Ditto.
9230 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9231 (sh_nofp_frame_init_saved_regs): Ditto.
9232 (sh64_nofp_frame_init_saved_regs): Ditto.
9233 (sh_fp_frame_init_saved_regs): Ditto.
9234 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9235 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9236 * procfs.c (procfs_fetch_registers): Ditto.
9237 (procfs_store_registers): Ditto.
9238 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9239 (store_inferior_registers, fetch_core_registers): Ditto.
9240 (fetch_kcore_registers, clear_regs): Ditto.
9241 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9242 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9243 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9244 * nlm/i386.c (do_status): Ditto.
9245 * mipsv4-nat.c (supply_gregset): Ditto.
9246 * mips-tdep.c: Ditto for comments.
9247 * mips-nat.c (fetch_inferior_registers): Ditto.
9248 (store_inferior_registers, fetch_core_registers): Ditto.
9249 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9250 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9251 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9252 (i386_do_pop_frame, i386_register_type): Ditto.
9253 * hppa-tdep.c (hppa_frame_chain): Ditto.
9254 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9255 (hppa_pop_frame, hppa_read_fp): Ditto.
9256 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9257 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9258 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9259 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9260 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9261 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9262 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9263 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9264 * blockframe.c: Ditto for comments.
9265 * arch-utils.h: Ditto for comments.
9266 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9267 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9268 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9269 * alpha-tdep.h: Ditto for comments.
9270 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9271 (alpha_cannot_store_register): Ditto.
9272 (alpha_push_dummy_frame): Ditto.
9273 * alpha-nat.c (supply_gregset): Ditto.
9274
9275 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9276 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9277 * config/sparc/tm-sparc.h: Update comment.
9278
9279 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9280 deprecated_read_fp instead of TARGET_READ_FP.
9281 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9282 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9283 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9284 deprecated_read_fp instead of read_fp.
9285 * s390-tdep.c (s390_push_arguments): Ditto.
9286 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9287 * frame.h: Ditto in comments.
9288 * frame.c (legacy_get_prev_frame): Ditto.
9289 * dummy-frame.c (dummy_frame_this_id): Ditto.
9290 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9291
9292 2003-04-28 Andrew Cagney <cagney@redhat.com>
9293
9294 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9295 * gdbarch.h, gdbarch.c: Re-generate.
9296 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9297 * vax-tdep.c (_initialize_vax_tdep): Update.
9298 * v850-tdep.c (_initialize_v850_tdep): Update.
9299 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9300 * s390-tdep.c (_initialize_s390_tdep): Update.
9301 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9302 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9303 * mips-tdep.c (_initialize_mips_tdep): Update.
9304 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9305 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9306 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9307 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9308 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9309 * frv-tdep.c (_initialize_frv_tdep): Update.
9310 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9311 (_initialize_cris_tdep): Update.
9312 * arch-utils.c (legacy_print_insn): Update.
9313 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9314
9315 2003-04-26 Adam Fedor <fedor@gnu.org>
9316
9317 * linespec.c (decode_objc): New function to decode ObjC calls
9318 (decode_line_1): Check for ObjC calls (using decode_objc)
9319 * Makefile (linespec.o): Update dependencies.
9320
9321 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9322
9323 * breakpoint.h (struct breakpoint_ops): New.
9324 (struct breakpoint): Add ops member.
9325
9326 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9327 (mention): Use new breakpoint ops member.
9328 (set_raw_breakpoint): Initialize ops field to NULL.
9329 (print_exception_catchpoint, print_one_exception_catchpoint)
9330 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9331 (gnu_v3_exception_catchpoint_ops): New.
9332 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9333
9334 2003-04-25 Adam Fedor <fedor@gnu.org>
9335
9336 * Makefile.in (COMMON_OBS): Add objc-lang.o
9337
9338 2003-04-25 Andrew Cagney <cagney@redhat.com>
9339
9340 * d10v-tdep.c (print_insn): Delete function.
9341 (display_trace): Use TARGET_PRINT_INSN.
9342 (_initialize_d10v_tdep): Do not set tm_print_insn.
9343 (d10v_gdbarch_init): Set print_insn.
9344
9345 2003-04-25 Andrew Cagney <cagney@redhat.com>
9346
9347 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9348 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9349 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9350 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9351 (nr_dmap_regs, a0_regnum): ... new functions.
9352 (d10v_print_registers_info): Use a0_regnum, use register_size.
9353 (d10v_register_byte): Delete function.
9354 (d10v_register_raw_size): Delete function.
9355 (d10v_register_type): Use a0_regnum.
9356 (d10v_print_registers_info): Use a0_regnum.
9357 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9358 (d10v_gdbarch_init): Do not set register_byte or
9359 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9360 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9361 extract_address.
9362 (trace_command): Use XCALLOC.
9363 (print_insn): Delete reference to tm_print_insn.
9364 (saved_regs_unwinder): Use store_unsigned_integer instead of
9365 store_address.
9366 * frame.h (FRAME_OBSTACK_CALLOC): Define
9367
9368 2003-04-25 David Carlton <carlton@bactrian.org>
9369
9370 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9371
9372 2003-04-24 Adam Fedor <fedor@gnu.org>
9373
9374 * objc-lang.c: Include "valprint.h"
9375 * Makefile.in (objc-lang.o): Update dependencies.
9376
9377 2003-04-24 Adam Fedor <fedor@gnu.org>
9378
9379 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9380 architecture dependant compilation and mark as unimplemented
9381 (until they get put in the gdbarch vector).
9382
9383 2003-04-23 David Carlton <carlton@bactrian.org>
9384
9385 * cp-support.c (cp_find_first_component): Accept 'operator' in
9386 more locations.
9387
9388 2003-04-23 Andrew Cagney <cagney@redhat.com>
9389
9390 * infcall.c (call_function_by_hand): Eliminate redundant
9391 indentation. Move "saved_async" and "old_cleanups" to where they
9392 are needed.
9393
9394 2003-04-23 Andrew Cagney <cagney@redhat.com>
9395
9396 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9397 and "buffer". Move the "name" code to where it is needed.
9398
9399 2003-04-23 Andrew Cagney <cagney@redhat.com>
9400
9401 * infcall.c (call_function_by_hand): Move variables "start_sp",
9402 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9403 code to ON_STACK switch branch.
9404
9405 2003-04-23 Andrew Cagney <cagney@redhat.com>
9406
9407 * infcall.c (call_function_by_hand): Make declaration of "i",
9408 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9409 lint.
9410
9411 2003-04-23 Andrew Cagney <cagney@redhat.com>
9412
9413 * infcall.c (call_function_by_hand): Delete variable
9414 "n_method_args". Localize "param_type"'s declaration to the loop
9415 that it is used. Reinstate code assigning to said variable -
9416 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9417 Rationalize code using "param_type".
9418
9419 2003-04-22 Andrew Cagney <cagney@redhat.com>
9420
9421 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9422 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9423 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9424 to DEPRECATED_PUSH_RETURN_ADDRESS.
9425
9426 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9427
9428 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9429 on the DWARF2 register number prior to fetching a register.
9430
9431 2003-04-22 J. Brobecker <brobecker@gnat.com>
9432
9433 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9434 Update all the tests using SOFT_FLOAT considering the fact that
9435 this macro was always set to 0.
9436 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9437 considering the fact that this macro was always set to 0.
9438 * hppa-tdep.h (hppa_store_return_value): Likewise.
9439 (hppa_extract_return_value): Likewise.
9440
9441 2003-04-22 J. Brobecker <brobecker@gnat.com>
9442
9443 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9444 the hppa-pro target only.
9445
9446 2003-04-21 J. Brobecker <brobecker@gnat.com>
9447
9448 Ongoing multi-arch conversion effort for HP/UX:
9449 * config/pa/tm-hppa.h: Move all macro that are no longer
9450 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9451 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9452
9453 2003-04-21 J. Brobecker <brobecker@gnat.com>
9454
9455 * config/pa/tm-hppa.h: Obsolete a section that was only used
9456 for hppa-pro.
9457
9458 2003-04-21 J. Brobecker <brobecker@gnat.com>
9459
9460 Ongoing multi-arch conversion for HP/UX.
9461 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9462 if already defined (allows hppa64 to stay non-multiarched for now).
9463 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9464
9465 2003-04-21 Andrew Cagney <cagney@redhat.com>
9466
9467 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9468
9469 2003-04-21 Andrew Cagney <cagney@redhat.com>
9470
9471 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9472 "i386_num_mmx_regs".
9473
9474 2003-04-21 Andrew Cagney <cagney@redhat.com>
9475
9476 * infcall.c: New file.
9477 * infcall.h: New file.
9478 * valarith.c: Include "infcall.h".
9479 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9480 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9481 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9482 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9483 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9484 (SFILES): Add "infcall.c"
9485 (COMMON_OBS): Add "infcall.o".
9486 (infcall.o): Specify dependencies.
9487 * value.h (call_function_by_hand): Delete declaration.
9488 * inferior.h (run_stack_dummy): Delete declaration.
9489 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9490 (run_stack_dummy): Move to "infcall.c", merged into
9491 call_function_by_hand.
9492 * valops.c (call_function_by_hand): Moved to "infcall.c".
9493 (find_function_addr, value_arg_coerce): Ditto.
9494 (unwindonsignal_p, coerce_float_to_double): Ditto.
9495 (_initialize_valops): Move "set/show coerce-float-to-double", and
9496 "set/show unwindonsignal" commands to "infcall.c".
9497 * v850-tdep.c, target.h: Update comments.
9498 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9499 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9500 (sh64_init_extra_frame_info): Update comments.
9501 * mn10300-tdep.c: Update comments.
9502 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9503 * config/sparc/tm-sparc.h: Update comments.
9504 * breakpoint.h: Update comments.
9505 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9506 * arm-tdep.c: Update comment.
9507
9508 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9509
9510 * i386-tdep.c (i386_num_register_names): New variable.
9511 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9512 (MM0_REGNUM): Remove redundant parentheses in define.
9513 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9514 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9515 i386_mxcsr_regnum_p): Remove redundant parentheses.
9516 (i386_register_name): Use i386_num_register_names.
9517
9518 * i386-tdep.c (i386_extract_return_value,
9519 i386_store_return_value): Correct check for availability of
9520 floating-point registers.
9521
9522 * i386-tdep.c (i386_frame_num_args): Remove function.
9523 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9524
9525 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9526 mmx_regnum_to_fp_regnum. Adjust all callers.
9527
9528 * i386-tdep.c (i386_get_longjmp_target): Use
9529 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9530 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9531 extract_address.
9532
9533 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9534
9535 * core-regset.c: Update comments to reflect reality. Re-order
9536 includes.
9537 (fetch_core_registers): Use switch instead of if. Remove
9538 redundant prototype.
9539
9540 2003-04-18 Jim Blandy <jimb@redhat.com>
9541
9542 * s390-tdep.c (s390_frame_align): New function.
9543 (s390_gdbarch_init): Register it with the gdbarch object.
9544
9545 2003-04-17 Richard Henderson <rth@redhat.com>
9546
9547 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9548
9549 2003-04-17 Michael Snyder <msnyder@redhat.com>
9550 Karen Bennet <bennet@redhat.com>
9551
9552 Committed by Elena Zannoni <ezannoni@redhat.com>
9553 * gdb_gcore.sh: New script to create a core dump of a process.
9554
9555 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9556
9557 * values.c (value_being_returned): Don't fetch the return
9558 value if the return type is void.
9559
9560 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9561
9562 * thread-db.c: Reindented.
9563
9564 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9565
9566 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9567 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9568 as types.
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9595
9596 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9597 the size of ``long double'' to 16, instead of 8.
9598
9599 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9600
9601 * i386-linux-nat.c: Add some whitespace to make things more
9602 readable.
9603 (fetch_register, store_register, fetch_inferior_registers,
9604 store_inferior_registers): Get rid of assignment in if-statement.
9605 (store_register): Fix typo in error message.
9606
9607 2003-04-16 Andrew Cagney <cagney@redhat.com>
9608
9609 * utils.c (xmmalloc): Always allocate something, matches
9610 libiberty/xmalloc's semantics.
9611 (xmrealloc, xmcalloc): Ditto.
9612
9613 2003-04-16 Andrew Cagney <cagney@redhat.com>
9614
9615 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9616 update comments.
9617 (get_frame_type): Initialize unwind and type when needed.
9618 (get_frame_id, frame_register_unwind): Ditto.
9619
9620 2003-04-16 Andrew Cagney <cagney@redhat.com>
9621
9622 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9623 obsolete.
9624 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9625 * sparcl-stub.c: Obsolete file.
9626 * config/sparc/tm-sparclet.h: Obsolete file.
9627 * sparclet-stub.c: Obsolete file.
9628 * sparclet-rom.c: Obsolete file.
9629 * sparcl-tdep.c: Obsolete file.
9630 * config/sparc/tm-sparclite.h: Obsolete file.
9631 * config/sparc/sparclite.mt: Obsolete file.
9632 * config/sparc/sparclet.mt: Obsolete file.
9633 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9634 sparc86x-*-* obsolete.
9635
9636 2003-04-15 David Carlton <carlton@math.stanford.edu>
9637
9638 * Makefile.in (SFILES): Add cp-namespace.c.
9639 (COMMON_OBS): Add cp-namespace.o.
9640 (block.o): Depend on gdb_obstack_h and cp_support_h.
9641 (buildsym.o): Depend on cp_support_h.
9642 (cp-namespace.o): New.
9643 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9644 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9645 (dwarf2read.o): Depend on cp_support_h.
9646 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9647 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9648 processing_current_namespace.
9649 (read_namespace): Update processing_current_namespace; check for
9650 anonymous namespaces.
9651 (dwarf2_name): New function.
9652 (dwarf2_extension): Ditto.
9653 * cp-support.h: Update copyright, contributors.
9654 Add inclusion guards.
9655 Add opaque declaration for structs obstack, block, symbol.
9656 (struct using_direct): New struct.
9657 Add declarations for cp_find_first_component,
9658 cp_entire_prefix_len, processing_has_namespace_info,
9659 processing_current_namespace, cp_is_anonymous,
9660 cp_add_using_directive, cp_initialize_namespace,
9661 cp_finalize_namespace, cp_set_block_scope,
9662 cp_scan_for_anonymous_namespaces.
9663 * cp-namespace.c: New file.
9664 * cp-support.c: Update copyright.
9665 Include ctype.h, gdb_assert.h, gdbcmd.h.
9666 New variable maint_cplus_cmd_list.
9667 (cp_find_first_component): New function.
9668 (cp_entire_prefix_len, maint_cplus_command)
9669 (first_component_command, _initialize_cp_support): Ditto.
9670 * buildsym.c: Include cp-support.h.
9671 New variable using_list.
9672 (add_symbol_to_list): Check for anonymous namespaces.
9673 (finish_block): Set block's scope.
9674 (start_symtab): Initialize C++ namespace support.
9675 (end_symtab): Finalize C++ namespace support.
9676 * block.h: Add opaque declarations for structs
9677 block_namespace_info, using_direct, and obstack.
9678 Add declarations for block_set_scope and block_set_using.
9679 (struct block): Add 'language_specific' member.
9680 (BLOCK_NAMESPACE): New macro.
9681 * block.c: Include gdb_obstack.h and cp-support.h.
9682 (struct block_namespace_info): New struct.
9683 (block_set_scope): New function.
9684 (block_set_using, block_initialize_namespace): Ditto.
9685
9686 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9687
9688 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9689 (locate_base): Return early if there aren't any link map offsets.
9690 (svr4_solib_create_inferior_hook): Warn if shared library support
9691 is unavailable.
9692
9693 2003-04-14 David Carlton <carlton@math.stanford.edu>
9694
9695 * symtab.c (symbol_set_names): Add prefix when storing Java names
9696 in hash table. Fix for PR java/1039.
9697
9698 2003-04-14 David Carlton <carlton@math.stanford.edu>
9699
9700 * symtab.c (symbol_set_names): Rename 'name' arg to
9701 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9702 * symtab.h: Change 'name' argument in declaration of
9703 symbol_set_names to 'linkage_name'.
9704 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9705
9706 2003-04-14 Andrew Cagney <cagney@redhat.com>
9707
9708 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9709 return the fully sign-extended register value.
9710 (get_frame_pointer): Ditto.
9711 (mips_pop_frame): Initialize "proc_desc" after checking for a
9712 dummy frame.
9713
9714 2003-04-14 Andrew Cagney <cagney@redhat.com>
9715
9716 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9717 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9718 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9719 (mips_push_register): Delete function.
9720 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9721 PUSH_FP_REGNUM.
9722
9723 2003-04-14 Jim Blandy <jimb@redhat.com>
9724
9725 * symmisc.c: #include "gdb_regex.h".
9726 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9727 functions.
9728 * maint.c (maintenance_list_command): New function.
9729 (_initialize_maint_cmds): Register the above as commands.
9730 * symtab.h (maintenance_list_symtabs,
9731 maintenance_list_psymtabs): New declarations.
9732 * cli/cli-cmds.c (maintenancelistlist): New variable.
9733 (init_cmd_lists): Initialize it.
9734 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9735 * gdbcmd.h (maintenancelistlist): New declaration.
9736 * Makefile.in (symmisc.o): Update dependencies.
9737
9738 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9739
9740 * s390-nat.c: Include asm/types.h for addr_t.
9741
9742 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9743
9744 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9745 actually incoming type.
9746
9747 2003-04-13 Andrew Cagney <cagney@redhat.com>
9748
9749 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9750 get_next_frame and get_frame_saved_regs.
9751
9752 2003-04-13 Andrew Cagney <cagney@redhat.com>
9753
9754 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9755 of gdbarch_num_regs.
9756
9757 2003-04-13 Andrew Cagney <cagney@redhat.com>
9758
9759 * frame.h: Mention what replaced what in "struct frame_info".
9760 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9761 deprecated_update_frame_base_hack and
9762 deprecated_update_frame_pc_hack.
9763 * hppa-tdep.c: Ditto.
9764
9765 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9766
9767 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9768 to read_reg and update its comment. Remove regnum member.
9769 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9770 Don't call read_reg when setting in_reg. Call read_reg to get
9771 the frame base if it's in a register. Return the register number
9772 on the stack instead of in the context. Remove extra arguments
9773 to read_reg.
9774 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9775 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9776 the register number on the expression stack.
9777 (needs_frame_read_reg): Remove extra arguments.
9778
9779 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9780
9781 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9782 made non-static.
9783 (execute_stack_op): All callers updated.
9784 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9785 * dwarf2loc.c (find_location_expression): New function.
9786 (dwarf_expr_frame_base): Call it.
9787 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9788 (dwarf2_tracepoint_var_ref): New function, broken out from
9789 locexpr_tracepoint_var_ref.
9790 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9791 Make static.
9792 (loclist_read_variable, loclist_read_needs_frame): New functions.
9793 (loclist_describe_location, loclist_tracepoint_var_ref): New
9794 functions.
9795 (dwarf2_loclist_funcs): New struct location_funcs.
9796 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9797 (struct dwarf2_locexpr_baton): Add comments.
9798 (dwarf2_loclist_funcs): New extern.
9799 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9800 base_address and base_known.
9801 (dwarf_loc_buffer): New variable.
9802 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9803 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9804 (dwarf2_has_info): Initialize dwarf_loc_offset.
9805 (dwarf2_build_psymtabs): Read in .debug_loc.
9806 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9807 DWARF_LOC_SIZE.
9808 (psymtab_to_symtab_1): Likewise. Move base address calculation
9809 here, from...
9810 (dwarf2_get_pc_bounds): ... here. Use the base address from
9811 cu_header.
9812 (dwarf2_symbol_mark_computed): Handle location lists.
9813
9814 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9815
9816 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9817 if the linkage name demangled successfully.
9818
9819 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9820
9821 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9822 disassmbly_flavour): Removed.
9823
9824 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9825
9826 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9827
9828 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9829
9830 2003-04-12 Andrew Cagney <cagney@redhat.com>
9831
9832 * frame.h (struct frame_info): Move definition from here ...
9833 * frame.c (struct frame_info): ... to here.
9834
9835 2003-04-12 Andrew Cagney <cagney@redhat.com>
9836
9837 * gdbthread.h (save_infrun_state): Delete parameter
9838 "prev_func_start".
9839 (struct thread_info): Delete field "prev_func_start".
9840 (load_infrun_state): Ditto.
9841 * thread.c (load_infrun_state, save_infrun_state): Update.
9842 * infrun.c (prev_func_start): Delete variable.
9843 (context_switch, init_wait_for_inferior): Update.
9844 (stop_stepping, keep_going): Update.
9845
9846 2003-04-12 Andrew Cagney <cagney@redhat.com>
9847
9848 * gdbarch.sh: Add missing opaque declarations.
9849 * gdbarch.h: Regnerate.
9850 * symtab.h: Add missing opaque declarations.
9851 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9852 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9853 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9854 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9855 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9856 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9857 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9858 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9859 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9860 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9861 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9862 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9863 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9864
9865 2003-04-11 Andrew Cagney <cagney@redhat.com>
9866
9867 * frame.c (get_frame_id): Return this frame's "id".
9868 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9869 function start.
9870 (legacy_saved_regs_this_id): Replace function body with
9871 internal-error.
9872 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9873 FRAME_OBSTACK_ZALLOC.
9874 (create_new_frame): Mark the frame ID as valid.
9875
9876 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9877
9878 * Makefile.in (libbfd_h): Added missing setting.
9879 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9880 according to the selected ABI.
9881
9882 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9883
9884 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9885
9886 2003-04-11 Andrew Cagney <cagney@redhat.com>
9887
9888 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9889 SAVED_PC_AFTER_CALL.
9890 * gdbarch.h, gdbarch.c: Regenerate.
9891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9892 * x86-64-tdep.c (x86_64_init_abi): Update.
9893 * vax-tdep.c (vax_gdbarch_init): Update.
9894 * v850-tdep.c (v850_gdbarch_init): Update.
9895 * sparc-tdep.c (sparc_gdbarch_init): Update.
9896 * sh-tdep.c (sh_gdbarch_init): Update.
9897 * s390-tdep.c (s390_gdbarch_init): Update.
9898 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9899 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9900 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9901 * mips-tdep.c (mips_gdbarch_init): Update.
9902 * mcore-tdep.c (mcore_gdbarch_init): Update.
9903 * m68k-tdep.c (m68k_gdbarch_init): Update.
9904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9905 * ia64-tdep.c (ia64_gdbarch_init): Update.
9906 (ia64_saved_pc_after_call): Update declaration.
9907 * i386ly-tdep.c (i386lynx_init_abi): Update.
9908 * i386-tdep.c (i386_gdbarch_init): Update.
9909 * hppa-tdep.c (hppa_gdbarch_init): Update.
9910 * h8300-tdep.c (h8300_gdbarch_init): Update.
9911 * frv-tdep.c (frv_gdbarch_init): Update.
9912 * cris-tdep.c (cris_gdbarch_init): Update.
9913 * avr-tdep.c (avr_gdbarch_init): Update.
9914 * arm-tdep.c (arm_gdbarch_init): Update.
9915 * alpha-tdep.c (alpha_gdbarch_init): Update.
9916 * ns32knbsd-nat.c (frame_num_args): Update.
9917 * ns32k-tdep.c (umax_frame_num_args): Update.
9918 * mips-tdep.c (mips_init_frame_pc_first): Update.
9919 * infrun.c (step_over_function): Update.
9920 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9921 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9922 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9923 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9924 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9925 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9926 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9927 * arch-utils.c (init_frame_pc_default): Update.
9928 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9929 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9930 declaration.
9931
9932 2003-04-11 Andrew Cagney <cagney@redhat.com>
9933
9934 * i387-tdep.c: Update copyright.
9935 (i387_to_double): Delete function.
9936 (double_to_i387): Delete function.
9937
9938 2003-04-10 Andrew Cagney <cagney@redhat.com>
9939
9940 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9941 frame's function's address. Simplify.
9942 (d10v_frame_unwind_cache): Check that the frame's function is
9943 non-zero.
9944
9945 2003-04-10 Jim Blandy <jimb@redhat.com>
9946
9947 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9948 call to set_gdbarch_deprecated_push_arguments.
9949
9950 2003-04-10 Andrew Cagney <cagney@redhat.com>
9951
9952 * frame.c (fprint_frame_id): New function.
9953 (fprint_frame_type, fprint_frame): New function.
9954 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9955 (create_sentinel_frame, get_frame_id): Ditto.
9956 (frame_id_p, frame_id_eq): Ditto.
9957 (frame_id_inner, create_new_frame): Ditto.
9958 (legacy_get_prev_frame, get_prev_frame): Ditto.
9959 (deprecated_update_frame_pc_hack): Ditto.
9960 (frame_register_unwind): Ditto.
9961 (deprecated_update_frame_base_hack): Ditto.
9962
9963 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9964
9965 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9966 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9967 frame_chain function.
9968 * Makefile.in: Add dependencies due to above change.
9969
9970 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9971
9972 * blockframe.c (legacy_frame_chain_valid): Move call to
9973 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9974 inside_entry_file.
9975
9976 2003-04-09 Andrew Cagney <cagney@redhat.com>
9977
9978 * frame.h (struct frame_id): Replace "pc" and "base" with
9979 "stack_addr" and "code_addr". Update comments.
9980 (frame_id_build): Update parameter names and comment.
9981 (struct frame_info): Replace "id_p" and "id" with "this_id".
9982 * dummy-frame.c (dummy_frame_this_id): Update.
9983 * breakpoint.c (print_one_breakpoint): Update.
9984 * frame.c (get_frame_id): Update.
9985 (get_frame_base, frame_id_build): Update.
9986 (create_sentinel_frame, legacy_get_prev_frame): Update.
9987 (deprecated_update_frame_base_hack): Update.
9988 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9989 (frame_id_inner): Ditto.
9990
9991 2003-04-09 Andrew Cagney <cagney@redhat.com>
9992
9993 * defs.h (gdb_print_host_address): Make "addr" parameter a
9994 pointer constant.
9995 * utils.c (gdb_print_host_address): Update.
9996
9997 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9998
9999 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10000 register number for R0 is 0.
10001
10002 2003-04-09 J. Brobecker <brobecker@gnat.com>
10003
10004 * frame.h (struct gdbarch): Add opaque structure definition
10005 to avoid a compilation warning on LynxOS 4.0.
10006
10007 2003-04-09 Andrew Cagney <cagney@redhat.com>
10008
10009 * frame.h (struct frame_info): Delete field "pc". Replace
10010 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10011 structure.
10012 * frame.c (frame_pc_unwind): Update.
10013 (create_sentinel_frame): Do not set "pc".
10014 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10015 (get_frame_pc): Call frame_pc_unwind.
10016 (deprecated_update_frame_pc_hack): Update.
10017 (create_new_frame): Use "pc" not "->pc".
10018
10019 2003-04-09 Andrew Cagney <cagney@redhat.com>
10020
10021 * frame.c (get_frame_id): Eliminate code updating "frame".
10022 (legacy_get_prev_frame): Ditto.
10023 (get_frame_base): Return id.base directly.
10024 (deprecated_update_frame_base_hack): Update "id.base".
10025 * frame.h (struct frame_info): Delete field "frame".
10026
10027 2003-04-09 Andrew Cagney <cagney@redhat.com>
10028
10029 * NEWS: Mention that the "Sequent family" is obsolete.
10030 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10031 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10032 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10033 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10034 * config/i386/tm-ptx4.h: Obsolete file.
10035 * config/i386/tm-ptx.h: Obsolete file.
10036 * symm-tdep.c: Obsolete file.
10037 * config/i386/symmetry.mt: Obsolete file.
10038 * config/i386/tm-symmetry.h: Obsolete file.
10039 * symm-nat.c: Obsolete file.
10040 * config/i386/nm-symmetry.h: Obsolete file.
10041 * config/i386/xm-symmetry.h: Obsolete file.
10042 * config/i386/symmetry.mh: Obsolete file.
10043 * config/i386/nm-ptx4.h: Obsolete file.
10044 * config/i386/ptx4.mh: Obsolete file.
10045 * config/i386/ptx.mt: Obsolete file.
10046 * config/i386/ptx.mh: Obsolete file.
10047 * config/i386/xm-ptx4.h: Obsolete file.
10048 * config/i386/xm-ptx.h: Obsolete file.
10049
10050 2003-04-09 Andrew Cagney <cagney@redhat.com>
10051
10052 Obsolete mips*-*-mach3*.
10053 * NEWS: Mention that mips*-*-mach3* is obsolete.
10054 * m3-nat.c: Obsolete file.
10055 * config/nm-m3.h: Obsolete file.
10056 * config/mips/tm-mipsm3.h: Obsolete file.
10057 * config/mips/mipsm3.mt: Obsolete file.
10058 * config/mips/mipsm3.mh: Obsolete file.
10059 * config/mips/xm-mipsm3.h: Obsolete file.
10060 * mipsm3-nat.c: Obsolete file.
10061 * configure.host: Obsolete mips-dec-mach3*.
10062 * configure.tgt: Obsolete mips*-*-mach3*.
10063
10064 2003-04-09 Andrew Cagney <cagney@redhat.com>
10065
10066 * doublest.h: Update copyright.
10067 (deprecated_store_floating, deprecated_extract_floating): Rename
10068 store_floating and extract_floating. Update comments.
10069 * doublest.c: Update copyright.
10070 (extract_floating_by_length): Replace extract_floating.
10071 (store_floating_by_length): Replace store_floating.
10072 (deprecated_extract_floating): New function.
10073 (deprecated_store_floating): New function.
10074 (extract_typed_floating): Call extract_floating_by_length.
10075 (store_typed_floating): Call store_floating_by_length.
10076 * x86-64-tdep.c (x86_64_store_return_value): Update.
10077 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10078 (sh64_extract_return_value): Update.
10079 (sh_sh4_register_convert_to_virtual): Update.
10080 (sh_sh64_register_convert_to_virtual): Update.
10081 (sh_sh4_register_convert_to_raw): Update.
10082 (sh_sh64_register_convert_to_raw): Update.
10083 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10084 (rs6000_register_convert_to_raw): Update.
10085 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10086 (ia64_register_convert_to_raw): Update.
10087 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10088 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10089 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10090 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10091 (alpha_register_convert_to_raw): Update.
10092
10093 2003-04-08 Andrew Cagney <cagney@redhat.com>
10094
10095 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10096 * gdbarch.h, gdbarch.c: Re-generate.
10097 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10098 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10099 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10100 conditionally, use frame_pc_unwind as an alternative. Add
10101 comments.
10102 * arch-utils.c (init_frame_pc_default): Only call
10103 SAVED_PC_AFTER_CALL when available.
10104
10105 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10106
10107 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10108 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10109 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10110 (start_remote): Ditto.
10111 (handle_inferior_event): Ditto.
10112 (save_inferior_status): Ditto.
10113 (restore_inferior_status): Ditto.
10114 * infcmd.c (attach_command): Ditto.
10115 * fork-child.c (startup_inferior): Ditto.
10116 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10117 * alpha-tdep.c (heuristic_proc_start): Ditto.
10118 * mips-tdep.c (heuristic_proc_start): Ditto.
10119 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10120 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10121 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10122 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10123 * remote-vx.c (vx_create_inferior): Ditto.
10124
10125 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10126
10127 * infrun.c (stop_soon_quietly): Make it an enum, to better
10128 override the default behavior of handle_inferior_event.
10129 (clear_proceed_status): Update uses of stop_soon_quietly to
10130 reflect that it is now an enum.
10131 (start_remote): Ditto.
10132 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10133 is set to handle the new GNU/Linux kernel behavior for
10134 attach/sigstop. Update uses of stop_soon_quietly.
10135 * inferior.h (enum stop_kind): New enum.
10136 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10137 Reset normal handle_inferior_event behavior, afterwards.
10138 * fork-child.c (startup_inferior): Update.
10139 * alpha-tdep.c (heuristic_proc_start): Update.
10140 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10141 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10142 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10143 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10144 * remote-vx.c (vx_create_inferior): Update.
10145 * mips-tdep.c (heuristic_proc_start): Update.
10146
10147 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10148
10149 * disasm.c (dump_insns): Move variables inside loop, or they will
10150 be freed more than once, causing wild memory corruptions.
10151 (gdb_disassembly): Look for the substring "-thread",
10152 instead of "-threads" in the target name, to make sure to find
10153 the 'multi-thread' target. Also, make sure we do the right thing
10154 with the "core" target.
10155
10156 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10157
10158 * mips-tdep.c (mips_print_fp_register): New function, created from
10159 do_fp_register_row(). Registers are now (also) printed as hex.
10160 Only one register is printed per row.
10161 (mips_print_register, do_fp_register_row): Print floating point
10162 registers with mips_print_fp_register().
10163
10164 2003-04-06 Andrew Cagney <cagney@redhat.com>
10165
10166 * valprint.h (inspect_it): Add extern declaration.
10167 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10168 (selectors_info, classes_info): Ditto.
10169 (find_objc_msgcall): Fix indentation.
10170 (objc_printstr): Delete extern declarations.
10171
10172 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10173
10174 2003-04-06 Andrew Cagney <cagney@redhat.com>
10175
10176 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10177 Update comment.
10178 * frame.c (legacy_saved_regs_this_id): Update.
10179 (legacy_get_prev_frame): Update.
10180 * xstormy16-tdep.c: Update comment.
10181 * sparc-tdep.c (sparc_frame_chain): Update comment.
10182 * blockframe.c (legacy_frame_chain_valid): Update.
10183
10184 2003-04-06 Andrew Cagney <cagney@redhat.com>
10185
10186 * valprint.c (val_print_type_code_int): Delete #ifdef
10187 PRINT_TYPELESS_INTEGER code.
10188
10189 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10190 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10191 multi-arch definition.
10192 * gdbarch.h: Re-generate.
10193
10194 2003-04-05 Andrew Cagney <cagney@redhat.com>
10195
10196 Eliminate FRAME_FIND_SAVED_REGS.
10197 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10198 Change FSR parameter to a pointer.
10199 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10200 Assume FSR parameter is a pointer.
10201 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10202 Make fsr a pointer.
10203 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10204 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10205 saved_regs a pointer.
10206 (hppa_frame_saved_pc): Ditto.
10207 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10208 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10209 pointer.
10210 (restore_pc_queue): Make fsr a pointer.
10211 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10212 (hppa_frame_chain): Make saved_regs a pointer, call
10213 hppa_frame_init_saved_regs.
10214 * sparc-tdep.c: Include "gdb_assert.h".
10215 (sparc_frame_find_saved_regs): Replace internal_error with
10216 gdb_assert.
10217 * remote-vxsparc.c (vx_read_register): Delete reference to
10218 FRAME_FIND_SAVED_REGS.
10219 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10220 * gdbarch.h: Regenerate.
10221 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10222 (deprecated_get_frame_saved_regs): Delete declaration.
10223 (struct frame_saved_regs): Delete definition.
10224 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10225 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10226 (hppa_frame_find_saved_regs): Delete declaration.
10227 (FRAME_FIND_SAVED_REGS): Delete macro.
10228 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10229 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10230 FRAME_FIND_SAVED_REGS in comment.
10231
10232 2003-04-05 Andrew Cagney <cagney@redhat.com>
10233
10234 * frame.c (frame_func_unwind, get_frame_func): New functions.
10235 * frame.h (get_frame_func, frame_func_unwind): Declare.
10236 (struct frame_info): Add field "prev_func" for caching the
10237 previous frame's function address.
10238 * arm-tdep.c (arm_frameless_function_invocation): Combine
10239 get_pc_function_start and get_frame_pc into get_frame_func.
10240 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10241 (sh64_nofp_frame_init_saved_regs): Ditto.
10242 * s390-tdep.c (s390_function_start): Ditto.
10243 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10244 (rs6000_frameless_function_invocation): Ditto.
10245 (rs6000_frame_saved_pc): Ditto.
10246 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10247 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10248 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10249 (i386_frame_init_saved_regs): Ditto.
10250 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10251 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10252 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10253 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10254 * blockframe.c (frameless_look_for_prologue): Ditto.
10255
10256 2003-04-05 Andrew Cagney <cagney@redhat.com>
10257
10258 * frame.c (legacy_get_prev_frame): Link prev to next at the
10259 function start. Update comments.
10260
10261 2003-04-05 Andrew Cagney <cagney@redhat.com>
10262
10263 * frame.c (get_frame_id): Update comment.
10264 (legacy_get_prev_frame): Update comment.
10265 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10266 * gdbarch.h: Regenerate.
10267 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10268 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10269
10270 2003-04-05 Andrew Cagney <cagney@redhat.com>
10271
10272 * stack.c (print_frame_info): Use get_frame_pc.
10273
10274 2003-04-04 Andrew Cagney <cagney@redhat.com>
10275
10276 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10277 the frame's type from the unwinder.
10278 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10279 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10280 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10281 (get_frame_base_address): Use get_frame_type.
10282 (get_frame_locals_address, get_frame_args_address): Ditto.
10283 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10284 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10285 (struct frame_info): Add comment explaining why the frame contains
10286 a "type" field.
10287 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10288 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10289 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10290 NORMAL_FRAME.
10291 * frame-unwind.h: Include "frame.h".
10292 (struct frame_unwind): Add "type" field.
10293 * Makefile.in (frame_unwind_h): Add $(frame_h).
10294
10295 2003-04-04 Andrew Cagney <cagney@redhat.com>
10296
10297 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10298 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10299 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10300 get_frame_base.
10301 (d10v_unwind_dummy_id): Use frame_id_build.
10302 * frame.c (find_frame_sal): Use get_frame_pc.
10303 (create_new_frame): Use deprecated_update_frame_pc_hack and
10304 deprecated_update_frame_base_hack.
10305 (create_sentinel_frame): Add comment about ->pc going away.
10306 (get_prev_frame): Add comment about ->pc going away.
10307 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10308 frame_id_build, deprecated_update_frame_pc_hack and
10309 deprecated_update_frame_base_hack.
10310 (select_frame): Use get_frame_pc.
10311 (legacy_saved_regs_this_id): Use frame_id_build.
10312
10313 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10314
10315 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10316 signed integer case.
10317 (classify_argument): Handle enumerations and references.
10318
10319 2003-04-04 Andrew Cagney <cagney@redhat.com>
10320
10321 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10322 ID to NULL.
10323
10324 2003-04-01 Adam Fedor <fedor@gnu.org>
10325
10326 * gdb/objc-lang.c (selectors_info): Replace calls to
10327 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10328 SYMBOL_NATURAL_NAME.
10329 (classes_info, find_methods): Likewise.
10330
10331 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10332
10333 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10334 ``mach'' to the value determined by bfd_default_set_arch_mach().
10335
10336 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10337
10338 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10339 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10340 (mi-cmd-file.o): Update dependencies.
10341
10342 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10343
10344 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10345 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10346
10347 2003-04-01 Adam Fedor <fedor@gnu.org>
10348
10349 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10350 * language.h (struct language_defn): Add la_demangle.
10351 (language_demangle): Declare.
10352 * language.c (language_demangle): New function.
10353 (unk_lang_demangle): Likewise.
10354 (unknown_language_defn, auto_language_defn, local_language_defn):
10355 Add ukn_lang_demangle.
10356 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10357 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10358 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10359 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10360 * jv-lang.c (java_demangle): New function
10361 (java_language_defn): Use it for la_demangle element.
10362 * objc-lang.c (objc_demangle): Add options argument
10363 (objc_language_defn): Use objc_demangle for la_demangle element.
10364 * maint.c (maintenance_demangle): Replace switch with
10365 call to language_demangle.
10366 * utils.c (fprintf_symbol_filtered): Likewise.
10367
10368 2003-04-01 Andrew Cagney <cagney@redhat.com>
10369
10370 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10371 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10372 PRINT_TYPELESS_INTEGER.
10373 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10374 PUSH_RETURN_ADDRESS.
10375
10376 2003-04-01 Andrew Cagney <cagney@redhat.com>
10377
10378 * Makefile.in (d10v-tdep.o): Update dependencies.
10379 * d10v-tdep.c: Include "frame-base.h".
10380 (d10v_frame_unwind): Make constant.
10381 (d10v_frame_base_address): New function.
10382 (d10v_frame_base): New variable.
10383 (d10v_gdbarch_init): Set frame_base default.
10384 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10385 comment for base.
10386 (d10v_frame_unwind_cache): Set and use "prev_sp".
10387 (d10v_frame_this_id): Use the previous frame's inner most stack
10388 address and this frame's func address for the frame ID. Use
10389 frame_id_build. Don't analyze beyond the current instruction.
10390
10391 2003-04-01 Andrew Cagney <cagney@redhat.com>
10392
10393 * frame.h (get_frame_locals_address, get_frame_args_address):
10394 Refer to the base address, instead of the address of the first
10395 local or parameter.
10396
10397 2003-04-01 Andrew Cagney <cagney@redhat.com>
10398
10399 Add frame debug info addresses:
10400 * frame-base.c: New file.
10401 * frame-base.h: New file.
10402 * frame.h (struct frame_base): Add opaque declaration.
10403 (get_frame_base): Update comment.
10404 (get_frame_base_address): Declare.
10405 (get_frame_locals_address): Declare.
10406 (get_frame_args_address): Declare.
10407 (struct frame_info): Add "base" and "base_cache". Update
10408 comments on the unwinder.
10409 * frame.c: Include "frame-base.h".
10410 (get_frame_locals_address): New function.
10411 (get_frame_base_address): New function.
10412 (get_frame_args_address): New function.
10413 * findvar.c (read_var_value): Use get_frame_locals_address and
10414 get_frame_args_address.
10415 * stack.c (frame_info): Use get_frame_locals_address and
10416 get_frame_args_address.
10417 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10418 moved to "frame-base.c".
10419 * printcmd.c (print_frame_nameless_args): Ditto.
10420 * symtab.h (address_class): Update comments.
10421 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10422 get_frame_base_address.
10423 * dwarf2expr.c (execute_stack_op): Ditto.
10424 * Makefile.in (frame_base_h): Define.
10425 (frame.o): Update dependencies.
10426 (frame-base.o): Add dependencies.
10427 (SFILES): Add frame-base.c.
10428 (COMMON_OBS): Add frame-base.o.
10429
10430 2003-04-01 Andrew Cagney <cagney@redhat.com>
10431
10432 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10433 CALL_DUMMY_LENGTH): Ditto.
10434 * gdbarch.c: Re-generate.
10435 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10436 (CALL_DUMMY_LENGTH): Delete macro.
10437 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10438 * arm-tdep.c (arm_gdbarch_init): Ditto.
10439 * avr-tdep.c (avr_gdbarch_init): Ditto.
10440 * cris-tdep.c (cris_gdbarch_init): Ditto.
10441 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10442 * frv-tdep.c (frv_gdbarch_init): Ditto.
10443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10444 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10445 * i386-tdep.c (i386_gdbarch_init): Ditto.
10446 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10448 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10449 * mips-tdep.c (mips_gdbarch_init): Ditto.
10450 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10451 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10452 * s390-tdep.c (s390_gdbarch_init): Ditto.
10453 * sh-tdep.c (sh_gdbarch_init): Ditto.
10454 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10455 * v850-tdep.c (v850_gdbarch_init): Ditto.
10456 * vax-tdep.c (vax_gdbarch_init): Ditto.
10457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10458
10459 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10460
10461 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10462
10463 2003-04-01 Andrew Cagney <cagney@redhat.com>
10464
10465 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10466 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10467 * gdbarch.h, gdbarch.c: Re-generate.
10468 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10469 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10470 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10471 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10472 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10473 * infcmd.c (run_stack_dummy): Simplify assuming
10474 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10475 * infrun.c (handle_inferior_event): Ditto.
10476 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10477 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10478 * arm-tdep.c (arm_gdbarch_init): Ditto.
10479 * avr-tdep.c (avr_gdbarch_init): Ditto.
10480 * cris-tdep.c (cris_gdbarch_init): Ditto.
10481 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10482 * frv-tdep.c (frv_gdbarch_init): Ditto.
10483 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10484 * i386-tdep.c (i386_gdbarch_init): Ditto.
10485 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10487 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10488 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10489 * mips-tdep.c (mips_gdbarch_init): Ditto.
10490 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10491 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10492 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10493 * s390-tdep.c (s390_gdbarch_init): Ditto.
10494 * sh-tdep.c (sh_gdbarch_init): Ditto.
10495 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10496 * v850-tdep.c (v850_gdbarch_init): Ditto.
10497 * vax-tdep.c (vax_gdbarch_init): Ditto.
10498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10499
10500 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * symfile.c (symfile_relocate_debug_section): Update call to
10503 bfd_simple_get_relocated_section_contents.
10504
10505 2003-03-31 Andrew Cagney <cagney@redhat.com>
10506
10507 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10508 * gdbarch.h, gdbarch.c: Regenerate.
10509 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10510 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10511 available.
10512 * frame.h (generic_fix_call_dummy): Delete declaration.
10513 * dummy-frame.h: Update comment.
10514 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10516 fix_call_dummy.
10517 * sh-tdep.c (sh_gdbarch_init): Ditto.
10518 * s390-tdep.c (s390_gdbarch_init): Ditto.
10519 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10520 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10522 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10523 * i386-tdep.c (i386_gdbarch_init): Ditto.
10524 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10525 * frv-tdep.c (frv_gdbarch_init): Ditto.
10526 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10527 * cris-tdep.c (cris_gdbarch_init): Ditto.
10528 * avr-tdep.c (avr_gdbarch_init): Ditto.
10529 * arm-tdep.c (arm_gdbarch_init): Ditto.
10530
10531 2003-03-31 J. Brobecker <brobecker@gnat.com>
10532
10533 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10534 (INIT_FRAME_AP): Likewise.
10535 (EXTRA_FRAME_INFO): Likewise.
10536
10537 2003-03-31 Andrew Cagney <cagney@redhat.com>
10538
10539 * gdbarch.sh: Include "symfile.h".
10540 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10541 * gdbarch.h, gdbarch.c: Re-generate.
10542 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10544 call_dummy_address, the default is at entry_point_address.
10545 * v850-tdep.c (v850_gdbarch_init): Ditto.
10546 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10547 * sh-tdep.c (sh_gdbarch_init): Ditto.
10548 * s390-tdep.c (s390_gdbarch_init): Ditto.
10549 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10552 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10553 * i386-tdep.c (i386_gdbarch_init): Ditto.
10554 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10555 * frv-tdep.c (frv_gdbarch_init): Ditto.
10556 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10557 * cris-tdep.c (cris_gdbarch_init): Ditto.
10558 * arm-tdep.c (arm_gdbarch_init): Ditto.
10559
10560 2003-03-31 Andrew Cagney <cagney@redhat.com>
10561
10562 * gdbarch.sh (CALL_DUMMY_P): Delete.
10563 * gdbarch.h, gdbarch.c: Re-generate.
10564 * inferior.h (CALL_DUMMY_P): Delete macro.
10565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10566 * vax-tdep.c (vax_gdbarch_init): Update.
10567 * v850-tdep.c (v850_gdbarch_init): Update.
10568 * sparc-tdep.c (sparc_gdbarch_init): Update.
10569 * sh-tdep.c (sh_gdbarch_init): Update.
10570 * s390-tdep.c (s390_gdbarch_init): Update.
10571 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10572 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10573 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10574 * mips-tdep.c (mips_gdbarch_init): Update.
10575 * mcore-tdep.c (mcore_gdbarch_init): Update.
10576 * m68k-tdep.c (m68k_gdbarch_init): Update.
10577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10578 * ia64-tdep.c (ia64_gdbarch_init): Update.
10579 * i386-tdep.c (i386_gdbarch_init): Update.
10580 * h8300-tdep.c (h8300_gdbarch_init): Update.
10581 * frv-tdep.c (frv_gdbarch_init): Update.
10582 * d10v-tdep.c (d10v_gdbarch_init): Update.
10583 * cris-tdep.c (cris_gdbarch_init): Update.
10584 * breakpoint.c (deprecated_frame_in_dummy): Update.
10585 * avr-tdep.c (avr_gdbarch_init): Update.
10586 * alpha-tdep.c (alpha_gdbarch_init): Update.
10587 * arm-tdep.c (arm_gdbarch_init): Update.
10588 * dummy-frame.c (dummy_frame_this_id): Update comments.
10589 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10590 * frame.c (legacy_get_prev_frame): Ditto.
10591 * valops.c (call_function_by_hand): Delete function.
10592 (hand_function_call): Rename to call_function_by_hand
10593
10594 2003-03-30 Andrew Cagney <cagney@redhat.com>
10595
10596 2002-11-10 Klee Dienes <kdienes@apple.com>
10597 * value.h (struct value): Update comment.
10598
10599 2003-03-30 Andrew Cagney <cagney@redhat.com>
10600
10601 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10602 D10V_FP_REGNUM.
10603 (d10v_gdbarch_init): Do not set fp_regnum.
10604
10605 * frame.c (get_frame_base): Force ID initialization.
10606 (get_prev_frame): Move computation of the frame ID from here ...
10607 (get_frame_id): ... to here.
10608 (legacy_get_prev_frame): Mark the frame ID as valid.
10609 * frame.h (struct frame_info): Add field "id_p".
10610
10611 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10612
10613 * i386-tdep.c (i386_store_struct_return): Removed.
10614 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10615
10616 2003-03-30 Andrew Cagney <cagney@redhat.com>
10617
10618 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10619 * gdbarch.h, gdbarch.c: Regenerate.
10620 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10622 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10623 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10624 * i386-tdep.c (i386_gdbarch_init): Ditto.
10625 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10626 * cris-tdep.c (cris_gdbarch_init): Ditto.
10627 * vax-tdep.c (vax_gdbarch_init): Ditto.
10628 * s390-tdep.c (s390_gdbarch_init): Ditto.
10629 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10630 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10631 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10632 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10633 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10634 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10635 * sparc-tdep.c (sparc_gdbarch_init): Update.
10636 * sh-tdep.c (sh_gdbarch_init): Update.
10637 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10638 * mips-tdep.c (mips_gdbarch_init): Update.
10639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10640 * ia64-tdep.c (ia64_gdbarch_init): Update.
10641 * frv-tdep.c (frv_gdbarch_init): Update.
10642 * avr-tdep.c (avr_gdbarch_init): Update.
10643 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10644 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10645 instead of when push_dummy_call is not available.
10646
10647 2003-03-30 Andrew Cagney <cagney@redhat.com>
10648
10649 * infttrace.c: Include "gdbthread.h".
10650 (parent_attach_all): Fix function signature.
10651 (call_ptrace): Update call.
10652 * Makefile.in (infttrace.o): Update dependencies.
10653
10654 2003-03-30 Andrew Cagney <cagney@redhat.com>
10655
10656 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10657 PUSH_RETURN_ADDRESS.
10658 * gdbarch.h, gdbarch.c: Regenerate.
10659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10660 * x86-64-tdep.c (x86_64_init_abi): Update.
10661 * v850-tdep.c (v850_gdbarch_init): Update.
10662 * sparc-tdep.c (sparc_gdbarch_init): Update.
10663 * sh-tdep.c (sh_gdbarch_init): Update.
10664 * s390-tdep.c (s390_gdbarch_init): Update.
10665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10666 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10667 * mips-tdep.c (mips_gdbarch_init): Update.
10668 * mcore-tdep.c (mcore_gdbarch_init): Update.
10669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10670 * ia64-tdep.c (ia64_gdbarch_init): Update.
10671 * i386-tdep.c (i386_gdbarch_init): Update.
10672 * h8300-tdep.c (h8300_gdbarch_init): Update.
10673 * frv-tdep.c (frv_gdbarch_init): Update.
10674 * cris-tdep.c (cris_gdbarch_init): Update.
10675 * avr-tdep.c (avr_gdbarch_init): Update.
10676 * arm-tdep.c (arm_gdbarch_init): Update.
10677 * valops.c (hand_function_call): Update.
10678
10679 2003-03-29 Andrew Cagney <cagney@redhat.com>
10680
10681 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10682 sizeof_call_dummy_words.
10683 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10684 define.
10685 * gdbarch.h: Regenerate.
10686
10687 2003-03-29 Andrew Cagney <cagney@redhat.com>
10688
10689 * infttrace.h: New file.
10690 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10691 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10692 (hpread_read_doc_function_type): Detect an initialized type1.
10693 (hpread_quick_traverse): Initialize mod_name_string.
10694 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10695 (som_solib_get_solib_by_pc): Declare.
10696 (so_lib_thread_start_addr): Declare.
10697 (no_shared_libraries): Declare.
10698 * somread.c (init_import_symbols): Make static. Add forward
10699 declaration.
10700 * config/pa/nm-hppah.h: Include "infttrace.h" for
10701 parent_attach_all.
10702 (hppa_insert_hw_watchpoint): Declare.
10703 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10704 * hppah-nat.c: Include "gdb_string.h".
10705 (parent_attach_all): Delete extern declaration, moved to
10706 "infttrace.h".
10707 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10708 int.
10709 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10710 * Makefile.in (infttrace_h): Define.
10711 (hpread.o): Update dependencies.
10712 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10713 * hppa-hpux-tdep.c: Include "gdb_string.h".
10714 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10715 * infrun.c (handle_inferior_event): Always initialize
10716 stepped_after_stopped_by_watchpoint. Add default and remove
10717 fallthrough in switch statement.
10718 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10719 parameter to int.
10720 (hppa_remove_hw_watchpoint): Ditto.
10721
10722 2003-03-29 Andrew Cagney <cagney@redhat.com>
10723
10724 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10725 offset.
10726
10727 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10728
10729 * arm-tdep.c (arm_push_arguments): Delete.
10730 (struct stack_item): New type.
10731 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10732 (arm_store_struct_return): Delte.
10733 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10734 arm_push_arguments or arm_store_struct_return.
10735
10736 2003-03-28 Andrew Cagney <cagney@redhat.com>
10737
10738 * Makefile.in (d10v-tdep.o): Update dependencies.
10739 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10740 * d10v-tdep.c: Include "remote.h".
10741 (target_resume_hook): Delete extern declaration.
10742 (target_wait_loop_hook): Ditto.
10743 (tdisassemble_command): Eliminate assignment in "if" conditional.
10744 (d10v_ts2_register_sim_regno): Eliminate call to
10745 legacy_register_sim_regno.
10746 (d10v_ts3_register_sim_regno): Ditto.
10747
10748 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10749
10750 * thread.c: Reindented.
10751 * lin-lwp.c: Ditto.
10752 * linux-proc.c: Ditto.
10753
10754 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10755
10756 * MAINTAINERS (write after approval): Add myself.
10757
10758 2003-03-27 Theodore A. Roth <troth@openavr.org>
10759
10760 * objc-exp.y: Add missing semi-colons.
10761
10762 2003-03-27 Andrew Cagney <cagney@redhat.com>
10763
10764 * regcache.c (write_sp): Delete function and references.
10765 * inferior.h (write_sp): Delete declaration.
10766 * valops.c (hand_function_call): Replace write_sp with
10767 TARGET_WRITE_SP.
10768 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10769 (sparc_pop_frame): Ditto.
10770
10771 2003-03-27 Andrew Cagney <cagney@redhat.com>
10772
10773 * NEWS: Mention removal of support for hppa*-*-bsd* and
10774 hppa*-*-osf* natives, and hppa*-*-pro* target.
10775 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10776 * config/pa/xm-pa.h: Obsolete file.
10777 * config/pa/xm-hppab.h: Obsolete file.
10778 * config/pa/nm-hppab.h: Obsolete file.
10779 * config/pa/tm-hppab.h: Obsolete file.
10780 * config/pa/tm-hppao.h: Obsolete file.
10781 * config/pa/nm-hppao.h: Obsolete file.
10782 * config/pa/tm-pro.h: Obsolete file.
10783 * config/pa/hppaosf.mt: Obsolete file.
10784 * config/pa/hppaosf.mh: Obsolete file.
10785 * config/pa/hppapro.mt: Obsolete file.
10786 * config/pa/hppabsd.mt: Obsolete file.
10787 * config/pa/hppabsd.mh: Obsolete file.
10788 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10789 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10790 hppa*-*-osf*.
10791
10792 2003-03-27 Andrew Cagney <cagney@redhat.com>
10793
10794 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10795 push_arguments. Don't set push_return_address or write_sp.
10796 (d10v_push_dummy_call): Replace d10v_push_arguments.
10797 (d10v_push_return_address, d10v_write_sp): Delete function,
10798 handled by push_dummy_call.
10799
10800 2003-03-26 Andrew Cagney <cagney@redhat.com>
10801
10802 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10803 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10804 regcache and dummy_addr parameters.
10805 * gdbarch.h, gdbarch.c: Re-generate.
10806 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10807 available; assume it will handle stack alignment and return
10808 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10809 legacy_push_arguments.
10810 (legacy_push_arguments): Rename default_push_arguments.
10811 * value.h (legacy_push_arguments): Rename default_push_arguments.
10812 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10813 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10814 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10815 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10816 * config/i386/tm-symmetry.h: Update.
10817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10818 * x86-64-tdep.c (x86_64_init_abi): Update.
10819 * v850-tdep.c (v850_gdbarch_init): Update.
10820 * sparc-tdep.c (sparc_gdbarch_init): Update.
10821 * sh-tdep.c (sh_gdbarch_init): Update.
10822 * s390-tdep.c (s390_gdbarch_init): Update.
10823 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10824 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10825 * mips-tdep.c (mips_gdbarch_init): Update.
10826 * mcore-tdep.c (mcore_gdbarch_init): Update.
10827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10828 * ia64-tdep.c (ia64_gdbarch_init): Update.
10829 * i386-tdep.c (i386_gdbarch_init): Update.
10830 * hppa-tdep.c (hppa_gdbarch_init): Update.
10831 * h8300-tdep.c (h8300_gdbarch_init): Update.
10832 * frv-tdep.c (frv_gdbarch_init): Update.
10833 * d10v-tdep.c (d10v_gdbarch_init): Update.
10834 * cris-tdep.c (cris_gdbarch_init): Update.
10835 * avr-tdep.c (avr_gdbarch_init): Update.
10836 * arm-tdep.c (arm_gdbarch_init): Update.
10837 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10838 * alpha-tdep.c (alpha_gdbarch_init): Update.
10839
10840 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10841
10842 * signals/signals.c (do_target_signal_to_host): Correct realtime
10843 signal range test.
10844
10845 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10846
10847 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10848 (struct sal_chain, map_catch_names): Remove.
10849 (catch_exception_command_1): Don't call
10850 handle_gnu_4_16_catch_command.
10851
10852 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10853
10854 From Mark Dettinger <dettinge@de.ibm.com>:
10855 * dwarf2cfi.c (read_2u): Increment pointer by two.
10856
10857 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10858
10859 * signals/signals.c: Fix typos in last change.
10860
10861 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10862
10863 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10864 not already defined. Use __SIGRTMIN if available.
10865 (target_signal_from_host): Remove SIGRTMIN block.
10866 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10867 the signal is within the realtime range.
10868
10869 2003-03-25 Adam Fedor <fedor@gnu.org>
10870
10871 * Makefile.in (infrun.o): Add $(language_h)
10872 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10873 for language specific trampolines.
10874 * language.h (struct language_defn): Add skip_trampoline.
10875 (skip_language_trampoline): Declare.
10876 * language.c (unk_lang_trampoline, skip_language_trampoline):
10877 New functions.
10878 (unknown_language_defn, auto_language_defn, local_language_defn):
10879 Add ukn_lang_trampoline.
10880 * ada-lang.c (ada_language_defn): Add NULL for language
10881 specific skip_trampoline.
10882 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10883 scm-lang.c: Likewise.
10884 * objc-lang.c (objc_skip_trampoline): New function.
10885 (objc_language_defn): Add objc_skip_trampoline.
10886
10887 2003-03-25 Andrew Cagney <cagney@redhat.com>
10888
10889 * frame.c (get_prev_frame): Delay validating a frame's ID -
10890 non-NULL, didn't go backwards - until an attempt to unwind it to
10891 the previous frame.
10892
10893 2003-03-25 Andrew Cagney <cagney@redhat.com>
10894
10895 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10896 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10897 * gdbarch.h, gdbarch.c: Re-generate.
10898 * config/sparc/tm-sparc.h
10899 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10900 * sparc-tdep.c (sparc_gdbarch_init): Set
10901 deprecated_extra_stack_alignment_needed.
10902 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10904 extra_stack_alignment_needed.
10905 * v850-tdep.c (v850_gdbarch_init): Ditto.
10906 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10907 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10908 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10909 * cris-tdep.c (cris_gdbarch_init): Ditto.
10910 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10912
10913 2003-03-25 Andrew Cagney <cagney@redhat.com>
10914
10915 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10916 STORE_STRUCT_RETURN.
10917 * gdbarch.h, gdbarch.c: Regenerate.
10918 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10919 (d10v_push_arguments): Set the struct return register.
10920 (d10v_gdbarch_init): Update.
10921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10922 * x86-64-tdep.c (x86_64_init_abi): Update.
10923 * vax-tdep.c (vax_gdbarch_init): Update.
10924 * v850-tdep.c (v850_gdbarch_init): Update.
10925 * sparc-tdep.c (sparc_gdbarch_init): Update.
10926 * sh-tdep.c (sh_gdbarch_init): Update.
10927 * s390-tdep.c (s390_gdbarch_init): Update.
10928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10931 * mips-tdep.c (mips_gdbarch_init): Update.
10932 * mcore-tdep.c (mcore_gdbarch_init): Update.
10933 * m68k-tdep.c (m68k_gdbarch_init): Update.
10934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10935 * ia64-tdep.c (ia64_gdbarch_init): Update.
10936 * i386-tdep.c (i386_gdbarch_init): Update.
10937 * hppa-tdep.c (hppa_gdbarch_init): Update.
10938 * h8300-tdep.c (h8300_gdbarch_init): Update.
10939 * frv-tdep.c (frv_gdbarch_init): Update.
10940 * cris-tdep.c (cris_gdbarch_init): Update.
10941 * avr-tdep.c (avr_gdbarch_init): Update.
10942 * arm-tdep.c (arm_gdbarch_init): Update.
10943 * alpha-tdep.c (alpha_gdbarch_init): Update.
10944
10945 2003-03-25 Andrew Cagney <cagney@redhat.com>
10946
10947 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10948 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10949 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10950 * gdbarch.h, gdbarch.c: Regenerate.
10951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10952 call_dummy_stack_adjust_p.
10953 * vax-tdep.c (vax_gdbarch_init): Ditto.
10954 * v850-tdep.c (v850_gdbarch_init): Ditto.
10955 * sh-tdep.c (sh_gdbarch_init): Ditto.
10956 * s390-tdep.c (s390_gdbarch_init): Ditto.
10957 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10958 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10959 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10960 * mips-tdep.c (mips_gdbarch_init): Ditto.
10961 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10962 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10964 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10965 * i386-tdep.c (i386_gdbarch_init): Ditto.
10966 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10967 * frv-tdep.c (frv_gdbarch_init): Ditto.
10968 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10969 * cris-tdep.c (cris_gdbarch_init): Ditto.
10970 * avr-tdep.c (avr_gdbarch_init): Ditto.
10971 * arm-tdep.c (arm_gdbarch_init): Ditto.
10972 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10973 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10974 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10975 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10976 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10977 call_dummy_stack_adjust_p.
10978 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10979 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10980 * sparc-tdep.c (sparc32_push_arguments): Update.
10981 * valops.c (hand_function_call): Update.
10982
10983 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10984
10985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10986 set_gdbarch_char_signed.
10987
10988 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10989
10990 PR cli/548
10991 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10992
10993 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10994
10995 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10996 (_initialize_arm_tdep): Don't set tm_print_insn.
10997
10998 2003-03-24 Adam Fedor <fedor@gnu.org>
10999
11000 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11001 * objc-lang.h: Add multiple inclusion protection.
11002 (start_msglist, add_msglist, end_msglist): Additional declarations.
11003
11004 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11005
11006 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11007 value was renamed to ARM_FLOAT_SOFT_FPA.
11008
11009 2003-03-23 Andrew Cagney <cagney@redhat.com>
11010
11011 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11012 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11013 * gdbarch.h, gdbarch.c: Regenerate.
11014 * valops.c (hand_function_call): Update.
11015 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11016 * frame.c (legacy_saved_regs_this_id): Update.
11017 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11018 * dummy-frame.h: Update.
11019 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11020 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11021 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11022 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11023 * config/m68k/tm-sun3.h: Update.
11024 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11026 * x86-64-tdep.c (x86_64_init_abi): Update.
11027 * vax-tdep.c (vax_gdbarch_init): Update.
11028 * v850-tdep.c (v850_gdbarch_init): Update.
11029 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11030 * sh-tdep.c (sh_gdbarch_init): Update.
11031 * s390-tdep.c (s390_gdbarch_init): Update.
11032 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11033 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11034 (frame_get_saved_regs): Update.
11035 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11036 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11037 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11038 * mips-tdep.c (mips_gdbarch_init): Update.
11039 * mcore-tdep.c (mcore_gdbarch_init): Update.
11040 * m68k-tdep.c (m68k_gdbarch_init): Update.
11041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11042 * ia64-tdep.c (ia64_gdbarch_init): Update.
11043 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11044 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11045 (i386_interix_back_one_frame): Update.
11046 * hppa-tdep.c (hppa_gdbarch_init): Update.
11047 (hppa_init_extra_frame_info): Update.
11048 * h8300-tdep.c (h8300_gdbarch_init): Update.
11049 * frv-tdep.c (frv_gdbarch_init): Update.
11050 * cris-tdep.c (cris_gdbarch_init): Update.
11051 * avr-tdep.c (avr_gdbarch_init): Update.
11052 * arm-tdep.c (arm_gdbarch_init): Update.
11053 * alpha-tdep.c (alpha_gdbarch_init): Update.
11054
11055 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11056
11057 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11058 (arm_get_fp_model): Declare.
11059 * arm-tdep.c (fp_model_strings): New string array.
11060 (arm_fp_model, current_fp_model): New variables.
11061 (arm_get_fp_model): New function.
11062 (arm_set_fp): New function.
11063 (set_fp_model_sfunc): New function.
11064 (show_fp_model): New function.
11065 (_initialize_arm_tdep): Add new command to set/show the FPU.
11066 (arm_extract_return_value): Use arm_get_fp_model.
11067 (arm_store_return_value): Likewise.
11068 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11069 to initialize the floating-point data types.
11070 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11071 model is FPA.
11072
11073 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11074
11075 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11076 the current setting of each value.
11077 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11078 new_set and new_show. Use add_setshow_cmd_full and
11079 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11080 commands and add new version as subcommands of "set/show arm".
11081
11082 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11083
11084 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11085 (set_arm_command, show_arm_command): New functions.
11086 (_initialize_arm_tdep): Add them.
11087 (num_disassembly_options): Renamed from num_flavor_options.
11088 (valid_disassembly_styles): Renamed from valid_flavors.
11089 (disassembly_style): Renamed from disassembly_flavor.
11090 (set_disassembly_style_sfunc): Renamed from
11091 set_disassembly_flavor_sfunc.
11092 (set_disassembly_style): Renamed from set_disassembly_flavor.
11093 (arm_othernames): Updated.
11094 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11095 command. Add "set/show arm disassembly" commands. Deprecate
11096 "othernames" command.
11097
11098 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11099
11100 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11101 (arm-tdep.o): Depend on elf_arm_h.
11102
11103 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11104
11105 * Makefile.in (coff_internal_h): Define.
11106 (arm-tdep.o): Update dependencies.
11107
11108 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11109
11110 * arm-tdep.c (prologue_cache): Delete.
11111 (check_prologue_cache, save_prologue_cache): Delete.
11112 (arm_scan_prologue): Don't check or update the prologue_cache.
11113 (arm_gdb_arch_init): Don't initialize it.
11114 (_initialize_arm_tdep): Likewise.
11115
11116 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11117
11118 * MAINTAINERS (tui): Maintainer of tui code.
11119
11120 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11121
11122 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11123 (i386-cygwin-tdep.o): Add dependencies.
11124 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11125 * i386-cygwin-tdep.c: New file.
11126 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11127 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11128
11129 2003-03-20 Andrew Cagney <cagney@redhat.com>
11130
11131 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11132 (handle_inferior_event): Remove code calling
11133 DYNAMIC_TRAMPOLINE_NEXTPC.
11134
11135 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11136 already has a full path.
11137
11138 * main.c (gdb_main): Return 1.
11139 (captured_main): Call error to report an invalid interpreter.
11140
11141 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11142 * alpha-osf1-tdep.c: Include "gdb_string.h".
11143
11144 2003-03-19 J. Brobecker <brobecker@gnat.com>
11145
11146 Continuing work to convert the hppa targets to multiarch partial.
11147
11148 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11149 method, now that hppa_push_dummy_frame has a conformant prototype.
11150 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11151 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11152 for the switch to multiarch partial.
11153
11154 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11155
11156 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11157 when iss is issNull.
11158
11159 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11160
11161 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11162 NUM_REGS bounds check.
11163
11164 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11165
11166 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11167 * mips-tdep.c (gdb_assert.h): Include.
11168 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11169 (mips_register_name): Handle integer registers explicitly. Add
11170 bounds checking.
11171 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11172 (mips_lsi33k_reg_names): Don't list integer registers; they're
11173 handled by mips_register_name() now.
11174 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11175 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11176 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11177 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11178 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11179
11180 2003-03-18 Andrew Cagney <cagney@redhat.com>
11181
11182 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11183 a void pointer.
11184 * gdbtypes.h (print_scalar_formatted): Update declaration.
11185 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11186
11187 2003-03-18 J. Brobecker <brobecker@gnat.com>
11188
11189 * infrun.c (observer.h): Add #include.
11190 (normal_stop): Add call to observer_notify_normal_stop.
11191 * Makefile.in (infrun.o): Add dependency on observer.h.
11192
11193 2003-03-18 J. Brobecker <brobecker@gnat.com>
11194
11195 Continuing work to convert the hppa targets to multiarch partial.
11196 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11197 parameter. Reformat comment.
11198 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11199 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11200 to match new profile.
11201
11202 2003-03-18 J. Brobecker <brobecker@gnat.com>
11203
11204 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11205 appear to be working in any case.
11206
11207 2003-03-18 J. Brobecker <brobecker@gnat.com>
11208
11209 * observer.c (observer_test_first_observer): New static variable.
11210 (observer_test_second_observer): Likewise.
11211 (observer_test_third_observer): Likewise.
11212 (observer_test_first_notification_function): New static function.
11213 (observer_test_second_notification_function): Likewise.
11214 (observer_test_third_notification_function): Likewise.
11215
11216 2003-03-17 J. Brobecker <brobecker@gnat.com>
11217
11218 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11219 * somsolib.c (gdb_assert.h): Likewise.
11220 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11221 (somsolib.o): Likewise.
11222
11223 2003-03-17 Andrew Cagney <cagney@redhat.com>
11224
11225 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11226 BFD. Simplify setting of di.endian.
11227
11228 2003-03-17 Andrew Cagney <cagney@redhat.com>
11229
11230 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11231 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11232
11233 From Elena Zannoni <ezannoni@redhat.com>
11234 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11235 vector and floating-point parameters.
11236 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11237 convention.
11238 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11239
11240 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11241
11242 * MAINTAINERS: Remove my name from several maintainership roles.
11243
11244 2003-03-17 Andrew Cagney <cagney@redhat.com>
11245
11246 Fix frame off-by-one bug.
11247 * frame-unwind.h (frame_this_id_ftype): Replace
11248 frame_unwind_id_ftype.
11249 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11250 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11251 with "prev_register".
11252 * frame-unwind.c (frame_unwind_find_by_pc): Return
11253 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11254 comment.
11255 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11256 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11257 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11258 (dummy_frame_unwind): Update.
11259 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11260 sentinel_frame_register_unwind.
11261 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11262 (sentinel_frame_unwinder): Update.
11263 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11264 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11265 * frame.c (create_sentinel_frame): Update. Initialize
11266 "prologue_cache" instead of "unwind_cache".
11267 (frame_register_unwind): Call this frame's prev_register with the
11268 next frame and this frame's prologue cache.
11269 (get_prev_frame): Simplify. Always call prev frame's this_id with
11270 this frame and prev frame's prologue cache. Document that this
11271 call is shifted one to the left when compared to the
11272 frame_register_unwind call.
11273 (legacy_saved_regs_prev_register): Replace
11274 frame_saved_regs_register_unwind.
11275 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11276 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11277 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11278 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11279 (d10v_frame_unwind): Update.
11280 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11281 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11282 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11283 "saved_regs" with "this_saved_regs".
11284
11285 2003-03-16 Andrew Cagney <cagney@redhat.com>
11286
11287 * frame.c (frame_pop): Don't call target_store_registers. Fix
11288 problem reported by Mark Kettenis.
11289
11290 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11291
11292 * i386-tdep.c (i386_register_type): Renamed from
11293 i386_register_virtual_type. Adjust function signature.
11294 (i386_gdbarch_init): Set register_type instead of
11295 deprecated_max_register_raw_size,
11296 deprecated_max_register_virtual_size and register_virtual_type.
11297
11298 2003-03-14 Andrew Cagney <cagney@redhat.com>
11299
11300 * frame.c (get_prev_frame): When a legacy frame, always call
11301 legacy_get_prev_frame. Simplify unwind code using assumption that
11302 the unwinder is new.
11303 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11304 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11305 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11306
11307 2003-03-14 Andrew Cagney <cagney@redhat.com>
11308
11309 * frame.c (get_saved_register): Delete function.
11310 * frame.h (get_saved_register): Delete declaration.
11311 * xstormy16-tdep.c: Update comment.
11312 * regcache.h: Update comments.
11313 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11314 get_saved_register and extract_address, use
11315 frame_read_unsigned_register.
11316 (sparc_frame_saved_pc): Ditto.
11317 (sparc_get_saved_register): Instead of get_saved_register, use
11318 frame_register.
11319 (sparc_pop_frame): Ditto.
11320 * findvar.c: Update comments.
11321 (value_of_register): Call frame_register instead of
11322 get_saved_register.
11323 (value_from_register): Ditto.
11324 * config/sparc/tm-sparc.h: Update comment.
11325 * breakpoint.c: Update comment.
11326
11327 2003-03-14 Andrew Cagney <cagney@redhat.com>
11328
11329 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11330 GET_SAVED_REGISTER.
11331 * gdbarch.h, gdbarch.c: Re-generate.
11332 * frame.h: Update comments.
11333 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11334 * x86-64-tdep.c (x86_64_init_abi): Update.
11335 * sparc-tdep.c (sparc_gdbarch_init): Update.
11336 * sh-tdep.c (sh_gdbarch_init): Update.
11337 * mips-tdep.c (mips_gdbarch_init): Update.
11338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11339 * cris-tdep.c (cris_gdbarch_init): Update.
11340 * ia64-tdep.c (ia64_gdbarch_init): Update.
11341 * frame.c (frame_register): Update.
11342 (get_saved_register): Update.
11343 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11344
11345 2003-03-13 Andrew Cagney <cagney@redhat.com>
11346
11347 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11348 * gdbarch.h, gdbarch.c: Regenerate.
11349 * valops.c (hand_function_call): Update comment.
11350 * stack.c (return_command): Update comment.
11351 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11352 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11354 * x86-64-tdep.c (x86_64_init_abi): Update.
11355 * vax-tdep.c (vax_gdbarch_init): Update.
11356 * v850-tdep.c (v850_gdbarch_init): Update.
11357 * sparc-tdep.c (sparc_gdbarch_init): Update.
11358 * sh-tdep.c (sh_gdbarch_init): Update.
11359 * s390-tdep.c (s390_gdbarch_init): Update.
11360 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11361 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11363 * mips-tdep.c (mips_gdbarch_init): Update.
11364 * mcore-tdep.c (mcore_gdbarch_init): Update.
11365 * m68k-tdep.c (m68k_gdbarch_init): Update.
11366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11367 * ia64-tdep.c (ia64_gdbarch_init): Update.
11368 * i386-tdep.c (i386_gdbarch_init): Update.
11369 * hppa-tdep.c (hppa_gdbarch_init): Update.
11370 * h8300-tdep.c (h8300_gdbarch_init): Update.
11371 * frv-tdep.c (frv_gdbarch_init): Update.
11372 * cris-tdep.c (cris_gdbarch_init): Update.
11373 * avr-tdep.c (avr_gdbarch_init): Update.
11374 * arm-tdep.c (arm_gdbarch_init): Update.
11375 * alpha-tdep.c (alpha_gdbarch_init): Update.
11376
11377 2003-03-13 Andrew Cagney <cagney@redhat.com>
11378
11379 * frame.c (legacy_frame_p): New function.
11380 (get_prev_frame): Use legacy_frame_p.
11381 * frame.h (legacy_frame_p): Declare.
11382
11383 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11384
11385 * MAINTAINERS (write after approval): Alphabetically
11386 listing corrected.
11387
11388 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11389
11390 * MAINTAINERS (write after approval): Add myself.
11391
11392 2003-03-12 Andrew Cagney <cagney@redhat.com>
11393
11394 * frame.c (get_prev_frame): Rename the frame parameter to
11395 "this_frame".
11396 (get_next_frame, legacy_get_prev_frame): Ditto.
11397
11398 2003-03-12 Andrew Cagney <cagney@redhat.com>
11399
11400 * frame.c (get_current_frame): Check target_has_registers before
11401 checking target_has_stack.
11402 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11403 instead of deprecated_selected_frame.
11404 * findvar.c (value_of_register): Pass "frame", not
11405 deprecated_selected_frame, to value_of_builtin_reg.
11406
11407 2003-03-12 Andrew Cagney <cagney@redhat.com>
11408
11409 * regcache.c (regcache_cooked_write_signed): New function.
11410 (regcache_cooked_write_unsigned): New function.
11411 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11412 (regcache_cooked_read_signed): Fix regnum in range assertion.
11413 * regcache.h (regcache_cooked_write_signed): Declare.
11414 (regcache_cooked_write_unsigned): Declare.
11415
11416 2003-03-12 Andrew Cagney <cagney@redhat.com>
11417
11418 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11419 * gdbarch.h, gdbarch.c: Re-generate.
11420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11421 * x86-64-tdep.h: Update.
11422 * x86-64-tdep.c (x86_64_init_abi): Update.
11423 * v850-tdep.c (v850_gdbarch_init): Update.
11424 * sparc-tdep.c (sparc_gdbarch_init): Update.
11425 * sh-tdep.c (sh_gdbarch_init): Update.
11426 * s390-tdep.c (s390_gdbarch_init): Update.
11427 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11428 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11429 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11430 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11431 * mips-tdep.c (mips_gdbarch_init): Update.
11432 * mcore-tdep.c (mcore_gdbarch_init): Update.
11433 * m68k-tdep.c (m68k_gdbarch_init): Update.
11434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11435 * ia64-tdep.c (ia64_gdbarch_init): Update.
11436 * i386-tdep.c (i386_gdbarch_init): Update.
11437 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11438 * hppa-tdep.c (hppa_gdbarch_init): Update.
11439 * h8300-tdep.c (h8300_gdbarch_init): Update.
11440 * frv-tdep.c (frv_gdbarch_init): Update.
11441 * cris-tdep.c (cris_gdbarch_init): Update.
11442 * avr-tdep.c (avr_gdbarch_init): Update.
11443 * arm-tdep.c (arm_gdbarch_init): Update.
11444 * alpha-tdep.c (alpha_gdbarch_init): Update.
11445 * sh-tdep.c (sh_init_extra_frame_info): Update.
11446 (sh64_init_extra_frame_info): Update.
11447 * ns32knbsd-nat.c (frame_num_args): Update.
11448 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11449 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11450 (xstormy16_frame_chain_valid): Update.
11451 * vax-tdep.c (vax_saved_pc_after_call): Update.
11452 * v850-tdep.c (v850_frame_chain): Update.
11453 (v850_pop_frame): Update.
11454 (v850_init_extra_frame_info): Update.
11455 * sparc-tdep.c (setup_arbitrary_frame): Update.
11456 * ns32k-tdep.c (umax_frame_num_args): Update.
11457 * s390-tdep.c (s390_pop_frame_regular): Update.
11458 * mn10300-tdep.c (mn10300_frame_chain): Update.
11459 (mn10300_pop_frame_regular): Update.
11460 (mn10300_init_extra_frame_info): Update.
11461 * mips-tdep.c (mips_init_frame_pc_first): Update.
11462 (mips_frame_chain): Update.
11463 (mips_pop_frame): Update.
11464 * mcore-tdep.c (mcore_frame_chain): Update.
11465 (mcore_pop_frame): Update.
11466 (mcore_init_extra_frame_info): Update.
11467 * arch-utils.c (init_frame_pc_default): Update.
11468 * m68k-tdep.c (isi_frame_num_args): Update.
11469 (delta68_frame_num_args): Update.
11470 (news_frame_num_args): Update.
11471 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11472 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11473 (alpha_frame_chain): Update.
11474 (alpha_pop_frame): Update.
11475 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11476 (hppa_init_extra_frame_info): Update.
11477 (hppa_frame_chain): Update.
11478 (hppa_frame_chain_valid): Update.
11479 * cris-tdep.c (cris_init_extra_frame_info): Update.
11480 * avr-tdep.c (avr_init_extra_frame_info): Update.
11481 * arm-tdep.c (arm_frame_chain_valid): Update.
11482 (arm_init_extra_frame_info): Update.
11483 (arm_pop_frame): Update.
11484 * frame.c (frame_pc_unwind): Update.
11485 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11486 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11487 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11488 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11489 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11490 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11491
11492 2003-03-12 Andrew Cagney <cagney@redhat.com>
11493
11494 Eliminate the need for POP_FRAME.
11495 * frame.c (do_frame_unwind_register): New function.
11496 (frame_pop): When no POP_FRAME, pop the frame using register
11497 unwind and a scratch regcache.
11498 (frame_saved_regs_pop): Delete function.
11499 (trad_frame_unwinder): Update.
11500 * d10v-tdep.c (d10v_frame_pop): Delete function.
11501 (d10v_frame_unwind): Update.
11502 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11503 (sentinel_frame_unwinder): Update.
11504 * dummy-frame.c (dummy_frame_pop): Delete function.
11505 (dummy_frame_unwind): Update.
11506 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11507 (struct frame_unwind): Update.
11508
11509 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11510
11511 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11512 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11513 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11514 Do range checks on register number obtained from debugging info.
11515 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11516 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11517 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11518 mapping function.
11519 (do_fp_register_row): Fix typo which caused double type to be
11520 used when attempting to unpack a float.
11521
11522 2003-03-11 J. Brobecker <brobecker@gnat.com>
11523
11524 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11525
11526 2003-03-11 Andrew Cagney <cagney@redhat.com>
11527
11528 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11529 frame. Problem found by Corinna Vinschen.
11530
11531 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11532
11533 * doublest.c (floatformat_from_length): Accept also
11534 the real size of 'long double' type.
11535
11536 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11537
11538 From Klee Dienes <kdienes@apple.com>:
11539 * breakpoint.c (bpstat_copy): Copy the command lines as well
11540 as the old value, to match what is freed in bpstat_clear.
11541
11542 2003-03-10 David Carlton <carlton@math.stanford.edu>
11543
11544 * minsyms.c (add_minsym_to_hash_table): Replace
11545 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11546 (compare_minimal_symbols, compact_minimal_symbols)
11547 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11548 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11549 of DEPRECATED_SYMBOL_MATCHES_NAME.
11550 (lookup_minimal_symbol_solib_trampoline): Ditto.
11551
11552 2003-03-10 Andrew Cagney <cagney@redhat.com>
11553
11554 * regcache.h (regcache_cooked_read_ftype): Define.
11555 (regcache_save, regcache_restore): Add a cooked_read parameter.
11556 * regcache.c (regcache_save, regcache_restore): Update.
11557 (do_cooked_read): New function.
11558 (regcache_cpy): Pass do_cooked_read to regcache_save and
11559 regcache_restore.
11560
11561 2003-03-10 Andrew Cagney <cagney@redhat.com>
11562
11563 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11564 * gdbarch.h, gdbarch.c: Re-generate.
11565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11566 * x86-64-tdep.h: Update.
11567 * x86-64-tdep.c (x86_64_init_abi): Update.
11568 * v850-tdep.c (v850_gdbarch_init): Update.
11569 * sparc-tdep.c (sparc_gdbarch_init): Update.
11570 * sh-tdep.c (sh_gdbarch_init): Update.
11571 * s390-tdep.c (s390_gdbarch_init): Update.
11572 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11573 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11574 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11575 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11576 * mips-tdep.c (mips_gdbarch_init): Update.
11577 * mcore-tdep.c (mcore_gdbarch_init): Update.
11578 * m68k-tdep.c (m68k_gdbarch_init): Update.
11579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11580 * ia64-tdep.c (ia64_gdbarch_init): Update.
11581 * i386-tdep.c (i386_gdbarch_init): Update.
11582 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11583 * hppa-tdep.c (hppa_gdbarch_init): Update.
11584 * h8300-tdep.c (h8300_gdbarch_init): Update.
11585 * frv-tdep.c (frv_gdbarch_init): Update.
11586 * cris-tdep.c (cris_gdbarch_init): Update.
11587 * avr-tdep.c (avr_gdbarch_init): Update.
11588 * arm-tdep.c (arm_gdbarch_init): Update.
11589 * alpha-tdep.c (alpha_gdbarch_init): Update.
11590 * sh-tdep.c (sh_init_extra_frame_info): Update.
11591 (sh64_init_extra_frame_info): Update.
11592 * ns32knbsd-nat.c (frame_num_args): Update.
11593 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11594 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11595 (xstormy16_frame_chain_valid): Update.
11596 * vax-tdep.c (vax_saved_pc_after_call): Update.
11597 * v850-tdep.c (v850_frame_chain): Update.
11598 (v850_pop_frame): Update.
11599 (v850_init_extra_frame_info): Update.
11600 * sparc-tdep.c (setup_arbitrary_frame): Update.
11601 * ns32k-tdep.c (umax_frame_num_args): Update.
11602 * s390-tdep.c (s390_pop_frame_regular): Update.
11603 * mn10300-tdep.c (mn10300_frame_chain): Update.
11604 (mn10300_pop_frame_regular): Update.
11605 (mn10300_init_extra_frame_info): Update.
11606 * mips-tdep.c (mips_init_frame_pc_first): Update.
11607 (mips_frame_chain): Update.
11608 (mips_pop_frame): Update.
11609 * mcore-tdep.c (mcore_frame_chain): Update.
11610 (mcore_pop_frame): Update.
11611 (mcore_init_extra_frame_info): Update.
11612 * arch-utils.c (init_frame_pc_default): Update.
11613 * m68k-tdep.c (isi_frame_num_args): Update.
11614 (delta68_frame_num_args): Update.
11615 (news_frame_num_args): Update.
11616 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11617 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11618 (alpha_frame_chain): Update.
11619 (alpha_pop_frame): Update.
11620 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11621 (hppa_init_extra_frame_info): Update.
11622 (hppa_frame_chain): Update.
11623 (hppa_frame_chain_valid): Update.
11624 * cris-tdep.c (cris_init_extra_frame_info): Update.
11625 * avr-tdep.c (avr_init_extra_frame_info): Update.
11626 * arm-tdep.c (arm_frame_chain_valid): Update.
11627 (arm_init_extra_frame_info): Update.
11628 (arm_pop_frame): Update.
11629 * frame.c (frame_pc_unwind): Update.
11630 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11631 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11632 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11633 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11634 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11635 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11636
11637 2003-03-10 Andrew Cagney <cagney@redhat.com>
11638
11639 * gdbarch.sh (gdbarch_unwind_pc): New method.
11640 * gdbarch.h, gdbarch.c: Regenerate.
11641 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11642 but use read_pc and FRAME_SAVED_PC as fall backs.
11643 (frame_saved_regs_pc_unwind): Delete function.
11644 (trad_frame_unwinder): Update.
11645 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11646 (struct frame_unwind): Update.
11647 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11648 (dummy_frame_unwind): Update.
11649 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11650 (sentinel_frame_unwinder): Update.
11651 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11652 (d10v_frame_unwind): Update.
11653 (d10v_unwind_pc): New function.
11654 (d10v_gdbarch_init): Set unwind_pc.
11655
11656 2003-03-10 Andrew Cagney <cagney@redhat.com>
11657
11658 * gdbarch.h: Re-generate.
11659
11660 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11661 PC.
11662 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11663 the PC register.
11664
11665 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11666
11667 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11668
11669 2003-03-08 Andrew Cagney <cagney@redhat.com>
11670
11671 * cli-out.c: Update copyright.
11672 (cli_out_data): Define typedef. Use instead of ui_out_data.
11673
11674 2003-03-08 Andrew Cagney <cagney@redhat.com>
11675
11676 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11677 the result.
11678
11679 2003-03-07 Andrew Cagney <cagney@redhat.com>
11680
11681 * gdbarch.sh: Don't generate two macro definitions when an
11682 undefined macro taking no arguments.
11683 * gdbarch.h: Regenerate.
11684
11685 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11686
11687 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11688 (x86_64_unwind_dummy_id): New functions.
11689 (x86_64_init_abi): Register these two new functions.
11690
11691 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11692
11693 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11694 (x86_64_skip_prologue): Move prologue detection to
11695 separate function.
11696 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11697
11698 2003-03-05 Andrew Cagney <cagney@redhat.com>
11699
11700 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11701 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11702 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11703 to use unwind_dummy_id when a dummy frame.
11704 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11705 predicate.
11706 * gdbarch.h, gdbarch.c: Regneerate.
11707
11708 2003-03-05 Andrew Cagney <cagney@redhat.com>
11709
11710 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11711 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11712 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11713 values.
11714
11715 2003-03-05 Andrew Cagney <cagney@redhat.com>
11716
11717 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11718 (struct d10v_unwind_cache): Delete field "frameless". Replace
11719 "next_addr" with "sp_offset". Add "r11_offset".
11720 (d10v_frame_unwind_cache): Update.
11721 (prologue_find_regs): Update. When "mv r11, sp", save the
11722 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11723 RN was saved in r11_offset.
11724
11725 2003-03-05 Andrew Cagney <cagney@redhat.com>
11726
11727 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11728 cached PC value in the next frame.
11729
11730 2003-03-05 Andrew Cagney <cagney@redhat.com>
11731
11732 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11733 "id_unwind_cache" with "id".
11734 (frame_id_unwind): Delete declaration.
11735 * frame.c (frame_id_unwind): Delete function.
11736 (get_prev_frame): Call the frame id unwind method directly. Store
11737 the returned next frame's ID value in NEXT_FRAME. Note that there
11738 is a problem with the wrong unwind ID being called with the wrong
11739 unwind cache.
11740
11741 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11742
11743 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11744
11745 2003-03-05 James Ingham <jingham@apple.com>
11746 Daniel Jacobowitz <drow@mvista.com>
11747
11748 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11749 (auto_cp_abi): New variable.
11750 (current_cp_abi, num_cp_abis): Make static.
11751 (CP_ABI_MAX): Define.
11752 (cp_abis): Turn into an array.
11753 (value_virtual_fn_field): Fix formatting.
11754 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11755 takes a pointer.
11756 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11757 (list_cp_abis, _initialize_cp_abi): New functions.
11758 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11759 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11760 switch_to_cp_abi. Update prototype for register_cp_abi.
11761 * Makefile.in (cp-abi.o): Update dependencies.
11762 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11763 instead of switch_to_cp_abi.
11764 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11765 register_cp_abi.
11766 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11767 register_cp_abi.
11768 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11769
11770 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11771
11772 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11773 * dwarf2loc.c: Include "regcache.h".
11774 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11775 register_size.
11776 * Makefile.in (dwarf2loc.o): Update dependencies.
11777
11778 2003-03-04 Theodore A. Roth <troth@openavr.org>
11779
11780 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11781 number of io registers reported by remote target is not a multiple of
11782 step.
11783
11784 2003-03-04 David Carlton <carlton@math.stanford.edu>
11785
11786 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11787 (lookup_symbol_aux_psymtabs): Update call to
11788 lookup_partial_symbol.
11789 (lookup_transparent_type, find_main_psymtab)
11790 (make_symbol_overload_list): Ditto.
11791
11792 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11793
11794 * MAINTAINERS (Write after approval): Update my email address.
11795
11796 2003-03-03 Andrew Cagney <cagney@redhat.com>
11797
11798 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11799 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11800 predicate. Replace MAX_REGISTER_RAW_SIZE.
11801 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11802 MAX_REGISTER_VIRTUAL_SIZE.
11803 * regcache.c (legacy_max_register_raw_size): New function.
11804 (legacy_max_register_virtual_size): New function.
11805 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11806 (MAX_REGISTER_RAW_SIZE): Define.
11807 (legacy_max_register_raw_size): Declare.
11808 (legacy_max_register_virtual_size): Declare.
11809 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11810 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11811 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11812 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11813 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11814 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11815 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11816 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11817 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11819 * vax-tdep.c (vax_gdbarch_init): Update.
11820 * v850-tdep.c (v850_gdbarch_init): Update.
11821 * sparc-tdep.c (sparc_gdbarch_init): Update.
11822 * sh-tdep.c (sh_gdbarch_init): Update.
11823 * s390-tdep.c (s390_gdbarch_init): Update.
11824 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11825 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11826 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11827 * mips-tdep.c (mips_gdbarch_init): Update.
11828 * mcore-tdep.c (mcore_gdbarch_init): Update.
11829 * m68k-tdep.c (m68k_gdbarch_init): Update.
11830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11831 * ia64-tdep.c (ia64_gdbarch_init): Update.
11832 * i386-tdep.c (i386_gdbarch_init): Update.
11833 * hppa-tdep.c (hppa_gdbarch_init): Update.
11834 * h8300-tdep.c (h8300_gdbarch_init): Update.
11835 * frv-tdep.c (frv_gdbarch_init): Update.
11836 * cris-tdep.c (cris_gdbarch_init): Update.
11837 * avr-tdep.c (avr_gdbarch_init): Update.
11838 * arm-tdep.c (arm_gdbarch_init): Update.
11839 * alpha-tdep.c (alpha_gdbarch_init): Update.
11840 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11841 max_register_raw_size or max_register_virtual_size.
11842
11843 2003-03-03 David Carlton <carlton@math.stanford.edu>
11844
11845 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11846 SYMBOL_MATCHES_NAME, add comment.
11847 (SYMBOL_MATCHES_NATURAL_NAME): New.
11848 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11849 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11850 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11851 * symtab.c (lookup_partial_symbol): Use
11852 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11853 unhelpful comment.
11854 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11855 SYMBOL_MATCHES_NAME.
11856 Fix for PR c++/33.
11857
11858 2003-03-03 David Carlton <carlton@math.stanford.edu>
11859
11860 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11861 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11862 by regexp matching against SYMBOL_NATURAL_NAME.
11863
11864 2003-03-03 David Carlton <carlton@math.stanford.edu>
11865
11866 * linespec.c (find_method): Extract code into collect_methods.
11867 (collect_methods): New.
11868
11869 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11870
11871 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11872 get_frame_base.
11873
11874 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11875 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11876
11877 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11878
11879 * arch-utils.c (generic_register_byte): Fix to use the loop index
11880 and not regnum when summing the size of all registers up to regnum.
11881
11882 2003-03-01 Andrew Cagney <cagney@redhat.com>
11883
11884 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11885 FRAME_INIT_SAVED_REGS.
11886 * gdbarch.h, gdbarch.c: Regenerate.
11887 * stack.c (frame_info): Update.
11888 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11889 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11890 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11891 * ns32k-tdep.c (ns32k_pop_frame): Update.
11892 * mips-tdep.c (mips_pop_frame): Update.
11893 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11894 * ia64-tdep.c (ia64_frame_chain): Update.
11895 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11896 (ia64_frameless_function_invocation): Update.
11897 (ia64_init_extra_frame_info): Update.
11898 (ia64_pop_frame_regular): Update.
11899 * frame.h (struct frame_info): Update comment.
11900 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11901 * frame.c (frame_saved_regs_register_unwind): Update.
11902 (frame_saved_regs_register_unwind): Update.
11903 (deprecated_generic_get_saved_register): Update.
11904 * cris-tdep.c: Update comment.
11905 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11906 Rename macro.
11907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11908 * x86-64-tdep.c (x86_64_init_abi): Update.
11909 * vax-tdep.c (vax_gdbarch_init): Update.
11910 * v850-tdep.c (v850_gdbarch_init): Update.
11911 * sparc-tdep.c (sparc_gdbarch_init): Update.
11912 * sh-tdep.c (sh_gdbarch_init): Update.
11913 * s390-tdep.c (s390_gdbarch_init): Update.
11914 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11915 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11916 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11917 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11918 * mips-tdep.c (mips_gdbarch_init): Update.
11919 * mcore-tdep.c (mcore_gdbarch_init): Update.
11920 * m68k-tdep.c (m68k_gdbarch_init): Update.
11921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11922 * ia64-tdep.c (ia64_gdbarch_init): Update.
11923 * i386-tdep.c (i386_gdbarch_init): Update.
11924 * frv-tdep.c (frv_gdbarch_init): Update.
11925 * avr-tdep.c (avr_gdbarch_init): Update.
11926 * arm-tdep.c (arm_gdbarch_init): Update.
11927 * alpha-tdep.c (alpha_gdbarch_init): Update.
11928
11929 2003-03-01 Andrew Cagney <cagney@redhat.com>
11930
11931 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11932 option enum and switch. When no windows, set the interpreter to
11933 INTERP_CONSOLE.
11934
11935 2003-03-01 Andrew Cagney <cagney@redhat.com>
11936
11937 * main.c (captured_main): Replace magic option characters with an
11938 enum.
11939
11940 2003-03-01 Andrew Cagney <cagney@redhat.com>
11941
11942 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11943 INIT_EXTRA_FRAME_INFO.
11944 * gdbarch.h, gdbarch.c: Regenerate.
11945 * arm-tdep.c: Update comments.
11946 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11947 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11948 * frame.h, avr-tdep.c: Ditto.
11949 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11950 (create_new_frame, legacy_get_prev_frame): Ditto.
11951 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11952 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11954 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11955 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11956 * v850-tdep.c (v850_gdbarch_init): Ditto.
11957 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11958 * sh-tdep.c (sh_gdbarch_init): Ditto.
11959 * s390-tdep.c (s390_gdbarch_init): Ditto.
11960 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11961 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11962 * mips-tdep.c (mips_gdbarch_init): Ditto.
11963 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11964 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11965 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11966 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11967 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11968 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11969 * frv-tdep.c (frv_gdbarch_init): Ditto.
11970 * cris-tdep.c (cris_gdbarch_init): Ditto.
11971 * avr-tdep.c (avr_gdbarch_init): Ditto.
11972 * arm-tdep.c (arm_gdbarch_init): Ditto.
11973 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11974 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11975
11976 2003-03-01 Andrew Cagney <cagney@redhat.com>
11977
11978 * gdbarch.sh (register_type): New function with predicate.
11979 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11980 * gdbarch.h, gdbarch.c: Re-generate.
11981 * arch-utils.c (generic_register_byte): Use generic_register_size.
11982 (generic_register_size): When available, use
11983 gdbarch_register_type.
11984 * regcache.c (init_regcache_descr): When available, initialize the
11985 register type array using gdbarch_register_type. If the
11986 architecture supplies gdbarch_register_type, do not use the legacy
11987 regcache layout.
11988 * d10v-tdep.c (d10v_register_type): Replace
11989 d10v_register_virtual_type.
11990 (d10v_gdbarch_init): Set register_type instead of
11991 register_virtual_type.
11992
11993 2003-03-01 Andrew Cagney <cagney@redhat.com>
11994
11995 * Makefile.in (ax-gdb.o): Update dependencies.
11996 * ax-gdb.c: Include "regcache.h".
11997 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11998 * findvar.c (value_of_register): Ditto.
11999 * infcmd.c (default_print_registers_info): Ditto.
12000
12001 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12002
12003 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12004 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12005
12006 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12007
12008 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12009 of STREQ.
12010
12011 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12012
12013 * Makefile.in (dwarf2loc.o): Update dependencies.
12014 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12015 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12016 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12017 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12018 (locexpr_tracepoint_var_ref): New function.
12019 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12020
12021 2003-02-28 Andrew Cagney <cagney@redhat.com>
12022
12023 * regcache.c (register_size): New function.
12024 * regcache.h (register_size): Declare
12025 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12026 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12027
12028 2003-02-28 David Carlton <carlton@math.stanford.edu>
12029
12030 * linespec.c (decode_compound): Extract code into find_method.
12031 (find_method): New.
12032
12033 2003-02-28 J. Brobecker <brobecker@gnat.com>
12034
12035 * Makefile.in: Add rules to build and link in observer.o.
12036
12037 2003-02-27 J. Brobecker <brobecker@gnat.com>
12038
12039 * observer.c: Minor comments edits.
12040
12041 2003-02-27 J. Brobecker <brobecker@gnat.com>
12042
12043 * observer.h, observer.c: New file.
12044
12045 2003-02-27 Andrew Cagney <cagney@redhat.com>
12046
12047 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12048
12049 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12050
12051 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12052 (M6812_OP_STS_EXT): Likewise.
12053 (m6811_prologue): Use the above to recognize prologue.
12054 (m6812_prologue): Likewise.
12055
12056 2003-02-27 David Carlton <carlton@math.stanford.edu>
12057
12058 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12059 SYMBOL_PRINT_NAME.
12060 (compare_psymbols): Ditto.
12061 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12062
12063 2003-02-27 Michael Snyder <msnyder@redhat.com>
12064
12065 * f-lang.c (build_fortran_types): New function.
12066 (_initialize_f_language): Gdbarch-register built-in fortran types.
12067 * doublest.c (extract_floating): Fix warning text.
12068
12069 2003-02-27 Andrew Cagney <cagney@redhat.com>
12070
12071 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12072 predicate. Replaces PUSH_DUMMY_FRAME.
12073 * gdbarch.h, gdbarch.c: Regnerate.
12074 * valops.c (hand_function_call): Update. Call
12075 generic_push_dummy_frame directly.
12076 * vax-tdep.c (vax_gdbarch_init): Update.
12077 * sparc-tdep.c (sparc_gdbarch_init): Update.
12078 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12079 * m68k-tdep.c (m68k_gdbarch_init): Update.
12080 * hppa-tdep.c (hppa_gdbarch_init): Update.
12081 * alpha-tdep.c (alpha_gdbarch_init): Update.
12082 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12083 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12084 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12086 push_dummy_frame to generic_push_dummy_frame.
12087 * v850-tdep.c (v850_gdbarch_init): Ditto.
12088 * sh-tdep.c (sh_gdbarch_init): Ditto.
12089 * s390-tdep.c (s390_gdbarch_init): Ditto.
12090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12091 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12092 * mips-tdep.c (mips_gdbarch_init): Ditto.
12093 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12095 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12096 * i386-tdep.c (i386_gdbarch_init): Ditto.
12097 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12098 * frv-tdep.c (frv_gdbarch_init): Ditto.
12099 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12100 * cris-tdep.c (cris_gdbarch_init): Ditto.
12101 * avr-tdep.c (avr_gdbarch_init): Ditto.
12102 * arm-tdep.c (arm_gdbarch_init): Ditto.
12103
12104 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12105
12106 * mips-tdep.c (show_mips_abi): New function.
12107 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12108 command ``show mips abi''.
12109
12110 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12111
12112 From Elena Zannoni <ezannoni@redhat.com>
12113 * dbxread.c (process_one_symbol): Only record line 0 if one or
12114 more sline entries have been seen for the function.
12115
12116 2003-02-26 Michael Chastain <mec@shout.net>
12117
12118 * configure: Regenerate with autoconf 000227.
12119
12120 2003-02-26 Michael Chastain <mec@shout.net>
12121
12122 Close PR build/660.
12123 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12124 for old libc5/glibc.
12125 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12126
12127 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12128
12129 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12130 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12131
12132 2003-02-26 Michael Chastain <mec@shout.net>
12133
12134 * configure.in: New variable HAVE_UINTPTR_T.
12135 * configure, config.in: Regenerated.
12136
12137 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12138
12139 Fix PR build/1097.
12140 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12141
12142 2003-02-25 Andrew Cagney <cagney@redhat.com>
12143
12144 * frame.c (get_prev_frame): Add comment on check for
12145 inside_entry_func. Only check for inside_entry_file when not a
12146 dummy and not a sentinel. Check that the new frame is not inner
12147 to the old frame.
12148
12149 2003-02-25 Andrew Cagney <cagney@redhat.com>
12150
12151 * frame.c (frame_debug): New variable.
12152 (_initialize_frame): Add "set/show debug frame" command.
12153 (get_prev_frame): When frame_debug, print reason why unwind
12154 failed.
12155
12156 2003-02-25 Michael Chastain <mec@shout.net>
12157
12158 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12159 to avoid uintptr_t definition problems.
12160
12161 2003-02-25 David Carlton <carlton@math.stanford.edu>
12162
12163 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12164 (SYMBOL_LINKAGE_NAME): Ditto.
12165 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12166 SYMBOL_LINKAGE_NAME.
12167 (struct general_symbol_info): Expand comment.
12168 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12169 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12170 (SYMBOL_MATCHES_REGEXP): Ditto.
12171 * symtab.c (symbol_natural_name): New function.
12172 * objfiles.h: Replace all uses of SYMBOL_NAME by
12173 DEPRECATED_SYMBOL_NAME.
12174 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12175 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12176 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12177 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12178 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12179 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12180 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12181 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12182 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12183 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12184 * ada-exp.y: Ditto.
12185 * ada-exp.y: Update copyright.
12186 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12187 * cp-valprint.c: Ditto.
12188
12189 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12190
12191 * infptrace.c (detach): Do not flag error if ptrace detach fails
12192 and errno is set to ESRCH.
12193
12194 2003-02-24 Andrew Cagney <cagney@redhat.com>
12195
12196 * infptrace.c (udot_info): Change type of udot_off to long. Use
12197 paddr when printing udot_off's value.
12198
12199 2003-02-24 David Carlton <carlton@math.stanford.edu>
12200
12201 * symtab.c (make_symbol_overload_list): Only read in partial
12202 symtabs containing a matching partial symbol.
12203
12204 2003-02-24 David Carlton <carlton@math.stanford.edu>
12205
12206 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12207 do the comparison, not strcmp.
12208 * symfile.c (compare_psymbols): Ditto.
12209 * defs.h: Declare strcmp_iw_ordered.
12210 * utils.c (strcmp_iw_ordered): New function.
12211
12212 2003-02-24 Jim Blandy <jimb@redhat.com>
12213
12214 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12215 support, shared libs): Remove my name from here, to better reflect
12216 reality.
12217
12218 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12219
12220 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12221 (target_ops): Add to_have_continuable_watchpoint.
12222 * target.c (update_current_target): Add INHERIT line for
12223 to_have_continuable_watchpoint.
12224 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12225 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12226 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12227 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12228
12229 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12230
12231 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12232 maintainership.
12233
12234 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12235
12236 * solib.c (solib_open): Call target defined search function after
12237 failing with solib-search-path.
12238 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12239 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12240
12241 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12242
12243 * MAINTAINERS: Add myself to Write After section.
12244
12245 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12246
12247 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12248
12249 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12250
12251 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12252 (m68hc11_add_reggroups): New function.
12253 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12254 (m68hc11_gdbarch_init): Install the reggroups.
12255 (_initialize_m68hc11_tdep): Initialize them.
12256
12257 2003-02-21 James E Wilson <wilson@tuliptree.org>
12258
12259 * MAINTAINERS: Update my email address.
12260
12261 2003-02-21 David Carlton <carlton@math.stanford.edu>
12262
12263 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12264
12265 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12266
12267 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12268 * symtab.h: Add opaque declarations of struct axs_value and
12269 struct agent_expr.
12270 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12271 (struct location_funcs): New type.
12272 (struct symbol): Add "loc" to aux_value.
12273 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12274 * dwarf2read.c: Include "dwarf2expr.h".
12275 (dwarf2_symbol_mark_computed): New function.
12276 (read_func_scope): Use it.
12277 (var_decode_location): New function.
12278 (new_symbol): Use it.
12279 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12280
12281 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12282 (dwarf2expr_h, dwarf2loc_h): New variables.
12283 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12284 (dwarf2expr.o, dwarf2loc.o): New rules.
12285 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12286 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12287 LOC_COMPUTED_ARG.
12288 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12289 * m2-exp.y (yylex): Likewise.
12290 * printcmd.c (address_info, print_frame_args): Likewise.
12291 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12292 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12293 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12294 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12295 * symtab.c (lookup_block_symbol): Likewise.
12296
12297 2003-02-20 Adam Fedor <fedor@gnu.org>
12298
12299 * symtab.h: Remove objc_specific struct
12300 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12301 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12302 Have language_objc use cplus_specific struct.
12303
12304 2003-02-20 Tom Tromey <tromey@redhat.com>
12305
12306 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12307 TYPE_NAME, when printing a String value. PR java/1075.
12308
12309 2003-02-20 Adam Fedor <fedor@gnu.org>
12310
12311 * objc-lang.h (find_methods): Remove declaration.
12312 * objc-lang.c (find_methods): Make static.
12313
12314 2003-02-20 Christopher Faylor <cgf@redhat.com>
12315
12316 * win32-nat.c (get_image_name): Check return value from
12317 ReadProcessMemory.
12318 (child_xfer_memory): Ditto.
12319
12320 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12321
12322 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12323 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12324 '${exec_prefix}' (in addition to the expansion thereof) as
12325 relocatable.
12326 * configure: Rebuilt.
12327
12328 2003-02-20 David Carlton <carlton@math.stanford.edu>
12329
12330 * symtab.c (search_symbols): Revert the search_symbols part of my
12331 2002-12-23 patch. Add comment.
12332
12333 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12334
12335 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12336 * dbxread.c (elfstab_build_psymtabs): Don't call
12337 install_minimal_symbols.
12338 (stabsect_build_psymtabs): Likewise.
12339 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12340 earlier.
12341 * somread.c (som_symfile_read): Call install_minimal_symbols
12342 and do_cleanups earlier.
12343 * nlmread.c (nlm_symfile_read): Likewise.
12344 * mdebugread.c (elfmdebug_build_psymtabs): Call
12345 install_minimal_symbols and make appropriate cleanups.
12346
12347 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12348
12349 * solib.c (reload_shared_libraries): New function.
12350 (_initialize_solib): Add callbacks for ``set solib-search-path''
12351 and ``set solib-absolute-prefix''.
12352
12353 2003-02-20 David Carlton <carlton@math.stanford.edu>
12354
12355 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12356 expand comment.
12357 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12358 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12359 * ada-typeprint.c (ada_typedef_print): Ditto.
12360 * ax-gdb.c (gen_var_ref): Ditto.
12361 * breakpoint.c (print_one_breakpoint): Ditto.
12362 * buildsym.c (finish_block): Ditto.
12363 * c-valprint.c (c_val_print): Ditto.
12364 * expprint.c (print_subexp): Ditto.
12365 * findvar.c (locate_var_value): Ditto.
12366 * infcmd.c (jump_command): Ditto.
12367 * linespec.c (decode_line_2, decode_compound): Ditto.
12368 * maint.c (maintenance_translate_address): Ditto.
12369 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12370 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12371 Ditto.
12372 * p-valprint.c (pascal_val_print): Ditto.
12373 * stabsread.c (define_symbol): Ditto.
12374 * stack.c (print_frame, frame_info, print_block_frame_locals)
12375 (print_frame_arg_vars, return_command): Ditto.
12376 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12377 * symmisc.c (print_symbol): Ditto.
12378 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12379 (compare_search_syms, print_symbol_info, print_msymbol_info)
12380 (rbreak_command): Ditto.
12381 * tracepoint.c (tracepoints_info): Ditto.
12382 * typeprint.c (typedef_print): Ditto.
12383 * valops.c (value_of_variable, hand_function_call): Ditto.
12384 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12385 * ada-typeprint.c: Update Copyright.
12386 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12387 * tracepoint.c, cli/cli-cmds.c: Ditto.
12388
12389 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12390
12391 * frame.c (generic_unwind_get_saved_register): Make non-static.
12392 * frame.h (generic_unwind_get_saved_register): Declare.
12393 * mips-tdep.c (read_next_frame_reg): Fetch register from
12394 current regcache when frame is NULL.
12395 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12396 that must be NULL.
12397 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12398 instead of frame_register_unwind().
12399
12400 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12401
12402 * remote-sim.c (gdbsim_insert_breakpoint)
12403 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12404 code.
12405
12406 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12407
12408 * remote.c (_initialize_remote): Add commands "set/show remote
12409 hardware-watchpoint-limit" and "set/show remote
12410 hardware-breakpoint-limit".
12411 (remote_hw_watchpoint_limit): Initialize to -1.
12412 (remote_hw_breakpoint_limit): Ditto.
12413 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12414
12415 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12416
12417 * coff-pe-read.c: New file - support reading of minimal symbols from a
12418 portable executable using the export table.
12419 * coff-pe-read.h: New file.
12420 * coffread.c: Include coff-pe-read.h.
12421 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12422 debugging symbols found.
12423 * Makefile.in (SFILES): Add coff-pe-read.o.
12424 (coff_pe_read_h): Define.
12425 (COMMON_OBS): Add coff-pe-read.o.
12426 (coffread.o): Add coff_pe_read_h dependency.
12427 (coff-pe-read.o): New target.
12428
12429 2003-02-19 David Carlton <carlton@math.stanford.edu>
12430
12431 * Makefile.in (SFILES): Add block.c.
12432 (block_h): New.
12433 (COMMON_OBS): Add block.o.
12434 (block.o): New.
12435 (x86-64-tdep.o): Add $(block_h).
12436 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12437 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12438 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12439 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12440 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12441 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12442 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12443 * value.h: Add opaque declaration for struct block.
12444 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12445 * ada-lang.h: Ditto.
12446 * x86-64-tdep.c: #include "block.h"
12447 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12448 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12449 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12450 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12451 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12452 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12453 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12454 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12455 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12456 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12457 * symtab.c (block_function): Ditto.
12458 (contained_in): Ditto.
12459 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12460 block.h. Add opaque declaration for struct block.
12461 * symtab.h: Move block_function and contained_in declarations to
12462 block.h. Add opaque declarations for struct block, struct
12463 blockvector.
12464 (struct block): Move to block.h.
12465 (struct blockvector): Ditto.
12466 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12467 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12468 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12469 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12470 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12471 Ditto.
12472 * block.c: New file.
12473 * block.h: New file.
12474
12475 2003-02-19 Theodore A. Roth <troth@openavr.org>
12476
12477 * avr-tdep.c (avr_extract_return_value): Remove function.
12478 (avr_store_return_value): Remove function.
12479 (avr_extract_struct_value_address): Remove function.
12480 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12481
12482 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12483
12484 * rs6000-tdep.c: Include "gdb_assert.h".
12485 (registers_e500): Add "acc" and "spefscr".
12486 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12487 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12488 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12489 really is "r0".
12490 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12491
12492 2003-02-18 Keith Seitz <keiths@redhat.com>
12493
12494 * Makefile.in: Add gdbtk-interps.c.
12495
12496 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12497
12498 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12499 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12500
12501 2003-02-18 Andrew Cagney <cagney@redhat.com>
12502
12503 * symtab.h (struct objfile): Add opaque declaration.
12504
12505 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12506
12507 From Jim Ingham <jingham@apple.com>:
12508 * dbxread.c (process_one_symbol): Use last_function_start rather
12509 than function_start_offset to find the real beginning of the
12510 current function. The latter is just the text section offset on
12511 some systems, the former is always the real function start.
12512
12513 2003-02-17 Andrew Cagney <cagney@redhat.com>
12514
12515 * configure.in: Revert ${target} != ${host}.
12516
12517 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12518
12519 * configure.in (Makefile): Use the test ${target} != ${host},
12520 instead of the absence of the "nm.h" file, to determine of the
12521 configuration non-native.
12522 * configure: Regenerate.
12523
12524 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12525
12526 From Brian Ford <ford@vss.fsi.com>
12527
12528 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12529 conditionalize tui_active test.
12530 (lookup_cmd_1): Ditto.
12531
12532 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12533
12534 * configure.in: Add check for _etext.
12535 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12536 available.
12537 * config.in, configure: regenerated.
12538
12539 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12540
12541 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12542
12543 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12544
12545 * main.c (tui_version): Delete variable.
12546 (captured_main): When --tui, set interpreter_p to "tui" instead of
12547 enabling tui_version.
12548 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12549 tui_version.
12550 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12551 * cli/cli-cmds.c (disassemble_command): Ditto.
12552 * defs.h (tui_version): Delete declaration.
12553 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12554 (tui-interp.o): Add rules.
12555 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12556
12557 2003-02-14 Christopher Faylor <cgf@redhat.com>
12558
12559 * win32-nat.c (register_loaded_dll): Correctly set address range for
12560 just-loaded dll.
12561
12562 2003-02-12 Jason Molenda (jmolenda@apple.com)
12563
12564 * symmisc.c (print_objfile_statistics): Include information about
12565 the number of psymtabs and symtabs in each object file.
12566
12567 2003-02-13 Keith R Seitz <keiths@redhat.com>
12568
12569 * main.h (struct captured_main_args): Add interpreter_p.
12570 * main.c (captured_main): Initialize interpreter_p from context.
12571 * gdb.c (main): Set interpreter_p argument.
12572 * Makefile.in (gdb.o): Add dependency for interps.h.
12573
12574 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12575
12576 * event-top.c (cli_command_loop): Delete declaration.
12577 (_initialize_event_loop): Delete function setting event_loop_hook.
12578 * event-top.h (cli_command_loop): Declare. Update copyright.
12579 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12580 * interps.c (current_interp_command_loop): When event_loop_p, call
12581 cli_command_loop.
12582
12583 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12584
12585 * interps.h (interp_command_loop_ftype): Change return type to
12586 void.
12587
12588 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12589
12590 * x86-64-tdep.c (x86_64_extract_return_value)
12591 (x86_64_store_return_value): Use regcache instead of regbuf.
12592 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12593 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12594
12595 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12596
12597 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12598 * aclocal.m4: Regenerate.
12599 * configure: Regenerate.
12600
12601 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12602 TCL_LD_SEARCH_FLAGS.
12603
12604 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12605
12606 * dwarf2cfi.c: Reindented.
12607
12608 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12609
12610 * interps.c (clear_interpreter_hooks): Convert function definition
12611 to ISO C.
12612
12613 2003-02-07 David Carlton <carlton@math.stanford.edu>
12614
12615 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12616
12617 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12618
12619 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12620 (struct type): ...to here.
12621 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12622 field.
12623 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12624 (replace_type): Set length on all type variants for a given type.
12625
12626 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12627
12628 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12629 <sys/stat.h>.
12630 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12631
12632 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12633
12634 * Makefile.in (symm-nat.o): Update dependencies.
12635 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12636 (lynx-nat.o, ia64-linux-nat.): Ditto.
12637 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12638 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12639 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12640
12641 * Makefile.in (inflow_h): Define.
12642 (procfs.o, inflow.o, procfs.o): Update dependencies.
12643 * inftarg.c (child_stop): Delete extern declaration of
12644 inferior_process_group. Include "inflow.h".
12645 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12646 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12647 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12648 (our_process_group, inferior_process_group): Extern declarations.
12649
12650 * procfs.c: Include "gdb_assert.h".
12651
12652 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12653 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12654 * jv-typeprint.c (java_type_print_base): Ditto.
12655 * typeprint.c (typedef_print): Eliminate STREQ.
12656 * cli/cli-script.c (define_command, define_command): Ditto.
12657 * main.c (captured_main): Ditto.
12658 * values.c (lookup_internalvar): Ditto.
12659 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12660 within `if' conditional.
12661 * linespec.c (decode_line_2): Ditto.
12662 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12663 (bfd_openw_with_cleanup): Ditto.
12664
12665 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12666
12667 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12668 legacy_extract_return_value and store_return_value to
12669 legacy_return_value.
12670
12671 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12672
12673 * win32-nat.c (get_relocated_section_addrs): New function. Find
12674 section load addresses for symbol handling in relocated DLLs.
12675 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12676
12677 2003-02-05 Fred Fish <fnf@intrinsity.com>
12678
12679 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12680 '=' and '!='.
12681 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12682 with '&' and '=='.
12683 (angel_RDI_info): Ditto.
12684 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12685 with '&' and '!='.
12686 (threads_continue_all_with_signals): Ditto.
12687
12688 2003-02-05 Jim Ingham <jingham@apple.com>
12689 Keith Seitz <keiths@redhat.com>
12690 Elena Zannoni <ezannoni@redhat.com>
12691 Andrew Cagney <ac131313@redhat.com>
12692
12693 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12694 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12695 (SUBDIR_MI_OBS): Add "mi-interp.o".
12696 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12697 (SFILES): Add "interps.c".
12698 (COMMON_OBS): Add "interps.o".
12699 (interps_h, mi_main_h): Define.
12700 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12701 (mi-main.o, main.o, event-top.o): Update dependencies.
12702 * cli/cli-interp.c: New file.
12703 * interps.h, interps.c: New files.
12704 * top.c: (gdb_init): Don't install the default interpreter, handed
12705 by captured_main.
12706 * main.c: Include "interps.h".
12707 (interpreter_p): Note that it should malloc'ed.
12708 (captured_command_loop): Call current_interp_command_loop.
12709 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12710 xfree and xstrdup when updating interpreter_p. Install the
12711 default interpreter. Add hack to stop mi1's copyright notice
12712 being encoded.
12713 * event-top.h (gdb_setup_readline): Declare.
12714 (gdb_disable_readline): Declare.
12715 * event-top.c: Include "interps.h".
12716 (display_gdb_prompt): Call current_interp_display_prompt_p.
12717 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12718 gdb_stdlog, and gdb_stdtarg.
12719 (_initialize_event_loop): Don't call gdb_setup_readline.
12720 * cli-out.c (cli_out_set_stream): New function.
12721 * cli-out.h (cli_out_set_stream): Declare.
12722
12723 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12724
12725 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12726 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12727 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12728 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12729 config/i386/i386v42mp.mt: Removed.
12730
12731 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12732
12733 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12734 GDB_OSABI_SOLARIS.
12735
12736 2003-02-05 Michael Chastain <mec@shout.net>
12737
12738 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12739 2.12.1 and earlier versions.
12740
12741 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12742
12743 Remove orphaned hosts, targets and files.
12744 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12745 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12746 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12747 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12748 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12749 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12750 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12751 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12752 * config/sparc/tm-sp64sim.h: Delete.
12753 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12754 hosts.
12755 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12756 mips*-dec-mach3* targets.
12757
12758 2003-02-04 Michael Chastain <mec@shout.net>
12759
12760 * NEWS: Fix typo: sepcifying -> specifying.
12761
12762 2003-02-04 Michael Chastain <mec@shout.net>
12763
12764 * dwarfread.c: Add documentation on the state of dwarf-1,
12765 looking towards obsoletion.
12766
12767 2003-02-03 Michael Chastain <mec@shout.net>
12768
12769 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12770 gdb/testsuite/gdb.c++/pr-1023.exp.
12771
12772 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12773
12774 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12775 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12776
12777 * utils.c (init_page_info): Delete reference to MPW in comments.
12778 * main.c (captured_main): Delete #ifdef MPW.
12779
12780 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12781
12782 * NEWS: Note that the m32r-*-elf* is obsolete.
12783 * monitor.c (monitor_expect): Obsolete reference to m32r.
12784 * configure.tgt: Mark m32r-*-elf* as obsolete.
12785 * MAINTAINERS: Mark m32k as obsolete.
12786 * m32r-rom.c: Obsolete file.
12787 * config/m32r/m32r.mt: Obsolete file.
12788 * config/m32r/tm-m32r.h: Obsolete file.
12789 * m32r-stub.c: Obsolete file.
12790 * m32r-tdep.c: Obsolete file.
12791
12792 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12793
12794 * NEWS: Mention that the z8k-zilog-none is obsolete.
12795 * MAINTAINERS: Mark z8k as obsolete.
12796 * configure.tgt: Obsolete the z8k-*-coff* target.
12797 * config/z8k/z8k.mt: Obsolete file.
12798 * config/z8k/tm-z8k.h: Obsolete file.
12799 * z8k-tdep.c: Obsolete file.
12800
12801 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12802
12803 * NEWS: Mention that the mn10200-elf is obsolete.
12804 * configure.tgt: Obsolete mn10200-*-* target.
12805 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12806 mention that the mn10200 is obsolete.
12807 * breakpoint.h: Ditto.
12808 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12809 * config/mn10200/mn10200.mt: Obsolete file.
12810 * config/mn10200/tm-mn10200.h: Obsolete file.
12811 * mn10200-tdep.c: Obsolete file.
12812
12813 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12814
12815 * MAINTAINERS: Mark h8500 as obsolete.
12816 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12817 * findvar.c (value_from_register): Ditto.
12818 * h8500-tdep.c: Mark file as obsolete.
12819 * config/h8500/h8500.mt: Ditto.
12820 * config/h8500/tm-h8500.h: Ditto.
12821 * NEWS: Mention that h8500 is obsolete.
12822
12823 2003-02-04 David Carlton <carlton@math.stanford.edu>
12824
12825 * objfiles.c (allocate_objfile): Always set name. Add comment at
12826 start of function.
12827 * jv-lang.c (get_dynamics_objfile): Add comment.
12828
12829 2003-02-04 David Carlton <carlton@math.stanford.edu>
12830
12831 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12832 * printcmd.c (build_address_symbolic): Replace uses of
12833 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12834 SYMBOL_NAME, and asm_demangle.
12835 Update copyright.
12836
12837 2003-02-04 David Carlton <carlton@math.stanford.edu>
12838
12839 * linespec.c (decode_compound): Extract code into
12840 lookup_prefix_sym.
12841 (lookup_prefix_sym): New function.
12842
12843 2003-02-04 David Carlton <carlton@math.stanford.edu>
12844
12845 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12846 FLOAT_COERCION_BADNESS.
12847 * gdbtypes.c (rank_one_type): Replace all uses of
12848 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12849
12850 2003-02-04 Jim Blandy <jimb@redhat.com>
12851
12852 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12853 section, let dwarf_macinfo_section point to it, not
12854 dwarf_loc_section.
12855
12856 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12857
12858 Pointed out by Anton Blanchard <anton@samba.org>.
12859 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12860 (ppc_linux_at_sigtramp_return_path): Use it.
12861
12862 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12863
12864 * defs.h (streq): Add prototype.
12865 * utils.c (streq): New function.
12866
12867 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12868 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12869 * mdebugread.c (new_symbol): Likewise.
12870 * stabsread.c (define_symbol): Likewise.
12871 * coffread.c (process_coff_symbol): Likewise.
12872 * dwarfread.c (new_symbol): Likewise.
12873
12874 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12875 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12876 here.
12877 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12878 SYMBOL_INIT_DEMANGLED_NAME.
12879 * objfiles.c: Include "hashtab.h".
12880 (allocate_objfile): Call htab_set_functions_ex for the
12881 demangled_names_hash.
12882 (free_objfile): Call htab_delete for the demangled_names_hash.
12883 * objfiles.h (struct htab): Add declaration.
12884 (struct objfile): Add demangled_names_hash.
12885 * symfile.c: Include "hashtab.h".
12886 (reread_symbols): Call htab_delete for the demangled_names_hash.
12887 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12888 SYMBOL_NAME in the bcache.
12889 * symtab.c: Include "hashtab.h". Update comments.
12890 (create_demangled_names_hash, symbol_set_names): New functions.
12891 (symbol_find_demangled_name): New function, broken out from
12892 symbol_init_demangled_names.
12893 (symbol_init_demangled_names): Use it.
12894 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12895 (SYMBOL_SET_NAMES): New macro.
12896 (symbol_set_names): Add prototype.
12897
12898 2003-02-03 Jim Blandy <jimb@redhat.com>
12899
12900 Use a single, consistent representation for an empty minimal
12901 symbol table in an objfile.
12902 * objfiles.c (terminate_minimal_symbol_table): New function.
12903 (allocate_objfile): Call it.
12904 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12905 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12906 non-NULL.
12907 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12908 objfile has minimal symbols, compare minimal_symbol_count to zero,
12909 instead of comparing msymbols with NULL.
12910 * objfiles.c (have_minimal_symbols): Same.
12911 * solib-sunos.c (solib_add_common_symbols): Call
12912 terminate_minimal_symbol_table.
12913 * symfile.c (reread_symbols): Same.
12914
12915 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12916
12917 * s390-tdep.c (s390_address_class_type_flags)
12918 (s390_address_class_type_flags_to_name)
12919 (s390_address_class_name_to_type_flags): New functions.
12920 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12921 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12922
12923 2003-02-03 Michael Snyder <msnyder@redhat.com>
12924
12925 * arm-tdep.c: Fix spell-o in comment.
12926
12927 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12928
12929 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12930 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12931 error messages to contain BFD filename.
12932
12933 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12934
12935 Fix PR gdb/742 gdb/743 gdb/877
12936 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12937 (do_mixed_source_and_assembly): Use
12938 make_cleanup_ui_out_tuple_begin_end and
12939 make_cleanup_ui_out_tuple_begin_end.
12940 (do_mixed_source_and_assembly): Ditto.
12941 * thread.c (do_captured_list_thread_ids): Ditto.
12942 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12943 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12944 ui_out_tuple_end): Delete prototypes.
12945 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12946 ui_out_list_end, ui_out_tuple_end): Delete.
12947
12948 From Kevin Buettner <kevinb@redhat.com>:
12949 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12950 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12951 (do_cleanup_table_end): New functions.
12952 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12953 Use cleanups to invoke_ui_out_tuple_end().
12954 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12955 * cli/cli-setshow.c (cmd_show_list): Use
12956 make_cleanup_ui_out_tuple_begin_end.
12957
12958 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12959
12960 * frame.c (frame_unwind_register): New function.
12961 (frame_unwind_unsigned_register): Use.
12962 (frame_unwind_signed_register): Use.
12963 (frame_read_register): New function.
12964 * frame.h (frame_unwind_register): Declare.
12965 (frame_read_register): Declare.
12966
12967 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12968 and frame_unwind_register instead of read_memory, write_register
12969 and deprecated_write_register_bytes.
12970
12971 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12972
12973 * frame.h: Note that namelen can be negative.
12974 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12975 NAME's length.
12976
12977 * NEWS: Mention that the d10v's `regs' command is deprecated.
12978 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12979 (d10v_print_registers_info): New function.
12980 (show_regs): Call d10v_print_registers_info.
12981 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12982
12983 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12984
12985 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12986 lost in the previous patch.
12987
12988 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12989
12990 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12991 * stack.c (print_frame_info_base): Output complete FRAME tuple
12992 for synthesized frames.
12993
12994 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12995
12996 * mips-nat.c (zerobuf): Delete.
12997 (fetch_inferior_registers): Alloc local zerobuf.
12998 (fetch_core_registers): Alloc local zerobuf.
12999 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13000 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13001 * thread-db.c (thread_db_store_registers): Ditto.
13002 * sh-tdep.c (sh_do_register): Ditto.
13003 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13004 * remote-sim.c (gdbsim_store_register): Ditto.
13005 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13006 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13007 * monitor.c (monitor_supply_register): Ditto.
13008 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13009 * mips-nat.c (fetch_inferior_registers): Ditto.
13010 * m68klinux-nat.c (fetch_register): Ditto.
13011 * lynx-nat.c (fetch_inferior_registers): Ditto.
13012 (fetch_inferior_registers): Ditto.
13013 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13014 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13015 (hpux_thread_store_registers): Ditto.
13016 * hppah-nat.c (fetch_register): Ditto.
13017 * hppab-nat.c (fetch_register): Ditto.
13018 * hppa-tdep.c (pa_register_look_aside): Ditto.
13019 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13020 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13021
13022 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13023
13024 * gdbarch.sh: Explictly specify all method levels. When a
13025 variable with an empty level, provide a non-multi-arch default.
13026 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13027 * gdbarch.h: Re-generate.
13028 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13029 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13030
13031 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13032
13033 * defs.h (host_pointer_to_address): Delete declaration.
13034 (address_to_host_pointer): Delete declaration.
13035 * utils.c (host_pointer_to_address): Delete function.
13036 (address_to_host_pointer): Delete function.
13037 * procfs.c (procfs_address_to_host_pointer): New function.
13038 * procfs.c (proc_set_watchpoint): Use.
13039 (procfs_can_use_hw_breakpoint): Update comments.
13040 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13041 (som_solib_add): Use.
13042 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13043 * hppa-tdep.c (unwind_command): Use.
13044
13045 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13046
13047 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13048 strlen d_name.
13049
13050 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13051 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13052 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13053 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13054 (define_symbol): Update.
13055 * symfile.c (generic_load): Remove references to nindy.
13056 * symtab.c: Remove references to nindy.
13057
13058 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13059
13060 * infcmd.c (print_float_info): Delete code conditional on
13061 FLOAT_INFO.
13062 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13063 * config/m68k/nm-apollo68b.h: Ditto.
13064 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13065 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13066 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13067
13068 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13069
13070 * config/i386/tm-i386os9k.h: Removed.
13071
13072 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13073 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13074 they're identical to i[3456]86-*-sysv* now.
13075 * config/i386/i386v32.mh: Removed.
13076 * config/i386/xm-i386v32.h: Removed.
13077 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13078
13079 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13080
13081 * config/i386/i386dgux.mh: Removed.
13082 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13083
13084 * configure.in: Fix typo.
13085 * configure: Regenerated.
13086
13087 2003-01-31 David Carlton <carlton@math.stanford.edu>
13088
13089 * dwarf2read.c (dwarf2_locate_sections): Set
13090 dwarf_ranges_section.
13091
13092 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13093
13094 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13095 * utils.c: Update comments documenting legitimate uses of PTR.
13096
13097 * utils.c: Re-indent.
13098
13099 * config/djgpp/fnchange.lst: Delete nindy files.
13100 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13101 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13102 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13103 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13104 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13105 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13106 * Makefile.in (init.c): Remove nindy references.
13107 (saber_gdb): Delete rule.
13108 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13109 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13110 and a68v-nat.c.
13111 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13112 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13113 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13114 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13115 nindy-share/stop.h.
13116 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13117 * saber.suppress: Delete file.
13118
13119 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13120
13121 * dbxread.c (stabs_data): New static variable.
13122 (fill_symbuf): Support an in-memory buffer for stabs data.
13123 (stabs_seek): New function.
13124 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13125 (read_ofile_symtab): Use stabs_seek.
13126 (elfstab_build_psymtabs): Take an asection* instead of
13127 an offset and size. Relocate the stabs data if necessary.
13128 Save the section* for dbx_psymtab_to_symtab.
13129 * dwarf2read.c: Add section variables for each debug section.
13130 (dwarf2_locate_sections): Fill them in.
13131 (dwarf2_read_section): Take an asection* argument.
13132 Relocate the section contents if necessary.
13133 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13134 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13135 it to dwarf2_read_section.
13136 (dwarf2_build_frame_info): Update callers.
13137 * elfread.c (elf_symfile_read): Update call to
13138 elfstab_build_psymtabs.
13139 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13140 (DBX_STAB_SECTION): New macro.
13141 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13142 * symfile.c (symfile_dummy_outputs): New function.
13143 (symfile_relocate_debug_section): New function.
13144 * symfile.h (symfile_relocate_debug_section): Add prototype.
13145
13146 2003-01-31 Richard Henderson <rth@redhat.com>
13147
13148 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13149 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13150 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13151 * alpha-tdep.c (alpha_register_name): Add "unique".
13152 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13153 (ALPHA_UNIQUE_REGNUM): New.
13154 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13155
13156 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13157
13158 * README: Remove reference to Ericsson 1800 monitor.
13159 * Makefile.in (remote-es.o): Delete rule.
13160 (ALLDEPFILES): Delete remote-es.c.
13161 * remote-es.c: Delete file.
13162 * config/m68k/es1800.mt: Delete file.
13163 * config/djgpp/fnchange.lst: Update.
13164 * configure.tgt: Delete m68*-ericsson-* target.
13165
13166 2003-01-31 Adam Fedor <fedor@gnu.org>
13167
13168 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13169 Remove duplicate/shadowing variable of same name.
13170
13171 2003-01-30 Jim Blandy <jimb@redhat.com>
13172
13173 * symfile.c (find_separate_debug_file): Assert that the objfile's
13174 directory name we compute ends with a slash, and then assume that
13175 that's so everywhere we use it.
13176
13177 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13178
13179 * valops.c (value_assign): Flush frame cache after stores to memory
13180 also.
13181
13182 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13183
13184 * Makefile.in (mon960-rom.o): Delete rule.
13185 * mon960-rom.c: Delete file.
13186
13187 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13188
13189 * d10v-tdep.c: Include "frame-unwind.h".
13190 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13191 list.
13192 (next_addr, uses_frame): Delete.
13193 (struct d10v_unwind_cache): Define.
13194 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13195 Use info instead of next_addr and uses_frame globals.
13196 (d10v_frame_init_saved_regs): Delete function.
13197 (d10v_init_extra_frame_info): Delete function.
13198 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13199 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13200 init_frame_pc or frame_saved_pc.
13201 (d10v_pop_frame): Delete function.
13202 (do_d10v_pop_frame): Delete function.
13203 (d10v_frame_chain): Delete function.
13204 (d10v_frame_chain_valid): Delete function.
13205 (d10v_frame_pc_unwind): New function.
13206 (d10v_frame_id_unwind): New function.
13207 (saved_regs_unwinder): New function.
13208 (d10v_frame_register_unwind): New function.
13209 (d10v_frame_pop): New function.
13210 (d10v_frame_unwind): New variable.
13211 (d10v_frame_p): New function.
13212 (d10v_frame_saved_pc): Delete function.
13213 * Makefile.in (d10v-tdep.o): Update dependencies.
13214
13215 2003-01-30 J. Brobecker <brobecker@gnat.com>
13216
13217 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13218 causing some regressions due to a change in the default value
13219 for this macro.
13220
13221 2003-01-29 Richard Henderson <rth@redhat.com>
13222 Elena Zannoni <ezannoni@redhat.com>
13223 Daniel Jacobowitz <drow@mvista.com>
13224
13225 Fix PR gdb/961.
13226 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13227 variables.
13228 (RANGES_SECTION): New.
13229 (dwarf_ranges_buffer): New variable.
13230 (struct comp_unit_head): Add member "die".
13231 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13232 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13233 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13234 (dwarf2_locate_sections): Likewise.
13235 (dwarf2_build_psymtabs): Read .debug_ranges.
13236 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13237 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13238 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13239 Look for DW_AT_ranges and return the bounding box.
13240
13241 2003-01-29 Brian Ford <ford@vss.fsi.com>
13242
13243 * win32-nat.c (cygwin_pid): Removed as unused.
13244 (child_attach): Try fall back to Cygwin pid.
13245
13246 2003-01-29 Jim Blandy <jimb@redhat.com>
13247
13248 * objfiles.h (struct objfile): Doc fix.
13249
13250 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13251
13252 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13253 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13254 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13255 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13256 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13257 (FRAME_SAVED_PC): Change to a function with predicate.
13258 * gdbarch.h, gdbarch.c: Re-generate.
13259
13260 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13261
13262 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13263
13264 * complaints.c (complain): Delete function.
13265 * complaints.h (struct deprecated_complaint): Delete definition.
13266 (complain): Delete declaration.
13267
13268 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13269
13270 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13271 dummy frames.
13272
13273 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13274
13275 * sentinel-frame.h, sentinel-frame.c: New files.
13276 * Makefile.in (frame.o): Update dependencies.
13277 (SFILES): Add sentinel-frame.c.
13278 (sentinel_frame_h): Define.
13279 (COMMON_OBS): Add sentinel-frame.o.
13280 (sentinel-frame.o): Specify dependencies.
13281 * frame.c: Include "sentinel-frame.h".
13282 (frame_register_unwind): Rewrite assuming that there is always a a
13283 ->next frame.
13284 (frame_register, generic_unwind_get_saved_register): Ditto.
13285 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13286 (create_sentinel_frame, unwind_to_current_frame): New functions.
13287 (get_current_frame): Rewrite using create_sentinel_frame and
13288 unwind_to_current_frame. When possible, always create a frame.
13289 (create_new_frame): Set next to the sentinel frame.
13290 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13291 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13292 ID cache when necessary.
13293 (frame_saved_regs_id_unwind): Use frame_relative_level.
13294 (deprecated_generic_get_saved_register): Use frame_relative_level,
13295 get_frame_saved_regs, get_frame_pc, get_frame_base and
13296 get_next_frame.
13297 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13298 frame_register.
13299
13300 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13301
13302 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13303
13304 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13305
13306 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13307 (maintenance_set_profile_cmd): Use error () instead of warning ().
13308
13309 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13310
13311 * configure.in: Check that -pg works if using --enable-profiling.
13312 Check for monstartup and _mcleanup regardless of --enable-profiling.
13313 * maint.c: Check for monstartup and _mcleanup before using them.
13314 * config.in: Regenerated.
13315 * configure: Regenerated.
13316
13317 2003-01-24 Nick Clifton <nickc@redhat.com>
13318
13319 * Add sh2e support:
13320
13321 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13322
13323 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13324 (sh2e_show_regs): New.
13325 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13326 * config/sh/tm-sh.h: Added sh2e to comments.
13327
13328 2003-01-23 Jim Blandy <jimb@redhat.com>
13329
13330 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13331 symbols found)" message here; we haven't checked for a separate
13332 debug info file yet, so we don't know yet.
13333 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13334 we've looked everywhere. Also, there's no need to print a special
13335 message when we're loading the separate debug info file: the one
13336 symbol_file_add prints is fine.
13337
13338 2003-01-23 Alexander Larsson <alexl@redhat.com>
13339 Jim Blandy <jimb@redhat.com>
13340
13341 Add support for executables whose debug info has been separated
13342 out into a separate file, leaving only a link behind.
13343 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13344 and separate_debug_objfile_backlink.
13345 (put_objfile_before): New declaration.
13346 * symfile.c: #include "filenames.h".
13347 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13348 debug info in a separate file, read that, too. Save the addrs
13349 argument, so we can use it again to read the separated debug info;
13350 syms_from_objfile modifies the table we pass it.
13351 (reread_symbols): After re-reading an objfile, call
13352 reread_separate_symbols to refresh its separate debug info
13353 objfile, if it has one.
13354 (reread_separate_symbols, find_separate_debug_file,
13355 get_debug_link_info, separate_debug_file_exists): New functions.
13356 (debug_file_directory): New global var.
13357 (_initialize_symfile): Initialize debug_file_directory, and
13358 provide the new `set debug-file-directory' command to let the user
13359 change it.
13360 * objfiles.c (free_objfile): If this objfile has its debug info in
13361 a separate objfile, free that one too. If this is itself a
13362 separate debug info objfile, clear our parent's backlink.
13363 (put_objfile_before): New function.
13364 * utils.c (gnu_debuglink_crc32): New function.
13365 * defs.h (gnu_debuglink_crc32): New declaration.
13366 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13367 * configure.in: Handle --with-separate-debug-dir config option.
13368 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13369 * acconfig.h (DEBUGDIR): New macro.
13370 * configure, aclocal.m4, config.in: Regenerated.
13371
13372 2003-01-22 Jim Blandy <jimb@redhat.com>
13373
13374 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13375 like the old symbol_file_add, but taking new arguments: you can
13376 now pass in either a `struct section_addr_info' list to say where
13377 each section is loaded, or a `struct section_offsets' table. Pass
13378 these new arguments through to syms_from_objfile as appropriate.
13379 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13380 with the appropriate quiescent values for the new arguments.
13381
13382 * symfile.c: #include "gdb_assert.h".
13383 (syms_from_objfile): Add the ability to pass in a section offset
13384 table directly, as an alternative to the section_addr_info table.
13385 Document arguments better.
13386 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13387 * symfile.h (syms_from_objfile): Update declaration.
13388 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13389 syms_from_objfile.
13390 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13391
13392 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13393
13394 Original patch by Tom Tromey <tromey@cygnus.com> and
13395 Jason Molenda <jmolenda@apple.com>.
13396 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13397 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13398 * NEWS: Mention profiling.
13399 * configure.in (--enable-gdbtk): Fix typo.
13400 (--enable-profiling): New. Set PROFILE_CFLAGS.
13401 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13402 Fill in function.
13403 (profiling_state): New variable.
13404 (mcleanup_wrapper): New function.
13405 (_initialize_maint): Remove NOTYET, fix call to
13406 add_setshow_boolean_cmd for "maint set profile".
13407 * configure: Regenerated.
13408
13409 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13410
13411 * Makefile.in (install-gdbtk): Install PNG images too.
13412
13413 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13414
13415 * exec.c (text_start): Delete global variable.
13416 (exec_file_attach): Make text_start local to the function.
13417 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13418 * valops.c (hand_function_call): Delete code that handles
13419 BEFORE_TEXT_END and AFTER_TEXT_END.
13420 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13421 of CALL_DUMMY_LOCATION.
13422 * gdbarch.c: Regenerate.
13423 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13424 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13425 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13426 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13427 (text_end): Delete extern declaration.
13428
13429 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13430
13431 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13432 * blockframe.c (backtrace_below_main): Move to "frame.c".
13433 (frame_chain_valid): Delete check for backtrace_below_main.
13434 (_initialize_blockframe): Delete initialization, move ``set
13435 backtrace-below-main'' command to "frame.c".
13436 (do_flush_frames_sfunc): Delete function.
13437 * frame.c: Include "command.h" and "gdbcmd.h".
13438 (frame_type_from_pc): New function.
13439 (create_new_frame): Use frame_type_from_pc.
13440 (legacy_get_prev_frame): New function.
13441 (get_prev_frame): Rewrite. When an old style frame, call
13442 legacy_get_prev_frame. Otherwize, unwind the PC first.
13443 (_initialize_frame): Add ``set backtrace-below-main'' command.
13444 * Makefile.in (frame.o): Update dependencies.
13445
13446 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13447
13448 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13449 DEPRECATED_REGISTERS_INFO.
13450
13451 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13452
13453 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13454 Maintainers'. Update `Various Maintainers'.
13455
13456 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13457
13458 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13459 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13460 Suppress actual parameters when `-'.
13461 * gdbarch.h, gdbarch.c: Regenerate.
13462
13463 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13464
13465 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13466 code handling dummy frames.
13467
13468 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13469
13470 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13471 (struct frame_unwind): Add field pop.
13472 * frame.h (frame_pop): Declare.
13473 * frame.c (frame_saved_regs_pop): New function.
13474 (trad_frame_unwinder): Add frame_saved_regs_pop.
13475 (frame_pop): New function.
13476 * dummy-frame.c (dummy_frame_pop): New function.
13477 (discard_innermost_dummy): New function.
13478 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13479 (dummy_frame_unwind): Add dummy_frame_pop.
13480 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13481 * valops.c (hand_function_call): Ditto.
13482 * stack.c (return_command): Ditto.
13483
13484 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13485
13486 * cris-tdep.c: Fix function declaration indentation.
13487 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13488 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13489 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13490 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13491 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13492 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13493
13494 2003-01-18 Michael Chastain <mec@shout.net>
13495
13496 * README (Unpacking and Installation -- quick overview):
13497 Warn against ".../gdb-5.3/gdb/configure".
13498
13499 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13500
13501 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13502 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13503 (struct frame_unwind): Declare opaque.
13504 (dummy_frame_p): Declare function.
13505 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13506 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13507 * dummy-frame.c: Include "frame-unwind.h".
13508 (dummy_frame_p): New function.
13509 (dummy_frame_unwind): New variable.
13510 * frame.c: Include "frame-unwind.h".
13511 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13512 to use the new unwind field.
13513 (set_unwind_by_pc): Delete function.
13514 (create_new_frame, get_prev_frame): Set unwind field using
13515 frame_unwind_find_by_pc.
13516 (trad_frame_unwind, trad_frame_unwinder): New variables.
13517 * frame.h (trad_frame_unwind): Declare variable.
13518 (frame_id_unwind_ftype): Delete declaration.
13519 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13520 (struct frame_unwind): Declare opaque.
13521 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13522 register_unwind with a single unwind pointer.
13523 * frame-unwind.h, frame-unwind.c: New files.
13524 * Makefile.in (SFILES): Add frame-unwind.c.
13525 (frame_unwind_h): Define.
13526 (COMMON_OBS): Add frame-unwind.o.
13527 (frame-unwind.o): Specify dependencies.
13528 (frame.o, dummy-frame.o): Update dependencies.
13529
13530 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13531
13532 * ada-valprint.c: Eliminate PTR.
13533 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13534 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13535 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13536 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13537 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13538 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13539 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13540
13541 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13542
13543 * main.c (captured_main): Don't use PTR.
13544 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13545 * gdbtypes.c (lookup_primitive_typename): Ditto.
13546 (lookup_struct_elt_type): Ditto.
13547 * f-valprint.c (info_common_command): Ditto.
13548 (list_all_visible_commons): Ditto.
13549 * jv-typeprint.c (java_type_print_base): Ditto.
13550
13551 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13552 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13553 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13554 i386-interix-nat.c and i386-interix-tdep.c. Rename
13555 m68klinux-nat.c and m68klinux-tdep.c. Rename
13556 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13557 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13558 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13559 * main.c (captured_main): Use xfree, not free.
13560
13561 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13562
13563 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13564 ID back using a parameter.
13565 * frame.c (frame_id_unwind): Update call.
13566 (frame_saved_regs_id_unwind): Update.
13567 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13568 * dummy-frame.h (struct frame_id): Add opaque declaration.
13569 (dummy_frame_id_unwind): Update declaration.
13570
13571 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13572
13573 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13574
13575 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13576
13577 * MAINTAINERS (Stephen P. Smith): Updated email address.
13578
13579 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13580
13581 Fix PR gdb/898
13582 * breakpoint.c (until_break_command): Add new argument. Use it to
13583 decide whether to stop only at the current frame or not.
13584 * breakpoint.h (until_break_command): Update prototype.
13585 * infcmd.c (until_command): Add new argument to until_break_command
13586 call.
13587 (advance_command): New function.
13588 (_initialize_infcmd): Update help string for 'until' command.
13589 Add new 'advance' command.
13590
13591 2003-01-14 David Carlton <carlton@math.stanford.edu>
13592
13593 * linespec.c (decode_line_1): Normalize comments.
13594 (set_flags): Ditto.
13595 (locate_first_half): Ditto.
13596 (decode_compound): Ditto.
13597 (symtab_from_filename): Ditto.
13598 (decode_all_digits): Ditto.
13599 (decode_dollar): Ditto.
13600 (find_methods): Ditto.
13601 (find_toplevel_char): Ditto.
13602
13603 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13604
13605 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13606 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13607 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13608 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13609 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13610 * language.c, language.h, m32r-tdep.c: Update copyright.
13611 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13612 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13613 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13614 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13615 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13616 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13617
13618 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13619
13620 * stabsread.h (process_later, resolve_cfront_continuation):
13621 Obsolete.
13622 Update copyright years.
13623 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13624 Update copyright year.
13625 * dbxread.c(struct cont_elem): Obsolete.
13626 (process_later, process_now): Obsolete functions.
13627 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13628 Update copyright year.
13629 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13630 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13631 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13632 (parse_partial_symbols): Obsolete cfront support.
13633 * stabsread.c
13634 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13635 macros.
13636 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13637 read_cfront_baseclasses, read_cfront_member_functions,
13638 resolve_cfront_continuation,read_cfront_static_fields,
13639 copy_cfront_struct_fields): Obsolete functions.
13640 (define_symbol, read_one_struct_field): Obsolete cfront support.
13641 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13642 Update Copyright year.
13643
13644 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13645
13646 * stack.c (print_frame_info, print_stack_frame_base_stub,
13647 print_stack_frame_base, show_and_print_stack_frame_stub,
13648 show_and_print_stack_frame, print_only_stack_frame_stub,
13649 print_only_stack_frame): Delete functions.
13650 (print_stack_frame_stub): Call print_frame_info instead of
13651 print_frame_info_base.
13652 (print_frame_info_base): Rename to print_frame_info.
13653 (backtrace_command_1): Call print_frame_info, instead of
13654 print_frame_info_base.
13655 (current_frame_command): Call print_stack_frame, instead of
13656 print_only_stack_frame.
13657 (frame_command): Call print_stack_frame, instead of
13658 show_and_print_stack_frame.
13659 (up_command): Ditto.
13660 (down_command): Ditto.
13661 * frame.h (print_only_stack_frame): Delete prototype.
13662 * infrun.c (normal_stop): Call print_stack_frame, instead of
13663 show_and_print_stack_frame.
13664 * thread.c (info_threads_command): Call print_stack_frame, instead
13665 of print_only_stack_frame.
13666
13667 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13668
13669 * README (Graphical interface to GDB): Update URL. Point at
13670 gdb/links/.
13671
13672 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13673 version match.
13674
13675 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13676
13677 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13678 lines.
13679
13680 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13681
13682 * thread-db.c (attach_thread): Prototype.
13683 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13684 thread information (ti), and valid flags (th_valid, ti_valid).
13685 (attach_thread): Move target_pid_to_str call to after the thread
13686 is added to GDB's list. Initialize the cache.
13687 (thread_get_info_callback, thread_db_map_id2thr)
13688 (thread_db_get_info): New functions.
13689 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13690 (thread_db_store_registers, thread_db_thread_alive)
13691 (thread_db_get_thread_local_address): Use them.
13692 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13693 of calling error() for threads in unknown state.
13694
13695 (clear_lwpid_callback): New function.
13696 (thread_db_resume): Use it to clear the cache.
13697
13698 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13699
13700 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13701 (resume_callback): Remove dead code.
13702
13703 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13704
13705 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13706 predicate.
13707 * gdbarch.h, gdbarch.c: Regenerate.
13708 * stack.c (frame_info): Only initialize the saved registers when
13709 FRAME_INIT_SAVED_REGS_P.
13710 * frame.c (frame_saved_regs_register_unwind): Assert
13711 FRAME_INIT_SAVED_REGS_P.
13712 (deprecated_generic_get_saved_register): Ditto.
13713
13714 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13715
13716 * source.c (openp): Squelch warning about "filename".
13717
13718 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13719
13720 * source.c (openp): If the file does not exist don't necessarily
13721 search the path.
13722
13723 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13724
13725 Fix PR gdb/872.
13726 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13727 (integer_types_same_name_p): New function.
13728 (rank_one_type): Use it.
13729 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13730
13731 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13732
13733 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13734 variables.
13735 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13736 * configure.in: Add --with-sysroot.
13737 * configure: Regenerated.
13738 * main.c (gdb_sysroot): New variable.
13739 (captured_main): Initialize gdb_sysroot.
13740 * defs.h (gdb_sysroot): New extern declaration.
13741 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13742
13743 2003-01-12 Michael Chastain <mec@shout.net>
13744
13745 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13746
13747 2003-01-12 Michael Chastain <mec@shout.net>
13748
13749 * top.c (print_gdb_version): Bump copyright year to 2003.
13750
13751 2003-01-12 David Carlton <carlton@bactrian.org>
13752
13753 * linespec.c (symtab_from_filename): Rename variable 's' to
13754 'file_symtab'.
13755
13756 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13757
13758 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13759 dummy frame.
13760 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13761
13762 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13763
13764 * d10v-tdep.c: Include "gdb_assert.h".
13765 (d10v_store_return_value): Rewrite to match current interface.
13766 (d10v_extract_struct_value_address): Ditto.
13767 (d10v_extract_return_value): Ditto.
13768 (d10v_gdbarch_init): Set store_restore_value,
13769 extract_struct_value_address and extract_return_value.
13770
13771 2003-01-12 J. Brobecker <brobecker@gnat.com>
13772
13773 * hpread.c (set_namestring): New procedure replacing the
13774 SET_NAMESTRING macro.
13775 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13776 by calls to set_namestring.
13777
13778 2003-01-11 J. Brobecker <brobecker@gnat.com>
13779
13780 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13781 a compilation warning.
13782 (hpread_process_one_debug_symbol): Likewise.
13783
13784 2003-01-10 David Carlton <carlton@math.stanford.edu>
13785
13786 * linespec.c (decode_line_1): Rename variable 's' to
13787 'file_symtab'.
13788 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13789 (decode_dollar): Ditto.
13790 (decode_variable): Ditto.
13791 (symbol_found): Ditto.
13792
13793 2003-01-09 Michael Chastain <mec@shout.net>
13794
13795 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13796
13797 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13798
13799 * win32-nat.c (set_process_privilege): New function.
13800 (child_attach): Call set_process_privilege() to enable the
13801 SE_DEBUG_NAME user privilege if available in process token.
13802
13803 2003-01-10 J. Brobecker <brobecker@gnat.com>
13804
13805 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13806 compilation error in the previous revision.
13807
13808 2003-01-09 David Carlton <carlton@math.stanford.edu>
13809
13810 * linespec.c: Update copyright.
13811
13812 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13813
13814 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13815 than inferior_ptid.
13816 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13817
13818 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13819
13820 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13821 Update comments.
13822 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13823 (frame_saved_regs_zalloc): Update.
13824 (frame_saved_regs_register_unwind): Update.
13825 (create_new_frame): Update.
13826 (get_prev_frame): Update.
13827 (frame_extra_info_zalloc): Update.
13828 (deprecated_get_frame_saved_regs): Update.
13829 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13830 * cris-tdep.c: Update comment.
13831
13832 * somsolib.h: Fix function indentation.
13833 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13834 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13835 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13836 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13837 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13838
13839 * infrun.c (follow_fork): Use ISO C definition.
13840 * expprint.c (print_subexp): Use xfree instead of free.
13841 * charset.c: Include "gdb_string.h" instead of <string.h>.
13842 (register_iconv_charsets): Use ISO C definition.
13843 (host_charset, target_charset): Ditto.
13844 * Makefile.in (charset.o): Update dependencies.
13845 (mi-cmd-env.o): Update dependencies.
13846
13847 2003-01-08 Andrew Cagney <cagney@redhat.com>
13848
13849 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13850 get_frame_base.
13851
13852 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13853
13854 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13855 build directories. Save edited gdb output in Mbuild.log. If a
13856 build fails, remove any final GDB executable.
13857
13858 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13859
13860 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13861 replacing hex constants with function names and stripping leading
13862 file name directory prefixes.
13863
13864 2003-01-08 Andrew Cagney <cagney@redhat.com>
13865
13866 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13867 get_frame_base.
13868
13869 2003-01-08 David Carlton <carlton@math.stanford.edu>
13870
13871 * linespec.c (decode_line_1): Move code into decode_variable.
13872 (decode_variable): New function.
13873
13874 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13875
13876 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13877
13878 2003-01-08 Andrew Cagney <cagney@redhat.com>
13879
13880 * cris-tdep.c (cris_frame_init_saved_regs): Use
13881 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13882 saved_regs buffer.
13883 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13884 (sh64_nofp_frame_init_saved_regs): Ditto.
13885 (sh_fp_frame_init_saved_regs): Ditto.
13886 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13887 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13888 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13889 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13890
13891 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13892
13893 * minsyms.c (lookup_minimal_symbol): Update comment.
13894 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13895 (lookup_minimal_symbol_solib_trampoline): Likewise.
13896
13897 2003-01-08 Andrew Cagney <cagney@redhat.com>
13898
13899 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13900 frame_relative_level.
13901
13902 * alpha-tdep.c: Use get_frame_extra_info.
13903 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13904 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13905 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13906 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13907
13908 * alpha-tdep.c: Use get_next_frame.
13909 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13910 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13911 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13912 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13913 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13914 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13915 * xstormy16-tdep.c: Ditto.
13916
13917 2003-01-07 Andrew Cagney <cagney@redhat.com>
13918
13919 * alpha-tdep.c: Use get_frame_base.
13920 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13921 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13922 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13923 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13924 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13925 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13926 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13927 * config/sparc/tm-sparc.h: Ditto.
13928
13929 2003-01-07 Andrew Cagney <cagney@redhat.com>
13930
13931 * frame.c (deprecated_get_frame_context): New function.
13932 (deprecated_set_frame_context): New function.
13933 * frame.h (deprecated_get_frame_context): Declare.
13934 (deprecated_set_frame_context): Declare.
13935 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13936 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13937
13938 2003-01-07 Andrew Cagney <cagney@redhat.com>
13939
13940 * frame.c (deprecated_set_frame_next_hack): New function.
13941 (deprecated_set_frame_prev_hack): New function.
13942 * frame.h (deprecated_set_frame_next_hack): Declare.
13943 (deprecated_set_frame_prev_hack): Declare.
13944 * mcore-tdep.c (analyze_dummy_frame): Use
13945 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13946 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13947
13948 2003-01-07 David Carlton <carlton@math.stanford.edu>
13949
13950 * linespec.c (decode_line_1): Move code into decode_dollar.
13951 (decode_dollar): New function.
13952
13953 2003-01-07 Andrew Cagney <cagney@redhat.com>
13954
13955 * arm-tdep.c (arm_init_extra_frame_info): Use
13956 deprecated_update_frame_base_hack.
13957 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13958 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13959 (fix_frame_pointer): Ditto.
13960 (mn10300_analyze_prologue): Ditto.
13961
13962 2003-01-07 Andrew Cagney <cagney@redhat.com>
13963
13964 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13965 extra_info using frame_extra_info_zalloc.
13966 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13967 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13968 (sh64_init_extra_frame_info): Ditto.
13969 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13970 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13971 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13972 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13973 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13974 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13975 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13976 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13977 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13978 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13979 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13980 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13981
13982 * mn10300-tdep.c (analyze_dummy_frame): Use
13983 deprecated_set_frame_extra_info_hack.
13984 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13985
13986 2003-01-07 J. Brobecker <brobecker@gnat.com>
13987
13988 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13989 class is not scText. These do not define "real" procedures.
13990 (parse_partial_symbols): Likewise.
13991
13992 2003-01-06 Michael Snyder <msnyder@redhat.com>
13993
13994 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13995
13996 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13997
13998 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13999 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14000 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14001 deprecated_frame_xmalloc_with_cleanup.
14002 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14003 deprecated_frame_xmalloc.
14004 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14005 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14006
14007 2003-01-06 Andrew Cagney <cagney@redhat.com>
14008
14009 * x86-64-linux-tdep.c: Include "osabi.h".
14010 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14011
14012 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14013
14014 2003-01-06 Andrew Cagney <cagney@redhat.com>
14015
14016 * MAINTAINERS (Target Instruction Set Architectures): Update
14017 arm-elf. Can be built with -Werror, has been multiarched.
14018
14019 * value.h (unpack_long): Make buffer parameter constant.
14020 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14021 * scm-lang.h (scm_parse): Ditto.
14022 * defs.h (extract_typed_address, extract_address): Ditto.
14023 (extract_long_unsigned_integer): Ditto.
14024 * inferior.h (unsigned_pointer_to_address): Ditto.
14025 (signed_pointer_to_address): Ditto.
14026 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14027 * gdbarch.h, gdbarch.c: Regenerate.
14028 * findvar.c (extract_long_unsigned_integer): Update.
14029 (extract_address): Update.
14030 (extract_typed_address): Update.
14031 (unsigned_pointer_to_address): Update.
14032 * values.c (unpack_long): Update.
14033 (unpack_double): Update.
14034 (unpack_pointer): Update.
14035 (unpack_field_as_long): Update.
14036 * d10v-tdep.c (d10v_pointer_to_address): Update.
14037 * avr-tdep.c (avr_pointer_to_address): Update.
14038 * scm-lang.c (scm_unpack): Update.
14039 * findvar.c (signed_pointer_to_address): Update.
14040
14041 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14042
14043 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14044 since it is in i386-tdep.c.
14045
14046 2003-01-06 J. Brobecker <brobecker@gnat.com>
14047
14048 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14049 failure introduced in the previous change.
14050
14051 2003-01-05 Michael Chastain <mec@shout.net>
14052
14053 * README: Remove references to deleted remote-*.c files:
14054 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14055 remote-nrom.c, remote-os9k.c, remote-udi.c.
14056
14057 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14058
14059 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14060 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14061 i386_get_longjmp_target.
14062
14063 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14064
14065 * arm-tdep.c (prologue_cache): Change to a pointer.
14066 (_initialize_arm_tdep): Allocate prologue_cache.
14067 (check_prologue_cache): Update.
14068 (save_prologue_cache): Update.
14069 (arm_gdbarch_init): Update.
14070
14071 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14072
14073 * stabsread.c (update_method_name_from_physname): Call complaint()
14074 instead of error.
14075
14076 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14077
14078 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14079 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14080 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14081
14082 * blockframe.c: Include "gdbcmd.h" and "command.h".
14083 (backtrace_below_main): New variable.
14084 (file_frame_chain_valid, func_frame_chain_valid)
14085 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14086 (generic_func_frame_chain_valid): Remove functions.
14087 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14088 (_initialize_blockframe): New function.
14089 * Makefile.in (blockframe.o): Update dependencies.
14090 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14091 comment. Call frame_chain_valid ().
14092 * frame.h: Remove old prototypes. Add prototype for
14093 frame_chain_valid and update comments to match.
14094 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14095 Remove old comment.
14096 * gdbarch.h: Regenerated.
14097 * gdbarch.c: Regenerated.
14098
14099 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14100 set_gdbarch_frame_chain_valid.
14101 * avr-tdep.c (avr_gdbarch_init): Likewise.
14102 * cris-tdep.c (cris_gdbarch_init): Likewise.
14103 * frv-tdep.c (frv_gdbarch_init): Likewise.
14104 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14105 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14106 (i386_nw_init_abi): Likewise.
14107 (i386_gdbarch_init): Likewise.
14108 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14110 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14111 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14112 * mips-tdep.c (mips_gdbarch_init): Likewise.
14113 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14114 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14115 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14116 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14117 * s390-tdep.c (s390_gdbarch_init): Likewise.
14118 * sh-tdep.c (sh_gdbarch_init): Likewise.
14119 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14120 * v850-tdep.c (v850_gdbarch_init): Likewise.
14121 * vax-tdep.c (vax_gdbarch_init): Likewise.
14122 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14123
14124 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14125 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14126 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14127 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14128 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14129 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14130 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14131 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14132
14133 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14134
14135 * Makefile.in (acconfig_h): Remove incorrect macro.
14136 (config_h): Define.
14137 (osabi.o): Update dependencies.
14138 * configure.tgt: Set gdb_osabi based on target triplet.
14139 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14140 * configure: Regenerated.
14141 * config.in: Regenerated.
14142 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14143 (GDB_OSABI_DEFAULT): Define if not already defined.
14144 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14145 (set_osabi_string): New variables.
14146 (gdbarch_register_osabi): Add new OS ABI to
14147 gdb_osabi_available_names.
14148 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14149 (set_osabi, show_osabi): New functions.
14150 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14151
14152 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14153
14154 * arch-utils.c (gdbarch_info_init): Set osabi to
14155 GDB_OSABI_UNINITIALIZED.
14156 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14157 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14158 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14159 * gdbarch.c: Regenerated.
14160 * gdbarch.h: Regenerated.
14161 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14162 there's no BFD.
14163 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14164 * osabi.h (enum gdb_osabi): Move to defs.h.
14165 (gdbarch_init_osabi): Update prototype.
14166 * defs.h (enum gdb_osabi): Moved here.
14167 * Makefile.in: Update dependencies.
14168
14169 * alpha-tdep.h: Don't include "osabi.h".
14170 (struct gdbarch_tdep): Remove osabi member.
14171 * alpha-tdep.c: Include "osabi.h".
14172 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14173 iterate over arches. Update call to gdbarch_init_osabi.
14174 (alpha_dump_tdep): Don't dump osabi.
14175 * alpha-linux-tdep.c: Include "osabi.h".
14176 * alpha-osf1-tdep.c: Include "osabi.h".
14177 * alphafbsd-tdep.c: Include "osabi.h".
14178 * alphanbsd-tdep.c: Include "osabi.h".
14179
14180 * arm-tdep.h: Don't include "osabi.h".
14181 (struct gdbarch_tdep): Remove osabi member.
14182 * arm-tdep.c: Include "osabi.h".
14183 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14184 iterate over arches. Update call to gdbarch_init_osabi.
14185 (arm_dump_tdep): Don't dump osabi.
14186 * arm-linux-tdep.c: Include "osabi.h".
14187 * armnbsd-tdep.c: Include "osabi.h".
14188
14189 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14190 Update call to gdbarch_init_osabi.
14191
14192 * i386-tdep.h: Don't include "osabi.h".
14193 (struct gdbarch_tdep): Remove osabi member.
14194 * i386-tdep.c: Include "osabi.h".
14195 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14196 iterate over arches. Update call to gdbarch_init_osabi.
14197 (i386_dump_tdep): Don't dump osabi.
14198 * i386-linux-tdep.c: Include "osabi.h".
14199 * i386-sol2-tdep.c: Include "osabi.h".
14200 * i386bsd-tdep.c: Include "osabi.h".
14201 * i386gnu-tdep.c: Include "osabi.h".
14202 * i386ly-tdep.c: Include "osabi.h".
14203 * i386nbsd-tdep.c: Include "osabi.h".
14204 * i386obsd-tdep.c: Include "osabi.h".
14205
14206 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14207 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14208 check osabi when iterating over arches. Update call to
14209 gdbarch_init_osabi.
14210 (mips_dump_tdep): Don't dump osabi.
14211
14212 * ns32k-tdep.h: Don't include "osabi.h".
14213 (struct gdbarch_tdep): Remove.
14214 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14215 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14216 allocate tdep. Update call to gdbarch_init_osabi.
14217 (ns32k_dump_tdep): Remove.
14218 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14219 * ns32knbsd-tdep.c: Include "osabi.h".
14220
14221 * ppc-tdep.h: Don't include "osabi.h".
14222 (struct gdbarch_tdep): Remove osabi member.
14223 * rs6000-tdep.c: Include "osabi.h".
14224 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14225 osabi when iterating over arches. Update call to
14226 gdbarch_init_osabi.
14227 (rs6000_dump_tdep): Don't dump osabi.
14228 * ppc-linux-tdep.c: Include "osabi.h".
14229 * ppcnbsd-tdep.c: Include "osabi.h".
14230
14231 * sh-tdep.h: Don't include "osabi.h".
14232 (struct gdbarch_tdep): Remove osabi member.
14233 * sh-tdep.c: Include "osabi.h".
14234 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14235 iterate over arches. Update call to gdbarch_init_osabi.
14236 (sh_dump_tdep): Don't dump osabi.
14237 * shnbsd-tdep.c: Include "osabi.h".
14238
14239 * sparc-tdep.c: Include "osabi.h".
14240 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14241 iterate over arches. Update call to gdbarch_init_osabi.
14242 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14243 tdep structure.
14244
14245 * vax-tdep.h: Don't include "osabi.h".
14246 (struct gdbarch_tdep): Remove.
14247 * vax-tdep.c: Include "osabi.h".
14248 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14249 iterate over arches. Don't allocate tdep. Update call
14250 to gdbarch_init_osabi.
14251 (vax_dump_tdep): Remove.
14252 (_initialize_vax_tdep): Update call to gdbarch_register.
14253
14254 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14255
14256 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14257 entirely.
14258 (breakpoint_re_set_one): Don't fetch the value for a disabled
14259 watchpoint.
14260
14261 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14262
14263 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14264 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14265 (COERCE_FLOAT_TO_DOUBLE): Remove.
14266 * gdbarch.c: Regenerate.
14267 * gdbarch.h: Regenerate.
14268 * Makefile.in: Remove value_h from gdbarch_h.
14269 * valops.c (coerce_float_to_double): New variable.
14270 (default_coerce_float_to_double): Remove.
14271 (standard_coerce_float_to_double): Remove.
14272 (value_arg_coerce): Use coerce_float_to_double.
14273 (_initialize_valops): Add "set coerce-float-to-double".
14274 * value.h (default_coerce_float_to_double): Remove prototype.
14275 (standard_coerce_float_to_double): Remove prototype.
14276
14277 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14278 prototyped.
14279 * mdebugread.c (parse_symbol): Likewise.
14280 * stabsread.c (define_symbol): Mark all functions as prototyped.
14281
14282 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14283 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14284 set_gdbarch_coerce_float_to_double.
14285 * arm-tdep.c (arm_gdbarch_init): Likewise.
14286 * frv-tdep.c (frv_gdbarch_init): Likewise.
14287 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14288 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14289 * mips-tdep.c (mips_gdbarch_init): Likewise.
14290 (mips_coerce_float_to_double): Remove.
14291 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14292 (rs6000_coerce_float_to_double): Remove.
14293 * s390-tdep.c (s390_gdbarch_init): Likewise.
14294 * sh-tdep.c (sh_gdbarch_init): Likewise.
14295 (sh_coerce_float_to_double): Remove.
14296 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14297 (sparc_coerce_float_to_double): Remove.
14298 * v850-tdep.c (v850_gdbarch_init): Likewise.
14299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14300 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14301 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14302 (hppa_coerce_float_to_double): Remove prototype.
14303 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14304
14305 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14306
14307 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14308
14309 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14310
14311 Suggested by Stewart Brown <sb24@avaya.com>:
14312 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14313 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14314 (c_type_print_varspec_suffix): Likewise.
14315
14316 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14317
14318 * configure.in: Don't set and AC_SUBST SUBDIRS.
14319 * configure: Regenerated.
14320
14321 * configure.in: Remove code dealing with shared libraries.
14322 * Makefile.in: Remove HLDFLAGS and HLDENV.
14323 * configure: Regenerated.
14324
14325 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14326
14327 * frame.c (deprecated_frame_xmalloc): New function.
14328 (deprecated_set_frame_saved_regs_hack): New function.
14329 (deprecated_set_frame_extra_info_hack): New function.
14330 * frame.h (deprecated_frame_xmalloc): Declare.
14331 (deprecated_set_frame_saved_regs_hack): Declare.
14332 (deprecated_set_frame_extra_info_hack): Declare.
14333
14334 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14335
14336 * configure.in: Move code that provides the --enable-gdbtk option
14337 right after the code that handles the --enable-tui option, and
14338 polish it somewhat.
14339 * configure: Regenerated.
14340
14341 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14342 AC_CHECK_FUNCS and remove the old check for pread64.
14343 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14344 * acconfig.h (_GNU_SOURCE): Add.
14345 (HAVE_PREAD64): Remove.
14346 * configure, aclocal.m4, config.in: Regenerated.
14347
14348 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14349
14350 * alpha-tdep.c: Use get_frame_saved_regs.
14351 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14352 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14353 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14354 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14355 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14356
14357 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14358
14359 * configure.in: Remove all use of the SUBDIRS variable; add
14360 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14361 code providing the --enable-multi-ice option, and move it right in
14362 front of the code that checks whether gdbserver is supported.
14363 Polish that too.
14364 * configure: Regenerated.
14365 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14366 @SUBDIRS@.
14367
14368 2003-01-03 Andrew Cagney <cagney@redhat.com>
14369
14370 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14371 * avr-tdep.c, cris-tdep.c: Ditto.
14372 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14373 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14374
14375 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14376
14377 * configure.in: Remove --enable-netrom option.
14378 * configure: Regenerated.
14379
14380 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14381
14382 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14383 declaration for `struct re_pattern_buffer' instead.
14384 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14385
14386 2003-01-03 J. Brobecker <brobecker@gnat.com>
14387
14388 * mdebugread.c (parse_symbol): Count until the stEnd matching
14389 the structure name.
14390
14391 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14392
14393 * configure.in: Remove --with-cpu option.
14394 subscripts. Remove evil changequotes here.
14395 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14396 * config.in, configure: Regenerated.
14397
14398 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14399 * configure.in: Cleanup section that sources GDB and BFD configure
14400 subscripts. Remove evil changequotes here.
14401 * config.in, configure: Regenerated.
14402
14403 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14404
14405 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14406 frame accessor methods.
14407 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14408 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14409 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14410 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14411 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14412 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14413 * z8k-tdep.c: Ditto.
14414
14415 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14416
14417 * configure.in: Remove UI_OUT configuration code.
14418 * ada-lang.c: Update assuming UI_OUT is always true.
14419 * Makefile.in (UIOUT_CFLAGS): Remove.
14420 * configure: Regenerated.
14421 * TODO: Remove blurb about elimination of -DUI_OUT.
14422
14423 * configure.in: Move code that provides the --enable-gdbcli,
14424 --enable-gdbmi options right before the code that handles the
14425 --enable-tui option. Polish a bit.
14426 * configure: Regenerated.
14427
14428 * configure.in: Rewrite check for GNU regex and the
14429 --without-included regex option, and move it into the "Checks for
14430 library functions" section. This makes us use the system regex
14431 again by default on systems with version 2 of the GNU C library.
14432 This was apparently broken.
14433 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14434 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14435 * config.in, configure: Regenerated.
14436
14437 * configure.in: Move code that provides the --enable-tui option
14438 before the "Checks for libraries" section. Polish the code
14439 somewhat and set need_curses to yes if we build the TUI. Rewrite
14440 code that looks for a library providing termcap functionality to
14441 match more closely what's done in the Readline library, and move
14442 it into to the "Checks for libraries" section.
14443 * configure: Regenerated.
14444 * Makefile.in (TERMCAP): Remove variable.
14445 * config/i386/go32.mh (TERMCAP): Remove variable.
14446
14447 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14448
14449 * MAINTAINERS: Mention gdb_mbuild.sh.
14450 * gdb_mbuild.sh: Rewrite.
14451
14452 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14453
14454 * configure.in: Fix typo in last change.
14455 * config.in, configure: Regenerated.
14456
14457 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14458
14459 * valarith.c (value_binop): Delete obsolete code and comments.
14460 * configure.host: Ditto.
14461 * buildsym.h (make_blockvector): Ditto.
14462 * buildsym.c (make_blockvector): Ditto.
14463 * defs.h (enum language): Ditto.
14464 (chill_demangle): Ditto.
14465 * elfread.c (elf_symtab_read): Ditto.
14466 * dwarfread.c (CHILL_PRODUCER): Ditto.
14467 (set_cu_language): Ditto.
14468 (handle_producer): Ditto.
14469 * expprint.c (print_subexp): Ditto.
14470 * gdbtypes.c (chill_varying_type): Ditto.
14471 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14472 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14473 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14474 (chill_varying_type): Ditto.
14475 * language.h (_LANG_chill): Ditto.
14476 * language.c (binop_result_type, integral_type): Ditto.
14477 (character_type, string_type, structured_type): Ditto.
14478 (lang_bool_type, binop_type_check): Ditto.
14479 * stabsread.h (os9k_stabs): Ditto.
14480 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14481 (define_symbol, read_type, read_struct_fields): Ditto.
14482 (read_array_type, read_enum_type, read_huge_number): Ditto.
14483 (read_range_type, start_stabs): Ditto.
14484 * symfile.c (init_filename_language_table): Ditto.
14485 (add_psymbol_with_dem_name_to_list): Ditto.
14486 * symtab.c (symbol_init_language_specific): Ditto.
14487 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14488 * symtab.h (struct general_symbol_info): Ditto.
14489 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14490 * typeprint.c (typedef_print): Ditto.
14491 * utils.c (fprintf_symbol_filtered): Ditto.
14492 * valops.c (value_cast, search_struct_field, value_slice): Delete
14493 obsolete code.
14494 (varying_to_slice): Delete function.
14495 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14496 (varying_to_slice): Delete declaration.
14497 * MAINTAINERS: Update.
14498
14499 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14500
14501 * configure.in: Reorganize "Checks for library functions section"
14502 a bit. Remove check for `btowc' and `isascii' functions.
14503 * configure: Regenerated.
14504
14505 * acconfig.h (_MSE_INT_H): Remove.
14506 * configure.in: Create "Checks for header files" section, and move
14507 appropriate tests there. Don't check for objlist.h, wchar.h,
14508 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14509 misdetection fix. Also add "Checks for types", "Checks for
14510 compiler characteristics" and "Checks for library functions"
14511 sections.
14512 * config.in, configure: Regenerated.
14513
14514 * configure.in: Create "Checks for programs" section, and move
14515 appropriate tests there.
14516
14517 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14518
14519 * configure.in: Create "Checks for libraries" section, and move
14520 appropriate tests there. Cleanup check for wctype in libw. Use
14521 AC_SEARCH_LIBS to see whether we need libsocket.
14522 * configure: Regenerated.
14523
14524 For older changes see ChangeLog-2002
14525 \f
14526 Local Variables:
14527 mode: change-log
14528 left-margin: 8
14529 fill-column: 74
14530 version-control: never
14531 End:
This page took 0.359501 seconds and 4 git commands to generate.