2003-11-16 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-16 Andrew Cagney <cagney@redhat.com>
2
3 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
4 (mips_fpa0_regnum, mips_regnum): New function.
5 (mips_gdbarch_init): Fill in the "regnum" fields.
6 * mips-tdep.h (struct mips_regnum): Define.
7 (mips_regnum): Declare.
8 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
9 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
10 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
11 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
12 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
13 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
14 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
15 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
16 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
17 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
18 * remote-mips.c: Include "mips-tdep.h". Update.
19 * mipsnbsd-tdep.c: Update.
20 * mipsv4-nat.c: Update.
21 * mips-tdep.c: Update.
22 * mips-nat.c: Update.
23 * mips-linux-tdep.c: Update.
24 * mips-linux-nat.c: Update.
25 * irix5-nat.c: Update.
26 * dve3900-rom.c: Include "mips-tdep.h". Update.
27 (ignore_packet): Supress GCC warning.
28 * config/mips/nm-riscos.h: Update.
29
30 2003-11-16 Andrew Cagney <cagney@redhat.com>
31
32 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
33 register_size.
34 (mips_register_raw_size): Delete function.
35 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
36 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
37 Check and set "mips64_transfers_32bit_regs_p".
38 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
39 (mips_register_convertible): Check the architecture's
40 "mips64_transfers_32bit_regs_p".
41 (set_mips64_transfers_32bit_regs): New function.
42 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
43 "set remote-mips64-transfers-32bit-regs" command. Specify
44 set_mips64_transfers_32bit_regs as the set function.
45 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
46
47 2003-11-16 Mark Kettenis <kettenis@gnu.org>
48
49 * i386-tdep.h (i386_supply_gregset): Provide prototype.
50 * i386-tdep.c (i386_supply_gregset): Make public.
51
52 2003-11-16 Andrew Cagney <cagney@redhat.com>
53
54 * mips-tdep.c (mips_register_byte): Delete function.
55 (mips_gdbarch_init): Do not set "deprecated_register_byte".
56 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
57 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
58 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
59
60 2003-11-16 Mark Kettenis <kettenis@gnu.org>
61
62 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
63
64 2003-11-16 Andrew Cagney <cagney@redhat.com>
65
66 * config/mips/linux64.mt: Delete file.
67 * config/mips/tm-linux64.h: Delete file.
68 * config/mips/tm-mips64.h: Delete file.
69 * config/mips/embed64.mt: Delete file.
70 * config/djgpp/fnchange.lst: Update.
71 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
72 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
73 * config/mips/tm-irix6.h: Update copyright. Include
74 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
75 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
76 "OP_LDGPR".
77
78 2003-11-15 Andrew Cagney <cagney@redhat.com>
79
80 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
81 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
82 n32 registers 64 bit.
83 (mips_register_raw_size, mips_register_byte): For pseudo
84 registers, use the register's pseudo size and not the
85 corresponding raw register's size.
86 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
87 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
88 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
89 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
90
91 2003-11-15 Andrew Cagney <cagney@redhat.com>
92
93 * mips-tdep.c (struct gdbarch_tdep): Delete member
94 gdb_target_is_mips64.
95 (GDB_TARGET_IS_MIPS64): Delete macro.
96 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
97 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
98 (mips_addr_bits_remove): Simplify.
99
100 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
101 register_size.
102
103 Replace MIPS_REGSIZE with mips_regsize.
104 * mips-tdep.c (mips_regsize): New function.
105 * mips-tdep.h (mips_regsize): Declare.
106 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
107 (SIZEOF_STRUCT_REG): Update.
108 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
109 (mipsnbsd_fill_reg): Update.
110 (mipsnbsd_supply_fpreg): Update.
111 (mipsnbsd_fill_fpreg): Update.
112 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
113 * mips-tdep.c (mips_register_raw_size): Update.
114 (mips_register_type): Update.
115 (SIGFRAME_BASE): Update.
116 (SIGFRAME_PC_OFF): Update.
117 (SIGFRAME_REGSAVE_OFF): Update.
118 (SIGFRAME_FPREGSAVE_OFF): Update.
119 (SIGFRAME_REG_SIZE): Update.
120 (mips32_heuristic_proc_desc): Update.
121 (print_gp_register_row): Update.
122 (mips_dump_tdep): Do not print MIPS_REGSIZE.
123 * irix5-nat.c (supply_gregset): Update.
124 (fetch_core_registers): Update.
125 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
126 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
127 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
128 (MIPS_REGISTER_BYTE): Update.
129 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
130
131 2003-11-15 Andrew Cagney <cagney@redhat.com>
132
133 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
134 USE_REGISTER_NOT_ARG.
135 * stabsread.c (define_symbol): Update.
136
137 2003-11-15 Andrew Cagney <cagney@redhat.com>
138
139 * bcache.h (deprecated_bcache): Declare.
140 (bcache): Make returned buffer constant.
141 * bcache.c (deprecated_bcache): New function.
142 (bcache_data): New function.
143 (bcache): Call bcache data.
144 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
145 (add_psymbol_with_dem_name_to_list): Ditto.
146
147 2003-11-15 Mark Kettenis <kettenis@gnu.org>
148
149 * glibc-tdep.h (struct gdbarch): Declare opaque.
150 (glibc_skip_solib_resolver): Adjust prototype.
151 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
152 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
153 (arm_linux_init_abi): Set skip_solib_resolver.
154 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
155 (i386_linux_init_abi): Set skip_solib_resolver.
156 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
157 (arm_linux_skip_solib_resolver): Remove prototype.
158 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
159 (i386_linux_skip_solib_resolver): Remove prototype.
160
161 2003-11-14 Mark Kettenis <kettenis@gnu.org>
162
163 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
164 function.
165 * gdbarch.c, gdbarch.h: Regenerate.
166 * infrun.c (handle_inferior_event): Call
167 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
168 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
169 definition.
170 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
171 prototype.
172
173 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
174
175 * libunwind-frame.c: New file.
176 * libunwind-frame.h: New file.
177 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
178 * configure.in: Add --with-libunwind option support. Define
179 HAVE_LIBUNWIND if libunwind support selected / defaulted.
180 Also check for libunwind.h and libunwind-ia64.h headers.
181 * configure: Regenerated.
182 * Makefile.in: Add support for libunwind-frame.o.
183 * config.in: Regenerated.
184
185 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
186
187 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
188 set up the ia64 linux native target method for getting the kernel
189 unwind table.
190 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
191 * inftarg.c (child_xfer_partial): Enable section of code to
192 handle TARGET_OBJECT_UNWIND_TABLE.
193 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
194
195 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
196
197 * config/arm/nbsd.mt (TM_FILE): Define.
198 * config/arm/tm-nbsd.h: New file.
199
200 2003-11-14 Andrew Cagney <cagney@redhat.com>
201
202 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
203 * ppc-sysv-tdep.c: Include "objfiles.h".
204 (ppc64_sysv_abi_push_dummy_call): Provide the
205 the FN's objfile when looking for the descriptor.
206
207 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
208 "name_of_malloc" to ".malloc".
209
210 2003-11-13 Mark Kettenis <kettenis@gnu.org>
211
212 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
213
214 2003-11-13 David Carlton <carlton@kealia.com>
215
216 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
217
218 2003-11-13 Andrew Cagney <cagney@redhat.com>
219
220 * arch-utils.h (selected_architecture_name): Declare.
221 (selected_byte_order): Declare.
222 * arch-utils.c (selected_byte_order): New function.
223 (selected_architecture_name): New function.
224 (target_architecture_auto): Make static.
225 (set_architecture_string): Make static.
226 (target_byte_order): Make static.
227 (target_byte_order_auto): Make static.
228 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
229 non-multi-arch definition.
230 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
231 (target_byte_order, target_architecture): Delete declaration.
232 (target_byte_order_auto, target_architecture_auto): Ditto.
233 * gdbarch.h: Re-generate.
234 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
235 "selected_byte_order".
236
237 2003-11-13 Andrew Cagney <cagney@redhat.com>
238
239 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
240
241 2003-11-13 Jim Blandy <jimb@redhat.com>
242
243 * cp-namespace.c: Doc fix.
244
245 2003-11-12 Michael Snyder <msnyder@redhat.com>
246
247 * sh64_tdep.c: Regularize some names.
248 (sh_sh64_register_name): Rename to sh64_register_name.
249 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
250 (sh_sh64_register_byte): Rename to sh64_register_byte.
251 (sh_sh64_build_float_register_type):
252 Rename to sh64_build_float_register_type.
253 (sh_sh64_register_convert_to_virtual):
254 Rename to sh64_register_convert_to_virtual.
255 (sh_sh64_register_convert_to_raw):
256 Rename to sh64_register_convert_to_raw.
257
258 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
259 sh64_media_reg_base_num, sh64_compact_reg_base_num,
260 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
261 sh64_extract_return_value, sh64_show_media_regs,
262 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
263 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
264 sh64_pseudo_register_read, sh64_pseudo_register_write,
265 sh64_do_pseudo_register, sh_compact_print_registers_info):
266 Delete unused variable 'tdep'.
267
268 * sh64-tdep.c: Coding standard and spelling comment fixes.
269 (sh64_extract_return_value): Replace deprecated_store_floating
270 with store_typed_floating.
271 (sh_sh64_register_convert_to_raw): Replace
272 deprecated_store_floating with store_typed_floating.
273 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
274 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
275 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
276 sh64_extract_struct_value_address, sh64_pop_frame,
277 sh64_extract_return_value, sh64_store_return_value,
278 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
279 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
280 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
281 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
282 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
283 deprecated_register_virtual_type, deprecated_register_raw_size,
284 deprecated_max_register_raw_size, or
285 deprecated_max_register_virtual_size. Instead, just set
286 gdbarch_register_type.
287 (sh_sh64_register_raw_size): Delete.
288 (sh_sh64_register_virtual_size): Delete.
289
290 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
291
292 * dwarf2read.c (struct dwarf2_cu): New type.
293
294 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
295 dwarf2_cu structure to pass down.
296
297 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
298 (add_partial_enumeration, locate_pdi_sibling, process_die)
299 (read_file_scope, read_func_scope)
300 (read_lexical_block_scope, dwarf2_get_pc_bounds)
301 (dwarf2_add_field, dwarf2_attach_fields_to_type)
302 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
303 (read_structure_scope, read_enumeration, read_array_type)
304 (read_common_block, read_namespace, read_tag_pointer_type)
305 (read_tag_ptr_to_member_type, read_tag_reference_type)
306 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
307 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
308 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
309 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
310 (read_full_die. read_attribute_value, read_attribute)
311 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
312 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
313 (die_containing_type, type_at_offset, tag_type_to_type)
314 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
315 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
316
317 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
318
319 PR breakpoints/1450
320 * breakpoint.c (insert_bp_location): Fix a logic error by returning
321 0 after a catchpoint fails.
322
323 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
324
325 * mips-tdep.c (msymbol_size): Delete.
326
327 2003-11-07 Michael Chastain <mec@shout.net>
328
329 * symtab.h (struct minimal_symbol): Add size.
330 * dbxread.c: Use it.
331 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
332 Rename to record_minimal_symbol.
333 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
334 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
335 (install_minimal_symbols): Ditto.
336 * objfiles.c (terminate_minimal_symbol_table): Ditto.
337 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
338 * m68hc11-tdep.c: Ditto.
339 * mips-tdep.c: Ditto.
340 * sh64-tdep.c: Ditto.
341
342 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
343
344 * MAINTAINERS: Change my e-mail address.
345
346 2003-11-10 Andrew Cagney <cagney@redhat.com>
347
348 * gdbarch.sh (return_value): Replace "inval" and "outval" with
349 "readbuf" and "writebuf".
350 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
351 * d10v-tdep.c (d10v_return_value): Ditto.
352 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
353 (ppc_sysv_abi_broken_return_value): Ditto.
354 (ppc64_sysv_abi_return_value): Ditto.
355 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
356 (ppc_sysv_abi_return_value): Ditto.
357 (ppc_sysv_abi_broken_return_value): Ditto.
358 (ppc64_sysv_abi_return_value): Ditto.
359 * values.c (register_value_being_returned): Update call.
360 * stack.c (return_command): Update call.
361 * gdbarch.h, gdbarch.c: Re-generate.
362
363 * target.h (struct target_ops): Order xfer buffer parameters "read
364 write" not "write read".
365 * bfd-target.c (target_bfd_xfer_partial): Update.
366 * remote.c (remote_xfer_partial): Update.
367 * inftarg.c (child_xfer_partial): Update.
368 * target.c (default_xfer_partial): Update.
369 (target_read_partial, target_write_partial): Update.
370 (debug_to_xfer_partial): Update.
371
372 * arch-utils.h, arch-utils.c: Fix typo in comment.
373
374 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
375 (gdbarch_from_bfd): Call gdbarch_find_by_info.
376 (set_gdbarch_from_file): Call
377 "deprecated_current_gdbarch_select_hack".
378
379 2003-11-09 Andrew Cagney <cagney@redhat.com>
380
381 * arch-utils.c (gdbarch_update_p): New function.
382 * gdbarch.sh (gdbarch_update_p): Delete function.
383 (find_arch_by_info, gdbarch_find_by_info): New functions.
384 (deprecated_current_gdbarch_select_hack): New function.
385 * gdbarch.c: Re-generate.
386
387 * gdbarch.sh (clear_gdbarch_swap): Delete function.
388 (swapout_gdbarch_swap): Delete function.
389 (swapin_gdbarch_swap): Delete function.
390 (init_gdbarch_swap): Delete function.
391 (initialize_non_multiarch): Delete function.
392 (current_gdbarch_swap_in_hack): New function.
393 (current_gdbarch_swap_out_hack): New function.
394 (current_gdbarch_swap_init_hack): New function.
395 * gdbarch.c: Re-generate.
396
397 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
398 parameter to "current_gdbarch". Add comment explaining why.
399 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
400 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
401 * gdbarch.c: Re-generate.
402
403 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
404 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
405 * config/s390/xm-linux.h: Delete file.
406 * config/m88k/xm-delta88v4.h: Delete stray.
407
408 * Makefile.in (arch-utils.o): Update dependencies.
409 * arch-utils.c: Include "osabi.h".
410 (gdbarch_info_fill): New function.
411 * arch-utils.h (gdbarch_info_fill): Declare.
412 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
413 * gdbarch.c: Re-generate.
414
415 2003-11-09 Mark Kettenis <kettenis@gnu.org>
416 David S. Miller <davem@redhat.com>
417
418 * glibc-tdep.c, glibc-tdep.h: New files.
419 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
420 * config/i386/linux.mt (TDEPFILES): Likewise.
421 * i386-linux-tdep.c (glibc-tdep.h): Include.
422 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
423 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
424 * arm-linux-tdep.c (glibc-tdep.h): Include.
425 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
426 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
427 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
428 (glibc_tdep_h): Define.
429 (glibc-tdep.o): Add dependencies.
430 (arm-linux-tdep.o): Update dependencies.
431 (i386-linux-tdep.o): Likewise.
432
433 2003-11-09 Andrew Cagney <cagney@redhat.com>
434
435 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
436 * config/mips/nm-irix6.h: Delete file.
437 * config/mips/nm-linux.h: Update copyright.
438 (MIPS_GNULINUX_TARGET): Delete macro.
439 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
440 * config/mips/xm-irix6.h: Delete file.
441 * config/mips/linux.mh (XM_FILE): Delete definition.
442 * config/mips/xm-linux.h: Delete file.
443
444 2003-11-09 Andrew Cagney <cagney@redhat.com>
445
446 * d10v-tdep.c (d10v_return_value): New function.
447 (d10v_use_struct_convention): Delete function.
448 (d10v_store_return_value): Delete function.
449 (d10v_extract_struct_value_address): Delete function.
450 (d10v_gdbarch_init): Set "return_value" instead of
451 "extract_return_value", "store_return_value",
452 "extract_struct_value_address", and "use_struct_convention".
453 (RET1_REGNUM): Delete const.
454
455 2003-11-09 Mark Kettenis <kettenis@gnu.org>
456
457 From David S. Miller <davem@redhat.com>:
458 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
459 * gdbarch.c, gdbarch.h: Regenerated.
460 * arch-utils.c (generic_skip_solib_resolver): New function.
461 * arch-utils.h (generic_skip_solib_resolver): New prototype.
462 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
463
464 2003-11-07 Andrew Cagney <cagney@redhat.com>
465
466 * top.c (print_gdb_version): Replace STREQ with strcmp.
467 * valops.c (value_struct_elt_for_reference): Ditto.
468 (value_struct_elt_for_reference): Ditto.
469 * symtab.c (gdb_mangle_name): Ditto.
470 (find_line_symtab): Ditto.
471 * symmisc.c (maintenance_print_symbols): Ditto.
472 * symfile.c (symbol_file_command): Ditto.
473 * stabsread.c (define_symbol, read_type): Ditto.
474 (cleanup_undefined_types, scan_file_globals): Ditto.
475 * solib.c (solib_map_sections): Ditto.
476 * solib-svr4.c (bfd_lookup_symbol): Ditto.
477 * rs6000-tdep.c (skip_prologue): Ditto.
478 * p-valprint.c (pascal_value_print): Ditto.
479 (pascal_object_is_vtbl_ptr_type): Ditto.
480 * objfiles.c (in_plt_section): Ditto.
481 * minsyms.c (lookup_minimal_symbol): Ditto.
482 (compact_minimal_symbols): Ditto.
483 (find_solib_trampoline_target): Ditto.
484 * mdebugread.c (parse_type): Ditto.
485 * language.c (set_language_command): Ditto.
486 (set_type_command, set_range_command): Ditto.
487 * f-lang.c (add_common_block): Ditto.
488 (add_common_block): Ditto.
489 (find_first_common_named): Ditto.
490 (patch_all_commons_by_name): Ditto.
491 * elfread.c (elf_locate_sections): Ditto.
492 (elf_locate_sections): Ditto.
493 (elfstab_offset_sections): Ditto.
494 * dwarf2read.c (dwarf2_locate_sections): Ditto.
495 * dbxread.c (add_old_header_file): Ditto.
496 (find_corresponding_bincl_psymtab): Ditto.
497 (read_dbx_symtab, process_one_symbol): Ditto.
498 * coffread.c (patch_opaque_types): Ditto.
499 * cli/cli-decode.c (delete_cmd): Ditto.
500 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
501 * c-typeprint.c (c_type_print_base): Ditto.
502 * breakpoint.c (bpstat_stop_status): Ditto.
503 (clear_command, breakpoint_re_set_one): Ditto.
504
505 2003-11-07 Andrew Cagney <cagney@redhat.com>
506
507 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
508 * bcache.c (struct bstring): Make "length" an unsigned short, add
509 "half_hash".
510 (struct bcache): Add "half_hash_error_count".
511 (bcache): Compute and save the "half_hash". Compare the
512 "half_hash" before comparing the length. Update
513 half_hash_error_count.
514
515 2003-11-07 Andrew Cagney <cagney@redhat.com>
516
517 * inftarg.c (child_xfer_partial): New function
518 (init_child_ops): Set "to_xfer_partial".
519
520 2003-11-07 Andrew Cagney <cagney@redhat.com>
521
522 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
523 set "return_value" instead of "use_struct_convention".
524 (ppc_linux_use_struct_convention): Delete function.
525 (ppc_linux_return_value): New function.
526 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
527 (ppc_sysv_abi_broken_return_value): New function.
528 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
529 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
530 static.
531 (ppc_sysv_abi_extract_return_value): Delete function.
532 (ppc_sysv_abi_broken_extract_return_value): Delete function.
533 (ppc_sysv_abi_store_return_value): Delete function.
534 (ppc_sysv_abi_broken_store_return_value): Delete function.
535 (ppc_sysv_abi_use_struct_convention): Delete function.
536 (ppc64_sysv_abi_use_struct_convention): Delete function.
537 (ppc64_sysv_abi_extract_return_value): Delete function.
538 (ppc64_sysv_abi_store_return_value): Delete function.
539 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
540 (ppcnbsd_init_abi): Set "return_value", instead of
541 "use_struct_convention", "extract_return_value", and
542 "store_return_value".
543 (ppcnbsd_use_struct_convention): Delete function.
544 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
545 (ppc_sysv_abi_return_value): Declare.
546 (ppc_sysv_abi_broken_return_value): Declare.
547 (ppc_sysv_abi_use_struct_convention): Delete.
548 (ppc_sysv_abi_store_return_value): Delete.
549 (ppc_sysv_abi_extract_return_value): Delete.
550 (ppc_sysv_abi_broken_store_return_value): Delete.
551 (ppc_sysv_abi_broken_extract_return_value): Delete.
552 (ppc64_sysv_abi_use_struct_convention): Delete.
553 (ppc64_sysv_abi_extract_return_value): Delete.
554 (ppc64_sysv_abi_store_return_value): Delete.
555 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
556 set "return_value" instead of "extract_return_value",
557 "store_return_value", and "use_struct_convention".
558
559 2003-11-07 Mark Kettenis <kettenis@gnu.org>
560
561 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
562
563 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
564 fscanf.
565
566 2003-11-07 Mark Kettenis <kettenis@gnu.org>
567
568 * fbsd-proc.c: Fix formatting.
569
570 2003-11-06 Kevin Buettner <kevinb@redhat.com>
571
572 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
573 Define.
574 (new_variant): Set name for iacc0_regnum.
575 (frv_register_name): Accommodate pseudo-registers.
576 (frv_register_type): Add case for iacc0_regnum.
577 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
578 (frv_gdbarch_init): Set number of pseudo registers. Establish
579 pseudo-register read/write methods.
580
581 2003-11-06 Andrew Cagney <cagney@redhat.com>
582
583 * valops.c (destructor_name_p): Replace STREQN with strncmp.
584 * top.c (command_line_input): Ditto.
585 * objc-exp.y (yylex): Ditto.
586 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
587 * jv-exp.y (yylex): Ditto.
588 * f-exp.y (yylex): Ditto.
589 * event-top.c (command_line_handler): Ditto.
590 * environ.c (get_in_environ): Ditto.
591 (set_in_environ): Ditto.
592 * dwarfread.c (handle_producer): Ditto.
593 * dbxread.c (process_one_symbol): Ditto.
594 * c-typeprint.c (c_type_print_base): Ditto.
595 * c-exp.y (yylex): Ditto.
596
597 2003-11-06 Andrew Cagney <cagney@redhat.com>
598 Jeff Johnston <jjohnstn@redhat.com>
599
600 * target.c (add_target): Only set "to_xfer_partial" when NULL.
601 (init_dummy_target): Set "to_xfer_partial".
602
603 2003-11-06 Andrew Cagney <cagney@redhat.com>
604
605 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
606 REGISTER_CONVENTION.
607
608 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
609
610 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
611 static.
612
613 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
614
615 * breakpoint.c (remove_breakpoint): Take an bp_location
616 instead of a breakpoint argument. Check the bp_location's type.
617 Fix a reversed condition for hardware breakpoints.
618
619 (insert_bp_location): Update call to remove_breakpoint.
620 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
621 (remove_hw_watchpoints): Likewise.
622 (reattach_breakpoints): Likewise.
623 (detach_breakpoints): Likewise.
624 (delete_breakpoint): Likewise.
625
626 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
627
628 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
629 (beakpoint_init_inferior): Likewise.
630 (breakpoint_here_p): Likewise. Only check addresses for software
631 or hardware breakpoints.
632 (breakpoint_inserted_here_p): Likewise.
633 (breakpoint_thread_match): Likewise. Correct comment.
634 (bpstat_have_active_hw_watchpoints): Likewise.
635 (check_duplicates): Likewise.
636
637 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
638
639 * breakpoints.c (insert_bp_location): New function, broken out
640 from insert_breakpoints. Work on an bp_location instead of a
641 breakpoint.
642 (insert_breakpoints): Use it.
643
644 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
645
646 * breakpoint.h (struct bp_location): Add section.
647 (struct breakpoint): Remove section.
648 * breakpoint.c (insert_breakpoints, remove_breakpoint)
649 (breakpoint_here_p, breakpoint_inserted_here_p)
650 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
651 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
652 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
653 section through loc.
654
655 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
656
657 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
658 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
659
660 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
661
662 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
663 arguments. Initialize owner and type for the new breakpoint
664 location item.
665 (set_raw_breakpoint): Update call to allocate_bp_location.
666
667 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
668
669 * breakpoint.h (struct bp_location): Add a chain pointer.
670 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
671 macros.
672 (bp_location_chain): New variable.
673 (allocate_bp_location): New function.
674 (set_raw_breakpoint): Use it.
675 (delete_breakpoint): Remove ->loc from the bp_location_chain.
676
677 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
678
679 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
680 (struct breakpoint): Remove address, shadow_contents, inserted,
681 requested_address, and duplicate. Add a struct bp_location.
682 * breakpoint.c (condition_command, read_memory_nobpt)
683 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
684 (reattach_breakpoints, update_breakpoints_after_exec)
685 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
686 (breakpoint_init_inferior, breakpoint_here_p)
687 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
688 (breakpoint_thread_match, bpstat_stop_status)
689 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
690 (describe_other_breakpoints, check_duplicates)
691 (make_breakpoint_permanent, create_thread_event_breakpoint)
692 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
693 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
694 (watch_command_1, print_one_exception_catchpoint)
695 (clear_command, breakpoint_re_set_one): Adjust member accesses to
696 use the breakpoint's ->loc.
697 (set_raw_breakpoint): Likewise. Initialize ->loc.
698 (delete_breakpoint): Likewise. Free ->loc.
699
700 2003-11-05 Andrew Cagney <cagney@redhat.com>
701
702 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
703 macro.
704 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
705 * config/i386/tm-cygwin.h
706 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
707 * config/powerpc/tm-linux.h
708 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
709 (at_subroutine_call_instruction_target): Delete declaration.
710 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
711 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
712 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
713
714 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
715 "struct bfd_section" and "struct bfd".
716 * target.h (struct section_table): Ditto.
717 * rs6000-nat.c (xcoff_relocate_core): Ditto.
718 * solib-svr4.c (elf_locate_base): Ditto.
719 * pa64solib.c (dld_cache_t): Ditto.
720 * objfiles.h (struct obj_section): Ditto.
721 * objfiles.c (add_to_objfile_sections): Ditto.
722 * exec.c (bfdsec_to_vmap): Ditto.
723 (add_to_section_table): Ditto.
724 (build_section_table): Ditto.
725 * corelow.c (get_core_register_section): Ditto.
726 * coffread.c (find_linenos): Ditto.
727 * elfread.c (elf_interpreter): Delete #if0'd function.
728
729 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
730 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
731 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
732 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
733
734 * arch-utils.h (generic_cannot_extract_struct_value_address):
735 Delete declaration.
736 * wince.c (_initialize_wince): Fix multi-line string.
737 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
738
739 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
740
741 * top.c (execute_command): Fix broken logic for command execution
742 while inferior is running in async mode.
743
744 2003-11-06 Mark Kettenis <kettenis@gnu.org>
745
746 * dwarf2-frame.c (execute_cfa_program): Mark register as
747 REG_SAVED_REG for DW_CFA_register opcode.
748
749 2003-11-05 Mark Kettenis <kettenis@gnu.org>
750
751 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
752 %rsp, %rip and %eflags to match ABI-change.
753
754 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
755
756 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
757 (ia64_gdbarch_init): Don't bother calculating the os.
758 Instead use the gdbarch_info struct and look at the osabi field.
759 Also use gdbarch_list_lookup_by_info() to look for a
760 candidate gdbarch.
761
762 2003-11-05 Kevin Buettner <kevinb@redhat.com>
763
764 * frv-tdep.c (frv_register_byte): Delete.
765 (frv_extract_return_value, frv_store_return_value)
766 (frv_extract_struct_value_address): Don't call frv_register_byte().
767 Convert to non-deprecated form.
768 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
769 Convert calls to set_gdbarch_deprecated_extract_return_value(),
770 set_gdbarch_deprecated_store_return_value(), and
771 set_gdbarch_deprecated_extract_struct_value_address() into
772 non-deprecated forms.
773
774 2003-11-05 Andrew Cagney <cagney@redhat.com>
775
776 * mips-tdep.c (mips_dump_tdep): Do not print
777 PRINT_EXTRA_FRAME_INFO.
778 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
779 Rename PRINT_EXTRA_FRAME_INFO.
780 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
781 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
782 (mips_print_extra_frame_info): Delete declaration.
783 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
784
785 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
786
787 * coffread.c (coff_symtab_read): Remove passing of info parameter
788 to prim_record_minimal_symbol_and_info.
789
790 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
791
792 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
793 (decode_base_type): Delete ifdeffed out code.
794
795 2003-11-04 Andrew Cagney <cagney@redhat.com>
796
797 * symtab.c (find_active_alias): Delete function.
798 (lookup_block_symbol): Delete alias code.
799 * stabsread.c (resolve_live_range): Delete function.
800 (add_live_range): Delete function.
801 (resolve_symbol_reference): Delete function.
802 (define_symbol): Delete live range and alias code.
803 (scan_file_globals): Delete alias code.
804 * symtab.h (SYMBOL_RANGES): Delete macro.
805 (struct range_list): Delete structure.
806 (struct symbol): Delete field "ranges".
807 (SYMBOL_ALIASES): Delete macro.
808 (struct alias_list): Delete structure.
809 (struct symbol): Delete field "aliases".
810
811 2003-11-04 Michael Snyder <msnyder@redhat.com>
812
813 * MAINTAINERS: Remove myself as owner of breakpoints and
814 of sparc/solaris.
815
816 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
817
818 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
819 (sh_sh4al_dsp_register_name): Ditto.
820 (sh4_nofpu_show_regs): Ditto.
821 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
822 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
823
824 2003-11-03 Andrew Cagney <cagney@redhat.com>
825
826 * bcache.c: Include "gdb_assert.h".
827 (struct bcache): Add fields "expand_count" and
828 "expand_hash_count".
829 (expand_hash_table): Update the expand counts.
830 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
831 on object sizes and hashes.
832 * Makefile.in (bcache.o): Update dependencies.
833
834 2003-11-03 Andrew Cagney <cagney@redhat.com>
835
836 * exec.c (xfer_memory): Eliminate xfer_fn.
837
838 2003-10-31 Kevin Buettner <kevinb@redhat.com>
839
840 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
841 (opcodes/frv-desc.h): Include.
842 (iacc0h_regnum, iacc0l_regnum): Define.
843 (last_spr_regnum, frv_num_regs): Update.
844 (new_variant): Don't supply default names for holes in the SPRs.
845 Supply names for iacc0h_regnum and iacc0l_regnum.
846 (frv_register_type): Use symbolic constants first_fpr_regnum and
847 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
848 builtin_type_int instead of builtin_type_int32.
849 (frv_register_sim_regno): New function.
850 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
851 * Makefile.in (gdb_sim_frv_h): Define.
852 (frv-tdep.o): Update dependencies.
853
854 2003-10-31 Andrew Cagney <cagney@redhat.com>
855
856 * avr-tdep.c (avr_frame_this_id): Do not call
857 deprecated_inside_entry_file.
858 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
859 * m32r-tdep.c (m32r_frame_this_id): Ditto.
860 * d10v-tdep.c (d10v_frame_this_id): Ditto.
861 * arm-tdep.c (arm_prologue_this_id): Ditto.
862 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
863
864 2003-10-31 Jim Blandy <jimb@redhat.com>
865
866 * elfread.c (elf_symtab_read): Allocate correct number of tail
867 elements to sectinfo structure. (Fix from Woody LaRue.)
868
869 2003-10-31 Andrew Cagney <cagney@redhat.com>
870
871 * stack.c (return_command): Use get_frame_type, instead of
872 CALL_DUMMY_HAS_COMPLETED.
873 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
874 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
875
876 2003-10-31 Mark Kettenis <kettenis@gnu.org>
877
878 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
879 explicitly specify size of array.
880 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
881 TDEP->sc_num_regs.
882
883 2003-10-31 Andrew Cagney <cagney@redhat.com>
884
885 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
886 function.
887 (s390_gdbarch_init): Set extract_struct_value_address.
888 * arch-utils.c (generic_cannot_extract_struct_value_address):
889 Delete function.
890 * arch-utils.h (generic_cannot_extract_struct_value_address):
891 Delete definition.
892
893 2003-10-31 Mark Kettenis <kettenis@gnu.org>
894
895 * i386-linux-nat.c (fetch_core_registers): Remove.
896 (linux_elf_core_fns): Remove.
897 (_initialize_i386_linux_nat): Remove.
898
899 2003-10-31 Andrew Cagney <cagney@redhat.com>
900
901 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
902 "exec.h".
903 (exec_entry_point): New function.
904 (enable_break): Create a "tmp_bfd_target", use that and
905 entry_point_address when computing the relocation offset.
906 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
907 * Makefile.in (solib-svr4.o): Update dependencies.
908
909 2003-10-31 Andrew Cagney <cagney@redhat.com>
910
911 * defs.h (XZALLOC): Define.
912 * target.h (struct target_ops): Add "to_data";
913 * bfd-target.h, bfd-target.c: New files.
914 * Makefile.in (SFILES): Add "bfd-target.c".
915 (COMMON_OBS): Add "bfd-target.o".
916 (bfd-target.o): Specify dependencies.
917 (bfd_target_h): Define.
918 * defs.h (XZALLOC): Define.
919
920 2003-10-31 Andrew Cagney <cagney@redhat.com>
921
922 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
923 adjust_breakpoint_address.
924 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
925 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
926 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
927 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
928
929 2003-10-31 Andrew Cagney <cagney@redhat.com>
930
931 * target.h (struct target_ops): Replace "to_read_partial" and
932 "to_write_partial" with "to_xfer_partial". Update comments.
933 * target.c (debug_to_write_partial): Delete function.
934 (debug_to_xfer_partial): Replace debug_to_read_partial.
935 (add_target, update_current_target, setup_target_debug): Set
936 "to_xfer_partial" instead of "to_read_partial" and
937 "to_write_partial".
938 (default_xfer_partial): Replace "default_write_partial".
939 (default_read_partial): Delete.
940 (target_read_partial, target_write_partial): Call
941 "to_xfer_partial".
942 * remote.c (init_remote_ops): Set "to_xfer_partial".
943 (init_remote_async_ops): Ditto.
944 (remote_xfer_partial): Replace "remote_read_partial".
945
946 2003-10-31 Mark Kettenis <kettenis@gnu.org>
947
948 * i386-tdep.c (i386_supply_fpregset): Support floating-point
949 registers in `fxsave' format.
950 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
951
952 2003-10-30 Mark Kettenis <kettenis@gnu.org>
953
954 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
955 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
956 TDEP->gregset_num_regs and tdep->sizeof_gregset.
957
958 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
959 specify size of array.
960 (i386_linux_init_abi): Remove initialization of
961 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
962 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
963
964 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
965 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
966 core-regset.o.
967
968 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
969 the ELF header.
970
971 2003-10-29 Mark Kettenis <kettenis@gnu.org>
972
973 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
974 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
975 core-regset.o.
976
977 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
978
979 * corelow.c: Include "arch-utils.h", "regset.h" and
980 "gdb_assert.h".
981 (core_gdbarch): New variable.
982 (sniff_core_bfd): Don't sniff if we have support for register sets
983 in CORE_GDBARCH.
984 (core_close): Reset CORE_GDBARCH.
985 (core_open): Initialize CORE_GDBARCH.
986 (get_core_register_section): Use register sets if they are
987 supported by CORE_GDBARCH.
988 (get_core_registers): Don't print error message if we have support
989 for register sets in CORE_GDBARCH.
990
991 2003-10-29 Andrew Cagney <cagney@redhat.com>
992
993 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
994 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
995
996 2003-10-29 Mark Kettenis <kettenis@gnu.org>
997
998 * objfiles.h (clear_objfile_data): New prototype.
999 * objfiles.c (clear_objfile_data): New function.
1000 * symfile.c (reread_symbols): Clear per-objfile data.
1001
1002 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1003
1004 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1005 printf_unfiltered instead of printf_filtered for output messages.
1006 (add_symbol_file_command): Ditto.
1007 (reread_symbols): Ditto.
1008 (overlay_auto_command): Ditto.
1009 (overlay_manual_command): Ditto.
1010 (overlay_off_command): Ditto.
1011
1012 2003-10-27 Mark Kettenis <kettenis@gnu.org>
1013
1014 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1015 (gdbarch_from_bfd): New function.
1016 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1017 deprecated_select_gdbarch_hack.
1018 * arch-utils.h (gdbarch_from_bfd): New prototype.
1019
1020 2003-10-27 Andrew Cagney <cagney@redhat.com>
1021
1022 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1023 arch_info. Use warning instead of fprintf_filtered. Do not use
1024 deprecated bfd_printable_arch_mach.
1025
1026 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1027
1028 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1029 Delete.
1030 (frv_register_type): Rename from frv_register_virtual_type. Add
1031 ``struct gdbarch *'' parameter.
1032 (frv_gdbarch_init): Delete calls to the following functions:
1033 set_gdbarch_deprecated_size(),
1034 set_gdbarch_deprecated_register_bytes(),
1035 set_gdbarch_deprecated_register_raw_size(),
1036 set_gdbarch_deprecated_max_register_raw_size(),
1037 set_gdbarch_deprecated_register_virtual_size(),
1038 set_gdbarch_deprecated_max_register_virtual_size(),
1039 set_gdbarch_deprecated_register_virtual_size(),
1040 set_gdbarch_deprecated_register_virtual_type().
1041 Add call to function set_gdbarch_register_type().
1042
1043 2003-10-26 Mark Kettenis <kettenis@gnu.org>
1044
1045 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1046 FDOFF_REGNUM): Remove defines.
1047 * win32-nat.c (do_child_fetch_inferior_registers): Include
1048 "i387-tdep.h".
1049 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1050 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1051 undefine I387_ST0_REGNUM.
1052
1053 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1054 * x86-64-tdep.c (x86_64_store_return_value): Use
1055 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1056
1057 Change register numbers to enumartion values.
1058 * i386-tdep.h (enum i386_regnum): New.
1059 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1060 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1061 I386_ST0_REGNUM): Remove defines.
1062 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1063 I386_EDI_REGNUM): Remove defines.
1064
1065 2003-10-24 Andrew Cagney <cagney@redhat.com>
1066
1067 * target.c: Include "gdbcore.h".
1068 (get_target_memory, get_target_memory_unsigned): New functions.
1069 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1070 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1071 Use get_target_memory_unsigned.
1072 * Makefile.in (target.o): Update dependencies.
1073
1074 2003-10-24 Andrew Cagney <cagney@redhat.com>
1075
1076 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1077 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1078 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1079 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1080 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1081
1082 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1083 (can_run_code_for): Use the OO term "singleton".
1084
1085 2003-10-23 Andrew Cagney <cagney@redhat.com>
1086
1087 * Makefile.in (stack.o): Add $(regcache_h).
1088 * stack.c: Include "regcache.h"
1089 (return_command): Rewrite. Use get_frame_id and
1090 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1091 about unhandled return-values.
1092 * value.h (set_return_value): Delete declaration.
1093 * values.c (set_return_value): Delete function.
1094
1095 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1096
1097 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1098 (pseudo_regs): Add comment regarding register stack registers.
1099 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1100 (floatformat_valid): New static routine.
1101 (floatformat_ia64_ext): Add name field and set up is_valid routine
1102 to floatformat_valid().
1103 (examine_prologue): For the previous cfm, use
1104 frame_unwind_register()
1105 if the cfm is not stored in a register-stack register. Save the
1106 previous cfm value in the prev_cfm field. Add debug output.
1107 (ia64_frame_this_id): Use frame_id_build_special() to also register
1108 the bsp. Add debug output.
1109 (ia64_sigtramp_frame_this_id): Ditto.
1110 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1111 registers and also add some checks for framelessness before accepting
1112 current register values for fields such as return address. For cfm,
1113 use the cached prev_cfm field if available. Add comment to explain
1114 PSR logic. Add debug output.
1115 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1116 as part of initialization.
1117 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1118 calculated. Cache the bsp and cfm values.
1119 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1120 instead of using ia64_frame_prev_register() which doesn't expect most
1121 registers to be saved. The saved values for bsp and sp
1122 can be taken from the cache. Add debug output.
1123 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1124 the bsp.
1125
1126 2003-10-23 Jim Blandy <jimb@redhat.com>
1127
1128 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1129 architecture the current arch can run code for --- but not if it's
1130 a superset.
1131 (can_run_code_for): New function.
1132
1133 2003-10-22 James E Wilson <wilson@specifixinc.com>
1134
1135 * MAINTAINERS: Move myself from paper trail section back to write
1136 after approval section.
1137
1138 2003-10-22 Andrew Cagney <cagney@redhat.com>
1139
1140 * exec.h: New file.
1141 * win32-nat.c: Include "exec.h".
1142 * solib.c: Include "exec.h".
1143 * target.h (build_section_table): Delete declaration.
1144 * somsolib.c: Include "exec.h".
1145 (exec_ops): Delete extern declaration.
1146 * rs6000-nat.c: Update copyright. Include "exec.h".
1147 (exec_ops): Delete extern declaration.
1148 * pa64solib.c: Update copyright. Include "exec.h".
1149 (exec_ops): Delete extern declaration.
1150 * exec.c: Update copyright. Include "exec.h".
1151 * corelow.c: Update dependencies. Include "exec.h".
1152 * Makefile.in (exec_h): Define.
1153 (exec.o, somsolib.o): Update dependencies.
1154 (pa64solib.o, corelow.o): Update dependencies.
1155
1156 2003-10-22 Andrew Cagney <cagney@redhat.com>
1157
1158 * target.c: Include "gdb_assert.h" (target_read): Call
1159 "target_read_partial", not "target_write_partial".
1160 (default_read_partial, default_write_partial): New function.
1161 (target_read_partial, target_write_partial): Simplify, assume that
1162 there is always a read/write method.
1163 (update_current_target, add_target): Always set "to_read_partial"
1164 and "to_write_partial".
1165 (target_write, target_read): Fail on a zero byte transfer.
1166 * Makefile.in (target.o): Update dependencies.
1167 * target.h: Update copyright date.
1168 (target_object): Fix typo.
1169
1170 2003-10-22 Andrew Cagney <cagney@redhat.com>
1171
1172 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1173 multi-arch method, add "targ" parameter.
1174 (struct target_ops): Declare.
1175 * gdbarch.h, gdbarch.c: Re-generate.
1176 * Makefile.in (c-valprint.o): Update dependencies.
1177 * arch-utils.h: Update copyright.
1178 (convert_from_func_ptr_addr_identity): Declare.
1179 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1180 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1181 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1182 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1183 * infcall.c (find_function_addr, call_function_by_hand): Update.
1184 * c-valprint.c: Include "target.h".
1185 (print_function_pointer_address): Update.
1186
1187 2003-10-22 Andrew Cagney <cagney@redhat.com>
1188
1189 * target.c (target_close): New function.
1190 (debug_to_close): Use "target_close".
1191 (push_target): Use "target_close".
1192 (unpush_target): Use "target_close".
1193 (pop_target): Use "target_close".
1194 * target.h (struct target_ops): Add "to_xclose".
1195 (target_open): Delete macro. Move comment to "to_open".
1196 (target_close): Replace macro with function that takes a target.
1197 * top.c (quit_target): Pass "current_target" to "target_close".
1198
1199 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1200
1201 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1202 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1203 * symtab.h (lookup_minimal_symbol_text): Update.
1204 * breakpoint.c (create_overlay_event_breakpoint,
1205 create_longjmp_breakpoint): Update callers.
1206 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1207 * symtab.c (find_pc_sect_line): Ditto.
1208
1209 2003-10-21 Andrew Cagney <cagney@redhat.com>
1210
1211 * target.c (errno): Delete extern declaration.
1212
1213 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1214
1215 * ia64-tdep.c: Change all occurrences of
1216 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1217 (ia64_frame_prev_register): Minor whitespace change.
1218
1219 2003-10-20 Michael Chastain <mec@shout.net>
1220
1221 * config/djgpp/fnchange.lst: Add lines for:
1222 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1223 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1224 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1225 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1226 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1227 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1228 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1229
1230 2003-10-20 Andrew Cagney <cagney@redhat.com>
1231
1232 * values.c (register_value_being_returned): Update comments. Use
1233 "gdbarch_return_value" when available.
1234 (using_struct_return): Ditto.
1235 (set_return_value): Ditto. Use "gdbarch_return_value" when
1236 available.. Print a warning, and not an error, when an unhandled
1237 return type is encountered.
1238 * infcmd.c: Include "gdb_assert.h".
1239 (print_return_value): When gdbarch_return_value_p, and using
1240 struct return, assume that the value is not available.
1241 * defs.h (return_value_convention): Define.
1242 * gdbarch.sh (gdbarch_return_value): New predicate method.
1243 * gdbarch.h, gdbarch.c: Re-generate
1244 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1245
1246 2003-10-20 Andrew Cagney <cagney@redhat.com>
1247
1248 * symtab.c: Replace "struct sec" with "struct bfd_section".
1249 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1250
1251 2003-10-19 Michael Chastain <mec@shout.net>
1252
1253 * config/djgpp/fnchange.lst: Add lines for:
1254 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1255 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1256 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1257
1258 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1259
1260 * amd64fbsd-nat.c (fetch_inferior_registers,
1261 store_inferior_registers): Remove functions.
1262 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1263
1264 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1265
1266 Add NetBSD/amd64 native configuration:
1267 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1268 * amd64nbsd-tdep.c: New file.
1269 * amd64nbsd-nat.c: New file.
1270 * amd64bsd-nat.c: New file.
1271 * config/i386/nbsd64.mh: New file.
1272 * config/i386/nbsd64.mt: New file.
1273 * configure.host: Add x86_64-*-netbsd*.
1274 * configure.tgt: Add x86_64-*-netbsd*.
1275 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1276 New targets.
1277 * NEWS (New native configurations): Mention NetBSD/amd64.
1278
1279 2003-10-17 Michael Chastain <mec@shout.net>
1280
1281 * config/djgpp/fnchange.lst: Remove dead lines for:
1282 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1283 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1284 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1285 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1286 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1287 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1288 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1289 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1290 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1291 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1292 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1293 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1294 gdb/config/sparc/tm-sparclite.h,
1295 gdb/gdbtk/generic/ChangeLog-2001,
1296 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1297 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1298 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1299 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1300 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1301 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1302 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1303 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1304 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1305 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1306 itcl/iwidgets3.0.0/demos/fileselectionbox,
1307 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1308 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1309 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1310 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1311 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1312 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1313 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1314 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1315 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1316 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1317 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1318 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1319 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1320 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1321 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1322 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1323 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1324 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1325 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1326 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1327 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1328 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1329 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1330 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1331 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1332 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1333 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1334 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1335 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1336 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1337 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1338 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1339 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1340 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1341 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1342 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1343 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1344 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1345 itcl/iwidgets3.0.0/demos/scrolledframe,
1346 itcl/iwidgets3.0.0/demos/scrolledhtml,
1347 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1348 itcl/iwidgets3.0.0/demos/scrolledtext,
1349 itcl/iwidgets3.0.0/demos/selectionbox,
1350 itcl/iwidgets3.0.0/demos/selectiondialog,
1351 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1352 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1353 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1354 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1355 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1356 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1357 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1358 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1359 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1360 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1361 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1362 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1363 itcl/iwidgets3.0.0/doc/selectionbox.n,
1364 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1365 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1366 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1367 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1368 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1369 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1370 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1371 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1372 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1373 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1374 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1375 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1376 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1377 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1378 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1379 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1380 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1381 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1382 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1383 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1384 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1385 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1386 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1387 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1388 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1389 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1390 itcl/iwidgets3.0.0/tests/selectionbox.test,
1391 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1392 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1393 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1394 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1395 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1396 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1397 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1398 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1399 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1400 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1401 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1402 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1403 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1404 tk/mac/tkMacProjects.sit.hqx.
1405
1406 2003-10-17 Andrew Cagney <cagney@redhat.com>
1407
1408 * target.c (target_section_by_addr): New function.
1409 (do_xfer_memory): Use "target_section_by_addr".
1410 * target.h (target_section_by_addr): Declare.
1411
1412 * target.h (struct target_ops): Add "to_read_partial" and
1413 "to_write_partial", delete "to_query".
1414 (target_read_partial, target_write_partial): Declare.
1415 (target_read, target_write): Declare.
1416 (target_query): Delete macro.
1417 * target.c (target_read_partial): New function.
1418 (target_write_partial, target_read, target_write): New function.
1419 (update_current_target): Delete inheritance of "to_query". Add
1420 comments about "to_read_partial" and "to_write_partial".
1421 (debug_to_partial_read, debug_to_partial_write): New functions.
1422 (debug_to_query): Delete function.
1423 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1424 instead of "to_query".
1425 * remote.c (remote_read_partial): Replace "remote_query".
1426 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1427 (init_remote_async_ops): Ditto.
1428 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1429 "target_read_partial" instead of "target_query".
1430 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1431 Use "target_read_partial" instead of "target_query".
1432
1433 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1434
1435 * frame.h (struct frame_id): Add new field: special_addr.
1436 (frame_id_build_special): New prototype.
1437 * frame.c (frame_id_build_special): New function.
1438 (frame_id_build): Change to call frame_id_build_special().
1439 (frame_id_eq): Change to also test special_addr field.
1440 (frame_id_inner): Update comment.
1441
1442 2003-10-17 Andrew Cagney <cagney@redhat.com>
1443
1444 * target.c (update_current_target): Perform the target cleanup.
1445 Put the target stack beneath the squashed "current_target".
1446 (add_target): Delete disabled call to "cleanup_target".
1447 (cleanup_target): Delete function.
1448 (push_target, unpush_target): Do not call "cleanup_target".
1449
1450 2003-10-17 Andrew Cagney <cagney@redhat.com>
1451
1452 * target.c (target_stack): Change to a static target_ops.
1453 (update_current_target): Walk the "struct target_ops" stack.
1454 (pop_target, do_xfer_memory, target_info): Ditto.
1455 (find_target_beneath): Ditto.
1456 (push_target): Rewrite to use the "struct target_ops" stack.
1457 (unpush_target): Ditto.
1458 * target.h (struct target_stack_item): Delete definition.
1459 (target_stack): Delete declaration.
1460 (struct target_ops): Add field "beneath".
1461
1462 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1463
1464 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1465 declaration.
1466 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1467 (h8300_examine_prologue): Use h8300_normal_mode flag
1468 (h8300_gdbarch_init): Set architecture info for normal mode
1469
1470 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1471
1472 * remote.c (remote_protocol_vcont): New variable.
1473 (set_remote_protocol_vcont_packet_cmd): New function.
1474 (show_remote_protocol_vcont_packet_cmd): New function.
1475 (init_all_packet_configs): Handle remote_protocol_vcont.
1476 (remote_vcont_probe): New function.
1477 (remote_vcont_resume): New function.
1478 (remote_resume): Use it.
1479 (remote_async_resume): Call remote_resume.
1480 (_initialize_remote): Add verbose-resume packet commands.
1481
1482 2003-10-16 Andrew Cagney <cagney@redhat.com>
1483
1484 * infrun.c (handle_inferior_event): Add comment about
1485 "frame_id_inner" being too weak.
1486
1487 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1488
1489 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1490 second parameter, which is always null. Remove
1491 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1492 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1493 accordingly.
1494 * somsolib.c (som_solib_create_inferior_hook,
1495 som_solib_desire_dynamic_linker_symbols): Update callers.
1496 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1497
1498 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1499
1500 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1501 debug interface, SDI (Scalable Debug Interface).
1502 * NEWS: Mention m32r SDI protocol was supported.
1503 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1504 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1505
1506 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1507
1508 * ia64-linux-tdep.c: Include gdbcore.h.
1509 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1510 (ia64_linux_sigcontext_register_addr): Find the address of the
1511 sigcontext area stored in the sigframe instead of using
1512 a magic offset constant.
1513
1514 2003-10-15 Andrew Cagney <cagney@redhat.com>
1515
1516 * remote.c (remote_search): Delete function.
1517 * target.h (target_search): Delete disabled macro.
1518 (struct target_ops): Delete disabled field "to_search".
1519
1520 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1521
1522 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1523 instead of deprecated_inside_entry_file().
1524
1525 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1526
1527 * sh-tdep.c: Fix copy/paste hangover in comment.
1528 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1529 mode.
1530 (sh3e_sh4_extract_return_value): Ditto.
1531
1532 2003-10-13 Richard Henderson <rth@redhat.com>
1533
1534 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1535 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1536 match c_val_print a bit closer.
1537
1538 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1539
1540 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1541 (frv_gdbarch_adjust_breakpoint_address): New function.
1542 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1543 method.
1544
1545 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1546
1547 * breakpoint.h (struct breakpoint): Add new member
1548 ``requested_address''.
1549 * breakpoint.c (breakpoint_adjustment_warning)
1550 (adjust_breakpoint_address): New static functions.
1551 (print_it_typical): Issue warning if breakpoint's address is different
1552 from its requested address.
1553 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1554 (breakpoint_re_set_one): Set breakpoint's
1555 ``requested_address'' field. Set ``address'' field to the
1556 result of calling adjust_breakpoint_address() on the requested
1557 address.
1558
1559 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1560
1561 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1562 * gdbarch.h, gdbarch.c: Regenerate.
1563
1564 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1565
1566 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1567 TDEP->sc_num_regs.
1568
1569 * i386fbsd-tdep.c: New file.
1570 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1571 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1572 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1573 i386bsd-tdep.c.
1574 (_initialize_i386fbsd_tdep): New function.
1575 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1576 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1577 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1578 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1579 TDEP->sc_num_regs.
1580 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1581 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1582 to initialize TDEP->sc_num_regs.
1583 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1584 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1585 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1586 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1587 FreeBSD ELF OS/ABI's here.
1588 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1589 (i386fbsd-tdep.o): New target.
1590 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1591 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1592
1593 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1594 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1595 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1596 in initialization of TDEP->sc_num_regs.
1597
1598 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1599 (x86_64_init_abi): Initialize regset_from_core_section if
1600 appropriate.
1601
1602 * i386-tdep.c (i386_regset_from_core_section): New function.
1603 (i386_gdbarch_init): Initialize regset_from_core_section if
1604 appropriate.
1605 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1606
1607 * i386-tdep.h (struct regset): Declare opaque.
1608
1609 * gdbarch.sh (regset_from_core_section): New method.
1610 (struct regset): Declare opaque.
1611 * gdbarch.c, gdbarch.h: Regenerated.
1612
1613 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1614
1615 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1616 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1617 Correct test for pc within section.
1618
1619 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1620
1621 * gdbarch.sh: Remove trailing whitepsace from comments.
1622
1623 2003-10-08 Roland McGrath <roland@redhat.com>
1624
1625 * gcore.c (make_mem_sec): Function removed, folded into ...
1626 (gcore_create_callback): ... here. To omit a section, clear its
1627 SEC_LOAD bit rather than zeroing its size.
1628 Omit read-only sections only if they correspond to a known disk file.
1629 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1630
1631 2003-10-10 Michael Snyder <msnyder@redhat.com>
1632
1633 * d10v-tdep.c: Fix typo in comment.
1634
1635 2003-10-10 Andrew Cagney <cagney@redhat.com>
1636
1637 * rs6000-tdep.c (e500_store_return_value): Delete function.
1638 (e500_extract_return_value): Delete function.
1639 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1640 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1641 "ppc_sysv_abi_restore_return_value" where applicable.
1642 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1643 (ppc_sysv_abi_extract_return_value): Declare.
1644 (ppc_sysv_abi_broken_store_return_value): Declare.
1645 (ppc_sysv_abi_broken_extract_return_value): Declare.
1646 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1647 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1648 start of file.
1649 (do_ppc_sysv_return_value): New function.
1650 (ppc_sysv_abi_extract_return_value): New function.
1651 (ppc_sysv_abi_store_return_value): New function.
1652 (ppc_sysv_abi_broken_extract_return_value): New function.
1653 (ppc_sysv_abi_broken_store_return_value): New function.
1654 (ppc_sysv_abi_use_struct_convention): Call
1655 do_ppc_sysv_return_value.
1656
1657 2003-10-10 J. Brobecker <brobecker@gnat.com>
1658
1659 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1660 to lookup the main function symbol.
1661
1662 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1663
1664 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1665 types correctly.
1666 (sh_push_dummy_call_fpu): Fix argument passing rules.
1667 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1668 float types.
1669 (sh3e_sh4_store_return_value): Ditto.
1670
1671 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1672
1673 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1674 comment.
1675
1676 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1677
1678 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1679 more readable code. Accomodate passing of bitfields.
1680
1681 2003-10-10 Andrew Cagney <cagney@redhat.com>
1682
1683 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1684 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1685 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1686 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1687 (ppc64_sysv_abi_push_dummy_call): New function.
1688 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1689 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1690 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1691
1692 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1693
1694 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1695 * README: Ditto.
1696 * d10v-tdep.c: Ditto.
1697 * h8300-tdep.c: Ditto.
1698 * remote-e7000.c: Ditto.
1699 * remote-hms.c: Ditto.
1700 * ser-e7kpc.c: Ditto.
1701 * sh-stub.c: Ditto.
1702 * sh-tdep.c: Ditto.
1703 * sh-tdep.h: Ditto.
1704 * sh3-rom.c: Ditto.
1705 * sh64-tdep.c: Ditto.
1706 * top.c: Ditto.
1707 * wince.c: Ditto.
1708 * config/d10v/d10v.mt: Ditto.
1709 * config/sh/embed.mt: Ditto.
1710 * config/sh/linux.mt: Ditto.
1711 * config/sh/tm-linux.h: Ditto.
1712 * config/sh/tm-sh.h: Ditto.
1713 * config/sh/wince.mt: Ditto.
1714
1715 2003-10-09 Andrew Cagney <cagney@redhat.com>
1716
1717 * ppc-tdep.h (struct type): Declare opaque.
1718 * x86-64-tdep.h (struct regcache): Declare opaque.
1719 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1720 coding style.
1721
1722 2003-10-09 Andrew Cagney <cagney@redhat.com>
1723
1724 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1725 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1726 (SOFTWARE_SINGLE_STEP_P): Ditto.
1727 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1728 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1729 (SOFTWARE_SINGLE_STEP_P): Ditto.
1730 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1731 software_single_step to rs6000_software_single_step.
1732
1733 2003-10-09 Andrew Cagney <cagney@redhat.com>
1734
1735 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1736
1737 2003-10-09 Michael Snyder <msnyder@redhat.com>
1738
1739 * frame.h: Fix typo in comment.
1740 * dummy-frame.c: Fix typo in comment.
1741 * d10v-tdep.c: Random whitespace/comment tweaks.
1742
1743 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1744
1745 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1746 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1747 on stack.
1748
1749 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1750 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1751 in detail.
1752
1753 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1754
1755 * remote-mips.c (mips_initialize): Remove unneeded call to
1756 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1757
1758 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1759
1760 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1761 a memory pointer.
1762
1763 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1764
1765 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1766 for any lwp we resume.
1767 (running_callback): Add lwps that have pending status events
1768 against them to be considered running.
1769
1770 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1771
1772 * m32r-tdep.c : Include "dis-asm.h".
1773 * Makefile.in (m32r-tdep.o): Update dependencies.
1774
1775 2003-10-06 J. Brobecker <brobecker@gnat.com>
1776
1777 * completer.h (get_gdb_completer_word_break_characters): Delete.
1778 * completer.c: include language.h.
1779 (gdb_completer_word_break_characters): Delete.
1780 (get_gdb_completer_word_break_characters): Delete.
1781 (location_completer): Use the word break characters of the current
1782 language.
1783 (complete_line): Likewise.
1784 (line_completion_function): Likewise.
1785 (skip_quoted_chars): Likewise.
1786 * Makefile.in (completer.o): Add dependency on language.h.
1787 * top.c (init_main): Set the readline word break characters
1788 to GDB's default word break characters.
1789
1790 2003-10-06 J. Brobecker <brobecker@gnat.com>
1791
1792 * language.h (language_defn): new field, la_word_break_characters.
1793 * language.c (unknown_language_defn): Set new field to
1794 default_word_break_characters.
1795 (auto_language_defn): Likewise.
1796 (local_language_defn): Likewise.
1797 * ada-lang.c (ada_language_defn): Likewise.
1798 * c-lang.c (c_language_defn): Likewise.
1799 (cplus_language_defn): Likewise.
1800 (asm_language_defn): Likewise.
1801 (minimal_language_defn): Likewise.
1802 * f-lang.c (f_language_defn): Likewise.
1803 * jv-lang.c (java_language_defn): Likewise.
1804 * m2-lang.c (m2_language_defn): Likewise.
1805 * objc-lang.c (objc_language_defn): Likewise.
1806 * p-lang.c (pascal_language_defn): Likewise.
1807 * scm-lang.c (scm_language_defn): Likewise.
1808
1809 2003-10-06 Andrew Cagney <cagney@redhat.com>
1810
1811 * ppc-sysv-tdep.c: Re-indent.
1812
1813 2003-10-06 J. Brobecker <brobecker@gnat.com>
1814
1815 * language.h (default_word_break_characters): Add prototype.
1816 * language.c (default_word_break_characters): New function.
1817
1818 2003-10-06 Andreas Schwab <schwab@suse.de>
1819
1820 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1821 with %eax.
1822
1823 2003-10-06 Andrew Cagney <cagney@redhat.com>
1824
1825 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1826 "h8500-tdep.c".
1827 (z8k-tdep.o): Delete custom build rule.
1828
1829 2003-10-06 Andrew Cagney <cagney@redhat.com>
1830
1831 * Makefile.in: Update all dependencies.
1832
1833 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1834 No longer list PA as as obsolete candidate. List m32r as
1835 broken instead of obsolete.
1836
1837 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1838 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1839 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1840 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1841 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1842 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1843 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1844 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1845 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1846 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1847 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1848 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1849 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1850 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1851 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1852 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1853 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1854 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1855 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1856 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1857 * config/z8k/z8k.mt: Ditto.
1858
1859 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1860 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1861 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1862 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1863 sparclite were removed.
1864 * configure.host, configure.tgt: Remove corresponding tuples.
1865
1866 * breakpoint.c, breakpoint.h: Remove obsolete code.
1867 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1868 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1869 * stabsread.h, xcoffread.c: Ditto.
1870
1871 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1872 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1873 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1874 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1875
1876 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1877
1878 * f-valprint.c: Reformatting
1879
1880 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1881
1882 * x86-64-tdep.c: Remove duplicate comment.
1883
1884 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1885 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1886 names for return values. This fixes a bug since we looked at %rbx
1887 instead of %rdx.
1888
1889 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1890
1891 * x86-64-tdep.c: Include "regset.h".
1892
1893 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1894 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1895 sizeof_fpregset.
1896 * i386-tdep.c: Include "regset.h".
1897 (i386_supply_gregset): New function.
1898 (i386_supply_fpregset): New function.
1899 (i386_gdbarch_init): Initialze register set-related members of
1900 TDEP.
1901 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1902 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1903
1904 2003-10-03 Andrew Cagney <cagney@redhat.com>
1905
1906 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1907 set extract_return_value, store_return_value and
1908 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1909 ppc64_sysv_abi_store_return_value and
1910 ppc64_sysv_abi_use_struct_convention.
1911 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1912 (ppc64_sysv_abi_store_return_value): Declare.
1913 (ppc64_sysv_abi_use_struct_convention): Declare.
1914 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1915 (ppc64_sysv_abi_extract_return_value): New function.
1916 (ppc64_sysv_abi_store_return_value): New function.
1917 (ppc64_sysv_abi_use_struct_convention): New function.
1918 (ppc64_sysv_abi_return_value): New function.
1919
1920 2003-10-03 Andrew Cagney <cagney@redhat.com>
1921
1922 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1923 convert a descriptor to a function when it's in the ".opd"
1924 section.
1925
1926 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1927
1928 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1929 reg_size to keep GCC silent.
1930
1931 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1932
1933 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1934 base for DW_EH_PE_textrel encodings.
1935 (read_encoded_value): Add a DW_EH_PE_textrel case.
1936 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1937 section.
1938
1939 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1940
1941 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1942
1943 2003-10-02 Andrew Cagney <cagney@redhat.com>
1944
1945 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1946 REGISTER_RAW_SIZE.
1947 * gdbarch.h, gdbarch.c: Re-generate.
1948 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1949 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1950 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1951 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1952 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1953 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1954 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1955 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1956 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1957 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1958 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1959 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1960 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1961 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1962 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1963 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1964
1965 2003-10-02 Jim Blandy <jimb@redhat.com>
1966
1967 * dwarf2read.c (struct die_info): Doc fix.
1968
1969 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1970
1971 * sh-tdep.c: Running thru gdb_indent.sh.
1972
1973 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1974
1975 * sh-tdep.c (sh_justify_value_in_reg): New function.
1976 (sh_stack_allocsize): Ditto.
1977 (flt_argreg_array): New array used for floating point argument
1978 passing.
1979 (sh_init_flt_argreg): New function.
1980 (sh_next_flt_argreg): Ditto.
1981 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1982 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1983 Fix argument passing strategy.
1984 (sh_push_dummy_call_nofpu): Ditto.
1985
1986 2003-10-01 Andrew Cagney <cagney@redhat.com>
1987
1988 * value.h (register_value_being_returned): Declare. Replace
1989 "value_being_returned".
1990 * infcall.c (call_function_by_hand): Use
1991 register_value_being_returned.
1992 * infcmd.c (print_return_value): Call
1993 "register_value_being_returned", handle struct return locally.
1994 * values.c (register_value_being_returned): New function. Replace
1995 "value_being_returned".
1996
1997 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1998
1999 * linux-proc.c (linux_do_registers): New function.
2000 (linux_make_note_section): Use linux_do_registers in case of
2001 single threaded inferior programs.
2002
2003 2003-10-01 Andrew Cagney <cagney@redhat.com>
2004
2005 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2006 use STRUCT_ADDR. When not using "struct return convention", pass
2007 "0" to "value_being_returned". Add FIXMEs.
2008 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2009 value_being_returned. Add comments.
2010 * values.c (value_being_returned): Add fixme.
2011 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2012 (hppa_value_returned_from_stack): Add FIXME.
2013
2014 2003-09-30 David Carlton <carlton@kealia.com>
2015
2016 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2017 'has_children' and 'next' by 'child' and 'sibling'.
2018 (read_comp_unit): Rework algorithm, breaking body into
2019 read_die_and_children and read_die_and_siblings.
2020 (read_die_and_children, read_die_and_siblings): New.
2021 (read_full_die): Add 'has_children' argument; set it instead of
2022 the die's 'has_children' field. Minor formatting cleanup.
2023 (free_die_list): Use die->child and die->sibling instead of
2024 die->next.
2025 (dump_die_list): Ditto.
2026 (sibling_die): Use die->sibling.
2027 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2028 'has_children' and 'next' fields.
2029 (process_die, read_file_scope, read_func_scope)
2030 (read_lexical_block_scope, read_structure_scope)
2031 (read_enumeration, read_array_type, read_common_block)
2032 (read_namespace, read_subroutine_type, dump_die): Ditto.
2033
2034 2003-09-30 Andrew Cagney <cagney@redhat.com>
2035
2036 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2037 to 224, not 220.
2038
2039 2003-09-30 Andrew Cagney <cagney@redhat.com>
2040
2041 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2042 REGISTER_VIRTUAL_SIZE.
2043 * gdbarch.h, gdbarch.c: Regenerate.
2044 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2045 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2046 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2047
2048 2003-09-29 Andrew Cagney <cagney@redhat.com>
2049
2050 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2051 REGISTER_VIRTUAL_TYPE.
2052 * gdbarch.h, gdbarch.c: Regenerate.
2053 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2054 * sh64-tdep.c, sparc-tdep.c: Update.
2055
2056 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2057 * remote-vxmips.c (vx_read_register): Ditto.
2058 * remote-vx68.c (vx_read_register): Ditto.
2059 * gnu-nat.c (inf_validate_procs): Ditto.
2060
2061 2003-09-29 J. Brobecker <brobecker@gnat.com>
2062
2063 * infcall.c (call_function_by_hand): Fix build failure
2064 introduced in the previous change to this file.
2065
2066 2003-09-29 Andrew Cagney <cagney@redhat.com>
2067
2068 * NEWS: Mention Objective-C.
2069
2070 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2071
2072 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2073 test if the register has been saved on the stack.
2074 (arm_scan_prologue_cache): When analysing the instruction
2075 "str lr, [sp, #-4]", save the address where lr has been stored.
2076
2077 2003-09-28 Andrew Cagney <cagney@redhat.com>
2078
2079 * frame.c (frame_read_unsigned_register): Delete function.
2080 * frame.h (frame_read_unsigned_register): Delete declaration.
2081 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2082 get_frame_register_unsigned.
2083 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2084 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2085 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2086
2087 * frame.h (frame_read_register): Delete declaration.
2088 * frame.c (frame_read_register): Delete function.
2089 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2090 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2091 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2092 * mips-tdep.c (mips_register_to_value): Ditto.
2093 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2094 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2095
2096 * frame.c (frame_read_signed_register): Delete function.
2097 (frame_read_unsigned_register): Update comments.
2098 * frame.h (frame_read_signed_register): Delete declaration.
2099 * h8300-tdep.c (h8300_print_register): Use
2100 get_frame_register_signed.
2101 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2102
2103 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2104 Rename VALUE_RETURNED_FROM_STACK.
2105 * infcmd.c (print_return_value): Update.
2106 * infcall.c (call_function_by_hand): Update.
2107
2108 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2109
2110 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2111 regcache argument and reverse the order of the other two
2112 arguments. Remove local regcache variable. Determine
2113 architecture from REGCACHE. Update comments.
2114 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2115 reverse the order of the other two arguments. Remove local
2116 regcache variable. Determine architecture from REGCACHE. Update
2117 comments.
2118 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2119 prototypes. Update comments.
2120 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2121 comment.
2122 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2123 Update.
2124 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2125 * i386-interix-nat.c (supply_fpregset): Update.
2126 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2127 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2128 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2129 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2130 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2131 Update.
2132 * i386obsd-tdep.c (fetch_core_registers): Update.
2133 * i386v4-nat.c (supply_fpregset): Update.
2134 * x86-64-linux-nat.c (supply_fpregset): Update.
2135 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2136
2137 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2138
2139 * i386-tdep.h: Put opaque declarations in alphabetical
2140 order. Remove spurious whitespace.
2141 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2142 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2143 * i386-tdep.c (MM0_REGNUM): Remove define.
2144 (i386_mmx_regnum_p): Add gdbarch argument.
2145 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2146 Rewrite using new macro definitions for FPU/SSE registers.
2147 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2148 definitions from i387-tdep.h.
2149 (i386_register_name): Update.
2150 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2151 new macro definitions for FPU/SSE registers.
2152 (i386_extract_return_value): Determine whether floating-point
2153 registers are present by examining REGCACHE's architecture.
2154 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2155 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2156 FPU/SSE registers.
2157 (i386_register_type): Update.
2158 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2159 definitions for FPU registers. Use REGCACHE's architecture to
2160 determine the appropriate register numbers.
2161 (i386_pseudo_register_read, i386_pseudo_register_write,
2162 i386_register_reggroup_p): Update.
2163 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2164 TDEP->mm0_regnum.
2165 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2166 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2167 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2168 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2169 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2170 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2171 *' to `void *'.
2172 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2173 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2174 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2175 definitions for FPU/SSE registers.
2176 (FXSAVE_MXCSR_ADDR): New define.
2177 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2178 TDEP->mm0_regnum.
2179 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2180 (I387_ST0_REGNUM): Define.
2181
2182 * regcache.h (get_regcache_arch): New prototype.
2183 * regcache.c (get_regcache_arch): New function.
2184
2185 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2186 whitespace.
2187
2188 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2189 Initialize using ARRAY_SIZE.
2190
2191 2003-09-27 Andrew Cagney <cagney@redhat.com>
2192
2193 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2194 "init_frame_pc_default".
2195 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2197 * vax-tdep.c (vax_gdbarch_init): Update.
2198 * v850-tdep.c (v850_gdbarch_init): Update.
2199 * sh64-tdep.c (sh64_gdbarch_init): Update.
2200 * s390-tdep.c (s390_gdbarch_init): Update.
2201 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2202 * mcore-tdep.c (mcore_gdbarch_init): Update.
2203 * h8300-tdep.c (h8300_gdbarch_init): Update.
2204 * cris-tdep.c (cris_gdbarch_init): Update.
2205 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2206
2207 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2208
2209 * regset.h: New file.
2210 * Makefile.in (regset_h): Add.
2211
2212 2003-09-25 Andrew Cagney <cagney@redhat.com>
2213
2214 * frame.h (deprecated_frame_saved_regs): Rename
2215 get_frame_saved_regs.
2216 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2217 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2218 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2219 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2220 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2221
2222 2003-09-25 Andrew Cagney <cagney@redhat.com>
2223
2224 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2225 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2226 and Java.
2227 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2228 arm*-*-* do not use the new frame code.
2229
2230 2003-09-25 David Carlton <carlton@kealia.com>
2231
2232 * c-exp.y: Remove 'register' declarations.
2233 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2234
2235 2003-09-25 David Carlton <carlton@kealia.com>
2236
2237 * c-exp.y: Include cp-support.h. Add qualified_type.
2238 (yylex): Delete nested type hack; add comments.
2239 * cp-namespace.c (cp_lookup_nested_type): New function.
2240 * cp-support.h: Declare cp_lookup_nested_type.
2241 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2242 instead of value_struct_elt_for_reference.
2243 * valops.c: Include cp-support.h.
2244 (value_aggregate_elt): New function.
2245 (value_namespace_elt): Ditto.
2246 (value_struct_elt_for_reference): Make static.
2247 * value.h: Delete declaration of value_struct_elt_for_reference;
2248 add declaration for value_aggregate_elt.
2249 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2250 (valops.o): Ditto.
2251
2252 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2253
2254 * stack.c: Include "reggroups.h".
2255 (frame_info): Only display registers in all_reggroup.
2256 * Makefile.in (stack.o): Update dependencies.
2257
2258 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2259
2260 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2261 "add ip, sp #n" in the prologue.
2262 (arm_scan_prologue): Ditto.
2263
2264 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2265
2266 * MAINTAINERS (write after approval): Add myself.
2267
2268 2003-09-25 Andreas Schwab <schwab@suse.de>
2269
2270 * m68k-tdep.c: Include "dwarf2-frame.h".
2271 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2272 * Makefile.in (m68k-tdep.o): Update dependencies.
2273
2274 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2275
2276 * sh-tdep.c (struct frame_extra_info): Remove.
2277 (struct sh_frame_cache): New structure.
2278 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2279 (GET_TARGET_REG): Ditto but target register.
2280 (GET_PUSHED_REG): Remove.
2281 (IS_MOV_ARG_TO_REG): New macro.
2282 (IS_MOV_ARG_TO_IND_R14): New macro.
2283 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2284 (IS_MOVW_PCREL_TO_REG): New macro.
2285 (IS_MOVL_PCREL_TO_REG): New macro.
2286 (IS_SUB_REG_FROM_SP): New macro.
2287 (IS_ARG_MOV): Remove.
2288 (IS_MOV_TO_R14): Remove.
2289 (IS_RESTORE_FP): New macro.
2290 (IS_RTS): New macro.
2291 (IS_LDS): New macro.
2292 (IS_MOV_FP_SP): New macro.
2293 (IS_ADD_REG_TO_FP): New macro.
2294 (IS_ADD_IMM_FP): New macro.
2295 (sh_skip_prologue_hard_way): Remove.
2296 (sh_saved_pc_after_call): Remove.
2297 (sh_frame_chain): Remove.
2298 (sh_find_callers_reg): Remove.
2299 (sh_nofp_frame_init_saved_regs): Remove.
2300 (sh_fp_frame_init_saved_regs): Remove.
2301 (sh_init_extra_frame_info): Remove.
2302 (sh_analyze_prologue): New function.
2303 (sh_skip_prologue): Remove deprecated code. Rely on new function
2304 sh_analyze_prologue when after_prologue fails.
2305 (sh_frame_saved_pc): Remove.
2306 (sh_alloc_frame_cache): New function.
2307 (sh_frame_cache): Ditto.
2308 (sh_frame_prev_register): Ditto.
2309 (sh_frame_this_id): Ditto.
2310 (sh_frame_unwind): New structure defining the heuristic frame
2311 sniffer interface.
2312 (sh_frame_sniffer): New function.
2313 (sh_unwind_sp): Ditto.
2314 (sh_unwind_pc): Ditto.
2315 (sh_unwind_dummy_id): Ditto.
2316 (sh_frame_base_address): Ditto.
2317 (sh_frame_base): New structure defining new frame base code.
2318 (sh_in_function_epilogue_p): New function.
2319 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2320 code and to call all new code instead. Initialize dwarf2 and
2321 heuristic frame sniffer.
2322
2323 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2324
2325 * parser-defs.h (struct exp_descriptor): New definition, containing
2326 language-specific info for printing, prefixifying, dumping, and
2327 evaluating expressions.
2328 (exp_descriptor_standard): Declare new variable.
2329 (print_subexp): Make global and declare here (from expprint.c).
2330 (dump_subexp): Ditto.
2331 (dump_subexp_body_standard): Declare.
2332 (operator_length_standard): Declare.
2333 (op_name_standard): Declare.
2334 (print_subexp): Declare.
2335 (print_subexp_standard): Declare.
2336
2337 * language.h (struct language_defn): Add la_exp_desc field to hold
2338 pointer to table for language-specific operators.
2339 Remove evaluate_exp field, which is now in struct exp_descriptor.
2340
2341 * parse.c (operator_length): Move most code to new
2342 operator_length_standard function. Use language-specific information.
2343 (operator_length_standard): New function taking most code from
2344 operator_length.
2345 (exp_descriptor_standard): New constant.
2346
2347 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2348 and OP_EXTENDED_LAST.
2349
2350 * expprint.c (print_subexp): Use language-specific print_subexp.
2351 Make global; remove static declaration.
2352 Move most code to print_subexp_standard.
2353 (print_subexp_standard): New function, containing code formerly in
2354 print_subexp.
2355 (op_name): Add expression to argument signature.
2356 Use langauge-specific op_name.
2357 Move most code to op_name_standard.
2358 (op_name_standard): New function, containing code formerly in op_name.
2359 (dump_subexp): Use new version of op_name function.
2360 Use language-specific dump_subexp_body, and move most existing code to
2361 dump_subexp_body_standard.
2362 (dump_raw_expression): Use new op_name interface.
2363 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2364 (dump_subexp_body_standard): New function, containing code formerly
2365 in dump_subexp_body.
2366
2367 * language.c (unknown_language): Add default la_exp_desc field and
2368 remove evaluate_exp field.
2369 (auto_language): Ditto.
2370 (local_language): Ditto.
2371 * f-lang.c (f_language_defn): Ditto.
2372 * c-lang.c (c_language_defn): Ditto.
2373 (cplus_language_defn): Ditto.
2374 (asm_language_defn): Ditto.
2375 (minimal_language_defn): Ditto.
2376 * p-lang.c (pascal_language_defn): Ditto.
2377 * m2-lang.c (m2_language_defn): Ditto.
2378 * objc-lang.c (objc_language_defn): Ditto.
2379
2380 * jv-lang.c (exp_descriptor_java): New variable, containing
2381 Java-specific expression evaluator.
2382 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2383 field.
2384 * scm-lang.c (exp_descriptor_scm): New variable, containing
2385 Scheme-specific expression evaluator.
2386 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2387 field.
2388 * objc-lang.c (print_object_command): Take evaluate_exp from the
2389 la_exp_desc field.
2390
2391 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2392
2393 * eval.c: Include parser-defs.h for the full declaration of
2394 la_exp_desc's type.
2395 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2396
2397 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2398
2399 * parser-defs.h (operator_length): Declare.
2400
2401 * parse.c (length_of_subexp): Use operator_length to get operator
2402 lengths and arities for operators.
2403 Move most code to new operator_length function.
2404 (operator_length): New function absorbing most code from
2405 length_of_subexp.
2406 (prefixify_subexp): Remove large case and use operator_length instead.
2407 (parse_exp_1): Use renamings:
2408 dump_prefix_expression => dump_raw_expression and
2409 dump_postfix_expression => dump_prefix_expression.
2410
2411 * expression.h (dump_prefix_expression): Rename to ...
2412 (dump_raw_expression): New name.
2413 (dump_postfix_expression): Rename to ...
2414 (dump_prefix_expression): New name.
2415
2416 * expprint.c (dump_subexp): Make global. Add comment.
2417 Move most existing code to dump_subexp_body.
2418 (dump_subexp_body): New function.
2419 (dump_prefix_expression): Rename to dump_raw_expression.
2420 Remove attempt to print the expression via print_expression: it can't
2421 work before the expression is prefixified.
2422 (dump_raw_expression): Renamed from dump_prefix_expression.
2423 (dump_postfix_expression): Rename to dump_prefix_expression, since
2424 that's what it does.
2425 Remove 'note' parameter, since this routine must be used on
2426 prefixified expression.
2427 (dump_prefix_expression): Renamed from dump_postfix_expression.
2428
2429 2003-09-22 Jim Blandy <jimb@redhat.com>
2430
2431 * dwarf2read.c (read_array_type): When building the type for an
2432 array of unspecified length, make sure to choose the upper bound
2433 so that the array's total length comes out to be zero --- that's
2434 how we represent such arrays.
2435
2436 2003-09-22 Michael Chastain <mec@shout.net>
2437
2438 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2439
2440 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2441
2442 * top.c (quit_force): Fix indirect call to quit_target so
2443 a struct qt_args pointer is passed.
2444
2445 2003-09-22 Andrew Cagney <cagney@redhat.com>
2446
2447 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2448 * arch-utils.c (init_frame_pc_noop): Delete function.
2449 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2450 "init_frame_pc".
2451 * mips-tdep.c (mips_gdbarch_init): Ditto.
2452 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2453 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2454 declaration.
2455 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2456 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2457 declaration.
2458 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2459
2460 2003-09-22 Anthony Green <green@redhat.com>
2461
2462 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2463 declaration.
2464
2465 2003-09-20 Andrew Cagney <cagney@redhat.com>
2466
2467 * breakpoint.c: Eliminate ARGSUSED.
2468 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2469 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2470 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2471 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2472 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2473 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2474 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2475 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2476 * wince.c, remote-vx.c: Ditto.
2477
2478 * cli/cli-script.c: Remove "register" attributes.
2479 * config/pa/tm-hppa.h: Ditto.
2480 * cli/cli-decode.c: Ditto.
2481 * cli/cli-cmds.c: Ditto.
2482
2483 2003-09-19 Andrew Cagney <cagney@redhat.com>
2484
2485 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2486 DEPRECATED_NPC_REGNUM.
2487 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2488
2489 2003-09-19 Christopher Faylor <cgf@redhat.com>
2490
2491 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2492
2493 2003-09-19 Jim Blandy <jimb@redhat.com>
2494
2495 * macrotab.c (macro_include): Use the correct comparison to find
2496 the appropriate place for this inclusion in the list.
2497
2498 2003-09-19 Andrew Cagney <cagney@redhat.com>
2499
2500 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2501 (DEPRECATED_HPUX_TEXT_END): Define.
2502 (deprecated_hpux_text_end): Declare.
2503 (struct target_ops): Declare opaque.
2504 * hppah-nat.c (text_end): Make static.
2505 (deprecated_hpux_text_end): New function.
2506 * exec.c (text_end): Delete global variable.
2507 (NEED_TEXT_START_END): Do not define.
2508 (exec_file_attach): Replace code computing "text_end" code with
2509 call to DEPRECATED_HPUX_TEXT_END.
2510
2511 2003-09-19 Andrew Cagney <cagney@redhat.com>
2512
2513 * utils.c (align_up, align_down): New functions.
2514 * defs.h (align_up, align_down): Declare.
2515 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2516 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2517 and "align_down".
2518 (round_up, round_down): Delete functions.
2519 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2520 "align_down".
2521 (ROUND_DOWN, ROUND_UP): Delete macros.
2522 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2523 * h8300-tdep.c: Replace "round_up" and "round_down" with
2524 "align_up" and "align_down".
2525 (round_up, round_down): Delete macros.
2526 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2527 "align_down".
2528 (ROUND_UP, ROUND_DOWN): Delete macros.
2529
2530 2003-09-18 J. Brobecker <brobecker@gnat.com>
2531
2532 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2533 hard-coded constant. Use the proper machine name instead.
2534
2535 2003-09-17 Andrew Cagney <cagney@redhat.com>
2536
2537 * sparc-tdep.c (legacy_register_name): Delete function.
2538 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2539 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2540 * infcmd.c (gdb_register_name): Delete variable.
2541 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2542 REGISTER_NAME and "tm.h".
2543 * gdbarch.h, gdbarch.c: Regenerate.
2544 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2545 REGISTER_NAMES in comments.
2546 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2547 * m68klinux-nat.c (regmap): Ditto.
2548
2549 2003-09-17 Jim Blandy <jimb@redhat.com>
2550
2551 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2552
2553 2003-09-17 Andrew Cagney <cagney@redhat.com>
2554
2555 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2556 (ppcnbsd_init_abi): Set "use_struct_convention" to
2557 "ppcnbsd_use_struct_convention".
2558
2559 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2560
2561 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2562 * gdbarch.h, gdbarch.c: Regenerate.
2563 (stabs_argument_has_addr): New architecture method.
2564 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2565 * arch-utils.c: Include "buildsym.h".
2566 (default_stabs_argument_has_addr): New function.
2567 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2568 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2569
2570 2003-09-17 Andrew Cagney <cagney@redhat.com>
2571
2572 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2573 * gdbarch.h, gdbarch.c: Regenerate.
2574 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2575 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2576 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2577 * sparcnbsd-tdep.c: Update.
2578
2579 2003-09-17 Andrew Cagney <cagney@redhat.com>
2580
2581 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2582 * gdbarch.h, gdbarch.c: Regenerate.
2583 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2584 * d10v-tdep.c, frame.c: Update.
2585 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2586 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2587 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2588 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2589 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2590 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2591 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2592 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2593 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2594 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2595 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2596 * config/pa/nm-hppah.h: Update.
2597
2598 2003-09-16 Andrew Cagney <cagney@redhat.com>
2599
2600 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2601 "use_struct_convention" to "ppc_linux_use_struct_convention".
2602 (ppc_linux_use_struct_convention): New function.
2603 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2604 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2605 "rs6000_use_struct_convention".
2606 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2607 declaration.
2608 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2609 Delete function.
2610
2611 2003-09-16 Andrew Cagney <cagney@redhat.com>
2612
2613 * buildsym.c: Remove more occurances of "register".
2614 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2615 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2616 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2617 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2618 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2619 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2620 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2621 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2622
2623 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2624
2625 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2626 numbers to enumeration values.
2627 * sh-tdep.c: Accomodate above change.
2628 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2629 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2630 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2631 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2632 (IS_FPUSH): Rename from IS_FMOV.
2633 (sh_extract_struct_value_address): Remove useless comment.
2634 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2635 instead of own local values.
2636 (sh_dump_tdep): Remove.
2637 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2638 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2639
2640 2003-09-15 Andrew Cagney <cagney@redhat.com>
2641
2642 * doublest.c (convert_floatformat_to_doublest): No longer need to
2643 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2644
2645 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2646
2647 * values.c (unpack_double): Call floatformat_is_valid.
2648
2649 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2650
2651 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2652 ps_strings into a long.
2653
2654 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2655 _initialize_am64fbsd_nat.
2656
2657 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2658
2659 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2660 associated with DW_AT_ranges attribute is out of bounds.
2661
2662 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2663
2664 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2665
2666 2003-09-14 Michael Chastain <mec@shout.net>
2667
2668 * config/m68k/nm-apollo68v.h: Delete.
2669 * config/m68k/xm-apollo68v.h: Delete.
2670
2671 2003-09-14 Andrew Cagney <cagney@redhat.com>
2672
2673 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2674 * dcache.c: Update copyrights and descriptions.
2675 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2676
2677 2003-09-14 Andrew Cagney <cagney@redhat.com>
2678
2679 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2680 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2681
2682 2003-09-14 Andrew Cagney <cagney@redhat.com>
2683
2684 * alpha-nat.c: Remove some occurances of "register".
2685 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2686 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2687 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2688 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2689 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2690 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2691 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2692 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2693 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2694 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2695 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2696 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2697 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2698 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2699 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2700 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2701 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2702 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2703 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2704 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2705 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2706 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2707
2708 2003-09-13 Andrew Cagney <cagney@redhat.com>
2709
2710 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2711 * ppc-tdep.h (struct regcache): Declare opaque.
2712 * objfiles.h (struct objfile_data): Declare opaque.
2713 * cp-support.h (struct objfile): Declare opaque.
2714 * linux-nat.h (target_waitstatus): Declare opaque.
2715
2716 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2717
2718 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2719 (stabs_argument_has_addr): New architecture method.
2720 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2721 * arch-utils.c: Include "buildsym.h".
2722 (default_stabs_argument_has_addr): New function.
2723 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2724 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2725
2726 * cris-tdep.c (cris_gdbarch_init): Set
2727 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2728 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2729 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2730 * mips-tdep.c (mips_gdbarch_init): Likewise.
2731 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2732 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2733
2734 2003-09-13 Andrew Cagney <cagney@redhat.com>
2735
2736 * values.c (using_struct_return): Delete "function" and "funcaddr"
2737 parameters.
2738 * value.h (using_struct_return): Update declaration.
2739 * infcmd.c (finish_command_continuation): Update.
2740 (finish_command): Update.
2741 * infcall.c (call_function_by_hand): Update.
2742 * eval.c (evaluate_subexp_standard): Update.
2743
2744 2003-09-13 Christopher Faylor <cgf@redhat.com>
2745
2746 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2747 SSE registers since gdb will not operate correctly without this.
2748 Restore include file ordering munged in previous change.
2749 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2750
2751 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2752
2753 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2754 REG_STRUCT_HAS_ADDR.
2755 * gdbarch.c, gdbarch.h: Updated.
2756 * infcall.c (call_function_by_hand): Update.
2757 * stabsread.c (define_symbol): Updated.
2758
2759 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2760
2761 2003-09-12 Christopher Faylor <cgf@redhat.com>
2762
2763 * win32-nat.c: Reorganize so that defines used by target headers are
2764 actually defined by the system headers.
2765 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2766 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2767
2768 2003-09-12 Jim Blandy <jimb@redhat.com>
2769
2770 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2771 the file has no .data, .bss, or .rodata sections. Instead wait
2772 until we see a variable alleged to live in one of those sections.
2773
2774 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2775 .bss section, presume that any variables we find live in the
2776 .rodata section.
2777
2778 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2779 offsets for global and static variables.
2780
2781 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2782 symbol types are, by definition, in the .data section, so it is
2783 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2784 If there is no .data section, there should be no N_DATA or N_DATA
2785 | N_EXT symbols.
2786
2787 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2788
2789 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2790 (amd64fbsd_sigcontext_addr): Rewrite.
2791 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2792 with correct values.
2793 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2794 (amd64fbsd_init_abi): Fix typo.
2795
2796 2003-09-12 Andrew Cagney <cagney@redhat.com>
2797
2798 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2799 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2800
2801 2003-09-12 Andrew Cagney <cagney@redhat.com>
2802
2803 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2804 "entry_file_highpc". Update comments.
2805 * defs.h (deprecated_inside_entry_file): Rename
2806 "inside_entry_file".
2807 * blockframe.c (deprecated_inside_entry_file): Rename
2808 "inside_entry_file".
2809 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2810 * vax-tdep.c (vax_frame_chain): Update.
2811 * sh64-tdep.c (sh64_frame_chain): Update.
2812 * sh-tdep.c (sh_frame_chain): Update.
2813 * rs6000-tdep.c (rs6000_frame_chain): Update.
2814 * ns32k-tdep.c (ns32k_frame_chain): Update.
2815 * mips-tdep.c (mips_frame_chain): Update.
2816 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2817 * m32r-tdep.c (m32r_frame_this_id): Update.
2818 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2819 * frv-tdep.c (frv_frame_this_id): Update.
2820 * d10v-tdep.c (d10v_frame_this_id): Update.
2821 * cris-tdep.c (cris_frame_chain): Update.
2822 * blockframe.c (legacy_frame_chain_valid): Update.
2823 * avr-tdep.c (avr_frame_this_id): Update.
2824 * arm-tdep.c (arm_prologue_this_id): Update.
2825 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2826 * objfiles.c (objfile_relocate): Update.
2827 * mipsread.c (mipscoff_symfile_read): Update.
2828 (mipscoff_symfile_read): Update.
2829 * mdebugread.c (parse_partial_symbols): Update.
2830 * dwarfread.c (read_file_scope): Update.
2831 * dwarf2read.c (read_file_scope): Update.
2832 * dbxread.c (read_dbx_symtab): Update.
2833 (read_dbx_symtab): Update.
2834 * coffread.c (complete_symtab): Update.
2835
2836 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2837
2838 * top.c (quit_target): New static helper function.
2839 (quit_force): Moved code to quit_target(). Call quit_target()
2840 via catch_errors() to catch errors during quit.
2841
2842 2003-09-11 David Carlton <carlton@kealia.com>
2843
2844 * buildsym.c (finish_block): Use allocate_block to allocate the
2845 block.
2846 * mdebugread.c (new_block): Add FIXME.
2847
2848 2003-09-11 David Carlton <carlton@kealia.com>
2849
2850 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2851 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2852 (recursive_dump_type): Ditto.
2853 * printcmd.c (print_formatted): Ditto.
2854 * typeprint.c (print_type_scalar): Ditto.
2855 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2856 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2857 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2858 maint_cplus_cmd_list.
2859 * cp-support.c: Make maint_cplus_cmd_list extern.
2860 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2861 command.h.
2862 (lookup_symbol_file): Look in possible namespace blocks when
2863 appropriate.
2864 (initialize_namespace_symtab): New.
2865 (get_possible_namespace_block, free_namespace_block)
2866 (check_possible_namespace_symbols)
2867 (check_possible_namespace_symbols_loop)
2868 (check_one_possible_namespace_symbol)
2869 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2870 (_initialize_cp_namespace): Ditto.
2871 * block.h: Declare allocate_block.
2872 * block.c (allocate_block): New.
2873 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2874 allocate_block.
2875 * symfile.h: Update declaration of add_psymbol_to_list.
2876 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2877 question.
2878 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2879 scan_partial_symbols_call.
2880 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2881 helper functions.
2882 (add_partial_symbol): If necessary, scan mangled names for names
2883 of namespaces.
2884 (add_partial_namespace): Add NAMESPACE argument; generate partial
2885 symbols associated to namespaces.
2886 (add_partial_enumeration): Add NAMESPACE argument.
2887 (new_symbol): Allow namespace syms.
2888 (read_namespace): Generate namespace syms.
2889 * objfiles.h: Add opaque declaration of struct symtab.
2890 (struct objfile): Add cp_namespace_symtab member.
2891 * objfiles.c (allocate_objfile): Set
2892 objfile->cp_namespace_symtab.
2893 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2894 dictionary_h, command_h.
2895
2896 2003-09-11 Andrew Cagney <cagney@redhat.com>
2897
2898 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2899 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2900 near the function's end.
2901 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2902 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2903 regcache_raw_write_signed to set SP_REGNUM.
2904
2905 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2906
2907 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2908 orig_addrs is set up properly.
2909
2910 2003-09-11 Andrew Cagney <cagney@redhat.com>
2911
2912 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2913 * gdbarch.h, gdbarch.c: Re-generate.
2914 * infcall.c (call_function_by_hand): Update.
2915 * hppa-tdep.c (hppa_push_arguments): Update.
2916 * ada-lang.c (place_on_stack): Update.
2917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2918 * sparc-tdep.c (sparc_gdbarch_init): Update.
2919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2920 * hppa-tdep.c (hppa_gdbarch_init): Update.
2921 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2922 stack_align.
2923
2924 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2925
2926 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2927 register do need a frame.
2928
2929 2003-09-11 Andrew Cagney <cagney@redhat.com>
2930
2931 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2932 buildable since GDB 5.0.
2933 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2934 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2935 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2936 * irix4-nat.c: Delete file.
2937 * config/mips/irix4.mh: Delete file.
2938 * config/mips/irix3.mh: Delete file.
2939 * config/mips/irix3.mt: Delete file.
2940 * config/mips/tm-irix3.h: Delete file.
2941 * config/mips/nm-irix3.h: Delete file.
2942 * config/mips/xm-irix3.h: Delete file.
2943 * config/mips/nm-irix4.h: Delete file.
2944 * config/mips/xm-irix4.h: Delete file.
2945 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2946
2947 2003-09-10 J. Brobecker <brobecker@gnat.com>
2948
2949 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2950 * Makefile.in (hppa-tdep.o): Update dependencies.
2951
2952 2003-09-10 James E Wilson <wilson@specifixinc.com>
2953
2954 * MAINTAINERS: Change my e-mail address. Move to paper trail
2955 section.
2956
2957 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2958
2959 * MAINTAINERS (frv): New ISA entry.
2960
2961 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2962
2963 * frv-tdep.c (dis-asm.h): Include.
2964 * Makefile.in (frv-tdep.o): Update dependencies.
2965
2966 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2967
2968 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2969 Fix typo for high range of floating registers.
2970
2971 2003-09-09 David Carlton <carlton@kealia.com>
2972
2973 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2974 highpc initialization here out of scan_partial_symbols.
2975 (scan_partial_symbols): Restructure into a recursive version,
2976 calling add_partial_namespace and add_partial_enumeration when
2977 appropriate.
2978 (add_partial_namespace): New.
2979 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2980
2981 2003-09-09 Andrew Cagney <cagney@redhat.com>
2982
2983 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2984 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2985 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2986 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2987
2988 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2989 (rs6000_push_dummy_call): Set the "TOC" register.
2990
2991 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2992 methods "max_register_raw_size", "max_register_virtual_size" or
2993 "register_virtual_size".
2994
2995 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2996
2997 * MAINTAINERS: Update my e-mail address.
2998
2999 2003-09-09 Andrew Cagney <cagney@redhat.com>
3000
3001 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3002 (rs6000_push_dummy_call): Store the struct return address.
3003 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3004
3005 2003-09-09 Andrew Cagney <cagney@redhat.com>
3006
3007 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3008 "ppc_sysv_abi_push_arguments".
3009 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3010 "ppc_sysv_abi_push_arguments".
3011 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3012 instead of "push_arguments".
3013 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3014
3015 2003-09-09 Andrew Cagney <cagney@redhat.com>
3016
3017 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3018 instead of CALL_DUMMY_ADDRESS.
3019
3020 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3021
3022 * p-lang.c: Eliminate "register".
3023 * c-lang.c: Ditto.
3024 * expprint.c: Ditto.
3025 * f-lang.c: Ditto.
3026 * jv-lang.c: Ditto.
3027 * language.c: Ditto.
3028 * m2-lang.c: Ditto.
3029 * parse.c: Ditto.
3030 * scm-lang.c: Ditto.
3031 * objc-lang.c: Ditto.
3032
3033 2003-09-09 Nick Clifton <nickc@redhat.com>
3034
3035 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3036
3037 2003-09-04 Andrew Cagney <cagney@redhat.com>
3038
3039 * avr-tdep.c: Include "dis-asm.h".
3040 * cris-tdep.c: Include "dis-asm.h".
3041 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3042 instead of corresponding typedef.
3043 * h8300-tdep.c: Include "dis-asm.h".
3044 * ia64-tdep.c: Include "dis-asm.h".
3045 * i386-tdep.c: Include "dis-asm.h".
3046 (i386_print_insn): Use "struct disassemble_info" instead of
3047 corresponding typedef.
3048 * m68k-tdep.c: Include "dis-asm.h".
3049 * mcore-tdep.c: Include "dis-asm.h".
3050 * mips-tdep.c: Include "dis-asm.h".
3051 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3052 instead of corresponding typedef.
3053 * ns32k-tdep.c: Include "dis-asm.h".
3054 * s390-tdep.c: Include "dis-asm.h".
3055 * sparc-tdep.c: Include "dis-asm.h".
3056 * vax-tdep.c: Include "dis-asm.h".
3057 * v850-tdep.c: Include "dis-asm.h".
3058 * mn10300-tdep.c: Include "dis-asm.h".
3059 * rs6000-tdep.c: Include "dis-asm.h".
3060 * xstormy16-tdep.c: Include "dis-asm.h".
3061 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3062 print_insn_xstormy16.
3063 * Makefile.in (v850-tdep.o): Update dependencies.
3064 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3065 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3066 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3067 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3068 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3069 (gdbarch_h): Remove $(dis_asm_h).
3070 * disasm.c: Include "dis-asm.h".
3071 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3072 corresponding typedef.
3073 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3074 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3075 * gdbarch.sh: Do not include "dis-asm.h".
3076 (struct disassemble_info): Declare opaque.
3077 (TARGET_PRINT_INSN): Update declaration.
3078 * gdbarch.h, gdbarch.c: Re-generate.
3079
3080 2003-09-08 Andrew Cagney <cagney@redhat.com>
3081
3082 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3083 CALL_DUMMY_ADDRESS, change to a predicate.
3084 * gdbarch.h, gdbarch.c: Re-generate.
3085 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3086 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3087 * infcall.c (call_function_by_hand): Ditto.
3088 * sparc-tdep.c (sparc_push_return_address): Ditto.
3089 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3090 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3091 CALL_DUMMY_ADDRESS with entry_point_address.
3092 * v850-tdep.c (v850_push_return_address): Ditto.
3093 * s390-tdep.c (s390_push_return_address): Ditto.
3094 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3095 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3096 * mcore-tdep.c (mcore_push_return_address): Ditto.
3097 * cris-tdep.c (cris_push_return_address): Ditto.
3098 * arm-tdep.c (arm_push_return_address): Ditto.
3099
3100 2003-09-08 Andrew Cagney <cagney@redhat.com>
3101
3102 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3103 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3104 and REG_UNMODIFIED to REG_SAME_VALUE.
3105 (execute_cfa_program): Update.
3106 (dwarf2_frame_cache): Update. Initialize table to
3107 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3108 location.
3109 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3110
3111 2003-09-08 Andrew Cagney <cagney@redhat.com>
3112
3113 * gnu-nat.c: Remove "inline" function attribute.
3114 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3115
3116 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3117
3118 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3119 target.
3120
3121 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3122
3123 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3124 (frame_extra_info): Rename this struct to frv_unwind_cache.
3125 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3126 Add fields ``prev_sp'' and ``base''.
3127 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3128 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3129 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3130 Delete.
3131 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3132 Revise all callers. Fill in the unwind cache argument and make
3133 other adjustments to account for new frame mechanisms.
3134 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3135 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3136 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3137 (frv_frame_unwind, frv_frame_base): New structs.
3138 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3139 additional arguments expected by this method and adjust function
3140 body accordingly.
3141 (frv_gdbarch_init): Remove calls to the following functions:
3142 set_gdbarch_deprecated_init_frame_pc(),
3143 set_gdbarch_deprecated_saved_pc_after_call(),
3144 set_gdbarch_deprecated_frame_chain(),
3145 set_gdbarch_deprecated_frame_saved_pc(),
3146 set_gdbarch_deprecated_frame_init_saved_regs(),
3147 set_gdbarch_deprecated_push_arguments(),
3148 set_gdbarch_deprecated_push_return_address(),
3149 set_gdbarch_deprecated_pop_frame(),
3150 set_gdbarch_deprecated_call_dummy_words(),
3151 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3152 set_gdbarch_deprecated_init_extra_frame_info(),
3153 set_gdbarch_deprecated_dummy_write_sp(), and
3154 set_gdbarch_deprecated_pc_in_call_dummy().
3155 Add calls to the following functions:
3156 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3157 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3158 frame_base_set_default().
3159 * Makefile.in (frv-tdep.o): Update dependencies.
3160
3161 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3162
3163 * dwarf2-frame.c (read_encoded_value): Add support for
3164 DW_EH_PE_aligned encoding.
3165
3166 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3167
3168 * infrun.c (normal_stop): Don't print a message if the inferior
3169 has exited.
3170
3171 2003-09-08 Jim Blandy <jimb@redhat.com>
3172
3173 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3174 * dbxread.c: #include "gdb_assert.h".
3175 (read_dbx_symtab): If the objfile has no .data section, use the
3176 section index for the .bss section instead.
3177
3178 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3179
3180 * frame.c (deprecated_safe_get_selected_frame): New function.
3181 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3182 * findvar.c (read_var_value): Call it.
3183
3184 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3185
3186 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3187 (sh64-tdep.o): Add dependencies.
3188 * configure.tgt: Add FIXME to sh-*-linux*.
3189 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3190 (sh_gdbarch_init): Always set correct sh_show_regs function
3191 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3192 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3193 * sh64-tdep.c: New file, containing all sh64 related code from
3194 sh-tdep.c.
3195 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3196 * config/sh/linux.mt (TDEPFILES): Ditto.
3197 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3198 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3199 * config/sh/wince.mt (TDEPFILES): Ditto.
3200
3201 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3202
3203 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3204 (stop_wait_callback): Handle !lp->signalled also.
3205 (lin_lwp_has_pending, flush_callback): New functions.
3206 (lin_lwp_wait): Call flush_callback.
3207 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3208 (linux_proc_pending_signals): New function.
3209 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3210
3211 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3212
3213 From Nick Kelsey <nickk@ubicom.com>:
3214 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3215 when the stop PC is at the beginning of a function also.
3216
3217 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3218
3219 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3220 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3221
3222 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3223
3224 * sol-thread.c: Include "gdb_string.h".
3225
3226 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3227
3228 * gcore.c: Reorder include files in alphabetical order. Include
3229 "gdb_assert.h". Various coding style fixes.
3230 (derive_stack_segment, derive_heap_segment): Replace check for
3231 non-null BOTTOM and TOP with gdb_assert.
3232 (derive_heap_segment): Replace check for successful creation of
3233 ZERO with gdb_assert.
3234 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3235
3236 2003-09-04 Andrew Cagney <cagney@redhat.com>
3237
3238 * thread-db.c (verbose_dlsym): New function.
3239 (thread_db_load): Use verbose_dlsym
3240 (thread_db_new_objfile): Print that libthread_db was loaded, and
3241 that thread debugging was enabled.
3242
3243 2003-09-04 Andrew Cagney <cagney@redhat.com>
3244
3245 * configure.tgt: Add "mips64*-*-*" target. Delete
3246 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3247 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3248 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3249 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3250 mips*-sony-*, and mips64*-*-elf* targets.
3251 * config/mips/embedl.mt: Delete file.
3252 * config/mips/embedl64.mt: Delete file.
3253 * config/mips/mips.mt: Delete file.
3254 * config/mips/mips64.mt: Delete file.
3255 * config/mips/tm-embed.h: Delete file.
3256 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3257 * config/mips/embed64.mt: Delete out-of-date comment.
3258
3259 2003-09-04 Andrew Cagney <cagney@redhat.com>
3260
3261 * hppa-tdep.c (hppa_gdbarch_init): Set
3262 "have_nonsteppable_watchpoint".
3263 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3264 * mips-tdep.c (mips_dump_tdep): Do not print
3265 HAVE_NONSTEPPABLE_WATCHPOINT.
3266 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3267 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3268 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3269 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3270
3271 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3272
3273 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3274 unused code. Add comment.
3275
3276 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3277
3278 * breakpoint.c (watchpoint_check): Check for pc being in an
3279 epilogue if watchpoint frame couldn't be found.
3280
3281 2003-09-04 Andrew Cagney <cagney@redhat.com>
3282
3283 * Makefile.in: Re-generate all dependencies.
3284
3285 2003-09-03 Andrew Cagney <cagney@redhat.com>
3286
3287 * arch-utils.h (legacy_print_insn): Delete declaration.
3288 * arch-utils.c (legacy_print_insn): Delete function.
3289 * disasm.c (deprecated_tm_print_insn_info): Delete.
3290 (_initialize_disasm): Delete function, contained code initializing
3291 deprecated_tm_print_insn_info.
3292 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3293 (deprecated_tm_print_insn_info): Delete.
3294 (TARGET_PRINT_INSN): Do not provide a default.
3295 * gdbarch.h, gdbarch.c: Re-generate.
3296
3297 2003-09-03 Andrew Cagney <cagney@redhat.com>
3298
3299 * disasm.c (fprintf_disasm): New function.
3300 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3301 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3302 reverts 2003-08-14 change.
3303 (_initialize_disasm): Call "init_disassemble_info", instead of
3304 INIT_DISASSEMBLE_INFO_NO_ARCH.
3305
3306 2003-09-03 Michael Snyder <msnyder@redhat.com>
3307
3308 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3309
3310 2003-09-03 Andrew Cagney <cagney@redhat.com>
3311
3312 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3313 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3314 * symfile.c (syms_from_objfile): Update.
3315 (reread_symbols): `Update
3316 * exec.c (exec_file_attach): Update.
3317 (exec_file_attach): Update.
3318 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3319 2003-08-29 change.
3320 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3321
3322 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3323
3324 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3325 trad-frame.h.
3326 (arm_get_cache): Delete macro.
3327 (struct arm_prologue_cache): Update comments. Make saved_regs into
3328 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3329 to prev_sp.
3330 (thumb_scan_prologue): Update for cache changes. Don't call
3331 DEPRECATED_PC_IN_CALL_DUMMY.
3332 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3333 argument and use it in desperation search for our prologue. Do not
3334 search past the specified PC.
3335 (arm_make_prologue_cache): Simplify.
3336
3337 (arm_prologue_this_id, arm_prologue_prev_register)
3338 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3339 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3340 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3341 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3342 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3343
3344 (arm_frame_chain_valid, arm_find_callers_reg)
3345 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3346 (arm_pop_frame): Delete obsolete methods.
3347 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3348
3349 (arm_gdbarch_init): Update for new frame methods. Register prologue
3350 and sigtramp unwinders. Set the default frame base method.
3351
3352 * Makefile.in (arm-tdep.o): Update dependencies.
3353 * varobj.c (find_frame_addr_in_frame_chain): Call
3354 get_frame_base_address.
3355 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3356
3357 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3358
3359 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3360 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3361 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3362 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3363 Take NEXT_FRAME and CACHE arguments. Call
3364 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3365 Set unwound_pc in CACHE instead of modifying the frame argument.
3366 Don't bother checking the frame type when looking for sigtramp
3367 frames.
3368 (arm_make_prologue_cache, arm_frame_chain)
3369 (arm_init_extra_frame_info): New functions.
3370
3371 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3372
3373 * arm-tdep.c (arm_get_cache): Define.
3374 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3375 unwound_sp, unwound_pc, and saved_regs.
3376 (thumb_scan_prologue): Take a cache instead of the frame.
3377 (arm_scan_prologue): Likewise.
3378 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3379 instead of a temporary frame.
3380 (arm_init_extra_frame_info): Allocate and use a cache.
3381 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3382
3383 2003-09-03 Andrew Cagney <cagney@redhat.com>
3384
3385 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3386 * config/mips/wince.mt (TM_CLIBS): Ditto.
3387 * config/sh/wince.mt (TM_CLIBS): Ditto.
3388 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3389 * config/sparc/sp64.mt (CC): Delete.
3390
3391 2003-09-03 Andrew Cagney <cagney@redhat.com>
3392
3393 * defs.h: Do not include "arch-utils.h".
3394 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3395 GDB_MULTI_ARCH_PURE.
3396 * configure.in (GDB_MULTI_ARCH): Do not define.
3397 * configure, config.in: Regenerate.
3398 * configure.tgt: Do not set variable "gdb_multi_arch".
3399 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3400 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3401 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3402 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3403 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3404 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3405 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3406 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3407 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3408 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3409 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3410 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3411 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3412 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3413 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3414 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3415 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3416 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3417
3418 2003-08-30 Michael Chastain <mec@shout.net>
3419
3420 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3421 * config/m68k/nm-hp300hpux.h: Delete.
3422 * config/m68k/tm-hp300hpux.h: Delete.
3423 * config/m68k/xm-hp300hpux.h: Delete.
3424 * config/m68k/xm-hp300bsd.h: Delete.
3425 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3426 tm-hp300hpux.h, xm-hp300hpux.h.
3427 * somsolib.c: Remove comment about hp300 shared libraries.
3428
3429 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3430
3431 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3432 Only define PTRACE_GET_THREAD_AREA is not already defined.
3433 Various style fixes in code and comments and some additional
3434 spelling fixes in comments. Move after functions dealing with
3435 debug registers.
3436 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3437 Fix coding-style.
3438
3439 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3440 frame_unwind_register_unsigned instead of
3441 frame_unwind_unsigned_register.
3442
3443 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3444
3445 * configure.in: Search for gethostbyname in libnsl.
3446 * configure: Regenerated.
3447
3448 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3449
3450 * configure.in: Remove redundant AC_MSG_RESULT in check for
3451 uintptr_t in stdint.h.
3452 * configure: Regenerated.
3453
3454 * amd64-nat.h (struct regcache): Add opaque declaration.
3455
3456 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3457 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3458 Change "register array" to "register cache" in comments.
3459 (x86_64_linux_gregset64_reg_offset): New variable.
3460 (GETREGS_SUPPLIES): Remove macro.
3461 (supply_gregset): Call amd64_supply_native_gregset instead of
3462 x86_64_linux_supply_gregset.
3463 (fill_gregset): Rename `regno' to `regnum'. Call
3464 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3465 (store_regs): Rename `regno' to `regnum'.
3466 (store_fpregs): Rename `regno' to `regnum'.
3467 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3468 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3469 Reorganize function a bit.
3470 (store_inferior_registers): Rename `regno' to `regnum'. Use
3471 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3472 Reorganize function a bit.
3473 (_initialize_x86_64_linux_nat): New function.
3474 * config/i386/x86-64linux.mh.
3475
3476 2003-08-29 Andrew Cagney <cagney@redhat.com>
3477
3478 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3479 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3480 (target_remove_watchpoint): Delete macro.
3481 (target_insert_watchpoint): Delete macro.
3482 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3483 (remote_mips_stopped_by_watchpoint): Delete declaration.
3484 (remote_mips_remove_watchpoint): Delete declaration.
3485 (remote_mips_set_watchpoint): Delete declaration.
3486 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3487 * remote-mips.c (_initialize_remote_mips): Set
3488 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3489 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3490 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3491 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3492 (mips_stopped_by_watchpoint): Rename
3493 remote_mips_stopped_by_watchpoint.
3494 (mips_can_hardware_watchpoint): Rename
3495 remote_mips_can_use_hardware_watchpoint, update function
3496 signature.
3497
3498 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3499
3500 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3501 USER_DS. We haven't given them a register number yet.
3502
3503 * amd64-nat.h: New file.
3504 * amd64-nat.c: New file.
3505 * amd64fbsd-nat.c: Include "amd64-nat.h".
3506 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3507 (amd64fbsd32_r_reg_offset): New variable.
3508 (supply_gregset): Simply call amd64_supply_native_gregset.
3509 (fill_gregset): Rename `regno' to `regnum'. Simply call
3510 amd64_collect_native_gregset.
3511 (fill_fpregset): Rename `regno' to `regnum'.
3512 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3513 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3514 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3515 `fpregset_t'. Call amd64_supply_native_gregset instead of
3516 supply_gregset. Call x86_64_supply_fxsave instead of
3517 supply_fpregset.
3518 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3519 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3520 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3521 `fpregset_t'. Call amd64_collect_native_gregset instead of
3522 fill_gregset. Call x86_64_collect_fxsave instead of
3523 fill_fpregset.
3524 (_initialize_am64fbsd_nat): Initialize
3525 amd64_native_gregset32_reg_offset and
3526 amd64_native_gregset64_reg_offset.
3527 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3528
3529 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3530 null pointer. Fix typo in comment.
3531
3532 * regcache.c (supply_register): Reimplement to call
3533 regcache_raw_supply.
3534 (regcache_collect): Reimplement by calling regcache_raw_collect.
3535
3536 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3537
3538 * regcache.c (register_buffer): Consitify first argument.
3539 (regcache_raw_supply, regcache_raw_collect): New
3540 functions.
3541
3542 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3543
3544 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3545 by Nathan J. Williams.
3546
3547 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3548
3549 * lin-lwp.c (wait_lwp): New function, copied from
3550 stop_wait_callback. Clean up.
3551 (stop_wait_callback): Use wait_lwp.
3552
3553 2003-08-28 Andrew Cagney <cagney@redhat.com>
3554
3555 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3556 flavour and disassembler options.
3557 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3558 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3559 deprecated_tm_print_insn_info.
3560
3561 2003-08-27 Andrew Cagney <cagney@redhat.com>
3562
3563 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3564 Use target_read_memory.
3565 (s390_get_frame_info): Update. Do not reference
3566 deprecated_tm_print_insn_info.
3567 (s390_check_function_end, s390_is_sigreturn): Ditto.
3568
3569 2003-08-27 Andrew Cagney <cagney@redhat.com>
3570
3571 * Makefile.in (cris-tdep.o): Update dependencies.
3572 * cris-tdep.c: Include "gdb_assert.h".
3573 (cris_gdbarch_init): Set print_insn.
3574 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3575 (cris_delayed_get_disassembler): Simplify, directly call the
3576 disassembler returned by cris_get_disassembler.
3577 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3578 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3579 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3580 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3581 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3582 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3583 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3584 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3585 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3586 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3587 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3588 (gdb_print_insn_sparc): Delete function.
3589 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3590 deprecated_tm_print_insn_info.
3591 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3592 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3593 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3594 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3595 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3596 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3597 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3598 (s390_gdbarch_init): Set print_insn.
3599
3600 2003-08-27 Andrew Cagney <cagney@redhat.com>
3601
3602 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3603 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3604 * infcall.c (call_function_by_hand): Convert the entry point
3605 address into a code address.
3606
3607 2003-08-27 Andrew Cagney <cagney@redhat.com>
3608
3609 * dsrec.c: Include "gdb_string.h".
3610 * Makefile.in (dsrec.o): Update dependencies.
3611
3612 2003-08-27 Michael Chastain <mec@shout.net>
3613
3614 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3615
3616 2003-08-27 Andrew Cagney <cagney@redhat.com>
3617
3618 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3619 (alpha_osf1_init_abi): Do not set call_dummy_address.
3620
3621 2003-08-27 David Carlton <carlton@kealia.com>
3622
3623 From Randolph Chung <tausq@debian.org>:
3624 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3625 compiles with -Wformat-nonliteral -Werror.
3626
3627 2003-08-26 Jim Blandy <jimb@redhat.com>
3628
3629 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3630 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3631 bfd_lookup_symbol, since we only want symbols in code sections.
3632 (look_for_base): Pass zero as the SECT_FLAGS argument to
3633 bfd_lookup_symbol, since we're not concerned about which section
3634 the symbol is in.
3635
3636 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3637
3638 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3639 we are frameless or the return address register is already known.
3640
3641 2003-08-26 Andrew Cagney <cagney@redhat.com>
3642
3643 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3644 in size. Add comments.
3645
3646 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3647
3648 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3649 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3650
3651 2003-08-26 Jason Merrill <jason@redhat.com>
3652
3653 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3654 case out of #ifdef MIPS block.
3655
3656 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3657
3658 PR java/1322
3659 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3660 available before calling SECT_OFF_TEXT.
3661 * PROBLEMS: Remove description of java/1322.
3662
3663 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3664
3665 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3666 bof, and nat0-nat127 as pseudo-registers.
3667 (ia64_frame_cache): New struct used to cache frame info.
3668 (ia64_register_reggroup_p): New routine used to override default
3669 register grouping so registers without names are still saved and
3670 restored.
3671 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3672 pseudo values.
3673 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3674 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3675 (ia64_alloc_frame_cache): New routine to create a new
3676 ia64_frame_cache.
3677 (examine_prologue): Change prototype to add next_frame pointer.
3678 Assume frameless until otherwise proven. Verify that the cfm for
3679 current frame matches the cfm that should occur for the prologues
3680 alloc insn and if equal, mark as not frameless. At end of routine,
3681 if not frameless, calculate registers for the previous frame and store
3682 in the cache, if a cache is provided.
3683 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3684 and pass 0 for next_frame.
3685 (ia64_store_return_value): Change to use convert_typed_floating()
3686 instead of calling ia64_convert_to_raw().
3687 (ia64_extract_return_value): Change to use convert_typed_floating()
3688 instead of calling ia64_convert_to_virtual().
3689 (ia64_frame_cache): New routine to support new frame model.
3690 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3691 (ia64_frame_sniffer): Ditto.
3692 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3693 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3694 (ia64_sigtramp_frame_prev_register): Ditto.
3695 (ia64_sigtramp_frame_sniffer): Ditto.
3696 (ia64_frame_base_address): Ditto.
3697 (ia64_extract_struct_value_address): Change to issue error message.
3698 (ia64_frame_align): New routine to align sp.
3699 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3700 (ia64_push_arguments): Removed. Logic moved to
3701 ia64_push_dummy_call().
3702 (ia64_push_return_address): Ditto.
3703 (ia64_unwind_dummy_id): New function.
3704 (ia64_unwind_pc): Ditto.
3705 (ia64_convert_register_p): Ditto.
3706 (ia64_register_to_value): Ditto.
3707 (ia64_value_to_register): Ditto.
3708 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3709 (ia64_register_byte, ia64_register_raw_size): Ditto.
3710 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3711 (ia64_saved_pc_after_call): Ditto.
3712 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3713 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3714 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3715 (ia64_register_convert_to_raw): Ditto.
3716 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3717 (ia64_init_extra_frame_info): Ditto.
3718 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3719 (ia64_gdbarch_init): Remove registering of deprecated functions that
3720 are no longer used. Add registration of new gdbarch functions.
3721 Remove registering deprecated_write_sp. Replace
3722 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3723 Delete set_gdbarch_deprecated_register_convertible(),
3724 set_gdbarch_deprecated_register_convert_to_virtual(), and
3725 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3726 set_gdbarch_deprecated_register_size(),
3727 set_gdbarch_deprecated_register_bytes(),
3728 set_gdbarch_pcregnum(),
3729 set_gdbarch_deprecated_register_byte(),
3730 set_gdbarch_deprecated_register_raw_size(),
3731 set_gdbarch_deprecated_max_register_raw_size(),
3732 set_gdbarch_deprecated_register_virtual_size(),
3733 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3734 Replace set_gdbarch_deprecated_extract_return_value() with
3735 set_gdbarch_extract_return_value(). Remove calls to:
3736 set_gdbarch_deprecated_saved_pc_after_call();
3737 set_gdbarch_deprecated_frame_chain(),
3738 set_gdbarch_deprecated_frame_saved_pc(),
3739 set_gdbarch_deprecated_frame_init_saved_regs(),
3740 set_gdbarch_deprecated_get_saved_register(),
3741 set_gdbarch_deprecated_call_dummy_words(),
3742 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3743 set_gdbarch_deprecated_init_extra_frame_info(),
3744 set_gdbarch_deprecated_frame_args_address(),
3745 set_gdbarch_deprecated_frame_locals_address(),
3746 and set_gdbarch_deprecated_dummy_write_sp().
3747 Add set_gdbarch_convert_register_p(),
3748 set_gdbarch_register_to_value(),
3749 set_gdbarch_value_to_register(),
3750 set_gdbarch_push_dummy_call(),
3751 set_gdbarch_frame_align(),
3752 set_gdbarch_unwind_dummy_id(),
3753 set_gdbarch_unwind_pc(),
3754 frame_unwind_append_sniffer(),
3755 frame_unwind_append_sniffer(),
3756 and frame_base_set_default().
3757
3758 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3759
3760 * configure.tgt: Document need for special "mipsisa64" handling.
3761 (mipsisa64*-*-linux64): Handle as target linux64.
3762 (mipsisa64*-*-*): Handle as target embed64.
3763
3764 2003-08-18 Michael Chastain <mec@shout.net>
3765
3766 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3767 objfile bug.
3768
3769 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3770
3771 * i387-tdep.h: Update copyright date.
3772 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3773
3774 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3775 CFLAGS games to reflect reality.
3776
3777 2003-08-24 Andrew Cagney <cagney@redhat.com>
3778
3779 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3780 GDB_MULTI_ARCH is always non-zero.
3781 * osabi.c (_initialize_gdb_osabi): Ditto.
3782 (gdbarch_init_osabi): Ditto.
3783 * sparc-tdep.c: Ditto for #if code.
3784
3785 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3786
3787 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3788 Update comments.
3789 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3790 comments.
3791 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3792 x86_64_supply_fxsave.
3793 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3794 x86_64_supply_fxsave.
3795 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3796 x86_64_supply_fxsave.
3797
3798 2003-08-23 Andreas Jaeger <aj@suse.de>
3799
3800 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3801 i387_supply_fxsave.
3802
3803 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3804
3805 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3806 i387_supply_register.
3807 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3808 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3809 i387_supply_fsave.
3810 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3811 i387_supply_fxsave.
3812 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3813 i387_supply_fsave.
3814 * i386bsd-nat.c (supply_fpregset): Adjust call to
3815 i387_supply_fsave.
3816 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3817 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3818 supply_fpregset.
3819 (store_inferior_registers): Remove extraneous whitespace. Call
3820 i387_fill_fsave instead of fill_fpregset.
3821 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3822 (supply_fpregset): Likewise.
3823 * i386v4-nat.c (supply_fpregset): Adjust call to
3824 i387_supply_fsave.
3825 * i386-interix-nat.c (supply_fpregset): Adjust call to
3826 i387_supply_fsave.
3827 * i386-linux-nat.c (supply_fpregset): Adjust call to
3828 i387_supply_fsave.
3829 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3830 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3831 i387supply_fsave and i387_supply_fxsave.
3832 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3833 Incorporate code from `i387_supply_register.
3834 (i387_supply_register): Remove.
3835 (i387_supply_fxsave): Add `regnum' argument.
3836 Update comments.
3837 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3838 prototype.
3839 (i387_supply_register): remove prototype.
3840 Update comments.
3841
3842 2003-08-22 Michael Chastain <mec@shout.net>
3843
3844 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3845 Add lines for files in gdb/testsuite/gdb.cp/* that are
3846 still not 8.3 unique.
3847
3848 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3849
3850 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3851 TYPE_VPTR_FIELDNO is valid.
3852
3853 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3854
3855 * utils.c (set_width_command): Remove prototypes.
3856 (set_screen_size): New prototype.
3857 (init_page_info): Simplify by fetching the screen size from
3858 Readline. Call set_screen_size.
3859 (set_screen_size): New function.
3860 (set_width): Add missing whitespace in comment.
3861 (set_width_command): Call set_screen_size.
3862 (set_height_command): New function.
3863 (initialize_utils): Fix formatting. Make "set height" command
3864 call set_height_command. Remove redundant code that turns off
3865 pagination if output isn't a terminal. Remove redundant call to
3866 set_width_command.
3867
3868 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3869
3870 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3871 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3872 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3873 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3874 `case' keyword.
3875 (sparc64_register_info): Give the reister with number
3876 SPARC64_STATE_REGNUM a name.
3877 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3878 %asi and %ccr.
3879 (sparc64_push_dummy_call): Take BIAS into account when checking
3880 stcak alignment.
3881 (sparc_software_single_step): Remove assertions that check whether
3882 NPC and NNPC were zero.
3883 (sparc_supply_rwindow): Make public. Merge functionality with
3884 sparc64_supply_rwindow.
3885 (sparc_fill_rwindow): Make public. Merge functionality with
3886 sparc64_fill_rwindow.
3887 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3888 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3889 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3890 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3891 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3892
3893 * reggroups.c: Add whitespace after declarations of local
3894 variables in functions.
3895
3896 2003-08-21 Michael Chastain <mec@shout.net>
3897
3898 * gdbtypes.h: Change array bound type from an int to enum.
3899
3900 2003-08-21 Andrew Cagney <cagney@redhat.com>
3901
3902 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3903 * config/sparc/tm-sparc.h: Ditto.
3904 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3905 unconditionally.
3906 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3907
3908 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3909
3910 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3911 (register_objfile_data, set_objfile_data, objfile_data): New
3912 prototypes.
3913 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3914 prototypes.
3915 (allocate_objfile): Call objfile_alloc_data.
3916 (free_objfile): Call objfile_free_data.
3917 (struct objfile_data): New.
3918 (struct objfile_data_registration): New.
3919 (struct objfile_data_registry): New.
3920 (objfile_data_registry): New variable.
3921 (register_objfile_data): New function.
3922 (objfile_alloc_data, objfile_free_data): New functions.
3923 (set_objfile_data, objfile_data): New functions.
3924 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3925 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3926 (_initialize_dwarf2_frame): New function and prototype.
3927
3928 2003-08-21 Andrew Cagney <cagney@redhat.com>
3929
3930 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3931 a specific architecture.
3932 * arch-utils.h (set_architecture_from_arch_mach): Delete
3933 declaration.
3934 (target_architecture_hook): Delete declaration.
3935 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3936 (default_float_format): Assume GDB_MULTI_ARCH.
3937 (default_double_format): Assume GDB_MULTI_ARCH.
3938 (set_endian_from_file): Delete function.
3939 (arch_ok): Delete function.
3940 (set_arch): Delete function.
3941 (set_architecture_from_arch_mach): Delete function.
3942 (set_architecture_from_file): Delete function.
3943 (set_architecture): Assume GDB_MULTI_ARCH.
3944 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3945
3946 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3947
3948 Rewrite FreeBSD/sparc64 native configuration.
3949 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3950 * sparc64fbsd-nat.c: New file.
3951 * sparc64fbsd-tdep.c: New file.
3952 * sparc64-tdep.c sparc64-tdep.h: New files.
3953 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3954 sparc64fbsd-tdep.o): New dependencies.
3955 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3956 and sparc64fbsd-tdep.c.
3957 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3958 * config/sparc/fbsd.mh: Remove copyright notice.
3959 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3960 sparcbsd-nat.o.
3961 * config/sparc/fbsd.mt: Remove copyright notice.
3962 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3963 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3964 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3965 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3966 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3967 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3968 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3969 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3970 "sparc/tm-sp64.h".
3971 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3972 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3973
3974 2003-08-21 Michael Chastain <mec@shout.net>
3975
3976 * symtab.h: Add doco on the space critical structures and
3977 some measurements of space usage.
3978
3979 2003-08-21 Michael Snyder <msnyder@redhat.com>
3980
3981 * tracepoint.c (trace_dump_command): Trace break address
3982 is subject to DECR_PC_AFTER_BREAK.
3983 (set_traceframe_context): Make "trace_line" an int.
3984 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3985
3986 2003-08-20 Michael Snyder <msnyder@redhat.com>
3987
3988 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3989 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3990 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3991 argument passing.
3992 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3993 functions, replace sh_push_dummy_call.
3994 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3995
3996 2003-08-20 Michael Chastain <mec@shout.net>
3997
3998 * gdbtypes.h (struct main_type): Rearrange to save space.
3999
4000 2003-08-20 Michael Snyder <msnyder@redhat.com>
4001
4002 * trad-frame.c: Comment typo fix.
4003
4004 2003-08-20 Michael Snyder <msnyder@redhat.com>
4005 Kevin Buettner <kevinb@redhat.com>
4006
4007 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4008 (frv_frame_init_saved_regs): Add declaration.
4009 (frame_extra_info): Add new field ``saved_regs''.
4010 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4011 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4012 Update frame related code.
4013 (frv_extract_struct_value_address): Adjust formatting.
4014 * Makefile.in (frv-tdep.o): Update dependencies.
4015 * config/frv/tm-frv.h (target_insert_watchpoint)
4016 (target_remove_watchpoint, target_insert_hw_breakpoint)
4017 (target_remove_hw_breakpoint): Delete these macros.
4018 (remote_insert_watchpoint, remote_remove_watchpoint)
4019 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4020 these declarations.
4021
4022 2003-08-20 Michael Chastain <mec@shout.net>
4023
4024 * defs.h (ENUM_BITFIELD): New macro.
4025 * symtab.h (ENUM_BITFIELD): Use it.
4026 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4027
4028 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4029
4030 * MAINTAINERS (write after approval): Add myself.
4031
4032 2003-08-18 Andrew Cagney <cagney@redhat.com>
4033
4034 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4035 * gdbarch.h, gdbarch.c: Re-generate.
4036 * infcall.c (call_function_by_hand): Adjust the SP by
4037 frame_red_zone_size before allocating any stack space.
4038 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4039 * x86-64-tdep.c (x86_64_frame_align): New function.
4040 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4041
4042 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4043 Remove code adjusting SP so that it skips over the Red Zone.
4044
4045 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4046
4047 * NEWS (New native configurations): Mention FreeBSD/amd64.
4048
4049 2003-08-18 Andrew Cagney <cagney@redhat.com>
4050
4051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4052 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4053 "m68k_frame_p".
4054 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4055
4056 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4057
4058 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4059
4060 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4061
4062 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4063 Define.
4064 * i386-linux-nat.c: Include "linux-nat.h".
4065 (child_post_startup_inferior): New function.
4066
4067 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4068
4069 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4070 at the start of a frameless function. This probably fixes PR
4071 backtrace/1338.
4072
4073 2003-08-17 Michael Chastain <mec@shout.net>
4074
4075 * symfile.c (find_sym_fns): Remove special case for apollo target.
4076
4077 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4078
4079 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4080 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4081 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4082 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4083 (linux_supports_tracevforkdone): New function.
4084 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4085 TRACEVFORKDONE.
4086 (child_follow_fork): Handle vfork.
4087 (linux_handle_extended_wait): Likewise. Also handle exec.
4088 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4089 * NEWS: Mention fork tracing.
4090
4091 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4092
4093 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4094
4095 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4096
4097 * Makefile.in (i386-linux-nat.o): Update dependencies.
4098 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4099 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4100 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4101 * i386-linux-nat.c: Include "linux-nat.h".
4102 (child_post_startup_inferior): New function.
4103 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4104 * infptrace.c (kill_inferior): Wrap in #ifdef.
4105 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4106 attaching to each LWP.
4107 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4108 (init_lin_lwp_ops): Fill in some more operations.
4109 * linux-nat.h (linux_enable_event_reporting)
4110 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4111 prototypes.
4112 * linux-nat.c (linux_enable_event_reporting): New function.
4113 (child_post_attach, linux_child_post_startup_inferior)
4114 (child_post_startup_inferior, child_follow_fork)
4115 (linux_handle_extended_wait, kill_inferior): New functions.
4116
4117 2003-08-16 Andrew Cagney <cagney@redhat.com>
4118
4119 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4120 * gdbarch.h, gdbarch.c: Re-generate.
4121
4122 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4123
4124 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4125
4126 2003-08-16 Andrew Cagney <cagney@redhat.com>
4127
4128 * NEWS: Mention that "set prompt-escape-char" was deleted.
4129 * top.c (get_prompt_1): Delete function.
4130 (gdb_prompt_escape):
4131 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4132 prompt-escape-char" command.
4133 (MAX_PROMPT_SIZE): Delete macro.
4134 (get_prompt): Simplify, do not call get_prompt_1.
4135
4136 2003-08-16 Andrew Cagney <cagney@redhat.com>
4137
4138 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4139 -Werror. -Wformat-nonliteral problems.
4140
4141 2003-08-15 J. Brobecker <brobecker@gnat.com>
4142
4143 Further multiarching work mostly for hppa64-*-hpux11:
4144 * hppa-tdep.h: New file.
4145 * hppa-tdep.c: #include hppa-tdep.c.
4146 (hppa32_num_regs): Renamed from hppa_num_regs.
4147 (hppa64_num_regs): New constant.
4148 (hppa64_call_dummy_breakpoint_offset): New constant.
4149 (hppa32_call_dummy_length): New constant.
4150 (hppa64_call_dummy_length): New constant.
4151 (hppa32_stack_align): Make name 32bit explicit.
4152 (hppa32_register_virtual_type): Likewise.
4153 (hppa32_extract_return_value): Likewise.
4154 (hppa32_use_struct_convention): Likewise.
4155 (hppa32_store_return_value): Likewise.
4156 (hppa64_register_virtual_type): New function.
4157 (hppa64_extract_return_value): New function.
4158 (hppa64_use_struct_convention): New function.
4159 (hppa64_store_return_value): New function.
4160 (hppa_frame_locals_address): Remove declaration, function does
4161 not exist anymore.
4162 (hppa_register_byte): Add support for PA64 ABI.
4163 (hppa_gdbarch_init): Add support for PA64 ABI.
4164 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4165 Make name 32bit explicit.
4166 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4167 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4168 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4169 (hppa64_hpux_frame_base_before_sigtramp): New function.
4170 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4171 * config/pa/tm-hppa64.h: Remove macros that are no longer
4172 necessary now that the gdbarch vector is properly setup.
4173 Transform some macros into function calls. Some minor cleanup.
4174 * config/pa/tm-hppah.h: Update function calls in macros
4175 following the function renaming in hppa-hpux-tdep.c.
4176 * Makefile.in (hppa_tdep_h): New variable.
4177 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4178
4179 2003-08-14 Michael Snyder <msnyder@redhat.com>
4180
4181 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4182
4183 2003-08-13 J. Brobecker <brobecker@gnat.com>
4184
4185 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4186 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4187 routine.
4188
4189 2003-08-13 Michael Snyder <msnyder@redhat.com>
4190
4191 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4192 (frv_saved_pc_after_call): Use deprecated ftype.
4193 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4194 (frv_remote_translate_xfer_address): Remove.
4195 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4196
4197 2003-08-13 J. Brobecker <brobecker@gnat.com>
4198
4199 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4200 initialization after the common gdbarch initialization, not before.
4201
4202 2003-08-13 J. Brobecker <brobecker@gnat.com>
4203
4204 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4205 (ADDR_BITS_REMOVE): Remove, redundant.
4206
4207 2003-08-13 J. Brobecker <brobecker@gnat.com>
4208
4209 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4210 gdbarch method to clear the 2 low bits of text addresses.
4211
4212 2003-08-12 Andrew Cagney <cagney@redhat.com>
4213
4214 * Makefile.in (dsrec.o): Update dependencies.
4215 * dsrec.c: Include "gdb_assert.h".
4216 (make_srec): Use snprintf instead of sprintf, use a literal format
4217 string.
4218
4219 2003-08-12 Andrew Cagney <cagney@redhat.com>
4220
4221 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4222 FRAME_OBSTACK_ZALLOC.
4223
4224 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4225
4226 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4227 SSE registers.
4228
4229 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4230
4231 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4232 amd64fbsd_sc_reg_offset): Add extern declarations.
4233 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4234 declarations.
4235
4236 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4237
4238 * MAINTAINERS (write after approval): Update my mail address.
4239
4240 2003-08-10 Andrew Cagney <cagney@redhat.com>
4241
4242 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4243
4244 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4245
4246 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4247 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4248 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4249 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4250 i386bsd_sc_reg_offset): Add extern declarations.
4251 * i386obsd-nat.c: Include "i386-tdep.h"
4252 (_initialize_i386obsd_nat): Remove extern declarations.
4253 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4254 declarations.
4255 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4256 declarations.
4257
4258 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4259 instead of frame_read_register.
4260 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4261 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4262 SP_REGNUM.
4263 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4264 instead of frame_unwind_unsigned_register. Use
4265 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4266 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4267 instead of read_register. Use builtin_type_void_data_ptr instead
4268 of builtin_type_void_func_ptr when extracting the address of the
4269 jmp_buf.
4270 (i386_extract_return_value, i386_store_return_value,
4271 i386_pseudo_register_read, i386_pseudo_register_write): Use
4272 register_size instead REGISTER_RAW_SIZE.
4273
4274 2003-08-10 Andrew Cagney <cagney@redhat.com>
4275
4276 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4277 sprintf. Make "name" constant.
4278
4279 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4280
4281 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4282 instead of frame_read_register.
4283 (i387_print_float_info): Use get_frame_register and
4284 get_frame_register_unsigned instead of frame_register_read.
4285
4286 * i386fbsd-nat.c: Include "i386-tdep.h".
4287 (child_resume): Make `eflags' an ULONGEST. Use
4288 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4289 instead of register_read and register_write.
4290
4291 * i386bsd-nat.c (fetch_inferior_registers,
4292 store_inferior_registers): Don't use && at the end of a line.
4293 (_initialize_i386bsd_nat): Fix typo.
4294
4295 * frame.c (_initialize_frame): Add missing backslash.
4296
4297 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4298 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4299 and supply_register instead of manipulating the register buffer
4300 directly.
4301
4302 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4303 * config/i386/nm-i386sol2.h
4304 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4305
4306 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4307 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4308 instructions that GCC likes to mingle into the prologue. Fixes
4309 gdb/1253 and gdb/1255.
4310
4311 2003-08-09 Andrew Cagney <cagney@redhat.com>
4312
4313 Fix GDB PR cli/926.
4314 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4315 * command.h (add_setshow_uinteger_cmd): Declare.
4316 * frame.c (set_backtrace_cmd): New function.
4317 (show_backtrace_cmd): New function.
4318 * frame.c (_initialize_frame): Replace "set/show
4319 backtrace-below-main" with "set/show backtrace past-main". Add
4320 command "set/show backtrace limit".
4321 (backtrace_past_main): Rename "backtrace_below_main".
4322 (backtrace_limit): New variable.
4323 (get_prev_frame): Update. Check the backtrace_limit.
4324
4325 2003-08-09 Andrew Cagney <cagney@redhat.com>
4326
4327 * defs.h (xstrprintf): Declare.
4328 * utils.c (xstrprintf): New function.
4329 * breakpoint.c (insert_breakpoints): Replace sprintf and
4330 non-literal format strings, with xstrprintf and cleanups.
4331 (delete_breakpoint,breakpoint_re_set): Ditto.
4332 (commands_command, insert_breakpoints): Ditto.
4333 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4334 (break_at_finish_command_1): Ditto.
4335
4336 2003-08-09 Andrew Cagney <cagney@redhat.com>
4337
4338 * MAINTAINERS (language support): List Adam Fedor as Objective C
4339 maintainer.
4340
4341 2003-08-08 J. Brobecker <brobecker@gnat.com>
4342
4343 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4344 are now multiarched.
4345
4346 2003-08-08 J. Brobecker <brobecker@gnat.com>
4347
4348 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4349 longer necessary now that hppa64 is partially multiarch'ed.
4350
4351 2003-08-08 Andrew Cagney <cagney@redhat.com>
4352
4353 * interps.c (interp_set): Check for a NULL "old_interp".
4354
4355 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4356
4357 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4358 (install-only): Support DESTDIR.
4359 (uninstall): Likewise.
4360 (install-gdbtk): Likewise.
4361
4362 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4363
4364 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4365 contains something meaningful at all times.
4366
4367 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4368
4369 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4370
4371 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4372
4373 * MAINTAINERS (write after approval): Added self.
4374
4375 2003-08-07 Andrew Cagney <cagney@redhat.com>
4376
4377 * inferior.h (AT_SYMBOL): Define.
4378 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4379 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4380 * mips-tdep.c (mips_call_dummy_address): Delete function.
4381 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4382 set call_dummy_address.
4383
4384 2003-08-07 Andrew Cagney <cagney@redhat.com>
4385
4386 * language.c (op_error): Delete function.
4387 (binop_type_check): Delete function.
4388 * language.h (type_op_error, range_op_error): Delete macros.
4389 (op_error): Delete declaration.
4390
4391 2003-08-07 Andrew Cagney <cagney@redhat.com>
4392
4393 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4394
4395 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4396
4397 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4398 (x86_64_push_arguments): Skip the red zone.
4399
4400 2003-08-05 Andrew Cagney <cagney@redhat.com>
4401
4402 * reggroups.c (reggroup_next): Check for the final entry.
4403
4404 2003-08-04 Andrew Cagney <cagney@redhat.com>
4405
4406 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4407 * cli/cli-script.c (define_command): Call query directly, instead
4408 of passing it a buffer.
4409 * ocd.c (ocd_error): Pass error a constant format string.
4410 * remote-mips.c (mips_error): Use fputs_filtered.
4411
4412 * solib-svr4.c (_initialize_svr4_solib): Update
4413 register_gdbarch_data call.
4414 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4415
4416 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4417 (register_gdbarch_data): Delete "free" parameter. Update
4418 comments.
4419 * gdbarch.h, gdbarch.c: Re-generate.
4420 * reggroups.c (_initialize_reggroup): Update.
4421 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4422 * frame-base.c (_initialize_frame_base): Update.
4423 * frame-unwind.c (_initialize_frame_unwind): Update.
4424 * user-regs.c (_initialize_user_regs): Update.
4425 * remote.c (_initialize_remote): Update.
4426 * regcache.c (_initialize_regcache): Update.
4427
4428 * regcache.c (xfree_regcache_descr): Delete function.
4429 (_initialize_regcache): Update call to register_gdbarch_data.
4430 (init_regcache_descr, init_legacy_regcache_descr): Use
4431 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4432
4433 * remote.c (free_remote_state): Delete function.
4434 (_initialize_remote): Update register_gdbarch_data.
4435 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4436 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4437
4438 2003-08-04 Andrew Cagney <cagney@redhat.com>
4439
4440 * reggroups.c (struct reggroup_el): Define.
4441 (struct reggroups): Delete field "nr_group". Replace array
4442 "group" with a "first" to "last" linked list.
4443 (reggroups_init): Update. Allocate using gdbarch's obstack.
4444 (reggroups_free): Delete function.
4445 (add_group): Update. Add "el" parameter.
4446 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4447 (default_groups): Update.
4448 (reggroup_next): Replace reggroups.
4449 (reggroups_dump): Update.
4450 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4451 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4452 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4453
4454 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4455
4456 * Makefile.in (tui-interp.o): Update dependencies.
4457
4458 2003-08-04 David Carlton <carlton@kealia.com>
4459
4460 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4461 to internal_error call.
4462 * source.c (forward_search_command): Add "%s" format argument.
4463 (reverse_search_command): Ditto.
4464 * top.c (quit_confirm): Ditto.
4465 * cli/cli-setshow.c (do_setshow_command): Ditto.
4466 * cp-valprint.c (cp_print_class_method): Replace
4467 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4468 (cp_print_class_member): Ditto.
4469 * event-top.c (command_line_handler): Ditto.
4470 * linux-proc.c (linux_info_proc_cmd): Ditto.
4471 * p-typeprint.c (pascal_type_print_base): Ditto.
4472 * p-valprint.c (pascal_object_print_class_method): Ditto.
4473 (pascal_object_print_class_member): Ditto.
4474 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4475 * remote.c (remote_cisco_section_offsets): Ditto.
4476 * top.c (command_line_input): Ditto.
4477 * utils.c (vwarning,error_stream,quit): Ditto.
4478 * valprint.c (print_floating,print_binary_chars)
4479 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4480
4481 2003-08-04 Andrew Cagney <cagney@redhat.com>
4482
4483 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4484
4485 2003-08-02 Andrew Cagney <cagney@redhat.com>
4486
4487 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4488 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4489 amd64fbsd-nat.c.
4490
4491 2003-08-02 Andrew Cagney <cagney@redhat.com>
4492
4493 * Makefile.in: Update all dependencies and definitions.
4494
4495 2003-08-02 Adam Fedor <fedor@gnu.org>
4496
4497 * linespec.c (is_objc_method_format): New function
4498 (decode_line_1, locate_first_half): Use it.
4499 Fixes PR objc/1298
4500
4501 2003-08-01 Andrew Cagney <cagney@redhat.com>
4502
4503 * NEWS: Mention that m32r is multi-arch.
4504 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4505 * configure.tgt: Recognize m32r-*-*.
4506 * config/m32r/tm-m32r.h: Delete file.
4507 * config/m32r/m32r.mt: New file.
4508 * m32r-rom.c (m32r_upload_command): Use hostent only when
4509 gethostname succeeds, in order to avoid a compilation
4510 warning.
4511 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4512 compiler warning.
4513
4514 2003-08-01 Michael Snyder <msnyder@redhat.com>
4515
4516 * sh-tdep.c (sh_frame_align): New gdbarch method.
4517 (sh_gdbarch_init): Set up frame_align method.
4518
4519 2003-07-31 Michael Snyder <msnyder@redhat.com>
4520
4521 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4522 which is already covered by the new frames infrastructure.
4523
4524 2003-07-31 Andrew Cagney <cagney@redhat.com>
4525
4526 * user-regs.c (struct user_reg): Add "next" link.
4527 (struct user_regs): Replace "user" with "first" and "last" links.
4528 (append_user_reg): Add pre-allocated "reg" parameter.
4529 (builtin_user_regs): Provide initial value for "last".
4530 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4531 (user_regs_init): Allocate memory from the gdbarch obstack.
4532 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4533 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4534 linked list.
4535 (usernum_to_user_reg): New function.
4536 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4537 (value_of_user_reg): Use usernum_to_user_reg.
4538 (user_regs_free): Delete function.
4539 (_initialize_user_regs): Update register_gdbarch_data call.
4540
4541 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4542
4543 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4544
4545 2003-07-30 Michael Snyder <msnyder@redhat.com>
4546
4547 * value.h (value_being_returned): Add a struct_addr argument.
4548 * infcall.c (call_function_by_hand): Pass struct_addr to
4549 value_being_returned.
4550 * infcmd.c (print_return_value): Pass zero as struct_addr.
4551 * values.c (value_being_returned): If struct_addr is passed,
4552 use it instead of trying to recover it from the inferior.
4553
4554 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4555
4556 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4557 the prologue analyzer won't need to attempt to extract the pc
4558 value from the woefully incomplete dummy frame.
4559 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4560 possible. Disable code which modifies the frame.
4561
4562 2003-07-28 Andrew Cagney <cagney@redhat.com>
4563
4564 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4565 to level 2.
4566 (annotate_breakpoints_table, annotate_record): Ditto.
4567 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4568 (annotate_field_name_end, annotate_field_value): Ditto.
4569 (annotate_field_end, annotate_frame_source_begin): Ditto.
4570 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4571 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4572 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4573 (annotate_frame_address_end, annotate_frame_address): Ditto.
4574 (annotate_frame_args, annotate_frame_end): Ditto.
4575 (annotate_frame_where, annotate_arg_begin): Ditto.
4576 (annotate_arg_name_end, annotate_arg_value): Ditto.
4577 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4578 (annotate_function_call, annotate_signal_name): Ditto.
4579 (annotate_signal_string, annotate_signal_name_end): Ditto.
4580 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4581 (annotate_value_begin, annotate_value_history_value): Ditto.
4582 (annotate_value_history_end, annotate_value_end): Ditto.
4583 (annotate_display_begin, annotate_display_number_end): Ditto.
4584 (annotate_display_format, annotate_display_expression): Ditto.
4585 (annotate_display_expression_end, annotate_display_value): Ditto.
4586 (annotate_display_end, annotate_array_section_begin): Ditto.
4587 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4588 (annotate_elt, annotate_array_section_end): Ditto.
4589
4590 2003-07-28 Andrew Cagney <cagney@redhat.com>
4591
4592 * regcache.c (struct regcache_descr): Update comments on
4593 nr_raw_registers.
4594 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4595 sizeof_raw_register_valid_p.
4596 (init_regcache_descr): Set nr_raw_registers and
4597 sizeof_raw_register_valid_p before calling
4598 init_legacy_regcache_descr.
4599
4600 2003-07-28 Andrew Cagney <cagney@redhat.com>
4601
4602 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4603 MOD NUM_REGS.
4604
4605 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4606
4607 * thread.c (info_threads_command): Use get_selected_frame ().
4608 Check that there is at least one non-sentinel frame.
4609
4610 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4611
4612 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4613 (m68hc11_pop_frame): Remove.
4614 (m68hc11_frame_saved_pc): Remove.
4615 (m68hc11_frame_chain): Remove.
4616 (m68hc11_frame_init_saved_regs): Remove.
4617 (m68hc11_init_extra_frame_info): Remove.
4618 (m68hc11_store_struct_return): Remove.
4619 (m68hc11_saved_pc_after_call): Remove.
4620
4621 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4622
4623 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4624 frame unwind information.
4625 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4626 and adapted for frame unwinding.
4627 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4628 (m68hc11_unwind_pc): New function.
4629 (m68hc11_frame_unwind_cache): New function to analyze frames.
4630 (m68hc11_frame_this_id): New function to create new frame struct.
4631 (m68hc11_frame_prev_register): New function to unwind a register from
4632 the frame.
4633 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4634 (m68hc11_frame_p): New function for the above.
4635 (m68hc11_frame_base_address): New function to return fp of frame.
4636 (m68hc11_frame_args_address): Update for frame.
4637 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4638 (m68hc11_unwind_sp): New function.
4639 (m68hc11_unwind_dummy_id): New function.
4640 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4641 calls.
4642
4643 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4644
4645 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4646 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4647 when we are beyond the current pc.
4648
4649 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4650
4651 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4652 from m68hc11_push_arguments.
4653 (m68hc11_push_arguments): Remove.
4654 (m68hc11_push_return_address): Remove.
4655 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4656 handlers; remove deprecated_extra_stack_alignment_needed.
4657
4658 2003-07-27 Andrew Cagney <cagney@redhat.com>
4659
4660 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4661 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4662 REAL_PC and not the pointer.
4663 * hppa-hpux-tdep.c: Include frame.h
4664
4665 2003-07-27 Andrew Cagney <cagney@redhat.com>
4666
4667 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4668 GDB_MULTI_ACH_PARTIAL.
4669
4670 2003-07-27 Andrew Cagney <cagney@redhat.com>
4671
4672 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4673 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4674 operator at start and not end of line.
4675 (decode_prologue): Ditto.
4676 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4677 frame_unwind_register_unsigned instead of
4678 frame_unwind_unsigned_register.
4679 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4680 read_register.
4681 (m32r_push_dummy_call): Use register_size instead of
4682 REGISTER_RAW_SIZE.
4683 (m32r_frame_sniffer): Replace m32r_frame_p.
4684 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4685 * m32r-rom.c (report_transfer_performance): Delete extern
4686 declaration.
4687 (m32r_load, m32r_upload_command): Use print_transfer_performance
4688 instead of report_transfer_performance.
4689 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4690 / add_show_from_set.
4691
4692 2003-07-26 Andrew Cagney <cagney@redhat.com>
4693
4694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4695 store_return_value and extract_struct_value_address.
4696
4697 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4698
4699 PR c++/1267
4700 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4701 NULL, default to the section containing PC.
4702
4703 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4704
4705 * NEWS: Mention "regs" deprecated for m68hc11 too.
4706
4707 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4708 (m68hc11_print_register): New function to print out one register.
4709 (m68hc11_print_registers_info): New function to print registers.
4710 (show_regs): Deprecate and use the above.
4711 (m68hc11_gdbarch_init): Install the print_registers_info.
4712
4713 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4714
4715 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4716 that we have a SIGTRAP before returning non-zero.
4717
4718 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4719 Elena Zannoni <ezannoni@redhat.com>
4720
4721 * linespec.c (decode_line_2): Avoid crash if
4722 find_function_start_sal() returns empty record.
4723
4724 2003-07-23 Andreas Schwab <schwab@suse.de>
4725
4726 * ia64-tdep.c (ia64_print_insn): New function.
4727 (ia64_gdbarch_init): Set print_insn to it.
4728 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4729 deprecated_tm_print_insn_info.
4730
4731 2003-07-22 Michael Snyder <msnyder@redhat.com>
4732
4733 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4734 handle 8-bit returns (long long).
4735 (h8300h_extract_return_value): Ditto.
4736 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4737
4738 2003-07-22 Andrew Cagney <cagney@redhat.com>
4739
4740 * gdbarch.c Include "gdb_obstack.h".
4741 (struct gdbarch): Add an "obstack".
4742 (alloc_gdbarch_data): Allocate the gdbarch data using
4743 GDBARCH_OBSTACK_CALLOC.
4744 (free_gdbarch_data): Delete function.
4745 (gdbarch_obstack_zalloc): New function.
4746 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4747 Assert that the architecture is not initialized.
4748 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4749 vector from the obstack.
4750 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4751 architecture obstack.
4752 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4753 (set_gdbarch_data): Assert that the data is not initialized.
4754 (struct gdbarch_data): Delete member "free".
4755 (register_gdbarch_data): Do not initialize "free".
4756 * gdbarch.h, gdbarch.c: Re-generate.
4757
4758 2003-07-22 Andrew Cagney <cagney@redhat.com>
4759
4760 * configure.in (build_warnings): Add -Wformat-nonliteral.
4761 * configure: Re-generate.
4762
4763 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4764
4765 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4766
4767 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4768
4769 * findvar.c (read_var_value): Remove case for thread local storage
4770 variables. It is now entirely handled by the dwarf2 location
4771 expression code.
4772 * printcmd.c (address_info): Ditto.
4773 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4774 enumeration value.
4775 (struct symbol): Remove objfile field, which was used by
4776 LOC_THREAD_LOCAL_STATIC only.
4777 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4778 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4779 usage of objfile pointer.
4780 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4781 thread local variables.
4782 Add include of objfiles.h.
4783 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4784 storage variables.
4785 * Makefile.in (dwarf2loc.o): Update dependencies.
4786
4787 2003-07-22 Andrew Cagney <cagney@redhat.com>
4788
4789 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4790 get_frame_base.
4791 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4792 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4793 (struct value): Add opaque declaration.
4794 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4795
4796 2003-07-21 Andrew Cagney <cagney@redhat.com>
4797
4798 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4799 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4800
4801 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4802
4803 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4804 regcache_cooked_read_unsigned instead of read_register.
4805 (m68hc11_saved_pc_after_call): Likewise.
4806 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4807 instead of write_register.
4808 (m68hc11_register_type): New function.
4809 (m68hc11_register_virtual_type): Remove.
4810 (m68hc11_store_return_value): Convert to use the regcache.
4811 (m68hc11_extract_struct_value_address): Likewise.
4812 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4813 m68hc11_register_type; undeprecate store_return_value and
4814 extract_struct_value_address.
4815
4816 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4817
4818 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4819 and translate to use regcache.
4820 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4821
4822 2003-07-18 Andrew Cagney <cagney@redhat.com>
4823
4824 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4825 * gdbarch.h, gdbarch.c: Re-generate.
4826 * i386-tdep.c (i386_gdbarch_init): Do not set
4827 DWARF2_BUILD_FRAME_INFO.
4828 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4829 unconditionally.
4830 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4831 DWARF2_BUILD_FRAME_INFO.
4832
4833 2003-07-18 Andrew Cagney <cagney@redhat.com>
4834
4835 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4836 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4837
4838 2003-07-18 Andrew Cagney <cagney@redhat.com>
4839
4840 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4841 frame_unwind_address_in_block, instead of frame_pc_unwind.
4842 (dwarf2_frame_cache): Ditto.
4843
4844 2003-07-18 Andrew Cagney <cagney@redhat.com>
4845
4846 * user-regs.h (struct gdbarch): Declare opaque.
4847 * ui-out.h (struct ui_file): Declare opaque.
4848 * dwarf2-frame.h (struct frame_info): Declare opaque.
4849
4850 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4851
4852 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4853 #include "...".
4854 (procfs_meminfo): Change strerror to safe_strerror.
4855 (procfs_can_run): Remove K&R badness.
4856
4857 2003-07-17 Michael Snyder <msnyder@redhat.com>
4858
4859 * remote-sim.c: Comment typo fix.
4860
4861 2003-07-17 Andrew Cagney <cagney@redhat.com>
4862
4863 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4864 configure.
4865 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4866 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4867 GDB_MULTI_ARCH_PARTIAL.
4868
4869 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4870
4871 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4872 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4873 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4874
4875 2003-07-16 Theodore A. Roth <troth@openavr.org>
4876
4877 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4878 found.
4879 (avr_frame_unwind_cache): Don't unwind FP for main.
4880 Update a comment.
4881 Save the computed prev_sp.
4882 (avr_saved_regs_unwinder): Remove function.
4883 (avr_frame_prev_register): Use PC unwind logic from
4884 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4885
4886 2003-07-16 Andrew Cagney <cagney@redhat.com>
4887
4888 * frame-base.h (frame_base_p_ftype): Delete definition.
4889 (frame_base_append_predicate): Delete declaration.
4890 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4891 (frame_unwind_append_predicate): Delete declaration.
4892 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4893 (append_predicate): Delete parameter "p".
4894 (frame_unwind_append_predicate): Delete function.
4895 (frame_unwind_append_sniffer): Update call to append_predicate.
4896 (frame_unwind_free): Delete function.
4897 (_initialize_frame_unwind): Pass NULL as "free" to
4898 register_gdbarch_data.
4899 (frame_unwind_init): Append the dummy_frame_sniffer.
4900 (frame_unwind_find_by_frame): Simplify.
4901 * frame-base.c (struct frame_base_table): Delete field "p".
4902 (append_predicate): Delete parameter "p".
4903 (frame_base_append_predicate): Delete function.
4904 (frame_base_append_sniffer): Update call to append_predicate.
4905 (frame_base_free): Delete function.
4906 (frame_base_find_by_frame): Simplify.
4907 (_initialize_frame_base): Pass NULL as "free" to
4908 register_gdbarch_data.
4909 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4910 (x86_64_sigtramp_frame_sniffer): Replace
4911 "x86_64_sigtramp_frame_p".
4912 (x86_64_init_abi): Set the frame unwind sniffers.
4913 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4914 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4915 (m68k_gdbarch_init): Set the frame unwind sniffers.
4916 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4917 "i386_sigtramp_frame_p".
4918 (i386_frame_sniffer): Replace "i386_frame_p".
4919 (i386_gdbarch_init): Set the frame unwind sniffers.
4920 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4921 (avr_gdbarch_init): Set the frame unwind sniffers.
4922 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4923 "alpha_sigtramp_frame_p"
4924 (alpha_heuristic_frame_sniffer): Replace
4925 "alpha_heuristic_frame_p".
4926 (alpha_gdbarch_init): Set the frame unwind sniffers.
4927 (alpha_dwarf2_init_abi): Ditto.
4928 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4929 "alpha_debug_frame_p".
4930 (alpha_mdebug_frame_base_sniffer): Replace
4931 "alpha_mdebug_frame_base_p".
4932 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4933 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4934 (d10v_gdbarch_init): Set the frame unwind sniffer.
4935 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4936 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4937 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4938 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4939 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4940 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4941
4942 2003-07-16 Michael Snyder <msnyder@redhat.com>
4943
4944 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4945 should go thru sh_dsp_register_sim_regno, else the dsp regs
4946 will not get the right values.
4947
4948 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4949
4950 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4951 deprecated_store_floating by call to store_typed_floating.
4952 (sh_sh4_register_convert_to_raw): Substitute call to
4953 deprecated_extract_floating by call to extract_typed_floating.
4954
4955 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4956
4957 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4958
4959 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4960
4961 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4962 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4963 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4964 as possible.
4965 (do_pseudo_register): Remove.
4966 (sh_push_dummy_code): New function.
4967 (sh64_store_struct_return): Rename from sh_store_struct_return.
4968 Only called for sh64 now.
4969 (sh_extract_struct_value_address): Regcache'ify.
4970 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4971 and accomodate new tasks.
4972 (sh64_push_return_address): Rename from sh_push_return_address.
4973 Only called for sh64 now.
4974 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4975 Regcache'ify.
4976 (sh3e_sh4_extract_return_value): Regcache'ify.
4977 (sh_default_store_return_value): Ditto.
4978 (sh3e_sh4_store_return_value): Ditto.
4979 (sh_default_register_byte): Remove.
4980 (sh_sh4_register_byte): Remove.
4981 (sh_default_register_raw_size): Remove.
4982 (sh_sh4_register_raw_size): Remove.
4983 (sh_register_virtual_size): Remove.
4984 (sh_sh3e_register_virtual_type): Remove.
4985 (sh_sh3e_register_type): New function.
4986 (sh_sh4_register_virtual_type): Remove.
4987 (sh_sh4_register_type): New function.
4988 (sh_default_register_virtual_type): Remove.
4989 (sh_default_register_type): New function.
4990 (do_fv_register_info): Add parameters to accomodate call from
4991 sh_print_registers_info.
4992 (do_dr_register_info): Ditto.
4993 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4994 Add parameters to accomodate call from sh_print_registers_info.
4995 (sh_do_fp_register): Ditto.
4996 (sh64_do_pseudo_register): Call do_dr_register_info,
4997 do_fv_register_info and sh_do_fp_register with default parameters.
4998 (sh_do_register): Add parameters to accomodate call from
4999 sh_print_registers_info.
5000 (sh_print_register): Ditto.
5001 (sh_print_registers_info): Rename from sh_do_registers_info.
5002 Add parameters to be used as gdbarch_print_registers_info
5003 implementation. Accomodate removed do_pseudo_register function
5004 pointer.
5005 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5006 function pointer. Call sh_print_register with default parameters.
5007 (sh64_do_registers_info): Call sh_print_registers_info instead of
5008 sh_do_registers_info.
5009 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5010 detection of deprecated vs. non-deprecated functionality.
5011 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5012 function pointer assignments by direct function calls.
5013
5014 2003-07-15 Andrew Cagney <cagney@redhat.com>
5015
5016 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5017 (frame_register_unwind, create_new_frame): Ditto.
5018 (legacy_get_prev_frame, get_frame_type): Ditto.
5019 (get_frame_base_address): Use frame_base_find_by_frame.
5020 (get_frame_locals_address): Use frame_base_find_by_frame.
5021 (get_frame_args_address): Use frame_base_find_by_frame.
5022 * frame-base.h (frame_base_sniffer_ftype): Declare.
5023 (frame_base_append_sniffer): Declare.
5024 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5025 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5026 (frame_base_append_sniffer): New function.
5027 (frame_base_append_predicate): Add a NULL sniffer.
5028 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5029 (struct frame_base_table): Add "sniffer".
5030 (frame_base_free): Free the "sniffer" table.
5031 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5032 (frame_unwind_append_sniffer): Declare.
5033 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5034 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5035 (struct frame_unwind_table): Add "sniffer", delete "middle".
5036 (append_predicate): Add "sniffer" parameter, append the sniffer.
5037 (frame_unwind_init): Update append_predicate call.
5038 (frame_unwind_append_sniffer): New function.
5039 (frame_unwind_append_predicate): Update append_predicate call.
5040 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5041
5042 2003-07-15 Andrew Cagney <cagney@redhat.com>
5043
5044 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5045 before code inhibiting repeated unwind attempts. Add to
5046 commentary on that test's problems.
5047 * blockframe.c (inside_main_func): Look for "main" in the minimal
5048 symbol table.
5049 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5050 identical.
5051
5052 2003-07-15 Andrew Cagney <cagney@redhat.com>
5053
5054 * complaints.c (struct explanation): Define.
5055 (struct complaints): Change type of "explanation" to "struct
5056 explanation".
5057 (symfile_explanations): Convert to a "struct explanation" table.
5058 (vcomplaint): Update.
5059
5060 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5061
5062 * x86-64-linux-nat.c (regmap): Removed.
5063 (supply_gregset, fill_gregset): Call
5064 x86_64_linux_(fill,supply)_gregset functions.
5065 * x86-64-linux-tdep.c (USER_*): New defines.
5066 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5067 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5068 New functions.
5069 (fetch_core_registers): Ditto.
5070 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5071 * x86-64-linux-tdep.h: New file.
5072 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5073 and core-regset.o.
5074 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5075
5076 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5077
5078 * x86-64-tdep.c (x86_64_store_return_value): Use
5079 regcache_cooked_write_part instead of regcache_cooked_write.
5080
5081 * configure.host: Add x86_64-*-freebsd*.
5082 * configure.tgt: Add x86_64-*-freebsd*.
5083 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5084 * amd64fbsd-nat.c: New file.
5085 * amd64fbsd-tdep.c: New file.
5086 * config/i386/nm-fbsd64.h: New file.
5087 * config/i386/fbsd64.mh: New file.
5088 * config/i386/fbsd64.mt: New file.
5089
5090 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5091
5092 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5093 `sc_regs_offset' and `sc_fpregs_offset'.
5094 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5095 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5096 (alpha_sigtramp_register_address): Rewrite to use new members of
5097 `struct gdbarch_tdep'.
5098 (alpha_gdbarch_init): Initialize new members of struct
5099 gdbarch_tdep'.
5100 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5101 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5102 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5103 (alphafbsd_pc_in_sigtramp): Implement.
5104 (alphafbsd_sigtramp_offset): New function.
5105 (alphafbsd_sigcontext_addr): New function.
5106 (alphafbsd_init_abi): Initialize signal trampoline related members
5107 of `struct gdbarch_tdep'.
5108 (_initialize_alphafbsd_tdep): Add prototype.
5109
5110 2003-07-11 Theodore A. Roth <troth@openavr.org>
5111
5112 * Makefile.in (install-only): Quote sed expression when generating
5113 transformed_name.
5114
5115 2003-07-11 Richard Henderson <rth@redhat.com>
5116
5117 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5118 * dwarf2-frame.c: Include complaints.h.
5119 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5120 variable initialization; return NULL on error.
5121 (decode_frame_entry): New.
5122
5123 2003-07-11 Andrew Cagney <cagney@redhat.com>
5124
5125 * frame.h (frame_address_in_block): Delete declaration.
5126 * blockframe.c (frame_address_in_block): Delete function.
5127 (get_frame_block): Use get_frame_address_in_block.
5128 (block_innermost_frame): Ditto.
5129 * stack.c (print_frame, backtrace_command_1): Ditto.
5130
5131 * frame.h (get_frame_address_in_block): Declare.
5132 (frame_unwind_address_in_block): Declare.
5133 * frame.c (frame_unwind_address_in_block): New function.
5134 (get_frame_address_in_block): New function.
5135
5136 2003-07-10 Andrew Cagney <cagney@redhat.com>
5137
5138 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5139 pre-default. Note: re-generate has no effect.
5140
5141 2003-07-10 Andrew Cagney <cagney@redhat.com>
5142
5143 * gdbarch.sh: When a variable, but not a function, compare against
5144 0. Fix problem in previous patch.
5145 * gdbarch.c: Re-generate.
5146
5147 2003-07-10 Andrew Cagney <cagney@redhat.com>
5148
5149 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5150 functions against NULL, not 0.
5151 * gdbarch.c: Re-generate.
5152
5153 2003-07-10 Fred Fish <fnf@ninemoons.com>
5154
5155 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5156 null string instead of a null pointer.
5157 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5158
5159 2003-07-09 Michael Snyder <msnyder@redhat.com>
5160
5161 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5162
5163 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5164
5165 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5166 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5167 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5168 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5169 * x86-64-tdep.c: ... from here.
5170
5171 2003-07-09 Andreas Schwab <schwab@suse.de>
5172
5173 * m68k-tdep.h (enum struct_return): Define.
5174 (struct gdbarch_tdep): Add struct_return.
5175 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5176 bytes are padded to the right, not to the left. Pass struct value
5177 address in register %a1, not on stack.
5178 (m68k_use_struct_convention): New function.
5179 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5180 struct_return in tdep to pcc_struct_return.
5181 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5182 reg_struct_return.
5183
5184 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5185
5186 * somread.c (som_symfile_offsets): Fix compilation error.
5187
5188 2003-07-09 Andrew Cagney <cagney@redhat.com>
5189
5190 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5191 Add comments about the checks.
5192
5193 2003-07-08 Andrew Cagney <cagney@redhat.com>
5194
5195 * Makefile.in: Make dependency section headers consistent.
5196 (config_h): Move to $BUILD headers section.
5197 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5198 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5199 (ada-exp.tab.c): Move to YACC/LEX section.
5200 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5201 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5202
5203 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5204
5205 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5206 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5207 of strerror with safe_strerror, use ISO C function definitions,
5208 and replace instances of sprintf with snprintf.
5209
5210 2003-07-07 Andrew Cagney <cagney@redhat.com>
5211
5212 * frame.c (get_prev_frame): Enable check for identical frames.
5213 Update comments. Update error messages.
5214
5215 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5216
5217 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5218
5219 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5220
5221 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5222 sort_symtab_syms, no longer necessary.
5223
5224 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5225
5226 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5227
5228 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5229
5230 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5231 (mips_register_byte): Likewise.
5232
5233 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5234
5235 * Makefile.in (sparc_tdep_h): New.
5236 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5237 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5238 * sparc-linux-nat.c: Include "sparc-tdep.h".
5239 * sparc-nat.c: Likewise.
5240 * sparc-tdep.c: Likewise.
5241 * sparc64nbsd-nat.c: Likewise.
5242 * sparcnbsd-nat.c: Likewise.
5243 * sparcnbsd-tdep.c: Likewise.
5244 * sparc-tdep.h: New file.
5245 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5246 and sparc_npc_regnum.
5247
5248 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5249
5250 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5251 (mips_linux_cannot_store_register): List supported instead of
5252 unsupported registers.
5253
5254 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5255
5256 * disasm.c (dump_insns): Separate instructions from addresses.
5257
5258 2003-07-07 Andreas Schwab <schwab@suse.de>
5259
5260 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5261 dependencies.
5262 * m68k-tdep.c (NUM_FREGS): Delete.
5263 (SIG_PC_FP_OFFSET): Delete.
5264 (TARGET_M68K): Delete.
5265 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5266 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5267 P_MOVEL_SP, P_MOVEML_SP): Define.
5268 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5269 P_TRAP): Delete.
5270 (m68k_register_raw_size): Delete.
5271 (m68k_register_virtual_size): Delete.
5272 (m68k_register_type): Renamed from m68k_register_virtual_type and
5273 add gdbarch argument.
5274 (m68k_store_struct_return): Delete.
5275 (m68k_deprecated_extract_return_value): Delete.
5276 (m68k_deprecated_extract_struct_value_address): Delete.
5277 (m68k_frame_chain): Delete.
5278 (m68k_frame_saved_pc): Delete.
5279 (m68k_fix_call_dummy): Delete.
5280 (m68k_push_dummy_frame): Delete.
5281 (m68k_pop_frame): Delete.
5282 (m68k_extract_return_value): New function.
5283 (m68k_store_return_value): Rewrite using regcache.
5284 (m68k_extract_struct_value_address): Rewrite using regcache.
5285 (m68k_push_dummy_call): New function.
5286 (struct m68k_frame_cache): Define.
5287 (m68k_alloc_frame_cache): New function.
5288 (m68k_analyze_frame_setup): New function.
5289 (m68k_analyze_register_saves): New function.
5290 (m68k_analyze_prologue): New function.
5291 (m68k_skip_prologue): Rewrite using above functions.
5292 (m68k_unwind_pc): New function.
5293 (m68k_frame_cache): New function.
5294 (m68k_frame_this_id): New function.
5295 (m68k_frame_prev_register): New function.
5296 (m68k_frame_unwind): New variable.
5297 (m68k_frame_p): New function.
5298 (m68k_sigtramp_frame_cache): New function.
5299 (m68k_sigtramp_frame_this_id): New function.
5300 (m68k_sigtramp_frame_prev_register): New function.
5301 (m68k_sigtramp_frame_unwind): New variable.
5302 (m68k_sigtramp_frame_p): New function.
5303 (m68k_frame_base_address): New function.
5304 (m68k_frame_base): New function.
5305 (m68k_unwind_dummy_id): New function.
5306 (fill_gregset): Use regcache_collect.
5307 (fill_fpregset): Likewise.
5308 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5309 defined.
5310 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5311 deprecated_init_frame_pc, deprecated_store_struct_return,
5312 deprecated_extract_return_value, deprecated_store_return_value,
5313 deprecated_frame_chain, deprecated_frame_saved_pc,
5314 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5315 deprecated_register_virtual_size,
5316 deprecated_max_register_raw_size,
5317 deprecated_max_register_virtual_size,
5318 deprecated_register_virtual_type, deprecated_register_size,
5319 deprecated_register_byte, deprecated_register_bytes,
5320 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5321 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5322 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5323 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5324 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5325 deprecated_push_dummy_frame, deprecated_pop_frame,
5326 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5327 only if SYSCALL_TRAP is defined. Set extract_return_value,
5328 store_return_value, extract_struct_value_address, register_type,
5329 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5330 predicates.
5331 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5332 M68K_MAX_REGISTER_SIZE): Define.
5333 (struct m68k_sigtramp_info): Define.
5334 (struct gdbarch_tdep): Add get_sigtramp_info.
5335 * m68klinux-nat.c (fetch_register): Use register_size instead of
5336 REGISTER_RAW_SIZE. Don't put assignment in if.
5337 (store_register): Likewise.
5338 (fetch_inferior_registers): Likewise.
5339 (store_inferior_registers): Likewise.
5340 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5341 (m68k_linux_frame_saved_pc): Delete.
5342 (m68k_linux_sigcontext_reg_offset,
5343 m68k_linux_ucontext_reg_offset): Define.
5344 (m68k_linux_get_sigtramp_info): New function.
5345 (m68k_linux_extract_return_value): Rewrite using regcache.
5346 (m68k_linux_store_return_value): Likewise.
5347 (m68k_linux_extract_struct_value_address): Likewise.
5348 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5349 Don't set deprecated_frame_saved_pc,
5350 deprecated_extract_return_value, deprecated_store_return_value,
5351 deprecated_extract_struct_value_address. Set
5352 extract_return_value, store_return_value,
5353 extract_struct_value_address.
5354
5355 2003-07-07 Andrew Cagney <cagney@redhat.com>
5356
5357 * expprint.c: Include "user-regs.h" instead of "frame.h".
5358 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5359 frame_map_regnum_to_name.
5360 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5361 (frame_map_name_to_regnum): Simplify, call
5362 user_reg_map_name_to_regnum.
5363 (frame_map_regnum_to_name): Simplify, call
5364 user_reg_map_regnum_to_name.
5365 (frame_register_unwind): Update.
5366 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5367 (_initialize_frame_reg): Call user_reg_add_builtin.
5368 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5369 (value_of_register): Use value_of_user_reg.
5370 * eval.c (evaluate_subexp_standard): Update.
5371 * parse.c (write_dollar_variable): Update.
5372 * d10v-tdep.c (d10v_print_registers_info): Update.
5373 * infcmd.c (registers_info): Update.
5374 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5375 (builtin_regs_h): Delete macro.
5376 (user_regs_h): Define.
5377 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5378 (builtin-regs.o): Delete target.
5379 (user-regs.o): Specify dependencies.
5380 (expprint.o): Update dependencies.
5381 (findvar.o): Update dependencies.
5382 (frame.o): Update dependencies.
5383 (std-regs.o): Update dependencies.
5384
5385 2003-07-06 Christopher Faylor <cgf@redhat.com>
5386
5387 * win32-nat.c (solib_symbols_add): Use one variable for all section
5388 address stuff. Pass variable rather than address of variable to
5389 safe_symbol_file_add.
5390
5391 2003-07-06 Andreas Schwab <schwab@suse.de>
5392
5393 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5394
5395 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5396
5397 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5398
5399 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5400
5401 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5402
5403 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5404
5405 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5406 * config/i386/nto.mh: New file.
5407 * config/i386/nm-nto.h: New file.
5408 * configure.host: Add i[3456]86-*-nto*.
5409
5410 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5411
5412 * remote-vx.c (vx_add_symbols): Fix compilation error.
5413
5414 2003-07-03 Andrew Cagney <cagney@redhat.com>
5415
5416 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5417 * gdbarch.h, gdbarch.c: Re-generate.
5418 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5419 (legacy_register_name): Declare.
5420 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5421 (REGISTER_NAME): Define.
5422 * sparc-tdep.c (legacy_register_name): New function.
5423 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5424 (REGISTER_NAME): Define.
5425 (hppa64_register_name): Declare.
5426 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5427 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5428 (hppa64_register_name): New function.
5429 (hppa_register_name): New function.
5430 * arch-utils.c (legacy_register_name): Delete.
5431 * arch-utils.h (legacy_register_name): Delete.
5432
5433 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5434
5435 * cli/cli-interp.c (cli_interpreter_resume): Update the
5436 cli_uiout's stream to gdb_stdout.
5437
5438 2003-07-03 Andrew Cagney <cagney@redhat.com>
5439
5440 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5441 predicate.
5442 * gdbarch.h, gdbarch.c: Re-generate.
5443 * regcache.c (init_regcache_descr): Use legacy code when either
5444 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5445
5446 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5447
5448 * NEWS: Move "set logging" entry into GDB 6.0 section.
5449
5450 2003-07-02 Jim Blandy <jimb@redhat.com>
5451
5452 * s390-tdep.c (struct frame_extra_info): new member:
5453 'stack_bought_valid'.
5454 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5455 initialize fextra_info->stack_bought.
5456 (s390_frameless_function_invocation): Don't trust the value of
5457 fextra_info_ptr->stack_bought unless
5458 fextra_info->stack_bought_valid is set.
5459
5460 New S390 prologue analyzer.
5461 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5462 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5463 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5464 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5465 compute_x_addr, s390_on_stack, s390_store,
5466 s390_get_signal_frame_info): New functions.
5467 (S390_NUM_SPILL_SLOTS): New macro.
5468 (s390_get_frame_info): Rewritten.
5469 (is_arg_reg): Deleted.
5470
5471 Break out the decoding of S/390 instructions into separate
5472 functions, to make it more legible, and easier to check
5473 against the spec.
5474 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5475 is_rx, is_rxe): New functions.
5476 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5477 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5478 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5479 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5480 enums for opcode values. (Is this an improvement?)
5481
5482 2003-07-02 Andrew Cagney <cagney@redhat.com>
5483
5484 * i386-tdep.c: Revert change committed as part of trad-frame code
5485 below.
5486
5487 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5488
5489 * breakpoint.c (insert_catchpoint): Make static.
5490
5491 2003-07-02 Andreas Schwab <schwab@suse.de>
5492
5493 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5494 former ia64_push_arguments and ia64_push_return_address, and use
5495 regcache functions instead of read/write_register.
5496 (ia64_gdbarch_init): Set push_dummy_call instead of
5497 deprecated_push_arguments and deprecated_push_return_address.
5498
5499 2003-07-01 Andreas Jaeger <aj@suse.de>
5500
5501 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5502 before the call.
5503 Set %rax only to number of SSE registers used.
5504
5505 2003-07-01 Andrew Cagney <cagney@redhat.com>
5506
5507 * trad-frame.h: Update comments, a -1 .addr is reserved.
5508 (trad_frame_value_p, trad_frame_addr_p): Declare.
5509 (trad_frame_reg_p): Declare.
5510 (trad_frame_set_value): Rename trad_frame_register_value.
5511 (trad_frame_set_unknown): Declare.
5512 * trad-frame.c (trad_frame_realreg_p): New function.
5513 (trad_frame_addr_p, trad_frame_value_p): New function.
5514 (trad_frame_set_unknown): New function.
5515 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5516 (trad_frame_prev_register): Use trad_frame_realreg_p,
5517 trad_frame_addr_p and trad_frame_value_p.
5518 (trad_frame_set_value): Rename trad_frame_register_value.
5519 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5520 and trad_frame_set_value.
5521
5522 2003-06-30 Jim Blandy <jimb@redhat.com>
5523
5524 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5525 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5526 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5527 for 16 registers, and then 32 more bytes.
5528 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5529 New macros.
5530 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5531 Move up in the file, since it's now used by is_simple_arg.
5532 (is_simple_arg): Don't assume registers are four bytes long.
5533 Exclude all double arguments. Extended floats are not simple
5534 args.
5535 (is_power_of_two): New function.
5536 (pass_by_copy_ref): Call is_power_of_two, and check that the
5537 length fits in a register, rather than listing all the acceptable
5538 sizes. Extended floats are not passed by reference.
5539 (s390_push_arguments): Don't assume registers are four bytes long.
5540 Reserve an argument register to point to the buffer for structures
5541 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5542 S390_STACK_FRAME_OVERHEAD.
5543
5544 2003-06-30 Andreas Schwab <schwab@suse.de>
5545
5546 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5547 format error message.
5548
5549 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5550
5551 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5552
5553 2003-06-30 David Carlton <carlton@kealia.com>
5554
5555 Band-aid for PR c++/1245.
5556 * Makefile.in (cp-support.o): Depend on complaints_h.
5557 * cp-support.c: Include complaints.h. Add declaration for
5558 find_last_component.
5559 (cp_find_first_component): Separate code into
5560 cp_find_first_component_aux.
5561 (cp_find_first_component_aux): Call demangled_name_complaint.
5562 (demangled_name_complaint): New.
5563
5564 2003-06-30 Andrew Cagney <cagney@redhat.com>
5565
5566 * remote.c (remote_write_bytes): Explicitly compute and then use
5567 the payload size. Update comments to reflect. Fixes problem of
5568 GDB not sending small packets as found by Fred Fish.
5569
5570 2003-06-30 Andrew Cagney <cagney@redhat.com>
5571
5572 * remote.c (remote_async_wait): Fix -Wformat problem.
5573
5574 2003-06-29 Andrew Cagney <cagney@redhat.com>
5575
5576 * remote.c (remote_wait): Call error, and not warning, when the
5577 packet is corrupt.
5578 (remote_async_wait): Ditto.
5579
5580 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5581
5582 * sparc-tdep.c (sparc_y_regnum): Make external again.
5583
5584 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5585
5586 * cli/cli-logging.c (pop_output_files): Add void to function
5587 definition.
5588
5589 2003-06-29 Andrew Cagney <cagney@redhat.com>
5590
5591 * frame.c (frame_register_unwind): Use unsigned char when dumping
5592 the buffer contents.
5593
5594 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5595
5596 * cli/cli-logging.c: New file.
5597 * cli-out.c (struct ui_out_data): Add original_stream.
5598 (cli_redirect): New function.
5599 (cli_ui_out_impl): Add cli_redirect.
5600 (cli_out_new): Initialize original_stream.
5601 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5602 (uo_redirect, ui_out_redirect): New.
5603 * ui-out.h (struct ui_out_impl): Add redirect member.
5604 (redirect_ftype): New.
5605 (ui_out_redirect): Add prototype.
5606 * Makefile.in: Add rules for cli-logging.c.
5607 * NEWS: Mention "set logging".
5608
5609 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5610
5611 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5612
5613 2003-06-27 Andrew Cagney <cagney@redhat.com>
5614
5615 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5616 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5617 * avr-tdep.c (avr_call_dummy_address): Delete function.
5618 (avr_gdbarch_init): Do not set call_dummy_address.
5619
5620 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5621
5622 * symfile.c (syms_from_objfile): Move variables to inner block.
5623 Move the checks for the non-mainline case a bit earlier to avoid
5624 doing some useless computations.
5625
5626 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5627
5628 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5629
5630 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5631
5632 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5633 sections.
5634
5635 2003-06-26 Michael Chastain <mec@shout.net>
5636
5637 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5638 gdb/testsuite/gdb.c++/pr-1210.exp.
5639
5640 2003-06-26 Andrew Cagney <cagney@redhat.com>
5641
5642 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5643 altivec_expression.h and altivec_registers.h.
5644
5645 2003-06-26 Andrew Cagney <cagney@redhat.com>
5646
5647 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5648 info->mach when MIPS16. Patch suggested by Fred Fish.
5649
5650 2003-06-26 Andrew Cagney <cagney@redhat.com>
5651
5652 * utils.c (internal_vproblem): Print the problem to a reason
5653 buffer and then pass to query. Make the msg variable more local.
5654
5655 2003-06-26 Andrew Cagney <cagney@redhat.com>
5656
5657 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5658 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5659 * gdbarch.h, gdbarch.c: Re-generate.
5660 * frame-base.c (default_frame_args_address): Update. Use
5661 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5662 not available.
5663 (default_frame_locals_address): Ditto for
5664 DEPRECATED_FRAME_LOCALS_ADDRESS.
5665 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5666 (vax_frame_num_args): Update.
5667 (vax_gdbarch_init): Update.
5668 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5669 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5670 * mcore-tdep.c (mcore_gdbarch_init): Update.
5671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5672 * ia64-tdep.c (ia64_gdbarch_init): Update.
5673 * symtab.h (address_class): Update comments.
5674 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5675 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5676 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5677 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5678 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5679 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5680 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5681 * alpha-mdebug-tdep.c: Update.
5682 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5683
5684 2003-06-26 Andreas Jaeger <aj@suse.de>
5685
5686 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5687 of SSE registers so that varargs functions work. Rework handling
5688 of passing arguments on the stack.
5689 (x86_64_store_return_value): Return double and float values in SSE
5690 register.
5691
5692 2003-06-24 Michael Chastain <mec@shout.net>
5693
5694 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5695 the "constructor breakpoints ignored" bug.
5696
5697 2003-06-25 David Carlton <carlton@kealia.com>
5698
5699 * MAINTAINERS: Update e-mail address.
5700
5701 2003-06-24 Jim Blandy <jimb@redhat.com>
5702
5703 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5704
5705 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5706 function.
5707 (ppc_linux_init_abi): Register it as the
5708 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5709
5710 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5711 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5712 method.
5713
5714 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5715 (ppc64_standard_linkage_target): Use it.
5716
5717 2003-06-23 Andrew Cagney <cagney@redhat.com>
5718
5719 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5720 for 0 "int0" and 4 "int32" sized registers.
5721 * gdbtypes.c (builtin_type_int0): Define.
5722 (build_gdbtypes): Initialize builtin_type_int0.
5723 * gdbtypes.h (builtin_type_int0): Declare.
5724
5725 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5726
5727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5728 as characters are unsigned.
5729
5730 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5731
5732 PR gdb/1179
5733 * dwarfread.c (struct_type): Skip static fields without crashing.
5734
5735 2003-06-22 Andrew Cagney <cagney@redhat.com>
5736
5737 GDB 6.0 branch created.
5738 * README: Update.
5739 * PROBLEMS: Update. Empty.
5740 * NEWS: Update.
5741
5742 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5743
5744 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5745 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5746
5747 2003-06-22 Andrew Cagney <cagney@redhat.com>
5748
5749 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5750 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5751 Velikov.
5752
5753 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5754
5755 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5756 compilers.
5757
5758 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5759
5760 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5761 argument of val_print.
5762 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5763 to the address argument of baseclass_offset or target_read_memory.
5764 Do add it to the argument of cp_print_value_fields.
5765
5766 2003-06-21 Andrew Cagney <cagney@redhat.com>
5767
5768 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5769 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5770 instead of 0..NUM_REGS.
5771 (mips_register_reggroup_p): New function.
5772 (mips_pseudo_register_write): New function.
5773 (mips_pseudo_register_read): New function.
5774 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5775 based on the register's type.
5776 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5777 cooked.
5778 (mips_get_saved_register): Simplify. Assert that REGNO is a
5779 pseudo / cooked.
5780 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5781 (mips_register_type): Replace mips_register_virtual_type. Map
5782 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5783 when available.
5784 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5785 that the register is cooked / virtual.
5786 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5787 Only get the extra info when needed.
5788 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5789 (mips32_heuristic_proc_desc): Fetch the cooked register.
5790 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5791 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5792 (mips_print_register): Use gdbarch_register_type, instead of
5793 REGISTER_VIRTUAL_TYPE.
5794 (print_gp_register_row): Use gdbarch_register_type, instead of
5795 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5796 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5797 Print the pseudo / cooked registers.
5798 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5799 Print the pseudo / cooked registers.
5800 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5801 REG_NUM is pseudo / cooked.
5802 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5803 (mips_n32n64_xfer_return_value): Ditto.
5804 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5805 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5806 (mips_register_sim_regno): New function.
5807 (mips_gdbarch_init): Set deprecated_register_byte,
5808 register_group_p, pseudo_register_write, pseudo_register_read,
5809 register_sim_regno, and num_pseudo_regs. Set register_type,
5810 instead of register_virtual_type.
5811 * Makefile.in (mips-tdep.o): Update dependencies.
5812 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5813 REGISTER_VIRTUAL_TYPE.
5814 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5815 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5816 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5817 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5818 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5819
5820 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5821
5822 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5823 * cli/cli-cmds.c: Include "gdb_vfork.h".
5824 (shell_escape): Use vfork.
5825
5826 2003-06-21 Andrew Cagney <cagney@redhat.com>
5827
5828 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5829 32 bit floating-point register saves.
5830
5831 * frame.h (deprecated_unwind_get_saved_register): Delete.
5832 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5833 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5834 and deprecated_get_next_frame_hack instead of
5835 deprecated_unwind_get_saved_register.
5836
5837 * mips-tdep.c (mips_dump_tdep): Do not print
5838 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5839
5840 * frame.c (get_frame_register): New function.
5841 (frame_unwind_register_signed): New function.
5842 (get_frame_register_signed): New function.
5843 (frame_unwind_register_unsigned): New function.
5844 (get_frame_register_unsigned): New function.
5845 * frame.h: Add comments on naming schema.
5846 (get_frame_register, frame_unwind_register_signed): Declare.
5847 (get_frame_register_signed, get_frame_register_signed): Declare.
5848 (frame_unwind_register_unsigned): Declare.
5849 (get_frame_register_unsigned): Declare.
5850
5851 2003-06-20 Theodore A. Roth <troth@openavr.org>
5852
5853 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5854
5855 2003-06-20 Theodore A. Roth <troth@openavr.org>
5856
5857 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5858 (avr_read_sp): Ditto.
5859
5860 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5861
5862 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5863 * config/arm/nm-linux.h: Likewise.
5864 * config/arm/tm-linux.h: Likewise.
5865 * config/ia64/nm-linux.h: Likewise.
5866 * config/ia64/tm-ia64.h: Likewise.
5867 * config/s390/tm-linux.h: Likewise.
5868 * config/s390/tm-s390.h: Likewise.
5869 * s390-nat.c: Likewise.
5870 * s390-tdep.c: Likewise.
5871
5872 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5873 * config/ia64/linux.mt: Likewise.
5874 * config/m68k/linux.mh: Likewise.
5875 * config/mips/linux.mt: Likewise.
5876 * config/powerpc/linux.mh: Likewise.
5877 * config/sh/linux.mt: Likewise.
5878
5879 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5880
5881 * solib.c (solib_open): Change tests for whether to search
5882 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5883 comments.
5884
5885 2003-06-19 Theodore A. Roth <troth@openavr.org>
5886
5887 * avr-tdep.c (avr_frame_address): Delete function.
5888 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5889 set_gdbarch_frame_args_address.
5890
5891 2003-06-19 Andrew Cagney <cagney@redhat.com>
5892
5893 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5894 (REGISTER_CONVERT_FROM_TYPE): Delete.
5895 (mips_register_convert_to_type): Delete declaration.
5896 (mips_register_convert_from_type): Delete declaration.
5897 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5898 kernel/.
5899
5900 2003-06-19 Michael Snyder <msnyder@redhat.com>
5901
5902 * linux-nat.h: New file.
5903 * linux-nat.c: Include linux-nat.h.
5904 * lin-lwp.c: Include linux-nat.h.
5905 Move struct lwp_info def to linux-nat.h.
5906 * linux-proc.c: Include linux-nat.h.
5907 (linux_make_note_section): Iterate over lwps instead of threads.
5908 (linux_do_thread_registers): Use lwp instead of merged pid.
5909 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5910 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5911 Add dependency on linux_nat_h.
5912
5913 2003-06-19 Theodore A. Roth <troth@openavr.org>
5914
5915 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5916
5917 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5918
5919 * varobj.c (get_type, get_target_type): Use check_typedef.
5920
5921 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5922
5923 * breakpoint.c (insert_catchpoint): Call internal_error.
5924
5925 2003-06-19 Theodore A. Roth <troth@openavr.org>
5926
5927 * avr-tdep.c (avr_push_dummy_code): Delete function.
5928 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5929
5930 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5931
5932 * arch-utils.c (default_prepare_to_proceed): Remove.
5933 (generic_prepare_to_proceed): Remove.
5934 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5935 (generic_prepare_to_proceed): Remove prototype.
5936 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5937 * gdbarch.c: Regenerate.
5938 * gdbarch.h: Regenerate.
5939 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5940 * hppah-nat.c (hppa_switched_threads): Remove.
5941 * infrun.c (prepare_to_proceed): New static function, copied from
5942 generic_prepare_to_proceed. Remove select_it argument.
5943 (proceed): Call prepare_to_proceed.
5944 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5945 variables.
5946 (ptrace_wait): Don't set the removed variables.
5947 (hppa_switched_threads): Remove.
5948 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5949 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5950 (lin_lwp_prepare_to_proceed): Remove prototype.
5951 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5952 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5953
5954 2003-06-18 Theodore A. Roth <troth@openavr.org>
5955
5956 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5957 trad-frame.h.
5958 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5959 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5960 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5961 (AVR_PROLOGUE_*): Enumerate prologue types.
5962 (struct frame_extra_info): Remove.
5963 (struct avr_unwind_cache): Define.
5964 (avr_write_sp): Delete function.
5965 (avr_read_fp): Ditto.
5966 (avr_init_extra_frame_info): Ditto.
5967 (avr_pop_frame): Ditto.
5968 (avr_frame_saved_pc): Ditto.
5969 (avr_saved_pc_after_call): Ditto.
5970 (avr_push_return_address): Ditto.
5971 (avr_frame_chain): Ditto.
5972 (avr_store_struct_return): Ditto.
5973 (avr_push_arguments): Ditto.
5974 (avr_scan_prologue): Update comments. Changed to set up the info for
5975 cache unwinding. Now returns end of prologue PC.
5976 (avr_skip_prologue): Better handling of functions lacking a prologue
5977 by using avr_scan_prologue.
5978 (avr_scan_arg_moves): New function.
5979 (avr_saved_regs_unwinder): Ditto.
5980 (avr_frame_unwind_cache): Ditto.
5981 (avr_unwind_pc): Ditto.
5982 (avr_frame_this_id): Ditto.
5983 (avr_frame_prev_register): Ditto.
5984 (avr_frame_p): Ditto.
5985 (avr_frame_base_address ): Ditto.
5986 (avr_unwind_dummy_id): Ditto.
5987 (avr_push_dummy_code): Ditto.
5988 (push_stack_item): Ditto.
5989 (pop_stack_item): Ditto.
5990 (avr_push_dummy_call): Ditto.
5991 (struct stack_item): Define.
5992 (avr_frame_unwind): Declare structure.
5993 (avr_frame_base): Ditto.
5994 (avr_gdbarch_init): Remove calls to
5995 set_gdbarch_deprecated_init_frame_pc,
5996 set_gdbarch_deprecated_target_read_fp,
5997 set_gdbarch_deprecated_dummy_write_sp,
5998 set_gdbarch_deprecated_fp_regnum,
5999 set_gdbarch_deprecated_push_arguments,
6000 set_gdbarch_deprecated_push_return_address,
6001 set_gdbarch_deprecated_pop_frame,
6002 set_gdbarch_deprecated_store_struct_return,
6003 set_gdbarch_deprecated_frame_init_saved_regs,
6004 set_gdbarch_deprecated_init_extra_frame_info,
6005 set_gdbarch_deprecated_frame_chain,
6006 set_gdbarch_deprecated_frame_saved_pc,
6007 set_gdbarch_deprecated_saved_pc_after_call.
6008 Add calls to set_gdbarch_push_dummy_call,
6009 set_gdbarch_push_dummy_code,
6010 frame_unwind_append_predicate,
6011 frame_base_set_default,
6012 set_gdbarch_unwind_dummy_id,
6013 set_gdbarch_unwind_pc.
6014 Wrap a long line.
6015
6016 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6017
6018 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6019 registers for H8/300S.
6020 (h8300_print_registers_info): Ditto.
6021 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6022
6023 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
6024
6025 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6026 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6027 (lin_lwp_wait): Likewise. Update comments.
6028 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6029 (pull_pid_from_list, linux_record_stopped_pid): New.
6030
6031 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6032
6033 * ada-lang.c (scan_discrim_bound): Name first argument.
6034 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6035 declared by ALL_BLOCK_SYMBOLS.
6036
6037 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6038
6039 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6040 ("regcache.h"): Include it.
6041 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6042
6043 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6044
6045 * NEWS: Mention gdbserver detach change and "disconnect" command.
6046 * infcmd.c (disconnect_command): New function.
6047 (_initialize_infcmd): Add ``disconnect'' command.
6048 * remote.c (remote_async_detach): Delete.
6049 (remote_detach): Merge remote_async_detach.
6050 (remote_disconnect): New.
6051 (init_remote_ops): Set to_disconnect.
6052 (init_remote_cisco_ops): Likewise.
6053 (init_remote_async_ops): Likewise. Use remote_detach.
6054 * target.c (cleanup_target): Default to_disconnect.
6055 (update_current_target): Inherit to_disconnect.
6056 (target_disconnect, debug_to_disconnect): New functions.
6057 (setup_target_debug): Set to_disconnect.
6058 * target.h (struct target_ops): Add to_disconnect.
6059 (target_disconnect): Add prototype.
6060
6061 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6062
6063 * breakpoint.c (insert_catchpoint): New function.
6064 (insert_breakpoints): Use catch_exceptions to call
6065 insert_catchpoint. Disable catchpoints if they fail to insert.
6066
6067 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6068
6069 * symfile.c (reread_symbols): Clear sym_private.
6070
6071 2003-06-17 Andrew Cagney <cagney@redhat.com>
6072
6073 * trad-frame.h (struct frame_info): Add opaque declaration.
6074 * remote-fileio.h (struct cmd_list_element): Add opaque
6075 declaration.
6076 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6077 comments.
6078
6079 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6080
6081 * remote.c (remote_prepare_to_store): Replace call to
6082 deprecated_read_register_bytes with multiple regcache_raw_read
6083 calls.
6084
6085 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6086
6087 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6088 (nto_find_and_open_solib): Likewise.
6089 (nto_init_solib_absolute_prefix): Likewise.
6090 (_initialize_nto_tdep): Fix indentation.
6091
6092 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6093
6094 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6095
6096 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6097
6098 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6099
6100 2003-06-17 Jim Blandy <jimb@redhat.com>
6101
6102 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6103
6104 2003-06-16 Theodore A. Roth <troth@openavr.org>
6105
6106 * avr-tdep.c (avr_extract_return_value): New function.
6107 (avr_gdbarch_init): Set extract_return_value method.
6108
6109 2003-06-16 Andrew Cagney <cagney@redhat.com>
6110
6111 * frame.h (deprecated_get_next_frame_hack): Declare.
6112 * frame.c (legacy_saved_regs_prev_register): Only require
6113 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6114 there are always saved regs.
6115 (deprecated_generic_get_saved_register): Do not require
6116 DEPRECATED_FRAME_INIT_SAVED_REGS.
6117 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6118 use frame ID unwind instead.
6119 (deprecated_get_next_frame_hack): New function.
6120
6121 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6122
6123 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6124 (h8300_push_dummy_call): ...this function. Some minor optimization.
6125 (h8300_push_return_address): Remove.
6126 (h8300_gdbarch_init): Remove calls to
6127 set_gdbarch_deprecated_dummy_write_sp,
6128 set_gdbarch_deprecated_push_arguments and
6129 set_gdbarch_deprecated_push_return_address.
6130 Add call to set_gdbarch_push_dummy_call.
6131
6132 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6133
6134 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6135 (E_PSEUDO_EXR_REGNUM): Ditto.
6136 (h8300_is_argument_spill): Check for instructions moving argument
6137 registers into safe registers.
6138 (h8300_skip_prologue): Check for stm instruction to push registers
6139 used for register variables onto stack.
6140 (gdb_print_insn_h8300): Remove.
6141 (h8300_examine_prologue): Add a comment.
6142 (h8300_register_name): Take pseudo registers into account.
6143 (h8300s_register_name): Ditto.
6144 (h8300sx_register_name): Ditto.
6145 (h8300_print_register): Ditto.
6146 (h8300_print_registers_info): Define "nice" printing order.
6147 (h8300_saved_pc_after_call): Take pseudo registers into account.
6148 (h8300_register_type): Ditto. Return type used for remote connection
6149 when requesting real CCR or EXR register, return actual type when
6150 requesting pseudo CCR or EXR.
6151 (h8300_pseudo_register_read): New function.
6152 (h8300_pseudo_register_write): Ditto.
6153 (h8300_dbg_reg_to_regnum): Ditto.
6154 (h8300s_dbg_reg_to_regnum): Ditto.
6155 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6156 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6157 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6158 set_gdbarch_print_insn architecture dependent.
6159 Call set_gdbarch_pseudo_register_read and
6160 set_gdbarch_pseudo_register_write.
6161 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6162
6163 2003-06-16 Andrew Cagney <cagney@redhat.com>
6164
6165 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6168 * s390-tdep.c (s390_gdbarch_init): Update.
6169 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6170 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6171 * mips-tdep.c (mips_gdbarch_init): Update.
6172 * mcore-tdep.c (mcore_gdbarch_init): Update.
6173 * cris-tdep.c (cris_gdbarch_init): Update.
6174 * infcall.c (call_function_by_hand): Update.
6175 * ia64-tdep.c (ia64_push_arguments): Update comment.
6176 * frame.c (legacy_get_prev_frame): Do not assume
6177 SAVE_DUMMY_FRAME_TOS_P.
6178 * dummy-frame.c (find_dummy_frame): Update comment.
6179
6180 2003-06-16 Andrew Cagney <cagney@redhat.com>
6181
6182 * regcache.c (do_cooked_read): Do not use register_valid_p.
6183
6184 2003-06-15 Theodore A. Roth <troth@openavr.org>
6185
6186 * avr-tdep.c (avr_register_type): Remove a blank line.
6187 (avr_scan_prologue): Correct some comments.
6188
6189 2003-06-15 Theodore A. Roth <troth@openavr.org>
6190
6191 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6192 prologue types.
6193 Properly scan prologues generated by gcc with the -mcall-prologues
6194 option.
6195 Add code to scan -mcall-prologues for mega devices.
6196
6197 2003-06-15 Theodore A. Roth <troth@openavr.org>
6198
6199 * avr-tdep.c (avr_register_byte): Delete function.
6200 (avr_register_raw_size): Delete function.
6201 (avr_register_virtual_size): Delete function.
6202 (avr_register_virtual_type): Delete function.
6203 (avr_register_type): New function.
6204 (avr_address_to_pointer): Remove unused code.
6205 (avr_read_fp): Need to read FP as two separate bytes due to change to
6206 avr_register_type() usage.
6207 (avr_gdbarch_init): Don't set deprecated_register_size.
6208 Don't set deprecated_register_bytes.
6209 Don't set deprecated_register_byte.
6210 Don't set deprecated_register_raw_size.
6211 Don't set deprecated_max_register_raw_size.
6212 Don't set deprecated_register_virtual_size.
6213 Don't set deprecated_max_register_virtual_size.
6214 Don't set deprecated_register_virtual_type.
6215 Set register_type method.
6216
6217 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6218
6219 * Makefile.in (linux-nat.o): Add rule.
6220 * linux-nat.c: New file.
6221 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6222 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6223 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6224 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6225 * config/arm/linux.mh (NATDEPFILES): Likewise.
6226 * config/i386/linux.mh (NATDEPFILES): Likewise.
6227 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6228 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6229 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6230 * config/mips/linux.mh (NATDEPFILES): Likewise.
6231 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6232 * config/s390/s390.mh (NATDEPFILES): Likewise.
6233 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6234
6235 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6236
6237 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6238 replace out-of-date comment.
6239
6240 2003-06-15 Andrew Cagney <cagney@redhat.com>
6241
6242 * rdi-share/host.h (Fail): Change to a varargs function.
6243 * remote-rdi.c (Fail): Update.
6244
6245 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6246
6247 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6248 (i386_convert_register_p, i386_register_to_value,
6249 i386_register_from_value): Handle types longer than 8 bytes.
6250
6251 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6252
6253 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6254 Move floating-point code to new function in i387-tdep.c.
6255 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6256 New functions containing code moved here from i386-tdep.c.
6257 * i387-tdep.h: Add opaque declaration for `struct type'.
6258 (i387_register_to_value, i387_value_to_register): New prototypes.
6259 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6260 (x86_64_init_abi): Set convert_register_p, register_to_value and
6261 value_to_register here.
6262
6263 2003-06-14 Andrew Cagney <cagney@redhat.com>
6264
6265 * mips-tdep.c (mips_register_to_value): Make static.
6266 (mips_value_to_register): Make static.
6267 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6268 * ia64-tdep.c (ia64_register_raw_size): Make static.
6269 (ia64_register_virtual_size): Make static.
6270 (ia64_register_byte): Make static.
6271 * i387-tdep.c: Include "i387-tdep.h".
6272 (print_387_control_word): Delete function.
6273 (print_387_status_word): Delete function.
6274 (print_387_status_bits): Delete function.
6275 (print_387_control_bits): Delete function.
6276 * Makefile.in (i387-tdep.o): Update dependencies.
6277 * rdi-share/host.h (Fail): Declare.
6278 * remote-rdi.c (Fail): Update to match declaration.
6279
6280 2003-06-14 Andrew Cagney <cagney@redhat.com>
6281
6282 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6283 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6284 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6285 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6286 * README: Delete reference to remote-array.
6287 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6288 (remote-array.o): Delete target.
6289 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6290 * remote-array.c: Delete file.
6291
6292 2003-06-14 Andrew Cagney <cagney@redhat.com>
6293 Mark Kettenis <kettenis@gnu.org>
6294
6295 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6296 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6297 parameter with "frame".
6298 * gdbarch.h, gdbarch.c: Re-generate.
6299 * frame.h (put_frame_register): Declare.
6300 * frame.c (put_frame_register): New function.
6301 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6302 (legacy_register_to_value): Rewrite, use "frame" to get the
6303 register value.
6304 (legacy_value_to_register): Rewrite, use "frame" to find the
6305 register's location before storing.
6306 * arch-utils.h (legacy_convert_register_p): Update.
6307 (legacy_register_to_value, legacy_value_to_register): Update.
6308 * findvar.c (value_from_register): Rewrite, eliminate use of
6309 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6310 "frame" to REGISTER_TO_VALUE.
6311 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6312 lval_reg_frame_relative + lval_register branch of the switch. Do
6313 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6314 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6315 I386_EDI_REGNUM): New defines.
6316 (i386_next_regnum, i386_convert_register_p,
6317 i386_register_to_value, i386_value_to_register): New functions.
6318 (i386_register_convertible, i386_register_convert_to_virtual,
6319 i386_convert_to_raw): Remove functions.
6320 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6321 value_to_register instead of register_convertible,
6322 register_convert_to_virtual and register_convert_to_raw.
6323 * mips-tdep.c (mips_convert_register_p): New function.
6324 (mips_value_to_register): Replace mips_register_convert_from_type.
6325 (mips_register_to_value): Replace mips_register_convert_to_type.
6326 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6327 register_to_value.
6328 * alpha-tdep.c (alpha_convert_register_p): Update.
6329 (alpha_value_to_register): Update, store the register.
6330 (alpha_register_to_value): Update, fetch the register.
6331
6332 2003-06-14 Theodore A. Roth <troth@openavr.org>
6333
6334 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6335 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6336 Don't set deprecated_call_dummy_words.
6337 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6338 Don't set remote_translate_xfer_address.
6339 (avr_io_reg_read_command): Remove commented out debug printf.
6340 Wrap a long line.
6341
6342 2003-06-14 Theodore A. Roth <troth@openavr.org>
6343
6344 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6345 causes gdb to seg fault.
6346
6347 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6348
6349 * sparc-nat.c (fetch_inferior_registers): Correct
6350 a reference to "registers".
6351
6352 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6353
6354 * Makefile.in (exc_request_U_h): Define
6355 (exc_request_S_h): Likewise.
6356 (msg_reply_S_h): Likewise.
6357 (msg_U_h): Likewise.
6358 (notify_S_h): Likewise.
6359 (process_reply_S_h): Likewise.
6360 (gnu-nat.o): Depend on gdb_obstack_h
6361 * gnu-nat.c: Include "gdb_obstack.h".
6362
6363 2003-06-13 Andrew Cagney <cagney@redhat.com>
6364
6365 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6366 * gdbarch.h, gdbarch.c: Re-generate.
6367
6368 2003-06-13 Andrew Cagney <cagney@redhat.com>
6369
6370 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6371 when deprecated REGISTER macros can be deleted.
6372 * gdbarch.h, gdbarch.c: Re-generate.
6373
6374 2003-06-13 Jim Blandy <jimb@redhat.com>
6375
6376 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6377 Linux entry point symbols for _dl_debug_state, too.
6378
6379 2003-06-13 Andrew Cagney <cagney@redhat.com>
6380
6381 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6382 available, do not use the FP register, and always save the TOS.
6383 * dummy-frame.c (dummy_frame_this_id): Do not assert
6384 SAVE_DUMMY_FRAME_TOS.
6385 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6386 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6387 (i386_push_dummy_call): Add 8 to the returned SP.
6388 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6389 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6390 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6391 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6392 (x86_64_push_dummy_call): Return "sp + 16".
6393 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6394 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6395 save_dummy_frame_tos.
6396
6397 2003-06-13 Jim Blandy <jimb@redhat.com>
6398
6399 * frv-tdep.c (frv_use_struct_convention): Delete static
6400 declaration for function deleted in my change of 2003-06-12.
6401
6402 2003-06-13 Theodore A. Roth <troth@openavr.org>
6403
6404 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6405 (avr_pointer_to_address): Shift code addrs left 1 bit.
6406 (avr_convert_from_func_ptr_addr): Delete function since operation is
6407 better handled by avr_address_to_pointer and avr_pointer_to_address.
6408 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6409
6410 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6411
6412 From Kelley Cook <kelleycook@wideopenwest.com>:
6413 * configure.host: Accept i[34567]86 variants.
6414 * configure.tgt: Likewise.
6415 * nlm/configure.in: Likewise.
6416 * nlm/configure: Regenerated.
6417
6418 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6419
6420 * arm-tdep.c (solib-svr4.h): Dont' include it.
6421 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6422 * arm-linux-tdep.c: ... here. Make static.
6423 (arm_linux_init_abi): Register it.
6424 (solib-svr4.h): Include it.
6425 * Makefile.in: Update dependencies.
6426 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6427 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6428
6429 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6430
6431 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6432 indicate registers used for return values.
6433 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6434 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6435 members.
6436 (h8300_init_extra_frame_info): Ditto.
6437 (h8300_frame_locals_address): Removed.
6438 (h8300_frame_args_address): Removed.
6439 (h8300_extract_return_value): Use new regcache structure. Only care
6440 for 16 bit CPUs.
6441 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6442 (h8300_store_return_value): Use new regcache structure. Only care
6443 for 16 bit CPUs.
6444 (h8300h_store_return_value): Same function for 32 bit CPUs.
6445 (h8300_store_struct_return): Removed.
6446 (h8300_extract_struct_value_address): Use new regcache structure.
6447 (h8300h_extract_struct_value_address): Removed.
6448 (h8300_push_dummy_code): New function.
6449 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6450 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6451 set_gdbarch_store_return_value architecture dependent.
6452 Call set_gdbarch_push_dummy_code and
6453 set_gdbarch_extract_struct_value_address.
6454 Remove calls to set_gdbarch_frame_args_address,
6455 set_gdbarch_frame_locals_address,
6456 set_gdbarch_deprecated_store_struct_return,
6457 set_gdbarch_deprecated_extract_return_value,
6458 set_gdbarch_deprecated_extract_struct_value_address,
6459 set_gdbarch_deprecated_call_dummy_words and
6460 set_gdbarch_deprecated_sizeof_call_dummy_words.
6461
6462 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6463
6464 * h8300-tdep.c (h8300_register_byte): Remove.
6465 (h8300h_register_byte): Remove.
6466 (h8300_register_virtual_type): Remove. Substitute by...
6467 (h8300_register_type): New function.
6468 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6469 (h8300h_extract_struct_value_address): Ditto.
6470 (h8300_gdbarch_init): Drop calls to
6471 set_gdbarch_deprecated_register_byte and
6472 set_gdbarch_deprecated_register_virtual_type.
6473 Add call to set_gdbarch_register_type.
6474
6475 2003-06-13 Andrew Cagney <cagney@redhat.com>
6476
6477 * gdbarch.sh: Update comments on registers.
6478 (deprecated_register_byte): Rename register_byte.
6479 (deprecated_register_raw_size): Rename register_raw_size.
6480 (deprecated_register_virtual_size): Rename register_virtual_size.
6481 (deprecated_register_virtual_type): Rename register_virtual_type.
6482 * gdbarch.h, gdbarch.c: Re-generate.
6483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6484 * vax-tdep.c (vax_gdbarch_init): Update.
6485 * v850-tdep.c (v850_gdbarch_init): Update.
6486 * sparc-tdep.c (sparc_gdbarch_init): Update.
6487 * sh-tdep.c (sh_gdbarch_init): Update.
6488 * s390-tdep.c (s390_gdbarch_init): Update.
6489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6490 * ns32k-tdep.c: Update.
6491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6492 * mips-tdep.c (mips_gdbarch_init): Update.
6493 * mcore-tdep.c (mcore_gdbarch_init): Update.
6494 * m68k-tdep.c (m68k_gdbarch_init): Update.
6495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6496 * ia64-tdep.c (ia64_gdbarch_init): Update.
6497 * hppa-tdep.c (hppa_gdbarch_init): Update.
6498 * h8300-tdep.c (h8300_gdbarch_init): Update.
6499 * frv-tdep.c (frv_gdbarch_init): Update.
6500 * cris-tdep.c (cris_gdbarch_init): Update.
6501 * avr-tdep.c (avr_gdbarch_init): Update.
6502 * alpha-tdep.c (alpha_gdbarch_init): Update.
6503 * arm-tdep.c (arm_gdbarch_init): Update.
6504
6505 2003-06-13 Andrew Cagney <cagney@redhat.com>
6506
6507 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6508 mips_o32_use_struct_convention with always_use_struct_convention.
6509
6510 2003-06-12 David Carlton <carlton@kealia.com>
6511
6512 * cp-namespace.c (cp_set_block_scope): Comment out
6513 processing_has_namespace_info branch.
6514
6515 2003-06-12 Jim Blandy <jimb@redhat.com>
6516
6517 Recognize and skip 64-bit PowerPC Linux linkage functions.
6518 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6519 insn_pattern, insns_match_pattern, d_field, ds_field): New
6520 functions, macros, and types for working with PPC instructions.
6521 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6522 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6523 ppc64_skip_trampoline_code): New functions, variables, and macros
6524 for recognizing and skipping linkage functions.
6525 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6526 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6527
6528 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6529 register offsets for both the 32- and 64-bit interfaces.
6530
6531 Actually finish the job started by my change of 2003-05-29.
6532 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6533 other #definition of this.
6534 (ppc_linux_skip_trampoline_code): Remove declaration.
6535 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6536 static.
6537 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6538 method for GDBARCH.
6539
6540 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6541 'long' on ppc64-*-linux*.
6542
6543 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6544 isn't #defined, assume the register doesn't exist: act as if
6545 tdep->ppc_mq_regnum were -1.
6546
6547 * configure.host, configure.tgt: Add entries for
6548 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6549 powerpc/linux.mt.
6550 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6551 New files.
6552
6553 * arch-utils.c (always_use_struct_convention): New function.
6554 * arch-utils.h (always_use_struct_convention): New prototype.
6555 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6556 (alpha_gdbarch_init): Register always_use_struct_convention,
6557 instead of alpha_use_struct_convention.
6558 * cris-tdep.c (cris_use_struct_convention): Delete.
6559 (cris_gdbarch_init): Register always_use_struct_convention,
6560 instead of cris_use_struct_convention.
6561 * frv-tdep.c (frv_use_struct_convention): Delete.
6562 (frv_gdbarch_init): Register always_use_struct_convention,
6563 instead of frv_use_struct_convention.
6564 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6565 (h8300_gdbarch_init): Register always_use_struct_convention,
6566 instead of h8300_use_struct_convention.
6567 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6568 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6569 instead of mips_o32_use_struct_convention.
6570
6571 2003-06-12 Andrew Cagney <cagney@redhat.com>
6572
6573 * wince.c: Include "mips-tdep.h".
6574 * mips-tdep.h (mips_next_pc): Declare.
6575 * mcore-tdep.c: Make more local functions static.
6576 * Makefile.in (wince.o): Update dependencies.
6577
6578 2003-06-12 David Carlton <carlton@kealia.com>
6579
6580 * symtab.c (lookup_symbol_aux_minsyms): Replace
6581 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6582 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6583 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6584 SYMBOL_NATURAL_NAME.
6585
6586 2003-06-12 Andreas Schwab <schwab@suse.de>
6587
6588 * Makefile.in (tuiDisassem.o): Update dependencies.
6589
6590 2003-06-12 David Carlton <carlton@bactrian.org>
6591
6592 * symtab.h: Delete declaration of make_symbol_overload_list.
6593 Add declaration of lookup_partial_symbol.
6594 * symtab.c (remove_params): Move to cp-support.c.
6595 (overload_list_add_symbol, make_symbol_overload_list)
6596 (sym_return_val_size, sym_return_val_index): Ditto.
6597 (lookup_partial_symbol): Make extern.
6598 * cp-support.h: Add declaration of make_symbol_overload_list.
6599 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6600 symtab.h, and block.h.
6601 (remove_params): Move here from symtab.c.
6602 (overload_list_add_symbol, make_symbol_overload_list)
6603 (sym_return_val_size, sym_return_val_index): Ditto.
6604 * valops.c: Include cp-support.h.
6605 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6606 frame_h, and block_h.
6607 (valops.o): Depend on cp_support_h.
6608
6609 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6610
6611 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6612 substitute by NUM_REGS throughout.
6613 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6614 (h8300s_register_name): New function for H8S registers.
6615 (h8300sx_register_name): Ditto for H8SX registers.
6616 (h8300_print_register): Revise register printing, avoid depending
6617 on 32 bit long.
6618 (h8300_register_byte): Only care for H8/300 registers.
6619 (h8300h_register_byte): New function for any other architecture.
6620 (h8300_register_raw_size): Remove.
6621 (h8300_register_virtual_type): Revise to return actually useful
6622 type.
6623 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6624 (h8300h_extract_struct_value_address): New function for any other
6625 architecture.
6626 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6627 set_gdbarch_register_name, set_gdbarch_register_byte,
6628 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6629 Remove calls to set_gdbarch_deprecated_register_size,
6630 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6631 set_gdbarch_deprecated_max_register_raw_size,
6632 set_gdbarch_register_virtual_size and
6633 set_gdbarch_deprecated_max_register_virtual_size entirely.
6634 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6635 set_gdbarch_long_double_bit.
6636
6637 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6638
6639 * doublest.c (convert_doublest_to_floatformat): When dealing
6640 with the implied integer bit, only alter mant_bits if we are
6641 processing a full 32 bits of mantissa.
6642
6643 2003-06-11 David Carlton <carlton@bactrian.org>
6644
6645 * dictionary.h: New.
6646 * dictionary.c: New.
6647 * block.h: Add opaque declaration for struct dictionary.
6648 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6649 'sym' members.
6650 (BLOCK_DICT): New macro.
6651 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6652 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6653 BLOCK_SHOULD_SORT.
6654 (ALL_BLOCK_SYMBOLS): Update definition.
6655 * Makefile.in (SFILES): Add dictionary.c.
6656 (dictionary_h): New.
6657 (COMMON_OBS): Add dictionary.o.
6658 (dictionary.o): New.
6659 (ada-lang.o): Depend on dictionary_h.
6660 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6661 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6662 (mi-cmd-stack.o): Ditto.
6663 (gdbtk-cmds.o): Update dependencies.
6664 (gdbtk-stack.o): Ditto.
6665 * ada-lang.c: Include dictionary.h.
6666 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6667 (fill_in_ada_prototype, debug_print_block): Ditto.
6668 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6669 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6670 'is_sorted'.
6671 * mdebugread.c: Include dictionary.h.
6672 (struct parse_stack): Delete 'maxsyms' member.
6673 (parse_symbol): Update calls to new_block. Delete calls to
6674 shrink_block. Use dictionary methods.
6675 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6676 Update calls to new_symtab. Don't maintain maxsyms data.
6677 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6678 (add_symbol): Just call dict_add_symbol.
6679 (new_symtab): Delete 'maxsyms' argument.
6680 (new_symtab): Update calls to new_block.
6681 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6682 (shrink_block): Delete function.
6683 (fixup_sigtramp): Update call to new_block. Add symbol via
6684 dict_add_symbol.
6685 * jv-lang.c: Include dictionary.h.
6686 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6687 appropriately. Set class_symtab->free_func. Make sure the
6688 blockvector is big enough to hold two blocks.
6689 (add_class_symtab_symbol): Use dictionary methods.
6690 (free_class_block): New function.
6691 (type_from_class): Replace explicit iteration by
6692 ALL_BLOCK_SYMBOLS.
6693 * symtab.h (struct symtab): Replace 'free_ptr' method by
6694 'free_func'.
6695 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6696 sort_symtab_syms.
6697 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6698 sort_symtab_syms.
6699 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6700 Include dictionary.h.
6701 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6702 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6703 sort_symtab_syms.
6704 * objfiles.c: Include dictionary.h.
6705 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6706 * buildsym.c: Include dictionary.h.
6707 (finish_block): Use dictionary methods.
6708 (end_symtab): Set free_func to NULL, not free_ptr.
6709 * tracepoint.c: Include dictionary.h.
6710 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6711 (scope_info): Ditto.
6712 * stack.c: Include dictionary.h.
6713 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6714 (print_block_frame_labels, print_frame_arg_vars)
6715 (print_frame_args): Ditto.
6716 * symmisc.c (free_symtab_block): Use dictionary methods.
6717 (dump_symtab): Ditto.
6718 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6719 Include dictionary.h.
6720 * symfile.h: Delete declarations of sort_block_syms,
6721 sort_symtab_syms.
6722 * symfile.c (sort_block_syms): Delete.
6723 (sort_symtab_syms): Delete.
6724 * symtab.c: Include dictionary.h.
6725 (lookup_block_symbol): Use dictionary iterators.
6726 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6727 (search_symbols, make_symbol_completion_list): Ditto.
6728 (make_symbol_overload_list): Ditto.
6729 * valops.c (value_of_local): Use dict_empty.
6730 Include dictionary.h.
6731
6732 2003-06-11 J. Brobecker <brobecker@gnat.com>
6733
6734 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6735
6736 2003-06-11 David Carlton <carlton@bactrian.org>
6737
6738 * block.h (BLOCK_SHOULD_SORT): Delete.
6739 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6740 blocks.
6741 * ada-lang.c (ada_add_block_symbols): Ditto.
6742 * symfile.c (sort_block_syms): Delete.
6743 (sort_symtab_syms): Ditto.
6744 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6745 declarations.
6746 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6747 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6748 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6749 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6750 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6751 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6752 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6753
6754 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6755
6756 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6757 bits to 128.
6758
6759 2003-06-11 Andrew Cagney <cagney@redhat.com>
6760
6761 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6762 REGISTER_CONVERTIBLE.
6763 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6764 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6765 * gdbarch.h, gdbarch.c: Re-generate.
6766 * arch-utils.h (deprecated_register_convertible_not): Rename
6767 generic_register_convertible_not.
6768 * arch-utils.c (deprecated_register_convertible_not): Rename
6769 generic_register_convertible.
6770 (legacy_convert_register_p, legacy_register_to_value): Update.
6771 * sh-tdep.c (sh64_push_arguments): Update.
6772 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6773 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6774 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6775 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6776 * arch-utils.c (legacy_value_to_register): Update.
6777 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6778 (rs6000_register_convert_to_raw): Make parameter "from" const.
6779 * mips-tdep.c (mips_gdbarch_init): Update.
6780 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6781 * infcmd.c (default_print_registers_info): Update.
6782 * ia64-tdep.c (ia64_gdbarch_init): Update.
6783 (ia64_register_convert_to_raw): Make parameter "from" const.
6784 * i386-tdep.c (i386_gdbarch_init): Update.
6785 (i386_register_convert_to_raw): Update.
6786
6787 2003-06-11 Andrew Cagney <cagney@redhat.com>
6788
6789 * remote-fileio.c: Include "remote-fileio.h".
6790 * Makefile.in (remote-fileio.o): Update dependencies.
6791 (remote_fileio_h): Fix typo.
6792
6793 2003-06-11 Andrew Cagney <cagney@redhat.com>
6794
6795 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6796 (xstormy16_save_dummy_frame_tos): Make static.
6797 (_initialize_xstormy16_tdep): Add declaration.
6798 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6799 * v850-tdep.c: Make local functions static.
6800 (_initialize_v850_tdep): Add declaration.
6801 * sparc-tdep.c: Make local functions static.
6802 (_initialize_sparc_tdep): Add declaration.
6803 * sh-tdep.c: Make local functions static.
6804 (_initialize_sh_tdep): Add declaration.
6805 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6806 * s390-tdep.c: Make local functions static.
6807 (_initialize_s390_tdep): Add declaration.
6808 * dbxread.c (find_stab_function_addr): Make static.
6809 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6810 * ocd.c (_initialize_remote_ocd): Add declaration.
6811 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6812 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6813 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6814 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6815 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6816 * remote-array.c (_initialize_array): Add declaration.
6817 (_initialize_remote_monitors): Add declaration.
6818 * remote-mips.c: Make local functions static.
6819 (_initialize_remote_mips): Add declaration.
6820 * mcore-tdep.c: Make all local functions static.
6821 (_initialize_mcore_tdep): Add declaration.
6822 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6823 * abug-rom.c (_initialize_abug_rom): Add declaration.
6824 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6825 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6826 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6827 * remote-est.c (_initialize_est): Add declaration.
6828 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6829 (m68hc11_call_dummy_address): Make static.
6830 * ia64-tdep.c: Make local functions static.
6831 (_initialize_ia64_tdep): Add declaration.
6832 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6833 * monitor.c (monitor_wait_filter): Make static.
6834 (_initialize_remote_monitors): Add declaration.
6835 * remote-hms.c (_initialize_remote_hms): Add declaration.
6836 * remote-e7000.c (fetch_regs_from_dump): Make static.
6837 (expect_n): Make static.
6838 (_initialize_remote_e7000): Add declaration.
6839 * ser-e7kpc.c: Always include "defs.h".
6840 (_initialize_ser_e7000pc): Add declaration.
6841 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6842 * cris-tdep.c: Make all but one function static.
6843 (_initialize_cris_tdep): Add declaration.
6844 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6845 * solib.c (update_solib_list): Make static.
6846 (_initialize_solib): Add declaration.
6847 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6848 (_initialize_avr_tdep): Add declaration.
6849 * remote-rdi.c (voiddummy): Make static.
6850 (_initialize_remote_rdi): Add declaration.
6851 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6852 * remote-rdp.c (send_rdp): Make static.
6853 (_initialize_remote_rdp): Add declaration.
6854 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6855
6856 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6857
6858 * remote-fileio.c: Make ari happy.
6859
6860 2003-06-10 J. Brobecker <brobecker@gnat.com>
6861
6862 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6863 fetching the trailing bytes of the buffer we are about to write.
6864
6865 2003-06-10 Andrew Cagney <cagney@redhat.com>
6866
6867 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6868 * Makefile.in (remote-fileio.o): Update dependencies.
6869 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6870 include <setjmp.h>, or <sys/types.h> conditional on USG.
6871 (remote_fio_jmp_buf): Delete global variable.
6872
6873 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6874 Martin M. Hunt <hunt@redhat.com>
6875
6876 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6877 (SFILES): Add remote-fileio.c.
6878 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6879 dependencies for building remote.o.
6880 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6881 * remote-fileio.h: New header file defining remote File-I/O interface.
6882 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6883 static storage class.
6884 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6885 'F' packet.
6886 (_initialize_remote): Call initialize_remote_fileio().
6887 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6888 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6889 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6890 (captured_main): Initialize new ui_files.
6891 * ui-file.c: Add read and fgets input functions.
6892 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6893 (null_file_read): New function.
6894 (ui_file_read): New function.
6895 (set_ui_file_read): New function.
6896 (stdio_file_read): New function.
6897 * ui-file.h: New type ui_file_read_ftype.
6898 (set_ui_file_read): Declare.
6899 (ui_file_read): Declare.
6900
6901 2003-06-09 Andrew Cagney <cagney@redhat.com>
6902
6903 * frame.h (deprecated_unwind_get_saved_register): Rename
6904 generic_unwind_get_saved_register, update comments.
6905 * mips-tdep.c (mips_get_saved_register): Update.
6906 * frame.c (deprecated_unwind_get_saved_register): Update.
6907
6908 2003-06-09 Andrew Cagney <cagney@redhat.com>
6909
6910 * vax-tdep.c (vax_frame_locals_address): Delete function.
6911 (vax_gdbarch_init): Do not set frame_locals_address.
6912 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6913 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6914 * s390-tdep.c (s390_frame_args_address): Delete function.
6915 (s390_gdbarch_init): Do not set frame_args_address or
6916 frame_locals_address.
6917 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6918 (ns32k_gdbarch_init): Do not set frame_locals_address.
6919 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6920 (hppa_frame_locals_address): Delete function.
6921 (hppa_gdbarch_init): Do not set frame_args_address, or
6922 frame_locals_address.
6923 * arm-tdep.c (arm_frame_args_address): Delete.
6924 (arm_frame_locals_address): Delete.
6925 (arm_gdbarch_init): Do not set frame_args_address, or
6926 frame_locals_address.
6927
6928 2003-06-09 Andrew Cagney <cagney@redhat.com>
6929
6930 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6931 * gdbarch.h, gdbarch.c: Re-generate.
6932 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6933 * arch-utils.c (frame_num_args_unknown): Delete function.
6934 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6935 (frame_info): Use FRAME_NUM_ARGS_P.
6936 * arm-tdep.c (arm_frame_num_args): Delete function.
6937 (arm_gdbarch_init): Do not set frame_num_args.
6938 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6939 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6940 (hppa_gdbarch_init): Do not set frame_num_args.
6941 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6943 frame_num_args to default frame_num_args_unknown.
6944 * v850-tdep.c (v850_gdbarch_init): Ditto.
6945 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6946 * sh-tdep.c (sh_gdbarch_init): Ditto.
6947 * s390-tdep.c (s390_gdbarch_init): Ditto.
6948 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6949 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6950 * mips-tdep.c (mips_gdbarch_init): Ditto.
6951 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6952 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6953 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6954 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6955 * i386-tdep.c (i386_gdbarch_init): Ditto.
6956 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6957 * frv-tdep.c (frv_gdbarch_init): Ditto.
6958 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6959 * cris-tdep.c (cris_gdbarch_init): Ditto.
6960 * avr-tdep.c (avr_gdbarch_init): Ditto.
6961 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6962
6963 2003-06-09 Andrew Cagney <cagney@redhat.com>
6964
6965 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6966 (print_frame_args): Moved to "stack.c".
6967 * stack.c: Include "gdb_assert.h".
6968 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6969 (print_frame_args): Moved from "printcmd.c".
6970 * frame.h (print_frame_args): Delete declaration.
6971 * Makefile.in (stack.o): Update dependencies.
6972
6973 2003-06-08 Andrew Cagney <cagney@redhat.com>
6974
6975 * frame.c (get_prev_frame): Remove reference to
6976 frame_args_address_correct in comments.
6977 * frame-base.c (default_frame_args_address): Delete code
6978 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6979 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6980 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6981 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6982 (vax_frame_args_address_correct): Delete declaration.
6983
6984 2003-06-08 Andrew Cagney <cagney@redhat.com>
6985
6986 * gdbarch.sh (UNWIND_SP): Add.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6988 * frame.c (frame_sp_unwind): New function.
6989 (get_frame_sp): New function.
6990 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6991 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6992 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6993 value.
6994 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6995 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6996
6997 2003-06-08 Andrew Cagney <cagney@redhat.com>
6998
6999 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7000 REMOTE_BREAKPOINT.
7001 * remote.c: Update.
7002 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7003 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7004 * config/m68k/tm-sun3.h: Update.
7005 * config/m68k/tm-m68klynx.h: Update.
7006 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7007
7008 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7009 trad_frame". Update comments.
7010 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7011 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7012 (trad_frame_register_value, trad_frame_prev_register): Update.
7013
7014 2003-06-08 Andrew Cagney <cagney@redhat.com>
7015
7016 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7017 from GCC's acinclude.m4.
7018 * configure.in: Check for getopt's delcaration.
7019 * aclocal.m4, config.in, configure: Re-generate.
7020 * main.c (error_init): Delete declaration.
7021 * defs.h (error_init): Declare.
7022 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7023 (rs6000_convert_from_func_ptr_addr): Make static.
7024 (_initialize_rs6000_tdep): Add declaration.
7025 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7026 (show_commands, set_verbose, show_history): Delete declaration.
7027 * top.h (set_verbose): Add declaration.
7028 (show_history, set_history, show_commands): Add declaration.
7029 (do_restore_instream_cleanup): Add declaration.
7030 * objc-lang.c (specialcmp): Make static.
7031 (print_object_command): Make static.
7032 (find_objc_msgsend): Make static.
7033 (find_objc_msgcall_submethod_helper): Make static.
7034 (find_objc_msgcall_submethod): Make static.
7035 (_initialize_objc_language): Add declaration.
7036 (find_implementation_from_class): Make static.
7037 (find_implementation): Make static.
7038 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7039 * objc-lang.h (lookup_struct_typedef): Add declaration.
7040 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7041 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7042 (do_restore_user_call_depth): Make static.
7043 (do_restore_instream_cleanup): Delete declaration.
7044 (dont_repeat): Delete declaration.
7045 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7046 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7047 * reggroups.c (_initialize_reggroup): Add declaration.
7048 * cp-support.c (_initialize_cp_support): Add declaration.
7049 * cp-abi.c (_initialize_cp_abi): Add declaration.
7050 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7051 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7052 (_initialize_gnu_v3_abi): Add declaration.
7053 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7054 (_initialize_gnu_v2_abi): Add declaration.
7055 * frame-base.c (_initialize_frame_base): Add declaration.
7056 * doublest.c (floatformat_from_length): Make static.
7057 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7058 * frame.c (create_sentinel_frame): Make static.
7059 (_initialize_frame): Add declaration.
7060 * top.c (do_catch_errors): Make static.
7061 (gdb_rl_operate_and_get_next_completion): Make static.
7062 * typeprint.c: Include "typeprint.h".
7063 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7064 (sentinel_frame_this_id): Make static.
7065 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7066 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7067 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7068 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7069 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7070 * maint.c (maintenance_print_architecture): Make static.
7071 * signals/signals.c (_initialize_signals): Add declaration.
7072 * std-regs.c (_initialize_frame_reg): Add declaration.
7073 * jv-exp.y (push_variable): ISO C definition.
7074 (push_qualified_expression_name): Ditto.
7075 * memattr.c (_initialize_mem): Add declaration.
7076 * remote.c (remote_check_watch_resources): Make static.
7077 (remote_stopped_by_watchpoint): Make static.
7078 (remote_stopped_data_address): Make static.
7079 * d10v-tdep.c (nr_dmap_regs): Make static.
7080 (a0_regnum): Make static.
7081 (d10v_frame_unwind_cache): Make static.
7082 (d10v_frame_p): Make static.
7083 * osabi.c (show_osabi): Make static.
7084 (_initialize_gdb_osabi): Add extern declaration.
7085 * gdbtypes.c (make_qualified_type): Make static.
7086 (safe_parse_type): Make static.
7087 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7088 * macrotab.c (macro_bcache_free): Make static.
7089 * interps.c (interp_set_quiet): Make static.
7090 (interpreter_exec_cmd): Make static.
7091 * stack.h (select_frame_command): New file.
7092 * stack.c: Include "stack.h".
7093 (select_frame_command_wrapper): Delete function.
7094 (select_frame_command): Make global.
7095 * infcall.c: Include "infcall.h".
7096 * linespec.c: Include "linespec.h".
7097 * symfile.c (sections_overlap): Make static.
7098 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7099 * charset.c (_initialize_charset): Add missing prototype.
7100 * regcache.c (init_legacy_regcache_descr): Make static.
7101 (do_regcache_xfree): Make static.
7102 (regcache_xfer_part): Make static.
7103 (_initialize_regcache): Add missing prototype.
7104 * breakpoint.c (parse_breakpoint_sals): Make static.
7105 (breakpoint_sals_to_pc): Make static.
7106 * interps.h (clear_interpreter_hooks): ISO C declaration.
7107 * Makefile.in (stack_h): Define.
7108 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7109 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7110
7111 2003-06-08 Andrew Cagney <cagney@redhat.com>
7112
7113 * Makefile.in (d10v-tdep.o): Update dependencies.
7114 (SFILES): Add trad-frame.c.
7115 (trad_frame_h): Define.
7116 (COMMON_OBS): Add trad-frame.o.
7117 (trad-frame.o): Specify dependencies.
7118 * d10v-tdep.c: Include "trad-frame.h".
7119 (saved_regs_unwinder): Delete function.
7120 (d10v_frame_prev_register): Use trad_frame_prev_register.
7121 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7122 trad_frame", delete "regs" and "prev_sp".
7123 (prologue_find_regs): Use trad-frame.
7124 * trad-frame.h, trad-frame.c: New files.
7125
7126 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7127
7128 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7129
7130 2003-06-07 Adam Fedor <fedor@gnu.org>
7131
7132 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7133 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7134 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7135 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7136 resolve_msgsend_super, resolve_msgsend_super_stret):
7137 Use it.
7138
7139 2003-06-07 Andrew Cagney <cagney@redhat.com>
7140
7141 * symfile.h: Re-indent, clean up comments.
7142
7143 2003-06-07 Andrew Cagney <cagney@redhat.com>
7144
7145 * inferior.h (deprecated_write_sp): Replace
7146 generic_target_write_sp.
7147 * regcache.c (deprecated_write_sp): Replace
7148 generic_target_write_sp.
7149 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7150 * vax-tdep.c (vax_gdbarch_init): Update.
7151 * v850-tdep.c (v850_gdbarch_init): Update.
7152 * sparc-tdep.c (sparc_gdbarch_init): Update.
7153 * sh-tdep.c (sh_gdbarch_init): Update.
7154 * s390-tdep.c (s390_gdbarch_init): Update.
7155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7156 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7157 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7158 * mcore-tdep.c (mcore_gdbarch_init): Update.
7159 * m68k-tdep.c (m68k_gdbarch_init): Update.
7160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7161 * ia64-tdep.c (ia64_gdbarch_init): Update.
7162 * h8300-tdep.c (h8300_gdbarch_init): Update.
7163 * frv-tdep.c (frv_gdbarch_init): Update.
7164 * cris-tdep.c (cris_gdbarch_init): Update.
7165 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7166
7167 2003-06-07 Andrew Cagney <cagney@redhat.com>
7168
7169 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7170 Assert that PC_REGNUM is valid.
7171 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7172
7173 2003-06-07 Andrew Cagney <cagney@redhat.com>
7174
7175 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7176 * gdbarch.h, gdbarch.c: Regenerate.
7177 * mn10300-tdep.c: Include "gdb_assert.h".
7178 (mn10300_read_fp): New function.
7179 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7180 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7181 * ia64-tdep.c: Include "gdb_assert.h".
7182 (ia64_read_fp): New function.
7183 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7184 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7185 * regcache.c (generic_target_read_sp): Delete function.
7186 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7187 * inferior.h (generic_target_read_sp): Delete declaration.
7188 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7189 generic_target_read_sp.
7190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7191 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7192 * sh-tdep.c (sh_gdbarch_init): Ditto.
7193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7194 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7195
7196 2003-06-07 Andrew Cagney <cagney@redhat.com>
7197
7198 * gdbarch.sh: Comment each field of startup_gdbarch.
7199 * gdbarch.h, gdbarch.c: Re-generate.
7200
7201 2003-06-07 Andrew Cagney <cagney@redhat.com>
7202
7203 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7204 * gdbarch.h, gdbarch.c: Re-generate.
7205 * regcache.c: Update comments on read_pc et.al.
7206 (generic_target_read_pc): Delete function.
7207 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7208 * inferior.h (generic_target_read_pc): Delete declaration.
7209 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7210 generic_target_read_pc.
7211 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7212 * sh-tdep.c (sh_gdbarch_init): Ditto.
7213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7215
7216 2003-06-07 Andrew Cagney <cagney@redhat.com>
7217
7218 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7219 "index" with "special_local_sect". Use strcmp instead of STREQ.
7220 Append period to coments.
7221
7222 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7223
7224 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7225 (elfstab_offset_sections): Likewise.
7226 * gdb-stabs.h (stab_section_info): Likewise.
7227 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7228 * objfiles.c (objfile_relocate): Likewise.
7229 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7230 * remote.c (get_offsets): Likewise.
7231 (remote_cisco_objfile_relocate): Likewise.
7232 * somread.c (som_symfile_offsets): Likewise.
7233 * symfile.c (alloc_section_addr_info): New function.
7234 (build_section_addr_info_from_section_tab): Use it.
7235 (free_section_addr_info): Adjust.
7236 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7237 (syms_from_objfile): Allocate local_addr dynamically.
7238 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7239 dynamically.
7240 (add_symbol_file_command): Allocate sect_opts dynamically.
7241 (reread_symbols): Avoid use of SECT_OFF_MAX.
7242 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7243 (alloc_section_addr_info): Declare it.
7244 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7245 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7246 dynamically.
7247 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7248
7249 2003-06-06 Andrew Cagney <cagney@redhat.com>
7250
7251 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7252 (d10v_frame_unwind_cache): Do not set "return_pc".
7253
7254 2003-06-06 Michael Snyder <msnyder@redhat.com>
7255
7256 * h8300-tdep.c: Make tidy (long lines).
7257
7258 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7259
7260 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7261 to regcache_collect().
7262
7263 2003-06-05 J. Brobecker <brobecker@gnat.com>
7264
7265 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7266 pc_in_sigtramp multiarch method.
7267 (hppa_hpux_som_init_abi): Use it.
7268 (hppa_hpux_elf_init_abi): Likewise.
7269 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7270 macro has been multiarched.
7271 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7272 macro here, as hppa64 isn't multiarched yet.
7273
7274 2003-06-05 Andrew Cagney <cagney@redhat.com>
7275
7276 * Makefile.in (value_h): Add $(frame_h).
7277 * value.h: Include "frame.h".
7278 (struct value): Replace "frame_addr" with "frame_id".
7279 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7280 * values.c (allocate_value): Use VALUE_FRAME_ID.
7281 (value_copy): Use VALUE_FRAME_ID.
7282 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7283 * valops.c (value_assign): Update. Use frame_find_by_id.
7284
7285 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7286
7287 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7288 in each pass.
7289
7290 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7291
7292 * thread-db.c (check_event): For create/death event breakpoints,
7293 loop through all messages to ensure that we read the message
7294 corresponding to the breakpoint we are at.
7295
7296 2003-06-04 Michael Snyder <msnyder@redhat.com>
7297
7298 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7299
7300 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7301
7302 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7303 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7304 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7305 when handling .eh_frame sections.
7306
7307 2003-06-04 J. Brobecker <brobecker@gnat.com>
7308
7309 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7310 prepare_to_proceed procedure instead of the hppa-specific one.
7311 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7312
7313 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7314
7315 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7316 * config.in: Regenerated.
7317 * configure.in: Add test for syscall function and check for
7318 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7319 * configure: Regenerated.
7320 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7321 <sys/syscall.h>.
7322 (kill_lwp): New function that uses tkill syscall or
7323 uses kill, depending on whether threading model is nptl or not.
7324 All callers of kill() changed to use kill_lwp().
7325 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7326 see if all threads have already exited in the nptl model.
7327 (stop_and_resume_callback): New callback function used by the
7328 lin_lwp_wait thread exit handling code.
7329 (stop_wait_callback): Check for threads already having exited and
7330 delete such threads fromt the lwp list when discovered.
7331 (stop_callback): Don't assert retcode of kill call.
7332
7333 Roland McGrath <roland@redhat.com>
7334 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7335 nptl libthread_db.
7336
7337 2003-06-03 Richard Henderson <rth@redhat.com>
7338
7339 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7340 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7341 (alpha_sigtramp_frame_prev_register): Likewise.
7342 (alpha_heuristic_frame_prev_register): Likewise.
7343 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7344
7345 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7346 alpha-specific register id names.
7347 (alpha_mdebug_frame_unwind_cache): Likewise.
7348 (alpha_mdebug_frame_prev_register): Likewise.
7349
7350 2003-06-03 Richard Henderson <rth@redhat.com>
7351
7352 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7353 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7354 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7355 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7356 unwind routines.
7357 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7358 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7359 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7360
7361 * alpha-linux-tdep.c: Remove unnecessary includes.
7362 * Makefile.in (alpha-linux-tdep.o): Update.
7363
7364 2003-06-03 Richard Henderson <rth@redhat.com>
7365
7366 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7367 (alphabsd_fill_fpreg): Likewise.
7368
7369 2003-06-03 J. Brobecker <brobecker@gnat.com>
7370
7371 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7372 references to struct frame_info fields by calls to the equivalent
7373 accessors. Necessary now that frame_info is opaque.
7374
7375 2003-06-03 J. Brobecker <brobecker@gnat.com>
7376
7377 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7378 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7379 structure, field no longer exists.
7380
7381 2003-06-03 J. Brobecker <brobecker@gnat.com>
7382
7383 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7384 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7385
7386 2003-06-03 J. Brobecker <brobecker@gnat.com>
7387
7388 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7389 references to struct frame_info fields by calls to the equivalent
7390 accessors. Necessary now that frame_info is opaque.
7391
7392 2003-06-03 J. Brobecker <brobecker@gnat.com>
7393
7394 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7395 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7396 structure, field no longer exists.
7397
7398 2003-06-03 Theodore A. Roth <troth@openavr.org>
7399
7400 * remote.c (init_remote_state): Compute sizeof_g_packet by
7401 accumulation of the size of all registers instead of blindly using
7402 DEPRECATED_REGISTER_BYTES.
7403
7404 2003-06-03 Michael Snyder <msnyder@redhat.com>
7405
7406 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7407 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7408 for h8300sx.
7409
7410 2003-06-03 J. Brobecker <brobecker@gnat.com>
7411
7412 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7413 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7414
7415 2003-06-03 Andrew Cagney <cagney@redhat.com>
7416
7417 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7418 (sparc_convert_to_raw): Delete function.
7419 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7420 register_convert_to_virtual.
7421
7422 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7423
7424 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7425 layer if not dealing with a statically-linked threaded program.
7426
7427 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7428
7429 * solib.c (solib_open): Update comment to reflect actual search order.
7430
7431 2003-06-03 Andrew Cagney <cagney@redhat.com>
7432
7433 * frame.c (get_frame_memory_signed): New function.
7434 (get_frame_memory, get_frame_memory_unsigned): New function.
7435 (get_frame_arch): New function.
7436 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7437 (get_frame_memory, get_frame_unsigned_memory): Declare.
7438 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7439 get_frame_memory_unsigned and get_frame_arch.
7440 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7441
7442 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7443
7444 * MAINTAINERS (write after approval): Add myself.
7445
7446 2003-06-03 Jim Blandy <jimb@redhat.com>
7447
7448 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7449 elements of gregset_t are 64 bits each, but access registers
7450 are still 32 bits, so they're packed two per gregset_t
7451 element. Unpack/pack them properly.
7452
7453 2003-06-02 David Carlton <carlton@bactrian.org>
7454
7455 * linespec.c (find_methods): Break out code into
7456 add_matching_methods and add_constructors.
7457 (add_matching_methods): New.
7458 (add_constructors): Ditto.
7459
7460 2003-06-02 Andrew Cagney <cagney@redhat.com>
7461
7462 * sparc-tdep.c (sparc_print_registers): Delete call to
7463 REGISTER_CONVERTIBLE.
7464 (sparc_gdbarch_init): Do not set register_convertible.
7465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7466 * frv-tdep.c (frv_gdbarch_init): Ditto.
7467 * cris-tdep.c (cris_gdbarch_init): Ditto.
7468
7469 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7470
7471 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7472 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7473 (syms_from_objfile): Ditto.
7474
7475 2003-06-03 Andreas Schwab <schwab@suse.de>
7476
7477 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7478 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7479
7480 2003-06-02 Richard Henderson <rth@redhat.com>
7481
7482 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7483 a member of all_reggroup.
7484
7485 2003-06-02 Richard Henderson <rth@redhat.com>
7486
7487 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7488 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7489 (alpha_lds, alpha_sts): New.
7490 (alpha_convert_register_p): Change from _register_convertible.
7491 (alpha_register_to_value): Change from _convert_to_virtual;
7492 restructure and fail for type sizes other than 4 or 8.
7493 (alpha_value_to_register): Similarly.
7494 (alpha_extract_return_value): Use alpha_sts.
7495 (alpha_store_return_value): Use alpha_lds.
7496 (alpha_gdbarch_init): Update hooks.
7497
7498 2003-06-02 Richard Henderson <rth@redhat.com>
7499
7500 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7501 regnum identifiers.
7502 (alpha_sigtramp_register_address): Likewise.
7503
7504 2003-06-02 Richard Henderson <rth@redhat.com>
7505
7506 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7507 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7508 * alpha-tdep.h: Declare them.
7509
7510 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7511 Remove zerobuf. Don't error on UNIQUE.
7512 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7513 (ALPHA_REGSET_UNIQUE): Provide default.
7514 (supply_gregset): Use alpha_supply_int_regs.
7515 (fill_gregset): Use alpha_fill_int_regs.
7516 (supply_fpregset): Use alpha_supply_fp_regs.
7517 (fill_fpregset): Use alpha_fill_fp_regs.
7518 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7519 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7520 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7521 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7522 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7523 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7524
7525 2003-06-02 Richard Henderson <rth@redhat.com>
7526
7527 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7528
7529 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7530 (alpha_store_return_value): Likewise.
7531
7532 2003-06-02 David Carlton <carlton@math.stanford.edu>
7533
7534 * block.c (contained_in): Add 'const' to arguments.
7535 (block_function): Ditto.
7536 * block.h: Update declarations for block_function and
7537 contained_in.
7538
7539 2003-06-02 David Carlton <carlton@math.stanford.edu>
7540
7541 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7542 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7543 * p-valprint.c (pascal_val_print): Ditto.
7544 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7545
7546 2003-06-02 Richard Henderson <rth@redhat.com>
7547
7548 * alpha-tdep.c (alpha_push_dummy_call): Use
7549 builtin_type_ieee_double_little instead of builtin_type_double.
7550
7551 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7552 sign-extension of 32-bit values.
7553 (alpha_store_return_value): Similarly.
7554
7555 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7556 (alpha_extract_return_value): Likewise.
7557 (alpha_store_return_value): Likewise.
7558
7559 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7560 (alpha_store_return_value): Error on IEEE Quad floats.
7561
7562 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7563 (alpha_extract_struct_value_address): Likewise.
7564 (alpha_store_return_value): Likewise.
7565 (alpha_store_struct_return): Remove.
7566 (alpha_gdbarch_init): Update hook registration to match.
7567
7568 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7569 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7570 macros where appropriate.
7571 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7572 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7573
7574 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7575 for SP, GP; void_func_ptr for PC; non-language-specific types
7576 for all others.
7577 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7578
7579 2003-06-02 Richard Henderson <rth@redhat.com>
7580
7581 * top.h (lim_at_start): Declare.
7582 * main.c (captured_main): Set it.
7583 * top.c (lim_at_start): Define.
7584 (command_loop): Use it instead of &environ.
7585 * event-top.c (command_handler): Likewise.
7586
7587 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7588
7589 * mipsnbsd-tdep.c: Update copyright years.
7590 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7591
7592 2003-06-01 Richard Henderson <rth@redhat.com>
7593
7594 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7595 (alpha-linux-tdep.o): Update dependencies.
7596 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7597 * alpha-mdebug-tdep.c: Remove unneeded includes.
7598
7599 2003-06-01 Richard Henderson <rth@redhat.com>
7600
7601 * alpha-tdep.c (alpha_register_reggroup_p): New.
7602 (alpha_gdbarch_init): Register it.
7603
7604 2003-06-02 Andrew Cagney <cagney@redhat.com>
7605
7606 * dwarfread.c: Eliminate "register"
7607 (decode_die_type): Eliminate assignment within "if".
7608 (struct_type, decode_array_element_type): Ditto.
7609 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7610 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7611 (decode_modified_type, completedieinfo): Ditto.
7612 * block.c: Eliminate "register".
7613 (blockvector_for_pc_sect): Eliminate assignment within "if".
7614 * cp-support.h (struct symbol): Opaque declaration.
7615 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7616
7617 2003-06-01 Richard Henderson <rth@redhat.com>
7618
7619 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7620 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7621
7622 2003-06-01 Adam Fedor <fedor@gnu.org>
7623
7624 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7625 * gdbarch.[ch]: Regenerate.
7626 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7627 (hppa_gdbarch_init): Set it in the gdbarch vector.
7628 * i386-tdep.c (i386_fetch_pointer_argument): New
7629 (i386_gdbarch_init): Set it into gdbarch.
7630 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7631 (rs6000_gdbarch_init): Set it in gdbarch.
7632 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7633 (sparc_gdbarch_init): Set it in gdbarch.
7634
7635 2003-06-01 Andrew Cagney <cagney@redhat.com>
7636
7637 * defs.h (extract_address): Delete declaration.
7638 * findvar.c (extract_address): Delete function.
7639 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7640 extract_address with the inline equivalent,
7641 extract_unsigned_integer.
7642 (xstormy16_extract_struct_value_address): Ditto.
7643 (xstormy16_pointer_to_address): Ditto.
7644 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7645 * v850-tdep.c (v850_push_arguments): Ditto.
7646 (v850_extract_return_value): Ditto.
7647 (v850_extract_struct_value_address): Ditto.
7648 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7649 (sparcnbsd_get_longjmp_target_64): Ditto.
7650 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7651 (get_longjmp_target): Ditto.
7652 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7653 (sh64_extract_struct_value_address): Ditto.
7654 (sh_push_arguments): Ditto.
7655 (sh64_push_arguments): Ditto.
7656 * remote-vxsparc.c (vx_read_register): Ditto.
7657 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7658 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7659 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7660 * mipsv4-nat.c (get_longjmp_target): Ditto.
7661 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7662 * mips-nat.c (get_longjmp_target): Ditto.
7663 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7664 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7665 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7666 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7667 * irix5-nat.c (get_longjmp_target): Ditto.
7668 * irix4-nat.c (get_longjmp_target): Ditto.
7669 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7670 (ia64_push_arguments): Ditto.
7671 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7672 * h8300-tdep.c (h8300_push_arguments): Ditto.
7673 (h8300_store_return_value): Ditto.
7674 (h8300_extract_struct_value_address): Ditto.
7675 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7676 (frv_push_arguments): Ditto.
7677 * avr-tdep.c (avr_pointer_to_address): Ditto.
7678 (avr_push_arguments): Ditto.
7679 * arm-tdep.c (arm_push_dummy_call): Ditto.
7680 (arm_get_longjmp_target): Ditto.
7681 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7682 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7683 (alpha_get_longjmp_target): Ditto.
7684
7685 * solib-irix.c (extract_mips_address): Inline extract_address,
7686 replacing it with extract_signed_integer.
7687 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7688 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7689 (first_link_map_member, open_symbol_file_object): Ditto.
7690 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7691 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7692 (LM_NEXT, LM_NAME): Ditto.
7693
7694 2003-06-01 Richard Henderson <rth@redhat.com>
7695
7696 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7697 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7698 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7699 (alpha_cannot_store_register): Likewise.
7700 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7701 * alpha-nat.c (supply_gregset): Likewise.
7702 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7703
7704 2003-06-01 Andrew Cagney <cagney@redhat.com>
7705
7706 * infcall.c (call_function_by_hand): Update comment on
7707 DEPRECATED_DUMMY_WRITE_SP.
7708
7709 * mips-tdep.c (mips_gdbarch_init): Do not set
7710 deprecated_dummy_write_sp.
7711 (mips_eabi_push_dummy_call): Set the SP register.
7712 (mips_o64_push_dummy_call): Set the SP register.
7713 (mips_o32_push_dummy_call): Set the SP register.
7714 (mips_n32n64_push_dummy_call): Set the SP register.
7715
7716 2003-06-01 Richard Henderson <rth@redhat.com>
7717
7718 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7719 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7720 (supply_gregset): Likewise.
7721 * alpha-tdep.c (alpha_store_return_value): Likewise.
7722 (alpha_get_longjmp_target): Likewise.
7723 (alpha_register_name): Constify array.
7724 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7725 deprecated_register_size, deprecated_register_bytes,
7726 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7727 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7728 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7729
7730 2003-06-01 Richard Henderson <rth@redhat.com>
7731
7732 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7733 from arg_reg_buffer to regcache to avoid double conversion.
7734
7735 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7736
7737 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7738 SP_REGNUM.
7739 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7740 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7741
7742 2003-06-01 Richard Henderson <rth@redhat.com>
7743
7744 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7745 (decode_frame_entry): Set it. Skip FDE augmentation.
7746
7747 2003-06-01 Richard Henderson <rth@redhat.com>
7748
7749 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7750 not overlapping PC_REGNUM.
7751
7752 2003-06-01 Richard Henderson <rth@redhat.com>
7753
7754 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7755 alpha_push_arguments. Don't dump argument register data to
7756 the target stack. Fix float and 128-bit long double semantics.
7757 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7758 (alpha_fix_call_dummy): Remove.
7759 (alpha_call_dummy_words): Remove.
7760 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7761
7762 2003-06-01 Richard Henderson <rth@redhat.com>
7763
7764 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7765
7766 2003-06-01 Andrew Cagney <cagney@redhat.com>
7767
7768 * mips-tdep.c (is_mips16_addr): New function.
7769 (make_mips16_addr, unmake_mips16_addr): New functions.
7770 (pc_is_mips16, mips_fetch_instruction): Use.
7771 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7772 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7773 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7774 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7775 TARGET_MIPS.
7776 * config/mips/tm-mips.h: Update copyright.
7777 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7778 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7779 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7780 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7781 (TM_PRINT_INSN_MACH): Delete.
7782 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7783
7784 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7785 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7786 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7787 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7788 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7789 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7790 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7791 mips*-*-riscos* and mips*-*-sysv* onto mips.
7792 * config/mips/mips64.mt: New file.
7793 * config/mips/mips.mt: New file.
7794 * config/mips/littlemips.mt: Delete file.
7795 * config/mips/decstation.mt: Delete file.
7796 * config/mips/vr4300el.mt: Delete file.
7797 * config/mips/vr5000el.mt: Delete file.
7798 * config/mips/vr5000.mt: Delete file.
7799 * config/mips/vr4100.mt: Delete file.
7800 * config/mips/vr4xxxel.mt: Delete file.
7801 * config/mips/vr4300.mt: Delete file.
7802 * config/mips/vr4xxx.mt: Delete file.
7803 * config/mips/bigmips.mt: Delete file.
7804 * config/mips/bigmips64.mt: Delete file.
7805 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7806 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7807 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7808 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7809 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7810 "tm-bigmips.h".
7811 * config/mips/tm-irix3.h: Ditto.
7812 * config/mips/tm-mipsv4.h: Ditto.
7813 * config/mips/tm-embed.h: Ditto.
7814 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7815 "tm-bigmips64.h".
7816 * config/mips/tm-vr5000el.h: Delete file.
7817 * config/mips/tm-tx39l.h: Delete file.
7818 * config/mips/tm-vr4300el.h: Delete file.
7819 * config/mips/tm-vr4xxxel.h: Delete file.
7820 * config/mips/tm-vr4300.h: Delete file.
7821 * config/mips/tm-vr4100.h: Delete file.
7822 * config/mips/tm-vr4xxx.h: Delete file.
7823 * config/mips/tm-vr5000.h: Delete file.
7824 * config/mips/tm-embedl64.h: Delete file.
7825 * config/mips/tm-embedl.h: Delete file.
7826 * config/mips/tm-embed64.h: Delete file.
7827 * config/mips/tm-bigmips64.h: Delete file.
7828 * config/mips/tm-bigmips.h: Delete file.
7829
7830 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7831
7832 Fix gdb/1216.
7833 * shnbsd-nat.c: Include "sh-tdep.h".
7834
7835 From Richard Henderson <rth@redhat.com>:
7836 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7837
7838 2003-05-31 Andrew Cagney <cagney@redhat.com>
7839
7840 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7841 forward declaration.
7842 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7843 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7844 (mips_find_saved_regs): Use set_reg_offset.
7845 (mips_frame_init_saved_regs): Delete function.
7846 (mips_pop_frame): Call mips_find_saved_regs instead of
7847 DEPRECATED_FRAME_INIT_SAVED_REGS.
7848
7849 2003-05-31 Andrew Cagney <cagney@redhat.com>
7850
7851 * mips-tdep.c (mips_gdbarch_init): Do not set
7852 deprecated_max_register_raw_size, register_virtual_size, and
7853 deprecated_max_register_virtual_size.
7854
7855 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7856
7857 * i386-tdep.c: Include "dwarf2-frame.h".
7858 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7859 * Makefile.in (i386-tdep.o): Update dependencies.
7860
7861 * dwarf2-frame.c, dwarf2-frame.h: New files.
7862 * Makefile.in (SFILES): Add dwarf2-frame.c.
7863 (dwarf2_frame_h): Define.
7864 (COMMON_OBS): Add dwarf2-frame.o.
7865 (dwarf2-frame.o): Add dependencies.
7866
7867 2003-05-31 Andreas Jaeger <aj@suse.de>
7868
7869 * x86-64-linux-nat.c: Fix comment.
7870
7871 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7872
7873 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7874 function signature.
7875
7876 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7877 have a sigcontext_addr handler.
7878 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7879 sigcontext_addr handler.
7880
7881 2003-05-31 Andrew Cagney <cagney@redhat.com>
7882
7883 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7884 (print_fp_register_row): Replace do_fp_register_row.
7885 (mips_print_fp_register): Add "file" and "frame" parameters.
7886 (mips_print_register): Add "file" and "frame" parameters.
7887 (mips_print_registers_info): Replace mips_do_registers_info.
7888 (mips_gdbarch_init): Set print_registers_info instead of
7889 deprecated_do_registers_info.
7890 (mips_read_fp_register_single): Add "frame" parameter.
7891 (mips_read_fp_register_double): Add "frame" parameter.
7892
7893 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7894
7895 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7896 Fixes a bug where GDB would print the wrong register names for
7897 targets without SSE.
7898
7899 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7900 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7901 registers.
7902
7903 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7904 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7905 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7906 TDEP->sc_sp_offset.
7907
7908 From Michal Ludvig <mludvig@suse.cz>:
7909 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7910 and `sc_num_regs'.
7911 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7912 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7913 I386_ST0_REGNUM): Move here from...
7914 * i386-tdep.c: ... here.
7915 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7916 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7917 registers if possible.
7918 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7919 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7920 Remove variables.
7921 (i386bsd_sc_reg_offset): New variable.
7922 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7923 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7924 TDEP->sc_sp_offset.
7925 (i386fbsd_sc_reg_offset): New variable.
7926 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7927 TDEP->sc_num_regs.
7928 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7929 variables.
7930 (i386fbsd4_sc_reg_offset): New variable.
7931 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7932 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7933 TDEP->sc_sp_offset.
7934 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7935 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7936 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7937 Remove variables.
7938 (i386nbsd_sc_reg_offset): New variable.
7939 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7940 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7941 TDEP->sc_sp_offset.
7942 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7943 Remove variables.
7944 (i386obsd_sc_reg_offset): New variable.
7945 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7946 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7947 TDEP->sc_sp_offset.
7948 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7949 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7950 for frame pointer offset in `struct sigcontext'.
7951
7952 2003-05-31 Andrew Cagney <cagney@redhat.com>
7953
7954 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7955 architecture methods call_dummy_words, sizeof_call_dummy_words,
7956 push_return_address, store_struct_return, and fix_call_dummy. Set
7957 push_dummy_call instead of deprecated_push_arguments.
7958 (mips_store_struct_return): Delete function.
7959 (mips_fix_call_dummy): Delete function.
7960 (mips_push_return_address): Delete function.
7961 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7962 RA_REGNUM and T9_REGNUM.
7963 (mips_n32n64_push_dummy_call): Ditto for
7964 mips_n32n64_push_arguments.
7965 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7966 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7967
7968 2003-05-31 Andrew Cagney <cagney@redhat.com>
7969
7970 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7971 "dummy_addr" to "bp_addr".
7972 * infcall.c (call_function_by_hand): Pass "funaddr" to
7973 gdbarch_push_dummy_call.
7974 * gdbarch.h, gdbarch.c: Re-generate.
7975 * i386-tdep.c (i386_push_dummy_call): Update.
7976 * arm-tdep.c (arm_push_dummy_call): Update.
7977 * d10v-tdep.c (d10v_push_dummy_call): Update.
7978
7979 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7980
7981 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7982 variable declarations.
7983 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7984 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7985 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7986 x86_64_init_frame_pc, x86_64_init_frame_pc,
7987 x86_64_function_has_prologue): Remove prototypes.
7988 (X86_64_NUM_GREGS): New define.
7989 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7990 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7991 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7992 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7993 XMM1_REGNUM): Remove defines.
7994 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7995 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7996 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7997 X86_64_XMM1_REGNUM): New defines.
7998 (struct x86_64_register_info): Renamed from `struct
7999 register_info'. Remove `size' member.
8000 (x86_64_register_info_table): Remove variable.
8001 (x86_64_register_info): New variable.
8002 (X86_64_NUM_REGS): New define.
8003 (X86_64_NUM_GREGS): Remove define.
8004 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8005 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8006 Remove variables.
8007 (x86_54_dwarf2_reg_to_regnum): Remove function.
8008 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8009 (x86_64_dwarf_reg_to_regnum): New function.
8010 (x86_64_register_name): Rewrite.
8011 (x86_64_register_raw_size): Remove function.
8012 (x86_64_register_byte_table): Remove variable.
8013 (x86_64_register_byte): Remove function.
8014 (x86_64_register_virtual_type): Remove function.
8015 (x86_64_register_type): New function.
8016 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8017 x86_64_register_convert_to_raw): Remove functions.
8018 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8019 (x86_64_use_struct_convention): Make static. Adjust for renamed
8020 defines.
8021 (x86_64_frame_init_saved_regs): Remove function.
8022 (x86_64_push_arguments): Make static. Change to accept a regcache
8023 as argument.
8024 (x86_64_store_return_value, x86_64_extract_return_value): Make
8025 static. Rewrite based on i386 counterparts.
8026 (x86_64_push_dummy_call): New function.
8027 (X86_64_NUM_SAVED_REGS): New define.
8028 (x86_64_register_number): Remove function.
8029 (x86_64_store_struct_return): Remove function.
8030 (x86_64_frameless_function_invocation,
8031 x86_64_function_has_prologue): Remove functions.
8032 (PROLOG_BUFSIZE): Remove define.
8033 (struct x86_64_frame_cache): New structure.
8034 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8035 x86_64_frame_cache, x86_64_frame_this_id,
8036 x86_64_frame_prev_register, x86_64_frame_p,
8037 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8038 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8039 functions.
8040 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8041 variables.
8042 (x86_64_skip_prologue): Rewrite in terms of
8043 x86_64_analyze_prologue.
8044 (x86_64_frame_base_address): New function.
8045 (x86_64_frame_base): New variable.
8046 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8047 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8048 set deprecated_fp_regnum, deprecated_register_size,
8049 deprecated_register_bytes, register_raw_size, register_byte,
8050 register_virtual_type, register_convertiable,
8051 register_convert_to_virtual, convert_to_raw,
8052 deprecated_get_saved_register, deprecated_target_read_fp,
8053 deprecated_push_arguments, deprecated_push_return_address,
8054 deprecated_pop_frame, deprecated_store_struct_return,
8055 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8056 frameless_function_invocation, deprecated_frame_saved_pc,
8057 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8058 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8059 deprecated_init_frame_pc and virtual_frame_pointer. Call
8060 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8061 and x86_64_frame_p. Call frame_base_set_default to register
8062 x86_64_frame_base.
8063 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8064 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8065 (_initialize_x86_64_tdep): Remove function.
8066 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8067 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8068 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8069 define.
8070 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8071 (x86_64_linux_sigcontext_addr): Rewrite.
8072 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8073 x86_64_linux_frame_saved_pc): Remove functions.
8074 (x86_64_linux_pc_in_sigtramp): Renamed from
8075 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8076 trampoline.
8077 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8078 Remove_functions.
8079 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8080 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8081 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8082 (x86_64_regmap): Rename to regmap.
8083 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8084 x86_64_num_gregs.
8085 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8086 x86_64_regmap.
8087 (x86_64_fxsave_offset): Remove function.
8088 (supply_fpregset): Simply call x86_64_supply_fxsave.
8089 (fill_fpregset): Simply call x86_64_fill_fxsave.
8090 (fetch_inferior_registers, store_inferior_registers): Avoid
8091 asignment in if-statement.
8092 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8093 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8094 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8095 (fetch_core_registers): Remove function.
8096 (linux_elf_core_fns): Remove.
8097 (offsetoff): Don't define.
8098 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8099 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8100 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8101 add core-regset.o.
8102 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8103 protection against multiple includes instead of NM_X86_64_h. Add
8104 various comments. Include "config/nm-linux.h". Don't include
8105 <signal.h>.
8106 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8107 GET_THREAD_SIGNALS): Remove defines.
8108 (x86_64_register_u_addr, kernel_u_size,
8109 lin_thread_get_thread_signals): Remove prototypes.
8110 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8111 [HAVE_LINK_H]: Don't include "solib.h".
8112 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8113 * config/i386/tm-x86-64linux.h: Fix comments.
8114 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8115 x86-64-tdep.o): Update dependencies.
8116
8117 2003-05-30 Andrew Cagney <cagney@redhat.com>
8118
8119 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8120 Change parameter type to a "struct regcache *".
8121
8122 * gdbarch.sh: Regardless of the multi-arch level, always define
8123 the macro when not already defined.
8124 * gdbarch.h, gdbarch.c: Re-generate.
8125
8126 2003-05-30 Richard Henderson <rth@redhat.com>
8127
8128 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8129 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8130 (alpha_mdebug_frame_this_id): Likewise.
8131 (alpha_mdebug_frame_prev_register): Likewise.
8132 (alpha_mdebug_frame_base_address): Likewise.
8133 (alpha_mdebug_frame_locals_address): Likewise.
8134 (alpha_mdebug_frame_args_address): Likewise.
8135 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8136 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8137 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8138 loop increment.
8139 (alpha_heuristic_frame_this_id): Make static.
8140 (alpha_heuristic_frame_prev_register): Likewise.
8141 (alpha_heuristic_frame_base_address): Likewise.
8142 * alpha-tdep.h: Update.
8143
8144 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8145
8146 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8147 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8148 defenitions.
8149 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8150 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8151 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8152 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8153 I386_ST0_REGNUM): New defines.
8154 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8155 codestream_get): Remove define.
8156 (codestream_next_addr, condestream_addr, condestream_buf,
8157 codestream_off, codestream_cnt): Remove variables.
8158 (codestream_fill, codestream_seek, codestream_read): Remove
8159 functions.
8160 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8161 functionality.
8162 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8163 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8164 i386_frame_saved_pc, i386_saved_pc_after_call,
8165 i386_frame_num_args, i386_frame_init_saved_regs,
8166 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8167 i386_push_arguments): Remove functions.
8168 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8169 functionality. Use i386_analyze_prologue instead of
8170 i386_get_frame_setup.
8171 (I386_NUM_SAVED_REGS): New define.
8172 (struct i386_frame_cache): New structure.
8173 (i386_alloc_frame_cache, i386_analyze_struct_return,
8174 i386_skip_probe, i386_analyze_frame_setup,
8175 i386_analyze_register_saves, i386_analyze_prologue,
8176 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8177 i386_frame_prev_register, i386_sigtramp_frame_cache,
8178 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8179 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8180 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8181 New functions.
8182 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8183 New variables.
8184 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8185 I386_EAX_REGNUM and I386_EDX_REGNUM.
8186 (i386_extract_return_value, i386_store_return_value): Use
8187 I386_ST0_REGNUM where appropriate.
8188 (i386_extract_struct_value_address): Rewrite to use extract_address.
8189 (i386_svr4_pc_in_sigtramp): Add comment.
8190 (i386_svr4_sigcontext_addr): Rewrite.
8191 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8192 TDEP->sc_sp_offset.
8193 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8194 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8195 of new defines. Set push_dummy_call, don't set
8196 deprecated_push_arguments, deprecated_push_return_address,
8197 deprecated_pop_frame. Don't set parm_boundary. Don't set
8198 deprecated_frame_chain, deprecated_frame_saved_pc,
8199 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8200 save_dummy_frame_tos, unwind_pc. Call
8201 frame_unwind_append_predicate and frame_base_set_default. Don't
8202 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8203 Don't set frameless_function_invocation. Don't set
8204 deprecated_register_bytes, deprecated_register_size,
8205 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8206 * i386-linux-tdep.c: Fix formatting in some comments.
8207 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8208 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8209 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8210 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8211 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8212 redundant parentheses.
8213 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8214 (i386_linux_sigcontext_addr): Use it. Rewrite.
8215 (find_minsym_and_objfile): Change name of second argument.
8216 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8217 changed. Use frame_pc_unwind instead of
8218 DEPRECATED_SAVED_PC_AFTER_CALL.
8219 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8220 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8221 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8222 unwinder.
8223 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8224 "dummy-frame.h".
8225 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8226 (_initialize_i386_cygwin_tdep): New prototype.
8227 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8228 deprecated_frame_chain_valid.
8229 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8230 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8231 Rely on the SVR4 defaults.
8232 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8233 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8234
8235 2003-05-30 Andrew Cagney <cagney@redhat.com>
8236
8237 * infcall.c (call_function_by_hand): Always call
8238 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8239
8240 2003-05-30 Richard Henderson <rth@redhat.com>
8241
8242 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8243 increment.
8244
8245 2003-05-29 Jim Blandy <jimb@redhat.com>
8246
8247 Use gdbarch methods for solib stuff on PowerPC Linux.
8248 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8249 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8250 show through.
8251 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8252 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8253 giving the same effect as the #definitions above.
8254
8255 2003-05-29 Adam Fedor <fedor@gnu.org>
8256
8257 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8258 (find_implementation_from_class): Replace it with the standard
8259 case i.e. do nothing.
8260
8261 2003-05-29 Richard Henderson <rth@redhat.com>
8262
8263 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8264 (alpha_linux_sigtramp_offset): Use it. Make static.
8265 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8266 update for new frame model.
8267 * alpha-mdebug-tdep.c: New file.
8268 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8269 (alpha_osf1_init_abi): Install it.
8270 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8271 (linked_proc_desc_table): Remove.
8272 (alpha_frame_past_sigtramp_frame): Remove.
8273 (alpha_dynamic_sigtramp_offset): Remove.
8274 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8275 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8276 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8277 (push_sigtramp_desc): Remove.
8278 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8279 (alpha_cannot_store_register): Likewise.
8280 (alpha_sigcontext_addr): Remove.
8281 (alpha_find_saved_regs): Remove.
8282 (alpha_frame_init_saved_regs): Remove.
8283 (alpha_init_frame_pc_first): Remove.
8284 (read_next_frame_reg): Remove.
8285 (alpha_frame_saved_pc): Remove.
8286 (alpha_saved_pc_after_call): Remove.
8287 (temp_proc_desc, temp_saved_regs): Remove.
8288 (alpha_about_to_return): Remove.
8289 (cached_proc_desc): Remove.
8290 (alpha_frame_chain): Remove.
8291 (alpha_print_extra_frame_info): Remove.
8292 (alpha_init_extra_frame_info): Remove.
8293 (alpha_frame_locals_address): Remove.
8294 (alpha_frame_args_address): Remove.
8295 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8296 (alpha_push_dummy_frame): Remove.
8297 (alpha_pop_frame): Remove.
8298 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8299 (alpha_read_insn): New.
8300 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8301 for different insn encodings.
8302 (alpha_in_lenient_prologue): Remove.
8303 (struct alpha_sigtramp_unwind_cache): New.
8304 (alpha_sigtramp_frame_unwind_cache): New.
8305 (alpha_sigtramp_register_address): New.
8306 (alpha_sigtramp_frame_this_id): New.
8307 (alpha_sigtramp_frame_prev_register): New.
8308 (alpha_sigtramp_frame_unwind): New.
8309 (alpha_sigtramp_frame_p): New.
8310 (struct alpha_heuristic_unwind_cache): New.
8311 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8312 don't count nop insns that occur between functions.
8313 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8314 heuristic_proc_desc, but without the mdebug wrapping.
8315 (alpha_heuristic_frame_this_id): New.
8316 (alpha_heuristic_frame_prev_register): New.
8317 (alpha_heuristic_frame_unwind): New.
8318 (alpha_heuristic_frame_p): New.
8319 (alpha_heuristic_frame_base_address): New.
8320 (alpha_heuristic_frame_base): New.
8321 (alpha_unwind_dummy_id): New.
8322 (alpha_unwind_pc): New.
8323 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8324 frame related deprecated initializations; install replacements.
8325 (alpha_dump_tdep): Remove.
8326 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8327 (alpha_read_insn, alpha_after_prologue,
8328 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8329 alpha_heuristic_frame_prev_register,
8330 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8331 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8332 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8333 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8334
8335 2003-05-29 Andrew Cagney <cagney@redhat.com>
8336
8337 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8338 dependant on the availability of ASSERT_FUNCTION.
8339 (ASSERT_FUNCTION): Do not define when there is no function name.
8340
8341 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8342
8343 From Jimi X <jimix@watson.ibm.com>:
8344 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8345
8346 2003-05-28 Jim Blandy <jimb@redhat.com>
8347
8348 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8349 argument to ptrace to int; the system headers should give it the
8350 right type, and pointers don't fit in ints on powerpc64-*-*.
8351
8352 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8353
8354 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8355 DW_TAG_catch_block.
8356
8357 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8358
8359 * stabsread.c (dbx_lookup_type): Make static.
8360 (read_type): Ditto.
8361 (add_undefined_type): Ditto.
8362 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8363 not export.
8364
8365 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8366
8367 * hpread.c (hpread_has_name): Make static.
8368 (hpread_psymtab_to_symtab): Ditto.
8369 (file_exists): Ditto.
8370 (hpread_call_pxdb): Ditto.
8371 (hpread_pxdb_needed): Ditto.
8372 (hpread_quick_traverse): Ditto.
8373 (hpread_get_header): Ditto.
8374 (hpread_get_lntt): Ditto.
8375 (hpread_get_slt): Ditto.
8376 (class_of): Ditto.
8377
8378 2003-05-25 Andreas Schwab <schwab@suse.de>
8379
8380 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8381 stack_align and deprecated_extra_stack_alignment_needed.
8382 (m68k_stack_align): Delete.
8383
8384 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8385 (m68k_register_virtual_size): Likewise.
8386 (altos_skip_prologue): Remove obsolete function.
8387 (isi_frame_num_args): Likewise.
8388 (news_frame_num_args): Likewise.
8389 (m68k_fix_call_dummy): Make static.
8390 (m68k_push_dummy_frame): Likewise.
8391 (m68k_pop_frame): Likewise.
8392 (m68k_skip_prologue): Likewise.
8393 (m68k_frame_init_saved_regs): Likewise.
8394 (m68k_saved_pc_after_call): Likewise.
8395 (m68k_get_longjmp_target): Make multi-arch.
8396 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8397 structure. Register m68k_get_longjmp_target if enabled.
8398 * m68k-tdep.h (struct gdbarch_tdep): Define.
8399 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8400
8401 * Makefile.in (config.status): Also depend on configure.tgt
8402 and configure.host.
8403 (m68klinux-tdep.o): Update dependencies.
8404 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8405 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8406 (M68K_LINUX_JB_PC): Define.
8407 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8408 and take additional parameter.
8409 (m68k_linux_sigtramp_saved_pc): Update.
8410 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8411 m68k_linux_pc_in_sigtramp, in_plt_section,
8412 find_solib_trampoline_target.
8413 * config/m68k/tm-linux.h: Don't include any tm headers.
8414 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8415 (JB_ELEMENT_SIZE): Likewise.
8416 (JB_PC): Likewise.
8417 (GET_LONGJMP_TARGET): Likewise.
8418 (IN_SIGTRAMP): Likewise.
8419 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8420
8421 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8422
8423 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8424 (sparc32_push_arguments): Re-implement by calling
8425 sparc32_do_push_arguments.
8426
8427 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8428
8429 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8430 SPARC_O1_REGNUM): New defines.
8431 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8432 (sparc32_store_return_value): New function.
8433 (sparc_extract_struct_value_address): Rewrite to operate on a
8434 regcache.
8435 (sparc_gdbarch_init): Don't set
8436 deprecated_extract_struct_value_address. Set
8437 extract_struct_value_address instead. Don't set
8438 deprecated_extract_return_value and deprecated_store_return_value
8439 for 32-bit targets. Set extract_return_value and
8440 store_return_value instead.
8441 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8442 DEPRECATED_EXTRACT_RETURN_VALUE,
8443 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8444 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8445 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8446 (sparc_store_return_value): Remove prototype.
8447 (sparc32_store_return_value): New prototype.
8448 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8449 Adjust prototypes.
8450
8451 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8452
8453 * sparcnbsd-tdep.c: Include "gdb_string.h".
8454
8455 2003-05-23 Andrew Cagney <cagney@redhat.com>
8456
8457 * p-valprint.c (pascal_val_print): Replace extract_address with
8458 the inline equivalent extract_unsigned_integer.
8459 * jv-valprint.c (java_value_print): Ditto.
8460 * ada-valprint.c (ada_val_print_1): Ditto.
8461 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8462
8463 2003-05-23 Theodore A. Roth <troth@openavr.org>
8464
8465 * blockframe.c (frameless_look_for_prologue): Remove unused
8466 after_prologue variable.
8467
8468 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8469
8470 * blockframe.c (get_pc_function_start): Rewrite to avoid
8471 asignments in if-statements.
8472
8473 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8474
8475 Committed by Elena Zannoni <ezannoni@redhat.com>.
8476 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8477 files, don't relocate absolute symbols (and do use mst_abs).
8478
8479 2003-05-23 Andrew Cagney <cagney@redhat.com>
8480
8481 * objc-lang.c: Include "gdb_assert.h".
8482 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8483 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8484 (gdb_check, gdb_check_fatal): Delete functions.
8485 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8486 gdb_assert.
8487 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8488 * Makefile.in (objc-lang.o): Update dependencies.
8489
8490 2003-05-22 Ian Lance Taylor <ian@airs.com>
8491
8492 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8493 with fprintf_filtered, not fprintf_unfiltered.
8494
8495 2003-05-22 Andrew Cagney <cagney@redhat.com>
8496
8497 * stack.c (frame_info): Inline extract_address, replacing it with
8498 extract_unsigned_integer.
8499 * findvar.c (unsigned_pointer_to_address): Ditto.
8500 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8501 * dwarf2expr.c (dwarf2_read_address): Ditto.
8502 * frame.c (frame_pc_unwind): Update comment.
8503 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8504
8505 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8506
8507 * infptrace.c (detach): Call print_sys_errmsg rather than
8508 perror_with_name to issue warning message when errno is non-zero
8509 after calling ptrace detach.
8510
8511 2003-05-21 J. Brobecker <brobecker@gnat.com>
8512
8513 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8514 macro definitions from here...
8515 * hppa-tdep.c: ...to there.
8516
8517 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8518
8519 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8520 register_ptrace_addr(). Fix all callers.
8521
8522 2003-05-21 Andreas Schwab <schwab@suse.de>
8523
8524 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8525 dependencies.
8526 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8527 end.
8528 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8529 (_initialize_m68k_linux_tdep): New function.
8530 (m68k_linux_frame_saved_pc): Make static.
8531 (m68k_linux_extract_return_value): Likewise.
8532 (m68k_linux_store_return_value): Likewise.
8533 (m68k_linux_extract_struct_value_address): Likewise.
8534 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8535 Remove.
8536 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8537 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8538 (DEPRECATED_FRAME_SAVED_PC): Remove.
8539
8540 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8541
8542 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8543 regset numbering rather than our own.
8544
8545 2003-05-19 David Carlton <carlton@bactrian.org>
8546
8547 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8548
8549 2003-05-19 David Carlton <carlton@bactrian.org>
8550
8551 Partial fix for PR c++/827.
8552 * cp-support.h: Include symtab.h.
8553 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8554 * cp-namespace.c: Update contributors.
8555 (cp_lookup_symbol_nonlocal): New.
8556 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8557 (lookup_symbol_file): Ditto.
8558 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8559 * block.h: Declare block_scope, block_using, block_global_block.
8560 * block.c (block_scope): New.
8561 (block_using, block_global_block): Ditto.
8562 * Makefile.in (cp_support_h): Depend on symtab_h.
8563 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8564
8565 2003-05-19 David Carlton <carlton@bactrian.org>
8566
8567 * language.h (struct language_defn): Add 'la_value_of_this'
8568 and 'la_lookup_symbol_nonlocal' members.
8569 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8570 lookup_symbol_static, lookup_symbol_global,
8571 lookup_symbol_aux_block.
8572 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8573 if we should search fields of this and how to do static/global
8574 lookup.
8575 (lookup_symbol_aux_block): Make extern.
8576 (basic_lookup_symbol_nonlocal): New.
8577 (lookup_symbol_static, lookup_symbol_global): Ditto.
8578 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8579 'la_lookup_symbol_nonlocal' members.
8580 * c-lang.c (c_language_defn, cplus_language_defn)
8581 (asm_language_defn, minimal_language_defn): Ditto.
8582 * jv-lang.c (java_language_defn): Ditto.
8583 * language.c (unknown_language_defn, auto_language_defn)
8584 (local_language_defn): Ditto.
8585 * m2-lang.c (m2_language_defn): Ditto.
8586 * objc-lang.c (objc_language_defn): Ditto.
8587 * scm-lang.c (scm_language_defn): Ditto.
8588 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8589 * p-lang.c (pascal_language_defn): Ditto for both.
8590 * Makefile.in (f-lang.o): Depend on value_h.
8591 (p-lang.o): Ditto.
8592
8593 2003-05-19 David Carlton <carlton@bactrian.org>
8594
8595 * block.h: Declare block_static_block.
8596 * block.c (block_static_block): New.
8597 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8598 lookup_symbol_aux_local, calling block_static_block instead.
8599 (lookup_symbol_aux_local): Delete 'static_block' argument.
8600
8601 2003-05-19 David Carlton <carlton@bactrian.org>
8602
8603 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8604
8605 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8606
8607 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8608 register numbers mapping.
8609
8610 2003-05-18 Adam Fedor <fedor@gnu.org>
8611
8612 * symtab.c (completion_list_objc_symbol): New function.
8613 (make_symbol_completion_list): Use it to add ObjC symbols
8614 when looking though the list.
8615 (language_search_unquoted_string): New function.
8616 (make_file_symbol_completion_list): Use it.
8617
8618 2003-05-18 Andreas Schwab <schwab@suse.de>
8619
8620 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8621 dependencies.
8622 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8623 as m68k_linux_extract_return_value.
8624 (DEPRECATED_STORE_RETURN_VALUE): Define as
8625 m68k_linux_store_return_value.
8626 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8627 m68k_linux_extract_struct_value_address.
8628 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8629 get_next_frame, get_frame_base, get_frame_pc.
8630 (m68k_linux_frame_saved_pc): Use get_frame_base.
8631 (m68k_linux_extract_return_value): New function.
8632 (m68k_linux_store_return_value): New function.
8633 (m68k_linux_extract_struct_value_address): New function.
8634 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8635
8636 * c-exp.y (typebase): Remove duplicate occurence of
8637 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8638 of lookup_signed_typename.
8639
8640 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8641
8642 * dwarf2loc.c (find_location_expression): Change type of second
8643 argument to `size_t *'.
8644 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8645 for size variable.
8646
8647 2003-05-18 David Carlton <carlton@bactrian.org>
8648
8649 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8650 'linkage_name'. Add comment.
8651 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8652 'linkage_name'.
8653 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8654 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8655 (lookup_block_symbol): Ditto.
8656
8657 2003-05-16 Andrew Cagney <cagney@redhat.com>
8658
8659 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8660 * gdbarch.h, gdbarch.c: Re-generate.
8661 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8662 * TODO (REGISTER_BYTES): Delete reference.
8663 * alpha-tdep.c (alpha_gdbarch_init): Update.
8664 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8665 * x86-64-tdep.c (x86_64_init_abi): Update.
8666 * vax-tdep.c (vax_gdbarch_init): Update.
8667 * v850-tdep.c (v850_gdbarch_init): Update.
8668 * sparc-tdep.c (sparc_gdbarch_init): Update.
8669 * sh-tdep.c (sh_gdbarch_init): Update.
8670 * s390-tdep.c (s390_gdbarch_init): Update.
8671 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8672 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8673 (ns32k_gdbarch_init_32382): Update.
8674 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8675 * mcore-tdep.c (mcore_gdbarch_init): Update.
8676 * m68k-tdep.c (m68k_gdbarch_init): Update.
8677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8678 * ia64-tdep.c (ia64_gdbarch_init): Update.
8679 * i386-tdep.c (i386_gdbarch_init): Update.
8680 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8681 * hppa-tdep.c (hppa_gdbarch_init): Update.
8682 * h8300-tdep.c (h8300_gdbarch_init): Update.
8683 * frv-tdep.c (frv_gdbarch_init): Update.
8684 * cris-tdep.c (cris_gdbarch_init): Update.
8685 * avr-tdep.c (avr_gdbarch_init): Update.
8686 * arm-tdep.c (arm_gdbarch_init): Update.
8687 * sparc-tdep.c (sparc_pop_frame): Update.
8688 * rs6000-tdep.c (rs6000_pop_frame): Update.
8689 * remote.c (init_remote_state): Update.
8690 (remote_prepare_to_store): Update.
8691 * remote-vx.c (vx_prepare_to_store): Update.
8692 * remote-sds.c (sds_fetch_registers): Update.
8693 (sds_prepare_to_store): Update.
8694 * remote-array.c: Update.
8695 * regcache.c (init_legacy_regcache_descr): Update.
8696 (init_regcache_descr): Update.
8697 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8698 (mips_o64_extract_return_value): Update.
8699 * irix5-nat.c (fetch_core_registers): Update.
8700 * irix4-nat.c (fetch_core_registers): Update.
8701 * i386-tdep.h: Update.
8702 * hppa-tdep.c (pa_do_registers_info): Update.
8703 (pa_do_strcat_registers_info): Update.
8704 * cris-tdep.c (cris_register_bytes_ok): Update.
8705 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8706 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8707 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8708 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8709 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8710 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8711 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8712 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8713 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8714 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8715 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8716 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8717 (REGISTER_BYTES_OK): Update.
8718 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8719 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8720
8721 2003-05-16 Ian Lance Taylor <ian@airs.com>
8722
8723 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8724 (vax_print_insn, print_insn_arg): Remove static functions.
8725 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8726 print_insn_vax from opcodes library.
8727 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8728
8729 2003-05-15 Andrew Cagney <cagney@redhat.com>
8730
8731 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8732 * target.h (memory_breakpoint_from_pc): Delete declaration.
8733 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8734 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8735 * monitor.c (monitor_insert_breakpoint): Use
8736 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8737 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8738 * gdbarch.h, gdbarch.c: Re-generate.
8739 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8740 (sparc_gdbarch_init): Set breakpoint_from_pc to
8741 sparc_breakpoint_from_pc.
8742 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8743 (BREAKPOINT_FROM_PC): Define.
8744 (sparc_breakpoint_from_pc): Declare.
8745 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8746 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8747 (BREAKPOINT_FROM_PC): Define.
8748 (BREAKPOINT): Delete macro.
8749 * target.h: Update comment.
8750 * s390-tdep.c (s390_gdbarch_init): Update comments.
8751 * remote.c: Update comments.
8752 * remote-mips.c: Update comments.
8753 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8754 * mem-break.c: Update comment.
8755 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8756 (ia64_memory_insert_breakpoint): Update.
8757 * config/sparc/tm-sparc.h: Update comment.
8758 * config/pa/tm-hppa64.h: Update comment.
8759 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8760 (rs6000_breakpoint_from_pc): Update.
8761 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8762 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8763 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8764 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8765 (mips_breakpoint_from_pc): Update.
8766 (mips_dump_tdep): Update.
8767
8768 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8769 * minsyms.c (lookup_minimal_symbol): Inline
8770 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8771
8772 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8773 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8774 * p-lang.c (pascal_printstr): Ditto.
8775 * objc-lang.c (objc_printstr): Ditto.
8776 * m2-lang.c (m2_printstr): Ditto.
8777 * jv-valprint.c (java_print_value_fields): Ditto.
8778 * f-lang.c (f_printstr): Ditto.
8779 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8780 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8781 for repeat_count_threshold.
8782 * Makefile.in (cp-valprint.o): Update dependencies.
8783
8784 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8785
8786 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8787 (examine_prologue): Support looking through leaf functions, knowing
8788 they start with mov r2,r12. Support skipping over indirect stores
8789 of the input registers. Upon hitting a non-nop branch instruction
8790 or predicated instruction, bail out by setting lim_pc to the current
8791 pc value in the loop. At the end, if the lim_pc value is still
8792 beyond our calculated value and we have trust_limit set,
8793 use the lim_pc value.
8794
8795 2003-05-15 Andrew Cagney <cagney@redhat.com>
8796
8797 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8798 generic_find_dummy_frame.
8799 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8800 (deprecated_generic_find_dummy_frame): Update.
8801 (deprecated_read_register_dummy): Update.
8802 * frame.c (deprecated_generic_get_saved_register): Update.
8803
8804 2003-05-15 Theodore A. Roth <troth@openavr.org>
8805
8806 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8807 (avr_gdbarch_init): Set breakpoint_from_pc method.
8808
8809 2003-05-15 Andrew Cagney <cagney@redhat.com>
8810
8811 * regcache.c (build_regcache): Set deprecated_register_valid
8812 directly.
8813 (deprecated_grub_regcache_for_register_valid): Delete function.
8814 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8815 declaration.
8816
8817 2003-05-15 David Carlton <carlton@bactrian.org>
8818
8819 Committed by Elena Zannoni <ezannoni@redhat.com>
8820 * symtab.c (lookup_symbol_aux): Delete calls to
8821 lookup_symbol_aux_minsyms.
8822 (lookup_symbol_aux_minsyms): Comment out function and
8823 prototype. Delete lookup by mangled name.
8824
8825 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8826
8827 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8828 correctly indicate an empty stack and ``stack_allocated'' to the
8829 indicate the number of elements initially allocated.
8830 (dwarf_expr_grow_stack): Simplify method for computing new
8831 stack size. Don't loop infinitely if ``stack_len'' is zero.
8832 (execute_stack_op): Move ``ctx->in_reg'' initialization
8833 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8834 be used in conjuction with DW_OP_piece. Revise error message
8835 accordingly.
8836
8837 2003-05-14 Theodore A. Roth <troth@openavr.org>
8838
8839 * MAINTAINERS: Update my email address.
8840 * avr-tdep.c: Ditto.
8841
8842 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8843
8844 * symtab.h (enum domain_enum): Rename from namespace_enum.
8845 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8846 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8847 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8848 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8849 TYPES_NAMESPACE, METHODS_NAMESPACE.
8850 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8851 (struct symbol, struct partial_symbol): Rename field
8852 'namespace_enum namespace' to 'domain_enum domain'.
8853 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8854 Delete old define kludge for namespace.
8855
8856 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8857 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8858 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8859 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8860 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8861 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8862 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8863 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8864 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8865 occurrences of the above.
8866
8867 2003-05-14 Ian Lance Taylor <ian@airs.com>
8868
8869 * Makefile.in (install-only): Use $(SHELL) when running
8870 mkinstalldirs.
8871
8872 2003-05-13 Ian Lance Taylor <ian@airs.com>
8873
8874 * MAINTAINERS (write after approval): Add myself.
8875
8876 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8877 second and third arguments.
8878 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8879 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8880
8881 2003-05-13 Andrew Cagney <cagney@redhat.com>
8882
8883 * defs.h (store_address): Delete declaration.
8884 findvar.c (store_address): Delete function.
8885 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8886 store_unsigned_integer.
8887 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8888 * v850-tdep.c (v850_push_arguments): Ditto.
8889 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8890 * sh-tdep.c (sh64_get_saved_register): Ditto.
8891 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8892 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8893 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8894 (mips_get_saved_register): Ditto.
8895 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8896 (find_func_descr, ia64_push_arguments): Ditto.
8897 * i386-tdep.c (i386_push_arguments): Ditto.
8898 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8899 * frv-tdep.c (frv_push_arguments): Ditto.
8900 * frame.c (legacy_saved_regs_prev_register): Ditto.
8901 (deprecated_generic_get_saved_register): Ditto.
8902 * findvar.c (unsigned_address_to_pointer): Ditto.
8903 * dwarf2read.c (dwarf2_const_value): Ditto.
8904 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8905 * alpha-tdep.c (alpha_push_arguments): Ditto.
8906
8907 2003-05-12 J. Brobecker <brobecker@gnat.com>
8908
8909 * NEWS: Mention that the hppa-hpux port has been partially
8910 multiarched (32bit ABIT only, so far).
8911
8912 2003-05-11 Andrew Cagney <cagney@redhat.com>
8913
8914 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8915 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8916 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8917 sim/testsuite/sim/arm/misaligned2.ms, and
8918 sim/testsuite/sim/arm/misaligned3.ms.
8919 * disasm.h (struct ui_file): Add opaque struct declaration.
8920 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8921 * frame.h (struct ui_file): Ditto.
8922
8923 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8924
8925 * value.h: Pretty print.
8926
8927 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8928
8929 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8930
8931 2003-05-08 Andrew Cagney <cagney@redhat.com>
8932
8933 * regcache.h (max_register_size): Delete declaration.
8934 * regcache.c (max_register_size): Delete function.
8935 (struct regcache_descr): Delete field "max_register_size".
8936 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8937 registers fit in MAX_REGISTER_SIZE.
8938 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8939 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8940 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8941 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8942 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8943 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8944 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8945 * dve3900-rom.c, hppa-tdep.c: Ditto.
8946
8947 2003-05-08 David Carlton <carlton@math.stanford.edu>
8948
8949 * valops.c (push_word): Fix typo.
8950
8951 2003-05-08 Andrew Cagney <cagney@redhat.com>
8952
8953 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8954 * gdbarch.h: Re-generate.
8955 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8956 (legacy_max_register_raw_size): Delete declaration.
8957 * regcache.c (legacy_max_register_raw_size): Delete function.
8958 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8959 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8960 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8961 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8962 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8963 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8964 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8965 * findvar.c, dwarf2cfi.c: Ditto.
8966
8967 2003-05-08 Andrew Cagney <cagney@redhat.com>
8968
8969 * mips-tdep.c (read_signed_register): New function, moved to here
8970 from "regcache.c".
8971 (read_signed_register_pid): Ditto.
8972 * regcache.c (read_signed_register_pid): Delete function, moved to
8973 "mips-tdep.c".
8974 (read_signed_register): Ditto.
8975 * regcache.h (read_signed_register): Delete declaration.
8976 (read_signed_register_pid): Delete declaration.
8977
8978 2003-05-08 Andrew Cagney <cagney@redhat.com>
8979
8980 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8981 * gdbarch.h: Re-generate.
8982 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8983 (legacy_max_register_virtual_size): Delete declaration.
8984 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8985 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8986 * tracepoint.c (memrange_sortmerge): Ditto.
8987 * sparc-tdep.c (sparc_print_registers): Ditto.
8988 * regcache.c (legacy_max_register_virtual_size): Delete function.
8989
8990 2002-05-08 J. Brobecker <brobecker@gnat.com>
8991
8992 * fork-child.c (escape_bang_in_quoted_argument): New function.
8993 (fork_inferior): Escape '!' characters in quoted arguments
8994 only when needed.
8995
8996 2003-05-08 J. Brobecker <brobecker@gnat.com>
8997
8998 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8999 the language of the CU is not currently supported by GDB.
9000
9001 2003-05-08 J. Brobecker <brobecker@gnat.com>
9002
9003 * defs.h (language): Add language_minimal enum value.
9004 * c-lang.c (minimal_language_defn): New language definition.
9005 (_initialize_c_language): Add the new minimal language to the list
9006 of languages known to GDB.
9007
9008 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9009
9010 * frame.c (get_frame_type): Don't attempt to lazily initialize
9011 frame's unwinder for legacy frames.
9012
9013 2003-05-07 Andrew Cagney <cagney@redhat.com>
9014
9015 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9016 and "regcache" parameters.
9017 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9018
9019 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9020
9021 * dwarf2read.c (dwarf_decode_lines): Only use output of
9022 check_cu_functions() when calling record_line(). Do not update
9023 the current address.
9024
9025 2003-05-07 Andrew Cagney <cagney@redhat.com>
9026
9027 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9028 code.
9029
9030 2003-05-07 Jim Blandy <jimb@redhat.com>
9031
9032 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9033 'maint info symtabs' and 'maint info psymtabs'.
9034 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9035 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9036 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9037 Declarations updated.
9038 * maint.c (maintenance_list_command): Delete.
9039 (_initialize_maint_cmds): Update calls to add_cmd.
9040 * gdbcmd.h (maintenancelistlist): Delete declaration.
9041 * cli/cli-cmds.c (maintenancelistlist): Delete.
9042 (init_cmd_lists): Don't initialize it.
9043 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9044
9045 2003-05-07 Andrew Cagney <cagney@redhat.com>
9046
9047 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9048 "regcache".
9049 (d10v_print_registers_info): Update.
9050 (d10v_dmap_register, d10v_imap_register): Delete functions.
9051 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9052 and "imap_register".
9053 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9054 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9055 * arch-utils.c (generic_remote_translate_xfer_address): Add
9056 "regcache" and "gdbarch" parameters.
9057 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9058 parameter. Change class to multi-arch.
9059 * gdbarch.h, gdbarch.c: Re-generate.
9060 * remote.c (remote_xfer_memory): Use
9061 gdbarch_remote_translate_xfer_address.
9062
9063 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9064
9065 * infrun.c (prev_pc): Move declaration ahead of proceed().
9066 (proceed): Refresh prev_pc value before resuming.
9067 (stop_stepping): Remove code to refresh prev_pc.
9068
9069 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9070
9071 * nto-tdep.c: Removed stray comment.
9072
9073 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9074
9075 * i386-nto-tdep.c: Fix old K&R function definitions.
9076 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9077 Also change add_show_from_set() call to add_setshow_cmd().
9078 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9079
9080 2003-05-05 Andrew Cagney <cagney@redhat.com>
9081
9082 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9083 (fprint_dummy_frames): New function.
9084 (maintenance_print_dummy_frames): New function.
9085 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9086 * frame.c (fprint_frame_id): Make global.
9087 * frame.h (fprint_frame_id): Declare.
9088 * Makefile.in (dummy-frame.o): Update dependencies.
9089
9090 2003-05-05 Andrew Cagney <cagney@redhat.com>
9091
9092 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9093 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9094 SIZEOF_CALL_DUMMY_WORDS.
9095 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9096 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9097 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9098 CALL_DUMMY_BREAKPOINT_OFFSET.
9099 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9100 CALL_DUMMY_START_OFFSET.
9101 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9102 * gdbarch.h, gdbarch.c: Re-generate.
9103 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9104 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9105 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9106 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9107 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9108 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9109 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9110 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9111 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9112 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9113 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9114 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9115 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9116 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9117 * config/sparc/tm-sparc.h: Update.
9118
9119 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9120
9121 * configure.tgt: Add i[3456]86-*-nto*.
9122 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9123 * nto-tdep.c: New file. Neutrino target support routines.
9124 * nto-tdep.h: New file. Neutrino target header.
9125 * config/tm-qnxnto.h: New file.
9126 * config/i386/i386nto.mt: New file.
9127 * config/i386/tm-i386nto.h: New file.
9128
9129 2003-05-04 Andrew Cagney <cagney@redhat.com>
9130
9131 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9132 (load_infrun_state): Ditto.
9133 (struct thread_info): Drop "prev_func_name" field.
9134 * thread.c (load_infrun_state): Update.
9135 (save_infrun_state): Update.
9136 * infrun.c (prev_func_name): Delete variable.
9137 (init_wait_for_inferior): Do not clear prev_func_name.
9138 (stop_stepping, keep_going, context_switch): Do not swap
9139 prev_func_name.
9140 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9141 instead of PC_IN_SIGTRAMP.
9142
9143 2003-05-04 Andrew Cagney <cagney@redhat.com>
9144
9145 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9146 REGISTER_BYTE with register_offset_hack.
9147 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9148 that REGISTER_BYTE is consistent with the regcache.
9149 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9150 * gdbarch.h, gdbarch.c: Regenerate.
9151
9152 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9153
9154 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9155 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9156
9157 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9158
9159 2003-05-03 J. Brobecker <brobecker@gnat.com>
9160
9161 From Thierry Schneider <tpschneider1@yahoo.com>
9162 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9163 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9164 (mi-cmd-symbol.o): Add rule.
9165
9166 2003-05-03 Andrew Cagney <cagney@redhat.com>
9167
9168 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9169 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9170 * gdbarch.h, gdbarch.c: Re-generate.
9171 * d10v-tdep.c (d10v_push_dummy_code): New function.
9172 (d10v_gdbarch_init): Set push_dummy_code.
9173 * infcall.c (legacy_push_dummy_code): New function.
9174 (generic_push_dummy_code): New function.
9175 (push_dummy_code): New function.
9176 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9177 instead of dummy_addr, to push_dummy_call. Move call to
9178 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9179 switch.
9180 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9181
9182 2003-05-03 Andrew Cagney <cagney@redhat.com>
9183
9184 * disasm.h (print_insn): Declare.
9185 * disasm.c (init_gdb_disassemble_info): New function.
9186 (gdb_disassembly): Call init_gdb_disassemble_info.
9187 (gdb_print_insn): New function.
9188 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9189 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9190 * mcore-tdep.c: Include "disasm.h"
9191 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9192 * d10v-tdep.c: Include "disasm.h".
9193 (display_trace): Call gdb_print_insn, instead of print_insn.
9194 (print_insn): Delete function.
9195 * printcmd.c: Include "disasm.h".
9196 (print_insn): Delete function.
9197 (print_formatted): Call gdb_print_insn, instead of print_insn.
9198 * Makefile.in (printcmd.o): Update dependencies.
9199 (mcore-tdep.o, d10v-tdep.o): Ditto.
9200
9201 2003-05-02 Andrew Cagney <cagney@redhat.com>
9202
9203 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9204 PC_REGNUM, re-indent.
9205 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9206 PC_REGNUM isn't set.
9207
9208 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9209 * gdbarch.h, gdbarch.c: Re-generate.
9210 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9211 register_virtual_size, pc_regnum, or register_bytes.
9212 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9213 (d10v_register_type): Use D10V_PC_REGNUM.
9214 (d10v_print_registers_info, d10v_read_pc): Ditto.
9215 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9216 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9217
9218 2003-05-02 David Carlton <carlton@bactrian.org>
9219
9220 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9221 the name with mstrsave.
9222
9223 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9224
9225 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9226 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9227 (host_charset_name, target_charset_name): New vars for use by
9228 set/show commands.
9229 (host_charset_enum, target_charset_enum): New enums for set/show
9230 commands.
9231 (set_charset_sfunc, set_host_charset_sfunc,
9232 set_target_charset_sfunc): New functions.
9233 (set_host_charset, set_target_charset): Make static.
9234 (list_charsets, set_host_charset_command,
9235 set_target_charset_command): Delete functions.
9236 (show_charset_command): Rewrite as....
9237 (show_charset): Hook this up with the set/show command mechanism.
9238 (_initialize_charset): Change names of charsets to match the
9239 set/show enums. Use host_charset_name and target_charset_name.
9240 Use set/show mechanism for charset, host-charset, target-charset
9241 commands. Do not make 'show host-charset' and 'show
9242 target-charset' be aliases of 'show charset'.
9243
9244 * charset.h (set_host_charset, set_target_charset): Don't export,
9245 they are not used outside the file.
9246
9247 2003-05-01 Andrew Cagney <cagney@redhat.com>
9248
9249 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9250 (gdb_disassembly): Make "di" non static, always initialize and
9251 cleanup. Always use dis_asm_read_memory.
9252 (gdb_dis_asm_read_memory): Delete function.
9253
9254 2003-05-01 Andrew Cagney <cagney@redhat.com>
9255
9256 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9257 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9258
9259 2003-04-30 Andrew Cagney <cagney@redhat.com>
9260
9261 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9262 "tm_print_insn_info".
9263 (TARGET_PRINT_INSN_INFO): Delete macro.
9264 (dis_asm_read_memory): Delete function declaration.
9265 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9266 (tm_print_insn_info): Delete variable definition.
9267 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9268 * gdbarch.h, gdbarch.c: Re-generate.
9269 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9270 "deprecated_tm_print_insn_info".
9271 * mcore-tdep.c (mcore_dump_insn): Ditto.
9272 * mips-tdep.c (mips_gdbarch_init): Ditto.
9273 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9274 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9275 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9276 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9277 instead of TARGET_PRINT_INSN_INFO, add comment.
9278 * s390-tdep.c (s390_get_frame_info): Instead of
9279 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9280 (s390_check_function_end, s390_is_sigreturn): Ditto.
9281 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9282 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9283 * disasm.c: Include "gdbcore.h".
9284 (_initialize_disasm): New function, initialize
9285 "deprecated_tm_print_insn_info".
9286 (deprecated_tm_print_insn_info): New variable.
9287 (dis_asm_read_memory): Moved from "corefile.c", made static.
9288 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9289 * Makefile.in (disasm.o): Update dependencies.
9290
9291 2003-04-30 Andrew Cagney <cagney@redhat.com>
9292
9293 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9294
9295 2003-04-29 Adam Fedor <fedor@gnu.org>
9296
9297 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9298 * infcall.c (find_function_addr): Make non-static.
9299 * infcall.h (find_function_addr): Declare.
9300 * Makefile.in (eval.o): Update dependencies.
9301
9302 2003-04-28 Adam Fedor <fedor@gnu.org>
9303
9304 * symtab.c (symbol_find_demangled_name): Check for and demangle
9305 ObjC symbols.
9306 (symbol_init_demangled_name): Init for language_objc as well.
9307
9308 2003-04-28 Andrew Cagney <cagney@redhat.com>
9309
9310 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9311 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9312 * gdbarch.h, gdbarch.c: Re-generate.
9313 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9314 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9315 * inferior.h (deprecated_read_fp): Rename read_fp.
9316 (generic_target_read_fp): Delete declaration.
9317 * regcache.c (generic_target_read_fp): Delete function.
9318 (deprecated_read_fp): Replace read_fp, use
9319 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9320 * d10v-tdep.c (d10v_read_fp): Delete function.
9321 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9322
9323 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9324 deprecated_target_read_fp to generic_target_read_fp.
9325 * sh-tdep.c (sh_gdbarch_init): Ditto.
9326 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9328 * frv-tdep.c (frv_gdbarch_init): Ditto.
9329
9330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9331 deprecated_fp_regnum.
9332 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9333 * vax-tdep.c (vax_gdbarch_init): Ditto.
9334 * v850-tdep.c (v850_gdbarch_init): Ditto.
9335 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9336 * sh-tdep.c (sh_gdbarch_init): Ditto.
9337 * s390-tdep.c (s390_gdbarch_init): Ditto.
9338 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9339 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9340 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9341 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9343 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9344 * i386-tdep.c (i386_gdbarch_init): Ditto.
9345 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9346 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9347 * frv-tdep.c (frv_gdbarch_init): Ditto.
9348 * cris-tdep.c (cris_gdbarch_init): Ditto.
9349 * avr-tdep.c (avr_gdbarch_init): Ditto.
9350 * arm-tdep.c (arm_gdbarch_init): Ditto.
9351 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9352
9353 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9354 * v850-tdep.c (v850_gdbarch_init): Ditto.
9355 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9356 * sh-tdep.c (sh_gdbarch_init): Ditto.
9357 * s390-tdep.c (s390_gdbarch_init): Ditto.
9358 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9359 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9360 * mips-tdep.c (mips_gdbarch_init): Ditto.
9361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9362 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9363 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9364 * frv-tdep.c (frv_gdbarch_init): Ditto.
9365 * avr-tdep.c (avr_gdbarch_init): Ditto.
9366 * arm-tdep.c (arm_gdbarch_init): Ditto.
9367
9368 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9369 DEPRECATED_FP_REGNUM.
9370 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9371 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9372 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9373 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9374 (sparc32_register_virtual_type): Ditto.
9375 * sh-tdep.c (sh64_frame_chain): Ditto.
9376 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9377 (sh_nofp_frame_init_saved_regs): Ditto.
9378 (sh64_nofp_frame_init_saved_regs): Ditto.
9379 (sh_fp_frame_init_saved_regs): Ditto.
9380 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9381 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9382 * procfs.c (procfs_fetch_registers): Ditto.
9383 (procfs_store_registers): Ditto.
9384 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9385 (store_inferior_registers, fetch_core_registers): Ditto.
9386 (fetch_kcore_registers, clear_regs): Ditto.
9387 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9388 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9389 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9390 * nlm/i386.c (do_status): Ditto.
9391 * mipsv4-nat.c (supply_gregset): Ditto.
9392 * mips-tdep.c: Ditto for comments.
9393 * mips-nat.c (fetch_inferior_registers): Ditto.
9394 (store_inferior_registers, fetch_core_registers): Ditto.
9395 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9396 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9397 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9398 (i386_do_pop_frame, i386_register_type): Ditto.
9399 * hppa-tdep.c (hppa_frame_chain): Ditto.
9400 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9401 (hppa_pop_frame, hppa_read_fp): Ditto.
9402 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9403 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9404 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9405 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9406 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9407 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9408 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9409 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9410 * blockframe.c: Ditto for comments.
9411 * arch-utils.h: Ditto for comments.
9412 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9413 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9414 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9415 * alpha-tdep.h: Ditto for comments.
9416 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9417 (alpha_cannot_store_register): Ditto.
9418 (alpha_push_dummy_frame): Ditto.
9419 * alpha-nat.c (supply_gregset): Ditto.
9420
9421 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9422 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9423 * config/sparc/tm-sparc.h: Update comment.
9424
9425 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9426 deprecated_read_fp instead of TARGET_READ_FP.
9427 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9428 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9429 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9430 deprecated_read_fp instead of read_fp.
9431 * s390-tdep.c (s390_push_arguments): Ditto.
9432 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9433 * frame.h: Ditto in comments.
9434 * frame.c (legacy_get_prev_frame): Ditto.
9435 * dummy-frame.c (dummy_frame_this_id): Ditto.
9436 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9437
9438 2003-04-28 Andrew Cagney <cagney@redhat.com>
9439
9440 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9441 * gdbarch.h, gdbarch.c: Re-generate.
9442 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9443 * vax-tdep.c (_initialize_vax_tdep): Update.
9444 * v850-tdep.c (_initialize_v850_tdep): Update.
9445 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9446 * s390-tdep.c (_initialize_s390_tdep): Update.
9447 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9448 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9449 * mips-tdep.c (_initialize_mips_tdep): Update.
9450 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9451 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9452 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9453 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9454 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9455 * frv-tdep.c (_initialize_frv_tdep): Update.
9456 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9457 (_initialize_cris_tdep): Update.
9458 * arch-utils.c (legacy_print_insn): Update.
9459 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9460
9461 2003-04-26 Adam Fedor <fedor@gnu.org>
9462
9463 * linespec.c (decode_objc): New function to decode ObjC calls
9464 (decode_line_1): Check for ObjC calls (using decode_objc)
9465 * Makefile (linespec.o): Update dependencies.
9466
9467 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9468
9469 * breakpoint.h (struct breakpoint_ops): New.
9470 (struct breakpoint): Add ops member.
9471
9472 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9473 (mention): Use new breakpoint ops member.
9474 (set_raw_breakpoint): Initialize ops field to NULL.
9475 (print_exception_catchpoint, print_one_exception_catchpoint)
9476 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9477 (gnu_v3_exception_catchpoint_ops): New.
9478 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9479
9480 2003-04-25 Adam Fedor <fedor@gnu.org>
9481
9482 * Makefile.in (COMMON_OBS): Add objc-lang.o
9483
9484 2003-04-25 Andrew Cagney <cagney@redhat.com>
9485
9486 * d10v-tdep.c (print_insn): Delete function.
9487 (display_trace): Use TARGET_PRINT_INSN.
9488 (_initialize_d10v_tdep): Do not set tm_print_insn.
9489 (d10v_gdbarch_init): Set print_insn.
9490
9491 2003-04-25 Andrew Cagney <cagney@redhat.com>
9492
9493 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9494 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9495 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9496 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9497 (nr_dmap_regs, a0_regnum): ... new functions.
9498 (d10v_print_registers_info): Use a0_regnum, use register_size.
9499 (d10v_register_byte): Delete function.
9500 (d10v_register_raw_size): Delete function.
9501 (d10v_register_type): Use a0_regnum.
9502 (d10v_print_registers_info): Use a0_regnum.
9503 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9504 (d10v_gdbarch_init): Do not set register_byte or
9505 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9506 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9507 extract_address.
9508 (trace_command): Use XCALLOC.
9509 (print_insn): Delete reference to tm_print_insn.
9510 (saved_regs_unwinder): Use store_unsigned_integer instead of
9511 store_address.
9512 * frame.h (FRAME_OBSTACK_CALLOC): Define
9513
9514 2003-04-25 David Carlton <carlton@bactrian.org>
9515
9516 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9517
9518 2003-04-24 Adam Fedor <fedor@gnu.org>
9519
9520 * objc-lang.c: Include "valprint.h"
9521 * Makefile.in (objc-lang.o): Update dependencies.
9522
9523 2003-04-24 Adam Fedor <fedor@gnu.org>
9524
9525 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9526 architecture dependant compilation and mark as unimplemented
9527 (until they get put in the gdbarch vector).
9528
9529 2003-04-23 David Carlton <carlton@bactrian.org>
9530
9531 * cp-support.c (cp_find_first_component): Accept 'operator' in
9532 more locations.
9533
9534 2003-04-23 Andrew Cagney <cagney@redhat.com>
9535
9536 * infcall.c (call_function_by_hand): Eliminate redundant
9537 indentation. Move "saved_async" and "old_cleanups" to where they
9538 are needed.
9539
9540 2003-04-23 Andrew Cagney <cagney@redhat.com>
9541
9542 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9543 and "buffer". Move the "name" code to where it is needed.
9544
9545 2003-04-23 Andrew Cagney <cagney@redhat.com>
9546
9547 * infcall.c (call_function_by_hand): Move variables "start_sp",
9548 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9549 code to ON_STACK switch branch.
9550
9551 2003-04-23 Andrew Cagney <cagney@redhat.com>
9552
9553 * infcall.c (call_function_by_hand): Make declaration of "i",
9554 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9555 lint.
9556
9557 2003-04-23 Andrew Cagney <cagney@redhat.com>
9558
9559 * infcall.c (call_function_by_hand): Delete variable
9560 "n_method_args". Localize "param_type"'s declaration to the loop
9561 that it is used. Reinstate code assigning to said variable -
9562 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9563 Rationalize code using "param_type".
9564
9565 2003-04-22 Andrew Cagney <cagney@redhat.com>
9566
9567 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9568 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9569 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9570 to DEPRECATED_PUSH_RETURN_ADDRESS.
9571
9572 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9573
9574 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9575 on the DWARF2 register number prior to fetching a register.
9576
9577 2003-04-22 J. Brobecker <brobecker@gnat.com>
9578
9579 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9580 Update all the tests using SOFT_FLOAT considering the fact that
9581 this macro was always set to 0.
9582 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9583 considering the fact that this macro was always set to 0.
9584 * hppa-tdep.h (hppa_store_return_value): Likewise.
9585 (hppa_extract_return_value): Likewise.
9586
9587 2003-04-22 J. Brobecker <brobecker@gnat.com>
9588
9589 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9590 the hppa-pro target only.
9591
9592 2003-04-21 J. Brobecker <brobecker@gnat.com>
9593
9594 Ongoing multi-arch conversion effort for HP/UX:
9595 * config/pa/tm-hppa.h: Move all macro that are no longer
9596 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9597 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9598
9599 2003-04-21 J. Brobecker <brobecker@gnat.com>
9600
9601 * config/pa/tm-hppa.h: Obsolete a section that was only used
9602 for hppa-pro.
9603
9604 2003-04-21 J. Brobecker <brobecker@gnat.com>
9605
9606 Ongoing multi-arch conversion for HP/UX.
9607 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9608 if already defined (allows hppa64 to stay non-multiarched for now).
9609 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9610
9611 2003-04-21 Andrew Cagney <cagney@redhat.com>
9612
9613 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9614
9615 2003-04-21 Andrew Cagney <cagney@redhat.com>
9616
9617 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9618 "i386_num_mmx_regs".
9619
9620 2003-04-21 Andrew Cagney <cagney@redhat.com>
9621
9622 * infcall.c: New file.
9623 * infcall.h: New file.
9624 * valarith.c: Include "infcall.h".
9625 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9626 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9627 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9628 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9629 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9630 (SFILES): Add "infcall.c"
9631 (COMMON_OBS): Add "infcall.o".
9632 (infcall.o): Specify dependencies.
9633 * value.h (call_function_by_hand): Delete declaration.
9634 * inferior.h (run_stack_dummy): Delete declaration.
9635 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9636 (run_stack_dummy): Move to "infcall.c", merged into
9637 call_function_by_hand.
9638 * valops.c (call_function_by_hand): Moved to "infcall.c".
9639 (find_function_addr, value_arg_coerce): Ditto.
9640 (unwindonsignal_p, coerce_float_to_double): Ditto.
9641 (_initialize_valops): Move "set/show coerce-float-to-double", and
9642 "set/show unwindonsignal" commands to "infcall.c".
9643 * v850-tdep.c, target.h: Update comments.
9644 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9645 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9646 (sh64_init_extra_frame_info): Update comments.
9647 * mn10300-tdep.c: Update comments.
9648 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9649 * config/sparc/tm-sparc.h: Update comments.
9650 * breakpoint.h: Update comments.
9651 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9652 * arm-tdep.c: Update comment.
9653
9654 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9655
9656 * i386-tdep.c (i386_num_register_names): New variable.
9657 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9658 (MM0_REGNUM): Remove redundant parentheses in define.
9659 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9660 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9661 i386_mxcsr_regnum_p): Remove redundant parentheses.
9662 (i386_register_name): Use i386_num_register_names.
9663
9664 * i386-tdep.c (i386_extract_return_value,
9665 i386_store_return_value): Correct check for availability of
9666 floating-point registers.
9667
9668 * i386-tdep.c (i386_frame_num_args): Remove function.
9669 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9670
9671 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9672 mmx_regnum_to_fp_regnum. Adjust all callers.
9673
9674 * i386-tdep.c (i386_get_longjmp_target): Use
9675 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9676 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9677 extract_address.
9678
9679 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9680
9681 * core-regset.c: Update comments to reflect reality. Re-order
9682 includes.
9683 (fetch_core_registers): Use switch instead of if. Remove
9684 redundant prototype.
9685
9686 2003-04-18 Jim Blandy <jimb@redhat.com>
9687
9688 * s390-tdep.c (s390_frame_align): New function.
9689 (s390_gdbarch_init): Register it with the gdbarch object.
9690
9691 2003-04-17 Richard Henderson <rth@redhat.com>
9692
9693 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9694
9695 2003-04-17 Michael Snyder <msnyder@redhat.com>
9696 Karen Bennet <bennet@redhat.com>
9697
9698 Committed by Elena Zannoni <ezannoni@redhat.com>
9699 * gdb_gcore.sh: New script to create a core dump of a process.
9700
9701 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9702
9703 * values.c (value_being_returned): Don't fetch the return
9704 value if the return type is void.
9705
9706 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9707
9708 * thread-db.c: Reindented.
9709
9710 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9711
9712 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9713 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9714 as types.
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9741
9742 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9743 the size of ``long double'' to 16, instead of 8.
9744
9745 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9746
9747 * i386-linux-nat.c: Add some whitespace to make things more
9748 readable.
9749 (fetch_register, store_register, fetch_inferior_registers,
9750 store_inferior_registers): Get rid of assignment in if-statement.
9751 (store_register): Fix typo in error message.
9752
9753 2003-04-16 Andrew Cagney <cagney@redhat.com>
9754
9755 * utils.c (xmmalloc): Always allocate something, matches
9756 libiberty/xmalloc's semantics.
9757 (xmrealloc, xmcalloc): Ditto.
9758
9759 2003-04-16 Andrew Cagney <cagney@redhat.com>
9760
9761 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9762 update comments.
9763 (get_frame_type): Initialize unwind and type when needed.
9764 (get_frame_id, frame_register_unwind): Ditto.
9765
9766 2003-04-16 Andrew Cagney <cagney@redhat.com>
9767
9768 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9769 obsolete.
9770 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9771 * sparcl-stub.c: Obsolete file.
9772 * config/sparc/tm-sparclet.h: Obsolete file.
9773 * sparclet-stub.c: Obsolete file.
9774 * sparclet-rom.c: Obsolete file.
9775 * sparcl-tdep.c: Obsolete file.
9776 * config/sparc/tm-sparclite.h: Obsolete file.
9777 * config/sparc/sparclite.mt: Obsolete file.
9778 * config/sparc/sparclet.mt: Obsolete file.
9779 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9780 sparc86x-*-* obsolete.
9781
9782 2003-04-15 David Carlton <carlton@math.stanford.edu>
9783
9784 * Makefile.in (SFILES): Add cp-namespace.c.
9785 (COMMON_OBS): Add cp-namespace.o.
9786 (block.o): Depend on gdb_obstack_h and cp_support_h.
9787 (buildsym.o): Depend on cp_support_h.
9788 (cp-namespace.o): New.
9789 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9790 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9791 (dwarf2read.o): Depend on cp_support_h.
9792 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9793 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9794 processing_current_namespace.
9795 (read_namespace): Update processing_current_namespace; check for
9796 anonymous namespaces.
9797 (dwarf2_name): New function.
9798 (dwarf2_extension): Ditto.
9799 * cp-support.h: Update copyright, contributors.
9800 Add inclusion guards.
9801 Add opaque declaration for structs obstack, block, symbol.
9802 (struct using_direct): New struct.
9803 Add declarations for cp_find_first_component,
9804 cp_entire_prefix_len, processing_has_namespace_info,
9805 processing_current_namespace, cp_is_anonymous,
9806 cp_add_using_directive, cp_initialize_namespace,
9807 cp_finalize_namespace, cp_set_block_scope,
9808 cp_scan_for_anonymous_namespaces.
9809 * cp-namespace.c: New file.
9810 * cp-support.c: Update copyright.
9811 Include ctype.h, gdb_assert.h, gdbcmd.h.
9812 New variable maint_cplus_cmd_list.
9813 (cp_find_first_component): New function.
9814 (cp_entire_prefix_len, maint_cplus_command)
9815 (first_component_command, _initialize_cp_support): Ditto.
9816 * buildsym.c: Include cp-support.h.
9817 New variable using_list.
9818 (add_symbol_to_list): Check for anonymous namespaces.
9819 (finish_block): Set block's scope.
9820 (start_symtab): Initialize C++ namespace support.
9821 (end_symtab): Finalize C++ namespace support.
9822 * block.h: Add opaque declarations for structs
9823 block_namespace_info, using_direct, and obstack.
9824 Add declarations for block_set_scope and block_set_using.
9825 (struct block): Add 'language_specific' member.
9826 (BLOCK_NAMESPACE): New macro.
9827 * block.c: Include gdb_obstack.h and cp-support.h.
9828 (struct block_namespace_info): New struct.
9829 (block_set_scope): New function.
9830 (block_set_using, block_initialize_namespace): Ditto.
9831
9832 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9833
9834 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9835 (locate_base): Return early if there aren't any link map offsets.
9836 (svr4_solib_create_inferior_hook): Warn if shared library support
9837 is unavailable.
9838
9839 2003-04-14 David Carlton <carlton@math.stanford.edu>
9840
9841 * symtab.c (symbol_set_names): Add prefix when storing Java names
9842 in hash table. Fix for PR java/1039.
9843
9844 2003-04-14 David Carlton <carlton@math.stanford.edu>
9845
9846 * symtab.c (symbol_set_names): Rename 'name' arg to
9847 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9848 * symtab.h: Change 'name' argument in declaration of
9849 symbol_set_names to 'linkage_name'.
9850 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9851
9852 2003-04-14 Andrew Cagney <cagney@redhat.com>
9853
9854 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9855 return the fully sign-extended register value.
9856 (get_frame_pointer): Ditto.
9857 (mips_pop_frame): Initialize "proc_desc" after checking for a
9858 dummy frame.
9859
9860 2003-04-14 Andrew Cagney <cagney@redhat.com>
9861
9862 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9863 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9864 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9865 (mips_push_register): Delete function.
9866 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9867 PUSH_FP_REGNUM.
9868
9869 2003-04-14 Jim Blandy <jimb@redhat.com>
9870
9871 * symmisc.c: #include "gdb_regex.h".
9872 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9873 functions.
9874 * maint.c (maintenance_list_command): New function.
9875 (_initialize_maint_cmds): Register the above as commands.
9876 * symtab.h (maintenance_list_symtabs,
9877 maintenance_list_psymtabs): New declarations.
9878 * cli/cli-cmds.c (maintenancelistlist): New variable.
9879 (init_cmd_lists): Initialize it.
9880 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9881 * gdbcmd.h (maintenancelistlist): New declaration.
9882 * Makefile.in (symmisc.o): Update dependencies.
9883
9884 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9885
9886 * s390-nat.c: Include asm/types.h for addr_t.
9887
9888 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9889
9890 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9891 actually incoming type.
9892
9893 2003-04-13 Andrew Cagney <cagney@redhat.com>
9894
9895 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9896 get_next_frame and get_frame_saved_regs.
9897
9898 2003-04-13 Andrew Cagney <cagney@redhat.com>
9899
9900 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9901 of gdbarch_num_regs.
9902
9903 2003-04-13 Andrew Cagney <cagney@redhat.com>
9904
9905 * frame.h: Mention what replaced what in "struct frame_info".
9906 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9907 deprecated_update_frame_base_hack and
9908 deprecated_update_frame_pc_hack.
9909 * hppa-tdep.c: Ditto.
9910
9911 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9912
9913 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9914 to read_reg and update its comment. Remove regnum member.
9915 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9916 Don't call read_reg when setting in_reg. Call read_reg to get
9917 the frame base if it's in a register. Return the register number
9918 on the stack instead of in the context. Remove extra arguments
9919 to read_reg.
9920 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9921 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9922 the register number on the expression stack.
9923 (needs_frame_read_reg): Remove extra arguments.
9924
9925 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9926
9927 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9928 made non-static.
9929 (execute_stack_op): All callers updated.
9930 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9931 * dwarf2loc.c (find_location_expression): New function.
9932 (dwarf_expr_frame_base): Call it.
9933 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9934 (dwarf2_tracepoint_var_ref): New function, broken out from
9935 locexpr_tracepoint_var_ref.
9936 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9937 Make static.
9938 (loclist_read_variable, loclist_read_needs_frame): New functions.
9939 (loclist_describe_location, loclist_tracepoint_var_ref): New
9940 functions.
9941 (dwarf2_loclist_funcs): New struct location_funcs.
9942 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9943 (struct dwarf2_locexpr_baton): Add comments.
9944 (dwarf2_loclist_funcs): New extern.
9945 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9946 base_address and base_known.
9947 (dwarf_loc_buffer): New variable.
9948 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9949 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9950 (dwarf2_has_info): Initialize dwarf_loc_offset.
9951 (dwarf2_build_psymtabs): Read in .debug_loc.
9952 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9953 DWARF_LOC_SIZE.
9954 (psymtab_to_symtab_1): Likewise. Move base address calculation
9955 here, from...
9956 (dwarf2_get_pc_bounds): ... here. Use the base address from
9957 cu_header.
9958 (dwarf2_symbol_mark_computed): Handle location lists.
9959
9960 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9961
9962 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9963 if the linkage name demangled successfully.
9964
9965 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9966
9967 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9968 disassmbly_flavour): Removed.
9969
9970 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9971
9972 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9973
9974 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9975
9976 2003-04-12 Andrew Cagney <cagney@redhat.com>
9977
9978 * frame.h (struct frame_info): Move definition from here ...
9979 * frame.c (struct frame_info): ... to here.
9980
9981 2003-04-12 Andrew Cagney <cagney@redhat.com>
9982
9983 * gdbthread.h (save_infrun_state): Delete parameter
9984 "prev_func_start".
9985 (struct thread_info): Delete field "prev_func_start".
9986 (load_infrun_state): Ditto.
9987 * thread.c (load_infrun_state, save_infrun_state): Update.
9988 * infrun.c (prev_func_start): Delete variable.
9989 (context_switch, init_wait_for_inferior): Update.
9990 (stop_stepping, keep_going): Update.
9991
9992 2003-04-12 Andrew Cagney <cagney@redhat.com>
9993
9994 * gdbarch.sh: Add missing opaque declarations.
9995 * gdbarch.h: Regnerate.
9996 * symtab.h: Add missing opaque declarations.
9997 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9998 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9999 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10000 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10001 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10002 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10003 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10004 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10005 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10006 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10007 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10008 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10009 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10010
10011 2003-04-11 Andrew Cagney <cagney@redhat.com>
10012
10013 * frame.c (get_frame_id): Return this frame's "id".
10014 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10015 function start.
10016 (legacy_saved_regs_this_id): Replace function body with
10017 internal-error.
10018 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10019 FRAME_OBSTACK_ZALLOC.
10020 (create_new_frame): Mark the frame ID as valid.
10021
10022 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10023
10024 * Makefile.in (libbfd_h): Added missing setting.
10025 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10026 according to the selected ABI.
10027
10028 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10029
10030 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10031
10032 2003-04-11 Andrew Cagney <cagney@redhat.com>
10033
10034 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10035 SAVED_PC_AFTER_CALL.
10036 * gdbarch.h, gdbarch.c: Regenerate.
10037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10038 * x86-64-tdep.c (x86_64_init_abi): Update.
10039 * vax-tdep.c (vax_gdbarch_init): Update.
10040 * v850-tdep.c (v850_gdbarch_init): Update.
10041 * sparc-tdep.c (sparc_gdbarch_init): Update.
10042 * sh-tdep.c (sh_gdbarch_init): Update.
10043 * s390-tdep.c (s390_gdbarch_init): Update.
10044 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10045 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10046 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10047 * mips-tdep.c (mips_gdbarch_init): Update.
10048 * mcore-tdep.c (mcore_gdbarch_init): Update.
10049 * m68k-tdep.c (m68k_gdbarch_init): Update.
10050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10051 * ia64-tdep.c (ia64_gdbarch_init): Update.
10052 (ia64_saved_pc_after_call): Update declaration.
10053 * i386ly-tdep.c (i386lynx_init_abi): Update.
10054 * i386-tdep.c (i386_gdbarch_init): Update.
10055 * hppa-tdep.c (hppa_gdbarch_init): Update.
10056 * h8300-tdep.c (h8300_gdbarch_init): Update.
10057 * frv-tdep.c (frv_gdbarch_init): Update.
10058 * cris-tdep.c (cris_gdbarch_init): Update.
10059 * avr-tdep.c (avr_gdbarch_init): Update.
10060 * arm-tdep.c (arm_gdbarch_init): Update.
10061 * alpha-tdep.c (alpha_gdbarch_init): Update.
10062 * ns32knbsd-nat.c (frame_num_args): Update.
10063 * ns32k-tdep.c (umax_frame_num_args): Update.
10064 * mips-tdep.c (mips_init_frame_pc_first): Update.
10065 * infrun.c (step_over_function): Update.
10066 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10067 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10068 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10069 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10070 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10071 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10072 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10073 * arch-utils.c (init_frame_pc_default): Update.
10074 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10075 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10076 declaration.
10077
10078 2003-04-11 Andrew Cagney <cagney@redhat.com>
10079
10080 * i387-tdep.c: Update copyright.
10081 (i387_to_double): Delete function.
10082 (double_to_i387): Delete function.
10083
10084 2003-04-10 Andrew Cagney <cagney@redhat.com>
10085
10086 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10087 frame's function's address. Simplify.
10088 (d10v_frame_unwind_cache): Check that the frame's function is
10089 non-zero.
10090
10091 2003-04-10 Jim Blandy <jimb@redhat.com>
10092
10093 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10094 call to set_gdbarch_deprecated_push_arguments.
10095
10096 2003-04-10 Andrew Cagney <cagney@redhat.com>
10097
10098 * frame.c (fprint_frame_id): New function.
10099 (fprint_frame_type, fprint_frame): New function.
10100 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10101 (create_sentinel_frame, get_frame_id): Ditto.
10102 (frame_id_p, frame_id_eq): Ditto.
10103 (frame_id_inner, create_new_frame): Ditto.
10104 (legacy_get_prev_frame, get_prev_frame): Ditto.
10105 (deprecated_update_frame_pc_hack): Ditto.
10106 (frame_register_unwind): Ditto.
10107 (deprecated_update_frame_base_hack): Ditto.
10108
10109 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10110
10111 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10112 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10113 frame_chain function.
10114 * Makefile.in: Add dependencies due to above change.
10115
10116 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10117
10118 * blockframe.c (legacy_frame_chain_valid): Move call to
10119 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10120 inside_entry_file.
10121
10122 2003-04-09 Andrew Cagney <cagney@redhat.com>
10123
10124 * frame.h (struct frame_id): Replace "pc" and "base" with
10125 "stack_addr" and "code_addr". Update comments.
10126 (frame_id_build): Update parameter names and comment.
10127 (struct frame_info): Replace "id_p" and "id" with "this_id".
10128 * dummy-frame.c (dummy_frame_this_id): Update.
10129 * breakpoint.c (print_one_breakpoint): Update.
10130 * frame.c (get_frame_id): Update.
10131 (get_frame_base, frame_id_build): Update.
10132 (create_sentinel_frame, legacy_get_prev_frame): Update.
10133 (deprecated_update_frame_base_hack): Update.
10134 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10135 (frame_id_inner): Ditto.
10136
10137 2003-04-09 Andrew Cagney <cagney@redhat.com>
10138
10139 * defs.h (gdb_print_host_address): Make "addr" parameter a
10140 pointer constant.
10141 * utils.c (gdb_print_host_address): Update.
10142
10143 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10144
10145 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10146 register number for R0 is 0.
10147
10148 2003-04-09 J. Brobecker <brobecker@gnat.com>
10149
10150 * frame.h (struct gdbarch): Add opaque structure definition
10151 to avoid a compilation warning on LynxOS 4.0.
10152
10153 2003-04-09 Andrew Cagney <cagney@redhat.com>
10154
10155 * frame.h (struct frame_info): Delete field "pc". Replace
10156 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10157 structure.
10158 * frame.c (frame_pc_unwind): Update.
10159 (create_sentinel_frame): Do not set "pc".
10160 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10161 (get_frame_pc): Call frame_pc_unwind.
10162 (deprecated_update_frame_pc_hack): Update.
10163 (create_new_frame): Use "pc" not "->pc".
10164
10165 2003-04-09 Andrew Cagney <cagney@redhat.com>
10166
10167 * frame.c (get_frame_id): Eliminate code updating "frame".
10168 (legacy_get_prev_frame): Ditto.
10169 (get_frame_base): Return id.base directly.
10170 (deprecated_update_frame_base_hack): Update "id.base".
10171 * frame.h (struct frame_info): Delete field "frame".
10172
10173 2003-04-09 Andrew Cagney <cagney@redhat.com>
10174
10175 * NEWS: Mention that the "Sequent family" is obsolete.
10176 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10177 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10178 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10179 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10180 * config/i386/tm-ptx4.h: Obsolete file.
10181 * config/i386/tm-ptx.h: Obsolete file.
10182 * symm-tdep.c: Obsolete file.
10183 * config/i386/symmetry.mt: Obsolete file.
10184 * config/i386/tm-symmetry.h: Obsolete file.
10185 * symm-nat.c: Obsolete file.
10186 * config/i386/nm-symmetry.h: Obsolete file.
10187 * config/i386/xm-symmetry.h: Obsolete file.
10188 * config/i386/symmetry.mh: Obsolete file.
10189 * config/i386/nm-ptx4.h: Obsolete file.
10190 * config/i386/ptx4.mh: Obsolete file.
10191 * config/i386/ptx.mt: Obsolete file.
10192 * config/i386/ptx.mh: Obsolete file.
10193 * config/i386/xm-ptx4.h: Obsolete file.
10194 * config/i386/xm-ptx.h: Obsolete file.
10195
10196 2003-04-09 Andrew Cagney <cagney@redhat.com>
10197
10198 Obsolete mips*-*-mach3*.
10199 * NEWS: Mention that mips*-*-mach3* is obsolete.
10200 * m3-nat.c: Obsolete file.
10201 * config/nm-m3.h: Obsolete file.
10202 * config/mips/tm-mipsm3.h: Obsolete file.
10203 * config/mips/mipsm3.mt: Obsolete file.
10204 * config/mips/mipsm3.mh: Obsolete file.
10205 * config/mips/xm-mipsm3.h: Obsolete file.
10206 * mipsm3-nat.c: Obsolete file.
10207 * configure.host: Obsolete mips-dec-mach3*.
10208 * configure.tgt: Obsolete mips*-*-mach3*.
10209
10210 2003-04-09 Andrew Cagney <cagney@redhat.com>
10211
10212 * doublest.h: Update copyright.
10213 (deprecated_store_floating, deprecated_extract_floating): Rename
10214 store_floating and extract_floating. Update comments.
10215 * doublest.c: Update copyright.
10216 (extract_floating_by_length): Replace extract_floating.
10217 (store_floating_by_length): Replace store_floating.
10218 (deprecated_extract_floating): New function.
10219 (deprecated_store_floating): New function.
10220 (extract_typed_floating): Call extract_floating_by_length.
10221 (store_typed_floating): Call store_floating_by_length.
10222 * x86-64-tdep.c (x86_64_store_return_value): Update.
10223 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10224 (sh64_extract_return_value): Update.
10225 (sh_sh4_register_convert_to_virtual): Update.
10226 (sh_sh64_register_convert_to_virtual): Update.
10227 (sh_sh4_register_convert_to_raw): Update.
10228 (sh_sh64_register_convert_to_raw): Update.
10229 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10230 (rs6000_register_convert_to_raw): Update.
10231 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10232 (ia64_register_convert_to_raw): Update.
10233 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10234 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10235 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10236 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10237 (alpha_register_convert_to_raw): Update.
10238
10239 2003-04-08 Andrew Cagney <cagney@redhat.com>
10240
10241 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10242 * gdbarch.h, gdbarch.c: Re-generate.
10243 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10244 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10245 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10246 conditionally, use frame_pc_unwind as an alternative. Add
10247 comments.
10248 * arch-utils.c (init_frame_pc_default): Only call
10249 SAVED_PC_AFTER_CALL when available.
10250
10251 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10252
10253 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10254 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10255 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10256 (start_remote): Ditto.
10257 (handle_inferior_event): Ditto.
10258 (save_inferior_status): Ditto.
10259 (restore_inferior_status): Ditto.
10260 * infcmd.c (attach_command): Ditto.
10261 * fork-child.c (startup_inferior): Ditto.
10262 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10263 * alpha-tdep.c (heuristic_proc_start): Ditto.
10264 * mips-tdep.c (heuristic_proc_start): Ditto.
10265 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10266 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10267 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10268 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10269 * remote-vx.c (vx_create_inferior): Ditto.
10270
10271 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10272
10273 * infrun.c (stop_soon_quietly): Make it an enum, to better
10274 override the default behavior of handle_inferior_event.
10275 (clear_proceed_status): Update uses of stop_soon_quietly to
10276 reflect that it is now an enum.
10277 (start_remote): Ditto.
10278 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10279 is set to handle the new GNU/Linux kernel behavior for
10280 attach/sigstop. Update uses of stop_soon_quietly.
10281 * inferior.h (enum stop_kind): New enum.
10282 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10283 Reset normal handle_inferior_event behavior, afterwards.
10284 * fork-child.c (startup_inferior): Update.
10285 * alpha-tdep.c (heuristic_proc_start): Update.
10286 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10287 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10288 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10289 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10290 * remote-vx.c (vx_create_inferior): Update.
10291 * mips-tdep.c (heuristic_proc_start): Update.
10292
10293 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10294
10295 * disasm.c (dump_insns): Move variables inside loop, or they will
10296 be freed more than once, causing wild memory corruptions.
10297 (gdb_disassembly): Look for the substring "-thread",
10298 instead of "-threads" in the target name, to make sure to find
10299 the 'multi-thread' target. Also, make sure we do the right thing
10300 with the "core" target.
10301
10302 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10303
10304 * mips-tdep.c (mips_print_fp_register): New function, created from
10305 do_fp_register_row(). Registers are now (also) printed as hex.
10306 Only one register is printed per row.
10307 (mips_print_register, do_fp_register_row): Print floating point
10308 registers with mips_print_fp_register().
10309
10310 2003-04-06 Andrew Cagney <cagney@redhat.com>
10311
10312 * valprint.h (inspect_it): Add extern declaration.
10313 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10314 (selectors_info, classes_info): Ditto.
10315 (find_objc_msgcall): Fix indentation.
10316 (objc_printstr): Delete extern declarations.
10317
10318 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10319
10320 2003-04-06 Andrew Cagney <cagney@redhat.com>
10321
10322 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10323 Update comment.
10324 * frame.c (legacy_saved_regs_this_id): Update.
10325 (legacy_get_prev_frame): Update.
10326 * xstormy16-tdep.c: Update comment.
10327 * sparc-tdep.c (sparc_frame_chain): Update comment.
10328 * blockframe.c (legacy_frame_chain_valid): Update.
10329
10330 2003-04-06 Andrew Cagney <cagney@redhat.com>
10331
10332 * valprint.c (val_print_type_code_int): Delete #ifdef
10333 PRINT_TYPELESS_INTEGER code.
10334
10335 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10336 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10337 multi-arch definition.
10338 * gdbarch.h: Re-generate.
10339
10340 2003-04-05 Andrew Cagney <cagney@redhat.com>
10341
10342 Eliminate FRAME_FIND_SAVED_REGS.
10343 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10344 Change FSR parameter to a pointer.
10345 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10346 Assume FSR parameter is a pointer.
10347 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10348 Make fsr a pointer.
10349 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10350 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10351 saved_regs a pointer.
10352 (hppa_frame_saved_pc): Ditto.
10353 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10354 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10355 pointer.
10356 (restore_pc_queue): Make fsr a pointer.
10357 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10358 (hppa_frame_chain): Make saved_regs a pointer, call
10359 hppa_frame_init_saved_regs.
10360 * sparc-tdep.c: Include "gdb_assert.h".
10361 (sparc_frame_find_saved_regs): Replace internal_error with
10362 gdb_assert.
10363 * remote-vxsparc.c (vx_read_register): Delete reference to
10364 FRAME_FIND_SAVED_REGS.
10365 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10366 * gdbarch.h: Regenerate.
10367 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10368 (deprecated_get_frame_saved_regs): Delete declaration.
10369 (struct frame_saved_regs): Delete definition.
10370 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10371 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10372 (hppa_frame_find_saved_regs): Delete declaration.
10373 (FRAME_FIND_SAVED_REGS): Delete macro.
10374 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10375 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10376 FRAME_FIND_SAVED_REGS in comment.
10377
10378 2003-04-05 Andrew Cagney <cagney@redhat.com>
10379
10380 * frame.c (frame_func_unwind, get_frame_func): New functions.
10381 * frame.h (get_frame_func, frame_func_unwind): Declare.
10382 (struct frame_info): Add field "prev_func" for caching the
10383 previous frame's function address.
10384 * arm-tdep.c (arm_frameless_function_invocation): Combine
10385 get_pc_function_start and get_frame_pc into get_frame_func.
10386 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10387 (sh64_nofp_frame_init_saved_regs): Ditto.
10388 * s390-tdep.c (s390_function_start): Ditto.
10389 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10390 (rs6000_frameless_function_invocation): Ditto.
10391 (rs6000_frame_saved_pc): Ditto.
10392 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10393 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10394 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10395 (i386_frame_init_saved_regs): Ditto.
10396 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10397 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10398 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10399 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10400 * blockframe.c (frameless_look_for_prologue): Ditto.
10401
10402 2003-04-05 Andrew Cagney <cagney@redhat.com>
10403
10404 * frame.c (legacy_get_prev_frame): Link prev to next at the
10405 function start. Update comments.
10406
10407 2003-04-05 Andrew Cagney <cagney@redhat.com>
10408
10409 * frame.c (get_frame_id): Update comment.
10410 (legacy_get_prev_frame): Update comment.
10411 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10412 * gdbarch.h: Regenerate.
10413 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10414 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10415
10416 2003-04-05 Andrew Cagney <cagney@redhat.com>
10417
10418 * stack.c (print_frame_info): Use get_frame_pc.
10419
10420 2003-04-04 Andrew Cagney <cagney@redhat.com>
10421
10422 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10423 the frame's type from the unwinder.
10424 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10425 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10426 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10427 (get_frame_base_address): Use get_frame_type.
10428 (get_frame_locals_address, get_frame_args_address): Ditto.
10429 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10430 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10431 (struct frame_info): Add comment explaining why the frame contains
10432 a "type" field.
10433 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10434 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10435 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10436 NORMAL_FRAME.
10437 * frame-unwind.h: Include "frame.h".
10438 (struct frame_unwind): Add "type" field.
10439 * Makefile.in (frame_unwind_h): Add $(frame_h).
10440
10441 2003-04-04 Andrew Cagney <cagney@redhat.com>
10442
10443 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10444 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10445 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10446 get_frame_base.
10447 (d10v_unwind_dummy_id): Use frame_id_build.
10448 * frame.c (find_frame_sal): Use get_frame_pc.
10449 (create_new_frame): Use deprecated_update_frame_pc_hack and
10450 deprecated_update_frame_base_hack.
10451 (create_sentinel_frame): Add comment about ->pc going away.
10452 (get_prev_frame): Add comment about ->pc going away.
10453 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10454 frame_id_build, deprecated_update_frame_pc_hack and
10455 deprecated_update_frame_base_hack.
10456 (select_frame): Use get_frame_pc.
10457 (legacy_saved_regs_this_id): Use frame_id_build.
10458
10459 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10460
10461 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10462 signed integer case.
10463 (classify_argument): Handle enumerations and references.
10464
10465 2003-04-04 Andrew Cagney <cagney@redhat.com>
10466
10467 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10468 ID to NULL.
10469
10470 2003-04-01 Adam Fedor <fedor@gnu.org>
10471
10472 * gdb/objc-lang.c (selectors_info): Replace calls to
10473 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10474 SYMBOL_NATURAL_NAME.
10475 (classes_info, find_methods): Likewise.
10476
10477 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10478
10479 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10480 ``mach'' to the value determined by bfd_default_set_arch_mach().
10481
10482 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10483
10484 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10485 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10486 (mi-cmd-file.o): Update dependencies.
10487
10488 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10489
10490 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10491 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10492
10493 2003-04-01 Adam Fedor <fedor@gnu.org>
10494
10495 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10496 * language.h (struct language_defn): Add la_demangle.
10497 (language_demangle): Declare.
10498 * language.c (language_demangle): New function.
10499 (unk_lang_demangle): Likewise.
10500 (unknown_language_defn, auto_language_defn, local_language_defn):
10501 Add ukn_lang_demangle.
10502 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10503 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10504 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10505 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10506 * jv-lang.c (java_demangle): New function
10507 (java_language_defn): Use it for la_demangle element.
10508 * objc-lang.c (objc_demangle): Add options argument
10509 (objc_language_defn): Use objc_demangle for la_demangle element.
10510 * maint.c (maintenance_demangle): Replace switch with
10511 call to language_demangle.
10512 * utils.c (fprintf_symbol_filtered): Likewise.
10513
10514 2003-04-01 Andrew Cagney <cagney@redhat.com>
10515
10516 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10517 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10518 PRINT_TYPELESS_INTEGER.
10519 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10520 PUSH_RETURN_ADDRESS.
10521
10522 2003-04-01 Andrew Cagney <cagney@redhat.com>
10523
10524 * Makefile.in (d10v-tdep.o): Update dependencies.
10525 * d10v-tdep.c: Include "frame-base.h".
10526 (d10v_frame_unwind): Make constant.
10527 (d10v_frame_base_address): New function.
10528 (d10v_frame_base): New variable.
10529 (d10v_gdbarch_init): Set frame_base default.
10530 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10531 comment for base.
10532 (d10v_frame_unwind_cache): Set and use "prev_sp".
10533 (d10v_frame_this_id): Use the previous frame's inner most stack
10534 address and this frame's func address for the frame ID. Use
10535 frame_id_build. Don't analyze beyond the current instruction.
10536
10537 2003-04-01 Andrew Cagney <cagney@redhat.com>
10538
10539 * frame.h (get_frame_locals_address, get_frame_args_address):
10540 Refer to the base address, instead of the address of the first
10541 local or parameter.
10542
10543 2003-04-01 Andrew Cagney <cagney@redhat.com>
10544
10545 Add frame debug info addresses:
10546 * frame-base.c: New file.
10547 * frame-base.h: New file.
10548 * frame.h (struct frame_base): Add opaque declaration.
10549 (get_frame_base): Update comment.
10550 (get_frame_base_address): Declare.
10551 (get_frame_locals_address): Declare.
10552 (get_frame_args_address): Declare.
10553 (struct frame_info): Add "base" and "base_cache". Update
10554 comments on the unwinder.
10555 * frame.c: Include "frame-base.h".
10556 (get_frame_locals_address): New function.
10557 (get_frame_base_address): New function.
10558 (get_frame_args_address): New function.
10559 * findvar.c (read_var_value): Use get_frame_locals_address and
10560 get_frame_args_address.
10561 * stack.c (frame_info): Use get_frame_locals_address and
10562 get_frame_args_address.
10563 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10564 moved to "frame-base.c".
10565 * printcmd.c (print_frame_nameless_args): Ditto.
10566 * symtab.h (address_class): Update comments.
10567 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10568 get_frame_base_address.
10569 * dwarf2expr.c (execute_stack_op): Ditto.
10570 * Makefile.in (frame_base_h): Define.
10571 (frame.o): Update dependencies.
10572 (frame-base.o): Add dependencies.
10573 (SFILES): Add frame-base.c.
10574 (COMMON_OBS): Add frame-base.o.
10575
10576 2003-04-01 Andrew Cagney <cagney@redhat.com>
10577
10578 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10579 CALL_DUMMY_LENGTH): Ditto.
10580 * gdbarch.c: Re-generate.
10581 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10582 (CALL_DUMMY_LENGTH): Delete macro.
10583 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10584 * arm-tdep.c (arm_gdbarch_init): Ditto.
10585 * avr-tdep.c (avr_gdbarch_init): Ditto.
10586 * cris-tdep.c (cris_gdbarch_init): Ditto.
10587 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10588 * frv-tdep.c (frv_gdbarch_init): Ditto.
10589 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10590 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10591 * i386-tdep.c (i386_gdbarch_init): Ditto.
10592 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10594 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10595 * mips-tdep.c (mips_gdbarch_init): Ditto.
10596 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10597 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10598 * s390-tdep.c (s390_gdbarch_init): Ditto.
10599 * sh-tdep.c (sh_gdbarch_init): Ditto.
10600 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10601 * v850-tdep.c (v850_gdbarch_init): Ditto.
10602 * vax-tdep.c (vax_gdbarch_init): Ditto.
10603 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10604
10605 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10606
10607 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10608
10609 2003-04-01 Andrew Cagney <cagney@redhat.com>
10610
10611 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10612 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10613 * gdbarch.h, gdbarch.c: Re-generate.
10614 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10615 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10616 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10617 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10618 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10619 * infcmd.c (run_stack_dummy): Simplify assuming
10620 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10621 * infrun.c (handle_inferior_event): Ditto.
10622 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10623 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10624 * arm-tdep.c (arm_gdbarch_init): Ditto.
10625 * avr-tdep.c (avr_gdbarch_init): Ditto.
10626 * cris-tdep.c (cris_gdbarch_init): Ditto.
10627 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10628 * frv-tdep.c (frv_gdbarch_init): Ditto.
10629 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10630 * i386-tdep.c (i386_gdbarch_init): Ditto.
10631 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10633 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10634 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10635 * mips-tdep.c (mips_gdbarch_init): Ditto.
10636 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10637 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10638 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10639 * s390-tdep.c (s390_gdbarch_init): Ditto.
10640 * sh-tdep.c (sh_gdbarch_init): Ditto.
10641 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10642 * v850-tdep.c (v850_gdbarch_init): Ditto.
10643 * vax-tdep.c (vax_gdbarch_init): Ditto.
10644 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10645
10646 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10647
10648 * symfile.c (symfile_relocate_debug_section): Update call to
10649 bfd_simple_get_relocated_section_contents.
10650
10651 2003-03-31 Andrew Cagney <cagney@redhat.com>
10652
10653 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10654 * gdbarch.h, gdbarch.c: Regenerate.
10655 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10656 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10657 available.
10658 * frame.h (generic_fix_call_dummy): Delete declaration.
10659 * dummy-frame.h: Update comment.
10660 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10662 fix_call_dummy.
10663 * sh-tdep.c (sh_gdbarch_init): Ditto.
10664 * s390-tdep.c (s390_gdbarch_init): Ditto.
10665 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10666 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10668 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10669 * i386-tdep.c (i386_gdbarch_init): Ditto.
10670 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10671 * frv-tdep.c (frv_gdbarch_init): Ditto.
10672 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10673 * cris-tdep.c (cris_gdbarch_init): Ditto.
10674 * avr-tdep.c (avr_gdbarch_init): Ditto.
10675 * arm-tdep.c (arm_gdbarch_init): Ditto.
10676
10677 2003-03-31 J. Brobecker <brobecker@gnat.com>
10678
10679 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10680 (INIT_FRAME_AP): Likewise.
10681 (EXTRA_FRAME_INFO): Likewise.
10682
10683 2003-03-31 Andrew Cagney <cagney@redhat.com>
10684
10685 * gdbarch.sh: Include "symfile.h".
10686 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10687 * gdbarch.h, gdbarch.c: Re-generate.
10688 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10689 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10690 call_dummy_address, the default is at entry_point_address.
10691 * v850-tdep.c (v850_gdbarch_init): Ditto.
10692 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10693 * sh-tdep.c (sh_gdbarch_init): Ditto.
10694 * s390-tdep.c (s390_gdbarch_init): Ditto.
10695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10696 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10697 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10698 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10699 * i386-tdep.c (i386_gdbarch_init): Ditto.
10700 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10701 * frv-tdep.c (frv_gdbarch_init): Ditto.
10702 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10703 * cris-tdep.c (cris_gdbarch_init): Ditto.
10704 * arm-tdep.c (arm_gdbarch_init): Ditto.
10705
10706 2003-03-31 Andrew Cagney <cagney@redhat.com>
10707
10708 * gdbarch.sh (CALL_DUMMY_P): Delete.
10709 * gdbarch.h, gdbarch.c: Re-generate.
10710 * inferior.h (CALL_DUMMY_P): Delete macro.
10711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10712 * vax-tdep.c (vax_gdbarch_init): Update.
10713 * v850-tdep.c (v850_gdbarch_init): Update.
10714 * sparc-tdep.c (sparc_gdbarch_init): Update.
10715 * sh-tdep.c (sh_gdbarch_init): Update.
10716 * s390-tdep.c (s390_gdbarch_init): Update.
10717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10719 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10720 * mips-tdep.c (mips_gdbarch_init): Update.
10721 * mcore-tdep.c (mcore_gdbarch_init): Update.
10722 * m68k-tdep.c (m68k_gdbarch_init): Update.
10723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10724 * ia64-tdep.c (ia64_gdbarch_init): Update.
10725 * i386-tdep.c (i386_gdbarch_init): Update.
10726 * h8300-tdep.c (h8300_gdbarch_init): Update.
10727 * frv-tdep.c (frv_gdbarch_init): Update.
10728 * d10v-tdep.c (d10v_gdbarch_init): Update.
10729 * cris-tdep.c (cris_gdbarch_init): Update.
10730 * breakpoint.c (deprecated_frame_in_dummy): Update.
10731 * avr-tdep.c (avr_gdbarch_init): Update.
10732 * alpha-tdep.c (alpha_gdbarch_init): Update.
10733 * arm-tdep.c (arm_gdbarch_init): Update.
10734 * dummy-frame.c (dummy_frame_this_id): Update comments.
10735 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10736 * frame.c (legacy_get_prev_frame): Ditto.
10737 * valops.c (call_function_by_hand): Delete function.
10738 (hand_function_call): Rename to call_function_by_hand
10739
10740 2003-03-30 Andrew Cagney <cagney@redhat.com>
10741
10742 2002-11-10 Klee Dienes <kdienes@apple.com>
10743 * value.h (struct value): Update comment.
10744
10745 2003-03-30 Andrew Cagney <cagney@redhat.com>
10746
10747 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10748 D10V_FP_REGNUM.
10749 (d10v_gdbarch_init): Do not set fp_regnum.
10750
10751 * frame.c (get_frame_base): Force ID initialization.
10752 (get_prev_frame): Move computation of the frame ID from here ...
10753 (get_frame_id): ... to here.
10754 (legacy_get_prev_frame): Mark the frame ID as valid.
10755 * frame.h (struct frame_info): Add field "id_p".
10756
10757 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10758
10759 * i386-tdep.c (i386_store_struct_return): Removed.
10760 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10761
10762 2003-03-30 Andrew Cagney <cagney@redhat.com>
10763
10764 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10765 * gdbarch.h, gdbarch.c: Regenerate.
10766 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10767 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10768 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10769 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10770 * i386-tdep.c (i386_gdbarch_init): Ditto.
10771 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10772 * cris-tdep.c (cris_gdbarch_init): Ditto.
10773 * vax-tdep.c (vax_gdbarch_init): Ditto.
10774 * s390-tdep.c (s390_gdbarch_init): Ditto.
10775 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10776 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10777 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10778 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10779 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10780 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10781 * sparc-tdep.c (sparc_gdbarch_init): Update.
10782 * sh-tdep.c (sh_gdbarch_init): Update.
10783 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10784 * mips-tdep.c (mips_gdbarch_init): Update.
10785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10786 * ia64-tdep.c (ia64_gdbarch_init): Update.
10787 * frv-tdep.c (frv_gdbarch_init): Update.
10788 * avr-tdep.c (avr_gdbarch_init): Update.
10789 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10790 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10791 instead of when push_dummy_call is not available.
10792
10793 2003-03-30 Andrew Cagney <cagney@redhat.com>
10794
10795 * infttrace.c: Include "gdbthread.h".
10796 (parent_attach_all): Fix function signature.
10797 (call_ptrace): Update call.
10798 * Makefile.in (infttrace.o): Update dependencies.
10799
10800 2003-03-30 Andrew Cagney <cagney@redhat.com>
10801
10802 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10803 PUSH_RETURN_ADDRESS.
10804 * gdbarch.h, gdbarch.c: Regenerate.
10805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10806 * x86-64-tdep.c (x86_64_init_abi): Update.
10807 * v850-tdep.c (v850_gdbarch_init): Update.
10808 * sparc-tdep.c (sparc_gdbarch_init): Update.
10809 * sh-tdep.c (sh_gdbarch_init): Update.
10810 * s390-tdep.c (s390_gdbarch_init): Update.
10811 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10812 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10813 * mips-tdep.c (mips_gdbarch_init): Update.
10814 * mcore-tdep.c (mcore_gdbarch_init): Update.
10815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10816 * ia64-tdep.c (ia64_gdbarch_init): Update.
10817 * i386-tdep.c (i386_gdbarch_init): Update.
10818 * h8300-tdep.c (h8300_gdbarch_init): Update.
10819 * frv-tdep.c (frv_gdbarch_init): Update.
10820 * cris-tdep.c (cris_gdbarch_init): Update.
10821 * avr-tdep.c (avr_gdbarch_init): Update.
10822 * arm-tdep.c (arm_gdbarch_init): Update.
10823 * valops.c (hand_function_call): Update.
10824
10825 2003-03-29 Andrew Cagney <cagney@redhat.com>
10826
10827 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10828 sizeof_call_dummy_words.
10829 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10830 define.
10831 * gdbarch.h: Regenerate.
10832
10833 2003-03-29 Andrew Cagney <cagney@redhat.com>
10834
10835 * infttrace.h: New file.
10836 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10837 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10838 (hpread_read_doc_function_type): Detect an initialized type1.
10839 (hpread_quick_traverse): Initialize mod_name_string.
10840 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10841 (som_solib_get_solib_by_pc): Declare.
10842 (so_lib_thread_start_addr): Declare.
10843 (no_shared_libraries): Declare.
10844 * somread.c (init_import_symbols): Make static. Add forward
10845 declaration.
10846 * config/pa/nm-hppah.h: Include "infttrace.h" for
10847 parent_attach_all.
10848 (hppa_insert_hw_watchpoint): Declare.
10849 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10850 * hppah-nat.c: Include "gdb_string.h".
10851 (parent_attach_all): Delete extern declaration, moved to
10852 "infttrace.h".
10853 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10854 int.
10855 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10856 * Makefile.in (infttrace_h): Define.
10857 (hpread.o): Update dependencies.
10858 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10859 * hppa-hpux-tdep.c: Include "gdb_string.h".
10860 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10861 * infrun.c (handle_inferior_event): Always initialize
10862 stepped_after_stopped_by_watchpoint. Add default and remove
10863 fallthrough in switch statement.
10864 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10865 parameter to int.
10866 (hppa_remove_hw_watchpoint): Ditto.
10867
10868 2003-03-29 Andrew Cagney <cagney@redhat.com>
10869
10870 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10871 offset.
10872
10873 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10874
10875 * arm-tdep.c (arm_push_arguments): Delete.
10876 (struct stack_item): New type.
10877 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10878 (arm_store_struct_return): Delte.
10879 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10880 arm_push_arguments or arm_store_struct_return.
10881
10882 2003-03-28 Andrew Cagney <cagney@redhat.com>
10883
10884 * Makefile.in (d10v-tdep.o): Update dependencies.
10885 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10886 * d10v-tdep.c: Include "remote.h".
10887 (target_resume_hook): Delete extern declaration.
10888 (target_wait_loop_hook): Ditto.
10889 (tdisassemble_command): Eliminate assignment in "if" conditional.
10890 (d10v_ts2_register_sim_regno): Eliminate call to
10891 legacy_register_sim_regno.
10892 (d10v_ts3_register_sim_regno): Ditto.
10893
10894 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10895
10896 * thread.c: Reindented.
10897 * lin-lwp.c: Ditto.
10898 * linux-proc.c: Ditto.
10899
10900 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10901
10902 * MAINTAINERS (write after approval): Add myself.
10903
10904 2003-03-27 Theodore A. Roth <troth@openavr.org>
10905
10906 * objc-exp.y: Add missing semi-colons.
10907
10908 2003-03-27 Andrew Cagney <cagney@redhat.com>
10909
10910 * regcache.c (write_sp): Delete function and references.
10911 * inferior.h (write_sp): Delete declaration.
10912 * valops.c (hand_function_call): Replace write_sp with
10913 TARGET_WRITE_SP.
10914 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10915 (sparc_pop_frame): Ditto.
10916
10917 2003-03-27 Andrew Cagney <cagney@redhat.com>
10918
10919 * NEWS: Mention removal of support for hppa*-*-bsd* and
10920 hppa*-*-osf* natives, and hppa*-*-pro* target.
10921 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10922 * config/pa/xm-pa.h: Obsolete file.
10923 * config/pa/xm-hppab.h: Obsolete file.
10924 * config/pa/nm-hppab.h: Obsolete file.
10925 * config/pa/tm-hppab.h: Obsolete file.
10926 * config/pa/tm-hppao.h: Obsolete file.
10927 * config/pa/nm-hppao.h: Obsolete file.
10928 * config/pa/tm-pro.h: Obsolete file.
10929 * config/pa/hppaosf.mt: Obsolete file.
10930 * config/pa/hppaosf.mh: Obsolete file.
10931 * config/pa/hppapro.mt: Obsolete file.
10932 * config/pa/hppabsd.mt: Obsolete file.
10933 * config/pa/hppabsd.mh: Obsolete file.
10934 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10935 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10936 hppa*-*-osf*.
10937
10938 2003-03-27 Andrew Cagney <cagney@redhat.com>
10939
10940 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10941 push_arguments. Don't set push_return_address or write_sp.
10942 (d10v_push_dummy_call): Replace d10v_push_arguments.
10943 (d10v_push_return_address, d10v_write_sp): Delete function,
10944 handled by push_dummy_call.
10945
10946 2003-03-26 Andrew Cagney <cagney@redhat.com>
10947
10948 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10949 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10950 regcache and dummy_addr parameters.
10951 * gdbarch.h, gdbarch.c: Re-generate.
10952 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10953 available; assume it will handle stack alignment and return
10954 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10955 legacy_push_arguments.
10956 (legacy_push_arguments): Rename default_push_arguments.
10957 * value.h (legacy_push_arguments): Rename default_push_arguments.
10958 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10959 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10960 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10961 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10962 * config/i386/tm-symmetry.h: Update.
10963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10964 * x86-64-tdep.c (x86_64_init_abi): Update.
10965 * v850-tdep.c (v850_gdbarch_init): Update.
10966 * sparc-tdep.c (sparc_gdbarch_init): Update.
10967 * sh-tdep.c (sh_gdbarch_init): Update.
10968 * s390-tdep.c (s390_gdbarch_init): Update.
10969 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10970 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10971 * mips-tdep.c (mips_gdbarch_init): Update.
10972 * mcore-tdep.c (mcore_gdbarch_init): Update.
10973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10974 * ia64-tdep.c (ia64_gdbarch_init): Update.
10975 * i386-tdep.c (i386_gdbarch_init): Update.
10976 * hppa-tdep.c (hppa_gdbarch_init): Update.
10977 * h8300-tdep.c (h8300_gdbarch_init): Update.
10978 * frv-tdep.c (frv_gdbarch_init): Update.
10979 * d10v-tdep.c (d10v_gdbarch_init): Update.
10980 * cris-tdep.c (cris_gdbarch_init): Update.
10981 * avr-tdep.c (avr_gdbarch_init): Update.
10982 * arm-tdep.c (arm_gdbarch_init): Update.
10983 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10984 * alpha-tdep.c (alpha_gdbarch_init): Update.
10985
10986 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * signals/signals.c (do_target_signal_to_host): Correct realtime
10989 signal range test.
10990
10991 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10992
10993 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10994 (struct sal_chain, map_catch_names): Remove.
10995 (catch_exception_command_1): Don't call
10996 handle_gnu_4_16_catch_command.
10997
10998 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10999
11000 From Mark Dettinger <dettinge@de.ibm.com>:
11001 * dwarf2cfi.c (read_2u): Increment pointer by two.
11002
11003 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * signals/signals.c: Fix typos in last change.
11006
11007 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11008
11009 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11010 not already defined. Use __SIGRTMIN if available.
11011 (target_signal_from_host): Remove SIGRTMIN block.
11012 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11013 the signal is within the realtime range.
11014
11015 2003-03-25 Adam Fedor <fedor@gnu.org>
11016
11017 * Makefile.in (infrun.o): Add $(language_h)
11018 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11019 for language specific trampolines.
11020 * language.h (struct language_defn): Add skip_trampoline.
11021 (skip_language_trampoline): Declare.
11022 * language.c (unk_lang_trampoline, skip_language_trampoline):
11023 New functions.
11024 (unknown_language_defn, auto_language_defn, local_language_defn):
11025 Add ukn_lang_trampoline.
11026 * ada-lang.c (ada_language_defn): Add NULL for language
11027 specific skip_trampoline.
11028 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11029 scm-lang.c: Likewise.
11030 * objc-lang.c (objc_skip_trampoline): New function.
11031 (objc_language_defn): Add objc_skip_trampoline.
11032
11033 2003-03-25 Andrew Cagney <cagney@redhat.com>
11034
11035 * frame.c (get_prev_frame): Delay validating a frame's ID -
11036 non-NULL, didn't go backwards - until an attempt to unwind it to
11037 the previous frame.
11038
11039 2003-03-25 Andrew Cagney <cagney@redhat.com>
11040
11041 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11042 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11043 * gdbarch.h, gdbarch.c: Re-generate.
11044 * config/sparc/tm-sparc.h
11045 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11046 * sparc-tdep.c (sparc_gdbarch_init): Set
11047 deprecated_extra_stack_alignment_needed.
11048 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11050 extra_stack_alignment_needed.
11051 * v850-tdep.c (v850_gdbarch_init): Ditto.
11052 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11053 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11054 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11055 * cris-tdep.c (cris_gdbarch_init): Ditto.
11056 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11058
11059 2003-03-25 Andrew Cagney <cagney@redhat.com>
11060
11061 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11062 STORE_STRUCT_RETURN.
11063 * gdbarch.h, gdbarch.c: Regenerate.
11064 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11065 (d10v_push_arguments): Set the struct return register.
11066 (d10v_gdbarch_init): Update.
11067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11068 * x86-64-tdep.c (x86_64_init_abi): Update.
11069 * vax-tdep.c (vax_gdbarch_init): Update.
11070 * v850-tdep.c (v850_gdbarch_init): Update.
11071 * sparc-tdep.c (sparc_gdbarch_init): Update.
11072 * sh-tdep.c (sh_gdbarch_init): Update.
11073 * s390-tdep.c (s390_gdbarch_init): Update.
11074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11077 * mips-tdep.c (mips_gdbarch_init): Update.
11078 * mcore-tdep.c (mcore_gdbarch_init): Update.
11079 * m68k-tdep.c (m68k_gdbarch_init): Update.
11080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11081 * ia64-tdep.c (ia64_gdbarch_init): Update.
11082 * i386-tdep.c (i386_gdbarch_init): Update.
11083 * hppa-tdep.c (hppa_gdbarch_init): Update.
11084 * h8300-tdep.c (h8300_gdbarch_init): Update.
11085 * frv-tdep.c (frv_gdbarch_init): Update.
11086 * cris-tdep.c (cris_gdbarch_init): Update.
11087 * avr-tdep.c (avr_gdbarch_init): Update.
11088 * arm-tdep.c (arm_gdbarch_init): Update.
11089 * alpha-tdep.c (alpha_gdbarch_init): Update.
11090
11091 2003-03-25 Andrew Cagney <cagney@redhat.com>
11092
11093 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11094 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11095 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11096 * gdbarch.h, gdbarch.c: Regenerate.
11097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11098 call_dummy_stack_adjust_p.
11099 * vax-tdep.c (vax_gdbarch_init): Ditto.
11100 * v850-tdep.c (v850_gdbarch_init): Ditto.
11101 * sh-tdep.c (sh_gdbarch_init): Ditto.
11102 * s390-tdep.c (s390_gdbarch_init): Ditto.
11103 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11104 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11105 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11106 * mips-tdep.c (mips_gdbarch_init): Ditto.
11107 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11108 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11110 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11111 * i386-tdep.c (i386_gdbarch_init): Ditto.
11112 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11113 * frv-tdep.c (frv_gdbarch_init): Ditto.
11114 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11115 * cris-tdep.c (cris_gdbarch_init): Ditto.
11116 * avr-tdep.c (avr_gdbarch_init): Ditto.
11117 * arm-tdep.c (arm_gdbarch_init): Ditto.
11118 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11119 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11120 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11121 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11122 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11123 call_dummy_stack_adjust_p.
11124 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11125 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11126 * sparc-tdep.c (sparc32_push_arguments): Update.
11127 * valops.c (hand_function_call): Update.
11128
11129 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11130
11131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11132 set_gdbarch_char_signed.
11133
11134 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11135
11136 PR cli/548
11137 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11138
11139 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11140
11141 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11142 (_initialize_arm_tdep): Don't set tm_print_insn.
11143
11144 2003-03-24 Adam Fedor <fedor@gnu.org>
11145
11146 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11147 * objc-lang.h: Add multiple inclusion protection.
11148 (start_msglist, add_msglist, end_msglist): Additional declarations.
11149
11150 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11151
11152 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11153 value was renamed to ARM_FLOAT_SOFT_FPA.
11154
11155 2003-03-23 Andrew Cagney <cagney@redhat.com>
11156
11157 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11158 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11159 * gdbarch.h, gdbarch.c: Regenerate.
11160 * valops.c (hand_function_call): Update.
11161 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11162 * frame.c (legacy_saved_regs_this_id): Update.
11163 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11164 * dummy-frame.h: Update.
11165 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11166 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11167 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11168 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11169 * config/m68k/tm-sun3.h: Update.
11170 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11172 * x86-64-tdep.c (x86_64_init_abi): Update.
11173 * vax-tdep.c (vax_gdbarch_init): Update.
11174 * v850-tdep.c (v850_gdbarch_init): Update.
11175 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11176 * sh-tdep.c (sh_gdbarch_init): Update.
11177 * s390-tdep.c (s390_gdbarch_init): Update.
11178 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11179 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11180 (frame_get_saved_regs): Update.
11181 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11184 * mips-tdep.c (mips_gdbarch_init): Update.
11185 * mcore-tdep.c (mcore_gdbarch_init): Update.
11186 * m68k-tdep.c (m68k_gdbarch_init): Update.
11187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11188 * ia64-tdep.c (ia64_gdbarch_init): Update.
11189 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11190 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11191 (i386_interix_back_one_frame): Update.
11192 * hppa-tdep.c (hppa_gdbarch_init): Update.
11193 (hppa_init_extra_frame_info): Update.
11194 * h8300-tdep.c (h8300_gdbarch_init): Update.
11195 * frv-tdep.c (frv_gdbarch_init): Update.
11196 * cris-tdep.c (cris_gdbarch_init): Update.
11197 * avr-tdep.c (avr_gdbarch_init): Update.
11198 * arm-tdep.c (arm_gdbarch_init): Update.
11199 * alpha-tdep.c (alpha_gdbarch_init): Update.
11200
11201 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11202
11203 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11204 (arm_get_fp_model): Declare.
11205 * arm-tdep.c (fp_model_strings): New string array.
11206 (arm_fp_model, current_fp_model): New variables.
11207 (arm_get_fp_model): New function.
11208 (arm_set_fp): New function.
11209 (set_fp_model_sfunc): New function.
11210 (show_fp_model): New function.
11211 (_initialize_arm_tdep): Add new command to set/show the FPU.
11212 (arm_extract_return_value): Use arm_get_fp_model.
11213 (arm_store_return_value): Likewise.
11214 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11215 to initialize the floating-point data types.
11216 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11217 model is FPA.
11218
11219 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11220
11221 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11222 the current setting of each value.
11223 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11224 new_set and new_show. Use add_setshow_cmd_full and
11225 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11226 commands and add new version as subcommands of "set/show arm".
11227
11228 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11229
11230 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11231 (set_arm_command, show_arm_command): New functions.
11232 (_initialize_arm_tdep): Add them.
11233 (num_disassembly_options): Renamed from num_flavor_options.
11234 (valid_disassembly_styles): Renamed from valid_flavors.
11235 (disassembly_style): Renamed from disassembly_flavor.
11236 (set_disassembly_style_sfunc): Renamed from
11237 set_disassembly_flavor_sfunc.
11238 (set_disassembly_style): Renamed from set_disassembly_flavor.
11239 (arm_othernames): Updated.
11240 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11241 command. Add "set/show arm disassembly" commands. Deprecate
11242 "othernames" command.
11243
11244 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11245
11246 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11247 (arm-tdep.o): Depend on elf_arm_h.
11248
11249 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11250
11251 * Makefile.in (coff_internal_h): Define.
11252 (arm-tdep.o): Update dependencies.
11253
11254 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11255
11256 * arm-tdep.c (prologue_cache): Delete.
11257 (check_prologue_cache, save_prologue_cache): Delete.
11258 (arm_scan_prologue): Don't check or update the prologue_cache.
11259 (arm_gdb_arch_init): Don't initialize it.
11260 (_initialize_arm_tdep): Likewise.
11261
11262 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11263
11264 * MAINTAINERS (tui): Maintainer of tui code.
11265
11266 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11267
11268 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11269 (i386-cygwin-tdep.o): Add dependencies.
11270 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11271 * i386-cygwin-tdep.c: New file.
11272 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11273 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11274
11275 2003-03-20 Andrew Cagney <cagney@redhat.com>
11276
11277 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11278 (handle_inferior_event): Remove code calling
11279 DYNAMIC_TRAMPOLINE_NEXTPC.
11280
11281 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11282 already has a full path.
11283
11284 * main.c (gdb_main): Return 1.
11285 (captured_main): Call error to report an invalid interpreter.
11286
11287 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11288 * alpha-osf1-tdep.c: Include "gdb_string.h".
11289
11290 2003-03-19 J. Brobecker <brobecker@gnat.com>
11291
11292 Continuing work to convert the hppa targets to multiarch partial.
11293
11294 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11295 method, now that hppa_push_dummy_frame has a conformant prototype.
11296 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11297 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11298 for the switch to multiarch partial.
11299
11300 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11301
11302 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11303 when iss is issNull.
11304
11305 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11306
11307 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11308 NUM_REGS bounds check.
11309
11310 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11311
11312 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11313 * mips-tdep.c (gdb_assert.h): Include.
11314 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11315 (mips_register_name): Handle integer registers explicitly. Add
11316 bounds checking.
11317 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11318 (mips_lsi33k_reg_names): Don't list integer registers; they're
11319 handled by mips_register_name() now.
11320 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11321 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11322 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11323 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11324 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11325
11326 2003-03-18 Andrew Cagney <cagney@redhat.com>
11327
11328 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11329 a void pointer.
11330 * gdbtypes.h (print_scalar_formatted): Update declaration.
11331 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11332
11333 2003-03-18 J. Brobecker <brobecker@gnat.com>
11334
11335 * infrun.c (observer.h): Add #include.
11336 (normal_stop): Add call to observer_notify_normal_stop.
11337 * Makefile.in (infrun.o): Add dependency on observer.h.
11338
11339 2003-03-18 J. Brobecker <brobecker@gnat.com>
11340
11341 Continuing work to convert the hppa targets to multiarch partial.
11342 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11343 parameter. Reformat comment.
11344 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11345 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11346 to match new profile.
11347
11348 2003-03-18 J. Brobecker <brobecker@gnat.com>
11349
11350 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11351 appear to be working in any case.
11352
11353 2003-03-18 J. Brobecker <brobecker@gnat.com>
11354
11355 * observer.c (observer_test_first_observer): New static variable.
11356 (observer_test_second_observer): Likewise.
11357 (observer_test_third_observer): Likewise.
11358 (observer_test_first_notification_function): New static function.
11359 (observer_test_second_notification_function): Likewise.
11360 (observer_test_third_notification_function): Likewise.
11361
11362 2003-03-17 J. Brobecker <brobecker@gnat.com>
11363
11364 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11365 * somsolib.c (gdb_assert.h): Likewise.
11366 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11367 (somsolib.o): Likewise.
11368
11369 2003-03-17 Andrew Cagney <cagney@redhat.com>
11370
11371 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11372 BFD. Simplify setting of di.endian.
11373
11374 2003-03-17 Andrew Cagney <cagney@redhat.com>
11375
11376 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11377 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11378
11379 From Elena Zannoni <ezannoni@redhat.com>
11380 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11381 vector and floating-point parameters.
11382 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11383 convention.
11384 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11385
11386 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11387
11388 * MAINTAINERS: Remove my name from several maintainership roles.
11389
11390 2003-03-17 Andrew Cagney <cagney@redhat.com>
11391
11392 Fix frame off-by-one bug.
11393 * frame-unwind.h (frame_this_id_ftype): Replace
11394 frame_unwind_id_ftype.
11395 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11396 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11397 with "prev_register".
11398 * frame-unwind.c (frame_unwind_find_by_pc): Return
11399 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11400 comment.
11401 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11402 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11403 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11404 (dummy_frame_unwind): Update.
11405 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11406 sentinel_frame_register_unwind.
11407 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11408 (sentinel_frame_unwinder): Update.
11409 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11410 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11411 * frame.c (create_sentinel_frame): Update. Initialize
11412 "prologue_cache" instead of "unwind_cache".
11413 (frame_register_unwind): Call this frame's prev_register with the
11414 next frame and this frame's prologue cache.
11415 (get_prev_frame): Simplify. Always call prev frame's this_id with
11416 this frame and prev frame's prologue cache. Document that this
11417 call is shifted one to the left when compared to the
11418 frame_register_unwind call.
11419 (legacy_saved_regs_prev_register): Replace
11420 frame_saved_regs_register_unwind.
11421 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11422 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11423 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11424 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11425 (d10v_frame_unwind): Update.
11426 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11427 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11428 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11429 "saved_regs" with "this_saved_regs".
11430
11431 2003-03-16 Andrew Cagney <cagney@redhat.com>
11432
11433 * frame.c (frame_pop): Don't call target_store_registers. Fix
11434 problem reported by Mark Kettenis.
11435
11436 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11437
11438 * i386-tdep.c (i386_register_type): Renamed from
11439 i386_register_virtual_type. Adjust function signature.
11440 (i386_gdbarch_init): Set register_type instead of
11441 deprecated_max_register_raw_size,
11442 deprecated_max_register_virtual_size and register_virtual_type.
11443
11444 2003-03-14 Andrew Cagney <cagney@redhat.com>
11445
11446 * frame.c (get_prev_frame): When a legacy frame, always call
11447 legacy_get_prev_frame. Simplify unwind code using assumption that
11448 the unwinder is new.
11449 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11450 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11451 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11452
11453 2003-03-14 Andrew Cagney <cagney@redhat.com>
11454
11455 * frame.c (get_saved_register): Delete function.
11456 * frame.h (get_saved_register): Delete declaration.
11457 * xstormy16-tdep.c: Update comment.
11458 * regcache.h: Update comments.
11459 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11460 get_saved_register and extract_address, use
11461 frame_read_unsigned_register.
11462 (sparc_frame_saved_pc): Ditto.
11463 (sparc_get_saved_register): Instead of get_saved_register, use
11464 frame_register.
11465 (sparc_pop_frame): Ditto.
11466 * findvar.c: Update comments.
11467 (value_of_register): Call frame_register instead of
11468 get_saved_register.
11469 (value_from_register): Ditto.
11470 * config/sparc/tm-sparc.h: Update comment.
11471 * breakpoint.c: Update comment.
11472
11473 2003-03-14 Andrew Cagney <cagney@redhat.com>
11474
11475 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11476 GET_SAVED_REGISTER.
11477 * gdbarch.h, gdbarch.c: Re-generate.
11478 * frame.h: Update comments.
11479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11480 * x86-64-tdep.c (x86_64_init_abi): Update.
11481 * sparc-tdep.c (sparc_gdbarch_init): Update.
11482 * sh-tdep.c (sh_gdbarch_init): Update.
11483 * mips-tdep.c (mips_gdbarch_init): Update.
11484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11485 * cris-tdep.c (cris_gdbarch_init): Update.
11486 * ia64-tdep.c (ia64_gdbarch_init): Update.
11487 * frame.c (frame_register): Update.
11488 (get_saved_register): Update.
11489 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11490
11491 2003-03-13 Andrew Cagney <cagney@redhat.com>
11492
11493 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11494 * gdbarch.h, gdbarch.c: Regenerate.
11495 * valops.c (hand_function_call): Update comment.
11496 * stack.c (return_command): Update comment.
11497 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11498 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11500 * x86-64-tdep.c (x86_64_init_abi): Update.
11501 * vax-tdep.c (vax_gdbarch_init): Update.
11502 * v850-tdep.c (v850_gdbarch_init): Update.
11503 * sparc-tdep.c (sparc_gdbarch_init): Update.
11504 * sh-tdep.c (sh_gdbarch_init): Update.
11505 * s390-tdep.c (s390_gdbarch_init): Update.
11506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11507 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11508 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11509 * mips-tdep.c (mips_gdbarch_init): Update.
11510 * mcore-tdep.c (mcore_gdbarch_init): Update.
11511 * m68k-tdep.c (m68k_gdbarch_init): Update.
11512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11513 * ia64-tdep.c (ia64_gdbarch_init): Update.
11514 * i386-tdep.c (i386_gdbarch_init): Update.
11515 * hppa-tdep.c (hppa_gdbarch_init): Update.
11516 * h8300-tdep.c (h8300_gdbarch_init): Update.
11517 * frv-tdep.c (frv_gdbarch_init): Update.
11518 * cris-tdep.c (cris_gdbarch_init): Update.
11519 * avr-tdep.c (avr_gdbarch_init): Update.
11520 * arm-tdep.c (arm_gdbarch_init): Update.
11521 * alpha-tdep.c (alpha_gdbarch_init): Update.
11522
11523 2003-03-13 Andrew Cagney <cagney@redhat.com>
11524
11525 * frame.c (legacy_frame_p): New function.
11526 (get_prev_frame): Use legacy_frame_p.
11527 * frame.h (legacy_frame_p): Declare.
11528
11529 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11530
11531 * MAINTAINERS (write after approval): Alphabetically
11532 listing corrected.
11533
11534 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11535
11536 * MAINTAINERS (write after approval): Add myself.
11537
11538 2003-03-12 Andrew Cagney <cagney@redhat.com>
11539
11540 * frame.c (get_prev_frame): Rename the frame parameter to
11541 "this_frame".
11542 (get_next_frame, legacy_get_prev_frame): Ditto.
11543
11544 2003-03-12 Andrew Cagney <cagney@redhat.com>
11545
11546 * frame.c (get_current_frame): Check target_has_registers before
11547 checking target_has_stack.
11548 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11549 instead of deprecated_selected_frame.
11550 * findvar.c (value_of_register): Pass "frame", not
11551 deprecated_selected_frame, to value_of_builtin_reg.
11552
11553 2003-03-12 Andrew Cagney <cagney@redhat.com>
11554
11555 * regcache.c (regcache_cooked_write_signed): New function.
11556 (regcache_cooked_write_unsigned): New function.
11557 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11558 (regcache_cooked_read_signed): Fix regnum in range assertion.
11559 * regcache.h (regcache_cooked_write_signed): Declare.
11560 (regcache_cooked_write_unsigned): Declare.
11561
11562 2003-03-12 Andrew Cagney <cagney@redhat.com>
11563
11564 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11565 * gdbarch.h, gdbarch.c: Re-generate.
11566 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11567 * x86-64-tdep.h: Update.
11568 * x86-64-tdep.c (x86_64_init_abi): Update.
11569 * v850-tdep.c (v850_gdbarch_init): Update.
11570 * sparc-tdep.c (sparc_gdbarch_init): Update.
11571 * sh-tdep.c (sh_gdbarch_init): Update.
11572 * s390-tdep.c (s390_gdbarch_init): Update.
11573 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11574 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11575 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11576 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11577 * mips-tdep.c (mips_gdbarch_init): Update.
11578 * mcore-tdep.c (mcore_gdbarch_init): Update.
11579 * m68k-tdep.c (m68k_gdbarch_init): Update.
11580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11581 * ia64-tdep.c (ia64_gdbarch_init): Update.
11582 * i386-tdep.c (i386_gdbarch_init): Update.
11583 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11584 * hppa-tdep.c (hppa_gdbarch_init): Update.
11585 * h8300-tdep.c (h8300_gdbarch_init): Update.
11586 * frv-tdep.c (frv_gdbarch_init): Update.
11587 * cris-tdep.c (cris_gdbarch_init): Update.
11588 * avr-tdep.c (avr_gdbarch_init): Update.
11589 * arm-tdep.c (arm_gdbarch_init): Update.
11590 * alpha-tdep.c (alpha_gdbarch_init): Update.
11591 * sh-tdep.c (sh_init_extra_frame_info): Update.
11592 (sh64_init_extra_frame_info): Update.
11593 * ns32knbsd-nat.c (frame_num_args): Update.
11594 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11595 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11596 (xstormy16_frame_chain_valid): Update.
11597 * vax-tdep.c (vax_saved_pc_after_call): Update.
11598 * v850-tdep.c (v850_frame_chain): Update.
11599 (v850_pop_frame): Update.
11600 (v850_init_extra_frame_info): Update.
11601 * sparc-tdep.c (setup_arbitrary_frame): Update.
11602 * ns32k-tdep.c (umax_frame_num_args): Update.
11603 * s390-tdep.c (s390_pop_frame_regular): Update.
11604 * mn10300-tdep.c (mn10300_frame_chain): Update.
11605 (mn10300_pop_frame_regular): Update.
11606 (mn10300_init_extra_frame_info): Update.
11607 * mips-tdep.c (mips_init_frame_pc_first): Update.
11608 (mips_frame_chain): Update.
11609 (mips_pop_frame): Update.
11610 * mcore-tdep.c (mcore_frame_chain): Update.
11611 (mcore_pop_frame): Update.
11612 (mcore_init_extra_frame_info): Update.
11613 * arch-utils.c (init_frame_pc_default): Update.
11614 * m68k-tdep.c (isi_frame_num_args): Update.
11615 (delta68_frame_num_args): Update.
11616 (news_frame_num_args): Update.
11617 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11618 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11619 (alpha_frame_chain): Update.
11620 (alpha_pop_frame): Update.
11621 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11622 (hppa_init_extra_frame_info): Update.
11623 (hppa_frame_chain): Update.
11624 (hppa_frame_chain_valid): Update.
11625 * cris-tdep.c (cris_init_extra_frame_info): Update.
11626 * avr-tdep.c (avr_init_extra_frame_info): Update.
11627 * arm-tdep.c (arm_frame_chain_valid): Update.
11628 (arm_init_extra_frame_info): Update.
11629 (arm_pop_frame): Update.
11630 * frame.c (frame_pc_unwind): Update.
11631 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11632 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11633 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11634 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11635 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11636 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11637
11638 2003-03-12 Andrew Cagney <cagney@redhat.com>
11639
11640 Eliminate the need for POP_FRAME.
11641 * frame.c (do_frame_unwind_register): New function.
11642 (frame_pop): When no POP_FRAME, pop the frame using register
11643 unwind and a scratch regcache.
11644 (frame_saved_regs_pop): Delete function.
11645 (trad_frame_unwinder): Update.
11646 * d10v-tdep.c (d10v_frame_pop): Delete function.
11647 (d10v_frame_unwind): Update.
11648 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11649 (sentinel_frame_unwinder): Update.
11650 * dummy-frame.c (dummy_frame_pop): Delete function.
11651 (dummy_frame_unwind): Update.
11652 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11653 (struct frame_unwind): Update.
11654
11655 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11656
11657 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11658 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11659 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11660 Do range checks on register number obtained from debugging info.
11661 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11662 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11663 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11664 mapping function.
11665 (do_fp_register_row): Fix typo which caused double type to be
11666 used when attempting to unpack a float.
11667
11668 2003-03-11 J. Brobecker <brobecker@gnat.com>
11669
11670 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11671
11672 2003-03-11 Andrew Cagney <cagney@redhat.com>
11673
11674 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11675 frame. Problem found by Corinna Vinschen.
11676
11677 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11678
11679 * doublest.c (floatformat_from_length): Accept also
11680 the real size of 'long double' type.
11681
11682 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11683
11684 From Klee Dienes <kdienes@apple.com>:
11685 * breakpoint.c (bpstat_copy): Copy the command lines as well
11686 as the old value, to match what is freed in bpstat_clear.
11687
11688 2003-03-10 David Carlton <carlton@math.stanford.edu>
11689
11690 * minsyms.c (add_minsym_to_hash_table): Replace
11691 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11692 (compare_minimal_symbols, compact_minimal_symbols)
11693 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11694 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11695 of DEPRECATED_SYMBOL_MATCHES_NAME.
11696 (lookup_minimal_symbol_solib_trampoline): Ditto.
11697
11698 2003-03-10 Andrew Cagney <cagney@redhat.com>
11699
11700 * regcache.h (regcache_cooked_read_ftype): Define.
11701 (regcache_save, regcache_restore): Add a cooked_read parameter.
11702 * regcache.c (regcache_save, regcache_restore): Update.
11703 (do_cooked_read): New function.
11704 (regcache_cpy): Pass do_cooked_read to regcache_save and
11705 regcache_restore.
11706
11707 2003-03-10 Andrew Cagney <cagney@redhat.com>
11708
11709 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11710 * gdbarch.h, gdbarch.c: Re-generate.
11711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11712 * x86-64-tdep.h: Update.
11713 * x86-64-tdep.c (x86_64_init_abi): Update.
11714 * v850-tdep.c (v850_gdbarch_init): Update.
11715 * sparc-tdep.c (sparc_gdbarch_init): Update.
11716 * sh-tdep.c (sh_gdbarch_init): Update.
11717 * s390-tdep.c (s390_gdbarch_init): Update.
11718 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11719 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11720 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11721 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11722 * mips-tdep.c (mips_gdbarch_init): Update.
11723 * mcore-tdep.c (mcore_gdbarch_init): Update.
11724 * m68k-tdep.c (m68k_gdbarch_init): Update.
11725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11726 * ia64-tdep.c (ia64_gdbarch_init): Update.
11727 * i386-tdep.c (i386_gdbarch_init): Update.
11728 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11729 * hppa-tdep.c (hppa_gdbarch_init): Update.
11730 * h8300-tdep.c (h8300_gdbarch_init): Update.
11731 * frv-tdep.c (frv_gdbarch_init): Update.
11732 * cris-tdep.c (cris_gdbarch_init): Update.
11733 * avr-tdep.c (avr_gdbarch_init): Update.
11734 * arm-tdep.c (arm_gdbarch_init): Update.
11735 * alpha-tdep.c (alpha_gdbarch_init): Update.
11736 * sh-tdep.c (sh_init_extra_frame_info): Update.
11737 (sh64_init_extra_frame_info): Update.
11738 * ns32knbsd-nat.c (frame_num_args): Update.
11739 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11740 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11741 (xstormy16_frame_chain_valid): Update.
11742 * vax-tdep.c (vax_saved_pc_after_call): Update.
11743 * v850-tdep.c (v850_frame_chain): Update.
11744 (v850_pop_frame): Update.
11745 (v850_init_extra_frame_info): Update.
11746 * sparc-tdep.c (setup_arbitrary_frame): Update.
11747 * ns32k-tdep.c (umax_frame_num_args): Update.
11748 * s390-tdep.c (s390_pop_frame_regular): Update.
11749 * mn10300-tdep.c (mn10300_frame_chain): Update.
11750 (mn10300_pop_frame_regular): Update.
11751 (mn10300_init_extra_frame_info): Update.
11752 * mips-tdep.c (mips_init_frame_pc_first): Update.
11753 (mips_frame_chain): Update.
11754 (mips_pop_frame): Update.
11755 * mcore-tdep.c (mcore_frame_chain): Update.
11756 (mcore_pop_frame): Update.
11757 (mcore_init_extra_frame_info): Update.
11758 * arch-utils.c (init_frame_pc_default): Update.
11759 * m68k-tdep.c (isi_frame_num_args): Update.
11760 (delta68_frame_num_args): Update.
11761 (news_frame_num_args): Update.
11762 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11763 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11764 (alpha_frame_chain): Update.
11765 (alpha_pop_frame): Update.
11766 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11767 (hppa_init_extra_frame_info): Update.
11768 (hppa_frame_chain): Update.
11769 (hppa_frame_chain_valid): Update.
11770 * cris-tdep.c (cris_init_extra_frame_info): Update.
11771 * avr-tdep.c (avr_init_extra_frame_info): Update.
11772 * arm-tdep.c (arm_frame_chain_valid): Update.
11773 (arm_init_extra_frame_info): Update.
11774 (arm_pop_frame): Update.
11775 * frame.c (frame_pc_unwind): Update.
11776 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11777 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11778 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11779 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11780 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11781 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11782
11783 2003-03-10 Andrew Cagney <cagney@redhat.com>
11784
11785 * gdbarch.sh (gdbarch_unwind_pc): New method.
11786 * gdbarch.h, gdbarch.c: Regenerate.
11787 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11788 but use read_pc and FRAME_SAVED_PC as fall backs.
11789 (frame_saved_regs_pc_unwind): Delete function.
11790 (trad_frame_unwinder): Update.
11791 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11792 (struct frame_unwind): Update.
11793 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11794 (dummy_frame_unwind): Update.
11795 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11796 (sentinel_frame_unwinder): Update.
11797 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11798 (d10v_frame_unwind): Update.
11799 (d10v_unwind_pc): New function.
11800 (d10v_gdbarch_init): Set unwind_pc.
11801
11802 2003-03-10 Andrew Cagney <cagney@redhat.com>
11803
11804 * gdbarch.h: Re-generate.
11805
11806 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11807 PC.
11808 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11809 the PC register.
11810
11811 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11812
11813 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11814
11815 2003-03-08 Andrew Cagney <cagney@redhat.com>
11816
11817 * cli-out.c: Update copyright.
11818 (cli_out_data): Define typedef. Use instead of ui_out_data.
11819
11820 2003-03-08 Andrew Cagney <cagney@redhat.com>
11821
11822 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11823 the result.
11824
11825 2003-03-07 Andrew Cagney <cagney@redhat.com>
11826
11827 * gdbarch.sh: Don't generate two macro definitions when an
11828 undefined macro taking no arguments.
11829 * gdbarch.h: Regenerate.
11830
11831 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11832
11833 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11834 (x86_64_unwind_dummy_id): New functions.
11835 (x86_64_init_abi): Register these two new functions.
11836
11837 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11838
11839 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11840 (x86_64_skip_prologue): Move prologue detection to
11841 separate function.
11842 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11843
11844 2003-03-05 Andrew Cagney <cagney@redhat.com>
11845
11846 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11847 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11848 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11849 to use unwind_dummy_id when a dummy frame.
11850 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11851 predicate.
11852 * gdbarch.h, gdbarch.c: Regneerate.
11853
11854 2003-03-05 Andrew Cagney <cagney@redhat.com>
11855
11856 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11857 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11858 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11859 values.
11860
11861 2003-03-05 Andrew Cagney <cagney@redhat.com>
11862
11863 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11864 (struct d10v_unwind_cache): Delete field "frameless". Replace
11865 "next_addr" with "sp_offset". Add "r11_offset".
11866 (d10v_frame_unwind_cache): Update.
11867 (prologue_find_regs): Update. When "mv r11, sp", save the
11868 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11869 RN was saved in r11_offset.
11870
11871 2003-03-05 Andrew Cagney <cagney@redhat.com>
11872
11873 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11874 cached PC value in the next frame.
11875
11876 2003-03-05 Andrew Cagney <cagney@redhat.com>
11877
11878 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11879 "id_unwind_cache" with "id".
11880 (frame_id_unwind): Delete declaration.
11881 * frame.c (frame_id_unwind): Delete function.
11882 (get_prev_frame): Call the frame id unwind method directly. Store
11883 the returned next frame's ID value in NEXT_FRAME. Note that there
11884 is a problem with the wrong unwind ID being called with the wrong
11885 unwind cache.
11886
11887 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11888
11889 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11890
11891 2003-03-05 James Ingham <jingham@apple.com>
11892 Daniel Jacobowitz <drow@mvista.com>
11893
11894 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11895 (auto_cp_abi): New variable.
11896 (current_cp_abi, num_cp_abis): Make static.
11897 (CP_ABI_MAX): Define.
11898 (cp_abis): Turn into an array.
11899 (value_virtual_fn_field): Fix formatting.
11900 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11901 takes a pointer.
11902 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11903 (list_cp_abis, _initialize_cp_abi): New functions.
11904 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11905 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11906 switch_to_cp_abi. Update prototype for register_cp_abi.
11907 * Makefile.in (cp-abi.o): Update dependencies.
11908 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11909 instead of switch_to_cp_abi.
11910 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11911 register_cp_abi.
11912 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11913 register_cp_abi.
11914 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11915
11916 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11917
11918 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11919 * dwarf2loc.c: Include "regcache.h".
11920 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11921 register_size.
11922 * Makefile.in (dwarf2loc.o): Update dependencies.
11923
11924 2003-03-04 Theodore A. Roth <troth@openavr.org>
11925
11926 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11927 number of io registers reported by remote target is not a multiple of
11928 step.
11929
11930 2003-03-04 David Carlton <carlton@math.stanford.edu>
11931
11932 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11933 (lookup_symbol_aux_psymtabs): Update call to
11934 lookup_partial_symbol.
11935 (lookup_transparent_type, find_main_psymtab)
11936 (make_symbol_overload_list): Ditto.
11937
11938 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11939
11940 * MAINTAINERS (Write after approval): Update my email address.
11941
11942 2003-03-03 Andrew Cagney <cagney@redhat.com>
11943
11944 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11945 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11946 predicate. Replace MAX_REGISTER_RAW_SIZE.
11947 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11948 MAX_REGISTER_VIRTUAL_SIZE.
11949 * regcache.c (legacy_max_register_raw_size): New function.
11950 (legacy_max_register_virtual_size): New function.
11951 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11952 (MAX_REGISTER_RAW_SIZE): Define.
11953 (legacy_max_register_raw_size): Declare.
11954 (legacy_max_register_virtual_size): Declare.
11955 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11956 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11957 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11958 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11959 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11960 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11961 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11962 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11963 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11965 * vax-tdep.c (vax_gdbarch_init): Update.
11966 * v850-tdep.c (v850_gdbarch_init): Update.
11967 * sparc-tdep.c (sparc_gdbarch_init): Update.
11968 * sh-tdep.c (sh_gdbarch_init): Update.
11969 * s390-tdep.c (s390_gdbarch_init): Update.
11970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11971 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11973 * mips-tdep.c (mips_gdbarch_init): Update.
11974 * mcore-tdep.c (mcore_gdbarch_init): Update.
11975 * m68k-tdep.c (m68k_gdbarch_init): Update.
11976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11977 * ia64-tdep.c (ia64_gdbarch_init): Update.
11978 * i386-tdep.c (i386_gdbarch_init): Update.
11979 * hppa-tdep.c (hppa_gdbarch_init): Update.
11980 * h8300-tdep.c (h8300_gdbarch_init): Update.
11981 * frv-tdep.c (frv_gdbarch_init): Update.
11982 * cris-tdep.c (cris_gdbarch_init): Update.
11983 * avr-tdep.c (avr_gdbarch_init): Update.
11984 * arm-tdep.c (arm_gdbarch_init): Update.
11985 * alpha-tdep.c (alpha_gdbarch_init): Update.
11986 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11987 max_register_raw_size or max_register_virtual_size.
11988
11989 2003-03-03 David Carlton <carlton@math.stanford.edu>
11990
11991 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11992 SYMBOL_MATCHES_NAME, add comment.
11993 (SYMBOL_MATCHES_NATURAL_NAME): New.
11994 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11995 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11996 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11997 * symtab.c (lookup_partial_symbol): Use
11998 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11999 unhelpful comment.
12000 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12001 SYMBOL_MATCHES_NAME.
12002 Fix for PR c++/33.
12003
12004 2003-03-03 David Carlton <carlton@math.stanford.edu>
12005
12006 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12007 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12008 by regexp matching against SYMBOL_NATURAL_NAME.
12009
12010 2003-03-03 David Carlton <carlton@math.stanford.edu>
12011
12012 * linespec.c (find_method): Extract code into collect_methods.
12013 (collect_methods): New.
12014
12015 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12016
12017 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12018 get_frame_base.
12019
12020 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12021 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12022
12023 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12024
12025 * arch-utils.c (generic_register_byte): Fix to use the loop index
12026 and not regnum when summing the size of all registers up to regnum.
12027
12028 2003-03-01 Andrew Cagney <cagney@redhat.com>
12029
12030 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12031 FRAME_INIT_SAVED_REGS.
12032 * gdbarch.h, gdbarch.c: Regenerate.
12033 * stack.c (frame_info): Update.
12034 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12035 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12036 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12037 * ns32k-tdep.c (ns32k_pop_frame): Update.
12038 * mips-tdep.c (mips_pop_frame): Update.
12039 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12040 * ia64-tdep.c (ia64_frame_chain): Update.
12041 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12042 (ia64_frameless_function_invocation): Update.
12043 (ia64_init_extra_frame_info): Update.
12044 (ia64_pop_frame_regular): Update.
12045 * frame.h (struct frame_info): Update comment.
12046 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12047 * frame.c (frame_saved_regs_register_unwind): Update.
12048 (frame_saved_regs_register_unwind): Update.
12049 (deprecated_generic_get_saved_register): Update.
12050 * cris-tdep.c: Update comment.
12051 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12052 Rename macro.
12053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12054 * x86-64-tdep.c (x86_64_init_abi): Update.
12055 * vax-tdep.c (vax_gdbarch_init): Update.
12056 * v850-tdep.c (v850_gdbarch_init): Update.
12057 * sparc-tdep.c (sparc_gdbarch_init): Update.
12058 * sh-tdep.c (sh_gdbarch_init): Update.
12059 * s390-tdep.c (s390_gdbarch_init): Update.
12060 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12061 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12062 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12063 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12064 * mips-tdep.c (mips_gdbarch_init): Update.
12065 * mcore-tdep.c (mcore_gdbarch_init): Update.
12066 * m68k-tdep.c (m68k_gdbarch_init): Update.
12067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12068 * ia64-tdep.c (ia64_gdbarch_init): Update.
12069 * i386-tdep.c (i386_gdbarch_init): Update.
12070 * frv-tdep.c (frv_gdbarch_init): Update.
12071 * avr-tdep.c (avr_gdbarch_init): Update.
12072 * arm-tdep.c (arm_gdbarch_init): Update.
12073 * alpha-tdep.c (alpha_gdbarch_init): Update.
12074
12075 2003-03-01 Andrew Cagney <cagney@redhat.com>
12076
12077 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12078 option enum and switch. When no windows, set the interpreter to
12079 INTERP_CONSOLE.
12080
12081 2003-03-01 Andrew Cagney <cagney@redhat.com>
12082
12083 * main.c (captured_main): Replace magic option characters with an
12084 enum.
12085
12086 2003-03-01 Andrew Cagney <cagney@redhat.com>
12087
12088 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12089 INIT_EXTRA_FRAME_INFO.
12090 * gdbarch.h, gdbarch.c: Regenerate.
12091 * arm-tdep.c: Update comments.
12092 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12093 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12094 * frame.h, avr-tdep.c: Ditto.
12095 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12096 (create_new_frame, legacy_get_prev_frame): Ditto.
12097 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12098 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12100 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12101 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12102 * v850-tdep.c (v850_gdbarch_init): Ditto.
12103 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12104 * sh-tdep.c (sh_gdbarch_init): Ditto.
12105 * s390-tdep.c (s390_gdbarch_init): Ditto.
12106 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12107 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12108 * mips-tdep.c (mips_gdbarch_init): Ditto.
12109 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12111 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12112 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12113 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12114 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12115 * frv-tdep.c (frv_gdbarch_init): Ditto.
12116 * cris-tdep.c (cris_gdbarch_init): Ditto.
12117 * avr-tdep.c (avr_gdbarch_init): Ditto.
12118 * arm-tdep.c (arm_gdbarch_init): Ditto.
12119 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12120 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12121
12122 2003-03-01 Andrew Cagney <cagney@redhat.com>
12123
12124 * gdbarch.sh (register_type): New function with predicate.
12125 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12126 * gdbarch.h, gdbarch.c: Re-generate.
12127 * arch-utils.c (generic_register_byte): Use generic_register_size.
12128 (generic_register_size): When available, use
12129 gdbarch_register_type.
12130 * regcache.c (init_regcache_descr): When available, initialize the
12131 register type array using gdbarch_register_type. If the
12132 architecture supplies gdbarch_register_type, do not use the legacy
12133 regcache layout.
12134 * d10v-tdep.c (d10v_register_type): Replace
12135 d10v_register_virtual_type.
12136 (d10v_gdbarch_init): Set register_type instead of
12137 register_virtual_type.
12138
12139 2003-03-01 Andrew Cagney <cagney@redhat.com>
12140
12141 * Makefile.in (ax-gdb.o): Update dependencies.
12142 * ax-gdb.c: Include "regcache.h".
12143 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12144 * findvar.c (value_of_register): Ditto.
12145 * infcmd.c (default_print_registers_info): Ditto.
12146
12147 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12148
12149 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12150 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12151
12152 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12153
12154 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12155 of STREQ.
12156
12157 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12158
12159 * Makefile.in (dwarf2loc.o): Update dependencies.
12160 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12161 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12162 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12163 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12164 (locexpr_tracepoint_var_ref): New function.
12165 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12166
12167 2003-02-28 Andrew Cagney <cagney@redhat.com>
12168
12169 * regcache.c (register_size): New function.
12170 * regcache.h (register_size): Declare
12171 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12172 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12173
12174 2003-02-28 David Carlton <carlton@math.stanford.edu>
12175
12176 * linespec.c (decode_compound): Extract code into find_method.
12177 (find_method): New.
12178
12179 2003-02-28 J. Brobecker <brobecker@gnat.com>
12180
12181 * Makefile.in: Add rules to build and link in observer.o.
12182
12183 2003-02-27 J. Brobecker <brobecker@gnat.com>
12184
12185 * observer.c: Minor comments edits.
12186
12187 2003-02-27 J. Brobecker <brobecker@gnat.com>
12188
12189 * observer.h, observer.c: New file.
12190
12191 2003-02-27 Andrew Cagney <cagney@redhat.com>
12192
12193 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12194
12195 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12196
12197 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12198 (M6812_OP_STS_EXT): Likewise.
12199 (m6811_prologue): Use the above to recognize prologue.
12200 (m6812_prologue): Likewise.
12201
12202 2003-02-27 David Carlton <carlton@math.stanford.edu>
12203
12204 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12205 SYMBOL_PRINT_NAME.
12206 (compare_psymbols): Ditto.
12207 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12208
12209 2003-02-27 Michael Snyder <msnyder@redhat.com>
12210
12211 * f-lang.c (build_fortran_types): New function.
12212 (_initialize_f_language): Gdbarch-register built-in fortran types.
12213 * doublest.c (extract_floating): Fix warning text.
12214
12215 2003-02-27 Andrew Cagney <cagney@redhat.com>
12216
12217 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12218 predicate. Replaces PUSH_DUMMY_FRAME.
12219 * gdbarch.h, gdbarch.c: Regnerate.
12220 * valops.c (hand_function_call): Update. Call
12221 generic_push_dummy_frame directly.
12222 * vax-tdep.c (vax_gdbarch_init): Update.
12223 * sparc-tdep.c (sparc_gdbarch_init): Update.
12224 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12225 * m68k-tdep.c (m68k_gdbarch_init): Update.
12226 * hppa-tdep.c (hppa_gdbarch_init): Update.
12227 * alpha-tdep.c (alpha_gdbarch_init): Update.
12228 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12229 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12230 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12232 push_dummy_frame to generic_push_dummy_frame.
12233 * v850-tdep.c (v850_gdbarch_init): Ditto.
12234 * sh-tdep.c (sh_gdbarch_init): Ditto.
12235 * s390-tdep.c (s390_gdbarch_init): Ditto.
12236 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12238 * mips-tdep.c (mips_gdbarch_init): Ditto.
12239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12241 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12242 * i386-tdep.c (i386_gdbarch_init): Ditto.
12243 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12244 * frv-tdep.c (frv_gdbarch_init): Ditto.
12245 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12246 * cris-tdep.c (cris_gdbarch_init): Ditto.
12247 * avr-tdep.c (avr_gdbarch_init): Ditto.
12248 * arm-tdep.c (arm_gdbarch_init): Ditto.
12249
12250 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12251
12252 * mips-tdep.c (show_mips_abi): New function.
12253 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12254 command ``show mips abi''.
12255
12256 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12257
12258 From Elena Zannoni <ezannoni@redhat.com>
12259 * dbxread.c (process_one_symbol): Only record line 0 if one or
12260 more sline entries have been seen for the function.
12261
12262 2003-02-26 Michael Chastain <mec@shout.net>
12263
12264 * configure: Regenerate with autoconf 000227.
12265
12266 2003-02-26 Michael Chastain <mec@shout.net>
12267
12268 Close PR build/660.
12269 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12270 for old libc5/glibc.
12271 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12272
12273 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12274
12275 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12276 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12277
12278 2003-02-26 Michael Chastain <mec@shout.net>
12279
12280 * configure.in: New variable HAVE_UINTPTR_T.
12281 * configure, config.in: Regenerated.
12282
12283 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12284
12285 Fix PR build/1097.
12286 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12287
12288 2003-02-25 Andrew Cagney <cagney@redhat.com>
12289
12290 * frame.c (get_prev_frame): Add comment on check for
12291 inside_entry_func. Only check for inside_entry_file when not a
12292 dummy and not a sentinel. Check that the new frame is not inner
12293 to the old frame.
12294
12295 2003-02-25 Andrew Cagney <cagney@redhat.com>
12296
12297 * frame.c (frame_debug): New variable.
12298 (_initialize_frame): Add "set/show debug frame" command.
12299 (get_prev_frame): When frame_debug, print reason why unwind
12300 failed.
12301
12302 2003-02-25 Michael Chastain <mec@shout.net>
12303
12304 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12305 to avoid uintptr_t definition problems.
12306
12307 2003-02-25 David Carlton <carlton@math.stanford.edu>
12308
12309 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12310 (SYMBOL_LINKAGE_NAME): Ditto.
12311 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12312 SYMBOL_LINKAGE_NAME.
12313 (struct general_symbol_info): Expand comment.
12314 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12315 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12316 (SYMBOL_MATCHES_REGEXP): Ditto.
12317 * symtab.c (symbol_natural_name): New function.
12318 * objfiles.h: Replace all uses of SYMBOL_NAME by
12319 DEPRECATED_SYMBOL_NAME.
12320 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12321 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12322 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12323 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12324 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12325 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12326 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12327 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12328 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12329 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12330 * ada-exp.y: Ditto.
12331 * ada-exp.y: Update copyright.
12332 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12333 * cp-valprint.c: Ditto.
12334
12335 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12336
12337 * infptrace.c (detach): Do not flag error if ptrace detach fails
12338 and errno is set to ESRCH.
12339
12340 2003-02-24 Andrew Cagney <cagney@redhat.com>
12341
12342 * infptrace.c (udot_info): Change type of udot_off to long. Use
12343 paddr when printing udot_off's value.
12344
12345 2003-02-24 David Carlton <carlton@math.stanford.edu>
12346
12347 * symtab.c (make_symbol_overload_list): Only read in partial
12348 symtabs containing a matching partial symbol.
12349
12350 2003-02-24 David Carlton <carlton@math.stanford.edu>
12351
12352 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12353 do the comparison, not strcmp.
12354 * symfile.c (compare_psymbols): Ditto.
12355 * defs.h: Declare strcmp_iw_ordered.
12356 * utils.c (strcmp_iw_ordered): New function.
12357
12358 2003-02-24 Jim Blandy <jimb@redhat.com>
12359
12360 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12361 support, shared libs): Remove my name from here, to better reflect
12362 reality.
12363
12364 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12365
12366 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12367 (target_ops): Add to_have_continuable_watchpoint.
12368 * target.c (update_current_target): Add INHERIT line for
12369 to_have_continuable_watchpoint.
12370 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12371 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12372 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12373 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12374
12375 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12376
12377 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12378 maintainership.
12379
12380 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12381
12382 * solib.c (solib_open): Call target defined search function after
12383 failing with solib-search-path.
12384 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12385 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12386
12387 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12388
12389 * MAINTAINERS: Add myself to Write After section.
12390
12391 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12392
12393 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12394
12395 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12396
12397 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12398 (m68hc11_add_reggroups): New function.
12399 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12400 (m68hc11_gdbarch_init): Install the reggroups.
12401 (_initialize_m68hc11_tdep): Initialize them.
12402
12403 2003-02-21 James E Wilson <wilson@tuliptree.org>
12404
12405 * MAINTAINERS: Update my email address.
12406
12407 2003-02-21 David Carlton <carlton@math.stanford.edu>
12408
12409 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12410
12411 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12412
12413 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12414 * symtab.h: Add opaque declarations of struct axs_value and
12415 struct agent_expr.
12416 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12417 (struct location_funcs): New type.
12418 (struct symbol): Add "loc" to aux_value.
12419 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12420 * dwarf2read.c: Include "dwarf2expr.h".
12421 (dwarf2_symbol_mark_computed): New function.
12422 (read_func_scope): Use it.
12423 (var_decode_location): New function.
12424 (new_symbol): Use it.
12425 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12426
12427 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12428 (dwarf2expr_h, dwarf2loc_h): New variables.
12429 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12430 (dwarf2expr.o, dwarf2loc.o): New rules.
12431 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12432 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12433 LOC_COMPUTED_ARG.
12434 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12435 * m2-exp.y (yylex): Likewise.
12436 * printcmd.c (address_info, print_frame_args): Likewise.
12437 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12438 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12439 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12440 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12441 * symtab.c (lookup_block_symbol): Likewise.
12442
12443 2003-02-20 Adam Fedor <fedor@gnu.org>
12444
12445 * symtab.h: Remove objc_specific struct
12446 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12447 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12448 Have language_objc use cplus_specific struct.
12449
12450 2003-02-20 Tom Tromey <tromey@redhat.com>
12451
12452 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12453 TYPE_NAME, when printing a String value. PR java/1075.
12454
12455 2003-02-20 Adam Fedor <fedor@gnu.org>
12456
12457 * objc-lang.h (find_methods): Remove declaration.
12458 * objc-lang.c (find_methods): Make static.
12459
12460 2003-02-20 Christopher Faylor <cgf@redhat.com>
12461
12462 * win32-nat.c (get_image_name): Check return value from
12463 ReadProcessMemory.
12464 (child_xfer_memory): Ditto.
12465
12466 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12467
12468 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12469 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12470 '${exec_prefix}' (in addition to the expansion thereof) as
12471 relocatable.
12472 * configure: Rebuilt.
12473
12474 2003-02-20 David Carlton <carlton@math.stanford.edu>
12475
12476 * symtab.c (search_symbols): Revert the search_symbols part of my
12477 2002-12-23 patch. Add comment.
12478
12479 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12480
12481 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12482 * dbxread.c (elfstab_build_psymtabs): Don't call
12483 install_minimal_symbols.
12484 (stabsect_build_psymtabs): Likewise.
12485 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12486 earlier.
12487 * somread.c (som_symfile_read): Call install_minimal_symbols
12488 and do_cleanups earlier.
12489 * nlmread.c (nlm_symfile_read): Likewise.
12490 * mdebugread.c (elfmdebug_build_psymtabs): Call
12491 install_minimal_symbols and make appropriate cleanups.
12492
12493 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12494
12495 * solib.c (reload_shared_libraries): New function.
12496 (_initialize_solib): Add callbacks for ``set solib-search-path''
12497 and ``set solib-absolute-prefix''.
12498
12499 2003-02-20 David Carlton <carlton@math.stanford.edu>
12500
12501 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12502 expand comment.
12503 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12504 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12505 * ada-typeprint.c (ada_typedef_print): Ditto.
12506 * ax-gdb.c (gen_var_ref): Ditto.
12507 * breakpoint.c (print_one_breakpoint): Ditto.
12508 * buildsym.c (finish_block): Ditto.
12509 * c-valprint.c (c_val_print): Ditto.
12510 * expprint.c (print_subexp): Ditto.
12511 * findvar.c (locate_var_value): Ditto.
12512 * infcmd.c (jump_command): Ditto.
12513 * linespec.c (decode_line_2, decode_compound): Ditto.
12514 * maint.c (maintenance_translate_address): Ditto.
12515 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12516 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12517 Ditto.
12518 * p-valprint.c (pascal_val_print): Ditto.
12519 * stabsread.c (define_symbol): Ditto.
12520 * stack.c (print_frame, frame_info, print_block_frame_locals)
12521 (print_frame_arg_vars, return_command): Ditto.
12522 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12523 * symmisc.c (print_symbol): Ditto.
12524 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12525 (compare_search_syms, print_symbol_info, print_msymbol_info)
12526 (rbreak_command): Ditto.
12527 * tracepoint.c (tracepoints_info): Ditto.
12528 * typeprint.c (typedef_print): Ditto.
12529 * valops.c (value_of_variable, hand_function_call): Ditto.
12530 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12531 * ada-typeprint.c: Update Copyright.
12532 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12533 * tracepoint.c, cli/cli-cmds.c: Ditto.
12534
12535 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12536
12537 * frame.c (generic_unwind_get_saved_register): Make non-static.
12538 * frame.h (generic_unwind_get_saved_register): Declare.
12539 * mips-tdep.c (read_next_frame_reg): Fetch register from
12540 current regcache when frame is NULL.
12541 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12542 that must be NULL.
12543 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12544 instead of frame_register_unwind().
12545
12546 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12547
12548 * remote-sim.c (gdbsim_insert_breakpoint)
12549 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12550 code.
12551
12552 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12553
12554 * remote.c (_initialize_remote): Add commands "set/show remote
12555 hardware-watchpoint-limit" and "set/show remote
12556 hardware-breakpoint-limit".
12557 (remote_hw_watchpoint_limit): Initialize to -1.
12558 (remote_hw_breakpoint_limit): Ditto.
12559 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12560
12561 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12562
12563 * coff-pe-read.c: New file - support reading of minimal symbols from a
12564 portable executable using the export table.
12565 * coff-pe-read.h: New file.
12566 * coffread.c: Include coff-pe-read.h.
12567 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12568 debugging symbols found.
12569 * Makefile.in (SFILES): Add coff-pe-read.o.
12570 (coff_pe_read_h): Define.
12571 (COMMON_OBS): Add coff-pe-read.o.
12572 (coffread.o): Add coff_pe_read_h dependency.
12573 (coff-pe-read.o): New target.
12574
12575 2003-02-19 David Carlton <carlton@math.stanford.edu>
12576
12577 * Makefile.in (SFILES): Add block.c.
12578 (block_h): New.
12579 (COMMON_OBS): Add block.o.
12580 (block.o): New.
12581 (x86-64-tdep.o): Add $(block_h).
12582 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12583 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12584 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12585 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12586 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12587 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12588 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12589 * value.h: Add opaque declaration for struct block.
12590 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12591 * ada-lang.h: Ditto.
12592 * x86-64-tdep.c: #include "block.h"
12593 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12594 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12595 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12596 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12597 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12598 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12599 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12600 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12601 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12602 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12603 * symtab.c (block_function): Ditto.
12604 (contained_in): Ditto.
12605 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12606 block.h. Add opaque declaration for struct block.
12607 * symtab.h: Move block_function and contained_in declarations to
12608 block.h. Add opaque declarations for struct block, struct
12609 blockvector.
12610 (struct block): Move to block.h.
12611 (struct blockvector): Ditto.
12612 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12613 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12614 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12615 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12616 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12617 Ditto.
12618 * block.c: New file.
12619 * block.h: New file.
12620
12621 2003-02-19 Theodore A. Roth <troth@openavr.org>
12622
12623 * avr-tdep.c (avr_extract_return_value): Remove function.
12624 (avr_store_return_value): Remove function.
12625 (avr_extract_struct_value_address): Remove function.
12626 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12627
12628 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12629
12630 * rs6000-tdep.c: Include "gdb_assert.h".
12631 (registers_e500): Add "acc" and "spefscr".
12632 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12633 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12634 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12635 really is "r0".
12636 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12637
12638 2003-02-18 Keith Seitz <keiths@redhat.com>
12639
12640 * Makefile.in: Add gdbtk-interps.c.
12641
12642 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12643
12644 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12645 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12646
12647 2003-02-18 Andrew Cagney <cagney@redhat.com>
12648
12649 * symtab.h (struct objfile): Add opaque declaration.
12650
12651 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12652
12653 From Jim Ingham <jingham@apple.com>:
12654 * dbxread.c (process_one_symbol): Use last_function_start rather
12655 than function_start_offset to find the real beginning of the
12656 current function. The latter is just the text section offset on
12657 some systems, the former is always the real function start.
12658
12659 2003-02-17 Andrew Cagney <cagney@redhat.com>
12660
12661 * configure.in: Revert ${target} != ${host}.
12662
12663 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12664
12665 * configure.in (Makefile): Use the test ${target} != ${host},
12666 instead of the absence of the "nm.h" file, to determine of the
12667 configuration non-native.
12668 * configure: Regenerate.
12669
12670 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12671
12672 From Brian Ford <ford@vss.fsi.com>
12673
12674 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12675 conditionalize tui_active test.
12676 (lookup_cmd_1): Ditto.
12677
12678 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12679
12680 * configure.in: Add check for _etext.
12681 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12682 available.
12683 * config.in, configure: regenerated.
12684
12685 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12686
12687 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12688
12689 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12690
12691 * main.c (tui_version): Delete variable.
12692 (captured_main): When --tui, set interpreter_p to "tui" instead of
12693 enabling tui_version.
12694 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12695 tui_version.
12696 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12697 * cli/cli-cmds.c (disassemble_command): Ditto.
12698 * defs.h (tui_version): Delete declaration.
12699 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12700 (tui-interp.o): Add rules.
12701 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12702
12703 2003-02-14 Christopher Faylor <cgf@redhat.com>
12704
12705 * win32-nat.c (register_loaded_dll): Correctly set address range for
12706 just-loaded dll.
12707
12708 2003-02-12 Jason Molenda (jmolenda@apple.com)
12709
12710 * symmisc.c (print_objfile_statistics): Include information about
12711 the number of psymtabs and symtabs in each object file.
12712
12713 2003-02-13 Keith R Seitz <keiths@redhat.com>
12714
12715 * main.h (struct captured_main_args): Add interpreter_p.
12716 * main.c (captured_main): Initialize interpreter_p from context.
12717 * gdb.c (main): Set interpreter_p argument.
12718 * Makefile.in (gdb.o): Add dependency for interps.h.
12719
12720 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12721
12722 * event-top.c (cli_command_loop): Delete declaration.
12723 (_initialize_event_loop): Delete function setting event_loop_hook.
12724 * event-top.h (cli_command_loop): Declare. Update copyright.
12725 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12726 * interps.c (current_interp_command_loop): When event_loop_p, call
12727 cli_command_loop.
12728
12729 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12730
12731 * interps.h (interp_command_loop_ftype): Change return type to
12732 void.
12733
12734 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12735
12736 * x86-64-tdep.c (x86_64_extract_return_value)
12737 (x86_64_store_return_value): Use regcache instead of regbuf.
12738 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12739 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12740
12741 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12742
12743 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12744 * aclocal.m4: Regenerate.
12745 * configure: Regenerate.
12746
12747 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12748 TCL_LD_SEARCH_FLAGS.
12749
12750 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12751
12752 * dwarf2cfi.c: Reindented.
12753
12754 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12755
12756 * interps.c (clear_interpreter_hooks): Convert function definition
12757 to ISO C.
12758
12759 2003-02-07 David Carlton <carlton@math.stanford.edu>
12760
12761 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12762
12763 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12764
12765 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12766 (struct type): ...to here.
12767 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12768 field.
12769 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12770 (replace_type): Set length on all type variants for a given type.
12771
12772 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12773
12774 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12775 <sys/stat.h>.
12776 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12777
12778 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12779
12780 * Makefile.in (symm-nat.o): Update dependencies.
12781 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12782 (lynx-nat.o, ia64-linux-nat.): Ditto.
12783 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12784 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12785 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12786
12787 * Makefile.in (inflow_h): Define.
12788 (procfs.o, inflow.o, procfs.o): Update dependencies.
12789 * inftarg.c (child_stop): Delete extern declaration of
12790 inferior_process_group. Include "inflow.h".
12791 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12792 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12793 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12794 (our_process_group, inferior_process_group): Extern declarations.
12795
12796 * procfs.c: Include "gdb_assert.h".
12797
12798 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12799 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12800 * jv-typeprint.c (java_type_print_base): Ditto.
12801 * typeprint.c (typedef_print): Eliminate STREQ.
12802 * cli/cli-script.c (define_command, define_command): Ditto.
12803 * main.c (captured_main): Ditto.
12804 * values.c (lookup_internalvar): Ditto.
12805 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12806 within `if' conditional.
12807 * linespec.c (decode_line_2): Ditto.
12808 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12809 (bfd_openw_with_cleanup): Ditto.
12810
12811 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12812
12813 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12814 legacy_extract_return_value and store_return_value to
12815 legacy_return_value.
12816
12817 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12818
12819 * win32-nat.c (get_relocated_section_addrs): New function. Find
12820 section load addresses for symbol handling in relocated DLLs.
12821 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12822
12823 2003-02-05 Fred Fish <fnf@intrinsity.com>
12824
12825 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12826 '=' and '!='.
12827 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12828 with '&' and '=='.
12829 (angel_RDI_info): Ditto.
12830 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12831 with '&' and '!='.
12832 (threads_continue_all_with_signals): Ditto.
12833
12834 2003-02-05 Jim Ingham <jingham@apple.com>
12835 Keith Seitz <keiths@redhat.com>
12836 Elena Zannoni <ezannoni@redhat.com>
12837 Andrew Cagney <ac131313@redhat.com>
12838
12839 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12840 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12841 (SUBDIR_MI_OBS): Add "mi-interp.o".
12842 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12843 (SFILES): Add "interps.c".
12844 (COMMON_OBS): Add "interps.o".
12845 (interps_h, mi_main_h): Define.
12846 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12847 (mi-main.o, main.o, event-top.o): Update dependencies.
12848 * cli/cli-interp.c: New file.
12849 * interps.h, interps.c: New files.
12850 * top.c: (gdb_init): Don't install the default interpreter, handed
12851 by captured_main.
12852 * main.c: Include "interps.h".
12853 (interpreter_p): Note that it should malloc'ed.
12854 (captured_command_loop): Call current_interp_command_loop.
12855 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12856 xfree and xstrdup when updating interpreter_p. Install the
12857 default interpreter. Add hack to stop mi1's copyright notice
12858 being encoded.
12859 * event-top.h (gdb_setup_readline): Declare.
12860 (gdb_disable_readline): Declare.
12861 * event-top.c: Include "interps.h".
12862 (display_gdb_prompt): Call current_interp_display_prompt_p.
12863 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12864 gdb_stdlog, and gdb_stdtarg.
12865 (_initialize_event_loop): Don't call gdb_setup_readline.
12866 * cli-out.c (cli_out_set_stream): New function.
12867 * cli-out.h (cli_out_set_stream): Declare.
12868
12869 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12870
12871 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12872 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12873 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12874 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12875 config/i386/i386v42mp.mt: Removed.
12876
12877 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12878
12879 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12880 GDB_OSABI_SOLARIS.
12881
12882 2003-02-05 Michael Chastain <mec@shout.net>
12883
12884 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12885 2.12.1 and earlier versions.
12886
12887 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12888
12889 Remove orphaned hosts, targets and files.
12890 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12891 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12892 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12893 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12894 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12895 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12896 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12897 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12898 * config/sparc/tm-sp64sim.h: Delete.
12899 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12900 hosts.
12901 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12902 mips*-dec-mach3* targets.
12903
12904 2003-02-04 Michael Chastain <mec@shout.net>
12905
12906 * NEWS: Fix typo: sepcifying -> specifying.
12907
12908 2003-02-04 Michael Chastain <mec@shout.net>
12909
12910 * dwarfread.c: Add documentation on the state of dwarf-1,
12911 looking towards obsoletion.
12912
12913 2003-02-03 Michael Chastain <mec@shout.net>
12914
12915 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12916 gdb/testsuite/gdb.c++/pr-1023.exp.
12917
12918 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12919
12920 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12921 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12922
12923 * utils.c (init_page_info): Delete reference to MPW in comments.
12924 * main.c (captured_main): Delete #ifdef MPW.
12925
12926 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12927
12928 * NEWS: Note that the m32r-*-elf* is obsolete.
12929 * monitor.c (monitor_expect): Obsolete reference to m32r.
12930 * configure.tgt: Mark m32r-*-elf* as obsolete.
12931 * MAINTAINERS: Mark m32k as obsolete.
12932 * m32r-rom.c: Obsolete file.
12933 * config/m32r/m32r.mt: Obsolete file.
12934 * config/m32r/tm-m32r.h: Obsolete file.
12935 * m32r-stub.c: Obsolete file.
12936 * m32r-tdep.c: Obsolete file.
12937
12938 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12939
12940 * NEWS: Mention that the z8k-zilog-none is obsolete.
12941 * MAINTAINERS: Mark z8k as obsolete.
12942 * configure.tgt: Obsolete the z8k-*-coff* target.
12943 * config/z8k/z8k.mt: Obsolete file.
12944 * config/z8k/tm-z8k.h: Obsolete file.
12945 * z8k-tdep.c: Obsolete file.
12946
12947 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12948
12949 * NEWS: Mention that the mn10200-elf is obsolete.
12950 * configure.tgt: Obsolete mn10200-*-* target.
12951 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12952 mention that the mn10200 is obsolete.
12953 * breakpoint.h: Ditto.
12954 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12955 * config/mn10200/mn10200.mt: Obsolete file.
12956 * config/mn10200/tm-mn10200.h: Obsolete file.
12957 * mn10200-tdep.c: Obsolete file.
12958
12959 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12960
12961 * MAINTAINERS: Mark h8500 as obsolete.
12962 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12963 * findvar.c (value_from_register): Ditto.
12964 * h8500-tdep.c: Mark file as obsolete.
12965 * config/h8500/h8500.mt: Ditto.
12966 * config/h8500/tm-h8500.h: Ditto.
12967 * NEWS: Mention that h8500 is obsolete.
12968
12969 2003-02-04 David Carlton <carlton@math.stanford.edu>
12970
12971 * objfiles.c (allocate_objfile): Always set name. Add comment at
12972 start of function.
12973 * jv-lang.c (get_dynamics_objfile): Add comment.
12974
12975 2003-02-04 David Carlton <carlton@math.stanford.edu>
12976
12977 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12978 * printcmd.c (build_address_symbolic): Replace uses of
12979 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12980 SYMBOL_NAME, and asm_demangle.
12981 Update copyright.
12982
12983 2003-02-04 David Carlton <carlton@math.stanford.edu>
12984
12985 * linespec.c (decode_compound): Extract code into
12986 lookup_prefix_sym.
12987 (lookup_prefix_sym): New function.
12988
12989 2003-02-04 David Carlton <carlton@math.stanford.edu>
12990
12991 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12992 FLOAT_COERCION_BADNESS.
12993 * gdbtypes.c (rank_one_type): Replace all uses of
12994 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12995
12996 2003-02-04 Jim Blandy <jimb@redhat.com>
12997
12998 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12999 section, let dwarf_macinfo_section point to it, not
13000 dwarf_loc_section.
13001
13002 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13003
13004 Pointed out by Anton Blanchard <anton@samba.org>.
13005 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13006 (ppc_linux_at_sigtramp_return_path): Use it.
13007
13008 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13009
13010 * defs.h (streq): Add prototype.
13011 * utils.c (streq): New function.
13012
13013 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13014 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13015 * mdebugread.c (new_symbol): Likewise.
13016 * stabsread.c (define_symbol): Likewise.
13017 * coffread.c (process_coff_symbol): Likewise.
13018 * dwarfread.c (new_symbol): Likewise.
13019
13020 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13021 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13022 here.
13023 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13024 SYMBOL_INIT_DEMANGLED_NAME.
13025 * objfiles.c: Include "hashtab.h".
13026 (allocate_objfile): Call htab_set_functions_ex for the
13027 demangled_names_hash.
13028 (free_objfile): Call htab_delete for the demangled_names_hash.
13029 * objfiles.h (struct htab): Add declaration.
13030 (struct objfile): Add demangled_names_hash.
13031 * symfile.c: Include "hashtab.h".
13032 (reread_symbols): Call htab_delete for the demangled_names_hash.
13033 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13034 SYMBOL_NAME in the bcache.
13035 * symtab.c: Include "hashtab.h". Update comments.
13036 (create_demangled_names_hash, symbol_set_names): New functions.
13037 (symbol_find_demangled_name): New function, broken out from
13038 symbol_init_demangled_names.
13039 (symbol_init_demangled_names): Use it.
13040 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13041 (SYMBOL_SET_NAMES): New macro.
13042 (symbol_set_names): Add prototype.
13043
13044 2003-02-03 Jim Blandy <jimb@redhat.com>
13045
13046 Use a single, consistent representation for an empty minimal
13047 symbol table in an objfile.
13048 * objfiles.c (terminate_minimal_symbol_table): New function.
13049 (allocate_objfile): Call it.
13050 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13051 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13052 non-NULL.
13053 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13054 objfile has minimal symbols, compare minimal_symbol_count to zero,
13055 instead of comparing msymbols with NULL.
13056 * objfiles.c (have_minimal_symbols): Same.
13057 * solib-sunos.c (solib_add_common_symbols): Call
13058 terminate_minimal_symbol_table.
13059 * symfile.c (reread_symbols): Same.
13060
13061 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13062
13063 * s390-tdep.c (s390_address_class_type_flags)
13064 (s390_address_class_type_flags_to_name)
13065 (s390_address_class_name_to_type_flags): New functions.
13066 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13067 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13068
13069 2003-02-03 Michael Snyder <msnyder@redhat.com>
13070
13071 * arm-tdep.c: Fix spell-o in comment.
13072
13073 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13074
13075 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13076 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13077 error messages to contain BFD filename.
13078
13079 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13080
13081 Fix PR gdb/742 gdb/743 gdb/877
13082 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13083 (do_mixed_source_and_assembly): Use
13084 make_cleanup_ui_out_tuple_begin_end and
13085 make_cleanup_ui_out_tuple_begin_end.
13086 (do_mixed_source_and_assembly): Ditto.
13087 * thread.c (do_captured_list_thread_ids): Ditto.
13088 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13089 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13090 ui_out_tuple_end): Delete prototypes.
13091 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13092 ui_out_list_end, ui_out_tuple_end): Delete.
13093
13094 From Kevin Buettner <kevinb@redhat.com>:
13095 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13096 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13097 (do_cleanup_table_end): New functions.
13098 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13099 Use cleanups to invoke_ui_out_tuple_end().
13100 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13101 * cli/cli-setshow.c (cmd_show_list): Use
13102 make_cleanup_ui_out_tuple_begin_end.
13103
13104 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13105
13106 * frame.c (frame_unwind_register): New function.
13107 (frame_unwind_unsigned_register): Use.
13108 (frame_unwind_signed_register): Use.
13109 (frame_read_register): New function.
13110 * frame.h (frame_unwind_register): Declare.
13111 (frame_read_register): Declare.
13112
13113 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13114 and frame_unwind_register instead of read_memory, write_register
13115 and deprecated_write_register_bytes.
13116
13117 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13118
13119 * frame.h: Note that namelen can be negative.
13120 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13121 NAME's length.
13122
13123 * NEWS: Mention that the d10v's `regs' command is deprecated.
13124 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13125 (d10v_print_registers_info): New function.
13126 (show_regs): Call d10v_print_registers_info.
13127 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13128
13129 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13130
13131 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13132 lost in the previous patch.
13133
13134 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13135
13136 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13137 * stack.c (print_frame_info_base): Output complete FRAME tuple
13138 for synthesized frames.
13139
13140 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13141
13142 * mips-nat.c (zerobuf): Delete.
13143 (fetch_inferior_registers): Alloc local zerobuf.
13144 (fetch_core_registers): Alloc local zerobuf.
13145 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13146 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13147 * thread-db.c (thread_db_store_registers): Ditto.
13148 * sh-tdep.c (sh_do_register): Ditto.
13149 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13150 * remote-sim.c (gdbsim_store_register): Ditto.
13151 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13152 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13153 * monitor.c (monitor_supply_register): Ditto.
13154 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13155 * mips-nat.c (fetch_inferior_registers): Ditto.
13156 * m68klinux-nat.c (fetch_register): Ditto.
13157 * lynx-nat.c (fetch_inferior_registers): Ditto.
13158 (fetch_inferior_registers): Ditto.
13159 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13160 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13161 (hpux_thread_store_registers): Ditto.
13162 * hppah-nat.c (fetch_register): Ditto.
13163 * hppab-nat.c (fetch_register): Ditto.
13164 * hppa-tdep.c (pa_register_look_aside): Ditto.
13165 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13166 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13167
13168 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13169
13170 * gdbarch.sh: Explictly specify all method levels. When a
13171 variable with an empty level, provide a non-multi-arch default.
13172 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13173 * gdbarch.h: Re-generate.
13174 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13175 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13176
13177 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13178
13179 * defs.h (host_pointer_to_address): Delete declaration.
13180 (address_to_host_pointer): Delete declaration.
13181 * utils.c (host_pointer_to_address): Delete function.
13182 (address_to_host_pointer): Delete function.
13183 * procfs.c (procfs_address_to_host_pointer): New function.
13184 * procfs.c (proc_set_watchpoint): Use.
13185 (procfs_can_use_hw_breakpoint): Update comments.
13186 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13187 (som_solib_add): Use.
13188 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13189 * hppa-tdep.c (unwind_command): Use.
13190
13191 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13192
13193 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13194 strlen d_name.
13195
13196 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13197 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13198 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13199 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13200 (define_symbol): Update.
13201 * symfile.c (generic_load): Remove references to nindy.
13202 * symtab.c: Remove references to nindy.
13203
13204 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13205
13206 * infcmd.c (print_float_info): Delete code conditional on
13207 FLOAT_INFO.
13208 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13209 * config/m68k/nm-apollo68b.h: Ditto.
13210 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13211 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13212 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13213
13214 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13215
13216 * config/i386/tm-i386os9k.h: Removed.
13217
13218 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13219 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13220 they're identical to i[3456]86-*-sysv* now.
13221 * config/i386/i386v32.mh: Removed.
13222 * config/i386/xm-i386v32.h: Removed.
13223 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13224
13225 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13226
13227 * config/i386/i386dgux.mh: Removed.
13228 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13229
13230 * configure.in: Fix typo.
13231 * configure: Regenerated.
13232
13233 2003-01-31 David Carlton <carlton@math.stanford.edu>
13234
13235 * dwarf2read.c (dwarf2_locate_sections): Set
13236 dwarf_ranges_section.
13237
13238 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13239
13240 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13241 * utils.c: Update comments documenting legitimate uses of PTR.
13242
13243 * utils.c: Re-indent.
13244
13245 * config/djgpp/fnchange.lst: Delete nindy files.
13246 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13247 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13248 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13249 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13250 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13251 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13252 * Makefile.in (init.c): Remove nindy references.
13253 (saber_gdb): Delete rule.
13254 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13255 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13256 and a68v-nat.c.
13257 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13258 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13259 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13260 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13261 nindy-share/stop.h.
13262 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13263 * saber.suppress: Delete file.
13264
13265 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13266
13267 * dbxread.c (stabs_data): New static variable.
13268 (fill_symbuf): Support an in-memory buffer for stabs data.
13269 (stabs_seek): New function.
13270 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13271 (read_ofile_symtab): Use stabs_seek.
13272 (elfstab_build_psymtabs): Take an asection* instead of
13273 an offset and size. Relocate the stabs data if necessary.
13274 Save the section* for dbx_psymtab_to_symtab.
13275 * dwarf2read.c: Add section variables for each debug section.
13276 (dwarf2_locate_sections): Fill them in.
13277 (dwarf2_read_section): Take an asection* argument.
13278 Relocate the section contents if necessary.
13279 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13280 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13281 it to dwarf2_read_section.
13282 (dwarf2_build_frame_info): Update callers.
13283 * elfread.c (elf_symfile_read): Update call to
13284 elfstab_build_psymtabs.
13285 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13286 (DBX_STAB_SECTION): New macro.
13287 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13288 * symfile.c (symfile_dummy_outputs): New function.
13289 (symfile_relocate_debug_section): New function.
13290 * symfile.h (symfile_relocate_debug_section): Add prototype.
13291
13292 2003-01-31 Richard Henderson <rth@redhat.com>
13293
13294 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13295 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13296 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13297 * alpha-tdep.c (alpha_register_name): Add "unique".
13298 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13299 (ALPHA_UNIQUE_REGNUM): New.
13300 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13301
13302 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13303
13304 * README: Remove reference to Ericsson 1800 monitor.
13305 * Makefile.in (remote-es.o): Delete rule.
13306 (ALLDEPFILES): Delete remote-es.c.
13307 * remote-es.c: Delete file.
13308 * config/m68k/es1800.mt: Delete file.
13309 * config/djgpp/fnchange.lst: Update.
13310 * configure.tgt: Delete m68*-ericsson-* target.
13311
13312 2003-01-31 Adam Fedor <fedor@gnu.org>
13313
13314 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13315 Remove duplicate/shadowing variable of same name.
13316
13317 2003-01-30 Jim Blandy <jimb@redhat.com>
13318
13319 * symfile.c (find_separate_debug_file): Assert that the objfile's
13320 directory name we compute ends with a slash, and then assume that
13321 that's so everywhere we use it.
13322
13323 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13324
13325 * valops.c (value_assign): Flush frame cache after stores to memory
13326 also.
13327
13328 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13329
13330 * Makefile.in (mon960-rom.o): Delete rule.
13331 * mon960-rom.c: Delete file.
13332
13333 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13334
13335 * d10v-tdep.c: Include "frame-unwind.h".
13336 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13337 list.
13338 (next_addr, uses_frame): Delete.
13339 (struct d10v_unwind_cache): Define.
13340 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13341 Use info instead of next_addr and uses_frame globals.
13342 (d10v_frame_init_saved_regs): Delete function.
13343 (d10v_init_extra_frame_info): Delete function.
13344 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13345 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13346 init_frame_pc or frame_saved_pc.
13347 (d10v_pop_frame): Delete function.
13348 (do_d10v_pop_frame): Delete function.
13349 (d10v_frame_chain): Delete function.
13350 (d10v_frame_chain_valid): Delete function.
13351 (d10v_frame_pc_unwind): New function.
13352 (d10v_frame_id_unwind): New function.
13353 (saved_regs_unwinder): New function.
13354 (d10v_frame_register_unwind): New function.
13355 (d10v_frame_pop): New function.
13356 (d10v_frame_unwind): New variable.
13357 (d10v_frame_p): New function.
13358 (d10v_frame_saved_pc): Delete function.
13359 * Makefile.in (d10v-tdep.o): Update dependencies.
13360
13361 2003-01-30 J. Brobecker <brobecker@gnat.com>
13362
13363 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13364 causing some regressions due to a change in the default value
13365 for this macro.
13366
13367 2003-01-29 Richard Henderson <rth@redhat.com>
13368 Elena Zannoni <ezannoni@redhat.com>
13369 Daniel Jacobowitz <drow@mvista.com>
13370
13371 Fix PR gdb/961.
13372 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13373 variables.
13374 (RANGES_SECTION): New.
13375 (dwarf_ranges_buffer): New variable.
13376 (struct comp_unit_head): Add member "die".
13377 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13378 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13379 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13380 (dwarf2_locate_sections): Likewise.
13381 (dwarf2_build_psymtabs): Read .debug_ranges.
13382 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13383 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13384 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13385 Look for DW_AT_ranges and return the bounding box.
13386
13387 2003-01-29 Brian Ford <ford@vss.fsi.com>
13388
13389 * win32-nat.c (cygwin_pid): Removed as unused.
13390 (child_attach): Try fall back to Cygwin pid.
13391
13392 2003-01-29 Jim Blandy <jimb@redhat.com>
13393
13394 * objfiles.h (struct objfile): Doc fix.
13395
13396 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13397
13398 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13399 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13400 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13401 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13402 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13403 (FRAME_SAVED_PC): Change to a function with predicate.
13404 * gdbarch.h, gdbarch.c: Re-generate.
13405
13406 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13407
13408 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13409
13410 * complaints.c (complain): Delete function.
13411 * complaints.h (struct deprecated_complaint): Delete definition.
13412 (complain): Delete declaration.
13413
13414 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13415
13416 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13417 dummy frames.
13418
13419 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13420
13421 * sentinel-frame.h, sentinel-frame.c: New files.
13422 * Makefile.in (frame.o): Update dependencies.
13423 (SFILES): Add sentinel-frame.c.
13424 (sentinel_frame_h): Define.
13425 (COMMON_OBS): Add sentinel-frame.o.
13426 (sentinel-frame.o): Specify dependencies.
13427 * frame.c: Include "sentinel-frame.h".
13428 (frame_register_unwind): Rewrite assuming that there is always a a
13429 ->next frame.
13430 (frame_register, generic_unwind_get_saved_register): Ditto.
13431 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13432 (create_sentinel_frame, unwind_to_current_frame): New functions.
13433 (get_current_frame): Rewrite using create_sentinel_frame and
13434 unwind_to_current_frame. When possible, always create a frame.
13435 (create_new_frame): Set next to the sentinel frame.
13436 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13437 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13438 ID cache when necessary.
13439 (frame_saved_regs_id_unwind): Use frame_relative_level.
13440 (deprecated_generic_get_saved_register): Use frame_relative_level,
13441 get_frame_saved_regs, get_frame_pc, get_frame_base and
13442 get_next_frame.
13443 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13444 frame_register.
13445
13446 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13447
13448 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13449
13450 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13451
13452 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13453 (maintenance_set_profile_cmd): Use error () instead of warning ().
13454
13455 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13456
13457 * configure.in: Check that -pg works if using --enable-profiling.
13458 Check for monstartup and _mcleanup regardless of --enable-profiling.
13459 * maint.c: Check for monstartup and _mcleanup before using them.
13460 * config.in: Regenerated.
13461 * configure: Regenerated.
13462
13463 2003-01-24 Nick Clifton <nickc@redhat.com>
13464
13465 * Add sh2e support:
13466
13467 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13468
13469 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13470 (sh2e_show_regs): New.
13471 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13472 * config/sh/tm-sh.h: Added sh2e to comments.
13473
13474 2003-01-23 Jim Blandy <jimb@redhat.com>
13475
13476 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13477 symbols found)" message here; we haven't checked for a separate
13478 debug info file yet, so we don't know yet.
13479 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13480 we've looked everywhere. Also, there's no need to print a special
13481 message when we're loading the separate debug info file: the one
13482 symbol_file_add prints is fine.
13483
13484 2003-01-23 Alexander Larsson <alexl@redhat.com>
13485 Jim Blandy <jimb@redhat.com>
13486
13487 Add support for executables whose debug info has been separated
13488 out into a separate file, leaving only a link behind.
13489 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13490 and separate_debug_objfile_backlink.
13491 (put_objfile_before): New declaration.
13492 * symfile.c: #include "filenames.h".
13493 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13494 debug info in a separate file, read that, too. Save the addrs
13495 argument, so we can use it again to read the separated debug info;
13496 syms_from_objfile modifies the table we pass it.
13497 (reread_symbols): After re-reading an objfile, call
13498 reread_separate_symbols to refresh its separate debug info
13499 objfile, if it has one.
13500 (reread_separate_symbols, find_separate_debug_file,
13501 get_debug_link_info, separate_debug_file_exists): New functions.
13502 (debug_file_directory): New global var.
13503 (_initialize_symfile): Initialize debug_file_directory, and
13504 provide the new `set debug-file-directory' command to let the user
13505 change it.
13506 * objfiles.c (free_objfile): If this objfile has its debug info in
13507 a separate objfile, free that one too. If this is itself a
13508 separate debug info objfile, clear our parent's backlink.
13509 (put_objfile_before): New function.
13510 * utils.c (gnu_debuglink_crc32): New function.
13511 * defs.h (gnu_debuglink_crc32): New declaration.
13512 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13513 * configure.in: Handle --with-separate-debug-dir config option.
13514 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13515 * acconfig.h (DEBUGDIR): New macro.
13516 * configure, aclocal.m4, config.in: Regenerated.
13517
13518 2003-01-22 Jim Blandy <jimb@redhat.com>
13519
13520 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13521 like the old symbol_file_add, but taking new arguments: you can
13522 now pass in either a `struct section_addr_info' list to say where
13523 each section is loaded, or a `struct section_offsets' table. Pass
13524 these new arguments through to syms_from_objfile as appropriate.
13525 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13526 with the appropriate quiescent values for the new arguments.
13527
13528 * symfile.c: #include "gdb_assert.h".
13529 (syms_from_objfile): Add the ability to pass in a section offset
13530 table directly, as an alternative to the section_addr_info table.
13531 Document arguments better.
13532 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13533 * symfile.h (syms_from_objfile): Update declaration.
13534 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13535 syms_from_objfile.
13536 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13537
13538 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13539
13540 Original patch by Tom Tromey <tromey@cygnus.com> and
13541 Jason Molenda <jmolenda@apple.com>.
13542 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13543 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13544 * NEWS: Mention profiling.
13545 * configure.in (--enable-gdbtk): Fix typo.
13546 (--enable-profiling): New. Set PROFILE_CFLAGS.
13547 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13548 Fill in function.
13549 (profiling_state): New variable.
13550 (mcleanup_wrapper): New function.
13551 (_initialize_maint): Remove NOTYET, fix call to
13552 add_setshow_boolean_cmd for "maint set profile".
13553 * configure: Regenerated.
13554
13555 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13556
13557 * Makefile.in (install-gdbtk): Install PNG images too.
13558
13559 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13560
13561 * exec.c (text_start): Delete global variable.
13562 (exec_file_attach): Make text_start local to the function.
13563 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13564 * valops.c (hand_function_call): Delete code that handles
13565 BEFORE_TEXT_END and AFTER_TEXT_END.
13566 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13567 of CALL_DUMMY_LOCATION.
13568 * gdbarch.c: Regenerate.
13569 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13570 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13571 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13572 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13573 (text_end): Delete extern declaration.
13574
13575 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13576
13577 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13578 * blockframe.c (backtrace_below_main): Move to "frame.c".
13579 (frame_chain_valid): Delete check for backtrace_below_main.
13580 (_initialize_blockframe): Delete initialization, move ``set
13581 backtrace-below-main'' command to "frame.c".
13582 (do_flush_frames_sfunc): Delete function.
13583 * frame.c: Include "command.h" and "gdbcmd.h".
13584 (frame_type_from_pc): New function.
13585 (create_new_frame): Use frame_type_from_pc.
13586 (legacy_get_prev_frame): New function.
13587 (get_prev_frame): Rewrite. When an old style frame, call
13588 legacy_get_prev_frame. Otherwize, unwind the PC first.
13589 (_initialize_frame): Add ``set backtrace-below-main'' command.
13590 * Makefile.in (frame.o): Update dependencies.
13591
13592 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13593
13594 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13595 DEPRECATED_REGISTERS_INFO.
13596
13597 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13598
13599 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13600 Maintainers'. Update `Various Maintainers'.
13601
13602 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13603
13604 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13605 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13606 Suppress actual parameters when `-'.
13607 * gdbarch.h, gdbarch.c: Regenerate.
13608
13609 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13610
13611 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13612 code handling dummy frames.
13613
13614 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13615
13616 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13617 (struct frame_unwind): Add field pop.
13618 * frame.h (frame_pop): Declare.
13619 * frame.c (frame_saved_regs_pop): New function.
13620 (trad_frame_unwinder): Add frame_saved_regs_pop.
13621 (frame_pop): New function.
13622 * dummy-frame.c (dummy_frame_pop): New function.
13623 (discard_innermost_dummy): New function.
13624 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13625 (dummy_frame_unwind): Add dummy_frame_pop.
13626 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13627 * valops.c (hand_function_call): Ditto.
13628 * stack.c (return_command): Ditto.
13629
13630 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13631
13632 * cris-tdep.c: Fix function declaration indentation.
13633 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13634 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13635 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13636 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13637 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13638 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13639
13640 2003-01-18 Michael Chastain <mec@shout.net>
13641
13642 * README (Unpacking and Installation -- quick overview):
13643 Warn against ".../gdb-5.3/gdb/configure".
13644
13645 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13646
13647 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13648 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13649 (struct frame_unwind): Declare opaque.
13650 (dummy_frame_p): Declare function.
13651 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13652 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13653 * dummy-frame.c: Include "frame-unwind.h".
13654 (dummy_frame_p): New function.
13655 (dummy_frame_unwind): New variable.
13656 * frame.c: Include "frame-unwind.h".
13657 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13658 to use the new unwind field.
13659 (set_unwind_by_pc): Delete function.
13660 (create_new_frame, get_prev_frame): Set unwind field using
13661 frame_unwind_find_by_pc.
13662 (trad_frame_unwind, trad_frame_unwinder): New variables.
13663 * frame.h (trad_frame_unwind): Declare variable.
13664 (frame_id_unwind_ftype): Delete declaration.
13665 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13666 (struct frame_unwind): Declare opaque.
13667 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13668 register_unwind with a single unwind pointer.
13669 * frame-unwind.h, frame-unwind.c: New files.
13670 * Makefile.in (SFILES): Add frame-unwind.c.
13671 (frame_unwind_h): Define.
13672 (COMMON_OBS): Add frame-unwind.o.
13673 (frame-unwind.o): Specify dependencies.
13674 (frame.o, dummy-frame.o): Update dependencies.
13675
13676 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13677
13678 * ada-valprint.c: Eliminate PTR.
13679 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13680 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13681 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13682 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13683 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13684 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13685 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13686
13687 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13688
13689 * main.c (captured_main): Don't use PTR.
13690 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13691 * gdbtypes.c (lookup_primitive_typename): Ditto.
13692 (lookup_struct_elt_type): Ditto.
13693 * f-valprint.c (info_common_command): Ditto.
13694 (list_all_visible_commons): Ditto.
13695 * jv-typeprint.c (java_type_print_base): Ditto.
13696
13697 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13698 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13699 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13700 i386-interix-nat.c and i386-interix-tdep.c. Rename
13701 m68klinux-nat.c and m68klinux-tdep.c. Rename
13702 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13703 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13704 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13705 * main.c (captured_main): Use xfree, not free.
13706
13707 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13708
13709 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13710 ID back using a parameter.
13711 * frame.c (frame_id_unwind): Update call.
13712 (frame_saved_regs_id_unwind): Update.
13713 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13714 * dummy-frame.h (struct frame_id): Add opaque declaration.
13715 (dummy_frame_id_unwind): Update declaration.
13716
13717 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13718
13719 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13720
13721 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13722
13723 * MAINTAINERS (Stephen P. Smith): Updated email address.
13724
13725 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13726
13727 Fix PR gdb/898
13728 * breakpoint.c (until_break_command): Add new argument. Use it to
13729 decide whether to stop only at the current frame or not.
13730 * breakpoint.h (until_break_command): Update prototype.
13731 * infcmd.c (until_command): Add new argument to until_break_command
13732 call.
13733 (advance_command): New function.
13734 (_initialize_infcmd): Update help string for 'until' command.
13735 Add new 'advance' command.
13736
13737 2003-01-14 David Carlton <carlton@math.stanford.edu>
13738
13739 * linespec.c (decode_line_1): Normalize comments.
13740 (set_flags): Ditto.
13741 (locate_first_half): Ditto.
13742 (decode_compound): Ditto.
13743 (symtab_from_filename): Ditto.
13744 (decode_all_digits): Ditto.
13745 (decode_dollar): Ditto.
13746 (find_methods): Ditto.
13747 (find_toplevel_char): Ditto.
13748
13749 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13750
13751 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13752 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13753 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13754 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13755 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13756 * language.c, language.h, m32r-tdep.c: Update copyright.
13757 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13758 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13759 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13760 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13761 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13762 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13763
13764 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13765
13766 * stabsread.h (process_later, resolve_cfront_continuation):
13767 Obsolete.
13768 Update copyright years.
13769 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13770 Update copyright year.
13771 * dbxread.c(struct cont_elem): Obsolete.
13772 (process_later, process_now): Obsolete functions.
13773 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13774 Update copyright year.
13775 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13776 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13777 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13778 (parse_partial_symbols): Obsolete cfront support.
13779 * stabsread.c
13780 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13781 macros.
13782 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13783 read_cfront_baseclasses, read_cfront_member_functions,
13784 resolve_cfront_continuation,read_cfront_static_fields,
13785 copy_cfront_struct_fields): Obsolete functions.
13786 (define_symbol, read_one_struct_field): Obsolete cfront support.
13787 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13788 Update Copyright year.
13789
13790 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13791
13792 * stack.c (print_frame_info, print_stack_frame_base_stub,
13793 print_stack_frame_base, show_and_print_stack_frame_stub,
13794 show_and_print_stack_frame, print_only_stack_frame_stub,
13795 print_only_stack_frame): Delete functions.
13796 (print_stack_frame_stub): Call print_frame_info instead of
13797 print_frame_info_base.
13798 (print_frame_info_base): Rename to print_frame_info.
13799 (backtrace_command_1): Call print_frame_info, instead of
13800 print_frame_info_base.
13801 (current_frame_command): Call print_stack_frame, instead of
13802 print_only_stack_frame.
13803 (frame_command): Call print_stack_frame, instead of
13804 show_and_print_stack_frame.
13805 (up_command): Ditto.
13806 (down_command): Ditto.
13807 * frame.h (print_only_stack_frame): Delete prototype.
13808 * infrun.c (normal_stop): Call print_stack_frame, instead of
13809 show_and_print_stack_frame.
13810 * thread.c (info_threads_command): Call print_stack_frame, instead
13811 of print_only_stack_frame.
13812
13813 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13814
13815 * README (Graphical interface to GDB): Update URL. Point at
13816 gdb/links/.
13817
13818 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13819 version match.
13820
13821 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13822
13823 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13824 lines.
13825
13826 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13827
13828 * thread-db.c (attach_thread): Prototype.
13829 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13830 thread information (ti), and valid flags (th_valid, ti_valid).
13831 (attach_thread): Move target_pid_to_str call to after the thread
13832 is added to GDB's list. Initialize the cache.
13833 (thread_get_info_callback, thread_db_map_id2thr)
13834 (thread_db_get_info): New functions.
13835 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13836 (thread_db_store_registers, thread_db_thread_alive)
13837 (thread_db_get_thread_local_address): Use them.
13838 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13839 of calling error() for threads in unknown state.
13840
13841 (clear_lwpid_callback): New function.
13842 (thread_db_resume): Use it to clear the cache.
13843
13844 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13845
13846 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13847 (resume_callback): Remove dead code.
13848
13849 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13850
13851 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13852 predicate.
13853 * gdbarch.h, gdbarch.c: Regenerate.
13854 * stack.c (frame_info): Only initialize the saved registers when
13855 FRAME_INIT_SAVED_REGS_P.
13856 * frame.c (frame_saved_regs_register_unwind): Assert
13857 FRAME_INIT_SAVED_REGS_P.
13858 (deprecated_generic_get_saved_register): Ditto.
13859
13860 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13861
13862 * source.c (openp): Squelch warning about "filename".
13863
13864 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13865
13866 * source.c (openp): If the file does not exist don't necessarily
13867 search the path.
13868
13869 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13870
13871 Fix PR gdb/872.
13872 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13873 (integer_types_same_name_p): New function.
13874 (rank_one_type): Use it.
13875 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13876
13877 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13878
13879 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13880 variables.
13881 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13882 * configure.in: Add --with-sysroot.
13883 * configure: Regenerated.
13884 * main.c (gdb_sysroot): New variable.
13885 (captured_main): Initialize gdb_sysroot.
13886 * defs.h (gdb_sysroot): New extern declaration.
13887 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13888
13889 2003-01-12 Michael Chastain <mec@shout.net>
13890
13891 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13892
13893 2003-01-12 Michael Chastain <mec@shout.net>
13894
13895 * top.c (print_gdb_version): Bump copyright year to 2003.
13896
13897 2003-01-12 David Carlton <carlton@bactrian.org>
13898
13899 * linespec.c (symtab_from_filename): Rename variable 's' to
13900 'file_symtab'.
13901
13902 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13903
13904 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13905 dummy frame.
13906 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13907
13908 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13909
13910 * d10v-tdep.c: Include "gdb_assert.h".
13911 (d10v_store_return_value): Rewrite to match current interface.
13912 (d10v_extract_struct_value_address): Ditto.
13913 (d10v_extract_return_value): Ditto.
13914 (d10v_gdbarch_init): Set store_restore_value,
13915 extract_struct_value_address and extract_return_value.
13916
13917 2003-01-12 J. Brobecker <brobecker@gnat.com>
13918
13919 * hpread.c (set_namestring): New procedure replacing the
13920 SET_NAMESTRING macro.
13921 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13922 by calls to set_namestring.
13923
13924 2003-01-11 J. Brobecker <brobecker@gnat.com>
13925
13926 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13927 a compilation warning.
13928 (hpread_process_one_debug_symbol): Likewise.
13929
13930 2003-01-10 David Carlton <carlton@math.stanford.edu>
13931
13932 * linespec.c (decode_line_1): Rename variable 's' to
13933 'file_symtab'.
13934 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13935 (decode_dollar): Ditto.
13936 (decode_variable): Ditto.
13937 (symbol_found): Ditto.
13938
13939 2003-01-09 Michael Chastain <mec@shout.net>
13940
13941 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13942
13943 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13944
13945 * win32-nat.c (set_process_privilege): New function.
13946 (child_attach): Call set_process_privilege() to enable the
13947 SE_DEBUG_NAME user privilege if available in process token.
13948
13949 2003-01-10 J. Brobecker <brobecker@gnat.com>
13950
13951 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13952 compilation error in the previous revision.
13953
13954 2003-01-09 David Carlton <carlton@math.stanford.edu>
13955
13956 * linespec.c: Update copyright.
13957
13958 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13959
13960 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13961 than inferior_ptid.
13962 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13963
13964 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13965
13966 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13967 Update comments.
13968 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13969 (frame_saved_regs_zalloc): Update.
13970 (frame_saved_regs_register_unwind): Update.
13971 (create_new_frame): Update.
13972 (get_prev_frame): Update.
13973 (frame_extra_info_zalloc): Update.
13974 (deprecated_get_frame_saved_regs): Update.
13975 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13976 * cris-tdep.c: Update comment.
13977
13978 * somsolib.h: Fix function indentation.
13979 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13980 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13981 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13982 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13983 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13984
13985 * infrun.c (follow_fork): Use ISO C definition.
13986 * expprint.c (print_subexp): Use xfree instead of free.
13987 * charset.c: Include "gdb_string.h" instead of <string.h>.
13988 (register_iconv_charsets): Use ISO C definition.
13989 (host_charset, target_charset): Ditto.
13990 * Makefile.in (charset.o): Update dependencies.
13991 (mi-cmd-env.o): Update dependencies.
13992
13993 2003-01-08 Andrew Cagney <cagney@redhat.com>
13994
13995 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13996 get_frame_base.
13997
13998 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13999
14000 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14001 build directories. Save edited gdb output in Mbuild.log. If a
14002 build fails, remove any final GDB executable.
14003
14004 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14005
14006 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14007 replacing hex constants with function names and stripping leading
14008 file name directory prefixes.
14009
14010 2003-01-08 Andrew Cagney <cagney@redhat.com>
14011
14012 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14013 get_frame_base.
14014
14015 2003-01-08 David Carlton <carlton@math.stanford.edu>
14016
14017 * linespec.c (decode_line_1): Move code into decode_variable.
14018 (decode_variable): New function.
14019
14020 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14021
14022 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14023
14024 2003-01-08 Andrew Cagney <cagney@redhat.com>
14025
14026 * cris-tdep.c (cris_frame_init_saved_regs): Use
14027 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14028 saved_regs buffer.
14029 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14030 (sh64_nofp_frame_init_saved_regs): Ditto.
14031 (sh_fp_frame_init_saved_regs): Ditto.
14032 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14033 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14034 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14035 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14036
14037 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
14038
14039 * minsyms.c (lookup_minimal_symbol): Update comment.
14040 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14041 (lookup_minimal_symbol_solib_trampoline): Likewise.
14042
14043 2003-01-08 Andrew Cagney <cagney@redhat.com>
14044
14045 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14046 frame_relative_level.
14047
14048 * alpha-tdep.c: Use get_frame_extra_info.
14049 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14050 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14051 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14052 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14053
14054 * alpha-tdep.c: Use get_next_frame.
14055 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14056 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14057 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14058 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14059 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14060 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14061 * xstormy16-tdep.c: Ditto.
14062
14063 2003-01-07 Andrew Cagney <cagney@redhat.com>
14064
14065 * alpha-tdep.c: Use get_frame_base.
14066 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14067 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14068 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14069 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14070 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14071 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14072 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14073 * config/sparc/tm-sparc.h: Ditto.
14074
14075 2003-01-07 Andrew Cagney <cagney@redhat.com>
14076
14077 * frame.c (deprecated_get_frame_context): New function.
14078 (deprecated_set_frame_context): New function.
14079 * frame.h (deprecated_get_frame_context): Declare.
14080 (deprecated_set_frame_context): Declare.
14081 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14082 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14083
14084 2003-01-07 Andrew Cagney <cagney@redhat.com>
14085
14086 * frame.c (deprecated_set_frame_next_hack): New function.
14087 (deprecated_set_frame_prev_hack): New function.
14088 * frame.h (deprecated_set_frame_next_hack): Declare.
14089 (deprecated_set_frame_prev_hack): Declare.
14090 * mcore-tdep.c (analyze_dummy_frame): Use
14091 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14092 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14093
14094 2003-01-07 David Carlton <carlton@math.stanford.edu>
14095
14096 * linespec.c (decode_line_1): Move code into decode_dollar.
14097 (decode_dollar): New function.
14098
14099 2003-01-07 Andrew Cagney <cagney@redhat.com>
14100
14101 * arm-tdep.c (arm_init_extra_frame_info): Use
14102 deprecated_update_frame_base_hack.
14103 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14104 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14105 (fix_frame_pointer): Ditto.
14106 (mn10300_analyze_prologue): Ditto.
14107
14108 2003-01-07 Andrew Cagney <cagney@redhat.com>
14109
14110 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14111 extra_info using frame_extra_info_zalloc.
14112 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14113 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14114 (sh64_init_extra_frame_info): Ditto.
14115 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14116 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14117 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14118 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14119 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14120 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14121 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14122 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14123 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14124 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14125 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14126 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14127
14128 * mn10300-tdep.c (analyze_dummy_frame): Use
14129 deprecated_set_frame_extra_info_hack.
14130 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14131
14132 2003-01-07 J. Brobecker <brobecker@gnat.com>
14133
14134 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14135 class is not scText. These do not define "real" procedures.
14136 (parse_partial_symbols): Likewise.
14137
14138 2003-01-06 Michael Snyder <msnyder@redhat.com>
14139
14140 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14141
14142 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14143
14144 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14145 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14146 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14147 deprecated_frame_xmalloc_with_cleanup.
14148 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14149 deprecated_frame_xmalloc.
14150 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14151 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14152
14153 2003-01-06 Andrew Cagney <cagney@redhat.com>
14154
14155 * x86-64-linux-tdep.c: Include "osabi.h".
14156 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14157
14158 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14159
14160 2003-01-06 Andrew Cagney <cagney@redhat.com>
14161
14162 * MAINTAINERS (Target Instruction Set Architectures): Update
14163 arm-elf. Can be built with -Werror, has been multiarched.
14164
14165 * value.h (unpack_long): Make buffer parameter constant.
14166 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14167 * scm-lang.h (scm_parse): Ditto.
14168 * defs.h (extract_typed_address, extract_address): Ditto.
14169 (extract_long_unsigned_integer): Ditto.
14170 * inferior.h (unsigned_pointer_to_address): Ditto.
14171 (signed_pointer_to_address): Ditto.
14172 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14173 * gdbarch.h, gdbarch.c: Regenerate.
14174 * findvar.c (extract_long_unsigned_integer): Update.
14175 (extract_address): Update.
14176 (extract_typed_address): Update.
14177 (unsigned_pointer_to_address): Update.
14178 * values.c (unpack_long): Update.
14179 (unpack_double): Update.
14180 (unpack_pointer): Update.
14181 (unpack_field_as_long): Update.
14182 * d10v-tdep.c (d10v_pointer_to_address): Update.
14183 * avr-tdep.c (avr_pointer_to_address): Update.
14184 * scm-lang.c (scm_unpack): Update.
14185 * findvar.c (signed_pointer_to_address): Update.
14186
14187 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14188
14189 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14190 since it is in i386-tdep.c.
14191
14192 2003-01-06 J. Brobecker <brobecker@gnat.com>
14193
14194 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14195 failure introduced in the previous change.
14196
14197 2003-01-05 Michael Chastain <mec@shout.net>
14198
14199 * README: Remove references to deleted remote-*.c files:
14200 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14201 remote-nrom.c, remote-os9k.c, remote-udi.c.
14202
14203 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14204
14205 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14206 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14207 i386_get_longjmp_target.
14208
14209 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14210
14211 * arm-tdep.c (prologue_cache): Change to a pointer.
14212 (_initialize_arm_tdep): Allocate prologue_cache.
14213 (check_prologue_cache): Update.
14214 (save_prologue_cache): Update.
14215 (arm_gdbarch_init): Update.
14216
14217 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14218
14219 * stabsread.c (update_method_name_from_physname): Call complaint()
14220 instead of error.
14221
14222 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14223
14224 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14225 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14226 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14227
14228 * blockframe.c: Include "gdbcmd.h" and "command.h".
14229 (backtrace_below_main): New variable.
14230 (file_frame_chain_valid, func_frame_chain_valid)
14231 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14232 (generic_func_frame_chain_valid): Remove functions.
14233 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14234 (_initialize_blockframe): New function.
14235 * Makefile.in (blockframe.o): Update dependencies.
14236 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14237 comment. Call frame_chain_valid ().
14238 * frame.h: Remove old prototypes. Add prototype for
14239 frame_chain_valid and update comments to match.
14240 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14241 Remove old comment.
14242 * gdbarch.h: Regenerated.
14243 * gdbarch.c: Regenerated.
14244
14245 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14246 set_gdbarch_frame_chain_valid.
14247 * avr-tdep.c (avr_gdbarch_init): Likewise.
14248 * cris-tdep.c (cris_gdbarch_init): Likewise.
14249 * frv-tdep.c (frv_gdbarch_init): Likewise.
14250 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14251 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14252 (i386_nw_init_abi): Likewise.
14253 (i386_gdbarch_init): Likewise.
14254 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14256 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14257 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14258 * mips-tdep.c (mips_gdbarch_init): Likewise.
14259 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14260 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14261 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14262 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14263 * s390-tdep.c (s390_gdbarch_init): Likewise.
14264 * sh-tdep.c (sh_gdbarch_init): Likewise.
14265 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14266 * v850-tdep.c (v850_gdbarch_init): Likewise.
14267 * vax-tdep.c (vax_gdbarch_init): Likewise.
14268 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14269
14270 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14271 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14272 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14273 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14274 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14275 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14276 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14277 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14278
14279 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14280
14281 * Makefile.in (acconfig_h): Remove incorrect macro.
14282 (config_h): Define.
14283 (osabi.o): Update dependencies.
14284 * configure.tgt: Set gdb_osabi based on target triplet.
14285 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14286 * configure: Regenerated.
14287 * config.in: Regenerated.
14288 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14289 (GDB_OSABI_DEFAULT): Define if not already defined.
14290 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14291 (set_osabi_string): New variables.
14292 (gdbarch_register_osabi): Add new OS ABI to
14293 gdb_osabi_available_names.
14294 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14295 (set_osabi, show_osabi): New functions.
14296 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14297
14298 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14299
14300 * arch-utils.c (gdbarch_info_init): Set osabi to
14301 GDB_OSABI_UNINITIALIZED.
14302 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14303 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14304 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14305 * gdbarch.c: Regenerated.
14306 * gdbarch.h: Regenerated.
14307 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14308 there's no BFD.
14309 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14310 * osabi.h (enum gdb_osabi): Move to defs.h.
14311 (gdbarch_init_osabi): Update prototype.
14312 * defs.h (enum gdb_osabi): Moved here.
14313 * Makefile.in: Update dependencies.
14314
14315 * alpha-tdep.h: Don't include "osabi.h".
14316 (struct gdbarch_tdep): Remove osabi member.
14317 * alpha-tdep.c: Include "osabi.h".
14318 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14319 iterate over arches. Update call to gdbarch_init_osabi.
14320 (alpha_dump_tdep): Don't dump osabi.
14321 * alpha-linux-tdep.c: Include "osabi.h".
14322 * alpha-osf1-tdep.c: Include "osabi.h".
14323 * alphafbsd-tdep.c: Include "osabi.h".
14324 * alphanbsd-tdep.c: Include "osabi.h".
14325
14326 * arm-tdep.h: Don't include "osabi.h".
14327 (struct gdbarch_tdep): Remove osabi member.
14328 * arm-tdep.c: Include "osabi.h".
14329 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14330 iterate over arches. Update call to gdbarch_init_osabi.
14331 (arm_dump_tdep): Don't dump osabi.
14332 * arm-linux-tdep.c: Include "osabi.h".
14333 * armnbsd-tdep.c: Include "osabi.h".
14334
14335 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14336 Update call to gdbarch_init_osabi.
14337
14338 * i386-tdep.h: Don't include "osabi.h".
14339 (struct gdbarch_tdep): Remove osabi member.
14340 * i386-tdep.c: Include "osabi.h".
14341 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14342 iterate over arches. Update call to gdbarch_init_osabi.
14343 (i386_dump_tdep): Don't dump osabi.
14344 * i386-linux-tdep.c: Include "osabi.h".
14345 * i386-sol2-tdep.c: Include "osabi.h".
14346 * i386bsd-tdep.c: Include "osabi.h".
14347 * i386gnu-tdep.c: Include "osabi.h".
14348 * i386ly-tdep.c: Include "osabi.h".
14349 * i386nbsd-tdep.c: Include "osabi.h".
14350 * i386obsd-tdep.c: Include "osabi.h".
14351
14352 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14353 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14354 check osabi when iterating over arches. Update call to
14355 gdbarch_init_osabi.
14356 (mips_dump_tdep): Don't dump osabi.
14357
14358 * ns32k-tdep.h: Don't include "osabi.h".
14359 (struct gdbarch_tdep): Remove.
14360 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14361 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14362 allocate tdep. Update call to gdbarch_init_osabi.
14363 (ns32k_dump_tdep): Remove.
14364 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14365 * ns32knbsd-tdep.c: Include "osabi.h".
14366
14367 * ppc-tdep.h: Don't include "osabi.h".
14368 (struct gdbarch_tdep): Remove osabi member.
14369 * rs6000-tdep.c: Include "osabi.h".
14370 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14371 osabi when iterating over arches. Update call to
14372 gdbarch_init_osabi.
14373 (rs6000_dump_tdep): Don't dump osabi.
14374 * ppc-linux-tdep.c: Include "osabi.h".
14375 * ppcnbsd-tdep.c: Include "osabi.h".
14376
14377 * sh-tdep.h: Don't include "osabi.h".
14378 (struct gdbarch_tdep): Remove osabi member.
14379 * sh-tdep.c: Include "osabi.h".
14380 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14381 iterate over arches. Update call to gdbarch_init_osabi.
14382 (sh_dump_tdep): Don't dump osabi.
14383 * shnbsd-tdep.c: Include "osabi.h".
14384
14385 * sparc-tdep.c: Include "osabi.h".
14386 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14387 iterate over arches. Update call to gdbarch_init_osabi.
14388 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14389 tdep structure.
14390
14391 * vax-tdep.h: Don't include "osabi.h".
14392 (struct gdbarch_tdep): Remove.
14393 * vax-tdep.c: Include "osabi.h".
14394 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14395 iterate over arches. Don't allocate tdep. Update call
14396 to gdbarch_init_osabi.
14397 (vax_dump_tdep): Remove.
14398 (_initialize_vax_tdep): Update call to gdbarch_register.
14399
14400 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14401
14402 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14403 entirely.
14404 (breakpoint_re_set_one): Don't fetch the value for a disabled
14405 watchpoint.
14406
14407 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14408
14409 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14410 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14411 (COERCE_FLOAT_TO_DOUBLE): Remove.
14412 * gdbarch.c: Regenerate.
14413 * gdbarch.h: Regenerate.
14414 * Makefile.in: Remove value_h from gdbarch_h.
14415 * valops.c (coerce_float_to_double): New variable.
14416 (default_coerce_float_to_double): Remove.
14417 (standard_coerce_float_to_double): Remove.
14418 (value_arg_coerce): Use coerce_float_to_double.
14419 (_initialize_valops): Add "set coerce-float-to-double".
14420 * value.h (default_coerce_float_to_double): Remove prototype.
14421 (standard_coerce_float_to_double): Remove prototype.
14422
14423 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14424 prototyped.
14425 * mdebugread.c (parse_symbol): Likewise.
14426 * stabsread.c (define_symbol): Mark all functions as prototyped.
14427
14428 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14429 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14430 set_gdbarch_coerce_float_to_double.
14431 * arm-tdep.c (arm_gdbarch_init): Likewise.
14432 * frv-tdep.c (frv_gdbarch_init): Likewise.
14433 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14434 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14435 * mips-tdep.c (mips_gdbarch_init): Likewise.
14436 (mips_coerce_float_to_double): Remove.
14437 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14438 (rs6000_coerce_float_to_double): Remove.
14439 * s390-tdep.c (s390_gdbarch_init): Likewise.
14440 * sh-tdep.c (sh_gdbarch_init): Likewise.
14441 (sh_coerce_float_to_double): Remove.
14442 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14443 (sparc_coerce_float_to_double): Remove.
14444 * v850-tdep.c (v850_gdbarch_init): Likewise.
14445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14446 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14447 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14448 (hppa_coerce_float_to_double): Remove prototype.
14449 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14450
14451 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14452
14453 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14454
14455 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14456
14457 Suggested by Stewart Brown <sb24@avaya.com>:
14458 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14459 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14460 (c_type_print_varspec_suffix): Likewise.
14461
14462 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14463
14464 * configure.in: Don't set and AC_SUBST SUBDIRS.
14465 * configure: Regenerated.
14466
14467 * configure.in: Remove code dealing with shared libraries.
14468 * Makefile.in: Remove HLDFLAGS and HLDENV.
14469 * configure: Regenerated.
14470
14471 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14472
14473 * frame.c (deprecated_frame_xmalloc): New function.
14474 (deprecated_set_frame_saved_regs_hack): New function.
14475 (deprecated_set_frame_extra_info_hack): New function.
14476 * frame.h (deprecated_frame_xmalloc): Declare.
14477 (deprecated_set_frame_saved_regs_hack): Declare.
14478 (deprecated_set_frame_extra_info_hack): Declare.
14479
14480 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14481
14482 * configure.in: Move code that provides the --enable-gdbtk option
14483 right after the code that handles the --enable-tui option, and
14484 polish it somewhat.
14485 * configure: Regenerated.
14486
14487 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14488 AC_CHECK_FUNCS and remove the old check for pread64.
14489 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14490 * acconfig.h (_GNU_SOURCE): Add.
14491 (HAVE_PREAD64): Remove.
14492 * configure, aclocal.m4, config.in: Regenerated.
14493
14494 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14495
14496 * alpha-tdep.c: Use get_frame_saved_regs.
14497 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14498 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14499 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14500 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14501 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14502
14503 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14504
14505 * configure.in: Remove all use of the SUBDIRS variable; add
14506 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14507 code providing the --enable-multi-ice option, and move it right in
14508 front of the code that checks whether gdbserver is supported.
14509 Polish that too.
14510 * configure: Regenerated.
14511 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14512 @SUBDIRS@.
14513
14514 2003-01-03 Andrew Cagney <cagney@redhat.com>
14515
14516 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14517 * avr-tdep.c, cris-tdep.c: Ditto.
14518 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14519 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14520
14521 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14522
14523 * configure.in: Remove --enable-netrom option.
14524 * configure: Regenerated.
14525
14526 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14527
14528 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14529 declaration for `struct re_pattern_buffer' instead.
14530 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14531
14532 2003-01-03 J. Brobecker <brobecker@gnat.com>
14533
14534 * mdebugread.c (parse_symbol): Count until the stEnd matching
14535 the structure name.
14536
14537 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14538
14539 * configure.in: Remove --with-cpu option.
14540 subscripts. Remove evil changequotes here.
14541 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14542 * config.in, configure: Regenerated.
14543
14544 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14545 * configure.in: Cleanup section that sources GDB and BFD configure
14546 subscripts. Remove evil changequotes here.
14547 * config.in, configure: Regenerated.
14548
14549 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14550
14551 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14552 frame accessor methods.
14553 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14554 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14555 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14556 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14557 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14558 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14559 * z8k-tdep.c: Ditto.
14560
14561 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14562
14563 * configure.in: Remove UI_OUT configuration code.
14564 * ada-lang.c: Update assuming UI_OUT is always true.
14565 * Makefile.in (UIOUT_CFLAGS): Remove.
14566 * configure: Regenerated.
14567 * TODO: Remove blurb about elimination of -DUI_OUT.
14568
14569 * configure.in: Move code that provides the --enable-gdbcli,
14570 --enable-gdbmi options right before the code that handles the
14571 --enable-tui option. Polish a bit.
14572 * configure: Regenerated.
14573
14574 * configure.in: Rewrite check for GNU regex and the
14575 --without-included regex option, and move it into the "Checks for
14576 library functions" section. This makes us use the system regex
14577 again by default on systems with version 2 of the GNU C library.
14578 This was apparently broken.
14579 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14580 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14581 * config.in, configure: Regenerated.
14582
14583 * configure.in: Move code that provides the --enable-tui option
14584 before the "Checks for libraries" section. Polish the code
14585 somewhat and set need_curses to yes if we build the TUI. Rewrite
14586 code that looks for a library providing termcap functionality to
14587 match more closely what's done in the Readline library, and move
14588 it into to the "Checks for libraries" section.
14589 * configure: Regenerated.
14590 * Makefile.in (TERMCAP): Remove variable.
14591 * config/i386/go32.mh (TERMCAP): Remove variable.
14592
14593 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14594
14595 * MAINTAINERS: Mention gdb_mbuild.sh.
14596 * gdb_mbuild.sh: Rewrite.
14597
14598 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14599
14600 * configure.in: Fix typo in last change.
14601 * config.in, configure: Regenerated.
14602
14603 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14604
14605 * valarith.c (value_binop): Delete obsolete code and comments.
14606 * configure.host: Ditto.
14607 * buildsym.h (make_blockvector): Ditto.
14608 * buildsym.c (make_blockvector): Ditto.
14609 * defs.h (enum language): Ditto.
14610 (chill_demangle): Ditto.
14611 * elfread.c (elf_symtab_read): Ditto.
14612 * dwarfread.c (CHILL_PRODUCER): Ditto.
14613 (set_cu_language): Ditto.
14614 (handle_producer): Ditto.
14615 * expprint.c (print_subexp): Ditto.
14616 * gdbtypes.c (chill_varying_type): Ditto.
14617 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14618 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14619 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14620 (chill_varying_type): Ditto.
14621 * language.h (_LANG_chill): Ditto.
14622 * language.c (binop_result_type, integral_type): Ditto.
14623 (character_type, string_type, structured_type): Ditto.
14624 (lang_bool_type, binop_type_check): Ditto.
14625 * stabsread.h (os9k_stabs): Ditto.
14626 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14627 (define_symbol, read_type, read_struct_fields): Ditto.
14628 (read_array_type, read_enum_type, read_huge_number): Ditto.
14629 (read_range_type, start_stabs): Ditto.
14630 * symfile.c (init_filename_language_table): Ditto.
14631 (add_psymbol_with_dem_name_to_list): Ditto.
14632 * symtab.c (symbol_init_language_specific): Ditto.
14633 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14634 * symtab.h (struct general_symbol_info): Ditto.
14635 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14636 * typeprint.c (typedef_print): Ditto.
14637 * utils.c (fprintf_symbol_filtered): Ditto.
14638 * valops.c (value_cast, search_struct_field, value_slice): Delete
14639 obsolete code.
14640 (varying_to_slice): Delete function.
14641 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14642 (varying_to_slice): Delete declaration.
14643 * MAINTAINERS: Update.
14644
14645 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14646
14647 * configure.in: Reorganize "Checks for library functions section"
14648 a bit. Remove check for `btowc' and `isascii' functions.
14649 * configure: Regenerated.
14650
14651 * acconfig.h (_MSE_INT_H): Remove.
14652 * configure.in: Create "Checks for header files" section, and move
14653 appropriate tests there. Don't check for objlist.h, wchar.h,
14654 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14655 misdetection fix. Also add "Checks for types", "Checks for
14656 compiler characteristics" and "Checks for library functions"
14657 sections.
14658 * config.in, configure: Regenerated.
14659
14660 * configure.in: Create "Checks for programs" section, and move
14661 appropriate tests there.
14662
14663 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14664
14665 * configure.in: Create "Checks for libraries" section, and move
14666 appropriate tests there. Cleanup check for wctype in libw. Use
14667 AC_SEARCH_LIBS to see whether we need libsocket.
14668 * configure: Regenerated.
14669
14670 For older changes see ChangeLog-2002
14671 \f
14672 Local Variables:
14673 mode: change-log
14674 left-margin: 8
14675 fill-column: 74
14676 version-control: never
14677 End:
This page took 0.387487 seconds and 4 git commands to generate.