merge from gcc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-21 Kevin Buettner <kevinb@redhat.com>
2
3 * frv-tdep.c (frv_frame_this_id): Eliminate call to
4 inside_entry_func().
5
6 2003-11-20 Mark Kettenis <kettenis@gnu.org>
7
8 * i386-tdep.c (i386_extract_return_value,
9 i386_store_return_value): Add gdbarch argument. Use it instead of
10 determining it from REGCACHE. Remove recursive call for
11 structures with a single member.
12 (i386_use_struct_convention): Remove.
13 (i386_reg_struct_return_p): New function.
14 (i386_return_value): New function.
15 (i386_gdbarch_init): Set return_value, don't set
16 extract_return_value, store_return_value and
17 use_struct_convention.
18 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
19
20 2003-11-20 Jim Blandy <jimb@redhat.com>
21
22 * osabi.c (_initialize_gdb_osabi): Don't return before registering
23 the 'set osabi' and 'show osabi' commands.
24
25 2003-11-19 Mark Kettenis <kettenis@gnu.org>
26
27 * frame.c (get_prev_frame): Use result from
28 get_frame_address_in_block instead of get_frame_pc as argument to
29 inside_main_func. Fixes PR backtrace/1435.
30
31 2003-11-19 Andrew Cagney <cagney@redhat.com>
32
33 * stack.c (return_command): Handle "void", "legacy" and "unknown
34 location" return values separatly.
35 * values.c (using_struct_return): Return 0 for a "void" return
36 type. Mention "register_value_being_returned".
37 (register_value_being_returned): Mention "using_struct_return".
38
39 2003-11-19 Daniel Jacobowitz <drow@mvista.com>
40
41 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
42 (frame_base_offset): Delete.
43 (read_func_scope): Delete call to decode_locdesc.
44 (decode_locdesc): Update comments. Don't set the removed variables.
45 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
46 DW_OP_fbreg support.
47
48 2003-11-18 Daniel Jacobowitz <drow@mvista.com>
49
50 * dwarf2read.c (optimized_out, islocal): Remove.
51 (decode_locdesc): Update comments. Don't set optimized_out
52 or islocal.
53
54 2003-11-17 Jeff Johnston <jjohnstn@redhat.com>
55 David Mosberger <davidm@hpl.hp.com>
56
57 * ia64-tdep.c: Include elf.h.
58 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
59 libunwind-ia64.h.
60 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
61 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
62 (ia64_is_fpreg, ia64_access_reg): Ditto.
63 (ia64_access_fpreg, ia64_access_mem): Ditto.
64 (get_kernel_table): Ditto.
65 (ia64_find_unwind_table): Ditto.
66 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
67 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
68 (ia64_libunwind_frame_prev_register): Ditto.
69 (ia64_libunwind_frame_sniffer): Ditto.
70 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
71 sniffer. Register libunwind functions needed by generic
72 libunwind frame code using libunwind_frame_set_descr().
73
74 2003-11-16 Daniel Jacobowitz <drow@mvista.com>
75
76 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
77 bp_shlib_disabled breakpoint if there is a shared library mapped
78 at its expected address.
79
80 2003-11-16 Andrew Cagney <cagney@redhat.com>
81
82 * configure.tgt: Delete mips*tx39*-elf*.
83 * config/mips/tm-tx39.h: Delete file.
84 * config/mips/tx39.mt: Delete file.
85 * config/mips/tx39.mt: Delete file.
86
87 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
88 * remote-mips.c (common_open): Instead of
89 "mips_read_register_type" and "mips_set_processor_type_command"
90 call "deprecated_mips_set_processor_regs_hack".
91 * config/mips/tm-mips.h (mips_read_processor_type): Delete
92 declaration.
93 (mips_set_processor_type_command): Delete declaration.
94 * mips-tdep.c (mips_gdbarch_init): Update comment.
95 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
96 (mips_set_processor_type): Delete function.
97 (NUM_MIPS_PROCESSOR_REGS): Define.
98 (mips_show_processor_type_command): Delete function.
99 (mips_set_processor_type_command): Delete function.
100 (tmp_mips_processor_type): Delete.
101 (mips_processor_type): Delete.
102 (mips_processor_type_table): Delete.
103 (mips_r3051_reg_names): Delete.
104 (mips_r3081_reg_names): Delete.
105 (mips_lsi33k_reg_names): Delete.
106 (mips_processor_reg_names): Delete.
107 (mips_read_processor_type): Delete function.
108 (deprecated_mips_set_processor_regs_hack): New function.
109 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
110 (mips_register_name): Get the processor names from the tdep.
111 (mips_tx39_reg_names): New array.
112 (mips_generic_reg_names): Wire to a standard set of names.
113 (mips_gdbarch_init): Set "mips_processor_reg_names".
114 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
115 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
116 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
117
118 2003-11-16 Andrew Cagney <cagney@redhat.com>
119
120 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
121 (mips_fpa0_regnum, mips_regnum): New function.
122 (mips_gdbarch_init): Fill in the "regnum" fields.
123 * mips-tdep.h (struct mips_regnum): Define.
124 (mips_regnum): Declare.
125 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
126 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
127 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
128 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
129 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
130 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
131 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
132 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
133 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
134 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
135 * remote-mips.c: Include "mips-tdep.h". Update.
136 * mipsnbsd-tdep.c: Update.
137 * mipsv4-nat.c: Update.
138 * mips-tdep.c: Update.
139 * mips-nat.c: Update.
140 * mips-linux-tdep.c: Update.
141 * mips-linux-nat.c: Update.
142 * irix5-nat.c: Update.
143 * dve3900-rom.c: Include "mips-tdep.h". Update.
144 (ignore_packet): Supress GCC warning.
145 * config/mips/nm-riscos.h: Update.
146
147 2003-11-16 Andrew Cagney <cagney@redhat.com>
148
149 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
150 register_size.
151 (mips_register_raw_size): Delete function.
152 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
153 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
154 Check and set "mips64_transfers_32bit_regs_p".
155 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
156 (mips_register_convertible): Check the architecture's
157 "mips64_transfers_32bit_regs_p".
158 (set_mips64_transfers_32bit_regs): New function.
159 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
160 "set remote-mips64-transfers-32bit-regs" command. Specify
161 set_mips64_transfers_32bit_regs as the set function.
162 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
163
164 2003-11-16 Mark Kettenis <kettenis@gnu.org>
165
166 * i386-tdep.h (i386_supply_gregset): Provide prototype.
167 * i386-tdep.c (i386_supply_gregset): Make public.
168
169 2003-11-16 Andrew Cagney <cagney@redhat.com>
170
171 * mips-tdep.c (mips_register_byte): Delete function.
172 (mips_gdbarch_init): Do not set "deprecated_register_byte".
173 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
174 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
175 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
176
177 2003-11-16 Mark Kettenis <kettenis@gnu.org>
178
179 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
180
181 2003-11-16 Andrew Cagney <cagney@redhat.com>
182
183 * config/mips/linux64.mt: Delete file.
184 * config/mips/tm-linux64.h: Delete file.
185 * config/mips/tm-mips64.h: Delete file.
186 * config/mips/embed64.mt: Delete file.
187 * config/djgpp/fnchange.lst: Update.
188 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
189 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
190 * config/mips/tm-irix6.h: Update copyright. Include
191 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
192 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
193 "OP_LDGPR".
194
195 2003-11-15 Andrew Cagney <cagney@redhat.com>
196
197 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
198 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
199 n32 registers 64 bit.
200 (mips_register_raw_size, mips_register_byte): For pseudo
201 registers, use the register's pseudo size and not the
202 corresponding raw register's size.
203 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
204 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
205 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
206 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
207
208 2003-11-15 Andrew Cagney <cagney@redhat.com>
209
210 * mips-tdep.c (struct gdbarch_tdep): Delete member
211 gdb_target_is_mips64.
212 (GDB_TARGET_IS_MIPS64): Delete macro.
213 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
214 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
215 (mips_addr_bits_remove): Simplify.
216
217 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
218 register_size.
219
220 Replace MIPS_REGSIZE with mips_regsize.
221 * mips-tdep.c (mips_regsize): New function.
222 * mips-tdep.h (mips_regsize): Declare.
223 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
224 (SIZEOF_STRUCT_REG): Update.
225 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
226 (mipsnbsd_fill_reg): Update.
227 (mipsnbsd_supply_fpreg): Update.
228 (mipsnbsd_fill_fpreg): Update.
229 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
230 * mips-tdep.c (mips_register_raw_size): Update.
231 (mips_register_type): Update.
232 (SIGFRAME_BASE): Update.
233 (SIGFRAME_PC_OFF): Update.
234 (SIGFRAME_REGSAVE_OFF): Update.
235 (SIGFRAME_FPREGSAVE_OFF): Update.
236 (SIGFRAME_REG_SIZE): Update.
237 (mips32_heuristic_proc_desc): Update.
238 (print_gp_register_row): Update.
239 (mips_dump_tdep): Do not print MIPS_REGSIZE.
240 * irix5-nat.c (supply_gregset): Update.
241 (fetch_core_registers): Update.
242 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
243 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
244 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
245 (MIPS_REGISTER_BYTE): Update.
246 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
247
248 2003-11-15 Andrew Cagney <cagney@redhat.com>
249
250 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
251 USE_REGISTER_NOT_ARG.
252 * stabsread.c (define_symbol): Update.
253
254 2003-11-15 Andrew Cagney <cagney@redhat.com>
255
256 * bcache.h (deprecated_bcache): Declare.
257 (bcache): Make returned buffer constant.
258 * bcache.c (deprecated_bcache): New function.
259 (bcache_data): New function.
260 (bcache): Call bcache data.
261 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
262 (add_psymbol_with_dem_name_to_list): Ditto.
263
264 2003-11-15 Mark Kettenis <kettenis@gnu.org>
265
266 * glibc-tdep.h (struct gdbarch): Declare opaque.
267 (glibc_skip_solib_resolver): Adjust prototype.
268 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
269 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
270 (arm_linux_init_abi): Set skip_solib_resolver.
271 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
272 (i386_linux_init_abi): Set skip_solib_resolver.
273 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
274 (arm_linux_skip_solib_resolver): Remove prototype.
275 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
276 (i386_linux_skip_solib_resolver): Remove prototype.
277
278 2003-11-14 Mark Kettenis <kettenis@gnu.org>
279
280 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
281 function.
282 * gdbarch.c, gdbarch.h: Regenerate.
283 * infrun.c (handle_inferior_event): Call
284 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
285 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
286 definition.
287 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
288 prototype.
289
290 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
291
292 * libunwind-frame.c: New file.
293 * libunwind-frame.h: New file.
294 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
295 * configure.in: Add --with-libunwind option support. Define
296 HAVE_LIBUNWIND if libunwind support selected / defaulted.
297 Also check for libunwind.h and libunwind-ia64.h headers.
298 * configure: Regenerated.
299 * Makefile.in: Add support for libunwind-frame.o.
300 * config.in: Regenerated.
301
302 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
303
304 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
305 set up the ia64 linux native target method for getting the kernel
306 unwind table.
307 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
308 * inftarg.c (child_xfer_partial): Enable section of code to
309 handle TARGET_OBJECT_UNWIND_TABLE.
310 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
311
312 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
313
314 * config/arm/nbsd.mt (TM_FILE): Define.
315 * config/arm/tm-nbsd.h: New file.
316
317 2003-11-14 Andrew Cagney <cagney@redhat.com>
318
319 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
320 * ppc-sysv-tdep.c: Include "objfiles.h".
321 (ppc64_sysv_abi_push_dummy_call): Provide the
322 the FN's objfile when looking for the descriptor.
323
324 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
325 "name_of_malloc" to ".malloc".
326
327 2003-11-13 Mark Kettenis <kettenis@gnu.org>
328
329 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
330
331 2003-11-13 David Carlton <carlton@kealia.com>
332
333 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
334
335 2003-11-13 Andrew Cagney <cagney@redhat.com>
336
337 * arch-utils.h (selected_architecture_name): Declare.
338 (selected_byte_order): Declare.
339 * arch-utils.c (selected_byte_order): New function.
340 (selected_architecture_name): New function.
341 (target_architecture_auto): Make static.
342 (set_architecture_string): Make static.
343 (target_byte_order): Make static.
344 (target_byte_order_auto): Make static.
345 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
346 non-multi-arch definition.
347 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
348 (target_byte_order, target_architecture): Delete declaration.
349 (target_byte_order_auto, target_architecture_auto): Ditto.
350 * gdbarch.h: Re-generate.
351 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
352 "selected_byte_order".
353
354 2003-11-13 Andrew Cagney <cagney@redhat.com>
355
356 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
357
358 2003-11-13 Jim Blandy <jimb@redhat.com>
359
360 * cp-namespace.c: Doc fix.
361
362 2003-11-12 Michael Snyder <msnyder@redhat.com>
363
364 * sh64_tdep.c: Regularize some names.
365 (sh_sh64_register_name): Rename to sh64_register_name.
366 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
367 (sh_sh64_register_byte): Rename to sh64_register_byte.
368 (sh_sh64_build_float_register_type):
369 Rename to sh64_build_float_register_type.
370 (sh_sh64_register_convert_to_virtual):
371 Rename to sh64_register_convert_to_virtual.
372 (sh_sh64_register_convert_to_raw):
373 Rename to sh64_register_convert_to_raw.
374
375 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
376 sh64_media_reg_base_num, sh64_compact_reg_base_num,
377 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
378 sh64_extract_return_value, sh64_show_media_regs,
379 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
380 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
381 sh64_pseudo_register_read, sh64_pseudo_register_write,
382 sh64_do_pseudo_register, sh_compact_print_registers_info):
383 Delete unused variable 'tdep'.
384
385 * sh64-tdep.c: Coding standard and spelling comment fixes.
386 (sh64_extract_return_value): Replace deprecated_store_floating
387 with store_typed_floating.
388 (sh_sh64_register_convert_to_raw): Replace
389 deprecated_store_floating with store_typed_floating.
390 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
391 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
392 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
393 sh64_extract_struct_value_address, sh64_pop_frame,
394 sh64_extract_return_value, sh64_store_return_value,
395 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
396 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
397 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
398 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
399 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
400 deprecated_register_virtual_type, deprecated_register_raw_size,
401 deprecated_max_register_raw_size, or
402 deprecated_max_register_virtual_size. Instead, just set
403 gdbarch_register_type.
404 (sh_sh64_register_raw_size): Delete.
405 (sh_sh64_register_virtual_size): Delete.
406
407 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
408
409 * dwarf2read.c (struct dwarf2_cu): New type.
410
411 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
412 dwarf2_cu structure to pass down.
413
414 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
415 (add_partial_enumeration, locate_pdi_sibling, process_die)
416 (read_file_scope, read_func_scope)
417 (read_lexical_block_scope, dwarf2_get_pc_bounds)
418 (dwarf2_add_field, dwarf2_attach_fields_to_type)
419 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
420 (read_structure_scope, read_enumeration, read_array_type)
421 (read_common_block, read_namespace, read_tag_pointer_type)
422 (read_tag_ptr_to_member_type, read_tag_reference_type)
423 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
424 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
425 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
426 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
427 (read_full_die. read_attribute_value, read_attribute)
428 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
429 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
430 (die_containing_type, type_at_offset, tag_type_to_type)
431 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
432 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
433
434 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
435
436 PR breakpoints/1450
437 * breakpoint.c (insert_bp_location): Fix a logic error by returning
438 0 after a catchpoint fails.
439
440 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
441
442 * mips-tdep.c (msymbol_size): Delete.
443
444 2003-11-07 Michael Chastain <mec@shout.net>
445
446 * symtab.h (struct minimal_symbol): Add size.
447 * dbxread.c: Use it.
448 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
449 Rename to record_minimal_symbol.
450 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
451 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
452 (install_minimal_symbols): Ditto.
453 * objfiles.c (terminate_minimal_symbol_table): Ditto.
454 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
455 * m68hc11-tdep.c: Ditto.
456 * mips-tdep.c: Ditto.
457 * sh64-tdep.c: Ditto.
458
459 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
460
461 * MAINTAINERS: Change my e-mail address.
462
463 2003-11-10 Andrew Cagney <cagney@redhat.com>
464
465 * gdbarch.sh (return_value): Replace "inval" and "outval" with
466 "readbuf" and "writebuf".
467 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
468 * d10v-tdep.c (d10v_return_value): Ditto.
469 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
470 (ppc_sysv_abi_broken_return_value): Ditto.
471 (ppc64_sysv_abi_return_value): Ditto.
472 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
473 (ppc_sysv_abi_return_value): Ditto.
474 (ppc_sysv_abi_broken_return_value): Ditto.
475 (ppc64_sysv_abi_return_value): Ditto.
476 * values.c (register_value_being_returned): Update call.
477 * stack.c (return_command): Update call.
478 * gdbarch.h, gdbarch.c: Re-generate.
479
480 * target.h (struct target_ops): Order xfer buffer parameters "read
481 write" not "write read".
482 * bfd-target.c (target_bfd_xfer_partial): Update.
483 * remote.c (remote_xfer_partial): Update.
484 * inftarg.c (child_xfer_partial): Update.
485 * target.c (default_xfer_partial): Update.
486 (target_read_partial, target_write_partial): Update.
487 (debug_to_xfer_partial): Update.
488
489 * arch-utils.h, arch-utils.c: Fix typo in comment.
490
491 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
492 (gdbarch_from_bfd): Call gdbarch_find_by_info.
493 (set_gdbarch_from_file): Call
494 "deprecated_current_gdbarch_select_hack".
495
496 2003-11-09 Andrew Cagney <cagney@redhat.com>
497
498 * arch-utils.c (gdbarch_update_p): New function.
499 * gdbarch.sh (gdbarch_update_p): Delete function.
500 (find_arch_by_info, gdbarch_find_by_info): New functions.
501 (deprecated_current_gdbarch_select_hack): New function.
502 * gdbarch.c: Re-generate.
503
504 * gdbarch.sh (clear_gdbarch_swap): Delete function.
505 (swapout_gdbarch_swap): Delete function.
506 (swapin_gdbarch_swap): Delete function.
507 (init_gdbarch_swap): Delete function.
508 (initialize_non_multiarch): Delete function.
509 (current_gdbarch_swap_in_hack): New function.
510 (current_gdbarch_swap_out_hack): New function.
511 (current_gdbarch_swap_init_hack): New function.
512 * gdbarch.c: Re-generate.
513
514 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
515 parameter to "current_gdbarch". Add comment explaining why.
516 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
517 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
518 * gdbarch.c: Re-generate.
519
520 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
521 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
522 * config/s390/xm-linux.h: Delete file.
523 * config/m88k/xm-delta88v4.h: Delete stray.
524
525 * Makefile.in (arch-utils.o): Update dependencies.
526 * arch-utils.c: Include "osabi.h".
527 (gdbarch_info_fill): New function.
528 * arch-utils.h (gdbarch_info_fill): Declare.
529 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
530 * gdbarch.c: Re-generate.
531
532 2003-11-09 Mark Kettenis <kettenis@gnu.org>
533 David S. Miller <davem@redhat.com>
534
535 * glibc-tdep.c, glibc-tdep.h: New files.
536 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
537 * config/i386/linux.mt (TDEPFILES): Likewise.
538 * i386-linux-tdep.c (glibc-tdep.h): Include.
539 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
540 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
541 * arm-linux-tdep.c (glibc-tdep.h): Include.
542 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
543 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
544 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
545 (glibc_tdep_h): Define.
546 (glibc-tdep.o): Add dependencies.
547 (arm-linux-tdep.o): Update dependencies.
548 (i386-linux-tdep.o): Likewise.
549
550 2003-11-09 Andrew Cagney <cagney@redhat.com>
551
552 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
553 * config/mips/nm-irix6.h: Delete file.
554 * config/mips/nm-linux.h: Update copyright.
555 (MIPS_GNULINUX_TARGET): Delete macro.
556 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
557 * config/mips/xm-irix6.h: Delete file.
558 * config/mips/linux.mh (XM_FILE): Delete definition.
559 * config/mips/xm-linux.h: Delete file.
560
561 2003-11-09 Andrew Cagney <cagney@redhat.com>
562
563 * d10v-tdep.c (d10v_return_value): New function.
564 (d10v_use_struct_convention): Delete function.
565 (d10v_store_return_value): Delete function.
566 (d10v_extract_struct_value_address): Delete function.
567 (d10v_gdbarch_init): Set "return_value" instead of
568 "extract_return_value", "store_return_value",
569 "extract_struct_value_address", and "use_struct_convention".
570 (RET1_REGNUM): Delete const.
571
572 2003-11-09 Mark Kettenis <kettenis@gnu.org>
573
574 From David S. Miller <davem@redhat.com>:
575 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
576 * gdbarch.c, gdbarch.h: Regenerated.
577 * arch-utils.c (generic_skip_solib_resolver): New function.
578 * arch-utils.h (generic_skip_solib_resolver): New prototype.
579 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
580
581 2003-11-07 Andrew Cagney <cagney@redhat.com>
582
583 * top.c (print_gdb_version): Replace STREQ with strcmp.
584 * valops.c (value_struct_elt_for_reference): Ditto.
585 (value_struct_elt_for_reference): Ditto.
586 * symtab.c (gdb_mangle_name): Ditto.
587 (find_line_symtab): Ditto.
588 * symmisc.c (maintenance_print_symbols): Ditto.
589 * symfile.c (symbol_file_command): Ditto.
590 * stabsread.c (define_symbol, read_type): Ditto.
591 (cleanup_undefined_types, scan_file_globals): Ditto.
592 * solib.c (solib_map_sections): Ditto.
593 * solib-svr4.c (bfd_lookup_symbol): Ditto.
594 * rs6000-tdep.c (skip_prologue): Ditto.
595 * p-valprint.c (pascal_value_print): Ditto.
596 (pascal_object_is_vtbl_ptr_type): Ditto.
597 * objfiles.c (in_plt_section): Ditto.
598 * minsyms.c (lookup_minimal_symbol): Ditto.
599 (compact_minimal_symbols): Ditto.
600 (find_solib_trampoline_target): Ditto.
601 * mdebugread.c (parse_type): Ditto.
602 * language.c (set_language_command): Ditto.
603 (set_type_command, set_range_command): Ditto.
604 * f-lang.c (add_common_block): Ditto.
605 (add_common_block): Ditto.
606 (find_first_common_named): Ditto.
607 (patch_all_commons_by_name): Ditto.
608 * elfread.c (elf_locate_sections): Ditto.
609 (elf_locate_sections): Ditto.
610 (elfstab_offset_sections): Ditto.
611 * dwarf2read.c (dwarf2_locate_sections): Ditto.
612 * dbxread.c (add_old_header_file): Ditto.
613 (find_corresponding_bincl_psymtab): Ditto.
614 (read_dbx_symtab, process_one_symbol): Ditto.
615 * coffread.c (patch_opaque_types): Ditto.
616 * cli/cli-decode.c (delete_cmd): Ditto.
617 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
618 * c-typeprint.c (c_type_print_base): Ditto.
619 * breakpoint.c (bpstat_stop_status): Ditto.
620 (clear_command, breakpoint_re_set_one): Ditto.
621
622 2003-11-07 Andrew Cagney <cagney@redhat.com>
623
624 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
625 * bcache.c (struct bstring): Make "length" an unsigned short, add
626 "half_hash".
627 (struct bcache): Add "half_hash_error_count".
628 (bcache): Compute and save the "half_hash". Compare the
629 "half_hash" before comparing the length. Update
630 half_hash_error_count.
631
632 2003-11-07 Andrew Cagney <cagney@redhat.com>
633
634 * inftarg.c (child_xfer_partial): New function
635 (init_child_ops): Set "to_xfer_partial".
636
637 2003-11-07 Andrew Cagney <cagney@redhat.com>
638
639 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
640 set "return_value" instead of "use_struct_convention".
641 (ppc_linux_use_struct_convention): Delete function.
642 (ppc_linux_return_value): New function.
643 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
644 (ppc_sysv_abi_broken_return_value): New function.
645 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
646 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
647 static.
648 (ppc_sysv_abi_extract_return_value): Delete function.
649 (ppc_sysv_abi_broken_extract_return_value): Delete function.
650 (ppc_sysv_abi_store_return_value): Delete function.
651 (ppc_sysv_abi_broken_store_return_value): Delete function.
652 (ppc_sysv_abi_use_struct_convention): Delete function.
653 (ppc64_sysv_abi_use_struct_convention): Delete function.
654 (ppc64_sysv_abi_extract_return_value): Delete function.
655 (ppc64_sysv_abi_store_return_value): Delete function.
656 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
657 (ppcnbsd_init_abi): Set "return_value", instead of
658 "use_struct_convention", "extract_return_value", and
659 "store_return_value".
660 (ppcnbsd_use_struct_convention): Delete function.
661 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
662 (ppc_sysv_abi_return_value): Declare.
663 (ppc_sysv_abi_broken_return_value): Declare.
664 (ppc_sysv_abi_use_struct_convention): Delete.
665 (ppc_sysv_abi_store_return_value): Delete.
666 (ppc_sysv_abi_extract_return_value): Delete.
667 (ppc_sysv_abi_broken_store_return_value): Delete.
668 (ppc_sysv_abi_broken_extract_return_value): Delete.
669 (ppc64_sysv_abi_use_struct_convention): Delete.
670 (ppc64_sysv_abi_extract_return_value): Delete.
671 (ppc64_sysv_abi_store_return_value): Delete.
672 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
673 set "return_value" instead of "extract_return_value",
674 "store_return_value", and "use_struct_convention".
675
676 2003-11-07 Mark Kettenis <kettenis@gnu.org>
677
678 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
679
680 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
681 fscanf.
682
683 2003-11-07 Mark Kettenis <kettenis@gnu.org>
684
685 * fbsd-proc.c: Fix formatting.
686
687 2003-11-06 Kevin Buettner <kevinb@redhat.com>
688
689 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
690 Define.
691 (new_variant): Set name for iacc0_regnum.
692 (frv_register_name): Accommodate pseudo-registers.
693 (frv_register_type): Add case for iacc0_regnum.
694 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
695 (frv_gdbarch_init): Set number of pseudo registers. Establish
696 pseudo-register read/write methods.
697
698 2003-11-06 Andrew Cagney <cagney@redhat.com>
699
700 * valops.c (destructor_name_p): Replace STREQN with strncmp.
701 * top.c (command_line_input): Ditto.
702 * objc-exp.y (yylex): Ditto.
703 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
704 * jv-exp.y (yylex): Ditto.
705 * f-exp.y (yylex): Ditto.
706 * event-top.c (command_line_handler): Ditto.
707 * environ.c (get_in_environ): Ditto.
708 (set_in_environ): Ditto.
709 * dwarfread.c (handle_producer): Ditto.
710 * dbxread.c (process_one_symbol): Ditto.
711 * c-typeprint.c (c_type_print_base): Ditto.
712 * c-exp.y (yylex): Ditto.
713
714 2003-11-06 Andrew Cagney <cagney@redhat.com>
715 Jeff Johnston <jjohnstn@redhat.com>
716
717 * target.c (add_target): Only set "to_xfer_partial" when NULL.
718 (init_dummy_target): Set "to_xfer_partial".
719
720 2003-11-06 Andrew Cagney <cagney@redhat.com>
721
722 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
723 REGISTER_CONVENTION.
724
725 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
726
727 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
728 static.
729
730 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
731
732 * breakpoint.c (remove_breakpoint): Take an bp_location
733 instead of a breakpoint argument. Check the bp_location's type.
734 Fix a reversed condition for hardware breakpoints.
735
736 (insert_bp_location): Update call to remove_breakpoint.
737 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
738 (remove_hw_watchpoints): Likewise.
739 (reattach_breakpoints): Likewise.
740 (detach_breakpoints): Likewise.
741 (delete_breakpoint): Likewise.
742
743 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
744
745 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
746 (beakpoint_init_inferior): Likewise.
747 (breakpoint_here_p): Likewise. Only check addresses for software
748 or hardware breakpoints.
749 (breakpoint_inserted_here_p): Likewise.
750 (breakpoint_thread_match): Likewise. Correct comment.
751 (bpstat_have_active_hw_watchpoints): Likewise.
752 (check_duplicates): Likewise.
753
754 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
755
756 * breakpoints.c (insert_bp_location): New function, broken out
757 from insert_breakpoints. Work on an bp_location instead of a
758 breakpoint.
759 (insert_breakpoints): Use it.
760
761 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
762
763 * breakpoint.h (struct bp_location): Add section.
764 (struct breakpoint): Remove section.
765 * breakpoint.c (insert_breakpoints, remove_breakpoint)
766 (breakpoint_here_p, breakpoint_inserted_here_p)
767 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
768 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
769 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
770 section through loc.
771
772 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
773
774 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
775 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
776
777 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
778
779 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
780 arguments. Initialize owner and type for the new breakpoint
781 location item.
782 (set_raw_breakpoint): Update call to allocate_bp_location.
783
784 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
785
786 * breakpoint.h (struct bp_location): Add a chain pointer.
787 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
788 macros.
789 (bp_location_chain): New variable.
790 (allocate_bp_location): New function.
791 (set_raw_breakpoint): Use it.
792 (delete_breakpoint): Remove ->loc from the bp_location_chain.
793
794 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
795
796 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
797 (struct breakpoint): Remove address, shadow_contents, inserted,
798 requested_address, and duplicate. Add a struct bp_location.
799 * breakpoint.c (condition_command, read_memory_nobpt)
800 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
801 (reattach_breakpoints, update_breakpoints_after_exec)
802 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
803 (breakpoint_init_inferior, breakpoint_here_p)
804 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
805 (breakpoint_thread_match, bpstat_stop_status)
806 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
807 (describe_other_breakpoints, check_duplicates)
808 (make_breakpoint_permanent, create_thread_event_breakpoint)
809 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
810 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
811 (watch_command_1, print_one_exception_catchpoint)
812 (clear_command, breakpoint_re_set_one): Adjust member accesses to
813 use the breakpoint's ->loc.
814 (set_raw_breakpoint): Likewise. Initialize ->loc.
815 (delete_breakpoint): Likewise. Free ->loc.
816
817 2003-11-05 Andrew Cagney <cagney@redhat.com>
818
819 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
820 macro.
821 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
822 * config/i386/tm-cygwin.h
823 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
824 * config/powerpc/tm-linux.h
825 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
826 (at_subroutine_call_instruction_target): Delete declaration.
827 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
828 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
829 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
830
831 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
832 "struct bfd_section" and "struct bfd".
833 * target.h (struct section_table): Ditto.
834 * rs6000-nat.c (xcoff_relocate_core): Ditto.
835 * solib-svr4.c (elf_locate_base): Ditto.
836 * pa64solib.c (dld_cache_t): Ditto.
837 * objfiles.h (struct obj_section): Ditto.
838 * objfiles.c (add_to_objfile_sections): Ditto.
839 * exec.c (bfdsec_to_vmap): Ditto.
840 (add_to_section_table): Ditto.
841 (build_section_table): Ditto.
842 * corelow.c (get_core_register_section): Ditto.
843 * coffread.c (find_linenos): Ditto.
844 * elfread.c (elf_interpreter): Delete #if0'd function.
845
846 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
847 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
848 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
849 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
850
851 * arch-utils.h (generic_cannot_extract_struct_value_address):
852 Delete declaration.
853 * wince.c (_initialize_wince): Fix multi-line string.
854 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
855
856 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
857
858 * top.c (execute_command): Fix broken logic for command execution
859 while inferior is running in async mode.
860
861 2003-11-06 Mark Kettenis <kettenis@gnu.org>
862
863 * dwarf2-frame.c (execute_cfa_program): Mark register as
864 REG_SAVED_REG for DW_CFA_register opcode.
865
866 2003-11-05 Mark Kettenis <kettenis@gnu.org>
867
868 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
869 %rsp, %rip and %eflags to match ABI-change.
870
871 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
872
873 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
874 (ia64_gdbarch_init): Don't bother calculating the os.
875 Instead use the gdbarch_info struct and look at the osabi field.
876 Also use gdbarch_list_lookup_by_info() to look for a
877 candidate gdbarch.
878
879 2003-11-05 Kevin Buettner <kevinb@redhat.com>
880
881 * frv-tdep.c (frv_register_byte): Delete.
882 (frv_extract_return_value, frv_store_return_value)
883 (frv_extract_struct_value_address): Don't call frv_register_byte().
884 Convert to non-deprecated form.
885 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
886 Convert calls to set_gdbarch_deprecated_extract_return_value(),
887 set_gdbarch_deprecated_store_return_value(), and
888 set_gdbarch_deprecated_extract_struct_value_address() into
889 non-deprecated forms.
890
891 2003-11-05 Andrew Cagney <cagney@redhat.com>
892
893 * mips-tdep.c (mips_dump_tdep): Do not print
894 PRINT_EXTRA_FRAME_INFO.
895 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
896 Rename PRINT_EXTRA_FRAME_INFO.
897 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
898 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
899 (mips_print_extra_frame_info): Delete declaration.
900 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
901
902 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
903
904 * coffread.c (coff_symtab_read): Remove passing of info parameter
905 to prim_record_minimal_symbol_and_info.
906
907 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
908
909 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
910 (decode_base_type): Delete ifdeffed out code.
911
912 2003-11-04 Andrew Cagney <cagney@redhat.com>
913
914 * symtab.c (find_active_alias): Delete function.
915 (lookup_block_symbol): Delete alias code.
916 * stabsread.c (resolve_live_range): Delete function.
917 (add_live_range): Delete function.
918 (resolve_symbol_reference): Delete function.
919 (define_symbol): Delete live range and alias code.
920 (scan_file_globals): Delete alias code.
921 * symtab.h (SYMBOL_RANGES): Delete macro.
922 (struct range_list): Delete structure.
923 (struct symbol): Delete field "ranges".
924 (SYMBOL_ALIASES): Delete macro.
925 (struct alias_list): Delete structure.
926 (struct symbol): Delete field "aliases".
927
928 2003-11-04 Michael Snyder <msnyder@redhat.com>
929
930 * MAINTAINERS: Remove myself as owner of breakpoints and
931 of sparc/solaris.
932
933 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
934
935 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
936 (sh_sh4al_dsp_register_name): Ditto.
937 (sh4_nofpu_show_regs): Ditto.
938 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
939 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
940
941 2003-11-03 Andrew Cagney <cagney@redhat.com>
942
943 * bcache.c: Include "gdb_assert.h".
944 (struct bcache): Add fields "expand_count" and
945 "expand_hash_count".
946 (expand_hash_table): Update the expand counts.
947 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
948 on object sizes and hashes.
949 * Makefile.in (bcache.o): Update dependencies.
950
951 2003-11-03 Andrew Cagney <cagney@redhat.com>
952
953 * exec.c (xfer_memory): Eliminate xfer_fn.
954
955 2003-10-31 Kevin Buettner <kevinb@redhat.com>
956
957 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
958 (opcodes/frv-desc.h): Include.
959 (iacc0h_regnum, iacc0l_regnum): Define.
960 (last_spr_regnum, frv_num_regs): Update.
961 (new_variant): Don't supply default names for holes in the SPRs.
962 Supply names for iacc0h_regnum and iacc0l_regnum.
963 (frv_register_type): Use symbolic constants first_fpr_regnum and
964 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
965 builtin_type_int instead of builtin_type_int32.
966 (frv_register_sim_regno): New function.
967 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
968 * Makefile.in (gdb_sim_frv_h): Define.
969 (frv-tdep.o): Update dependencies.
970
971 2003-10-31 Andrew Cagney <cagney@redhat.com>
972
973 * avr-tdep.c (avr_frame_this_id): Do not call
974 deprecated_inside_entry_file.
975 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
976 * m32r-tdep.c (m32r_frame_this_id): Ditto.
977 * d10v-tdep.c (d10v_frame_this_id): Ditto.
978 * arm-tdep.c (arm_prologue_this_id): Ditto.
979 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
980
981 2003-10-31 Jim Blandy <jimb@redhat.com>
982
983 * elfread.c (elf_symtab_read): Allocate correct number of tail
984 elements to sectinfo structure. (Fix from Woody LaRue.)
985
986 2003-10-31 Andrew Cagney <cagney@redhat.com>
987
988 * stack.c (return_command): Use get_frame_type, instead of
989 CALL_DUMMY_HAS_COMPLETED.
990 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
991 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
992
993 2003-10-31 Mark Kettenis <kettenis@gnu.org>
994
995 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
996 explicitly specify size of array.
997 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
998 TDEP->sc_num_regs.
999
1000 2003-10-31 Andrew Cagney <cagney@redhat.com>
1001
1002 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1003 function.
1004 (s390_gdbarch_init): Set extract_struct_value_address.
1005 * arch-utils.c (generic_cannot_extract_struct_value_address):
1006 Delete function.
1007 * arch-utils.h (generic_cannot_extract_struct_value_address):
1008 Delete definition.
1009
1010 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1011
1012 * i386-linux-nat.c (fetch_core_registers): Remove.
1013 (linux_elf_core_fns): Remove.
1014 (_initialize_i386_linux_nat): Remove.
1015
1016 2003-10-31 Andrew Cagney <cagney@redhat.com>
1017
1018 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1019 "exec.h".
1020 (exec_entry_point): New function.
1021 (enable_break): Create a "tmp_bfd_target", use that and
1022 entry_point_address when computing the relocation offset.
1023 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1024 * Makefile.in (solib-svr4.o): Update dependencies.
1025
1026 2003-10-31 Andrew Cagney <cagney@redhat.com>
1027
1028 * defs.h (XZALLOC): Define.
1029 * target.h (struct target_ops): Add "to_data";
1030 * bfd-target.h, bfd-target.c: New files.
1031 * Makefile.in (SFILES): Add "bfd-target.c".
1032 (COMMON_OBS): Add "bfd-target.o".
1033 (bfd-target.o): Specify dependencies.
1034 (bfd_target_h): Define.
1035 * defs.h (XZALLOC): Define.
1036
1037 2003-10-31 Andrew Cagney <cagney@redhat.com>
1038
1039 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1040 adjust_breakpoint_address.
1041 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1042 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1043 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1044 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1045
1046 2003-10-31 Andrew Cagney <cagney@redhat.com>
1047
1048 * target.h (struct target_ops): Replace "to_read_partial" and
1049 "to_write_partial" with "to_xfer_partial". Update comments.
1050 * target.c (debug_to_write_partial): Delete function.
1051 (debug_to_xfer_partial): Replace debug_to_read_partial.
1052 (add_target, update_current_target, setup_target_debug): Set
1053 "to_xfer_partial" instead of "to_read_partial" and
1054 "to_write_partial".
1055 (default_xfer_partial): Replace "default_write_partial".
1056 (default_read_partial): Delete.
1057 (target_read_partial, target_write_partial): Call
1058 "to_xfer_partial".
1059 * remote.c (init_remote_ops): Set "to_xfer_partial".
1060 (init_remote_async_ops): Ditto.
1061 (remote_xfer_partial): Replace "remote_read_partial".
1062
1063 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1064
1065 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1066 registers in `fxsave' format.
1067 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1068
1069 2003-10-30 Mark Kettenis <kettenis@gnu.org>
1070
1071 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1072 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1073 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1074
1075 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1076 specify size of array.
1077 (i386_linux_init_abi): Remove initialization of
1078 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1079 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1080
1081 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1082 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1083 core-regset.o.
1084
1085 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1086 the ELF header.
1087
1088 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1089
1090 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1091 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1092 core-regset.o.
1093
1094 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1095
1096 * corelow.c: Include "arch-utils.h", "regset.h" and
1097 "gdb_assert.h".
1098 (core_gdbarch): New variable.
1099 (sniff_core_bfd): Don't sniff if we have support for register sets
1100 in CORE_GDBARCH.
1101 (core_close): Reset CORE_GDBARCH.
1102 (core_open): Initialize CORE_GDBARCH.
1103 (get_core_register_section): Use register sets if they are
1104 supported by CORE_GDBARCH.
1105 (get_core_registers): Don't print error message if we have support
1106 for register sets in CORE_GDBARCH.
1107
1108 2003-10-29 Andrew Cagney <cagney@redhat.com>
1109
1110 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1111 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1112
1113 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1114
1115 * objfiles.h (clear_objfile_data): New prototype.
1116 * objfiles.c (clear_objfile_data): New function.
1117 * symfile.c (reread_symbols): Clear per-objfile data.
1118
1119 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1120
1121 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1122 printf_unfiltered instead of printf_filtered for output messages.
1123 (add_symbol_file_command): Ditto.
1124 (reread_symbols): Ditto.
1125 (overlay_auto_command): Ditto.
1126 (overlay_manual_command): Ditto.
1127 (overlay_off_command): Ditto.
1128
1129 2003-10-27 Mark Kettenis <kettenis@gnu.org>
1130
1131 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1132 (gdbarch_from_bfd): New function.
1133 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1134 deprecated_select_gdbarch_hack.
1135 * arch-utils.h (gdbarch_from_bfd): New prototype.
1136
1137 2003-10-27 Andrew Cagney <cagney@redhat.com>
1138
1139 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1140 arch_info. Use warning instead of fprintf_filtered. Do not use
1141 deprecated bfd_printable_arch_mach.
1142
1143 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1144
1145 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1146 Delete.
1147 (frv_register_type): Rename from frv_register_virtual_type. Add
1148 ``struct gdbarch *'' parameter.
1149 (frv_gdbarch_init): Delete calls to the following functions:
1150 set_gdbarch_deprecated_size(),
1151 set_gdbarch_deprecated_register_bytes(),
1152 set_gdbarch_deprecated_register_raw_size(),
1153 set_gdbarch_deprecated_max_register_raw_size(),
1154 set_gdbarch_deprecated_register_virtual_size(),
1155 set_gdbarch_deprecated_max_register_virtual_size(),
1156 set_gdbarch_deprecated_register_virtual_size(),
1157 set_gdbarch_deprecated_register_virtual_type().
1158 Add call to function set_gdbarch_register_type().
1159
1160 2003-10-26 Mark Kettenis <kettenis@gnu.org>
1161
1162 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1163 FDOFF_REGNUM): Remove defines.
1164 * win32-nat.c (do_child_fetch_inferior_registers): Include
1165 "i387-tdep.h".
1166 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1167 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1168 undefine I387_ST0_REGNUM.
1169
1170 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1171 * x86-64-tdep.c (x86_64_store_return_value): Use
1172 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1173
1174 Change register numbers to enumartion values.
1175 * i386-tdep.h (enum i386_regnum): New.
1176 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1177 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1178 I386_ST0_REGNUM): Remove defines.
1179 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1180 I386_EDI_REGNUM): Remove defines.
1181
1182 2003-10-24 Andrew Cagney <cagney@redhat.com>
1183
1184 * target.c: Include "gdbcore.h".
1185 (get_target_memory, get_target_memory_unsigned): New functions.
1186 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1187 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1188 Use get_target_memory_unsigned.
1189 * Makefile.in (target.o): Update dependencies.
1190
1191 2003-10-24 Andrew Cagney <cagney@redhat.com>
1192
1193 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1194 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1195 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1196 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1197 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1198
1199 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1200 (can_run_code_for): Use the OO term "singleton".
1201
1202 2003-10-23 Andrew Cagney <cagney@redhat.com>
1203
1204 * Makefile.in (stack.o): Add $(regcache_h).
1205 * stack.c: Include "regcache.h"
1206 (return_command): Rewrite. Use get_frame_id and
1207 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1208 about unhandled return-values.
1209 * value.h (set_return_value): Delete declaration.
1210 * values.c (set_return_value): Delete function.
1211
1212 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1213
1214 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1215 (pseudo_regs): Add comment regarding register stack registers.
1216 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1217 (floatformat_valid): New static routine.
1218 (floatformat_ia64_ext): Add name field and set up is_valid routine
1219 to floatformat_valid().
1220 (examine_prologue): For the previous cfm, use
1221 frame_unwind_register()
1222 if the cfm is not stored in a register-stack register. Save the
1223 previous cfm value in the prev_cfm field. Add debug output.
1224 (ia64_frame_this_id): Use frame_id_build_special() to also register
1225 the bsp. Add debug output.
1226 (ia64_sigtramp_frame_this_id): Ditto.
1227 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1228 registers and also add some checks for framelessness before accepting
1229 current register values for fields such as return address. For cfm,
1230 use the cached prev_cfm field if available. Add comment to explain
1231 PSR logic. Add debug output.
1232 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1233 as part of initialization.
1234 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1235 calculated. Cache the bsp and cfm values.
1236 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1237 instead of using ia64_frame_prev_register() which doesn't expect most
1238 registers to be saved. The saved values for bsp and sp
1239 can be taken from the cache. Add debug output.
1240 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1241 the bsp.
1242
1243 2003-10-23 Jim Blandy <jimb@redhat.com>
1244
1245 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1246 architecture the current arch can run code for --- but not if it's
1247 a superset.
1248 (can_run_code_for): New function.
1249
1250 2003-10-22 James E Wilson <wilson@specifixinc.com>
1251
1252 * MAINTAINERS: Move myself from paper trail section back to write
1253 after approval section.
1254
1255 2003-10-22 Andrew Cagney <cagney@redhat.com>
1256
1257 * exec.h: New file.
1258 * win32-nat.c: Include "exec.h".
1259 * solib.c: Include "exec.h".
1260 * target.h (build_section_table): Delete declaration.
1261 * somsolib.c: Include "exec.h".
1262 (exec_ops): Delete extern declaration.
1263 * rs6000-nat.c: Update copyright. Include "exec.h".
1264 (exec_ops): Delete extern declaration.
1265 * pa64solib.c: Update copyright. Include "exec.h".
1266 (exec_ops): Delete extern declaration.
1267 * exec.c: Update copyright. Include "exec.h".
1268 * corelow.c: Update dependencies. Include "exec.h".
1269 * Makefile.in (exec_h): Define.
1270 (exec.o, somsolib.o): Update dependencies.
1271 (pa64solib.o, corelow.o): Update dependencies.
1272
1273 2003-10-22 Andrew Cagney <cagney@redhat.com>
1274
1275 * target.c: Include "gdb_assert.h" (target_read): Call
1276 "target_read_partial", not "target_write_partial".
1277 (default_read_partial, default_write_partial): New function.
1278 (target_read_partial, target_write_partial): Simplify, assume that
1279 there is always a read/write method.
1280 (update_current_target, add_target): Always set "to_read_partial"
1281 and "to_write_partial".
1282 (target_write, target_read): Fail on a zero byte transfer.
1283 * Makefile.in (target.o): Update dependencies.
1284 * target.h: Update copyright date.
1285 (target_object): Fix typo.
1286
1287 2003-10-22 Andrew Cagney <cagney@redhat.com>
1288
1289 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1290 multi-arch method, add "targ" parameter.
1291 (struct target_ops): Declare.
1292 * gdbarch.h, gdbarch.c: Re-generate.
1293 * Makefile.in (c-valprint.o): Update dependencies.
1294 * arch-utils.h: Update copyright.
1295 (convert_from_func_ptr_addr_identity): Declare.
1296 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1297 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1298 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1299 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1300 * infcall.c (find_function_addr, call_function_by_hand): Update.
1301 * c-valprint.c: Include "target.h".
1302 (print_function_pointer_address): Update.
1303
1304 2003-10-22 Andrew Cagney <cagney@redhat.com>
1305
1306 * target.c (target_close): New function.
1307 (debug_to_close): Use "target_close".
1308 (push_target): Use "target_close".
1309 (unpush_target): Use "target_close".
1310 (pop_target): Use "target_close".
1311 * target.h (struct target_ops): Add "to_xclose".
1312 (target_open): Delete macro. Move comment to "to_open".
1313 (target_close): Replace macro with function that takes a target.
1314 * top.c (quit_target): Pass "current_target" to "target_close".
1315
1316 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1317
1318 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1319 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1320 * symtab.h (lookup_minimal_symbol_text): Update.
1321 * breakpoint.c (create_overlay_event_breakpoint,
1322 create_longjmp_breakpoint): Update callers.
1323 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1324 * symtab.c (find_pc_sect_line): Ditto.
1325
1326 2003-10-21 Andrew Cagney <cagney@redhat.com>
1327
1328 * target.c (errno): Delete extern declaration.
1329
1330 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1331
1332 * ia64-tdep.c: Change all occurrences of
1333 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1334 (ia64_frame_prev_register): Minor whitespace change.
1335
1336 2003-10-20 Michael Chastain <mec@shout.net>
1337
1338 * config/djgpp/fnchange.lst: Add lines for:
1339 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1340 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1341 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1342 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1343 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1344 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1345 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1346
1347 2003-10-20 Andrew Cagney <cagney@redhat.com>
1348
1349 * values.c (register_value_being_returned): Update comments. Use
1350 "gdbarch_return_value" when available.
1351 (using_struct_return): Ditto.
1352 (set_return_value): Ditto. Use "gdbarch_return_value" when
1353 available.. Print a warning, and not an error, when an unhandled
1354 return type is encountered.
1355 * infcmd.c: Include "gdb_assert.h".
1356 (print_return_value): When gdbarch_return_value_p, and using
1357 struct return, assume that the value is not available.
1358 * defs.h (return_value_convention): Define.
1359 * gdbarch.sh (gdbarch_return_value): New predicate method.
1360 * gdbarch.h, gdbarch.c: Re-generate
1361 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1362
1363 2003-10-20 Andrew Cagney <cagney@redhat.com>
1364
1365 * symtab.c: Replace "struct sec" with "struct bfd_section".
1366 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1367
1368 2003-10-19 Michael Chastain <mec@shout.net>
1369
1370 * config/djgpp/fnchange.lst: Add lines for:
1371 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1372 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1373 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1374
1375 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1376
1377 * amd64fbsd-nat.c (fetch_inferior_registers,
1378 store_inferior_registers): Remove functions.
1379 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1380
1381 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1382
1383 Add NetBSD/amd64 native configuration:
1384 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1385 * amd64nbsd-tdep.c: New file.
1386 * amd64nbsd-nat.c: New file.
1387 * amd64bsd-nat.c: New file.
1388 * config/i386/nbsd64.mh: New file.
1389 * config/i386/nbsd64.mt: New file.
1390 * configure.host: Add x86_64-*-netbsd*.
1391 * configure.tgt: Add x86_64-*-netbsd*.
1392 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1393 New targets.
1394 * NEWS (New native configurations): Mention NetBSD/amd64.
1395
1396 2003-10-17 Michael Chastain <mec@shout.net>
1397
1398 * config/djgpp/fnchange.lst: Remove dead lines for:
1399 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1400 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1401 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1402 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1403 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1404 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1405 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1406 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1407 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1408 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1409 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1410 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1411 gdb/config/sparc/tm-sparclite.h,
1412 gdb/gdbtk/generic/ChangeLog-2001,
1413 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1414 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1415 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1416 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1417 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1418 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1419 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1420 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1421 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1422 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1423 itcl/iwidgets3.0.0/demos/fileselectionbox,
1424 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1425 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1426 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1427 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1428 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1429 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1430 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1431 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1432 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1433 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1434 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1435 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1436 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1437 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1438 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1439 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1440 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1441 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1442 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1443 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1444 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1445 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1446 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1447 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1448 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1449 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1450 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1451 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1452 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1453 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1454 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1455 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1456 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1457 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1458 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1459 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1460 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1461 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1462 itcl/iwidgets3.0.0/demos/scrolledframe,
1463 itcl/iwidgets3.0.0/demos/scrolledhtml,
1464 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1465 itcl/iwidgets3.0.0/demos/scrolledtext,
1466 itcl/iwidgets3.0.0/demos/selectionbox,
1467 itcl/iwidgets3.0.0/demos/selectiondialog,
1468 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1469 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1470 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1471 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1472 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1473 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1474 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1475 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1476 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1477 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1478 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1479 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1480 itcl/iwidgets3.0.0/doc/selectionbox.n,
1481 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1482 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1483 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1484 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1485 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1486 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1487 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1488 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1489 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1490 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1491 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1492 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1493 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1494 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1495 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1496 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1497 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1498 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1499 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1500 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1501 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1502 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1503 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1504 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1505 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1506 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1507 itcl/iwidgets3.0.0/tests/selectionbox.test,
1508 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1509 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1510 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1511 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1512 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1513 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1514 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1515 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1516 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1517 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1518 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1519 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1520 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1521 tk/mac/tkMacProjects.sit.hqx.
1522
1523 2003-10-17 Andrew Cagney <cagney@redhat.com>
1524
1525 * target.c (target_section_by_addr): New function.
1526 (do_xfer_memory): Use "target_section_by_addr".
1527 * target.h (target_section_by_addr): Declare.
1528
1529 * target.h (struct target_ops): Add "to_read_partial" and
1530 "to_write_partial", delete "to_query".
1531 (target_read_partial, target_write_partial): Declare.
1532 (target_read, target_write): Declare.
1533 (target_query): Delete macro.
1534 * target.c (target_read_partial): New function.
1535 (target_write_partial, target_read, target_write): New function.
1536 (update_current_target): Delete inheritance of "to_query". Add
1537 comments about "to_read_partial" and "to_write_partial".
1538 (debug_to_partial_read, debug_to_partial_write): New functions.
1539 (debug_to_query): Delete function.
1540 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1541 instead of "to_query".
1542 * remote.c (remote_read_partial): Replace "remote_query".
1543 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1544 (init_remote_async_ops): Ditto.
1545 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1546 "target_read_partial" instead of "target_query".
1547 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1548 Use "target_read_partial" instead of "target_query".
1549
1550 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1551
1552 * frame.h (struct frame_id): Add new field: special_addr.
1553 (frame_id_build_special): New prototype.
1554 * frame.c (frame_id_build_special): New function.
1555 (frame_id_build): Change to call frame_id_build_special().
1556 (frame_id_eq): Change to also test special_addr field.
1557 (frame_id_inner): Update comment.
1558
1559 2003-10-17 Andrew Cagney <cagney@redhat.com>
1560
1561 * target.c (update_current_target): Perform the target cleanup.
1562 Put the target stack beneath the squashed "current_target".
1563 (add_target): Delete disabled call to "cleanup_target".
1564 (cleanup_target): Delete function.
1565 (push_target, unpush_target): Do not call "cleanup_target".
1566
1567 2003-10-17 Andrew Cagney <cagney@redhat.com>
1568
1569 * target.c (target_stack): Change to a static target_ops.
1570 (update_current_target): Walk the "struct target_ops" stack.
1571 (pop_target, do_xfer_memory, target_info): Ditto.
1572 (find_target_beneath): Ditto.
1573 (push_target): Rewrite to use the "struct target_ops" stack.
1574 (unpush_target): Ditto.
1575 * target.h (struct target_stack_item): Delete definition.
1576 (target_stack): Delete declaration.
1577 (struct target_ops): Add field "beneath".
1578
1579 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1580
1581 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1582 declaration.
1583 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1584 (h8300_examine_prologue): Use h8300_normal_mode flag
1585 (h8300_gdbarch_init): Set architecture info for normal mode
1586
1587 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1588
1589 * remote.c (remote_protocol_vcont): New variable.
1590 (set_remote_protocol_vcont_packet_cmd): New function.
1591 (show_remote_protocol_vcont_packet_cmd): New function.
1592 (init_all_packet_configs): Handle remote_protocol_vcont.
1593 (remote_vcont_probe): New function.
1594 (remote_vcont_resume): New function.
1595 (remote_resume): Use it.
1596 (remote_async_resume): Call remote_resume.
1597 (_initialize_remote): Add verbose-resume packet commands.
1598
1599 2003-10-16 Andrew Cagney <cagney@redhat.com>
1600
1601 * infrun.c (handle_inferior_event): Add comment about
1602 "frame_id_inner" being too weak.
1603
1604 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1605
1606 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1607 second parameter, which is always null. Remove
1608 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1609 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1610 accordingly.
1611 * somsolib.c (som_solib_create_inferior_hook,
1612 som_solib_desire_dynamic_linker_symbols): Update callers.
1613 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1614
1615 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1616
1617 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1618 debug interface, SDI (Scalable Debug Interface).
1619 * NEWS: Mention m32r SDI protocol was supported.
1620 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1621 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1622
1623 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1624
1625 * ia64-linux-tdep.c: Include gdbcore.h.
1626 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1627 (ia64_linux_sigcontext_register_addr): Find the address of the
1628 sigcontext area stored in the sigframe instead of using
1629 a magic offset constant.
1630
1631 2003-10-15 Andrew Cagney <cagney@redhat.com>
1632
1633 * remote.c (remote_search): Delete function.
1634 * target.h (target_search): Delete disabled macro.
1635 (struct target_ops): Delete disabled field "to_search".
1636
1637 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1638
1639 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1640 instead of deprecated_inside_entry_file().
1641
1642 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1643
1644 * sh-tdep.c: Fix copy/paste hangover in comment.
1645 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1646 mode.
1647 (sh3e_sh4_extract_return_value): Ditto.
1648
1649 2003-10-13 Richard Henderson <rth@redhat.com>
1650
1651 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1652 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1653 match c_val_print a bit closer.
1654
1655 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1656
1657 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1658 (frv_gdbarch_adjust_breakpoint_address): New function.
1659 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1660 method.
1661
1662 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1663
1664 * breakpoint.h (struct breakpoint): Add new member
1665 ``requested_address''.
1666 * breakpoint.c (breakpoint_adjustment_warning)
1667 (adjust_breakpoint_address): New static functions.
1668 (print_it_typical): Issue warning if breakpoint's address is different
1669 from its requested address.
1670 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1671 (breakpoint_re_set_one): Set breakpoint's
1672 ``requested_address'' field. Set ``address'' field to the
1673 result of calling adjust_breakpoint_address() on the requested
1674 address.
1675
1676 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1677
1678 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1679 * gdbarch.h, gdbarch.c: Regenerate.
1680
1681 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1682
1683 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1684 TDEP->sc_num_regs.
1685
1686 * i386fbsd-tdep.c: New file.
1687 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1688 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1689 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1690 i386bsd-tdep.c.
1691 (_initialize_i386fbsd_tdep): New function.
1692 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1693 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1694 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1695 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1696 TDEP->sc_num_regs.
1697 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1698 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1699 to initialize TDEP->sc_num_regs.
1700 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1701 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1702 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1703 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1704 FreeBSD ELF OS/ABI's here.
1705 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1706 (i386fbsd-tdep.o): New target.
1707 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1708 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1709
1710 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1711 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1712 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1713 in initialization of TDEP->sc_num_regs.
1714
1715 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1716 (x86_64_init_abi): Initialize regset_from_core_section if
1717 appropriate.
1718
1719 * i386-tdep.c (i386_regset_from_core_section): New function.
1720 (i386_gdbarch_init): Initialize regset_from_core_section if
1721 appropriate.
1722 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1723
1724 * i386-tdep.h (struct regset): Declare opaque.
1725
1726 * gdbarch.sh (regset_from_core_section): New method.
1727 (struct regset): Declare opaque.
1728 * gdbarch.c, gdbarch.h: Regenerated.
1729
1730 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1731
1732 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1733 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1734 Correct test for pc within section.
1735
1736 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1737
1738 * gdbarch.sh: Remove trailing whitepsace from comments.
1739
1740 2003-10-08 Roland McGrath <roland@redhat.com>
1741
1742 * gcore.c (make_mem_sec): Function removed, folded into ...
1743 (gcore_create_callback): ... here. To omit a section, clear its
1744 SEC_LOAD bit rather than zeroing its size.
1745 Omit read-only sections only if they correspond to a known disk file.
1746 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1747
1748 2003-10-10 Michael Snyder <msnyder@redhat.com>
1749
1750 * d10v-tdep.c: Fix typo in comment.
1751
1752 2003-10-10 Andrew Cagney <cagney@redhat.com>
1753
1754 * rs6000-tdep.c (e500_store_return_value): Delete function.
1755 (e500_extract_return_value): Delete function.
1756 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1757 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1758 "ppc_sysv_abi_restore_return_value" where applicable.
1759 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1760 (ppc_sysv_abi_extract_return_value): Declare.
1761 (ppc_sysv_abi_broken_store_return_value): Declare.
1762 (ppc_sysv_abi_broken_extract_return_value): Declare.
1763 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1764 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1765 start of file.
1766 (do_ppc_sysv_return_value): New function.
1767 (ppc_sysv_abi_extract_return_value): New function.
1768 (ppc_sysv_abi_store_return_value): New function.
1769 (ppc_sysv_abi_broken_extract_return_value): New function.
1770 (ppc_sysv_abi_broken_store_return_value): New function.
1771 (ppc_sysv_abi_use_struct_convention): Call
1772 do_ppc_sysv_return_value.
1773
1774 2003-10-10 J. Brobecker <brobecker@gnat.com>
1775
1776 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1777 to lookup the main function symbol.
1778
1779 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1780
1781 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1782 types correctly.
1783 (sh_push_dummy_call_fpu): Fix argument passing rules.
1784 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1785 float types.
1786 (sh3e_sh4_store_return_value): Ditto.
1787
1788 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1789
1790 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1791 comment.
1792
1793 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1794
1795 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1796 more readable code. Accomodate passing of bitfields.
1797
1798 2003-10-10 Andrew Cagney <cagney@redhat.com>
1799
1800 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1801 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1802 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1803 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1804 (ppc64_sysv_abi_push_dummy_call): New function.
1805 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1806 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1807 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1808
1809 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1810
1811 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1812 * README: Ditto.
1813 * d10v-tdep.c: Ditto.
1814 * h8300-tdep.c: Ditto.
1815 * remote-e7000.c: Ditto.
1816 * remote-hms.c: Ditto.
1817 * ser-e7kpc.c: Ditto.
1818 * sh-stub.c: Ditto.
1819 * sh-tdep.c: Ditto.
1820 * sh-tdep.h: Ditto.
1821 * sh3-rom.c: Ditto.
1822 * sh64-tdep.c: Ditto.
1823 * top.c: Ditto.
1824 * wince.c: Ditto.
1825 * config/d10v/d10v.mt: Ditto.
1826 * config/sh/embed.mt: Ditto.
1827 * config/sh/linux.mt: Ditto.
1828 * config/sh/tm-linux.h: Ditto.
1829 * config/sh/tm-sh.h: Ditto.
1830 * config/sh/wince.mt: Ditto.
1831
1832 2003-10-09 Andrew Cagney <cagney@redhat.com>
1833
1834 * ppc-tdep.h (struct type): Declare opaque.
1835 * x86-64-tdep.h (struct regcache): Declare opaque.
1836 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1837 coding style.
1838
1839 2003-10-09 Andrew Cagney <cagney@redhat.com>
1840
1841 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1842 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1843 (SOFTWARE_SINGLE_STEP_P): Ditto.
1844 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1845 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1846 (SOFTWARE_SINGLE_STEP_P): Ditto.
1847 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1848 software_single_step to rs6000_software_single_step.
1849
1850 2003-10-09 Andrew Cagney <cagney@redhat.com>
1851
1852 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1853
1854 2003-10-09 Michael Snyder <msnyder@redhat.com>
1855
1856 * frame.h: Fix typo in comment.
1857 * dummy-frame.c: Fix typo in comment.
1858 * d10v-tdep.c: Random whitespace/comment tweaks.
1859
1860 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1861
1862 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1863 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1864 on stack.
1865
1866 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1867 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1868 in detail.
1869
1870 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1871
1872 * remote-mips.c (mips_initialize): Remove unneeded call to
1873 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1874
1875 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1876
1877 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1878 a memory pointer.
1879
1880 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1881
1882 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1883 for any lwp we resume.
1884 (running_callback): Add lwps that have pending status events
1885 against them to be considered running.
1886
1887 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1888
1889 * m32r-tdep.c : Include "dis-asm.h".
1890 * Makefile.in (m32r-tdep.o): Update dependencies.
1891
1892 2003-10-06 J. Brobecker <brobecker@gnat.com>
1893
1894 * completer.h (get_gdb_completer_word_break_characters): Delete.
1895 * completer.c: include language.h.
1896 (gdb_completer_word_break_characters): Delete.
1897 (get_gdb_completer_word_break_characters): Delete.
1898 (location_completer): Use the word break characters of the current
1899 language.
1900 (complete_line): Likewise.
1901 (line_completion_function): Likewise.
1902 (skip_quoted_chars): Likewise.
1903 * Makefile.in (completer.o): Add dependency on language.h.
1904 * top.c (init_main): Set the readline word break characters
1905 to GDB's default word break characters.
1906
1907 2003-10-06 J. Brobecker <brobecker@gnat.com>
1908
1909 * language.h (language_defn): new field, la_word_break_characters.
1910 * language.c (unknown_language_defn): Set new field to
1911 default_word_break_characters.
1912 (auto_language_defn): Likewise.
1913 (local_language_defn): Likewise.
1914 * ada-lang.c (ada_language_defn): Likewise.
1915 * c-lang.c (c_language_defn): Likewise.
1916 (cplus_language_defn): Likewise.
1917 (asm_language_defn): Likewise.
1918 (minimal_language_defn): Likewise.
1919 * f-lang.c (f_language_defn): Likewise.
1920 * jv-lang.c (java_language_defn): Likewise.
1921 * m2-lang.c (m2_language_defn): Likewise.
1922 * objc-lang.c (objc_language_defn): Likewise.
1923 * p-lang.c (pascal_language_defn): Likewise.
1924 * scm-lang.c (scm_language_defn): Likewise.
1925
1926 2003-10-06 Andrew Cagney <cagney@redhat.com>
1927
1928 * ppc-sysv-tdep.c: Re-indent.
1929
1930 2003-10-06 J. Brobecker <brobecker@gnat.com>
1931
1932 * language.h (default_word_break_characters): Add prototype.
1933 * language.c (default_word_break_characters): New function.
1934
1935 2003-10-06 Andreas Schwab <schwab@suse.de>
1936
1937 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1938 with %eax.
1939
1940 2003-10-06 Andrew Cagney <cagney@redhat.com>
1941
1942 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1943 "h8500-tdep.c".
1944 (z8k-tdep.o): Delete custom build rule.
1945
1946 2003-10-06 Andrew Cagney <cagney@redhat.com>
1947
1948 * Makefile.in: Update all dependencies.
1949
1950 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1951 No longer list PA as as obsolete candidate. List m32r as
1952 broken instead of obsolete.
1953
1954 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1955 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1956 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1957 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1958 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1959 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1960 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1961 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1962 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1963 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1964 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1965 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1966 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1967 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1968 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1969 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1970 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1971 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1972 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1973 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1974 * config/z8k/z8k.mt: Ditto.
1975
1976 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1977 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1978 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1979 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1980 sparclite were removed.
1981 * configure.host, configure.tgt: Remove corresponding tuples.
1982
1983 * breakpoint.c, breakpoint.h: Remove obsolete code.
1984 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1985 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1986 * stabsread.h, xcoffread.c: Ditto.
1987
1988 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1989 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1990 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1991 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1992
1993 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1994
1995 * f-valprint.c: Reformatting
1996
1997 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1998
1999 * x86-64-tdep.c: Remove duplicate comment.
2000
2001 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2002 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2003 names for return values. This fixes a bug since we looked at %rbx
2004 instead of %rdx.
2005
2006 2003-10-05 Mark Kettenis <kettenis@gnu.org>
2007
2008 * x86-64-tdep.c: Include "regset.h".
2009
2010 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2011 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2012 sizeof_fpregset.
2013 * i386-tdep.c: Include "regset.h".
2014 (i386_supply_gregset): New function.
2015 (i386_supply_fpregset): New function.
2016 (i386_gdbarch_init): Initialze register set-related members of
2017 TDEP.
2018 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2019 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2020
2021 2003-10-03 Andrew Cagney <cagney@redhat.com>
2022
2023 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2024 set extract_return_value, store_return_value and
2025 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2026 ppc64_sysv_abi_store_return_value and
2027 ppc64_sysv_abi_use_struct_convention.
2028 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2029 (ppc64_sysv_abi_store_return_value): Declare.
2030 (ppc64_sysv_abi_use_struct_convention): Declare.
2031 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2032 (ppc64_sysv_abi_extract_return_value): New function.
2033 (ppc64_sysv_abi_store_return_value): New function.
2034 (ppc64_sysv_abi_use_struct_convention): New function.
2035 (ppc64_sysv_abi_return_value): New function.
2036
2037 2003-10-03 Andrew Cagney <cagney@redhat.com>
2038
2039 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2040 convert a descriptor to a function when it's in the ".opd"
2041 section.
2042
2043 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2044
2045 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2046 reg_size to keep GCC silent.
2047
2048 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2049
2050 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2051 base for DW_EH_PE_textrel encodings.
2052 (read_encoded_value): Add a DW_EH_PE_textrel case.
2053 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2054 section.
2055
2056 2003-10-03 Mark Kettenis <kettenis@gnu.org>
2057
2058 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2059
2060 2003-10-02 Andrew Cagney <cagney@redhat.com>
2061
2062 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2063 REGISTER_RAW_SIZE.
2064 * gdbarch.h, gdbarch.c: Re-generate.
2065 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2066 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2067 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2068 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2069 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2070 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2071 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2072 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2073 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2074 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2075 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2076 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2077 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2078 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2079 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2080 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2081
2082 2003-10-02 Jim Blandy <jimb@redhat.com>
2083
2084 * dwarf2read.c (struct die_info): Doc fix.
2085
2086 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2087
2088 * sh-tdep.c: Running thru gdb_indent.sh.
2089
2090 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2091
2092 * sh-tdep.c (sh_justify_value_in_reg): New function.
2093 (sh_stack_allocsize): Ditto.
2094 (flt_argreg_array): New array used for floating point argument
2095 passing.
2096 (sh_init_flt_argreg): New function.
2097 (sh_next_flt_argreg): Ditto.
2098 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2099 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2100 Fix argument passing strategy.
2101 (sh_push_dummy_call_nofpu): Ditto.
2102
2103 2003-10-01 Andrew Cagney <cagney@redhat.com>
2104
2105 * value.h (register_value_being_returned): Declare. Replace
2106 "value_being_returned".
2107 * infcall.c (call_function_by_hand): Use
2108 register_value_being_returned.
2109 * infcmd.c (print_return_value): Call
2110 "register_value_being_returned", handle struct return locally.
2111 * values.c (register_value_being_returned): New function. Replace
2112 "value_being_returned".
2113
2114 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
2115
2116 * linux-proc.c (linux_do_registers): New function.
2117 (linux_make_note_section): Use linux_do_registers in case of
2118 single threaded inferior programs.
2119
2120 2003-10-01 Andrew Cagney <cagney@redhat.com>
2121
2122 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2123 use STRUCT_ADDR. When not using "struct return convention", pass
2124 "0" to "value_being_returned". Add FIXMEs.
2125 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2126 value_being_returned. Add comments.
2127 * values.c (value_being_returned): Add fixme.
2128 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2129 (hppa_value_returned_from_stack): Add FIXME.
2130
2131 2003-09-30 David Carlton <carlton@kealia.com>
2132
2133 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2134 'has_children' and 'next' by 'child' and 'sibling'.
2135 (read_comp_unit): Rework algorithm, breaking body into
2136 read_die_and_children and read_die_and_siblings.
2137 (read_die_and_children, read_die_and_siblings): New.
2138 (read_full_die): Add 'has_children' argument; set it instead of
2139 the die's 'has_children' field. Minor formatting cleanup.
2140 (free_die_list): Use die->child and die->sibling instead of
2141 die->next.
2142 (dump_die_list): Ditto.
2143 (sibling_die): Use die->sibling.
2144 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2145 'has_children' and 'next' fields.
2146 (process_die, read_file_scope, read_func_scope)
2147 (read_lexical_block_scope, read_structure_scope)
2148 (read_enumeration, read_array_type, read_common_block)
2149 (read_namespace, read_subroutine_type, dump_die): Ditto.
2150
2151 2003-09-30 Andrew Cagney <cagney@redhat.com>
2152
2153 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2154 to 224, not 220.
2155
2156 2003-09-30 Andrew Cagney <cagney@redhat.com>
2157
2158 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2159 REGISTER_VIRTUAL_SIZE.
2160 * gdbarch.h, gdbarch.c: Regenerate.
2161 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2162 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2163 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2164
2165 2003-09-29 Andrew Cagney <cagney@redhat.com>
2166
2167 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2168 REGISTER_VIRTUAL_TYPE.
2169 * gdbarch.h, gdbarch.c: Regenerate.
2170 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2171 * sh64-tdep.c, sparc-tdep.c: Update.
2172
2173 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2174 * remote-vxmips.c (vx_read_register): Ditto.
2175 * remote-vx68.c (vx_read_register): Ditto.
2176 * gnu-nat.c (inf_validate_procs): Ditto.
2177
2178 2003-09-29 J. Brobecker <brobecker@gnat.com>
2179
2180 * infcall.c (call_function_by_hand): Fix build failure
2181 introduced in the previous change to this file.
2182
2183 2003-09-29 Andrew Cagney <cagney@redhat.com>
2184
2185 * NEWS: Mention Objective-C.
2186
2187 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2188
2189 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2190 test if the register has been saved on the stack.
2191 (arm_scan_prologue_cache): When analysing the instruction
2192 "str lr, [sp, #-4]", save the address where lr has been stored.
2193
2194 2003-09-28 Andrew Cagney <cagney@redhat.com>
2195
2196 * frame.c (frame_read_unsigned_register): Delete function.
2197 * frame.h (frame_read_unsigned_register): Delete declaration.
2198 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2199 get_frame_register_unsigned.
2200 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2201 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2202 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2203
2204 * frame.h (frame_read_register): Delete declaration.
2205 * frame.c (frame_read_register): Delete function.
2206 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2207 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2208 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2209 * mips-tdep.c (mips_register_to_value): Ditto.
2210 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2211 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2212
2213 * frame.c (frame_read_signed_register): Delete function.
2214 (frame_read_unsigned_register): Update comments.
2215 * frame.h (frame_read_signed_register): Delete declaration.
2216 * h8300-tdep.c (h8300_print_register): Use
2217 get_frame_register_signed.
2218 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2219
2220 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2221 Rename VALUE_RETURNED_FROM_STACK.
2222 * infcmd.c (print_return_value): Update.
2223 * infcall.c (call_function_by_hand): Update.
2224
2225 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2226
2227 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2228 regcache argument and reverse the order of the other two
2229 arguments. Remove local regcache variable. Determine
2230 architecture from REGCACHE. Update comments.
2231 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2232 reverse the order of the other two arguments. Remove local
2233 regcache variable. Determine architecture from REGCACHE. Update
2234 comments.
2235 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2236 prototypes. Update comments.
2237 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2238 comment.
2239 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2240 Update.
2241 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2242 * i386-interix-nat.c (supply_fpregset): Update.
2243 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2244 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2245 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2246 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2247 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2248 Update.
2249 * i386obsd-tdep.c (fetch_core_registers): Update.
2250 * i386v4-nat.c (supply_fpregset): Update.
2251 * x86-64-linux-nat.c (supply_fpregset): Update.
2252 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2253
2254 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2255
2256 * i386-tdep.h: Put opaque declarations in alphabetical
2257 order. Remove spurious whitespace.
2258 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2259 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2260 * i386-tdep.c (MM0_REGNUM): Remove define.
2261 (i386_mmx_regnum_p): Add gdbarch argument.
2262 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2263 Rewrite using new macro definitions for FPU/SSE registers.
2264 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2265 definitions from i387-tdep.h.
2266 (i386_register_name): Update.
2267 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2268 new macro definitions for FPU/SSE registers.
2269 (i386_extract_return_value): Determine whether floating-point
2270 registers are present by examining REGCACHE's architecture.
2271 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2272 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2273 FPU/SSE registers.
2274 (i386_register_type): Update.
2275 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2276 definitions for FPU registers. Use REGCACHE's architecture to
2277 determine the appropriate register numbers.
2278 (i386_pseudo_register_read, i386_pseudo_register_write,
2279 i386_register_reggroup_p): Update.
2280 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2281 TDEP->mm0_regnum.
2282 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2283 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2284 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2285 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2286 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2287 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2288 *' to `void *'.
2289 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2290 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2291 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2292 definitions for FPU/SSE registers.
2293 (FXSAVE_MXCSR_ADDR): New define.
2294 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2295 TDEP->mm0_regnum.
2296 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2297 (I387_ST0_REGNUM): Define.
2298
2299 * regcache.h (get_regcache_arch): New prototype.
2300 * regcache.c (get_regcache_arch): New function.
2301
2302 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2303 whitespace.
2304
2305 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2306 Initialize using ARRAY_SIZE.
2307
2308 2003-09-27 Andrew Cagney <cagney@redhat.com>
2309
2310 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2311 "init_frame_pc_default".
2312 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2314 * vax-tdep.c (vax_gdbarch_init): Update.
2315 * v850-tdep.c (v850_gdbarch_init): Update.
2316 * sh64-tdep.c (sh64_gdbarch_init): Update.
2317 * s390-tdep.c (s390_gdbarch_init): Update.
2318 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2319 * mcore-tdep.c (mcore_gdbarch_init): Update.
2320 * h8300-tdep.c (h8300_gdbarch_init): Update.
2321 * cris-tdep.c (cris_gdbarch_init): Update.
2322 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2323
2324 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2325
2326 * regset.h: New file.
2327 * Makefile.in (regset_h): Add.
2328
2329 2003-09-25 Andrew Cagney <cagney@redhat.com>
2330
2331 * frame.h (deprecated_frame_saved_regs): Rename
2332 get_frame_saved_regs.
2333 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2334 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2335 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2336 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2337 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2338
2339 2003-09-25 Andrew Cagney <cagney@redhat.com>
2340
2341 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2342 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2343 and Java.
2344 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2345 arm*-*-* do not use the new frame code.
2346
2347 2003-09-25 David Carlton <carlton@kealia.com>
2348
2349 * c-exp.y: Remove 'register' declarations.
2350 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2351
2352 2003-09-25 David Carlton <carlton@kealia.com>
2353
2354 * c-exp.y: Include cp-support.h. Add qualified_type.
2355 (yylex): Delete nested type hack; add comments.
2356 * cp-namespace.c (cp_lookup_nested_type): New function.
2357 * cp-support.h: Declare cp_lookup_nested_type.
2358 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2359 instead of value_struct_elt_for_reference.
2360 * valops.c: Include cp-support.h.
2361 (value_aggregate_elt): New function.
2362 (value_namespace_elt): Ditto.
2363 (value_struct_elt_for_reference): Make static.
2364 * value.h: Delete declaration of value_struct_elt_for_reference;
2365 add declaration for value_aggregate_elt.
2366 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2367 (valops.o): Ditto.
2368
2369 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2370
2371 * stack.c: Include "reggroups.h".
2372 (frame_info): Only display registers in all_reggroup.
2373 * Makefile.in (stack.o): Update dependencies.
2374
2375 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2376
2377 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2378 "add ip, sp #n" in the prologue.
2379 (arm_scan_prologue): Ditto.
2380
2381 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2382
2383 * MAINTAINERS (write after approval): Add myself.
2384
2385 2003-09-25 Andreas Schwab <schwab@suse.de>
2386
2387 * m68k-tdep.c: Include "dwarf2-frame.h".
2388 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2389 * Makefile.in (m68k-tdep.o): Update dependencies.
2390
2391 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2392
2393 * sh-tdep.c (struct frame_extra_info): Remove.
2394 (struct sh_frame_cache): New structure.
2395 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2396 (GET_TARGET_REG): Ditto but target register.
2397 (GET_PUSHED_REG): Remove.
2398 (IS_MOV_ARG_TO_REG): New macro.
2399 (IS_MOV_ARG_TO_IND_R14): New macro.
2400 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2401 (IS_MOVW_PCREL_TO_REG): New macro.
2402 (IS_MOVL_PCREL_TO_REG): New macro.
2403 (IS_SUB_REG_FROM_SP): New macro.
2404 (IS_ARG_MOV): Remove.
2405 (IS_MOV_TO_R14): Remove.
2406 (IS_RESTORE_FP): New macro.
2407 (IS_RTS): New macro.
2408 (IS_LDS): New macro.
2409 (IS_MOV_FP_SP): New macro.
2410 (IS_ADD_REG_TO_FP): New macro.
2411 (IS_ADD_IMM_FP): New macro.
2412 (sh_skip_prologue_hard_way): Remove.
2413 (sh_saved_pc_after_call): Remove.
2414 (sh_frame_chain): Remove.
2415 (sh_find_callers_reg): Remove.
2416 (sh_nofp_frame_init_saved_regs): Remove.
2417 (sh_fp_frame_init_saved_regs): Remove.
2418 (sh_init_extra_frame_info): Remove.
2419 (sh_analyze_prologue): New function.
2420 (sh_skip_prologue): Remove deprecated code. Rely on new function
2421 sh_analyze_prologue when after_prologue fails.
2422 (sh_frame_saved_pc): Remove.
2423 (sh_alloc_frame_cache): New function.
2424 (sh_frame_cache): Ditto.
2425 (sh_frame_prev_register): Ditto.
2426 (sh_frame_this_id): Ditto.
2427 (sh_frame_unwind): New structure defining the heuristic frame
2428 sniffer interface.
2429 (sh_frame_sniffer): New function.
2430 (sh_unwind_sp): Ditto.
2431 (sh_unwind_pc): Ditto.
2432 (sh_unwind_dummy_id): Ditto.
2433 (sh_frame_base_address): Ditto.
2434 (sh_frame_base): New structure defining new frame base code.
2435 (sh_in_function_epilogue_p): New function.
2436 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2437 code and to call all new code instead. Initialize dwarf2 and
2438 heuristic frame sniffer.
2439
2440 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2441
2442 * parser-defs.h (struct exp_descriptor): New definition, containing
2443 language-specific info for printing, prefixifying, dumping, and
2444 evaluating expressions.
2445 (exp_descriptor_standard): Declare new variable.
2446 (print_subexp): Make global and declare here (from expprint.c).
2447 (dump_subexp): Ditto.
2448 (dump_subexp_body_standard): Declare.
2449 (operator_length_standard): Declare.
2450 (op_name_standard): Declare.
2451 (print_subexp): Declare.
2452 (print_subexp_standard): Declare.
2453
2454 * language.h (struct language_defn): Add la_exp_desc field to hold
2455 pointer to table for language-specific operators.
2456 Remove evaluate_exp field, which is now in struct exp_descriptor.
2457
2458 * parse.c (operator_length): Move most code to new
2459 operator_length_standard function. Use language-specific information.
2460 (operator_length_standard): New function taking most code from
2461 operator_length.
2462 (exp_descriptor_standard): New constant.
2463
2464 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2465 and OP_EXTENDED_LAST.
2466
2467 * expprint.c (print_subexp): Use language-specific print_subexp.
2468 Make global; remove static declaration.
2469 Move most code to print_subexp_standard.
2470 (print_subexp_standard): New function, containing code formerly in
2471 print_subexp.
2472 (op_name): Add expression to argument signature.
2473 Use langauge-specific op_name.
2474 Move most code to op_name_standard.
2475 (op_name_standard): New function, containing code formerly in op_name.
2476 (dump_subexp): Use new version of op_name function.
2477 Use language-specific dump_subexp_body, and move most existing code to
2478 dump_subexp_body_standard.
2479 (dump_raw_expression): Use new op_name interface.
2480 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2481 (dump_subexp_body_standard): New function, containing code formerly
2482 in dump_subexp_body.
2483
2484 * language.c (unknown_language): Add default la_exp_desc field and
2485 remove evaluate_exp field.
2486 (auto_language): Ditto.
2487 (local_language): Ditto.
2488 * f-lang.c (f_language_defn): Ditto.
2489 * c-lang.c (c_language_defn): Ditto.
2490 (cplus_language_defn): Ditto.
2491 (asm_language_defn): Ditto.
2492 (minimal_language_defn): Ditto.
2493 * p-lang.c (pascal_language_defn): Ditto.
2494 * m2-lang.c (m2_language_defn): Ditto.
2495 * objc-lang.c (objc_language_defn): Ditto.
2496
2497 * jv-lang.c (exp_descriptor_java): New variable, containing
2498 Java-specific expression evaluator.
2499 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2500 field.
2501 * scm-lang.c (exp_descriptor_scm): New variable, containing
2502 Scheme-specific expression evaluator.
2503 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2504 field.
2505 * objc-lang.c (print_object_command): Take evaluate_exp from the
2506 la_exp_desc field.
2507
2508 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2509
2510 * eval.c: Include parser-defs.h for the full declaration of
2511 la_exp_desc's type.
2512 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2513
2514 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2515
2516 * parser-defs.h (operator_length): Declare.
2517
2518 * parse.c (length_of_subexp): Use operator_length to get operator
2519 lengths and arities for operators.
2520 Move most code to new operator_length function.
2521 (operator_length): New function absorbing most code from
2522 length_of_subexp.
2523 (prefixify_subexp): Remove large case and use operator_length instead.
2524 (parse_exp_1): Use renamings:
2525 dump_prefix_expression => dump_raw_expression and
2526 dump_postfix_expression => dump_prefix_expression.
2527
2528 * expression.h (dump_prefix_expression): Rename to ...
2529 (dump_raw_expression): New name.
2530 (dump_postfix_expression): Rename to ...
2531 (dump_prefix_expression): New name.
2532
2533 * expprint.c (dump_subexp): Make global. Add comment.
2534 Move most existing code to dump_subexp_body.
2535 (dump_subexp_body): New function.
2536 (dump_prefix_expression): Rename to dump_raw_expression.
2537 Remove attempt to print the expression via print_expression: it can't
2538 work before the expression is prefixified.
2539 (dump_raw_expression): Renamed from dump_prefix_expression.
2540 (dump_postfix_expression): Rename to dump_prefix_expression, since
2541 that's what it does.
2542 Remove 'note' parameter, since this routine must be used on
2543 prefixified expression.
2544 (dump_prefix_expression): Renamed from dump_postfix_expression.
2545
2546 2003-09-22 Jim Blandy <jimb@redhat.com>
2547
2548 * dwarf2read.c (read_array_type): When building the type for an
2549 array of unspecified length, make sure to choose the upper bound
2550 so that the array's total length comes out to be zero --- that's
2551 how we represent such arrays.
2552
2553 2003-09-22 Michael Chastain <mec@shout.net>
2554
2555 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2556
2557 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2558
2559 * top.c (quit_force): Fix indirect call to quit_target so
2560 a struct qt_args pointer is passed.
2561
2562 2003-09-22 Andrew Cagney <cagney@redhat.com>
2563
2564 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2565 * arch-utils.c (init_frame_pc_noop): Delete function.
2566 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2567 "init_frame_pc".
2568 * mips-tdep.c (mips_gdbarch_init): Ditto.
2569 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2570 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2571 declaration.
2572 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2573 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2574 declaration.
2575 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2576
2577 2003-09-22 Anthony Green <green@redhat.com>
2578
2579 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2580 declaration.
2581
2582 2003-09-20 Andrew Cagney <cagney@redhat.com>
2583
2584 * breakpoint.c: Eliminate ARGSUSED.
2585 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2586 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2587 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2588 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2589 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2590 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2591 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2592 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2593 * wince.c, remote-vx.c: Ditto.
2594
2595 * cli/cli-script.c: Remove "register" attributes.
2596 * config/pa/tm-hppa.h: Ditto.
2597 * cli/cli-decode.c: Ditto.
2598 * cli/cli-cmds.c: Ditto.
2599
2600 2003-09-19 Andrew Cagney <cagney@redhat.com>
2601
2602 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2603 DEPRECATED_NPC_REGNUM.
2604 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2605
2606 2003-09-19 Christopher Faylor <cgf@redhat.com>
2607
2608 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2609
2610 2003-09-19 Jim Blandy <jimb@redhat.com>
2611
2612 * macrotab.c (macro_include): Use the correct comparison to find
2613 the appropriate place for this inclusion in the list.
2614
2615 2003-09-19 Andrew Cagney <cagney@redhat.com>
2616
2617 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2618 (DEPRECATED_HPUX_TEXT_END): Define.
2619 (deprecated_hpux_text_end): Declare.
2620 (struct target_ops): Declare opaque.
2621 * hppah-nat.c (text_end): Make static.
2622 (deprecated_hpux_text_end): New function.
2623 * exec.c (text_end): Delete global variable.
2624 (NEED_TEXT_START_END): Do not define.
2625 (exec_file_attach): Replace code computing "text_end" code with
2626 call to DEPRECATED_HPUX_TEXT_END.
2627
2628 2003-09-19 Andrew Cagney <cagney@redhat.com>
2629
2630 * utils.c (align_up, align_down): New functions.
2631 * defs.h (align_up, align_down): Declare.
2632 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2633 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2634 and "align_down".
2635 (round_up, round_down): Delete functions.
2636 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2637 "align_down".
2638 (ROUND_DOWN, ROUND_UP): Delete macros.
2639 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2640 * h8300-tdep.c: Replace "round_up" and "round_down" with
2641 "align_up" and "align_down".
2642 (round_up, round_down): Delete macros.
2643 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2644 "align_down".
2645 (ROUND_UP, ROUND_DOWN): Delete macros.
2646
2647 2003-09-18 J. Brobecker <brobecker@gnat.com>
2648
2649 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2650 hard-coded constant. Use the proper machine name instead.
2651
2652 2003-09-17 Andrew Cagney <cagney@redhat.com>
2653
2654 * sparc-tdep.c (legacy_register_name): Delete function.
2655 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2656 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2657 * infcmd.c (gdb_register_name): Delete variable.
2658 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2659 REGISTER_NAME and "tm.h".
2660 * gdbarch.h, gdbarch.c: Regenerate.
2661 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2662 REGISTER_NAMES in comments.
2663 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2664 * m68klinux-nat.c (regmap): Ditto.
2665
2666 2003-09-17 Jim Blandy <jimb@redhat.com>
2667
2668 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2669
2670 2003-09-17 Andrew Cagney <cagney@redhat.com>
2671
2672 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2673 (ppcnbsd_init_abi): Set "use_struct_convention" to
2674 "ppcnbsd_use_struct_convention".
2675
2676 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2677
2678 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2679 * gdbarch.h, gdbarch.c: Regenerate.
2680 (stabs_argument_has_addr): New architecture method.
2681 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2682 * arch-utils.c: Include "buildsym.h".
2683 (default_stabs_argument_has_addr): New function.
2684 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2685 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2686
2687 2003-09-17 Andrew Cagney <cagney@redhat.com>
2688
2689 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2690 * gdbarch.h, gdbarch.c: Regenerate.
2691 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2692 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2693 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2694 * sparcnbsd-tdep.c: Update.
2695
2696 2003-09-17 Andrew Cagney <cagney@redhat.com>
2697
2698 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2699 * gdbarch.h, gdbarch.c: Regenerate.
2700 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2701 * d10v-tdep.c, frame.c: Update.
2702 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2703 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2704 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2705 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2706 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2707 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2708 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2709 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2710 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2711 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2712 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2713 * config/pa/nm-hppah.h: Update.
2714
2715 2003-09-16 Andrew Cagney <cagney@redhat.com>
2716
2717 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2718 "use_struct_convention" to "ppc_linux_use_struct_convention".
2719 (ppc_linux_use_struct_convention): New function.
2720 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2721 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2722 "rs6000_use_struct_convention".
2723 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2724 declaration.
2725 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2726 Delete function.
2727
2728 2003-09-16 Andrew Cagney <cagney@redhat.com>
2729
2730 * buildsym.c: Remove more occurances of "register".
2731 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2732 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2733 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2734 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2735 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2736 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2737 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2738 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2739
2740 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2741
2742 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2743 numbers to enumeration values.
2744 * sh-tdep.c: Accomodate above change.
2745 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2746 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2747 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2748 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2749 (IS_FPUSH): Rename from IS_FMOV.
2750 (sh_extract_struct_value_address): Remove useless comment.
2751 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2752 instead of own local values.
2753 (sh_dump_tdep): Remove.
2754 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2755 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2756
2757 2003-09-15 Andrew Cagney <cagney@redhat.com>
2758
2759 * doublest.c (convert_floatformat_to_doublest): No longer need to
2760 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2761
2762 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2763
2764 * values.c (unpack_double): Call floatformat_is_valid.
2765
2766 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2767
2768 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2769 ps_strings into a long.
2770
2771 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2772 _initialize_am64fbsd_nat.
2773
2774 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2775
2776 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2777 associated with DW_AT_ranges attribute is out of bounds.
2778
2779 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2780
2781 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2782
2783 2003-09-14 Michael Chastain <mec@shout.net>
2784
2785 * config/m68k/nm-apollo68v.h: Delete.
2786 * config/m68k/xm-apollo68v.h: Delete.
2787
2788 2003-09-14 Andrew Cagney <cagney@redhat.com>
2789
2790 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2791 * dcache.c: Update copyrights and descriptions.
2792 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2793
2794 2003-09-14 Andrew Cagney <cagney@redhat.com>
2795
2796 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2797 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2798
2799 2003-09-14 Andrew Cagney <cagney@redhat.com>
2800
2801 * alpha-nat.c: Remove some occurances of "register".
2802 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2803 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2804 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2805 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2806 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2807 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2808 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2809 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2810 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2811 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2812 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2813 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2814 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2815 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2816 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2817 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2818 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2819 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2820 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2821 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2822 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2823 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2824
2825 2003-09-13 Andrew Cagney <cagney@redhat.com>
2826
2827 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2828 * ppc-tdep.h (struct regcache): Declare opaque.
2829 * objfiles.h (struct objfile_data): Declare opaque.
2830 * cp-support.h (struct objfile): Declare opaque.
2831 * linux-nat.h (target_waitstatus): Declare opaque.
2832
2833 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2834
2835 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2836 (stabs_argument_has_addr): New architecture method.
2837 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2838 * arch-utils.c: Include "buildsym.h".
2839 (default_stabs_argument_has_addr): New function.
2840 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2841 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2842
2843 * cris-tdep.c (cris_gdbarch_init): Set
2844 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2845 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2846 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2847 * mips-tdep.c (mips_gdbarch_init): Likewise.
2848 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2849 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2850
2851 2003-09-13 Andrew Cagney <cagney@redhat.com>
2852
2853 * values.c (using_struct_return): Delete "function" and "funcaddr"
2854 parameters.
2855 * value.h (using_struct_return): Update declaration.
2856 * infcmd.c (finish_command_continuation): Update.
2857 (finish_command): Update.
2858 * infcall.c (call_function_by_hand): Update.
2859 * eval.c (evaluate_subexp_standard): Update.
2860
2861 2003-09-13 Christopher Faylor <cgf@redhat.com>
2862
2863 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2864 SSE registers since gdb will not operate correctly without this.
2865 Restore include file ordering munged in previous change.
2866 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2867
2868 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2869
2870 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2871 REG_STRUCT_HAS_ADDR.
2872 * gdbarch.c, gdbarch.h: Updated.
2873 * infcall.c (call_function_by_hand): Update.
2874 * stabsread.c (define_symbol): Updated.
2875
2876 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2877
2878 2003-09-12 Christopher Faylor <cgf@redhat.com>
2879
2880 * win32-nat.c: Reorganize so that defines used by target headers are
2881 actually defined by the system headers.
2882 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2883 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2884
2885 2003-09-12 Jim Blandy <jimb@redhat.com>
2886
2887 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2888 the file has no .data, .bss, or .rodata sections. Instead wait
2889 until we see a variable alleged to live in one of those sections.
2890
2891 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2892 .bss section, presume that any variables we find live in the
2893 .rodata section.
2894
2895 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2896 offsets for global and static variables.
2897
2898 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2899 symbol types are, by definition, in the .data section, so it is
2900 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2901 If there is no .data section, there should be no N_DATA or N_DATA
2902 | N_EXT symbols.
2903
2904 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2905
2906 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2907 (amd64fbsd_sigcontext_addr): Rewrite.
2908 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2909 with correct values.
2910 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2911 (amd64fbsd_init_abi): Fix typo.
2912
2913 2003-09-12 Andrew Cagney <cagney@redhat.com>
2914
2915 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2916 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2917
2918 2003-09-12 Andrew Cagney <cagney@redhat.com>
2919
2920 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2921 "entry_file_highpc". Update comments.
2922 * defs.h (deprecated_inside_entry_file): Rename
2923 "inside_entry_file".
2924 * blockframe.c (deprecated_inside_entry_file): Rename
2925 "inside_entry_file".
2926 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2927 * vax-tdep.c (vax_frame_chain): Update.
2928 * sh64-tdep.c (sh64_frame_chain): Update.
2929 * sh-tdep.c (sh_frame_chain): Update.
2930 * rs6000-tdep.c (rs6000_frame_chain): Update.
2931 * ns32k-tdep.c (ns32k_frame_chain): Update.
2932 * mips-tdep.c (mips_frame_chain): Update.
2933 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2934 * m32r-tdep.c (m32r_frame_this_id): Update.
2935 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2936 * frv-tdep.c (frv_frame_this_id): Update.
2937 * d10v-tdep.c (d10v_frame_this_id): Update.
2938 * cris-tdep.c (cris_frame_chain): Update.
2939 * blockframe.c (legacy_frame_chain_valid): Update.
2940 * avr-tdep.c (avr_frame_this_id): Update.
2941 * arm-tdep.c (arm_prologue_this_id): Update.
2942 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2943 * objfiles.c (objfile_relocate): Update.
2944 * mipsread.c (mipscoff_symfile_read): Update.
2945 (mipscoff_symfile_read): Update.
2946 * mdebugread.c (parse_partial_symbols): Update.
2947 * dwarfread.c (read_file_scope): Update.
2948 * dwarf2read.c (read_file_scope): Update.
2949 * dbxread.c (read_dbx_symtab): Update.
2950 (read_dbx_symtab): Update.
2951 * coffread.c (complete_symtab): Update.
2952
2953 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2954
2955 * top.c (quit_target): New static helper function.
2956 (quit_force): Moved code to quit_target(). Call quit_target()
2957 via catch_errors() to catch errors during quit.
2958
2959 2003-09-11 David Carlton <carlton@kealia.com>
2960
2961 * buildsym.c (finish_block): Use allocate_block to allocate the
2962 block.
2963 * mdebugread.c (new_block): Add FIXME.
2964
2965 2003-09-11 David Carlton <carlton@kealia.com>
2966
2967 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2968 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2969 (recursive_dump_type): Ditto.
2970 * printcmd.c (print_formatted): Ditto.
2971 * typeprint.c (print_type_scalar): Ditto.
2972 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2973 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2974 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2975 maint_cplus_cmd_list.
2976 * cp-support.c: Make maint_cplus_cmd_list extern.
2977 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2978 command.h.
2979 (lookup_symbol_file): Look in possible namespace blocks when
2980 appropriate.
2981 (initialize_namespace_symtab): New.
2982 (get_possible_namespace_block, free_namespace_block)
2983 (check_possible_namespace_symbols)
2984 (check_possible_namespace_symbols_loop)
2985 (check_one_possible_namespace_symbol)
2986 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2987 (_initialize_cp_namespace): Ditto.
2988 * block.h: Declare allocate_block.
2989 * block.c (allocate_block): New.
2990 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2991 allocate_block.
2992 * symfile.h: Update declaration of add_psymbol_to_list.
2993 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2994 question.
2995 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2996 scan_partial_symbols_call.
2997 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2998 helper functions.
2999 (add_partial_symbol): If necessary, scan mangled names for names
3000 of namespaces.
3001 (add_partial_namespace): Add NAMESPACE argument; generate partial
3002 symbols associated to namespaces.
3003 (add_partial_enumeration): Add NAMESPACE argument.
3004 (new_symbol): Allow namespace syms.
3005 (read_namespace): Generate namespace syms.
3006 * objfiles.h: Add opaque declaration of struct symtab.
3007 (struct objfile): Add cp_namespace_symtab member.
3008 * objfiles.c (allocate_objfile): Set
3009 objfile->cp_namespace_symtab.
3010 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3011 dictionary_h, command_h.
3012
3013 2003-09-11 Andrew Cagney <cagney@redhat.com>
3014
3015 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3016 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3017 near the function's end.
3018 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3019 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3020 regcache_raw_write_signed to set SP_REGNUM.
3021
3022 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
3023
3024 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3025 orig_addrs is set up properly.
3026
3027 2003-09-11 Andrew Cagney <cagney@redhat.com>
3028
3029 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3030 * gdbarch.h, gdbarch.c: Re-generate.
3031 * infcall.c (call_function_by_hand): Update.
3032 * hppa-tdep.c (hppa_push_arguments): Update.
3033 * ada-lang.c (place_on_stack): Update.
3034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3035 * sparc-tdep.c (sparc_gdbarch_init): Update.
3036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3037 * hppa-tdep.c (hppa_gdbarch_init): Update.
3038 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3039 stack_align.
3040
3041 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
3042
3043 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3044 register do need a frame.
3045
3046 2003-09-11 Andrew Cagney <cagney@redhat.com>
3047
3048 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3049 buildable since GDB 5.0.
3050 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3051 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3052 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3053 * irix4-nat.c: Delete file.
3054 * config/mips/irix4.mh: Delete file.
3055 * config/mips/irix3.mh: Delete file.
3056 * config/mips/irix3.mt: Delete file.
3057 * config/mips/tm-irix3.h: Delete file.
3058 * config/mips/nm-irix3.h: Delete file.
3059 * config/mips/xm-irix3.h: Delete file.
3060 * config/mips/nm-irix4.h: Delete file.
3061 * config/mips/xm-irix4.h: Delete file.
3062 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3063
3064 2003-09-10 J. Brobecker <brobecker@gnat.com>
3065
3066 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3067 * Makefile.in (hppa-tdep.o): Update dependencies.
3068
3069 2003-09-10 James E Wilson <wilson@specifixinc.com>
3070
3071 * MAINTAINERS: Change my e-mail address. Move to paper trail
3072 section.
3073
3074 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3075
3076 * MAINTAINERS (frv): New ISA entry.
3077
3078 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3079
3080 * frv-tdep.c (dis-asm.h): Include.
3081 * Makefile.in (frv-tdep.o): Update dependencies.
3082
3083 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3084
3085 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3086 Fix typo for high range of floating registers.
3087
3088 2003-09-09 David Carlton <carlton@kealia.com>
3089
3090 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3091 highpc initialization here out of scan_partial_symbols.
3092 (scan_partial_symbols): Restructure into a recursive version,
3093 calling add_partial_namespace and add_partial_enumeration when
3094 appropriate.
3095 (add_partial_namespace): New.
3096 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3097
3098 2003-09-09 Andrew Cagney <cagney@redhat.com>
3099
3100 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3101 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3102 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3103 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3104
3105 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3106 (rs6000_push_dummy_call): Set the "TOC" register.
3107
3108 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3109 methods "max_register_raw_size", "max_register_virtual_size" or
3110 "register_virtual_size".
3111
3112 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3113
3114 * MAINTAINERS: Update my e-mail address.
3115
3116 2003-09-09 Andrew Cagney <cagney@redhat.com>
3117
3118 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3119 (rs6000_push_dummy_call): Store the struct return address.
3120 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3121
3122 2003-09-09 Andrew Cagney <cagney@redhat.com>
3123
3124 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3125 "ppc_sysv_abi_push_arguments".
3126 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3127 "ppc_sysv_abi_push_arguments".
3128 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3129 instead of "push_arguments".
3130 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3131
3132 2003-09-09 Andrew Cagney <cagney@redhat.com>
3133
3134 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3135 instead of CALL_DUMMY_ADDRESS.
3136
3137 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3138
3139 * p-lang.c: Eliminate "register".
3140 * c-lang.c: Ditto.
3141 * expprint.c: Ditto.
3142 * f-lang.c: Ditto.
3143 * jv-lang.c: Ditto.
3144 * language.c: Ditto.
3145 * m2-lang.c: Ditto.
3146 * parse.c: Ditto.
3147 * scm-lang.c: Ditto.
3148 * objc-lang.c: Ditto.
3149
3150 2003-09-09 Nick Clifton <nickc@redhat.com>
3151
3152 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3153
3154 2003-09-04 Andrew Cagney <cagney@redhat.com>
3155
3156 * avr-tdep.c: Include "dis-asm.h".
3157 * cris-tdep.c: Include "dis-asm.h".
3158 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3159 instead of corresponding typedef.
3160 * h8300-tdep.c: Include "dis-asm.h".
3161 * ia64-tdep.c: Include "dis-asm.h".
3162 * i386-tdep.c: Include "dis-asm.h".
3163 (i386_print_insn): Use "struct disassemble_info" instead of
3164 corresponding typedef.
3165 * m68k-tdep.c: Include "dis-asm.h".
3166 * mcore-tdep.c: Include "dis-asm.h".
3167 * mips-tdep.c: Include "dis-asm.h".
3168 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3169 instead of corresponding typedef.
3170 * ns32k-tdep.c: Include "dis-asm.h".
3171 * s390-tdep.c: Include "dis-asm.h".
3172 * sparc-tdep.c: Include "dis-asm.h".
3173 * vax-tdep.c: Include "dis-asm.h".
3174 * v850-tdep.c: Include "dis-asm.h".
3175 * mn10300-tdep.c: Include "dis-asm.h".
3176 * rs6000-tdep.c: Include "dis-asm.h".
3177 * xstormy16-tdep.c: Include "dis-asm.h".
3178 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3179 print_insn_xstormy16.
3180 * Makefile.in (v850-tdep.o): Update dependencies.
3181 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3182 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3183 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3184 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3185 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3186 (gdbarch_h): Remove $(dis_asm_h).
3187 * disasm.c: Include "dis-asm.h".
3188 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3189 corresponding typedef.
3190 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3191 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3192 * gdbarch.sh: Do not include "dis-asm.h".
3193 (struct disassemble_info): Declare opaque.
3194 (TARGET_PRINT_INSN): Update declaration.
3195 * gdbarch.h, gdbarch.c: Re-generate.
3196
3197 2003-09-08 Andrew Cagney <cagney@redhat.com>
3198
3199 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3200 CALL_DUMMY_ADDRESS, change to a predicate.
3201 * gdbarch.h, gdbarch.c: Re-generate.
3202 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3203 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3204 * infcall.c (call_function_by_hand): Ditto.
3205 * sparc-tdep.c (sparc_push_return_address): Ditto.
3206 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3207 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3208 CALL_DUMMY_ADDRESS with entry_point_address.
3209 * v850-tdep.c (v850_push_return_address): Ditto.
3210 * s390-tdep.c (s390_push_return_address): Ditto.
3211 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3212 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3213 * mcore-tdep.c (mcore_push_return_address): Ditto.
3214 * cris-tdep.c (cris_push_return_address): Ditto.
3215 * arm-tdep.c (arm_push_return_address): Ditto.
3216
3217 2003-09-08 Andrew Cagney <cagney@redhat.com>
3218
3219 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3220 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3221 and REG_UNMODIFIED to REG_SAME_VALUE.
3222 (execute_cfa_program): Update.
3223 (dwarf2_frame_cache): Update. Initialize table to
3224 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3225 location.
3226 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3227
3228 2003-09-08 Andrew Cagney <cagney@redhat.com>
3229
3230 * gnu-nat.c: Remove "inline" function attribute.
3231 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3232
3233 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3234
3235 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3236 target.
3237
3238 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3239
3240 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3241 (frame_extra_info): Rename this struct to frv_unwind_cache.
3242 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3243 Add fields ``prev_sp'' and ``base''.
3244 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3245 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3246 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3247 Delete.
3248 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3249 Revise all callers. Fill in the unwind cache argument and make
3250 other adjustments to account for new frame mechanisms.
3251 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3252 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3253 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3254 (frv_frame_unwind, frv_frame_base): New structs.
3255 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3256 additional arguments expected by this method and adjust function
3257 body accordingly.
3258 (frv_gdbarch_init): Remove calls to the following functions:
3259 set_gdbarch_deprecated_init_frame_pc(),
3260 set_gdbarch_deprecated_saved_pc_after_call(),
3261 set_gdbarch_deprecated_frame_chain(),
3262 set_gdbarch_deprecated_frame_saved_pc(),
3263 set_gdbarch_deprecated_frame_init_saved_regs(),
3264 set_gdbarch_deprecated_push_arguments(),
3265 set_gdbarch_deprecated_push_return_address(),
3266 set_gdbarch_deprecated_pop_frame(),
3267 set_gdbarch_deprecated_call_dummy_words(),
3268 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3269 set_gdbarch_deprecated_init_extra_frame_info(),
3270 set_gdbarch_deprecated_dummy_write_sp(), and
3271 set_gdbarch_deprecated_pc_in_call_dummy().
3272 Add calls to the following functions:
3273 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3274 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3275 frame_base_set_default().
3276 * Makefile.in (frv-tdep.o): Update dependencies.
3277
3278 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3279
3280 * dwarf2-frame.c (read_encoded_value): Add support for
3281 DW_EH_PE_aligned encoding.
3282
3283 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3284
3285 * infrun.c (normal_stop): Don't print a message if the inferior
3286 has exited.
3287
3288 2003-09-08 Jim Blandy <jimb@redhat.com>
3289
3290 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3291 * dbxread.c: #include "gdb_assert.h".
3292 (read_dbx_symtab): If the objfile has no .data section, use the
3293 section index for the .bss section instead.
3294
3295 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3296
3297 * frame.c (deprecated_safe_get_selected_frame): New function.
3298 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3299 * findvar.c (read_var_value): Call it.
3300
3301 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3302
3303 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3304 (sh64-tdep.o): Add dependencies.
3305 * configure.tgt: Add FIXME to sh-*-linux*.
3306 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3307 (sh_gdbarch_init): Always set correct sh_show_regs function
3308 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3309 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3310 * sh64-tdep.c: New file, containing all sh64 related code from
3311 sh-tdep.c.
3312 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3313 * config/sh/linux.mt (TDEPFILES): Ditto.
3314 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3315 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3316 * config/sh/wince.mt (TDEPFILES): Ditto.
3317
3318 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3319
3320 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3321 (stop_wait_callback): Handle !lp->signalled also.
3322 (lin_lwp_has_pending, flush_callback): New functions.
3323 (lin_lwp_wait): Call flush_callback.
3324 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3325 (linux_proc_pending_signals): New function.
3326 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3327
3328 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3329
3330 From Nick Kelsey <nickk@ubicom.com>:
3331 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3332 when the stop PC is at the beginning of a function also.
3333
3334 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3335
3336 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3337 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3338
3339 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3340
3341 * sol-thread.c: Include "gdb_string.h".
3342
3343 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3344
3345 * gcore.c: Reorder include files in alphabetical order. Include
3346 "gdb_assert.h". Various coding style fixes.
3347 (derive_stack_segment, derive_heap_segment): Replace check for
3348 non-null BOTTOM and TOP with gdb_assert.
3349 (derive_heap_segment): Replace check for successful creation of
3350 ZERO with gdb_assert.
3351 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3352
3353 2003-09-04 Andrew Cagney <cagney@redhat.com>
3354
3355 * thread-db.c (verbose_dlsym): New function.
3356 (thread_db_load): Use verbose_dlsym
3357 (thread_db_new_objfile): Print that libthread_db was loaded, and
3358 that thread debugging was enabled.
3359
3360 2003-09-04 Andrew Cagney <cagney@redhat.com>
3361
3362 * configure.tgt: Add "mips64*-*-*" target. Delete
3363 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3364 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3365 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3366 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3367 mips*-sony-*, and mips64*-*-elf* targets.
3368 * config/mips/embedl.mt: Delete file.
3369 * config/mips/embedl64.mt: Delete file.
3370 * config/mips/mips.mt: Delete file.
3371 * config/mips/mips64.mt: Delete file.
3372 * config/mips/tm-embed.h: Delete file.
3373 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3374 * config/mips/embed64.mt: Delete out-of-date comment.
3375
3376 2003-09-04 Andrew Cagney <cagney@redhat.com>
3377
3378 * hppa-tdep.c (hppa_gdbarch_init): Set
3379 "have_nonsteppable_watchpoint".
3380 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3381 * mips-tdep.c (mips_dump_tdep): Do not print
3382 HAVE_NONSTEPPABLE_WATCHPOINT.
3383 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3384 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3385 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3386 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3387
3388 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3389
3390 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3391 unused code. Add comment.
3392
3393 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3394
3395 * breakpoint.c (watchpoint_check): Check for pc being in an
3396 epilogue if watchpoint frame couldn't be found.
3397
3398 2003-09-04 Andrew Cagney <cagney@redhat.com>
3399
3400 * Makefile.in: Re-generate all dependencies.
3401
3402 2003-09-03 Andrew Cagney <cagney@redhat.com>
3403
3404 * arch-utils.h (legacy_print_insn): Delete declaration.
3405 * arch-utils.c (legacy_print_insn): Delete function.
3406 * disasm.c (deprecated_tm_print_insn_info): Delete.
3407 (_initialize_disasm): Delete function, contained code initializing
3408 deprecated_tm_print_insn_info.
3409 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3410 (deprecated_tm_print_insn_info): Delete.
3411 (TARGET_PRINT_INSN): Do not provide a default.
3412 * gdbarch.h, gdbarch.c: Re-generate.
3413
3414 2003-09-03 Andrew Cagney <cagney@redhat.com>
3415
3416 * disasm.c (fprintf_disasm): New function.
3417 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3418 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3419 reverts 2003-08-14 change.
3420 (_initialize_disasm): Call "init_disassemble_info", instead of
3421 INIT_DISASSEMBLE_INFO_NO_ARCH.
3422
3423 2003-09-03 Michael Snyder <msnyder@redhat.com>
3424
3425 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3426
3427 2003-09-03 Andrew Cagney <cagney@redhat.com>
3428
3429 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3430 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3431 * symfile.c (syms_from_objfile): Update.
3432 (reread_symbols): `Update
3433 * exec.c (exec_file_attach): Update.
3434 (exec_file_attach): Update.
3435 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3436 2003-08-29 change.
3437 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3438
3439 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3440
3441 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3442 trad-frame.h.
3443 (arm_get_cache): Delete macro.
3444 (struct arm_prologue_cache): Update comments. Make saved_regs into
3445 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3446 to prev_sp.
3447 (thumb_scan_prologue): Update for cache changes. Don't call
3448 DEPRECATED_PC_IN_CALL_DUMMY.
3449 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3450 argument and use it in desperation search for our prologue. Do not
3451 search past the specified PC.
3452 (arm_make_prologue_cache): Simplify.
3453
3454 (arm_prologue_this_id, arm_prologue_prev_register)
3455 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3456 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3457 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3458 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3459 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3460
3461 (arm_frame_chain_valid, arm_find_callers_reg)
3462 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3463 (arm_pop_frame): Delete obsolete methods.
3464 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3465
3466 (arm_gdbarch_init): Update for new frame methods. Register prologue
3467 and sigtramp unwinders. Set the default frame base method.
3468
3469 * Makefile.in (arm-tdep.o): Update dependencies.
3470 * varobj.c (find_frame_addr_in_frame_chain): Call
3471 get_frame_base_address.
3472 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3473
3474 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3475
3476 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3477 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3478 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3479 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3480 Take NEXT_FRAME and CACHE arguments. Call
3481 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3482 Set unwound_pc in CACHE instead of modifying the frame argument.
3483 Don't bother checking the frame type when looking for sigtramp
3484 frames.
3485 (arm_make_prologue_cache, arm_frame_chain)
3486 (arm_init_extra_frame_info): New functions.
3487
3488 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3489
3490 * arm-tdep.c (arm_get_cache): Define.
3491 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3492 unwound_sp, unwound_pc, and saved_regs.
3493 (thumb_scan_prologue): Take a cache instead of the frame.
3494 (arm_scan_prologue): Likewise.
3495 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3496 instead of a temporary frame.
3497 (arm_init_extra_frame_info): Allocate and use a cache.
3498 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3499
3500 2003-09-03 Andrew Cagney <cagney@redhat.com>
3501
3502 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3503 * config/mips/wince.mt (TM_CLIBS): Ditto.
3504 * config/sh/wince.mt (TM_CLIBS): Ditto.
3505 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3506 * config/sparc/sp64.mt (CC): Delete.
3507
3508 2003-09-03 Andrew Cagney <cagney@redhat.com>
3509
3510 * defs.h: Do not include "arch-utils.h".
3511 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3512 GDB_MULTI_ARCH_PURE.
3513 * configure.in (GDB_MULTI_ARCH): Do not define.
3514 * configure, config.in: Regenerate.
3515 * configure.tgt: Do not set variable "gdb_multi_arch".
3516 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3517 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3518 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3519 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3520 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3521 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3522 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3523 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3524 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3525 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3526 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3527 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3528 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3529 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3530 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3531 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3532 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3533 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3534
3535 2003-08-30 Michael Chastain <mec@shout.net>
3536
3537 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3538 * config/m68k/nm-hp300hpux.h: Delete.
3539 * config/m68k/tm-hp300hpux.h: Delete.
3540 * config/m68k/xm-hp300hpux.h: Delete.
3541 * config/m68k/xm-hp300bsd.h: Delete.
3542 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3543 tm-hp300hpux.h, xm-hp300hpux.h.
3544 * somsolib.c: Remove comment about hp300 shared libraries.
3545
3546 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3547
3548 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3549 Only define PTRACE_GET_THREAD_AREA is not already defined.
3550 Various style fixes in code and comments and some additional
3551 spelling fixes in comments. Move after functions dealing with
3552 debug registers.
3553 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3554 Fix coding-style.
3555
3556 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3557 frame_unwind_register_unsigned instead of
3558 frame_unwind_unsigned_register.
3559
3560 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3561
3562 * configure.in: Search for gethostbyname in libnsl.
3563 * configure: Regenerated.
3564
3565 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3566
3567 * configure.in: Remove redundant AC_MSG_RESULT in check for
3568 uintptr_t in stdint.h.
3569 * configure: Regenerated.
3570
3571 * amd64-nat.h (struct regcache): Add opaque declaration.
3572
3573 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3574 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3575 Change "register array" to "register cache" in comments.
3576 (x86_64_linux_gregset64_reg_offset): New variable.
3577 (GETREGS_SUPPLIES): Remove macro.
3578 (supply_gregset): Call amd64_supply_native_gregset instead of
3579 x86_64_linux_supply_gregset.
3580 (fill_gregset): Rename `regno' to `regnum'. Call
3581 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3582 (store_regs): Rename `regno' to `regnum'.
3583 (store_fpregs): Rename `regno' to `regnum'.
3584 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3585 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3586 Reorganize function a bit.
3587 (store_inferior_registers): Rename `regno' to `regnum'. Use
3588 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3589 Reorganize function a bit.
3590 (_initialize_x86_64_linux_nat): New function.
3591 * config/i386/x86-64linux.mh.
3592
3593 2003-08-29 Andrew Cagney <cagney@redhat.com>
3594
3595 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3596 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3597 (target_remove_watchpoint): Delete macro.
3598 (target_insert_watchpoint): Delete macro.
3599 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3600 (remote_mips_stopped_by_watchpoint): Delete declaration.
3601 (remote_mips_remove_watchpoint): Delete declaration.
3602 (remote_mips_set_watchpoint): Delete declaration.
3603 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3604 * remote-mips.c (_initialize_remote_mips): Set
3605 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3606 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3607 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3608 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3609 (mips_stopped_by_watchpoint): Rename
3610 remote_mips_stopped_by_watchpoint.
3611 (mips_can_hardware_watchpoint): Rename
3612 remote_mips_can_use_hardware_watchpoint, update function
3613 signature.
3614
3615 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3616
3617 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3618 USER_DS. We haven't given them a register number yet.
3619
3620 * amd64-nat.h: New file.
3621 * amd64-nat.c: New file.
3622 * amd64fbsd-nat.c: Include "amd64-nat.h".
3623 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3624 (amd64fbsd32_r_reg_offset): New variable.
3625 (supply_gregset): Simply call amd64_supply_native_gregset.
3626 (fill_gregset): Rename `regno' to `regnum'. Simply call
3627 amd64_collect_native_gregset.
3628 (fill_fpregset): Rename `regno' to `regnum'.
3629 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3630 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3631 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3632 `fpregset_t'. Call amd64_supply_native_gregset instead of
3633 supply_gregset. Call x86_64_supply_fxsave instead of
3634 supply_fpregset.
3635 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3636 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3637 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3638 `fpregset_t'. Call amd64_collect_native_gregset instead of
3639 fill_gregset. Call x86_64_collect_fxsave instead of
3640 fill_fpregset.
3641 (_initialize_am64fbsd_nat): Initialize
3642 amd64_native_gregset32_reg_offset and
3643 amd64_native_gregset64_reg_offset.
3644 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3645
3646 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3647 null pointer. Fix typo in comment.
3648
3649 * regcache.c (supply_register): Reimplement to call
3650 regcache_raw_supply.
3651 (regcache_collect): Reimplement by calling regcache_raw_collect.
3652
3653 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3654
3655 * regcache.c (register_buffer): Consitify first argument.
3656 (regcache_raw_supply, regcache_raw_collect): New
3657 functions.
3658
3659 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3660
3661 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3662 by Nathan J. Williams.
3663
3664 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3665
3666 * lin-lwp.c (wait_lwp): New function, copied from
3667 stop_wait_callback. Clean up.
3668 (stop_wait_callback): Use wait_lwp.
3669
3670 2003-08-28 Andrew Cagney <cagney@redhat.com>
3671
3672 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3673 flavour and disassembler options.
3674 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3675 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3676 deprecated_tm_print_insn_info.
3677
3678 2003-08-27 Andrew Cagney <cagney@redhat.com>
3679
3680 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3681 Use target_read_memory.
3682 (s390_get_frame_info): Update. Do not reference
3683 deprecated_tm_print_insn_info.
3684 (s390_check_function_end, s390_is_sigreturn): Ditto.
3685
3686 2003-08-27 Andrew Cagney <cagney@redhat.com>
3687
3688 * Makefile.in (cris-tdep.o): Update dependencies.
3689 * cris-tdep.c: Include "gdb_assert.h".
3690 (cris_gdbarch_init): Set print_insn.
3691 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3692 (cris_delayed_get_disassembler): Simplify, directly call the
3693 disassembler returned by cris_get_disassembler.
3694 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3695 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3696 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3697 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3698 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3699 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3700 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3701 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3702 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3703 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3704 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3705 (gdb_print_insn_sparc): Delete function.
3706 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3707 deprecated_tm_print_insn_info.
3708 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3709 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3710 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3712 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3713 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3714 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3715 (s390_gdbarch_init): Set print_insn.
3716
3717 2003-08-27 Andrew Cagney <cagney@redhat.com>
3718
3719 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3720 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3721 * infcall.c (call_function_by_hand): Convert the entry point
3722 address into a code address.
3723
3724 2003-08-27 Andrew Cagney <cagney@redhat.com>
3725
3726 * dsrec.c: Include "gdb_string.h".
3727 * Makefile.in (dsrec.o): Update dependencies.
3728
3729 2003-08-27 Michael Chastain <mec@shout.net>
3730
3731 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3732
3733 2003-08-27 Andrew Cagney <cagney@redhat.com>
3734
3735 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3736 (alpha_osf1_init_abi): Do not set call_dummy_address.
3737
3738 2003-08-27 David Carlton <carlton@kealia.com>
3739
3740 From Randolph Chung <tausq@debian.org>:
3741 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3742 compiles with -Wformat-nonliteral -Werror.
3743
3744 2003-08-26 Jim Blandy <jimb@redhat.com>
3745
3746 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3747 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3748 bfd_lookup_symbol, since we only want symbols in code sections.
3749 (look_for_base): Pass zero as the SECT_FLAGS argument to
3750 bfd_lookup_symbol, since we're not concerned about which section
3751 the symbol is in.
3752
3753 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3754
3755 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3756 we are frameless or the return address register is already known.
3757
3758 2003-08-26 Andrew Cagney <cagney@redhat.com>
3759
3760 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3761 in size. Add comments.
3762
3763 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3764
3765 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3766 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3767
3768 2003-08-26 Jason Merrill <jason@redhat.com>
3769
3770 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3771 case out of #ifdef MIPS block.
3772
3773 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3774
3775 PR java/1322
3776 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3777 available before calling SECT_OFF_TEXT.
3778 * PROBLEMS: Remove description of java/1322.
3779
3780 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3781
3782 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3783 bof, and nat0-nat127 as pseudo-registers.
3784 (ia64_frame_cache): New struct used to cache frame info.
3785 (ia64_register_reggroup_p): New routine used to override default
3786 register grouping so registers without names are still saved and
3787 restored.
3788 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3789 pseudo values.
3790 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3791 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3792 (ia64_alloc_frame_cache): New routine to create a new
3793 ia64_frame_cache.
3794 (examine_prologue): Change prototype to add next_frame pointer.
3795 Assume frameless until otherwise proven. Verify that the cfm for
3796 current frame matches the cfm that should occur for the prologues
3797 alloc insn and if equal, mark as not frameless. At end of routine,
3798 if not frameless, calculate registers for the previous frame and store
3799 in the cache, if a cache is provided.
3800 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3801 and pass 0 for next_frame.
3802 (ia64_store_return_value): Change to use convert_typed_floating()
3803 instead of calling ia64_convert_to_raw().
3804 (ia64_extract_return_value): Change to use convert_typed_floating()
3805 instead of calling ia64_convert_to_virtual().
3806 (ia64_frame_cache): New routine to support new frame model.
3807 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3808 (ia64_frame_sniffer): Ditto.
3809 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3810 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3811 (ia64_sigtramp_frame_prev_register): Ditto.
3812 (ia64_sigtramp_frame_sniffer): Ditto.
3813 (ia64_frame_base_address): Ditto.
3814 (ia64_extract_struct_value_address): Change to issue error message.
3815 (ia64_frame_align): New routine to align sp.
3816 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3817 (ia64_push_arguments): Removed. Logic moved to
3818 ia64_push_dummy_call().
3819 (ia64_push_return_address): Ditto.
3820 (ia64_unwind_dummy_id): New function.
3821 (ia64_unwind_pc): Ditto.
3822 (ia64_convert_register_p): Ditto.
3823 (ia64_register_to_value): Ditto.
3824 (ia64_value_to_register): Ditto.
3825 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3826 (ia64_register_byte, ia64_register_raw_size): Ditto.
3827 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3828 (ia64_saved_pc_after_call): Ditto.
3829 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3830 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3831 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3832 (ia64_register_convert_to_raw): Ditto.
3833 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3834 (ia64_init_extra_frame_info): Ditto.
3835 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3836 (ia64_gdbarch_init): Remove registering of deprecated functions that
3837 are no longer used. Add registration of new gdbarch functions.
3838 Remove registering deprecated_write_sp. Replace
3839 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3840 Delete set_gdbarch_deprecated_register_convertible(),
3841 set_gdbarch_deprecated_register_convert_to_virtual(), and
3842 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3843 set_gdbarch_deprecated_register_size(),
3844 set_gdbarch_deprecated_register_bytes(),
3845 set_gdbarch_pcregnum(),
3846 set_gdbarch_deprecated_register_byte(),
3847 set_gdbarch_deprecated_register_raw_size(),
3848 set_gdbarch_deprecated_max_register_raw_size(),
3849 set_gdbarch_deprecated_register_virtual_size(),
3850 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3851 Replace set_gdbarch_deprecated_extract_return_value() with
3852 set_gdbarch_extract_return_value(). Remove calls to:
3853 set_gdbarch_deprecated_saved_pc_after_call();
3854 set_gdbarch_deprecated_frame_chain(),
3855 set_gdbarch_deprecated_frame_saved_pc(),
3856 set_gdbarch_deprecated_frame_init_saved_regs(),
3857 set_gdbarch_deprecated_get_saved_register(),
3858 set_gdbarch_deprecated_call_dummy_words(),
3859 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3860 set_gdbarch_deprecated_init_extra_frame_info(),
3861 set_gdbarch_deprecated_frame_args_address(),
3862 set_gdbarch_deprecated_frame_locals_address(),
3863 and set_gdbarch_deprecated_dummy_write_sp().
3864 Add set_gdbarch_convert_register_p(),
3865 set_gdbarch_register_to_value(),
3866 set_gdbarch_value_to_register(),
3867 set_gdbarch_push_dummy_call(),
3868 set_gdbarch_frame_align(),
3869 set_gdbarch_unwind_dummy_id(),
3870 set_gdbarch_unwind_pc(),
3871 frame_unwind_append_sniffer(),
3872 frame_unwind_append_sniffer(),
3873 and frame_base_set_default().
3874
3875 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3876
3877 * configure.tgt: Document need for special "mipsisa64" handling.
3878 (mipsisa64*-*-linux64): Handle as target linux64.
3879 (mipsisa64*-*-*): Handle as target embed64.
3880
3881 2003-08-18 Michael Chastain <mec@shout.net>
3882
3883 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3884 objfile bug.
3885
3886 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3887
3888 * i387-tdep.h: Update copyright date.
3889 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3890
3891 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3892 CFLAGS games to reflect reality.
3893
3894 2003-08-24 Andrew Cagney <cagney@redhat.com>
3895
3896 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3897 GDB_MULTI_ARCH is always non-zero.
3898 * osabi.c (_initialize_gdb_osabi): Ditto.
3899 (gdbarch_init_osabi): Ditto.
3900 * sparc-tdep.c: Ditto for #if code.
3901
3902 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3903
3904 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3905 Update comments.
3906 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3907 comments.
3908 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3909 x86_64_supply_fxsave.
3910 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3911 x86_64_supply_fxsave.
3912 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3913 x86_64_supply_fxsave.
3914
3915 2003-08-23 Andreas Jaeger <aj@suse.de>
3916
3917 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3918 i387_supply_fxsave.
3919
3920 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3921
3922 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3923 i387_supply_register.
3924 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3925 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3926 i387_supply_fsave.
3927 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3928 i387_supply_fxsave.
3929 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3930 i387_supply_fsave.
3931 * i386bsd-nat.c (supply_fpregset): Adjust call to
3932 i387_supply_fsave.
3933 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3934 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3935 supply_fpregset.
3936 (store_inferior_registers): Remove extraneous whitespace. Call
3937 i387_fill_fsave instead of fill_fpregset.
3938 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3939 (supply_fpregset): Likewise.
3940 * i386v4-nat.c (supply_fpregset): Adjust call to
3941 i387_supply_fsave.
3942 * i386-interix-nat.c (supply_fpregset): Adjust call to
3943 i387_supply_fsave.
3944 * i386-linux-nat.c (supply_fpregset): Adjust call to
3945 i387_supply_fsave.
3946 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3947 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3948 i387supply_fsave and i387_supply_fxsave.
3949 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3950 Incorporate code from `i387_supply_register.
3951 (i387_supply_register): Remove.
3952 (i387_supply_fxsave): Add `regnum' argument.
3953 Update comments.
3954 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3955 prototype.
3956 (i387_supply_register): remove prototype.
3957 Update comments.
3958
3959 2003-08-22 Michael Chastain <mec@shout.net>
3960
3961 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3962 Add lines for files in gdb/testsuite/gdb.cp/* that are
3963 still not 8.3 unique.
3964
3965 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3966
3967 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3968 TYPE_VPTR_FIELDNO is valid.
3969
3970 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3971
3972 * utils.c (set_width_command): Remove prototypes.
3973 (set_screen_size): New prototype.
3974 (init_page_info): Simplify by fetching the screen size from
3975 Readline. Call set_screen_size.
3976 (set_screen_size): New function.
3977 (set_width): Add missing whitespace in comment.
3978 (set_width_command): Call set_screen_size.
3979 (set_height_command): New function.
3980 (initialize_utils): Fix formatting. Make "set height" command
3981 call set_height_command. Remove redundant code that turns off
3982 pagination if output isn't a terminal. Remove redundant call to
3983 set_width_command.
3984
3985 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3986
3987 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3988 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3989 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3990 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3991 `case' keyword.
3992 (sparc64_register_info): Give the reister with number
3993 SPARC64_STATE_REGNUM a name.
3994 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3995 %asi and %ccr.
3996 (sparc64_push_dummy_call): Take BIAS into account when checking
3997 stcak alignment.
3998 (sparc_software_single_step): Remove assertions that check whether
3999 NPC and NNPC were zero.
4000 (sparc_supply_rwindow): Make public. Merge functionality with
4001 sparc64_supply_rwindow.
4002 (sparc_fill_rwindow): Make public. Merge functionality with
4003 sparc64_fill_rwindow.
4004 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4005 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4006 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4007 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4008 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4009
4010 * reggroups.c: Add whitespace after declarations of local
4011 variables in functions.
4012
4013 2003-08-21 Michael Chastain <mec@shout.net>
4014
4015 * gdbtypes.h: Change array bound type from an int to enum.
4016
4017 2003-08-21 Andrew Cagney <cagney@redhat.com>
4018
4019 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4020 * config/sparc/tm-sparc.h: Ditto.
4021 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4022 unconditionally.
4023 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4024
4025 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4026
4027 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4028 (register_objfile_data, set_objfile_data, objfile_data): New
4029 prototypes.
4030 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4031 prototypes.
4032 (allocate_objfile): Call objfile_alloc_data.
4033 (free_objfile): Call objfile_free_data.
4034 (struct objfile_data): New.
4035 (struct objfile_data_registration): New.
4036 (struct objfile_data_registry): New.
4037 (objfile_data_registry): New variable.
4038 (register_objfile_data): New function.
4039 (objfile_alloc_data, objfile_free_data): New functions.
4040 (set_objfile_data, objfile_data): New functions.
4041 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4042 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4043 (_initialize_dwarf2_frame): New function and prototype.
4044
4045 2003-08-21 Andrew Cagney <cagney@redhat.com>
4046
4047 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4048 a specific architecture.
4049 * arch-utils.h (set_architecture_from_arch_mach): Delete
4050 declaration.
4051 (target_architecture_hook): Delete declaration.
4052 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4053 (default_float_format): Assume GDB_MULTI_ARCH.
4054 (default_double_format): Assume GDB_MULTI_ARCH.
4055 (set_endian_from_file): Delete function.
4056 (arch_ok): Delete function.
4057 (set_arch): Delete function.
4058 (set_architecture_from_arch_mach): Delete function.
4059 (set_architecture_from_file): Delete function.
4060 (set_architecture): Assume GDB_MULTI_ARCH.
4061 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4062
4063 2003-08-21 Mark Kettenis <kettenis@gnu.org>
4064
4065 Rewrite FreeBSD/sparc64 native configuration.
4066 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4067 * sparc64fbsd-nat.c: New file.
4068 * sparc64fbsd-tdep.c: New file.
4069 * sparc64-tdep.c sparc64-tdep.h: New files.
4070 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4071 sparc64fbsd-tdep.o): New dependencies.
4072 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4073 and sparc64fbsd-tdep.c.
4074 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4075 * config/sparc/fbsd.mh: Remove copyright notice.
4076 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4077 sparcbsd-nat.o.
4078 * config/sparc/fbsd.mt: Remove copyright notice.
4079 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4080 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4081 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4082 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4083 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4084 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4085 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4086 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4087 "sparc/tm-sp64.h".
4088 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4089 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4090
4091 2003-08-21 Michael Chastain <mec@shout.net>
4092
4093 * symtab.h: Add doco on the space critical structures and
4094 some measurements of space usage.
4095
4096 2003-08-21 Michael Snyder <msnyder@redhat.com>
4097
4098 * tracepoint.c (trace_dump_command): Trace break address
4099 is subject to DECR_PC_AFTER_BREAK.
4100 (set_traceframe_context): Make "trace_line" an int.
4101 Fixes suggested by Mark Newman <mark.newman@lmco.com>
4102
4103 2003-08-20 Michael Snyder <msnyder@redhat.com>
4104
4105 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4106 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4107 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4108 argument passing.
4109 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4110 functions, replace sh_push_dummy_call.
4111 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4112
4113 2003-08-20 Michael Chastain <mec@shout.net>
4114
4115 * gdbtypes.h (struct main_type): Rearrange to save space.
4116
4117 2003-08-20 Michael Snyder <msnyder@redhat.com>
4118
4119 * trad-frame.c: Comment typo fix.
4120
4121 2003-08-20 Michael Snyder <msnyder@redhat.com>
4122 Kevin Buettner <kevinb@redhat.com>
4123
4124 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4125 (frv_frame_init_saved_regs): Add declaration.
4126 (frame_extra_info): Add new field ``saved_regs''.
4127 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4128 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4129 Update frame related code.
4130 (frv_extract_struct_value_address): Adjust formatting.
4131 * Makefile.in (frv-tdep.o): Update dependencies.
4132 * config/frv/tm-frv.h (target_insert_watchpoint)
4133 (target_remove_watchpoint, target_insert_hw_breakpoint)
4134 (target_remove_hw_breakpoint): Delete these macros.
4135 (remote_insert_watchpoint, remote_remove_watchpoint)
4136 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4137 these declarations.
4138
4139 2003-08-20 Michael Chastain <mec@shout.net>
4140
4141 * defs.h (ENUM_BITFIELD): New macro.
4142 * symtab.h (ENUM_BITFIELD): Use it.
4143 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4144
4145 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4146
4147 * MAINTAINERS (write after approval): Add myself.
4148
4149 2003-08-18 Andrew Cagney <cagney@redhat.com>
4150
4151 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4152 * gdbarch.h, gdbarch.c: Re-generate.
4153 * infcall.c (call_function_by_hand): Adjust the SP by
4154 frame_red_zone_size before allocating any stack space.
4155 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4156 * x86-64-tdep.c (x86_64_frame_align): New function.
4157 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4158
4159 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4160 Remove code adjusting SP so that it skips over the Red Zone.
4161
4162 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4163
4164 * NEWS (New native configurations): Mention FreeBSD/amd64.
4165
4166 2003-08-18 Andrew Cagney <cagney@redhat.com>
4167
4168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4169 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4170 "m68k_frame_p".
4171 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4172
4173 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4174
4175 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4176
4177 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4178
4179 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4180 Define.
4181 * i386-linux-nat.c: Include "linux-nat.h".
4182 (child_post_startup_inferior): New function.
4183
4184 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4185
4186 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4187 at the start of a frameless function. This probably fixes PR
4188 backtrace/1338.
4189
4190 2003-08-17 Michael Chastain <mec@shout.net>
4191
4192 * symfile.c (find_sym_fns): Remove special case for apollo target.
4193
4194 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4195
4196 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4197 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4198 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4199 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4200 (linux_supports_tracevforkdone): New function.
4201 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4202 TRACEVFORKDONE.
4203 (child_follow_fork): Handle vfork.
4204 (linux_handle_extended_wait): Likewise. Also handle exec.
4205 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4206 * NEWS: Mention fork tracing.
4207
4208 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4209
4210 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4211
4212 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4213
4214 * Makefile.in (i386-linux-nat.o): Update dependencies.
4215 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4216 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4217 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4218 * i386-linux-nat.c: Include "linux-nat.h".
4219 (child_post_startup_inferior): New function.
4220 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4221 * infptrace.c (kill_inferior): Wrap in #ifdef.
4222 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4223 attaching to each LWP.
4224 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4225 (init_lin_lwp_ops): Fill in some more operations.
4226 * linux-nat.h (linux_enable_event_reporting)
4227 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4228 prototypes.
4229 * linux-nat.c (linux_enable_event_reporting): New function.
4230 (child_post_attach, linux_child_post_startup_inferior)
4231 (child_post_startup_inferior, child_follow_fork)
4232 (linux_handle_extended_wait, kill_inferior): New functions.
4233
4234 2003-08-16 Andrew Cagney <cagney@redhat.com>
4235
4236 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4237 * gdbarch.h, gdbarch.c: Re-generate.
4238
4239 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4240
4241 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4242
4243 2003-08-16 Andrew Cagney <cagney@redhat.com>
4244
4245 * NEWS: Mention that "set prompt-escape-char" was deleted.
4246 * top.c (get_prompt_1): Delete function.
4247 (gdb_prompt_escape):
4248 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4249 prompt-escape-char" command.
4250 (MAX_PROMPT_SIZE): Delete macro.
4251 (get_prompt): Simplify, do not call get_prompt_1.
4252
4253 2003-08-16 Andrew Cagney <cagney@redhat.com>
4254
4255 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4256 -Werror. -Wformat-nonliteral problems.
4257
4258 2003-08-15 J. Brobecker <brobecker@gnat.com>
4259
4260 Further multiarching work mostly for hppa64-*-hpux11:
4261 * hppa-tdep.h: New file.
4262 * hppa-tdep.c: #include hppa-tdep.c.
4263 (hppa32_num_regs): Renamed from hppa_num_regs.
4264 (hppa64_num_regs): New constant.
4265 (hppa64_call_dummy_breakpoint_offset): New constant.
4266 (hppa32_call_dummy_length): New constant.
4267 (hppa64_call_dummy_length): New constant.
4268 (hppa32_stack_align): Make name 32bit explicit.
4269 (hppa32_register_virtual_type): Likewise.
4270 (hppa32_extract_return_value): Likewise.
4271 (hppa32_use_struct_convention): Likewise.
4272 (hppa32_store_return_value): Likewise.
4273 (hppa64_register_virtual_type): New function.
4274 (hppa64_extract_return_value): New function.
4275 (hppa64_use_struct_convention): New function.
4276 (hppa64_store_return_value): New function.
4277 (hppa_frame_locals_address): Remove declaration, function does
4278 not exist anymore.
4279 (hppa_register_byte): Add support for PA64 ABI.
4280 (hppa_gdbarch_init): Add support for PA64 ABI.
4281 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4282 Make name 32bit explicit.
4283 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4284 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4285 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4286 (hppa64_hpux_frame_base_before_sigtramp): New function.
4287 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4288 * config/pa/tm-hppa64.h: Remove macros that are no longer
4289 necessary now that the gdbarch vector is properly setup.
4290 Transform some macros into function calls. Some minor cleanup.
4291 * config/pa/tm-hppah.h: Update function calls in macros
4292 following the function renaming in hppa-hpux-tdep.c.
4293 * Makefile.in (hppa_tdep_h): New variable.
4294 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4295
4296 2003-08-14 Michael Snyder <msnyder@redhat.com>
4297
4298 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4299
4300 2003-08-13 J. Brobecker <brobecker@gnat.com>
4301
4302 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4303 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4304 routine.
4305
4306 2003-08-13 Michael Snyder <msnyder@redhat.com>
4307
4308 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4309 (frv_saved_pc_after_call): Use deprecated ftype.
4310 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4311 (frv_remote_translate_xfer_address): Remove.
4312 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4313
4314 2003-08-13 J. Brobecker <brobecker@gnat.com>
4315
4316 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4317 initialization after the common gdbarch initialization, not before.
4318
4319 2003-08-13 J. Brobecker <brobecker@gnat.com>
4320
4321 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4322 (ADDR_BITS_REMOVE): Remove, redundant.
4323
4324 2003-08-13 J. Brobecker <brobecker@gnat.com>
4325
4326 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4327 gdbarch method to clear the 2 low bits of text addresses.
4328
4329 2003-08-12 Andrew Cagney <cagney@redhat.com>
4330
4331 * Makefile.in (dsrec.o): Update dependencies.
4332 * dsrec.c: Include "gdb_assert.h".
4333 (make_srec): Use snprintf instead of sprintf, use a literal format
4334 string.
4335
4336 2003-08-12 Andrew Cagney <cagney@redhat.com>
4337
4338 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4339 FRAME_OBSTACK_ZALLOC.
4340
4341 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4342
4343 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4344 SSE registers.
4345
4346 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4347
4348 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4349 amd64fbsd_sc_reg_offset): Add extern declarations.
4350 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4351 declarations.
4352
4353 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4354
4355 * MAINTAINERS (write after approval): Update my mail address.
4356
4357 2003-08-10 Andrew Cagney <cagney@redhat.com>
4358
4359 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4360
4361 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4362
4363 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4364 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4365 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4366 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4367 i386bsd_sc_reg_offset): Add extern declarations.
4368 * i386obsd-nat.c: Include "i386-tdep.h"
4369 (_initialize_i386obsd_nat): Remove extern declarations.
4370 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4371 declarations.
4372 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4373 declarations.
4374
4375 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4376 instead of frame_read_register.
4377 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4378 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4379 SP_REGNUM.
4380 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4381 instead of frame_unwind_unsigned_register. Use
4382 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4383 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4384 instead of read_register. Use builtin_type_void_data_ptr instead
4385 of builtin_type_void_func_ptr when extracting the address of the
4386 jmp_buf.
4387 (i386_extract_return_value, i386_store_return_value,
4388 i386_pseudo_register_read, i386_pseudo_register_write): Use
4389 register_size instead REGISTER_RAW_SIZE.
4390
4391 2003-08-10 Andrew Cagney <cagney@redhat.com>
4392
4393 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4394 sprintf. Make "name" constant.
4395
4396 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4397
4398 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4399 instead of frame_read_register.
4400 (i387_print_float_info): Use get_frame_register and
4401 get_frame_register_unsigned instead of frame_register_read.
4402
4403 * i386fbsd-nat.c: Include "i386-tdep.h".
4404 (child_resume): Make `eflags' an ULONGEST. Use
4405 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4406 instead of register_read and register_write.
4407
4408 * i386bsd-nat.c (fetch_inferior_registers,
4409 store_inferior_registers): Don't use && at the end of a line.
4410 (_initialize_i386bsd_nat): Fix typo.
4411
4412 * frame.c (_initialize_frame): Add missing backslash.
4413
4414 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4415 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4416 and supply_register instead of manipulating the register buffer
4417 directly.
4418
4419 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4420 * config/i386/nm-i386sol2.h
4421 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4422
4423 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4424 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4425 instructions that GCC likes to mingle into the prologue. Fixes
4426 gdb/1253 and gdb/1255.
4427
4428 2003-08-09 Andrew Cagney <cagney@redhat.com>
4429
4430 Fix GDB PR cli/926.
4431 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4432 * command.h (add_setshow_uinteger_cmd): Declare.
4433 * frame.c (set_backtrace_cmd): New function.
4434 (show_backtrace_cmd): New function.
4435 * frame.c (_initialize_frame): Replace "set/show
4436 backtrace-below-main" with "set/show backtrace past-main". Add
4437 command "set/show backtrace limit".
4438 (backtrace_past_main): Rename "backtrace_below_main".
4439 (backtrace_limit): New variable.
4440 (get_prev_frame): Update. Check the backtrace_limit.
4441
4442 2003-08-09 Andrew Cagney <cagney@redhat.com>
4443
4444 * defs.h (xstrprintf): Declare.
4445 * utils.c (xstrprintf): New function.
4446 * breakpoint.c (insert_breakpoints): Replace sprintf and
4447 non-literal format strings, with xstrprintf and cleanups.
4448 (delete_breakpoint,breakpoint_re_set): Ditto.
4449 (commands_command, insert_breakpoints): Ditto.
4450 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4451 (break_at_finish_command_1): Ditto.
4452
4453 2003-08-09 Andrew Cagney <cagney@redhat.com>
4454
4455 * MAINTAINERS (language support): List Adam Fedor as Objective C
4456 maintainer.
4457
4458 2003-08-08 J. Brobecker <brobecker@gnat.com>
4459
4460 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4461 are now multiarched.
4462
4463 2003-08-08 J. Brobecker <brobecker@gnat.com>
4464
4465 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4466 longer necessary now that hppa64 is partially multiarch'ed.
4467
4468 2003-08-08 Andrew Cagney <cagney@redhat.com>
4469
4470 * interps.c (interp_set): Check for a NULL "old_interp".
4471
4472 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4473
4474 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4475 (install-only): Support DESTDIR.
4476 (uninstall): Likewise.
4477 (install-gdbtk): Likewise.
4478
4479 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4480
4481 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4482 contains something meaningful at all times.
4483
4484 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4485
4486 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4487
4488 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4489
4490 * MAINTAINERS (write after approval): Added self.
4491
4492 2003-08-07 Andrew Cagney <cagney@redhat.com>
4493
4494 * inferior.h (AT_SYMBOL): Define.
4495 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4496 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4497 * mips-tdep.c (mips_call_dummy_address): Delete function.
4498 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4499 set call_dummy_address.
4500
4501 2003-08-07 Andrew Cagney <cagney@redhat.com>
4502
4503 * language.c (op_error): Delete function.
4504 (binop_type_check): Delete function.
4505 * language.h (type_op_error, range_op_error): Delete macros.
4506 (op_error): Delete declaration.
4507
4508 2003-08-07 Andrew Cagney <cagney@redhat.com>
4509
4510 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4511
4512 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4513
4514 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4515 (x86_64_push_arguments): Skip the red zone.
4516
4517 2003-08-05 Andrew Cagney <cagney@redhat.com>
4518
4519 * reggroups.c (reggroup_next): Check for the final entry.
4520
4521 2003-08-04 Andrew Cagney <cagney@redhat.com>
4522
4523 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4524 * cli/cli-script.c (define_command): Call query directly, instead
4525 of passing it a buffer.
4526 * ocd.c (ocd_error): Pass error a constant format string.
4527 * remote-mips.c (mips_error): Use fputs_filtered.
4528
4529 * solib-svr4.c (_initialize_svr4_solib): Update
4530 register_gdbarch_data call.
4531 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4532
4533 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4534 (register_gdbarch_data): Delete "free" parameter. Update
4535 comments.
4536 * gdbarch.h, gdbarch.c: Re-generate.
4537 * reggroups.c (_initialize_reggroup): Update.
4538 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4539 * frame-base.c (_initialize_frame_base): Update.
4540 * frame-unwind.c (_initialize_frame_unwind): Update.
4541 * user-regs.c (_initialize_user_regs): Update.
4542 * remote.c (_initialize_remote): Update.
4543 * regcache.c (_initialize_regcache): Update.
4544
4545 * regcache.c (xfree_regcache_descr): Delete function.
4546 (_initialize_regcache): Update call to register_gdbarch_data.
4547 (init_regcache_descr, init_legacy_regcache_descr): Use
4548 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4549
4550 * remote.c (free_remote_state): Delete function.
4551 (_initialize_remote): Update register_gdbarch_data.
4552 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4553 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4554
4555 2003-08-04 Andrew Cagney <cagney@redhat.com>
4556
4557 * reggroups.c (struct reggroup_el): Define.
4558 (struct reggroups): Delete field "nr_group". Replace array
4559 "group" with a "first" to "last" linked list.
4560 (reggroups_init): Update. Allocate using gdbarch's obstack.
4561 (reggroups_free): Delete function.
4562 (add_group): Update. Add "el" parameter.
4563 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4564 (default_groups): Update.
4565 (reggroup_next): Replace reggroups.
4566 (reggroups_dump): Update.
4567 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4568 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4569 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4570
4571 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4572
4573 * Makefile.in (tui-interp.o): Update dependencies.
4574
4575 2003-08-04 David Carlton <carlton@kealia.com>
4576
4577 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4578 to internal_error call.
4579 * source.c (forward_search_command): Add "%s" format argument.
4580 (reverse_search_command): Ditto.
4581 * top.c (quit_confirm): Ditto.
4582 * cli/cli-setshow.c (do_setshow_command): Ditto.
4583 * cp-valprint.c (cp_print_class_method): Replace
4584 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4585 (cp_print_class_member): Ditto.
4586 * event-top.c (command_line_handler): Ditto.
4587 * linux-proc.c (linux_info_proc_cmd): Ditto.
4588 * p-typeprint.c (pascal_type_print_base): Ditto.
4589 * p-valprint.c (pascal_object_print_class_method): Ditto.
4590 (pascal_object_print_class_member): Ditto.
4591 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4592 * remote.c (remote_cisco_section_offsets): Ditto.
4593 * top.c (command_line_input): Ditto.
4594 * utils.c (vwarning,error_stream,quit): Ditto.
4595 * valprint.c (print_floating,print_binary_chars)
4596 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4597
4598 2003-08-04 Andrew Cagney <cagney@redhat.com>
4599
4600 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4601
4602 2003-08-02 Andrew Cagney <cagney@redhat.com>
4603
4604 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4605 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4606 amd64fbsd-nat.c.
4607
4608 2003-08-02 Andrew Cagney <cagney@redhat.com>
4609
4610 * Makefile.in: Update all dependencies and definitions.
4611
4612 2003-08-02 Adam Fedor <fedor@gnu.org>
4613
4614 * linespec.c (is_objc_method_format): New function
4615 (decode_line_1, locate_first_half): Use it.
4616 Fixes PR objc/1298
4617
4618 2003-08-01 Andrew Cagney <cagney@redhat.com>
4619
4620 * NEWS: Mention that m32r is multi-arch.
4621 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4622 * configure.tgt: Recognize m32r-*-*.
4623 * config/m32r/tm-m32r.h: Delete file.
4624 * config/m32r/m32r.mt: New file.
4625 * m32r-rom.c (m32r_upload_command): Use hostent only when
4626 gethostname succeeds, in order to avoid a compilation
4627 warning.
4628 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4629 compiler warning.
4630
4631 2003-08-01 Michael Snyder <msnyder@redhat.com>
4632
4633 * sh-tdep.c (sh_frame_align): New gdbarch method.
4634 (sh_gdbarch_init): Set up frame_align method.
4635
4636 2003-07-31 Michael Snyder <msnyder@redhat.com>
4637
4638 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4639 which is already covered by the new frames infrastructure.
4640
4641 2003-07-31 Andrew Cagney <cagney@redhat.com>
4642
4643 * user-regs.c (struct user_reg): Add "next" link.
4644 (struct user_regs): Replace "user" with "first" and "last" links.
4645 (append_user_reg): Add pre-allocated "reg" parameter.
4646 (builtin_user_regs): Provide initial value for "last".
4647 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4648 (user_regs_init): Allocate memory from the gdbarch obstack.
4649 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4650 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4651 linked list.
4652 (usernum_to_user_reg): New function.
4653 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4654 (value_of_user_reg): Use usernum_to_user_reg.
4655 (user_regs_free): Delete function.
4656 (_initialize_user_regs): Update register_gdbarch_data call.
4657
4658 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4659
4660 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4661
4662 2003-07-30 Michael Snyder <msnyder@redhat.com>
4663
4664 * value.h (value_being_returned): Add a struct_addr argument.
4665 * infcall.c (call_function_by_hand): Pass struct_addr to
4666 value_being_returned.
4667 * infcmd.c (print_return_value): Pass zero as struct_addr.
4668 * values.c (value_being_returned): If struct_addr is passed,
4669 use it instead of trying to recover it from the inferior.
4670
4671 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4672
4673 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4674 the prologue analyzer won't need to attempt to extract the pc
4675 value from the woefully incomplete dummy frame.
4676 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4677 possible. Disable code which modifies the frame.
4678
4679 2003-07-28 Andrew Cagney <cagney@redhat.com>
4680
4681 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4682 to level 2.
4683 (annotate_breakpoints_table, annotate_record): Ditto.
4684 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4685 (annotate_field_name_end, annotate_field_value): Ditto.
4686 (annotate_field_end, annotate_frame_source_begin): Ditto.
4687 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4688 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4689 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4690 (annotate_frame_address_end, annotate_frame_address): Ditto.
4691 (annotate_frame_args, annotate_frame_end): Ditto.
4692 (annotate_frame_where, annotate_arg_begin): Ditto.
4693 (annotate_arg_name_end, annotate_arg_value): Ditto.
4694 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4695 (annotate_function_call, annotate_signal_name): Ditto.
4696 (annotate_signal_string, annotate_signal_name_end): Ditto.
4697 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4698 (annotate_value_begin, annotate_value_history_value): Ditto.
4699 (annotate_value_history_end, annotate_value_end): Ditto.
4700 (annotate_display_begin, annotate_display_number_end): Ditto.
4701 (annotate_display_format, annotate_display_expression): Ditto.
4702 (annotate_display_expression_end, annotate_display_value): Ditto.
4703 (annotate_display_end, annotate_array_section_begin): Ditto.
4704 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4705 (annotate_elt, annotate_array_section_end): Ditto.
4706
4707 2003-07-28 Andrew Cagney <cagney@redhat.com>
4708
4709 * regcache.c (struct regcache_descr): Update comments on
4710 nr_raw_registers.
4711 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4712 sizeof_raw_register_valid_p.
4713 (init_regcache_descr): Set nr_raw_registers and
4714 sizeof_raw_register_valid_p before calling
4715 init_legacy_regcache_descr.
4716
4717 2003-07-28 Andrew Cagney <cagney@redhat.com>
4718
4719 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4720 MOD NUM_REGS.
4721
4722 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4723
4724 * thread.c (info_threads_command): Use get_selected_frame ().
4725 Check that there is at least one non-sentinel frame.
4726
4727 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4728
4729 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4730 (m68hc11_pop_frame): Remove.
4731 (m68hc11_frame_saved_pc): Remove.
4732 (m68hc11_frame_chain): Remove.
4733 (m68hc11_frame_init_saved_regs): Remove.
4734 (m68hc11_init_extra_frame_info): Remove.
4735 (m68hc11_store_struct_return): Remove.
4736 (m68hc11_saved_pc_after_call): Remove.
4737
4738 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4739
4740 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4741 frame unwind information.
4742 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4743 and adapted for frame unwinding.
4744 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4745 (m68hc11_unwind_pc): New function.
4746 (m68hc11_frame_unwind_cache): New function to analyze frames.
4747 (m68hc11_frame_this_id): New function to create new frame struct.
4748 (m68hc11_frame_prev_register): New function to unwind a register from
4749 the frame.
4750 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4751 (m68hc11_frame_p): New function for the above.
4752 (m68hc11_frame_base_address): New function to return fp of frame.
4753 (m68hc11_frame_args_address): Update for frame.
4754 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4755 (m68hc11_unwind_sp): New function.
4756 (m68hc11_unwind_dummy_id): New function.
4757 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4758 calls.
4759
4760 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4761
4762 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4763 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4764 when we are beyond the current pc.
4765
4766 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4767
4768 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4769 from m68hc11_push_arguments.
4770 (m68hc11_push_arguments): Remove.
4771 (m68hc11_push_return_address): Remove.
4772 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4773 handlers; remove deprecated_extra_stack_alignment_needed.
4774
4775 2003-07-27 Andrew Cagney <cagney@redhat.com>
4776
4777 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4778 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4779 REAL_PC and not the pointer.
4780 * hppa-hpux-tdep.c: Include frame.h
4781
4782 2003-07-27 Andrew Cagney <cagney@redhat.com>
4783
4784 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4785 GDB_MULTI_ACH_PARTIAL.
4786
4787 2003-07-27 Andrew Cagney <cagney@redhat.com>
4788
4789 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4790 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4791 operator at start and not end of line.
4792 (decode_prologue): Ditto.
4793 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4794 frame_unwind_register_unsigned instead of
4795 frame_unwind_unsigned_register.
4796 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4797 read_register.
4798 (m32r_push_dummy_call): Use register_size instead of
4799 REGISTER_RAW_SIZE.
4800 (m32r_frame_sniffer): Replace m32r_frame_p.
4801 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4802 * m32r-rom.c (report_transfer_performance): Delete extern
4803 declaration.
4804 (m32r_load, m32r_upload_command): Use print_transfer_performance
4805 instead of report_transfer_performance.
4806 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4807 / add_show_from_set.
4808
4809 2003-07-26 Andrew Cagney <cagney@redhat.com>
4810
4811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4812 store_return_value and extract_struct_value_address.
4813
4814 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4815
4816 PR c++/1267
4817 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4818 NULL, default to the section containing PC.
4819
4820 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4821
4822 * NEWS: Mention "regs" deprecated for m68hc11 too.
4823
4824 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4825 (m68hc11_print_register): New function to print out one register.
4826 (m68hc11_print_registers_info): New function to print registers.
4827 (show_regs): Deprecate and use the above.
4828 (m68hc11_gdbarch_init): Install the print_registers_info.
4829
4830 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4831
4832 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4833 that we have a SIGTRAP before returning non-zero.
4834
4835 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4836 Elena Zannoni <ezannoni@redhat.com>
4837
4838 * linespec.c (decode_line_2): Avoid crash if
4839 find_function_start_sal() returns empty record.
4840
4841 2003-07-23 Andreas Schwab <schwab@suse.de>
4842
4843 * ia64-tdep.c (ia64_print_insn): New function.
4844 (ia64_gdbarch_init): Set print_insn to it.
4845 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4846 deprecated_tm_print_insn_info.
4847
4848 2003-07-22 Michael Snyder <msnyder@redhat.com>
4849
4850 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4851 handle 8-bit returns (long long).
4852 (h8300h_extract_return_value): Ditto.
4853 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4854
4855 2003-07-22 Andrew Cagney <cagney@redhat.com>
4856
4857 * gdbarch.c Include "gdb_obstack.h".
4858 (struct gdbarch): Add an "obstack".
4859 (alloc_gdbarch_data): Allocate the gdbarch data using
4860 GDBARCH_OBSTACK_CALLOC.
4861 (free_gdbarch_data): Delete function.
4862 (gdbarch_obstack_zalloc): New function.
4863 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4864 Assert that the architecture is not initialized.
4865 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4866 vector from the obstack.
4867 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4868 architecture obstack.
4869 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4870 (set_gdbarch_data): Assert that the data is not initialized.
4871 (struct gdbarch_data): Delete member "free".
4872 (register_gdbarch_data): Do not initialize "free".
4873 * gdbarch.h, gdbarch.c: Re-generate.
4874
4875 2003-07-22 Andrew Cagney <cagney@redhat.com>
4876
4877 * configure.in (build_warnings): Add -Wformat-nonliteral.
4878 * configure: Re-generate.
4879
4880 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4881
4882 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4883
4884 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4885
4886 * findvar.c (read_var_value): Remove case for thread local storage
4887 variables. It is now entirely handled by the dwarf2 location
4888 expression code.
4889 * printcmd.c (address_info): Ditto.
4890 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4891 enumeration value.
4892 (struct symbol): Remove objfile field, which was used by
4893 LOC_THREAD_LOCAL_STATIC only.
4894 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4895 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4896 usage of objfile pointer.
4897 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4898 thread local variables.
4899 Add include of objfiles.h.
4900 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4901 storage variables.
4902 * Makefile.in (dwarf2loc.o): Update dependencies.
4903
4904 2003-07-22 Andrew Cagney <cagney@redhat.com>
4905
4906 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4907 get_frame_base.
4908 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4909 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4910 (struct value): Add opaque declaration.
4911 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4912
4913 2003-07-21 Andrew Cagney <cagney@redhat.com>
4914
4915 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4916 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4917
4918 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4919
4920 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4921 regcache_cooked_read_unsigned instead of read_register.
4922 (m68hc11_saved_pc_after_call): Likewise.
4923 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4924 instead of write_register.
4925 (m68hc11_register_type): New function.
4926 (m68hc11_register_virtual_type): Remove.
4927 (m68hc11_store_return_value): Convert to use the regcache.
4928 (m68hc11_extract_struct_value_address): Likewise.
4929 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4930 m68hc11_register_type; undeprecate store_return_value and
4931 extract_struct_value_address.
4932
4933 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4934
4935 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4936 and translate to use regcache.
4937 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4938
4939 2003-07-18 Andrew Cagney <cagney@redhat.com>
4940
4941 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4942 * gdbarch.h, gdbarch.c: Re-generate.
4943 * i386-tdep.c (i386_gdbarch_init): Do not set
4944 DWARF2_BUILD_FRAME_INFO.
4945 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4946 unconditionally.
4947 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4948 DWARF2_BUILD_FRAME_INFO.
4949
4950 2003-07-18 Andrew Cagney <cagney@redhat.com>
4951
4952 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4953 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4954
4955 2003-07-18 Andrew Cagney <cagney@redhat.com>
4956
4957 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4958 frame_unwind_address_in_block, instead of frame_pc_unwind.
4959 (dwarf2_frame_cache): Ditto.
4960
4961 2003-07-18 Andrew Cagney <cagney@redhat.com>
4962
4963 * user-regs.h (struct gdbarch): Declare opaque.
4964 * ui-out.h (struct ui_file): Declare opaque.
4965 * dwarf2-frame.h (struct frame_info): Declare opaque.
4966
4967 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4968
4969 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4970 #include "...".
4971 (procfs_meminfo): Change strerror to safe_strerror.
4972 (procfs_can_run): Remove K&R badness.
4973
4974 2003-07-17 Michael Snyder <msnyder@redhat.com>
4975
4976 * remote-sim.c: Comment typo fix.
4977
4978 2003-07-17 Andrew Cagney <cagney@redhat.com>
4979
4980 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4981 configure.
4982 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4983 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4984 GDB_MULTI_ARCH_PARTIAL.
4985
4986 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4987
4988 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4989 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4990 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4991
4992 2003-07-16 Theodore A. Roth <troth@openavr.org>
4993
4994 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4995 found.
4996 (avr_frame_unwind_cache): Don't unwind FP for main.
4997 Update a comment.
4998 Save the computed prev_sp.
4999 (avr_saved_regs_unwinder): Remove function.
5000 (avr_frame_prev_register): Use PC unwind logic from
5001 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5002
5003 2003-07-16 Andrew Cagney <cagney@redhat.com>
5004
5005 * frame-base.h (frame_base_p_ftype): Delete definition.
5006 (frame_base_append_predicate): Delete declaration.
5007 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5008 (frame_unwind_append_predicate): Delete declaration.
5009 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5010 (append_predicate): Delete parameter "p".
5011 (frame_unwind_append_predicate): Delete function.
5012 (frame_unwind_append_sniffer): Update call to append_predicate.
5013 (frame_unwind_free): Delete function.
5014 (_initialize_frame_unwind): Pass NULL as "free" to
5015 register_gdbarch_data.
5016 (frame_unwind_init): Append the dummy_frame_sniffer.
5017 (frame_unwind_find_by_frame): Simplify.
5018 * frame-base.c (struct frame_base_table): Delete field "p".
5019 (append_predicate): Delete parameter "p".
5020 (frame_base_append_predicate): Delete function.
5021 (frame_base_append_sniffer): Update call to append_predicate.
5022 (frame_base_free): Delete function.
5023 (frame_base_find_by_frame): Simplify.
5024 (_initialize_frame_base): Pass NULL as "free" to
5025 register_gdbarch_data.
5026 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5027 (x86_64_sigtramp_frame_sniffer): Replace
5028 "x86_64_sigtramp_frame_p".
5029 (x86_64_init_abi): Set the frame unwind sniffers.
5030 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5031 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5032 (m68k_gdbarch_init): Set the frame unwind sniffers.
5033 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5034 "i386_sigtramp_frame_p".
5035 (i386_frame_sniffer): Replace "i386_frame_p".
5036 (i386_gdbarch_init): Set the frame unwind sniffers.
5037 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5038 (avr_gdbarch_init): Set the frame unwind sniffers.
5039 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5040 "alpha_sigtramp_frame_p"
5041 (alpha_heuristic_frame_sniffer): Replace
5042 "alpha_heuristic_frame_p".
5043 (alpha_gdbarch_init): Set the frame unwind sniffers.
5044 (alpha_dwarf2_init_abi): Ditto.
5045 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5046 "alpha_debug_frame_p".
5047 (alpha_mdebug_frame_base_sniffer): Replace
5048 "alpha_mdebug_frame_base_p".
5049 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5050 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5051 (d10v_gdbarch_init): Set the frame unwind sniffer.
5052 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5053 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5054 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5055 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5056 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5057 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5058
5059 2003-07-16 Michael Snyder <msnyder@redhat.com>
5060
5061 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5062 should go thru sh_dsp_register_sim_regno, else the dsp regs
5063 will not get the right values.
5064
5065 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5066
5067 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5068 deprecated_store_floating by call to store_typed_floating.
5069 (sh_sh4_register_convert_to_raw): Substitute call to
5070 deprecated_extract_floating by call to extract_typed_floating.
5071
5072 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5073
5074 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5075
5076 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5077
5078 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5079 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5080 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5081 as possible.
5082 (do_pseudo_register): Remove.
5083 (sh_push_dummy_code): New function.
5084 (sh64_store_struct_return): Rename from sh_store_struct_return.
5085 Only called for sh64 now.
5086 (sh_extract_struct_value_address): Regcache'ify.
5087 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5088 and accomodate new tasks.
5089 (sh64_push_return_address): Rename from sh_push_return_address.
5090 Only called for sh64 now.
5091 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5092 Regcache'ify.
5093 (sh3e_sh4_extract_return_value): Regcache'ify.
5094 (sh_default_store_return_value): Ditto.
5095 (sh3e_sh4_store_return_value): Ditto.
5096 (sh_default_register_byte): Remove.
5097 (sh_sh4_register_byte): Remove.
5098 (sh_default_register_raw_size): Remove.
5099 (sh_sh4_register_raw_size): Remove.
5100 (sh_register_virtual_size): Remove.
5101 (sh_sh3e_register_virtual_type): Remove.
5102 (sh_sh3e_register_type): New function.
5103 (sh_sh4_register_virtual_type): Remove.
5104 (sh_sh4_register_type): New function.
5105 (sh_default_register_virtual_type): Remove.
5106 (sh_default_register_type): New function.
5107 (do_fv_register_info): Add parameters to accomodate call from
5108 sh_print_registers_info.
5109 (do_dr_register_info): Ditto.
5110 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5111 Add parameters to accomodate call from sh_print_registers_info.
5112 (sh_do_fp_register): Ditto.
5113 (sh64_do_pseudo_register): Call do_dr_register_info,
5114 do_fv_register_info and sh_do_fp_register with default parameters.
5115 (sh_do_register): Add parameters to accomodate call from
5116 sh_print_registers_info.
5117 (sh_print_register): Ditto.
5118 (sh_print_registers_info): Rename from sh_do_registers_info.
5119 Add parameters to be used as gdbarch_print_registers_info
5120 implementation. Accomodate removed do_pseudo_register function
5121 pointer.
5122 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5123 function pointer. Call sh_print_register with default parameters.
5124 (sh64_do_registers_info): Call sh_print_registers_info instead of
5125 sh_do_registers_info.
5126 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5127 detection of deprecated vs. non-deprecated functionality.
5128 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5129 function pointer assignments by direct function calls.
5130
5131 2003-07-15 Andrew Cagney <cagney@redhat.com>
5132
5133 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5134 (frame_register_unwind, create_new_frame): Ditto.
5135 (legacy_get_prev_frame, get_frame_type): Ditto.
5136 (get_frame_base_address): Use frame_base_find_by_frame.
5137 (get_frame_locals_address): Use frame_base_find_by_frame.
5138 (get_frame_args_address): Use frame_base_find_by_frame.
5139 * frame-base.h (frame_base_sniffer_ftype): Declare.
5140 (frame_base_append_sniffer): Declare.
5141 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5142 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5143 (frame_base_append_sniffer): New function.
5144 (frame_base_append_predicate): Add a NULL sniffer.
5145 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5146 (struct frame_base_table): Add "sniffer".
5147 (frame_base_free): Free the "sniffer" table.
5148 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5149 (frame_unwind_append_sniffer): Declare.
5150 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5151 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5152 (struct frame_unwind_table): Add "sniffer", delete "middle".
5153 (append_predicate): Add "sniffer" parameter, append the sniffer.
5154 (frame_unwind_init): Update append_predicate call.
5155 (frame_unwind_append_sniffer): New function.
5156 (frame_unwind_append_predicate): Update append_predicate call.
5157 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5158
5159 2003-07-15 Andrew Cagney <cagney@redhat.com>
5160
5161 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5162 before code inhibiting repeated unwind attempts. Add to
5163 commentary on that test's problems.
5164 * blockframe.c (inside_main_func): Look for "main" in the minimal
5165 symbol table.
5166 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5167 identical.
5168
5169 2003-07-15 Andrew Cagney <cagney@redhat.com>
5170
5171 * complaints.c (struct explanation): Define.
5172 (struct complaints): Change type of "explanation" to "struct
5173 explanation".
5174 (symfile_explanations): Convert to a "struct explanation" table.
5175 (vcomplaint): Update.
5176
5177 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5178
5179 * x86-64-linux-nat.c (regmap): Removed.
5180 (supply_gregset, fill_gregset): Call
5181 x86_64_linux_(fill,supply)_gregset functions.
5182 * x86-64-linux-tdep.c (USER_*): New defines.
5183 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5184 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5185 New functions.
5186 (fetch_core_registers): Ditto.
5187 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5188 * x86-64-linux-tdep.h: New file.
5189 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5190 and core-regset.o.
5191 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5192
5193 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5194
5195 * x86-64-tdep.c (x86_64_store_return_value): Use
5196 regcache_cooked_write_part instead of regcache_cooked_write.
5197
5198 * configure.host: Add x86_64-*-freebsd*.
5199 * configure.tgt: Add x86_64-*-freebsd*.
5200 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5201 * amd64fbsd-nat.c: New file.
5202 * amd64fbsd-tdep.c: New file.
5203 * config/i386/nm-fbsd64.h: New file.
5204 * config/i386/fbsd64.mh: New file.
5205 * config/i386/fbsd64.mt: New file.
5206
5207 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5208
5209 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5210 `sc_regs_offset' and `sc_fpregs_offset'.
5211 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5212 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5213 (alpha_sigtramp_register_address): Rewrite to use new members of
5214 `struct gdbarch_tdep'.
5215 (alpha_gdbarch_init): Initialize new members of struct
5216 gdbarch_tdep'.
5217 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5218 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5219 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5220 (alphafbsd_pc_in_sigtramp): Implement.
5221 (alphafbsd_sigtramp_offset): New function.
5222 (alphafbsd_sigcontext_addr): New function.
5223 (alphafbsd_init_abi): Initialize signal trampoline related members
5224 of `struct gdbarch_tdep'.
5225 (_initialize_alphafbsd_tdep): Add prototype.
5226
5227 2003-07-11 Theodore A. Roth <troth@openavr.org>
5228
5229 * Makefile.in (install-only): Quote sed expression when generating
5230 transformed_name.
5231
5232 2003-07-11 Richard Henderson <rth@redhat.com>
5233
5234 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5235 * dwarf2-frame.c: Include complaints.h.
5236 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5237 variable initialization; return NULL on error.
5238 (decode_frame_entry): New.
5239
5240 2003-07-11 Andrew Cagney <cagney@redhat.com>
5241
5242 * frame.h (frame_address_in_block): Delete declaration.
5243 * blockframe.c (frame_address_in_block): Delete function.
5244 (get_frame_block): Use get_frame_address_in_block.
5245 (block_innermost_frame): Ditto.
5246 * stack.c (print_frame, backtrace_command_1): Ditto.
5247
5248 * frame.h (get_frame_address_in_block): Declare.
5249 (frame_unwind_address_in_block): Declare.
5250 * frame.c (frame_unwind_address_in_block): New function.
5251 (get_frame_address_in_block): New function.
5252
5253 2003-07-10 Andrew Cagney <cagney@redhat.com>
5254
5255 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5256 pre-default. Note: re-generate has no effect.
5257
5258 2003-07-10 Andrew Cagney <cagney@redhat.com>
5259
5260 * gdbarch.sh: When a variable, but not a function, compare against
5261 0. Fix problem in previous patch.
5262 * gdbarch.c: Re-generate.
5263
5264 2003-07-10 Andrew Cagney <cagney@redhat.com>
5265
5266 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5267 functions against NULL, not 0.
5268 * gdbarch.c: Re-generate.
5269
5270 2003-07-10 Fred Fish <fnf@ninemoons.com>
5271
5272 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5273 null string instead of a null pointer.
5274 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5275
5276 2003-07-09 Michael Snyder <msnyder@redhat.com>
5277
5278 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5279
5280 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5281
5282 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5283 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5284 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5285 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5286 * x86-64-tdep.c: ... from here.
5287
5288 2003-07-09 Andreas Schwab <schwab@suse.de>
5289
5290 * m68k-tdep.h (enum struct_return): Define.
5291 (struct gdbarch_tdep): Add struct_return.
5292 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5293 bytes are padded to the right, not to the left. Pass struct value
5294 address in register %a1, not on stack.
5295 (m68k_use_struct_convention): New function.
5296 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5297 struct_return in tdep to pcc_struct_return.
5298 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5299 reg_struct_return.
5300
5301 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5302
5303 * somread.c (som_symfile_offsets): Fix compilation error.
5304
5305 2003-07-09 Andrew Cagney <cagney@redhat.com>
5306
5307 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5308 Add comments about the checks.
5309
5310 2003-07-08 Andrew Cagney <cagney@redhat.com>
5311
5312 * Makefile.in: Make dependency section headers consistent.
5313 (config_h): Move to $BUILD headers section.
5314 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5315 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5316 (ada-exp.tab.c): Move to YACC/LEX section.
5317 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5318 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5319
5320 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5321
5322 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5323 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5324 of strerror with safe_strerror, use ISO C function definitions,
5325 and replace instances of sprintf with snprintf.
5326
5327 2003-07-07 Andrew Cagney <cagney@redhat.com>
5328
5329 * frame.c (get_prev_frame): Enable check for identical frames.
5330 Update comments. Update error messages.
5331
5332 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5333
5334 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5335
5336 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5337
5338 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5339 sort_symtab_syms, no longer necessary.
5340
5341 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5342
5343 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5344
5345 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5346
5347 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5348 (mips_register_byte): Likewise.
5349
5350 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5351
5352 * Makefile.in (sparc_tdep_h): New.
5353 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5354 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5355 * sparc-linux-nat.c: Include "sparc-tdep.h".
5356 * sparc-nat.c: Likewise.
5357 * sparc-tdep.c: Likewise.
5358 * sparc64nbsd-nat.c: Likewise.
5359 * sparcnbsd-nat.c: Likewise.
5360 * sparcnbsd-tdep.c: Likewise.
5361 * sparc-tdep.h: New file.
5362 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5363 and sparc_npc_regnum.
5364
5365 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5366
5367 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5368 (mips_linux_cannot_store_register): List supported instead of
5369 unsupported registers.
5370
5371 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5372
5373 * disasm.c (dump_insns): Separate instructions from addresses.
5374
5375 2003-07-07 Andreas Schwab <schwab@suse.de>
5376
5377 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5378 dependencies.
5379 * m68k-tdep.c (NUM_FREGS): Delete.
5380 (SIG_PC_FP_OFFSET): Delete.
5381 (TARGET_M68K): Delete.
5382 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5383 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5384 P_MOVEL_SP, P_MOVEML_SP): Define.
5385 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5386 P_TRAP): Delete.
5387 (m68k_register_raw_size): Delete.
5388 (m68k_register_virtual_size): Delete.
5389 (m68k_register_type): Renamed from m68k_register_virtual_type and
5390 add gdbarch argument.
5391 (m68k_store_struct_return): Delete.
5392 (m68k_deprecated_extract_return_value): Delete.
5393 (m68k_deprecated_extract_struct_value_address): Delete.
5394 (m68k_frame_chain): Delete.
5395 (m68k_frame_saved_pc): Delete.
5396 (m68k_fix_call_dummy): Delete.
5397 (m68k_push_dummy_frame): Delete.
5398 (m68k_pop_frame): Delete.
5399 (m68k_extract_return_value): New function.
5400 (m68k_store_return_value): Rewrite using regcache.
5401 (m68k_extract_struct_value_address): Rewrite using regcache.
5402 (m68k_push_dummy_call): New function.
5403 (struct m68k_frame_cache): Define.
5404 (m68k_alloc_frame_cache): New function.
5405 (m68k_analyze_frame_setup): New function.
5406 (m68k_analyze_register_saves): New function.
5407 (m68k_analyze_prologue): New function.
5408 (m68k_skip_prologue): Rewrite using above functions.
5409 (m68k_unwind_pc): New function.
5410 (m68k_frame_cache): New function.
5411 (m68k_frame_this_id): New function.
5412 (m68k_frame_prev_register): New function.
5413 (m68k_frame_unwind): New variable.
5414 (m68k_frame_p): New function.
5415 (m68k_sigtramp_frame_cache): New function.
5416 (m68k_sigtramp_frame_this_id): New function.
5417 (m68k_sigtramp_frame_prev_register): New function.
5418 (m68k_sigtramp_frame_unwind): New variable.
5419 (m68k_sigtramp_frame_p): New function.
5420 (m68k_frame_base_address): New function.
5421 (m68k_frame_base): New function.
5422 (m68k_unwind_dummy_id): New function.
5423 (fill_gregset): Use regcache_collect.
5424 (fill_fpregset): Likewise.
5425 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5426 defined.
5427 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5428 deprecated_init_frame_pc, deprecated_store_struct_return,
5429 deprecated_extract_return_value, deprecated_store_return_value,
5430 deprecated_frame_chain, deprecated_frame_saved_pc,
5431 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5432 deprecated_register_virtual_size,
5433 deprecated_max_register_raw_size,
5434 deprecated_max_register_virtual_size,
5435 deprecated_register_virtual_type, deprecated_register_size,
5436 deprecated_register_byte, deprecated_register_bytes,
5437 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5438 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5439 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5440 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5441 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5442 deprecated_push_dummy_frame, deprecated_pop_frame,
5443 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5444 only if SYSCALL_TRAP is defined. Set extract_return_value,
5445 store_return_value, extract_struct_value_address, register_type,
5446 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5447 predicates.
5448 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5449 M68K_MAX_REGISTER_SIZE): Define.
5450 (struct m68k_sigtramp_info): Define.
5451 (struct gdbarch_tdep): Add get_sigtramp_info.
5452 * m68klinux-nat.c (fetch_register): Use register_size instead of
5453 REGISTER_RAW_SIZE. Don't put assignment in if.
5454 (store_register): Likewise.
5455 (fetch_inferior_registers): Likewise.
5456 (store_inferior_registers): Likewise.
5457 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5458 (m68k_linux_frame_saved_pc): Delete.
5459 (m68k_linux_sigcontext_reg_offset,
5460 m68k_linux_ucontext_reg_offset): Define.
5461 (m68k_linux_get_sigtramp_info): New function.
5462 (m68k_linux_extract_return_value): Rewrite using regcache.
5463 (m68k_linux_store_return_value): Likewise.
5464 (m68k_linux_extract_struct_value_address): Likewise.
5465 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5466 Don't set deprecated_frame_saved_pc,
5467 deprecated_extract_return_value, deprecated_store_return_value,
5468 deprecated_extract_struct_value_address. Set
5469 extract_return_value, store_return_value,
5470 extract_struct_value_address.
5471
5472 2003-07-07 Andrew Cagney <cagney@redhat.com>
5473
5474 * expprint.c: Include "user-regs.h" instead of "frame.h".
5475 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5476 frame_map_regnum_to_name.
5477 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5478 (frame_map_name_to_regnum): Simplify, call
5479 user_reg_map_name_to_regnum.
5480 (frame_map_regnum_to_name): Simplify, call
5481 user_reg_map_regnum_to_name.
5482 (frame_register_unwind): Update.
5483 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5484 (_initialize_frame_reg): Call user_reg_add_builtin.
5485 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5486 (value_of_register): Use value_of_user_reg.
5487 * eval.c (evaluate_subexp_standard): Update.
5488 * parse.c (write_dollar_variable): Update.
5489 * d10v-tdep.c (d10v_print_registers_info): Update.
5490 * infcmd.c (registers_info): Update.
5491 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5492 (builtin_regs_h): Delete macro.
5493 (user_regs_h): Define.
5494 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5495 (builtin-regs.o): Delete target.
5496 (user-regs.o): Specify dependencies.
5497 (expprint.o): Update dependencies.
5498 (findvar.o): Update dependencies.
5499 (frame.o): Update dependencies.
5500 (std-regs.o): Update dependencies.
5501
5502 2003-07-06 Christopher Faylor <cgf@redhat.com>
5503
5504 * win32-nat.c (solib_symbols_add): Use one variable for all section
5505 address stuff. Pass variable rather than address of variable to
5506 safe_symbol_file_add.
5507
5508 2003-07-06 Andreas Schwab <schwab@suse.de>
5509
5510 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5511
5512 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5513
5514 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5515
5516 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5517
5518 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5519
5520 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5521
5522 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5523 * config/i386/nto.mh: New file.
5524 * config/i386/nm-nto.h: New file.
5525 * configure.host: Add i[3456]86-*-nto*.
5526
5527 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5528
5529 * remote-vx.c (vx_add_symbols): Fix compilation error.
5530
5531 2003-07-03 Andrew Cagney <cagney@redhat.com>
5532
5533 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5534 * gdbarch.h, gdbarch.c: Re-generate.
5535 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5536 (legacy_register_name): Declare.
5537 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5538 (REGISTER_NAME): Define.
5539 * sparc-tdep.c (legacy_register_name): New function.
5540 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5541 (REGISTER_NAME): Define.
5542 (hppa64_register_name): Declare.
5543 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5544 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5545 (hppa64_register_name): New function.
5546 (hppa_register_name): New function.
5547 * arch-utils.c (legacy_register_name): Delete.
5548 * arch-utils.h (legacy_register_name): Delete.
5549
5550 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5551
5552 * cli/cli-interp.c (cli_interpreter_resume): Update the
5553 cli_uiout's stream to gdb_stdout.
5554
5555 2003-07-03 Andrew Cagney <cagney@redhat.com>
5556
5557 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5558 predicate.
5559 * gdbarch.h, gdbarch.c: Re-generate.
5560 * regcache.c (init_regcache_descr): Use legacy code when either
5561 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5562
5563 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5564
5565 * NEWS: Move "set logging" entry into GDB 6.0 section.
5566
5567 2003-07-02 Jim Blandy <jimb@redhat.com>
5568
5569 * s390-tdep.c (struct frame_extra_info): new member:
5570 'stack_bought_valid'.
5571 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5572 initialize fextra_info->stack_bought.
5573 (s390_frameless_function_invocation): Don't trust the value of
5574 fextra_info_ptr->stack_bought unless
5575 fextra_info->stack_bought_valid is set.
5576
5577 New S390 prologue analyzer.
5578 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5579 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5580 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5581 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5582 compute_x_addr, s390_on_stack, s390_store,
5583 s390_get_signal_frame_info): New functions.
5584 (S390_NUM_SPILL_SLOTS): New macro.
5585 (s390_get_frame_info): Rewritten.
5586 (is_arg_reg): Deleted.
5587
5588 Break out the decoding of S/390 instructions into separate
5589 functions, to make it more legible, and easier to check
5590 against the spec.
5591 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5592 is_rx, is_rxe): New functions.
5593 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5594 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5595 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5596 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5597 enums for opcode values. (Is this an improvement?)
5598
5599 2003-07-02 Andrew Cagney <cagney@redhat.com>
5600
5601 * i386-tdep.c: Revert change committed as part of trad-frame code
5602 below.
5603
5604 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5605
5606 * breakpoint.c (insert_catchpoint): Make static.
5607
5608 2003-07-02 Andreas Schwab <schwab@suse.de>
5609
5610 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5611 former ia64_push_arguments and ia64_push_return_address, and use
5612 regcache functions instead of read/write_register.
5613 (ia64_gdbarch_init): Set push_dummy_call instead of
5614 deprecated_push_arguments and deprecated_push_return_address.
5615
5616 2003-07-01 Andreas Jaeger <aj@suse.de>
5617
5618 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5619 before the call.
5620 Set %rax only to number of SSE registers used.
5621
5622 2003-07-01 Andrew Cagney <cagney@redhat.com>
5623
5624 * trad-frame.h: Update comments, a -1 .addr is reserved.
5625 (trad_frame_value_p, trad_frame_addr_p): Declare.
5626 (trad_frame_reg_p): Declare.
5627 (trad_frame_set_value): Rename trad_frame_register_value.
5628 (trad_frame_set_unknown): Declare.
5629 * trad-frame.c (trad_frame_realreg_p): New function.
5630 (trad_frame_addr_p, trad_frame_value_p): New function.
5631 (trad_frame_set_unknown): New function.
5632 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5633 (trad_frame_prev_register): Use trad_frame_realreg_p,
5634 trad_frame_addr_p and trad_frame_value_p.
5635 (trad_frame_set_value): Rename trad_frame_register_value.
5636 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5637 and trad_frame_set_value.
5638
5639 2003-06-30 Jim Blandy <jimb@redhat.com>
5640
5641 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5642 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5643 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5644 for 16 registers, and then 32 more bytes.
5645 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5646 New macros.
5647 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5648 Move up in the file, since it's now used by is_simple_arg.
5649 (is_simple_arg): Don't assume registers are four bytes long.
5650 Exclude all double arguments. Extended floats are not simple
5651 args.
5652 (is_power_of_two): New function.
5653 (pass_by_copy_ref): Call is_power_of_two, and check that the
5654 length fits in a register, rather than listing all the acceptable
5655 sizes. Extended floats are not passed by reference.
5656 (s390_push_arguments): Don't assume registers are four bytes long.
5657 Reserve an argument register to point to the buffer for structures
5658 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5659 S390_STACK_FRAME_OVERHEAD.
5660
5661 2003-06-30 Andreas Schwab <schwab@suse.de>
5662
5663 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5664 format error message.
5665
5666 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5667
5668 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5669
5670 2003-06-30 David Carlton <carlton@kealia.com>
5671
5672 Band-aid for PR c++/1245.
5673 * Makefile.in (cp-support.o): Depend on complaints_h.
5674 * cp-support.c: Include complaints.h. Add declaration for
5675 find_last_component.
5676 (cp_find_first_component): Separate code into
5677 cp_find_first_component_aux.
5678 (cp_find_first_component_aux): Call demangled_name_complaint.
5679 (demangled_name_complaint): New.
5680
5681 2003-06-30 Andrew Cagney <cagney@redhat.com>
5682
5683 * remote.c (remote_write_bytes): Explicitly compute and then use
5684 the payload size. Update comments to reflect. Fixes problem of
5685 GDB not sending small packets as found by Fred Fish.
5686
5687 2003-06-30 Andrew Cagney <cagney@redhat.com>
5688
5689 * remote.c (remote_async_wait): Fix -Wformat problem.
5690
5691 2003-06-29 Andrew Cagney <cagney@redhat.com>
5692
5693 * remote.c (remote_wait): Call error, and not warning, when the
5694 packet is corrupt.
5695 (remote_async_wait): Ditto.
5696
5697 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5698
5699 * sparc-tdep.c (sparc_y_regnum): Make external again.
5700
5701 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5702
5703 * cli/cli-logging.c (pop_output_files): Add void to function
5704 definition.
5705
5706 2003-06-29 Andrew Cagney <cagney@redhat.com>
5707
5708 * frame.c (frame_register_unwind): Use unsigned char when dumping
5709 the buffer contents.
5710
5711 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5712
5713 * cli/cli-logging.c: New file.
5714 * cli-out.c (struct ui_out_data): Add original_stream.
5715 (cli_redirect): New function.
5716 (cli_ui_out_impl): Add cli_redirect.
5717 (cli_out_new): Initialize original_stream.
5718 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5719 (uo_redirect, ui_out_redirect): New.
5720 * ui-out.h (struct ui_out_impl): Add redirect member.
5721 (redirect_ftype): New.
5722 (ui_out_redirect): Add prototype.
5723 * Makefile.in: Add rules for cli-logging.c.
5724 * NEWS: Mention "set logging".
5725
5726 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5727
5728 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5729
5730 2003-06-27 Andrew Cagney <cagney@redhat.com>
5731
5732 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5733 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5734 * avr-tdep.c (avr_call_dummy_address): Delete function.
5735 (avr_gdbarch_init): Do not set call_dummy_address.
5736
5737 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5738
5739 * symfile.c (syms_from_objfile): Move variables to inner block.
5740 Move the checks for the non-mainline case a bit earlier to avoid
5741 doing some useless computations.
5742
5743 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5744
5745 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5746
5747 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5748
5749 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5750 sections.
5751
5752 2003-06-26 Michael Chastain <mec@shout.net>
5753
5754 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5755 gdb/testsuite/gdb.c++/pr-1210.exp.
5756
5757 2003-06-26 Andrew Cagney <cagney@redhat.com>
5758
5759 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5760 altivec_expression.h and altivec_registers.h.
5761
5762 2003-06-26 Andrew Cagney <cagney@redhat.com>
5763
5764 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5765 info->mach when MIPS16. Patch suggested by Fred Fish.
5766
5767 2003-06-26 Andrew Cagney <cagney@redhat.com>
5768
5769 * utils.c (internal_vproblem): Print the problem to a reason
5770 buffer and then pass to query. Make the msg variable more local.
5771
5772 2003-06-26 Andrew Cagney <cagney@redhat.com>
5773
5774 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5775 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5776 * gdbarch.h, gdbarch.c: Re-generate.
5777 * frame-base.c (default_frame_args_address): Update. Use
5778 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5779 not available.
5780 (default_frame_locals_address): Ditto for
5781 DEPRECATED_FRAME_LOCALS_ADDRESS.
5782 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5783 (vax_frame_num_args): Update.
5784 (vax_gdbarch_init): Update.
5785 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5786 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5787 * mcore-tdep.c (mcore_gdbarch_init): Update.
5788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5789 * ia64-tdep.c (ia64_gdbarch_init): Update.
5790 * symtab.h (address_class): Update comments.
5791 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5792 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5793 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5794 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5795 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5796 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5797 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5798 * alpha-mdebug-tdep.c: Update.
5799 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5800
5801 2003-06-26 Andreas Jaeger <aj@suse.de>
5802
5803 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5804 of SSE registers so that varargs functions work. Rework handling
5805 of passing arguments on the stack.
5806 (x86_64_store_return_value): Return double and float values in SSE
5807 register.
5808
5809 2003-06-24 Michael Chastain <mec@shout.net>
5810
5811 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5812 the "constructor breakpoints ignored" bug.
5813
5814 2003-06-25 David Carlton <carlton@kealia.com>
5815
5816 * MAINTAINERS: Update e-mail address.
5817
5818 2003-06-24 Jim Blandy <jimb@redhat.com>
5819
5820 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5821
5822 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5823 function.
5824 (ppc_linux_init_abi): Register it as the
5825 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5826
5827 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5828 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5829 method.
5830
5831 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5832 (ppc64_standard_linkage_target): Use it.
5833
5834 2003-06-23 Andrew Cagney <cagney@redhat.com>
5835
5836 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5837 for 0 "int0" and 4 "int32" sized registers.
5838 * gdbtypes.c (builtin_type_int0): Define.
5839 (build_gdbtypes): Initialize builtin_type_int0.
5840 * gdbtypes.h (builtin_type_int0): Declare.
5841
5842 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5843
5844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5845 as characters are unsigned.
5846
5847 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5848
5849 PR gdb/1179
5850 * dwarfread.c (struct_type): Skip static fields without crashing.
5851
5852 2003-06-22 Andrew Cagney <cagney@redhat.com>
5853
5854 GDB 6.0 branch created.
5855 * README: Update.
5856 * PROBLEMS: Update. Empty.
5857 * NEWS: Update.
5858
5859 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5860
5861 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5862 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5863
5864 2003-06-22 Andrew Cagney <cagney@redhat.com>
5865
5866 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5867 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5868 Velikov.
5869
5870 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5871
5872 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5873 compilers.
5874
5875 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5876
5877 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5878 argument of val_print.
5879 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5880 to the address argument of baseclass_offset or target_read_memory.
5881 Do add it to the argument of cp_print_value_fields.
5882
5883 2003-06-21 Andrew Cagney <cagney@redhat.com>
5884
5885 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5886 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5887 instead of 0..NUM_REGS.
5888 (mips_register_reggroup_p): New function.
5889 (mips_pseudo_register_write): New function.
5890 (mips_pseudo_register_read): New function.
5891 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5892 based on the register's type.
5893 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5894 cooked.
5895 (mips_get_saved_register): Simplify. Assert that REGNO is a
5896 pseudo / cooked.
5897 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5898 (mips_register_type): Replace mips_register_virtual_type. Map
5899 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5900 when available.
5901 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5902 that the register is cooked / virtual.
5903 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5904 Only get the extra info when needed.
5905 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5906 (mips32_heuristic_proc_desc): Fetch the cooked register.
5907 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5908 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5909 (mips_print_register): Use gdbarch_register_type, instead of
5910 REGISTER_VIRTUAL_TYPE.
5911 (print_gp_register_row): Use gdbarch_register_type, instead of
5912 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5913 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5914 Print the pseudo / cooked registers.
5915 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5916 Print the pseudo / cooked registers.
5917 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5918 REG_NUM is pseudo / cooked.
5919 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5920 (mips_n32n64_xfer_return_value): Ditto.
5921 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5922 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5923 (mips_register_sim_regno): New function.
5924 (mips_gdbarch_init): Set deprecated_register_byte,
5925 register_group_p, pseudo_register_write, pseudo_register_read,
5926 register_sim_regno, and num_pseudo_regs. Set register_type,
5927 instead of register_virtual_type.
5928 * Makefile.in (mips-tdep.o): Update dependencies.
5929 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5930 REGISTER_VIRTUAL_TYPE.
5931 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5932 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5933 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5934 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5935 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5936
5937 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5938
5939 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5940 * cli/cli-cmds.c: Include "gdb_vfork.h".
5941 (shell_escape): Use vfork.
5942
5943 2003-06-21 Andrew Cagney <cagney@redhat.com>
5944
5945 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5946 32 bit floating-point register saves.
5947
5948 * frame.h (deprecated_unwind_get_saved_register): Delete.
5949 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5950 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5951 and deprecated_get_next_frame_hack instead of
5952 deprecated_unwind_get_saved_register.
5953
5954 * mips-tdep.c (mips_dump_tdep): Do not print
5955 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5956
5957 * frame.c (get_frame_register): New function.
5958 (frame_unwind_register_signed): New function.
5959 (get_frame_register_signed): New function.
5960 (frame_unwind_register_unsigned): New function.
5961 (get_frame_register_unsigned): New function.
5962 * frame.h: Add comments on naming schema.
5963 (get_frame_register, frame_unwind_register_signed): Declare.
5964 (get_frame_register_signed, get_frame_register_signed): Declare.
5965 (frame_unwind_register_unsigned): Declare.
5966 (get_frame_register_unsigned): Declare.
5967
5968 2003-06-20 Theodore A. Roth <troth@openavr.org>
5969
5970 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5971
5972 2003-06-20 Theodore A. Roth <troth@openavr.org>
5973
5974 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5975 (avr_read_sp): Ditto.
5976
5977 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5978
5979 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5980 * config/arm/nm-linux.h: Likewise.
5981 * config/arm/tm-linux.h: Likewise.
5982 * config/ia64/nm-linux.h: Likewise.
5983 * config/ia64/tm-ia64.h: Likewise.
5984 * config/s390/tm-linux.h: Likewise.
5985 * config/s390/tm-s390.h: Likewise.
5986 * s390-nat.c: Likewise.
5987 * s390-tdep.c: Likewise.
5988
5989 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5990 * config/ia64/linux.mt: Likewise.
5991 * config/m68k/linux.mh: Likewise.
5992 * config/mips/linux.mt: Likewise.
5993 * config/powerpc/linux.mh: Likewise.
5994 * config/sh/linux.mt: Likewise.
5995
5996 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5997
5998 * solib.c (solib_open): Change tests for whether to search
5999 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6000 comments.
6001
6002 2003-06-19 Theodore A. Roth <troth@openavr.org>
6003
6004 * avr-tdep.c (avr_frame_address): Delete function.
6005 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6006 set_gdbarch_frame_args_address.
6007
6008 2003-06-19 Andrew Cagney <cagney@redhat.com>
6009
6010 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6011 (REGISTER_CONVERT_FROM_TYPE): Delete.
6012 (mips_register_convert_to_type): Delete declaration.
6013 (mips_register_convert_from_type): Delete declaration.
6014 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6015 kernel/.
6016
6017 2003-06-19 Michael Snyder <msnyder@redhat.com>
6018
6019 * linux-nat.h: New file.
6020 * linux-nat.c: Include linux-nat.h.
6021 * lin-lwp.c: Include linux-nat.h.
6022 Move struct lwp_info def to linux-nat.h.
6023 * linux-proc.c: Include linux-nat.h.
6024 (linux_make_note_section): Iterate over lwps instead of threads.
6025 (linux_do_thread_registers): Use lwp instead of merged pid.
6026 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6027 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6028 Add dependency on linux_nat_h.
6029
6030 2003-06-19 Theodore A. Roth <troth@openavr.org>
6031
6032 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6033
6034 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6035
6036 * varobj.c (get_type, get_target_type): Use check_typedef.
6037
6038 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6039
6040 * breakpoint.c (insert_catchpoint): Call internal_error.
6041
6042 2003-06-19 Theodore A. Roth <troth@openavr.org>
6043
6044 * avr-tdep.c (avr_push_dummy_code): Delete function.
6045 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6046
6047 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6048
6049 * arch-utils.c (default_prepare_to_proceed): Remove.
6050 (generic_prepare_to_proceed): Remove.
6051 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6052 (generic_prepare_to_proceed): Remove prototype.
6053 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6054 * gdbarch.c: Regenerate.
6055 * gdbarch.h: Regenerate.
6056 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6057 * hppah-nat.c (hppa_switched_threads): Remove.
6058 * infrun.c (prepare_to_proceed): New static function, copied from
6059 generic_prepare_to_proceed. Remove select_it argument.
6060 (proceed): Call prepare_to_proceed.
6061 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6062 variables.
6063 (ptrace_wait): Don't set the removed variables.
6064 (hppa_switched_threads): Remove.
6065 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6066 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6067 (lin_lwp_prepare_to_proceed): Remove prototype.
6068 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6069 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6070
6071 2003-06-18 Theodore A. Roth <troth@openavr.org>
6072
6073 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6074 trad-frame.h.
6075 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6076 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6077 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6078 (AVR_PROLOGUE_*): Enumerate prologue types.
6079 (struct frame_extra_info): Remove.
6080 (struct avr_unwind_cache): Define.
6081 (avr_write_sp): Delete function.
6082 (avr_read_fp): Ditto.
6083 (avr_init_extra_frame_info): Ditto.
6084 (avr_pop_frame): Ditto.
6085 (avr_frame_saved_pc): Ditto.
6086 (avr_saved_pc_after_call): Ditto.
6087 (avr_push_return_address): Ditto.
6088 (avr_frame_chain): Ditto.
6089 (avr_store_struct_return): Ditto.
6090 (avr_push_arguments): Ditto.
6091 (avr_scan_prologue): Update comments. Changed to set up the info for
6092 cache unwinding. Now returns end of prologue PC.
6093 (avr_skip_prologue): Better handling of functions lacking a prologue
6094 by using avr_scan_prologue.
6095 (avr_scan_arg_moves): New function.
6096 (avr_saved_regs_unwinder): Ditto.
6097 (avr_frame_unwind_cache): Ditto.
6098 (avr_unwind_pc): Ditto.
6099 (avr_frame_this_id): Ditto.
6100 (avr_frame_prev_register): Ditto.
6101 (avr_frame_p): Ditto.
6102 (avr_frame_base_address ): Ditto.
6103 (avr_unwind_dummy_id): Ditto.
6104 (avr_push_dummy_code): Ditto.
6105 (push_stack_item): Ditto.
6106 (pop_stack_item): Ditto.
6107 (avr_push_dummy_call): Ditto.
6108 (struct stack_item): Define.
6109 (avr_frame_unwind): Declare structure.
6110 (avr_frame_base): Ditto.
6111 (avr_gdbarch_init): Remove calls to
6112 set_gdbarch_deprecated_init_frame_pc,
6113 set_gdbarch_deprecated_target_read_fp,
6114 set_gdbarch_deprecated_dummy_write_sp,
6115 set_gdbarch_deprecated_fp_regnum,
6116 set_gdbarch_deprecated_push_arguments,
6117 set_gdbarch_deprecated_push_return_address,
6118 set_gdbarch_deprecated_pop_frame,
6119 set_gdbarch_deprecated_store_struct_return,
6120 set_gdbarch_deprecated_frame_init_saved_regs,
6121 set_gdbarch_deprecated_init_extra_frame_info,
6122 set_gdbarch_deprecated_frame_chain,
6123 set_gdbarch_deprecated_frame_saved_pc,
6124 set_gdbarch_deprecated_saved_pc_after_call.
6125 Add calls to set_gdbarch_push_dummy_call,
6126 set_gdbarch_push_dummy_code,
6127 frame_unwind_append_predicate,
6128 frame_base_set_default,
6129 set_gdbarch_unwind_dummy_id,
6130 set_gdbarch_unwind_pc.
6131 Wrap a long line.
6132
6133 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6134
6135 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6136 registers for H8/300S.
6137 (h8300_print_registers_info): Ditto.
6138 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6139
6140 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6143 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6144 (lin_lwp_wait): Likewise. Update comments.
6145 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6146 (pull_pid_from_list, linux_record_stopped_pid): New.
6147
6148 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6149
6150 * ada-lang.c (scan_discrim_bound): Name first argument.
6151 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6152 declared by ALL_BLOCK_SYMBOLS.
6153
6154 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6155
6156 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6157 ("regcache.h"): Include it.
6158 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6159
6160 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6161
6162 * NEWS: Mention gdbserver detach change and "disconnect" command.
6163 * infcmd.c (disconnect_command): New function.
6164 (_initialize_infcmd): Add ``disconnect'' command.
6165 * remote.c (remote_async_detach): Delete.
6166 (remote_detach): Merge remote_async_detach.
6167 (remote_disconnect): New.
6168 (init_remote_ops): Set to_disconnect.
6169 (init_remote_cisco_ops): Likewise.
6170 (init_remote_async_ops): Likewise. Use remote_detach.
6171 * target.c (cleanup_target): Default to_disconnect.
6172 (update_current_target): Inherit to_disconnect.
6173 (target_disconnect, debug_to_disconnect): New functions.
6174 (setup_target_debug): Set to_disconnect.
6175 * target.h (struct target_ops): Add to_disconnect.
6176 (target_disconnect): Add prototype.
6177
6178 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6179
6180 * breakpoint.c (insert_catchpoint): New function.
6181 (insert_breakpoints): Use catch_exceptions to call
6182 insert_catchpoint. Disable catchpoints if they fail to insert.
6183
6184 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6185
6186 * symfile.c (reread_symbols): Clear sym_private.
6187
6188 2003-06-17 Andrew Cagney <cagney@redhat.com>
6189
6190 * trad-frame.h (struct frame_info): Add opaque declaration.
6191 * remote-fileio.h (struct cmd_list_element): Add opaque
6192 declaration.
6193 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6194 comments.
6195
6196 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6197
6198 * remote.c (remote_prepare_to_store): Replace call to
6199 deprecated_read_register_bytes with multiple regcache_raw_read
6200 calls.
6201
6202 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6203
6204 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6205 (nto_find_and_open_solib): Likewise.
6206 (nto_init_solib_absolute_prefix): Likewise.
6207 (_initialize_nto_tdep): Fix indentation.
6208
6209 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6210
6211 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6212
6213 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6214
6215 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6216
6217 2003-06-17 Jim Blandy <jimb@redhat.com>
6218
6219 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6220
6221 2003-06-16 Theodore A. Roth <troth@openavr.org>
6222
6223 * avr-tdep.c (avr_extract_return_value): New function.
6224 (avr_gdbarch_init): Set extract_return_value method.
6225
6226 2003-06-16 Andrew Cagney <cagney@redhat.com>
6227
6228 * frame.h (deprecated_get_next_frame_hack): Declare.
6229 * frame.c (legacy_saved_regs_prev_register): Only require
6230 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6231 there are always saved regs.
6232 (deprecated_generic_get_saved_register): Do not require
6233 DEPRECATED_FRAME_INIT_SAVED_REGS.
6234 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6235 use frame ID unwind instead.
6236 (deprecated_get_next_frame_hack): New function.
6237
6238 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6239
6240 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6241 (h8300_push_dummy_call): ...this function. Some minor optimization.
6242 (h8300_push_return_address): Remove.
6243 (h8300_gdbarch_init): Remove calls to
6244 set_gdbarch_deprecated_dummy_write_sp,
6245 set_gdbarch_deprecated_push_arguments and
6246 set_gdbarch_deprecated_push_return_address.
6247 Add call to set_gdbarch_push_dummy_call.
6248
6249 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6250
6251 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6252 (E_PSEUDO_EXR_REGNUM): Ditto.
6253 (h8300_is_argument_spill): Check for instructions moving argument
6254 registers into safe registers.
6255 (h8300_skip_prologue): Check for stm instruction to push registers
6256 used for register variables onto stack.
6257 (gdb_print_insn_h8300): Remove.
6258 (h8300_examine_prologue): Add a comment.
6259 (h8300_register_name): Take pseudo registers into account.
6260 (h8300s_register_name): Ditto.
6261 (h8300sx_register_name): Ditto.
6262 (h8300_print_register): Ditto.
6263 (h8300_print_registers_info): Define "nice" printing order.
6264 (h8300_saved_pc_after_call): Take pseudo registers into account.
6265 (h8300_register_type): Ditto. Return type used for remote connection
6266 when requesting real CCR or EXR register, return actual type when
6267 requesting pseudo CCR or EXR.
6268 (h8300_pseudo_register_read): New function.
6269 (h8300_pseudo_register_write): Ditto.
6270 (h8300_dbg_reg_to_regnum): Ditto.
6271 (h8300s_dbg_reg_to_regnum): Ditto.
6272 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6273 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6274 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6275 set_gdbarch_print_insn architecture dependent.
6276 Call set_gdbarch_pseudo_register_read and
6277 set_gdbarch_pseudo_register_write.
6278 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6279
6280 2003-06-16 Andrew Cagney <cagney@redhat.com>
6281
6282 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6283 * gdbarch.h, gdbarch.c: Re-generate.
6284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6285 * s390-tdep.c (s390_gdbarch_init): Update.
6286 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6288 * mips-tdep.c (mips_gdbarch_init): Update.
6289 * mcore-tdep.c (mcore_gdbarch_init): Update.
6290 * cris-tdep.c (cris_gdbarch_init): Update.
6291 * infcall.c (call_function_by_hand): Update.
6292 * ia64-tdep.c (ia64_push_arguments): Update comment.
6293 * frame.c (legacy_get_prev_frame): Do not assume
6294 SAVE_DUMMY_FRAME_TOS_P.
6295 * dummy-frame.c (find_dummy_frame): Update comment.
6296
6297 2003-06-16 Andrew Cagney <cagney@redhat.com>
6298
6299 * regcache.c (do_cooked_read): Do not use register_valid_p.
6300
6301 2003-06-15 Theodore A. Roth <troth@openavr.org>
6302
6303 * avr-tdep.c (avr_register_type): Remove a blank line.
6304 (avr_scan_prologue): Correct some comments.
6305
6306 2003-06-15 Theodore A. Roth <troth@openavr.org>
6307
6308 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6309 prologue types.
6310 Properly scan prologues generated by gcc with the -mcall-prologues
6311 option.
6312 Add code to scan -mcall-prologues for mega devices.
6313
6314 2003-06-15 Theodore A. Roth <troth@openavr.org>
6315
6316 * avr-tdep.c (avr_register_byte): Delete function.
6317 (avr_register_raw_size): Delete function.
6318 (avr_register_virtual_size): Delete function.
6319 (avr_register_virtual_type): Delete function.
6320 (avr_register_type): New function.
6321 (avr_address_to_pointer): Remove unused code.
6322 (avr_read_fp): Need to read FP as two separate bytes due to change to
6323 avr_register_type() usage.
6324 (avr_gdbarch_init): Don't set deprecated_register_size.
6325 Don't set deprecated_register_bytes.
6326 Don't set deprecated_register_byte.
6327 Don't set deprecated_register_raw_size.
6328 Don't set deprecated_max_register_raw_size.
6329 Don't set deprecated_register_virtual_size.
6330 Don't set deprecated_max_register_virtual_size.
6331 Don't set deprecated_register_virtual_type.
6332 Set register_type method.
6333
6334 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6335
6336 * Makefile.in (linux-nat.o): Add rule.
6337 * linux-nat.c: New file.
6338 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6339 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6340 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6341 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6342 * config/arm/linux.mh (NATDEPFILES): Likewise.
6343 * config/i386/linux.mh (NATDEPFILES): Likewise.
6344 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6345 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6346 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6347 * config/mips/linux.mh (NATDEPFILES): Likewise.
6348 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6349 * config/s390/s390.mh (NATDEPFILES): Likewise.
6350 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6351
6352 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6353
6354 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6355 replace out-of-date comment.
6356
6357 2003-06-15 Andrew Cagney <cagney@redhat.com>
6358
6359 * rdi-share/host.h (Fail): Change to a varargs function.
6360 * remote-rdi.c (Fail): Update.
6361
6362 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6363
6364 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6365 (i386_convert_register_p, i386_register_to_value,
6366 i386_register_from_value): Handle types longer than 8 bytes.
6367
6368 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6369
6370 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6371 Move floating-point code to new function in i387-tdep.c.
6372 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6373 New functions containing code moved here from i386-tdep.c.
6374 * i387-tdep.h: Add opaque declaration for `struct type'.
6375 (i387_register_to_value, i387_value_to_register): New prototypes.
6376 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6377 (x86_64_init_abi): Set convert_register_p, register_to_value and
6378 value_to_register here.
6379
6380 2003-06-14 Andrew Cagney <cagney@redhat.com>
6381
6382 * mips-tdep.c (mips_register_to_value): Make static.
6383 (mips_value_to_register): Make static.
6384 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6385 * ia64-tdep.c (ia64_register_raw_size): Make static.
6386 (ia64_register_virtual_size): Make static.
6387 (ia64_register_byte): Make static.
6388 * i387-tdep.c: Include "i387-tdep.h".
6389 (print_387_control_word): Delete function.
6390 (print_387_status_word): Delete function.
6391 (print_387_status_bits): Delete function.
6392 (print_387_control_bits): Delete function.
6393 * Makefile.in (i387-tdep.o): Update dependencies.
6394 * rdi-share/host.h (Fail): Declare.
6395 * remote-rdi.c (Fail): Update to match declaration.
6396
6397 2003-06-14 Andrew Cagney <cagney@redhat.com>
6398
6399 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6400 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6401 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6402 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6403 * README: Delete reference to remote-array.
6404 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6405 (remote-array.o): Delete target.
6406 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6407 * remote-array.c: Delete file.
6408
6409 2003-06-14 Andrew Cagney <cagney@redhat.com>
6410 Mark Kettenis <kettenis@gnu.org>
6411
6412 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6413 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6414 parameter with "frame".
6415 * gdbarch.h, gdbarch.c: Re-generate.
6416 * frame.h (put_frame_register): Declare.
6417 * frame.c (put_frame_register): New function.
6418 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6419 (legacy_register_to_value): Rewrite, use "frame" to get the
6420 register value.
6421 (legacy_value_to_register): Rewrite, use "frame" to find the
6422 register's location before storing.
6423 * arch-utils.h (legacy_convert_register_p): Update.
6424 (legacy_register_to_value, legacy_value_to_register): Update.
6425 * findvar.c (value_from_register): Rewrite, eliminate use of
6426 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6427 "frame" to REGISTER_TO_VALUE.
6428 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6429 lval_reg_frame_relative + lval_register branch of the switch. Do
6430 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6431 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6432 I386_EDI_REGNUM): New defines.
6433 (i386_next_regnum, i386_convert_register_p,
6434 i386_register_to_value, i386_value_to_register): New functions.
6435 (i386_register_convertible, i386_register_convert_to_virtual,
6436 i386_convert_to_raw): Remove functions.
6437 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6438 value_to_register instead of register_convertible,
6439 register_convert_to_virtual and register_convert_to_raw.
6440 * mips-tdep.c (mips_convert_register_p): New function.
6441 (mips_value_to_register): Replace mips_register_convert_from_type.
6442 (mips_register_to_value): Replace mips_register_convert_to_type.
6443 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6444 register_to_value.
6445 * alpha-tdep.c (alpha_convert_register_p): Update.
6446 (alpha_value_to_register): Update, store the register.
6447 (alpha_register_to_value): Update, fetch the register.
6448
6449 2003-06-14 Theodore A. Roth <troth@openavr.org>
6450
6451 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6452 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6453 Don't set deprecated_call_dummy_words.
6454 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6455 Don't set remote_translate_xfer_address.
6456 (avr_io_reg_read_command): Remove commented out debug printf.
6457 Wrap a long line.
6458
6459 2003-06-14 Theodore A. Roth <troth@openavr.org>
6460
6461 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6462 causes gdb to seg fault.
6463
6464 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6465
6466 * sparc-nat.c (fetch_inferior_registers): Correct
6467 a reference to "registers".
6468
6469 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6470
6471 * Makefile.in (exc_request_U_h): Define
6472 (exc_request_S_h): Likewise.
6473 (msg_reply_S_h): Likewise.
6474 (msg_U_h): Likewise.
6475 (notify_S_h): Likewise.
6476 (process_reply_S_h): Likewise.
6477 (gnu-nat.o): Depend on gdb_obstack_h
6478 * gnu-nat.c: Include "gdb_obstack.h".
6479
6480 2003-06-13 Andrew Cagney <cagney@redhat.com>
6481
6482 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6483 * gdbarch.h, gdbarch.c: Re-generate.
6484
6485 2003-06-13 Andrew Cagney <cagney@redhat.com>
6486
6487 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6488 when deprecated REGISTER macros can be deleted.
6489 * gdbarch.h, gdbarch.c: Re-generate.
6490
6491 2003-06-13 Jim Blandy <jimb@redhat.com>
6492
6493 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6494 Linux entry point symbols for _dl_debug_state, too.
6495
6496 2003-06-13 Andrew Cagney <cagney@redhat.com>
6497
6498 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6499 available, do not use the FP register, and always save the TOS.
6500 * dummy-frame.c (dummy_frame_this_id): Do not assert
6501 SAVE_DUMMY_FRAME_TOS.
6502 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6503 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6504 (i386_push_dummy_call): Add 8 to the returned SP.
6505 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6506 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6507 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6508 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6509 (x86_64_push_dummy_call): Return "sp + 16".
6510 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6511 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6512 save_dummy_frame_tos.
6513
6514 2003-06-13 Jim Blandy <jimb@redhat.com>
6515
6516 * frv-tdep.c (frv_use_struct_convention): Delete static
6517 declaration for function deleted in my change of 2003-06-12.
6518
6519 2003-06-13 Theodore A. Roth <troth@openavr.org>
6520
6521 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6522 (avr_pointer_to_address): Shift code addrs left 1 bit.
6523 (avr_convert_from_func_ptr_addr): Delete function since operation is
6524 better handled by avr_address_to_pointer and avr_pointer_to_address.
6525 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6526
6527 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6528
6529 From Kelley Cook <kelleycook@wideopenwest.com>:
6530 * configure.host: Accept i[34567]86 variants.
6531 * configure.tgt: Likewise.
6532 * nlm/configure.in: Likewise.
6533 * nlm/configure: Regenerated.
6534
6535 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6536
6537 * arm-tdep.c (solib-svr4.h): Dont' include it.
6538 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6539 * arm-linux-tdep.c: ... here. Make static.
6540 (arm_linux_init_abi): Register it.
6541 (solib-svr4.h): Include it.
6542 * Makefile.in: Update dependencies.
6543 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6544 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6545
6546 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6547
6548 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6549 indicate registers used for return values.
6550 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6551 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6552 members.
6553 (h8300_init_extra_frame_info): Ditto.
6554 (h8300_frame_locals_address): Removed.
6555 (h8300_frame_args_address): Removed.
6556 (h8300_extract_return_value): Use new regcache structure. Only care
6557 for 16 bit CPUs.
6558 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6559 (h8300_store_return_value): Use new regcache structure. Only care
6560 for 16 bit CPUs.
6561 (h8300h_store_return_value): Same function for 32 bit CPUs.
6562 (h8300_store_struct_return): Removed.
6563 (h8300_extract_struct_value_address): Use new regcache structure.
6564 (h8300h_extract_struct_value_address): Removed.
6565 (h8300_push_dummy_code): New function.
6566 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6567 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6568 set_gdbarch_store_return_value architecture dependent.
6569 Call set_gdbarch_push_dummy_code and
6570 set_gdbarch_extract_struct_value_address.
6571 Remove calls to set_gdbarch_frame_args_address,
6572 set_gdbarch_frame_locals_address,
6573 set_gdbarch_deprecated_store_struct_return,
6574 set_gdbarch_deprecated_extract_return_value,
6575 set_gdbarch_deprecated_extract_struct_value_address,
6576 set_gdbarch_deprecated_call_dummy_words and
6577 set_gdbarch_deprecated_sizeof_call_dummy_words.
6578
6579 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6580
6581 * h8300-tdep.c (h8300_register_byte): Remove.
6582 (h8300h_register_byte): Remove.
6583 (h8300_register_virtual_type): Remove. Substitute by...
6584 (h8300_register_type): New function.
6585 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6586 (h8300h_extract_struct_value_address): Ditto.
6587 (h8300_gdbarch_init): Drop calls to
6588 set_gdbarch_deprecated_register_byte and
6589 set_gdbarch_deprecated_register_virtual_type.
6590 Add call to set_gdbarch_register_type.
6591
6592 2003-06-13 Andrew Cagney <cagney@redhat.com>
6593
6594 * gdbarch.sh: Update comments on registers.
6595 (deprecated_register_byte): Rename register_byte.
6596 (deprecated_register_raw_size): Rename register_raw_size.
6597 (deprecated_register_virtual_size): Rename register_virtual_size.
6598 (deprecated_register_virtual_type): Rename register_virtual_type.
6599 * gdbarch.h, gdbarch.c: Re-generate.
6600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6601 * vax-tdep.c (vax_gdbarch_init): Update.
6602 * v850-tdep.c (v850_gdbarch_init): Update.
6603 * sparc-tdep.c (sparc_gdbarch_init): Update.
6604 * sh-tdep.c (sh_gdbarch_init): Update.
6605 * s390-tdep.c (s390_gdbarch_init): Update.
6606 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6607 * ns32k-tdep.c: Update.
6608 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6609 * mips-tdep.c (mips_gdbarch_init): Update.
6610 * mcore-tdep.c (mcore_gdbarch_init): Update.
6611 * m68k-tdep.c (m68k_gdbarch_init): Update.
6612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6613 * ia64-tdep.c (ia64_gdbarch_init): Update.
6614 * hppa-tdep.c (hppa_gdbarch_init): Update.
6615 * h8300-tdep.c (h8300_gdbarch_init): Update.
6616 * frv-tdep.c (frv_gdbarch_init): Update.
6617 * cris-tdep.c (cris_gdbarch_init): Update.
6618 * avr-tdep.c (avr_gdbarch_init): Update.
6619 * alpha-tdep.c (alpha_gdbarch_init): Update.
6620 * arm-tdep.c (arm_gdbarch_init): Update.
6621
6622 2003-06-13 Andrew Cagney <cagney@redhat.com>
6623
6624 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6625 mips_o32_use_struct_convention with always_use_struct_convention.
6626
6627 2003-06-12 David Carlton <carlton@kealia.com>
6628
6629 * cp-namespace.c (cp_set_block_scope): Comment out
6630 processing_has_namespace_info branch.
6631
6632 2003-06-12 Jim Blandy <jimb@redhat.com>
6633
6634 Recognize and skip 64-bit PowerPC Linux linkage functions.
6635 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6636 insn_pattern, insns_match_pattern, d_field, ds_field): New
6637 functions, macros, and types for working with PPC instructions.
6638 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6639 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6640 ppc64_skip_trampoline_code): New functions, variables, and macros
6641 for recognizing and skipping linkage functions.
6642 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6643 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6644
6645 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6646 register offsets for both the 32- and 64-bit interfaces.
6647
6648 Actually finish the job started by my change of 2003-05-29.
6649 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6650 other #definition of this.
6651 (ppc_linux_skip_trampoline_code): Remove declaration.
6652 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6653 static.
6654 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6655 method for GDBARCH.
6656
6657 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6658 'long' on ppc64-*-linux*.
6659
6660 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6661 isn't #defined, assume the register doesn't exist: act as if
6662 tdep->ppc_mq_regnum were -1.
6663
6664 * configure.host, configure.tgt: Add entries for
6665 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6666 powerpc/linux.mt.
6667 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6668 New files.
6669
6670 * arch-utils.c (always_use_struct_convention): New function.
6671 * arch-utils.h (always_use_struct_convention): New prototype.
6672 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6673 (alpha_gdbarch_init): Register always_use_struct_convention,
6674 instead of alpha_use_struct_convention.
6675 * cris-tdep.c (cris_use_struct_convention): Delete.
6676 (cris_gdbarch_init): Register always_use_struct_convention,
6677 instead of cris_use_struct_convention.
6678 * frv-tdep.c (frv_use_struct_convention): Delete.
6679 (frv_gdbarch_init): Register always_use_struct_convention,
6680 instead of frv_use_struct_convention.
6681 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6682 (h8300_gdbarch_init): Register always_use_struct_convention,
6683 instead of h8300_use_struct_convention.
6684 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6685 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6686 instead of mips_o32_use_struct_convention.
6687
6688 2003-06-12 Andrew Cagney <cagney@redhat.com>
6689
6690 * wince.c: Include "mips-tdep.h".
6691 * mips-tdep.h (mips_next_pc): Declare.
6692 * mcore-tdep.c: Make more local functions static.
6693 * Makefile.in (wince.o): Update dependencies.
6694
6695 2003-06-12 David Carlton <carlton@kealia.com>
6696
6697 * symtab.c (lookup_symbol_aux_minsyms): Replace
6698 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6699 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6700 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6701 SYMBOL_NATURAL_NAME.
6702
6703 2003-06-12 Andreas Schwab <schwab@suse.de>
6704
6705 * Makefile.in (tuiDisassem.o): Update dependencies.
6706
6707 2003-06-12 David Carlton <carlton@bactrian.org>
6708
6709 * symtab.h: Delete declaration of make_symbol_overload_list.
6710 Add declaration of lookup_partial_symbol.
6711 * symtab.c (remove_params): Move to cp-support.c.
6712 (overload_list_add_symbol, make_symbol_overload_list)
6713 (sym_return_val_size, sym_return_val_index): Ditto.
6714 (lookup_partial_symbol): Make extern.
6715 * cp-support.h: Add declaration of make_symbol_overload_list.
6716 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6717 symtab.h, and block.h.
6718 (remove_params): Move here from symtab.c.
6719 (overload_list_add_symbol, make_symbol_overload_list)
6720 (sym_return_val_size, sym_return_val_index): Ditto.
6721 * valops.c: Include cp-support.h.
6722 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6723 frame_h, and block_h.
6724 (valops.o): Depend on cp_support_h.
6725
6726 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6727
6728 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6729 substitute by NUM_REGS throughout.
6730 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6731 (h8300s_register_name): New function for H8S registers.
6732 (h8300sx_register_name): Ditto for H8SX registers.
6733 (h8300_print_register): Revise register printing, avoid depending
6734 on 32 bit long.
6735 (h8300_register_byte): Only care for H8/300 registers.
6736 (h8300h_register_byte): New function for any other architecture.
6737 (h8300_register_raw_size): Remove.
6738 (h8300_register_virtual_type): Revise to return actually useful
6739 type.
6740 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6741 (h8300h_extract_struct_value_address): New function for any other
6742 architecture.
6743 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6744 set_gdbarch_register_name, set_gdbarch_register_byte,
6745 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6746 Remove calls to set_gdbarch_deprecated_register_size,
6747 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6748 set_gdbarch_deprecated_max_register_raw_size,
6749 set_gdbarch_register_virtual_size and
6750 set_gdbarch_deprecated_max_register_virtual_size entirely.
6751 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6752 set_gdbarch_long_double_bit.
6753
6754 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6755
6756 * doublest.c (convert_doublest_to_floatformat): When dealing
6757 with the implied integer bit, only alter mant_bits if we are
6758 processing a full 32 bits of mantissa.
6759
6760 2003-06-11 David Carlton <carlton@bactrian.org>
6761
6762 * dictionary.h: New.
6763 * dictionary.c: New.
6764 * block.h: Add opaque declaration for struct dictionary.
6765 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6766 'sym' members.
6767 (BLOCK_DICT): New macro.
6768 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6769 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6770 BLOCK_SHOULD_SORT.
6771 (ALL_BLOCK_SYMBOLS): Update definition.
6772 * Makefile.in (SFILES): Add dictionary.c.
6773 (dictionary_h): New.
6774 (COMMON_OBS): Add dictionary.o.
6775 (dictionary.o): New.
6776 (ada-lang.o): Depend on dictionary_h.
6777 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6778 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6779 (mi-cmd-stack.o): Ditto.
6780 (gdbtk-cmds.o): Update dependencies.
6781 (gdbtk-stack.o): Ditto.
6782 * ada-lang.c: Include dictionary.h.
6783 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6784 (fill_in_ada_prototype, debug_print_block): Ditto.
6785 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6786 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6787 'is_sorted'.
6788 * mdebugread.c: Include dictionary.h.
6789 (struct parse_stack): Delete 'maxsyms' member.
6790 (parse_symbol): Update calls to new_block. Delete calls to
6791 shrink_block. Use dictionary methods.
6792 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6793 Update calls to new_symtab. Don't maintain maxsyms data.
6794 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6795 (add_symbol): Just call dict_add_symbol.
6796 (new_symtab): Delete 'maxsyms' argument.
6797 (new_symtab): Update calls to new_block.
6798 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6799 (shrink_block): Delete function.
6800 (fixup_sigtramp): Update call to new_block. Add symbol via
6801 dict_add_symbol.
6802 * jv-lang.c: Include dictionary.h.
6803 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6804 appropriately. Set class_symtab->free_func. Make sure the
6805 blockvector is big enough to hold two blocks.
6806 (add_class_symtab_symbol): Use dictionary methods.
6807 (free_class_block): New function.
6808 (type_from_class): Replace explicit iteration by
6809 ALL_BLOCK_SYMBOLS.
6810 * symtab.h (struct symtab): Replace 'free_ptr' method by
6811 'free_func'.
6812 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6813 sort_symtab_syms.
6814 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6815 sort_symtab_syms.
6816 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6817 Include dictionary.h.
6818 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6819 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6820 sort_symtab_syms.
6821 * objfiles.c: Include dictionary.h.
6822 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6823 * buildsym.c: Include dictionary.h.
6824 (finish_block): Use dictionary methods.
6825 (end_symtab): Set free_func to NULL, not free_ptr.
6826 * tracepoint.c: Include dictionary.h.
6827 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6828 (scope_info): Ditto.
6829 * stack.c: Include dictionary.h.
6830 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6831 (print_block_frame_labels, print_frame_arg_vars)
6832 (print_frame_args): Ditto.
6833 * symmisc.c (free_symtab_block): Use dictionary methods.
6834 (dump_symtab): Ditto.
6835 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6836 Include dictionary.h.
6837 * symfile.h: Delete declarations of sort_block_syms,
6838 sort_symtab_syms.
6839 * symfile.c (sort_block_syms): Delete.
6840 (sort_symtab_syms): Delete.
6841 * symtab.c: Include dictionary.h.
6842 (lookup_block_symbol): Use dictionary iterators.
6843 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6844 (search_symbols, make_symbol_completion_list): Ditto.
6845 (make_symbol_overload_list): Ditto.
6846 * valops.c (value_of_local): Use dict_empty.
6847 Include dictionary.h.
6848
6849 2003-06-11 J. Brobecker <brobecker@gnat.com>
6850
6851 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6852
6853 2003-06-11 David Carlton <carlton@bactrian.org>
6854
6855 * block.h (BLOCK_SHOULD_SORT): Delete.
6856 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6857 blocks.
6858 * ada-lang.c (ada_add_block_symbols): Ditto.
6859 * symfile.c (sort_block_syms): Delete.
6860 (sort_symtab_syms): Ditto.
6861 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6862 declarations.
6863 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6864 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6865 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6866 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6867 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6868 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6869 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6870
6871 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6872
6873 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6874 bits to 128.
6875
6876 2003-06-11 Andrew Cagney <cagney@redhat.com>
6877
6878 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6879 REGISTER_CONVERTIBLE.
6880 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6881 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6882 * gdbarch.h, gdbarch.c: Re-generate.
6883 * arch-utils.h (deprecated_register_convertible_not): Rename
6884 generic_register_convertible_not.
6885 * arch-utils.c (deprecated_register_convertible_not): Rename
6886 generic_register_convertible.
6887 (legacy_convert_register_p, legacy_register_to_value): Update.
6888 * sh-tdep.c (sh64_push_arguments): Update.
6889 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6890 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6891 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6892 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6893 * arch-utils.c (legacy_value_to_register): Update.
6894 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6895 (rs6000_register_convert_to_raw): Make parameter "from" const.
6896 * mips-tdep.c (mips_gdbarch_init): Update.
6897 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6898 * infcmd.c (default_print_registers_info): Update.
6899 * ia64-tdep.c (ia64_gdbarch_init): Update.
6900 (ia64_register_convert_to_raw): Make parameter "from" const.
6901 * i386-tdep.c (i386_gdbarch_init): Update.
6902 (i386_register_convert_to_raw): Update.
6903
6904 2003-06-11 Andrew Cagney <cagney@redhat.com>
6905
6906 * remote-fileio.c: Include "remote-fileio.h".
6907 * Makefile.in (remote-fileio.o): Update dependencies.
6908 (remote_fileio_h): Fix typo.
6909
6910 2003-06-11 Andrew Cagney <cagney@redhat.com>
6911
6912 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6913 (xstormy16_save_dummy_frame_tos): Make static.
6914 (_initialize_xstormy16_tdep): Add declaration.
6915 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6916 * v850-tdep.c: Make local functions static.
6917 (_initialize_v850_tdep): Add declaration.
6918 * sparc-tdep.c: Make local functions static.
6919 (_initialize_sparc_tdep): Add declaration.
6920 * sh-tdep.c: Make local functions static.
6921 (_initialize_sh_tdep): Add declaration.
6922 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6923 * s390-tdep.c: Make local functions static.
6924 (_initialize_s390_tdep): Add declaration.
6925 * dbxread.c (find_stab_function_addr): Make static.
6926 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6927 * ocd.c (_initialize_remote_ocd): Add declaration.
6928 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6929 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6930 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6931 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6932 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6933 * remote-array.c (_initialize_array): Add declaration.
6934 (_initialize_remote_monitors): Add declaration.
6935 * remote-mips.c: Make local functions static.
6936 (_initialize_remote_mips): Add declaration.
6937 * mcore-tdep.c: Make all local functions static.
6938 (_initialize_mcore_tdep): Add declaration.
6939 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6940 * abug-rom.c (_initialize_abug_rom): Add declaration.
6941 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6942 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6943 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6944 * remote-est.c (_initialize_est): Add declaration.
6945 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6946 (m68hc11_call_dummy_address): Make static.
6947 * ia64-tdep.c: Make local functions static.
6948 (_initialize_ia64_tdep): Add declaration.
6949 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6950 * monitor.c (monitor_wait_filter): Make static.
6951 (_initialize_remote_monitors): Add declaration.
6952 * remote-hms.c (_initialize_remote_hms): Add declaration.
6953 * remote-e7000.c (fetch_regs_from_dump): Make static.
6954 (expect_n): Make static.
6955 (_initialize_remote_e7000): Add declaration.
6956 * ser-e7kpc.c: Always include "defs.h".
6957 (_initialize_ser_e7000pc): Add declaration.
6958 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6959 * cris-tdep.c: Make all but one function static.
6960 (_initialize_cris_tdep): Add declaration.
6961 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6962 * solib.c (update_solib_list): Make static.
6963 (_initialize_solib): Add declaration.
6964 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6965 (_initialize_avr_tdep): Add declaration.
6966 * remote-rdi.c (voiddummy): Make static.
6967 (_initialize_remote_rdi): Add declaration.
6968 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6969 * remote-rdp.c (send_rdp): Make static.
6970 (_initialize_remote_rdp): Add declaration.
6971 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6972
6973 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6974
6975 * remote-fileio.c: Make ari happy.
6976
6977 2003-06-10 J. Brobecker <brobecker@gnat.com>
6978
6979 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6980 fetching the trailing bytes of the buffer we are about to write.
6981
6982 2003-06-10 Andrew Cagney <cagney@redhat.com>
6983
6984 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6985 * Makefile.in (remote-fileio.o): Update dependencies.
6986 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6987 include <setjmp.h>, or <sys/types.h> conditional on USG.
6988 (remote_fio_jmp_buf): Delete global variable.
6989
6990 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6991 Martin M. Hunt <hunt@redhat.com>
6992
6993 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6994 (SFILES): Add remote-fileio.c.
6995 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6996 dependencies for building remote.o.
6997 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6998 * remote-fileio.h: New header file defining remote File-I/O interface.
6999 * remote.c (remote_write_bytes, remote_read_bytes): Remove
7000 static storage class.
7001 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7002 'F' packet.
7003 (_initialize_remote): Call initialize_remote_fileio().
7004 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7005 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7006 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7007 (captured_main): Initialize new ui_files.
7008 * ui-file.c: Add read and fgets input functions.
7009 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7010 (null_file_read): New function.
7011 (ui_file_read): New function.
7012 (set_ui_file_read): New function.
7013 (stdio_file_read): New function.
7014 * ui-file.h: New type ui_file_read_ftype.
7015 (set_ui_file_read): Declare.
7016 (ui_file_read): Declare.
7017
7018 2003-06-09 Andrew Cagney <cagney@redhat.com>
7019
7020 * frame.h (deprecated_unwind_get_saved_register): Rename
7021 generic_unwind_get_saved_register, update comments.
7022 * mips-tdep.c (mips_get_saved_register): Update.
7023 * frame.c (deprecated_unwind_get_saved_register): Update.
7024
7025 2003-06-09 Andrew Cagney <cagney@redhat.com>
7026
7027 * vax-tdep.c (vax_frame_locals_address): Delete function.
7028 (vax_gdbarch_init): Do not set frame_locals_address.
7029 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7030 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7031 * s390-tdep.c (s390_frame_args_address): Delete function.
7032 (s390_gdbarch_init): Do not set frame_args_address or
7033 frame_locals_address.
7034 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7035 (ns32k_gdbarch_init): Do not set frame_locals_address.
7036 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7037 (hppa_frame_locals_address): Delete function.
7038 (hppa_gdbarch_init): Do not set frame_args_address, or
7039 frame_locals_address.
7040 * arm-tdep.c (arm_frame_args_address): Delete.
7041 (arm_frame_locals_address): Delete.
7042 (arm_gdbarch_init): Do not set frame_args_address, or
7043 frame_locals_address.
7044
7045 2003-06-09 Andrew Cagney <cagney@redhat.com>
7046
7047 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7048 * gdbarch.h, gdbarch.c: Re-generate.
7049 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7050 * arch-utils.c (frame_num_args_unknown): Delete function.
7051 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7052 (frame_info): Use FRAME_NUM_ARGS_P.
7053 * arm-tdep.c (arm_frame_num_args): Delete function.
7054 (arm_gdbarch_init): Do not set frame_num_args.
7055 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7056 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7057 (hppa_gdbarch_init): Do not set frame_num_args.
7058 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7060 frame_num_args to default frame_num_args_unknown.
7061 * v850-tdep.c (v850_gdbarch_init): Ditto.
7062 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7063 * sh-tdep.c (sh_gdbarch_init): Ditto.
7064 * s390-tdep.c (s390_gdbarch_init): Ditto.
7065 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7066 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7067 * mips-tdep.c (mips_gdbarch_init): Ditto.
7068 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7069 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7071 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7072 * i386-tdep.c (i386_gdbarch_init): Ditto.
7073 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7074 * frv-tdep.c (frv_gdbarch_init): Ditto.
7075 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7076 * cris-tdep.c (cris_gdbarch_init): Ditto.
7077 * avr-tdep.c (avr_gdbarch_init): Ditto.
7078 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7079
7080 2003-06-09 Andrew Cagney <cagney@redhat.com>
7081
7082 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7083 (print_frame_args): Moved to "stack.c".
7084 * stack.c: Include "gdb_assert.h".
7085 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7086 (print_frame_args): Moved from "printcmd.c".
7087 * frame.h (print_frame_args): Delete declaration.
7088 * Makefile.in (stack.o): Update dependencies.
7089
7090 2003-06-08 Andrew Cagney <cagney@redhat.com>
7091
7092 * frame.c (get_prev_frame): Remove reference to
7093 frame_args_address_correct in comments.
7094 * frame-base.c (default_frame_args_address): Delete code
7095 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7096 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7097 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7098 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7099 (vax_frame_args_address_correct): Delete declaration.
7100
7101 2003-06-08 Andrew Cagney <cagney@redhat.com>
7102
7103 * gdbarch.sh (UNWIND_SP): Add.
7104 * gdbarch.h, gdbarch.c: Re-generate.
7105 * frame.c (frame_sp_unwind): New function.
7106 (get_frame_sp): New function.
7107 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7108 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7109 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7110 value.
7111 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7112 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7113
7114 2003-06-08 Andrew Cagney <cagney@redhat.com>
7115
7116 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7117 REMOTE_BREAKPOINT.
7118 * remote.c: Update.
7119 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7120 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7121 * config/m68k/tm-sun3.h: Update.
7122 * config/m68k/tm-m68klynx.h: Update.
7123 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7124
7125 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7126 trad_frame". Update comments.
7127 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7128 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7129 (trad_frame_register_value, trad_frame_prev_register): Update.
7130
7131 2003-06-08 Andrew Cagney <cagney@redhat.com>
7132
7133 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7134 from GCC's acinclude.m4.
7135 * configure.in: Check for getopt's delcaration.
7136 * aclocal.m4, config.in, configure: Re-generate.
7137 * main.c (error_init): Delete declaration.
7138 * defs.h (error_init): Declare.
7139 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7140 (rs6000_convert_from_func_ptr_addr): Make static.
7141 (_initialize_rs6000_tdep): Add declaration.
7142 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7143 (show_commands, set_verbose, show_history): Delete declaration.
7144 * top.h (set_verbose): Add declaration.
7145 (show_history, set_history, show_commands): Add declaration.
7146 (do_restore_instream_cleanup): Add declaration.
7147 * objc-lang.c (specialcmp): Make static.
7148 (print_object_command): Make static.
7149 (find_objc_msgsend): Make static.
7150 (find_objc_msgcall_submethod_helper): Make static.
7151 (find_objc_msgcall_submethod): Make static.
7152 (_initialize_objc_language): Add declaration.
7153 (find_implementation_from_class): Make static.
7154 (find_implementation): Make static.
7155 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7156 * objc-lang.h (lookup_struct_typedef): Add declaration.
7157 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7158 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7159 (do_restore_user_call_depth): Make static.
7160 (do_restore_instream_cleanup): Delete declaration.
7161 (dont_repeat): Delete declaration.
7162 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7163 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7164 * reggroups.c (_initialize_reggroup): Add declaration.
7165 * cp-support.c (_initialize_cp_support): Add declaration.
7166 * cp-abi.c (_initialize_cp_abi): Add declaration.
7167 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7168 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7169 (_initialize_gnu_v3_abi): Add declaration.
7170 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7171 (_initialize_gnu_v2_abi): Add declaration.
7172 * frame-base.c (_initialize_frame_base): Add declaration.
7173 * doublest.c (floatformat_from_length): Make static.
7174 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7175 * frame.c (create_sentinel_frame): Make static.
7176 (_initialize_frame): Add declaration.
7177 * top.c (do_catch_errors): Make static.
7178 (gdb_rl_operate_and_get_next_completion): Make static.
7179 * typeprint.c: Include "typeprint.h".
7180 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7181 (sentinel_frame_this_id): Make static.
7182 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7183 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7184 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7185 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7186 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7187 * maint.c (maintenance_print_architecture): Make static.
7188 * signals/signals.c (_initialize_signals): Add declaration.
7189 * std-regs.c (_initialize_frame_reg): Add declaration.
7190 * jv-exp.y (push_variable): ISO C definition.
7191 (push_qualified_expression_name): Ditto.
7192 * memattr.c (_initialize_mem): Add declaration.
7193 * remote.c (remote_check_watch_resources): Make static.
7194 (remote_stopped_by_watchpoint): Make static.
7195 (remote_stopped_data_address): Make static.
7196 * d10v-tdep.c (nr_dmap_regs): Make static.
7197 (a0_regnum): Make static.
7198 (d10v_frame_unwind_cache): Make static.
7199 (d10v_frame_p): Make static.
7200 * osabi.c (show_osabi): Make static.
7201 (_initialize_gdb_osabi): Add extern declaration.
7202 * gdbtypes.c (make_qualified_type): Make static.
7203 (safe_parse_type): Make static.
7204 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7205 * macrotab.c (macro_bcache_free): Make static.
7206 * interps.c (interp_set_quiet): Make static.
7207 (interpreter_exec_cmd): Make static.
7208 * stack.h (select_frame_command): New file.
7209 * stack.c: Include "stack.h".
7210 (select_frame_command_wrapper): Delete function.
7211 (select_frame_command): Make global.
7212 * infcall.c: Include "infcall.h".
7213 * linespec.c: Include "linespec.h".
7214 * symfile.c (sections_overlap): Make static.
7215 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7216 * charset.c (_initialize_charset): Add missing prototype.
7217 * regcache.c (init_legacy_regcache_descr): Make static.
7218 (do_regcache_xfree): Make static.
7219 (regcache_xfer_part): Make static.
7220 (_initialize_regcache): Add missing prototype.
7221 * breakpoint.c (parse_breakpoint_sals): Make static.
7222 (breakpoint_sals_to_pc): Make static.
7223 * interps.h (clear_interpreter_hooks): ISO C declaration.
7224 * Makefile.in (stack_h): Define.
7225 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7226 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7227
7228 2003-06-08 Andrew Cagney <cagney@redhat.com>
7229
7230 * Makefile.in (d10v-tdep.o): Update dependencies.
7231 (SFILES): Add trad-frame.c.
7232 (trad_frame_h): Define.
7233 (COMMON_OBS): Add trad-frame.o.
7234 (trad-frame.o): Specify dependencies.
7235 * d10v-tdep.c: Include "trad-frame.h".
7236 (saved_regs_unwinder): Delete function.
7237 (d10v_frame_prev_register): Use trad_frame_prev_register.
7238 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7239 trad_frame", delete "regs" and "prev_sp".
7240 (prologue_find_regs): Use trad-frame.
7241 * trad-frame.h, trad-frame.c: New files.
7242
7243 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7244
7245 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7246
7247 2003-06-07 Adam Fedor <fedor@gnu.org>
7248
7249 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7250 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7251 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7252 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7253 resolve_msgsend_super, resolve_msgsend_super_stret):
7254 Use it.
7255
7256 2003-06-07 Andrew Cagney <cagney@redhat.com>
7257
7258 * symfile.h: Re-indent, clean up comments.
7259
7260 2003-06-07 Andrew Cagney <cagney@redhat.com>
7261
7262 * inferior.h (deprecated_write_sp): Replace
7263 generic_target_write_sp.
7264 * regcache.c (deprecated_write_sp): Replace
7265 generic_target_write_sp.
7266 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7267 * vax-tdep.c (vax_gdbarch_init): Update.
7268 * v850-tdep.c (v850_gdbarch_init): Update.
7269 * sparc-tdep.c (sparc_gdbarch_init): Update.
7270 * sh-tdep.c (sh_gdbarch_init): Update.
7271 * s390-tdep.c (s390_gdbarch_init): Update.
7272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7275 * mcore-tdep.c (mcore_gdbarch_init): Update.
7276 * m68k-tdep.c (m68k_gdbarch_init): Update.
7277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7278 * ia64-tdep.c (ia64_gdbarch_init): Update.
7279 * h8300-tdep.c (h8300_gdbarch_init): Update.
7280 * frv-tdep.c (frv_gdbarch_init): Update.
7281 * cris-tdep.c (cris_gdbarch_init): Update.
7282 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7283
7284 2003-06-07 Andrew Cagney <cagney@redhat.com>
7285
7286 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7287 Assert that PC_REGNUM is valid.
7288 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7289
7290 2003-06-07 Andrew Cagney <cagney@redhat.com>
7291
7292 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7293 * gdbarch.h, gdbarch.c: Regenerate.
7294 * mn10300-tdep.c: Include "gdb_assert.h".
7295 (mn10300_read_fp): New function.
7296 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7297 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7298 * ia64-tdep.c: Include "gdb_assert.h".
7299 (ia64_read_fp): New function.
7300 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7301 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7302 * regcache.c (generic_target_read_sp): Delete function.
7303 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7304 * inferior.h (generic_target_read_sp): Delete declaration.
7305 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7306 generic_target_read_sp.
7307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7308 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7309 * sh-tdep.c (sh_gdbarch_init): Ditto.
7310 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7311 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7312
7313 2003-06-07 Andrew Cagney <cagney@redhat.com>
7314
7315 * gdbarch.sh: Comment each field of startup_gdbarch.
7316 * gdbarch.h, gdbarch.c: Re-generate.
7317
7318 2003-06-07 Andrew Cagney <cagney@redhat.com>
7319
7320 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7321 * gdbarch.h, gdbarch.c: Re-generate.
7322 * regcache.c: Update comments on read_pc et.al.
7323 (generic_target_read_pc): Delete function.
7324 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7325 * inferior.h (generic_target_read_pc): Delete declaration.
7326 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7327 generic_target_read_pc.
7328 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7329 * sh-tdep.c (sh_gdbarch_init): Ditto.
7330 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7332
7333 2003-06-07 Andrew Cagney <cagney@redhat.com>
7334
7335 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7336 "index" with "special_local_sect". Use strcmp instead of STREQ.
7337 Append period to coments.
7338
7339 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7340
7341 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7342 (elfstab_offset_sections): Likewise.
7343 * gdb-stabs.h (stab_section_info): Likewise.
7344 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7345 * objfiles.c (objfile_relocate): Likewise.
7346 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7347 * remote.c (get_offsets): Likewise.
7348 (remote_cisco_objfile_relocate): Likewise.
7349 * somread.c (som_symfile_offsets): Likewise.
7350 * symfile.c (alloc_section_addr_info): New function.
7351 (build_section_addr_info_from_section_tab): Use it.
7352 (free_section_addr_info): Adjust.
7353 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7354 (syms_from_objfile): Allocate local_addr dynamically.
7355 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7356 dynamically.
7357 (add_symbol_file_command): Allocate sect_opts dynamically.
7358 (reread_symbols): Avoid use of SECT_OFF_MAX.
7359 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7360 (alloc_section_addr_info): Declare it.
7361 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7362 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7363 dynamically.
7364 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7365
7366 2003-06-06 Andrew Cagney <cagney@redhat.com>
7367
7368 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7369 (d10v_frame_unwind_cache): Do not set "return_pc".
7370
7371 2003-06-06 Michael Snyder <msnyder@redhat.com>
7372
7373 * h8300-tdep.c: Make tidy (long lines).
7374
7375 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7376
7377 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7378 to regcache_collect().
7379
7380 2003-06-05 J. Brobecker <brobecker@gnat.com>
7381
7382 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7383 pc_in_sigtramp multiarch method.
7384 (hppa_hpux_som_init_abi): Use it.
7385 (hppa_hpux_elf_init_abi): Likewise.
7386 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7387 macro has been multiarched.
7388 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7389 macro here, as hppa64 isn't multiarched yet.
7390
7391 2003-06-05 Andrew Cagney <cagney@redhat.com>
7392
7393 * Makefile.in (value_h): Add $(frame_h).
7394 * value.h: Include "frame.h".
7395 (struct value): Replace "frame_addr" with "frame_id".
7396 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7397 * values.c (allocate_value): Use VALUE_FRAME_ID.
7398 (value_copy): Use VALUE_FRAME_ID.
7399 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7400 * valops.c (value_assign): Update. Use frame_find_by_id.
7401
7402 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7403
7404 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7405 in each pass.
7406
7407 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7408
7409 * thread-db.c (check_event): For create/death event breakpoints,
7410 loop through all messages to ensure that we read the message
7411 corresponding to the breakpoint we are at.
7412
7413 2003-06-04 Michael Snyder <msnyder@redhat.com>
7414
7415 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7416
7417 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7418
7419 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7420 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7421 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7422 when handling .eh_frame sections.
7423
7424 2003-06-04 J. Brobecker <brobecker@gnat.com>
7425
7426 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7427 prepare_to_proceed procedure instead of the hppa-specific one.
7428 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7429
7430 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7431
7432 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7433 * config.in: Regenerated.
7434 * configure.in: Add test for syscall function and check for
7435 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7436 * configure: Regenerated.
7437 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7438 <sys/syscall.h>.
7439 (kill_lwp): New function that uses tkill syscall or
7440 uses kill, depending on whether threading model is nptl or not.
7441 All callers of kill() changed to use kill_lwp().
7442 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7443 see if all threads have already exited in the nptl model.
7444 (stop_and_resume_callback): New callback function used by the
7445 lin_lwp_wait thread exit handling code.
7446 (stop_wait_callback): Check for threads already having exited and
7447 delete such threads fromt the lwp list when discovered.
7448 (stop_callback): Don't assert retcode of kill call.
7449
7450 Roland McGrath <roland@redhat.com>
7451 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7452 nptl libthread_db.
7453
7454 2003-06-03 Richard Henderson <rth@redhat.com>
7455
7456 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7457 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7458 (alpha_sigtramp_frame_prev_register): Likewise.
7459 (alpha_heuristic_frame_prev_register): Likewise.
7460 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7461
7462 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7463 alpha-specific register id names.
7464 (alpha_mdebug_frame_unwind_cache): Likewise.
7465 (alpha_mdebug_frame_prev_register): Likewise.
7466
7467 2003-06-03 Richard Henderson <rth@redhat.com>
7468
7469 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7470 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7471 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7472 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7473 unwind routines.
7474 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7475 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7476 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7477
7478 * alpha-linux-tdep.c: Remove unnecessary includes.
7479 * Makefile.in (alpha-linux-tdep.o): Update.
7480
7481 2003-06-03 Richard Henderson <rth@redhat.com>
7482
7483 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7484 (alphabsd_fill_fpreg): Likewise.
7485
7486 2003-06-03 J. Brobecker <brobecker@gnat.com>
7487
7488 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7489 references to struct frame_info fields by calls to the equivalent
7490 accessors. Necessary now that frame_info is opaque.
7491
7492 2003-06-03 J. Brobecker <brobecker@gnat.com>
7493
7494 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7495 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7496 structure, field no longer exists.
7497
7498 2003-06-03 J. Brobecker <brobecker@gnat.com>
7499
7500 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7501 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7502
7503 2003-06-03 J. Brobecker <brobecker@gnat.com>
7504
7505 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7506 references to struct frame_info fields by calls to the equivalent
7507 accessors. Necessary now that frame_info is opaque.
7508
7509 2003-06-03 J. Brobecker <brobecker@gnat.com>
7510
7511 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7512 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7513 structure, field no longer exists.
7514
7515 2003-06-03 Theodore A. Roth <troth@openavr.org>
7516
7517 * remote.c (init_remote_state): Compute sizeof_g_packet by
7518 accumulation of the size of all registers instead of blindly using
7519 DEPRECATED_REGISTER_BYTES.
7520
7521 2003-06-03 Michael Snyder <msnyder@redhat.com>
7522
7523 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7524 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7525 for h8300sx.
7526
7527 2003-06-03 J. Brobecker <brobecker@gnat.com>
7528
7529 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7530 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7531
7532 2003-06-03 Andrew Cagney <cagney@redhat.com>
7533
7534 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7535 (sparc_convert_to_raw): Delete function.
7536 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7537 register_convert_to_virtual.
7538
7539 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7540
7541 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7542 layer if not dealing with a statically-linked threaded program.
7543
7544 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7545
7546 * solib.c (solib_open): Update comment to reflect actual search order.
7547
7548 2003-06-03 Andrew Cagney <cagney@redhat.com>
7549
7550 * frame.c (get_frame_memory_signed): New function.
7551 (get_frame_memory, get_frame_memory_unsigned): New function.
7552 (get_frame_arch): New function.
7553 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7554 (get_frame_memory, get_frame_unsigned_memory): Declare.
7555 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7556 get_frame_memory_unsigned and get_frame_arch.
7557 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7558
7559 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7560
7561 * MAINTAINERS (write after approval): Add myself.
7562
7563 2003-06-03 Jim Blandy <jimb@redhat.com>
7564
7565 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7566 elements of gregset_t are 64 bits each, but access registers
7567 are still 32 bits, so they're packed two per gregset_t
7568 element. Unpack/pack them properly.
7569
7570 2003-06-02 David Carlton <carlton@bactrian.org>
7571
7572 * linespec.c (find_methods): Break out code into
7573 add_matching_methods and add_constructors.
7574 (add_matching_methods): New.
7575 (add_constructors): Ditto.
7576
7577 2003-06-02 Andrew Cagney <cagney@redhat.com>
7578
7579 * sparc-tdep.c (sparc_print_registers): Delete call to
7580 REGISTER_CONVERTIBLE.
7581 (sparc_gdbarch_init): Do not set register_convertible.
7582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7583 * frv-tdep.c (frv_gdbarch_init): Ditto.
7584 * cris-tdep.c (cris_gdbarch_init): Ditto.
7585
7586 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7587
7588 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7589 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7590 (syms_from_objfile): Ditto.
7591
7592 2003-06-03 Andreas Schwab <schwab@suse.de>
7593
7594 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7595 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7596
7597 2003-06-02 Richard Henderson <rth@redhat.com>
7598
7599 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7600 a member of all_reggroup.
7601
7602 2003-06-02 Richard Henderson <rth@redhat.com>
7603
7604 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7605 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7606 (alpha_lds, alpha_sts): New.
7607 (alpha_convert_register_p): Change from _register_convertible.
7608 (alpha_register_to_value): Change from _convert_to_virtual;
7609 restructure and fail for type sizes other than 4 or 8.
7610 (alpha_value_to_register): Similarly.
7611 (alpha_extract_return_value): Use alpha_sts.
7612 (alpha_store_return_value): Use alpha_lds.
7613 (alpha_gdbarch_init): Update hooks.
7614
7615 2003-06-02 Richard Henderson <rth@redhat.com>
7616
7617 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7618 regnum identifiers.
7619 (alpha_sigtramp_register_address): Likewise.
7620
7621 2003-06-02 Richard Henderson <rth@redhat.com>
7622
7623 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7624 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7625 * alpha-tdep.h: Declare them.
7626
7627 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7628 Remove zerobuf. Don't error on UNIQUE.
7629 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7630 (ALPHA_REGSET_UNIQUE): Provide default.
7631 (supply_gregset): Use alpha_supply_int_regs.
7632 (fill_gregset): Use alpha_fill_int_regs.
7633 (supply_fpregset): Use alpha_supply_fp_regs.
7634 (fill_fpregset): Use alpha_fill_fp_regs.
7635 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7636 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7637 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7638 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7639 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7640 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7641
7642 2003-06-02 Richard Henderson <rth@redhat.com>
7643
7644 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7645
7646 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7647 (alpha_store_return_value): Likewise.
7648
7649 2003-06-02 David Carlton <carlton@math.stanford.edu>
7650
7651 * block.c (contained_in): Add 'const' to arguments.
7652 (block_function): Ditto.
7653 * block.h: Update declarations for block_function and
7654 contained_in.
7655
7656 2003-06-02 David Carlton <carlton@math.stanford.edu>
7657
7658 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7659 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7660 * p-valprint.c (pascal_val_print): Ditto.
7661 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7662
7663 2003-06-02 Richard Henderson <rth@redhat.com>
7664
7665 * alpha-tdep.c (alpha_push_dummy_call): Use
7666 builtin_type_ieee_double_little instead of builtin_type_double.
7667
7668 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7669 sign-extension of 32-bit values.
7670 (alpha_store_return_value): Similarly.
7671
7672 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7673 (alpha_extract_return_value): Likewise.
7674 (alpha_store_return_value): Likewise.
7675
7676 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7677 (alpha_store_return_value): Error on IEEE Quad floats.
7678
7679 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7680 (alpha_extract_struct_value_address): Likewise.
7681 (alpha_store_return_value): Likewise.
7682 (alpha_store_struct_return): Remove.
7683 (alpha_gdbarch_init): Update hook registration to match.
7684
7685 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7686 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7687 macros where appropriate.
7688 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7689 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7690
7691 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7692 for SP, GP; void_func_ptr for PC; non-language-specific types
7693 for all others.
7694 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7695
7696 2003-06-02 Richard Henderson <rth@redhat.com>
7697
7698 * top.h (lim_at_start): Declare.
7699 * main.c (captured_main): Set it.
7700 * top.c (lim_at_start): Define.
7701 (command_loop): Use it instead of &environ.
7702 * event-top.c (command_handler): Likewise.
7703
7704 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7705
7706 * mipsnbsd-tdep.c: Update copyright years.
7707 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7708
7709 2003-06-01 Richard Henderson <rth@redhat.com>
7710
7711 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7712 (alpha-linux-tdep.o): Update dependencies.
7713 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7714 * alpha-mdebug-tdep.c: Remove unneeded includes.
7715
7716 2003-06-01 Richard Henderson <rth@redhat.com>
7717
7718 * alpha-tdep.c (alpha_register_reggroup_p): New.
7719 (alpha_gdbarch_init): Register it.
7720
7721 2003-06-02 Andrew Cagney <cagney@redhat.com>
7722
7723 * dwarfread.c: Eliminate "register"
7724 (decode_die_type): Eliminate assignment within "if".
7725 (struct_type, decode_array_element_type): Ditto.
7726 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7727 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7728 (decode_modified_type, completedieinfo): Ditto.
7729 * block.c: Eliminate "register".
7730 (blockvector_for_pc_sect): Eliminate assignment within "if".
7731 * cp-support.h (struct symbol): Opaque declaration.
7732 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7733
7734 2003-06-01 Richard Henderson <rth@redhat.com>
7735
7736 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7737 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7738
7739 2003-06-01 Adam Fedor <fedor@gnu.org>
7740
7741 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7742 * gdbarch.[ch]: Regenerate.
7743 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7744 (hppa_gdbarch_init): Set it in the gdbarch vector.
7745 * i386-tdep.c (i386_fetch_pointer_argument): New
7746 (i386_gdbarch_init): Set it into gdbarch.
7747 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7748 (rs6000_gdbarch_init): Set it in gdbarch.
7749 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7750 (sparc_gdbarch_init): Set it in gdbarch.
7751
7752 2003-06-01 Andrew Cagney <cagney@redhat.com>
7753
7754 * defs.h (extract_address): Delete declaration.
7755 * findvar.c (extract_address): Delete function.
7756 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7757 extract_address with the inline equivalent,
7758 extract_unsigned_integer.
7759 (xstormy16_extract_struct_value_address): Ditto.
7760 (xstormy16_pointer_to_address): Ditto.
7761 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7762 * v850-tdep.c (v850_push_arguments): Ditto.
7763 (v850_extract_return_value): Ditto.
7764 (v850_extract_struct_value_address): Ditto.
7765 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7766 (sparcnbsd_get_longjmp_target_64): Ditto.
7767 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7768 (get_longjmp_target): Ditto.
7769 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7770 (sh64_extract_struct_value_address): Ditto.
7771 (sh_push_arguments): Ditto.
7772 (sh64_push_arguments): Ditto.
7773 * remote-vxsparc.c (vx_read_register): Ditto.
7774 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7775 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7776 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7777 * mipsv4-nat.c (get_longjmp_target): Ditto.
7778 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7779 * mips-nat.c (get_longjmp_target): Ditto.
7780 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7781 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7782 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7783 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7784 * irix5-nat.c (get_longjmp_target): Ditto.
7785 * irix4-nat.c (get_longjmp_target): Ditto.
7786 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7787 (ia64_push_arguments): Ditto.
7788 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7789 * h8300-tdep.c (h8300_push_arguments): Ditto.
7790 (h8300_store_return_value): Ditto.
7791 (h8300_extract_struct_value_address): Ditto.
7792 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7793 (frv_push_arguments): Ditto.
7794 * avr-tdep.c (avr_pointer_to_address): Ditto.
7795 (avr_push_arguments): Ditto.
7796 * arm-tdep.c (arm_push_dummy_call): Ditto.
7797 (arm_get_longjmp_target): Ditto.
7798 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7799 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7800 (alpha_get_longjmp_target): Ditto.
7801
7802 * solib-irix.c (extract_mips_address): Inline extract_address,
7803 replacing it with extract_signed_integer.
7804 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7805 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7806 (first_link_map_member, open_symbol_file_object): Ditto.
7807 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7808 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7809 (LM_NEXT, LM_NAME): Ditto.
7810
7811 2003-06-01 Richard Henderson <rth@redhat.com>
7812
7813 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7814 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7815 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7816 (alpha_cannot_store_register): Likewise.
7817 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7818 * alpha-nat.c (supply_gregset): Likewise.
7819 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7820
7821 2003-06-01 Andrew Cagney <cagney@redhat.com>
7822
7823 * infcall.c (call_function_by_hand): Update comment on
7824 DEPRECATED_DUMMY_WRITE_SP.
7825
7826 * mips-tdep.c (mips_gdbarch_init): Do not set
7827 deprecated_dummy_write_sp.
7828 (mips_eabi_push_dummy_call): Set the SP register.
7829 (mips_o64_push_dummy_call): Set the SP register.
7830 (mips_o32_push_dummy_call): Set the SP register.
7831 (mips_n32n64_push_dummy_call): Set the SP register.
7832
7833 2003-06-01 Richard Henderson <rth@redhat.com>
7834
7835 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7836 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7837 (supply_gregset): Likewise.
7838 * alpha-tdep.c (alpha_store_return_value): Likewise.
7839 (alpha_get_longjmp_target): Likewise.
7840 (alpha_register_name): Constify array.
7841 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7842 deprecated_register_size, deprecated_register_bytes,
7843 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7844 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7845 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7846
7847 2003-06-01 Richard Henderson <rth@redhat.com>
7848
7849 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7850 from arg_reg_buffer to regcache to avoid double conversion.
7851
7852 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7853
7854 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7855 SP_REGNUM.
7856 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7857 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7858
7859 2003-06-01 Richard Henderson <rth@redhat.com>
7860
7861 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7862 (decode_frame_entry): Set it. Skip FDE augmentation.
7863
7864 2003-06-01 Richard Henderson <rth@redhat.com>
7865
7866 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7867 not overlapping PC_REGNUM.
7868
7869 2003-06-01 Richard Henderson <rth@redhat.com>
7870
7871 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7872 alpha_push_arguments. Don't dump argument register data to
7873 the target stack. Fix float and 128-bit long double semantics.
7874 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7875 (alpha_fix_call_dummy): Remove.
7876 (alpha_call_dummy_words): Remove.
7877 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7878
7879 2003-06-01 Richard Henderson <rth@redhat.com>
7880
7881 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7882
7883 2003-06-01 Andrew Cagney <cagney@redhat.com>
7884
7885 * mips-tdep.c (is_mips16_addr): New function.
7886 (make_mips16_addr, unmake_mips16_addr): New functions.
7887 (pc_is_mips16, mips_fetch_instruction): Use.
7888 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7889 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7890 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7891 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7892 TARGET_MIPS.
7893 * config/mips/tm-mips.h: Update copyright.
7894 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7895 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7896 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7897 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7898 (TM_PRINT_INSN_MACH): Delete.
7899 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7900
7901 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7902 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7903 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7904 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7905 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7906 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7907 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7908 mips*-*-riscos* and mips*-*-sysv* onto mips.
7909 * config/mips/mips64.mt: New file.
7910 * config/mips/mips.mt: New file.
7911 * config/mips/littlemips.mt: Delete file.
7912 * config/mips/decstation.mt: Delete file.
7913 * config/mips/vr4300el.mt: Delete file.
7914 * config/mips/vr5000el.mt: Delete file.
7915 * config/mips/vr5000.mt: Delete file.
7916 * config/mips/vr4100.mt: Delete file.
7917 * config/mips/vr4xxxel.mt: Delete file.
7918 * config/mips/vr4300.mt: Delete file.
7919 * config/mips/vr4xxx.mt: Delete file.
7920 * config/mips/bigmips.mt: Delete file.
7921 * config/mips/bigmips64.mt: Delete file.
7922 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7923 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7924 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7925 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7926 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7927 "tm-bigmips.h".
7928 * config/mips/tm-irix3.h: Ditto.
7929 * config/mips/tm-mipsv4.h: Ditto.
7930 * config/mips/tm-embed.h: Ditto.
7931 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7932 "tm-bigmips64.h".
7933 * config/mips/tm-vr5000el.h: Delete file.
7934 * config/mips/tm-tx39l.h: Delete file.
7935 * config/mips/tm-vr4300el.h: Delete file.
7936 * config/mips/tm-vr4xxxel.h: Delete file.
7937 * config/mips/tm-vr4300.h: Delete file.
7938 * config/mips/tm-vr4100.h: Delete file.
7939 * config/mips/tm-vr4xxx.h: Delete file.
7940 * config/mips/tm-vr5000.h: Delete file.
7941 * config/mips/tm-embedl64.h: Delete file.
7942 * config/mips/tm-embedl.h: Delete file.
7943 * config/mips/tm-embed64.h: Delete file.
7944 * config/mips/tm-bigmips64.h: Delete file.
7945 * config/mips/tm-bigmips.h: Delete file.
7946
7947 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7948
7949 Fix gdb/1216.
7950 * shnbsd-nat.c: Include "sh-tdep.h".
7951
7952 From Richard Henderson <rth@redhat.com>:
7953 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7954
7955 2003-05-31 Andrew Cagney <cagney@redhat.com>
7956
7957 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7958 forward declaration.
7959 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7960 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7961 (mips_find_saved_regs): Use set_reg_offset.
7962 (mips_frame_init_saved_regs): Delete function.
7963 (mips_pop_frame): Call mips_find_saved_regs instead of
7964 DEPRECATED_FRAME_INIT_SAVED_REGS.
7965
7966 2003-05-31 Andrew Cagney <cagney@redhat.com>
7967
7968 * mips-tdep.c (mips_gdbarch_init): Do not set
7969 deprecated_max_register_raw_size, register_virtual_size, and
7970 deprecated_max_register_virtual_size.
7971
7972 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7973
7974 * i386-tdep.c: Include "dwarf2-frame.h".
7975 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7976 * Makefile.in (i386-tdep.o): Update dependencies.
7977
7978 * dwarf2-frame.c, dwarf2-frame.h: New files.
7979 * Makefile.in (SFILES): Add dwarf2-frame.c.
7980 (dwarf2_frame_h): Define.
7981 (COMMON_OBS): Add dwarf2-frame.o.
7982 (dwarf2-frame.o): Add dependencies.
7983
7984 2003-05-31 Andreas Jaeger <aj@suse.de>
7985
7986 * x86-64-linux-nat.c: Fix comment.
7987
7988 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7989
7990 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7991 function signature.
7992
7993 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7994 have a sigcontext_addr handler.
7995 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7996 sigcontext_addr handler.
7997
7998 2003-05-31 Andrew Cagney <cagney@redhat.com>
7999
8000 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8001 (print_fp_register_row): Replace do_fp_register_row.
8002 (mips_print_fp_register): Add "file" and "frame" parameters.
8003 (mips_print_register): Add "file" and "frame" parameters.
8004 (mips_print_registers_info): Replace mips_do_registers_info.
8005 (mips_gdbarch_init): Set print_registers_info instead of
8006 deprecated_do_registers_info.
8007 (mips_read_fp_register_single): Add "frame" parameter.
8008 (mips_read_fp_register_double): Add "frame" parameter.
8009
8010 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8011
8012 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8013 Fixes a bug where GDB would print the wrong register names for
8014 targets without SSE.
8015
8016 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8017 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8018 registers.
8019
8020 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8021 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8022 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8023 TDEP->sc_sp_offset.
8024
8025 From Michal Ludvig <mludvig@suse.cz>:
8026 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8027 and `sc_num_regs'.
8028 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8029 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8030 I386_ST0_REGNUM): Move here from...
8031 * i386-tdep.c: ... here.
8032 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8033 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8034 registers if possible.
8035 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8036 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8037 Remove variables.
8038 (i386bsd_sc_reg_offset): New variable.
8039 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8040 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8041 TDEP->sc_sp_offset.
8042 (i386fbsd_sc_reg_offset): New variable.
8043 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8044 TDEP->sc_num_regs.
8045 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8046 variables.
8047 (i386fbsd4_sc_reg_offset): New variable.
8048 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8049 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8050 TDEP->sc_sp_offset.
8051 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8052 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8053 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8054 Remove variables.
8055 (i386nbsd_sc_reg_offset): New variable.
8056 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8057 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8058 TDEP->sc_sp_offset.
8059 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8060 Remove variables.
8061 (i386obsd_sc_reg_offset): New variable.
8062 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8063 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8064 TDEP->sc_sp_offset.
8065 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8066 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8067 for frame pointer offset in `struct sigcontext'.
8068
8069 2003-05-31 Andrew Cagney <cagney@redhat.com>
8070
8071 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8072 architecture methods call_dummy_words, sizeof_call_dummy_words,
8073 push_return_address, store_struct_return, and fix_call_dummy. Set
8074 push_dummy_call instead of deprecated_push_arguments.
8075 (mips_store_struct_return): Delete function.
8076 (mips_fix_call_dummy): Delete function.
8077 (mips_push_return_address): Delete function.
8078 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8079 RA_REGNUM and T9_REGNUM.
8080 (mips_n32n64_push_dummy_call): Ditto for
8081 mips_n32n64_push_arguments.
8082 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8083 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8084
8085 2003-05-31 Andrew Cagney <cagney@redhat.com>
8086
8087 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8088 "dummy_addr" to "bp_addr".
8089 * infcall.c (call_function_by_hand): Pass "funaddr" to
8090 gdbarch_push_dummy_call.
8091 * gdbarch.h, gdbarch.c: Re-generate.
8092 * i386-tdep.c (i386_push_dummy_call): Update.
8093 * arm-tdep.c (arm_push_dummy_call): Update.
8094 * d10v-tdep.c (d10v_push_dummy_call): Update.
8095
8096 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8097
8098 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8099 variable declarations.
8100 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8101 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8102 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8103 x86_64_init_frame_pc, x86_64_init_frame_pc,
8104 x86_64_function_has_prologue): Remove prototypes.
8105 (X86_64_NUM_GREGS): New define.
8106 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8107 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8108 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8109 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8110 XMM1_REGNUM): Remove defines.
8111 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8112 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8113 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8114 X86_64_XMM1_REGNUM): New defines.
8115 (struct x86_64_register_info): Renamed from `struct
8116 register_info'. Remove `size' member.
8117 (x86_64_register_info_table): Remove variable.
8118 (x86_64_register_info): New variable.
8119 (X86_64_NUM_REGS): New define.
8120 (X86_64_NUM_GREGS): Remove define.
8121 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8122 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8123 Remove variables.
8124 (x86_54_dwarf2_reg_to_regnum): Remove function.
8125 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8126 (x86_64_dwarf_reg_to_regnum): New function.
8127 (x86_64_register_name): Rewrite.
8128 (x86_64_register_raw_size): Remove function.
8129 (x86_64_register_byte_table): Remove variable.
8130 (x86_64_register_byte): Remove function.
8131 (x86_64_register_virtual_type): Remove function.
8132 (x86_64_register_type): New function.
8133 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8134 x86_64_register_convert_to_raw): Remove functions.
8135 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8136 (x86_64_use_struct_convention): Make static. Adjust for renamed
8137 defines.
8138 (x86_64_frame_init_saved_regs): Remove function.
8139 (x86_64_push_arguments): Make static. Change to accept a regcache
8140 as argument.
8141 (x86_64_store_return_value, x86_64_extract_return_value): Make
8142 static. Rewrite based on i386 counterparts.
8143 (x86_64_push_dummy_call): New function.
8144 (X86_64_NUM_SAVED_REGS): New define.
8145 (x86_64_register_number): Remove function.
8146 (x86_64_store_struct_return): Remove function.
8147 (x86_64_frameless_function_invocation,
8148 x86_64_function_has_prologue): Remove functions.
8149 (PROLOG_BUFSIZE): Remove define.
8150 (struct x86_64_frame_cache): New structure.
8151 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8152 x86_64_frame_cache, x86_64_frame_this_id,
8153 x86_64_frame_prev_register, x86_64_frame_p,
8154 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8155 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8156 functions.
8157 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8158 variables.
8159 (x86_64_skip_prologue): Rewrite in terms of
8160 x86_64_analyze_prologue.
8161 (x86_64_frame_base_address): New function.
8162 (x86_64_frame_base): New variable.
8163 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8164 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8165 set deprecated_fp_regnum, deprecated_register_size,
8166 deprecated_register_bytes, register_raw_size, register_byte,
8167 register_virtual_type, register_convertiable,
8168 register_convert_to_virtual, convert_to_raw,
8169 deprecated_get_saved_register, deprecated_target_read_fp,
8170 deprecated_push_arguments, deprecated_push_return_address,
8171 deprecated_pop_frame, deprecated_store_struct_return,
8172 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8173 frameless_function_invocation, deprecated_frame_saved_pc,
8174 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8175 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8176 deprecated_init_frame_pc and virtual_frame_pointer. Call
8177 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8178 and x86_64_frame_p. Call frame_base_set_default to register
8179 x86_64_frame_base.
8180 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8181 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8182 (_initialize_x86_64_tdep): Remove function.
8183 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8184 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8185 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8186 define.
8187 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8188 (x86_64_linux_sigcontext_addr): Rewrite.
8189 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8190 x86_64_linux_frame_saved_pc): Remove functions.
8191 (x86_64_linux_pc_in_sigtramp): Renamed from
8192 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8193 trampoline.
8194 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8195 Remove_functions.
8196 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8197 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8198 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8199 (x86_64_regmap): Rename to regmap.
8200 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8201 x86_64_num_gregs.
8202 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8203 x86_64_regmap.
8204 (x86_64_fxsave_offset): Remove function.
8205 (supply_fpregset): Simply call x86_64_supply_fxsave.
8206 (fill_fpregset): Simply call x86_64_fill_fxsave.
8207 (fetch_inferior_registers, store_inferior_registers): Avoid
8208 asignment in if-statement.
8209 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8210 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8211 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8212 (fetch_core_registers): Remove function.
8213 (linux_elf_core_fns): Remove.
8214 (offsetoff): Don't define.
8215 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8216 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8217 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8218 add core-regset.o.
8219 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8220 protection against multiple includes instead of NM_X86_64_h. Add
8221 various comments. Include "config/nm-linux.h". Don't include
8222 <signal.h>.
8223 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8224 GET_THREAD_SIGNALS): Remove defines.
8225 (x86_64_register_u_addr, kernel_u_size,
8226 lin_thread_get_thread_signals): Remove prototypes.
8227 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8228 [HAVE_LINK_H]: Don't include "solib.h".
8229 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8230 * config/i386/tm-x86-64linux.h: Fix comments.
8231 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8232 x86-64-tdep.o): Update dependencies.
8233
8234 2003-05-30 Andrew Cagney <cagney@redhat.com>
8235
8236 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8237 Change parameter type to a "struct regcache *".
8238
8239 * gdbarch.sh: Regardless of the multi-arch level, always define
8240 the macro when not already defined.
8241 * gdbarch.h, gdbarch.c: Re-generate.
8242
8243 2003-05-30 Richard Henderson <rth@redhat.com>
8244
8245 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8246 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8247 (alpha_mdebug_frame_this_id): Likewise.
8248 (alpha_mdebug_frame_prev_register): Likewise.
8249 (alpha_mdebug_frame_base_address): Likewise.
8250 (alpha_mdebug_frame_locals_address): Likewise.
8251 (alpha_mdebug_frame_args_address): Likewise.
8252 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8253 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8254 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8255 loop increment.
8256 (alpha_heuristic_frame_this_id): Make static.
8257 (alpha_heuristic_frame_prev_register): Likewise.
8258 (alpha_heuristic_frame_base_address): Likewise.
8259 * alpha-tdep.h: Update.
8260
8261 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8262
8263 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8264 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8265 defenitions.
8266 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8267 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8268 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8269 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8270 I386_ST0_REGNUM): New defines.
8271 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8272 codestream_get): Remove define.
8273 (codestream_next_addr, condestream_addr, condestream_buf,
8274 codestream_off, codestream_cnt): Remove variables.
8275 (codestream_fill, codestream_seek, codestream_read): Remove
8276 functions.
8277 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8278 functionality.
8279 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8280 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8281 i386_frame_saved_pc, i386_saved_pc_after_call,
8282 i386_frame_num_args, i386_frame_init_saved_regs,
8283 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8284 i386_push_arguments): Remove functions.
8285 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8286 functionality. Use i386_analyze_prologue instead of
8287 i386_get_frame_setup.
8288 (I386_NUM_SAVED_REGS): New define.
8289 (struct i386_frame_cache): New structure.
8290 (i386_alloc_frame_cache, i386_analyze_struct_return,
8291 i386_skip_probe, i386_analyze_frame_setup,
8292 i386_analyze_register_saves, i386_analyze_prologue,
8293 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8294 i386_frame_prev_register, i386_sigtramp_frame_cache,
8295 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8296 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8297 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8298 New functions.
8299 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8300 New variables.
8301 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8302 I386_EAX_REGNUM and I386_EDX_REGNUM.
8303 (i386_extract_return_value, i386_store_return_value): Use
8304 I386_ST0_REGNUM where appropriate.
8305 (i386_extract_struct_value_address): Rewrite to use extract_address.
8306 (i386_svr4_pc_in_sigtramp): Add comment.
8307 (i386_svr4_sigcontext_addr): Rewrite.
8308 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8309 TDEP->sc_sp_offset.
8310 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8311 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8312 of new defines. Set push_dummy_call, don't set
8313 deprecated_push_arguments, deprecated_push_return_address,
8314 deprecated_pop_frame. Don't set parm_boundary. Don't set
8315 deprecated_frame_chain, deprecated_frame_saved_pc,
8316 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8317 save_dummy_frame_tos, unwind_pc. Call
8318 frame_unwind_append_predicate and frame_base_set_default. Don't
8319 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8320 Don't set frameless_function_invocation. Don't set
8321 deprecated_register_bytes, deprecated_register_size,
8322 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8323 * i386-linux-tdep.c: Fix formatting in some comments.
8324 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8325 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8326 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8327 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8328 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8329 redundant parentheses.
8330 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8331 (i386_linux_sigcontext_addr): Use it. Rewrite.
8332 (find_minsym_and_objfile): Change name of second argument.
8333 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8334 changed. Use frame_pc_unwind instead of
8335 DEPRECATED_SAVED_PC_AFTER_CALL.
8336 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8337 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8338 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8339 unwinder.
8340 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8341 "dummy-frame.h".
8342 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8343 (_initialize_i386_cygwin_tdep): New prototype.
8344 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8345 deprecated_frame_chain_valid.
8346 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8347 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8348 Rely on the SVR4 defaults.
8349 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8350 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8351
8352 2003-05-30 Andrew Cagney <cagney@redhat.com>
8353
8354 * infcall.c (call_function_by_hand): Always call
8355 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8356
8357 2003-05-30 Richard Henderson <rth@redhat.com>
8358
8359 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8360 increment.
8361
8362 2003-05-29 Jim Blandy <jimb@redhat.com>
8363
8364 Use gdbarch methods for solib stuff on PowerPC Linux.
8365 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8366 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8367 show through.
8368 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8369 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8370 giving the same effect as the #definitions above.
8371
8372 2003-05-29 Adam Fedor <fedor@gnu.org>
8373
8374 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8375 (find_implementation_from_class): Replace it with the standard
8376 case i.e. do nothing.
8377
8378 2003-05-29 Richard Henderson <rth@redhat.com>
8379
8380 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8381 (alpha_linux_sigtramp_offset): Use it. Make static.
8382 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8383 update for new frame model.
8384 * alpha-mdebug-tdep.c: New file.
8385 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8386 (alpha_osf1_init_abi): Install it.
8387 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8388 (linked_proc_desc_table): Remove.
8389 (alpha_frame_past_sigtramp_frame): Remove.
8390 (alpha_dynamic_sigtramp_offset): Remove.
8391 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8392 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8393 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8394 (push_sigtramp_desc): Remove.
8395 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8396 (alpha_cannot_store_register): Likewise.
8397 (alpha_sigcontext_addr): Remove.
8398 (alpha_find_saved_regs): Remove.
8399 (alpha_frame_init_saved_regs): Remove.
8400 (alpha_init_frame_pc_first): Remove.
8401 (read_next_frame_reg): Remove.
8402 (alpha_frame_saved_pc): Remove.
8403 (alpha_saved_pc_after_call): Remove.
8404 (temp_proc_desc, temp_saved_regs): Remove.
8405 (alpha_about_to_return): Remove.
8406 (cached_proc_desc): Remove.
8407 (alpha_frame_chain): Remove.
8408 (alpha_print_extra_frame_info): Remove.
8409 (alpha_init_extra_frame_info): Remove.
8410 (alpha_frame_locals_address): Remove.
8411 (alpha_frame_args_address): Remove.
8412 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8413 (alpha_push_dummy_frame): Remove.
8414 (alpha_pop_frame): Remove.
8415 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8416 (alpha_read_insn): New.
8417 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8418 for different insn encodings.
8419 (alpha_in_lenient_prologue): Remove.
8420 (struct alpha_sigtramp_unwind_cache): New.
8421 (alpha_sigtramp_frame_unwind_cache): New.
8422 (alpha_sigtramp_register_address): New.
8423 (alpha_sigtramp_frame_this_id): New.
8424 (alpha_sigtramp_frame_prev_register): New.
8425 (alpha_sigtramp_frame_unwind): New.
8426 (alpha_sigtramp_frame_p): New.
8427 (struct alpha_heuristic_unwind_cache): New.
8428 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8429 don't count nop insns that occur between functions.
8430 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8431 heuristic_proc_desc, but without the mdebug wrapping.
8432 (alpha_heuristic_frame_this_id): New.
8433 (alpha_heuristic_frame_prev_register): New.
8434 (alpha_heuristic_frame_unwind): New.
8435 (alpha_heuristic_frame_p): New.
8436 (alpha_heuristic_frame_base_address): New.
8437 (alpha_heuristic_frame_base): New.
8438 (alpha_unwind_dummy_id): New.
8439 (alpha_unwind_pc): New.
8440 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8441 frame related deprecated initializations; install replacements.
8442 (alpha_dump_tdep): Remove.
8443 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8444 (alpha_read_insn, alpha_after_prologue,
8445 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8446 alpha_heuristic_frame_prev_register,
8447 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8448 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8449 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8450 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8451
8452 2003-05-29 Andrew Cagney <cagney@redhat.com>
8453
8454 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8455 dependant on the availability of ASSERT_FUNCTION.
8456 (ASSERT_FUNCTION): Do not define when there is no function name.
8457
8458 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8459
8460 From Jimi X <jimix@watson.ibm.com>:
8461 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8462
8463 2003-05-28 Jim Blandy <jimb@redhat.com>
8464
8465 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8466 argument to ptrace to int; the system headers should give it the
8467 right type, and pointers don't fit in ints on powerpc64-*-*.
8468
8469 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8470
8471 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8472 DW_TAG_catch_block.
8473
8474 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8475
8476 * stabsread.c (dbx_lookup_type): Make static.
8477 (read_type): Ditto.
8478 (add_undefined_type): Ditto.
8479 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8480 not export.
8481
8482 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8483
8484 * hpread.c (hpread_has_name): Make static.
8485 (hpread_psymtab_to_symtab): Ditto.
8486 (file_exists): Ditto.
8487 (hpread_call_pxdb): Ditto.
8488 (hpread_pxdb_needed): Ditto.
8489 (hpread_quick_traverse): Ditto.
8490 (hpread_get_header): Ditto.
8491 (hpread_get_lntt): Ditto.
8492 (hpread_get_slt): Ditto.
8493 (class_of): Ditto.
8494
8495 2003-05-25 Andreas Schwab <schwab@suse.de>
8496
8497 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8498 stack_align and deprecated_extra_stack_alignment_needed.
8499 (m68k_stack_align): Delete.
8500
8501 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8502 (m68k_register_virtual_size): Likewise.
8503 (altos_skip_prologue): Remove obsolete function.
8504 (isi_frame_num_args): Likewise.
8505 (news_frame_num_args): Likewise.
8506 (m68k_fix_call_dummy): Make static.
8507 (m68k_push_dummy_frame): Likewise.
8508 (m68k_pop_frame): Likewise.
8509 (m68k_skip_prologue): Likewise.
8510 (m68k_frame_init_saved_regs): Likewise.
8511 (m68k_saved_pc_after_call): Likewise.
8512 (m68k_get_longjmp_target): Make multi-arch.
8513 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8514 structure. Register m68k_get_longjmp_target if enabled.
8515 * m68k-tdep.h (struct gdbarch_tdep): Define.
8516 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8517
8518 * Makefile.in (config.status): Also depend on configure.tgt
8519 and configure.host.
8520 (m68klinux-tdep.o): Update dependencies.
8521 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8522 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8523 (M68K_LINUX_JB_PC): Define.
8524 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8525 and take additional parameter.
8526 (m68k_linux_sigtramp_saved_pc): Update.
8527 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8528 m68k_linux_pc_in_sigtramp, in_plt_section,
8529 find_solib_trampoline_target.
8530 * config/m68k/tm-linux.h: Don't include any tm headers.
8531 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8532 (JB_ELEMENT_SIZE): Likewise.
8533 (JB_PC): Likewise.
8534 (GET_LONGJMP_TARGET): Likewise.
8535 (IN_SIGTRAMP): Likewise.
8536 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8537
8538 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8539
8540 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8541 (sparc32_push_arguments): Re-implement by calling
8542 sparc32_do_push_arguments.
8543
8544 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8545
8546 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8547 SPARC_O1_REGNUM): New defines.
8548 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8549 (sparc32_store_return_value): New function.
8550 (sparc_extract_struct_value_address): Rewrite to operate on a
8551 regcache.
8552 (sparc_gdbarch_init): Don't set
8553 deprecated_extract_struct_value_address. Set
8554 extract_struct_value_address instead. Don't set
8555 deprecated_extract_return_value and deprecated_store_return_value
8556 for 32-bit targets. Set extract_return_value and
8557 store_return_value instead.
8558 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8559 DEPRECATED_EXTRACT_RETURN_VALUE,
8560 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8561 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8562 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8563 (sparc_store_return_value): Remove prototype.
8564 (sparc32_store_return_value): New prototype.
8565 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8566 Adjust prototypes.
8567
8568 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8569
8570 * sparcnbsd-tdep.c: Include "gdb_string.h".
8571
8572 2003-05-23 Andrew Cagney <cagney@redhat.com>
8573
8574 * p-valprint.c (pascal_val_print): Replace extract_address with
8575 the inline equivalent extract_unsigned_integer.
8576 * jv-valprint.c (java_value_print): Ditto.
8577 * ada-valprint.c (ada_val_print_1): Ditto.
8578 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8579
8580 2003-05-23 Theodore A. Roth <troth@openavr.org>
8581
8582 * blockframe.c (frameless_look_for_prologue): Remove unused
8583 after_prologue variable.
8584
8585 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8586
8587 * blockframe.c (get_pc_function_start): Rewrite to avoid
8588 asignments in if-statements.
8589
8590 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8591
8592 Committed by Elena Zannoni <ezannoni@redhat.com>.
8593 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8594 files, don't relocate absolute symbols (and do use mst_abs).
8595
8596 2003-05-23 Andrew Cagney <cagney@redhat.com>
8597
8598 * objc-lang.c: Include "gdb_assert.h".
8599 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8600 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8601 (gdb_check, gdb_check_fatal): Delete functions.
8602 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8603 gdb_assert.
8604 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8605 * Makefile.in (objc-lang.o): Update dependencies.
8606
8607 2003-05-22 Ian Lance Taylor <ian@airs.com>
8608
8609 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8610 with fprintf_filtered, not fprintf_unfiltered.
8611
8612 2003-05-22 Andrew Cagney <cagney@redhat.com>
8613
8614 * stack.c (frame_info): Inline extract_address, replacing it with
8615 extract_unsigned_integer.
8616 * findvar.c (unsigned_pointer_to_address): Ditto.
8617 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8618 * dwarf2expr.c (dwarf2_read_address): Ditto.
8619 * frame.c (frame_pc_unwind): Update comment.
8620 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8621
8622 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8623
8624 * infptrace.c (detach): Call print_sys_errmsg rather than
8625 perror_with_name to issue warning message when errno is non-zero
8626 after calling ptrace detach.
8627
8628 2003-05-21 J. Brobecker <brobecker@gnat.com>
8629
8630 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8631 macro definitions from here...
8632 * hppa-tdep.c: ...to there.
8633
8634 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8635
8636 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8637 register_ptrace_addr(). Fix all callers.
8638
8639 2003-05-21 Andreas Schwab <schwab@suse.de>
8640
8641 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8642 dependencies.
8643 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8644 end.
8645 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8646 (_initialize_m68k_linux_tdep): New function.
8647 (m68k_linux_frame_saved_pc): Make static.
8648 (m68k_linux_extract_return_value): Likewise.
8649 (m68k_linux_store_return_value): Likewise.
8650 (m68k_linux_extract_struct_value_address): Likewise.
8651 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8652 Remove.
8653 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8654 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8655 (DEPRECATED_FRAME_SAVED_PC): Remove.
8656
8657 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8658
8659 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8660 regset numbering rather than our own.
8661
8662 2003-05-19 David Carlton <carlton@bactrian.org>
8663
8664 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8665
8666 2003-05-19 David Carlton <carlton@bactrian.org>
8667
8668 Partial fix for PR c++/827.
8669 * cp-support.h: Include symtab.h.
8670 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8671 * cp-namespace.c: Update contributors.
8672 (cp_lookup_symbol_nonlocal): New.
8673 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8674 (lookup_symbol_file): Ditto.
8675 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8676 * block.h: Declare block_scope, block_using, block_global_block.
8677 * block.c (block_scope): New.
8678 (block_using, block_global_block): Ditto.
8679 * Makefile.in (cp_support_h): Depend on symtab_h.
8680 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8681
8682 2003-05-19 David Carlton <carlton@bactrian.org>
8683
8684 * language.h (struct language_defn): Add 'la_value_of_this'
8685 and 'la_lookup_symbol_nonlocal' members.
8686 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8687 lookup_symbol_static, lookup_symbol_global,
8688 lookup_symbol_aux_block.
8689 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8690 if we should search fields of this and how to do static/global
8691 lookup.
8692 (lookup_symbol_aux_block): Make extern.
8693 (basic_lookup_symbol_nonlocal): New.
8694 (lookup_symbol_static, lookup_symbol_global): Ditto.
8695 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8696 'la_lookup_symbol_nonlocal' members.
8697 * c-lang.c (c_language_defn, cplus_language_defn)
8698 (asm_language_defn, minimal_language_defn): Ditto.
8699 * jv-lang.c (java_language_defn): Ditto.
8700 * language.c (unknown_language_defn, auto_language_defn)
8701 (local_language_defn): Ditto.
8702 * m2-lang.c (m2_language_defn): Ditto.
8703 * objc-lang.c (objc_language_defn): Ditto.
8704 * scm-lang.c (scm_language_defn): Ditto.
8705 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8706 * p-lang.c (pascal_language_defn): Ditto for both.
8707 * Makefile.in (f-lang.o): Depend on value_h.
8708 (p-lang.o): Ditto.
8709
8710 2003-05-19 David Carlton <carlton@bactrian.org>
8711
8712 * block.h: Declare block_static_block.
8713 * block.c (block_static_block): New.
8714 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8715 lookup_symbol_aux_local, calling block_static_block instead.
8716 (lookup_symbol_aux_local): Delete 'static_block' argument.
8717
8718 2003-05-19 David Carlton <carlton@bactrian.org>
8719
8720 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8721
8722 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8723
8724 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8725 register numbers mapping.
8726
8727 2003-05-18 Adam Fedor <fedor@gnu.org>
8728
8729 * symtab.c (completion_list_objc_symbol): New function.
8730 (make_symbol_completion_list): Use it to add ObjC symbols
8731 when looking though the list.
8732 (language_search_unquoted_string): New function.
8733 (make_file_symbol_completion_list): Use it.
8734
8735 2003-05-18 Andreas Schwab <schwab@suse.de>
8736
8737 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8738 dependencies.
8739 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8740 as m68k_linux_extract_return_value.
8741 (DEPRECATED_STORE_RETURN_VALUE): Define as
8742 m68k_linux_store_return_value.
8743 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8744 m68k_linux_extract_struct_value_address.
8745 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8746 get_next_frame, get_frame_base, get_frame_pc.
8747 (m68k_linux_frame_saved_pc): Use get_frame_base.
8748 (m68k_linux_extract_return_value): New function.
8749 (m68k_linux_store_return_value): New function.
8750 (m68k_linux_extract_struct_value_address): New function.
8751 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8752
8753 * c-exp.y (typebase): Remove duplicate occurence of
8754 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8755 of lookup_signed_typename.
8756
8757 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8758
8759 * dwarf2loc.c (find_location_expression): Change type of second
8760 argument to `size_t *'.
8761 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8762 for size variable.
8763
8764 2003-05-18 David Carlton <carlton@bactrian.org>
8765
8766 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8767 'linkage_name'. Add comment.
8768 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8769 'linkage_name'.
8770 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8771 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8772 (lookup_block_symbol): Ditto.
8773
8774 2003-05-16 Andrew Cagney <cagney@redhat.com>
8775
8776 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8777 * gdbarch.h, gdbarch.c: Re-generate.
8778 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8779 * TODO (REGISTER_BYTES): Delete reference.
8780 * alpha-tdep.c (alpha_gdbarch_init): Update.
8781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8782 * x86-64-tdep.c (x86_64_init_abi): Update.
8783 * vax-tdep.c (vax_gdbarch_init): Update.
8784 * v850-tdep.c (v850_gdbarch_init): Update.
8785 * sparc-tdep.c (sparc_gdbarch_init): Update.
8786 * sh-tdep.c (sh_gdbarch_init): Update.
8787 * s390-tdep.c (s390_gdbarch_init): Update.
8788 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8789 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8790 (ns32k_gdbarch_init_32382): Update.
8791 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8792 * mcore-tdep.c (mcore_gdbarch_init): Update.
8793 * m68k-tdep.c (m68k_gdbarch_init): Update.
8794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8795 * ia64-tdep.c (ia64_gdbarch_init): Update.
8796 * i386-tdep.c (i386_gdbarch_init): Update.
8797 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8798 * hppa-tdep.c (hppa_gdbarch_init): Update.
8799 * h8300-tdep.c (h8300_gdbarch_init): Update.
8800 * frv-tdep.c (frv_gdbarch_init): Update.
8801 * cris-tdep.c (cris_gdbarch_init): Update.
8802 * avr-tdep.c (avr_gdbarch_init): Update.
8803 * arm-tdep.c (arm_gdbarch_init): Update.
8804 * sparc-tdep.c (sparc_pop_frame): Update.
8805 * rs6000-tdep.c (rs6000_pop_frame): Update.
8806 * remote.c (init_remote_state): Update.
8807 (remote_prepare_to_store): Update.
8808 * remote-vx.c (vx_prepare_to_store): Update.
8809 * remote-sds.c (sds_fetch_registers): Update.
8810 (sds_prepare_to_store): Update.
8811 * remote-array.c: Update.
8812 * regcache.c (init_legacy_regcache_descr): Update.
8813 (init_regcache_descr): Update.
8814 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8815 (mips_o64_extract_return_value): Update.
8816 * irix5-nat.c (fetch_core_registers): Update.
8817 * irix4-nat.c (fetch_core_registers): Update.
8818 * i386-tdep.h: Update.
8819 * hppa-tdep.c (pa_do_registers_info): Update.
8820 (pa_do_strcat_registers_info): Update.
8821 * cris-tdep.c (cris_register_bytes_ok): Update.
8822 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8823 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8824 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8825 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8826 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8827 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8828 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8829 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8830 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8831 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8832 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8833 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8834 (REGISTER_BYTES_OK): Update.
8835 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8836 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8837
8838 2003-05-16 Ian Lance Taylor <ian@airs.com>
8839
8840 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8841 (vax_print_insn, print_insn_arg): Remove static functions.
8842 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8843 print_insn_vax from opcodes library.
8844 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8845
8846 2003-05-15 Andrew Cagney <cagney@redhat.com>
8847
8848 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8849 * target.h (memory_breakpoint_from_pc): Delete declaration.
8850 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8851 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8852 * monitor.c (monitor_insert_breakpoint): Use
8853 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8854 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8855 * gdbarch.h, gdbarch.c: Re-generate.
8856 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8857 (sparc_gdbarch_init): Set breakpoint_from_pc to
8858 sparc_breakpoint_from_pc.
8859 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8860 (BREAKPOINT_FROM_PC): Define.
8861 (sparc_breakpoint_from_pc): Declare.
8862 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8863 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8864 (BREAKPOINT_FROM_PC): Define.
8865 (BREAKPOINT): Delete macro.
8866 * target.h: Update comment.
8867 * s390-tdep.c (s390_gdbarch_init): Update comments.
8868 * remote.c: Update comments.
8869 * remote-mips.c: Update comments.
8870 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8871 * mem-break.c: Update comment.
8872 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8873 (ia64_memory_insert_breakpoint): Update.
8874 * config/sparc/tm-sparc.h: Update comment.
8875 * config/pa/tm-hppa64.h: Update comment.
8876 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8877 (rs6000_breakpoint_from_pc): Update.
8878 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8879 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8880 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8881 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8882 (mips_breakpoint_from_pc): Update.
8883 (mips_dump_tdep): Update.
8884
8885 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8886 * minsyms.c (lookup_minimal_symbol): Inline
8887 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8888
8889 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8890 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8891 * p-lang.c (pascal_printstr): Ditto.
8892 * objc-lang.c (objc_printstr): Ditto.
8893 * m2-lang.c (m2_printstr): Ditto.
8894 * jv-valprint.c (java_print_value_fields): Ditto.
8895 * f-lang.c (f_printstr): Ditto.
8896 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8897 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8898 for repeat_count_threshold.
8899 * Makefile.in (cp-valprint.o): Update dependencies.
8900
8901 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8902
8903 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8904 (examine_prologue): Support looking through leaf functions, knowing
8905 they start with mov r2,r12. Support skipping over indirect stores
8906 of the input registers. Upon hitting a non-nop branch instruction
8907 or predicated instruction, bail out by setting lim_pc to the current
8908 pc value in the loop. At the end, if the lim_pc value is still
8909 beyond our calculated value and we have trust_limit set,
8910 use the lim_pc value.
8911
8912 2003-05-15 Andrew Cagney <cagney@redhat.com>
8913
8914 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8915 generic_find_dummy_frame.
8916 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8917 (deprecated_generic_find_dummy_frame): Update.
8918 (deprecated_read_register_dummy): Update.
8919 * frame.c (deprecated_generic_get_saved_register): Update.
8920
8921 2003-05-15 Theodore A. Roth <troth@openavr.org>
8922
8923 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8924 (avr_gdbarch_init): Set breakpoint_from_pc method.
8925
8926 2003-05-15 Andrew Cagney <cagney@redhat.com>
8927
8928 * regcache.c (build_regcache): Set deprecated_register_valid
8929 directly.
8930 (deprecated_grub_regcache_for_register_valid): Delete function.
8931 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8932 declaration.
8933
8934 2003-05-15 David Carlton <carlton@bactrian.org>
8935
8936 Committed by Elena Zannoni <ezannoni@redhat.com>
8937 * symtab.c (lookup_symbol_aux): Delete calls to
8938 lookup_symbol_aux_minsyms.
8939 (lookup_symbol_aux_minsyms): Comment out function and
8940 prototype. Delete lookup by mangled name.
8941
8942 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8943
8944 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8945 correctly indicate an empty stack and ``stack_allocated'' to the
8946 indicate the number of elements initially allocated.
8947 (dwarf_expr_grow_stack): Simplify method for computing new
8948 stack size. Don't loop infinitely if ``stack_len'' is zero.
8949 (execute_stack_op): Move ``ctx->in_reg'' initialization
8950 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8951 be used in conjuction with DW_OP_piece. Revise error message
8952 accordingly.
8953
8954 2003-05-14 Theodore A. Roth <troth@openavr.org>
8955
8956 * MAINTAINERS: Update my email address.
8957 * avr-tdep.c: Ditto.
8958
8959 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8960
8961 * symtab.h (enum domain_enum): Rename from namespace_enum.
8962 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8963 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8964 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8965 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8966 TYPES_NAMESPACE, METHODS_NAMESPACE.
8967 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8968 (struct symbol, struct partial_symbol): Rename field
8969 'namespace_enum namespace' to 'domain_enum domain'.
8970 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8971 Delete old define kludge for namespace.
8972
8973 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8974 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8975 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8976 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8977 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8978 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8979 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8980 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8981 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8982 occurrences of the above.
8983
8984 2003-05-14 Ian Lance Taylor <ian@airs.com>
8985
8986 * Makefile.in (install-only): Use $(SHELL) when running
8987 mkinstalldirs.
8988
8989 2003-05-13 Ian Lance Taylor <ian@airs.com>
8990
8991 * MAINTAINERS (write after approval): Add myself.
8992
8993 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8994 second and third arguments.
8995 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8996 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8997
8998 2003-05-13 Andrew Cagney <cagney@redhat.com>
8999
9000 * defs.h (store_address): Delete declaration.
9001 findvar.c (store_address): Delete function.
9002 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9003 store_unsigned_integer.
9004 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9005 * v850-tdep.c (v850_push_arguments): Ditto.
9006 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9007 * sh-tdep.c (sh64_get_saved_register): Ditto.
9008 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9009 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9010 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9011 (mips_get_saved_register): Ditto.
9012 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9013 (find_func_descr, ia64_push_arguments): Ditto.
9014 * i386-tdep.c (i386_push_arguments): Ditto.
9015 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9016 * frv-tdep.c (frv_push_arguments): Ditto.
9017 * frame.c (legacy_saved_regs_prev_register): Ditto.
9018 (deprecated_generic_get_saved_register): Ditto.
9019 * findvar.c (unsigned_address_to_pointer): Ditto.
9020 * dwarf2read.c (dwarf2_const_value): Ditto.
9021 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9022 * alpha-tdep.c (alpha_push_arguments): Ditto.
9023
9024 2003-05-12 J. Brobecker <brobecker@gnat.com>
9025
9026 * NEWS: Mention that the hppa-hpux port has been partially
9027 multiarched (32bit ABIT only, so far).
9028
9029 2003-05-11 Andrew Cagney <cagney@redhat.com>
9030
9031 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9032 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9033 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9034 sim/testsuite/sim/arm/misaligned2.ms, and
9035 sim/testsuite/sim/arm/misaligned3.ms.
9036 * disasm.h (struct ui_file): Add opaque struct declaration.
9037 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9038 * frame.h (struct ui_file): Ditto.
9039
9040 2003-05-11 Mark Kettenis <kettenis@gnu.org>
9041
9042 * value.h: Pretty print.
9043
9044 2003-05-10 Mark Kettenis <kettenis@gnu.org>
9045
9046 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9047
9048 2003-05-08 Andrew Cagney <cagney@redhat.com>
9049
9050 * regcache.h (max_register_size): Delete declaration.
9051 * regcache.c (max_register_size): Delete function.
9052 (struct regcache_descr): Delete field "max_register_size".
9053 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9054 registers fit in MAX_REGISTER_SIZE.
9055 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9056 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9057 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9058 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9059 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9060 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9061 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9062 * dve3900-rom.c, hppa-tdep.c: Ditto.
9063
9064 2003-05-08 David Carlton <carlton@math.stanford.edu>
9065
9066 * valops.c (push_word): Fix typo.
9067
9068 2003-05-08 Andrew Cagney <cagney@redhat.com>
9069
9070 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9071 * gdbarch.h: Re-generate.
9072 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9073 (legacy_max_register_raw_size): Delete declaration.
9074 * regcache.c (legacy_max_register_raw_size): Delete function.
9075 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9076 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9077 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9078 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9079 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9080 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9081 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9082 * findvar.c, dwarf2cfi.c: Ditto.
9083
9084 2003-05-08 Andrew Cagney <cagney@redhat.com>
9085
9086 * mips-tdep.c (read_signed_register): New function, moved to here
9087 from "regcache.c".
9088 (read_signed_register_pid): Ditto.
9089 * regcache.c (read_signed_register_pid): Delete function, moved to
9090 "mips-tdep.c".
9091 (read_signed_register): Ditto.
9092 * regcache.h (read_signed_register): Delete declaration.
9093 (read_signed_register_pid): Delete declaration.
9094
9095 2003-05-08 Andrew Cagney <cagney@redhat.com>
9096
9097 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9098 * gdbarch.h: Re-generate.
9099 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9100 (legacy_max_register_virtual_size): Delete declaration.
9101 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9102 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9103 * tracepoint.c (memrange_sortmerge): Ditto.
9104 * sparc-tdep.c (sparc_print_registers): Ditto.
9105 * regcache.c (legacy_max_register_virtual_size): Delete function.
9106
9107 2002-05-08 J. Brobecker <brobecker@gnat.com>
9108
9109 * fork-child.c (escape_bang_in_quoted_argument): New function.
9110 (fork_inferior): Escape '!' characters in quoted arguments
9111 only when needed.
9112
9113 2003-05-08 J. Brobecker <brobecker@gnat.com>
9114
9115 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9116 the language of the CU is not currently supported by GDB.
9117
9118 2003-05-08 J. Brobecker <brobecker@gnat.com>
9119
9120 * defs.h (language): Add language_minimal enum value.
9121 * c-lang.c (minimal_language_defn): New language definition.
9122 (_initialize_c_language): Add the new minimal language to the list
9123 of languages known to GDB.
9124
9125 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9126
9127 * frame.c (get_frame_type): Don't attempt to lazily initialize
9128 frame's unwinder for legacy frames.
9129
9130 2003-05-07 Andrew Cagney <cagney@redhat.com>
9131
9132 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9133 and "regcache" parameters.
9134 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9135
9136 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9137
9138 * dwarf2read.c (dwarf_decode_lines): Only use output of
9139 check_cu_functions() when calling record_line(). Do not update
9140 the current address.
9141
9142 2003-05-07 Andrew Cagney <cagney@redhat.com>
9143
9144 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9145 code.
9146
9147 2003-05-07 Jim Blandy <jimb@redhat.com>
9148
9149 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9150 'maint info symtabs' and 'maint info psymtabs'.
9151 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9152 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9153 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9154 Declarations updated.
9155 * maint.c (maintenance_list_command): Delete.
9156 (_initialize_maint_cmds): Update calls to add_cmd.
9157 * gdbcmd.h (maintenancelistlist): Delete declaration.
9158 * cli/cli-cmds.c (maintenancelistlist): Delete.
9159 (init_cmd_lists): Don't initialize it.
9160 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9161
9162 2003-05-07 Andrew Cagney <cagney@redhat.com>
9163
9164 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9165 "regcache".
9166 (d10v_print_registers_info): Update.
9167 (d10v_dmap_register, d10v_imap_register): Delete functions.
9168 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9169 and "imap_register".
9170 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9171 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9172 * arch-utils.c (generic_remote_translate_xfer_address): Add
9173 "regcache" and "gdbarch" parameters.
9174 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9175 parameter. Change class to multi-arch.
9176 * gdbarch.h, gdbarch.c: Re-generate.
9177 * remote.c (remote_xfer_memory): Use
9178 gdbarch_remote_translate_xfer_address.
9179
9180 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9181
9182 * infrun.c (prev_pc): Move declaration ahead of proceed().
9183 (proceed): Refresh prev_pc value before resuming.
9184 (stop_stepping): Remove code to refresh prev_pc.
9185
9186 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9187
9188 * nto-tdep.c: Removed stray comment.
9189
9190 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9191
9192 * i386-nto-tdep.c: Fix old K&R function definitions.
9193 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9194 Also change add_show_from_set() call to add_setshow_cmd().
9195 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9196
9197 2003-05-05 Andrew Cagney <cagney@redhat.com>
9198
9199 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9200 (fprint_dummy_frames): New function.
9201 (maintenance_print_dummy_frames): New function.
9202 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9203 * frame.c (fprint_frame_id): Make global.
9204 * frame.h (fprint_frame_id): Declare.
9205 * Makefile.in (dummy-frame.o): Update dependencies.
9206
9207 2003-05-05 Andrew Cagney <cagney@redhat.com>
9208
9209 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9210 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9211 SIZEOF_CALL_DUMMY_WORDS.
9212 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9213 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9214 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9215 CALL_DUMMY_BREAKPOINT_OFFSET.
9216 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9217 CALL_DUMMY_START_OFFSET.
9218 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9219 * gdbarch.h, gdbarch.c: Re-generate.
9220 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9221 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9222 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9223 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9224 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9225 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9226 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9227 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9228 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9229 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9230 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9231 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9232 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9233 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9234 * config/sparc/tm-sparc.h: Update.
9235
9236 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9237
9238 * configure.tgt: Add i[3456]86-*-nto*.
9239 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9240 * nto-tdep.c: New file. Neutrino target support routines.
9241 * nto-tdep.h: New file. Neutrino target header.
9242 * config/tm-qnxnto.h: New file.
9243 * config/i386/i386nto.mt: New file.
9244 * config/i386/tm-i386nto.h: New file.
9245
9246 2003-05-04 Andrew Cagney <cagney@redhat.com>
9247
9248 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9249 (load_infrun_state): Ditto.
9250 (struct thread_info): Drop "prev_func_name" field.
9251 * thread.c (load_infrun_state): Update.
9252 (save_infrun_state): Update.
9253 * infrun.c (prev_func_name): Delete variable.
9254 (init_wait_for_inferior): Do not clear prev_func_name.
9255 (stop_stepping, keep_going, context_switch): Do not swap
9256 prev_func_name.
9257 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9258 instead of PC_IN_SIGTRAMP.
9259
9260 2003-05-04 Andrew Cagney <cagney@redhat.com>
9261
9262 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9263 REGISTER_BYTE with register_offset_hack.
9264 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9265 that REGISTER_BYTE is consistent with the regcache.
9266 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9267 * gdbarch.h, gdbarch.c: Regenerate.
9268
9269 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9270
9271 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9272 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9273
9274 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9275
9276 2003-05-03 J. Brobecker <brobecker@gnat.com>
9277
9278 From Thierry Schneider <tpschneider1@yahoo.com>
9279 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9280 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9281 (mi-cmd-symbol.o): Add rule.
9282
9283 2003-05-03 Andrew Cagney <cagney@redhat.com>
9284
9285 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9286 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9287 * gdbarch.h, gdbarch.c: Re-generate.
9288 * d10v-tdep.c (d10v_push_dummy_code): New function.
9289 (d10v_gdbarch_init): Set push_dummy_code.
9290 * infcall.c (legacy_push_dummy_code): New function.
9291 (generic_push_dummy_code): New function.
9292 (push_dummy_code): New function.
9293 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9294 instead of dummy_addr, to push_dummy_call. Move call to
9295 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9296 switch.
9297 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9298
9299 2003-05-03 Andrew Cagney <cagney@redhat.com>
9300
9301 * disasm.h (print_insn): Declare.
9302 * disasm.c (init_gdb_disassemble_info): New function.
9303 (gdb_disassembly): Call init_gdb_disassemble_info.
9304 (gdb_print_insn): New function.
9305 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9306 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9307 * mcore-tdep.c: Include "disasm.h"
9308 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9309 * d10v-tdep.c: Include "disasm.h".
9310 (display_trace): Call gdb_print_insn, instead of print_insn.
9311 (print_insn): Delete function.
9312 * printcmd.c: Include "disasm.h".
9313 (print_insn): Delete function.
9314 (print_formatted): Call gdb_print_insn, instead of print_insn.
9315 * Makefile.in (printcmd.o): Update dependencies.
9316 (mcore-tdep.o, d10v-tdep.o): Ditto.
9317
9318 2003-05-02 Andrew Cagney <cagney@redhat.com>
9319
9320 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9321 PC_REGNUM, re-indent.
9322 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9323 PC_REGNUM isn't set.
9324
9325 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9326 * gdbarch.h, gdbarch.c: Re-generate.
9327 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9328 register_virtual_size, pc_regnum, or register_bytes.
9329 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9330 (d10v_register_type): Use D10V_PC_REGNUM.
9331 (d10v_print_registers_info, d10v_read_pc): Ditto.
9332 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9333 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9334
9335 2003-05-02 David Carlton <carlton@bactrian.org>
9336
9337 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9338 the name with mstrsave.
9339
9340 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9341
9342 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9343 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9344 (host_charset_name, target_charset_name): New vars for use by
9345 set/show commands.
9346 (host_charset_enum, target_charset_enum): New enums for set/show
9347 commands.
9348 (set_charset_sfunc, set_host_charset_sfunc,
9349 set_target_charset_sfunc): New functions.
9350 (set_host_charset, set_target_charset): Make static.
9351 (list_charsets, set_host_charset_command,
9352 set_target_charset_command): Delete functions.
9353 (show_charset_command): Rewrite as....
9354 (show_charset): Hook this up with the set/show command mechanism.
9355 (_initialize_charset): Change names of charsets to match the
9356 set/show enums. Use host_charset_name and target_charset_name.
9357 Use set/show mechanism for charset, host-charset, target-charset
9358 commands. Do not make 'show host-charset' and 'show
9359 target-charset' be aliases of 'show charset'.
9360
9361 * charset.h (set_host_charset, set_target_charset): Don't export,
9362 they are not used outside the file.
9363
9364 2003-05-01 Andrew Cagney <cagney@redhat.com>
9365
9366 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9367 (gdb_disassembly): Make "di" non static, always initialize and
9368 cleanup. Always use dis_asm_read_memory.
9369 (gdb_dis_asm_read_memory): Delete function.
9370
9371 2003-05-01 Andrew Cagney <cagney@redhat.com>
9372
9373 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9374 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9375
9376 2003-04-30 Andrew Cagney <cagney@redhat.com>
9377
9378 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9379 "tm_print_insn_info".
9380 (TARGET_PRINT_INSN_INFO): Delete macro.
9381 (dis_asm_read_memory): Delete function declaration.
9382 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9383 (tm_print_insn_info): Delete variable definition.
9384 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9385 * gdbarch.h, gdbarch.c: Re-generate.
9386 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9387 "deprecated_tm_print_insn_info".
9388 * mcore-tdep.c (mcore_dump_insn): Ditto.
9389 * mips-tdep.c (mips_gdbarch_init): Ditto.
9390 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9391 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9392 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9393 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9394 instead of TARGET_PRINT_INSN_INFO, add comment.
9395 * s390-tdep.c (s390_get_frame_info): Instead of
9396 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9397 (s390_check_function_end, s390_is_sigreturn): Ditto.
9398 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9399 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9400 * disasm.c: Include "gdbcore.h".
9401 (_initialize_disasm): New function, initialize
9402 "deprecated_tm_print_insn_info".
9403 (deprecated_tm_print_insn_info): New variable.
9404 (dis_asm_read_memory): Moved from "corefile.c", made static.
9405 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9406 * Makefile.in (disasm.o): Update dependencies.
9407
9408 2003-04-30 Andrew Cagney <cagney@redhat.com>
9409
9410 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9411
9412 2003-04-29 Adam Fedor <fedor@gnu.org>
9413
9414 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9415 * infcall.c (find_function_addr): Make non-static.
9416 * infcall.h (find_function_addr): Declare.
9417 * Makefile.in (eval.o): Update dependencies.
9418
9419 2003-04-28 Adam Fedor <fedor@gnu.org>
9420
9421 * symtab.c (symbol_find_demangled_name): Check for and demangle
9422 ObjC symbols.
9423 (symbol_init_demangled_name): Init for language_objc as well.
9424
9425 2003-04-28 Andrew Cagney <cagney@redhat.com>
9426
9427 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9428 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9429 * gdbarch.h, gdbarch.c: Re-generate.
9430 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9431 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9432 * inferior.h (deprecated_read_fp): Rename read_fp.
9433 (generic_target_read_fp): Delete declaration.
9434 * regcache.c (generic_target_read_fp): Delete function.
9435 (deprecated_read_fp): Replace read_fp, use
9436 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9437 * d10v-tdep.c (d10v_read_fp): Delete function.
9438 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9439
9440 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9441 deprecated_target_read_fp to generic_target_read_fp.
9442 * sh-tdep.c (sh_gdbarch_init): Ditto.
9443 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9445 * frv-tdep.c (frv_gdbarch_init): Ditto.
9446
9447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9448 deprecated_fp_regnum.
9449 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9450 * vax-tdep.c (vax_gdbarch_init): Ditto.
9451 * v850-tdep.c (v850_gdbarch_init): Ditto.
9452 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9453 * sh-tdep.c (sh_gdbarch_init): Ditto.
9454 * s390-tdep.c (s390_gdbarch_init): Ditto.
9455 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9456 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9457 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9458 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9460 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9461 * i386-tdep.c (i386_gdbarch_init): Ditto.
9462 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9463 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9464 * frv-tdep.c (frv_gdbarch_init): Ditto.
9465 * cris-tdep.c (cris_gdbarch_init): Ditto.
9466 * avr-tdep.c (avr_gdbarch_init): Ditto.
9467 * arm-tdep.c (arm_gdbarch_init): Ditto.
9468 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9469
9470 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9471 * v850-tdep.c (v850_gdbarch_init): Ditto.
9472 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9473 * sh-tdep.c (sh_gdbarch_init): Ditto.
9474 * s390-tdep.c (s390_gdbarch_init): Ditto.
9475 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9476 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9477 * mips-tdep.c (mips_gdbarch_init): Ditto.
9478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9479 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9480 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9481 * frv-tdep.c (frv_gdbarch_init): Ditto.
9482 * avr-tdep.c (avr_gdbarch_init): Ditto.
9483 * arm-tdep.c (arm_gdbarch_init): Ditto.
9484
9485 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9486 DEPRECATED_FP_REGNUM.
9487 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9488 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9489 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9490 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9491 (sparc32_register_virtual_type): Ditto.
9492 * sh-tdep.c (sh64_frame_chain): Ditto.
9493 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9494 (sh_nofp_frame_init_saved_regs): Ditto.
9495 (sh64_nofp_frame_init_saved_regs): Ditto.
9496 (sh_fp_frame_init_saved_regs): Ditto.
9497 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9498 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9499 * procfs.c (procfs_fetch_registers): Ditto.
9500 (procfs_store_registers): Ditto.
9501 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9502 (store_inferior_registers, fetch_core_registers): Ditto.
9503 (fetch_kcore_registers, clear_regs): Ditto.
9504 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9505 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9506 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9507 * nlm/i386.c (do_status): Ditto.
9508 * mipsv4-nat.c (supply_gregset): Ditto.
9509 * mips-tdep.c: Ditto for comments.
9510 * mips-nat.c (fetch_inferior_registers): Ditto.
9511 (store_inferior_registers, fetch_core_registers): Ditto.
9512 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9513 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9514 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9515 (i386_do_pop_frame, i386_register_type): Ditto.
9516 * hppa-tdep.c (hppa_frame_chain): Ditto.
9517 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9518 (hppa_pop_frame, hppa_read_fp): Ditto.
9519 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9520 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9521 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9522 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9523 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9524 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9525 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9526 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9527 * blockframe.c: Ditto for comments.
9528 * arch-utils.h: Ditto for comments.
9529 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9530 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9531 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9532 * alpha-tdep.h: Ditto for comments.
9533 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9534 (alpha_cannot_store_register): Ditto.
9535 (alpha_push_dummy_frame): Ditto.
9536 * alpha-nat.c (supply_gregset): Ditto.
9537
9538 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9539 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9540 * config/sparc/tm-sparc.h: Update comment.
9541
9542 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9543 deprecated_read_fp instead of TARGET_READ_FP.
9544 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9545 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9546 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9547 deprecated_read_fp instead of read_fp.
9548 * s390-tdep.c (s390_push_arguments): Ditto.
9549 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9550 * frame.h: Ditto in comments.
9551 * frame.c (legacy_get_prev_frame): Ditto.
9552 * dummy-frame.c (dummy_frame_this_id): Ditto.
9553 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9554
9555 2003-04-28 Andrew Cagney <cagney@redhat.com>
9556
9557 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9558 * gdbarch.h, gdbarch.c: Re-generate.
9559 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9560 * vax-tdep.c (_initialize_vax_tdep): Update.
9561 * v850-tdep.c (_initialize_v850_tdep): Update.
9562 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9563 * s390-tdep.c (_initialize_s390_tdep): Update.
9564 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9565 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9566 * mips-tdep.c (_initialize_mips_tdep): Update.
9567 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9568 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9569 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9570 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9571 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9572 * frv-tdep.c (_initialize_frv_tdep): Update.
9573 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9574 (_initialize_cris_tdep): Update.
9575 * arch-utils.c (legacy_print_insn): Update.
9576 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9577
9578 2003-04-26 Adam Fedor <fedor@gnu.org>
9579
9580 * linespec.c (decode_objc): New function to decode ObjC calls
9581 (decode_line_1): Check for ObjC calls (using decode_objc)
9582 * Makefile (linespec.o): Update dependencies.
9583
9584 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * breakpoint.h (struct breakpoint_ops): New.
9587 (struct breakpoint): Add ops member.
9588
9589 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9590 (mention): Use new breakpoint ops member.
9591 (set_raw_breakpoint): Initialize ops field to NULL.
9592 (print_exception_catchpoint, print_one_exception_catchpoint)
9593 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9594 (gnu_v3_exception_catchpoint_ops): New.
9595 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9596
9597 2003-04-25 Adam Fedor <fedor@gnu.org>
9598
9599 * Makefile.in (COMMON_OBS): Add objc-lang.o
9600
9601 2003-04-25 Andrew Cagney <cagney@redhat.com>
9602
9603 * d10v-tdep.c (print_insn): Delete function.
9604 (display_trace): Use TARGET_PRINT_INSN.
9605 (_initialize_d10v_tdep): Do not set tm_print_insn.
9606 (d10v_gdbarch_init): Set print_insn.
9607
9608 2003-04-25 Andrew Cagney <cagney@redhat.com>
9609
9610 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9611 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9612 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9613 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9614 (nr_dmap_regs, a0_regnum): ... new functions.
9615 (d10v_print_registers_info): Use a0_regnum, use register_size.
9616 (d10v_register_byte): Delete function.
9617 (d10v_register_raw_size): Delete function.
9618 (d10v_register_type): Use a0_regnum.
9619 (d10v_print_registers_info): Use a0_regnum.
9620 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9621 (d10v_gdbarch_init): Do not set register_byte or
9622 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9623 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9624 extract_address.
9625 (trace_command): Use XCALLOC.
9626 (print_insn): Delete reference to tm_print_insn.
9627 (saved_regs_unwinder): Use store_unsigned_integer instead of
9628 store_address.
9629 * frame.h (FRAME_OBSTACK_CALLOC): Define
9630
9631 2003-04-25 David Carlton <carlton@bactrian.org>
9632
9633 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9634
9635 2003-04-24 Adam Fedor <fedor@gnu.org>
9636
9637 * objc-lang.c: Include "valprint.h"
9638 * Makefile.in (objc-lang.o): Update dependencies.
9639
9640 2003-04-24 Adam Fedor <fedor@gnu.org>
9641
9642 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9643 architecture dependant compilation and mark as unimplemented
9644 (until they get put in the gdbarch vector).
9645
9646 2003-04-23 David Carlton <carlton@bactrian.org>
9647
9648 * cp-support.c (cp_find_first_component): Accept 'operator' in
9649 more locations.
9650
9651 2003-04-23 Andrew Cagney <cagney@redhat.com>
9652
9653 * infcall.c (call_function_by_hand): Eliminate redundant
9654 indentation. Move "saved_async" and "old_cleanups" to where they
9655 are needed.
9656
9657 2003-04-23 Andrew Cagney <cagney@redhat.com>
9658
9659 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9660 and "buffer". Move the "name" code to where it is needed.
9661
9662 2003-04-23 Andrew Cagney <cagney@redhat.com>
9663
9664 * infcall.c (call_function_by_hand): Move variables "start_sp",
9665 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9666 code to ON_STACK switch branch.
9667
9668 2003-04-23 Andrew Cagney <cagney@redhat.com>
9669
9670 * infcall.c (call_function_by_hand): Make declaration of "i",
9671 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9672 lint.
9673
9674 2003-04-23 Andrew Cagney <cagney@redhat.com>
9675
9676 * infcall.c (call_function_by_hand): Delete variable
9677 "n_method_args". Localize "param_type"'s declaration to the loop
9678 that it is used. Reinstate code assigning to said variable -
9679 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9680 Rationalize code using "param_type".
9681
9682 2003-04-22 Andrew Cagney <cagney@redhat.com>
9683
9684 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9685 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9686 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9687 to DEPRECATED_PUSH_RETURN_ADDRESS.
9688
9689 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9690
9691 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9692 on the DWARF2 register number prior to fetching a register.
9693
9694 2003-04-22 J. Brobecker <brobecker@gnat.com>
9695
9696 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9697 Update all the tests using SOFT_FLOAT considering the fact that
9698 this macro was always set to 0.
9699 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9700 considering the fact that this macro was always set to 0.
9701 * hppa-tdep.h (hppa_store_return_value): Likewise.
9702 (hppa_extract_return_value): Likewise.
9703
9704 2003-04-22 J. Brobecker <brobecker@gnat.com>
9705
9706 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9707 the hppa-pro target only.
9708
9709 2003-04-21 J. Brobecker <brobecker@gnat.com>
9710
9711 Ongoing multi-arch conversion effort for HP/UX:
9712 * config/pa/tm-hppa.h: Move all macro that are no longer
9713 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9714 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9715
9716 2003-04-21 J. Brobecker <brobecker@gnat.com>
9717
9718 * config/pa/tm-hppa.h: Obsolete a section that was only used
9719 for hppa-pro.
9720
9721 2003-04-21 J. Brobecker <brobecker@gnat.com>
9722
9723 Ongoing multi-arch conversion for HP/UX.
9724 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9725 if already defined (allows hppa64 to stay non-multiarched for now).
9726 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9727
9728 2003-04-21 Andrew Cagney <cagney@redhat.com>
9729
9730 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9731
9732 2003-04-21 Andrew Cagney <cagney@redhat.com>
9733
9734 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9735 "i386_num_mmx_regs".
9736
9737 2003-04-21 Andrew Cagney <cagney@redhat.com>
9738
9739 * infcall.c: New file.
9740 * infcall.h: New file.
9741 * valarith.c: Include "infcall.h".
9742 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9743 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9744 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9745 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9746 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9747 (SFILES): Add "infcall.c"
9748 (COMMON_OBS): Add "infcall.o".
9749 (infcall.o): Specify dependencies.
9750 * value.h (call_function_by_hand): Delete declaration.
9751 * inferior.h (run_stack_dummy): Delete declaration.
9752 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9753 (run_stack_dummy): Move to "infcall.c", merged into
9754 call_function_by_hand.
9755 * valops.c (call_function_by_hand): Moved to "infcall.c".
9756 (find_function_addr, value_arg_coerce): Ditto.
9757 (unwindonsignal_p, coerce_float_to_double): Ditto.
9758 (_initialize_valops): Move "set/show coerce-float-to-double", and
9759 "set/show unwindonsignal" commands to "infcall.c".
9760 * v850-tdep.c, target.h: Update comments.
9761 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9762 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9763 (sh64_init_extra_frame_info): Update comments.
9764 * mn10300-tdep.c: Update comments.
9765 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9766 * config/sparc/tm-sparc.h: Update comments.
9767 * breakpoint.h: Update comments.
9768 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9769 * arm-tdep.c: Update comment.
9770
9771 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9772
9773 * i386-tdep.c (i386_num_register_names): New variable.
9774 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9775 (MM0_REGNUM): Remove redundant parentheses in define.
9776 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9777 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9778 i386_mxcsr_regnum_p): Remove redundant parentheses.
9779 (i386_register_name): Use i386_num_register_names.
9780
9781 * i386-tdep.c (i386_extract_return_value,
9782 i386_store_return_value): Correct check for availability of
9783 floating-point registers.
9784
9785 * i386-tdep.c (i386_frame_num_args): Remove function.
9786 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9787
9788 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9789 mmx_regnum_to_fp_regnum. Adjust all callers.
9790
9791 * i386-tdep.c (i386_get_longjmp_target): Use
9792 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9793 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9794 extract_address.
9795
9796 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9797
9798 * core-regset.c: Update comments to reflect reality. Re-order
9799 includes.
9800 (fetch_core_registers): Use switch instead of if. Remove
9801 redundant prototype.
9802
9803 2003-04-18 Jim Blandy <jimb@redhat.com>
9804
9805 * s390-tdep.c (s390_frame_align): New function.
9806 (s390_gdbarch_init): Register it with the gdbarch object.
9807
9808 2003-04-17 Richard Henderson <rth@redhat.com>
9809
9810 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9811
9812 2003-04-17 Michael Snyder <msnyder@redhat.com>
9813 Karen Bennet <bennet@redhat.com>
9814
9815 Committed by Elena Zannoni <ezannoni@redhat.com>
9816 * gdb_gcore.sh: New script to create a core dump of a process.
9817
9818 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9819
9820 * values.c (value_being_returned): Don't fetch the return
9821 value if the return type is void.
9822
9823 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9824
9825 * thread-db.c: Reindented.
9826
9827 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9828
9829 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9830 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9831 as types.
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9858
9859 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9860 the size of ``long double'' to 16, instead of 8.
9861
9862 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9863
9864 * i386-linux-nat.c: Add some whitespace to make things more
9865 readable.
9866 (fetch_register, store_register, fetch_inferior_registers,
9867 store_inferior_registers): Get rid of assignment in if-statement.
9868 (store_register): Fix typo in error message.
9869
9870 2003-04-16 Andrew Cagney <cagney@redhat.com>
9871
9872 * utils.c (xmmalloc): Always allocate something, matches
9873 libiberty/xmalloc's semantics.
9874 (xmrealloc, xmcalloc): Ditto.
9875
9876 2003-04-16 Andrew Cagney <cagney@redhat.com>
9877
9878 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9879 update comments.
9880 (get_frame_type): Initialize unwind and type when needed.
9881 (get_frame_id, frame_register_unwind): Ditto.
9882
9883 2003-04-16 Andrew Cagney <cagney@redhat.com>
9884
9885 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9886 obsolete.
9887 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9888 * sparcl-stub.c: Obsolete file.
9889 * config/sparc/tm-sparclet.h: Obsolete file.
9890 * sparclet-stub.c: Obsolete file.
9891 * sparclet-rom.c: Obsolete file.
9892 * sparcl-tdep.c: Obsolete file.
9893 * config/sparc/tm-sparclite.h: Obsolete file.
9894 * config/sparc/sparclite.mt: Obsolete file.
9895 * config/sparc/sparclet.mt: Obsolete file.
9896 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9897 sparc86x-*-* obsolete.
9898
9899 2003-04-15 David Carlton <carlton@math.stanford.edu>
9900
9901 * Makefile.in (SFILES): Add cp-namespace.c.
9902 (COMMON_OBS): Add cp-namespace.o.
9903 (block.o): Depend on gdb_obstack_h and cp_support_h.
9904 (buildsym.o): Depend on cp_support_h.
9905 (cp-namespace.o): New.
9906 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9907 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9908 (dwarf2read.o): Depend on cp_support_h.
9909 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9910 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9911 processing_current_namespace.
9912 (read_namespace): Update processing_current_namespace; check for
9913 anonymous namespaces.
9914 (dwarf2_name): New function.
9915 (dwarf2_extension): Ditto.
9916 * cp-support.h: Update copyright, contributors.
9917 Add inclusion guards.
9918 Add opaque declaration for structs obstack, block, symbol.
9919 (struct using_direct): New struct.
9920 Add declarations for cp_find_first_component,
9921 cp_entire_prefix_len, processing_has_namespace_info,
9922 processing_current_namespace, cp_is_anonymous,
9923 cp_add_using_directive, cp_initialize_namespace,
9924 cp_finalize_namespace, cp_set_block_scope,
9925 cp_scan_for_anonymous_namespaces.
9926 * cp-namespace.c: New file.
9927 * cp-support.c: Update copyright.
9928 Include ctype.h, gdb_assert.h, gdbcmd.h.
9929 New variable maint_cplus_cmd_list.
9930 (cp_find_first_component): New function.
9931 (cp_entire_prefix_len, maint_cplus_command)
9932 (first_component_command, _initialize_cp_support): Ditto.
9933 * buildsym.c: Include cp-support.h.
9934 New variable using_list.
9935 (add_symbol_to_list): Check for anonymous namespaces.
9936 (finish_block): Set block's scope.
9937 (start_symtab): Initialize C++ namespace support.
9938 (end_symtab): Finalize C++ namespace support.
9939 * block.h: Add opaque declarations for structs
9940 block_namespace_info, using_direct, and obstack.
9941 Add declarations for block_set_scope and block_set_using.
9942 (struct block): Add 'language_specific' member.
9943 (BLOCK_NAMESPACE): New macro.
9944 * block.c: Include gdb_obstack.h and cp-support.h.
9945 (struct block_namespace_info): New struct.
9946 (block_set_scope): New function.
9947 (block_set_using, block_initialize_namespace): Ditto.
9948
9949 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9950
9951 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9952 (locate_base): Return early if there aren't any link map offsets.
9953 (svr4_solib_create_inferior_hook): Warn if shared library support
9954 is unavailable.
9955
9956 2003-04-14 David Carlton <carlton@math.stanford.edu>
9957
9958 * symtab.c (symbol_set_names): Add prefix when storing Java names
9959 in hash table. Fix for PR java/1039.
9960
9961 2003-04-14 David Carlton <carlton@math.stanford.edu>
9962
9963 * symtab.c (symbol_set_names): Rename 'name' arg to
9964 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9965 * symtab.h: Change 'name' argument in declaration of
9966 symbol_set_names to 'linkage_name'.
9967 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9968
9969 2003-04-14 Andrew Cagney <cagney@redhat.com>
9970
9971 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9972 return the fully sign-extended register value.
9973 (get_frame_pointer): Ditto.
9974 (mips_pop_frame): Initialize "proc_desc" after checking for a
9975 dummy frame.
9976
9977 2003-04-14 Andrew Cagney <cagney@redhat.com>
9978
9979 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9980 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9981 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9982 (mips_push_register): Delete function.
9983 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9984 PUSH_FP_REGNUM.
9985
9986 2003-04-14 Jim Blandy <jimb@redhat.com>
9987
9988 * symmisc.c: #include "gdb_regex.h".
9989 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9990 functions.
9991 * maint.c (maintenance_list_command): New function.
9992 (_initialize_maint_cmds): Register the above as commands.
9993 * symtab.h (maintenance_list_symtabs,
9994 maintenance_list_psymtabs): New declarations.
9995 * cli/cli-cmds.c (maintenancelistlist): New variable.
9996 (init_cmd_lists): Initialize it.
9997 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9998 * gdbcmd.h (maintenancelistlist): New declaration.
9999 * Makefile.in (symmisc.o): Update dependencies.
10000
10001 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
10002
10003 * s390-nat.c: Include asm/types.h for addr_t.
10004
10005 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
10006
10007 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10008 actually incoming type.
10009
10010 2003-04-13 Andrew Cagney <cagney@redhat.com>
10011
10012 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10013 get_next_frame and get_frame_saved_regs.
10014
10015 2003-04-13 Andrew Cagney <cagney@redhat.com>
10016
10017 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10018 of gdbarch_num_regs.
10019
10020 2003-04-13 Andrew Cagney <cagney@redhat.com>
10021
10022 * frame.h: Mention what replaced what in "struct frame_info".
10023 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10024 deprecated_update_frame_base_hack and
10025 deprecated_update_frame_pc_hack.
10026 * hppa-tdep.c: Ditto.
10027
10028 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10029
10030 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10031 to read_reg and update its comment. Remove regnum member.
10032 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10033 Don't call read_reg when setting in_reg. Call read_reg to get
10034 the frame base if it's in a register. Return the register number
10035 on the stack instead of in the context. Remove extra arguments
10036 to read_reg.
10037 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10038 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10039 the register number on the expression stack.
10040 (needs_frame_read_reg): Remove extra arguments.
10041
10042 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10043
10044 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10045 made non-static.
10046 (execute_stack_op): All callers updated.
10047 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10048 * dwarf2loc.c (find_location_expression): New function.
10049 (dwarf_expr_frame_base): Call it.
10050 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10051 (dwarf2_tracepoint_var_ref): New function, broken out from
10052 locexpr_tracepoint_var_ref.
10053 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10054 Make static.
10055 (loclist_read_variable, loclist_read_needs_frame): New functions.
10056 (loclist_describe_location, loclist_tracepoint_var_ref): New
10057 functions.
10058 (dwarf2_loclist_funcs): New struct location_funcs.
10059 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10060 (struct dwarf2_locexpr_baton): Add comments.
10061 (dwarf2_loclist_funcs): New extern.
10062 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10063 base_address and base_known.
10064 (dwarf_loc_buffer): New variable.
10065 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10066 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10067 (dwarf2_has_info): Initialize dwarf_loc_offset.
10068 (dwarf2_build_psymtabs): Read in .debug_loc.
10069 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10070 DWARF_LOC_SIZE.
10071 (psymtab_to_symtab_1): Likewise. Move base address calculation
10072 here, from...
10073 (dwarf2_get_pc_bounds): ... here. Use the base address from
10074 cu_header.
10075 (dwarf2_symbol_mark_computed): Handle location lists.
10076
10077 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10078
10079 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10080 if the linkage name demangled successfully.
10081
10082 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10083
10084 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10085 disassmbly_flavour): Removed.
10086
10087 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10088
10089 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10090
10091 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10092
10093 2003-04-12 Andrew Cagney <cagney@redhat.com>
10094
10095 * frame.h (struct frame_info): Move definition from here ...
10096 * frame.c (struct frame_info): ... to here.
10097
10098 2003-04-12 Andrew Cagney <cagney@redhat.com>
10099
10100 * gdbthread.h (save_infrun_state): Delete parameter
10101 "prev_func_start".
10102 (struct thread_info): Delete field "prev_func_start".
10103 (load_infrun_state): Ditto.
10104 * thread.c (load_infrun_state, save_infrun_state): Update.
10105 * infrun.c (prev_func_start): Delete variable.
10106 (context_switch, init_wait_for_inferior): Update.
10107 (stop_stepping, keep_going): Update.
10108
10109 2003-04-12 Andrew Cagney <cagney@redhat.com>
10110
10111 * gdbarch.sh: Add missing opaque declarations.
10112 * gdbarch.h: Regnerate.
10113 * symtab.h: Add missing opaque declarations.
10114 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10115 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10116 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10117 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10118 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10119 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10120 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10121 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10122 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10123 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10124 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10125 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10126 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10127
10128 2003-04-11 Andrew Cagney <cagney@redhat.com>
10129
10130 * frame.c (get_frame_id): Return this frame's "id".
10131 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10132 function start.
10133 (legacy_saved_regs_this_id): Replace function body with
10134 internal-error.
10135 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10136 FRAME_OBSTACK_ZALLOC.
10137 (create_new_frame): Mark the frame ID as valid.
10138
10139 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10140
10141 * Makefile.in (libbfd_h): Added missing setting.
10142 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10143 according to the selected ABI.
10144
10145 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10146
10147 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10148
10149 2003-04-11 Andrew Cagney <cagney@redhat.com>
10150
10151 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10152 SAVED_PC_AFTER_CALL.
10153 * gdbarch.h, gdbarch.c: Regenerate.
10154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10155 * x86-64-tdep.c (x86_64_init_abi): Update.
10156 * vax-tdep.c (vax_gdbarch_init): Update.
10157 * v850-tdep.c (v850_gdbarch_init): Update.
10158 * sparc-tdep.c (sparc_gdbarch_init): Update.
10159 * sh-tdep.c (sh_gdbarch_init): Update.
10160 * s390-tdep.c (s390_gdbarch_init): Update.
10161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10164 * mips-tdep.c (mips_gdbarch_init): Update.
10165 * mcore-tdep.c (mcore_gdbarch_init): Update.
10166 * m68k-tdep.c (m68k_gdbarch_init): Update.
10167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10168 * ia64-tdep.c (ia64_gdbarch_init): Update.
10169 (ia64_saved_pc_after_call): Update declaration.
10170 * i386ly-tdep.c (i386lynx_init_abi): Update.
10171 * i386-tdep.c (i386_gdbarch_init): Update.
10172 * hppa-tdep.c (hppa_gdbarch_init): Update.
10173 * h8300-tdep.c (h8300_gdbarch_init): Update.
10174 * frv-tdep.c (frv_gdbarch_init): Update.
10175 * cris-tdep.c (cris_gdbarch_init): Update.
10176 * avr-tdep.c (avr_gdbarch_init): Update.
10177 * arm-tdep.c (arm_gdbarch_init): Update.
10178 * alpha-tdep.c (alpha_gdbarch_init): Update.
10179 * ns32knbsd-nat.c (frame_num_args): Update.
10180 * ns32k-tdep.c (umax_frame_num_args): Update.
10181 * mips-tdep.c (mips_init_frame_pc_first): Update.
10182 * infrun.c (step_over_function): Update.
10183 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10184 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10185 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10186 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10187 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10188 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10189 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10190 * arch-utils.c (init_frame_pc_default): Update.
10191 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10192 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10193 declaration.
10194
10195 2003-04-11 Andrew Cagney <cagney@redhat.com>
10196
10197 * i387-tdep.c: Update copyright.
10198 (i387_to_double): Delete function.
10199 (double_to_i387): Delete function.
10200
10201 2003-04-10 Andrew Cagney <cagney@redhat.com>
10202
10203 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10204 frame's function's address. Simplify.
10205 (d10v_frame_unwind_cache): Check that the frame's function is
10206 non-zero.
10207
10208 2003-04-10 Jim Blandy <jimb@redhat.com>
10209
10210 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10211 call to set_gdbarch_deprecated_push_arguments.
10212
10213 2003-04-10 Andrew Cagney <cagney@redhat.com>
10214
10215 * frame.c (fprint_frame_id): New function.
10216 (fprint_frame_type, fprint_frame): New function.
10217 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10218 (create_sentinel_frame, get_frame_id): Ditto.
10219 (frame_id_p, frame_id_eq): Ditto.
10220 (frame_id_inner, create_new_frame): Ditto.
10221 (legacy_get_prev_frame, get_prev_frame): Ditto.
10222 (deprecated_update_frame_pc_hack): Ditto.
10223 (frame_register_unwind): Ditto.
10224 (deprecated_update_frame_base_hack): Ditto.
10225
10226 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10227
10228 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10229 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10230 frame_chain function.
10231 * Makefile.in: Add dependencies due to above change.
10232
10233 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10234
10235 * blockframe.c (legacy_frame_chain_valid): Move call to
10236 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10237 inside_entry_file.
10238
10239 2003-04-09 Andrew Cagney <cagney@redhat.com>
10240
10241 * frame.h (struct frame_id): Replace "pc" and "base" with
10242 "stack_addr" and "code_addr". Update comments.
10243 (frame_id_build): Update parameter names and comment.
10244 (struct frame_info): Replace "id_p" and "id" with "this_id".
10245 * dummy-frame.c (dummy_frame_this_id): Update.
10246 * breakpoint.c (print_one_breakpoint): Update.
10247 * frame.c (get_frame_id): Update.
10248 (get_frame_base, frame_id_build): Update.
10249 (create_sentinel_frame, legacy_get_prev_frame): Update.
10250 (deprecated_update_frame_base_hack): Update.
10251 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10252 (frame_id_inner): Ditto.
10253
10254 2003-04-09 Andrew Cagney <cagney@redhat.com>
10255
10256 * defs.h (gdb_print_host_address): Make "addr" parameter a
10257 pointer constant.
10258 * utils.c (gdb_print_host_address): Update.
10259
10260 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10261
10262 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10263 register number for R0 is 0.
10264
10265 2003-04-09 J. Brobecker <brobecker@gnat.com>
10266
10267 * frame.h (struct gdbarch): Add opaque structure definition
10268 to avoid a compilation warning on LynxOS 4.0.
10269
10270 2003-04-09 Andrew Cagney <cagney@redhat.com>
10271
10272 * frame.h (struct frame_info): Delete field "pc". Replace
10273 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10274 structure.
10275 * frame.c (frame_pc_unwind): Update.
10276 (create_sentinel_frame): Do not set "pc".
10277 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10278 (get_frame_pc): Call frame_pc_unwind.
10279 (deprecated_update_frame_pc_hack): Update.
10280 (create_new_frame): Use "pc" not "->pc".
10281
10282 2003-04-09 Andrew Cagney <cagney@redhat.com>
10283
10284 * frame.c (get_frame_id): Eliminate code updating "frame".
10285 (legacy_get_prev_frame): Ditto.
10286 (get_frame_base): Return id.base directly.
10287 (deprecated_update_frame_base_hack): Update "id.base".
10288 * frame.h (struct frame_info): Delete field "frame".
10289
10290 2003-04-09 Andrew Cagney <cagney@redhat.com>
10291
10292 * NEWS: Mention that the "Sequent family" is obsolete.
10293 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10294 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10295 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10296 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10297 * config/i386/tm-ptx4.h: Obsolete file.
10298 * config/i386/tm-ptx.h: Obsolete file.
10299 * symm-tdep.c: Obsolete file.
10300 * config/i386/symmetry.mt: Obsolete file.
10301 * config/i386/tm-symmetry.h: Obsolete file.
10302 * symm-nat.c: Obsolete file.
10303 * config/i386/nm-symmetry.h: Obsolete file.
10304 * config/i386/xm-symmetry.h: Obsolete file.
10305 * config/i386/symmetry.mh: Obsolete file.
10306 * config/i386/nm-ptx4.h: Obsolete file.
10307 * config/i386/ptx4.mh: Obsolete file.
10308 * config/i386/ptx.mt: Obsolete file.
10309 * config/i386/ptx.mh: Obsolete file.
10310 * config/i386/xm-ptx4.h: Obsolete file.
10311 * config/i386/xm-ptx.h: Obsolete file.
10312
10313 2003-04-09 Andrew Cagney <cagney@redhat.com>
10314
10315 Obsolete mips*-*-mach3*.
10316 * NEWS: Mention that mips*-*-mach3* is obsolete.
10317 * m3-nat.c: Obsolete file.
10318 * config/nm-m3.h: Obsolete file.
10319 * config/mips/tm-mipsm3.h: Obsolete file.
10320 * config/mips/mipsm3.mt: Obsolete file.
10321 * config/mips/mipsm3.mh: Obsolete file.
10322 * config/mips/xm-mipsm3.h: Obsolete file.
10323 * mipsm3-nat.c: Obsolete file.
10324 * configure.host: Obsolete mips-dec-mach3*.
10325 * configure.tgt: Obsolete mips*-*-mach3*.
10326
10327 2003-04-09 Andrew Cagney <cagney@redhat.com>
10328
10329 * doublest.h: Update copyright.
10330 (deprecated_store_floating, deprecated_extract_floating): Rename
10331 store_floating and extract_floating. Update comments.
10332 * doublest.c: Update copyright.
10333 (extract_floating_by_length): Replace extract_floating.
10334 (store_floating_by_length): Replace store_floating.
10335 (deprecated_extract_floating): New function.
10336 (deprecated_store_floating): New function.
10337 (extract_typed_floating): Call extract_floating_by_length.
10338 (store_typed_floating): Call store_floating_by_length.
10339 * x86-64-tdep.c (x86_64_store_return_value): Update.
10340 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10341 (sh64_extract_return_value): Update.
10342 (sh_sh4_register_convert_to_virtual): Update.
10343 (sh_sh64_register_convert_to_virtual): Update.
10344 (sh_sh4_register_convert_to_raw): Update.
10345 (sh_sh64_register_convert_to_raw): Update.
10346 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10347 (rs6000_register_convert_to_raw): Update.
10348 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10349 (ia64_register_convert_to_raw): Update.
10350 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10351 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10352 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10353 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10354 (alpha_register_convert_to_raw): Update.
10355
10356 2003-04-08 Andrew Cagney <cagney@redhat.com>
10357
10358 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10359 * gdbarch.h, gdbarch.c: Re-generate.
10360 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10361 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10362 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10363 conditionally, use frame_pc_unwind as an alternative. Add
10364 comments.
10365 * arch-utils.c (init_frame_pc_default): Only call
10366 SAVED_PC_AFTER_CALL when available.
10367
10368 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10369
10370 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10371 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10372 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10373 (start_remote): Ditto.
10374 (handle_inferior_event): Ditto.
10375 (save_inferior_status): Ditto.
10376 (restore_inferior_status): Ditto.
10377 * infcmd.c (attach_command): Ditto.
10378 * fork-child.c (startup_inferior): Ditto.
10379 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10380 * alpha-tdep.c (heuristic_proc_start): Ditto.
10381 * mips-tdep.c (heuristic_proc_start): Ditto.
10382 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10383 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10384 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10385 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10386 * remote-vx.c (vx_create_inferior): Ditto.
10387
10388 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10389
10390 * infrun.c (stop_soon_quietly): Make it an enum, to better
10391 override the default behavior of handle_inferior_event.
10392 (clear_proceed_status): Update uses of stop_soon_quietly to
10393 reflect that it is now an enum.
10394 (start_remote): Ditto.
10395 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10396 is set to handle the new GNU/Linux kernel behavior for
10397 attach/sigstop. Update uses of stop_soon_quietly.
10398 * inferior.h (enum stop_kind): New enum.
10399 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10400 Reset normal handle_inferior_event behavior, afterwards.
10401 * fork-child.c (startup_inferior): Update.
10402 * alpha-tdep.c (heuristic_proc_start): Update.
10403 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10404 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10405 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10406 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10407 * remote-vx.c (vx_create_inferior): Update.
10408 * mips-tdep.c (heuristic_proc_start): Update.
10409
10410 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10411
10412 * disasm.c (dump_insns): Move variables inside loop, or they will
10413 be freed more than once, causing wild memory corruptions.
10414 (gdb_disassembly): Look for the substring "-thread",
10415 instead of "-threads" in the target name, to make sure to find
10416 the 'multi-thread' target. Also, make sure we do the right thing
10417 with the "core" target.
10418
10419 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10420
10421 * mips-tdep.c (mips_print_fp_register): New function, created from
10422 do_fp_register_row(). Registers are now (also) printed as hex.
10423 Only one register is printed per row.
10424 (mips_print_register, do_fp_register_row): Print floating point
10425 registers with mips_print_fp_register().
10426
10427 2003-04-06 Andrew Cagney <cagney@redhat.com>
10428
10429 * valprint.h (inspect_it): Add extern declaration.
10430 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10431 (selectors_info, classes_info): Ditto.
10432 (find_objc_msgcall): Fix indentation.
10433 (objc_printstr): Delete extern declarations.
10434
10435 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10436
10437 2003-04-06 Andrew Cagney <cagney@redhat.com>
10438
10439 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10440 Update comment.
10441 * frame.c (legacy_saved_regs_this_id): Update.
10442 (legacy_get_prev_frame): Update.
10443 * xstormy16-tdep.c: Update comment.
10444 * sparc-tdep.c (sparc_frame_chain): Update comment.
10445 * blockframe.c (legacy_frame_chain_valid): Update.
10446
10447 2003-04-06 Andrew Cagney <cagney@redhat.com>
10448
10449 * valprint.c (val_print_type_code_int): Delete #ifdef
10450 PRINT_TYPELESS_INTEGER code.
10451
10452 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10453 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10454 multi-arch definition.
10455 * gdbarch.h: Re-generate.
10456
10457 2003-04-05 Andrew Cagney <cagney@redhat.com>
10458
10459 Eliminate FRAME_FIND_SAVED_REGS.
10460 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10461 Change FSR parameter to a pointer.
10462 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10463 Assume FSR parameter is a pointer.
10464 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10465 Make fsr a pointer.
10466 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10467 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10468 saved_regs a pointer.
10469 (hppa_frame_saved_pc): Ditto.
10470 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10471 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10472 pointer.
10473 (restore_pc_queue): Make fsr a pointer.
10474 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10475 (hppa_frame_chain): Make saved_regs a pointer, call
10476 hppa_frame_init_saved_regs.
10477 * sparc-tdep.c: Include "gdb_assert.h".
10478 (sparc_frame_find_saved_regs): Replace internal_error with
10479 gdb_assert.
10480 * remote-vxsparc.c (vx_read_register): Delete reference to
10481 FRAME_FIND_SAVED_REGS.
10482 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10483 * gdbarch.h: Regenerate.
10484 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10485 (deprecated_get_frame_saved_regs): Delete declaration.
10486 (struct frame_saved_regs): Delete definition.
10487 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10488 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10489 (hppa_frame_find_saved_regs): Delete declaration.
10490 (FRAME_FIND_SAVED_REGS): Delete macro.
10491 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10492 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10493 FRAME_FIND_SAVED_REGS in comment.
10494
10495 2003-04-05 Andrew Cagney <cagney@redhat.com>
10496
10497 * frame.c (frame_func_unwind, get_frame_func): New functions.
10498 * frame.h (get_frame_func, frame_func_unwind): Declare.
10499 (struct frame_info): Add field "prev_func" for caching the
10500 previous frame's function address.
10501 * arm-tdep.c (arm_frameless_function_invocation): Combine
10502 get_pc_function_start and get_frame_pc into get_frame_func.
10503 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10504 (sh64_nofp_frame_init_saved_regs): Ditto.
10505 * s390-tdep.c (s390_function_start): Ditto.
10506 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10507 (rs6000_frameless_function_invocation): Ditto.
10508 (rs6000_frame_saved_pc): Ditto.
10509 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10510 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10511 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10512 (i386_frame_init_saved_regs): Ditto.
10513 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10514 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10515 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10516 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10517 * blockframe.c (frameless_look_for_prologue): Ditto.
10518
10519 2003-04-05 Andrew Cagney <cagney@redhat.com>
10520
10521 * frame.c (legacy_get_prev_frame): Link prev to next at the
10522 function start. Update comments.
10523
10524 2003-04-05 Andrew Cagney <cagney@redhat.com>
10525
10526 * frame.c (get_frame_id): Update comment.
10527 (legacy_get_prev_frame): Update comment.
10528 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10529 * gdbarch.h: Regenerate.
10530 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10531 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10532
10533 2003-04-05 Andrew Cagney <cagney@redhat.com>
10534
10535 * stack.c (print_frame_info): Use get_frame_pc.
10536
10537 2003-04-04 Andrew Cagney <cagney@redhat.com>
10538
10539 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10540 the frame's type from the unwinder.
10541 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10542 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10543 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10544 (get_frame_base_address): Use get_frame_type.
10545 (get_frame_locals_address, get_frame_args_address): Ditto.
10546 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10547 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10548 (struct frame_info): Add comment explaining why the frame contains
10549 a "type" field.
10550 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10551 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10552 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10553 NORMAL_FRAME.
10554 * frame-unwind.h: Include "frame.h".
10555 (struct frame_unwind): Add "type" field.
10556 * Makefile.in (frame_unwind_h): Add $(frame_h).
10557
10558 2003-04-04 Andrew Cagney <cagney@redhat.com>
10559
10560 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10561 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10562 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10563 get_frame_base.
10564 (d10v_unwind_dummy_id): Use frame_id_build.
10565 * frame.c (find_frame_sal): Use get_frame_pc.
10566 (create_new_frame): Use deprecated_update_frame_pc_hack and
10567 deprecated_update_frame_base_hack.
10568 (create_sentinel_frame): Add comment about ->pc going away.
10569 (get_prev_frame): Add comment about ->pc going away.
10570 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10571 frame_id_build, deprecated_update_frame_pc_hack and
10572 deprecated_update_frame_base_hack.
10573 (select_frame): Use get_frame_pc.
10574 (legacy_saved_regs_this_id): Use frame_id_build.
10575
10576 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10577
10578 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10579 signed integer case.
10580 (classify_argument): Handle enumerations and references.
10581
10582 2003-04-04 Andrew Cagney <cagney@redhat.com>
10583
10584 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10585 ID to NULL.
10586
10587 2003-04-01 Adam Fedor <fedor@gnu.org>
10588
10589 * gdb/objc-lang.c (selectors_info): Replace calls to
10590 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10591 SYMBOL_NATURAL_NAME.
10592 (classes_info, find_methods): Likewise.
10593
10594 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10595
10596 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10597 ``mach'' to the value determined by bfd_default_set_arch_mach().
10598
10599 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10600
10601 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10602 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10603 (mi-cmd-file.o): Update dependencies.
10604
10605 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10606
10607 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10608 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10609
10610 2003-04-01 Adam Fedor <fedor@gnu.org>
10611
10612 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10613 * language.h (struct language_defn): Add la_demangle.
10614 (language_demangle): Declare.
10615 * language.c (language_demangle): New function.
10616 (unk_lang_demangle): Likewise.
10617 (unknown_language_defn, auto_language_defn, local_language_defn):
10618 Add ukn_lang_demangle.
10619 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10620 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10621 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10622 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10623 * jv-lang.c (java_demangle): New function
10624 (java_language_defn): Use it for la_demangle element.
10625 * objc-lang.c (objc_demangle): Add options argument
10626 (objc_language_defn): Use objc_demangle for la_demangle element.
10627 * maint.c (maintenance_demangle): Replace switch with
10628 call to language_demangle.
10629 * utils.c (fprintf_symbol_filtered): Likewise.
10630
10631 2003-04-01 Andrew Cagney <cagney@redhat.com>
10632
10633 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10634 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10635 PRINT_TYPELESS_INTEGER.
10636 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10637 PUSH_RETURN_ADDRESS.
10638
10639 2003-04-01 Andrew Cagney <cagney@redhat.com>
10640
10641 * Makefile.in (d10v-tdep.o): Update dependencies.
10642 * d10v-tdep.c: Include "frame-base.h".
10643 (d10v_frame_unwind): Make constant.
10644 (d10v_frame_base_address): New function.
10645 (d10v_frame_base): New variable.
10646 (d10v_gdbarch_init): Set frame_base default.
10647 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10648 comment for base.
10649 (d10v_frame_unwind_cache): Set and use "prev_sp".
10650 (d10v_frame_this_id): Use the previous frame's inner most stack
10651 address and this frame's func address for the frame ID. Use
10652 frame_id_build. Don't analyze beyond the current instruction.
10653
10654 2003-04-01 Andrew Cagney <cagney@redhat.com>
10655
10656 * frame.h (get_frame_locals_address, get_frame_args_address):
10657 Refer to the base address, instead of the address of the first
10658 local or parameter.
10659
10660 2003-04-01 Andrew Cagney <cagney@redhat.com>
10661
10662 Add frame debug info addresses:
10663 * frame-base.c: New file.
10664 * frame-base.h: New file.
10665 * frame.h (struct frame_base): Add opaque declaration.
10666 (get_frame_base): Update comment.
10667 (get_frame_base_address): Declare.
10668 (get_frame_locals_address): Declare.
10669 (get_frame_args_address): Declare.
10670 (struct frame_info): Add "base" and "base_cache". Update
10671 comments on the unwinder.
10672 * frame.c: Include "frame-base.h".
10673 (get_frame_locals_address): New function.
10674 (get_frame_base_address): New function.
10675 (get_frame_args_address): New function.
10676 * findvar.c (read_var_value): Use get_frame_locals_address and
10677 get_frame_args_address.
10678 * stack.c (frame_info): Use get_frame_locals_address and
10679 get_frame_args_address.
10680 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10681 moved to "frame-base.c".
10682 * printcmd.c (print_frame_nameless_args): Ditto.
10683 * symtab.h (address_class): Update comments.
10684 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10685 get_frame_base_address.
10686 * dwarf2expr.c (execute_stack_op): Ditto.
10687 * Makefile.in (frame_base_h): Define.
10688 (frame.o): Update dependencies.
10689 (frame-base.o): Add dependencies.
10690 (SFILES): Add frame-base.c.
10691 (COMMON_OBS): Add frame-base.o.
10692
10693 2003-04-01 Andrew Cagney <cagney@redhat.com>
10694
10695 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10696 CALL_DUMMY_LENGTH): Ditto.
10697 * gdbarch.c: Re-generate.
10698 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10699 (CALL_DUMMY_LENGTH): Delete macro.
10700 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10701 * arm-tdep.c (arm_gdbarch_init): Ditto.
10702 * avr-tdep.c (avr_gdbarch_init): Ditto.
10703 * cris-tdep.c (cris_gdbarch_init): Ditto.
10704 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10705 * frv-tdep.c (frv_gdbarch_init): Ditto.
10706 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10707 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10708 * i386-tdep.c (i386_gdbarch_init): Ditto.
10709 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10711 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10712 * mips-tdep.c (mips_gdbarch_init): Ditto.
10713 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10714 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10715 * s390-tdep.c (s390_gdbarch_init): Ditto.
10716 * sh-tdep.c (sh_gdbarch_init): Ditto.
10717 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10718 * v850-tdep.c (v850_gdbarch_init): Ditto.
10719 * vax-tdep.c (vax_gdbarch_init): Ditto.
10720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10721
10722 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10723
10724 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10725
10726 2003-04-01 Andrew Cagney <cagney@redhat.com>
10727
10728 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10729 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10730 * gdbarch.h, gdbarch.c: Re-generate.
10731 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10732 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10733 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10734 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10735 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10736 * infcmd.c (run_stack_dummy): Simplify assuming
10737 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10738 * infrun.c (handle_inferior_event): Ditto.
10739 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10740 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10741 * arm-tdep.c (arm_gdbarch_init): Ditto.
10742 * avr-tdep.c (avr_gdbarch_init): Ditto.
10743 * cris-tdep.c (cris_gdbarch_init): Ditto.
10744 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10745 * frv-tdep.c (frv_gdbarch_init): Ditto.
10746 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10747 * i386-tdep.c (i386_gdbarch_init): Ditto.
10748 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10750 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10751 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10752 * mips-tdep.c (mips_gdbarch_init): Ditto.
10753 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10754 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10755 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10756 * s390-tdep.c (s390_gdbarch_init): Ditto.
10757 * sh-tdep.c (sh_gdbarch_init): Ditto.
10758 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10759 * v850-tdep.c (v850_gdbarch_init): Ditto.
10760 * vax-tdep.c (vax_gdbarch_init): Ditto.
10761 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10762
10763 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10764
10765 * symfile.c (symfile_relocate_debug_section): Update call to
10766 bfd_simple_get_relocated_section_contents.
10767
10768 2003-03-31 Andrew Cagney <cagney@redhat.com>
10769
10770 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10771 * gdbarch.h, gdbarch.c: Regenerate.
10772 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10773 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10774 available.
10775 * frame.h (generic_fix_call_dummy): Delete declaration.
10776 * dummy-frame.h: Update comment.
10777 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10779 fix_call_dummy.
10780 * sh-tdep.c (sh_gdbarch_init): Ditto.
10781 * s390-tdep.c (s390_gdbarch_init): Ditto.
10782 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10783 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10784 * m68hc11-tdep.c (m68hc11_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 * avr-tdep.c (avr_gdbarch_init): Ditto.
10792 * arm-tdep.c (arm_gdbarch_init): Ditto.
10793
10794 2003-03-31 J. Brobecker <brobecker@gnat.com>
10795
10796 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10797 (INIT_FRAME_AP): Likewise.
10798 (EXTRA_FRAME_INFO): Likewise.
10799
10800 2003-03-31 Andrew Cagney <cagney@redhat.com>
10801
10802 * gdbarch.sh: Include "symfile.h".
10803 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10804 * gdbarch.h, gdbarch.c: Re-generate.
10805 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10807 call_dummy_address, the default is at entry_point_address.
10808 * v850-tdep.c (v850_gdbarch_init): Ditto.
10809 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10810 * sh-tdep.c (sh_gdbarch_init): Ditto.
10811 * s390-tdep.c (s390_gdbarch_init): Ditto.
10812 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10813 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10814 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10815 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10816 * i386-tdep.c (i386_gdbarch_init): Ditto.
10817 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10818 * frv-tdep.c (frv_gdbarch_init): Ditto.
10819 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10820 * cris-tdep.c (cris_gdbarch_init): Ditto.
10821 * arm-tdep.c (arm_gdbarch_init): Ditto.
10822
10823 2003-03-31 Andrew Cagney <cagney@redhat.com>
10824
10825 * gdbarch.sh (CALL_DUMMY_P): Delete.
10826 * gdbarch.h, gdbarch.c: Re-generate.
10827 * inferior.h (CALL_DUMMY_P): Delete macro.
10828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10829 * vax-tdep.c (vax_gdbarch_init): Update.
10830 * v850-tdep.c (v850_gdbarch_init): Update.
10831 * sparc-tdep.c (sparc_gdbarch_init): Update.
10832 * sh-tdep.c (sh_gdbarch_init): Update.
10833 * s390-tdep.c (s390_gdbarch_init): Update.
10834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10835 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10836 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10837 * mips-tdep.c (mips_gdbarch_init): Update.
10838 * mcore-tdep.c (mcore_gdbarch_init): Update.
10839 * m68k-tdep.c (m68k_gdbarch_init): Update.
10840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10841 * ia64-tdep.c (ia64_gdbarch_init): Update.
10842 * i386-tdep.c (i386_gdbarch_init): Update.
10843 * h8300-tdep.c (h8300_gdbarch_init): Update.
10844 * frv-tdep.c (frv_gdbarch_init): Update.
10845 * d10v-tdep.c (d10v_gdbarch_init): Update.
10846 * cris-tdep.c (cris_gdbarch_init): Update.
10847 * breakpoint.c (deprecated_frame_in_dummy): Update.
10848 * avr-tdep.c (avr_gdbarch_init): Update.
10849 * alpha-tdep.c (alpha_gdbarch_init): Update.
10850 * arm-tdep.c (arm_gdbarch_init): Update.
10851 * dummy-frame.c (dummy_frame_this_id): Update comments.
10852 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10853 * frame.c (legacy_get_prev_frame): Ditto.
10854 * valops.c (call_function_by_hand): Delete function.
10855 (hand_function_call): Rename to call_function_by_hand
10856
10857 2003-03-30 Andrew Cagney <cagney@redhat.com>
10858
10859 2002-11-10 Klee Dienes <kdienes@apple.com>
10860 * value.h (struct value): Update comment.
10861
10862 2003-03-30 Andrew Cagney <cagney@redhat.com>
10863
10864 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10865 D10V_FP_REGNUM.
10866 (d10v_gdbarch_init): Do not set fp_regnum.
10867
10868 * frame.c (get_frame_base): Force ID initialization.
10869 (get_prev_frame): Move computation of the frame ID from here ...
10870 (get_frame_id): ... to here.
10871 (legacy_get_prev_frame): Mark the frame ID as valid.
10872 * frame.h (struct frame_info): Add field "id_p".
10873
10874 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10875
10876 * i386-tdep.c (i386_store_struct_return): Removed.
10877 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10878
10879 2003-03-30 Andrew Cagney <cagney@redhat.com>
10880
10881 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10882 * gdbarch.h, gdbarch.c: Regenerate.
10883 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10885 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10886 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10887 * i386-tdep.c (i386_gdbarch_init): Ditto.
10888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10889 * cris-tdep.c (cris_gdbarch_init): Ditto.
10890 * vax-tdep.c (vax_gdbarch_init): Ditto.
10891 * s390-tdep.c (s390_gdbarch_init): Ditto.
10892 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10893 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10894 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10895 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10896 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10897 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10898 * sparc-tdep.c (sparc_gdbarch_init): Update.
10899 * sh-tdep.c (sh_gdbarch_init): Update.
10900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10901 * mips-tdep.c (mips_gdbarch_init): Update.
10902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10903 * ia64-tdep.c (ia64_gdbarch_init): Update.
10904 * frv-tdep.c (frv_gdbarch_init): Update.
10905 * avr-tdep.c (avr_gdbarch_init): Update.
10906 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10907 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10908 instead of when push_dummy_call is not available.
10909
10910 2003-03-30 Andrew Cagney <cagney@redhat.com>
10911
10912 * infttrace.c: Include "gdbthread.h".
10913 (parent_attach_all): Fix function signature.
10914 (call_ptrace): Update call.
10915 * Makefile.in (infttrace.o): Update dependencies.
10916
10917 2003-03-30 Andrew Cagney <cagney@redhat.com>
10918
10919 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10920 PUSH_RETURN_ADDRESS.
10921 * gdbarch.h, gdbarch.c: Regenerate.
10922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10923 * x86-64-tdep.c (x86_64_init_abi): Update.
10924 * v850-tdep.c (v850_gdbarch_init): Update.
10925 * sparc-tdep.c (sparc_gdbarch_init): Update.
10926 * sh-tdep.c (sh_gdbarch_init): Update.
10927 * s390-tdep.c (s390_gdbarch_init): Update.
10928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10929 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10930 * mips-tdep.c (mips_gdbarch_init): Update.
10931 * mcore-tdep.c (mcore_gdbarch_init): Update.
10932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10933 * ia64-tdep.c (ia64_gdbarch_init): Update.
10934 * i386-tdep.c (i386_gdbarch_init): Update.
10935 * h8300-tdep.c (h8300_gdbarch_init): Update.
10936 * frv-tdep.c (frv_gdbarch_init): Update.
10937 * cris-tdep.c (cris_gdbarch_init): Update.
10938 * avr-tdep.c (avr_gdbarch_init): Update.
10939 * arm-tdep.c (arm_gdbarch_init): Update.
10940 * valops.c (hand_function_call): Update.
10941
10942 2003-03-29 Andrew Cagney <cagney@redhat.com>
10943
10944 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10945 sizeof_call_dummy_words.
10946 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10947 define.
10948 * gdbarch.h: Regenerate.
10949
10950 2003-03-29 Andrew Cagney <cagney@redhat.com>
10951
10952 * infttrace.h: New file.
10953 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10954 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10955 (hpread_read_doc_function_type): Detect an initialized type1.
10956 (hpread_quick_traverse): Initialize mod_name_string.
10957 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10958 (som_solib_get_solib_by_pc): Declare.
10959 (so_lib_thread_start_addr): Declare.
10960 (no_shared_libraries): Declare.
10961 * somread.c (init_import_symbols): Make static. Add forward
10962 declaration.
10963 * config/pa/nm-hppah.h: Include "infttrace.h" for
10964 parent_attach_all.
10965 (hppa_insert_hw_watchpoint): Declare.
10966 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10967 * hppah-nat.c: Include "gdb_string.h".
10968 (parent_attach_all): Delete extern declaration, moved to
10969 "infttrace.h".
10970 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10971 int.
10972 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10973 * Makefile.in (infttrace_h): Define.
10974 (hpread.o): Update dependencies.
10975 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10976 * hppa-hpux-tdep.c: Include "gdb_string.h".
10977 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10978 * infrun.c (handle_inferior_event): Always initialize
10979 stepped_after_stopped_by_watchpoint. Add default and remove
10980 fallthrough in switch statement.
10981 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10982 parameter to int.
10983 (hppa_remove_hw_watchpoint): Ditto.
10984
10985 2003-03-29 Andrew Cagney <cagney@redhat.com>
10986
10987 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10988 offset.
10989
10990 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10991
10992 * arm-tdep.c (arm_push_arguments): Delete.
10993 (struct stack_item): New type.
10994 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10995 (arm_store_struct_return): Delte.
10996 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10997 arm_push_arguments or arm_store_struct_return.
10998
10999 2003-03-28 Andrew Cagney <cagney@redhat.com>
11000
11001 * Makefile.in (d10v-tdep.o): Update dependencies.
11002 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11003 * d10v-tdep.c: Include "remote.h".
11004 (target_resume_hook): Delete extern declaration.
11005 (target_wait_loop_hook): Ditto.
11006 (tdisassemble_command): Eliminate assignment in "if" conditional.
11007 (d10v_ts2_register_sim_regno): Eliminate call to
11008 legacy_register_sim_regno.
11009 (d10v_ts3_register_sim_regno): Ditto.
11010
11011 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11012
11013 * thread.c: Reindented.
11014 * lin-lwp.c: Ditto.
11015 * linux-proc.c: Ditto.
11016
11017 2003-03-28 Bob Rossi <bob_rossi@cox.net>
11018
11019 * MAINTAINERS (write after approval): Add myself.
11020
11021 2003-03-27 Theodore A. Roth <troth@openavr.org>
11022
11023 * objc-exp.y: Add missing semi-colons.
11024
11025 2003-03-27 Andrew Cagney <cagney@redhat.com>
11026
11027 * regcache.c (write_sp): Delete function and references.
11028 * inferior.h (write_sp): Delete declaration.
11029 * valops.c (hand_function_call): Replace write_sp with
11030 TARGET_WRITE_SP.
11031 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11032 (sparc_pop_frame): Ditto.
11033
11034 2003-03-27 Andrew Cagney <cagney@redhat.com>
11035
11036 * NEWS: Mention removal of support for hppa*-*-bsd* and
11037 hppa*-*-osf* natives, and hppa*-*-pro* target.
11038 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11039 * config/pa/xm-pa.h: Obsolete file.
11040 * config/pa/xm-hppab.h: Obsolete file.
11041 * config/pa/nm-hppab.h: Obsolete file.
11042 * config/pa/tm-hppab.h: Obsolete file.
11043 * config/pa/tm-hppao.h: Obsolete file.
11044 * config/pa/nm-hppao.h: Obsolete file.
11045 * config/pa/tm-pro.h: Obsolete file.
11046 * config/pa/hppaosf.mt: Obsolete file.
11047 * config/pa/hppaosf.mh: Obsolete file.
11048 * config/pa/hppapro.mt: Obsolete file.
11049 * config/pa/hppabsd.mt: Obsolete file.
11050 * config/pa/hppabsd.mh: Obsolete file.
11051 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11052 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11053 hppa*-*-osf*.
11054
11055 2003-03-27 Andrew Cagney <cagney@redhat.com>
11056
11057 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11058 push_arguments. Don't set push_return_address or write_sp.
11059 (d10v_push_dummy_call): Replace d10v_push_arguments.
11060 (d10v_push_return_address, d10v_write_sp): Delete function,
11061 handled by push_dummy_call.
11062
11063 2003-03-26 Andrew Cagney <cagney@redhat.com>
11064
11065 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11066 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11067 regcache and dummy_addr parameters.
11068 * gdbarch.h, gdbarch.c: Re-generate.
11069 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11070 available; assume it will handle stack alignment and return
11071 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11072 legacy_push_arguments.
11073 (legacy_push_arguments): Rename default_push_arguments.
11074 * value.h (legacy_push_arguments): Rename default_push_arguments.
11075 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11076 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11077 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11078 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11079 * config/i386/tm-symmetry.h: Update.
11080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11081 * x86-64-tdep.c (x86_64_init_abi): Update.
11082 * v850-tdep.c (v850_gdbarch_init): Update.
11083 * sparc-tdep.c (sparc_gdbarch_init): Update.
11084 * sh-tdep.c (sh_gdbarch_init): Update.
11085 * s390-tdep.c (s390_gdbarch_init): Update.
11086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11087 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11088 * mips-tdep.c (mips_gdbarch_init): Update.
11089 * mcore-tdep.c (mcore_gdbarch_init): Update.
11090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11091 * ia64-tdep.c (ia64_gdbarch_init): Update.
11092 * i386-tdep.c (i386_gdbarch_init): Update.
11093 * hppa-tdep.c (hppa_gdbarch_init): Update.
11094 * h8300-tdep.c (h8300_gdbarch_init): Update.
11095 * frv-tdep.c (frv_gdbarch_init): Update.
11096 * d10v-tdep.c (d10v_gdbarch_init): Update.
11097 * cris-tdep.c (cris_gdbarch_init): Update.
11098 * avr-tdep.c (avr_gdbarch_init): Update.
11099 * arm-tdep.c (arm_gdbarch_init): Update.
11100 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11101 * alpha-tdep.c (alpha_gdbarch_init): Update.
11102
11103 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11104
11105 * signals/signals.c (do_target_signal_to_host): Correct realtime
11106 signal range test.
11107
11108 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11109
11110 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11111 (struct sal_chain, map_catch_names): Remove.
11112 (catch_exception_command_1): Don't call
11113 handle_gnu_4_16_catch_command.
11114
11115 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11116
11117 From Mark Dettinger <dettinge@de.ibm.com>:
11118 * dwarf2cfi.c (read_2u): Increment pointer by two.
11119
11120 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11121
11122 * signals/signals.c: Fix typos in last change.
11123
11124 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11125
11126 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11127 not already defined. Use __SIGRTMIN if available.
11128 (target_signal_from_host): Remove SIGRTMIN block.
11129 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11130 the signal is within the realtime range.
11131
11132 2003-03-25 Adam Fedor <fedor@gnu.org>
11133
11134 * Makefile.in (infrun.o): Add $(language_h)
11135 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11136 for language specific trampolines.
11137 * language.h (struct language_defn): Add skip_trampoline.
11138 (skip_language_trampoline): Declare.
11139 * language.c (unk_lang_trampoline, skip_language_trampoline):
11140 New functions.
11141 (unknown_language_defn, auto_language_defn, local_language_defn):
11142 Add ukn_lang_trampoline.
11143 * ada-lang.c (ada_language_defn): Add NULL for language
11144 specific skip_trampoline.
11145 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11146 scm-lang.c: Likewise.
11147 * objc-lang.c (objc_skip_trampoline): New function.
11148 (objc_language_defn): Add objc_skip_trampoline.
11149
11150 2003-03-25 Andrew Cagney <cagney@redhat.com>
11151
11152 * frame.c (get_prev_frame): Delay validating a frame's ID -
11153 non-NULL, didn't go backwards - until an attempt to unwind it to
11154 the previous frame.
11155
11156 2003-03-25 Andrew Cagney <cagney@redhat.com>
11157
11158 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11159 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11160 * gdbarch.h, gdbarch.c: Re-generate.
11161 * config/sparc/tm-sparc.h
11162 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11163 * sparc-tdep.c (sparc_gdbarch_init): Set
11164 deprecated_extra_stack_alignment_needed.
11165 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11167 extra_stack_alignment_needed.
11168 * v850-tdep.c (v850_gdbarch_init): Ditto.
11169 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11170 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11171 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11172 * cris-tdep.c (cris_gdbarch_init): Ditto.
11173 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11175
11176 2003-03-25 Andrew Cagney <cagney@redhat.com>
11177
11178 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11179 STORE_STRUCT_RETURN.
11180 * gdbarch.h, gdbarch.c: Regenerate.
11181 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11182 (d10v_push_arguments): Set the struct return register.
11183 (d10v_gdbarch_init): Update.
11184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11185 * x86-64-tdep.c (x86_64_init_abi): Update.
11186 * vax-tdep.c (vax_gdbarch_init): Update.
11187 * v850-tdep.c (v850_gdbarch_init): Update.
11188 * sparc-tdep.c (sparc_gdbarch_init): Update.
11189 * sh-tdep.c (sh_gdbarch_init): Update.
11190 * s390-tdep.c (s390_gdbarch_init): Update.
11191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11192 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11193 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11194 * mips-tdep.c (mips_gdbarch_init): Update.
11195 * mcore-tdep.c (mcore_gdbarch_init): Update.
11196 * m68k-tdep.c (m68k_gdbarch_init): Update.
11197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11198 * ia64-tdep.c (ia64_gdbarch_init): Update.
11199 * i386-tdep.c (i386_gdbarch_init): Update.
11200 * hppa-tdep.c (hppa_gdbarch_init): Update.
11201 * h8300-tdep.c (h8300_gdbarch_init): Update.
11202 * frv-tdep.c (frv_gdbarch_init): Update.
11203 * cris-tdep.c (cris_gdbarch_init): Update.
11204 * avr-tdep.c (avr_gdbarch_init): Update.
11205 * arm-tdep.c (arm_gdbarch_init): Update.
11206 * alpha-tdep.c (alpha_gdbarch_init): Update.
11207
11208 2003-03-25 Andrew Cagney <cagney@redhat.com>
11209
11210 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11211 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11212 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11213 * gdbarch.h, gdbarch.c: Regenerate.
11214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11215 call_dummy_stack_adjust_p.
11216 * vax-tdep.c (vax_gdbarch_init): Ditto.
11217 * v850-tdep.c (v850_gdbarch_init): Ditto.
11218 * sh-tdep.c (sh_gdbarch_init): Ditto.
11219 * s390-tdep.c (s390_gdbarch_init): Ditto.
11220 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11221 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11222 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11223 * mips-tdep.c (mips_gdbarch_init): Ditto.
11224 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11225 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11227 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11228 * i386-tdep.c (i386_gdbarch_init): Ditto.
11229 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11230 * frv-tdep.c (frv_gdbarch_init): Ditto.
11231 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11232 * cris-tdep.c (cris_gdbarch_init): Ditto.
11233 * avr-tdep.c (avr_gdbarch_init): Ditto.
11234 * arm-tdep.c (arm_gdbarch_init): Ditto.
11235 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11236 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11237 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11238 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11239 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11240 call_dummy_stack_adjust_p.
11241 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11242 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11243 * sparc-tdep.c (sparc32_push_arguments): Update.
11244 * valops.c (hand_function_call): Update.
11245
11246 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11247
11248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11249 set_gdbarch_char_signed.
11250
11251 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11252
11253 PR cli/548
11254 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11255
11256 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11257
11258 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11259 (_initialize_arm_tdep): Don't set tm_print_insn.
11260
11261 2003-03-24 Adam Fedor <fedor@gnu.org>
11262
11263 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11264 * objc-lang.h: Add multiple inclusion protection.
11265 (start_msglist, add_msglist, end_msglist): Additional declarations.
11266
11267 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11268
11269 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11270 value was renamed to ARM_FLOAT_SOFT_FPA.
11271
11272 2003-03-23 Andrew Cagney <cagney@redhat.com>
11273
11274 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11275 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11276 * gdbarch.h, gdbarch.c: Regenerate.
11277 * valops.c (hand_function_call): Update.
11278 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11279 * frame.c (legacy_saved_regs_this_id): Update.
11280 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11281 * dummy-frame.h: Update.
11282 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11283 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11284 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11285 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11286 * config/m68k/tm-sun3.h: Update.
11287 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11289 * x86-64-tdep.c (x86_64_init_abi): Update.
11290 * vax-tdep.c (vax_gdbarch_init): Update.
11291 * v850-tdep.c (v850_gdbarch_init): Update.
11292 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11293 * sh-tdep.c (sh_gdbarch_init): Update.
11294 * s390-tdep.c (s390_gdbarch_init): Update.
11295 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11296 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11297 (frame_get_saved_regs): Update.
11298 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11299 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11300 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11301 * mips-tdep.c (mips_gdbarch_init): Update.
11302 * mcore-tdep.c (mcore_gdbarch_init): Update.
11303 * m68k-tdep.c (m68k_gdbarch_init): Update.
11304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11305 * ia64-tdep.c (ia64_gdbarch_init): Update.
11306 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11307 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11308 (i386_interix_back_one_frame): Update.
11309 * hppa-tdep.c (hppa_gdbarch_init): Update.
11310 (hppa_init_extra_frame_info): Update.
11311 * h8300-tdep.c (h8300_gdbarch_init): Update.
11312 * frv-tdep.c (frv_gdbarch_init): Update.
11313 * cris-tdep.c (cris_gdbarch_init): Update.
11314 * avr-tdep.c (avr_gdbarch_init): Update.
11315 * arm-tdep.c (arm_gdbarch_init): Update.
11316 * alpha-tdep.c (alpha_gdbarch_init): Update.
11317
11318 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11319
11320 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11321 (arm_get_fp_model): Declare.
11322 * arm-tdep.c (fp_model_strings): New string array.
11323 (arm_fp_model, current_fp_model): New variables.
11324 (arm_get_fp_model): New function.
11325 (arm_set_fp): New function.
11326 (set_fp_model_sfunc): New function.
11327 (show_fp_model): New function.
11328 (_initialize_arm_tdep): Add new command to set/show the FPU.
11329 (arm_extract_return_value): Use arm_get_fp_model.
11330 (arm_store_return_value): Likewise.
11331 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11332 to initialize the floating-point data types.
11333 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11334 model is FPA.
11335
11336 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11337
11338 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11339 the current setting of each value.
11340 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11341 new_set and new_show. Use add_setshow_cmd_full and
11342 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11343 commands and add new version as subcommands of "set/show arm".
11344
11345 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11346
11347 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11348 (set_arm_command, show_arm_command): New functions.
11349 (_initialize_arm_tdep): Add them.
11350 (num_disassembly_options): Renamed from num_flavor_options.
11351 (valid_disassembly_styles): Renamed from valid_flavors.
11352 (disassembly_style): Renamed from disassembly_flavor.
11353 (set_disassembly_style_sfunc): Renamed from
11354 set_disassembly_flavor_sfunc.
11355 (set_disassembly_style): Renamed from set_disassembly_flavor.
11356 (arm_othernames): Updated.
11357 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11358 command. Add "set/show arm disassembly" commands. Deprecate
11359 "othernames" command.
11360
11361 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11362
11363 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11364 (arm-tdep.o): Depend on elf_arm_h.
11365
11366 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11367
11368 * Makefile.in (coff_internal_h): Define.
11369 (arm-tdep.o): Update dependencies.
11370
11371 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11372
11373 * arm-tdep.c (prologue_cache): Delete.
11374 (check_prologue_cache, save_prologue_cache): Delete.
11375 (arm_scan_prologue): Don't check or update the prologue_cache.
11376 (arm_gdb_arch_init): Don't initialize it.
11377 (_initialize_arm_tdep): Likewise.
11378
11379 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11380
11381 * MAINTAINERS (tui): Maintainer of tui code.
11382
11383 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11384
11385 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11386 (i386-cygwin-tdep.o): Add dependencies.
11387 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11388 * i386-cygwin-tdep.c: New file.
11389 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11390 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11391
11392 2003-03-20 Andrew Cagney <cagney@redhat.com>
11393
11394 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11395 (handle_inferior_event): Remove code calling
11396 DYNAMIC_TRAMPOLINE_NEXTPC.
11397
11398 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11399 already has a full path.
11400
11401 * main.c (gdb_main): Return 1.
11402 (captured_main): Call error to report an invalid interpreter.
11403
11404 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11405 * alpha-osf1-tdep.c: Include "gdb_string.h".
11406
11407 2003-03-19 J. Brobecker <brobecker@gnat.com>
11408
11409 Continuing work to convert the hppa targets to multiarch partial.
11410
11411 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11412 method, now that hppa_push_dummy_frame has a conformant prototype.
11413 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11414 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11415 for the switch to multiarch partial.
11416
11417 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11418
11419 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11420 when iss is issNull.
11421
11422 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11423
11424 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11425 NUM_REGS bounds check.
11426
11427 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11428
11429 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11430 * mips-tdep.c (gdb_assert.h): Include.
11431 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11432 (mips_register_name): Handle integer registers explicitly. Add
11433 bounds checking.
11434 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11435 (mips_lsi33k_reg_names): Don't list integer registers; they're
11436 handled by mips_register_name() now.
11437 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11438 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11439 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11440 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11441 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11442
11443 2003-03-18 Andrew Cagney <cagney@redhat.com>
11444
11445 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11446 a void pointer.
11447 * gdbtypes.h (print_scalar_formatted): Update declaration.
11448 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11449
11450 2003-03-18 J. Brobecker <brobecker@gnat.com>
11451
11452 * infrun.c (observer.h): Add #include.
11453 (normal_stop): Add call to observer_notify_normal_stop.
11454 * Makefile.in (infrun.o): Add dependency on observer.h.
11455
11456 2003-03-18 J. Brobecker <brobecker@gnat.com>
11457
11458 Continuing work to convert the hppa targets to multiarch partial.
11459 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11460 parameter. Reformat comment.
11461 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11462 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11463 to match new profile.
11464
11465 2003-03-18 J. Brobecker <brobecker@gnat.com>
11466
11467 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11468 appear to be working in any case.
11469
11470 2003-03-18 J. Brobecker <brobecker@gnat.com>
11471
11472 * observer.c (observer_test_first_observer): New static variable.
11473 (observer_test_second_observer): Likewise.
11474 (observer_test_third_observer): Likewise.
11475 (observer_test_first_notification_function): New static function.
11476 (observer_test_second_notification_function): Likewise.
11477 (observer_test_third_notification_function): Likewise.
11478
11479 2003-03-17 J. Brobecker <brobecker@gnat.com>
11480
11481 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11482 * somsolib.c (gdb_assert.h): Likewise.
11483 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11484 (somsolib.o): Likewise.
11485
11486 2003-03-17 Andrew Cagney <cagney@redhat.com>
11487
11488 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11489 BFD. Simplify setting of di.endian.
11490
11491 2003-03-17 Andrew Cagney <cagney@redhat.com>
11492
11493 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11494 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11495
11496 From Elena Zannoni <ezannoni@redhat.com>
11497 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11498 vector and floating-point parameters.
11499 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11500 convention.
11501 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11502
11503 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11504
11505 * MAINTAINERS: Remove my name from several maintainership roles.
11506
11507 2003-03-17 Andrew Cagney <cagney@redhat.com>
11508
11509 Fix frame off-by-one bug.
11510 * frame-unwind.h (frame_this_id_ftype): Replace
11511 frame_unwind_id_ftype.
11512 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11513 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11514 with "prev_register".
11515 * frame-unwind.c (frame_unwind_find_by_pc): Return
11516 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11517 comment.
11518 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11519 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11520 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11521 (dummy_frame_unwind): Update.
11522 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11523 sentinel_frame_register_unwind.
11524 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11525 (sentinel_frame_unwinder): Update.
11526 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11527 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11528 * frame.c (create_sentinel_frame): Update. Initialize
11529 "prologue_cache" instead of "unwind_cache".
11530 (frame_register_unwind): Call this frame's prev_register with the
11531 next frame and this frame's prologue cache.
11532 (get_prev_frame): Simplify. Always call prev frame's this_id with
11533 this frame and prev frame's prologue cache. Document that this
11534 call is shifted one to the left when compared to the
11535 frame_register_unwind call.
11536 (legacy_saved_regs_prev_register): Replace
11537 frame_saved_regs_register_unwind.
11538 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11539 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11540 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11541 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11542 (d10v_frame_unwind): Update.
11543 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11544 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11545 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11546 "saved_regs" with "this_saved_regs".
11547
11548 2003-03-16 Andrew Cagney <cagney@redhat.com>
11549
11550 * frame.c (frame_pop): Don't call target_store_registers. Fix
11551 problem reported by Mark Kettenis.
11552
11553 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11554
11555 * i386-tdep.c (i386_register_type): Renamed from
11556 i386_register_virtual_type. Adjust function signature.
11557 (i386_gdbarch_init): Set register_type instead of
11558 deprecated_max_register_raw_size,
11559 deprecated_max_register_virtual_size and register_virtual_type.
11560
11561 2003-03-14 Andrew Cagney <cagney@redhat.com>
11562
11563 * frame.c (get_prev_frame): When a legacy frame, always call
11564 legacy_get_prev_frame. Simplify unwind code using assumption that
11565 the unwinder is new.
11566 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11567 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11568 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11569
11570 2003-03-14 Andrew Cagney <cagney@redhat.com>
11571
11572 * frame.c (get_saved_register): Delete function.
11573 * frame.h (get_saved_register): Delete declaration.
11574 * xstormy16-tdep.c: Update comment.
11575 * regcache.h: Update comments.
11576 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11577 get_saved_register and extract_address, use
11578 frame_read_unsigned_register.
11579 (sparc_frame_saved_pc): Ditto.
11580 (sparc_get_saved_register): Instead of get_saved_register, use
11581 frame_register.
11582 (sparc_pop_frame): Ditto.
11583 * findvar.c: Update comments.
11584 (value_of_register): Call frame_register instead of
11585 get_saved_register.
11586 (value_from_register): Ditto.
11587 * config/sparc/tm-sparc.h: Update comment.
11588 * breakpoint.c: Update comment.
11589
11590 2003-03-14 Andrew Cagney <cagney@redhat.com>
11591
11592 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11593 GET_SAVED_REGISTER.
11594 * gdbarch.h, gdbarch.c: Re-generate.
11595 * frame.h: Update comments.
11596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11597 * x86-64-tdep.c (x86_64_init_abi): Update.
11598 * sparc-tdep.c (sparc_gdbarch_init): Update.
11599 * sh-tdep.c (sh_gdbarch_init): Update.
11600 * mips-tdep.c (mips_gdbarch_init): Update.
11601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11602 * cris-tdep.c (cris_gdbarch_init): Update.
11603 * ia64-tdep.c (ia64_gdbarch_init): Update.
11604 * frame.c (frame_register): Update.
11605 (get_saved_register): Update.
11606 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11607
11608 2003-03-13 Andrew Cagney <cagney@redhat.com>
11609
11610 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11611 * gdbarch.h, gdbarch.c: Regenerate.
11612 * valops.c (hand_function_call): Update comment.
11613 * stack.c (return_command): Update comment.
11614 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11615 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11617 * x86-64-tdep.c (x86_64_init_abi): Update.
11618 * vax-tdep.c (vax_gdbarch_init): Update.
11619 * v850-tdep.c (v850_gdbarch_init): Update.
11620 * sparc-tdep.c (sparc_gdbarch_init): Update.
11621 * sh-tdep.c (sh_gdbarch_init): Update.
11622 * s390-tdep.c (s390_gdbarch_init): Update.
11623 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11624 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11625 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11626 * mips-tdep.c (mips_gdbarch_init): Update.
11627 * mcore-tdep.c (mcore_gdbarch_init): Update.
11628 * m68k-tdep.c (m68k_gdbarch_init): Update.
11629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11630 * ia64-tdep.c (ia64_gdbarch_init): Update.
11631 * i386-tdep.c (i386_gdbarch_init): Update.
11632 * hppa-tdep.c (hppa_gdbarch_init): Update.
11633 * h8300-tdep.c (h8300_gdbarch_init): Update.
11634 * frv-tdep.c (frv_gdbarch_init): Update.
11635 * cris-tdep.c (cris_gdbarch_init): Update.
11636 * avr-tdep.c (avr_gdbarch_init): Update.
11637 * arm-tdep.c (arm_gdbarch_init): Update.
11638 * alpha-tdep.c (alpha_gdbarch_init): Update.
11639
11640 2003-03-13 Andrew Cagney <cagney@redhat.com>
11641
11642 * frame.c (legacy_frame_p): New function.
11643 (get_prev_frame): Use legacy_frame_p.
11644 * frame.h (legacy_frame_p): Declare.
11645
11646 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11647
11648 * MAINTAINERS (write after approval): Alphabetically
11649 listing corrected.
11650
11651 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11652
11653 * MAINTAINERS (write after approval): Add myself.
11654
11655 2003-03-12 Andrew Cagney <cagney@redhat.com>
11656
11657 * frame.c (get_prev_frame): Rename the frame parameter to
11658 "this_frame".
11659 (get_next_frame, legacy_get_prev_frame): Ditto.
11660
11661 2003-03-12 Andrew Cagney <cagney@redhat.com>
11662
11663 * frame.c (get_current_frame): Check target_has_registers before
11664 checking target_has_stack.
11665 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11666 instead of deprecated_selected_frame.
11667 * findvar.c (value_of_register): Pass "frame", not
11668 deprecated_selected_frame, to value_of_builtin_reg.
11669
11670 2003-03-12 Andrew Cagney <cagney@redhat.com>
11671
11672 * regcache.c (regcache_cooked_write_signed): New function.
11673 (regcache_cooked_write_unsigned): New function.
11674 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11675 (regcache_cooked_read_signed): Fix regnum in range assertion.
11676 * regcache.h (regcache_cooked_write_signed): Declare.
11677 (regcache_cooked_write_unsigned): Declare.
11678
11679 2003-03-12 Andrew Cagney <cagney@redhat.com>
11680
11681 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11682 * gdbarch.h, gdbarch.c: Re-generate.
11683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11684 * x86-64-tdep.h: Update.
11685 * x86-64-tdep.c (x86_64_init_abi): Update.
11686 * v850-tdep.c (v850_gdbarch_init): Update.
11687 * sparc-tdep.c (sparc_gdbarch_init): Update.
11688 * sh-tdep.c (sh_gdbarch_init): Update.
11689 * s390-tdep.c (s390_gdbarch_init): Update.
11690 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11691 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11692 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11693 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11694 * mips-tdep.c (mips_gdbarch_init): Update.
11695 * mcore-tdep.c (mcore_gdbarch_init): Update.
11696 * m68k-tdep.c (m68k_gdbarch_init): Update.
11697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11698 * ia64-tdep.c (ia64_gdbarch_init): Update.
11699 * i386-tdep.c (i386_gdbarch_init): Update.
11700 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11701 * hppa-tdep.c (hppa_gdbarch_init): Update.
11702 * h8300-tdep.c (h8300_gdbarch_init): Update.
11703 * frv-tdep.c (frv_gdbarch_init): Update.
11704 * cris-tdep.c (cris_gdbarch_init): Update.
11705 * avr-tdep.c (avr_gdbarch_init): Update.
11706 * arm-tdep.c (arm_gdbarch_init): Update.
11707 * alpha-tdep.c (alpha_gdbarch_init): Update.
11708 * sh-tdep.c (sh_init_extra_frame_info): Update.
11709 (sh64_init_extra_frame_info): Update.
11710 * ns32knbsd-nat.c (frame_num_args): Update.
11711 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11712 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11713 (xstormy16_frame_chain_valid): Update.
11714 * vax-tdep.c (vax_saved_pc_after_call): Update.
11715 * v850-tdep.c (v850_frame_chain): Update.
11716 (v850_pop_frame): Update.
11717 (v850_init_extra_frame_info): Update.
11718 * sparc-tdep.c (setup_arbitrary_frame): Update.
11719 * ns32k-tdep.c (umax_frame_num_args): Update.
11720 * s390-tdep.c (s390_pop_frame_regular): Update.
11721 * mn10300-tdep.c (mn10300_frame_chain): Update.
11722 (mn10300_pop_frame_regular): Update.
11723 (mn10300_init_extra_frame_info): Update.
11724 * mips-tdep.c (mips_init_frame_pc_first): Update.
11725 (mips_frame_chain): Update.
11726 (mips_pop_frame): Update.
11727 * mcore-tdep.c (mcore_frame_chain): Update.
11728 (mcore_pop_frame): Update.
11729 (mcore_init_extra_frame_info): Update.
11730 * arch-utils.c (init_frame_pc_default): Update.
11731 * m68k-tdep.c (isi_frame_num_args): Update.
11732 (delta68_frame_num_args): Update.
11733 (news_frame_num_args): Update.
11734 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11735 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11736 (alpha_frame_chain): Update.
11737 (alpha_pop_frame): Update.
11738 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11739 (hppa_init_extra_frame_info): Update.
11740 (hppa_frame_chain): Update.
11741 (hppa_frame_chain_valid): Update.
11742 * cris-tdep.c (cris_init_extra_frame_info): Update.
11743 * avr-tdep.c (avr_init_extra_frame_info): Update.
11744 * arm-tdep.c (arm_frame_chain_valid): Update.
11745 (arm_init_extra_frame_info): Update.
11746 (arm_pop_frame): Update.
11747 * frame.c (frame_pc_unwind): Update.
11748 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11749 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11750 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11751 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11752 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11753 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11754
11755 2003-03-12 Andrew Cagney <cagney@redhat.com>
11756
11757 Eliminate the need for POP_FRAME.
11758 * frame.c (do_frame_unwind_register): New function.
11759 (frame_pop): When no POP_FRAME, pop the frame using register
11760 unwind and a scratch regcache.
11761 (frame_saved_regs_pop): Delete function.
11762 (trad_frame_unwinder): Update.
11763 * d10v-tdep.c (d10v_frame_pop): Delete function.
11764 (d10v_frame_unwind): Update.
11765 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11766 (sentinel_frame_unwinder): Update.
11767 * dummy-frame.c (dummy_frame_pop): Delete function.
11768 (dummy_frame_unwind): Update.
11769 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11770 (struct frame_unwind): Update.
11771
11772 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11773
11774 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11775 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11776 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11777 Do range checks on register number obtained from debugging info.
11778 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11779 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11780 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11781 mapping function.
11782 (do_fp_register_row): Fix typo which caused double type to be
11783 used when attempting to unpack a float.
11784
11785 2003-03-11 J. Brobecker <brobecker@gnat.com>
11786
11787 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11788
11789 2003-03-11 Andrew Cagney <cagney@redhat.com>
11790
11791 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11792 frame. Problem found by Corinna Vinschen.
11793
11794 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11795
11796 * doublest.c (floatformat_from_length): Accept also
11797 the real size of 'long double' type.
11798
11799 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11800
11801 From Klee Dienes <kdienes@apple.com>:
11802 * breakpoint.c (bpstat_copy): Copy the command lines as well
11803 as the old value, to match what is freed in bpstat_clear.
11804
11805 2003-03-10 David Carlton <carlton@math.stanford.edu>
11806
11807 * minsyms.c (add_minsym_to_hash_table): Replace
11808 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11809 (compare_minimal_symbols, compact_minimal_symbols)
11810 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11811 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11812 of DEPRECATED_SYMBOL_MATCHES_NAME.
11813 (lookup_minimal_symbol_solib_trampoline): Ditto.
11814
11815 2003-03-10 Andrew Cagney <cagney@redhat.com>
11816
11817 * regcache.h (regcache_cooked_read_ftype): Define.
11818 (regcache_save, regcache_restore): Add a cooked_read parameter.
11819 * regcache.c (regcache_save, regcache_restore): Update.
11820 (do_cooked_read): New function.
11821 (regcache_cpy): Pass do_cooked_read to regcache_save and
11822 regcache_restore.
11823
11824 2003-03-10 Andrew Cagney <cagney@redhat.com>
11825
11826 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11827 * gdbarch.h, gdbarch.c: Re-generate.
11828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11829 * x86-64-tdep.h: Update.
11830 * x86-64-tdep.c (x86_64_init_abi): Update.
11831 * v850-tdep.c (v850_gdbarch_init): Update.
11832 * sparc-tdep.c (sparc_gdbarch_init): Update.
11833 * sh-tdep.c (sh_gdbarch_init): Update.
11834 * s390-tdep.c (s390_gdbarch_init): Update.
11835 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11836 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11837 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11838 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11839 * mips-tdep.c (mips_gdbarch_init): Update.
11840 * mcore-tdep.c (mcore_gdbarch_init): Update.
11841 * m68k-tdep.c (m68k_gdbarch_init): Update.
11842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11843 * ia64-tdep.c (ia64_gdbarch_init): Update.
11844 * i386-tdep.c (i386_gdbarch_init): Update.
11845 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11846 * hppa-tdep.c (hppa_gdbarch_init): Update.
11847 * h8300-tdep.c (h8300_gdbarch_init): Update.
11848 * frv-tdep.c (frv_gdbarch_init): Update.
11849 * cris-tdep.c (cris_gdbarch_init): Update.
11850 * avr-tdep.c (avr_gdbarch_init): Update.
11851 * arm-tdep.c (arm_gdbarch_init): Update.
11852 * alpha-tdep.c (alpha_gdbarch_init): Update.
11853 * sh-tdep.c (sh_init_extra_frame_info): Update.
11854 (sh64_init_extra_frame_info): Update.
11855 * ns32knbsd-nat.c (frame_num_args): Update.
11856 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11857 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11858 (xstormy16_frame_chain_valid): Update.
11859 * vax-tdep.c (vax_saved_pc_after_call): Update.
11860 * v850-tdep.c (v850_frame_chain): Update.
11861 (v850_pop_frame): Update.
11862 (v850_init_extra_frame_info): Update.
11863 * sparc-tdep.c (setup_arbitrary_frame): Update.
11864 * ns32k-tdep.c (umax_frame_num_args): Update.
11865 * s390-tdep.c (s390_pop_frame_regular): Update.
11866 * mn10300-tdep.c (mn10300_frame_chain): Update.
11867 (mn10300_pop_frame_regular): Update.
11868 (mn10300_init_extra_frame_info): Update.
11869 * mips-tdep.c (mips_init_frame_pc_first): Update.
11870 (mips_frame_chain): Update.
11871 (mips_pop_frame): Update.
11872 * mcore-tdep.c (mcore_frame_chain): Update.
11873 (mcore_pop_frame): Update.
11874 (mcore_init_extra_frame_info): Update.
11875 * arch-utils.c (init_frame_pc_default): Update.
11876 * m68k-tdep.c (isi_frame_num_args): Update.
11877 (delta68_frame_num_args): Update.
11878 (news_frame_num_args): Update.
11879 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11880 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11881 (alpha_frame_chain): Update.
11882 (alpha_pop_frame): Update.
11883 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11884 (hppa_init_extra_frame_info): Update.
11885 (hppa_frame_chain): Update.
11886 (hppa_frame_chain_valid): Update.
11887 * cris-tdep.c (cris_init_extra_frame_info): Update.
11888 * avr-tdep.c (avr_init_extra_frame_info): Update.
11889 * arm-tdep.c (arm_frame_chain_valid): Update.
11890 (arm_init_extra_frame_info): Update.
11891 (arm_pop_frame): Update.
11892 * frame.c (frame_pc_unwind): Update.
11893 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11894 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11895 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11896 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11897 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11898 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11899
11900 2003-03-10 Andrew Cagney <cagney@redhat.com>
11901
11902 * gdbarch.sh (gdbarch_unwind_pc): New method.
11903 * gdbarch.h, gdbarch.c: Regenerate.
11904 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11905 but use read_pc and FRAME_SAVED_PC as fall backs.
11906 (frame_saved_regs_pc_unwind): Delete function.
11907 (trad_frame_unwinder): Update.
11908 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11909 (struct frame_unwind): Update.
11910 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11911 (dummy_frame_unwind): Update.
11912 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11913 (sentinel_frame_unwinder): Update.
11914 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11915 (d10v_frame_unwind): Update.
11916 (d10v_unwind_pc): New function.
11917 (d10v_gdbarch_init): Set unwind_pc.
11918
11919 2003-03-10 Andrew Cagney <cagney@redhat.com>
11920
11921 * gdbarch.h: Re-generate.
11922
11923 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11924 PC.
11925 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11926 the PC register.
11927
11928 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11929
11930 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11931
11932 2003-03-08 Andrew Cagney <cagney@redhat.com>
11933
11934 * cli-out.c: Update copyright.
11935 (cli_out_data): Define typedef. Use instead of ui_out_data.
11936
11937 2003-03-08 Andrew Cagney <cagney@redhat.com>
11938
11939 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11940 the result.
11941
11942 2003-03-07 Andrew Cagney <cagney@redhat.com>
11943
11944 * gdbarch.sh: Don't generate two macro definitions when an
11945 undefined macro taking no arguments.
11946 * gdbarch.h: Regenerate.
11947
11948 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11949
11950 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11951 (x86_64_unwind_dummy_id): New functions.
11952 (x86_64_init_abi): Register these two new functions.
11953
11954 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11955
11956 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11957 (x86_64_skip_prologue): Move prologue detection to
11958 separate function.
11959 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11960
11961 2003-03-05 Andrew Cagney <cagney@redhat.com>
11962
11963 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11964 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11965 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11966 to use unwind_dummy_id when a dummy frame.
11967 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11968 predicate.
11969 * gdbarch.h, gdbarch.c: Regneerate.
11970
11971 2003-03-05 Andrew Cagney <cagney@redhat.com>
11972
11973 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11974 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11975 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11976 values.
11977
11978 2003-03-05 Andrew Cagney <cagney@redhat.com>
11979
11980 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11981 (struct d10v_unwind_cache): Delete field "frameless". Replace
11982 "next_addr" with "sp_offset". Add "r11_offset".
11983 (d10v_frame_unwind_cache): Update.
11984 (prologue_find_regs): Update. When "mv r11, sp", save the
11985 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11986 RN was saved in r11_offset.
11987
11988 2003-03-05 Andrew Cagney <cagney@redhat.com>
11989
11990 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11991 cached PC value in the next frame.
11992
11993 2003-03-05 Andrew Cagney <cagney@redhat.com>
11994
11995 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11996 "id_unwind_cache" with "id".
11997 (frame_id_unwind): Delete declaration.
11998 * frame.c (frame_id_unwind): Delete function.
11999 (get_prev_frame): Call the frame id unwind method directly. Store
12000 the returned next frame's ID value in NEXT_FRAME. Note that there
12001 is a problem with the wrong unwind ID being called with the wrong
12002 unwind cache.
12003
12004 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12005
12006 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12007
12008 2003-03-05 James Ingham <jingham@apple.com>
12009 Daniel Jacobowitz <drow@mvista.com>
12010
12011 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12012 (auto_cp_abi): New variable.
12013 (current_cp_abi, num_cp_abis): Make static.
12014 (CP_ABI_MAX): Define.
12015 (cp_abis): Turn into an array.
12016 (value_virtual_fn_field): Fix formatting.
12017 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12018 takes a pointer.
12019 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12020 (list_cp_abis, _initialize_cp_abi): New functions.
12021 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12022 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12023 switch_to_cp_abi. Update prototype for register_cp_abi.
12024 * Makefile.in (cp-abi.o): Update dependencies.
12025 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12026 instead of switch_to_cp_abi.
12027 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12028 register_cp_abi.
12029 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12030 register_cp_abi.
12031 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12032
12033 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12034
12035 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12036 * dwarf2loc.c: Include "regcache.h".
12037 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12038 register_size.
12039 * Makefile.in (dwarf2loc.o): Update dependencies.
12040
12041 2003-03-04 Theodore A. Roth <troth@openavr.org>
12042
12043 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12044 number of io registers reported by remote target is not a multiple of
12045 step.
12046
12047 2003-03-04 David Carlton <carlton@math.stanford.edu>
12048
12049 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12050 (lookup_symbol_aux_psymtabs): Update call to
12051 lookup_partial_symbol.
12052 (lookup_transparent_type, find_main_psymtab)
12053 (make_symbol_overload_list): Ditto.
12054
12055 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12056
12057 * MAINTAINERS (Write after approval): Update my email address.
12058
12059 2003-03-03 Andrew Cagney <cagney@redhat.com>
12060
12061 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12062 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12063 predicate. Replace MAX_REGISTER_RAW_SIZE.
12064 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12065 MAX_REGISTER_VIRTUAL_SIZE.
12066 * regcache.c (legacy_max_register_raw_size): New function.
12067 (legacy_max_register_virtual_size): New function.
12068 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12069 (MAX_REGISTER_RAW_SIZE): Define.
12070 (legacy_max_register_raw_size): Declare.
12071 (legacy_max_register_virtual_size): Declare.
12072 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12073 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12074 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12075 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12076 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12077 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12078 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12079 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12080 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12082 * vax-tdep.c (vax_gdbarch_init): Update.
12083 * v850-tdep.c (v850_gdbarch_init): Update.
12084 * sparc-tdep.c (sparc_gdbarch_init): Update.
12085 * sh-tdep.c (sh_gdbarch_init): Update.
12086 * s390-tdep.c (s390_gdbarch_init): Update.
12087 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12088 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12090 * mips-tdep.c (mips_gdbarch_init): Update.
12091 * mcore-tdep.c (mcore_gdbarch_init): Update.
12092 * m68k-tdep.c (m68k_gdbarch_init): Update.
12093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12094 * ia64-tdep.c (ia64_gdbarch_init): Update.
12095 * i386-tdep.c (i386_gdbarch_init): Update.
12096 * hppa-tdep.c (hppa_gdbarch_init): Update.
12097 * h8300-tdep.c (h8300_gdbarch_init): Update.
12098 * frv-tdep.c (frv_gdbarch_init): Update.
12099 * cris-tdep.c (cris_gdbarch_init): Update.
12100 * avr-tdep.c (avr_gdbarch_init): Update.
12101 * arm-tdep.c (arm_gdbarch_init): Update.
12102 * alpha-tdep.c (alpha_gdbarch_init): Update.
12103 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12104 max_register_raw_size or max_register_virtual_size.
12105
12106 2003-03-03 David Carlton <carlton@math.stanford.edu>
12107
12108 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12109 SYMBOL_MATCHES_NAME, add comment.
12110 (SYMBOL_MATCHES_NATURAL_NAME): New.
12111 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12112 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12113 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12114 * symtab.c (lookup_partial_symbol): Use
12115 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12116 unhelpful comment.
12117 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12118 SYMBOL_MATCHES_NAME.
12119 Fix for PR c++/33.
12120
12121 2003-03-03 David Carlton <carlton@math.stanford.edu>
12122
12123 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12124 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12125 by regexp matching against SYMBOL_NATURAL_NAME.
12126
12127 2003-03-03 David Carlton <carlton@math.stanford.edu>
12128
12129 * linespec.c (find_method): Extract code into collect_methods.
12130 (collect_methods): New.
12131
12132 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12133
12134 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12135 get_frame_base.
12136
12137 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12138 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12139
12140 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12141
12142 * arch-utils.c (generic_register_byte): Fix to use the loop index
12143 and not regnum when summing the size of all registers up to regnum.
12144
12145 2003-03-01 Andrew Cagney <cagney@redhat.com>
12146
12147 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12148 FRAME_INIT_SAVED_REGS.
12149 * gdbarch.h, gdbarch.c: Regenerate.
12150 * stack.c (frame_info): Update.
12151 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12152 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12153 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12154 * ns32k-tdep.c (ns32k_pop_frame): Update.
12155 * mips-tdep.c (mips_pop_frame): Update.
12156 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12157 * ia64-tdep.c (ia64_frame_chain): Update.
12158 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12159 (ia64_frameless_function_invocation): Update.
12160 (ia64_init_extra_frame_info): Update.
12161 (ia64_pop_frame_regular): Update.
12162 * frame.h (struct frame_info): Update comment.
12163 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12164 * frame.c (frame_saved_regs_register_unwind): Update.
12165 (frame_saved_regs_register_unwind): Update.
12166 (deprecated_generic_get_saved_register): Update.
12167 * cris-tdep.c: Update comment.
12168 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12169 Rename macro.
12170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12171 * x86-64-tdep.c (x86_64_init_abi): Update.
12172 * vax-tdep.c (vax_gdbarch_init): Update.
12173 * v850-tdep.c (v850_gdbarch_init): Update.
12174 * sparc-tdep.c (sparc_gdbarch_init): Update.
12175 * sh-tdep.c (sh_gdbarch_init): Update.
12176 * s390-tdep.c (s390_gdbarch_init): Update.
12177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12178 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12179 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12180 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12181 * mips-tdep.c (mips_gdbarch_init): Update.
12182 * mcore-tdep.c (mcore_gdbarch_init): Update.
12183 * m68k-tdep.c (m68k_gdbarch_init): Update.
12184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12185 * ia64-tdep.c (ia64_gdbarch_init): Update.
12186 * i386-tdep.c (i386_gdbarch_init): Update.
12187 * frv-tdep.c (frv_gdbarch_init): Update.
12188 * avr-tdep.c (avr_gdbarch_init): Update.
12189 * arm-tdep.c (arm_gdbarch_init): Update.
12190 * alpha-tdep.c (alpha_gdbarch_init): Update.
12191
12192 2003-03-01 Andrew Cagney <cagney@redhat.com>
12193
12194 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12195 option enum and switch. When no windows, set the interpreter to
12196 INTERP_CONSOLE.
12197
12198 2003-03-01 Andrew Cagney <cagney@redhat.com>
12199
12200 * main.c (captured_main): Replace magic option characters with an
12201 enum.
12202
12203 2003-03-01 Andrew Cagney <cagney@redhat.com>
12204
12205 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12206 INIT_EXTRA_FRAME_INFO.
12207 * gdbarch.h, gdbarch.c: Regenerate.
12208 * arm-tdep.c: Update comments.
12209 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12210 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12211 * frame.h, avr-tdep.c: Ditto.
12212 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12213 (create_new_frame, legacy_get_prev_frame): Ditto.
12214 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12215 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12217 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12218 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12219 * v850-tdep.c (v850_gdbarch_init): Ditto.
12220 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12221 * sh-tdep.c (sh_gdbarch_init): Ditto.
12222 * s390-tdep.c (s390_gdbarch_init): Ditto.
12223 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12224 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12225 * mips-tdep.c (mips_gdbarch_init): Ditto.
12226 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12228 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12229 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12230 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12231 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12232 * frv-tdep.c (frv_gdbarch_init): Ditto.
12233 * cris-tdep.c (cris_gdbarch_init): Ditto.
12234 * avr-tdep.c (avr_gdbarch_init): Ditto.
12235 * arm-tdep.c (arm_gdbarch_init): Ditto.
12236 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12237 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12238
12239 2003-03-01 Andrew Cagney <cagney@redhat.com>
12240
12241 * gdbarch.sh (register_type): New function with predicate.
12242 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12243 * gdbarch.h, gdbarch.c: Re-generate.
12244 * arch-utils.c (generic_register_byte): Use generic_register_size.
12245 (generic_register_size): When available, use
12246 gdbarch_register_type.
12247 * regcache.c (init_regcache_descr): When available, initialize the
12248 register type array using gdbarch_register_type. If the
12249 architecture supplies gdbarch_register_type, do not use the legacy
12250 regcache layout.
12251 * d10v-tdep.c (d10v_register_type): Replace
12252 d10v_register_virtual_type.
12253 (d10v_gdbarch_init): Set register_type instead of
12254 register_virtual_type.
12255
12256 2003-03-01 Andrew Cagney <cagney@redhat.com>
12257
12258 * Makefile.in (ax-gdb.o): Update dependencies.
12259 * ax-gdb.c: Include "regcache.h".
12260 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12261 * findvar.c (value_of_register): Ditto.
12262 * infcmd.c (default_print_registers_info): Ditto.
12263
12264 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12265
12266 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12267 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12268
12269 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12270
12271 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12272 of STREQ.
12273
12274 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12275
12276 * Makefile.in (dwarf2loc.o): Update dependencies.
12277 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12278 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12279 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12280 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12281 (locexpr_tracepoint_var_ref): New function.
12282 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12283
12284 2003-02-28 Andrew Cagney <cagney@redhat.com>
12285
12286 * regcache.c (register_size): New function.
12287 * regcache.h (register_size): Declare
12288 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12289 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12290
12291 2003-02-28 David Carlton <carlton@math.stanford.edu>
12292
12293 * linespec.c (decode_compound): Extract code into find_method.
12294 (find_method): New.
12295
12296 2003-02-28 J. Brobecker <brobecker@gnat.com>
12297
12298 * Makefile.in: Add rules to build and link in observer.o.
12299
12300 2003-02-27 J. Brobecker <brobecker@gnat.com>
12301
12302 * observer.c: Minor comments edits.
12303
12304 2003-02-27 J. Brobecker <brobecker@gnat.com>
12305
12306 * observer.h, observer.c: New file.
12307
12308 2003-02-27 Andrew Cagney <cagney@redhat.com>
12309
12310 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12311
12312 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12313
12314 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12315 (M6812_OP_STS_EXT): Likewise.
12316 (m6811_prologue): Use the above to recognize prologue.
12317 (m6812_prologue): Likewise.
12318
12319 2003-02-27 David Carlton <carlton@math.stanford.edu>
12320
12321 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12322 SYMBOL_PRINT_NAME.
12323 (compare_psymbols): Ditto.
12324 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12325
12326 2003-02-27 Michael Snyder <msnyder@redhat.com>
12327
12328 * f-lang.c (build_fortran_types): New function.
12329 (_initialize_f_language): Gdbarch-register built-in fortran types.
12330 * doublest.c (extract_floating): Fix warning text.
12331
12332 2003-02-27 Andrew Cagney <cagney@redhat.com>
12333
12334 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12335 predicate. Replaces PUSH_DUMMY_FRAME.
12336 * gdbarch.h, gdbarch.c: Regnerate.
12337 * valops.c (hand_function_call): Update. Call
12338 generic_push_dummy_frame directly.
12339 * vax-tdep.c (vax_gdbarch_init): Update.
12340 * sparc-tdep.c (sparc_gdbarch_init): Update.
12341 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12342 * m68k-tdep.c (m68k_gdbarch_init): Update.
12343 * hppa-tdep.c (hppa_gdbarch_init): Update.
12344 * alpha-tdep.c (alpha_gdbarch_init): Update.
12345 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12346 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12347 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12349 push_dummy_frame to generic_push_dummy_frame.
12350 * v850-tdep.c (v850_gdbarch_init): Ditto.
12351 * sh-tdep.c (sh_gdbarch_init): Ditto.
12352 * s390-tdep.c (s390_gdbarch_init): Ditto.
12353 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12354 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12355 * mips-tdep.c (mips_gdbarch_init): Ditto.
12356 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12359 * i386-tdep.c (i386_gdbarch_init): Ditto.
12360 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12361 * frv-tdep.c (frv_gdbarch_init): Ditto.
12362 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12363 * cris-tdep.c (cris_gdbarch_init): Ditto.
12364 * avr-tdep.c (avr_gdbarch_init): Ditto.
12365 * arm-tdep.c (arm_gdbarch_init): Ditto.
12366
12367 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12368
12369 * mips-tdep.c (show_mips_abi): New function.
12370 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12371 command ``show mips abi''.
12372
12373 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12374
12375 From Elena Zannoni <ezannoni@redhat.com>
12376 * dbxread.c (process_one_symbol): Only record line 0 if one or
12377 more sline entries have been seen for the function.
12378
12379 2003-02-26 Michael Chastain <mec@shout.net>
12380
12381 * configure: Regenerate with autoconf 000227.
12382
12383 2003-02-26 Michael Chastain <mec@shout.net>
12384
12385 Close PR build/660.
12386 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12387 for old libc5/glibc.
12388 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12389
12390 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12391
12392 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12393 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12394
12395 2003-02-26 Michael Chastain <mec@shout.net>
12396
12397 * configure.in: New variable HAVE_UINTPTR_T.
12398 * configure, config.in: Regenerated.
12399
12400 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12401
12402 Fix PR build/1097.
12403 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12404
12405 2003-02-25 Andrew Cagney <cagney@redhat.com>
12406
12407 * frame.c (get_prev_frame): Add comment on check for
12408 inside_entry_func. Only check for inside_entry_file when not a
12409 dummy and not a sentinel. Check that the new frame is not inner
12410 to the old frame.
12411
12412 2003-02-25 Andrew Cagney <cagney@redhat.com>
12413
12414 * frame.c (frame_debug): New variable.
12415 (_initialize_frame): Add "set/show debug frame" command.
12416 (get_prev_frame): When frame_debug, print reason why unwind
12417 failed.
12418
12419 2003-02-25 Michael Chastain <mec@shout.net>
12420
12421 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12422 to avoid uintptr_t definition problems.
12423
12424 2003-02-25 David Carlton <carlton@math.stanford.edu>
12425
12426 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12427 (SYMBOL_LINKAGE_NAME): Ditto.
12428 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12429 SYMBOL_LINKAGE_NAME.
12430 (struct general_symbol_info): Expand comment.
12431 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12432 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12433 (SYMBOL_MATCHES_REGEXP): Ditto.
12434 * symtab.c (symbol_natural_name): New function.
12435 * objfiles.h: Replace all uses of SYMBOL_NAME by
12436 DEPRECATED_SYMBOL_NAME.
12437 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12438 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12439 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12440 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12441 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12442 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12443 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12444 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12445 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12446 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12447 * ada-exp.y: Ditto.
12448 * ada-exp.y: Update copyright.
12449 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12450 * cp-valprint.c: Ditto.
12451
12452 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12453
12454 * infptrace.c (detach): Do not flag error if ptrace detach fails
12455 and errno is set to ESRCH.
12456
12457 2003-02-24 Andrew Cagney <cagney@redhat.com>
12458
12459 * infptrace.c (udot_info): Change type of udot_off to long. Use
12460 paddr when printing udot_off's value.
12461
12462 2003-02-24 David Carlton <carlton@math.stanford.edu>
12463
12464 * symtab.c (make_symbol_overload_list): Only read in partial
12465 symtabs containing a matching partial symbol.
12466
12467 2003-02-24 David Carlton <carlton@math.stanford.edu>
12468
12469 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12470 do the comparison, not strcmp.
12471 * symfile.c (compare_psymbols): Ditto.
12472 * defs.h: Declare strcmp_iw_ordered.
12473 * utils.c (strcmp_iw_ordered): New function.
12474
12475 2003-02-24 Jim Blandy <jimb@redhat.com>
12476
12477 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12478 support, shared libs): Remove my name from here, to better reflect
12479 reality.
12480
12481 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12482
12483 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12484 (target_ops): Add to_have_continuable_watchpoint.
12485 * target.c (update_current_target): Add INHERIT line for
12486 to_have_continuable_watchpoint.
12487 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12488 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12489 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12490 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12491
12492 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12493
12494 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12495 maintainership.
12496
12497 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12498
12499 * solib.c (solib_open): Call target defined search function after
12500 failing with solib-search-path.
12501 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12502 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12503
12504 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12505
12506 * MAINTAINERS: Add myself to Write After section.
12507
12508 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12509
12510 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12511
12512 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12513
12514 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12515 (m68hc11_add_reggroups): New function.
12516 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12517 (m68hc11_gdbarch_init): Install the reggroups.
12518 (_initialize_m68hc11_tdep): Initialize them.
12519
12520 2003-02-21 James E Wilson <wilson@tuliptree.org>
12521
12522 * MAINTAINERS: Update my email address.
12523
12524 2003-02-21 David Carlton <carlton@math.stanford.edu>
12525
12526 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12527
12528 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12529
12530 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12531 * symtab.h: Add opaque declarations of struct axs_value and
12532 struct agent_expr.
12533 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12534 (struct location_funcs): New type.
12535 (struct symbol): Add "loc" to aux_value.
12536 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12537 * dwarf2read.c: Include "dwarf2expr.h".
12538 (dwarf2_symbol_mark_computed): New function.
12539 (read_func_scope): Use it.
12540 (var_decode_location): New function.
12541 (new_symbol): Use it.
12542 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12543
12544 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12545 (dwarf2expr_h, dwarf2loc_h): New variables.
12546 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12547 (dwarf2expr.o, dwarf2loc.o): New rules.
12548 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12549 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12550 LOC_COMPUTED_ARG.
12551 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12552 * m2-exp.y (yylex): Likewise.
12553 * printcmd.c (address_info, print_frame_args): Likewise.
12554 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12555 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12556 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12557 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12558 * symtab.c (lookup_block_symbol): Likewise.
12559
12560 2003-02-20 Adam Fedor <fedor@gnu.org>
12561
12562 * symtab.h: Remove objc_specific struct
12563 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12564 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12565 Have language_objc use cplus_specific struct.
12566
12567 2003-02-20 Tom Tromey <tromey@redhat.com>
12568
12569 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12570 TYPE_NAME, when printing a String value. PR java/1075.
12571
12572 2003-02-20 Adam Fedor <fedor@gnu.org>
12573
12574 * objc-lang.h (find_methods): Remove declaration.
12575 * objc-lang.c (find_methods): Make static.
12576
12577 2003-02-20 Christopher Faylor <cgf@redhat.com>
12578
12579 * win32-nat.c (get_image_name): Check return value from
12580 ReadProcessMemory.
12581 (child_xfer_memory): Ditto.
12582
12583 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12584
12585 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12586 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12587 '${exec_prefix}' (in addition to the expansion thereof) as
12588 relocatable.
12589 * configure: Rebuilt.
12590
12591 2003-02-20 David Carlton <carlton@math.stanford.edu>
12592
12593 * symtab.c (search_symbols): Revert the search_symbols part of my
12594 2002-12-23 patch. Add comment.
12595
12596 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12597
12598 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12599 * dbxread.c (elfstab_build_psymtabs): Don't call
12600 install_minimal_symbols.
12601 (stabsect_build_psymtabs): Likewise.
12602 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12603 earlier.
12604 * somread.c (som_symfile_read): Call install_minimal_symbols
12605 and do_cleanups earlier.
12606 * nlmread.c (nlm_symfile_read): Likewise.
12607 * mdebugread.c (elfmdebug_build_psymtabs): Call
12608 install_minimal_symbols and make appropriate cleanups.
12609
12610 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12611
12612 * solib.c (reload_shared_libraries): New function.
12613 (_initialize_solib): Add callbacks for ``set solib-search-path''
12614 and ``set solib-absolute-prefix''.
12615
12616 2003-02-20 David Carlton <carlton@math.stanford.edu>
12617
12618 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12619 expand comment.
12620 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12621 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12622 * ada-typeprint.c (ada_typedef_print): Ditto.
12623 * ax-gdb.c (gen_var_ref): Ditto.
12624 * breakpoint.c (print_one_breakpoint): Ditto.
12625 * buildsym.c (finish_block): Ditto.
12626 * c-valprint.c (c_val_print): Ditto.
12627 * expprint.c (print_subexp): Ditto.
12628 * findvar.c (locate_var_value): Ditto.
12629 * infcmd.c (jump_command): Ditto.
12630 * linespec.c (decode_line_2, decode_compound): Ditto.
12631 * maint.c (maintenance_translate_address): Ditto.
12632 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12633 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12634 Ditto.
12635 * p-valprint.c (pascal_val_print): Ditto.
12636 * stabsread.c (define_symbol): Ditto.
12637 * stack.c (print_frame, frame_info, print_block_frame_locals)
12638 (print_frame_arg_vars, return_command): Ditto.
12639 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12640 * symmisc.c (print_symbol): Ditto.
12641 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12642 (compare_search_syms, print_symbol_info, print_msymbol_info)
12643 (rbreak_command): Ditto.
12644 * tracepoint.c (tracepoints_info): Ditto.
12645 * typeprint.c (typedef_print): Ditto.
12646 * valops.c (value_of_variable, hand_function_call): Ditto.
12647 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12648 * ada-typeprint.c: Update Copyright.
12649 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12650 * tracepoint.c, cli/cli-cmds.c: Ditto.
12651
12652 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12653
12654 * frame.c (generic_unwind_get_saved_register): Make non-static.
12655 * frame.h (generic_unwind_get_saved_register): Declare.
12656 * mips-tdep.c (read_next_frame_reg): Fetch register from
12657 current regcache when frame is NULL.
12658 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12659 that must be NULL.
12660 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12661 instead of frame_register_unwind().
12662
12663 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12664
12665 * remote-sim.c (gdbsim_insert_breakpoint)
12666 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12667 code.
12668
12669 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12670
12671 * remote.c (_initialize_remote): Add commands "set/show remote
12672 hardware-watchpoint-limit" and "set/show remote
12673 hardware-breakpoint-limit".
12674 (remote_hw_watchpoint_limit): Initialize to -1.
12675 (remote_hw_breakpoint_limit): Ditto.
12676 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12677
12678 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12679
12680 * coff-pe-read.c: New file - support reading of minimal symbols from a
12681 portable executable using the export table.
12682 * coff-pe-read.h: New file.
12683 * coffread.c: Include coff-pe-read.h.
12684 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12685 debugging symbols found.
12686 * Makefile.in (SFILES): Add coff-pe-read.o.
12687 (coff_pe_read_h): Define.
12688 (COMMON_OBS): Add coff-pe-read.o.
12689 (coffread.o): Add coff_pe_read_h dependency.
12690 (coff-pe-read.o): New target.
12691
12692 2003-02-19 David Carlton <carlton@math.stanford.edu>
12693
12694 * Makefile.in (SFILES): Add block.c.
12695 (block_h): New.
12696 (COMMON_OBS): Add block.o.
12697 (block.o): New.
12698 (x86-64-tdep.o): Add $(block_h).
12699 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12700 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12701 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12702 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12703 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12704 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12705 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12706 * value.h: Add opaque declaration for struct block.
12707 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12708 * ada-lang.h: Ditto.
12709 * x86-64-tdep.c: #include "block.h"
12710 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12711 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12712 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12713 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12714 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12715 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12716 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12717 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12718 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12719 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12720 * symtab.c (block_function): Ditto.
12721 (contained_in): Ditto.
12722 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12723 block.h. Add opaque declaration for struct block.
12724 * symtab.h: Move block_function and contained_in declarations to
12725 block.h. Add opaque declarations for struct block, struct
12726 blockvector.
12727 (struct block): Move to block.h.
12728 (struct blockvector): Ditto.
12729 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12730 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12731 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12732 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12733 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12734 Ditto.
12735 * block.c: New file.
12736 * block.h: New file.
12737
12738 2003-02-19 Theodore A. Roth <troth@openavr.org>
12739
12740 * avr-tdep.c (avr_extract_return_value): Remove function.
12741 (avr_store_return_value): Remove function.
12742 (avr_extract_struct_value_address): Remove function.
12743 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12744
12745 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12746
12747 * rs6000-tdep.c: Include "gdb_assert.h".
12748 (registers_e500): Add "acc" and "spefscr".
12749 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12750 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12751 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12752 really is "r0".
12753 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12754
12755 2003-02-18 Keith Seitz <keiths@redhat.com>
12756
12757 * Makefile.in: Add gdbtk-interps.c.
12758
12759 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12760
12761 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12762 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12763
12764 2003-02-18 Andrew Cagney <cagney@redhat.com>
12765
12766 * symtab.h (struct objfile): Add opaque declaration.
12767
12768 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12769
12770 From Jim Ingham <jingham@apple.com>:
12771 * dbxread.c (process_one_symbol): Use last_function_start rather
12772 than function_start_offset to find the real beginning of the
12773 current function. The latter is just the text section offset on
12774 some systems, the former is always the real function start.
12775
12776 2003-02-17 Andrew Cagney <cagney@redhat.com>
12777
12778 * configure.in: Revert ${target} != ${host}.
12779
12780 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12781
12782 * configure.in (Makefile): Use the test ${target} != ${host},
12783 instead of the absence of the "nm.h" file, to determine of the
12784 configuration non-native.
12785 * configure: Regenerate.
12786
12787 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12788
12789 From Brian Ford <ford@vss.fsi.com>
12790
12791 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12792 conditionalize tui_active test.
12793 (lookup_cmd_1): Ditto.
12794
12795 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12796
12797 * configure.in: Add check for _etext.
12798 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12799 available.
12800 * config.in, configure: regenerated.
12801
12802 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12803
12804 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12805
12806 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12807
12808 * main.c (tui_version): Delete variable.
12809 (captured_main): When --tui, set interpreter_p to "tui" instead of
12810 enabling tui_version.
12811 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12812 tui_version.
12813 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12814 * cli/cli-cmds.c (disassemble_command): Ditto.
12815 * defs.h (tui_version): Delete declaration.
12816 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12817 (tui-interp.o): Add rules.
12818 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12819
12820 2003-02-14 Christopher Faylor <cgf@redhat.com>
12821
12822 * win32-nat.c (register_loaded_dll): Correctly set address range for
12823 just-loaded dll.
12824
12825 2003-02-12 Jason Molenda (jmolenda@apple.com)
12826
12827 * symmisc.c (print_objfile_statistics): Include information about
12828 the number of psymtabs and symtabs in each object file.
12829
12830 2003-02-13 Keith R Seitz <keiths@redhat.com>
12831
12832 * main.h (struct captured_main_args): Add interpreter_p.
12833 * main.c (captured_main): Initialize interpreter_p from context.
12834 * gdb.c (main): Set interpreter_p argument.
12835 * Makefile.in (gdb.o): Add dependency for interps.h.
12836
12837 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12838
12839 * event-top.c (cli_command_loop): Delete declaration.
12840 (_initialize_event_loop): Delete function setting event_loop_hook.
12841 * event-top.h (cli_command_loop): Declare. Update copyright.
12842 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12843 * interps.c (current_interp_command_loop): When event_loop_p, call
12844 cli_command_loop.
12845
12846 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12847
12848 * interps.h (interp_command_loop_ftype): Change return type to
12849 void.
12850
12851 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12852
12853 * x86-64-tdep.c (x86_64_extract_return_value)
12854 (x86_64_store_return_value): Use regcache instead of regbuf.
12855 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12856 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12857
12858 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12859
12860 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12861 * aclocal.m4: Regenerate.
12862 * configure: Regenerate.
12863
12864 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12865 TCL_LD_SEARCH_FLAGS.
12866
12867 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12868
12869 * dwarf2cfi.c: Reindented.
12870
12871 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12872
12873 * interps.c (clear_interpreter_hooks): Convert function definition
12874 to ISO C.
12875
12876 2003-02-07 David Carlton <carlton@math.stanford.edu>
12877
12878 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12879
12880 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12881
12882 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12883 (struct type): ...to here.
12884 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12885 field.
12886 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12887 (replace_type): Set length on all type variants for a given type.
12888
12889 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12890
12891 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12892 <sys/stat.h>.
12893 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12894
12895 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12896
12897 * Makefile.in (symm-nat.o): Update dependencies.
12898 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12899 (lynx-nat.o, ia64-linux-nat.): Ditto.
12900 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12901 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12902 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12903
12904 * Makefile.in (inflow_h): Define.
12905 (procfs.o, inflow.o, procfs.o): Update dependencies.
12906 * inftarg.c (child_stop): Delete extern declaration of
12907 inferior_process_group. Include "inflow.h".
12908 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12909 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12910 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12911 (our_process_group, inferior_process_group): Extern declarations.
12912
12913 * procfs.c: Include "gdb_assert.h".
12914
12915 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12916 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12917 * jv-typeprint.c (java_type_print_base): Ditto.
12918 * typeprint.c (typedef_print): Eliminate STREQ.
12919 * cli/cli-script.c (define_command, define_command): Ditto.
12920 * main.c (captured_main): Ditto.
12921 * values.c (lookup_internalvar): Ditto.
12922 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12923 within `if' conditional.
12924 * linespec.c (decode_line_2): Ditto.
12925 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12926 (bfd_openw_with_cleanup): Ditto.
12927
12928 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12929
12930 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12931 legacy_extract_return_value and store_return_value to
12932 legacy_return_value.
12933
12934 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12935
12936 * win32-nat.c (get_relocated_section_addrs): New function. Find
12937 section load addresses for symbol handling in relocated DLLs.
12938 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12939
12940 2003-02-05 Fred Fish <fnf@intrinsity.com>
12941
12942 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12943 '=' and '!='.
12944 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12945 with '&' and '=='.
12946 (angel_RDI_info): Ditto.
12947 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12948 with '&' and '!='.
12949 (threads_continue_all_with_signals): Ditto.
12950
12951 2003-02-05 Jim Ingham <jingham@apple.com>
12952 Keith Seitz <keiths@redhat.com>
12953 Elena Zannoni <ezannoni@redhat.com>
12954 Andrew Cagney <ac131313@redhat.com>
12955
12956 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12957 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12958 (SUBDIR_MI_OBS): Add "mi-interp.o".
12959 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12960 (SFILES): Add "interps.c".
12961 (COMMON_OBS): Add "interps.o".
12962 (interps_h, mi_main_h): Define.
12963 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12964 (mi-main.o, main.o, event-top.o): Update dependencies.
12965 * cli/cli-interp.c: New file.
12966 * interps.h, interps.c: New files.
12967 * top.c: (gdb_init): Don't install the default interpreter, handed
12968 by captured_main.
12969 * main.c: Include "interps.h".
12970 (interpreter_p): Note that it should malloc'ed.
12971 (captured_command_loop): Call current_interp_command_loop.
12972 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12973 xfree and xstrdup when updating interpreter_p. Install the
12974 default interpreter. Add hack to stop mi1's copyright notice
12975 being encoded.
12976 * event-top.h (gdb_setup_readline): Declare.
12977 (gdb_disable_readline): Declare.
12978 * event-top.c: Include "interps.h".
12979 (display_gdb_prompt): Call current_interp_display_prompt_p.
12980 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12981 gdb_stdlog, and gdb_stdtarg.
12982 (_initialize_event_loop): Don't call gdb_setup_readline.
12983 * cli-out.c (cli_out_set_stream): New function.
12984 * cli-out.h (cli_out_set_stream): Declare.
12985
12986 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12987
12988 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12989 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12990 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12991 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12992 config/i386/i386v42mp.mt: Removed.
12993
12994 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12995
12996 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12997 GDB_OSABI_SOLARIS.
12998
12999 2003-02-05 Michael Chastain <mec@shout.net>
13000
13001 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13002 2.12.1 and earlier versions.
13003
13004 2003-02-05 Andrew Cagney <ac131313@redhat.com>
13005
13006 Remove orphaned hosts, targets and files.
13007 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13008 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13009 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13010 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13011 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13012 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13013 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13014 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13015 * config/sparc/tm-sp64sim.h: Delete.
13016 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13017 hosts.
13018 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13019 mips*-dec-mach3* targets.
13020
13021 2003-02-04 Michael Chastain <mec@shout.net>
13022
13023 * NEWS: Fix typo: sepcifying -> specifying.
13024
13025 2003-02-04 Michael Chastain <mec@shout.net>
13026
13027 * dwarfread.c: Add documentation on the state of dwarf-1,
13028 looking towards obsoletion.
13029
13030 2003-02-03 Michael Chastain <mec@shout.net>
13031
13032 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13033 gdb/testsuite/gdb.c++/pr-1023.exp.
13034
13035 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13036
13037 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13038 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13039
13040 * utils.c (init_page_info): Delete reference to MPW in comments.
13041 * main.c (captured_main): Delete #ifdef MPW.
13042
13043 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13044
13045 * NEWS: Note that the m32r-*-elf* is obsolete.
13046 * monitor.c (monitor_expect): Obsolete reference to m32r.
13047 * configure.tgt: Mark m32r-*-elf* as obsolete.
13048 * MAINTAINERS: Mark m32k as obsolete.
13049 * m32r-rom.c: Obsolete file.
13050 * config/m32r/m32r.mt: Obsolete file.
13051 * config/m32r/tm-m32r.h: Obsolete file.
13052 * m32r-stub.c: Obsolete file.
13053 * m32r-tdep.c: Obsolete file.
13054
13055 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13056
13057 * NEWS: Mention that the z8k-zilog-none is obsolete.
13058 * MAINTAINERS: Mark z8k as obsolete.
13059 * configure.tgt: Obsolete the z8k-*-coff* target.
13060 * config/z8k/z8k.mt: Obsolete file.
13061 * config/z8k/tm-z8k.h: Obsolete file.
13062 * z8k-tdep.c: Obsolete file.
13063
13064 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13065
13066 * NEWS: Mention that the mn10200-elf is obsolete.
13067 * configure.tgt: Obsolete mn10200-*-* target.
13068 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13069 mention that the mn10200 is obsolete.
13070 * breakpoint.h: Ditto.
13071 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13072 * config/mn10200/mn10200.mt: Obsolete file.
13073 * config/mn10200/tm-mn10200.h: Obsolete file.
13074 * mn10200-tdep.c: Obsolete file.
13075
13076 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13077
13078 * MAINTAINERS: Mark h8500 as obsolete.
13079 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13080 * findvar.c (value_from_register): Ditto.
13081 * h8500-tdep.c: Mark file as obsolete.
13082 * config/h8500/h8500.mt: Ditto.
13083 * config/h8500/tm-h8500.h: Ditto.
13084 * NEWS: Mention that h8500 is obsolete.
13085
13086 2003-02-04 David Carlton <carlton@math.stanford.edu>
13087
13088 * objfiles.c (allocate_objfile): Always set name. Add comment at
13089 start of function.
13090 * jv-lang.c (get_dynamics_objfile): Add comment.
13091
13092 2003-02-04 David Carlton <carlton@math.stanford.edu>
13093
13094 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13095 * printcmd.c (build_address_symbolic): Replace uses of
13096 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13097 SYMBOL_NAME, and asm_demangle.
13098 Update copyright.
13099
13100 2003-02-04 David Carlton <carlton@math.stanford.edu>
13101
13102 * linespec.c (decode_compound): Extract code into
13103 lookup_prefix_sym.
13104 (lookup_prefix_sym): New function.
13105
13106 2003-02-04 David Carlton <carlton@math.stanford.edu>
13107
13108 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13109 FLOAT_COERCION_BADNESS.
13110 * gdbtypes.c (rank_one_type): Replace all uses of
13111 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13112
13113 2003-02-04 Jim Blandy <jimb@redhat.com>
13114
13115 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13116 section, let dwarf_macinfo_section point to it, not
13117 dwarf_loc_section.
13118
13119 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13120
13121 Pointed out by Anton Blanchard <anton@samba.org>.
13122 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13123 (ppc_linux_at_sigtramp_return_path): Use it.
13124
13125 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13126
13127 * defs.h (streq): Add prototype.
13128 * utils.c (streq): New function.
13129
13130 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13131 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13132 * mdebugread.c (new_symbol): Likewise.
13133 * stabsread.c (define_symbol): Likewise.
13134 * coffread.c (process_coff_symbol): Likewise.
13135 * dwarfread.c (new_symbol): Likewise.
13136
13137 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13138 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13139 here.
13140 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13141 SYMBOL_INIT_DEMANGLED_NAME.
13142 * objfiles.c: Include "hashtab.h".
13143 (allocate_objfile): Call htab_set_functions_ex for the
13144 demangled_names_hash.
13145 (free_objfile): Call htab_delete for the demangled_names_hash.
13146 * objfiles.h (struct htab): Add declaration.
13147 (struct objfile): Add demangled_names_hash.
13148 * symfile.c: Include "hashtab.h".
13149 (reread_symbols): Call htab_delete for the demangled_names_hash.
13150 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13151 SYMBOL_NAME in the bcache.
13152 * symtab.c: Include "hashtab.h". Update comments.
13153 (create_demangled_names_hash, symbol_set_names): New functions.
13154 (symbol_find_demangled_name): New function, broken out from
13155 symbol_init_demangled_names.
13156 (symbol_init_demangled_names): Use it.
13157 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13158 (SYMBOL_SET_NAMES): New macro.
13159 (symbol_set_names): Add prototype.
13160
13161 2003-02-03 Jim Blandy <jimb@redhat.com>
13162
13163 Use a single, consistent representation for an empty minimal
13164 symbol table in an objfile.
13165 * objfiles.c (terminate_minimal_symbol_table): New function.
13166 (allocate_objfile): Call it.
13167 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13168 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13169 non-NULL.
13170 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13171 objfile has minimal symbols, compare minimal_symbol_count to zero,
13172 instead of comparing msymbols with NULL.
13173 * objfiles.c (have_minimal_symbols): Same.
13174 * solib-sunos.c (solib_add_common_symbols): Call
13175 terminate_minimal_symbol_table.
13176 * symfile.c (reread_symbols): Same.
13177
13178 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13179
13180 * s390-tdep.c (s390_address_class_type_flags)
13181 (s390_address_class_type_flags_to_name)
13182 (s390_address_class_name_to_type_flags): New functions.
13183 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13184 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13185
13186 2003-02-03 Michael Snyder <msnyder@redhat.com>
13187
13188 * arm-tdep.c: Fix spell-o in comment.
13189
13190 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13191
13192 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13193 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13194 error messages to contain BFD filename.
13195
13196 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13197
13198 Fix PR gdb/742 gdb/743 gdb/877
13199 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13200 (do_mixed_source_and_assembly): Use
13201 make_cleanup_ui_out_tuple_begin_end and
13202 make_cleanup_ui_out_tuple_begin_end.
13203 (do_mixed_source_and_assembly): Ditto.
13204 * thread.c (do_captured_list_thread_ids): Ditto.
13205 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13206 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13207 ui_out_tuple_end): Delete prototypes.
13208 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13209 ui_out_list_end, ui_out_tuple_end): Delete.
13210
13211 From Kevin Buettner <kevinb@redhat.com>:
13212 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13213 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13214 (do_cleanup_table_end): New functions.
13215 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13216 Use cleanups to invoke_ui_out_tuple_end().
13217 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13218 * cli/cli-setshow.c (cmd_show_list): Use
13219 make_cleanup_ui_out_tuple_begin_end.
13220
13221 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13222
13223 * frame.c (frame_unwind_register): New function.
13224 (frame_unwind_unsigned_register): Use.
13225 (frame_unwind_signed_register): Use.
13226 (frame_read_register): New function.
13227 * frame.h (frame_unwind_register): Declare.
13228 (frame_read_register): Declare.
13229
13230 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13231 and frame_unwind_register instead of read_memory, write_register
13232 and deprecated_write_register_bytes.
13233
13234 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13235
13236 * frame.h: Note that namelen can be negative.
13237 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13238 NAME's length.
13239
13240 * NEWS: Mention that the d10v's `regs' command is deprecated.
13241 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13242 (d10v_print_registers_info): New function.
13243 (show_regs): Call d10v_print_registers_info.
13244 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13245
13246 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13247
13248 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13249 lost in the previous patch.
13250
13251 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13252
13253 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13254 * stack.c (print_frame_info_base): Output complete FRAME tuple
13255 for synthesized frames.
13256
13257 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13258
13259 * mips-nat.c (zerobuf): Delete.
13260 (fetch_inferior_registers): Alloc local zerobuf.
13261 (fetch_core_registers): Alloc local zerobuf.
13262 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13263 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13264 * thread-db.c (thread_db_store_registers): Ditto.
13265 * sh-tdep.c (sh_do_register): Ditto.
13266 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13267 * remote-sim.c (gdbsim_store_register): Ditto.
13268 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13269 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13270 * monitor.c (monitor_supply_register): Ditto.
13271 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13272 * mips-nat.c (fetch_inferior_registers): Ditto.
13273 * m68klinux-nat.c (fetch_register): Ditto.
13274 * lynx-nat.c (fetch_inferior_registers): Ditto.
13275 (fetch_inferior_registers): Ditto.
13276 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13277 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13278 (hpux_thread_store_registers): Ditto.
13279 * hppah-nat.c (fetch_register): Ditto.
13280 * hppab-nat.c (fetch_register): Ditto.
13281 * hppa-tdep.c (pa_register_look_aside): Ditto.
13282 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13283 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13284
13285 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13286
13287 * gdbarch.sh: Explictly specify all method levels. When a
13288 variable with an empty level, provide a non-multi-arch default.
13289 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13290 * gdbarch.h: Re-generate.
13291 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13292 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13293
13294 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13295
13296 * defs.h (host_pointer_to_address): Delete declaration.
13297 (address_to_host_pointer): Delete declaration.
13298 * utils.c (host_pointer_to_address): Delete function.
13299 (address_to_host_pointer): Delete function.
13300 * procfs.c (procfs_address_to_host_pointer): New function.
13301 * procfs.c (proc_set_watchpoint): Use.
13302 (procfs_can_use_hw_breakpoint): Update comments.
13303 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13304 (som_solib_add): Use.
13305 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13306 * hppa-tdep.c (unwind_command): Use.
13307
13308 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13309
13310 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13311 strlen d_name.
13312
13313 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13314 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13315 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13316 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13317 (define_symbol): Update.
13318 * symfile.c (generic_load): Remove references to nindy.
13319 * symtab.c: Remove references to nindy.
13320
13321 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13322
13323 * infcmd.c (print_float_info): Delete code conditional on
13324 FLOAT_INFO.
13325 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13326 * config/m68k/nm-apollo68b.h: Ditto.
13327 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13328 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13329 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13330
13331 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13332
13333 * config/i386/tm-i386os9k.h: Removed.
13334
13335 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13336 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13337 they're identical to i[3456]86-*-sysv* now.
13338 * config/i386/i386v32.mh: Removed.
13339 * config/i386/xm-i386v32.h: Removed.
13340 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13341
13342 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13343
13344 * config/i386/i386dgux.mh: Removed.
13345 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13346
13347 * configure.in: Fix typo.
13348 * configure: Regenerated.
13349
13350 2003-01-31 David Carlton <carlton@math.stanford.edu>
13351
13352 * dwarf2read.c (dwarf2_locate_sections): Set
13353 dwarf_ranges_section.
13354
13355 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13356
13357 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13358 * utils.c: Update comments documenting legitimate uses of PTR.
13359
13360 * utils.c: Re-indent.
13361
13362 * config/djgpp/fnchange.lst: Delete nindy files.
13363 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13364 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13365 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13366 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13367 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13368 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13369 * Makefile.in (init.c): Remove nindy references.
13370 (saber_gdb): Delete rule.
13371 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13372 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13373 and a68v-nat.c.
13374 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13375 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13376 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13377 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13378 nindy-share/stop.h.
13379 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13380 * saber.suppress: Delete file.
13381
13382 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13383
13384 * dbxread.c (stabs_data): New static variable.
13385 (fill_symbuf): Support an in-memory buffer for stabs data.
13386 (stabs_seek): New function.
13387 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13388 (read_ofile_symtab): Use stabs_seek.
13389 (elfstab_build_psymtabs): Take an asection* instead of
13390 an offset and size. Relocate the stabs data if necessary.
13391 Save the section* for dbx_psymtab_to_symtab.
13392 * dwarf2read.c: Add section variables for each debug section.
13393 (dwarf2_locate_sections): Fill them in.
13394 (dwarf2_read_section): Take an asection* argument.
13395 Relocate the section contents if necessary.
13396 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13397 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13398 it to dwarf2_read_section.
13399 (dwarf2_build_frame_info): Update callers.
13400 * elfread.c (elf_symfile_read): Update call to
13401 elfstab_build_psymtabs.
13402 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13403 (DBX_STAB_SECTION): New macro.
13404 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13405 * symfile.c (symfile_dummy_outputs): New function.
13406 (symfile_relocate_debug_section): New function.
13407 * symfile.h (symfile_relocate_debug_section): Add prototype.
13408
13409 2003-01-31 Richard Henderson <rth@redhat.com>
13410
13411 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13412 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13413 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13414 * alpha-tdep.c (alpha_register_name): Add "unique".
13415 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13416 (ALPHA_UNIQUE_REGNUM): New.
13417 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13418
13419 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13420
13421 * README: Remove reference to Ericsson 1800 monitor.
13422 * Makefile.in (remote-es.o): Delete rule.
13423 (ALLDEPFILES): Delete remote-es.c.
13424 * remote-es.c: Delete file.
13425 * config/m68k/es1800.mt: Delete file.
13426 * config/djgpp/fnchange.lst: Update.
13427 * configure.tgt: Delete m68*-ericsson-* target.
13428
13429 2003-01-31 Adam Fedor <fedor@gnu.org>
13430
13431 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13432 Remove duplicate/shadowing variable of same name.
13433
13434 2003-01-30 Jim Blandy <jimb@redhat.com>
13435
13436 * symfile.c (find_separate_debug_file): Assert that the objfile's
13437 directory name we compute ends with a slash, and then assume that
13438 that's so everywhere we use it.
13439
13440 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13441
13442 * valops.c (value_assign): Flush frame cache after stores to memory
13443 also.
13444
13445 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13446
13447 * Makefile.in (mon960-rom.o): Delete rule.
13448 * mon960-rom.c: Delete file.
13449
13450 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13451
13452 * d10v-tdep.c: Include "frame-unwind.h".
13453 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13454 list.
13455 (next_addr, uses_frame): Delete.
13456 (struct d10v_unwind_cache): Define.
13457 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13458 Use info instead of next_addr and uses_frame globals.
13459 (d10v_frame_init_saved_regs): Delete function.
13460 (d10v_init_extra_frame_info): Delete function.
13461 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13462 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13463 init_frame_pc or frame_saved_pc.
13464 (d10v_pop_frame): Delete function.
13465 (do_d10v_pop_frame): Delete function.
13466 (d10v_frame_chain): Delete function.
13467 (d10v_frame_chain_valid): Delete function.
13468 (d10v_frame_pc_unwind): New function.
13469 (d10v_frame_id_unwind): New function.
13470 (saved_regs_unwinder): New function.
13471 (d10v_frame_register_unwind): New function.
13472 (d10v_frame_pop): New function.
13473 (d10v_frame_unwind): New variable.
13474 (d10v_frame_p): New function.
13475 (d10v_frame_saved_pc): Delete function.
13476 * Makefile.in (d10v-tdep.o): Update dependencies.
13477
13478 2003-01-30 J. Brobecker <brobecker@gnat.com>
13479
13480 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13481 causing some regressions due to a change in the default value
13482 for this macro.
13483
13484 2003-01-29 Richard Henderson <rth@redhat.com>
13485 Elena Zannoni <ezannoni@redhat.com>
13486 Daniel Jacobowitz <drow@mvista.com>
13487
13488 Fix PR gdb/961.
13489 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13490 variables.
13491 (RANGES_SECTION): New.
13492 (dwarf_ranges_buffer): New variable.
13493 (struct comp_unit_head): Add member "die".
13494 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13495 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13496 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13497 (dwarf2_locate_sections): Likewise.
13498 (dwarf2_build_psymtabs): Read .debug_ranges.
13499 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13500 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13501 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13502 Look for DW_AT_ranges and return the bounding box.
13503
13504 2003-01-29 Brian Ford <ford@vss.fsi.com>
13505
13506 * win32-nat.c (cygwin_pid): Removed as unused.
13507 (child_attach): Try fall back to Cygwin pid.
13508
13509 2003-01-29 Jim Blandy <jimb@redhat.com>
13510
13511 * objfiles.h (struct objfile): Doc fix.
13512
13513 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13514
13515 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13516 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13517 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13518 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13519 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13520 (FRAME_SAVED_PC): Change to a function with predicate.
13521 * gdbarch.h, gdbarch.c: Re-generate.
13522
13523 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13524
13525 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13526
13527 * complaints.c (complain): Delete function.
13528 * complaints.h (struct deprecated_complaint): Delete definition.
13529 (complain): Delete declaration.
13530
13531 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13532
13533 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13534 dummy frames.
13535
13536 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13537
13538 * sentinel-frame.h, sentinel-frame.c: New files.
13539 * Makefile.in (frame.o): Update dependencies.
13540 (SFILES): Add sentinel-frame.c.
13541 (sentinel_frame_h): Define.
13542 (COMMON_OBS): Add sentinel-frame.o.
13543 (sentinel-frame.o): Specify dependencies.
13544 * frame.c: Include "sentinel-frame.h".
13545 (frame_register_unwind): Rewrite assuming that there is always a a
13546 ->next frame.
13547 (frame_register, generic_unwind_get_saved_register): Ditto.
13548 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13549 (create_sentinel_frame, unwind_to_current_frame): New functions.
13550 (get_current_frame): Rewrite using create_sentinel_frame and
13551 unwind_to_current_frame. When possible, always create a frame.
13552 (create_new_frame): Set next to the sentinel frame.
13553 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13554 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13555 ID cache when necessary.
13556 (frame_saved_regs_id_unwind): Use frame_relative_level.
13557 (deprecated_generic_get_saved_register): Use frame_relative_level,
13558 get_frame_saved_regs, get_frame_pc, get_frame_base and
13559 get_next_frame.
13560 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13561 frame_register.
13562
13563 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13564
13565 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13566
13567 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13568
13569 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13570 (maintenance_set_profile_cmd): Use error () instead of warning ().
13571
13572 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13573
13574 * configure.in: Check that -pg works if using --enable-profiling.
13575 Check for monstartup and _mcleanup regardless of --enable-profiling.
13576 * maint.c: Check for monstartup and _mcleanup before using them.
13577 * config.in: Regenerated.
13578 * configure: Regenerated.
13579
13580 2003-01-24 Nick Clifton <nickc@redhat.com>
13581
13582 * Add sh2e support:
13583
13584 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13585
13586 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13587 (sh2e_show_regs): New.
13588 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13589 * config/sh/tm-sh.h: Added sh2e to comments.
13590
13591 2003-01-23 Jim Blandy <jimb@redhat.com>
13592
13593 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13594 symbols found)" message here; we haven't checked for a separate
13595 debug info file yet, so we don't know yet.
13596 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13597 we've looked everywhere. Also, there's no need to print a special
13598 message when we're loading the separate debug info file: the one
13599 symbol_file_add prints is fine.
13600
13601 2003-01-23 Alexander Larsson <alexl@redhat.com>
13602 Jim Blandy <jimb@redhat.com>
13603
13604 Add support for executables whose debug info has been separated
13605 out into a separate file, leaving only a link behind.
13606 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13607 and separate_debug_objfile_backlink.
13608 (put_objfile_before): New declaration.
13609 * symfile.c: #include "filenames.h".
13610 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13611 debug info in a separate file, read that, too. Save the addrs
13612 argument, so we can use it again to read the separated debug info;
13613 syms_from_objfile modifies the table we pass it.
13614 (reread_symbols): After re-reading an objfile, call
13615 reread_separate_symbols to refresh its separate debug info
13616 objfile, if it has one.
13617 (reread_separate_symbols, find_separate_debug_file,
13618 get_debug_link_info, separate_debug_file_exists): New functions.
13619 (debug_file_directory): New global var.
13620 (_initialize_symfile): Initialize debug_file_directory, and
13621 provide the new `set debug-file-directory' command to let the user
13622 change it.
13623 * objfiles.c (free_objfile): If this objfile has its debug info in
13624 a separate objfile, free that one too. If this is itself a
13625 separate debug info objfile, clear our parent's backlink.
13626 (put_objfile_before): New function.
13627 * utils.c (gnu_debuglink_crc32): New function.
13628 * defs.h (gnu_debuglink_crc32): New declaration.
13629 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13630 * configure.in: Handle --with-separate-debug-dir config option.
13631 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13632 * acconfig.h (DEBUGDIR): New macro.
13633 * configure, aclocal.m4, config.in: Regenerated.
13634
13635 2003-01-22 Jim Blandy <jimb@redhat.com>
13636
13637 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13638 like the old symbol_file_add, but taking new arguments: you can
13639 now pass in either a `struct section_addr_info' list to say where
13640 each section is loaded, or a `struct section_offsets' table. Pass
13641 these new arguments through to syms_from_objfile as appropriate.
13642 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13643 with the appropriate quiescent values for the new arguments.
13644
13645 * symfile.c: #include "gdb_assert.h".
13646 (syms_from_objfile): Add the ability to pass in a section offset
13647 table directly, as an alternative to the section_addr_info table.
13648 Document arguments better.
13649 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13650 * symfile.h (syms_from_objfile): Update declaration.
13651 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13652 syms_from_objfile.
13653 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13654
13655 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13656
13657 Original patch by Tom Tromey <tromey@cygnus.com> and
13658 Jason Molenda <jmolenda@apple.com>.
13659 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13660 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13661 * NEWS: Mention profiling.
13662 * configure.in (--enable-gdbtk): Fix typo.
13663 (--enable-profiling): New. Set PROFILE_CFLAGS.
13664 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13665 Fill in function.
13666 (profiling_state): New variable.
13667 (mcleanup_wrapper): New function.
13668 (_initialize_maint): Remove NOTYET, fix call to
13669 add_setshow_boolean_cmd for "maint set profile".
13670 * configure: Regenerated.
13671
13672 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13673
13674 * Makefile.in (install-gdbtk): Install PNG images too.
13675
13676 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13677
13678 * exec.c (text_start): Delete global variable.
13679 (exec_file_attach): Make text_start local to the function.
13680 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13681 * valops.c (hand_function_call): Delete code that handles
13682 BEFORE_TEXT_END and AFTER_TEXT_END.
13683 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13684 of CALL_DUMMY_LOCATION.
13685 * gdbarch.c: Regenerate.
13686 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13687 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13688 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13689 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13690 (text_end): Delete extern declaration.
13691
13692 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13693
13694 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13695 * blockframe.c (backtrace_below_main): Move to "frame.c".
13696 (frame_chain_valid): Delete check for backtrace_below_main.
13697 (_initialize_blockframe): Delete initialization, move ``set
13698 backtrace-below-main'' command to "frame.c".
13699 (do_flush_frames_sfunc): Delete function.
13700 * frame.c: Include "command.h" and "gdbcmd.h".
13701 (frame_type_from_pc): New function.
13702 (create_new_frame): Use frame_type_from_pc.
13703 (legacy_get_prev_frame): New function.
13704 (get_prev_frame): Rewrite. When an old style frame, call
13705 legacy_get_prev_frame. Otherwize, unwind the PC first.
13706 (_initialize_frame): Add ``set backtrace-below-main'' command.
13707 * Makefile.in (frame.o): Update dependencies.
13708
13709 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13710
13711 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13712 DEPRECATED_REGISTERS_INFO.
13713
13714 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13715
13716 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13717 Maintainers'. Update `Various Maintainers'.
13718
13719 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13720
13721 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13722 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13723 Suppress actual parameters when `-'.
13724 * gdbarch.h, gdbarch.c: Regenerate.
13725
13726 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13727
13728 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13729 code handling dummy frames.
13730
13731 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13732
13733 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13734 (struct frame_unwind): Add field pop.
13735 * frame.h (frame_pop): Declare.
13736 * frame.c (frame_saved_regs_pop): New function.
13737 (trad_frame_unwinder): Add frame_saved_regs_pop.
13738 (frame_pop): New function.
13739 * dummy-frame.c (dummy_frame_pop): New function.
13740 (discard_innermost_dummy): New function.
13741 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13742 (dummy_frame_unwind): Add dummy_frame_pop.
13743 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13744 * valops.c (hand_function_call): Ditto.
13745 * stack.c (return_command): Ditto.
13746
13747 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13748
13749 * cris-tdep.c: Fix function declaration indentation.
13750 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13751 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13752 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13753 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13754 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13755 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13756
13757 2003-01-18 Michael Chastain <mec@shout.net>
13758
13759 * README (Unpacking and Installation -- quick overview):
13760 Warn against ".../gdb-5.3/gdb/configure".
13761
13762 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13763
13764 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13765 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13766 (struct frame_unwind): Declare opaque.
13767 (dummy_frame_p): Declare function.
13768 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13769 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13770 * dummy-frame.c: Include "frame-unwind.h".
13771 (dummy_frame_p): New function.
13772 (dummy_frame_unwind): New variable.
13773 * frame.c: Include "frame-unwind.h".
13774 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13775 to use the new unwind field.
13776 (set_unwind_by_pc): Delete function.
13777 (create_new_frame, get_prev_frame): Set unwind field using
13778 frame_unwind_find_by_pc.
13779 (trad_frame_unwind, trad_frame_unwinder): New variables.
13780 * frame.h (trad_frame_unwind): Declare variable.
13781 (frame_id_unwind_ftype): Delete declaration.
13782 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13783 (struct frame_unwind): Declare opaque.
13784 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13785 register_unwind with a single unwind pointer.
13786 * frame-unwind.h, frame-unwind.c: New files.
13787 * Makefile.in (SFILES): Add frame-unwind.c.
13788 (frame_unwind_h): Define.
13789 (COMMON_OBS): Add frame-unwind.o.
13790 (frame-unwind.o): Specify dependencies.
13791 (frame.o, dummy-frame.o): Update dependencies.
13792
13793 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13794
13795 * ada-valprint.c: Eliminate PTR.
13796 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13797 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13798 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13799 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13800 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13801 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13802 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13803
13804 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13805
13806 * main.c (captured_main): Don't use PTR.
13807 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13808 * gdbtypes.c (lookup_primitive_typename): Ditto.
13809 (lookup_struct_elt_type): Ditto.
13810 * f-valprint.c (info_common_command): Ditto.
13811 (list_all_visible_commons): Ditto.
13812 * jv-typeprint.c (java_type_print_base): Ditto.
13813
13814 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13815 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13816 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13817 i386-interix-nat.c and i386-interix-tdep.c. Rename
13818 m68klinux-nat.c and m68klinux-tdep.c. Rename
13819 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13820 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13821 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13822 * main.c (captured_main): Use xfree, not free.
13823
13824 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13825
13826 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13827 ID back using a parameter.
13828 * frame.c (frame_id_unwind): Update call.
13829 (frame_saved_regs_id_unwind): Update.
13830 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13831 * dummy-frame.h (struct frame_id): Add opaque declaration.
13832 (dummy_frame_id_unwind): Update declaration.
13833
13834 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13835
13836 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13837
13838 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13839
13840 * MAINTAINERS (Stephen P. Smith): Updated email address.
13841
13842 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13843
13844 Fix PR gdb/898
13845 * breakpoint.c (until_break_command): Add new argument. Use it to
13846 decide whether to stop only at the current frame or not.
13847 * breakpoint.h (until_break_command): Update prototype.
13848 * infcmd.c (until_command): Add new argument to until_break_command
13849 call.
13850 (advance_command): New function.
13851 (_initialize_infcmd): Update help string for 'until' command.
13852 Add new 'advance' command.
13853
13854 2003-01-14 David Carlton <carlton@math.stanford.edu>
13855
13856 * linespec.c (decode_line_1): Normalize comments.
13857 (set_flags): Ditto.
13858 (locate_first_half): Ditto.
13859 (decode_compound): Ditto.
13860 (symtab_from_filename): Ditto.
13861 (decode_all_digits): Ditto.
13862 (decode_dollar): Ditto.
13863 (find_methods): Ditto.
13864 (find_toplevel_char): Ditto.
13865
13866 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13867
13868 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13869 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13870 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13871 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13872 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13873 * language.c, language.h, m32r-tdep.c: Update copyright.
13874 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13875 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13876 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13877 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13878 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13879 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13880
13881 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13882
13883 * stabsread.h (process_later, resolve_cfront_continuation):
13884 Obsolete.
13885 Update copyright years.
13886 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13887 Update copyright year.
13888 * dbxread.c(struct cont_elem): Obsolete.
13889 (process_later, process_now): Obsolete functions.
13890 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13891 Update copyright year.
13892 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13893 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13894 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13895 (parse_partial_symbols): Obsolete cfront support.
13896 * stabsread.c
13897 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13898 macros.
13899 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13900 read_cfront_baseclasses, read_cfront_member_functions,
13901 resolve_cfront_continuation,read_cfront_static_fields,
13902 copy_cfront_struct_fields): Obsolete functions.
13903 (define_symbol, read_one_struct_field): Obsolete cfront support.
13904 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13905 Update Copyright year.
13906
13907 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13908
13909 * stack.c (print_frame_info, print_stack_frame_base_stub,
13910 print_stack_frame_base, show_and_print_stack_frame_stub,
13911 show_and_print_stack_frame, print_only_stack_frame_stub,
13912 print_only_stack_frame): Delete functions.
13913 (print_stack_frame_stub): Call print_frame_info instead of
13914 print_frame_info_base.
13915 (print_frame_info_base): Rename to print_frame_info.
13916 (backtrace_command_1): Call print_frame_info, instead of
13917 print_frame_info_base.
13918 (current_frame_command): Call print_stack_frame, instead of
13919 print_only_stack_frame.
13920 (frame_command): Call print_stack_frame, instead of
13921 show_and_print_stack_frame.
13922 (up_command): Ditto.
13923 (down_command): Ditto.
13924 * frame.h (print_only_stack_frame): Delete prototype.
13925 * infrun.c (normal_stop): Call print_stack_frame, instead of
13926 show_and_print_stack_frame.
13927 * thread.c (info_threads_command): Call print_stack_frame, instead
13928 of print_only_stack_frame.
13929
13930 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13931
13932 * README (Graphical interface to GDB): Update URL. Point at
13933 gdb/links/.
13934
13935 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13936 version match.
13937
13938 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13939
13940 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13941 lines.
13942
13943 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13944
13945 * thread-db.c (attach_thread): Prototype.
13946 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13947 thread information (ti), and valid flags (th_valid, ti_valid).
13948 (attach_thread): Move target_pid_to_str call to after the thread
13949 is added to GDB's list. Initialize the cache.
13950 (thread_get_info_callback, thread_db_map_id2thr)
13951 (thread_db_get_info): New functions.
13952 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13953 (thread_db_store_registers, thread_db_thread_alive)
13954 (thread_db_get_thread_local_address): Use them.
13955 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13956 of calling error() for threads in unknown state.
13957
13958 (clear_lwpid_callback): New function.
13959 (thread_db_resume): Use it to clear the cache.
13960
13961 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13962
13963 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13964 (resume_callback): Remove dead code.
13965
13966 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13967
13968 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13969 predicate.
13970 * gdbarch.h, gdbarch.c: Regenerate.
13971 * stack.c (frame_info): Only initialize the saved registers when
13972 FRAME_INIT_SAVED_REGS_P.
13973 * frame.c (frame_saved_regs_register_unwind): Assert
13974 FRAME_INIT_SAVED_REGS_P.
13975 (deprecated_generic_get_saved_register): Ditto.
13976
13977 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13978
13979 * source.c (openp): Squelch warning about "filename".
13980
13981 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13982
13983 * source.c (openp): If the file does not exist don't necessarily
13984 search the path.
13985
13986 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13987
13988 Fix PR gdb/872.
13989 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13990 (integer_types_same_name_p): New function.
13991 (rank_one_type): Use it.
13992 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13993
13994 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13995
13996 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13997 variables.
13998 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13999 * configure.in: Add --with-sysroot.
14000 * configure: Regenerated.
14001 * main.c (gdb_sysroot): New variable.
14002 (captured_main): Initialize gdb_sysroot.
14003 * defs.h (gdb_sysroot): New extern declaration.
14004 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14005
14006 2003-01-12 Michael Chastain <mec@shout.net>
14007
14008 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14009
14010 2003-01-12 Michael Chastain <mec@shout.net>
14011
14012 * top.c (print_gdb_version): Bump copyright year to 2003.
14013
14014 2003-01-12 David Carlton <carlton@bactrian.org>
14015
14016 * linespec.c (symtab_from_filename): Rename variable 's' to
14017 'file_symtab'.
14018
14019 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14020
14021 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14022 dummy frame.
14023 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14024
14025 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14026
14027 * d10v-tdep.c: Include "gdb_assert.h".
14028 (d10v_store_return_value): Rewrite to match current interface.
14029 (d10v_extract_struct_value_address): Ditto.
14030 (d10v_extract_return_value): Ditto.
14031 (d10v_gdbarch_init): Set store_restore_value,
14032 extract_struct_value_address and extract_return_value.
14033
14034 2003-01-12 J. Brobecker <brobecker@gnat.com>
14035
14036 * hpread.c (set_namestring): New procedure replacing the
14037 SET_NAMESTRING macro.
14038 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14039 by calls to set_namestring.
14040
14041 2003-01-11 J. Brobecker <brobecker@gnat.com>
14042
14043 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14044 a compilation warning.
14045 (hpread_process_one_debug_symbol): Likewise.
14046
14047 2003-01-10 David Carlton <carlton@math.stanford.edu>
14048
14049 * linespec.c (decode_line_1): Rename variable 's' to
14050 'file_symtab'.
14051 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14052 (decode_dollar): Ditto.
14053 (decode_variable): Ditto.
14054 (symbol_found): Ditto.
14055
14056 2003-01-09 Michael Chastain <mec@shout.net>
14057
14058 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14059
14060 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
14061
14062 * win32-nat.c (set_process_privilege): New function.
14063 (child_attach): Call set_process_privilege() to enable the
14064 SE_DEBUG_NAME user privilege if available in process token.
14065
14066 2003-01-10 J. Brobecker <brobecker@gnat.com>
14067
14068 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14069 compilation error in the previous revision.
14070
14071 2003-01-09 David Carlton <carlton@math.stanford.edu>
14072
14073 * linespec.c: Update copyright.
14074
14075 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
14076
14077 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14078 than inferior_ptid.
14079 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14080
14081 2003-01-09 Andrew Cagney <ac131313@redhat.com>
14082
14083 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14084 Update comments.
14085 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14086 (frame_saved_regs_zalloc): Update.
14087 (frame_saved_regs_register_unwind): Update.
14088 (create_new_frame): Update.
14089 (get_prev_frame): Update.
14090 (frame_extra_info_zalloc): Update.
14091 (deprecated_get_frame_saved_regs): Update.
14092 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14093 * cris-tdep.c: Update comment.
14094
14095 * somsolib.h: Fix function indentation.
14096 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14097 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14098 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14099 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14100 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14101
14102 * infrun.c (follow_fork): Use ISO C definition.
14103 * expprint.c (print_subexp): Use xfree instead of free.
14104 * charset.c: Include "gdb_string.h" instead of <string.h>.
14105 (register_iconv_charsets): Use ISO C definition.
14106 (host_charset, target_charset): Ditto.
14107 * Makefile.in (charset.o): Update dependencies.
14108 (mi-cmd-env.o): Update dependencies.
14109
14110 2003-01-08 Andrew Cagney <cagney@redhat.com>
14111
14112 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14113 get_frame_base.
14114
14115 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14116
14117 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14118 build directories. Save edited gdb output in Mbuild.log. If a
14119 build fails, remove any final GDB executable.
14120
14121 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14122
14123 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14124 replacing hex constants with function names and stripping leading
14125 file name directory prefixes.
14126
14127 2003-01-08 Andrew Cagney <cagney@redhat.com>
14128
14129 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14130 get_frame_base.
14131
14132 2003-01-08 David Carlton <carlton@math.stanford.edu>
14133
14134 * linespec.c (decode_line_1): Move code into decode_variable.
14135 (decode_variable): New function.
14136
14137 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14138
14139 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14140
14141 2003-01-08 Andrew Cagney <cagney@redhat.com>
14142
14143 * cris-tdep.c (cris_frame_init_saved_regs): Use
14144 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14145 saved_regs buffer.
14146 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14147 (sh64_nofp_frame_init_saved_regs): Ditto.
14148 (sh_fp_frame_init_saved_regs): Ditto.
14149 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14150 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14151 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14152 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14153
14154 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
14155
14156 * minsyms.c (lookup_minimal_symbol): Update comment.
14157 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14158 (lookup_minimal_symbol_solib_trampoline): Likewise.
14159
14160 2003-01-08 Andrew Cagney <cagney@redhat.com>
14161
14162 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14163 frame_relative_level.
14164
14165 * alpha-tdep.c: Use get_frame_extra_info.
14166 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14167 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14168 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14169 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14170
14171 * alpha-tdep.c: Use get_next_frame.
14172 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14173 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14174 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14175 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14176 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14177 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14178 * xstormy16-tdep.c: Ditto.
14179
14180 2003-01-07 Andrew Cagney <cagney@redhat.com>
14181
14182 * alpha-tdep.c: Use get_frame_base.
14183 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14184 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14185 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14186 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14187 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14188 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14189 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14190 * config/sparc/tm-sparc.h: Ditto.
14191
14192 2003-01-07 Andrew Cagney <cagney@redhat.com>
14193
14194 * frame.c (deprecated_get_frame_context): New function.
14195 (deprecated_set_frame_context): New function.
14196 * frame.h (deprecated_get_frame_context): Declare.
14197 (deprecated_set_frame_context): Declare.
14198 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14199 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14200
14201 2003-01-07 Andrew Cagney <cagney@redhat.com>
14202
14203 * frame.c (deprecated_set_frame_next_hack): New function.
14204 (deprecated_set_frame_prev_hack): New function.
14205 * frame.h (deprecated_set_frame_next_hack): Declare.
14206 (deprecated_set_frame_prev_hack): Declare.
14207 * mcore-tdep.c (analyze_dummy_frame): Use
14208 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14209 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14210
14211 2003-01-07 David Carlton <carlton@math.stanford.edu>
14212
14213 * linespec.c (decode_line_1): Move code into decode_dollar.
14214 (decode_dollar): New function.
14215
14216 2003-01-07 Andrew Cagney <cagney@redhat.com>
14217
14218 * arm-tdep.c (arm_init_extra_frame_info): Use
14219 deprecated_update_frame_base_hack.
14220 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14221 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14222 (fix_frame_pointer): Ditto.
14223 (mn10300_analyze_prologue): Ditto.
14224
14225 2003-01-07 Andrew Cagney <cagney@redhat.com>
14226
14227 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14228 extra_info using frame_extra_info_zalloc.
14229 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14230 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14231 (sh64_init_extra_frame_info): Ditto.
14232 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14233 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14234 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14235 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14236 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14237 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14238 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14239 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14240 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14241 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14242 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14243 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14244
14245 * mn10300-tdep.c (analyze_dummy_frame): Use
14246 deprecated_set_frame_extra_info_hack.
14247 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14248
14249 2003-01-07 J. Brobecker <brobecker@gnat.com>
14250
14251 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14252 class is not scText. These do not define "real" procedures.
14253 (parse_partial_symbols): Likewise.
14254
14255 2003-01-06 Michael Snyder <msnyder@redhat.com>
14256
14257 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14258
14259 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14260
14261 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14262 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14263 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14264 deprecated_frame_xmalloc_with_cleanup.
14265 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14266 deprecated_frame_xmalloc.
14267 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14268 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14269
14270 2003-01-06 Andrew Cagney <cagney@redhat.com>
14271
14272 * x86-64-linux-tdep.c: Include "osabi.h".
14273 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14274
14275 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14276
14277 2003-01-06 Andrew Cagney <cagney@redhat.com>
14278
14279 * MAINTAINERS (Target Instruction Set Architectures): Update
14280 arm-elf. Can be built with -Werror, has been multiarched.
14281
14282 * value.h (unpack_long): Make buffer parameter constant.
14283 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14284 * scm-lang.h (scm_parse): Ditto.
14285 * defs.h (extract_typed_address, extract_address): Ditto.
14286 (extract_long_unsigned_integer): Ditto.
14287 * inferior.h (unsigned_pointer_to_address): Ditto.
14288 (signed_pointer_to_address): Ditto.
14289 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14290 * gdbarch.h, gdbarch.c: Regenerate.
14291 * findvar.c (extract_long_unsigned_integer): Update.
14292 (extract_address): Update.
14293 (extract_typed_address): Update.
14294 (unsigned_pointer_to_address): Update.
14295 * values.c (unpack_long): Update.
14296 (unpack_double): Update.
14297 (unpack_pointer): Update.
14298 (unpack_field_as_long): Update.
14299 * d10v-tdep.c (d10v_pointer_to_address): Update.
14300 * avr-tdep.c (avr_pointer_to_address): Update.
14301 * scm-lang.c (scm_unpack): Update.
14302 * findvar.c (signed_pointer_to_address): Update.
14303
14304 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14305
14306 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14307 since it is in i386-tdep.c.
14308
14309 2003-01-06 J. Brobecker <brobecker@gnat.com>
14310
14311 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14312 failure introduced in the previous change.
14313
14314 2003-01-05 Michael Chastain <mec@shout.net>
14315
14316 * README: Remove references to deleted remote-*.c files:
14317 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14318 remote-nrom.c, remote-os9k.c, remote-udi.c.
14319
14320 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14321
14322 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14323 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14324 i386_get_longjmp_target.
14325
14326 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14327
14328 * arm-tdep.c (prologue_cache): Change to a pointer.
14329 (_initialize_arm_tdep): Allocate prologue_cache.
14330 (check_prologue_cache): Update.
14331 (save_prologue_cache): Update.
14332 (arm_gdbarch_init): Update.
14333
14334 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14335
14336 * stabsread.c (update_method_name_from_physname): Call complaint()
14337 instead of error.
14338
14339 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14340
14341 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14342 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14343 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14344
14345 * blockframe.c: Include "gdbcmd.h" and "command.h".
14346 (backtrace_below_main): New variable.
14347 (file_frame_chain_valid, func_frame_chain_valid)
14348 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14349 (generic_func_frame_chain_valid): Remove functions.
14350 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14351 (_initialize_blockframe): New function.
14352 * Makefile.in (blockframe.o): Update dependencies.
14353 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14354 comment. Call frame_chain_valid ().
14355 * frame.h: Remove old prototypes. Add prototype for
14356 frame_chain_valid and update comments to match.
14357 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14358 Remove old comment.
14359 * gdbarch.h: Regenerated.
14360 * gdbarch.c: Regenerated.
14361
14362 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14363 set_gdbarch_frame_chain_valid.
14364 * avr-tdep.c (avr_gdbarch_init): Likewise.
14365 * cris-tdep.c (cris_gdbarch_init): Likewise.
14366 * frv-tdep.c (frv_gdbarch_init): Likewise.
14367 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14368 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14369 (i386_nw_init_abi): Likewise.
14370 (i386_gdbarch_init): Likewise.
14371 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14373 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14374 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14375 * mips-tdep.c (mips_gdbarch_init): Likewise.
14376 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14377 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14378 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14379 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14380 * s390-tdep.c (s390_gdbarch_init): Likewise.
14381 * sh-tdep.c (sh_gdbarch_init): Likewise.
14382 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14383 * v850-tdep.c (v850_gdbarch_init): Likewise.
14384 * vax-tdep.c (vax_gdbarch_init): Likewise.
14385 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14386
14387 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14388 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14389 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14390 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14391 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14392 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14393 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14394 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14395
14396 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14397
14398 * Makefile.in (acconfig_h): Remove incorrect macro.
14399 (config_h): Define.
14400 (osabi.o): Update dependencies.
14401 * configure.tgt: Set gdb_osabi based on target triplet.
14402 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14403 * configure: Regenerated.
14404 * config.in: Regenerated.
14405 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14406 (GDB_OSABI_DEFAULT): Define if not already defined.
14407 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14408 (set_osabi_string): New variables.
14409 (gdbarch_register_osabi): Add new OS ABI to
14410 gdb_osabi_available_names.
14411 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14412 (set_osabi, show_osabi): New functions.
14413 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14414
14415 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14416
14417 * arch-utils.c (gdbarch_info_init): Set osabi to
14418 GDB_OSABI_UNINITIALIZED.
14419 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14420 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14421 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14422 * gdbarch.c: Regenerated.
14423 * gdbarch.h: Regenerated.
14424 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14425 there's no BFD.
14426 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14427 * osabi.h (enum gdb_osabi): Move to defs.h.
14428 (gdbarch_init_osabi): Update prototype.
14429 * defs.h (enum gdb_osabi): Moved here.
14430 * Makefile.in: Update dependencies.
14431
14432 * alpha-tdep.h: Don't include "osabi.h".
14433 (struct gdbarch_tdep): Remove osabi member.
14434 * alpha-tdep.c: Include "osabi.h".
14435 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14436 iterate over arches. Update call to gdbarch_init_osabi.
14437 (alpha_dump_tdep): Don't dump osabi.
14438 * alpha-linux-tdep.c: Include "osabi.h".
14439 * alpha-osf1-tdep.c: Include "osabi.h".
14440 * alphafbsd-tdep.c: Include "osabi.h".
14441 * alphanbsd-tdep.c: Include "osabi.h".
14442
14443 * arm-tdep.h: Don't include "osabi.h".
14444 (struct gdbarch_tdep): Remove osabi member.
14445 * arm-tdep.c: Include "osabi.h".
14446 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14447 iterate over arches. Update call to gdbarch_init_osabi.
14448 (arm_dump_tdep): Don't dump osabi.
14449 * arm-linux-tdep.c: Include "osabi.h".
14450 * armnbsd-tdep.c: Include "osabi.h".
14451
14452 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14453 Update call to gdbarch_init_osabi.
14454
14455 * i386-tdep.h: Don't include "osabi.h".
14456 (struct gdbarch_tdep): Remove osabi member.
14457 * i386-tdep.c: Include "osabi.h".
14458 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14459 iterate over arches. Update call to gdbarch_init_osabi.
14460 (i386_dump_tdep): Don't dump osabi.
14461 * i386-linux-tdep.c: Include "osabi.h".
14462 * i386-sol2-tdep.c: Include "osabi.h".
14463 * i386bsd-tdep.c: Include "osabi.h".
14464 * i386gnu-tdep.c: Include "osabi.h".
14465 * i386ly-tdep.c: Include "osabi.h".
14466 * i386nbsd-tdep.c: Include "osabi.h".
14467 * i386obsd-tdep.c: Include "osabi.h".
14468
14469 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14470 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14471 check osabi when iterating over arches. Update call to
14472 gdbarch_init_osabi.
14473 (mips_dump_tdep): Don't dump osabi.
14474
14475 * ns32k-tdep.h: Don't include "osabi.h".
14476 (struct gdbarch_tdep): Remove.
14477 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14478 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14479 allocate tdep. Update call to gdbarch_init_osabi.
14480 (ns32k_dump_tdep): Remove.
14481 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14482 * ns32knbsd-tdep.c: Include "osabi.h".
14483
14484 * ppc-tdep.h: Don't include "osabi.h".
14485 (struct gdbarch_tdep): Remove osabi member.
14486 * rs6000-tdep.c: Include "osabi.h".
14487 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14488 osabi when iterating over arches. Update call to
14489 gdbarch_init_osabi.
14490 (rs6000_dump_tdep): Don't dump osabi.
14491 * ppc-linux-tdep.c: Include "osabi.h".
14492 * ppcnbsd-tdep.c: Include "osabi.h".
14493
14494 * sh-tdep.h: Don't include "osabi.h".
14495 (struct gdbarch_tdep): Remove osabi member.
14496 * sh-tdep.c: Include "osabi.h".
14497 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14498 iterate over arches. Update call to gdbarch_init_osabi.
14499 (sh_dump_tdep): Don't dump osabi.
14500 * shnbsd-tdep.c: Include "osabi.h".
14501
14502 * sparc-tdep.c: Include "osabi.h".
14503 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14504 iterate over arches. Update call to gdbarch_init_osabi.
14505 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14506 tdep structure.
14507
14508 * vax-tdep.h: Don't include "osabi.h".
14509 (struct gdbarch_tdep): Remove.
14510 * vax-tdep.c: Include "osabi.h".
14511 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14512 iterate over arches. Don't allocate tdep. Update call
14513 to gdbarch_init_osabi.
14514 (vax_dump_tdep): Remove.
14515 (_initialize_vax_tdep): Update call to gdbarch_register.
14516
14517 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14518
14519 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14520 entirely.
14521 (breakpoint_re_set_one): Don't fetch the value for a disabled
14522 watchpoint.
14523
14524 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14525
14526 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14527 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14528 (COERCE_FLOAT_TO_DOUBLE): Remove.
14529 * gdbarch.c: Regenerate.
14530 * gdbarch.h: Regenerate.
14531 * Makefile.in: Remove value_h from gdbarch_h.
14532 * valops.c (coerce_float_to_double): New variable.
14533 (default_coerce_float_to_double): Remove.
14534 (standard_coerce_float_to_double): Remove.
14535 (value_arg_coerce): Use coerce_float_to_double.
14536 (_initialize_valops): Add "set coerce-float-to-double".
14537 * value.h (default_coerce_float_to_double): Remove prototype.
14538 (standard_coerce_float_to_double): Remove prototype.
14539
14540 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14541 prototyped.
14542 * mdebugread.c (parse_symbol): Likewise.
14543 * stabsread.c (define_symbol): Mark all functions as prototyped.
14544
14545 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14546 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14547 set_gdbarch_coerce_float_to_double.
14548 * arm-tdep.c (arm_gdbarch_init): Likewise.
14549 * frv-tdep.c (frv_gdbarch_init): Likewise.
14550 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14551 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14552 * mips-tdep.c (mips_gdbarch_init): Likewise.
14553 (mips_coerce_float_to_double): Remove.
14554 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14555 (rs6000_coerce_float_to_double): Remove.
14556 * s390-tdep.c (s390_gdbarch_init): Likewise.
14557 * sh-tdep.c (sh_gdbarch_init): Likewise.
14558 (sh_coerce_float_to_double): Remove.
14559 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14560 (sparc_coerce_float_to_double): Remove.
14561 * v850-tdep.c (v850_gdbarch_init): Likewise.
14562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14563 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14564 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14565 (hppa_coerce_float_to_double): Remove prototype.
14566 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14567
14568 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14569
14570 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14571
14572 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14573
14574 Suggested by Stewart Brown <sb24@avaya.com>:
14575 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14576 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14577 (c_type_print_varspec_suffix): Likewise.
14578
14579 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14580
14581 * configure.in: Don't set and AC_SUBST SUBDIRS.
14582 * configure: Regenerated.
14583
14584 * configure.in: Remove code dealing with shared libraries.
14585 * Makefile.in: Remove HLDFLAGS and HLDENV.
14586 * configure: Regenerated.
14587
14588 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14589
14590 * frame.c (deprecated_frame_xmalloc): New function.
14591 (deprecated_set_frame_saved_regs_hack): New function.
14592 (deprecated_set_frame_extra_info_hack): New function.
14593 * frame.h (deprecated_frame_xmalloc): Declare.
14594 (deprecated_set_frame_saved_regs_hack): Declare.
14595 (deprecated_set_frame_extra_info_hack): Declare.
14596
14597 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14598
14599 * configure.in: Move code that provides the --enable-gdbtk option
14600 right after the code that handles the --enable-tui option, and
14601 polish it somewhat.
14602 * configure: Regenerated.
14603
14604 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14605 AC_CHECK_FUNCS and remove the old check for pread64.
14606 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14607 * acconfig.h (_GNU_SOURCE): Add.
14608 (HAVE_PREAD64): Remove.
14609 * configure, aclocal.m4, config.in: Regenerated.
14610
14611 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14612
14613 * alpha-tdep.c: Use get_frame_saved_regs.
14614 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14615 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14616 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14617 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14618 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14619
14620 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14621
14622 * configure.in: Remove all use of the SUBDIRS variable; add
14623 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14624 code providing the --enable-multi-ice option, and move it right in
14625 front of the code that checks whether gdbserver is supported.
14626 Polish that too.
14627 * configure: Regenerated.
14628 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14629 @SUBDIRS@.
14630
14631 2003-01-03 Andrew Cagney <cagney@redhat.com>
14632
14633 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14634 * avr-tdep.c, cris-tdep.c: Ditto.
14635 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14636 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14637
14638 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14639
14640 * configure.in: Remove --enable-netrom option.
14641 * configure: Regenerated.
14642
14643 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14644
14645 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14646 declaration for `struct re_pattern_buffer' instead.
14647 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14648
14649 2003-01-03 J. Brobecker <brobecker@gnat.com>
14650
14651 * mdebugread.c (parse_symbol): Count until the stEnd matching
14652 the structure name.
14653
14654 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14655
14656 * configure.in: Remove --with-cpu option.
14657 subscripts. Remove evil changequotes here.
14658 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14659 * config.in, configure: Regenerated.
14660
14661 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14662 * configure.in: Cleanup section that sources GDB and BFD configure
14663 subscripts. Remove evil changequotes here.
14664 * config.in, configure: Regenerated.
14665
14666 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14667
14668 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14669 frame accessor methods.
14670 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14671 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14672 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14673 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14674 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14675 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14676 * z8k-tdep.c: Ditto.
14677
14678 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14679
14680 * configure.in: Remove UI_OUT configuration code.
14681 * ada-lang.c: Update assuming UI_OUT is always true.
14682 * Makefile.in (UIOUT_CFLAGS): Remove.
14683 * configure: Regenerated.
14684 * TODO: Remove blurb about elimination of -DUI_OUT.
14685
14686 * configure.in: Move code that provides the --enable-gdbcli,
14687 --enable-gdbmi options right before the code that handles the
14688 --enable-tui option. Polish a bit.
14689 * configure: Regenerated.
14690
14691 * configure.in: Rewrite check for GNU regex and the
14692 --without-included regex option, and move it into the "Checks for
14693 library functions" section. This makes us use the system regex
14694 again by default on systems with version 2 of the GNU C library.
14695 This was apparently broken.
14696 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14697 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14698 * config.in, configure: Regenerated.
14699
14700 * configure.in: Move code that provides the --enable-tui option
14701 before the "Checks for libraries" section. Polish the code
14702 somewhat and set need_curses to yes if we build the TUI. Rewrite
14703 code that looks for a library providing termcap functionality to
14704 match more closely what's done in the Readline library, and move
14705 it into to the "Checks for libraries" section.
14706 * configure: Regenerated.
14707 * Makefile.in (TERMCAP): Remove variable.
14708 * config/i386/go32.mh (TERMCAP): Remove variable.
14709
14710 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14711
14712 * MAINTAINERS: Mention gdb_mbuild.sh.
14713 * gdb_mbuild.sh: Rewrite.
14714
14715 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14716
14717 * configure.in: Fix typo in last change.
14718 * config.in, configure: Regenerated.
14719
14720 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14721
14722 * valarith.c (value_binop): Delete obsolete code and comments.
14723 * configure.host: Ditto.
14724 * buildsym.h (make_blockvector): Ditto.
14725 * buildsym.c (make_blockvector): Ditto.
14726 * defs.h (enum language): Ditto.
14727 (chill_demangle): Ditto.
14728 * elfread.c (elf_symtab_read): Ditto.
14729 * dwarfread.c (CHILL_PRODUCER): Ditto.
14730 (set_cu_language): Ditto.
14731 (handle_producer): Ditto.
14732 * expprint.c (print_subexp): Ditto.
14733 * gdbtypes.c (chill_varying_type): Ditto.
14734 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14735 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14736 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14737 (chill_varying_type): Ditto.
14738 * language.h (_LANG_chill): Ditto.
14739 * language.c (binop_result_type, integral_type): Ditto.
14740 (character_type, string_type, structured_type): Ditto.
14741 (lang_bool_type, binop_type_check): Ditto.
14742 * stabsread.h (os9k_stabs): Ditto.
14743 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14744 (define_symbol, read_type, read_struct_fields): Ditto.
14745 (read_array_type, read_enum_type, read_huge_number): Ditto.
14746 (read_range_type, start_stabs): Ditto.
14747 * symfile.c (init_filename_language_table): Ditto.
14748 (add_psymbol_with_dem_name_to_list): Ditto.
14749 * symtab.c (symbol_init_language_specific): Ditto.
14750 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14751 * symtab.h (struct general_symbol_info): Ditto.
14752 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14753 * typeprint.c (typedef_print): Ditto.
14754 * utils.c (fprintf_symbol_filtered): Ditto.
14755 * valops.c (value_cast, search_struct_field, value_slice): Delete
14756 obsolete code.
14757 (varying_to_slice): Delete function.
14758 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14759 (varying_to_slice): Delete declaration.
14760 * MAINTAINERS: Update.
14761
14762 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14763
14764 * configure.in: Reorganize "Checks for library functions section"
14765 a bit. Remove check for `btowc' and `isascii' functions.
14766 * configure: Regenerated.
14767
14768 * acconfig.h (_MSE_INT_H): Remove.
14769 * configure.in: Create "Checks for header files" section, and move
14770 appropriate tests there. Don't check for objlist.h, wchar.h,
14771 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14772 misdetection fix. Also add "Checks for types", "Checks for
14773 compiler characteristics" and "Checks for library functions"
14774 sections.
14775 * config.in, configure: Regenerated.
14776
14777 * configure.in: Create "Checks for programs" section, and move
14778 appropriate tests there.
14779
14780 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14781
14782 * configure.in: Create "Checks for libraries" section, and move
14783 appropriate tests there. Cleanup check for wctype in libw. Use
14784 AC_SEARCH_LIBS to see whether we need libsocket.
14785 * configure: Regenerated.
14786
14787 For older changes see ChangeLog-2002
14788 \f
14789 Local Variables:
14790 mode: change-log
14791 left-margin: 8
14792 fill-column: 74
14793 version-control: never
14794 End:
This page took 0.546586 seconds and 4 git commands to generate.