2003-11-15 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5e044b1e
AC
12003-11-15 Andrew Cagney <cagney@redhat.com>
2
3 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
4 USE_REGISTER_NOT_ARG.
5 * stabsread.c (define_symbol): Update.
6
3a16a68c
AC
72003-11-15 Andrew Cagney <cagney@redhat.com>
8
9 * bcache.h (deprecated_bcache): Declare.
10 (bcache): Make returned buffer constant.
11 * bcache.c (deprecated_bcache): New function.
12 (bcache_data): New function.
13 (bcache): Call bcache data.
14 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
15 (add_psymbol_with_dem_name_to_list): Ditto.
16
bb41a796
MK
172003-11-15 Mark Kettenis <kettenis@gnu.org>
18
19 * glibc-tdep.h (struct gdbarch): Declare opaque.
20 (glibc_skip_solib_resolver): Adjust prototype.
21 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
22 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
23 (arm_linux_init_abi): Set skip_solib_resolver.
24 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
25 (i386_linux_init_abi): Set skip_solib_resolver.
26 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
27 (arm_linux_skip_solib_resolver): Remove prototype.
28 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
29 (i386_linux_skip_solib_resolver): Remove prototype.
30
4c8c40e6
MK
312003-11-14 Mark Kettenis <kettenis@gnu.org>
32
33 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
34 function.
35 * gdbarch.c, gdbarch.h: Regenerate.
36 * infrun.c (handle_inferior_event): Call
37 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
38 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
39 definition.
40 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
41 prototype.
42
0e5d83e3
JJ
432003-11-14 Jeff Johnston <jjohnstn@redhat.com>
44
45 * libunwind-frame.c: New file.
46 * libunwind-frame.h: New file.
47 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
48 * configure.in: Add --with-libunwind option support. Define
49 HAVE_LIBUNWIND if libunwind support selected / defaulted.
50 Also check for libunwind.h and libunwind-ia64.h headers.
51 * configure: Regenerated.
52 * Makefile.in: Add support for libunwind-frame.o.
53 * config.in: Regenerated.
54
287a334e
JJ
552003-11-14 Jeff Johnston <jjohnstn@redhat.com>
56
57 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
58 set up the ia64 linux native target method for getting the kernel
59 unwind table.
60 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
61 * inftarg.c (child_xfer_partial): Enable section of code to
62 handle TARGET_OBJECT_UNWIND_TABLE.
63 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
64
140be7b8
ILT
652003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
66
67 * config/arm/nbsd.mt (TM_FILE): Define.
68 * config/arm/tm-nbsd.h: New file.
69
0a90bcdd
AC
702003-11-14 Andrew Cagney <cagney@redhat.com>
71
72 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
73 * ppc-sysv-tdep.c: Include "objfiles.h".
74 (ppc64_sysv_abi_push_dummy_call): Provide the
75 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
76
77 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
78 "name_of_malloc" to ".malloc".
79
087f1027
MK
802003-11-13 Mark Kettenis <kettenis@gnu.org>
81
82 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
83
3882f37a
DC
842003-11-13 David Carlton <carlton@kealia.com>
85
86 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
87
a8cf2722
AC
882003-11-13 Andrew Cagney <cagney@redhat.com>
89
90 * arch-utils.h (selected_architecture_name): Declare.
91 (selected_byte_order): Declare.
92 * arch-utils.c (selected_byte_order): New function.
93 (selected_architecture_name): New function.
94 (target_architecture_auto): Make static.
95 (set_architecture_string): Make static.
96 (target_byte_order): Make static.
97 (target_byte_order_auto): Make static.
98 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
99 non-multi-arch definition.
100 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
101 (target_byte_order, target_architecture): Delete declaration.
102 (target_byte_order_auto, target_architecture_auto): Ditto.
103 * gdbarch.h: Re-generate.
104 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
105 "selected_byte_order".
106
475b6ddd
AC
1072003-11-13 Andrew Cagney <cagney@redhat.com>
108
109 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
110
a22286a9
JB
1112003-11-13 Jim Blandy <jimb@redhat.com>
112
113 * cp-namespace.c: Doc fix.
114
7bb11558
MS
1152003-11-12 Michael Snyder <msnyder@redhat.com>
116
39add00a
MS
117 * sh64_tdep.c: Regularize some names.
118 (sh_sh64_register_name): Rename to sh64_register_name.
119 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
120 (sh_sh64_register_byte): Rename to sh64_register_byte.
121 (sh_sh64_build_float_register_type):
122 Rename to sh64_build_float_register_type.
123 (sh_sh64_register_convert_to_virtual):
124 Rename to sh64_register_convert_to_virtual.
125 (sh_sh64_register_convert_to_raw):
126 Rename to sh64_register_convert_to_raw.
127
2a314ed5
MS
128 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
129 sh64_media_reg_base_num, sh64_compact_reg_base_num,
130 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
131 sh64_extract_return_value, sh64_show_media_regs,
132 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
133 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
134 sh64_pseudo_register_read, sh64_pseudo_register_write,
135 sh64_do_pseudo_register, sh_compact_print_registers_info):
136 Delete unused variable 'tdep'.
137
7bb11558
MS
138 * sh64-tdep.c: Coding standard and spelling comment fixes.
139 (sh64_extract_return_value): Replace deprecated_store_floating
140 with store_typed_floating.
141 (sh_sh64_register_convert_to_raw): Replace
142 deprecated_store_floating with store_typed_floating.
143 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
144 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
145 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
146 sh64_extract_struct_value_address, sh64_pop_frame,
147 sh64_extract_return_value, sh64_store_return_value,
148 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
149 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
150 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
151 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
152 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
153 deprecated_register_virtual_type, deprecated_register_raw_size,
154 deprecated_max_register_raw_size, or
155 deprecated_max_register_virtual_size. Instead, just set
156 gdbarch_register_type.
39add00a
MS
157 (sh_sh64_register_raw_size): Delete.
158 (sh_sh64_register_virtual_size): Delete.
7bb11558 159
e7c27a73
DJ
1602003-11-12 Daniel Jacobowitz <drow@mvista.com>
161
162 * dwarf2read.c (struct dwarf2_cu): New type.
163
164 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
165 dwarf2_cu structure to pass down.
166
167 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
168 (add_partial_enumeration, locate_pdi_sibling, process_die)
169 (read_file_scope, read_func_scope)
170 (read_lexical_block_scope, dwarf2_get_pc_bounds)
171 (dwarf2_add_field, dwarf2_attach_fields_to_type)
172 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
173 (read_structure_scope, read_enumeration, read_array_type)
174 (read_common_block, read_namespace, read_tag_pointer_type)
175 (read_tag_ptr_to_member_type, read_tag_reference_type)
176 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
177 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
178 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
179 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
180 (read_full_die. read_attribute_value, read_attribute)
181 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
182 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
183 (die_containing_type, type_at_offset, tag_type_to_type)
184 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
185 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
186
1640b821
DJ
1872003-11-12 Daniel Jacobowitz <drow@mvista.com>
188
189 PR breakpoints/1450
190 * breakpoint.c (insert_bp_location): Fix a logic error by returning
191 0 after a catchpoint fails.
192
d7891507
MC
1932003-11-11 Michael Chastain <mec.gnu@mindspring.com>
194
195 * mips-tdep.c (msymbol_size): Delete.
196
f594e5e9
MC
1972003-11-07 Michael Chastain <mec@shout.net>
198
199 * symtab.h (struct minimal_symbol): Add size.
200 * dbxread.c: Use it.
201 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
202 Rename to record_minimal_symbol.
203 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
204 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
205 (install_minimal_symbols): Ditto.
206 * objfiles.c (terminate_minimal_symbol_table): Ditto.
207 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
208 * m68hc11-tdep.c: Ditto.
209 * mips-tdep.c: Ditto.
210 * sh64-tdep.c: Ditto.
211
68e39e73
MC
2122003-11-10 Michael Chastain <mec.gnu@mindspring.com>
213
214 * MAINTAINERS: Change my e-mail address.
215
b60eb90d
AC
2162003-11-10 Andrew Cagney <cagney@redhat.com>
217
963e2bb7
AC
218 * gdbarch.sh (return_value): Replace "inval" and "outval" with
219 "readbuf" and "writebuf".
220 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
221 * d10v-tdep.c (d10v_return_value): Ditto.
222 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
223 (ppc_sysv_abi_broken_return_value): Ditto.
224 (ppc64_sysv_abi_return_value): Ditto.
225 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
226 (ppc_sysv_abi_return_value): Ditto.
227 (ppc_sysv_abi_broken_return_value): Ditto.
228 (ppc64_sysv_abi_return_value): Ditto.
229 * values.c (register_value_being_returned): Update call.
230 * stack.c (return_command): Update call.
231 * gdbarch.h, gdbarch.c: Re-generate.
232
8aa91c1e
AC
233 * target.h (struct target_ops): Order xfer buffer parameters "read
234 write" not "write read".
235 * bfd-target.c (target_bfd_xfer_partial): Update.
236 * remote.c (remote_xfer_partial): Update.
237 * inftarg.c (child_xfer_partial): Update.
238 * target.c (default_xfer_partial): Update.
239 (target_read_partial, target_write_partial): Update.
240 (debug_to_xfer_partial): Update.
241
100bcc3f
AC
242 * arch-utils.h, arch-utils.c: Fix typo in comment.
243
b60eb90d
AC
244 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
245 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
246 (set_gdbarch_from_file): Call
247 "deprecated_current_gdbarch_select_hack".
b60eb90d 248
bf922ad9
AC
2492003-11-09 Andrew Cagney <cagney@redhat.com>
250
ebdba546
AC
251 * arch-utils.c (gdbarch_update_p): New function.
252 * gdbarch.sh (gdbarch_update_p): Delete function.
253 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 254 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
255 * gdbarch.c: Re-generate.
256
7de2341d
AC
257 * gdbarch.sh (clear_gdbarch_swap): Delete function.
258 (swapout_gdbarch_swap): Delete function.
259 (swapin_gdbarch_swap): Delete function.
260 (init_gdbarch_swap): Delete function.
261 (initialize_non_multiarch): Delete function.
262 (current_gdbarch_swap_in_hack): New function.
263 (current_gdbarch_swap_out_hack): New function.
264 (current_gdbarch_swap_init_hack): New function.
265 * gdbarch.c: Re-generate.
266
db446970
AC
267 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
268 parameter to "current_gdbarch". Add comment explaining why.
269 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
270 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
271 * gdbarch.c: Re-generate.
272
341e3d11
AC
273 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
274 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
275 * config/s390/xm-linux.h: Delete file.
276 * config/m88k/xm-delta88v4.h: Delete stray.
277
bf922ad9
AC
278 * Makefile.in (arch-utils.o): Update dependencies.
279 * arch-utils.c: Include "osabi.h".
280 (gdbarch_info_fill): New function.
281 * arch-utils.h (gdbarch_info_fill): Declare.
282 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
283 * gdbarch.c: Re-generate.
284
a3640c75
MK
2852003-11-09 Mark Kettenis <kettenis@gnu.org>
286 David S. Miller <davem@redhat.com>
287
288 * glibc-tdep.c, glibc-tdep.h: New files.
289 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
290 * config/i386/linux.mt (TDEPFILES): Likewise.
291 * i386-linux-tdep.c (glibc-tdep.h): Include.
292 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
293 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
294 * arm-linux-tdep.c (glibc-tdep.h): Include.
295 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
296 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
297 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
298 (glibc_tdep_h): Define.
299 (glibc-tdep.o): Add dependencies.
300 (arm-linux-tdep.o): Update dependencies.
301 (i386-linux-tdep.o): Likewise.
302
e60e0ab2
AC
3032003-11-09 Andrew Cagney <cagney@redhat.com>
304
305 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
306 * config/mips/nm-irix6.h: Delete file.
307 * config/mips/nm-linux.h: Update copyright.
308 (MIPS_GNULINUX_TARGET): Delete macro.
309 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
310 * config/mips/xm-irix6.h: Delete file.
311 * config/mips/linux.mh (XM_FILE): Delete definition.
312 * config/mips/xm-linux.h: Delete file.
313
181555e9
AC
3142003-11-09 Andrew Cagney <cagney@redhat.com>
315
316 * d10v-tdep.c (d10v_return_value): New function.
317 (d10v_use_struct_convention): Delete function.
318 (d10v_store_return_value): Delete function.
319 (d10v_extract_struct_value_address): Delete function.
320 (d10v_gdbarch_init): Set "return_value" instead of
321 "extract_return_value", "store_return_value",
322 "extract_struct_value_address", and "use_struct_convention".
323 (RET1_REGNUM): Delete const.
324
dea0c52f
MK
3252003-11-09 Mark Kettenis <kettenis@gnu.org>
326
327 From David S. Miller <davem@redhat.com>:
328 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
329 * gdbarch.c, gdbarch.h: Regenerated.
330 * arch-utils.c (generic_skip_solib_resolver): New function.
331 * arch-utils.h (generic_skip_solib_resolver): New prototype.
332 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
333
6314a349
AC
3342003-11-07 Andrew Cagney <cagney@redhat.com>
335
336 * top.c (print_gdb_version): Replace STREQ with strcmp.
337 * valops.c (value_struct_elt_for_reference): Ditto.
338 (value_struct_elt_for_reference): Ditto.
339 * symtab.c (gdb_mangle_name): Ditto.
340 (find_line_symtab): Ditto.
341 * symmisc.c (maintenance_print_symbols): Ditto.
342 * symfile.c (symbol_file_command): Ditto.
343 * stabsread.c (define_symbol, read_type): Ditto.
344 (cleanup_undefined_types, scan_file_globals): Ditto.
345 * solib.c (solib_map_sections): Ditto.
346 * solib-svr4.c (bfd_lookup_symbol): Ditto.
347 * rs6000-tdep.c (skip_prologue): Ditto.
348 * p-valprint.c (pascal_value_print): Ditto.
349 (pascal_object_is_vtbl_ptr_type): Ditto.
350 * objfiles.c (in_plt_section): Ditto.
351 * minsyms.c (lookup_minimal_symbol): Ditto.
352 (compact_minimal_symbols): Ditto.
353 (find_solib_trampoline_target): Ditto.
354 * mdebugread.c (parse_type): Ditto.
355 * language.c (set_language_command): Ditto.
356 (set_type_command, set_range_command): Ditto.
357 * f-lang.c (add_common_block): Ditto.
358 (add_common_block): Ditto.
359 (find_first_common_named): Ditto.
360 (patch_all_commons_by_name): Ditto.
361 * elfread.c (elf_locate_sections): Ditto.
362 (elf_locate_sections): Ditto.
363 (elfstab_offset_sections): Ditto.
364 * dwarf2read.c (dwarf2_locate_sections): Ditto.
365 * dbxread.c (add_old_header_file): Ditto.
366 (find_corresponding_bincl_psymtab): Ditto.
367 (read_dbx_symtab, process_one_symbol): Ditto.
368 * coffread.c (patch_opaque_types): Ditto.
369 * cli/cli-decode.c (delete_cmd): Ditto.
370 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
371 * c-typeprint.c (c_type_print_base): Ditto.
372 * breakpoint.c (bpstat_stop_status): Ditto.
373 (clear_command, breakpoint_re_set_one): Ditto.
374
49df298f
AC
3752003-11-07 Andrew Cagney <cagney@redhat.com>
376
377 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
378 * bcache.c (struct bstring): Make "length" an unsigned short, add
379 "half_hash".
380 (struct bcache): Add "half_hash_error_count".
381 (bcache): Compute and save the "half_hash". Compare the
382 "half_hash" before comparing the length. Update
383 half_hash_error_count.
384
f168dd80
AC
3852003-11-07 Andrew Cagney <cagney@redhat.com>
386
387 * inftarg.c (child_xfer_partial): New function
388 (init_child_ops): Set "to_xfer_partial".
389
05580c65
AC
3902003-11-07 Andrew Cagney <cagney@redhat.com>
391
392 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
393 set "return_value" instead of "use_struct_convention".
394 (ppc_linux_use_struct_convention): Delete function.
395 (ppc_linux_return_value): New function.
396 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
397 (ppc_sysv_abi_broken_return_value): New function.
398 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
399 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
400 static.
401 (ppc_sysv_abi_extract_return_value): Delete function.
402 (ppc_sysv_abi_broken_extract_return_value): Delete function.
403 (ppc_sysv_abi_store_return_value): Delete function.
404 (ppc_sysv_abi_broken_store_return_value): Delete function.
405 (ppc_sysv_abi_use_struct_convention): Delete function.
406 (ppc64_sysv_abi_use_struct_convention): Delete function.
407 (ppc64_sysv_abi_extract_return_value): Delete function.
408 (ppc64_sysv_abi_store_return_value): Delete function.
409 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
410 (ppcnbsd_init_abi): Set "return_value", instead of
411 "use_struct_convention", "extract_return_value", and
412 "store_return_value".
413 (ppcnbsd_use_struct_convention): Delete function.
414 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
415 (ppc_sysv_abi_return_value): Declare.
416 (ppc_sysv_abi_broken_return_value): Declare.
417 (ppc_sysv_abi_use_struct_convention): Delete.
418 (ppc_sysv_abi_store_return_value): Delete.
419 (ppc_sysv_abi_extract_return_value): Delete.
420 (ppc_sysv_abi_broken_store_return_value): Delete.
421 (ppc_sysv_abi_broken_extract_return_value): Delete.
422 (ppc64_sysv_abi_use_struct_convention): Delete.
423 (ppc64_sysv_abi_extract_return_value): Delete.
424 (ppc64_sysv_abi_store_return_value): Delete.
425 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
426 set "return_value" instead of "extract_return_value",
427 "store_return_value", and "use_struct_convention".
428
1763fba4
MK
4292003-11-07 Mark Kettenis <kettenis@gnu.org>
430
22c7ba1a
MK
431 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
432
1763fba4
MK
433 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
434 fscanf.
435
fc07cc2d
MK
4362003-11-07 Mark Kettenis <kettenis@gnu.org>
437
438 * fbsd-proc.c: Fix formatting.
439
6a748db6
KB
4402003-11-06 Kevin Buettner <kevinb@redhat.com>
441
442 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
443 Define.
444 (new_variant): Set name for iacc0_regnum.
445 (frv_register_name): Accommodate pseudo-registers.
446 (frv_register_type): Add case for iacc0_regnum.
447 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
448 (frv_gdbarch_init): Set number of pseudo registers. Establish
449 pseudo-register read/write methods.
450
bf896cb0
AC
4512003-11-06 Andrew Cagney <cagney@redhat.com>
452
453 * valops.c (destructor_name_p): Replace STREQN with strncmp.
454 * top.c (command_line_input): Ditto.
455 * objc-exp.y (yylex): Ditto.
456 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
457 * jv-exp.y (yylex): Ditto.
458 * f-exp.y (yylex): Ditto.
459 * event-top.c (command_line_handler): Ditto.
460 * environ.c (get_in_environ): Ditto.
461 (set_in_environ): Ditto.
462 * dwarfread.c (handle_producer): Ditto.
463 * dbxread.c (process_one_symbol): Ditto.
464 * c-typeprint.c (c_type_print_base): Ditto.
465 * c-exp.y (yylex): Ditto.
466
0b603eba
AC
4672003-11-06 Andrew Cagney <cagney@redhat.com>
468 Jeff Johnston <jjohnstn@redhat.com>
469
470 * target.c (add_target): Only set "to_xfer_partial" when NULL.
471 (init_dummy_target): Set "to_xfer_partial".
472
9cedbfec
AC
4732003-11-06 Andrew Cagney <cagney@redhat.com>
474
475 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
476 REGISTER_CONVENTION.
477
26bb91f3
DJ
4782003-11-06 Daniel Jacobowitz <drow@mvista.com>
479
480 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
481 static.
482
0bde7532
DJ
4832003-11-06 Daniel Jacobowitz <drow@mvista.com>
484
485 * breakpoint.c (remove_breakpoint): Take an bp_location
486 instead of a breakpoint argument. Check the bp_location's type.
487 Fix a reversed condition for hardware breakpoints.
488
489 (insert_bp_location): Update call to remove_breakpoint.
490 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
491 (remove_hw_watchpoints): Likewise.
492 (reattach_breakpoints): Likewise.
493 (detach_breakpoints): Likewise.
494 (delete_breakpoint): Likewise.
495
075f6582
DJ
4962003-11-06 Daniel Jacobowitz <drow@mvista.com>
497
498 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
499 (beakpoint_init_inferior): Likewise.
500 (breakpoint_here_p): Likewise. Only check addresses for software
501 or hardware breakpoints.
502 (breakpoint_inserted_here_p): Likewise.
503 (breakpoint_thread_match): Likewise. Correct comment.
504 (bpstat_have_active_hw_watchpoints): Likewise.
505 (check_duplicates): Likewise.
506
879bfdc2
DJ
5072003-11-06 Daniel Jacobowitz <drow@mvista.com>
508
509 * breakpoints.c (insert_bp_location): New function, broken out
510 from insert_breakpoints. Work on an bp_location instead of a
511 breakpoint.
512 (insert_breakpoints): Use it.
513
cf3a9e5b
DJ
5142003-11-06 Daniel Jacobowitz <drow@mvista.com>
515
516 * breakpoint.h (struct bp_location): Add section.
517 (struct breakpoint): Remove section.
518 * breakpoint.c (insert_breakpoints, remove_breakpoint)
519 (breakpoint_here_p, breakpoint_inserted_here_p)
520 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
521 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
522 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
523 section through loc.
524
ffce0d52
DJ
5252003-11-06 Daniel Jacobowitz <drow@mvista.com>
526
527 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
528 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
529
e049a4b5
DJ
5302003-11-06 Daniel Jacobowitz <drow@mvista.com>
531
532 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
533 arguments. Initialize owner and type for the new breakpoint
534 location item.
535 (set_raw_breakpoint): Update call to allocate_bp_location.
536
7cc221ef
DJ
5372003-11-06 Daniel Jacobowitz <drow@mvista.com>
538
539 * breakpoint.h (struct bp_location): Add a chain pointer.
540 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
541 macros.
542 (bp_location_chain): New variable.
543 (allocate_bp_location): New function.
544 (set_raw_breakpoint): Use it.
545 (delete_breakpoint): Remove ->loc from the bp_location_chain.
546
5cab636d
DJ
5472003-11-06 Daniel Jacobowitz <drow@mvista.com>
548
549 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
550 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 551 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
552 * breakpoint.c (condition_command, read_memory_nobpt)
553 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
554 (reattach_breakpoints, update_breakpoints_after_exec)
555 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
556 (breakpoint_init_inferior, breakpoint_here_p)
557 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
558 (breakpoint_thread_match, bpstat_stop_status)
559 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
560 (describe_other_breakpoints, check_duplicates)
561 (make_breakpoint_permanent, create_thread_event_breakpoint)
562 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
563 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
564 (watch_command_1, print_one_exception_catchpoint)
565 (clear_command, breakpoint_re_set_one): Adjust member accesses to
566 use the breakpoint's ->loc.
567 (set_raw_breakpoint): Likewise. Initialize ->loc.
568 (delete_breakpoint): Likewise. Free ->loc.
569
7be0c536
AC
5702003-11-05 Andrew Cagney <cagney@redhat.com>
571
4c7d882e
AC
572 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
573 macro.
574 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
575 * config/i386/tm-cygwin.h
576 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
577 * config/powerpc/tm-linux.h
578 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
579 (at_subroutine_call_instruction_target): Delete declaration.
580 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
581 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
582 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
583
7be0c536
AC
584 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
585 "struct bfd_section" and "struct bfd".
586 * target.h (struct section_table): Ditto.
587 * rs6000-nat.c (xcoff_relocate_core): Ditto.
588 * solib-svr4.c (elf_locate_base): Ditto.
589 * pa64solib.c (dld_cache_t): Ditto.
590 * objfiles.h (struct obj_section): Ditto.
591 * objfiles.c (add_to_objfile_sections): Ditto.
592 * exec.c (bfdsec_to_vmap): Ditto.
593 (add_to_section_table): Ditto.
594 (build_section_table): Ditto.
595 * corelow.c (get_core_register_section): Ditto.
596 * coffread.c (find_linenos): Ditto.
597 * elfread.c (elf_interpreter): Delete #if0'd function.
598
599 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
600 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
601 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
602 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
603
604 * arch-utils.h (generic_cannot_extract_struct_value_address):
605 Delete declaration.
606 * wince.c (_initialize_wince): Fix multi-line string.
607 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
608
d8fe84e3
EZ
6092003-11-05 Elena Zannoni <ezannoni@redhat.com>
610
611 * top.c (execute_command): Fix broken logic for command execution
612 while inferior is running in async mode.
613
cbdfc7c0
MK
6142003-11-06 Mark Kettenis <kettenis@gnu.org>
615
616 * dwarf2-frame.c (execute_cfa_program): Mark register as
617 REG_SAVED_REG for DW_CFA_register opcode.
618
dac94105
MK
6192003-11-05 Mark Kettenis <kettenis@gnu.org>
620
621 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
622 %rsp, %rip and %eflags to match ABI-change.
623
85bf2b91
JJ
6242003-11-05 Jeff Johnston <jjohnstn@redhat.com>
625
626 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
627 (ia64_gdbarch_init): Don't bother calculating the os.
628 Instead use the gdbarch_info struct and look at the osabi field.
629 Also use gdbarch_list_lookup_by_info() to look for a
630 candidate gdbarch.
631
cd31fb03
KB
6322003-11-05 Kevin Buettner <kevinb@redhat.com>
633
634 * frv-tdep.c (frv_register_byte): Delete.
635 (frv_extract_return_value, frv_store_return_value)
636 (frv_extract_struct_value_address): Don't call frv_register_byte().
637 Convert to non-deprecated form.
638 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
639 Convert calls to set_gdbarch_deprecated_extract_return_value(),
640 set_gdbarch_deprecated_store_return_value(), and
641 set_gdbarch_deprecated_extract_struct_value_address() into
642 non-deprecated forms.
643
0a056982
AC
6442003-11-05 Andrew Cagney <cagney@redhat.com>
645
646 * mips-tdep.c (mips_dump_tdep): Do not print
647 PRINT_EXTRA_FRAME_INFO.
648 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
649 Rename PRINT_EXTRA_FRAME_INFO.
650 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
651 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
652 (mips_print_extra_frame_info): Delete declaration.
653 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
654
29e0a062
EZ
6552003-11-05 Elena Zannoni <ezannoni@redhat.com>
656
657 * coffread.c (coff_symtab_read): Remove passing of info parameter
658 to prim_record_minimal_symbol_and_info.
659
8af580fc
EZ
6602003-11-05 Elena Zannoni <ezannoni@redhat.com>
661
662 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
663 (decode_base_type): Delete ifdeffed out code.
664
507836c0
AC
6652003-11-04 Andrew Cagney <cagney@redhat.com>
666
667 * symtab.c (find_active_alias): Delete function.
668 (lookup_block_symbol): Delete alias code.
669 * stabsread.c (resolve_live_range): Delete function.
670 (add_live_range): Delete function.
671 (resolve_symbol_reference): Delete function.
672 (define_symbol): Delete live range and alias code.
673 (scan_file_globals): Delete alias code.
674 * symtab.h (SYMBOL_RANGES): Delete macro.
675 (struct range_list): Delete structure.
676 (struct symbol): Delete field "ranges".
677 (SYMBOL_ALIASES): Delete macro.
678 (struct alias_list): Delete structure.
679 (struct symbol): Delete field "aliases".
680
1083b3bc
MS
6812003-11-04 Michael Snyder <msnyder@redhat.com>
682
683 * MAINTAINERS: Remove myself as owner of breakpoints and
684 of sparc/solaris.
685
474e5826
CV
6862003-11-03 Corinna Vinschen <vinschen@redhat.com>
687
688 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
689 (sh_sh4al_dsp_register_name): Ditto.
690 (sh4_nofpu_show_regs): Ditto.
691 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
692 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
693
2160782c
AC
6942003-11-03 Andrew Cagney <cagney@redhat.com>
695
696 * bcache.c: Include "gdb_assert.h".
697 (struct bcache): Add fields "expand_count" and
698 "expand_hash_count".
699 (expand_hash_table): Update the expand counts.
700 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
701 on object sizes and hashes.
702 * Makefile.in (bcache.o): Update dependencies.
703
85302095
AC
7042003-11-03 Andrew Cagney <cagney@redhat.com>
705
706 * exec.c (xfer_memory): Eliminate xfer_fn.
707
526eef89
KB
7082003-10-31 Kevin Buettner <kevinb@redhat.com>
709
710 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
711 (opcodes/frv-desc.h): Include.
712 (iacc0h_regnum, iacc0l_regnum): Define.
713 (last_spr_regnum, frv_num_regs): Update.
714 (new_variant): Don't supply default names for holes in the SPRs.
715 Supply names for iacc0h_regnum and iacc0l_regnum.
716 (frv_register_type): Use symbolic constants first_fpr_regnum and
717 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
718 builtin_type_int instead of builtin_type_int32.
719 (frv_register_sim_regno): New function.
720 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
721 * Makefile.in (gdb_sim_frv_h): Define.
722 (frv-tdep.o): Update dependencies.
723
9e815ec2
AC
7242003-10-31 Andrew Cagney <cagney@redhat.com>
725
726 * avr-tdep.c (avr_frame_this_id): Do not call
727 deprecated_inside_entry_file.
728 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
729 * m32r-tdep.c (m32r_frame_this_id): Ditto.
730 * d10v-tdep.c (d10v_frame_this_id): Ditto.
731 * arm-tdep.c (arm_prologue_this_id): Ditto.
732 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
733
e372db49
JB
7342003-10-31 Jim Blandy <jimb@redhat.com>
735
736 * elfread.c (elf_symtab_read): Allocate correct number of tail
737 elements to sectinfo structure. (Fix from Woody LaRue.)
738
e8bcf01f
AC
7392003-10-31 Andrew Cagney <cagney@redhat.com>
740
741 * stack.c (return_command): Use get_frame_type, instead of
742 CALL_DUMMY_HAS_COMPLETED.
743 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
744 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
745
4c05fe53
MK
7462003-10-31 Mark Kettenis <kettenis@gnu.org>
747
748 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
749 explicitly specify size of array.
750 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
751 TDEP->sc_num_regs.
752
c8b91b89
AC
7532003-10-31 Andrew Cagney <cagney@redhat.com>
754
755 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
756 function.
757 (s390_gdbarch_init): Set extract_struct_value_address.
758 * arch-utils.c (generic_cannot_extract_struct_value_address):
759 Delete function.
760 * arch-utils.h (generic_cannot_extract_struct_value_address):
761 Delete definition.
762
fdfb6fc8
MK
7632003-10-31 Mark Kettenis <kettenis@gnu.org>
764
765 * i386-linux-nat.c (fetch_core_registers): Remove.
766 (linux_elf_core_fns): Remove.
767 (_initialize_i386_linux_nat): Remove.
768
2f4950cd
AC
7692003-10-31 Andrew Cagney <cagney@redhat.com>
770
771 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
772 "exec.h".
773 (exec_entry_point): New function.
774 (enable_break): Create a "tmp_bfd_target", use that and
775 entry_point_address when computing the relocation offset.
776 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
777 * Makefile.in (solib-svr4.o): Update dependencies.
778
bba2d28d
AC
7792003-10-31 Andrew Cagney <cagney@redhat.com>
780
781 * defs.h (XZALLOC): Define.
782 * target.h (struct target_ops): Add "to_data";
783 * bfd-target.h, bfd-target.c: New files.
784 * Makefile.in (SFILES): Add "bfd-target.c".
785 (COMMON_OBS): Add "bfd-target.o".
786 (bfd-target.o): Specify dependencies.
787 (bfd_target_h): Define.
788 * defs.h (XZALLOC): Define.
789
6066c3de
AC
7902003-10-31 Andrew Cagney <cagney@redhat.com>
791
792 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
793 adjust_breakpoint_address.
794 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
795 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
796 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
797 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
798
4b8a223f
AC
7992003-10-31 Andrew Cagney <cagney@redhat.com>
800
801 * target.h (struct target_ops): Replace "to_read_partial" and
802 "to_write_partial" with "to_xfer_partial". Update comments.
803 * target.c (debug_to_write_partial): Delete function.
804 (debug_to_xfer_partial): Replace debug_to_read_partial.
805 (add_target, update_current_target, setup_target_debug): Set
806 "to_xfer_partial" instead of "to_read_partial" and
807 "to_write_partial".
808 (default_xfer_partial): Replace "default_write_partial".
809 (default_read_partial): Delete.
810 (target_read_partial, target_write_partial): Call
811 "to_xfer_partial".
812 * remote.c (init_remote_ops): Set "to_xfer_partial".
813 (init_remote_async_ops): Ditto.
814 (remote_xfer_partial): Replace "remote_read_partial".
815
66a72d25
MK
8162003-10-31 Mark Kettenis <kettenis@gnu.org>
817
818 * i386-tdep.c (i386_supply_fpregset): Support floating-point
819 registers in `fxsave' format.
820 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
821
9a12a2a0
MK
8222003-10-30 Mark Kettenis <kettenis@gnu.org>
823
e9f1aad5
MK
824 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
825 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
826 TDEP->gregset_num_regs and tdep->sizeof_gregset.
827
bb489b3c
MK
828 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
829 specify size of array.
830 (i386_linux_init_abi): Remove initialization of
831 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
832 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
833
da285bc4
MK
834 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
835 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
836 core-regset.o.
837
9a12a2a0
MK
838 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
839 the ELF header.
840
0e24ac5d
MK
8412003-10-29 Mark Kettenis <kettenis@gnu.org>
842
6d6d8e9c
MK
843 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
844 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
845 core-regset.o.
846
25e60c9b
MK
847 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
848
0e24ac5d
MK
849 * corelow.c: Include "arch-utils.h", "regset.h" and
850 "gdb_assert.h".
851 (core_gdbarch): New variable.
852 (sniff_core_bfd): Don't sniff if we have support for register sets
853 in CORE_GDBARCH.
854 (core_close): Reset CORE_GDBARCH.
855 (core_open): Initialize CORE_GDBARCH.
856 (get_core_register_section): Use register sets if they are
857 supported by CORE_GDBARCH.
858 (get_core_registers): Don't print error message if we have support
859 for register sets in CORE_GDBARCH.
860
0a0a4ac3
AC
8612003-10-29 Andrew Cagney <cagney@redhat.com>
862
863 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
864 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
865
7b097ae3
MK
8662003-10-29 Mark Kettenis <kettenis@gnu.org>
867
868 * objfiles.h (clear_objfile_data): New prototype.
869 * objfiles.c (clear_objfile_data): New function.
870 * symfile.c (reread_symbols): Clear per-objfile data.
871
46f45a4a
JJ
8722003-10-28 Jeff Johnston <jjohnstn@redhat.com>
873
874 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
875 printf_unfiltered instead of printf_filtered for output messages.
876 (add_symbol_file_command): Ditto.
877 (reread_symbols): Ditto.
878 (overlay_auto_command): Ditto.
879 (overlay_manual_command): Ditto.
880 (overlay_off_command): Ditto.
881
2b026650
MK
8822003-10-27 Mark Kettenis <kettenis@gnu.org>
883
884 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
885 (gdbarch_from_bfd): New function.
886 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
887 deprecated_select_gdbarch_hack.
888 * arch-utils.h (gdbarch_from_bfd): New prototype.
889
0bcad584 8902003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
891
892 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
893 arch_info. Use warning instead of fprintf_filtered. Do not use
894 deprecated bfd_printable_arch_mach.
895
7f398216
KB
8962003-10-26 Kevin Buettner <kevinb@redhat.com>
897
898 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
899 Delete.
900 (frv_register_type): Rename from frv_register_virtual_type. Add
901 ``struct gdbarch *'' parameter.
902 (frv_gdbarch_init): Delete calls to the following functions:
903 set_gdbarch_deprecated_size(),
904 set_gdbarch_deprecated_register_bytes(),
905 set_gdbarch_deprecated_register_raw_size(),
906 set_gdbarch_deprecated_max_register_raw_size(),
907 set_gdbarch_deprecated_register_virtual_size(),
908 set_gdbarch_deprecated_max_register_virtual_size(),
909 set_gdbarch_deprecated_register_virtual_size(),
910 set_gdbarch_deprecated_register_virtual_type().
911 Add call to function set_gdbarch_register_type().
912
bcf48cc7
MK
9132003-10-26 Mark Kettenis <kettenis@gnu.org>
914
6c7de422
MK
915 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
916 FDOFF_REGNUM): Remove defines.
917 * win32-nat.c (do_child_fetch_inferior_registers): Include
918 "i387-tdep.h".
3e685d41 919 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
920 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
921 undefine I387_ST0_REGNUM.
922
f783586b
MK
923 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
924 * x86-64-tdep.c (x86_64_store_return_value): Use
925 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
926
bcf48cc7
MK
927 Change register numbers to enumartion values.
928 * i386-tdep.h (enum i386_regnum): New.
929 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
930 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
931 I386_ST0_REGNUM): Remove defines.
932 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
933 I386_EDI_REGNUM): Remove defines.
934
b6591e8b
AC
9352003-10-24 Andrew Cagney <cagney@redhat.com>
936
937 * target.c: Include "gdbcore.h".
938 (get_target_memory, get_target_memory_unsigned): New functions.
939 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
940 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
941 Use get_target_memory_unsigned.
942 * Makefile.in (target.o): Update dependencies.
943
5f724446
AC
9442003-10-24 Andrew Cagney <cagney@redhat.com>
945
ce2826aa
AC
946 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
947 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
948 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
949 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
950 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
951
5f724446
AC
952 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
953 (can_run_code_for): Use the OO term "singleton".
954
fc70c2a0
AC
9552003-10-23 Andrew Cagney <cagney@redhat.com>
956
957 * Makefile.in (stack.o): Add $(regcache_h).
958 * stack.c: Include "regcache.h"
959 (return_command): Rewrite. Use get_frame_id and
960 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
961 about unhandled return-values.
962 * value.h (set_return_value): Delete declaration.
963 * values.c (set_return_value): Delete function.
964
4afcc598
JJ
9652003-10-23 Jeff Johnston <jjohnstn@redhat.com>
966
967 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
968 (pseudo_regs): Add comment regarding register stack registers.
969 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
970 (floatformat_valid): New static routine.
971 (floatformat_ia64_ext): Add name field and set up is_valid routine
972 to floatformat_valid().
973 (examine_prologue): For the previous cfm, use
974 frame_unwind_register()
975 if the cfm is not stored in a register-stack register. Save the
976 previous cfm value in the prev_cfm field. Add debug output.
977 (ia64_frame_this_id): Use frame_id_build_special() to also register
978 the bsp. Add debug output.
979 (ia64_sigtramp_frame_this_id): Ditto.
980 (ia64_frame_prev_register): Look at cache saved_regs for a few more
981 registers and also add some checks for framelessness before accepting
982 current register values for fields such as return address. For cfm,
983 use the cached prev_cfm field if available. Add comment to explain
984 PSR logic. Add debug output.
985 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
986 as part of initialization.
987 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
988 calculated. Cache the bsp and cfm values.
989 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
990 instead of using ia64_frame_prev_register() which doesn't expect most
991 registers to be saved. The saved values for bsp and sp
992 can be taken from the cache. Add debug output.
993 (ia64_push_dummy_call): Use frame_id_build_special() to also register
994 the bsp.
995
6cfae0bc
JB
9962003-10-23 Jim Blandy <jimb@redhat.com>
997
998 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
999 architecture the current arch can run code for --- but not if it's
1000 a superset.
1001 (can_run_code_for): New function.
1002
fcd182f9
JW
10032003-10-22 James E Wilson <wilson@specifixinc.com>
1004
1005 * MAINTAINERS: Move myself from paper trail section back to write
1006 after approval section.
1007
4646aa9d
AC
10082003-10-22 Andrew Cagney <cagney@redhat.com>
1009
1010 * exec.h: New file.
1011 * win32-nat.c: Include "exec.h".
1012 * solib.c: Include "exec.h".
1013 * target.h (build_section_table): Delete declaration.
1014 * somsolib.c: Include "exec.h".
1015 (exec_ops): Delete extern declaration.
1016 * rs6000-nat.c: Update copyright. Include "exec.h".
1017 (exec_ops): Delete extern declaration.
1018 * pa64solib.c: Update copyright. Include "exec.h".
1019 (exec_ops): Delete extern declaration.
1020 * exec.c: Update copyright. Include "exec.h".
1021 * corelow.c: Update dependencies. Include "exec.h".
1022 * Makefile.in (exec_h): Define.
1023 (exec.o, somsolib.o): Update dependencies.
1024 (pa64solib.o, corelow.o): Update dependencies.
1025
0088c768
AC
10262003-10-22 Andrew Cagney <cagney@redhat.com>
1027
1028 * target.c: Include "gdb_assert.h" (target_read): Call
1029 "target_read_partial", not "target_write_partial".
1030 (default_read_partial, default_write_partial): New function.
1031 (target_read_partial, target_write_partial): Simplify, assume that
1032 there is always a read/write method.
1033 (update_current_target, add_target): Always set "to_read_partial"
1034 and "to_write_partial".
1035 (target_write, target_read): Fail on a zero byte transfer.
1036 * Makefile.in (target.o): Update dependencies.
1037 * target.h: Update copyright date.
1038 (target_object): Fix typo.
1039
e2d0e7eb
AC
10402003-10-22 Andrew Cagney <cagney@redhat.com>
1041
1042 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1043 multi-arch method, add "targ" parameter.
1044 (struct target_ops): Declare.
1045 * gdbarch.h, gdbarch.c: Re-generate.
1046 * Makefile.in (c-valprint.o): Update dependencies.
1047 * arch-utils.h: Update copyright.
1048 (convert_from_func_ptr_addr_identity): Declare.
1049 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1050 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1051 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1052 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1053 * infcall.c (find_function_addr, call_function_by_hand): Update.
1054 * c-valprint.c: Include "target.h".
1055 (print_function_pointer_address): Update.
1056
f1c07ab0
AC
10572003-10-22 Andrew Cagney <cagney@redhat.com>
1058
1059 * target.c (target_close): New function.
1060 (debug_to_close): Use "target_close".
1061 (push_target): Use "target_close".
1062 (unpush_target): Use "target_close".
1063 (pop_target): Use "target_close".
1064 * target.h (struct target_ops): Add "to_xclose".
1065 (target_open): Delete macro. Move comment to "to_open".
1066 (target_close): Replace macro with function that takes a target.
1067 * top.c (quit_target): Pass "current_target" to "target_close".
1068
5520a790
EZ
10692003-10-21 Elena Zannoni <ezannoni@redhat.com>
1070
1071 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1072 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1073 * symtab.h (lookup_minimal_symbol_text): Update.
1074 * breakpoint.c (create_overlay_event_breakpoint,
1075 create_longjmp_breakpoint): Update callers.
1076 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1077 * symtab.c (find_pc_sect_line): Ditto.
1078
caa92b73
AC
10792003-10-21 Andrew Cagney <cagney@redhat.com>
1080
1081 * target.c (errno): Delete extern declaration.
1082
aa2a9a3c
JJ
10832003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1084
1085 * ia64-tdep.c: Change all occurrences of
1086 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1087 (ia64_frame_prev_register): Minor whitespace change.
1088
4beec2b7
MC
10892003-10-20 Michael Chastain <mec@shout.net>
1090
1091 * config/djgpp/fnchange.lst: Add lines for:
1092 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1093 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1094 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1095 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1096 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1097 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1098 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1099
92ad9cd9
AC
11002003-10-20 Andrew Cagney <cagney@redhat.com>
1101
1102 * values.c (register_value_being_returned): Update comments. Use
1103 "gdbarch_return_value" when available.
1104 (using_struct_return): Ditto.
1105 (set_return_value): Ditto. Use "gdbarch_return_value" when
1106 available.. Print a warning, and not an error, when an unhandled
1107 return type is encountered.
1108 * infcmd.c: Include "gdb_assert.h".
1109 (print_return_value): When gdbarch_return_value_p, and using
1110 struct return, assume that the value is not available.
1111 * defs.h (return_value_convention): Define.
1112 * gdbarch.sh (gdbarch_return_value): New predicate method.
1113 * gdbarch.h, gdbarch.c: Re-generate
1114 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1115
198beae2
AC
11162003-10-20 Andrew Cagney <cagney@redhat.com>
1117
1118 * symtab.c: Replace "struct sec" with "struct bfd_section".
1119 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1120
24d693a6 11212003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1122
1123 * config/djgpp/fnchange.lst: Add lines for:
1124 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1125 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1126 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1127
21ad8dc3
MK
11282003-10-19 Mark Kettenis <kettenis@gnu.org>
1129
1130 * amd64fbsd-nat.c (fetch_inferior_registers,
1131 store_inferior_registers): Remove functions.
1132 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1133
cced5e27
MK
11342003-10-18 Mark Kettenis <kettenis@gnu.org>
1135
1136 Add NetBSD/amd64 native configuration:
1137 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1138 * amd64nbsd-tdep.c: New file.
1139 * amd64nbsd-nat.c: New file.
1140 * amd64bsd-nat.c: New file.
1141 * config/i386/nbsd64.mh: New file.
1142 * config/i386/nbsd64.mt: New file.
1143 * configure.host: Add x86_64-*-netbsd*.
1144 * configure.tgt: Add x86_64-*-netbsd*.
1145 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1146 New targets.
1147 * NEWS (New native configurations): Mention NetBSD/amd64.
1148
666de3fd
MC
11492003-10-17 Michael Chastain <mec@shout.net>
1150
1151 * config/djgpp/fnchange.lst: Remove dead lines for:
1152 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1153 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1154 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1155 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1156 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1157 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1158 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1159 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1160 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1161 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1162 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1163 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1164 gdb/config/sparc/tm-sparclite.h,
1165 gdb/gdbtk/generic/ChangeLog-2001,
1166 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1167 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1168 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1169 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1170 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1171 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1172 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1173 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1174 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1175 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1176 itcl/iwidgets3.0.0/demos/fileselectionbox,
1177 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1178 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1179 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1180 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1181 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1182 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1183 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1184 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1185 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1186 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1187 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1188 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1189 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1190 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1191 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1192 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1193 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1194 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1195 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1196 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1197 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1198 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1199 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1200 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1201 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1202 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1203 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1204 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1205 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1206 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1207 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1208 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1209 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1210 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1211 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1212 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1213 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1214 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1215 itcl/iwidgets3.0.0/demos/scrolledframe,
1216 itcl/iwidgets3.0.0/demos/scrolledhtml,
1217 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1218 itcl/iwidgets3.0.0/demos/scrolledtext,
1219 itcl/iwidgets3.0.0/demos/selectionbox,
1220 itcl/iwidgets3.0.0/demos/selectiondialog,
1221 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1222 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1223 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1224 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1225 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1226 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1227 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1228 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1229 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1230 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1231 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1232 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1233 itcl/iwidgets3.0.0/doc/selectionbox.n,
1234 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1235 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1236 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1237 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1238 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1239 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1240 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1241 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1242 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1243 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1244 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1245 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1246 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1247 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1248 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1249 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1250 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1251 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1252 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1253 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1254 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1255 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1256 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1257 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1258 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1259 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1260 itcl/iwidgets3.0.0/tests/selectionbox.test,
1261 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1262 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1263 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1264 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1265 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1266 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1267 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1268 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1269 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1270 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1271 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1272 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1273 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1274 tk/mac/tkMacProjects.sit.hqx.
1275
1e3ff5ad
AC
12762003-10-17 Andrew Cagney <cagney@redhat.com>
1277
8db32d44
AC
1278 * target.c (target_section_by_addr): New function.
1279 (do_xfer_memory): Use "target_section_by_addr".
1280 * target.h (target_section_by_addr): Declare.
1281
1e3ff5ad
AC
1282 * target.h (struct target_ops): Add "to_read_partial" and
1283 "to_write_partial", delete "to_query".
1284 (target_read_partial, target_write_partial): Declare.
1285 (target_read, target_write): Declare.
1286 (target_query): Delete macro.
1287 * target.c (target_read_partial): New function.
1288 (target_write_partial, target_read, target_write): New function.
1289 (update_current_target): Delete inheritance of "to_query". Add
1290 comments about "to_read_partial" and "to_write_partial".
1291 (debug_to_partial_read, debug_to_partial_write): New functions.
1292 (debug_to_query): Delete function.
1293 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1294 instead of "to_query".
1295 * remote.c (remote_read_partial): Replace "remote_query".
1296 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1297 (init_remote_async_ops): Ditto.
1298 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1299 "target_read_partial" instead of "target_query".
1300 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1301 Use "target_read_partial" instead of "target_query".
1302
48c66725
JJ
13032003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1304
1305 * frame.h (struct frame_id): Add new field: special_addr.
1306 (frame_id_build_special): New prototype.
1307 * frame.c (frame_id_build_special): New function.
1308 (frame_id_build): Change to call frame_id_build_special().
1309 (frame_id_eq): Change to also test special_addr field.
1310 (frame_id_inner): Update comment.
1311
7998dfc3
AC
13122003-10-17 Andrew Cagney <cagney@redhat.com>
1313
1314 * target.c (update_current_target): Perform the target cleanup.
1315 Put the target stack beneath the squashed "current_target".
1316 (add_target): Delete disabled call to "cleanup_target".
1317 (cleanup_target): Delete function.
1318 (push_target, unpush_target): Do not call "cleanup_target".
1319
9c04404e 13202003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1321
1322 * target.c (target_stack): Change to a static target_ops.
1323 (update_current_target): Walk the "struct target_ops" stack.
1324 (pop_target, do_xfer_memory, target_info): Ditto.
1325 (find_target_beneath): Ditto.
1326 (push_target): Rewrite to use the "struct target_ops" stack.
1327 (unpush_target): Ditto.
1328 * target.h (struct target_stack_item): Delete definition.
1329 (target_stack): Delete declaration.
1330 (struct target_ops): Add field "beneath".
1331
c98a2b49 13322003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1333
1334 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1335 declaration.
1336 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1337 (h8300_examine_prologue): Use h8300_normal_mode flag
1338 (h8300_gdbarch_init): Set architecture info for normal mode
1339
506fb367
DJ
13402003-10-16 Daniel Jacobowitz <drow@mvista.com>
1341
1342 * remote.c (remote_protocol_vcont): New variable.
1343 (set_remote_protocol_vcont_packet_cmd): New function.
1344 (show_remote_protocol_vcont_packet_cmd): New function.
1345 (init_all_packet_configs): Handle remote_protocol_vcont.
1346 (remote_vcont_probe): New function.
1347 (remote_vcont_resume): New function.
1348 (remote_resume): Use it.
1349 (remote_async_resume): Call remote_resume.
1350 (_initialize_remote): Add verbose-resume packet commands.
1351
65815ea1
AC
13522003-10-16 Andrew Cagney <cagney@redhat.com>
1353
1354 * infrun.c (handle_inferior_event): Add comment about
1355 "frame_id_inner" being too weak.
1356
40324f1b
EZ
13572003-10-16 Elena Zannoni <ezannoni@redhat.com>
1358
1359 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1360 second parameter, which is always null. Remove
1361 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1362 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1363 accordingly.
1364 * somsolib.c (som_solib_create_inferior_hook,
1365 som_solib_desire_dynamic_linker_symbols): Update callers.
1366 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1367
13682003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1369
1370 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1371 debug interface, SDI (Scalable Debug Interface).
1372 * NEWS: Mention m32r SDI protocol was supported.
1373 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1374 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1375
51931cbb
JJ
13762003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1377
1378 * ia64-linux-tdep.c: Include gdbcore.h.
1379 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1380 (ia64_linux_sigcontext_register_addr): Find the address of the
1381 sigcontext area stored in the sigframe instead of using
1382 a magic offset constant.
1383
84e7fd53
AC
13842003-10-15 Andrew Cagney <cagney@redhat.com>
1385
1386 * remote.c (remote_search): Delete function.
1387 * target.h (target_search): Delete disabled macro.
1388 (struct target_ops): Delete disabled field "to_search".
1389
0f4d7c52
KB
13902003-10-14 Kevin Buettner <kevinb@redhat.com>
1391
1392 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1393 instead of deprecated_inside_entry_file().
1394
2e952408
CV
13952003-10-14 Corinna Vinschen <vinschen@redhat.com>
1396
1397 * sh-tdep.c: Fix copy/paste hangover in comment.
1398 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1399 mode.
1400 (sh3e_sh4_extract_return_value): Ditto.
1401
7e86466e
RH
14022003-10-13 Richard Henderson <rth@redhat.com>
1403
1404 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1405 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1406 match c_val_print a bit closer.
1407
46a16dba
KB
14082003-10-13 Kevin Buettner <kevinb@redhat.com>
1409
1410 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1411 (frv_gdbarch_adjust_breakpoint_address): New function.
1412 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1413 method.
1414
76897487
KB
14152003-10-13 Kevin Buettner <kevinb@redhat.com>
1416
1417 * breakpoint.h (struct breakpoint): Add new member
1418 ``requested_address''.
1419 * breakpoint.c (breakpoint_adjustment_warning)
1420 (adjust_breakpoint_address): New static functions.
1421 (print_it_typical): Issue warning if breakpoint's address is different
1422 from its requested address.
1423 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1424 (breakpoint_re_set_one): Set breakpoint's
1425 ``requested_address'' field. Set ``address'' field to the
1426 result of calling adjust_breakpoint_address() on the requested
1427 address.
1428
a1131521
KB
14292003-10-13 Kevin Buettner <kevinb@redhat.com>
1430
1431 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1432 * gdbarch.h, gdbarch.c: Regenerate.
1433
6ce6d90f
MK
14342003-10-11 Mark Kettenis <kettenis@gnu.org>
1435
155c1d33
MK
1436 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1437 TDEP->sc_num_regs.
1438
8a96bc77
MK
1439 * i386fbsd-tdep.c: New file.
1440 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1441 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1442 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1443 i386bsd-tdep.c.
1444 (_initialize_i386fbsd_tdep): New function.
1445 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1446 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1447 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1448 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1449 TDEP->sc_num_regs.
1450 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1451 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1452 to initialize TDEP->sc_num_regs.
1453 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1454 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1455 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1456 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1457 FreeBSD ELF OS/ABI's here.
1458 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1459 (i386fbsd-tdep.o): New target.
1460 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1461 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1462
477f40d1
MK
1463 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1464 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1465 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1466 in initialization of TDEP->sc_num_regs.
1467
c6b33596
MK
1468 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1469 (x86_64_init_abi): Initialize regset_from_core_section if
1470 appropriate.
1471
8446b36a
MK
1472 * i386-tdep.c (i386_regset_from_core_section): New function.
1473 (i386_gdbarch_init): Initialize regset_from_core_section if
1474 appropriate.
1475 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1476
c783cbd6
MK
1477 * i386-tdep.h (struct regset): Declare opaque.
1478
6ce6d90f
MK
1479 * gdbarch.sh (regset_from_core_section): New method.
1480 (struct regset): Declare opaque.
1481 * gdbarch.c, gdbarch.h: Regenerated.
1482
b98ed7be
AM
14832003-10-11 Alan Modra <amodra@bigpond.net.au>
1484
1485 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1486 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1487 Correct test for pc within section.
1488
f6214256
MK
14892003-10-11 Mark Kettenis <kettenis@gnu.org>
1490
1491 * gdbarch.sh: Remove trailing whitepsace from comments.
1492
a8f4cde1
RM
14932003-10-08 Roland McGrath <roland@redhat.com>
1494
1495 * gcore.c (make_mem_sec): Function removed, folded into ...
1496 (gcore_create_callback): ... here. To omit a section, clear its
1497 SEC_LOAD bit rather than zeroing its size.
1498 Omit read-only sections only if they correspond to a known disk file.
1499 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1500
74276724
MS
15012003-10-10 Michael Snyder <msnyder@redhat.com>
1502
1503 * d10v-tdep.c: Fix typo in comment.
1504
e754ae69
AC
15052003-10-10 Andrew Cagney <cagney@redhat.com>
1506
1507 * rs6000-tdep.c (e500_store_return_value): Delete function.
1508 (e500_extract_return_value): Delete function.
1509 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1510 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1511 "ppc_sysv_abi_restore_return_value" where applicable.
1512 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1513 (ppc_sysv_abi_extract_return_value): Declare.
1514 (ppc_sysv_abi_broken_store_return_value): Declare.
1515 (ppc_sysv_abi_broken_extract_return_value): Declare.
1516 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1517 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1518 start of file.
1519 (do_ppc_sysv_return_value): New function.
1520 (ppc_sysv_abi_extract_return_value): New function.
1521 (ppc_sysv_abi_store_return_value): New function.
1522 (ppc_sysv_abi_broken_extract_return_value): New function.
1523 (ppc_sysv_abi_broken_store_return_value): New function.
1524 (ppc_sysv_abi_use_struct_convention): Call
1525 do_ppc_sysv_return_value.
1526
8d4ce20a
JB
15272003-10-10 J. Brobecker <brobecker@gnat.com>
1528
1529 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1530 to lookup the main function symbol.
1531
afce3d2a
CV
15322003-10-10 Corinna Vinschen <vinschen@redhat.com>
1533
1534 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1535 types correctly.
1536 (sh_push_dummy_call_fpu): Fix argument passing rules.
1537 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1538 float types.
1539 (sh3e_sh4_store_return_value): Ditto.
1540
7fe958be
EZ
15412003-10-10 Elena Zannoni <ezannoni@redhat.com>
1542
1543 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1544 comment.
1545
3f997a97
CV
15462003-10-10 Corinna Vinschen <vinschen@redhat.com>
1547
1548 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1549 more readable code. Accomodate passing of bitfields.
1550
8be9034a
AC
15512003-10-10 Andrew Cagney <cagney@redhat.com>
1552
1553 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1554 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1555 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1556 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1557 (ppc64_sysv_abi_push_dummy_call): New function.
1558 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1559 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1560 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1561
85a453d5
KI
15622003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1563
1564 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1565 * README: Ditto.
1566 * d10v-tdep.c: Ditto.
1567 * h8300-tdep.c: Ditto.
1568 * remote-e7000.c: Ditto.
1569 * remote-hms.c: Ditto.
1570 * ser-e7kpc.c: Ditto.
1571 * sh-stub.c: Ditto.
1572 * sh-tdep.c: Ditto.
1573 * sh-tdep.h: Ditto.
1574 * sh3-rom.c: Ditto.
1575 * sh64-tdep.c: Ditto.
1576 * top.c: Ditto.
1577 * wince.c: Ditto.
1578 * config/d10v/d10v.mt: Ditto.
1579 * config/sh/embed.mt: Ditto.
1580 * config/sh/linux.mt: Ditto.
1581 * config/sh/tm-linux.h: Ditto.
1582 * config/sh/tm-sh.h: Ditto.
1583 * config/sh/wince.mt: Ditto.
1584
221c12ff
AC
15852003-10-09 Andrew Cagney <cagney@redhat.com>
1586
1587 * ppc-tdep.h (struct type): Declare opaque.
1588 * x86-64-tdep.h (struct regcache): Declare opaque.
1589 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1590 coding style.
1591
ef5200c1
AC
15922003-10-09 Andrew Cagney <cagney@redhat.com>
1593
1594 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1595 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1596 (SOFTWARE_SINGLE_STEP_P): Ditto.
1597 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1598 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1599 (SOFTWARE_SINGLE_STEP_P): Ditto.
1600 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1601 software_single_step to rs6000_software_single_step.
a8f4cde1 1602
9644bbdd
AC
16032003-10-09 Andrew Cagney <cagney@redhat.com>
1604
1605 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1606
db72fa6b
MS
16072003-10-09 Michael Snyder <msnyder@redhat.com>
1608
f3efb16c
MS
1609 * frame.h: Fix typo in comment.
1610 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1611 * d10v-tdep.c: Random whitespace/comment tweaks.
1612
9a5cef92
EZ
16132003-10-09 Elena Zannoni <ezannoni@redhat.com>
1614
1615 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1616 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1617 on stack.
a8f4cde1 1618
9a5cef92
EZ
1619 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1620 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1621 in detail.
a8f4cde1 1622
0f317a0c
DJ
16232003-10-09 Daniel Jacobowitz <drow@mvista.com>
1624
1625 * remote-mips.c (mips_initialize): Remove unneeded call to
1626 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1627
bbab2f46
DJ
16282003-10-09 Daniel Jacobowitz <drow@mvista.com>
1629
1630 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1631 a memory pointer.
1632
550950b8
JJ
16332003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1634
1635 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1636 for any lwp we resume.
1637 (running_callback): Add lwps that have pending status events
1638 against them to be considered running.
1639
15c69bc7
KI
16402003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1641
1642 * m32r-tdep.c : Include "dis-asm.h".
1643 * Makefile.in (m32r-tdep.o): Update dependencies.
1644
51065942
JB
16452003-10-06 J. Brobecker <brobecker@gnat.com>
1646
1647 * completer.h (get_gdb_completer_word_break_characters): Delete.
1648 * completer.c: include language.h.
1649 (gdb_completer_word_break_characters): Delete.
1650 (get_gdb_completer_word_break_characters): Delete.
1651 (location_completer): Use the word break characters of the current
1652 language.
1653 (complete_line): Likewise.
1654 (line_completion_function): Likewise.
1655 (skip_quoted_chars): Likewise.
1656 * Makefile.in (completer.o): Add dependency on language.h.
1657 * top.c (init_main): Set the readline word break characters
1658 to GDB's default word break characters.
1659
6084f43a
JB
16602003-10-06 J. Brobecker <brobecker@gnat.com>
1661
1662 * language.h (language_defn): new field, la_word_break_characters.
1663 * language.c (unknown_language_defn): Set new field to
1664 default_word_break_characters.
1665 (auto_language_defn): Likewise.
1666 (local_language_defn): Likewise.
1667 * ada-lang.c (ada_language_defn): Likewise.
1668 * c-lang.c (c_language_defn): Likewise.
1669 (cplus_language_defn): Likewise.
1670 (asm_language_defn): Likewise.
1671 (minimal_language_defn): Likewise.
1672 * f-lang.c (f_language_defn): Likewise.
1673 * jv-lang.c (java_language_defn): Likewise.
1674 * m2-lang.c (m2_language_defn): Likewise.
1675 * objc-lang.c (objc_language_defn): Likewise.
1676 * p-lang.c (pascal_language_defn): Likewise.
1677 * scm-lang.c (scm_language_defn): Likewise.
1678
944fcfab
AC
16792003-10-06 Andrew Cagney <cagney@redhat.com>
1680
1681 * ppc-sysv-tdep.c: Re-indent.
1682
9f0a5303
JB
16832003-10-06 J. Brobecker <brobecker@gnat.com>
1684
1685 * language.h (default_word_break_characters): Add prototype.
1686 * language.c (default_word_break_characters): New function.
1687
7270b6ed
AS
16882003-10-06 Andreas Schwab <schwab@suse.de>
1689
1690 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1691 with %eax.
1692
a5d61f66
AC
16932003-10-06 Andrew Cagney <cagney@redhat.com>
1694
1695 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1696 "h8500-tdep.c".
1697 (z8k-tdep.o): Delete custom build rule.
1698
28a86f5c
AC
16992003-10-06 Andrew Cagney <cagney@redhat.com>
1700
1bfd8a83
AC
1701 * Makefile.in: Update all dependencies.
1702
17144ef8
AC
1703 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1704 No longer list PA as as obsolete candidate. List m32r as
1705 broken instead of obsolete.
a8f4cde1 1706
a5679ae5
AC
1707 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1708 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1709 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1710 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1711 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1712 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1713 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1714 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1715 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1716 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1717 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1718 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1719 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1720 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1721 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1722 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1723 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1724 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1725 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1726 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1727 * config/z8k/z8k.mt: Ditto.
1728
4a8269c0
AC
1729 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1730 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1731 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1732 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1733 sparclite were removed.
1734 * configure.host, configure.tgt: Remove corresponding tuples.
1735
41989fcd
AC
1736 * breakpoint.c, breakpoint.h: Remove obsolete code.
1737 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1738 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1739 * stabsread.h, xcoffread.c: Ditto.
1740
28a86f5c
AC
1741 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1742 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1743 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1744 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1745
4efdaa0d
DL
17462003-10-06 David Lecomber <dsl@sources.redhat.com>
1747
1748 * f-valprint.c: Reformatting
1749
ae53de43
MK
17502003-10-06 Mark Kettenis <kettenis@gnu.org>
1751
a8bb57e7
MK
1752 * x86-64-tdep.c: Remove duplicate comment.
1753
ae53de43
MK
1754 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1755 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1756 names for return values. This fixes a bug since we looked at %rbx
1757 instead of %rdx.
1758
473f17b0
MK
17592003-10-05 Mark Kettenis <kettenis@gnu.org>
1760
2c261fae
MK
1761 * x86-64-tdep.c: Include "regset.h".
1762
473f17b0
MK
1763 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1764 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1765 sizeof_fpregset.
1766 * i386-tdep.c: Include "regset.h".
1767 (i386_supply_gregset): New function.
1768 (i386_supply_fpregset): New function.
1769 (i386_gdbarch_init): Initialze register set-related members of
1770 TDEP.
1771 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1772 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1773
afd48b75
AC
17742003-10-03 Andrew Cagney <cagney@redhat.com>
1775
1776 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1777 set extract_return_value, store_return_value and
1778 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1779 ppc64_sysv_abi_store_return_value and
1780 ppc64_sysv_abi_use_struct_convention.
1781 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1782 (ppc64_sysv_abi_store_return_value): Declare.
1783 (ppc64_sysv_abi_use_struct_convention): Declare.
1784 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1785 (ppc64_sysv_abi_extract_return_value): New function.
1786 (ppc64_sysv_abi_store_return_value): New function.
1787 (ppc64_sysv_abi_use_struct_convention): New function.
1788 (ppc64_sysv_abi_return_value): New function.
1789
9b540880
AC
17902003-10-03 Andrew Cagney <cagney@redhat.com>
1791
1792 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1793 convert a descriptor to a function when it's in the ".opd"
1794 section.
1795
8748518b
CV
17962003-10-03 Corinna Vinschen <vinschen@redhat.com>
1797
1798 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1799 reg_size to keep GCC silent.
1800
0fd85043
CV
18012003-10-03 Corinna Vinschen <vinschen@redhat.com>
1802
1803 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1804 base for DW_EH_PE_textrel encodings.
1805 (read_encoded_value): Add a DW_EH_PE_textrel case.
1806 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1807 section.
1808
37b517aa
MK
18092003-10-03 Mark Kettenis <kettenis@gnu.org>
1810
1811 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1812
12c266ea
AC
18132003-10-02 Andrew Cagney <cagney@redhat.com>
1814
1815 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1816 REGISTER_RAW_SIZE.
1817 * gdbarch.h, gdbarch.c: Re-generate.
1818 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1819 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1820 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1821 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1822 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1823 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1824 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1825 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1826 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1827 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1828 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1829 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1830 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1831 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1832 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1833 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1834
78ba4af6
JB
18352003-10-02 Jim Blandy <jimb@redhat.com>
1836
1837 * dwarf2read.c (struct die_info): Doc fix.
1838
617daa0e
CV
18392003-10-02 Corinna Vinschen <vinschen@redhat.com>
1840
1841 * sh-tdep.c: Running thru gdb_indent.sh.
1842
e5e33cd9
CV
18432003-10-02 Corinna Vinschen <vinschen@redhat.com>
1844
1845 * sh-tdep.c (sh_justify_value_in_reg): New function.
1846 (sh_stack_allocsize): Ditto.
1847 (flt_argreg_array): New array used for floating point argument
1848 passing.
1849 (sh_init_flt_argreg): New function.
a8f4cde1 1850 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1851 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1852 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1853 Fix argument passing strategy.
1854 (sh_push_dummy_call_nofpu): Ditto.
1855
5fe830e4
AC
18562003-10-01 Andrew Cagney <cagney@redhat.com>
1857
1858 * value.h (register_value_being_returned): Declare. Replace
1859 "value_being_returned".
1860 * infcall.c (call_function_by_hand): Use
1861 register_value_being_returned.
1862 * infcmd.c (print_return_value): Call
1863 "register_value_being_returned", handle struct return locally.
1864 * values.c (register_value_being_returned): New function. Replace
1865 "value_being_returned".
a8f4cde1 1866
5fe830e4 18672003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1868
1869 * linux-proc.c (linux_do_registers): New function.
1870 (linux_make_note_section): Use linux_do_registers in case of
1871 single threaded inferior programs.
1872
64f395bf
AC
18732003-10-01 Andrew Cagney <cagney@redhat.com>
1874
1875 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1876 use STRUCT_ADDR. When not using "struct return convention", pass
1877 "0" to "value_being_returned". Add FIXMEs.
1878 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1879 value_being_returned. Add comments.
1880 * values.c (value_being_returned): Add fixme.
1881 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1882 (hppa_value_returned_from_stack): Add FIXME.
1883
639d11d3
DC
18842003-09-30 David Carlton <carlton@kealia.com>
1885
1886 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1887 'has_children' and 'next' by 'child' and 'sibling'.
1888 (read_comp_unit): Rework algorithm, breaking body into
1889 read_die_and_children and read_die_and_siblings.
1890 (read_die_and_children, read_die_and_siblings): New.
1891 (read_full_die): Add 'has_children' argument; set it instead of
1892 the die's 'has_children' field. Minor formatting cleanup.
1893 (free_die_list): Use die->child and die->sibling instead of
1894 die->next.
1895 (dump_die_list): Ditto.
1896 (sibling_die): Use die->sibling.
1897 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1898 'has_children' and 'next' fields.
a8f4cde1
RM
1899 (process_die, read_file_scope, read_func_scope)
1900 (read_lexical_block_scope, read_structure_scope)
1901 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1902 (read_namespace, read_subroutine_type, dump_die): Ditto.
1903
5bffac25
AC
19042003-09-30 Andrew Cagney <cagney@redhat.com>
1905
1906 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1907 to 224, not 220.
1908
f30992d4
AC
19092003-09-30 Andrew Cagney <cagney@redhat.com>
1910
1911 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1912 REGISTER_VIRTUAL_SIZE.
1913 * gdbarch.h, gdbarch.c: Regenerate.
1914 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1915 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1916 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1917
2e092625
AC
19182003-09-29 Andrew Cagney <cagney@redhat.com>
1919
1920 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 1921 REGISTER_VIRTUAL_TYPE.
2e092625
AC
1922 * gdbarch.h, gdbarch.c: Regenerate.
1923 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1924 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1925
1926 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1927 * remote-vxmips.c (vx_read_register): Ditto.
1928 * remote-vx68.c (vx_read_register): Ditto.
1929 * gnu-nat.c (inf_validate_procs): Ditto.
1930
7a5dd6ee
JB
19312003-09-29 J. Brobecker <brobecker@gnat.com>
1932
1933 * infcall.c (call_function_by_hand): Fix build failure
1934 introduced in the previous change to this file.
1935
1fe43d45
AC
19362003-09-29 Andrew Cagney <cagney@redhat.com>
1937
1938 * NEWS: Mention Objective-C.
1939
e28a332c
JG
19402003-09-29 Jerome Guitton <guitton@act-europe.fr>
1941
1942 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1943 test if the register has been saved on the stack.
1944 (arm_scan_prologue_cache): When analysing the instruction
1945 "str lr, [sp, #-4]", save the address where lr has been stored.
1946
9ff63c35
AC
19472003-09-28 Andrew Cagney <cagney@redhat.com>
1948
7f5f525d
AC
1949 * frame.c (frame_read_unsigned_register): Delete function.
1950 * frame.h (frame_read_unsigned_register): Delete declaration.
1951 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1952 get_frame_register_unsigned.
1953 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1954 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1955 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1956
7f5f525d
AC
1957 * frame.h (frame_read_register): Delete declaration.
1958 * frame.c (frame_read_register): Delete function.
1959 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1960 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1961 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1962 * mips-tdep.c (mips_register_to_value): Ditto.
1963 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1964 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1965
1966 * frame.c (frame_read_signed_register): Delete function.
1967 (frame_read_unsigned_register): Update comments.
1968 * frame.h (frame_read_signed_register): Delete declaration.
1969 * h8300-tdep.c (h8300_print_register): Use
1970 get_frame_register_signed.
1971 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1972
9ff63c35
AC
1973 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1974 Rename VALUE_RETURNED_FROM_STACK.
1975 * infcmd.c (print_return_value): Update.
1976 * infcall.c (call_function_by_hand): Update.
1977
41d041d6
MK
19782003-09-28 Mark Kettenis <kettenis@gnu.org>
1979
1980 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1981 regcache argument and reverse the order of the other two
1982 arguments. Remove local regcache variable. Determine
1983 architecture from REGCACHE. Update comments.
1984 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1985 reverse the order of the other two arguments. Remove local
1986 regcache variable. Determine architecture from REGCACHE. Update
1987 comments.
1988 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1989 prototypes. Update comments.
1990 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1991 comment.
1992 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1993 Update.
1994 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1995 * i386-interix-nat.c (supply_fpregset): Update.
1996 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1997 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1998 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1999 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2000 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2001 Update.
2002 * i386obsd-tdep.c (fetch_core_registers): Update.
2003 * i386v4-nat.c (supply_fpregset): Update.
2004 * x86-64-linux-nat.c (supply_fpregset): Update.
2005 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2006
1cb97e17
MK
20072003-09-27 Mark Kettenis <kettenis@gnu.org>
2008
5716833c
MK
2009 * i386-tdep.h: Put opaque declarations in alphabetical
2010 order. Remove spurious whitespace.
2011 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2012 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2013 * i386-tdep.c (MM0_REGNUM): Remove define.
2014 (i386_mmx_regnum_p): Add gdbarch argument.
2015 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2016 Rewrite using new macro definitions for FPU/SSE registers.
2017 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2018 definitions from i387-tdep.h.
2019 (i386_register_name): Update.
2020 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2021 new macro definitions for FPU/SSE registers.
2022 (i386_extract_return_value): Determine whether floating-point
2023 registers are present by examining REGCACHE's architecture.
2024 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2025 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2026 FPU/SSE registers.
2027 (i386_register_type): Update.
2028 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2029 definitions for FPU registers. Use REGCACHE's architecture to
2030 determine the appropriate register numbers.
2031 (i386_pseudo_register_read, i386_pseudo_register_write,
2032 i386_register_reggroup_p): Update.
2033 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2034 TDEP->mm0_regnum.
2035 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2036 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2037 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2038 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2039 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2040 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2041 *' to `void *'.
2042 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2043 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2044 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2045 definitions for FPU/SSE registers.
2046 (FXSAVE_MXCSR_ADDR): New define.
2047 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2048 TDEP->mm0_regnum.
2049 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2050 (I387_ST0_REGNUM): Define.
2051
41d35cb0
MK
2052 * regcache.h (get_regcache_arch): New prototype.
2053 * regcache.c (get_regcache_arch): New function.
2054
54e74f72
MK
2055 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2056 whitespace.
2057
1cb97e17
MK
2058 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2059 Initialize using ARRAY_SIZE.
2060
0968aa8c
AC
20612003-09-27 Andrew Cagney <cagney@redhat.com>
2062
2063 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2064 "init_frame_pc_default".
2065 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2067 * vax-tdep.c (vax_gdbarch_init): Update.
2068 * v850-tdep.c (v850_gdbarch_init): Update.
2069 * sh64-tdep.c (sh64_gdbarch_init): Update.
2070 * s390-tdep.c (s390_gdbarch_init): Update.
2071 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2072 * mcore-tdep.c (mcore_gdbarch_init): Update.
2073 * h8300-tdep.c (h8300_gdbarch_init): Update.
2074 * cris-tdep.c (cris_gdbarch_init): Update.
2075 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2076
54c84734
MK
20772003-09-26 Mark Kettenis <kettenis@gnu.org>
2078
2079 * regset.h: New file.
2080 * Makefile.in (regset_h): Add.
2081
1b1d3794
AC
20822003-09-25 Andrew Cagney <cagney@redhat.com>
2083
2084 * frame.h (deprecated_frame_saved_regs): Rename
2085 get_frame_saved_regs.
2086 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2087 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2088 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2089 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2090 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2091
e6beb428
AC
20922003-09-25 Andrew Cagney <cagney@redhat.com>
2093
2094 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2095 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2096 and Java.
2097 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2098 arm*-*-* do not use the new frame code.
2099
710122da
DC
21002003-09-25 David Carlton <carlton@kealia.com>
2101
2102 * c-exp.y: Remove 'register' declarations.
2103 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2104
79c2c32d
DC
21052003-09-25 David Carlton <carlton@kealia.com>
2106
2107 * c-exp.y: Include cp-support.h. Add qualified_type.
2108 (yylex): Delete nested type hack; add comments.
2109 * cp-namespace.c (cp_lookup_nested_type): New function.
2110 * cp-support.h: Declare cp_lookup_nested_type.
2111 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2112 instead of value_struct_elt_for_reference.
2113 * valops.c: Include cp-support.h.
2114 (value_aggregate_elt): New function.
2115 (value_namespace_elt): Ditto.
2116 (value_struct_elt_for_reference): Make static.
2117 * value.h: Delete declaration of value_struct_elt_for_reference;
2118 add declaration for value_aggregate_elt.
2119 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2120 (valops.o): Ditto.
2121
898c62f5
DJ
21222003-09-25 Daniel Jacobowitz <drow@mvista.com>
2123
2124 * stack.c: Include "reggroups.h".
2125 (frame_info): Only display registers in all_reggroup.
2126 * Makefile.in (stack.o): Update dependencies.
2127
28cd8767
JG
21282003-09-25 Jerome Guitton <guitton@act-europe.fr>
2129
2130 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2131 "add ip, sp #n" in the prologue.
2132 (arm_scan_prologue): Ditto.
2133
a4ab2b5d
JG
21342003-09-25 Jerome Guitton <guitton@act-europe.fr>
2135
2136 * MAINTAINERS (write after approval): Add myself.
2137
3f244638
AS
21382003-09-25 Andreas Schwab <schwab@suse.de>
2139
2140 * m68k-tdep.c: Include "dwarf2-frame.h".
2141 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2142 * Makefile.in (m68k-tdep.o): Update dependencies.
2143
1c0159e0
CV
21442003-09-25 Corinna Vinschen <vinschen@redhat.com>
2145
2146 * sh-tdep.c (struct frame_extra_info): Remove.
2147 (struct sh_frame_cache): New structure.
2148 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2149 (GET_TARGET_REG): Ditto but target register.
2150 (GET_PUSHED_REG): Remove.
2151 (IS_MOV_ARG_TO_REG): New macro.
2152 (IS_MOV_ARG_TO_IND_R14): New macro.
2153 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2154 (IS_MOVW_PCREL_TO_REG): New macro.
2155 (IS_MOVL_PCREL_TO_REG): New macro.
2156 (IS_SUB_REG_FROM_SP): New macro.
2157 (IS_ARG_MOV): Remove.
2158 (IS_MOV_TO_R14): Remove.
2159 (IS_RESTORE_FP): New macro.
2160 (IS_RTS): New macro.
2161 (IS_LDS): New macro.
2162 (IS_MOV_FP_SP): New macro.
2163 (IS_ADD_REG_TO_FP): New macro.
2164 (IS_ADD_IMM_FP): New macro.
2165 (sh_skip_prologue_hard_way): Remove.
2166 (sh_saved_pc_after_call): Remove.
2167 (sh_frame_chain): Remove.
2168 (sh_find_callers_reg): Remove.
a8f4cde1 2169 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2170 (sh_fp_frame_init_saved_regs): Remove.
2171 (sh_init_extra_frame_info): Remove.
2172 (sh_analyze_prologue): New function.
2173 (sh_skip_prologue): Remove deprecated code. Rely on new function
2174 sh_analyze_prologue when after_prologue fails.
2175 (sh_frame_saved_pc): Remove.
2176 (sh_alloc_frame_cache): New function.
2177 (sh_frame_cache): Ditto.
2178 (sh_frame_prev_register): Ditto.
2179 (sh_frame_this_id): Ditto.
2180 (sh_frame_unwind): New structure defining the heuristic frame
2181 sniffer interface.
2182 (sh_frame_sniffer): New function.
2183 (sh_unwind_sp): Ditto.
2184 (sh_unwind_pc): Ditto.
2185 (sh_unwind_dummy_id): Ditto.
2186 (sh_frame_base_address): Ditto.
2187 (sh_frame_base): New structure defining new frame base code.
2188 (sh_in_function_epilogue_p): New function.
2189 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2190 code and to call all new code instead. Initialize dwarf2 and
2191 heuristic frame sniffer.
2192
5f9769d1
PH
21932003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2194
a8f4cde1
RM
2195 * parser-defs.h (struct exp_descriptor): New definition, containing
2196 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2197 evaluating expressions.
2198 (exp_descriptor_standard): Declare new variable.
2199 (print_subexp): Make global and declare here (from expprint.c).
2200 (dump_subexp): Ditto.
2201 (dump_subexp_body_standard): Declare.
2202 (operator_length_standard): Declare.
2203 (op_name_standard): Declare.
2204 (print_subexp): Declare.
2205 (print_subexp_standard): Declare.
2206
2207 * language.h (struct language_defn): Add la_exp_desc field to hold
2208 pointer to table for language-specific operators.
2209 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2210
2211 * parse.c (operator_length): Move most code to new
5f9769d1 2212 operator_length_standard function. Use language-specific information.
a8f4cde1 2213 (operator_length_standard): New function taking most code from
5f9769d1
PH
2214 operator_length.
2215 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2216
2217 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2218 and OP_EXTENDED_LAST.
a8f4cde1
RM
2219
2220 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2221 Make global; remove static declaration.
2222 Move most code to print_subexp_standard.
a8f4cde1 2223 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2224 print_subexp.
2225 (op_name): Add expression to argument signature.
a8f4cde1 2226 Use langauge-specific op_name.
5f9769d1
PH
2227 Move most code to op_name_standard.
2228 (op_name_standard): New function, containing code formerly in op_name.
2229 (dump_subexp): Use new version of op_name function.
2230 Use language-specific dump_subexp_body, and move most existing code to
2231 dump_subexp_body_standard.
2232 (dump_raw_expression): Use new op_name interface.
2233 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2234 (dump_subexp_body_standard): New function, containing code formerly
2235 in dump_subexp_body.
a8f4cde1 2236
5f9769d1
PH
2237 * language.c (unknown_language): Add default la_exp_desc field and
2238 remove evaluate_exp field.
2239 (auto_language): Ditto.
2240 (local_language): Ditto.
2241 * f-lang.c (f_language_defn): Ditto.
2242 * c-lang.c (c_language_defn): Ditto.
2243 (cplus_language_defn): Ditto.
2244 (asm_language_defn): Ditto.
2245 (minimal_language_defn): Ditto.
2246 * p-lang.c (pascal_language_defn): Ditto.
2247 * m2-lang.c (m2_language_defn): Ditto.
2248 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2249
2250 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2251 Java-specific expression evaluator.
2252 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2253 field.
a8f4cde1 2254 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2255 Scheme-specific expression evaluator.
2256 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2257 field.
2258 * objc-lang.c (print_object_command): Take evaluate_exp from the
2259 la_exp_desc field.
a8f4cde1 2260
5f9769d1 2261 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2262
2263 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2264 la_exp_desc's type.
2265 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2266
24daaebc
PH
22672003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2268
2269 * parser-defs.h (operator_length): Declare.
a8f4cde1 2270
24daaebc
PH
2271 * parse.c (length_of_subexp): Use operator_length to get operator
2272 lengths and arities for operators.
2273 Move most code to new operator_length function.
a8f4cde1 2274 (operator_length): New function absorbing most code from
24daaebc
PH
2275 length_of_subexp.
2276 (prefixify_subexp): Remove large case and use operator_length instead.
2277 (parse_exp_1): Use renamings:
a8f4cde1 2278 dump_prefix_expression => dump_raw_expression and
24daaebc 2279 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2280
24daaebc
PH
2281 * expression.h (dump_prefix_expression): Rename to ...
2282 (dump_raw_expression): New name.
2283 (dump_postfix_expression): Rename to ...
2284 (dump_prefix_expression): New name.
a8f4cde1 2285
24daaebc
PH
2286 * expprint.c (dump_subexp): Make global. Add comment.
2287 Move most existing code to dump_subexp_body.
2288 (dump_subexp_body): New function.
2289 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2290 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2291 work before the expression is prefixified.
2292 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2293 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2294 that's what it does.
a8f4cde1 2295 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2296 prefixified expression.
2297 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2298
8c2957c4
JB
22992003-09-22 Jim Blandy <jimb@redhat.com>
2300
2301 * dwarf2read.c (read_array_type): When building the type for an
2302 array of unspecified length, make sure to choose the upper bound
2303 so that the array's total length comes out to be zero --- that's
2304 how we represent such arrays.
2305
592e3010
MC
23062003-09-22 Michael Chastain <mec@shout.net>
2307
2308 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2309
365c70b1
JJ
23102003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2311
2312 * top.c (quit_force): Fix indirect call to quit_target so
2313 a struct qt_args pointer is passed.
2314
5d6eb653
AC
23152003-09-22 Andrew Cagney <cagney@redhat.com>
2316
2317 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2318 * arch-utils.c (init_frame_pc_noop): Delete function.
2319 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2320 "init_frame_pc".
2321 * mips-tdep.c (mips_gdbarch_init): Ditto.
2322 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2323 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2324 declaration.
2325 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2326 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2327 declaration.
2328 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2329
b222a67f
AG
23302003-09-22 Anthony Green <green@redhat.com>
2331
2332 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2333 declaration.
2334
d5b5ac79
AC
23352003-09-20 Andrew Cagney <cagney@redhat.com>
2336
deafb061
AC
2337 * breakpoint.c: Eliminate ARGSUSED.
2338 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2339 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2340 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2341 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2342 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2343 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2344 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2345 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2346 * wince.c, remote-vx.c: Ditto.
2347
d5b5ac79
AC
2348 * cli/cli-script.c: Remove "register" attributes.
2349 * config/pa/tm-hppa.h: Ditto.
2350 * cli/cli-decode.c: Ditto.
2351 * cli/cli-cmds.c: Ditto.
2352
c6316faa
AC
23532003-09-19 Andrew Cagney <cagney@redhat.com>
2354
2355 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2356 DEPRECATED_NPC_REGNUM.
2357 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2358
f4f99b11
CF
23592003-09-19 Christopher Faylor <cgf@redhat.com>
2360
2361 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2362
1708f284
JB
23632003-09-19 Jim Blandy <jimb@redhat.com>
2364
2365 * macrotab.c (macro_include): Use the correct comparison to find
2366 the appropriate place for this inclusion in the list.
2367
b9fbf434
AC
23682003-09-19 Andrew Cagney <cagney@redhat.com>
2369
2370 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2371 (DEPRECATED_HPUX_TEXT_END): Define.
2372 (deprecated_hpux_text_end): Declare.
2373 (struct target_ops): Declare opaque.
2374 * hppah-nat.c (text_end): Make static.
2375 (deprecated_hpux_text_end): New function.
2376 * exec.c (text_end): Delete global variable.
2377 (NEED_TEXT_START_END): Do not define.
2378 (exec_file_attach): Replace code computing "text_end" code with
2379 call to DEPRECATED_HPUX_TEXT_END.
2380
5b03f266
AC
23812003-09-19 Andrew Cagney <cagney@redhat.com>
2382
2383 * utils.c (align_up, align_down): New functions.
2384 * defs.h (align_up, align_down): Declare.
2385 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2386 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2387 and "align_down".
2388 (round_up, round_down): Delete functions.
2389 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2390 "align_down".
2391 (ROUND_DOWN, ROUND_UP): Delete macros.
2392 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2393 * h8300-tdep.c: Replace "round_up" and "round_down" with
2394 "align_up" and "align_down".
2395 (round_up, round_down): Delete macros.
2396 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2397 "align_down".
2398 (ROUND_UP, ROUND_DOWN): Delete macros.
2399
51db5742
JB
24002003-09-18 J. Brobecker <brobecker@gnat.com>
2401
2402 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2403 hard-coded constant. Use the proper machine name instead.
2404
77949794
AC
24052003-09-17 Andrew Cagney <cagney@redhat.com>
2406
2407 * sparc-tdep.c (legacy_register_name): Delete function.
2408 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2409 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2410 * infcmd.c (gdb_register_name): Delete variable.
2411 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2412 REGISTER_NAME and "tm.h".
2413 * gdbarch.h, gdbarch.c: Regenerate.
2414 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2415 REGISTER_NAMES in comments.
2416 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2417 * m68klinux-nat.c (regmap): Ditto.
2418
b55c33cc
JB
24192003-09-17 Jim Blandy <jimb@redhat.com>
2420
2421 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2422
957e27ac
AC
24232003-09-17 Andrew Cagney <cagney@redhat.com>
2424
2425 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2426 (ppcnbsd_init_abi): Set "use_struct_convention" to
2427 "ppcnbsd_use_struct_convention".
2428
192cb3d4
MK
24292003-09-17 Mark Kettenis <kettenis@gnu.org>
2430
2431 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2432 * gdbarch.h, gdbarch.c: Regenerate.
2433 (stabs_argument_has_addr): New architecture method.
2434 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2435 * arch-utils.c: Include "buildsym.h".
2436 (default_stabs_argument_has_addr): New function.
2437 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2438 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2439
efe59759
AC
24402003-09-17 Andrew Cagney <cagney@redhat.com>
2441
2442 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2443 * gdbarch.h, gdbarch.c: Regenerate.
2444 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2445 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2446 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2447 * sparcnbsd-tdep.c: Update.
a8f4cde1 2448
62700349
AC
24492003-09-17 Andrew Cagney <cagney@redhat.com>
2450
2451 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2452 * gdbarch.h, gdbarch.c: Regenerate.
2453 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2454 * d10v-tdep.c, frame.c: Update.
2455 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2456 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2457 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2458 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2459 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2460 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2461 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2462 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2463 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2464 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2465 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2466 * config/pa/nm-hppah.h: Update.
2467
b9ff3018
AC
24682003-09-16 Andrew Cagney <cagney@redhat.com>
2469
2470 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2471 "use_struct_convention" to "ppc_linux_use_struct_convention".
2472 (ppc_linux_use_struct_convention): New function.
2473 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2474 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2475 "rs6000_use_struct_convention".
2476 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2477 declaration.
2478 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2479 Delete function.
2480
aa1ee363
AC
24812003-09-16 Andrew Cagney <cagney@redhat.com>
2482
2483 * buildsym.c: Remove more occurances of "register".
2484 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2485 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2486 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2487 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2488 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2489 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2490 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2491 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2492
f2ea0907
CV
24932003-09-16 Corinna Vinschen <vinschen@redhat.com>
2494
2495 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2496 numbers to enumeration values.
2497 * sh-tdep.c: Accomodate above change.
2498 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2499 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2500 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2501 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2502 (IS_FPUSH): Rename from IS_FMOV.
2503 (sh_extract_struct_value_address): Remove useless comment.
2504 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2505 instead of own local values.
2506 (sh_dump_tdep): Remove.
2507 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2508 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2509
1c704f11
AC
25102003-09-15 Andrew Cagney <cagney@redhat.com>
2511
2512 * doublest.c (convert_floatformat_to_doublest): No longer need to
2513 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2514
ac79b88b
DJ
25152003-09-15 Daniel Jacobowitz <drow@mvista.com>
2516
2517 * values.c (unpack_double): Call floatformat_is_valid.
2518
1c671366
MK
25192003-09-15 Mark Kettenis <kettenis@gnu.org>
2520
de5227fb
MK
2521 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2522 ps_strings into a long.
2523
1c671366
MK
2524 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2525 _initialize_am64fbsd_nat.
2526
a604369a
KB
25272003-09-15 Kevin Buettner <kevinb@redhat.com>
2528
2529 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2530 associated with DW_AT_ranges attribute is out of bounds.
2531
b3cacbee
DL
25322003-09-15 David Lecomber <dsl@sources.redhat.com>
2533
2534 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2535
d0f37bb2
MC
25362003-09-14 Michael Chastain <mec@shout.net>
2537
2538 * config/m68k/nm-apollo68v.h: Delete.
2539 * config/m68k/xm-apollo68v.h: Delete.
2540
69517000
AC
25412003-09-14 Andrew Cagney <cagney@redhat.com>
2542
2543 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2544 * dcache.c: Update copyrights and descriptions.
2545 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2546
ef8b349d
AC
25472003-09-14 Andrew Cagney <cagney@redhat.com>
2548
2549 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2550 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2551
52f0bd74
AC
25522003-09-14 Andrew Cagney <cagney@redhat.com>
2553
2554 * alpha-nat.c: Remove some occurances of "register".
2555 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2556 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2557 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2558 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2559 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2560 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2561 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2562 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2563 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2564 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2565 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2566 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2567 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2568 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2569 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2570 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2571 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2572 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2573 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2574 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2575 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2576 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2577
4a4b3fed
AC
25782003-09-13 Andrew Cagney <cagney@redhat.com>
2579
2580 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2581 * ppc-tdep.h (struct regcache): Declare opaque.
2582 * objfiles.h (struct objfile_data): Declare opaque.
2583 * cp-support.h (struct objfile): Declare opaque.
2584 * linux-nat.h (target_waitstatus): Declare opaque.
2585
2110b94f
MK
25862003-09-14 Mark Kettenis <kettenis@gnu.org>
2587
1c671366
MK
2588 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2589 (stabs_argument_has_addr): New architecture method.
2590 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2591 * arch-utils.c: Include "buildsym.h".
2592 (default_stabs_argument_has_addr): New function.
2593 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2594 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2595
2110b94f
MK
2596 * cris-tdep.c (cris_gdbarch_init): Set
2597 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2598 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2599 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2600 * mips-tdep.c (mips_gdbarch_init): Likewise.
2601 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2602 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2603
48436ce6
AC
26042003-09-13 Andrew Cagney <cagney@redhat.com>
2605
2606 * values.c (using_struct_return): Delete "function" and "funcaddr"
2607 parameters.
2608 * value.h (using_struct_return): Update declaration.
2609 * infcmd.c (finish_command_continuation): Update.
2610 (finish_command): Update.
2611 * infcall.c (call_function_by_hand): Update.
2612 * eval.c (evaluate_subexp_standard): Update.
2613
403d9909
CF
26142003-09-13 Christopher Faylor <cgf@redhat.com>
2615
2616 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2617 SSE registers since gdb will not operate correctly without this.
2618 Restore include file ordering munged in previous change.
2619 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2620
ebf7d56b
MK
26212003-09-13 Mark Kettenis <kettenis@gnu.org>
2622
8e823e25
MK
2623 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2624 REG_STRUCT_HAS_ADDR.
2625 * gdbarch.c, gdbarch.h: Updated.
2626 * infcall.c (call_function_by_hand): Update.
2627 * stabsread.c (define_symbol): Updated.
a8f4cde1 2628
ebf7d56b
MK
2629 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2630
d3f13f72
CF
26312003-09-12 Christopher Faylor <cgf@redhat.com>
2632
2633 * win32-nat.c: Reorganize so that defines used by target headers are
2634 actually defined by the system headers.
2635 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2636 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2637
14f75137
JB
26382003-09-12 Jim Blandy <jimb@redhat.com>
2639
d646061f
JB
2640 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2641 the file has no .data, .bss, or .rodata sections. Instead wait
2642 until we see a variable alleged to live in one of those sections.
2643
2a13f9bc
JB
2644 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2645 .bss section, presume that any variables we find live in the
2646 .rodata section.
2647
4f49b26b
JB
2648 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2649 offsets for global and static variables.
2650
14f75137
JB
2651 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2652 symbol types are, by definition, in the .data section, so it is
2653 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2654 If there is no .data section, there should be no N_DATA or N_DATA
2655 | N_EXT symbols.
2656
212c460c
MK
26572003-09-12 Mark Kettenis <kettenis@gnu.org>
2658
2659 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2660 (amd64fbsd_sigcontext_addr): Rewrite.
2661 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2662 with correct values.
2663 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2664 (amd64fbsd_init_abi): Fix typo.
2665
68856ea3
AC
26662003-09-12 Andrew Cagney <cagney@redhat.com>
2667
2668 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2669 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2670
627b3ba2
AC
26712003-09-12 Andrew Cagney <cagney@redhat.com>
2672
2673 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2674 "entry_file_highpc". Update comments.
2675 * defs.h (deprecated_inside_entry_file): Rename
2676 "inside_entry_file".
2677 * blockframe.c (deprecated_inside_entry_file): Rename
2678 "inside_entry_file".
2679 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2680 * vax-tdep.c (vax_frame_chain): Update.
2681 * sh64-tdep.c (sh64_frame_chain): Update.
2682 * sh-tdep.c (sh_frame_chain): Update.
2683 * rs6000-tdep.c (rs6000_frame_chain): Update.
2684 * ns32k-tdep.c (ns32k_frame_chain): Update.
2685 * mips-tdep.c (mips_frame_chain): Update.
2686 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2687 * m32r-tdep.c (m32r_frame_this_id): Update.
2688 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2689 * frv-tdep.c (frv_frame_this_id): Update.
2690 * d10v-tdep.c (d10v_frame_this_id): Update.
2691 * cris-tdep.c (cris_frame_chain): Update.
2692 * blockframe.c (legacy_frame_chain_valid): Update.
2693 * avr-tdep.c (avr_frame_this_id): Update.
2694 * arm-tdep.c (arm_prologue_this_id): Update.
2695 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2696 * objfiles.c (objfile_relocate): Update.
2697 * mipsread.c (mipscoff_symfile_read): Update.
2698 (mipscoff_symfile_read): Update.
2699 * mdebugread.c (parse_partial_symbols): Update.
2700 * dwarfread.c (read_file_scope): Update.
2701 * dwarf2read.c (read_file_scope): Update.
2702 * dbxread.c (read_dbx_symtab): Update.
2703 (read_dbx_symtab): Update.
2704 * coffread.c (complete_symtab): Update.
2705
b0abbc58
JJ
27062003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2707
2708 * top.c (quit_target): New static helper function.
2709 (quit_force): Moved code to quit_target(). Call quit_target()
2710 via catch_errors() to catch errors during quit.
2711
a1632d59
DC
27122003-09-11 David Carlton <carlton@kealia.com>
2713
2714 * buildsym.c (finish_block): Use allocate_block to allocate the
2715 block.
2716 * mdebugread.c (new_block): Add FIXME.
2717
5c4e30ca
DC
27182003-09-11 David Carlton <carlton@kealia.com>
2719
2720 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2721 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2722 (recursive_dump_type): Ditto.
2723 * printcmd.c (print_formatted): Ditto.
2724 * typeprint.c (print_type_scalar): Ditto.
2725 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2726 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2727 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2728 maint_cplus_cmd_list.
2729 * cp-support.c: Make maint_cplus_cmd_list extern.
2730 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2731 command.h.
2732 (lookup_symbol_file): Look in possible namespace blocks when
2733 appropriate.
2734 (initialize_namespace_symtab): New.
2735 (get_possible_namespace_block, free_namespace_block)
2736 (check_possible_namespace_symbols)
2737 (check_possible_namespace_symbols_loop)
2738 (check_one_possible_namespace_symbol)
2739 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2740 (_initialize_cp_namespace): Ditto.
2741 * block.h: Declare allocate_block.
2742 * block.c (allocate_block): New.
2743 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2744 allocate_block.
2745 * symfile.h: Update declaration of add_psymbol_to_list.
2746 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2747 question.
2748 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2749 scan_partial_symbols_call.
2750 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2751 helper functions.
2752 (add_partial_symbol): If necessary, scan mangled names for names
2753 of namespaces.
2754 (add_partial_namespace): Add NAMESPACE argument; generate partial
2755 symbols associated to namespaces.
2756 (add_partial_enumeration): Add NAMESPACE argument.
2757 (new_symbol): Allow namespace syms.
2758 (read_namespace): Generate namespace syms.
2759 * objfiles.h: Add opaque declaration of struct symtab.
2760 (struct objfile): Add cp_namespace_symtab member.
2761 * objfiles.c (allocate_objfile): Set
2762 objfile->cp_namespace_symtab.
2763 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2764 dictionary_h, command_h.
2765
33a7c2fc
AC
27662003-09-11 Andrew Cagney <cagney@redhat.com>
2767
2768 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2769 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2770 near the function's end.
2771 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2772 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2773 regcache_raw_write_signed to set SP_REGNUM.
2774
63cd24fe
EZ
27752003-09-11 Elena Zannoni <ezannoni@redhat.com>
2776
2777 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2778 orig_addrs is set up properly.
2779
f27dd7fd
AC
27802003-09-11 Andrew Cagney <cagney@redhat.com>
2781
2782 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2783 * gdbarch.h, gdbarch.c: Re-generate.
2784 * infcall.c (call_function_by_hand): Update.
2785 * hppa-tdep.c (hppa_push_arguments): Update.
2786 * ada-lang.c (place_on_stack): Update.
2787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2788 * sparc-tdep.c (sparc_gdbarch_init): Update.
2789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2790 * hppa-tdep.c (hppa_gdbarch_init): Update.
2791 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2792 stack_align.
2793
f630a401
DJ
27942003-09-11 Daniel Jacobowitz <drow@mvista.com>
2795
2796 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2797 register do need a frame.
2798
0ddabb4c
AC
27992003-09-11 Andrew Cagney <cagney@redhat.com>
2800
2801 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2802 buildable since GDB 5.0.
2803 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2804 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2805 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2806 * irix4-nat.c: Delete file.
2807 * config/mips/irix4.mh: Delete file.
2808 * config/mips/irix3.mh: Delete file.
2809 * config/mips/irix3.mt: Delete file.
2810 * config/mips/tm-irix3.h: Delete file.
2811 * config/mips/nm-irix3.h: Delete file.
2812 * config/mips/xm-irix3.h: Delete file.
2813 * config/mips/nm-irix4.h: Delete file.
2814 * config/mips/xm-irix4.h: Delete file.
2815 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2816
fde2cceb
JB
28172003-09-10 J. Brobecker <brobecker@gnat.com>
2818
2819 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2820 * Makefile.in (hppa-tdep.o): Update dependencies.
2821
66f667f5
JW
28222003-09-10 James E Wilson <wilson@specifixinc.com>
2823
ef5fd69f
JW
2824 * MAINTAINERS: Change my e-mail address. Move to paper trail
2825 section.
66f667f5 2826
53e8aaea
KB
28272003-09-10 Kevin Buettner <kevinb@redhat.com>
2828
2829 * MAINTAINERS (frv): New ISA entry.
2830
dcc6aaff
KB
28312003-09-10 Kevin Buettner <kevinb@redhat.com>
2832
2833 * frv-tdep.c (dis-asm.h): Include.
2834 * Makefile.in (frv-tdep.o): Update dependencies.
2835
932644f0
JJ
28362003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2837
2838 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2839 Fix typo for high range of floating registers.
2840
91c24f0a
DC
28412003-09-09 David Carlton <carlton@kealia.com>
2842
2843 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2844 highpc initialization here out of scan_partial_symbols.
2845 (scan_partial_symbols): Restructure into a recursive version,
2846 calling add_partial_namespace and add_partial_enumeration when
2847 appropriate.
2848 (add_partial_namespace): New.
2849 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2850
c9263853
AC
28512003-09-09 Andrew Cagney <cagney@redhat.com>
2852
e56a0ecc
AC
2853 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2854 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2855 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2856 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2857
794a477a
AC
2858 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2859 (rs6000_push_dummy_call): Set the "TOC" register.
2860
c9263853
AC
2861 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2862 methods "max_register_raw_size", "max_register_virtual_size" or
2863 "register_virtual_size".
2864
afa7d0b2
ILT
28652003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2866
2867 * MAINTAINERS: Update my e-mail address.
2868
7a41266b
AC
28692003-09-09 Andrew Cagney <cagney@redhat.com>
2870
2871 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2872 (rs6000_push_dummy_call): Store the struct return address.
2873 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2874
77b2b6d4
AC
28752003-09-09 Andrew Cagney <cagney@redhat.com>
2876
2877 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2878 "ppc_sysv_abi_push_arguments".
2879 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2880 "ppc_sysv_abi_push_arguments".
2881 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2882 instead of "push_arguments".
2883 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2884
e8a7b686
AC
28852003-09-09 Andrew Cagney <cagney@redhat.com>
2886
2887 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2888 instead of CALL_DUMMY_ADDRESS.
2889
f86f5ca3
PH
28902003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2891
2892 * p-lang.c: Eliminate "register".
2893 * c-lang.c: Ditto.
2894 * expprint.c: Ditto.
2895 * f-lang.c: Ditto.
2896 * jv-lang.c: Ditto.
2897 * language.c: Ditto.
2898 * m2-lang.c: Ditto.
2899 * parse.c: Ditto.
2900 * scm-lang.c: Ditto.
2901 * objc-lang.c: Ditto.
2902
83ee270e
NC
29032003-09-09 Nick Clifton <nickc@redhat.com>
2904
2905 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2906
a89aa300
AC
29072003-09-04 Andrew Cagney <cagney@redhat.com>
2908
2909 * avr-tdep.c: Include "dis-asm.h".
2910 * cris-tdep.c: Include "dis-asm.h".
2911 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2912 instead of corresponding typedef.
2913 * h8300-tdep.c: Include "dis-asm.h".
2914 * ia64-tdep.c: Include "dis-asm.h".
2915 * i386-tdep.c: Include "dis-asm.h".
2916 (i386_print_insn): Use "struct disassemble_info" instead of
2917 corresponding typedef.
2918 * m68k-tdep.c: Include "dis-asm.h".
2919 * mcore-tdep.c: Include "dis-asm.h".
2920 * mips-tdep.c: Include "dis-asm.h".
2921 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2922 instead of corresponding typedef.
2923 * ns32k-tdep.c: Include "dis-asm.h".
2924 * s390-tdep.c: Include "dis-asm.h".
2925 * sparc-tdep.c: Include "dis-asm.h".
2926 * vax-tdep.c: Include "dis-asm.h".
2927 * v850-tdep.c: Include "dis-asm.h".
2928 * mn10300-tdep.c: Include "dis-asm.h".
2929 * rs6000-tdep.c: Include "dis-asm.h".
2930 * xstormy16-tdep.c: Include "dis-asm.h".
2931 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2932 print_insn_xstormy16.
2933 * Makefile.in (v850-tdep.o): Update dependencies.
2934 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2935 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2936 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2937 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2938 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2939 (gdbarch_h): Remove $(dis_asm_h).
2940 * disasm.c: Include "dis-asm.h".
2941 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2942 corresponding typedef.
2943 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2944 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2945 * gdbarch.sh: Do not include "dis-asm.h".
2946 (struct disassemble_info): Declare opaque.
2947 (TARGET_PRINT_INSN): Update declaration.
2948 * gdbarch.h, gdbarch.c: Re-generate.
2949
88a82a65
AC
29502003-09-08 Andrew Cagney <cagney@redhat.com>
2951
2952 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2953 CALL_DUMMY_ADDRESS, change to a predicate.
2954 * gdbarch.h, gdbarch.c: Re-generate.
2955 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2956 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2957 * infcall.c (call_function_by_hand): Ditto.
2958 * sparc-tdep.c (sparc_push_return_address): Ditto.
2959 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2960 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2961 CALL_DUMMY_ADDRESS with entry_point_address.
2962 * v850-tdep.c (v850_push_return_address): Ditto.
2963 * s390-tdep.c (s390_push_return_address): Ditto.
2964 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2965 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2966 * mcore-tdep.c (mcore_push_return_address): Ditto.
2967 * cris-tdep.c (cris_push_return_address): Ditto.
2968 * arm-tdep.c (arm_push_return_address): Ditto.
2969
3e2c4033
AC
29702003-09-08 Andrew Cagney <cagney@redhat.com>
2971
2972 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2973 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2974 and REG_UNMODIFIED to REG_SAME_VALUE.
2975 (execute_cfa_program): Update.
2976 (dwarf2_frame_cache): Update. Initialize table to
2977 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2978 location.
2979 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2980
39efb398
AC
29812003-09-08 Andrew Cagney <cagney@redhat.com>
2982
2983 * gnu-nat.c: Remove "inline" function attribute.
2984 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2985
f5cb5aca
KB
29862003-09-08 Kevin Buettner <kevinb@redhat.com>
2987
2988 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2989 target.
2990
1cb761c7
KB
29912003-09-08 Kevin Buettner <kevinb@redhat.com>
2992
2993 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2994 (frame_extra_info): Rename this struct to frv_unwind_cache.
2995 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2996 Add fields ``prev_sp'' and ``base''.
2997 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2998 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2999 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3000 Delete.
3001 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3002 Revise all callers. Fill in the unwind cache argument and make
3003 other adjustments to account for new frame mechanisms.
3004 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3005 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3006 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3007 (frv_frame_unwind, frv_frame_base): New structs.
3008 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3009 additional arguments expected by this method and adjust function
3010 body accordingly.
3011 (frv_gdbarch_init): Remove calls to the following functions:
3012 set_gdbarch_deprecated_init_frame_pc(),
3013 set_gdbarch_deprecated_saved_pc_after_call(),
3014 set_gdbarch_deprecated_frame_chain(),
3015 set_gdbarch_deprecated_frame_saved_pc(),
3016 set_gdbarch_deprecated_frame_init_saved_regs(),
3017 set_gdbarch_deprecated_push_arguments(),
3018 set_gdbarch_deprecated_push_return_address(),
3019 set_gdbarch_deprecated_pop_frame(),
3020 set_gdbarch_deprecated_call_dummy_words(),
3021 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3022 set_gdbarch_deprecated_init_extra_frame_info(),
3023 set_gdbarch_deprecated_dummy_write_sp(), and
3024 set_gdbarch_deprecated_pc_in_call_dummy().
3025 Add calls to the following functions:
3026 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3027 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3028 frame_base_set_default().
3029 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3030
68f6cf99
MK
30312003-09-09 Mark Kettenis <kettenis@gnu.org>
3032
3033 * dwarf2-frame.c (read_encoded_value): Add support for
3034 DW_EH_PE_aligned encoding.
3035
73b65bb0
DJ
30362003-09-08 Daniel Jacobowitz <drow@mvista.com>
3037
3038 * infrun.c (normal_stop): Don't print a message if the inferior
3039 has exited.
3040
7c8a5605
JB
30412003-09-08 Jim Blandy <jimb@redhat.com>
3042
3043 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3044 * dbxread.c: #include "gdb_assert.h".
3045 (read_dbx_symtab): If the objfile has no .data section, use the
3046 section index for the .bss section instead.
3047
7dd88986
DJ
30482003-09-08 Daniel Jacobowitz <drow@mvista.com>
3049
3050 * frame.c (deprecated_safe_get_selected_frame): New function.
3051 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3052 * findvar.c (read_var_value): Call it.
3053
55ff77ac
CV
30542003-09-08 Corinna Vinschen <vinschen@redhat.com>
3055
3056 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3057 (sh64-tdep.o): Add dependencies.
3058 * configure.tgt: Add FIXME to sh-*-linux*.
3059 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3060 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3061 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3062 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3063 * sh64-tdep.c: New file, containing all sh64 related code from
3064 sh-tdep.c.
3065 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3066 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3067 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3068 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3069 * config/sh/wince.mt (TDEPFILES): Ditto.
3070
bfb39158
DJ
30712003-09-07 Daniel Jacobowitz <drow@mvista.com>
3072
3073 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3074 (stop_wait_callback): Handle !lp->signalled also.
3075 (lin_lwp_has_pending, flush_callback): New functions.
3076 (lin_lwp_wait): Call flush_callback.
3077 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3078 (linux_proc_pending_signals): New function.
3079 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3080
9407de8e
DJ
30812003-09-07 Daniel Jacobowitz <drow@mvista.com>
3082
3083 From Nick Kelsey <nickk@ubicom.com>:
3084 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3085 when the stop PC is at the beginning of a function also.
3086
2ef47cd0
DJ
30872003-09-06 Daniel Jacobowitz <drow@mvista.com>
3088
3089 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3090 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3091
6f4492c8
MK
30922003-09-06 Mark Kettenis <kettenis@gnu.org>
3093
3094 * sol-thread.c: Include "gdb_string.h".
3095
d3420b2f
MK
30962003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3097
3098 * gcore.c: Reorder include files in alphabetical order. Include
3099 "gdb_assert.h". Various coding style fixes.
3100 (derive_stack_segment, derive_heap_segment): Replace check for
3101 non-null BOTTOM and TOP with gdb_assert.
3102 (derive_heap_segment): Replace check for successful creation of
3103 ZERO with gdb_assert.
3104 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3105
5220ea4c
AC
31062003-09-04 Andrew Cagney <cagney@redhat.com>
3107
3108 * thread-db.c (verbose_dlsym): New function.
3109 (thread_db_load): Use verbose_dlsym
3110 (thread_db_new_objfile): Print that libthread_db was loaded, and
3111 that thread debugging was enabled.
3112
6e8c2c06
AC
31132003-09-04 Andrew Cagney <cagney@redhat.com>
3114
3115 * configure.tgt: Add "mips64*-*-*" target. Delete
3116 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3117 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3118 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3119 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3120 mips*-sony-*, and mips64*-*-elf* targets.
3121 * config/mips/embedl.mt: Delete file.
3122 * config/mips/embedl64.mt: Delete file.
3123 * config/mips/mips.mt: Delete file.
3124 * config/mips/mips64.mt: Delete file.
3125 * config/mips/tm-embed.h: Delete file.
3126 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3127 * config/mips/embed64.mt: Delete out-of-date comment.
3128
3a3bc038
AC
31292003-09-04 Andrew Cagney <cagney@redhat.com>
3130
3131 * hppa-tdep.c (hppa_gdbarch_init): Set
3132 "have_nonsteppable_watchpoint".
3133 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3134 * mips-tdep.c (mips_dump_tdep): Do not print
3135 HAVE_NONSTEPPABLE_WATCHPOINT.
3136 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3137 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3138 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3139 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3140
a957e642
CV
31412003-09-04 Corinna Vinschen <vinschen@redhat.com>
3142
3143 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3144 unused code. Add comment.
3145
a6fbcf2f
CV
31462003-09-04 Corinna Vinschen <vinschen@redhat.com>
3147
3148 * breakpoint.c (watchpoint_check): Check for pc being in an
3149 epilogue if watchpoint frame couldn't be found.
3150
c14a44d5
AC
31512003-09-04 Andrew Cagney <cagney@redhat.com>
3152
3153 * Makefile.in: Re-generate all dependencies.
3154
f6c40618
AC
31552003-09-03 Andrew Cagney <cagney@redhat.com>
3156
3157 * arch-utils.h (legacy_print_insn): Delete declaration.
3158 * arch-utils.c (legacy_print_insn): Delete function.
3159 * disasm.c (deprecated_tm_print_insn_info): Delete.
3160 (_initialize_disasm): Delete function, contained code initializing
3161 deprecated_tm_print_insn_info.
3162 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3163 (deprecated_tm_print_insn_info): Delete.
3164 (TARGET_PRINT_INSN): Do not provide a default.
3165 * gdbarch.h, gdbarch.c: Re-generate.
3166
242e8be5
AC
31672003-09-03 Andrew Cagney <cagney@redhat.com>
3168
3169 * disasm.c (fprintf_disasm): New function.
3170 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3171 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3172 reverts 2003-08-14 change.
3173 (_initialize_disasm): Call "init_disassemble_info", instead of
3174 INIT_DISASSEMBLE_INFO_NO_ARCH.
3175
3ffc3dda
MS
31762003-09-03 Michael Snyder <msnyder@redhat.com>
3177
3178 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3179
52d16ba8
AC
31802003-09-03 Andrew Cagney <cagney@redhat.com>
3181
3182 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3183 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3184 * symfile.c (syms_from_objfile): Update.
3185 (reread_symbols): `Update
3186 * exec.c (exec_file_attach): Update.
3187 (exec_file_attach): Update.
3188 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3189 2003-08-29 change.
3190 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3191
eb5492fa
DJ
31922003-09-03 Daniel Jacobowitz <drow@mvista.com>
3193
3194 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3195 trad-frame.h.
3196 (arm_get_cache): Delete macro.
3197 (struct arm_prologue_cache): Update comments. Make saved_regs into
3198 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3199 to prev_sp.
3200 (thumb_scan_prologue): Update for cache changes. Don't call
3201 DEPRECATED_PC_IN_CALL_DUMMY.
3202 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3203 argument and use it in desperation search for our prologue. Do not
3204 search past the specified PC.
3205 (arm_make_prologue_cache): Simplify.
3206
3207 (arm_prologue_this_id, arm_prologue_prev_register)
3208 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3209 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3210 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3211 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3212 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3213
3214 (arm_frame_chain_valid, arm_find_callers_reg)
3215 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3216 (arm_pop_frame): Delete obsolete methods.
3217 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3218
3219 (arm_gdbarch_init): Update for new frame methods. Register prologue
3220 and sigtramp unwinders. Set the default frame base method.
3221
3222 * Makefile.in (arm-tdep.o): Update dependencies.
3223 * varobj.c (find_frame_addr_in_frame_chain): Call
3224 get_frame_base_address.
3225 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3226
24de872b
DJ
32272003-09-03 Daniel Jacobowitz <drow@mvista.com>
3228
3229 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3230 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3231 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3232 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3233 Take NEXT_FRAME and CACHE arguments. Call
3234 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3235 Set unwound_pc in CACHE instead of modifying the frame argument.
3236 Don't bother checking the frame type when looking for sigtramp
3237 frames.
3238 (arm_make_prologue_cache, arm_frame_chain)
3239 (arm_init_extra_frame_info): New functions.
3240
9b8d791a
DJ
32412003-09-03 Daniel Jacobowitz <drow@mvista.com>
3242
3243 * arm-tdep.c (arm_get_cache): Define.
3244 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3245 unwound_sp, unwound_pc, and saved_regs.
3246 (thumb_scan_prologue): Take a cache instead of the frame.
3247 (arm_scan_prologue): Likewise.
3248 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3249 instead of a temporary frame.
3250 (arm_init_extra_frame_info): Allocate and use a cache.
3251 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3252
7ee3275f
AC
32532003-09-03 Andrew Cagney <cagney@redhat.com>
3254
3255 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3256 * config/mips/wince.mt (TM_CLIBS): Ditto.
3257 * config/sh/wince.mt (TM_CLIBS): Ditto.
3258 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3259 * config/sparc/sp64.mt (CC): Delete.
3260
57b29be7
AC
32612003-09-03 Andrew Cagney <cagney@redhat.com>
3262
3263 * defs.h: Do not include "arch-utils.h".
3264 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3265 GDB_MULTI_ARCH_PURE.
3266 * configure.in (GDB_MULTI_ARCH): Do not define.
3267 * configure, config.in: Regenerate.
3268 * configure.tgt: Do not set variable "gdb_multi_arch".
3269 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3270 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3271 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3272 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3273 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3274 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3275 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3276 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3277 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3278 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3279 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3280 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3281 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3282 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3283 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3284 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3285 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3286 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3287
12e035e2
MC
32882003-08-30 Michael Chastain <mec@shout.net>
3289
3290 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3291 * config/m68k/nm-hp300hpux.h: Delete.
3292 * config/m68k/tm-hp300hpux.h: Delete.
3293 * config/m68k/xm-hp300hpux.h: Delete.
3294 * config/m68k/xm-hp300bsd.h: Delete.
3295 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3296 tm-hp300hpux.h, xm-hp300hpux.h.
3297 * somsolib.c: Remove comment about hp300 shared libraries.
3298
bda34dc2
MK
32992003-08-31 Mark Kettenis <kettenis@gnu.org>
3300
5bca7895
MK
3301 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3302 Only define PTRACE_GET_THREAD_AREA is not already defined.
3303 Various style fixes in code and comments and some additional
3304 spelling fixes in comments. Move after functions dealing with
3305 debug registers.
3306 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3307 Fix coding-style.
3308
bda34dc2
MK
3309 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3310 frame_unwind_register_unsigned instead of
3311 frame_unwind_unsigned_register.
3312
c890192f
MK
33132003-08-30 Mark Kettenis <kettenis@gnu.org>
3314
3315 * configure.in: Search for gethostbyname in libnsl.
3316 * configure: Regenerated.
3317
60fac5b8
MK
33182003-08-29 Mark Kettenis <kettenis@gnu.org>
3319
e294916c
MK
3320 * configure.in: Remove redundant AC_MSG_RESULT in check for
3321 uintptr_t in stdint.h.
3322 * configure: Regenerated.
3323
c40d267a
MK
3324 * amd64-nat.h (struct regcache): Add opaque declaration.
3325
60fac5b8
MK
3326 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3327 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3328 Change "register array" to "register cache" in comments.
3329 (x86_64_linux_gregset64_reg_offset): New variable.
3330 (GETREGS_SUPPLIES): Remove macro.
3331 (supply_gregset): Call amd64_supply_native_gregset instead of
3332 x86_64_linux_supply_gregset.
3333 (fill_gregset): Rename `regno' to `regnum'. Call
3334 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3335 (store_regs): Rename `regno' to `regnum'.
3336 (store_fpregs): Rename `regno' to `regnum'.
3337 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3338 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3339 Reorganize function a bit.
3340 (store_inferior_registers): Rename `regno' to `regnum'. Use
3341 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3342 Reorganize function a bit.
3343 (_initialize_x86_64_linux_nat): New function.
3344 * config/i386/x86-64linux.mh.
3345
546143b6
AC
33462003-08-29 Andrew Cagney <cagney@redhat.com>
3347
3348 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3349 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3350 (target_remove_watchpoint): Delete macro.
3351 (target_insert_watchpoint): Delete macro.
3352 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3353 (remote_mips_stopped_by_watchpoint): Delete declaration.
3354 (remote_mips_remove_watchpoint): Delete declaration.
3355 (remote_mips_set_watchpoint): Delete declaration.
3356 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3357 * remote-mips.c (_initialize_remote_mips): Set
3358 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3359 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3360 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3361 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3362 (mips_stopped_by_watchpoint): Rename
3363 remote_mips_stopped_by_watchpoint.
3364 (mips_can_hardware_watchpoint): Rename
3365 remote_mips_can_use_hardware_watchpoint, update function
3366 signature.
3367
7bace51b
MK
33682003-08-29 Mark Kettenis <kettenis@gnu.org>
3369
b0f5c6f2
MK
3370 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3371 USER_DS. We haven't given them a register number yet.
3372
2a6d284d
MK
3373 * amd64-nat.h: New file.
3374 * amd64-nat.c: New file.
3375 * amd64fbsd-nat.c: Include "amd64-nat.h".
3376 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3377 (amd64fbsd32_r_reg_offset): New variable.
3378 (supply_gregset): Simply call amd64_supply_native_gregset.
3379 (fill_gregset): Rename `regno' to `regnum'. Simply call
3380 amd64_collect_native_gregset.
3381 (fill_fpregset): Rename `regno' to `regnum'.
3382 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3383 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3384 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3385 `fpregset_t'. Call amd64_supply_native_gregset instead of
3386 supply_gregset. Call x86_64_supply_fxsave instead of
3387 supply_fpregset.
3388 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3389 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3390 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3391 `fpregset_t'. Call amd64_collect_native_gregset instead of
3392 fill_gregset. Call x86_64_collect_fxsave instead of
3393 fill_fpregset.
3394 (_initialize_am64fbsd_nat): Initialize
3395 amd64_native_gregset32_reg_offset and
3396 amd64_native_gregset64_reg_offset.
3397 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3398
a16d75cc
MK
3399 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3400 null pointer. Fix typo in comment.
3401
7bace51b
MK
3402 * regcache.c (supply_register): Reimplement to call
3403 regcache_raw_supply.
3404 (regcache_collect): Reimplement by calling regcache_raw_collect.
3405
9a661b68
MK
34062003-08-28 Mark Kettenis <kettenis@gnu.org>
3407
3408 * regcache.c (register_buffer): Consitify first argument.
3409 (regcache_raw_supply, regcache_raw_collect): New
3410 functions.
3411
e94cc8fa
DJ
34122003-08-28 Daniel Jacobowitz <drow@mvista.com>
3413
3414 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3415 by Nathan J. Williams.
3416
c64bd0ce
DJ
34172003-08-28 Daniel Jacobowitz <drow@mvista.com>
3418
3419 * lin-lwp.c (wait_lwp): New function, copied from
3420 stop_wait_callback. Clean up.
3421 (stop_wait_callback): Use wait_lwp.
3422
e5ab0dce
AC
34232003-08-28 Andrew Cagney <cagney@redhat.com>
3424
3425 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3426 flavour and disassembler options.
3427 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3428 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3429 deprecated_tm_print_insn_info.
a8f4cde1 3430
a788de9b
AC
34312003-08-27 Andrew Cagney <cagney@redhat.com>
3432
3433 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3434 Use target_read_memory.
3435 (s390_get_frame_info): Update. Do not reference
3436 deprecated_tm_print_insn_info.
3437 (s390_check_function_end, s390_is_sigreturn): Ditto.
3438
36482093
AC
34392003-08-27 Andrew Cagney <cagney@redhat.com>
3440
3441 * Makefile.in (cris-tdep.o): Update dependencies.
3442 * cris-tdep.c: Include "gdb_assert.h".
3443 (cris_gdbarch_init): Set print_insn.
3444 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3445 (cris_delayed_get_disassembler): Simplify, directly call the
3446 disassembler returned by cris_get_disassembler.
3447 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3448 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3449 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3450 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3451 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3452 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3453 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3454 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3455 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3456 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3457 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3458 (gdb_print_insn_sparc): Delete function.
3459 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3460 deprecated_tm_print_insn_info.
3461 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3462 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3463 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3465 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3466 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3467 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3468 (s390_gdbarch_init): Set print_insn.
3469
0285512f
AC
34702003-08-27 Andrew Cagney <cagney@redhat.com>
3471
3472 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3473 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3474 * infcall.c (call_function_by_hand): Convert the entry point
3475 address into a code address.
3476
cdcd5552
AC
34772003-08-27 Andrew Cagney <cagney@redhat.com>
3478
3479 * dsrec.c: Include "gdb_string.h".
3480 * Makefile.in (dsrec.o): Update dependencies.
3481
e85cddad
MC
34822003-08-27 Michael Chastain <mec@shout.net>
3483
3484 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3485
8bbfbb23
AC
34862003-08-27 Andrew Cagney <cagney@redhat.com>
3487
3488 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3489 (alpha_osf1_init_abi): Do not set call_dummy_address.
3490
ba058b66
DC
34912003-08-27 David Carlton <carlton@kealia.com>
3492
3493 From Randolph Chung <tausq@debian.org>:
3494 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3495 compiles with -Wformat-nonliteral -Werror.
3496
87f84c9d
JB
34972003-08-26 Jim Blandy <jimb@redhat.com>
3498
3499 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3500 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3501 bfd_lookup_symbol, since we only want symbols in code sections.
3502 (look_for_base): Pass zero as the SECT_FLAGS argument to
3503 bfd_lookup_symbol, since we're not concerned about which section
3504 the symbol is in.
3505
102d615a
JJ
35062003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3507
3508 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3509 we are frameless or the return address register is already known.
102d615a 3510
cc7ad3ea
AC
35112003-08-26 Andrew Cagney <cagney@redhat.com>
3512
3513 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3514 in size. Add comments.
3515
af8b88dd
JJ
35162003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3517
3518 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3519 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3520
e0a4f5a1
JM
35212003-08-26 Jason Merrill <jason@redhat.com>
3522
3523 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3524 case out of #ifdef MIPS block.
3525
4ae9ee8e
DJ
35262003-08-25 Daniel Jacobowitz <drow@mvista.com>
3527
3528 PR java/1322
3529 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3530 available before calling SECT_OFF_TEXT.
3c164570 3531 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3532
004d836a
JJ
35332003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3534
a8f4cde1 3535 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3536 bof, and nat0-nat127 as pseudo-registers.
3537 (ia64_frame_cache): New struct used to cache frame info.
3538 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3539 register grouping so registers without names are still saved and
004d836a 3540 restored.
a8f4cde1 3541 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3542 pseudo values.
3543 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3544 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3545 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3546 ia64_frame_cache.
3547 (examine_prologue): Change prototype to add next_frame pointer.
3548 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3549 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3550 alloc insn and if equal, mark as not frameless. At end of routine,
3551 if not frameless, calculate registers for the previous frame and store
3552 in the cache, if a cache is provided.
3553 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3554 and pass 0 for next_frame.
3555 (ia64_store_return_value): Change to use convert_typed_floating()
3556 instead of calling ia64_convert_to_raw().
3557 (ia64_extract_return_value): Change to use convert_typed_floating()
3558 instead of calling ia64_convert_to_virtual().
3559 (ia64_frame_cache): New routine to support new frame model.
3560 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3561 (ia64_frame_sniffer): Ditto.
3562 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3563 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3564 (ia64_sigtramp_frame_prev_register): Ditto.
3565 (ia64_sigtramp_frame_sniffer): Ditto.
3566 (ia64_frame_base_address): Ditto.
3567 (ia64_extract_struct_value_address): Change to issue error message.
3568 (ia64_frame_align): New routine to align sp.
3569 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3570 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3571 ia64_push_dummy_call().
3572 (ia64_push_return_address): Ditto.
3573 (ia64_unwind_dummy_id): New function.
3574 (ia64_unwind_pc): Ditto.
3575 (ia64_convert_register_p): Ditto.
3576 (ia64_register_to_value): Ditto.
3577 (ia64_value_to_register): Ditto.
3578 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3579 (ia64_register_byte, ia64_register_raw_size): Ditto.
3580 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3581 (ia64_saved_pc_after_call): Ditto.
3582 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3583 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3584 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3585 (ia64_register_convert_to_raw): Ditto.
3586 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3587 (ia64_init_extra_frame_info): Ditto.
3588 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3589 (ia64_gdbarch_init): Remove registering of deprecated functions that
3590 are no longer used. Add registration of new gdbarch functions.
3591 Remove registering deprecated_write_sp. Replace
3592 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3593 Delete set_gdbarch_deprecated_register_convertible(),
3594 set_gdbarch_deprecated_register_convert_to_virtual(), and
3595 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3596 set_gdbarch_deprecated_register_size(),
3597 set_gdbarch_deprecated_register_bytes(),
3598 set_gdbarch_pcregnum(),
3599 set_gdbarch_deprecated_register_byte(),
3600 set_gdbarch_deprecated_register_raw_size(),
3601 set_gdbarch_deprecated_max_register_raw_size(),
3602 set_gdbarch_deprecated_register_virtual_size(),
3603 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3604 Replace set_gdbarch_deprecated_extract_return_value() with
3605 set_gdbarch_extract_return_value(). Remove calls to:
3606 set_gdbarch_deprecated_saved_pc_after_call();
3607 set_gdbarch_deprecated_frame_chain(),
3608 set_gdbarch_deprecated_frame_saved_pc(),
3609 set_gdbarch_deprecated_frame_init_saved_regs(),
3610 set_gdbarch_deprecated_get_saved_register(),
3611 set_gdbarch_deprecated_call_dummy_words(),
3612 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3613 set_gdbarch_deprecated_init_extra_frame_info(),
3614 set_gdbarch_deprecated_frame_args_address(),
3615 set_gdbarch_deprecated_frame_locals_address(),
3616 and set_gdbarch_deprecated_dummy_write_sp().
3617 Add set_gdbarch_convert_register_p(),
3618 set_gdbarch_register_to_value(),
3619 set_gdbarch_value_to_register(),
3620 set_gdbarch_push_dummy_call(),
3621 set_gdbarch_frame_align(),
3622 set_gdbarch_unwind_dummy_id(),
3623 set_gdbarch_unwind_pc(),
3624 frame_unwind_append_sniffer(),
3625 frame_unwind_append_sniffer(),
3626 and frame_base_set_default().
3627
aede7613
CD
36282003-08-25 Chris Demetriou <cgd@broadcom.com>
3629
3630 * configure.tgt: Document need for special "mipsisa64" handling.
3631 (mipsisa64*-*-linux64): Handle as target linux64.
3632 (mipsisa64*-*-*): Handle as target embed64.
3633
43c3a82e
MC
36342003-08-18 Michael Chastain <mec@shout.net>
3635
3636 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3637 objfile bug.
3638
6564f77d
MK
36392003-08-24 Mark Kettenis <kettenis@gnu.org>
3640
2de139ba
MK
3641 * i387-tdep.h: Update copyright date.
3642 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3643
6564f77d
MK
3644 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3645 CFLAGS games to reflect reality.
3646
42cf1509
AC
36472003-08-24 Andrew Cagney <cagney@redhat.com>
3648
3649 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3650 GDB_MULTI_ARCH is always non-zero.
3651 * osabi.c (_initialize_gdb_osabi): Ditto.
3652 (gdbarch_init_osabi): Ditto.
3653 * sparc-tdep.c: Ditto for #if code.
3654
0485f6ad
MK
36552003-08-23 Mark Kettenis <kettenis@gnu.org>
3656
3657 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3658 Update comments.
3659 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3660 comments.
3661 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3662 x86_64_supply_fxsave.
3663 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3664 x86_64_supply_fxsave.
3665 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3666 x86_64_supply_fxsave.
3667
c7716133
AJ
36682003-08-23 Andreas Jaeger <aj@suse.de>
3669
3670 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3671 i387_supply_fxsave.
3672
ed504bdf
MK
36732003-08-23 Mark Kettenis <kettenis@gnu.org>
3674
3675 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3676 i387_supply_register.
3677 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3678 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3679 i387_supply_fsave.
3680 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3681 i387_supply_fxsave.
3682 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3683 i387_supply_fsave.
3684 * i386bsd-nat.c (supply_fpregset): Adjust call to
3685 i387_supply_fsave.
3686 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3687 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3688 supply_fpregset.
3689 (store_inferior_registers): Remove extraneous whitespace. Call
3690 i387_fill_fsave instead of fill_fpregset.
3691 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3692 (supply_fpregset): Likewise.
3693 * i386v4-nat.c (supply_fpregset): Adjust call to
3694 i387_supply_fsave.
3695 * i386-interix-nat.c (supply_fpregset): Adjust call to
3696 i387_supply_fsave.
3697 * i386-linux-nat.c (supply_fpregset): Adjust call to
3698 i387_supply_fsave.
3699 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3700 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3701 i387supply_fsave and i387_supply_fxsave.
3702 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3703 Incorporate code from `i387_supply_register.
3704 (i387_supply_register): Remove.
3705 (i387_supply_fxsave): Add `regnum' argument.
3706 Update comments.
3707 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3708 prototype.
3709 (i387_supply_register): remove prototype.
3710 Update comments.
a8f4cde1 3711
4be5d520
MC
37122003-08-22 Michael Chastain <mec@shout.net>
3713
3714 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3715 Add lines for files in gdb/testsuite/gdb.cp/* that are
3716 still not 8.3 unique.
3717
7ed85d26
DJ
37182003-08-22 Daniel Jacobowitz <drow@mvista.com>
3719
3720 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3721 TYPE_VPTR_FIELDNO is valid.
3722
eb0d3137
MK
37232003-08-19 Mark Kettenis <kettenis@gnu.org>
3724
3725 * utils.c (set_width_command): Remove prototypes.
3726 (set_screen_size): New prototype.
3727 (init_page_info): Simplify by fetching the screen size from
3728 Readline. Call set_screen_size.
3729 (set_screen_size): New function.
3730 (set_width): Add missing whitespace in comment.
3731 (set_width_command): Call set_screen_size.
3732 (set_height_command): New function.
3733 (initialize_utils): Fix formatting. Make "set height" command
3734 call set_height_command. Remove redundant code that turns off
3735 pagination if output isn't a terminal. Remove redundant call to
3736 set_width_command.
a8f4cde1 3737
7e6d0ac8
MK
37382003-08-22 Mark Kettenis <kettenis@gnu.org>
3739
3567a8ea
MK
3740 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3741 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3742 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3743 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3744 `case' keyword.
3745 (sparc64_register_info): Give the reister with number
3746 SPARC64_STATE_REGNUM a name.
3747 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3748 %asi and %ccr.
3749 (sparc64_push_dummy_call): Take BIAS into account when checking
3750 stcak alignment.
3751 (sparc_software_single_step): Remove assertions that check whether
3752 NPC and NNPC were zero.
3753 (sparc_supply_rwindow): Make public. Merge functionality with
3754 sparc64_supply_rwindow.
3755 (sparc_fill_rwindow): Make public. Merge functionality with
3756 sparc64_fill_rwindow.
3757 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3758 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3759 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3760 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3761 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3762
7e6d0ac8
MK
3763 * reggroups.c: Add whitespace after declarations of local
3764 variables in functions.
3765
72e5f484
MC
37662003-08-21 Michael Chastain <mec@shout.net>
3767
3768 * gdbtypes.h: Change array bound type from an int to enum.
3769
435ac228
AC
37702003-08-21 Andrew Cagney <cagney@redhat.com>
3771
3772 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3773 * config/sparc/tm-sparc.h: Ditto.
3774 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3775 unconditionally.
3776 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3777
0d0e1a63
MK
37782003-07-13 Mark Kettenis <kettenis@gnu.org>
3779
3780 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3781 (register_objfile_data, set_objfile_data, objfile_data): New
3782 prototypes.
3783 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3784 prototypes.
3785 (allocate_objfile): Call objfile_alloc_data.
3786 (free_objfile): Call objfile_free_data.
3787 (struct objfile_data): New.
3788 (struct objfile_data_registration): New.
3789 (struct objfile_data_registry): New.
3790 (objfile_data_registry): New variable.
3791 (register_objfile_data): New function.
3792 (objfile_alloc_data, objfile_free_data): New functions.
3793 (set_objfile_data, objfile_data): New functions.
3794 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3795 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3796 (_initialize_dwarf2_frame): New function and prototype.
3797
d90cf509
AC
37982003-08-21 Andrew Cagney <cagney@redhat.com>
3799
3800 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3801 a specific architecture.
3802 * arch-utils.h (set_architecture_from_arch_mach): Delete
3803 declaration.
3804 (target_architecture_hook): Delete declaration.
3805 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3806 (default_float_format): Assume GDB_MULTI_ARCH.
3807 (default_double_format): Assume GDB_MULTI_ARCH.
3808 (set_endian_from_file): Delete function.
3809 (arch_ok): Delete function.
3810 (set_arch): Delete function.
3811 (set_architecture_from_arch_mach): Delete function.
3812 (set_architecture_from_file): Delete function.
3813 (set_architecture): Assume GDB_MULTI_ARCH.
3814 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3815
8b39fe56
MK
38162003-08-21 Mark Kettenis <kettenis@gnu.org>
3817
3818 Rewrite FreeBSD/sparc64 native configuration.
3819 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3820 * sparc64fbsd-nat.c: New file.
3821 * sparc64fbsd-tdep.c: New file.
3822 * sparc64-tdep.c sparc64-tdep.h: New files.
3823 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3824 sparc64fbsd-tdep.o): New dependencies.
3825 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3826 and sparc64fbsd-tdep.c.
3827 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3828 * config/sparc/fbsd.mh: Remove copyright notice.
3829 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3830 sparcbsd-nat.o.
3831 * config/sparc/fbsd.mt: Remove copyright notice.
3832 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3833 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3834 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3835 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3836 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3837 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3838 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3839 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3840 "sparc/tm-sp64.h".
3841 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3842 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3843
a7f19c79
MC
38442003-08-21 Michael Chastain <mec@shout.net>
3845
3846 * symtab.h: Add doco on the space critical structures and
3847 some measurements of space usage.
3848
da08ea5b
MS
38492003-08-21 Michael Snyder <msnyder@redhat.com>
3850
3851 * tracepoint.c (trace_dump_command): Trace break address
3852 is subject to DECR_PC_AFTER_BREAK.
3853 (set_traceframe_context): Make "trace_line" an int.
3854 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3855
6df2bf50
MS
38562003-08-20 Michael Snyder <msnyder@redhat.com>
3857
3858 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3859 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3860 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3861 argument passing.
a8f4cde1 3862 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3863 functions, replace sh_push_dummy_call.
3864 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3865
0955bbf0
MC
38662003-08-20 Michael Chastain <mec@shout.net>
3867
3868 * gdbtypes.h (struct main_type): Rearrange to save space.
3869
260a4188
MS
38702003-08-20 Michael Snyder <msnyder@redhat.com>
3871
3872 * trad-frame.c: Comment typo fix.
3873
8baa6f92
KB
38742003-08-20 Michael Snyder <msnyder@redhat.com>
3875 Kevin Buettner <kevinb@redhat.com>
3876
3877 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3878 (frv_frame_init_saved_regs): Add declaration.
3879 (frame_extra_info): Add new field ``saved_regs''.
3880 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3881 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3882 Update frame related code.
3883 (frv_extract_struct_value_address): Adjust formatting.
3884 * Makefile.in (frv-tdep.o): Update dependencies.
3885 * config/frv/tm-frv.h (target_insert_watchpoint)
3886 (target_remove_watchpoint, target_insert_hw_breakpoint)
3887 (target_remove_hw_breakpoint): Delete these macros.
3888 (remote_insert_watchpoint, remote_remove_watchpoint)
3889 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3890 these declarations.
3891
87193939
MC
38922003-08-20 Michael Chastain <mec@shout.net>
3893
3894 * defs.h (ENUM_BITFIELD): New macro.
3895 * symtab.h (ENUM_BITFIELD): Use it.
3896 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3897
062103ba
SA
38982003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3899
3900 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3901
8b148df9
AC
39022003-08-18 Andrew Cagney <cagney@redhat.com>
3903
3904 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3905 * gdbarch.h, gdbarch.c: Re-generate.
3906 * infcall.c (call_function_by_hand): Adjust the SP by
3907 frame_red_zone_size before allocating any stack space.
3908 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3909 * x86-64-tdep.c (x86_64_frame_align): New function.
3910 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3911
3912 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3913 Remove code adjusting SP so that it skips over the Red Zone.
3914
954a4db8
MK
39152003-08-18 Mark Kettenis <kettenis@gnu.org>
3916
3917 * NEWS (New native configurations): Mention FreeBSD/amd64.
3918
1a241548
AC
39192003-08-18 Andrew Cagney <cagney@redhat.com>
3920
3921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3922 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3923 "m68k_frame_p".
3924 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3925
f82b2acd
MK
39262003-08-18 Mark Kettenis <kettenis@gnu.org>
3927
3928 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3929
4056d258
ML
39302003-08-18 Michal Ludvig <mludvig@suse.cz>
3931
3932 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3933 Define.
3934 * i386-linux-nat.c: Include "linux-nat.h".
3935 (child_post_startup_inferior): New function.
a8f4cde1 3936
99ab4326
MK
39372003-08-18 Mark Kettenis <kettenis@gnu.org>
3938
3939 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3940 at the start of a frameless function. This probably fixes PR
3941 backtrace/1338.
3942
c8d5f0d6
MC
39432003-08-17 Michael Chastain <mec@shout.net>
3944
3945 * symfile.c (find_sym_fns): Remove special case for apollo target.
3946
9016a515
DJ
39472003-08-17 Daniel Jacobowitz <drow@mvista.com>
3948
3949 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3950 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3951 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3952 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3953 (linux_supports_tracevforkdone): New function.
3954 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3955 TRACEVFORKDONE.
3956 (child_follow_fork): Handle vfork.
3957 (linux_handle_extended_wait): Likewise. Also handle exec.
3958 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3959 * NEWS: Mention fork tracing.
3960
c538c11c
DJ
39612003-08-17 Daniel Jacobowitz <drow@mvista.com>
3962
3963 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3964
4de4c07c
DJ
39652003-08-17 Daniel Jacobowitz <drow@mvista.com>
3966
3967 * Makefile.in (i386-linux-nat.o): Update dependencies.
3968 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3969 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3970 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3971 * i386-linux-nat.c: Include "linux-nat.h".
3972 (child_post_startup_inferior): New function.
3973 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3974 * infptrace.c (kill_inferior): Wrap in #ifdef.
3975 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3976 attaching to each LWP.
3977 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3978 (init_lin_lwp_ops): Fill in some more operations.
3979 * linux-nat.h (linux_enable_event_reporting)
3980 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3981 prototypes.
3982 * linux-nat.c (linux_enable_event_reporting): New function.
3983 (child_post_attach, linux_child_post_startup_inferior)
3984 (child_post_startup_inferior, child_follow_fork)
3985 (linux_handle_extended_wait, kill_inferior): New functions.
3986
7996bcec
AC
39872003-08-16 Andrew Cagney <cagney@redhat.com>
3988
3989 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3990 * gdbarch.h, gdbarch.c: Re-generate.
3991
3d48a7a0
MK
39922003-08-16 Mark Kettenis <kettenis@gnu.org>
3993
3994 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3995
7989c619
AC
39962003-08-16 Andrew Cagney <cagney@redhat.com>
3997
3998 * NEWS: Mention that "set prompt-escape-char" was deleted.
3999 * top.c (get_prompt_1): Delete function.
4000 (gdb_prompt_escape):
4001 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4002 prompt-escape-char" command.
4003 (MAX_PROMPT_SIZE): Delete macro.
4004 (get_prompt): Simplify, do not call get_prompt_1.
4005
07978cd8
AC
40062003-08-16 Andrew Cagney <cagney@redhat.com>
4007
4008 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4009 -Werror. -Wformat-nonliteral problems.
4010
3ff7cf9e
JB
40112003-08-15 J. Brobecker <brobecker@gnat.com>
4012
4013 Further multiarching work mostly for hppa64-*-hpux11:
4014 * hppa-tdep.h: New file.
4015 * hppa-tdep.c: #include hppa-tdep.c.
4016 (hppa32_num_regs): Renamed from hppa_num_regs.
4017 (hppa64_num_regs): New constant.
4018 (hppa64_call_dummy_breakpoint_offset): New constant.
4019 (hppa32_call_dummy_length): New constant.
4020 (hppa64_call_dummy_length): New constant.
4021 (hppa32_stack_align): Make name 32bit explicit.
4022 (hppa32_register_virtual_type): Likewise.
4023 (hppa32_extract_return_value): Likewise.
4024 (hppa32_use_struct_convention): Likewise.
4025 (hppa32_store_return_value): Likewise.
4026 (hppa64_register_virtual_type): New function.
4027 (hppa64_extract_return_value): New function.
4028 (hppa64_use_struct_convention): New function.
4029 (hppa64_store_return_value): New function.
4030 (hppa_frame_locals_address): Remove declaration, function does
4031 not exist anymore.
4032 (hppa_register_byte): Add support for PA64 ABI.
4033 (hppa_gdbarch_init): Add support for PA64 ABI.
4034 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4035 Make name 32bit explicit.
4036 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4037 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4038 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4039 (hppa64_hpux_frame_base_before_sigtramp): New function.
4040 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4041 * config/pa/tm-hppa64.h: Remove macros that are no longer
4042 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4043 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4044 * config/pa/tm-hppah.h: Update function calls in macros
4045 following the function renaming in hppa-hpux-tdep.c.
4046 * Makefile.in (hppa_tdep_h): New variable.
4047 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4048
5d05ca6d
MS
40492003-08-14 Michael Snyder <msnyder@redhat.com>
4050
4051 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4052
37ba2569
JB
40532003-08-13 J. Brobecker <brobecker@gnat.com>
4054
4055 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4056 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4057 routine.
4058
aed7f26a
MS
40592003-08-13 Michael Snyder <msnyder@redhat.com>
4060
4061 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4062 (frv_saved_pc_after_call): Use deprecated ftype.
4063 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4064 (frv_remote_translate_xfer_address): Remove.
4065 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4066
752d4ac1
JB
40672003-08-13 J. Brobecker <brobecker@gnat.com>
4068
4069 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4070 initialization after the common gdbarch initialization, not before.
4071
1426ac1d
JB
40722003-08-13 J. Brobecker <brobecker@gnat.com>
4073
4074 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4075 (ADDR_BITS_REMOVE): Remove, redundant.
4076
b6fbdd1d
JB
40772003-08-13 J. Brobecker <brobecker@gnat.com>
4078
4079 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4080 gdbarch method to clear the 2 low bits of text addresses.
4081
44160db3
AC
40822003-08-12 Andrew Cagney <cagney@redhat.com>
4083
4084 * Makefile.in (dsrec.o): Update dependencies.
4085 * dsrec.c: Include "gdb_assert.h".
4086 (make_srec): Use snprintf instead of sprintf, use a literal format
4087 string.
4088
bcf7d3ca
AC
40892003-08-12 Andrew Cagney <cagney@redhat.com>
4090
4091 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4092 FRAME_OBSTACK_ZALLOC.
4093
49ed40de
KB
40942003-08-12 Kevin Buettner <kevinb@redhat.com>
4095
4096 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4097 SSE registers.
4098
b246147c
MK
40992003-08-10 Mark Kettenis <kettenis@gnu.org>
4100
4101 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4102 amd64fbsd_sc_reg_offset): Add extern declarations.
4103 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4104 declarations.
4105
d95fdc0d
BE
41062003-08-11 Ben Elliston <bje@wasabisystems.com>
4107
4108 * MAINTAINERS (write after approval): Update my mail address.
4109
cf6a0e73
AC
41102003-08-10 Andrew Cagney <cagney@redhat.com>
4111
4112 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4113
f837910f
MK
41142003-08-10 Mark Kettenis <kettenis@gnu.org>
4115
e2dbbd2d
MK
4116 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4117 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4118 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4119 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4120 i386bsd_sc_reg_offset): Add extern declarations.
4121 * i386obsd-nat.c: Include "i386-tdep.h"
4122 (_initialize_i386obsd_nat): Remove extern declarations.
4123 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4124 declarations.
4125 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4126 declarations.
4127
f837910f
MK
4128 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4129 instead of frame_read_register.
4130 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4131 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4132 SP_REGNUM.
4133 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4134 instead of frame_unwind_unsigned_register. Use
4135 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4136 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4137 instead of read_register. Use builtin_type_void_data_ptr instead
4138 of builtin_type_void_func_ptr when extracting the address of the
4139 jmp_buf.
4140 (i386_extract_return_value, i386_store_return_value,
4141 i386_pseudo_register_read, i386_pseudo_register_write): Use
4142 register_size instead REGISTER_RAW_SIZE.
4143
edcf254d
AC
41442003-08-10 Andrew Cagney <cagney@redhat.com>
4145
4146 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4147 sprintf. Make "name" constant.
4148
26604a34
MK
41492003-08-10 Mark Kettenis <kettenis@gnu.org>
4150
192285c6
MK
4151 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4152 instead of frame_read_register.
f837910f
MK
4153 (i387_print_float_info): Use get_frame_register and
4154 get_frame_register_unsigned instead of frame_register_read.
192285c6 4155
f0925262
MK
4156 * i386fbsd-nat.c: Include "i386-tdep.h".
4157 (child_resume): Make `eflags' an ULONGEST. Use
4158 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4159 instead of register_read and register_write.
4160
a144416f
MK
4161 * i386bsd-nat.c (fetch_inferior_registers,
4162 store_inferior_registers): Don't use && at the end of a line.
4163 (_initialize_i386bsd_nat): Fix typo.
4164
fec74868
MK
4165 * frame.c (_initialize_frame): Add missing backslash.
4166
87232496
MK
4167 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4168 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4169 and supply_register instead of manipulating the register buffer
4170 directly.
4171
c9b9de0b
MK
4172 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4173 * config/i386/nm-i386sol2.h
4174 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4175
26604a34
MK
4176 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4177 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4178 instructions that GCC likes to mingle into the prologue. Fixes
4179 gdb/1253 and gdb/1255.
4180
25d29d70
AC
41812003-08-09 Andrew Cagney <cagney@redhat.com>
4182
4183 Fix GDB PR cli/926.
4184 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4185 * command.h (add_setshow_uinteger_cmd): Declare.
4186 * frame.c (set_backtrace_cmd): New function.
4187 (show_backtrace_cmd): New function.
4188 * frame.c (_initialize_frame): Replace "set/show
4189 backtrace-below-main" with "set/show backtrace past-main". Add
4190 command "set/show backtrace limit".
4191 (backtrace_past_main): Rename "backtrace_below_main".
4192 (backtrace_limit): New variable.
4193 (get_prev_frame): Update. Check the backtrace_limit.
4194
9ebf4acf
AC
41952003-08-09 Andrew Cagney <cagney@redhat.com>
4196
4197 * defs.h (xstrprintf): Declare.
4198 * utils.c (xstrprintf): New function.
4199 * breakpoint.c (insert_breakpoints): Replace sprintf and
4200 non-literal format strings, with xstrprintf and cleanups.
4201 (delete_breakpoint,breakpoint_re_set): Ditto.
4202 (commands_command, insert_breakpoints): Ditto.
4203 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4204 (break_at_finish_command_1): Ditto.
4205
3771659b
AC
42062003-08-09 Andrew Cagney <cagney@redhat.com>
4207
4208 * MAINTAINERS (language support): List Adam Fedor as Objective C
4209 maintainer.
4210
b4263afa
JB
42112003-08-08 J. Brobecker <brobecker@gnat.com>
4212
4213 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4214 are now multiarched.
4215
d84defb1
JB
42162003-08-08 J. Brobecker <brobecker@gnat.com>
4217
4218 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4219 longer necessary now that hppa64 is partially multiarch'ed.
4220
f786f615
AC
42212003-08-08 Andrew Cagney <cagney@redhat.com>
4222
4223 * interps.c (interp_set): Check for a NULL "old_interp".
4224
c938e9b0
L
42252003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4226
4227 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4228 (install-only): Support DESTDIR.
4229 (uninstall): Likewise.
4230 (install-gdbtk): Likewise.
4231
9a146a11
EZ
42322003-08-08 Elena Zannoni <ezannoni@redhat.com>
4233
4234 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4235 contains something meaningful at all times.
4236
4237Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4238
62599e99 4239 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4240
56296155
BC
4241Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4242
62599e99 4243 * MAINTAINERS (write after approval): Added self.
56296155 4244
9710e734
AC
42452003-08-07 Andrew Cagney <cagney@redhat.com>
4246
4247 * inferior.h (AT_SYMBOL): Define.
4248 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4249 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4250 * mips-tdep.c (mips_call_dummy_address): Delete function.
4251 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4252 set call_dummy_address.
4253
98b3ab73
AC
42542003-08-07 Andrew Cagney <cagney@redhat.com>
4255
4256 * language.c (op_error): Delete function.
4257 (binop_type_check): Delete function.
4258 * language.h (type_op_error, range_op_error): Delete macros.
4259 (op_error): Delete declaration.
4260
2fcf52f0
AC
42612003-08-07 Andrew Cagney <cagney@redhat.com>
4262
4263 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4264
abd4220e 42652003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4266
abd4220e 4267 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4268 (x86_64_push_arguments): Skip the red zone.
abd4220e 4269
9dd5f34f
AC
42702003-08-05 Andrew Cagney <cagney@redhat.com>
4271
4272 * reggroups.c (reggroup_next): Check for the final entry.
4273
e5e78edc
AC
42742003-08-04 Andrew Cagney <cagney@redhat.com>
4275
ab4e3d93
AC
4276 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4277 * cli/cli-script.c (define_command): Call query directly, instead
4278 of passing it a buffer.
4279 * ocd.c (ocd_error): Pass error a constant format string.
4280 * remote-mips.c (mips_error): Use fputs_filtered.
4281
1062ca82
AC
4282 * solib-svr4.c (_initialize_svr4_solib): Update
4283 register_gdbarch_data call.
4284 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4285
fcc1c85c
AC
4286 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4287 (register_gdbarch_data): Delete "free" parameter. Update
4288 comments.
4289 * gdbarch.h, gdbarch.c: Re-generate.
4290 * reggroups.c (_initialize_reggroup): Update.
4291 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4292 * frame-base.c (_initialize_frame_base): Update.
4293 * frame-unwind.c (_initialize_frame_unwind): Update.
4294 * user-regs.c (_initialize_user_regs): Update.
4295 * remote.c (_initialize_remote): Update.
4296 * regcache.c (_initialize_regcache): Update.
4297
116f06ea
AC
4298 * regcache.c (xfree_regcache_descr): Delete function.
4299 (_initialize_regcache): Update call to register_gdbarch_data.
4300 (init_regcache_descr, init_legacy_regcache_descr): Use
4301 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4302
e5e78edc
AC
4303 * remote.c (free_remote_state): Delete function.
4304 (_initialize_remote): Update register_gdbarch_data.
4305 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4306 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4307
6c7d17ba
AC
43082003-08-04 Andrew Cagney <cagney@redhat.com>
4309
4310 * reggroups.c (struct reggroup_el): Define.
4311 (struct reggroups): Delete field "nr_group". Replace array
4312 "group" with a "first" to "last" linked list.
4313 (reggroups_init): Update. Allocate using gdbarch's obstack.
4314 (reggroups_free): Delete function.
4315 (add_group): Update. Add "el" parameter.
4316 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4317 (default_groups): Update.
4318 (reggroup_next): Replace reggroups.
4319 (reggroups_dump): Update.
4320 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4321 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4322 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4323
89b7795b
DJ
43242003-08-04 Daniel Jacobowitz <drow@mvista.com>
4325
4326 * Makefile.in (tui-interp.o): Update dependencies.
4327
306d9ac5
DC
43282003-08-04 David Carlton <carlton@kealia.com>
4329
4330 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4331 to internal_error call.
4332 * source.c (forward_search_command): Add "%s" format argument.
4333 (reverse_search_command): Ditto.
4334 * top.c (quit_confirm): Ditto.
4335 * cli/cli-setshow.c (do_setshow_command): Ditto.
4336 * cp-valprint.c (cp_print_class_method): Replace
4337 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4338 (cp_print_class_member): Ditto.
4339 * event-top.c (command_line_handler): Ditto.
4340 * linux-proc.c (linux_info_proc_cmd): Ditto.
4341 * p-typeprint.c (pascal_type_print_base): Ditto.
4342 * p-valprint.c (pascal_object_print_class_method): Ditto.
4343 (pascal_object_print_class_member): Ditto.
4344 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4345 * remote.c (remote_cisco_section_offsets): Ditto.
4346 * top.c (command_line_input): Ditto.
4347 * utils.c (vwarning,error_stream,quit): Ditto.
4348 * valprint.c (print_floating,print_binary_chars)
4349 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4350
57bfe177
AC
43512003-08-04 Andrew Cagney <cagney@redhat.com>
4352
4353 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4354
e546b999
AC
43552003-08-02 Andrew Cagney <cagney@redhat.com>
4356
4357 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4358 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4359 amd64fbsd-nat.c.
4360
91092ee5
AC
43612003-08-02 Andrew Cagney <cagney@redhat.com>
4362
4363 * Makefile.in: Update all dependencies and definitions.
4364
889f28e2
AF
43652003-08-02 Adam Fedor <fedor@gnu.org>
4366
4367 * linespec.c (is_objc_method_format): New function
4368 (decode_line_1, locate_first_half): Use it.
4369 Fixes PR objc/1298
4370
880bc914
AC
43712003-08-01 Andrew Cagney <cagney@redhat.com>
4372
4373 * NEWS: Mention that m32r is multi-arch.
4374 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4375 * configure.tgt: Recognize m32r-*-*.
4376 * config/m32r/tm-m32r.h: Delete file.
4377 * config/m32r/m32r.mt: New file.
a8f4cde1 4378 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4379 gethostname succeeds, in order to avoid a compilation
4380 warning.
4381 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4382 compiler warning.
4383
19f59343
MS
43842003-08-01 Michael Snyder <msnyder@redhat.com>
4385
4386 * sh-tdep.c (sh_frame_align): New gdbarch method.
4387 (sh_gdbarch_init): Set up frame_align method.
4388
4e7d7511
MS
43892003-07-31 Michael Snyder <msnyder@redhat.com>
4390
4391 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4392 which is already covered by the new frames infrastructure.
4393
63022984
AC
43942003-07-31 Andrew Cagney <cagney@redhat.com>
4395
4396 * user-regs.c (struct user_reg): Add "next" link.
4397 (struct user_regs): Replace "user" with "first" and "last" links.
4398 (append_user_reg): Add pre-allocated "reg" parameter.
4399 (builtin_user_regs): Provide initial value for "last".
4400 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4401 (user_regs_init): Allocate memory from the gdbarch obstack.
4402 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4403 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4404 linked list.
4405 (usernum_to_user_reg): New function.
4406 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4407 (value_of_user_reg): Use usernum_to_user_reg.
4408 (user_regs_free): Delete function.
4409 (_initialize_user_regs): Update register_gdbarch_data call.
4410
7cf6e574
DJ
44112003-07-31 Daniel Jacobowitz <drow@mvista.com>
4412
4413 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4414
c48a845b
MS
44152003-07-30 Michael Snyder <msnyder@redhat.com>
4416
4e7d7511 4417 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4418 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4419 value_being_returned.
4420 * infcmd.c (print_return_value): Pass zero as struct_addr.
4421 * values.c (value_being_returned): If struct_addr is passed,
4422 use it instead of trying to recover it from the inferior.
4423
f0d8db19
KB
44242003-07-30 Kevin Buettner <kevinb@redhat.com>
4425
4426 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4427 the prologue analyzer won't need to attempt to extract the pc
4428 value from the woefully incomplete dummy frame.
4429 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4430 possible. Disable code which modifies the frame.
4431
e5c113a1
AC
44322003-07-28 Andrew Cagney <cagney@redhat.com>
4433
4434 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4435 to level 2.
4436 (annotate_breakpoints_table, annotate_record): Ditto.
4437 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4438 (annotate_field_name_end, annotate_field_value): Ditto.
4439 (annotate_field_end, annotate_frame_source_begin): Ditto.
4440 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4441 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4442 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4443 (annotate_frame_address_end, annotate_frame_address): Ditto.
4444 (annotate_frame_args, annotate_frame_end): Ditto.
4445 (annotate_frame_where, annotate_arg_begin): Ditto.
4446 (annotate_arg_name_end, annotate_arg_value): Ditto.
4447 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4448 (annotate_function_call, annotate_signal_name): Ditto.
4449 (annotate_signal_string, annotate_signal_name_end): Ditto.
4450 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4451 (annotate_value_begin, annotate_value_history_value): Ditto.
4452 (annotate_value_history_end, annotate_value_end): Ditto.
4453 (annotate_display_begin, annotate_display_number_end): Ditto.
4454 (annotate_display_format, annotate_display_expression): Ditto.
4455 (annotate_display_expression_end, annotate_display_value): Ditto.
4456 (annotate_display_end, annotate_array_section_begin): Ditto.
4457 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4458 (annotate_elt, annotate_array_section_end): Ditto.
4459
bb1db049
AC
44602003-07-28 Andrew Cagney <cagney@redhat.com>
4461
4462 * regcache.c (struct regcache_descr): Update comments on
4463 nr_raw_registers.
4464 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4465 sizeof_raw_register_valid_p.
4466 (init_regcache_descr): Set nr_raw_registers and
4467 sizeof_raw_register_valid_p before calling
4468 init_legacy_regcache_descr.
4469
20e6603c
AC
44702003-07-28 Andrew Cagney <cagney@redhat.com>
4471
4472 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4473 MOD NUM_REGS.
4474
db742940
DJ
44752003-07-28 Daniel Jacobowitz <drow@mvista.com>
4476
4477 * thread.c (info_threads_command): Use get_selected_frame ().
4478 Check that there is at least one non-sentinel frame.
4479
ce7f4371
SC
44802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4481
4482 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4483 (m68hc11_pop_frame): Remove.
4484 (m68hc11_frame_saved_pc): Remove.
4485 (m68hc11_frame_chain): Remove.
4486 (m68hc11_frame_init_saved_regs): Remove.
4487 (m68hc11_init_extra_frame_info): Remove.
4488 (m68hc11_store_struct_return): Remove.
4489 (m68hc11_saved_pc_after_call): Remove.
4490
1ea653ae
SC
44912003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4492
4493 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4494 frame unwind information.
4495 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4496 and adapted for frame unwinding.
4497 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4498 (m68hc11_unwind_pc): New function.
4499 (m68hc11_frame_unwind_cache): New function to analyze frames.
4500 (m68hc11_frame_this_id): New function to create new frame struct.
4501 (m68hc11_frame_prev_register): New function to unwind a register from
4502 the frame.
4503 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4504 (m68hc11_frame_p): New function for the above.
4505 (m68hc11_frame_base_address): New function to return fp of frame.
4506 (m68hc11_frame_args_address): Update for frame.
4507 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4508 (m68hc11_unwind_sp): New function.
4509 (m68hc11_unwind_dummy_id): New function.
4510 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4511 calls.
4512
c8a7f6ac
SC
45132003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4514
4515 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4516 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4517 when we are beyond the current pc.
4518
3dc990bf
SC
45192003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4520
4521 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4522 from m68hc11_push_arguments.
4523 (m68hc11_push_arguments): Remove.
4524 (m68hc11_push_return_address): Remove.
4525 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4526 handlers; remove deprecated_extra_stack_alignment_needed.
4527
222e5d1d
AC
45282003-07-27 Andrew Cagney <cagney@redhat.com>
4529
4530 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4531 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4532 REAL_PC and not the pointer.
4533 * hppa-hpux-tdep.c: Include frame.h
4534
a7e9a47e
AC
45352003-07-27 Andrew Cagney <cagney@redhat.com>
4536
4537 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4538 GDB_MULTI_ACH_PARTIAL.
4539
7e3dd49e
AC
45402003-07-27 Andrew Cagney <cagney@redhat.com>
4541
4542 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4543 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4544 operator at start and not end of line.
4545 (decode_prologue): Ditto.
4546 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4547 frame_unwind_register_unsigned instead of
4548 frame_unwind_unsigned_register.
4549 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4550 read_register.
4551 (m32r_push_dummy_call): Use register_size instead of
4552 REGISTER_RAW_SIZE.
4553 (m32r_frame_sniffer): Replace m32r_frame_p.
4554 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4555 * m32r-rom.c (report_transfer_performance): Delete extern
4556 declaration.
4557 (m32r_load, m32r_upload_command): Use print_transfer_performance
4558 instead of report_transfer_performance.
4559 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4560 / add_show_from_set.
4561
0880807f
AC
45622003-07-26 Andrew Cagney <cagney@redhat.com>
4563
4564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4565 store_return_value and extract_struct_value_address.
4566
64ae9269
DJ
45672003-07-26 Daniel Jacobowitz <drow@mvista.com>
4568
4569 PR c++/1267
4570 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4571 NULL, default to the section containing PC.
4572
e286caf2
SC
45732003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4574
4575 * NEWS: Mention "regs" deprecated for m68hc11 too.
4576
4577 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4578 (m68hc11_print_register): New function to print out one register.
4579 (m68hc11_print_registers_info): New function to print registers.
4580 (show_regs): Deprecate and use the above.
4581 (m68hc11_gdbarch_init): Install the print_registers_info.
4582
705b278b
JJ
45832003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4584
4585 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4586 that we have a SIGTRAP before returning non-zero.
4587
63cd4198
EZ
45882003-07-23 Michal Ludvig <mludvig@suse.cz>
4589 Elena Zannoni <ezannoni@redhat.com>
4590
a8f4cde1 4591 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4592 find_function_start_sal() returns empty record.
4593
6926787d
AS
45942003-07-23 Andreas Schwab <schwab@suse.de>
4595
4596 * ia64-tdep.c (ia64_print_insn): New function.
4597 (ia64_gdbarch_init): Set print_insn to it.
4598 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4599 deprecated_tm_print_insn_info.
4600
708cc1b6
MS
46012003-07-22 Michael Snyder <msnyder@redhat.com>
4602
4603 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4604 handle 8-bit returns (long long).
4605 (h8300h_extract_return_value): Ditto.
4606 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4607
aebd7893
AC
46082003-07-22 Andrew Cagney <cagney@redhat.com>
4609
4610 * gdbarch.c Include "gdb_obstack.h".
4611 (struct gdbarch): Add an "obstack".
4612 (alloc_gdbarch_data): Allocate the gdbarch data using
4613 GDBARCH_OBSTACK_CALLOC.
4614 (free_gdbarch_data): Delete function.
4615 (gdbarch_obstack_zalloc): New function.
4616 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4617 Assert that the architecture is not initialized.
4618 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4619 vector from the obstack.
4620 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4621 architecture obstack.
4622 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4623 (set_gdbarch_data): Assert that the data is not initialized.
4624 (struct gdbarch_data): Delete member "free".
4625 (register_gdbarch_data): Do not initialize "free".
4626 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4627
153721e6
AC
46282003-07-22 Andrew Cagney <cagney@redhat.com>
4629
4630 * configure.in (build_warnings): Add -Wformat-nonliteral.
4631 * configure: Re-generate.
4632
c193f044 46332003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4634
4635 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4636
c3228f12
EZ
46372003-07-22 Elena Zannoni <ezannoni@redhat.com>
4638
4639 * findvar.c (read_var_value): Remove case for thread local storage
4640 variables. It is now entirely handled by the dwarf2 location
4641 expression code.
4642 * printcmd.c (address_info): Ditto.
4643 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4644 enumeration value.
4645 (struct symbol): Remove objfile field, which was used by
4646 LOC_THREAD_LOCAL_STATIC only.
4647 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4648 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4649 usage of objfile pointer.
4650 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4651 thread local variables.
4652 Add include of objfiles.h.
4653 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4654 storage variables.
4655 * Makefile.in (dwarf2loc.o): Update dependencies.
4656
aef9bcd2
AC
46572003-07-22 Andrew Cagney <cagney@redhat.com>
4658
4659 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4660 get_frame_base.
4661 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4662 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4663 (struct value): Add opaque declaration.
4664 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4665
d95a8903
AC
46662003-07-21 Andrew Cagney <cagney@redhat.com>
4667
4668 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4669 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4670
4db73d49
SC
46712003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4672
a8f4cde1 4673 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4674 regcache_cooked_read_unsigned instead of read_register.
4675 (m68hc11_saved_pc_after_call): Likewise.
4676 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4677 instead of write_register.
4678 (m68hc11_register_type): New function.
4679 (m68hc11_register_virtual_type): Remove.
4680 (m68hc11_store_return_value): Convert to use the regcache.
4681 (m68hc11_extract_struct_value_address): Likewise.
4682 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4683 m68hc11_register_type; undeprecate store_return_value and
4684 extract_struct_value_address.
4685
ef2b8fcd
SC
46862003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4687
4688 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4689 and translate to use regcache.
4690 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4691
625b0b97
AC
46922003-07-18 Andrew Cagney <cagney@redhat.com>
4693
4694 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4695 * gdbarch.h, gdbarch.c: Re-generate.
4696 * i386-tdep.c (i386_gdbarch_init): Do not set
4697 DWARF2_BUILD_FRAME_INFO.
4698 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4699 unconditionally.
4700 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4701 DWARF2_BUILD_FRAME_INFO.
4702
22b0d388
AC
47032003-07-18 Andrew Cagney <cagney@redhat.com>
4704
4705 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4706 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4707
1ce5d6dd
AC
47082003-07-18 Andrew Cagney <cagney@redhat.com>
4709
4710 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4711 frame_unwind_address_in_block, instead of frame_pc_unwind.
4712 (dwarf2_frame_cache): Ditto.
4713
e6e5e94c
AC
47142003-07-18 Andrew Cagney <cagney@redhat.com>
4715
4716 * user-regs.h (struct gdbarch): Declare opaque.
4717 * ui-out.h (struct ui_file): Declare opaque.
4718 * dwarf2-frame.h (struct frame_info): Declare opaque.
4719
5483d879
KW
47202003-07-18 Kris Warkentin <kewarken@qnx.com>
4721
4722 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4723 #include "...".
4724 (procfs_meminfo): Change strerror to safe_strerror.
4725 (procfs_can_run): Remove K&R badness.
4726
278a7cf7
MS
47272003-07-17 Michael Snyder <msnyder@redhat.com>
4728
4729 * remote-sim.c: Comment typo fix.
4730
606e3b82
AC
47312003-07-17 Andrew Cagney <cagney@redhat.com>
4732
4733 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4734 configure.
4735 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4736 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4737 GDB_MULTI_ARCH_PARTIAL.
4738
c43af07c
EZ
47392003-07-17 Elena Zannoni <ezannoni@redhat.com>
4740
4741 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4742 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4743 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4744
3b85b0f1
TR
47452003-07-16 Theodore A. Roth <troth@openavr.org>
4746
4747 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4748 found.
4749 (avr_frame_unwind_cache): Don't unwind FP for main.
4750 Update a comment.
4751 Save the computed prev_sp.
4752 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4753 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4754 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4755
336d1bba
AC
47562003-07-16 Andrew Cagney <cagney@redhat.com>
4757
4758 * frame-base.h (frame_base_p_ftype): Delete definition.
4759 (frame_base_append_predicate): Delete declaration.
4760 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4761 (frame_unwind_append_predicate): Delete declaration.
4762 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4763 (append_predicate): Delete parameter "p".
4764 (frame_unwind_append_predicate): Delete function.
4765 (frame_unwind_append_sniffer): Update call to append_predicate.
4766 (frame_unwind_free): Delete function.
4767 (_initialize_frame_unwind): Pass NULL as "free" to
4768 register_gdbarch_data.
4769 (frame_unwind_init): Append the dummy_frame_sniffer.
4770 (frame_unwind_find_by_frame): Simplify.
4771 * frame-base.c (struct frame_base_table): Delete field "p".
4772 (append_predicate): Delete parameter "p".
4773 (frame_base_append_predicate): Delete function.
4774 (frame_base_append_sniffer): Update call to append_predicate.
4775 (frame_base_free): Delete function.
4776 (frame_base_find_by_frame): Simplify.
4777 (_initialize_frame_base): Pass NULL as "free" to
4778 register_gdbarch_data.
4779 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4780 (x86_64_sigtramp_frame_sniffer): Replace
4781 "x86_64_sigtramp_frame_p".
4782 (x86_64_init_abi): Set the frame unwind sniffers.
4783 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4784 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4785 (m68k_gdbarch_init): Set the frame unwind sniffers.
4786 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4787 "i386_sigtramp_frame_p".
4788 (i386_frame_sniffer): Replace "i386_frame_p".
4789 (i386_gdbarch_init): Set the frame unwind sniffers.
4790 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4791 (avr_gdbarch_init): Set the frame unwind sniffers.
4792 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4793 "alpha_sigtramp_frame_p"
4794 (alpha_heuristic_frame_sniffer): Replace
4795 "alpha_heuristic_frame_p".
4796 (alpha_gdbarch_init): Set the frame unwind sniffers.
4797 (alpha_dwarf2_init_abi): Ditto.
4798 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4799 "alpha_debug_frame_p".
4800 (alpha_mdebug_frame_base_sniffer): Replace
4801 "alpha_mdebug_frame_base_p".
4802 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4803 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4804 (d10v_gdbarch_init): Set the frame unwind sniffer.
4805 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4806 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4807 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4808 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4809 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4810 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4811
48db5a3c
CV
48122003-07-16 Michael Snyder <msnyder@redhat.com>
4813
4814 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4815 should go thru sh_dsp_register_sim_regno, else the dsp regs
4816 will not get the right values.
4817
48182003-07-16 Corinna Vinschen <vinschen@redhat.com>
4819
4820 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4821 deprecated_store_floating by call to store_typed_floating.
4822 (sh_sh4_register_convert_to_raw): Substitute call to
4823 deprecated_extract_floating by call to extract_typed_floating.
4824
48252003-07-16 Corinna Vinschen <vinschen@redhat.com>
4826
4827 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4828
48292003-07-16 Corinna Vinschen <vinschen@redhat.com>
4830
4831 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4832 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4833 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4834 as possible.
4835 (do_pseudo_register): Remove.
4836 (sh_push_dummy_code): New function.
4837 (sh64_store_struct_return): Rename from sh_store_struct_return.
4838 Only called for sh64 now.
4839 (sh_extract_struct_value_address): Regcache'ify.
4840 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4841 and accomodate new tasks.
4842 (sh64_push_return_address): Rename from sh_push_return_address.
4843 Only called for sh64 now.
4844 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4845 Regcache'ify.
4846 (sh3e_sh4_extract_return_value): Regcache'ify.
4847 (sh_default_store_return_value): Ditto.
4848 (sh3e_sh4_store_return_value): Ditto.
4849 (sh_default_register_byte): Remove.
4850 (sh_sh4_register_byte): Remove.
4851 (sh_default_register_raw_size): Remove.
4852 (sh_sh4_register_raw_size): Remove.
4853 (sh_register_virtual_size): Remove.
4854 (sh_sh3e_register_virtual_type): Remove.
4855 (sh_sh3e_register_type): New function.
4856 (sh_sh4_register_virtual_type): Remove.
4857 (sh_sh4_register_type): New function.
4858 (sh_default_register_virtual_type): Remove.
4859 (sh_default_register_type): New function.
4860 (do_fv_register_info): Add parameters to accomodate call from
4861 sh_print_registers_info.
4862 (do_dr_register_info): Ditto.
4863 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4864 Add parameters to accomodate call from sh_print_registers_info.
4865 (sh_do_fp_register): Ditto.
4866 (sh64_do_pseudo_register): Call do_dr_register_info,
4867 do_fv_register_info and sh_do_fp_register with default parameters.
4868 (sh_do_register): Add parameters to accomodate call from
4869 sh_print_registers_info.
4870 (sh_print_register): Ditto.
4871 (sh_print_registers_info): Rename from sh_do_registers_info.
4872 Add parameters to be used as gdbarch_print_registers_info
4873 implementation. Accomodate removed do_pseudo_register function
4874 pointer.
4875 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4876 function pointer. Call sh_print_register with default parameters.
4877 (sh64_do_registers_info): Call sh_print_registers_info instead of
4878 sh_do_registers_info.
4879 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4880 detection of deprecated vs. non-deprecated functionality.
4881 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4882 function pointer assignments by direct function calls.
4883
e8a89fe2
AC
48842003-07-15 Andrew Cagney <cagney@redhat.com>
4885
4886 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4887 (frame_register_unwind, create_new_frame): Ditto.
4888 (legacy_get_prev_frame, get_frame_type): Ditto.
4889 (get_frame_base_address): Use frame_base_find_by_frame.
4890 (get_frame_locals_address): Use frame_base_find_by_frame.
4891 (get_frame_args_address): Use frame_base_find_by_frame.
4892 * frame-base.h (frame_base_sniffer_ftype): Declare.
4893 (frame_base_append_sniffer): Declare.
4894 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4895 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4896 (frame_base_append_sniffer): New function.
4897 (frame_base_append_predicate): Add a NULL sniffer.
4898 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4899 (struct frame_base_table): Add "sniffer".
4900 (frame_base_free): Free the "sniffer" table.
4901 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4902 (frame_unwind_append_sniffer): Declare.
4903 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4904 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4905 (struct frame_unwind_table): Add "sniffer", delete "middle".
4906 (append_predicate): Add "sniffer" parameter, append the sniffer.
4907 (frame_unwind_init): Update append_predicate call.
4908 (frame_unwind_append_sniffer): New function.
4909 (frame_unwind_append_predicate): Update append_predicate call.
4910 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4911
0714963c
AC
49122003-07-15 Andrew Cagney <cagney@redhat.com>
4913
4914 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4915 before code inhibiting repeated unwind attempts. Add to
4916 commentary on that test's problems.
4917 * blockframe.c (inside_main_func): Look for "main" in the minimal
4918 symbol table.
4919 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4920 identical.
4921
d9170e22
AC
49222003-07-15 Andrew Cagney <cagney@redhat.com>
4923
4924 * complaints.c (struct explanation): Define.
4925 (struct complaints): Change type of "explanation" to "struct
4926 explanation".
4927 (symfile_explanations): Convert to a "struct explanation" table.
4928 (vcomplaint): Update.
4929
eba29c8c
ML
49302003-07-15 Michal Ludvig <mludvig@suse.cz>
4931
4932 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4933 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4934 x86_64_linux_(fill,supply)_gregset functions.
4935 * x86-64-linux-tdep.c (USER_*): New defines.
4936 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4937 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4938 New functions.
4939 (fetch_core_registers): Ditto.
4940 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4941 * x86-64-linux-tdep.h: New file.
4942 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4943 and core-regset.o.
4944 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4945
68cc0bfb
MK
49462003-07-13 Mark Kettenis <kettenis@gnu.org>
4947
88a115f7
MK
4948 * x86-64-tdep.c (x86_64_store_return_value): Use
4949 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4950
68cc0bfb
MK
4951 * configure.host: Add x86_64-*-freebsd*.
4952 * configure.tgt: Add x86_64-*-freebsd*.
4953 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4954 * amd64fbsd-nat.c: New file.
4955 * amd64fbsd-tdep.c: New file.
4956 * config/i386/nm-fbsd64.h: New file.
4957 * config/i386/fbsd64.mh: New file.
4958 * config/i386/fbsd64.mt: New file.
4959
138e7be5
MK
49602003-07-11 Mark Kettenis <kettenis@gnu.org>
4961
4962 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4963 `sc_regs_offset' and `sc_fpregs_offset'.
4964 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4965 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4966 (alpha_sigtramp_register_address): Rewrite to use new members of
4967 `struct gdbarch_tdep'.
4968 (alpha_gdbarch_init): Initialize new members of struct
4969 gdbarch_tdep'.
4970 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4971 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4972 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4973 (alphafbsd_pc_in_sigtramp): Implement.
4974 (alphafbsd_sigtramp_offset): New function.
4975 (alphafbsd_sigcontext_addr): New function.
4976 (alphafbsd_init_abi): Initialize signal trampoline related members
4977 of `struct gdbarch_tdep'.
4978 (_initialize_alphafbsd_tdep): Add prototype.
4979
95303a68
TR
49802003-07-11 Theodore A. Roth <troth@openavr.org>
4981
ba292e4c
TR
4982 * Makefile.in (install-only): Quote sed expression when generating
4983 transformed_name.
95303a68 4984
6896c0c7
RH
49852003-07-11 Richard Henderson <rth@redhat.com>
4986
4987 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4988 * dwarf2-frame.c: Include complaints.h.
4989 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4990 variable initialization; return NULL on error.
4991 (decode_frame_entry): New.
4992
8edd5d01
AC
49932003-07-11 Andrew Cagney <cagney@redhat.com>
4994
c4a09524
AC
4995 * frame.h (frame_address_in_block): Delete declaration.
4996 * blockframe.c (frame_address_in_block): Delete function.
4997 (get_frame_block): Use get_frame_address_in_block.
4998 (block_innermost_frame): Ditto.
4999 * stack.c (print_frame, backtrace_command_1): Ditto.
5000
8edd5d01
AC
5001 * frame.h (get_frame_address_in_block): Declare.
5002 (frame_unwind_address_in_block): Declare.
5003 * frame.c (frame_unwind_address_in_block): New function.
5004 (get_frame_address_in_block): New function.
5005
f7968451
AC
50062003-07-10 Andrew Cagney <cagney@redhat.com>
5007
5008 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5009 pre-default. Note: re-generate has no effect.
a8f4cde1 5010
ae99b398
AC
50112003-07-10 Andrew Cagney <cagney@redhat.com>
5012
5013 * gdbarch.sh: When a variable, but not a function, compare against
5014 0. Fix problem in previous patch.
5015 * gdbarch.c: Re-generate.
a8f4cde1 5016
956ac328
AC
50172003-07-10 Andrew Cagney <cagney@redhat.com>
5018
5019 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5020 functions against NULL, not 0.
5021 * gdbarch.c: Re-generate.
a8f4cde1 5022
287c3240
FF
50232003-07-10 Fred Fish <fnf@ninemoons.com>
5024
5025 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5026 null string instead of a null pointer.
5027 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5028
32f63c4b
MS
50292003-07-09 Michael Snyder <msnyder@redhat.com>
5030
5031 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5032
402ecd56
MK
50332003-07-09 Mark Kettenis <kettenis@gnu.org>
5034
5035 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5036 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5037 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5038 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5039 * x86-64-tdep.c: ... from here.
5040
c481dac7
AS
50412003-07-09 Andreas Schwab <schwab@suse.de>
5042
5043 * m68k-tdep.h (enum struct_return): Define.
5044 (struct gdbarch_tdep): Add struct_return.
5045 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5046 bytes are padded to the right, not to the left. Pass struct value
5047 address in register %a1, not on stack.
5048 (m68k_use_struct_convention): New function.
5049 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5050 struct_return in tdep to pcc_struct_return.
5051 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5052 reg_struct_return.
5053
a8f4cde1 50542003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5055
a8f4cde1 5056 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5057
96a4ee76
AC
50582003-07-09 Andrew Cagney <cagney@redhat.com>
5059
5060 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5061 Add comments about the checks.
5062
1517c6d1
AC
50632003-07-08 Andrew Cagney <cagney@redhat.com>
5064
5065 * Makefile.in: Make dependency section headers consistent.
5066 (config_h): Move to $BUILD headers section.
5067 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5068 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5069 (ada-exp.tab.c): Move to YACC/LEX section.
5070 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5071 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5072
dc5dd1eb
KW
50732003-07-08 Kris Warkentin <kewarken@qnx.com>
5074
5075 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5076 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5077 of strerror with safe_strerror, use ISO C function definitions,
5078 and replace instances of sprintf with snprintf.
dc5dd1eb 5079
612dde91
AC
50802003-07-07 Andrew Cagney <cagney@redhat.com>
5081
5082 * frame.c (get_prev_frame): Enable check for identical frames.
5083 Update comments. Update error messages.
5084
492c11d3
JB
50852003-07-07 Joel Brobecker <brobecker@gnat.com>
5086
5087 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5088
376a5a49
JB
50892003-07-07 Joel Brobecker <brobecker@gnat.com>
5090
5091 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5092 sort_symtab_syms, no longer necessary.
5093
22b4a9ad
JB
50942003-07-07 Joel Brobecker <brobecker@gnat.com>
5095
5096 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5097
5bbcb741
JB
50982003-07-07 Joel Brobecker <brobecker@gnat.com>
5099
5100 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5101 (mips_register_byte): Likewise.
5102
c139e7d9
DJ
51032003-07-07 Daniel Jacobowitz <drow@mvista.com>
5104
5105 * Makefile.in (sparc_tdep_h): New.
5106 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5107 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5108 * sparc-linux-nat.c: Include "sparc-tdep.h".
5109 * sparc-nat.c: Likewise.
5110 * sparc-tdep.c: Likewise.
5111 * sparc64nbsd-nat.c: Likewise.
5112 * sparcnbsd-nat.c: Likewise.
5113 * sparcnbsd-tdep.c: Likewise.
5114 * sparc-tdep.h: New file.
5115 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5116 and sparc_npc_regnum.
5117
fd8f87c5
DJ
51182003-07-07 Daniel Jacobowitz <drow@mvista.com>
5119
5120 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5121 (mips_linux_cannot_store_register): List supported instead of
5122 unsupported registers.
5123
13adf674
DJ
51242003-07-07 Daniel Jacobowitz <drow@mvista.com>
5125
5126 * disasm.c (dump_insns): Separate instructions from addresses.
5127
8de307e0
AS
51282003-07-07 Andreas Schwab <schwab@suse.de>
5129
5130 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5131 dependencies.
5132 * m68k-tdep.c (NUM_FREGS): Delete.
5133 (SIG_PC_FP_OFFSET): Delete.
5134 (TARGET_M68K): Delete.
5135 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5136 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5137 P_MOVEL_SP, P_MOVEML_SP): Define.
5138 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5139 P_TRAP): Delete.
5140 (m68k_register_raw_size): Delete.
5141 (m68k_register_virtual_size): Delete.
5142 (m68k_register_type): Renamed from m68k_register_virtual_type and
5143 add gdbarch argument.
5144 (m68k_store_struct_return): Delete.
5145 (m68k_deprecated_extract_return_value): Delete.
5146 (m68k_deprecated_extract_struct_value_address): Delete.
5147 (m68k_frame_chain): Delete.
5148 (m68k_frame_saved_pc): Delete.
5149 (m68k_fix_call_dummy): Delete.
5150 (m68k_push_dummy_frame): Delete.
5151 (m68k_pop_frame): Delete.
5152 (m68k_extract_return_value): New function.
5153 (m68k_store_return_value): Rewrite using regcache.
5154 (m68k_extract_struct_value_address): Rewrite using regcache.
5155 (m68k_push_dummy_call): New function.
5156 (struct m68k_frame_cache): Define.
5157 (m68k_alloc_frame_cache): New function.
5158 (m68k_analyze_frame_setup): New function.
5159 (m68k_analyze_register_saves): New function.
5160 (m68k_analyze_prologue): New function.
5161 (m68k_skip_prologue): Rewrite using above functions.
5162 (m68k_unwind_pc): New function.
5163 (m68k_frame_cache): New function.
5164 (m68k_frame_this_id): New function.
5165 (m68k_frame_prev_register): New function.
5166 (m68k_frame_unwind): New variable.
5167 (m68k_frame_p): New function.
5168 (m68k_sigtramp_frame_cache): New function.
5169 (m68k_sigtramp_frame_this_id): New function.
5170 (m68k_sigtramp_frame_prev_register): New function.
5171 (m68k_sigtramp_frame_unwind): New variable.
5172 (m68k_sigtramp_frame_p): New function.
5173 (m68k_frame_base_address): New function.
5174 (m68k_frame_base): New function.
5175 (m68k_unwind_dummy_id): New function.
5176 (fill_gregset): Use regcache_collect.
5177 (fill_fpregset): Likewise.
5178 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5179 defined.
5180 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5181 deprecated_init_frame_pc, deprecated_store_struct_return,
5182 deprecated_extract_return_value, deprecated_store_return_value,
5183 deprecated_frame_chain, deprecated_frame_saved_pc,
5184 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5185 deprecated_register_virtual_size,
5186 deprecated_max_register_raw_size,
5187 deprecated_max_register_virtual_size,
5188 deprecated_register_virtual_type, deprecated_register_size,
5189 deprecated_register_byte, deprecated_register_bytes,
5190 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5191 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5192 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5193 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5194 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5195 deprecated_push_dummy_frame, deprecated_pop_frame,
5196 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5197 only if SYSCALL_TRAP is defined. Set extract_return_value,
5198 store_return_value, extract_struct_value_address, register_type,
5199 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5200 predicates.
5201 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5202 M68K_MAX_REGISTER_SIZE): Define.
5203 (struct m68k_sigtramp_info): Define.
5204 (struct gdbarch_tdep): Add get_sigtramp_info.
5205 * m68klinux-nat.c (fetch_register): Use register_size instead of
5206 REGISTER_RAW_SIZE. Don't put assignment in if.
5207 (store_register): Likewise.
5208 (fetch_inferior_registers): Likewise.
5209 (store_inferior_registers): Likewise.
5210 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5211 (m68k_linux_frame_saved_pc): Delete.
5212 (m68k_linux_sigcontext_reg_offset,
5213 m68k_linux_ucontext_reg_offset): Define.
5214 (m68k_linux_get_sigtramp_info): New function.
5215 (m68k_linux_extract_return_value): Rewrite using regcache.
5216 (m68k_linux_store_return_value): Likewise.
5217 (m68k_linux_extract_struct_value_address): Likewise.
5218 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5219 Don't set deprecated_frame_saved_pc,
5220 deprecated_extract_return_value, deprecated_store_return_value,
5221 deprecated_extract_struct_value_address. Set
5222 extract_return_value, store_return_value,
5223 extract_struct_value_address.
5224
eb8bc282
AC
52252003-07-07 Andrew Cagney <cagney@redhat.com>
5226
5227 * expprint.c: Include "user-regs.h" instead of "frame.h".
5228 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5229 frame_map_regnum_to_name.
5230 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5231 (frame_map_name_to_regnum): Simplify, call
5232 user_reg_map_name_to_regnum.
5233 (frame_map_regnum_to_name): Simplify, call
5234 user_reg_map_regnum_to_name.
5235 (frame_register_unwind): Update.
5236 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5237 (_initialize_frame_reg): Call user_reg_add_builtin.
5238 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5239 (value_of_register): Use value_of_user_reg.
5240 * eval.c (evaluate_subexp_standard): Update.
5241 * parse.c (write_dollar_variable): Update.
5242 * d10v-tdep.c (d10v_print_registers_info): Update.
5243 * infcmd.c (registers_info): Update.
5244 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5245 (builtin_regs_h): Delete macro.
5246 (user_regs_h): Define.
5247 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5248 (builtin-regs.o): Delete target.
5249 (user-regs.o): Specify dependencies.
5250 (expprint.o): Update dependencies.
5251 (findvar.o): Update dependencies.
5252 (frame.o): Update dependencies.
5253 (std-regs.o): Update dependencies.
5254
9f476a01
CF
52552003-07-06 Christopher Faylor <cgf@redhat.com>
5256
5257 * win32-nat.c (solib_symbols_add): Use one variable for all section
5258 address stuff. Pass variable rather than address of variable to
5259 safe_symbol_file_add.
5260
a731b831
AS
52612003-07-06 Andreas Schwab <schwab@suse.de>
5262
5263 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5264
9f83329d
JB
52652003-07-04 Joel Brobecker <brobecker@gnat.com>
5266
5267 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5268
27e28cc5
KW
52692003-07-04 Kris Warkentin <kewarken@qnx.com>
5270
5271 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5272
52732003-07-04 Kris Warkentin <kewarken@qnx.com>
5274
5275 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5276 * config/i386/nto.mh: New file.
5277 * config/i386/nm-nto.h: New file.
5278 * configure.host: Add i[3456]86-*-nto*.
5279
100f2e98
JB
52802003-07-03 Joel Brobecker <brobecker@gnat.com>
5281
5282 * remote-vx.c (vx_add_symbols): Fix compilation error.
5283
e23457df
AC
52842003-07-03 Andrew Cagney <cagney@redhat.com>
5285
5286 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5287 * gdbarch.h, gdbarch.c: Re-generate.
5288 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5289 (legacy_register_name): Declare.
5290 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5291 (REGISTER_NAME): Define.
5292 * sparc-tdep.c (legacy_register_name): New function.
5293 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5294 (REGISTER_NAME): Define.
5295 (hppa64_register_name): Declare.
5296 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5297 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5298 (hppa64_register_name): New function.
5299 (hppa_register_name): New function.
5300 * arch-utils.c (legacy_register_name): Delete.
5301 * arch-utils.h (legacy_register_name): Delete.
5302
38caaeec
DJ
53032003-07-03 Daniel Jacobowitz <drow@mvista.com>
5304
5305 * cli/cli-interp.c (cli_interpreter_resume): Update the
5306 cli_uiout's stream to gdb_stdout.
5307
dadd712e
AC
53082003-07-03 Andrew Cagney <cagney@redhat.com>
5309
5310 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5311 predicate.
5312 * gdbarch.h, gdbarch.c: Re-generate.
5313 * regcache.c (init_regcache_descr): Use legacy code when either
5314 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5315
c7f1390e
DJ
53162003-07-02 Daniel Jacobowitz <drow@mvista.com>
5317
5318 * NEWS: Move "set logging" entry into GDB 6.0 section.
5319
4bc8c588
JB
53202003-07-02 Jim Blandy <jimb@redhat.com>
5321
a9dd42f1
JB
5322 * s390-tdep.c (struct frame_extra_info): new member:
5323 'stack_bought_valid'.
5324 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5325 initialize fextra_info->stack_bought.
5326 (s390_frameless_function_invocation): Don't trust the value of
5327 fextra_info_ptr->stack_bought unless
5328 fextra_info->stack_bought_valid is set.
5329
4bc8c588
JB
5330 New S390 prologue analyzer.
5331 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5332 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5333 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5334 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5335 compute_x_addr, s390_on_stack, s390_store,
5336 s390_get_signal_frame_info): New functions.
5337 (S390_NUM_SPILL_SLOTS): New macro.
5338 (s390_get_frame_info): Rewritten.
5339 (is_arg_reg): Deleted.
5340
5341 Break out the decoding of S/390 instructions into separate
5342 functions, to make it more legible, and easier to check
5343 against the spec.
5344 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5345 is_rx, is_rxe): New functions.
5346 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5347 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5348 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5349 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5350 enums for opcode values. (Is this an improvement?)
5351
fd13a04a
AC
53522003-07-02 Andrew Cagney <cagney@redhat.com>
5353
5354 * i386-tdep.c: Revert change committed as part of trad-frame code
5355 below.
5356
3f8091c1
DJ
53572003-07-02 Daniel Jacobowitz <drow@mvista.com>
5358
5359 * breakpoint.c (insert_catchpoint): Make static.
5360
8dd5115e
AS
53612003-07-02 Andreas Schwab <schwab@suse.de>
5362
5363 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5364 former ia64_push_arguments and ia64_push_return_address, and use
5365 regcache functions instead of read/write_register.
5366 (ia64_gdbarch_init): Set push_dummy_call instead of
5367 deprecated_push_arguments and deprecated_push_return_address.
5368
a2229c23
AJ
53692003-07-01 Andreas Jaeger <aj@suse.de>
5370
5371 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5372 before the call.
5373 Set %rax only to number of SSE registers used.
5374
3b3850e8
AC
53752003-07-01 Andrew Cagney <cagney@redhat.com>
5376
5377 * trad-frame.h: Update comments, a -1 .addr is reserved.
5378 (trad_frame_value_p, trad_frame_addr_p): Declare.
5379 (trad_frame_reg_p): Declare.
5380 (trad_frame_set_value): Rename trad_frame_register_value.
5381 (trad_frame_set_unknown): Declare.
5382 * trad-frame.c (trad_frame_realreg_p): New function.
5383 (trad_frame_addr_p, trad_frame_value_p): New function.
5384 (trad_frame_set_unknown): New function.
5385 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5386 (trad_frame_prev_register): Use trad_frame_realreg_p,
5387 trad_frame_addr_p and trad_frame_value_p.
5388 (trad_frame_set_value): Rename trad_frame_register_value.
5389 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5390 and trad_frame_set_value.
a2229c23 5391
4d819d0e
JB
53922003-06-30 Jim Blandy <jimb@redhat.com>
5393
5394 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5395 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5396 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5397 for 16 registers, and then 32 more bytes.
5398 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5399 New macros.
5400 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5401 Move up in the file, since it's now used by is_simple_arg.
5402 (is_simple_arg): Don't assume registers are four bytes long.
5403 Exclude all double arguments. Extended floats are not simple
5404 args.
5405 (is_power_of_two): New function.
5406 (pass_by_copy_ref): Call is_power_of_two, and check that the
5407 length fits in a register, rather than listing all the acceptable
5408 sizes. Extended floats are not passed by reference.
5409 (s390_push_arguments): Don't assume registers are four bytes long.
5410 Reserve an argument register to point to the buffer for structures
5411 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5412 S390_STACK_FRAME_OVERHEAD.
5413
1ad828f1
AS
54142003-06-30 Andreas Schwab <schwab@suse.de>
5415
5416 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5417 format error message.
5418
39b00981
JB
54192003-06-30 Joel Brobecker <brobecker@gnat.com>
5420
5421 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5422
b2a7f303
DC
54232003-06-30 David Carlton <carlton@kealia.com>
5424
5425 Band-aid for PR c++/1245.
5426 * Makefile.in (cp-support.o): Depend on complaints_h.
5427 * cp-support.c: Include complaints.h. Add declaration for
5428 find_last_component.
5429 (cp_find_first_component): Separate code into
5430 cp_find_first_component_aux.
5431 (cp_find_first_component_aux): Call demangled_name_complaint.
5432 (demangled_name_complaint): New.
5433
a257b5bb
AC
54342003-06-30 Andrew Cagney <cagney@redhat.com>
5435
5436 * remote.c (remote_write_bytes): Explicitly compute and then use
5437 the payload size. Update comments to reflect. Fixes problem of
5438 GDB not sending small packets as found by Fred Fish.
5439
0a2cfde4
AC
54402003-06-30 Andrew Cagney <cagney@redhat.com>
5441
5442 * remote.c (remote_async_wait): Fix -Wformat problem.
5443
3fcb8548
AC
54442003-06-29 Andrew Cagney <cagney@redhat.com>
5445
5446 * remote.c (remote_wait): Call error, and not warning, when the
5447 packet is corrupt.
5448 (remote_async_wait): Ditto.
5449
9f9970a3
DJ
54502003-06-29 Daniel Jacobowitz <drow@mvista.com>
5451
5452 * sparc-tdep.c (sparc_y_regnum): Make external again.
5453
83a8ccca
DJ
54542003-06-29 Daniel Jacobowitz <drow@mvista.com>
5455
5456 * cli/cli-logging.c (pop_output_files): Add void to function
5457 definition.
5458
d2cf594a
AC
54592003-06-29 Andrew Cagney <cagney@redhat.com>
5460
5461 * frame.c (frame_register_unwind): Use unsigned char when dumping
5462 the buffer contents.
5463
0fac0b41
DJ
54642003-06-28 Daniel Jacobowitz <drow@mvista.com>
5465
5466 * cli/cli-logging.c: New file.
5467 * cli-out.c (struct ui_out_data): Add original_stream.
5468 (cli_redirect): New function.
5469 (cli_ui_out_impl): Add cli_redirect.
5470 (cli_out_new): Initialize original_stream.
5471 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5472 (uo_redirect, ui_out_redirect): New.
5473 * ui-out.h (struct ui_out_impl): Add redirect member.
5474 (redirect_ftype): New.
5475 (ui_out_redirect): Add prototype.
5476 * Makefile.in: Add rules for cli-logging.c.
5477 * NEWS: Mention "set logging".
5478
88a07d7c
EZ
54792003-06-27 Elena Zannoni <ezannoni@redhat.com>
5480
5481 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5482
4eb58876
AC
54832003-06-27 Andrew Cagney <cagney@redhat.com>
5484
5485 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5486 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5487 * avr-tdep.c (avr_call_dummy_address): Delete function.
5488 (avr_gdbarch_init): Do not set call_dummy_address.
5489
1549f619
EZ
54902003-06-27 Elena Zannoni <ezannoni@redhat.com>
5491
5492 * symfile.c (syms_from_objfile): Move variables to inner block.
5493 Move the checks for the non-mainline case a bit earlier to avoid
5494 doing some useless computations.
5495
3cb3398d
EZ
54962003-06-27 Elena Zannoni <ezannoni@redhat.com>
5497
5498 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5499
3799ccc6
EZ
55002003-06-26 Elena Zannoni <ezannoni@redhat.com>
5501
5502 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5503 sections.
5504
ce1f6491
MC
55052003-06-26 Michael Chastain <mec@shout.net>
5506
5507 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5508 gdb/testsuite/gdb.c++/pr-1210.exp.
5509
d958dfd0
AC
55102003-06-26 Andrew Cagney <cagney@redhat.com>
5511
5512 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5513 altivec_expression.h and altivec_registers.h.
5514
d31431ed
AC
55152003-06-26 Andrew Cagney <cagney@redhat.com>
5516
5517 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5518 info->mach when MIPS16. Patch suggested by Fred Fish.
5519
714b1282
AC
55202003-06-26 Andrew Cagney <cagney@redhat.com>
5521
5522 * utils.c (internal_vproblem): Print the problem to a reason
5523 buffer and then pass to query. Make the msg variable more local.
5524
42efa47a
AC
55252003-06-26 Andrew Cagney <cagney@redhat.com>
5526
5527 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5528 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5529 * gdbarch.h, gdbarch.c: Re-generate.
5530 * frame-base.c (default_frame_args_address): Update. Use
5531 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5532 not available.
5533 (default_frame_locals_address): Ditto for
5534 DEPRECATED_FRAME_LOCALS_ADDRESS.
5535 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5536 (vax_frame_num_args): Update.
5537 (vax_gdbarch_init): Update.
5538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5539 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5540 * mcore-tdep.c (mcore_gdbarch_init): Update.
5541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5542 * ia64-tdep.c (ia64_gdbarch_init): Update.
5543 * symtab.h (address_class): Update comments.
5544 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5545 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5546 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5547 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5548 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5549 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5550 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5551 * alpha-mdebug-tdep.c: Update.
5552 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5553
8ffd9b1b
AJ
55542003-06-26 Andreas Jaeger <aj@suse.de>
5555
5556 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5557 of SSE registers so that varargs functions work. Rework handling
5558 of passing arguments on the stack.
5559 (x86_64_store_return_value): Return double and float values in SSE
5560 register.
5561
e8ac10a6
MC
55622003-06-24 Michael Chastain <mec@shout.net>
5563
5564 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5565 the "constructor breakpoints ignored" bug.
5566
986af8e6
DC
55672003-06-25 David Carlton <carlton@kealia.com>
5568
5569 * MAINTAINERS: Update e-mail address.
5570
d64558a5
JB
55712003-06-24 Jim Blandy <jimb@redhat.com>
5572
e538d2d7
JB
5573 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5574
02631ec0
JB
5575 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5576 function.
5577 (ppc_linux_init_abi): Register it as the
5578 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5579
e716d87a
JB
5580 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5581 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5582 method.
5583
d64558a5
JB
5584 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5585 (ppc64_standard_linkage_target): Use it.
5586
449a5da4
AC
55872003-06-23 Andrew Cagney <cagney@redhat.com>
5588
5589 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5590 for 0 "int0" and 4 "int32" sized registers.
5591 * gdbtypes.c (builtin_type_int0): Define.
5592 (build_gdbtypes): Initialize builtin_type_int0.
5593 * gdbtypes.h (builtin_type_int0): Declare.
5594
b2a02dda
SC
55952003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5596
5597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5598 as characters are unsigned.
5599
fba3138e
DJ
56002003-06-22 Daniel Jacobowitz <drow@mvista.com>
5601
5602 PR gdb/1179
5603 * dwarfread.c (struct_type): Skip static fields without crashing.
5604
f6c8180b
AC
56052003-06-22 Andrew Cagney <cagney@redhat.com>
5606
5607 GDB 6.0 branch created.
f2c06f52
AC
5608 * README: Update.
5609 * PROBLEMS: Update. Empty.
5610 * NEWS: Update.
f6c8180b 5611
ae822768
DJ
56122003-06-22 Daniel Jacobowitz <drow@mvista.com>
5613
5614 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5615 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5616
261de166
AC
56172003-06-22 Andrew Cagney <cagney@redhat.com>
5618
5619 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5620 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5621 Velikov.
5622
30e94205
DJ
56232003-06-22 Daniel Jacobowitz <drow@mvista.com>
5624
5625 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5626 compilers.
5627
9e14d721
DJ
56282003-06-21 Daniel Jacobowitz <drow@mvista.com>
5629
5630 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5631 argument of val_print.
5632 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5633 to the address argument of baseclass_offset or target_read_memory.
5634 Do add it to the argument of cp_print_value_fields.
5635
a4b8ebc8
AC
56362003-06-21 Andrew Cagney <cagney@redhat.com>
5637
5638 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5639 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5640 instead of 0..NUM_REGS.
5641 (mips_register_reggroup_p): New function.
5642 (mips_pseudo_register_write): New function.
5643 (mips_pseudo_register_read): New function.
5644 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5645 based on the register's type.
5646 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5647 cooked.
5648 (mips_get_saved_register): Simplify. Assert that REGNO is a
5649 pseudo / cooked.
5650 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5651 (mips_register_type): Replace mips_register_virtual_type. Map
5652 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5653 when available.
5654 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5655 that the register is cooked / virtual.
5656 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5657 Only get the extra info when needed.
5658 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5659 (mips32_heuristic_proc_desc): Fetch the cooked register.
5660 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5661 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5662 (mips_print_register): Use gdbarch_register_type, instead of
5663 REGISTER_VIRTUAL_TYPE.
5664 (print_gp_register_row): Use gdbarch_register_type, instead of
5665 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5666 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5667 Print the pseudo / cooked registers.
5668 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5669 Print the pseudo / cooked registers.
5670 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5671 REG_NUM is pseudo / cooked.
5672 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5673 (mips_n32n64_xfer_return_value): Ditto.
5674 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5675 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5676 (mips_register_sim_regno): New function.
5677 (mips_gdbarch_init): Set deprecated_register_byte,
5678 register_group_p, pseudo_register_write, pseudo_register_read,
5679 register_sim_regno, and num_pseudo_regs. Set register_type,
5680 instead of register_virtual_type.
5681 * Makefile.in (mips-tdep.o): Update dependencies.
5682 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5683 REGISTER_VIRTUAL_TYPE.
5684 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5685 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5686 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5687 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5688 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5689
325ed089
DJ
56902003-06-21 Daniel Jacobowitz <drow@mvista.com>
5691
5692 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5693 * cli/cli-cmds.c: Include "gdb_vfork.h".
5694 (shell_escape): Use vfork.
5695
f0e7d0e8
AC
56962003-06-21 Andrew Cagney <cagney@redhat.com>
5697
c57bb9fa
AC
5698 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5699 32 bit floating-point register saves.
5700
6e51443a
AC
5701 * frame.h (deprecated_unwind_get_saved_register): Delete.
5702 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5703 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5704 and deprecated_get_next_frame_hack instead of
5705 deprecated_unwind_get_saved_register.
5706
ed183c7c
AC
5707 * mips-tdep.c (mips_dump_tdep): Do not print
5708 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5709
f0e7d0e8
AC
5710 * frame.c (get_frame_register): New function.
5711 (frame_unwind_register_signed): New function.
5712 (get_frame_register_signed): New function.
5713 (frame_unwind_register_unsigned): New function.
5714 (get_frame_register_unsigned): New function.
5715 * frame.h: Add comments on naming schema.
5716 (get_frame_register, frame_unwind_register_signed): Declare.
5717 (get_frame_register_signed, get_frame_register_signed): Declare.
5718 (frame_unwind_register_unsigned): Declare.
5719 (get_frame_register_unsigned): Declare.
5720
2224d941
TR
57212003-06-20 Theodore A. Roth <troth@openavr.org>
5722
5723 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5724
8619218d
TR
57252003-06-20 Theodore A. Roth <troth@openavr.org>
5726
5727 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5728 (avr_read_sp): Ditto.
5729
0b1b50c0
DJ
57302003-06-20 Daniel Jacobowitz <drow@mvista.com>
5731
5732 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5733 * config/arm/nm-linux.h: Likewise.
5734 * config/arm/tm-linux.h: Likewise.
5735 * config/ia64/nm-linux.h: Likewise.
5736 * config/ia64/tm-ia64.h: Likewise.
5737 * config/s390/tm-linux.h: Likewise.
5738 * config/s390/tm-s390.h: Likewise.
5739 * s390-nat.c: Likewise.
5740 * s390-tdep.c: Likewise.
5741
5742 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5743 * config/ia64/linux.mt: Likewise.
5744 * config/m68k/linux.mh: Likewise.
5745 * config/mips/linux.mt: Likewise.
5746 * config/powerpc/linux.mh: Likewise.
5747 * config/sh/linux.mt: Likewise.
5748
c8c18e65
KW
57492003-06-19 Kris Warkentin <kewarken@qnx.com>
5750
5751 * solib.c (solib_open): Change tests for whether to search
5752 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5753 comments.
5754
dcccef2e
TR
57552003-06-19 Theodore A. Roth <troth@openavr.org>
5756
5757 * avr-tdep.c (avr_frame_address): Delete function.
5758 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5759 set_gdbarch_frame_args_address.
5760
5861a190
AC
57612003-06-19 Andrew Cagney <cagney@redhat.com>
5762
5763 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5764 (REGISTER_CONVERT_FROM_TYPE): Delete.
5765 (mips_register_convert_to_type): Delete declaration.
5766 (mips_register_convert_from_type): Delete declaration.
5767 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5768 kernel/.
5769
0274a8ce
MS
57702003-06-19 Michael Snyder <msnyder@redhat.com>
5771
5772 * linux-nat.h: New file.
5773 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5774 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5775 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5776 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5777 (linux_make_note_section): Iterate over lwps instead of threads.
5778 (linux_do_thread_registers): Use lwp instead of merged pid.
5779 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5780 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5781 Add dependency on linux_nat_h.
5782
adf5f719
TR
57832003-06-19 Theodore A. Roth <troth@openavr.org>
5784
5785 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5786
6766a268
DJ
57872003-06-19 Daniel Jacobowitz <drow@mvista.com>
5788
5789 * varobj.c (get_type, get_target_type): Use check_typedef.
5790
1171114a
DJ
57912003-06-19 Daniel Jacobowitz <drow@mvista.com>
5792
5793 * breakpoint.c (insert_catchpoint): Call internal_error.
5794
adcf68a2
TR
57952003-06-19 Theodore A. Roth <troth@openavr.org>
5796
5797 * avr-tdep.c (avr_push_dummy_code): Delete function.
5798 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5799
ea67f13b
DJ
58002003-06-19 Daniel Jacobowitz <drow@mvista.com>
5801
5802 * arch-utils.c (default_prepare_to_proceed): Remove.
5803 (generic_prepare_to_proceed): Remove.
5804 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5805 (generic_prepare_to_proceed): Remove prototype.
5806 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5807 * gdbarch.c: Regenerate.
5808 * gdbarch.h: Regenerate.
5809 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5810 * hppah-nat.c (hppa_switched_threads): Remove.
5811 * infrun.c (prepare_to_proceed): New static function, copied from
5812 generic_prepare_to_proceed. Remove select_it argument.
5813 (proceed): Call prepare_to_proceed.
5814 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5815 variables.
5816 (ptrace_wait): Don't set the removed variables.
5817 (hppa_switched_threads): Remove.
5818 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5819 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5820 (lin_lwp_prepare_to_proceed): Remove prototype.
5821 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5822 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5823
4add8633
TR
58242003-06-18 Theodore A. Roth <troth@openavr.org>
5825
5826 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5827 trad-frame.h.
5828 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5829 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5830 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5831 (AVR_PROLOGUE_*): Enumerate prologue types.
5832 (struct frame_extra_info): Remove.
5833 (struct avr_unwind_cache): Define.
5834 (avr_write_sp): Delete function.
5835 (avr_read_fp): Ditto.
5836 (avr_init_extra_frame_info): Ditto.
5837 (avr_pop_frame): Ditto.
5838 (avr_frame_saved_pc): Ditto.
5839 (avr_saved_pc_after_call): Ditto.
5840 (avr_push_return_address): Ditto.
5841 (avr_frame_chain): Ditto.
5842 (avr_store_struct_return): Ditto.
5843 (avr_push_arguments): Ditto.
5844 (avr_scan_prologue): Update comments. Changed to set up the info for
5845 cache unwinding. Now returns end of prologue PC.
5846 (avr_skip_prologue): Better handling of functions lacking a prologue
5847 by using avr_scan_prologue.
5848 (avr_scan_arg_moves): New function.
5849 (avr_saved_regs_unwinder): Ditto.
5850 (avr_frame_unwind_cache): Ditto.
5851 (avr_unwind_pc): Ditto.
5852 (avr_frame_this_id): Ditto.
5853 (avr_frame_prev_register): Ditto.
5854 (avr_frame_p): Ditto.
5855 (avr_frame_base_address ): Ditto.
5856 (avr_unwind_dummy_id): Ditto.
5857 (avr_push_dummy_code): Ditto.
5858 (push_stack_item): Ditto.
5859 (pop_stack_item): Ditto.
5860 (avr_push_dummy_call): Ditto.
5861 (struct stack_item): Define.
5862 (avr_frame_unwind): Declare structure.
5863 (avr_frame_base): Ditto.
5864 (avr_gdbarch_init): Remove calls to
5865 set_gdbarch_deprecated_init_frame_pc,
5866 set_gdbarch_deprecated_target_read_fp,
5867 set_gdbarch_deprecated_dummy_write_sp,
5868 set_gdbarch_deprecated_fp_regnum,
5869 set_gdbarch_deprecated_push_arguments,
5870 set_gdbarch_deprecated_push_return_address,
5871 set_gdbarch_deprecated_pop_frame,
5872 set_gdbarch_deprecated_store_struct_return,
5873 set_gdbarch_deprecated_frame_init_saved_regs,
5874 set_gdbarch_deprecated_init_extra_frame_info,
5875 set_gdbarch_deprecated_frame_chain,
5876 set_gdbarch_deprecated_frame_saved_pc,
5877 set_gdbarch_deprecated_saved_pc_after_call.
5878 Add calls to set_gdbarch_push_dummy_call,
5879 set_gdbarch_push_dummy_code,
5880 frame_unwind_append_predicate,
5881 frame_base_set_default,
5882 set_gdbarch_unwind_dummy_id,
5883 set_gdbarch_unwind_pc.
5884 Wrap a long line.
5885
7be04a68
MS
58862003-06-18 Corinna Vinschen <vinschen@redhat.com>
5887
5888 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5889 registers for H8/300S.
5890 (h8300_print_registers_info): Ditto.
8ffd9b1b 5891 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5892
ae087d01
DJ
58932003-06-18 Daniel Jacobowitz <drow@mvista.com>
5894
5895 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5896 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5897 (lin_lwp_wait): Likewise. Update comments.
5898 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5899 (pull_pid_from_list, linux_record_stopped_pid): New.
5900
07d8f827
SC
59012003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5902
5903 * ada-lang.c (scan_discrim_bound): Name first argument.
5904 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5905 declared by ALL_BLOCK_SYMBOLS.
5906
7cb47b14
SC
59072003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5908
5909 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5910 ("regcache.h"): Include it.
5911 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5912
6ad8ae5c
DJ
59132003-06-17 Daniel Jacobowitz <drow@mvista.com>
5914
5915 * NEWS: Mention gdbserver detach change and "disconnect" command.
5916 * infcmd.c (disconnect_command): New function.
5917 (_initialize_infcmd): Add ``disconnect'' command.
5918 * remote.c (remote_async_detach): Delete.
5919 (remote_detach): Merge remote_async_detach.
5920 (remote_disconnect): New.
5921 (init_remote_ops): Set to_disconnect.
5922 (init_remote_cisco_ops): Likewise.
5923 (init_remote_async_ops): Likewise. Use remote_detach.
5924 * target.c (cleanup_target): Default to_disconnect.
5925 (update_current_target): Inherit to_disconnect.
5926 (target_disconnect, debug_to_disconnect): New functions.
5927 (setup_target_debug): Set to_disconnect.
5928 * target.h (struct target_ops): Add to_disconnect.
5929 (target_disconnect): Add prototype.
5930
687595f9
DJ
59312003-06-17 Daniel Jacobowitz <drow@mvista.com>
5932
5933 * breakpoint.c (insert_catchpoint): New function.
5934 (insert_breakpoints): Use catch_exceptions to call
5935 insert_catchpoint. Disable catchpoints if they fail to insert.
5936
29239a8f
DJ
59372003-06-17 Daniel Jacobowitz <drow@mvista.com>
5938
5939 * symfile.c (reread_symbols): Clear sym_private.
5940
2cdf3c63
AC
59412003-06-17 Andrew Cagney <cagney@redhat.com>
5942
5943 * trad-frame.h (struct frame_info): Add opaque declaration.
5944 * remote-fileio.h (struct cmd_list_element): Add opaque
5945 declaration.
5946 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5947 comments.
5948
cf0e1e0d
DJ
59492003-06-17 Daniel Jacobowitz <drow@mvista.com>
5950
5951 * remote.c (remote_prepare_to_store): Replace call to
5952 deprecated_read_register_bytes with multiple regcache_raw_read
5953 calls.
5954
192cdb19
KW
59552003-06-17 Kris Warkentin <kewarken@qnx.com>
5956
5957 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5958 (nto_find_and_open_solib): Likewise.
5959 (nto_init_solib_absolute_prefix): Likewise.
5960 (_initialize_nto_tdep): Fix indentation.
5961
89929b45
KW
59622003-06-17 Kris Warkentin <kewarken@qnx.com>
5963
5964 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5965
46019f27
KW
59662003-06-17 Kris Warkentin <kewarken@qnx.com>
5967
5968 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5969
1a38736e
JB
59702003-06-17 Jim Blandy <jimb@redhat.com>
5971
5972 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5973
3605c34a
TR
59742003-06-16 Theodore A. Roth <troth@openavr.org>
5975
5976 * avr-tdep.c (avr_extract_return_value): New function.
5977 (avr_gdbarch_init): Set extract_return_value method.
5978
870b3035
AC
59792003-06-16 Andrew Cagney <cagney@redhat.com>
5980
5981 * frame.h (deprecated_get_next_frame_hack): Declare.
5982 * frame.c (legacy_saved_regs_prev_register): Only require
5983 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5984 there are always saved regs.
5985 (deprecated_generic_get_saved_register): Do not require
5986 DEPRECATED_FRAME_INIT_SAVED_REGS.
5987 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5988 use frame ID unwind instead.
5989 (deprecated_get_next_frame_hack): New function.
5990
63d47a7d
CV
59912003-06-16 Corinna Vinschen <vinschen@redhat.com>
5992
5993 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5994 (h8300_push_dummy_call): ...this function. Some minor optimization.
5995 (h8300_push_return_address): Remove.
5996 (h8300_gdbarch_init): Remove calls to
5997 set_gdbarch_deprecated_dummy_write_sp,
5998 set_gdbarch_deprecated_push_arguments and
5999 set_gdbarch_deprecated_push_return_address.
6000 Add call to set_gdbarch_push_dummy_call.
6001
4bb1dc5e
CV
60022003-06-16 Corinna Vinschen <vinschen@redhat.com>
6003
6004 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6005 (E_PSEUDO_EXR_REGNUM): Ditto.
6006 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6007 registers into safe registers.
4bb1dc5e
CV
6008 (h8300_skip_prologue): Check for stm instruction to push registers
6009 used for register variables onto stack.
6010 (gdb_print_insn_h8300): Remove.
6011 (h8300_examine_prologue): Add a comment.
6012 (h8300_register_name): Take pseudo registers into account.
6013 (h8300s_register_name): Ditto.
6014 (h8300sx_register_name): Ditto.
6015 (h8300_print_register): Ditto.
6016 (h8300_print_registers_info): Define "nice" printing order.
6017 (h8300_saved_pc_after_call): Take pseudo registers into account.
6018 (h8300_register_type): Ditto. Return type used for remote connection
6019 when requesting real CCR or EXR register, return actual type when
6020 requesting pseudo CCR or EXR.
6021 (h8300_pseudo_register_read): New function.
6022 (h8300_pseudo_register_write): Ditto.
6023 (h8300_dbg_reg_to_regnum): Ditto.
6024 (h8300s_dbg_reg_to_regnum): Ditto.
6025 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6026 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6027 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6028 set_gdbarch_print_insn architecture dependent.
6029 Call set_gdbarch_pseudo_register_read and
6030 set_gdbarch_pseudo_register_write.
6031 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6032
a59fe496
AC
60332003-06-16 Andrew Cagney <cagney@redhat.com>
6034
6035 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6036 * gdbarch.h, gdbarch.c: Re-generate.
6037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6038 * s390-tdep.c (s390_gdbarch_init): Update.
6039 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6040 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6041 * mips-tdep.c (mips_gdbarch_init): Update.
6042 * mcore-tdep.c (mcore_gdbarch_init): Update.
6043 * cris-tdep.c (cris_gdbarch_init): Update.
6044 * infcall.c (call_function_by_hand): Update.
6045 * ia64-tdep.c (ia64_push_arguments): Update comment.
6046 * frame.c (legacy_get_prev_frame): Do not assume
6047 SAVE_DUMMY_FRAME_TOS_P.
6048 * dummy-frame.c (find_dummy_frame): Update comment.
6049
6f4e5a41
AC
60502003-06-16 Andrew Cagney <cagney@redhat.com>
6051
6052 * regcache.c (do_cooked_read): Do not use register_valid_p.
6053
72fab697
TR
60542003-06-15 Theodore A. Roth <troth@openavr.org>
6055
6056 * avr-tdep.c (avr_register_type): Remove a blank line.
6057 (avr_scan_prologue): Correct some comments.
6058
e3d8b004
TR
60592003-06-15 Theodore A. Roth <troth@openavr.org>
6060
6061 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6062 prologue types.
8ffd9b1b 6063 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6064 option.
6065 Add code to scan -mcall-prologues for mega devices.
6066
866b76ea
TR
60672003-06-15 Theodore A. Roth <troth@openavr.org>
6068
6069 * avr-tdep.c (avr_register_byte): Delete function.
6070 (avr_register_raw_size): Delete function.
6071 (avr_register_virtual_size): Delete function.
6072 (avr_register_virtual_type): Delete function.
6073 (avr_register_type): New function.
6074 (avr_address_to_pointer): Remove unused code.
6075 (avr_read_fp): Need to read FP as two separate bytes due to change to
6076 avr_register_type() usage.
6077 (avr_gdbarch_init): Don't set deprecated_register_size.
6078 Don't set deprecated_register_bytes.
6079 Don't set deprecated_register_byte.
6080 Don't set deprecated_register_raw_size.
6081 Don't set deprecated_max_register_raw_size.
6082 Don't set deprecated_register_virtual_size.
6083 Don't set deprecated_max_register_virtual_size.
6084 Don't set deprecated_register_virtual_type.
6085 Set register_type method.
6086
3993f6b1
DJ
60872003-06-15 Daniel Jacobowitz <drow@mvista.com>
6088
6089 * Makefile.in (linux-nat.o): Add rule.
6090 * linux-nat.c: New file.
6091 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6092 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6093 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6094 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6095 * config/arm/linux.mh (NATDEPFILES): Likewise.
6096 * config/i386/linux.mh (NATDEPFILES): Likewise.
6097 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6098 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6099 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6100 * config/mips/linux.mh (NATDEPFILES): Likewise.
6101 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6102 * config/s390/s390.mh (NATDEPFILES): Likewise.
6103 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6104
786a90bb
MK
61052003-06-15 Mark Kettenis <kettenis@gnu.org>
6106
6107 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6108 replace out-of-date comment.
6109
3bd3f01e
AC
61102003-06-15 Andrew Cagney <cagney@redhat.com>
6111
6112 * rdi-share/host.h (Fail): Change to a varargs function.
6113 * remote-rdi.c (Fail): Update.
8ffd9b1b 6114
de5b9bb9
MK
61152003-06-15 Mark Kettenis <kettenis@gnu.org>
6116
6117 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6118 (i386_convert_register_p, i386_register_to_value,
6119 i386_register_from_value): Handle types longer than 8 bytes.
6120
d532c08f
MK
61212003-06-15 Mark Kettenis <kettenis@gnu.org>
6122
6123 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6124 Move floating-point code to new function in i387-tdep.c.
6125 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6126 New functions containing code moved here from i386-tdep.c.
6127 * i387-tdep.h: Add opaque declaration for `struct type'.
6128 (i387_register_to_value, i387_value_to_register): New prototypes.
6129 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6130 (x86_64_init_abi): Set convert_register_p, register_to_value and
6131 value_to_register here.
8ffd9b1b 6132
42c466d7
AC
61332003-06-14 Andrew Cagney <cagney@redhat.com>
6134
6135 * mips-tdep.c (mips_register_to_value): Make static.
6136 (mips_value_to_register): Make static.
6137 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6138 * ia64-tdep.c (ia64_register_raw_size): Make static.
6139 (ia64_register_virtual_size): Make static.
6140 (ia64_register_byte): Make static.
6141 * i387-tdep.c: Include "i387-tdep.h".
6142 (print_387_control_word): Delete function.
6143 (print_387_status_word): Delete function.
6144 (print_387_status_bits): Delete function.
6145 (print_387_control_bits): Delete function.
6146 * Makefile.in (i387-tdep.o): Update dependencies.
6147 * rdi-share/host.h (Fail): Declare.
6148 * remote-rdi.c (Fail): Update to match declaration.
6149
2a9cda49
AC
61502003-06-14 Andrew Cagney <cagney@redhat.com>
6151
6152 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6153 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6154 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6155 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6156 * README: Delete reference to remote-array.
6157 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6158 (remote-array.o): Delete target.
6159 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6160 * remote-array.c: Delete file.
6161
ff2e87ac
AC
61622003-06-14 Andrew Cagney <cagney@redhat.com>
6163 Mark Kettenis <kettenis@gnu.org>
6164
6165 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6166 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6167 parameter with "frame".
6168 * gdbarch.h, gdbarch.c: Re-generate.
6169 * frame.h (put_frame_register): Declare.
6170 * frame.c (put_frame_register): New function.
6171 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6172 (legacy_register_to_value): Rewrite, use "frame" to get the
6173 register value.
6174 (legacy_value_to_register): Rewrite, use "frame" to find the
6175 register's location before storing.
6176 * arch-utils.h (legacy_convert_register_p): Update.
6177 (legacy_register_to_value, legacy_value_to_register): Update.
6178 * findvar.c (value_from_register): Rewrite, eliminate use of
6179 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6180 "frame" to REGISTER_TO_VALUE.
6181 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6182 lval_reg_frame_relative + lval_register branch of the switch. Do
6183 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6184 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6185 I386_EDI_REGNUM): New defines.
6186 (i386_next_regnum, i386_convert_register_p,
6187 i386_register_to_value, i386_value_to_register): New functions.
6188 (i386_register_convertible, i386_register_convert_to_virtual,
6189 i386_convert_to_raw): Remove functions.
6190 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6191 value_to_register instead of register_convertible,
6192 register_convert_to_virtual and register_convert_to_raw.
6193 * mips-tdep.c (mips_convert_register_p): New function.
6194 (mips_value_to_register): Replace mips_register_convert_from_type.
6195 (mips_register_to_value): Replace mips_register_convert_to_type.
6196 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6197 register_to_value.
6198 * alpha-tdep.c (alpha_convert_register_p): Update.
6199 (alpha_value_to_register): Update, store the register.
6200 (alpha_register_to_value): Update, fetch the register.
6201
98be1e77
TR
62022003-06-14 Theodore A. Roth <troth@openavr.org>
6203
6204 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6205 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6206 Don't set deprecated_call_dummy_words.
6207 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6208 Don't set remote_translate_xfer_address.
6209 (avr_io_reg_read_command): Remove commented out debug printf.
6210 Wrap a long line.
6211
57bc6122
TR
62122003-06-14 Theodore A. Roth <troth@openavr.org>
6213
6214 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6215 causes gdb to seg fault.
6216
eb01fc62
DJ
62172003-06-14 Daniel Jacobowitz <drow@mvista.com>
6218
6219 * sparc-nat.c (fetch_inferior_registers): Correct
6220 a reference to "registers".
6221
3b3e6bee
DJ
62222003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6223
6224 * Makefile.in (exc_request_U_h): Define
6225 (exc_request_S_h): Likewise.
6226 (msg_reply_S_h): Likewise.
6227 (msg_U_h): Likewise.
6228 (notify_S_h): Likewise.
6229 (process_reply_S_h): Likewise.
6230 (gnu-nat.o): Depend on gdb_obstack_h
6231 * gnu-nat.c: Include "gdb_obstack.h".
6232
b8de8283
AC
62332003-06-13 Andrew Cagney <cagney@redhat.com>
6234
6235 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6236 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6237
f3be58bc
AC
62382003-06-13 Andrew Cagney <cagney@redhat.com>
6239
6240 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6241 when deprecated REGISTER macros can be deleted.
6242 * gdbarch.h, gdbarch.c: Re-generate.
6243
4c0122c8
JB
62442003-06-13 Jim Blandy <jimb@redhat.com>
6245
6246 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6247 Linux entry point symbols for _dl_debug_state, too.
6248
3e210248
AC
62492003-06-13 Andrew Cagney <cagney@redhat.com>
6250
6251 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6252 available, do not use the FP register, and always save the TOS.
6253 * dummy-frame.c (dummy_frame_this_id): Do not assert
6254 SAVE_DUMMY_FRAME_TOS.
6255 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6256 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6257 (i386_push_dummy_call): Add 8 to the returned SP.
6258 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6259 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6260 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6261 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6262 (x86_64_push_dummy_call): Return "sp + 16".
6263 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6264 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6265 save_dummy_frame_tos.
6266
0b65af49
JB
62672003-06-13 Jim Blandy <jimb@redhat.com>
6268
6269 * frv-tdep.c (frv_use_struct_convention): Delete static
6270 declaration for function deleted in my change of 2003-06-12.
6271
4ea2465e
TR
62722003-06-13 Theodore A. Roth <troth@openavr.org>
6273
6274 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6275 (avr_pointer_to_address): Shift code addrs left 1 bit.
6276 (avr_convert_from_func_ptr_addr): Delete function since operation is
6277 better handled by avr_address_to_pointer and avr_pointer_to_address.
6278 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6279
1581182a
MK
62802003-06-13 Mark Kettenis <kettenis@gnu.org>
6281
6282 From Kelley Cook <kelleycook@wideopenwest.com>:
6283 * configure.host: Accept i[34567]86 variants.
6284 * configure.tgt: Likewise.
6285 * nlm/configure.in: Likewise.
6286 * nlm/configure: Regenerated.
6287
7aa1783e
RE
62882003-06-13 Richard Earnshaw <rearnsha@arm.com>
6289
6290 * arm-tdep.c (solib-svr4.h): Dont' include it.
6291 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6292 * arm-linux-tdep.c: ... here. Make static.
6293 (arm_linux_init_abi): Register it.
6294 (solib-svr4.h): Include it.
6295 * Makefile.in: Update dependencies.
6296 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6297 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6298
0261a0d0
CV
62992003-06-13 Corinna Vinschen <vinschen@redhat.com>
6300
6301 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6302 indicate registers used for return values.
6303 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6304 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6305 members.
6306 (h8300_init_extra_frame_info): Ditto.
6307 (h8300_frame_locals_address): Removed.
6308 (h8300_frame_args_address): Removed.
6309 (h8300_extract_return_value): Use new regcache structure. Only care
6310 for 16 bit CPUs.
6311 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6312 (h8300_store_return_value): Use new regcache structure. Only care
6313 for 16 bit CPUs.
6314 (h8300h_store_return_value): Same function for 32 bit CPUs.
6315 (h8300_store_struct_return): Removed.
6316 (h8300_extract_struct_value_address): Use new regcache structure.
6317 (h8300h_extract_struct_value_address): Removed.
6318 (h8300_push_dummy_code): New function.
6319 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6320 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6321 set_gdbarch_store_return_value architecture dependent.
6322 Call set_gdbarch_push_dummy_code and
6323 set_gdbarch_extract_struct_value_address.
6324 Remove calls to set_gdbarch_frame_args_address,
6325 set_gdbarch_frame_locals_address,
6326 set_gdbarch_deprecated_store_struct_return,
6327 set_gdbarch_deprecated_extract_return_value,
6328 set_gdbarch_deprecated_extract_struct_value_address,
6329 set_gdbarch_deprecated_call_dummy_words and
6330 set_gdbarch_deprecated_sizeof_call_dummy_words.
6331
055c394a
CV
63322003-06-13 Corinna Vinschen <vinschen@redhat.com>
6333
6334 * h8300-tdep.c (h8300_register_byte): Remove.
6335 (h8300h_register_byte): Remove.
6336 (h8300_register_virtual_type): Remove. Substitute by...
6337 (h8300_register_type): New function.
6338 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6339 (h8300h_extract_struct_value_address): Ditto.
6340 (h8300_gdbarch_init): Drop calls to
6341 set_gdbarch_deprecated_register_byte and
6342 set_gdbarch_deprecated_register_virtual_type.
6343 Add call to set_gdbarch_register_type.
6344
9c04cab7
AC
63452003-06-13 Andrew Cagney <cagney@redhat.com>
6346
6347 * gdbarch.sh: Update comments on registers.
6348 (deprecated_register_byte): Rename register_byte.
6349 (deprecated_register_raw_size): Rename register_raw_size.
6350 (deprecated_register_virtual_size): Rename register_virtual_size.
6351 (deprecated_register_virtual_type): Rename register_virtual_type.
6352 * gdbarch.h, gdbarch.c: Re-generate.
6353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6354 * vax-tdep.c (vax_gdbarch_init): Update.
6355 * v850-tdep.c (v850_gdbarch_init): Update.
6356 * sparc-tdep.c (sparc_gdbarch_init): Update.
6357 * sh-tdep.c (sh_gdbarch_init): Update.
6358 * s390-tdep.c (s390_gdbarch_init): Update.
6359 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6360 * ns32k-tdep.c: Update.
6361 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6362 * mips-tdep.c (mips_gdbarch_init): Update.
6363 * mcore-tdep.c (mcore_gdbarch_init): Update.
6364 * m68k-tdep.c (m68k_gdbarch_init): Update.
6365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6366 * ia64-tdep.c (ia64_gdbarch_init): Update.
6367 * hppa-tdep.c (hppa_gdbarch_init): Update.
6368 * h8300-tdep.c (h8300_gdbarch_init): Update.
6369 * frv-tdep.c (frv_gdbarch_init): Update.
6370 * cris-tdep.c (cris_gdbarch_init): Update.
6371 * avr-tdep.c (avr_gdbarch_init): Update.
6372 * alpha-tdep.c (alpha_gdbarch_init): Update.
6373 * arm-tdep.c (arm_gdbarch_init): Update.
6374
b060cbea
AC
63752003-06-13 Andrew Cagney <cagney@redhat.com>
6376
6377 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6378 mips_o32_use_struct_convention with always_use_struct_convention.
6379
0fc9922a
DC
63802003-06-12 David Carlton <carlton@kealia.com>
6381
6382 * cp-namespace.c (cp_set_block_scope): Comment out
6383 processing_has_namespace_info branch.
6384
1fd35568
JB
63852003-06-12 Jim Blandy <jimb@redhat.com>
6386
f470a70a
JB
6387 Recognize and skip 64-bit PowerPC Linux linkage functions.
6388 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6389 insn_pattern, insns_match_pattern, d_field, ds_field): New
6390 functions, macros, and types for working with PPC instructions.
6391 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6392 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6393 ppc64_skip_trampoline_code): New functions, variables, and macros
6394 for recognizing and skipping linkage functions.
6395 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6396 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6397
49ff75ad
JB
6398 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6399 register offsets for both the 32- and 64-bit interfaces.
6400
bd918c83
JB
6401 Actually finish the job started by my change of 2003-05-29.
6402 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6403 other #definition of this.
6404 (ppc_linux_skip_trampoline_code): Remove declaration.
6405 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6406 static.
6407 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6408 method for GDBARCH.
6409
6410 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6411 'long' on ppc64-*-linux*.
6412
f8c59253
JB
6413 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6414 isn't #defined, assume the register doesn't exist: act as if
6415 tdep->ppc_mq_regnum were -1.
6416
8fbb30b1
JB
6417 * configure.host, configure.tgt: Add entries for
6418 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6419 powerpc/linux.mt.
6420 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6421 New files.
6422
1fd35568
JB
6423 * arch-utils.c (always_use_struct_convention): New function.
6424 * arch-utils.h (always_use_struct_convention): New prototype.
6425 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6426 (alpha_gdbarch_init): Register always_use_struct_convention,
6427 instead of alpha_use_struct_convention.
6428 * cris-tdep.c (cris_use_struct_convention): Delete.
6429 (cris_gdbarch_init): Register always_use_struct_convention,
6430 instead of cris_use_struct_convention.
6431 * frv-tdep.c (frv_use_struct_convention): Delete.
6432 (frv_gdbarch_init): Register always_use_struct_convention,
6433 instead of frv_use_struct_convention.
6434 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6435 (h8300_gdbarch_init): Register always_use_struct_convention,
6436 instead of h8300_use_struct_convention.
e3305dd9 6437 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6438 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6439 instead of mips_o32_use_struct_convention.
6440
e14e6e9c
AC
64412003-06-12 Andrew Cagney <cagney@redhat.com>
6442
6443 * wince.c: Include "mips-tdep.h".
6444 * mips-tdep.h (mips_next_pc): Declare.
6445 * mcore-tdep.c: Make more local functions static.
6446 * Makefile.in (wince.o): Update dependencies.
6447
2335f48e
DC
64482003-06-12 David Carlton <carlton@kealia.com>
6449
6450 * symtab.c (lookup_symbol_aux_minsyms): Replace
6451 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6452 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6453 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6454 SYMBOL_NATURAL_NAME.
6455
f70a7d61
AS
64562003-06-12 Andreas Schwab <schwab@suse.de>
6457
6458 * Makefile.in (tuiDisassem.o): Update dependencies.
6459
b6429628
DC
64602003-06-12 David Carlton <carlton@bactrian.org>
6461
6462 * symtab.h: Delete declaration of make_symbol_overload_list.
6463 Add declaration of lookup_partial_symbol.
6464 * symtab.c (remove_params): Move to cp-support.c.
6465 (overload_list_add_symbol, make_symbol_overload_list)
6466 (sym_return_val_size, sym_return_val_index): Ditto.
6467 (lookup_partial_symbol): Make extern.
6468 * cp-support.h: Add declaration of make_symbol_overload_list.
6469 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6470 symtab.h, and block.h.
6471 (remove_params): Move here from symtab.c.
6472 (overload_list_add_symbol, make_symbol_overload_list)
6473 (sym_return_val_size, sym_return_val_index): Ditto.
6474 * valops.c: Include cp-support.h.
6475 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6476 frame_h, and block_h.
6477 (valops.o): Depend on cp_support_h.
6478
084edea5
CV
64792003-06-12 Corinna Vinschen <vinschen@redhat.com>
6480
6481 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6482 substitute by NUM_REGS throughout.
6483 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6484 (h8300s_register_name): New function for H8S registers.
6485 (h8300sx_register_name): Ditto for H8SX registers.
6486 (h8300_print_register): Revise register printing, avoid depending
6487 on 32 bit long.
0261a0d0 6488 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6489 (h8300h_register_byte): New function for any other architecture.
6490 (h8300_register_raw_size): Remove.
6491 (h8300_register_virtual_type): Revise to return actually useful
6492 type.
6493 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6494 (h8300h_extract_struct_value_address): New function for any other
6495 architecture.
6496 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6497 set_gdbarch_register_name, set_gdbarch_register_byte,
6498 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6499 Remove calls to set_gdbarch_deprecated_register_size,
6500 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6501 set_gdbarch_deprecated_max_register_raw_size,
6502 set_gdbarch_register_virtual_size and
6503 set_gdbarch_deprecated_max_register_virtual_size entirely.
6504 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6505 set_gdbarch_long_double_bit.
6506
06194148
JJ
65072003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6508
8ffd9b1b
AJ
6509 * doublest.c (convert_doublest_to_floatformat): When dealing
6510 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6511 processing a full 32 bits of mantissa.
6512
de4f826b
DC
65132003-06-11 David Carlton <carlton@bactrian.org>
6514
6515 * dictionary.h: New.
6516 * dictionary.c: New.
6517 * block.h: Add opaque declaration for struct dictionary.
6518 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6519 'sym' members.
6520 (BLOCK_DICT): New macro.
6521 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6522 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6523 BLOCK_SHOULD_SORT.
6524 (ALL_BLOCK_SYMBOLS): Update definition.
6525 * Makefile.in (SFILES): Add dictionary.c.
6526 (dictionary_h): New.
6527 (COMMON_OBS): Add dictionary.o.
6528 (dictionary.o): New.
6529 (ada-lang.o): Depend on dictionary_h.
6530 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6531 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6532 (mi-cmd-stack.o): Ditto.
6533 (gdbtk-cmds.o): Update dependencies.
6534 (gdbtk-stack.o): Ditto.
6535 * ada-lang.c: Include dictionary.h.
6536 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6537 (fill_in_ada_prototype, debug_print_block): Ditto.
6538 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6539 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6540 'is_sorted'.
6541 * mdebugread.c: Include dictionary.h.
6542 (struct parse_stack): Delete 'maxsyms' member.
6543 (parse_symbol): Update calls to new_block. Delete calls to
6544 shrink_block. Use dictionary methods.
6545 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6546 Update calls to new_symtab. Don't maintain maxsyms data.
6547 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6548 (add_symbol): Just call dict_add_symbol.
6549 (new_symtab): Delete 'maxsyms' argument.
6550 (new_symtab): Update calls to new_block.
6551 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6552 (shrink_block): Delete function.
6553 (fixup_sigtramp): Update call to new_block. Add symbol via
6554 dict_add_symbol.
6555 * jv-lang.c: Include dictionary.h.
6556 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6557 appropriately. Set class_symtab->free_func. Make sure the
6558 blockvector is big enough to hold two blocks.
6559 (add_class_symtab_symbol): Use dictionary methods.
6560 (free_class_block): New function.
6561 (type_from_class): Replace explicit iteration by
6562 ALL_BLOCK_SYMBOLS.
6563 * symtab.h (struct symtab): Replace 'free_ptr' method by
6564 'free_func'.
6565 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6566 sort_symtab_syms.
6567 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6568 sort_symtab_syms.
6569 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6570 Include dictionary.h.
6571 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6572 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6573 sort_symtab_syms.
6574 * objfiles.c: Include dictionary.h.
6575 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6576 * buildsym.c: Include dictionary.h.
6577 (finish_block): Use dictionary methods.
6578 (end_symtab): Set free_func to NULL, not free_ptr.
6579 * tracepoint.c: Include dictionary.h.
6580 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6581 (scope_info): Ditto.
6582 * stack.c: Include dictionary.h.
6583 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6584 (print_block_frame_labels, print_frame_arg_vars)
6585 (print_frame_args): Ditto.
6586 * symmisc.c (free_symtab_block): Use dictionary methods.
6587 (dump_symtab): Ditto.
6588 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6589 Include dictionary.h.
6590 * symfile.h: Delete declarations of sort_block_syms,
6591 sort_symtab_syms.
6592 * symfile.c (sort_block_syms): Delete.
6593 (sort_symtab_syms): Delete.
6594 * symtab.c: Include dictionary.h.
6595 (lookup_block_symbol): Use dictionary iterators.
6596 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6597 (search_symbols, make_symbol_completion_list): Ditto.
6598 (make_symbol_overload_list): Ditto.
6599 * valops.c (value_of_local): Use dict_empty.
6600 Include dictionary.h.
6601
a31f978c
JB
66022003-06-11 J. Brobecker <brobecker@gnat.com>
6603
6604 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6605
526e70c0
DC
66062003-06-11 David Carlton <carlton@bactrian.org>
6607
6608 * block.h (BLOCK_SHOULD_SORT): Delete.
6609 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6610 blocks.
6611 * ada-lang.c (ada_add_block_symbols): Ditto.
6612 * symfile.c (sort_block_syms): Delete.
6613 (sort_symtab_syms): Ditto.
6614 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6615 declarations.
6616 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6617 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6618 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6619 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6620 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6621 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6622 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6623
33c08150
JJ
66242003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6625
8ffd9b1b 6626 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6627 bits to 128.
6628
781a750d
AC
66292003-06-11 Andrew Cagney <cagney@redhat.com>
6630
6631 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6632 REGISTER_CONVERTIBLE.
6633 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6634 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6635 * gdbarch.h, gdbarch.c: Re-generate.
6636 * arch-utils.h (deprecated_register_convertible_not): Rename
6637 generic_register_convertible_not.
6638 * arch-utils.c (deprecated_register_convertible_not): Rename
6639 generic_register_convertible.
6640 (legacy_convert_register_p, legacy_register_to_value): Update.
6641 * sh-tdep.c (sh64_push_arguments): Update.
6642 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6643 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6644 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6645 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6646 * arch-utils.c (legacy_value_to_register): Update.
6647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6648 (rs6000_register_convert_to_raw): Make parameter "from" const.
6649 * mips-tdep.c (mips_gdbarch_init): Update.
6650 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6651 * infcmd.c (default_print_registers_info): Update.
6652 * ia64-tdep.c (ia64_gdbarch_init): Update.
6653 (ia64_register_convert_to_raw): Make parameter "from" const.
6654 * i386-tdep.c (i386_gdbarch_init): Update.
6655 (i386_register_convert_to_raw): Update.
6656
cd90e54f
AC
66572003-06-11 Andrew Cagney <cagney@redhat.com>
6658
6659 * remote-fileio.c: Include "remote-fileio.h".
6660 * Makefile.in (remote-fileio.o): Update dependencies.
6661 (remote_fileio_h): Fix typo.
6662
a78f21af
AC
66632003-06-11 Andrew Cagney <cagney@redhat.com>
6664
6665 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6666 (xstormy16_save_dummy_frame_tos): Make static.
6667 (_initialize_xstormy16_tdep): Add declaration.
6668 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6669 * v850-tdep.c: Make local functions static.
6670 (_initialize_v850_tdep): Add declaration.
6671 * sparc-tdep.c: Make local functions static.
6672 (_initialize_sparc_tdep): Add declaration.
6673 * sh-tdep.c: Make local functions static.
6674 (_initialize_sh_tdep): Add declaration.
6675 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6676 * s390-tdep.c: Make local functions static.
6677 (_initialize_s390_tdep): Add declaration.
6678 * dbxread.c (find_stab_function_addr): Make static.
6679 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6680 * ocd.c (_initialize_remote_ocd): Add declaration.
6681 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6682 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6683 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6684 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6685 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6686 * remote-array.c (_initialize_array): Add declaration.
6687 (_initialize_remote_monitors): Add declaration.
6688 * remote-mips.c: Make local functions static.
6689 (_initialize_remote_mips): Add declaration.
6690 * mcore-tdep.c: Make all local functions static.
6691 (_initialize_mcore_tdep): Add declaration.
6692 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6693 * abug-rom.c (_initialize_abug_rom): Add declaration.
6694 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6695 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6696 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6697 * remote-est.c (_initialize_est): Add declaration.
6698 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6699 (m68hc11_call_dummy_address): Make static.
6700 * ia64-tdep.c: Make local functions static.
6701 (_initialize_ia64_tdep): Add declaration.
6702 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6703 * monitor.c (monitor_wait_filter): Make static.
6704 (_initialize_remote_monitors): Add declaration.
6705 * remote-hms.c (_initialize_remote_hms): Add declaration.
6706 * remote-e7000.c (fetch_regs_from_dump): Make static.
6707 (expect_n): Make static.
6708 (_initialize_remote_e7000): Add declaration.
6709 * ser-e7kpc.c: Always include "defs.h".
6710 (_initialize_ser_e7000pc): Add declaration.
6711 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6712 * cris-tdep.c: Make all but one function static.
6713 (_initialize_cris_tdep): Add declaration.
6714 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6715 * solib.c (update_solib_list): Make static.
6716 (_initialize_solib): Add declaration.
6717 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6718 (_initialize_avr_tdep): Add declaration.
6719 * remote-rdi.c (voiddummy): Make static.
6720 (_initialize_remote_rdi): Add declaration.
6721 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6722 * remote-rdp.c (send_rdp): Make static.
6723 (_initialize_remote_rdp): Add declaration.
6724 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6725
cbcdb1f5
CV
67262003-06-11 Corinna Vinschen <vinschen@redhat.com>
6727
6728 * remote-fileio.c: Make ari happy.
6729
a191ea8d
JB
67302003-06-10 J. Brobecker <brobecker@gnat.com>
6731
6732 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6733 fetching the trailing bytes of the buffer we are about to write.
6734
0ef75e11
AC
67352003-06-10 Andrew Cagney <cagney@redhat.com>
6736
6737 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6738 * Makefile.in (remote-fileio.o): Update dependencies.
6739 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6740 include <setjmp.h>, or <sys/types.h> conditional on USG.
6741 (remote_fio_jmp_buf): Delete global variable.
6742
449092f6 67432003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6744 Martin M. Hunt <hunt@redhat.com>
449092f6 6745
559fa028
AC
6746 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6747 (SFILES): Add remote-fileio.c.
6748 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6749 dependencies for building remote.o.
449092f6
CV
6750 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6751 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6752 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6753 static storage class.
6754 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6755 'F' packet.
6756 (_initialize_remote): Call initialize_remote_fileio().
6757 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6758 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6759 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6760 (captured_main): Initialize new ui_files.
6761 * ui-file.c: Add read and fgets input functions.
6762 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6763 (null_file_read): New function.
6764 (ui_file_read): New function.
6765 (set_ui_file_read): New function.
6766 (stdio_file_read): New function.
6767 * ui-file.h: New type ui_file_read_ftype.
6768 (set_ui_file_read): Declare.
6769 (ui_file_read): Declare.
6770
248de703
AC
67712003-06-09 Andrew Cagney <cagney@redhat.com>
6772
6773 * frame.h (deprecated_unwind_get_saved_register): Rename
6774 generic_unwind_get_saved_register, update comments.
6775 * mips-tdep.c (mips_get_saved_register): Update.
6776 * frame.c (deprecated_unwind_get_saved_register): Update.
6777
0ed8aa57
AC
67782003-06-09 Andrew Cagney <cagney@redhat.com>
6779
6780 * vax-tdep.c (vax_frame_locals_address): Delete function.
6781 (vax_gdbarch_init): Do not set frame_locals_address.
6782 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6783 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6784 * s390-tdep.c (s390_frame_args_address): Delete function.
6785 (s390_gdbarch_init): Do not set frame_args_address or
6786 frame_locals_address.
6787 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6788 (ns32k_gdbarch_init): Do not set frame_locals_address.
6789 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6790 (hppa_frame_locals_address): Delete function.
6791 (hppa_gdbarch_init): Do not set frame_args_address, or
6792 frame_locals_address.
6793 * arm-tdep.c (arm_frame_args_address): Delete.
6794 (arm_frame_locals_address): Delete.
6795 (arm_gdbarch_init): Do not set frame_args_address, or
6796 frame_locals_address.
6797
983a287a
AC
67982003-06-09 Andrew Cagney <cagney@redhat.com>
6799
6800 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6801 * gdbarch.h, gdbarch.c: Re-generate.
6802 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6803 * arch-utils.c (frame_num_args_unknown): Delete function.
6804 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6805 (frame_info): Use FRAME_NUM_ARGS_P.
6806 * arm-tdep.c (arm_frame_num_args): Delete function.
6807 (arm_gdbarch_init): Do not set frame_num_args.
6808 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6809 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6810 (hppa_gdbarch_init): Do not set frame_num_args.
6811 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6813 frame_num_args to default frame_num_args_unknown.
6814 * v850-tdep.c (v850_gdbarch_init): Ditto.
6815 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6816 * sh-tdep.c (sh_gdbarch_init): Ditto.
6817 * s390-tdep.c (s390_gdbarch_init): Ditto.
6818 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6819 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6820 * mips-tdep.c (mips_gdbarch_init): Ditto.
6821 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6822 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6824 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6825 * i386-tdep.c (i386_gdbarch_init): Ditto.
6826 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6827 * frv-tdep.c (frv_gdbarch_init): Ditto.
6828 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6829 * cris-tdep.c (cris_gdbarch_init): Ditto.
6830 * avr-tdep.c (avr_gdbarch_init): Ditto.
6831 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6832
8d3b0994
AC
68332003-06-09 Andrew Cagney <cagney@redhat.com>
6834
6835 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6836 (print_frame_args): Moved to "stack.c".
6837 * stack.c: Include "gdb_assert.h".
6838 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6839 (print_frame_args): Moved from "printcmd.c".
6840 * frame.h (print_frame_args): Delete declaration.
6841 * Makefile.in (stack.o): Update dependencies.
6842
25e3a86b
AC
68432003-06-08 Andrew Cagney <cagney@redhat.com>
6844
6845 * frame.c (get_prev_frame): Remove reference to
6846 frame_args_address_correct in comments.
6847 * frame-base.c (default_frame_args_address): Delete code
6848 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6849 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6850 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6851 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6852 (vax_frame_args_address_correct): Delete declaration.
6853
a9e5fdc2
AC
68542003-06-08 Andrew Cagney <cagney@redhat.com>
6855
6856 * gdbarch.sh (UNWIND_SP): Add.
6857 * gdbarch.h, gdbarch.c: Re-generate.
6858 * frame.c (frame_sp_unwind): New function.
6859 (get_frame_sp): New function.
6860 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6861 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6862 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6863 value.
6864 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6865 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6866
8983bd83
AC
68672003-06-08 Andrew Cagney <cagney@redhat.com>
6868
7fec2c59
AC
6869 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6870 REMOTE_BREAKPOINT.
6871 * remote.c: Update.
6872 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6873 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6874 * config/m68k/tm-sun3.h: Update.
6875 * config/m68k/tm-m68klynx.h: Update.
6876 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6877
8983bd83
AC
6878 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6879 trad_frame". Update comments.
6880 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6881 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6882 (trad_frame_register_value, trad_frame_prev_register): Update.
6883
b9362cc7
AC
68842003-06-08 Andrew Cagney <cagney@redhat.com>
6885
6886 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6887 from GCC's acinclude.m4.
6888 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6889 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6890 * main.c (error_init): Delete declaration.
6891 * defs.h (error_init): Declare.
6892 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6893 (rs6000_convert_from_func_ptr_addr): Make static.
6894 (_initialize_rs6000_tdep): Add declaration.
6895 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6896 (show_commands, set_verbose, show_history): Delete declaration.
6897 * top.h (set_verbose): Add declaration.
6898 (show_history, set_history, show_commands): Add declaration.
6899 (do_restore_instream_cleanup): Add declaration.
6900 * objc-lang.c (specialcmp): Make static.
6901 (print_object_command): Make static.
6902 (find_objc_msgsend): Make static.
6903 (find_objc_msgcall_submethod_helper): Make static.
6904 (find_objc_msgcall_submethod): Make static.
6905 (_initialize_objc_language): Add declaration.
6906 (find_implementation_from_class): Make static.
6907 (find_implementation): Make static.
6908 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6909 * objc-lang.h (lookup_struct_typedef): Add declaration.
6910 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6911 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6912 (do_restore_user_call_depth): Make static.
6913 (do_restore_instream_cleanup): Delete declaration.
6914 (dont_repeat): Delete declaration.
6915 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6916 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6917 * reggroups.c (_initialize_reggroup): Add declaration.
6918 * cp-support.c (_initialize_cp_support): Add declaration.
6919 * cp-abi.c (_initialize_cp_abi): Add declaration.
6920 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6921 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6922 (_initialize_gnu_v3_abi): Add declaration.
6923 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6924 (_initialize_gnu_v2_abi): Add declaration.
6925 * frame-base.c (_initialize_frame_base): Add declaration.
6926 * doublest.c (floatformat_from_length): Make static.
6927 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6928 * frame.c (create_sentinel_frame): Make static.
6929 (_initialize_frame): Add declaration.
6930 * top.c (do_catch_errors): Make static.
6931 (gdb_rl_operate_and_get_next_completion): Make static.
6932 * typeprint.c: Include "typeprint.h".
6933 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6934 (sentinel_frame_this_id): Make static.
6935 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6936 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6937 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6938 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6939 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6940 * maint.c (maintenance_print_architecture): Make static.
6941 * signals/signals.c (_initialize_signals): Add declaration.
6942 * std-regs.c (_initialize_frame_reg): Add declaration.
6943 * jv-exp.y (push_variable): ISO C definition.
6944 (push_qualified_expression_name): Ditto.
6945 * memattr.c (_initialize_mem): Add declaration.
6946 * remote.c (remote_check_watch_resources): Make static.
6947 (remote_stopped_by_watchpoint): Make static.
6948 (remote_stopped_data_address): Make static.
6949 * d10v-tdep.c (nr_dmap_regs): Make static.
6950 (a0_regnum): Make static.
6951 (d10v_frame_unwind_cache): Make static.
6952 (d10v_frame_p): Make static.
6953 * osabi.c (show_osabi): Make static.
6954 (_initialize_gdb_osabi): Add extern declaration.
6955 * gdbtypes.c (make_qualified_type): Make static.
6956 (safe_parse_type): Make static.
6957 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6958 * macrotab.c (macro_bcache_free): Make static.
6959 * interps.c (interp_set_quiet): Make static.
6960 (interpreter_exec_cmd): Make static.
6961 * stack.h (select_frame_command): New file.
6962 * stack.c: Include "stack.h".
6963 (select_frame_command_wrapper): Delete function.
6964 (select_frame_command): Make global.
6965 * infcall.c: Include "infcall.h".
6966 * linespec.c: Include "linespec.h".
6967 * symfile.c (sections_overlap): Make static.
6968 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6969 * charset.c (_initialize_charset): Add missing prototype.
6970 * regcache.c (init_legacy_regcache_descr): Make static.
6971 (do_regcache_xfree): Make static.
6972 (regcache_xfer_part): Make static.
6973 (_initialize_regcache): Add missing prototype.
6974 * breakpoint.c (parse_breakpoint_sals): Make static.
6975 (breakpoint_sals_to_pc): Make static.
6976 * interps.h (clear_interpreter_hooks): ISO C declaration.
6977 * Makefile.in (stack_h): Define.
6978 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6979 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6980
a0f267c7
AC
69812003-06-08 Andrew Cagney <cagney@redhat.com>
6982
6983 * Makefile.in (d10v-tdep.o): Update dependencies.
6984 (SFILES): Add trad-frame.c.
6985 (trad_frame_h): Define.
6986 (COMMON_OBS): Add trad-frame.o.
6987 (trad-frame.o): Specify dependencies.
6988 * d10v-tdep.c: Include "trad-frame.h".
6989 (saved_regs_unwinder): Delete function.
6990 (d10v_frame_prev_register): Use trad_frame_prev_register.
6991 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6992 trad_frame", delete "regs" and "prev_sp".
6993 (prologue_find_regs): Use trad-frame.
6994 * trad-frame.h, trad-frame.c: New files.
6995
4538b4f4
MK
69962003-06-08 Mark Kettenis <kettenis@gnu.org>
6997
6998 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6999
a0273b2f
AF
70002003-06-07 Adam Fedor <fedor@gnu.org>
7001
7002 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7003 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7004 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7005 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7006 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7007 Use it.
7008
3a6c3343
AC
70092003-06-07 Andrew Cagney <cagney@redhat.com>
7010
7011 * symfile.h: Re-indent, clean up comments.
7012
b46e02f6
AC
70132003-06-07 Andrew Cagney <cagney@redhat.com>
7014
7015 * inferior.h (deprecated_write_sp): Replace
7016 generic_target_write_sp.
7017 * regcache.c (deprecated_write_sp): Replace
7018 generic_target_write_sp.
7019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7020 * vax-tdep.c (vax_gdbarch_init): Update.
7021 * v850-tdep.c (v850_gdbarch_init): Update.
7022 * sparc-tdep.c (sparc_gdbarch_init): Update.
7023 * sh-tdep.c (sh_gdbarch_init): Update.
7024 * s390-tdep.c (s390_gdbarch_init): Update.
7025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7026 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7027 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7028 * mcore-tdep.c (mcore_gdbarch_init): Update.
7029 * m68k-tdep.c (m68k_gdbarch_init): Update.
7030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7031 * ia64-tdep.c (ia64_gdbarch_init): Update.
7032 * h8300-tdep.c (h8300_gdbarch_init): Update.
7033 * frv-tdep.c (frv_gdbarch_init): Update.
7034 * cris-tdep.c (cris_gdbarch_init): Update.
7035 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7036
a42e117c
AC
70372003-06-07 Andrew Cagney <cagney@redhat.com>
7038
7039 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7040 Assert that PC_REGNUM is valid.
7041 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7042
bd1ce8ba
AC
70432003-06-07 Andrew Cagney <cagney@redhat.com>
7044
7045 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7046 * gdbarch.h, gdbarch.c: Regenerate.
7047 * mn10300-tdep.c: Include "gdb_assert.h".
7048 (mn10300_read_fp): New function.
7049 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7050 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7051 * ia64-tdep.c: Include "gdb_assert.h".
7052 (ia64_read_fp): New function.
7053 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7054 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7055 * regcache.c (generic_target_read_sp): Delete function.
7056 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7057 * inferior.h (generic_target_read_sp): Delete declaration.
7058 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7059 generic_target_read_sp.
7060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7061 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7062 * sh-tdep.c (sh_gdbarch_init): Ditto.
7063 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7064 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7065
ec5cbaec
AC
70662003-06-07 Andrew Cagney <cagney@redhat.com>
7067
7068 * gdbarch.sh: Comment each field of startup_gdbarch.
7069 * gdbarch.h, gdbarch.c: Re-generate.
7070
cde9ea48
AC
70712003-06-07 Andrew Cagney <cagney@redhat.com>
7072
7073 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7074 * gdbarch.h, gdbarch.c: Re-generate.
7075 * regcache.c: Update comments on read_pc et.al.
7076 (generic_target_read_pc): Delete function.
7077 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7078 * inferior.h (generic_target_read_pc): Delete declaration.
7079 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7080 generic_target_read_pc.
7081 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7082 * sh-tdep.c (sh_gdbarch_init): Ditto.
7083 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7085
9a90a780
AC
70862003-06-07 Andrew Cagney <cagney@redhat.com>
7087
7088 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7089 "index" with "special_local_sect". Use strcmp instead of STREQ.
7090 Append period to coments.
7091
a39a16c4
MM
70922003-06-06 Mark Mitchell <mark@codesourcery.com>
7093
7094 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7095 (elfstab_offset_sections): Likewise.
7096 * gdb-stabs.h (stab_section_info): Likewise.
7097 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7098 * objfiles.c (objfile_relocate): Likewise.
7099 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7100 * remote.c (get_offsets): Likewise.
7101 (remote_cisco_objfile_relocate): Likewise.
7102 * somread.c (som_symfile_offsets): Likewise.
7103 * symfile.c (alloc_section_addr_info): New function.
7104 (build_section_addr_info_from_section_tab): Use it.
7105 (free_section_addr_info): Adjust.
7106 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7107 (syms_from_objfile): Allocate local_addr dynamically.
7108 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7109 dynamically.
7110 (add_symbol_file_command): Allocate sect_opts dynamically.
7111 (reread_symbols): Avoid use of SECT_OFF_MAX.
7112 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7113 (alloc_section_addr_info): Declare it.
7114 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7115 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7116 dynamically.
7117 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7118
20c6c2f8
AC
71192003-06-06 Andrew Cagney <cagney@redhat.com>
7120
7121 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7122 (d10v_frame_unwind_cache): Do not set "return_pc".
7123
884a26c8
MS
71242003-06-06 Michael Snyder <msnyder@redhat.com>
7125
7126 * h8300-tdep.c: Make tidy (long lines).
7127
088ce440
ML
71282003-06-06 Michal Ludvig <mludvig@suse.cz>
7129
8ffd9b1b 7130 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7131 to regcache_collect().
7132
7d773d96
JB
71332003-06-05 J. Brobecker <brobecker@gnat.com>
7134
7135 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7136 pc_in_sigtramp multiarch method.
7137 (hppa_hpux_som_init_abi): Use it.
7138 (hppa_hpux_elf_init_abi): Likewise.
7139 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7140 macro has been multiarched.
7141 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7142 macro here, as hppa64 isn't multiarched yet.
7143
1df6926e
AC
71442003-06-05 Andrew Cagney <cagney@redhat.com>
7145
7146 * Makefile.in (value_h): Add $(frame_h).
7147 * value.h: Include "frame.h".
7148 (struct value): Replace "frame_addr" with "frame_id".
7149 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7150 * values.c (allocate_value): Use VALUE_FRAME_ID.
7151 (value_copy): Use VALUE_FRAME_ID.
7152 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7153 * valops.c (value_assign): Update. Use frame_find_by_id.
7154
6b53acc6
ML
71552003-06-05 Michal Ludvig <mludvig@suse.cz>
7156
7157 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7158 in each pass.
7159
4d9850d3
JJ
71602003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7161
7162 * thread-db.c (check_event): For create/death event breakpoints,
7163 loop through all messages to ensure that we read the message
7164 corresponding to the breakpoint we are at.
7165
8efca6ba
MS
71662003-06-04 Michael Snyder <msnyder@redhat.com>
7167
7168 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7169
0912c7f2
MK
71702003-06-04 Mark Kettenis <kettenis@gnu.org>
7171
7172 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7173 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7174 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7175 when handling .eh_frame sections.
7176
4e370325
JB
71772003-06-04 J. Brobecker <brobecker@gnat.com>
7178
7179 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7180 prepare_to_proceed procedure instead of the hppa-specific one.
7181 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7182
b757528f 71832003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7184
b757528f
JJ
7185 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7186 * config.in: Regenerated.
7187 * configure.in: Add test for syscall function and check for
7188 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7189 * configure: Regenerated.
7190 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7191 <sys/syscall.h>.
7192 (kill_lwp): New function that uses tkill syscall or
7193 uses kill, depending on whether threading model is nptl or not.
7194 All callers of kill() changed to use kill_lwp().
7195 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7196 see if all threads have already exited in the nptl model.
7197 (stop_and_resume_callback): New callback function used by the
7198 lin_lwp_wait thread exit handling code.
7199 (stop_wait_callback): Check for threads already having exited and
7200 delete such threads fromt the lwp list when discovered.
7201 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7202
b757528f
JJ
7203 Roland McGrath <roland@redhat.com>
7204 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7205 nptl libthread_db.
7206
087779b1
RH
72072003-06-03 Richard Henderson <rth@redhat.com>
7208
b21fd293
RH
7209 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7210 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7211 (alpha_sigtramp_frame_prev_register): Likewise.
7212 (alpha_heuristic_frame_prev_register): Likewise.
7213 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7214
8ffd9b1b 7215 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7216 alpha-specific register id names.
7217 (alpha_mdebug_frame_unwind_cache): Likewise.
7218 (alpha_mdebug_frame_prev_register): Likewise.
7219
baa490c4
RH
72202003-06-03 Richard Henderson <rth@redhat.com>
7221
7222 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7223 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7224 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7225 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7226 unwind routines.
7227 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7228 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7229 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7230
7231 * alpha-linux-tdep.c: Remove unnecessary includes.
7232 * Makefile.in (alpha-linux-tdep.o): Update.
7233
72342003-06-03 Richard Henderson <rth@redhat.com>
7235
7236 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7237 (alphabsd_fill_fpreg): Likewise.
7238
f534e522
JB
72392003-06-03 J. Brobecker <brobecker@gnat.com>
7240
7241 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7242 references to struct frame_info fields by calls to the equivalent
7243 accessors. Necessary now that frame_info is opaque.
7244
4035536b
JB
72452003-06-03 J. Brobecker <brobecker@gnat.com>
7246
7247 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7248 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7249 structure, field no longer exists.
7250
0bd79c5c
JB
72512003-06-03 J. Brobecker <brobecker@gnat.com>
7252
7253 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7254 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7255
37bb6d9f
JB
72562003-06-03 J. Brobecker <brobecker@gnat.com>
7257
7258 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7259 references to struct frame_info fields by calls to the equivalent
7260 accessors. Necessary now that frame_info is opaque.
7261
852ee05c
JB
72622003-06-03 J. Brobecker <brobecker@gnat.com>
7263
7264 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7265 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7266 structure, field no longer exists.
7267
7d58c67d
TR
72682003-06-03 Theodore A. Roth <troth@openavr.org>
7269
8ffd9b1b 7270 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7271 accumulation of the size of all registers instead of blindly using
7272 DEPRECATED_REGISTER_BYTES.
7273
0a48e7e8
MS
72742003-06-03 Michael Snyder <msnyder@redhat.com>
7275
7276 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7277 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7278 for h8300sx.
7279
9798ab0d
JB
72802003-06-03 J. Brobecker <brobecker@gnat.com>
7281
7282 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7283 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7284
00b037e2
AC
72852003-06-03 Andrew Cagney <cagney@redhat.com>
7286
7287 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7288 (sparc_convert_to_raw): Delete function.
7289 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7290 register_convert_to_virtual.
7291
043b2f77
JJ
72922003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7293
7294 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7295 layer if not dealing with a statically-linked threaded program.
7296
f43caff8
KW
72972003-06-03 Kris Warkentin <kewarken@qnx.com>
7298
7299 * solib.c (solib_open): Update comment to reflect actual search order.
7300
ae1e7417
AC
73012003-06-03 Andrew Cagney <cagney@redhat.com>
7302
7303 * frame.c (get_frame_memory_signed): New function.
7304 (get_frame_memory, get_frame_memory_unsigned): New function.
7305 (get_frame_arch): New function.
7306 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7307 (get_frame_memory, get_frame_unsigned_memory): Declare.
7308 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7309 get_frame_memory_unsigned and get_frame_arch.
7310 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7311
cb123844
RG
73122003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7313
7314 * MAINTAINERS (write after approval): Add myself.
7315
1bb792e9
JB
73162003-06-03 Jim Blandy <jimb@redhat.com>
7317
7318 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7319 elements of gregset_t are 64 bits each, but access registers
7320 are still 32 bits, so they're packed two per gregset_t
7321 element. Unpack/pack them properly.
7322
aee8d8ba
DC
73232003-06-02 David Carlton <carlton@bactrian.org>
7324
7325 * linespec.c (find_methods): Break out code into
7326 add_matching_methods and add_constructors.
7327 (add_matching_methods): New.
7328 (add_constructors): Ditto.
7329
bf7488d2
AC
73302003-06-02 Andrew Cagney <cagney@redhat.com>
7331
bf7488d2
AC
7332 * sparc-tdep.c (sparc_print_registers): Delete call to
7333 REGISTER_CONVERTIBLE.
7334 (sparc_gdbarch_init): Do not set register_convertible.
7335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7336 * frv-tdep.c (frv_gdbarch_init): Ditto.
7337 * cris-tdep.c (cris_gdbarch_init): Ditto.
7338
adedef68
EZ
73392003-06-02 Elena Zannoni <ezannoni@redhat.com>
7340
8ffd9b1b 7341 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7342 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7343 (syms_from_objfile): Ditto.
7344
650fcc91
AS
73452003-06-03 Andreas Schwab <schwab@suse.de>
7346
7347 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7348 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7349
df4a182b
RH
73502003-06-02 Richard Henderson <rth@redhat.com>
7351
7352 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7353 a member of all_reggroup.
7354
c483c494
RH
73552003-06-02 Richard Henderson <rth@redhat.com>
7356
7357 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7358 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7359 (alpha_lds, alpha_sts): New.
7360 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7361 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7362 restructure and fail for type sizes other than 4 or 8.
7363 (alpha_value_to_register): Similarly.
7364 (alpha_extract_return_value): Use alpha_sts.
7365 (alpha_store_return_value): Use alpha_lds.
7366 (alpha_gdbarch_init): Update hooks.
7367
b38b6be2
RH
73682003-06-02 Richard Henderson <rth@redhat.com>
7369
7370 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7371 regnum identifiers.
7372 (alpha_sigtramp_register_address): Likewise.
7373
98a8e1e5
RH
73742003-06-02 Richard Henderson <rth@redhat.com>
7375
7376 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7377 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7378 * alpha-tdep.h: Declare them.
7379
7380 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7381 Remove zerobuf. Don't error on UNIQUE.
7382 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7383 (ALPHA_REGSET_UNIQUE): Provide default.
7384 (supply_gregset): Use alpha_supply_int_regs.
7385 (fill_gregset): Use alpha_fill_int_regs.
7386 (supply_fpregset): Use alpha_supply_fp_regs.
7387 (fill_fpregset): Use alpha_fill_fp_regs.
7388 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7389 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7390 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7391 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7392 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7393 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7394
67dfac52
RH
73952003-06-02 Richard Henderson <rth@redhat.com>
7396
f75d70cc
RH
7397 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7398
67dfac52
RH
7399 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7400 (alpha_store_return_value): Likewise.
7401
0cf566ec
DC
74022003-06-02 David Carlton <carlton@math.stanford.edu>
7403
7404 * block.c (contained_in): Add 'const' to arguments.
7405 (block_function): Ditto.
7406 * block.h: Update declarations for block_function and
7407 contained_in.
7408
cdef89d0
DC
74092003-06-02 David Carlton <carlton@math.stanford.edu>
7410
7411 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7412 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7413 * p-valprint.c (pascal_val_print): Ditto.
7414 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7415
72667056
RH
74162003-06-02 Richard Henderson <rth@redhat.com>
7417
98a8e1e5
RH
7418 * alpha-tdep.c (alpha_push_dummy_call): Use
7419 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7420
8ffd9b1b 7421 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7422 sign-extension of 32-bit values.
7423 (alpha_store_return_value): Similarly.
0ede8eca 7424
98a8e1e5
RH
7425 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7426 (alpha_extract_return_value): Likewise.
7427 (alpha_store_return_value): Likewise.
7b5e1cb3 7428
98a8e1e5
RH
7429 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7430 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7431
98a8e1e5
RH
7432 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7433 (alpha_extract_struct_value_address): Likewise.
7434 (alpha_store_return_value): Likewise.
7435 (alpha_store_struct_return): Remove.
7436 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7437
98a8e1e5
RH
7438 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7439 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7440 macros where appropriate.
7441 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7442 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7443
98a8e1e5
RH
7444 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7445 for SP, GP; void_func_ptr for PC; non-language-specific types
7446 for all others.
7447 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7448
6dd77b81
RH
74492003-06-02 Richard Henderson <rth@redhat.com>
7450
7451 * top.h (lim_at_start): Declare.
7452 * main.c (captured_main): Set it.
7453 * top.c (lim_at_start): Define.
7454 (command_loop): Use it instead of &environ.
7455 * event-top.c (command_handler): Likewise.
7456
f4dbdb54
JT
74572003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7458
7459 * mipsnbsd-tdep.c: Update copyright years.
7460 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7461
8f285956
RH
74622003-06-01 Richard Henderson <rth@redhat.com>
7463
98a8e1e5
RH
7464 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7465 (alpha-linux-tdep.o): Update dependencies.
7466 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7467 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7468
615967cb
RH
74692003-06-01 Richard Henderson <rth@redhat.com>
7470
98a8e1e5
RH
7471 * alpha-tdep.c (alpha_register_reggroup_p): New.
7472 (alpha_gdbarch_init): Register it.
615967cb 7473
b59661bd
AC
74742003-06-02 Andrew Cagney <cagney@redhat.com>
7475
7476 * dwarfread.c: Eliminate "register"
7477 (decode_die_type): Eliminate assignment within "if".
7478 (struct_type, decode_array_element_type): Ditto.
7479 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7480 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7481 (decode_modified_type, completedieinfo): Ditto.
7482 * block.c: Eliminate "register".
7483 (blockvector_for_pc_sect): Eliminate assignment within "if".
7484 * cp-support.h (struct symbol): Opaque declaration.
7485 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7486
5ef165c2
RH
74872003-06-01 Richard Henderson <rth@redhat.com>
7488
98a8e1e5
RH
7489 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7490 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7491
143985b7
AF
74922003-06-01 Adam Fedor <fedor@gnu.org>
7493
7494 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7495 * gdbarch.[ch]: Regenerate.
7496 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7497 (hppa_gdbarch_init): Set it in the gdbarch vector.
7498 * i386-tdep.c (i386_fetch_pointer_argument): New
7499 (i386_gdbarch_init): Set it into gdbarch.
7500 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7501 (rs6000_gdbarch_init): Set it in gdbarch.
7502 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7503 (sparc_gdbarch_init): Set it in gdbarch.
7504
ae0167b9
AC
75052003-06-01 Andrew Cagney <cagney@redhat.com>
7506
7c0b4a20
AC
7507 * defs.h (extract_address): Delete declaration.
7508 * findvar.c (extract_address): Delete function.
7509 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7510 extract_address with the inline equivalent,
7511 extract_unsigned_integer.
7512 (xstormy16_extract_struct_value_address): Ditto.
7513 (xstormy16_pointer_to_address): Ditto.
7514 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7515 * v850-tdep.c (v850_push_arguments): Ditto.
7516 (v850_extract_return_value): Ditto.
7517 (v850_extract_struct_value_address): Ditto.
7518 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7519 (sparcnbsd_get_longjmp_target_64): Ditto.
7520 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7521 (get_longjmp_target): Ditto.
7522 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7523 (sh64_extract_struct_value_address): Ditto.
7524 (sh_push_arguments): Ditto.
7525 (sh64_push_arguments): Ditto.
7526 * remote-vxsparc.c (vx_read_register): Ditto.
7527 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7528 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7529 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7530 * mipsv4-nat.c (get_longjmp_target): Ditto.
7531 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7532 * mips-nat.c (get_longjmp_target): Ditto.
7533 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7534 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7535 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7536 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7537 * irix5-nat.c (get_longjmp_target): Ditto.
7538 * irix4-nat.c (get_longjmp_target): Ditto.
7539 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7540 (ia64_push_arguments): Ditto.
7541 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7542 * h8300-tdep.c (h8300_push_arguments): Ditto.
7543 (h8300_store_return_value): Ditto.
7544 (h8300_extract_struct_value_address): Ditto.
7545 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7546 (frv_push_arguments): Ditto.
7547 * avr-tdep.c (avr_pointer_to_address): Ditto.
7548 (avr_push_arguments): Ditto.
7549 * arm-tdep.c (arm_push_dummy_call): Ditto.
7550 (arm_get_longjmp_target): Ditto.
7551 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7552 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7553 (alpha_get_longjmp_target): Ditto.
7554
ae0167b9
AC
7555 * solib-irix.c (extract_mips_address): Inline extract_address,
7556 replacing it with extract_signed_integer.
7557 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7558 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7559 (first_link_map_member, open_symbol_file_object): Ditto.
7560 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7561 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7562 (LM_NEXT, LM_NAME): Ditto.
7563
44d88583
RH
75642003-06-01 Richard Henderson <rth@redhat.com>
7565
98a8e1e5
RH
7566 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7567 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7568 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7569 (alpha_cannot_store_register): Likewise.
7570 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7571 * alpha-nat.c (supply_gregset): Likewise.
7572 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7573
310e9b6a
AC
75742003-06-01 Andrew Cagney <cagney@redhat.com>
7575
7576 * infcall.c (call_function_by_hand): Update comment on
7577 DEPRECATED_DUMMY_WRITE_SP.
7578
7579 * mips-tdep.c (mips_gdbarch_init): Do not set
7580 deprecated_dummy_write_sp.
7581 (mips_eabi_push_dummy_call): Set the SP register.
7582 (mips_o64_push_dummy_call): Set the SP register.
7583 (mips_o32_push_dummy_call): Set the SP register.
7584 (mips_n32n64_push_dummy_call): Set the SP register.
7585
5ab84872
RH
75862003-06-01 Richard Henderson <rth@redhat.com>
7587
98a8e1e5
RH
7588 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7589 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7590 (supply_gregset): Likewise.
7591 * alpha-tdep.c (alpha_store_return_value): Likewise.
7592 (alpha_get_longjmp_target): Likewise.
7593 (alpha_register_name): Constify array.
7594 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7595 deprecated_register_size, deprecated_register_bytes,
7596 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7597 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7598 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7599
09cc52fd
RH
76002003-06-01 Richard Henderson <rth@redhat.com>
7601
7602 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7603 from arg_reg_buffer to regcache to avoid double conversion.
7604
c7f16359
MK
76052003-06-01 Mark Kettenis <kettenis@gnu.org>
7606
7607 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7608 SP_REGNUM.
7609 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7610 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7611
7131cb6e
RH
76122003-06-01 Richard Henderson <rth@redhat.com>
7613
98a8e1e5
RH
7614 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7615 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7616
f3e0f90b
RH
76172003-06-01 Richard Henderson <rth@redhat.com>
7618
98a8e1e5
RH
7619 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7620 not overlapping PC_REGNUM.
f3e0f90b 7621
c88e30c0
RH
76222003-06-01 Richard Henderson <rth@redhat.com>
7623
98a8e1e5
RH
7624 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7625 alpha_push_arguments. Don't dump argument register data to
7626 the target stack. Fix float and 128-bit long double semantics.
7627 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7628 (alpha_fix_call_dummy): Remove.
7629 (alpha_call_dummy_words): Remove.
7630 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7631
f1a559ae
RH
76322003-06-01 Richard Henderson <rth@redhat.com>
7633
7634 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7635
5e045346
AC
76362003-06-01 Andrew Cagney <cagney@redhat.com>
7637
95404a3e
AC
7638 * mips-tdep.c (is_mips16_addr): New function.
7639 (make_mips16_addr, unmake_mips16_addr): New functions.
7640 (pc_is_mips16, mips_fetch_instruction): Use.
7641 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7642 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7643 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7644 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7645 TARGET_MIPS.
7646 * config/mips/tm-mips.h: Update copyright.
7647 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7648 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7649 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7650 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7651 (TM_PRINT_INSN_MACH): Delete.
7652 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7653
5e045346
AC
7654 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7655 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7656 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7657 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7658 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7659 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7660 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7661 mips*-*-riscos* and mips*-*-sysv* onto mips.
7662 * config/mips/mips64.mt: New file.
7663 * config/mips/mips.mt: New file.
7664 * config/mips/littlemips.mt: Delete file.
7665 * config/mips/decstation.mt: Delete file.
7666 * config/mips/vr4300el.mt: Delete file.
7667 * config/mips/vr5000el.mt: Delete file.
7668 * config/mips/vr5000.mt: Delete file.
7669 * config/mips/vr4100.mt: Delete file.
7670 * config/mips/vr4xxxel.mt: Delete file.
7671 * config/mips/vr4300.mt: Delete file.
7672 * config/mips/vr4xxx.mt: Delete file.
7673 * config/mips/bigmips.mt: Delete file.
7674 * config/mips/bigmips64.mt: Delete file.
7675 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7676 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7677 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7678 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7679 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7680 "tm-bigmips.h".
7681 * config/mips/tm-irix3.h: Ditto.
7682 * config/mips/tm-mipsv4.h: Ditto.
7683 * config/mips/tm-embed.h: Ditto.
7684 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7685 "tm-bigmips64.h".
7686 * config/mips/tm-vr5000el.h: Delete file.
7687 * config/mips/tm-tx39l.h: Delete file.
7688 * config/mips/tm-vr4300el.h: Delete file.
7689 * config/mips/tm-vr4xxxel.h: Delete file.
7690 * config/mips/tm-vr4300.h: Delete file.
7691 * config/mips/tm-vr4100.h: Delete file.
7692 * config/mips/tm-vr4xxx.h: Delete file.
7693 * config/mips/tm-vr5000.h: Delete file.
7694 * config/mips/tm-embedl64.h: Delete file.
7695 * config/mips/tm-embedl.h: Delete file.
7696 * config/mips/tm-embed64.h: Delete file.
7697 * config/mips/tm-bigmips64.h: Delete file.
7698 * config/mips/tm-bigmips.h: Delete file.
7699
2473a4a9
MK
77002003-06-01 Mark Kettenis <kettenis@gnu.org>
7701
97a5b208
MK
7702 Fix gdb/1216.
7703 * shnbsd-nat.c: Include "sh-tdep.h".
7704
2473a4a9
MK
7705 From Richard Henderson <rth@redhat.com>:
7706 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7707
e0f7ec59
AC
77082003-05-31 Andrew Cagney <cagney@redhat.com>
7709
7710 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7711 forward declaration.
7712 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7713 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7714 (mips_find_saved_regs): Use set_reg_offset.
7715 (mips_frame_init_saved_regs): Delete function.
7716 (mips_pop_frame): Call mips_find_saved_regs instead of
7717 DEPRECATED_FRAME_INIT_SAVED_REGS.
7718
68dcc709
AC
77192003-05-31 Andrew Cagney <cagney@redhat.com>
7720
7721 * mips-tdep.c (mips_gdbarch_init): Do not set
7722 deprecated_max_register_raw_size, register_virtual_size, and
7723 deprecated_max_register_virtual_size.
7724
cfc14b3a
MK
77252003-05-31 Mark Kettenis <kettenis@gnu.org>
7726
6405b0a6
MK
7727 * i386-tdep.c: Include "dwarf2-frame.h".
7728 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7729 * Makefile.in (i386-tdep.o): Update dependencies.
7730
cfc14b3a
MK
7731 * dwarf2-frame.c, dwarf2-frame.h: New files.
7732 * Makefile.in (SFILES): Add dwarf2-frame.c.
7733 (dwarf2_frame_h): Define.
7734 (COMMON_OBS): Add dwarf2-frame.o.
7735 (dwarf2-frame.o): Add dependencies.
7736
6a2751d2
AJ
77372003-05-31 Andreas Jaeger <aj@suse.de>
7738
7739 * x86-64-linux-nat.c: Fix comment.
7740
1c3545ae
MK
77412003-05-31 Mark Kettenis <kettenis@gnu.org>
7742
10f93086
MK
7743 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7744 function signature.
7745
1c3545ae
MK
7746 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7747 have a sigcontext_addr handler.
7748 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7749 sigcontext_addr handler.
7750
e11c53d2
AC
77512003-05-31 Andrew Cagney <cagney@redhat.com>
7752
7753 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7754 (print_fp_register_row): Replace do_fp_register_row.
7755 (mips_print_fp_register): Add "file" and "frame" parameters.
7756 (mips_print_register): Add "file" and "frame" parameters.
7757 (mips_print_registers_info): Replace mips_do_registers_info.
7758 (mips_gdbarch_init): Set print_registers_info instead of
7759 deprecated_do_registers_info.
7760 (mips_read_fp_register_single): Add "frame" parameter.
7761 (mips_read_fp_register_double): Add "frame" parameter.
7762
a3386186
MK
77632003-05-31 Mark Kettenis <kettenis@gnu.org>
7764
70913449
MK
7765 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7766 Fixes a bug where GDB would print the wrong register names for
7767 targets without SSE.
7768
2b5e0749
MK
7769 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7770 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7771 registers.
7772
7773 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7774 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7775 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7776 TDEP->sc_sp_offset.
7777
a3386186
MK
7778 From Michal Ludvig <mludvig@suse.cz>:
7779 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7780 and `sc_num_regs'.
7781 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7782 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7783 I386_ST0_REGNUM): Move here from...
7784 * i386-tdep.c: ... here.
7785 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7786 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7787 registers if possible.
7788 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7789 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7790 Remove variables.
7791 (i386bsd_sc_reg_offset): New variable.
7792 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7793 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7794 TDEP->sc_sp_offset.
7795 (i386fbsd_sc_reg_offset): New variable.
7796 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7797 TDEP->sc_num_regs.
7798 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7799 variables.
7800 (i386fbsd4_sc_reg_offset): New variable.
7801 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7802 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7803 TDEP->sc_sp_offset.
7804 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7805 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7806 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7807 Remove variables.
7808 (i386nbsd_sc_reg_offset): New variable.
7809 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7810 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7811 TDEP->sc_sp_offset.
7812 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7813 Remove variables.
7814 (i386obsd_sc_reg_offset): New variable.
7815 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7816 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7817 TDEP->sc_sp_offset.
7818 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7819 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7820 for frame pointer offset in `struct sigcontext'.
7821
25ab4790
AC
78222003-05-31 Andrew Cagney <cagney@redhat.com>
7823
7824 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7825 architecture methods call_dummy_words, sizeof_call_dummy_words,
7826 push_return_address, store_struct_return, and fix_call_dummy. Set
7827 push_dummy_call instead of deprecated_push_arguments.
7828 (mips_store_struct_return): Delete function.
7829 (mips_fix_call_dummy): Delete function.
7830 (mips_push_return_address): Delete function.
7831 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7832 RA_REGNUM and T9_REGNUM.
7833 (mips_n32n64_push_dummy_call): Ditto for
7834 mips_n32n64_push_arguments.
7835 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7836 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7837
6a65450a
AC
78382003-05-31 Andrew Cagney <cagney@redhat.com>
7839
7840 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7841 "dummy_addr" to "bp_addr".
7842 * infcall.c (call_function_by_hand): Pass "funaddr" to
7843 gdbarch_push_dummy_call.
7844 * gdbarch.h, gdbarch.c: Re-generate.
7845 * i386-tdep.c (i386_push_dummy_call): Update.
7846 * arm-tdep.c (arm_push_dummy_call): Update.
7847 * d10v-tdep.c (d10v_push_dummy_call): Update.
7848
c4f35dd8
MK
78492003-05-31 Mark Kettenis <kettenis@gnu.org>
7850
7851 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7852 variable declarations.
7853 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7854 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7855 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7856 x86_64_init_frame_pc, x86_64_init_frame_pc,
7857 x86_64_function_has_prologue): Remove prototypes.
7858 (X86_64_NUM_GREGS): New define.
7859 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7860 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7861 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7862 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7863 XMM1_REGNUM): Remove defines.
7864 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7865 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7866 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7867 X86_64_XMM1_REGNUM): New defines.
7868 (struct x86_64_register_info): Renamed from `struct
7869 register_info'. Remove `size' member.
7870 (x86_64_register_info_table): Remove variable.
7871 (x86_64_register_info): New variable.
7872 (X86_64_NUM_REGS): New define.
7873 (X86_64_NUM_GREGS): Remove define.
7874 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7875 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7876 Remove variables.
7877 (x86_54_dwarf2_reg_to_regnum): Remove function.
7878 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7879 (x86_64_dwarf_reg_to_regnum): New function.
7880 (x86_64_register_name): Rewrite.
7881 (x86_64_register_raw_size): Remove function.
7882 (x86_64_register_byte_table): Remove variable.
7883 (x86_64_register_byte): Remove function.
7884 (x86_64_register_virtual_type): Remove function.
7885 (x86_64_register_type): New function.
7886 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7887 x86_64_register_convert_to_raw): Remove functions.
7888 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7889 (x86_64_use_struct_convention): Make static. Adjust for renamed
7890 defines.
7891 (x86_64_frame_init_saved_regs): Remove function.
7892 (x86_64_push_arguments): Make static. Change to accept a regcache
7893 as argument.
7894 (x86_64_store_return_value, x86_64_extract_return_value): Make
7895 static. Rewrite based on i386 counterparts.
7896 (x86_64_push_dummy_call): New function.
7897 (X86_64_NUM_SAVED_REGS): New define.
7898 (x86_64_register_number): Remove function.
7899 (x86_64_store_struct_return): Remove function.
7900 (x86_64_frameless_function_invocation,
7901 x86_64_function_has_prologue): Remove functions.
7902 (PROLOG_BUFSIZE): Remove define.
7903 (struct x86_64_frame_cache): New structure.
7904 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7905 x86_64_frame_cache, x86_64_frame_this_id,
7906 x86_64_frame_prev_register, x86_64_frame_p,
7907 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7908 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7909 functions.
7910 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7911 variables.
7912 (x86_64_skip_prologue): Rewrite in terms of
7913 x86_64_analyze_prologue.
7914 (x86_64_frame_base_address): New function.
7915 (x86_64_frame_base): New variable.
7916 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7917 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7918 set deprecated_fp_regnum, deprecated_register_size,
7919 deprecated_register_bytes, register_raw_size, register_byte,
7920 register_virtual_type, register_convertiable,
7921 register_convert_to_virtual, convert_to_raw,
7922 deprecated_get_saved_register, deprecated_target_read_fp,
7923 deprecated_push_arguments, deprecated_push_return_address,
7924 deprecated_pop_frame, deprecated_store_struct_return,
7925 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7926 frameless_function_invocation, deprecated_frame_saved_pc,
7927 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7928 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7929 deprecated_init_frame_pc and virtual_frame_pointer. Call
7930 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7931 and x86_64_frame_p. Call frame_base_set_default to register
7932 x86_64_frame_base.
7933 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7934 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7935 (_initialize_x86_64_tdep): Remove function.
7936 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7937 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7938 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7939 define.
7940 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7941 (x86_64_linux_sigcontext_addr): Rewrite.
7942 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7943 x86_64_linux_frame_saved_pc): Remove functions.
7944 (x86_64_linux_pc_in_sigtramp): Renamed from
7945 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7946 trampoline.
7947 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7948 Remove_functions.
7949 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7950 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7951 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7952 (x86_64_regmap): Rename to regmap.
7953 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7954 x86_64_num_gregs.
7955 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7956 x86_64_regmap.
7957 (x86_64_fxsave_offset): Remove function.
7958 (supply_fpregset): Simply call x86_64_supply_fxsave.
7959 (fill_fpregset): Simply call x86_64_fill_fxsave.
7960 (fetch_inferior_registers, store_inferior_registers): Avoid
7961 asignment in if-statement.
7962 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7963 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7964 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7965 (fetch_core_registers): Remove function.
7966 (linux_elf_core_fns): Remove.
7967 (offsetoff): Don't define.
7968 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7969 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7970 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7971 add core-regset.o.
7972 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7973 protection against multiple includes instead of NM_X86_64_h. Add
7974 various comments. Include "config/nm-linux.h". Don't include
7975 <signal.h>.
7976 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7977 GET_THREAD_SIGNALS): Remove defines.
7978 (x86_64_register_u_addr, kernel_u_size,
7979 lin_thread_get_thread_signals): Remove prototypes.
7980 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7981 [HAVE_LINK_H]: Don't include "solib.h".
7982 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7983 * config/i386/tm-x86-64linux.h: Fix comments.
7984 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7985 x86-64-tdep.o): Update dependencies.
7986
c25083af
AC
79872003-05-30 Andrew Cagney <cagney@redhat.com>
7988
c8f55a7b
AC
7989 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7990 Change parameter type to a "struct regcache *".
7991
c25083af
AC
7992 * gdbarch.sh: Regardless of the multi-arch level, always define
7993 the macro when not already defined.
7994 * gdbarch.h, gdbarch.c: Re-generate.
7995
fbe586ae
RH
79962003-05-30 Richard Henderson <rth@redhat.com>
7997
7998 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7999 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8000 (alpha_mdebug_frame_this_id): Likewise.
8001 (alpha_mdebug_frame_prev_register): Likewise.
8002 (alpha_mdebug_frame_base_address): Likewise.
8003 (alpha_mdebug_frame_locals_address): Likewise.
8004 (alpha_mdebug_frame_args_address): Likewise.
8005 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8006 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8007 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8008 loop increment.
8009 (alpha_heuristic_frame_this_id): Make static.
8010 (alpha_heuristic_frame_prev_register): Likewise.
8011 (alpha_heuristic_frame_base_address): Likewise.
8012 * alpha-tdep.h: Update.
8013
acd5c798
MK
80142003-05-30 Mark Kettenis <kettenis@gnu.org>
8015
8016 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8017 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8018 defenitions.
8019 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8020 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8021 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8022 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8023 I386_ST0_REGNUM): New defines.
8024 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8025 codestream_get): Remove define.
8026 (codestream_next_addr, condestream_addr, condestream_buf,
8027 codestream_off, codestream_cnt): Remove variables.
8028 (codestream_fill, codestream_seek, codestream_read): Remove
8029 functions.
8030 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8031 functionality.
8032 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8033 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8034 i386_frame_saved_pc, i386_saved_pc_after_call,
8035 i386_frame_num_args, i386_frame_init_saved_regs,
8036 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8037 i386_push_arguments): Remove functions.
8038 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8039 functionality. Use i386_analyze_prologue instead of
8040 i386_get_frame_setup.
8041 (I386_NUM_SAVED_REGS): New define.
8042 (struct i386_frame_cache): New structure.
8043 (i386_alloc_frame_cache, i386_analyze_struct_return,
8044 i386_skip_probe, i386_analyze_frame_setup,
8045 i386_analyze_register_saves, i386_analyze_prologue,
8046 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8047 i386_frame_prev_register, i386_sigtramp_frame_cache,
8048 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8049 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8050 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8051 New functions.
8052 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8053 New variables.
8054 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8055 I386_EAX_REGNUM and I386_EDX_REGNUM.
8056 (i386_extract_return_value, i386_store_return_value): Use
8057 I386_ST0_REGNUM where appropriate.
8058 (i386_extract_struct_value_address): Rewrite to use extract_address.
8059 (i386_svr4_pc_in_sigtramp): Add comment.
8060 (i386_svr4_sigcontext_addr): Rewrite.
8061 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8062 TDEP->sc_sp_offset.
8063 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8064 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8065 of new defines. Set push_dummy_call, don't set
8066 deprecated_push_arguments, deprecated_push_return_address,
8067 deprecated_pop_frame. Don't set parm_boundary. Don't set
8068 deprecated_frame_chain, deprecated_frame_saved_pc,
8069 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8070 save_dummy_frame_tos, unwind_pc. Call
8071 frame_unwind_append_predicate and frame_base_set_default. Don't
8072 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8073 Don't set frameless_function_invocation. Don't set
8074 deprecated_register_bytes, deprecated_register_size,
8075 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8076 * i386-linux-tdep.c: Fix formatting in some comments.
8077 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8078 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8079 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8080 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8081 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8082 redundant parentheses.
8083 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8084 (i386_linux_sigcontext_addr): Use it. Rewrite.
8085 (find_minsym_and_objfile): Change name of second argument.
8086 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8087 changed. Use frame_pc_unwind instead of
8088 DEPRECATED_SAVED_PC_AFTER_CALL.
8089 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8090 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8091 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8092 unwinder.
8093 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8094 "dummy-frame.h".
8095 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8096 (_initialize_i386_cygwin_tdep): New prototype.
8097 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8098 deprecated_frame_chain_valid.
8099 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8100 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8101 Rely on the SVR4 defaults.
8102 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8103 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8104
c89b70f1
AC
81052003-05-30 Andrew Cagney <cagney@redhat.com>
8106
8107 * infcall.c (call_function_by_hand): Always call
8108 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8109
85b32d22
RH
81102003-05-30 Richard Henderson <rth@redhat.com>
8111
c89b70f1
AC
8112 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8113 increment.
85b32d22 8114
bfe51b1e
JB
81152003-05-29 Jim Blandy <jimb@redhat.com>
8116
8117 Use gdbarch methods for solib stuff on PowerPC Linux.
8118 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8119 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8120 show through.
8121 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8122 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8123 giving the same effect as the #definitions above.
8124
1abf022c
AF
81252003-05-29 Adam Fedor <fedor@gnu.org>
8126
8127 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8128 (find_implementation_from_class): Replace it with the standard
8129 case i.e. do nothing.
8130
d2427a71
RH
81312003-05-29 Richard Henderson <rth@redhat.com>
8132
8133 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8134 (alpha_linux_sigtramp_offset): Use it. Make static.
8135 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8136 update for new frame model.
8137 * alpha-mdebug-tdep.c: New file.
8138 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8139 (alpha_osf1_init_abi): Install it.
8140 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8141 (linked_proc_desc_table): Remove.
8142 (alpha_frame_past_sigtramp_frame): Remove.
8143 (alpha_dynamic_sigtramp_offset): Remove.
8144 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8145 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8146 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8147 (push_sigtramp_desc): Remove.
8148 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8149 (alpha_cannot_store_register): Likewise.
8150 (alpha_sigcontext_addr): Remove.
8151 (alpha_find_saved_regs): Remove.
8152 (alpha_frame_init_saved_regs): Remove.
8153 (alpha_init_frame_pc_first): Remove.
8154 (read_next_frame_reg): Remove.
8155 (alpha_frame_saved_pc): Remove.
8156 (alpha_saved_pc_after_call): Remove.
8157 (temp_proc_desc, temp_saved_regs): Remove.
8158 (alpha_about_to_return): Remove.
8159 (cached_proc_desc): Remove.
8160 (alpha_frame_chain): Remove.
8161 (alpha_print_extra_frame_info): Remove.
8162 (alpha_init_extra_frame_info): Remove.
8163 (alpha_frame_locals_address): Remove.
8164 (alpha_frame_args_address): Remove.
8165 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8166 (alpha_push_dummy_frame): Remove.
8167 (alpha_pop_frame): Remove.
8168 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8169 (alpha_read_insn): New.
8170 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8171 for different insn encodings.
8172 (alpha_in_lenient_prologue): Remove.
8173 (struct alpha_sigtramp_unwind_cache): New.
8174 (alpha_sigtramp_frame_unwind_cache): New.
8175 (alpha_sigtramp_register_address): New.
8176 (alpha_sigtramp_frame_this_id): New.
8177 (alpha_sigtramp_frame_prev_register): New.
8178 (alpha_sigtramp_frame_unwind): New.
8179 (alpha_sigtramp_frame_p): New.
8180 (struct alpha_heuristic_unwind_cache): New.
8181 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8182 don't count nop insns that occur between functions.
8183 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8184 heuristic_proc_desc, but without the mdebug wrapping.
8185 (alpha_heuristic_frame_this_id): New.
8186 (alpha_heuristic_frame_prev_register): New.
8187 (alpha_heuristic_frame_unwind): New.
8188 (alpha_heuristic_frame_p): New.
8189 (alpha_heuristic_frame_base_address): New.
8190 (alpha_heuristic_frame_base): New.
8191 (alpha_unwind_dummy_id): New.
8192 (alpha_unwind_pc): New.
8193 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8194 frame related deprecated initializations; install replacements.
8195 (alpha_dump_tdep): Remove.
8196 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8197 (alpha_read_insn, alpha_after_prologue,
8198 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8199 alpha_heuristic_frame_prev_register,
8200 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8201 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8202 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8203 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8204
93ec1121
AC
82052003-05-29 Andrew Cagney <cagney@redhat.com>
8206
8207 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8208 dependant on the availability of ASSERT_FUNCTION.
8209 (ASSERT_FUNCTION): Do not define when there is no function name.
8210
98f08d3d
KB
82112003-05-29 Kevin Buettner <kevinb@redhat.com>
8212
8213 From Jimi X <jimix@watson.ibm.com>:
8214 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8215
0897f59b
JB
82162003-05-28 Jim Blandy <jimb@redhat.com>
8217
8218 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8219 argument to ptrace to int; the system headers should give it the
8220 right type, and pointers don't fit in ints on powerpc64-*-*.
8221
14898363
L
82222003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8223
8224 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8225 DW_TAG_catch_block.
8226
a7a48797
EZ
82272003-05-26 Elena Zannoni <ezannoni@redhat.com>
8228
8229 * stabsread.c (dbx_lookup_type): Make static.
8230 (read_type): Ditto.
8231 (add_undefined_type): Ditto.
8232 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8233 not export.
8234
f5479e9c
EZ
82352003-05-26 Elena Zannoni <ezannoni@redhat.com>
8236
8237 * hpread.c (hpread_has_name): Make static.
8238 (hpread_psymtab_to_symtab): Ditto.
8239 (file_exists): Ditto.
8240 (hpread_call_pxdb): Ditto.
8241 (hpread_pxdb_needed): Ditto.
8242 (hpread_quick_traverse): Ditto.
8243 (hpread_get_header): Ditto.
8244 (hpread_get_lntt): Ditto.
8245 (hpread_get_slt): Ditto.
8246 (class_of): Ditto.
8247
eb2e12d7
AS
82482003-05-25 Andreas Schwab <schwab@suse.de>
8249
78bf922a
AS
8250 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8251 stack_align and deprecated_extra_stack_alignment_needed.
8252 (m68k_stack_align): Delete.
8253
eb2e12d7
AS
8254 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8255 (m68k_register_virtual_size): Likewise.
8256 (altos_skip_prologue): Remove obsolete function.
8257 (isi_frame_num_args): Likewise.
8258 (news_frame_num_args): Likewise.
8259 (m68k_fix_call_dummy): Make static.
8260 (m68k_push_dummy_frame): Likewise.
8261 (m68k_pop_frame): Likewise.
8262 (m68k_skip_prologue): Likewise.
8263 (m68k_frame_init_saved_regs): Likewise.
8264 (m68k_saved_pc_after_call): Likewise.
8265 (m68k_get_longjmp_target): Make multi-arch.
8266 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8267 structure. Register m68k_get_longjmp_target if enabled.
8268 * m68k-tdep.h (struct gdbarch_tdep): Define.
8269 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8270
8271 * Makefile.in (config.status): Also depend on configure.tgt
8272 and configure.host.
8273 (m68klinux-tdep.o): Update dependencies.
8274 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8275 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8276 (M68K_LINUX_JB_PC): Define.
8277 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8278 and take additional parameter.
8279 (m68k_linux_sigtramp_saved_pc): Update.
8280 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8281 m68k_linux_pc_in_sigtramp, in_plt_section,
8282 find_solib_trampoline_target.
8283 * config/m68k/tm-linux.h: Don't include any tm headers.
8284 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8285 (JB_ELEMENT_SIZE): Likewise.
8286 (JB_PC): Likewise.
8287 (GET_LONGJMP_TARGET): Likewise.
8288 (IN_SIGTRAMP): Likewise.
8289 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8290
eb2c22dc
MK
82912003-05-25 Mark Kettenis <kettenis@gnu.org>
8292
8293 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8294 (sparc32_push_arguments): Re-implement by calling
8295 sparc32_do_push_arguments.
8296
44b7b84e
MK
82972003-05-25 Mark Kettenis <kettenis@gnu.org>
8298
8299 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8300 SPARC_O1_REGNUM): New defines.
8301 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8302 (sparc32_store_return_value): New function.
8303 (sparc_extract_struct_value_address): Rewrite to operate on a
8304 regcache.
8305 (sparc_gdbarch_init): Don't set
8306 deprecated_extract_struct_value_address. Set
8307 extract_struct_value_address instead. Don't set
8308 deprecated_extract_return_value and deprecated_store_return_value
8309 for 32-bit targets. Set extract_return_value and
8310 store_return_value instead.
8311 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8312 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8313 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8314 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8315 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8316 (sparc_store_return_value): Remove prototype.
8317 (sparc32_store_return_value): New prototype.
8318 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8319 Adjust prototypes.
8320
f6ad61e3
MK
83212003-05-24 Mark Kettenis <kettenis@gnu.org>
8322
8323 * sparcnbsd-tdep.c: Include "gdb_string.h".
8324
b276f1bb
AC
83252003-05-23 Andrew Cagney <cagney@redhat.com>
8326
8327 * p-valprint.c (pascal_val_print): Replace extract_address with
8328 the inline equivalent extract_unsigned_integer.
8329 * jv-valprint.c (java_value_print): Ditto.
8330 * ada-valprint.c (ada_val_print_1): Ditto.
8331 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8332
e76c5fcc
TR
83332003-05-23 Theodore A. Roth <troth@openavr.org>
8334
8335 * blockframe.c (frameless_look_for_prologue): Remove unused
8336 after_prologue variable.
8337
2cdd89cb
MK
83382003-05-23 Mark Kettenis <kettenis@gnu.org>
8339
8340 * blockframe.c (get_pc_function_start): Rewrite to avoid
8341 asignments in if-statements.
8342
182d43bc
EZ
83432003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8344
8345 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8346 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8347 files, don't relocate absolute symbols (and do use mst_abs).
8348
e8f3fcdd
AC
83492003-05-23 Andrew Cagney <cagney@redhat.com>
8350
8351 * objc-lang.c: Include "gdb_assert.h".
8352 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8353 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8354 (gdb_check, gdb_check_fatal): Delete functions.
8355 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8356 gdb_assert.
8357 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8358 * Makefile.in (objc-lang.o): Update dependencies.
8359
3c23e6fb
ILT
83602003-05-22 Ian Lance Taylor <ian@airs.com>
8361
8362 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8363 with fprintf_filtered, not fprintf_unfiltered.
8364
af1342ab
AC
83652003-05-22 Andrew Cagney <cagney@redhat.com>
8366
8367 * stack.c (frame_info): Inline extract_address, replacing it with
8368 extract_unsigned_integer.
8369 * findvar.c (unsigned_pointer_to_address): Ditto.
8370 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8371 * dwarf2expr.c (dwarf2_read_address): Ditto.
8372 * frame.c (frame_pc_unwind): Update comment.
8373 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8374
47e242ec
JJ
83752003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8376
8377 * infptrace.c (detach): Call print_sys_errmsg rather than
8378 perror_with_name to issue warning message when errno is non-zero
8379 after calling ptrace detach.
8380
e2ac8128
JB
83812003-05-21 J. Brobecker <brobecker@gnat.com>
8382
8383 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8384 macro definitions from here...
8385 * hppa-tdep.c: ...to there.
8386
92b3541e
KB
83872003-05-20 Kevin Buettner <kevinb@redhat.com>
8388
8389 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8390 register_ptrace_addr(). Fix all callers.
8391
55809acb
AS
83922003-05-21 Andreas Schwab <schwab@suse.de>
8393
8394 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8395 dependencies.
8396 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8397 end.
8398 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8399 (_initialize_m68k_linux_tdep): New function.
8400 (m68k_linux_frame_saved_pc): Make static.
8401 (m68k_linux_extract_return_value): Likewise.
8402 (m68k_linux_store_return_value): Likewise.
8403 (m68k_linux_extract_struct_value_address): Likewise.
8404 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8405 Remove.
8406 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8407 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8408 (DEPRECATED_FRAME_SAVED_PC): Remove.
8409
0fbc10f7
KW
84102003-05-20 Kris Warkentin <kewarken@qnx.com>
8411
8412 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8413 regset numbering rather than our own.
8414
58da2eb2
DC
84152003-05-19 David Carlton <carlton@bactrian.org>
8416
8417 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8418
1fcb5155
DC
84192003-05-19 David Carlton <carlton@bactrian.org>
8420
8421 Partial fix for PR c++/827.
8422 * cp-support.h: Include symtab.h.
8423 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8424 * cp-namespace.c: Update contributors.
8425 (cp_lookup_symbol_nonlocal): New.
8426 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8427 (lookup_symbol_file): Ditto.
8428 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8429 * block.h: Declare block_scope, block_using, block_global_block.
8430 * block.c (block_scope): New.
8431 (block_using, block_global_block): Ditto.
8432 * Makefile.in (cp_support_h): Depend on symtab_h.
8433 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8434
5f9a71c3
DC
84352003-05-19 David Carlton <carlton@bactrian.org>
8436
8437 * language.h (struct language_defn): Add 'la_value_of_this'
8438 and 'la_lookup_symbol_nonlocal' members.
8439 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8440 lookup_symbol_static, lookup_symbol_global,
8441 lookup_symbol_aux_block.
8442 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8443 if we should search fields of this and how to do static/global
8444 lookup.
8445 (lookup_symbol_aux_block): Make extern.
8446 (basic_lookup_symbol_nonlocal): New.
8447 (lookup_symbol_static, lookup_symbol_global): Ditto.
8448 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8449 'la_lookup_symbol_nonlocal' members.
8450 * c-lang.c (c_language_defn, cplus_language_defn)
8451 (asm_language_defn, minimal_language_defn): Ditto.
8452 * jv-lang.c (java_language_defn): Ditto.
8453 * language.c (unknown_language_defn, auto_language_defn)
8454 (local_language_defn): Ditto.
8455 * m2-lang.c (m2_language_defn): Ditto.
8456 * objc-lang.c (objc_language_defn): Ditto.
8457 * scm-lang.c (scm_language_defn): Ditto.
8458 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8459 * p-lang.c (pascal_language_defn): Ditto for both.
8460 * Makefile.in (f-lang.o): Depend on value_h.
8461 (p-lang.o): Ditto.
8462
89a9d1b1
DC
84632003-05-19 David Carlton <carlton@bactrian.org>
8464
8465 * block.h: Declare block_static_block.
8466 * block.c (block_static_block): New.
8467 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8468 lookup_symbol_aux_local, calling block_static_block instead.
8469 (lookup_symbol_aux_local): Delete 'static_block' argument.
8470
eed3f8ab
DC
84712003-05-19 David Carlton <carlton@bactrian.org>
8472
8473 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8474
a09d8bda
ML
84752003-05-19 Michal Ludvig <mludvig@suse.cz>
8476
8477 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8478 register numbers mapping.
8479
69636828
AF
84802003-05-18 Adam Fedor <fedor@gnu.org>
8481
8482 * symtab.c (completion_list_objc_symbol): New function.
8483 (make_symbol_completion_list): Use it to add ObjC symbols
8484 when looking though the list.
8485 (language_search_unquoted_string): New function.
8486 (make_file_symbol_completion_list): Use it.
8487
55baeb84
AS
84882003-05-18 Andreas Schwab <schwab@suse.de>
8489
d0b45d99
AS
8490 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8491 dependencies.
8492 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8493 as m68k_linux_extract_return_value.
8494 (DEPRECATED_STORE_RETURN_VALUE): Define as
8495 m68k_linux_store_return_value.
8496 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8497 m68k_linux_extract_struct_value_address.
8498 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8499 get_next_frame, get_frame_base, get_frame_pc.
8500 (m68k_linux_frame_saved_pc): Use get_frame_base.
8501 (m68k_linux_extract_return_value): New function.
8502 (m68k_linux_store_return_value): New function.
8503 (m68k_linux_extract_struct_value_address): New function.
8504 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8505
55baeb84
AS
8506 * c-exp.y (typebase): Remove duplicate occurence of
8507 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8508 of lookup_signed_typename.
55baeb84 8509
b6b08ebf
MK
85102003-05-18 Mark Kettenis <kettenis@gnu.org>
8511
8512 * dwarf2loc.c (find_location_expression): Change type of second
8513 argument to `size_t *'.
8514 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8515 for size variable.
8516
5ad1c190
DC
85172003-05-18 David Carlton <carlton@bactrian.org>
8518
8519 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8520 'linkage_name'. Add comment.
8521 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8522 'linkage_name'.
8523 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8524 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8525 (lookup_block_symbol): Ditto.
8526
b8b527c5
AC
85272003-05-16 Andrew Cagney <cagney@redhat.com>
8528
8529 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8530 * gdbarch.h, gdbarch.c: Re-generate.
8531 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8532 * TODO (REGISTER_BYTES): Delete reference.
8533 * alpha-tdep.c (alpha_gdbarch_init): Update.
8534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8535 * x86-64-tdep.c (x86_64_init_abi): Update.
8536 * vax-tdep.c (vax_gdbarch_init): Update.
8537 * v850-tdep.c (v850_gdbarch_init): Update.
8538 * sparc-tdep.c (sparc_gdbarch_init): Update.
8539 * sh-tdep.c (sh_gdbarch_init): Update.
8540 * s390-tdep.c (s390_gdbarch_init): Update.
8541 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8542 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8543 (ns32k_gdbarch_init_32382): Update.
8544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8545 * mcore-tdep.c (mcore_gdbarch_init): Update.
8546 * m68k-tdep.c (m68k_gdbarch_init): Update.
8547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8548 * ia64-tdep.c (ia64_gdbarch_init): Update.
8549 * i386-tdep.c (i386_gdbarch_init): Update.
8550 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8551 * hppa-tdep.c (hppa_gdbarch_init): Update.
8552 * h8300-tdep.c (h8300_gdbarch_init): Update.
8553 * frv-tdep.c (frv_gdbarch_init): Update.
8554 * cris-tdep.c (cris_gdbarch_init): Update.
8555 * avr-tdep.c (avr_gdbarch_init): Update.
8556 * arm-tdep.c (arm_gdbarch_init): Update.
8557 * sparc-tdep.c (sparc_pop_frame): Update.
8558 * rs6000-tdep.c (rs6000_pop_frame): Update.
8559 * remote.c (init_remote_state): Update.
8560 (remote_prepare_to_store): Update.
8561 * remote-vx.c (vx_prepare_to_store): Update.
8562 * remote-sds.c (sds_fetch_registers): Update.
8563 (sds_prepare_to_store): Update.
8564 * remote-array.c: Update.
8565 * regcache.c (init_legacy_regcache_descr): Update.
8566 (init_regcache_descr): Update.
8567 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8568 (mips_o64_extract_return_value): Update.
8569 * irix5-nat.c (fetch_core_registers): Update.
8570 * irix4-nat.c (fetch_core_registers): Update.
8571 * i386-tdep.h: Update.
8572 * hppa-tdep.c (pa_do_registers_info): Update.
8573 (pa_do_strcat_registers_info): Update.
8574 * cris-tdep.c (cris_register_bytes_ok): Update.
8575 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8576 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8577 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8578 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8579 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8580 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8581 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8582 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8583 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8584 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8585 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8586 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8587 (REGISTER_BYTES_OK): Update.
8588 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8589 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8590
ee2842e2
ILT
85912003-05-16 Ian Lance Taylor <ian@airs.com>
8592
8593 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8594 (vax_print_insn, print_insn_arg): Remove static functions.
8595 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8596 print_insn_vax from opcodes library.
8597 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8598
973177d3
AC
85992003-05-15 Andrew Cagney <cagney@redhat.com>
8600
aaab4dba
AC
8601 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8602 * target.h (memory_breakpoint_from_pc): Delete declaration.
8603 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8604 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8605 * monitor.c (monitor_insert_breakpoint): Use
8606 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8607 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8608 * gdbarch.h, gdbarch.c: Re-generate.
8609 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8610 (sparc_gdbarch_init): Set breakpoint_from_pc to
8611 sparc_breakpoint_from_pc.
8612 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8613 (BREAKPOINT_FROM_PC): Define.
8614 (sparc_breakpoint_from_pc): Declare.
8615 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8616 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8617 (BREAKPOINT_FROM_PC): Define.
8618 (BREAKPOINT): Delete macro.
8619 * target.h: Update comment.
8620 * s390-tdep.c (s390_gdbarch_init): Update comments.
8621 * remote.c: Update comments.
8622 * remote-mips.c: Update comments.
8623 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8624 * mem-break.c: Update comment.
8625 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8626 (ia64_memory_insert_breakpoint): Update.
8627 * config/sparc/tm-sparc.h: Update comment.
8628 * config/pa/tm-hppa64.h: Update comment.
8629 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8630 (rs6000_breakpoint_from_pc): Update.
8631 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8632 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8633 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8634 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8635 (mips_breakpoint_from_pc): Update.
8636 (mips_dump_tdep): Update.
8637
e06963ff
AC
8638 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8639 * minsyms.c (lookup_minimal_symbol): Inline
8640 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8641
973177d3
AC
8642 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8643 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8644 * p-lang.c (pascal_printstr): Ditto.
8645 * objc-lang.c (objc_printstr): Ditto.
8646 * m2-lang.c (m2_printstr): Ditto.
8647 * jv-valprint.c (java_print_value_fields): Ditto.
8648 * f-lang.c (f_printstr): Ditto.
8649 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8650 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8651 for repeat_count_threshold.
8652 * Makefile.in (cp-valprint.o): Update dependencies.
8653
5ea2bd7f 86542003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8655
5ea2bd7f
JJ
8656 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8657 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8658 they start with mov r2,r12. Support skipping over indirect stores
8659 of the input registers. Upon hitting a non-nop branch instruction
8660 or predicated instruction, bail out by setting lim_pc to the current
8661 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8662 beyond our calculated value and we have trust_limit set,
8663 use the lim_pc value.
8664
cc8c88f3
AC
86652003-05-15 Andrew Cagney <cagney@redhat.com>
8666
8667 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8668 generic_find_dummy_frame.
8669 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8670 (deprecated_generic_find_dummy_frame): Update.
8671 (deprecated_read_register_dummy): Update.
8672 * frame.c (deprecated_generic_get_saved_register): Update.
8673
909cd28e
TR
86742003-05-15 Theodore A. Roth <troth@openavr.org>
8675
8676 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8677 (avr_gdbarch_init): Set breakpoint_from_pc method.
8678
b923b08d
AC
86792003-05-15 Andrew Cagney <cagney@redhat.com>
8680
8681 * regcache.c (build_regcache): Set deprecated_register_valid
8682 directly.
8683 (deprecated_grub_regcache_for_register_valid): Delete function.
8684 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8685 declaration.
8686
ae2f03ac 86872003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8688
8689 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8690 * symtab.c (lookup_symbol_aux): Delete calls to
8691 lookup_symbol_aux_minsyms.
8692 (lookup_symbol_aux_minsyms): Comment out function and
8693 prototype. Delete lookup by mangled name.
ae2f03ac 8694
18ec9831
KB
86952003-05-14 Kevin Buettner <kevinb@redhat.com>
8696
8697 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8698 correctly indicate an empty stack and ``stack_allocated'' to the
8699 indicate the number of elements initially allocated.
8700 (dwarf_expr_grow_stack): Simplify method for computing new
8701 stack size. Don't loop infinitely if ``stack_len'' is zero.
8702 (execute_stack_op): Move ``ctx->in_reg'' initialization
8703 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8704 be used in conjuction with DW_OP_piece. Revise error message
8705 accordingly.
8706
de18ac1f
TR
87072003-05-14 Theodore A. Roth <troth@openavr.org>
8708
8709 * MAINTAINERS: Update my email address.
8710 * avr-tdep.c: Ditto.
8711
176620f1
EZ
87122003-05-14 Elena Zannoni <ezannoni@redhat.com>
8713
8714 * symtab.h (enum domain_enum): Rename from namespace_enum.
8715 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8716 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8717 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8718 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8719 TYPES_NAMESPACE, METHODS_NAMESPACE.
8720 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8721 (struct symbol, struct partial_symbol): Rename field
8722 'namespace_enum namespace' to 'domain_enum domain'.
8723 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8724 Delete old define kludge for namespace.
8725
8726 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8727 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8728 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8729 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8730 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8731 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8732 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8733 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8734 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8735 occurrences of the above.
8736
b7f31508
ILT
87372003-05-14 Ian Lance Taylor <ian@airs.com>
8738
8739 * Makefile.in (install-only): Use $(SHELL) when running
8740 mkinstalldirs.
8741
2fdbdd39
ILT
87422003-05-13 Ian Lance Taylor <ian@airs.com>
8743
a208d82c
ILT
8744 * MAINTAINERS (write after approval): Add myself.
8745
2fdbdd39
ILT
8746 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8747 second and third arguments.
8748 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8749 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8750
fbd9dcd3
AC
87512003-05-13 Andrew Cagney <cagney@redhat.com>
8752
8753 * defs.h (store_address): Delete declaration.
8754 findvar.c (store_address): Delete function.
8755 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8756 store_unsigned_integer.
8757 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8758 * v850-tdep.c (v850_push_arguments): Ditto.
8759 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8760 * sh-tdep.c (sh64_get_saved_register): Ditto.
8761 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8762 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8763 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8764 (mips_get_saved_register): Ditto.
8765 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8766 (find_func_descr, ia64_push_arguments): Ditto.
8767 * i386-tdep.c (i386_push_arguments): Ditto.
8768 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8769 * frv-tdep.c (frv_push_arguments): Ditto.
8770 * frame.c (legacy_saved_regs_prev_register): Ditto.
8771 (deprecated_generic_get_saved_register): Ditto.
8772 * findvar.c (unsigned_address_to_pointer): Ditto.
8773 * dwarf2read.c (dwarf2_const_value): Ditto.
8774 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8775 * alpha-tdep.c (alpha_push_arguments): Ditto.
8776
6760f9e6
JB
87772003-05-12 J. Brobecker <brobecker@gnat.com>
8778
8779 * NEWS: Mention that the hppa-hpux port has been partially
8780 multiarched (32bit ABIT only, so far).
8781
30e221b4
AC
87822003-05-11 Andrew Cagney <cagney@redhat.com>
8783
8784 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8785 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8786 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8787 sim/testsuite/sim/arm/misaligned2.ms, and
8788 sim/testsuite/sim/arm/misaligned3.ms.
8789 * disasm.h (struct ui_file): Add opaque struct declaration.
8790 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8791 * frame.h (struct ui_file): Ditto.
8792
dea7f9ba
MK
87932003-05-11 Mark Kettenis <kettenis@gnu.org>
8794
8795 * value.h: Pretty print.
8796
01986c48
MK
87972003-05-10 Mark Kettenis <kettenis@gnu.org>
8798
8799 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8800
123a958e
AC
88012003-05-08 Andrew Cagney <cagney@redhat.com>
8802
8803 * regcache.h (max_register_size): Delete declaration.
8804 * regcache.c (max_register_size): Delete function.
8805 (struct regcache_descr): Delete field "max_register_size".
8806 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8807 registers fit in MAX_REGISTER_SIZE.
8808 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8809 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8810 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8811 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8812 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8813 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8814 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8815 * dve3900-rom.c, hppa-tdep.c: Ditto.
8816
eb294659
DC
88172003-05-08 David Carlton <carlton@math.stanford.edu>
8818
8819 * valops.c (push_word): Fix typo.
8820
d9d9c31f
AC
88212003-05-08 Andrew Cagney <cagney@redhat.com>
8822
8823 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8824 * gdbarch.h: Re-generate.
8825 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8826 (legacy_max_register_raw_size): Delete declaration.
8827 * regcache.c (legacy_max_register_raw_size): Delete function.
8828 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8829 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8830 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8831 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8832 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8833 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8834 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8835 * findvar.c, dwarf2cfi.c: Ditto.
8836
22540ece
AC
88372003-05-08 Andrew Cagney <cagney@redhat.com>
8838
8839 * mips-tdep.c (read_signed_register): New function, moved to here
8840 from "regcache.c".
8841 (read_signed_register_pid): Ditto.
8842 * regcache.c (read_signed_register_pid): Delete function, moved to
8843 "mips-tdep.c".
8844 (read_signed_register): Ditto.
8845 * regcache.h (read_signed_register): Delete declaration.
8846 (read_signed_register_pid): Delete declaration.
8847
0c92afe8
AC
88482003-05-08 Andrew Cagney <cagney@redhat.com>
8849
8850 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8851 * gdbarch.h: Re-generate.
8852 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8853 (legacy_max_register_virtual_size): Delete declaration.
8854 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8855 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8856 * tracepoint.c (memrange_sortmerge): Ditto.
8857 * sparc-tdep.c (sparc_print_registers): Ditto.
8858 * regcache.c (legacy_max_register_virtual_size): Delete function.
8859
6037b830
JB
88602002-05-08 J. Brobecker <brobecker@gnat.com>
8861
8862 * fork-child.c (escape_bang_in_quoted_argument): New function.
8863 (fork_inferior): Escape '!' characters in quoted arguments
8864 only when needed.
8865
5d62c8b1
JB
88662003-05-08 J. Brobecker <brobecker@gnat.com>
8867
8868 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8869 the language of the CU is not currently supported by GDB.
8870
20a0e81d
JB
88712003-05-08 J. Brobecker <brobecker@gnat.com>
8872
8873 * defs.h (language): Add language_minimal enum value.
8874 * c-lang.c (minimal_language_defn): New language definition.
8875 (_initialize_c_language): Add the new minimal language to the list
8876 of languages known to GDB.
8877
710ee10a
KB
88782003-05-08 Kevin Buettner <kevinb@redhat.com>
8879
8880 * frame.c (get_frame_type): Don't attempt to lazily initialize
8881 frame's unwinder for legacy frames.
8882
1750fa04
AC
88832003-05-07 Andrew Cagney <cagney@redhat.com>
8884
8885 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8886 and "regcache" parameters.
8887 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8888
ddf9f258 88892003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8890
8891 * dwarf2read.c (dwarf_decode_lines): Only use output of
8892 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8893 the current address.
8894
87767c29
AC
88952003-05-07 Andrew Cagney <cagney@redhat.com>
8896
8897 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8898 code.
8899
5e7b2f39
JB
89002003-05-07 Jim Blandy <jimb@redhat.com>
8901
8902 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8903 'maint info symtabs' and 'maint info psymtabs'.
8904 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8905 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8906 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8907 Declarations updated.
8908 * maint.c (maintenance_list_command): Delete.
8909 (_initialize_maint_cmds): Update calls to add_cmd.
8910 * gdbcmd.h (maintenancelistlist): Delete declaration.
8911 * cli/cli-cmds.c (maintenancelistlist): Delete.
8912 (init_cmd_lists): Don't initialize it.
8913 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8914
f6684c31
AC
89152003-05-07 Andrew Cagney <cagney@redhat.com>
8916
8917 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8918 "regcache".
8919 (d10v_print_registers_info): Update.
8920 (d10v_dmap_register, d10v_imap_register): Delete functions.
8921 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8922 and "imap_register".
8923 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8924 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8925 * arch-utils.c (generic_remote_translate_xfer_address): Add
8926 "regcache" and "gdbarch" parameters.
8927 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8928 parameter. Change class to multi-arch.
8929 * gdbarch.h, gdbarch.c: Re-generate.
8930 * remote.c (remote_xfer_memory): Use
8931 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8932
e4846b08
JJ
89332003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8934
8935 * infrun.c (prev_pc): Move declaration ahead of proceed().
8936 (proceed): Refresh prev_pc value before resuming.
8937 (stop_stepping): Remove code to refresh prev_pc.
8938
6b71b8ac
KW
89392003-05-06 Kris Warkentin <kewarken@qnx.com>
8940
8941 * nto-tdep.c: Removed stray comment.
8942
47979a4b
KW
89432003-05-06 Kris Warkentin <kewarken@qnx.com>
8944
8945 * i386-nto-tdep.c: Fix old K&R function definitions.
8946 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8947 Also change add_show_from_set() call to add_setshow_cmd().
8948 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8949
00905d52
AC
89502003-05-05 Andrew Cagney <cagney@redhat.com>
8951
8952 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8953 (fprint_dummy_frames): New function.
8954 (maintenance_print_dummy_frames): New function.
8955 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8956 * frame.c (fprint_frame_id): Make global.
8957 * frame.h (fprint_frame_id): Declare.
8958 * Makefile.in (dummy-frame.o): Update dependencies.
8959
b1e29e33
AC
89602003-05-05 Andrew Cagney <cagney@redhat.com>
8961
8962 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8963 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8964 SIZEOF_CALL_DUMMY_WORDS.
8965 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8966 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8967 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8968 CALL_DUMMY_BREAKPOINT_OFFSET.
8969 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8970 CALL_DUMMY_START_OFFSET.
8971 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8972 * gdbarch.h, gdbarch.c: Re-generate.
8973 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8974 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8975 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8976 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8977 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8978 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8979 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8980 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8981 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8982 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8983 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8984 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8985 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8986 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8987 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8988
89892003-05-05 Kris Warkentin <kewarken@qnx.com>
8990
8991 * configure.tgt: Add i[3456]86-*-nto*.
8992 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8993 * nto-tdep.c: New file. Neutrino target support routines.
8994 * nto-tdep.h: New file. Neutrino target header.
8995 * config/tm-qnxnto.h: New file.
8996 * config/i386/i386nto.mt: New file.
8997 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8998
0ce3d317
AC
89992003-05-04 Andrew Cagney <cagney@redhat.com>
9000
9001 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9002 (load_infrun_state): Ditto.
9003 (struct thread_info): Drop "prev_func_name" field.
9004 * thread.c (load_infrun_state): Update.
9005 (save_infrun_state): Update.
9006 * infrun.c (prev_func_name): Delete variable.
9007 (init_wait_for_inferior): Do not clear prev_func_name.
9008 (stop_stepping, keep_going, context_switch): Do not swap
9009 prev_func_name.
9010 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9011 instead of PC_IN_SIGTRAMP.
9012
46654a5b
AC
90132003-05-04 Andrew Cagney <cagney@redhat.com>
9014
9015 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9016 REGISTER_BYTE with register_offset_hack.
9017 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9018 that REGISTER_BYTE is consistent with the regcache.
9019 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9020 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9021
14b08c1b
MK
90222003-05-04 Mark Kettenis <kettenis@gnu.org>
9023
04c8243f
MK
9024 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9025 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9026
14b08c1b
MK
9027 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9028
c7a11e01
JB
90292003-05-03 J. Brobecker <brobecker@gnat.com>
9030
9031 From Thierry Schneider <tpschneider1@yahoo.com>
9032 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9033 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9034 (mi-cmd-symbol.o): Add rule.
9035
7043d8dc
AC
90362003-05-03 Andrew Cagney <cagney@redhat.com>
9037
9038 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9039 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9040 * gdbarch.h, gdbarch.c: Re-generate.
9041 * d10v-tdep.c (d10v_push_dummy_code): New function.
9042 (d10v_gdbarch_init): Set push_dummy_code.
9043 * infcall.c (legacy_push_dummy_code): New function.
9044 (generic_push_dummy_code): New function.
9045 (push_dummy_code): New function.
9046 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9047 instead of dummy_addr, to push_dummy_call. Move call to
9048 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9049 switch.
9050 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9051
92bf2b80
AC
90522003-05-03 Andrew Cagney <cagney@redhat.com>
9053
9054 * disasm.h (print_insn): Declare.
9055 * disasm.c (init_gdb_disassemble_info): New function.
9056 (gdb_disassembly): Call init_gdb_disassemble_info.
9057 (gdb_print_insn): New function.
9058 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9059 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9060 * mcore-tdep.c: Include "disasm.h"
9061 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9062 * d10v-tdep.c: Include "disasm.h".
9063 (display_trace): Call gdb_print_insn, instead of print_insn.
9064 (print_insn): Delete function.
9065 * printcmd.c: Include "disasm.h".
9066 (print_insn): Delete function.
9067 (print_formatted): Call gdb_print_insn, instead of print_insn.
9068 * Makefile.in (printcmd.o): Update dependencies.
9069 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9070
27d94c49
AC
90712003-05-02 Andrew Cagney <cagney@redhat.com>
9072
82de1e5b
AC
9073 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9074 PC_REGNUM, re-indent.
9075 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9076 PC_REGNUM isn't set.
9077
27d94c49
AC
9078 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9079 * gdbarch.h, gdbarch.c: Re-generate.
9080 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9081 register_virtual_size, pc_regnum, or register_bytes.
9082 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9083 (d10v_register_type): Use D10V_PC_REGNUM.
9084 (d10v_print_registers_info, d10v_read_pc): Ditto.
9085 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9086 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9087
a9c0dc7f
DC
90882003-05-02 David Carlton <carlton@bactrian.org>
9089
9090 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9091 the name with mstrsave.
9092
e33d66ec
EZ
90932003-05-02 Elena Zannoni <ezannoni@redhat.com>
9094
9095 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9096 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9097 (host_charset_name, target_charset_name): New vars for use by
9098 set/show commands.
9099 (host_charset_enum, target_charset_enum): New enums for set/show
9100 commands.
9101 (set_charset_sfunc, set_host_charset_sfunc,
9102 set_target_charset_sfunc): New functions.
9103 (set_host_charset, set_target_charset): Make static.
9104 (list_charsets, set_host_charset_command,
9105 set_target_charset_command): Delete functions.
9106 (show_charset_command): Rewrite as....
9107 (show_charset): Hook this up with the set/show command mechanism.
9108 (_initialize_charset): Change names of charsets to match the
9109 set/show enums. Use host_charset_name and target_charset_name.
9110 Use set/show mechanism for charset, host-charset, target-charset
9111 commands. Do not make 'show host-charset' and 'show
9112 target-charset' be aliases of 'show charset'.
9113
9114 * charset.h (set_host_charset, set_target_charset): Don't export,
9115 they are not used outside the file.
9116
2b6fd0d8
AC
91172003-05-01 Andrew Cagney <cagney@redhat.com>
9118
9119 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9120 (gdb_disassembly): Make "di" non static, always initialize and
9121 cleanup. Always use dis_asm_read_memory.
9122 (gdb_dis_asm_read_memory): Delete function.
9123
6ae2f580
AC
91242003-05-01 Andrew Cagney <cagney@redhat.com>
9125
9126 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9127 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9128
810ecf9f
AC
91292003-04-30 Andrew Cagney <cagney@redhat.com>
9130
9131 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9132 "tm_print_insn_info".
9133 (TARGET_PRINT_INSN_INFO): Delete macro.
9134 (dis_asm_read_memory): Delete function declaration.
9135 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9136 (tm_print_insn_info): Delete variable definition.
9137 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9138 * gdbarch.h, gdbarch.c: Re-generate.
9139 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9140 "deprecated_tm_print_insn_info".
9141 * mcore-tdep.c (mcore_dump_insn): Ditto.
9142 * mips-tdep.c (mips_gdbarch_init): Ditto.
9143 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9144 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9145 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9146 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9147 instead of TARGET_PRINT_INSN_INFO, add comment.
9148 * s390-tdep.c (s390_get_frame_info): Instead of
9149 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9150 (s390_check_function_end, s390_is_sigreturn): Ditto.
9151 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9152 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9153 * disasm.c: Include "gdbcore.h".
9154 (_initialize_disasm): New function, initialize
9155 "deprecated_tm_print_insn_info".
9156 (deprecated_tm_print_insn_info): New variable.
9157 (dis_asm_read_memory): Moved from "corefile.c", made static.
9158 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9159 * Makefile.in (disasm.o): Update dependencies.
9160
07020390
AC
91612003-04-30 Andrew Cagney <cagney@redhat.com>
9162
9163 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9164
a9fa03de
AF
91652003-04-29 Adam Fedor <fedor@gnu.org>
9166
9167 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9168 * infcall.c (find_function_addr): Make non-static.
9169 * infcall.h (find_function_addr): Declare.
9170 * Makefile.in (eval.o): Update dependencies.
9171
1bae87b9
AF
91722003-04-28 Adam Fedor <fedor@gnu.org>
9173
9174 * symtab.c (symbol_find_demangled_name): Check for and demangle
9175 ObjC symbols.
9176 (symbol_init_demangled_name): Init for language_objc as well.
9177
0ba6dca9
AC
91782003-04-28 Andrew Cagney <cagney@redhat.com>
9179
9180 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9181 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9182 * gdbarch.h, gdbarch.c: Re-generate.
9183 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9184 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9185 * inferior.h (deprecated_read_fp): Rename read_fp.
9186 (generic_target_read_fp): Delete declaration.
9187 * regcache.c (generic_target_read_fp): Delete function.
9188 (deprecated_read_fp): Replace read_fp, use
9189 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9190 * d10v-tdep.c (d10v_read_fp): Delete function.
9191 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9192
9193 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9194 deprecated_target_read_fp to generic_target_read_fp.
9195 * sh-tdep.c (sh_gdbarch_init): Ditto.
9196 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9198 * frv-tdep.c (frv_gdbarch_init): Ditto.
9199
9200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9201 deprecated_fp_regnum.
9202 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9203 * vax-tdep.c (vax_gdbarch_init): Ditto.
9204 * v850-tdep.c (v850_gdbarch_init): Ditto.
9205 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9206 * sh-tdep.c (sh_gdbarch_init): Ditto.
9207 * s390-tdep.c (s390_gdbarch_init): Ditto.
9208 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9209 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9210 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9211 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9213 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9214 * i386-tdep.c (i386_gdbarch_init): Ditto.
9215 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9216 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9217 * frv-tdep.c (frv_gdbarch_init): Ditto.
9218 * cris-tdep.c (cris_gdbarch_init): Ditto.
9219 * avr-tdep.c (avr_gdbarch_init): Ditto.
9220 * arm-tdep.c (arm_gdbarch_init): Ditto.
9221 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9222
9223 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9224 * v850-tdep.c (v850_gdbarch_init): Ditto.
9225 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9226 * sh-tdep.c (sh_gdbarch_init): Ditto.
9227 * s390-tdep.c (s390_gdbarch_init): Ditto.
9228 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9230 * mips-tdep.c (mips_gdbarch_init): Ditto.
9231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9232 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9233 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9234 * frv-tdep.c (frv_gdbarch_init): Ditto.
9235 * avr-tdep.c (avr_gdbarch_init): Ditto.
9236 * arm-tdep.c (arm_gdbarch_init): Ditto.
9237
9238 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9239 DEPRECATED_FP_REGNUM.
9240 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9241 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9242 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9243 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9244 (sparc32_register_virtual_type): Ditto.
9245 * sh-tdep.c (sh64_frame_chain): Ditto.
9246 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9247 (sh_nofp_frame_init_saved_regs): Ditto.
9248 (sh64_nofp_frame_init_saved_regs): Ditto.
9249 (sh_fp_frame_init_saved_regs): Ditto.
9250 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9251 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9252 * procfs.c (procfs_fetch_registers): Ditto.
9253 (procfs_store_registers): Ditto.
9254 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9255 (store_inferior_registers, fetch_core_registers): Ditto.
9256 (fetch_kcore_registers, clear_regs): Ditto.
9257 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9258 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9259 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9260 * nlm/i386.c (do_status): Ditto.
9261 * mipsv4-nat.c (supply_gregset): Ditto.
9262 * mips-tdep.c: Ditto for comments.
9263 * mips-nat.c (fetch_inferior_registers): Ditto.
9264 (store_inferior_registers, fetch_core_registers): Ditto.
9265 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9266 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9267 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9268 (i386_do_pop_frame, i386_register_type): Ditto.
9269 * hppa-tdep.c (hppa_frame_chain): Ditto.
9270 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9271 (hppa_pop_frame, hppa_read_fp): Ditto.
9272 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9273 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9274 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9275 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9276 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9277 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9278 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9279 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9280 * blockframe.c: Ditto for comments.
9281 * arch-utils.h: Ditto for comments.
9282 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9283 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9284 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9285 * alpha-tdep.h: Ditto for comments.
9286 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9287 (alpha_cannot_store_register): Ditto.
9288 (alpha_push_dummy_frame): Ditto.
9289 * alpha-nat.c (supply_gregset): Ditto.
9290
9291 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9292 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9293 * config/sparc/tm-sparc.h: Update comment.
9294
9295 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9296 deprecated_read_fp instead of TARGET_READ_FP.
9297 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9298 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9299 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9300 deprecated_read_fp instead of read_fp.
9301 * s390-tdep.c (s390_push_arguments): Ditto.
9302 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9303 * frame.h: Ditto in comments.
9304 * frame.c (legacy_get_prev_frame): Ditto.
9305 * dummy-frame.c (dummy_frame_this_id): Ditto.
9306 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9307
d7a27068
AC
93082003-04-28 Andrew Cagney <cagney@redhat.com>
9309
9310 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9311 * gdbarch.h, gdbarch.c: Re-generate.
9312 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9313 * vax-tdep.c (_initialize_vax_tdep): Update.
9314 * v850-tdep.c (_initialize_v850_tdep): Update.
9315 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9316 * s390-tdep.c (_initialize_s390_tdep): Update.
9317 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9318 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9319 * mips-tdep.c (_initialize_mips_tdep): Update.
9320 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9321 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9322 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9323 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9324 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9325 * frv-tdep.c (_initialize_frv_tdep): Update.
9326 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9327 (_initialize_cris_tdep): Update.
9328 * arch-utils.c (legacy_print_insn): Update.
9329 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9330
d2630e69
AF
93312003-04-26 Adam Fedor <fedor@gnu.org>
9332
9333 * linespec.c (decode_objc): New function to decode ObjC calls
9334 (decode_line_1): Check for ObjC calls (using decode_objc)
9335 * Makefile (linespec.o): Update dependencies.
9336
3086aeae
DJ
93372003-04-26 Daniel Jacobowitz <drow@mvista.com>
9338
9339 * breakpoint.h (struct breakpoint_ops): New.
9340 (struct breakpoint): Add ops member.
9341
9342 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9343 (mention): Use new breakpoint ops member.
9344 (set_raw_breakpoint): Initialize ops field to NULL.
9345 (print_exception_catchpoint, print_one_exception_catchpoint)
9346 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9347 (gnu_v3_exception_catchpoint_ops): New.
9348 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9349
1fbec6c3
AF
93502003-04-25 Adam Fedor <fedor@gnu.org>
9351
9352 * Makefile.in (COMMON_OBS): Add objc-lang.o
9353
0ef21242
AC
93542003-04-25 Andrew Cagney <cagney@redhat.com>
9355
9356 * d10v-tdep.c (print_insn): Delete function.
9357 (display_trace): Use TARGET_PRINT_INSN.
9358 (_initialize_d10v_tdep): Do not set tm_print_insn.
9359 (d10v_gdbarch_init): Set print_insn.
9360
f75493ed
AC
93612003-04-25 Andrew Cagney <cagney@redhat.com>
9362
9363 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9364 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9365 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9366 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9367 (nr_dmap_regs, a0_regnum): ... new functions.
9368 (d10v_print_registers_info): Use a0_regnum, use register_size.
9369 (d10v_register_byte): Delete function.
9370 (d10v_register_raw_size): Delete function.
9371 (d10v_register_type): Use a0_regnum.
9372 (d10v_print_registers_info): Use a0_regnum.
9373 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9374 (d10v_gdbarch_init): Do not set register_byte or
9375 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9376 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9377 extract_address.
9378 (trace_command): Use XCALLOC.
9379 (print_insn): Delete reference to tm_print_insn.
9380 (saved_regs_unwinder): Use store_unsigned_integer instead of
9381 store_address.
9382 * frame.h (FRAME_OBSTACK_CALLOC): Define
9383
2202b100
DC
93842003-04-25 David Carlton <carlton@bactrian.org>
9385
9386 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9387
4e45ca2e
AF
93882003-04-24 Adam Fedor <fedor@gnu.org>
9389
9390 * objc-lang.c: Include "valprint.h"
9391 * Makefile.in (objc-lang.o): Update dependencies.
9392
93de3e7f
AF
93932003-04-24 Adam Fedor <fedor@gnu.org>
9394
8ffd9b1b 9395 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9396 architecture dependant compilation and mark as unimplemented
9397 (until they get put in the gdbarch vector).
9398
0f20eeea
DC
93992003-04-23 David Carlton <carlton@bactrian.org>
9400
9401 * cp-support.c (cp_find_first_component): Accept 'operator' in
9402 more locations.
9403
74cfe982
AC
94042003-04-23 Andrew Cagney <cagney@redhat.com>
9405
9406 * infcall.c (call_function_by_hand): Eliminate redundant
9407 indentation. Move "saved_async" and "old_cleanups" to where they
9408 are needed.
8ffd9b1b 9409
52557533
AC
94102003-04-23 Andrew Cagney <cagney@redhat.com>
9411
9412 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9413 and "buffer". Move the "name" code to where it is needed.
9414
158775de
AC
94152003-04-23 Andrew Cagney <cagney@redhat.com>
9416
9417 * infcall.c (call_function_by_hand): Move variables "start_sp",
9418 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9419 code to ON_STACK switch branch.
8ffd9b1b 9420
ebc7896c
AC
94212003-04-23 Andrew Cagney <cagney@redhat.com>
9422
9423 * infcall.c (call_function_by_hand): Make declaration of "i",
9424 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9425 lint.
9426
d727590f
AC
94272003-04-23 Andrew Cagney <cagney@redhat.com>
9428
9429 * infcall.c (call_function_by_hand): Delete variable
9430 "n_method_args". Localize "param_type"'s declaration to the loop
9431 that it is used. Reinstate code assigning to said variable -
9432 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9433 Rationalize code using "param_type".
9434
d585e13a
AC
94352003-04-22 Andrew Cagney <cagney@redhat.com>
9436
9437 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9438 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9439 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9440 to DEPRECATED_PUSH_RETURN_ADDRESS.
9441
051caad9
KB
94422003-04-22 Kevin Buettner <kevinb@redhat.com>
9443
9444 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9445 on the DWARF2 register number prior to fetching a register.
9446
77296879
JB
94472003-04-22 J. Brobecker <brobecker@gnat.com>
9448
9449 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9450 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9451 this macro was always set to 0.
77296879
JB
9452 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9453 considering the fact that this macro was always set to 0.
9454 * hppa-tdep.h (hppa_store_return_value): Likewise.
9455 (hppa_extract_return_value): Likewise.
9456
4252f1df
JB
94572003-04-22 J. Brobecker <brobecker@gnat.com>
9458
9459 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9460 the hppa-pro target only.
9461
14604c6b
JB
94622003-04-21 J. Brobecker <brobecker@gnat.com>
9463
9464 Ongoing multi-arch conversion effort for HP/UX:
9465 * config/pa/tm-hppa.h: Move all macro that are no longer
9466 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9467 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9468
77eb01d1
JB
94692003-04-21 J. Brobecker <brobecker@gnat.com>
9470
9471 * config/pa/tm-hppa.h: Obsolete a section that was only used
9472 for hppa-pro.
9473
61995b3b
JB
94742003-04-21 J. Brobecker <brobecker@gnat.com>
9475
9476 Ongoing multi-arch conversion for HP/UX.
9477 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9478 if already defined (allows hppa64 to stay non-multiarched for now).
9479 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9480
4aa79dcc
AC
94812003-04-21 Andrew Cagney <cagney@redhat.com>
9482
9483 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9484
0f751ff2
AC
94852003-04-21 Andrew Cagney <cagney@redhat.com>
9486
9487 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9488 "i386_num_mmx_regs".
9489
04714b91
AC
94902003-04-21 Andrew Cagney <cagney@redhat.com>
9491
9492 * infcall.c: New file.
9493 * infcall.h: New file.
9494 * valarith.c: Include "infcall.h".
9495 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9496 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9497 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9498 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9499 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9500 (SFILES): Add "infcall.c"
9501 (COMMON_OBS): Add "infcall.o".
9502 (infcall.o): Specify dependencies.
9503 * value.h (call_function_by_hand): Delete declaration.
9504 * inferior.h (run_stack_dummy): Delete declaration.
9505 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9506 (run_stack_dummy): Move to "infcall.c", merged into
9507 call_function_by_hand.
9508 * valops.c (call_function_by_hand): Moved to "infcall.c".
9509 (find_function_addr, value_arg_coerce): Ditto.
9510 (unwindonsignal_p, coerce_float_to_double): Ditto.
9511 (_initialize_valops): Move "set/show coerce-float-to-double", and
9512 "set/show unwindonsignal" commands to "infcall.c".
9513 * v850-tdep.c, target.h: Update comments.
9514 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9515 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9516 (sh64_init_extra_frame_info): Update comments.
9517 * mn10300-tdep.c: Update comments.
9518 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9519 * config/sparc/tm-sparc.h: Update comments.
9520 * breakpoint.h: Update comments.
9521 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9522 * arm-tdep.c: Update comment.
9523
f9d3c2a8
MK
95242003-04-19 Mark Kettenis <kettenis@gnu.org>
9525
c40e1eab
MK
9526 * i386-tdep.c (i386_num_register_names): New variable.
9527 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9528 (MM0_REGNUM): Remove redundant parentheses in define.
9529 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9530 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9531 i386_mxcsr_regnum_p): Remove redundant parentheses.
9532 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9533
94ea66b3
MK
9534 * i386-tdep.c (i386_extract_return_value,
9535 i386_store_return_value): Correct check for availability of
9536 floating-point registers.
9537
54299a1d
MK
9538 * i386-tdep.c (i386_frame_num_args): Remove function.
9539 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9540
c86c27af
MK
9541 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9542 mmx_regnum_to_fp_regnum. Adjust all callers.
9543
f9d3c2a8
MK
9544 * i386-tdep.c (i386_get_longjmp_target): Use
9545 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9546 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9547 extract_address.
9548
94ba74a9
MK
95492003-04-19 Mark Kettenis <kettenis@gnu.org>
9550
9551 * core-regset.c: Update comments to reflect reality. Re-order
9552 includes.
9553 (fetch_core_registers): Use switch instead of if. Remove
9554 redundant prototype.
9555
4074e13c
JB
95562003-04-18 Jim Blandy <jimb@redhat.com>
9557
9558 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9559 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9560
e3ab4aba
RH
95612003-04-17 Richard Henderson <rth@redhat.com>
9562
9563 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9564
627bf7c1
EZ
95652003-04-17 Michael Snyder <msnyder@redhat.com>
9566 Karen Bennet <bennet@redhat.com>
9567
9568 Committed by Elena Zannoni <ezannoni@redhat.com>
9569 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9570
514621a9
EZ
95712003-04-17 Elena Zannoni <ezannoni@redhat.com>
9572
9573 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9574 value if the return type is void.
514621a9 9575
b4acd559
JJ
95762003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9577
9578 * thread-db.c: Reindented.
8ffd9b1b 9579
530b167e 95802003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9581
9582 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9583 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9584 as types.
9585
0a48e7e8
MS
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
8ffd9b1b 9609
ab9fe00e
KB
96102003-04-16 Kevin Buettner <kevinb@redhat.com>
9611
610a3745 9612 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9613 the size of ``long double'' to 16, instead of 8.
9614
e64a344c
MK
96152003-04-16 Mark Kettenis <kettenis@gnu.org>
9616
9617 * i386-linux-nat.c: Add some whitespace to make things more
9618 readable.
9619 (fetch_register, store_register, fetch_inferior_registers,
9620 store_inferior_registers): Get rid of assignment in if-statement.
9621 (store_register): Fix typo in error message.
9622
25d41031
AC
96232003-04-16 Andrew Cagney <cagney@redhat.com>
9624
9625 * utils.c (xmmalloc): Always allocate something, matches
9626 libiberty/xmalloc's semantics.
9627 (xmrealloc, xmcalloc): Ditto.
9628
c50901fd
AC
96292003-04-16 Andrew Cagney <cagney@redhat.com>
9630
9631 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9632 update comments.
9633 (get_frame_type): Initialize unwind and type when needed.
9634 (get_frame_id, frame_register_unwind): Ditto.
9635
f81824a9
AC
96362003-04-16 Andrew Cagney <cagney@redhat.com>
9637
9638 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9639 obsolete.
9640 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9641 * sparcl-stub.c: Obsolete file.
9642 * config/sparc/tm-sparclet.h: Obsolete file.
9643 * sparclet-stub.c: Obsolete file.
9644 * sparclet-rom.c: Obsolete file.
9645 * sparcl-tdep.c: Obsolete file.
9646 * config/sparc/tm-sparclite.h: Obsolete file.
9647 * config/sparc/sparclite.mt: Obsolete file.
9648 * config/sparc/sparclet.mt: Obsolete file.
9649 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9650 sparc86x-*-* obsolete.
9651
9219021c
DC
96522003-04-15 David Carlton <carlton@math.stanford.edu>
9653
9654 * Makefile.in (SFILES): Add cp-namespace.c.
9655 (COMMON_OBS): Add cp-namespace.o.
9656 (block.o): Depend on gdb_obstack_h and cp_support_h.
9657 (buildsym.o): Depend on cp_support_h.
9658 (cp-namespace.o): New.
9659 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9660 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9661 (dwarf2read.o): Depend on cp_support_h.
9662 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9663 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9664 processing_current_namespace.
9665 (read_namespace): Update processing_current_namespace; check for
9666 anonymous namespaces.
9667 (dwarf2_name): New function.
9668 (dwarf2_extension): Ditto.
9669 * cp-support.h: Update copyright, contributors.
9670 Add inclusion guards.
9671 Add opaque declaration for structs obstack, block, symbol.
9672 (struct using_direct): New struct.
9673 Add declarations for cp_find_first_component,
9674 cp_entire_prefix_len, processing_has_namespace_info,
9675 processing_current_namespace, cp_is_anonymous,
9676 cp_add_using_directive, cp_initialize_namespace,
9677 cp_finalize_namespace, cp_set_block_scope,
9678 cp_scan_for_anonymous_namespaces.
9679 * cp-namespace.c: New file.
9680 * cp-support.c: Update copyright.
9681 Include ctype.h, gdb_assert.h, gdbcmd.h.
9682 New variable maint_cplus_cmd_list.
9683 (cp_find_first_component): New function.
9684 (cp_entire_prefix_len, maint_cplus_command)
9685 (first_component_command, _initialize_cp_support): Ditto.
9686 * buildsym.c: Include cp-support.h.
9687 New variable using_list.
9688 (add_symbol_to_list): Check for anonymous namespaces.
9689 (finish_block): Set block's scope.
9690 (start_symtab): Initialize C++ namespace support.
9691 (end_symtab): Finalize C++ namespace support.
9692 * block.h: Add opaque declarations for structs
9693 block_namespace_info, using_direct, and obstack.
9694 Add declarations for block_set_scope and block_set_using.
9695 (struct block): Add 'language_specific' member.
9696 (BLOCK_NAMESPACE): New macro.
9697 * block.c: Include gdb_obstack.h and cp-support.h.
9698 (struct block_namespace_info): New struct.
9699 (block_set_scope): New function.
9700 (block_set_using, block_initialize_namespace): Ditto.
9701
d5a921c9
KB
97022003-04-14 Kevin Buettner <kevinb@redhat.com>
9703
9704 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9705 (locate_base): Return early if there aren't any link map offsets.
9706 (svr4_solib_create_inferior_hook): Warn if shared library support
9707 is unavailable.
9708
d2a52b27
DC
97092003-04-14 David Carlton <carlton@math.stanford.edu>
9710
9711 * symtab.c (symbol_set_names): Add prefix when storing Java names
9712 in hash table. Fix for PR java/1039.
9713
980cae7a
DC
97142003-04-14 David Carlton <carlton@math.stanford.edu>
9715
9716 * symtab.c (symbol_set_names): Rename 'name' arg to
9717 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9718 * symtab.h: Change 'name' argument in declaration of
9719 symbol_set_names to 'linkage_name'.
9720 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9721
e227b13c
AC
97222003-04-14 Andrew Cagney <cagney@redhat.com>
9723
9724 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9725 return the fully sign-extended register value.
9726 (get_frame_pointer): Ditto.
9727 (mips_pop_frame): Initialize "proc_desc" after checking for a
9728 dummy frame.
9729
36712a20
AC
97302003-04-14 Andrew Cagney <cagney@redhat.com>
9731
9732 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9733 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9734 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9735 (mips_push_register): Delete function.
9736 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9737 PUSH_FP_REGNUM.
9738
44ea7b70
JB
97392003-04-14 Jim Blandy <jimb@redhat.com>
9740
9741 * symmisc.c: #include "gdb_regex.h".
9742 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9743 functions.
9744 * maint.c (maintenance_list_command): New function.
9745 (_initialize_maint_cmds): Register the above as commands.
9746 * symtab.h (maintenance_list_symtabs,
9747 maintenance_list_psymtabs): New declarations.
9748 * cli/cli-cmds.c (maintenancelistlist): New variable.
9749 (init_cmd_lists): Initialize it.
9750 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9751 * gdbcmd.h (maintenancelistlist): New declaration.
9752 * Makefile.in (symmisc.o): Update dependencies.
9753
2d0c7962
EZ
97542003-04-14 Elena Zannoni <ezannoni@redhat.com>
9755
9756 * s390-nat.c: Include asm/types.h for addr_t.
9757
1947a811
CV
97582003-04-14 Corinna Vinschen <vinschen@redhat.com>
9759
9760 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9761 actually incoming type.
9762
adb616d7
AC
97632003-04-13 Andrew Cagney <cagney@redhat.com>
9764
9765 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9766 get_next_frame and get_frame_saved_regs.
9767
9b5e151c
AC
97682003-04-13 Andrew Cagney <cagney@redhat.com>
9769
9770 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9771 of gdbarch_num_regs.
9772
ef6e7e13
AC
97732003-04-13 Andrew Cagney <cagney@redhat.com>
9774
9775 * frame.h: Mention what replaced what in "struct frame_info".
9776 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9777 deprecated_update_frame_base_hack and
9778 deprecated_update_frame_pc_hack.
9779 * hppa-tdep.c: Ditto.
9780
61fbb938
DJ
97812003-04-13 Daniel Jacobowitz <drow@mvista.com>
9782
9783 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9784 to read_reg and update its comment. Remove regnum member.
9785 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9786 Don't call read_reg when setting in_reg. Call read_reg to get
9787 the frame base if it's in a register. Return the register number
9788 on the stack instead of in the context. Remove extra arguments
9789 to read_reg.
9790 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9791 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9792 the register number on the expression stack.
9793 (needs_frame_read_reg): Remove extra arguments.
9794
0d53c4c4
DJ
97952003-04-13 Daniel Jacobowitz <drow@mvista.com>
9796
9797 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9798 made non-static.
9799 (execute_stack_op): All callers updated.
9800 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9801 * dwarf2loc.c (find_location_expression): New function.
9802 (dwarf_expr_frame_base): Call it.
9803 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9804 (dwarf2_tracepoint_var_ref): New function, broken out from
9805 locexpr_tracepoint_var_ref.
9806 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9807 Make static.
9808 (loclist_read_variable, loclist_read_needs_frame): New functions.
9809 (loclist_describe_location, loclist_tracepoint_var_ref): New
9810 functions.
9811 (dwarf2_loclist_funcs): New struct location_funcs.
9812 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9813 (struct dwarf2_locexpr_baton): Add comments.
9814 (dwarf2_loclist_funcs): New extern.
9815 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9816 base_address and base_known.
9817 (dwarf_loc_buffer): New variable.
9818 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9819 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9820 (dwarf2_has_info): Initialize dwarf_loc_offset.
9821 (dwarf2_build_psymtabs): Read in .debug_loc.
9822 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9823 DWARF_LOC_SIZE.
9824 (psymtab_to_symtab_1): Likewise. Move base address calculation
9825 here, from...
9826 (dwarf2_get_pc_bounds): ... here. Use the base address from
9827 cu_header.
9828 (dwarf2_symbol_mark_computed): Handle location lists.
9829
6aca59a3
DJ
98302003-04-13 Daniel Jacobowitz <drow@mvista.com>
9831
9832 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9833 if the linkage name demangled successfully.
9834
aca1fcd0
MK
98352003-04-13 Mark Kettenis <kettenis@gnu.org>
9836
97095916
MK
9837 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9838 disassmbly_flavour): Removed.
9839
aca1fcd0
MK
9840 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9841
562a961f
MK
98422003-04-13 Mark Kettenis <kettenis@gnu.org>
9843
9844 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9845
bd013d54
AC
98462003-04-12 Andrew Cagney <cagney@redhat.com>
9847
9848 * frame.h (struct frame_info): Move definition from here ...
9849 * frame.c (struct frame_info): ... to here.
9850
167ef8b1
AC
98512003-04-12 Andrew Cagney <cagney@redhat.com>
9852
9853 * gdbthread.h (save_infrun_state): Delete parameter
9854 "prev_func_start".
9855 (struct thread_info): Delete field "prev_func_start".
9856 (load_infrun_state): Ditto.
9857 * thread.c (load_infrun_state, save_infrun_state): Update.
9858 * infrun.c (prev_func_start): Delete variable.
9859 (context_switch, init_wait_for_inferior): Update.
9860 (stop_stepping, keep_going): Update.
9861
da3331ec
AC
98622003-04-12 Andrew Cagney <cagney@redhat.com>
9863
9864 * gdbarch.sh: Add missing opaque declarations.
9865 * gdbarch.h: Regnerate.
9866 * symtab.h: Add missing opaque declarations.
9867 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9868 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9869 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9870 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9871 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9872 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9873 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9874 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9875 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9876 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9877 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9878 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9879 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9880
18adea3f
AC
98812003-04-11 Andrew Cagney <cagney@redhat.com>
9882
9883 * frame.c (get_frame_id): Return this frame's "id".
9884 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9885 function start.
9886 (legacy_saved_regs_this_id): Replace function body with
9887 internal-error.
9888 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9889 FRAME_OBSTACK_ZALLOC.
9890 (create_new_frame): Mark the frame ID as valid.
9891
2252e863
AO
98922003-04-11 Alexandre Oliva <aoliva@redhat.com>
9893
9894 * Makefile.in (libbfd_h): Added missing setting.
9895 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9896 according to the selected ABI.
9897
a8245ab8
JJ
98982003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9899
9900 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9901
6913c89a
AC
99022003-04-11 Andrew Cagney <cagney@redhat.com>
9903
9904 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9905 SAVED_PC_AFTER_CALL.
9906 * gdbarch.h, gdbarch.c: Regenerate.
9907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9908 * x86-64-tdep.c (x86_64_init_abi): Update.
9909 * vax-tdep.c (vax_gdbarch_init): Update.
9910 * v850-tdep.c (v850_gdbarch_init): Update.
9911 * sparc-tdep.c (sparc_gdbarch_init): Update.
9912 * sh-tdep.c (sh_gdbarch_init): Update.
9913 * s390-tdep.c (s390_gdbarch_init): Update.
9914 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9915 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9916 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9917 * mips-tdep.c (mips_gdbarch_init): Update.
9918 * mcore-tdep.c (mcore_gdbarch_init): Update.
9919 * m68k-tdep.c (m68k_gdbarch_init): Update.
9920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9921 * ia64-tdep.c (ia64_gdbarch_init): Update.
9922 (ia64_saved_pc_after_call): Update declaration.
9923 * i386ly-tdep.c (i386lynx_init_abi): Update.
9924 * i386-tdep.c (i386_gdbarch_init): Update.
9925 * hppa-tdep.c (hppa_gdbarch_init): Update.
9926 * h8300-tdep.c (h8300_gdbarch_init): Update.
9927 * frv-tdep.c (frv_gdbarch_init): Update.
9928 * cris-tdep.c (cris_gdbarch_init): Update.
9929 * avr-tdep.c (avr_gdbarch_init): Update.
9930 * arm-tdep.c (arm_gdbarch_init): Update.
9931 * alpha-tdep.c (alpha_gdbarch_init): Update.
9932 * ns32knbsd-nat.c (frame_num_args): Update.
9933 * ns32k-tdep.c (umax_frame_num_args): Update.
9934 * mips-tdep.c (mips_init_frame_pc_first): Update.
9935 * infrun.c (step_over_function): Update.
9936 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9937 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9938 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9939 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9940 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9941 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9942 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9943 * arch-utils.c (init_frame_pc_default): Update.
9944 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9945 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9946 declaration.
8ffd9b1b 9947
38edeab8
AC
99482003-04-11 Andrew Cagney <cagney@redhat.com>
9949
9950 * i387-tdep.c: Update copyright.
9951 (i387_to_double): Delete function.
9952 (double_to_i387): Delete function.
9953
81f8a206
AC
99542003-04-10 Andrew Cagney <cagney@redhat.com>
9955
9956 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9957 frame's function's address. Simplify.
9958 (d10v_frame_unwind_cache): Check that the frame's function is
9959 non-zero.
9960
6e691f7a
JB
99612003-04-10 Jim Blandy <jimb@redhat.com>
9962
9963 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9964 call to set_gdbarch_deprecated_push_arguments.
9965
7f78e237
AC
99662003-04-10 Andrew Cagney <cagney@redhat.com>
9967
9968 * frame.c (fprint_frame_id): New function.
9969 (fprint_frame_type, fprint_frame): New function.
9970 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9971 (create_sentinel_frame, get_frame_id): Ditto.
9972 (frame_id_p, frame_id_eq): Ditto.
9973 (frame_id_inner, create_new_frame): Ditto.
9974 (legacy_get_prev_frame, get_prev_frame): Ditto.
9975 (deprecated_update_frame_pc_hack): Ditto.
9976 (frame_register_unwind): Ditto.
9977 (deprecated_update_frame_base_hack): Ditto.
9978
f870b49b
CV
99792003-04-10 Corinna Vinschen <vinschen@redhat.com>
9980
9981 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9982 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9983 frame_chain function.
9984 * Makefile.in: Add dependencies due to above change.
9985
7c86889b
CV
99862003-04-10 Corinna Vinschen <vinschen@redhat.com>
9987
9988 * blockframe.c (legacy_frame_chain_valid): Move call to
9989 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9990 inside_entry_file.
9991
d0a55772
AC
99922003-04-09 Andrew Cagney <cagney@redhat.com>
9993
9994 * frame.h (struct frame_id): Replace "pc" and "base" with
9995 "stack_addr" and "code_addr". Update comments.
9996 (frame_id_build): Update parameter names and comment.
9997 (struct frame_info): Replace "id_p" and "id" with "this_id".
9998 * dummy-frame.c (dummy_frame_this_id): Update.
9999 * breakpoint.c (print_one_breakpoint): Update.
10000 * frame.c (get_frame_id): Update.
10001 (get_frame_base, frame_id_build): Update.
10002 (create_sentinel_frame, legacy_get_prev_frame): Update.
10003 (deprecated_update_frame_base_hack): Update.
10004 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10005 (frame_id_inner): Ditto.
10006
ac16bf07
AC
100072003-04-09 Andrew Cagney <cagney@redhat.com>
10008
10009 * defs.h (gdb_print_host_address): Make "addr" parameter a
10010 pointer constant.
10011 * utils.c (gdb_print_host_address): Update.
10012
366cfc9e
KB
100132003-04-09 Kevin Buettner <kevinb@redhat.com>
10014
10015 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10016 register number for R0 is 0.
10017
cd983b5c
JB
100182003-04-09 J. Brobecker <brobecker@gnat.com>
10019
10020 * frame.h (struct gdbarch): Add opaque structure definition
10021 to avoid a compilation warning on LynxOS 4.0.
10022
d1340264
AC
100232003-04-09 Andrew Cagney <cagney@redhat.com>
10024
10025 * frame.h (struct frame_info): Delete field "pc". Replace
10026 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10027 structure.
10028 * frame.c (frame_pc_unwind): Update.
10029 (create_sentinel_frame): Do not set "pc".
10030 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10031 (get_frame_pc): Call frame_pc_unwind.
10032 (deprecated_update_frame_pc_hack): Update.
10033 (create_new_frame): Use "pc" not "->pc".
10034
90a6fffb
AC
100352003-04-09 Andrew Cagney <cagney@redhat.com>
10036
10037 * frame.c (get_frame_id): Eliminate code updating "frame".
10038 (legacy_get_prev_frame): Ditto.
10039 (get_frame_base): Return id.base directly.
10040 (deprecated_update_frame_base_hack): Update "id.base".
10041 * frame.h (struct frame_info): Delete field "frame".
10042
2fbce691
AC
100432003-04-09 Andrew Cagney <cagney@redhat.com>
10044
10045 * NEWS: Mention that the "Sequent family" is obsolete.
10046 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10047 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10048 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10049 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10050 * config/i386/tm-ptx4.h: Obsolete file.
10051 * config/i386/tm-ptx.h: Obsolete file.
10052 * symm-tdep.c: Obsolete file.
10053 * config/i386/symmetry.mt: Obsolete file.
10054 * config/i386/tm-symmetry.h: Obsolete file.
10055 * symm-nat.c: Obsolete file.
10056 * config/i386/nm-symmetry.h: Obsolete file.
10057 * config/i386/xm-symmetry.h: Obsolete file.
10058 * config/i386/symmetry.mh: Obsolete file.
10059 * config/i386/nm-ptx4.h: Obsolete file.
10060 * config/i386/ptx4.mh: Obsolete file.
10061 * config/i386/ptx.mt: Obsolete file.
10062 * config/i386/ptx.mh: Obsolete file.
10063 * config/i386/xm-ptx4.h: Obsolete file.
10064 * config/i386/xm-ptx.h: Obsolete file.
10065
78c43945
AC
100662003-04-09 Andrew Cagney <cagney@redhat.com>
10067
10068 Obsolete mips*-*-mach3*.
10069 * NEWS: Mention that mips*-*-mach3* is obsolete.
10070 * m3-nat.c: Obsolete file.
10071 * config/nm-m3.h: Obsolete file.
10072 * config/mips/tm-mipsm3.h: Obsolete file.
10073 * config/mips/mipsm3.mt: Obsolete file.
10074 * config/mips/mipsm3.mh: Obsolete file.
10075 * config/mips/xm-mipsm3.h: Obsolete file.
10076 * mipsm3-nat.c: Obsolete file.
10077 * configure.host: Obsolete mips-dec-mach3*.
10078 * configure.tgt: Obsolete mips*-*-mach3*.
10079
f1908289
AC
100802003-04-09 Andrew Cagney <cagney@redhat.com>
10081
10082 * doublest.h: Update copyright.
10083 (deprecated_store_floating, deprecated_extract_floating): Rename
10084 store_floating and extract_floating. Update comments.
10085 * doublest.c: Update copyright.
10086 (extract_floating_by_length): Replace extract_floating.
10087 (store_floating_by_length): Replace store_floating.
10088 (deprecated_extract_floating): New function.
10089 (deprecated_store_floating): New function.
10090 (extract_typed_floating): Call extract_floating_by_length.
10091 (store_typed_floating): Call store_floating_by_length.
10092 * x86-64-tdep.c (x86_64_store_return_value): Update.
10093 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10094 (sh64_extract_return_value): Update.
10095 (sh_sh4_register_convert_to_virtual): Update.
10096 (sh_sh64_register_convert_to_virtual): Update.
10097 (sh_sh4_register_convert_to_raw): Update.
10098 (sh_sh64_register_convert_to_raw): Update.
10099 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10100 (rs6000_register_convert_to_raw): Update.
10101 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10102 (ia64_register_convert_to_raw): Update.
10103 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10104 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10105 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10106 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10107 (alpha_register_convert_to_raw): Update.
10108
4443bd83
AC
101092003-04-08 Andrew Cagney <cagney@redhat.com>
10110
10111 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10112 * gdbarch.h, gdbarch.c: Re-generate.
10113 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10114 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10115 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10116 conditionally, use frame_pc_unwind as an alternative. Add
10117 comments.
10118 * arch-utils.c (init_frame_pc_default): Only call
10119 SAVED_PC_AFTER_CALL when available.
10120
c0236d92
EZ
101212003-04-08 Elena Zannoni <ezannoni@redhat.com>
10122
fbe586ae 10123 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10124 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10125 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10126 (start_remote): Ditto.
10127 (handle_inferior_event): Ditto.
10128 (save_inferior_status): Ditto.
10129 (restore_inferior_status): Ditto.
10130 * infcmd.c (attach_command): Ditto.
10131 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10132 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10133 * alpha-tdep.c (heuristic_proc_start): Ditto.
10134 * mips-tdep.c (heuristic_proc_start): Ditto.
10135 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10136 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10137 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10138 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10139 * remote-vx.c (vx_create_inferior): Ditto.
10140
101412003-04-08 Elena Zannoni <ezannoni@redhat.com>
10142
10143 * infrun.c (stop_soon_quietly): Make it an enum, to better
10144 override the default behavior of handle_inferior_event.
10145 (clear_proceed_status): Update uses of stop_soon_quietly to
10146 reflect that it is now an enum.
10147 (start_remote): Ditto.
10148 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10149 is set to handle the new GNU/Linux kernel behavior for
10150 attach/sigstop. Update uses of stop_soon_quietly.
10151 * inferior.h (enum stop_kind): New enum.
10152 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10153 Reset normal handle_inferior_event behavior, afterwards.
10154 * fork-child.c (startup_inferior): Update.
10155 * alpha-tdep.c (heuristic_proc_start): Update.
10156 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10157 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10158 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10159 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10160 * remote-vx.c (vx_create_inferior): Update.
10161 * mips-tdep.c (heuristic_proc_start): Update.
10162
1211bce3
EZ
101632003-04-07 Elena Zannoni <ezannoni@redhat.com>
10164
10165 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10166 be freed more than once, causing wild memory corruptions.
1211bce3 10167 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10168 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10169 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10170 with the "core" target.
1211bce3 10171
f0ef6b29
KB
101722003-04-07 Kevin Buettner <kevinb@redhat.com>
10173
10174 * mips-tdep.c (mips_print_fp_register): New function, created from
10175 do_fp_register_row(). Registers are now (also) printed as hex.
10176 Only one register is printed per row.
10177 (mips_print_register, do_fp_register_row): Print floating point
10178 registers with mips_print_fp_register().
10179
8cf71652
AC
101802003-04-06 Andrew Cagney <cagney@redhat.com>
10181
5e488a7b
AC
10182 * valprint.h (inspect_it): Add extern declaration.
10183 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10184 (selectors_info, classes_info): Ditto.
10185 (find_objc_msgcall): Fix indentation.
10186 (objc_printstr): Delete extern declarations.
10187
8cf71652
AC
10188 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10189
e6ba3bc9
AC
101902003-04-06 Andrew Cagney <cagney@redhat.com>
10191
10192 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10193 Update comment.
10194 * frame.c (legacy_saved_regs_this_id): Update.
10195 (legacy_get_prev_frame): Update.
10196 * xstormy16-tdep.c: Update comment.
10197 * sparc-tdep.c (sparc_frame_chain): Update comment.
10198 * blockframe.c (legacy_frame_chain_valid): Update.
10199
55e1d7e7
AC
102002003-04-06 Andrew Cagney <cagney@redhat.com>
10201
996179ee
AC
10202 * valprint.c (val_print_type_code_int): Delete #ifdef
10203 PRINT_TYPELESS_INTEGER code.
10204
55e1d7e7
AC
10205 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10206 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10207 multi-arch definition.
10208 * gdbarch.h: Re-generate.
10209
43bd9a9e
AC
102102003-04-05 Andrew Cagney <cagney@redhat.com>
10211
10212 Eliminate FRAME_FIND_SAVED_REGS.
10213 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10214 Change FSR parameter to a pointer.
10215 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10216 Assume FSR parameter is a pointer.
10217 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10218 Make fsr a pointer.
10219 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10220 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10221 saved_regs a pointer.
10222 (hppa_frame_saved_pc): Ditto.
10223 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10224 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10225 pointer.
10226 (restore_pc_queue): Make fsr a pointer.
10227 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10228 (hppa_frame_chain): Make saved_regs a pointer, call
10229 hppa_frame_init_saved_regs.
10230 * sparc-tdep.c: Include "gdb_assert.h".
10231 (sparc_frame_find_saved_regs): Replace internal_error with
10232 gdb_assert.
10233 * remote-vxsparc.c (vx_read_register): Delete reference to
10234 FRAME_FIND_SAVED_REGS.
10235 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10236 * gdbarch.h: Regenerate.
10237 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10238 (deprecated_get_frame_saved_regs): Delete declaration.
10239 (struct frame_saved_regs): Delete definition.
10240 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10241 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10242 (hppa_frame_find_saved_regs): Delete declaration.
10243 (FRAME_FIND_SAVED_REGS): Delete macro.
10244 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10245 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10246 FRAME_FIND_SAVED_REGS in comment.
10247
be41e9f4
AC
102482003-04-05 Andrew Cagney <cagney@redhat.com>
10249
10250 * frame.c (frame_func_unwind, get_frame_func): New functions.
10251 * frame.h (get_frame_func, frame_func_unwind): Declare.
10252 (struct frame_info): Add field "prev_func" for caching the
10253 previous frame's function address.
10254 * arm-tdep.c (arm_frameless_function_invocation): Combine
10255 get_pc_function_start and get_frame_pc into get_frame_func.
10256 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10257 (sh64_nofp_frame_init_saved_regs): Ditto.
10258 * s390-tdep.c (s390_function_start): Ditto.
10259 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10260 (rs6000_frameless_function_invocation): Ditto.
10261 (rs6000_frame_saved_pc): Ditto.
10262 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10263 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10264 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10265 (i386_frame_init_saved_regs): Ditto.
10266 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10267 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10268 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10269 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10270 * blockframe.c (frameless_look_for_prologue): Ditto.
10271
a01dd7cc
AC
102722003-04-05 Andrew Cagney <cagney@redhat.com>
10273
10274 * frame.c (legacy_get_prev_frame): Link prev to next at the
10275 function start. Update comments.
10276
5e5592e6
AC
102772003-04-05 Andrew Cagney <cagney@redhat.com>
10278
10279 * frame.c (get_frame_id): Update comment.
10280 (legacy_get_prev_frame): Update comment.
10281 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10282 * gdbarch.h: Regenerate.
10283 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10284 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10285
6fba5002
AC
102862003-04-05 Andrew Cagney <cagney@redhat.com>
10287
10288 * stack.c (print_frame_info): Use get_frame_pc.
10289
7df05f2b
AC
102902003-04-04 Andrew Cagney <cagney@redhat.com>
10291
10292 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10293 the frame's type from the unwinder.
10294 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10295 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10296 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10297 (get_frame_base_address): Use get_frame_type.
10298 (get_frame_locals_address, get_frame_args_address): Ditto.
10299 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10300 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10301 (struct frame_info): Add comment explaining why the frame contains
10302 a "type" field.
10303 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10304 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10305 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10306 NORMAL_FRAME.
10307 * frame-unwind.h: Include "frame.h".
10308 (struct frame_unwind): Add "type" field.
10309 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10310
11889732
AC
103112003-04-04 Andrew Cagney <cagney@redhat.com>
10312
10313 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10314 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10315 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10316 get_frame_base.
10317 (d10v_unwind_dummy_id): Use frame_id_build.
10318 * frame.c (find_frame_sal): Use get_frame_pc.
10319 (create_new_frame): Use deprecated_update_frame_pc_hack and
10320 deprecated_update_frame_base_hack.
10321 (create_sentinel_frame): Add comment about ->pc going away.
10322 (get_prev_frame): Add comment about ->pc going away.
10323 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10324 frame_id_build, deprecated_update_frame_pc_hack and
10325 deprecated_update_frame_base_hack.
10326 (select_frame): Use get_frame_pc.
10327 (legacy_saved_regs_this_id): Use frame_id_build.
10328
50c46a0d
EZ
103292003-04-04 Elena Zannoni <ezannoni@redhat.com>
10330
fbe586ae
RH
10331 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10332 signed integer case.
10333 (classify_argument): Handle enumerations and references.
50c46a0d 10334
50bbdbd9
AC
103352003-04-04 Andrew Cagney <cagney@redhat.com>
10336
10337 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10338 ID to NULL.
10339
36018d2e
AF
103402003-04-01 Adam Fedor <fedor@gnu.org>
10341
10342 * gdb/objc-lang.c (selectors_info): Replace calls to
10343 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10344 SYMBOL_NATURAL_NAME.
10345 (classes_info, find_methods): Likewise.
10346
35cec841
KB
103472003-04-03 Kevin Buettner <kevinb@redhat.com>
10348
10349 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10350 ``mach'' to the value determined by bfd_default_set_arch_mach().
10351
43136899
BR
103522003-04-02 Bob Rossi <bob_rossi@cox.net>
10353
10354 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10355 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10356 (mi-cmd-file.o): Update dependencies.
10357
040b99fd
KB
103582003-04-01 Kevin Buettner <kevinb@redhat.com>
10359
10360 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10361 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10362
9a3d7dfd
AF
103632003-04-01 Adam Fedor <fedor@gnu.org>
10364
10365 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10366 * language.h (struct language_defn): Add la_demangle.
10367 (language_demangle): Declare.
10368 * language.c (language_demangle): New function.
10369 (unk_lang_demangle): Likewise.
10370 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10371 Add ukn_lang_demangle.
9a3d7dfd 10372 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10373 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10374 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10375 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10376 * jv-lang.c (java_demangle): New function
10377 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10378 * objc-lang.c (objc_demangle): Add options argument
10379 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10380 * maint.c (maintenance_demangle): Replace switch with
10381 call to language_demangle.
10382 * utils.c (fprintf_symbol_filtered): Likewise.
10383
5e074003
AC
103842003-04-01 Andrew Cagney <cagney@redhat.com>
10385
10386 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10387 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10388 PRINT_TYPELESS_INTEGER.
10389 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10390 PUSH_RETURN_ADDRESS.
10391
270cb5d6
AC
103922003-04-01 Andrew Cagney <cagney@redhat.com>
10393
10394 * Makefile.in (d10v-tdep.o): Update dependencies.
10395 * d10v-tdep.c: Include "frame-base.h".
10396 (d10v_frame_unwind): Make constant.
10397 (d10v_frame_base_address): New function.
10398 (d10v_frame_base): New variable.
10399 (d10v_gdbarch_init): Set frame_base default.
10400 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10401 comment for base.
10402 (d10v_frame_unwind_cache): Set and use "prev_sp".
10403 (d10v_frame_this_id): Use the previous frame's inner most stack
10404 address and this frame's func address for the frame ID. Use
10405 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10406
6bfb3e36
AC
104072003-04-01 Andrew Cagney <cagney@redhat.com>
10408
10409 * frame.h (get_frame_locals_address, get_frame_args_address):
10410 Refer to the base address, instead of the address of the first
10411 local or parameter.
8ffd9b1b 10412
da62e633
AC
104132003-04-01 Andrew Cagney <cagney@redhat.com>
10414
10415 Add frame debug info addresses:
10416 * frame-base.c: New file.
10417 * frame-base.h: New file.
10418 * frame.h (struct frame_base): Add opaque declaration.
10419 (get_frame_base): Update comment.
10420 (get_frame_base_address): Declare.
10421 (get_frame_locals_address): Declare.
10422 (get_frame_args_address): Declare.
10423 (struct frame_info): Add "base" and "base_cache". Update
10424 comments on the unwinder.
10425 * frame.c: Include "frame-base.h".
10426 (get_frame_locals_address): New function.
10427 (get_frame_base_address): New function.
10428 (get_frame_args_address): New function.
10429 * findvar.c (read_var_value): Use get_frame_locals_address and
10430 get_frame_args_address.
10431 * stack.c (frame_info): Use get_frame_locals_address and
10432 get_frame_args_address.
10433 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10434 moved to "frame-base.c".
10435 * printcmd.c (print_frame_nameless_args): Ditto.
10436 * symtab.h (address_class): Update comments.
10437 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10438 get_frame_base_address.
10439 * dwarf2expr.c (execute_stack_op): Ditto.
10440 * Makefile.in (frame_base_h): Define.
10441 (frame.o): Update dependencies.
10442 (frame-base.o): Add dependencies.
10443 (SFILES): Add frame-base.c.
10444 (COMMON_OBS): Add frame-base.o.
10445
3d30e9c2
AC
104462003-04-01 Andrew Cagney <cagney@redhat.com>
10447
10448 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10449 CALL_DUMMY_LENGTH): Ditto.
10450 * gdbarch.c: Re-generate.
10451 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10452 (CALL_DUMMY_LENGTH): Delete macro.
10453 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10454 * arm-tdep.c (arm_gdbarch_init): Ditto.
10455 * avr-tdep.c (avr_gdbarch_init): Ditto.
10456 * cris-tdep.c (cris_gdbarch_init): Ditto.
10457 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10458 * frv-tdep.c (frv_gdbarch_init): Ditto.
10459 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10460 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10461 * i386-tdep.c (i386_gdbarch_init): Ditto.
10462 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10464 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10465 * mips-tdep.c (mips_gdbarch_init): Ditto.
10466 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10467 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10468 * s390-tdep.c (s390_gdbarch_init): Ditto.
10469 * sh-tdep.c (sh_gdbarch_init): Ditto.
10470 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10471 * v850-tdep.c (v850_gdbarch_init): Ditto.
10472 * vax-tdep.c (vax_gdbarch_init): Ditto.
10473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10474
ce0c7262
CV
104752003-04-01 Corinna Vinschen <vinschen@redhat.com>
10476
10477 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10478
73dd234f
AC
104792003-04-01 Andrew Cagney <cagney@redhat.com>
10480
10481 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10482 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10483 * gdbarch.h, gdbarch.c: Re-generate.
10484 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10485 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10486 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10487 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10488 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10489 * infcmd.c (run_stack_dummy): Simplify assuming
10490 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10491 * infrun.c (handle_inferior_event): Ditto.
10492 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10493 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10494 * arm-tdep.c (arm_gdbarch_init): Ditto.
10495 * avr-tdep.c (avr_gdbarch_init): Ditto.
10496 * cris-tdep.c (cris_gdbarch_init): Ditto.
10497 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10498 * frv-tdep.c (frv_gdbarch_init): Ditto.
10499 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10500 * i386-tdep.c (i386_gdbarch_init): Ditto.
10501 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10503 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10504 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10505 * mips-tdep.c (mips_gdbarch_init): Ditto.
10506 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10507 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10508 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10509 * s390-tdep.c (s390_gdbarch_init): Ditto.
10510 * sh-tdep.c (sh_gdbarch_init): Ditto.
10511 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10512 * v850-tdep.c (v850_gdbarch_init): Ditto.
10513 * vax-tdep.c (vax_gdbarch_init): Ditto.
10514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10515
97606a13
DJ
105162003-04-01 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * symfile.c (symfile_relocate_debug_section): Update call to
10519 bfd_simple_get_relocated_section_contents.
10520
e8ab51f7
AC
105212003-03-31 Andrew Cagney <cagney@redhat.com>
10522
10523 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10524 * gdbarch.h, gdbarch.c: Regenerate.
10525 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10526 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10527 available.
10528 * frame.h (generic_fix_call_dummy): Delete declaration.
10529 * dummy-frame.h: Update comment.
10530 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10532 fix_call_dummy.
10533 * sh-tdep.c (sh_gdbarch_init): Ditto.
10534 * s390-tdep.c (s390_gdbarch_init): Ditto.
10535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10536 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10538 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10539 * i386-tdep.c (i386_gdbarch_init): Ditto.
10540 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10541 * frv-tdep.c (frv_gdbarch_init): Ditto.
10542 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10543 * cris-tdep.c (cris_gdbarch_init): Ditto.
10544 * avr-tdep.c (avr_gdbarch_init): Ditto.
10545 * arm-tdep.c (arm_gdbarch_init): Ditto.
10546
018d1b48
JB
105472003-03-31 J. Brobecker <brobecker@gnat.com>
10548
10549 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10550 (INIT_FRAME_AP): Likewise.
10551 (EXTRA_FRAME_INFO): Likewise.
10552
e9a2674e
AC
105532003-03-31 Andrew Cagney <cagney@redhat.com>
10554
10555 * gdbarch.sh: Include "symfile.h".
10556 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10557 * gdbarch.h, gdbarch.c: Re-generate.
10558 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10560 call_dummy_address, the default is at entry_point_address.
10561 * v850-tdep.c (v850_gdbarch_init): Ditto.
10562 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10563 * sh-tdep.c (sh_gdbarch_init): Ditto.
10564 * s390-tdep.c (s390_gdbarch_init): Ditto.
10565 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10566 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10567 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10568 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10569 * i386-tdep.c (i386_gdbarch_init): Ditto.
10570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10571 * frv-tdep.c (frv_gdbarch_init): Ditto.
10572 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10573 * cris-tdep.c (cris_gdbarch_init): Ditto.
10574 * arm-tdep.c (arm_gdbarch_init): Ditto.
10575
e8a8712a
AC
105762003-03-31 Andrew Cagney <cagney@redhat.com>
10577
10578 * gdbarch.sh (CALL_DUMMY_P): Delete.
10579 * gdbarch.h, gdbarch.c: Re-generate.
10580 * inferior.h (CALL_DUMMY_P): Delete macro.
10581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10582 * vax-tdep.c (vax_gdbarch_init): Update.
10583 * v850-tdep.c (v850_gdbarch_init): Update.
10584 * sparc-tdep.c (sparc_gdbarch_init): Update.
10585 * sh-tdep.c (sh_gdbarch_init): Update.
10586 * s390-tdep.c (s390_gdbarch_init): Update.
10587 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10588 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10589 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10590 * mips-tdep.c (mips_gdbarch_init): Update.
10591 * mcore-tdep.c (mcore_gdbarch_init): Update.
10592 * m68k-tdep.c (m68k_gdbarch_init): Update.
10593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10594 * ia64-tdep.c (ia64_gdbarch_init): Update.
10595 * i386-tdep.c (i386_gdbarch_init): Update.
10596 * h8300-tdep.c (h8300_gdbarch_init): Update.
10597 * frv-tdep.c (frv_gdbarch_init): Update.
10598 * d10v-tdep.c (d10v_gdbarch_init): Update.
10599 * cris-tdep.c (cris_gdbarch_init): Update.
10600 * breakpoint.c (deprecated_frame_in_dummy): Update.
10601 * avr-tdep.c (avr_gdbarch_init): Update.
10602 * alpha-tdep.c (alpha_gdbarch_init): Update.
10603 * arm-tdep.c (arm_gdbarch_init): Update.
10604 * dummy-frame.c (dummy_frame_this_id): Update comments.
10605 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10606 * frame.c (legacy_get_prev_frame): Ditto.
10607 * valops.c (call_function_by_hand): Delete function.
10608 (hand_function_call): Rename to call_function_by_hand
10609
ed234cf8
AC
106102003-03-30 Andrew Cagney <cagney@redhat.com>
10611
10612 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10613 * value.h (struct value): Update comment.
ed234cf8 10614
06c77151
AC
106152003-03-30 Andrew Cagney <cagney@redhat.com>
10616
6c2b5168
AC
10617 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10618 D10V_FP_REGNUM.
10619 (d10v_gdbarch_init): Do not set fp_regnum.
10620
06c77151
AC
10621 * frame.c (get_frame_base): Force ID initialization.
10622 (get_prev_frame): Move computation of the frame ID from here ...
10623 (get_frame_id): ... to here.
10624 (legacy_get_prev_frame): Mark the frame ID as valid.
10625 * frame.h (struct frame_info): Add field "id_p".
10626
97a1a11c
MK
106272003-03-30 Mark Kettenis <kettenis@gnu.org>
10628
10629 * i386-tdep.c (i386_store_struct_return): Removed.
10630 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10631
6c0e89ed
AC
106322003-03-30 Andrew Cagney <cagney@redhat.com>
10633
10634 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10635 * gdbarch.h, gdbarch.c: Regenerate.
10636 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10638 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10639 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10640 * i386-tdep.c (i386_gdbarch_init): Ditto.
10641 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10642 * cris-tdep.c (cris_gdbarch_init): Ditto.
10643 * vax-tdep.c (vax_gdbarch_init): Ditto.
10644 * s390-tdep.c (s390_gdbarch_init): Ditto.
10645 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10647 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10648 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10649 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10650 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10651 * sparc-tdep.c (sparc_gdbarch_init): Update.
10652 * sh-tdep.c (sh_gdbarch_init): Update.
10653 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10654 * mips-tdep.c (mips_gdbarch_init): Update.
10655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10656 * ia64-tdep.c (ia64_gdbarch_init): Update.
10657 * frv-tdep.c (frv_gdbarch_init): Update.
10658 * avr-tdep.c (avr_gdbarch_init): Update.
10659 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10660 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10661 instead of when push_dummy_call is not available.
8ffd9b1b 10662
f7dd6af2
AC
106632003-03-30 Andrew Cagney <cagney@redhat.com>
10664
10665 * infttrace.c: Include "gdbthread.h".
10666 (parent_attach_all): Fix function signature.
10667 (call_ptrace): Update call.
10668 * Makefile.in (infttrace.o): Update dependencies.
10669
28f617b3
AC
106702003-03-30 Andrew Cagney <cagney@redhat.com>
10671
10672 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10673 PUSH_RETURN_ADDRESS.
10674 * gdbarch.h, gdbarch.c: Regenerate.
10675 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10676 * x86-64-tdep.c (x86_64_init_abi): Update.
10677 * v850-tdep.c (v850_gdbarch_init): Update.
10678 * sparc-tdep.c (sparc_gdbarch_init): Update.
10679 * sh-tdep.c (sh_gdbarch_init): Update.
10680 * s390-tdep.c (s390_gdbarch_init): Update.
10681 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10682 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10683 * mips-tdep.c (mips_gdbarch_init): Update.
10684 * mcore-tdep.c (mcore_gdbarch_init): Update.
10685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10686 * ia64-tdep.c (ia64_gdbarch_init): Update.
10687 * i386-tdep.c (i386_gdbarch_init): Update.
10688 * h8300-tdep.c (h8300_gdbarch_init): Update.
10689 * frv-tdep.c (frv_gdbarch_init): Update.
10690 * cris-tdep.c (cris_gdbarch_init): Update.
10691 * avr-tdep.c (avr_gdbarch_init): Update.
10692 * arm-tdep.c (arm_gdbarch_init): Update.
10693 * valops.c (hand_function_call): Update.
10694
4d628cd7
AC
106952003-03-29 Andrew Cagney <cagney@redhat.com>
10696
10697 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10698 sizeof_call_dummy_words.
10699 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10700 define.
10701 * gdbarch.h: Regenerate.
8ffd9b1b 10702
65e82032
AC
107032003-03-29 Andrew Cagney <cagney@redhat.com>
10704
10705 * infttrace.h: New file.
10706 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10707 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10708 (hpread_read_doc_function_type): Detect an initialized type1.
10709 (hpread_quick_traverse): Initialize mod_name_string.
10710 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10711 (som_solib_get_solib_by_pc): Declare.
10712 (so_lib_thread_start_addr): Declare.
10713 (no_shared_libraries): Declare.
10714 * somread.c (init_import_symbols): Make static. Add forward
10715 declaration.
10716 * config/pa/nm-hppah.h: Include "infttrace.h" for
10717 parent_attach_all.
10718 (hppa_insert_hw_watchpoint): Declare.
10719 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10720 * hppah-nat.c: Include "gdb_string.h".
10721 (parent_attach_all): Delete extern declaration, moved to
10722 "infttrace.h".
10723 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10724 int.
10725 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10726 * Makefile.in (infttrace_h): Define.
10727 (hpread.o): Update dependencies.
10728 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10729 * hppa-hpux-tdep.c: Include "gdb_string.h".
10730 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10731 * infrun.c (handle_inferior_event): Always initialize
10732 stepped_after_stopped_by_watchpoint. Add default and remove
10733 fallthrough in switch statement.
10734 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10735 parameter to int.
10736 (hppa_remove_hw_watchpoint): Ditto.
10737
2c3bbe77
AC
107382003-03-29 Andrew Cagney <cagney@redhat.com>
10739
10740 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10741 offset.
10742
2dd604e7
RE
107432003-03-29 Richard Earnshaw <rearnsha@arm.com>
10744
10745 * arm-tdep.c (arm_push_arguments): Delete.
10746 (struct stack_item): New type.
10747 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10748 (arm_store_struct_return): Delte.
10749 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10750 arm_push_arguments or arm_store_struct_return.
10751
e8933a55
AC
107522003-03-28 Andrew Cagney <cagney@redhat.com>
10753
10754 * Makefile.in (d10v-tdep.o): Update dependencies.
10755 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10756 * d10v-tdep.c: Include "remote.h".
10757 (target_resume_hook): Delete extern declaration.
10758 (target_wait_loop_hook): Ditto.
10759 (tdisassemble_command): Eliminate assignment in "if" conditional.
10760 (d10v_ts2_register_sim_regno): Eliminate call to
10761 legacy_register_sim_regno.
10762 (d10v_ts3_register_sim_regno): Ditto.
10763
6949171e
JJ
107642003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10765
10766 * thread.c: Reindented.
10767 * lin-lwp.c: Ditto.
10768 * linux-proc.c: Ditto.
10769
98c7071f
BR
107702003-03-28 Bob Rossi <bob_rossi@cox.net>
10771
fbe586ae 10772 * MAINTAINERS (write after approval): Add myself.
98c7071f 10773
5edc9ca6
TR
107742003-03-27 Theodore A. Roth <troth@openavr.org>
10775
10776 * objc-exp.y: Add missing semi-colons.
10777
378bfd1b
AC
107782003-03-27 Andrew Cagney <cagney@redhat.com>
10779
10780 * regcache.c (write_sp): Delete function and references.
10781 * inferior.h (write_sp): Delete declaration.
10782 * valops.c (hand_function_call): Replace write_sp with
10783 TARGET_WRITE_SP.
10784 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10785 (sparc_pop_frame): Ditto.
8ffd9b1b 10786
56056df7
AC
107872003-03-27 Andrew Cagney <cagney@redhat.com>
10788
10789 * NEWS: Mention removal of support for hppa*-*-bsd* and
10790 hppa*-*-osf* natives, and hppa*-*-pro* target.
10791 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10792 * config/pa/xm-pa.h: Obsolete file.
10793 * config/pa/xm-hppab.h: Obsolete file.
10794 * config/pa/nm-hppab.h: Obsolete file.
10795 * config/pa/tm-hppab.h: Obsolete file.
10796 * config/pa/tm-hppao.h: Obsolete file.
10797 * config/pa/nm-hppao.h: Obsolete file.
10798 * config/pa/tm-pro.h: Obsolete file.
10799 * config/pa/hppaosf.mt: Obsolete file.
10800 * config/pa/hppaosf.mh: Obsolete file.
10801 * config/pa/hppapro.mt: Obsolete file.
10802 * config/pa/hppabsd.mt: Obsolete file.
10803 * config/pa/hppabsd.mh: Obsolete file.
10804 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10805 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10806 hppa*-*-osf*.
10807
5873a88d
AC
108082003-03-27 Andrew Cagney <cagney@redhat.com>
10809
10810 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10811 push_arguments. Don't set push_return_address or write_sp.
10812 (d10v_push_dummy_call): Replace d10v_push_arguments.
10813 (d10v_push_return_address, d10v_write_sp): Delete function,
10814 handled by push_dummy_call.
10815
b81774d8
AC
108162003-03-26 Andrew Cagney <cagney@redhat.com>
10817
10818 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10819 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10820 regcache and dummy_addr parameters.
10821 * gdbarch.h, gdbarch.c: Re-generate.
10822 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10823 available; assume it will handle stack alignment and return
10824 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10825 legacy_push_arguments.
10826 (legacy_push_arguments): Rename default_push_arguments.
10827 * value.h (legacy_push_arguments): Rename default_push_arguments.
10828 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10829 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10830 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10831 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10832 * config/i386/tm-symmetry.h: Update.
10833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10834 * x86-64-tdep.c (x86_64_init_abi): Update.
10835 * v850-tdep.c (v850_gdbarch_init): Update.
10836 * sparc-tdep.c (sparc_gdbarch_init): Update.
10837 * sh-tdep.c (sh_gdbarch_init): Update.
10838 * s390-tdep.c (s390_gdbarch_init): Update.
10839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10841 * mips-tdep.c (mips_gdbarch_init): Update.
10842 * mcore-tdep.c (mcore_gdbarch_init): Update.
10843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10844 * ia64-tdep.c (ia64_gdbarch_init): Update.
10845 * i386-tdep.c (i386_gdbarch_init): Update.
10846 * hppa-tdep.c (hppa_gdbarch_init): Update.
10847 * h8300-tdep.c (h8300_gdbarch_init): Update.
10848 * frv-tdep.c (frv_gdbarch_init): Update.
10849 * d10v-tdep.c (d10v_gdbarch_init): Update.
10850 * cris-tdep.c (cris_gdbarch_init): Update.
10851 * avr-tdep.c (avr_gdbarch_init): Update.
10852 * arm-tdep.c (arm_gdbarch_init): Update.
10853 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10854 * alpha-tdep.c (alpha_gdbarch_init): Update.
10855
f541410f
DJ
108562003-03-26 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * signals/signals.c (do_target_signal_to_host): Correct realtime
10859 signal range test.
10860
69f567ae
DJ
108612003-03-26 Daniel Jacobowitz <drow@mvista.com>
10862
10863 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10864 (struct sal_chain, map_catch_names): Remove.
10865 (catch_exception_command_1): Don't call
10866 handle_gnu_4_16_catch_command.
10867
d5d14a5a
DJ
108682003-03-26 Daniel Jacobowitz <drow@mvista.com>
10869
10870 From Mark Dettinger <dettinge@de.ibm.com>:
10871 * dwarf2cfi.c (read_2u): Increment pointer by two.
10872
bdd73e22
DJ
108732003-03-26 Daniel Jacobowitz <drow@mvista.com>
10874
10875 * signals/signals.c: Fix typos in last change.
10876
960cb555
DJ
108772003-03-26 Daniel Jacobowitz <drow@mvista.com>
10878
10879 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10880 not already defined. Use __SIGRTMIN if available.
10881 (target_signal_from_host): Remove SIGRTMIN block.
10882 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10883 the signal is within the realtime range.
10884
f636b87d
AF
108852003-03-25 Adam Fedor <fedor@gnu.org>
10886
10887 * Makefile.in (infrun.o): Add $(language_h)
10888 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10889 for language specific trampolines.
10890 * language.h (struct language_defn): Add skip_trampoline.
10891 (skip_language_trampoline): Declare.
10892 * language.c (unk_lang_trampoline, skip_language_trampoline):
10893 New functions.
10894 (unknown_language_defn, auto_language_defn, local_language_defn):
10895 Add ukn_lang_trampoline.
10896 * ada-lang.c (ada_language_defn): Add NULL for language
10897 specific skip_trampoline.
10898 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10899 scm-lang.c: Likewise.
10900 * objc-lang.c (objc_skip_trampoline): New function.
10901 (objc_language_defn): Add objc_skip_trampoline.
10902
28f617b3 109032003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10904
10905 * frame.c (get_prev_frame): Delay validating a frame's ID -
10906 non-NULL, didn't go backwards - until an attempt to unwind it to
10907 the previous frame.
10908
f933a9c5
AC
109092003-03-25 Andrew Cagney <cagney@redhat.com>
10910
10911 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10912 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10913 * gdbarch.h, gdbarch.c: Re-generate.
10914 * config/sparc/tm-sparc.h
10915 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10916 * sparc-tdep.c (sparc_gdbarch_init): Set
10917 deprecated_extra_stack_alignment_needed.
10918 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10919 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10920 extra_stack_alignment_needed.
10921 * v850-tdep.c (v850_gdbarch_init): Ditto.
10922 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10923 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10924 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10925 * cris-tdep.c (cris_gdbarch_init): Ditto.
10926 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10928
4183d812
AC
109292003-03-25 Andrew Cagney <cagney@redhat.com>
10930
10931 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10932 STORE_STRUCT_RETURN.
10933 * gdbarch.h, gdbarch.c: Regenerate.
10934 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10935 (d10v_push_arguments): Set the struct return register.
10936 (d10v_gdbarch_init): Update.
10937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10938 * x86-64-tdep.c (x86_64_init_abi): Update.
10939 * vax-tdep.c (vax_gdbarch_init): Update.
10940 * v850-tdep.c (v850_gdbarch_init): Update.
10941 * sparc-tdep.c (sparc_gdbarch_init): Update.
10942 * sh-tdep.c (sh_gdbarch_init): Update.
10943 * s390-tdep.c (s390_gdbarch_init): Update.
10944 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10945 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10946 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10947 * mips-tdep.c (mips_gdbarch_init): Update.
10948 * mcore-tdep.c (mcore_gdbarch_init): Update.
10949 * m68k-tdep.c (m68k_gdbarch_init): Update.
10950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10951 * ia64-tdep.c (ia64_gdbarch_init): Update.
10952 * i386-tdep.c (i386_gdbarch_init): Update.
10953 * hppa-tdep.c (hppa_gdbarch_init): Update.
10954 * h8300-tdep.c (h8300_gdbarch_init): Update.
10955 * frv-tdep.c (frv_gdbarch_init): Update.
10956 * cris-tdep.c (cris_gdbarch_init): Update.
10957 * avr-tdep.c (avr_gdbarch_init): Update.
10958 * arm-tdep.c (arm_gdbarch_init): Update.
10959 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10960
1bf6d5cc
AC
109612003-03-25 Andrew Cagney <cagney@redhat.com>
10962
10963 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10964 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10965 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10966 * gdbarch.h, gdbarch.c: Regenerate.
10967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10968 call_dummy_stack_adjust_p.
10969 * vax-tdep.c (vax_gdbarch_init): Ditto.
10970 * v850-tdep.c (v850_gdbarch_init): Ditto.
10971 * sh-tdep.c (sh_gdbarch_init): Ditto.
10972 * s390-tdep.c (s390_gdbarch_init): Ditto.
10973 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10974 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10975 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10976 * mips-tdep.c (mips_gdbarch_init): Ditto.
10977 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10978 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10980 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10981 * i386-tdep.c (i386_gdbarch_init): Ditto.
10982 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10983 * frv-tdep.c (frv_gdbarch_init): Ditto.
10984 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10985 * cris-tdep.c (cris_gdbarch_init): Ditto.
10986 * avr-tdep.c (avr_gdbarch_init): Ditto.
10987 * arm-tdep.c (arm_gdbarch_init): Ditto.
10988 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10989 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10990 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10991 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10992 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10993 call_dummy_stack_adjust_p.
10994 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10995 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10996 * sparc-tdep.c (sparc32_push_arguments): Update.
10997 * valops.c (hand_function_call): Update.
10998
71c08af0
CV
109992003-03-25 Corinna Vinschen <vinschen@redhat.com>
11000
11001 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11002 set_gdbarch_char_signed.
11003
30757f90
RE
110042003-03-25 Richard Earnshaw <rearnsha@arm.com>
11005
11006 PR cli/548
11007 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11008
03d48a7d
RE
110092003-03-25 Richard Earnshaw <rearnsha@arm.com>
11010
11011 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11012 (_initialize_arm_tdep): Don't set tm_print_insn.
11013
2cf6873c
AF
110142003-03-24 Adam Fedor <fedor@gnu.org>
11015
11016 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11017 * objc-lang.h: Add multiple inclusion protection.
11018 (start_msglist, add_msglist, end_msglist): Additional declarations.
11019
17c0759e
RE
110202003-03-24 Richard Earnshaw <rearnsha@arm.com>
11021
11022 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11023 value was renamed to ARM_FLOAT_SOFT_FPA.
11024
618ce49f
AC
110252003-03-23 Andrew Cagney <cagney@redhat.com>
11026
11027 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11028 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11029 * gdbarch.h, gdbarch.c: Regenerate.
11030 * valops.c (hand_function_call): Update.
11031 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11032 * frame.c (legacy_saved_regs_this_id): Update.
11033 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11034 * dummy-frame.h: Update.
11035 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11036 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11037 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11038 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11039 * config/m68k/tm-sun3.h: Update.
11040 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11042 * x86-64-tdep.c (x86_64_init_abi): Update.
11043 * vax-tdep.c (vax_gdbarch_init): Update.
11044 * v850-tdep.c (v850_gdbarch_init): Update.
11045 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11046 * sh-tdep.c (sh_gdbarch_init): Update.
11047 * s390-tdep.c (s390_gdbarch_init): Update.
11048 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11049 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11050 (frame_get_saved_regs): Update.
11051 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11052 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11053 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11054 * mips-tdep.c (mips_gdbarch_init): Update.
11055 * mcore-tdep.c (mcore_gdbarch_init): Update.
11056 * m68k-tdep.c (m68k_gdbarch_init): Update.
11057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11058 * ia64-tdep.c (ia64_gdbarch_init): Update.
11059 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11060 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11061 (i386_interix_back_one_frame): Update.
11062 * hppa-tdep.c (hppa_gdbarch_init): Update.
11063 (hppa_init_extra_frame_info): Update.
11064 * h8300-tdep.c (h8300_gdbarch_init): Update.
11065 * frv-tdep.c (frv_gdbarch_init): Update.
11066 * cris-tdep.c (cris_gdbarch_init): Update.
11067 * avr-tdep.c (avr_gdbarch_init): Update.
11068 * arm-tdep.c (arm_gdbarch_init): Update.
11069 * alpha-tdep.c (alpha_gdbarch_init): Update.
11070
fd50bc42
RE
110712003-03-22 Richard Earnshaw <rearnsha@arm.com>
11072
11073 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11074 (arm_get_fp_model): Declare.
11075 * arm-tdep.c (fp_model_strings): New string array.
11076 (arm_fp_model, current_fp_model): New variables.
11077 (arm_get_fp_model): New function.
11078 (arm_set_fp): New function.
11079 (set_fp_model_sfunc): New function.
11080 (show_fp_model): New function.
11081 (_initialize_arm_tdep): Add new command to set/show the FPU.
11082 (arm_extract_return_value): Use arm_get_fp_model.
11083 (arm_store_return_value): Likewise.
11084 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11085 to initialize the floating-point data types.
11086 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11087 model is FPA.
11088
26304000
RE
110892003-03-22 Richard Earnshaw <rearnsha@arm.com>
11090
11091 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11092 the current setting of each value.
11093 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11094 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11095 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11096 commands and add new version as subcommands of "set/show arm".
11097
afd7eef0
RE
110982003-03-22 Richard Earnshaw <rearnsha@arm.com>
11099
11100 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11101 (set_arm_command, show_arm_command): New functions.
11102 (_initialize_arm_tdep): Add them.
11103 (num_disassembly_options): Renamed from num_flavor_options.
11104 (valid_disassembly_styles): Renamed from valid_flavors.
11105 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11106 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11107 set_disassembly_flavor_sfunc.
11108 (set_disassembly_style): Renamed from set_disassembly_flavor.
11109 (arm_othernames): Updated.
11110 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11111 command. Add "set/show arm disassembly" commands. Deprecate
11112 "othernames" command.
11113
299a7944
RE
111142003-03-22 Richard Earnshaw <rearnsha@arm.com>
11115
11116 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11117 (arm-tdep.o): Depend on elf_arm_h.
11118
c1dac9e6
RE
111192003-03-22 Richard Earnshaw <rearnsha@arm.com>
11120
11121 * Makefile.in (coff_internal_h): Define.
11122 (arm-tdep.o): Update dependencies.
11123
2702d96c
RE
111242003-03-22 Richard Earnshaw <rearnsha@arm.com>
11125
11126 * arm-tdep.c (prologue_cache): Delete.
11127 (check_prologue_cache, save_prologue_cache): Delete.
11128 (arm_scan_prologue): Don't check or update the prologue_cache.
11129 (arm_gdb_arch_init): Don't initialize it.
11130 (_initialize_arm_tdep): Likewise.
11131
27d5d74b
SC
111322003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11133
11134 * MAINTAINERS (tui): Maintainer of tui code.
11135
1762d96d
CV
111362003-03-21 Corinna Vinschen <vinschen@redhat.com>
11137
11138 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11139 (i386-cygwin-tdep.o): Add dependencies.
11140 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11141 * i386-cygwin-tdep.c: New file.
11142 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11143 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11144
4c2e2391
AC
111452003-03-20 Andrew Cagney <cagney@redhat.com>
11146
f20d38b7
AC
11147 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11148 (handle_inferior_event): Remove code calling
11149 DYNAMIC_TRAMPOLINE_NEXTPC.
11150
0022b738
AC
11151 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11152 already has a full path.
11153
864dbc90
AC
11154 * main.c (gdb_main): Return 1.
11155 (captured_main): Call error to report an invalid interpreter.
11156
4c2e2391
AC
11157 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11158 * alpha-osf1-tdep.c: Include "gdb_string.h".
11159
5ef7553b
JB
111602003-03-19 J. Brobecker <brobecker@gnat.com>
11161
11162 Continuing work to convert the hppa targets to multiarch partial.
11163
11164 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11165 method, now that hppa_push_dummy_frame has a conformant prototype.
11166 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11167 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11168 for the switch to multiarch partial.
11169
7bde8967
KB
111702003-03-19 Kevin Buettner <kevinb@redhat.com>
11171
11172 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11173 when iss is issNull.
11174
b006a9e9
KB
111752003-03-18 Kevin Buettner <kevinb@redhat.com>
11176
11177 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11178 NUM_REGS bounds check.
11179
5e2e9765
KB
111802003-03-18 Kevin Buettner <kevinb@redhat.com>
11181
11182 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11183 * mips-tdep.c (gdb_assert.h): Include.
11184 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11185 (mips_register_name): Handle integer registers explicitly. Add
11186 bounds checking.
11187 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11188 (mips_lsi33k_reg_names): Don't list integer registers; they're
11189 handled by mips_register_name() now.
11190 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11191 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11192 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11193 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11194 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11195
a2867626
AC
111962003-03-18 Andrew Cagney <cagney@redhat.com>
11197
11198 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11199 a void pointer.
11200 * gdbtypes.h (print_scalar_formatted): Update declaration.
11201 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11202
06600e06
JB
112032003-03-18 J. Brobecker <brobecker@gnat.com>
11204
11205 * infrun.c (observer.h): Add #include.
11206 (normal_stop): Add call to observer_notify_normal_stop.
11207 * Makefile.in (infrun.o): Add dependency on observer.h.
11208
7daf4f5b
JB
112092003-03-18 J. Brobecker <brobecker@gnat.com>
11210
11211 Continuing work to convert the hppa targets to multiarch partial.
11212 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11213 parameter. Reformat comment.
11214 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11215 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11216 to match new profile.
11217
3371ccc0
JB
112182003-03-18 J. Brobecker <brobecker@gnat.com>
11219
11220 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11221 appear to be working in any case.
11222
4fbe891e
JB
112232003-03-18 J. Brobecker <brobecker@gnat.com>
11224
11225 * observer.c (observer_test_first_observer): New static variable.
11226 (observer_test_second_observer): Likewise.
11227 (observer_test_third_observer): Likewise.
11228 (observer_test_first_notification_function): New static function.
11229 (observer_test_second_notification_function): Likewise.
11230 (observer_test_third_notification_function): Likewise.
11231
a7ff40e7
JB
112322003-03-17 J. Brobecker <brobecker@gnat.com>
11233
11234 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11235 * somsolib.c (gdb_assert.h): Likewise.
11236 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11237 (somsolib.o): Likewise.
11238
26ca4152
AC
112392003-03-17 Andrew Cagney <cagney@redhat.com>
11240
11241 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11242 BFD. Simplify setting of di.endian.
11243
0a613259
AC
112442003-03-17 Andrew Cagney <cagney@redhat.com>
11245
11246 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11247 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11248
11249 From Elena Zannoni <ezannoni@redhat.com>
11250 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11251 vector and floating-point parameters.
11252 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11253 convention.
11254 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11255
1132738f
FN
112562003-03-17 Fernando Nasser <fnasser@redhat.com>
11257
11258 * MAINTAINERS: Remove my name from several maintainership roles.
11259
6dc42492
AC
112602003-03-17 Andrew Cagney <cagney@redhat.com>
11261
11262 Fix frame off-by-one bug.
11263 * frame-unwind.h (frame_this_id_ftype): Replace
11264 frame_unwind_id_ftype.
11265 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11266 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11267 with "prev_register".
11268 * frame-unwind.c (frame_unwind_find_by_pc): Return
11269 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11270 comment.
11271 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11272 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11273 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11274 (dummy_frame_unwind): Update.
11275 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11276 sentinel_frame_register_unwind.
11277 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11278 (sentinel_frame_unwinder): Update.
11279 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11280 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11281 * frame.c (create_sentinel_frame): Update. Initialize
11282 "prologue_cache" instead of "unwind_cache".
11283 (frame_register_unwind): Call this frame's prev_register with the
11284 next frame and this frame's prologue cache.
11285 (get_prev_frame): Simplify. Always call prev frame's this_id with
11286 this frame and prev frame's prologue cache. Document that this
11287 call is shifted one to the left when compared to the
11288 frame_register_unwind call.
11289 (legacy_saved_regs_prev_register): Replace
11290 frame_saved_regs_register_unwind.
11291 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11292 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11293 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11294 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11295 (d10v_frame_unwind): Update.
11296 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11297 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11298 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11299 "saved_regs" with "this_saved_regs".
11300
efd710d6
AC
113012003-03-16 Andrew Cagney <cagney@redhat.com>
11302
11303 * frame.c (frame_pop): Don't call target_store_registers. Fix
11304 problem reported by Mark Kettenis.
11305
4e259f09
MK
113062003-03-16 Mark Kettenis <kettenis@gnu.org>
11307
11308 * i386-tdep.c (i386_register_type): Renamed from
11309 i386_register_virtual_type. Adjust function signature.
11310 (i386_gdbarch_init): Set register_type instead of
11311 deprecated_max_register_raw_size,
11312 deprecated_max_register_virtual_size and register_virtual_type.
11313
055bb976
AC
113142003-03-14 Andrew Cagney <cagney@redhat.com>
11315
11316 * frame.c (get_prev_frame): When a legacy frame, always call
11317 legacy_get_prev_frame. Simplify unwind code using assumption that
11318 the unwinder is new.
11319 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11320 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11321 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11322
ac2adee5
AC
113232003-03-14 Andrew Cagney <cagney@redhat.com>
11324
11325 * frame.c (get_saved_register): Delete function.
11326 * frame.h (get_saved_register): Delete declaration.
11327 * xstormy16-tdep.c: Update comment.
11328 * regcache.h: Update comments.
11329 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11330 get_saved_register and extract_address, use
11331 frame_read_unsigned_register.
11332 (sparc_frame_saved_pc): Ditto.
11333 (sparc_get_saved_register): Instead of get_saved_register, use
11334 frame_register.
11335 (sparc_pop_frame): Ditto.
11336 * findvar.c: Update comments.
11337 (value_of_register): Call frame_register instead of
11338 get_saved_register.
11339 (value_from_register): Ditto.
11340 * config/sparc/tm-sparc.h: Update comment.
11341 * breakpoint.c: Update comment.
11342
129c1cd6
AC
113432003-03-14 Andrew Cagney <cagney@redhat.com>
11344
11345 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11346 GET_SAVED_REGISTER.
11347 * gdbarch.h, gdbarch.c: Re-generate.
11348 * frame.h: Update comments.
11349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11350 * x86-64-tdep.c (x86_64_init_abi): Update.
11351 * sparc-tdep.c (sparc_gdbarch_init): Update.
11352 * sh-tdep.c (sh_gdbarch_init): Update.
11353 * mips-tdep.c (mips_gdbarch_init): Update.
11354 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11355 * cris-tdep.c (cris_gdbarch_init): Update.
11356 * ia64-tdep.c (ia64_gdbarch_init): Update.
11357 * frame.c (frame_register): Update.
11358 (get_saved_register): Update.
11359 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11360
749b82f6
AC
113612003-03-13 Andrew Cagney <cagney@redhat.com>
11362
11363 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11364 * gdbarch.h, gdbarch.c: Regenerate.
11365 * valops.c (hand_function_call): Update comment.
11366 * stack.c (return_command): Update comment.
11367 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11368 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11370 * x86-64-tdep.c (x86_64_init_abi): Update.
11371 * vax-tdep.c (vax_gdbarch_init): Update.
11372 * v850-tdep.c (v850_gdbarch_init): Update.
11373 * sparc-tdep.c (sparc_gdbarch_init): Update.
11374 * sh-tdep.c (sh_gdbarch_init): Update.
11375 * s390-tdep.c (s390_gdbarch_init): Update.
11376 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11379 * mips-tdep.c (mips_gdbarch_init): Update.
11380 * mcore-tdep.c (mcore_gdbarch_init): Update.
11381 * m68k-tdep.c (m68k_gdbarch_init): Update.
11382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11383 * ia64-tdep.c (ia64_gdbarch_init): Update.
11384 * i386-tdep.c (i386_gdbarch_init): Update.
11385 * hppa-tdep.c (hppa_gdbarch_init): Update.
11386 * h8300-tdep.c (h8300_gdbarch_init): Update.
11387 * frv-tdep.c (frv_gdbarch_init): Update.
11388 * cris-tdep.c (cris_gdbarch_init): Update.
11389 * avr-tdep.c (avr_gdbarch_init): Update.
11390 * arm-tdep.c (arm_gdbarch_init): Update.
11391 * alpha-tdep.c (alpha_gdbarch_init): Update.
11392
1594fa56
AC
113932003-03-13 Andrew Cagney <cagney@redhat.com>
11394
11395 * frame.c (legacy_frame_p): New function.
11396 (get_prev_frame): Use legacy_frame_p.
11397 * frame.h (legacy_frame_p): Declare.
11398
7717fda3
V
113992003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11400
fbe586ae 11401 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11402 listing corrected.
11403
0c67cbe9
V
114042003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11405
fbe586ae 11406 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11407
03febf99
AC
114082003-03-12 Andrew Cagney <cagney@redhat.com>
11409
11410 * frame.c (get_prev_frame): Rename the frame parameter to
11411 "this_frame".
11412 (get_next_frame, legacy_get_prev_frame): Ditto.
11413
0a1e1ca1
AC
114142003-03-12 Andrew Cagney <cagney@redhat.com>
11415
11416 * frame.c (get_current_frame): Check target_has_registers before
11417 checking target_has_stack.
11418 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11419 instead of deprecated_selected_frame.
11420 * findvar.c (value_of_register): Pass "frame", not
11421 deprecated_selected_frame, to value_of_builtin_reg.
11422
a66a9c23
AC
114232003-03-12 Andrew Cagney <cagney@redhat.com>
11424
11425 * regcache.c (regcache_cooked_write_signed): New function.
11426 (regcache_cooked_write_unsigned): New function.
11427 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11428 (regcache_cooked_read_signed): Fix regnum in range assertion.
11429 * regcache.h (regcache_cooked_write_signed): Declare.
11430 (regcache_cooked_write_unsigned): Declare.
11431
8bedc050
AC
114322003-03-12 Andrew Cagney <cagney@redhat.com>
11433
11434 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11435 * gdbarch.h, gdbarch.c: Re-generate.
11436 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11437 * x86-64-tdep.h: Update.
11438 * x86-64-tdep.c (x86_64_init_abi): Update.
11439 * v850-tdep.c (v850_gdbarch_init): Update.
11440 * sparc-tdep.c (sparc_gdbarch_init): Update.
11441 * sh-tdep.c (sh_gdbarch_init): Update.
11442 * s390-tdep.c (s390_gdbarch_init): Update.
11443 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11444 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11445 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11446 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11447 * mips-tdep.c (mips_gdbarch_init): Update.
11448 * mcore-tdep.c (mcore_gdbarch_init): Update.
11449 * m68k-tdep.c (m68k_gdbarch_init): Update.
11450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11451 * ia64-tdep.c (ia64_gdbarch_init): Update.
11452 * i386-tdep.c (i386_gdbarch_init): Update.
11453 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11454 * hppa-tdep.c (hppa_gdbarch_init): Update.
11455 * h8300-tdep.c (h8300_gdbarch_init): Update.
11456 * frv-tdep.c (frv_gdbarch_init): Update.
11457 * cris-tdep.c (cris_gdbarch_init): Update.
11458 * avr-tdep.c (avr_gdbarch_init): Update.
11459 * arm-tdep.c (arm_gdbarch_init): Update.
11460 * alpha-tdep.c (alpha_gdbarch_init): Update.
11461 * sh-tdep.c (sh_init_extra_frame_info): Update.
11462 (sh64_init_extra_frame_info): Update.
11463 * ns32knbsd-nat.c (frame_num_args): Update.
11464 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11465 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11466 (xstormy16_frame_chain_valid): Update.
11467 * vax-tdep.c (vax_saved_pc_after_call): Update.
11468 * v850-tdep.c (v850_frame_chain): Update.
11469 (v850_pop_frame): Update.
11470 (v850_init_extra_frame_info): Update.
11471 * sparc-tdep.c (setup_arbitrary_frame): Update.
11472 * ns32k-tdep.c (umax_frame_num_args): Update.
11473 * s390-tdep.c (s390_pop_frame_regular): Update.
11474 * mn10300-tdep.c (mn10300_frame_chain): Update.
11475 (mn10300_pop_frame_regular): Update.
11476 (mn10300_init_extra_frame_info): Update.
11477 * mips-tdep.c (mips_init_frame_pc_first): Update.
11478 (mips_frame_chain): Update.
11479 (mips_pop_frame): Update.
11480 * mcore-tdep.c (mcore_frame_chain): Update.
11481 (mcore_pop_frame): Update.
11482 (mcore_init_extra_frame_info): Update.
11483 * arch-utils.c (init_frame_pc_default): Update.
11484 * m68k-tdep.c (isi_frame_num_args): Update.
11485 (delta68_frame_num_args): Update.
11486 (news_frame_num_args): Update.
11487 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11488 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11489 (alpha_frame_chain): Update.
11490 (alpha_pop_frame): Update.
11491 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11492 (hppa_init_extra_frame_info): Update.
11493 (hppa_frame_chain): Update.
11494 (hppa_frame_chain_valid): Update.
11495 * cris-tdep.c (cris_init_extra_frame_info): Update.
11496 * avr-tdep.c (avr_init_extra_frame_info): Update.
11497 * arm-tdep.c (arm_frame_chain_valid): Update.
11498 (arm_init_extra_frame_info): Update.
11499 (arm_pop_frame): Update.
11500 * frame.c (frame_pc_unwind): Update.
11501 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11502 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11503 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11504 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11505 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11506 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11507
7a25a7c1
AC
115082003-03-12 Andrew Cagney <cagney@redhat.com>
11509
11510 Eliminate the need for POP_FRAME.
11511 * frame.c (do_frame_unwind_register): New function.
11512 (frame_pop): When no POP_FRAME, pop the frame using register
11513 unwind and a scratch regcache.
11514 (frame_saved_regs_pop): Delete function.
11515 (trad_frame_unwinder): Update.
11516 * d10v-tdep.c (d10v_frame_pop): Delete function.
11517 (d10v_frame_unwind): Update.
11518 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11519 (sentinel_frame_unwinder): Update.
11520 * dummy-frame.c (dummy_frame_pop): Delete function.
11521 (dummy_frame_unwind): Update.
11522 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11523 (struct frame_unwind): Update.
11524
2f38ef89
KB
115252003-03-11 Kevin Buettner <kevinb@redhat.com>
11526
11527 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11528 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11529 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11530 Do range checks on register number obtained from debugging info.
11531 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11532 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11533 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11534 mapping function.
11535 (do_fp_register_row): Fix typo which caused double type to be
11536 used when attempting to unpack a float.
11537
552f4abf
JB
115382003-03-11 J. Brobecker <brobecker@gnat.com>
11539
11540 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11541
e0d2ae16
AC
115422003-03-11 Andrew Cagney <cagney@redhat.com>
11543
11544 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11545 frame. Problem found by Corinna Vinschen.
11546
ddbfdd06
PM
115472003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11548
11549 * doublest.c (floatformat_from_length): Accept also
11550 the real size of 'long double' type.
11551
088b2ddc 115522003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11553
088b2ddc 11554 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11555 * breakpoint.c (bpstat_copy): Copy the command lines as well
11556 as the old value, to match what is freed in bpstat_clear.
11557
f56f77c1
DC
115582003-03-10 David Carlton <carlton@math.stanford.edu>
11559
11560 * minsyms.c (add_minsym_to_hash_table): Replace
11561 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11562 (compare_minimal_symbols, compact_minimal_symbols)
11563 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11564 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11565 of DEPRECATED_SYMBOL_MATCHES_NAME.
11566 (lookup_minimal_symbol_solib_trampoline): Ditto.
11567
5602984a
AC
115682003-03-10 Andrew Cagney <cagney@redhat.com>
11569
11570 * regcache.h (regcache_cooked_read_ftype): Define.
11571 (regcache_save, regcache_restore): Add a cooked_read parameter.
11572 * regcache.c (regcache_save, regcache_restore): Update.
11573 (do_cooked_read): New function.
11574 (regcache_cpy): Pass do_cooked_read to regcache_save and
11575 regcache_restore.
11576
8bedc050
AC
115772003-03-10 Andrew Cagney <cagney@redhat.com>
11578
11579 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11580 * gdbarch.h, gdbarch.c: Re-generate.
11581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11582 * x86-64-tdep.h: Update.
11583 * x86-64-tdep.c (x86_64_init_abi): Update.
11584 * v850-tdep.c (v850_gdbarch_init): Update.
11585 * sparc-tdep.c (sparc_gdbarch_init): Update.
11586 * sh-tdep.c (sh_gdbarch_init): Update.
11587 * s390-tdep.c (s390_gdbarch_init): Update.
11588 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11589 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11590 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11591 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11592 * mips-tdep.c (mips_gdbarch_init): Update.
11593 * mcore-tdep.c (mcore_gdbarch_init): Update.
11594 * m68k-tdep.c (m68k_gdbarch_init): Update.
11595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11596 * ia64-tdep.c (ia64_gdbarch_init): Update.
11597 * i386-tdep.c (i386_gdbarch_init): Update.
11598 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11599 * hppa-tdep.c (hppa_gdbarch_init): Update.
11600 * h8300-tdep.c (h8300_gdbarch_init): Update.
11601 * frv-tdep.c (frv_gdbarch_init): Update.
11602 * cris-tdep.c (cris_gdbarch_init): Update.
11603 * avr-tdep.c (avr_gdbarch_init): Update.
11604 * arm-tdep.c (arm_gdbarch_init): Update.
11605 * alpha-tdep.c (alpha_gdbarch_init): Update.
11606 * sh-tdep.c (sh_init_extra_frame_info): Update.
11607 (sh64_init_extra_frame_info): Update.
11608 * ns32knbsd-nat.c (frame_num_args): Update.
11609 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11610 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11611 (xstormy16_frame_chain_valid): Update.
11612 * vax-tdep.c (vax_saved_pc_after_call): Update.
11613 * v850-tdep.c (v850_frame_chain): Update.
11614 (v850_pop_frame): Update.
11615 (v850_init_extra_frame_info): Update.
11616 * sparc-tdep.c (setup_arbitrary_frame): Update.
11617 * ns32k-tdep.c (umax_frame_num_args): Update.
11618 * s390-tdep.c (s390_pop_frame_regular): Update.
11619 * mn10300-tdep.c (mn10300_frame_chain): Update.
11620 (mn10300_pop_frame_regular): Update.
11621 (mn10300_init_extra_frame_info): Update.
11622 * mips-tdep.c (mips_init_frame_pc_first): Update.
11623 (mips_frame_chain): Update.
11624 (mips_pop_frame): Update.
11625 * mcore-tdep.c (mcore_frame_chain): Update.
11626 (mcore_pop_frame): Update.
11627 (mcore_init_extra_frame_info): Update.
11628 * arch-utils.c (init_frame_pc_default): Update.
11629 * m68k-tdep.c (isi_frame_num_args): Update.
11630 (delta68_frame_num_args): Update.
11631 (news_frame_num_args): Update.
11632 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11633 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11634 (alpha_frame_chain): Update.
11635 (alpha_pop_frame): Update.
11636 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11637 (hppa_init_extra_frame_info): Update.
11638 (hppa_frame_chain): Update.
11639 (hppa_frame_chain_valid): Update.
11640 * cris-tdep.c (cris_init_extra_frame_info): Update.
11641 * avr-tdep.c (avr_init_extra_frame_info): Update.
11642 * arm-tdep.c (arm_frame_chain_valid): Update.
11643 (arm_init_extra_frame_info): Update.
11644 (arm_pop_frame): Update.
11645 * frame.c (frame_pc_unwind): Update.
11646 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11647 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11648 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11649 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11650 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11651 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11652
12cc2063
AC
116532003-03-10 Andrew Cagney <cagney@redhat.com>
11654
11655 * gdbarch.sh (gdbarch_unwind_pc): New method.
11656 * gdbarch.h, gdbarch.c: Regenerate.
11657 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11658 but use read_pc and FRAME_SAVED_PC as fall backs.
11659 (frame_saved_regs_pc_unwind): Delete function.
11660 (trad_frame_unwinder): Update.
11661 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11662 (struct frame_unwind): Update.
11663 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11664 (dummy_frame_unwind): Update.
11665 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11666 (sentinel_frame_unwinder): Update.
11667 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11668 (d10v_frame_unwind): Update.
11669 (d10v_unwind_pc): New function.
11670 (d10v_gdbarch_init): Set unwind_pc.
11671
ef840a37
AC
116722003-03-10 Andrew Cagney <cagney@redhat.com>
11673
a2ce2e56
AC
11674 * gdbarch.h: Re-generate.
11675
ef840a37
AC
11676 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11677 PC.
11678 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11679 the PC register.
11680
08f3424b
MK
116812003-03-08 Mark Kettenis <kettenis@gnu.org>
11682
11683 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11684
1248ede2
AC
116852003-03-08 Andrew Cagney <cagney@redhat.com>
11686
11687 * cli-out.c: Update copyright.
11688 (cli_out_data): Define typedef. Use instead of ui_out_data.
11689
f49bacc8
AC
116902003-03-08 Andrew Cagney <cagney@redhat.com>
11691
11692 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11693 the result.
11694
9b05f993
AC
116952003-03-07 Andrew Cagney <cagney@redhat.com>
11696
11697 * gdbarch.sh: Don't generate two macro definitions when an
11698 undefined macro taking no arguments.
11699 * gdbarch.h: Regenerate.
8ffd9b1b 11700
166f4c7b
ML
117012002-03-07 Michal Ludvig <mludvig@suse.cz>
11702
11703 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11704 (x86_64_unwind_dummy_id): New functions.
11705 (x86_64_init_abi): Register these two new functions.
11706
6d686a84
ML
117072003-03-07 Michal Ludvig <mludvig@suse.cz>
11708
11709 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11710 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11711 separate function.
11712 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11713
6314f104
AC
117142003-03-05 Andrew Cagney <cagney@redhat.com>
11715
11716 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11717 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11718 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11719 to use unwind_dummy_id when a dummy frame.
11720 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11721 predicate.
11722 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11723
ceea5145
AC
117242003-03-05 Andrew Cagney <cagney@redhat.com>
11725
11726 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11727 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11728 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11729 values.
11730
0d843116
AC
117312003-03-05 Andrew Cagney <cagney@redhat.com>
11732
11733 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11734 (struct d10v_unwind_cache): Delete field "frameless". Replace
11735 "next_addr" with "sp_offset". Add "r11_offset".
11736 (d10v_frame_unwind_cache): Update.
11737 (prologue_find_regs): Update. When "mv r11, sp", save the
11738 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11739 RN was saved in r11_offset.
11740
b2579786
AC
117412003-03-05 Andrew Cagney <cagney@redhat.com>
11742
11743 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11744 cached PC value in the next frame.
11745
218e5956
AC
117462003-03-05 Andrew Cagney <cagney@redhat.com>
11747
11748 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11749 "id_unwind_cache" with "id".
11750 (frame_id_unwind): Delete declaration.
11751 * frame.c (frame_id_unwind): Delete function.
11752 (get_prev_frame): Call the frame id unwind method directly. Store
11753 the returned next frame's ID value in NEXT_FRAME. Note that there
11754 is a problem with the wrong unwind ID being called with the wrong
11755 unwind cache.
11756
ed363b1b
DJ
117572003-03-05 Daniel Jacobowitz <drow@mvista.com>
11758
11759 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11760
fe1f4a5e
DJ
117612003-03-05 James Ingham <jingham@apple.com>
11762 Daniel Jacobowitz <drow@mvista.com>
11763
11764 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11765 (auto_cp_abi): New variable.
11766 (current_cp_abi, num_cp_abis): Make static.
11767 (CP_ABI_MAX): Define.
11768 (cp_abis): Turn into an array.
11769 (value_virtual_fn_field): Fix formatting.
11770 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11771 takes a pointer.
11772 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11773 (list_cp_abis, _initialize_cp_abi): New functions.
11774 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11775 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11776 switch_to_cp_abi. Update prototype for register_cp_abi.
11777 * Makefile.in (cp-abi.o): Update dependencies.
11778 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11779 instead of switch_to_cp_abi.
11780 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11781 register_cp_abi.
11782 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11783 register_cp_abi.
11784 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11785
e4adbba9
DJ
117862003-03-05 Daniel Jacobowitz <drow@mvista.com>
11787
11788 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11789 * dwarf2loc.c: Include "regcache.h".
11790 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11791 register_size.
11792 * Makefile.in (dwarf2loc.o): Update dependencies.
11793
91ccbfc1
TR
117942003-03-04 Theodore A. Roth <troth@openavr.org>
11795
11796 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11797 number of io registers reported by remote target is not a multiple of
11798 step.
11799
3d4e8fd2
DC
118002003-03-04 David Carlton <carlton@math.stanford.edu>
11801
11802 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11803 (lookup_symbol_aux_psymtabs): Update call to
11804 lookup_partial_symbol.
11805 (lookup_transparent_type, find_main_psymtab)
11806 (make_symbol_overload_list): Ditto.
11807
ed42d87b
KH
118082003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11809
11810 * MAINTAINERS (Write after approval): Update my email address.
11811
a0ed5532
AC
118122003-03-03 Andrew Cagney <cagney@redhat.com>
11813
11814 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11815 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11816 predicate. Replace MAX_REGISTER_RAW_SIZE.
11817 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11818 MAX_REGISTER_VIRTUAL_SIZE.
11819 * regcache.c (legacy_max_register_raw_size): New function.
11820 (legacy_max_register_virtual_size): New function.
11821 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11822 (MAX_REGISTER_RAW_SIZE): Define.
11823 (legacy_max_register_raw_size): Declare.
11824 (legacy_max_register_virtual_size): Declare.
11825 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11826 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11827 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11828 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11829 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11830 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11831 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11832 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11833 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11835 * vax-tdep.c (vax_gdbarch_init): Update.
11836 * v850-tdep.c (v850_gdbarch_init): Update.
11837 * sparc-tdep.c (sparc_gdbarch_init): Update.
11838 * sh-tdep.c (sh_gdbarch_init): Update.
11839 * s390-tdep.c (s390_gdbarch_init): Update.
11840 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11842 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11843 * mips-tdep.c (mips_gdbarch_init): Update.
11844 * mcore-tdep.c (mcore_gdbarch_init): Update.
11845 * m68k-tdep.c (m68k_gdbarch_init): Update.
11846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11847 * ia64-tdep.c (ia64_gdbarch_init): Update.
11848 * i386-tdep.c (i386_gdbarch_init): Update.
11849 * hppa-tdep.c (hppa_gdbarch_init): Update.
11850 * h8300-tdep.c (h8300_gdbarch_init): Update.
11851 * frv-tdep.c (frv_gdbarch_init): Update.
11852 * cris-tdep.c (cris_gdbarch_init): Update.
11853 * avr-tdep.c (avr_gdbarch_init): Update.
11854 * arm-tdep.c (arm_gdbarch_init): Update.
11855 * alpha-tdep.c (alpha_gdbarch_init): Update.
11856 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11857 max_register_raw_size or max_register_virtual_size.
11858
8e437497
DC
118592003-03-03 David Carlton <carlton@math.stanford.edu>
11860
11861 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11862 SYMBOL_MATCHES_NAME, add comment.
11863 (SYMBOL_MATCHES_NATURAL_NAME): New.
11864 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11865 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11866 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11867 * symtab.c (lookup_partial_symbol): Use
11868 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11869 unhelpful comment.
11870 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11871 SYMBOL_MATCHES_NAME.
11872 Fix for PR c++/33.
11873
25120b0d
DC
118742003-03-03 David Carlton <carlton@math.stanford.edu>
11875
11876 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11877 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11878 by regexp matching against SYMBOL_NATURAL_NAME.
11879
78a11fb4
DC
118802003-03-03 David Carlton <carlton@math.stanford.edu>
11881
11882 * linespec.c (find_method): Extract code into collect_methods.
11883 (collect_methods): New.
11884
645dd519
MK
118852003-03-02 Mark Kettenis <kettenis@gnu.org>
11886
b4700d91
MK
11887 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11888 get_frame_base.
11889
645dd519
MK
11890 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11891 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11892
0aa7e1aa
SC
118932003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11894
8ffd9b1b 11895 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11896 and not regnum when summing the size of all registers up to regnum.
11897
f30ee0bc
AC
118982003-03-01 Andrew Cagney <cagney@redhat.com>
11899
11900 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11901 FRAME_INIT_SAVED_REGS.
11902 * gdbarch.h, gdbarch.c: Regenerate.
11903 * stack.c (frame_info): Update.
11904 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11905 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11906 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11907 * ns32k-tdep.c (ns32k_pop_frame): Update.
11908 * mips-tdep.c (mips_pop_frame): Update.
11909 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11910 * ia64-tdep.c (ia64_frame_chain): Update.
11911 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11912 (ia64_frameless_function_invocation): Update.
11913 (ia64_init_extra_frame_info): Update.
11914 (ia64_pop_frame_regular): Update.
11915 * frame.h (struct frame_info): Update comment.
11916 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11917 * frame.c (frame_saved_regs_register_unwind): Update.
11918 (frame_saved_regs_register_unwind): Update.
11919 (deprecated_generic_get_saved_register): Update.
11920 * cris-tdep.c: Update comment.
11921 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11922 Rename macro.
11923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11924 * x86-64-tdep.c (x86_64_init_abi): Update.
11925 * vax-tdep.c (vax_gdbarch_init): Update.
11926 * v850-tdep.c (v850_gdbarch_init): Update.
11927 * sparc-tdep.c (sparc_gdbarch_init): Update.
11928 * sh-tdep.c (sh_gdbarch_init): Update.
11929 * s390-tdep.c (s390_gdbarch_init): Update.
11930 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11931 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11932 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11933 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11934 * mips-tdep.c (mips_gdbarch_init): Update.
11935 * mcore-tdep.c (mcore_gdbarch_init): Update.
11936 * m68k-tdep.c (m68k_gdbarch_init): Update.
11937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11938 * ia64-tdep.c (ia64_gdbarch_init): Update.
11939 * i386-tdep.c (i386_gdbarch_init): Update.
11940 * frv-tdep.c (frv_gdbarch_init): Update.
11941 * avr-tdep.c (avr_gdbarch_init): Update.
11942 * arm-tdep.c (arm_gdbarch_init): Update.
11943 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11944
42fa7c0f
AC
119452003-03-01 Andrew Cagney <cagney@redhat.com>
11946
11947 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11948 option enum and switch. When no windows, set the interpreter to
11949 INTERP_CONSOLE.
8ffd9b1b 11950
49c7e338
AC
119512003-03-01 Andrew Cagney <cagney@redhat.com>
11952
11953 * main.c (captured_main): Replace magic option characters with an
11954 enum.
11955
e9582e71
AC
119562003-03-01 Andrew Cagney <cagney@redhat.com>
11957
11958 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11959 INIT_EXTRA_FRAME_INFO.
11960 * gdbarch.h, gdbarch.c: Regenerate.
11961 * arm-tdep.c: Update comments.
11962 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11963 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11964 * frame.h, avr-tdep.c: Ditto.
11965 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11966 (create_new_frame, legacy_get_prev_frame): Ditto.
11967 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11968 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11970 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11971 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11972 * v850-tdep.c (v850_gdbarch_init): Ditto.
11973 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11974 * sh-tdep.c (sh_gdbarch_init): Ditto.
11975 * s390-tdep.c (s390_gdbarch_init): Ditto.
11976 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11977 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11978 * mips-tdep.c (mips_gdbarch_init): Ditto.
11979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11981 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11982 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11983 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11984 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11985 * frv-tdep.c (frv_gdbarch_init): Ditto.
11986 * cris-tdep.c (cris_gdbarch_init): Ditto.
11987 * avr-tdep.c (avr_gdbarch_init): Ditto.
11988 * arm-tdep.c (arm_gdbarch_init): Ditto.
11989 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11990 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11991
35cac7cf
AC
119922003-03-01 Andrew Cagney <cagney@redhat.com>
11993
11994 * gdbarch.sh (register_type): New function with predicate.
11995 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11996 * gdbarch.h, gdbarch.c: Re-generate.
11997 * arch-utils.c (generic_register_byte): Use generic_register_size.
11998 (generic_register_size): When available, use
11999 gdbarch_register_type.
12000 * regcache.c (init_regcache_descr): When available, initialize the
12001 register type array using gdbarch_register_type. If the
12002 architecture supplies gdbarch_register_type, do not use the legacy
12003 regcache layout.
12004 * d10v-tdep.c (d10v_register_type): Replace
12005 d10v_register_virtual_type.
12006 (d10v_gdbarch_init): Set register_type instead of
12007 register_virtual_type.
12008
7b83296f
AC
120092003-03-01 Andrew Cagney <cagney@redhat.com>
12010
12011 * Makefile.in (ax-gdb.o): Update dependencies.
12012 * ax-gdb.c: Include "regcache.h".
12013 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12014 * findvar.c (value_of_register): Ditto.
12015 * infcmd.c (default_print_registers_info): Ditto.
12016
eadc1c87
MK
120172003-03-01 Mark Kettenis <kettenis@gnu.org>
12018
12019 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12020 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12021
14143612
MK
120222003-03-01 Mark Kettenis <kettenis@gnu.org>
12023
12024 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12025 of STREQ.
12026
a55cc764
DJ
120272003-02-28 Daniel Jacobowitz <drow@mvista.com>
12028
12029 * Makefile.in (dwarf2loc.o): Update dependencies.
12030 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12031 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12032 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12033 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12034 (locexpr_tracepoint_var_ref): New function.
12035 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12036
08a617da
AC
120372003-02-28 Andrew Cagney <cagney@redhat.com>
12038
12039 * regcache.c (register_size): New function.
12040 * regcache.h (register_size): Declare
12041 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12042 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12043
4224873a
DC
120442003-02-28 David Carlton <carlton@math.stanford.edu>
12045
12046 * linespec.c (decode_compound): Extract code into find_method.
12047 (find_method): New.
12048
ccdc5d7f
JB
120492003-02-28 J. Brobecker <brobecker@gnat.com>
12050
12051 * Makefile.in: Add rules to build and link in observer.o.
12052
974e8ced
JB
120532003-02-27 J. Brobecker <brobecker@gnat.com>
12054
12055 * observer.c: Minor comments edits.
12056
7a28f973
JB
120572003-02-27 J. Brobecker <brobecker@gnat.com>
12058
12059 * observer.h, observer.c: New file.
12060
27cddce2
AC
120612003-02-27 Andrew Cagney <cagney@redhat.com>
12062
12063 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12064
b94a41a1
SC
120652003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12066
12067 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12068 (M6812_OP_STS_EXT): Likewise.
12069 (m6811_prologue): Use the above to recognize prologue.
12070 (m6812_prologue): Likewise.
12071
c8be8951
DC
120722003-02-27 David Carlton <carlton@math.stanford.edu>
12073
12074 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12075 SYMBOL_PRINT_NAME.
12076 (compare_psymbols): Ditto.
12077 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12078
d05bb1fc
MS
120792003-02-27 Michael Snyder <msnyder@redhat.com>
12080
4e845cd3
MS
12081 * f-lang.c (build_fortran_types): New function.
12082 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12083 * doublest.c (extract_floating): Fix warning text.
12084
f3824013
AC
120852003-02-27 Andrew Cagney <cagney@redhat.com>
12086
12087 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12088 predicate. Replaces PUSH_DUMMY_FRAME.
12089 * gdbarch.h, gdbarch.c: Regnerate.
12090 * valops.c (hand_function_call): Update. Call
12091 generic_push_dummy_frame directly.
12092 * vax-tdep.c (vax_gdbarch_init): Update.
12093 * sparc-tdep.c (sparc_gdbarch_init): Update.
12094 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12095 * m68k-tdep.c (m68k_gdbarch_init): Update.
12096 * hppa-tdep.c (hppa_gdbarch_init): Update.
12097 * alpha-tdep.c (alpha_gdbarch_init): Update.
12098 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12099 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12100 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12102 push_dummy_frame to generic_push_dummy_frame.
12103 * v850-tdep.c (v850_gdbarch_init): Ditto.
12104 * sh-tdep.c (sh_gdbarch_init): Ditto.
12105 * s390-tdep.c (s390_gdbarch_init): Ditto.
12106 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12107 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12108 * mips-tdep.c (mips_gdbarch_init): Ditto.
12109 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12111 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12112 * i386-tdep.c (i386_gdbarch_init): Ditto.
12113 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12114 * frv-tdep.c (frv_gdbarch_init): Ditto.
12115 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12116 * cris-tdep.c (cris_gdbarch_init): Ditto.
12117 * avr-tdep.c (avr_gdbarch_init): Ditto.
12118 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12119
ad188201
KB
121202003-02-26 Kevin Buettner <kevinb@redhat.com>
12121
12122 * mips-tdep.c (show_mips_abi): New function.
12123 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12124 command ``show mips abi''.
12125
6b37567a 121262003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12127
6b37567a 12128 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12129 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12130 more sline entries have been seen for the function.
12131
d3e0a5bf
MC
121322003-02-26 Michael Chastain <mec@shout.net>
12133
12134 * configure: Regenerate with autoconf 000227.
12135
18972eea
MC
121362003-02-26 Michael Chastain <mec@shout.net>
12137
12138 Close PR build/660.
12139 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12140 for old libc5/glibc.
12141 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12142
0bbde931
KW
121432003-02-26 Kris Warkentin <kewarken@qnx.com>
12144
12145 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12146 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12147
27ca5dad
MC
121482003-02-26 Michael Chastain <mec@shout.net>
12149
12150 * configure.in: New variable HAVE_UINTPTR_T.
12151 * configure, config.in: Regenerated.
12152
6f88d630
DJ
121532003-02-26 Daniel Jacobowitz <drow@mvista.com>
12154
12155 Fix PR build/1097.
12156 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12157
b14185ce
AC
121582003-02-25 Andrew Cagney <cagney@redhat.com>
12159
12160 * frame.c (get_prev_frame): Add comment on check for
12161 inside_entry_func. Only check for inside_entry_file when not a
12162 dummy and not a sentinel. Check that the new frame is not inner
12163 to the old frame.
12164
ac2bd0a9
AC
121652003-02-25 Andrew Cagney <cagney@redhat.com>
12166
12167 * frame.c (frame_debug): New variable.
12168 (_initialize_frame): Add "set/show debug frame" command.
12169 (get_prev_frame): When frame_debug, print reason why unwind
12170 failed.
12171
b18a0fd2
MC
121722003-02-25 Michael Chastain <mec@shout.net>
12173
12174 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12175 to avoid uintptr_t definition problems.
12176
22abf04a
DC
121772003-02-25 David Carlton <carlton@math.stanford.edu>
12178
12179 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12180 (SYMBOL_LINKAGE_NAME): Ditto.
12181 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12182 SYMBOL_LINKAGE_NAME.
12183 (struct general_symbol_info): Expand comment.
12184 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12185 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12186 (SYMBOL_MATCHES_REGEXP): Ditto.
12187 * symtab.c (symbol_natural_name): New function.
12188 * objfiles.h: Replace all uses of SYMBOL_NAME by
12189 DEPRECATED_SYMBOL_NAME.
12190 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12191 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12192 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12193 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12194 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12195 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12196 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12197 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12198 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12199 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12200 * ada-exp.y: Ditto.
12201 * ada-exp.y: Update copyright.
12202 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12203 * cp-valprint.c: Ditto.
12204
1a5848f6
JJ
122052003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12206
12207 * infptrace.c (detach): Do not flag error if ptrace detach fails
12208 and errno is set to ESRCH.
12209
7343d46a
AC
122102003-02-24 Andrew Cagney <cagney@redhat.com>
12211
12212 * infptrace.c (udot_info): Change type of udot_off to long. Use
12213 paddr when printing udot_off's value.
12214
49fa1dc2
DC
122152003-02-24 David Carlton <carlton@math.stanford.edu>
12216
12217 * symtab.c (make_symbol_overload_list): Only read in partial
12218 symtabs containing a matching partial symbol.
12219
0fe19209
DC
122202003-02-24 David Carlton <carlton@math.stanford.edu>
12221
12222 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12223 do the comparison, not strcmp.
12224 * symfile.c (compare_psymbols): Ditto.
12225 * defs.h: Declare strcmp_iw_ordered.
12226 * utils.c (strcmp_iw_ordered): New function.
12227
8e3ee7b5
JB
122282003-02-24 Jim Blandy <jimb@redhat.com>
12229
12230 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12231 support, shared libs): Remove my name from here, to better reflect
12232 reality.
12233
7df1a324
KW
122342003-02-24 Kris Warkentin <kewarken@qnx.com>
12235
12236 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12237 (target_ops): Add to_have_continuable_watchpoint.
12238 * target.c (update_current_target): Add INHERIT line for
12239 to_have_continuable_watchpoint.
12240 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12241 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12242 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12243 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12244
d1c76907
EZ
122452003-02-24 Elena Zannoni <ezannoni@redhat.com>
12246
12247 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12248 maintainership.
12249
2610b0bf
KW
122502003-02-24 Kris Warkentin <kewarken@qnx.com>
12251
f46169db
KW
12252 * solib.c (solib_open): Call target defined search function after
12253 failing with solib-search-path.
12254 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12255 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12256
9a3c34fe
KW
122572003-02-24 Kris Warkentin <kewarken@qnx.com>
12258
f46169db 12259 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12260
2417dd25
SC
122612003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12262
12263 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12264
b631436b
SC
122652003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12266
12267 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12268 (m68hc11_add_reggroups): New function.
12269 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12270 (m68hc11_gdbarch_init): Install the reggroups.
12271 (_initialize_m68hc11_tdep): Initialize them.
12272
0aa8c1e4
JW
122732003-02-21 James E Wilson <wilson@tuliptree.org>
12274
12275 * MAINTAINERS: Update my email address.
12276
50ceaba5
DC
122772003-02-21 David Carlton <carlton@math.stanford.edu>
12278
12279 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12280
4c2df51b
DJ
122812003-02-21 Daniel Jacobowitz <drow@mvista.com>
12282
12283 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12284 * symtab.h: Add opaque declarations of struct axs_value and
12285 struct agent_expr.
12286 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12287 (struct location_funcs): New type.
12288 (struct symbol): Add "loc" to aux_value.
12289 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12290 * dwarf2read.c: Include "dwarf2expr.h".
12291 (dwarf2_symbol_mark_computed): New function.
12292 (read_func_scope): Use it.
12293 (var_decode_location): New function.
12294 (new_symbol): Use it.
12295 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12296
12297 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12298 (dwarf2expr_h, dwarf2loc_h): New variables.
12299 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12300 (dwarf2expr.o, dwarf2loc.o): New rules.
12301 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12302 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12303 LOC_COMPUTED_ARG.
12304 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12305 * m2-exp.y (yylex): Likewise.
12306 * printcmd.c (address_info, print_frame_args): Likewise.
12307 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12308 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12309 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12310 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12311 * symtab.c (lookup_block_symbol): Likewise.
12312
5784d15e
AF
123132003-02-20 Adam Fedor <fedor@gnu.org>
12314
12315 * symtab.h: Remove objc_specific struct
12316 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12317 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12318 Have language_objc use cplus_specific struct.
12319
d4cad8db
TT
123202003-02-20 Tom Tromey <tromey@redhat.com>
12321
12322 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12323 TYPE_NAME, when printing a String value. PR java/1075.
12324
2f9a90b4
AF
123252003-02-20 Adam Fedor <fedor@gnu.org>
12326
d38074a8 12327 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12328 * objc-lang.c (find_methods): Make static.
2f9a90b4 12329
6f17862b
CF
123302003-02-20 Christopher Faylor <cgf@redhat.com>
12331
12332 * win32-nat.c (get_image_name): Check return value from
12333 ReadProcessMemory.
12334 (child_xfer_memory): Ditto.
12335
715d1656
AO
123362003-02-20 Alexandre Oliva <aoliva@redhat.com>
12337
12338 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12339 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12340 '${exec_prefix}' (in addition to the expansion thereof) as
12341 relocatable.
12342 * configure: Rebuilt.
12343
b1262a02
DC
123442003-02-20 David Carlton <carlton@math.stanford.edu>
12345
12346 * symtab.c (search_symbols): Revert the search_symbols part of my
12347 2002-12-23 patch. Add comment.
12348
7134143f
DJ
123492002-02-20 Daniel Jacobowitz <drow@mvista.com>
12350
12351 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12352 * dbxread.c (elfstab_build_psymtabs): Don't call
12353 install_minimal_symbols.
12354 (stabsect_build_psymtabs): Likewise.
12355 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12356 earlier.
12357 * somread.c (som_symfile_read): Call install_minimal_symbols
12358 and do_cleanups earlier.
12359 * nlmread.c (nlm_symfile_read): Likewise.
12360 * mdebugread.c (elfmdebug_build_psymtabs): Call
12361 install_minimal_symbols and make appropriate cleanups.
12362
cf466558
KB
123632003-02-20 Kevin Buettner <kevinb@redhat.com>
12364
12365 * solib.c (reload_shared_libraries): New function.
12366 (_initialize_solib): Add callbacks for ``set solib-search-path''
12367 and ``set solib-absolute-prefix''.
12368
de5ad195
DC
123692003-02-20 David Carlton <carlton@math.stanford.edu>
12370
12371 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12372 expand comment.
12373 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12374 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12375 * ada-typeprint.c (ada_typedef_print): Ditto.
12376 * ax-gdb.c (gen_var_ref): Ditto.
12377 * breakpoint.c (print_one_breakpoint): Ditto.
12378 * buildsym.c (finish_block): Ditto.
12379 * c-valprint.c (c_val_print): Ditto.
12380 * expprint.c (print_subexp): Ditto.
12381 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12382 * infcmd.c (jump_command): Ditto.
12383 * linespec.c (decode_line_2, decode_compound): Ditto.
12384 * maint.c (maintenance_translate_address): Ditto.
12385 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12386 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12387 Ditto.
8ffd9b1b
AJ
12388 * p-valprint.c (pascal_val_print): Ditto.
12389 * stabsread.c (define_symbol): Ditto.
de5ad195 12390 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12391 (print_frame_arg_vars, return_command): Ditto.
12392 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12393 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12394 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12395 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12396 (rbreak_command): Ditto.
12397 * tracepoint.c (tracepoints_info): Ditto.
12398 * typeprint.c (typedef_print): Ditto.
12399 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12400 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12401 * ada-typeprint.c: Update Copyright.
12402 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12403 * tracepoint.c, cli/cli-cmds.c: Ditto.
12404
f796e4be
KB
124052003-02-20 Kevin Buettner <kevinb@redhat.com>
12406
12407 * frame.c (generic_unwind_get_saved_register): Make non-static.
12408 * frame.h (generic_unwind_get_saved_register): Declare.
12409 * mips-tdep.c (read_next_frame_reg): Fetch register from
12410 current regcache when frame is NULL.
12411 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12412 that must be NULL.
12413 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12414 instead of frame_register_unwind().
12415
836cc9f4
AC
124162003-02-20 Andrew Cagney <ac131313@redhat.com>
12417
12418 * remote-sim.c (gdbsim_insert_breakpoint)
12419 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12420 code.
12421
501eef12
AC
124222003-02-20 Andrew Cagney <ac131313@redhat.com>
12423
12424 * remote.c (_initialize_remote): Add commands "set/show remote
12425 hardware-watchpoint-limit" and "set/show remote
12426 hardware-breakpoint-limit".
12427 (remote_hw_watchpoint_limit): Initialize to -1.
12428 (remote_hw_breakpoint_limit): Ditto.
12429 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12430
1b6bc7e0
CF
124312003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12432
12433 * coff-pe-read.c: New file - support reading of minimal symbols from a
12434 portable executable using the export table.
12435 * coff-pe-read.h: New file.
12436 * coffread.c: Include coff-pe-read.h.
12437 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12438 debugging symbols found.
12439 * Makefile.in (SFILES): Add coff-pe-read.o.
12440 (coff_pe_read_h): Define.
12441 (COMMON_OBS): Add coff-pe-read.o.
12442 (coffread.o): Add coff_pe_read_h dependency.
12443 (coff-pe-read.o): New target.
12444
fe898f56
DC
124452003-02-19 David Carlton <carlton@math.stanford.edu>
12446
12447 * Makefile.in (SFILES): Add block.c.
12448 (block_h): New.
12449 (COMMON_OBS): Add block.o.
12450 (block.o): New.
12451 (x86-64-tdep.o): Add $(block_h).
12452 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12453 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12454 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12455 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12456 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12457 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12458 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12459 * value.h: Add opaque declaration for struct block.
12460 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12461 * ada-lang.h: Ditto.
12462 * x86-64-tdep.c: #include "block.h"
12463 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12464 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12465 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12466 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12467 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12468 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12469 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12470 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12471 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12472 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12473 * symtab.c (block_function): Ditto.
12474 (contained_in): Ditto.
12475 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12476 block.h. Add opaque declaration for struct block.
12477 * symtab.h: Move block_function and contained_in declarations to
12478 block.h. Add opaque declarations for struct block, struct
12479 blockvector.
12480 (struct block): Move to block.h.
12481 (struct blockvector): Ditto.
12482 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12483 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12484 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12485 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12486 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12487 Ditto.
12488 * block.c: New file.
12489 * block.h: New file.
12490
173345b5
TR
124912003-02-19 Theodore A. Roth <troth@openavr.org>
12492
12493 * avr-tdep.c (avr_extract_return_value): Remove function.
12494 (avr_store_return_value): Remove function.
12495 (avr_extract_struct_value_address): Remove function.
12496 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12497
338ef23d
AC
124982003-02-19 Andrew Cagney <ac131313@redhat.com>
12499
12500 * rs6000-tdep.c: Include "gdb_assert.h".
12501 (registers_e500): Add "acc" and "spefscr".
12502 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12503 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12504 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12505 really is "r0".
12506 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12507
5412f5f3
KS
125082003-02-18 Keith Seitz <keiths@redhat.com>
12509
12510 * Makefile.in: Add gdbtk-interps.c.
12511
881324eb
KB
125122003-02-18 Kevin Buettner <kevinb@redhat.com>
12513
12514 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12515 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12516
6a2f5abf
AC
125172003-02-18 Andrew Cagney <cagney@redhat.com>
12518
12519 * symtab.h (struct objfile): Add opaque declaration.
12520
54c7009d
EZ
125212003-02-18 Elena Zannoni <ezannoni@redhat.com>
12522
12523 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12524 * dbxread.c (process_one_symbol): Use last_function_start rather
12525 than function_start_offset to find the real beginning of the
12526 current function. The latter is just the text section offset on
12527 some systems, the former is always the real function start.
54c7009d 12528
7ee6d7eb
AC
125292003-02-17 Andrew Cagney <cagney@redhat.com>
12530
12531 * configure.in: Revert ${target} != ${host}.
12532
2846da9b
AC
125332003-02-17 Andrew Cagney <ac131313@redhat.com>
12534
12535 * configure.in (Makefile): Use the test ${target} != ${host},
12536 instead of the absence of the "nm.h" file, to determine of the
12537 configuration non-native.
12538 * configure: Regenerate.
8ffd9b1b 12539
3b27aeea
EZ
125402003-02-14 Elena Zannoni <ezannoni@redhat.com>
12541
fbe586ae 12542 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12543
12544 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12545 conditionalize tui_active test.
12546 (lookup_cmd_1): Ditto.
12547
b0b1c2c0
MK
125482003-02-14 Mark Kettenis <kettenis@gnu.org>
12549
12550 * configure.in: Add check for _etext.
12551 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12552 available.
12553 * config.in, configure: regenerated.
12554
8f05cde5
DJ
125552003-02-14 Daniel Jacobowitz <drow@mvista.com>
12556
12557 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12558
021e7609
AC
125592003-02-14 Andrew Cagney <ac131313@redhat.com>
12560
12561 * main.c (tui_version): Delete variable.
12562 (captured_main): When --tui, set interpreter_p to "tui" instead of
12563 enabling tui_version.
12564 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12565 tui_version.
12566 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12567 * cli/cli-cmds.c (disassemble_command): Ditto.
12568 * defs.h (tui_version): Delete declaration.
12569 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12570 (tui-interp.o): Add rules.
12571 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12572
e325dcec
CF
125732003-02-14 Christopher Faylor <cgf@redhat.com>
12574
36ffb041 12575 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12576 just-loaded dll.
12577
c4f90d87
JM
125782003-02-12 Jason Molenda (jmolenda@apple.com)
12579
fbe586ae
RH
12580 * symmisc.c (print_objfile_statistics): Include information about
12581 the number of psymtabs and symtabs in each object file.
c4f90d87 12582
e46e5ccd
KS
125832003-02-13 Keith R Seitz <keiths@redhat.com>
12584
12585 * main.h (struct captured_main_args): Add interpreter_p.
12586 * main.c (captured_main): Initialize interpreter_p from context.
12587 * gdb.c (main): Set interpreter_p argument.
12588 * Makefile.in (gdb.o): Add dependency for interps.h.
12589
fe97fe9c
AC
125902003-02-12 Andrew Cagney <ac131313@redhat.com>
12591
12592 * event-top.c (cli_command_loop): Delete declaration.
12593 (_initialize_event_loop): Delete function setting event_loop_hook.
12594 * event-top.h (cli_command_loop): Declare. Update copyright.
12595 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12596 * interps.c (current_interp_command_loop): When event_loop_p, call
12597 cli_command_loop.
12598
1cdac4ef
AC
125992003-02-12 Andrew Cagney <ac131313@redhat.com>
12600
12601 * interps.h (interp_command_loop_ftype): Change return type to
12602 void.
12603
48037ead
ML
126042003-02-12 Michal Ludvig <mludvig@suse.cz>
12605
12606 * x86-64-tdep.c (x86_64_extract_return_value)
12607 (x86_64_store_return_value): Use regcache instead of regbuf.
12608 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12609 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12610
033afc63
AC
126112003-02-11 Andrew Cagney <ac131313@redhat.com>
12612
12613 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12614 * aclocal.m4: Regenerate.
12615 * configure: Regenerate.
12616
12617 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12618 TCL_LD_SEARCH_FLAGS.
12619
40d02bca
ML
126202003-02-10 Michal Ludvig <mludvig@suse.cz>
12621
12622 * dwarf2cfi.c: Reindented.
12623
11308a41
AC
126242003-02-09 Andrew Cagney <ac131313@redhat.com>
12625
12626 * interps.c (clear_interpreter_hooks): Convert function definition
12627 to ISO C.
12628
e1c1c0f6
DC
126292003-02-07 David Carlton <carlton@math.stanford.edu>
12630
12631 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12632
ab5d3da6
KB
126332003-02-07 Kevin Buettner <kevinb@redhat.com>
12634
12635 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12636 (struct type): ...to here.
12637 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12638 field.
12639 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12640 (replace_type): Set length on all type variants for a given type.
12641
b8a92b82
AC
126422003-02-07 Andrew Cagney <ac131313@redhat.com>
12643
12644 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12645 <sys/stat.h>.
12646 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12647
5cb316ef
AC
126482003-02-06 Andrew Cagney <ac131313@redhat.com>
12649
2555fe1a
AC
12650 * Makefile.in (symm-nat.o): Update dependencies.
12651 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12652 (lynx-nat.o, ia64-linux-nat.): Ditto.
12653 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12654 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12655 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12656
44270758
AC
12657 * Makefile.in (inflow_h): Define.
12658 (procfs.o, inflow.o, procfs.o): Update dependencies.
12659 * inftarg.c (child_stop): Delete extern declaration of
12660 inferior_process_group. Include "inflow.h".
12661 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12662 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12663 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12664 (our_process_group, inferior_process_group): Extern declarations.
12665
df8f7274
AC
12666 * procfs.c: Include "gdb_assert.h".
12667
5cb316ef
AC
12668 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12669 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12670 * jv-typeprint.c (java_type_print_base): Ditto.
12671 * typeprint.c (typedef_print): Eliminate STREQ.
12672 * cli/cli-script.c (define_command, define_command): Ditto.
12673 * main.c (captured_main): Ditto.
12674 * values.c (lookup_internalvar): Ditto.
12675 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12676 within `if' conditional.
12677 * linespec.c (decode_line_2): Ditto.
12678 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12679 (bfd_openw_with_cleanup): Ditto.
12680
2a28ccea
MK
126812003-02-07 Mark Kettenis <kettenis@gnu.org>
12682
12683 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12684 legacy_extract_return_value and store_return_value to
12685 legacy_return_value.
12686
786b8124
CF
126872003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12688
12689 * win32-nat.c (get_relocated_section_addrs): New function. Find
12690 section load addresses for symbol handling in relocated DLLs.
12691 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12692
b871e4ec
FF
126932003-02-05 Fred Fish <fnf@intrinsity.com>
12694
12695 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12696 '=' and '!='.
12697 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12698 with '&' and '=='.
12699 (angel_RDI_info): Ditto.
12700 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12701 with '&' and '!='.
12702 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12703
4389a95a 127042003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12705 Keith Seitz <keiths@redhat.com>
12706 Elena Zannoni <ezannoni@redhat.com>
12707 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12708
12709 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12710 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12711 (SUBDIR_MI_OBS): Add "mi-interp.o".
12712 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12713 (SFILES): Add "interps.c".
12714 (COMMON_OBS): Add "interps.o".
12715 (interps_h, mi_main_h): Define.
12716 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12717 (mi-main.o, main.o, event-top.o): Update dependencies.
12718 * cli/cli-interp.c: New file.
12719 * interps.h, interps.c: New files.
12720 * top.c: (gdb_init): Don't install the default interpreter, handed
12721 by captured_main.
12722 * main.c: Include "interps.h".
12723 (interpreter_p): Note that it should malloc'ed.
12724 (captured_command_loop): Call current_interp_command_loop.
12725 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12726 xfree and xstrdup when updating interpreter_p. Install the
12727 default interpreter. Add hack to stop mi1's copyright notice
12728 being encoded.
12729 * event-top.h (gdb_setup_readline): Declare.
12730 (gdb_disable_readline): Declare.
12731 * event-top.c: Include "interps.h".
12732 (display_gdb_prompt): Call current_interp_display_prompt_p.
12733 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12734 gdb_stdlog, and gdb_stdtarg.
12735 (_initialize_event_loop): Don't call gdb_setup_readline.
12736 * cli-out.c (cli_out_set_stream): New function.
12737 * cli-out.h (cli_out_set_stream): Declare.
12738
ff3b5810
MK
127392003-02-06 Mark Kettenis <kettenis@gnu.org>
12740
12741 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12742 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12743 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12744 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12745 config/i386/i386v42mp.mt: Removed.
12746
5b729aa5
MK
127472003-02-05 Mark Kettenis <kettenis@gnu.org>
12748
12749 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12750 GDB_OSABI_SOLARIS.
12751
8cc15142
MC
127522003-02-05 Michael Chastain <mec@shout.net>
12753
12754 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12755 2.12.1 and earlier versions.
12756
5aa5d4b9
AC
127572003-02-05 Andrew Cagney <ac131313@redhat.com>
12758
12759 Remove orphaned hosts, targets and files.
12760 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12761 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12762 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12763 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12764 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12765 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12766 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12767 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12768 * config/sparc/tm-sp64sim.h: Delete.
12769 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12770 hosts.
12771 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12772 mips*-dec-mach3* targets.
12773
b68767c1
MC
127742003-02-04 Michael Chastain <mec@shout.net>
12775
12776 * NEWS: Fix typo: sepcifying -> specifying.
12777
5ae7ca1d
MC
127782003-02-04 Michael Chastain <mec@shout.net>
12779
12780 * dwarfread.c: Add documentation on the state of dwarf-1,
12781 looking towards obsoletion.
12782
d08a4280
MC
127832003-02-03 Michael Chastain <mec@shout.net>
12784
12785 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12786 gdb/testsuite/gdb.c++/pr-1023.exp.
12787
e9be73e4
AC
127882003-02-04 Andrew Cagney <ac131313@redhat.com>
12789
12790 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12791 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12792
12793 * utils.c (init_page_info): Delete reference to MPW in comments.
12794 * main.c (captured_main): Delete #ifdef MPW.
12795
05d57f6f
AC
127962003-02-04 Andrew Cagney <ac131313@redhat.com>
12797
8ffd9b1b 12798 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12799 * monitor.c (monitor_expect): Obsolete reference to m32r.
12800 * configure.tgt: Mark m32r-*-elf* as obsolete.
12801 * MAINTAINERS: Mark m32k as obsolete.
12802 * m32r-rom.c: Obsolete file.
12803 * config/m32r/m32r.mt: Obsolete file.
12804 * config/m32r/tm-m32r.h: Obsolete file.
12805 * m32r-stub.c: Obsolete file.
12806 * m32r-tdep.c: Obsolete file.
12807
8b0e5691
AC
128082003-02-04 Andrew Cagney <ac131313@redhat.com>
12809
12810 * NEWS: Mention that the z8k-zilog-none is obsolete.
12811 * MAINTAINERS: Mark z8k as obsolete.
12812 * configure.tgt: Obsolete the z8k-*-coff* target.
12813 * config/z8k/z8k.mt: Obsolete file.
12814 * config/z8k/tm-z8k.h: Obsolete file.
12815 * z8k-tdep.c: Obsolete file.
12816
67f16606
AC
128172003-02-04 Andrew Cagney <ac131313@redhat.com>
12818
12819 * NEWS: Mention that the mn10200-elf is obsolete.
12820 * configure.tgt: Obsolete mn10200-*-* target.
12821 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12822 mention that the mn10200 is obsolete.
12823 * breakpoint.h: Ditto.
12824 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12825 * config/mn10200/mn10200.mt: Obsolete file.
12826 * config/mn10200/tm-mn10200.h: Obsolete file.
12827 * mn10200-tdep.c: Obsolete file.
12828
fd2299bd
AC
128292003-02-04 Andrew Cagney <ac131313@redhat.com>
12830
12831 * MAINTAINERS: Mark h8500 as obsolete.
12832 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12833 * findvar.c (value_from_register): Ditto.
12834 * h8500-tdep.c: Mark file as obsolete.
12835 * config/h8500/h8500.mt: Ditto.
12836 * config/h8500/tm-h8500.h: Ditto.
12837 * NEWS: Mention that h8500 is obsolete.
12838
eb9a305d
DC
128392003-02-04 David Carlton <carlton@math.stanford.edu>
12840
12841 * objfiles.c (allocate_objfile): Always set name. Add comment at
12842 start of function.
12843 * jv-lang.c (get_dynamics_objfile): Add comment.
12844
406fc7fb
DC
128452003-02-04 David Carlton <carlton@math.stanford.edu>
12846
12847 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12848 * printcmd.c (build_address_symbolic): Replace uses of
12849 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12850 SYMBOL_NAME, and asm_demangle.
12851 Update copyright.
12852
93d91629
DC
128532003-02-04 David Carlton <carlton@math.stanford.edu>
12854
12855 * linespec.c (decode_compound): Extract code into
12856 lookup_prefix_sym.
12857 (lookup_prefix_sym): New function.
12858
1c5cb38e
DC
128592003-02-04 David Carlton <carlton@math.stanford.edu>
12860
12861 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12862 FLOAT_COERCION_BADNESS.
12863 * gdbtypes.c (rank_one_type): Replace all uses of
12864 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12865
0cf824c9
JB
128662003-02-04 Jim Blandy <jimb@redhat.com>
12867
12868 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12869 section, let dwarf_macinfo_section point to it, not
12870 dwarf_loc_section.
12871
a2d356b0
DJ
128722003-02-04 Daniel Jacobowitz <drow@mvista.com>
12873
12874 Pointed out by Anton Blanchard <anton@samba.org>.
12875 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12876 (ppc_linux_at_sigtramp_return_path): Use it.
12877
2de7ced7
DJ
128782003-02-04 Daniel Jacobowitz <drow@mvista.com>
12879
12880 * defs.h (streq): Add prototype.
12881 * utils.c (streq): New function.
12882
12883 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12884 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12885 * mdebugread.c (new_symbol): Likewise.
12886 * stabsread.c (define_symbol): Likewise.
12887 * coffread.c (process_coff_symbol): Likewise.
12888 * dwarfread.c (new_symbol): Likewise.
12889
12890 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12891 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12892 here.
12893 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12894 SYMBOL_INIT_DEMANGLED_NAME.
12895 * objfiles.c: Include "hashtab.h".
12896 (allocate_objfile): Call htab_set_functions_ex for the
12897 demangled_names_hash.
12898 (free_objfile): Call htab_delete for the demangled_names_hash.
12899 * objfiles.h (struct htab): Add declaration.
12900 (struct objfile): Add demangled_names_hash.
12901 * symfile.c: Include "hashtab.h".
12902 (reread_symbols): Call htab_delete for the demangled_names_hash.
12903 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12904 SYMBOL_NAME in the bcache.
12905 * symtab.c: Include "hashtab.h". Update comments.
12906 (create_demangled_names_hash, symbol_set_names): New functions.
12907 (symbol_find_demangled_name): New function, broken out from
12908 symbol_init_demangled_names.
12909 (symbol_init_demangled_names): Use it.
12910 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12911 (SYMBOL_SET_NAMES): New macro.
12912 (symbol_set_names): Add prototype.
12913
15831452
JB
129142003-02-03 Jim Blandy <jimb@redhat.com>
12915
12916 Use a single, consistent representation for an empty minimal
12917 symbol table in an objfile.
12918 * objfiles.c (terminate_minimal_symbol_table): New function.
12919 (allocate_objfile): Call it.
12920 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12921 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12922 non-NULL.
15831452
JB
12923 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12924 objfile has minimal symbols, compare minimal_symbol_count to zero,
12925 instead of comparing msymbols with NULL.
12926 * objfiles.c (have_minimal_symbols): Same.
12927 * solib-sunos.c (solib_add_common_symbols): Call
12928 terminate_minimal_symbol_table.
12929 * symfile.c (reread_symbols): Same.
8ffd9b1b 12930
ffc65945
KB
129312003-02-03 Kevin Buettner <kevinb@redhat.com>
12932
12933 * s390-tdep.c (s390_address_class_type_flags)
12934 (s390_address_class_type_flags_to_name)
12935 (s390_address_class_name_to_type_flags): New functions.
12936 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12937 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12938
f211c6d4
MS
129392003-02-03 Michael Snyder <msnyder@redhat.com>
12940
12941 * arm-tdep.c: Fix spell-o in comment.
12942
659b0389
ML
129432003-02-03 Michal Ludvig <mludvig@suse.cz>
12944
12945 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12946 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12947 error messages to contain BFD filename.
659b0389 12948
3b31d625
EZ
129492003-02-02 Elena Zannoni <ezannoni@redhat.com>
12950
997b089a 12951 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12952 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12953 (do_mixed_source_and_assembly): Use
12954 make_cleanup_ui_out_tuple_begin_end and
12955 make_cleanup_ui_out_tuple_begin_end.
12956 (do_mixed_source_and_assembly): Ditto.
12957 * thread.c (do_captured_list_thread_ids): Ditto.
12958 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12959 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12960 ui_out_tuple_end): Delete prototypes.
12961 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12962 ui_out_list_end, ui_out_tuple_end): Delete.
12963
12964 From Kevin Buettner <kevinb@redhat.com>:
12965 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12966 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12967 (do_cleanup_table_end): New functions.
12968 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12969 Use cleanups to invoke_ui_out_tuple_end().
12970 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12971 * cli/cli-setshow.c (cmd_show_list): Use
12972 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12973
5b181d62
AC
129742003-02-02 Andrew Cagney <ac131313@redhat.com>
12975
12976 * frame.c (frame_unwind_register): New function.
12977 (frame_unwind_unsigned_register): Use.
12978 (frame_unwind_signed_register): Use.
12979 (frame_read_register): New function.
12980 * frame.h (frame_unwind_register): Declare.
12981 (frame_read_register): Declare.
12982
12983 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12984 and frame_unwind_register instead of read_memory, write_register
12985 and deprecated_write_register_bytes.
12986
5f601589
AC
129872003-02-02 Andrew Cagney <ac131313@redhat.com>
12988
12989 * frame.h: Note that namelen can be negative.
12990 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12991 NAME's length.
12992
12993 * NEWS: Mention that the d10v's `regs' command is deprecated.
12994 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12995 (d10v_print_registers_info): New function.
12996 (show_regs): Call d10v_print_registers_info.
12997 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12998
6a3fe0a4
MK
129992003-02-02 Mark Kettenis <kettenis@gnu.org>
13000
13001 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13002 lost in the previous patch.
13003
075559bc
AC
130042003-02-01 Andrew Cagney <ac131313@redhat.com>
13005
13006 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13007 * stack.c (print_frame_info_base): Output complete FRAME tuple
13008 for synthesized frames.
075559bc 13009
6789195b
AC
130102003-02-02 Andrew Cagney <ac131313@redhat.com>
13011
13012 * mips-nat.c (zerobuf): Delete.
13013 (fetch_inferior_registers): Alloc local zerobuf.
13014 (fetch_core_registers): Alloc local zerobuf.
13015 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13016 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13017 * thread-db.c (thread_db_store_registers): Ditto.
13018 * sh-tdep.c (sh_do_register): Ditto.
13019 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13020 * remote-sim.c (gdbsim_store_register): Ditto.
13021 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13022 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13023 * monitor.c (monitor_supply_register): Ditto.
13024 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13025 * mips-nat.c (fetch_inferior_registers): Ditto.
13026 * m68klinux-nat.c (fetch_register): Ditto.
13027 * lynx-nat.c (fetch_inferior_registers): Ditto.
13028 (fetch_inferior_registers): Ditto.
13029 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13030 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13031 (hpux_thread_store_registers): Ditto.
13032 * hppah-nat.c (fetch_register): Ditto.
13033 * hppab-nat.c (fetch_register): Ditto.
13034 * hppa-tdep.c (pa_register_look_aside): Ditto.
13035 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13036 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13037
e669114a
AC
130382003-02-01 Andrew Cagney <ac131313@redhat.com>
13039
13040 * gdbarch.sh: Explictly specify all method levels. When a
13041 variable with an empty level, provide a non-multi-arch default.
13042 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13043 * gdbarch.h: Re-generate.
13044 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13045 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13046
9a043c1d
AC
130472003-02-01 Andrew Cagney <ac131313@redhat.com>
13048
13049 * defs.h (host_pointer_to_address): Delete declaration.
13050 (address_to_host_pointer): Delete declaration.
13051 * utils.c (host_pointer_to_address): Delete function.
13052 (address_to_host_pointer): Delete function.
13053 * procfs.c (procfs_address_to_host_pointer): New function.
13054 * procfs.c (proc_set_watchpoint): Use.
13055 (procfs_can_use_hw_breakpoint): Update comments.
13056 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13057 (som_solib_add): Use.
13058 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13059 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13060
7ca9f392
AC
130612003-02-01 Andrew Cagney <ac131313@redhat.com>
13062
94bbfd30
AC
13063 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13064 strlen d_name.
13065
7ca9f392
AC
13066 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13067 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13068 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13069 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13070 (define_symbol): Update.
13071 * symfile.c (generic_load): Remove references to nindy.
13072 * symtab.c: Remove references to nindy.
13073
31a85ea2
AC
130742003-02-01 Andrew Cagney <ac131313@redhat.com>
13075
13076 * infcmd.c (print_float_info): Delete code conditional on
13077 FLOAT_INFO.
13078 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13079 * config/m68k/nm-apollo68b.h: Ditto.
13080 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13081 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13082 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13083
f6e85fc8
MK
130842003-02-01 Mark Kettenis <kettenis@gnu.org>
13085
6015b6a0
MK
13086 * config/i386/tm-i386os9k.h: Removed.
13087
f7a30bdf
MK
13088 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13089 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13090 they're identical to i[3456]86-*-sysv* now.
13091 * config/i386/i386v32.mh: Removed.
13092 * config/i386/xm-i386v32.h: Removed.
13093 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13094
28d52111
MK
13095 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13096
4d3f6bce
MK
13097 * config/i386/i386dgux.mh: Removed.
13098 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13099
f6e85fc8
MK
13100 * configure.in: Fix typo.
13101 * configure: Regenerated.
13102
53955967
DC
131032003-01-31 David Carlton <carlton@math.stanford.edu>
13104
13105 * dwarf2read.c (dwarf2_locate_sections): Set
13106 dwarf_ranges_section.
13107
b1364885
AC
131082003-01-31 Andrew Cagney <ac131313@redhat.com>
13109
8dbb1c65
AC
13110 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13111 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13112
8731e58e
AC
13113 * utils.c: Re-indent.
13114
b1364885
AC
13115 * config/djgpp/fnchange.lst: Delete nindy files.
13116 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13117 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13118 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13119 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13120 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13121 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13122 * Makefile.in (init.c): Remove nindy references.
13123 (saber_gdb): Delete rule.
13124 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13125 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13126 and a68v-nat.c.
13127 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13128 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13129 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13130 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13131 nindy-share/stop.h.
13132 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13133 * saber.suppress: Delete file.
13134
086df311
DJ
131352003-01-31 Daniel Jacobowitz <drow@mvista.com>
13136
13137 * dbxread.c (stabs_data): New static variable.
13138 (fill_symbuf): Support an in-memory buffer for stabs data.
13139 (stabs_seek): New function.
13140 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13141 (read_ofile_symtab): Use stabs_seek.
13142 (elfstab_build_psymtabs): Take an asection* instead of
13143 an offset and size. Relocate the stabs data if necessary.
13144 Save the section* for dbx_psymtab_to_symtab.
13145 * dwarf2read.c: Add section variables for each debug section.
13146 (dwarf2_locate_sections): Fill them in.
13147 (dwarf2_read_section): Take an asection* argument.
13148 Relocate the section contents if necessary.
13149 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13150 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13151 it to dwarf2_read_section.
13152 (dwarf2_build_frame_info): Update callers.
13153 * elfread.c (elf_symfile_read): Update call to
13154 elfstab_build_psymtabs.
13155 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13156 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13157 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13158 * symfile.c (symfile_dummy_outputs): New function.
13159 (symfile_relocate_debug_section): New function.
13160 * symfile.h (symfile_relocate_debug_section): Add prototype.
13161
87d1b352
RH
131622003-01-31 Richard Henderson <rth@redhat.com>
13163
13164 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13165 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13166 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13167 * alpha-tdep.c (alpha_register_name): Add "unique".
13168 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13169 (ALPHA_UNIQUE_REGNUM): New.
13170 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13171
c48861fb
AC
131722003-01-31 Andrew Cagney <ac131313@redhat.com>
13173
13174 * README: Remove reference to Ericsson 1800 monitor.
13175 * Makefile.in (remote-es.o): Delete rule.
13176 (ALLDEPFILES): Delete remote-es.c.
13177 * remote-es.c: Delete file.
13178 * config/m68k/es1800.mt: Delete file.
13179 * config/djgpp/fnchange.lst: Update.
13180 * configure.tgt: Delete m68*-ericsson-* target.
13181
d764a824
AF
131822003-01-31 Adam Fedor <fedor@gnu.org>
13183
13184 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13185 Remove duplicate/shadowing variable of same name.
13186
fe36c4f4
JB
131872003-01-30 Jim Blandy <jimb@redhat.com>
13188
13189 * symfile.c (find_separate_debug_file): Assert that the objfile's
13190 directory name we compute ends with a slash, and then assume that
13191 that's so everywhere we use it.
13192
cb741690
DJ
131932003-01-30 Daniel Jacobowitz <drow@mvista.com>
13194
13195 * valops.c (value_assign): Flush frame cache after stores to memory
13196 also.
13197
96ee5227
AC
131982003-01-30 Andrew Cagney <ac131313@redhat.com>
13199
13200 * Makefile.in (mon960-rom.o): Delete rule.
13201 * mon960-rom.c: Delete file.
13202
7f6104a9
AC
132032003-01-30 Andrew Cagney <ac131313@redhat.com>
13204
13205 * d10v-tdep.c: Include "frame-unwind.h".
13206 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13207 list.
13208 (next_addr, uses_frame): Delete.
13209 (struct d10v_unwind_cache): Define.
13210 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13211 Use info instead of next_addr and uses_frame globals.
13212 (d10v_frame_init_saved_regs): Delete function.
13213 (d10v_init_extra_frame_info): Delete function.
13214 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13215 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13216 init_frame_pc or frame_saved_pc.
13217 (d10v_pop_frame): Delete function.
13218 (do_d10v_pop_frame): Delete function.
13219 (d10v_frame_chain): Delete function.
13220 (d10v_frame_chain_valid): Delete function.
13221 (d10v_frame_pc_unwind): New function.
13222 (d10v_frame_id_unwind): New function.
13223 (saved_regs_unwinder): New function.
13224 (d10v_frame_register_unwind): New function.
13225 (d10v_frame_pop): New function.
13226 (d10v_frame_unwind): New variable.
13227 (d10v_frame_p): New function.
13228 (d10v_frame_saved_pc): Delete function.
13229 * Makefile.in (d10v-tdep.o): Update dependencies.
13230
cad2e848
JB
132312003-01-30 J. Brobecker <brobecker@gnat.com>
13232
13233 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13234 causing some regressions due to a change in the default value
13235 for this macro.
13236
af34e669
DJ
132372003-01-29 Richard Henderson <rth@redhat.com>
13238 Elena Zannoni <ezannoni@redhat.com>
13239 Daniel Jacobowitz <drow@mvista.com>
13240
13241 Fix PR gdb/961.
8ffd9b1b 13242 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13243 variables.
13244 (RANGES_SECTION): New.
13245 (dwarf_ranges_buffer): New variable.
13246 (struct comp_unit_head): Add member "die".
13247 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13248 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13249 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13250 (dwarf2_locate_sections): Likewise.
13251 (dwarf2_build_psymtabs): Read .debug_ranges.
13252 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13253 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13254 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13255 Look for DW_AT_ranges and return the bounding box.
13256
baa93fa6
CF
132572003-01-29 Brian Ford <ford@vss.fsi.com>
13258
13259 * win32-nat.c (cygwin_pid): Removed as unused.
13260 (child_attach): Try fall back to Cygwin pid.
13261
c63f977f
JB
132622003-01-29 Jim Blandy <jimb@redhat.com>
13263
13264 * objfiles.h (struct objfile): Doc fix.
13265
d62d1979
AC
132662003-01-29 Andrew Cagney <ac131313@redhat.com>
13267
13268 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13269 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13270 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13271 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13272 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13273 (FRAME_SAVED_PC): Change to a function with predicate.
13274 * gdbarch.h, gdbarch.c: Re-generate.
13275
1ae18a04
AC
132762003-01-28 Andrew Cagney <ac131313@redhat.com>
13277
52287340
AC
13278 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13279
1ae18a04
AC
13280 * complaints.c (complain): Delete function.
13281 * complaints.h (struct deprecated_complaint): Delete definition.
13282 (complain): Delete declaration.
13283
f2c16bd6
KB
132842003-01-28 Kevin Buettner <kevinb@redhat.com>
13285
13286 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13287 dummy frames.
13288
a94dd1fd
AC
132892003-01-27 Andrew Cagney <ac131313@redhat.com>
13290
13291 * sentinel-frame.h, sentinel-frame.c: New files.
13292 * Makefile.in (frame.o): Update dependencies.
13293 (SFILES): Add sentinel-frame.c.
13294 (sentinel_frame_h): Define.
13295 (COMMON_OBS): Add sentinel-frame.o.
13296 (sentinel-frame.o): Specify dependencies.
13297 * frame.c: Include "sentinel-frame.h".
13298 (frame_register_unwind): Rewrite assuming that there is always a a
13299 ->next frame.
13300 (frame_register, generic_unwind_get_saved_register): Ditto.
13301 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13302 (create_sentinel_frame, unwind_to_current_frame): New functions.
13303 (get_current_frame): Rewrite using create_sentinel_frame and
13304 unwind_to_current_frame. When possible, always create a frame.
13305 (create_new_frame): Set next to the sentinel frame.
13306 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13307 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13308 ID cache when necessary.
13309 (frame_saved_regs_id_unwind): Use frame_relative_level.
13310 (deprecated_generic_get_saved_register): Use frame_relative_level,
13311 get_frame_saved_regs, get_frame_pc, get_frame_base and
13312 get_next_frame.
13313 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13314 frame_register.
13315
5378adc4
DJ
133162003-01-27 Daniel Jacobowitz <drow@mvista.com>
13317
13318 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13319
51ee2ddc
DJ
133202003-01-27 Daniel Jacobowitz <drow@mvista.com>
13321
13322 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13323 (maintenance_set_profile_cmd): Use error () instead of warning ().
13324
d9feb4e7
DJ
133252003-01-27 Daniel Jacobowitz <drow@mvista.com>
13326
13327 * configure.in: Check that -pg works if using --enable-profiling.
13328 Check for monstartup and _mcleanup regardless of --enable-profiling.
13329 * maint.c: Check for monstartup and _mcleanup before using them.
13330 * config.in: Regenerated.
13331 * configure: Regenerated.
13332
2d188dd3
NC
133332003-01-24 Nick Clifton <nickc@redhat.com>
13334
13335 * Add sh2e support:
13336
13337 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13338
13339 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13340 (sh2e_show_regs): New.
13341 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13342 * config/sh/tm-sh.h: Added sh2e to comments.
13343
cb3c37b2
JB
133442003-01-23 Jim Blandy <jimb@redhat.com>
13345
13346 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13347 symbols found)" message here; we haven't checked for a separate
13348 debug info file yet, so we don't know yet.
13349 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13350 we've looked everywhere. Also, there's no need to print a special
13351 message when we're loading the separate debug info file: the one
13352 symbol_file_add prints is fine.
13353
5b5d99cf
JB
133542003-01-23 Alexander Larsson <alexl@redhat.com>
13355 Jim Blandy <jimb@redhat.com>
13356
13357 Add support for executables whose debug info has been separated
13358 out into a separate file, leaving only a link behind.
13359 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13360 and separate_debug_objfile_backlink.
13361 (put_objfile_before): New declaration.
13362 * symfile.c: #include "filenames.h".
13363 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13364 debug info in a separate file, read that, too. Save the addrs
13365 argument, so we can use it again to read the separated debug info;
13366 syms_from_objfile modifies the table we pass it.
13367 (reread_symbols): After re-reading an objfile, call
13368 reread_separate_symbols to refresh its separate debug info
13369 objfile, if it has one.
13370 (reread_separate_symbols, find_separate_debug_file,
13371 get_debug_link_info, separate_debug_file_exists): New functions.
13372 (debug_file_directory): New global var.
13373 (_initialize_symfile): Initialize debug_file_directory, and
13374 provide the new `set debug-file-directory' command to let the user
13375 change it.
13376 * objfiles.c (free_objfile): If this objfile has its debug info in
13377 a separate objfile, free that one too. If this is itself a
13378 separate debug info objfile, clear our parent's backlink.
13379 (put_objfile_before): New function.
13380 * utils.c (gnu_debuglink_crc32): New function.
13381 * defs.h (gnu_debuglink_crc32): New declaration.
13382 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13383 * configure.in: Handle --with-separate-debug-dir config option.
13384 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13385 * acconfig.h (DEBUGDIR): New macro.
13386 * configure, aclocal.m4, config.in: Regenerated.
13387
7e8580c1
JB
133882003-01-22 Jim Blandy <jimb@redhat.com>
13389
7904e09f
JB
13390 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13391 like the old symbol_file_add, but taking new arguments: you can
13392 now pass in either a `struct section_addr_info' list to say where
13393 each section is loaded, or a `struct section_offsets' table. Pass
13394 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13395 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13396 with the appropriate quiescent values for the new arguments.
13397
7e8580c1
JB
13398 * symfile.c: #include "gdb_assert.h".
13399 (syms_from_objfile): Add the ability to pass in a section offset
13400 table directly, as an alternative to the section_addr_info table.
13401 Document arguments better.
13402 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13403 * symfile.h (syms_from_objfile): Update declaration.
13404 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13405 syms_from_objfile.
13406 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13407
d28f9cdf
DJ
134082003-01-22 Daniel Jacobowitz <drow@mvista.com>
13409
13410 Original patch by Tom Tromey <tromey@cygnus.com> and
13411 Jason Molenda <jmolenda@apple.com>.
13412 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13413 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13414 * NEWS: Mention profiling.
13415 * configure.in (--enable-gdbtk): Fix typo.
13416 (--enable-profiling): New. Set PROFILE_CFLAGS.
13417 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13418 Fill in function.
13419 (profiling_state): New variable.
13420 (mcleanup_wrapper): New function.
13421 (_initialize_maint): Remove NOTYET, fix call to
13422 add_setshow_boolean_cmd for "maint set profile".
13423 * configure: Regenerated.
13424
df21e465
MH
134252003-01-21 Martin M. Hunt <hunt@redhat.com>
13426
13427 * Makefile.in (install-gdbtk): Install PNG images too.
13428
73c1f219
AC
134292003-01-21 Andrew Cagney <ac131313@redhat.com>
13430
13431 * exec.c (text_start): Delete global variable.
13432 (exec_file_attach): Make text_start local to the function.
13433 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13434 * valops.c (hand_function_call): Delete code that handles
13435 BEFORE_TEXT_END and AFTER_TEXT_END.
13436 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13437 of CALL_DUMMY_LOCATION.
13438 * gdbarch.c: Regenerate.
13439 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13440 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13441 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13442 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13443 (text_end): Delete extern declaration.
13444
eb4f72c5
AC
134452003-01-21 Andrew Cagney <ac131313@redhat.com>
13446
13447 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13448 * blockframe.c (backtrace_below_main): Move to "frame.c".
13449 (frame_chain_valid): Delete check for backtrace_below_main.
13450 (_initialize_blockframe): Delete initialization, move ``set
13451 backtrace-below-main'' command to "frame.c".
13452 (do_flush_frames_sfunc): Delete function.
13453 * frame.c: Include "command.h" and "gdbcmd.h".
13454 (frame_type_from_pc): New function.
13455 (create_new_frame): Use frame_type_from_pc.
13456 (legacy_get_prev_frame): New function.
13457 (get_prev_frame): Rewrite. When an old style frame, call
13458 legacy_get_prev_frame. Otherwize, unwind the PC first.
13459 (_initialize_frame): Add ``set backtrace-below-main'' command.
13460 * Makefile.in (frame.o): Update dependencies.
13461
778ce8cc
AC
134622003-01-19 Andrew Cagney <ac131313@redhat.com>
13463
13464 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13465 DEPRECATED_REGISTERS_INFO.
13466
01c193c8
AC
134672003-01-19 Andrew Cagney <ac131313@redhat.com>
13468
13469 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13470 Maintainers'. Update `Various Maintainers'.
13471
dedc2a2b
AC
134722003-01-19 Andrew Cagney <ac131313@redhat.com>
13473
13474 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13475 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13476 Suppress actual parameters when `-'.
13477 * gdbarch.h, gdbarch.c: Regenerate.
13478
b7261c70
AC
134792003-01-19 Andrew Cagney <ac131313@redhat.com>
13480
13481 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13482 code handling dummy frames.
13483
dbe9fe58
AC
134842003-01-19 Andrew Cagney <ac131313@redhat.com>
13485
13486 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13487 (struct frame_unwind): Add field pop.
13488 * frame.h (frame_pop): Declare.
13489 * frame.c (frame_saved_regs_pop): New function.
13490 (trad_frame_unwinder): Add frame_saved_regs_pop.
13491 (frame_pop): New function.
13492 * dummy-frame.c (dummy_frame_pop): New function.
13493 (discard_innermost_dummy): New function.
13494 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13495 (dummy_frame_unwind): Add dummy_frame_pop.
13496 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13497 * valops.c (hand_function_call): Ditto.
13498 * stack.c (return_command): Ditto.
13499
570b8f7c
AC
135002003-01-18 Andrew Cagney <ac131313@redhat.com>
13501
13502 * cris-tdep.c: Fix function declaration indentation.
13503 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13504 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13505 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13506 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13507 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13508 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13509
135102003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13511
13512 * README (Unpacking and Installation -- quick overview):
13513 Warn against ".../gdb-5.3/gdb/configure".
13514
494cca16
AC
135152003-01-18 Andrew Cagney <ac131313@redhat.com>
13516
13517 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13518 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13519 (struct frame_unwind): Declare opaque.
13520 (dummy_frame_p): Declare function.
13521 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13522 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13523 * dummy-frame.c: Include "frame-unwind.h".
13524 (dummy_frame_p): New function.
13525 (dummy_frame_unwind): New variable.
13526 * frame.c: Include "frame-unwind.h".
13527 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13528 to use the new unwind field.
13529 (set_unwind_by_pc): Delete function.
13530 (create_new_frame, get_prev_frame): Set unwind field using
13531 frame_unwind_find_by_pc.
13532 (trad_frame_unwind, trad_frame_unwinder): New variables.
13533 * frame.h (trad_frame_unwind): Declare variable.
13534 (frame_id_unwind_ftype): Delete declaration.
13535 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13536 (struct frame_unwind): Declare opaque.
13537 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13538 register_unwind with a single unwind pointer.
13539 * frame-unwind.h, frame-unwind.c: New files.
13540 * Makefile.in (SFILES): Add frame-unwind.c.
13541 (frame_unwind_h): Define.
13542 (COMMON_OBS): Add frame-unwind.o.
13543 (frame-unwind.o): Specify dependencies.
13544 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13545
4efb68b1
AC
135462003-01-18 Andrew Cagney <ac131313@redhat.com>
13547
13548 * ada-valprint.c: Eliminate PTR.
13549 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13550 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13551 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13552 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13553 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13554 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13555 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13556
a84d24ee
AC
135572003-01-17 Andrew Cagney <ac131313@redhat.com>
13558
762f08a3
AC
13559 * main.c (captured_main): Don't use PTR.
13560 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13561 * gdbtypes.c (lookup_primitive_typename): Ditto.
13562 (lookup_struct_elt_type): Ditto.
13563 * f-valprint.c (info_common_command): Ditto.
13564 (list_all_visible_commons): Ditto.
13565 * jv-typeprint.c (java_type_print_base): Ditto.
13566
a84d24ee
AC
13567 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13568 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13569 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13570 i386-interix-nat.c and i386-interix-tdep.c. Rename
13571 m68klinux-nat.c and m68klinux-tdep.c. Rename
13572 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13573 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13574 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13575 * main.c (captured_main): Use xfree, not free.
13576
c170fb60
AC
135772003-01-16 Andrew Cagney <ac131313@redhat.com>
13578
13579 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13580 ID back using a parameter.
13581 * frame.c (frame_id_unwind): Update call.
13582 (frame_saved_regs_id_unwind): Update.
13583 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13584 * dummy-frame.h (struct frame_id): Add opaque declaration.
13585 (dummy_frame_id_unwind): Update declaration.
13586
867f3898
AC
135872003-01-15 Andrew Cagney <ac131313@redhat.com>
13588
13589 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13590
40622be8 135912003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13592
40622be8 13593 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13594
ae66c1fc
EZ
135952003-01-14 Elena Zannoni <ezannoni@redhat.com>
13596
997b089a 13597 Fix PR gdb/898
ae66c1fc
EZ
13598 * breakpoint.c (until_break_command): Add new argument. Use it to
13599 decide whether to stop only at the current frame or not.
13600 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13601 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13602 call.
13603 (advance_command): New function.
13604 (_initialize_infcmd): Update help string for 'until' command.
13605 Add new 'advance' command.
13606
a04257e6
DC
136072003-01-14 David Carlton <carlton@math.stanford.edu>
13608
13609 * linespec.c (decode_line_1): Normalize comments.
13610 (set_flags): Ditto.
13611 (locate_first_half): Ditto.
13612 (decode_compound): Ditto.
13613 (symtab_from_filename): Ditto.
13614 (decode_all_digits): Ditto.
13615 (decode_dollar): Ditto.
13616 (find_methods): Ditto.
13617 (find_toplevel_char): Ditto.
13618
1bac305b
AC
136192003-01-13 Andrew Cagney <ac131313@redhat.com>
13620
13621 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13622 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13623 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13624 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13625 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13626 * language.c, language.h, m32r-tdep.c: Update copyright.
13627 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13628 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13629 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13630 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13631 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13632 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13633
25caa7a8
EZ
136342003-01-13 Elena Zannoni <ezannoni@redhat.com>
13635
13636 * stabsread.h (process_later, resolve_cfront_continuation):
13637 Obsolete.
13638 Update copyright years.
13639 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13640 Update copyright year.
13641 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13642 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13643 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13644 Update copyright year.
13645 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13646 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13647 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13648 (parse_partial_symbols): Obsolete cfront support.
13649 * stabsread.c
13650 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13651 macros.
13652 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13653 read_cfront_baseclasses, read_cfront_member_functions,
13654 resolve_cfront_continuation,read_cfront_static_fields,
13655 copy_cfront_struct_fields): Obsolete functions.
13656 (define_symbol, read_one_struct_field): Obsolete cfront support.
13657 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13658 Update Copyright year.
13659
7789c6f5
EZ
136602003-01-13 Elena Zannoni <ezannoni@redhat.com>
13661
13662 * stack.c (print_frame_info, print_stack_frame_base_stub,
13663 print_stack_frame_base, show_and_print_stack_frame_stub,
13664 show_and_print_stack_frame, print_only_stack_frame_stub,
13665 print_only_stack_frame): Delete functions.
13666 (print_stack_frame_stub): Call print_frame_info instead of
13667 print_frame_info_base.
13668 (print_frame_info_base): Rename to print_frame_info.
13669 (backtrace_command_1): Call print_frame_info, instead of
13670 print_frame_info_base.
13671 (current_frame_command): Call print_stack_frame, instead of
13672 print_only_stack_frame.
13673 (frame_command): Call print_stack_frame, instead of
13674 show_and_print_stack_frame.
13675 (up_command): Ditto.
13676 (down_command): Ditto.
13677 * frame.h (print_only_stack_frame): Delete prototype.
13678 * infrun.c (normal_stop): Call print_stack_frame, instead of
13679 show_and_print_stack_frame.
13680 * thread.c (info_threads_command): Call print_stack_frame, instead
13681 of print_only_stack_frame.
13682
3f5a3016
AC
136832003-01-13 Andrew Cagney <ac131313@redhat.com>
13684
d99ba314
AC
13685 * README (Graphical interface to GDB): Update URL. Point at
13686 gdb/links/.
13687
3f5a3016
AC
13688 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13689 version match.
13690
083ae935
DJ
136912003-01-13 Daniel Jacobowitz <drow@mvista.com>
13692
13693 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13694 lines.
13695
5365276c
DJ
136962003-01-13 Daniel Jacobowitz <drow@mvista.com>
13697
13698 * thread-db.c (attach_thread): Prototype.
13699 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13700 thread information (ti), and valid flags (th_valid, ti_valid).
13701 (attach_thread): Move target_pid_to_str call to after the thread
13702 is added to GDB's list. Initialize the cache.
13703 (thread_get_info_callback, thread_db_map_id2thr)
13704 (thread_db_get_info): New functions.
13705 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13706 (thread_db_store_registers, thread_db_thread_alive)
13707 (thread_db_get_thread_local_address): Use them.
13708 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13709 of calling error() for threads in unknown state.
13710
13711 (clear_lwpid_callback): New function.
13712 (thread_db_resume): Use it to clear the cache.
13713
9fc30b6b
DJ
137142003-01-13 Daniel Jacobowitz <drow@mvista.com>
13715
13716 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13717 (resume_callback): Remove dead code.
13718
8f871025
AC
137192003-01-13 Andrew Cagney <ac131313@redhat.com>
13720
13721 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13722 predicate.
13723 * gdbarch.h, gdbarch.c: Regenerate.
13724 * stack.c (frame_info): Only initialize the saved registers when
13725 FRAME_INIT_SAVED_REGS_P.
13726 * frame.c (frame_saved_regs_register_unwind): Assert
13727 FRAME_INIT_SAVED_REGS_P.
13728 (deprecated_generic_get_saved_register): Ditto.
13729
3f565f1e
DJ
137302003-01-13 Daniel Jacobowitz <drow@mvista.com>
13731
13732 * source.c (openp): Squelch warning about "filename".
13733
072b1022
DJ
137342003-01-13 Daniel Jacobowitz <drow@mvista.com>
13735
13736 * source.c (openp): If the file does not exist don't necessarily
13737 search the path.
13738
973ccf8b
DJ
137392003-01-13 Daniel Jacobowitz <drow@mvista.com>
13740
13741 Fix PR gdb/872.
13742 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13743 (integer_types_same_name_p): New function.
13744 (rank_one_type): Use it.
13745 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13746
030292b7
DJ
137472003-01-13 Daniel Jacobowitz <drow@mvista.com>
13748
13749 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13750 variables.
13751 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13752 * configure.in: Add --with-sysroot.
13753 * configure: Regenerated.
13754 * main.c (gdb_sysroot): New variable.
13755 (captured_main): Initialize gdb_sysroot.
13756 * defs.h (gdb_sysroot): New extern declaration.
13757 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13758
afb5d334
MC
137592003-01-12 Michael Chastain <mec@shout.net>
13760
13761 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13762
751ceeb4
MC
137632003-01-12 Michael Chastain <mec@shout.net>
13764
13765 * top.c (print_gdb_version): Bump copyright year to 2003.
13766
94cd26f8
DC
137672003-01-12 David Carlton <carlton@bactrian.org>
13768
13769 * linespec.c (symtab_from_filename): Rename variable 's' to
13770 'file_symtab'.
13771
1ce79225
AC
137722003-01-12 Andrew Cagney <ac131313@redhat.com>
13773
13774 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13775 dummy frame.
13776 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13777
fa1fd571
AC
137782003-01-12 Andrew Cagney <ac131313@redhat.com>
13779
13780 * d10v-tdep.c: Include "gdb_assert.h".
13781 (d10v_store_return_value): Rewrite to match current interface.
13782 (d10v_extract_struct_value_address): Ditto.
13783 (d10v_extract_return_value): Ditto.
13784 (d10v_gdbarch_init): Set store_restore_value,
13785 extract_struct_value_address and extract_return_value.
13786
68b8d23e
JB
137872003-01-12 J. Brobecker <brobecker@gnat.com>
13788
13789 * hpread.c (set_namestring): New procedure replacing the
13790 SET_NAMESTRING macro.
13791 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13792 by calls to set_namestring.
13793
137942003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13795
13796 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13797 a compilation warning.
13798 (hpread_process_one_debug_symbol): Likewise.
13799
88d262ca
DC
138002003-01-10 David Carlton <carlton@math.stanford.edu>
13801
13802 * linespec.c (decode_line_1): Rename variable 's' to
13803 'file_symtab'.
13804 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13805 (decode_dollar): Ditto.
13806 (decode_variable): Ditto.
13807 (symbol_found): Ditto.
13808
86669319
MC
138092003-01-09 Michael Chastain <mec@shout.net>
13810
13811 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13812
616a9dc4
CV
138132003-01-07 Corinna Vinschen <vinschen@redhat.com>
13814
13815 * win32-nat.c (set_process_privilege): New function.
13816 (child_attach): Call set_process_privilege() to enable the
13817 SE_DEBUG_NAME user privilege if available in process token.
13818
3269bcfa
JB
138192003-01-10 J. Brobecker <brobecker@gnat.com>
13820
13821 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13822 compilation error in the previous revision.
13823
2b0ee454
DC
138242003-01-09 David Carlton <carlton@math.stanford.edu>
13825
13826 * linespec.c: Update copyright.
13827
b3ba1b44
DJ
138282003-01-09 Daniel Jacobowitz <drow@mvista.com>
13829
13830 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13831 than inferior_ptid.
13832 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13833
4ef3f3be
AC
138342003-01-09 Andrew Cagney <ac131313@redhat.com>
13835
479ab5a0
AC
13836 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13837 Update comments.
13838 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13839 (frame_saved_regs_zalloc): Update.
13840 (frame_saved_regs_register_unwind): Update.
13841 (create_new_frame): Update.
13842 (get_prev_frame): Update.
13843 (frame_extra_info_zalloc): Update.
13844 (deprecated_get_frame_saved_regs): Update.
13845 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13846 * cris-tdep.c: Update comment.
13847
bde58177
AC
13848 * somsolib.h: Fix function indentation.
13849 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13850 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13851 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13852 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13853 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13854
4ef3f3be
AC
13855 * infrun.c (follow_fork): Use ISO C definition.
13856 * expprint.c (print_subexp): Use xfree instead of free.
13857 * charset.c: Include "gdb_string.h" instead of <string.h>.
13858 (register_iconv_charsets): Use ISO C definition.
13859 (host_charset, target_charset): Ditto.
13860 * Makefile.in (charset.o): Update dependencies.
13861 (mi-cmd-env.o): Update dependencies.
13862
1c615f7a
AC
138632003-01-08 Andrew Cagney <cagney@redhat.com>
13864
13865 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13866 get_frame_base.
13867
c9a1dc08
AC
138682003-01-08 Andrew Cagney <ac131313@redhat.com>
13869
13870 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13871 build directories. Save edited gdb output in Mbuild.log. If a
13872 build fails, remove any final GDB executable.
13873
dbad9d94
AC
138742003-01-08 Andrew Cagney <ac131313@redhat.com>
13875
13876 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13877 replacing hex constants with function names and stripping leading
13878 file name directory prefixes.
13879
8d357cca
AC
138802003-01-08 Andrew Cagney <cagney@redhat.com>
13881
13882 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13883 get_frame_base.
13884
bca02a8a
DC
138852003-01-08 David Carlton <carlton@math.stanford.edu>
13886
13887 * linespec.c (decode_line_1): Move code into decode_variable.
13888 (decode_variable): New function.
13889
7f8ab3a0
AC
138902003-01-08 Andrew Cagney <ac131313@redhat.com>
13891
13892 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13893
7b5849cc
AC
138942003-01-08 Andrew Cagney <cagney@redhat.com>
13895
13896 * cris-tdep.c (cris_frame_init_saved_regs): Use
13897 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13898 saved_regs buffer.
13899 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13900 (sh64_nofp_frame_init_saved_regs): Ditto.
13901 (sh_fp_frame_init_saved_regs): Ditto.
13902 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13903 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13904 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13905 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13906
72a5efb3
DJ
139072003-01-08 Daniel Jacobowitz <drow@mvista.com>
13908
13909 * minsyms.c (lookup_minimal_symbol): Update comment.
13910 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13911 (lookup_minimal_symbol_solib_trampoline): Likewise.
13912
11c02a10
AC
139132003-01-08 Andrew Cagney <cagney@redhat.com>
13914
aab3ea25
AC
13915 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13916 frame_relative_level.
13917
da50a4b7
AC
13918 * alpha-tdep.c: Use get_frame_extra_info.
13919 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13920 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13921 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13922 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13923
11c02a10
AC
13924 * alpha-tdep.c: Use get_next_frame.
13925 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13926 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13927 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13928 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13929 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13930 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13931 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13932
1e2330ba
AC
139332003-01-07 Andrew Cagney <cagney@redhat.com>
13934
13935 * alpha-tdep.c: Use get_frame_base.
13936 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13937 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13938 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13939 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13940 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13941 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13942 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13943 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13944
2d75187b
AC
139452003-01-07 Andrew Cagney <cagney@redhat.com>
13946
13947 * frame.c (deprecated_get_frame_context): New function.
13948 (deprecated_set_frame_context): New function.
13949 * frame.h (deprecated_get_frame_context): Declare.
13950 (deprecated_set_frame_context): Declare.
13951 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13952 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13953
483d36b2
AC
139542003-01-07 Andrew Cagney <cagney@redhat.com>
13955
13956 * frame.c (deprecated_set_frame_next_hack): New function.
13957 (deprecated_set_frame_prev_hack): New function.
13958 * frame.h (deprecated_set_frame_next_hack): Declare.
13959 (deprecated_set_frame_prev_hack): Declare.
13960 * mcore-tdep.c (analyze_dummy_frame): Use
13961 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13962 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13963
14e91ac5
DC
139642003-01-07 David Carlton <carlton@math.stanford.edu>
13965
13966 * linespec.c (decode_line_1): Move code into decode_dollar.
13967 (decode_dollar): New function.
13968
b0c6b05c
AC
139692003-01-07 Andrew Cagney <cagney@redhat.com>
13970
13971 * arm-tdep.c (arm_init_extra_frame_info): Use
13972 deprecated_update_frame_base_hack.
13973 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13974 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13975 (fix_frame_pointer): Ditto.
13976 (mn10300_analyze_prologue): Ditto.
13977
a00a19e9
AC
139782003-01-07 Andrew Cagney <cagney@redhat.com>
13979
13980 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13981 extra_info using frame_extra_info_zalloc.
13982 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13983 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13984 (sh64_init_extra_frame_info): Ditto.
13985 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13986 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13987 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13988 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13989 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13990 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13991 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13992 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13993 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13994 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13995 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13996 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13997
13998 * mn10300-tdep.c (analyze_dummy_frame): Use
13999 deprecated_set_frame_extra_info_hack.
14000 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14001
1fb4c65b
JB
140022003-01-07 J. Brobecker <brobecker@gnat.com>
14003
14004 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14005 class is not scText. These do not define "real" procedures.
14006 (parse_partial_symbols): Likewise.
14007
9fe7d6bf
MS
140082003-01-06 Michael Snyder <msnyder@redhat.com>
14009
14010 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14011
f6c609c4
AC
140122003-01-06 Andrew Cagney <ac131313@redhat.com>
14013
14014 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14015 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14016 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14017 deprecated_frame_xmalloc_with_cleanup.
14018 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14019 deprecated_frame_xmalloc.
14020 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14021 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14022
d995ff4b
AC
140232003-01-06 Andrew Cagney <cagney@redhat.com>
14024
84dc46cb
AC
14025 * x86-64-linux-tdep.c: Include "osabi.h".
14026 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14027
d995ff4b
AC
14028 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14029
66140c26
AC
140302003-01-06 Andrew Cagney <cagney@redhat.com>
14031
14032 * MAINTAINERS (Target Instruction Set Architectures): Update
14033 arm-elf. Can be built with -Werror, has been multiarched.
14034
14035 * value.h (unpack_long): Make buffer parameter constant.
14036 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14037 * scm-lang.h (scm_parse): Ditto.
14038 * defs.h (extract_typed_address, extract_address): Ditto.
14039 (extract_long_unsigned_integer): Ditto.
14040 * inferior.h (unsigned_pointer_to_address): Ditto.
14041 (signed_pointer_to_address): Ditto.
14042 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14043 * gdbarch.h, gdbarch.c: Regenerate.
14044 * findvar.c (extract_long_unsigned_integer): Update.
14045 (extract_address): Update.
14046 (extract_typed_address): Update.
14047 (unsigned_pointer_to_address): Update.
14048 * values.c (unpack_long): Update.
14049 (unpack_double): Update.
14050 (unpack_pointer): Update.
14051 (unpack_field_as_long): Update.
14052 * d10v-tdep.c (d10v_pointer_to_address): Update.
14053 * avr-tdep.c (avr_pointer_to_address): Update.
14054 * scm-lang.c (scm_unpack): Update.
14055 * findvar.c (signed_pointer_to_address): Update.
14056
b089b3da
ML
140572003-01-06 Michal Ludvig <mludvig@suse.cz>
14058
8ffd9b1b 14059 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14060 since it is in i386-tdep.c.
14061
aff87235
JB
140622003-01-06 J. Brobecker <brobecker@gnat.com>
14063
14064 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14065 failure introduced in the previous change.
14066
34f5e845
MC
140672003-01-05 Michael Chastain <mec@shout.net>
14068
14069 * README: Remove references to deleted remote-*.c files:
14070 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14071 remote-nrom.c, remote-os9k.c, remote-udi.c.
14072
28bcfd30
MK
140732003-01-05 Mark Kettenis <kettenis@gnu.org>
14074
14075 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14076 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14077 i386_get_longjmp_target.
14078
15a5b3ee
AC
140792003-01-05 Andrew Cagney <ac131313@redhat.com>
14080
14081 * arm-tdep.c (prologue_cache): Change to a pointer.
14082 (_initialize_arm_tdep): Allocate prologue_cache.
14083 (check_prologue_cache): Update.
14084 (save_prologue_cache): Update.
14085 (arm_gdbarch_init): Update.
14086
c263362b
DJ
140872003-01-04 Daniel Jacobowitz <drow@mvista.com>
14088
14089 * stabsread.c (update_method_name_from_physname): Call complaint()
14090 instead of error.
14091
51603483
DJ
140922003-01-04 Daniel Jacobowitz <drow@mvista.com>
14093
14094 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14095 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14096 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14097
14098 * blockframe.c: Include "gdbcmd.h" and "command.h".
14099 (backtrace_below_main): New variable.
14100 (file_frame_chain_valid, func_frame_chain_valid)
14101 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14102 (generic_func_frame_chain_valid): Remove functions.
14103 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14104 (_initialize_blockframe): New function.
14105 * Makefile.in (blockframe.o): Update dependencies.
14106 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14107 comment. Call frame_chain_valid ().
14108 * frame.h: Remove old prototypes. Add prototype for
14109 frame_chain_valid and update comments to match.
14110 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14111 Remove old comment.
14112 * gdbarch.h: Regenerated.
14113 * gdbarch.c: Regenerated.
14114
14115 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14116 set_gdbarch_frame_chain_valid.
14117 * avr-tdep.c (avr_gdbarch_init): Likewise.
14118 * cris-tdep.c (cris_gdbarch_init): Likewise.
14119 * frv-tdep.c (frv_gdbarch_init): Likewise.
14120 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14121 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14122 (i386_nw_init_abi): Likewise.
14123 (i386_gdbarch_init): Likewise.
14124 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14126 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14127 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14128 * mips-tdep.c (mips_gdbarch_init): Likewise.
14129 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14130 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14131 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14132 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14133 * s390-tdep.c (s390_gdbarch_init): Likewise.
14134 * sh-tdep.c (sh_gdbarch_init): Likewise.
14135 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14136 * v850-tdep.c (v850_gdbarch_init): Likewise.
14137 * vax-tdep.c (vax_gdbarch_init): Likewise.
14138 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14139
14140 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14141 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14142 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14143 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14144 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14145 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14146 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14147 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14148
b00a8037
DJ
141492002-01-04 Daniel Jacobowitz <drow@mvista.com>
14150
14151 * Makefile.in (acconfig_h): Remove incorrect macro.
14152 (config_h): Define.
14153 (osabi.o): Update dependencies.
14154 * configure.tgt: Set gdb_osabi based on target triplet.
14155 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14156 * configure: Regenerated.
14157 * config.in: Regenerated.
14158 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14159 (GDB_OSABI_DEFAULT): Define if not already defined.
14160 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14161 (set_osabi_string): New variables.
14162 (gdbarch_register_osabi): Add new OS ABI to
14163 gdb_osabi_available_names.
14164 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14165 (set_osabi, show_osabi): New functions.
14166 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14167
4be87837
DJ
141682003-01-04 Daniel Jacobowitz <drow@mvista.com>
14169
14170 * arch-utils.c (gdbarch_info_init): Set osabi to
14171 GDB_OSABI_UNINITIALIZED.
14172 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14173 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14174 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14175 * gdbarch.c: Regenerated.
14176 * gdbarch.h: Regenerated.
14177 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14178 there's no BFD.
14179 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14180 * osabi.h (enum gdb_osabi): Move to defs.h.
14181 (gdbarch_init_osabi): Update prototype.
14182 * defs.h (enum gdb_osabi): Moved here.
14183 * Makefile.in: Update dependencies.
14184
14185 * alpha-tdep.h: Don't include "osabi.h".
14186 (struct gdbarch_tdep): Remove osabi member.
14187 * alpha-tdep.c: Include "osabi.h".
14188 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14189 iterate over arches. Update call to gdbarch_init_osabi.
14190 (alpha_dump_tdep): Don't dump osabi.
14191 * alpha-linux-tdep.c: Include "osabi.h".
14192 * alpha-osf1-tdep.c: Include "osabi.h".
14193 * alphafbsd-tdep.c: Include "osabi.h".
14194 * alphanbsd-tdep.c: Include "osabi.h".
14195
14196 * arm-tdep.h: Don't include "osabi.h".
14197 (struct gdbarch_tdep): Remove osabi member.
14198 * arm-tdep.c: Include "osabi.h".
14199 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14200 iterate over arches. Update call to gdbarch_init_osabi.
14201 (arm_dump_tdep): Don't dump osabi.
14202 * arm-linux-tdep.c: Include "osabi.h".
14203 * armnbsd-tdep.c: Include "osabi.h".
14204
14205 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14206 Update call to gdbarch_init_osabi.
14207
14208 * i386-tdep.h: Don't include "osabi.h".
14209 (struct gdbarch_tdep): Remove osabi member.
14210 * i386-tdep.c: Include "osabi.h".
14211 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14212 iterate over arches. Update call to gdbarch_init_osabi.
14213 (i386_dump_tdep): Don't dump osabi.
14214 * i386-linux-tdep.c: Include "osabi.h".
14215 * i386-sol2-tdep.c: Include "osabi.h".
14216 * i386bsd-tdep.c: Include "osabi.h".
14217 * i386gnu-tdep.c: Include "osabi.h".
14218 * i386ly-tdep.c: Include "osabi.h".
14219 * i386nbsd-tdep.c: Include "osabi.h".
14220 * i386obsd-tdep.c: Include "osabi.h".
14221
14222 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14223 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14224 check osabi when iterating over arches. Update call to
14225 gdbarch_init_osabi.
14226 (mips_dump_tdep): Don't dump osabi.
14227
14228 * ns32k-tdep.h: Don't include "osabi.h".
14229 (struct gdbarch_tdep): Remove.
14230 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14231 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14232 allocate tdep. Update call to gdbarch_init_osabi.
14233 (ns32k_dump_tdep): Remove.
14234 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14235 * ns32knbsd-tdep.c: Include "osabi.h".
14236
14237 * ppc-tdep.h: Don't include "osabi.h".
14238 (struct gdbarch_tdep): Remove osabi member.
14239 * rs6000-tdep.c: Include "osabi.h".
14240 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14241 osabi when iterating over arches. Update call to
14242 gdbarch_init_osabi.
14243 (rs6000_dump_tdep): Don't dump osabi.
14244 * ppc-linux-tdep.c: Include "osabi.h".
14245 * ppcnbsd-tdep.c: Include "osabi.h".
14246
14247 * sh-tdep.h: Don't include "osabi.h".
14248 (struct gdbarch_tdep): Remove osabi member.
14249 * sh-tdep.c: Include "osabi.h".
14250 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14251 iterate over arches. Update call to gdbarch_init_osabi.
14252 (sh_dump_tdep): Don't dump osabi.
14253 * shnbsd-tdep.c: Include "osabi.h".
14254
14255 * sparc-tdep.c: Include "osabi.h".
14256 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14257 iterate over arches. Update call to gdbarch_init_osabi.
14258 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14259 tdep structure.
14260
14261 * vax-tdep.h: Don't include "osabi.h".
14262 (struct gdbarch_tdep): Remove.
14263 * vax-tdep.c: Include "osabi.h".
14264 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14265 iterate over arches. Don't allocate tdep. Update call
14266 to gdbarch_init_osabi.
14267 (vax_dump_tdep): Remove.
14268 (_initialize_vax_tdep): Update call to gdbarch_register.
14269
a881cf8e
DJ
142702003-01-04 Daniel Jacobowitz <drow@mvista.com>
14271
14272 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14273 entirely.
14274 (breakpoint_re_set_one): Don't fetch the value for a disabled
14275 watchpoint.
14276
1e698235
DJ
142772003-01-04 Daniel Jacobowitz <drow@mvista.com>
14278
14279 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14280 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14281 (COERCE_FLOAT_TO_DOUBLE): Remove.
14282 * gdbarch.c: Regenerate.
14283 * gdbarch.h: Regenerate.
14284 * Makefile.in: Remove value_h from gdbarch_h.
14285 * valops.c (coerce_float_to_double): New variable.
14286 (default_coerce_float_to_double): Remove.
14287 (standard_coerce_float_to_double): Remove.
14288 (value_arg_coerce): Use coerce_float_to_double.
14289 (_initialize_valops): Add "set coerce-float-to-double".
14290 * value.h (default_coerce_float_to_double): Remove prototype.
14291 (standard_coerce_float_to_double): Remove prototype.
14292
14293 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14294 prototyped.
14295 * mdebugread.c (parse_symbol): Likewise.
14296 * stabsread.c (define_symbol): Mark all functions as prototyped.
14297
14298 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14299 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14300 set_gdbarch_coerce_float_to_double.
14301 * arm-tdep.c (arm_gdbarch_init): Likewise.
14302 * frv-tdep.c (frv_gdbarch_init): Likewise.
14303 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14304 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14305 * mips-tdep.c (mips_gdbarch_init): Likewise.
14306 (mips_coerce_float_to_double): Remove.
14307 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14308 (rs6000_coerce_float_to_double): Remove.
14309 * s390-tdep.c (s390_gdbarch_init): Likewise.
14310 * sh-tdep.c (sh_gdbarch_init): Likewise.
14311 (sh_coerce_float_to_double): Remove.
14312 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14313 (sparc_coerce_float_to_double): Remove.
14314 * v850-tdep.c (v850_gdbarch_init): Likewise.
14315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14316 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14317 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14318 (hppa_coerce_float_to_double): Remove prototype.
14319 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14320
f436a26a
DJ
143212003-01-04 Daniel Jacobowitz <drow@mvista.com>
14322
14323 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14324
248f8055
DJ
143252003-01-04 Daniel Jacobowitz <drow@mvista.com>
14326
14327 Suggested by Stewart Brown <sb24@avaya.com>:
14328 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14329 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14330 (c_type_print_varspec_suffix): Likewise.
14331
72cfdc76
MK
143322003-01-04 Mark Kettenis <kettenis@gnu.org>
14333
bfd260bb
MK
14334 * configure.in: Don't set and AC_SUBST SUBDIRS.
14335 * configure: Regenerated.
14336
72cfdc76
MK
14337 * configure.in: Remove code dealing with shared libraries.
14338 * Makefile.in: Remove HLDFLAGS and HLDENV.
14339 * configure: Regenerated.
14340
c8b8a898
AC
143412003-01-04 Andrew Cagney <ac131313@redhat.com>
14342
14343 * frame.c (deprecated_frame_xmalloc): New function.
14344 (deprecated_set_frame_saved_regs_hack): New function.
14345 (deprecated_set_frame_extra_info_hack): New function.
14346 * frame.h (deprecated_frame_xmalloc): Declare.
14347 (deprecated_set_frame_saved_regs_hack): Declare.
14348 (deprecated_set_frame_extra_info_hack): Declare.
14349
14abd0fb
MK
143502003-01-04 Mark Kettenis <kettenis@gnu.org>
14351
8ee53726
MK
14352 * configure.in: Move code that provides the --enable-gdbtk option
14353 right after the code that handles the --enable-tui option, and
14354 polish it somewhat.
14355 * configure: Regenerated.
14356
14abd0fb
MK
14357 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14358 AC_CHECK_FUNCS and remove the old check for pread64.
14359 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14360 * acconfig.h (_GNU_SOURCE): Add.
14361 (HAVE_PREAD64): Remove.
14362 * configure, aclocal.m4, config.in: Regenerated.
14363
b2fb4676
AC
143642003-01-03 Andrew Cagney <ac131313@redhat.com>
14365
14366 * alpha-tdep.c: Use get_frame_saved_regs.
14367 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14368 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14369 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14370 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14371 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14372
8dcde887
MK
143732003-01-03 Mark Kettenis <kettenis@gnu.org>
14374
14375 * configure.in: Remove all use of the SUBDIRS variable; add
14376 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14377 code providing the --enable-multi-ice option, and move it right in
14378 front of the code that checks whether gdbserver is supported.
14379 Polish that too.
14380 * configure: Regenerated.
14381 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14382 @SUBDIRS@.
14383
8ccd593b
AC
143842003-01-03 Andrew Cagney <cagney@redhat.com>
14385
14386 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14387 * avr-tdep.c, cris-tdep.c: Ditto.
14388 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14389 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14390
91151a06
MK
143912003-01-03 Mark Kettenis <kettenis@gnu.org>
14392
14393 * configure.in: Remove --enable-netrom option.
14394 * configure: Regenerated.
14395
8fe84d01
MK
143962003-01-03 Mark Kettenis <kettenis@gnu.org>
14397
14398 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14399 declaration for `struct re_pattern_buffer' instead.
14400 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14401
f0394be6
JB
144022003-01-03 J. Brobecker <brobecker@gnat.com>
14403
14404 * mdebugread.c (parse_symbol): Count until the stEnd matching
14405 the structure name.
14406
27e9bf90
MK
144072003-01-02 Mark Kettenis <kettenis@gnu.org>
14408
93d331ba
MK
14409 * configure.in: Remove --with-cpu option.
14410 subscripts. Remove evil changequotes here.
14411 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14412 * config.in, configure: Regenerated.
8ffd9b1b 14413
27e9bf90
MK
14414 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14415 * configure.in: Cleanup section that sources GDB and BFD configure
14416 subscripts. Remove evil changequotes here.
14417 * config.in, configure: Regenerated.
14418
50abf9e5
AC
144192003-01-02 Andrew Cagney <ac131313@redhat.com>
14420
14421 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14422 frame accessor methods.
14423 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14424 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14425 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14426 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14427 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14428 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14429 * z8k-tdep.c: Ditto.
8ffd9b1b 14430
287c1a40
MK
144312003-01-02 Mark Kettenis <kettenis@gnu.org>
14432
f5dbc56d
MK
14433 * configure.in: Remove UI_OUT configuration code.
14434 * ada-lang.c: Update assuming UI_OUT is always true.
14435 * Makefile.in (UIOUT_CFLAGS): Remove.
14436 * configure: Regenerated.
14437 * TODO: Remove blurb about elimination of -DUI_OUT.
14438
627af7ea
MK
14439 * configure.in: Move code that provides the --enable-gdbcli,
14440 --enable-gdbmi options right before the code that handles the
14441 --enable-tui option. Polish a bit.
14442 * configure: Regenerated.
14443
06825bd1
MK
14444 * configure.in: Rewrite check for GNU regex and the
14445 --without-included regex option, and move it into the "Checks for
14446 library functions" section. This makes us use the system regex
14447 again by default on systems with version 2 of the GNU C library.
14448 This was apparently broken.
14449 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14450 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14451 * config.in, configure: Regenerated.
14452
287c1a40
MK
14453 * configure.in: Move code that provides the --enable-tui option
14454 before the "Checks for libraries" section. Polish the code
14455 somewhat and set need_curses to yes if we build the TUI. Rewrite
14456 code that looks for a library providing termcap functionality to
14457 match more closely what's done in the Readline library, and move
14458 it into to the "Checks for libraries" section.
14459 * configure: Regenerated.
14460 * Makefile.in (TERMCAP): Remove variable.
14461 * config/i386/go32.mh (TERMCAP): Remove variable.
14462
684e56bf
AC
144632003-01-02 Andrew Cagney <ac131313@redhat.com>
14464
14465 * MAINTAINERS: Mention gdb_mbuild.sh.
14466 * gdb_mbuild.sh: Rewrite.
14467
e1ea1d75
MK
144682003-01-02 Mark Kettenis <kettenis@gnu.org>
14469
14470 * configure.in: Fix typo in last change.
14471 * config.in, configure: Regenerated.
14472
1b831c93
AC
144732003-01-02 Andrew Cagney <ac131313@redhat.com>
14474
14475 * valarith.c (value_binop): Delete obsolete code and comments.
14476 * configure.host: Ditto.
14477 * buildsym.h (make_blockvector): Ditto.
14478 * buildsym.c (make_blockvector): Ditto.
14479 * defs.h (enum language): Ditto.
14480 (chill_demangle): Ditto.
14481 * elfread.c (elf_symtab_read): Ditto.
14482 * dwarfread.c (CHILL_PRODUCER): Ditto.
14483 (set_cu_language): Ditto.
14484 (handle_producer): Ditto.
14485 * expprint.c (print_subexp): Ditto.
14486 * gdbtypes.c (chill_varying_type): Ditto.
14487 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14488 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14489 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14490 (chill_varying_type): Ditto.
14491 * language.h (_LANG_chill): Ditto.
14492 * language.c (binop_result_type, integral_type): Ditto.
14493 (character_type, string_type, structured_type): Ditto.
14494 (lang_bool_type, binop_type_check): Ditto.
14495 * stabsread.h (os9k_stabs): Ditto.
14496 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14497 (define_symbol, read_type, read_struct_fields): Ditto.
14498 (read_array_type, read_enum_type, read_huge_number): Ditto.
14499 (read_range_type, start_stabs): Ditto.
14500 * symfile.c (init_filename_language_table): Ditto.
14501 (add_psymbol_with_dem_name_to_list): Ditto.
14502 * symtab.c (symbol_init_language_specific): Ditto.
14503 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14504 * symtab.h (struct general_symbol_info): Ditto.
14505 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14506 * typeprint.c (typedef_print): Ditto.
14507 * utils.c (fprintf_symbol_filtered): Ditto.
14508 * valops.c (value_cast, search_struct_field, value_slice): Delete
14509 obsolete code.
14510 (varying_to_slice): Delete function.
14511 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14512 (varying_to_slice): Delete declaration.
14513 * MAINTAINERS: Update.
14514
8bb2c122
MK
145152003-01-02 Mark Kettenis <kettenis@gnu.org>
14516
97bf5e38
MK
14517 * configure.in: Reorganize "Checks for library functions section"
14518 a bit. Remove check for `btowc' and `isascii' functions.
14519 * configure: Regenerated.
14520
5ee754fc
MK
14521 * acconfig.h (_MSE_INT_H): Remove.
14522 * configure.in: Create "Checks for header files" section, and move
14523 appropriate tests there. Don't check for objlist.h, wchar.h,
14524 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14525 misdetection fix. Also add "Checks for types", "Checks for
14526 compiler characteristics" and "Checks for library functions"
14527 sections.
14528 * config.in, configure: Regenerated.
14529
8bb2c122
MK
14530 * configure.in: Create "Checks for programs" section, and move
14531 appropriate tests there.
14532
9a156167
MK
145332003-01-01 Mark Kettenis <kettenis@gnu.org>
14534
14535 * configure.in: Create "Checks for libraries" section, and move
14536 appropriate tests there. Cleanup check for wctype in libw. Use
14537 AC_SEARCH_LIBS to see whether we need libsocket.
14538 * configure: Regenerated.
14539
a80e2bcb 14540For older changes see ChangeLog-2002
c906108c
SS
14541\f
14542Local Variables:
14543mode: change-log
14544left-margin: 8
14545fill-column: 74
14546version-control: never
14547End:
This page took 1.104875 seconds and 4 git commands to generate.