2003-11-19 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-19 Andrew Cagney <cagney@redhat.com>
2
3 * stack.c (return_command): Handle "void", "legacy" and "unknown
4 location" return values separatly.
5 * values.c (using_struct_return): Return 0 for a "void" return
6 type. Mention "register_value_being_returned".
7 (register_value_being_returned): Mention "using_struct_return".
8
9 2003-11-19 Daniel Jacobowitz <drow@mvista.com>
10
11 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
12 (frame_base_offset): Delete.
13 (read_func_scope): Delete call to decode_locdesc.
14 (decode_locdesc): Update comments. Don't set the removed variables.
15 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
16 DW_OP_fbreg support.
17
18 2003-11-18 Daniel Jacobowitz <drow@mvista.com>
19
20 * dwarf2read.c (optimized_out, islocal): Remove.
21 (decode_locdesc): Update comments. Don't set optimized_out
22 or islocal.
23
24 2003-11-17 Jeff Johnston <jjohnstn@redhat.com>
25 David Mosberger <davidm@hpl.hp.com>
26
27 * ia64-tdep.c: Include elf.h.
28 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
29 libunwind-ia64.h.
30 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
31 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
32 (ia64_is_fpreg, ia64_access_reg): Ditto.
33 (ia64_access_fpreg, ia64_access_mem): Ditto.
34 (get_kernel_table): Ditto.
35 (ia64_find_unwind_table): Ditto.
36 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
37 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
38 (ia64_libunwind_frame_prev_register): Ditto.
39 (ia64_libunwind_frame_sniffer): Ditto.
40 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
41 sniffer. Register libunwind functions needed by generic
42 libunwind frame code using libunwind_frame_set_descr().
43
44 2003-11-16 Daniel Jacobowitz <drow@mvista.com>
45
46 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
47 bp_shlib_disabled breakpoint if there is a shared library mapped
48 at its expected address.
49
50 2003-11-16 Andrew Cagney <cagney@redhat.com>
51
52 * configure.tgt: Delete mips*tx39*-elf*.
53 * config/mips/tm-tx39.h: Delete file.
54 * config/mips/tx39.mt: Delete file.
55 * config/mips/tx39.mt: Delete file.
56
57 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
58 * remote-mips.c (common_open): Instead of
59 "mips_read_register_type" and "mips_set_processor_type_command"
60 call "deprecated_mips_set_processor_regs_hack".
61 * config/mips/tm-mips.h (mips_read_processor_type): Delete
62 declaration.
63 (mips_set_processor_type_command): Delete declaration.
64 * mips-tdep.c (mips_gdbarch_init): Update comment.
65 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
66 (mips_set_processor_type): Delete function.
67 (NUM_MIPS_PROCESSOR_REGS): Define.
68 (mips_show_processor_type_command): Delete function.
69 (mips_set_processor_type_command): Delete function.
70 (tmp_mips_processor_type): Delete.
71 (mips_processor_type): Delete.
72 (mips_processor_type_table): Delete.
73 (mips_r3051_reg_names): Delete.
74 (mips_r3081_reg_names): Delete.
75 (mips_lsi33k_reg_names): Delete.
76 (mips_processor_reg_names): Delete.
77 (mips_read_processor_type): Delete function.
78 (deprecated_mips_set_processor_regs_hack): New function.
79 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
80 (mips_register_name): Get the processor names from the tdep.
81 (mips_tx39_reg_names): New array.
82 (mips_generic_reg_names): Wire to a standard set of names.
83 (mips_gdbarch_init): Set "mips_processor_reg_names".
84 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
85 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
86 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
87
88 2003-11-16 Andrew Cagney <cagney@redhat.com>
89
90 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
91 (mips_fpa0_regnum, mips_regnum): New function.
92 (mips_gdbarch_init): Fill in the "regnum" fields.
93 * mips-tdep.h (struct mips_regnum): Define.
94 (mips_regnum): Declare.
95 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
96 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
97 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
98 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
99 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
100 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
101 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
102 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
103 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
104 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
105 * remote-mips.c: Include "mips-tdep.h". Update.
106 * mipsnbsd-tdep.c: Update.
107 * mipsv4-nat.c: Update.
108 * mips-tdep.c: Update.
109 * mips-nat.c: Update.
110 * mips-linux-tdep.c: Update.
111 * mips-linux-nat.c: Update.
112 * irix5-nat.c: Update.
113 * dve3900-rom.c: Include "mips-tdep.h". Update.
114 (ignore_packet): Supress GCC warning.
115 * config/mips/nm-riscos.h: Update.
116
117 2003-11-16 Andrew Cagney <cagney@redhat.com>
118
119 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
120 register_size.
121 (mips_register_raw_size): Delete function.
122 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
123 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
124 Check and set "mips64_transfers_32bit_regs_p".
125 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
126 (mips_register_convertible): Check the architecture's
127 "mips64_transfers_32bit_regs_p".
128 (set_mips64_transfers_32bit_regs): New function.
129 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
130 "set remote-mips64-transfers-32bit-regs" command. Specify
131 set_mips64_transfers_32bit_regs as the set function.
132 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
133
134 2003-11-16 Mark Kettenis <kettenis@gnu.org>
135
136 * i386-tdep.h (i386_supply_gregset): Provide prototype.
137 * i386-tdep.c (i386_supply_gregset): Make public.
138
139 2003-11-16 Andrew Cagney <cagney@redhat.com>
140
141 * mips-tdep.c (mips_register_byte): Delete function.
142 (mips_gdbarch_init): Do not set "deprecated_register_byte".
143 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
144 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
145 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
146
147 2003-11-16 Mark Kettenis <kettenis@gnu.org>
148
149 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
150
151 2003-11-16 Andrew Cagney <cagney@redhat.com>
152
153 * config/mips/linux64.mt: Delete file.
154 * config/mips/tm-linux64.h: Delete file.
155 * config/mips/tm-mips64.h: Delete file.
156 * config/mips/embed64.mt: Delete file.
157 * config/djgpp/fnchange.lst: Update.
158 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
159 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
160 * config/mips/tm-irix6.h: Update copyright. Include
161 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
162 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
163 "OP_LDGPR".
164
165 2003-11-15 Andrew Cagney <cagney@redhat.com>
166
167 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
168 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
169 n32 registers 64 bit.
170 (mips_register_raw_size, mips_register_byte): For pseudo
171 registers, use the register's pseudo size and not the
172 corresponding raw register's size.
173 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
174 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
175 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
176 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
177
178 2003-11-15 Andrew Cagney <cagney@redhat.com>
179
180 * mips-tdep.c (struct gdbarch_tdep): Delete member
181 gdb_target_is_mips64.
182 (GDB_TARGET_IS_MIPS64): Delete macro.
183 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
184 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
185 (mips_addr_bits_remove): Simplify.
186
187 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
188 register_size.
189
190 Replace MIPS_REGSIZE with mips_regsize.
191 * mips-tdep.c (mips_regsize): New function.
192 * mips-tdep.h (mips_regsize): Declare.
193 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
194 (SIZEOF_STRUCT_REG): Update.
195 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
196 (mipsnbsd_fill_reg): Update.
197 (mipsnbsd_supply_fpreg): Update.
198 (mipsnbsd_fill_fpreg): Update.
199 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
200 * mips-tdep.c (mips_register_raw_size): Update.
201 (mips_register_type): Update.
202 (SIGFRAME_BASE): Update.
203 (SIGFRAME_PC_OFF): Update.
204 (SIGFRAME_REGSAVE_OFF): Update.
205 (SIGFRAME_FPREGSAVE_OFF): Update.
206 (SIGFRAME_REG_SIZE): Update.
207 (mips32_heuristic_proc_desc): Update.
208 (print_gp_register_row): Update.
209 (mips_dump_tdep): Do not print MIPS_REGSIZE.
210 * irix5-nat.c (supply_gregset): Update.
211 (fetch_core_registers): Update.
212 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
213 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
214 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
215 (MIPS_REGISTER_BYTE): Update.
216 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
217
218 2003-11-15 Andrew Cagney <cagney@redhat.com>
219
220 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
221 USE_REGISTER_NOT_ARG.
222 * stabsread.c (define_symbol): Update.
223
224 2003-11-15 Andrew Cagney <cagney@redhat.com>
225
226 * bcache.h (deprecated_bcache): Declare.
227 (bcache): Make returned buffer constant.
228 * bcache.c (deprecated_bcache): New function.
229 (bcache_data): New function.
230 (bcache): Call bcache data.
231 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
232 (add_psymbol_with_dem_name_to_list): Ditto.
233
234 2003-11-15 Mark Kettenis <kettenis@gnu.org>
235
236 * glibc-tdep.h (struct gdbarch): Declare opaque.
237 (glibc_skip_solib_resolver): Adjust prototype.
238 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
239 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
240 (arm_linux_init_abi): Set skip_solib_resolver.
241 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
242 (i386_linux_init_abi): Set skip_solib_resolver.
243 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
244 (arm_linux_skip_solib_resolver): Remove prototype.
245 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
246 (i386_linux_skip_solib_resolver): Remove prototype.
247
248 2003-11-14 Mark Kettenis <kettenis@gnu.org>
249
250 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
251 function.
252 * gdbarch.c, gdbarch.h: Regenerate.
253 * infrun.c (handle_inferior_event): Call
254 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
255 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
256 definition.
257 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
258 prototype.
259
260 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
261
262 * libunwind-frame.c: New file.
263 * libunwind-frame.h: New file.
264 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
265 * configure.in: Add --with-libunwind option support. Define
266 HAVE_LIBUNWIND if libunwind support selected / defaulted.
267 Also check for libunwind.h and libunwind-ia64.h headers.
268 * configure: Regenerated.
269 * Makefile.in: Add support for libunwind-frame.o.
270 * config.in: Regenerated.
271
272 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
273
274 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
275 set up the ia64 linux native target method for getting the kernel
276 unwind table.
277 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
278 * inftarg.c (child_xfer_partial): Enable section of code to
279 handle TARGET_OBJECT_UNWIND_TABLE.
280 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
281
282 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
283
284 * config/arm/nbsd.mt (TM_FILE): Define.
285 * config/arm/tm-nbsd.h: New file.
286
287 2003-11-14 Andrew Cagney <cagney@redhat.com>
288
289 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
290 * ppc-sysv-tdep.c: Include "objfiles.h".
291 (ppc64_sysv_abi_push_dummy_call): Provide the
292 the FN's objfile when looking for the descriptor.
293
294 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
295 "name_of_malloc" to ".malloc".
296
297 2003-11-13 Mark Kettenis <kettenis@gnu.org>
298
299 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
300
301 2003-11-13 David Carlton <carlton@kealia.com>
302
303 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
304
305 2003-11-13 Andrew Cagney <cagney@redhat.com>
306
307 * arch-utils.h (selected_architecture_name): Declare.
308 (selected_byte_order): Declare.
309 * arch-utils.c (selected_byte_order): New function.
310 (selected_architecture_name): New function.
311 (target_architecture_auto): Make static.
312 (set_architecture_string): Make static.
313 (target_byte_order): Make static.
314 (target_byte_order_auto): Make static.
315 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
316 non-multi-arch definition.
317 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
318 (target_byte_order, target_architecture): Delete declaration.
319 (target_byte_order_auto, target_architecture_auto): Ditto.
320 * gdbarch.h: Re-generate.
321 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
322 "selected_byte_order".
323
324 2003-11-13 Andrew Cagney <cagney@redhat.com>
325
326 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
327
328 2003-11-13 Jim Blandy <jimb@redhat.com>
329
330 * cp-namespace.c: Doc fix.
331
332 2003-11-12 Michael Snyder <msnyder@redhat.com>
333
334 * sh64_tdep.c: Regularize some names.
335 (sh_sh64_register_name): Rename to sh64_register_name.
336 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
337 (sh_sh64_register_byte): Rename to sh64_register_byte.
338 (sh_sh64_build_float_register_type):
339 Rename to sh64_build_float_register_type.
340 (sh_sh64_register_convert_to_virtual):
341 Rename to sh64_register_convert_to_virtual.
342 (sh_sh64_register_convert_to_raw):
343 Rename to sh64_register_convert_to_raw.
344
345 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
346 sh64_media_reg_base_num, sh64_compact_reg_base_num,
347 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
348 sh64_extract_return_value, sh64_show_media_regs,
349 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
350 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
351 sh64_pseudo_register_read, sh64_pseudo_register_write,
352 sh64_do_pseudo_register, sh_compact_print_registers_info):
353 Delete unused variable 'tdep'.
354
355 * sh64-tdep.c: Coding standard and spelling comment fixes.
356 (sh64_extract_return_value): Replace deprecated_store_floating
357 with store_typed_floating.
358 (sh_sh64_register_convert_to_raw): Replace
359 deprecated_store_floating with store_typed_floating.
360 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
361 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
362 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
363 sh64_extract_struct_value_address, sh64_pop_frame,
364 sh64_extract_return_value, sh64_store_return_value,
365 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
366 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
367 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
368 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
369 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
370 deprecated_register_virtual_type, deprecated_register_raw_size,
371 deprecated_max_register_raw_size, or
372 deprecated_max_register_virtual_size. Instead, just set
373 gdbarch_register_type.
374 (sh_sh64_register_raw_size): Delete.
375 (sh_sh64_register_virtual_size): Delete.
376
377 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
378
379 * dwarf2read.c (struct dwarf2_cu): New type.
380
381 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
382 dwarf2_cu structure to pass down.
383
384 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
385 (add_partial_enumeration, locate_pdi_sibling, process_die)
386 (read_file_scope, read_func_scope)
387 (read_lexical_block_scope, dwarf2_get_pc_bounds)
388 (dwarf2_add_field, dwarf2_attach_fields_to_type)
389 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
390 (read_structure_scope, read_enumeration, read_array_type)
391 (read_common_block, read_namespace, read_tag_pointer_type)
392 (read_tag_ptr_to_member_type, read_tag_reference_type)
393 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
394 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
395 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
396 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
397 (read_full_die. read_attribute_value, read_attribute)
398 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
399 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
400 (die_containing_type, type_at_offset, tag_type_to_type)
401 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
402 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
403
404 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
405
406 PR breakpoints/1450
407 * breakpoint.c (insert_bp_location): Fix a logic error by returning
408 0 after a catchpoint fails.
409
410 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
411
412 * mips-tdep.c (msymbol_size): Delete.
413
414 2003-11-07 Michael Chastain <mec@shout.net>
415
416 * symtab.h (struct minimal_symbol): Add size.
417 * dbxread.c: Use it.
418 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
419 Rename to record_minimal_symbol.
420 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
421 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
422 (install_minimal_symbols): Ditto.
423 * objfiles.c (terminate_minimal_symbol_table): Ditto.
424 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
425 * m68hc11-tdep.c: Ditto.
426 * mips-tdep.c: Ditto.
427 * sh64-tdep.c: Ditto.
428
429 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
430
431 * MAINTAINERS: Change my e-mail address.
432
433 2003-11-10 Andrew Cagney <cagney@redhat.com>
434
435 * gdbarch.sh (return_value): Replace "inval" and "outval" with
436 "readbuf" and "writebuf".
437 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
438 * d10v-tdep.c (d10v_return_value): Ditto.
439 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
440 (ppc_sysv_abi_broken_return_value): Ditto.
441 (ppc64_sysv_abi_return_value): Ditto.
442 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
443 (ppc_sysv_abi_return_value): Ditto.
444 (ppc_sysv_abi_broken_return_value): Ditto.
445 (ppc64_sysv_abi_return_value): Ditto.
446 * values.c (register_value_being_returned): Update call.
447 * stack.c (return_command): Update call.
448 * gdbarch.h, gdbarch.c: Re-generate.
449
450 * target.h (struct target_ops): Order xfer buffer parameters "read
451 write" not "write read".
452 * bfd-target.c (target_bfd_xfer_partial): Update.
453 * remote.c (remote_xfer_partial): Update.
454 * inftarg.c (child_xfer_partial): Update.
455 * target.c (default_xfer_partial): Update.
456 (target_read_partial, target_write_partial): Update.
457 (debug_to_xfer_partial): Update.
458
459 * arch-utils.h, arch-utils.c: Fix typo in comment.
460
461 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
462 (gdbarch_from_bfd): Call gdbarch_find_by_info.
463 (set_gdbarch_from_file): Call
464 "deprecated_current_gdbarch_select_hack".
465
466 2003-11-09 Andrew Cagney <cagney@redhat.com>
467
468 * arch-utils.c (gdbarch_update_p): New function.
469 * gdbarch.sh (gdbarch_update_p): Delete function.
470 (find_arch_by_info, gdbarch_find_by_info): New functions.
471 (deprecated_current_gdbarch_select_hack): New function.
472 * gdbarch.c: Re-generate.
473
474 * gdbarch.sh (clear_gdbarch_swap): Delete function.
475 (swapout_gdbarch_swap): Delete function.
476 (swapin_gdbarch_swap): Delete function.
477 (init_gdbarch_swap): Delete function.
478 (initialize_non_multiarch): Delete function.
479 (current_gdbarch_swap_in_hack): New function.
480 (current_gdbarch_swap_out_hack): New function.
481 (current_gdbarch_swap_init_hack): New function.
482 * gdbarch.c: Re-generate.
483
484 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
485 parameter to "current_gdbarch". Add comment explaining why.
486 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
487 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
488 * gdbarch.c: Re-generate.
489
490 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
491 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
492 * config/s390/xm-linux.h: Delete file.
493 * config/m88k/xm-delta88v4.h: Delete stray.
494
495 * Makefile.in (arch-utils.o): Update dependencies.
496 * arch-utils.c: Include "osabi.h".
497 (gdbarch_info_fill): New function.
498 * arch-utils.h (gdbarch_info_fill): Declare.
499 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
500 * gdbarch.c: Re-generate.
501
502 2003-11-09 Mark Kettenis <kettenis@gnu.org>
503 David S. Miller <davem@redhat.com>
504
505 * glibc-tdep.c, glibc-tdep.h: New files.
506 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
507 * config/i386/linux.mt (TDEPFILES): Likewise.
508 * i386-linux-tdep.c (glibc-tdep.h): Include.
509 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
510 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
511 * arm-linux-tdep.c (glibc-tdep.h): Include.
512 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
513 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
514 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
515 (glibc_tdep_h): Define.
516 (glibc-tdep.o): Add dependencies.
517 (arm-linux-tdep.o): Update dependencies.
518 (i386-linux-tdep.o): Likewise.
519
520 2003-11-09 Andrew Cagney <cagney@redhat.com>
521
522 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
523 * config/mips/nm-irix6.h: Delete file.
524 * config/mips/nm-linux.h: Update copyright.
525 (MIPS_GNULINUX_TARGET): Delete macro.
526 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
527 * config/mips/xm-irix6.h: Delete file.
528 * config/mips/linux.mh (XM_FILE): Delete definition.
529 * config/mips/xm-linux.h: Delete file.
530
531 2003-11-09 Andrew Cagney <cagney@redhat.com>
532
533 * d10v-tdep.c (d10v_return_value): New function.
534 (d10v_use_struct_convention): Delete function.
535 (d10v_store_return_value): Delete function.
536 (d10v_extract_struct_value_address): Delete function.
537 (d10v_gdbarch_init): Set "return_value" instead of
538 "extract_return_value", "store_return_value",
539 "extract_struct_value_address", and "use_struct_convention".
540 (RET1_REGNUM): Delete const.
541
542 2003-11-09 Mark Kettenis <kettenis@gnu.org>
543
544 From David S. Miller <davem@redhat.com>:
545 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
546 * gdbarch.c, gdbarch.h: Regenerated.
547 * arch-utils.c (generic_skip_solib_resolver): New function.
548 * arch-utils.h (generic_skip_solib_resolver): New prototype.
549 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
550
551 2003-11-07 Andrew Cagney <cagney@redhat.com>
552
553 * top.c (print_gdb_version): Replace STREQ with strcmp.
554 * valops.c (value_struct_elt_for_reference): Ditto.
555 (value_struct_elt_for_reference): Ditto.
556 * symtab.c (gdb_mangle_name): Ditto.
557 (find_line_symtab): Ditto.
558 * symmisc.c (maintenance_print_symbols): Ditto.
559 * symfile.c (symbol_file_command): Ditto.
560 * stabsread.c (define_symbol, read_type): Ditto.
561 (cleanup_undefined_types, scan_file_globals): Ditto.
562 * solib.c (solib_map_sections): Ditto.
563 * solib-svr4.c (bfd_lookup_symbol): Ditto.
564 * rs6000-tdep.c (skip_prologue): Ditto.
565 * p-valprint.c (pascal_value_print): Ditto.
566 (pascal_object_is_vtbl_ptr_type): Ditto.
567 * objfiles.c (in_plt_section): Ditto.
568 * minsyms.c (lookup_minimal_symbol): Ditto.
569 (compact_minimal_symbols): Ditto.
570 (find_solib_trampoline_target): Ditto.
571 * mdebugread.c (parse_type): Ditto.
572 * language.c (set_language_command): Ditto.
573 (set_type_command, set_range_command): Ditto.
574 * f-lang.c (add_common_block): Ditto.
575 (add_common_block): Ditto.
576 (find_first_common_named): Ditto.
577 (patch_all_commons_by_name): Ditto.
578 * elfread.c (elf_locate_sections): Ditto.
579 (elf_locate_sections): Ditto.
580 (elfstab_offset_sections): Ditto.
581 * dwarf2read.c (dwarf2_locate_sections): Ditto.
582 * dbxread.c (add_old_header_file): Ditto.
583 (find_corresponding_bincl_psymtab): Ditto.
584 (read_dbx_symtab, process_one_symbol): Ditto.
585 * coffread.c (patch_opaque_types): Ditto.
586 * cli/cli-decode.c (delete_cmd): Ditto.
587 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
588 * c-typeprint.c (c_type_print_base): Ditto.
589 * breakpoint.c (bpstat_stop_status): Ditto.
590 (clear_command, breakpoint_re_set_one): Ditto.
591
592 2003-11-07 Andrew Cagney <cagney@redhat.com>
593
594 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
595 * bcache.c (struct bstring): Make "length" an unsigned short, add
596 "half_hash".
597 (struct bcache): Add "half_hash_error_count".
598 (bcache): Compute and save the "half_hash". Compare the
599 "half_hash" before comparing the length. Update
600 half_hash_error_count.
601
602 2003-11-07 Andrew Cagney <cagney@redhat.com>
603
604 * inftarg.c (child_xfer_partial): New function
605 (init_child_ops): Set "to_xfer_partial".
606
607 2003-11-07 Andrew Cagney <cagney@redhat.com>
608
609 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
610 set "return_value" instead of "use_struct_convention".
611 (ppc_linux_use_struct_convention): Delete function.
612 (ppc_linux_return_value): New function.
613 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
614 (ppc_sysv_abi_broken_return_value): New function.
615 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
616 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
617 static.
618 (ppc_sysv_abi_extract_return_value): Delete function.
619 (ppc_sysv_abi_broken_extract_return_value): Delete function.
620 (ppc_sysv_abi_store_return_value): Delete function.
621 (ppc_sysv_abi_broken_store_return_value): Delete function.
622 (ppc_sysv_abi_use_struct_convention): Delete function.
623 (ppc64_sysv_abi_use_struct_convention): Delete function.
624 (ppc64_sysv_abi_extract_return_value): Delete function.
625 (ppc64_sysv_abi_store_return_value): Delete function.
626 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
627 (ppcnbsd_init_abi): Set "return_value", instead of
628 "use_struct_convention", "extract_return_value", and
629 "store_return_value".
630 (ppcnbsd_use_struct_convention): Delete function.
631 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
632 (ppc_sysv_abi_return_value): Declare.
633 (ppc_sysv_abi_broken_return_value): Declare.
634 (ppc_sysv_abi_use_struct_convention): Delete.
635 (ppc_sysv_abi_store_return_value): Delete.
636 (ppc_sysv_abi_extract_return_value): Delete.
637 (ppc_sysv_abi_broken_store_return_value): Delete.
638 (ppc_sysv_abi_broken_extract_return_value): Delete.
639 (ppc64_sysv_abi_use_struct_convention): Delete.
640 (ppc64_sysv_abi_extract_return_value): Delete.
641 (ppc64_sysv_abi_store_return_value): Delete.
642 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
643 set "return_value" instead of "extract_return_value",
644 "store_return_value", and "use_struct_convention".
645
646 2003-11-07 Mark Kettenis <kettenis@gnu.org>
647
648 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
649
650 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
651 fscanf.
652
653 2003-11-07 Mark Kettenis <kettenis@gnu.org>
654
655 * fbsd-proc.c: Fix formatting.
656
657 2003-11-06 Kevin Buettner <kevinb@redhat.com>
658
659 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
660 Define.
661 (new_variant): Set name for iacc0_regnum.
662 (frv_register_name): Accommodate pseudo-registers.
663 (frv_register_type): Add case for iacc0_regnum.
664 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
665 (frv_gdbarch_init): Set number of pseudo registers. Establish
666 pseudo-register read/write methods.
667
668 2003-11-06 Andrew Cagney <cagney@redhat.com>
669
670 * valops.c (destructor_name_p): Replace STREQN with strncmp.
671 * top.c (command_line_input): Ditto.
672 * objc-exp.y (yylex): Ditto.
673 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
674 * jv-exp.y (yylex): Ditto.
675 * f-exp.y (yylex): Ditto.
676 * event-top.c (command_line_handler): Ditto.
677 * environ.c (get_in_environ): Ditto.
678 (set_in_environ): Ditto.
679 * dwarfread.c (handle_producer): Ditto.
680 * dbxread.c (process_one_symbol): Ditto.
681 * c-typeprint.c (c_type_print_base): Ditto.
682 * c-exp.y (yylex): Ditto.
683
684 2003-11-06 Andrew Cagney <cagney@redhat.com>
685 Jeff Johnston <jjohnstn@redhat.com>
686
687 * target.c (add_target): Only set "to_xfer_partial" when NULL.
688 (init_dummy_target): Set "to_xfer_partial".
689
690 2003-11-06 Andrew Cagney <cagney@redhat.com>
691
692 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
693 REGISTER_CONVENTION.
694
695 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
696
697 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
698 static.
699
700 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
701
702 * breakpoint.c (remove_breakpoint): Take an bp_location
703 instead of a breakpoint argument. Check the bp_location's type.
704 Fix a reversed condition for hardware breakpoints.
705
706 (insert_bp_location): Update call to remove_breakpoint.
707 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
708 (remove_hw_watchpoints): Likewise.
709 (reattach_breakpoints): Likewise.
710 (detach_breakpoints): Likewise.
711 (delete_breakpoint): Likewise.
712
713 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
714
715 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
716 (beakpoint_init_inferior): Likewise.
717 (breakpoint_here_p): Likewise. Only check addresses for software
718 or hardware breakpoints.
719 (breakpoint_inserted_here_p): Likewise.
720 (breakpoint_thread_match): Likewise. Correct comment.
721 (bpstat_have_active_hw_watchpoints): Likewise.
722 (check_duplicates): Likewise.
723
724 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
725
726 * breakpoints.c (insert_bp_location): New function, broken out
727 from insert_breakpoints. Work on an bp_location instead of a
728 breakpoint.
729 (insert_breakpoints): Use it.
730
731 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
732
733 * breakpoint.h (struct bp_location): Add section.
734 (struct breakpoint): Remove section.
735 * breakpoint.c (insert_breakpoints, remove_breakpoint)
736 (breakpoint_here_p, breakpoint_inserted_here_p)
737 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
738 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
739 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
740 section through loc.
741
742 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
743
744 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
745 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
746
747 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
748
749 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
750 arguments. Initialize owner and type for the new breakpoint
751 location item.
752 (set_raw_breakpoint): Update call to allocate_bp_location.
753
754 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
755
756 * breakpoint.h (struct bp_location): Add a chain pointer.
757 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
758 macros.
759 (bp_location_chain): New variable.
760 (allocate_bp_location): New function.
761 (set_raw_breakpoint): Use it.
762 (delete_breakpoint): Remove ->loc from the bp_location_chain.
763
764 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
765
766 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
767 (struct breakpoint): Remove address, shadow_contents, inserted,
768 requested_address, and duplicate. Add a struct bp_location.
769 * breakpoint.c (condition_command, read_memory_nobpt)
770 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
771 (reattach_breakpoints, update_breakpoints_after_exec)
772 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
773 (breakpoint_init_inferior, breakpoint_here_p)
774 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
775 (breakpoint_thread_match, bpstat_stop_status)
776 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
777 (describe_other_breakpoints, check_duplicates)
778 (make_breakpoint_permanent, create_thread_event_breakpoint)
779 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
780 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
781 (watch_command_1, print_one_exception_catchpoint)
782 (clear_command, breakpoint_re_set_one): Adjust member accesses to
783 use the breakpoint's ->loc.
784 (set_raw_breakpoint): Likewise. Initialize ->loc.
785 (delete_breakpoint): Likewise. Free ->loc.
786
787 2003-11-05 Andrew Cagney <cagney@redhat.com>
788
789 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
790 macro.
791 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
792 * config/i386/tm-cygwin.h
793 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
794 * config/powerpc/tm-linux.h
795 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
796 (at_subroutine_call_instruction_target): Delete declaration.
797 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
798 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
799 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
800
801 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
802 "struct bfd_section" and "struct bfd".
803 * target.h (struct section_table): Ditto.
804 * rs6000-nat.c (xcoff_relocate_core): Ditto.
805 * solib-svr4.c (elf_locate_base): Ditto.
806 * pa64solib.c (dld_cache_t): Ditto.
807 * objfiles.h (struct obj_section): Ditto.
808 * objfiles.c (add_to_objfile_sections): Ditto.
809 * exec.c (bfdsec_to_vmap): Ditto.
810 (add_to_section_table): Ditto.
811 (build_section_table): Ditto.
812 * corelow.c (get_core_register_section): Ditto.
813 * coffread.c (find_linenos): Ditto.
814 * elfread.c (elf_interpreter): Delete #if0'd function.
815
816 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
817 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
818 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
819 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
820
821 * arch-utils.h (generic_cannot_extract_struct_value_address):
822 Delete declaration.
823 * wince.c (_initialize_wince): Fix multi-line string.
824 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
825
826 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
827
828 * top.c (execute_command): Fix broken logic for command execution
829 while inferior is running in async mode.
830
831 2003-11-06 Mark Kettenis <kettenis@gnu.org>
832
833 * dwarf2-frame.c (execute_cfa_program): Mark register as
834 REG_SAVED_REG for DW_CFA_register opcode.
835
836 2003-11-05 Mark Kettenis <kettenis@gnu.org>
837
838 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
839 %rsp, %rip and %eflags to match ABI-change.
840
841 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
842
843 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
844 (ia64_gdbarch_init): Don't bother calculating the os.
845 Instead use the gdbarch_info struct and look at the osabi field.
846 Also use gdbarch_list_lookup_by_info() to look for a
847 candidate gdbarch.
848
849 2003-11-05 Kevin Buettner <kevinb@redhat.com>
850
851 * frv-tdep.c (frv_register_byte): Delete.
852 (frv_extract_return_value, frv_store_return_value)
853 (frv_extract_struct_value_address): Don't call frv_register_byte().
854 Convert to non-deprecated form.
855 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
856 Convert calls to set_gdbarch_deprecated_extract_return_value(),
857 set_gdbarch_deprecated_store_return_value(), and
858 set_gdbarch_deprecated_extract_struct_value_address() into
859 non-deprecated forms.
860
861 2003-11-05 Andrew Cagney <cagney@redhat.com>
862
863 * mips-tdep.c (mips_dump_tdep): Do not print
864 PRINT_EXTRA_FRAME_INFO.
865 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
866 Rename PRINT_EXTRA_FRAME_INFO.
867 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
868 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
869 (mips_print_extra_frame_info): Delete declaration.
870 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
871
872 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
873
874 * coffread.c (coff_symtab_read): Remove passing of info parameter
875 to prim_record_minimal_symbol_and_info.
876
877 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
878
879 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
880 (decode_base_type): Delete ifdeffed out code.
881
882 2003-11-04 Andrew Cagney <cagney@redhat.com>
883
884 * symtab.c (find_active_alias): Delete function.
885 (lookup_block_symbol): Delete alias code.
886 * stabsread.c (resolve_live_range): Delete function.
887 (add_live_range): Delete function.
888 (resolve_symbol_reference): Delete function.
889 (define_symbol): Delete live range and alias code.
890 (scan_file_globals): Delete alias code.
891 * symtab.h (SYMBOL_RANGES): Delete macro.
892 (struct range_list): Delete structure.
893 (struct symbol): Delete field "ranges".
894 (SYMBOL_ALIASES): Delete macro.
895 (struct alias_list): Delete structure.
896 (struct symbol): Delete field "aliases".
897
898 2003-11-04 Michael Snyder <msnyder@redhat.com>
899
900 * MAINTAINERS: Remove myself as owner of breakpoints and
901 of sparc/solaris.
902
903 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
904
905 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
906 (sh_sh4al_dsp_register_name): Ditto.
907 (sh4_nofpu_show_regs): Ditto.
908 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
909 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
910
911 2003-11-03 Andrew Cagney <cagney@redhat.com>
912
913 * bcache.c: Include "gdb_assert.h".
914 (struct bcache): Add fields "expand_count" and
915 "expand_hash_count".
916 (expand_hash_table): Update the expand counts.
917 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
918 on object sizes and hashes.
919 * Makefile.in (bcache.o): Update dependencies.
920
921 2003-11-03 Andrew Cagney <cagney@redhat.com>
922
923 * exec.c (xfer_memory): Eliminate xfer_fn.
924
925 2003-10-31 Kevin Buettner <kevinb@redhat.com>
926
927 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
928 (opcodes/frv-desc.h): Include.
929 (iacc0h_regnum, iacc0l_regnum): Define.
930 (last_spr_regnum, frv_num_regs): Update.
931 (new_variant): Don't supply default names for holes in the SPRs.
932 Supply names for iacc0h_regnum and iacc0l_regnum.
933 (frv_register_type): Use symbolic constants first_fpr_regnum and
934 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
935 builtin_type_int instead of builtin_type_int32.
936 (frv_register_sim_regno): New function.
937 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
938 * Makefile.in (gdb_sim_frv_h): Define.
939 (frv-tdep.o): Update dependencies.
940
941 2003-10-31 Andrew Cagney <cagney@redhat.com>
942
943 * avr-tdep.c (avr_frame_this_id): Do not call
944 deprecated_inside_entry_file.
945 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
946 * m32r-tdep.c (m32r_frame_this_id): Ditto.
947 * d10v-tdep.c (d10v_frame_this_id): Ditto.
948 * arm-tdep.c (arm_prologue_this_id): Ditto.
949 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
950
951 2003-10-31 Jim Blandy <jimb@redhat.com>
952
953 * elfread.c (elf_symtab_read): Allocate correct number of tail
954 elements to sectinfo structure. (Fix from Woody LaRue.)
955
956 2003-10-31 Andrew Cagney <cagney@redhat.com>
957
958 * stack.c (return_command): Use get_frame_type, instead of
959 CALL_DUMMY_HAS_COMPLETED.
960 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
961 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
962
963 2003-10-31 Mark Kettenis <kettenis@gnu.org>
964
965 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
966 explicitly specify size of array.
967 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
968 TDEP->sc_num_regs.
969
970 2003-10-31 Andrew Cagney <cagney@redhat.com>
971
972 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
973 function.
974 (s390_gdbarch_init): Set extract_struct_value_address.
975 * arch-utils.c (generic_cannot_extract_struct_value_address):
976 Delete function.
977 * arch-utils.h (generic_cannot_extract_struct_value_address):
978 Delete definition.
979
980 2003-10-31 Mark Kettenis <kettenis@gnu.org>
981
982 * i386-linux-nat.c (fetch_core_registers): Remove.
983 (linux_elf_core_fns): Remove.
984 (_initialize_i386_linux_nat): Remove.
985
986 2003-10-31 Andrew Cagney <cagney@redhat.com>
987
988 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
989 "exec.h".
990 (exec_entry_point): New function.
991 (enable_break): Create a "tmp_bfd_target", use that and
992 entry_point_address when computing the relocation offset.
993 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
994 * Makefile.in (solib-svr4.o): Update dependencies.
995
996 2003-10-31 Andrew Cagney <cagney@redhat.com>
997
998 * defs.h (XZALLOC): Define.
999 * target.h (struct target_ops): Add "to_data";
1000 * bfd-target.h, bfd-target.c: New files.
1001 * Makefile.in (SFILES): Add "bfd-target.c".
1002 (COMMON_OBS): Add "bfd-target.o".
1003 (bfd-target.o): Specify dependencies.
1004 (bfd_target_h): Define.
1005 * defs.h (XZALLOC): Define.
1006
1007 2003-10-31 Andrew Cagney <cagney@redhat.com>
1008
1009 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1010 adjust_breakpoint_address.
1011 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1012 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1013 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1014 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1015
1016 2003-10-31 Andrew Cagney <cagney@redhat.com>
1017
1018 * target.h (struct target_ops): Replace "to_read_partial" and
1019 "to_write_partial" with "to_xfer_partial". Update comments.
1020 * target.c (debug_to_write_partial): Delete function.
1021 (debug_to_xfer_partial): Replace debug_to_read_partial.
1022 (add_target, update_current_target, setup_target_debug): Set
1023 "to_xfer_partial" instead of "to_read_partial" and
1024 "to_write_partial".
1025 (default_xfer_partial): Replace "default_write_partial".
1026 (default_read_partial): Delete.
1027 (target_read_partial, target_write_partial): Call
1028 "to_xfer_partial".
1029 * remote.c (init_remote_ops): Set "to_xfer_partial".
1030 (init_remote_async_ops): Ditto.
1031 (remote_xfer_partial): Replace "remote_read_partial".
1032
1033 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1034
1035 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1036 registers in `fxsave' format.
1037 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1038
1039 2003-10-30 Mark Kettenis <kettenis@gnu.org>
1040
1041 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1042 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1043 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1044
1045 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1046 specify size of array.
1047 (i386_linux_init_abi): Remove initialization of
1048 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1049 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1050
1051 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1052 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1053 core-regset.o.
1054
1055 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1056 the ELF header.
1057
1058 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1059
1060 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1061 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1062 core-regset.o.
1063
1064 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1065
1066 * corelow.c: Include "arch-utils.h", "regset.h" and
1067 "gdb_assert.h".
1068 (core_gdbarch): New variable.
1069 (sniff_core_bfd): Don't sniff if we have support for register sets
1070 in CORE_GDBARCH.
1071 (core_close): Reset CORE_GDBARCH.
1072 (core_open): Initialize CORE_GDBARCH.
1073 (get_core_register_section): Use register sets if they are
1074 supported by CORE_GDBARCH.
1075 (get_core_registers): Don't print error message if we have support
1076 for register sets in CORE_GDBARCH.
1077
1078 2003-10-29 Andrew Cagney <cagney@redhat.com>
1079
1080 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1081 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1082
1083 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1084
1085 * objfiles.h (clear_objfile_data): New prototype.
1086 * objfiles.c (clear_objfile_data): New function.
1087 * symfile.c (reread_symbols): Clear per-objfile data.
1088
1089 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1090
1091 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1092 printf_unfiltered instead of printf_filtered for output messages.
1093 (add_symbol_file_command): Ditto.
1094 (reread_symbols): Ditto.
1095 (overlay_auto_command): Ditto.
1096 (overlay_manual_command): Ditto.
1097 (overlay_off_command): Ditto.
1098
1099 2003-10-27 Mark Kettenis <kettenis@gnu.org>
1100
1101 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1102 (gdbarch_from_bfd): New function.
1103 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1104 deprecated_select_gdbarch_hack.
1105 * arch-utils.h (gdbarch_from_bfd): New prototype.
1106
1107 2003-10-27 Andrew Cagney <cagney@redhat.com>
1108
1109 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1110 arch_info. Use warning instead of fprintf_filtered. Do not use
1111 deprecated bfd_printable_arch_mach.
1112
1113 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1114
1115 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1116 Delete.
1117 (frv_register_type): Rename from frv_register_virtual_type. Add
1118 ``struct gdbarch *'' parameter.
1119 (frv_gdbarch_init): Delete calls to the following functions:
1120 set_gdbarch_deprecated_size(),
1121 set_gdbarch_deprecated_register_bytes(),
1122 set_gdbarch_deprecated_register_raw_size(),
1123 set_gdbarch_deprecated_max_register_raw_size(),
1124 set_gdbarch_deprecated_register_virtual_size(),
1125 set_gdbarch_deprecated_max_register_virtual_size(),
1126 set_gdbarch_deprecated_register_virtual_size(),
1127 set_gdbarch_deprecated_register_virtual_type().
1128 Add call to function set_gdbarch_register_type().
1129
1130 2003-10-26 Mark Kettenis <kettenis@gnu.org>
1131
1132 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1133 FDOFF_REGNUM): Remove defines.
1134 * win32-nat.c (do_child_fetch_inferior_registers): Include
1135 "i387-tdep.h".
1136 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1137 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1138 undefine I387_ST0_REGNUM.
1139
1140 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1141 * x86-64-tdep.c (x86_64_store_return_value): Use
1142 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1143
1144 Change register numbers to enumartion values.
1145 * i386-tdep.h (enum i386_regnum): New.
1146 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1147 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1148 I386_ST0_REGNUM): Remove defines.
1149 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1150 I386_EDI_REGNUM): Remove defines.
1151
1152 2003-10-24 Andrew Cagney <cagney@redhat.com>
1153
1154 * target.c: Include "gdbcore.h".
1155 (get_target_memory, get_target_memory_unsigned): New functions.
1156 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1157 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1158 Use get_target_memory_unsigned.
1159 * Makefile.in (target.o): Update dependencies.
1160
1161 2003-10-24 Andrew Cagney <cagney@redhat.com>
1162
1163 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1164 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1165 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1166 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1167 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1168
1169 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1170 (can_run_code_for): Use the OO term "singleton".
1171
1172 2003-10-23 Andrew Cagney <cagney@redhat.com>
1173
1174 * Makefile.in (stack.o): Add $(regcache_h).
1175 * stack.c: Include "regcache.h"
1176 (return_command): Rewrite. Use get_frame_id and
1177 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1178 about unhandled return-values.
1179 * value.h (set_return_value): Delete declaration.
1180 * values.c (set_return_value): Delete function.
1181
1182 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1183
1184 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1185 (pseudo_regs): Add comment regarding register stack registers.
1186 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1187 (floatformat_valid): New static routine.
1188 (floatformat_ia64_ext): Add name field and set up is_valid routine
1189 to floatformat_valid().
1190 (examine_prologue): For the previous cfm, use
1191 frame_unwind_register()
1192 if the cfm is not stored in a register-stack register. Save the
1193 previous cfm value in the prev_cfm field. Add debug output.
1194 (ia64_frame_this_id): Use frame_id_build_special() to also register
1195 the bsp. Add debug output.
1196 (ia64_sigtramp_frame_this_id): Ditto.
1197 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1198 registers and also add some checks for framelessness before accepting
1199 current register values for fields such as return address. For cfm,
1200 use the cached prev_cfm field if available. Add comment to explain
1201 PSR logic. Add debug output.
1202 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1203 as part of initialization.
1204 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1205 calculated. Cache the bsp and cfm values.
1206 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1207 instead of using ia64_frame_prev_register() which doesn't expect most
1208 registers to be saved. The saved values for bsp and sp
1209 can be taken from the cache. Add debug output.
1210 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1211 the bsp.
1212
1213 2003-10-23 Jim Blandy <jimb@redhat.com>
1214
1215 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1216 architecture the current arch can run code for --- but not if it's
1217 a superset.
1218 (can_run_code_for): New function.
1219
1220 2003-10-22 James E Wilson <wilson@specifixinc.com>
1221
1222 * MAINTAINERS: Move myself from paper trail section back to write
1223 after approval section.
1224
1225 2003-10-22 Andrew Cagney <cagney@redhat.com>
1226
1227 * exec.h: New file.
1228 * win32-nat.c: Include "exec.h".
1229 * solib.c: Include "exec.h".
1230 * target.h (build_section_table): Delete declaration.
1231 * somsolib.c: Include "exec.h".
1232 (exec_ops): Delete extern declaration.
1233 * rs6000-nat.c: Update copyright. Include "exec.h".
1234 (exec_ops): Delete extern declaration.
1235 * pa64solib.c: Update copyright. Include "exec.h".
1236 (exec_ops): Delete extern declaration.
1237 * exec.c: Update copyright. Include "exec.h".
1238 * corelow.c: Update dependencies. Include "exec.h".
1239 * Makefile.in (exec_h): Define.
1240 (exec.o, somsolib.o): Update dependencies.
1241 (pa64solib.o, corelow.o): Update dependencies.
1242
1243 2003-10-22 Andrew Cagney <cagney@redhat.com>
1244
1245 * target.c: Include "gdb_assert.h" (target_read): Call
1246 "target_read_partial", not "target_write_partial".
1247 (default_read_partial, default_write_partial): New function.
1248 (target_read_partial, target_write_partial): Simplify, assume that
1249 there is always a read/write method.
1250 (update_current_target, add_target): Always set "to_read_partial"
1251 and "to_write_partial".
1252 (target_write, target_read): Fail on a zero byte transfer.
1253 * Makefile.in (target.o): Update dependencies.
1254 * target.h: Update copyright date.
1255 (target_object): Fix typo.
1256
1257 2003-10-22 Andrew Cagney <cagney@redhat.com>
1258
1259 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1260 multi-arch method, add "targ" parameter.
1261 (struct target_ops): Declare.
1262 * gdbarch.h, gdbarch.c: Re-generate.
1263 * Makefile.in (c-valprint.o): Update dependencies.
1264 * arch-utils.h: Update copyright.
1265 (convert_from_func_ptr_addr_identity): Declare.
1266 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1267 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1268 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1269 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1270 * infcall.c (find_function_addr, call_function_by_hand): Update.
1271 * c-valprint.c: Include "target.h".
1272 (print_function_pointer_address): Update.
1273
1274 2003-10-22 Andrew Cagney <cagney@redhat.com>
1275
1276 * target.c (target_close): New function.
1277 (debug_to_close): Use "target_close".
1278 (push_target): Use "target_close".
1279 (unpush_target): Use "target_close".
1280 (pop_target): Use "target_close".
1281 * target.h (struct target_ops): Add "to_xclose".
1282 (target_open): Delete macro. Move comment to "to_open".
1283 (target_close): Replace macro with function that takes a target.
1284 * top.c (quit_target): Pass "current_target" to "target_close".
1285
1286 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1287
1288 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1289 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1290 * symtab.h (lookup_minimal_symbol_text): Update.
1291 * breakpoint.c (create_overlay_event_breakpoint,
1292 create_longjmp_breakpoint): Update callers.
1293 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1294 * symtab.c (find_pc_sect_line): Ditto.
1295
1296 2003-10-21 Andrew Cagney <cagney@redhat.com>
1297
1298 * target.c (errno): Delete extern declaration.
1299
1300 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1301
1302 * ia64-tdep.c: Change all occurrences of
1303 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1304 (ia64_frame_prev_register): Minor whitespace change.
1305
1306 2003-10-20 Michael Chastain <mec@shout.net>
1307
1308 * config/djgpp/fnchange.lst: Add lines for:
1309 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1310 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1311 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1312 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1313 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1314 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1315 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1316
1317 2003-10-20 Andrew Cagney <cagney@redhat.com>
1318
1319 * values.c (register_value_being_returned): Update comments. Use
1320 "gdbarch_return_value" when available.
1321 (using_struct_return): Ditto.
1322 (set_return_value): Ditto. Use "gdbarch_return_value" when
1323 available.. Print a warning, and not an error, when an unhandled
1324 return type is encountered.
1325 * infcmd.c: Include "gdb_assert.h".
1326 (print_return_value): When gdbarch_return_value_p, and using
1327 struct return, assume that the value is not available.
1328 * defs.h (return_value_convention): Define.
1329 * gdbarch.sh (gdbarch_return_value): New predicate method.
1330 * gdbarch.h, gdbarch.c: Re-generate
1331 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1332
1333 2003-10-20 Andrew Cagney <cagney@redhat.com>
1334
1335 * symtab.c: Replace "struct sec" with "struct bfd_section".
1336 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1337
1338 2003-10-19 Michael Chastain <mec@shout.net>
1339
1340 * config/djgpp/fnchange.lst: Add lines for:
1341 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1342 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1343 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1344
1345 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1346
1347 * amd64fbsd-nat.c (fetch_inferior_registers,
1348 store_inferior_registers): Remove functions.
1349 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1350
1351 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1352
1353 Add NetBSD/amd64 native configuration:
1354 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1355 * amd64nbsd-tdep.c: New file.
1356 * amd64nbsd-nat.c: New file.
1357 * amd64bsd-nat.c: New file.
1358 * config/i386/nbsd64.mh: New file.
1359 * config/i386/nbsd64.mt: New file.
1360 * configure.host: Add x86_64-*-netbsd*.
1361 * configure.tgt: Add x86_64-*-netbsd*.
1362 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1363 New targets.
1364 * NEWS (New native configurations): Mention NetBSD/amd64.
1365
1366 2003-10-17 Michael Chastain <mec@shout.net>
1367
1368 * config/djgpp/fnchange.lst: Remove dead lines for:
1369 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1370 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1371 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1372 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1373 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1374 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1375 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1376 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1377 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1378 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1379 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1380 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1381 gdb/config/sparc/tm-sparclite.h,
1382 gdb/gdbtk/generic/ChangeLog-2001,
1383 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1384 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1385 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1386 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1387 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1388 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1389 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1390 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1391 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1392 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1393 itcl/iwidgets3.0.0/demos/fileselectionbox,
1394 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1395 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1396 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1397 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1398 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1399 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1400 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1401 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1402 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1403 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1404 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1405 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1406 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1407 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1408 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1409 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1410 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1411 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1412 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1413 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1414 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1415 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1416 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1417 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1418 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1419 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1420 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1421 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1422 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1423 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1424 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1425 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1426 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1427 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1428 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1429 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1430 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1431 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1432 itcl/iwidgets3.0.0/demos/scrolledframe,
1433 itcl/iwidgets3.0.0/demos/scrolledhtml,
1434 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1435 itcl/iwidgets3.0.0/demos/scrolledtext,
1436 itcl/iwidgets3.0.0/demos/selectionbox,
1437 itcl/iwidgets3.0.0/demos/selectiondialog,
1438 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1439 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1440 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1441 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1442 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1443 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1444 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1445 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1446 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1447 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1448 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1449 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1450 itcl/iwidgets3.0.0/doc/selectionbox.n,
1451 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1452 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1453 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1454 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1455 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1456 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1457 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1458 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1459 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1460 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1461 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1462 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1463 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1464 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1465 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1466 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1467 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1468 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1469 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1470 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1471 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1472 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1473 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1474 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1475 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1476 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1477 itcl/iwidgets3.0.0/tests/selectionbox.test,
1478 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1479 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1480 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1481 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1482 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1483 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1484 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1485 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1486 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1487 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1488 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1489 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1490 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1491 tk/mac/tkMacProjects.sit.hqx.
1492
1493 2003-10-17 Andrew Cagney <cagney@redhat.com>
1494
1495 * target.c (target_section_by_addr): New function.
1496 (do_xfer_memory): Use "target_section_by_addr".
1497 * target.h (target_section_by_addr): Declare.
1498
1499 * target.h (struct target_ops): Add "to_read_partial" and
1500 "to_write_partial", delete "to_query".
1501 (target_read_partial, target_write_partial): Declare.
1502 (target_read, target_write): Declare.
1503 (target_query): Delete macro.
1504 * target.c (target_read_partial): New function.
1505 (target_write_partial, target_read, target_write): New function.
1506 (update_current_target): Delete inheritance of "to_query". Add
1507 comments about "to_read_partial" and "to_write_partial".
1508 (debug_to_partial_read, debug_to_partial_write): New functions.
1509 (debug_to_query): Delete function.
1510 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1511 instead of "to_query".
1512 * remote.c (remote_read_partial): Replace "remote_query".
1513 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1514 (init_remote_async_ops): Ditto.
1515 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1516 "target_read_partial" instead of "target_query".
1517 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1518 Use "target_read_partial" instead of "target_query".
1519
1520 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1521
1522 * frame.h (struct frame_id): Add new field: special_addr.
1523 (frame_id_build_special): New prototype.
1524 * frame.c (frame_id_build_special): New function.
1525 (frame_id_build): Change to call frame_id_build_special().
1526 (frame_id_eq): Change to also test special_addr field.
1527 (frame_id_inner): Update comment.
1528
1529 2003-10-17 Andrew Cagney <cagney@redhat.com>
1530
1531 * target.c (update_current_target): Perform the target cleanup.
1532 Put the target stack beneath the squashed "current_target".
1533 (add_target): Delete disabled call to "cleanup_target".
1534 (cleanup_target): Delete function.
1535 (push_target, unpush_target): Do not call "cleanup_target".
1536
1537 2003-10-17 Andrew Cagney <cagney@redhat.com>
1538
1539 * target.c (target_stack): Change to a static target_ops.
1540 (update_current_target): Walk the "struct target_ops" stack.
1541 (pop_target, do_xfer_memory, target_info): Ditto.
1542 (find_target_beneath): Ditto.
1543 (push_target): Rewrite to use the "struct target_ops" stack.
1544 (unpush_target): Ditto.
1545 * target.h (struct target_stack_item): Delete definition.
1546 (target_stack): Delete declaration.
1547 (struct target_ops): Add field "beneath".
1548
1549 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1550
1551 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1552 declaration.
1553 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1554 (h8300_examine_prologue): Use h8300_normal_mode flag
1555 (h8300_gdbarch_init): Set architecture info for normal mode
1556
1557 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1558
1559 * remote.c (remote_protocol_vcont): New variable.
1560 (set_remote_protocol_vcont_packet_cmd): New function.
1561 (show_remote_protocol_vcont_packet_cmd): New function.
1562 (init_all_packet_configs): Handle remote_protocol_vcont.
1563 (remote_vcont_probe): New function.
1564 (remote_vcont_resume): New function.
1565 (remote_resume): Use it.
1566 (remote_async_resume): Call remote_resume.
1567 (_initialize_remote): Add verbose-resume packet commands.
1568
1569 2003-10-16 Andrew Cagney <cagney@redhat.com>
1570
1571 * infrun.c (handle_inferior_event): Add comment about
1572 "frame_id_inner" being too weak.
1573
1574 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1575
1576 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1577 second parameter, which is always null. Remove
1578 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1579 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1580 accordingly.
1581 * somsolib.c (som_solib_create_inferior_hook,
1582 som_solib_desire_dynamic_linker_symbols): Update callers.
1583 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1584
1585 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1586
1587 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1588 debug interface, SDI (Scalable Debug Interface).
1589 * NEWS: Mention m32r SDI protocol was supported.
1590 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1591 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1592
1593 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1594
1595 * ia64-linux-tdep.c: Include gdbcore.h.
1596 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1597 (ia64_linux_sigcontext_register_addr): Find the address of the
1598 sigcontext area stored in the sigframe instead of using
1599 a magic offset constant.
1600
1601 2003-10-15 Andrew Cagney <cagney@redhat.com>
1602
1603 * remote.c (remote_search): Delete function.
1604 * target.h (target_search): Delete disabled macro.
1605 (struct target_ops): Delete disabled field "to_search".
1606
1607 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1608
1609 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1610 instead of deprecated_inside_entry_file().
1611
1612 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1613
1614 * sh-tdep.c: Fix copy/paste hangover in comment.
1615 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1616 mode.
1617 (sh3e_sh4_extract_return_value): Ditto.
1618
1619 2003-10-13 Richard Henderson <rth@redhat.com>
1620
1621 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1622 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1623 match c_val_print a bit closer.
1624
1625 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1626
1627 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1628 (frv_gdbarch_adjust_breakpoint_address): New function.
1629 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1630 method.
1631
1632 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1633
1634 * breakpoint.h (struct breakpoint): Add new member
1635 ``requested_address''.
1636 * breakpoint.c (breakpoint_adjustment_warning)
1637 (adjust_breakpoint_address): New static functions.
1638 (print_it_typical): Issue warning if breakpoint's address is different
1639 from its requested address.
1640 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1641 (breakpoint_re_set_one): Set breakpoint's
1642 ``requested_address'' field. Set ``address'' field to the
1643 result of calling adjust_breakpoint_address() on the requested
1644 address.
1645
1646 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1647
1648 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1649 * gdbarch.h, gdbarch.c: Regenerate.
1650
1651 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1652
1653 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1654 TDEP->sc_num_regs.
1655
1656 * i386fbsd-tdep.c: New file.
1657 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1658 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1659 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1660 i386bsd-tdep.c.
1661 (_initialize_i386fbsd_tdep): New function.
1662 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1663 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1664 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1665 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1666 TDEP->sc_num_regs.
1667 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1668 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1669 to initialize TDEP->sc_num_regs.
1670 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1671 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1672 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1673 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1674 FreeBSD ELF OS/ABI's here.
1675 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1676 (i386fbsd-tdep.o): New target.
1677 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1678 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1679
1680 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1681 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1682 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1683 in initialization of TDEP->sc_num_regs.
1684
1685 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1686 (x86_64_init_abi): Initialize regset_from_core_section if
1687 appropriate.
1688
1689 * i386-tdep.c (i386_regset_from_core_section): New function.
1690 (i386_gdbarch_init): Initialize regset_from_core_section if
1691 appropriate.
1692 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1693
1694 * i386-tdep.h (struct regset): Declare opaque.
1695
1696 * gdbarch.sh (regset_from_core_section): New method.
1697 (struct regset): Declare opaque.
1698 * gdbarch.c, gdbarch.h: Regenerated.
1699
1700 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1701
1702 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1703 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1704 Correct test for pc within section.
1705
1706 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1707
1708 * gdbarch.sh: Remove trailing whitepsace from comments.
1709
1710 2003-10-08 Roland McGrath <roland@redhat.com>
1711
1712 * gcore.c (make_mem_sec): Function removed, folded into ...
1713 (gcore_create_callback): ... here. To omit a section, clear its
1714 SEC_LOAD bit rather than zeroing its size.
1715 Omit read-only sections only if they correspond to a known disk file.
1716 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1717
1718 2003-10-10 Michael Snyder <msnyder@redhat.com>
1719
1720 * d10v-tdep.c: Fix typo in comment.
1721
1722 2003-10-10 Andrew Cagney <cagney@redhat.com>
1723
1724 * rs6000-tdep.c (e500_store_return_value): Delete function.
1725 (e500_extract_return_value): Delete function.
1726 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1727 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1728 "ppc_sysv_abi_restore_return_value" where applicable.
1729 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1730 (ppc_sysv_abi_extract_return_value): Declare.
1731 (ppc_sysv_abi_broken_store_return_value): Declare.
1732 (ppc_sysv_abi_broken_extract_return_value): Declare.
1733 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1734 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1735 start of file.
1736 (do_ppc_sysv_return_value): New function.
1737 (ppc_sysv_abi_extract_return_value): New function.
1738 (ppc_sysv_abi_store_return_value): New function.
1739 (ppc_sysv_abi_broken_extract_return_value): New function.
1740 (ppc_sysv_abi_broken_store_return_value): New function.
1741 (ppc_sysv_abi_use_struct_convention): Call
1742 do_ppc_sysv_return_value.
1743
1744 2003-10-10 J. Brobecker <brobecker@gnat.com>
1745
1746 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1747 to lookup the main function symbol.
1748
1749 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1750
1751 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1752 types correctly.
1753 (sh_push_dummy_call_fpu): Fix argument passing rules.
1754 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1755 float types.
1756 (sh3e_sh4_store_return_value): Ditto.
1757
1758 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1759
1760 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1761 comment.
1762
1763 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1764
1765 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1766 more readable code. Accomodate passing of bitfields.
1767
1768 2003-10-10 Andrew Cagney <cagney@redhat.com>
1769
1770 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1771 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1772 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1773 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1774 (ppc64_sysv_abi_push_dummy_call): New function.
1775 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1776 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1777 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1778
1779 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1780
1781 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1782 * README: Ditto.
1783 * d10v-tdep.c: Ditto.
1784 * h8300-tdep.c: Ditto.
1785 * remote-e7000.c: Ditto.
1786 * remote-hms.c: Ditto.
1787 * ser-e7kpc.c: Ditto.
1788 * sh-stub.c: Ditto.
1789 * sh-tdep.c: Ditto.
1790 * sh-tdep.h: Ditto.
1791 * sh3-rom.c: Ditto.
1792 * sh64-tdep.c: Ditto.
1793 * top.c: Ditto.
1794 * wince.c: Ditto.
1795 * config/d10v/d10v.mt: Ditto.
1796 * config/sh/embed.mt: Ditto.
1797 * config/sh/linux.mt: Ditto.
1798 * config/sh/tm-linux.h: Ditto.
1799 * config/sh/tm-sh.h: Ditto.
1800 * config/sh/wince.mt: Ditto.
1801
1802 2003-10-09 Andrew Cagney <cagney@redhat.com>
1803
1804 * ppc-tdep.h (struct type): Declare opaque.
1805 * x86-64-tdep.h (struct regcache): Declare opaque.
1806 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1807 coding style.
1808
1809 2003-10-09 Andrew Cagney <cagney@redhat.com>
1810
1811 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1812 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1813 (SOFTWARE_SINGLE_STEP_P): Ditto.
1814 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1815 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1816 (SOFTWARE_SINGLE_STEP_P): Ditto.
1817 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1818 software_single_step to rs6000_software_single_step.
1819
1820 2003-10-09 Andrew Cagney <cagney@redhat.com>
1821
1822 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1823
1824 2003-10-09 Michael Snyder <msnyder@redhat.com>
1825
1826 * frame.h: Fix typo in comment.
1827 * dummy-frame.c: Fix typo in comment.
1828 * d10v-tdep.c: Random whitespace/comment tweaks.
1829
1830 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1831
1832 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1833 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1834 on stack.
1835
1836 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1837 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1838 in detail.
1839
1840 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1841
1842 * remote-mips.c (mips_initialize): Remove unneeded call to
1843 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1844
1845 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1846
1847 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1848 a memory pointer.
1849
1850 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1851
1852 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1853 for any lwp we resume.
1854 (running_callback): Add lwps that have pending status events
1855 against them to be considered running.
1856
1857 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1858
1859 * m32r-tdep.c : Include "dis-asm.h".
1860 * Makefile.in (m32r-tdep.o): Update dependencies.
1861
1862 2003-10-06 J. Brobecker <brobecker@gnat.com>
1863
1864 * completer.h (get_gdb_completer_word_break_characters): Delete.
1865 * completer.c: include language.h.
1866 (gdb_completer_word_break_characters): Delete.
1867 (get_gdb_completer_word_break_characters): Delete.
1868 (location_completer): Use the word break characters of the current
1869 language.
1870 (complete_line): Likewise.
1871 (line_completion_function): Likewise.
1872 (skip_quoted_chars): Likewise.
1873 * Makefile.in (completer.o): Add dependency on language.h.
1874 * top.c (init_main): Set the readline word break characters
1875 to GDB's default word break characters.
1876
1877 2003-10-06 J. Brobecker <brobecker@gnat.com>
1878
1879 * language.h (language_defn): new field, la_word_break_characters.
1880 * language.c (unknown_language_defn): Set new field to
1881 default_word_break_characters.
1882 (auto_language_defn): Likewise.
1883 (local_language_defn): Likewise.
1884 * ada-lang.c (ada_language_defn): Likewise.
1885 * c-lang.c (c_language_defn): Likewise.
1886 (cplus_language_defn): Likewise.
1887 (asm_language_defn): Likewise.
1888 (minimal_language_defn): Likewise.
1889 * f-lang.c (f_language_defn): Likewise.
1890 * jv-lang.c (java_language_defn): Likewise.
1891 * m2-lang.c (m2_language_defn): Likewise.
1892 * objc-lang.c (objc_language_defn): Likewise.
1893 * p-lang.c (pascal_language_defn): Likewise.
1894 * scm-lang.c (scm_language_defn): Likewise.
1895
1896 2003-10-06 Andrew Cagney <cagney@redhat.com>
1897
1898 * ppc-sysv-tdep.c: Re-indent.
1899
1900 2003-10-06 J. Brobecker <brobecker@gnat.com>
1901
1902 * language.h (default_word_break_characters): Add prototype.
1903 * language.c (default_word_break_characters): New function.
1904
1905 2003-10-06 Andreas Schwab <schwab@suse.de>
1906
1907 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1908 with %eax.
1909
1910 2003-10-06 Andrew Cagney <cagney@redhat.com>
1911
1912 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1913 "h8500-tdep.c".
1914 (z8k-tdep.o): Delete custom build rule.
1915
1916 2003-10-06 Andrew Cagney <cagney@redhat.com>
1917
1918 * Makefile.in: Update all dependencies.
1919
1920 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1921 No longer list PA as as obsolete candidate. List m32r as
1922 broken instead of obsolete.
1923
1924 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1925 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1926 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1927 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1928 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1929 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1930 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1931 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1932 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1933 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1934 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1935 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1936 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1937 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1938 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1939 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1940 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1941 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1942 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1943 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1944 * config/z8k/z8k.mt: Ditto.
1945
1946 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1947 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1948 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1949 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1950 sparclite were removed.
1951 * configure.host, configure.tgt: Remove corresponding tuples.
1952
1953 * breakpoint.c, breakpoint.h: Remove obsolete code.
1954 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1955 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1956 * stabsread.h, xcoffread.c: Ditto.
1957
1958 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1959 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1960 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1961 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1962
1963 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1964
1965 * f-valprint.c: Reformatting
1966
1967 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1968
1969 * x86-64-tdep.c: Remove duplicate comment.
1970
1971 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1972 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1973 names for return values. This fixes a bug since we looked at %rbx
1974 instead of %rdx.
1975
1976 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1977
1978 * x86-64-tdep.c: Include "regset.h".
1979
1980 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1981 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1982 sizeof_fpregset.
1983 * i386-tdep.c: Include "regset.h".
1984 (i386_supply_gregset): New function.
1985 (i386_supply_fpregset): New function.
1986 (i386_gdbarch_init): Initialze register set-related members of
1987 TDEP.
1988 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1989 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1990
1991 2003-10-03 Andrew Cagney <cagney@redhat.com>
1992
1993 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1994 set extract_return_value, store_return_value and
1995 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1996 ppc64_sysv_abi_store_return_value and
1997 ppc64_sysv_abi_use_struct_convention.
1998 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1999 (ppc64_sysv_abi_store_return_value): Declare.
2000 (ppc64_sysv_abi_use_struct_convention): Declare.
2001 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2002 (ppc64_sysv_abi_extract_return_value): New function.
2003 (ppc64_sysv_abi_store_return_value): New function.
2004 (ppc64_sysv_abi_use_struct_convention): New function.
2005 (ppc64_sysv_abi_return_value): New function.
2006
2007 2003-10-03 Andrew Cagney <cagney@redhat.com>
2008
2009 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2010 convert a descriptor to a function when it's in the ".opd"
2011 section.
2012
2013 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2014
2015 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2016 reg_size to keep GCC silent.
2017
2018 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2019
2020 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2021 base for DW_EH_PE_textrel encodings.
2022 (read_encoded_value): Add a DW_EH_PE_textrel case.
2023 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2024 section.
2025
2026 2003-10-03 Mark Kettenis <kettenis@gnu.org>
2027
2028 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2029
2030 2003-10-02 Andrew Cagney <cagney@redhat.com>
2031
2032 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2033 REGISTER_RAW_SIZE.
2034 * gdbarch.h, gdbarch.c: Re-generate.
2035 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2036 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2037 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2038 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2039 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2040 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2041 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2042 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2043 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2044 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2045 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2046 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2047 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2048 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2049 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2050 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2051
2052 2003-10-02 Jim Blandy <jimb@redhat.com>
2053
2054 * dwarf2read.c (struct die_info): Doc fix.
2055
2056 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2057
2058 * sh-tdep.c: Running thru gdb_indent.sh.
2059
2060 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2061
2062 * sh-tdep.c (sh_justify_value_in_reg): New function.
2063 (sh_stack_allocsize): Ditto.
2064 (flt_argreg_array): New array used for floating point argument
2065 passing.
2066 (sh_init_flt_argreg): New function.
2067 (sh_next_flt_argreg): Ditto.
2068 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2069 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2070 Fix argument passing strategy.
2071 (sh_push_dummy_call_nofpu): Ditto.
2072
2073 2003-10-01 Andrew Cagney <cagney@redhat.com>
2074
2075 * value.h (register_value_being_returned): Declare. Replace
2076 "value_being_returned".
2077 * infcall.c (call_function_by_hand): Use
2078 register_value_being_returned.
2079 * infcmd.c (print_return_value): Call
2080 "register_value_being_returned", handle struct return locally.
2081 * values.c (register_value_being_returned): New function. Replace
2082 "value_being_returned".
2083
2084 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
2085
2086 * linux-proc.c (linux_do_registers): New function.
2087 (linux_make_note_section): Use linux_do_registers in case of
2088 single threaded inferior programs.
2089
2090 2003-10-01 Andrew Cagney <cagney@redhat.com>
2091
2092 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2093 use STRUCT_ADDR. When not using "struct return convention", pass
2094 "0" to "value_being_returned". Add FIXMEs.
2095 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2096 value_being_returned. Add comments.
2097 * values.c (value_being_returned): Add fixme.
2098 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2099 (hppa_value_returned_from_stack): Add FIXME.
2100
2101 2003-09-30 David Carlton <carlton@kealia.com>
2102
2103 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2104 'has_children' and 'next' by 'child' and 'sibling'.
2105 (read_comp_unit): Rework algorithm, breaking body into
2106 read_die_and_children and read_die_and_siblings.
2107 (read_die_and_children, read_die_and_siblings): New.
2108 (read_full_die): Add 'has_children' argument; set it instead of
2109 the die's 'has_children' field. Minor formatting cleanup.
2110 (free_die_list): Use die->child and die->sibling instead of
2111 die->next.
2112 (dump_die_list): Ditto.
2113 (sibling_die): Use die->sibling.
2114 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2115 'has_children' and 'next' fields.
2116 (process_die, read_file_scope, read_func_scope)
2117 (read_lexical_block_scope, read_structure_scope)
2118 (read_enumeration, read_array_type, read_common_block)
2119 (read_namespace, read_subroutine_type, dump_die): Ditto.
2120
2121 2003-09-30 Andrew Cagney <cagney@redhat.com>
2122
2123 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2124 to 224, not 220.
2125
2126 2003-09-30 Andrew Cagney <cagney@redhat.com>
2127
2128 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2129 REGISTER_VIRTUAL_SIZE.
2130 * gdbarch.h, gdbarch.c: Regenerate.
2131 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2132 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2133 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2134
2135 2003-09-29 Andrew Cagney <cagney@redhat.com>
2136
2137 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2138 REGISTER_VIRTUAL_TYPE.
2139 * gdbarch.h, gdbarch.c: Regenerate.
2140 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2141 * sh64-tdep.c, sparc-tdep.c: Update.
2142
2143 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2144 * remote-vxmips.c (vx_read_register): Ditto.
2145 * remote-vx68.c (vx_read_register): Ditto.
2146 * gnu-nat.c (inf_validate_procs): Ditto.
2147
2148 2003-09-29 J. Brobecker <brobecker@gnat.com>
2149
2150 * infcall.c (call_function_by_hand): Fix build failure
2151 introduced in the previous change to this file.
2152
2153 2003-09-29 Andrew Cagney <cagney@redhat.com>
2154
2155 * NEWS: Mention Objective-C.
2156
2157 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2158
2159 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2160 test if the register has been saved on the stack.
2161 (arm_scan_prologue_cache): When analysing the instruction
2162 "str lr, [sp, #-4]", save the address where lr has been stored.
2163
2164 2003-09-28 Andrew Cagney <cagney@redhat.com>
2165
2166 * frame.c (frame_read_unsigned_register): Delete function.
2167 * frame.h (frame_read_unsigned_register): Delete declaration.
2168 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2169 get_frame_register_unsigned.
2170 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2171 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2172 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2173
2174 * frame.h (frame_read_register): Delete declaration.
2175 * frame.c (frame_read_register): Delete function.
2176 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2177 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2178 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2179 * mips-tdep.c (mips_register_to_value): Ditto.
2180 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2181 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2182
2183 * frame.c (frame_read_signed_register): Delete function.
2184 (frame_read_unsigned_register): Update comments.
2185 * frame.h (frame_read_signed_register): Delete declaration.
2186 * h8300-tdep.c (h8300_print_register): Use
2187 get_frame_register_signed.
2188 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2189
2190 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2191 Rename VALUE_RETURNED_FROM_STACK.
2192 * infcmd.c (print_return_value): Update.
2193 * infcall.c (call_function_by_hand): Update.
2194
2195 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2196
2197 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2198 regcache argument and reverse the order of the other two
2199 arguments. Remove local regcache variable. Determine
2200 architecture from REGCACHE. Update comments.
2201 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2202 reverse the order of the other two arguments. Remove local
2203 regcache variable. Determine architecture from REGCACHE. Update
2204 comments.
2205 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2206 prototypes. Update comments.
2207 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2208 comment.
2209 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2210 Update.
2211 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2212 * i386-interix-nat.c (supply_fpregset): Update.
2213 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2214 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2215 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2216 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2217 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2218 Update.
2219 * i386obsd-tdep.c (fetch_core_registers): Update.
2220 * i386v4-nat.c (supply_fpregset): Update.
2221 * x86-64-linux-nat.c (supply_fpregset): Update.
2222 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2223
2224 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2225
2226 * i386-tdep.h: Put opaque declarations in alphabetical
2227 order. Remove spurious whitespace.
2228 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2229 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2230 * i386-tdep.c (MM0_REGNUM): Remove define.
2231 (i386_mmx_regnum_p): Add gdbarch argument.
2232 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2233 Rewrite using new macro definitions for FPU/SSE registers.
2234 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2235 definitions from i387-tdep.h.
2236 (i386_register_name): Update.
2237 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2238 new macro definitions for FPU/SSE registers.
2239 (i386_extract_return_value): Determine whether floating-point
2240 registers are present by examining REGCACHE's architecture.
2241 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2242 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2243 FPU/SSE registers.
2244 (i386_register_type): Update.
2245 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2246 definitions for FPU registers. Use REGCACHE's architecture to
2247 determine the appropriate register numbers.
2248 (i386_pseudo_register_read, i386_pseudo_register_write,
2249 i386_register_reggroup_p): Update.
2250 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2251 TDEP->mm0_regnum.
2252 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2253 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2254 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2255 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2256 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2257 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2258 *' to `void *'.
2259 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2260 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2261 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2262 definitions for FPU/SSE registers.
2263 (FXSAVE_MXCSR_ADDR): New define.
2264 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2265 TDEP->mm0_regnum.
2266 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2267 (I387_ST0_REGNUM): Define.
2268
2269 * regcache.h (get_regcache_arch): New prototype.
2270 * regcache.c (get_regcache_arch): New function.
2271
2272 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2273 whitespace.
2274
2275 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2276 Initialize using ARRAY_SIZE.
2277
2278 2003-09-27 Andrew Cagney <cagney@redhat.com>
2279
2280 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2281 "init_frame_pc_default".
2282 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2284 * vax-tdep.c (vax_gdbarch_init): Update.
2285 * v850-tdep.c (v850_gdbarch_init): Update.
2286 * sh64-tdep.c (sh64_gdbarch_init): Update.
2287 * s390-tdep.c (s390_gdbarch_init): Update.
2288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2289 * mcore-tdep.c (mcore_gdbarch_init): Update.
2290 * h8300-tdep.c (h8300_gdbarch_init): Update.
2291 * cris-tdep.c (cris_gdbarch_init): Update.
2292 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2293
2294 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2295
2296 * regset.h: New file.
2297 * Makefile.in (regset_h): Add.
2298
2299 2003-09-25 Andrew Cagney <cagney@redhat.com>
2300
2301 * frame.h (deprecated_frame_saved_regs): Rename
2302 get_frame_saved_regs.
2303 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2304 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2305 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2306 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2307 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2308
2309 2003-09-25 Andrew Cagney <cagney@redhat.com>
2310
2311 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2312 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2313 and Java.
2314 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2315 arm*-*-* do not use the new frame code.
2316
2317 2003-09-25 David Carlton <carlton@kealia.com>
2318
2319 * c-exp.y: Remove 'register' declarations.
2320 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2321
2322 2003-09-25 David Carlton <carlton@kealia.com>
2323
2324 * c-exp.y: Include cp-support.h. Add qualified_type.
2325 (yylex): Delete nested type hack; add comments.
2326 * cp-namespace.c (cp_lookup_nested_type): New function.
2327 * cp-support.h: Declare cp_lookup_nested_type.
2328 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2329 instead of value_struct_elt_for_reference.
2330 * valops.c: Include cp-support.h.
2331 (value_aggregate_elt): New function.
2332 (value_namespace_elt): Ditto.
2333 (value_struct_elt_for_reference): Make static.
2334 * value.h: Delete declaration of value_struct_elt_for_reference;
2335 add declaration for value_aggregate_elt.
2336 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2337 (valops.o): Ditto.
2338
2339 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2340
2341 * stack.c: Include "reggroups.h".
2342 (frame_info): Only display registers in all_reggroup.
2343 * Makefile.in (stack.o): Update dependencies.
2344
2345 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2346
2347 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2348 "add ip, sp #n" in the prologue.
2349 (arm_scan_prologue): Ditto.
2350
2351 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2352
2353 * MAINTAINERS (write after approval): Add myself.
2354
2355 2003-09-25 Andreas Schwab <schwab@suse.de>
2356
2357 * m68k-tdep.c: Include "dwarf2-frame.h".
2358 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2359 * Makefile.in (m68k-tdep.o): Update dependencies.
2360
2361 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2362
2363 * sh-tdep.c (struct frame_extra_info): Remove.
2364 (struct sh_frame_cache): New structure.
2365 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2366 (GET_TARGET_REG): Ditto but target register.
2367 (GET_PUSHED_REG): Remove.
2368 (IS_MOV_ARG_TO_REG): New macro.
2369 (IS_MOV_ARG_TO_IND_R14): New macro.
2370 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2371 (IS_MOVW_PCREL_TO_REG): New macro.
2372 (IS_MOVL_PCREL_TO_REG): New macro.
2373 (IS_SUB_REG_FROM_SP): New macro.
2374 (IS_ARG_MOV): Remove.
2375 (IS_MOV_TO_R14): Remove.
2376 (IS_RESTORE_FP): New macro.
2377 (IS_RTS): New macro.
2378 (IS_LDS): New macro.
2379 (IS_MOV_FP_SP): New macro.
2380 (IS_ADD_REG_TO_FP): New macro.
2381 (IS_ADD_IMM_FP): New macro.
2382 (sh_skip_prologue_hard_way): Remove.
2383 (sh_saved_pc_after_call): Remove.
2384 (sh_frame_chain): Remove.
2385 (sh_find_callers_reg): Remove.
2386 (sh_nofp_frame_init_saved_regs): Remove.
2387 (sh_fp_frame_init_saved_regs): Remove.
2388 (sh_init_extra_frame_info): Remove.
2389 (sh_analyze_prologue): New function.
2390 (sh_skip_prologue): Remove deprecated code. Rely on new function
2391 sh_analyze_prologue when after_prologue fails.
2392 (sh_frame_saved_pc): Remove.
2393 (sh_alloc_frame_cache): New function.
2394 (sh_frame_cache): Ditto.
2395 (sh_frame_prev_register): Ditto.
2396 (sh_frame_this_id): Ditto.
2397 (sh_frame_unwind): New structure defining the heuristic frame
2398 sniffer interface.
2399 (sh_frame_sniffer): New function.
2400 (sh_unwind_sp): Ditto.
2401 (sh_unwind_pc): Ditto.
2402 (sh_unwind_dummy_id): Ditto.
2403 (sh_frame_base_address): Ditto.
2404 (sh_frame_base): New structure defining new frame base code.
2405 (sh_in_function_epilogue_p): New function.
2406 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2407 code and to call all new code instead. Initialize dwarf2 and
2408 heuristic frame sniffer.
2409
2410 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2411
2412 * parser-defs.h (struct exp_descriptor): New definition, containing
2413 language-specific info for printing, prefixifying, dumping, and
2414 evaluating expressions.
2415 (exp_descriptor_standard): Declare new variable.
2416 (print_subexp): Make global and declare here (from expprint.c).
2417 (dump_subexp): Ditto.
2418 (dump_subexp_body_standard): Declare.
2419 (operator_length_standard): Declare.
2420 (op_name_standard): Declare.
2421 (print_subexp): Declare.
2422 (print_subexp_standard): Declare.
2423
2424 * language.h (struct language_defn): Add la_exp_desc field to hold
2425 pointer to table for language-specific operators.
2426 Remove evaluate_exp field, which is now in struct exp_descriptor.
2427
2428 * parse.c (operator_length): Move most code to new
2429 operator_length_standard function. Use language-specific information.
2430 (operator_length_standard): New function taking most code from
2431 operator_length.
2432 (exp_descriptor_standard): New constant.
2433
2434 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2435 and OP_EXTENDED_LAST.
2436
2437 * expprint.c (print_subexp): Use language-specific print_subexp.
2438 Make global; remove static declaration.
2439 Move most code to print_subexp_standard.
2440 (print_subexp_standard): New function, containing code formerly in
2441 print_subexp.
2442 (op_name): Add expression to argument signature.
2443 Use langauge-specific op_name.
2444 Move most code to op_name_standard.
2445 (op_name_standard): New function, containing code formerly in op_name.
2446 (dump_subexp): Use new version of op_name function.
2447 Use language-specific dump_subexp_body, and move most existing code to
2448 dump_subexp_body_standard.
2449 (dump_raw_expression): Use new op_name interface.
2450 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2451 (dump_subexp_body_standard): New function, containing code formerly
2452 in dump_subexp_body.
2453
2454 * language.c (unknown_language): Add default la_exp_desc field and
2455 remove evaluate_exp field.
2456 (auto_language): Ditto.
2457 (local_language): Ditto.
2458 * f-lang.c (f_language_defn): Ditto.
2459 * c-lang.c (c_language_defn): Ditto.
2460 (cplus_language_defn): Ditto.
2461 (asm_language_defn): Ditto.
2462 (minimal_language_defn): Ditto.
2463 * p-lang.c (pascal_language_defn): Ditto.
2464 * m2-lang.c (m2_language_defn): Ditto.
2465 * objc-lang.c (objc_language_defn): Ditto.
2466
2467 * jv-lang.c (exp_descriptor_java): New variable, containing
2468 Java-specific expression evaluator.
2469 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2470 field.
2471 * scm-lang.c (exp_descriptor_scm): New variable, containing
2472 Scheme-specific expression evaluator.
2473 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2474 field.
2475 * objc-lang.c (print_object_command): Take evaluate_exp from the
2476 la_exp_desc field.
2477
2478 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2479
2480 * eval.c: Include parser-defs.h for the full declaration of
2481 la_exp_desc's type.
2482 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2483
2484 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2485
2486 * parser-defs.h (operator_length): Declare.
2487
2488 * parse.c (length_of_subexp): Use operator_length to get operator
2489 lengths and arities for operators.
2490 Move most code to new operator_length function.
2491 (operator_length): New function absorbing most code from
2492 length_of_subexp.
2493 (prefixify_subexp): Remove large case and use operator_length instead.
2494 (parse_exp_1): Use renamings:
2495 dump_prefix_expression => dump_raw_expression and
2496 dump_postfix_expression => dump_prefix_expression.
2497
2498 * expression.h (dump_prefix_expression): Rename to ...
2499 (dump_raw_expression): New name.
2500 (dump_postfix_expression): Rename to ...
2501 (dump_prefix_expression): New name.
2502
2503 * expprint.c (dump_subexp): Make global. Add comment.
2504 Move most existing code to dump_subexp_body.
2505 (dump_subexp_body): New function.
2506 (dump_prefix_expression): Rename to dump_raw_expression.
2507 Remove attempt to print the expression via print_expression: it can't
2508 work before the expression is prefixified.
2509 (dump_raw_expression): Renamed from dump_prefix_expression.
2510 (dump_postfix_expression): Rename to dump_prefix_expression, since
2511 that's what it does.
2512 Remove 'note' parameter, since this routine must be used on
2513 prefixified expression.
2514 (dump_prefix_expression): Renamed from dump_postfix_expression.
2515
2516 2003-09-22 Jim Blandy <jimb@redhat.com>
2517
2518 * dwarf2read.c (read_array_type): When building the type for an
2519 array of unspecified length, make sure to choose the upper bound
2520 so that the array's total length comes out to be zero --- that's
2521 how we represent such arrays.
2522
2523 2003-09-22 Michael Chastain <mec@shout.net>
2524
2525 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2526
2527 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2528
2529 * top.c (quit_force): Fix indirect call to quit_target so
2530 a struct qt_args pointer is passed.
2531
2532 2003-09-22 Andrew Cagney <cagney@redhat.com>
2533
2534 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2535 * arch-utils.c (init_frame_pc_noop): Delete function.
2536 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2537 "init_frame_pc".
2538 * mips-tdep.c (mips_gdbarch_init): Ditto.
2539 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2540 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2541 declaration.
2542 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2543 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2544 declaration.
2545 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2546
2547 2003-09-22 Anthony Green <green@redhat.com>
2548
2549 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2550 declaration.
2551
2552 2003-09-20 Andrew Cagney <cagney@redhat.com>
2553
2554 * breakpoint.c: Eliminate ARGSUSED.
2555 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2556 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2557 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2558 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2559 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2560 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2561 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2562 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2563 * wince.c, remote-vx.c: Ditto.
2564
2565 * cli/cli-script.c: Remove "register" attributes.
2566 * config/pa/tm-hppa.h: Ditto.
2567 * cli/cli-decode.c: Ditto.
2568 * cli/cli-cmds.c: Ditto.
2569
2570 2003-09-19 Andrew Cagney <cagney@redhat.com>
2571
2572 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2573 DEPRECATED_NPC_REGNUM.
2574 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2575
2576 2003-09-19 Christopher Faylor <cgf@redhat.com>
2577
2578 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2579
2580 2003-09-19 Jim Blandy <jimb@redhat.com>
2581
2582 * macrotab.c (macro_include): Use the correct comparison to find
2583 the appropriate place for this inclusion in the list.
2584
2585 2003-09-19 Andrew Cagney <cagney@redhat.com>
2586
2587 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2588 (DEPRECATED_HPUX_TEXT_END): Define.
2589 (deprecated_hpux_text_end): Declare.
2590 (struct target_ops): Declare opaque.
2591 * hppah-nat.c (text_end): Make static.
2592 (deprecated_hpux_text_end): New function.
2593 * exec.c (text_end): Delete global variable.
2594 (NEED_TEXT_START_END): Do not define.
2595 (exec_file_attach): Replace code computing "text_end" code with
2596 call to DEPRECATED_HPUX_TEXT_END.
2597
2598 2003-09-19 Andrew Cagney <cagney@redhat.com>
2599
2600 * utils.c (align_up, align_down): New functions.
2601 * defs.h (align_up, align_down): Declare.
2602 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2603 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2604 and "align_down".
2605 (round_up, round_down): Delete functions.
2606 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2607 "align_down".
2608 (ROUND_DOWN, ROUND_UP): Delete macros.
2609 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2610 * h8300-tdep.c: Replace "round_up" and "round_down" with
2611 "align_up" and "align_down".
2612 (round_up, round_down): Delete macros.
2613 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2614 "align_down".
2615 (ROUND_UP, ROUND_DOWN): Delete macros.
2616
2617 2003-09-18 J. Brobecker <brobecker@gnat.com>
2618
2619 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2620 hard-coded constant. Use the proper machine name instead.
2621
2622 2003-09-17 Andrew Cagney <cagney@redhat.com>
2623
2624 * sparc-tdep.c (legacy_register_name): Delete function.
2625 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2626 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2627 * infcmd.c (gdb_register_name): Delete variable.
2628 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2629 REGISTER_NAME and "tm.h".
2630 * gdbarch.h, gdbarch.c: Regenerate.
2631 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2632 REGISTER_NAMES in comments.
2633 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2634 * m68klinux-nat.c (regmap): Ditto.
2635
2636 2003-09-17 Jim Blandy <jimb@redhat.com>
2637
2638 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2639
2640 2003-09-17 Andrew Cagney <cagney@redhat.com>
2641
2642 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2643 (ppcnbsd_init_abi): Set "use_struct_convention" to
2644 "ppcnbsd_use_struct_convention".
2645
2646 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2647
2648 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2649 * gdbarch.h, gdbarch.c: Regenerate.
2650 (stabs_argument_has_addr): New architecture method.
2651 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2652 * arch-utils.c: Include "buildsym.h".
2653 (default_stabs_argument_has_addr): New function.
2654 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2655 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2656
2657 2003-09-17 Andrew Cagney <cagney@redhat.com>
2658
2659 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2660 * gdbarch.h, gdbarch.c: Regenerate.
2661 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2662 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2663 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2664 * sparcnbsd-tdep.c: Update.
2665
2666 2003-09-17 Andrew Cagney <cagney@redhat.com>
2667
2668 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2669 * gdbarch.h, gdbarch.c: Regenerate.
2670 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2671 * d10v-tdep.c, frame.c: Update.
2672 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2673 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2674 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2675 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2676 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2677 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2678 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2679 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2680 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2681 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2682 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2683 * config/pa/nm-hppah.h: Update.
2684
2685 2003-09-16 Andrew Cagney <cagney@redhat.com>
2686
2687 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2688 "use_struct_convention" to "ppc_linux_use_struct_convention".
2689 (ppc_linux_use_struct_convention): New function.
2690 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2691 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2692 "rs6000_use_struct_convention".
2693 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2694 declaration.
2695 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2696 Delete function.
2697
2698 2003-09-16 Andrew Cagney <cagney@redhat.com>
2699
2700 * buildsym.c: Remove more occurances of "register".
2701 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2702 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2703 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2704 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2705 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2706 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2707 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2708 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2709
2710 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2711
2712 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2713 numbers to enumeration values.
2714 * sh-tdep.c: Accomodate above change.
2715 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2716 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2717 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2718 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2719 (IS_FPUSH): Rename from IS_FMOV.
2720 (sh_extract_struct_value_address): Remove useless comment.
2721 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2722 instead of own local values.
2723 (sh_dump_tdep): Remove.
2724 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2725 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2726
2727 2003-09-15 Andrew Cagney <cagney@redhat.com>
2728
2729 * doublest.c (convert_floatformat_to_doublest): No longer need to
2730 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2731
2732 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2733
2734 * values.c (unpack_double): Call floatformat_is_valid.
2735
2736 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2737
2738 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2739 ps_strings into a long.
2740
2741 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2742 _initialize_am64fbsd_nat.
2743
2744 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2745
2746 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2747 associated with DW_AT_ranges attribute is out of bounds.
2748
2749 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2750
2751 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2752
2753 2003-09-14 Michael Chastain <mec@shout.net>
2754
2755 * config/m68k/nm-apollo68v.h: Delete.
2756 * config/m68k/xm-apollo68v.h: Delete.
2757
2758 2003-09-14 Andrew Cagney <cagney@redhat.com>
2759
2760 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2761 * dcache.c: Update copyrights and descriptions.
2762 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2763
2764 2003-09-14 Andrew Cagney <cagney@redhat.com>
2765
2766 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2767 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2768
2769 2003-09-14 Andrew Cagney <cagney@redhat.com>
2770
2771 * alpha-nat.c: Remove some occurances of "register".
2772 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2773 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2774 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2775 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2776 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2777 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2778 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2779 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2780 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2781 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2782 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2783 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2784 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2785 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2786 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2787 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2788 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2789 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2790 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2791 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2792 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2793 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2794
2795 2003-09-13 Andrew Cagney <cagney@redhat.com>
2796
2797 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2798 * ppc-tdep.h (struct regcache): Declare opaque.
2799 * objfiles.h (struct objfile_data): Declare opaque.
2800 * cp-support.h (struct objfile): Declare opaque.
2801 * linux-nat.h (target_waitstatus): Declare opaque.
2802
2803 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2804
2805 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2806 (stabs_argument_has_addr): New architecture method.
2807 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2808 * arch-utils.c: Include "buildsym.h".
2809 (default_stabs_argument_has_addr): New function.
2810 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2811 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2812
2813 * cris-tdep.c (cris_gdbarch_init): Set
2814 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2815 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2816 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2817 * mips-tdep.c (mips_gdbarch_init): Likewise.
2818 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2819 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2820
2821 2003-09-13 Andrew Cagney <cagney@redhat.com>
2822
2823 * values.c (using_struct_return): Delete "function" and "funcaddr"
2824 parameters.
2825 * value.h (using_struct_return): Update declaration.
2826 * infcmd.c (finish_command_continuation): Update.
2827 (finish_command): Update.
2828 * infcall.c (call_function_by_hand): Update.
2829 * eval.c (evaluate_subexp_standard): Update.
2830
2831 2003-09-13 Christopher Faylor <cgf@redhat.com>
2832
2833 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2834 SSE registers since gdb will not operate correctly without this.
2835 Restore include file ordering munged in previous change.
2836 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2837
2838 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2839
2840 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2841 REG_STRUCT_HAS_ADDR.
2842 * gdbarch.c, gdbarch.h: Updated.
2843 * infcall.c (call_function_by_hand): Update.
2844 * stabsread.c (define_symbol): Updated.
2845
2846 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2847
2848 2003-09-12 Christopher Faylor <cgf@redhat.com>
2849
2850 * win32-nat.c: Reorganize so that defines used by target headers are
2851 actually defined by the system headers.
2852 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2853 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2854
2855 2003-09-12 Jim Blandy <jimb@redhat.com>
2856
2857 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2858 the file has no .data, .bss, or .rodata sections. Instead wait
2859 until we see a variable alleged to live in one of those sections.
2860
2861 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2862 .bss section, presume that any variables we find live in the
2863 .rodata section.
2864
2865 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2866 offsets for global and static variables.
2867
2868 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2869 symbol types are, by definition, in the .data section, so it is
2870 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2871 If there is no .data section, there should be no N_DATA or N_DATA
2872 | N_EXT symbols.
2873
2874 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2875
2876 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2877 (amd64fbsd_sigcontext_addr): Rewrite.
2878 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2879 with correct values.
2880 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2881 (amd64fbsd_init_abi): Fix typo.
2882
2883 2003-09-12 Andrew Cagney <cagney@redhat.com>
2884
2885 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2886 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2887
2888 2003-09-12 Andrew Cagney <cagney@redhat.com>
2889
2890 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2891 "entry_file_highpc". Update comments.
2892 * defs.h (deprecated_inside_entry_file): Rename
2893 "inside_entry_file".
2894 * blockframe.c (deprecated_inside_entry_file): Rename
2895 "inside_entry_file".
2896 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2897 * vax-tdep.c (vax_frame_chain): Update.
2898 * sh64-tdep.c (sh64_frame_chain): Update.
2899 * sh-tdep.c (sh_frame_chain): Update.
2900 * rs6000-tdep.c (rs6000_frame_chain): Update.
2901 * ns32k-tdep.c (ns32k_frame_chain): Update.
2902 * mips-tdep.c (mips_frame_chain): Update.
2903 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2904 * m32r-tdep.c (m32r_frame_this_id): Update.
2905 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2906 * frv-tdep.c (frv_frame_this_id): Update.
2907 * d10v-tdep.c (d10v_frame_this_id): Update.
2908 * cris-tdep.c (cris_frame_chain): Update.
2909 * blockframe.c (legacy_frame_chain_valid): Update.
2910 * avr-tdep.c (avr_frame_this_id): Update.
2911 * arm-tdep.c (arm_prologue_this_id): Update.
2912 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2913 * objfiles.c (objfile_relocate): Update.
2914 * mipsread.c (mipscoff_symfile_read): Update.
2915 (mipscoff_symfile_read): Update.
2916 * mdebugread.c (parse_partial_symbols): Update.
2917 * dwarfread.c (read_file_scope): Update.
2918 * dwarf2read.c (read_file_scope): Update.
2919 * dbxread.c (read_dbx_symtab): Update.
2920 (read_dbx_symtab): Update.
2921 * coffread.c (complete_symtab): Update.
2922
2923 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2924
2925 * top.c (quit_target): New static helper function.
2926 (quit_force): Moved code to quit_target(). Call quit_target()
2927 via catch_errors() to catch errors during quit.
2928
2929 2003-09-11 David Carlton <carlton@kealia.com>
2930
2931 * buildsym.c (finish_block): Use allocate_block to allocate the
2932 block.
2933 * mdebugread.c (new_block): Add FIXME.
2934
2935 2003-09-11 David Carlton <carlton@kealia.com>
2936
2937 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2938 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2939 (recursive_dump_type): Ditto.
2940 * printcmd.c (print_formatted): Ditto.
2941 * typeprint.c (print_type_scalar): Ditto.
2942 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2943 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2944 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2945 maint_cplus_cmd_list.
2946 * cp-support.c: Make maint_cplus_cmd_list extern.
2947 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2948 command.h.
2949 (lookup_symbol_file): Look in possible namespace blocks when
2950 appropriate.
2951 (initialize_namespace_symtab): New.
2952 (get_possible_namespace_block, free_namespace_block)
2953 (check_possible_namespace_symbols)
2954 (check_possible_namespace_symbols_loop)
2955 (check_one_possible_namespace_symbol)
2956 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2957 (_initialize_cp_namespace): Ditto.
2958 * block.h: Declare allocate_block.
2959 * block.c (allocate_block): New.
2960 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2961 allocate_block.
2962 * symfile.h: Update declaration of add_psymbol_to_list.
2963 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2964 question.
2965 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2966 scan_partial_symbols_call.
2967 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2968 helper functions.
2969 (add_partial_symbol): If necessary, scan mangled names for names
2970 of namespaces.
2971 (add_partial_namespace): Add NAMESPACE argument; generate partial
2972 symbols associated to namespaces.
2973 (add_partial_enumeration): Add NAMESPACE argument.
2974 (new_symbol): Allow namespace syms.
2975 (read_namespace): Generate namespace syms.
2976 * objfiles.h: Add opaque declaration of struct symtab.
2977 (struct objfile): Add cp_namespace_symtab member.
2978 * objfiles.c (allocate_objfile): Set
2979 objfile->cp_namespace_symtab.
2980 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2981 dictionary_h, command_h.
2982
2983 2003-09-11 Andrew Cagney <cagney@redhat.com>
2984
2985 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2986 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2987 near the function's end.
2988 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2989 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2990 regcache_raw_write_signed to set SP_REGNUM.
2991
2992 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2993
2994 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2995 orig_addrs is set up properly.
2996
2997 2003-09-11 Andrew Cagney <cagney@redhat.com>
2998
2999 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3000 * gdbarch.h, gdbarch.c: Re-generate.
3001 * infcall.c (call_function_by_hand): Update.
3002 * hppa-tdep.c (hppa_push_arguments): Update.
3003 * ada-lang.c (place_on_stack): Update.
3004 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3005 * sparc-tdep.c (sparc_gdbarch_init): Update.
3006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3007 * hppa-tdep.c (hppa_gdbarch_init): Update.
3008 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3009 stack_align.
3010
3011 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
3012
3013 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3014 register do need a frame.
3015
3016 2003-09-11 Andrew Cagney <cagney@redhat.com>
3017
3018 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3019 buildable since GDB 5.0.
3020 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3021 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3022 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3023 * irix4-nat.c: Delete file.
3024 * config/mips/irix4.mh: Delete file.
3025 * config/mips/irix3.mh: Delete file.
3026 * config/mips/irix3.mt: Delete file.
3027 * config/mips/tm-irix3.h: Delete file.
3028 * config/mips/nm-irix3.h: Delete file.
3029 * config/mips/xm-irix3.h: Delete file.
3030 * config/mips/nm-irix4.h: Delete file.
3031 * config/mips/xm-irix4.h: Delete file.
3032 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3033
3034 2003-09-10 J. Brobecker <brobecker@gnat.com>
3035
3036 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3037 * Makefile.in (hppa-tdep.o): Update dependencies.
3038
3039 2003-09-10 James E Wilson <wilson@specifixinc.com>
3040
3041 * MAINTAINERS: Change my e-mail address. Move to paper trail
3042 section.
3043
3044 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3045
3046 * MAINTAINERS (frv): New ISA entry.
3047
3048 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3049
3050 * frv-tdep.c (dis-asm.h): Include.
3051 * Makefile.in (frv-tdep.o): Update dependencies.
3052
3053 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3054
3055 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3056 Fix typo for high range of floating registers.
3057
3058 2003-09-09 David Carlton <carlton@kealia.com>
3059
3060 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3061 highpc initialization here out of scan_partial_symbols.
3062 (scan_partial_symbols): Restructure into a recursive version,
3063 calling add_partial_namespace and add_partial_enumeration when
3064 appropriate.
3065 (add_partial_namespace): New.
3066 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3067
3068 2003-09-09 Andrew Cagney <cagney@redhat.com>
3069
3070 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3071 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3072 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3073 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3074
3075 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3076 (rs6000_push_dummy_call): Set the "TOC" register.
3077
3078 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3079 methods "max_register_raw_size", "max_register_virtual_size" or
3080 "register_virtual_size".
3081
3082 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3083
3084 * MAINTAINERS: Update my e-mail address.
3085
3086 2003-09-09 Andrew Cagney <cagney@redhat.com>
3087
3088 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3089 (rs6000_push_dummy_call): Store the struct return address.
3090 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3091
3092 2003-09-09 Andrew Cagney <cagney@redhat.com>
3093
3094 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3095 "ppc_sysv_abi_push_arguments".
3096 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3097 "ppc_sysv_abi_push_arguments".
3098 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3099 instead of "push_arguments".
3100 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3101
3102 2003-09-09 Andrew Cagney <cagney@redhat.com>
3103
3104 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3105 instead of CALL_DUMMY_ADDRESS.
3106
3107 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3108
3109 * p-lang.c: Eliminate "register".
3110 * c-lang.c: Ditto.
3111 * expprint.c: Ditto.
3112 * f-lang.c: Ditto.
3113 * jv-lang.c: Ditto.
3114 * language.c: Ditto.
3115 * m2-lang.c: Ditto.
3116 * parse.c: Ditto.
3117 * scm-lang.c: Ditto.
3118 * objc-lang.c: Ditto.
3119
3120 2003-09-09 Nick Clifton <nickc@redhat.com>
3121
3122 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3123
3124 2003-09-04 Andrew Cagney <cagney@redhat.com>
3125
3126 * avr-tdep.c: Include "dis-asm.h".
3127 * cris-tdep.c: Include "dis-asm.h".
3128 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3129 instead of corresponding typedef.
3130 * h8300-tdep.c: Include "dis-asm.h".
3131 * ia64-tdep.c: Include "dis-asm.h".
3132 * i386-tdep.c: Include "dis-asm.h".
3133 (i386_print_insn): Use "struct disassemble_info" instead of
3134 corresponding typedef.
3135 * m68k-tdep.c: Include "dis-asm.h".
3136 * mcore-tdep.c: Include "dis-asm.h".
3137 * mips-tdep.c: Include "dis-asm.h".
3138 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3139 instead of corresponding typedef.
3140 * ns32k-tdep.c: Include "dis-asm.h".
3141 * s390-tdep.c: Include "dis-asm.h".
3142 * sparc-tdep.c: Include "dis-asm.h".
3143 * vax-tdep.c: Include "dis-asm.h".
3144 * v850-tdep.c: Include "dis-asm.h".
3145 * mn10300-tdep.c: Include "dis-asm.h".
3146 * rs6000-tdep.c: Include "dis-asm.h".
3147 * xstormy16-tdep.c: Include "dis-asm.h".
3148 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3149 print_insn_xstormy16.
3150 * Makefile.in (v850-tdep.o): Update dependencies.
3151 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3152 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3153 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3154 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3155 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3156 (gdbarch_h): Remove $(dis_asm_h).
3157 * disasm.c: Include "dis-asm.h".
3158 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3159 corresponding typedef.
3160 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3161 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3162 * gdbarch.sh: Do not include "dis-asm.h".
3163 (struct disassemble_info): Declare opaque.
3164 (TARGET_PRINT_INSN): Update declaration.
3165 * gdbarch.h, gdbarch.c: Re-generate.
3166
3167 2003-09-08 Andrew Cagney <cagney@redhat.com>
3168
3169 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3170 CALL_DUMMY_ADDRESS, change to a predicate.
3171 * gdbarch.h, gdbarch.c: Re-generate.
3172 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3173 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3174 * infcall.c (call_function_by_hand): Ditto.
3175 * sparc-tdep.c (sparc_push_return_address): Ditto.
3176 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3177 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3178 CALL_DUMMY_ADDRESS with entry_point_address.
3179 * v850-tdep.c (v850_push_return_address): Ditto.
3180 * s390-tdep.c (s390_push_return_address): Ditto.
3181 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3182 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3183 * mcore-tdep.c (mcore_push_return_address): Ditto.
3184 * cris-tdep.c (cris_push_return_address): Ditto.
3185 * arm-tdep.c (arm_push_return_address): Ditto.
3186
3187 2003-09-08 Andrew Cagney <cagney@redhat.com>
3188
3189 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3190 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3191 and REG_UNMODIFIED to REG_SAME_VALUE.
3192 (execute_cfa_program): Update.
3193 (dwarf2_frame_cache): Update. Initialize table to
3194 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3195 location.
3196 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3197
3198 2003-09-08 Andrew Cagney <cagney@redhat.com>
3199
3200 * gnu-nat.c: Remove "inline" function attribute.
3201 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3202
3203 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3204
3205 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3206 target.
3207
3208 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3209
3210 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3211 (frame_extra_info): Rename this struct to frv_unwind_cache.
3212 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3213 Add fields ``prev_sp'' and ``base''.
3214 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3215 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3216 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3217 Delete.
3218 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3219 Revise all callers. Fill in the unwind cache argument and make
3220 other adjustments to account for new frame mechanisms.
3221 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3222 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3223 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3224 (frv_frame_unwind, frv_frame_base): New structs.
3225 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3226 additional arguments expected by this method and adjust function
3227 body accordingly.
3228 (frv_gdbarch_init): Remove calls to the following functions:
3229 set_gdbarch_deprecated_init_frame_pc(),
3230 set_gdbarch_deprecated_saved_pc_after_call(),
3231 set_gdbarch_deprecated_frame_chain(),
3232 set_gdbarch_deprecated_frame_saved_pc(),
3233 set_gdbarch_deprecated_frame_init_saved_regs(),
3234 set_gdbarch_deprecated_push_arguments(),
3235 set_gdbarch_deprecated_push_return_address(),
3236 set_gdbarch_deprecated_pop_frame(),
3237 set_gdbarch_deprecated_call_dummy_words(),
3238 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3239 set_gdbarch_deprecated_init_extra_frame_info(),
3240 set_gdbarch_deprecated_dummy_write_sp(), and
3241 set_gdbarch_deprecated_pc_in_call_dummy().
3242 Add calls to the following functions:
3243 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3244 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3245 frame_base_set_default().
3246 * Makefile.in (frv-tdep.o): Update dependencies.
3247
3248 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3249
3250 * dwarf2-frame.c (read_encoded_value): Add support for
3251 DW_EH_PE_aligned encoding.
3252
3253 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3254
3255 * infrun.c (normal_stop): Don't print a message if the inferior
3256 has exited.
3257
3258 2003-09-08 Jim Blandy <jimb@redhat.com>
3259
3260 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3261 * dbxread.c: #include "gdb_assert.h".
3262 (read_dbx_symtab): If the objfile has no .data section, use the
3263 section index for the .bss section instead.
3264
3265 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3266
3267 * frame.c (deprecated_safe_get_selected_frame): New function.
3268 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3269 * findvar.c (read_var_value): Call it.
3270
3271 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3272
3273 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3274 (sh64-tdep.o): Add dependencies.
3275 * configure.tgt: Add FIXME to sh-*-linux*.
3276 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3277 (sh_gdbarch_init): Always set correct sh_show_regs function
3278 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3279 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3280 * sh64-tdep.c: New file, containing all sh64 related code from
3281 sh-tdep.c.
3282 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3283 * config/sh/linux.mt (TDEPFILES): Ditto.
3284 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3285 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3286 * config/sh/wince.mt (TDEPFILES): Ditto.
3287
3288 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3289
3290 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3291 (stop_wait_callback): Handle !lp->signalled also.
3292 (lin_lwp_has_pending, flush_callback): New functions.
3293 (lin_lwp_wait): Call flush_callback.
3294 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3295 (linux_proc_pending_signals): New function.
3296 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3297
3298 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3299
3300 From Nick Kelsey <nickk@ubicom.com>:
3301 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3302 when the stop PC is at the beginning of a function also.
3303
3304 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3305
3306 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3307 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3308
3309 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3310
3311 * sol-thread.c: Include "gdb_string.h".
3312
3313 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3314
3315 * gcore.c: Reorder include files in alphabetical order. Include
3316 "gdb_assert.h". Various coding style fixes.
3317 (derive_stack_segment, derive_heap_segment): Replace check for
3318 non-null BOTTOM and TOP with gdb_assert.
3319 (derive_heap_segment): Replace check for successful creation of
3320 ZERO with gdb_assert.
3321 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3322
3323 2003-09-04 Andrew Cagney <cagney@redhat.com>
3324
3325 * thread-db.c (verbose_dlsym): New function.
3326 (thread_db_load): Use verbose_dlsym
3327 (thread_db_new_objfile): Print that libthread_db was loaded, and
3328 that thread debugging was enabled.
3329
3330 2003-09-04 Andrew Cagney <cagney@redhat.com>
3331
3332 * configure.tgt: Add "mips64*-*-*" target. Delete
3333 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3334 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3335 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3336 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3337 mips*-sony-*, and mips64*-*-elf* targets.
3338 * config/mips/embedl.mt: Delete file.
3339 * config/mips/embedl64.mt: Delete file.
3340 * config/mips/mips.mt: Delete file.
3341 * config/mips/mips64.mt: Delete file.
3342 * config/mips/tm-embed.h: Delete file.
3343 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3344 * config/mips/embed64.mt: Delete out-of-date comment.
3345
3346 2003-09-04 Andrew Cagney <cagney@redhat.com>
3347
3348 * hppa-tdep.c (hppa_gdbarch_init): Set
3349 "have_nonsteppable_watchpoint".
3350 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3351 * mips-tdep.c (mips_dump_tdep): Do not print
3352 HAVE_NONSTEPPABLE_WATCHPOINT.
3353 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3354 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3355 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3356 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3357
3358 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3359
3360 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3361 unused code. Add comment.
3362
3363 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3364
3365 * breakpoint.c (watchpoint_check): Check for pc being in an
3366 epilogue if watchpoint frame couldn't be found.
3367
3368 2003-09-04 Andrew Cagney <cagney@redhat.com>
3369
3370 * Makefile.in: Re-generate all dependencies.
3371
3372 2003-09-03 Andrew Cagney <cagney@redhat.com>
3373
3374 * arch-utils.h (legacy_print_insn): Delete declaration.
3375 * arch-utils.c (legacy_print_insn): Delete function.
3376 * disasm.c (deprecated_tm_print_insn_info): Delete.
3377 (_initialize_disasm): Delete function, contained code initializing
3378 deprecated_tm_print_insn_info.
3379 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3380 (deprecated_tm_print_insn_info): Delete.
3381 (TARGET_PRINT_INSN): Do not provide a default.
3382 * gdbarch.h, gdbarch.c: Re-generate.
3383
3384 2003-09-03 Andrew Cagney <cagney@redhat.com>
3385
3386 * disasm.c (fprintf_disasm): New function.
3387 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3388 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3389 reverts 2003-08-14 change.
3390 (_initialize_disasm): Call "init_disassemble_info", instead of
3391 INIT_DISASSEMBLE_INFO_NO_ARCH.
3392
3393 2003-09-03 Michael Snyder <msnyder@redhat.com>
3394
3395 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3396
3397 2003-09-03 Andrew Cagney <cagney@redhat.com>
3398
3399 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3400 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3401 * symfile.c (syms_from_objfile): Update.
3402 (reread_symbols): `Update
3403 * exec.c (exec_file_attach): Update.
3404 (exec_file_attach): Update.
3405 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3406 2003-08-29 change.
3407 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3408
3409 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3410
3411 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3412 trad-frame.h.
3413 (arm_get_cache): Delete macro.
3414 (struct arm_prologue_cache): Update comments. Make saved_regs into
3415 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3416 to prev_sp.
3417 (thumb_scan_prologue): Update for cache changes. Don't call
3418 DEPRECATED_PC_IN_CALL_DUMMY.
3419 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3420 argument and use it in desperation search for our prologue. Do not
3421 search past the specified PC.
3422 (arm_make_prologue_cache): Simplify.
3423
3424 (arm_prologue_this_id, arm_prologue_prev_register)
3425 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3426 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3427 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3428 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3429 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3430
3431 (arm_frame_chain_valid, arm_find_callers_reg)
3432 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3433 (arm_pop_frame): Delete obsolete methods.
3434 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3435
3436 (arm_gdbarch_init): Update for new frame methods. Register prologue
3437 and sigtramp unwinders. Set the default frame base method.
3438
3439 * Makefile.in (arm-tdep.o): Update dependencies.
3440 * varobj.c (find_frame_addr_in_frame_chain): Call
3441 get_frame_base_address.
3442 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3443
3444 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3445
3446 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3447 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3448 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3449 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3450 Take NEXT_FRAME and CACHE arguments. Call
3451 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3452 Set unwound_pc in CACHE instead of modifying the frame argument.
3453 Don't bother checking the frame type when looking for sigtramp
3454 frames.
3455 (arm_make_prologue_cache, arm_frame_chain)
3456 (arm_init_extra_frame_info): New functions.
3457
3458 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3459
3460 * arm-tdep.c (arm_get_cache): Define.
3461 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3462 unwound_sp, unwound_pc, and saved_regs.
3463 (thumb_scan_prologue): Take a cache instead of the frame.
3464 (arm_scan_prologue): Likewise.
3465 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3466 instead of a temporary frame.
3467 (arm_init_extra_frame_info): Allocate and use a cache.
3468 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3469
3470 2003-09-03 Andrew Cagney <cagney@redhat.com>
3471
3472 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3473 * config/mips/wince.mt (TM_CLIBS): Ditto.
3474 * config/sh/wince.mt (TM_CLIBS): Ditto.
3475 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3476 * config/sparc/sp64.mt (CC): Delete.
3477
3478 2003-09-03 Andrew Cagney <cagney@redhat.com>
3479
3480 * defs.h: Do not include "arch-utils.h".
3481 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3482 GDB_MULTI_ARCH_PURE.
3483 * configure.in (GDB_MULTI_ARCH): Do not define.
3484 * configure, config.in: Regenerate.
3485 * configure.tgt: Do not set variable "gdb_multi_arch".
3486 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3487 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3488 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3489 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3490 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3491 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3492 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3493 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3494 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3495 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3496 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3497 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3498 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3499 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3500 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3501 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3502 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3503 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3504
3505 2003-08-30 Michael Chastain <mec@shout.net>
3506
3507 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3508 * config/m68k/nm-hp300hpux.h: Delete.
3509 * config/m68k/tm-hp300hpux.h: Delete.
3510 * config/m68k/xm-hp300hpux.h: Delete.
3511 * config/m68k/xm-hp300bsd.h: Delete.
3512 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3513 tm-hp300hpux.h, xm-hp300hpux.h.
3514 * somsolib.c: Remove comment about hp300 shared libraries.
3515
3516 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3517
3518 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3519 Only define PTRACE_GET_THREAD_AREA is not already defined.
3520 Various style fixes in code and comments and some additional
3521 spelling fixes in comments. Move after functions dealing with
3522 debug registers.
3523 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3524 Fix coding-style.
3525
3526 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3527 frame_unwind_register_unsigned instead of
3528 frame_unwind_unsigned_register.
3529
3530 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3531
3532 * configure.in: Search for gethostbyname in libnsl.
3533 * configure: Regenerated.
3534
3535 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3536
3537 * configure.in: Remove redundant AC_MSG_RESULT in check for
3538 uintptr_t in stdint.h.
3539 * configure: Regenerated.
3540
3541 * amd64-nat.h (struct regcache): Add opaque declaration.
3542
3543 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3544 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3545 Change "register array" to "register cache" in comments.
3546 (x86_64_linux_gregset64_reg_offset): New variable.
3547 (GETREGS_SUPPLIES): Remove macro.
3548 (supply_gregset): Call amd64_supply_native_gregset instead of
3549 x86_64_linux_supply_gregset.
3550 (fill_gregset): Rename `regno' to `regnum'. Call
3551 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3552 (store_regs): Rename `regno' to `regnum'.
3553 (store_fpregs): Rename `regno' to `regnum'.
3554 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3555 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3556 Reorganize function a bit.
3557 (store_inferior_registers): Rename `regno' to `regnum'. Use
3558 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3559 Reorganize function a bit.
3560 (_initialize_x86_64_linux_nat): New function.
3561 * config/i386/x86-64linux.mh.
3562
3563 2003-08-29 Andrew Cagney <cagney@redhat.com>
3564
3565 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3566 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3567 (target_remove_watchpoint): Delete macro.
3568 (target_insert_watchpoint): Delete macro.
3569 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3570 (remote_mips_stopped_by_watchpoint): Delete declaration.
3571 (remote_mips_remove_watchpoint): Delete declaration.
3572 (remote_mips_set_watchpoint): Delete declaration.
3573 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3574 * remote-mips.c (_initialize_remote_mips): Set
3575 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3576 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3577 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3578 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3579 (mips_stopped_by_watchpoint): Rename
3580 remote_mips_stopped_by_watchpoint.
3581 (mips_can_hardware_watchpoint): Rename
3582 remote_mips_can_use_hardware_watchpoint, update function
3583 signature.
3584
3585 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3586
3587 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3588 USER_DS. We haven't given them a register number yet.
3589
3590 * amd64-nat.h: New file.
3591 * amd64-nat.c: New file.
3592 * amd64fbsd-nat.c: Include "amd64-nat.h".
3593 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3594 (amd64fbsd32_r_reg_offset): New variable.
3595 (supply_gregset): Simply call amd64_supply_native_gregset.
3596 (fill_gregset): Rename `regno' to `regnum'. Simply call
3597 amd64_collect_native_gregset.
3598 (fill_fpregset): Rename `regno' to `regnum'.
3599 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3600 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3601 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3602 `fpregset_t'. Call amd64_supply_native_gregset instead of
3603 supply_gregset. Call x86_64_supply_fxsave instead of
3604 supply_fpregset.
3605 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3606 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3607 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3608 `fpregset_t'. Call amd64_collect_native_gregset instead of
3609 fill_gregset. Call x86_64_collect_fxsave instead of
3610 fill_fpregset.
3611 (_initialize_am64fbsd_nat): Initialize
3612 amd64_native_gregset32_reg_offset and
3613 amd64_native_gregset64_reg_offset.
3614 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3615
3616 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3617 null pointer. Fix typo in comment.
3618
3619 * regcache.c (supply_register): Reimplement to call
3620 regcache_raw_supply.
3621 (regcache_collect): Reimplement by calling regcache_raw_collect.
3622
3623 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3624
3625 * regcache.c (register_buffer): Consitify first argument.
3626 (regcache_raw_supply, regcache_raw_collect): New
3627 functions.
3628
3629 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3630
3631 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3632 by Nathan J. Williams.
3633
3634 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3635
3636 * lin-lwp.c (wait_lwp): New function, copied from
3637 stop_wait_callback. Clean up.
3638 (stop_wait_callback): Use wait_lwp.
3639
3640 2003-08-28 Andrew Cagney <cagney@redhat.com>
3641
3642 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3643 flavour and disassembler options.
3644 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3645 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3646 deprecated_tm_print_insn_info.
3647
3648 2003-08-27 Andrew Cagney <cagney@redhat.com>
3649
3650 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3651 Use target_read_memory.
3652 (s390_get_frame_info): Update. Do not reference
3653 deprecated_tm_print_insn_info.
3654 (s390_check_function_end, s390_is_sigreturn): Ditto.
3655
3656 2003-08-27 Andrew Cagney <cagney@redhat.com>
3657
3658 * Makefile.in (cris-tdep.o): Update dependencies.
3659 * cris-tdep.c: Include "gdb_assert.h".
3660 (cris_gdbarch_init): Set print_insn.
3661 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3662 (cris_delayed_get_disassembler): Simplify, directly call the
3663 disassembler returned by cris_get_disassembler.
3664 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3665 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3666 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3667 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3668 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3669 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3670 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3671 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3672 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3673 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3674 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3675 (gdb_print_insn_sparc): Delete function.
3676 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3677 deprecated_tm_print_insn_info.
3678 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3679 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3680 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3681 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3682 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3683 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3684 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3685 (s390_gdbarch_init): Set print_insn.
3686
3687 2003-08-27 Andrew Cagney <cagney@redhat.com>
3688
3689 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3690 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3691 * infcall.c (call_function_by_hand): Convert the entry point
3692 address into a code address.
3693
3694 2003-08-27 Andrew Cagney <cagney@redhat.com>
3695
3696 * dsrec.c: Include "gdb_string.h".
3697 * Makefile.in (dsrec.o): Update dependencies.
3698
3699 2003-08-27 Michael Chastain <mec@shout.net>
3700
3701 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3702
3703 2003-08-27 Andrew Cagney <cagney@redhat.com>
3704
3705 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3706 (alpha_osf1_init_abi): Do not set call_dummy_address.
3707
3708 2003-08-27 David Carlton <carlton@kealia.com>
3709
3710 From Randolph Chung <tausq@debian.org>:
3711 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3712 compiles with -Wformat-nonliteral -Werror.
3713
3714 2003-08-26 Jim Blandy <jimb@redhat.com>
3715
3716 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3717 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3718 bfd_lookup_symbol, since we only want symbols in code sections.
3719 (look_for_base): Pass zero as the SECT_FLAGS argument to
3720 bfd_lookup_symbol, since we're not concerned about which section
3721 the symbol is in.
3722
3723 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3724
3725 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3726 we are frameless or the return address register is already known.
3727
3728 2003-08-26 Andrew Cagney <cagney@redhat.com>
3729
3730 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3731 in size. Add comments.
3732
3733 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3734
3735 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3736 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3737
3738 2003-08-26 Jason Merrill <jason@redhat.com>
3739
3740 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3741 case out of #ifdef MIPS block.
3742
3743 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3744
3745 PR java/1322
3746 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3747 available before calling SECT_OFF_TEXT.
3748 * PROBLEMS: Remove description of java/1322.
3749
3750 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3751
3752 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3753 bof, and nat0-nat127 as pseudo-registers.
3754 (ia64_frame_cache): New struct used to cache frame info.
3755 (ia64_register_reggroup_p): New routine used to override default
3756 register grouping so registers without names are still saved and
3757 restored.
3758 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3759 pseudo values.
3760 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3761 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3762 (ia64_alloc_frame_cache): New routine to create a new
3763 ia64_frame_cache.
3764 (examine_prologue): Change prototype to add next_frame pointer.
3765 Assume frameless until otherwise proven. Verify that the cfm for
3766 current frame matches the cfm that should occur for the prologues
3767 alloc insn and if equal, mark as not frameless. At end of routine,
3768 if not frameless, calculate registers for the previous frame and store
3769 in the cache, if a cache is provided.
3770 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3771 and pass 0 for next_frame.
3772 (ia64_store_return_value): Change to use convert_typed_floating()
3773 instead of calling ia64_convert_to_raw().
3774 (ia64_extract_return_value): Change to use convert_typed_floating()
3775 instead of calling ia64_convert_to_virtual().
3776 (ia64_frame_cache): New routine to support new frame model.
3777 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3778 (ia64_frame_sniffer): Ditto.
3779 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3780 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3781 (ia64_sigtramp_frame_prev_register): Ditto.
3782 (ia64_sigtramp_frame_sniffer): Ditto.
3783 (ia64_frame_base_address): Ditto.
3784 (ia64_extract_struct_value_address): Change to issue error message.
3785 (ia64_frame_align): New routine to align sp.
3786 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3787 (ia64_push_arguments): Removed. Logic moved to
3788 ia64_push_dummy_call().
3789 (ia64_push_return_address): Ditto.
3790 (ia64_unwind_dummy_id): New function.
3791 (ia64_unwind_pc): Ditto.
3792 (ia64_convert_register_p): Ditto.
3793 (ia64_register_to_value): Ditto.
3794 (ia64_value_to_register): Ditto.
3795 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3796 (ia64_register_byte, ia64_register_raw_size): Ditto.
3797 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3798 (ia64_saved_pc_after_call): Ditto.
3799 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3800 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3801 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3802 (ia64_register_convert_to_raw): Ditto.
3803 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3804 (ia64_init_extra_frame_info): Ditto.
3805 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3806 (ia64_gdbarch_init): Remove registering of deprecated functions that
3807 are no longer used. Add registration of new gdbarch functions.
3808 Remove registering deprecated_write_sp. Replace
3809 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3810 Delete set_gdbarch_deprecated_register_convertible(),
3811 set_gdbarch_deprecated_register_convert_to_virtual(), and
3812 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3813 set_gdbarch_deprecated_register_size(),
3814 set_gdbarch_deprecated_register_bytes(),
3815 set_gdbarch_pcregnum(),
3816 set_gdbarch_deprecated_register_byte(),
3817 set_gdbarch_deprecated_register_raw_size(),
3818 set_gdbarch_deprecated_max_register_raw_size(),
3819 set_gdbarch_deprecated_register_virtual_size(),
3820 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3821 Replace set_gdbarch_deprecated_extract_return_value() with
3822 set_gdbarch_extract_return_value(). Remove calls to:
3823 set_gdbarch_deprecated_saved_pc_after_call();
3824 set_gdbarch_deprecated_frame_chain(),
3825 set_gdbarch_deprecated_frame_saved_pc(),
3826 set_gdbarch_deprecated_frame_init_saved_regs(),
3827 set_gdbarch_deprecated_get_saved_register(),
3828 set_gdbarch_deprecated_call_dummy_words(),
3829 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3830 set_gdbarch_deprecated_init_extra_frame_info(),
3831 set_gdbarch_deprecated_frame_args_address(),
3832 set_gdbarch_deprecated_frame_locals_address(),
3833 and set_gdbarch_deprecated_dummy_write_sp().
3834 Add set_gdbarch_convert_register_p(),
3835 set_gdbarch_register_to_value(),
3836 set_gdbarch_value_to_register(),
3837 set_gdbarch_push_dummy_call(),
3838 set_gdbarch_frame_align(),
3839 set_gdbarch_unwind_dummy_id(),
3840 set_gdbarch_unwind_pc(),
3841 frame_unwind_append_sniffer(),
3842 frame_unwind_append_sniffer(),
3843 and frame_base_set_default().
3844
3845 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3846
3847 * configure.tgt: Document need for special "mipsisa64" handling.
3848 (mipsisa64*-*-linux64): Handle as target linux64.
3849 (mipsisa64*-*-*): Handle as target embed64.
3850
3851 2003-08-18 Michael Chastain <mec@shout.net>
3852
3853 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3854 objfile bug.
3855
3856 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3857
3858 * i387-tdep.h: Update copyright date.
3859 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3860
3861 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3862 CFLAGS games to reflect reality.
3863
3864 2003-08-24 Andrew Cagney <cagney@redhat.com>
3865
3866 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3867 GDB_MULTI_ARCH is always non-zero.
3868 * osabi.c (_initialize_gdb_osabi): Ditto.
3869 (gdbarch_init_osabi): Ditto.
3870 * sparc-tdep.c: Ditto for #if code.
3871
3872 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3873
3874 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3875 Update comments.
3876 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3877 comments.
3878 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3879 x86_64_supply_fxsave.
3880 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3881 x86_64_supply_fxsave.
3882 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3883 x86_64_supply_fxsave.
3884
3885 2003-08-23 Andreas Jaeger <aj@suse.de>
3886
3887 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3888 i387_supply_fxsave.
3889
3890 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3891
3892 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3893 i387_supply_register.
3894 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3895 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3896 i387_supply_fsave.
3897 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3898 i387_supply_fxsave.
3899 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3900 i387_supply_fsave.
3901 * i386bsd-nat.c (supply_fpregset): Adjust call to
3902 i387_supply_fsave.
3903 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3904 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3905 supply_fpregset.
3906 (store_inferior_registers): Remove extraneous whitespace. Call
3907 i387_fill_fsave instead of fill_fpregset.
3908 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3909 (supply_fpregset): Likewise.
3910 * i386v4-nat.c (supply_fpregset): Adjust call to
3911 i387_supply_fsave.
3912 * i386-interix-nat.c (supply_fpregset): Adjust call to
3913 i387_supply_fsave.
3914 * i386-linux-nat.c (supply_fpregset): Adjust call to
3915 i387_supply_fsave.
3916 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3917 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3918 i387supply_fsave and i387_supply_fxsave.
3919 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3920 Incorporate code from `i387_supply_register.
3921 (i387_supply_register): Remove.
3922 (i387_supply_fxsave): Add `regnum' argument.
3923 Update comments.
3924 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3925 prototype.
3926 (i387_supply_register): remove prototype.
3927 Update comments.
3928
3929 2003-08-22 Michael Chastain <mec@shout.net>
3930
3931 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3932 Add lines for files in gdb/testsuite/gdb.cp/* that are
3933 still not 8.3 unique.
3934
3935 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3938 TYPE_VPTR_FIELDNO is valid.
3939
3940 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3941
3942 * utils.c (set_width_command): Remove prototypes.
3943 (set_screen_size): New prototype.
3944 (init_page_info): Simplify by fetching the screen size from
3945 Readline. Call set_screen_size.
3946 (set_screen_size): New function.
3947 (set_width): Add missing whitespace in comment.
3948 (set_width_command): Call set_screen_size.
3949 (set_height_command): New function.
3950 (initialize_utils): Fix formatting. Make "set height" command
3951 call set_height_command. Remove redundant code that turns off
3952 pagination if output isn't a terminal. Remove redundant call to
3953 set_width_command.
3954
3955 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3956
3957 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3958 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3959 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3960 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3961 `case' keyword.
3962 (sparc64_register_info): Give the reister with number
3963 SPARC64_STATE_REGNUM a name.
3964 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3965 %asi and %ccr.
3966 (sparc64_push_dummy_call): Take BIAS into account when checking
3967 stcak alignment.
3968 (sparc_software_single_step): Remove assertions that check whether
3969 NPC and NNPC were zero.
3970 (sparc_supply_rwindow): Make public. Merge functionality with
3971 sparc64_supply_rwindow.
3972 (sparc_fill_rwindow): Make public. Merge functionality with
3973 sparc64_fill_rwindow.
3974 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3975 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3976 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3977 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3978 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3979
3980 * reggroups.c: Add whitespace after declarations of local
3981 variables in functions.
3982
3983 2003-08-21 Michael Chastain <mec@shout.net>
3984
3985 * gdbtypes.h: Change array bound type from an int to enum.
3986
3987 2003-08-21 Andrew Cagney <cagney@redhat.com>
3988
3989 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3990 * config/sparc/tm-sparc.h: Ditto.
3991 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3992 unconditionally.
3993 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3994
3995 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3996
3997 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3998 (register_objfile_data, set_objfile_data, objfile_data): New
3999 prototypes.
4000 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4001 prototypes.
4002 (allocate_objfile): Call objfile_alloc_data.
4003 (free_objfile): Call objfile_free_data.
4004 (struct objfile_data): New.
4005 (struct objfile_data_registration): New.
4006 (struct objfile_data_registry): New.
4007 (objfile_data_registry): New variable.
4008 (register_objfile_data): New function.
4009 (objfile_alloc_data, objfile_free_data): New functions.
4010 (set_objfile_data, objfile_data): New functions.
4011 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4012 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4013 (_initialize_dwarf2_frame): New function and prototype.
4014
4015 2003-08-21 Andrew Cagney <cagney@redhat.com>
4016
4017 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4018 a specific architecture.
4019 * arch-utils.h (set_architecture_from_arch_mach): Delete
4020 declaration.
4021 (target_architecture_hook): Delete declaration.
4022 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4023 (default_float_format): Assume GDB_MULTI_ARCH.
4024 (default_double_format): Assume GDB_MULTI_ARCH.
4025 (set_endian_from_file): Delete function.
4026 (arch_ok): Delete function.
4027 (set_arch): Delete function.
4028 (set_architecture_from_arch_mach): Delete function.
4029 (set_architecture_from_file): Delete function.
4030 (set_architecture): Assume GDB_MULTI_ARCH.
4031 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4032
4033 2003-08-21 Mark Kettenis <kettenis@gnu.org>
4034
4035 Rewrite FreeBSD/sparc64 native configuration.
4036 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4037 * sparc64fbsd-nat.c: New file.
4038 * sparc64fbsd-tdep.c: New file.
4039 * sparc64-tdep.c sparc64-tdep.h: New files.
4040 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4041 sparc64fbsd-tdep.o): New dependencies.
4042 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4043 and sparc64fbsd-tdep.c.
4044 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4045 * config/sparc/fbsd.mh: Remove copyright notice.
4046 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4047 sparcbsd-nat.o.
4048 * config/sparc/fbsd.mt: Remove copyright notice.
4049 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4050 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4051 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4052 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4053 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4054 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4055 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4056 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4057 "sparc/tm-sp64.h".
4058 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4059 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4060
4061 2003-08-21 Michael Chastain <mec@shout.net>
4062
4063 * symtab.h: Add doco on the space critical structures and
4064 some measurements of space usage.
4065
4066 2003-08-21 Michael Snyder <msnyder@redhat.com>
4067
4068 * tracepoint.c (trace_dump_command): Trace break address
4069 is subject to DECR_PC_AFTER_BREAK.
4070 (set_traceframe_context): Make "trace_line" an int.
4071 Fixes suggested by Mark Newman <mark.newman@lmco.com>
4072
4073 2003-08-20 Michael Snyder <msnyder@redhat.com>
4074
4075 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4076 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4077 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4078 argument passing.
4079 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4080 functions, replace sh_push_dummy_call.
4081 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4082
4083 2003-08-20 Michael Chastain <mec@shout.net>
4084
4085 * gdbtypes.h (struct main_type): Rearrange to save space.
4086
4087 2003-08-20 Michael Snyder <msnyder@redhat.com>
4088
4089 * trad-frame.c: Comment typo fix.
4090
4091 2003-08-20 Michael Snyder <msnyder@redhat.com>
4092 Kevin Buettner <kevinb@redhat.com>
4093
4094 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4095 (frv_frame_init_saved_regs): Add declaration.
4096 (frame_extra_info): Add new field ``saved_regs''.
4097 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4098 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4099 Update frame related code.
4100 (frv_extract_struct_value_address): Adjust formatting.
4101 * Makefile.in (frv-tdep.o): Update dependencies.
4102 * config/frv/tm-frv.h (target_insert_watchpoint)
4103 (target_remove_watchpoint, target_insert_hw_breakpoint)
4104 (target_remove_hw_breakpoint): Delete these macros.
4105 (remote_insert_watchpoint, remote_remove_watchpoint)
4106 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4107 these declarations.
4108
4109 2003-08-20 Michael Chastain <mec@shout.net>
4110
4111 * defs.h (ENUM_BITFIELD): New macro.
4112 * symtab.h (ENUM_BITFIELD): Use it.
4113 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4114
4115 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4116
4117 * MAINTAINERS (write after approval): Add myself.
4118
4119 2003-08-18 Andrew Cagney <cagney@redhat.com>
4120
4121 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4122 * gdbarch.h, gdbarch.c: Re-generate.
4123 * infcall.c (call_function_by_hand): Adjust the SP by
4124 frame_red_zone_size before allocating any stack space.
4125 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4126 * x86-64-tdep.c (x86_64_frame_align): New function.
4127 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4128
4129 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4130 Remove code adjusting SP so that it skips over the Red Zone.
4131
4132 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4133
4134 * NEWS (New native configurations): Mention FreeBSD/amd64.
4135
4136 2003-08-18 Andrew Cagney <cagney@redhat.com>
4137
4138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4139 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4140 "m68k_frame_p".
4141 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4142
4143 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4144
4145 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4146
4147 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4148
4149 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4150 Define.
4151 * i386-linux-nat.c: Include "linux-nat.h".
4152 (child_post_startup_inferior): New function.
4153
4154 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4155
4156 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4157 at the start of a frameless function. This probably fixes PR
4158 backtrace/1338.
4159
4160 2003-08-17 Michael Chastain <mec@shout.net>
4161
4162 * symfile.c (find_sym_fns): Remove special case for apollo target.
4163
4164 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4165
4166 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4167 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4168 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4169 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4170 (linux_supports_tracevforkdone): New function.
4171 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4172 TRACEVFORKDONE.
4173 (child_follow_fork): Handle vfork.
4174 (linux_handle_extended_wait): Likewise. Also handle exec.
4175 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4176 * NEWS: Mention fork tracing.
4177
4178 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4179
4180 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4181
4182 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4183
4184 * Makefile.in (i386-linux-nat.o): Update dependencies.
4185 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4186 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4187 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4188 * i386-linux-nat.c: Include "linux-nat.h".
4189 (child_post_startup_inferior): New function.
4190 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4191 * infptrace.c (kill_inferior): Wrap in #ifdef.
4192 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4193 attaching to each LWP.
4194 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4195 (init_lin_lwp_ops): Fill in some more operations.
4196 * linux-nat.h (linux_enable_event_reporting)
4197 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4198 prototypes.
4199 * linux-nat.c (linux_enable_event_reporting): New function.
4200 (child_post_attach, linux_child_post_startup_inferior)
4201 (child_post_startup_inferior, child_follow_fork)
4202 (linux_handle_extended_wait, kill_inferior): New functions.
4203
4204 2003-08-16 Andrew Cagney <cagney@redhat.com>
4205
4206 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4207 * gdbarch.h, gdbarch.c: Re-generate.
4208
4209 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4210
4211 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4212
4213 2003-08-16 Andrew Cagney <cagney@redhat.com>
4214
4215 * NEWS: Mention that "set prompt-escape-char" was deleted.
4216 * top.c (get_prompt_1): Delete function.
4217 (gdb_prompt_escape):
4218 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4219 prompt-escape-char" command.
4220 (MAX_PROMPT_SIZE): Delete macro.
4221 (get_prompt): Simplify, do not call get_prompt_1.
4222
4223 2003-08-16 Andrew Cagney <cagney@redhat.com>
4224
4225 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4226 -Werror. -Wformat-nonliteral problems.
4227
4228 2003-08-15 J. Brobecker <brobecker@gnat.com>
4229
4230 Further multiarching work mostly for hppa64-*-hpux11:
4231 * hppa-tdep.h: New file.
4232 * hppa-tdep.c: #include hppa-tdep.c.
4233 (hppa32_num_regs): Renamed from hppa_num_regs.
4234 (hppa64_num_regs): New constant.
4235 (hppa64_call_dummy_breakpoint_offset): New constant.
4236 (hppa32_call_dummy_length): New constant.
4237 (hppa64_call_dummy_length): New constant.
4238 (hppa32_stack_align): Make name 32bit explicit.
4239 (hppa32_register_virtual_type): Likewise.
4240 (hppa32_extract_return_value): Likewise.
4241 (hppa32_use_struct_convention): Likewise.
4242 (hppa32_store_return_value): Likewise.
4243 (hppa64_register_virtual_type): New function.
4244 (hppa64_extract_return_value): New function.
4245 (hppa64_use_struct_convention): New function.
4246 (hppa64_store_return_value): New function.
4247 (hppa_frame_locals_address): Remove declaration, function does
4248 not exist anymore.
4249 (hppa_register_byte): Add support for PA64 ABI.
4250 (hppa_gdbarch_init): Add support for PA64 ABI.
4251 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4252 Make name 32bit explicit.
4253 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4254 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4255 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4256 (hppa64_hpux_frame_base_before_sigtramp): New function.
4257 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4258 * config/pa/tm-hppa64.h: Remove macros that are no longer
4259 necessary now that the gdbarch vector is properly setup.
4260 Transform some macros into function calls. Some minor cleanup.
4261 * config/pa/tm-hppah.h: Update function calls in macros
4262 following the function renaming in hppa-hpux-tdep.c.
4263 * Makefile.in (hppa_tdep_h): New variable.
4264 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4265
4266 2003-08-14 Michael Snyder <msnyder@redhat.com>
4267
4268 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4269
4270 2003-08-13 J. Brobecker <brobecker@gnat.com>
4271
4272 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4273 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4274 routine.
4275
4276 2003-08-13 Michael Snyder <msnyder@redhat.com>
4277
4278 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4279 (frv_saved_pc_after_call): Use deprecated ftype.
4280 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4281 (frv_remote_translate_xfer_address): Remove.
4282 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4283
4284 2003-08-13 J. Brobecker <brobecker@gnat.com>
4285
4286 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4287 initialization after the common gdbarch initialization, not before.
4288
4289 2003-08-13 J. Brobecker <brobecker@gnat.com>
4290
4291 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4292 (ADDR_BITS_REMOVE): Remove, redundant.
4293
4294 2003-08-13 J. Brobecker <brobecker@gnat.com>
4295
4296 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4297 gdbarch method to clear the 2 low bits of text addresses.
4298
4299 2003-08-12 Andrew Cagney <cagney@redhat.com>
4300
4301 * Makefile.in (dsrec.o): Update dependencies.
4302 * dsrec.c: Include "gdb_assert.h".
4303 (make_srec): Use snprintf instead of sprintf, use a literal format
4304 string.
4305
4306 2003-08-12 Andrew Cagney <cagney@redhat.com>
4307
4308 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4309 FRAME_OBSTACK_ZALLOC.
4310
4311 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4312
4313 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4314 SSE registers.
4315
4316 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4317
4318 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4319 amd64fbsd_sc_reg_offset): Add extern declarations.
4320 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4321 declarations.
4322
4323 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4324
4325 * MAINTAINERS (write after approval): Update my mail address.
4326
4327 2003-08-10 Andrew Cagney <cagney@redhat.com>
4328
4329 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4330
4331 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4332
4333 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4334 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4335 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4336 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4337 i386bsd_sc_reg_offset): Add extern declarations.
4338 * i386obsd-nat.c: Include "i386-tdep.h"
4339 (_initialize_i386obsd_nat): Remove extern declarations.
4340 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4341 declarations.
4342 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4343 declarations.
4344
4345 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4346 instead of frame_read_register.
4347 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4348 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4349 SP_REGNUM.
4350 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4351 instead of frame_unwind_unsigned_register. Use
4352 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4353 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4354 instead of read_register. Use builtin_type_void_data_ptr instead
4355 of builtin_type_void_func_ptr when extracting the address of the
4356 jmp_buf.
4357 (i386_extract_return_value, i386_store_return_value,
4358 i386_pseudo_register_read, i386_pseudo_register_write): Use
4359 register_size instead REGISTER_RAW_SIZE.
4360
4361 2003-08-10 Andrew Cagney <cagney@redhat.com>
4362
4363 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4364 sprintf. Make "name" constant.
4365
4366 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4367
4368 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4369 instead of frame_read_register.
4370 (i387_print_float_info): Use get_frame_register and
4371 get_frame_register_unsigned instead of frame_register_read.
4372
4373 * i386fbsd-nat.c: Include "i386-tdep.h".
4374 (child_resume): Make `eflags' an ULONGEST. Use
4375 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4376 instead of register_read and register_write.
4377
4378 * i386bsd-nat.c (fetch_inferior_registers,
4379 store_inferior_registers): Don't use && at the end of a line.
4380 (_initialize_i386bsd_nat): Fix typo.
4381
4382 * frame.c (_initialize_frame): Add missing backslash.
4383
4384 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4385 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4386 and supply_register instead of manipulating the register buffer
4387 directly.
4388
4389 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4390 * config/i386/nm-i386sol2.h
4391 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4392
4393 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4394 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4395 instructions that GCC likes to mingle into the prologue. Fixes
4396 gdb/1253 and gdb/1255.
4397
4398 2003-08-09 Andrew Cagney <cagney@redhat.com>
4399
4400 Fix GDB PR cli/926.
4401 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4402 * command.h (add_setshow_uinteger_cmd): Declare.
4403 * frame.c (set_backtrace_cmd): New function.
4404 (show_backtrace_cmd): New function.
4405 * frame.c (_initialize_frame): Replace "set/show
4406 backtrace-below-main" with "set/show backtrace past-main". Add
4407 command "set/show backtrace limit".
4408 (backtrace_past_main): Rename "backtrace_below_main".
4409 (backtrace_limit): New variable.
4410 (get_prev_frame): Update. Check the backtrace_limit.
4411
4412 2003-08-09 Andrew Cagney <cagney@redhat.com>
4413
4414 * defs.h (xstrprintf): Declare.
4415 * utils.c (xstrprintf): New function.
4416 * breakpoint.c (insert_breakpoints): Replace sprintf and
4417 non-literal format strings, with xstrprintf and cleanups.
4418 (delete_breakpoint,breakpoint_re_set): Ditto.
4419 (commands_command, insert_breakpoints): Ditto.
4420 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4421 (break_at_finish_command_1): Ditto.
4422
4423 2003-08-09 Andrew Cagney <cagney@redhat.com>
4424
4425 * MAINTAINERS (language support): List Adam Fedor as Objective C
4426 maintainer.
4427
4428 2003-08-08 J. Brobecker <brobecker@gnat.com>
4429
4430 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4431 are now multiarched.
4432
4433 2003-08-08 J. Brobecker <brobecker@gnat.com>
4434
4435 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4436 longer necessary now that hppa64 is partially multiarch'ed.
4437
4438 2003-08-08 Andrew Cagney <cagney@redhat.com>
4439
4440 * interps.c (interp_set): Check for a NULL "old_interp".
4441
4442 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4443
4444 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4445 (install-only): Support DESTDIR.
4446 (uninstall): Likewise.
4447 (install-gdbtk): Likewise.
4448
4449 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4450
4451 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4452 contains something meaningful at all times.
4453
4454 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4455
4456 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4457
4458 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4459
4460 * MAINTAINERS (write after approval): Added self.
4461
4462 2003-08-07 Andrew Cagney <cagney@redhat.com>
4463
4464 * inferior.h (AT_SYMBOL): Define.
4465 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4466 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4467 * mips-tdep.c (mips_call_dummy_address): Delete function.
4468 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4469 set call_dummy_address.
4470
4471 2003-08-07 Andrew Cagney <cagney@redhat.com>
4472
4473 * language.c (op_error): Delete function.
4474 (binop_type_check): Delete function.
4475 * language.h (type_op_error, range_op_error): Delete macros.
4476 (op_error): Delete declaration.
4477
4478 2003-08-07 Andrew Cagney <cagney@redhat.com>
4479
4480 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4481
4482 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4483
4484 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4485 (x86_64_push_arguments): Skip the red zone.
4486
4487 2003-08-05 Andrew Cagney <cagney@redhat.com>
4488
4489 * reggroups.c (reggroup_next): Check for the final entry.
4490
4491 2003-08-04 Andrew Cagney <cagney@redhat.com>
4492
4493 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4494 * cli/cli-script.c (define_command): Call query directly, instead
4495 of passing it a buffer.
4496 * ocd.c (ocd_error): Pass error a constant format string.
4497 * remote-mips.c (mips_error): Use fputs_filtered.
4498
4499 * solib-svr4.c (_initialize_svr4_solib): Update
4500 register_gdbarch_data call.
4501 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4502
4503 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4504 (register_gdbarch_data): Delete "free" parameter. Update
4505 comments.
4506 * gdbarch.h, gdbarch.c: Re-generate.
4507 * reggroups.c (_initialize_reggroup): Update.
4508 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4509 * frame-base.c (_initialize_frame_base): Update.
4510 * frame-unwind.c (_initialize_frame_unwind): Update.
4511 * user-regs.c (_initialize_user_regs): Update.
4512 * remote.c (_initialize_remote): Update.
4513 * regcache.c (_initialize_regcache): Update.
4514
4515 * regcache.c (xfree_regcache_descr): Delete function.
4516 (_initialize_regcache): Update call to register_gdbarch_data.
4517 (init_regcache_descr, init_legacy_regcache_descr): Use
4518 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4519
4520 * remote.c (free_remote_state): Delete function.
4521 (_initialize_remote): Update register_gdbarch_data.
4522 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4523 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4524
4525 2003-08-04 Andrew Cagney <cagney@redhat.com>
4526
4527 * reggroups.c (struct reggroup_el): Define.
4528 (struct reggroups): Delete field "nr_group". Replace array
4529 "group" with a "first" to "last" linked list.
4530 (reggroups_init): Update. Allocate using gdbarch's obstack.
4531 (reggroups_free): Delete function.
4532 (add_group): Update. Add "el" parameter.
4533 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4534 (default_groups): Update.
4535 (reggroup_next): Replace reggroups.
4536 (reggroups_dump): Update.
4537 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4538 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4539 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4540
4541 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4542
4543 * Makefile.in (tui-interp.o): Update dependencies.
4544
4545 2003-08-04 David Carlton <carlton@kealia.com>
4546
4547 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4548 to internal_error call.
4549 * source.c (forward_search_command): Add "%s" format argument.
4550 (reverse_search_command): Ditto.
4551 * top.c (quit_confirm): Ditto.
4552 * cli/cli-setshow.c (do_setshow_command): Ditto.
4553 * cp-valprint.c (cp_print_class_method): Replace
4554 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4555 (cp_print_class_member): Ditto.
4556 * event-top.c (command_line_handler): Ditto.
4557 * linux-proc.c (linux_info_proc_cmd): Ditto.
4558 * p-typeprint.c (pascal_type_print_base): Ditto.
4559 * p-valprint.c (pascal_object_print_class_method): Ditto.
4560 (pascal_object_print_class_member): Ditto.
4561 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4562 * remote.c (remote_cisco_section_offsets): Ditto.
4563 * top.c (command_line_input): Ditto.
4564 * utils.c (vwarning,error_stream,quit): Ditto.
4565 * valprint.c (print_floating,print_binary_chars)
4566 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4567
4568 2003-08-04 Andrew Cagney <cagney@redhat.com>
4569
4570 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4571
4572 2003-08-02 Andrew Cagney <cagney@redhat.com>
4573
4574 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4575 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4576 amd64fbsd-nat.c.
4577
4578 2003-08-02 Andrew Cagney <cagney@redhat.com>
4579
4580 * Makefile.in: Update all dependencies and definitions.
4581
4582 2003-08-02 Adam Fedor <fedor@gnu.org>
4583
4584 * linespec.c (is_objc_method_format): New function
4585 (decode_line_1, locate_first_half): Use it.
4586 Fixes PR objc/1298
4587
4588 2003-08-01 Andrew Cagney <cagney@redhat.com>
4589
4590 * NEWS: Mention that m32r is multi-arch.
4591 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4592 * configure.tgt: Recognize m32r-*-*.
4593 * config/m32r/tm-m32r.h: Delete file.
4594 * config/m32r/m32r.mt: New file.
4595 * m32r-rom.c (m32r_upload_command): Use hostent only when
4596 gethostname succeeds, in order to avoid a compilation
4597 warning.
4598 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4599 compiler warning.
4600
4601 2003-08-01 Michael Snyder <msnyder@redhat.com>
4602
4603 * sh-tdep.c (sh_frame_align): New gdbarch method.
4604 (sh_gdbarch_init): Set up frame_align method.
4605
4606 2003-07-31 Michael Snyder <msnyder@redhat.com>
4607
4608 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4609 which is already covered by the new frames infrastructure.
4610
4611 2003-07-31 Andrew Cagney <cagney@redhat.com>
4612
4613 * user-regs.c (struct user_reg): Add "next" link.
4614 (struct user_regs): Replace "user" with "first" and "last" links.
4615 (append_user_reg): Add pre-allocated "reg" parameter.
4616 (builtin_user_regs): Provide initial value for "last".
4617 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4618 (user_regs_init): Allocate memory from the gdbarch obstack.
4619 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4620 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4621 linked list.
4622 (usernum_to_user_reg): New function.
4623 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4624 (value_of_user_reg): Use usernum_to_user_reg.
4625 (user_regs_free): Delete function.
4626 (_initialize_user_regs): Update register_gdbarch_data call.
4627
4628 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4629
4630 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4631
4632 2003-07-30 Michael Snyder <msnyder@redhat.com>
4633
4634 * value.h (value_being_returned): Add a struct_addr argument.
4635 * infcall.c (call_function_by_hand): Pass struct_addr to
4636 value_being_returned.
4637 * infcmd.c (print_return_value): Pass zero as struct_addr.
4638 * values.c (value_being_returned): If struct_addr is passed,
4639 use it instead of trying to recover it from the inferior.
4640
4641 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4642
4643 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4644 the prologue analyzer won't need to attempt to extract the pc
4645 value from the woefully incomplete dummy frame.
4646 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4647 possible. Disable code which modifies the frame.
4648
4649 2003-07-28 Andrew Cagney <cagney@redhat.com>
4650
4651 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4652 to level 2.
4653 (annotate_breakpoints_table, annotate_record): Ditto.
4654 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4655 (annotate_field_name_end, annotate_field_value): Ditto.
4656 (annotate_field_end, annotate_frame_source_begin): Ditto.
4657 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4658 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4659 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4660 (annotate_frame_address_end, annotate_frame_address): Ditto.
4661 (annotate_frame_args, annotate_frame_end): Ditto.
4662 (annotate_frame_where, annotate_arg_begin): Ditto.
4663 (annotate_arg_name_end, annotate_arg_value): Ditto.
4664 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4665 (annotate_function_call, annotate_signal_name): Ditto.
4666 (annotate_signal_string, annotate_signal_name_end): Ditto.
4667 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4668 (annotate_value_begin, annotate_value_history_value): Ditto.
4669 (annotate_value_history_end, annotate_value_end): Ditto.
4670 (annotate_display_begin, annotate_display_number_end): Ditto.
4671 (annotate_display_format, annotate_display_expression): Ditto.
4672 (annotate_display_expression_end, annotate_display_value): Ditto.
4673 (annotate_display_end, annotate_array_section_begin): Ditto.
4674 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4675 (annotate_elt, annotate_array_section_end): Ditto.
4676
4677 2003-07-28 Andrew Cagney <cagney@redhat.com>
4678
4679 * regcache.c (struct regcache_descr): Update comments on
4680 nr_raw_registers.
4681 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4682 sizeof_raw_register_valid_p.
4683 (init_regcache_descr): Set nr_raw_registers and
4684 sizeof_raw_register_valid_p before calling
4685 init_legacy_regcache_descr.
4686
4687 2003-07-28 Andrew Cagney <cagney@redhat.com>
4688
4689 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4690 MOD NUM_REGS.
4691
4692 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4693
4694 * thread.c (info_threads_command): Use get_selected_frame ().
4695 Check that there is at least one non-sentinel frame.
4696
4697 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4698
4699 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4700 (m68hc11_pop_frame): Remove.
4701 (m68hc11_frame_saved_pc): Remove.
4702 (m68hc11_frame_chain): Remove.
4703 (m68hc11_frame_init_saved_regs): Remove.
4704 (m68hc11_init_extra_frame_info): Remove.
4705 (m68hc11_store_struct_return): Remove.
4706 (m68hc11_saved_pc_after_call): Remove.
4707
4708 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4709
4710 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4711 frame unwind information.
4712 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4713 and adapted for frame unwinding.
4714 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4715 (m68hc11_unwind_pc): New function.
4716 (m68hc11_frame_unwind_cache): New function to analyze frames.
4717 (m68hc11_frame_this_id): New function to create new frame struct.
4718 (m68hc11_frame_prev_register): New function to unwind a register from
4719 the frame.
4720 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4721 (m68hc11_frame_p): New function for the above.
4722 (m68hc11_frame_base_address): New function to return fp of frame.
4723 (m68hc11_frame_args_address): Update for frame.
4724 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4725 (m68hc11_unwind_sp): New function.
4726 (m68hc11_unwind_dummy_id): New function.
4727 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4728 calls.
4729
4730 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4731
4732 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4733 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4734 when we are beyond the current pc.
4735
4736 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4737
4738 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4739 from m68hc11_push_arguments.
4740 (m68hc11_push_arguments): Remove.
4741 (m68hc11_push_return_address): Remove.
4742 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4743 handlers; remove deprecated_extra_stack_alignment_needed.
4744
4745 2003-07-27 Andrew Cagney <cagney@redhat.com>
4746
4747 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4748 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4749 REAL_PC and not the pointer.
4750 * hppa-hpux-tdep.c: Include frame.h
4751
4752 2003-07-27 Andrew Cagney <cagney@redhat.com>
4753
4754 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4755 GDB_MULTI_ACH_PARTIAL.
4756
4757 2003-07-27 Andrew Cagney <cagney@redhat.com>
4758
4759 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4760 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4761 operator at start and not end of line.
4762 (decode_prologue): Ditto.
4763 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4764 frame_unwind_register_unsigned instead of
4765 frame_unwind_unsigned_register.
4766 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4767 read_register.
4768 (m32r_push_dummy_call): Use register_size instead of
4769 REGISTER_RAW_SIZE.
4770 (m32r_frame_sniffer): Replace m32r_frame_p.
4771 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4772 * m32r-rom.c (report_transfer_performance): Delete extern
4773 declaration.
4774 (m32r_load, m32r_upload_command): Use print_transfer_performance
4775 instead of report_transfer_performance.
4776 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4777 / add_show_from_set.
4778
4779 2003-07-26 Andrew Cagney <cagney@redhat.com>
4780
4781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4782 store_return_value and extract_struct_value_address.
4783
4784 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4785
4786 PR c++/1267
4787 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4788 NULL, default to the section containing PC.
4789
4790 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4791
4792 * NEWS: Mention "regs" deprecated for m68hc11 too.
4793
4794 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4795 (m68hc11_print_register): New function to print out one register.
4796 (m68hc11_print_registers_info): New function to print registers.
4797 (show_regs): Deprecate and use the above.
4798 (m68hc11_gdbarch_init): Install the print_registers_info.
4799
4800 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4801
4802 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4803 that we have a SIGTRAP before returning non-zero.
4804
4805 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4806 Elena Zannoni <ezannoni@redhat.com>
4807
4808 * linespec.c (decode_line_2): Avoid crash if
4809 find_function_start_sal() returns empty record.
4810
4811 2003-07-23 Andreas Schwab <schwab@suse.de>
4812
4813 * ia64-tdep.c (ia64_print_insn): New function.
4814 (ia64_gdbarch_init): Set print_insn to it.
4815 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4816 deprecated_tm_print_insn_info.
4817
4818 2003-07-22 Michael Snyder <msnyder@redhat.com>
4819
4820 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4821 handle 8-bit returns (long long).
4822 (h8300h_extract_return_value): Ditto.
4823 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4824
4825 2003-07-22 Andrew Cagney <cagney@redhat.com>
4826
4827 * gdbarch.c Include "gdb_obstack.h".
4828 (struct gdbarch): Add an "obstack".
4829 (alloc_gdbarch_data): Allocate the gdbarch data using
4830 GDBARCH_OBSTACK_CALLOC.
4831 (free_gdbarch_data): Delete function.
4832 (gdbarch_obstack_zalloc): New function.
4833 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4834 Assert that the architecture is not initialized.
4835 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4836 vector from the obstack.
4837 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4838 architecture obstack.
4839 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4840 (set_gdbarch_data): Assert that the data is not initialized.
4841 (struct gdbarch_data): Delete member "free".
4842 (register_gdbarch_data): Do not initialize "free".
4843 * gdbarch.h, gdbarch.c: Re-generate.
4844
4845 2003-07-22 Andrew Cagney <cagney@redhat.com>
4846
4847 * configure.in (build_warnings): Add -Wformat-nonliteral.
4848 * configure: Re-generate.
4849
4850 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4851
4852 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4853
4854 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4855
4856 * findvar.c (read_var_value): Remove case for thread local storage
4857 variables. It is now entirely handled by the dwarf2 location
4858 expression code.
4859 * printcmd.c (address_info): Ditto.
4860 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4861 enumeration value.
4862 (struct symbol): Remove objfile field, which was used by
4863 LOC_THREAD_LOCAL_STATIC only.
4864 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4865 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4866 usage of objfile pointer.
4867 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4868 thread local variables.
4869 Add include of objfiles.h.
4870 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4871 storage variables.
4872 * Makefile.in (dwarf2loc.o): Update dependencies.
4873
4874 2003-07-22 Andrew Cagney <cagney@redhat.com>
4875
4876 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4877 get_frame_base.
4878 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4879 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4880 (struct value): Add opaque declaration.
4881 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4882
4883 2003-07-21 Andrew Cagney <cagney@redhat.com>
4884
4885 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4886 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4887
4888 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4889
4890 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4891 regcache_cooked_read_unsigned instead of read_register.
4892 (m68hc11_saved_pc_after_call): Likewise.
4893 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4894 instead of write_register.
4895 (m68hc11_register_type): New function.
4896 (m68hc11_register_virtual_type): Remove.
4897 (m68hc11_store_return_value): Convert to use the regcache.
4898 (m68hc11_extract_struct_value_address): Likewise.
4899 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4900 m68hc11_register_type; undeprecate store_return_value and
4901 extract_struct_value_address.
4902
4903 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4904
4905 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4906 and translate to use regcache.
4907 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4908
4909 2003-07-18 Andrew Cagney <cagney@redhat.com>
4910
4911 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4912 * gdbarch.h, gdbarch.c: Re-generate.
4913 * i386-tdep.c (i386_gdbarch_init): Do not set
4914 DWARF2_BUILD_FRAME_INFO.
4915 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4916 unconditionally.
4917 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4918 DWARF2_BUILD_FRAME_INFO.
4919
4920 2003-07-18 Andrew Cagney <cagney@redhat.com>
4921
4922 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4923 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4924
4925 2003-07-18 Andrew Cagney <cagney@redhat.com>
4926
4927 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4928 frame_unwind_address_in_block, instead of frame_pc_unwind.
4929 (dwarf2_frame_cache): Ditto.
4930
4931 2003-07-18 Andrew Cagney <cagney@redhat.com>
4932
4933 * user-regs.h (struct gdbarch): Declare opaque.
4934 * ui-out.h (struct ui_file): Declare opaque.
4935 * dwarf2-frame.h (struct frame_info): Declare opaque.
4936
4937 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4938
4939 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4940 #include "...".
4941 (procfs_meminfo): Change strerror to safe_strerror.
4942 (procfs_can_run): Remove K&R badness.
4943
4944 2003-07-17 Michael Snyder <msnyder@redhat.com>
4945
4946 * remote-sim.c: Comment typo fix.
4947
4948 2003-07-17 Andrew Cagney <cagney@redhat.com>
4949
4950 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4951 configure.
4952 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4953 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4954 GDB_MULTI_ARCH_PARTIAL.
4955
4956 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4957
4958 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4959 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4960 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4961
4962 2003-07-16 Theodore A. Roth <troth@openavr.org>
4963
4964 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4965 found.
4966 (avr_frame_unwind_cache): Don't unwind FP for main.
4967 Update a comment.
4968 Save the computed prev_sp.
4969 (avr_saved_regs_unwinder): Remove function.
4970 (avr_frame_prev_register): Use PC unwind logic from
4971 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4972
4973 2003-07-16 Andrew Cagney <cagney@redhat.com>
4974
4975 * frame-base.h (frame_base_p_ftype): Delete definition.
4976 (frame_base_append_predicate): Delete declaration.
4977 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4978 (frame_unwind_append_predicate): Delete declaration.
4979 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4980 (append_predicate): Delete parameter "p".
4981 (frame_unwind_append_predicate): Delete function.
4982 (frame_unwind_append_sniffer): Update call to append_predicate.
4983 (frame_unwind_free): Delete function.
4984 (_initialize_frame_unwind): Pass NULL as "free" to
4985 register_gdbarch_data.
4986 (frame_unwind_init): Append the dummy_frame_sniffer.
4987 (frame_unwind_find_by_frame): Simplify.
4988 * frame-base.c (struct frame_base_table): Delete field "p".
4989 (append_predicate): Delete parameter "p".
4990 (frame_base_append_predicate): Delete function.
4991 (frame_base_append_sniffer): Update call to append_predicate.
4992 (frame_base_free): Delete function.
4993 (frame_base_find_by_frame): Simplify.
4994 (_initialize_frame_base): Pass NULL as "free" to
4995 register_gdbarch_data.
4996 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4997 (x86_64_sigtramp_frame_sniffer): Replace
4998 "x86_64_sigtramp_frame_p".
4999 (x86_64_init_abi): Set the frame unwind sniffers.
5000 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5001 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5002 (m68k_gdbarch_init): Set the frame unwind sniffers.
5003 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5004 "i386_sigtramp_frame_p".
5005 (i386_frame_sniffer): Replace "i386_frame_p".
5006 (i386_gdbarch_init): Set the frame unwind sniffers.
5007 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5008 (avr_gdbarch_init): Set the frame unwind sniffers.
5009 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5010 "alpha_sigtramp_frame_p"
5011 (alpha_heuristic_frame_sniffer): Replace
5012 "alpha_heuristic_frame_p".
5013 (alpha_gdbarch_init): Set the frame unwind sniffers.
5014 (alpha_dwarf2_init_abi): Ditto.
5015 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5016 "alpha_debug_frame_p".
5017 (alpha_mdebug_frame_base_sniffer): Replace
5018 "alpha_mdebug_frame_base_p".
5019 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5020 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5021 (d10v_gdbarch_init): Set the frame unwind sniffer.
5022 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5023 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5024 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5025 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5026 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5027 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5028
5029 2003-07-16 Michael Snyder <msnyder@redhat.com>
5030
5031 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5032 should go thru sh_dsp_register_sim_regno, else the dsp regs
5033 will not get the right values.
5034
5035 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5036
5037 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5038 deprecated_store_floating by call to store_typed_floating.
5039 (sh_sh4_register_convert_to_raw): Substitute call to
5040 deprecated_extract_floating by call to extract_typed_floating.
5041
5042 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5043
5044 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5045
5046 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5047
5048 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5049 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5050 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5051 as possible.
5052 (do_pseudo_register): Remove.
5053 (sh_push_dummy_code): New function.
5054 (sh64_store_struct_return): Rename from sh_store_struct_return.
5055 Only called for sh64 now.
5056 (sh_extract_struct_value_address): Regcache'ify.
5057 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5058 and accomodate new tasks.
5059 (sh64_push_return_address): Rename from sh_push_return_address.
5060 Only called for sh64 now.
5061 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5062 Regcache'ify.
5063 (sh3e_sh4_extract_return_value): Regcache'ify.
5064 (sh_default_store_return_value): Ditto.
5065 (sh3e_sh4_store_return_value): Ditto.
5066 (sh_default_register_byte): Remove.
5067 (sh_sh4_register_byte): Remove.
5068 (sh_default_register_raw_size): Remove.
5069 (sh_sh4_register_raw_size): Remove.
5070 (sh_register_virtual_size): Remove.
5071 (sh_sh3e_register_virtual_type): Remove.
5072 (sh_sh3e_register_type): New function.
5073 (sh_sh4_register_virtual_type): Remove.
5074 (sh_sh4_register_type): New function.
5075 (sh_default_register_virtual_type): Remove.
5076 (sh_default_register_type): New function.
5077 (do_fv_register_info): Add parameters to accomodate call from
5078 sh_print_registers_info.
5079 (do_dr_register_info): Ditto.
5080 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5081 Add parameters to accomodate call from sh_print_registers_info.
5082 (sh_do_fp_register): Ditto.
5083 (sh64_do_pseudo_register): Call do_dr_register_info,
5084 do_fv_register_info and sh_do_fp_register with default parameters.
5085 (sh_do_register): Add parameters to accomodate call from
5086 sh_print_registers_info.
5087 (sh_print_register): Ditto.
5088 (sh_print_registers_info): Rename from sh_do_registers_info.
5089 Add parameters to be used as gdbarch_print_registers_info
5090 implementation. Accomodate removed do_pseudo_register function
5091 pointer.
5092 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5093 function pointer. Call sh_print_register with default parameters.
5094 (sh64_do_registers_info): Call sh_print_registers_info instead of
5095 sh_do_registers_info.
5096 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5097 detection of deprecated vs. non-deprecated functionality.
5098 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5099 function pointer assignments by direct function calls.
5100
5101 2003-07-15 Andrew Cagney <cagney@redhat.com>
5102
5103 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5104 (frame_register_unwind, create_new_frame): Ditto.
5105 (legacy_get_prev_frame, get_frame_type): Ditto.
5106 (get_frame_base_address): Use frame_base_find_by_frame.
5107 (get_frame_locals_address): Use frame_base_find_by_frame.
5108 (get_frame_args_address): Use frame_base_find_by_frame.
5109 * frame-base.h (frame_base_sniffer_ftype): Declare.
5110 (frame_base_append_sniffer): Declare.
5111 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5112 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5113 (frame_base_append_sniffer): New function.
5114 (frame_base_append_predicate): Add a NULL sniffer.
5115 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5116 (struct frame_base_table): Add "sniffer".
5117 (frame_base_free): Free the "sniffer" table.
5118 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5119 (frame_unwind_append_sniffer): Declare.
5120 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5121 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5122 (struct frame_unwind_table): Add "sniffer", delete "middle".
5123 (append_predicate): Add "sniffer" parameter, append the sniffer.
5124 (frame_unwind_init): Update append_predicate call.
5125 (frame_unwind_append_sniffer): New function.
5126 (frame_unwind_append_predicate): Update append_predicate call.
5127 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5128
5129 2003-07-15 Andrew Cagney <cagney@redhat.com>
5130
5131 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5132 before code inhibiting repeated unwind attempts. Add to
5133 commentary on that test's problems.
5134 * blockframe.c (inside_main_func): Look for "main" in the minimal
5135 symbol table.
5136 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5137 identical.
5138
5139 2003-07-15 Andrew Cagney <cagney@redhat.com>
5140
5141 * complaints.c (struct explanation): Define.
5142 (struct complaints): Change type of "explanation" to "struct
5143 explanation".
5144 (symfile_explanations): Convert to a "struct explanation" table.
5145 (vcomplaint): Update.
5146
5147 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5148
5149 * x86-64-linux-nat.c (regmap): Removed.
5150 (supply_gregset, fill_gregset): Call
5151 x86_64_linux_(fill,supply)_gregset functions.
5152 * x86-64-linux-tdep.c (USER_*): New defines.
5153 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5154 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5155 New functions.
5156 (fetch_core_registers): Ditto.
5157 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5158 * x86-64-linux-tdep.h: New file.
5159 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5160 and core-regset.o.
5161 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5162
5163 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5164
5165 * x86-64-tdep.c (x86_64_store_return_value): Use
5166 regcache_cooked_write_part instead of regcache_cooked_write.
5167
5168 * configure.host: Add x86_64-*-freebsd*.
5169 * configure.tgt: Add x86_64-*-freebsd*.
5170 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5171 * amd64fbsd-nat.c: New file.
5172 * amd64fbsd-tdep.c: New file.
5173 * config/i386/nm-fbsd64.h: New file.
5174 * config/i386/fbsd64.mh: New file.
5175 * config/i386/fbsd64.mt: New file.
5176
5177 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5178
5179 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5180 `sc_regs_offset' and `sc_fpregs_offset'.
5181 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5182 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5183 (alpha_sigtramp_register_address): Rewrite to use new members of
5184 `struct gdbarch_tdep'.
5185 (alpha_gdbarch_init): Initialize new members of struct
5186 gdbarch_tdep'.
5187 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5188 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5189 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5190 (alphafbsd_pc_in_sigtramp): Implement.
5191 (alphafbsd_sigtramp_offset): New function.
5192 (alphafbsd_sigcontext_addr): New function.
5193 (alphafbsd_init_abi): Initialize signal trampoline related members
5194 of `struct gdbarch_tdep'.
5195 (_initialize_alphafbsd_tdep): Add prototype.
5196
5197 2003-07-11 Theodore A. Roth <troth@openavr.org>
5198
5199 * Makefile.in (install-only): Quote sed expression when generating
5200 transformed_name.
5201
5202 2003-07-11 Richard Henderson <rth@redhat.com>
5203
5204 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5205 * dwarf2-frame.c: Include complaints.h.
5206 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5207 variable initialization; return NULL on error.
5208 (decode_frame_entry): New.
5209
5210 2003-07-11 Andrew Cagney <cagney@redhat.com>
5211
5212 * frame.h (frame_address_in_block): Delete declaration.
5213 * blockframe.c (frame_address_in_block): Delete function.
5214 (get_frame_block): Use get_frame_address_in_block.
5215 (block_innermost_frame): Ditto.
5216 * stack.c (print_frame, backtrace_command_1): Ditto.
5217
5218 * frame.h (get_frame_address_in_block): Declare.
5219 (frame_unwind_address_in_block): Declare.
5220 * frame.c (frame_unwind_address_in_block): New function.
5221 (get_frame_address_in_block): New function.
5222
5223 2003-07-10 Andrew Cagney <cagney@redhat.com>
5224
5225 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5226 pre-default. Note: re-generate has no effect.
5227
5228 2003-07-10 Andrew Cagney <cagney@redhat.com>
5229
5230 * gdbarch.sh: When a variable, but not a function, compare against
5231 0. Fix problem in previous patch.
5232 * gdbarch.c: Re-generate.
5233
5234 2003-07-10 Andrew Cagney <cagney@redhat.com>
5235
5236 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5237 functions against NULL, not 0.
5238 * gdbarch.c: Re-generate.
5239
5240 2003-07-10 Fred Fish <fnf@ninemoons.com>
5241
5242 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5243 null string instead of a null pointer.
5244 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5245
5246 2003-07-09 Michael Snyder <msnyder@redhat.com>
5247
5248 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5249
5250 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5251
5252 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5253 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5254 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5255 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5256 * x86-64-tdep.c: ... from here.
5257
5258 2003-07-09 Andreas Schwab <schwab@suse.de>
5259
5260 * m68k-tdep.h (enum struct_return): Define.
5261 (struct gdbarch_tdep): Add struct_return.
5262 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5263 bytes are padded to the right, not to the left. Pass struct value
5264 address in register %a1, not on stack.
5265 (m68k_use_struct_convention): New function.
5266 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5267 struct_return in tdep to pcc_struct_return.
5268 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5269 reg_struct_return.
5270
5271 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5272
5273 * somread.c (som_symfile_offsets): Fix compilation error.
5274
5275 2003-07-09 Andrew Cagney <cagney@redhat.com>
5276
5277 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5278 Add comments about the checks.
5279
5280 2003-07-08 Andrew Cagney <cagney@redhat.com>
5281
5282 * Makefile.in: Make dependency section headers consistent.
5283 (config_h): Move to $BUILD headers section.
5284 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5285 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5286 (ada-exp.tab.c): Move to YACC/LEX section.
5287 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5288 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5289
5290 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5291
5292 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5293 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5294 of strerror with safe_strerror, use ISO C function definitions,
5295 and replace instances of sprintf with snprintf.
5296
5297 2003-07-07 Andrew Cagney <cagney@redhat.com>
5298
5299 * frame.c (get_prev_frame): Enable check for identical frames.
5300 Update comments. Update error messages.
5301
5302 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5303
5304 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5305
5306 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5307
5308 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5309 sort_symtab_syms, no longer necessary.
5310
5311 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5312
5313 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5314
5315 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5316
5317 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5318 (mips_register_byte): Likewise.
5319
5320 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5321
5322 * Makefile.in (sparc_tdep_h): New.
5323 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5324 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5325 * sparc-linux-nat.c: Include "sparc-tdep.h".
5326 * sparc-nat.c: Likewise.
5327 * sparc-tdep.c: Likewise.
5328 * sparc64nbsd-nat.c: Likewise.
5329 * sparcnbsd-nat.c: Likewise.
5330 * sparcnbsd-tdep.c: Likewise.
5331 * sparc-tdep.h: New file.
5332 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5333 and sparc_npc_regnum.
5334
5335 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5336
5337 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5338 (mips_linux_cannot_store_register): List supported instead of
5339 unsupported registers.
5340
5341 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5342
5343 * disasm.c (dump_insns): Separate instructions from addresses.
5344
5345 2003-07-07 Andreas Schwab <schwab@suse.de>
5346
5347 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5348 dependencies.
5349 * m68k-tdep.c (NUM_FREGS): Delete.
5350 (SIG_PC_FP_OFFSET): Delete.
5351 (TARGET_M68K): Delete.
5352 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5353 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5354 P_MOVEL_SP, P_MOVEML_SP): Define.
5355 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5356 P_TRAP): Delete.
5357 (m68k_register_raw_size): Delete.
5358 (m68k_register_virtual_size): Delete.
5359 (m68k_register_type): Renamed from m68k_register_virtual_type and
5360 add gdbarch argument.
5361 (m68k_store_struct_return): Delete.
5362 (m68k_deprecated_extract_return_value): Delete.
5363 (m68k_deprecated_extract_struct_value_address): Delete.
5364 (m68k_frame_chain): Delete.
5365 (m68k_frame_saved_pc): Delete.
5366 (m68k_fix_call_dummy): Delete.
5367 (m68k_push_dummy_frame): Delete.
5368 (m68k_pop_frame): Delete.
5369 (m68k_extract_return_value): New function.
5370 (m68k_store_return_value): Rewrite using regcache.
5371 (m68k_extract_struct_value_address): Rewrite using regcache.
5372 (m68k_push_dummy_call): New function.
5373 (struct m68k_frame_cache): Define.
5374 (m68k_alloc_frame_cache): New function.
5375 (m68k_analyze_frame_setup): New function.
5376 (m68k_analyze_register_saves): New function.
5377 (m68k_analyze_prologue): New function.
5378 (m68k_skip_prologue): Rewrite using above functions.
5379 (m68k_unwind_pc): New function.
5380 (m68k_frame_cache): New function.
5381 (m68k_frame_this_id): New function.
5382 (m68k_frame_prev_register): New function.
5383 (m68k_frame_unwind): New variable.
5384 (m68k_frame_p): New function.
5385 (m68k_sigtramp_frame_cache): New function.
5386 (m68k_sigtramp_frame_this_id): New function.
5387 (m68k_sigtramp_frame_prev_register): New function.
5388 (m68k_sigtramp_frame_unwind): New variable.
5389 (m68k_sigtramp_frame_p): New function.
5390 (m68k_frame_base_address): New function.
5391 (m68k_frame_base): New function.
5392 (m68k_unwind_dummy_id): New function.
5393 (fill_gregset): Use regcache_collect.
5394 (fill_fpregset): Likewise.
5395 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5396 defined.
5397 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5398 deprecated_init_frame_pc, deprecated_store_struct_return,
5399 deprecated_extract_return_value, deprecated_store_return_value,
5400 deprecated_frame_chain, deprecated_frame_saved_pc,
5401 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5402 deprecated_register_virtual_size,
5403 deprecated_max_register_raw_size,
5404 deprecated_max_register_virtual_size,
5405 deprecated_register_virtual_type, deprecated_register_size,
5406 deprecated_register_byte, deprecated_register_bytes,
5407 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5408 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5409 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5410 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5411 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5412 deprecated_push_dummy_frame, deprecated_pop_frame,
5413 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5414 only if SYSCALL_TRAP is defined. Set extract_return_value,
5415 store_return_value, extract_struct_value_address, register_type,
5416 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5417 predicates.
5418 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5419 M68K_MAX_REGISTER_SIZE): Define.
5420 (struct m68k_sigtramp_info): Define.
5421 (struct gdbarch_tdep): Add get_sigtramp_info.
5422 * m68klinux-nat.c (fetch_register): Use register_size instead of
5423 REGISTER_RAW_SIZE. Don't put assignment in if.
5424 (store_register): Likewise.
5425 (fetch_inferior_registers): Likewise.
5426 (store_inferior_registers): Likewise.
5427 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5428 (m68k_linux_frame_saved_pc): Delete.
5429 (m68k_linux_sigcontext_reg_offset,
5430 m68k_linux_ucontext_reg_offset): Define.
5431 (m68k_linux_get_sigtramp_info): New function.
5432 (m68k_linux_extract_return_value): Rewrite using regcache.
5433 (m68k_linux_store_return_value): Likewise.
5434 (m68k_linux_extract_struct_value_address): Likewise.
5435 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5436 Don't set deprecated_frame_saved_pc,
5437 deprecated_extract_return_value, deprecated_store_return_value,
5438 deprecated_extract_struct_value_address. Set
5439 extract_return_value, store_return_value,
5440 extract_struct_value_address.
5441
5442 2003-07-07 Andrew Cagney <cagney@redhat.com>
5443
5444 * expprint.c: Include "user-regs.h" instead of "frame.h".
5445 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5446 frame_map_regnum_to_name.
5447 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5448 (frame_map_name_to_regnum): Simplify, call
5449 user_reg_map_name_to_regnum.
5450 (frame_map_regnum_to_name): Simplify, call
5451 user_reg_map_regnum_to_name.
5452 (frame_register_unwind): Update.
5453 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5454 (_initialize_frame_reg): Call user_reg_add_builtin.
5455 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5456 (value_of_register): Use value_of_user_reg.
5457 * eval.c (evaluate_subexp_standard): Update.
5458 * parse.c (write_dollar_variable): Update.
5459 * d10v-tdep.c (d10v_print_registers_info): Update.
5460 * infcmd.c (registers_info): Update.
5461 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5462 (builtin_regs_h): Delete macro.
5463 (user_regs_h): Define.
5464 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5465 (builtin-regs.o): Delete target.
5466 (user-regs.o): Specify dependencies.
5467 (expprint.o): Update dependencies.
5468 (findvar.o): Update dependencies.
5469 (frame.o): Update dependencies.
5470 (std-regs.o): Update dependencies.
5471
5472 2003-07-06 Christopher Faylor <cgf@redhat.com>
5473
5474 * win32-nat.c (solib_symbols_add): Use one variable for all section
5475 address stuff. Pass variable rather than address of variable to
5476 safe_symbol_file_add.
5477
5478 2003-07-06 Andreas Schwab <schwab@suse.de>
5479
5480 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5481
5482 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5483
5484 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5485
5486 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5487
5488 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5489
5490 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5491
5492 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5493 * config/i386/nto.mh: New file.
5494 * config/i386/nm-nto.h: New file.
5495 * configure.host: Add i[3456]86-*-nto*.
5496
5497 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5498
5499 * remote-vx.c (vx_add_symbols): Fix compilation error.
5500
5501 2003-07-03 Andrew Cagney <cagney@redhat.com>
5502
5503 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5504 * gdbarch.h, gdbarch.c: Re-generate.
5505 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5506 (legacy_register_name): Declare.
5507 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5508 (REGISTER_NAME): Define.
5509 * sparc-tdep.c (legacy_register_name): New function.
5510 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5511 (REGISTER_NAME): Define.
5512 (hppa64_register_name): Declare.
5513 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5514 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5515 (hppa64_register_name): New function.
5516 (hppa_register_name): New function.
5517 * arch-utils.c (legacy_register_name): Delete.
5518 * arch-utils.h (legacy_register_name): Delete.
5519
5520 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5521
5522 * cli/cli-interp.c (cli_interpreter_resume): Update the
5523 cli_uiout's stream to gdb_stdout.
5524
5525 2003-07-03 Andrew Cagney <cagney@redhat.com>
5526
5527 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5528 predicate.
5529 * gdbarch.h, gdbarch.c: Re-generate.
5530 * regcache.c (init_regcache_descr): Use legacy code when either
5531 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5532
5533 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5534
5535 * NEWS: Move "set logging" entry into GDB 6.0 section.
5536
5537 2003-07-02 Jim Blandy <jimb@redhat.com>
5538
5539 * s390-tdep.c (struct frame_extra_info): new member:
5540 'stack_bought_valid'.
5541 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5542 initialize fextra_info->stack_bought.
5543 (s390_frameless_function_invocation): Don't trust the value of
5544 fextra_info_ptr->stack_bought unless
5545 fextra_info->stack_bought_valid is set.
5546
5547 New S390 prologue analyzer.
5548 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5549 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5550 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5551 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5552 compute_x_addr, s390_on_stack, s390_store,
5553 s390_get_signal_frame_info): New functions.
5554 (S390_NUM_SPILL_SLOTS): New macro.
5555 (s390_get_frame_info): Rewritten.
5556 (is_arg_reg): Deleted.
5557
5558 Break out the decoding of S/390 instructions into separate
5559 functions, to make it more legible, and easier to check
5560 against the spec.
5561 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5562 is_rx, is_rxe): New functions.
5563 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5564 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5565 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5566 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5567 enums for opcode values. (Is this an improvement?)
5568
5569 2003-07-02 Andrew Cagney <cagney@redhat.com>
5570
5571 * i386-tdep.c: Revert change committed as part of trad-frame code
5572 below.
5573
5574 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5575
5576 * breakpoint.c (insert_catchpoint): Make static.
5577
5578 2003-07-02 Andreas Schwab <schwab@suse.de>
5579
5580 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5581 former ia64_push_arguments and ia64_push_return_address, and use
5582 regcache functions instead of read/write_register.
5583 (ia64_gdbarch_init): Set push_dummy_call instead of
5584 deprecated_push_arguments and deprecated_push_return_address.
5585
5586 2003-07-01 Andreas Jaeger <aj@suse.de>
5587
5588 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5589 before the call.
5590 Set %rax only to number of SSE registers used.
5591
5592 2003-07-01 Andrew Cagney <cagney@redhat.com>
5593
5594 * trad-frame.h: Update comments, a -1 .addr is reserved.
5595 (trad_frame_value_p, trad_frame_addr_p): Declare.
5596 (trad_frame_reg_p): Declare.
5597 (trad_frame_set_value): Rename trad_frame_register_value.
5598 (trad_frame_set_unknown): Declare.
5599 * trad-frame.c (trad_frame_realreg_p): New function.
5600 (trad_frame_addr_p, trad_frame_value_p): New function.
5601 (trad_frame_set_unknown): New function.
5602 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5603 (trad_frame_prev_register): Use trad_frame_realreg_p,
5604 trad_frame_addr_p and trad_frame_value_p.
5605 (trad_frame_set_value): Rename trad_frame_register_value.
5606 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5607 and trad_frame_set_value.
5608
5609 2003-06-30 Jim Blandy <jimb@redhat.com>
5610
5611 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5612 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5613 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5614 for 16 registers, and then 32 more bytes.
5615 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5616 New macros.
5617 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5618 Move up in the file, since it's now used by is_simple_arg.
5619 (is_simple_arg): Don't assume registers are four bytes long.
5620 Exclude all double arguments. Extended floats are not simple
5621 args.
5622 (is_power_of_two): New function.
5623 (pass_by_copy_ref): Call is_power_of_two, and check that the
5624 length fits in a register, rather than listing all the acceptable
5625 sizes. Extended floats are not passed by reference.
5626 (s390_push_arguments): Don't assume registers are four bytes long.
5627 Reserve an argument register to point to the buffer for structures
5628 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5629 S390_STACK_FRAME_OVERHEAD.
5630
5631 2003-06-30 Andreas Schwab <schwab@suse.de>
5632
5633 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5634 format error message.
5635
5636 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5637
5638 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5639
5640 2003-06-30 David Carlton <carlton@kealia.com>
5641
5642 Band-aid for PR c++/1245.
5643 * Makefile.in (cp-support.o): Depend on complaints_h.
5644 * cp-support.c: Include complaints.h. Add declaration for
5645 find_last_component.
5646 (cp_find_first_component): Separate code into
5647 cp_find_first_component_aux.
5648 (cp_find_first_component_aux): Call demangled_name_complaint.
5649 (demangled_name_complaint): New.
5650
5651 2003-06-30 Andrew Cagney <cagney@redhat.com>
5652
5653 * remote.c (remote_write_bytes): Explicitly compute and then use
5654 the payload size. Update comments to reflect. Fixes problem of
5655 GDB not sending small packets as found by Fred Fish.
5656
5657 2003-06-30 Andrew Cagney <cagney@redhat.com>
5658
5659 * remote.c (remote_async_wait): Fix -Wformat problem.
5660
5661 2003-06-29 Andrew Cagney <cagney@redhat.com>
5662
5663 * remote.c (remote_wait): Call error, and not warning, when the
5664 packet is corrupt.
5665 (remote_async_wait): Ditto.
5666
5667 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5668
5669 * sparc-tdep.c (sparc_y_regnum): Make external again.
5670
5671 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5672
5673 * cli/cli-logging.c (pop_output_files): Add void to function
5674 definition.
5675
5676 2003-06-29 Andrew Cagney <cagney@redhat.com>
5677
5678 * frame.c (frame_register_unwind): Use unsigned char when dumping
5679 the buffer contents.
5680
5681 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5682
5683 * cli/cli-logging.c: New file.
5684 * cli-out.c (struct ui_out_data): Add original_stream.
5685 (cli_redirect): New function.
5686 (cli_ui_out_impl): Add cli_redirect.
5687 (cli_out_new): Initialize original_stream.
5688 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5689 (uo_redirect, ui_out_redirect): New.
5690 * ui-out.h (struct ui_out_impl): Add redirect member.
5691 (redirect_ftype): New.
5692 (ui_out_redirect): Add prototype.
5693 * Makefile.in: Add rules for cli-logging.c.
5694 * NEWS: Mention "set logging".
5695
5696 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5697
5698 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5699
5700 2003-06-27 Andrew Cagney <cagney@redhat.com>
5701
5702 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5703 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5704 * avr-tdep.c (avr_call_dummy_address): Delete function.
5705 (avr_gdbarch_init): Do not set call_dummy_address.
5706
5707 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5708
5709 * symfile.c (syms_from_objfile): Move variables to inner block.
5710 Move the checks for the non-mainline case a bit earlier to avoid
5711 doing some useless computations.
5712
5713 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5714
5715 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5716
5717 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5718
5719 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5720 sections.
5721
5722 2003-06-26 Michael Chastain <mec@shout.net>
5723
5724 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5725 gdb/testsuite/gdb.c++/pr-1210.exp.
5726
5727 2003-06-26 Andrew Cagney <cagney@redhat.com>
5728
5729 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5730 altivec_expression.h and altivec_registers.h.
5731
5732 2003-06-26 Andrew Cagney <cagney@redhat.com>
5733
5734 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5735 info->mach when MIPS16. Patch suggested by Fred Fish.
5736
5737 2003-06-26 Andrew Cagney <cagney@redhat.com>
5738
5739 * utils.c (internal_vproblem): Print the problem to a reason
5740 buffer and then pass to query. Make the msg variable more local.
5741
5742 2003-06-26 Andrew Cagney <cagney@redhat.com>
5743
5744 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5745 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5746 * gdbarch.h, gdbarch.c: Re-generate.
5747 * frame-base.c (default_frame_args_address): Update. Use
5748 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5749 not available.
5750 (default_frame_locals_address): Ditto for
5751 DEPRECATED_FRAME_LOCALS_ADDRESS.
5752 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5753 (vax_frame_num_args): Update.
5754 (vax_gdbarch_init): Update.
5755 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5756 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5757 * mcore-tdep.c (mcore_gdbarch_init): Update.
5758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5759 * ia64-tdep.c (ia64_gdbarch_init): Update.
5760 * symtab.h (address_class): Update comments.
5761 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5762 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5763 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5764 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5765 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5766 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5767 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5768 * alpha-mdebug-tdep.c: Update.
5769 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5770
5771 2003-06-26 Andreas Jaeger <aj@suse.de>
5772
5773 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5774 of SSE registers so that varargs functions work. Rework handling
5775 of passing arguments on the stack.
5776 (x86_64_store_return_value): Return double and float values in SSE
5777 register.
5778
5779 2003-06-24 Michael Chastain <mec@shout.net>
5780
5781 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5782 the "constructor breakpoints ignored" bug.
5783
5784 2003-06-25 David Carlton <carlton@kealia.com>
5785
5786 * MAINTAINERS: Update e-mail address.
5787
5788 2003-06-24 Jim Blandy <jimb@redhat.com>
5789
5790 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5791
5792 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5793 function.
5794 (ppc_linux_init_abi): Register it as the
5795 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5796
5797 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5798 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5799 method.
5800
5801 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5802 (ppc64_standard_linkage_target): Use it.
5803
5804 2003-06-23 Andrew Cagney <cagney@redhat.com>
5805
5806 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5807 for 0 "int0" and 4 "int32" sized registers.
5808 * gdbtypes.c (builtin_type_int0): Define.
5809 (build_gdbtypes): Initialize builtin_type_int0.
5810 * gdbtypes.h (builtin_type_int0): Declare.
5811
5812 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5813
5814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5815 as characters are unsigned.
5816
5817 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5818
5819 PR gdb/1179
5820 * dwarfread.c (struct_type): Skip static fields without crashing.
5821
5822 2003-06-22 Andrew Cagney <cagney@redhat.com>
5823
5824 GDB 6.0 branch created.
5825 * README: Update.
5826 * PROBLEMS: Update. Empty.
5827 * NEWS: Update.
5828
5829 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5830
5831 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5832 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5833
5834 2003-06-22 Andrew Cagney <cagney@redhat.com>
5835
5836 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5837 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5838 Velikov.
5839
5840 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5841
5842 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5843 compilers.
5844
5845 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5846
5847 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5848 argument of val_print.
5849 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5850 to the address argument of baseclass_offset or target_read_memory.
5851 Do add it to the argument of cp_print_value_fields.
5852
5853 2003-06-21 Andrew Cagney <cagney@redhat.com>
5854
5855 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5856 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5857 instead of 0..NUM_REGS.
5858 (mips_register_reggroup_p): New function.
5859 (mips_pseudo_register_write): New function.
5860 (mips_pseudo_register_read): New function.
5861 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5862 based on the register's type.
5863 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5864 cooked.
5865 (mips_get_saved_register): Simplify. Assert that REGNO is a
5866 pseudo / cooked.
5867 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5868 (mips_register_type): Replace mips_register_virtual_type. Map
5869 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5870 when available.
5871 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5872 that the register is cooked / virtual.
5873 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5874 Only get the extra info when needed.
5875 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5876 (mips32_heuristic_proc_desc): Fetch the cooked register.
5877 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5878 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5879 (mips_print_register): Use gdbarch_register_type, instead of
5880 REGISTER_VIRTUAL_TYPE.
5881 (print_gp_register_row): Use gdbarch_register_type, instead of
5882 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5883 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5884 Print the pseudo / cooked registers.
5885 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5886 Print the pseudo / cooked registers.
5887 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5888 REG_NUM is pseudo / cooked.
5889 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5890 (mips_n32n64_xfer_return_value): Ditto.
5891 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5892 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5893 (mips_register_sim_regno): New function.
5894 (mips_gdbarch_init): Set deprecated_register_byte,
5895 register_group_p, pseudo_register_write, pseudo_register_read,
5896 register_sim_regno, and num_pseudo_regs. Set register_type,
5897 instead of register_virtual_type.
5898 * Makefile.in (mips-tdep.o): Update dependencies.
5899 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5900 REGISTER_VIRTUAL_TYPE.
5901 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5902 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5903 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5904 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5905 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5906
5907 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5908
5909 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5910 * cli/cli-cmds.c: Include "gdb_vfork.h".
5911 (shell_escape): Use vfork.
5912
5913 2003-06-21 Andrew Cagney <cagney@redhat.com>
5914
5915 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5916 32 bit floating-point register saves.
5917
5918 * frame.h (deprecated_unwind_get_saved_register): Delete.
5919 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5920 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5921 and deprecated_get_next_frame_hack instead of
5922 deprecated_unwind_get_saved_register.
5923
5924 * mips-tdep.c (mips_dump_tdep): Do not print
5925 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5926
5927 * frame.c (get_frame_register): New function.
5928 (frame_unwind_register_signed): New function.
5929 (get_frame_register_signed): New function.
5930 (frame_unwind_register_unsigned): New function.
5931 (get_frame_register_unsigned): New function.
5932 * frame.h: Add comments on naming schema.
5933 (get_frame_register, frame_unwind_register_signed): Declare.
5934 (get_frame_register_signed, get_frame_register_signed): Declare.
5935 (frame_unwind_register_unsigned): Declare.
5936 (get_frame_register_unsigned): Declare.
5937
5938 2003-06-20 Theodore A. Roth <troth@openavr.org>
5939
5940 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5941
5942 2003-06-20 Theodore A. Roth <troth@openavr.org>
5943
5944 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5945 (avr_read_sp): Ditto.
5946
5947 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5948
5949 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5950 * config/arm/nm-linux.h: Likewise.
5951 * config/arm/tm-linux.h: Likewise.
5952 * config/ia64/nm-linux.h: Likewise.
5953 * config/ia64/tm-ia64.h: Likewise.
5954 * config/s390/tm-linux.h: Likewise.
5955 * config/s390/tm-s390.h: Likewise.
5956 * s390-nat.c: Likewise.
5957 * s390-tdep.c: Likewise.
5958
5959 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5960 * config/ia64/linux.mt: Likewise.
5961 * config/m68k/linux.mh: Likewise.
5962 * config/mips/linux.mt: Likewise.
5963 * config/powerpc/linux.mh: Likewise.
5964 * config/sh/linux.mt: Likewise.
5965
5966 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5967
5968 * solib.c (solib_open): Change tests for whether to search
5969 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5970 comments.
5971
5972 2003-06-19 Theodore A. Roth <troth@openavr.org>
5973
5974 * avr-tdep.c (avr_frame_address): Delete function.
5975 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5976 set_gdbarch_frame_args_address.
5977
5978 2003-06-19 Andrew Cagney <cagney@redhat.com>
5979
5980 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5981 (REGISTER_CONVERT_FROM_TYPE): Delete.
5982 (mips_register_convert_to_type): Delete declaration.
5983 (mips_register_convert_from_type): Delete declaration.
5984 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5985 kernel/.
5986
5987 2003-06-19 Michael Snyder <msnyder@redhat.com>
5988
5989 * linux-nat.h: New file.
5990 * linux-nat.c: Include linux-nat.h.
5991 * lin-lwp.c: Include linux-nat.h.
5992 Move struct lwp_info def to linux-nat.h.
5993 * linux-proc.c: Include linux-nat.h.
5994 (linux_make_note_section): Iterate over lwps instead of threads.
5995 (linux_do_thread_registers): Use lwp instead of merged pid.
5996 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5997 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5998 Add dependency on linux_nat_h.
5999
6000 2003-06-19 Theodore A. Roth <troth@openavr.org>
6001
6002 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6003
6004 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6005
6006 * varobj.c (get_type, get_target_type): Use check_typedef.
6007
6008 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6009
6010 * breakpoint.c (insert_catchpoint): Call internal_error.
6011
6012 2003-06-19 Theodore A. Roth <troth@openavr.org>
6013
6014 * avr-tdep.c (avr_push_dummy_code): Delete function.
6015 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6016
6017 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6018
6019 * arch-utils.c (default_prepare_to_proceed): Remove.
6020 (generic_prepare_to_proceed): Remove.
6021 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6022 (generic_prepare_to_proceed): Remove prototype.
6023 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6024 * gdbarch.c: Regenerate.
6025 * gdbarch.h: Regenerate.
6026 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6027 * hppah-nat.c (hppa_switched_threads): Remove.
6028 * infrun.c (prepare_to_proceed): New static function, copied from
6029 generic_prepare_to_proceed. Remove select_it argument.
6030 (proceed): Call prepare_to_proceed.
6031 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6032 variables.
6033 (ptrace_wait): Don't set the removed variables.
6034 (hppa_switched_threads): Remove.
6035 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6036 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6037 (lin_lwp_prepare_to_proceed): Remove prototype.
6038 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6039 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6040
6041 2003-06-18 Theodore A. Roth <troth@openavr.org>
6042
6043 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6044 trad-frame.h.
6045 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6046 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6047 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6048 (AVR_PROLOGUE_*): Enumerate prologue types.
6049 (struct frame_extra_info): Remove.
6050 (struct avr_unwind_cache): Define.
6051 (avr_write_sp): Delete function.
6052 (avr_read_fp): Ditto.
6053 (avr_init_extra_frame_info): Ditto.
6054 (avr_pop_frame): Ditto.
6055 (avr_frame_saved_pc): Ditto.
6056 (avr_saved_pc_after_call): Ditto.
6057 (avr_push_return_address): Ditto.
6058 (avr_frame_chain): Ditto.
6059 (avr_store_struct_return): Ditto.
6060 (avr_push_arguments): Ditto.
6061 (avr_scan_prologue): Update comments. Changed to set up the info for
6062 cache unwinding. Now returns end of prologue PC.
6063 (avr_skip_prologue): Better handling of functions lacking a prologue
6064 by using avr_scan_prologue.
6065 (avr_scan_arg_moves): New function.
6066 (avr_saved_regs_unwinder): Ditto.
6067 (avr_frame_unwind_cache): Ditto.
6068 (avr_unwind_pc): Ditto.
6069 (avr_frame_this_id): Ditto.
6070 (avr_frame_prev_register): Ditto.
6071 (avr_frame_p): Ditto.
6072 (avr_frame_base_address ): Ditto.
6073 (avr_unwind_dummy_id): Ditto.
6074 (avr_push_dummy_code): Ditto.
6075 (push_stack_item): Ditto.
6076 (pop_stack_item): Ditto.
6077 (avr_push_dummy_call): Ditto.
6078 (struct stack_item): Define.
6079 (avr_frame_unwind): Declare structure.
6080 (avr_frame_base): Ditto.
6081 (avr_gdbarch_init): Remove calls to
6082 set_gdbarch_deprecated_init_frame_pc,
6083 set_gdbarch_deprecated_target_read_fp,
6084 set_gdbarch_deprecated_dummy_write_sp,
6085 set_gdbarch_deprecated_fp_regnum,
6086 set_gdbarch_deprecated_push_arguments,
6087 set_gdbarch_deprecated_push_return_address,
6088 set_gdbarch_deprecated_pop_frame,
6089 set_gdbarch_deprecated_store_struct_return,
6090 set_gdbarch_deprecated_frame_init_saved_regs,
6091 set_gdbarch_deprecated_init_extra_frame_info,
6092 set_gdbarch_deprecated_frame_chain,
6093 set_gdbarch_deprecated_frame_saved_pc,
6094 set_gdbarch_deprecated_saved_pc_after_call.
6095 Add calls to set_gdbarch_push_dummy_call,
6096 set_gdbarch_push_dummy_code,
6097 frame_unwind_append_predicate,
6098 frame_base_set_default,
6099 set_gdbarch_unwind_dummy_id,
6100 set_gdbarch_unwind_pc.
6101 Wrap a long line.
6102
6103 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6104
6105 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6106 registers for H8/300S.
6107 (h8300_print_registers_info): Ditto.
6108 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6109
6110 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
6111
6112 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6113 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6114 (lin_lwp_wait): Likewise. Update comments.
6115 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6116 (pull_pid_from_list, linux_record_stopped_pid): New.
6117
6118 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6119
6120 * ada-lang.c (scan_discrim_bound): Name first argument.
6121 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6122 declared by ALL_BLOCK_SYMBOLS.
6123
6124 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6125
6126 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6127 ("regcache.h"): Include it.
6128 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6129
6130 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6131
6132 * NEWS: Mention gdbserver detach change and "disconnect" command.
6133 * infcmd.c (disconnect_command): New function.
6134 (_initialize_infcmd): Add ``disconnect'' command.
6135 * remote.c (remote_async_detach): Delete.
6136 (remote_detach): Merge remote_async_detach.
6137 (remote_disconnect): New.
6138 (init_remote_ops): Set to_disconnect.
6139 (init_remote_cisco_ops): Likewise.
6140 (init_remote_async_ops): Likewise. Use remote_detach.
6141 * target.c (cleanup_target): Default to_disconnect.
6142 (update_current_target): Inherit to_disconnect.
6143 (target_disconnect, debug_to_disconnect): New functions.
6144 (setup_target_debug): Set to_disconnect.
6145 * target.h (struct target_ops): Add to_disconnect.
6146 (target_disconnect): Add prototype.
6147
6148 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * breakpoint.c (insert_catchpoint): New function.
6151 (insert_breakpoints): Use catch_exceptions to call
6152 insert_catchpoint. Disable catchpoints if they fail to insert.
6153
6154 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6155
6156 * symfile.c (reread_symbols): Clear sym_private.
6157
6158 2003-06-17 Andrew Cagney <cagney@redhat.com>
6159
6160 * trad-frame.h (struct frame_info): Add opaque declaration.
6161 * remote-fileio.h (struct cmd_list_element): Add opaque
6162 declaration.
6163 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6164 comments.
6165
6166 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6167
6168 * remote.c (remote_prepare_to_store): Replace call to
6169 deprecated_read_register_bytes with multiple regcache_raw_read
6170 calls.
6171
6172 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6173
6174 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6175 (nto_find_and_open_solib): Likewise.
6176 (nto_init_solib_absolute_prefix): Likewise.
6177 (_initialize_nto_tdep): Fix indentation.
6178
6179 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6180
6181 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6182
6183 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6184
6185 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6186
6187 2003-06-17 Jim Blandy <jimb@redhat.com>
6188
6189 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6190
6191 2003-06-16 Theodore A. Roth <troth@openavr.org>
6192
6193 * avr-tdep.c (avr_extract_return_value): New function.
6194 (avr_gdbarch_init): Set extract_return_value method.
6195
6196 2003-06-16 Andrew Cagney <cagney@redhat.com>
6197
6198 * frame.h (deprecated_get_next_frame_hack): Declare.
6199 * frame.c (legacy_saved_regs_prev_register): Only require
6200 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6201 there are always saved regs.
6202 (deprecated_generic_get_saved_register): Do not require
6203 DEPRECATED_FRAME_INIT_SAVED_REGS.
6204 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6205 use frame ID unwind instead.
6206 (deprecated_get_next_frame_hack): New function.
6207
6208 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6209
6210 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6211 (h8300_push_dummy_call): ...this function. Some minor optimization.
6212 (h8300_push_return_address): Remove.
6213 (h8300_gdbarch_init): Remove calls to
6214 set_gdbarch_deprecated_dummy_write_sp,
6215 set_gdbarch_deprecated_push_arguments and
6216 set_gdbarch_deprecated_push_return_address.
6217 Add call to set_gdbarch_push_dummy_call.
6218
6219 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6220
6221 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6222 (E_PSEUDO_EXR_REGNUM): Ditto.
6223 (h8300_is_argument_spill): Check for instructions moving argument
6224 registers into safe registers.
6225 (h8300_skip_prologue): Check for stm instruction to push registers
6226 used for register variables onto stack.
6227 (gdb_print_insn_h8300): Remove.
6228 (h8300_examine_prologue): Add a comment.
6229 (h8300_register_name): Take pseudo registers into account.
6230 (h8300s_register_name): Ditto.
6231 (h8300sx_register_name): Ditto.
6232 (h8300_print_register): Ditto.
6233 (h8300_print_registers_info): Define "nice" printing order.
6234 (h8300_saved_pc_after_call): Take pseudo registers into account.
6235 (h8300_register_type): Ditto. Return type used for remote connection
6236 when requesting real CCR or EXR register, return actual type when
6237 requesting pseudo CCR or EXR.
6238 (h8300_pseudo_register_read): New function.
6239 (h8300_pseudo_register_write): Ditto.
6240 (h8300_dbg_reg_to_regnum): Ditto.
6241 (h8300s_dbg_reg_to_regnum): Ditto.
6242 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6243 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6244 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6245 set_gdbarch_print_insn architecture dependent.
6246 Call set_gdbarch_pseudo_register_read and
6247 set_gdbarch_pseudo_register_write.
6248 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6249
6250 2003-06-16 Andrew Cagney <cagney@redhat.com>
6251
6252 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6253 * gdbarch.h, gdbarch.c: Re-generate.
6254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6255 * s390-tdep.c (s390_gdbarch_init): Update.
6256 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6257 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6258 * mips-tdep.c (mips_gdbarch_init): Update.
6259 * mcore-tdep.c (mcore_gdbarch_init): Update.
6260 * cris-tdep.c (cris_gdbarch_init): Update.
6261 * infcall.c (call_function_by_hand): Update.
6262 * ia64-tdep.c (ia64_push_arguments): Update comment.
6263 * frame.c (legacy_get_prev_frame): Do not assume
6264 SAVE_DUMMY_FRAME_TOS_P.
6265 * dummy-frame.c (find_dummy_frame): Update comment.
6266
6267 2003-06-16 Andrew Cagney <cagney@redhat.com>
6268
6269 * regcache.c (do_cooked_read): Do not use register_valid_p.
6270
6271 2003-06-15 Theodore A. Roth <troth@openavr.org>
6272
6273 * avr-tdep.c (avr_register_type): Remove a blank line.
6274 (avr_scan_prologue): Correct some comments.
6275
6276 2003-06-15 Theodore A. Roth <troth@openavr.org>
6277
6278 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6279 prologue types.
6280 Properly scan prologues generated by gcc with the -mcall-prologues
6281 option.
6282 Add code to scan -mcall-prologues for mega devices.
6283
6284 2003-06-15 Theodore A. Roth <troth@openavr.org>
6285
6286 * avr-tdep.c (avr_register_byte): Delete function.
6287 (avr_register_raw_size): Delete function.
6288 (avr_register_virtual_size): Delete function.
6289 (avr_register_virtual_type): Delete function.
6290 (avr_register_type): New function.
6291 (avr_address_to_pointer): Remove unused code.
6292 (avr_read_fp): Need to read FP as two separate bytes due to change to
6293 avr_register_type() usage.
6294 (avr_gdbarch_init): Don't set deprecated_register_size.
6295 Don't set deprecated_register_bytes.
6296 Don't set deprecated_register_byte.
6297 Don't set deprecated_register_raw_size.
6298 Don't set deprecated_max_register_raw_size.
6299 Don't set deprecated_register_virtual_size.
6300 Don't set deprecated_max_register_virtual_size.
6301 Don't set deprecated_register_virtual_type.
6302 Set register_type method.
6303
6304 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6305
6306 * Makefile.in (linux-nat.o): Add rule.
6307 * linux-nat.c: New file.
6308 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6309 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6310 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6311 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6312 * config/arm/linux.mh (NATDEPFILES): Likewise.
6313 * config/i386/linux.mh (NATDEPFILES): Likewise.
6314 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6315 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6316 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6317 * config/mips/linux.mh (NATDEPFILES): Likewise.
6318 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6319 * config/s390/s390.mh (NATDEPFILES): Likewise.
6320 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6321
6322 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6323
6324 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6325 replace out-of-date comment.
6326
6327 2003-06-15 Andrew Cagney <cagney@redhat.com>
6328
6329 * rdi-share/host.h (Fail): Change to a varargs function.
6330 * remote-rdi.c (Fail): Update.
6331
6332 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6333
6334 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6335 (i386_convert_register_p, i386_register_to_value,
6336 i386_register_from_value): Handle types longer than 8 bytes.
6337
6338 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6339
6340 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6341 Move floating-point code to new function in i387-tdep.c.
6342 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6343 New functions containing code moved here from i386-tdep.c.
6344 * i387-tdep.h: Add opaque declaration for `struct type'.
6345 (i387_register_to_value, i387_value_to_register): New prototypes.
6346 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6347 (x86_64_init_abi): Set convert_register_p, register_to_value and
6348 value_to_register here.
6349
6350 2003-06-14 Andrew Cagney <cagney@redhat.com>
6351
6352 * mips-tdep.c (mips_register_to_value): Make static.
6353 (mips_value_to_register): Make static.
6354 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6355 * ia64-tdep.c (ia64_register_raw_size): Make static.
6356 (ia64_register_virtual_size): Make static.
6357 (ia64_register_byte): Make static.
6358 * i387-tdep.c: Include "i387-tdep.h".
6359 (print_387_control_word): Delete function.
6360 (print_387_status_word): Delete function.
6361 (print_387_status_bits): Delete function.
6362 (print_387_control_bits): Delete function.
6363 * Makefile.in (i387-tdep.o): Update dependencies.
6364 * rdi-share/host.h (Fail): Declare.
6365 * remote-rdi.c (Fail): Update to match declaration.
6366
6367 2003-06-14 Andrew Cagney <cagney@redhat.com>
6368
6369 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6370 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6371 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6372 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6373 * README: Delete reference to remote-array.
6374 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6375 (remote-array.o): Delete target.
6376 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6377 * remote-array.c: Delete file.
6378
6379 2003-06-14 Andrew Cagney <cagney@redhat.com>
6380 Mark Kettenis <kettenis@gnu.org>
6381
6382 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6383 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6384 parameter with "frame".
6385 * gdbarch.h, gdbarch.c: Re-generate.
6386 * frame.h (put_frame_register): Declare.
6387 * frame.c (put_frame_register): New function.
6388 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6389 (legacy_register_to_value): Rewrite, use "frame" to get the
6390 register value.
6391 (legacy_value_to_register): Rewrite, use "frame" to find the
6392 register's location before storing.
6393 * arch-utils.h (legacy_convert_register_p): Update.
6394 (legacy_register_to_value, legacy_value_to_register): Update.
6395 * findvar.c (value_from_register): Rewrite, eliminate use of
6396 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6397 "frame" to REGISTER_TO_VALUE.
6398 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6399 lval_reg_frame_relative + lval_register branch of the switch. Do
6400 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6401 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6402 I386_EDI_REGNUM): New defines.
6403 (i386_next_regnum, i386_convert_register_p,
6404 i386_register_to_value, i386_value_to_register): New functions.
6405 (i386_register_convertible, i386_register_convert_to_virtual,
6406 i386_convert_to_raw): Remove functions.
6407 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6408 value_to_register instead of register_convertible,
6409 register_convert_to_virtual and register_convert_to_raw.
6410 * mips-tdep.c (mips_convert_register_p): New function.
6411 (mips_value_to_register): Replace mips_register_convert_from_type.
6412 (mips_register_to_value): Replace mips_register_convert_to_type.
6413 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6414 register_to_value.
6415 * alpha-tdep.c (alpha_convert_register_p): Update.
6416 (alpha_value_to_register): Update, store the register.
6417 (alpha_register_to_value): Update, fetch the register.
6418
6419 2003-06-14 Theodore A. Roth <troth@openavr.org>
6420
6421 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6422 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6423 Don't set deprecated_call_dummy_words.
6424 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6425 Don't set remote_translate_xfer_address.
6426 (avr_io_reg_read_command): Remove commented out debug printf.
6427 Wrap a long line.
6428
6429 2003-06-14 Theodore A. Roth <troth@openavr.org>
6430
6431 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6432 causes gdb to seg fault.
6433
6434 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6435
6436 * sparc-nat.c (fetch_inferior_registers): Correct
6437 a reference to "registers".
6438
6439 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6440
6441 * Makefile.in (exc_request_U_h): Define
6442 (exc_request_S_h): Likewise.
6443 (msg_reply_S_h): Likewise.
6444 (msg_U_h): Likewise.
6445 (notify_S_h): Likewise.
6446 (process_reply_S_h): Likewise.
6447 (gnu-nat.o): Depend on gdb_obstack_h
6448 * gnu-nat.c: Include "gdb_obstack.h".
6449
6450 2003-06-13 Andrew Cagney <cagney@redhat.com>
6451
6452 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6453 * gdbarch.h, gdbarch.c: Re-generate.
6454
6455 2003-06-13 Andrew Cagney <cagney@redhat.com>
6456
6457 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6458 when deprecated REGISTER macros can be deleted.
6459 * gdbarch.h, gdbarch.c: Re-generate.
6460
6461 2003-06-13 Jim Blandy <jimb@redhat.com>
6462
6463 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6464 Linux entry point symbols for _dl_debug_state, too.
6465
6466 2003-06-13 Andrew Cagney <cagney@redhat.com>
6467
6468 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6469 available, do not use the FP register, and always save the TOS.
6470 * dummy-frame.c (dummy_frame_this_id): Do not assert
6471 SAVE_DUMMY_FRAME_TOS.
6472 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6473 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6474 (i386_push_dummy_call): Add 8 to the returned SP.
6475 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6476 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6477 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6478 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6479 (x86_64_push_dummy_call): Return "sp + 16".
6480 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6481 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6482 save_dummy_frame_tos.
6483
6484 2003-06-13 Jim Blandy <jimb@redhat.com>
6485
6486 * frv-tdep.c (frv_use_struct_convention): Delete static
6487 declaration for function deleted in my change of 2003-06-12.
6488
6489 2003-06-13 Theodore A. Roth <troth@openavr.org>
6490
6491 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6492 (avr_pointer_to_address): Shift code addrs left 1 bit.
6493 (avr_convert_from_func_ptr_addr): Delete function since operation is
6494 better handled by avr_address_to_pointer and avr_pointer_to_address.
6495 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6496
6497 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6498
6499 From Kelley Cook <kelleycook@wideopenwest.com>:
6500 * configure.host: Accept i[34567]86 variants.
6501 * configure.tgt: Likewise.
6502 * nlm/configure.in: Likewise.
6503 * nlm/configure: Regenerated.
6504
6505 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6506
6507 * arm-tdep.c (solib-svr4.h): Dont' include it.
6508 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6509 * arm-linux-tdep.c: ... here. Make static.
6510 (arm_linux_init_abi): Register it.
6511 (solib-svr4.h): Include it.
6512 * Makefile.in: Update dependencies.
6513 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6514 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6515
6516 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6517
6518 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6519 indicate registers used for return values.
6520 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6521 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6522 members.
6523 (h8300_init_extra_frame_info): Ditto.
6524 (h8300_frame_locals_address): Removed.
6525 (h8300_frame_args_address): Removed.
6526 (h8300_extract_return_value): Use new regcache structure. Only care
6527 for 16 bit CPUs.
6528 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6529 (h8300_store_return_value): Use new regcache structure. Only care
6530 for 16 bit CPUs.
6531 (h8300h_store_return_value): Same function for 32 bit CPUs.
6532 (h8300_store_struct_return): Removed.
6533 (h8300_extract_struct_value_address): Use new regcache structure.
6534 (h8300h_extract_struct_value_address): Removed.
6535 (h8300_push_dummy_code): New function.
6536 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6537 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6538 set_gdbarch_store_return_value architecture dependent.
6539 Call set_gdbarch_push_dummy_code and
6540 set_gdbarch_extract_struct_value_address.
6541 Remove calls to set_gdbarch_frame_args_address,
6542 set_gdbarch_frame_locals_address,
6543 set_gdbarch_deprecated_store_struct_return,
6544 set_gdbarch_deprecated_extract_return_value,
6545 set_gdbarch_deprecated_extract_struct_value_address,
6546 set_gdbarch_deprecated_call_dummy_words and
6547 set_gdbarch_deprecated_sizeof_call_dummy_words.
6548
6549 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6550
6551 * h8300-tdep.c (h8300_register_byte): Remove.
6552 (h8300h_register_byte): Remove.
6553 (h8300_register_virtual_type): Remove. Substitute by...
6554 (h8300_register_type): New function.
6555 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6556 (h8300h_extract_struct_value_address): Ditto.
6557 (h8300_gdbarch_init): Drop calls to
6558 set_gdbarch_deprecated_register_byte and
6559 set_gdbarch_deprecated_register_virtual_type.
6560 Add call to set_gdbarch_register_type.
6561
6562 2003-06-13 Andrew Cagney <cagney@redhat.com>
6563
6564 * gdbarch.sh: Update comments on registers.
6565 (deprecated_register_byte): Rename register_byte.
6566 (deprecated_register_raw_size): Rename register_raw_size.
6567 (deprecated_register_virtual_size): Rename register_virtual_size.
6568 (deprecated_register_virtual_type): Rename register_virtual_type.
6569 * gdbarch.h, gdbarch.c: Re-generate.
6570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6571 * vax-tdep.c (vax_gdbarch_init): Update.
6572 * v850-tdep.c (v850_gdbarch_init): Update.
6573 * sparc-tdep.c (sparc_gdbarch_init): Update.
6574 * sh-tdep.c (sh_gdbarch_init): Update.
6575 * s390-tdep.c (s390_gdbarch_init): Update.
6576 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6577 * ns32k-tdep.c: Update.
6578 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6579 * mips-tdep.c (mips_gdbarch_init): Update.
6580 * mcore-tdep.c (mcore_gdbarch_init): Update.
6581 * m68k-tdep.c (m68k_gdbarch_init): Update.
6582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6583 * ia64-tdep.c (ia64_gdbarch_init): Update.
6584 * hppa-tdep.c (hppa_gdbarch_init): Update.
6585 * h8300-tdep.c (h8300_gdbarch_init): Update.
6586 * frv-tdep.c (frv_gdbarch_init): Update.
6587 * cris-tdep.c (cris_gdbarch_init): Update.
6588 * avr-tdep.c (avr_gdbarch_init): Update.
6589 * alpha-tdep.c (alpha_gdbarch_init): Update.
6590 * arm-tdep.c (arm_gdbarch_init): Update.
6591
6592 2003-06-13 Andrew Cagney <cagney@redhat.com>
6593
6594 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6595 mips_o32_use_struct_convention with always_use_struct_convention.
6596
6597 2003-06-12 David Carlton <carlton@kealia.com>
6598
6599 * cp-namespace.c (cp_set_block_scope): Comment out
6600 processing_has_namespace_info branch.
6601
6602 2003-06-12 Jim Blandy <jimb@redhat.com>
6603
6604 Recognize and skip 64-bit PowerPC Linux linkage functions.
6605 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6606 insn_pattern, insns_match_pattern, d_field, ds_field): New
6607 functions, macros, and types for working with PPC instructions.
6608 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6609 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6610 ppc64_skip_trampoline_code): New functions, variables, and macros
6611 for recognizing and skipping linkage functions.
6612 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6613 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6614
6615 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6616 register offsets for both the 32- and 64-bit interfaces.
6617
6618 Actually finish the job started by my change of 2003-05-29.
6619 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6620 other #definition of this.
6621 (ppc_linux_skip_trampoline_code): Remove declaration.
6622 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6623 static.
6624 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6625 method for GDBARCH.
6626
6627 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6628 'long' on ppc64-*-linux*.
6629
6630 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6631 isn't #defined, assume the register doesn't exist: act as if
6632 tdep->ppc_mq_regnum were -1.
6633
6634 * configure.host, configure.tgt: Add entries for
6635 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6636 powerpc/linux.mt.
6637 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6638 New files.
6639
6640 * arch-utils.c (always_use_struct_convention): New function.
6641 * arch-utils.h (always_use_struct_convention): New prototype.
6642 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6643 (alpha_gdbarch_init): Register always_use_struct_convention,
6644 instead of alpha_use_struct_convention.
6645 * cris-tdep.c (cris_use_struct_convention): Delete.
6646 (cris_gdbarch_init): Register always_use_struct_convention,
6647 instead of cris_use_struct_convention.
6648 * frv-tdep.c (frv_use_struct_convention): Delete.
6649 (frv_gdbarch_init): Register always_use_struct_convention,
6650 instead of frv_use_struct_convention.
6651 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6652 (h8300_gdbarch_init): Register always_use_struct_convention,
6653 instead of h8300_use_struct_convention.
6654 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6655 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6656 instead of mips_o32_use_struct_convention.
6657
6658 2003-06-12 Andrew Cagney <cagney@redhat.com>
6659
6660 * wince.c: Include "mips-tdep.h".
6661 * mips-tdep.h (mips_next_pc): Declare.
6662 * mcore-tdep.c: Make more local functions static.
6663 * Makefile.in (wince.o): Update dependencies.
6664
6665 2003-06-12 David Carlton <carlton@kealia.com>
6666
6667 * symtab.c (lookup_symbol_aux_minsyms): Replace
6668 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6669 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6670 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6671 SYMBOL_NATURAL_NAME.
6672
6673 2003-06-12 Andreas Schwab <schwab@suse.de>
6674
6675 * Makefile.in (tuiDisassem.o): Update dependencies.
6676
6677 2003-06-12 David Carlton <carlton@bactrian.org>
6678
6679 * symtab.h: Delete declaration of make_symbol_overload_list.
6680 Add declaration of lookup_partial_symbol.
6681 * symtab.c (remove_params): Move to cp-support.c.
6682 (overload_list_add_symbol, make_symbol_overload_list)
6683 (sym_return_val_size, sym_return_val_index): Ditto.
6684 (lookup_partial_symbol): Make extern.
6685 * cp-support.h: Add declaration of make_symbol_overload_list.
6686 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6687 symtab.h, and block.h.
6688 (remove_params): Move here from symtab.c.
6689 (overload_list_add_symbol, make_symbol_overload_list)
6690 (sym_return_val_size, sym_return_val_index): Ditto.
6691 * valops.c: Include cp-support.h.
6692 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6693 frame_h, and block_h.
6694 (valops.o): Depend on cp_support_h.
6695
6696 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6697
6698 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6699 substitute by NUM_REGS throughout.
6700 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6701 (h8300s_register_name): New function for H8S registers.
6702 (h8300sx_register_name): Ditto for H8SX registers.
6703 (h8300_print_register): Revise register printing, avoid depending
6704 on 32 bit long.
6705 (h8300_register_byte): Only care for H8/300 registers.
6706 (h8300h_register_byte): New function for any other architecture.
6707 (h8300_register_raw_size): Remove.
6708 (h8300_register_virtual_type): Revise to return actually useful
6709 type.
6710 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6711 (h8300h_extract_struct_value_address): New function for any other
6712 architecture.
6713 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6714 set_gdbarch_register_name, set_gdbarch_register_byte,
6715 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6716 Remove calls to set_gdbarch_deprecated_register_size,
6717 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6718 set_gdbarch_deprecated_max_register_raw_size,
6719 set_gdbarch_register_virtual_size and
6720 set_gdbarch_deprecated_max_register_virtual_size entirely.
6721 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6722 set_gdbarch_long_double_bit.
6723
6724 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6725
6726 * doublest.c (convert_doublest_to_floatformat): When dealing
6727 with the implied integer bit, only alter mant_bits if we are
6728 processing a full 32 bits of mantissa.
6729
6730 2003-06-11 David Carlton <carlton@bactrian.org>
6731
6732 * dictionary.h: New.
6733 * dictionary.c: New.
6734 * block.h: Add opaque declaration for struct dictionary.
6735 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6736 'sym' members.
6737 (BLOCK_DICT): New macro.
6738 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6739 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6740 BLOCK_SHOULD_SORT.
6741 (ALL_BLOCK_SYMBOLS): Update definition.
6742 * Makefile.in (SFILES): Add dictionary.c.
6743 (dictionary_h): New.
6744 (COMMON_OBS): Add dictionary.o.
6745 (dictionary.o): New.
6746 (ada-lang.o): Depend on dictionary_h.
6747 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6748 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6749 (mi-cmd-stack.o): Ditto.
6750 (gdbtk-cmds.o): Update dependencies.
6751 (gdbtk-stack.o): Ditto.
6752 * ada-lang.c: Include dictionary.h.
6753 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6754 (fill_in_ada_prototype, debug_print_block): Ditto.
6755 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6756 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6757 'is_sorted'.
6758 * mdebugread.c: Include dictionary.h.
6759 (struct parse_stack): Delete 'maxsyms' member.
6760 (parse_symbol): Update calls to new_block. Delete calls to
6761 shrink_block. Use dictionary methods.
6762 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6763 Update calls to new_symtab. Don't maintain maxsyms data.
6764 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6765 (add_symbol): Just call dict_add_symbol.
6766 (new_symtab): Delete 'maxsyms' argument.
6767 (new_symtab): Update calls to new_block.
6768 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6769 (shrink_block): Delete function.
6770 (fixup_sigtramp): Update call to new_block. Add symbol via
6771 dict_add_symbol.
6772 * jv-lang.c: Include dictionary.h.
6773 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6774 appropriately. Set class_symtab->free_func. Make sure the
6775 blockvector is big enough to hold two blocks.
6776 (add_class_symtab_symbol): Use dictionary methods.
6777 (free_class_block): New function.
6778 (type_from_class): Replace explicit iteration by
6779 ALL_BLOCK_SYMBOLS.
6780 * symtab.h (struct symtab): Replace 'free_ptr' method by
6781 'free_func'.
6782 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6783 sort_symtab_syms.
6784 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6785 sort_symtab_syms.
6786 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6787 Include dictionary.h.
6788 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6789 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6790 sort_symtab_syms.
6791 * objfiles.c: Include dictionary.h.
6792 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6793 * buildsym.c: Include dictionary.h.
6794 (finish_block): Use dictionary methods.
6795 (end_symtab): Set free_func to NULL, not free_ptr.
6796 * tracepoint.c: Include dictionary.h.
6797 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6798 (scope_info): Ditto.
6799 * stack.c: Include dictionary.h.
6800 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6801 (print_block_frame_labels, print_frame_arg_vars)
6802 (print_frame_args): Ditto.
6803 * symmisc.c (free_symtab_block): Use dictionary methods.
6804 (dump_symtab): Ditto.
6805 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6806 Include dictionary.h.
6807 * symfile.h: Delete declarations of sort_block_syms,
6808 sort_symtab_syms.
6809 * symfile.c (sort_block_syms): Delete.
6810 (sort_symtab_syms): Delete.
6811 * symtab.c: Include dictionary.h.
6812 (lookup_block_symbol): Use dictionary iterators.
6813 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6814 (search_symbols, make_symbol_completion_list): Ditto.
6815 (make_symbol_overload_list): Ditto.
6816 * valops.c (value_of_local): Use dict_empty.
6817 Include dictionary.h.
6818
6819 2003-06-11 J. Brobecker <brobecker@gnat.com>
6820
6821 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6822
6823 2003-06-11 David Carlton <carlton@bactrian.org>
6824
6825 * block.h (BLOCK_SHOULD_SORT): Delete.
6826 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6827 blocks.
6828 * ada-lang.c (ada_add_block_symbols): Ditto.
6829 * symfile.c (sort_block_syms): Delete.
6830 (sort_symtab_syms): Ditto.
6831 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6832 declarations.
6833 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6834 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6835 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6836 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6837 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6838 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6839 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6840
6841 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6842
6843 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6844 bits to 128.
6845
6846 2003-06-11 Andrew Cagney <cagney@redhat.com>
6847
6848 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6849 REGISTER_CONVERTIBLE.
6850 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6851 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6852 * gdbarch.h, gdbarch.c: Re-generate.
6853 * arch-utils.h (deprecated_register_convertible_not): Rename
6854 generic_register_convertible_not.
6855 * arch-utils.c (deprecated_register_convertible_not): Rename
6856 generic_register_convertible.
6857 (legacy_convert_register_p, legacy_register_to_value): Update.
6858 * sh-tdep.c (sh64_push_arguments): Update.
6859 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6860 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6861 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6862 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6863 * arch-utils.c (legacy_value_to_register): Update.
6864 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6865 (rs6000_register_convert_to_raw): Make parameter "from" const.
6866 * mips-tdep.c (mips_gdbarch_init): Update.
6867 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6868 * infcmd.c (default_print_registers_info): Update.
6869 * ia64-tdep.c (ia64_gdbarch_init): Update.
6870 (ia64_register_convert_to_raw): Make parameter "from" const.
6871 * i386-tdep.c (i386_gdbarch_init): Update.
6872 (i386_register_convert_to_raw): Update.
6873
6874 2003-06-11 Andrew Cagney <cagney@redhat.com>
6875
6876 * remote-fileio.c: Include "remote-fileio.h".
6877 * Makefile.in (remote-fileio.o): Update dependencies.
6878 (remote_fileio_h): Fix typo.
6879
6880 2003-06-11 Andrew Cagney <cagney@redhat.com>
6881
6882 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6883 (xstormy16_save_dummy_frame_tos): Make static.
6884 (_initialize_xstormy16_tdep): Add declaration.
6885 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6886 * v850-tdep.c: Make local functions static.
6887 (_initialize_v850_tdep): Add declaration.
6888 * sparc-tdep.c: Make local functions static.
6889 (_initialize_sparc_tdep): Add declaration.
6890 * sh-tdep.c: Make local functions static.
6891 (_initialize_sh_tdep): Add declaration.
6892 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6893 * s390-tdep.c: Make local functions static.
6894 (_initialize_s390_tdep): Add declaration.
6895 * dbxread.c (find_stab_function_addr): Make static.
6896 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6897 * ocd.c (_initialize_remote_ocd): Add declaration.
6898 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6899 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6900 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6901 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6902 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6903 * remote-array.c (_initialize_array): Add declaration.
6904 (_initialize_remote_monitors): Add declaration.
6905 * remote-mips.c: Make local functions static.
6906 (_initialize_remote_mips): Add declaration.
6907 * mcore-tdep.c: Make all local functions static.
6908 (_initialize_mcore_tdep): Add declaration.
6909 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6910 * abug-rom.c (_initialize_abug_rom): Add declaration.
6911 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6912 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6913 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6914 * remote-est.c (_initialize_est): Add declaration.
6915 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6916 (m68hc11_call_dummy_address): Make static.
6917 * ia64-tdep.c: Make local functions static.
6918 (_initialize_ia64_tdep): Add declaration.
6919 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6920 * monitor.c (monitor_wait_filter): Make static.
6921 (_initialize_remote_monitors): Add declaration.
6922 * remote-hms.c (_initialize_remote_hms): Add declaration.
6923 * remote-e7000.c (fetch_regs_from_dump): Make static.
6924 (expect_n): Make static.
6925 (_initialize_remote_e7000): Add declaration.
6926 * ser-e7kpc.c: Always include "defs.h".
6927 (_initialize_ser_e7000pc): Add declaration.
6928 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6929 * cris-tdep.c: Make all but one function static.
6930 (_initialize_cris_tdep): Add declaration.
6931 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6932 * solib.c (update_solib_list): Make static.
6933 (_initialize_solib): Add declaration.
6934 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6935 (_initialize_avr_tdep): Add declaration.
6936 * remote-rdi.c (voiddummy): Make static.
6937 (_initialize_remote_rdi): Add declaration.
6938 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6939 * remote-rdp.c (send_rdp): Make static.
6940 (_initialize_remote_rdp): Add declaration.
6941 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6942
6943 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6944
6945 * remote-fileio.c: Make ari happy.
6946
6947 2003-06-10 J. Brobecker <brobecker@gnat.com>
6948
6949 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6950 fetching the trailing bytes of the buffer we are about to write.
6951
6952 2003-06-10 Andrew Cagney <cagney@redhat.com>
6953
6954 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6955 * Makefile.in (remote-fileio.o): Update dependencies.
6956 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6957 include <setjmp.h>, or <sys/types.h> conditional on USG.
6958 (remote_fio_jmp_buf): Delete global variable.
6959
6960 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6961 Martin M. Hunt <hunt@redhat.com>
6962
6963 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6964 (SFILES): Add remote-fileio.c.
6965 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6966 dependencies for building remote.o.
6967 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6968 * remote-fileio.h: New header file defining remote File-I/O interface.
6969 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6970 static storage class.
6971 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6972 'F' packet.
6973 (_initialize_remote): Call initialize_remote_fileio().
6974 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6975 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6976 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6977 (captured_main): Initialize new ui_files.
6978 * ui-file.c: Add read and fgets input functions.
6979 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6980 (null_file_read): New function.
6981 (ui_file_read): New function.
6982 (set_ui_file_read): New function.
6983 (stdio_file_read): New function.
6984 * ui-file.h: New type ui_file_read_ftype.
6985 (set_ui_file_read): Declare.
6986 (ui_file_read): Declare.
6987
6988 2003-06-09 Andrew Cagney <cagney@redhat.com>
6989
6990 * frame.h (deprecated_unwind_get_saved_register): Rename
6991 generic_unwind_get_saved_register, update comments.
6992 * mips-tdep.c (mips_get_saved_register): Update.
6993 * frame.c (deprecated_unwind_get_saved_register): Update.
6994
6995 2003-06-09 Andrew Cagney <cagney@redhat.com>
6996
6997 * vax-tdep.c (vax_frame_locals_address): Delete function.
6998 (vax_gdbarch_init): Do not set frame_locals_address.
6999 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7000 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7001 * s390-tdep.c (s390_frame_args_address): Delete function.
7002 (s390_gdbarch_init): Do not set frame_args_address or
7003 frame_locals_address.
7004 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7005 (ns32k_gdbarch_init): Do not set frame_locals_address.
7006 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7007 (hppa_frame_locals_address): Delete function.
7008 (hppa_gdbarch_init): Do not set frame_args_address, or
7009 frame_locals_address.
7010 * arm-tdep.c (arm_frame_args_address): Delete.
7011 (arm_frame_locals_address): Delete.
7012 (arm_gdbarch_init): Do not set frame_args_address, or
7013 frame_locals_address.
7014
7015 2003-06-09 Andrew Cagney <cagney@redhat.com>
7016
7017 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7018 * gdbarch.h, gdbarch.c: Re-generate.
7019 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7020 * arch-utils.c (frame_num_args_unknown): Delete function.
7021 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7022 (frame_info): Use FRAME_NUM_ARGS_P.
7023 * arm-tdep.c (arm_frame_num_args): Delete function.
7024 (arm_gdbarch_init): Do not set frame_num_args.
7025 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7026 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7027 (hppa_gdbarch_init): Do not set frame_num_args.
7028 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7029 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7030 frame_num_args to default frame_num_args_unknown.
7031 * v850-tdep.c (v850_gdbarch_init): Ditto.
7032 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7033 * sh-tdep.c (sh_gdbarch_init): Ditto.
7034 * s390-tdep.c (s390_gdbarch_init): Ditto.
7035 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7036 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7037 * mips-tdep.c (mips_gdbarch_init): Ditto.
7038 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7039 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7041 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7042 * i386-tdep.c (i386_gdbarch_init): Ditto.
7043 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7044 * frv-tdep.c (frv_gdbarch_init): Ditto.
7045 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7046 * cris-tdep.c (cris_gdbarch_init): Ditto.
7047 * avr-tdep.c (avr_gdbarch_init): Ditto.
7048 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7049
7050 2003-06-09 Andrew Cagney <cagney@redhat.com>
7051
7052 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7053 (print_frame_args): Moved to "stack.c".
7054 * stack.c: Include "gdb_assert.h".
7055 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7056 (print_frame_args): Moved from "printcmd.c".
7057 * frame.h (print_frame_args): Delete declaration.
7058 * Makefile.in (stack.o): Update dependencies.
7059
7060 2003-06-08 Andrew Cagney <cagney@redhat.com>
7061
7062 * frame.c (get_prev_frame): Remove reference to
7063 frame_args_address_correct in comments.
7064 * frame-base.c (default_frame_args_address): Delete code
7065 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7066 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7067 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7068 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7069 (vax_frame_args_address_correct): Delete declaration.
7070
7071 2003-06-08 Andrew Cagney <cagney@redhat.com>
7072
7073 * gdbarch.sh (UNWIND_SP): Add.
7074 * gdbarch.h, gdbarch.c: Re-generate.
7075 * frame.c (frame_sp_unwind): New function.
7076 (get_frame_sp): New function.
7077 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7078 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7079 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7080 value.
7081 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7082 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7083
7084 2003-06-08 Andrew Cagney <cagney@redhat.com>
7085
7086 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7087 REMOTE_BREAKPOINT.
7088 * remote.c: Update.
7089 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7090 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7091 * config/m68k/tm-sun3.h: Update.
7092 * config/m68k/tm-m68klynx.h: Update.
7093 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7094
7095 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7096 trad_frame". Update comments.
7097 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7098 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7099 (trad_frame_register_value, trad_frame_prev_register): Update.
7100
7101 2003-06-08 Andrew Cagney <cagney@redhat.com>
7102
7103 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7104 from GCC's acinclude.m4.
7105 * configure.in: Check for getopt's delcaration.
7106 * aclocal.m4, config.in, configure: Re-generate.
7107 * main.c (error_init): Delete declaration.
7108 * defs.h (error_init): Declare.
7109 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7110 (rs6000_convert_from_func_ptr_addr): Make static.
7111 (_initialize_rs6000_tdep): Add declaration.
7112 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7113 (show_commands, set_verbose, show_history): Delete declaration.
7114 * top.h (set_verbose): Add declaration.
7115 (show_history, set_history, show_commands): Add declaration.
7116 (do_restore_instream_cleanup): Add declaration.
7117 * objc-lang.c (specialcmp): Make static.
7118 (print_object_command): Make static.
7119 (find_objc_msgsend): Make static.
7120 (find_objc_msgcall_submethod_helper): Make static.
7121 (find_objc_msgcall_submethod): Make static.
7122 (_initialize_objc_language): Add declaration.
7123 (find_implementation_from_class): Make static.
7124 (find_implementation): Make static.
7125 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7126 * objc-lang.h (lookup_struct_typedef): Add declaration.
7127 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7128 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7129 (do_restore_user_call_depth): Make static.
7130 (do_restore_instream_cleanup): Delete declaration.
7131 (dont_repeat): Delete declaration.
7132 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7133 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7134 * reggroups.c (_initialize_reggroup): Add declaration.
7135 * cp-support.c (_initialize_cp_support): Add declaration.
7136 * cp-abi.c (_initialize_cp_abi): Add declaration.
7137 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7138 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7139 (_initialize_gnu_v3_abi): Add declaration.
7140 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7141 (_initialize_gnu_v2_abi): Add declaration.
7142 * frame-base.c (_initialize_frame_base): Add declaration.
7143 * doublest.c (floatformat_from_length): Make static.
7144 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7145 * frame.c (create_sentinel_frame): Make static.
7146 (_initialize_frame): Add declaration.
7147 * top.c (do_catch_errors): Make static.
7148 (gdb_rl_operate_and_get_next_completion): Make static.
7149 * typeprint.c: Include "typeprint.h".
7150 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7151 (sentinel_frame_this_id): Make static.
7152 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7153 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7154 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7155 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7156 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7157 * maint.c (maintenance_print_architecture): Make static.
7158 * signals/signals.c (_initialize_signals): Add declaration.
7159 * std-regs.c (_initialize_frame_reg): Add declaration.
7160 * jv-exp.y (push_variable): ISO C definition.
7161 (push_qualified_expression_name): Ditto.
7162 * memattr.c (_initialize_mem): Add declaration.
7163 * remote.c (remote_check_watch_resources): Make static.
7164 (remote_stopped_by_watchpoint): Make static.
7165 (remote_stopped_data_address): Make static.
7166 * d10v-tdep.c (nr_dmap_regs): Make static.
7167 (a0_regnum): Make static.
7168 (d10v_frame_unwind_cache): Make static.
7169 (d10v_frame_p): Make static.
7170 * osabi.c (show_osabi): Make static.
7171 (_initialize_gdb_osabi): Add extern declaration.
7172 * gdbtypes.c (make_qualified_type): Make static.
7173 (safe_parse_type): Make static.
7174 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7175 * macrotab.c (macro_bcache_free): Make static.
7176 * interps.c (interp_set_quiet): Make static.
7177 (interpreter_exec_cmd): Make static.
7178 * stack.h (select_frame_command): New file.
7179 * stack.c: Include "stack.h".
7180 (select_frame_command_wrapper): Delete function.
7181 (select_frame_command): Make global.
7182 * infcall.c: Include "infcall.h".
7183 * linespec.c: Include "linespec.h".
7184 * symfile.c (sections_overlap): Make static.
7185 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7186 * charset.c (_initialize_charset): Add missing prototype.
7187 * regcache.c (init_legacy_regcache_descr): Make static.
7188 (do_regcache_xfree): Make static.
7189 (regcache_xfer_part): Make static.
7190 (_initialize_regcache): Add missing prototype.
7191 * breakpoint.c (parse_breakpoint_sals): Make static.
7192 (breakpoint_sals_to_pc): Make static.
7193 * interps.h (clear_interpreter_hooks): ISO C declaration.
7194 * Makefile.in (stack_h): Define.
7195 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7196 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7197
7198 2003-06-08 Andrew Cagney <cagney@redhat.com>
7199
7200 * Makefile.in (d10v-tdep.o): Update dependencies.
7201 (SFILES): Add trad-frame.c.
7202 (trad_frame_h): Define.
7203 (COMMON_OBS): Add trad-frame.o.
7204 (trad-frame.o): Specify dependencies.
7205 * d10v-tdep.c: Include "trad-frame.h".
7206 (saved_regs_unwinder): Delete function.
7207 (d10v_frame_prev_register): Use trad_frame_prev_register.
7208 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7209 trad_frame", delete "regs" and "prev_sp".
7210 (prologue_find_regs): Use trad-frame.
7211 * trad-frame.h, trad-frame.c: New files.
7212
7213 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7214
7215 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7216
7217 2003-06-07 Adam Fedor <fedor@gnu.org>
7218
7219 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7220 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7221 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7222 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7223 resolve_msgsend_super, resolve_msgsend_super_stret):
7224 Use it.
7225
7226 2003-06-07 Andrew Cagney <cagney@redhat.com>
7227
7228 * symfile.h: Re-indent, clean up comments.
7229
7230 2003-06-07 Andrew Cagney <cagney@redhat.com>
7231
7232 * inferior.h (deprecated_write_sp): Replace
7233 generic_target_write_sp.
7234 * regcache.c (deprecated_write_sp): Replace
7235 generic_target_write_sp.
7236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7237 * vax-tdep.c (vax_gdbarch_init): Update.
7238 * v850-tdep.c (v850_gdbarch_init): Update.
7239 * sparc-tdep.c (sparc_gdbarch_init): Update.
7240 * sh-tdep.c (sh_gdbarch_init): Update.
7241 * s390-tdep.c (s390_gdbarch_init): Update.
7242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7243 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7244 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7245 * mcore-tdep.c (mcore_gdbarch_init): Update.
7246 * m68k-tdep.c (m68k_gdbarch_init): Update.
7247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7248 * ia64-tdep.c (ia64_gdbarch_init): Update.
7249 * h8300-tdep.c (h8300_gdbarch_init): Update.
7250 * frv-tdep.c (frv_gdbarch_init): Update.
7251 * cris-tdep.c (cris_gdbarch_init): Update.
7252 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7253
7254 2003-06-07 Andrew Cagney <cagney@redhat.com>
7255
7256 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7257 Assert that PC_REGNUM is valid.
7258 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7259
7260 2003-06-07 Andrew Cagney <cagney@redhat.com>
7261
7262 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7263 * gdbarch.h, gdbarch.c: Regenerate.
7264 * mn10300-tdep.c: Include "gdb_assert.h".
7265 (mn10300_read_fp): New function.
7266 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7267 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7268 * ia64-tdep.c: Include "gdb_assert.h".
7269 (ia64_read_fp): New function.
7270 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7271 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7272 * regcache.c (generic_target_read_sp): Delete function.
7273 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7274 * inferior.h (generic_target_read_sp): Delete declaration.
7275 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7276 generic_target_read_sp.
7277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7278 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7279 * sh-tdep.c (sh_gdbarch_init): Ditto.
7280 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7281 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7282
7283 2003-06-07 Andrew Cagney <cagney@redhat.com>
7284
7285 * gdbarch.sh: Comment each field of startup_gdbarch.
7286 * gdbarch.h, gdbarch.c: Re-generate.
7287
7288 2003-06-07 Andrew Cagney <cagney@redhat.com>
7289
7290 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7291 * gdbarch.h, gdbarch.c: Re-generate.
7292 * regcache.c: Update comments on read_pc et.al.
7293 (generic_target_read_pc): Delete function.
7294 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7295 * inferior.h (generic_target_read_pc): Delete declaration.
7296 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7297 generic_target_read_pc.
7298 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7299 * sh-tdep.c (sh_gdbarch_init): Ditto.
7300 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7302
7303 2003-06-07 Andrew Cagney <cagney@redhat.com>
7304
7305 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7306 "index" with "special_local_sect". Use strcmp instead of STREQ.
7307 Append period to coments.
7308
7309 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7310
7311 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7312 (elfstab_offset_sections): Likewise.
7313 * gdb-stabs.h (stab_section_info): Likewise.
7314 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7315 * objfiles.c (objfile_relocate): Likewise.
7316 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7317 * remote.c (get_offsets): Likewise.
7318 (remote_cisco_objfile_relocate): Likewise.
7319 * somread.c (som_symfile_offsets): Likewise.
7320 * symfile.c (alloc_section_addr_info): New function.
7321 (build_section_addr_info_from_section_tab): Use it.
7322 (free_section_addr_info): Adjust.
7323 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7324 (syms_from_objfile): Allocate local_addr dynamically.
7325 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7326 dynamically.
7327 (add_symbol_file_command): Allocate sect_opts dynamically.
7328 (reread_symbols): Avoid use of SECT_OFF_MAX.
7329 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7330 (alloc_section_addr_info): Declare it.
7331 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7332 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7333 dynamically.
7334 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7335
7336 2003-06-06 Andrew Cagney <cagney@redhat.com>
7337
7338 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7339 (d10v_frame_unwind_cache): Do not set "return_pc".
7340
7341 2003-06-06 Michael Snyder <msnyder@redhat.com>
7342
7343 * h8300-tdep.c: Make tidy (long lines).
7344
7345 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7346
7347 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7348 to regcache_collect().
7349
7350 2003-06-05 J. Brobecker <brobecker@gnat.com>
7351
7352 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7353 pc_in_sigtramp multiarch method.
7354 (hppa_hpux_som_init_abi): Use it.
7355 (hppa_hpux_elf_init_abi): Likewise.
7356 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7357 macro has been multiarched.
7358 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7359 macro here, as hppa64 isn't multiarched yet.
7360
7361 2003-06-05 Andrew Cagney <cagney@redhat.com>
7362
7363 * Makefile.in (value_h): Add $(frame_h).
7364 * value.h: Include "frame.h".
7365 (struct value): Replace "frame_addr" with "frame_id".
7366 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7367 * values.c (allocate_value): Use VALUE_FRAME_ID.
7368 (value_copy): Use VALUE_FRAME_ID.
7369 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7370 * valops.c (value_assign): Update. Use frame_find_by_id.
7371
7372 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7373
7374 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7375 in each pass.
7376
7377 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7378
7379 * thread-db.c (check_event): For create/death event breakpoints,
7380 loop through all messages to ensure that we read the message
7381 corresponding to the breakpoint we are at.
7382
7383 2003-06-04 Michael Snyder <msnyder@redhat.com>
7384
7385 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7386
7387 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7388
7389 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7390 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7391 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7392 when handling .eh_frame sections.
7393
7394 2003-06-04 J. Brobecker <brobecker@gnat.com>
7395
7396 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7397 prepare_to_proceed procedure instead of the hppa-specific one.
7398 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7399
7400 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7401
7402 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7403 * config.in: Regenerated.
7404 * configure.in: Add test for syscall function and check for
7405 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7406 * configure: Regenerated.
7407 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7408 <sys/syscall.h>.
7409 (kill_lwp): New function that uses tkill syscall or
7410 uses kill, depending on whether threading model is nptl or not.
7411 All callers of kill() changed to use kill_lwp().
7412 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7413 see if all threads have already exited in the nptl model.
7414 (stop_and_resume_callback): New callback function used by the
7415 lin_lwp_wait thread exit handling code.
7416 (stop_wait_callback): Check for threads already having exited and
7417 delete such threads fromt the lwp list when discovered.
7418 (stop_callback): Don't assert retcode of kill call.
7419
7420 Roland McGrath <roland@redhat.com>
7421 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7422 nptl libthread_db.
7423
7424 2003-06-03 Richard Henderson <rth@redhat.com>
7425
7426 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7427 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7428 (alpha_sigtramp_frame_prev_register): Likewise.
7429 (alpha_heuristic_frame_prev_register): Likewise.
7430 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7431
7432 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7433 alpha-specific register id names.
7434 (alpha_mdebug_frame_unwind_cache): Likewise.
7435 (alpha_mdebug_frame_prev_register): Likewise.
7436
7437 2003-06-03 Richard Henderson <rth@redhat.com>
7438
7439 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7440 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7441 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7442 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7443 unwind routines.
7444 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7445 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7446 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7447
7448 * alpha-linux-tdep.c: Remove unnecessary includes.
7449 * Makefile.in (alpha-linux-tdep.o): Update.
7450
7451 2003-06-03 Richard Henderson <rth@redhat.com>
7452
7453 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7454 (alphabsd_fill_fpreg): Likewise.
7455
7456 2003-06-03 J. Brobecker <brobecker@gnat.com>
7457
7458 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7459 references to struct frame_info fields by calls to the equivalent
7460 accessors. Necessary now that frame_info is opaque.
7461
7462 2003-06-03 J. Brobecker <brobecker@gnat.com>
7463
7464 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7465 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7466 structure, field no longer exists.
7467
7468 2003-06-03 J. Brobecker <brobecker@gnat.com>
7469
7470 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7471 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7472
7473 2003-06-03 J. Brobecker <brobecker@gnat.com>
7474
7475 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7476 references to struct frame_info fields by calls to the equivalent
7477 accessors. Necessary now that frame_info is opaque.
7478
7479 2003-06-03 J. Brobecker <brobecker@gnat.com>
7480
7481 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7482 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7483 structure, field no longer exists.
7484
7485 2003-06-03 Theodore A. Roth <troth@openavr.org>
7486
7487 * remote.c (init_remote_state): Compute sizeof_g_packet by
7488 accumulation of the size of all registers instead of blindly using
7489 DEPRECATED_REGISTER_BYTES.
7490
7491 2003-06-03 Michael Snyder <msnyder@redhat.com>
7492
7493 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7494 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7495 for h8300sx.
7496
7497 2003-06-03 J. Brobecker <brobecker@gnat.com>
7498
7499 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7500 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7501
7502 2003-06-03 Andrew Cagney <cagney@redhat.com>
7503
7504 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7505 (sparc_convert_to_raw): Delete function.
7506 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7507 register_convert_to_virtual.
7508
7509 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7510
7511 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7512 layer if not dealing with a statically-linked threaded program.
7513
7514 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7515
7516 * solib.c (solib_open): Update comment to reflect actual search order.
7517
7518 2003-06-03 Andrew Cagney <cagney@redhat.com>
7519
7520 * frame.c (get_frame_memory_signed): New function.
7521 (get_frame_memory, get_frame_memory_unsigned): New function.
7522 (get_frame_arch): New function.
7523 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7524 (get_frame_memory, get_frame_unsigned_memory): Declare.
7525 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7526 get_frame_memory_unsigned and get_frame_arch.
7527 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7528
7529 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7530
7531 * MAINTAINERS (write after approval): Add myself.
7532
7533 2003-06-03 Jim Blandy <jimb@redhat.com>
7534
7535 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7536 elements of gregset_t are 64 bits each, but access registers
7537 are still 32 bits, so they're packed two per gregset_t
7538 element. Unpack/pack them properly.
7539
7540 2003-06-02 David Carlton <carlton@bactrian.org>
7541
7542 * linespec.c (find_methods): Break out code into
7543 add_matching_methods and add_constructors.
7544 (add_matching_methods): New.
7545 (add_constructors): Ditto.
7546
7547 2003-06-02 Andrew Cagney <cagney@redhat.com>
7548
7549 * sparc-tdep.c (sparc_print_registers): Delete call to
7550 REGISTER_CONVERTIBLE.
7551 (sparc_gdbarch_init): Do not set register_convertible.
7552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7553 * frv-tdep.c (frv_gdbarch_init): Ditto.
7554 * cris-tdep.c (cris_gdbarch_init): Ditto.
7555
7556 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7557
7558 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7559 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7560 (syms_from_objfile): Ditto.
7561
7562 2003-06-03 Andreas Schwab <schwab@suse.de>
7563
7564 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7565 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7566
7567 2003-06-02 Richard Henderson <rth@redhat.com>
7568
7569 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7570 a member of all_reggroup.
7571
7572 2003-06-02 Richard Henderson <rth@redhat.com>
7573
7574 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7575 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7576 (alpha_lds, alpha_sts): New.
7577 (alpha_convert_register_p): Change from _register_convertible.
7578 (alpha_register_to_value): Change from _convert_to_virtual;
7579 restructure and fail for type sizes other than 4 or 8.
7580 (alpha_value_to_register): Similarly.
7581 (alpha_extract_return_value): Use alpha_sts.
7582 (alpha_store_return_value): Use alpha_lds.
7583 (alpha_gdbarch_init): Update hooks.
7584
7585 2003-06-02 Richard Henderson <rth@redhat.com>
7586
7587 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7588 regnum identifiers.
7589 (alpha_sigtramp_register_address): Likewise.
7590
7591 2003-06-02 Richard Henderson <rth@redhat.com>
7592
7593 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7594 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7595 * alpha-tdep.h: Declare them.
7596
7597 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7598 Remove zerobuf. Don't error on UNIQUE.
7599 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7600 (ALPHA_REGSET_UNIQUE): Provide default.
7601 (supply_gregset): Use alpha_supply_int_regs.
7602 (fill_gregset): Use alpha_fill_int_regs.
7603 (supply_fpregset): Use alpha_supply_fp_regs.
7604 (fill_fpregset): Use alpha_fill_fp_regs.
7605 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7606 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7607 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7608 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7609 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7610 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7611
7612 2003-06-02 Richard Henderson <rth@redhat.com>
7613
7614 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7615
7616 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7617 (alpha_store_return_value): Likewise.
7618
7619 2003-06-02 David Carlton <carlton@math.stanford.edu>
7620
7621 * block.c (contained_in): Add 'const' to arguments.
7622 (block_function): Ditto.
7623 * block.h: Update declarations for block_function and
7624 contained_in.
7625
7626 2003-06-02 David Carlton <carlton@math.stanford.edu>
7627
7628 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7629 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7630 * p-valprint.c (pascal_val_print): Ditto.
7631 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7632
7633 2003-06-02 Richard Henderson <rth@redhat.com>
7634
7635 * alpha-tdep.c (alpha_push_dummy_call): Use
7636 builtin_type_ieee_double_little instead of builtin_type_double.
7637
7638 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7639 sign-extension of 32-bit values.
7640 (alpha_store_return_value): Similarly.
7641
7642 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7643 (alpha_extract_return_value): Likewise.
7644 (alpha_store_return_value): Likewise.
7645
7646 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7647 (alpha_store_return_value): Error on IEEE Quad floats.
7648
7649 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7650 (alpha_extract_struct_value_address): Likewise.
7651 (alpha_store_return_value): Likewise.
7652 (alpha_store_struct_return): Remove.
7653 (alpha_gdbarch_init): Update hook registration to match.
7654
7655 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7656 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7657 macros where appropriate.
7658 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7659 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7660
7661 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7662 for SP, GP; void_func_ptr for PC; non-language-specific types
7663 for all others.
7664 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7665
7666 2003-06-02 Richard Henderson <rth@redhat.com>
7667
7668 * top.h (lim_at_start): Declare.
7669 * main.c (captured_main): Set it.
7670 * top.c (lim_at_start): Define.
7671 (command_loop): Use it instead of &environ.
7672 * event-top.c (command_handler): Likewise.
7673
7674 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7675
7676 * mipsnbsd-tdep.c: Update copyright years.
7677 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7678
7679 2003-06-01 Richard Henderson <rth@redhat.com>
7680
7681 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7682 (alpha-linux-tdep.o): Update dependencies.
7683 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7684 * alpha-mdebug-tdep.c: Remove unneeded includes.
7685
7686 2003-06-01 Richard Henderson <rth@redhat.com>
7687
7688 * alpha-tdep.c (alpha_register_reggroup_p): New.
7689 (alpha_gdbarch_init): Register it.
7690
7691 2003-06-02 Andrew Cagney <cagney@redhat.com>
7692
7693 * dwarfread.c: Eliminate "register"
7694 (decode_die_type): Eliminate assignment within "if".
7695 (struct_type, decode_array_element_type): Ditto.
7696 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7697 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7698 (decode_modified_type, completedieinfo): Ditto.
7699 * block.c: Eliminate "register".
7700 (blockvector_for_pc_sect): Eliminate assignment within "if".
7701 * cp-support.h (struct symbol): Opaque declaration.
7702 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7703
7704 2003-06-01 Richard Henderson <rth@redhat.com>
7705
7706 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7707 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7708
7709 2003-06-01 Adam Fedor <fedor@gnu.org>
7710
7711 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7712 * gdbarch.[ch]: Regenerate.
7713 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7714 (hppa_gdbarch_init): Set it in the gdbarch vector.
7715 * i386-tdep.c (i386_fetch_pointer_argument): New
7716 (i386_gdbarch_init): Set it into gdbarch.
7717 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7718 (rs6000_gdbarch_init): Set it in gdbarch.
7719 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7720 (sparc_gdbarch_init): Set it in gdbarch.
7721
7722 2003-06-01 Andrew Cagney <cagney@redhat.com>
7723
7724 * defs.h (extract_address): Delete declaration.
7725 * findvar.c (extract_address): Delete function.
7726 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7727 extract_address with the inline equivalent,
7728 extract_unsigned_integer.
7729 (xstormy16_extract_struct_value_address): Ditto.
7730 (xstormy16_pointer_to_address): Ditto.
7731 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7732 * v850-tdep.c (v850_push_arguments): Ditto.
7733 (v850_extract_return_value): Ditto.
7734 (v850_extract_struct_value_address): Ditto.
7735 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7736 (sparcnbsd_get_longjmp_target_64): Ditto.
7737 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7738 (get_longjmp_target): Ditto.
7739 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7740 (sh64_extract_struct_value_address): Ditto.
7741 (sh_push_arguments): Ditto.
7742 (sh64_push_arguments): Ditto.
7743 * remote-vxsparc.c (vx_read_register): Ditto.
7744 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7745 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7746 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7747 * mipsv4-nat.c (get_longjmp_target): Ditto.
7748 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7749 * mips-nat.c (get_longjmp_target): Ditto.
7750 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7751 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7752 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7753 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7754 * irix5-nat.c (get_longjmp_target): Ditto.
7755 * irix4-nat.c (get_longjmp_target): Ditto.
7756 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7757 (ia64_push_arguments): Ditto.
7758 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7759 * h8300-tdep.c (h8300_push_arguments): Ditto.
7760 (h8300_store_return_value): Ditto.
7761 (h8300_extract_struct_value_address): Ditto.
7762 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7763 (frv_push_arguments): Ditto.
7764 * avr-tdep.c (avr_pointer_to_address): Ditto.
7765 (avr_push_arguments): Ditto.
7766 * arm-tdep.c (arm_push_dummy_call): Ditto.
7767 (arm_get_longjmp_target): Ditto.
7768 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7769 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7770 (alpha_get_longjmp_target): Ditto.
7771
7772 * solib-irix.c (extract_mips_address): Inline extract_address,
7773 replacing it with extract_signed_integer.
7774 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7775 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7776 (first_link_map_member, open_symbol_file_object): Ditto.
7777 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7778 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7779 (LM_NEXT, LM_NAME): Ditto.
7780
7781 2003-06-01 Richard Henderson <rth@redhat.com>
7782
7783 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7784 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7785 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7786 (alpha_cannot_store_register): Likewise.
7787 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7788 * alpha-nat.c (supply_gregset): Likewise.
7789 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7790
7791 2003-06-01 Andrew Cagney <cagney@redhat.com>
7792
7793 * infcall.c (call_function_by_hand): Update comment on
7794 DEPRECATED_DUMMY_WRITE_SP.
7795
7796 * mips-tdep.c (mips_gdbarch_init): Do not set
7797 deprecated_dummy_write_sp.
7798 (mips_eabi_push_dummy_call): Set the SP register.
7799 (mips_o64_push_dummy_call): Set the SP register.
7800 (mips_o32_push_dummy_call): Set the SP register.
7801 (mips_n32n64_push_dummy_call): Set the SP register.
7802
7803 2003-06-01 Richard Henderson <rth@redhat.com>
7804
7805 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7806 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7807 (supply_gregset): Likewise.
7808 * alpha-tdep.c (alpha_store_return_value): Likewise.
7809 (alpha_get_longjmp_target): Likewise.
7810 (alpha_register_name): Constify array.
7811 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7812 deprecated_register_size, deprecated_register_bytes,
7813 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7814 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7815 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7816
7817 2003-06-01 Richard Henderson <rth@redhat.com>
7818
7819 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7820 from arg_reg_buffer to regcache to avoid double conversion.
7821
7822 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7823
7824 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7825 SP_REGNUM.
7826 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7827 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7828
7829 2003-06-01 Richard Henderson <rth@redhat.com>
7830
7831 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7832 (decode_frame_entry): Set it. Skip FDE augmentation.
7833
7834 2003-06-01 Richard Henderson <rth@redhat.com>
7835
7836 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7837 not overlapping PC_REGNUM.
7838
7839 2003-06-01 Richard Henderson <rth@redhat.com>
7840
7841 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7842 alpha_push_arguments. Don't dump argument register data to
7843 the target stack. Fix float and 128-bit long double semantics.
7844 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7845 (alpha_fix_call_dummy): Remove.
7846 (alpha_call_dummy_words): Remove.
7847 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7848
7849 2003-06-01 Richard Henderson <rth@redhat.com>
7850
7851 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7852
7853 2003-06-01 Andrew Cagney <cagney@redhat.com>
7854
7855 * mips-tdep.c (is_mips16_addr): New function.
7856 (make_mips16_addr, unmake_mips16_addr): New functions.
7857 (pc_is_mips16, mips_fetch_instruction): Use.
7858 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7859 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7860 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7861 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7862 TARGET_MIPS.
7863 * config/mips/tm-mips.h: Update copyright.
7864 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7865 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7866 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7867 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7868 (TM_PRINT_INSN_MACH): Delete.
7869 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7870
7871 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7872 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7873 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7874 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7875 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7876 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7877 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7878 mips*-*-riscos* and mips*-*-sysv* onto mips.
7879 * config/mips/mips64.mt: New file.
7880 * config/mips/mips.mt: New file.
7881 * config/mips/littlemips.mt: Delete file.
7882 * config/mips/decstation.mt: Delete file.
7883 * config/mips/vr4300el.mt: Delete file.
7884 * config/mips/vr5000el.mt: Delete file.
7885 * config/mips/vr5000.mt: Delete file.
7886 * config/mips/vr4100.mt: Delete file.
7887 * config/mips/vr4xxxel.mt: Delete file.
7888 * config/mips/vr4300.mt: Delete file.
7889 * config/mips/vr4xxx.mt: Delete file.
7890 * config/mips/bigmips.mt: Delete file.
7891 * config/mips/bigmips64.mt: Delete file.
7892 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7893 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7894 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7895 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7896 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7897 "tm-bigmips.h".
7898 * config/mips/tm-irix3.h: Ditto.
7899 * config/mips/tm-mipsv4.h: Ditto.
7900 * config/mips/tm-embed.h: Ditto.
7901 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7902 "tm-bigmips64.h".
7903 * config/mips/tm-vr5000el.h: Delete file.
7904 * config/mips/tm-tx39l.h: Delete file.
7905 * config/mips/tm-vr4300el.h: Delete file.
7906 * config/mips/tm-vr4xxxel.h: Delete file.
7907 * config/mips/tm-vr4300.h: Delete file.
7908 * config/mips/tm-vr4100.h: Delete file.
7909 * config/mips/tm-vr4xxx.h: Delete file.
7910 * config/mips/tm-vr5000.h: Delete file.
7911 * config/mips/tm-embedl64.h: Delete file.
7912 * config/mips/tm-embedl.h: Delete file.
7913 * config/mips/tm-embed64.h: Delete file.
7914 * config/mips/tm-bigmips64.h: Delete file.
7915 * config/mips/tm-bigmips.h: Delete file.
7916
7917 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7918
7919 Fix gdb/1216.
7920 * shnbsd-nat.c: Include "sh-tdep.h".
7921
7922 From Richard Henderson <rth@redhat.com>:
7923 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7924
7925 2003-05-31 Andrew Cagney <cagney@redhat.com>
7926
7927 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7928 forward declaration.
7929 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7930 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7931 (mips_find_saved_regs): Use set_reg_offset.
7932 (mips_frame_init_saved_regs): Delete function.
7933 (mips_pop_frame): Call mips_find_saved_regs instead of
7934 DEPRECATED_FRAME_INIT_SAVED_REGS.
7935
7936 2003-05-31 Andrew Cagney <cagney@redhat.com>
7937
7938 * mips-tdep.c (mips_gdbarch_init): Do not set
7939 deprecated_max_register_raw_size, register_virtual_size, and
7940 deprecated_max_register_virtual_size.
7941
7942 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7943
7944 * i386-tdep.c: Include "dwarf2-frame.h".
7945 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7946 * Makefile.in (i386-tdep.o): Update dependencies.
7947
7948 * dwarf2-frame.c, dwarf2-frame.h: New files.
7949 * Makefile.in (SFILES): Add dwarf2-frame.c.
7950 (dwarf2_frame_h): Define.
7951 (COMMON_OBS): Add dwarf2-frame.o.
7952 (dwarf2-frame.o): Add dependencies.
7953
7954 2003-05-31 Andreas Jaeger <aj@suse.de>
7955
7956 * x86-64-linux-nat.c: Fix comment.
7957
7958 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7959
7960 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7961 function signature.
7962
7963 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7964 have a sigcontext_addr handler.
7965 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7966 sigcontext_addr handler.
7967
7968 2003-05-31 Andrew Cagney <cagney@redhat.com>
7969
7970 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7971 (print_fp_register_row): Replace do_fp_register_row.
7972 (mips_print_fp_register): Add "file" and "frame" parameters.
7973 (mips_print_register): Add "file" and "frame" parameters.
7974 (mips_print_registers_info): Replace mips_do_registers_info.
7975 (mips_gdbarch_init): Set print_registers_info instead of
7976 deprecated_do_registers_info.
7977 (mips_read_fp_register_single): Add "frame" parameter.
7978 (mips_read_fp_register_double): Add "frame" parameter.
7979
7980 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7981
7982 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7983 Fixes a bug where GDB would print the wrong register names for
7984 targets without SSE.
7985
7986 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7987 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7988 registers.
7989
7990 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7991 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7992 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7993 TDEP->sc_sp_offset.
7994
7995 From Michal Ludvig <mludvig@suse.cz>:
7996 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7997 and `sc_num_regs'.
7998 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7999 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8000 I386_ST0_REGNUM): Move here from...
8001 * i386-tdep.c: ... here.
8002 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8003 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8004 registers if possible.
8005 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8006 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8007 Remove variables.
8008 (i386bsd_sc_reg_offset): New variable.
8009 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8010 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8011 TDEP->sc_sp_offset.
8012 (i386fbsd_sc_reg_offset): New variable.
8013 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8014 TDEP->sc_num_regs.
8015 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8016 variables.
8017 (i386fbsd4_sc_reg_offset): New variable.
8018 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8019 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8020 TDEP->sc_sp_offset.
8021 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8022 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8023 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8024 Remove variables.
8025 (i386nbsd_sc_reg_offset): New variable.
8026 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8027 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8028 TDEP->sc_sp_offset.
8029 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8030 Remove variables.
8031 (i386obsd_sc_reg_offset): New variable.
8032 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8033 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8034 TDEP->sc_sp_offset.
8035 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8036 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8037 for frame pointer offset in `struct sigcontext'.
8038
8039 2003-05-31 Andrew Cagney <cagney@redhat.com>
8040
8041 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8042 architecture methods call_dummy_words, sizeof_call_dummy_words,
8043 push_return_address, store_struct_return, and fix_call_dummy. Set
8044 push_dummy_call instead of deprecated_push_arguments.
8045 (mips_store_struct_return): Delete function.
8046 (mips_fix_call_dummy): Delete function.
8047 (mips_push_return_address): Delete function.
8048 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8049 RA_REGNUM and T9_REGNUM.
8050 (mips_n32n64_push_dummy_call): Ditto for
8051 mips_n32n64_push_arguments.
8052 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8053 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8054
8055 2003-05-31 Andrew Cagney <cagney@redhat.com>
8056
8057 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8058 "dummy_addr" to "bp_addr".
8059 * infcall.c (call_function_by_hand): Pass "funaddr" to
8060 gdbarch_push_dummy_call.
8061 * gdbarch.h, gdbarch.c: Re-generate.
8062 * i386-tdep.c (i386_push_dummy_call): Update.
8063 * arm-tdep.c (arm_push_dummy_call): Update.
8064 * d10v-tdep.c (d10v_push_dummy_call): Update.
8065
8066 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8067
8068 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8069 variable declarations.
8070 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8071 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8072 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8073 x86_64_init_frame_pc, x86_64_init_frame_pc,
8074 x86_64_function_has_prologue): Remove prototypes.
8075 (X86_64_NUM_GREGS): New define.
8076 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8077 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8078 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8079 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8080 XMM1_REGNUM): Remove defines.
8081 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8082 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8083 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8084 X86_64_XMM1_REGNUM): New defines.
8085 (struct x86_64_register_info): Renamed from `struct
8086 register_info'. Remove `size' member.
8087 (x86_64_register_info_table): Remove variable.
8088 (x86_64_register_info): New variable.
8089 (X86_64_NUM_REGS): New define.
8090 (X86_64_NUM_GREGS): Remove define.
8091 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8092 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8093 Remove variables.
8094 (x86_54_dwarf2_reg_to_regnum): Remove function.
8095 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8096 (x86_64_dwarf_reg_to_regnum): New function.
8097 (x86_64_register_name): Rewrite.
8098 (x86_64_register_raw_size): Remove function.
8099 (x86_64_register_byte_table): Remove variable.
8100 (x86_64_register_byte): Remove function.
8101 (x86_64_register_virtual_type): Remove function.
8102 (x86_64_register_type): New function.
8103 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8104 x86_64_register_convert_to_raw): Remove functions.
8105 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8106 (x86_64_use_struct_convention): Make static. Adjust for renamed
8107 defines.
8108 (x86_64_frame_init_saved_regs): Remove function.
8109 (x86_64_push_arguments): Make static. Change to accept a regcache
8110 as argument.
8111 (x86_64_store_return_value, x86_64_extract_return_value): Make
8112 static. Rewrite based on i386 counterparts.
8113 (x86_64_push_dummy_call): New function.
8114 (X86_64_NUM_SAVED_REGS): New define.
8115 (x86_64_register_number): Remove function.
8116 (x86_64_store_struct_return): Remove function.
8117 (x86_64_frameless_function_invocation,
8118 x86_64_function_has_prologue): Remove functions.
8119 (PROLOG_BUFSIZE): Remove define.
8120 (struct x86_64_frame_cache): New structure.
8121 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8122 x86_64_frame_cache, x86_64_frame_this_id,
8123 x86_64_frame_prev_register, x86_64_frame_p,
8124 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8125 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8126 functions.
8127 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8128 variables.
8129 (x86_64_skip_prologue): Rewrite in terms of
8130 x86_64_analyze_prologue.
8131 (x86_64_frame_base_address): New function.
8132 (x86_64_frame_base): New variable.
8133 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8134 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8135 set deprecated_fp_regnum, deprecated_register_size,
8136 deprecated_register_bytes, register_raw_size, register_byte,
8137 register_virtual_type, register_convertiable,
8138 register_convert_to_virtual, convert_to_raw,
8139 deprecated_get_saved_register, deprecated_target_read_fp,
8140 deprecated_push_arguments, deprecated_push_return_address,
8141 deprecated_pop_frame, deprecated_store_struct_return,
8142 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8143 frameless_function_invocation, deprecated_frame_saved_pc,
8144 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8145 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8146 deprecated_init_frame_pc and virtual_frame_pointer. Call
8147 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8148 and x86_64_frame_p. Call frame_base_set_default to register
8149 x86_64_frame_base.
8150 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8151 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8152 (_initialize_x86_64_tdep): Remove function.
8153 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8154 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8155 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8156 define.
8157 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8158 (x86_64_linux_sigcontext_addr): Rewrite.
8159 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8160 x86_64_linux_frame_saved_pc): Remove functions.
8161 (x86_64_linux_pc_in_sigtramp): Renamed from
8162 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8163 trampoline.
8164 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8165 Remove_functions.
8166 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8167 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8168 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8169 (x86_64_regmap): Rename to regmap.
8170 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8171 x86_64_num_gregs.
8172 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8173 x86_64_regmap.
8174 (x86_64_fxsave_offset): Remove function.
8175 (supply_fpregset): Simply call x86_64_supply_fxsave.
8176 (fill_fpregset): Simply call x86_64_fill_fxsave.
8177 (fetch_inferior_registers, store_inferior_registers): Avoid
8178 asignment in if-statement.
8179 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8180 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8181 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8182 (fetch_core_registers): Remove function.
8183 (linux_elf_core_fns): Remove.
8184 (offsetoff): Don't define.
8185 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8186 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8187 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8188 add core-regset.o.
8189 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8190 protection against multiple includes instead of NM_X86_64_h. Add
8191 various comments. Include "config/nm-linux.h". Don't include
8192 <signal.h>.
8193 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8194 GET_THREAD_SIGNALS): Remove defines.
8195 (x86_64_register_u_addr, kernel_u_size,
8196 lin_thread_get_thread_signals): Remove prototypes.
8197 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8198 [HAVE_LINK_H]: Don't include "solib.h".
8199 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8200 * config/i386/tm-x86-64linux.h: Fix comments.
8201 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8202 x86-64-tdep.o): Update dependencies.
8203
8204 2003-05-30 Andrew Cagney <cagney@redhat.com>
8205
8206 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8207 Change parameter type to a "struct regcache *".
8208
8209 * gdbarch.sh: Regardless of the multi-arch level, always define
8210 the macro when not already defined.
8211 * gdbarch.h, gdbarch.c: Re-generate.
8212
8213 2003-05-30 Richard Henderson <rth@redhat.com>
8214
8215 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8216 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8217 (alpha_mdebug_frame_this_id): Likewise.
8218 (alpha_mdebug_frame_prev_register): Likewise.
8219 (alpha_mdebug_frame_base_address): Likewise.
8220 (alpha_mdebug_frame_locals_address): Likewise.
8221 (alpha_mdebug_frame_args_address): Likewise.
8222 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8223 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8224 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8225 loop increment.
8226 (alpha_heuristic_frame_this_id): Make static.
8227 (alpha_heuristic_frame_prev_register): Likewise.
8228 (alpha_heuristic_frame_base_address): Likewise.
8229 * alpha-tdep.h: Update.
8230
8231 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8232
8233 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8234 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8235 defenitions.
8236 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8237 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8238 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8239 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8240 I386_ST0_REGNUM): New defines.
8241 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8242 codestream_get): Remove define.
8243 (codestream_next_addr, condestream_addr, condestream_buf,
8244 codestream_off, codestream_cnt): Remove variables.
8245 (codestream_fill, codestream_seek, codestream_read): Remove
8246 functions.
8247 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8248 functionality.
8249 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8250 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8251 i386_frame_saved_pc, i386_saved_pc_after_call,
8252 i386_frame_num_args, i386_frame_init_saved_regs,
8253 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8254 i386_push_arguments): Remove functions.
8255 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8256 functionality. Use i386_analyze_prologue instead of
8257 i386_get_frame_setup.
8258 (I386_NUM_SAVED_REGS): New define.
8259 (struct i386_frame_cache): New structure.
8260 (i386_alloc_frame_cache, i386_analyze_struct_return,
8261 i386_skip_probe, i386_analyze_frame_setup,
8262 i386_analyze_register_saves, i386_analyze_prologue,
8263 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8264 i386_frame_prev_register, i386_sigtramp_frame_cache,
8265 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8266 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8267 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8268 New functions.
8269 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8270 New variables.
8271 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8272 I386_EAX_REGNUM and I386_EDX_REGNUM.
8273 (i386_extract_return_value, i386_store_return_value): Use
8274 I386_ST0_REGNUM where appropriate.
8275 (i386_extract_struct_value_address): Rewrite to use extract_address.
8276 (i386_svr4_pc_in_sigtramp): Add comment.
8277 (i386_svr4_sigcontext_addr): Rewrite.
8278 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8279 TDEP->sc_sp_offset.
8280 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8281 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8282 of new defines. Set push_dummy_call, don't set
8283 deprecated_push_arguments, deprecated_push_return_address,
8284 deprecated_pop_frame. Don't set parm_boundary. Don't set
8285 deprecated_frame_chain, deprecated_frame_saved_pc,
8286 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8287 save_dummy_frame_tos, unwind_pc. Call
8288 frame_unwind_append_predicate and frame_base_set_default. Don't
8289 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8290 Don't set frameless_function_invocation. Don't set
8291 deprecated_register_bytes, deprecated_register_size,
8292 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8293 * i386-linux-tdep.c: Fix formatting in some comments.
8294 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8295 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8296 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8297 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8298 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8299 redundant parentheses.
8300 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8301 (i386_linux_sigcontext_addr): Use it. Rewrite.
8302 (find_minsym_and_objfile): Change name of second argument.
8303 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8304 changed. Use frame_pc_unwind instead of
8305 DEPRECATED_SAVED_PC_AFTER_CALL.
8306 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8307 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8308 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8309 unwinder.
8310 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8311 "dummy-frame.h".
8312 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8313 (_initialize_i386_cygwin_tdep): New prototype.
8314 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8315 deprecated_frame_chain_valid.
8316 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8317 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8318 Rely on the SVR4 defaults.
8319 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8320 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8321
8322 2003-05-30 Andrew Cagney <cagney@redhat.com>
8323
8324 * infcall.c (call_function_by_hand): Always call
8325 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8326
8327 2003-05-30 Richard Henderson <rth@redhat.com>
8328
8329 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8330 increment.
8331
8332 2003-05-29 Jim Blandy <jimb@redhat.com>
8333
8334 Use gdbarch methods for solib stuff on PowerPC Linux.
8335 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8336 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8337 show through.
8338 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8339 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8340 giving the same effect as the #definitions above.
8341
8342 2003-05-29 Adam Fedor <fedor@gnu.org>
8343
8344 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8345 (find_implementation_from_class): Replace it with the standard
8346 case i.e. do nothing.
8347
8348 2003-05-29 Richard Henderson <rth@redhat.com>
8349
8350 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8351 (alpha_linux_sigtramp_offset): Use it. Make static.
8352 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8353 update for new frame model.
8354 * alpha-mdebug-tdep.c: New file.
8355 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8356 (alpha_osf1_init_abi): Install it.
8357 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8358 (linked_proc_desc_table): Remove.
8359 (alpha_frame_past_sigtramp_frame): Remove.
8360 (alpha_dynamic_sigtramp_offset): Remove.
8361 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8362 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8363 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8364 (push_sigtramp_desc): Remove.
8365 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8366 (alpha_cannot_store_register): Likewise.
8367 (alpha_sigcontext_addr): Remove.
8368 (alpha_find_saved_regs): Remove.
8369 (alpha_frame_init_saved_regs): Remove.
8370 (alpha_init_frame_pc_first): Remove.
8371 (read_next_frame_reg): Remove.
8372 (alpha_frame_saved_pc): Remove.
8373 (alpha_saved_pc_after_call): Remove.
8374 (temp_proc_desc, temp_saved_regs): Remove.
8375 (alpha_about_to_return): Remove.
8376 (cached_proc_desc): Remove.
8377 (alpha_frame_chain): Remove.
8378 (alpha_print_extra_frame_info): Remove.
8379 (alpha_init_extra_frame_info): Remove.
8380 (alpha_frame_locals_address): Remove.
8381 (alpha_frame_args_address): Remove.
8382 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8383 (alpha_push_dummy_frame): Remove.
8384 (alpha_pop_frame): Remove.
8385 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8386 (alpha_read_insn): New.
8387 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8388 for different insn encodings.
8389 (alpha_in_lenient_prologue): Remove.
8390 (struct alpha_sigtramp_unwind_cache): New.
8391 (alpha_sigtramp_frame_unwind_cache): New.
8392 (alpha_sigtramp_register_address): New.
8393 (alpha_sigtramp_frame_this_id): New.
8394 (alpha_sigtramp_frame_prev_register): New.
8395 (alpha_sigtramp_frame_unwind): New.
8396 (alpha_sigtramp_frame_p): New.
8397 (struct alpha_heuristic_unwind_cache): New.
8398 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8399 don't count nop insns that occur between functions.
8400 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8401 heuristic_proc_desc, but without the mdebug wrapping.
8402 (alpha_heuristic_frame_this_id): New.
8403 (alpha_heuristic_frame_prev_register): New.
8404 (alpha_heuristic_frame_unwind): New.
8405 (alpha_heuristic_frame_p): New.
8406 (alpha_heuristic_frame_base_address): New.
8407 (alpha_heuristic_frame_base): New.
8408 (alpha_unwind_dummy_id): New.
8409 (alpha_unwind_pc): New.
8410 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8411 frame related deprecated initializations; install replacements.
8412 (alpha_dump_tdep): Remove.
8413 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8414 (alpha_read_insn, alpha_after_prologue,
8415 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8416 alpha_heuristic_frame_prev_register,
8417 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8418 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8419 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8420 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8421
8422 2003-05-29 Andrew Cagney <cagney@redhat.com>
8423
8424 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8425 dependant on the availability of ASSERT_FUNCTION.
8426 (ASSERT_FUNCTION): Do not define when there is no function name.
8427
8428 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8429
8430 From Jimi X <jimix@watson.ibm.com>:
8431 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8432
8433 2003-05-28 Jim Blandy <jimb@redhat.com>
8434
8435 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8436 argument to ptrace to int; the system headers should give it the
8437 right type, and pointers don't fit in ints on powerpc64-*-*.
8438
8439 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8440
8441 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8442 DW_TAG_catch_block.
8443
8444 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8445
8446 * stabsread.c (dbx_lookup_type): Make static.
8447 (read_type): Ditto.
8448 (add_undefined_type): Ditto.
8449 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8450 not export.
8451
8452 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8453
8454 * hpread.c (hpread_has_name): Make static.
8455 (hpread_psymtab_to_symtab): Ditto.
8456 (file_exists): Ditto.
8457 (hpread_call_pxdb): Ditto.
8458 (hpread_pxdb_needed): Ditto.
8459 (hpread_quick_traverse): Ditto.
8460 (hpread_get_header): Ditto.
8461 (hpread_get_lntt): Ditto.
8462 (hpread_get_slt): Ditto.
8463 (class_of): Ditto.
8464
8465 2003-05-25 Andreas Schwab <schwab@suse.de>
8466
8467 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8468 stack_align and deprecated_extra_stack_alignment_needed.
8469 (m68k_stack_align): Delete.
8470
8471 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8472 (m68k_register_virtual_size): Likewise.
8473 (altos_skip_prologue): Remove obsolete function.
8474 (isi_frame_num_args): Likewise.
8475 (news_frame_num_args): Likewise.
8476 (m68k_fix_call_dummy): Make static.
8477 (m68k_push_dummy_frame): Likewise.
8478 (m68k_pop_frame): Likewise.
8479 (m68k_skip_prologue): Likewise.
8480 (m68k_frame_init_saved_regs): Likewise.
8481 (m68k_saved_pc_after_call): Likewise.
8482 (m68k_get_longjmp_target): Make multi-arch.
8483 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8484 structure. Register m68k_get_longjmp_target if enabled.
8485 * m68k-tdep.h (struct gdbarch_tdep): Define.
8486 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8487
8488 * Makefile.in (config.status): Also depend on configure.tgt
8489 and configure.host.
8490 (m68klinux-tdep.o): Update dependencies.
8491 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8492 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8493 (M68K_LINUX_JB_PC): Define.
8494 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8495 and take additional parameter.
8496 (m68k_linux_sigtramp_saved_pc): Update.
8497 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8498 m68k_linux_pc_in_sigtramp, in_plt_section,
8499 find_solib_trampoline_target.
8500 * config/m68k/tm-linux.h: Don't include any tm headers.
8501 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8502 (JB_ELEMENT_SIZE): Likewise.
8503 (JB_PC): Likewise.
8504 (GET_LONGJMP_TARGET): Likewise.
8505 (IN_SIGTRAMP): Likewise.
8506 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8507
8508 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8509
8510 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8511 (sparc32_push_arguments): Re-implement by calling
8512 sparc32_do_push_arguments.
8513
8514 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8515
8516 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8517 SPARC_O1_REGNUM): New defines.
8518 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8519 (sparc32_store_return_value): New function.
8520 (sparc_extract_struct_value_address): Rewrite to operate on a
8521 regcache.
8522 (sparc_gdbarch_init): Don't set
8523 deprecated_extract_struct_value_address. Set
8524 extract_struct_value_address instead. Don't set
8525 deprecated_extract_return_value and deprecated_store_return_value
8526 for 32-bit targets. Set extract_return_value and
8527 store_return_value instead.
8528 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8529 DEPRECATED_EXTRACT_RETURN_VALUE,
8530 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8531 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8532 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8533 (sparc_store_return_value): Remove prototype.
8534 (sparc32_store_return_value): New prototype.
8535 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8536 Adjust prototypes.
8537
8538 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8539
8540 * sparcnbsd-tdep.c: Include "gdb_string.h".
8541
8542 2003-05-23 Andrew Cagney <cagney@redhat.com>
8543
8544 * p-valprint.c (pascal_val_print): Replace extract_address with
8545 the inline equivalent extract_unsigned_integer.
8546 * jv-valprint.c (java_value_print): Ditto.
8547 * ada-valprint.c (ada_val_print_1): Ditto.
8548 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8549
8550 2003-05-23 Theodore A. Roth <troth@openavr.org>
8551
8552 * blockframe.c (frameless_look_for_prologue): Remove unused
8553 after_prologue variable.
8554
8555 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8556
8557 * blockframe.c (get_pc_function_start): Rewrite to avoid
8558 asignments in if-statements.
8559
8560 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8561
8562 Committed by Elena Zannoni <ezannoni@redhat.com>.
8563 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8564 files, don't relocate absolute symbols (and do use mst_abs).
8565
8566 2003-05-23 Andrew Cagney <cagney@redhat.com>
8567
8568 * objc-lang.c: Include "gdb_assert.h".
8569 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8570 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8571 (gdb_check, gdb_check_fatal): Delete functions.
8572 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8573 gdb_assert.
8574 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8575 * Makefile.in (objc-lang.o): Update dependencies.
8576
8577 2003-05-22 Ian Lance Taylor <ian@airs.com>
8578
8579 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8580 with fprintf_filtered, not fprintf_unfiltered.
8581
8582 2003-05-22 Andrew Cagney <cagney@redhat.com>
8583
8584 * stack.c (frame_info): Inline extract_address, replacing it with
8585 extract_unsigned_integer.
8586 * findvar.c (unsigned_pointer_to_address): Ditto.
8587 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8588 * dwarf2expr.c (dwarf2_read_address): Ditto.
8589 * frame.c (frame_pc_unwind): Update comment.
8590 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8591
8592 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8593
8594 * infptrace.c (detach): Call print_sys_errmsg rather than
8595 perror_with_name to issue warning message when errno is non-zero
8596 after calling ptrace detach.
8597
8598 2003-05-21 J. Brobecker <brobecker@gnat.com>
8599
8600 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8601 macro definitions from here...
8602 * hppa-tdep.c: ...to there.
8603
8604 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8605
8606 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8607 register_ptrace_addr(). Fix all callers.
8608
8609 2003-05-21 Andreas Schwab <schwab@suse.de>
8610
8611 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8612 dependencies.
8613 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8614 end.
8615 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8616 (_initialize_m68k_linux_tdep): New function.
8617 (m68k_linux_frame_saved_pc): Make static.
8618 (m68k_linux_extract_return_value): Likewise.
8619 (m68k_linux_store_return_value): Likewise.
8620 (m68k_linux_extract_struct_value_address): Likewise.
8621 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8622 Remove.
8623 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8624 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8625 (DEPRECATED_FRAME_SAVED_PC): Remove.
8626
8627 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8628
8629 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8630 regset numbering rather than our own.
8631
8632 2003-05-19 David Carlton <carlton@bactrian.org>
8633
8634 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8635
8636 2003-05-19 David Carlton <carlton@bactrian.org>
8637
8638 Partial fix for PR c++/827.
8639 * cp-support.h: Include symtab.h.
8640 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8641 * cp-namespace.c: Update contributors.
8642 (cp_lookup_symbol_nonlocal): New.
8643 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8644 (lookup_symbol_file): Ditto.
8645 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8646 * block.h: Declare block_scope, block_using, block_global_block.
8647 * block.c (block_scope): New.
8648 (block_using, block_global_block): Ditto.
8649 * Makefile.in (cp_support_h): Depend on symtab_h.
8650 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8651
8652 2003-05-19 David Carlton <carlton@bactrian.org>
8653
8654 * language.h (struct language_defn): Add 'la_value_of_this'
8655 and 'la_lookup_symbol_nonlocal' members.
8656 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8657 lookup_symbol_static, lookup_symbol_global,
8658 lookup_symbol_aux_block.
8659 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8660 if we should search fields of this and how to do static/global
8661 lookup.
8662 (lookup_symbol_aux_block): Make extern.
8663 (basic_lookup_symbol_nonlocal): New.
8664 (lookup_symbol_static, lookup_symbol_global): Ditto.
8665 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8666 'la_lookup_symbol_nonlocal' members.
8667 * c-lang.c (c_language_defn, cplus_language_defn)
8668 (asm_language_defn, minimal_language_defn): Ditto.
8669 * jv-lang.c (java_language_defn): Ditto.
8670 * language.c (unknown_language_defn, auto_language_defn)
8671 (local_language_defn): Ditto.
8672 * m2-lang.c (m2_language_defn): Ditto.
8673 * objc-lang.c (objc_language_defn): Ditto.
8674 * scm-lang.c (scm_language_defn): Ditto.
8675 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8676 * p-lang.c (pascal_language_defn): Ditto for both.
8677 * Makefile.in (f-lang.o): Depend on value_h.
8678 (p-lang.o): Ditto.
8679
8680 2003-05-19 David Carlton <carlton@bactrian.org>
8681
8682 * block.h: Declare block_static_block.
8683 * block.c (block_static_block): New.
8684 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8685 lookup_symbol_aux_local, calling block_static_block instead.
8686 (lookup_symbol_aux_local): Delete 'static_block' argument.
8687
8688 2003-05-19 David Carlton <carlton@bactrian.org>
8689
8690 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8691
8692 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8693
8694 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8695 register numbers mapping.
8696
8697 2003-05-18 Adam Fedor <fedor@gnu.org>
8698
8699 * symtab.c (completion_list_objc_symbol): New function.
8700 (make_symbol_completion_list): Use it to add ObjC symbols
8701 when looking though the list.
8702 (language_search_unquoted_string): New function.
8703 (make_file_symbol_completion_list): Use it.
8704
8705 2003-05-18 Andreas Schwab <schwab@suse.de>
8706
8707 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8708 dependencies.
8709 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8710 as m68k_linux_extract_return_value.
8711 (DEPRECATED_STORE_RETURN_VALUE): Define as
8712 m68k_linux_store_return_value.
8713 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8714 m68k_linux_extract_struct_value_address.
8715 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8716 get_next_frame, get_frame_base, get_frame_pc.
8717 (m68k_linux_frame_saved_pc): Use get_frame_base.
8718 (m68k_linux_extract_return_value): New function.
8719 (m68k_linux_store_return_value): New function.
8720 (m68k_linux_extract_struct_value_address): New function.
8721 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8722
8723 * c-exp.y (typebase): Remove duplicate occurence of
8724 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8725 of lookup_signed_typename.
8726
8727 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8728
8729 * dwarf2loc.c (find_location_expression): Change type of second
8730 argument to `size_t *'.
8731 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8732 for size variable.
8733
8734 2003-05-18 David Carlton <carlton@bactrian.org>
8735
8736 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8737 'linkage_name'. Add comment.
8738 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8739 'linkage_name'.
8740 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8741 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8742 (lookup_block_symbol): Ditto.
8743
8744 2003-05-16 Andrew Cagney <cagney@redhat.com>
8745
8746 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8747 * gdbarch.h, gdbarch.c: Re-generate.
8748 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8749 * TODO (REGISTER_BYTES): Delete reference.
8750 * alpha-tdep.c (alpha_gdbarch_init): Update.
8751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8752 * x86-64-tdep.c (x86_64_init_abi): Update.
8753 * vax-tdep.c (vax_gdbarch_init): Update.
8754 * v850-tdep.c (v850_gdbarch_init): Update.
8755 * sparc-tdep.c (sparc_gdbarch_init): Update.
8756 * sh-tdep.c (sh_gdbarch_init): Update.
8757 * s390-tdep.c (s390_gdbarch_init): Update.
8758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8759 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8760 (ns32k_gdbarch_init_32382): Update.
8761 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8762 * mcore-tdep.c (mcore_gdbarch_init): Update.
8763 * m68k-tdep.c (m68k_gdbarch_init): Update.
8764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8765 * ia64-tdep.c (ia64_gdbarch_init): Update.
8766 * i386-tdep.c (i386_gdbarch_init): Update.
8767 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8768 * hppa-tdep.c (hppa_gdbarch_init): Update.
8769 * h8300-tdep.c (h8300_gdbarch_init): Update.
8770 * frv-tdep.c (frv_gdbarch_init): Update.
8771 * cris-tdep.c (cris_gdbarch_init): Update.
8772 * avr-tdep.c (avr_gdbarch_init): Update.
8773 * arm-tdep.c (arm_gdbarch_init): Update.
8774 * sparc-tdep.c (sparc_pop_frame): Update.
8775 * rs6000-tdep.c (rs6000_pop_frame): Update.
8776 * remote.c (init_remote_state): Update.
8777 (remote_prepare_to_store): Update.
8778 * remote-vx.c (vx_prepare_to_store): Update.
8779 * remote-sds.c (sds_fetch_registers): Update.
8780 (sds_prepare_to_store): Update.
8781 * remote-array.c: Update.
8782 * regcache.c (init_legacy_regcache_descr): Update.
8783 (init_regcache_descr): Update.
8784 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8785 (mips_o64_extract_return_value): Update.
8786 * irix5-nat.c (fetch_core_registers): Update.
8787 * irix4-nat.c (fetch_core_registers): Update.
8788 * i386-tdep.h: Update.
8789 * hppa-tdep.c (pa_do_registers_info): Update.
8790 (pa_do_strcat_registers_info): Update.
8791 * cris-tdep.c (cris_register_bytes_ok): Update.
8792 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8793 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8794 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8795 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8796 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8797 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8798 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8799 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8800 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8801 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8802 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8803 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8804 (REGISTER_BYTES_OK): Update.
8805 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8806 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8807
8808 2003-05-16 Ian Lance Taylor <ian@airs.com>
8809
8810 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8811 (vax_print_insn, print_insn_arg): Remove static functions.
8812 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8813 print_insn_vax from opcodes library.
8814 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8815
8816 2003-05-15 Andrew Cagney <cagney@redhat.com>
8817
8818 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8819 * target.h (memory_breakpoint_from_pc): Delete declaration.
8820 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8821 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8822 * monitor.c (monitor_insert_breakpoint): Use
8823 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8824 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8825 * gdbarch.h, gdbarch.c: Re-generate.
8826 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8827 (sparc_gdbarch_init): Set breakpoint_from_pc to
8828 sparc_breakpoint_from_pc.
8829 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8830 (BREAKPOINT_FROM_PC): Define.
8831 (sparc_breakpoint_from_pc): Declare.
8832 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8833 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8834 (BREAKPOINT_FROM_PC): Define.
8835 (BREAKPOINT): Delete macro.
8836 * target.h: Update comment.
8837 * s390-tdep.c (s390_gdbarch_init): Update comments.
8838 * remote.c: Update comments.
8839 * remote-mips.c: Update comments.
8840 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8841 * mem-break.c: Update comment.
8842 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8843 (ia64_memory_insert_breakpoint): Update.
8844 * config/sparc/tm-sparc.h: Update comment.
8845 * config/pa/tm-hppa64.h: Update comment.
8846 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8847 (rs6000_breakpoint_from_pc): Update.
8848 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8849 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8850 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8851 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8852 (mips_breakpoint_from_pc): Update.
8853 (mips_dump_tdep): Update.
8854
8855 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8856 * minsyms.c (lookup_minimal_symbol): Inline
8857 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8858
8859 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8860 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8861 * p-lang.c (pascal_printstr): Ditto.
8862 * objc-lang.c (objc_printstr): Ditto.
8863 * m2-lang.c (m2_printstr): Ditto.
8864 * jv-valprint.c (java_print_value_fields): Ditto.
8865 * f-lang.c (f_printstr): Ditto.
8866 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8867 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8868 for repeat_count_threshold.
8869 * Makefile.in (cp-valprint.o): Update dependencies.
8870
8871 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8872
8873 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8874 (examine_prologue): Support looking through leaf functions, knowing
8875 they start with mov r2,r12. Support skipping over indirect stores
8876 of the input registers. Upon hitting a non-nop branch instruction
8877 or predicated instruction, bail out by setting lim_pc to the current
8878 pc value in the loop. At the end, if the lim_pc value is still
8879 beyond our calculated value and we have trust_limit set,
8880 use the lim_pc value.
8881
8882 2003-05-15 Andrew Cagney <cagney@redhat.com>
8883
8884 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8885 generic_find_dummy_frame.
8886 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8887 (deprecated_generic_find_dummy_frame): Update.
8888 (deprecated_read_register_dummy): Update.
8889 * frame.c (deprecated_generic_get_saved_register): Update.
8890
8891 2003-05-15 Theodore A. Roth <troth@openavr.org>
8892
8893 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8894 (avr_gdbarch_init): Set breakpoint_from_pc method.
8895
8896 2003-05-15 Andrew Cagney <cagney@redhat.com>
8897
8898 * regcache.c (build_regcache): Set deprecated_register_valid
8899 directly.
8900 (deprecated_grub_regcache_for_register_valid): Delete function.
8901 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8902 declaration.
8903
8904 2003-05-15 David Carlton <carlton@bactrian.org>
8905
8906 Committed by Elena Zannoni <ezannoni@redhat.com>
8907 * symtab.c (lookup_symbol_aux): Delete calls to
8908 lookup_symbol_aux_minsyms.
8909 (lookup_symbol_aux_minsyms): Comment out function and
8910 prototype. Delete lookup by mangled name.
8911
8912 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8913
8914 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8915 correctly indicate an empty stack and ``stack_allocated'' to the
8916 indicate the number of elements initially allocated.
8917 (dwarf_expr_grow_stack): Simplify method for computing new
8918 stack size. Don't loop infinitely if ``stack_len'' is zero.
8919 (execute_stack_op): Move ``ctx->in_reg'' initialization
8920 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8921 be used in conjuction with DW_OP_piece. Revise error message
8922 accordingly.
8923
8924 2003-05-14 Theodore A. Roth <troth@openavr.org>
8925
8926 * MAINTAINERS: Update my email address.
8927 * avr-tdep.c: Ditto.
8928
8929 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8930
8931 * symtab.h (enum domain_enum): Rename from namespace_enum.
8932 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8933 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8934 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8935 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8936 TYPES_NAMESPACE, METHODS_NAMESPACE.
8937 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8938 (struct symbol, struct partial_symbol): Rename field
8939 'namespace_enum namespace' to 'domain_enum domain'.
8940 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8941 Delete old define kludge for namespace.
8942
8943 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8944 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8945 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8946 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8947 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8948 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8949 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8950 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8951 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8952 occurrences of the above.
8953
8954 2003-05-14 Ian Lance Taylor <ian@airs.com>
8955
8956 * Makefile.in (install-only): Use $(SHELL) when running
8957 mkinstalldirs.
8958
8959 2003-05-13 Ian Lance Taylor <ian@airs.com>
8960
8961 * MAINTAINERS (write after approval): Add myself.
8962
8963 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8964 second and third arguments.
8965 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8966 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8967
8968 2003-05-13 Andrew Cagney <cagney@redhat.com>
8969
8970 * defs.h (store_address): Delete declaration.
8971 findvar.c (store_address): Delete function.
8972 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8973 store_unsigned_integer.
8974 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8975 * v850-tdep.c (v850_push_arguments): Ditto.
8976 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8977 * sh-tdep.c (sh64_get_saved_register): Ditto.
8978 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8979 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8980 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8981 (mips_get_saved_register): Ditto.
8982 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8983 (find_func_descr, ia64_push_arguments): Ditto.
8984 * i386-tdep.c (i386_push_arguments): Ditto.
8985 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8986 * frv-tdep.c (frv_push_arguments): Ditto.
8987 * frame.c (legacy_saved_regs_prev_register): Ditto.
8988 (deprecated_generic_get_saved_register): Ditto.
8989 * findvar.c (unsigned_address_to_pointer): Ditto.
8990 * dwarf2read.c (dwarf2_const_value): Ditto.
8991 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8992 * alpha-tdep.c (alpha_push_arguments): Ditto.
8993
8994 2003-05-12 J. Brobecker <brobecker@gnat.com>
8995
8996 * NEWS: Mention that the hppa-hpux port has been partially
8997 multiarched (32bit ABIT only, so far).
8998
8999 2003-05-11 Andrew Cagney <cagney@redhat.com>
9000
9001 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9002 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9003 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9004 sim/testsuite/sim/arm/misaligned2.ms, and
9005 sim/testsuite/sim/arm/misaligned3.ms.
9006 * disasm.h (struct ui_file): Add opaque struct declaration.
9007 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9008 * frame.h (struct ui_file): Ditto.
9009
9010 2003-05-11 Mark Kettenis <kettenis@gnu.org>
9011
9012 * value.h: Pretty print.
9013
9014 2003-05-10 Mark Kettenis <kettenis@gnu.org>
9015
9016 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9017
9018 2003-05-08 Andrew Cagney <cagney@redhat.com>
9019
9020 * regcache.h (max_register_size): Delete declaration.
9021 * regcache.c (max_register_size): Delete function.
9022 (struct regcache_descr): Delete field "max_register_size".
9023 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9024 registers fit in MAX_REGISTER_SIZE.
9025 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9026 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9027 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9028 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9029 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9030 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9031 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9032 * dve3900-rom.c, hppa-tdep.c: Ditto.
9033
9034 2003-05-08 David Carlton <carlton@math.stanford.edu>
9035
9036 * valops.c (push_word): Fix typo.
9037
9038 2003-05-08 Andrew Cagney <cagney@redhat.com>
9039
9040 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9041 * gdbarch.h: Re-generate.
9042 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9043 (legacy_max_register_raw_size): Delete declaration.
9044 * regcache.c (legacy_max_register_raw_size): Delete function.
9045 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9046 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9047 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9048 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9049 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9050 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9051 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9052 * findvar.c, dwarf2cfi.c: Ditto.
9053
9054 2003-05-08 Andrew Cagney <cagney@redhat.com>
9055
9056 * mips-tdep.c (read_signed_register): New function, moved to here
9057 from "regcache.c".
9058 (read_signed_register_pid): Ditto.
9059 * regcache.c (read_signed_register_pid): Delete function, moved to
9060 "mips-tdep.c".
9061 (read_signed_register): Ditto.
9062 * regcache.h (read_signed_register): Delete declaration.
9063 (read_signed_register_pid): Delete declaration.
9064
9065 2003-05-08 Andrew Cagney <cagney@redhat.com>
9066
9067 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9068 * gdbarch.h: Re-generate.
9069 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9070 (legacy_max_register_virtual_size): Delete declaration.
9071 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9072 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9073 * tracepoint.c (memrange_sortmerge): Ditto.
9074 * sparc-tdep.c (sparc_print_registers): Ditto.
9075 * regcache.c (legacy_max_register_virtual_size): Delete function.
9076
9077 2002-05-08 J. Brobecker <brobecker@gnat.com>
9078
9079 * fork-child.c (escape_bang_in_quoted_argument): New function.
9080 (fork_inferior): Escape '!' characters in quoted arguments
9081 only when needed.
9082
9083 2003-05-08 J. Brobecker <brobecker@gnat.com>
9084
9085 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9086 the language of the CU is not currently supported by GDB.
9087
9088 2003-05-08 J. Brobecker <brobecker@gnat.com>
9089
9090 * defs.h (language): Add language_minimal enum value.
9091 * c-lang.c (minimal_language_defn): New language definition.
9092 (_initialize_c_language): Add the new minimal language to the list
9093 of languages known to GDB.
9094
9095 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9096
9097 * frame.c (get_frame_type): Don't attempt to lazily initialize
9098 frame's unwinder for legacy frames.
9099
9100 2003-05-07 Andrew Cagney <cagney@redhat.com>
9101
9102 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9103 and "regcache" parameters.
9104 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9105
9106 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9107
9108 * dwarf2read.c (dwarf_decode_lines): Only use output of
9109 check_cu_functions() when calling record_line(). Do not update
9110 the current address.
9111
9112 2003-05-07 Andrew Cagney <cagney@redhat.com>
9113
9114 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9115 code.
9116
9117 2003-05-07 Jim Blandy <jimb@redhat.com>
9118
9119 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9120 'maint info symtabs' and 'maint info psymtabs'.
9121 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9122 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9123 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9124 Declarations updated.
9125 * maint.c (maintenance_list_command): Delete.
9126 (_initialize_maint_cmds): Update calls to add_cmd.
9127 * gdbcmd.h (maintenancelistlist): Delete declaration.
9128 * cli/cli-cmds.c (maintenancelistlist): Delete.
9129 (init_cmd_lists): Don't initialize it.
9130 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9131
9132 2003-05-07 Andrew Cagney <cagney@redhat.com>
9133
9134 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9135 "regcache".
9136 (d10v_print_registers_info): Update.
9137 (d10v_dmap_register, d10v_imap_register): Delete functions.
9138 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9139 and "imap_register".
9140 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9141 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9142 * arch-utils.c (generic_remote_translate_xfer_address): Add
9143 "regcache" and "gdbarch" parameters.
9144 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9145 parameter. Change class to multi-arch.
9146 * gdbarch.h, gdbarch.c: Re-generate.
9147 * remote.c (remote_xfer_memory): Use
9148 gdbarch_remote_translate_xfer_address.
9149
9150 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9151
9152 * infrun.c (prev_pc): Move declaration ahead of proceed().
9153 (proceed): Refresh prev_pc value before resuming.
9154 (stop_stepping): Remove code to refresh prev_pc.
9155
9156 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9157
9158 * nto-tdep.c: Removed stray comment.
9159
9160 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9161
9162 * i386-nto-tdep.c: Fix old K&R function definitions.
9163 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9164 Also change add_show_from_set() call to add_setshow_cmd().
9165 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9166
9167 2003-05-05 Andrew Cagney <cagney@redhat.com>
9168
9169 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9170 (fprint_dummy_frames): New function.
9171 (maintenance_print_dummy_frames): New function.
9172 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9173 * frame.c (fprint_frame_id): Make global.
9174 * frame.h (fprint_frame_id): Declare.
9175 * Makefile.in (dummy-frame.o): Update dependencies.
9176
9177 2003-05-05 Andrew Cagney <cagney@redhat.com>
9178
9179 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9180 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9181 SIZEOF_CALL_DUMMY_WORDS.
9182 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9183 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9184 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9185 CALL_DUMMY_BREAKPOINT_OFFSET.
9186 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9187 CALL_DUMMY_START_OFFSET.
9188 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9189 * gdbarch.h, gdbarch.c: Re-generate.
9190 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9191 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9192 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9193 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9194 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9195 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9196 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9197 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9198 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9199 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9200 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9201 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9202 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9203 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9204 * config/sparc/tm-sparc.h: Update.
9205
9206 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9207
9208 * configure.tgt: Add i[3456]86-*-nto*.
9209 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9210 * nto-tdep.c: New file. Neutrino target support routines.
9211 * nto-tdep.h: New file. Neutrino target header.
9212 * config/tm-qnxnto.h: New file.
9213 * config/i386/i386nto.mt: New file.
9214 * config/i386/tm-i386nto.h: New file.
9215
9216 2003-05-04 Andrew Cagney <cagney@redhat.com>
9217
9218 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9219 (load_infrun_state): Ditto.
9220 (struct thread_info): Drop "prev_func_name" field.
9221 * thread.c (load_infrun_state): Update.
9222 (save_infrun_state): Update.
9223 * infrun.c (prev_func_name): Delete variable.
9224 (init_wait_for_inferior): Do not clear prev_func_name.
9225 (stop_stepping, keep_going, context_switch): Do not swap
9226 prev_func_name.
9227 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9228 instead of PC_IN_SIGTRAMP.
9229
9230 2003-05-04 Andrew Cagney <cagney@redhat.com>
9231
9232 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9233 REGISTER_BYTE with register_offset_hack.
9234 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9235 that REGISTER_BYTE is consistent with the regcache.
9236 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9237 * gdbarch.h, gdbarch.c: Regenerate.
9238
9239 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9240
9241 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9242 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9243
9244 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9245
9246 2003-05-03 J. Brobecker <brobecker@gnat.com>
9247
9248 From Thierry Schneider <tpschneider1@yahoo.com>
9249 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9250 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9251 (mi-cmd-symbol.o): Add rule.
9252
9253 2003-05-03 Andrew Cagney <cagney@redhat.com>
9254
9255 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9256 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9257 * gdbarch.h, gdbarch.c: Re-generate.
9258 * d10v-tdep.c (d10v_push_dummy_code): New function.
9259 (d10v_gdbarch_init): Set push_dummy_code.
9260 * infcall.c (legacy_push_dummy_code): New function.
9261 (generic_push_dummy_code): New function.
9262 (push_dummy_code): New function.
9263 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9264 instead of dummy_addr, to push_dummy_call. Move call to
9265 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9266 switch.
9267 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9268
9269 2003-05-03 Andrew Cagney <cagney@redhat.com>
9270
9271 * disasm.h (print_insn): Declare.
9272 * disasm.c (init_gdb_disassemble_info): New function.
9273 (gdb_disassembly): Call init_gdb_disassemble_info.
9274 (gdb_print_insn): New function.
9275 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9276 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9277 * mcore-tdep.c: Include "disasm.h"
9278 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9279 * d10v-tdep.c: Include "disasm.h".
9280 (display_trace): Call gdb_print_insn, instead of print_insn.
9281 (print_insn): Delete function.
9282 * printcmd.c: Include "disasm.h".
9283 (print_insn): Delete function.
9284 (print_formatted): Call gdb_print_insn, instead of print_insn.
9285 * Makefile.in (printcmd.o): Update dependencies.
9286 (mcore-tdep.o, d10v-tdep.o): Ditto.
9287
9288 2003-05-02 Andrew Cagney <cagney@redhat.com>
9289
9290 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9291 PC_REGNUM, re-indent.
9292 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9293 PC_REGNUM isn't set.
9294
9295 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9296 * gdbarch.h, gdbarch.c: Re-generate.
9297 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9298 register_virtual_size, pc_regnum, or register_bytes.
9299 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9300 (d10v_register_type): Use D10V_PC_REGNUM.
9301 (d10v_print_registers_info, d10v_read_pc): Ditto.
9302 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9303 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9304
9305 2003-05-02 David Carlton <carlton@bactrian.org>
9306
9307 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9308 the name with mstrsave.
9309
9310 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9311
9312 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9313 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9314 (host_charset_name, target_charset_name): New vars for use by
9315 set/show commands.
9316 (host_charset_enum, target_charset_enum): New enums for set/show
9317 commands.
9318 (set_charset_sfunc, set_host_charset_sfunc,
9319 set_target_charset_sfunc): New functions.
9320 (set_host_charset, set_target_charset): Make static.
9321 (list_charsets, set_host_charset_command,
9322 set_target_charset_command): Delete functions.
9323 (show_charset_command): Rewrite as....
9324 (show_charset): Hook this up with the set/show command mechanism.
9325 (_initialize_charset): Change names of charsets to match the
9326 set/show enums. Use host_charset_name and target_charset_name.
9327 Use set/show mechanism for charset, host-charset, target-charset
9328 commands. Do not make 'show host-charset' and 'show
9329 target-charset' be aliases of 'show charset'.
9330
9331 * charset.h (set_host_charset, set_target_charset): Don't export,
9332 they are not used outside the file.
9333
9334 2003-05-01 Andrew Cagney <cagney@redhat.com>
9335
9336 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9337 (gdb_disassembly): Make "di" non static, always initialize and
9338 cleanup. Always use dis_asm_read_memory.
9339 (gdb_dis_asm_read_memory): Delete function.
9340
9341 2003-05-01 Andrew Cagney <cagney@redhat.com>
9342
9343 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9344 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9345
9346 2003-04-30 Andrew Cagney <cagney@redhat.com>
9347
9348 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9349 "tm_print_insn_info".
9350 (TARGET_PRINT_INSN_INFO): Delete macro.
9351 (dis_asm_read_memory): Delete function declaration.
9352 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9353 (tm_print_insn_info): Delete variable definition.
9354 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9355 * gdbarch.h, gdbarch.c: Re-generate.
9356 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9357 "deprecated_tm_print_insn_info".
9358 * mcore-tdep.c (mcore_dump_insn): Ditto.
9359 * mips-tdep.c (mips_gdbarch_init): Ditto.
9360 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9361 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9362 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9363 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9364 instead of TARGET_PRINT_INSN_INFO, add comment.
9365 * s390-tdep.c (s390_get_frame_info): Instead of
9366 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9367 (s390_check_function_end, s390_is_sigreturn): Ditto.
9368 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9369 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9370 * disasm.c: Include "gdbcore.h".
9371 (_initialize_disasm): New function, initialize
9372 "deprecated_tm_print_insn_info".
9373 (deprecated_tm_print_insn_info): New variable.
9374 (dis_asm_read_memory): Moved from "corefile.c", made static.
9375 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9376 * Makefile.in (disasm.o): Update dependencies.
9377
9378 2003-04-30 Andrew Cagney <cagney@redhat.com>
9379
9380 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9381
9382 2003-04-29 Adam Fedor <fedor@gnu.org>
9383
9384 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9385 * infcall.c (find_function_addr): Make non-static.
9386 * infcall.h (find_function_addr): Declare.
9387 * Makefile.in (eval.o): Update dependencies.
9388
9389 2003-04-28 Adam Fedor <fedor@gnu.org>
9390
9391 * symtab.c (symbol_find_demangled_name): Check for and demangle
9392 ObjC symbols.
9393 (symbol_init_demangled_name): Init for language_objc as well.
9394
9395 2003-04-28 Andrew Cagney <cagney@redhat.com>
9396
9397 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9398 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9399 * gdbarch.h, gdbarch.c: Re-generate.
9400 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9401 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9402 * inferior.h (deprecated_read_fp): Rename read_fp.
9403 (generic_target_read_fp): Delete declaration.
9404 * regcache.c (generic_target_read_fp): Delete function.
9405 (deprecated_read_fp): Replace read_fp, use
9406 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9407 * d10v-tdep.c (d10v_read_fp): Delete function.
9408 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9409
9410 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9411 deprecated_target_read_fp to generic_target_read_fp.
9412 * sh-tdep.c (sh_gdbarch_init): Ditto.
9413 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9415 * frv-tdep.c (frv_gdbarch_init): Ditto.
9416
9417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9418 deprecated_fp_regnum.
9419 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9420 * vax-tdep.c (vax_gdbarch_init): Ditto.
9421 * v850-tdep.c (v850_gdbarch_init): Ditto.
9422 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9423 * sh-tdep.c (sh_gdbarch_init): Ditto.
9424 * s390-tdep.c (s390_gdbarch_init): Ditto.
9425 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9426 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9427 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9428 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9430 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9431 * i386-tdep.c (i386_gdbarch_init): Ditto.
9432 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9433 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9434 * frv-tdep.c (frv_gdbarch_init): Ditto.
9435 * cris-tdep.c (cris_gdbarch_init): Ditto.
9436 * avr-tdep.c (avr_gdbarch_init): Ditto.
9437 * arm-tdep.c (arm_gdbarch_init): Ditto.
9438 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9439
9440 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9441 * v850-tdep.c (v850_gdbarch_init): Ditto.
9442 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9443 * sh-tdep.c (sh_gdbarch_init): Ditto.
9444 * s390-tdep.c (s390_gdbarch_init): Ditto.
9445 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9446 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9447 * mips-tdep.c (mips_gdbarch_init): Ditto.
9448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9449 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9450 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9451 * frv-tdep.c (frv_gdbarch_init): Ditto.
9452 * avr-tdep.c (avr_gdbarch_init): Ditto.
9453 * arm-tdep.c (arm_gdbarch_init): Ditto.
9454
9455 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9456 DEPRECATED_FP_REGNUM.
9457 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9458 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9459 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9460 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9461 (sparc32_register_virtual_type): Ditto.
9462 * sh-tdep.c (sh64_frame_chain): Ditto.
9463 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9464 (sh_nofp_frame_init_saved_regs): Ditto.
9465 (sh64_nofp_frame_init_saved_regs): Ditto.
9466 (sh_fp_frame_init_saved_regs): Ditto.
9467 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9468 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9469 * procfs.c (procfs_fetch_registers): Ditto.
9470 (procfs_store_registers): Ditto.
9471 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9472 (store_inferior_registers, fetch_core_registers): Ditto.
9473 (fetch_kcore_registers, clear_regs): Ditto.
9474 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9475 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9476 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9477 * nlm/i386.c (do_status): Ditto.
9478 * mipsv4-nat.c (supply_gregset): Ditto.
9479 * mips-tdep.c: Ditto for comments.
9480 * mips-nat.c (fetch_inferior_registers): Ditto.
9481 (store_inferior_registers, fetch_core_registers): Ditto.
9482 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9483 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9484 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9485 (i386_do_pop_frame, i386_register_type): Ditto.
9486 * hppa-tdep.c (hppa_frame_chain): Ditto.
9487 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9488 (hppa_pop_frame, hppa_read_fp): Ditto.
9489 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9490 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9491 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9492 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9493 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9494 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9495 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9496 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9497 * blockframe.c: Ditto for comments.
9498 * arch-utils.h: Ditto for comments.
9499 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9500 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9501 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9502 * alpha-tdep.h: Ditto for comments.
9503 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9504 (alpha_cannot_store_register): Ditto.
9505 (alpha_push_dummy_frame): Ditto.
9506 * alpha-nat.c (supply_gregset): Ditto.
9507
9508 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9509 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9510 * config/sparc/tm-sparc.h: Update comment.
9511
9512 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9513 deprecated_read_fp instead of TARGET_READ_FP.
9514 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9515 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9516 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9517 deprecated_read_fp instead of read_fp.
9518 * s390-tdep.c (s390_push_arguments): Ditto.
9519 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9520 * frame.h: Ditto in comments.
9521 * frame.c (legacy_get_prev_frame): Ditto.
9522 * dummy-frame.c (dummy_frame_this_id): Ditto.
9523 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9524
9525 2003-04-28 Andrew Cagney <cagney@redhat.com>
9526
9527 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9528 * gdbarch.h, gdbarch.c: Re-generate.
9529 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9530 * vax-tdep.c (_initialize_vax_tdep): Update.
9531 * v850-tdep.c (_initialize_v850_tdep): Update.
9532 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9533 * s390-tdep.c (_initialize_s390_tdep): Update.
9534 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9535 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9536 * mips-tdep.c (_initialize_mips_tdep): Update.
9537 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9538 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9539 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9540 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9541 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9542 * frv-tdep.c (_initialize_frv_tdep): Update.
9543 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9544 (_initialize_cris_tdep): Update.
9545 * arch-utils.c (legacy_print_insn): Update.
9546 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9547
9548 2003-04-26 Adam Fedor <fedor@gnu.org>
9549
9550 * linespec.c (decode_objc): New function to decode ObjC calls
9551 (decode_line_1): Check for ObjC calls (using decode_objc)
9552 * Makefile (linespec.o): Update dependencies.
9553
9554 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9555
9556 * breakpoint.h (struct breakpoint_ops): New.
9557 (struct breakpoint): Add ops member.
9558
9559 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9560 (mention): Use new breakpoint ops member.
9561 (set_raw_breakpoint): Initialize ops field to NULL.
9562 (print_exception_catchpoint, print_one_exception_catchpoint)
9563 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9564 (gnu_v3_exception_catchpoint_ops): New.
9565 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9566
9567 2003-04-25 Adam Fedor <fedor@gnu.org>
9568
9569 * Makefile.in (COMMON_OBS): Add objc-lang.o
9570
9571 2003-04-25 Andrew Cagney <cagney@redhat.com>
9572
9573 * d10v-tdep.c (print_insn): Delete function.
9574 (display_trace): Use TARGET_PRINT_INSN.
9575 (_initialize_d10v_tdep): Do not set tm_print_insn.
9576 (d10v_gdbarch_init): Set print_insn.
9577
9578 2003-04-25 Andrew Cagney <cagney@redhat.com>
9579
9580 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9581 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9582 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9583 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9584 (nr_dmap_regs, a0_regnum): ... new functions.
9585 (d10v_print_registers_info): Use a0_regnum, use register_size.
9586 (d10v_register_byte): Delete function.
9587 (d10v_register_raw_size): Delete function.
9588 (d10v_register_type): Use a0_regnum.
9589 (d10v_print_registers_info): Use a0_regnum.
9590 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9591 (d10v_gdbarch_init): Do not set register_byte or
9592 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9593 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9594 extract_address.
9595 (trace_command): Use XCALLOC.
9596 (print_insn): Delete reference to tm_print_insn.
9597 (saved_regs_unwinder): Use store_unsigned_integer instead of
9598 store_address.
9599 * frame.h (FRAME_OBSTACK_CALLOC): Define
9600
9601 2003-04-25 David Carlton <carlton@bactrian.org>
9602
9603 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9604
9605 2003-04-24 Adam Fedor <fedor@gnu.org>
9606
9607 * objc-lang.c: Include "valprint.h"
9608 * Makefile.in (objc-lang.o): Update dependencies.
9609
9610 2003-04-24 Adam Fedor <fedor@gnu.org>
9611
9612 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9613 architecture dependant compilation and mark as unimplemented
9614 (until they get put in the gdbarch vector).
9615
9616 2003-04-23 David Carlton <carlton@bactrian.org>
9617
9618 * cp-support.c (cp_find_first_component): Accept 'operator' in
9619 more locations.
9620
9621 2003-04-23 Andrew Cagney <cagney@redhat.com>
9622
9623 * infcall.c (call_function_by_hand): Eliminate redundant
9624 indentation. Move "saved_async" and "old_cleanups" to where they
9625 are needed.
9626
9627 2003-04-23 Andrew Cagney <cagney@redhat.com>
9628
9629 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9630 and "buffer". Move the "name" code to where it is needed.
9631
9632 2003-04-23 Andrew Cagney <cagney@redhat.com>
9633
9634 * infcall.c (call_function_by_hand): Move variables "start_sp",
9635 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9636 code to ON_STACK switch branch.
9637
9638 2003-04-23 Andrew Cagney <cagney@redhat.com>
9639
9640 * infcall.c (call_function_by_hand): Make declaration of "i",
9641 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9642 lint.
9643
9644 2003-04-23 Andrew Cagney <cagney@redhat.com>
9645
9646 * infcall.c (call_function_by_hand): Delete variable
9647 "n_method_args". Localize "param_type"'s declaration to the loop
9648 that it is used. Reinstate code assigning to said variable -
9649 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9650 Rationalize code using "param_type".
9651
9652 2003-04-22 Andrew Cagney <cagney@redhat.com>
9653
9654 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9655 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9656 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9657 to DEPRECATED_PUSH_RETURN_ADDRESS.
9658
9659 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9660
9661 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9662 on the DWARF2 register number prior to fetching a register.
9663
9664 2003-04-22 J. Brobecker <brobecker@gnat.com>
9665
9666 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9667 Update all the tests using SOFT_FLOAT considering the fact that
9668 this macro was always set to 0.
9669 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9670 considering the fact that this macro was always set to 0.
9671 * hppa-tdep.h (hppa_store_return_value): Likewise.
9672 (hppa_extract_return_value): Likewise.
9673
9674 2003-04-22 J. Brobecker <brobecker@gnat.com>
9675
9676 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9677 the hppa-pro target only.
9678
9679 2003-04-21 J. Brobecker <brobecker@gnat.com>
9680
9681 Ongoing multi-arch conversion effort for HP/UX:
9682 * config/pa/tm-hppa.h: Move all macro that are no longer
9683 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9684 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9685
9686 2003-04-21 J. Brobecker <brobecker@gnat.com>
9687
9688 * config/pa/tm-hppa.h: Obsolete a section that was only used
9689 for hppa-pro.
9690
9691 2003-04-21 J. Brobecker <brobecker@gnat.com>
9692
9693 Ongoing multi-arch conversion for HP/UX.
9694 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9695 if already defined (allows hppa64 to stay non-multiarched for now).
9696 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9697
9698 2003-04-21 Andrew Cagney <cagney@redhat.com>
9699
9700 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9701
9702 2003-04-21 Andrew Cagney <cagney@redhat.com>
9703
9704 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9705 "i386_num_mmx_regs".
9706
9707 2003-04-21 Andrew Cagney <cagney@redhat.com>
9708
9709 * infcall.c: New file.
9710 * infcall.h: New file.
9711 * valarith.c: Include "infcall.h".
9712 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9713 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9714 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9715 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9716 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9717 (SFILES): Add "infcall.c"
9718 (COMMON_OBS): Add "infcall.o".
9719 (infcall.o): Specify dependencies.
9720 * value.h (call_function_by_hand): Delete declaration.
9721 * inferior.h (run_stack_dummy): Delete declaration.
9722 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9723 (run_stack_dummy): Move to "infcall.c", merged into
9724 call_function_by_hand.
9725 * valops.c (call_function_by_hand): Moved to "infcall.c".
9726 (find_function_addr, value_arg_coerce): Ditto.
9727 (unwindonsignal_p, coerce_float_to_double): Ditto.
9728 (_initialize_valops): Move "set/show coerce-float-to-double", and
9729 "set/show unwindonsignal" commands to "infcall.c".
9730 * v850-tdep.c, target.h: Update comments.
9731 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9732 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9733 (sh64_init_extra_frame_info): Update comments.
9734 * mn10300-tdep.c: Update comments.
9735 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9736 * config/sparc/tm-sparc.h: Update comments.
9737 * breakpoint.h: Update comments.
9738 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9739 * arm-tdep.c: Update comment.
9740
9741 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9742
9743 * i386-tdep.c (i386_num_register_names): New variable.
9744 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9745 (MM0_REGNUM): Remove redundant parentheses in define.
9746 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9747 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9748 i386_mxcsr_regnum_p): Remove redundant parentheses.
9749 (i386_register_name): Use i386_num_register_names.
9750
9751 * i386-tdep.c (i386_extract_return_value,
9752 i386_store_return_value): Correct check for availability of
9753 floating-point registers.
9754
9755 * i386-tdep.c (i386_frame_num_args): Remove function.
9756 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9757
9758 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9759 mmx_regnum_to_fp_regnum. Adjust all callers.
9760
9761 * i386-tdep.c (i386_get_longjmp_target): Use
9762 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9763 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9764 extract_address.
9765
9766 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9767
9768 * core-regset.c: Update comments to reflect reality. Re-order
9769 includes.
9770 (fetch_core_registers): Use switch instead of if. Remove
9771 redundant prototype.
9772
9773 2003-04-18 Jim Blandy <jimb@redhat.com>
9774
9775 * s390-tdep.c (s390_frame_align): New function.
9776 (s390_gdbarch_init): Register it with the gdbarch object.
9777
9778 2003-04-17 Richard Henderson <rth@redhat.com>
9779
9780 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9781
9782 2003-04-17 Michael Snyder <msnyder@redhat.com>
9783 Karen Bennet <bennet@redhat.com>
9784
9785 Committed by Elena Zannoni <ezannoni@redhat.com>
9786 * gdb_gcore.sh: New script to create a core dump of a process.
9787
9788 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9789
9790 * values.c (value_being_returned): Don't fetch the return
9791 value if the return type is void.
9792
9793 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9794
9795 * thread-db.c: Reindented.
9796
9797 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9798
9799 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9800 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9801 as types.
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9828
9829 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9830 the size of ``long double'' to 16, instead of 8.
9831
9832 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9833
9834 * i386-linux-nat.c: Add some whitespace to make things more
9835 readable.
9836 (fetch_register, store_register, fetch_inferior_registers,
9837 store_inferior_registers): Get rid of assignment in if-statement.
9838 (store_register): Fix typo in error message.
9839
9840 2003-04-16 Andrew Cagney <cagney@redhat.com>
9841
9842 * utils.c (xmmalloc): Always allocate something, matches
9843 libiberty/xmalloc's semantics.
9844 (xmrealloc, xmcalloc): Ditto.
9845
9846 2003-04-16 Andrew Cagney <cagney@redhat.com>
9847
9848 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9849 update comments.
9850 (get_frame_type): Initialize unwind and type when needed.
9851 (get_frame_id, frame_register_unwind): Ditto.
9852
9853 2003-04-16 Andrew Cagney <cagney@redhat.com>
9854
9855 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9856 obsolete.
9857 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9858 * sparcl-stub.c: Obsolete file.
9859 * config/sparc/tm-sparclet.h: Obsolete file.
9860 * sparclet-stub.c: Obsolete file.
9861 * sparclet-rom.c: Obsolete file.
9862 * sparcl-tdep.c: Obsolete file.
9863 * config/sparc/tm-sparclite.h: Obsolete file.
9864 * config/sparc/sparclite.mt: Obsolete file.
9865 * config/sparc/sparclet.mt: Obsolete file.
9866 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9867 sparc86x-*-* obsolete.
9868
9869 2003-04-15 David Carlton <carlton@math.stanford.edu>
9870
9871 * Makefile.in (SFILES): Add cp-namespace.c.
9872 (COMMON_OBS): Add cp-namespace.o.
9873 (block.o): Depend on gdb_obstack_h and cp_support_h.
9874 (buildsym.o): Depend on cp_support_h.
9875 (cp-namespace.o): New.
9876 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9877 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9878 (dwarf2read.o): Depend on cp_support_h.
9879 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9880 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9881 processing_current_namespace.
9882 (read_namespace): Update processing_current_namespace; check for
9883 anonymous namespaces.
9884 (dwarf2_name): New function.
9885 (dwarf2_extension): Ditto.
9886 * cp-support.h: Update copyright, contributors.
9887 Add inclusion guards.
9888 Add opaque declaration for structs obstack, block, symbol.
9889 (struct using_direct): New struct.
9890 Add declarations for cp_find_first_component,
9891 cp_entire_prefix_len, processing_has_namespace_info,
9892 processing_current_namespace, cp_is_anonymous,
9893 cp_add_using_directive, cp_initialize_namespace,
9894 cp_finalize_namespace, cp_set_block_scope,
9895 cp_scan_for_anonymous_namespaces.
9896 * cp-namespace.c: New file.
9897 * cp-support.c: Update copyright.
9898 Include ctype.h, gdb_assert.h, gdbcmd.h.
9899 New variable maint_cplus_cmd_list.
9900 (cp_find_first_component): New function.
9901 (cp_entire_prefix_len, maint_cplus_command)
9902 (first_component_command, _initialize_cp_support): Ditto.
9903 * buildsym.c: Include cp-support.h.
9904 New variable using_list.
9905 (add_symbol_to_list): Check for anonymous namespaces.
9906 (finish_block): Set block's scope.
9907 (start_symtab): Initialize C++ namespace support.
9908 (end_symtab): Finalize C++ namespace support.
9909 * block.h: Add opaque declarations for structs
9910 block_namespace_info, using_direct, and obstack.
9911 Add declarations for block_set_scope and block_set_using.
9912 (struct block): Add 'language_specific' member.
9913 (BLOCK_NAMESPACE): New macro.
9914 * block.c: Include gdb_obstack.h and cp-support.h.
9915 (struct block_namespace_info): New struct.
9916 (block_set_scope): New function.
9917 (block_set_using, block_initialize_namespace): Ditto.
9918
9919 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9920
9921 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9922 (locate_base): Return early if there aren't any link map offsets.
9923 (svr4_solib_create_inferior_hook): Warn if shared library support
9924 is unavailable.
9925
9926 2003-04-14 David Carlton <carlton@math.stanford.edu>
9927
9928 * symtab.c (symbol_set_names): Add prefix when storing Java names
9929 in hash table. Fix for PR java/1039.
9930
9931 2003-04-14 David Carlton <carlton@math.stanford.edu>
9932
9933 * symtab.c (symbol_set_names): Rename 'name' arg to
9934 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9935 * symtab.h: Change 'name' argument in declaration of
9936 symbol_set_names to 'linkage_name'.
9937 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9938
9939 2003-04-14 Andrew Cagney <cagney@redhat.com>
9940
9941 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9942 return the fully sign-extended register value.
9943 (get_frame_pointer): Ditto.
9944 (mips_pop_frame): Initialize "proc_desc" after checking for a
9945 dummy frame.
9946
9947 2003-04-14 Andrew Cagney <cagney@redhat.com>
9948
9949 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9950 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9951 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9952 (mips_push_register): Delete function.
9953 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9954 PUSH_FP_REGNUM.
9955
9956 2003-04-14 Jim Blandy <jimb@redhat.com>
9957
9958 * symmisc.c: #include "gdb_regex.h".
9959 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9960 functions.
9961 * maint.c (maintenance_list_command): New function.
9962 (_initialize_maint_cmds): Register the above as commands.
9963 * symtab.h (maintenance_list_symtabs,
9964 maintenance_list_psymtabs): New declarations.
9965 * cli/cli-cmds.c (maintenancelistlist): New variable.
9966 (init_cmd_lists): Initialize it.
9967 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9968 * gdbcmd.h (maintenancelistlist): New declaration.
9969 * Makefile.in (symmisc.o): Update dependencies.
9970
9971 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9972
9973 * s390-nat.c: Include asm/types.h for addr_t.
9974
9975 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9976
9977 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9978 actually incoming type.
9979
9980 2003-04-13 Andrew Cagney <cagney@redhat.com>
9981
9982 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9983 get_next_frame and get_frame_saved_regs.
9984
9985 2003-04-13 Andrew Cagney <cagney@redhat.com>
9986
9987 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9988 of gdbarch_num_regs.
9989
9990 2003-04-13 Andrew Cagney <cagney@redhat.com>
9991
9992 * frame.h: Mention what replaced what in "struct frame_info".
9993 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9994 deprecated_update_frame_base_hack and
9995 deprecated_update_frame_pc_hack.
9996 * hppa-tdep.c: Ditto.
9997
9998 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9999
10000 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10001 to read_reg and update its comment. Remove regnum member.
10002 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10003 Don't call read_reg when setting in_reg. Call read_reg to get
10004 the frame base if it's in a register. Return the register number
10005 on the stack instead of in the context. Remove extra arguments
10006 to read_reg.
10007 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10008 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10009 the register number on the expression stack.
10010 (needs_frame_read_reg): Remove extra arguments.
10011
10012 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10013
10014 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10015 made non-static.
10016 (execute_stack_op): All callers updated.
10017 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10018 * dwarf2loc.c (find_location_expression): New function.
10019 (dwarf_expr_frame_base): Call it.
10020 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10021 (dwarf2_tracepoint_var_ref): New function, broken out from
10022 locexpr_tracepoint_var_ref.
10023 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10024 Make static.
10025 (loclist_read_variable, loclist_read_needs_frame): New functions.
10026 (loclist_describe_location, loclist_tracepoint_var_ref): New
10027 functions.
10028 (dwarf2_loclist_funcs): New struct location_funcs.
10029 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10030 (struct dwarf2_locexpr_baton): Add comments.
10031 (dwarf2_loclist_funcs): New extern.
10032 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10033 base_address and base_known.
10034 (dwarf_loc_buffer): New variable.
10035 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10036 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10037 (dwarf2_has_info): Initialize dwarf_loc_offset.
10038 (dwarf2_build_psymtabs): Read in .debug_loc.
10039 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10040 DWARF_LOC_SIZE.
10041 (psymtab_to_symtab_1): Likewise. Move base address calculation
10042 here, from...
10043 (dwarf2_get_pc_bounds): ... here. Use the base address from
10044 cu_header.
10045 (dwarf2_symbol_mark_computed): Handle location lists.
10046
10047 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10048
10049 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10050 if the linkage name demangled successfully.
10051
10052 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10053
10054 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10055 disassmbly_flavour): Removed.
10056
10057 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10058
10059 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10060
10061 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10062
10063 2003-04-12 Andrew Cagney <cagney@redhat.com>
10064
10065 * frame.h (struct frame_info): Move definition from here ...
10066 * frame.c (struct frame_info): ... to here.
10067
10068 2003-04-12 Andrew Cagney <cagney@redhat.com>
10069
10070 * gdbthread.h (save_infrun_state): Delete parameter
10071 "prev_func_start".
10072 (struct thread_info): Delete field "prev_func_start".
10073 (load_infrun_state): Ditto.
10074 * thread.c (load_infrun_state, save_infrun_state): Update.
10075 * infrun.c (prev_func_start): Delete variable.
10076 (context_switch, init_wait_for_inferior): Update.
10077 (stop_stepping, keep_going): Update.
10078
10079 2003-04-12 Andrew Cagney <cagney@redhat.com>
10080
10081 * gdbarch.sh: Add missing opaque declarations.
10082 * gdbarch.h: Regnerate.
10083 * symtab.h: Add missing opaque declarations.
10084 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10085 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10086 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10087 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10088 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10089 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10090 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10091 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10092 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10093 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10094 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10095 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10096 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10097
10098 2003-04-11 Andrew Cagney <cagney@redhat.com>
10099
10100 * frame.c (get_frame_id): Return this frame's "id".
10101 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10102 function start.
10103 (legacy_saved_regs_this_id): Replace function body with
10104 internal-error.
10105 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10106 FRAME_OBSTACK_ZALLOC.
10107 (create_new_frame): Mark the frame ID as valid.
10108
10109 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10110
10111 * Makefile.in (libbfd_h): Added missing setting.
10112 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10113 according to the selected ABI.
10114
10115 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10116
10117 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10118
10119 2003-04-11 Andrew Cagney <cagney@redhat.com>
10120
10121 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10122 SAVED_PC_AFTER_CALL.
10123 * gdbarch.h, gdbarch.c: Regenerate.
10124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10125 * x86-64-tdep.c (x86_64_init_abi): Update.
10126 * vax-tdep.c (vax_gdbarch_init): Update.
10127 * v850-tdep.c (v850_gdbarch_init): Update.
10128 * sparc-tdep.c (sparc_gdbarch_init): Update.
10129 * sh-tdep.c (sh_gdbarch_init): Update.
10130 * s390-tdep.c (s390_gdbarch_init): Update.
10131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10132 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10133 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10134 * mips-tdep.c (mips_gdbarch_init): Update.
10135 * mcore-tdep.c (mcore_gdbarch_init): Update.
10136 * m68k-tdep.c (m68k_gdbarch_init): Update.
10137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10138 * ia64-tdep.c (ia64_gdbarch_init): Update.
10139 (ia64_saved_pc_after_call): Update declaration.
10140 * i386ly-tdep.c (i386lynx_init_abi): Update.
10141 * i386-tdep.c (i386_gdbarch_init): Update.
10142 * hppa-tdep.c (hppa_gdbarch_init): Update.
10143 * h8300-tdep.c (h8300_gdbarch_init): Update.
10144 * frv-tdep.c (frv_gdbarch_init): Update.
10145 * cris-tdep.c (cris_gdbarch_init): Update.
10146 * avr-tdep.c (avr_gdbarch_init): Update.
10147 * arm-tdep.c (arm_gdbarch_init): Update.
10148 * alpha-tdep.c (alpha_gdbarch_init): Update.
10149 * ns32knbsd-nat.c (frame_num_args): Update.
10150 * ns32k-tdep.c (umax_frame_num_args): Update.
10151 * mips-tdep.c (mips_init_frame_pc_first): Update.
10152 * infrun.c (step_over_function): Update.
10153 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10154 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10155 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10156 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10157 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10158 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10159 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10160 * arch-utils.c (init_frame_pc_default): Update.
10161 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10162 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10163 declaration.
10164
10165 2003-04-11 Andrew Cagney <cagney@redhat.com>
10166
10167 * i387-tdep.c: Update copyright.
10168 (i387_to_double): Delete function.
10169 (double_to_i387): Delete function.
10170
10171 2003-04-10 Andrew Cagney <cagney@redhat.com>
10172
10173 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10174 frame's function's address. Simplify.
10175 (d10v_frame_unwind_cache): Check that the frame's function is
10176 non-zero.
10177
10178 2003-04-10 Jim Blandy <jimb@redhat.com>
10179
10180 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10181 call to set_gdbarch_deprecated_push_arguments.
10182
10183 2003-04-10 Andrew Cagney <cagney@redhat.com>
10184
10185 * frame.c (fprint_frame_id): New function.
10186 (fprint_frame_type, fprint_frame): New function.
10187 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10188 (create_sentinel_frame, get_frame_id): Ditto.
10189 (frame_id_p, frame_id_eq): Ditto.
10190 (frame_id_inner, create_new_frame): Ditto.
10191 (legacy_get_prev_frame, get_prev_frame): Ditto.
10192 (deprecated_update_frame_pc_hack): Ditto.
10193 (frame_register_unwind): Ditto.
10194 (deprecated_update_frame_base_hack): Ditto.
10195
10196 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10197
10198 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10199 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10200 frame_chain function.
10201 * Makefile.in: Add dependencies due to above change.
10202
10203 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10204
10205 * blockframe.c (legacy_frame_chain_valid): Move call to
10206 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10207 inside_entry_file.
10208
10209 2003-04-09 Andrew Cagney <cagney@redhat.com>
10210
10211 * frame.h (struct frame_id): Replace "pc" and "base" with
10212 "stack_addr" and "code_addr". Update comments.
10213 (frame_id_build): Update parameter names and comment.
10214 (struct frame_info): Replace "id_p" and "id" with "this_id".
10215 * dummy-frame.c (dummy_frame_this_id): Update.
10216 * breakpoint.c (print_one_breakpoint): Update.
10217 * frame.c (get_frame_id): Update.
10218 (get_frame_base, frame_id_build): Update.
10219 (create_sentinel_frame, legacy_get_prev_frame): Update.
10220 (deprecated_update_frame_base_hack): Update.
10221 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10222 (frame_id_inner): Ditto.
10223
10224 2003-04-09 Andrew Cagney <cagney@redhat.com>
10225
10226 * defs.h (gdb_print_host_address): Make "addr" parameter a
10227 pointer constant.
10228 * utils.c (gdb_print_host_address): Update.
10229
10230 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10231
10232 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10233 register number for R0 is 0.
10234
10235 2003-04-09 J. Brobecker <brobecker@gnat.com>
10236
10237 * frame.h (struct gdbarch): Add opaque structure definition
10238 to avoid a compilation warning on LynxOS 4.0.
10239
10240 2003-04-09 Andrew Cagney <cagney@redhat.com>
10241
10242 * frame.h (struct frame_info): Delete field "pc". Replace
10243 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10244 structure.
10245 * frame.c (frame_pc_unwind): Update.
10246 (create_sentinel_frame): Do not set "pc".
10247 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10248 (get_frame_pc): Call frame_pc_unwind.
10249 (deprecated_update_frame_pc_hack): Update.
10250 (create_new_frame): Use "pc" not "->pc".
10251
10252 2003-04-09 Andrew Cagney <cagney@redhat.com>
10253
10254 * frame.c (get_frame_id): Eliminate code updating "frame".
10255 (legacy_get_prev_frame): Ditto.
10256 (get_frame_base): Return id.base directly.
10257 (deprecated_update_frame_base_hack): Update "id.base".
10258 * frame.h (struct frame_info): Delete field "frame".
10259
10260 2003-04-09 Andrew Cagney <cagney@redhat.com>
10261
10262 * NEWS: Mention that the "Sequent family" is obsolete.
10263 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10264 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10265 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10266 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10267 * config/i386/tm-ptx4.h: Obsolete file.
10268 * config/i386/tm-ptx.h: Obsolete file.
10269 * symm-tdep.c: Obsolete file.
10270 * config/i386/symmetry.mt: Obsolete file.
10271 * config/i386/tm-symmetry.h: Obsolete file.
10272 * symm-nat.c: Obsolete file.
10273 * config/i386/nm-symmetry.h: Obsolete file.
10274 * config/i386/xm-symmetry.h: Obsolete file.
10275 * config/i386/symmetry.mh: Obsolete file.
10276 * config/i386/nm-ptx4.h: Obsolete file.
10277 * config/i386/ptx4.mh: Obsolete file.
10278 * config/i386/ptx.mt: Obsolete file.
10279 * config/i386/ptx.mh: Obsolete file.
10280 * config/i386/xm-ptx4.h: Obsolete file.
10281 * config/i386/xm-ptx.h: Obsolete file.
10282
10283 2003-04-09 Andrew Cagney <cagney@redhat.com>
10284
10285 Obsolete mips*-*-mach3*.
10286 * NEWS: Mention that mips*-*-mach3* is obsolete.
10287 * m3-nat.c: Obsolete file.
10288 * config/nm-m3.h: Obsolete file.
10289 * config/mips/tm-mipsm3.h: Obsolete file.
10290 * config/mips/mipsm3.mt: Obsolete file.
10291 * config/mips/mipsm3.mh: Obsolete file.
10292 * config/mips/xm-mipsm3.h: Obsolete file.
10293 * mipsm3-nat.c: Obsolete file.
10294 * configure.host: Obsolete mips-dec-mach3*.
10295 * configure.tgt: Obsolete mips*-*-mach3*.
10296
10297 2003-04-09 Andrew Cagney <cagney@redhat.com>
10298
10299 * doublest.h: Update copyright.
10300 (deprecated_store_floating, deprecated_extract_floating): Rename
10301 store_floating and extract_floating. Update comments.
10302 * doublest.c: Update copyright.
10303 (extract_floating_by_length): Replace extract_floating.
10304 (store_floating_by_length): Replace store_floating.
10305 (deprecated_extract_floating): New function.
10306 (deprecated_store_floating): New function.
10307 (extract_typed_floating): Call extract_floating_by_length.
10308 (store_typed_floating): Call store_floating_by_length.
10309 * x86-64-tdep.c (x86_64_store_return_value): Update.
10310 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10311 (sh64_extract_return_value): Update.
10312 (sh_sh4_register_convert_to_virtual): Update.
10313 (sh_sh64_register_convert_to_virtual): Update.
10314 (sh_sh4_register_convert_to_raw): Update.
10315 (sh_sh64_register_convert_to_raw): Update.
10316 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10317 (rs6000_register_convert_to_raw): Update.
10318 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10319 (ia64_register_convert_to_raw): Update.
10320 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10321 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10322 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10323 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10324 (alpha_register_convert_to_raw): Update.
10325
10326 2003-04-08 Andrew Cagney <cagney@redhat.com>
10327
10328 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10329 * gdbarch.h, gdbarch.c: Re-generate.
10330 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10331 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10332 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10333 conditionally, use frame_pc_unwind as an alternative. Add
10334 comments.
10335 * arch-utils.c (init_frame_pc_default): Only call
10336 SAVED_PC_AFTER_CALL when available.
10337
10338 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10339
10340 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10341 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10342 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10343 (start_remote): Ditto.
10344 (handle_inferior_event): Ditto.
10345 (save_inferior_status): Ditto.
10346 (restore_inferior_status): Ditto.
10347 * infcmd.c (attach_command): Ditto.
10348 * fork-child.c (startup_inferior): Ditto.
10349 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10350 * alpha-tdep.c (heuristic_proc_start): Ditto.
10351 * mips-tdep.c (heuristic_proc_start): Ditto.
10352 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10353 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10354 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10355 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10356 * remote-vx.c (vx_create_inferior): Ditto.
10357
10358 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10359
10360 * infrun.c (stop_soon_quietly): Make it an enum, to better
10361 override the default behavior of handle_inferior_event.
10362 (clear_proceed_status): Update uses of stop_soon_quietly to
10363 reflect that it is now an enum.
10364 (start_remote): Ditto.
10365 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10366 is set to handle the new GNU/Linux kernel behavior for
10367 attach/sigstop. Update uses of stop_soon_quietly.
10368 * inferior.h (enum stop_kind): New enum.
10369 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10370 Reset normal handle_inferior_event behavior, afterwards.
10371 * fork-child.c (startup_inferior): Update.
10372 * alpha-tdep.c (heuristic_proc_start): Update.
10373 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10374 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10375 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10376 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10377 * remote-vx.c (vx_create_inferior): Update.
10378 * mips-tdep.c (heuristic_proc_start): Update.
10379
10380 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10381
10382 * disasm.c (dump_insns): Move variables inside loop, or they will
10383 be freed more than once, causing wild memory corruptions.
10384 (gdb_disassembly): Look for the substring "-thread",
10385 instead of "-threads" in the target name, to make sure to find
10386 the 'multi-thread' target. Also, make sure we do the right thing
10387 with the "core" target.
10388
10389 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10390
10391 * mips-tdep.c (mips_print_fp_register): New function, created from
10392 do_fp_register_row(). Registers are now (also) printed as hex.
10393 Only one register is printed per row.
10394 (mips_print_register, do_fp_register_row): Print floating point
10395 registers with mips_print_fp_register().
10396
10397 2003-04-06 Andrew Cagney <cagney@redhat.com>
10398
10399 * valprint.h (inspect_it): Add extern declaration.
10400 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10401 (selectors_info, classes_info): Ditto.
10402 (find_objc_msgcall): Fix indentation.
10403 (objc_printstr): Delete extern declarations.
10404
10405 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10406
10407 2003-04-06 Andrew Cagney <cagney@redhat.com>
10408
10409 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10410 Update comment.
10411 * frame.c (legacy_saved_regs_this_id): Update.
10412 (legacy_get_prev_frame): Update.
10413 * xstormy16-tdep.c: Update comment.
10414 * sparc-tdep.c (sparc_frame_chain): Update comment.
10415 * blockframe.c (legacy_frame_chain_valid): Update.
10416
10417 2003-04-06 Andrew Cagney <cagney@redhat.com>
10418
10419 * valprint.c (val_print_type_code_int): Delete #ifdef
10420 PRINT_TYPELESS_INTEGER code.
10421
10422 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10423 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10424 multi-arch definition.
10425 * gdbarch.h: Re-generate.
10426
10427 2003-04-05 Andrew Cagney <cagney@redhat.com>
10428
10429 Eliminate FRAME_FIND_SAVED_REGS.
10430 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10431 Change FSR parameter to a pointer.
10432 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10433 Assume FSR parameter is a pointer.
10434 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10435 Make fsr a pointer.
10436 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10437 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10438 saved_regs a pointer.
10439 (hppa_frame_saved_pc): Ditto.
10440 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10441 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10442 pointer.
10443 (restore_pc_queue): Make fsr a pointer.
10444 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10445 (hppa_frame_chain): Make saved_regs a pointer, call
10446 hppa_frame_init_saved_regs.
10447 * sparc-tdep.c: Include "gdb_assert.h".
10448 (sparc_frame_find_saved_regs): Replace internal_error with
10449 gdb_assert.
10450 * remote-vxsparc.c (vx_read_register): Delete reference to
10451 FRAME_FIND_SAVED_REGS.
10452 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10453 * gdbarch.h: Regenerate.
10454 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10455 (deprecated_get_frame_saved_regs): Delete declaration.
10456 (struct frame_saved_regs): Delete definition.
10457 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10458 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10459 (hppa_frame_find_saved_regs): Delete declaration.
10460 (FRAME_FIND_SAVED_REGS): Delete macro.
10461 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10462 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10463 FRAME_FIND_SAVED_REGS in comment.
10464
10465 2003-04-05 Andrew Cagney <cagney@redhat.com>
10466
10467 * frame.c (frame_func_unwind, get_frame_func): New functions.
10468 * frame.h (get_frame_func, frame_func_unwind): Declare.
10469 (struct frame_info): Add field "prev_func" for caching the
10470 previous frame's function address.
10471 * arm-tdep.c (arm_frameless_function_invocation): Combine
10472 get_pc_function_start and get_frame_pc into get_frame_func.
10473 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10474 (sh64_nofp_frame_init_saved_regs): Ditto.
10475 * s390-tdep.c (s390_function_start): Ditto.
10476 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10477 (rs6000_frameless_function_invocation): Ditto.
10478 (rs6000_frame_saved_pc): Ditto.
10479 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10480 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10481 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10482 (i386_frame_init_saved_regs): Ditto.
10483 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10484 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10485 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10486 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10487 * blockframe.c (frameless_look_for_prologue): Ditto.
10488
10489 2003-04-05 Andrew Cagney <cagney@redhat.com>
10490
10491 * frame.c (legacy_get_prev_frame): Link prev to next at the
10492 function start. Update comments.
10493
10494 2003-04-05 Andrew Cagney <cagney@redhat.com>
10495
10496 * frame.c (get_frame_id): Update comment.
10497 (legacy_get_prev_frame): Update comment.
10498 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10499 * gdbarch.h: Regenerate.
10500 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10501 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10502
10503 2003-04-05 Andrew Cagney <cagney@redhat.com>
10504
10505 * stack.c (print_frame_info): Use get_frame_pc.
10506
10507 2003-04-04 Andrew Cagney <cagney@redhat.com>
10508
10509 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10510 the frame's type from the unwinder.
10511 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10512 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10513 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10514 (get_frame_base_address): Use get_frame_type.
10515 (get_frame_locals_address, get_frame_args_address): Ditto.
10516 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10517 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10518 (struct frame_info): Add comment explaining why the frame contains
10519 a "type" field.
10520 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10521 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10522 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10523 NORMAL_FRAME.
10524 * frame-unwind.h: Include "frame.h".
10525 (struct frame_unwind): Add "type" field.
10526 * Makefile.in (frame_unwind_h): Add $(frame_h).
10527
10528 2003-04-04 Andrew Cagney <cagney@redhat.com>
10529
10530 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10531 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10532 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10533 get_frame_base.
10534 (d10v_unwind_dummy_id): Use frame_id_build.
10535 * frame.c (find_frame_sal): Use get_frame_pc.
10536 (create_new_frame): Use deprecated_update_frame_pc_hack and
10537 deprecated_update_frame_base_hack.
10538 (create_sentinel_frame): Add comment about ->pc going away.
10539 (get_prev_frame): Add comment about ->pc going away.
10540 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10541 frame_id_build, deprecated_update_frame_pc_hack and
10542 deprecated_update_frame_base_hack.
10543 (select_frame): Use get_frame_pc.
10544 (legacy_saved_regs_this_id): Use frame_id_build.
10545
10546 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10547
10548 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10549 signed integer case.
10550 (classify_argument): Handle enumerations and references.
10551
10552 2003-04-04 Andrew Cagney <cagney@redhat.com>
10553
10554 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10555 ID to NULL.
10556
10557 2003-04-01 Adam Fedor <fedor@gnu.org>
10558
10559 * gdb/objc-lang.c (selectors_info): Replace calls to
10560 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10561 SYMBOL_NATURAL_NAME.
10562 (classes_info, find_methods): Likewise.
10563
10564 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10565
10566 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10567 ``mach'' to the value determined by bfd_default_set_arch_mach().
10568
10569 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10570
10571 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10572 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10573 (mi-cmd-file.o): Update dependencies.
10574
10575 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10576
10577 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10578 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10579
10580 2003-04-01 Adam Fedor <fedor@gnu.org>
10581
10582 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10583 * language.h (struct language_defn): Add la_demangle.
10584 (language_demangle): Declare.
10585 * language.c (language_demangle): New function.
10586 (unk_lang_demangle): Likewise.
10587 (unknown_language_defn, auto_language_defn, local_language_defn):
10588 Add ukn_lang_demangle.
10589 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10590 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10591 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10592 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10593 * jv-lang.c (java_demangle): New function
10594 (java_language_defn): Use it for la_demangle element.
10595 * objc-lang.c (objc_demangle): Add options argument
10596 (objc_language_defn): Use objc_demangle for la_demangle element.
10597 * maint.c (maintenance_demangle): Replace switch with
10598 call to language_demangle.
10599 * utils.c (fprintf_symbol_filtered): Likewise.
10600
10601 2003-04-01 Andrew Cagney <cagney@redhat.com>
10602
10603 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10604 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10605 PRINT_TYPELESS_INTEGER.
10606 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10607 PUSH_RETURN_ADDRESS.
10608
10609 2003-04-01 Andrew Cagney <cagney@redhat.com>
10610
10611 * Makefile.in (d10v-tdep.o): Update dependencies.
10612 * d10v-tdep.c: Include "frame-base.h".
10613 (d10v_frame_unwind): Make constant.
10614 (d10v_frame_base_address): New function.
10615 (d10v_frame_base): New variable.
10616 (d10v_gdbarch_init): Set frame_base default.
10617 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10618 comment for base.
10619 (d10v_frame_unwind_cache): Set and use "prev_sp".
10620 (d10v_frame_this_id): Use the previous frame's inner most stack
10621 address and this frame's func address for the frame ID. Use
10622 frame_id_build. Don't analyze beyond the current instruction.
10623
10624 2003-04-01 Andrew Cagney <cagney@redhat.com>
10625
10626 * frame.h (get_frame_locals_address, get_frame_args_address):
10627 Refer to the base address, instead of the address of the first
10628 local or parameter.
10629
10630 2003-04-01 Andrew Cagney <cagney@redhat.com>
10631
10632 Add frame debug info addresses:
10633 * frame-base.c: New file.
10634 * frame-base.h: New file.
10635 * frame.h (struct frame_base): Add opaque declaration.
10636 (get_frame_base): Update comment.
10637 (get_frame_base_address): Declare.
10638 (get_frame_locals_address): Declare.
10639 (get_frame_args_address): Declare.
10640 (struct frame_info): Add "base" and "base_cache". Update
10641 comments on the unwinder.
10642 * frame.c: Include "frame-base.h".
10643 (get_frame_locals_address): New function.
10644 (get_frame_base_address): New function.
10645 (get_frame_args_address): New function.
10646 * findvar.c (read_var_value): Use get_frame_locals_address and
10647 get_frame_args_address.
10648 * stack.c (frame_info): Use get_frame_locals_address and
10649 get_frame_args_address.
10650 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10651 moved to "frame-base.c".
10652 * printcmd.c (print_frame_nameless_args): Ditto.
10653 * symtab.h (address_class): Update comments.
10654 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10655 get_frame_base_address.
10656 * dwarf2expr.c (execute_stack_op): Ditto.
10657 * Makefile.in (frame_base_h): Define.
10658 (frame.o): Update dependencies.
10659 (frame-base.o): Add dependencies.
10660 (SFILES): Add frame-base.c.
10661 (COMMON_OBS): Add frame-base.o.
10662
10663 2003-04-01 Andrew Cagney <cagney@redhat.com>
10664
10665 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10666 CALL_DUMMY_LENGTH): Ditto.
10667 * gdbarch.c: Re-generate.
10668 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10669 (CALL_DUMMY_LENGTH): Delete macro.
10670 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10671 * arm-tdep.c (arm_gdbarch_init): Ditto.
10672 * avr-tdep.c (avr_gdbarch_init): Ditto.
10673 * cris-tdep.c (cris_gdbarch_init): Ditto.
10674 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10675 * frv-tdep.c (frv_gdbarch_init): Ditto.
10676 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10677 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10678 * i386-tdep.c (i386_gdbarch_init): Ditto.
10679 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10682 * mips-tdep.c (mips_gdbarch_init): Ditto.
10683 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10684 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10685 * s390-tdep.c (s390_gdbarch_init): Ditto.
10686 * sh-tdep.c (sh_gdbarch_init): Ditto.
10687 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10688 * v850-tdep.c (v850_gdbarch_init): Ditto.
10689 * vax-tdep.c (vax_gdbarch_init): Ditto.
10690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10691
10692 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10693
10694 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10695
10696 2003-04-01 Andrew Cagney <cagney@redhat.com>
10697
10698 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10699 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10700 * gdbarch.h, gdbarch.c: Re-generate.
10701 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10702 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10703 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10704 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10705 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10706 * infcmd.c (run_stack_dummy): Simplify assuming
10707 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10708 * infrun.c (handle_inferior_event): Ditto.
10709 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10710 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10711 * arm-tdep.c (arm_gdbarch_init): Ditto.
10712 * avr-tdep.c (avr_gdbarch_init): Ditto.
10713 * cris-tdep.c (cris_gdbarch_init): Ditto.
10714 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10715 * frv-tdep.c (frv_gdbarch_init): Ditto.
10716 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10717 * i386-tdep.c (i386_gdbarch_init): Ditto.
10718 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10720 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10721 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10722 * mips-tdep.c (mips_gdbarch_init): Ditto.
10723 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10724 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10725 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10726 * s390-tdep.c (s390_gdbarch_init): Ditto.
10727 * sh-tdep.c (sh_gdbarch_init): Ditto.
10728 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10729 * v850-tdep.c (v850_gdbarch_init): Ditto.
10730 * vax-tdep.c (vax_gdbarch_init): Ditto.
10731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10732
10733 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10734
10735 * symfile.c (symfile_relocate_debug_section): Update call to
10736 bfd_simple_get_relocated_section_contents.
10737
10738 2003-03-31 Andrew Cagney <cagney@redhat.com>
10739
10740 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10741 * gdbarch.h, gdbarch.c: Regenerate.
10742 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10743 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10744 available.
10745 * frame.h (generic_fix_call_dummy): Delete declaration.
10746 * dummy-frame.h: Update comment.
10747 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10748 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10749 fix_call_dummy.
10750 * sh-tdep.c (sh_gdbarch_init): Ditto.
10751 * s390-tdep.c (s390_gdbarch_init): Ditto.
10752 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10755 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10756 * i386-tdep.c (i386_gdbarch_init): Ditto.
10757 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10758 * frv-tdep.c (frv_gdbarch_init): Ditto.
10759 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10760 * cris-tdep.c (cris_gdbarch_init): Ditto.
10761 * avr-tdep.c (avr_gdbarch_init): Ditto.
10762 * arm-tdep.c (arm_gdbarch_init): Ditto.
10763
10764 2003-03-31 J. Brobecker <brobecker@gnat.com>
10765
10766 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10767 (INIT_FRAME_AP): Likewise.
10768 (EXTRA_FRAME_INFO): Likewise.
10769
10770 2003-03-31 Andrew Cagney <cagney@redhat.com>
10771
10772 * gdbarch.sh: Include "symfile.h".
10773 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10774 * gdbarch.h, gdbarch.c: Re-generate.
10775 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10777 call_dummy_address, the default is at entry_point_address.
10778 * v850-tdep.c (v850_gdbarch_init): Ditto.
10779 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10780 * sh-tdep.c (sh_gdbarch_init): Ditto.
10781 * s390-tdep.c (s390_gdbarch_init): Ditto.
10782 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10783 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10784 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10785 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10786 * i386-tdep.c (i386_gdbarch_init): Ditto.
10787 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10788 * frv-tdep.c (frv_gdbarch_init): Ditto.
10789 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10790 * cris-tdep.c (cris_gdbarch_init): Ditto.
10791 * arm-tdep.c (arm_gdbarch_init): Ditto.
10792
10793 2003-03-31 Andrew Cagney <cagney@redhat.com>
10794
10795 * gdbarch.sh (CALL_DUMMY_P): Delete.
10796 * gdbarch.h, gdbarch.c: Re-generate.
10797 * inferior.h (CALL_DUMMY_P): Delete macro.
10798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10799 * vax-tdep.c (vax_gdbarch_init): Update.
10800 * v850-tdep.c (v850_gdbarch_init): Update.
10801 * sparc-tdep.c (sparc_gdbarch_init): Update.
10802 * sh-tdep.c (sh_gdbarch_init): Update.
10803 * s390-tdep.c (s390_gdbarch_init): Update.
10804 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10805 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10806 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10807 * mips-tdep.c (mips_gdbarch_init): Update.
10808 * mcore-tdep.c (mcore_gdbarch_init): Update.
10809 * m68k-tdep.c (m68k_gdbarch_init): Update.
10810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10811 * ia64-tdep.c (ia64_gdbarch_init): Update.
10812 * i386-tdep.c (i386_gdbarch_init): Update.
10813 * h8300-tdep.c (h8300_gdbarch_init): Update.
10814 * frv-tdep.c (frv_gdbarch_init): Update.
10815 * d10v-tdep.c (d10v_gdbarch_init): Update.
10816 * cris-tdep.c (cris_gdbarch_init): Update.
10817 * breakpoint.c (deprecated_frame_in_dummy): Update.
10818 * avr-tdep.c (avr_gdbarch_init): Update.
10819 * alpha-tdep.c (alpha_gdbarch_init): Update.
10820 * arm-tdep.c (arm_gdbarch_init): Update.
10821 * dummy-frame.c (dummy_frame_this_id): Update comments.
10822 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10823 * frame.c (legacy_get_prev_frame): Ditto.
10824 * valops.c (call_function_by_hand): Delete function.
10825 (hand_function_call): Rename to call_function_by_hand
10826
10827 2003-03-30 Andrew Cagney <cagney@redhat.com>
10828
10829 2002-11-10 Klee Dienes <kdienes@apple.com>
10830 * value.h (struct value): Update comment.
10831
10832 2003-03-30 Andrew Cagney <cagney@redhat.com>
10833
10834 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10835 D10V_FP_REGNUM.
10836 (d10v_gdbarch_init): Do not set fp_regnum.
10837
10838 * frame.c (get_frame_base): Force ID initialization.
10839 (get_prev_frame): Move computation of the frame ID from here ...
10840 (get_frame_id): ... to here.
10841 (legacy_get_prev_frame): Mark the frame ID as valid.
10842 * frame.h (struct frame_info): Add field "id_p".
10843
10844 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10845
10846 * i386-tdep.c (i386_store_struct_return): Removed.
10847 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10848
10849 2003-03-30 Andrew Cagney <cagney@redhat.com>
10850
10851 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10852 * gdbarch.h, gdbarch.c: Regenerate.
10853 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10855 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10856 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10857 * i386-tdep.c (i386_gdbarch_init): Ditto.
10858 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10859 * cris-tdep.c (cris_gdbarch_init): Ditto.
10860 * vax-tdep.c (vax_gdbarch_init): Ditto.
10861 * s390-tdep.c (s390_gdbarch_init): Ditto.
10862 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10863 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10864 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10865 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10866 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10867 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10868 * sparc-tdep.c (sparc_gdbarch_init): Update.
10869 * sh-tdep.c (sh_gdbarch_init): Update.
10870 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10871 * mips-tdep.c (mips_gdbarch_init): Update.
10872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10873 * ia64-tdep.c (ia64_gdbarch_init): Update.
10874 * frv-tdep.c (frv_gdbarch_init): Update.
10875 * avr-tdep.c (avr_gdbarch_init): Update.
10876 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10877 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10878 instead of when push_dummy_call is not available.
10879
10880 2003-03-30 Andrew Cagney <cagney@redhat.com>
10881
10882 * infttrace.c: Include "gdbthread.h".
10883 (parent_attach_all): Fix function signature.
10884 (call_ptrace): Update call.
10885 * Makefile.in (infttrace.o): Update dependencies.
10886
10887 2003-03-30 Andrew Cagney <cagney@redhat.com>
10888
10889 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10890 PUSH_RETURN_ADDRESS.
10891 * gdbarch.h, gdbarch.c: Regenerate.
10892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10893 * x86-64-tdep.c (x86_64_init_abi): Update.
10894 * v850-tdep.c (v850_gdbarch_init): Update.
10895 * sparc-tdep.c (sparc_gdbarch_init): Update.
10896 * sh-tdep.c (sh_gdbarch_init): Update.
10897 * s390-tdep.c (s390_gdbarch_init): Update.
10898 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10899 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10900 * mips-tdep.c (mips_gdbarch_init): Update.
10901 * mcore-tdep.c (mcore_gdbarch_init): Update.
10902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10903 * ia64-tdep.c (ia64_gdbarch_init): Update.
10904 * i386-tdep.c (i386_gdbarch_init): Update.
10905 * h8300-tdep.c (h8300_gdbarch_init): Update.
10906 * frv-tdep.c (frv_gdbarch_init): Update.
10907 * cris-tdep.c (cris_gdbarch_init): Update.
10908 * avr-tdep.c (avr_gdbarch_init): Update.
10909 * arm-tdep.c (arm_gdbarch_init): Update.
10910 * valops.c (hand_function_call): Update.
10911
10912 2003-03-29 Andrew Cagney <cagney@redhat.com>
10913
10914 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10915 sizeof_call_dummy_words.
10916 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10917 define.
10918 * gdbarch.h: Regenerate.
10919
10920 2003-03-29 Andrew Cagney <cagney@redhat.com>
10921
10922 * infttrace.h: New file.
10923 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10924 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10925 (hpread_read_doc_function_type): Detect an initialized type1.
10926 (hpread_quick_traverse): Initialize mod_name_string.
10927 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10928 (som_solib_get_solib_by_pc): Declare.
10929 (so_lib_thread_start_addr): Declare.
10930 (no_shared_libraries): Declare.
10931 * somread.c (init_import_symbols): Make static. Add forward
10932 declaration.
10933 * config/pa/nm-hppah.h: Include "infttrace.h" for
10934 parent_attach_all.
10935 (hppa_insert_hw_watchpoint): Declare.
10936 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10937 * hppah-nat.c: Include "gdb_string.h".
10938 (parent_attach_all): Delete extern declaration, moved to
10939 "infttrace.h".
10940 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10941 int.
10942 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10943 * Makefile.in (infttrace_h): Define.
10944 (hpread.o): Update dependencies.
10945 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10946 * hppa-hpux-tdep.c: Include "gdb_string.h".
10947 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10948 * infrun.c (handle_inferior_event): Always initialize
10949 stepped_after_stopped_by_watchpoint. Add default and remove
10950 fallthrough in switch statement.
10951 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10952 parameter to int.
10953 (hppa_remove_hw_watchpoint): Ditto.
10954
10955 2003-03-29 Andrew Cagney <cagney@redhat.com>
10956
10957 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10958 offset.
10959
10960 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10961
10962 * arm-tdep.c (arm_push_arguments): Delete.
10963 (struct stack_item): New type.
10964 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10965 (arm_store_struct_return): Delte.
10966 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10967 arm_push_arguments or arm_store_struct_return.
10968
10969 2003-03-28 Andrew Cagney <cagney@redhat.com>
10970
10971 * Makefile.in (d10v-tdep.o): Update dependencies.
10972 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10973 * d10v-tdep.c: Include "remote.h".
10974 (target_resume_hook): Delete extern declaration.
10975 (target_wait_loop_hook): Ditto.
10976 (tdisassemble_command): Eliminate assignment in "if" conditional.
10977 (d10v_ts2_register_sim_regno): Eliminate call to
10978 legacy_register_sim_regno.
10979 (d10v_ts3_register_sim_regno): Ditto.
10980
10981 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10982
10983 * thread.c: Reindented.
10984 * lin-lwp.c: Ditto.
10985 * linux-proc.c: Ditto.
10986
10987 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10988
10989 * MAINTAINERS (write after approval): Add myself.
10990
10991 2003-03-27 Theodore A. Roth <troth@openavr.org>
10992
10993 * objc-exp.y: Add missing semi-colons.
10994
10995 2003-03-27 Andrew Cagney <cagney@redhat.com>
10996
10997 * regcache.c (write_sp): Delete function and references.
10998 * inferior.h (write_sp): Delete declaration.
10999 * valops.c (hand_function_call): Replace write_sp with
11000 TARGET_WRITE_SP.
11001 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11002 (sparc_pop_frame): Ditto.
11003
11004 2003-03-27 Andrew Cagney <cagney@redhat.com>
11005
11006 * NEWS: Mention removal of support for hppa*-*-bsd* and
11007 hppa*-*-osf* natives, and hppa*-*-pro* target.
11008 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11009 * config/pa/xm-pa.h: Obsolete file.
11010 * config/pa/xm-hppab.h: Obsolete file.
11011 * config/pa/nm-hppab.h: Obsolete file.
11012 * config/pa/tm-hppab.h: Obsolete file.
11013 * config/pa/tm-hppao.h: Obsolete file.
11014 * config/pa/nm-hppao.h: Obsolete file.
11015 * config/pa/tm-pro.h: Obsolete file.
11016 * config/pa/hppaosf.mt: Obsolete file.
11017 * config/pa/hppaosf.mh: Obsolete file.
11018 * config/pa/hppapro.mt: Obsolete file.
11019 * config/pa/hppabsd.mt: Obsolete file.
11020 * config/pa/hppabsd.mh: Obsolete file.
11021 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11022 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11023 hppa*-*-osf*.
11024
11025 2003-03-27 Andrew Cagney <cagney@redhat.com>
11026
11027 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11028 push_arguments. Don't set push_return_address or write_sp.
11029 (d10v_push_dummy_call): Replace d10v_push_arguments.
11030 (d10v_push_return_address, d10v_write_sp): Delete function,
11031 handled by push_dummy_call.
11032
11033 2003-03-26 Andrew Cagney <cagney@redhat.com>
11034
11035 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11036 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11037 regcache and dummy_addr parameters.
11038 * gdbarch.h, gdbarch.c: Re-generate.
11039 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11040 available; assume it will handle stack alignment and return
11041 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11042 legacy_push_arguments.
11043 (legacy_push_arguments): Rename default_push_arguments.
11044 * value.h (legacy_push_arguments): Rename default_push_arguments.
11045 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11046 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11047 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11048 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11049 * config/i386/tm-symmetry.h: Update.
11050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11051 * x86-64-tdep.c (x86_64_init_abi): Update.
11052 * v850-tdep.c (v850_gdbarch_init): Update.
11053 * sparc-tdep.c (sparc_gdbarch_init): Update.
11054 * sh-tdep.c (sh_gdbarch_init): Update.
11055 * s390-tdep.c (s390_gdbarch_init): Update.
11056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11058 * mips-tdep.c (mips_gdbarch_init): Update.
11059 * mcore-tdep.c (mcore_gdbarch_init): Update.
11060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11061 * ia64-tdep.c (ia64_gdbarch_init): Update.
11062 * i386-tdep.c (i386_gdbarch_init): Update.
11063 * hppa-tdep.c (hppa_gdbarch_init): Update.
11064 * h8300-tdep.c (h8300_gdbarch_init): Update.
11065 * frv-tdep.c (frv_gdbarch_init): Update.
11066 * d10v-tdep.c (d10v_gdbarch_init): Update.
11067 * cris-tdep.c (cris_gdbarch_init): Update.
11068 * avr-tdep.c (avr_gdbarch_init): Update.
11069 * arm-tdep.c (arm_gdbarch_init): Update.
11070 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11071 * alpha-tdep.c (alpha_gdbarch_init): Update.
11072
11073 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11074
11075 * signals/signals.c (do_target_signal_to_host): Correct realtime
11076 signal range test.
11077
11078 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11081 (struct sal_chain, map_catch_names): Remove.
11082 (catch_exception_command_1): Don't call
11083 handle_gnu_4_16_catch_command.
11084
11085 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11086
11087 From Mark Dettinger <dettinge@de.ibm.com>:
11088 * dwarf2cfi.c (read_2u): Increment pointer by two.
11089
11090 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11091
11092 * signals/signals.c: Fix typos in last change.
11093
11094 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11095
11096 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11097 not already defined. Use __SIGRTMIN if available.
11098 (target_signal_from_host): Remove SIGRTMIN block.
11099 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11100 the signal is within the realtime range.
11101
11102 2003-03-25 Adam Fedor <fedor@gnu.org>
11103
11104 * Makefile.in (infrun.o): Add $(language_h)
11105 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11106 for language specific trampolines.
11107 * language.h (struct language_defn): Add skip_trampoline.
11108 (skip_language_trampoline): Declare.
11109 * language.c (unk_lang_trampoline, skip_language_trampoline):
11110 New functions.
11111 (unknown_language_defn, auto_language_defn, local_language_defn):
11112 Add ukn_lang_trampoline.
11113 * ada-lang.c (ada_language_defn): Add NULL for language
11114 specific skip_trampoline.
11115 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11116 scm-lang.c: Likewise.
11117 * objc-lang.c (objc_skip_trampoline): New function.
11118 (objc_language_defn): Add objc_skip_trampoline.
11119
11120 2003-03-25 Andrew Cagney <cagney@redhat.com>
11121
11122 * frame.c (get_prev_frame): Delay validating a frame's ID -
11123 non-NULL, didn't go backwards - until an attempt to unwind it to
11124 the previous frame.
11125
11126 2003-03-25 Andrew Cagney <cagney@redhat.com>
11127
11128 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11129 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11130 * gdbarch.h, gdbarch.c: Re-generate.
11131 * config/sparc/tm-sparc.h
11132 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11133 * sparc-tdep.c (sparc_gdbarch_init): Set
11134 deprecated_extra_stack_alignment_needed.
11135 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11136 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11137 extra_stack_alignment_needed.
11138 * v850-tdep.c (v850_gdbarch_init): Ditto.
11139 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11140 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11141 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11142 * cris-tdep.c (cris_gdbarch_init): Ditto.
11143 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11145
11146 2003-03-25 Andrew Cagney <cagney@redhat.com>
11147
11148 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11149 STORE_STRUCT_RETURN.
11150 * gdbarch.h, gdbarch.c: Regenerate.
11151 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11152 (d10v_push_arguments): Set the struct return register.
11153 (d10v_gdbarch_init): Update.
11154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11155 * x86-64-tdep.c (x86_64_init_abi): Update.
11156 * vax-tdep.c (vax_gdbarch_init): Update.
11157 * v850-tdep.c (v850_gdbarch_init): Update.
11158 * sparc-tdep.c (sparc_gdbarch_init): Update.
11159 * sh-tdep.c (sh_gdbarch_init): Update.
11160 * s390-tdep.c (s390_gdbarch_init): Update.
11161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11164 * mips-tdep.c (mips_gdbarch_init): Update.
11165 * mcore-tdep.c (mcore_gdbarch_init): Update.
11166 * m68k-tdep.c (m68k_gdbarch_init): Update.
11167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11168 * ia64-tdep.c (ia64_gdbarch_init): Update.
11169 * i386-tdep.c (i386_gdbarch_init): Update.
11170 * hppa-tdep.c (hppa_gdbarch_init): Update.
11171 * h8300-tdep.c (h8300_gdbarch_init): Update.
11172 * frv-tdep.c (frv_gdbarch_init): Update.
11173 * cris-tdep.c (cris_gdbarch_init): Update.
11174 * avr-tdep.c (avr_gdbarch_init): Update.
11175 * arm-tdep.c (arm_gdbarch_init): Update.
11176 * alpha-tdep.c (alpha_gdbarch_init): Update.
11177
11178 2003-03-25 Andrew Cagney <cagney@redhat.com>
11179
11180 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11181 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11182 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11183 * gdbarch.h, gdbarch.c: Regenerate.
11184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11185 call_dummy_stack_adjust_p.
11186 * vax-tdep.c (vax_gdbarch_init): Ditto.
11187 * v850-tdep.c (v850_gdbarch_init): Ditto.
11188 * sh-tdep.c (sh_gdbarch_init): Ditto.
11189 * s390-tdep.c (s390_gdbarch_init): Ditto.
11190 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11191 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11192 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11193 * mips-tdep.c (mips_gdbarch_init): Ditto.
11194 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11195 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11197 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11198 * i386-tdep.c (i386_gdbarch_init): Ditto.
11199 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11200 * frv-tdep.c (frv_gdbarch_init): Ditto.
11201 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11202 * cris-tdep.c (cris_gdbarch_init): Ditto.
11203 * avr-tdep.c (avr_gdbarch_init): Ditto.
11204 * arm-tdep.c (arm_gdbarch_init): Ditto.
11205 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11206 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11207 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11208 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11209 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11210 call_dummy_stack_adjust_p.
11211 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11212 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11213 * sparc-tdep.c (sparc32_push_arguments): Update.
11214 * valops.c (hand_function_call): Update.
11215
11216 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11217
11218 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11219 set_gdbarch_char_signed.
11220
11221 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11222
11223 PR cli/548
11224 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11225
11226 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11227
11228 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11229 (_initialize_arm_tdep): Don't set tm_print_insn.
11230
11231 2003-03-24 Adam Fedor <fedor@gnu.org>
11232
11233 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11234 * objc-lang.h: Add multiple inclusion protection.
11235 (start_msglist, add_msglist, end_msglist): Additional declarations.
11236
11237 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11238
11239 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11240 value was renamed to ARM_FLOAT_SOFT_FPA.
11241
11242 2003-03-23 Andrew Cagney <cagney@redhat.com>
11243
11244 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11245 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11246 * gdbarch.h, gdbarch.c: Regenerate.
11247 * valops.c (hand_function_call): Update.
11248 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11249 * frame.c (legacy_saved_regs_this_id): Update.
11250 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11251 * dummy-frame.h: Update.
11252 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11253 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11254 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11255 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11256 * config/m68k/tm-sun3.h: Update.
11257 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11259 * x86-64-tdep.c (x86_64_init_abi): Update.
11260 * vax-tdep.c (vax_gdbarch_init): Update.
11261 * v850-tdep.c (v850_gdbarch_init): Update.
11262 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11263 * sh-tdep.c (sh_gdbarch_init): Update.
11264 * s390-tdep.c (s390_gdbarch_init): Update.
11265 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11266 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11267 (frame_get_saved_regs): Update.
11268 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11269 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11270 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11271 * mips-tdep.c (mips_gdbarch_init): Update.
11272 * mcore-tdep.c (mcore_gdbarch_init): Update.
11273 * m68k-tdep.c (m68k_gdbarch_init): Update.
11274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11275 * ia64-tdep.c (ia64_gdbarch_init): Update.
11276 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11277 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11278 (i386_interix_back_one_frame): Update.
11279 * hppa-tdep.c (hppa_gdbarch_init): Update.
11280 (hppa_init_extra_frame_info): Update.
11281 * h8300-tdep.c (h8300_gdbarch_init): Update.
11282 * frv-tdep.c (frv_gdbarch_init): Update.
11283 * cris-tdep.c (cris_gdbarch_init): Update.
11284 * avr-tdep.c (avr_gdbarch_init): Update.
11285 * arm-tdep.c (arm_gdbarch_init): Update.
11286 * alpha-tdep.c (alpha_gdbarch_init): Update.
11287
11288 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11289
11290 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11291 (arm_get_fp_model): Declare.
11292 * arm-tdep.c (fp_model_strings): New string array.
11293 (arm_fp_model, current_fp_model): New variables.
11294 (arm_get_fp_model): New function.
11295 (arm_set_fp): New function.
11296 (set_fp_model_sfunc): New function.
11297 (show_fp_model): New function.
11298 (_initialize_arm_tdep): Add new command to set/show the FPU.
11299 (arm_extract_return_value): Use arm_get_fp_model.
11300 (arm_store_return_value): Likewise.
11301 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11302 to initialize the floating-point data types.
11303 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11304 model is FPA.
11305
11306 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11307
11308 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11309 the current setting of each value.
11310 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11311 new_set and new_show. Use add_setshow_cmd_full and
11312 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11313 commands and add new version as subcommands of "set/show arm".
11314
11315 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11316
11317 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11318 (set_arm_command, show_arm_command): New functions.
11319 (_initialize_arm_tdep): Add them.
11320 (num_disassembly_options): Renamed from num_flavor_options.
11321 (valid_disassembly_styles): Renamed from valid_flavors.
11322 (disassembly_style): Renamed from disassembly_flavor.
11323 (set_disassembly_style_sfunc): Renamed from
11324 set_disassembly_flavor_sfunc.
11325 (set_disassembly_style): Renamed from set_disassembly_flavor.
11326 (arm_othernames): Updated.
11327 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11328 command. Add "set/show arm disassembly" commands. Deprecate
11329 "othernames" command.
11330
11331 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11332
11333 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11334 (arm-tdep.o): Depend on elf_arm_h.
11335
11336 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11337
11338 * Makefile.in (coff_internal_h): Define.
11339 (arm-tdep.o): Update dependencies.
11340
11341 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11342
11343 * arm-tdep.c (prologue_cache): Delete.
11344 (check_prologue_cache, save_prologue_cache): Delete.
11345 (arm_scan_prologue): Don't check or update the prologue_cache.
11346 (arm_gdb_arch_init): Don't initialize it.
11347 (_initialize_arm_tdep): Likewise.
11348
11349 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11350
11351 * MAINTAINERS (tui): Maintainer of tui code.
11352
11353 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11354
11355 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11356 (i386-cygwin-tdep.o): Add dependencies.
11357 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11358 * i386-cygwin-tdep.c: New file.
11359 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11360 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11361
11362 2003-03-20 Andrew Cagney <cagney@redhat.com>
11363
11364 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11365 (handle_inferior_event): Remove code calling
11366 DYNAMIC_TRAMPOLINE_NEXTPC.
11367
11368 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11369 already has a full path.
11370
11371 * main.c (gdb_main): Return 1.
11372 (captured_main): Call error to report an invalid interpreter.
11373
11374 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11375 * alpha-osf1-tdep.c: Include "gdb_string.h".
11376
11377 2003-03-19 J. Brobecker <brobecker@gnat.com>
11378
11379 Continuing work to convert the hppa targets to multiarch partial.
11380
11381 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11382 method, now that hppa_push_dummy_frame has a conformant prototype.
11383 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11384 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11385 for the switch to multiarch partial.
11386
11387 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11388
11389 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11390 when iss is issNull.
11391
11392 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11393
11394 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11395 NUM_REGS bounds check.
11396
11397 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11398
11399 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11400 * mips-tdep.c (gdb_assert.h): Include.
11401 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11402 (mips_register_name): Handle integer registers explicitly. Add
11403 bounds checking.
11404 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11405 (mips_lsi33k_reg_names): Don't list integer registers; they're
11406 handled by mips_register_name() now.
11407 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11408 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11409 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11410 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11411 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11412
11413 2003-03-18 Andrew Cagney <cagney@redhat.com>
11414
11415 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11416 a void pointer.
11417 * gdbtypes.h (print_scalar_formatted): Update declaration.
11418 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11419
11420 2003-03-18 J. Brobecker <brobecker@gnat.com>
11421
11422 * infrun.c (observer.h): Add #include.
11423 (normal_stop): Add call to observer_notify_normal_stop.
11424 * Makefile.in (infrun.o): Add dependency on observer.h.
11425
11426 2003-03-18 J. Brobecker <brobecker@gnat.com>
11427
11428 Continuing work to convert the hppa targets to multiarch partial.
11429 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11430 parameter. Reformat comment.
11431 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11432 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11433 to match new profile.
11434
11435 2003-03-18 J. Brobecker <brobecker@gnat.com>
11436
11437 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11438 appear to be working in any case.
11439
11440 2003-03-18 J. Brobecker <brobecker@gnat.com>
11441
11442 * observer.c (observer_test_first_observer): New static variable.
11443 (observer_test_second_observer): Likewise.
11444 (observer_test_third_observer): Likewise.
11445 (observer_test_first_notification_function): New static function.
11446 (observer_test_second_notification_function): Likewise.
11447 (observer_test_third_notification_function): Likewise.
11448
11449 2003-03-17 J. Brobecker <brobecker@gnat.com>
11450
11451 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11452 * somsolib.c (gdb_assert.h): Likewise.
11453 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11454 (somsolib.o): Likewise.
11455
11456 2003-03-17 Andrew Cagney <cagney@redhat.com>
11457
11458 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11459 BFD. Simplify setting of di.endian.
11460
11461 2003-03-17 Andrew Cagney <cagney@redhat.com>
11462
11463 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11464 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11465
11466 From Elena Zannoni <ezannoni@redhat.com>
11467 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11468 vector and floating-point parameters.
11469 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11470 convention.
11471 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11472
11473 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11474
11475 * MAINTAINERS: Remove my name from several maintainership roles.
11476
11477 2003-03-17 Andrew Cagney <cagney@redhat.com>
11478
11479 Fix frame off-by-one bug.
11480 * frame-unwind.h (frame_this_id_ftype): Replace
11481 frame_unwind_id_ftype.
11482 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11483 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11484 with "prev_register".
11485 * frame-unwind.c (frame_unwind_find_by_pc): Return
11486 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11487 comment.
11488 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11489 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11490 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11491 (dummy_frame_unwind): Update.
11492 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11493 sentinel_frame_register_unwind.
11494 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11495 (sentinel_frame_unwinder): Update.
11496 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11497 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11498 * frame.c (create_sentinel_frame): Update. Initialize
11499 "prologue_cache" instead of "unwind_cache".
11500 (frame_register_unwind): Call this frame's prev_register with the
11501 next frame and this frame's prologue cache.
11502 (get_prev_frame): Simplify. Always call prev frame's this_id with
11503 this frame and prev frame's prologue cache. Document that this
11504 call is shifted one to the left when compared to the
11505 frame_register_unwind call.
11506 (legacy_saved_regs_prev_register): Replace
11507 frame_saved_regs_register_unwind.
11508 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11509 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11510 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11511 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11512 (d10v_frame_unwind): Update.
11513 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11514 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11515 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11516 "saved_regs" with "this_saved_regs".
11517
11518 2003-03-16 Andrew Cagney <cagney@redhat.com>
11519
11520 * frame.c (frame_pop): Don't call target_store_registers. Fix
11521 problem reported by Mark Kettenis.
11522
11523 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11524
11525 * i386-tdep.c (i386_register_type): Renamed from
11526 i386_register_virtual_type. Adjust function signature.
11527 (i386_gdbarch_init): Set register_type instead of
11528 deprecated_max_register_raw_size,
11529 deprecated_max_register_virtual_size and register_virtual_type.
11530
11531 2003-03-14 Andrew Cagney <cagney@redhat.com>
11532
11533 * frame.c (get_prev_frame): When a legacy frame, always call
11534 legacy_get_prev_frame. Simplify unwind code using assumption that
11535 the unwinder is new.
11536 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11537 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11538 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11539
11540 2003-03-14 Andrew Cagney <cagney@redhat.com>
11541
11542 * frame.c (get_saved_register): Delete function.
11543 * frame.h (get_saved_register): Delete declaration.
11544 * xstormy16-tdep.c: Update comment.
11545 * regcache.h: Update comments.
11546 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11547 get_saved_register and extract_address, use
11548 frame_read_unsigned_register.
11549 (sparc_frame_saved_pc): Ditto.
11550 (sparc_get_saved_register): Instead of get_saved_register, use
11551 frame_register.
11552 (sparc_pop_frame): Ditto.
11553 * findvar.c: Update comments.
11554 (value_of_register): Call frame_register instead of
11555 get_saved_register.
11556 (value_from_register): Ditto.
11557 * config/sparc/tm-sparc.h: Update comment.
11558 * breakpoint.c: Update comment.
11559
11560 2003-03-14 Andrew Cagney <cagney@redhat.com>
11561
11562 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11563 GET_SAVED_REGISTER.
11564 * gdbarch.h, gdbarch.c: Re-generate.
11565 * frame.h: Update comments.
11566 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11567 * x86-64-tdep.c (x86_64_init_abi): Update.
11568 * sparc-tdep.c (sparc_gdbarch_init): Update.
11569 * sh-tdep.c (sh_gdbarch_init): Update.
11570 * mips-tdep.c (mips_gdbarch_init): Update.
11571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11572 * cris-tdep.c (cris_gdbarch_init): Update.
11573 * ia64-tdep.c (ia64_gdbarch_init): Update.
11574 * frame.c (frame_register): Update.
11575 (get_saved_register): Update.
11576 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11577
11578 2003-03-13 Andrew Cagney <cagney@redhat.com>
11579
11580 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11581 * gdbarch.h, gdbarch.c: Regenerate.
11582 * valops.c (hand_function_call): Update comment.
11583 * stack.c (return_command): Update comment.
11584 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11585 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11587 * x86-64-tdep.c (x86_64_init_abi): Update.
11588 * vax-tdep.c (vax_gdbarch_init): Update.
11589 * v850-tdep.c (v850_gdbarch_init): Update.
11590 * sparc-tdep.c (sparc_gdbarch_init): Update.
11591 * sh-tdep.c (sh_gdbarch_init): Update.
11592 * s390-tdep.c (s390_gdbarch_init): Update.
11593 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11594 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11595 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11596 * mips-tdep.c (mips_gdbarch_init): Update.
11597 * mcore-tdep.c (mcore_gdbarch_init): Update.
11598 * m68k-tdep.c (m68k_gdbarch_init): Update.
11599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11600 * ia64-tdep.c (ia64_gdbarch_init): Update.
11601 * i386-tdep.c (i386_gdbarch_init): Update.
11602 * hppa-tdep.c (hppa_gdbarch_init): Update.
11603 * h8300-tdep.c (h8300_gdbarch_init): Update.
11604 * frv-tdep.c (frv_gdbarch_init): Update.
11605 * cris-tdep.c (cris_gdbarch_init): Update.
11606 * avr-tdep.c (avr_gdbarch_init): Update.
11607 * arm-tdep.c (arm_gdbarch_init): Update.
11608 * alpha-tdep.c (alpha_gdbarch_init): Update.
11609
11610 2003-03-13 Andrew Cagney <cagney@redhat.com>
11611
11612 * frame.c (legacy_frame_p): New function.
11613 (get_prev_frame): Use legacy_frame_p.
11614 * frame.h (legacy_frame_p): Declare.
11615
11616 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11617
11618 * MAINTAINERS (write after approval): Alphabetically
11619 listing corrected.
11620
11621 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11622
11623 * MAINTAINERS (write after approval): Add myself.
11624
11625 2003-03-12 Andrew Cagney <cagney@redhat.com>
11626
11627 * frame.c (get_prev_frame): Rename the frame parameter to
11628 "this_frame".
11629 (get_next_frame, legacy_get_prev_frame): Ditto.
11630
11631 2003-03-12 Andrew Cagney <cagney@redhat.com>
11632
11633 * frame.c (get_current_frame): Check target_has_registers before
11634 checking target_has_stack.
11635 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11636 instead of deprecated_selected_frame.
11637 * findvar.c (value_of_register): Pass "frame", not
11638 deprecated_selected_frame, to value_of_builtin_reg.
11639
11640 2003-03-12 Andrew Cagney <cagney@redhat.com>
11641
11642 * regcache.c (regcache_cooked_write_signed): New function.
11643 (regcache_cooked_write_unsigned): New function.
11644 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11645 (regcache_cooked_read_signed): Fix regnum in range assertion.
11646 * regcache.h (regcache_cooked_write_signed): Declare.
11647 (regcache_cooked_write_unsigned): Declare.
11648
11649 2003-03-12 Andrew Cagney <cagney@redhat.com>
11650
11651 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11652 * gdbarch.h, gdbarch.c: Re-generate.
11653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11654 * x86-64-tdep.h: Update.
11655 * x86-64-tdep.c (x86_64_init_abi): Update.
11656 * v850-tdep.c (v850_gdbarch_init): Update.
11657 * sparc-tdep.c (sparc_gdbarch_init): Update.
11658 * sh-tdep.c (sh_gdbarch_init): Update.
11659 * s390-tdep.c (s390_gdbarch_init): Update.
11660 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11661 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11662 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11663 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11664 * mips-tdep.c (mips_gdbarch_init): Update.
11665 * mcore-tdep.c (mcore_gdbarch_init): Update.
11666 * m68k-tdep.c (m68k_gdbarch_init): Update.
11667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11668 * ia64-tdep.c (ia64_gdbarch_init): Update.
11669 * i386-tdep.c (i386_gdbarch_init): Update.
11670 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11671 * hppa-tdep.c (hppa_gdbarch_init): Update.
11672 * h8300-tdep.c (h8300_gdbarch_init): Update.
11673 * frv-tdep.c (frv_gdbarch_init): Update.
11674 * cris-tdep.c (cris_gdbarch_init): Update.
11675 * avr-tdep.c (avr_gdbarch_init): Update.
11676 * arm-tdep.c (arm_gdbarch_init): Update.
11677 * alpha-tdep.c (alpha_gdbarch_init): Update.
11678 * sh-tdep.c (sh_init_extra_frame_info): Update.
11679 (sh64_init_extra_frame_info): Update.
11680 * ns32knbsd-nat.c (frame_num_args): Update.
11681 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11682 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11683 (xstormy16_frame_chain_valid): Update.
11684 * vax-tdep.c (vax_saved_pc_after_call): Update.
11685 * v850-tdep.c (v850_frame_chain): Update.
11686 (v850_pop_frame): Update.
11687 (v850_init_extra_frame_info): Update.
11688 * sparc-tdep.c (setup_arbitrary_frame): Update.
11689 * ns32k-tdep.c (umax_frame_num_args): Update.
11690 * s390-tdep.c (s390_pop_frame_regular): Update.
11691 * mn10300-tdep.c (mn10300_frame_chain): Update.
11692 (mn10300_pop_frame_regular): Update.
11693 (mn10300_init_extra_frame_info): Update.
11694 * mips-tdep.c (mips_init_frame_pc_first): Update.
11695 (mips_frame_chain): Update.
11696 (mips_pop_frame): Update.
11697 * mcore-tdep.c (mcore_frame_chain): Update.
11698 (mcore_pop_frame): Update.
11699 (mcore_init_extra_frame_info): Update.
11700 * arch-utils.c (init_frame_pc_default): Update.
11701 * m68k-tdep.c (isi_frame_num_args): Update.
11702 (delta68_frame_num_args): Update.
11703 (news_frame_num_args): Update.
11704 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11705 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11706 (alpha_frame_chain): Update.
11707 (alpha_pop_frame): Update.
11708 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11709 (hppa_init_extra_frame_info): Update.
11710 (hppa_frame_chain): Update.
11711 (hppa_frame_chain_valid): Update.
11712 * cris-tdep.c (cris_init_extra_frame_info): Update.
11713 * avr-tdep.c (avr_init_extra_frame_info): Update.
11714 * arm-tdep.c (arm_frame_chain_valid): Update.
11715 (arm_init_extra_frame_info): Update.
11716 (arm_pop_frame): Update.
11717 * frame.c (frame_pc_unwind): Update.
11718 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11719 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11720 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11721 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11722 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11723 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11724
11725 2003-03-12 Andrew Cagney <cagney@redhat.com>
11726
11727 Eliminate the need for POP_FRAME.
11728 * frame.c (do_frame_unwind_register): New function.
11729 (frame_pop): When no POP_FRAME, pop the frame using register
11730 unwind and a scratch regcache.
11731 (frame_saved_regs_pop): Delete function.
11732 (trad_frame_unwinder): Update.
11733 * d10v-tdep.c (d10v_frame_pop): Delete function.
11734 (d10v_frame_unwind): Update.
11735 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11736 (sentinel_frame_unwinder): Update.
11737 * dummy-frame.c (dummy_frame_pop): Delete function.
11738 (dummy_frame_unwind): Update.
11739 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11740 (struct frame_unwind): Update.
11741
11742 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11743
11744 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11745 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11746 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11747 Do range checks on register number obtained from debugging info.
11748 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11749 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11750 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11751 mapping function.
11752 (do_fp_register_row): Fix typo which caused double type to be
11753 used when attempting to unpack a float.
11754
11755 2003-03-11 J. Brobecker <brobecker@gnat.com>
11756
11757 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11758
11759 2003-03-11 Andrew Cagney <cagney@redhat.com>
11760
11761 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11762 frame. Problem found by Corinna Vinschen.
11763
11764 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11765
11766 * doublest.c (floatformat_from_length): Accept also
11767 the real size of 'long double' type.
11768
11769 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11770
11771 From Klee Dienes <kdienes@apple.com>:
11772 * breakpoint.c (bpstat_copy): Copy the command lines as well
11773 as the old value, to match what is freed in bpstat_clear.
11774
11775 2003-03-10 David Carlton <carlton@math.stanford.edu>
11776
11777 * minsyms.c (add_minsym_to_hash_table): Replace
11778 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11779 (compare_minimal_symbols, compact_minimal_symbols)
11780 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11781 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11782 of DEPRECATED_SYMBOL_MATCHES_NAME.
11783 (lookup_minimal_symbol_solib_trampoline): Ditto.
11784
11785 2003-03-10 Andrew Cagney <cagney@redhat.com>
11786
11787 * regcache.h (regcache_cooked_read_ftype): Define.
11788 (regcache_save, regcache_restore): Add a cooked_read parameter.
11789 * regcache.c (regcache_save, regcache_restore): Update.
11790 (do_cooked_read): New function.
11791 (regcache_cpy): Pass do_cooked_read to regcache_save and
11792 regcache_restore.
11793
11794 2003-03-10 Andrew Cagney <cagney@redhat.com>
11795
11796 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11797 * gdbarch.h, gdbarch.c: Re-generate.
11798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11799 * x86-64-tdep.h: Update.
11800 * x86-64-tdep.c (x86_64_init_abi): Update.
11801 * v850-tdep.c (v850_gdbarch_init): Update.
11802 * sparc-tdep.c (sparc_gdbarch_init): Update.
11803 * sh-tdep.c (sh_gdbarch_init): Update.
11804 * s390-tdep.c (s390_gdbarch_init): Update.
11805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11806 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11807 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11809 * mips-tdep.c (mips_gdbarch_init): Update.
11810 * mcore-tdep.c (mcore_gdbarch_init): Update.
11811 * m68k-tdep.c (m68k_gdbarch_init): Update.
11812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11813 * ia64-tdep.c (ia64_gdbarch_init): Update.
11814 * i386-tdep.c (i386_gdbarch_init): Update.
11815 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11816 * hppa-tdep.c (hppa_gdbarch_init): Update.
11817 * h8300-tdep.c (h8300_gdbarch_init): Update.
11818 * frv-tdep.c (frv_gdbarch_init): Update.
11819 * cris-tdep.c (cris_gdbarch_init): Update.
11820 * avr-tdep.c (avr_gdbarch_init): Update.
11821 * arm-tdep.c (arm_gdbarch_init): Update.
11822 * alpha-tdep.c (alpha_gdbarch_init): Update.
11823 * sh-tdep.c (sh_init_extra_frame_info): Update.
11824 (sh64_init_extra_frame_info): Update.
11825 * ns32knbsd-nat.c (frame_num_args): Update.
11826 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11827 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11828 (xstormy16_frame_chain_valid): Update.
11829 * vax-tdep.c (vax_saved_pc_after_call): Update.
11830 * v850-tdep.c (v850_frame_chain): Update.
11831 (v850_pop_frame): Update.
11832 (v850_init_extra_frame_info): Update.
11833 * sparc-tdep.c (setup_arbitrary_frame): Update.
11834 * ns32k-tdep.c (umax_frame_num_args): Update.
11835 * s390-tdep.c (s390_pop_frame_regular): Update.
11836 * mn10300-tdep.c (mn10300_frame_chain): Update.
11837 (mn10300_pop_frame_regular): Update.
11838 (mn10300_init_extra_frame_info): Update.
11839 * mips-tdep.c (mips_init_frame_pc_first): Update.
11840 (mips_frame_chain): Update.
11841 (mips_pop_frame): Update.
11842 * mcore-tdep.c (mcore_frame_chain): Update.
11843 (mcore_pop_frame): Update.
11844 (mcore_init_extra_frame_info): Update.
11845 * arch-utils.c (init_frame_pc_default): Update.
11846 * m68k-tdep.c (isi_frame_num_args): Update.
11847 (delta68_frame_num_args): Update.
11848 (news_frame_num_args): Update.
11849 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11850 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11851 (alpha_frame_chain): Update.
11852 (alpha_pop_frame): Update.
11853 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11854 (hppa_init_extra_frame_info): Update.
11855 (hppa_frame_chain): Update.
11856 (hppa_frame_chain_valid): Update.
11857 * cris-tdep.c (cris_init_extra_frame_info): Update.
11858 * avr-tdep.c (avr_init_extra_frame_info): Update.
11859 * arm-tdep.c (arm_frame_chain_valid): Update.
11860 (arm_init_extra_frame_info): Update.
11861 (arm_pop_frame): Update.
11862 * frame.c (frame_pc_unwind): Update.
11863 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11864 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11865 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11866 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11867 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11868 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11869
11870 2003-03-10 Andrew Cagney <cagney@redhat.com>
11871
11872 * gdbarch.sh (gdbarch_unwind_pc): New method.
11873 * gdbarch.h, gdbarch.c: Regenerate.
11874 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11875 but use read_pc and FRAME_SAVED_PC as fall backs.
11876 (frame_saved_regs_pc_unwind): Delete function.
11877 (trad_frame_unwinder): Update.
11878 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11879 (struct frame_unwind): Update.
11880 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11881 (dummy_frame_unwind): Update.
11882 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11883 (sentinel_frame_unwinder): Update.
11884 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11885 (d10v_frame_unwind): Update.
11886 (d10v_unwind_pc): New function.
11887 (d10v_gdbarch_init): Set unwind_pc.
11888
11889 2003-03-10 Andrew Cagney <cagney@redhat.com>
11890
11891 * gdbarch.h: Re-generate.
11892
11893 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11894 PC.
11895 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11896 the PC register.
11897
11898 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11899
11900 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11901
11902 2003-03-08 Andrew Cagney <cagney@redhat.com>
11903
11904 * cli-out.c: Update copyright.
11905 (cli_out_data): Define typedef. Use instead of ui_out_data.
11906
11907 2003-03-08 Andrew Cagney <cagney@redhat.com>
11908
11909 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11910 the result.
11911
11912 2003-03-07 Andrew Cagney <cagney@redhat.com>
11913
11914 * gdbarch.sh: Don't generate two macro definitions when an
11915 undefined macro taking no arguments.
11916 * gdbarch.h: Regenerate.
11917
11918 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11919
11920 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11921 (x86_64_unwind_dummy_id): New functions.
11922 (x86_64_init_abi): Register these two new functions.
11923
11924 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11925
11926 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11927 (x86_64_skip_prologue): Move prologue detection to
11928 separate function.
11929 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11930
11931 2003-03-05 Andrew Cagney <cagney@redhat.com>
11932
11933 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11934 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11935 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11936 to use unwind_dummy_id when a dummy frame.
11937 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11938 predicate.
11939 * gdbarch.h, gdbarch.c: Regneerate.
11940
11941 2003-03-05 Andrew Cagney <cagney@redhat.com>
11942
11943 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11944 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11945 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11946 values.
11947
11948 2003-03-05 Andrew Cagney <cagney@redhat.com>
11949
11950 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11951 (struct d10v_unwind_cache): Delete field "frameless". Replace
11952 "next_addr" with "sp_offset". Add "r11_offset".
11953 (d10v_frame_unwind_cache): Update.
11954 (prologue_find_regs): Update. When "mv r11, sp", save the
11955 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11956 RN was saved in r11_offset.
11957
11958 2003-03-05 Andrew Cagney <cagney@redhat.com>
11959
11960 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11961 cached PC value in the next frame.
11962
11963 2003-03-05 Andrew Cagney <cagney@redhat.com>
11964
11965 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11966 "id_unwind_cache" with "id".
11967 (frame_id_unwind): Delete declaration.
11968 * frame.c (frame_id_unwind): Delete function.
11969 (get_prev_frame): Call the frame id unwind method directly. Store
11970 the returned next frame's ID value in NEXT_FRAME. Note that there
11971 is a problem with the wrong unwind ID being called with the wrong
11972 unwind cache.
11973
11974 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11975
11976 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11977
11978 2003-03-05 James Ingham <jingham@apple.com>
11979 Daniel Jacobowitz <drow@mvista.com>
11980
11981 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11982 (auto_cp_abi): New variable.
11983 (current_cp_abi, num_cp_abis): Make static.
11984 (CP_ABI_MAX): Define.
11985 (cp_abis): Turn into an array.
11986 (value_virtual_fn_field): Fix formatting.
11987 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11988 takes a pointer.
11989 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11990 (list_cp_abis, _initialize_cp_abi): New functions.
11991 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11992 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11993 switch_to_cp_abi. Update prototype for register_cp_abi.
11994 * Makefile.in (cp-abi.o): Update dependencies.
11995 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11996 instead of switch_to_cp_abi.
11997 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11998 register_cp_abi.
11999 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12000 register_cp_abi.
12001 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12002
12003 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12004
12005 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12006 * dwarf2loc.c: Include "regcache.h".
12007 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12008 register_size.
12009 * Makefile.in (dwarf2loc.o): Update dependencies.
12010
12011 2003-03-04 Theodore A. Roth <troth@openavr.org>
12012
12013 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12014 number of io registers reported by remote target is not a multiple of
12015 step.
12016
12017 2003-03-04 David Carlton <carlton@math.stanford.edu>
12018
12019 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12020 (lookup_symbol_aux_psymtabs): Update call to
12021 lookup_partial_symbol.
12022 (lookup_transparent_type, find_main_psymtab)
12023 (make_symbol_overload_list): Ditto.
12024
12025 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12026
12027 * MAINTAINERS (Write after approval): Update my email address.
12028
12029 2003-03-03 Andrew Cagney <cagney@redhat.com>
12030
12031 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12032 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12033 predicate. Replace MAX_REGISTER_RAW_SIZE.
12034 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12035 MAX_REGISTER_VIRTUAL_SIZE.
12036 * regcache.c (legacy_max_register_raw_size): New function.
12037 (legacy_max_register_virtual_size): New function.
12038 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12039 (MAX_REGISTER_RAW_SIZE): Define.
12040 (legacy_max_register_raw_size): Declare.
12041 (legacy_max_register_virtual_size): Declare.
12042 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12043 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12044 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12045 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12046 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12047 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12048 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12049 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12050 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12052 * vax-tdep.c (vax_gdbarch_init): Update.
12053 * v850-tdep.c (v850_gdbarch_init): Update.
12054 * sparc-tdep.c (sparc_gdbarch_init): Update.
12055 * sh-tdep.c (sh_gdbarch_init): Update.
12056 * s390-tdep.c (s390_gdbarch_init): Update.
12057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12058 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12060 * mips-tdep.c (mips_gdbarch_init): Update.
12061 * mcore-tdep.c (mcore_gdbarch_init): Update.
12062 * m68k-tdep.c (m68k_gdbarch_init): Update.
12063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12064 * ia64-tdep.c (ia64_gdbarch_init): Update.
12065 * i386-tdep.c (i386_gdbarch_init): Update.
12066 * hppa-tdep.c (hppa_gdbarch_init): Update.
12067 * h8300-tdep.c (h8300_gdbarch_init): Update.
12068 * frv-tdep.c (frv_gdbarch_init): Update.
12069 * cris-tdep.c (cris_gdbarch_init): Update.
12070 * avr-tdep.c (avr_gdbarch_init): Update.
12071 * arm-tdep.c (arm_gdbarch_init): Update.
12072 * alpha-tdep.c (alpha_gdbarch_init): Update.
12073 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12074 max_register_raw_size or max_register_virtual_size.
12075
12076 2003-03-03 David Carlton <carlton@math.stanford.edu>
12077
12078 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12079 SYMBOL_MATCHES_NAME, add comment.
12080 (SYMBOL_MATCHES_NATURAL_NAME): New.
12081 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12082 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12083 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12084 * symtab.c (lookup_partial_symbol): Use
12085 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12086 unhelpful comment.
12087 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12088 SYMBOL_MATCHES_NAME.
12089 Fix for PR c++/33.
12090
12091 2003-03-03 David Carlton <carlton@math.stanford.edu>
12092
12093 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12094 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12095 by regexp matching against SYMBOL_NATURAL_NAME.
12096
12097 2003-03-03 David Carlton <carlton@math.stanford.edu>
12098
12099 * linespec.c (find_method): Extract code into collect_methods.
12100 (collect_methods): New.
12101
12102 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12103
12104 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12105 get_frame_base.
12106
12107 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12108 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12109
12110 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12111
12112 * arch-utils.c (generic_register_byte): Fix to use the loop index
12113 and not regnum when summing the size of all registers up to regnum.
12114
12115 2003-03-01 Andrew Cagney <cagney@redhat.com>
12116
12117 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12118 FRAME_INIT_SAVED_REGS.
12119 * gdbarch.h, gdbarch.c: Regenerate.
12120 * stack.c (frame_info): Update.
12121 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12122 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12123 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12124 * ns32k-tdep.c (ns32k_pop_frame): Update.
12125 * mips-tdep.c (mips_pop_frame): Update.
12126 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12127 * ia64-tdep.c (ia64_frame_chain): Update.
12128 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12129 (ia64_frameless_function_invocation): Update.
12130 (ia64_init_extra_frame_info): Update.
12131 (ia64_pop_frame_regular): Update.
12132 * frame.h (struct frame_info): Update comment.
12133 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12134 * frame.c (frame_saved_regs_register_unwind): Update.
12135 (frame_saved_regs_register_unwind): Update.
12136 (deprecated_generic_get_saved_register): Update.
12137 * cris-tdep.c: Update comment.
12138 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12139 Rename macro.
12140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12141 * x86-64-tdep.c (x86_64_init_abi): Update.
12142 * vax-tdep.c (vax_gdbarch_init): Update.
12143 * v850-tdep.c (v850_gdbarch_init): Update.
12144 * sparc-tdep.c (sparc_gdbarch_init): Update.
12145 * sh-tdep.c (sh_gdbarch_init): Update.
12146 * s390-tdep.c (s390_gdbarch_init): Update.
12147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12148 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12149 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12150 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12151 * mips-tdep.c (mips_gdbarch_init): Update.
12152 * mcore-tdep.c (mcore_gdbarch_init): Update.
12153 * m68k-tdep.c (m68k_gdbarch_init): Update.
12154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12155 * ia64-tdep.c (ia64_gdbarch_init): Update.
12156 * i386-tdep.c (i386_gdbarch_init): Update.
12157 * frv-tdep.c (frv_gdbarch_init): Update.
12158 * avr-tdep.c (avr_gdbarch_init): Update.
12159 * arm-tdep.c (arm_gdbarch_init): Update.
12160 * alpha-tdep.c (alpha_gdbarch_init): Update.
12161
12162 2003-03-01 Andrew Cagney <cagney@redhat.com>
12163
12164 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12165 option enum and switch. When no windows, set the interpreter to
12166 INTERP_CONSOLE.
12167
12168 2003-03-01 Andrew Cagney <cagney@redhat.com>
12169
12170 * main.c (captured_main): Replace magic option characters with an
12171 enum.
12172
12173 2003-03-01 Andrew Cagney <cagney@redhat.com>
12174
12175 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12176 INIT_EXTRA_FRAME_INFO.
12177 * gdbarch.h, gdbarch.c: Regenerate.
12178 * arm-tdep.c: Update comments.
12179 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12180 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12181 * frame.h, avr-tdep.c: Ditto.
12182 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12183 (create_new_frame, legacy_get_prev_frame): Ditto.
12184 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12185 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12187 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12188 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12189 * v850-tdep.c (v850_gdbarch_init): Ditto.
12190 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12191 * sh-tdep.c (sh_gdbarch_init): Ditto.
12192 * s390-tdep.c (s390_gdbarch_init): Ditto.
12193 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12195 * mips-tdep.c (mips_gdbarch_init): Ditto.
12196 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12198 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12199 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12200 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12201 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12202 * frv-tdep.c (frv_gdbarch_init): Ditto.
12203 * cris-tdep.c (cris_gdbarch_init): Ditto.
12204 * avr-tdep.c (avr_gdbarch_init): Ditto.
12205 * arm-tdep.c (arm_gdbarch_init): Ditto.
12206 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12207 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12208
12209 2003-03-01 Andrew Cagney <cagney@redhat.com>
12210
12211 * gdbarch.sh (register_type): New function with predicate.
12212 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12213 * gdbarch.h, gdbarch.c: Re-generate.
12214 * arch-utils.c (generic_register_byte): Use generic_register_size.
12215 (generic_register_size): When available, use
12216 gdbarch_register_type.
12217 * regcache.c (init_regcache_descr): When available, initialize the
12218 register type array using gdbarch_register_type. If the
12219 architecture supplies gdbarch_register_type, do not use the legacy
12220 regcache layout.
12221 * d10v-tdep.c (d10v_register_type): Replace
12222 d10v_register_virtual_type.
12223 (d10v_gdbarch_init): Set register_type instead of
12224 register_virtual_type.
12225
12226 2003-03-01 Andrew Cagney <cagney@redhat.com>
12227
12228 * Makefile.in (ax-gdb.o): Update dependencies.
12229 * ax-gdb.c: Include "regcache.h".
12230 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12231 * findvar.c (value_of_register): Ditto.
12232 * infcmd.c (default_print_registers_info): Ditto.
12233
12234 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12235
12236 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12237 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12238
12239 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12240
12241 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12242 of STREQ.
12243
12244 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12245
12246 * Makefile.in (dwarf2loc.o): Update dependencies.
12247 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12248 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12249 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12250 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12251 (locexpr_tracepoint_var_ref): New function.
12252 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12253
12254 2003-02-28 Andrew Cagney <cagney@redhat.com>
12255
12256 * regcache.c (register_size): New function.
12257 * regcache.h (register_size): Declare
12258 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12259 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12260
12261 2003-02-28 David Carlton <carlton@math.stanford.edu>
12262
12263 * linespec.c (decode_compound): Extract code into find_method.
12264 (find_method): New.
12265
12266 2003-02-28 J. Brobecker <brobecker@gnat.com>
12267
12268 * Makefile.in: Add rules to build and link in observer.o.
12269
12270 2003-02-27 J. Brobecker <brobecker@gnat.com>
12271
12272 * observer.c: Minor comments edits.
12273
12274 2003-02-27 J. Brobecker <brobecker@gnat.com>
12275
12276 * observer.h, observer.c: New file.
12277
12278 2003-02-27 Andrew Cagney <cagney@redhat.com>
12279
12280 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12281
12282 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12283
12284 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12285 (M6812_OP_STS_EXT): Likewise.
12286 (m6811_prologue): Use the above to recognize prologue.
12287 (m6812_prologue): Likewise.
12288
12289 2003-02-27 David Carlton <carlton@math.stanford.edu>
12290
12291 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12292 SYMBOL_PRINT_NAME.
12293 (compare_psymbols): Ditto.
12294 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12295
12296 2003-02-27 Michael Snyder <msnyder@redhat.com>
12297
12298 * f-lang.c (build_fortran_types): New function.
12299 (_initialize_f_language): Gdbarch-register built-in fortran types.
12300 * doublest.c (extract_floating): Fix warning text.
12301
12302 2003-02-27 Andrew Cagney <cagney@redhat.com>
12303
12304 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12305 predicate. Replaces PUSH_DUMMY_FRAME.
12306 * gdbarch.h, gdbarch.c: Regnerate.
12307 * valops.c (hand_function_call): Update. Call
12308 generic_push_dummy_frame directly.
12309 * vax-tdep.c (vax_gdbarch_init): Update.
12310 * sparc-tdep.c (sparc_gdbarch_init): Update.
12311 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12312 * m68k-tdep.c (m68k_gdbarch_init): Update.
12313 * hppa-tdep.c (hppa_gdbarch_init): Update.
12314 * alpha-tdep.c (alpha_gdbarch_init): Update.
12315 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12316 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12317 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12319 push_dummy_frame to generic_push_dummy_frame.
12320 * v850-tdep.c (v850_gdbarch_init): Ditto.
12321 * sh-tdep.c (sh_gdbarch_init): Ditto.
12322 * s390-tdep.c (s390_gdbarch_init): Ditto.
12323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12324 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12325 * mips-tdep.c (mips_gdbarch_init): Ditto.
12326 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12328 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12329 * i386-tdep.c (i386_gdbarch_init): Ditto.
12330 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12331 * frv-tdep.c (frv_gdbarch_init): Ditto.
12332 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12333 * cris-tdep.c (cris_gdbarch_init): Ditto.
12334 * avr-tdep.c (avr_gdbarch_init): Ditto.
12335 * arm-tdep.c (arm_gdbarch_init): Ditto.
12336
12337 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12338
12339 * mips-tdep.c (show_mips_abi): New function.
12340 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12341 command ``show mips abi''.
12342
12343 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12344
12345 From Elena Zannoni <ezannoni@redhat.com>
12346 * dbxread.c (process_one_symbol): Only record line 0 if one or
12347 more sline entries have been seen for the function.
12348
12349 2003-02-26 Michael Chastain <mec@shout.net>
12350
12351 * configure: Regenerate with autoconf 000227.
12352
12353 2003-02-26 Michael Chastain <mec@shout.net>
12354
12355 Close PR build/660.
12356 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12357 for old libc5/glibc.
12358 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12359
12360 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12361
12362 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12363 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12364
12365 2003-02-26 Michael Chastain <mec@shout.net>
12366
12367 * configure.in: New variable HAVE_UINTPTR_T.
12368 * configure, config.in: Regenerated.
12369
12370 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12371
12372 Fix PR build/1097.
12373 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12374
12375 2003-02-25 Andrew Cagney <cagney@redhat.com>
12376
12377 * frame.c (get_prev_frame): Add comment on check for
12378 inside_entry_func. Only check for inside_entry_file when not a
12379 dummy and not a sentinel. Check that the new frame is not inner
12380 to the old frame.
12381
12382 2003-02-25 Andrew Cagney <cagney@redhat.com>
12383
12384 * frame.c (frame_debug): New variable.
12385 (_initialize_frame): Add "set/show debug frame" command.
12386 (get_prev_frame): When frame_debug, print reason why unwind
12387 failed.
12388
12389 2003-02-25 Michael Chastain <mec@shout.net>
12390
12391 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12392 to avoid uintptr_t definition problems.
12393
12394 2003-02-25 David Carlton <carlton@math.stanford.edu>
12395
12396 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12397 (SYMBOL_LINKAGE_NAME): Ditto.
12398 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12399 SYMBOL_LINKAGE_NAME.
12400 (struct general_symbol_info): Expand comment.
12401 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12402 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12403 (SYMBOL_MATCHES_REGEXP): Ditto.
12404 * symtab.c (symbol_natural_name): New function.
12405 * objfiles.h: Replace all uses of SYMBOL_NAME by
12406 DEPRECATED_SYMBOL_NAME.
12407 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12408 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12409 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12410 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12411 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12412 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12413 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12414 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12415 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12416 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12417 * ada-exp.y: Ditto.
12418 * ada-exp.y: Update copyright.
12419 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12420 * cp-valprint.c: Ditto.
12421
12422 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12423
12424 * infptrace.c (detach): Do not flag error if ptrace detach fails
12425 and errno is set to ESRCH.
12426
12427 2003-02-24 Andrew Cagney <cagney@redhat.com>
12428
12429 * infptrace.c (udot_info): Change type of udot_off to long. Use
12430 paddr when printing udot_off's value.
12431
12432 2003-02-24 David Carlton <carlton@math.stanford.edu>
12433
12434 * symtab.c (make_symbol_overload_list): Only read in partial
12435 symtabs containing a matching partial symbol.
12436
12437 2003-02-24 David Carlton <carlton@math.stanford.edu>
12438
12439 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12440 do the comparison, not strcmp.
12441 * symfile.c (compare_psymbols): Ditto.
12442 * defs.h: Declare strcmp_iw_ordered.
12443 * utils.c (strcmp_iw_ordered): New function.
12444
12445 2003-02-24 Jim Blandy <jimb@redhat.com>
12446
12447 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12448 support, shared libs): Remove my name from here, to better reflect
12449 reality.
12450
12451 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12452
12453 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12454 (target_ops): Add to_have_continuable_watchpoint.
12455 * target.c (update_current_target): Add INHERIT line for
12456 to_have_continuable_watchpoint.
12457 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12458 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12459 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12460 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12461
12462 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12463
12464 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12465 maintainership.
12466
12467 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12468
12469 * solib.c (solib_open): Call target defined search function after
12470 failing with solib-search-path.
12471 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12472 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12473
12474 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12475
12476 * MAINTAINERS: Add myself to Write After section.
12477
12478 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12479
12480 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12481
12482 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12483
12484 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12485 (m68hc11_add_reggroups): New function.
12486 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12487 (m68hc11_gdbarch_init): Install the reggroups.
12488 (_initialize_m68hc11_tdep): Initialize them.
12489
12490 2003-02-21 James E Wilson <wilson@tuliptree.org>
12491
12492 * MAINTAINERS: Update my email address.
12493
12494 2003-02-21 David Carlton <carlton@math.stanford.edu>
12495
12496 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12497
12498 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12499
12500 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12501 * symtab.h: Add opaque declarations of struct axs_value and
12502 struct agent_expr.
12503 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12504 (struct location_funcs): New type.
12505 (struct symbol): Add "loc" to aux_value.
12506 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12507 * dwarf2read.c: Include "dwarf2expr.h".
12508 (dwarf2_symbol_mark_computed): New function.
12509 (read_func_scope): Use it.
12510 (var_decode_location): New function.
12511 (new_symbol): Use it.
12512 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12513
12514 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12515 (dwarf2expr_h, dwarf2loc_h): New variables.
12516 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12517 (dwarf2expr.o, dwarf2loc.o): New rules.
12518 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12519 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12520 LOC_COMPUTED_ARG.
12521 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12522 * m2-exp.y (yylex): Likewise.
12523 * printcmd.c (address_info, print_frame_args): Likewise.
12524 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12525 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12526 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12527 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12528 * symtab.c (lookup_block_symbol): Likewise.
12529
12530 2003-02-20 Adam Fedor <fedor@gnu.org>
12531
12532 * symtab.h: Remove objc_specific struct
12533 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12534 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12535 Have language_objc use cplus_specific struct.
12536
12537 2003-02-20 Tom Tromey <tromey@redhat.com>
12538
12539 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12540 TYPE_NAME, when printing a String value. PR java/1075.
12541
12542 2003-02-20 Adam Fedor <fedor@gnu.org>
12543
12544 * objc-lang.h (find_methods): Remove declaration.
12545 * objc-lang.c (find_methods): Make static.
12546
12547 2003-02-20 Christopher Faylor <cgf@redhat.com>
12548
12549 * win32-nat.c (get_image_name): Check return value from
12550 ReadProcessMemory.
12551 (child_xfer_memory): Ditto.
12552
12553 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12554
12555 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12556 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12557 '${exec_prefix}' (in addition to the expansion thereof) as
12558 relocatable.
12559 * configure: Rebuilt.
12560
12561 2003-02-20 David Carlton <carlton@math.stanford.edu>
12562
12563 * symtab.c (search_symbols): Revert the search_symbols part of my
12564 2002-12-23 patch. Add comment.
12565
12566 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12567
12568 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12569 * dbxread.c (elfstab_build_psymtabs): Don't call
12570 install_minimal_symbols.
12571 (stabsect_build_psymtabs): Likewise.
12572 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12573 earlier.
12574 * somread.c (som_symfile_read): Call install_minimal_symbols
12575 and do_cleanups earlier.
12576 * nlmread.c (nlm_symfile_read): Likewise.
12577 * mdebugread.c (elfmdebug_build_psymtabs): Call
12578 install_minimal_symbols and make appropriate cleanups.
12579
12580 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12581
12582 * solib.c (reload_shared_libraries): New function.
12583 (_initialize_solib): Add callbacks for ``set solib-search-path''
12584 and ``set solib-absolute-prefix''.
12585
12586 2003-02-20 David Carlton <carlton@math.stanford.edu>
12587
12588 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12589 expand comment.
12590 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12591 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12592 * ada-typeprint.c (ada_typedef_print): Ditto.
12593 * ax-gdb.c (gen_var_ref): Ditto.
12594 * breakpoint.c (print_one_breakpoint): Ditto.
12595 * buildsym.c (finish_block): Ditto.
12596 * c-valprint.c (c_val_print): Ditto.
12597 * expprint.c (print_subexp): Ditto.
12598 * findvar.c (locate_var_value): Ditto.
12599 * infcmd.c (jump_command): Ditto.
12600 * linespec.c (decode_line_2, decode_compound): Ditto.
12601 * maint.c (maintenance_translate_address): Ditto.
12602 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12603 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12604 Ditto.
12605 * p-valprint.c (pascal_val_print): Ditto.
12606 * stabsread.c (define_symbol): Ditto.
12607 * stack.c (print_frame, frame_info, print_block_frame_locals)
12608 (print_frame_arg_vars, return_command): Ditto.
12609 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12610 * symmisc.c (print_symbol): Ditto.
12611 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12612 (compare_search_syms, print_symbol_info, print_msymbol_info)
12613 (rbreak_command): Ditto.
12614 * tracepoint.c (tracepoints_info): Ditto.
12615 * typeprint.c (typedef_print): Ditto.
12616 * valops.c (value_of_variable, hand_function_call): Ditto.
12617 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12618 * ada-typeprint.c: Update Copyright.
12619 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12620 * tracepoint.c, cli/cli-cmds.c: Ditto.
12621
12622 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12623
12624 * frame.c (generic_unwind_get_saved_register): Make non-static.
12625 * frame.h (generic_unwind_get_saved_register): Declare.
12626 * mips-tdep.c (read_next_frame_reg): Fetch register from
12627 current regcache when frame is NULL.
12628 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12629 that must be NULL.
12630 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12631 instead of frame_register_unwind().
12632
12633 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12634
12635 * remote-sim.c (gdbsim_insert_breakpoint)
12636 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12637 code.
12638
12639 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12640
12641 * remote.c (_initialize_remote): Add commands "set/show remote
12642 hardware-watchpoint-limit" and "set/show remote
12643 hardware-breakpoint-limit".
12644 (remote_hw_watchpoint_limit): Initialize to -1.
12645 (remote_hw_breakpoint_limit): Ditto.
12646 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12647
12648 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12649
12650 * coff-pe-read.c: New file - support reading of minimal symbols from a
12651 portable executable using the export table.
12652 * coff-pe-read.h: New file.
12653 * coffread.c: Include coff-pe-read.h.
12654 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12655 debugging symbols found.
12656 * Makefile.in (SFILES): Add coff-pe-read.o.
12657 (coff_pe_read_h): Define.
12658 (COMMON_OBS): Add coff-pe-read.o.
12659 (coffread.o): Add coff_pe_read_h dependency.
12660 (coff-pe-read.o): New target.
12661
12662 2003-02-19 David Carlton <carlton@math.stanford.edu>
12663
12664 * Makefile.in (SFILES): Add block.c.
12665 (block_h): New.
12666 (COMMON_OBS): Add block.o.
12667 (block.o): New.
12668 (x86-64-tdep.o): Add $(block_h).
12669 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12670 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12671 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12672 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12673 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12674 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12675 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12676 * value.h: Add opaque declaration for struct block.
12677 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12678 * ada-lang.h: Ditto.
12679 * x86-64-tdep.c: #include "block.h"
12680 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12681 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12682 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12683 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12684 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12685 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12686 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12687 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12688 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12689 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12690 * symtab.c (block_function): Ditto.
12691 (contained_in): Ditto.
12692 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12693 block.h. Add opaque declaration for struct block.
12694 * symtab.h: Move block_function and contained_in declarations to
12695 block.h. Add opaque declarations for struct block, struct
12696 blockvector.
12697 (struct block): Move to block.h.
12698 (struct blockvector): Ditto.
12699 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12700 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12701 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12702 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12703 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12704 Ditto.
12705 * block.c: New file.
12706 * block.h: New file.
12707
12708 2003-02-19 Theodore A. Roth <troth@openavr.org>
12709
12710 * avr-tdep.c (avr_extract_return_value): Remove function.
12711 (avr_store_return_value): Remove function.
12712 (avr_extract_struct_value_address): Remove function.
12713 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12714
12715 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12716
12717 * rs6000-tdep.c: Include "gdb_assert.h".
12718 (registers_e500): Add "acc" and "spefscr".
12719 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12720 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12721 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12722 really is "r0".
12723 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12724
12725 2003-02-18 Keith Seitz <keiths@redhat.com>
12726
12727 * Makefile.in: Add gdbtk-interps.c.
12728
12729 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12730
12731 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12732 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12733
12734 2003-02-18 Andrew Cagney <cagney@redhat.com>
12735
12736 * symtab.h (struct objfile): Add opaque declaration.
12737
12738 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12739
12740 From Jim Ingham <jingham@apple.com>:
12741 * dbxread.c (process_one_symbol): Use last_function_start rather
12742 than function_start_offset to find the real beginning of the
12743 current function. The latter is just the text section offset on
12744 some systems, the former is always the real function start.
12745
12746 2003-02-17 Andrew Cagney <cagney@redhat.com>
12747
12748 * configure.in: Revert ${target} != ${host}.
12749
12750 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12751
12752 * configure.in (Makefile): Use the test ${target} != ${host},
12753 instead of the absence of the "nm.h" file, to determine of the
12754 configuration non-native.
12755 * configure: Regenerate.
12756
12757 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12758
12759 From Brian Ford <ford@vss.fsi.com>
12760
12761 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12762 conditionalize tui_active test.
12763 (lookup_cmd_1): Ditto.
12764
12765 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12766
12767 * configure.in: Add check for _etext.
12768 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12769 available.
12770 * config.in, configure: regenerated.
12771
12772 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12773
12774 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12775
12776 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12777
12778 * main.c (tui_version): Delete variable.
12779 (captured_main): When --tui, set interpreter_p to "tui" instead of
12780 enabling tui_version.
12781 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12782 tui_version.
12783 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12784 * cli/cli-cmds.c (disassemble_command): Ditto.
12785 * defs.h (tui_version): Delete declaration.
12786 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12787 (tui-interp.o): Add rules.
12788 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12789
12790 2003-02-14 Christopher Faylor <cgf@redhat.com>
12791
12792 * win32-nat.c (register_loaded_dll): Correctly set address range for
12793 just-loaded dll.
12794
12795 2003-02-12 Jason Molenda (jmolenda@apple.com)
12796
12797 * symmisc.c (print_objfile_statistics): Include information about
12798 the number of psymtabs and symtabs in each object file.
12799
12800 2003-02-13 Keith R Seitz <keiths@redhat.com>
12801
12802 * main.h (struct captured_main_args): Add interpreter_p.
12803 * main.c (captured_main): Initialize interpreter_p from context.
12804 * gdb.c (main): Set interpreter_p argument.
12805 * Makefile.in (gdb.o): Add dependency for interps.h.
12806
12807 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12808
12809 * event-top.c (cli_command_loop): Delete declaration.
12810 (_initialize_event_loop): Delete function setting event_loop_hook.
12811 * event-top.h (cli_command_loop): Declare. Update copyright.
12812 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12813 * interps.c (current_interp_command_loop): When event_loop_p, call
12814 cli_command_loop.
12815
12816 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12817
12818 * interps.h (interp_command_loop_ftype): Change return type to
12819 void.
12820
12821 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12822
12823 * x86-64-tdep.c (x86_64_extract_return_value)
12824 (x86_64_store_return_value): Use regcache instead of regbuf.
12825 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12826 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12827
12828 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12829
12830 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12831 * aclocal.m4: Regenerate.
12832 * configure: Regenerate.
12833
12834 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12835 TCL_LD_SEARCH_FLAGS.
12836
12837 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12838
12839 * dwarf2cfi.c: Reindented.
12840
12841 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12842
12843 * interps.c (clear_interpreter_hooks): Convert function definition
12844 to ISO C.
12845
12846 2003-02-07 David Carlton <carlton@math.stanford.edu>
12847
12848 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12849
12850 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12851
12852 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12853 (struct type): ...to here.
12854 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12855 field.
12856 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12857 (replace_type): Set length on all type variants for a given type.
12858
12859 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12860
12861 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12862 <sys/stat.h>.
12863 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12864
12865 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12866
12867 * Makefile.in (symm-nat.o): Update dependencies.
12868 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12869 (lynx-nat.o, ia64-linux-nat.): Ditto.
12870 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12871 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12872 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12873
12874 * Makefile.in (inflow_h): Define.
12875 (procfs.o, inflow.o, procfs.o): Update dependencies.
12876 * inftarg.c (child_stop): Delete extern declaration of
12877 inferior_process_group. Include "inflow.h".
12878 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12879 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12880 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12881 (our_process_group, inferior_process_group): Extern declarations.
12882
12883 * procfs.c: Include "gdb_assert.h".
12884
12885 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12886 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12887 * jv-typeprint.c (java_type_print_base): Ditto.
12888 * typeprint.c (typedef_print): Eliminate STREQ.
12889 * cli/cli-script.c (define_command, define_command): Ditto.
12890 * main.c (captured_main): Ditto.
12891 * values.c (lookup_internalvar): Ditto.
12892 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12893 within `if' conditional.
12894 * linespec.c (decode_line_2): Ditto.
12895 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12896 (bfd_openw_with_cleanup): Ditto.
12897
12898 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12899
12900 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12901 legacy_extract_return_value and store_return_value to
12902 legacy_return_value.
12903
12904 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12905
12906 * win32-nat.c (get_relocated_section_addrs): New function. Find
12907 section load addresses for symbol handling in relocated DLLs.
12908 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12909
12910 2003-02-05 Fred Fish <fnf@intrinsity.com>
12911
12912 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12913 '=' and '!='.
12914 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12915 with '&' and '=='.
12916 (angel_RDI_info): Ditto.
12917 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12918 with '&' and '!='.
12919 (threads_continue_all_with_signals): Ditto.
12920
12921 2003-02-05 Jim Ingham <jingham@apple.com>
12922 Keith Seitz <keiths@redhat.com>
12923 Elena Zannoni <ezannoni@redhat.com>
12924 Andrew Cagney <ac131313@redhat.com>
12925
12926 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12927 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12928 (SUBDIR_MI_OBS): Add "mi-interp.o".
12929 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12930 (SFILES): Add "interps.c".
12931 (COMMON_OBS): Add "interps.o".
12932 (interps_h, mi_main_h): Define.
12933 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12934 (mi-main.o, main.o, event-top.o): Update dependencies.
12935 * cli/cli-interp.c: New file.
12936 * interps.h, interps.c: New files.
12937 * top.c: (gdb_init): Don't install the default interpreter, handed
12938 by captured_main.
12939 * main.c: Include "interps.h".
12940 (interpreter_p): Note that it should malloc'ed.
12941 (captured_command_loop): Call current_interp_command_loop.
12942 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12943 xfree and xstrdup when updating interpreter_p. Install the
12944 default interpreter. Add hack to stop mi1's copyright notice
12945 being encoded.
12946 * event-top.h (gdb_setup_readline): Declare.
12947 (gdb_disable_readline): Declare.
12948 * event-top.c: Include "interps.h".
12949 (display_gdb_prompt): Call current_interp_display_prompt_p.
12950 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12951 gdb_stdlog, and gdb_stdtarg.
12952 (_initialize_event_loop): Don't call gdb_setup_readline.
12953 * cli-out.c (cli_out_set_stream): New function.
12954 * cli-out.h (cli_out_set_stream): Declare.
12955
12956 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12957
12958 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12959 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12960 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12961 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12962 config/i386/i386v42mp.mt: Removed.
12963
12964 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12965
12966 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12967 GDB_OSABI_SOLARIS.
12968
12969 2003-02-05 Michael Chastain <mec@shout.net>
12970
12971 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12972 2.12.1 and earlier versions.
12973
12974 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12975
12976 Remove orphaned hosts, targets and files.
12977 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12978 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12979 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12980 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12981 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12982 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12983 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12984 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12985 * config/sparc/tm-sp64sim.h: Delete.
12986 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12987 hosts.
12988 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12989 mips*-dec-mach3* targets.
12990
12991 2003-02-04 Michael Chastain <mec@shout.net>
12992
12993 * NEWS: Fix typo: sepcifying -> specifying.
12994
12995 2003-02-04 Michael Chastain <mec@shout.net>
12996
12997 * dwarfread.c: Add documentation on the state of dwarf-1,
12998 looking towards obsoletion.
12999
13000 2003-02-03 Michael Chastain <mec@shout.net>
13001
13002 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13003 gdb/testsuite/gdb.c++/pr-1023.exp.
13004
13005 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13006
13007 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13008 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13009
13010 * utils.c (init_page_info): Delete reference to MPW in comments.
13011 * main.c (captured_main): Delete #ifdef MPW.
13012
13013 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13014
13015 * NEWS: Note that the m32r-*-elf* is obsolete.
13016 * monitor.c (monitor_expect): Obsolete reference to m32r.
13017 * configure.tgt: Mark m32r-*-elf* as obsolete.
13018 * MAINTAINERS: Mark m32k as obsolete.
13019 * m32r-rom.c: Obsolete file.
13020 * config/m32r/m32r.mt: Obsolete file.
13021 * config/m32r/tm-m32r.h: Obsolete file.
13022 * m32r-stub.c: Obsolete file.
13023 * m32r-tdep.c: Obsolete file.
13024
13025 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13026
13027 * NEWS: Mention that the z8k-zilog-none is obsolete.
13028 * MAINTAINERS: Mark z8k as obsolete.
13029 * configure.tgt: Obsolete the z8k-*-coff* target.
13030 * config/z8k/z8k.mt: Obsolete file.
13031 * config/z8k/tm-z8k.h: Obsolete file.
13032 * z8k-tdep.c: Obsolete file.
13033
13034 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13035
13036 * NEWS: Mention that the mn10200-elf is obsolete.
13037 * configure.tgt: Obsolete mn10200-*-* target.
13038 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13039 mention that the mn10200 is obsolete.
13040 * breakpoint.h: Ditto.
13041 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13042 * config/mn10200/mn10200.mt: Obsolete file.
13043 * config/mn10200/tm-mn10200.h: Obsolete file.
13044 * mn10200-tdep.c: Obsolete file.
13045
13046 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13047
13048 * MAINTAINERS: Mark h8500 as obsolete.
13049 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13050 * findvar.c (value_from_register): Ditto.
13051 * h8500-tdep.c: Mark file as obsolete.
13052 * config/h8500/h8500.mt: Ditto.
13053 * config/h8500/tm-h8500.h: Ditto.
13054 * NEWS: Mention that h8500 is obsolete.
13055
13056 2003-02-04 David Carlton <carlton@math.stanford.edu>
13057
13058 * objfiles.c (allocate_objfile): Always set name. Add comment at
13059 start of function.
13060 * jv-lang.c (get_dynamics_objfile): Add comment.
13061
13062 2003-02-04 David Carlton <carlton@math.stanford.edu>
13063
13064 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13065 * printcmd.c (build_address_symbolic): Replace uses of
13066 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13067 SYMBOL_NAME, and asm_demangle.
13068 Update copyright.
13069
13070 2003-02-04 David Carlton <carlton@math.stanford.edu>
13071
13072 * linespec.c (decode_compound): Extract code into
13073 lookup_prefix_sym.
13074 (lookup_prefix_sym): New function.
13075
13076 2003-02-04 David Carlton <carlton@math.stanford.edu>
13077
13078 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13079 FLOAT_COERCION_BADNESS.
13080 * gdbtypes.c (rank_one_type): Replace all uses of
13081 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13082
13083 2003-02-04 Jim Blandy <jimb@redhat.com>
13084
13085 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13086 section, let dwarf_macinfo_section point to it, not
13087 dwarf_loc_section.
13088
13089 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13090
13091 Pointed out by Anton Blanchard <anton@samba.org>.
13092 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13093 (ppc_linux_at_sigtramp_return_path): Use it.
13094
13095 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13096
13097 * defs.h (streq): Add prototype.
13098 * utils.c (streq): New function.
13099
13100 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13101 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13102 * mdebugread.c (new_symbol): Likewise.
13103 * stabsread.c (define_symbol): Likewise.
13104 * coffread.c (process_coff_symbol): Likewise.
13105 * dwarfread.c (new_symbol): Likewise.
13106
13107 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13108 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13109 here.
13110 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13111 SYMBOL_INIT_DEMANGLED_NAME.
13112 * objfiles.c: Include "hashtab.h".
13113 (allocate_objfile): Call htab_set_functions_ex for the
13114 demangled_names_hash.
13115 (free_objfile): Call htab_delete for the demangled_names_hash.
13116 * objfiles.h (struct htab): Add declaration.
13117 (struct objfile): Add demangled_names_hash.
13118 * symfile.c: Include "hashtab.h".
13119 (reread_symbols): Call htab_delete for the demangled_names_hash.
13120 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13121 SYMBOL_NAME in the bcache.
13122 * symtab.c: Include "hashtab.h". Update comments.
13123 (create_demangled_names_hash, symbol_set_names): New functions.
13124 (symbol_find_demangled_name): New function, broken out from
13125 symbol_init_demangled_names.
13126 (symbol_init_demangled_names): Use it.
13127 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13128 (SYMBOL_SET_NAMES): New macro.
13129 (symbol_set_names): Add prototype.
13130
13131 2003-02-03 Jim Blandy <jimb@redhat.com>
13132
13133 Use a single, consistent representation for an empty minimal
13134 symbol table in an objfile.
13135 * objfiles.c (terminate_minimal_symbol_table): New function.
13136 (allocate_objfile): Call it.
13137 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13138 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13139 non-NULL.
13140 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13141 objfile has minimal symbols, compare minimal_symbol_count to zero,
13142 instead of comparing msymbols with NULL.
13143 * objfiles.c (have_minimal_symbols): Same.
13144 * solib-sunos.c (solib_add_common_symbols): Call
13145 terminate_minimal_symbol_table.
13146 * symfile.c (reread_symbols): Same.
13147
13148 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13149
13150 * s390-tdep.c (s390_address_class_type_flags)
13151 (s390_address_class_type_flags_to_name)
13152 (s390_address_class_name_to_type_flags): New functions.
13153 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13154 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13155
13156 2003-02-03 Michael Snyder <msnyder@redhat.com>
13157
13158 * arm-tdep.c: Fix spell-o in comment.
13159
13160 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13161
13162 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13163 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13164 error messages to contain BFD filename.
13165
13166 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13167
13168 Fix PR gdb/742 gdb/743 gdb/877
13169 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13170 (do_mixed_source_and_assembly): Use
13171 make_cleanup_ui_out_tuple_begin_end and
13172 make_cleanup_ui_out_tuple_begin_end.
13173 (do_mixed_source_and_assembly): Ditto.
13174 * thread.c (do_captured_list_thread_ids): Ditto.
13175 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13176 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13177 ui_out_tuple_end): Delete prototypes.
13178 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13179 ui_out_list_end, ui_out_tuple_end): Delete.
13180
13181 From Kevin Buettner <kevinb@redhat.com>:
13182 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13183 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13184 (do_cleanup_table_end): New functions.
13185 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13186 Use cleanups to invoke_ui_out_tuple_end().
13187 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13188 * cli/cli-setshow.c (cmd_show_list): Use
13189 make_cleanup_ui_out_tuple_begin_end.
13190
13191 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13192
13193 * frame.c (frame_unwind_register): New function.
13194 (frame_unwind_unsigned_register): Use.
13195 (frame_unwind_signed_register): Use.
13196 (frame_read_register): New function.
13197 * frame.h (frame_unwind_register): Declare.
13198 (frame_read_register): Declare.
13199
13200 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13201 and frame_unwind_register instead of read_memory, write_register
13202 and deprecated_write_register_bytes.
13203
13204 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13205
13206 * frame.h: Note that namelen can be negative.
13207 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13208 NAME's length.
13209
13210 * NEWS: Mention that the d10v's `regs' command is deprecated.
13211 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13212 (d10v_print_registers_info): New function.
13213 (show_regs): Call d10v_print_registers_info.
13214 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13215
13216 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13217
13218 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13219 lost in the previous patch.
13220
13221 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13222
13223 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13224 * stack.c (print_frame_info_base): Output complete FRAME tuple
13225 for synthesized frames.
13226
13227 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13228
13229 * mips-nat.c (zerobuf): Delete.
13230 (fetch_inferior_registers): Alloc local zerobuf.
13231 (fetch_core_registers): Alloc local zerobuf.
13232 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13233 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13234 * thread-db.c (thread_db_store_registers): Ditto.
13235 * sh-tdep.c (sh_do_register): Ditto.
13236 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13237 * remote-sim.c (gdbsim_store_register): Ditto.
13238 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13239 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13240 * monitor.c (monitor_supply_register): Ditto.
13241 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13242 * mips-nat.c (fetch_inferior_registers): Ditto.
13243 * m68klinux-nat.c (fetch_register): Ditto.
13244 * lynx-nat.c (fetch_inferior_registers): Ditto.
13245 (fetch_inferior_registers): Ditto.
13246 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13247 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13248 (hpux_thread_store_registers): Ditto.
13249 * hppah-nat.c (fetch_register): Ditto.
13250 * hppab-nat.c (fetch_register): Ditto.
13251 * hppa-tdep.c (pa_register_look_aside): Ditto.
13252 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13253 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13254
13255 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13256
13257 * gdbarch.sh: Explictly specify all method levels. When a
13258 variable with an empty level, provide a non-multi-arch default.
13259 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13260 * gdbarch.h: Re-generate.
13261 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13262 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13263
13264 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13265
13266 * defs.h (host_pointer_to_address): Delete declaration.
13267 (address_to_host_pointer): Delete declaration.
13268 * utils.c (host_pointer_to_address): Delete function.
13269 (address_to_host_pointer): Delete function.
13270 * procfs.c (procfs_address_to_host_pointer): New function.
13271 * procfs.c (proc_set_watchpoint): Use.
13272 (procfs_can_use_hw_breakpoint): Update comments.
13273 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13274 (som_solib_add): Use.
13275 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13276 * hppa-tdep.c (unwind_command): Use.
13277
13278 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13279
13280 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13281 strlen d_name.
13282
13283 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13284 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13285 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13286 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13287 (define_symbol): Update.
13288 * symfile.c (generic_load): Remove references to nindy.
13289 * symtab.c: Remove references to nindy.
13290
13291 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13292
13293 * infcmd.c (print_float_info): Delete code conditional on
13294 FLOAT_INFO.
13295 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13296 * config/m68k/nm-apollo68b.h: Ditto.
13297 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13298 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13299 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13300
13301 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13302
13303 * config/i386/tm-i386os9k.h: Removed.
13304
13305 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13306 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13307 they're identical to i[3456]86-*-sysv* now.
13308 * config/i386/i386v32.mh: Removed.
13309 * config/i386/xm-i386v32.h: Removed.
13310 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13311
13312 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13313
13314 * config/i386/i386dgux.mh: Removed.
13315 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13316
13317 * configure.in: Fix typo.
13318 * configure: Regenerated.
13319
13320 2003-01-31 David Carlton <carlton@math.stanford.edu>
13321
13322 * dwarf2read.c (dwarf2_locate_sections): Set
13323 dwarf_ranges_section.
13324
13325 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13326
13327 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13328 * utils.c: Update comments documenting legitimate uses of PTR.
13329
13330 * utils.c: Re-indent.
13331
13332 * config/djgpp/fnchange.lst: Delete nindy files.
13333 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13334 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13335 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13336 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13337 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13338 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13339 * Makefile.in (init.c): Remove nindy references.
13340 (saber_gdb): Delete rule.
13341 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13342 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13343 and a68v-nat.c.
13344 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13345 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13346 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13347 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13348 nindy-share/stop.h.
13349 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13350 * saber.suppress: Delete file.
13351
13352 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13353
13354 * dbxread.c (stabs_data): New static variable.
13355 (fill_symbuf): Support an in-memory buffer for stabs data.
13356 (stabs_seek): New function.
13357 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13358 (read_ofile_symtab): Use stabs_seek.
13359 (elfstab_build_psymtabs): Take an asection* instead of
13360 an offset and size. Relocate the stabs data if necessary.
13361 Save the section* for dbx_psymtab_to_symtab.
13362 * dwarf2read.c: Add section variables for each debug section.
13363 (dwarf2_locate_sections): Fill them in.
13364 (dwarf2_read_section): Take an asection* argument.
13365 Relocate the section contents if necessary.
13366 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13367 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13368 it to dwarf2_read_section.
13369 (dwarf2_build_frame_info): Update callers.
13370 * elfread.c (elf_symfile_read): Update call to
13371 elfstab_build_psymtabs.
13372 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13373 (DBX_STAB_SECTION): New macro.
13374 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13375 * symfile.c (symfile_dummy_outputs): New function.
13376 (symfile_relocate_debug_section): New function.
13377 * symfile.h (symfile_relocate_debug_section): Add prototype.
13378
13379 2003-01-31 Richard Henderson <rth@redhat.com>
13380
13381 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13382 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13383 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13384 * alpha-tdep.c (alpha_register_name): Add "unique".
13385 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13386 (ALPHA_UNIQUE_REGNUM): New.
13387 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13388
13389 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13390
13391 * README: Remove reference to Ericsson 1800 monitor.
13392 * Makefile.in (remote-es.o): Delete rule.
13393 (ALLDEPFILES): Delete remote-es.c.
13394 * remote-es.c: Delete file.
13395 * config/m68k/es1800.mt: Delete file.
13396 * config/djgpp/fnchange.lst: Update.
13397 * configure.tgt: Delete m68*-ericsson-* target.
13398
13399 2003-01-31 Adam Fedor <fedor@gnu.org>
13400
13401 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13402 Remove duplicate/shadowing variable of same name.
13403
13404 2003-01-30 Jim Blandy <jimb@redhat.com>
13405
13406 * symfile.c (find_separate_debug_file): Assert that the objfile's
13407 directory name we compute ends with a slash, and then assume that
13408 that's so everywhere we use it.
13409
13410 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13411
13412 * valops.c (value_assign): Flush frame cache after stores to memory
13413 also.
13414
13415 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13416
13417 * Makefile.in (mon960-rom.o): Delete rule.
13418 * mon960-rom.c: Delete file.
13419
13420 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13421
13422 * d10v-tdep.c: Include "frame-unwind.h".
13423 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13424 list.
13425 (next_addr, uses_frame): Delete.
13426 (struct d10v_unwind_cache): Define.
13427 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13428 Use info instead of next_addr and uses_frame globals.
13429 (d10v_frame_init_saved_regs): Delete function.
13430 (d10v_init_extra_frame_info): Delete function.
13431 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13432 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13433 init_frame_pc or frame_saved_pc.
13434 (d10v_pop_frame): Delete function.
13435 (do_d10v_pop_frame): Delete function.
13436 (d10v_frame_chain): Delete function.
13437 (d10v_frame_chain_valid): Delete function.
13438 (d10v_frame_pc_unwind): New function.
13439 (d10v_frame_id_unwind): New function.
13440 (saved_regs_unwinder): New function.
13441 (d10v_frame_register_unwind): New function.
13442 (d10v_frame_pop): New function.
13443 (d10v_frame_unwind): New variable.
13444 (d10v_frame_p): New function.
13445 (d10v_frame_saved_pc): Delete function.
13446 * Makefile.in (d10v-tdep.o): Update dependencies.
13447
13448 2003-01-30 J. Brobecker <brobecker@gnat.com>
13449
13450 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13451 causing some regressions due to a change in the default value
13452 for this macro.
13453
13454 2003-01-29 Richard Henderson <rth@redhat.com>
13455 Elena Zannoni <ezannoni@redhat.com>
13456 Daniel Jacobowitz <drow@mvista.com>
13457
13458 Fix PR gdb/961.
13459 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13460 variables.
13461 (RANGES_SECTION): New.
13462 (dwarf_ranges_buffer): New variable.
13463 (struct comp_unit_head): Add member "die".
13464 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13465 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13466 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13467 (dwarf2_locate_sections): Likewise.
13468 (dwarf2_build_psymtabs): Read .debug_ranges.
13469 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13470 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13471 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13472 Look for DW_AT_ranges and return the bounding box.
13473
13474 2003-01-29 Brian Ford <ford@vss.fsi.com>
13475
13476 * win32-nat.c (cygwin_pid): Removed as unused.
13477 (child_attach): Try fall back to Cygwin pid.
13478
13479 2003-01-29 Jim Blandy <jimb@redhat.com>
13480
13481 * objfiles.h (struct objfile): Doc fix.
13482
13483 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13484
13485 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13486 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13487 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13488 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13489 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13490 (FRAME_SAVED_PC): Change to a function with predicate.
13491 * gdbarch.h, gdbarch.c: Re-generate.
13492
13493 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13494
13495 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13496
13497 * complaints.c (complain): Delete function.
13498 * complaints.h (struct deprecated_complaint): Delete definition.
13499 (complain): Delete declaration.
13500
13501 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13502
13503 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13504 dummy frames.
13505
13506 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13507
13508 * sentinel-frame.h, sentinel-frame.c: New files.
13509 * Makefile.in (frame.o): Update dependencies.
13510 (SFILES): Add sentinel-frame.c.
13511 (sentinel_frame_h): Define.
13512 (COMMON_OBS): Add sentinel-frame.o.
13513 (sentinel-frame.o): Specify dependencies.
13514 * frame.c: Include "sentinel-frame.h".
13515 (frame_register_unwind): Rewrite assuming that there is always a a
13516 ->next frame.
13517 (frame_register, generic_unwind_get_saved_register): Ditto.
13518 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13519 (create_sentinel_frame, unwind_to_current_frame): New functions.
13520 (get_current_frame): Rewrite using create_sentinel_frame and
13521 unwind_to_current_frame. When possible, always create a frame.
13522 (create_new_frame): Set next to the sentinel frame.
13523 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13524 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13525 ID cache when necessary.
13526 (frame_saved_regs_id_unwind): Use frame_relative_level.
13527 (deprecated_generic_get_saved_register): Use frame_relative_level,
13528 get_frame_saved_regs, get_frame_pc, get_frame_base and
13529 get_next_frame.
13530 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13531 frame_register.
13532
13533 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13534
13535 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13536
13537 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13538
13539 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13540 (maintenance_set_profile_cmd): Use error () instead of warning ().
13541
13542 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13543
13544 * configure.in: Check that -pg works if using --enable-profiling.
13545 Check for monstartup and _mcleanup regardless of --enable-profiling.
13546 * maint.c: Check for monstartup and _mcleanup before using them.
13547 * config.in: Regenerated.
13548 * configure: Regenerated.
13549
13550 2003-01-24 Nick Clifton <nickc@redhat.com>
13551
13552 * Add sh2e support:
13553
13554 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13555
13556 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13557 (sh2e_show_regs): New.
13558 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13559 * config/sh/tm-sh.h: Added sh2e to comments.
13560
13561 2003-01-23 Jim Blandy <jimb@redhat.com>
13562
13563 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13564 symbols found)" message here; we haven't checked for a separate
13565 debug info file yet, so we don't know yet.
13566 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13567 we've looked everywhere. Also, there's no need to print a special
13568 message when we're loading the separate debug info file: the one
13569 symbol_file_add prints is fine.
13570
13571 2003-01-23 Alexander Larsson <alexl@redhat.com>
13572 Jim Blandy <jimb@redhat.com>
13573
13574 Add support for executables whose debug info has been separated
13575 out into a separate file, leaving only a link behind.
13576 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13577 and separate_debug_objfile_backlink.
13578 (put_objfile_before): New declaration.
13579 * symfile.c: #include "filenames.h".
13580 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13581 debug info in a separate file, read that, too. Save the addrs
13582 argument, so we can use it again to read the separated debug info;
13583 syms_from_objfile modifies the table we pass it.
13584 (reread_symbols): After re-reading an objfile, call
13585 reread_separate_symbols to refresh its separate debug info
13586 objfile, if it has one.
13587 (reread_separate_symbols, find_separate_debug_file,
13588 get_debug_link_info, separate_debug_file_exists): New functions.
13589 (debug_file_directory): New global var.
13590 (_initialize_symfile): Initialize debug_file_directory, and
13591 provide the new `set debug-file-directory' command to let the user
13592 change it.
13593 * objfiles.c (free_objfile): If this objfile has its debug info in
13594 a separate objfile, free that one too. If this is itself a
13595 separate debug info objfile, clear our parent's backlink.
13596 (put_objfile_before): New function.
13597 * utils.c (gnu_debuglink_crc32): New function.
13598 * defs.h (gnu_debuglink_crc32): New declaration.
13599 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13600 * configure.in: Handle --with-separate-debug-dir config option.
13601 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13602 * acconfig.h (DEBUGDIR): New macro.
13603 * configure, aclocal.m4, config.in: Regenerated.
13604
13605 2003-01-22 Jim Blandy <jimb@redhat.com>
13606
13607 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13608 like the old symbol_file_add, but taking new arguments: you can
13609 now pass in either a `struct section_addr_info' list to say where
13610 each section is loaded, or a `struct section_offsets' table. Pass
13611 these new arguments through to syms_from_objfile as appropriate.
13612 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13613 with the appropriate quiescent values for the new arguments.
13614
13615 * symfile.c: #include "gdb_assert.h".
13616 (syms_from_objfile): Add the ability to pass in a section offset
13617 table directly, as an alternative to the section_addr_info table.
13618 Document arguments better.
13619 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13620 * symfile.h (syms_from_objfile): Update declaration.
13621 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13622 syms_from_objfile.
13623 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13624
13625 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13626
13627 Original patch by Tom Tromey <tromey@cygnus.com> and
13628 Jason Molenda <jmolenda@apple.com>.
13629 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13630 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13631 * NEWS: Mention profiling.
13632 * configure.in (--enable-gdbtk): Fix typo.
13633 (--enable-profiling): New. Set PROFILE_CFLAGS.
13634 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13635 Fill in function.
13636 (profiling_state): New variable.
13637 (mcleanup_wrapper): New function.
13638 (_initialize_maint): Remove NOTYET, fix call to
13639 add_setshow_boolean_cmd for "maint set profile".
13640 * configure: Regenerated.
13641
13642 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13643
13644 * Makefile.in (install-gdbtk): Install PNG images too.
13645
13646 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13647
13648 * exec.c (text_start): Delete global variable.
13649 (exec_file_attach): Make text_start local to the function.
13650 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13651 * valops.c (hand_function_call): Delete code that handles
13652 BEFORE_TEXT_END and AFTER_TEXT_END.
13653 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13654 of CALL_DUMMY_LOCATION.
13655 * gdbarch.c: Regenerate.
13656 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13657 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13658 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13659 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13660 (text_end): Delete extern declaration.
13661
13662 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13663
13664 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13665 * blockframe.c (backtrace_below_main): Move to "frame.c".
13666 (frame_chain_valid): Delete check for backtrace_below_main.
13667 (_initialize_blockframe): Delete initialization, move ``set
13668 backtrace-below-main'' command to "frame.c".
13669 (do_flush_frames_sfunc): Delete function.
13670 * frame.c: Include "command.h" and "gdbcmd.h".
13671 (frame_type_from_pc): New function.
13672 (create_new_frame): Use frame_type_from_pc.
13673 (legacy_get_prev_frame): New function.
13674 (get_prev_frame): Rewrite. When an old style frame, call
13675 legacy_get_prev_frame. Otherwize, unwind the PC first.
13676 (_initialize_frame): Add ``set backtrace-below-main'' command.
13677 * Makefile.in (frame.o): Update dependencies.
13678
13679 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13680
13681 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13682 DEPRECATED_REGISTERS_INFO.
13683
13684 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13685
13686 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13687 Maintainers'. Update `Various Maintainers'.
13688
13689 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13690
13691 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13692 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13693 Suppress actual parameters when `-'.
13694 * gdbarch.h, gdbarch.c: Regenerate.
13695
13696 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13697
13698 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13699 code handling dummy frames.
13700
13701 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13702
13703 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13704 (struct frame_unwind): Add field pop.
13705 * frame.h (frame_pop): Declare.
13706 * frame.c (frame_saved_regs_pop): New function.
13707 (trad_frame_unwinder): Add frame_saved_regs_pop.
13708 (frame_pop): New function.
13709 * dummy-frame.c (dummy_frame_pop): New function.
13710 (discard_innermost_dummy): New function.
13711 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13712 (dummy_frame_unwind): Add dummy_frame_pop.
13713 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13714 * valops.c (hand_function_call): Ditto.
13715 * stack.c (return_command): Ditto.
13716
13717 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13718
13719 * cris-tdep.c: Fix function declaration indentation.
13720 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13721 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13722 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13723 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13724 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13725 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13726
13727 2003-01-18 Michael Chastain <mec@shout.net>
13728
13729 * README (Unpacking and Installation -- quick overview):
13730 Warn against ".../gdb-5.3/gdb/configure".
13731
13732 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13733
13734 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13735 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13736 (struct frame_unwind): Declare opaque.
13737 (dummy_frame_p): Declare function.
13738 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13739 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13740 * dummy-frame.c: Include "frame-unwind.h".
13741 (dummy_frame_p): New function.
13742 (dummy_frame_unwind): New variable.
13743 * frame.c: Include "frame-unwind.h".
13744 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13745 to use the new unwind field.
13746 (set_unwind_by_pc): Delete function.
13747 (create_new_frame, get_prev_frame): Set unwind field using
13748 frame_unwind_find_by_pc.
13749 (trad_frame_unwind, trad_frame_unwinder): New variables.
13750 * frame.h (trad_frame_unwind): Declare variable.
13751 (frame_id_unwind_ftype): Delete declaration.
13752 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13753 (struct frame_unwind): Declare opaque.
13754 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13755 register_unwind with a single unwind pointer.
13756 * frame-unwind.h, frame-unwind.c: New files.
13757 * Makefile.in (SFILES): Add frame-unwind.c.
13758 (frame_unwind_h): Define.
13759 (COMMON_OBS): Add frame-unwind.o.
13760 (frame-unwind.o): Specify dependencies.
13761 (frame.o, dummy-frame.o): Update dependencies.
13762
13763 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13764
13765 * ada-valprint.c: Eliminate PTR.
13766 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13767 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13768 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13769 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13770 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13771 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13772 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13773
13774 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13775
13776 * main.c (captured_main): Don't use PTR.
13777 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13778 * gdbtypes.c (lookup_primitive_typename): Ditto.
13779 (lookup_struct_elt_type): Ditto.
13780 * f-valprint.c (info_common_command): Ditto.
13781 (list_all_visible_commons): Ditto.
13782 * jv-typeprint.c (java_type_print_base): Ditto.
13783
13784 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13785 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13786 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13787 i386-interix-nat.c and i386-interix-tdep.c. Rename
13788 m68klinux-nat.c and m68klinux-tdep.c. Rename
13789 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13790 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13791 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13792 * main.c (captured_main): Use xfree, not free.
13793
13794 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13795
13796 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13797 ID back using a parameter.
13798 * frame.c (frame_id_unwind): Update call.
13799 (frame_saved_regs_id_unwind): Update.
13800 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13801 * dummy-frame.h (struct frame_id): Add opaque declaration.
13802 (dummy_frame_id_unwind): Update declaration.
13803
13804 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13805
13806 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13807
13808 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13809
13810 * MAINTAINERS (Stephen P. Smith): Updated email address.
13811
13812 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13813
13814 Fix PR gdb/898
13815 * breakpoint.c (until_break_command): Add new argument. Use it to
13816 decide whether to stop only at the current frame or not.
13817 * breakpoint.h (until_break_command): Update prototype.
13818 * infcmd.c (until_command): Add new argument to until_break_command
13819 call.
13820 (advance_command): New function.
13821 (_initialize_infcmd): Update help string for 'until' command.
13822 Add new 'advance' command.
13823
13824 2003-01-14 David Carlton <carlton@math.stanford.edu>
13825
13826 * linespec.c (decode_line_1): Normalize comments.
13827 (set_flags): Ditto.
13828 (locate_first_half): Ditto.
13829 (decode_compound): Ditto.
13830 (symtab_from_filename): Ditto.
13831 (decode_all_digits): Ditto.
13832 (decode_dollar): Ditto.
13833 (find_methods): Ditto.
13834 (find_toplevel_char): Ditto.
13835
13836 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13837
13838 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13839 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13840 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13841 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13842 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13843 * language.c, language.h, m32r-tdep.c: Update copyright.
13844 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13845 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13846 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13847 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13848 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13849 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13850
13851 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13852
13853 * stabsread.h (process_later, resolve_cfront_continuation):
13854 Obsolete.
13855 Update copyright years.
13856 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13857 Update copyright year.
13858 * dbxread.c(struct cont_elem): Obsolete.
13859 (process_later, process_now): Obsolete functions.
13860 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13861 Update copyright year.
13862 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13863 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13864 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13865 (parse_partial_symbols): Obsolete cfront support.
13866 * stabsread.c
13867 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13868 macros.
13869 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13870 read_cfront_baseclasses, read_cfront_member_functions,
13871 resolve_cfront_continuation,read_cfront_static_fields,
13872 copy_cfront_struct_fields): Obsolete functions.
13873 (define_symbol, read_one_struct_field): Obsolete cfront support.
13874 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13875 Update Copyright year.
13876
13877 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13878
13879 * stack.c (print_frame_info, print_stack_frame_base_stub,
13880 print_stack_frame_base, show_and_print_stack_frame_stub,
13881 show_and_print_stack_frame, print_only_stack_frame_stub,
13882 print_only_stack_frame): Delete functions.
13883 (print_stack_frame_stub): Call print_frame_info instead of
13884 print_frame_info_base.
13885 (print_frame_info_base): Rename to print_frame_info.
13886 (backtrace_command_1): Call print_frame_info, instead of
13887 print_frame_info_base.
13888 (current_frame_command): Call print_stack_frame, instead of
13889 print_only_stack_frame.
13890 (frame_command): Call print_stack_frame, instead of
13891 show_and_print_stack_frame.
13892 (up_command): Ditto.
13893 (down_command): Ditto.
13894 * frame.h (print_only_stack_frame): Delete prototype.
13895 * infrun.c (normal_stop): Call print_stack_frame, instead of
13896 show_and_print_stack_frame.
13897 * thread.c (info_threads_command): Call print_stack_frame, instead
13898 of print_only_stack_frame.
13899
13900 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13901
13902 * README (Graphical interface to GDB): Update URL. Point at
13903 gdb/links/.
13904
13905 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13906 version match.
13907
13908 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13909
13910 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13911 lines.
13912
13913 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13914
13915 * thread-db.c (attach_thread): Prototype.
13916 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13917 thread information (ti), and valid flags (th_valid, ti_valid).
13918 (attach_thread): Move target_pid_to_str call to after the thread
13919 is added to GDB's list. Initialize the cache.
13920 (thread_get_info_callback, thread_db_map_id2thr)
13921 (thread_db_get_info): New functions.
13922 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13923 (thread_db_store_registers, thread_db_thread_alive)
13924 (thread_db_get_thread_local_address): Use them.
13925 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13926 of calling error() for threads in unknown state.
13927
13928 (clear_lwpid_callback): New function.
13929 (thread_db_resume): Use it to clear the cache.
13930
13931 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13932
13933 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13934 (resume_callback): Remove dead code.
13935
13936 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13937
13938 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13939 predicate.
13940 * gdbarch.h, gdbarch.c: Regenerate.
13941 * stack.c (frame_info): Only initialize the saved registers when
13942 FRAME_INIT_SAVED_REGS_P.
13943 * frame.c (frame_saved_regs_register_unwind): Assert
13944 FRAME_INIT_SAVED_REGS_P.
13945 (deprecated_generic_get_saved_register): Ditto.
13946
13947 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13948
13949 * source.c (openp): Squelch warning about "filename".
13950
13951 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13952
13953 * source.c (openp): If the file does not exist don't necessarily
13954 search the path.
13955
13956 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13957
13958 Fix PR gdb/872.
13959 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13960 (integer_types_same_name_p): New function.
13961 (rank_one_type): Use it.
13962 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13963
13964 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13965
13966 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13967 variables.
13968 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13969 * configure.in: Add --with-sysroot.
13970 * configure: Regenerated.
13971 * main.c (gdb_sysroot): New variable.
13972 (captured_main): Initialize gdb_sysroot.
13973 * defs.h (gdb_sysroot): New extern declaration.
13974 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13975
13976 2003-01-12 Michael Chastain <mec@shout.net>
13977
13978 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13979
13980 2003-01-12 Michael Chastain <mec@shout.net>
13981
13982 * top.c (print_gdb_version): Bump copyright year to 2003.
13983
13984 2003-01-12 David Carlton <carlton@bactrian.org>
13985
13986 * linespec.c (symtab_from_filename): Rename variable 's' to
13987 'file_symtab'.
13988
13989 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13990
13991 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13992 dummy frame.
13993 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13994
13995 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13996
13997 * d10v-tdep.c: Include "gdb_assert.h".
13998 (d10v_store_return_value): Rewrite to match current interface.
13999 (d10v_extract_struct_value_address): Ditto.
14000 (d10v_extract_return_value): Ditto.
14001 (d10v_gdbarch_init): Set store_restore_value,
14002 extract_struct_value_address and extract_return_value.
14003
14004 2003-01-12 J. Brobecker <brobecker@gnat.com>
14005
14006 * hpread.c (set_namestring): New procedure replacing the
14007 SET_NAMESTRING macro.
14008 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14009 by calls to set_namestring.
14010
14011 2003-01-11 J. Brobecker <brobecker@gnat.com>
14012
14013 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14014 a compilation warning.
14015 (hpread_process_one_debug_symbol): Likewise.
14016
14017 2003-01-10 David Carlton <carlton@math.stanford.edu>
14018
14019 * linespec.c (decode_line_1): Rename variable 's' to
14020 'file_symtab'.
14021 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14022 (decode_dollar): Ditto.
14023 (decode_variable): Ditto.
14024 (symbol_found): Ditto.
14025
14026 2003-01-09 Michael Chastain <mec@shout.net>
14027
14028 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14029
14030 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
14031
14032 * win32-nat.c (set_process_privilege): New function.
14033 (child_attach): Call set_process_privilege() to enable the
14034 SE_DEBUG_NAME user privilege if available in process token.
14035
14036 2003-01-10 J. Brobecker <brobecker@gnat.com>
14037
14038 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14039 compilation error in the previous revision.
14040
14041 2003-01-09 David Carlton <carlton@math.stanford.edu>
14042
14043 * linespec.c: Update copyright.
14044
14045 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
14046
14047 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14048 than inferior_ptid.
14049 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14050
14051 2003-01-09 Andrew Cagney <ac131313@redhat.com>
14052
14053 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14054 Update comments.
14055 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14056 (frame_saved_regs_zalloc): Update.
14057 (frame_saved_regs_register_unwind): Update.
14058 (create_new_frame): Update.
14059 (get_prev_frame): Update.
14060 (frame_extra_info_zalloc): Update.
14061 (deprecated_get_frame_saved_regs): Update.
14062 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14063 * cris-tdep.c: Update comment.
14064
14065 * somsolib.h: Fix function indentation.
14066 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14067 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14068 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14069 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14070 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14071
14072 * infrun.c (follow_fork): Use ISO C definition.
14073 * expprint.c (print_subexp): Use xfree instead of free.
14074 * charset.c: Include "gdb_string.h" instead of <string.h>.
14075 (register_iconv_charsets): Use ISO C definition.
14076 (host_charset, target_charset): Ditto.
14077 * Makefile.in (charset.o): Update dependencies.
14078 (mi-cmd-env.o): Update dependencies.
14079
14080 2003-01-08 Andrew Cagney <cagney@redhat.com>
14081
14082 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14083 get_frame_base.
14084
14085 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14086
14087 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14088 build directories. Save edited gdb output in Mbuild.log. If a
14089 build fails, remove any final GDB executable.
14090
14091 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14092
14093 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14094 replacing hex constants with function names and stripping leading
14095 file name directory prefixes.
14096
14097 2003-01-08 Andrew Cagney <cagney@redhat.com>
14098
14099 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14100 get_frame_base.
14101
14102 2003-01-08 David Carlton <carlton@math.stanford.edu>
14103
14104 * linespec.c (decode_line_1): Move code into decode_variable.
14105 (decode_variable): New function.
14106
14107 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14108
14109 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14110
14111 2003-01-08 Andrew Cagney <cagney@redhat.com>
14112
14113 * cris-tdep.c (cris_frame_init_saved_regs): Use
14114 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14115 saved_regs buffer.
14116 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14117 (sh64_nofp_frame_init_saved_regs): Ditto.
14118 (sh_fp_frame_init_saved_regs): Ditto.
14119 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14120 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14121 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14122 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14123
14124 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
14125
14126 * minsyms.c (lookup_minimal_symbol): Update comment.
14127 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14128 (lookup_minimal_symbol_solib_trampoline): Likewise.
14129
14130 2003-01-08 Andrew Cagney <cagney@redhat.com>
14131
14132 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14133 frame_relative_level.
14134
14135 * alpha-tdep.c: Use get_frame_extra_info.
14136 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14137 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14138 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14139 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14140
14141 * alpha-tdep.c: Use get_next_frame.
14142 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14143 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14144 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14145 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14146 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14147 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14148 * xstormy16-tdep.c: Ditto.
14149
14150 2003-01-07 Andrew Cagney <cagney@redhat.com>
14151
14152 * alpha-tdep.c: Use get_frame_base.
14153 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14154 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14155 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14156 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14157 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14158 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14159 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14160 * config/sparc/tm-sparc.h: Ditto.
14161
14162 2003-01-07 Andrew Cagney <cagney@redhat.com>
14163
14164 * frame.c (deprecated_get_frame_context): New function.
14165 (deprecated_set_frame_context): New function.
14166 * frame.h (deprecated_get_frame_context): Declare.
14167 (deprecated_set_frame_context): Declare.
14168 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14169 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14170
14171 2003-01-07 Andrew Cagney <cagney@redhat.com>
14172
14173 * frame.c (deprecated_set_frame_next_hack): New function.
14174 (deprecated_set_frame_prev_hack): New function.
14175 * frame.h (deprecated_set_frame_next_hack): Declare.
14176 (deprecated_set_frame_prev_hack): Declare.
14177 * mcore-tdep.c (analyze_dummy_frame): Use
14178 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14179 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14180
14181 2003-01-07 David Carlton <carlton@math.stanford.edu>
14182
14183 * linespec.c (decode_line_1): Move code into decode_dollar.
14184 (decode_dollar): New function.
14185
14186 2003-01-07 Andrew Cagney <cagney@redhat.com>
14187
14188 * arm-tdep.c (arm_init_extra_frame_info): Use
14189 deprecated_update_frame_base_hack.
14190 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14191 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14192 (fix_frame_pointer): Ditto.
14193 (mn10300_analyze_prologue): Ditto.
14194
14195 2003-01-07 Andrew Cagney <cagney@redhat.com>
14196
14197 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14198 extra_info using frame_extra_info_zalloc.
14199 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14200 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14201 (sh64_init_extra_frame_info): Ditto.
14202 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14203 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14204 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14205 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14206 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14207 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14208 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14209 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14210 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14211 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14212 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14213 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14214
14215 * mn10300-tdep.c (analyze_dummy_frame): Use
14216 deprecated_set_frame_extra_info_hack.
14217 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14218
14219 2003-01-07 J. Brobecker <brobecker@gnat.com>
14220
14221 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14222 class is not scText. These do not define "real" procedures.
14223 (parse_partial_symbols): Likewise.
14224
14225 2003-01-06 Michael Snyder <msnyder@redhat.com>
14226
14227 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14228
14229 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14230
14231 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14232 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14233 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14234 deprecated_frame_xmalloc_with_cleanup.
14235 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14236 deprecated_frame_xmalloc.
14237 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14238 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14239
14240 2003-01-06 Andrew Cagney <cagney@redhat.com>
14241
14242 * x86-64-linux-tdep.c: Include "osabi.h".
14243 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14244
14245 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14246
14247 2003-01-06 Andrew Cagney <cagney@redhat.com>
14248
14249 * MAINTAINERS (Target Instruction Set Architectures): Update
14250 arm-elf. Can be built with -Werror, has been multiarched.
14251
14252 * value.h (unpack_long): Make buffer parameter constant.
14253 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14254 * scm-lang.h (scm_parse): Ditto.
14255 * defs.h (extract_typed_address, extract_address): Ditto.
14256 (extract_long_unsigned_integer): Ditto.
14257 * inferior.h (unsigned_pointer_to_address): Ditto.
14258 (signed_pointer_to_address): Ditto.
14259 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14260 * gdbarch.h, gdbarch.c: Regenerate.
14261 * findvar.c (extract_long_unsigned_integer): Update.
14262 (extract_address): Update.
14263 (extract_typed_address): Update.
14264 (unsigned_pointer_to_address): Update.
14265 * values.c (unpack_long): Update.
14266 (unpack_double): Update.
14267 (unpack_pointer): Update.
14268 (unpack_field_as_long): Update.
14269 * d10v-tdep.c (d10v_pointer_to_address): Update.
14270 * avr-tdep.c (avr_pointer_to_address): Update.
14271 * scm-lang.c (scm_unpack): Update.
14272 * findvar.c (signed_pointer_to_address): Update.
14273
14274 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14275
14276 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14277 since it is in i386-tdep.c.
14278
14279 2003-01-06 J. Brobecker <brobecker@gnat.com>
14280
14281 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14282 failure introduced in the previous change.
14283
14284 2003-01-05 Michael Chastain <mec@shout.net>
14285
14286 * README: Remove references to deleted remote-*.c files:
14287 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14288 remote-nrom.c, remote-os9k.c, remote-udi.c.
14289
14290 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14291
14292 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14293 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14294 i386_get_longjmp_target.
14295
14296 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14297
14298 * arm-tdep.c (prologue_cache): Change to a pointer.
14299 (_initialize_arm_tdep): Allocate prologue_cache.
14300 (check_prologue_cache): Update.
14301 (save_prologue_cache): Update.
14302 (arm_gdbarch_init): Update.
14303
14304 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14305
14306 * stabsread.c (update_method_name_from_physname): Call complaint()
14307 instead of error.
14308
14309 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14310
14311 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14312 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14313 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14314
14315 * blockframe.c: Include "gdbcmd.h" and "command.h".
14316 (backtrace_below_main): New variable.
14317 (file_frame_chain_valid, func_frame_chain_valid)
14318 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14319 (generic_func_frame_chain_valid): Remove functions.
14320 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14321 (_initialize_blockframe): New function.
14322 * Makefile.in (blockframe.o): Update dependencies.
14323 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14324 comment. Call frame_chain_valid ().
14325 * frame.h: Remove old prototypes. Add prototype for
14326 frame_chain_valid and update comments to match.
14327 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14328 Remove old comment.
14329 * gdbarch.h: Regenerated.
14330 * gdbarch.c: Regenerated.
14331
14332 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14333 set_gdbarch_frame_chain_valid.
14334 * avr-tdep.c (avr_gdbarch_init): Likewise.
14335 * cris-tdep.c (cris_gdbarch_init): Likewise.
14336 * frv-tdep.c (frv_gdbarch_init): Likewise.
14337 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14338 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14339 (i386_nw_init_abi): Likewise.
14340 (i386_gdbarch_init): Likewise.
14341 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14343 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14344 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14345 * mips-tdep.c (mips_gdbarch_init): Likewise.
14346 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14347 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14348 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14349 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14350 * s390-tdep.c (s390_gdbarch_init): Likewise.
14351 * sh-tdep.c (sh_gdbarch_init): Likewise.
14352 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14353 * v850-tdep.c (v850_gdbarch_init): Likewise.
14354 * vax-tdep.c (vax_gdbarch_init): Likewise.
14355 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14356
14357 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14358 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14359 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14360 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14361 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14362 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14363 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14364 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14365
14366 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14367
14368 * Makefile.in (acconfig_h): Remove incorrect macro.
14369 (config_h): Define.
14370 (osabi.o): Update dependencies.
14371 * configure.tgt: Set gdb_osabi based on target triplet.
14372 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14373 * configure: Regenerated.
14374 * config.in: Regenerated.
14375 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14376 (GDB_OSABI_DEFAULT): Define if not already defined.
14377 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14378 (set_osabi_string): New variables.
14379 (gdbarch_register_osabi): Add new OS ABI to
14380 gdb_osabi_available_names.
14381 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14382 (set_osabi, show_osabi): New functions.
14383 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14384
14385 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14386
14387 * arch-utils.c (gdbarch_info_init): Set osabi to
14388 GDB_OSABI_UNINITIALIZED.
14389 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14390 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14391 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14392 * gdbarch.c: Regenerated.
14393 * gdbarch.h: Regenerated.
14394 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14395 there's no BFD.
14396 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14397 * osabi.h (enum gdb_osabi): Move to defs.h.
14398 (gdbarch_init_osabi): Update prototype.
14399 * defs.h (enum gdb_osabi): Moved here.
14400 * Makefile.in: Update dependencies.
14401
14402 * alpha-tdep.h: Don't include "osabi.h".
14403 (struct gdbarch_tdep): Remove osabi member.
14404 * alpha-tdep.c: Include "osabi.h".
14405 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14406 iterate over arches. Update call to gdbarch_init_osabi.
14407 (alpha_dump_tdep): Don't dump osabi.
14408 * alpha-linux-tdep.c: Include "osabi.h".
14409 * alpha-osf1-tdep.c: Include "osabi.h".
14410 * alphafbsd-tdep.c: Include "osabi.h".
14411 * alphanbsd-tdep.c: Include "osabi.h".
14412
14413 * arm-tdep.h: Don't include "osabi.h".
14414 (struct gdbarch_tdep): Remove osabi member.
14415 * arm-tdep.c: Include "osabi.h".
14416 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14417 iterate over arches. Update call to gdbarch_init_osabi.
14418 (arm_dump_tdep): Don't dump osabi.
14419 * arm-linux-tdep.c: Include "osabi.h".
14420 * armnbsd-tdep.c: Include "osabi.h".
14421
14422 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14423 Update call to gdbarch_init_osabi.
14424
14425 * i386-tdep.h: Don't include "osabi.h".
14426 (struct gdbarch_tdep): Remove osabi member.
14427 * i386-tdep.c: Include "osabi.h".
14428 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14429 iterate over arches. Update call to gdbarch_init_osabi.
14430 (i386_dump_tdep): Don't dump osabi.
14431 * i386-linux-tdep.c: Include "osabi.h".
14432 * i386-sol2-tdep.c: Include "osabi.h".
14433 * i386bsd-tdep.c: Include "osabi.h".
14434 * i386gnu-tdep.c: Include "osabi.h".
14435 * i386ly-tdep.c: Include "osabi.h".
14436 * i386nbsd-tdep.c: Include "osabi.h".
14437 * i386obsd-tdep.c: Include "osabi.h".
14438
14439 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14440 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14441 check osabi when iterating over arches. Update call to
14442 gdbarch_init_osabi.
14443 (mips_dump_tdep): Don't dump osabi.
14444
14445 * ns32k-tdep.h: Don't include "osabi.h".
14446 (struct gdbarch_tdep): Remove.
14447 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14448 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14449 allocate tdep. Update call to gdbarch_init_osabi.
14450 (ns32k_dump_tdep): Remove.
14451 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14452 * ns32knbsd-tdep.c: Include "osabi.h".
14453
14454 * ppc-tdep.h: Don't include "osabi.h".
14455 (struct gdbarch_tdep): Remove osabi member.
14456 * rs6000-tdep.c: Include "osabi.h".
14457 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14458 osabi when iterating over arches. Update call to
14459 gdbarch_init_osabi.
14460 (rs6000_dump_tdep): Don't dump osabi.
14461 * ppc-linux-tdep.c: Include "osabi.h".
14462 * ppcnbsd-tdep.c: Include "osabi.h".
14463
14464 * sh-tdep.h: Don't include "osabi.h".
14465 (struct gdbarch_tdep): Remove osabi member.
14466 * sh-tdep.c: Include "osabi.h".
14467 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14468 iterate over arches. Update call to gdbarch_init_osabi.
14469 (sh_dump_tdep): Don't dump osabi.
14470 * shnbsd-tdep.c: Include "osabi.h".
14471
14472 * sparc-tdep.c: Include "osabi.h".
14473 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14474 iterate over arches. Update call to gdbarch_init_osabi.
14475 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14476 tdep structure.
14477
14478 * vax-tdep.h: Don't include "osabi.h".
14479 (struct gdbarch_tdep): Remove.
14480 * vax-tdep.c: Include "osabi.h".
14481 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14482 iterate over arches. Don't allocate tdep. Update call
14483 to gdbarch_init_osabi.
14484 (vax_dump_tdep): Remove.
14485 (_initialize_vax_tdep): Update call to gdbarch_register.
14486
14487 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14488
14489 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14490 entirely.
14491 (breakpoint_re_set_one): Don't fetch the value for a disabled
14492 watchpoint.
14493
14494 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14495
14496 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14497 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14498 (COERCE_FLOAT_TO_DOUBLE): Remove.
14499 * gdbarch.c: Regenerate.
14500 * gdbarch.h: Regenerate.
14501 * Makefile.in: Remove value_h from gdbarch_h.
14502 * valops.c (coerce_float_to_double): New variable.
14503 (default_coerce_float_to_double): Remove.
14504 (standard_coerce_float_to_double): Remove.
14505 (value_arg_coerce): Use coerce_float_to_double.
14506 (_initialize_valops): Add "set coerce-float-to-double".
14507 * value.h (default_coerce_float_to_double): Remove prototype.
14508 (standard_coerce_float_to_double): Remove prototype.
14509
14510 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14511 prototyped.
14512 * mdebugread.c (parse_symbol): Likewise.
14513 * stabsread.c (define_symbol): Mark all functions as prototyped.
14514
14515 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14516 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14517 set_gdbarch_coerce_float_to_double.
14518 * arm-tdep.c (arm_gdbarch_init): Likewise.
14519 * frv-tdep.c (frv_gdbarch_init): Likewise.
14520 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14521 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14522 * mips-tdep.c (mips_gdbarch_init): Likewise.
14523 (mips_coerce_float_to_double): Remove.
14524 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14525 (rs6000_coerce_float_to_double): Remove.
14526 * s390-tdep.c (s390_gdbarch_init): Likewise.
14527 * sh-tdep.c (sh_gdbarch_init): Likewise.
14528 (sh_coerce_float_to_double): Remove.
14529 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14530 (sparc_coerce_float_to_double): Remove.
14531 * v850-tdep.c (v850_gdbarch_init): Likewise.
14532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14533 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14534 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14535 (hppa_coerce_float_to_double): Remove prototype.
14536 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14537
14538 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14539
14540 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14541
14542 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14543
14544 Suggested by Stewart Brown <sb24@avaya.com>:
14545 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14546 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14547 (c_type_print_varspec_suffix): Likewise.
14548
14549 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14550
14551 * configure.in: Don't set and AC_SUBST SUBDIRS.
14552 * configure: Regenerated.
14553
14554 * configure.in: Remove code dealing with shared libraries.
14555 * Makefile.in: Remove HLDFLAGS and HLDENV.
14556 * configure: Regenerated.
14557
14558 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14559
14560 * frame.c (deprecated_frame_xmalloc): New function.
14561 (deprecated_set_frame_saved_regs_hack): New function.
14562 (deprecated_set_frame_extra_info_hack): New function.
14563 * frame.h (deprecated_frame_xmalloc): Declare.
14564 (deprecated_set_frame_saved_regs_hack): Declare.
14565 (deprecated_set_frame_extra_info_hack): Declare.
14566
14567 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14568
14569 * configure.in: Move code that provides the --enable-gdbtk option
14570 right after the code that handles the --enable-tui option, and
14571 polish it somewhat.
14572 * configure: Regenerated.
14573
14574 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14575 AC_CHECK_FUNCS and remove the old check for pread64.
14576 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14577 * acconfig.h (_GNU_SOURCE): Add.
14578 (HAVE_PREAD64): Remove.
14579 * configure, aclocal.m4, config.in: Regenerated.
14580
14581 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14582
14583 * alpha-tdep.c: Use get_frame_saved_regs.
14584 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14585 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14586 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14587 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14588 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14589
14590 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14591
14592 * configure.in: Remove all use of the SUBDIRS variable; add
14593 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14594 code providing the --enable-multi-ice option, and move it right in
14595 front of the code that checks whether gdbserver is supported.
14596 Polish that too.
14597 * configure: Regenerated.
14598 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14599 @SUBDIRS@.
14600
14601 2003-01-03 Andrew Cagney <cagney@redhat.com>
14602
14603 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14604 * avr-tdep.c, cris-tdep.c: Ditto.
14605 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14606 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14607
14608 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14609
14610 * configure.in: Remove --enable-netrom option.
14611 * configure: Regenerated.
14612
14613 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14614
14615 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14616 declaration for `struct re_pattern_buffer' instead.
14617 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14618
14619 2003-01-03 J. Brobecker <brobecker@gnat.com>
14620
14621 * mdebugread.c (parse_symbol): Count until the stEnd matching
14622 the structure name.
14623
14624 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14625
14626 * configure.in: Remove --with-cpu option.
14627 subscripts. Remove evil changequotes here.
14628 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14629 * config.in, configure: Regenerated.
14630
14631 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14632 * configure.in: Cleanup section that sources GDB and BFD configure
14633 subscripts. Remove evil changequotes here.
14634 * config.in, configure: Regenerated.
14635
14636 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14637
14638 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14639 frame accessor methods.
14640 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14641 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14642 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14643 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14644 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14645 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14646 * z8k-tdep.c: Ditto.
14647
14648 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14649
14650 * configure.in: Remove UI_OUT configuration code.
14651 * ada-lang.c: Update assuming UI_OUT is always true.
14652 * Makefile.in (UIOUT_CFLAGS): Remove.
14653 * configure: Regenerated.
14654 * TODO: Remove blurb about elimination of -DUI_OUT.
14655
14656 * configure.in: Move code that provides the --enable-gdbcli,
14657 --enable-gdbmi options right before the code that handles the
14658 --enable-tui option. Polish a bit.
14659 * configure: Regenerated.
14660
14661 * configure.in: Rewrite check for GNU regex and the
14662 --without-included regex option, and move it into the "Checks for
14663 library functions" section. This makes us use the system regex
14664 again by default on systems with version 2 of the GNU C library.
14665 This was apparently broken.
14666 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14667 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14668 * config.in, configure: Regenerated.
14669
14670 * configure.in: Move code that provides the --enable-tui option
14671 before the "Checks for libraries" section. Polish the code
14672 somewhat and set need_curses to yes if we build the TUI. Rewrite
14673 code that looks for a library providing termcap functionality to
14674 match more closely what's done in the Readline library, and move
14675 it into to the "Checks for libraries" section.
14676 * configure: Regenerated.
14677 * Makefile.in (TERMCAP): Remove variable.
14678 * config/i386/go32.mh (TERMCAP): Remove variable.
14679
14680 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14681
14682 * MAINTAINERS: Mention gdb_mbuild.sh.
14683 * gdb_mbuild.sh: Rewrite.
14684
14685 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14686
14687 * configure.in: Fix typo in last change.
14688 * config.in, configure: Regenerated.
14689
14690 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14691
14692 * valarith.c (value_binop): Delete obsolete code and comments.
14693 * configure.host: Ditto.
14694 * buildsym.h (make_blockvector): Ditto.
14695 * buildsym.c (make_blockvector): Ditto.
14696 * defs.h (enum language): Ditto.
14697 (chill_demangle): Ditto.
14698 * elfread.c (elf_symtab_read): Ditto.
14699 * dwarfread.c (CHILL_PRODUCER): Ditto.
14700 (set_cu_language): Ditto.
14701 (handle_producer): Ditto.
14702 * expprint.c (print_subexp): Ditto.
14703 * gdbtypes.c (chill_varying_type): Ditto.
14704 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14705 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14706 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14707 (chill_varying_type): Ditto.
14708 * language.h (_LANG_chill): Ditto.
14709 * language.c (binop_result_type, integral_type): Ditto.
14710 (character_type, string_type, structured_type): Ditto.
14711 (lang_bool_type, binop_type_check): Ditto.
14712 * stabsread.h (os9k_stabs): Ditto.
14713 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14714 (define_symbol, read_type, read_struct_fields): Ditto.
14715 (read_array_type, read_enum_type, read_huge_number): Ditto.
14716 (read_range_type, start_stabs): Ditto.
14717 * symfile.c (init_filename_language_table): Ditto.
14718 (add_psymbol_with_dem_name_to_list): Ditto.
14719 * symtab.c (symbol_init_language_specific): Ditto.
14720 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14721 * symtab.h (struct general_symbol_info): Ditto.
14722 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14723 * typeprint.c (typedef_print): Ditto.
14724 * utils.c (fprintf_symbol_filtered): Ditto.
14725 * valops.c (value_cast, search_struct_field, value_slice): Delete
14726 obsolete code.
14727 (varying_to_slice): Delete function.
14728 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14729 (varying_to_slice): Delete declaration.
14730 * MAINTAINERS: Update.
14731
14732 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14733
14734 * configure.in: Reorganize "Checks for library functions section"
14735 a bit. Remove check for `btowc' and `isascii' functions.
14736 * configure: Regenerated.
14737
14738 * acconfig.h (_MSE_INT_H): Remove.
14739 * configure.in: Create "Checks for header files" section, and move
14740 appropriate tests there. Don't check for objlist.h, wchar.h,
14741 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14742 misdetection fix. Also add "Checks for types", "Checks for
14743 compiler characteristics" and "Checks for library functions"
14744 sections.
14745 * config.in, configure: Regenerated.
14746
14747 * configure.in: Create "Checks for programs" section, and move
14748 appropriate tests there.
14749
14750 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14751
14752 * configure.in: Create "Checks for libraries" section, and move
14753 appropriate tests there. Cleanup check for wctype in libw. Use
14754 AC_SEARCH_LIBS to see whether we need libsocket.
14755 * configure: Regenerated.
14756
14757 For older changes see ChangeLog-2002
14758 \f
14759 Local Variables:
14760 mode: change-log
14761 left-margin: 8
14762 fill-column: 74
14763 version-control: never
14764 End:
This page took 0.356922 seconds and 4 git commands to generate.