]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2003-11-15 Andrew Cagney <cagney@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3a16a68c
AC
12003-11-15 Andrew Cagney <cagney@redhat.com>
2
3 * bcache.h (deprecated_bcache): Declare.
4 (bcache): Make returned buffer constant.
5 * bcache.c (deprecated_bcache): New function.
6 (bcache_data): New function.
7 (bcache): Call bcache data.
8 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
9 (add_psymbol_with_dem_name_to_list): Ditto.
10
bb41a796
MK
112003-11-15 Mark Kettenis <kettenis@gnu.org>
12
13 * glibc-tdep.h (struct gdbarch): Declare opaque.
14 (glibc_skip_solib_resolver): Adjust prototype.
15 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
16 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
17 (arm_linux_init_abi): Set skip_solib_resolver.
18 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
19 (i386_linux_init_abi): Set skip_solib_resolver.
20 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
21 (arm_linux_skip_solib_resolver): Remove prototype.
22 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
23 (i386_linux_skip_solib_resolver): Remove prototype.
24
4c8c40e6
MK
252003-11-14 Mark Kettenis <kettenis@gnu.org>
26
27 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
28 function.
29 * gdbarch.c, gdbarch.h: Regenerate.
30 * infrun.c (handle_inferior_event): Call
31 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
32 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
33 definition.
34 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
35 prototype.
36
0e5d83e3
JJ
372003-11-14 Jeff Johnston <jjohnstn@redhat.com>
38
39 * libunwind-frame.c: New file.
40 * libunwind-frame.h: New file.
41 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
42 * configure.in: Add --with-libunwind option support. Define
43 HAVE_LIBUNWIND if libunwind support selected / defaulted.
44 Also check for libunwind.h and libunwind-ia64.h headers.
45 * configure: Regenerated.
46 * Makefile.in: Add support for libunwind-frame.o.
47 * config.in: Regenerated.
48
287a334e
JJ
492003-11-14 Jeff Johnston <jjohnstn@redhat.com>
50
51 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
52 set up the ia64 linux native target method for getting the kernel
53 unwind table.
54 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
55 * inftarg.c (child_xfer_partial): Enable section of code to
56 handle TARGET_OBJECT_UNWIND_TABLE.
57 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
58
140be7b8
ILT
592003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
60
61 * config/arm/nbsd.mt (TM_FILE): Define.
62 * config/arm/tm-nbsd.h: New file.
63
0a90bcdd
AC
642003-11-14 Andrew Cagney <cagney@redhat.com>
65
66 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
67 * ppc-sysv-tdep.c: Include "objfiles.h".
68 (ppc64_sysv_abi_push_dummy_call): Provide the
69 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
70
71 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
72 "name_of_malloc" to ".malloc".
73
087f1027
MK
742003-11-13 Mark Kettenis <kettenis@gnu.org>
75
76 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
77
3882f37a
DC
782003-11-13 David Carlton <carlton@kealia.com>
79
80 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
81
a8cf2722
AC
822003-11-13 Andrew Cagney <cagney@redhat.com>
83
84 * arch-utils.h (selected_architecture_name): Declare.
85 (selected_byte_order): Declare.
86 * arch-utils.c (selected_byte_order): New function.
87 (selected_architecture_name): New function.
88 (target_architecture_auto): Make static.
89 (set_architecture_string): Make static.
90 (target_byte_order): Make static.
91 (target_byte_order_auto): Make static.
92 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
93 non-multi-arch definition.
94 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
95 (target_byte_order, target_architecture): Delete declaration.
96 (target_byte_order_auto, target_architecture_auto): Ditto.
97 * gdbarch.h: Re-generate.
98 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
99 "selected_byte_order".
100
475b6ddd
AC
1012003-11-13 Andrew Cagney <cagney@redhat.com>
102
103 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
104
a22286a9
JB
1052003-11-13 Jim Blandy <jimb@redhat.com>
106
107 * cp-namespace.c: Doc fix.
108
7bb11558
MS
1092003-11-12 Michael Snyder <msnyder@redhat.com>
110
39add00a
MS
111 * sh64_tdep.c: Regularize some names.
112 (sh_sh64_register_name): Rename to sh64_register_name.
113 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
114 (sh_sh64_register_byte): Rename to sh64_register_byte.
115 (sh_sh64_build_float_register_type):
116 Rename to sh64_build_float_register_type.
117 (sh_sh64_register_convert_to_virtual):
118 Rename to sh64_register_convert_to_virtual.
119 (sh_sh64_register_convert_to_raw):
120 Rename to sh64_register_convert_to_raw.
121
2a314ed5
MS
122 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
123 sh64_media_reg_base_num, sh64_compact_reg_base_num,
124 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
125 sh64_extract_return_value, sh64_show_media_regs,
126 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
127 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
128 sh64_pseudo_register_read, sh64_pseudo_register_write,
129 sh64_do_pseudo_register, sh_compact_print_registers_info):
130 Delete unused variable 'tdep'.
131
7bb11558
MS
132 * sh64-tdep.c: Coding standard and spelling comment fixes.
133 (sh64_extract_return_value): Replace deprecated_store_floating
134 with store_typed_floating.
135 (sh_sh64_register_convert_to_raw): Replace
136 deprecated_store_floating with store_typed_floating.
137 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
138 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
139 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
140 sh64_extract_struct_value_address, sh64_pop_frame,
141 sh64_extract_return_value, sh64_store_return_value,
142 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
143 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
144 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
145 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
146 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
147 deprecated_register_virtual_type, deprecated_register_raw_size,
148 deprecated_max_register_raw_size, or
149 deprecated_max_register_virtual_size. Instead, just set
150 gdbarch_register_type.
39add00a
MS
151 (sh_sh64_register_raw_size): Delete.
152 (sh_sh64_register_virtual_size): Delete.
7bb11558 153
e7c27a73
DJ
1542003-11-12 Daniel Jacobowitz <drow@mvista.com>
155
156 * dwarf2read.c (struct dwarf2_cu): New type.
157
158 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
159 dwarf2_cu structure to pass down.
160
161 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
162 (add_partial_enumeration, locate_pdi_sibling, process_die)
163 (read_file_scope, read_func_scope)
164 (read_lexical_block_scope, dwarf2_get_pc_bounds)
165 (dwarf2_add_field, dwarf2_attach_fields_to_type)
166 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
167 (read_structure_scope, read_enumeration, read_array_type)
168 (read_common_block, read_namespace, read_tag_pointer_type)
169 (read_tag_ptr_to_member_type, read_tag_reference_type)
170 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
171 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
172 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
173 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
174 (read_full_die. read_attribute_value, read_attribute)
175 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
176 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
177 (die_containing_type, type_at_offset, tag_type_to_type)
178 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
179 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
180
1640b821
DJ
1812003-11-12 Daniel Jacobowitz <drow@mvista.com>
182
183 PR breakpoints/1450
184 * breakpoint.c (insert_bp_location): Fix a logic error by returning
185 0 after a catchpoint fails.
186
d7891507
MC
1872003-11-11 Michael Chastain <mec.gnu@mindspring.com>
188
189 * mips-tdep.c (msymbol_size): Delete.
190
f594e5e9
MC
1912003-11-07 Michael Chastain <mec@shout.net>
192
193 * symtab.h (struct minimal_symbol): Add size.
194 * dbxread.c: Use it.
195 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
196 Rename to record_minimal_symbol.
197 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
198 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
199 (install_minimal_symbols): Ditto.
200 * objfiles.c (terminate_minimal_symbol_table): Ditto.
201 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
202 * m68hc11-tdep.c: Ditto.
203 * mips-tdep.c: Ditto.
204 * sh64-tdep.c: Ditto.
205
68e39e73
MC
2062003-11-10 Michael Chastain <mec.gnu@mindspring.com>
207
208 * MAINTAINERS: Change my e-mail address.
209
b60eb90d
AC
2102003-11-10 Andrew Cagney <cagney@redhat.com>
211
963e2bb7
AC
212 * gdbarch.sh (return_value): Replace "inval" and "outval" with
213 "readbuf" and "writebuf".
214 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
215 * d10v-tdep.c (d10v_return_value): Ditto.
216 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
217 (ppc_sysv_abi_broken_return_value): Ditto.
218 (ppc64_sysv_abi_return_value): Ditto.
219 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
220 (ppc_sysv_abi_return_value): Ditto.
221 (ppc_sysv_abi_broken_return_value): Ditto.
222 (ppc64_sysv_abi_return_value): Ditto.
223 * values.c (register_value_being_returned): Update call.
224 * stack.c (return_command): Update call.
225 * gdbarch.h, gdbarch.c: Re-generate.
226
8aa91c1e
AC
227 * target.h (struct target_ops): Order xfer buffer parameters "read
228 write" not "write read".
229 * bfd-target.c (target_bfd_xfer_partial): Update.
230 * remote.c (remote_xfer_partial): Update.
231 * inftarg.c (child_xfer_partial): Update.
232 * target.c (default_xfer_partial): Update.
233 (target_read_partial, target_write_partial): Update.
234 (debug_to_xfer_partial): Update.
235
100bcc3f
AC
236 * arch-utils.h, arch-utils.c: Fix typo in comment.
237
b60eb90d
AC
238 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
239 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
240 (set_gdbarch_from_file): Call
241 "deprecated_current_gdbarch_select_hack".
b60eb90d 242
bf922ad9
AC
2432003-11-09 Andrew Cagney <cagney@redhat.com>
244
ebdba546
AC
245 * arch-utils.c (gdbarch_update_p): New function.
246 * gdbarch.sh (gdbarch_update_p): Delete function.
247 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 248 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
249 * gdbarch.c: Re-generate.
250
7de2341d
AC
251 * gdbarch.sh (clear_gdbarch_swap): Delete function.
252 (swapout_gdbarch_swap): Delete function.
253 (swapin_gdbarch_swap): Delete function.
254 (init_gdbarch_swap): Delete function.
255 (initialize_non_multiarch): Delete function.
256 (current_gdbarch_swap_in_hack): New function.
257 (current_gdbarch_swap_out_hack): New function.
258 (current_gdbarch_swap_init_hack): New function.
259 * gdbarch.c: Re-generate.
260
db446970
AC
261 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
262 parameter to "current_gdbarch". Add comment explaining why.
263 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
264 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
265 * gdbarch.c: Re-generate.
266
341e3d11
AC
267 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
268 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
269 * config/s390/xm-linux.h: Delete file.
270 * config/m88k/xm-delta88v4.h: Delete stray.
271
bf922ad9
AC
272 * Makefile.in (arch-utils.o): Update dependencies.
273 * arch-utils.c: Include "osabi.h".
274 (gdbarch_info_fill): New function.
275 * arch-utils.h (gdbarch_info_fill): Declare.
276 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
277 * gdbarch.c: Re-generate.
278
a3640c75
MK
2792003-11-09 Mark Kettenis <kettenis@gnu.org>
280 David S. Miller <davem@redhat.com>
281
282 * glibc-tdep.c, glibc-tdep.h: New files.
283 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
284 * config/i386/linux.mt (TDEPFILES): Likewise.
285 * i386-linux-tdep.c (glibc-tdep.h): Include.
286 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
287 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
288 * arm-linux-tdep.c (glibc-tdep.h): Include.
289 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
290 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
291 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
292 (glibc_tdep_h): Define.
293 (glibc-tdep.o): Add dependencies.
294 (arm-linux-tdep.o): Update dependencies.
295 (i386-linux-tdep.o): Likewise.
296
e60e0ab2
AC
2972003-11-09 Andrew Cagney <cagney@redhat.com>
298
299 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
300 * config/mips/nm-irix6.h: Delete file.
301 * config/mips/nm-linux.h: Update copyright.
302 (MIPS_GNULINUX_TARGET): Delete macro.
303 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
304 * config/mips/xm-irix6.h: Delete file.
305 * config/mips/linux.mh (XM_FILE): Delete definition.
306 * config/mips/xm-linux.h: Delete file.
307
181555e9
AC
3082003-11-09 Andrew Cagney <cagney@redhat.com>
309
310 * d10v-tdep.c (d10v_return_value): New function.
311 (d10v_use_struct_convention): Delete function.
312 (d10v_store_return_value): Delete function.
313 (d10v_extract_struct_value_address): Delete function.
314 (d10v_gdbarch_init): Set "return_value" instead of
315 "extract_return_value", "store_return_value",
316 "extract_struct_value_address", and "use_struct_convention".
317 (RET1_REGNUM): Delete const.
318
dea0c52f
MK
3192003-11-09 Mark Kettenis <kettenis@gnu.org>
320
321 From David S. Miller <davem@redhat.com>:
322 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
323 * gdbarch.c, gdbarch.h: Regenerated.
324 * arch-utils.c (generic_skip_solib_resolver): New function.
325 * arch-utils.h (generic_skip_solib_resolver): New prototype.
326 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
327
6314a349
AC
3282003-11-07 Andrew Cagney <cagney@redhat.com>
329
330 * top.c (print_gdb_version): Replace STREQ with strcmp.
331 * valops.c (value_struct_elt_for_reference): Ditto.
332 (value_struct_elt_for_reference): Ditto.
333 * symtab.c (gdb_mangle_name): Ditto.
334 (find_line_symtab): Ditto.
335 * symmisc.c (maintenance_print_symbols): Ditto.
336 * symfile.c (symbol_file_command): Ditto.
337 * stabsread.c (define_symbol, read_type): Ditto.
338 (cleanup_undefined_types, scan_file_globals): Ditto.
339 * solib.c (solib_map_sections): Ditto.
340 * solib-svr4.c (bfd_lookup_symbol): Ditto.
341 * rs6000-tdep.c (skip_prologue): Ditto.
342 * p-valprint.c (pascal_value_print): Ditto.
343 (pascal_object_is_vtbl_ptr_type): Ditto.
344 * objfiles.c (in_plt_section): Ditto.
345 * minsyms.c (lookup_minimal_symbol): Ditto.
346 (compact_minimal_symbols): Ditto.
347 (find_solib_trampoline_target): Ditto.
348 * mdebugread.c (parse_type): Ditto.
349 * language.c (set_language_command): Ditto.
350 (set_type_command, set_range_command): Ditto.
351 * f-lang.c (add_common_block): Ditto.
352 (add_common_block): Ditto.
353 (find_first_common_named): Ditto.
354 (patch_all_commons_by_name): Ditto.
355 * elfread.c (elf_locate_sections): Ditto.
356 (elf_locate_sections): Ditto.
357 (elfstab_offset_sections): Ditto.
358 * dwarf2read.c (dwarf2_locate_sections): Ditto.
359 * dbxread.c (add_old_header_file): Ditto.
360 (find_corresponding_bincl_psymtab): Ditto.
361 (read_dbx_symtab, process_one_symbol): Ditto.
362 * coffread.c (patch_opaque_types): Ditto.
363 * cli/cli-decode.c (delete_cmd): Ditto.
364 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
365 * c-typeprint.c (c_type_print_base): Ditto.
366 * breakpoint.c (bpstat_stop_status): Ditto.
367 (clear_command, breakpoint_re_set_one): Ditto.
368
49df298f
AC
3692003-11-07 Andrew Cagney <cagney@redhat.com>
370
371 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
372 * bcache.c (struct bstring): Make "length" an unsigned short, add
373 "half_hash".
374 (struct bcache): Add "half_hash_error_count".
375 (bcache): Compute and save the "half_hash". Compare the
376 "half_hash" before comparing the length. Update
377 half_hash_error_count.
378
f168dd80
AC
3792003-11-07 Andrew Cagney <cagney@redhat.com>
380
381 * inftarg.c (child_xfer_partial): New function
382 (init_child_ops): Set "to_xfer_partial".
383
05580c65
AC
3842003-11-07 Andrew Cagney <cagney@redhat.com>
385
386 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
387 set "return_value" instead of "use_struct_convention".
388 (ppc_linux_use_struct_convention): Delete function.
389 (ppc_linux_return_value): New function.
390 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
391 (ppc_sysv_abi_broken_return_value): New function.
392 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
393 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
394 static.
395 (ppc_sysv_abi_extract_return_value): Delete function.
396 (ppc_sysv_abi_broken_extract_return_value): Delete function.
397 (ppc_sysv_abi_store_return_value): Delete function.
398 (ppc_sysv_abi_broken_store_return_value): Delete function.
399 (ppc_sysv_abi_use_struct_convention): Delete function.
400 (ppc64_sysv_abi_use_struct_convention): Delete function.
401 (ppc64_sysv_abi_extract_return_value): Delete function.
402 (ppc64_sysv_abi_store_return_value): Delete function.
403 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
404 (ppcnbsd_init_abi): Set "return_value", instead of
405 "use_struct_convention", "extract_return_value", and
406 "store_return_value".
407 (ppcnbsd_use_struct_convention): Delete function.
408 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
409 (ppc_sysv_abi_return_value): Declare.
410 (ppc_sysv_abi_broken_return_value): Declare.
411 (ppc_sysv_abi_use_struct_convention): Delete.
412 (ppc_sysv_abi_store_return_value): Delete.
413 (ppc_sysv_abi_extract_return_value): Delete.
414 (ppc_sysv_abi_broken_store_return_value): Delete.
415 (ppc_sysv_abi_broken_extract_return_value): Delete.
416 (ppc64_sysv_abi_use_struct_convention): Delete.
417 (ppc64_sysv_abi_extract_return_value): Delete.
418 (ppc64_sysv_abi_store_return_value): Delete.
419 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
420 set "return_value" instead of "extract_return_value",
421 "store_return_value", and "use_struct_convention".
422
1763fba4
MK
4232003-11-07 Mark Kettenis <kettenis@gnu.org>
424
22c7ba1a
MK
425 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
426
1763fba4
MK
427 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
428 fscanf.
429
fc07cc2d
MK
4302003-11-07 Mark Kettenis <kettenis@gnu.org>
431
432 * fbsd-proc.c: Fix formatting.
433
6a748db6
KB
4342003-11-06 Kevin Buettner <kevinb@redhat.com>
435
436 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
437 Define.
438 (new_variant): Set name for iacc0_regnum.
439 (frv_register_name): Accommodate pseudo-registers.
440 (frv_register_type): Add case for iacc0_regnum.
441 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
442 (frv_gdbarch_init): Set number of pseudo registers. Establish
443 pseudo-register read/write methods.
444
bf896cb0
AC
4452003-11-06 Andrew Cagney <cagney@redhat.com>
446
447 * valops.c (destructor_name_p): Replace STREQN with strncmp.
448 * top.c (command_line_input): Ditto.
449 * objc-exp.y (yylex): Ditto.
450 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
451 * jv-exp.y (yylex): Ditto.
452 * f-exp.y (yylex): Ditto.
453 * event-top.c (command_line_handler): Ditto.
454 * environ.c (get_in_environ): Ditto.
455 (set_in_environ): Ditto.
456 * dwarfread.c (handle_producer): Ditto.
457 * dbxread.c (process_one_symbol): Ditto.
458 * c-typeprint.c (c_type_print_base): Ditto.
459 * c-exp.y (yylex): Ditto.
460
0b603eba
AC
4612003-11-06 Andrew Cagney <cagney@redhat.com>
462 Jeff Johnston <jjohnstn@redhat.com>
463
464 * target.c (add_target): Only set "to_xfer_partial" when NULL.
465 (init_dummy_target): Set "to_xfer_partial".
466
9cedbfec
AC
4672003-11-06 Andrew Cagney <cagney@redhat.com>
468
469 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
470 REGISTER_CONVENTION.
471
26bb91f3
DJ
4722003-11-06 Daniel Jacobowitz <drow@mvista.com>
473
474 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
475 static.
476
0bde7532
DJ
4772003-11-06 Daniel Jacobowitz <drow@mvista.com>
478
479 * breakpoint.c (remove_breakpoint): Take an bp_location
480 instead of a breakpoint argument. Check the bp_location's type.
481 Fix a reversed condition for hardware breakpoints.
482
483 (insert_bp_location): Update call to remove_breakpoint.
484 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
485 (remove_hw_watchpoints): Likewise.
486 (reattach_breakpoints): Likewise.
487 (detach_breakpoints): Likewise.
488 (delete_breakpoint): Likewise.
489
075f6582
DJ
4902003-11-06 Daniel Jacobowitz <drow@mvista.com>
491
492 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
493 (beakpoint_init_inferior): Likewise.
494 (breakpoint_here_p): Likewise. Only check addresses for software
495 or hardware breakpoints.
496 (breakpoint_inserted_here_p): Likewise.
497 (breakpoint_thread_match): Likewise. Correct comment.
498 (bpstat_have_active_hw_watchpoints): Likewise.
499 (check_duplicates): Likewise.
500
879bfdc2
DJ
5012003-11-06 Daniel Jacobowitz <drow@mvista.com>
502
503 * breakpoints.c (insert_bp_location): New function, broken out
504 from insert_breakpoints. Work on an bp_location instead of a
505 breakpoint.
506 (insert_breakpoints): Use it.
507
cf3a9e5b
DJ
5082003-11-06 Daniel Jacobowitz <drow@mvista.com>
509
510 * breakpoint.h (struct bp_location): Add section.
511 (struct breakpoint): Remove section.
512 * breakpoint.c (insert_breakpoints, remove_breakpoint)
513 (breakpoint_here_p, breakpoint_inserted_here_p)
514 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
515 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
516 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
517 section through loc.
518
ffce0d52
DJ
5192003-11-06 Daniel Jacobowitz <drow@mvista.com>
520
521 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
522 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
523
e049a4b5
DJ
5242003-11-06 Daniel Jacobowitz <drow@mvista.com>
525
526 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
527 arguments. Initialize owner and type for the new breakpoint
528 location item.
529 (set_raw_breakpoint): Update call to allocate_bp_location.
530
7cc221ef
DJ
5312003-11-06 Daniel Jacobowitz <drow@mvista.com>
532
533 * breakpoint.h (struct bp_location): Add a chain pointer.
534 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
535 macros.
536 (bp_location_chain): New variable.
537 (allocate_bp_location): New function.
538 (set_raw_breakpoint): Use it.
539 (delete_breakpoint): Remove ->loc from the bp_location_chain.
540
5cab636d
DJ
5412003-11-06 Daniel Jacobowitz <drow@mvista.com>
542
543 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
544 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 545 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
546 * breakpoint.c (condition_command, read_memory_nobpt)
547 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
548 (reattach_breakpoints, update_breakpoints_after_exec)
549 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
550 (breakpoint_init_inferior, breakpoint_here_p)
551 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
552 (breakpoint_thread_match, bpstat_stop_status)
553 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
554 (describe_other_breakpoints, check_duplicates)
555 (make_breakpoint_permanent, create_thread_event_breakpoint)
556 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
557 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
558 (watch_command_1, print_one_exception_catchpoint)
559 (clear_command, breakpoint_re_set_one): Adjust member accesses to
560 use the breakpoint's ->loc.
561 (set_raw_breakpoint): Likewise. Initialize ->loc.
562 (delete_breakpoint): Likewise. Free ->loc.
563
7be0c536
AC
5642003-11-05 Andrew Cagney <cagney@redhat.com>
565
4c7d882e
AC
566 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
567 macro.
568 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
569 * config/i386/tm-cygwin.h
570 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
571 * config/powerpc/tm-linux.h
572 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
573 (at_subroutine_call_instruction_target): Delete declaration.
574 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
575 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
576 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
577
7be0c536
AC
578 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
579 "struct bfd_section" and "struct bfd".
580 * target.h (struct section_table): Ditto.
581 * rs6000-nat.c (xcoff_relocate_core): Ditto.
582 * solib-svr4.c (elf_locate_base): Ditto.
583 * pa64solib.c (dld_cache_t): Ditto.
584 * objfiles.h (struct obj_section): Ditto.
585 * objfiles.c (add_to_objfile_sections): Ditto.
586 * exec.c (bfdsec_to_vmap): Ditto.
587 (add_to_section_table): Ditto.
588 (build_section_table): Ditto.
589 * corelow.c (get_core_register_section): Ditto.
590 * coffread.c (find_linenos): Ditto.
591 * elfread.c (elf_interpreter): Delete #if0'd function.
592
593 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
594 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
595 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
596 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
597
598 * arch-utils.h (generic_cannot_extract_struct_value_address):
599 Delete declaration.
600 * wince.c (_initialize_wince): Fix multi-line string.
601 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
602
d8fe84e3
EZ
6032003-11-05 Elena Zannoni <ezannoni@redhat.com>
604
605 * top.c (execute_command): Fix broken logic for command execution
606 while inferior is running in async mode.
607
cbdfc7c0
MK
6082003-11-06 Mark Kettenis <kettenis@gnu.org>
609
610 * dwarf2-frame.c (execute_cfa_program): Mark register as
611 REG_SAVED_REG for DW_CFA_register opcode.
612
dac94105
MK
6132003-11-05 Mark Kettenis <kettenis@gnu.org>
614
615 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
616 %rsp, %rip and %eflags to match ABI-change.
617
85bf2b91
JJ
6182003-11-05 Jeff Johnston <jjohnstn@redhat.com>
619
620 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
621 (ia64_gdbarch_init): Don't bother calculating the os.
622 Instead use the gdbarch_info struct and look at the osabi field.
623 Also use gdbarch_list_lookup_by_info() to look for a
624 candidate gdbarch.
625
cd31fb03
KB
6262003-11-05 Kevin Buettner <kevinb@redhat.com>
627
628 * frv-tdep.c (frv_register_byte): Delete.
629 (frv_extract_return_value, frv_store_return_value)
630 (frv_extract_struct_value_address): Don't call frv_register_byte().
631 Convert to non-deprecated form.
632 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
633 Convert calls to set_gdbarch_deprecated_extract_return_value(),
634 set_gdbarch_deprecated_store_return_value(), and
635 set_gdbarch_deprecated_extract_struct_value_address() into
636 non-deprecated forms.
637
0a056982
AC
6382003-11-05 Andrew Cagney <cagney@redhat.com>
639
640 * mips-tdep.c (mips_dump_tdep): Do not print
641 PRINT_EXTRA_FRAME_INFO.
642 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
643 Rename PRINT_EXTRA_FRAME_INFO.
644 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
645 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
646 (mips_print_extra_frame_info): Delete declaration.
647 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
648
29e0a062
EZ
6492003-11-05 Elena Zannoni <ezannoni@redhat.com>
650
651 * coffread.c (coff_symtab_read): Remove passing of info parameter
652 to prim_record_minimal_symbol_and_info.
653
8af580fc
EZ
6542003-11-05 Elena Zannoni <ezannoni@redhat.com>
655
656 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
657 (decode_base_type): Delete ifdeffed out code.
658
507836c0
AC
6592003-11-04 Andrew Cagney <cagney@redhat.com>
660
661 * symtab.c (find_active_alias): Delete function.
662 (lookup_block_symbol): Delete alias code.
663 * stabsread.c (resolve_live_range): Delete function.
664 (add_live_range): Delete function.
665 (resolve_symbol_reference): Delete function.
666 (define_symbol): Delete live range and alias code.
667 (scan_file_globals): Delete alias code.
668 * symtab.h (SYMBOL_RANGES): Delete macro.
669 (struct range_list): Delete structure.
670 (struct symbol): Delete field "ranges".
671 (SYMBOL_ALIASES): Delete macro.
672 (struct alias_list): Delete structure.
673 (struct symbol): Delete field "aliases".
674
1083b3bc
MS
6752003-11-04 Michael Snyder <msnyder@redhat.com>
676
677 * MAINTAINERS: Remove myself as owner of breakpoints and
678 of sparc/solaris.
679
474e5826
CV
6802003-11-03 Corinna Vinschen <vinschen@redhat.com>
681
682 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
683 (sh_sh4al_dsp_register_name): Ditto.
684 (sh4_nofpu_show_regs): Ditto.
685 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
686 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
687
2160782c
AC
6882003-11-03 Andrew Cagney <cagney@redhat.com>
689
690 * bcache.c: Include "gdb_assert.h".
691 (struct bcache): Add fields "expand_count" and
692 "expand_hash_count".
693 (expand_hash_table): Update the expand counts.
694 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
695 on object sizes and hashes.
696 * Makefile.in (bcache.o): Update dependencies.
697
85302095
AC
6982003-11-03 Andrew Cagney <cagney@redhat.com>
699
700 * exec.c (xfer_memory): Eliminate xfer_fn.
701
526eef89
KB
7022003-10-31 Kevin Buettner <kevinb@redhat.com>
703
704 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
705 (opcodes/frv-desc.h): Include.
706 (iacc0h_regnum, iacc0l_regnum): Define.
707 (last_spr_regnum, frv_num_regs): Update.
708 (new_variant): Don't supply default names for holes in the SPRs.
709 Supply names for iacc0h_regnum and iacc0l_regnum.
710 (frv_register_type): Use symbolic constants first_fpr_regnum and
711 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
712 builtin_type_int instead of builtin_type_int32.
713 (frv_register_sim_regno): New function.
714 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
715 * Makefile.in (gdb_sim_frv_h): Define.
716 (frv-tdep.o): Update dependencies.
717
9e815ec2
AC
7182003-10-31 Andrew Cagney <cagney@redhat.com>
719
720 * avr-tdep.c (avr_frame_this_id): Do not call
721 deprecated_inside_entry_file.
722 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
723 * m32r-tdep.c (m32r_frame_this_id): Ditto.
724 * d10v-tdep.c (d10v_frame_this_id): Ditto.
725 * arm-tdep.c (arm_prologue_this_id): Ditto.
726 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
727
e372db49
JB
7282003-10-31 Jim Blandy <jimb@redhat.com>
729
730 * elfread.c (elf_symtab_read): Allocate correct number of tail
731 elements to sectinfo structure. (Fix from Woody LaRue.)
732
e8bcf01f
AC
7332003-10-31 Andrew Cagney <cagney@redhat.com>
734
735 * stack.c (return_command): Use get_frame_type, instead of
736 CALL_DUMMY_HAS_COMPLETED.
737 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
738 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
739
4c05fe53
MK
7402003-10-31 Mark Kettenis <kettenis@gnu.org>
741
742 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
743 explicitly specify size of array.
744 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
745 TDEP->sc_num_regs.
746
c8b91b89
AC
7472003-10-31 Andrew Cagney <cagney@redhat.com>
748
749 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
750 function.
751 (s390_gdbarch_init): Set extract_struct_value_address.
752 * arch-utils.c (generic_cannot_extract_struct_value_address):
753 Delete function.
754 * arch-utils.h (generic_cannot_extract_struct_value_address):
755 Delete definition.
756
fdfb6fc8
MK
7572003-10-31 Mark Kettenis <kettenis@gnu.org>
758
759 * i386-linux-nat.c (fetch_core_registers): Remove.
760 (linux_elf_core_fns): Remove.
761 (_initialize_i386_linux_nat): Remove.
762
2f4950cd
AC
7632003-10-31 Andrew Cagney <cagney@redhat.com>
764
765 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
766 "exec.h".
767 (exec_entry_point): New function.
768 (enable_break): Create a "tmp_bfd_target", use that and
769 entry_point_address when computing the relocation offset.
770 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
771 * Makefile.in (solib-svr4.o): Update dependencies.
772
bba2d28d
AC
7732003-10-31 Andrew Cagney <cagney@redhat.com>
774
775 * defs.h (XZALLOC): Define.
776 * target.h (struct target_ops): Add "to_data";
777 * bfd-target.h, bfd-target.c: New files.
778 * Makefile.in (SFILES): Add "bfd-target.c".
779 (COMMON_OBS): Add "bfd-target.o".
780 (bfd-target.o): Specify dependencies.
781 (bfd_target_h): Define.
782 * defs.h (XZALLOC): Define.
783
6066c3de
AC
7842003-10-31 Andrew Cagney <cagney@redhat.com>
785
786 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
787 adjust_breakpoint_address.
788 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
789 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
790 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
791 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
792
4b8a223f
AC
7932003-10-31 Andrew Cagney <cagney@redhat.com>
794
795 * target.h (struct target_ops): Replace "to_read_partial" and
796 "to_write_partial" with "to_xfer_partial". Update comments.
797 * target.c (debug_to_write_partial): Delete function.
798 (debug_to_xfer_partial): Replace debug_to_read_partial.
799 (add_target, update_current_target, setup_target_debug): Set
800 "to_xfer_partial" instead of "to_read_partial" and
801 "to_write_partial".
802 (default_xfer_partial): Replace "default_write_partial".
803 (default_read_partial): Delete.
804 (target_read_partial, target_write_partial): Call
805 "to_xfer_partial".
806 * remote.c (init_remote_ops): Set "to_xfer_partial".
807 (init_remote_async_ops): Ditto.
808 (remote_xfer_partial): Replace "remote_read_partial".
809
66a72d25
MK
8102003-10-31 Mark Kettenis <kettenis@gnu.org>
811
812 * i386-tdep.c (i386_supply_fpregset): Support floating-point
813 registers in `fxsave' format.
814 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
815
9a12a2a0
MK
8162003-10-30 Mark Kettenis <kettenis@gnu.org>
817
e9f1aad5
MK
818 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
819 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
820 TDEP->gregset_num_regs and tdep->sizeof_gregset.
821
bb489b3c
MK
822 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
823 specify size of array.
824 (i386_linux_init_abi): Remove initialization of
825 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
826 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
827
da285bc4
MK
828 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
829 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
830 core-regset.o.
831
9a12a2a0
MK
832 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
833 the ELF header.
834
0e24ac5d
MK
8352003-10-29 Mark Kettenis <kettenis@gnu.org>
836
6d6d8e9c
MK
837 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
838 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
839 core-regset.o.
840
25e60c9b
MK
841 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
842
0e24ac5d
MK
843 * corelow.c: Include "arch-utils.h", "regset.h" and
844 "gdb_assert.h".
845 (core_gdbarch): New variable.
846 (sniff_core_bfd): Don't sniff if we have support for register sets
847 in CORE_GDBARCH.
848 (core_close): Reset CORE_GDBARCH.
849 (core_open): Initialize CORE_GDBARCH.
850 (get_core_register_section): Use register sets if they are
851 supported by CORE_GDBARCH.
852 (get_core_registers): Don't print error message if we have support
853 for register sets in CORE_GDBARCH.
854
0a0a4ac3
AC
8552003-10-29 Andrew Cagney <cagney@redhat.com>
856
857 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
858 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
859
7b097ae3
MK
8602003-10-29 Mark Kettenis <kettenis@gnu.org>
861
862 * objfiles.h (clear_objfile_data): New prototype.
863 * objfiles.c (clear_objfile_data): New function.
864 * symfile.c (reread_symbols): Clear per-objfile data.
865
46f45a4a
JJ
8662003-10-28 Jeff Johnston <jjohnstn@redhat.com>
867
868 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
869 printf_unfiltered instead of printf_filtered for output messages.
870 (add_symbol_file_command): Ditto.
871 (reread_symbols): Ditto.
872 (overlay_auto_command): Ditto.
873 (overlay_manual_command): Ditto.
874 (overlay_off_command): Ditto.
875
2b026650
MK
8762003-10-27 Mark Kettenis <kettenis@gnu.org>
877
878 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
879 (gdbarch_from_bfd): New function.
880 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
881 deprecated_select_gdbarch_hack.
882 * arch-utils.h (gdbarch_from_bfd): New prototype.
883
0bcad584 8842003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
885
886 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
887 arch_info. Use warning instead of fprintf_filtered. Do not use
888 deprecated bfd_printable_arch_mach.
889
7f398216
KB
8902003-10-26 Kevin Buettner <kevinb@redhat.com>
891
892 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
893 Delete.
894 (frv_register_type): Rename from frv_register_virtual_type. Add
895 ``struct gdbarch *'' parameter.
896 (frv_gdbarch_init): Delete calls to the following functions:
897 set_gdbarch_deprecated_size(),
898 set_gdbarch_deprecated_register_bytes(),
899 set_gdbarch_deprecated_register_raw_size(),
900 set_gdbarch_deprecated_max_register_raw_size(),
901 set_gdbarch_deprecated_register_virtual_size(),
902 set_gdbarch_deprecated_max_register_virtual_size(),
903 set_gdbarch_deprecated_register_virtual_size(),
904 set_gdbarch_deprecated_register_virtual_type().
905 Add call to function set_gdbarch_register_type().
906
bcf48cc7
MK
9072003-10-26 Mark Kettenis <kettenis@gnu.org>
908
6c7de422
MK
909 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
910 FDOFF_REGNUM): Remove defines.
911 * win32-nat.c (do_child_fetch_inferior_registers): Include
912 "i387-tdep.h".
3e685d41 913 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
914 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
915 undefine I387_ST0_REGNUM.
916
f783586b
MK
917 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
918 * x86-64-tdep.c (x86_64_store_return_value): Use
919 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
920
bcf48cc7
MK
921 Change register numbers to enumartion values.
922 * i386-tdep.h (enum i386_regnum): New.
923 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
924 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
925 I386_ST0_REGNUM): Remove defines.
926 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
927 I386_EDI_REGNUM): Remove defines.
928
b6591e8b
AC
9292003-10-24 Andrew Cagney <cagney@redhat.com>
930
931 * target.c: Include "gdbcore.h".
932 (get_target_memory, get_target_memory_unsigned): New functions.
933 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
934 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
935 Use get_target_memory_unsigned.
936 * Makefile.in (target.o): Update dependencies.
937
5f724446
AC
9382003-10-24 Andrew Cagney <cagney@redhat.com>
939
ce2826aa
AC
940 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
941 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
942 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
943 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
944 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
945
5f724446
AC
946 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
947 (can_run_code_for): Use the OO term "singleton".
948
fc70c2a0
AC
9492003-10-23 Andrew Cagney <cagney@redhat.com>
950
951 * Makefile.in (stack.o): Add $(regcache_h).
952 * stack.c: Include "regcache.h"
953 (return_command): Rewrite. Use get_frame_id and
954 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
955 about unhandled return-values.
956 * value.h (set_return_value): Delete declaration.
957 * values.c (set_return_value): Delete function.
958
4afcc598
JJ
9592003-10-23 Jeff Johnston <jjohnstn@redhat.com>
960
961 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
962 (pseudo_regs): Add comment regarding register stack registers.
963 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
964 (floatformat_valid): New static routine.
965 (floatformat_ia64_ext): Add name field and set up is_valid routine
966 to floatformat_valid().
967 (examine_prologue): For the previous cfm, use
968 frame_unwind_register()
969 if the cfm is not stored in a register-stack register. Save the
970 previous cfm value in the prev_cfm field. Add debug output.
971 (ia64_frame_this_id): Use frame_id_build_special() to also register
972 the bsp. Add debug output.
973 (ia64_sigtramp_frame_this_id): Ditto.
974 (ia64_frame_prev_register): Look at cache saved_regs for a few more
975 registers and also add some checks for framelessness before accepting
976 current register values for fields such as return address. For cfm,
977 use the cached prev_cfm field if available. Add comment to explain
978 PSR logic. Add debug output.
979 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
980 as part of initialization.
981 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
982 calculated. Cache the bsp and cfm values.
983 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
984 instead of using ia64_frame_prev_register() which doesn't expect most
985 registers to be saved. The saved values for bsp and sp
986 can be taken from the cache. Add debug output.
987 (ia64_push_dummy_call): Use frame_id_build_special() to also register
988 the bsp.
989
6cfae0bc
JB
9902003-10-23 Jim Blandy <jimb@redhat.com>
991
992 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
993 architecture the current arch can run code for --- but not if it's
994 a superset.
995 (can_run_code_for): New function.
996
fcd182f9
JW
9972003-10-22 James E Wilson <wilson@specifixinc.com>
998
999 * MAINTAINERS: Move myself from paper trail section back to write
1000 after approval section.
1001
4646aa9d
AC
10022003-10-22 Andrew Cagney <cagney@redhat.com>
1003
1004 * exec.h: New file.
1005 * win32-nat.c: Include "exec.h".
1006 * solib.c: Include "exec.h".
1007 * target.h (build_section_table): Delete declaration.
1008 * somsolib.c: Include "exec.h".
1009 (exec_ops): Delete extern declaration.
1010 * rs6000-nat.c: Update copyright. Include "exec.h".
1011 (exec_ops): Delete extern declaration.
1012 * pa64solib.c: Update copyright. Include "exec.h".
1013 (exec_ops): Delete extern declaration.
1014 * exec.c: Update copyright. Include "exec.h".
1015 * corelow.c: Update dependencies. Include "exec.h".
1016 * Makefile.in (exec_h): Define.
1017 (exec.o, somsolib.o): Update dependencies.
1018 (pa64solib.o, corelow.o): Update dependencies.
1019
0088c768
AC
10202003-10-22 Andrew Cagney <cagney@redhat.com>
1021
1022 * target.c: Include "gdb_assert.h" (target_read): Call
1023 "target_read_partial", not "target_write_partial".
1024 (default_read_partial, default_write_partial): New function.
1025 (target_read_partial, target_write_partial): Simplify, assume that
1026 there is always a read/write method.
1027 (update_current_target, add_target): Always set "to_read_partial"
1028 and "to_write_partial".
1029 (target_write, target_read): Fail on a zero byte transfer.
1030 * Makefile.in (target.o): Update dependencies.
1031 * target.h: Update copyright date.
1032 (target_object): Fix typo.
1033
e2d0e7eb
AC
10342003-10-22 Andrew Cagney <cagney@redhat.com>
1035
1036 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1037 multi-arch method, add "targ" parameter.
1038 (struct target_ops): Declare.
1039 * gdbarch.h, gdbarch.c: Re-generate.
1040 * Makefile.in (c-valprint.o): Update dependencies.
1041 * arch-utils.h: Update copyright.
1042 (convert_from_func_ptr_addr_identity): Declare.
1043 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1044 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1045 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1046 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1047 * infcall.c (find_function_addr, call_function_by_hand): Update.
1048 * c-valprint.c: Include "target.h".
1049 (print_function_pointer_address): Update.
1050
f1c07ab0
AC
10512003-10-22 Andrew Cagney <cagney@redhat.com>
1052
1053 * target.c (target_close): New function.
1054 (debug_to_close): Use "target_close".
1055 (push_target): Use "target_close".
1056 (unpush_target): Use "target_close".
1057 (pop_target): Use "target_close".
1058 * target.h (struct target_ops): Add "to_xclose".
1059 (target_open): Delete macro. Move comment to "to_open".
1060 (target_close): Replace macro with function that takes a target.
1061 * top.c (quit_target): Pass "current_target" to "target_close".
1062
5520a790
EZ
10632003-10-21 Elena Zannoni <ezannoni@redhat.com>
1064
1065 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1066 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1067 * symtab.h (lookup_minimal_symbol_text): Update.
1068 * breakpoint.c (create_overlay_event_breakpoint,
1069 create_longjmp_breakpoint): Update callers.
1070 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1071 * symtab.c (find_pc_sect_line): Ditto.
1072
caa92b73
AC
10732003-10-21 Andrew Cagney <cagney@redhat.com>
1074
1075 * target.c (errno): Delete extern declaration.
1076
aa2a9a3c
JJ
10772003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1078
1079 * ia64-tdep.c: Change all occurrences of
1080 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1081 (ia64_frame_prev_register): Minor whitespace change.
1082
4beec2b7
MC
10832003-10-20 Michael Chastain <mec@shout.net>
1084
1085 * config/djgpp/fnchange.lst: Add lines for:
1086 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1087 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1088 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1089 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1090 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1091 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1092 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1093
92ad9cd9
AC
10942003-10-20 Andrew Cagney <cagney@redhat.com>
1095
1096 * values.c (register_value_being_returned): Update comments. Use
1097 "gdbarch_return_value" when available.
1098 (using_struct_return): Ditto.
1099 (set_return_value): Ditto. Use "gdbarch_return_value" when
1100 available.. Print a warning, and not an error, when an unhandled
1101 return type is encountered.
1102 * infcmd.c: Include "gdb_assert.h".
1103 (print_return_value): When gdbarch_return_value_p, and using
1104 struct return, assume that the value is not available.
1105 * defs.h (return_value_convention): Define.
1106 * gdbarch.sh (gdbarch_return_value): New predicate method.
1107 * gdbarch.h, gdbarch.c: Re-generate
1108 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1109
198beae2
AC
11102003-10-20 Andrew Cagney <cagney@redhat.com>
1111
1112 * symtab.c: Replace "struct sec" with "struct bfd_section".
1113 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1114
24d693a6 11152003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1116
1117 * config/djgpp/fnchange.lst: Add lines for:
1118 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1119 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1120 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1121
21ad8dc3
MK
11222003-10-19 Mark Kettenis <kettenis@gnu.org>
1123
1124 * amd64fbsd-nat.c (fetch_inferior_registers,
1125 store_inferior_registers): Remove functions.
1126 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1127
cced5e27
MK
11282003-10-18 Mark Kettenis <kettenis@gnu.org>
1129
1130 Add NetBSD/amd64 native configuration:
1131 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1132 * amd64nbsd-tdep.c: New file.
1133 * amd64nbsd-nat.c: New file.
1134 * amd64bsd-nat.c: New file.
1135 * config/i386/nbsd64.mh: New file.
1136 * config/i386/nbsd64.mt: New file.
1137 * configure.host: Add x86_64-*-netbsd*.
1138 * configure.tgt: Add x86_64-*-netbsd*.
1139 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1140 New targets.
1141 * NEWS (New native configurations): Mention NetBSD/amd64.
1142
666de3fd
MC
11432003-10-17 Michael Chastain <mec@shout.net>
1144
1145 * config/djgpp/fnchange.lst: Remove dead lines for:
1146 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1147 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1148 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1149 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1150 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1151 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1152 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1153 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1154 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1155 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1156 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1157 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1158 gdb/config/sparc/tm-sparclite.h,
1159 gdb/gdbtk/generic/ChangeLog-2001,
1160 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1161 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1162 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1163 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1164 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1165 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1166 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1167 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1168 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1169 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1170 itcl/iwidgets3.0.0/demos/fileselectionbox,
1171 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1172 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1173 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1174 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1175 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1176 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1177 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1178 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1179 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1180 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1181 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1182 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1183 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1184 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1185 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1186 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1187 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1188 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1189 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1190 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1191 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1192 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1193 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1194 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1195 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1196 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1197 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1198 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1199 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1200 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1201 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1202 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1203 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1204 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1205 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1206 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1207 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1208 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1209 itcl/iwidgets3.0.0/demos/scrolledframe,
1210 itcl/iwidgets3.0.0/demos/scrolledhtml,
1211 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1212 itcl/iwidgets3.0.0/demos/scrolledtext,
1213 itcl/iwidgets3.0.0/demos/selectionbox,
1214 itcl/iwidgets3.0.0/demos/selectiondialog,
1215 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1216 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1217 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1218 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1219 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1220 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1221 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1222 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1223 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1224 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1225 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1226 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1227 itcl/iwidgets3.0.0/doc/selectionbox.n,
1228 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1229 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1230 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1231 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1232 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1233 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1234 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1235 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1236 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1237 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1238 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1239 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1240 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1241 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1242 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1243 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1244 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1245 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1246 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1247 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1248 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1249 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1250 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1251 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1252 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1253 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1254 itcl/iwidgets3.0.0/tests/selectionbox.test,
1255 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1256 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1257 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1258 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1259 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1260 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1261 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1262 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1263 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1264 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1265 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1266 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1267 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1268 tk/mac/tkMacProjects.sit.hqx.
1269
1e3ff5ad
AC
12702003-10-17 Andrew Cagney <cagney@redhat.com>
1271
8db32d44
AC
1272 * target.c (target_section_by_addr): New function.
1273 (do_xfer_memory): Use "target_section_by_addr".
1274 * target.h (target_section_by_addr): Declare.
1275
1e3ff5ad
AC
1276 * target.h (struct target_ops): Add "to_read_partial" and
1277 "to_write_partial", delete "to_query".
1278 (target_read_partial, target_write_partial): Declare.
1279 (target_read, target_write): Declare.
1280 (target_query): Delete macro.
1281 * target.c (target_read_partial): New function.
1282 (target_write_partial, target_read, target_write): New function.
1283 (update_current_target): Delete inheritance of "to_query". Add
1284 comments about "to_read_partial" and "to_write_partial".
1285 (debug_to_partial_read, debug_to_partial_write): New functions.
1286 (debug_to_query): Delete function.
1287 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1288 instead of "to_query".
1289 * remote.c (remote_read_partial): Replace "remote_query".
1290 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1291 (init_remote_async_ops): Ditto.
1292 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1293 "target_read_partial" instead of "target_query".
1294 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1295 Use "target_read_partial" instead of "target_query".
1296
48c66725
JJ
12972003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1298
1299 * frame.h (struct frame_id): Add new field: special_addr.
1300 (frame_id_build_special): New prototype.
1301 * frame.c (frame_id_build_special): New function.
1302 (frame_id_build): Change to call frame_id_build_special().
1303 (frame_id_eq): Change to also test special_addr field.
1304 (frame_id_inner): Update comment.
1305
7998dfc3
AC
13062003-10-17 Andrew Cagney <cagney@redhat.com>
1307
1308 * target.c (update_current_target): Perform the target cleanup.
1309 Put the target stack beneath the squashed "current_target".
1310 (add_target): Delete disabled call to "cleanup_target".
1311 (cleanup_target): Delete function.
1312 (push_target, unpush_target): Do not call "cleanup_target".
1313
9c04404e 13142003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1315
1316 * target.c (target_stack): Change to a static target_ops.
1317 (update_current_target): Walk the "struct target_ops" stack.
1318 (pop_target, do_xfer_memory, target_info): Ditto.
1319 (find_target_beneath): Ditto.
1320 (push_target): Rewrite to use the "struct target_ops" stack.
1321 (unpush_target): Ditto.
1322 * target.h (struct target_stack_item): Delete definition.
1323 (target_stack): Delete declaration.
1324 (struct target_ops): Add field "beneath".
1325
c98a2b49 13262003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1327
1328 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1329 declaration.
1330 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1331 (h8300_examine_prologue): Use h8300_normal_mode flag
1332 (h8300_gdbarch_init): Set architecture info for normal mode
1333
506fb367
DJ
13342003-10-16 Daniel Jacobowitz <drow@mvista.com>
1335
1336 * remote.c (remote_protocol_vcont): New variable.
1337 (set_remote_protocol_vcont_packet_cmd): New function.
1338 (show_remote_protocol_vcont_packet_cmd): New function.
1339 (init_all_packet_configs): Handle remote_protocol_vcont.
1340 (remote_vcont_probe): New function.
1341 (remote_vcont_resume): New function.
1342 (remote_resume): Use it.
1343 (remote_async_resume): Call remote_resume.
1344 (_initialize_remote): Add verbose-resume packet commands.
1345
65815ea1
AC
13462003-10-16 Andrew Cagney <cagney@redhat.com>
1347
1348 * infrun.c (handle_inferior_event): Add comment about
1349 "frame_id_inner" being too weak.
1350
40324f1b
EZ
13512003-10-16 Elena Zannoni <ezannoni@redhat.com>
1352
1353 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1354 second parameter, which is always null. Remove
1355 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1356 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1357 accordingly.
1358 * somsolib.c (som_solib_create_inferior_hook,
1359 som_solib_desire_dynamic_linker_symbols): Update callers.
1360 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1361
13622003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1363
1364 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1365 debug interface, SDI (Scalable Debug Interface).
1366 * NEWS: Mention m32r SDI protocol was supported.
1367 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1368 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1369
51931cbb
JJ
13702003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1371
1372 * ia64-linux-tdep.c: Include gdbcore.h.
1373 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1374 (ia64_linux_sigcontext_register_addr): Find the address of the
1375 sigcontext area stored in the sigframe instead of using
1376 a magic offset constant.
1377
84e7fd53
AC
13782003-10-15 Andrew Cagney <cagney@redhat.com>
1379
1380 * remote.c (remote_search): Delete function.
1381 * target.h (target_search): Delete disabled macro.
1382 (struct target_ops): Delete disabled field "to_search".
1383
0f4d7c52
KB
13842003-10-14 Kevin Buettner <kevinb@redhat.com>
1385
1386 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1387 instead of deprecated_inside_entry_file().
1388
2e952408
CV
13892003-10-14 Corinna Vinschen <vinschen@redhat.com>
1390
1391 * sh-tdep.c: Fix copy/paste hangover in comment.
1392 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1393 mode.
1394 (sh3e_sh4_extract_return_value): Ditto.
1395
7e86466e
RH
13962003-10-13 Richard Henderson <rth@redhat.com>
1397
1398 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1399 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1400 match c_val_print a bit closer.
1401
46a16dba
KB
14022003-10-13 Kevin Buettner <kevinb@redhat.com>
1403
1404 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1405 (frv_gdbarch_adjust_breakpoint_address): New function.
1406 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1407 method.
1408
76897487
KB
14092003-10-13 Kevin Buettner <kevinb@redhat.com>
1410
1411 * breakpoint.h (struct breakpoint): Add new member
1412 ``requested_address''.
1413 * breakpoint.c (breakpoint_adjustment_warning)
1414 (adjust_breakpoint_address): New static functions.
1415 (print_it_typical): Issue warning if breakpoint's address is different
1416 from its requested address.
1417 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1418 (breakpoint_re_set_one): Set breakpoint's
1419 ``requested_address'' field. Set ``address'' field to the
1420 result of calling adjust_breakpoint_address() on the requested
1421 address.
1422
a1131521
KB
14232003-10-13 Kevin Buettner <kevinb@redhat.com>
1424
1425 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1426 * gdbarch.h, gdbarch.c: Regenerate.
1427
6ce6d90f
MK
14282003-10-11 Mark Kettenis <kettenis@gnu.org>
1429
155c1d33
MK
1430 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1431 TDEP->sc_num_regs.
1432
8a96bc77
MK
1433 * i386fbsd-tdep.c: New file.
1434 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1435 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1436 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1437 i386bsd-tdep.c.
1438 (_initialize_i386fbsd_tdep): New function.
1439 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1440 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1441 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1442 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1443 TDEP->sc_num_regs.
1444 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1445 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1446 to initialize TDEP->sc_num_regs.
1447 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1448 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1449 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1450 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1451 FreeBSD ELF OS/ABI's here.
1452 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1453 (i386fbsd-tdep.o): New target.
1454 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1455 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1456
477f40d1
MK
1457 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1458 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1459 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1460 in initialization of TDEP->sc_num_regs.
1461
c6b33596
MK
1462 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1463 (x86_64_init_abi): Initialize regset_from_core_section if
1464 appropriate.
1465
8446b36a
MK
1466 * i386-tdep.c (i386_regset_from_core_section): New function.
1467 (i386_gdbarch_init): Initialize regset_from_core_section if
1468 appropriate.
1469 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1470
c783cbd6
MK
1471 * i386-tdep.h (struct regset): Declare opaque.
1472
6ce6d90f
MK
1473 * gdbarch.sh (regset_from_core_section): New method.
1474 (struct regset): Declare opaque.
1475 * gdbarch.c, gdbarch.h: Regenerated.
1476
b98ed7be
AM
14772003-10-11 Alan Modra <amodra@bigpond.net.au>
1478
1479 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1480 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1481 Correct test for pc within section.
1482
f6214256
MK
14832003-10-11 Mark Kettenis <kettenis@gnu.org>
1484
1485 * gdbarch.sh: Remove trailing whitepsace from comments.
1486
a8f4cde1
RM
14872003-10-08 Roland McGrath <roland@redhat.com>
1488
1489 * gcore.c (make_mem_sec): Function removed, folded into ...
1490 (gcore_create_callback): ... here. To omit a section, clear its
1491 SEC_LOAD bit rather than zeroing its size.
1492 Omit read-only sections only if they correspond to a known disk file.
1493 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1494
74276724
MS
14952003-10-10 Michael Snyder <msnyder@redhat.com>
1496
1497 * d10v-tdep.c: Fix typo in comment.
1498
e754ae69
AC
14992003-10-10 Andrew Cagney <cagney@redhat.com>
1500
1501 * rs6000-tdep.c (e500_store_return_value): Delete function.
1502 (e500_extract_return_value): Delete function.
1503 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1504 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1505 "ppc_sysv_abi_restore_return_value" where applicable.
1506 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1507 (ppc_sysv_abi_extract_return_value): Declare.
1508 (ppc_sysv_abi_broken_store_return_value): Declare.
1509 (ppc_sysv_abi_broken_extract_return_value): Declare.
1510 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1511 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1512 start of file.
1513 (do_ppc_sysv_return_value): New function.
1514 (ppc_sysv_abi_extract_return_value): New function.
1515 (ppc_sysv_abi_store_return_value): New function.
1516 (ppc_sysv_abi_broken_extract_return_value): New function.
1517 (ppc_sysv_abi_broken_store_return_value): New function.
1518 (ppc_sysv_abi_use_struct_convention): Call
1519 do_ppc_sysv_return_value.
1520
8d4ce20a
JB
15212003-10-10 J. Brobecker <brobecker@gnat.com>
1522
1523 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1524 to lookup the main function symbol.
1525
afce3d2a
CV
15262003-10-10 Corinna Vinschen <vinschen@redhat.com>
1527
1528 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1529 types correctly.
1530 (sh_push_dummy_call_fpu): Fix argument passing rules.
1531 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1532 float types.
1533 (sh3e_sh4_store_return_value): Ditto.
1534
7fe958be
EZ
15352003-10-10 Elena Zannoni <ezannoni@redhat.com>
1536
1537 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1538 comment.
1539
3f997a97
CV
15402003-10-10 Corinna Vinschen <vinschen@redhat.com>
1541
1542 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1543 more readable code. Accomodate passing of bitfields.
1544
8be9034a
AC
15452003-10-10 Andrew Cagney <cagney@redhat.com>
1546
1547 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1548 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1549 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1550 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1551 (ppc64_sysv_abi_push_dummy_call): New function.
1552 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1553 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1554 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1555
85a453d5
KI
15562003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1557
1558 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1559 * README: Ditto.
1560 * d10v-tdep.c: Ditto.
1561 * h8300-tdep.c: Ditto.
1562 * remote-e7000.c: Ditto.
1563 * remote-hms.c: Ditto.
1564 * ser-e7kpc.c: Ditto.
1565 * sh-stub.c: Ditto.
1566 * sh-tdep.c: Ditto.
1567 * sh-tdep.h: Ditto.
1568 * sh3-rom.c: Ditto.
1569 * sh64-tdep.c: Ditto.
1570 * top.c: Ditto.
1571 * wince.c: Ditto.
1572 * config/d10v/d10v.mt: Ditto.
1573 * config/sh/embed.mt: Ditto.
1574 * config/sh/linux.mt: Ditto.
1575 * config/sh/tm-linux.h: Ditto.
1576 * config/sh/tm-sh.h: Ditto.
1577 * config/sh/wince.mt: Ditto.
1578
221c12ff
AC
15792003-10-09 Andrew Cagney <cagney@redhat.com>
1580
1581 * ppc-tdep.h (struct type): Declare opaque.
1582 * x86-64-tdep.h (struct regcache): Declare opaque.
1583 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1584 coding style.
1585
ef5200c1
AC
15862003-10-09 Andrew Cagney <cagney@redhat.com>
1587
1588 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1589 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1590 (SOFTWARE_SINGLE_STEP_P): Ditto.
1591 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1592 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1593 (SOFTWARE_SINGLE_STEP_P): Ditto.
1594 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1595 software_single_step to rs6000_software_single_step.
a8f4cde1 1596
9644bbdd
AC
15972003-10-09 Andrew Cagney <cagney@redhat.com>
1598
1599 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1600
db72fa6b
MS
16012003-10-09 Michael Snyder <msnyder@redhat.com>
1602
f3efb16c
MS
1603 * frame.h: Fix typo in comment.
1604 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1605 * d10v-tdep.c: Random whitespace/comment tweaks.
1606
9a5cef92
EZ
16072003-10-09 Elena Zannoni <ezannoni@redhat.com>
1608
1609 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1610 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1611 on stack.
a8f4cde1 1612
9a5cef92
EZ
1613 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1614 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1615 in detail.
a8f4cde1 1616
0f317a0c
DJ
16172003-10-09 Daniel Jacobowitz <drow@mvista.com>
1618
1619 * remote-mips.c (mips_initialize): Remove unneeded call to
1620 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1621
bbab2f46
DJ
16222003-10-09 Daniel Jacobowitz <drow@mvista.com>
1623
1624 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1625 a memory pointer.
1626
550950b8
JJ
16272003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1628
1629 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1630 for any lwp we resume.
1631 (running_callback): Add lwps that have pending status events
1632 against them to be considered running.
1633
15c69bc7
KI
16342003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1635
1636 * m32r-tdep.c : Include "dis-asm.h".
1637 * Makefile.in (m32r-tdep.o): Update dependencies.
1638
51065942
JB
16392003-10-06 J. Brobecker <brobecker@gnat.com>
1640
1641 * completer.h (get_gdb_completer_word_break_characters): Delete.
1642 * completer.c: include language.h.
1643 (gdb_completer_word_break_characters): Delete.
1644 (get_gdb_completer_word_break_characters): Delete.
1645 (location_completer): Use the word break characters of the current
1646 language.
1647 (complete_line): Likewise.
1648 (line_completion_function): Likewise.
1649 (skip_quoted_chars): Likewise.
1650 * Makefile.in (completer.o): Add dependency on language.h.
1651 * top.c (init_main): Set the readline word break characters
1652 to GDB's default word break characters.
1653
6084f43a
JB
16542003-10-06 J. Brobecker <brobecker@gnat.com>
1655
1656 * language.h (language_defn): new field, la_word_break_characters.
1657 * language.c (unknown_language_defn): Set new field to
1658 default_word_break_characters.
1659 (auto_language_defn): Likewise.
1660 (local_language_defn): Likewise.
1661 * ada-lang.c (ada_language_defn): Likewise.
1662 * c-lang.c (c_language_defn): Likewise.
1663 (cplus_language_defn): Likewise.
1664 (asm_language_defn): Likewise.
1665 (minimal_language_defn): Likewise.
1666 * f-lang.c (f_language_defn): Likewise.
1667 * jv-lang.c (java_language_defn): Likewise.
1668 * m2-lang.c (m2_language_defn): Likewise.
1669 * objc-lang.c (objc_language_defn): Likewise.
1670 * p-lang.c (pascal_language_defn): Likewise.
1671 * scm-lang.c (scm_language_defn): Likewise.
1672
944fcfab
AC
16732003-10-06 Andrew Cagney <cagney@redhat.com>
1674
1675 * ppc-sysv-tdep.c: Re-indent.
1676
9f0a5303
JB
16772003-10-06 J. Brobecker <brobecker@gnat.com>
1678
1679 * language.h (default_word_break_characters): Add prototype.
1680 * language.c (default_word_break_characters): New function.
1681
7270b6ed
AS
16822003-10-06 Andreas Schwab <schwab@suse.de>
1683
1684 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1685 with %eax.
1686
a5d61f66
AC
16872003-10-06 Andrew Cagney <cagney@redhat.com>
1688
1689 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1690 "h8500-tdep.c".
1691 (z8k-tdep.o): Delete custom build rule.
1692
28a86f5c
AC
16932003-10-06 Andrew Cagney <cagney@redhat.com>
1694
1bfd8a83
AC
1695 * Makefile.in: Update all dependencies.
1696
17144ef8
AC
1697 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1698 No longer list PA as as obsolete candidate. List m32r as
1699 broken instead of obsolete.
a8f4cde1 1700
a5679ae5
AC
1701 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1702 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1703 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1704 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1705 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1706 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1707 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1708 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1709 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1710 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1711 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1712 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1713 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1714 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1715 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1716 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1717 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1718 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1719 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1720 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1721 * config/z8k/z8k.mt: Ditto.
1722
4a8269c0
AC
1723 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1724 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1725 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1726 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1727 sparclite were removed.
1728 * configure.host, configure.tgt: Remove corresponding tuples.
1729
41989fcd
AC
1730 * breakpoint.c, breakpoint.h: Remove obsolete code.
1731 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1732 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1733 * stabsread.h, xcoffread.c: Ditto.
1734
28a86f5c
AC
1735 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1736 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1737 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1738 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1739
4efdaa0d
DL
17402003-10-06 David Lecomber <dsl@sources.redhat.com>
1741
1742 * f-valprint.c: Reformatting
1743
ae53de43
MK
17442003-10-06 Mark Kettenis <kettenis@gnu.org>
1745
a8bb57e7
MK
1746 * x86-64-tdep.c: Remove duplicate comment.
1747
ae53de43
MK
1748 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1749 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1750 names for return values. This fixes a bug since we looked at %rbx
1751 instead of %rdx.
1752
473f17b0
MK
17532003-10-05 Mark Kettenis <kettenis@gnu.org>
1754
2c261fae
MK
1755 * x86-64-tdep.c: Include "regset.h".
1756
473f17b0
MK
1757 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1758 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1759 sizeof_fpregset.
1760 * i386-tdep.c: Include "regset.h".
1761 (i386_supply_gregset): New function.
1762 (i386_supply_fpregset): New function.
1763 (i386_gdbarch_init): Initialze register set-related members of
1764 TDEP.
1765 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1766 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1767
afd48b75
AC
17682003-10-03 Andrew Cagney <cagney@redhat.com>
1769
1770 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1771 set extract_return_value, store_return_value and
1772 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1773 ppc64_sysv_abi_store_return_value and
1774 ppc64_sysv_abi_use_struct_convention.
1775 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1776 (ppc64_sysv_abi_store_return_value): Declare.
1777 (ppc64_sysv_abi_use_struct_convention): Declare.
1778 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1779 (ppc64_sysv_abi_extract_return_value): New function.
1780 (ppc64_sysv_abi_store_return_value): New function.
1781 (ppc64_sysv_abi_use_struct_convention): New function.
1782 (ppc64_sysv_abi_return_value): New function.
1783
9b540880
AC
17842003-10-03 Andrew Cagney <cagney@redhat.com>
1785
1786 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1787 convert a descriptor to a function when it's in the ".opd"
1788 section.
1789
8748518b
CV
17902003-10-03 Corinna Vinschen <vinschen@redhat.com>
1791
1792 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1793 reg_size to keep GCC silent.
1794
0fd85043
CV
17952003-10-03 Corinna Vinschen <vinschen@redhat.com>
1796
1797 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1798 base for DW_EH_PE_textrel encodings.
1799 (read_encoded_value): Add a DW_EH_PE_textrel case.
1800 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1801 section.
1802
37b517aa
MK
18032003-10-03 Mark Kettenis <kettenis@gnu.org>
1804
1805 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1806
12c266ea
AC
18072003-10-02 Andrew Cagney <cagney@redhat.com>
1808
1809 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1810 REGISTER_RAW_SIZE.
1811 * gdbarch.h, gdbarch.c: Re-generate.
1812 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1813 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1814 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1815 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1816 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1817 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1818 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1819 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1820 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1821 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1822 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1823 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1824 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1825 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1826 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1827 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1828
78ba4af6
JB
18292003-10-02 Jim Blandy <jimb@redhat.com>
1830
1831 * dwarf2read.c (struct die_info): Doc fix.
1832
617daa0e
CV
18332003-10-02 Corinna Vinschen <vinschen@redhat.com>
1834
1835 * sh-tdep.c: Running thru gdb_indent.sh.
1836
e5e33cd9
CV
18372003-10-02 Corinna Vinschen <vinschen@redhat.com>
1838
1839 * sh-tdep.c (sh_justify_value_in_reg): New function.
1840 (sh_stack_allocsize): Ditto.
1841 (flt_argreg_array): New array used for floating point argument
1842 passing.
1843 (sh_init_flt_argreg): New function.
a8f4cde1 1844 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1845 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1846 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1847 Fix argument passing strategy.
1848 (sh_push_dummy_call_nofpu): Ditto.
1849
5fe830e4
AC
18502003-10-01 Andrew Cagney <cagney@redhat.com>
1851
1852 * value.h (register_value_being_returned): Declare. Replace
1853 "value_being_returned".
1854 * infcall.c (call_function_by_hand): Use
1855 register_value_being_returned.
1856 * infcmd.c (print_return_value): Call
1857 "register_value_being_returned", handle struct return locally.
1858 * values.c (register_value_being_returned): New function. Replace
1859 "value_being_returned".
a8f4cde1 1860
5fe830e4 18612003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1862
1863 * linux-proc.c (linux_do_registers): New function.
1864 (linux_make_note_section): Use linux_do_registers in case of
1865 single threaded inferior programs.
1866
64f395bf
AC
18672003-10-01 Andrew Cagney <cagney@redhat.com>
1868
1869 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1870 use STRUCT_ADDR. When not using "struct return convention", pass
1871 "0" to "value_being_returned". Add FIXMEs.
1872 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1873 value_being_returned. Add comments.
1874 * values.c (value_being_returned): Add fixme.
1875 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1876 (hppa_value_returned_from_stack): Add FIXME.
1877
639d11d3
DC
18782003-09-30 David Carlton <carlton@kealia.com>
1879
1880 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1881 'has_children' and 'next' by 'child' and 'sibling'.
1882 (read_comp_unit): Rework algorithm, breaking body into
1883 read_die_and_children and read_die_and_siblings.
1884 (read_die_and_children, read_die_and_siblings): New.
1885 (read_full_die): Add 'has_children' argument; set it instead of
1886 the die's 'has_children' field. Minor formatting cleanup.
1887 (free_die_list): Use die->child and die->sibling instead of
1888 die->next.
1889 (dump_die_list): Ditto.
1890 (sibling_die): Use die->sibling.
1891 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1892 'has_children' and 'next' fields.
a8f4cde1
RM
1893 (process_die, read_file_scope, read_func_scope)
1894 (read_lexical_block_scope, read_structure_scope)
1895 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1896 (read_namespace, read_subroutine_type, dump_die): Ditto.
1897
5bffac25
AC
18982003-09-30 Andrew Cagney <cagney@redhat.com>
1899
1900 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1901 to 224, not 220.
1902
f30992d4
AC
19032003-09-30 Andrew Cagney <cagney@redhat.com>
1904
1905 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1906 REGISTER_VIRTUAL_SIZE.
1907 * gdbarch.h, gdbarch.c: Regenerate.
1908 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1909 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1910 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1911
2e092625
AC
19122003-09-29 Andrew Cagney <cagney@redhat.com>
1913
1914 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 1915 REGISTER_VIRTUAL_TYPE.
2e092625
AC
1916 * gdbarch.h, gdbarch.c: Regenerate.
1917 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1918 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1919
1920 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1921 * remote-vxmips.c (vx_read_register): Ditto.
1922 * remote-vx68.c (vx_read_register): Ditto.
1923 * gnu-nat.c (inf_validate_procs): Ditto.
1924
7a5dd6ee
JB
19252003-09-29 J. Brobecker <brobecker@gnat.com>
1926
1927 * infcall.c (call_function_by_hand): Fix build failure
1928 introduced in the previous change to this file.
1929
1fe43d45
AC
19302003-09-29 Andrew Cagney <cagney@redhat.com>
1931
1932 * NEWS: Mention Objective-C.
1933
e28a332c
JG
19342003-09-29 Jerome Guitton <guitton@act-europe.fr>
1935
1936 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1937 test if the register has been saved on the stack.
1938 (arm_scan_prologue_cache): When analysing the instruction
1939 "str lr, [sp, #-4]", save the address where lr has been stored.
1940
9ff63c35
AC
19412003-09-28 Andrew Cagney <cagney@redhat.com>
1942
7f5f525d
AC
1943 * frame.c (frame_read_unsigned_register): Delete function.
1944 * frame.h (frame_read_unsigned_register): Delete declaration.
1945 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1946 get_frame_register_unsigned.
1947 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1948 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1949 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1950
7f5f525d
AC
1951 * frame.h (frame_read_register): Delete declaration.
1952 * frame.c (frame_read_register): Delete function.
1953 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1954 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1955 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1956 * mips-tdep.c (mips_register_to_value): Ditto.
1957 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1958 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1959
1960 * frame.c (frame_read_signed_register): Delete function.
1961 (frame_read_unsigned_register): Update comments.
1962 * frame.h (frame_read_signed_register): Delete declaration.
1963 * h8300-tdep.c (h8300_print_register): Use
1964 get_frame_register_signed.
1965 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1966
9ff63c35
AC
1967 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1968 Rename VALUE_RETURNED_FROM_STACK.
1969 * infcmd.c (print_return_value): Update.
1970 * infcall.c (call_function_by_hand): Update.
1971
41d041d6
MK
19722003-09-28 Mark Kettenis <kettenis@gnu.org>
1973
1974 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1975 regcache argument and reverse the order of the other two
1976 arguments. Remove local regcache variable. Determine
1977 architecture from REGCACHE. Update comments.
1978 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1979 reverse the order of the other two arguments. Remove local
1980 regcache variable. Determine architecture from REGCACHE. Update
1981 comments.
1982 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1983 prototypes. Update comments.
1984 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1985 comment.
1986 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1987 Update.
1988 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1989 * i386-interix-nat.c (supply_fpregset): Update.
1990 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1991 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1992 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1993 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1994 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1995 Update.
1996 * i386obsd-tdep.c (fetch_core_registers): Update.
1997 * i386v4-nat.c (supply_fpregset): Update.
1998 * x86-64-linux-nat.c (supply_fpregset): Update.
1999 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2000
1cb97e17
MK
20012003-09-27 Mark Kettenis <kettenis@gnu.org>
2002
5716833c
MK
2003 * i386-tdep.h: Put opaque declarations in alphabetical
2004 order. Remove spurious whitespace.
2005 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2006 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2007 * i386-tdep.c (MM0_REGNUM): Remove define.
2008 (i386_mmx_regnum_p): Add gdbarch argument.
2009 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2010 Rewrite using new macro definitions for FPU/SSE registers.
2011 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2012 definitions from i387-tdep.h.
2013 (i386_register_name): Update.
2014 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2015 new macro definitions for FPU/SSE registers.
2016 (i386_extract_return_value): Determine whether floating-point
2017 registers are present by examining REGCACHE's architecture.
2018 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2019 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2020 FPU/SSE registers.
2021 (i386_register_type): Update.
2022 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2023 definitions for FPU registers. Use REGCACHE's architecture to
2024 determine the appropriate register numbers.
2025 (i386_pseudo_register_read, i386_pseudo_register_write,
2026 i386_register_reggroup_p): Update.
2027 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2028 TDEP->mm0_regnum.
2029 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2030 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2031 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2032 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2033 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2034 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2035 *' to `void *'.
2036 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2037 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2038 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2039 definitions for FPU/SSE registers.
2040 (FXSAVE_MXCSR_ADDR): New define.
2041 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2042 TDEP->mm0_regnum.
2043 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2044 (I387_ST0_REGNUM): Define.
2045
41d35cb0
MK
2046 * regcache.h (get_regcache_arch): New prototype.
2047 * regcache.c (get_regcache_arch): New function.
2048
54e74f72
MK
2049 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2050 whitespace.
2051
1cb97e17
MK
2052 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2053 Initialize using ARRAY_SIZE.
2054
0968aa8c
AC
20552003-09-27 Andrew Cagney <cagney@redhat.com>
2056
2057 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2058 "init_frame_pc_default".
2059 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2061 * vax-tdep.c (vax_gdbarch_init): Update.
2062 * v850-tdep.c (v850_gdbarch_init): Update.
2063 * sh64-tdep.c (sh64_gdbarch_init): Update.
2064 * s390-tdep.c (s390_gdbarch_init): Update.
2065 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2066 * mcore-tdep.c (mcore_gdbarch_init): Update.
2067 * h8300-tdep.c (h8300_gdbarch_init): Update.
2068 * cris-tdep.c (cris_gdbarch_init): Update.
2069 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2070
54c84734
MK
20712003-09-26 Mark Kettenis <kettenis@gnu.org>
2072
2073 * regset.h: New file.
2074 * Makefile.in (regset_h): Add.
2075
1b1d3794
AC
20762003-09-25 Andrew Cagney <cagney@redhat.com>
2077
2078 * frame.h (deprecated_frame_saved_regs): Rename
2079 get_frame_saved_regs.
2080 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2081 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2082 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2083 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2084 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2085
e6beb428
AC
20862003-09-25 Andrew Cagney <cagney@redhat.com>
2087
2088 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2089 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2090 and Java.
2091 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2092 arm*-*-* do not use the new frame code.
2093
710122da
DC
20942003-09-25 David Carlton <carlton@kealia.com>
2095
2096 * c-exp.y: Remove 'register' declarations.
2097 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2098
79c2c32d
DC
20992003-09-25 David Carlton <carlton@kealia.com>
2100
2101 * c-exp.y: Include cp-support.h. Add qualified_type.
2102 (yylex): Delete nested type hack; add comments.
2103 * cp-namespace.c (cp_lookup_nested_type): New function.
2104 * cp-support.h: Declare cp_lookup_nested_type.
2105 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2106 instead of value_struct_elt_for_reference.
2107 * valops.c: Include cp-support.h.
2108 (value_aggregate_elt): New function.
2109 (value_namespace_elt): Ditto.
2110 (value_struct_elt_for_reference): Make static.
2111 * value.h: Delete declaration of value_struct_elt_for_reference;
2112 add declaration for value_aggregate_elt.
2113 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2114 (valops.o): Ditto.
2115
898c62f5
DJ
21162003-09-25 Daniel Jacobowitz <drow@mvista.com>
2117
2118 * stack.c: Include "reggroups.h".
2119 (frame_info): Only display registers in all_reggroup.
2120 * Makefile.in (stack.o): Update dependencies.
2121
28cd8767
JG
21222003-09-25 Jerome Guitton <guitton@act-europe.fr>
2123
2124 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2125 "add ip, sp #n" in the prologue.
2126 (arm_scan_prologue): Ditto.
2127
a4ab2b5d
JG
21282003-09-25 Jerome Guitton <guitton@act-europe.fr>
2129
2130 * MAINTAINERS (write after approval): Add myself.
2131
3f244638
AS
21322003-09-25 Andreas Schwab <schwab@suse.de>
2133
2134 * m68k-tdep.c: Include "dwarf2-frame.h".
2135 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2136 * Makefile.in (m68k-tdep.o): Update dependencies.
2137
1c0159e0
CV
21382003-09-25 Corinna Vinschen <vinschen@redhat.com>
2139
2140 * sh-tdep.c (struct frame_extra_info): Remove.
2141 (struct sh_frame_cache): New structure.
2142 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2143 (GET_TARGET_REG): Ditto but target register.
2144 (GET_PUSHED_REG): Remove.
2145 (IS_MOV_ARG_TO_REG): New macro.
2146 (IS_MOV_ARG_TO_IND_R14): New macro.
2147 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2148 (IS_MOVW_PCREL_TO_REG): New macro.
2149 (IS_MOVL_PCREL_TO_REG): New macro.
2150 (IS_SUB_REG_FROM_SP): New macro.
2151 (IS_ARG_MOV): Remove.
2152 (IS_MOV_TO_R14): Remove.
2153 (IS_RESTORE_FP): New macro.
2154 (IS_RTS): New macro.
2155 (IS_LDS): New macro.
2156 (IS_MOV_FP_SP): New macro.
2157 (IS_ADD_REG_TO_FP): New macro.
2158 (IS_ADD_IMM_FP): New macro.
2159 (sh_skip_prologue_hard_way): Remove.
2160 (sh_saved_pc_after_call): Remove.
2161 (sh_frame_chain): Remove.
2162 (sh_find_callers_reg): Remove.
a8f4cde1 2163 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2164 (sh_fp_frame_init_saved_regs): Remove.
2165 (sh_init_extra_frame_info): Remove.
2166 (sh_analyze_prologue): New function.
2167 (sh_skip_prologue): Remove deprecated code. Rely on new function
2168 sh_analyze_prologue when after_prologue fails.
2169 (sh_frame_saved_pc): Remove.
2170 (sh_alloc_frame_cache): New function.
2171 (sh_frame_cache): Ditto.
2172 (sh_frame_prev_register): Ditto.
2173 (sh_frame_this_id): Ditto.
2174 (sh_frame_unwind): New structure defining the heuristic frame
2175 sniffer interface.
2176 (sh_frame_sniffer): New function.
2177 (sh_unwind_sp): Ditto.
2178 (sh_unwind_pc): Ditto.
2179 (sh_unwind_dummy_id): Ditto.
2180 (sh_frame_base_address): Ditto.
2181 (sh_frame_base): New structure defining new frame base code.
2182 (sh_in_function_epilogue_p): New function.
2183 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2184 code and to call all new code instead. Initialize dwarf2 and
2185 heuristic frame sniffer.
2186
5f9769d1
PH
21872003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2188
a8f4cde1
RM
2189 * parser-defs.h (struct exp_descriptor): New definition, containing
2190 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2191 evaluating expressions.
2192 (exp_descriptor_standard): Declare new variable.
2193 (print_subexp): Make global and declare here (from expprint.c).
2194 (dump_subexp): Ditto.
2195 (dump_subexp_body_standard): Declare.
2196 (operator_length_standard): Declare.
2197 (op_name_standard): Declare.
2198 (print_subexp): Declare.
2199 (print_subexp_standard): Declare.
2200
2201 * language.h (struct language_defn): Add la_exp_desc field to hold
2202 pointer to table for language-specific operators.
2203 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2204
2205 * parse.c (operator_length): Move most code to new
5f9769d1 2206 operator_length_standard function. Use language-specific information.
a8f4cde1 2207 (operator_length_standard): New function taking most code from
5f9769d1
PH
2208 operator_length.
2209 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2210
2211 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2212 and OP_EXTENDED_LAST.
a8f4cde1
RM
2213
2214 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2215 Make global; remove static declaration.
2216 Move most code to print_subexp_standard.
a8f4cde1 2217 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2218 print_subexp.
2219 (op_name): Add expression to argument signature.
a8f4cde1 2220 Use langauge-specific op_name.
5f9769d1
PH
2221 Move most code to op_name_standard.
2222 (op_name_standard): New function, containing code formerly in op_name.
2223 (dump_subexp): Use new version of op_name function.
2224 Use language-specific dump_subexp_body, and move most existing code to
2225 dump_subexp_body_standard.
2226 (dump_raw_expression): Use new op_name interface.
2227 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2228 (dump_subexp_body_standard): New function, containing code formerly
2229 in dump_subexp_body.
a8f4cde1 2230
5f9769d1
PH
2231 * language.c (unknown_language): Add default la_exp_desc field and
2232 remove evaluate_exp field.
2233 (auto_language): Ditto.
2234 (local_language): Ditto.
2235 * f-lang.c (f_language_defn): Ditto.
2236 * c-lang.c (c_language_defn): Ditto.
2237 (cplus_language_defn): Ditto.
2238 (asm_language_defn): Ditto.
2239 (minimal_language_defn): Ditto.
2240 * p-lang.c (pascal_language_defn): Ditto.
2241 * m2-lang.c (m2_language_defn): Ditto.
2242 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2243
2244 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2245 Java-specific expression evaluator.
2246 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2247 field.
a8f4cde1 2248 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2249 Scheme-specific expression evaluator.
2250 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2251 field.
2252 * objc-lang.c (print_object_command): Take evaluate_exp from the
2253 la_exp_desc field.
a8f4cde1 2254
5f9769d1 2255 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2256
2257 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2258 la_exp_desc's type.
2259 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2260
24daaebc
PH
22612003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2262
2263 * parser-defs.h (operator_length): Declare.
a8f4cde1 2264
24daaebc
PH
2265 * parse.c (length_of_subexp): Use operator_length to get operator
2266 lengths and arities for operators.
2267 Move most code to new operator_length function.
a8f4cde1 2268 (operator_length): New function absorbing most code from
24daaebc
PH
2269 length_of_subexp.
2270 (prefixify_subexp): Remove large case and use operator_length instead.
2271 (parse_exp_1): Use renamings:
a8f4cde1 2272 dump_prefix_expression => dump_raw_expression and
24daaebc 2273 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2274
24daaebc
PH
2275 * expression.h (dump_prefix_expression): Rename to ...
2276 (dump_raw_expression): New name.
2277 (dump_postfix_expression): Rename to ...
2278 (dump_prefix_expression): New name.
a8f4cde1 2279
24daaebc
PH
2280 * expprint.c (dump_subexp): Make global. Add comment.
2281 Move most existing code to dump_subexp_body.
2282 (dump_subexp_body): New function.
2283 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2284 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2285 work before the expression is prefixified.
2286 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2287 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2288 that's what it does.
a8f4cde1 2289 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2290 prefixified expression.
2291 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2292
8c2957c4
JB
22932003-09-22 Jim Blandy <jimb@redhat.com>
2294
2295 * dwarf2read.c (read_array_type): When building the type for an
2296 array of unspecified length, make sure to choose the upper bound
2297 so that the array's total length comes out to be zero --- that's
2298 how we represent such arrays.
2299
592e3010
MC
23002003-09-22 Michael Chastain <mec@shout.net>
2301
2302 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2303
365c70b1
JJ
23042003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2305
2306 * top.c (quit_force): Fix indirect call to quit_target so
2307 a struct qt_args pointer is passed.
2308
5d6eb653
AC
23092003-09-22 Andrew Cagney <cagney@redhat.com>
2310
2311 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2312 * arch-utils.c (init_frame_pc_noop): Delete function.
2313 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2314 "init_frame_pc".
2315 * mips-tdep.c (mips_gdbarch_init): Ditto.
2316 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2317 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2318 declaration.
2319 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2320 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2321 declaration.
2322 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2323
b222a67f
AG
23242003-09-22 Anthony Green <green@redhat.com>
2325
2326 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2327 declaration.
2328
d5b5ac79
AC
23292003-09-20 Andrew Cagney <cagney@redhat.com>
2330
deafb061
AC
2331 * breakpoint.c: Eliminate ARGSUSED.
2332 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2333 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2334 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2335 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2336 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2337 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2338 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2339 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2340 * wince.c, remote-vx.c: Ditto.
2341
d5b5ac79
AC
2342 * cli/cli-script.c: Remove "register" attributes.
2343 * config/pa/tm-hppa.h: Ditto.
2344 * cli/cli-decode.c: Ditto.
2345 * cli/cli-cmds.c: Ditto.
2346
c6316faa
AC
23472003-09-19 Andrew Cagney <cagney@redhat.com>
2348
2349 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2350 DEPRECATED_NPC_REGNUM.
2351 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2352
f4f99b11
CF
23532003-09-19 Christopher Faylor <cgf@redhat.com>
2354
2355 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2356
1708f284
JB
23572003-09-19 Jim Blandy <jimb@redhat.com>
2358
2359 * macrotab.c (macro_include): Use the correct comparison to find
2360 the appropriate place for this inclusion in the list.
2361
b9fbf434
AC
23622003-09-19 Andrew Cagney <cagney@redhat.com>
2363
2364 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2365 (DEPRECATED_HPUX_TEXT_END): Define.
2366 (deprecated_hpux_text_end): Declare.
2367 (struct target_ops): Declare opaque.
2368 * hppah-nat.c (text_end): Make static.
2369 (deprecated_hpux_text_end): New function.
2370 * exec.c (text_end): Delete global variable.
2371 (NEED_TEXT_START_END): Do not define.
2372 (exec_file_attach): Replace code computing "text_end" code with
2373 call to DEPRECATED_HPUX_TEXT_END.
2374
5b03f266
AC
23752003-09-19 Andrew Cagney <cagney@redhat.com>
2376
2377 * utils.c (align_up, align_down): New functions.
2378 * defs.h (align_up, align_down): Declare.
2379 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2380 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2381 and "align_down".
2382 (round_up, round_down): Delete functions.
2383 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2384 "align_down".
2385 (ROUND_DOWN, ROUND_UP): Delete macros.
2386 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2387 * h8300-tdep.c: Replace "round_up" and "round_down" with
2388 "align_up" and "align_down".
2389 (round_up, round_down): Delete macros.
2390 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2391 "align_down".
2392 (ROUND_UP, ROUND_DOWN): Delete macros.
2393
51db5742
JB
23942003-09-18 J. Brobecker <brobecker@gnat.com>
2395
2396 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2397 hard-coded constant. Use the proper machine name instead.
2398
77949794
AC
23992003-09-17 Andrew Cagney <cagney@redhat.com>
2400
2401 * sparc-tdep.c (legacy_register_name): Delete function.
2402 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2403 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2404 * infcmd.c (gdb_register_name): Delete variable.
2405 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2406 REGISTER_NAME and "tm.h".
2407 * gdbarch.h, gdbarch.c: Regenerate.
2408 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2409 REGISTER_NAMES in comments.
2410 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2411 * m68klinux-nat.c (regmap): Ditto.
2412
b55c33cc
JB
24132003-09-17 Jim Blandy <jimb@redhat.com>
2414
2415 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2416
957e27ac
AC
24172003-09-17 Andrew Cagney <cagney@redhat.com>
2418
2419 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2420 (ppcnbsd_init_abi): Set "use_struct_convention" to
2421 "ppcnbsd_use_struct_convention".
2422
192cb3d4
MK
24232003-09-17 Mark Kettenis <kettenis@gnu.org>
2424
2425 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2426 * gdbarch.h, gdbarch.c: Regenerate.
2427 (stabs_argument_has_addr): New architecture method.
2428 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2429 * arch-utils.c: Include "buildsym.h".
2430 (default_stabs_argument_has_addr): New function.
2431 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2432 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2433
efe59759
AC
24342003-09-17 Andrew Cagney <cagney@redhat.com>
2435
2436 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2437 * gdbarch.h, gdbarch.c: Regenerate.
2438 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2439 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2440 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2441 * sparcnbsd-tdep.c: Update.
a8f4cde1 2442
62700349
AC
24432003-09-17 Andrew Cagney <cagney@redhat.com>
2444
2445 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2446 * gdbarch.h, gdbarch.c: Regenerate.
2447 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2448 * d10v-tdep.c, frame.c: Update.
2449 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2450 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2451 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2452 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2453 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2454 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2455 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2456 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2457 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2458 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2459 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2460 * config/pa/nm-hppah.h: Update.
2461
b9ff3018
AC
24622003-09-16 Andrew Cagney <cagney@redhat.com>
2463
2464 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2465 "use_struct_convention" to "ppc_linux_use_struct_convention".
2466 (ppc_linux_use_struct_convention): New function.
2467 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2468 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2469 "rs6000_use_struct_convention".
2470 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2471 declaration.
2472 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2473 Delete function.
2474
aa1ee363
AC
24752003-09-16 Andrew Cagney <cagney@redhat.com>
2476
2477 * buildsym.c: Remove more occurances of "register".
2478 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2479 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2480 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2481 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2482 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2483 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2484 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2485 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2486
f2ea0907
CV
24872003-09-16 Corinna Vinschen <vinschen@redhat.com>
2488
2489 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2490 numbers to enumeration values.
2491 * sh-tdep.c: Accomodate above change.
2492 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2493 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2494 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2495 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2496 (IS_FPUSH): Rename from IS_FMOV.
2497 (sh_extract_struct_value_address): Remove useless comment.
2498 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2499 instead of own local values.
2500 (sh_dump_tdep): Remove.
2501 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2502 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2503
1c704f11
AC
25042003-09-15 Andrew Cagney <cagney@redhat.com>
2505
2506 * doublest.c (convert_floatformat_to_doublest): No longer need to
2507 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2508
ac79b88b
DJ
25092003-09-15 Daniel Jacobowitz <drow@mvista.com>
2510
2511 * values.c (unpack_double): Call floatformat_is_valid.
2512
1c671366
MK
25132003-09-15 Mark Kettenis <kettenis@gnu.org>
2514
de5227fb
MK
2515 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2516 ps_strings into a long.
2517
1c671366
MK
2518 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2519 _initialize_am64fbsd_nat.
2520
a604369a
KB
25212003-09-15 Kevin Buettner <kevinb@redhat.com>
2522
2523 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2524 associated with DW_AT_ranges attribute is out of bounds.
2525
b3cacbee
DL
25262003-09-15 David Lecomber <dsl@sources.redhat.com>
2527
2528 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2529
d0f37bb2
MC
25302003-09-14 Michael Chastain <mec@shout.net>
2531
2532 * config/m68k/nm-apollo68v.h: Delete.
2533 * config/m68k/xm-apollo68v.h: Delete.
2534
69517000
AC
25352003-09-14 Andrew Cagney <cagney@redhat.com>
2536
2537 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2538 * dcache.c: Update copyrights and descriptions.
2539 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2540
ef8b349d
AC
25412003-09-14 Andrew Cagney <cagney@redhat.com>
2542
2543 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2544 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2545
52f0bd74
AC
25462003-09-14 Andrew Cagney <cagney@redhat.com>
2547
2548 * alpha-nat.c: Remove some occurances of "register".
2549 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2550 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2551 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2552 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2553 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2554 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2555 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2556 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2557 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2558 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2559 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2560 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2561 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2562 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2563 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2564 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2565 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2566 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2567 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2568 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2569 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2570 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2571
4a4b3fed
AC
25722003-09-13 Andrew Cagney <cagney@redhat.com>
2573
2574 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2575 * ppc-tdep.h (struct regcache): Declare opaque.
2576 * objfiles.h (struct objfile_data): Declare opaque.
2577 * cp-support.h (struct objfile): Declare opaque.
2578 * linux-nat.h (target_waitstatus): Declare opaque.
2579
2110b94f
MK
25802003-09-14 Mark Kettenis <kettenis@gnu.org>
2581
1c671366
MK
2582 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2583 (stabs_argument_has_addr): New architecture method.
2584 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2585 * arch-utils.c: Include "buildsym.h".
2586 (default_stabs_argument_has_addr): New function.
2587 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2588 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2589
2110b94f
MK
2590 * cris-tdep.c (cris_gdbarch_init): Set
2591 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2592 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2593 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2594 * mips-tdep.c (mips_gdbarch_init): Likewise.
2595 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2596 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2597
48436ce6
AC
25982003-09-13 Andrew Cagney <cagney@redhat.com>
2599
2600 * values.c (using_struct_return): Delete "function" and "funcaddr"
2601 parameters.
2602 * value.h (using_struct_return): Update declaration.
2603 * infcmd.c (finish_command_continuation): Update.
2604 (finish_command): Update.
2605 * infcall.c (call_function_by_hand): Update.
2606 * eval.c (evaluate_subexp_standard): Update.
2607
403d9909
CF
26082003-09-13 Christopher Faylor <cgf@redhat.com>
2609
2610 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2611 SSE registers since gdb will not operate correctly without this.
2612 Restore include file ordering munged in previous change.
2613 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2614
ebf7d56b
MK
26152003-09-13 Mark Kettenis <kettenis@gnu.org>
2616
8e823e25
MK
2617 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2618 REG_STRUCT_HAS_ADDR.
2619 * gdbarch.c, gdbarch.h: Updated.
2620 * infcall.c (call_function_by_hand): Update.
2621 * stabsread.c (define_symbol): Updated.
a8f4cde1 2622
ebf7d56b
MK
2623 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2624
d3f13f72
CF
26252003-09-12 Christopher Faylor <cgf@redhat.com>
2626
2627 * win32-nat.c: Reorganize so that defines used by target headers are
2628 actually defined by the system headers.
2629 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2630 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2631
14f75137
JB
26322003-09-12 Jim Blandy <jimb@redhat.com>
2633
d646061f
JB
2634 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2635 the file has no .data, .bss, or .rodata sections. Instead wait
2636 until we see a variable alleged to live in one of those sections.
2637
2a13f9bc
JB
2638 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2639 .bss section, presume that any variables we find live in the
2640 .rodata section.
2641
4f49b26b
JB
2642 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2643 offsets for global and static variables.
2644
14f75137
JB
2645 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2646 symbol types are, by definition, in the .data section, so it is
2647 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2648 If there is no .data section, there should be no N_DATA or N_DATA
2649 | N_EXT symbols.
2650
212c460c
MK
26512003-09-12 Mark Kettenis <kettenis@gnu.org>
2652
2653 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2654 (amd64fbsd_sigcontext_addr): Rewrite.
2655 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2656 with correct values.
2657 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2658 (amd64fbsd_init_abi): Fix typo.
2659
68856ea3
AC
26602003-09-12 Andrew Cagney <cagney@redhat.com>
2661
2662 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2663 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2664
627b3ba2
AC
26652003-09-12 Andrew Cagney <cagney@redhat.com>
2666
2667 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2668 "entry_file_highpc". Update comments.
2669 * defs.h (deprecated_inside_entry_file): Rename
2670 "inside_entry_file".
2671 * blockframe.c (deprecated_inside_entry_file): Rename
2672 "inside_entry_file".
2673 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2674 * vax-tdep.c (vax_frame_chain): Update.
2675 * sh64-tdep.c (sh64_frame_chain): Update.
2676 * sh-tdep.c (sh_frame_chain): Update.
2677 * rs6000-tdep.c (rs6000_frame_chain): Update.
2678 * ns32k-tdep.c (ns32k_frame_chain): Update.
2679 * mips-tdep.c (mips_frame_chain): Update.
2680 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2681 * m32r-tdep.c (m32r_frame_this_id): Update.
2682 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2683 * frv-tdep.c (frv_frame_this_id): Update.
2684 * d10v-tdep.c (d10v_frame_this_id): Update.
2685 * cris-tdep.c (cris_frame_chain): Update.
2686 * blockframe.c (legacy_frame_chain_valid): Update.
2687 * avr-tdep.c (avr_frame_this_id): Update.
2688 * arm-tdep.c (arm_prologue_this_id): Update.
2689 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2690 * objfiles.c (objfile_relocate): Update.
2691 * mipsread.c (mipscoff_symfile_read): Update.
2692 (mipscoff_symfile_read): Update.
2693 * mdebugread.c (parse_partial_symbols): Update.
2694 * dwarfread.c (read_file_scope): Update.
2695 * dwarf2read.c (read_file_scope): Update.
2696 * dbxread.c (read_dbx_symtab): Update.
2697 (read_dbx_symtab): Update.
2698 * coffread.c (complete_symtab): Update.
2699
b0abbc58
JJ
27002003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2701
2702 * top.c (quit_target): New static helper function.
2703 (quit_force): Moved code to quit_target(). Call quit_target()
2704 via catch_errors() to catch errors during quit.
2705
a1632d59
DC
27062003-09-11 David Carlton <carlton@kealia.com>
2707
2708 * buildsym.c (finish_block): Use allocate_block to allocate the
2709 block.
2710 * mdebugread.c (new_block): Add FIXME.
2711
5c4e30ca
DC
27122003-09-11 David Carlton <carlton@kealia.com>
2713
2714 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2715 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2716 (recursive_dump_type): Ditto.
2717 * printcmd.c (print_formatted): Ditto.
2718 * typeprint.c (print_type_scalar): Ditto.
2719 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2720 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2721 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2722 maint_cplus_cmd_list.
2723 * cp-support.c: Make maint_cplus_cmd_list extern.
2724 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2725 command.h.
2726 (lookup_symbol_file): Look in possible namespace blocks when
2727 appropriate.
2728 (initialize_namespace_symtab): New.
2729 (get_possible_namespace_block, free_namespace_block)
2730 (check_possible_namespace_symbols)
2731 (check_possible_namespace_symbols_loop)
2732 (check_one_possible_namespace_symbol)
2733 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2734 (_initialize_cp_namespace): Ditto.
2735 * block.h: Declare allocate_block.
2736 * block.c (allocate_block): New.
2737 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2738 allocate_block.
2739 * symfile.h: Update declaration of add_psymbol_to_list.
2740 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2741 question.
2742 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2743 scan_partial_symbols_call.
2744 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2745 helper functions.
2746 (add_partial_symbol): If necessary, scan mangled names for names
2747 of namespaces.
2748 (add_partial_namespace): Add NAMESPACE argument; generate partial
2749 symbols associated to namespaces.
2750 (add_partial_enumeration): Add NAMESPACE argument.
2751 (new_symbol): Allow namespace syms.
2752 (read_namespace): Generate namespace syms.
2753 * objfiles.h: Add opaque declaration of struct symtab.
2754 (struct objfile): Add cp_namespace_symtab member.
2755 * objfiles.c (allocate_objfile): Set
2756 objfile->cp_namespace_symtab.
2757 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2758 dictionary_h, command_h.
2759
33a7c2fc
AC
27602003-09-11 Andrew Cagney <cagney@redhat.com>
2761
2762 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2763 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2764 near the function's end.
2765 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2766 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2767 regcache_raw_write_signed to set SP_REGNUM.
2768
63cd24fe
EZ
27692003-09-11 Elena Zannoni <ezannoni@redhat.com>
2770
2771 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2772 orig_addrs is set up properly.
2773
f27dd7fd
AC
27742003-09-11 Andrew Cagney <cagney@redhat.com>
2775
2776 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2777 * gdbarch.h, gdbarch.c: Re-generate.
2778 * infcall.c (call_function_by_hand): Update.
2779 * hppa-tdep.c (hppa_push_arguments): Update.
2780 * ada-lang.c (place_on_stack): Update.
2781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2782 * sparc-tdep.c (sparc_gdbarch_init): Update.
2783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2784 * hppa-tdep.c (hppa_gdbarch_init): Update.
2785 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2786 stack_align.
2787
f630a401
DJ
27882003-09-11 Daniel Jacobowitz <drow@mvista.com>
2789
2790 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2791 register do need a frame.
2792
0ddabb4c
AC
27932003-09-11 Andrew Cagney <cagney@redhat.com>
2794
2795 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2796 buildable since GDB 5.0.
2797 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2798 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2799 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2800 * irix4-nat.c: Delete file.
2801 * config/mips/irix4.mh: Delete file.
2802 * config/mips/irix3.mh: Delete file.
2803 * config/mips/irix3.mt: Delete file.
2804 * config/mips/tm-irix3.h: Delete file.
2805 * config/mips/nm-irix3.h: Delete file.
2806 * config/mips/xm-irix3.h: Delete file.
2807 * config/mips/nm-irix4.h: Delete file.
2808 * config/mips/xm-irix4.h: Delete file.
2809 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2810
fde2cceb
JB
28112003-09-10 J. Brobecker <brobecker@gnat.com>
2812
2813 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2814 * Makefile.in (hppa-tdep.o): Update dependencies.
2815
66f667f5
JW
28162003-09-10 James E Wilson <wilson@specifixinc.com>
2817
ef5fd69f
JW
2818 * MAINTAINERS: Change my e-mail address. Move to paper trail
2819 section.
66f667f5 2820
53e8aaea
KB
28212003-09-10 Kevin Buettner <kevinb@redhat.com>
2822
2823 * MAINTAINERS (frv): New ISA entry.
2824
dcc6aaff
KB
28252003-09-10 Kevin Buettner <kevinb@redhat.com>
2826
2827 * frv-tdep.c (dis-asm.h): Include.
2828 * Makefile.in (frv-tdep.o): Update dependencies.
2829
932644f0
JJ
28302003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2831
2832 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2833 Fix typo for high range of floating registers.
2834
91c24f0a
DC
28352003-09-09 David Carlton <carlton@kealia.com>
2836
2837 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2838 highpc initialization here out of scan_partial_symbols.
2839 (scan_partial_symbols): Restructure into a recursive version,
2840 calling add_partial_namespace and add_partial_enumeration when
2841 appropriate.
2842 (add_partial_namespace): New.
2843 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2844
c9263853
AC
28452003-09-09 Andrew Cagney <cagney@redhat.com>
2846
e56a0ecc
AC
2847 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2848 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2849 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2850 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2851
794a477a
AC
2852 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2853 (rs6000_push_dummy_call): Set the "TOC" register.
2854
c9263853
AC
2855 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2856 methods "max_register_raw_size", "max_register_virtual_size" or
2857 "register_virtual_size".
2858
afa7d0b2
ILT
28592003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2860
2861 * MAINTAINERS: Update my e-mail address.
2862
7a41266b
AC
28632003-09-09 Andrew Cagney <cagney@redhat.com>
2864
2865 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2866 (rs6000_push_dummy_call): Store the struct return address.
2867 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2868
77b2b6d4
AC
28692003-09-09 Andrew Cagney <cagney@redhat.com>
2870
2871 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2872 "ppc_sysv_abi_push_arguments".
2873 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2874 "ppc_sysv_abi_push_arguments".
2875 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2876 instead of "push_arguments".
2877 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2878
e8a7b686
AC
28792003-09-09 Andrew Cagney <cagney@redhat.com>
2880
2881 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2882 instead of CALL_DUMMY_ADDRESS.
2883
f86f5ca3
PH
28842003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2885
2886 * p-lang.c: Eliminate "register".
2887 * c-lang.c: Ditto.
2888 * expprint.c: Ditto.
2889 * f-lang.c: Ditto.
2890 * jv-lang.c: Ditto.
2891 * language.c: Ditto.
2892 * m2-lang.c: Ditto.
2893 * parse.c: Ditto.
2894 * scm-lang.c: Ditto.
2895 * objc-lang.c: Ditto.
2896
83ee270e
NC
28972003-09-09 Nick Clifton <nickc@redhat.com>
2898
2899 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2900
a89aa300
AC
29012003-09-04 Andrew Cagney <cagney@redhat.com>
2902
2903 * avr-tdep.c: Include "dis-asm.h".
2904 * cris-tdep.c: Include "dis-asm.h".
2905 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2906 instead of corresponding typedef.
2907 * h8300-tdep.c: Include "dis-asm.h".
2908 * ia64-tdep.c: Include "dis-asm.h".
2909 * i386-tdep.c: Include "dis-asm.h".
2910 (i386_print_insn): Use "struct disassemble_info" instead of
2911 corresponding typedef.
2912 * m68k-tdep.c: Include "dis-asm.h".
2913 * mcore-tdep.c: Include "dis-asm.h".
2914 * mips-tdep.c: Include "dis-asm.h".
2915 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2916 instead of corresponding typedef.
2917 * ns32k-tdep.c: Include "dis-asm.h".
2918 * s390-tdep.c: Include "dis-asm.h".
2919 * sparc-tdep.c: Include "dis-asm.h".
2920 * vax-tdep.c: Include "dis-asm.h".
2921 * v850-tdep.c: Include "dis-asm.h".
2922 * mn10300-tdep.c: Include "dis-asm.h".
2923 * rs6000-tdep.c: Include "dis-asm.h".
2924 * xstormy16-tdep.c: Include "dis-asm.h".
2925 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2926 print_insn_xstormy16.
2927 * Makefile.in (v850-tdep.o): Update dependencies.
2928 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2929 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2930 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2931 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2932 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2933 (gdbarch_h): Remove $(dis_asm_h).
2934 * disasm.c: Include "dis-asm.h".
2935 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2936 corresponding typedef.
2937 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2938 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2939 * gdbarch.sh: Do not include "dis-asm.h".
2940 (struct disassemble_info): Declare opaque.
2941 (TARGET_PRINT_INSN): Update declaration.
2942 * gdbarch.h, gdbarch.c: Re-generate.
2943
88a82a65
AC
29442003-09-08 Andrew Cagney <cagney@redhat.com>
2945
2946 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2947 CALL_DUMMY_ADDRESS, change to a predicate.
2948 * gdbarch.h, gdbarch.c: Re-generate.
2949 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2950 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2951 * infcall.c (call_function_by_hand): Ditto.
2952 * sparc-tdep.c (sparc_push_return_address): Ditto.
2953 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2954 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2955 CALL_DUMMY_ADDRESS with entry_point_address.
2956 * v850-tdep.c (v850_push_return_address): Ditto.
2957 * s390-tdep.c (s390_push_return_address): Ditto.
2958 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2959 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2960 * mcore-tdep.c (mcore_push_return_address): Ditto.
2961 * cris-tdep.c (cris_push_return_address): Ditto.
2962 * arm-tdep.c (arm_push_return_address): Ditto.
2963
3e2c4033
AC
29642003-09-08 Andrew Cagney <cagney@redhat.com>
2965
2966 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2967 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2968 and REG_UNMODIFIED to REG_SAME_VALUE.
2969 (execute_cfa_program): Update.
2970 (dwarf2_frame_cache): Update. Initialize table to
2971 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2972 location.
2973 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2974
39efb398
AC
29752003-09-08 Andrew Cagney <cagney@redhat.com>
2976
2977 * gnu-nat.c: Remove "inline" function attribute.
2978 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2979
f5cb5aca
KB
29802003-09-08 Kevin Buettner <kevinb@redhat.com>
2981
2982 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2983 target.
2984
1cb761c7
KB
29852003-09-08 Kevin Buettner <kevinb@redhat.com>
2986
2987 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2988 (frame_extra_info): Rename this struct to frv_unwind_cache.
2989 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2990 Add fields ``prev_sp'' and ``base''.
2991 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2992 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2993 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2994 Delete.
2995 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2996 Revise all callers. Fill in the unwind cache argument and make
2997 other adjustments to account for new frame mechanisms.
2998 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2999 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3000 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3001 (frv_frame_unwind, frv_frame_base): New structs.
3002 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3003 additional arguments expected by this method and adjust function
3004 body accordingly.
3005 (frv_gdbarch_init): Remove calls to the following functions:
3006 set_gdbarch_deprecated_init_frame_pc(),
3007 set_gdbarch_deprecated_saved_pc_after_call(),
3008 set_gdbarch_deprecated_frame_chain(),
3009 set_gdbarch_deprecated_frame_saved_pc(),
3010 set_gdbarch_deprecated_frame_init_saved_regs(),
3011 set_gdbarch_deprecated_push_arguments(),
3012 set_gdbarch_deprecated_push_return_address(),
3013 set_gdbarch_deprecated_pop_frame(),
3014 set_gdbarch_deprecated_call_dummy_words(),
3015 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3016 set_gdbarch_deprecated_init_extra_frame_info(),
3017 set_gdbarch_deprecated_dummy_write_sp(), and
3018 set_gdbarch_deprecated_pc_in_call_dummy().
3019 Add calls to the following functions:
3020 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3021 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3022 frame_base_set_default().
3023 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3024
68f6cf99
MK
30252003-09-09 Mark Kettenis <kettenis@gnu.org>
3026
3027 * dwarf2-frame.c (read_encoded_value): Add support for
3028 DW_EH_PE_aligned encoding.
3029
73b65bb0
DJ
30302003-09-08 Daniel Jacobowitz <drow@mvista.com>
3031
3032 * infrun.c (normal_stop): Don't print a message if the inferior
3033 has exited.
3034
7c8a5605
JB
30352003-09-08 Jim Blandy <jimb@redhat.com>
3036
3037 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3038 * dbxread.c: #include "gdb_assert.h".
3039 (read_dbx_symtab): If the objfile has no .data section, use the
3040 section index for the .bss section instead.
3041
7dd88986
DJ
30422003-09-08 Daniel Jacobowitz <drow@mvista.com>
3043
3044 * frame.c (deprecated_safe_get_selected_frame): New function.
3045 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3046 * findvar.c (read_var_value): Call it.
3047
55ff77ac
CV
30482003-09-08 Corinna Vinschen <vinschen@redhat.com>
3049
3050 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3051 (sh64-tdep.o): Add dependencies.
3052 * configure.tgt: Add FIXME to sh-*-linux*.
3053 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3054 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3055 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3056 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3057 * sh64-tdep.c: New file, containing all sh64 related code from
3058 sh-tdep.c.
3059 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3060 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3061 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3062 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3063 * config/sh/wince.mt (TDEPFILES): Ditto.
3064
bfb39158
DJ
30652003-09-07 Daniel Jacobowitz <drow@mvista.com>
3066
3067 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3068 (stop_wait_callback): Handle !lp->signalled also.
3069 (lin_lwp_has_pending, flush_callback): New functions.
3070 (lin_lwp_wait): Call flush_callback.
3071 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3072 (linux_proc_pending_signals): New function.
3073 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3074
9407de8e
DJ
30752003-09-07 Daniel Jacobowitz <drow@mvista.com>
3076
3077 From Nick Kelsey <nickk@ubicom.com>:
3078 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3079 when the stop PC is at the beginning of a function also.
3080
2ef47cd0
DJ
30812003-09-06 Daniel Jacobowitz <drow@mvista.com>
3082
3083 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3084 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3085
6f4492c8
MK
30862003-09-06 Mark Kettenis <kettenis@gnu.org>
3087
3088 * sol-thread.c: Include "gdb_string.h".
3089
d3420b2f
MK
30902003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3091
3092 * gcore.c: Reorder include files in alphabetical order. Include
3093 "gdb_assert.h". Various coding style fixes.
3094 (derive_stack_segment, derive_heap_segment): Replace check for
3095 non-null BOTTOM and TOP with gdb_assert.
3096 (derive_heap_segment): Replace check for successful creation of
3097 ZERO with gdb_assert.
3098 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3099
5220ea4c
AC
31002003-09-04 Andrew Cagney <cagney@redhat.com>
3101
3102 * thread-db.c (verbose_dlsym): New function.
3103 (thread_db_load): Use verbose_dlsym
3104 (thread_db_new_objfile): Print that libthread_db was loaded, and
3105 that thread debugging was enabled.
3106
6e8c2c06
AC
31072003-09-04 Andrew Cagney <cagney@redhat.com>
3108
3109 * configure.tgt: Add "mips64*-*-*" target. Delete
3110 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3111 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3112 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3113 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3114 mips*-sony-*, and mips64*-*-elf* targets.
3115 * config/mips/embedl.mt: Delete file.
3116 * config/mips/embedl64.mt: Delete file.
3117 * config/mips/mips.mt: Delete file.
3118 * config/mips/mips64.mt: Delete file.
3119 * config/mips/tm-embed.h: Delete file.
3120 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3121 * config/mips/embed64.mt: Delete out-of-date comment.
3122
3a3bc038
AC
31232003-09-04 Andrew Cagney <cagney@redhat.com>
3124
3125 * hppa-tdep.c (hppa_gdbarch_init): Set
3126 "have_nonsteppable_watchpoint".
3127 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3128 * mips-tdep.c (mips_dump_tdep): Do not print
3129 HAVE_NONSTEPPABLE_WATCHPOINT.
3130 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3131 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3132 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3133 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3134
a957e642
CV
31352003-09-04 Corinna Vinschen <vinschen@redhat.com>
3136
3137 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3138 unused code. Add comment.
3139
a6fbcf2f
CV
31402003-09-04 Corinna Vinschen <vinschen@redhat.com>
3141
3142 * breakpoint.c (watchpoint_check): Check for pc being in an
3143 epilogue if watchpoint frame couldn't be found.
3144
c14a44d5
AC
31452003-09-04 Andrew Cagney <cagney@redhat.com>
3146
3147 * Makefile.in: Re-generate all dependencies.
3148
f6c40618
AC
31492003-09-03 Andrew Cagney <cagney@redhat.com>
3150
3151 * arch-utils.h (legacy_print_insn): Delete declaration.
3152 * arch-utils.c (legacy_print_insn): Delete function.
3153 * disasm.c (deprecated_tm_print_insn_info): Delete.
3154 (_initialize_disasm): Delete function, contained code initializing
3155 deprecated_tm_print_insn_info.
3156 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3157 (deprecated_tm_print_insn_info): Delete.
3158 (TARGET_PRINT_INSN): Do not provide a default.
3159 * gdbarch.h, gdbarch.c: Re-generate.
3160
242e8be5
AC
31612003-09-03 Andrew Cagney <cagney@redhat.com>
3162
3163 * disasm.c (fprintf_disasm): New function.
3164 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3165 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3166 reverts 2003-08-14 change.
3167 (_initialize_disasm): Call "init_disassemble_info", instead of
3168 INIT_DISASSEMBLE_INFO_NO_ARCH.
3169
3ffc3dda
MS
31702003-09-03 Michael Snyder <msnyder@redhat.com>
3171
3172 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3173
52d16ba8
AC
31742003-09-03 Andrew Cagney <cagney@redhat.com>
3175
3176 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3177 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3178 * symfile.c (syms_from_objfile): Update.
3179 (reread_symbols): `Update
3180 * exec.c (exec_file_attach): Update.
3181 (exec_file_attach): Update.
3182 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3183 2003-08-29 change.
3184 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3185
eb5492fa
DJ
31862003-09-03 Daniel Jacobowitz <drow@mvista.com>
3187
3188 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3189 trad-frame.h.
3190 (arm_get_cache): Delete macro.
3191 (struct arm_prologue_cache): Update comments. Make saved_regs into
3192 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3193 to prev_sp.
3194 (thumb_scan_prologue): Update for cache changes. Don't call
3195 DEPRECATED_PC_IN_CALL_DUMMY.
3196 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3197 argument and use it in desperation search for our prologue. Do not
3198 search past the specified PC.
3199 (arm_make_prologue_cache): Simplify.
3200
3201 (arm_prologue_this_id, arm_prologue_prev_register)
3202 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3203 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3204 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3205 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3206 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3207
3208 (arm_frame_chain_valid, arm_find_callers_reg)
3209 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3210 (arm_pop_frame): Delete obsolete methods.
3211 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3212
3213 (arm_gdbarch_init): Update for new frame methods. Register prologue
3214 and sigtramp unwinders. Set the default frame base method.
3215
3216 * Makefile.in (arm-tdep.o): Update dependencies.
3217 * varobj.c (find_frame_addr_in_frame_chain): Call
3218 get_frame_base_address.
3219 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3220
24de872b
DJ
32212003-09-03 Daniel Jacobowitz <drow@mvista.com>
3222
3223 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3224 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3225 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3226 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3227 Take NEXT_FRAME and CACHE arguments. Call
3228 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3229 Set unwound_pc in CACHE instead of modifying the frame argument.
3230 Don't bother checking the frame type when looking for sigtramp
3231 frames.
3232 (arm_make_prologue_cache, arm_frame_chain)
3233 (arm_init_extra_frame_info): New functions.
3234
9b8d791a
DJ
32352003-09-03 Daniel Jacobowitz <drow@mvista.com>
3236
3237 * arm-tdep.c (arm_get_cache): Define.
3238 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3239 unwound_sp, unwound_pc, and saved_regs.
3240 (thumb_scan_prologue): Take a cache instead of the frame.
3241 (arm_scan_prologue): Likewise.
3242 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3243 instead of a temporary frame.
3244 (arm_init_extra_frame_info): Allocate and use a cache.
3245 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3246
7ee3275f
AC
32472003-09-03 Andrew Cagney <cagney@redhat.com>
3248
3249 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3250 * config/mips/wince.mt (TM_CLIBS): Ditto.
3251 * config/sh/wince.mt (TM_CLIBS): Ditto.
3252 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3253 * config/sparc/sp64.mt (CC): Delete.
3254
57b29be7
AC
32552003-09-03 Andrew Cagney <cagney@redhat.com>
3256
3257 * defs.h: Do not include "arch-utils.h".
3258 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3259 GDB_MULTI_ARCH_PURE.
3260 * configure.in (GDB_MULTI_ARCH): Do not define.
3261 * configure, config.in: Regenerate.
3262 * configure.tgt: Do not set variable "gdb_multi_arch".
3263 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3264 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3265 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3266 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3267 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3268 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3269 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3270 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3271 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3272 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3273 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3274 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3275 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3276 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3277 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3278 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3279 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3280 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3281
12e035e2
MC
32822003-08-30 Michael Chastain <mec@shout.net>
3283
3284 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3285 * config/m68k/nm-hp300hpux.h: Delete.
3286 * config/m68k/tm-hp300hpux.h: Delete.
3287 * config/m68k/xm-hp300hpux.h: Delete.
3288 * config/m68k/xm-hp300bsd.h: Delete.
3289 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3290 tm-hp300hpux.h, xm-hp300hpux.h.
3291 * somsolib.c: Remove comment about hp300 shared libraries.
3292
bda34dc2
MK
32932003-08-31 Mark Kettenis <kettenis@gnu.org>
3294
5bca7895
MK
3295 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3296 Only define PTRACE_GET_THREAD_AREA is not already defined.
3297 Various style fixes in code and comments and some additional
3298 spelling fixes in comments. Move after functions dealing with
3299 debug registers.
3300 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3301 Fix coding-style.
3302
bda34dc2
MK
3303 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3304 frame_unwind_register_unsigned instead of
3305 frame_unwind_unsigned_register.
3306
c890192f
MK
33072003-08-30 Mark Kettenis <kettenis@gnu.org>
3308
3309 * configure.in: Search for gethostbyname in libnsl.
3310 * configure: Regenerated.
3311
60fac5b8
MK
33122003-08-29 Mark Kettenis <kettenis@gnu.org>
3313
e294916c
MK
3314 * configure.in: Remove redundant AC_MSG_RESULT in check for
3315 uintptr_t in stdint.h.
3316 * configure: Regenerated.
3317
c40d267a
MK
3318 * amd64-nat.h (struct regcache): Add opaque declaration.
3319
60fac5b8
MK
3320 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3321 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3322 Change "register array" to "register cache" in comments.
3323 (x86_64_linux_gregset64_reg_offset): New variable.
3324 (GETREGS_SUPPLIES): Remove macro.
3325 (supply_gregset): Call amd64_supply_native_gregset instead of
3326 x86_64_linux_supply_gregset.
3327 (fill_gregset): Rename `regno' to `regnum'. Call
3328 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3329 (store_regs): Rename `regno' to `regnum'.
3330 (store_fpregs): Rename `regno' to `regnum'.
3331 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3332 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3333 Reorganize function a bit.
3334 (store_inferior_registers): Rename `regno' to `regnum'. Use
3335 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3336 Reorganize function a bit.
3337 (_initialize_x86_64_linux_nat): New function.
3338 * config/i386/x86-64linux.mh.
3339
546143b6
AC
33402003-08-29 Andrew Cagney <cagney@redhat.com>
3341
3342 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3343 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3344 (target_remove_watchpoint): Delete macro.
3345 (target_insert_watchpoint): Delete macro.
3346 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3347 (remote_mips_stopped_by_watchpoint): Delete declaration.
3348 (remote_mips_remove_watchpoint): Delete declaration.
3349 (remote_mips_set_watchpoint): Delete declaration.
3350 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3351 * remote-mips.c (_initialize_remote_mips): Set
3352 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3353 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3354 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3355 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3356 (mips_stopped_by_watchpoint): Rename
3357 remote_mips_stopped_by_watchpoint.
3358 (mips_can_hardware_watchpoint): Rename
3359 remote_mips_can_use_hardware_watchpoint, update function
3360 signature.
3361
7bace51b
MK
33622003-08-29 Mark Kettenis <kettenis@gnu.org>
3363
b0f5c6f2
MK
3364 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3365 USER_DS. We haven't given them a register number yet.
3366
2a6d284d
MK
3367 * amd64-nat.h: New file.
3368 * amd64-nat.c: New file.
3369 * amd64fbsd-nat.c: Include "amd64-nat.h".
3370 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3371 (amd64fbsd32_r_reg_offset): New variable.
3372 (supply_gregset): Simply call amd64_supply_native_gregset.
3373 (fill_gregset): Rename `regno' to `regnum'. Simply call
3374 amd64_collect_native_gregset.
3375 (fill_fpregset): Rename `regno' to `regnum'.
3376 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3377 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3378 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3379 `fpregset_t'. Call amd64_supply_native_gregset instead of
3380 supply_gregset. Call x86_64_supply_fxsave instead of
3381 supply_fpregset.
3382 (store_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_collect_native_gregset instead of
3386 fill_gregset. Call x86_64_collect_fxsave instead of
3387 fill_fpregset.
3388 (_initialize_am64fbsd_nat): Initialize
3389 amd64_native_gregset32_reg_offset and
3390 amd64_native_gregset64_reg_offset.
3391 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3392
a16d75cc
MK
3393 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3394 null pointer. Fix typo in comment.
3395
7bace51b
MK
3396 * regcache.c (supply_register): Reimplement to call
3397 regcache_raw_supply.
3398 (regcache_collect): Reimplement by calling regcache_raw_collect.
3399
9a661b68
MK
34002003-08-28 Mark Kettenis <kettenis@gnu.org>
3401
3402 * regcache.c (register_buffer): Consitify first argument.
3403 (regcache_raw_supply, regcache_raw_collect): New
3404 functions.
3405
e94cc8fa
DJ
34062003-08-28 Daniel Jacobowitz <drow@mvista.com>
3407
3408 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3409 by Nathan J. Williams.
3410
c64bd0ce
DJ
34112003-08-28 Daniel Jacobowitz <drow@mvista.com>
3412
3413 * lin-lwp.c (wait_lwp): New function, copied from
3414 stop_wait_callback. Clean up.
3415 (stop_wait_callback): Use wait_lwp.
3416
e5ab0dce
AC
34172003-08-28 Andrew Cagney <cagney@redhat.com>
3418
3419 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3420 flavour and disassembler options.
3421 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3422 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3423 deprecated_tm_print_insn_info.
a8f4cde1 3424
a788de9b
AC
34252003-08-27 Andrew Cagney <cagney@redhat.com>
3426
3427 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3428 Use target_read_memory.
3429 (s390_get_frame_info): Update. Do not reference
3430 deprecated_tm_print_insn_info.
3431 (s390_check_function_end, s390_is_sigreturn): Ditto.
3432
36482093
AC
34332003-08-27 Andrew Cagney <cagney@redhat.com>
3434
3435 * Makefile.in (cris-tdep.o): Update dependencies.
3436 * cris-tdep.c: Include "gdb_assert.h".
3437 (cris_gdbarch_init): Set print_insn.
3438 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3439 (cris_delayed_get_disassembler): Simplify, directly call the
3440 disassembler returned by cris_get_disassembler.
3441 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3442 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3443 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3444 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3445 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3446 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3447 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3448 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3449 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3450 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3451 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3452 (gdb_print_insn_sparc): Delete function.
3453 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3454 deprecated_tm_print_insn_info.
3455 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3456 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3457 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3459 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3460 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3461 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3462 (s390_gdbarch_init): Set print_insn.
3463
0285512f
AC
34642003-08-27 Andrew Cagney <cagney@redhat.com>
3465
3466 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3467 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3468 * infcall.c (call_function_by_hand): Convert the entry point
3469 address into a code address.
3470
cdcd5552
AC
34712003-08-27 Andrew Cagney <cagney@redhat.com>
3472
3473 * dsrec.c: Include "gdb_string.h".
3474 * Makefile.in (dsrec.o): Update dependencies.
3475
e85cddad
MC
34762003-08-27 Michael Chastain <mec@shout.net>
3477
3478 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3479
8bbfbb23
AC
34802003-08-27 Andrew Cagney <cagney@redhat.com>
3481
3482 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3483 (alpha_osf1_init_abi): Do not set call_dummy_address.
3484
ba058b66
DC
34852003-08-27 David Carlton <carlton@kealia.com>
3486
3487 From Randolph Chung <tausq@debian.org>:
3488 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3489 compiles with -Wformat-nonliteral -Werror.
3490
87f84c9d
JB
34912003-08-26 Jim Blandy <jimb@redhat.com>
3492
3493 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3494 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3495 bfd_lookup_symbol, since we only want symbols in code sections.
3496 (look_for_base): Pass zero as the SECT_FLAGS argument to
3497 bfd_lookup_symbol, since we're not concerned about which section
3498 the symbol is in.
3499
102d615a
JJ
35002003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3501
3502 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3503 we are frameless or the return address register is already known.
102d615a 3504
cc7ad3ea
AC
35052003-08-26 Andrew Cagney <cagney@redhat.com>
3506
3507 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3508 in size. Add comments.
3509
af8b88dd
JJ
35102003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3511
3512 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3513 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3514
e0a4f5a1
JM
35152003-08-26 Jason Merrill <jason@redhat.com>
3516
3517 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3518 case out of #ifdef MIPS block.
3519
4ae9ee8e
DJ
35202003-08-25 Daniel Jacobowitz <drow@mvista.com>
3521
3522 PR java/1322
3523 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3524 available before calling SECT_OFF_TEXT.
3c164570 3525 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3526
004d836a
JJ
35272003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3528
a8f4cde1 3529 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3530 bof, and nat0-nat127 as pseudo-registers.
3531 (ia64_frame_cache): New struct used to cache frame info.
3532 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3533 register grouping so registers without names are still saved and
004d836a 3534 restored.
a8f4cde1 3535 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3536 pseudo values.
3537 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3538 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3539 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3540 ia64_frame_cache.
3541 (examine_prologue): Change prototype to add next_frame pointer.
3542 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3543 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3544 alloc insn and if equal, mark as not frameless. At end of routine,
3545 if not frameless, calculate registers for the previous frame and store
3546 in the cache, if a cache is provided.
3547 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3548 and pass 0 for next_frame.
3549 (ia64_store_return_value): Change to use convert_typed_floating()
3550 instead of calling ia64_convert_to_raw().
3551 (ia64_extract_return_value): Change to use convert_typed_floating()
3552 instead of calling ia64_convert_to_virtual().
3553 (ia64_frame_cache): New routine to support new frame model.
3554 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3555 (ia64_frame_sniffer): Ditto.
3556 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3557 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3558 (ia64_sigtramp_frame_prev_register): Ditto.
3559 (ia64_sigtramp_frame_sniffer): Ditto.
3560 (ia64_frame_base_address): Ditto.
3561 (ia64_extract_struct_value_address): Change to issue error message.
3562 (ia64_frame_align): New routine to align sp.
3563 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3564 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3565 ia64_push_dummy_call().
3566 (ia64_push_return_address): Ditto.
3567 (ia64_unwind_dummy_id): New function.
3568 (ia64_unwind_pc): Ditto.
3569 (ia64_convert_register_p): Ditto.
3570 (ia64_register_to_value): Ditto.
3571 (ia64_value_to_register): Ditto.
3572 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3573 (ia64_register_byte, ia64_register_raw_size): Ditto.
3574 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3575 (ia64_saved_pc_after_call): Ditto.
3576 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3577 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3578 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3579 (ia64_register_convert_to_raw): Ditto.
3580 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3581 (ia64_init_extra_frame_info): Ditto.
3582 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3583 (ia64_gdbarch_init): Remove registering of deprecated functions that
3584 are no longer used. Add registration of new gdbarch functions.
3585 Remove registering deprecated_write_sp. Replace
3586 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3587 Delete set_gdbarch_deprecated_register_convertible(),
3588 set_gdbarch_deprecated_register_convert_to_virtual(), and
3589 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3590 set_gdbarch_deprecated_register_size(),
3591 set_gdbarch_deprecated_register_bytes(),
3592 set_gdbarch_pcregnum(),
3593 set_gdbarch_deprecated_register_byte(),
3594 set_gdbarch_deprecated_register_raw_size(),
3595 set_gdbarch_deprecated_max_register_raw_size(),
3596 set_gdbarch_deprecated_register_virtual_size(),
3597 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3598 Replace set_gdbarch_deprecated_extract_return_value() with
3599 set_gdbarch_extract_return_value(). Remove calls to:
3600 set_gdbarch_deprecated_saved_pc_after_call();
3601 set_gdbarch_deprecated_frame_chain(),
3602 set_gdbarch_deprecated_frame_saved_pc(),
3603 set_gdbarch_deprecated_frame_init_saved_regs(),
3604 set_gdbarch_deprecated_get_saved_register(),
3605 set_gdbarch_deprecated_call_dummy_words(),
3606 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3607 set_gdbarch_deprecated_init_extra_frame_info(),
3608 set_gdbarch_deprecated_frame_args_address(),
3609 set_gdbarch_deprecated_frame_locals_address(),
3610 and set_gdbarch_deprecated_dummy_write_sp().
3611 Add set_gdbarch_convert_register_p(),
3612 set_gdbarch_register_to_value(),
3613 set_gdbarch_value_to_register(),
3614 set_gdbarch_push_dummy_call(),
3615 set_gdbarch_frame_align(),
3616 set_gdbarch_unwind_dummy_id(),
3617 set_gdbarch_unwind_pc(),
3618 frame_unwind_append_sniffer(),
3619 frame_unwind_append_sniffer(),
3620 and frame_base_set_default().
3621
aede7613
CD
36222003-08-25 Chris Demetriou <cgd@broadcom.com>
3623
3624 * configure.tgt: Document need for special "mipsisa64" handling.
3625 (mipsisa64*-*-linux64): Handle as target linux64.
3626 (mipsisa64*-*-*): Handle as target embed64.
3627
43c3a82e
MC
36282003-08-18 Michael Chastain <mec@shout.net>
3629
3630 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3631 objfile bug.
3632
6564f77d
MK
36332003-08-24 Mark Kettenis <kettenis@gnu.org>
3634
2de139ba
MK
3635 * i387-tdep.h: Update copyright date.
3636 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3637
6564f77d
MK
3638 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3639 CFLAGS games to reflect reality.
3640
42cf1509
AC
36412003-08-24 Andrew Cagney <cagney@redhat.com>
3642
3643 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3644 GDB_MULTI_ARCH is always non-zero.
3645 * osabi.c (_initialize_gdb_osabi): Ditto.
3646 (gdbarch_init_osabi): Ditto.
3647 * sparc-tdep.c: Ditto for #if code.
3648
0485f6ad
MK
36492003-08-23 Mark Kettenis <kettenis@gnu.org>
3650
3651 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3652 Update comments.
3653 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3654 comments.
3655 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3656 x86_64_supply_fxsave.
3657 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3658 x86_64_supply_fxsave.
3659 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3660 x86_64_supply_fxsave.
3661
c7716133
AJ
36622003-08-23 Andreas Jaeger <aj@suse.de>
3663
3664 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3665 i387_supply_fxsave.
3666
ed504bdf
MK
36672003-08-23 Mark Kettenis <kettenis@gnu.org>
3668
3669 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3670 i387_supply_register.
3671 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3672 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3673 i387_supply_fsave.
3674 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3675 i387_supply_fxsave.
3676 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3677 i387_supply_fsave.
3678 * i386bsd-nat.c (supply_fpregset): Adjust call to
3679 i387_supply_fsave.
3680 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3681 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3682 supply_fpregset.
3683 (store_inferior_registers): Remove extraneous whitespace. Call
3684 i387_fill_fsave instead of fill_fpregset.
3685 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3686 (supply_fpregset): Likewise.
3687 * i386v4-nat.c (supply_fpregset): Adjust call to
3688 i387_supply_fsave.
3689 * i386-interix-nat.c (supply_fpregset): Adjust call to
3690 i387_supply_fsave.
3691 * i386-linux-nat.c (supply_fpregset): Adjust call to
3692 i387_supply_fsave.
3693 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3694 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3695 i387supply_fsave and i387_supply_fxsave.
3696 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3697 Incorporate code from `i387_supply_register.
3698 (i387_supply_register): Remove.
3699 (i387_supply_fxsave): Add `regnum' argument.
3700 Update comments.
3701 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3702 prototype.
3703 (i387_supply_register): remove prototype.
3704 Update comments.
a8f4cde1 3705
4be5d520
MC
37062003-08-22 Michael Chastain <mec@shout.net>
3707
3708 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3709 Add lines for files in gdb/testsuite/gdb.cp/* that are
3710 still not 8.3 unique.
3711
7ed85d26
DJ
37122003-08-22 Daniel Jacobowitz <drow@mvista.com>
3713
3714 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3715 TYPE_VPTR_FIELDNO is valid.
3716
eb0d3137
MK
37172003-08-19 Mark Kettenis <kettenis@gnu.org>
3718
3719 * utils.c (set_width_command): Remove prototypes.
3720 (set_screen_size): New prototype.
3721 (init_page_info): Simplify by fetching the screen size from
3722 Readline. Call set_screen_size.
3723 (set_screen_size): New function.
3724 (set_width): Add missing whitespace in comment.
3725 (set_width_command): Call set_screen_size.
3726 (set_height_command): New function.
3727 (initialize_utils): Fix formatting. Make "set height" command
3728 call set_height_command. Remove redundant code that turns off
3729 pagination if output isn't a terminal. Remove redundant call to
3730 set_width_command.
a8f4cde1 3731
7e6d0ac8
MK
37322003-08-22 Mark Kettenis <kettenis@gnu.org>
3733
3567a8ea
MK
3734 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3735 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3736 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3737 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3738 `case' keyword.
3739 (sparc64_register_info): Give the reister with number
3740 SPARC64_STATE_REGNUM a name.
3741 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3742 %asi and %ccr.
3743 (sparc64_push_dummy_call): Take BIAS into account when checking
3744 stcak alignment.
3745 (sparc_software_single_step): Remove assertions that check whether
3746 NPC and NNPC were zero.
3747 (sparc_supply_rwindow): Make public. Merge functionality with
3748 sparc64_supply_rwindow.
3749 (sparc_fill_rwindow): Make public. Merge functionality with
3750 sparc64_fill_rwindow.
3751 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3752 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3753 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3754 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3755 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3756
7e6d0ac8
MK
3757 * reggroups.c: Add whitespace after declarations of local
3758 variables in functions.
3759
72e5f484
MC
37602003-08-21 Michael Chastain <mec@shout.net>
3761
3762 * gdbtypes.h: Change array bound type from an int to enum.
3763
435ac228
AC
37642003-08-21 Andrew Cagney <cagney@redhat.com>
3765
3766 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3767 * config/sparc/tm-sparc.h: Ditto.
3768 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3769 unconditionally.
3770 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3771
0d0e1a63
MK
37722003-07-13 Mark Kettenis <kettenis@gnu.org>
3773
3774 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3775 (register_objfile_data, set_objfile_data, objfile_data): New
3776 prototypes.
3777 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3778 prototypes.
3779 (allocate_objfile): Call objfile_alloc_data.
3780 (free_objfile): Call objfile_free_data.
3781 (struct objfile_data): New.
3782 (struct objfile_data_registration): New.
3783 (struct objfile_data_registry): New.
3784 (objfile_data_registry): New variable.
3785 (register_objfile_data): New function.
3786 (objfile_alloc_data, objfile_free_data): New functions.
3787 (set_objfile_data, objfile_data): New functions.
3788 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3789 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3790 (_initialize_dwarf2_frame): New function and prototype.
3791
d90cf509
AC
37922003-08-21 Andrew Cagney <cagney@redhat.com>
3793
3794 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3795 a specific architecture.
3796 * arch-utils.h (set_architecture_from_arch_mach): Delete
3797 declaration.
3798 (target_architecture_hook): Delete declaration.
3799 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3800 (default_float_format): Assume GDB_MULTI_ARCH.
3801 (default_double_format): Assume GDB_MULTI_ARCH.
3802 (set_endian_from_file): Delete function.
3803 (arch_ok): Delete function.
3804 (set_arch): Delete function.
3805 (set_architecture_from_arch_mach): Delete function.
3806 (set_architecture_from_file): Delete function.
3807 (set_architecture): Assume GDB_MULTI_ARCH.
3808 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3809
8b39fe56
MK
38102003-08-21 Mark Kettenis <kettenis@gnu.org>
3811
3812 Rewrite FreeBSD/sparc64 native configuration.
3813 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3814 * sparc64fbsd-nat.c: New file.
3815 * sparc64fbsd-tdep.c: New file.
3816 * sparc64-tdep.c sparc64-tdep.h: New files.
3817 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3818 sparc64fbsd-tdep.o): New dependencies.
3819 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3820 and sparc64fbsd-tdep.c.
3821 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3822 * config/sparc/fbsd.mh: Remove copyright notice.
3823 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3824 sparcbsd-nat.o.
3825 * config/sparc/fbsd.mt: Remove copyright notice.
3826 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3827 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3828 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3829 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3830 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3831 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3832 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3833 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3834 "sparc/tm-sp64.h".
3835 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3836 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3837
a7f19c79
MC
38382003-08-21 Michael Chastain <mec@shout.net>
3839
3840 * symtab.h: Add doco on the space critical structures and
3841 some measurements of space usage.
3842
da08ea5b
MS
38432003-08-21 Michael Snyder <msnyder@redhat.com>
3844
3845 * tracepoint.c (trace_dump_command): Trace break address
3846 is subject to DECR_PC_AFTER_BREAK.
3847 (set_traceframe_context): Make "trace_line" an int.
3848 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3849
6df2bf50
MS
38502003-08-20 Michael Snyder <msnyder@redhat.com>
3851
3852 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3853 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3854 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3855 argument passing.
a8f4cde1 3856 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3857 functions, replace sh_push_dummy_call.
3858 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3859
0955bbf0
MC
38602003-08-20 Michael Chastain <mec@shout.net>
3861
3862 * gdbtypes.h (struct main_type): Rearrange to save space.
3863
260a4188
MS
38642003-08-20 Michael Snyder <msnyder@redhat.com>
3865
3866 * trad-frame.c: Comment typo fix.
3867
8baa6f92
KB
38682003-08-20 Michael Snyder <msnyder@redhat.com>
3869 Kevin Buettner <kevinb@redhat.com>
3870
3871 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3872 (frv_frame_init_saved_regs): Add declaration.
3873 (frame_extra_info): Add new field ``saved_regs''.
3874 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3875 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3876 Update frame related code.
3877 (frv_extract_struct_value_address): Adjust formatting.
3878 * Makefile.in (frv-tdep.o): Update dependencies.
3879 * config/frv/tm-frv.h (target_insert_watchpoint)
3880 (target_remove_watchpoint, target_insert_hw_breakpoint)
3881 (target_remove_hw_breakpoint): Delete these macros.
3882 (remote_insert_watchpoint, remote_remove_watchpoint)
3883 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3884 these declarations.
3885
87193939
MC
38862003-08-20 Michael Chastain <mec@shout.net>
3887
3888 * defs.h (ENUM_BITFIELD): New macro.
3889 * symtab.h (ENUM_BITFIELD): Use it.
3890 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3891
062103ba
SA
38922003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3893
3894 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3895
8b148df9
AC
38962003-08-18 Andrew Cagney <cagney@redhat.com>
3897
3898 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3899 * gdbarch.h, gdbarch.c: Re-generate.
3900 * infcall.c (call_function_by_hand): Adjust the SP by
3901 frame_red_zone_size before allocating any stack space.
3902 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3903 * x86-64-tdep.c (x86_64_frame_align): New function.
3904 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3905
3906 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3907 Remove code adjusting SP so that it skips over the Red Zone.
3908
954a4db8
MK
39092003-08-18 Mark Kettenis <kettenis@gnu.org>
3910
3911 * NEWS (New native configurations): Mention FreeBSD/amd64.
3912
1a241548
AC
39132003-08-18 Andrew Cagney <cagney@redhat.com>
3914
3915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3916 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3917 "m68k_frame_p".
3918 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3919
f82b2acd
MK
39202003-08-18 Mark Kettenis <kettenis@gnu.org>
3921
3922 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3923
4056d258
ML
39242003-08-18 Michal Ludvig <mludvig@suse.cz>
3925
3926 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3927 Define.
3928 * i386-linux-nat.c: Include "linux-nat.h".
3929 (child_post_startup_inferior): New function.
a8f4cde1 3930
99ab4326
MK
39312003-08-18 Mark Kettenis <kettenis@gnu.org>
3932
3933 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3934 at the start of a frameless function. This probably fixes PR
3935 backtrace/1338.
3936
c8d5f0d6
MC
39372003-08-17 Michael Chastain <mec@shout.net>
3938
3939 * symfile.c (find_sym_fns): Remove special case for apollo target.
3940
9016a515
DJ
39412003-08-17 Daniel Jacobowitz <drow@mvista.com>
3942
3943 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3944 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3945 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3946 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3947 (linux_supports_tracevforkdone): New function.
3948 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3949 TRACEVFORKDONE.
3950 (child_follow_fork): Handle vfork.
3951 (linux_handle_extended_wait): Likewise. Also handle exec.
3952 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3953 * NEWS: Mention fork tracing.
3954
c538c11c
DJ
39552003-08-17 Daniel Jacobowitz <drow@mvista.com>
3956
3957 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3958
4de4c07c
DJ
39592003-08-17 Daniel Jacobowitz <drow@mvista.com>
3960
3961 * Makefile.in (i386-linux-nat.o): Update dependencies.
3962 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3963 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3964 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3965 * i386-linux-nat.c: Include "linux-nat.h".
3966 (child_post_startup_inferior): New function.
3967 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3968 * infptrace.c (kill_inferior): Wrap in #ifdef.
3969 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3970 attaching to each LWP.
3971 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3972 (init_lin_lwp_ops): Fill in some more operations.
3973 * linux-nat.h (linux_enable_event_reporting)
3974 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3975 prototypes.
3976 * linux-nat.c (linux_enable_event_reporting): New function.
3977 (child_post_attach, linux_child_post_startup_inferior)
3978 (child_post_startup_inferior, child_follow_fork)
3979 (linux_handle_extended_wait, kill_inferior): New functions.
3980
7996bcec
AC
39812003-08-16 Andrew Cagney <cagney@redhat.com>
3982
3983 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3984 * gdbarch.h, gdbarch.c: Re-generate.
3985
3d48a7a0
MK
39862003-08-16 Mark Kettenis <kettenis@gnu.org>
3987
3988 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3989
7989c619
AC
39902003-08-16 Andrew Cagney <cagney@redhat.com>
3991
3992 * NEWS: Mention that "set prompt-escape-char" was deleted.
3993 * top.c (get_prompt_1): Delete function.
3994 (gdb_prompt_escape):
3995 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3996 prompt-escape-char" command.
3997 (MAX_PROMPT_SIZE): Delete macro.
3998 (get_prompt): Simplify, do not call get_prompt_1.
3999
07978cd8
AC
40002003-08-16 Andrew Cagney <cagney@redhat.com>
4001
4002 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4003 -Werror. -Wformat-nonliteral problems.
4004
3ff7cf9e
JB
40052003-08-15 J. Brobecker <brobecker@gnat.com>
4006
4007 Further multiarching work mostly for hppa64-*-hpux11:
4008 * hppa-tdep.h: New file.
4009 * hppa-tdep.c: #include hppa-tdep.c.
4010 (hppa32_num_regs): Renamed from hppa_num_regs.
4011 (hppa64_num_regs): New constant.
4012 (hppa64_call_dummy_breakpoint_offset): New constant.
4013 (hppa32_call_dummy_length): New constant.
4014 (hppa64_call_dummy_length): New constant.
4015 (hppa32_stack_align): Make name 32bit explicit.
4016 (hppa32_register_virtual_type): Likewise.
4017 (hppa32_extract_return_value): Likewise.
4018 (hppa32_use_struct_convention): Likewise.
4019 (hppa32_store_return_value): Likewise.
4020 (hppa64_register_virtual_type): New function.
4021 (hppa64_extract_return_value): New function.
4022 (hppa64_use_struct_convention): New function.
4023 (hppa64_store_return_value): New function.
4024 (hppa_frame_locals_address): Remove declaration, function does
4025 not exist anymore.
4026 (hppa_register_byte): Add support for PA64 ABI.
4027 (hppa_gdbarch_init): Add support for PA64 ABI.
4028 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4029 Make name 32bit explicit.
4030 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4031 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4032 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4033 (hppa64_hpux_frame_base_before_sigtramp): New function.
4034 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4035 * config/pa/tm-hppa64.h: Remove macros that are no longer
4036 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4037 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4038 * config/pa/tm-hppah.h: Update function calls in macros
4039 following the function renaming in hppa-hpux-tdep.c.
4040 * Makefile.in (hppa_tdep_h): New variable.
4041 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4042
5d05ca6d
MS
40432003-08-14 Michael Snyder <msnyder@redhat.com>
4044
4045 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4046
37ba2569
JB
40472003-08-13 J. Brobecker <brobecker@gnat.com>
4048
4049 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4050 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4051 routine.
4052
aed7f26a
MS
40532003-08-13 Michael Snyder <msnyder@redhat.com>
4054
4055 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4056 (frv_saved_pc_after_call): Use deprecated ftype.
4057 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4058 (frv_remote_translate_xfer_address): Remove.
4059 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4060
752d4ac1
JB
40612003-08-13 J. Brobecker <brobecker@gnat.com>
4062
4063 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4064 initialization after the common gdbarch initialization, not before.
4065
1426ac1d
JB
40662003-08-13 J. Brobecker <brobecker@gnat.com>
4067
4068 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4069 (ADDR_BITS_REMOVE): Remove, redundant.
4070
b6fbdd1d
JB
40712003-08-13 J. Brobecker <brobecker@gnat.com>
4072
4073 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4074 gdbarch method to clear the 2 low bits of text addresses.
4075
44160db3
AC
40762003-08-12 Andrew Cagney <cagney@redhat.com>
4077
4078 * Makefile.in (dsrec.o): Update dependencies.
4079 * dsrec.c: Include "gdb_assert.h".
4080 (make_srec): Use snprintf instead of sprintf, use a literal format
4081 string.
4082
bcf7d3ca
AC
40832003-08-12 Andrew Cagney <cagney@redhat.com>
4084
4085 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4086 FRAME_OBSTACK_ZALLOC.
4087
49ed40de
KB
40882003-08-12 Kevin Buettner <kevinb@redhat.com>
4089
4090 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4091 SSE registers.
4092
b246147c
MK
40932003-08-10 Mark Kettenis <kettenis@gnu.org>
4094
4095 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4096 amd64fbsd_sc_reg_offset): Add extern declarations.
4097 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4098 declarations.
4099
d95fdc0d
BE
41002003-08-11 Ben Elliston <bje@wasabisystems.com>
4101
4102 * MAINTAINERS (write after approval): Update my mail address.
4103
cf6a0e73
AC
41042003-08-10 Andrew Cagney <cagney@redhat.com>
4105
4106 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4107
f837910f
MK
41082003-08-10 Mark Kettenis <kettenis@gnu.org>
4109
e2dbbd2d
MK
4110 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4111 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4112 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4113 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4114 i386bsd_sc_reg_offset): Add extern declarations.
4115 * i386obsd-nat.c: Include "i386-tdep.h"
4116 (_initialize_i386obsd_nat): Remove extern declarations.
4117 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4118 declarations.
4119 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4120 declarations.
4121
f837910f
MK
4122 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4123 instead of frame_read_register.
4124 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4125 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4126 SP_REGNUM.
4127 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4128 instead of frame_unwind_unsigned_register. Use
4129 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4130 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4131 instead of read_register. Use builtin_type_void_data_ptr instead
4132 of builtin_type_void_func_ptr when extracting the address of the
4133 jmp_buf.
4134 (i386_extract_return_value, i386_store_return_value,
4135 i386_pseudo_register_read, i386_pseudo_register_write): Use
4136 register_size instead REGISTER_RAW_SIZE.
4137
edcf254d
AC
41382003-08-10 Andrew Cagney <cagney@redhat.com>
4139
4140 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4141 sprintf. Make "name" constant.
4142
26604a34
MK
41432003-08-10 Mark Kettenis <kettenis@gnu.org>
4144
192285c6
MK
4145 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4146 instead of frame_read_register.
f837910f
MK
4147 (i387_print_float_info): Use get_frame_register and
4148 get_frame_register_unsigned instead of frame_register_read.
192285c6 4149
f0925262
MK
4150 * i386fbsd-nat.c: Include "i386-tdep.h".
4151 (child_resume): Make `eflags' an ULONGEST. Use
4152 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4153 instead of register_read and register_write.
4154
a144416f
MK
4155 * i386bsd-nat.c (fetch_inferior_registers,
4156 store_inferior_registers): Don't use && at the end of a line.
4157 (_initialize_i386bsd_nat): Fix typo.
4158
fec74868
MK
4159 * frame.c (_initialize_frame): Add missing backslash.
4160
87232496
MK
4161 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4162 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4163 and supply_register instead of manipulating the register buffer
4164 directly.
4165
c9b9de0b
MK
4166 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4167 * config/i386/nm-i386sol2.h
4168 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4169
26604a34
MK
4170 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4171 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4172 instructions that GCC likes to mingle into the prologue. Fixes
4173 gdb/1253 and gdb/1255.
4174
25d29d70
AC
41752003-08-09 Andrew Cagney <cagney@redhat.com>
4176
4177 Fix GDB PR cli/926.
4178 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4179 * command.h (add_setshow_uinteger_cmd): Declare.
4180 * frame.c (set_backtrace_cmd): New function.
4181 (show_backtrace_cmd): New function.
4182 * frame.c (_initialize_frame): Replace "set/show
4183 backtrace-below-main" with "set/show backtrace past-main". Add
4184 command "set/show backtrace limit".
4185 (backtrace_past_main): Rename "backtrace_below_main".
4186 (backtrace_limit): New variable.
4187 (get_prev_frame): Update. Check the backtrace_limit.
4188
9ebf4acf
AC
41892003-08-09 Andrew Cagney <cagney@redhat.com>
4190
4191 * defs.h (xstrprintf): Declare.
4192 * utils.c (xstrprintf): New function.
4193 * breakpoint.c (insert_breakpoints): Replace sprintf and
4194 non-literal format strings, with xstrprintf and cleanups.
4195 (delete_breakpoint,breakpoint_re_set): Ditto.
4196 (commands_command, insert_breakpoints): Ditto.
4197 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4198 (break_at_finish_command_1): Ditto.
4199
3771659b
AC
42002003-08-09 Andrew Cagney <cagney@redhat.com>
4201
4202 * MAINTAINERS (language support): List Adam Fedor as Objective C
4203 maintainer.
4204
b4263afa
JB
42052003-08-08 J. Brobecker <brobecker@gnat.com>
4206
4207 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4208 are now multiarched.
4209
d84defb1
JB
42102003-08-08 J. Brobecker <brobecker@gnat.com>
4211
4212 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4213 longer necessary now that hppa64 is partially multiarch'ed.
4214
f786f615
AC
42152003-08-08 Andrew Cagney <cagney@redhat.com>
4216
4217 * interps.c (interp_set): Check for a NULL "old_interp".
4218
c938e9b0
L
42192003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4220
4221 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4222 (install-only): Support DESTDIR.
4223 (uninstall): Likewise.
4224 (install-gdbtk): Likewise.
4225
9a146a11
EZ
42262003-08-08 Elena Zannoni <ezannoni@redhat.com>
4227
4228 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4229 contains something meaningful at all times.
4230
4231Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4232
62599e99 4233 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4234
56296155
BC
4235Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4236
62599e99 4237 * MAINTAINERS (write after approval): Added self.
56296155 4238
9710e734
AC
42392003-08-07 Andrew Cagney <cagney@redhat.com>
4240
4241 * inferior.h (AT_SYMBOL): Define.
4242 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4243 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4244 * mips-tdep.c (mips_call_dummy_address): Delete function.
4245 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4246 set call_dummy_address.
4247
98b3ab73
AC
42482003-08-07 Andrew Cagney <cagney@redhat.com>
4249
4250 * language.c (op_error): Delete function.
4251 (binop_type_check): Delete function.
4252 * language.h (type_op_error, range_op_error): Delete macros.
4253 (op_error): Delete declaration.
4254
2fcf52f0
AC
42552003-08-07 Andrew Cagney <cagney@redhat.com>
4256
4257 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4258
abd4220e 42592003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4260
abd4220e 4261 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4262 (x86_64_push_arguments): Skip the red zone.
abd4220e 4263
9dd5f34f
AC
42642003-08-05 Andrew Cagney <cagney@redhat.com>
4265
4266 * reggroups.c (reggroup_next): Check for the final entry.
4267
e5e78edc
AC
42682003-08-04 Andrew Cagney <cagney@redhat.com>
4269
ab4e3d93
AC
4270 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4271 * cli/cli-script.c (define_command): Call query directly, instead
4272 of passing it a buffer.
4273 * ocd.c (ocd_error): Pass error a constant format string.
4274 * remote-mips.c (mips_error): Use fputs_filtered.
4275
1062ca82
AC
4276 * solib-svr4.c (_initialize_svr4_solib): Update
4277 register_gdbarch_data call.
4278 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4279
fcc1c85c
AC
4280 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4281 (register_gdbarch_data): Delete "free" parameter. Update
4282 comments.
4283 * gdbarch.h, gdbarch.c: Re-generate.
4284 * reggroups.c (_initialize_reggroup): Update.
4285 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4286 * frame-base.c (_initialize_frame_base): Update.
4287 * frame-unwind.c (_initialize_frame_unwind): Update.
4288 * user-regs.c (_initialize_user_regs): Update.
4289 * remote.c (_initialize_remote): Update.
4290 * regcache.c (_initialize_regcache): Update.
4291
116f06ea
AC
4292 * regcache.c (xfree_regcache_descr): Delete function.
4293 (_initialize_regcache): Update call to register_gdbarch_data.
4294 (init_regcache_descr, init_legacy_regcache_descr): Use
4295 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4296
e5e78edc
AC
4297 * remote.c (free_remote_state): Delete function.
4298 (_initialize_remote): Update register_gdbarch_data.
4299 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4300 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4301
6c7d17ba
AC
43022003-08-04 Andrew Cagney <cagney@redhat.com>
4303
4304 * reggroups.c (struct reggroup_el): Define.
4305 (struct reggroups): Delete field "nr_group". Replace array
4306 "group" with a "first" to "last" linked list.
4307 (reggroups_init): Update. Allocate using gdbarch's obstack.
4308 (reggroups_free): Delete function.
4309 (add_group): Update. Add "el" parameter.
4310 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4311 (default_groups): Update.
4312 (reggroup_next): Replace reggroups.
4313 (reggroups_dump): Update.
4314 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4315 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4316 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4317
89b7795b
DJ
43182003-08-04 Daniel Jacobowitz <drow@mvista.com>
4319
4320 * Makefile.in (tui-interp.o): Update dependencies.
4321
306d9ac5
DC
43222003-08-04 David Carlton <carlton@kealia.com>
4323
4324 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4325 to internal_error call.
4326 * source.c (forward_search_command): Add "%s" format argument.
4327 (reverse_search_command): Ditto.
4328 * top.c (quit_confirm): Ditto.
4329 * cli/cli-setshow.c (do_setshow_command): Ditto.
4330 * cp-valprint.c (cp_print_class_method): Replace
4331 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4332 (cp_print_class_member): Ditto.
4333 * event-top.c (command_line_handler): Ditto.
4334 * linux-proc.c (linux_info_proc_cmd): Ditto.
4335 * p-typeprint.c (pascal_type_print_base): Ditto.
4336 * p-valprint.c (pascal_object_print_class_method): Ditto.
4337 (pascal_object_print_class_member): Ditto.
4338 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4339 * remote.c (remote_cisco_section_offsets): Ditto.
4340 * top.c (command_line_input): Ditto.
4341 * utils.c (vwarning,error_stream,quit): Ditto.
4342 * valprint.c (print_floating,print_binary_chars)
4343 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4344
57bfe177
AC
43452003-08-04 Andrew Cagney <cagney@redhat.com>
4346
4347 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4348
e546b999
AC
43492003-08-02 Andrew Cagney <cagney@redhat.com>
4350
4351 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4352 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4353 amd64fbsd-nat.c.
4354
91092ee5
AC
43552003-08-02 Andrew Cagney <cagney@redhat.com>
4356
4357 * Makefile.in: Update all dependencies and definitions.
4358
889f28e2
AF
43592003-08-02 Adam Fedor <fedor@gnu.org>
4360
4361 * linespec.c (is_objc_method_format): New function
4362 (decode_line_1, locate_first_half): Use it.
4363 Fixes PR objc/1298
4364
880bc914
AC
43652003-08-01 Andrew Cagney <cagney@redhat.com>
4366
4367 * NEWS: Mention that m32r is multi-arch.
4368 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4369 * configure.tgt: Recognize m32r-*-*.
4370 * config/m32r/tm-m32r.h: Delete file.
4371 * config/m32r/m32r.mt: New file.
a8f4cde1 4372 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4373 gethostname succeeds, in order to avoid a compilation
4374 warning.
4375 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4376 compiler warning.
4377
19f59343
MS
43782003-08-01 Michael Snyder <msnyder@redhat.com>
4379
4380 * sh-tdep.c (sh_frame_align): New gdbarch method.
4381 (sh_gdbarch_init): Set up frame_align method.
4382
4e7d7511
MS
43832003-07-31 Michael Snyder <msnyder@redhat.com>
4384
4385 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4386 which is already covered by the new frames infrastructure.
4387
63022984
AC
43882003-07-31 Andrew Cagney <cagney@redhat.com>
4389
4390 * user-regs.c (struct user_reg): Add "next" link.
4391 (struct user_regs): Replace "user" with "first" and "last" links.
4392 (append_user_reg): Add pre-allocated "reg" parameter.
4393 (builtin_user_regs): Provide initial value for "last".
4394 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4395 (user_regs_init): Allocate memory from the gdbarch obstack.
4396 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4397 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4398 linked list.
4399 (usernum_to_user_reg): New function.
4400 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4401 (value_of_user_reg): Use usernum_to_user_reg.
4402 (user_regs_free): Delete function.
4403 (_initialize_user_regs): Update register_gdbarch_data call.
4404
7cf6e574
DJ
44052003-07-31 Daniel Jacobowitz <drow@mvista.com>
4406
4407 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4408
c48a845b
MS
44092003-07-30 Michael Snyder <msnyder@redhat.com>
4410
4e7d7511 4411 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4412 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4413 value_being_returned.
4414 * infcmd.c (print_return_value): Pass zero as struct_addr.
4415 * values.c (value_being_returned): If struct_addr is passed,
4416 use it instead of trying to recover it from the inferior.
4417
f0d8db19
KB
44182003-07-30 Kevin Buettner <kevinb@redhat.com>
4419
4420 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4421 the prologue analyzer won't need to attempt to extract the pc
4422 value from the woefully incomplete dummy frame.
4423 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4424 possible. Disable code which modifies the frame.
4425
e5c113a1
AC
44262003-07-28 Andrew Cagney <cagney@redhat.com>
4427
4428 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4429 to level 2.
4430 (annotate_breakpoints_table, annotate_record): Ditto.
4431 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4432 (annotate_field_name_end, annotate_field_value): Ditto.
4433 (annotate_field_end, annotate_frame_source_begin): Ditto.
4434 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4435 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4436 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4437 (annotate_frame_address_end, annotate_frame_address): Ditto.
4438 (annotate_frame_args, annotate_frame_end): Ditto.
4439 (annotate_frame_where, annotate_arg_begin): Ditto.
4440 (annotate_arg_name_end, annotate_arg_value): Ditto.
4441 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4442 (annotate_function_call, annotate_signal_name): Ditto.
4443 (annotate_signal_string, annotate_signal_name_end): Ditto.
4444 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4445 (annotate_value_begin, annotate_value_history_value): Ditto.
4446 (annotate_value_history_end, annotate_value_end): Ditto.
4447 (annotate_display_begin, annotate_display_number_end): Ditto.
4448 (annotate_display_format, annotate_display_expression): Ditto.
4449 (annotate_display_expression_end, annotate_display_value): Ditto.
4450 (annotate_display_end, annotate_array_section_begin): Ditto.
4451 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4452 (annotate_elt, annotate_array_section_end): Ditto.
4453
bb1db049
AC
44542003-07-28 Andrew Cagney <cagney@redhat.com>
4455
4456 * regcache.c (struct regcache_descr): Update comments on
4457 nr_raw_registers.
4458 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4459 sizeof_raw_register_valid_p.
4460 (init_regcache_descr): Set nr_raw_registers and
4461 sizeof_raw_register_valid_p before calling
4462 init_legacy_regcache_descr.
4463
20e6603c
AC
44642003-07-28 Andrew Cagney <cagney@redhat.com>
4465
4466 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4467 MOD NUM_REGS.
4468
db742940
DJ
44692003-07-28 Daniel Jacobowitz <drow@mvista.com>
4470
4471 * thread.c (info_threads_command): Use get_selected_frame ().
4472 Check that there is at least one non-sentinel frame.
4473
ce7f4371
SC
44742003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4475
4476 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4477 (m68hc11_pop_frame): Remove.
4478 (m68hc11_frame_saved_pc): Remove.
4479 (m68hc11_frame_chain): Remove.
4480 (m68hc11_frame_init_saved_regs): Remove.
4481 (m68hc11_init_extra_frame_info): Remove.
4482 (m68hc11_store_struct_return): Remove.
4483 (m68hc11_saved_pc_after_call): Remove.
4484
1ea653ae
SC
44852003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4486
4487 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4488 frame unwind information.
4489 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4490 and adapted for frame unwinding.
4491 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4492 (m68hc11_unwind_pc): New function.
4493 (m68hc11_frame_unwind_cache): New function to analyze frames.
4494 (m68hc11_frame_this_id): New function to create new frame struct.
4495 (m68hc11_frame_prev_register): New function to unwind a register from
4496 the frame.
4497 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4498 (m68hc11_frame_p): New function for the above.
4499 (m68hc11_frame_base_address): New function to return fp of frame.
4500 (m68hc11_frame_args_address): Update for frame.
4501 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4502 (m68hc11_unwind_sp): New function.
4503 (m68hc11_unwind_dummy_id): New function.
4504 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4505 calls.
4506
c8a7f6ac
SC
45072003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4508
4509 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4510 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4511 when we are beyond the current pc.
4512
3dc990bf
SC
45132003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4514
4515 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4516 from m68hc11_push_arguments.
4517 (m68hc11_push_arguments): Remove.
4518 (m68hc11_push_return_address): Remove.
4519 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4520 handlers; remove deprecated_extra_stack_alignment_needed.
4521
222e5d1d
AC
45222003-07-27 Andrew Cagney <cagney@redhat.com>
4523
4524 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4525 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4526 REAL_PC and not the pointer.
4527 * hppa-hpux-tdep.c: Include frame.h
4528
a7e9a47e
AC
45292003-07-27 Andrew Cagney <cagney@redhat.com>
4530
4531 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4532 GDB_MULTI_ACH_PARTIAL.
4533
7e3dd49e
AC
45342003-07-27 Andrew Cagney <cagney@redhat.com>
4535
4536 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4537 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4538 operator at start and not end of line.
4539 (decode_prologue): Ditto.
4540 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4541 frame_unwind_register_unsigned instead of
4542 frame_unwind_unsigned_register.
4543 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4544 read_register.
4545 (m32r_push_dummy_call): Use register_size instead of
4546 REGISTER_RAW_SIZE.
4547 (m32r_frame_sniffer): Replace m32r_frame_p.
4548 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4549 * m32r-rom.c (report_transfer_performance): Delete extern
4550 declaration.
4551 (m32r_load, m32r_upload_command): Use print_transfer_performance
4552 instead of report_transfer_performance.
4553 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4554 / add_show_from_set.
4555
0880807f
AC
45562003-07-26 Andrew Cagney <cagney@redhat.com>
4557
4558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4559 store_return_value and extract_struct_value_address.
4560
64ae9269
DJ
45612003-07-26 Daniel Jacobowitz <drow@mvista.com>
4562
4563 PR c++/1267
4564 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4565 NULL, default to the section containing PC.
4566
e286caf2
SC
45672003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4568
4569 * NEWS: Mention "regs" deprecated for m68hc11 too.
4570
4571 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4572 (m68hc11_print_register): New function to print out one register.
4573 (m68hc11_print_registers_info): New function to print registers.
4574 (show_regs): Deprecate and use the above.
4575 (m68hc11_gdbarch_init): Install the print_registers_info.
4576
705b278b
JJ
45772003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4578
4579 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4580 that we have a SIGTRAP before returning non-zero.
4581
63cd4198
EZ
45822003-07-23 Michal Ludvig <mludvig@suse.cz>
4583 Elena Zannoni <ezannoni@redhat.com>
4584
a8f4cde1 4585 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4586 find_function_start_sal() returns empty record.
4587
6926787d
AS
45882003-07-23 Andreas Schwab <schwab@suse.de>
4589
4590 * ia64-tdep.c (ia64_print_insn): New function.
4591 (ia64_gdbarch_init): Set print_insn to it.
4592 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4593 deprecated_tm_print_insn_info.
4594
708cc1b6
MS
45952003-07-22 Michael Snyder <msnyder@redhat.com>
4596
4597 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4598 handle 8-bit returns (long long).
4599 (h8300h_extract_return_value): Ditto.
4600 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4601
aebd7893
AC
46022003-07-22 Andrew Cagney <cagney@redhat.com>
4603
4604 * gdbarch.c Include "gdb_obstack.h".
4605 (struct gdbarch): Add an "obstack".
4606 (alloc_gdbarch_data): Allocate the gdbarch data using
4607 GDBARCH_OBSTACK_CALLOC.
4608 (free_gdbarch_data): Delete function.
4609 (gdbarch_obstack_zalloc): New function.
4610 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4611 Assert that the architecture is not initialized.
4612 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4613 vector from the obstack.
4614 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4615 architecture obstack.
4616 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4617 (set_gdbarch_data): Assert that the data is not initialized.
4618 (struct gdbarch_data): Delete member "free".
4619 (register_gdbarch_data): Do not initialize "free".
4620 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4621
153721e6
AC
46222003-07-22 Andrew Cagney <cagney@redhat.com>
4623
4624 * configure.in (build_warnings): Add -Wformat-nonliteral.
4625 * configure: Re-generate.
4626
c193f044 46272003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4628
4629 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4630
c3228f12
EZ
46312003-07-22 Elena Zannoni <ezannoni@redhat.com>
4632
4633 * findvar.c (read_var_value): Remove case for thread local storage
4634 variables. It is now entirely handled by the dwarf2 location
4635 expression code.
4636 * printcmd.c (address_info): Ditto.
4637 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4638 enumeration value.
4639 (struct symbol): Remove objfile field, which was used by
4640 LOC_THREAD_LOCAL_STATIC only.
4641 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4642 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4643 usage of objfile pointer.
4644 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4645 thread local variables.
4646 Add include of objfiles.h.
4647 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4648 storage variables.
4649 * Makefile.in (dwarf2loc.o): Update dependencies.
4650
aef9bcd2
AC
46512003-07-22 Andrew Cagney <cagney@redhat.com>
4652
4653 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4654 get_frame_base.
4655 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4656 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4657 (struct value): Add opaque declaration.
4658 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4659
d95a8903
AC
46602003-07-21 Andrew Cagney <cagney@redhat.com>
4661
4662 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4663 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4664
4db73d49
SC
46652003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4666
a8f4cde1 4667 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4668 regcache_cooked_read_unsigned instead of read_register.
4669 (m68hc11_saved_pc_after_call): Likewise.
4670 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4671 instead of write_register.
4672 (m68hc11_register_type): New function.
4673 (m68hc11_register_virtual_type): Remove.
4674 (m68hc11_store_return_value): Convert to use the regcache.
4675 (m68hc11_extract_struct_value_address): Likewise.
4676 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4677 m68hc11_register_type; undeprecate store_return_value and
4678 extract_struct_value_address.
4679
ef2b8fcd
SC
46802003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4681
4682 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4683 and translate to use regcache.
4684 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4685
625b0b97
AC
46862003-07-18 Andrew Cagney <cagney@redhat.com>
4687
4688 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4689 * gdbarch.h, gdbarch.c: Re-generate.
4690 * i386-tdep.c (i386_gdbarch_init): Do not set
4691 DWARF2_BUILD_FRAME_INFO.
4692 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4693 unconditionally.
4694 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4695 DWARF2_BUILD_FRAME_INFO.
4696
22b0d388
AC
46972003-07-18 Andrew Cagney <cagney@redhat.com>
4698
4699 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4700 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4701
1ce5d6dd
AC
47022003-07-18 Andrew Cagney <cagney@redhat.com>
4703
4704 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4705 frame_unwind_address_in_block, instead of frame_pc_unwind.
4706 (dwarf2_frame_cache): Ditto.
4707
e6e5e94c
AC
47082003-07-18 Andrew Cagney <cagney@redhat.com>
4709
4710 * user-regs.h (struct gdbarch): Declare opaque.
4711 * ui-out.h (struct ui_file): Declare opaque.
4712 * dwarf2-frame.h (struct frame_info): Declare opaque.
4713
5483d879
KW
47142003-07-18 Kris Warkentin <kewarken@qnx.com>
4715
4716 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4717 #include "...".
4718 (procfs_meminfo): Change strerror to safe_strerror.
4719 (procfs_can_run): Remove K&R badness.
4720
278a7cf7
MS
47212003-07-17 Michael Snyder <msnyder@redhat.com>
4722
4723 * remote-sim.c: Comment typo fix.
4724
606e3b82
AC
47252003-07-17 Andrew Cagney <cagney@redhat.com>
4726
4727 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4728 configure.
4729 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4730 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4731 GDB_MULTI_ARCH_PARTIAL.
4732
c43af07c
EZ
47332003-07-17 Elena Zannoni <ezannoni@redhat.com>
4734
4735 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4736 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4737 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4738
3b85b0f1
TR
47392003-07-16 Theodore A. Roth <troth@openavr.org>
4740
4741 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4742 found.
4743 (avr_frame_unwind_cache): Don't unwind FP for main.
4744 Update a comment.
4745 Save the computed prev_sp.
4746 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4747 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4748 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4749
336d1bba
AC
47502003-07-16 Andrew Cagney <cagney@redhat.com>
4751
4752 * frame-base.h (frame_base_p_ftype): Delete definition.
4753 (frame_base_append_predicate): Delete declaration.
4754 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4755 (frame_unwind_append_predicate): Delete declaration.
4756 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4757 (append_predicate): Delete parameter "p".
4758 (frame_unwind_append_predicate): Delete function.
4759 (frame_unwind_append_sniffer): Update call to append_predicate.
4760 (frame_unwind_free): Delete function.
4761 (_initialize_frame_unwind): Pass NULL as "free" to
4762 register_gdbarch_data.
4763 (frame_unwind_init): Append the dummy_frame_sniffer.
4764 (frame_unwind_find_by_frame): Simplify.
4765 * frame-base.c (struct frame_base_table): Delete field "p".
4766 (append_predicate): Delete parameter "p".
4767 (frame_base_append_predicate): Delete function.
4768 (frame_base_append_sniffer): Update call to append_predicate.
4769 (frame_base_free): Delete function.
4770 (frame_base_find_by_frame): Simplify.
4771 (_initialize_frame_base): Pass NULL as "free" to
4772 register_gdbarch_data.
4773 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4774 (x86_64_sigtramp_frame_sniffer): Replace
4775 "x86_64_sigtramp_frame_p".
4776 (x86_64_init_abi): Set the frame unwind sniffers.
4777 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4778 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4779 (m68k_gdbarch_init): Set the frame unwind sniffers.
4780 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4781 "i386_sigtramp_frame_p".
4782 (i386_frame_sniffer): Replace "i386_frame_p".
4783 (i386_gdbarch_init): Set the frame unwind sniffers.
4784 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4785 (avr_gdbarch_init): Set the frame unwind sniffers.
4786 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4787 "alpha_sigtramp_frame_p"
4788 (alpha_heuristic_frame_sniffer): Replace
4789 "alpha_heuristic_frame_p".
4790 (alpha_gdbarch_init): Set the frame unwind sniffers.
4791 (alpha_dwarf2_init_abi): Ditto.
4792 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4793 "alpha_debug_frame_p".
4794 (alpha_mdebug_frame_base_sniffer): Replace
4795 "alpha_mdebug_frame_base_p".
4796 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4797 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4798 (d10v_gdbarch_init): Set the frame unwind sniffer.
4799 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4800 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4801 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4802 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4803 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4804 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4805
48db5a3c
CV
48062003-07-16 Michael Snyder <msnyder@redhat.com>
4807
4808 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4809 should go thru sh_dsp_register_sim_regno, else the dsp regs
4810 will not get the right values.
4811
48122003-07-16 Corinna Vinschen <vinschen@redhat.com>
4813
4814 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4815 deprecated_store_floating by call to store_typed_floating.
4816 (sh_sh4_register_convert_to_raw): Substitute call to
4817 deprecated_extract_floating by call to extract_typed_floating.
4818
48192003-07-16 Corinna Vinschen <vinschen@redhat.com>
4820
4821 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4822
48232003-07-16 Corinna Vinschen <vinschen@redhat.com>
4824
4825 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4826 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4827 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4828 as possible.
4829 (do_pseudo_register): Remove.
4830 (sh_push_dummy_code): New function.
4831 (sh64_store_struct_return): Rename from sh_store_struct_return.
4832 Only called for sh64 now.
4833 (sh_extract_struct_value_address): Regcache'ify.
4834 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4835 and accomodate new tasks.
4836 (sh64_push_return_address): Rename from sh_push_return_address.
4837 Only called for sh64 now.
4838 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4839 Regcache'ify.
4840 (sh3e_sh4_extract_return_value): Regcache'ify.
4841 (sh_default_store_return_value): Ditto.
4842 (sh3e_sh4_store_return_value): Ditto.
4843 (sh_default_register_byte): Remove.
4844 (sh_sh4_register_byte): Remove.
4845 (sh_default_register_raw_size): Remove.
4846 (sh_sh4_register_raw_size): Remove.
4847 (sh_register_virtual_size): Remove.
4848 (sh_sh3e_register_virtual_type): Remove.
4849 (sh_sh3e_register_type): New function.
4850 (sh_sh4_register_virtual_type): Remove.
4851 (sh_sh4_register_type): New function.
4852 (sh_default_register_virtual_type): Remove.
4853 (sh_default_register_type): New function.
4854 (do_fv_register_info): Add parameters to accomodate call from
4855 sh_print_registers_info.
4856 (do_dr_register_info): Ditto.
4857 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4858 Add parameters to accomodate call from sh_print_registers_info.
4859 (sh_do_fp_register): Ditto.
4860 (sh64_do_pseudo_register): Call do_dr_register_info,
4861 do_fv_register_info and sh_do_fp_register with default parameters.
4862 (sh_do_register): Add parameters to accomodate call from
4863 sh_print_registers_info.
4864 (sh_print_register): Ditto.
4865 (sh_print_registers_info): Rename from sh_do_registers_info.
4866 Add parameters to be used as gdbarch_print_registers_info
4867 implementation. Accomodate removed do_pseudo_register function
4868 pointer.
4869 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4870 function pointer. Call sh_print_register with default parameters.
4871 (sh64_do_registers_info): Call sh_print_registers_info instead of
4872 sh_do_registers_info.
4873 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4874 detection of deprecated vs. non-deprecated functionality.
4875 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4876 function pointer assignments by direct function calls.
4877
e8a89fe2
AC
48782003-07-15 Andrew Cagney <cagney@redhat.com>
4879
4880 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4881 (frame_register_unwind, create_new_frame): Ditto.
4882 (legacy_get_prev_frame, get_frame_type): Ditto.
4883 (get_frame_base_address): Use frame_base_find_by_frame.
4884 (get_frame_locals_address): Use frame_base_find_by_frame.
4885 (get_frame_args_address): Use frame_base_find_by_frame.
4886 * frame-base.h (frame_base_sniffer_ftype): Declare.
4887 (frame_base_append_sniffer): Declare.
4888 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4889 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4890 (frame_base_append_sniffer): New function.
4891 (frame_base_append_predicate): Add a NULL sniffer.
4892 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4893 (struct frame_base_table): Add "sniffer".
4894 (frame_base_free): Free the "sniffer" table.
4895 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4896 (frame_unwind_append_sniffer): Declare.
4897 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4898 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4899 (struct frame_unwind_table): Add "sniffer", delete "middle".
4900 (append_predicate): Add "sniffer" parameter, append the sniffer.
4901 (frame_unwind_init): Update append_predicate call.
4902 (frame_unwind_append_sniffer): New function.
4903 (frame_unwind_append_predicate): Update append_predicate call.
4904 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4905
0714963c
AC
49062003-07-15 Andrew Cagney <cagney@redhat.com>
4907
4908 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4909 before code inhibiting repeated unwind attempts. Add to
4910 commentary on that test's problems.
4911 * blockframe.c (inside_main_func): Look for "main" in the minimal
4912 symbol table.
4913 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4914 identical.
4915
d9170e22
AC
49162003-07-15 Andrew Cagney <cagney@redhat.com>
4917
4918 * complaints.c (struct explanation): Define.
4919 (struct complaints): Change type of "explanation" to "struct
4920 explanation".
4921 (symfile_explanations): Convert to a "struct explanation" table.
4922 (vcomplaint): Update.
4923
eba29c8c
ML
49242003-07-15 Michal Ludvig <mludvig@suse.cz>
4925
4926 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4927 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4928 x86_64_linux_(fill,supply)_gregset functions.
4929 * x86-64-linux-tdep.c (USER_*): New defines.
4930 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4931 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4932 New functions.
4933 (fetch_core_registers): Ditto.
4934 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4935 * x86-64-linux-tdep.h: New file.
4936 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4937 and core-regset.o.
4938 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4939
68cc0bfb
MK
49402003-07-13 Mark Kettenis <kettenis@gnu.org>
4941
88a115f7
MK
4942 * x86-64-tdep.c (x86_64_store_return_value): Use
4943 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4944
68cc0bfb
MK
4945 * configure.host: Add x86_64-*-freebsd*.
4946 * configure.tgt: Add x86_64-*-freebsd*.
4947 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4948 * amd64fbsd-nat.c: New file.
4949 * amd64fbsd-tdep.c: New file.
4950 * config/i386/nm-fbsd64.h: New file.
4951 * config/i386/fbsd64.mh: New file.
4952 * config/i386/fbsd64.mt: New file.
4953
138e7be5
MK
49542003-07-11 Mark Kettenis <kettenis@gnu.org>
4955
4956 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4957 `sc_regs_offset' and `sc_fpregs_offset'.
4958 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4959 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4960 (alpha_sigtramp_register_address): Rewrite to use new members of
4961 `struct gdbarch_tdep'.
4962 (alpha_gdbarch_init): Initialize new members of struct
4963 gdbarch_tdep'.
4964 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4965 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4966 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4967 (alphafbsd_pc_in_sigtramp): Implement.
4968 (alphafbsd_sigtramp_offset): New function.
4969 (alphafbsd_sigcontext_addr): New function.
4970 (alphafbsd_init_abi): Initialize signal trampoline related members
4971 of `struct gdbarch_tdep'.
4972 (_initialize_alphafbsd_tdep): Add prototype.
4973
95303a68
TR
49742003-07-11 Theodore A. Roth <troth@openavr.org>
4975
ba292e4c
TR
4976 * Makefile.in (install-only): Quote sed expression when generating
4977 transformed_name.
95303a68 4978
6896c0c7
RH
49792003-07-11 Richard Henderson <rth@redhat.com>
4980
4981 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4982 * dwarf2-frame.c: Include complaints.h.
4983 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4984 variable initialization; return NULL on error.
4985 (decode_frame_entry): New.
4986
8edd5d01
AC
49872003-07-11 Andrew Cagney <cagney@redhat.com>
4988
c4a09524
AC
4989 * frame.h (frame_address_in_block): Delete declaration.
4990 * blockframe.c (frame_address_in_block): Delete function.
4991 (get_frame_block): Use get_frame_address_in_block.
4992 (block_innermost_frame): Ditto.
4993 * stack.c (print_frame, backtrace_command_1): Ditto.
4994
8edd5d01
AC
4995 * frame.h (get_frame_address_in_block): Declare.
4996 (frame_unwind_address_in_block): Declare.
4997 * frame.c (frame_unwind_address_in_block): New function.
4998 (get_frame_address_in_block): New function.
4999
f7968451
AC
50002003-07-10 Andrew Cagney <cagney@redhat.com>
5001
5002 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5003 pre-default. Note: re-generate has no effect.
a8f4cde1 5004
ae99b398
AC
50052003-07-10 Andrew Cagney <cagney@redhat.com>
5006
5007 * gdbarch.sh: When a variable, but not a function, compare against
5008 0. Fix problem in previous patch.
5009 * gdbarch.c: Re-generate.
a8f4cde1 5010
956ac328
AC
50112003-07-10 Andrew Cagney <cagney@redhat.com>
5012
5013 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5014 functions against NULL, not 0.
5015 * gdbarch.c: Re-generate.
a8f4cde1 5016
287c3240
FF
50172003-07-10 Fred Fish <fnf@ninemoons.com>
5018
5019 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5020 null string instead of a null pointer.
5021 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5022
32f63c4b
MS
50232003-07-09 Michael Snyder <msnyder@redhat.com>
5024
5025 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5026
402ecd56
MK
50272003-07-09 Mark Kettenis <kettenis@gnu.org>
5028
5029 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5030 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5031 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5032 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5033 * x86-64-tdep.c: ... from here.
5034
c481dac7
AS
50352003-07-09 Andreas Schwab <schwab@suse.de>
5036
5037 * m68k-tdep.h (enum struct_return): Define.
5038 (struct gdbarch_tdep): Add struct_return.
5039 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5040 bytes are padded to the right, not to the left. Pass struct value
5041 address in register %a1, not on stack.
5042 (m68k_use_struct_convention): New function.
5043 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5044 struct_return in tdep to pcc_struct_return.
5045 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5046 reg_struct_return.
5047
a8f4cde1 50482003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5049
a8f4cde1 5050 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5051
96a4ee76
AC
50522003-07-09 Andrew Cagney <cagney@redhat.com>
5053
5054 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5055 Add comments about the checks.
5056
1517c6d1
AC
50572003-07-08 Andrew Cagney <cagney@redhat.com>
5058
5059 * Makefile.in: Make dependency section headers consistent.
5060 (config_h): Move to $BUILD headers section.
5061 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5062 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5063 (ada-exp.tab.c): Move to YACC/LEX section.
5064 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5065 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5066
dc5dd1eb
KW
50672003-07-08 Kris Warkentin <kewarken@qnx.com>
5068
5069 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5070 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5071 of strerror with safe_strerror, use ISO C function definitions,
5072 and replace instances of sprintf with snprintf.
dc5dd1eb 5073
612dde91
AC
50742003-07-07 Andrew Cagney <cagney@redhat.com>
5075
5076 * frame.c (get_prev_frame): Enable check for identical frames.
5077 Update comments. Update error messages.
5078
492c11d3
JB
50792003-07-07 Joel Brobecker <brobecker@gnat.com>
5080
5081 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5082
376a5a49
JB
50832003-07-07 Joel Brobecker <brobecker@gnat.com>
5084
5085 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5086 sort_symtab_syms, no longer necessary.
5087
22b4a9ad
JB
50882003-07-07 Joel Brobecker <brobecker@gnat.com>
5089
5090 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5091
5bbcb741
JB
50922003-07-07 Joel Brobecker <brobecker@gnat.com>
5093
5094 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5095 (mips_register_byte): Likewise.
5096
c139e7d9
DJ
50972003-07-07 Daniel Jacobowitz <drow@mvista.com>
5098
5099 * Makefile.in (sparc_tdep_h): New.
5100 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5101 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5102 * sparc-linux-nat.c: Include "sparc-tdep.h".
5103 * sparc-nat.c: Likewise.
5104 * sparc-tdep.c: Likewise.
5105 * sparc64nbsd-nat.c: Likewise.
5106 * sparcnbsd-nat.c: Likewise.
5107 * sparcnbsd-tdep.c: Likewise.
5108 * sparc-tdep.h: New file.
5109 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5110 and sparc_npc_regnum.
5111
fd8f87c5
DJ
51122003-07-07 Daniel Jacobowitz <drow@mvista.com>
5113
5114 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5115 (mips_linux_cannot_store_register): List supported instead of
5116 unsupported registers.
5117
13adf674
DJ
51182003-07-07 Daniel Jacobowitz <drow@mvista.com>
5119
5120 * disasm.c (dump_insns): Separate instructions from addresses.
5121
8de307e0
AS
51222003-07-07 Andreas Schwab <schwab@suse.de>
5123
5124 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5125 dependencies.
5126 * m68k-tdep.c (NUM_FREGS): Delete.
5127 (SIG_PC_FP_OFFSET): Delete.
5128 (TARGET_M68K): Delete.
5129 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5130 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5131 P_MOVEL_SP, P_MOVEML_SP): Define.
5132 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5133 P_TRAP): Delete.
5134 (m68k_register_raw_size): Delete.
5135 (m68k_register_virtual_size): Delete.
5136 (m68k_register_type): Renamed from m68k_register_virtual_type and
5137 add gdbarch argument.
5138 (m68k_store_struct_return): Delete.
5139 (m68k_deprecated_extract_return_value): Delete.
5140 (m68k_deprecated_extract_struct_value_address): Delete.
5141 (m68k_frame_chain): Delete.
5142 (m68k_frame_saved_pc): Delete.
5143 (m68k_fix_call_dummy): Delete.
5144 (m68k_push_dummy_frame): Delete.
5145 (m68k_pop_frame): Delete.
5146 (m68k_extract_return_value): New function.
5147 (m68k_store_return_value): Rewrite using regcache.
5148 (m68k_extract_struct_value_address): Rewrite using regcache.
5149 (m68k_push_dummy_call): New function.
5150 (struct m68k_frame_cache): Define.
5151 (m68k_alloc_frame_cache): New function.
5152 (m68k_analyze_frame_setup): New function.
5153 (m68k_analyze_register_saves): New function.
5154 (m68k_analyze_prologue): New function.
5155 (m68k_skip_prologue): Rewrite using above functions.
5156 (m68k_unwind_pc): New function.
5157 (m68k_frame_cache): New function.
5158 (m68k_frame_this_id): New function.
5159 (m68k_frame_prev_register): New function.
5160 (m68k_frame_unwind): New variable.
5161 (m68k_frame_p): New function.
5162 (m68k_sigtramp_frame_cache): New function.
5163 (m68k_sigtramp_frame_this_id): New function.
5164 (m68k_sigtramp_frame_prev_register): New function.
5165 (m68k_sigtramp_frame_unwind): New variable.
5166 (m68k_sigtramp_frame_p): New function.
5167 (m68k_frame_base_address): New function.
5168 (m68k_frame_base): New function.
5169 (m68k_unwind_dummy_id): New function.
5170 (fill_gregset): Use regcache_collect.
5171 (fill_fpregset): Likewise.
5172 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5173 defined.
5174 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5175 deprecated_init_frame_pc, deprecated_store_struct_return,
5176 deprecated_extract_return_value, deprecated_store_return_value,
5177 deprecated_frame_chain, deprecated_frame_saved_pc,
5178 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5179 deprecated_register_virtual_size,
5180 deprecated_max_register_raw_size,
5181 deprecated_max_register_virtual_size,
5182 deprecated_register_virtual_type, deprecated_register_size,
5183 deprecated_register_byte, deprecated_register_bytes,
5184 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5185 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5186 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5187 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5188 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5189 deprecated_push_dummy_frame, deprecated_pop_frame,
5190 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5191 only if SYSCALL_TRAP is defined. Set extract_return_value,
5192 store_return_value, extract_struct_value_address, register_type,
5193 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5194 predicates.
5195 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5196 M68K_MAX_REGISTER_SIZE): Define.
5197 (struct m68k_sigtramp_info): Define.
5198 (struct gdbarch_tdep): Add get_sigtramp_info.
5199 * m68klinux-nat.c (fetch_register): Use register_size instead of
5200 REGISTER_RAW_SIZE. Don't put assignment in if.
5201 (store_register): Likewise.
5202 (fetch_inferior_registers): Likewise.
5203 (store_inferior_registers): Likewise.
5204 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5205 (m68k_linux_frame_saved_pc): Delete.
5206 (m68k_linux_sigcontext_reg_offset,
5207 m68k_linux_ucontext_reg_offset): Define.
5208 (m68k_linux_get_sigtramp_info): New function.
5209 (m68k_linux_extract_return_value): Rewrite using regcache.
5210 (m68k_linux_store_return_value): Likewise.
5211 (m68k_linux_extract_struct_value_address): Likewise.
5212 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5213 Don't set deprecated_frame_saved_pc,
5214 deprecated_extract_return_value, deprecated_store_return_value,
5215 deprecated_extract_struct_value_address. Set
5216 extract_return_value, store_return_value,
5217 extract_struct_value_address.
5218
eb8bc282
AC
52192003-07-07 Andrew Cagney <cagney@redhat.com>
5220
5221 * expprint.c: Include "user-regs.h" instead of "frame.h".
5222 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5223 frame_map_regnum_to_name.
5224 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5225 (frame_map_name_to_regnum): Simplify, call
5226 user_reg_map_name_to_regnum.
5227 (frame_map_regnum_to_name): Simplify, call
5228 user_reg_map_regnum_to_name.
5229 (frame_register_unwind): Update.
5230 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5231 (_initialize_frame_reg): Call user_reg_add_builtin.
5232 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5233 (value_of_register): Use value_of_user_reg.
5234 * eval.c (evaluate_subexp_standard): Update.
5235 * parse.c (write_dollar_variable): Update.
5236 * d10v-tdep.c (d10v_print_registers_info): Update.
5237 * infcmd.c (registers_info): Update.
5238 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5239 (builtin_regs_h): Delete macro.
5240 (user_regs_h): Define.
5241 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5242 (builtin-regs.o): Delete target.
5243 (user-regs.o): Specify dependencies.
5244 (expprint.o): Update dependencies.
5245 (findvar.o): Update dependencies.
5246 (frame.o): Update dependencies.
5247 (std-regs.o): Update dependencies.
5248
9f476a01
CF
52492003-07-06 Christopher Faylor <cgf@redhat.com>
5250
5251 * win32-nat.c (solib_symbols_add): Use one variable for all section
5252 address stuff. Pass variable rather than address of variable to
5253 safe_symbol_file_add.
5254
a731b831
AS
52552003-07-06 Andreas Schwab <schwab@suse.de>
5256
5257 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5258
9f83329d
JB
52592003-07-04 Joel Brobecker <brobecker@gnat.com>
5260
5261 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5262
27e28cc5
KW
52632003-07-04 Kris Warkentin <kewarken@qnx.com>
5264
5265 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5266
52672003-07-04 Kris Warkentin <kewarken@qnx.com>
5268
5269 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5270 * config/i386/nto.mh: New file.
5271 * config/i386/nm-nto.h: New file.
5272 * configure.host: Add i[3456]86-*-nto*.
5273
100f2e98
JB
52742003-07-03 Joel Brobecker <brobecker@gnat.com>
5275
5276 * remote-vx.c (vx_add_symbols): Fix compilation error.
5277
e23457df
AC
52782003-07-03 Andrew Cagney <cagney@redhat.com>
5279
5280 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5281 * gdbarch.h, gdbarch.c: Re-generate.
5282 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5283 (legacy_register_name): Declare.
5284 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5285 (REGISTER_NAME): Define.
5286 * sparc-tdep.c (legacy_register_name): New function.
5287 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5288 (REGISTER_NAME): Define.
5289 (hppa64_register_name): Declare.
5290 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5291 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5292 (hppa64_register_name): New function.
5293 (hppa_register_name): New function.
5294 * arch-utils.c (legacy_register_name): Delete.
5295 * arch-utils.h (legacy_register_name): Delete.
5296
38caaeec
DJ
52972003-07-03 Daniel Jacobowitz <drow@mvista.com>
5298
5299 * cli/cli-interp.c (cli_interpreter_resume): Update the
5300 cli_uiout's stream to gdb_stdout.
5301
dadd712e
AC
53022003-07-03 Andrew Cagney <cagney@redhat.com>
5303
5304 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5305 predicate.
5306 * gdbarch.h, gdbarch.c: Re-generate.
5307 * regcache.c (init_regcache_descr): Use legacy code when either
5308 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5309
c7f1390e
DJ
53102003-07-02 Daniel Jacobowitz <drow@mvista.com>
5311
5312 * NEWS: Move "set logging" entry into GDB 6.0 section.
5313
4bc8c588
JB
53142003-07-02 Jim Blandy <jimb@redhat.com>
5315
a9dd42f1
JB
5316 * s390-tdep.c (struct frame_extra_info): new member:
5317 'stack_bought_valid'.
5318 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5319 initialize fextra_info->stack_bought.
5320 (s390_frameless_function_invocation): Don't trust the value of
5321 fextra_info_ptr->stack_bought unless
5322 fextra_info->stack_bought_valid is set.
5323
4bc8c588
JB
5324 New S390 prologue analyzer.
5325 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5326 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5327 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5328 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5329 compute_x_addr, s390_on_stack, s390_store,
5330 s390_get_signal_frame_info): New functions.
5331 (S390_NUM_SPILL_SLOTS): New macro.
5332 (s390_get_frame_info): Rewritten.
5333 (is_arg_reg): Deleted.
5334
5335 Break out the decoding of S/390 instructions into separate
5336 functions, to make it more legible, and easier to check
5337 against the spec.
5338 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5339 is_rx, is_rxe): New functions.
5340 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5341 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5342 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5343 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5344 enums for opcode values. (Is this an improvement?)
5345
fd13a04a
AC
53462003-07-02 Andrew Cagney <cagney@redhat.com>
5347
5348 * i386-tdep.c: Revert change committed as part of trad-frame code
5349 below.
5350
3f8091c1
DJ
53512003-07-02 Daniel Jacobowitz <drow@mvista.com>
5352
5353 * breakpoint.c (insert_catchpoint): Make static.
5354
8dd5115e
AS
53552003-07-02 Andreas Schwab <schwab@suse.de>
5356
5357 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5358 former ia64_push_arguments and ia64_push_return_address, and use
5359 regcache functions instead of read/write_register.
5360 (ia64_gdbarch_init): Set push_dummy_call instead of
5361 deprecated_push_arguments and deprecated_push_return_address.
5362
a2229c23
AJ
53632003-07-01 Andreas Jaeger <aj@suse.de>
5364
5365 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5366 before the call.
5367 Set %rax only to number of SSE registers used.
5368
3b3850e8
AC
53692003-07-01 Andrew Cagney <cagney@redhat.com>
5370
5371 * trad-frame.h: Update comments, a -1 .addr is reserved.
5372 (trad_frame_value_p, trad_frame_addr_p): Declare.
5373 (trad_frame_reg_p): Declare.
5374 (trad_frame_set_value): Rename trad_frame_register_value.
5375 (trad_frame_set_unknown): Declare.
5376 * trad-frame.c (trad_frame_realreg_p): New function.
5377 (trad_frame_addr_p, trad_frame_value_p): New function.
5378 (trad_frame_set_unknown): New function.
5379 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5380 (trad_frame_prev_register): Use trad_frame_realreg_p,
5381 trad_frame_addr_p and trad_frame_value_p.
5382 (trad_frame_set_value): Rename trad_frame_register_value.
5383 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5384 and trad_frame_set_value.
a2229c23 5385
4d819d0e
JB
53862003-06-30 Jim Blandy <jimb@redhat.com>
5387
5388 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5389 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5390 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5391 for 16 registers, and then 32 more bytes.
5392 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5393 New macros.
5394 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5395 Move up in the file, since it's now used by is_simple_arg.
5396 (is_simple_arg): Don't assume registers are four bytes long.
5397 Exclude all double arguments. Extended floats are not simple
5398 args.
5399 (is_power_of_two): New function.
5400 (pass_by_copy_ref): Call is_power_of_two, and check that the
5401 length fits in a register, rather than listing all the acceptable
5402 sizes. Extended floats are not passed by reference.
5403 (s390_push_arguments): Don't assume registers are four bytes long.
5404 Reserve an argument register to point to the buffer for structures
5405 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5406 S390_STACK_FRAME_OVERHEAD.
5407
1ad828f1
AS
54082003-06-30 Andreas Schwab <schwab@suse.de>
5409
5410 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5411 format error message.
5412
39b00981
JB
54132003-06-30 Joel Brobecker <brobecker@gnat.com>
5414
5415 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5416
b2a7f303
DC
54172003-06-30 David Carlton <carlton@kealia.com>
5418
5419 Band-aid for PR c++/1245.
5420 * Makefile.in (cp-support.o): Depend on complaints_h.
5421 * cp-support.c: Include complaints.h. Add declaration for
5422 find_last_component.
5423 (cp_find_first_component): Separate code into
5424 cp_find_first_component_aux.
5425 (cp_find_first_component_aux): Call demangled_name_complaint.
5426 (demangled_name_complaint): New.
5427
a257b5bb
AC
54282003-06-30 Andrew Cagney <cagney@redhat.com>
5429
5430 * remote.c (remote_write_bytes): Explicitly compute and then use
5431 the payload size. Update comments to reflect. Fixes problem of
5432 GDB not sending small packets as found by Fred Fish.
5433
0a2cfde4
AC
54342003-06-30 Andrew Cagney <cagney@redhat.com>
5435
5436 * remote.c (remote_async_wait): Fix -Wformat problem.
5437
3fcb8548
AC
54382003-06-29 Andrew Cagney <cagney@redhat.com>
5439
5440 * remote.c (remote_wait): Call error, and not warning, when the
5441 packet is corrupt.
5442 (remote_async_wait): Ditto.
5443
9f9970a3
DJ
54442003-06-29 Daniel Jacobowitz <drow@mvista.com>
5445
5446 * sparc-tdep.c (sparc_y_regnum): Make external again.
5447
83a8ccca
DJ
54482003-06-29 Daniel Jacobowitz <drow@mvista.com>
5449
5450 * cli/cli-logging.c (pop_output_files): Add void to function
5451 definition.
5452
d2cf594a
AC
54532003-06-29 Andrew Cagney <cagney@redhat.com>
5454
5455 * frame.c (frame_register_unwind): Use unsigned char when dumping
5456 the buffer contents.
5457
0fac0b41
DJ
54582003-06-28 Daniel Jacobowitz <drow@mvista.com>
5459
5460 * cli/cli-logging.c: New file.
5461 * cli-out.c (struct ui_out_data): Add original_stream.
5462 (cli_redirect): New function.
5463 (cli_ui_out_impl): Add cli_redirect.
5464 (cli_out_new): Initialize original_stream.
5465 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5466 (uo_redirect, ui_out_redirect): New.
5467 * ui-out.h (struct ui_out_impl): Add redirect member.
5468 (redirect_ftype): New.
5469 (ui_out_redirect): Add prototype.
5470 * Makefile.in: Add rules for cli-logging.c.
5471 * NEWS: Mention "set logging".
5472
88a07d7c
EZ
54732003-06-27 Elena Zannoni <ezannoni@redhat.com>
5474
5475 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5476
4eb58876
AC
54772003-06-27 Andrew Cagney <cagney@redhat.com>
5478
5479 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5480 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5481 * avr-tdep.c (avr_call_dummy_address): Delete function.
5482 (avr_gdbarch_init): Do not set call_dummy_address.
5483
1549f619
EZ
54842003-06-27 Elena Zannoni <ezannoni@redhat.com>
5485
5486 * symfile.c (syms_from_objfile): Move variables to inner block.
5487 Move the checks for the non-mainline case a bit earlier to avoid
5488 doing some useless computations.
5489
3cb3398d
EZ
54902003-06-27 Elena Zannoni <ezannoni@redhat.com>
5491
5492 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5493
3799ccc6
EZ
54942003-06-26 Elena Zannoni <ezannoni@redhat.com>
5495
5496 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5497 sections.
5498
ce1f6491
MC
54992003-06-26 Michael Chastain <mec@shout.net>
5500
5501 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5502 gdb/testsuite/gdb.c++/pr-1210.exp.
5503
d958dfd0
AC
55042003-06-26 Andrew Cagney <cagney@redhat.com>
5505
5506 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5507 altivec_expression.h and altivec_registers.h.
5508
d31431ed
AC
55092003-06-26 Andrew Cagney <cagney@redhat.com>
5510
5511 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5512 info->mach when MIPS16. Patch suggested by Fred Fish.
5513
714b1282
AC
55142003-06-26 Andrew Cagney <cagney@redhat.com>
5515
5516 * utils.c (internal_vproblem): Print the problem to a reason
5517 buffer and then pass to query. Make the msg variable more local.
5518
42efa47a
AC
55192003-06-26 Andrew Cagney <cagney@redhat.com>
5520
5521 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5522 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5523 * gdbarch.h, gdbarch.c: Re-generate.
5524 * frame-base.c (default_frame_args_address): Update. Use
5525 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5526 not available.
5527 (default_frame_locals_address): Ditto for
5528 DEPRECATED_FRAME_LOCALS_ADDRESS.
5529 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5530 (vax_frame_num_args): Update.
5531 (vax_gdbarch_init): Update.
5532 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5533 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5534 * mcore-tdep.c (mcore_gdbarch_init): Update.
5535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5536 * ia64-tdep.c (ia64_gdbarch_init): Update.
5537 * symtab.h (address_class): Update comments.
5538 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5539 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5540 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5541 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5542 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5543 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5544 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5545 * alpha-mdebug-tdep.c: Update.
5546 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5547
8ffd9b1b
AJ
55482003-06-26 Andreas Jaeger <aj@suse.de>
5549
5550 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5551 of SSE registers so that varargs functions work. Rework handling
5552 of passing arguments on the stack.
5553 (x86_64_store_return_value): Return double and float values in SSE
5554 register.
5555
e8ac10a6
MC
55562003-06-24 Michael Chastain <mec@shout.net>
5557
5558 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5559 the "constructor breakpoints ignored" bug.
5560
986af8e6
DC
55612003-06-25 David Carlton <carlton@kealia.com>
5562
5563 * MAINTAINERS: Update e-mail address.
5564
d64558a5
JB
55652003-06-24 Jim Blandy <jimb@redhat.com>
5566
e538d2d7
JB
5567 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5568
02631ec0
JB
5569 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5570 function.
5571 (ppc_linux_init_abi): Register it as the
5572 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5573
e716d87a
JB
5574 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5575 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5576 method.
5577
d64558a5
JB
5578 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5579 (ppc64_standard_linkage_target): Use it.
5580
449a5da4
AC
55812003-06-23 Andrew Cagney <cagney@redhat.com>
5582
5583 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5584 for 0 "int0" and 4 "int32" sized registers.
5585 * gdbtypes.c (builtin_type_int0): Define.
5586 (build_gdbtypes): Initialize builtin_type_int0.
5587 * gdbtypes.h (builtin_type_int0): Declare.
5588
b2a02dda
SC
55892003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5590
5591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5592 as characters are unsigned.
5593
fba3138e
DJ
55942003-06-22 Daniel Jacobowitz <drow@mvista.com>
5595
5596 PR gdb/1179
5597 * dwarfread.c (struct_type): Skip static fields without crashing.
5598
f6c8180b
AC
55992003-06-22 Andrew Cagney <cagney@redhat.com>
5600
5601 GDB 6.0 branch created.
f2c06f52
AC
5602 * README: Update.
5603 * PROBLEMS: Update. Empty.
5604 * NEWS: Update.
f6c8180b 5605
ae822768
DJ
56062003-06-22 Daniel Jacobowitz <drow@mvista.com>
5607
5608 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5609 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5610
261de166
AC
56112003-06-22 Andrew Cagney <cagney@redhat.com>
5612
5613 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5614 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5615 Velikov.
5616
30e94205
DJ
56172003-06-22 Daniel Jacobowitz <drow@mvista.com>
5618
5619 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5620 compilers.
5621
9e14d721
DJ
56222003-06-21 Daniel Jacobowitz <drow@mvista.com>
5623
5624 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5625 argument of val_print.
5626 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5627 to the address argument of baseclass_offset or target_read_memory.
5628 Do add it to the argument of cp_print_value_fields.
5629
a4b8ebc8
AC
56302003-06-21 Andrew Cagney <cagney@redhat.com>
5631
5632 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5633 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5634 instead of 0..NUM_REGS.
5635 (mips_register_reggroup_p): New function.
5636 (mips_pseudo_register_write): New function.
5637 (mips_pseudo_register_read): New function.
5638 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5639 based on the register's type.
5640 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5641 cooked.
5642 (mips_get_saved_register): Simplify. Assert that REGNO is a
5643 pseudo / cooked.
5644 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5645 (mips_register_type): Replace mips_register_virtual_type. Map
5646 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5647 when available.
5648 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5649 that the register is cooked / virtual.
5650 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5651 Only get the extra info when needed.
5652 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5653 (mips32_heuristic_proc_desc): Fetch the cooked register.
5654 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5655 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5656 (mips_print_register): Use gdbarch_register_type, instead of
5657 REGISTER_VIRTUAL_TYPE.
5658 (print_gp_register_row): Use gdbarch_register_type, instead of
5659 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5660 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5661 Print the pseudo / cooked registers.
5662 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5663 Print the pseudo / cooked registers.
5664 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5665 REG_NUM is pseudo / cooked.
5666 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5667 (mips_n32n64_xfer_return_value): Ditto.
5668 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5669 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5670 (mips_register_sim_regno): New function.
5671 (mips_gdbarch_init): Set deprecated_register_byte,
5672 register_group_p, pseudo_register_write, pseudo_register_read,
5673 register_sim_regno, and num_pseudo_regs. Set register_type,
5674 instead of register_virtual_type.
5675 * Makefile.in (mips-tdep.o): Update dependencies.
5676 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5677 REGISTER_VIRTUAL_TYPE.
5678 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5679 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5680 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5681 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5682 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5683
325ed089
DJ
56842003-06-21 Daniel Jacobowitz <drow@mvista.com>
5685
5686 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5687 * cli/cli-cmds.c: Include "gdb_vfork.h".
5688 (shell_escape): Use vfork.
5689
f0e7d0e8
AC
56902003-06-21 Andrew Cagney <cagney@redhat.com>
5691
c57bb9fa
AC
5692 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5693 32 bit floating-point register saves.
5694
6e51443a
AC
5695 * frame.h (deprecated_unwind_get_saved_register): Delete.
5696 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5697 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5698 and deprecated_get_next_frame_hack instead of
5699 deprecated_unwind_get_saved_register.
5700
ed183c7c
AC
5701 * mips-tdep.c (mips_dump_tdep): Do not print
5702 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5703
f0e7d0e8
AC
5704 * frame.c (get_frame_register): New function.
5705 (frame_unwind_register_signed): New function.
5706 (get_frame_register_signed): New function.
5707 (frame_unwind_register_unsigned): New function.
5708 (get_frame_register_unsigned): New function.
5709 * frame.h: Add comments on naming schema.
5710 (get_frame_register, frame_unwind_register_signed): Declare.
5711 (get_frame_register_signed, get_frame_register_signed): Declare.
5712 (frame_unwind_register_unsigned): Declare.
5713 (get_frame_register_unsigned): Declare.
5714
2224d941
TR
57152003-06-20 Theodore A. Roth <troth@openavr.org>
5716
5717 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5718
8619218d
TR
57192003-06-20 Theodore A. Roth <troth@openavr.org>
5720
5721 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5722 (avr_read_sp): Ditto.
5723
0b1b50c0
DJ
57242003-06-20 Daniel Jacobowitz <drow@mvista.com>
5725
5726 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5727 * config/arm/nm-linux.h: Likewise.
5728 * config/arm/tm-linux.h: Likewise.
5729 * config/ia64/nm-linux.h: Likewise.
5730 * config/ia64/tm-ia64.h: Likewise.
5731 * config/s390/tm-linux.h: Likewise.
5732 * config/s390/tm-s390.h: Likewise.
5733 * s390-nat.c: Likewise.
5734 * s390-tdep.c: Likewise.
5735
5736 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5737 * config/ia64/linux.mt: Likewise.
5738 * config/m68k/linux.mh: Likewise.
5739 * config/mips/linux.mt: Likewise.
5740 * config/powerpc/linux.mh: Likewise.
5741 * config/sh/linux.mt: Likewise.
5742
c8c18e65
KW
57432003-06-19 Kris Warkentin <kewarken@qnx.com>
5744
5745 * solib.c (solib_open): Change tests for whether to search
5746 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5747 comments.
5748
dcccef2e
TR
57492003-06-19 Theodore A. Roth <troth@openavr.org>
5750
5751 * avr-tdep.c (avr_frame_address): Delete function.
5752 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5753 set_gdbarch_frame_args_address.
5754
5861a190
AC
57552003-06-19 Andrew Cagney <cagney@redhat.com>
5756
5757 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5758 (REGISTER_CONVERT_FROM_TYPE): Delete.
5759 (mips_register_convert_to_type): Delete declaration.
5760 (mips_register_convert_from_type): Delete declaration.
5761 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5762 kernel/.
5763
0274a8ce
MS
57642003-06-19 Michael Snyder <msnyder@redhat.com>
5765
5766 * linux-nat.h: New file.
5767 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5768 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5769 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5770 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5771 (linux_make_note_section): Iterate over lwps instead of threads.
5772 (linux_do_thread_registers): Use lwp instead of merged pid.
5773 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5774 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5775 Add dependency on linux_nat_h.
5776
adf5f719
TR
57772003-06-19 Theodore A. Roth <troth@openavr.org>
5778
5779 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5780
6766a268
DJ
57812003-06-19 Daniel Jacobowitz <drow@mvista.com>
5782
5783 * varobj.c (get_type, get_target_type): Use check_typedef.
5784
1171114a
DJ
57852003-06-19 Daniel Jacobowitz <drow@mvista.com>
5786
5787 * breakpoint.c (insert_catchpoint): Call internal_error.
5788
adcf68a2
TR
57892003-06-19 Theodore A. Roth <troth@openavr.org>
5790
5791 * avr-tdep.c (avr_push_dummy_code): Delete function.
5792 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5793
ea67f13b
DJ
57942003-06-19 Daniel Jacobowitz <drow@mvista.com>
5795
5796 * arch-utils.c (default_prepare_to_proceed): Remove.
5797 (generic_prepare_to_proceed): Remove.
5798 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5799 (generic_prepare_to_proceed): Remove prototype.
5800 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5801 * gdbarch.c: Regenerate.
5802 * gdbarch.h: Regenerate.
5803 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5804 * hppah-nat.c (hppa_switched_threads): Remove.
5805 * infrun.c (prepare_to_proceed): New static function, copied from
5806 generic_prepare_to_proceed. Remove select_it argument.
5807 (proceed): Call prepare_to_proceed.
5808 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5809 variables.
5810 (ptrace_wait): Don't set the removed variables.
5811 (hppa_switched_threads): Remove.
5812 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5813 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5814 (lin_lwp_prepare_to_proceed): Remove prototype.
5815 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5816 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5817
4add8633
TR
58182003-06-18 Theodore A. Roth <troth@openavr.org>
5819
5820 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5821 trad-frame.h.
5822 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5823 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5824 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5825 (AVR_PROLOGUE_*): Enumerate prologue types.
5826 (struct frame_extra_info): Remove.
5827 (struct avr_unwind_cache): Define.
5828 (avr_write_sp): Delete function.
5829 (avr_read_fp): Ditto.
5830 (avr_init_extra_frame_info): Ditto.
5831 (avr_pop_frame): Ditto.
5832 (avr_frame_saved_pc): Ditto.
5833 (avr_saved_pc_after_call): Ditto.
5834 (avr_push_return_address): Ditto.
5835 (avr_frame_chain): Ditto.
5836 (avr_store_struct_return): Ditto.
5837 (avr_push_arguments): Ditto.
5838 (avr_scan_prologue): Update comments. Changed to set up the info for
5839 cache unwinding. Now returns end of prologue PC.
5840 (avr_skip_prologue): Better handling of functions lacking a prologue
5841 by using avr_scan_prologue.
5842 (avr_scan_arg_moves): New function.
5843 (avr_saved_regs_unwinder): Ditto.
5844 (avr_frame_unwind_cache): Ditto.
5845 (avr_unwind_pc): Ditto.
5846 (avr_frame_this_id): Ditto.
5847 (avr_frame_prev_register): Ditto.
5848 (avr_frame_p): Ditto.
5849 (avr_frame_base_address ): Ditto.
5850 (avr_unwind_dummy_id): Ditto.
5851 (avr_push_dummy_code): Ditto.
5852 (push_stack_item): Ditto.
5853 (pop_stack_item): Ditto.
5854 (avr_push_dummy_call): Ditto.
5855 (struct stack_item): Define.
5856 (avr_frame_unwind): Declare structure.
5857 (avr_frame_base): Ditto.
5858 (avr_gdbarch_init): Remove calls to
5859 set_gdbarch_deprecated_init_frame_pc,
5860 set_gdbarch_deprecated_target_read_fp,
5861 set_gdbarch_deprecated_dummy_write_sp,
5862 set_gdbarch_deprecated_fp_regnum,
5863 set_gdbarch_deprecated_push_arguments,
5864 set_gdbarch_deprecated_push_return_address,
5865 set_gdbarch_deprecated_pop_frame,
5866 set_gdbarch_deprecated_store_struct_return,
5867 set_gdbarch_deprecated_frame_init_saved_regs,
5868 set_gdbarch_deprecated_init_extra_frame_info,
5869 set_gdbarch_deprecated_frame_chain,
5870 set_gdbarch_deprecated_frame_saved_pc,
5871 set_gdbarch_deprecated_saved_pc_after_call.
5872 Add calls to set_gdbarch_push_dummy_call,
5873 set_gdbarch_push_dummy_code,
5874 frame_unwind_append_predicate,
5875 frame_base_set_default,
5876 set_gdbarch_unwind_dummy_id,
5877 set_gdbarch_unwind_pc.
5878 Wrap a long line.
5879
7be04a68
MS
58802003-06-18 Corinna Vinschen <vinschen@redhat.com>
5881
5882 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5883 registers for H8/300S.
5884 (h8300_print_registers_info): Ditto.
8ffd9b1b 5885 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5886
ae087d01
DJ
58872003-06-18 Daniel Jacobowitz <drow@mvista.com>
5888
5889 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5890 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5891 (lin_lwp_wait): Likewise. Update comments.
5892 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5893 (pull_pid_from_list, linux_record_stopped_pid): New.
5894
07d8f827
SC
58952003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5896
5897 * ada-lang.c (scan_discrim_bound): Name first argument.
5898 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5899 declared by ALL_BLOCK_SYMBOLS.
5900
7cb47b14
SC
59012003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5902
5903 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5904 ("regcache.h"): Include it.
5905 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5906
6ad8ae5c
DJ
59072003-06-17 Daniel Jacobowitz <drow@mvista.com>
5908
5909 * NEWS: Mention gdbserver detach change and "disconnect" command.
5910 * infcmd.c (disconnect_command): New function.
5911 (_initialize_infcmd): Add ``disconnect'' command.
5912 * remote.c (remote_async_detach): Delete.
5913 (remote_detach): Merge remote_async_detach.
5914 (remote_disconnect): New.
5915 (init_remote_ops): Set to_disconnect.
5916 (init_remote_cisco_ops): Likewise.
5917 (init_remote_async_ops): Likewise. Use remote_detach.
5918 * target.c (cleanup_target): Default to_disconnect.
5919 (update_current_target): Inherit to_disconnect.
5920 (target_disconnect, debug_to_disconnect): New functions.
5921 (setup_target_debug): Set to_disconnect.
5922 * target.h (struct target_ops): Add to_disconnect.
5923 (target_disconnect): Add prototype.
5924
687595f9
DJ
59252003-06-17 Daniel Jacobowitz <drow@mvista.com>
5926
5927 * breakpoint.c (insert_catchpoint): New function.
5928 (insert_breakpoints): Use catch_exceptions to call
5929 insert_catchpoint. Disable catchpoints if they fail to insert.
5930
29239a8f
DJ
59312003-06-17 Daniel Jacobowitz <drow@mvista.com>
5932
5933 * symfile.c (reread_symbols): Clear sym_private.
5934
2cdf3c63
AC
59352003-06-17 Andrew Cagney <cagney@redhat.com>
5936
5937 * trad-frame.h (struct frame_info): Add opaque declaration.
5938 * remote-fileio.h (struct cmd_list_element): Add opaque
5939 declaration.
5940 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5941 comments.
5942
cf0e1e0d
DJ
59432003-06-17 Daniel Jacobowitz <drow@mvista.com>
5944
5945 * remote.c (remote_prepare_to_store): Replace call to
5946 deprecated_read_register_bytes with multiple regcache_raw_read
5947 calls.
5948
192cdb19
KW
59492003-06-17 Kris Warkentin <kewarken@qnx.com>
5950
5951 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5952 (nto_find_and_open_solib): Likewise.
5953 (nto_init_solib_absolute_prefix): Likewise.
5954 (_initialize_nto_tdep): Fix indentation.
5955
89929b45
KW
59562003-06-17 Kris Warkentin <kewarken@qnx.com>
5957
5958 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5959
46019f27
KW
59602003-06-17 Kris Warkentin <kewarken@qnx.com>
5961
5962 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5963
1a38736e
JB
59642003-06-17 Jim Blandy <jimb@redhat.com>
5965
5966 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5967
3605c34a
TR
59682003-06-16 Theodore A. Roth <troth@openavr.org>
5969
5970 * avr-tdep.c (avr_extract_return_value): New function.
5971 (avr_gdbarch_init): Set extract_return_value method.
5972
870b3035
AC
59732003-06-16 Andrew Cagney <cagney@redhat.com>
5974
5975 * frame.h (deprecated_get_next_frame_hack): Declare.
5976 * frame.c (legacy_saved_regs_prev_register): Only require
5977 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5978 there are always saved regs.
5979 (deprecated_generic_get_saved_register): Do not require
5980 DEPRECATED_FRAME_INIT_SAVED_REGS.
5981 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5982 use frame ID unwind instead.
5983 (deprecated_get_next_frame_hack): New function.
5984
63d47a7d
CV
59852003-06-16 Corinna Vinschen <vinschen@redhat.com>
5986
5987 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5988 (h8300_push_dummy_call): ...this function. Some minor optimization.
5989 (h8300_push_return_address): Remove.
5990 (h8300_gdbarch_init): Remove calls to
5991 set_gdbarch_deprecated_dummy_write_sp,
5992 set_gdbarch_deprecated_push_arguments and
5993 set_gdbarch_deprecated_push_return_address.
5994 Add call to set_gdbarch_push_dummy_call.
5995
4bb1dc5e
CV
59962003-06-16 Corinna Vinschen <vinschen@redhat.com>
5997
5998 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5999 (E_PSEUDO_EXR_REGNUM): Ditto.
6000 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6001 registers into safe registers.
4bb1dc5e
CV
6002 (h8300_skip_prologue): Check for stm instruction to push registers
6003 used for register variables onto stack.
6004 (gdb_print_insn_h8300): Remove.
6005 (h8300_examine_prologue): Add a comment.
6006 (h8300_register_name): Take pseudo registers into account.
6007 (h8300s_register_name): Ditto.
6008 (h8300sx_register_name): Ditto.
6009 (h8300_print_register): Ditto.
6010 (h8300_print_registers_info): Define "nice" printing order.
6011 (h8300_saved_pc_after_call): Take pseudo registers into account.
6012 (h8300_register_type): Ditto. Return type used for remote connection
6013 when requesting real CCR or EXR register, return actual type when
6014 requesting pseudo CCR or EXR.
6015 (h8300_pseudo_register_read): New function.
6016 (h8300_pseudo_register_write): Ditto.
6017 (h8300_dbg_reg_to_regnum): Ditto.
6018 (h8300s_dbg_reg_to_regnum): Ditto.
6019 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6020 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6021 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6022 set_gdbarch_print_insn architecture dependent.
6023 Call set_gdbarch_pseudo_register_read and
6024 set_gdbarch_pseudo_register_write.
6025 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6026
a59fe496
AC
60272003-06-16 Andrew Cagney <cagney@redhat.com>
6028
6029 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6030 * gdbarch.h, gdbarch.c: Re-generate.
6031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6032 * s390-tdep.c (s390_gdbarch_init): Update.
6033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6035 * mips-tdep.c (mips_gdbarch_init): Update.
6036 * mcore-tdep.c (mcore_gdbarch_init): Update.
6037 * cris-tdep.c (cris_gdbarch_init): Update.
6038 * infcall.c (call_function_by_hand): Update.
6039 * ia64-tdep.c (ia64_push_arguments): Update comment.
6040 * frame.c (legacy_get_prev_frame): Do not assume
6041 SAVE_DUMMY_FRAME_TOS_P.
6042 * dummy-frame.c (find_dummy_frame): Update comment.
6043
6f4e5a41
AC
60442003-06-16 Andrew Cagney <cagney@redhat.com>
6045
6046 * regcache.c (do_cooked_read): Do not use register_valid_p.
6047
72fab697
TR
60482003-06-15 Theodore A. Roth <troth@openavr.org>
6049
6050 * avr-tdep.c (avr_register_type): Remove a blank line.
6051 (avr_scan_prologue): Correct some comments.
6052
e3d8b004
TR
60532003-06-15 Theodore A. Roth <troth@openavr.org>
6054
6055 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6056 prologue types.
8ffd9b1b 6057 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6058 option.
6059 Add code to scan -mcall-prologues for mega devices.
6060
866b76ea
TR
60612003-06-15 Theodore A. Roth <troth@openavr.org>
6062
6063 * avr-tdep.c (avr_register_byte): Delete function.
6064 (avr_register_raw_size): Delete function.
6065 (avr_register_virtual_size): Delete function.
6066 (avr_register_virtual_type): Delete function.
6067 (avr_register_type): New function.
6068 (avr_address_to_pointer): Remove unused code.
6069 (avr_read_fp): Need to read FP as two separate bytes due to change to
6070 avr_register_type() usage.
6071 (avr_gdbarch_init): Don't set deprecated_register_size.
6072 Don't set deprecated_register_bytes.
6073 Don't set deprecated_register_byte.
6074 Don't set deprecated_register_raw_size.
6075 Don't set deprecated_max_register_raw_size.
6076 Don't set deprecated_register_virtual_size.
6077 Don't set deprecated_max_register_virtual_size.
6078 Don't set deprecated_register_virtual_type.
6079 Set register_type method.
6080
3993f6b1
DJ
60812003-06-15 Daniel Jacobowitz <drow@mvista.com>
6082
6083 * Makefile.in (linux-nat.o): Add rule.
6084 * linux-nat.c: New file.
6085 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6086 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6087 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6088 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6089 * config/arm/linux.mh (NATDEPFILES): Likewise.
6090 * config/i386/linux.mh (NATDEPFILES): Likewise.
6091 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6092 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6093 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6094 * config/mips/linux.mh (NATDEPFILES): Likewise.
6095 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6096 * config/s390/s390.mh (NATDEPFILES): Likewise.
6097 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6098
786a90bb
MK
60992003-06-15 Mark Kettenis <kettenis@gnu.org>
6100
6101 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6102 replace out-of-date comment.
6103
3bd3f01e
AC
61042003-06-15 Andrew Cagney <cagney@redhat.com>
6105
6106 * rdi-share/host.h (Fail): Change to a varargs function.
6107 * remote-rdi.c (Fail): Update.
8ffd9b1b 6108
de5b9bb9
MK
61092003-06-15 Mark Kettenis <kettenis@gnu.org>
6110
6111 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6112 (i386_convert_register_p, i386_register_to_value,
6113 i386_register_from_value): Handle types longer than 8 bytes.
6114
d532c08f
MK
61152003-06-15 Mark Kettenis <kettenis@gnu.org>
6116
6117 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6118 Move floating-point code to new function in i387-tdep.c.
6119 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6120 New functions containing code moved here from i386-tdep.c.
6121 * i387-tdep.h: Add opaque declaration for `struct type'.
6122 (i387_register_to_value, i387_value_to_register): New prototypes.
6123 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6124 (x86_64_init_abi): Set convert_register_p, register_to_value and
6125 value_to_register here.
8ffd9b1b 6126
42c466d7
AC
61272003-06-14 Andrew Cagney <cagney@redhat.com>
6128
6129 * mips-tdep.c (mips_register_to_value): Make static.
6130 (mips_value_to_register): Make static.
6131 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6132 * ia64-tdep.c (ia64_register_raw_size): Make static.
6133 (ia64_register_virtual_size): Make static.
6134 (ia64_register_byte): Make static.
6135 * i387-tdep.c: Include "i387-tdep.h".
6136 (print_387_control_word): Delete function.
6137 (print_387_status_word): Delete function.
6138 (print_387_status_bits): Delete function.
6139 (print_387_control_bits): Delete function.
6140 * Makefile.in (i387-tdep.o): Update dependencies.
6141 * rdi-share/host.h (Fail): Declare.
6142 * remote-rdi.c (Fail): Update to match declaration.
6143
2a9cda49
AC
61442003-06-14 Andrew Cagney <cagney@redhat.com>
6145
6146 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6147 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6148 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6149 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6150 * README: Delete reference to remote-array.
6151 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6152 (remote-array.o): Delete target.
6153 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6154 * remote-array.c: Delete file.
6155
ff2e87ac
AC
61562003-06-14 Andrew Cagney <cagney@redhat.com>
6157 Mark Kettenis <kettenis@gnu.org>
6158
6159 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6160 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6161 parameter with "frame".
6162 * gdbarch.h, gdbarch.c: Re-generate.
6163 * frame.h (put_frame_register): Declare.
6164 * frame.c (put_frame_register): New function.
6165 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6166 (legacy_register_to_value): Rewrite, use "frame" to get the
6167 register value.
6168 (legacy_value_to_register): Rewrite, use "frame" to find the
6169 register's location before storing.
6170 * arch-utils.h (legacy_convert_register_p): Update.
6171 (legacy_register_to_value, legacy_value_to_register): Update.
6172 * findvar.c (value_from_register): Rewrite, eliminate use of
6173 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6174 "frame" to REGISTER_TO_VALUE.
6175 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6176 lval_reg_frame_relative + lval_register branch of the switch. Do
6177 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6178 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6179 I386_EDI_REGNUM): New defines.
6180 (i386_next_regnum, i386_convert_register_p,
6181 i386_register_to_value, i386_value_to_register): New functions.
6182 (i386_register_convertible, i386_register_convert_to_virtual,
6183 i386_convert_to_raw): Remove functions.
6184 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6185 value_to_register instead of register_convertible,
6186 register_convert_to_virtual and register_convert_to_raw.
6187 * mips-tdep.c (mips_convert_register_p): New function.
6188 (mips_value_to_register): Replace mips_register_convert_from_type.
6189 (mips_register_to_value): Replace mips_register_convert_to_type.
6190 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6191 register_to_value.
6192 * alpha-tdep.c (alpha_convert_register_p): Update.
6193 (alpha_value_to_register): Update, store the register.
6194 (alpha_register_to_value): Update, fetch the register.
6195
98be1e77
TR
61962003-06-14 Theodore A. Roth <troth@openavr.org>
6197
6198 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6199 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6200 Don't set deprecated_call_dummy_words.
6201 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6202 Don't set remote_translate_xfer_address.
6203 (avr_io_reg_read_command): Remove commented out debug printf.
6204 Wrap a long line.
6205
57bc6122
TR
62062003-06-14 Theodore A. Roth <troth@openavr.org>
6207
6208 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6209 causes gdb to seg fault.
6210
eb01fc62
DJ
62112003-06-14 Daniel Jacobowitz <drow@mvista.com>
6212
6213 * sparc-nat.c (fetch_inferior_registers): Correct
6214 a reference to "registers".
6215
3b3e6bee
DJ
62162003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6217
6218 * Makefile.in (exc_request_U_h): Define
6219 (exc_request_S_h): Likewise.
6220 (msg_reply_S_h): Likewise.
6221 (msg_U_h): Likewise.
6222 (notify_S_h): Likewise.
6223 (process_reply_S_h): Likewise.
6224 (gnu-nat.o): Depend on gdb_obstack_h
6225 * gnu-nat.c: Include "gdb_obstack.h".
6226
b8de8283
AC
62272003-06-13 Andrew Cagney <cagney@redhat.com>
6228
6229 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6230 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6231
f3be58bc
AC
62322003-06-13 Andrew Cagney <cagney@redhat.com>
6233
6234 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6235 when deprecated REGISTER macros can be deleted.
6236 * gdbarch.h, gdbarch.c: Re-generate.
6237
4c0122c8
JB
62382003-06-13 Jim Blandy <jimb@redhat.com>
6239
6240 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6241 Linux entry point symbols for _dl_debug_state, too.
6242
3e210248
AC
62432003-06-13 Andrew Cagney <cagney@redhat.com>
6244
6245 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6246 available, do not use the FP register, and always save the TOS.
6247 * dummy-frame.c (dummy_frame_this_id): Do not assert
6248 SAVE_DUMMY_FRAME_TOS.
6249 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6250 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6251 (i386_push_dummy_call): Add 8 to the returned SP.
6252 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6253 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6254 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6255 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6256 (x86_64_push_dummy_call): Return "sp + 16".
6257 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6258 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6259 save_dummy_frame_tos.
6260
0b65af49
JB
62612003-06-13 Jim Blandy <jimb@redhat.com>
6262
6263 * frv-tdep.c (frv_use_struct_convention): Delete static
6264 declaration for function deleted in my change of 2003-06-12.
6265
4ea2465e
TR
62662003-06-13 Theodore A. Roth <troth@openavr.org>
6267
6268 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6269 (avr_pointer_to_address): Shift code addrs left 1 bit.
6270 (avr_convert_from_func_ptr_addr): Delete function since operation is
6271 better handled by avr_address_to_pointer and avr_pointer_to_address.
6272 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6273
1581182a
MK
62742003-06-13 Mark Kettenis <kettenis@gnu.org>
6275
6276 From Kelley Cook <kelleycook@wideopenwest.com>:
6277 * configure.host: Accept i[34567]86 variants.
6278 * configure.tgt: Likewise.
6279 * nlm/configure.in: Likewise.
6280 * nlm/configure: Regenerated.
6281
7aa1783e
RE
62822003-06-13 Richard Earnshaw <rearnsha@arm.com>
6283
6284 * arm-tdep.c (solib-svr4.h): Dont' include it.
6285 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6286 * arm-linux-tdep.c: ... here. Make static.
6287 (arm_linux_init_abi): Register it.
6288 (solib-svr4.h): Include it.
6289 * Makefile.in: Update dependencies.
6290 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6291 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6292
0261a0d0
CV
62932003-06-13 Corinna Vinschen <vinschen@redhat.com>
6294
6295 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6296 indicate registers used for return values.
6297 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6298 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6299 members.
6300 (h8300_init_extra_frame_info): Ditto.
6301 (h8300_frame_locals_address): Removed.
6302 (h8300_frame_args_address): Removed.
6303 (h8300_extract_return_value): Use new regcache structure. Only care
6304 for 16 bit CPUs.
6305 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6306 (h8300_store_return_value): Use new regcache structure. Only care
6307 for 16 bit CPUs.
6308 (h8300h_store_return_value): Same function for 32 bit CPUs.
6309 (h8300_store_struct_return): Removed.
6310 (h8300_extract_struct_value_address): Use new regcache structure.
6311 (h8300h_extract_struct_value_address): Removed.
6312 (h8300_push_dummy_code): New function.
6313 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6314 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6315 set_gdbarch_store_return_value architecture dependent.
6316 Call set_gdbarch_push_dummy_code and
6317 set_gdbarch_extract_struct_value_address.
6318 Remove calls to set_gdbarch_frame_args_address,
6319 set_gdbarch_frame_locals_address,
6320 set_gdbarch_deprecated_store_struct_return,
6321 set_gdbarch_deprecated_extract_return_value,
6322 set_gdbarch_deprecated_extract_struct_value_address,
6323 set_gdbarch_deprecated_call_dummy_words and
6324 set_gdbarch_deprecated_sizeof_call_dummy_words.
6325
055c394a
CV
63262003-06-13 Corinna Vinschen <vinschen@redhat.com>
6327
6328 * h8300-tdep.c (h8300_register_byte): Remove.
6329 (h8300h_register_byte): Remove.
6330 (h8300_register_virtual_type): Remove. Substitute by...
6331 (h8300_register_type): New function.
6332 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6333 (h8300h_extract_struct_value_address): Ditto.
6334 (h8300_gdbarch_init): Drop calls to
6335 set_gdbarch_deprecated_register_byte and
6336 set_gdbarch_deprecated_register_virtual_type.
6337 Add call to set_gdbarch_register_type.
6338
9c04cab7
AC
63392003-06-13 Andrew Cagney <cagney@redhat.com>
6340
6341 * gdbarch.sh: Update comments on registers.
6342 (deprecated_register_byte): Rename register_byte.
6343 (deprecated_register_raw_size): Rename register_raw_size.
6344 (deprecated_register_virtual_size): Rename register_virtual_size.
6345 (deprecated_register_virtual_type): Rename register_virtual_type.
6346 * gdbarch.h, gdbarch.c: Re-generate.
6347 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6348 * vax-tdep.c (vax_gdbarch_init): Update.
6349 * v850-tdep.c (v850_gdbarch_init): Update.
6350 * sparc-tdep.c (sparc_gdbarch_init): Update.
6351 * sh-tdep.c (sh_gdbarch_init): Update.
6352 * s390-tdep.c (s390_gdbarch_init): Update.
6353 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6354 * ns32k-tdep.c: Update.
6355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6356 * mips-tdep.c (mips_gdbarch_init): Update.
6357 * mcore-tdep.c (mcore_gdbarch_init): Update.
6358 * m68k-tdep.c (m68k_gdbarch_init): Update.
6359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6360 * ia64-tdep.c (ia64_gdbarch_init): Update.
6361 * hppa-tdep.c (hppa_gdbarch_init): Update.
6362 * h8300-tdep.c (h8300_gdbarch_init): Update.
6363 * frv-tdep.c (frv_gdbarch_init): Update.
6364 * cris-tdep.c (cris_gdbarch_init): Update.
6365 * avr-tdep.c (avr_gdbarch_init): Update.
6366 * alpha-tdep.c (alpha_gdbarch_init): Update.
6367 * arm-tdep.c (arm_gdbarch_init): Update.
6368
b060cbea
AC
63692003-06-13 Andrew Cagney <cagney@redhat.com>
6370
6371 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6372 mips_o32_use_struct_convention with always_use_struct_convention.
6373
0fc9922a
DC
63742003-06-12 David Carlton <carlton@kealia.com>
6375
6376 * cp-namespace.c (cp_set_block_scope): Comment out
6377 processing_has_namespace_info branch.
6378
1fd35568
JB
63792003-06-12 Jim Blandy <jimb@redhat.com>
6380
f470a70a
JB
6381 Recognize and skip 64-bit PowerPC Linux linkage functions.
6382 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6383 insn_pattern, insns_match_pattern, d_field, ds_field): New
6384 functions, macros, and types for working with PPC instructions.
6385 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6386 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6387 ppc64_skip_trampoline_code): New functions, variables, and macros
6388 for recognizing and skipping linkage functions.
6389 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6390 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6391
49ff75ad
JB
6392 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6393 register offsets for both the 32- and 64-bit interfaces.
6394
bd918c83
JB
6395 Actually finish the job started by my change of 2003-05-29.
6396 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6397 other #definition of this.
6398 (ppc_linux_skip_trampoline_code): Remove declaration.
6399 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6400 static.
6401 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6402 method for GDBARCH.
6403
6404 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6405 'long' on ppc64-*-linux*.
6406
f8c59253
JB
6407 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6408 isn't #defined, assume the register doesn't exist: act as if
6409 tdep->ppc_mq_regnum were -1.
6410
8fbb30b1
JB
6411 * configure.host, configure.tgt: Add entries for
6412 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6413 powerpc/linux.mt.
6414 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6415 New files.
6416
1fd35568
JB
6417 * arch-utils.c (always_use_struct_convention): New function.
6418 * arch-utils.h (always_use_struct_convention): New prototype.
6419 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6420 (alpha_gdbarch_init): Register always_use_struct_convention,
6421 instead of alpha_use_struct_convention.
6422 * cris-tdep.c (cris_use_struct_convention): Delete.
6423 (cris_gdbarch_init): Register always_use_struct_convention,
6424 instead of cris_use_struct_convention.
6425 * frv-tdep.c (frv_use_struct_convention): Delete.
6426 (frv_gdbarch_init): Register always_use_struct_convention,
6427 instead of frv_use_struct_convention.
6428 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6429 (h8300_gdbarch_init): Register always_use_struct_convention,
6430 instead of h8300_use_struct_convention.
e3305dd9 6431 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6432 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6433 instead of mips_o32_use_struct_convention.
6434
e14e6e9c
AC
64352003-06-12 Andrew Cagney <cagney@redhat.com>
6436
6437 * wince.c: Include "mips-tdep.h".
6438 * mips-tdep.h (mips_next_pc): Declare.
6439 * mcore-tdep.c: Make more local functions static.
6440 * Makefile.in (wince.o): Update dependencies.
6441
2335f48e
DC
64422003-06-12 David Carlton <carlton@kealia.com>
6443
6444 * symtab.c (lookup_symbol_aux_minsyms): Replace
6445 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6446 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6447 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6448 SYMBOL_NATURAL_NAME.
6449
f70a7d61
AS
64502003-06-12 Andreas Schwab <schwab@suse.de>
6451
6452 * Makefile.in (tuiDisassem.o): Update dependencies.
6453
b6429628
DC
64542003-06-12 David Carlton <carlton@bactrian.org>
6455
6456 * symtab.h: Delete declaration of make_symbol_overload_list.
6457 Add declaration of lookup_partial_symbol.
6458 * symtab.c (remove_params): Move to cp-support.c.
6459 (overload_list_add_symbol, make_symbol_overload_list)
6460 (sym_return_val_size, sym_return_val_index): Ditto.
6461 (lookup_partial_symbol): Make extern.
6462 * cp-support.h: Add declaration of make_symbol_overload_list.
6463 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6464 symtab.h, and block.h.
6465 (remove_params): Move here from symtab.c.
6466 (overload_list_add_symbol, make_symbol_overload_list)
6467 (sym_return_val_size, sym_return_val_index): Ditto.
6468 * valops.c: Include cp-support.h.
6469 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6470 frame_h, and block_h.
6471 (valops.o): Depend on cp_support_h.
6472
084edea5
CV
64732003-06-12 Corinna Vinschen <vinschen@redhat.com>
6474
6475 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6476 substitute by NUM_REGS throughout.
6477 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6478 (h8300s_register_name): New function for H8S registers.
6479 (h8300sx_register_name): Ditto for H8SX registers.
6480 (h8300_print_register): Revise register printing, avoid depending
6481 on 32 bit long.
0261a0d0 6482 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6483 (h8300h_register_byte): New function for any other architecture.
6484 (h8300_register_raw_size): Remove.
6485 (h8300_register_virtual_type): Revise to return actually useful
6486 type.
6487 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6488 (h8300h_extract_struct_value_address): New function for any other
6489 architecture.
6490 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6491 set_gdbarch_register_name, set_gdbarch_register_byte,
6492 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6493 Remove calls to set_gdbarch_deprecated_register_size,
6494 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6495 set_gdbarch_deprecated_max_register_raw_size,
6496 set_gdbarch_register_virtual_size and
6497 set_gdbarch_deprecated_max_register_virtual_size entirely.
6498 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6499 set_gdbarch_long_double_bit.
6500
06194148
JJ
65012003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6502
8ffd9b1b
AJ
6503 * doublest.c (convert_doublest_to_floatformat): When dealing
6504 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6505 processing a full 32 bits of mantissa.
6506
de4f826b
DC
65072003-06-11 David Carlton <carlton@bactrian.org>
6508
6509 * dictionary.h: New.
6510 * dictionary.c: New.
6511 * block.h: Add opaque declaration for struct dictionary.
6512 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6513 'sym' members.
6514 (BLOCK_DICT): New macro.
6515 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6516 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6517 BLOCK_SHOULD_SORT.
6518 (ALL_BLOCK_SYMBOLS): Update definition.
6519 * Makefile.in (SFILES): Add dictionary.c.
6520 (dictionary_h): New.
6521 (COMMON_OBS): Add dictionary.o.
6522 (dictionary.o): New.
6523 (ada-lang.o): Depend on dictionary_h.
6524 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6525 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6526 (mi-cmd-stack.o): Ditto.
6527 (gdbtk-cmds.o): Update dependencies.
6528 (gdbtk-stack.o): Ditto.
6529 * ada-lang.c: Include dictionary.h.
6530 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6531 (fill_in_ada_prototype, debug_print_block): Ditto.
6532 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6533 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6534 'is_sorted'.
6535 * mdebugread.c: Include dictionary.h.
6536 (struct parse_stack): Delete 'maxsyms' member.
6537 (parse_symbol): Update calls to new_block. Delete calls to
6538 shrink_block. Use dictionary methods.
6539 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6540 Update calls to new_symtab. Don't maintain maxsyms data.
6541 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6542 (add_symbol): Just call dict_add_symbol.
6543 (new_symtab): Delete 'maxsyms' argument.
6544 (new_symtab): Update calls to new_block.
6545 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6546 (shrink_block): Delete function.
6547 (fixup_sigtramp): Update call to new_block. Add symbol via
6548 dict_add_symbol.
6549 * jv-lang.c: Include dictionary.h.
6550 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6551 appropriately. Set class_symtab->free_func. Make sure the
6552 blockvector is big enough to hold two blocks.
6553 (add_class_symtab_symbol): Use dictionary methods.
6554 (free_class_block): New function.
6555 (type_from_class): Replace explicit iteration by
6556 ALL_BLOCK_SYMBOLS.
6557 * symtab.h (struct symtab): Replace 'free_ptr' method by
6558 'free_func'.
6559 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6560 sort_symtab_syms.
6561 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6562 sort_symtab_syms.
6563 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6564 Include dictionary.h.
6565 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6566 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6567 sort_symtab_syms.
6568 * objfiles.c: Include dictionary.h.
6569 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6570 * buildsym.c: Include dictionary.h.
6571 (finish_block): Use dictionary methods.
6572 (end_symtab): Set free_func to NULL, not free_ptr.
6573 * tracepoint.c: Include dictionary.h.
6574 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6575 (scope_info): Ditto.
6576 * stack.c: Include dictionary.h.
6577 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6578 (print_block_frame_labels, print_frame_arg_vars)
6579 (print_frame_args): Ditto.
6580 * symmisc.c (free_symtab_block): Use dictionary methods.
6581 (dump_symtab): Ditto.
6582 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6583 Include dictionary.h.
6584 * symfile.h: Delete declarations of sort_block_syms,
6585 sort_symtab_syms.
6586 * symfile.c (sort_block_syms): Delete.
6587 (sort_symtab_syms): Delete.
6588 * symtab.c: Include dictionary.h.
6589 (lookup_block_symbol): Use dictionary iterators.
6590 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6591 (search_symbols, make_symbol_completion_list): Ditto.
6592 (make_symbol_overload_list): Ditto.
6593 * valops.c (value_of_local): Use dict_empty.
6594 Include dictionary.h.
6595
a31f978c
JB
65962003-06-11 J. Brobecker <brobecker@gnat.com>
6597
6598 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6599
526e70c0
DC
66002003-06-11 David Carlton <carlton@bactrian.org>
6601
6602 * block.h (BLOCK_SHOULD_SORT): Delete.
6603 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6604 blocks.
6605 * ada-lang.c (ada_add_block_symbols): Ditto.
6606 * symfile.c (sort_block_syms): Delete.
6607 (sort_symtab_syms): Ditto.
6608 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6609 declarations.
6610 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6611 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6612 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6613 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6614 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6615 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6616 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6617
33c08150
JJ
66182003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6619
8ffd9b1b 6620 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6621 bits to 128.
6622
781a750d
AC
66232003-06-11 Andrew Cagney <cagney@redhat.com>
6624
6625 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6626 REGISTER_CONVERTIBLE.
6627 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6628 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6629 * gdbarch.h, gdbarch.c: Re-generate.
6630 * arch-utils.h (deprecated_register_convertible_not): Rename
6631 generic_register_convertible_not.
6632 * arch-utils.c (deprecated_register_convertible_not): Rename
6633 generic_register_convertible.
6634 (legacy_convert_register_p, legacy_register_to_value): Update.
6635 * sh-tdep.c (sh64_push_arguments): Update.
6636 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6637 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6638 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6639 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6640 * arch-utils.c (legacy_value_to_register): Update.
6641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6642 (rs6000_register_convert_to_raw): Make parameter "from" const.
6643 * mips-tdep.c (mips_gdbarch_init): Update.
6644 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6645 * infcmd.c (default_print_registers_info): Update.
6646 * ia64-tdep.c (ia64_gdbarch_init): Update.
6647 (ia64_register_convert_to_raw): Make parameter "from" const.
6648 * i386-tdep.c (i386_gdbarch_init): Update.
6649 (i386_register_convert_to_raw): Update.
6650
cd90e54f
AC
66512003-06-11 Andrew Cagney <cagney@redhat.com>
6652
6653 * remote-fileio.c: Include "remote-fileio.h".
6654 * Makefile.in (remote-fileio.o): Update dependencies.
6655 (remote_fileio_h): Fix typo.
6656
a78f21af
AC
66572003-06-11 Andrew Cagney <cagney@redhat.com>
6658
6659 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6660 (xstormy16_save_dummy_frame_tos): Make static.
6661 (_initialize_xstormy16_tdep): Add declaration.
6662 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6663 * v850-tdep.c: Make local functions static.
6664 (_initialize_v850_tdep): Add declaration.
6665 * sparc-tdep.c: Make local functions static.
6666 (_initialize_sparc_tdep): Add declaration.
6667 * sh-tdep.c: Make local functions static.
6668 (_initialize_sh_tdep): Add declaration.
6669 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6670 * s390-tdep.c: Make local functions static.
6671 (_initialize_s390_tdep): Add declaration.
6672 * dbxread.c (find_stab_function_addr): Make static.
6673 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6674 * ocd.c (_initialize_remote_ocd): Add declaration.
6675 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6676 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6677 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6678 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6679 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6680 * remote-array.c (_initialize_array): Add declaration.
6681 (_initialize_remote_monitors): Add declaration.
6682 * remote-mips.c: Make local functions static.
6683 (_initialize_remote_mips): Add declaration.
6684 * mcore-tdep.c: Make all local functions static.
6685 (_initialize_mcore_tdep): Add declaration.
6686 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6687 * abug-rom.c (_initialize_abug_rom): Add declaration.
6688 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6689 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6690 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6691 * remote-est.c (_initialize_est): Add declaration.
6692 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6693 (m68hc11_call_dummy_address): Make static.
6694 * ia64-tdep.c: Make local functions static.
6695 (_initialize_ia64_tdep): Add declaration.
6696 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6697 * monitor.c (monitor_wait_filter): Make static.
6698 (_initialize_remote_monitors): Add declaration.
6699 * remote-hms.c (_initialize_remote_hms): Add declaration.
6700 * remote-e7000.c (fetch_regs_from_dump): Make static.
6701 (expect_n): Make static.
6702 (_initialize_remote_e7000): Add declaration.
6703 * ser-e7kpc.c: Always include "defs.h".
6704 (_initialize_ser_e7000pc): Add declaration.
6705 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6706 * cris-tdep.c: Make all but one function static.
6707 (_initialize_cris_tdep): Add declaration.
6708 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6709 * solib.c (update_solib_list): Make static.
6710 (_initialize_solib): Add declaration.
6711 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6712 (_initialize_avr_tdep): Add declaration.
6713 * remote-rdi.c (voiddummy): Make static.
6714 (_initialize_remote_rdi): Add declaration.
6715 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6716 * remote-rdp.c (send_rdp): Make static.
6717 (_initialize_remote_rdp): Add declaration.
6718 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6719
cbcdb1f5
CV
67202003-06-11 Corinna Vinschen <vinschen@redhat.com>
6721
6722 * remote-fileio.c: Make ari happy.
6723
a191ea8d
JB
67242003-06-10 J. Brobecker <brobecker@gnat.com>
6725
6726 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6727 fetching the trailing bytes of the buffer we are about to write.
6728
0ef75e11
AC
67292003-06-10 Andrew Cagney <cagney@redhat.com>
6730
6731 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6732 * Makefile.in (remote-fileio.o): Update dependencies.
6733 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6734 include <setjmp.h>, or <sys/types.h> conditional on USG.
6735 (remote_fio_jmp_buf): Delete global variable.
6736
449092f6 67372003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6738 Martin M. Hunt <hunt@redhat.com>
449092f6 6739
559fa028
AC
6740 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6741 (SFILES): Add remote-fileio.c.
6742 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6743 dependencies for building remote.o.
449092f6
CV
6744 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6745 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6746 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6747 static storage class.
6748 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6749 'F' packet.
6750 (_initialize_remote): Call initialize_remote_fileio().
6751 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6752 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6753 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6754 (captured_main): Initialize new ui_files.
6755 * ui-file.c: Add read and fgets input functions.
6756 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6757 (null_file_read): New function.
6758 (ui_file_read): New function.
6759 (set_ui_file_read): New function.
6760 (stdio_file_read): New function.
6761 * ui-file.h: New type ui_file_read_ftype.
6762 (set_ui_file_read): Declare.
6763 (ui_file_read): Declare.
6764
248de703
AC
67652003-06-09 Andrew Cagney <cagney@redhat.com>
6766
6767 * frame.h (deprecated_unwind_get_saved_register): Rename
6768 generic_unwind_get_saved_register, update comments.
6769 * mips-tdep.c (mips_get_saved_register): Update.
6770 * frame.c (deprecated_unwind_get_saved_register): Update.
6771
0ed8aa57
AC
67722003-06-09 Andrew Cagney <cagney@redhat.com>
6773
6774 * vax-tdep.c (vax_frame_locals_address): Delete function.
6775 (vax_gdbarch_init): Do not set frame_locals_address.
6776 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6777 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6778 * s390-tdep.c (s390_frame_args_address): Delete function.
6779 (s390_gdbarch_init): Do not set frame_args_address or
6780 frame_locals_address.
6781 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6782 (ns32k_gdbarch_init): Do not set frame_locals_address.
6783 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6784 (hppa_frame_locals_address): Delete function.
6785 (hppa_gdbarch_init): Do not set frame_args_address, or
6786 frame_locals_address.
6787 * arm-tdep.c (arm_frame_args_address): Delete.
6788 (arm_frame_locals_address): Delete.
6789 (arm_gdbarch_init): Do not set frame_args_address, or
6790 frame_locals_address.
6791
983a287a
AC
67922003-06-09 Andrew Cagney <cagney@redhat.com>
6793
6794 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6795 * gdbarch.h, gdbarch.c: Re-generate.
6796 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6797 * arch-utils.c (frame_num_args_unknown): Delete function.
6798 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6799 (frame_info): Use FRAME_NUM_ARGS_P.
6800 * arm-tdep.c (arm_frame_num_args): Delete function.
6801 (arm_gdbarch_init): Do not set frame_num_args.
6802 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6803 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6804 (hppa_gdbarch_init): Do not set frame_num_args.
6805 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6807 frame_num_args to default frame_num_args_unknown.
6808 * v850-tdep.c (v850_gdbarch_init): Ditto.
6809 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6810 * sh-tdep.c (sh_gdbarch_init): Ditto.
6811 * s390-tdep.c (s390_gdbarch_init): Ditto.
6812 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6813 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6814 * mips-tdep.c (mips_gdbarch_init): Ditto.
6815 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6816 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6818 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6819 * i386-tdep.c (i386_gdbarch_init): Ditto.
6820 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6821 * frv-tdep.c (frv_gdbarch_init): Ditto.
6822 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6823 * cris-tdep.c (cris_gdbarch_init): Ditto.
6824 * avr-tdep.c (avr_gdbarch_init): Ditto.
6825 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6826
8d3b0994
AC
68272003-06-09 Andrew Cagney <cagney@redhat.com>
6828
6829 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6830 (print_frame_args): Moved to "stack.c".
6831 * stack.c: Include "gdb_assert.h".
6832 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6833 (print_frame_args): Moved from "printcmd.c".
6834 * frame.h (print_frame_args): Delete declaration.
6835 * Makefile.in (stack.o): Update dependencies.
6836
25e3a86b
AC
68372003-06-08 Andrew Cagney <cagney@redhat.com>
6838
6839 * frame.c (get_prev_frame): Remove reference to
6840 frame_args_address_correct in comments.
6841 * frame-base.c (default_frame_args_address): Delete code
6842 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6843 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6844 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6845 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6846 (vax_frame_args_address_correct): Delete declaration.
6847
a9e5fdc2
AC
68482003-06-08 Andrew Cagney <cagney@redhat.com>
6849
6850 * gdbarch.sh (UNWIND_SP): Add.
6851 * gdbarch.h, gdbarch.c: Re-generate.
6852 * frame.c (frame_sp_unwind): New function.
6853 (get_frame_sp): New function.
6854 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6855 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6856 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6857 value.
6858 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6859 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6860
8983bd83
AC
68612003-06-08 Andrew Cagney <cagney@redhat.com>
6862
7fec2c59
AC
6863 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6864 REMOTE_BREAKPOINT.
6865 * remote.c: Update.
6866 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6867 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6868 * config/m68k/tm-sun3.h: Update.
6869 * config/m68k/tm-m68klynx.h: Update.
6870 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6871
8983bd83
AC
6872 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6873 trad_frame". Update comments.
6874 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6875 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6876 (trad_frame_register_value, trad_frame_prev_register): Update.
6877
b9362cc7
AC
68782003-06-08 Andrew Cagney <cagney@redhat.com>
6879
6880 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6881 from GCC's acinclude.m4.
6882 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6883 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6884 * main.c (error_init): Delete declaration.
6885 * defs.h (error_init): Declare.
6886 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6887 (rs6000_convert_from_func_ptr_addr): Make static.
6888 (_initialize_rs6000_tdep): Add declaration.
6889 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6890 (show_commands, set_verbose, show_history): Delete declaration.
6891 * top.h (set_verbose): Add declaration.
6892 (show_history, set_history, show_commands): Add declaration.
6893 (do_restore_instream_cleanup): Add declaration.
6894 * objc-lang.c (specialcmp): Make static.
6895 (print_object_command): Make static.
6896 (find_objc_msgsend): Make static.
6897 (find_objc_msgcall_submethod_helper): Make static.
6898 (find_objc_msgcall_submethod): Make static.
6899 (_initialize_objc_language): Add declaration.
6900 (find_implementation_from_class): Make static.
6901 (find_implementation): Make static.
6902 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6903 * objc-lang.h (lookup_struct_typedef): Add declaration.
6904 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6905 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6906 (do_restore_user_call_depth): Make static.
6907 (do_restore_instream_cleanup): Delete declaration.
6908 (dont_repeat): Delete declaration.
6909 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6910 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6911 * reggroups.c (_initialize_reggroup): Add declaration.
6912 * cp-support.c (_initialize_cp_support): Add declaration.
6913 * cp-abi.c (_initialize_cp_abi): Add declaration.
6914 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6915 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6916 (_initialize_gnu_v3_abi): Add declaration.
6917 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6918 (_initialize_gnu_v2_abi): Add declaration.
6919 * frame-base.c (_initialize_frame_base): Add declaration.
6920 * doublest.c (floatformat_from_length): Make static.
6921 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6922 * frame.c (create_sentinel_frame): Make static.
6923 (_initialize_frame): Add declaration.
6924 * top.c (do_catch_errors): Make static.
6925 (gdb_rl_operate_and_get_next_completion): Make static.
6926 * typeprint.c: Include "typeprint.h".
6927 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6928 (sentinel_frame_this_id): Make static.
6929 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6930 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6931 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6932 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6933 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6934 * maint.c (maintenance_print_architecture): Make static.
6935 * signals/signals.c (_initialize_signals): Add declaration.
6936 * std-regs.c (_initialize_frame_reg): Add declaration.
6937 * jv-exp.y (push_variable): ISO C definition.
6938 (push_qualified_expression_name): Ditto.
6939 * memattr.c (_initialize_mem): Add declaration.
6940 * remote.c (remote_check_watch_resources): Make static.
6941 (remote_stopped_by_watchpoint): Make static.
6942 (remote_stopped_data_address): Make static.
6943 * d10v-tdep.c (nr_dmap_regs): Make static.
6944 (a0_regnum): Make static.
6945 (d10v_frame_unwind_cache): Make static.
6946 (d10v_frame_p): Make static.
6947 * osabi.c (show_osabi): Make static.
6948 (_initialize_gdb_osabi): Add extern declaration.
6949 * gdbtypes.c (make_qualified_type): Make static.
6950 (safe_parse_type): Make static.
6951 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6952 * macrotab.c (macro_bcache_free): Make static.
6953 * interps.c (interp_set_quiet): Make static.
6954 (interpreter_exec_cmd): Make static.
6955 * stack.h (select_frame_command): New file.
6956 * stack.c: Include "stack.h".
6957 (select_frame_command_wrapper): Delete function.
6958 (select_frame_command): Make global.
6959 * infcall.c: Include "infcall.h".
6960 * linespec.c: Include "linespec.h".
6961 * symfile.c (sections_overlap): Make static.
6962 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6963 * charset.c (_initialize_charset): Add missing prototype.
6964 * regcache.c (init_legacy_regcache_descr): Make static.
6965 (do_regcache_xfree): Make static.
6966 (regcache_xfer_part): Make static.
6967 (_initialize_regcache): Add missing prototype.
6968 * breakpoint.c (parse_breakpoint_sals): Make static.
6969 (breakpoint_sals_to_pc): Make static.
6970 * interps.h (clear_interpreter_hooks): ISO C declaration.
6971 * Makefile.in (stack_h): Define.
6972 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6973 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6974
a0f267c7
AC
69752003-06-08 Andrew Cagney <cagney@redhat.com>
6976
6977 * Makefile.in (d10v-tdep.o): Update dependencies.
6978 (SFILES): Add trad-frame.c.
6979 (trad_frame_h): Define.
6980 (COMMON_OBS): Add trad-frame.o.
6981 (trad-frame.o): Specify dependencies.
6982 * d10v-tdep.c: Include "trad-frame.h".
6983 (saved_regs_unwinder): Delete function.
6984 (d10v_frame_prev_register): Use trad_frame_prev_register.
6985 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6986 trad_frame", delete "regs" and "prev_sp".
6987 (prologue_find_regs): Use trad-frame.
6988 * trad-frame.h, trad-frame.c: New files.
6989
4538b4f4
MK
69902003-06-08 Mark Kettenis <kettenis@gnu.org>
6991
6992 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6993
a0273b2f
AF
69942003-06-07 Adam Fedor <fedor@gnu.org>
6995
6996 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6997 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6998 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6999 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7000 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7001 Use it.
7002
3a6c3343
AC
70032003-06-07 Andrew Cagney <cagney@redhat.com>
7004
7005 * symfile.h: Re-indent, clean up comments.
7006
b46e02f6
AC
70072003-06-07 Andrew Cagney <cagney@redhat.com>
7008
7009 * inferior.h (deprecated_write_sp): Replace
7010 generic_target_write_sp.
7011 * regcache.c (deprecated_write_sp): Replace
7012 generic_target_write_sp.
7013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7014 * vax-tdep.c (vax_gdbarch_init): Update.
7015 * v850-tdep.c (v850_gdbarch_init): Update.
7016 * sparc-tdep.c (sparc_gdbarch_init): Update.
7017 * sh-tdep.c (sh_gdbarch_init): Update.
7018 * s390-tdep.c (s390_gdbarch_init): Update.
7019 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7020 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7021 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7022 * mcore-tdep.c (mcore_gdbarch_init): Update.
7023 * m68k-tdep.c (m68k_gdbarch_init): Update.
7024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7025 * ia64-tdep.c (ia64_gdbarch_init): Update.
7026 * h8300-tdep.c (h8300_gdbarch_init): Update.
7027 * frv-tdep.c (frv_gdbarch_init): Update.
7028 * cris-tdep.c (cris_gdbarch_init): Update.
7029 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7030
a42e117c
AC
70312003-06-07 Andrew Cagney <cagney@redhat.com>
7032
7033 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7034 Assert that PC_REGNUM is valid.
7035 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7036
bd1ce8ba
AC
70372003-06-07 Andrew Cagney <cagney@redhat.com>
7038
7039 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7040 * gdbarch.h, gdbarch.c: Regenerate.
7041 * mn10300-tdep.c: Include "gdb_assert.h".
7042 (mn10300_read_fp): New function.
7043 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7044 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7045 * ia64-tdep.c: Include "gdb_assert.h".
7046 (ia64_read_fp): New function.
7047 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7048 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7049 * regcache.c (generic_target_read_sp): Delete function.
7050 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7051 * inferior.h (generic_target_read_sp): Delete declaration.
7052 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7053 generic_target_read_sp.
7054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7055 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7056 * sh-tdep.c (sh_gdbarch_init): Ditto.
7057 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7058 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7059
ec5cbaec
AC
70602003-06-07 Andrew Cagney <cagney@redhat.com>
7061
7062 * gdbarch.sh: Comment each field of startup_gdbarch.
7063 * gdbarch.h, gdbarch.c: Re-generate.
7064
cde9ea48
AC
70652003-06-07 Andrew Cagney <cagney@redhat.com>
7066
7067 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7068 * gdbarch.h, gdbarch.c: Re-generate.
7069 * regcache.c: Update comments on read_pc et.al.
7070 (generic_target_read_pc): Delete function.
7071 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7072 * inferior.h (generic_target_read_pc): Delete declaration.
7073 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7074 generic_target_read_pc.
7075 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7076 * sh-tdep.c (sh_gdbarch_init): Ditto.
7077 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7079
9a90a780
AC
70802003-06-07 Andrew Cagney <cagney@redhat.com>
7081
7082 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7083 "index" with "special_local_sect". Use strcmp instead of STREQ.
7084 Append period to coments.
7085
a39a16c4
MM
70862003-06-06 Mark Mitchell <mark@codesourcery.com>
7087
7088 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7089 (elfstab_offset_sections): Likewise.
7090 * gdb-stabs.h (stab_section_info): Likewise.
7091 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7092 * objfiles.c (objfile_relocate): Likewise.
7093 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7094 * remote.c (get_offsets): Likewise.
7095 (remote_cisco_objfile_relocate): Likewise.
7096 * somread.c (som_symfile_offsets): Likewise.
7097 * symfile.c (alloc_section_addr_info): New function.
7098 (build_section_addr_info_from_section_tab): Use it.
7099 (free_section_addr_info): Adjust.
7100 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7101 (syms_from_objfile): Allocate local_addr dynamically.
7102 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7103 dynamically.
7104 (add_symbol_file_command): Allocate sect_opts dynamically.
7105 (reread_symbols): Avoid use of SECT_OFF_MAX.
7106 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7107 (alloc_section_addr_info): Declare it.
7108 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7109 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7110 dynamically.
7111 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7112
20c6c2f8
AC
71132003-06-06 Andrew Cagney <cagney@redhat.com>
7114
7115 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7116 (d10v_frame_unwind_cache): Do not set "return_pc".
7117
884a26c8
MS
71182003-06-06 Michael Snyder <msnyder@redhat.com>
7119
7120 * h8300-tdep.c: Make tidy (long lines).
7121
088ce440
ML
71222003-06-06 Michal Ludvig <mludvig@suse.cz>
7123
8ffd9b1b 7124 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7125 to regcache_collect().
7126
7d773d96
JB
71272003-06-05 J. Brobecker <brobecker@gnat.com>
7128
7129 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7130 pc_in_sigtramp multiarch method.
7131 (hppa_hpux_som_init_abi): Use it.
7132 (hppa_hpux_elf_init_abi): Likewise.
7133 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7134 macro has been multiarched.
7135 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7136 macro here, as hppa64 isn't multiarched yet.
7137
1df6926e
AC
71382003-06-05 Andrew Cagney <cagney@redhat.com>
7139
7140 * Makefile.in (value_h): Add $(frame_h).
7141 * value.h: Include "frame.h".
7142 (struct value): Replace "frame_addr" with "frame_id".
7143 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7144 * values.c (allocate_value): Use VALUE_FRAME_ID.
7145 (value_copy): Use VALUE_FRAME_ID.
7146 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7147 * valops.c (value_assign): Update. Use frame_find_by_id.
7148
6b53acc6
ML
71492003-06-05 Michal Ludvig <mludvig@suse.cz>
7150
7151 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7152 in each pass.
7153
4d9850d3
JJ
71542003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7155
7156 * thread-db.c (check_event): For create/death event breakpoints,
7157 loop through all messages to ensure that we read the message
7158 corresponding to the breakpoint we are at.
7159
8efca6ba
MS
71602003-06-04 Michael Snyder <msnyder@redhat.com>
7161
7162 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7163
0912c7f2
MK
71642003-06-04 Mark Kettenis <kettenis@gnu.org>
7165
7166 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7167 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7168 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7169 when handling .eh_frame sections.
7170
4e370325
JB
71712003-06-04 J. Brobecker <brobecker@gnat.com>
7172
7173 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7174 prepare_to_proceed procedure instead of the hppa-specific one.
7175 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7176
b757528f 71772003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7178
b757528f
JJ
7179 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7180 * config.in: Regenerated.
7181 * configure.in: Add test for syscall function and check for
7182 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7183 * configure: Regenerated.
7184 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7185 <sys/syscall.h>.
7186 (kill_lwp): New function that uses tkill syscall or
7187 uses kill, depending on whether threading model is nptl or not.
7188 All callers of kill() changed to use kill_lwp().
7189 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7190 see if all threads have already exited in the nptl model.
7191 (stop_and_resume_callback): New callback function used by the
7192 lin_lwp_wait thread exit handling code.
7193 (stop_wait_callback): Check for threads already having exited and
7194 delete such threads fromt the lwp list when discovered.
7195 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7196
b757528f
JJ
7197 Roland McGrath <roland@redhat.com>
7198 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7199 nptl libthread_db.
7200
087779b1
RH
72012003-06-03 Richard Henderson <rth@redhat.com>
7202
b21fd293
RH
7203 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7204 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7205 (alpha_sigtramp_frame_prev_register): Likewise.
7206 (alpha_heuristic_frame_prev_register): Likewise.
7207 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7208
8ffd9b1b 7209 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7210 alpha-specific register id names.
7211 (alpha_mdebug_frame_unwind_cache): Likewise.
7212 (alpha_mdebug_frame_prev_register): Likewise.
7213
baa490c4
RH
72142003-06-03 Richard Henderson <rth@redhat.com>
7215
7216 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7217 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7218 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7219 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7220 unwind routines.
7221 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7222 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7223 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7224
7225 * alpha-linux-tdep.c: Remove unnecessary includes.
7226 * Makefile.in (alpha-linux-tdep.o): Update.
7227
72282003-06-03 Richard Henderson <rth@redhat.com>
7229
7230 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7231 (alphabsd_fill_fpreg): Likewise.
7232
f534e522
JB
72332003-06-03 J. Brobecker <brobecker@gnat.com>
7234
7235 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7236 references to struct frame_info fields by calls to the equivalent
7237 accessors. Necessary now that frame_info is opaque.
7238
4035536b
JB
72392003-06-03 J. Brobecker <brobecker@gnat.com>
7240
7241 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7242 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7243 structure, field no longer exists.
7244
0bd79c5c
JB
72452003-06-03 J. Brobecker <brobecker@gnat.com>
7246
7247 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7248 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7249
37bb6d9f
JB
72502003-06-03 J. Brobecker <brobecker@gnat.com>
7251
7252 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7253 references to struct frame_info fields by calls to the equivalent
7254 accessors. Necessary now that frame_info is opaque.
7255
852ee05c
JB
72562003-06-03 J. Brobecker <brobecker@gnat.com>
7257
7258 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7259 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7260 structure, field no longer exists.
7261
7d58c67d
TR
72622003-06-03 Theodore A. Roth <troth@openavr.org>
7263
8ffd9b1b 7264 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7265 accumulation of the size of all registers instead of blindly using
7266 DEPRECATED_REGISTER_BYTES.
7267
0a48e7e8
MS
72682003-06-03 Michael Snyder <msnyder@redhat.com>
7269
7270 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7271 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7272 for h8300sx.
7273
9798ab0d
JB
72742003-06-03 J. Brobecker <brobecker@gnat.com>
7275
7276 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7277 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7278
00b037e2
AC
72792003-06-03 Andrew Cagney <cagney@redhat.com>
7280
7281 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7282 (sparc_convert_to_raw): Delete function.
7283 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7284 register_convert_to_virtual.
7285
043b2f77
JJ
72862003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7287
7288 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7289 layer if not dealing with a statically-linked threaded program.
7290
f43caff8
KW
72912003-06-03 Kris Warkentin <kewarken@qnx.com>
7292
7293 * solib.c (solib_open): Update comment to reflect actual search order.
7294
ae1e7417
AC
72952003-06-03 Andrew Cagney <cagney@redhat.com>
7296
7297 * frame.c (get_frame_memory_signed): New function.
7298 (get_frame_memory, get_frame_memory_unsigned): New function.
7299 (get_frame_arch): New function.
7300 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7301 (get_frame_memory, get_frame_unsigned_memory): Declare.
7302 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7303 get_frame_memory_unsigned and get_frame_arch.
7304 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7305
cb123844
RG
73062003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7307
7308 * MAINTAINERS (write after approval): Add myself.
7309
1bb792e9
JB
73102003-06-03 Jim Blandy <jimb@redhat.com>
7311
7312 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7313 elements of gregset_t are 64 bits each, but access registers
7314 are still 32 bits, so they're packed two per gregset_t
7315 element. Unpack/pack them properly.
7316
aee8d8ba
DC
73172003-06-02 David Carlton <carlton@bactrian.org>
7318
7319 * linespec.c (find_methods): Break out code into
7320 add_matching_methods and add_constructors.
7321 (add_matching_methods): New.
7322 (add_constructors): Ditto.
7323
bf7488d2
AC
73242003-06-02 Andrew Cagney <cagney@redhat.com>
7325
bf7488d2
AC
7326 * sparc-tdep.c (sparc_print_registers): Delete call to
7327 REGISTER_CONVERTIBLE.
7328 (sparc_gdbarch_init): Do not set register_convertible.
7329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7330 * frv-tdep.c (frv_gdbarch_init): Ditto.
7331 * cris-tdep.c (cris_gdbarch_init): Ditto.
7332
adedef68
EZ
73332003-06-02 Elena Zannoni <ezannoni@redhat.com>
7334
8ffd9b1b 7335 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7336 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7337 (syms_from_objfile): Ditto.
7338
650fcc91
AS
73392003-06-03 Andreas Schwab <schwab@suse.de>
7340
7341 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7342 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7343
df4a182b
RH
73442003-06-02 Richard Henderson <rth@redhat.com>
7345
7346 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7347 a member of all_reggroup.
7348
c483c494
RH
73492003-06-02 Richard Henderson <rth@redhat.com>
7350
7351 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7352 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7353 (alpha_lds, alpha_sts): New.
7354 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7355 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7356 restructure and fail for type sizes other than 4 or 8.
7357 (alpha_value_to_register): Similarly.
7358 (alpha_extract_return_value): Use alpha_sts.
7359 (alpha_store_return_value): Use alpha_lds.
7360 (alpha_gdbarch_init): Update hooks.
7361
b38b6be2
RH
73622003-06-02 Richard Henderson <rth@redhat.com>
7363
7364 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7365 regnum identifiers.
7366 (alpha_sigtramp_register_address): Likewise.
7367
98a8e1e5
RH
73682003-06-02 Richard Henderson <rth@redhat.com>
7369
7370 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7371 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7372 * alpha-tdep.h: Declare them.
7373
7374 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7375 Remove zerobuf. Don't error on UNIQUE.
7376 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7377 (ALPHA_REGSET_UNIQUE): Provide default.
7378 (supply_gregset): Use alpha_supply_int_regs.
7379 (fill_gregset): Use alpha_fill_int_regs.
7380 (supply_fpregset): Use alpha_supply_fp_regs.
7381 (fill_fpregset): Use alpha_fill_fp_regs.
7382 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7383 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7384 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7385 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7386 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7387 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7388
67dfac52
RH
73892003-06-02 Richard Henderson <rth@redhat.com>
7390
f75d70cc
RH
7391 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7392
67dfac52
RH
7393 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7394 (alpha_store_return_value): Likewise.
7395
0cf566ec
DC
73962003-06-02 David Carlton <carlton@math.stanford.edu>
7397
7398 * block.c (contained_in): Add 'const' to arguments.
7399 (block_function): Ditto.
7400 * block.h: Update declarations for block_function and
7401 contained_in.
7402
cdef89d0
DC
74032003-06-02 David Carlton <carlton@math.stanford.edu>
7404
7405 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7406 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7407 * p-valprint.c (pascal_val_print): Ditto.
7408 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7409
72667056
RH
74102003-06-02 Richard Henderson <rth@redhat.com>
7411
98a8e1e5
RH
7412 * alpha-tdep.c (alpha_push_dummy_call): Use
7413 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7414
8ffd9b1b 7415 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7416 sign-extension of 32-bit values.
7417 (alpha_store_return_value): Similarly.
0ede8eca 7418
98a8e1e5
RH
7419 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7420 (alpha_extract_return_value): Likewise.
7421 (alpha_store_return_value): Likewise.
7b5e1cb3 7422
98a8e1e5
RH
7423 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7424 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7425
98a8e1e5
RH
7426 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7427 (alpha_extract_struct_value_address): Likewise.
7428 (alpha_store_return_value): Likewise.
7429 (alpha_store_struct_return): Remove.
7430 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7431
98a8e1e5
RH
7432 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7433 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7434 macros where appropriate.
7435 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7436 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7437
98a8e1e5
RH
7438 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7439 for SP, GP; void_func_ptr for PC; non-language-specific types
7440 for all others.
7441 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7442
6dd77b81
RH
74432003-06-02 Richard Henderson <rth@redhat.com>
7444
7445 * top.h (lim_at_start): Declare.
7446 * main.c (captured_main): Set it.
7447 * top.c (lim_at_start): Define.
7448 (command_loop): Use it instead of &environ.
7449 * event-top.c (command_handler): Likewise.
7450
f4dbdb54
JT
74512003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7452
7453 * mipsnbsd-tdep.c: Update copyright years.
7454 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7455
8f285956
RH
74562003-06-01 Richard Henderson <rth@redhat.com>
7457
98a8e1e5
RH
7458 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7459 (alpha-linux-tdep.o): Update dependencies.
7460 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7461 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7462
615967cb
RH
74632003-06-01 Richard Henderson <rth@redhat.com>
7464
98a8e1e5
RH
7465 * alpha-tdep.c (alpha_register_reggroup_p): New.
7466 (alpha_gdbarch_init): Register it.
615967cb 7467
b59661bd
AC
74682003-06-02 Andrew Cagney <cagney@redhat.com>
7469
7470 * dwarfread.c: Eliminate "register"
7471 (decode_die_type): Eliminate assignment within "if".
7472 (struct_type, decode_array_element_type): Ditto.
7473 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7474 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7475 (decode_modified_type, completedieinfo): Ditto.
7476 * block.c: Eliminate "register".
7477 (blockvector_for_pc_sect): Eliminate assignment within "if".
7478 * cp-support.h (struct symbol): Opaque declaration.
7479 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7480
5ef165c2
RH
74812003-06-01 Richard Henderson <rth@redhat.com>
7482
98a8e1e5
RH
7483 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7484 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7485
143985b7
AF
74862003-06-01 Adam Fedor <fedor@gnu.org>
7487
7488 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7489 * gdbarch.[ch]: Regenerate.
7490 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7491 (hppa_gdbarch_init): Set it in the gdbarch vector.
7492 * i386-tdep.c (i386_fetch_pointer_argument): New
7493 (i386_gdbarch_init): Set it into gdbarch.
7494 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7495 (rs6000_gdbarch_init): Set it in gdbarch.
7496 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7497 (sparc_gdbarch_init): Set it in gdbarch.
7498
ae0167b9
AC
74992003-06-01 Andrew Cagney <cagney@redhat.com>
7500
7c0b4a20
AC
7501 * defs.h (extract_address): Delete declaration.
7502 * findvar.c (extract_address): Delete function.
7503 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7504 extract_address with the inline equivalent,
7505 extract_unsigned_integer.
7506 (xstormy16_extract_struct_value_address): Ditto.
7507 (xstormy16_pointer_to_address): Ditto.
7508 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7509 * v850-tdep.c (v850_push_arguments): Ditto.
7510 (v850_extract_return_value): Ditto.
7511 (v850_extract_struct_value_address): Ditto.
7512 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7513 (sparcnbsd_get_longjmp_target_64): Ditto.
7514 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7515 (get_longjmp_target): Ditto.
7516 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7517 (sh64_extract_struct_value_address): Ditto.
7518 (sh_push_arguments): Ditto.
7519 (sh64_push_arguments): Ditto.
7520 * remote-vxsparc.c (vx_read_register): Ditto.
7521 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7522 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7523 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7524 * mipsv4-nat.c (get_longjmp_target): Ditto.
7525 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7526 * mips-nat.c (get_longjmp_target): Ditto.
7527 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7528 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7529 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7530 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7531 * irix5-nat.c (get_longjmp_target): Ditto.
7532 * irix4-nat.c (get_longjmp_target): Ditto.
7533 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7534 (ia64_push_arguments): Ditto.
7535 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7536 * h8300-tdep.c (h8300_push_arguments): Ditto.
7537 (h8300_store_return_value): Ditto.
7538 (h8300_extract_struct_value_address): Ditto.
7539 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7540 (frv_push_arguments): Ditto.
7541 * avr-tdep.c (avr_pointer_to_address): Ditto.
7542 (avr_push_arguments): Ditto.
7543 * arm-tdep.c (arm_push_dummy_call): Ditto.
7544 (arm_get_longjmp_target): Ditto.
7545 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7546 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7547 (alpha_get_longjmp_target): Ditto.
7548
ae0167b9
AC
7549 * solib-irix.c (extract_mips_address): Inline extract_address,
7550 replacing it with extract_signed_integer.
7551 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7552 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7553 (first_link_map_member, open_symbol_file_object): Ditto.
7554 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7555 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7556 (LM_NEXT, LM_NAME): Ditto.
7557
44d88583
RH
75582003-06-01 Richard Henderson <rth@redhat.com>
7559
98a8e1e5
RH
7560 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7561 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7562 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7563 (alpha_cannot_store_register): Likewise.
7564 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7565 * alpha-nat.c (supply_gregset): Likewise.
7566 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7567
310e9b6a
AC
75682003-06-01 Andrew Cagney <cagney@redhat.com>
7569
7570 * infcall.c (call_function_by_hand): Update comment on
7571 DEPRECATED_DUMMY_WRITE_SP.
7572
7573 * mips-tdep.c (mips_gdbarch_init): Do not set
7574 deprecated_dummy_write_sp.
7575 (mips_eabi_push_dummy_call): Set the SP register.
7576 (mips_o64_push_dummy_call): Set the SP register.
7577 (mips_o32_push_dummy_call): Set the SP register.
7578 (mips_n32n64_push_dummy_call): Set the SP register.
7579
5ab84872
RH
75802003-06-01 Richard Henderson <rth@redhat.com>
7581
98a8e1e5
RH
7582 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7583 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7584 (supply_gregset): Likewise.
7585 * alpha-tdep.c (alpha_store_return_value): Likewise.
7586 (alpha_get_longjmp_target): Likewise.
7587 (alpha_register_name): Constify array.
7588 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7589 deprecated_register_size, deprecated_register_bytes,
7590 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7591 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7592 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7593
09cc52fd
RH
75942003-06-01 Richard Henderson <rth@redhat.com>
7595
7596 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7597 from arg_reg_buffer to regcache to avoid double conversion.
7598
c7f16359
MK
75992003-06-01 Mark Kettenis <kettenis@gnu.org>
7600
7601 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7602 SP_REGNUM.
7603 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7604 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7605
7131cb6e
RH
76062003-06-01 Richard Henderson <rth@redhat.com>
7607
98a8e1e5
RH
7608 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7609 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7610
f3e0f90b
RH
76112003-06-01 Richard Henderson <rth@redhat.com>
7612
98a8e1e5
RH
7613 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7614 not overlapping PC_REGNUM.
f3e0f90b 7615
c88e30c0
RH
76162003-06-01 Richard Henderson <rth@redhat.com>
7617
98a8e1e5
RH
7618 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7619 alpha_push_arguments. Don't dump argument register data to
7620 the target stack. Fix float and 128-bit long double semantics.
7621 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7622 (alpha_fix_call_dummy): Remove.
7623 (alpha_call_dummy_words): Remove.
7624 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7625
f1a559ae
RH
76262003-06-01 Richard Henderson <rth@redhat.com>
7627
7628 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7629
5e045346
AC
76302003-06-01 Andrew Cagney <cagney@redhat.com>
7631
95404a3e
AC
7632 * mips-tdep.c (is_mips16_addr): New function.
7633 (make_mips16_addr, unmake_mips16_addr): New functions.
7634 (pc_is_mips16, mips_fetch_instruction): Use.
7635 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7636 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7637 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7638 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7639 TARGET_MIPS.
7640 * config/mips/tm-mips.h: Update copyright.
7641 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7642 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7643 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7644 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7645 (TM_PRINT_INSN_MACH): Delete.
7646 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7647
5e045346
AC
7648 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7649 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7650 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7651 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7652 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7653 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7654 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7655 mips*-*-riscos* and mips*-*-sysv* onto mips.
7656 * config/mips/mips64.mt: New file.
7657 * config/mips/mips.mt: New file.
7658 * config/mips/littlemips.mt: Delete file.
7659 * config/mips/decstation.mt: Delete file.
7660 * config/mips/vr4300el.mt: Delete file.
7661 * config/mips/vr5000el.mt: Delete file.
7662 * config/mips/vr5000.mt: Delete file.
7663 * config/mips/vr4100.mt: Delete file.
7664 * config/mips/vr4xxxel.mt: Delete file.
7665 * config/mips/vr4300.mt: Delete file.
7666 * config/mips/vr4xxx.mt: Delete file.
7667 * config/mips/bigmips.mt: Delete file.
7668 * config/mips/bigmips64.mt: Delete file.
7669 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7670 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7671 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7672 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7673 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7674 "tm-bigmips.h".
7675 * config/mips/tm-irix3.h: Ditto.
7676 * config/mips/tm-mipsv4.h: Ditto.
7677 * config/mips/tm-embed.h: Ditto.
7678 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7679 "tm-bigmips64.h".
7680 * config/mips/tm-vr5000el.h: Delete file.
7681 * config/mips/tm-tx39l.h: Delete file.
7682 * config/mips/tm-vr4300el.h: Delete file.
7683 * config/mips/tm-vr4xxxel.h: Delete file.
7684 * config/mips/tm-vr4300.h: Delete file.
7685 * config/mips/tm-vr4100.h: Delete file.
7686 * config/mips/tm-vr4xxx.h: Delete file.
7687 * config/mips/tm-vr5000.h: Delete file.
7688 * config/mips/tm-embedl64.h: Delete file.
7689 * config/mips/tm-embedl.h: Delete file.
7690 * config/mips/tm-embed64.h: Delete file.
7691 * config/mips/tm-bigmips64.h: Delete file.
7692 * config/mips/tm-bigmips.h: Delete file.
7693
2473a4a9
MK
76942003-06-01 Mark Kettenis <kettenis@gnu.org>
7695
97a5b208
MK
7696 Fix gdb/1216.
7697 * shnbsd-nat.c: Include "sh-tdep.h".
7698
2473a4a9
MK
7699 From Richard Henderson <rth@redhat.com>:
7700 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7701
e0f7ec59
AC
77022003-05-31 Andrew Cagney <cagney@redhat.com>
7703
7704 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7705 forward declaration.
7706 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7707 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7708 (mips_find_saved_regs): Use set_reg_offset.
7709 (mips_frame_init_saved_regs): Delete function.
7710 (mips_pop_frame): Call mips_find_saved_regs instead of
7711 DEPRECATED_FRAME_INIT_SAVED_REGS.
7712
68dcc709
AC
77132003-05-31 Andrew Cagney <cagney@redhat.com>
7714
7715 * mips-tdep.c (mips_gdbarch_init): Do not set
7716 deprecated_max_register_raw_size, register_virtual_size, and
7717 deprecated_max_register_virtual_size.
7718
cfc14b3a
MK
77192003-05-31 Mark Kettenis <kettenis@gnu.org>
7720
6405b0a6
MK
7721 * i386-tdep.c: Include "dwarf2-frame.h".
7722 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7723 * Makefile.in (i386-tdep.o): Update dependencies.
7724
cfc14b3a
MK
7725 * dwarf2-frame.c, dwarf2-frame.h: New files.
7726 * Makefile.in (SFILES): Add dwarf2-frame.c.
7727 (dwarf2_frame_h): Define.
7728 (COMMON_OBS): Add dwarf2-frame.o.
7729 (dwarf2-frame.o): Add dependencies.
7730
6a2751d2
AJ
77312003-05-31 Andreas Jaeger <aj@suse.de>
7732
7733 * x86-64-linux-nat.c: Fix comment.
7734
1c3545ae
MK
77352003-05-31 Mark Kettenis <kettenis@gnu.org>
7736
10f93086
MK
7737 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7738 function signature.
7739
1c3545ae
MK
7740 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7741 have a sigcontext_addr handler.
7742 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7743 sigcontext_addr handler.
7744
e11c53d2
AC
77452003-05-31 Andrew Cagney <cagney@redhat.com>
7746
7747 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7748 (print_fp_register_row): Replace do_fp_register_row.
7749 (mips_print_fp_register): Add "file" and "frame" parameters.
7750 (mips_print_register): Add "file" and "frame" parameters.
7751 (mips_print_registers_info): Replace mips_do_registers_info.
7752 (mips_gdbarch_init): Set print_registers_info instead of
7753 deprecated_do_registers_info.
7754 (mips_read_fp_register_single): Add "frame" parameter.
7755 (mips_read_fp_register_double): Add "frame" parameter.
7756
a3386186
MK
77572003-05-31 Mark Kettenis <kettenis@gnu.org>
7758
70913449
MK
7759 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7760 Fixes a bug where GDB would print the wrong register names for
7761 targets without SSE.
7762
2b5e0749
MK
7763 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7764 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7765 registers.
7766
7767 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7768 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7769 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7770 TDEP->sc_sp_offset.
7771
a3386186
MK
7772 From Michal Ludvig <mludvig@suse.cz>:
7773 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7774 and `sc_num_regs'.
7775 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7776 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7777 I386_ST0_REGNUM): Move here from...
7778 * i386-tdep.c: ... here.
7779 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7780 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7781 registers if possible.
7782 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7783 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7784 Remove variables.
7785 (i386bsd_sc_reg_offset): New variable.
7786 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7787 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7788 TDEP->sc_sp_offset.
7789 (i386fbsd_sc_reg_offset): New variable.
7790 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7791 TDEP->sc_num_regs.
7792 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7793 variables.
7794 (i386fbsd4_sc_reg_offset): New variable.
7795 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7796 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7797 TDEP->sc_sp_offset.
7798 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7799 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7800 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7801 Remove variables.
7802 (i386nbsd_sc_reg_offset): New variable.
7803 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7804 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7805 TDEP->sc_sp_offset.
7806 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7807 Remove variables.
7808 (i386obsd_sc_reg_offset): New variable.
7809 (i386obsd_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 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7813 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7814 for frame pointer offset in `struct sigcontext'.
7815
25ab4790
AC
78162003-05-31 Andrew Cagney <cagney@redhat.com>
7817
7818 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7819 architecture methods call_dummy_words, sizeof_call_dummy_words,
7820 push_return_address, store_struct_return, and fix_call_dummy. Set
7821 push_dummy_call instead of deprecated_push_arguments.
7822 (mips_store_struct_return): Delete function.
7823 (mips_fix_call_dummy): Delete function.
7824 (mips_push_return_address): Delete function.
7825 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7826 RA_REGNUM and T9_REGNUM.
7827 (mips_n32n64_push_dummy_call): Ditto for
7828 mips_n32n64_push_arguments.
7829 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7830 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7831
6a65450a
AC
78322003-05-31 Andrew Cagney <cagney@redhat.com>
7833
7834 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7835 "dummy_addr" to "bp_addr".
7836 * infcall.c (call_function_by_hand): Pass "funaddr" to
7837 gdbarch_push_dummy_call.
7838 * gdbarch.h, gdbarch.c: Re-generate.
7839 * i386-tdep.c (i386_push_dummy_call): Update.
7840 * arm-tdep.c (arm_push_dummy_call): Update.
7841 * d10v-tdep.c (d10v_push_dummy_call): Update.
7842
c4f35dd8
MK
78432003-05-31 Mark Kettenis <kettenis@gnu.org>
7844
7845 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7846 variable declarations.
7847 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7848 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7849 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7850 x86_64_init_frame_pc, x86_64_init_frame_pc,
7851 x86_64_function_has_prologue): Remove prototypes.
7852 (X86_64_NUM_GREGS): New define.
7853 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7854 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7855 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7856 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7857 XMM1_REGNUM): Remove defines.
7858 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7859 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7860 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7861 X86_64_XMM1_REGNUM): New defines.
7862 (struct x86_64_register_info): Renamed from `struct
7863 register_info'. Remove `size' member.
7864 (x86_64_register_info_table): Remove variable.
7865 (x86_64_register_info): New variable.
7866 (X86_64_NUM_REGS): New define.
7867 (X86_64_NUM_GREGS): Remove define.
7868 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7869 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7870 Remove variables.
7871 (x86_54_dwarf2_reg_to_regnum): Remove function.
7872 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7873 (x86_64_dwarf_reg_to_regnum): New function.
7874 (x86_64_register_name): Rewrite.
7875 (x86_64_register_raw_size): Remove function.
7876 (x86_64_register_byte_table): Remove variable.
7877 (x86_64_register_byte): Remove function.
7878 (x86_64_register_virtual_type): Remove function.
7879 (x86_64_register_type): New function.
7880 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7881 x86_64_register_convert_to_raw): Remove functions.
7882 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7883 (x86_64_use_struct_convention): Make static. Adjust for renamed
7884 defines.
7885 (x86_64_frame_init_saved_regs): Remove function.
7886 (x86_64_push_arguments): Make static. Change to accept a regcache
7887 as argument.
7888 (x86_64_store_return_value, x86_64_extract_return_value): Make
7889 static. Rewrite based on i386 counterparts.
7890 (x86_64_push_dummy_call): New function.
7891 (X86_64_NUM_SAVED_REGS): New define.
7892 (x86_64_register_number): Remove function.
7893 (x86_64_store_struct_return): Remove function.
7894 (x86_64_frameless_function_invocation,
7895 x86_64_function_has_prologue): Remove functions.
7896 (PROLOG_BUFSIZE): Remove define.
7897 (struct x86_64_frame_cache): New structure.
7898 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7899 x86_64_frame_cache, x86_64_frame_this_id,
7900 x86_64_frame_prev_register, x86_64_frame_p,
7901 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7902 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7903 functions.
7904 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7905 variables.
7906 (x86_64_skip_prologue): Rewrite in terms of
7907 x86_64_analyze_prologue.
7908 (x86_64_frame_base_address): New function.
7909 (x86_64_frame_base): New variable.
7910 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7911 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7912 set deprecated_fp_regnum, deprecated_register_size,
7913 deprecated_register_bytes, register_raw_size, register_byte,
7914 register_virtual_type, register_convertiable,
7915 register_convert_to_virtual, convert_to_raw,
7916 deprecated_get_saved_register, deprecated_target_read_fp,
7917 deprecated_push_arguments, deprecated_push_return_address,
7918 deprecated_pop_frame, deprecated_store_struct_return,
7919 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7920 frameless_function_invocation, deprecated_frame_saved_pc,
7921 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7922 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7923 deprecated_init_frame_pc and virtual_frame_pointer. Call
7924 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7925 and x86_64_frame_p. Call frame_base_set_default to register
7926 x86_64_frame_base.
7927 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7928 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7929 (_initialize_x86_64_tdep): Remove function.
7930 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7931 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7932 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7933 define.
7934 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7935 (x86_64_linux_sigcontext_addr): Rewrite.
7936 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7937 x86_64_linux_frame_saved_pc): Remove functions.
7938 (x86_64_linux_pc_in_sigtramp): Renamed from
7939 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7940 trampoline.
7941 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7942 Remove_functions.
7943 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7944 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7945 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7946 (x86_64_regmap): Rename to regmap.
7947 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7948 x86_64_num_gregs.
7949 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7950 x86_64_regmap.
7951 (x86_64_fxsave_offset): Remove function.
7952 (supply_fpregset): Simply call x86_64_supply_fxsave.
7953 (fill_fpregset): Simply call x86_64_fill_fxsave.
7954 (fetch_inferior_registers, store_inferior_registers): Avoid
7955 asignment in if-statement.
7956 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7957 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7958 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7959 (fetch_core_registers): Remove function.
7960 (linux_elf_core_fns): Remove.
7961 (offsetoff): Don't define.
7962 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7963 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7964 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7965 add core-regset.o.
7966 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7967 protection against multiple includes instead of NM_X86_64_h. Add
7968 various comments. Include "config/nm-linux.h". Don't include
7969 <signal.h>.
7970 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7971 GET_THREAD_SIGNALS): Remove defines.
7972 (x86_64_register_u_addr, kernel_u_size,
7973 lin_thread_get_thread_signals): Remove prototypes.
7974 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7975 [HAVE_LINK_H]: Don't include "solib.h".
7976 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7977 * config/i386/tm-x86-64linux.h: Fix comments.
7978 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7979 x86-64-tdep.o): Update dependencies.
7980
c25083af
AC
79812003-05-30 Andrew Cagney <cagney@redhat.com>
7982
c8f55a7b
AC
7983 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7984 Change parameter type to a "struct regcache *".
7985
c25083af
AC
7986 * gdbarch.sh: Regardless of the multi-arch level, always define
7987 the macro when not already defined.
7988 * gdbarch.h, gdbarch.c: Re-generate.
7989
fbe586ae
RH
79902003-05-30 Richard Henderson <rth@redhat.com>
7991
7992 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7993 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7994 (alpha_mdebug_frame_this_id): Likewise.
7995 (alpha_mdebug_frame_prev_register): Likewise.
7996 (alpha_mdebug_frame_base_address): Likewise.
7997 (alpha_mdebug_frame_locals_address): Likewise.
7998 (alpha_mdebug_frame_args_address): Likewise.
7999 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8000 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8001 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8002 loop increment.
8003 (alpha_heuristic_frame_this_id): Make static.
8004 (alpha_heuristic_frame_prev_register): Likewise.
8005 (alpha_heuristic_frame_base_address): Likewise.
8006 * alpha-tdep.h: Update.
8007
acd5c798
MK
80082003-05-30 Mark Kettenis <kettenis@gnu.org>
8009
8010 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8011 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8012 defenitions.
8013 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8014 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8015 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8016 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8017 I386_ST0_REGNUM): New defines.
8018 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8019 codestream_get): Remove define.
8020 (codestream_next_addr, condestream_addr, condestream_buf,
8021 codestream_off, codestream_cnt): Remove variables.
8022 (codestream_fill, codestream_seek, codestream_read): Remove
8023 functions.
8024 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8025 functionality.
8026 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8027 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8028 i386_frame_saved_pc, i386_saved_pc_after_call,
8029 i386_frame_num_args, i386_frame_init_saved_regs,
8030 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8031 i386_push_arguments): Remove functions.
8032 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8033 functionality. Use i386_analyze_prologue instead of
8034 i386_get_frame_setup.
8035 (I386_NUM_SAVED_REGS): New define.
8036 (struct i386_frame_cache): New structure.
8037 (i386_alloc_frame_cache, i386_analyze_struct_return,
8038 i386_skip_probe, i386_analyze_frame_setup,
8039 i386_analyze_register_saves, i386_analyze_prologue,
8040 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8041 i386_frame_prev_register, i386_sigtramp_frame_cache,
8042 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8043 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8044 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8045 New functions.
8046 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8047 New variables.
8048 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8049 I386_EAX_REGNUM and I386_EDX_REGNUM.
8050 (i386_extract_return_value, i386_store_return_value): Use
8051 I386_ST0_REGNUM where appropriate.
8052 (i386_extract_struct_value_address): Rewrite to use extract_address.
8053 (i386_svr4_pc_in_sigtramp): Add comment.
8054 (i386_svr4_sigcontext_addr): Rewrite.
8055 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8056 TDEP->sc_sp_offset.
8057 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8058 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8059 of new defines. Set push_dummy_call, don't set
8060 deprecated_push_arguments, deprecated_push_return_address,
8061 deprecated_pop_frame. Don't set parm_boundary. Don't set
8062 deprecated_frame_chain, deprecated_frame_saved_pc,
8063 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8064 save_dummy_frame_tos, unwind_pc. Call
8065 frame_unwind_append_predicate and frame_base_set_default. Don't
8066 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8067 Don't set frameless_function_invocation. Don't set
8068 deprecated_register_bytes, deprecated_register_size,
8069 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8070 * i386-linux-tdep.c: Fix formatting in some comments.
8071 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8072 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8073 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8074 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8075 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8076 redundant parentheses.
8077 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8078 (i386_linux_sigcontext_addr): Use it. Rewrite.
8079 (find_minsym_and_objfile): Change name of second argument.
8080 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8081 changed. Use frame_pc_unwind instead of
8082 DEPRECATED_SAVED_PC_AFTER_CALL.
8083 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8084 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8085 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8086 unwinder.
8087 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8088 "dummy-frame.h".
8089 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8090 (_initialize_i386_cygwin_tdep): New prototype.
8091 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8092 deprecated_frame_chain_valid.
8093 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8094 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8095 Rely on the SVR4 defaults.
8096 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8097 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8098
c89b70f1
AC
80992003-05-30 Andrew Cagney <cagney@redhat.com>
8100
8101 * infcall.c (call_function_by_hand): Always call
8102 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8103
85b32d22
RH
81042003-05-30 Richard Henderson <rth@redhat.com>
8105
c89b70f1
AC
8106 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8107 increment.
85b32d22 8108
bfe51b1e
JB
81092003-05-29 Jim Blandy <jimb@redhat.com>
8110
8111 Use gdbarch methods for solib stuff on PowerPC Linux.
8112 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8113 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8114 show through.
8115 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8116 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8117 giving the same effect as the #definitions above.
8118
1abf022c
AF
81192003-05-29 Adam Fedor <fedor@gnu.org>
8120
8121 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8122 (find_implementation_from_class): Replace it with the standard
8123 case i.e. do nothing.
8124
d2427a71
RH
81252003-05-29 Richard Henderson <rth@redhat.com>
8126
8127 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8128 (alpha_linux_sigtramp_offset): Use it. Make static.
8129 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8130 update for new frame model.
8131 * alpha-mdebug-tdep.c: New file.
8132 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8133 (alpha_osf1_init_abi): Install it.
8134 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8135 (linked_proc_desc_table): Remove.
8136 (alpha_frame_past_sigtramp_frame): Remove.
8137 (alpha_dynamic_sigtramp_offset): Remove.
8138 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8139 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8140 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8141 (push_sigtramp_desc): Remove.
8142 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8143 (alpha_cannot_store_register): Likewise.
8144 (alpha_sigcontext_addr): Remove.
8145 (alpha_find_saved_regs): Remove.
8146 (alpha_frame_init_saved_regs): Remove.
8147 (alpha_init_frame_pc_first): Remove.
8148 (read_next_frame_reg): Remove.
8149 (alpha_frame_saved_pc): Remove.
8150 (alpha_saved_pc_after_call): Remove.
8151 (temp_proc_desc, temp_saved_regs): Remove.
8152 (alpha_about_to_return): Remove.
8153 (cached_proc_desc): Remove.
8154 (alpha_frame_chain): Remove.
8155 (alpha_print_extra_frame_info): Remove.
8156 (alpha_init_extra_frame_info): Remove.
8157 (alpha_frame_locals_address): Remove.
8158 (alpha_frame_args_address): Remove.
8159 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8160 (alpha_push_dummy_frame): Remove.
8161 (alpha_pop_frame): Remove.
8162 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8163 (alpha_read_insn): New.
8164 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8165 for different insn encodings.
8166 (alpha_in_lenient_prologue): Remove.
8167 (struct alpha_sigtramp_unwind_cache): New.
8168 (alpha_sigtramp_frame_unwind_cache): New.
8169 (alpha_sigtramp_register_address): New.
8170 (alpha_sigtramp_frame_this_id): New.
8171 (alpha_sigtramp_frame_prev_register): New.
8172 (alpha_sigtramp_frame_unwind): New.
8173 (alpha_sigtramp_frame_p): New.
8174 (struct alpha_heuristic_unwind_cache): New.
8175 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8176 don't count nop insns that occur between functions.
8177 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8178 heuristic_proc_desc, but without the mdebug wrapping.
8179 (alpha_heuristic_frame_this_id): New.
8180 (alpha_heuristic_frame_prev_register): New.
8181 (alpha_heuristic_frame_unwind): New.
8182 (alpha_heuristic_frame_p): New.
8183 (alpha_heuristic_frame_base_address): New.
8184 (alpha_heuristic_frame_base): New.
8185 (alpha_unwind_dummy_id): New.
8186 (alpha_unwind_pc): New.
8187 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8188 frame related deprecated initializations; install replacements.
8189 (alpha_dump_tdep): Remove.
8190 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8191 (alpha_read_insn, alpha_after_prologue,
8192 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8193 alpha_heuristic_frame_prev_register,
8194 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8195 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8196 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8197 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8198
93ec1121
AC
81992003-05-29 Andrew Cagney <cagney@redhat.com>
8200
8201 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8202 dependant on the availability of ASSERT_FUNCTION.
8203 (ASSERT_FUNCTION): Do not define when there is no function name.
8204
98f08d3d
KB
82052003-05-29 Kevin Buettner <kevinb@redhat.com>
8206
8207 From Jimi X <jimix@watson.ibm.com>:
8208 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8209
0897f59b
JB
82102003-05-28 Jim Blandy <jimb@redhat.com>
8211
8212 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8213 argument to ptrace to int; the system headers should give it the
8214 right type, and pointers don't fit in ints on powerpc64-*-*.
8215
14898363
L
82162003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8217
8218 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8219 DW_TAG_catch_block.
8220
a7a48797
EZ
82212003-05-26 Elena Zannoni <ezannoni@redhat.com>
8222
8223 * stabsread.c (dbx_lookup_type): Make static.
8224 (read_type): Ditto.
8225 (add_undefined_type): Ditto.
8226 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8227 not export.
8228
f5479e9c
EZ
82292003-05-26 Elena Zannoni <ezannoni@redhat.com>
8230
8231 * hpread.c (hpread_has_name): Make static.
8232 (hpread_psymtab_to_symtab): Ditto.
8233 (file_exists): Ditto.
8234 (hpread_call_pxdb): Ditto.
8235 (hpread_pxdb_needed): Ditto.
8236 (hpread_quick_traverse): Ditto.
8237 (hpread_get_header): Ditto.
8238 (hpread_get_lntt): Ditto.
8239 (hpread_get_slt): Ditto.
8240 (class_of): Ditto.
8241
eb2e12d7
AS
82422003-05-25 Andreas Schwab <schwab@suse.de>
8243
78bf922a
AS
8244 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8245 stack_align and deprecated_extra_stack_alignment_needed.
8246 (m68k_stack_align): Delete.
8247
eb2e12d7
AS
8248 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8249 (m68k_register_virtual_size): Likewise.
8250 (altos_skip_prologue): Remove obsolete function.
8251 (isi_frame_num_args): Likewise.
8252 (news_frame_num_args): Likewise.
8253 (m68k_fix_call_dummy): Make static.
8254 (m68k_push_dummy_frame): Likewise.
8255 (m68k_pop_frame): Likewise.
8256 (m68k_skip_prologue): Likewise.
8257 (m68k_frame_init_saved_regs): Likewise.
8258 (m68k_saved_pc_after_call): Likewise.
8259 (m68k_get_longjmp_target): Make multi-arch.
8260 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8261 structure. Register m68k_get_longjmp_target if enabled.
8262 * m68k-tdep.h (struct gdbarch_tdep): Define.
8263 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8264
8265 * Makefile.in (config.status): Also depend on configure.tgt
8266 and configure.host.
8267 (m68klinux-tdep.o): Update dependencies.
8268 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8269 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8270 (M68K_LINUX_JB_PC): Define.
8271 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8272 and take additional parameter.
8273 (m68k_linux_sigtramp_saved_pc): Update.
8274 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8275 m68k_linux_pc_in_sigtramp, in_plt_section,
8276 find_solib_trampoline_target.
8277 * config/m68k/tm-linux.h: Don't include any tm headers.
8278 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8279 (JB_ELEMENT_SIZE): Likewise.
8280 (JB_PC): Likewise.
8281 (GET_LONGJMP_TARGET): Likewise.
8282 (IN_SIGTRAMP): Likewise.
8283 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8284
eb2c22dc
MK
82852003-05-25 Mark Kettenis <kettenis@gnu.org>
8286
8287 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8288 (sparc32_push_arguments): Re-implement by calling
8289 sparc32_do_push_arguments.
8290
44b7b84e
MK
82912003-05-25 Mark Kettenis <kettenis@gnu.org>
8292
8293 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8294 SPARC_O1_REGNUM): New defines.
8295 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8296 (sparc32_store_return_value): New function.
8297 (sparc_extract_struct_value_address): Rewrite to operate on a
8298 regcache.
8299 (sparc_gdbarch_init): Don't set
8300 deprecated_extract_struct_value_address. Set
8301 extract_struct_value_address instead. Don't set
8302 deprecated_extract_return_value and deprecated_store_return_value
8303 for 32-bit targets. Set extract_return_value and
8304 store_return_value instead.
8305 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8306 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8307 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8308 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8309 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8310 (sparc_store_return_value): Remove prototype.
8311 (sparc32_store_return_value): New prototype.
8312 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8313 Adjust prototypes.
8314
f6ad61e3
MK
83152003-05-24 Mark Kettenis <kettenis@gnu.org>
8316
8317 * sparcnbsd-tdep.c: Include "gdb_string.h".
8318
b276f1bb
AC
83192003-05-23 Andrew Cagney <cagney@redhat.com>
8320
8321 * p-valprint.c (pascal_val_print): Replace extract_address with
8322 the inline equivalent extract_unsigned_integer.
8323 * jv-valprint.c (java_value_print): Ditto.
8324 * ada-valprint.c (ada_val_print_1): Ditto.
8325 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8326
e76c5fcc
TR
83272003-05-23 Theodore A. Roth <troth@openavr.org>
8328
8329 * blockframe.c (frameless_look_for_prologue): Remove unused
8330 after_prologue variable.
8331
2cdd89cb
MK
83322003-05-23 Mark Kettenis <kettenis@gnu.org>
8333
8334 * blockframe.c (get_pc_function_start): Rewrite to avoid
8335 asignments in if-statements.
8336
182d43bc
EZ
83372003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8338
8339 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8340 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8341 files, don't relocate absolute symbols (and do use mst_abs).
8342
e8f3fcdd
AC
83432003-05-23 Andrew Cagney <cagney@redhat.com>
8344
8345 * objc-lang.c: Include "gdb_assert.h".
8346 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8347 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8348 (gdb_check, gdb_check_fatal): Delete functions.
8349 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8350 gdb_assert.
8351 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8352 * Makefile.in (objc-lang.o): Update dependencies.
8353
3c23e6fb
ILT
83542003-05-22 Ian Lance Taylor <ian@airs.com>
8355
8356 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8357 with fprintf_filtered, not fprintf_unfiltered.
8358
af1342ab
AC
83592003-05-22 Andrew Cagney <cagney@redhat.com>
8360
8361 * stack.c (frame_info): Inline extract_address, replacing it with
8362 extract_unsigned_integer.
8363 * findvar.c (unsigned_pointer_to_address): Ditto.
8364 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8365 * dwarf2expr.c (dwarf2_read_address): Ditto.
8366 * frame.c (frame_pc_unwind): Update comment.
8367 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8368
47e242ec
JJ
83692003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8370
8371 * infptrace.c (detach): Call print_sys_errmsg rather than
8372 perror_with_name to issue warning message when errno is non-zero
8373 after calling ptrace detach.
8374
e2ac8128
JB
83752003-05-21 J. Brobecker <brobecker@gnat.com>
8376
8377 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8378 macro definitions from here...
8379 * hppa-tdep.c: ...to there.
8380
92b3541e
KB
83812003-05-20 Kevin Buettner <kevinb@redhat.com>
8382
8383 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8384 register_ptrace_addr(). Fix all callers.
8385
55809acb
AS
83862003-05-21 Andreas Schwab <schwab@suse.de>
8387
8388 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8389 dependencies.
8390 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8391 end.
8392 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8393 (_initialize_m68k_linux_tdep): New function.
8394 (m68k_linux_frame_saved_pc): Make static.
8395 (m68k_linux_extract_return_value): Likewise.
8396 (m68k_linux_store_return_value): Likewise.
8397 (m68k_linux_extract_struct_value_address): Likewise.
8398 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8399 Remove.
8400 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8401 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8402 (DEPRECATED_FRAME_SAVED_PC): Remove.
8403
0fbc10f7
KW
84042003-05-20 Kris Warkentin <kewarken@qnx.com>
8405
8406 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8407 regset numbering rather than our own.
8408
58da2eb2
DC
84092003-05-19 David Carlton <carlton@bactrian.org>
8410
8411 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8412
1fcb5155
DC
84132003-05-19 David Carlton <carlton@bactrian.org>
8414
8415 Partial fix for PR c++/827.
8416 * cp-support.h: Include symtab.h.
8417 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8418 * cp-namespace.c: Update contributors.
8419 (cp_lookup_symbol_nonlocal): New.
8420 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8421 (lookup_symbol_file): Ditto.
8422 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8423 * block.h: Declare block_scope, block_using, block_global_block.
8424 * block.c (block_scope): New.
8425 (block_using, block_global_block): Ditto.
8426 * Makefile.in (cp_support_h): Depend on symtab_h.
8427 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8428
5f9a71c3
DC
84292003-05-19 David Carlton <carlton@bactrian.org>
8430
8431 * language.h (struct language_defn): Add 'la_value_of_this'
8432 and 'la_lookup_symbol_nonlocal' members.
8433 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8434 lookup_symbol_static, lookup_symbol_global,
8435 lookup_symbol_aux_block.
8436 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8437 if we should search fields of this and how to do static/global
8438 lookup.
8439 (lookup_symbol_aux_block): Make extern.
8440 (basic_lookup_symbol_nonlocal): New.
8441 (lookup_symbol_static, lookup_symbol_global): Ditto.
8442 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8443 'la_lookup_symbol_nonlocal' members.
8444 * c-lang.c (c_language_defn, cplus_language_defn)
8445 (asm_language_defn, minimal_language_defn): Ditto.
8446 * jv-lang.c (java_language_defn): Ditto.
8447 * language.c (unknown_language_defn, auto_language_defn)
8448 (local_language_defn): Ditto.
8449 * m2-lang.c (m2_language_defn): Ditto.
8450 * objc-lang.c (objc_language_defn): Ditto.
8451 * scm-lang.c (scm_language_defn): Ditto.
8452 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8453 * p-lang.c (pascal_language_defn): Ditto for both.
8454 * Makefile.in (f-lang.o): Depend on value_h.
8455 (p-lang.o): Ditto.
8456
89a9d1b1
DC
84572003-05-19 David Carlton <carlton@bactrian.org>
8458
8459 * block.h: Declare block_static_block.
8460 * block.c (block_static_block): New.
8461 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8462 lookup_symbol_aux_local, calling block_static_block instead.
8463 (lookup_symbol_aux_local): Delete 'static_block' argument.
8464
eed3f8ab
DC
84652003-05-19 David Carlton <carlton@bactrian.org>
8466
8467 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8468
a09d8bda
ML
84692003-05-19 Michal Ludvig <mludvig@suse.cz>
8470
8471 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8472 register numbers mapping.
8473
69636828
AF
84742003-05-18 Adam Fedor <fedor@gnu.org>
8475
8476 * symtab.c (completion_list_objc_symbol): New function.
8477 (make_symbol_completion_list): Use it to add ObjC symbols
8478 when looking though the list.
8479 (language_search_unquoted_string): New function.
8480 (make_file_symbol_completion_list): Use it.
8481
55baeb84
AS
84822003-05-18 Andreas Schwab <schwab@suse.de>
8483
d0b45d99
AS
8484 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8485 dependencies.
8486 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8487 as m68k_linux_extract_return_value.
8488 (DEPRECATED_STORE_RETURN_VALUE): Define as
8489 m68k_linux_store_return_value.
8490 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8491 m68k_linux_extract_struct_value_address.
8492 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8493 get_next_frame, get_frame_base, get_frame_pc.
8494 (m68k_linux_frame_saved_pc): Use get_frame_base.
8495 (m68k_linux_extract_return_value): New function.
8496 (m68k_linux_store_return_value): New function.
8497 (m68k_linux_extract_struct_value_address): New function.
8498 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8499
55baeb84
AS
8500 * c-exp.y (typebase): Remove duplicate occurence of
8501 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8502 of lookup_signed_typename.
55baeb84 8503
b6b08ebf
MK
85042003-05-18 Mark Kettenis <kettenis@gnu.org>
8505
8506 * dwarf2loc.c (find_location_expression): Change type of second
8507 argument to `size_t *'.
8508 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8509 for size variable.
8510
5ad1c190
DC
85112003-05-18 David Carlton <carlton@bactrian.org>
8512
8513 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8514 'linkage_name'. Add comment.
8515 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8516 'linkage_name'.
8517 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8518 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8519 (lookup_block_symbol): Ditto.
8520
b8b527c5
AC
85212003-05-16 Andrew Cagney <cagney@redhat.com>
8522
8523 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8524 * gdbarch.h, gdbarch.c: Re-generate.
8525 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8526 * TODO (REGISTER_BYTES): Delete reference.
8527 * alpha-tdep.c (alpha_gdbarch_init): Update.
8528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8529 * x86-64-tdep.c (x86_64_init_abi): Update.
8530 * vax-tdep.c (vax_gdbarch_init): Update.
8531 * v850-tdep.c (v850_gdbarch_init): Update.
8532 * sparc-tdep.c (sparc_gdbarch_init): Update.
8533 * sh-tdep.c (sh_gdbarch_init): Update.
8534 * s390-tdep.c (s390_gdbarch_init): Update.
8535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8536 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8537 (ns32k_gdbarch_init_32382): Update.
8538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8539 * mcore-tdep.c (mcore_gdbarch_init): Update.
8540 * m68k-tdep.c (m68k_gdbarch_init): Update.
8541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8542 * ia64-tdep.c (ia64_gdbarch_init): Update.
8543 * i386-tdep.c (i386_gdbarch_init): Update.
8544 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8545 * hppa-tdep.c (hppa_gdbarch_init): Update.
8546 * h8300-tdep.c (h8300_gdbarch_init): Update.
8547 * frv-tdep.c (frv_gdbarch_init): Update.
8548 * cris-tdep.c (cris_gdbarch_init): Update.
8549 * avr-tdep.c (avr_gdbarch_init): Update.
8550 * arm-tdep.c (arm_gdbarch_init): Update.
8551 * sparc-tdep.c (sparc_pop_frame): Update.
8552 * rs6000-tdep.c (rs6000_pop_frame): Update.
8553 * remote.c (init_remote_state): Update.
8554 (remote_prepare_to_store): Update.
8555 * remote-vx.c (vx_prepare_to_store): Update.
8556 * remote-sds.c (sds_fetch_registers): Update.
8557 (sds_prepare_to_store): Update.
8558 * remote-array.c: Update.
8559 * regcache.c (init_legacy_regcache_descr): Update.
8560 (init_regcache_descr): Update.
8561 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8562 (mips_o64_extract_return_value): Update.
8563 * irix5-nat.c (fetch_core_registers): Update.
8564 * irix4-nat.c (fetch_core_registers): Update.
8565 * i386-tdep.h: Update.
8566 * hppa-tdep.c (pa_do_registers_info): Update.
8567 (pa_do_strcat_registers_info): Update.
8568 * cris-tdep.c (cris_register_bytes_ok): Update.
8569 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8570 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8571 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8572 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8573 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8574 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8575 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8576 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8577 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8578 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8579 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8580 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8581 (REGISTER_BYTES_OK): Update.
8582 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8583 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8584
ee2842e2
ILT
85852003-05-16 Ian Lance Taylor <ian@airs.com>
8586
8587 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8588 (vax_print_insn, print_insn_arg): Remove static functions.
8589 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8590 print_insn_vax from opcodes library.
8591 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8592
973177d3
AC
85932003-05-15 Andrew Cagney <cagney@redhat.com>
8594
aaab4dba
AC
8595 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8596 * target.h (memory_breakpoint_from_pc): Delete declaration.
8597 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8598 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8599 * monitor.c (monitor_insert_breakpoint): Use
8600 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8601 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8602 * gdbarch.h, gdbarch.c: Re-generate.
8603 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8604 (sparc_gdbarch_init): Set breakpoint_from_pc to
8605 sparc_breakpoint_from_pc.
8606 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8607 (BREAKPOINT_FROM_PC): Define.
8608 (sparc_breakpoint_from_pc): Declare.
8609 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8610 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8611 (BREAKPOINT_FROM_PC): Define.
8612 (BREAKPOINT): Delete macro.
8613 * target.h: Update comment.
8614 * s390-tdep.c (s390_gdbarch_init): Update comments.
8615 * remote.c: Update comments.
8616 * remote-mips.c: Update comments.
8617 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8618 * mem-break.c: Update comment.
8619 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8620 (ia64_memory_insert_breakpoint): Update.
8621 * config/sparc/tm-sparc.h: Update comment.
8622 * config/pa/tm-hppa64.h: Update comment.
8623 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8624 (rs6000_breakpoint_from_pc): Update.
8625 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8626 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8627 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8628 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8629 (mips_breakpoint_from_pc): Update.
8630 (mips_dump_tdep): Update.
8631
e06963ff
AC
8632 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8633 * minsyms.c (lookup_minimal_symbol): Inline
8634 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8635
973177d3
AC
8636 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8637 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8638 * p-lang.c (pascal_printstr): Ditto.
8639 * objc-lang.c (objc_printstr): Ditto.
8640 * m2-lang.c (m2_printstr): Ditto.
8641 * jv-valprint.c (java_print_value_fields): Ditto.
8642 * f-lang.c (f_printstr): Ditto.
8643 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8644 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8645 for repeat_count_threshold.
8646 * Makefile.in (cp-valprint.o): Update dependencies.
8647
5ea2bd7f 86482003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8649
5ea2bd7f
JJ
8650 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8651 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8652 they start with mov r2,r12. Support skipping over indirect stores
8653 of the input registers. Upon hitting a non-nop branch instruction
8654 or predicated instruction, bail out by setting lim_pc to the current
8655 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8656 beyond our calculated value and we have trust_limit set,
8657 use the lim_pc value.
8658
cc8c88f3
AC
86592003-05-15 Andrew Cagney <cagney@redhat.com>
8660
8661 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8662 generic_find_dummy_frame.
8663 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8664 (deprecated_generic_find_dummy_frame): Update.
8665 (deprecated_read_register_dummy): Update.
8666 * frame.c (deprecated_generic_get_saved_register): Update.
8667
909cd28e
TR
86682003-05-15 Theodore A. Roth <troth@openavr.org>
8669
8670 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8671 (avr_gdbarch_init): Set breakpoint_from_pc method.
8672
b923b08d
AC
86732003-05-15 Andrew Cagney <cagney@redhat.com>
8674
8675 * regcache.c (build_regcache): Set deprecated_register_valid
8676 directly.
8677 (deprecated_grub_regcache_for_register_valid): Delete function.
8678 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8679 declaration.
8680
ae2f03ac 86812003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8682
8683 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8684 * symtab.c (lookup_symbol_aux): Delete calls to
8685 lookup_symbol_aux_minsyms.
8686 (lookup_symbol_aux_minsyms): Comment out function and
8687 prototype. Delete lookup by mangled name.
ae2f03ac 8688
18ec9831
KB
86892003-05-14 Kevin Buettner <kevinb@redhat.com>
8690
8691 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8692 correctly indicate an empty stack and ``stack_allocated'' to the
8693 indicate the number of elements initially allocated.
8694 (dwarf_expr_grow_stack): Simplify method for computing new
8695 stack size. Don't loop infinitely if ``stack_len'' is zero.
8696 (execute_stack_op): Move ``ctx->in_reg'' initialization
8697 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8698 be used in conjuction with DW_OP_piece. Revise error message
8699 accordingly.
8700
de18ac1f
TR
87012003-05-14 Theodore A. Roth <troth@openavr.org>
8702
8703 * MAINTAINERS: Update my email address.
8704 * avr-tdep.c: Ditto.
8705
176620f1
EZ
87062003-05-14 Elena Zannoni <ezannoni@redhat.com>
8707
8708 * symtab.h (enum domain_enum): Rename from namespace_enum.
8709 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8710 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8711 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8712 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8713 TYPES_NAMESPACE, METHODS_NAMESPACE.
8714 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8715 (struct symbol, struct partial_symbol): Rename field
8716 'namespace_enum namespace' to 'domain_enum domain'.
8717 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8718 Delete old define kludge for namespace.
8719
8720 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8721 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8722 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8723 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8724 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8725 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8726 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8727 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8728 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8729 occurrences of the above.
8730
b7f31508
ILT
87312003-05-14 Ian Lance Taylor <ian@airs.com>
8732
8733 * Makefile.in (install-only): Use $(SHELL) when running
8734 mkinstalldirs.
8735
2fdbdd39
ILT
87362003-05-13 Ian Lance Taylor <ian@airs.com>
8737
a208d82c
ILT
8738 * MAINTAINERS (write after approval): Add myself.
8739
2fdbdd39
ILT
8740 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8741 second and third arguments.
8742 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8743 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8744
fbd9dcd3
AC
87452003-05-13 Andrew Cagney <cagney@redhat.com>
8746
8747 * defs.h (store_address): Delete declaration.
8748 findvar.c (store_address): Delete function.
8749 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8750 store_unsigned_integer.
8751 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8752 * v850-tdep.c (v850_push_arguments): Ditto.
8753 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8754 * sh-tdep.c (sh64_get_saved_register): Ditto.
8755 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8756 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8757 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8758 (mips_get_saved_register): Ditto.
8759 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8760 (find_func_descr, ia64_push_arguments): Ditto.
8761 * i386-tdep.c (i386_push_arguments): Ditto.
8762 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8763 * frv-tdep.c (frv_push_arguments): Ditto.
8764 * frame.c (legacy_saved_regs_prev_register): Ditto.
8765 (deprecated_generic_get_saved_register): Ditto.
8766 * findvar.c (unsigned_address_to_pointer): Ditto.
8767 * dwarf2read.c (dwarf2_const_value): Ditto.
8768 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8769 * alpha-tdep.c (alpha_push_arguments): Ditto.
8770
6760f9e6
JB
87712003-05-12 J. Brobecker <brobecker@gnat.com>
8772
8773 * NEWS: Mention that the hppa-hpux port has been partially
8774 multiarched (32bit ABIT only, so far).
8775
30e221b4
AC
87762003-05-11 Andrew Cagney <cagney@redhat.com>
8777
8778 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8779 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8780 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8781 sim/testsuite/sim/arm/misaligned2.ms, and
8782 sim/testsuite/sim/arm/misaligned3.ms.
8783 * disasm.h (struct ui_file): Add opaque struct declaration.
8784 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8785 * frame.h (struct ui_file): Ditto.
8786
dea7f9ba
MK
87872003-05-11 Mark Kettenis <kettenis@gnu.org>
8788
8789 * value.h: Pretty print.
8790
01986c48
MK
87912003-05-10 Mark Kettenis <kettenis@gnu.org>
8792
8793 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8794
123a958e
AC
87952003-05-08 Andrew Cagney <cagney@redhat.com>
8796
8797 * regcache.h (max_register_size): Delete declaration.
8798 * regcache.c (max_register_size): Delete function.
8799 (struct regcache_descr): Delete field "max_register_size".
8800 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8801 registers fit in MAX_REGISTER_SIZE.
8802 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8803 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8804 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8805 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8806 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8807 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8808 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8809 * dve3900-rom.c, hppa-tdep.c: Ditto.
8810
eb294659
DC
88112003-05-08 David Carlton <carlton@math.stanford.edu>
8812
8813 * valops.c (push_word): Fix typo.
8814
d9d9c31f
AC
88152003-05-08 Andrew Cagney <cagney@redhat.com>
8816
8817 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8818 * gdbarch.h: Re-generate.
8819 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8820 (legacy_max_register_raw_size): Delete declaration.
8821 * regcache.c (legacy_max_register_raw_size): Delete function.
8822 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8823 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8824 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8825 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8826 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8827 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8828 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8829 * findvar.c, dwarf2cfi.c: Ditto.
8830
22540ece
AC
88312003-05-08 Andrew Cagney <cagney@redhat.com>
8832
8833 * mips-tdep.c (read_signed_register): New function, moved to here
8834 from "regcache.c".
8835 (read_signed_register_pid): Ditto.
8836 * regcache.c (read_signed_register_pid): Delete function, moved to
8837 "mips-tdep.c".
8838 (read_signed_register): Ditto.
8839 * regcache.h (read_signed_register): Delete declaration.
8840 (read_signed_register_pid): Delete declaration.
8841
0c92afe8
AC
88422003-05-08 Andrew Cagney <cagney@redhat.com>
8843
8844 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8845 * gdbarch.h: Re-generate.
8846 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8847 (legacy_max_register_virtual_size): Delete declaration.
8848 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8849 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8850 * tracepoint.c (memrange_sortmerge): Ditto.
8851 * sparc-tdep.c (sparc_print_registers): Ditto.
8852 * regcache.c (legacy_max_register_virtual_size): Delete function.
8853
6037b830
JB
88542002-05-08 J. Brobecker <brobecker@gnat.com>
8855
8856 * fork-child.c (escape_bang_in_quoted_argument): New function.
8857 (fork_inferior): Escape '!' characters in quoted arguments
8858 only when needed.
8859
5d62c8b1
JB
88602003-05-08 J. Brobecker <brobecker@gnat.com>
8861
8862 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8863 the language of the CU is not currently supported by GDB.
8864
20a0e81d
JB
88652003-05-08 J. Brobecker <brobecker@gnat.com>
8866
8867 * defs.h (language): Add language_minimal enum value.
8868 * c-lang.c (minimal_language_defn): New language definition.
8869 (_initialize_c_language): Add the new minimal language to the list
8870 of languages known to GDB.
8871
710ee10a
KB
88722003-05-08 Kevin Buettner <kevinb@redhat.com>
8873
8874 * frame.c (get_frame_type): Don't attempt to lazily initialize
8875 frame's unwinder for legacy frames.
8876
1750fa04
AC
88772003-05-07 Andrew Cagney <cagney@redhat.com>
8878
8879 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8880 and "regcache" parameters.
8881 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8882
ddf9f258 88832003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8884
8885 * dwarf2read.c (dwarf_decode_lines): Only use output of
8886 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8887 the current address.
8888
87767c29
AC
88892003-05-07 Andrew Cagney <cagney@redhat.com>
8890
8891 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8892 code.
8893
5e7b2f39
JB
88942003-05-07 Jim Blandy <jimb@redhat.com>
8895
8896 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8897 'maint info symtabs' and 'maint info psymtabs'.
8898 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8899 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8900 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8901 Declarations updated.
8902 * maint.c (maintenance_list_command): Delete.
8903 (_initialize_maint_cmds): Update calls to add_cmd.
8904 * gdbcmd.h (maintenancelistlist): Delete declaration.
8905 * cli/cli-cmds.c (maintenancelistlist): Delete.
8906 (init_cmd_lists): Don't initialize it.
8907 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8908
f6684c31
AC
89092003-05-07 Andrew Cagney <cagney@redhat.com>
8910
8911 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8912 "regcache".
8913 (d10v_print_registers_info): Update.
8914 (d10v_dmap_register, d10v_imap_register): Delete functions.
8915 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8916 and "imap_register".
8917 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8918 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8919 * arch-utils.c (generic_remote_translate_xfer_address): Add
8920 "regcache" and "gdbarch" parameters.
8921 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8922 parameter. Change class to multi-arch.
8923 * gdbarch.h, gdbarch.c: Re-generate.
8924 * remote.c (remote_xfer_memory): Use
8925 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8926
e4846b08
JJ
89272003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8928
8929 * infrun.c (prev_pc): Move declaration ahead of proceed().
8930 (proceed): Refresh prev_pc value before resuming.
8931 (stop_stepping): Remove code to refresh prev_pc.
8932
6b71b8ac
KW
89332003-05-06 Kris Warkentin <kewarken@qnx.com>
8934
8935 * nto-tdep.c: Removed stray comment.
8936
47979a4b
KW
89372003-05-06 Kris Warkentin <kewarken@qnx.com>
8938
8939 * i386-nto-tdep.c: Fix old K&R function definitions.
8940 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8941 Also change add_show_from_set() call to add_setshow_cmd().
8942 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8943
00905d52
AC
89442003-05-05 Andrew Cagney <cagney@redhat.com>
8945
8946 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8947 (fprint_dummy_frames): New function.
8948 (maintenance_print_dummy_frames): New function.
8949 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8950 * frame.c (fprint_frame_id): Make global.
8951 * frame.h (fprint_frame_id): Declare.
8952 * Makefile.in (dummy-frame.o): Update dependencies.
8953
b1e29e33
AC
89542003-05-05 Andrew Cagney <cagney@redhat.com>
8955
8956 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8957 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8958 SIZEOF_CALL_DUMMY_WORDS.
8959 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8960 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8961 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8962 CALL_DUMMY_BREAKPOINT_OFFSET.
8963 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8964 CALL_DUMMY_START_OFFSET.
8965 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8966 * gdbarch.h, gdbarch.c: Re-generate.
8967 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8968 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8969 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8970 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8971 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8972 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8973 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8974 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8975 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8976 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8977 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8978 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8979 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8980 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8981 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8982
89832003-05-05 Kris Warkentin <kewarken@qnx.com>
8984
8985 * configure.tgt: Add i[3456]86-*-nto*.
8986 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8987 * nto-tdep.c: New file. Neutrino target support routines.
8988 * nto-tdep.h: New file. Neutrino target header.
8989 * config/tm-qnxnto.h: New file.
8990 * config/i386/i386nto.mt: New file.
8991 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8992
0ce3d317
AC
89932003-05-04 Andrew Cagney <cagney@redhat.com>
8994
8995 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8996 (load_infrun_state): Ditto.
8997 (struct thread_info): Drop "prev_func_name" field.
8998 * thread.c (load_infrun_state): Update.
8999 (save_infrun_state): Update.
9000 * infrun.c (prev_func_name): Delete variable.
9001 (init_wait_for_inferior): Do not clear prev_func_name.
9002 (stop_stepping, keep_going, context_switch): Do not swap
9003 prev_func_name.
9004 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9005 instead of PC_IN_SIGTRAMP.
9006
46654a5b
AC
90072003-05-04 Andrew Cagney <cagney@redhat.com>
9008
9009 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9010 REGISTER_BYTE with register_offset_hack.
9011 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9012 that REGISTER_BYTE is consistent with the regcache.
9013 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9014 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9015
14b08c1b
MK
90162003-05-04 Mark Kettenis <kettenis@gnu.org>
9017
04c8243f
MK
9018 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9019 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9020
14b08c1b
MK
9021 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9022
c7a11e01
JB
90232003-05-03 J. Brobecker <brobecker@gnat.com>
9024
9025 From Thierry Schneider <tpschneider1@yahoo.com>
9026 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9027 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9028 (mi-cmd-symbol.o): Add rule.
9029
7043d8dc
AC
90302003-05-03 Andrew Cagney <cagney@redhat.com>
9031
9032 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9033 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9034 * gdbarch.h, gdbarch.c: Re-generate.
9035 * d10v-tdep.c (d10v_push_dummy_code): New function.
9036 (d10v_gdbarch_init): Set push_dummy_code.
9037 * infcall.c (legacy_push_dummy_code): New function.
9038 (generic_push_dummy_code): New function.
9039 (push_dummy_code): New function.
9040 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9041 instead of dummy_addr, to push_dummy_call. Move call to
9042 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9043 switch.
9044 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9045
92bf2b80
AC
90462003-05-03 Andrew Cagney <cagney@redhat.com>
9047
9048 * disasm.h (print_insn): Declare.
9049 * disasm.c (init_gdb_disassemble_info): New function.
9050 (gdb_disassembly): Call init_gdb_disassemble_info.
9051 (gdb_print_insn): New function.
9052 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9053 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9054 * mcore-tdep.c: Include "disasm.h"
9055 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9056 * d10v-tdep.c: Include "disasm.h".
9057 (display_trace): Call gdb_print_insn, instead of print_insn.
9058 (print_insn): Delete function.
9059 * printcmd.c: Include "disasm.h".
9060 (print_insn): Delete function.
9061 (print_formatted): Call gdb_print_insn, instead of print_insn.
9062 * Makefile.in (printcmd.o): Update dependencies.
9063 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9064
27d94c49
AC
90652003-05-02 Andrew Cagney <cagney@redhat.com>
9066
82de1e5b
AC
9067 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9068 PC_REGNUM, re-indent.
9069 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9070 PC_REGNUM isn't set.
9071
27d94c49
AC
9072 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9073 * gdbarch.h, gdbarch.c: Re-generate.
9074 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9075 register_virtual_size, pc_regnum, or register_bytes.
9076 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9077 (d10v_register_type): Use D10V_PC_REGNUM.
9078 (d10v_print_registers_info, d10v_read_pc): Ditto.
9079 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9080 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9081
a9c0dc7f
DC
90822003-05-02 David Carlton <carlton@bactrian.org>
9083
9084 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9085 the name with mstrsave.
9086
e33d66ec
EZ
90872003-05-02 Elena Zannoni <ezannoni@redhat.com>
9088
9089 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9090 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9091 (host_charset_name, target_charset_name): New vars for use by
9092 set/show commands.
9093 (host_charset_enum, target_charset_enum): New enums for set/show
9094 commands.
9095 (set_charset_sfunc, set_host_charset_sfunc,
9096 set_target_charset_sfunc): New functions.
9097 (set_host_charset, set_target_charset): Make static.
9098 (list_charsets, set_host_charset_command,
9099 set_target_charset_command): Delete functions.
9100 (show_charset_command): Rewrite as....
9101 (show_charset): Hook this up with the set/show command mechanism.
9102 (_initialize_charset): Change names of charsets to match the
9103 set/show enums. Use host_charset_name and target_charset_name.
9104 Use set/show mechanism for charset, host-charset, target-charset
9105 commands. Do not make 'show host-charset' and 'show
9106 target-charset' be aliases of 'show charset'.
9107
9108 * charset.h (set_host_charset, set_target_charset): Don't export,
9109 they are not used outside the file.
9110
2b6fd0d8
AC
91112003-05-01 Andrew Cagney <cagney@redhat.com>
9112
9113 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9114 (gdb_disassembly): Make "di" non static, always initialize and
9115 cleanup. Always use dis_asm_read_memory.
9116 (gdb_dis_asm_read_memory): Delete function.
9117
6ae2f580
AC
91182003-05-01 Andrew Cagney <cagney@redhat.com>
9119
9120 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9121 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9122
810ecf9f
AC
91232003-04-30 Andrew Cagney <cagney@redhat.com>
9124
9125 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9126 "tm_print_insn_info".
9127 (TARGET_PRINT_INSN_INFO): Delete macro.
9128 (dis_asm_read_memory): Delete function declaration.
9129 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9130 (tm_print_insn_info): Delete variable definition.
9131 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9132 * gdbarch.h, gdbarch.c: Re-generate.
9133 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9134 "deprecated_tm_print_insn_info".
9135 * mcore-tdep.c (mcore_dump_insn): Ditto.
9136 * mips-tdep.c (mips_gdbarch_init): Ditto.
9137 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9138 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9139 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9140 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9141 instead of TARGET_PRINT_INSN_INFO, add comment.
9142 * s390-tdep.c (s390_get_frame_info): Instead of
9143 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9144 (s390_check_function_end, s390_is_sigreturn): Ditto.
9145 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9146 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9147 * disasm.c: Include "gdbcore.h".
9148 (_initialize_disasm): New function, initialize
9149 "deprecated_tm_print_insn_info".
9150 (deprecated_tm_print_insn_info): New variable.
9151 (dis_asm_read_memory): Moved from "corefile.c", made static.
9152 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9153 * Makefile.in (disasm.o): Update dependencies.
9154
07020390
AC
91552003-04-30 Andrew Cagney <cagney@redhat.com>
9156
9157 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9158
a9fa03de
AF
91592003-04-29 Adam Fedor <fedor@gnu.org>
9160
9161 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9162 * infcall.c (find_function_addr): Make non-static.
9163 * infcall.h (find_function_addr): Declare.
9164 * Makefile.in (eval.o): Update dependencies.
9165
1bae87b9
AF
91662003-04-28 Adam Fedor <fedor@gnu.org>
9167
9168 * symtab.c (symbol_find_demangled_name): Check for and demangle
9169 ObjC symbols.
9170 (symbol_init_demangled_name): Init for language_objc as well.
9171
0ba6dca9
AC
91722003-04-28 Andrew Cagney <cagney@redhat.com>
9173
9174 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9175 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9176 * gdbarch.h, gdbarch.c: Re-generate.
9177 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9178 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9179 * inferior.h (deprecated_read_fp): Rename read_fp.
9180 (generic_target_read_fp): Delete declaration.
9181 * regcache.c (generic_target_read_fp): Delete function.
9182 (deprecated_read_fp): Replace read_fp, use
9183 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9184 * d10v-tdep.c (d10v_read_fp): Delete function.
9185 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9186
9187 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9188 deprecated_target_read_fp to generic_target_read_fp.
9189 * sh-tdep.c (sh_gdbarch_init): Ditto.
9190 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9192 * frv-tdep.c (frv_gdbarch_init): Ditto.
9193
9194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9195 deprecated_fp_regnum.
9196 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9197 * vax-tdep.c (vax_gdbarch_init): Ditto.
9198 * v850-tdep.c (v850_gdbarch_init): Ditto.
9199 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9200 * sh-tdep.c (sh_gdbarch_init): Ditto.
9201 * s390-tdep.c (s390_gdbarch_init): Ditto.
9202 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9203 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9205 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9207 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9208 * i386-tdep.c (i386_gdbarch_init): Ditto.
9209 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9210 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9211 * frv-tdep.c (frv_gdbarch_init): Ditto.
9212 * cris-tdep.c (cris_gdbarch_init): Ditto.
9213 * avr-tdep.c (avr_gdbarch_init): Ditto.
9214 * arm-tdep.c (arm_gdbarch_init): Ditto.
9215 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9216
9217 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9218 * v850-tdep.c (v850_gdbarch_init): Ditto.
9219 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9220 * sh-tdep.c (sh_gdbarch_init): Ditto.
9221 * s390-tdep.c (s390_gdbarch_init): Ditto.
9222 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9223 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9224 * mips-tdep.c (mips_gdbarch_init): Ditto.
9225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9226 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9227 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9228 * frv-tdep.c (frv_gdbarch_init): Ditto.
9229 * avr-tdep.c (avr_gdbarch_init): Ditto.
9230 * arm-tdep.c (arm_gdbarch_init): Ditto.
9231
9232 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9233 DEPRECATED_FP_REGNUM.
9234 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9235 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9236 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9237 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9238 (sparc32_register_virtual_type): Ditto.
9239 * sh-tdep.c (sh64_frame_chain): Ditto.
9240 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9241 (sh_nofp_frame_init_saved_regs): Ditto.
9242 (sh64_nofp_frame_init_saved_regs): Ditto.
9243 (sh_fp_frame_init_saved_regs): Ditto.
9244 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9245 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9246 * procfs.c (procfs_fetch_registers): Ditto.
9247 (procfs_store_registers): Ditto.
9248 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9249 (store_inferior_registers, fetch_core_registers): Ditto.
9250 (fetch_kcore_registers, clear_regs): Ditto.
9251 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9252 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9253 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9254 * nlm/i386.c (do_status): Ditto.
9255 * mipsv4-nat.c (supply_gregset): Ditto.
9256 * mips-tdep.c: Ditto for comments.
9257 * mips-nat.c (fetch_inferior_registers): Ditto.
9258 (store_inferior_registers, fetch_core_registers): Ditto.
9259 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9260 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9261 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9262 (i386_do_pop_frame, i386_register_type): Ditto.
9263 * hppa-tdep.c (hppa_frame_chain): Ditto.
9264 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9265 (hppa_pop_frame, hppa_read_fp): Ditto.
9266 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9267 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9268 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9269 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9270 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9271 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9272 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9273 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9274 * blockframe.c: Ditto for comments.
9275 * arch-utils.h: Ditto for comments.
9276 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9277 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9278 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9279 * alpha-tdep.h: Ditto for comments.
9280 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9281 (alpha_cannot_store_register): Ditto.
9282 (alpha_push_dummy_frame): Ditto.
9283 * alpha-nat.c (supply_gregset): Ditto.
9284
9285 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9286 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9287 * config/sparc/tm-sparc.h: Update comment.
9288
9289 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9290 deprecated_read_fp instead of TARGET_READ_FP.
9291 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9292 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9293 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9294 deprecated_read_fp instead of read_fp.
9295 * s390-tdep.c (s390_push_arguments): Ditto.
9296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9297 * frame.h: Ditto in comments.
9298 * frame.c (legacy_get_prev_frame): Ditto.
9299 * dummy-frame.c (dummy_frame_this_id): Ditto.
9300 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9301
d7a27068
AC
93022003-04-28 Andrew Cagney <cagney@redhat.com>
9303
9304 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9305 * gdbarch.h, gdbarch.c: Re-generate.
9306 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9307 * vax-tdep.c (_initialize_vax_tdep): Update.
9308 * v850-tdep.c (_initialize_v850_tdep): Update.
9309 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9310 * s390-tdep.c (_initialize_s390_tdep): Update.
9311 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9312 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9313 * mips-tdep.c (_initialize_mips_tdep): Update.
9314 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9315 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9316 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9317 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9318 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9319 * frv-tdep.c (_initialize_frv_tdep): Update.
9320 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9321 (_initialize_cris_tdep): Update.
9322 * arch-utils.c (legacy_print_insn): Update.
9323 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9324
d2630e69
AF
93252003-04-26 Adam Fedor <fedor@gnu.org>
9326
9327 * linespec.c (decode_objc): New function to decode ObjC calls
9328 (decode_line_1): Check for ObjC calls (using decode_objc)
9329 * Makefile (linespec.o): Update dependencies.
9330
3086aeae
DJ
93312003-04-26 Daniel Jacobowitz <drow@mvista.com>
9332
9333 * breakpoint.h (struct breakpoint_ops): New.
9334 (struct breakpoint): Add ops member.
9335
9336 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9337 (mention): Use new breakpoint ops member.
9338 (set_raw_breakpoint): Initialize ops field to NULL.
9339 (print_exception_catchpoint, print_one_exception_catchpoint)
9340 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9341 (gnu_v3_exception_catchpoint_ops): New.
9342 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9343
1fbec6c3
AF
93442003-04-25 Adam Fedor <fedor@gnu.org>
9345
9346 * Makefile.in (COMMON_OBS): Add objc-lang.o
9347
0ef21242
AC
93482003-04-25 Andrew Cagney <cagney@redhat.com>
9349
9350 * d10v-tdep.c (print_insn): Delete function.
9351 (display_trace): Use TARGET_PRINT_INSN.
9352 (_initialize_d10v_tdep): Do not set tm_print_insn.
9353 (d10v_gdbarch_init): Set print_insn.
9354
f75493ed
AC
93552003-04-25 Andrew Cagney <cagney@redhat.com>
9356
9357 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9358 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9359 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9360 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9361 (nr_dmap_regs, a0_regnum): ... new functions.
9362 (d10v_print_registers_info): Use a0_regnum, use register_size.
9363 (d10v_register_byte): Delete function.
9364 (d10v_register_raw_size): Delete function.
9365 (d10v_register_type): Use a0_regnum.
9366 (d10v_print_registers_info): Use a0_regnum.
9367 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9368 (d10v_gdbarch_init): Do not set register_byte or
9369 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9370 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9371 extract_address.
9372 (trace_command): Use XCALLOC.
9373 (print_insn): Delete reference to tm_print_insn.
9374 (saved_regs_unwinder): Use store_unsigned_integer instead of
9375 store_address.
9376 * frame.h (FRAME_OBSTACK_CALLOC): Define
9377
2202b100
DC
93782003-04-25 David Carlton <carlton@bactrian.org>
9379
9380 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9381
4e45ca2e
AF
93822003-04-24 Adam Fedor <fedor@gnu.org>
9383
9384 * objc-lang.c: Include "valprint.h"
9385 * Makefile.in (objc-lang.o): Update dependencies.
9386
93de3e7f
AF
93872003-04-24 Adam Fedor <fedor@gnu.org>
9388
8ffd9b1b 9389 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9390 architecture dependant compilation and mark as unimplemented
9391 (until they get put in the gdbarch vector).
9392
0f20eeea
DC
93932003-04-23 David Carlton <carlton@bactrian.org>
9394
9395 * cp-support.c (cp_find_first_component): Accept 'operator' in
9396 more locations.
9397
74cfe982
AC
93982003-04-23 Andrew Cagney <cagney@redhat.com>
9399
9400 * infcall.c (call_function_by_hand): Eliminate redundant
9401 indentation. Move "saved_async" and "old_cleanups" to where they
9402 are needed.
8ffd9b1b 9403
52557533
AC
94042003-04-23 Andrew Cagney <cagney@redhat.com>
9405
9406 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9407 and "buffer". Move the "name" code to where it is needed.
9408
158775de
AC
94092003-04-23 Andrew Cagney <cagney@redhat.com>
9410
9411 * infcall.c (call_function_by_hand): Move variables "start_sp",
9412 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9413 code to ON_STACK switch branch.
8ffd9b1b 9414
ebc7896c
AC
94152003-04-23 Andrew Cagney <cagney@redhat.com>
9416
9417 * infcall.c (call_function_by_hand): Make declaration of "i",
9418 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9419 lint.
9420
d727590f
AC
94212003-04-23 Andrew Cagney <cagney@redhat.com>
9422
9423 * infcall.c (call_function_by_hand): Delete variable
9424 "n_method_args". Localize "param_type"'s declaration to the loop
9425 that it is used. Reinstate code assigning to said variable -
9426 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9427 Rationalize code using "param_type".
9428
d585e13a
AC
94292003-04-22 Andrew Cagney <cagney@redhat.com>
9430
9431 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9432 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9433 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9434 to DEPRECATED_PUSH_RETURN_ADDRESS.
9435
051caad9
KB
94362003-04-22 Kevin Buettner <kevinb@redhat.com>
9437
9438 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9439 on the DWARF2 register number prior to fetching a register.
9440
77296879
JB
94412003-04-22 J. Brobecker <brobecker@gnat.com>
9442
9443 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9444 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9445 this macro was always set to 0.
77296879
JB
9446 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9447 considering the fact that this macro was always set to 0.
9448 * hppa-tdep.h (hppa_store_return_value): Likewise.
9449 (hppa_extract_return_value): Likewise.
9450
4252f1df
JB
94512003-04-22 J. Brobecker <brobecker@gnat.com>
9452
9453 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9454 the hppa-pro target only.
9455
14604c6b
JB
94562003-04-21 J. Brobecker <brobecker@gnat.com>
9457
9458 Ongoing multi-arch conversion effort for HP/UX:
9459 * config/pa/tm-hppa.h: Move all macro that are no longer
9460 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9461 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9462
77eb01d1
JB
94632003-04-21 J. Brobecker <brobecker@gnat.com>
9464
9465 * config/pa/tm-hppa.h: Obsolete a section that was only used
9466 for hppa-pro.
9467
61995b3b
JB
94682003-04-21 J. Brobecker <brobecker@gnat.com>
9469
9470 Ongoing multi-arch conversion for HP/UX.
9471 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9472 if already defined (allows hppa64 to stay non-multiarched for now).
9473 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9474
4aa79dcc
AC
94752003-04-21 Andrew Cagney <cagney@redhat.com>
9476
9477 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9478
0f751ff2
AC
94792003-04-21 Andrew Cagney <cagney@redhat.com>
9480
9481 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9482 "i386_num_mmx_regs".
9483
04714b91
AC
94842003-04-21 Andrew Cagney <cagney@redhat.com>
9485
9486 * infcall.c: New file.
9487 * infcall.h: New file.
9488 * valarith.c: Include "infcall.h".
9489 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9490 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9491 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9492 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9493 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9494 (SFILES): Add "infcall.c"
9495 (COMMON_OBS): Add "infcall.o".
9496 (infcall.o): Specify dependencies.
9497 * value.h (call_function_by_hand): Delete declaration.
9498 * inferior.h (run_stack_dummy): Delete declaration.
9499 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9500 (run_stack_dummy): Move to "infcall.c", merged into
9501 call_function_by_hand.
9502 * valops.c (call_function_by_hand): Moved to "infcall.c".
9503 (find_function_addr, value_arg_coerce): Ditto.
9504 (unwindonsignal_p, coerce_float_to_double): Ditto.
9505 (_initialize_valops): Move "set/show coerce-float-to-double", and
9506 "set/show unwindonsignal" commands to "infcall.c".
9507 * v850-tdep.c, target.h: Update comments.
9508 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9509 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9510 (sh64_init_extra_frame_info): Update comments.
9511 * mn10300-tdep.c: Update comments.
9512 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9513 * config/sparc/tm-sparc.h: Update comments.
9514 * breakpoint.h: Update comments.
9515 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9516 * arm-tdep.c: Update comment.
9517
f9d3c2a8
MK
95182003-04-19 Mark Kettenis <kettenis@gnu.org>
9519
c40e1eab
MK
9520 * i386-tdep.c (i386_num_register_names): New variable.
9521 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9522 (MM0_REGNUM): Remove redundant parentheses in define.
9523 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9524 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9525 i386_mxcsr_regnum_p): Remove redundant parentheses.
9526 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9527
94ea66b3
MK
9528 * i386-tdep.c (i386_extract_return_value,
9529 i386_store_return_value): Correct check for availability of
9530 floating-point registers.
9531
54299a1d
MK
9532 * i386-tdep.c (i386_frame_num_args): Remove function.
9533 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9534
c86c27af
MK
9535 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9536 mmx_regnum_to_fp_regnum. Adjust all callers.
9537
f9d3c2a8
MK
9538 * i386-tdep.c (i386_get_longjmp_target): Use
9539 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9540 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9541 extract_address.
9542
94ba74a9
MK
95432003-04-19 Mark Kettenis <kettenis@gnu.org>
9544
9545 * core-regset.c: Update comments to reflect reality. Re-order
9546 includes.
9547 (fetch_core_registers): Use switch instead of if. Remove
9548 redundant prototype.
9549
4074e13c
JB
95502003-04-18 Jim Blandy <jimb@redhat.com>
9551
9552 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9553 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9554
e3ab4aba
RH
95552003-04-17 Richard Henderson <rth@redhat.com>
9556
9557 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9558
627bf7c1
EZ
95592003-04-17 Michael Snyder <msnyder@redhat.com>
9560 Karen Bennet <bennet@redhat.com>
9561
9562 Committed by Elena Zannoni <ezannoni@redhat.com>
9563 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9564
514621a9
EZ
95652003-04-17 Elena Zannoni <ezannoni@redhat.com>
9566
9567 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9568 value if the return type is void.
514621a9 9569
b4acd559
JJ
95702003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9571
9572 * thread-db.c: Reindented.
8ffd9b1b 9573
530b167e 95742003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9575
9576 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9577 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9578 as types.
9579
0a48e7e8
MS
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
8ffd9b1b 9603
ab9fe00e
KB
96042003-04-16 Kevin Buettner <kevinb@redhat.com>
9605
610a3745 9606 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9607 the size of ``long double'' to 16, instead of 8.
9608
e64a344c
MK
96092003-04-16 Mark Kettenis <kettenis@gnu.org>
9610
9611 * i386-linux-nat.c: Add some whitespace to make things more
9612 readable.
9613 (fetch_register, store_register, fetch_inferior_registers,
9614 store_inferior_registers): Get rid of assignment in if-statement.
9615 (store_register): Fix typo in error message.
9616
25d41031
AC
96172003-04-16 Andrew Cagney <cagney@redhat.com>
9618
9619 * utils.c (xmmalloc): Always allocate something, matches
9620 libiberty/xmalloc's semantics.
9621 (xmrealloc, xmcalloc): Ditto.
9622
c50901fd
AC
96232003-04-16 Andrew Cagney <cagney@redhat.com>
9624
9625 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9626 update comments.
9627 (get_frame_type): Initialize unwind and type when needed.
9628 (get_frame_id, frame_register_unwind): Ditto.
9629
f81824a9
AC
96302003-04-16 Andrew Cagney <cagney@redhat.com>
9631
9632 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9633 obsolete.
9634 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9635 * sparcl-stub.c: Obsolete file.
9636 * config/sparc/tm-sparclet.h: Obsolete file.
9637 * sparclet-stub.c: Obsolete file.
9638 * sparclet-rom.c: Obsolete file.
9639 * sparcl-tdep.c: Obsolete file.
9640 * config/sparc/tm-sparclite.h: Obsolete file.
9641 * config/sparc/sparclite.mt: Obsolete file.
9642 * config/sparc/sparclet.mt: Obsolete file.
9643 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9644 sparc86x-*-* obsolete.
9645
9219021c
DC
96462003-04-15 David Carlton <carlton@math.stanford.edu>
9647
9648 * Makefile.in (SFILES): Add cp-namespace.c.
9649 (COMMON_OBS): Add cp-namespace.o.
9650 (block.o): Depend on gdb_obstack_h and cp_support_h.
9651 (buildsym.o): Depend on cp_support_h.
9652 (cp-namespace.o): New.
9653 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9654 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9655 (dwarf2read.o): Depend on cp_support_h.
9656 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9657 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9658 processing_current_namespace.
9659 (read_namespace): Update processing_current_namespace; check for
9660 anonymous namespaces.
9661 (dwarf2_name): New function.
9662 (dwarf2_extension): Ditto.
9663 * cp-support.h: Update copyright, contributors.
9664 Add inclusion guards.
9665 Add opaque declaration for structs obstack, block, symbol.
9666 (struct using_direct): New struct.
9667 Add declarations for cp_find_first_component,
9668 cp_entire_prefix_len, processing_has_namespace_info,
9669 processing_current_namespace, cp_is_anonymous,
9670 cp_add_using_directive, cp_initialize_namespace,
9671 cp_finalize_namespace, cp_set_block_scope,
9672 cp_scan_for_anonymous_namespaces.
9673 * cp-namespace.c: New file.
9674 * cp-support.c: Update copyright.
9675 Include ctype.h, gdb_assert.h, gdbcmd.h.
9676 New variable maint_cplus_cmd_list.
9677 (cp_find_first_component): New function.
9678 (cp_entire_prefix_len, maint_cplus_command)
9679 (first_component_command, _initialize_cp_support): Ditto.
9680 * buildsym.c: Include cp-support.h.
9681 New variable using_list.
9682 (add_symbol_to_list): Check for anonymous namespaces.
9683 (finish_block): Set block's scope.
9684 (start_symtab): Initialize C++ namespace support.
9685 (end_symtab): Finalize C++ namespace support.
9686 * block.h: Add opaque declarations for structs
9687 block_namespace_info, using_direct, and obstack.
9688 Add declarations for block_set_scope and block_set_using.
9689 (struct block): Add 'language_specific' member.
9690 (BLOCK_NAMESPACE): New macro.
9691 * block.c: Include gdb_obstack.h and cp-support.h.
9692 (struct block_namespace_info): New struct.
9693 (block_set_scope): New function.
9694 (block_set_using, block_initialize_namespace): Ditto.
9695
d5a921c9
KB
96962003-04-14 Kevin Buettner <kevinb@redhat.com>
9697
9698 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9699 (locate_base): Return early if there aren't any link map offsets.
9700 (svr4_solib_create_inferior_hook): Warn if shared library support
9701 is unavailable.
9702
d2a52b27
DC
97032003-04-14 David Carlton <carlton@math.stanford.edu>
9704
9705 * symtab.c (symbol_set_names): Add prefix when storing Java names
9706 in hash table. Fix for PR java/1039.
9707
980cae7a
DC
97082003-04-14 David Carlton <carlton@math.stanford.edu>
9709
9710 * symtab.c (symbol_set_names): Rename 'name' arg to
9711 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9712 * symtab.h: Change 'name' argument in declaration of
9713 symbol_set_names to 'linkage_name'.
9714 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9715
e227b13c
AC
97162003-04-14 Andrew Cagney <cagney@redhat.com>
9717
9718 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9719 return the fully sign-extended register value.
9720 (get_frame_pointer): Ditto.
9721 (mips_pop_frame): Initialize "proc_desc" after checking for a
9722 dummy frame.
9723
36712a20
AC
97242003-04-14 Andrew Cagney <cagney@redhat.com>
9725
9726 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9727 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9728 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9729 (mips_push_register): Delete function.
9730 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9731 PUSH_FP_REGNUM.
9732
44ea7b70
JB
97332003-04-14 Jim Blandy <jimb@redhat.com>
9734
9735 * symmisc.c: #include "gdb_regex.h".
9736 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9737 functions.
9738 * maint.c (maintenance_list_command): New function.
9739 (_initialize_maint_cmds): Register the above as commands.
9740 * symtab.h (maintenance_list_symtabs,
9741 maintenance_list_psymtabs): New declarations.
9742 * cli/cli-cmds.c (maintenancelistlist): New variable.
9743 (init_cmd_lists): Initialize it.
9744 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9745 * gdbcmd.h (maintenancelistlist): New declaration.
9746 * Makefile.in (symmisc.o): Update dependencies.
9747
2d0c7962
EZ
97482003-04-14 Elena Zannoni <ezannoni@redhat.com>
9749
9750 * s390-nat.c: Include asm/types.h for addr_t.
9751
1947a811
CV
97522003-04-14 Corinna Vinschen <vinschen@redhat.com>
9753
9754 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9755 actually incoming type.
9756
adb616d7
AC
97572003-04-13 Andrew Cagney <cagney@redhat.com>
9758
9759 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9760 get_next_frame and get_frame_saved_regs.
9761
9b5e151c
AC
97622003-04-13 Andrew Cagney <cagney@redhat.com>
9763
9764 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9765 of gdbarch_num_regs.
9766
ef6e7e13
AC
97672003-04-13 Andrew Cagney <cagney@redhat.com>
9768
9769 * frame.h: Mention what replaced what in "struct frame_info".
9770 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9771 deprecated_update_frame_base_hack and
9772 deprecated_update_frame_pc_hack.
9773 * hppa-tdep.c: Ditto.
9774
61fbb938
DJ
97752003-04-13 Daniel Jacobowitz <drow@mvista.com>
9776
9777 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9778 to read_reg and update its comment. Remove regnum member.
9779 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9780 Don't call read_reg when setting in_reg. Call read_reg to get
9781 the frame base if it's in a register. Return the register number
9782 on the stack instead of in the context. Remove extra arguments
9783 to read_reg.
9784 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9785 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9786 the register number on the expression stack.
9787 (needs_frame_read_reg): Remove extra arguments.
9788
0d53c4c4
DJ
97892003-04-13 Daniel Jacobowitz <drow@mvista.com>
9790
9791 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9792 made non-static.
9793 (execute_stack_op): All callers updated.
9794 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9795 * dwarf2loc.c (find_location_expression): New function.
9796 (dwarf_expr_frame_base): Call it.
9797 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9798 (dwarf2_tracepoint_var_ref): New function, broken out from
9799 locexpr_tracepoint_var_ref.
9800 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9801 Make static.
9802 (loclist_read_variable, loclist_read_needs_frame): New functions.
9803 (loclist_describe_location, loclist_tracepoint_var_ref): New
9804 functions.
9805 (dwarf2_loclist_funcs): New struct location_funcs.
9806 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9807 (struct dwarf2_locexpr_baton): Add comments.
9808 (dwarf2_loclist_funcs): New extern.
9809 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9810 base_address and base_known.
9811 (dwarf_loc_buffer): New variable.
9812 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9813 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9814 (dwarf2_has_info): Initialize dwarf_loc_offset.
9815 (dwarf2_build_psymtabs): Read in .debug_loc.
9816 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9817 DWARF_LOC_SIZE.
9818 (psymtab_to_symtab_1): Likewise. Move base address calculation
9819 here, from...
9820 (dwarf2_get_pc_bounds): ... here. Use the base address from
9821 cu_header.
9822 (dwarf2_symbol_mark_computed): Handle location lists.
9823
6aca59a3
DJ
98242003-04-13 Daniel Jacobowitz <drow@mvista.com>
9825
9826 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9827 if the linkage name demangled successfully.
9828
aca1fcd0
MK
98292003-04-13 Mark Kettenis <kettenis@gnu.org>
9830
97095916
MK
9831 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9832 disassmbly_flavour): Removed.
9833
aca1fcd0
MK
9834 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9835
562a961f
MK
98362003-04-13 Mark Kettenis <kettenis@gnu.org>
9837
9838 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9839
bd013d54
AC
98402003-04-12 Andrew Cagney <cagney@redhat.com>
9841
9842 * frame.h (struct frame_info): Move definition from here ...
9843 * frame.c (struct frame_info): ... to here.
9844
167ef8b1
AC
98452003-04-12 Andrew Cagney <cagney@redhat.com>
9846
9847 * gdbthread.h (save_infrun_state): Delete parameter
9848 "prev_func_start".
9849 (struct thread_info): Delete field "prev_func_start".
9850 (load_infrun_state): Ditto.
9851 * thread.c (load_infrun_state, save_infrun_state): Update.
9852 * infrun.c (prev_func_start): Delete variable.
9853 (context_switch, init_wait_for_inferior): Update.
9854 (stop_stepping, keep_going): Update.
9855
da3331ec
AC
98562003-04-12 Andrew Cagney <cagney@redhat.com>
9857
9858 * gdbarch.sh: Add missing opaque declarations.
9859 * gdbarch.h: Regnerate.
9860 * symtab.h: Add missing opaque declarations.
9861 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9862 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9863 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9864 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9865 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9866 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9867 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9868 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9869 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9870 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9871 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9872 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9873 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9874
18adea3f
AC
98752003-04-11 Andrew Cagney <cagney@redhat.com>
9876
9877 * frame.c (get_frame_id): Return this frame's "id".
9878 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9879 function start.
9880 (legacy_saved_regs_this_id): Replace function body with
9881 internal-error.
9882 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9883 FRAME_OBSTACK_ZALLOC.
9884 (create_new_frame): Mark the frame ID as valid.
9885
2252e863
AO
98862003-04-11 Alexandre Oliva <aoliva@redhat.com>
9887
9888 * Makefile.in (libbfd_h): Added missing setting.
9889 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9890 according to the selected ABI.
9891
a8245ab8
JJ
98922003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9893
9894 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9895
6913c89a
AC
98962003-04-11 Andrew Cagney <cagney@redhat.com>
9897
9898 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9899 SAVED_PC_AFTER_CALL.
9900 * gdbarch.h, gdbarch.c: Regenerate.
9901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9902 * x86-64-tdep.c (x86_64_init_abi): Update.
9903 * vax-tdep.c (vax_gdbarch_init): Update.
9904 * v850-tdep.c (v850_gdbarch_init): Update.
9905 * sparc-tdep.c (sparc_gdbarch_init): Update.
9906 * sh-tdep.c (sh_gdbarch_init): Update.
9907 * s390-tdep.c (s390_gdbarch_init): Update.
9908 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9909 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9910 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9911 * mips-tdep.c (mips_gdbarch_init): Update.
9912 * mcore-tdep.c (mcore_gdbarch_init): Update.
9913 * m68k-tdep.c (m68k_gdbarch_init): Update.
9914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9915 * ia64-tdep.c (ia64_gdbarch_init): Update.
9916 (ia64_saved_pc_after_call): Update declaration.
9917 * i386ly-tdep.c (i386lynx_init_abi): Update.
9918 * i386-tdep.c (i386_gdbarch_init): Update.
9919 * hppa-tdep.c (hppa_gdbarch_init): Update.
9920 * h8300-tdep.c (h8300_gdbarch_init): Update.
9921 * frv-tdep.c (frv_gdbarch_init): Update.
9922 * cris-tdep.c (cris_gdbarch_init): Update.
9923 * avr-tdep.c (avr_gdbarch_init): Update.
9924 * arm-tdep.c (arm_gdbarch_init): Update.
9925 * alpha-tdep.c (alpha_gdbarch_init): Update.
9926 * ns32knbsd-nat.c (frame_num_args): Update.
9927 * ns32k-tdep.c (umax_frame_num_args): Update.
9928 * mips-tdep.c (mips_init_frame_pc_first): Update.
9929 * infrun.c (step_over_function): Update.
9930 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9931 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9932 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9933 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9934 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9935 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9936 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9937 * arch-utils.c (init_frame_pc_default): Update.
9938 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9939 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9940 declaration.
8ffd9b1b 9941
38edeab8
AC
99422003-04-11 Andrew Cagney <cagney@redhat.com>
9943
9944 * i387-tdep.c: Update copyright.
9945 (i387_to_double): Delete function.
9946 (double_to_i387): Delete function.
9947
81f8a206
AC
99482003-04-10 Andrew Cagney <cagney@redhat.com>
9949
9950 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9951 frame's function's address. Simplify.
9952 (d10v_frame_unwind_cache): Check that the frame's function is
9953 non-zero.
9954
6e691f7a
JB
99552003-04-10 Jim Blandy <jimb@redhat.com>
9956
9957 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9958 call to set_gdbarch_deprecated_push_arguments.
9959
7f78e237
AC
99602003-04-10 Andrew Cagney <cagney@redhat.com>
9961
9962 * frame.c (fprint_frame_id): New function.
9963 (fprint_frame_type, fprint_frame): New function.
9964 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9965 (create_sentinel_frame, get_frame_id): Ditto.
9966 (frame_id_p, frame_id_eq): Ditto.
9967 (frame_id_inner, create_new_frame): Ditto.
9968 (legacy_get_prev_frame, get_prev_frame): Ditto.
9969 (deprecated_update_frame_pc_hack): Ditto.
9970 (frame_register_unwind): Ditto.
9971 (deprecated_update_frame_base_hack): Ditto.
9972
f870b49b
CV
99732003-04-10 Corinna Vinschen <vinschen@redhat.com>
9974
9975 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9976 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9977 frame_chain function.
9978 * Makefile.in: Add dependencies due to above change.
9979
7c86889b
CV
99802003-04-10 Corinna Vinschen <vinschen@redhat.com>
9981
9982 * blockframe.c (legacy_frame_chain_valid): Move call to
9983 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9984 inside_entry_file.
9985
d0a55772
AC
99862003-04-09 Andrew Cagney <cagney@redhat.com>
9987
9988 * frame.h (struct frame_id): Replace "pc" and "base" with
9989 "stack_addr" and "code_addr". Update comments.
9990 (frame_id_build): Update parameter names and comment.
9991 (struct frame_info): Replace "id_p" and "id" with "this_id".
9992 * dummy-frame.c (dummy_frame_this_id): Update.
9993 * breakpoint.c (print_one_breakpoint): Update.
9994 * frame.c (get_frame_id): Update.
9995 (get_frame_base, frame_id_build): Update.
9996 (create_sentinel_frame, legacy_get_prev_frame): Update.
9997 (deprecated_update_frame_base_hack): Update.
9998 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9999 (frame_id_inner): Ditto.
10000
ac16bf07
AC
100012003-04-09 Andrew Cagney <cagney@redhat.com>
10002
10003 * defs.h (gdb_print_host_address): Make "addr" parameter a
10004 pointer constant.
10005 * utils.c (gdb_print_host_address): Update.
10006
366cfc9e
KB
100072003-04-09 Kevin Buettner <kevinb@redhat.com>
10008
10009 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10010 register number for R0 is 0.
10011
cd983b5c
JB
100122003-04-09 J. Brobecker <brobecker@gnat.com>
10013
10014 * frame.h (struct gdbarch): Add opaque structure definition
10015 to avoid a compilation warning on LynxOS 4.0.
10016
d1340264
AC
100172003-04-09 Andrew Cagney <cagney@redhat.com>
10018
10019 * frame.h (struct frame_info): Delete field "pc". Replace
10020 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10021 structure.
10022 * frame.c (frame_pc_unwind): Update.
10023 (create_sentinel_frame): Do not set "pc".
10024 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10025 (get_frame_pc): Call frame_pc_unwind.
10026 (deprecated_update_frame_pc_hack): Update.
10027 (create_new_frame): Use "pc" not "->pc".
10028
90a6fffb
AC
100292003-04-09 Andrew Cagney <cagney@redhat.com>
10030
10031 * frame.c (get_frame_id): Eliminate code updating "frame".
10032 (legacy_get_prev_frame): Ditto.
10033 (get_frame_base): Return id.base directly.
10034 (deprecated_update_frame_base_hack): Update "id.base".
10035 * frame.h (struct frame_info): Delete field "frame".
10036
2fbce691
AC
100372003-04-09 Andrew Cagney <cagney@redhat.com>
10038
10039 * NEWS: Mention that the "Sequent family" is obsolete.
10040 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10041 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10042 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10043 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10044 * config/i386/tm-ptx4.h: Obsolete file.
10045 * config/i386/tm-ptx.h: Obsolete file.
10046 * symm-tdep.c: Obsolete file.
10047 * config/i386/symmetry.mt: Obsolete file.
10048 * config/i386/tm-symmetry.h: Obsolete file.
10049 * symm-nat.c: Obsolete file.
10050 * config/i386/nm-symmetry.h: Obsolete file.
10051 * config/i386/xm-symmetry.h: Obsolete file.
10052 * config/i386/symmetry.mh: Obsolete file.
10053 * config/i386/nm-ptx4.h: Obsolete file.
10054 * config/i386/ptx4.mh: Obsolete file.
10055 * config/i386/ptx.mt: Obsolete file.
10056 * config/i386/ptx.mh: Obsolete file.
10057 * config/i386/xm-ptx4.h: Obsolete file.
10058 * config/i386/xm-ptx.h: Obsolete file.
10059
78c43945
AC
100602003-04-09 Andrew Cagney <cagney@redhat.com>
10061
10062 Obsolete mips*-*-mach3*.
10063 * NEWS: Mention that mips*-*-mach3* is obsolete.
10064 * m3-nat.c: Obsolete file.
10065 * config/nm-m3.h: Obsolete file.
10066 * config/mips/tm-mipsm3.h: Obsolete file.
10067 * config/mips/mipsm3.mt: Obsolete file.
10068 * config/mips/mipsm3.mh: Obsolete file.
10069 * config/mips/xm-mipsm3.h: Obsolete file.
10070 * mipsm3-nat.c: Obsolete file.
10071 * configure.host: Obsolete mips-dec-mach3*.
10072 * configure.tgt: Obsolete mips*-*-mach3*.
10073
f1908289
AC
100742003-04-09 Andrew Cagney <cagney@redhat.com>
10075
10076 * doublest.h: Update copyright.
10077 (deprecated_store_floating, deprecated_extract_floating): Rename
10078 store_floating and extract_floating. Update comments.
10079 * doublest.c: Update copyright.
10080 (extract_floating_by_length): Replace extract_floating.
10081 (store_floating_by_length): Replace store_floating.
10082 (deprecated_extract_floating): New function.
10083 (deprecated_store_floating): New function.
10084 (extract_typed_floating): Call extract_floating_by_length.
10085 (store_typed_floating): Call store_floating_by_length.
10086 * x86-64-tdep.c (x86_64_store_return_value): Update.
10087 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10088 (sh64_extract_return_value): Update.
10089 (sh_sh4_register_convert_to_virtual): Update.
10090 (sh_sh64_register_convert_to_virtual): Update.
10091 (sh_sh4_register_convert_to_raw): Update.
10092 (sh_sh64_register_convert_to_raw): Update.
10093 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10094 (rs6000_register_convert_to_raw): Update.
10095 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10096 (ia64_register_convert_to_raw): Update.
10097 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10098 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10099 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10100 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10101 (alpha_register_convert_to_raw): Update.
10102
4443bd83
AC
101032003-04-08 Andrew Cagney <cagney@redhat.com>
10104
10105 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10106 * gdbarch.h, gdbarch.c: Re-generate.
10107 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10108 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10109 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10110 conditionally, use frame_pc_unwind as an alternative. Add
10111 comments.
10112 * arch-utils.c (init_frame_pc_default): Only call
10113 SAVED_PC_AFTER_CALL when available.
10114
c0236d92
EZ
101152003-04-08 Elena Zannoni <ezannoni@redhat.com>
10116
fbe586ae 10117 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10118 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10119 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10120 (start_remote): Ditto.
10121 (handle_inferior_event): Ditto.
10122 (save_inferior_status): Ditto.
10123 (restore_inferior_status): Ditto.
10124 * infcmd.c (attach_command): Ditto.
10125 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10126 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10127 * alpha-tdep.c (heuristic_proc_start): Ditto.
10128 * mips-tdep.c (heuristic_proc_start): Ditto.
10129 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10130 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10131 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10132 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10133 * remote-vx.c (vx_create_inferior): Ditto.
10134
101352003-04-08 Elena Zannoni <ezannoni@redhat.com>
10136
10137 * infrun.c (stop_soon_quietly): Make it an enum, to better
10138 override the default behavior of handle_inferior_event.
10139 (clear_proceed_status): Update uses of stop_soon_quietly to
10140 reflect that it is now an enum.
10141 (start_remote): Ditto.
10142 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10143 is set to handle the new GNU/Linux kernel behavior for
10144 attach/sigstop. Update uses of stop_soon_quietly.
10145 * inferior.h (enum stop_kind): New enum.
10146 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10147 Reset normal handle_inferior_event behavior, afterwards.
10148 * fork-child.c (startup_inferior): Update.
10149 * alpha-tdep.c (heuristic_proc_start): Update.
10150 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10151 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10152 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10153 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10154 * remote-vx.c (vx_create_inferior): Update.
10155 * mips-tdep.c (heuristic_proc_start): Update.
10156
1211bce3
EZ
101572003-04-07 Elena Zannoni <ezannoni@redhat.com>
10158
10159 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10160 be freed more than once, causing wild memory corruptions.
1211bce3 10161 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10162 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10163 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10164 with the "core" target.
1211bce3 10165
f0ef6b29
KB
101662003-04-07 Kevin Buettner <kevinb@redhat.com>
10167
10168 * mips-tdep.c (mips_print_fp_register): New function, created from
10169 do_fp_register_row(). Registers are now (also) printed as hex.
10170 Only one register is printed per row.
10171 (mips_print_register, do_fp_register_row): Print floating point
10172 registers with mips_print_fp_register().
10173
8cf71652
AC
101742003-04-06 Andrew Cagney <cagney@redhat.com>
10175
5e488a7b
AC
10176 * valprint.h (inspect_it): Add extern declaration.
10177 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10178 (selectors_info, classes_info): Ditto.
10179 (find_objc_msgcall): Fix indentation.
10180 (objc_printstr): Delete extern declarations.
10181
8cf71652
AC
10182 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10183
e6ba3bc9
AC
101842003-04-06 Andrew Cagney <cagney@redhat.com>
10185
10186 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10187 Update comment.
10188 * frame.c (legacy_saved_regs_this_id): Update.
10189 (legacy_get_prev_frame): Update.
10190 * xstormy16-tdep.c: Update comment.
10191 * sparc-tdep.c (sparc_frame_chain): Update comment.
10192 * blockframe.c (legacy_frame_chain_valid): Update.
10193
55e1d7e7
AC
101942003-04-06 Andrew Cagney <cagney@redhat.com>
10195
996179ee
AC
10196 * valprint.c (val_print_type_code_int): Delete #ifdef
10197 PRINT_TYPELESS_INTEGER code.
10198
55e1d7e7
AC
10199 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10200 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10201 multi-arch definition.
10202 * gdbarch.h: Re-generate.
10203
43bd9a9e
AC
102042003-04-05 Andrew Cagney <cagney@redhat.com>
10205
10206 Eliminate FRAME_FIND_SAVED_REGS.
10207 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10208 Change FSR parameter to a pointer.
10209 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10210 Assume FSR parameter is a pointer.
10211 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10212 Make fsr a pointer.
10213 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10214 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10215 saved_regs a pointer.
10216 (hppa_frame_saved_pc): Ditto.
10217 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10218 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10219 pointer.
10220 (restore_pc_queue): Make fsr a pointer.
10221 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10222 (hppa_frame_chain): Make saved_regs a pointer, call
10223 hppa_frame_init_saved_regs.
10224 * sparc-tdep.c: Include "gdb_assert.h".
10225 (sparc_frame_find_saved_regs): Replace internal_error with
10226 gdb_assert.
10227 * remote-vxsparc.c (vx_read_register): Delete reference to
10228 FRAME_FIND_SAVED_REGS.
10229 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10230 * gdbarch.h: Regenerate.
10231 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10232 (deprecated_get_frame_saved_regs): Delete declaration.
10233 (struct frame_saved_regs): Delete definition.
10234 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10235 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10236 (hppa_frame_find_saved_regs): Delete declaration.
10237 (FRAME_FIND_SAVED_REGS): Delete macro.
10238 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10239 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10240 FRAME_FIND_SAVED_REGS in comment.
10241
be41e9f4
AC
102422003-04-05 Andrew Cagney <cagney@redhat.com>
10243
10244 * frame.c (frame_func_unwind, get_frame_func): New functions.
10245 * frame.h (get_frame_func, frame_func_unwind): Declare.
10246 (struct frame_info): Add field "prev_func" for caching the
10247 previous frame's function address.
10248 * arm-tdep.c (arm_frameless_function_invocation): Combine
10249 get_pc_function_start and get_frame_pc into get_frame_func.
10250 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10251 (sh64_nofp_frame_init_saved_regs): Ditto.
10252 * s390-tdep.c (s390_function_start): Ditto.
10253 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10254 (rs6000_frameless_function_invocation): Ditto.
10255 (rs6000_frame_saved_pc): Ditto.
10256 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10257 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10258 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10259 (i386_frame_init_saved_regs): Ditto.
10260 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10261 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10262 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10263 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10264 * blockframe.c (frameless_look_for_prologue): Ditto.
10265
a01dd7cc
AC
102662003-04-05 Andrew Cagney <cagney@redhat.com>
10267
10268 * frame.c (legacy_get_prev_frame): Link prev to next at the
10269 function start. Update comments.
10270
5e5592e6
AC
102712003-04-05 Andrew Cagney <cagney@redhat.com>
10272
10273 * frame.c (get_frame_id): Update comment.
10274 (legacy_get_prev_frame): Update comment.
10275 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10276 * gdbarch.h: Regenerate.
10277 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10278 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10279
6fba5002
AC
102802003-04-05 Andrew Cagney <cagney@redhat.com>
10281
10282 * stack.c (print_frame_info): Use get_frame_pc.
10283
7df05f2b
AC
102842003-04-04 Andrew Cagney <cagney@redhat.com>
10285
10286 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10287 the frame's type from the unwinder.
10288 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10289 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10290 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10291 (get_frame_base_address): Use get_frame_type.
10292 (get_frame_locals_address, get_frame_args_address): Ditto.
10293 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10294 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10295 (struct frame_info): Add comment explaining why the frame contains
10296 a "type" field.
10297 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10298 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10299 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10300 NORMAL_FRAME.
10301 * frame-unwind.h: Include "frame.h".
10302 (struct frame_unwind): Add "type" field.
10303 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10304
11889732
AC
103052003-04-04 Andrew Cagney <cagney@redhat.com>
10306
10307 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10308 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10309 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10310 get_frame_base.
10311 (d10v_unwind_dummy_id): Use frame_id_build.
10312 * frame.c (find_frame_sal): Use get_frame_pc.
10313 (create_new_frame): Use deprecated_update_frame_pc_hack and
10314 deprecated_update_frame_base_hack.
10315 (create_sentinel_frame): Add comment about ->pc going away.
10316 (get_prev_frame): Add comment about ->pc going away.
10317 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10318 frame_id_build, deprecated_update_frame_pc_hack and
10319 deprecated_update_frame_base_hack.
10320 (select_frame): Use get_frame_pc.
10321 (legacy_saved_regs_this_id): Use frame_id_build.
10322
50c46a0d
EZ
103232003-04-04 Elena Zannoni <ezannoni@redhat.com>
10324
fbe586ae
RH
10325 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10326 signed integer case.
10327 (classify_argument): Handle enumerations and references.
50c46a0d 10328
50bbdbd9
AC
103292003-04-04 Andrew Cagney <cagney@redhat.com>
10330
10331 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10332 ID to NULL.
10333
36018d2e
AF
103342003-04-01 Adam Fedor <fedor@gnu.org>
10335
10336 * gdb/objc-lang.c (selectors_info): Replace calls to
10337 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10338 SYMBOL_NATURAL_NAME.
10339 (classes_info, find_methods): Likewise.
10340
35cec841
KB
103412003-04-03 Kevin Buettner <kevinb@redhat.com>
10342
10343 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10344 ``mach'' to the value determined by bfd_default_set_arch_mach().
10345
43136899
BR
103462003-04-02 Bob Rossi <bob_rossi@cox.net>
10347
10348 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10349 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10350 (mi-cmd-file.o): Update dependencies.
10351
040b99fd
KB
103522003-04-01 Kevin Buettner <kevinb@redhat.com>
10353
10354 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10355 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10356
9a3d7dfd
AF
103572003-04-01 Adam Fedor <fedor@gnu.org>
10358
10359 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10360 * language.h (struct language_defn): Add la_demangle.
10361 (language_demangle): Declare.
10362 * language.c (language_demangle): New function.
10363 (unk_lang_demangle): Likewise.
10364 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10365 Add ukn_lang_demangle.
9a3d7dfd 10366 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10367 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10368 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10369 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10370 * jv-lang.c (java_demangle): New function
10371 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10372 * objc-lang.c (objc_demangle): Add options argument
10373 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10374 * maint.c (maintenance_demangle): Replace switch with
10375 call to language_demangle.
10376 * utils.c (fprintf_symbol_filtered): Likewise.
10377
5e074003
AC
103782003-04-01 Andrew Cagney <cagney@redhat.com>
10379
10380 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10381 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10382 PRINT_TYPELESS_INTEGER.
10383 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10384 PUSH_RETURN_ADDRESS.
10385
270cb5d6
AC
103862003-04-01 Andrew Cagney <cagney@redhat.com>
10387
10388 * Makefile.in (d10v-tdep.o): Update dependencies.
10389 * d10v-tdep.c: Include "frame-base.h".
10390 (d10v_frame_unwind): Make constant.
10391 (d10v_frame_base_address): New function.
10392 (d10v_frame_base): New variable.
10393 (d10v_gdbarch_init): Set frame_base default.
10394 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10395 comment for base.
10396 (d10v_frame_unwind_cache): Set and use "prev_sp".
10397 (d10v_frame_this_id): Use the previous frame's inner most stack
10398 address and this frame's func address for the frame ID. Use
10399 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10400
6bfb3e36
AC
104012003-04-01 Andrew Cagney <cagney@redhat.com>
10402
10403 * frame.h (get_frame_locals_address, get_frame_args_address):
10404 Refer to the base address, instead of the address of the first
10405 local or parameter.
8ffd9b1b 10406
da62e633
AC
104072003-04-01 Andrew Cagney <cagney@redhat.com>
10408
10409 Add frame debug info addresses:
10410 * frame-base.c: New file.
10411 * frame-base.h: New file.
10412 * frame.h (struct frame_base): Add opaque declaration.
10413 (get_frame_base): Update comment.
10414 (get_frame_base_address): Declare.
10415 (get_frame_locals_address): Declare.
10416 (get_frame_args_address): Declare.
10417 (struct frame_info): Add "base" and "base_cache". Update
10418 comments on the unwinder.
10419 * frame.c: Include "frame-base.h".
10420 (get_frame_locals_address): New function.
10421 (get_frame_base_address): New function.
10422 (get_frame_args_address): New function.
10423 * findvar.c (read_var_value): Use get_frame_locals_address and
10424 get_frame_args_address.
10425 * stack.c (frame_info): Use get_frame_locals_address and
10426 get_frame_args_address.
10427 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10428 moved to "frame-base.c".
10429 * printcmd.c (print_frame_nameless_args): Ditto.
10430 * symtab.h (address_class): Update comments.
10431 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10432 get_frame_base_address.
10433 * dwarf2expr.c (execute_stack_op): Ditto.
10434 * Makefile.in (frame_base_h): Define.
10435 (frame.o): Update dependencies.
10436 (frame-base.o): Add dependencies.
10437 (SFILES): Add frame-base.c.
10438 (COMMON_OBS): Add frame-base.o.
10439
3d30e9c2
AC
104402003-04-01 Andrew Cagney <cagney@redhat.com>
10441
10442 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10443 CALL_DUMMY_LENGTH): Ditto.
10444 * gdbarch.c: Re-generate.
10445 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10446 (CALL_DUMMY_LENGTH): Delete macro.
10447 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10448 * arm-tdep.c (arm_gdbarch_init): Ditto.
10449 * avr-tdep.c (avr_gdbarch_init): Ditto.
10450 * cris-tdep.c (cris_gdbarch_init): Ditto.
10451 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10452 * frv-tdep.c (frv_gdbarch_init): Ditto.
10453 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10454 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10455 * i386-tdep.c (i386_gdbarch_init): Ditto.
10456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10458 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10459 * mips-tdep.c (mips_gdbarch_init): Ditto.
10460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10461 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10462 * s390-tdep.c (s390_gdbarch_init): Ditto.
10463 * sh-tdep.c (sh_gdbarch_init): Ditto.
10464 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10465 * v850-tdep.c (v850_gdbarch_init): Ditto.
10466 * vax-tdep.c (vax_gdbarch_init): Ditto.
10467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10468
ce0c7262
CV
104692003-04-01 Corinna Vinschen <vinschen@redhat.com>
10470
10471 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10472
73dd234f
AC
104732003-04-01 Andrew Cagney <cagney@redhat.com>
10474
10475 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10476 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10477 * gdbarch.h, gdbarch.c: Re-generate.
10478 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10479 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10480 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10481 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10482 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10483 * infcmd.c (run_stack_dummy): Simplify assuming
10484 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10485 * infrun.c (handle_inferior_event): Ditto.
10486 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10487 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10488 * arm-tdep.c (arm_gdbarch_init): Ditto.
10489 * avr-tdep.c (avr_gdbarch_init): Ditto.
10490 * cris-tdep.c (cris_gdbarch_init): Ditto.
10491 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10492 * frv-tdep.c (frv_gdbarch_init): Ditto.
10493 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10494 * i386-tdep.c (i386_gdbarch_init): Ditto.
10495 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10497 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10498 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10499 * mips-tdep.c (mips_gdbarch_init): Ditto.
10500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10501 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10502 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10503 * s390-tdep.c (s390_gdbarch_init): Ditto.
10504 * sh-tdep.c (sh_gdbarch_init): Ditto.
10505 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10506 * v850-tdep.c (v850_gdbarch_init): Ditto.
10507 * vax-tdep.c (vax_gdbarch_init): Ditto.
10508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10509
97606a13
DJ
105102003-04-01 Daniel Jacobowitz <drow@mvista.com>
10511
10512 * symfile.c (symfile_relocate_debug_section): Update call to
10513 bfd_simple_get_relocated_section_contents.
10514
e8ab51f7
AC
105152003-03-31 Andrew Cagney <cagney@redhat.com>
10516
10517 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10518 * gdbarch.h, gdbarch.c: Regenerate.
10519 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10520 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10521 available.
10522 * frame.h (generic_fix_call_dummy): Delete declaration.
10523 * dummy-frame.h: Update comment.
10524 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10526 fix_call_dummy.
10527 * sh-tdep.c (sh_gdbarch_init): Ditto.
10528 * s390-tdep.c (s390_gdbarch_init): Ditto.
10529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10530 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10532 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10533 * i386-tdep.c (i386_gdbarch_init): Ditto.
10534 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10535 * frv-tdep.c (frv_gdbarch_init): Ditto.
10536 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10537 * cris-tdep.c (cris_gdbarch_init): Ditto.
10538 * avr-tdep.c (avr_gdbarch_init): Ditto.
10539 * arm-tdep.c (arm_gdbarch_init): Ditto.
10540
018d1b48
JB
105412003-03-31 J. Brobecker <brobecker@gnat.com>
10542
10543 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10544 (INIT_FRAME_AP): Likewise.
10545 (EXTRA_FRAME_INFO): Likewise.
10546
e9a2674e
AC
105472003-03-31 Andrew Cagney <cagney@redhat.com>
10548
10549 * gdbarch.sh: Include "symfile.h".
10550 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10551 * gdbarch.h, gdbarch.c: Re-generate.
10552 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10554 call_dummy_address, the default is at entry_point_address.
10555 * v850-tdep.c (v850_gdbarch_init): Ditto.
10556 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10557 * sh-tdep.c (sh_gdbarch_init): Ditto.
10558 * s390-tdep.c (s390_gdbarch_init): Ditto.
10559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10560 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10561 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10563 * i386-tdep.c (i386_gdbarch_init): Ditto.
10564 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10565 * frv-tdep.c (frv_gdbarch_init): Ditto.
10566 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10567 * cris-tdep.c (cris_gdbarch_init): Ditto.
10568 * arm-tdep.c (arm_gdbarch_init): Ditto.
10569
e8a8712a
AC
105702003-03-31 Andrew Cagney <cagney@redhat.com>
10571
10572 * gdbarch.sh (CALL_DUMMY_P): Delete.
10573 * gdbarch.h, gdbarch.c: Re-generate.
10574 * inferior.h (CALL_DUMMY_P): Delete macro.
10575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10576 * vax-tdep.c (vax_gdbarch_init): Update.
10577 * v850-tdep.c (v850_gdbarch_init): Update.
10578 * sparc-tdep.c (sparc_gdbarch_init): Update.
10579 * sh-tdep.c (sh_gdbarch_init): Update.
10580 * s390-tdep.c (s390_gdbarch_init): Update.
10581 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10582 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10583 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10584 * mips-tdep.c (mips_gdbarch_init): Update.
10585 * mcore-tdep.c (mcore_gdbarch_init): Update.
10586 * m68k-tdep.c (m68k_gdbarch_init): Update.
10587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10588 * ia64-tdep.c (ia64_gdbarch_init): Update.
10589 * i386-tdep.c (i386_gdbarch_init): Update.
10590 * h8300-tdep.c (h8300_gdbarch_init): Update.
10591 * frv-tdep.c (frv_gdbarch_init): Update.
10592 * d10v-tdep.c (d10v_gdbarch_init): Update.
10593 * cris-tdep.c (cris_gdbarch_init): Update.
10594 * breakpoint.c (deprecated_frame_in_dummy): Update.
10595 * avr-tdep.c (avr_gdbarch_init): Update.
10596 * alpha-tdep.c (alpha_gdbarch_init): Update.
10597 * arm-tdep.c (arm_gdbarch_init): Update.
10598 * dummy-frame.c (dummy_frame_this_id): Update comments.
10599 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10600 * frame.c (legacy_get_prev_frame): Ditto.
10601 * valops.c (call_function_by_hand): Delete function.
10602 (hand_function_call): Rename to call_function_by_hand
10603
ed234cf8
AC
106042003-03-30 Andrew Cagney <cagney@redhat.com>
10605
10606 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10607 * value.h (struct value): Update comment.
ed234cf8 10608
06c77151
AC
106092003-03-30 Andrew Cagney <cagney@redhat.com>
10610
6c2b5168
AC
10611 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10612 D10V_FP_REGNUM.
10613 (d10v_gdbarch_init): Do not set fp_regnum.
10614
06c77151
AC
10615 * frame.c (get_frame_base): Force ID initialization.
10616 (get_prev_frame): Move computation of the frame ID from here ...
10617 (get_frame_id): ... to here.
10618 (legacy_get_prev_frame): Mark the frame ID as valid.
10619 * frame.h (struct frame_info): Add field "id_p".
10620
97a1a11c
MK
106212003-03-30 Mark Kettenis <kettenis@gnu.org>
10622
10623 * i386-tdep.c (i386_store_struct_return): Removed.
10624 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10625
6c0e89ed
AC
106262003-03-30 Andrew Cagney <cagney@redhat.com>
10627
10628 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10629 * gdbarch.h, gdbarch.c: Regenerate.
10630 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10632 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10633 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10634 * i386-tdep.c (i386_gdbarch_init): Ditto.
10635 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10636 * cris-tdep.c (cris_gdbarch_init): Ditto.
10637 * vax-tdep.c (vax_gdbarch_init): Ditto.
10638 * s390-tdep.c (s390_gdbarch_init): Ditto.
10639 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10640 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10641 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10642 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10643 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10644 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10645 * sparc-tdep.c (sparc_gdbarch_init): Update.
10646 * sh-tdep.c (sh_gdbarch_init): Update.
10647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10648 * mips-tdep.c (mips_gdbarch_init): Update.
10649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10650 * ia64-tdep.c (ia64_gdbarch_init): Update.
10651 * frv-tdep.c (frv_gdbarch_init): Update.
10652 * avr-tdep.c (avr_gdbarch_init): Update.
10653 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10654 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10655 instead of when push_dummy_call is not available.
8ffd9b1b 10656
f7dd6af2
AC
106572003-03-30 Andrew Cagney <cagney@redhat.com>
10658
10659 * infttrace.c: Include "gdbthread.h".
10660 (parent_attach_all): Fix function signature.
10661 (call_ptrace): Update call.
10662 * Makefile.in (infttrace.o): Update dependencies.
10663
28f617b3
AC
106642003-03-30 Andrew Cagney <cagney@redhat.com>
10665
10666 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10667 PUSH_RETURN_ADDRESS.
10668 * gdbarch.h, gdbarch.c: Regenerate.
10669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10670 * x86-64-tdep.c (x86_64_init_abi): Update.
10671 * v850-tdep.c (v850_gdbarch_init): Update.
10672 * sparc-tdep.c (sparc_gdbarch_init): Update.
10673 * sh-tdep.c (sh_gdbarch_init): Update.
10674 * s390-tdep.c (s390_gdbarch_init): Update.
10675 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10676 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10677 * mips-tdep.c (mips_gdbarch_init): Update.
10678 * mcore-tdep.c (mcore_gdbarch_init): Update.
10679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10680 * ia64-tdep.c (ia64_gdbarch_init): Update.
10681 * i386-tdep.c (i386_gdbarch_init): Update.
10682 * h8300-tdep.c (h8300_gdbarch_init): Update.
10683 * frv-tdep.c (frv_gdbarch_init): Update.
10684 * cris-tdep.c (cris_gdbarch_init): Update.
10685 * avr-tdep.c (avr_gdbarch_init): Update.
10686 * arm-tdep.c (arm_gdbarch_init): Update.
10687 * valops.c (hand_function_call): Update.
10688
4d628cd7
AC
106892003-03-29 Andrew Cagney <cagney@redhat.com>
10690
10691 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10692 sizeof_call_dummy_words.
10693 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10694 define.
10695 * gdbarch.h: Regenerate.
8ffd9b1b 10696
65e82032
AC
106972003-03-29 Andrew Cagney <cagney@redhat.com>
10698
10699 * infttrace.h: New file.
10700 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10701 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10702 (hpread_read_doc_function_type): Detect an initialized type1.
10703 (hpread_quick_traverse): Initialize mod_name_string.
10704 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10705 (som_solib_get_solib_by_pc): Declare.
10706 (so_lib_thread_start_addr): Declare.
10707 (no_shared_libraries): Declare.
10708 * somread.c (init_import_symbols): Make static. Add forward
10709 declaration.
10710 * config/pa/nm-hppah.h: Include "infttrace.h" for
10711 parent_attach_all.
10712 (hppa_insert_hw_watchpoint): Declare.
10713 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10714 * hppah-nat.c: Include "gdb_string.h".
10715 (parent_attach_all): Delete extern declaration, moved to
10716 "infttrace.h".
10717 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10718 int.
10719 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10720 * Makefile.in (infttrace_h): Define.
10721 (hpread.o): Update dependencies.
10722 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10723 * hppa-hpux-tdep.c: Include "gdb_string.h".
10724 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10725 * infrun.c (handle_inferior_event): Always initialize
10726 stepped_after_stopped_by_watchpoint. Add default and remove
10727 fallthrough in switch statement.
10728 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10729 parameter to int.
10730 (hppa_remove_hw_watchpoint): Ditto.
10731
2c3bbe77
AC
107322003-03-29 Andrew Cagney <cagney@redhat.com>
10733
10734 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10735 offset.
10736
2dd604e7
RE
107372003-03-29 Richard Earnshaw <rearnsha@arm.com>
10738
10739 * arm-tdep.c (arm_push_arguments): Delete.
10740 (struct stack_item): New type.
10741 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10742 (arm_store_struct_return): Delte.
10743 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10744 arm_push_arguments or arm_store_struct_return.
10745
e8933a55
AC
107462003-03-28 Andrew Cagney <cagney@redhat.com>
10747
10748 * Makefile.in (d10v-tdep.o): Update dependencies.
10749 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10750 * d10v-tdep.c: Include "remote.h".
10751 (target_resume_hook): Delete extern declaration.
10752 (target_wait_loop_hook): Ditto.
10753 (tdisassemble_command): Eliminate assignment in "if" conditional.
10754 (d10v_ts2_register_sim_regno): Eliminate call to
10755 legacy_register_sim_regno.
10756 (d10v_ts3_register_sim_regno): Ditto.
10757
6949171e
JJ
107582003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10759
10760 * thread.c: Reindented.
10761 * lin-lwp.c: Ditto.
10762 * linux-proc.c: Ditto.
10763
98c7071f
BR
107642003-03-28 Bob Rossi <bob_rossi@cox.net>
10765
fbe586ae 10766 * MAINTAINERS (write after approval): Add myself.
98c7071f 10767
5edc9ca6
TR
107682003-03-27 Theodore A. Roth <troth@openavr.org>
10769
10770 * objc-exp.y: Add missing semi-colons.
10771
378bfd1b
AC
107722003-03-27 Andrew Cagney <cagney@redhat.com>
10773
10774 * regcache.c (write_sp): Delete function and references.
10775 * inferior.h (write_sp): Delete declaration.
10776 * valops.c (hand_function_call): Replace write_sp with
10777 TARGET_WRITE_SP.
10778 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10779 (sparc_pop_frame): Ditto.
8ffd9b1b 10780
56056df7
AC
107812003-03-27 Andrew Cagney <cagney@redhat.com>
10782
10783 * NEWS: Mention removal of support for hppa*-*-bsd* and
10784 hppa*-*-osf* natives, and hppa*-*-pro* target.
10785 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10786 * config/pa/xm-pa.h: Obsolete file.
10787 * config/pa/xm-hppab.h: Obsolete file.
10788 * config/pa/nm-hppab.h: Obsolete file.
10789 * config/pa/tm-hppab.h: Obsolete file.
10790 * config/pa/tm-hppao.h: Obsolete file.
10791 * config/pa/nm-hppao.h: Obsolete file.
10792 * config/pa/tm-pro.h: Obsolete file.
10793 * config/pa/hppaosf.mt: Obsolete file.
10794 * config/pa/hppaosf.mh: Obsolete file.
10795 * config/pa/hppapro.mt: Obsolete file.
10796 * config/pa/hppabsd.mt: Obsolete file.
10797 * config/pa/hppabsd.mh: Obsolete file.
10798 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10799 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10800 hppa*-*-osf*.
10801
5873a88d
AC
108022003-03-27 Andrew Cagney <cagney@redhat.com>
10803
10804 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10805 push_arguments. Don't set push_return_address or write_sp.
10806 (d10v_push_dummy_call): Replace d10v_push_arguments.
10807 (d10v_push_return_address, d10v_write_sp): Delete function,
10808 handled by push_dummy_call.
10809
b81774d8
AC
108102003-03-26 Andrew Cagney <cagney@redhat.com>
10811
10812 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10813 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10814 regcache and dummy_addr parameters.
10815 * gdbarch.h, gdbarch.c: Re-generate.
10816 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10817 available; assume it will handle stack alignment and return
10818 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10819 legacy_push_arguments.
10820 (legacy_push_arguments): Rename default_push_arguments.
10821 * value.h (legacy_push_arguments): Rename default_push_arguments.
10822 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10823 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10824 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10825 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10826 * config/i386/tm-symmetry.h: Update.
10827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10828 * x86-64-tdep.c (x86_64_init_abi): Update.
10829 * v850-tdep.c (v850_gdbarch_init): Update.
10830 * sparc-tdep.c (sparc_gdbarch_init): Update.
10831 * sh-tdep.c (sh_gdbarch_init): Update.
10832 * s390-tdep.c (s390_gdbarch_init): Update.
10833 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10834 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10835 * mips-tdep.c (mips_gdbarch_init): Update.
10836 * mcore-tdep.c (mcore_gdbarch_init): Update.
10837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10838 * ia64-tdep.c (ia64_gdbarch_init): Update.
10839 * i386-tdep.c (i386_gdbarch_init): Update.
10840 * hppa-tdep.c (hppa_gdbarch_init): Update.
10841 * h8300-tdep.c (h8300_gdbarch_init): Update.
10842 * frv-tdep.c (frv_gdbarch_init): Update.
10843 * d10v-tdep.c (d10v_gdbarch_init): Update.
10844 * cris-tdep.c (cris_gdbarch_init): Update.
10845 * avr-tdep.c (avr_gdbarch_init): Update.
10846 * arm-tdep.c (arm_gdbarch_init): Update.
10847 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10848 * alpha-tdep.c (alpha_gdbarch_init): Update.
10849
f541410f
DJ
108502003-03-26 Daniel Jacobowitz <drow@mvista.com>
10851
10852 * signals/signals.c (do_target_signal_to_host): Correct realtime
10853 signal range test.
10854
69f567ae
DJ
108552003-03-26 Daniel Jacobowitz <drow@mvista.com>
10856
10857 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10858 (struct sal_chain, map_catch_names): Remove.
10859 (catch_exception_command_1): Don't call
10860 handle_gnu_4_16_catch_command.
10861
d5d14a5a
DJ
108622003-03-26 Daniel Jacobowitz <drow@mvista.com>
10863
10864 From Mark Dettinger <dettinge@de.ibm.com>:
10865 * dwarf2cfi.c (read_2u): Increment pointer by two.
10866
bdd73e22
DJ
108672003-03-26 Daniel Jacobowitz <drow@mvista.com>
10868
10869 * signals/signals.c: Fix typos in last change.
10870
960cb555
DJ
108712003-03-26 Daniel Jacobowitz <drow@mvista.com>
10872
10873 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10874 not already defined. Use __SIGRTMIN if available.
10875 (target_signal_from_host): Remove SIGRTMIN block.
10876 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10877 the signal is within the realtime range.
10878
f636b87d
AF
108792003-03-25 Adam Fedor <fedor@gnu.org>
10880
10881 * Makefile.in (infrun.o): Add $(language_h)
10882 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10883 for language specific trampolines.
10884 * language.h (struct language_defn): Add skip_trampoline.
10885 (skip_language_trampoline): Declare.
10886 * language.c (unk_lang_trampoline, skip_language_trampoline):
10887 New functions.
10888 (unknown_language_defn, auto_language_defn, local_language_defn):
10889 Add ukn_lang_trampoline.
10890 * ada-lang.c (ada_language_defn): Add NULL for language
10891 specific skip_trampoline.
10892 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10893 scm-lang.c: Likewise.
10894 * objc-lang.c (objc_skip_trampoline): New function.
10895 (objc_language_defn): Add objc_skip_trampoline.
10896
28f617b3 108972003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10898
10899 * frame.c (get_prev_frame): Delay validating a frame's ID -
10900 non-NULL, didn't go backwards - until an attempt to unwind it to
10901 the previous frame.
10902
f933a9c5
AC
109032003-03-25 Andrew Cagney <cagney@redhat.com>
10904
10905 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10906 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10907 * gdbarch.h, gdbarch.c: Re-generate.
10908 * config/sparc/tm-sparc.h
10909 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10910 * sparc-tdep.c (sparc_gdbarch_init): Set
10911 deprecated_extra_stack_alignment_needed.
10912 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10914 extra_stack_alignment_needed.
10915 * v850-tdep.c (v850_gdbarch_init): Ditto.
10916 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10917 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10918 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10919 * cris-tdep.c (cris_gdbarch_init): Ditto.
10920 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10922
4183d812
AC
109232003-03-25 Andrew Cagney <cagney@redhat.com>
10924
10925 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10926 STORE_STRUCT_RETURN.
10927 * gdbarch.h, gdbarch.c: Regenerate.
10928 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10929 (d10v_push_arguments): Set the struct return register.
10930 (d10v_gdbarch_init): Update.
10931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10932 * x86-64-tdep.c (x86_64_init_abi): Update.
10933 * vax-tdep.c (vax_gdbarch_init): Update.
10934 * v850-tdep.c (v850_gdbarch_init): Update.
10935 * sparc-tdep.c (sparc_gdbarch_init): Update.
10936 * sh-tdep.c (sh_gdbarch_init): Update.
10937 * s390-tdep.c (s390_gdbarch_init): Update.
10938 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10939 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10940 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10941 * mips-tdep.c (mips_gdbarch_init): Update.
10942 * mcore-tdep.c (mcore_gdbarch_init): Update.
10943 * m68k-tdep.c (m68k_gdbarch_init): Update.
10944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10945 * ia64-tdep.c (ia64_gdbarch_init): Update.
10946 * i386-tdep.c (i386_gdbarch_init): Update.
10947 * hppa-tdep.c (hppa_gdbarch_init): Update.
10948 * h8300-tdep.c (h8300_gdbarch_init): Update.
10949 * frv-tdep.c (frv_gdbarch_init): Update.
10950 * cris-tdep.c (cris_gdbarch_init): Update.
10951 * avr-tdep.c (avr_gdbarch_init): Update.
10952 * arm-tdep.c (arm_gdbarch_init): Update.
10953 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10954
1bf6d5cc
AC
109552003-03-25 Andrew Cagney <cagney@redhat.com>
10956
10957 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10958 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10959 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10960 * gdbarch.h, gdbarch.c: Regenerate.
10961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10962 call_dummy_stack_adjust_p.
10963 * vax-tdep.c (vax_gdbarch_init): Ditto.
10964 * v850-tdep.c (v850_gdbarch_init): Ditto.
10965 * sh-tdep.c (sh_gdbarch_init): Ditto.
10966 * s390-tdep.c (s390_gdbarch_init): Ditto.
10967 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10968 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10969 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10970 * mips-tdep.c (mips_gdbarch_init): Ditto.
10971 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10972 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10974 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10975 * i386-tdep.c (i386_gdbarch_init): Ditto.
10976 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10977 * frv-tdep.c (frv_gdbarch_init): Ditto.
10978 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10979 * cris-tdep.c (cris_gdbarch_init): Ditto.
10980 * avr-tdep.c (avr_gdbarch_init): Ditto.
10981 * arm-tdep.c (arm_gdbarch_init): Ditto.
10982 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10983 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10984 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10985 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10986 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10987 call_dummy_stack_adjust_p.
10988 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10989 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10990 * sparc-tdep.c (sparc32_push_arguments): Update.
10991 * valops.c (hand_function_call): Update.
10992
71c08af0
CV
109932003-03-25 Corinna Vinschen <vinschen@redhat.com>
10994
10995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10996 set_gdbarch_char_signed.
10997
30757f90
RE
109982003-03-25 Richard Earnshaw <rearnsha@arm.com>
10999
11000 PR cli/548
11001 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11002
03d48a7d
RE
110032003-03-25 Richard Earnshaw <rearnsha@arm.com>
11004
11005 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11006 (_initialize_arm_tdep): Don't set tm_print_insn.
11007
2cf6873c
AF
110082003-03-24 Adam Fedor <fedor@gnu.org>
11009
11010 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11011 * objc-lang.h: Add multiple inclusion protection.
11012 (start_msglist, add_msglist, end_msglist): Additional declarations.
11013
17c0759e
RE
110142003-03-24 Richard Earnshaw <rearnsha@arm.com>
11015
11016 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11017 value was renamed to ARM_FLOAT_SOFT_FPA.
11018
618ce49f
AC
110192003-03-23 Andrew Cagney <cagney@redhat.com>
11020
11021 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11022 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11023 * gdbarch.h, gdbarch.c: Regenerate.
11024 * valops.c (hand_function_call): Update.
11025 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11026 * frame.c (legacy_saved_regs_this_id): Update.
11027 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11028 * dummy-frame.h: Update.
11029 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11030 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11031 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11032 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11033 * config/m68k/tm-sun3.h: Update.
11034 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11036 * x86-64-tdep.c (x86_64_init_abi): Update.
11037 * vax-tdep.c (vax_gdbarch_init): Update.
11038 * v850-tdep.c (v850_gdbarch_init): Update.
11039 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11040 * sh-tdep.c (sh_gdbarch_init): Update.
11041 * s390-tdep.c (s390_gdbarch_init): Update.
11042 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11043 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11044 (frame_get_saved_regs): Update.
11045 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11046 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11047 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11048 * mips-tdep.c (mips_gdbarch_init): Update.
11049 * mcore-tdep.c (mcore_gdbarch_init): Update.
11050 * m68k-tdep.c (m68k_gdbarch_init): Update.
11051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11052 * ia64-tdep.c (ia64_gdbarch_init): Update.
11053 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11054 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11055 (i386_interix_back_one_frame): Update.
11056 * hppa-tdep.c (hppa_gdbarch_init): Update.
11057 (hppa_init_extra_frame_info): Update.
11058 * h8300-tdep.c (h8300_gdbarch_init): Update.
11059 * frv-tdep.c (frv_gdbarch_init): Update.
11060 * cris-tdep.c (cris_gdbarch_init): Update.
11061 * avr-tdep.c (avr_gdbarch_init): Update.
11062 * arm-tdep.c (arm_gdbarch_init): Update.
11063 * alpha-tdep.c (alpha_gdbarch_init): Update.
11064
fd50bc42
RE
110652003-03-22 Richard Earnshaw <rearnsha@arm.com>
11066
11067 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11068 (arm_get_fp_model): Declare.
11069 * arm-tdep.c (fp_model_strings): New string array.
11070 (arm_fp_model, current_fp_model): New variables.
11071 (arm_get_fp_model): New function.
11072 (arm_set_fp): New function.
11073 (set_fp_model_sfunc): New function.
11074 (show_fp_model): New function.
11075 (_initialize_arm_tdep): Add new command to set/show the FPU.
11076 (arm_extract_return_value): Use arm_get_fp_model.
11077 (arm_store_return_value): Likewise.
11078 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11079 to initialize the floating-point data types.
11080 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11081 model is FPA.
11082
26304000
RE
110832003-03-22 Richard Earnshaw <rearnsha@arm.com>
11084
11085 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11086 the current setting of each value.
11087 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11088 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11089 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11090 commands and add new version as subcommands of "set/show arm".
11091
afd7eef0
RE
110922003-03-22 Richard Earnshaw <rearnsha@arm.com>
11093
11094 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11095 (set_arm_command, show_arm_command): New functions.
11096 (_initialize_arm_tdep): Add them.
11097 (num_disassembly_options): Renamed from num_flavor_options.
11098 (valid_disassembly_styles): Renamed from valid_flavors.
11099 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11100 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11101 set_disassembly_flavor_sfunc.
11102 (set_disassembly_style): Renamed from set_disassembly_flavor.
11103 (arm_othernames): Updated.
11104 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11105 command. Add "set/show arm disassembly" commands. Deprecate
11106 "othernames" command.
11107
299a7944
RE
111082003-03-22 Richard Earnshaw <rearnsha@arm.com>
11109
11110 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11111 (arm-tdep.o): Depend on elf_arm_h.
11112
c1dac9e6
RE
111132003-03-22 Richard Earnshaw <rearnsha@arm.com>
11114
11115 * Makefile.in (coff_internal_h): Define.
11116 (arm-tdep.o): Update dependencies.
11117
2702d96c
RE
111182003-03-22 Richard Earnshaw <rearnsha@arm.com>
11119
11120 * arm-tdep.c (prologue_cache): Delete.
11121 (check_prologue_cache, save_prologue_cache): Delete.
11122 (arm_scan_prologue): Don't check or update the prologue_cache.
11123 (arm_gdb_arch_init): Don't initialize it.
11124 (_initialize_arm_tdep): Likewise.
11125
27d5d74b
SC
111262003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11127
11128 * MAINTAINERS (tui): Maintainer of tui code.
11129
1762d96d
CV
111302003-03-21 Corinna Vinschen <vinschen@redhat.com>
11131
11132 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11133 (i386-cygwin-tdep.o): Add dependencies.
11134 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11135 * i386-cygwin-tdep.c: New file.
11136 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11137 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11138
4c2e2391
AC
111392003-03-20 Andrew Cagney <cagney@redhat.com>
11140
f20d38b7
AC
11141 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11142 (handle_inferior_event): Remove code calling
11143 DYNAMIC_TRAMPOLINE_NEXTPC.
11144
0022b738
AC
11145 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11146 already has a full path.
11147
864dbc90
AC
11148 * main.c (gdb_main): Return 1.
11149 (captured_main): Call error to report an invalid interpreter.
11150
4c2e2391
AC
11151 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11152 * alpha-osf1-tdep.c: Include "gdb_string.h".
11153
5ef7553b
JB
111542003-03-19 J. Brobecker <brobecker@gnat.com>
11155
11156 Continuing work to convert the hppa targets to multiarch partial.
11157
11158 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11159 method, now that hppa_push_dummy_frame has a conformant prototype.
11160 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11161 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11162 for the switch to multiarch partial.
11163
7bde8967
KB
111642003-03-19 Kevin Buettner <kevinb@redhat.com>
11165
11166 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11167 when iss is issNull.
11168
b006a9e9
KB
111692003-03-18 Kevin Buettner <kevinb@redhat.com>
11170
11171 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11172 NUM_REGS bounds check.
11173
5e2e9765
KB
111742003-03-18 Kevin Buettner <kevinb@redhat.com>
11175
11176 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11177 * mips-tdep.c (gdb_assert.h): Include.
11178 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11179 (mips_register_name): Handle integer registers explicitly. Add
11180 bounds checking.
11181 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11182 (mips_lsi33k_reg_names): Don't list integer registers; they're
11183 handled by mips_register_name() now.
11184 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11185 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11186 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11187 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11188 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11189
a2867626
AC
111902003-03-18 Andrew Cagney <cagney@redhat.com>
11191
11192 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11193 a void pointer.
11194 * gdbtypes.h (print_scalar_formatted): Update declaration.
11195 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11196
06600e06
JB
111972003-03-18 J. Brobecker <brobecker@gnat.com>
11198
11199 * infrun.c (observer.h): Add #include.
11200 (normal_stop): Add call to observer_notify_normal_stop.
11201 * Makefile.in (infrun.o): Add dependency on observer.h.
11202
7daf4f5b
JB
112032003-03-18 J. Brobecker <brobecker@gnat.com>
11204
11205 Continuing work to convert the hppa targets to multiarch partial.
11206 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11207 parameter. Reformat comment.
11208 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11209 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11210 to match new profile.
11211
3371ccc0
JB
112122003-03-18 J. Brobecker <brobecker@gnat.com>
11213
11214 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11215 appear to be working in any case.
11216
4fbe891e
JB
112172003-03-18 J. Brobecker <brobecker@gnat.com>
11218
11219 * observer.c (observer_test_first_observer): New static variable.
11220 (observer_test_second_observer): Likewise.
11221 (observer_test_third_observer): Likewise.
11222 (observer_test_first_notification_function): New static function.
11223 (observer_test_second_notification_function): Likewise.
11224 (observer_test_third_notification_function): Likewise.
11225
a7ff40e7
JB
112262003-03-17 J. Brobecker <brobecker@gnat.com>
11227
11228 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11229 * somsolib.c (gdb_assert.h): Likewise.
11230 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11231 (somsolib.o): Likewise.
11232
26ca4152
AC
112332003-03-17 Andrew Cagney <cagney@redhat.com>
11234
11235 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11236 BFD. Simplify setting of di.endian.
11237
0a613259
AC
112382003-03-17 Andrew Cagney <cagney@redhat.com>
11239
11240 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11241 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11242
11243 From Elena Zannoni <ezannoni@redhat.com>
11244 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11245 vector and floating-point parameters.
11246 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11247 convention.
11248 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11249
1132738f
FN
112502003-03-17 Fernando Nasser <fnasser@redhat.com>
11251
11252 * MAINTAINERS: Remove my name from several maintainership roles.
11253
6dc42492
AC
112542003-03-17 Andrew Cagney <cagney@redhat.com>
11255
11256 Fix frame off-by-one bug.
11257 * frame-unwind.h (frame_this_id_ftype): Replace
11258 frame_unwind_id_ftype.
11259 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11260 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11261 with "prev_register".
11262 * frame-unwind.c (frame_unwind_find_by_pc): Return
11263 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11264 comment.
11265 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11266 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11267 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11268 (dummy_frame_unwind): Update.
11269 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11270 sentinel_frame_register_unwind.
11271 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11272 (sentinel_frame_unwinder): Update.
11273 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11274 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11275 * frame.c (create_sentinel_frame): Update. Initialize
11276 "prologue_cache" instead of "unwind_cache".
11277 (frame_register_unwind): Call this frame's prev_register with the
11278 next frame and this frame's prologue cache.
11279 (get_prev_frame): Simplify. Always call prev frame's this_id with
11280 this frame and prev frame's prologue cache. Document that this
11281 call is shifted one to the left when compared to the
11282 frame_register_unwind call.
11283 (legacy_saved_regs_prev_register): Replace
11284 frame_saved_regs_register_unwind.
11285 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11286 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11287 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11288 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11289 (d10v_frame_unwind): Update.
11290 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11291 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11292 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11293 "saved_regs" with "this_saved_regs".
11294
efd710d6
AC
112952003-03-16 Andrew Cagney <cagney@redhat.com>
11296
11297 * frame.c (frame_pop): Don't call target_store_registers. Fix
11298 problem reported by Mark Kettenis.
11299
4e259f09
MK
113002003-03-16 Mark Kettenis <kettenis@gnu.org>
11301
11302 * i386-tdep.c (i386_register_type): Renamed from
11303 i386_register_virtual_type. Adjust function signature.
11304 (i386_gdbarch_init): Set register_type instead of
11305 deprecated_max_register_raw_size,
11306 deprecated_max_register_virtual_size and register_virtual_type.
11307
055bb976
AC
113082003-03-14 Andrew Cagney <cagney@redhat.com>
11309
11310 * frame.c (get_prev_frame): When a legacy frame, always call
11311 legacy_get_prev_frame. Simplify unwind code using assumption that
11312 the unwinder is new.
11313 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11314 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11315 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11316
ac2adee5
AC
113172003-03-14 Andrew Cagney <cagney@redhat.com>
11318
11319 * frame.c (get_saved_register): Delete function.
11320 * frame.h (get_saved_register): Delete declaration.
11321 * xstormy16-tdep.c: Update comment.
11322 * regcache.h: Update comments.
11323 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11324 get_saved_register and extract_address, use
11325 frame_read_unsigned_register.
11326 (sparc_frame_saved_pc): Ditto.
11327 (sparc_get_saved_register): Instead of get_saved_register, use
11328 frame_register.
11329 (sparc_pop_frame): Ditto.
11330 * findvar.c: Update comments.
11331 (value_of_register): Call frame_register instead of
11332 get_saved_register.
11333 (value_from_register): Ditto.
11334 * config/sparc/tm-sparc.h: Update comment.
11335 * breakpoint.c: Update comment.
11336
129c1cd6
AC
113372003-03-14 Andrew Cagney <cagney@redhat.com>
11338
11339 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11340 GET_SAVED_REGISTER.
11341 * gdbarch.h, gdbarch.c: Re-generate.
11342 * frame.h: Update comments.
11343 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11344 * x86-64-tdep.c (x86_64_init_abi): Update.
11345 * sparc-tdep.c (sparc_gdbarch_init): Update.
11346 * sh-tdep.c (sh_gdbarch_init): Update.
11347 * mips-tdep.c (mips_gdbarch_init): Update.
11348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11349 * cris-tdep.c (cris_gdbarch_init): Update.
11350 * ia64-tdep.c (ia64_gdbarch_init): Update.
11351 * frame.c (frame_register): Update.
11352 (get_saved_register): Update.
11353 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11354
749b82f6
AC
113552003-03-13 Andrew Cagney <cagney@redhat.com>
11356
11357 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11358 * gdbarch.h, gdbarch.c: Regenerate.
11359 * valops.c (hand_function_call): Update comment.
11360 * stack.c (return_command): Update comment.
11361 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11362 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11364 * x86-64-tdep.c (x86_64_init_abi): Update.
11365 * vax-tdep.c (vax_gdbarch_init): Update.
11366 * v850-tdep.c (v850_gdbarch_init): Update.
11367 * sparc-tdep.c (sparc_gdbarch_init): Update.
11368 * sh-tdep.c (sh_gdbarch_init): Update.
11369 * s390-tdep.c (s390_gdbarch_init): Update.
11370 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11371 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11372 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11373 * mips-tdep.c (mips_gdbarch_init): Update.
11374 * mcore-tdep.c (mcore_gdbarch_init): Update.
11375 * m68k-tdep.c (m68k_gdbarch_init): Update.
11376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11377 * ia64-tdep.c (ia64_gdbarch_init): Update.
11378 * i386-tdep.c (i386_gdbarch_init): Update.
11379 * hppa-tdep.c (hppa_gdbarch_init): Update.
11380 * h8300-tdep.c (h8300_gdbarch_init): Update.
11381 * frv-tdep.c (frv_gdbarch_init): Update.
11382 * cris-tdep.c (cris_gdbarch_init): Update.
11383 * avr-tdep.c (avr_gdbarch_init): Update.
11384 * arm-tdep.c (arm_gdbarch_init): Update.
11385 * alpha-tdep.c (alpha_gdbarch_init): Update.
11386
1594fa56
AC
113872003-03-13 Andrew Cagney <cagney@redhat.com>
11388
11389 * frame.c (legacy_frame_p): New function.
11390 (get_prev_frame): Use legacy_frame_p.
11391 * frame.h (legacy_frame_p): Declare.
11392
7717fda3
V
113932003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11394
fbe586ae 11395 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11396 listing corrected.
11397
0c67cbe9
V
113982003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11399
fbe586ae 11400 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11401
03febf99
AC
114022003-03-12 Andrew Cagney <cagney@redhat.com>
11403
11404 * frame.c (get_prev_frame): Rename the frame parameter to
11405 "this_frame".
11406 (get_next_frame, legacy_get_prev_frame): Ditto.
11407
0a1e1ca1
AC
114082003-03-12 Andrew Cagney <cagney@redhat.com>
11409
11410 * frame.c (get_current_frame): Check target_has_registers before
11411 checking target_has_stack.
11412 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11413 instead of deprecated_selected_frame.
11414 * findvar.c (value_of_register): Pass "frame", not
11415 deprecated_selected_frame, to value_of_builtin_reg.
11416
a66a9c23
AC
114172003-03-12 Andrew Cagney <cagney@redhat.com>
11418
11419 * regcache.c (regcache_cooked_write_signed): New function.
11420 (regcache_cooked_write_unsigned): New function.
11421 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11422 (regcache_cooked_read_signed): Fix regnum in range assertion.
11423 * regcache.h (regcache_cooked_write_signed): Declare.
11424 (regcache_cooked_write_unsigned): Declare.
11425
8bedc050
AC
114262003-03-12 Andrew Cagney <cagney@redhat.com>
11427
11428 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11429 * gdbarch.h, gdbarch.c: Re-generate.
11430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11431 * x86-64-tdep.h: Update.
11432 * x86-64-tdep.c (x86_64_init_abi): Update.
11433 * v850-tdep.c (v850_gdbarch_init): Update.
11434 * sparc-tdep.c (sparc_gdbarch_init): Update.
11435 * sh-tdep.c (sh_gdbarch_init): Update.
11436 * s390-tdep.c (s390_gdbarch_init): Update.
11437 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11438 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11440 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11441 * mips-tdep.c (mips_gdbarch_init): Update.
11442 * mcore-tdep.c (mcore_gdbarch_init): Update.
11443 * m68k-tdep.c (m68k_gdbarch_init): Update.
11444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11445 * ia64-tdep.c (ia64_gdbarch_init): Update.
11446 * i386-tdep.c (i386_gdbarch_init): Update.
11447 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11448 * hppa-tdep.c (hppa_gdbarch_init): Update.
11449 * h8300-tdep.c (h8300_gdbarch_init): Update.
11450 * frv-tdep.c (frv_gdbarch_init): Update.
11451 * cris-tdep.c (cris_gdbarch_init): Update.
11452 * avr-tdep.c (avr_gdbarch_init): Update.
11453 * arm-tdep.c (arm_gdbarch_init): Update.
11454 * alpha-tdep.c (alpha_gdbarch_init): Update.
11455 * sh-tdep.c (sh_init_extra_frame_info): Update.
11456 (sh64_init_extra_frame_info): Update.
11457 * ns32knbsd-nat.c (frame_num_args): Update.
11458 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11459 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11460 (xstormy16_frame_chain_valid): Update.
11461 * vax-tdep.c (vax_saved_pc_after_call): Update.
11462 * v850-tdep.c (v850_frame_chain): Update.
11463 (v850_pop_frame): Update.
11464 (v850_init_extra_frame_info): Update.
11465 * sparc-tdep.c (setup_arbitrary_frame): Update.
11466 * ns32k-tdep.c (umax_frame_num_args): Update.
11467 * s390-tdep.c (s390_pop_frame_regular): Update.
11468 * mn10300-tdep.c (mn10300_frame_chain): Update.
11469 (mn10300_pop_frame_regular): Update.
11470 (mn10300_init_extra_frame_info): Update.
11471 * mips-tdep.c (mips_init_frame_pc_first): Update.
11472 (mips_frame_chain): Update.
11473 (mips_pop_frame): Update.
11474 * mcore-tdep.c (mcore_frame_chain): Update.
11475 (mcore_pop_frame): Update.
11476 (mcore_init_extra_frame_info): Update.
11477 * arch-utils.c (init_frame_pc_default): Update.
11478 * m68k-tdep.c (isi_frame_num_args): Update.
11479 (delta68_frame_num_args): Update.
11480 (news_frame_num_args): Update.
11481 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11482 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11483 (alpha_frame_chain): Update.
11484 (alpha_pop_frame): Update.
11485 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11486 (hppa_init_extra_frame_info): Update.
11487 (hppa_frame_chain): Update.
11488 (hppa_frame_chain_valid): Update.
11489 * cris-tdep.c (cris_init_extra_frame_info): Update.
11490 * avr-tdep.c (avr_init_extra_frame_info): Update.
11491 * arm-tdep.c (arm_frame_chain_valid): Update.
11492 (arm_init_extra_frame_info): Update.
11493 (arm_pop_frame): Update.
11494 * frame.c (frame_pc_unwind): Update.
11495 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11496 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11497 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11498 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11499 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11500 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11501
7a25a7c1
AC
115022003-03-12 Andrew Cagney <cagney@redhat.com>
11503
11504 Eliminate the need for POP_FRAME.
11505 * frame.c (do_frame_unwind_register): New function.
11506 (frame_pop): When no POP_FRAME, pop the frame using register
11507 unwind and a scratch regcache.
11508 (frame_saved_regs_pop): Delete function.
11509 (trad_frame_unwinder): Update.
11510 * d10v-tdep.c (d10v_frame_pop): Delete function.
11511 (d10v_frame_unwind): Update.
11512 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11513 (sentinel_frame_unwinder): Update.
11514 * dummy-frame.c (dummy_frame_pop): Delete function.
11515 (dummy_frame_unwind): Update.
11516 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11517 (struct frame_unwind): Update.
11518
2f38ef89
KB
115192003-03-11 Kevin Buettner <kevinb@redhat.com>
11520
11521 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11522 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11523 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11524 Do range checks on register number obtained from debugging info.
11525 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11526 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11527 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11528 mapping function.
11529 (do_fp_register_row): Fix typo which caused double type to be
11530 used when attempting to unpack a float.
11531
552f4abf
JB
115322003-03-11 J. Brobecker <brobecker@gnat.com>
11533
11534 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11535
e0d2ae16
AC
115362003-03-11 Andrew Cagney <cagney@redhat.com>
11537
11538 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11539 frame. Problem found by Corinna Vinschen.
11540
ddbfdd06
PM
115412003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11542
11543 * doublest.c (floatformat_from_length): Accept also
11544 the real size of 'long double' type.
11545
088b2ddc 115462003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11547
088b2ddc 11548 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11549 * breakpoint.c (bpstat_copy): Copy the command lines as well
11550 as the old value, to match what is freed in bpstat_clear.
11551
f56f77c1
DC
115522003-03-10 David Carlton <carlton@math.stanford.edu>
11553
11554 * minsyms.c (add_minsym_to_hash_table): Replace
11555 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11556 (compare_minimal_symbols, compact_minimal_symbols)
11557 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11558 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11559 of DEPRECATED_SYMBOL_MATCHES_NAME.
11560 (lookup_minimal_symbol_solib_trampoline): Ditto.
11561
5602984a
AC
115622003-03-10 Andrew Cagney <cagney@redhat.com>
11563
11564 * regcache.h (regcache_cooked_read_ftype): Define.
11565 (regcache_save, regcache_restore): Add a cooked_read parameter.
11566 * regcache.c (regcache_save, regcache_restore): Update.
11567 (do_cooked_read): New function.
11568 (regcache_cpy): Pass do_cooked_read to regcache_save and
11569 regcache_restore.
11570
8bedc050
AC
115712003-03-10 Andrew Cagney <cagney@redhat.com>
11572
11573 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11574 * gdbarch.h, gdbarch.c: Re-generate.
11575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11576 * x86-64-tdep.h: Update.
11577 * x86-64-tdep.c (x86_64_init_abi): Update.
11578 * v850-tdep.c (v850_gdbarch_init): Update.
11579 * sparc-tdep.c (sparc_gdbarch_init): Update.
11580 * sh-tdep.c (sh_gdbarch_init): Update.
11581 * s390-tdep.c (s390_gdbarch_init): Update.
11582 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11583 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11584 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11585 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11586 * mips-tdep.c (mips_gdbarch_init): Update.
11587 * mcore-tdep.c (mcore_gdbarch_init): Update.
11588 * m68k-tdep.c (m68k_gdbarch_init): Update.
11589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11590 * ia64-tdep.c (ia64_gdbarch_init): Update.
11591 * i386-tdep.c (i386_gdbarch_init): Update.
11592 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11593 * hppa-tdep.c (hppa_gdbarch_init): Update.
11594 * h8300-tdep.c (h8300_gdbarch_init): Update.
11595 * frv-tdep.c (frv_gdbarch_init): Update.
11596 * cris-tdep.c (cris_gdbarch_init): Update.
11597 * avr-tdep.c (avr_gdbarch_init): Update.
11598 * arm-tdep.c (arm_gdbarch_init): Update.
11599 * alpha-tdep.c (alpha_gdbarch_init): Update.
11600 * sh-tdep.c (sh_init_extra_frame_info): Update.
11601 (sh64_init_extra_frame_info): Update.
11602 * ns32knbsd-nat.c (frame_num_args): Update.
11603 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11604 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11605 (xstormy16_frame_chain_valid): Update.
11606 * vax-tdep.c (vax_saved_pc_after_call): Update.
11607 * v850-tdep.c (v850_frame_chain): Update.
11608 (v850_pop_frame): Update.
11609 (v850_init_extra_frame_info): Update.
11610 * sparc-tdep.c (setup_arbitrary_frame): Update.
11611 * ns32k-tdep.c (umax_frame_num_args): Update.
11612 * s390-tdep.c (s390_pop_frame_regular): Update.
11613 * mn10300-tdep.c (mn10300_frame_chain): Update.
11614 (mn10300_pop_frame_regular): Update.
11615 (mn10300_init_extra_frame_info): Update.
11616 * mips-tdep.c (mips_init_frame_pc_first): Update.
11617 (mips_frame_chain): Update.
11618 (mips_pop_frame): Update.
11619 * mcore-tdep.c (mcore_frame_chain): Update.
11620 (mcore_pop_frame): Update.
11621 (mcore_init_extra_frame_info): Update.
11622 * arch-utils.c (init_frame_pc_default): Update.
11623 * m68k-tdep.c (isi_frame_num_args): Update.
11624 (delta68_frame_num_args): Update.
11625 (news_frame_num_args): Update.
11626 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11627 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11628 (alpha_frame_chain): Update.
11629 (alpha_pop_frame): Update.
11630 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11631 (hppa_init_extra_frame_info): Update.
11632 (hppa_frame_chain): Update.
11633 (hppa_frame_chain_valid): Update.
11634 * cris-tdep.c (cris_init_extra_frame_info): Update.
11635 * avr-tdep.c (avr_init_extra_frame_info): Update.
11636 * arm-tdep.c (arm_frame_chain_valid): Update.
11637 (arm_init_extra_frame_info): Update.
11638 (arm_pop_frame): Update.
11639 * frame.c (frame_pc_unwind): Update.
11640 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11641 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11642 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11643 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11644 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11645 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11646
12cc2063
AC
116472003-03-10 Andrew Cagney <cagney@redhat.com>
11648
11649 * gdbarch.sh (gdbarch_unwind_pc): New method.
11650 * gdbarch.h, gdbarch.c: Regenerate.
11651 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11652 but use read_pc and FRAME_SAVED_PC as fall backs.
11653 (frame_saved_regs_pc_unwind): Delete function.
11654 (trad_frame_unwinder): Update.
11655 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11656 (struct frame_unwind): Update.
11657 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11658 (dummy_frame_unwind): Update.
11659 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11660 (sentinel_frame_unwinder): Update.
11661 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11662 (d10v_frame_unwind): Update.
11663 (d10v_unwind_pc): New function.
11664 (d10v_gdbarch_init): Set unwind_pc.
11665
ef840a37
AC
116662003-03-10 Andrew Cagney <cagney@redhat.com>
11667
a2ce2e56
AC
11668 * gdbarch.h: Re-generate.
11669
ef840a37
AC
11670 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11671 PC.
11672 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11673 the PC register.
11674
08f3424b
MK
116752003-03-08 Mark Kettenis <kettenis@gnu.org>
11676
11677 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11678
1248ede2
AC
116792003-03-08 Andrew Cagney <cagney@redhat.com>
11680
11681 * cli-out.c: Update copyright.
11682 (cli_out_data): Define typedef. Use instead of ui_out_data.
11683
f49bacc8
AC
116842003-03-08 Andrew Cagney <cagney@redhat.com>
11685
11686 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11687 the result.
11688
9b05f993
AC
116892003-03-07 Andrew Cagney <cagney@redhat.com>
11690
11691 * gdbarch.sh: Don't generate two macro definitions when an
11692 undefined macro taking no arguments.
11693 * gdbarch.h: Regenerate.
8ffd9b1b 11694
166f4c7b
ML
116952002-03-07 Michal Ludvig <mludvig@suse.cz>
11696
11697 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11698 (x86_64_unwind_dummy_id): New functions.
11699 (x86_64_init_abi): Register these two new functions.
11700
6d686a84
ML
117012003-03-07 Michal Ludvig <mludvig@suse.cz>
11702
11703 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11704 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11705 separate function.
11706 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11707
6314f104
AC
117082003-03-05 Andrew Cagney <cagney@redhat.com>
11709
11710 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11711 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11712 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11713 to use unwind_dummy_id when a dummy frame.
11714 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11715 predicate.
11716 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11717
ceea5145
AC
117182003-03-05 Andrew Cagney <cagney@redhat.com>
11719
11720 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11721 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11722 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11723 values.
11724
0d843116
AC
117252003-03-05 Andrew Cagney <cagney@redhat.com>
11726
11727 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11728 (struct d10v_unwind_cache): Delete field "frameless". Replace
11729 "next_addr" with "sp_offset". Add "r11_offset".
11730 (d10v_frame_unwind_cache): Update.
11731 (prologue_find_regs): Update. When "mv r11, sp", save the
11732 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11733 RN was saved in r11_offset.
11734
b2579786
AC
117352003-03-05 Andrew Cagney <cagney@redhat.com>
11736
11737 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11738 cached PC value in the next frame.
11739
218e5956
AC
117402003-03-05 Andrew Cagney <cagney@redhat.com>
11741
11742 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11743 "id_unwind_cache" with "id".
11744 (frame_id_unwind): Delete declaration.
11745 * frame.c (frame_id_unwind): Delete function.
11746 (get_prev_frame): Call the frame id unwind method directly. Store
11747 the returned next frame's ID value in NEXT_FRAME. Note that there
11748 is a problem with the wrong unwind ID being called with the wrong
11749 unwind cache.
11750
ed363b1b
DJ
117512003-03-05 Daniel Jacobowitz <drow@mvista.com>
11752
11753 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11754
fe1f4a5e
DJ
117552003-03-05 James Ingham <jingham@apple.com>
11756 Daniel Jacobowitz <drow@mvista.com>
11757
11758 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11759 (auto_cp_abi): New variable.
11760 (current_cp_abi, num_cp_abis): Make static.
11761 (CP_ABI_MAX): Define.
11762 (cp_abis): Turn into an array.
11763 (value_virtual_fn_field): Fix formatting.
11764 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11765 takes a pointer.
11766 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11767 (list_cp_abis, _initialize_cp_abi): New functions.
11768 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11769 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11770 switch_to_cp_abi. Update prototype for register_cp_abi.
11771 * Makefile.in (cp-abi.o): Update dependencies.
11772 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11773 instead of switch_to_cp_abi.
11774 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11775 register_cp_abi.
11776 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11777 register_cp_abi.
11778 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11779
e4adbba9
DJ
117802003-03-05 Daniel Jacobowitz <drow@mvista.com>
11781
11782 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11783 * dwarf2loc.c: Include "regcache.h".
11784 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11785 register_size.
11786 * Makefile.in (dwarf2loc.o): Update dependencies.
11787
91ccbfc1
TR
117882003-03-04 Theodore A. Roth <troth@openavr.org>
11789
11790 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11791 number of io registers reported by remote target is not a multiple of
11792 step.
11793
3d4e8fd2
DC
117942003-03-04 David Carlton <carlton@math.stanford.edu>
11795
11796 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11797 (lookup_symbol_aux_psymtabs): Update call to
11798 lookup_partial_symbol.
11799 (lookup_transparent_type, find_main_psymtab)
11800 (make_symbol_overload_list): Ditto.
11801
ed42d87b
KH
118022003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11803
11804 * MAINTAINERS (Write after approval): Update my email address.
11805
a0ed5532
AC
118062003-03-03 Andrew Cagney <cagney@redhat.com>
11807
11808 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11809 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11810 predicate. Replace MAX_REGISTER_RAW_SIZE.
11811 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11812 MAX_REGISTER_VIRTUAL_SIZE.
11813 * regcache.c (legacy_max_register_raw_size): New function.
11814 (legacy_max_register_virtual_size): New function.
11815 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11816 (MAX_REGISTER_RAW_SIZE): Define.
11817 (legacy_max_register_raw_size): Declare.
11818 (legacy_max_register_virtual_size): Declare.
11819 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11820 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11821 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11822 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11823 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11824 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11825 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11826 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11827 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11829 * vax-tdep.c (vax_gdbarch_init): Update.
11830 * v850-tdep.c (v850_gdbarch_init): Update.
11831 * sparc-tdep.c (sparc_gdbarch_init): Update.
11832 * sh-tdep.c (sh_gdbarch_init): Update.
11833 * s390-tdep.c (s390_gdbarch_init): Update.
11834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11835 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11836 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11837 * mips-tdep.c (mips_gdbarch_init): Update.
11838 * mcore-tdep.c (mcore_gdbarch_init): Update.
11839 * m68k-tdep.c (m68k_gdbarch_init): Update.
11840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11841 * ia64-tdep.c (ia64_gdbarch_init): Update.
11842 * i386-tdep.c (i386_gdbarch_init): Update.
11843 * hppa-tdep.c (hppa_gdbarch_init): Update.
11844 * h8300-tdep.c (h8300_gdbarch_init): Update.
11845 * frv-tdep.c (frv_gdbarch_init): Update.
11846 * cris-tdep.c (cris_gdbarch_init): Update.
11847 * avr-tdep.c (avr_gdbarch_init): Update.
11848 * arm-tdep.c (arm_gdbarch_init): Update.
11849 * alpha-tdep.c (alpha_gdbarch_init): Update.
11850 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11851 max_register_raw_size or max_register_virtual_size.
11852
8e437497
DC
118532003-03-03 David Carlton <carlton@math.stanford.edu>
11854
11855 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11856 SYMBOL_MATCHES_NAME, add comment.
11857 (SYMBOL_MATCHES_NATURAL_NAME): New.
11858 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11859 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11860 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11861 * symtab.c (lookup_partial_symbol): Use
11862 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11863 unhelpful comment.
11864 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11865 SYMBOL_MATCHES_NAME.
11866 Fix for PR c++/33.
11867
25120b0d
DC
118682003-03-03 David Carlton <carlton@math.stanford.edu>
11869
11870 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11871 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11872 by regexp matching against SYMBOL_NATURAL_NAME.
11873
78a11fb4
DC
118742003-03-03 David Carlton <carlton@math.stanford.edu>
11875
11876 * linespec.c (find_method): Extract code into collect_methods.
11877 (collect_methods): New.
11878
645dd519
MK
118792003-03-02 Mark Kettenis <kettenis@gnu.org>
11880
b4700d91
MK
11881 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11882 get_frame_base.
11883
645dd519
MK
11884 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11885 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11886
0aa7e1aa
SC
118872003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11888
8ffd9b1b 11889 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11890 and not regnum when summing the size of all registers up to regnum.
11891
f30ee0bc
AC
118922003-03-01 Andrew Cagney <cagney@redhat.com>
11893
11894 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11895 FRAME_INIT_SAVED_REGS.
11896 * gdbarch.h, gdbarch.c: Regenerate.
11897 * stack.c (frame_info): Update.
11898 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11899 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11900 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11901 * ns32k-tdep.c (ns32k_pop_frame): Update.
11902 * mips-tdep.c (mips_pop_frame): Update.
11903 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11904 * ia64-tdep.c (ia64_frame_chain): Update.
11905 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11906 (ia64_frameless_function_invocation): Update.
11907 (ia64_init_extra_frame_info): Update.
11908 (ia64_pop_frame_regular): Update.
11909 * frame.h (struct frame_info): Update comment.
11910 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11911 * frame.c (frame_saved_regs_register_unwind): Update.
11912 (frame_saved_regs_register_unwind): Update.
11913 (deprecated_generic_get_saved_register): Update.
11914 * cris-tdep.c: Update comment.
11915 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11916 Rename macro.
11917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11918 * x86-64-tdep.c (x86_64_init_abi): Update.
11919 * vax-tdep.c (vax_gdbarch_init): Update.
11920 * v850-tdep.c (v850_gdbarch_init): Update.
11921 * sparc-tdep.c (sparc_gdbarch_init): Update.
11922 * sh-tdep.c (sh_gdbarch_init): Update.
11923 * s390-tdep.c (s390_gdbarch_init): Update.
11924 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11925 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11926 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11927 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11928 * mips-tdep.c (mips_gdbarch_init): Update.
11929 * mcore-tdep.c (mcore_gdbarch_init): Update.
11930 * m68k-tdep.c (m68k_gdbarch_init): Update.
11931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11932 * ia64-tdep.c (ia64_gdbarch_init): Update.
11933 * i386-tdep.c (i386_gdbarch_init): Update.
11934 * frv-tdep.c (frv_gdbarch_init): Update.
11935 * avr-tdep.c (avr_gdbarch_init): Update.
11936 * arm-tdep.c (arm_gdbarch_init): Update.
11937 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11938
42fa7c0f
AC
119392003-03-01 Andrew Cagney <cagney@redhat.com>
11940
11941 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11942 option enum and switch. When no windows, set the interpreter to
11943 INTERP_CONSOLE.
8ffd9b1b 11944
49c7e338
AC
119452003-03-01 Andrew Cagney <cagney@redhat.com>
11946
11947 * main.c (captured_main): Replace magic option characters with an
11948 enum.
11949
e9582e71
AC
119502003-03-01 Andrew Cagney <cagney@redhat.com>
11951
11952 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11953 INIT_EXTRA_FRAME_INFO.
11954 * gdbarch.h, gdbarch.c: Regenerate.
11955 * arm-tdep.c: Update comments.
11956 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11957 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11958 * frame.h, avr-tdep.c: Ditto.
11959 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11960 (create_new_frame, legacy_get_prev_frame): Ditto.
11961 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11962 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11964 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11965 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11966 * v850-tdep.c (v850_gdbarch_init): Ditto.
11967 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11968 * sh-tdep.c (sh_gdbarch_init): Ditto.
11969 * s390-tdep.c (s390_gdbarch_init): Ditto.
11970 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11971 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11972 * mips-tdep.c (mips_gdbarch_init): Ditto.
11973 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11975 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11976 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11977 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11978 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11979 * frv-tdep.c (frv_gdbarch_init): Ditto.
11980 * cris-tdep.c (cris_gdbarch_init): Ditto.
11981 * avr-tdep.c (avr_gdbarch_init): Ditto.
11982 * arm-tdep.c (arm_gdbarch_init): Ditto.
11983 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11984 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11985
35cac7cf
AC
119862003-03-01 Andrew Cagney <cagney@redhat.com>
11987
11988 * gdbarch.sh (register_type): New function with predicate.
11989 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11990 * gdbarch.h, gdbarch.c: Re-generate.
11991 * arch-utils.c (generic_register_byte): Use generic_register_size.
11992 (generic_register_size): When available, use
11993 gdbarch_register_type.
11994 * regcache.c (init_regcache_descr): When available, initialize the
11995 register type array using gdbarch_register_type. If the
11996 architecture supplies gdbarch_register_type, do not use the legacy
11997 regcache layout.
11998 * d10v-tdep.c (d10v_register_type): Replace
11999 d10v_register_virtual_type.
12000 (d10v_gdbarch_init): Set register_type instead of
12001 register_virtual_type.
12002
7b83296f
AC
120032003-03-01 Andrew Cagney <cagney@redhat.com>
12004
12005 * Makefile.in (ax-gdb.o): Update dependencies.
12006 * ax-gdb.c: Include "regcache.h".
12007 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12008 * findvar.c (value_of_register): Ditto.
12009 * infcmd.c (default_print_registers_info): Ditto.
12010
eadc1c87
MK
120112003-03-01 Mark Kettenis <kettenis@gnu.org>
12012
12013 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12014 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12015
14143612
MK
120162003-03-01 Mark Kettenis <kettenis@gnu.org>
12017
12018 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12019 of STREQ.
12020
a55cc764
DJ
120212003-02-28 Daniel Jacobowitz <drow@mvista.com>
12022
12023 * Makefile.in (dwarf2loc.o): Update dependencies.
12024 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12025 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12026 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12027 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12028 (locexpr_tracepoint_var_ref): New function.
12029 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12030
08a617da
AC
120312003-02-28 Andrew Cagney <cagney@redhat.com>
12032
12033 * regcache.c (register_size): New function.
12034 * regcache.h (register_size): Declare
12035 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12036 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12037
4224873a
DC
120382003-02-28 David Carlton <carlton@math.stanford.edu>
12039
12040 * linespec.c (decode_compound): Extract code into find_method.
12041 (find_method): New.
12042
ccdc5d7f
JB
120432003-02-28 J. Brobecker <brobecker@gnat.com>
12044
12045 * Makefile.in: Add rules to build and link in observer.o.
12046
974e8ced
JB
120472003-02-27 J. Brobecker <brobecker@gnat.com>
12048
12049 * observer.c: Minor comments edits.
12050
7a28f973
JB
120512003-02-27 J. Brobecker <brobecker@gnat.com>
12052
12053 * observer.h, observer.c: New file.
12054
27cddce2
AC
120552003-02-27 Andrew Cagney <cagney@redhat.com>
12056
12057 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12058
b94a41a1
SC
120592003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12060
12061 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12062 (M6812_OP_STS_EXT): Likewise.
12063 (m6811_prologue): Use the above to recognize prologue.
12064 (m6812_prologue): Likewise.
12065
c8be8951
DC
120662003-02-27 David Carlton <carlton@math.stanford.edu>
12067
12068 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12069 SYMBOL_PRINT_NAME.
12070 (compare_psymbols): Ditto.
12071 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12072
d05bb1fc
MS
120732003-02-27 Michael Snyder <msnyder@redhat.com>
12074
4e845cd3
MS
12075 * f-lang.c (build_fortran_types): New function.
12076 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12077 * doublest.c (extract_floating): Fix warning text.
12078
f3824013
AC
120792003-02-27 Andrew Cagney <cagney@redhat.com>
12080
12081 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12082 predicate. Replaces PUSH_DUMMY_FRAME.
12083 * gdbarch.h, gdbarch.c: Regnerate.
12084 * valops.c (hand_function_call): Update. Call
12085 generic_push_dummy_frame directly.
12086 * vax-tdep.c (vax_gdbarch_init): Update.
12087 * sparc-tdep.c (sparc_gdbarch_init): Update.
12088 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12089 * m68k-tdep.c (m68k_gdbarch_init): Update.
12090 * hppa-tdep.c (hppa_gdbarch_init): Update.
12091 * alpha-tdep.c (alpha_gdbarch_init): Update.
12092 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12093 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12094 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12096 push_dummy_frame to generic_push_dummy_frame.
12097 * v850-tdep.c (v850_gdbarch_init): Ditto.
12098 * sh-tdep.c (sh_gdbarch_init): Ditto.
12099 * s390-tdep.c (s390_gdbarch_init): Ditto.
12100 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12102 * mips-tdep.c (mips_gdbarch_init): Ditto.
12103 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12106 * i386-tdep.c (i386_gdbarch_init): Ditto.
12107 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12108 * frv-tdep.c (frv_gdbarch_init): Ditto.
12109 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12110 * cris-tdep.c (cris_gdbarch_init): Ditto.
12111 * avr-tdep.c (avr_gdbarch_init): Ditto.
12112 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12113
ad188201
KB
121142003-02-26 Kevin Buettner <kevinb@redhat.com>
12115
12116 * mips-tdep.c (show_mips_abi): New function.
12117 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12118 command ``show mips abi''.
12119
6b37567a 121202003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12121
6b37567a 12122 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12123 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12124 more sline entries have been seen for the function.
12125
d3e0a5bf
MC
121262003-02-26 Michael Chastain <mec@shout.net>
12127
12128 * configure: Regenerate with autoconf 000227.
12129
18972eea
MC
121302003-02-26 Michael Chastain <mec@shout.net>
12131
12132 Close PR build/660.
12133 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12134 for old libc5/glibc.
12135 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12136
0bbde931
KW
121372003-02-26 Kris Warkentin <kewarken@qnx.com>
12138
12139 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12140 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12141
27ca5dad
MC
121422003-02-26 Michael Chastain <mec@shout.net>
12143
12144 * configure.in: New variable HAVE_UINTPTR_T.
12145 * configure, config.in: Regenerated.
12146
6f88d630
DJ
121472003-02-26 Daniel Jacobowitz <drow@mvista.com>
12148
12149 Fix PR build/1097.
12150 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12151
b14185ce
AC
121522003-02-25 Andrew Cagney <cagney@redhat.com>
12153
12154 * frame.c (get_prev_frame): Add comment on check for
12155 inside_entry_func. Only check for inside_entry_file when not a
12156 dummy and not a sentinel. Check that the new frame is not inner
12157 to the old frame.
12158
ac2bd0a9
AC
121592003-02-25 Andrew Cagney <cagney@redhat.com>
12160
12161 * frame.c (frame_debug): New variable.
12162 (_initialize_frame): Add "set/show debug frame" command.
12163 (get_prev_frame): When frame_debug, print reason why unwind
12164 failed.
12165
b18a0fd2
MC
121662003-02-25 Michael Chastain <mec@shout.net>
12167
12168 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12169 to avoid uintptr_t definition problems.
12170
22abf04a
DC
121712003-02-25 David Carlton <carlton@math.stanford.edu>
12172
12173 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12174 (SYMBOL_LINKAGE_NAME): Ditto.
12175 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12176 SYMBOL_LINKAGE_NAME.
12177 (struct general_symbol_info): Expand comment.
12178 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12179 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12180 (SYMBOL_MATCHES_REGEXP): Ditto.
12181 * symtab.c (symbol_natural_name): New function.
12182 * objfiles.h: Replace all uses of SYMBOL_NAME by
12183 DEPRECATED_SYMBOL_NAME.
12184 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12185 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12186 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12187 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12188 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12189 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12190 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12191 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12192 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12193 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12194 * ada-exp.y: Ditto.
12195 * ada-exp.y: Update copyright.
12196 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12197 * cp-valprint.c: Ditto.
12198
1a5848f6
JJ
121992003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12200
12201 * infptrace.c (detach): Do not flag error if ptrace detach fails
12202 and errno is set to ESRCH.
12203
7343d46a
AC
122042003-02-24 Andrew Cagney <cagney@redhat.com>
12205
12206 * infptrace.c (udot_info): Change type of udot_off to long. Use
12207 paddr when printing udot_off's value.
12208
49fa1dc2
DC
122092003-02-24 David Carlton <carlton@math.stanford.edu>
12210
12211 * symtab.c (make_symbol_overload_list): Only read in partial
12212 symtabs containing a matching partial symbol.
12213
0fe19209
DC
122142003-02-24 David Carlton <carlton@math.stanford.edu>
12215
12216 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12217 do the comparison, not strcmp.
12218 * symfile.c (compare_psymbols): Ditto.
12219 * defs.h: Declare strcmp_iw_ordered.
12220 * utils.c (strcmp_iw_ordered): New function.
12221
8e3ee7b5
JB
122222003-02-24 Jim Blandy <jimb@redhat.com>
12223
12224 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12225 support, shared libs): Remove my name from here, to better reflect
12226 reality.
12227
7df1a324
KW
122282003-02-24 Kris Warkentin <kewarken@qnx.com>
12229
12230 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12231 (target_ops): Add to_have_continuable_watchpoint.
12232 * target.c (update_current_target): Add INHERIT line for
12233 to_have_continuable_watchpoint.
12234 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12235 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12236 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12237 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12238
d1c76907
EZ
122392003-02-24 Elena Zannoni <ezannoni@redhat.com>
12240
12241 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12242 maintainership.
12243
2610b0bf
KW
122442003-02-24 Kris Warkentin <kewarken@qnx.com>
12245
f46169db
KW
12246 * solib.c (solib_open): Call target defined search function after
12247 failing with solib-search-path.
12248 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12249 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12250
9a3c34fe
KW
122512003-02-24 Kris Warkentin <kewarken@qnx.com>
12252
f46169db 12253 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12254
2417dd25
SC
122552003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12256
12257 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12258
b631436b
SC
122592003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12260
12261 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12262 (m68hc11_add_reggroups): New function.
12263 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12264 (m68hc11_gdbarch_init): Install the reggroups.
12265 (_initialize_m68hc11_tdep): Initialize them.
12266
0aa8c1e4
JW
122672003-02-21 James E Wilson <wilson@tuliptree.org>
12268
12269 * MAINTAINERS: Update my email address.
12270
50ceaba5
DC
122712003-02-21 David Carlton <carlton@math.stanford.edu>
12272
12273 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12274
4c2df51b
DJ
122752003-02-21 Daniel Jacobowitz <drow@mvista.com>
12276
12277 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12278 * symtab.h: Add opaque declarations of struct axs_value and
12279 struct agent_expr.
12280 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12281 (struct location_funcs): New type.
12282 (struct symbol): Add "loc" to aux_value.
12283 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12284 * dwarf2read.c: Include "dwarf2expr.h".
12285 (dwarf2_symbol_mark_computed): New function.
12286 (read_func_scope): Use it.
12287 (var_decode_location): New function.
12288 (new_symbol): Use it.
12289 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12290
12291 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12292 (dwarf2expr_h, dwarf2loc_h): New variables.
12293 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12294 (dwarf2expr.o, dwarf2loc.o): New rules.
12295 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12296 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12297 LOC_COMPUTED_ARG.
12298 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12299 * m2-exp.y (yylex): Likewise.
12300 * printcmd.c (address_info, print_frame_args): Likewise.
12301 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12302 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12303 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12304 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12305 * symtab.c (lookup_block_symbol): Likewise.
12306
5784d15e
AF
123072003-02-20 Adam Fedor <fedor@gnu.org>
12308
12309 * symtab.h: Remove objc_specific struct
12310 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12311 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12312 Have language_objc use cplus_specific struct.
12313
d4cad8db
TT
123142003-02-20 Tom Tromey <tromey@redhat.com>
12315
12316 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12317 TYPE_NAME, when printing a String value. PR java/1075.
12318
2f9a90b4
AF
123192003-02-20 Adam Fedor <fedor@gnu.org>
12320
d38074a8 12321 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12322 * objc-lang.c (find_methods): Make static.
2f9a90b4 12323
6f17862b
CF
123242003-02-20 Christopher Faylor <cgf@redhat.com>
12325
12326 * win32-nat.c (get_image_name): Check return value from
12327 ReadProcessMemory.
12328 (child_xfer_memory): Ditto.
12329
715d1656
AO
123302003-02-20 Alexandre Oliva <aoliva@redhat.com>
12331
12332 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12333 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12334 '${exec_prefix}' (in addition to the expansion thereof) as
12335 relocatable.
12336 * configure: Rebuilt.
12337
b1262a02
DC
123382003-02-20 David Carlton <carlton@math.stanford.edu>
12339
12340 * symtab.c (search_symbols): Revert the search_symbols part of my
12341 2002-12-23 patch. Add comment.
12342
7134143f
DJ
123432002-02-20 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12346 * dbxread.c (elfstab_build_psymtabs): Don't call
12347 install_minimal_symbols.
12348 (stabsect_build_psymtabs): Likewise.
12349 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12350 earlier.
12351 * somread.c (som_symfile_read): Call install_minimal_symbols
12352 and do_cleanups earlier.
12353 * nlmread.c (nlm_symfile_read): Likewise.
12354 * mdebugread.c (elfmdebug_build_psymtabs): Call
12355 install_minimal_symbols and make appropriate cleanups.
12356
cf466558
KB
123572003-02-20 Kevin Buettner <kevinb@redhat.com>
12358
12359 * solib.c (reload_shared_libraries): New function.
12360 (_initialize_solib): Add callbacks for ``set solib-search-path''
12361 and ``set solib-absolute-prefix''.
12362
de5ad195
DC
123632003-02-20 David Carlton <carlton@math.stanford.edu>
12364
12365 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12366 expand comment.
12367 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12368 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12369 * ada-typeprint.c (ada_typedef_print): Ditto.
12370 * ax-gdb.c (gen_var_ref): Ditto.
12371 * breakpoint.c (print_one_breakpoint): Ditto.
12372 * buildsym.c (finish_block): Ditto.
12373 * c-valprint.c (c_val_print): Ditto.
12374 * expprint.c (print_subexp): Ditto.
12375 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12376 * infcmd.c (jump_command): Ditto.
12377 * linespec.c (decode_line_2, decode_compound): Ditto.
12378 * maint.c (maintenance_translate_address): Ditto.
12379 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12380 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12381 Ditto.
8ffd9b1b
AJ
12382 * p-valprint.c (pascal_val_print): Ditto.
12383 * stabsread.c (define_symbol): Ditto.
de5ad195 12384 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12385 (print_frame_arg_vars, return_command): Ditto.
12386 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12387 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12388 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12389 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12390 (rbreak_command): Ditto.
12391 * tracepoint.c (tracepoints_info): Ditto.
12392 * typeprint.c (typedef_print): Ditto.
12393 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12394 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12395 * ada-typeprint.c: Update Copyright.
12396 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12397 * tracepoint.c, cli/cli-cmds.c: Ditto.
12398
f796e4be
KB
123992003-02-20 Kevin Buettner <kevinb@redhat.com>
12400
12401 * frame.c (generic_unwind_get_saved_register): Make non-static.
12402 * frame.h (generic_unwind_get_saved_register): Declare.
12403 * mips-tdep.c (read_next_frame_reg): Fetch register from
12404 current regcache when frame is NULL.
12405 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12406 that must be NULL.
12407 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12408 instead of frame_register_unwind().
12409
836cc9f4
AC
124102003-02-20 Andrew Cagney <ac131313@redhat.com>
12411
12412 * remote-sim.c (gdbsim_insert_breakpoint)
12413 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12414 code.
12415
501eef12
AC
124162003-02-20 Andrew Cagney <ac131313@redhat.com>
12417
12418 * remote.c (_initialize_remote): Add commands "set/show remote
12419 hardware-watchpoint-limit" and "set/show remote
12420 hardware-breakpoint-limit".
12421 (remote_hw_watchpoint_limit): Initialize to -1.
12422 (remote_hw_breakpoint_limit): Ditto.
12423 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12424
1b6bc7e0
CF
124252003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12426
12427 * coff-pe-read.c: New file - support reading of minimal symbols from a
12428 portable executable using the export table.
12429 * coff-pe-read.h: New file.
12430 * coffread.c: Include coff-pe-read.h.
12431 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12432 debugging symbols found.
12433 * Makefile.in (SFILES): Add coff-pe-read.o.
12434 (coff_pe_read_h): Define.
12435 (COMMON_OBS): Add coff-pe-read.o.
12436 (coffread.o): Add coff_pe_read_h dependency.
12437 (coff-pe-read.o): New target.
12438
fe898f56
DC
124392003-02-19 David Carlton <carlton@math.stanford.edu>
12440
12441 * Makefile.in (SFILES): Add block.c.
12442 (block_h): New.
12443 (COMMON_OBS): Add block.o.
12444 (block.o): New.
12445 (x86-64-tdep.o): Add $(block_h).
12446 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12447 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12448 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12449 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12450 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12451 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12452 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12453 * value.h: Add opaque declaration for struct block.
12454 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12455 * ada-lang.h: Ditto.
12456 * x86-64-tdep.c: #include "block.h"
12457 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12458 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12459 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12460 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12461 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12462 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12463 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12464 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12465 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12466 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12467 * symtab.c (block_function): Ditto.
12468 (contained_in): Ditto.
12469 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12470 block.h. Add opaque declaration for struct block.
12471 * symtab.h: Move block_function and contained_in declarations to
12472 block.h. Add opaque declarations for struct block, struct
12473 blockvector.
12474 (struct block): Move to block.h.
12475 (struct blockvector): Ditto.
12476 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12477 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12478 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12479 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12480 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12481 Ditto.
12482 * block.c: New file.
12483 * block.h: New file.
12484
173345b5
TR
124852003-02-19 Theodore A. Roth <troth@openavr.org>
12486
12487 * avr-tdep.c (avr_extract_return_value): Remove function.
12488 (avr_store_return_value): Remove function.
12489 (avr_extract_struct_value_address): Remove function.
12490 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12491
338ef23d
AC
124922003-02-19 Andrew Cagney <ac131313@redhat.com>
12493
12494 * rs6000-tdep.c: Include "gdb_assert.h".
12495 (registers_e500): Add "acc" and "spefscr".
12496 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12497 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12498 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12499 really is "r0".
12500 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12501
5412f5f3
KS
125022003-02-18 Keith Seitz <keiths@redhat.com>
12503
12504 * Makefile.in: Add gdbtk-interps.c.
12505
881324eb
KB
125062003-02-18 Kevin Buettner <kevinb@redhat.com>
12507
12508 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12509 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12510
6a2f5abf
AC
125112003-02-18 Andrew Cagney <cagney@redhat.com>
12512
12513 * symtab.h (struct objfile): Add opaque declaration.
12514
54c7009d
EZ
125152003-02-18 Elena Zannoni <ezannoni@redhat.com>
12516
12517 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12518 * dbxread.c (process_one_symbol): Use last_function_start rather
12519 than function_start_offset to find the real beginning of the
12520 current function. The latter is just the text section offset on
12521 some systems, the former is always the real function start.
54c7009d 12522
7ee6d7eb
AC
125232003-02-17 Andrew Cagney <cagney@redhat.com>
12524
12525 * configure.in: Revert ${target} != ${host}.
12526
2846da9b
AC
125272003-02-17 Andrew Cagney <ac131313@redhat.com>
12528
12529 * configure.in (Makefile): Use the test ${target} != ${host},
12530 instead of the absence of the "nm.h" file, to determine of the
12531 configuration non-native.
12532 * configure: Regenerate.
8ffd9b1b 12533
3b27aeea
EZ
125342003-02-14 Elena Zannoni <ezannoni@redhat.com>
12535
fbe586ae 12536 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12537
12538 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12539 conditionalize tui_active test.
12540 (lookup_cmd_1): Ditto.
12541
b0b1c2c0
MK
125422003-02-14 Mark Kettenis <kettenis@gnu.org>
12543
12544 * configure.in: Add check for _etext.
12545 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12546 available.
12547 * config.in, configure: regenerated.
12548
8f05cde5
DJ
125492003-02-14 Daniel Jacobowitz <drow@mvista.com>
12550
12551 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12552
021e7609
AC
125532003-02-14 Andrew Cagney <ac131313@redhat.com>
12554
12555 * main.c (tui_version): Delete variable.
12556 (captured_main): When --tui, set interpreter_p to "tui" instead of
12557 enabling tui_version.
12558 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12559 tui_version.
12560 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12561 * cli/cli-cmds.c (disassemble_command): Ditto.
12562 * defs.h (tui_version): Delete declaration.
12563 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12564 (tui-interp.o): Add rules.
12565 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12566
e325dcec
CF
125672003-02-14 Christopher Faylor <cgf@redhat.com>
12568
36ffb041 12569 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12570 just-loaded dll.
12571
c4f90d87
JM
125722003-02-12 Jason Molenda (jmolenda@apple.com)
12573
fbe586ae
RH
12574 * symmisc.c (print_objfile_statistics): Include information about
12575 the number of psymtabs and symtabs in each object file.
c4f90d87 12576
e46e5ccd
KS
125772003-02-13 Keith R Seitz <keiths@redhat.com>
12578
12579 * main.h (struct captured_main_args): Add interpreter_p.
12580 * main.c (captured_main): Initialize interpreter_p from context.
12581 * gdb.c (main): Set interpreter_p argument.
12582 * Makefile.in (gdb.o): Add dependency for interps.h.
12583
fe97fe9c
AC
125842003-02-12 Andrew Cagney <ac131313@redhat.com>
12585
12586 * event-top.c (cli_command_loop): Delete declaration.
12587 (_initialize_event_loop): Delete function setting event_loop_hook.
12588 * event-top.h (cli_command_loop): Declare. Update copyright.
12589 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12590 * interps.c (current_interp_command_loop): When event_loop_p, call
12591 cli_command_loop.
12592
1cdac4ef
AC
125932003-02-12 Andrew Cagney <ac131313@redhat.com>
12594
12595 * interps.h (interp_command_loop_ftype): Change return type to
12596 void.
12597
48037ead
ML
125982003-02-12 Michal Ludvig <mludvig@suse.cz>
12599
12600 * x86-64-tdep.c (x86_64_extract_return_value)
12601 (x86_64_store_return_value): Use regcache instead of regbuf.
12602 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12603 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12604
033afc63
AC
126052003-02-11 Andrew Cagney <ac131313@redhat.com>
12606
12607 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12608 * aclocal.m4: Regenerate.
12609 * configure: Regenerate.
12610
12611 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12612 TCL_LD_SEARCH_FLAGS.
12613
40d02bca
ML
126142003-02-10 Michal Ludvig <mludvig@suse.cz>
12615
12616 * dwarf2cfi.c: Reindented.
12617
11308a41
AC
126182003-02-09 Andrew Cagney <ac131313@redhat.com>
12619
12620 * interps.c (clear_interpreter_hooks): Convert function definition
12621 to ISO C.
12622
e1c1c0f6
DC
126232003-02-07 David Carlton <carlton@math.stanford.edu>
12624
12625 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12626
ab5d3da6
KB
126272003-02-07 Kevin Buettner <kevinb@redhat.com>
12628
12629 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12630 (struct type): ...to here.
12631 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12632 field.
12633 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12634 (replace_type): Set length on all type variants for a given type.
12635
b8a92b82
AC
126362003-02-07 Andrew Cagney <ac131313@redhat.com>
12637
12638 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12639 <sys/stat.h>.
12640 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12641
5cb316ef
AC
126422003-02-06 Andrew Cagney <ac131313@redhat.com>
12643
2555fe1a
AC
12644 * Makefile.in (symm-nat.o): Update dependencies.
12645 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12646 (lynx-nat.o, ia64-linux-nat.): Ditto.
12647 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12648 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12649 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12650
44270758
AC
12651 * Makefile.in (inflow_h): Define.
12652 (procfs.o, inflow.o, procfs.o): Update dependencies.
12653 * inftarg.c (child_stop): Delete extern declaration of
12654 inferior_process_group. Include "inflow.h".
12655 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12656 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12657 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12658 (our_process_group, inferior_process_group): Extern declarations.
12659
df8f7274
AC
12660 * procfs.c: Include "gdb_assert.h".
12661
5cb316ef
AC
12662 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12663 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12664 * jv-typeprint.c (java_type_print_base): Ditto.
12665 * typeprint.c (typedef_print): Eliminate STREQ.
12666 * cli/cli-script.c (define_command, define_command): Ditto.
12667 * main.c (captured_main): Ditto.
12668 * values.c (lookup_internalvar): Ditto.
12669 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12670 within `if' conditional.
12671 * linespec.c (decode_line_2): Ditto.
12672 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12673 (bfd_openw_with_cleanup): Ditto.
12674
2a28ccea
MK
126752003-02-07 Mark Kettenis <kettenis@gnu.org>
12676
12677 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12678 legacy_extract_return_value and store_return_value to
12679 legacy_return_value.
12680
786b8124
CF
126812003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12682
12683 * win32-nat.c (get_relocated_section_addrs): New function. Find
12684 section load addresses for symbol handling in relocated DLLs.
12685 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12686
b871e4ec
FF
126872003-02-05 Fred Fish <fnf@intrinsity.com>
12688
12689 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12690 '=' and '!='.
12691 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12692 with '&' and '=='.
12693 (angel_RDI_info): Ditto.
12694 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12695 with '&' and '!='.
12696 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12697
4389a95a 126982003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12699 Keith Seitz <keiths@redhat.com>
12700 Elena Zannoni <ezannoni@redhat.com>
12701 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12702
12703 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12704 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12705 (SUBDIR_MI_OBS): Add "mi-interp.o".
12706 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12707 (SFILES): Add "interps.c".
12708 (COMMON_OBS): Add "interps.o".
12709 (interps_h, mi_main_h): Define.
12710 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12711 (mi-main.o, main.o, event-top.o): Update dependencies.
12712 * cli/cli-interp.c: New file.
12713 * interps.h, interps.c: New files.
12714 * top.c: (gdb_init): Don't install the default interpreter, handed
12715 by captured_main.
12716 * main.c: Include "interps.h".
12717 (interpreter_p): Note that it should malloc'ed.
12718 (captured_command_loop): Call current_interp_command_loop.
12719 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12720 xfree and xstrdup when updating interpreter_p. Install the
12721 default interpreter. Add hack to stop mi1's copyright notice
12722 being encoded.
12723 * event-top.h (gdb_setup_readline): Declare.
12724 (gdb_disable_readline): Declare.
12725 * event-top.c: Include "interps.h".
12726 (display_gdb_prompt): Call current_interp_display_prompt_p.
12727 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12728 gdb_stdlog, and gdb_stdtarg.
12729 (_initialize_event_loop): Don't call gdb_setup_readline.
12730 * cli-out.c (cli_out_set_stream): New function.
12731 * cli-out.h (cli_out_set_stream): Declare.
12732
ff3b5810
MK
127332003-02-06 Mark Kettenis <kettenis@gnu.org>
12734
12735 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12736 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12737 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12738 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12739 config/i386/i386v42mp.mt: Removed.
12740
5b729aa5
MK
127412003-02-05 Mark Kettenis <kettenis@gnu.org>
12742
12743 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12744 GDB_OSABI_SOLARIS.
12745
8cc15142
MC
127462003-02-05 Michael Chastain <mec@shout.net>
12747
12748 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12749 2.12.1 and earlier versions.
12750
5aa5d4b9
AC
127512003-02-05 Andrew Cagney <ac131313@redhat.com>
12752
12753 Remove orphaned hosts, targets and files.
12754 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12755 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12756 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12757 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12758 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12759 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12760 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12761 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12762 * config/sparc/tm-sp64sim.h: Delete.
12763 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12764 hosts.
12765 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12766 mips*-dec-mach3* targets.
12767
b68767c1
MC
127682003-02-04 Michael Chastain <mec@shout.net>
12769
12770 * NEWS: Fix typo: sepcifying -> specifying.
12771
5ae7ca1d
MC
127722003-02-04 Michael Chastain <mec@shout.net>
12773
12774 * dwarfread.c: Add documentation on the state of dwarf-1,
12775 looking towards obsoletion.
12776
d08a4280
MC
127772003-02-03 Michael Chastain <mec@shout.net>
12778
12779 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12780 gdb/testsuite/gdb.c++/pr-1023.exp.
12781
e9be73e4
AC
127822003-02-04 Andrew Cagney <ac131313@redhat.com>
12783
12784 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12785 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12786
12787 * utils.c (init_page_info): Delete reference to MPW in comments.
12788 * main.c (captured_main): Delete #ifdef MPW.
12789
05d57f6f
AC
127902003-02-04 Andrew Cagney <ac131313@redhat.com>
12791
8ffd9b1b 12792 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12793 * monitor.c (monitor_expect): Obsolete reference to m32r.
12794 * configure.tgt: Mark m32r-*-elf* as obsolete.
12795 * MAINTAINERS: Mark m32k as obsolete.
12796 * m32r-rom.c: Obsolete file.
12797 * config/m32r/m32r.mt: Obsolete file.
12798 * config/m32r/tm-m32r.h: Obsolete file.
12799 * m32r-stub.c: Obsolete file.
12800 * m32r-tdep.c: Obsolete file.
12801
8b0e5691
AC
128022003-02-04 Andrew Cagney <ac131313@redhat.com>
12803
12804 * NEWS: Mention that the z8k-zilog-none is obsolete.
12805 * MAINTAINERS: Mark z8k as obsolete.
12806 * configure.tgt: Obsolete the z8k-*-coff* target.
12807 * config/z8k/z8k.mt: Obsolete file.
12808 * config/z8k/tm-z8k.h: Obsolete file.
12809 * z8k-tdep.c: Obsolete file.
12810
67f16606
AC
128112003-02-04 Andrew Cagney <ac131313@redhat.com>
12812
12813 * NEWS: Mention that the mn10200-elf is obsolete.
12814 * configure.tgt: Obsolete mn10200-*-* target.
12815 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12816 mention that the mn10200 is obsolete.
12817 * breakpoint.h: Ditto.
12818 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12819 * config/mn10200/mn10200.mt: Obsolete file.
12820 * config/mn10200/tm-mn10200.h: Obsolete file.
12821 * mn10200-tdep.c: Obsolete file.
12822
fd2299bd
AC
128232003-02-04 Andrew Cagney <ac131313@redhat.com>
12824
12825 * MAINTAINERS: Mark h8500 as obsolete.
12826 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12827 * findvar.c (value_from_register): Ditto.
12828 * h8500-tdep.c: Mark file as obsolete.
12829 * config/h8500/h8500.mt: Ditto.
12830 * config/h8500/tm-h8500.h: Ditto.
12831 * NEWS: Mention that h8500 is obsolete.
12832
eb9a305d
DC
128332003-02-04 David Carlton <carlton@math.stanford.edu>
12834
12835 * objfiles.c (allocate_objfile): Always set name. Add comment at
12836 start of function.
12837 * jv-lang.c (get_dynamics_objfile): Add comment.
12838
406fc7fb
DC
128392003-02-04 David Carlton <carlton@math.stanford.edu>
12840
12841 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12842 * printcmd.c (build_address_symbolic): Replace uses of
12843 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12844 SYMBOL_NAME, and asm_demangle.
12845 Update copyright.
12846
93d91629
DC
128472003-02-04 David Carlton <carlton@math.stanford.edu>
12848
12849 * linespec.c (decode_compound): Extract code into
12850 lookup_prefix_sym.
12851 (lookup_prefix_sym): New function.
12852
1c5cb38e
DC
128532003-02-04 David Carlton <carlton@math.stanford.edu>
12854
12855 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12856 FLOAT_COERCION_BADNESS.
12857 * gdbtypes.c (rank_one_type): Replace all uses of
12858 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12859
0cf824c9
JB
128602003-02-04 Jim Blandy <jimb@redhat.com>
12861
12862 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12863 section, let dwarf_macinfo_section point to it, not
12864 dwarf_loc_section.
12865
a2d356b0
DJ
128662003-02-04 Daniel Jacobowitz <drow@mvista.com>
12867
12868 Pointed out by Anton Blanchard <anton@samba.org>.
12869 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12870 (ppc_linux_at_sigtramp_return_path): Use it.
12871
2de7ced7
DJ
128722003-02-04 Daniel Jacobowitz <drow@mvista.com>
12873
12874 * defs.h (streq): Add prototype.
12875 * utils.c (streq): New function.
12876
12877 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12878 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12879 * mdebugread.c (new_symbol): Likewise.
12880 * stabsread.c (define_symbol): Likewise.
12881 * coffread.c (process_coff_symbol): Likewise.
12882 * dwarfread.c (new_symbol): Likewise.
12883
12884 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12885 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12886 here.
12887 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12888 SYMBOL_INIT_DEMANGLED_NAME.
12889 * objfiles.c: Include "hashtab.h".
12890 (allocate_objfile): Call htab_set_functions_ex for the
12891 demangled_names_hash.
12892 (free_objfile): Call htab_delete for the demangled_names_hash.
12893 * objfiles.h (struct htab): Add declaration.
12894 (struct objfile): Add demangled_names_hash.
12895 * symfile.c: Include "hashtab.h".
12896 (reread_symbols): Call htab_delete for the demangled_names_hash.
12897 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12898 SYMBOL_NAME in the bcache.
12899 * symtab.c: Include "hashtab.h". Update comments.
12900 (create_demangled_names_hash, symbol_set_names): New functions.
12901 (symbol_find_demangled_name): New function, broken out from
12902 symbol_init_demangled_names.
12903 (symbol_init_demangled_names): Use it.
12904 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12905 (SYMBOL_SET_NAMES): New macro.
12906 (symbol_set_names): Add prototype.
12907
15831452
JB
129082003-02-03 Jim Blandy <jimb@redhat.com>
12909
12910 Use a single, consistent representation for an empty minimal
12911 symbol table in an objfile.
12912 * objfiles.c (terminate_minimal_symbol_table): New function.
12913 (allocate_objfile): Call it.
12914 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12915 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12916 non-NULL.
15831452
JB
12917 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12918 objfile has minimal symbols, compare minimal_symbol_count to zero,
12919 instead of comparing msymbols with NULL.
12920 * objfiles.c (have_minimal_symbols): Same.
12921 * solib-sunos.c (solib_add_common_symbols): Call
12922 terminate_minimal_symbol_table.
12923 * symfile.c (reread_symbols): Same.
8ffd9b1b 12924
ffc65945
KB
129252003-02-03 Kevin Buettner <kevinb@redhat.com>
12926
12927 * s390-tdep.c (s390_address_class_type_flags)
12928 (s390_address_class_type_flags_to_name)
12929 (s390_address_class_name_to_type_flags): New functions.
12930 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12931 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12932
f211c6d4
MS
129332003-02-03 Michael Snyder <msnyder@redhat.com>
12934
12935 * arm-tdep.c: Fix spell-o in comment.
12936
659b0389
ML
129372003-02-03 Michal Ludvig <mludvig@suse.cz>
12938
12939 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12940 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12941 error messages to contain BFD filename.
659b0389 12942
3b31d625
EZ
129432003-02-02 Elena Zannoni <ezannoni@redhat.com>
12944
997b089a 12945 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12946 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12947 (do_mixed_source_and_assembly): Use
12948 make_cleanup_ui_out_tuple_begin_end and
12949 make_cleanup_ui_out_tuple_begin_end.
12950 (do_mixed_source_and_assembly): Ditto.
12951 * thread.c (do_captured_list_thread_ids): Ditto.
12952 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12953 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12954 ui_out_tuple_end): Delete prototypes.
12955 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12956 ui_out_list_end, ui_out_tuple_end): Delete.
12957
12958 From Kevin Buettner <kevinb@redhat.com>:
12959 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12960 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12961 (do_cleanup_table_end): New functions.
12962 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12963 Use cleanups to invoke_ui_out_tuple_end().
12964 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12965 * cli/cli-setshow.c (cmd_show_list): Use
12966 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12967
5b181d62
AC
129682003-02-02 Andrew Cagney <ac131313@redhat.com>
12969
12970 * frame.c (frame_unwind_register): New function.
12971 (frame_unwind_unsigned_register): Use.
12972 (frame_unwind_signed_register): Use.
12973 (frame_read_register): New function.
12974 * frame.h (frame_unwind_register): Declare.
12975 (frame_read_register): Declare.
12976
12977 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12978 and frame_unwind_register instead of read_memory, write_register
12979 and deprecated_write_register_bytes.
12980
5f601589
AC
129812003-02-02 Andrew Cagney <ac131313@redhat.com>
12982
12983 * frame.h: Note that namelen can be negative.
12984 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12985 NAME's length.
12986
12987 * NEWS: Mention that the d10v's `regs' command is deprecated.
12988 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12989 (d10v_print_registers_info): New function.
12990 (show_regs): Call d10v_print_registers_info.
12991 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12992
6a3fe0a4
MK
129932003-02-02 Mark Kettenis <kettenis@gnu.org>
12994
12995 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12996 lost in the previous patch.
12997
075559bc
AC
129982003-02-01 Andrew Cagney <ac131313@redhat.com>
12999
13000 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13001 * stack.c (print_frame_info_base): Output complete FRAME tuple
13002 for synthesized frames.
075559bc 13003
6789195b
AC
130042003-02-02 Andrew Cagney <ac131313@redhat.com>
13005
13006 * mips-nat.c (zerobuf): Delete.
13007 (fetch_inferior_registers): Alloc local zerobuf.
13008 (fetch_core_registers): Alloc local zerobuf.
13009 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13010 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13011 * thread-db.c (thread_db_store_registers): Ditto.
13012 * sh-tdep.c (sh_do_register): Ditto.
13013 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13014 * remote-sim.c (gdbsim_store_register): Ditto.
13015 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13016 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13017 * monitor.c (monitor_supply_register): Ditto.
13018 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13019 * mips-nat.c (fetch_inferior_registers): Ditto.
13020 * m68klinux-nat.c (fetch_register): Ditto.
13021 * lynx-nat.c (fetch_inferior_registers): Ditto.
13022 (fetch_inferior_registers): Ditto.
13023 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13024 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13025 (hpux_thread_store_registers): Ditto.
13026 * hppah-nat.c (fetch_register): Ditto.
13027 * hppab-nat.c (fetch_register): Ditto.
13028 * hppa-tdep.c (pa_register_look_aside): Ditto.
13029 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13030 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13031
e669114a
AC
130322003-02-01 Andrew Cagney <ac131313@redhat.com>
13033
13034 * gdbarch.sh: Explictly specify all method levels. When a
13035 variable with an empty level, provide a non-multi-arch default.
13036 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13037 * gdbarch.h: Re-generate.
13038 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13039 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13040
9a043c1d
AC
130412003-02-01 Andrew Cagney <ac131313@redhat.com>
13042
13043 * defs.h (host_pointer_to_address): Delete declaration.
13044 (address_to_host_pointer): Delete declaration.
13045 * utils.c (host_pointer_to_address): Delete function.
13046 (address_to_host_pointer): Delete function.
13047 * procfs.c (procfs_address_to_host_pointer): New function.
13048 * procfs.c (proc_set_watchpoint): Use.
13049 (procfs_can_use_hw_breakpoint): Update comments.
13050 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13051 (som_solib_add): Use.
13052 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13053 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13054
7ca9f392
AC
130552003-02-01 Andrew Cagney <ac131313@redhat.com>
13056
94bbfd30
AC
13057 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13058 strlen d_name.
13059
7ca9f392
AC
13060 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13061 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13062 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13063 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13064 (define_symbol): Update.
13065 * symfile.c (generic_load): Remove references to nindy.
13066 * symtab.c: Remove references to nindy.
13067
31a85ea2
AC
130682003-02-01 Andrew Cagney <ac131313@redhat.com>
13069
13070 * infcmd.c (print_float_info): Delete code conditional on
13071 FLOAT_INFO.
13072 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13073 * config/m68k/nm-apollo68b.h: Ditto.
13074 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13075 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13076 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13077
f6e85fc8
MK
130782003-02-01 Mark Kettenis <kettenis@gnu.org>
13079
6015b6a0
MK
13080 * config/i386/tm-i386os9k.h: Removed.
13081
f7a30bdf
MK
13082 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13083 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13084 they're identical to i[3456]86-*-sysv* now.
13085 * config/i386/i386v32.mh: Removed.
13086 * config/i386/xm-i386v32.h: Removed.
13087 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13088
28d52111
MK
13089 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13090
4d3f6bce
MK
13091 * config/i386/i386dgux.mh: Removed.
13092 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13093
f6e85fc8
MK
13094 * configure.in: Fix typo.
13095 * configure: Regenerated.
13096
53955967
DC
130972003-01-31 David Carlton <carlton@math.stanford.edu>
13098
13099 * dwarf2read.c (dwarf2_locate_sections): Set
13100 dwarf_ranges_section.
13101
b1364885
AC
131022003-01-31 Andrew Cagney <ac131313@redhat.com>
13103
8dbb1c65
AC
13104 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13105 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13106
8731e58e
AC
13107 * utils.c: Re-indent.
13108
b1364885
AC
13109 * config/djgpp/fnchange.lst: Delete nindy files.
13110 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13111 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13112 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13113 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13114 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13115 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13116 * Makefile.in (init.c): Remove nindy references.
13117 (saber_gdb): Delete rule.
13118 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13119 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13120 and a68v-nat.c.
13121 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13122 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13123 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13124 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13125 nindy-share/stop.h.
13126 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13127 * saber.suppress: Delete file.
13128
086df311
DJ
131292003-01-31 Daniel Jacobowitz <drow@mvista.com>
13130
13131 * dbxread.c (stabs_data): New static variable.
13132 (fill_symbuf): Support an in-memory buffer for stabs data.
13133 (stabs_seek): New function.
13134 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13135 (read_ofile_symtab): Use stabs_seek.
13136 (elfstab_build_psymtabs): Take an asection* instead of
13137 an offset and size. Relocate the stabs data if necessary.
13138 Save the section* for dbx_psymtab_to_symtab.
13139 * dwarf2read.c: Add section variables for each debug section.
13140 (dwarf2_locate_sections): Fill them in.
13141 (dwarf2_read_section): Take an asection* argument.
13142 Relocate the section contents if necessary.
13143 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13144 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13145 it to dwarf2_read_section.
13146 (dwarf2_build_frame_info): Update callers.
13147 * elfread.c (elf_symfile_read): Update call to
13148 elfstab_build_psymtabs.
13149 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13150 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13151 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13152 * symfile.c (symfile_dummy_outputs): New function.
13153 (symfile_relocate_debug_section): New function.
13154 * symfile.h (symfile_relocate_debug_section): Add prototype.
13155
87d1b352
RH
131562003-01-31 Richard Henderson <rth@redhat.com>
13157
13158 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13159 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13160 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13161 * alpha-tdep.c (alpha_register_name): Add "unique".
13162 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13163 (ALPHA_UNIQUE_REGNUM): New.
13164 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13165
c48861fb
AC
131662003-01-31 Andrew Cagney <ac131313@redhat.com>
13167
13168 * README: Remove reference to Ericsson 1800 monitor.
13169 * Makefile.in (remote-es.o): Delete rule.
13170 (ALLDEPFILES): Delete remote-es.c.
13171 * remote-es.c: Delete file.
13172 * config/m68k/es1800.mt: Delete file.
13173 * config/djgpp/fnchange.lst: Update.
13174 * configure.tgt: Delete m68*-ericsson-* target.
13175
d764a824
AF
131762003-01-31 Adam Fedor <fedor@gnu.org>
13177
13178 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13179 Remove duplicate/shadowing variable of same name.
13180
fe36c4f4
JB
131812003-01-30 Jim Blandy <jimb@redhat.com>
13182
13183 * symfile.c (find_separate_debug_file): Assert that the objfile's
13184 directory name we compute ends with a slash, and then assume that
13185 that's so everywhere we use it.
13186
cb741690
DJ
131872003-01-30 Daniel Jacobowitz <drow@mvista.com>
13188
13189 * valops.c (value_assign): Flush frame cache after stores to memory
13190 also.
13191
96ee5227
AC
131922003-01-30 Andrew Cagney <ac131313@redhat.com>
13193
13194 * Makefile.in (mon960-rom.o): Delete rule.
13195 * mon960-rom.c: Delete file.
13196
7f6104a9
AC
131972003-01-30 Andrew Cagney <ac131313@redhat.com>
13198
13199 * d10v-tdep.c: Include "frame-unwind.h".
13200 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13201 list.
13202 (next_addr, uses_frame): Delete.
13203 (struct d10v_unwind_cache): Define.
13204 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13205 Use info instead of next_addr and uses_frame globals.
13206 (d10v_frame_init_saved_regs): Delete function.
13207 (d10v_init_extra_frame_info): Delete function.
13208 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13209 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13210 init_frame_pc or frame_saved_pc.
13211 (d10v_pop_frame): Delete function.
13212 (do_d10v_pop_frame): Delete function.
13213 (d10v_frame_chain): Delete function.
13214 (d10v_frame_chain_valid): Delete function.
13215 (d10v_frame_pc_unwind): New function.
13216 (d10v_frame_id_unwind): New function.
13217 (saved_regs_unwinder): New function.
13218 (d10v_frame_register_unwind): New function.
13219 (d10v_frame_pop): New function.
13220 (d10v_frame_unwind): New variable.
13221 (d10v_frame_p): New function.
13222 (d10v_frame_saved_pc): Delete function.
13223 * Makefile.in (d10v-tdep.o): Update dependencies.
13224
cad2e848
JB
132252003-01-30 J. Brobecker <brobecker@gnat.com>
13226
13227 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13228 causing some regressions due to a change in the default value
13229 for this macro.
13230
af34e669
DJ
132312003-01-29 Richard Henderson <rth@redhat.com>
13232 Elena Zannoni <ezannoni@redhat.com>
13233 Daniel Jacobowitz <drow@mvista.com>
13234
13235 Fix PR gdb/961.
8ffd9b1b 13236 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13237 variables.
13238 (RANGES_SECTION): New.
13239 (dwarf_ranges_buffer): New variable.
13240 (struct comp_unit_head): Add member "die".
13241 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13242 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13243 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13244 (dwarf2_locate_sections): Likewise.
13245 (dwarf2_build_psymtabs): Read .debug_ranges.
13246 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13247 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13248 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13249 Look for DW_AT_ranges and return the bounding box.
13250
baa93fa6
CF
132512003-01-29 Brian Ford <ford@vss.fsi.com>
13252
13253 * win32-nat.c (cygwin_pid): Removed as unused.
13254 (child_attach): Try fall back to Cygwin pid.
13255
c63f977f
JB
132562003-01-29 Jim Blandy <jimb@redhat.com>
13257
13258 * objfiles.h (struct objfile): Doc fix.
13259
d62d1979
AC
132602003-01-29 Andrew Cagney <ac131313@redhat.com>
13261
13262 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13263 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13264 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13265 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13266 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13267 (FRAME_SAVED_PC): Change to a function with predicate.
13268 * gdbarch.h, gdbarch.c: Re-generate.
13269
1ae18a04
AC
132702003-01-28 Andrew Cagney <ac131313@redhat.com>
13271
52287340
AC
13272 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13273
1ae18a04
AC
13274 * complaints.c (complain): Delete function.
13275 * complaints.h (struct deprecated_complaint): Delete definition.
13276 (complain): Delete declaration.
13277
f2c16bd6
KB
132782003-01-28 Kevin Buettner <kevinb@redhat.com>
13279
13280 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13281 dummy frames.
13282
a94dd1fd
AC
132832003-01-27 Andrew Cagney <ac131313@redhat.com>
13284
13285 * sentinel-frame.h, sentinel-frame.c: New files.
13286 * Makefile.in (frame.o): Update dependencies.
13287 (SFILES): Add sentinel-frame.c.
13288 (sentinel_frame_h): Define.
13289 (COMMON_OBS): Add sentinel-frame.o.
13290 (sentinel-frame.o): Specify dependencies.
13291 * frame.c: Include "sentinel-frame.h".
13292 (frame_register_unwind): Rewrite assuming that there is always a a
13293 ->next frame.
13294 (frame_register, generic_unwind_get_saved_register): Ditto.
13295 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13296 (create_sentinel_frame, unwind_to_current_frame): New functions.
13297 (get_current_frame): Rewrite using create_sentinel_frame and
13298 unwind_to_current_frame. When possible, always create a frame.
13299 (create_new_frame): Set next to the sentinel frame.
13300 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13301 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13302 ID cache when necessary.
13303 (frame_saved_regs_id_unwind): Use frame_relative_level.
13304 (deprecated_generic_get_saved_register): Use frame_relative_level,
13305 get_frame_saved_regs, get_frame_pc, get_frame_base and
13306 get_next_frame.
13307 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13308 frame_register.
13309
5378adc4
DJ
133102003-01-27 Daniel Jacobowitz <drow@mvista.com>
13311
13312 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13313
51ee2ddc
DJ
133142003-01-27 Daniel Jacobowitz <drow@mvista.com>
13315
13316 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13317 (maintenance_set_profile_cmd): Use error () instead of warning ().
13318
d9feb4e7
DJ
133192003-01-27 Daniel Jacobowitz <drow@mvista.com>
13320
13321 * configure.in: Check that -pg works if using --enable-profiling.
13322 Check for monstartup and _mcleanup regardless of --enable-profiling.
13323 * maint.c: Check for monstartup and _mcleanup before using them.
13324 * config.in: Regenerated.
13325 * configure: Regenerated.
13326
2d188dd3
NC
133272003-01-24 Nick Clifton <nickc@redhat.com>
13328
13329 * Add sh2e support:
13330
13331 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13332
13333 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13334 (sh2e_show_regs): New.
13335 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13336 * config/sh/tm-sh.h: Added sh2e to comments.
13337
cb3c37b2
JB
133382003-01-23 Jim Blandy <jimb@redhat.com>
13339
13340 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13341 symbols found)" message here; we haven't checked for a separate
13342 debug info file yet, so we don't know yet.
13343 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13344 we've looked everywhere. Also, there's no need to print a special
13345 message when we're loading the separate debug info file: the one
13346 symbol_file_add prints is fine.
13347
5b5d99cf
JB
133482003-01-23 Alexander Larsson <alexl@redhat.com>
13349 Jim Blandy <jimb@redhat.com>
13350
13351 Add support for executables whose debug info has been separated
13352 out into a separate file, leaving only a link behind.
13353 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13354 and separate_debug_objfile_backlink.
13355 (put_objfile_before): New declaration.
13356 * symfile.c: #include "filenames.h".
13357 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13358 debug info in a separate file, read that, too. Save the addrs
13359 argument, so we can use it again to read the separated debug info;
13360 syms_from_objfile modifies the table we pass it.
13361 (reread_symbols): After re-reading an objfile, call
13362 reread_separate_symbols to refresh its separate debug info
13363 objfile, if it has one.
13364 (reread_separate_symbols, find_separate_debug_file,
13365 get_debug_link_info, separate_debug_file_exists): New functions.
13366 (debug_file_directory): New global var.
13367 (_initialize_symfile): Initialize debug_file_directory, and
13368 provide the new `set debug-file-directory' command to let the user
13369 change it.
13370 * objfiles.c (free_objfile): If this objfile has its debug info in
13371 a separate objfile, free that one too. If this is itself a
13372 separate debug info objfile, clear our parent's backlink.
13373 (put_objfile_before): New function.
13374 * utils.c (gnu_debuglink_crc32): New function.
13375 * defs.h (gnu_debuglink_crc32): New declaration.
13376 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13377 * configure.in: Handle --with-separate-debug-dir config option.
13378 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13379 * acconfig.h (DEBUGDIR): New macro.
13380 * configure, aclocal.m4, config.in: Regenerated.
13381
7e8580c1
JB
133822003-01-22 Jim Blandy <jimb@redhat.com>
13383
7904e09f
JB
13384 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13385 like the old symbol_file_add, but taking new arguments: you can
13386 now pass in either a `struct section_addr_info' list to say where
13387 each section is loaded, or a `struct section_offsets' table. Pass
13388 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13389 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13390 with the appropriate quiescent values for the new arguments.
13391
7e8580c1
JB
13392 * symfile.c: #include "gdb_assert.h".
13393 (syms_from_objfile): Add the ability to pass in a section offset
13394 table directly, as an alternative to the section_addr_info table.
13395 Document arguments better.
13396 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13397 * symfile.h (syms_from_objfile): Update declaration.
13398 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13399 syms_from_objfile.
13400 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13401
d28f9cdf
DJ
134022003-01-22 Daniel Jacobowitz <drow@mvista.com>
13403
13404 Original patch by Tom Tromey <tromey@cygnus.com> and
13405 Jason Molenda <jmolenda@apple.com>.
13406 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13407 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13408 * NEWS: Mention profiling.
13409 * configure.in (--enable-gdbtk): Fix typo.
13410 (--enable-profiling): New. Set PROFILE_CFLAGS.
13411 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13412 Fill in function.
13413 (profiling_state): New variable.
13414 (mcleanup_wrapper): New function.
13415 (_initialize_maint): Remove NOTYET, fix call to
13416 add_setshow_boolean_cmd for "maint set profile".
13417 * configure: Regenerated.
13418
df21e465
MH
134192003-01-21 Martin M. Hunt <hunt@redhat.com>
13420
13421 * Makefile.in (install-gdbtk): Install PNG images too.
13422
73c1f219
AC
134232003-01-21 Andrew Cagney <ac131313@redhat.com>
13424
13425 * exec.c (text_start): Delete global variable.
13426 (exec_file_attach): Make text_start local to the function.
13427 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13428 * valops.c (hand_function_call): Delete code that handles
13429 BEFORE_TEXT_END and AFTER_TEXT_END.
13430 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13431 of CALL_DUMMY_LOCATION.
13432 * gdbarch.c: Regenerate.
13433 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13434 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13435 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13436 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13437 (text_end): Delete extern declaration.
13438
eb4f72c5
AC
134392003-01-21 Andrew Cagney <ac131313@redhat.com>
13440
13441 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13442 * blockframe.c (backtrace_below_main): Move to "frame.c".
13443 (frame_chain_valid): Delete check for backtrace_below_main.
13444 (_initialize_blockframe): Delete initialization, move ``set
13445 backtrace-below-main'' command to "frame.c".
13446 (do_flush_frames_sfunc): Delete function.
13447 * frame.c: Include "command.h" and "gdbcmd.h".
13448 (frame_type_from_pc): New function.
13449 (create_new_frame): Use frame_type_from_pc.
13450 (legacy_get_prev_frame): New function.
13451 (get_prev_frame): Rewrite. When an old style frame, call
13452 legacy_get_prev_frame. Otherwize, unwind the PC first.
13453 (_initialize_frame): Add ``set backtrace-below-main'' command.
13454 * Makefile.in (frame.o): Update dependencies.
13455
778ce8cc
AC
134562003-01-19 Andrew Cagney <ac131313@redhat.com>
13457
13458 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13459 DEPRECATED_REGISTERS_INFO.
13460
01c193c8
AC
134612003-01-19 Andrew Cagney <ac131313@redhat.com>
13462
13463 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13464 Maintainers'. Update `Various Maintainers'.
13465
dedc2a2b
AC
134662003-01-19 Andrew Cagney <ac131313@redhat.com>
13467
13468 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13469 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13470 Suppress actual parameters when `-'.
13471 * gdbarch.h, gdbarch.c: Regenerate.
13472
b7261c70
AC
134732003-01-19 Andrew Cagney <ac131313@redhat.com>
13474
13475 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13476 code handling dummy frames.
13477
dbe9fe58
AC
134782003-01-19 Andrew Cagney <ac131313@redhat.com>
13479
13480 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13481 (struct frame_unwind): Add field pop.
13482 * frame.h (frame_pop): Declare.
13483 * frame.c (frame_saved_regs_pop): New function.
13484 (trad_frame_unwinder): Add frame_saved_regs_pop.
13485 (frame_pop): New function.
13486 * dummy-frame.c (dummy_frame_pop): New function.
13487 (discard_innermost_dummy): New function.
13488 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13489 (dummy_frame_unwind): Add dummy_frame_pop.
13490 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13491 * valops.c (hand_function_call): Ditto.
13492 * stack.c (return_command): Ditto.
13493
570b8f7c
AC
134942003-01-18 Andrew Cagney <ac131313@redhat.com>
13495
13496 * cris-tdep.c: Fix function declaration indentation.
13497 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13498 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13499 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13500 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13501 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13502 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13503
135042003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13505
13506 * README (Unpacking and Installation -- quick overview):
13507 Warn against ".../gdb-5.3/gdb/configure".
13508
494cca16
AC
135092003-01-18 Andrew Cagney <ac131313@redhat.com>
13510
13511 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13512 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13513 (struct frame_unwind): Declare opaque.
13514 (dummy_frame_p): Declare function.
13515 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13516 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13517 * dummy-frame.c: Include "frame-unwind.h".
13518 (dummy_frame_p): New function.
13519 (dummy_frame_unwind): New variable.
13520 * frame.c: Include "frame-unwind.h".
13521 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13522 to use the new unwind field.
13523 (set_unwind_by_pc): Delete function.
13524 (create_new_frame, get_prev_frame): Set unwind field using
13525 frame_unwind_find_by_pc.
13526 (trad_frame_unwind, trad_frame_unwinder): New variables.
13527 * frame.h (trad_frame_unwind): Declare variable.
13528 (frame_id_unwind_ftype): Delete declaration.
13529 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13530 (struct frame_unwind): Declare opaque.
13531 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13532 register_unwind with a single unwind pointer.
13533 * frame-unwind.h, frame-unwind.c: New files.
13534 * Makefile.in (SFILES): Add frame-unwind.c.
13535 (frame_unwind_h): Define.
13536 (COMMON_OBS): Add frame-unwind.o.
13537 (frame-unwind.o): Specify dependencies.
13538 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13539
4efb68b1
AC
135402003-01-18 Andrew Cagney <ac131313@redhat.com>
13541
13542 * ada-valprint.c: Eliminate PTR.
13543 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13544 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13545 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13546 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13547 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13548 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13549 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13550
a84d24ee
AC
135512003-01-17 Andrew Cagney <ac131313@redhat.com>
13552
762f08a3
AC
13553 * main.c (captured_main): Don't use PTR.
13554 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13555 * gdbtypes.c (lookup_primitive_typename): Ditto.
13556 (lookup_struct_elt_type): Ditto.
13557 * f-valprint.c (info_common_command): Ditto.
13558 (list_all_visible_commons): Ditto.
13559 * jv-typeprint.c (java_type_print_base): Ditto.
13560
a84d24ee
AC
13561 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13562 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13563 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13564 i386-interix-nat.c and i386-interix-tdep.c. Rename
13565 m68klinux-nat.c and m68klinux-tdep.c. Rename
13566 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13567 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13568 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13569 * main.c (captured_main): Use xfree, not free.
13570
c170fb60
AC
135712003-01-16 Andrew Cagney <ac131313@redhat.com>
13572
13573 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13574 ID back using a parameter.
13575 * frame.c (frame_id_unwind): Update call.
13576 (frame_saved_regs_id_unwind): Update.
13577 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13578 * dummy-frame.h (struct frame_id): Add opaque declaration.
13579 (dummy_frame_id_unwind): Update declaration.
13580
867f3898
AC
135812003-01-15 Andrew Cagney <ac131313@redhat.com>
13582
13583 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13584
40622be8 135852003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13586
40622be8 13587 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13588
ae66c1fc
EZ
135892003-01-14 Elena Zannoni <ezannoni@redhat.com>
13590
997b089a 13591 Fix PR gdb/898
ae66c1fc
EZ
13592 * breakpoint.c (until_break_command): Add new argument. Use it to
13593 decide whether to stop only at the current frame or not.
13594 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13595 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13596 call.
13597 (advance_command): New function.
13598 (_initialize_infcmd): Update help string for 'until' command.
13599 Add new 'advance' command.
13600
a04257e6
DC
136012003-01-14 David Carlton <carlton@math.stanford.edu>
13602
13603 * linespec.c (decode_line_1): Normalize comments.
13604 (set_flags): Ditto.
13605 (locate_first_half): Ditto.
13606 (decode_compound): Ditto.
13607 (symtab_from_filename): Ditto.
13608 (decode_all_digits): Ditto.
13609 (decode_dollar): Ditto.
13610 (find_methods): Ditto.
13611 (find_toplevel_char): Ditto.
13612
1bac305b
AC
136132003-01-13 Andrew Cagney <ac131313@redhat.com>
13614
13615 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13616 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13617 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13618 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13619 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13620 * language.c, language.h, m32r-tdep.c: Update copyright.
13621 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13622 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13623 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13624 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13625 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13626 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13627
25caa7a8
EZ
136282003-01-13 Elena Zannoni <ezannoni@redhat.com>
13629
13630 * stabsread.h (process_later, resolve_cfront_continuation):
13631 Obsolete.
13632 Update copyright years.
13633 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13634 Update copyright year.
13635 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13636 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13637 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13638 Update copyright year.
13639 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13640 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13641 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13642 (parse_partial_symbols): Obsolete cfront support.
13643 * stabsread.c
13644 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13645 macros.
13646 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13647 read_cfront_baseclasses, read_cfront_member_functions,
13648 resolve_cfront_continuation,read_cfront_static_fields,
13649 copy_cfront_struct_fields): Obsolete functions.
13650 (define_symbol, read_one_struct_field): Obsolete cfront support.
13651 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13652 Update Copyright year.
13653
7789c6f5
EZ
136542003-01-13 Elena Zannoni <ezannoni@redhat.com>
13655
13656 * stack.c (print_frame_info, print_stack_frame_base_stub,
13657 print_stack_frame_base, show_and_print_stack_frame_stub,
13658 show_and_print_stack_frame, print_only_stack_frame_stub,
13659 print_only_stack_frame): Delete functions.
13660 (print_stack_frame_stub): Call print_frame_info instead of
13661 print_frame_info_base.
13662 (print_frame_info_base): Rename to print_frame_info.
13663 (backtrace_command_1): Call print_frame_info, instead of
13664 print_frame_info_base.
13665 (current_frame_command): Call print_stack_frame, instead of
13666 print_only_stack_frame.
13667 (frame_command): Call print_stack_frame, instead of
13668 show_and_print_stack_frame.
13669 (up_command): Ditto.
13670 (down_command): Ditto.
13671 * frame.h (print_only_stack_frame): Delete prototype.
13672 * infrun.c (normal_stop): Call print_stack_frame, instead of
13673 show_and_print_stack_frame.
13674 * thread.c (info_threads_command): Call print_stack_frame, instead
13675 of print_only_stack_frame.
13676
3f5a3016
AC
136772003-01-13 Andrew Cagney <ac131313@redhat.com>
13678
d99ba314
AC
13679 * README (Graphical interface to GDB): Update URL. Point at
13680 gdb/links/.
13681
3f5a3016
AC
13682 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13683 version match.
13684
083ae935
DJ
136852003-01-13 Daniel Jacobowitz <drow@mvista.com>
13686
13687 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13688 lines.
13689
5365276c
DJ
136902003-01-13 Daniel Jacobowitz <drow@mvista.com>
13691
13692 * thread-db.c (attach_thread): Prototype.
13693 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13694 thread information (ti), and valid flags (th_valid, ti_valid).
13695 (attach_thread): Move target_pid_to_str call to after the thread
13696 is added to GDB's list. Initialize the cache.
13697 (thread_get_info_callback, thread_db_map_id2thr)
13698 (thread_db_get_info): New functions.
13699 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13700 (thread_db_store_registers, thread_db_thread_alive)
13701 (thread_db_get_thread_local_address): Use them.
13702 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13703 of calling error() for threads in unknown state.
13704
13705 (clear_lwpid_callback): New function.
13706 (thread_db_resume): Use it to clear the cache.
13707
9fc30b6b
DJ
137082003-01-13 Daniel Jacobowitz <drow@mvista.com>
13709
13710 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13711 (resume_callback): Remove dead code.
13712
8f871025
AC
137132003-01-13 Andrew Cagney <ac131313@redhat.com>
13714
13715 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13716 predicate.
13717 * gdbarch.h, gdbarch.c: Regenerate.
13718 * stack.c (frame_info): Only initialize the saved registers when
13719 FRAME_INIT_SAVED_REGS_P.
13720 * frame.c (frame_saved_regs_register_unwind): Assert
13721 FRAME_INIT_SAVED_REGS_P.
13722 (deprecated_generic_get_saved_register): Ditto.
13723
3f565f1e
DJ
137242003-01-13 Daniel Jacobowitz <drow@mvista.com>
13725
13726 * source.c (openp): Squelch warning about "filename".
13727
072b1022
DJ
137282003-01-13 Daniel Jacobowitz <drow@mvista.com>
13729
13730 * source.c (openp): If the file does not exist don't necessarily
13731 search the path.
13732
973ccf8b
DJ
137332003-01-13 Daniel Jacobowitz <drow@mvista.com>
13734
13735 Fix PR gdb/872.
13736 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13737 (integer_types_same_name_p): New function.
13738 (rank_one_type): Use it.
13739 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13740
030292b7
DJ
137412003-01-13 Daniel Jacobowitz <drow@mvista.com>
13742
13743 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13744 variables.
13745 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13746 * configure.in: Add --with-sysroot.
13747 * configure: Regenerated.
13748 * main.c (gdb_sysroot): New variable.
13749 (captured_main): Initialize gdb_sysroot.
13750 * defs.h (gdb_sysroot): New extern declaration.
13751 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13752
afb5d334
MC
137532003-01-12 Michael Chastain <mec@shout.net>
13754
13755 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13756
751ceeb4
MC
137572003-01-12 Michael Chastain <mec@shout.net>
13758
13759 * top.c (print_gdb_version): Bump copyright year to 2003.
13760
94cd26f8
DC
137612003-01-12 David Carlton <carlton@bactrian.org>
13762
13763 * linespec.c (symtab_from_filename): Rename variable 's' to
13764 'file_symtab'.
13765
1ce79225
AC
137662003-01-12 Andrew Cagney <ac131313@redhat.com>
13767
13768 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13769 dummy frame.
13770 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13771
fa1fd571
AC
137722003-01-12 Andrew Cagney <ac131313@redhat.com>
13773
13774 * d10v-tdep.c: Include "gdb_assert.h".
13775 (d10v_store_return_value): Rewrite to match current interface.
13776 (d10v_extract_struct_value_address): Ditto.
13777 (d10v_extract_return_value): Ditto.
13778 (d10v_gdbarch_init): Set store_restore_value,
13779 extract_struct_value_address and extract_return_value.
13780
68b8d23e
JB
137812003-01-12 J. Brobecker <brobecker@gnat.com>
13782
13783 * hpread.c (set_namestring): New procedure replacing the
13784 SET_NAMESTRING macro.
13785 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13786 by calls to set_namestring.
13787
137882003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13789
13790 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13791 a compilation warning.
13792 (hpread_process_one_debug_symbol): Likewise.
13793
88d262ca
DC
137942003-01-10 David Carlton <carlton@math.stanford.edu>
13795
13796 * linespec.c (decode_line_1): Rename variable 's' to
13797 'file_symtab'.
13798 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13799 (decode_dollar): Ditto.
13800 (decode_variable): Ditto.
13801 (symbol_found): Ditto.
13802
86669319
MC
138032003-01-09 Michael Chastain <mec@shout.net>
13804
13805 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13806
616a9dc4
CV
138072003-01-07 Corinna Vinschen <vinschen@redhat.com>
13808
13809 * win32-nat.c (set_process_privilege): New function.
13810 (child_attach): Call set_process_privilege() to enable the
13811 SE_DEBUG_NAME user privilege if available in process token.
13812
3269bcfa
JB
138132003-01-10 J. Brobecker <brobecker@gnat.com>
13814
13815 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13816 compilation error in the previous revision.
13817
2b0ee454
DC
138182003-01-09 David Carlton <carlton@math.stanford.edu>
13819
13820 * linespec.c: Update copyright.
13821
b3ba1b44
DJ
138222003-01-09 Daniel Jacobowitz <drow@mvista.com>
13823
13824 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13825 than inferior_ptid.
13826 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13827
4ef3f3be
AC
138282003-01-09 Andrew Cagney <ac131313@redhat.com>
13829
479ab5a0
AC
13830 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13831 Update comments.
13832 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13833 (frame_saved_regs_zalloc): Update.
13834 (frame_saved_regs_register_unwind): Update.
13835 (create_new_frame): Update.
13836 (get_prev_frame): Update.
13837 (frame_extra_info_zalloc): Update.
13838 (deprecated_get_frame_saved_regs): Update.
13839 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13840 * cris-tdep.c: Update comment.
13841
bde58177
AC
13842 * somsolib.h: Fix function indentation.
13843 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13844 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13845 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13846 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13847 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13848
4ef3f3be
AC
13849 * infrun.c (follow_fork): Use ISO C definition.
13850 * expprint.c (print_subexp): Use xfree instead of free.
13851 * charset.c: Include "gdb_string.h" instead of <string.h>.
13852 (register_iconv_charsets): Use ISO C definition.
13853 (host_charset, target_charset): Ditto.
13854 * Makefile.in (charset.o): Update dependencies.
13855 (mi-cmd-env.o): Update dependencies.
13856
1c615f7a
AC
138572003-01-08 Andrew Cagney <cagney@redhat.com>
13858
13859 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13860 get_frame_base.
13861
c9a1dc08
AC
138622003-01-08 Andrew Cagney <ac131313@redhat.com>
13863
13864 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13865 build directories. Save edited gdb output in Mbuild.log. If a
13866 build fails, remove any final GDB executable.
13867
dbad9d94
AC
138682003-01-08 Andrew Cagney <ac131313@redhat.com>
13869
13870 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13871 replacing hex constants with function names and stripping leading
13872 file name directory prefixes.
13873
8d357cca
AC
138742003-01-08 Andrew Cagney <cagney@redhat.com>
13875
13876 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13877 get_frame_base.
13878
bca02a8a
DC
138792003-01-08 David Carlton <carlton@math.stanford.edu>
13880
13881 * linespec.c (decode_line_1): Move code into decode_variable.
13882 (decode_variable): New function.
13883
7f8ab3a0
AC
138842003-01-08 Andrew Cagney <ac131313@redhat.com>
13885
13886 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13887
7b5849cc
AC
138882003-01-08 Andrew Cagney <cagney@redhat.com>
13889
13890 * cris-tdep.c (cris_frame_init_saved_regs): Use
13891 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13892 saved_regs buffer.
13893 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13894 (sh64_nofp_frame_init_saved_regs): Ditto.
13895 (sh_fp_frame_init_saved_regs): Ditto.
13896 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13897 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13898 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13899 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13900
72a5efb3
DJ
139012003-01-08 Daniel Jacobowitz <drow@mvista.com>
13902
13903 * minsyms.c (lookup_minimal_symbol): Update comment.
13904 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13905 (lookup_minimal_symbol_solib_trampoline): Likewise.
13906
11c02a10
AC
139072003-01-08 Andrew Cagney <cagney@redhat.com>
13908
aab3ea25
AC
13909 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13910 frame_relative_level.
13911
da50a4b7
AC
13912 * alpha-tdep.c: Use get_frame_extra_info.
13913 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13914 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13915 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13916 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13917
11c02a10
AC
13918 * alpha-tdep.c: Use get_next_frame.
13919 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13920 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13921 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13922 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13923 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13924 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13925 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13926
1e2330ba
AC
139272003-01-07 Andrew Cagney <cagney@redhat.com>
13928
13929 * alpha-tdep.c: Use get_frame_base.
13930 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13931 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13932 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13933 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13934 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13935 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13936 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13937 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13938
2d75187b
AC
139392003-01-07 Andrew Cagney <cagney@redhat.com>
13940
13941 * frame.c (deprecated_get_frame_context): New function.
13942 (deprecated_set_frame_context): New function.
13943 * frame.h (deprecated_get_frame_context): Declare.
13944 (deprecated_set_frame_context): Declare.
13945 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13946 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13947
483d36b2
AC
139482003-01-07 Andrew Cagney <cagney@redhat.com>
13949
13950 * frame.c (deprecated_set_frame_next_hack): New function.
13951 (deprecated_set_frame_prev_hack): New function.
13952 * frame.h (deprecated_set_frame_next_hack): Declare.
13953 (deprecated_set_frame_prev_hack): Declare.
13954 * mcore-tdep.c (analyze_dummy_frame): Use
13955 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13956 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13957
14e91ac5
DC
139582003-01-07 David Carlton <carlton@math.stanford.edu>
13959
13960 * linespec.c (decode_line_1): Move code into decode_dollar.
13961 (decode_dollar): New function.
13962
b0c6b05c
AC
139632003-01-07 Andrew Cagney <cagney@redhat.com>
13964
13965 * arm-tdep.c (arm_init_extra_frame_info): Use
13966 deprecated_update_frame_base_hack.
13967 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13968 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13969 (fix_frame_pointer): Ditto.
13970 (mn10300_analyze_prologue): Ditto.
13971
a00a19e9
AC
139722003-01-07 Andrew Cagney <cagney@redhat.com>
13973
13974 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13975 extra_info using frame_extra_info_zalloc.
13976 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13977 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13978 (sh64_init_extra_frame_info): Ditto.
13979 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13980 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13981 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13982 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13983 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13984 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13985 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13986 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13987 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13988 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13989 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13990 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13991
13992 * mn10300-tdep.c (analyze_dummy_frame): Use
13993 deprecated_set_frame_extra_info_hack.
13994 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13995
1fb4c65b
JB
139962003-01-07 J. Brobecker <brobecker@gnat.com>
13997
13998 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13999 class is not scText. These do not define "real" procedures.
14000 (parse_partial_symbols): Likewise.
14001
9fe7d6bf
MS
140022003-01-06 Michael Snyder <msnyder@redhat.com>
14003
14004 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14005
f6c609c4
AC
140062003-01-06 Andrew Cagney <ac131313@redhat.com>
14007
14008 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14009 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14010 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14011 deprecated_frame_xmalloc_with_cleanup.
14012 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14013 deprecated_frame_xmalloc.
14014 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14015 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14016
d995ff4b
AC
140172003-01-06 Andrew Cagney <cagney@redhat.com>
14018
84dc46cb
AC
14019 * x86-64-linux-tdep.c: Include "osabi.h".
14020 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14021
d995ff4b
AC
14022 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14023
66140c26
AC
140242003-01-06 Andrew Cagney <cagney@redhat.com>
14025
14026 * MAINTAINERS (Target Instruction Set Architectures): Update
14027 arm-elf. Can be built with -Werror, has been multiarched.
14028
14029 * value.h (unpack_long): Make buffer parameter constant.
14030 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14031 * scm-lang.h (scm_parse): Ditto.
14032 * defs.h (extract_typed_address, extract_address): Ditto.
14033 (extract_long_unsigned_integer): Ditto.
14034 * inferior.h (unsigned_pointer_to_address): Ditto.
14035 (signed_pointer_to_address): Ditto.
14036 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14037 * gdbarch.h, gdbarch.c: Regenerate.
14038 * findvar.c (extract_long_unsigned_integer): Update.
14039 (extract_address): Update.
14040 (extract_typed_address): Update.
14041 (unsigned_pointer_to_address): Update.
14042 * values.c (unpack_long): Update.
14043 (unpack_double): Update.
14044 (unpack_pointer): Update.
14045 (unpack_field_as_long): Update.
14046 * d10v-tdep.c (d10v_pointer_to_address): Update.
14047 * avr-tdep.c (avr_pointer_to_address): Update.
14048 * scm-lang.c (scm_unpack): Update.
14049 * findvar.c (signed_pointer_to_address): Update.
14050
b089b3da
ML
140512003-01-06 Michal Ludvig <mludvig@suse.cz>
14052
8ffd9b1b 14053 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14054 since it is in i386-tdep.c.
14055
aff87235
JB
140562003-01-06 J. Brobecker <brobecker@gnat.com>
14057
14058 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14059 failure introduced in the previous change.
14060
34f5e845
MC
140612003-01-05 Michael Chastain <mec@shout.net>
14062
14063 * README: Remove references to deleted remote-*.c files:
14064 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14065 remote-nrom.c, remote-os9k.c, remote-udi.c.
14066
28bcfd30
MK
140672003-01-05 Mark Kettenis <kettenis@gnu.org>
14068
14069 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14070 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14071 i386_get_longjmp_target.
14072
15a5b3ee
AC
140732003-01-05 Andrew Cagney <ac131313@redhat.com>
14074
14075 * arm-tdep.c (prologue_cache): Change to a pointer.
14076 (_initialize_arm_tdep): Allocate prologue_cache.
14077 (check_prologue_cache): Update.
14078 (save_prologue_cache): Update.
14079 (arm_gdbarch_init): Update.
14080
c263362b
DJ
140812003-01-04 Daniel Jacobowitz <drow@mvista.com>
14082
14083 * stabsread.c (update_method_name_from_physname): Call complaint()
14084 instead of error.
14085
51603483
DJ
140862003-01-04 Daniel Jacobowitz <drow@mvista.com>
14087
14088 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14089 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14090 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14091
14092 * blockframe.c: Include "gdbcmd.h" and "command.h".
14093 (backtrace_below_main): New variable.
14094 (file_frame_chain_valid, func_frame_chain_valid)
14095 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14096 (generic_func_frame_chain_valid): Remove functions.
14097 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14098 (_initialize_blockframe): New function.
14099 * Makefile.in (blockframe.o): Update dependencies.
14100 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14101 comment. Call frame_chain_valid ().
14102 * frame.h: Remove old prototypes. Add prototype for
14103 frame_chain_valid and update comments to match.
14104 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14105 Remove old comment.
14106 * gdbarch.h: Regenerated.
14107 * gdbarch.c: Regenerated.
14108
14109 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14110 set_gdbarch_frame_chain_valid.
14111 * avr-tdep.c (avr_gdbarch_init): Likewise.
14112 * cris-tdep.c (cris_gdbarch_init): Likewise.
14113 * frv-tdep.c (frv_gdbarch_init): Likewise.
14114 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14115 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14116 (i386_nw_init_abi): Likewise.
14117 (i386_gdbarch_init): Likewise.
14118 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14120 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14121 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14122 * mips-tdep.c (mips_gdbarch_init): Likewise.
14123 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14124 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14125 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14126 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14127 * s390-tdep.c (s390_gdbarch_init): Likewise.
14128 * sh-tdep.c (sh_gdbarch_init): Likewise.
14129 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14130 * v850-tdep.c (v850_gdbarch_init): Likewise.
14131 * vax-tdep.c (vax_gdbarch_init): Likewise.
14132 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14133
14134 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14135 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14136 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14137 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14138 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14139 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14140 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14141 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14142
b00a8037
DJ
141432002-01-04 Daniel Jacobowitz <drow@mvista.com>
14144
14145 * Makefile.in (acconfig_h): Remove incorrect macro.
14146 (config_h): Define.
14147 (osabi.o): Update dependencies.
14148 * configure.tgt: Set gdb_osabi based on target triplet.
14149 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14150 * configure: Regenerated.
14151 * config.in: Regenerated.
14152 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14153 (GDB_OSABI_DEFAULT): Define if not already defined.
14154 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14155 (set_osabi_string): New variables.
14156 (gdbarch_register_osabi): Add new OS ABI to
14157 gdb_osabi_available_names.
14158 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14159 (set_osabi, show_osabi): New functions.
14160 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14161
4be87837
DJ
141622003-01-04 Daniel Jacobowitz <drow@mvista.com>
14163
14164 * arch-utils.c (gdbarch_info_init): Set osabi to
14165 GDB_OSABI_UNINITIALIZED.
14166 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14167 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14168 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14169 * gdbarch.c: Regenerated.
14170 * gdbarch.h: Regenerated.
14171 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14172 there's no BFD.
14173 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14174 * osabi.h (enum gdb_osabi): Move to defs.h.
14175 (gdbarch_init_osabi): Update prototype.
14176 * defs.h (enum gdb_osabi): Moved here.
14177 * Makefile.in: Update dependencies.
14178
14179 * alpha-tdep.h: Don't include "osabi.h".
14180 (struct gdbarch_tdep): Remove osabi member.
14181 * alpha-tdep.c: Include "osabi.h".
14182 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14183 iterate over arches. Update call to gdbarch_init_osabi.
14184 (alpha_dump_tdep): Don't dump osabi.
14185 * alpha-linux-tdep.c: Include "osabi.h".
14186 * alpha-osf1-tdep.c: Include "osabi.h".
14187 * alphafbsd-tdep.c: Include "osabi.h".
14188 * alphanbsd-tdep.c: Include "osabi.h".
14189
14190 * arm-tdep.h: Don't include "osabi.h".
14191 (struct gdbarch_tdep): Remove osabi member.
14192 * arm-tdep.c: Include "osabi.h".
14193 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14194 iterate over arches. Update call to gdbarch_init_osabi.
14195 (arm_dump_tdep): Don't dump osabi.
14196 * arm-linux-tdep.c: Include "osabi.h".
14197 * armnbsd-tdep.c: Include "osabi.h".
14198
14199 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14200 Update call to gdbarch_init_osabi.
14201
14202 * i386-tdep.h: Don't include "osabi.h".
14203 (struct gdbarch_tdep): Remove osabi member.
14204 * i386-tdep.c: Include "osabi.h".
14205 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14206 iterate over arches. Update call to gdbarch_init_osabi.
14207 (i386_dump_tdep): Don't dump osabi.
14208 * i386-linux-tdep.c: Include "osabi.h".
14209 * i386-sol2-tdep.c: Include "osabi.h".
14210 * i386bsd-tdep.c: Include "osabi.h".
14211 * i386gnu-tdep.c: Include "osabi.h".
14212 * i386ly-tdep.c: Include "osabi.h".
14213 * i386nbsd-tdep.c: Include "osabi.h".
14214 * i386obsd-tdep.c: Include "osabi.h".
14215
14216 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14217 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14218 check osabi when iterating over arches. Update call to
14219 gdbarch_init_osabi.
14220 (mips_dump_tdep): Don't dump osabi.
14221
14222 * ns32k-tdep.h: Don't include "osabi.h".
14223 (struct gdbarch_tdep): Remove.
14224 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14225 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14226 allocate tdep. Update call to gdbarch_init_osabi.
14227 (ns32k_dump_tdep): Remove.
14228 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14229 * ns32knbsd-tdep.c: Include "osabi.h".
14230
14231 * ppc-tdep.h: Don't include "osabi.h".
14232 (struct gdbarch_tdep): Remove osabi member.
14233 * rs6000-tdep.c: Include "osabi.h".
14234 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14235 osabi when iterating over arches. Update call to
14236 gdbarch_init_osabi.
14237 (rs6000_dump_tdep): Don't dump osabi.
14238 * ppc-linux-tdep.c: Include "osabi.h".
14239 * ppcnbsd-tdep.c: Include "osabi.h".
14240
14241 * sh-tdep.h: Don't include "osabi.h".
14242 (struct gdbarch_tdep): Remove osabi member.
14243 * sh-tdep.c: Include "osabi.h".
14244 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14245 iterate over arches. Update call to gdbarch_init_osabi.
14246 (sh_dump_tdep): Don't dump osabi.
14247 * shnbsd-tdep.c: Include "osabi.h".
14248
14249 * sparc-tdep.c: Include "osabi.h".
14250 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14251 iterate over arches. Update call to gdbarch_init_osabi.
14252 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14253 tdep structure.
14254
14255 * vax-tdep.h: Don't include "osabi.h".
14256 (struct gdbarch_tdep): Remove.
14257 * vax-tdep.c: Include "osabi.h".
14258 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14259 iterate over arches. Don't allocate tdep. Update call
14260 to gdbarch_init_osabi.
14261 (vax_dump_tdep): Remove.
14262 (_initialize_vax_tdep): Update call to gdbarch_register.
14263
a881cf8e
DJ
142642003-01-04 Daniel Jacobowitz <drow@mvista.com>
14265
14266 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14267 entirely.
14268 (breakpoint_re_set_one): Don't fetch the value for a disabled
14269 watchpoint.
14270
1e698235
DJ
142712003-01-04 Daniel Jacobowitz <drow@mvista.com>
14272
14273 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14274 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14275 (COERCE_FLOAT_TO_DOUBLE): Remove.
14276 * gdbarch.c: Regenerate.
14277 * gdbarch.h: Regenerate.
14278 * Makefile.in: Remove value_h from gdbarch_h.
14279 * valops.c (coerce_float_to_double): New variable.
14280 (default_coerce_float_to_double): Remove.
14281 (standard_coerce_float_to_double): Remove.
14282 (value_arg_coerce): Use coerce_float_to_double.
14283 (_initialize_valops): Add "set coerce-float-to-double".
14284 * value.h (default_coerce_float_to_double): Remove prototype.
14285 (standard_coerce_float_to_double): Remove prototype.
14286
14287 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14288 prototyped.
14289 * mdebugread.c (parse_symbol): Likewise.
14290 * stabsread.c (define_symbol): Mark all functions as prototyped.
14291
14292 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14293 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14294 set_gdbarch_coerce_float_to_double.
14295 * arm-tdep.c (arm_gdbarch_init): Likewise.
14296 * frv-tdep.c (frv_gdbarch_init): Likewise.
14297 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14298 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14299 * mips-tdep.c (mips_gdbarch_init): Likewise.
14300 (mips_coerce_float_to_double): Remove.
14301 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14302 (rs6000_coerce_float_to_double): Remove.
14303 * s390-tdep.c (s390_gdbarch_init): Likewise.
14304 * sh-tdep.c (sh_gdbarch_init): Likewise.
14305 (sh_coerce_float_to_double): Remove.
14306 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14307 (sparc_coerce_float_to_double): Remove.
14308 * v850-tdep.c (v850_gdbarch_init): Likewise.
14309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14310 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14311 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14312 (hppa_coerce_float_to_double): Remove prototype.
14313 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14314
f436a26a
DJ
143152003-01-04 Daniel Jacobowitz <drow@mvista.com>
14316
14317 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14318
248f8055
DJ
143192003-01-04 Daniel Jacobowitz <drow@mvista.com>
14320
14321 Suggested by Stewart Brown <sb24@avaya.com>:
14322 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14323 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14324 (c_type_print_varspec_suffix): Likewise.
14325
72cfdc76
MK
143262003-01-04 Mark Kettenis <kettenis@gnu.org>
14327
bfd260bb
MK
14328 * configure.in: Don't set and AC_SUBST SUBDIRS.
14329 * configure: Regenerated.
14330
72cfdc76
MK
14331 * configure.in: Remove code dealing with shared libraries.
14332 * Makefile.in: Remove HLDFLAGS and HLDENV.
14333 * configure: Regenerated.
14334
c8b8a898
AC
143352003-01-04 Andrew Cagney <ac131313@redhat.com>
14336
14337 * frame.c (deprecated_frame_xmalloc): New function.
14338 (deprecated_set_frame_saved_regs_hack): New function.
14339 (deprecated_set_frame_extra_info_hack): New function.
14340 * frame.h (deprecated_frame_xmalloc): Declare.
14341 (deprecated_set_frame_saved_regs_hack): Declare.
14342 (deprecated_set_frame_extra_info_hack): Declare.
14343
14abd0fb
MK
143442003-01-04 Mark Kettenis <kettenis@gnu.org>
14345
8ee53726
MK
14346 * configure.in: Move code that provides the --enable-gdbtk option
14347 right after the code that handles the --enable-tui option, and
14348 polish it somewhat.
14349 * configure: Regenerated.
14350
14abd0fb
MK
14351 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14352 AC_CHECK_FUNCS and remove the old check for pread64.
14353 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14354 * acconfig.h (_GNU_SOURCE): Add.
14355 (HAVE_PREAD64): Remove.
14356 * configure, aclocal.m4, config.in: Regenerated.
14357
b2fb4676
AC
143582003-01-03 Andrew Cagney <ac131313@redhat.com>
14359
14360 * alpha-tdep.c: Use get_frame_saved_regs.
14361 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14362 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14363 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14364 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14365 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14366
8dcde887
MK
143672003-01-03 Mark Kettenis <kettenis@gnu.org>
14368
14369 * configure.in: Remove all use of the SUBDIRS variable; add
14370 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14371 code providing the --enable-multi-ice option, and move it right in
14372 front of the code that checks whether gdbserver is supported.
14373 Polish that too.
14374 * configure: Regenerated.
14375 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14376 @SUBDIRS@.
14377
8ccd593b
AC
143782003-01-03 Andrew Cagney <cagney@redhat.com>
14379
14380 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14381 * avr-tdep.c, cris-tdep.c: Ditto.
14382 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14383 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14384
91151a06
MK
143852003-01-03 Mark Kettenis <kettenis@gnu.org>
14386
14387 * configure.in: Remove --enable-netrom option.
14388 * configure: Regenerated.
14389
8fe84d01
MK
143902003-01-03 Mark Kettenis <kettenis@gnu.org>
14391
14392 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14393 declaration for `struct re_pattern_buffer' instead.
14394 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14395
f0394be6
JB
143962003-01-03 J. Brobecker <brobecker@gnat.com>
14397
14398 * mdebugread.c (parse_symbol): Count until the stEnd matching
14399 the structure name.
14400
27e9bf90
MK
144012003-01-02 Mark Kettenis <kettenis@gnu.org>
14402
93d331ba
MK
14403 * configure.in: Remove --with-cpu option.
14404 subscripts. Remove evil changequotes here.
14405 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14406 * config.in, configure: Regenerated.
8ffd9b1b 14407
27e9bf90
MK
14408 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14409 * configure.in: Cleanup section that sources GDB and BFD configure
14410 subscripts. Remove evil changequotes here.
14411 * config.in, configure: Regenerated.
14412
50abf9e5
AC
144132003-01-02 Andrew Cagney <ac131313@redhat.com>
14414
14415 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14416 frame accessor methods.
14417 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14418 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14419 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14420 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14421 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14422 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14423 * z8k-tdep.c: Ditto.
8ffd9b1b 14424
287c1a40
MK
144252003-01-02 Mark Kettenis <kettenis@gnu.org>
14426
f5dbc56d
MK
14427 * configure.in: Remove UI_OUT configuration code.
14428 * ada-lang.c: Update assuming UI_OUT is always true.
14429 * Makefile.in (UIOUT_CFLAGS): Remove.
14430 * configure: Regenerated.
14431 * TODO: Remove blurb about elimination of -DUI_OUT.
14432
627af7ea
MK
14433 * configure.in: Move code that provides the --enable-gdbcli,
14434 --enable-gdbmi options right before the code that handles the
14435 --enable-tui option. Polish a bit.
14436 * configure: Regenerated.
14437
06825bd1
MK
14438 * configure.in: Rewrite check for GNU regex and the
14439 --without-included regex option, and move it into the "Checks for
14440 library functions" section. This makes us use the system regex
14441 again by default on systems with version 2 of the GNU C library.
14442 This was apparently broken.
14443 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14444 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14445 * config.in, configure: Regenerated.
14446
287c1a40
MK
14447 * configure.in: Move code that provides the --enable-tui option
14448 before the "Checks for libraries" section. Polish the code
14449 somewhat and set need_curses to yes if we build the TUI. Rewrite
14450 code that looks for a library providing termcap functionality to
14451 match more closely what's done in the Readline library, and move
14452 it into to the "Checks for libraries" section.
14453 * configure: Regenerated.
14454 * Makefile.in (TERMCAP): Remove variable.
14455 * config/i386/go32.mh (TERMCAP): Remove variable.
14456
684e56bf
AC
144572003-01-02 Andrew Cagney <ac131313@redhat.com>
14458
14459 * MAINTAINERS: Mention gdb_mbuild.sh.
14460 * gdb_mbuild.sh: Rewrite.
14461
e1ea1d75
MK
144622003-01-02 Mark Kettenis <kettenis@gnu.org>
14463
14464 * configure.in: Fix typo in last change.
14465 * config.in, configure: Regenerated.
14466
1b831c93
AC
144672003-01-02 Andrew Cagney <ac131313@redhat.com>
14468
14469 * valarith.c (value_binop): Delete obsolete code and comments.
14470 * configure.host: Ditto.
14471 * buildsym.h (make_blockvector): Ditto.
14472 * buildsym.c (make_blockvector): Ditto.
14473 * defs.h (enum language): Ditto.
14474 (chill_demangle): Ditto.
14475 * elfread.c (elf_symtab_read): Ditto.
14476 * dwarfread.c (CHILL_PRODUCER): Ditto.
14477 (set_cu_language): Ditto.
14478 (handle_producer): Ditto.
14479 * expprint.c (print_subexp): Ditto.
14480 * gdbtypes.c (chill_varying_type): Ditto.
14481 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14482 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14483 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14484 (chill_varying_type): Ditto.
14485 * language.h (_LANG_chill): Ditto.
14486 * language.c (binop_result_type, integral_type): Ditto.
14487 (character_type, string_type, structured_type): Ditto.
14488 (lang_bool_type, binop_type_check): Ditto.
14489 * stabsread.h (os9k_stabs): Ditto.
14490 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14491 (define_symbol, read_type, read_struct_fields): Ditto.
14492 (read_array_type, read_enum_type, read_huge_number): Ditto.
14493 (read_range_type, start_stabs): Ditto.
14494 * symfile.c (init_filename_language_table): Ditto.
14495 (add_psymbol_with_dem_name_to_list): Ditto.
14496 * symtab.c (symbol_init_language_specific): Ditto.
14497 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14498 * symtab.h (struct general_symbol_info): Ditto.
14499 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14500 * typeprint.c (typedef_print): Ditto.
14501 * utils.c (fprintf_symbol_filtered): Ditto.
14502 * valops.c (value_cast, search_struct_field, value_slice): Delete
14503 obsolete code.
14504 (varying_to_slice): Delete function.
14505 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14506 (varying_to_slice): Delete declaration.
14507 * MAINTAINERS: Update.
14508
8bb2c122
MK
145092003-01-02 Mark Kettenis <kettenis@gnu.org>
14510
97bf5e38
MK
14511 * configure.in: Reorganize "Checks for library functions section"
14512 a bit. Remove check for `btowc' and `isascii' functions.
14513 * configure: Regenerated.
14514
5ee754fc
MK
14515 * acconfig.h (_MSE_INT_H): Remove.
14516 * configure.in: Create "Checks for header files" section, and move
14517 appropriate tests there. Don't check for objlist.h, wchar.h,
14518 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14519 misdetection fix. Also add "Checks for types", "Checks for
14520 compiler characteristics" and "Checks for library functions"
14521 sections.
14522 * config.in, configure: Regenerated.
14523
8bb2c122
MK
14524 * configure.in: Create "Checks for programs" section, and move
14525 appropriate tests there.
14526
9a156167
MK
145272003-01-01 Mark Kettenis <kettenis@gnu.org>
14528
14529 * configure.in: Create "Checks for libraries" section, and move
14530 appropriate tests there. Cleanup check for wctype in libw. Use
14531 AC_SEARCH_LIBS to see whether we need libsocket.
14532 * configure: Regenerated.
14533
a80e2bcb 14534For older changes see ChangeLog-2002
c906108c
SS
14535\f
14536Local Variables:
14537mode: change-log
14538left-margin: 8
14539fill-column: 74
14540version-control: never
14541End: