* config/atof-tahoe.c: Fix comment typos.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
29dfb2ac
AC
12003-11-22 Andrew Cagney <cagney@redhat.com>
2
3 * mips-tdep.c (mips_o32_store_return_value): Delete function.
4 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
5 (mips_o32_extract_return_value): Delete function.
6 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
7 (mips_n32n64_extract_return_value): Delete function.
8 (mips_n32n64_store_return_value): Delete function.
9 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
10 instead of "store_return_value", "extract_return_value", and
11 "use_struct_convention".
12 (mips_n32n64_use_struct_convention): Delete function.
13
3a3da38c
KB
142003-11-21 Kevin Buettner <kevinb@redhat.com>
15
16 * frv-tdep.c (frv_frame_this_id): Eliminate call to
17 inside_entry_func().
18
c5e656c1
MK
192003-11-20 Mark Kettenis <kettenis@gnu.org>
20
21 * i386-tdep.c (i386_extract_return_value,
22 i386_store_return_value): Add gdbarch argument. Use it instead of
23 determining it from REGCACHE. Remove recursive call for
24 structures with a single member.
25 (i386_use_struct_convention): Remove.
26 (i386_reg_struct_return_p): New function.
27 (i386_return_value): New function.
28 (i386_gdbarch_init): Set return_value, don't set
29 extract_return_value, store_return_value and
30 use_struct_convention.
31 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
32
515cc92e
JB
332003-11-20 Jim Blandy <jimb@redhat.com>
34
35 * osabi.c (_initialize_gdb_osabi): Don't return before registering
36 the 'set osabi' and 'show osabi' commands.
37
3f1d7f16
MK
382003-11-19 Mark Kettenis <kettenis@gnu.org>
39
40 * frame.c (get_prev_frame): Use result from
41 get_frame_address_in_block instead of get_frame_pc as argument to
42 inside_main_func. Fixes PR backtrace/1435.
43
667e784f
AC
442003-11-19 Andrew Cagney <cagney@redhat.com>
45
46 * stack.c (return_command): Handle "void", "legacy" and "unknown
47 location" return values separatly.
48 * values.c (using_struct_return): Return 0 for a "void" return
49 type. Mention "register_value_being_returned".
50 (register_value_being_returned): Mention "using_struct_return".
51
4cecd739
DJ
522003-11-19 Daniel Jacobowitz <drow@mvista.com>
53
54 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
55 (frame_base_offset): Delete.
56 (read_func_scope): Delete call to decode_locdesc.
57 (decode_locdesc): Update comments. Don't set the removed variables.
58 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
59 DW_OP_fbreg support.
60
6b992462
DJ
612003-11-18 Daniel Jacobowitz <drow@mvista.com>
62
63 * dwarf2read.c (optimized_out, islocal): Remove.
64 (decode_locdesc): Update comments. Don't set optimized_out
65 or islocal.
66
968d1cb4
JJ
672003-11-17 Jeff Johnston <jjohnstn@redhat.com>
68 David Mosberger <davidm@hpl.hp.com>
69
70 * ia64-tdep.c: Include elf.h.
71 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
72 libunwind-ia64.h.
73 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
74 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
75 (ia64_is_fpreg, ia64_access_reg): Ditto.
76 (ia64_access_fpreg, ia64_access_mem): Ditto.
77 (get_kernel_table): Ditto.
78 (ia64_find_unwind_table): Ditto.
79 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
80 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
81 (ia64_libunwind_frame_prev_register): Ditto.
82 (ia64_libunwind_frame_sniffer): Ditto.
83 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
84 sniffer. Register libunwind functions needed by generic
85 libunwind frame code using libunwind_frame_set_descr().
86
d29caefc
DJ
872003-11-16 Daniel Jacobowitz <drow@mvista.com>
88
89 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
90 bp_shlib_disabled breakpoint if there is a shared library mapped
91 at its expected address.
92
691c0433
AC
932003-11-16 Andrew Cagney <cagney@redhat.com>
94
96cb1c2f
AC
95 * configure.tgt: Delete mips*tx39*-elf*.
96 * config/mips/tm-tx39.h: Delete file.
97 * config/mips/tx39.mt: Delete file.
98 * config/mips/tx39.mt: Delete file.
99
691c0433
AC
100 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
101 * remote-mips.c (common_open): Instead of
102 "mips_read_register_type" and "mips_set_processor_type_command"
103 call "deprecated_mips_set_processor_regs_hack".
104 * config/mips/tm-mips.h (mips_read_processor_type): Delete
105 declaration.
106 (mips_set_processor_type_command): Delete declaration.
107 * mips-tdep.c (mips_gdbarch_init): Update comment.
108 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
109 (mips_set_processor_type): Delete function.
110 (NUM_MIPS_PROCESSOR_REGS): Define.
111 (mips_show_processor_type_command): Delete function.
112 (mips_set_processor_type_command): Delete function.
113 (tmp_mips_processor_type): Delete.
114 (mips_processor_type): Delete.
115 (mips_processor_type_table): Delete.
116 (mips_r3051_reg_names): Delete.
117 (mips_r3081_reg_names): Delete.
118 (mips_lsi33k_reg_names): Delete.
119 (mips_processor_reg_names): Delete.
120 (mips_read_processor_type): Delete function.
121 (deprecated_mips_set_processor_regs_hack): New function.
122 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
123 (mips_register_name): Get the processor names from the tdep.
124 (mips_tx39_reg_names): New array.
125 (mips_generic_reg_names): Wire to a standard set of names.
126 (mips_gdbarch_init): Set "mips_processor_reg_names".
127 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
128 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
129 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
130
56cea623
AC
1312003-11-16 Andrew Cagney <cagney@redhat.com>
132
133 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
134 (mips_fpa0_regnum, mips_regnum): New function.
135 (mips_gdbarch_init): Fill in the "regnum" fields.
136 * mips-tdep.h (struct mips_regnum): Define.
137 (mips_regnum): Declare.
138 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
139 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
140 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
141 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
142 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
143 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
144 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
145 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
146 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
147 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
148 * remote-mips.c: Include "mips-tdep.h". Update.
149 * mipsnbsd-tdep.c: Update.
150 * mipsv4-nat.c: Update.
151 * mips-tdep.c: Update.
152 * mips-nat.c: Update.
153 * mips-linux-tdep.c: Update.
154 * mips-linux-nat.c: Update.
155 * irix5-nat.c: Update.
156 * dve3900-rom.c: Include "mips-tdep.h". Update.
157 (ignore_packet): Supress GCC warning.
158 * config/mips/nm-riscos.h: Update.
159
719ec221
AC
1602003-11-16 Andrew Cagney <cagney@redhat.com>
161
162 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
163 register_size.
164 (mips_register_raw_size): Delete function.
165 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
166 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
167 Check and set "mips64_transfers_32bit_regs_p".
168 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
169 (mips_register_convertible): Check the architecture's
170 "mips64_transfers_32bit_regs_p".
171 (set_mips64_transfers_32bit_regs): New function.
172 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
173 "set remote-mips64-transfers-32bit-regs" command. Specify
174 set_mips64_transfers_32bit_regs as the set function.
56cea623 175 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 176
20187ed5
MK
1772003-11-16 Mark Kettenis <kettenis@gnu.org>
178
179 * i386-tdep.h (i386_supply_gregset): Provide prototype.
180 * i386-tdep.c (i386_supply_gregset): Make public.
181
6771c427
AC
1822003-11-16 Andrew Cagney <cagney@redhat.com>
183
184 * mips-tdep.c (mips_register_byte): Delete function.
185 (mips_gdbarch_init): Do not set "deprecated_register_byte".
186 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
187 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
188 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
189
c8048956
MK
1902003-11-16 Mark Kettenis <kettenis@gnu.org>
191
192 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
193
cc8a868a
AC
1942003-11-16 Andrew Cagney <cagney@redhat.com>
195
196 * config/mips/linux64.mt: Delete file.
197 * config/mips/tm-linux64.h: Delete file.
198 * config/mips/tm-mips64.h: Delete file.
199 * config/mips/embed64.mt: Delete file.
200 * config/djgpp/fnchange.lst: Update.
201 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
202 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
203 * config/mips/tm-irix6.h: Update copyright. Include
204 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
205 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
206 "OP_LDGPR".
207
5ef80fb0
AC
2082003-11-15 Andrew Cagney <cagney@redhat.com>
209
210 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
211 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
212 n32 registers 64 bit.
213 (mips_register_raw_size, mips_register_byte): For pseudo
214 registers, use the register's pseudo size and not the
215 corresponding raw register's size.
216 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
217 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
218 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
219 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
220
4246e332
AC
2212003-11-15 Andrew Cagney <cagney@redhat.com>
222
8fa9cfa1
AC
223 * mips-tdep.c (struct gdbarch_tdep): Delete member
224 gdb_target_is_mips64.
225 (GDB_TARGET_IS_MIPS64): Delete macro.
226 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
227 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
228 (mips_addr_bits_remove): Simplify.
229
c73e8f27
AC
230 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
231 register_size.
232
4246e332
AC
233 Replace MIPS_REGSIZE with mips_regsize.
234 * mips-tdep.c (mips_regsize): New function.
235 * mips-tdep.h (mips_regsize): Declare.
236 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
237 (SIZEOF_STRUCT_REG): Update.
238 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
239 (mipsnbsd_fill_reg): Update.
240 (mipsnbsd_supply_fpreg): Update.
241 (mipsnbsd_fill_fpreg): Update.
242 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
243 * mips-tdep.c (mips_register_raw_size): Update.
244 (mips_register_type): Update.
245 (SIGFRAME_BASE): Update.
246 (SIGFRAME_PC_OFF): Update.
247 (SIGFRAME_REGSAVE_OFF): Update.
248 (SIGFRAME_FPREGSAVE_OFF): Update.
249 (SIGFRAME_REG_SIZE): Update.
250 (mips32_heuristic_proc_desc): Update.
251 (print_gp_register_row): Update.
252 (mips_dump_tdep): Do not print MIPS_REGSIZE.
253 * irix5-nat.c (supply_gregset): Update.
254 (fetch_core_registers): Update.
255 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
256 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
257 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
258 (MIPS_REGISTER_BYTE): Update.
259 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
260
5e044b1e
AC
2612003-11-15 Andrew Cagney <cagney@redhat.com>
262
263 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
264 USE_REGISTER_NOT_ARG.
265 * stabsread.c (define_symbol): Update.
266
3a16a68c
AC
2672003-11-15 Andrew Cagney <cagney@redhat.com>
268
269 * bcache.h (deprecated_bcache): Declare.
270 (bcache): Make returned buffer constant.
271 * bcache.c (deprecated_bcache): New function.
272 (bcache_data): New function.
273 (bcache): Call bcache data.
274 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
275 (add_psymbol_with_dem_name_to_list): Ditto.
276
bb41a796
MK
2772003-11-15 Mark Kettenis <kettenis@gnu.org>
278
279 * glibc-tdep.h (struct gdbarch): Declare opaque.
280 (glibc_skip_solib_resolver): Adjust prototype.
281 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
282 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
283 (arm_linux_init_abi): Set skip_solib_resolver.
284 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
285 (i386_linux_init_abi): Set skip_solib_resolver.
286 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
287 (arm_linux_skip_solib_resolver): Remove prototype.
288 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
289 (i386_linux_skip_solib_resolver): Remove prototype.
290
4c8c40e6
MK
2912003-11-14 Mark Kettenis <kettenis@gnu.org>
292
293 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
294 function.
295 * gdbarch.c, gdbarch.h: Regenerate.
296 * infrun.c (handle_inferior_event): Call
297 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
298 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
299 definition.
300 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
301 prototype.
302
0e5d83e3
JJ
3032003-11-14 Jeff Johnston <jjohnstn@redhat.com>
304
305 * libunwind-frame.c: New file.
306 * libunwind-frame.h: New file.
307 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
308 * configure.in: Add --with-libunwind option support. Define
309 HAVE_LIBUNWIND if libunwind support selected / defaulted.
310 Also check for libunwind.h and libunwind-ia64.h headers.
311 * configure: Regenerated.
312 * Makefile.in: Add support for libunwind-frame.o.
313 * config.in: Regenerated.
314
287a334e
JJ
3152003-11-14 Jeff Johnston <jjohnstn@redhat.com>
316
317 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
318 set up the ia64 linux native target method for getting the kernel
319 unwind table.
320 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
321 * inftarg.c (child_xfer_partial): Enable section of code to
322 handle TARGET_OBJECT_UNWIND_TABLE.
323 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
324
140be7b8
ILT
3252003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
326
327 * config/arm/nbsd.mt (TM_FILE): Define.
328 * config/arm/tm-nbsd.h: New file.
329
0a90bcdd
AC
3302003-11-14 Andrew Cagney <cagney@redhat.com>
331
332 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
333 * ppc-sysv-tdep.c: Include "objfiles.h".
334 (ppc64_sysv_abi_push_dummy_call): Provide the
335 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
336
337 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
338 "name_of_malloc" to ".malloc".
339
087f1027
MK
3402003-11-13 Mark Kettenis <kettenis@gnu.org>
341
342 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
343
3882f37a
DC
3442003-11-13 David Carlton <carlton@kealia.com>
345
346 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
347
a8cf2722
AC
3482003-11-13 Andrew Cagney <cagney@redhat.com>
349
350 * arch-utils.h (selected_architecture_name): Declare.
351 (selected_byte_order): Declare.
352 * arch-utils.c (selected_byte_order): New function.
353 (selected_architecture_name): New function.
354 (target_architecture_auto): Make static.
355 (set_architecture_string): Make static.
356 (target_byte_order): Make static.
357 (target_byte_order_auto): Make static.
358 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
359 non-multi-arch definition.
360 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
361 (target_byte_order, target_architecture): Delete declaration.
362 (target_byte_order_auto, target_architecture_auto): Ditto.
363 * gdbarch.h: Re-generate.
364 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
365 "selected_byte_order".
366
475b6ddd
AC
3672003-11-13 Andrew Cagney <cagney@redhat.com>
368
369 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
370
a22286a9
JB
3712003-11-13 Jim Blandy <jimb@redhat.com>
372
373 * cp-namespace.c: Doc fix.
374
7bb11558
MS
3752003-11-12 Michael Snyder <msnyder@redhat.com>
376
39add00a
MS
377 * sh64_tdep.c: Regularize some names.
378 (sh_sh64_register_name): Rename to sh64_register_name.
379 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
380 (sh_sh64_register_byte): Rename to sh64_register_byte.
381 (sh_sh64_build_float_register_type):
382 Rename to sh64_build_float_register_type.
383 (sh_sh64_register_convert_to_virtual):
384 Rename to sh64_register_convert_to_virtual.
385 (sh_sh64_register_convert_to_raw):
386 Rename to sh64_register_convert_to_raw.
387
2a314ed5
MS
388 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
389 sh64_media_reg_base_num, sh64_compact_reg_base_num,
390 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
391 sh64_extract_return_value, sh64_show_media_regs,
392 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
393 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
394 sh64_pseudo_register_read, sh64_pseudo_register_write,
395 sh64_do_pseudo_register, sh_compact_print_registers_info):
396 Delete unused variable 'tdep'.
397
7bb11558
MS
398 * sh64-tdep.c: Coding standard and spelling comment fixes.
399 (sh64_extract_return_value): Replace deprecated_store_floating
400 with store_typed_floating.
401 (sh_sh64_register_convert_to_raw): Replace
402 deprecated_store_floating with store_typed_floating.
403 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
404 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
405 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
406 sh64_extract_struct_value_address, sh64_pop_frame,
407 sh64_extract_return_value, sh64_store_return_value,
408 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
409 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
410 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
411 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
412 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
413 deprecated_register_virtual_type, deprecated_register_raw_size,
414 deprecated_max_register_raw_size, or
415 deprecated_max_register_virtual_size. Instead, just set
416 gdbarch_register_type.
39add00a
MS
417 (sh_sh64_register_raw_size): Delete.
418 (sh_sh64_register_virtual_size): Delete.
7bb11558 419
e7c27a73
DJ
4202003-11-12 Daniel Jacobowitz <drow@mvista.com>
421
422 * dwarf2read.c (struct dwarf2_cu): New type.
423
424 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
425 dwarf2_cu structure to pass down.
426
427 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
428 (add_partial_enumeration, locate_pdi_sibling, process_die)
429 (read_file_scope, read_func_scope)
430 (read_lexical_block_scope, dwarf2_get_pc_bounds)
431 (dwarf2_add_field, dwarf2_attach_fields_to_type)
432 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
433 (read_structure_scope, read_enumeration, read_array_type)
434 (read_common_block, read_namespace, read_tag_pointer_type)
435 (read_tag_ptr_to_member_type, read_tag_reference_type)
436 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
437 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
438 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
439 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
440 (read_full_die. read_attribute_value, read_attribute)
441 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
442 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
443 (die_containing_type, type_at_offset, tag_type_to_type)
444 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
445 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
446
1640b821
DJ
4472003-11-12 Daniel Jacobowitz <drow@mvista.com>
448
449 PR breakpoints/1450
450 * breakpoint.c (insert_bp_location): Fix a logic error by returning
451 0 after a catchpoint fails.
452
d7891507
MC
4532003-11-11 Michael Chastain <mec.gnu@mindspring.com>
454
455 * mips-tdep.c (msymbol_size): Delete.
456
f594e5e9
MC
4572003-11-07 Michael Chastain <mec@shout.net>
458
459 * symtab.h (struct minimal_symbol): Add size.
460 * dbxread.c: Use it.
461 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
462 Rename to record_minimal_symbol.
463 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
464 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
465 (install_minimal_symbols): Ditto.
466 * objfiles.c (terminate_minimal_symbol_table): Ditto.
467 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
468 * m68hc11-tdep.c: Ditto.
469 * mips-tdep.c: Ditto.
470 * sh64-tdep.c: Ditto.
471
68e39e73
MC
4722003-11-10 Michael Chastain <mec.gnu@mindspring.com>
473
474 * MAINTAINERS: Change my e-mail address.
475
b60eb90d
AC
4762003-11-10 Andrew Cagney <cagney@redhat.com>
477
963e2bb7
AC
478 * gdbarch.sh (return_value): Replace "inval" and "outval" with
479 "readbuf" and "writebuf".
480 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
481 * d10v-tdep.c (d10v_return_value): Ditto.
482 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
483 (ppc_sysv_abi_broken_return_value): Ditto.
484 (ppc64_sysv_abi_return_value): Ditto.
485 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
486 (ppc_sysv_abi_return_value): Ditto.
487 (ppc_sysv_abi_broken_return_value): Ditto.
488 (ppc64_sysv_abi_return_value): Ditto.
489 * values.c (register_value_being_returned): Update call.
490 * stack.c (return_command): Update call.
491 * gdbarch.h, gdbarch.c: Re-generate.
492
8aa91c1e
AC
493 * target.h (struct target_ops): Order xfer buffer parameters "read
494 write" not "write read".
495 * bfd-target.c (target_bfd_xfer_partial): Update.
496 * remote.c (remote_xfer_partial): Update.
497 * inftarg.c (child_xfer_partial): Update.
498 * target.c (default_xfer_partial): Update.
499 (target_read_partial, target_write_partial): Update.
500 (debug_to_xfer_partial): Update.
501
100bcc3f
AC
502 * arch-utils.h, arch-utils.c: Fix typo in comment.
503
b60eb90d
AC
504 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
505 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
506 (set_gdbarch_from_file): Call
507 "deprecated_current_gdbarch_select_hack".
b60eb90d 508
bf922ad9
AC
5092003-11-09 Andrew Cagney <cagney@redhat.com>
510
ebdba546
AC
511 * arch-utils.c (gdbarch_update_p): New function.
512 * gdbarch.sh (gdbarch_update_p): Delete function.
513 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 514 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
515 * gdbarch.c: Re-generate.
516
7de2341d
AC
517 * gdbarch.sh (clear_gdbarch_swap): Delete function.
518 (swapout_gdbarch_swap): Delete function.
519 (swapin_gdbarch_swap): Delete function.
520 (init_gdbarch_swap): Delete function.
521 (initialize_non_multiarch): Delete function.
522 (current_gdbarch_swap_in_hack): New function.
523 (current_gdbarch_swap_out_hack): New function.
524 (current_gdbarch_swap_init_hack): New function.
525 * gdbarch.c: Re-generate.
526
db446970
AC
527 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
528 parameter to "current_gdbarch". Add comment explaining why.
529 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
530 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
531 * gdbarch.c: Re-generate.
532
341e3d11
AC
533 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
534 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
535 * config/s390/xm-linux.h: Delete file.
536 * config/m88k/xm-delta88v4.h: Delete stray.
537
bf922ad9
AC
538 * Makefile.in (arch-utils.o): Update dependencies.
539 * arch-utils.c: Include "osabi.h".
540 (gdbarch_info_fill): New function.
541 * arch-utils.h (gdbarch_info_fill): Declare.
542 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
543 * gdbarch.c: Re-generate.
544
a3640c75
MK
5452003-11-09 Mark Kettenis <kettenis@gnu.org>
546 David S. Miller <davem@redhat.com>
547
548 * glibc-tdep.c, glibc-tdep.h: New files.
549 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
550 * config/i386/linux.mt (TDEPFILES): Likewise.
551 * i386-linux-tdep.c (glibc-tdep.h): Include.
552 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
553 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
554 * arm-linux-tdep.c (glibc-tdep.h): Include.
555 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
556 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
557 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
558 (glibc_tdep_h): Define.
559 (glibc-tdep.o): Add dependencies.
560 (arm-linux-tdep.o): Update dependencies.
561 (i386-linux-tdep.o): Likewise.
562
e60e0ab2
AC
5632003-11-09 Andrew Cagney <cagney@redhat.com>
564
565 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
566 * config/mips/nm-irix6.h: Delete file.
567 * config/mips/nm-linux.h: Update copyright.
568 (MIPS_GNULINUX_TARGET): Delete macro.
569 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
570 * config/mips/xm-irix6.h: Delete file.
571 * config/mips/linux.mh (XM_FILE): Delete definition.
572 * config/mips/xm-linux.h: Delete file.
573
181555e9
AC
5742003-11-09 Andrew Cagney <cagney@redhat.com>
575
576 * d10v-tdep.c (d10v_return_value): New function.
577 (d10v_use_struct_convention): Delete function.
578 (d10v_store_return_value): Delete function.
579 (d10v_extract_struct_value_address): Delete function.
580 (d10v_gdbarch_init): Set "return_value" instead of
581 "extract_return_value", "store_return_value",
582 "extract_struct_value_address", and "use_struct_convention".
583 (RET1_REGNUM): Delete const.
584
dea0c52f
MK
5852003-11-09 Mark Kettenis <kettenis@gnu.org>
586
587 From David S. Miller <davem@redhat.com>:
588 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
589 * gdbarch.c, gdbarch.h: Regenerated.
590 * arch-utils.c (generic_skip_solib_resolver): New function.
591 * arch-utils.h (generic_skip_solib_resolver): New prototype.
592 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
593
6314a349
AC
5942003-11-07 Andrew Cagney <cagney@redhat.com>
595
596 * top.c (print_gdb_version): Replace STREQ with strcmp.
597 * valops.c (value_struct_elt_for_reference): Ditto.
598 (value_struct_elt_for_reference): Ditto.
599 * symtab.c (gdb_mangle_name): Ditto.
600 (find_line_symtab): Ditto.
601 * symmisc.c (maintenance_print_symbols): Ditto.
602 * symfile.c (symbol_file_command): Ditto.
603 * stabsread.c (define_symbol, read_type): Ditto.
604 (cleanup_undefined_types, scan_file_globals): Ditto.
605 * solib.c (solib_map_sections): Ditto.
606 * solib-svr4.c (bfd_lookup_symbol): Ditto.
607 * rs6000-tdep.c (skip_prologue): Ditto.
608 * p-valprint.c (pascal_value_print): Ditto.
609 (pascal_object_is_vtbl_ptr_type): Ditto.
610 * objfiles.c (in_plt_section): Ditto.
611 * minsyms.c (lookup_minimal_symbol): Ditto.
612 (compact_minimal_symbols): Ditto.
613 (find_solib_trampoline_target): Ditto.
614 * mdebugread.c (parse_type): Ditto.
615 * language.c (set_language_command): Ditto.
616 (set_type_command, set_range_command): Ditto.
617 * f-lang.c (add_common_block): Ditto.
618 (add_common_block): Ditto.
619 (find_first_common_named): Ditto.
620 (patch_all_commons_by_name): Ditto.
621 * elfread.c (elf_locate_sections): Ditto.
622 (elf_locate_sections): Ditto.
623 (elfstab_offset_sections): Ditto.
624 * dwarf2read.c (dwarf2_locate_sections): Ditto.
625 * dbxread.c (add_old_header_file): Ditto.
626 (find_corresponding_bincl_psymtab): Ditto.
627 (read_dbx_symtab, process_one_symbol): Ditto.
628 * coffread.c (patch_opaque_types): Ditto.
629 * cli/cli-decode.c (delete_cmd): Ditto.
630 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
631 * c-typeprint.c (c_type_print_base): Ditto.
632 * breakpoint.c (bpstat_stop_status): Ditto.
633 (clear_command, breakpoint_re_set_one): Ditto.
634
49df298f
AC
6352003-11-07 Andrew Cagney <cagney@redhat.com>
636
637 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
638 * bcache.c (struct bstring): Make "length" an unsigned short, add
639 "half_hash".
640 (struct bcache): Add "half_hash_error_count".
641 (bcache): Compute and save the "half_hash". Compare the
642 "half_hash" before comparing the length. Update
643 half_hash_error_count.
644
f168dd80
AC
6452003-11-07 Andrew Cagney <cagney@redhat.com>
646
647 * inftarg.c (child_xfer_partial): New function
648 (init_child_ops): Set "to_xfer_partial".
649
05580c65
AC
6502003-11-07 Andrew Cagney <cagney@redhat.com>
651
652 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
653 set "return_value" instead of "use_struct_convention".
654 (ppc_linux_use_struct_convention): Delete function.
655 (ppc_linux_return_value): New function.
656 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
657 (ppc_sysv_abi_broken_return_value): New function.
658 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
659 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
660 static.
661 (ppc_sysv_abi_extract_return_value): Delete function.
662 (ppc_sysv_abi_broken_extract_return_value): Delete function.
663 (ppc_sysv_abi_store_return_value): Delete function.
664 (ppc_sysv_abi_broken_store_return_value): Delete function.
665 (ppc_sysv_abi_use_struct_convention): Delete function.
666 (ppc64_sysv_abi_use_struct_convention): Delete function.
667 (ppc64_sysv_abi_extract_return_value): Delete function.
668 (ppc64_sysv_abi_store_return_value): Delete function.
669 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
670 (ppcnbsd_init_abi): Set "return_value", instead of
671 "use_struct_convention", "extract_return_value", and
672 "store_return_value".
673 (ppcnbsd_use_struct_convention): Delete function.
674 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
675 (ppc_sysv_abi_return_value): Declare.
676 (ppc_sysv_abi_broken_return_value): Declare.
677 (ppc_sysv_abi_use_struct_convention): Delete.
678 (ppc_sysv_abi_store_return_value): Delete.
679 (ppc_sysv_abi_extract_return_value): Delete.
680 (ppc_sysv_abi_broken_store_return_value): Delete.
681 (ppc_sysv_abi_broken_extract_return_value): Delete.
682 (ppc64_sysv_abi_use_struct_convention): Delete.
683 (ppc64_sysv_abi_extract_return_value): Delete.
684 (ppc64_sysv_abi_store_return_value): Delete.
685 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
686 set "return_value" instead of "extract_return_value",
687 "store_return_value", and "use_struct_convention".
688
1763fba4
MK
6892003-11-07 Mark Kettenis <kettenis@gnu.org>
690
22c7ba1a
MK
691 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
692
1763fba4
MK
693 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
694 fscanf.
695
fc07cc2d
MK
6962003-11-07 Mark Kettenis <kettenis@gnu.org>
697
698 * fbsd-proc.c: Fix formatting.
699
6a748db6
KB
7002003-11-06 Kevin Buettner <kevinb@redhat.com>
701
702 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
703 Define.
704 (new_variant): Set name for iacc0_regnum.
705 (frv_register_name): Accommodate pseudo-registers.
706 (frv_register_type): Add case for iacc0_regnum.
707 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
708 (frv_gdbarch_init): Set number of pseudo registers. Establish
709 pseudo-register read/write methods.
710
bf896cb0
AC
7112003-11-06 Andrew Cagney <cagney@redhat.com>
712
713 * valops.c (destructor_name_p): Replace STREQN with strncmp.
714 * top.c (command_line_input): Ditto.
715 * objc-exp.y (yylex): Ditto.
716 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
717 * jv-exp.y (yylex): Ditto.
718 * f-exp.y (yylex): Ditto.
719 * event-top.c (command_line_handler): Ditto.
720 * environ.c (get_in_environ): Ditto.
721 (set_in_environ): Ditto.
722 * dwarfread.c (handle_producer): Ditto.
723 * dbxread.c (process_one_symbol): Ditto.
724 * c-typeprint.c (c_type_print_base): Ditto.
725 * c-exp.y (yylex): Ditto.
726
0b603eba
AC
7272003-11-06 Andrew Cagney <cagney@redhat.com>
728 Jeff Johnston <jjohnstn@redhat.com>
729
730 * target.c (add_target): Only set "to_xfer_partial" when NULL.
731 (init_dummy_target): Set "to_xfer_partial".
732
9cedbfec
AC
7332003-11-06 Andrew Cagney <cagney@redhat.com>
734
735 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
736 REGISTER_CONVENTION.
737
26bb91f3
DJ
7382003-11-06 Daniel Jacobowitz <drow@mvista.com>
739
740 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
741 static.
742
0bde7532
DJ
7432003-11-06 Daniel Jacobowitz <drow@mvista.com>
744
745 * breakpoint.c (remove_breakpoint): Take an bp_location
746 instead of a breakpoint argument. Check the bp_location's type.
747 Fix a reversed condition for hardware breakpoints.
748
749 (insert_bp_location): Update call to remove_breakpoint.
750 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
751 (remove_hw_watchpoints): Likewise.
752 (reattach_breakpoints): Likewise.
753 (detach_breakpoints): Likewise.
754 (delete_breakpoint): Likewise.
755
075f6582
DJ
7562003-11-06 Daniel Jacobowitz <drow@mvista.com>
757
758 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
759 (beakpoint_init_inferior): Likewise.
760 (breakpoint_here_p): Likewise. Only check addresses for software
761 or hardware breakpoints.
762 (breakpoint_inserted_here_p): Likewise.
763 (breakpoint_thread_match): Likewise. Correct comment.
764 (bpstat_have_active_hw_watchpoints): Likewise.
765 (check_duplicates): Likewise.
766
879bfdc2
DJ
7672003-11-06 Daniel Jacobowitz <drow@mvista.com>
768
769 * breakpoints.c (insert_bp_location): New function, broken out
770 from insert_breakpoints. Work on an bp_location instead of a
771 breakpoint.
772 (insert_breakpoints): Use it.
773
cf3a9e5b
DJ
7742003-11-06 Daniel Jacobowitz <drow@mvista.com>
775
776 * breakpoint.h (struct bp_location): Add section.
777 (struct breakpoint): Remove section.
778 * breakpoint.c (insert_breakpoints, remove_breakpoint)
779 (breakpoint_here_p, breakpoint_inserted_here_p)
780 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
781 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
782 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
783 section through loc.
784
ffce0d52
DJ
7852003-11-06 Daniel Jacobowitz <drow@mvista.com>
786
787 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
788 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
789
e049a4b5
DJ
7902003-11-06 Daniel Jacobowitz <drow@mvista.com>
791
792 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
793 arguments. Initialize owner and type for the new breakpoint
794 location item.
795 (set_raw_breakpoint): Update call to allocate_bp_location.
796
7cc221ef
DJ
7972003-11-06 Daniel Jacobowitz <drow@mvista.com>
798
799 * breakpoint.h (struct bp_location): Add a chain pointer.
800 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
801 macros.
802 (bp_location_chain): New variable.
803 (allocate_bp_location): New function.
804 (set_raw_breakpoint): Use it.
805 (delete_breakpoint): Remove ->loc from the bp_location_chain.
806
5cab636d
DJ
8072003-11-06 Daniel Jacobowitz <drow@mvista.com>
808
809 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
810 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 811 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
812 * breakpoint.c (condition_command, read_memory_nobpt)
813 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
814 (reattach_breakpoints, update_breakpoints_after_exec)
815 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
816 (breakpoint_init_inferior, breakpoint_here_p)
817 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
818 (breakpoint_thread_match, bpstat_stop_status)
819 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
820 (describe_other_breakpoints, check_duplicates)
821 (make_breakpoint_permanent, create_thread_event_breakpoint)
822 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
823 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
824 (watch_command_1, print_one_exception_catchpoint)
825 (clear_command, breakpoint_re_set_one): Adjust member accesses to
826 use the breakpoint's ->loc.
827 (set_raw_breakpoint): Likewise. Initialize ->loc.
828 (delete_breakpoint): Likewise. Free ->loc.
829
7be0c536
AC
8302003-11-05 Andrew Cagney <cagney@redhat.com>
831
4c7d882e
AC
832 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
833 macro.
834 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
835 * config/i386/tm-cygwin.h
836 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
837 * config/powerpc/tm-linux.h
838 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
839 (at_subroutine_call_instruction_target): Delete declaration.
840 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
841 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
842 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
843
7be0c536
AC
844 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
845 "struct bfd_section" and "struct bfd".
846 * target.h (struct section_table): Ditto.
847 * rs6000-nat.c (xcoff_relocate_core): Ditto.
848 * solib-svr4.c (elf_locate_base): Ditto.
849 * pa64solib.c (dld_cache_t): Ditto.
850 * objfiles.h (struct obj_section): Ditto.
851 * objfiles.c (add_to_objfile_sections): Ditto.
852 * exec.c (bfdsec_to_vmap): Ditto.
853 (add_to_section_table): Ditto.
854 (build_section_table): Ditto.
855 * corelow.c (get_core_register_section): Ditto.
856 * coffread.c (find_linenos): Ditto.
857 * elfread.c (elf_interpreter): Delete #if0'd function.
858
859 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
860 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
861 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
862 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
863
864 * arch-utils.h (generic_cannot_extract_struct_value_address):
865 Delete declaration.
866 * wince.c (_initialize_wince): Fix multi-line string.
867 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
868
d8fe84e3
EZ
8692003-11-05 Elena Zannoni <ezannoni@redhat.com>
870
871 * top.c (execute_command): Fix broken logic for command execution
872 while inferior is running in async mode.
873
cbdfc7c0
MK
8742003-11-06 Mark Kettenis <kettenis@gnu.org>
875
876 * dwarf2-frame.c (execute_cfa_program): Mark register as
877 REG_SAVED_REG for DW_CFA_register opcode.
878
dac94105
MK
8792003-11-05 Mark Kettenis <kettenis@gnu.org>
880
881 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
882 %rsp, %rip and %eflags to match ABI-change.
883
85bf2b91
JJ
8842003-11-05 Jeff Johnston <jjohnstn@redhat.com>
885
886 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
887 (ia64_gdbarch_init): Don't bother calculating the os.
888 Instead use the gdbarch_info struct and look at the osabi field.
889 Also use gdbarch_list_lookup_by_info() to look for a
890 candidate gdbarch.
891
cd31fb03
KB
8922003-11-05 Kevin Buettner <kevinb@redhat.com>
893
894 * frv-tdep.c (frv_register_byte): Delete.
895 (frv_extract_return_value, frv_store_return_value)
896 (frv_extract_struct_value_address): Don't call frv_register_byte().
897 Convert to non-deprecated form.
898 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
899 Convert calls to set_gdbarch_deprecated_extract_return_value(),
900 set_gdbarch_deprecated_store_return_value(), and
901 set_gdbarch_deprecated_extract_struct_value_address() into
902 non-deprecated forms.
903
0a056982
AC
9042003-11-05 Andrew Cagney <cagney@redhat.com>
905
906 * mips-tdep.c (mips_dump_tdep): Do not print
907 PRINT_EXTRA_FRAME_INFO.
908 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
909 Rename PRINT_EXTRA_FRAME_INFO.
910 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
911 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
912 (mips_print_extra_frame_info): Delete declaration.
913 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
914
29e0a062
EZ
9152003-11-05 Elena Zannoni <ezannoni@redhat.com>
916
917 * coffread.c (coff_symtab_read): Remove passing of info parameter
918 to prim_record_minimal_symbol_and_info.
919
8af580fc
EZ
9202003-11-05 Elena Zannoni <ezannoni@redhat.com>
921
922 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
923 (decode_base_type): Delete ifdeffed out code.
924
507836c0
AC
9252003-11-04 Andrew Cagney <cagney@redhat.com>
926
927 * symtab.c (find_active_alias): Delete function.
928 (lookup_block_symbol): Delete alias code.
929 * stabsread.c (resolve_live_range): Delete function.
930 (add_live_range): Delete function.
931 (resolve_symbol_reference): Delete function.
932 (define_symbol): Delete live range and alias code.
933 (scan_file_globals): Delete alias code.
934 * symtab.h (SYMBOL_RANGES): Delete macro.
935 (struct range_list): Delete structure.
936 (struct symbol): Delete field "ranges".
937 (SYMBOL_ALIASES): Delete macro.
938 (struct alias_list): Delete structure.
939 (struct symbol): Delete field "aliases".
940
1083b3bc
MS
9412003-11-04 Michael Snyder <msnyder@redhat.com>
942
943 * MAINTAINERS: Remove myself as owner of breakpoints and
944 of sparc/solaris.
945
474e5826
CV
9462003-11-03 Corinna Vinschen <vinschen@redhat.com>
947
948 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
949 (sh_sh4al_dsp_register_name): Ditto.
950 (sh4_nofpu_show_regs): Ditto.
951 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
952 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
953
2160782c
AC
9542003-11-03 Andrew Cagney <cagney@redhat.com>
955
956 * bcache.c: Include "gdb_assert.h".
957 (struct bcache): Add fields "expand_count" and
958 "expand_hash_count".
959 (expand_hash_table): Update the expand counts.
960 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
961 on object sizes and hashes.
962 * Makefile.in (bcache.o): Update dependencies.
963
85302095
AC
9642003-11-03 Andrew Cagney <cagney@redhat.com>
965
966 * exec.c (xfer_memory): Eliminate xfer_fn.
967
526eef89
KB
9682003-10-31 Kevin Buettner <kevinb@redhat.com>
969
970 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
971 (opcodes/frv-desc.h): Include.
972 (iacc0h_regnum, iacc0l_regnum): Define.
973 (last_spr_regnum, frv_num_regs): Update.
974 (new_variant): Don't supply default names for holes in the SPRs.
975 Supply names for iacc0h_regnum and iacc0l_regnum.
976 (frv_register_type): Use symbolic constants first_fpr_regnum and
977 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
978 builtin_type_int instead of builtin_type_int32.
979 (frv_register_sim_regno): New function.
980 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
981 * Makefile.in (gdb_sim_frv_h): Define.
982 (frv-tdep.o): Update dependencies.
983
9e815ec2
AC
9842003-10-31 Andrew Cagney <cagney@redhat.com>
985
986 * avr-tdep.c (avr_frame_this_id): Do not call
987 deprecated_inside_entry_file.
988 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
989 * m32r-tdep.c (m32r_frame_this_id): Ditto.
990 * d10v-tdep.c (d10v_frame_this_id): Ditto.
991 * arm-tdep.c (arm_prologue_this_id): Ditto.
992 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
993
e372db49
JB
9942003-10-31 Jim Blandy <jimb@redhat.com>
995
996 * elfread.c (elf_symtab_read): Allocate correct number of tail
997 elements to sectinfo structure. (Fix from Woody LaRue.)
998
e8bcf01f
AC
9992003-10-31 Andrew Cagney <cagney@redhat.com>
1000
1001 * stack.c (return_command): Use get_frame_type, instead of
1002 CALL_DUMMY_HAS_COMPLETED.
1003 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1004 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1005
4c05fe53
MK
10062003-10-31 Mark Kettenis <kettenis@gnu.org>
1007
1008 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1009 explicitly specify size of array.
1010 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1011 TDEP->sc_num_regs.
1012
c8b91b89
AC
10132003-10-31 Andrew Cagney <cagney@redhat.com>
1014
1015 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1016 function.
1017 (s390_gdbarch_init): Set extract_struct_value_address.
1018 * arch-utils.c (generic_cannot_extract_struct_value_address):
1019 Delete function.
1020 * arch-utils.h (generic_cannot_extract_struct_value_address):
1021 Delete definition.
1022
fdfb6fc8
MK
10232003-10-31 Mark Kettenis <kettenis@gnu.org>
1024
1025 * i386-linux-nat.c (fetch_core_registers): Remove.
1026 (linux_elf_core_fns): Remove.
1027 (_initialize_i386_linux_nat): Remove.
1028
2f4950cd
AC
10292003-10-31 Andrew Cagney <cagney@redhat.com>
1030
1031 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1032 "exec.h".
1033 (exec_entry_point): New function.
1034 (enable_break): Create a "tmp_bfd_target", use that and
1035 entry_point_address when computing the relocation offset.
1036 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1037 * Makefile.in (solib-svr4.o): Update dependencies.
1038
bba2d28d
AC
10392003-10-31 Andrew Cagney <cagney@redhat.com>
1040
1041 * defs.h (XZALLOC): Define.
1042 * target.h (struct target_ops): Add "to_data";
1043 * bfd-target.h, bfd-target.c: New files.
1044 * Makefile.in (SFILES): Add "bfd-target.c".
1045 (COMMON_OBS): Add "bfd-target.o".
1046 (bfd-target.o): Specify dependencies.
1047 (bfd_target_h): Define.
1048 * defs.h (XZALLOC): Define.
1049
6066c3de
AC
10502003-10-31 Andrew Cagney <cagney@redhat.com>
1051
1052 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1053 adjust_breakpoint_address.
1054 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1055 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1056 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1057 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1058
4b8a223f
AC
10592003-10-31 Andrew Cagney <cagney@redhat.com>
1060
1061 * target.h (struct target_ops): Replace "to_read_partial" and
1062 "to_write_partial" with "to_xfer_partial". Update comments.
1063 * target.c (debug_to_write_partial): Delete function.
1064 (debug_to_xfer_partial): Replace debug_to_read_partial.
1065 (add_target, update_current_target, setup_target_debug): Set
1066 "to_xfer_partial" instead of "to_read_partial" and
1067 "to_write_partial".
1068 (default_xfer_partial): Replace "default_write_partial".
1069 (default_read_partial): Delete.
1070 (target_read_partial, target_write_partial): Call
1071 "to_xfer_partial".
1072 * remote.c (init_remote_ops): Set "to_xfer_partial".
1073 (init_remote_async_ops): Ditto.
1074 (remote_xfer_partial): Replace "remote_read_partial".
1075
66a72d25
MK
10762003-10-31 Mark Kettenis <kettenis@gnu.org>
1077
1078 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1079 registers in `fxsave' format.
1080 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1081
9a12a2a0
MK
10822003-10-30 Mark Kettenis <kettenis@gnu.org>
1083
e9f1aad5
MK
1084 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1085 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1086 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1087
bb489b3c
MK
1088 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1089 specify size of array.
1090 (i386_linux_init_abi): Remove initialization of
1091 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1092 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1093
da285bc4
MK
1094 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1095 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1096 core-regset.o.
1097
9a12a2a0
MK
1098 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1099 the ELF header.
1100
0e24ac5d
MK
11012003-10-29 Mark Kettenis <kettenis@gnu.org>
1102
6d6d8e9c
MK
1103 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1104 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1105 core-regset.o.
1106
25e60c9b
MK
1107 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1108
0e24ac5d
MK
1109 * corelow.c: Include "arch-utils.h", "regset.h" and
1110 "gdb_assert.h".
1111 (core_gdbarch): New variable.
1112 (sniff_core_bfd): Don't sniff if we have support for register sets
1113 in CORE_GDBARCH.
1114 (core_close): Reset CORE_GDBARCH.
1115 (core_open): Initialize CORE_GDBARCH.
1116 (get_core_register_section): Use register sets if they are
1117 supported by CORE_GDBARCH.
1118 (get_core_registers): Don't print error message if we have support
1119 for register sets in CORE_GDBARCH.
1120
0a0a4ac3
AC
11212003-10-29 Andrew Cagney <cagney@redhat.com>
1122
1123 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1124 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1125
7b097ae3
MK
11262003-10-29 Mark Kettenis <kettenis@gnu.org>
1127
1128 * objfiles.h (clear_objfile_data): New prototype.
1129 * objfiles.c (clear_objfile_data): New function.
1130 * symfile.c (reread_symbols): Clear per-objfile data.
1131
46f45a4a
JJ
11322003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1133
1134 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1135 printf_unfiltered instead of printf_filtered for output messages.
1136 (add_symbol_file_command): Ditto.
1137 (reread_symbols): Ditto.
1138 (overlay_auto_command): Ditto.
1139 (overlay_manual_command): Ditto.
1140 (overlay_off_command): Ditto.
1141
2b026650
MK
11422003-10-27 Mark Kettenis <kettenis@gnu.org>
1143
1144 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1145 (gdbarch_from_bfd): New function.
1146 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1147 deprecated_select_gdbarch_hack.
1148 * arch-utils.h (gdbarch_from_bfd): New prototype.
1149
0bcad584 11502003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1151
1152 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1153 arch_info. Use warning instead of fprintf_filtered. Do not use
1154 deprecated bfd_printable_arch_mach.
1155
7f398216
KB
11562003-10-26 Kevin Buettner <kevinb@redhat.com>
1157
1158 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1159 Delete.
1160 (frv_register_type): Rename from frv_register_virtual_type. Add
1161 ``struct gdbarch *'' parameter.
1162 (frv_gdbarch_init): Delete calls to the following functions:
1163 set_gdbarch_deprecated_size(),
1164 set_gdbarch_deprecated_register_bytes(),
1165 set_gdbarch_deprecated_register_raw_size(),
1166 set_gdbarch_deprecated_max_register_raw_size(),
1167 set_gdbarch_deprecated_register_virtual_size(),
1168 set_gdbarch_deprecated_max_register_virtual_size(),
1169 set_gdbarch_deprecated_register_virtual_size(),
1170 set_gdbarch_deprecated_register_virtual_type().
1171 Add call to function set_gdbarch_register_type().
1172
bcf48cc7
MK
11732003-10-26 Mark Kettenis <kettenis@gnu.org>
1174
6c7de422
MK
1175 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1176 FDOFF_REGNUM): Remove defines.
1177 * win32-nat.c (do_child_fetch_inferior_registers): Include
1178 "i387-tdep.h".
3e685d41 1179 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1180 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1181 undefine I387_ST0_REGNUM.
1182
f783586b
MK
1183 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1184 * x86-64-tdep.c (x86_64_store_return_value): Use
1185 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1186
bcf48cc7
MK
1187 Change register numbers to enumartion values.
1188 * i386-tdep.h (enum i386_regnum): New.
1189 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1190 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1191 I386_ST0_REGNUM): Remove defines.
1192 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1193 I386_EDI_REGNUM): Remove defines.
1194
b6591e8b
AC
11952003-10-24 Andrew Cagney <cagney@redhat.com>
1196
1197 * target.c: Include "gdbcore.h".
1198 (get_target_memory, get_target_memory_unsigned): New functions.
1199 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1200 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1201 Use get_target_memory_unsigned.
1202 * Makefile.in (target.o): Update dependencies.
1203
5f724446
AC
12042003-10-24 Andrew Cagney <cagney@redhat.com>
1205
ce2826aa
AC
1206 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1207 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1208 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1209 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1210 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1211
5f724446
AC
1212 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1213 (can_run_code_for): Use the OO term "singleton".
1214
fc70c2a0
AC
12152003-10-23 Andrew Cagney <cagney@redhat.com>
1216
1217 * Makefile.in (stack.o): Add $(regcache_h).
1218 * stack.c: Include "regcache.h"
1219 (return_command): Rewrite. Use get_frame_id and
1220 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1221 about unhandled return-values.
1222 * value.h (set_return_value): Delete declaration.
1223 * values.c (set_return_value): Delete function.
1224
4afcc598
JJ
12252003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1226
1227 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1228 (pseudo_regs): Add comment regarding register stack registers.
1229 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1230 (floatformat_valid): New static routine.
1231 (floatformat_ia64_ext): Add name field and set up is_valid routine
1232 to floatformat_valid().
1233 (examine_prologue): For the previous cfm, use
1234 frame_unwind_register()
1235 if the cfm is not stored in a register-stack register. Save the
1236 previous cfm value in the prev_cfm field. Add debug output.
1237 (ia64_frame_this_id): Use frame_id_build_special() to also register
1238 the bsp. Add debug output.
1239 (ia64_sigtramp_frame_this_id): Ditto.
1240 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1241 registers and also add some checks for framelessness before accepting
1242 current register values for fields such as return address. For cfm,
1243 use the cached prev_cfm field if available. Add comment to explain
1244 PSR logic. Add debug output.
1245 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1246 as part of initialization.
1247 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1248 calculated. Cache the bsp and cfm values.
1249 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1250 instead of using ia64_frame_prev_register() which doesn't expect most
1251 registers to be saved. The saved values for bsp and sp
1252 can be taken from the cache. Add debug output.
1253 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1254 the bsp.
1255
6cfae0bc
JB
12562003-10-23 Jim Blandy <jimb@redhat.com>
1257
1258 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1259 architecture the current arch can run code for --- but not if it's
1260 a superset.
1261 (can_run_code_for): New function.
1262
fcd182f9
JW
12632003-10-22 James E Wilson <wilson@specifixinc.com>
1264
1265 * MAINTAINERS: Move myself from paper trail section back to write
1266 after approval section.
1267
4646aa9d
AC
12682003-10-22 Andrew Cagney <cagney@redhat.com>
1269
1270 * exec.h: New file.
1271 * win32-nat.c: Include "exec.h".
1272 * solib.c: Include "exec.h".
1273 * target.h (build_section_table): Delete declaration.
1274 * somsolib.c: Include "exec.h".
1275 (exec_ops): Delete extern declaration.
1276 * rs6000-nat.c: Update copyright. Include "exec.h".
1277 (exec_ops): Delete extern declaration.
1278 * pa64solib.c: Update copyright. Include "exec.h".
1279 (exec_ops): Delete extern declaration.
1280 * exec.c: Update copyright. Include "exec.h".
1281 * corelow.c: Update dependencies. Include "exec.h".
1282 * Makefile.in (exec_h): Define.
1283 (exec.o, somsolib.o): Update dependencies.
1284 (pa64solib.o, corelow.o): Update dependencies.
1285
0088c768
AC
12862003-10-22 Andrew Cagney <cagney@redhat.com>
1287
1288 * target.c: Include "gdb_assert.h" (target_read): Call
1289 "target_read_partial", not "target_write_partial".
1290 (default_read_partial, default_write_partial): New function.
1291 (target_read_partial, target_write_partial): Simplify, assume that
1292 there is always a read/write method.
1293 (update_current_target, add_target): Always set "to_read_partial"
1294 and "to_write_partial".
1295 (target_write, target_read): Fail on a zero byte transfer.
1296 * Makefile.in (target.o): Update dependencies.
1297 * target.h: Update copyright date.
1298 (target_object): Fix typo.
1299
e2d0e7eb
AC
13002003-10-22 Andrew Cagney <cagney@redhat.com>
1301
1302 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1303 multi-arch method, add "targ" parameter.
1304 (struct target_ops): Declare.
1305 * gdbarch.h, gdbarch.c: Re-generate.
1306 * Makefile.in (c-valprint.o): Update dependencies.
1307 * arch-utils.h: Update copyright.
1308 (convert_from_func_ptr_addr_identity): Declare.
1309 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1310 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1311 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1312 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1313 * infcall.c (find_function_addr, call_function_by_hand): Update.
1314 * c-valprint.c: Include "target.h".
1315 (print_function_pointer_address): Update.
1316
f1c07ab0
AC
13172003-10-22 Andrew Cagney <cagney@redhat.com>
1318
1319 * target.c (target_close): New function.
1320 (debug_to_close): Use "target_close".
1321 (push_target): Use "target_close".
1322 (unpush_target): Use "target_close".
1323 (pop_target): Use "target_close".
1324 * target.h (struct target_ops): Add "to_xclose".
1325 (target_open): Delete macro. Move comment to "to_open".
1326 (target_close): Replace macro with function that takes a target.
1327 * top.c (quit_target): Pass "current_target" to "target_close".
1328
5520a790
EZ
13292003-10-21 Elena Zannoni <ezannoni@redhat.com>
1330
1331 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1332 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1333 * symtab.h (lookup_minimal_symbol_text): Update.
1334 * breakpoint.c (create_overlay_event_breakpoint,
1335 create_longjmp_breakpoint): Update callers.
1336 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1337 * symtab.c (find_pc_sect_line): Ditto.
1338
caa92b73
AC
13392003-10-21 Andrew Cagney <cagney@redhat.com>
1340
1341 * target.c (errno): Delete extern declaration.
1342
aa2a9a3c
JJ
13432003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1344
1345 * ia64-tdep.c: Change all occurrences of
1346 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1347 (ia64_frame_prev_register): Minor whitespace change.
1348
4beec2b7
MC
13492003-10-20 Michael Chastain <mec@shout.net>
1350
1351 * config/djgpp/fnchange.lst: Add lines for:
1352 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1353 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1354 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1355 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1356 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1357 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1358 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1359
92ad9cd9
AC
13602003-10-20 Andrew Cagney <cagney@redhat.com>
1361
1362 * values.c (register_value_being_returned): Update comments. Use
1363 "gdbarch_return_value" when available.
1364 (using_struct_return): Ditto.
1365 (set_return_value): Ditto. Use "gdbarch_return_value" when
1366 available.. Print a warning, and not an error, when an unhandled
1367 return type is encountered.
1368 * infcmd.c: Include "gdb_assert.h".
1369 (print_return_value): When gdbarch_return_value_p, and using
1370 struct return, assume that the value is not available.
1371 * defs.h (return_value_convention): Define.
1372 * gdbarch.sh (gdbarch_return_value): New predicate method.
1373 * gdbarch.h, gdbarch.c: Re-generate
1374 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1375
198beae2
AC
13762003-10-20 Andrew Cagney <cagney@redhat.com>
1377
1378 * symtab.c: Replace "struct sec" with "struct bfd_section".
1379 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1380
24d693a6 13812003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1382
1383 * config/djgpp/fnchange.lst: Add lines for:
1384 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1385 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1386 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1387
21ad8dc3
MK
13882003-10-19 Mark Kettenis <kettenis@gnu.org>
1389
1390 * amd64fbsd-nat.c (fetch_inferior_registers,
1391 store_inferior_registers): Remove functions.
1392 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1393
cced5e27
MK
13942003-10-18 Mark Kettenis <kettenis@gnu.org>
1395
1396 Add NetBSD/amd64 native configuration:
1397 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1398 * amd64nbsd-tdep.c: New file.
1399 * amd64nbsd-nat.c: New file.
1400 * amd64bsd-nat.c: New file.
1401 * config/i386/nbsd64.mh: New file.
1402 * config/i386/nbsd64.mt: New file.
1403 * configure.host: Add x86_64-*-netbsd*.
1404 * configure.tgt: Add x86_64-*-netbsd*.
1405 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1406 New targets.
1407 * NEWS (New native configurations): Mention NetBSD/amd64.
1408
666de3fd
MC
14092003-10-17 Michael Chastain <mec@shout.net>
1410
1411 * config/djgpp/fnchange.lst: Remove dead lines for:
1412 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1413 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1414 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1415 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1416 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1417 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1418 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1419 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1420 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1421 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1422 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1423 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1424 gdb/config/sparc/tm-sparclite.h,
1425 gdb/gdbtk/generic/ChangeLog-2001,
1426 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1427 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1428 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1429 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1430 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1431 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1432 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1433 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1434 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1435 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1436 itcl/iwidgets3.0.0/demos/fileselectionbox,
1437 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1438 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1439 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1440 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1441 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1442 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1443 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1444 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1445 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1446 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1447 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1448 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1449 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1450 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1451 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1452 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1453 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1454 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1455 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1456 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1457 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1458 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1459 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1460 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1461 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1462 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1463 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1464 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1465 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1466 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1467 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1468 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1469 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1470 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1471 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1472 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1473 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1474 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1475 itcl/iwidgets3.0.0/demos/scrolledframe,
1476 itcl/iwidgets3.0.0/demos/scrolledhtml,
1477 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1478 itcl/iwidgets3.0.0/demos/scrolledtext,
1479 itcl/iwidgets3.0.0/demos/selectionbox,
1480 itcl/iwidgets3.0.0/demos/selectiondialog,
1481 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1482 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1483 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1484 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1485 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1486 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1487 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1488 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1489 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1490 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1491 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1492 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1493 itcl/iwidgets3.0.0/doc/selectionbox.n,
1494 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1495 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1496 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1497 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1498 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1499 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1500 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1501 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1502 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1503 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1504 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1505 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1506 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1507 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1508 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1509 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1510 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1511 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1512 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1513 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1514 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1515 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1516 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1517 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1518 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1519 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1520 itcl/iwidgets3.0.0/tests/selectionbox.test,
1521 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1522 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1523 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1524 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1525 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1526 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1527 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1528 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1529 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1530 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1531 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1532 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1533 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1534 tk/mac/tkMacProjects.sit.hqx.
1535
1e3ff5ad
AC
15362003-10-17 Andrew Cagney <cagney@redhat.com>
1537
8db32d44
AC
1538 * target.c (target_section_by_addr): New function.
1539 (do_xfer_memory): Use "target_section_by_addr".
1540 * target.h (target_section_by_addr): Declare.
1541
1e3ff5ad
AC
1542 * target.h (struct target_ops): Add "to_read_partial" and
1543 "to_write_partial", delete "to_query".
1544 (target_read_partial, target_write_partial): Declare.
1545 (target_read, target_write): Declare.
1546 (target_query): Delete macro.
1547 * target.c (target_read_partial): New function.
1548 (target_write_partial, target_read, target_write): New function.
1549 (update_current_target): Delete inheritance of "to_query". Add
1550 comments about "to_read_partial" and "to_write_partial".
1551 (debug_to_partial_read, debug_to_partial_write): New functions.
1552 (debug_to_query): Delete function.
1553 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1554 instead of "to_query".
1555 * remote.c (remote_read_partial): Replace "remote_query".
1556 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1557 (init_remote_async_ops): Ditto.
1558 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1559 "target_read_partial" instead of "target_query".
1560 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1561 Use "target_read_partial" instead of "target_query".
1562
48c66725
JJ
15632003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1564
1565 * frame.h (struct frame_id): Add new field: special_addr.
1566 (frame_id_build_special): New prototype.
1567 * frame.c (frame_id_build_special): New function.
1568 (frame_id_build): Change to call frame_id_build_special().
1569 (frame_id_eq): Change to also test special_addr field.
1570 (frame_id_inner): Update comment.
1571
7998dfc3
AC
15722003-10-17 Andrew Cagney <cagney@redhat.com>
1573
1574 * target.c (update_current_target): Perform the target cleanup.
1575 Put the target stack beneath the squashed "current_target".
1576 (add_target): Delete disabled call to "cleanup_target".
1577 (cleanup_target): Delete function.
1578 (push_target, unpush_target): Do not call "cleanup_target".
1579
9c04404e 15802003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1581
1582 * target.c (target_stack): Change to a static target_ops.
1583 (update_current_target): Walk the "struct target_ops" stack.
1584 (pop_target, do_xfer_memory, target_info): Ditto.
1585 (find_target_beneath): Ditto.
1586 (push_target): Rewrite to use the "struct target_ops" stack.
1587 (unpush_target): Ditto.
1588 * target.h (struct target_stack_item): Delete definition.
1589 (target_stack): Delete declaration.
1590 (struct target_ops): Add field "beneath".
1591
c98a2b49 15922003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1593
1594 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1595 declaration.
1596 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1597 (h8300_examine_prologue): Use h8300_normal_mode flag
1598 (h8300_gdbarch_init): Set architecture info for normal mode
1599
506fb367
DJ
16002003-10-16 Daniel Jacobowitz <drow@mvista.com>
1601
1602 * remote.c (remote_protocol_vcont): New variable.
1603 (set_remote_protocol_vcont_packet_cmd): New function.
1604 (show_remote_protocol_vcont_packet_cmd): New function.
1605 (init_all_packet_configs): Handle remote_protocol_vcont.
1606 (remote_vcont_probe): New function.
1607 (remote_vcont_resume): New function.
1608 (remote_resume): Use it.
1609 (remote_async_resume): Call remote_resume.
1610 (_initialize_remote): Add verbose-resume packet commands.
1611
65815ea1
AC
16122003-10-16 Andrew Cagney <cagney@redhat.com>
1613
1614 * infrun.c (handle_inferior_event): Add comment about
1615 "frame_id_inner" being too weak.
1616
40324f1b
EZ
16172003-10-16 Elena Zannoni <ezannoni@redhat.com>
1618
1619 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1620 second parameter, which is always null. Remove
1621 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1622 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1623 accordingly.
1624 * somsolib.c (som_solib_create_inferior_hook,
1625 som_solib_desire_dynamic_linker_symbols): Update callers.
1626 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1627
16282003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1629
1630 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1631 debug interface, SDI (Scalable Debug Interface).
1632 * NEWS: Mention m32r SDI protocol was supported.
1633 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1634 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1635
51931cbb
JJ
16362003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1637
1638 * ia64-linux-tdep.c: Include gdbcore.h.
1639 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1640 (ia64_linux_sigcontext_register_addr): Find the address of the
1641 sigcontext area stored in the sigframe instead of using
1642 a magic offset constant.
1643
84e7fd53
AC
16442003-10-15 Andrew Cagney <cagney@redhat.com>
1645
1646 * remote.c (remote_search): Delete function.
1647 * target.h (target_search): Delete disabled macro.
1648 (struct target_ops): Delete disabled field "to_search".
1649
0f4d7c52
KB
16502003-10-14 Kevin Buettner <kevinb@redhat.com>
1651
1652 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1653 instead of deprecated_inside_entry_file().
1654
2e952408
CV
16552003-10-14 Corinna Vinschen <vinschen@redhat.com>
1656
1657 * sh-tdep.c: Fix copy/paste hangover in comment.
1658 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1659 mode.
1660 (sh3e_sh4_extract_return_value): Ditto.
1661
7e86466e
RH
16622003-10-13 Richard Henderson <rth@redhat.com>
1663
1664 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1665 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1666 match c_val_print a bit closer.
1667
46a16dba
KB
16682003-10-13 Kevin Buettner <kevinb@redhat.com>
1669
1670 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1671 (frv_gdbarch_adjust_breakpoint_address): New function.
1672 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1673 method.
1674
76897487
KB
16752003-10-13 Kevin Buettner <kevinb@redhat.com>
1676
1677 * breakpoint.h (struct breakpoint): Add new member
1678 ``requested_address''.
1679 * breakpoint.c (breakpoint_adjustment_warning)
1680 (adjust_breakpoint_address): New static functions.
1681 (print_it_typical): Issue warning if breakpoint's address is different
1682 from its requested address.
1683 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1684 (breakpoint_re_set_one): Set breakpoint's
1685 ``requested_address'' field. Set ``address'' field to the
1686 result of calling adjust_breakpoint_address() on the requested
1687 address.
1688
a1131521
KB
16892003-10-13 Kevin Buettner <kevinb@redhat.com>
1690
1691 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1692 * gdbarch.h, gdbarch.c: Regenerate.
1693
6ce6d90f
MK
16942003-10-11 Mark Kettenis <kettenis@gnu.org>
1695
155c1d33
MK
1696 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1697 TDEP->sc_num_regs.
1698
8a96bc77
MK
1699 * i386fbsd-tdep.c: New file.
1700 (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): Move here from
1703 i386bsd-tdep.c.
1704 (_initialize_i386fbsd_tdep): New function.
1705 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1706 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1707 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1708 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1709 TDEP->sc_num_regs.
1710 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1711 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1712 to initialize TDEP->sc_num_regs.
1713 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1714 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1715 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1716 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1717 FreeBSD ELF OS/ABI's here.
1718 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1719 (i386fbsd-tdep.o): New target.
1720 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1721 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1722
477f40d1
MK
1723 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1724 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1725 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1726 in initialization of TDEP->sc_num_regs.
1727
c6b33596
MK
1728 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1729 (x86_64_init_abi): Initialize regset_from_core_section if
1730 appropriate.
1731
8446b36a
MK
1732 * i386-tdep.c (i386_regset_from_core_section): New function.
1733 (i386_gdbarch_init): Initialize regset_from_core_section if
1734 appropriate.
1735 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1736
c783cbd6
MK
1737 * i386-tdep.h (struct regset): Declare opaque.
1738
6ce6d90f
MK
1739 * gdbarch.sh (regset_from_core_section): New method.
1740 (struct regset): Declare opaque.
1741 * gdbarch.c, gdbarch.h: Regenerated.
1742
b98ed7be
AM
17432003-10-11 Alan Modra <amodra@bigpond.net.au>
1744
1745 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1746 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1747 Correct test for pc within section.
1748
f6214256
MK
17492003-10-11 Mark Kettenis <kettenis@gnu.org>
1750
1751 * gdbarch.sh: Remove trailing whitepsace from comments.
1752
a8f4cde1
RM
17532003-10-08 Roland McGrath <roland@redhat.com>
1754
1755 * gcore.c (make_mem_sec): Function removed, folded into ...
1756 (gcore_create_callback): ... here. To omit a section, clear its
1757 SEC_LOAD bit rather than zeroing its size.
1758 Omit read-only sections only if they correspond to a known disk file.
1759 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1760
74276724
MS
17612003-10-10 Michael Snyder <msnyder@redhat.com>
1762
1763 * d10v-tdep.c: Fix typo in comment.
1764
e754ae69
AC
17652003-10-10 Andrew Cagney <cagney@redhat.com>
1766
1767 * rs6000-tdep.c (e500_store_return_value): Delete function.
1768 (e500_extract_return_value): Delete function.
1769 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1770 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1771 "ppc_sysv_abi_restore_return_value" where applicable.
1772 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1773 (ppc_sysv_abi_extract_return_value): Declare.
1774 (ppc_sysv_abi_broken_store_return_value): Declare.
1775 (ppc_sysv_abi_broken_extract_return_value): Declare.
1776 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1777 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1778 start of file.
1779 (do_ppc_sysv_return_value): New function.
1780 (ppc_sysv_abi_extract_return_value): New function.
1781 (ppc_sysv_abi_store_return_value): New function.
1782 (ppc_sysv_abi_broken_extract_return_value): New function.
1783 (ppc_sysv_abi_broken_store_return_value): New function.
1784 (ppc_sysv_abi_use_struct_convention): Call
1785 do_ppc_sysv_return_value.
1786
8d4ce20a
JB
17872003-10-10 J. Brobecker <brobecker@gnat.com>
1788
1789 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1790 to lookup the main function symbol.
1791
afce3d2a
CV
17922003-10-10 Corinna Vinschen <vinschen@redhat.com>
1793
1794 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1795 types correctly.
1796 (sh_push_dummy_call_fpu): Fix argument passing rules.
1797 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1798 float types.
1799 (sh3e_sh4_store_return_value): Ditto.
1800
7fe958be
EZ
18012003-10-10 Elena Zannoni <ezannoni@redhat.com>
1802
1803 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1804 comment.
1805
3f997a97
CV
18062003-10-10 Corinna Vinschen <vinschen@redhat.com>
1807
1808 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1809 more readable code. Accomodate passing of bitfields.
1810
8be9034a
AC
18112003-10-10 Andrew Cagney <cagney@redhat.com>
1812
1813 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1814 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1815 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1816 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1817 (ppc64_sysv_abi_push_dummy_call): New function.
1818 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1819 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1820 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1821
85a453d5
KI
18222003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1823
1824 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1825 * README: Ditto.
1826 * d10v-tdep.c: Ditto.
1827 * h8300-tdep.c: Ditto.
1828 * remote-e7000.c: Ditto.
1829 * remote-hms.c: Ditto.
1830 * ser-e7kpc.c: Ditto.
1831 * sh-stub.c: Ditto.
1832 * sh-tdep.c: Ditto.
1833 * sh-tdep.h: Ditto.
1834 * sh3-rom.c: Ditto.
1835 * sh64-tdep.c: Ditto.
1836 * top.c: Ditto.
1837 * wince.c: Ditto.
1838 * config/d10v/d10v.mt: Ditto.
1839 * config/sh/embed.mt: Ditto.
1840 * config/sh/linux.mt: Ditto.
1841 * config/sh/tm-linux.h: Ditto.
1842 * config/sh/tm-sh.h: Ditto.
1843 * config/sh/wince.mt: Ditto.
1844
221c12ff
AC
18452003-10-09 Andrew Cagney <cagney@redhat.com>
1846
1847 * ppc-tdep.h (struct type): Declare opaque.
1848 * x86-64-tdep.h (struct regcache): Declare opaque.
1849 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1850 coding style.
1851
ef5200c1
AC
18522003-10-09 Andrew Cagney <cagney@redhat.com>
1853
1854 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1855 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1856 (SOFTWARE_SINGLE_STEP_P): Ditto.
1857 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1858 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1859 (SOFTWARE_SINGLE_STEP_P): Ditto.
1860 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1861 software_single_step to rs6000_software_single_step.
a8f4cde1 1862
9644bbdd
AC
18632003-10-09 Andrew Cagney <cagney@redhat.com>
1864
1865 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1866
db72fa6b
MS
18672003-10-09 Michael Snyder <msnyder@redhat.com>
1868
f3efb16c
MS
1869 * frame.h: Fix typo in comment.
1870 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1871 * d10v-tdep.c: Random whitespace/comment tweaks.
1872
9a5cef92
EZ
18732003-10-09 Elena Zannoni <ezannoni@redhat.com>
1874
1875 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1876 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1877 on stack.
a8f4cde1 1878
9a5cef92
EZ
1879 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1880 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1881 in detail.
a8f4cde1 1882
0f317a0c
DJ
18832003-10-09 Daniel Jacobowitz <drow@mvista.com>
1884
1885 * remote-mips.c (mips_initialize): Remove unneeded call to
1886 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1887
bbab2f46
DJ
18882003-10-09 Daniel Jacobowitz <drow@mvista.com>
1889
1890 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1891 a memory pointer.
1892
550950b8
JJ
18932003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1894
1895 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1896 for any lwp we resume.
1897 (running_callback): Add lwps that have pending status events
1898 against them to be considered running.
1899
15c69bc7
KI
19002003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1901
1902 * m32r-tdep.c : Include "dis-asm.h".
1903 * Makefile.in (m32r-tdep.o): Update dependencies.
1904
51065942
JB
19052003-10-06 J. Brobecker <brobecker@gnat.com>
1906
1907 * completer.h (get_gdb_completer_word_break_characters): Delete.
1908 * completer.c: include language.h.
1909 (gdb_completer_word_break_characters): Delete.
1910 (get_gdb_completer_word_break_characters): Delete.
1911 (location_completer): Use the word break characters of the current
1912 language.
1913 (complete_line): Likewise.
1914 (line_completion_function): Likewise.
1915 (skip_quoted_chars): Likewise.
1916 * Makefile.in (completer.o): Add dependency on language.h.
1917 * top.c (init_main): Set the readline word break characters
1918 to GDB's default word break characters.
1919
6084f43a
JB
19202003-10-06 J. Brobecker <brobecker@gnat.com>
1921
1922 * language.h (language_defn): new field, la_word_break_characters.
1923 * language.c (unknown_language_defn): Set new field to
1924 default_word_break_characters.
1925 (auto_language_defn): Likewise.
1926 (local_language_defn): Likewise.
1927 * ada-lang.c (ada_language_defn): Likewise.
1928 * c-lang.c (c_language_defn): Likewise.
1929 (cplus_language_defn): Likewise.
1930 (asm_language_defn): Likewise.
1931 (minimal_language_defn): Likewise.
1932 * f-lang.c (f_language_defn): Likewise.
1933 * jv-lang.c (java_language_defn): Likewise.
1934 * m2-lang.c (m2_language_defn): Likewise.
1935 * objc-lang.c (objc_language_defn): Likewise.
1936 * p-lang.c (pascal_language_defn): Likewise.
1937 * scm-lang.c (scm_language_defn): Likewise.
1938
944fcfab
AC
19392003-10-06 Andrew Cagney <cagney@redhat.com>
1940
1941 * ppc-sysv-tdep.c: Re-indent.
1942
9f0a5303
JB
19432003-10-06 J. Brobecker <brobecker@gnat.com>
1944
1945 * language.h (default_word_break_characters): Add prototype.
1946 * language.c (default_word_break_characters): New function.
1947
7270b6ed
AS
19482003-10-06 Andreas Schwab <schwab@suse.de>
1949
1950 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1951 with %eax.
1952
a5d61f66
AC
19532003-10-06 Andrew Cagney <cagney@redhat.com>
1954
1955 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1956 "h8500-tdep.c".
1957 (z8k-tdep.o): Delete custom build rule.
1958
28a86f5c
AC
19592003-10-06 Andrew Cagney <cagney@redhat.com>
1960
1bfd8a83
AC
1961 * Makefile.in: Update all dependencies.
1962
17144ef8
AC
1963 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1964 No longer list PA as as obsolete candidate. List m32r as
1965 broken instead of obsolete.
a8f4cde1 1966
a5679ae5
AC
1967 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1968 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1969 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1970 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1971 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1972 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1973 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1974 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1975 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1976 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1977 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1978 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1979 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1980 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1981 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1982 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1983 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1984 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1985 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1986 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1987 * config/z8k/z8k.mt: Ditto.
1988
4a8269c0
AC
1989 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1990 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1991 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1992 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1993 sparclite were removed.
1994 * configure.host, configure.tgt: Remove corresponding tuples.
1995
41989fcd
AC
1996 * breakpoint.c, breakpoint.h: Remove obsolete code.
1997 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1998 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1999 * stabsread.h, xcoffread.c: Ditto.
2000
28a86f5c
AC
2001 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2002 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2003 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2004 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2005
4efdaa0d
DL
20062003-10-06 David Lecomber <dsl@sources.redhat.com>
2007
2008 * f-valprint.c: Reformatting
2009
ae53de43
MK
20102003-10-06 Mark Kettenis <kettenis@gnu.org>
2011
a8bb57e7
MK
2012 * x86-64-tdep.c: Remove duplicate comment.
2013
ae53de43
MK
2014 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2015 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2016 names for return values. This fixes a bug since we looked at %rbx
2017 instead of %rdx.
2018
473f17b0
MK
20192003-10-05 Mark Kettenis <kettenis@gnu.org>
2020
2c261fae
MK
2021 * x86-64-tdep.c: Include "regset.h".
2022
473f17b0
MK
2023 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2024 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2025 sizeof_fpregset.
2026 * i386-tdep.c: Include "regset.h".
2027 (i386_supply_gregset): New function.
2028 (i386_supply_fpregset): New function.
2029 (i386_gdbarch_init): Initialze register set-related members of
2030 TDEP.
2031 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2032 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2033
afd48b75
AC
20342003-10-03 Andrew Cagney <cagney@redhat.com>
2035
2036 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2037 set extract_return_value, store_return_value and
2038 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2039 ppc64_sysv_abi_store_return_value and
2040 ppc64_sysv_abi_use_struct_convention.
2041 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2042 (ppc64_sysv_abi_store_return_value): Declare.
2043 (ppc64_sysv_abi_use_struct_convention): Declare.
2044 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2045 (ppc64_sysv_abi_extract_return_value): New function.
2046 (ppc64_sysv_abi_store_return_value): New function.
2047 (ppc64_sysv_abi_use_struct_convention): New function.
2048 (ppc64_sysv_abi_return_value): New function.
2049
9b540880
AC
20502003-10-03 Andrew Cagney <cagney@redhat.com>
2051
2052 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2053 convert a descriptor to a function when it's in the ".opd"
2054 section.
2055
8748518b
CV
20562003-10-03 Corinna Vinschen <vinschen@redhat.com>
2057
2058 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2059 reg_size to keep GCC silent.
2060
0fd85043
CV
20612003-10-03 Corinna Vinschen <vinschen@redhat.com>
2062
2063 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2064 base for DW_EH_PE_textrel encodings.
2065 (read_encoded_value): Add a DW_EH_PE_textrel case.
2066 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2067 section.
2068
37b517aa
MK
20692003-10-03 Mark Kettenis <kettenis@gnu.org>
2070
2071 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2072
12c266ea
AC
20732003-10-02 Andrew Cagney <cagney@redhat.com>
2074
2075 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2076 REGISTER_RAW_SIZE.
2077 * gdbarch.h, gdbarch.c: Re-generate.
2078 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2079 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2080 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2081 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2082 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2083 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2084 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2085 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2086 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2087 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2088 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2089 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2090 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2091 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2092 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2093 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2094
78ba4af6
JB
20952003-10-02 Jim Blandy <jimb@redhat.com>
2096
2097 * dwarf2read.c (struct die_info): Doc fix.
2098
617daa0e
CV
20992003-10-02 Corinna Vinschen <vinschen@redhat.com>
2100
2101 * sh-tdep.c: Running thru gdb_indent.sh.
2102
e5e33cd9
CV
21032003-10-02 Corinna Vinschen <vinschen@redhat.com>
2104
2105 * sh-tdep.c (sh_justify_value_in_reg): New function.
2106 (sh_stack_allocsize): Ditto.
2107 (flt_argreg_array): New array used for floating point argument
2108 passing.
2109 (sh_init_flt_argreg): New function.
a8f4cde1 2110 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2111 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2112 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2113 Fix argument passing strategy.
2114 (sh_push_dummy_call_nofpu): Ditto.
2115
5fe830e4
AC
21162003-10-01 Andrew Cagney <cagney@redhat.com>
2117
2118 * value.h (register_value_being_returned): Declare. Replace
2119 "value_being_returned".
2120 * infcall.c (call_function_by_hand): Use
2121 register_value_being_returned.
2122 * infcmd.c (print_return_value): Call
2123 "register_value_being_returned", handle struct return locally.
2124 * values.c (register_value_being_returned): New function. Replace
2125 "value_being_returned".
a8f4cde1 2126
5fe830e4 21272003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2128
2129 * linux-proc.c (linux_do_registers): New function.
2130 (linux_make_note_section): Use linux_do_registers in case of
2131 single threaded inferior programs.
2132
64f395bf
AC
21332003-10-01 Andrew Cagney <cagney@redhat.com>
2134
2135 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2136 use STRUCT_ADDR. When not using "struct return convention", pass
2137 "0" to "value_being_returned". Add FIXMEs.
2138 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2139 value_being_returned. Add comments.
2140 * values.c (value_being_returned): Add fixme.
2141 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2142 (hppa_value_returned_from_stack): Add FIXME.
2143
639d11d3
DC
21442003-09-30 David Carlton <carlton@kealia.com>
2145
2146 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2147 'has_children' and 'next' by 'child' and 'sibling'.
2148 (read_comp_unit): Rework algorithm, breaking body into
2149 read_die_and_children and read_die_and_siblings.
2150 (read_die_and_children, read_die_and_siblings): New.
2151 (read_full_die): Add 'has_children' argument; set it instead of
2152 the die's 'has_children' field. Minor formatting cleanup.
2153 (free_die_list): Use die->child and die->sibling instead of
2154 die->next.
2155 (dump_die_list): Ditto.
2156 (sibling_die): Use die->sibling.
2157 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2158 'has_children' and 'next' fields.
a8f4cde1
RM
2159 (process_die, read_file_scope, read_func_scope)
2160 (read_lexical_block_scope, read_structure_scope)
2161 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2162 (read_namespace, read_subroutine_type, dump_die): Ditto.
2163
5bffac25
AC
21642003-09-30 Andrew Cagney <cagney@redhat.com>
2165
2166 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2167 to 224, not 220.
2168
f30992d4
AC
21692003-09-30 Andrew Cagney <cagney@redhat.com>
2170
2171 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2172 REGISTER_VIRTUAL_SIZE.
2173 * gdbarch.h, gdbarch.c: Regenerate.
2174 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2175 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2176 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2177
2e092625
AC
21782003-09-29 Andrew Cagney <cagney@redhat.com>
2179
2180 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2181 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2182 * gdbarch.h, gdbarch.c: Regenerate.
2183 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2184 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2185
2186 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2187 * remote-vxmips.c (vx_read_register): Ditto.
2188 * remote-vx68.c (vx_read_register): Ditto.
2189 * gnu-nat.c (inf_validate_procs): Ditto.
2190
7a5dd6ee
JB
21912003-09-29 J. Brobecker <brobecker@gnat.com>
2192
2193 * infcall.c (call_function_by_hand): Fix build failure
2194 introduced in the previous change to this file.
2195
1fe43d45
AC
21962003-09-29 Andrew Cagney <cagney@redhat.com>
2197
2198 * NEWS: Mention Objective-C.
2199
e28a332c
JG
22002003-09-29 Jerome Guitton <guitton@act-europe.fr>
2201
2202 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2203 test if the register has been saved on the stack.
2204 (arm_scan_prologue_cache): When analysing the instruction
2205 "str lr, [sp, #-4]", save the address where lr has been stored.
2206
9ff63c35
AC
22072003-09-28 Andrew Cagney <cagney@redhat.com>
2208
7f5f525d
AC
2209 * frame.c (frame_read_unsigned_register): Delete function.
2210 * frame.h (frame_read_unsigned_register): Delete declaration.
2211 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2212 get_frame_register_unsigned.
2213 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2214 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2215 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2216
7f5f525d
AC
2217 * frame.h (frame_read_register): Delete declaration.
2218 * frame.c (frame_read_register): Delete function.
2219 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2220 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2221 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2222 * mips-tdep.c (mips_register_to_value): Ditto.
2223 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2224 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2225
2226 * frame.c (frame_read_signed_register): Delete function.
2227 (frame_read_unsigned_register): Update comments.
2228 * frame.h (frame_read_signed_register): Delete declaration.
2229 * h8300-tdep.c (h8300_print_register): Use
2230 get_frame_register_signed.
2231 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2232
9ff63c35
AC
2233 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2234 Rename VALUE_RETURNED_FROM_STACK.
2235 * infcmd.c (print_return_value): Update.
2236 * infcall.c (call_function_by_hand): Update.
2237
41d041d6
MK
22382003-09-28 Mark Kettenis <kettenis@gnu.org>
2239
2240 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2241 regcache argument and reverse the order of the other two
2242 arguments. Remove local regcache variable. Determine
2243 architecture from REGCACHE. Update comments.
2244 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2245 reverse the order of the other two arguments. Remove local
2246 regcache variable. Determine architecture from REGCACHE. Update
2247 comments.
2248 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2249 prototypes. Update comments.
2250 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2251 comment.
2252 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2253 Update.
2254 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2255 * i386-interix-nat.c (supply_fpregset): Update.
2256 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2257 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2258 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2259 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2260 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2261 Update.
2262 * i386obsd-tdep.c (fetch_core_registers): Update.
2263 * i386v4-nat.c (supply_fpregset): Update.
2264 * x86-64-linux-nat.c (supply_fpregset): Update.
2265 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2266
1cb97e17
MK
22672003-09-27 Mark Kettenis <kettenis@gnu.org>
2268
5716833c
MK
2269 * i386-tdep.h: Put opaque declarations in alphabetical
2270 order. Remove spurious whitespace.
2271 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2272 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2273 * i386-tdep.c (MM0_REGNUM): Remove define.
2274 (i386_mmx_regnum_p): Add gdbarch argument.
2275 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2276 Rewrite using new macro definitions for FPU/SSE registers.
2277 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2278 definitions from i387-tdep.h.
2279 (i386_register_name): Update.
2280 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2281 new macro definitions for FPU/SSE registers.
2282 (i386_extract_return_value): Determine whether floating-point
2283 registers are present by examining REGCACHE's architecture.
2284 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2285 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2286 FPU/SSE registers.
2287 (i386_register_type): Update.
2288 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2289 definitions for FPU registers. Use REGCACHE's architecture to
2290 determine the appropriate register numbers.
2291 (i386_pseudo_register_read, i386_pseudo_register_write,
2292 i386_register_reggroup_p): Update.
2293 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2294 TDEP->mm0_regnum.
2295 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2296 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2297 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2298 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2299 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2300 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2301 *' to `void *'.
2302 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2303 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2304 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2305 definitions for FPU/SSE registers.
2306 (FXSAVE_MXCSR_ADDR): New define.
2307 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2308 TDEP->mm0_regnum.
2309 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2310 (I387_ST0_REGNUM): Define.
2311
41d35cb0
MK
2312 * regcache.h (get_regcache_arch): New prototype.
2313 * regcache.c (get_regcache_arch): New function.
2314
54e74f72
MK
2315 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2316 whitespace.
2317
1cb97e17
MK
2318 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2319 Initialize using ARRAY_SIZE.
2320
0968aa8c
AC
23212003-09-27 Andrew Cagney <cagney@redhat.com>
2322
2323 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2324 "init_frame_pc_default".
2325 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2327 * vax-tdep.c (vax_gdbarch_init): Update.
2328 * v850-tdep.c (v850_gdbarch_init): Update.
2329 * sh64-tdep.c (sh64_gdbarch_init): Update.
2330 * s390-tdep.c (s390_gdbarch_init): Update.
2331 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2332 * mcore-tdep.c (mcore_gdbarch_init): Update.
2333 * h8300-tdep.c (h8300_gdbarch_init): Update.
2334 * cris-tdep.c (cris_gdbarch_init): Update.
2335 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2336
54c84734
MK
23372003-09-26 Mark Kettenis <kettenis@gnu.org>
2338
2339 * regset.h: New file.
2340 * Makefile.in (regset_h): Add.
2341
1b1d3794
AC
23422003-09-25 Andrew Cagney <cagney@redhat.com>
2343
2344 * frame.h (deprecated_frame_saved_regs): Rename
2345 get_frame_saved_regs.
2346 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2347 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2348 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2349 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2350 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2351
e6beb428
AC
23522003-09-25 Andrew Cagney <cagney@redhat.com>
2353
2354 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2355 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2356 and Java.
2357 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2358 arm*-*-* do not use the new frame code.
2359
710122da
DC
23602003-09-25 David Carlton <carlton@kealia.com>
2361
2362 * c-exp.y: Remove 'register' declarations.
2363 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2364
79c2c32d
DC
23652003-09-25 David Carlton <carlton@kealia.com>
2366
2367 * c-exp.y: Include cp-support.h. Add qualified_type.
2368 (yylex): Delete nested type hack; add comments.
2369 * cp-namespace.c (cp_lookup_nested_type): New function.
2370 * cp-support.h: Declare cp_lookup_nested_type.
2371 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2372 instead of value_struct_elt_for_reference.
2373 * valops.c: Include cp-support.h.
2374 (value_aggregate_elt): New function.
2375 (value_namespace_elt): Ditto.
2376 (value_struct_elt_for_reference): Make static.
2377 * value.h: Delete declaration of value_struct_elt_for_reference;
2378 add declaration for value_aggregate_elt.
2379 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2380 (valops.o): Ditto.
2381
898c62f5
DJ
23822003-09-25 Daniel Jacobowitz <drow@mvista.com>
2383
2384 * stack.c: Include "reggroups.h".
2385 (frame_info): Only display registers in all_reggroup.
2386 * Makefile.in (stack.o): Update dependencies.
2387
28cd8767
JG
23882003-09-25 Jerome Guitton <guitton@act-europe.fr>
2389
2390 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2391 "add ip, sp #n" in the prologue.
2392 (arm_scan_prologue): Ditto.
2393
a4ab2b5d
JG
23942003-09-25 Jerome Guitton <guitton@act-europe.fr>
2395
2396 * MAINTAINERS (write after approval): Add myself.
2397
3f244638
AS
23982003-09-25 Andreas Schwab <schwab@suse.de>
2399
2400 * m68k-tdep.c: Include "dwarf2-frame.h".
2401 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2402 * Makefile.in (m68k-tdep.o): Update dependencies.
2403
1c0159e0
CV
24042003-09-25 Corinna Vinschen <vinschen@redhat.com>
2405
2406 * sh-tdep.c (struct frame_extra_info): Remove.
2407 (struct sh_frame_cache): New structure.
2408 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2409 (GET_TARGET_REG): Ditto but target register.
2410 (GET_PUSHED_REG): Remove.
2411 (IS_MOV_ARG_TO_REG): New macro.
2412 (IS_MOV_ARG_TO_IND_R14): New macro.
2413 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2414 (IS_MOVW_PCREL_TO_REG): New macro.
2415 (IS_MOVL_PCREL_TO_REG): New macro.
2416 (IS_SUB_REG_FROM_SP): New macro.
2417 (IS_ARG_MOV): Remove.
2418 (IS_MOV_TO_R14): Remove.
2419 (IS_RESTORE_FP): New macro.
2420 (IS_RTS): New macro.
2421 (IS_LDS): New macro.
2422 (IS_MOV_FP_SP): New macro.
2423 (IS_ADD_REG_TO_FP): New macro.
2424 (IS_ADD_IMM_FP): New macro.
2425 (sh_skip_prologue_hard_way): Remove.
2426 (sh_saved_pc_after_call): Remove.
2427 (sh_frame_chain): Remove.
2428 (sh_find_callers_reg): Remove.
a8f4cde1 2429 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2430 (sh_fp_frame_init_saved_regs): Remove.
2431 (sh_init_extra_frame_info): Remove.
2432 (sh_analyze_prologue): New function.
2433 (sh_skip_prologue): Remove deprecated code. Rely on new function
2434 sh_analyze_prologue when after_prologue fails.
2435 (sh_frame_saved_pc): Remove.
2436 (sh_alloc_frame_cache): New function.
2437 (sh_frame_cache): Ditto.
2438 (sh_frame_prev_register): Ditto.
2439 (sh_frame_this_id): Ditto.
2440 (sh_frame_unwind): New structure defining the heuristic frame
2441 sniffer interface.
2442 (sh_frame_sniffer): New function.
2443 (sh_unwind_sp): Ditto.
2444 (sh_unwind_pc): Ditto.
2445 (sh_unwind_dummy_id): Ditto.
2446 (sh_frame_base_address): Ditto.
2447 (sh_frame_base): New structure defining new frame base code.
2448 (sh_in_function_epilogue_p): New function.
2449 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2450 code and to call all new code instead. Initialize dwarf2 and
2451 heuristic frame sniffer.
2452
5f9769d1
PH
24532003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2454
a8f4cde1
RM
2455 * parser-defs.h (struct exp_descriptor): New definition, containing
2456 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2457 evaluating expressions.
2458 (exp_descriptor_standard): Declare new variable.
2459 (print_subexp): Make global and declare here (from expprint.c).
2460 (dump_subexp): Ditto.
2461 (dump_subexp_body_standard): Declare.
2462 (operator_length_standard): Declare.
2463 (op_name_standard): Declare.
2464 (print_subexp): Declare.
2465 (print_subexp_standard): Declare.
2466
2467 * language.h (struct language_defn): Add la_exp_desc field to hold
2468 pointer to table for language-specific operators.
2469 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2470
2471 * parse.c (operator_length): Move most code to new
5f9769d1 2472 operator_length_standard function. Use language-specific information.
a8f4cde1 2473 (operator_length_standard): New function taking most code from
5f9769d1
PH
2474 operator_length.
2475 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2476
2477 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2478 and OP_EXTENDED_LAST.
a8f4cde1
RM
2479
2480 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2481 Make global; remove static declaration.
2482 Move most code to print_subexp_standard.
a8f4cde1 2483 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2484 print_subexp.
2485 (op_name): Add expression to argument signature.
a8f4cde1 2486 Use langauge-specific op_name.
5f9769d1
PH
2487 Move most code to op_name_standard.
2488 (op_name_standard): New function, containing code formerly in op_name.
2489 (dump_subexp): Use new version of op_name function.
2490 Use language-specific dump_subexp_body, and move most existing code to
2491 dump_subexp_body_standard.
2492 (dump_raw_expression): Use new op_name interface.
2493 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2494 (dump_subexp_body_standard): New function, containing code formerly
2495 in dump_subexp_body.
a8f4cde1 2496
5f9769d1
PH
2497 * language.c (unknown_language): Add default la_exp_desc field and
2498 remove evaluate_exp field.
2499 (auto_language): Ditto.
2500 (local_language): Ditto.
2501 * f-lang.c (f_language_defn): Ditto.
2502 * c-lang.c (c_language_defn): Ditto.
2503 (cplus_language_defn): Ditto.
2504 (asm_language_defn): Ditto.
2505 (minimal_language_defn): Ditto.
2506 * p-lang.c (pascal_language_defn): Ditto.
2507 * m2-lang.c (m2_language_defn): Ditto.
2508 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2509
2510 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2511 Java-specific expression evaluator.
2512 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2513 field.
a8f4cde1 2514 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2515 Scheme-specific expression evaluator.
2516 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2517 field.
2518 * objc-lang.c (print_object_command): Take evaluate_exp from the
2519 la_exp_desc field.
a8f4cde1 2520
5f9769d1 2521 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2522
2523 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2524 la_exp_desc's type.
2525 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2526
24daaebc
PH
25272003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2528
2529 * parser-defs.h (operator_length): Declare.
a8f4cde1 2530
24daaebc
PH
2531 * parse.c (length_of_subexp): Use operator_length to get operator
2532 lengths and arities for operators.
2533 Move most code to new operator_length function.
a8f4cde1 2534 (operator_length): New function absorbing most code from
24daaebc
PH
2535 length_of_subexp.
2536 (prefixify_subexp): Remove large case and use operator_length instead.
2537 (parse_exp_1): Use renamings:
a8f4cde1 2538 dump_prefix_expression => dump_raw_expression and
24daaebc 2539 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2540
24daaebc
PH
2541 * expression.h (dump_prefix_expression): Rename to ...
2542 (dump_raw_expression): New name.
2543 (dump_postfix_expression): Rename to ...
2544 (dump_prefix_expression): New name.
a8f4cde1 2545
24daaebc
PH
2546 * expprint.c (dump_subexp): Make global. Add comment.
2547 Move most existing code to dump_subexp_body.
2548 (dump_subexp_body): New function.
2549 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2550 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2551 work before the expression is prefixified.
2552 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2553 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2554 that's what it does.
a8f4cde1 2555 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2556 prefixified expression.
2557 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2558
8c2957c4
JB
25592003-09-22 Jim Blandy <jimb@redhat.com>
2560
2561 * dwarf2read.c (read_array_type): When building the type for an
2562 array of unspecified length, make sure to choose the upper bound
2563 so that the array's total length comes out to be zero --- that's
2564 how we represent such arrays.
2565
592e3010
MC
25662003-09-22 Michael Chastain <mec@shout.net>
2567
2568 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2569
365c70b1
JJ
25702003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2571
2572 * top.c (quit_force): Fix indirect call to quit_target so
2573 a struct qt_args pointer is passed.
2574
5d6eb653
AC
25752003-09-22 Andrew Cagney <cagney@redhat.com>
2576
2577 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2578 * arch-utils.c (init_frame_pc_noop): Delete function.
2579 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2580 "init_frame_pc".
2581 * mips-tdep.c (mips_gdbarch_init): Ditto.
2582 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2583 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2584 declaration.
2585 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2586 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2587 declaration.
2588 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2589
b222a67f
AG
25902003-09-22 Anthony Green <green@redhat.com>
2591
2592 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2593 declaration.
2594
d5b5ac79
AC
25952003-09-20 Andrew Cagney <cagney@redhat.com>
2596
deafb061
AC
2597 * breakpoint.c: Eliminate ARGSUSED.
2598 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2599 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2600 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2601 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2602 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2603 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2604 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2605 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2606 * wince.c, remote-vx.c: Ditto.
2607
d5b5ac79
AC
2608 * cli/cli-script.c: Remove "register" attributes.
2609 * config/pa/tm-hppa.h: Ditto.
2610 * cli/cli-decode.c: Ditto.
2611 * cli/cli-cmds.c: Ditto.
2612
c6316faa
AC
26132003-09-19 Andrew Cagney <cagney@redhat.com>
2614
2615 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2616 DEPRECATED_NPC_REGNUM.
2617 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2618
f4f99b11
CF
26192003-09-19 Christopher Faylor <cgf@redhat.com>
2620
2621 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2622
1708f284
JB
26232003-09-19 Jim Blandy <jimb@redhat.com>
2624
2625 * macrotab.c (macro_include): Use the correct comparison to find
2626 the appropriate place for this inclusion in the list.
2627
b9fbf434
AC
26282003-09-19 Andrew Cagney <cagney@redhat.com>
2629
2630 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2631 (DEPRECATED_HPUX_TEXT_END): Define.
2632 (deprecated_hpux_text_end): Declare.
2633 (struct target_ops): Declare opaque.
2634 * hppah-nat.c (text_end): Make static.
2635 (deprecated_hpux_text_end): New function.
2636 * exec.c (text_end): Delete global variable.
2637 (NEED_TEXT_START_END): Do not define.
2638 (exec_file_attach): Replace code computing "text_end" code with
2639 call to DEPRECATED_HPUX_TEXT_END.
2640
5b03f266
AC
26412003-09-19 Andrew Cagney <cagney@redhat.com>
2642
2643 * utils.c (align_up, align_down): New functions.
2644 * defs.h (align_up, align_down): Declare.
2645 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2646 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2647 and "align_down".
2648 (round_up, round_down): Delete functions.
2649 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2650 "align_down".
2651 (ROUND_DOWN, ROUND_UP): Delete macros.
2652 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2653 * h8300-tdep.c: Replace "round_up" and "round_down" with
2654 "align_up" and "align_down".
2655 (round_up, round_down): Delete macros.
2656 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2657 "align_down".
2658 (ROUND_UP, ROUND_DOWN): Delete macros.
2659
51db5742
JB
26602003-09-18 J. Brobecker <brobecker@gnat.com>
2661
2662 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2663 hard-coded constant. Use the proper machine name instead.
2664
77949794
AC
26652003-09-17 Andrew Cagney <cagney@redhat.com>
2666
2667 * sparc-tdep.c (legacy_register_name): Delete function.
2668 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2669 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2670 * infcmd.c (gdb_register_name): Delete variable.
2671 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2672 REGISTER_NAME and "tm.h".
2673 * gdbarch.h, gdbarch.c: Regenerate.
2674 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2675 REGISTER_NAMES in comments.
2676 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2677 * m68klinux-nat.c (regmap): Ditto.
2678
b55c33cc
JB
26792003-09-17 Jim Blandy <jimb@redhat.com>
2680
2681 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2682
957e27ac
AC
26832003-09-17 Andrew Cagney <cagney@redhat.com>
2684
2685 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2686 (ppcnbsd_init_abi): Set "use_struct_convention" to
2687 "ppcnbsd_use_struct_convention".
2688
192cb3d4
MK
26892003-09-17 Mark Kettenis <kettenis@gnu.org>
2690
2691 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2692 * gdbarch.h, gdbarch.c: Regenerate.
2693 (stabs_argument_has_addr): New architecture method.
2694 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2695 * arch-utils.c: Include "buildsym.h".
2696 (default_stabs_argument_has_addr): New function.
2697 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2698 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2699
efe59759
AC
27002003-09-17 Andrew Cagney <cagney@redhat.com>
2701
2702 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2703 * gdbarch.h, gdbarch.c: Regenerate.
2704 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2705 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2706 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2707 * sparcnbsd-tdep.c: Update.
a8f4cde1 2708
62700349
AC
27092003-09-17 Andrew Cagney <cagney@redhat.com>
2710
2711 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2712 * gdbarch.h, gdbarch.c: Regenerate.
2713 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2714 * d10v-tdep.c, frame.c: Update.
2715 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2716 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2717 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2718 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2719 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2720 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2721 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2722 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2723 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2724 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2725 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2726 * config/pa/nm-hppah.h: Update.
2727
b9ff3018
AC
27282003-09-16 Andrew Cagney <cagney@redhat.com>
2729
2730 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2731 "use_struct_convention" to "ppc_linux_use_struct_convention".
2732 (ppc_linux_use_struct_convention): New function.
2733 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2734 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2735 "rs6000_use_struct_convention".
2736 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2737 declaration.
2738 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2739 Delete function.
2740
aa1ee363
AC
27412003-09-16 Andrew Cagney <cagney@redhat.com>
2742
2743 * buildsym.c: Remove more occurances of "register".
2744 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2745 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2746 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2747 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2748 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2749 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2750 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2751 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2752
f2ea0907
CV
27532003-09-16 Corinna Vinschen <vinschen@redhat.com>
2754
2755 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2756 numbers to enumeration values.
2757 * sh-tdep.c: Accomodate above change.
2758 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2759 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2760 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2761 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2762 (IS_FPUSH): Rename from IS_FMOV.
2763 (sh_extract_struct_value_address): Remove useless comment.
2764 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2765 instead of own local values.
2766 (sh_dump_tdep): Remove.
2767 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2768 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2769
1c704f11
AC
27702003-09-15 Andrew Cagney <cagney@redhat.com>
2771
2772 * doublest.c (convert_floatformat_to_doublest): No longer need to
2773 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2774
ac79b88b
DJ
27752003-09-15 Daniel Jacobowitz <drow@mvista.com>
2776
2777 * values.c (unpack_double): Call floatformat_is_valid.
2778
1c671366
MK
27792003-09-15 Mark Kettenis <kettenis@gnu.org>
2780
de5227fb
MK
2781 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2782 ps_strings into a long.
2783
1c671366
MK
2784 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2785 _initialize_am64fbsd_nat.
2786
a604369a
KB
27872003-09-15 Kevin Buettner <kevinb@redhat.com>
2788
2789 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2790 associated with DW_AT_ranges attribute is out of bounds.
2791
b3cacbee
DL
27922003-09-15 David Lecomber <dsl@sources.redhat.com>
2793
2794 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2795
d0f37bb2
MC
27962003-09-14 Michael Chastain <mec@shout.net>
2797
2798 * config/m68k/nm-apollo68v.h: Delete.
2799 * config/m68k/xm-apollo68v.h: Delete.
2800
69517000
AC
28012003-09-14 Andrew Cagney <cagney@redhat.com>
2802
2803 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2804 * dcache.c: Update copyrights and descriptions.
2805 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2806
ef8b349d
AC
28072003-09-14 Andrew Cagney <cagney@redhat.com>
2808
2809 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2810 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2811
52f0bd74
AC
28122003-09-14 Andrew Cagney <cagney@redhat.com>
2813
2814 * alpha-nat.c: Remove some occurances of "register".
2815 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2816 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2817 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2818 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2819 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2820 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2821 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2822 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2823 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2824 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2825 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2826 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2827 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2828 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2829 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2830 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2831 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2832 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2833 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2834 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2835 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2836 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2837
4a4b3fed
AC
28382003-09-13 Andrew Cagney <cagney@redhat.com>
2839
2840 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2841 * ppc-tdep.h (struct regcache): Declare opaque.
2842 * objfiles.h (struct objfile_data): Declare opaque.
2843 * cp-support.h (struct objfile): Declare opaque.
2844 * linux-nat.h (target_waitstatus): Declare opaque.
2845
2110b94f
MK
28462003-09-14 Mark Kettenis <kettenis@gnu.org>
2847
1c671366
MK
2848 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2849 (stabs_argument_has_addr): New architecture method.
2850 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2851 * arch-utils.c: Include "buildsym.h".
2852 (default_stabs_argument_has_addr): New function.
2853 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2854 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2855
2110b94f
MK
2856 * cris-tdep.c (cris_gdbarch_init): Set
2857 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2858 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2859 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2860 * mips-tdep.c (mips_gdbarch_init): Likewise.
2861 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2862 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2863
48436ce6
AC
28642003-09-13 Andrew Cagney <cagney@redhat.com>
2865
2866 * values.c (using_struct_return): Delete "function" and "funcaddr"
2867 parameters.
2868 * value.h (using_struct_return): Update declaration.
2869 * infcmd.c (finish_command_continuation): Update.
2870 (finish_command): Update.
2871 * infcall.c (call_function_by_hand): Update.
2872 * eval.c (evaluate_subexp_standard): Update.
2873
403d9909
CF
28742003-09-13 Christopher Faylor <cgf@redhat.com>
2875
2876 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2877 SSE registers since gdb will not operate correctly without this.
2878 Restore include file ordering munged in previous change.
2879 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2880
ebf7d56b
MK
28812003-09-13 Mark Kettenis <kettenis@gnu.org>
2882
8e823e25
MK
2883 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2884 REG_STRUCT_HAS_ADDR.
2885 * gdbarch.c, gdbarch.h: Updated.
2886 * infcall.c (call_function_by_hand): Update.
2887 * stabsread.c (define_symbol): Updated.
a8f4cde1 2888
ebf7d56b
MK
2889 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2890
d3f13f72
CF
28912003-09-12 Christopher Faylor <cgf@redhat.com>
2892
2893 * win32-nat.c: Reorganize so that defines used by target headers are
2894 actually defined by the system headers.
2895 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2896 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2897
14f75137
JB
28982003-09-12 Jim Blandy <jimb@redhat.com>
2899
d646061f
JB
2900 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2901 the file has no .data, .bss, or .rodata sections. Instead wait
2902 until we see a variable alleged to live in one of those sections.
2903
2a13f9bc
JB
2904 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2905 .bss section, presume that any variables we find live in the
2906 .rodata section.
2907
4f49b26b
JB
2908 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2909 offsets for global and static variables.
2910
14f75137
JB
2911 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2912 symbol types are, by definition, in the .data section, so it is
2913 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2914 If there is no .data section, there should be no N_DATA or N_DATA
2915 | N_EXT symbols.
2916
212c460c
MK
29172003-09-12 Mark Kettenis <kettenis@gnu.org>
2918
2919 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2920 (amd64fbsd_sigcontext_addr): Rewrite.
2921 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2922 with correct values.
2923 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2924 (amd64fbsd_init_abi): Fix typo.
2925
68856ea3
AC
29262003-09-12 Andrew Cagney <cagney@redhat.com>
2927
2928 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2929 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2930
627b3ba2
AC
29312003-09-12 Andrew Cagney <cagney@redhat.com>
2932
2933 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2934 "entry_file_highpc". Update comments.
2935 * defs.h (deprecated_inside_entry_file): Rename
2936 "inside_entry_file".
2937 * blockframe.c (deprecated_inside_entry_file): Rename
2938 "inside_entry_file".
2939 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2940 * vax-tdep.c (vax_frame_chain): Update.
2941 * sh64-tdep.c (sh64_frame_chain): Update.
2942 * sh-tdep.c (sh_frame_chain): Update.
2943 * rs6000-tdep.c (rs6000_frame_chain): Update.
2944 * ns32k-tdep.c (ns32k_frame_chain): Update.
2945 * mips-tdep.c (mips_frame_chain): Update.
2946 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2947 * m32r-tdep.c (m32r_frame_this_id): Update.
2948 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2949 * frv-tdep.c (frv_frame_this_id): Update.
2950 * d10v-tdep.c (d10v_frame_this_id): Update.
2951 * cris-tdep.c (cris_frame_chain): Update.
2952 * blockframe.c (legacy_frame_chain_valid): Update.
2953 * avr-tdep.c (avr_frame_this_id): Update.
2954 * arm-tdep.c (arm_prologue_this_id): Update.
2955 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2956 * objfiles.c (objfile_relocate): Update.
2957 * mipsread.c (mipscoff_symfile_read): Update.
2958 (mipscoff_symfile_read): Update.
2959 * mdebugread.c (parse_partial_symbols): Update.
2960 * dwarfread.c (read_file_scope): Update.
2961 * dwarf2read.c (read_file_scope): Update.
2962 * dbxread.c (read_dbx_symtab): Update.
2963 (read_dbx_symtab): Update.
2964 * coffread.c (complete_symtab): Update.
2965
b0abbc58
JJ
29662003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2967
2968 * top.c (quit_target): New static helper function.
2969 (quit_force): Moved code to quit_target(). Call quit_target()
2970 via catch_errors() to catch errors during quit.
2971
a1632d59
DC
29722003-09-11 David Carlton <carlton@kealia.com>
2973
2974 * buildsym.c (finish_block): Use allocate_block to allocate the
2975 block.
2976 * mdebugread.c (new_block): Add FIXME.
2977
5c4e30ca
DC
29782003-09-11 David Carlton <carlton@kealia.com>
2979
2980 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2981 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2982 (recursive_dump_type): Ditto.
2983 * printcmd.c (print_formatted): Ditto.
2984 * typeprint.c (print_type_scalar): Ditto.
2985 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2986 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2987 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2988 maint_cplus_cmd_list.
2989 * cp-support.c: Make maint_cplus_cmd_list extern.
2990 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2991 command.h.
2992 (lookup_symbol_file): Look in possible namespace blocks when
2993 appropriate.
2994 (initialize_namespace_symtab): New.
2995 (get_possible_namespace_block, free_namespace_block)
2996 (check_possible_namespace_symbols)
2997 (check_possible_namespace_symbols_loop)
2998 (check_one_possible_namespace_symbol)
2999 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3000 (_initialize_cp_namespace): Ditto.
3001 * block.h: Declare allocate_block.
3002 * block.c (allocate_block): New.
3003 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3004 allocate_block.
3005 * symfile.h: Update declaration of add_psymbol_to_list.
3006 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3007 question.
3008 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3009 scan_partial_symbols_call.
3010 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3011 helper functions.
3012 (add_partial_symbol): If necessary, scan mangled names for names
3013 of namespaces.
3014 (add_partial_namespace): Add NAMESPACE argument; generate partial
3015 symbols associated to namespaces.
3016 (add_partial_enumeration): Add NAMESPACE argument.
3017 (new_symbol): Allow namespace syms.
3018 (read_namespace): Generate namespace syms.
3019 * objfiles.h: Add opaque declaration of struct symtab.
3020 (struct objfile): Add cp_namespace_symtab member.
3021 * objfiles.c (allocate_objfile): Set
3022 objfile->cp_namespace_symtab.
3023 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3024 dictionary_h, command_h.
3025
33a7c2fc
AC
30262003-09-11 Andrew Cagney <cagney@redhat.com>
3027
3028 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3029 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3030 near the function's end.
3031 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3032 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3033 regcache_raw_write_signed to set SP_REGNUM.
3034
63cd24fe
EZ
30352003-09-11 Elena Zannoni <ezannoni@redhat.com>
3036
3037 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3038 orig_addrs is set up properly.
3039
f27dd7fd
AC
30402003-09-11 Andrew Cagney <cagney@redhat.com>
3041
3042 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3043 * gdbarch.h, gdbarch.c: Re-generate.
3044 * infcall.c (call_function_by_hand): Update.
3045 * hppa-tdep.c (hppa_push_arguments): Update.
3046 * ada-lang.c (place_on_stack): Update.
3047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3048 * sparc-tdep.c (sparc_gdbarch_init): Update.
3049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3050 * hppa-tdep.c (hppa_gdbarch_init): Update.
3051 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3052 stack_align.
3053
f630a401
DJ
30542003-09-11 Daniel Jacobowitz <drow@mvista.com>
3055
3056 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3057 register do need a frame.
3058
0ddabb4c
AC
30592003-09-11 Andrew Cagney <cagney@redhat.com>
3060
3061 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3062 buildable since GDB 5.0.
3063 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3064 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3065 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3066 * irix4-nat.c: Delete file.
3067 * config/mips/irix4.mh: Delete file.
3068 * config/mips/irix3.mh: Delete file.
3069 * config/mips/irix3.mt: Delete file.
3070 * config/mips/tm-irix3.h: Delete file.
3071 * config/mips/nm-irix3.h: Delete file.
3072 * config/mips/xm-irix3.h: Delete file.
3073 * config/mips/nm-irix4.h: Delete file.
3074 * config/mips/xm-irix4.h: Delete file.
3075 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3076
fde2cceb
JB
30772003-09-10 J. Brobecker <brobecker@gnat.com>
3078
3079 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3080 * Makefile.in (hppa-tdep.o): Update dependencies.
3081
66f667f5
JW
30822003-09-10 James E Wilson <wilson@specifixinc.com>
3083
ef5fd69f
JW
3084 * MAINTAINERS: Change my e-mail address. Move to paper trail
3085 section.
66f667f5 3086
53e8aaea
KB
30872003-09-10 Kevin Buettner <kevinb@redhat.com>
3088
3089 * MAINTAINERS (frv): New ISA entry.
3090
dcc6aaff
KB
30912003-09-10 Kevin Buettner <kevinb@redhat.com>
3092
3093 * frv-tdep.c (dis-asm.h): Include.
3094 * Makefile.in (frv-tdep.o): Update dependencies.
3095
932644f0
JJ
30962003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3097
3098 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3099 Fix typo for high range of floating registers.
3100
91c24f0a
DC
31012003-09-09 David Carlton <carlton@kealia.com>
3102
3103 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3104 highpc initialization here out of scan_partial_symbols.
3105 (scan_partial_symbols): Restructure into a recursive version,
3106 calling add_partial_namespace and add_partial_enumeration when
3107 appropriate.
3108 (add_partial_namespace): New.
3109 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3110
c9263853
AC
31112003-09-09 Andrew Cagney <cagney@redhat.com>
3112
e56a0ecc
AC
3113 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3114 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3115 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3116 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3117
794a477a
AC
3118 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3119 (rs6000_push_dummy_call): Set the "TOC" register.
3120
c9263853
AC
3121 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3122 methods "max_register_raw_size", "max_register_virtual_size" or
3123 "register_virtual_size".
3124
afa7d0b2
ILT
31252003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3126
3127 * MAINTAINERS: Update my e-mail address.
3128
7a41266b
AC
31292003-09-09 Andrew Cagney <cagney@redhat.com>
3130
3131 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3132 (rs6000_push_dummy_call): Store the struct return address.
3133 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3134
77b2b6d4
AC
31352003-09-09 Andrew Cagney <cagney@redhat.com>
3136
3137 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3138 "ppc_sysv_abi_push_arguments".
3139 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3140 "ppc_sysv_abi_push_arguments".
3141 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3142 instead of "push_arguments".
3143 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3144
e8a7b686
AC
31452003-09-09 Andrew Cagney <cagney@redhat.com>
3146
3147 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3148 instead of CALL_DUMMY_ADDRESS.
3149
f86f5ca3
PH
31502003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3151
3152 * p-lang.c: Eliminate "register".
3153 * c-lang.c: Ditto.
3154 * expprint.c: Ditto.
3155 * f-lang.c: Ditto.
3156 * jv-lang.c: Ditto.
3157 * language.c: Ditto.
3158 * m2-lang.c: Ditto.
3159 * parse.c: Ditto.
3160 * scm-lang.c: Ditto.
3161 * objc-lang.c: Ditto.
3162
83ee270e
NC
31632003-09-09 Nick Clifton <nickc@redhat.com>
3164
3165 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3166
a89aa300
AC
31672003-09-04 Andrew Cagney <cagney@redhat.com>
3168
3169 * avr-tdep.c: Include "dis-asm.h".
3170 * cris-tdep.c: Include "dis-asm.h".
3171 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3172 instead of corresponding typedef.
3173 * h8300-tdep.c: Include "dis-asm.h".
3174 * ia64-tdep.c: Include "dis-asm.h".
3175 * i386-tdep.c: Include "dis-asm.h".
3176 (i386_print_insn): Use "struct disassemble_info" instead of
3177 corresponding typedef.
3178 * m68k-tdep.c: Include "dis-asm.h".
3179 * mcore-tdep.c: Include "dis-asm.h".
3180 * mips-tdep.c: Include "dis-asm.h".
3181 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3182 instead of corresponding typedef.
3183 * ns32k-tdep.c: Include "dis-asm.h".
3184 * s390-tdep.c: Include "dis-asm.h".
3185 * sparc-tdep.c: Include "dis-asm.h".
3186 * vax-tdep.c: Include "dis-asm.h".
3187 * v850-tdep.c: Include "dis-asm.h".
3188 * mn10300-tdep.c: Include "dis-asm.h".
3189 * rs6000-tdep.c: Include "dis-asm.h".
3190 * xstormy16-tdep.c: Include "dis-asm.h".
3191 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3192 print_insn_xstormy16.
3193 * Makefile.in (v850-tdep.o): Update dependencies.
3194 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3195 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3196 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3197 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3198 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3199 (gdbarch_h): Remove $(dis_asm_h).
3200 * disasm.c: Include "dis-asm.h".
3201 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3202 corresponding typedef.
3203 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3204 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3205 * gdbarch.sh: Do not include "dis-asm.h".
3206 (struct disassemble_info): Declare opaque.
3207 (TARGET_PRINT_INSN): Update declaration.
3208 * gdbarch.h, gdbarch.c: Re-generate.
3209
88a82a65
AC
32102003-09-08 Andrew Cagney <cagney@redhat.com>
3211
3212 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3213 CALL_DUMMY_ADDRESS, change to a predicate.
3214 * gdbarch.h, gdbarch.c: Re-generate.
3215 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3216 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3217 * infcall.c (call_function_by_hand): Ditto.
3218 * sparc-tdep.c (sparc_push_return_address): Ditto.
3219 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3220 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3221 CALL_DUMMY_ADDRESS with entry_point_address.
3222 * v850-tdep.c (v850_push_return_address): Ditto.
3223 * s390-tdep.c (s390_push_return_address): Ditto.
3224 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3225 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3226 * mcore-tdep.c (mcore_push_return_address): Ditto.
3227 * cris-tdep.c (cris_push_return_address): Ditto.
3228 * arm-tdep.c (arm_push_return_address): Ditto.
3229
3e2c4033
AC
32302003-09-08 Andrew Cagney <cagney@redhat.com>
3231
3232 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3233 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3234 and REG_UNMODIFIED to REG_SAME_VALUE.
3235 (execute_cfa_program): Update.
3236 (dwarf2_frame_cache): Update. Initialize table to
3237 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3238 location.
3239 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3240
39efb398
AC
32412003-09-08 Andrew Cagney <cagney@redhat.com>
3242
3243 * gnu-nat.c: Remove "inline" function attribute.
3244 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3245
f5cb5aca
KB
32462003-09-08 Kevin Buettner <kevinb@redhat.com>
3247
3248 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3249 target.
3250
1cb761c7
KB
32512003-09-08 Kevin Buettner <kevinb@redhat.com>
3252
3253 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3254 (frame_extra_info): Rename this struct to frv_unwind_cache.
3255 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3256 Add fields ``prev_sp'' and ``base''.
3257 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3258 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3259 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3260 Delete.
3261 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3262 Revise all callers. Fill in the unwind cache argument and make
3263 other adjustments to account for new frame mechanisms.
3264 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3265 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3266 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3267 (frv_frame_unwind, frv_frame_base): New structs.
3268 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3269 additional arguments expected by this method and adjust function
3270 body accordingly.
3271 (frv_gdbarch_init): Remove calls to the following functions:
3272 set_gdbarch_deprecated_init_frame_pc(),
3273 set_gdbarch_deprecated_saved_pc_after_call(),
3274 set_gdbarch_deprecated_frame_chain(),
3275 set_gdbarch_deprecated_frame_saved_pc(),
3276 set_gdbarch_deprecated_frame_init_saved_regs(),
3277 set_gdbarch_deprecated_push_arguments(),
3278 set_gdbarch_deprecated_push_return_address(),
3279 set_gdbarch_deprecated_pop_frame(),
3280 set_gdbarch_deprecated_call_dummy_words(),
3281 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3282 set_gdbarch_deprecated_init_extra_frame_info(),
3283 set_gdbarch_deprecated_dummy_write_sp(), and
3284 set_gdbarch_deprecated_pc_in_call_dummy().
3285 Add calls to the following functions:
3286 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3287 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3288 frame_base_set_default().
3289 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3290
68f6cf99
MK
32912003-09-09 Mark Kettenis <kettenis@gnu.org>
3292
3293 * dwarf2-frame.c (read_encoded_value): Add support for
3294 DW_EH_PE_aligned encoding.
3295
73b65bb0
DJ
32962003-09-08 Daniel Jacobowitz <drow@mvista.com>
3297
3298 * infrun.c (normal_stop): Don't print a message if the inferior
3299 has exited.
3300
7c8a5605
JB
33012003-09-08 Jim Blandy <jimb@redhat.com>
3302
3303 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3304 * dbxread.c: #include "gdb_assert.h".
3305 (read_dbx_symtab): If the objfile has no .data section, use the
3306 section index for the .bss section instead.
3307
7dd88986
DJ
33082003-09-08 Daniel Jacobowitz <drow@mvista.com>
3309
3310 * frame.c (deprecated_safe_get_selected_frame): New function.
3311 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3312 * findvar.c (read_var_value): Call it.
3313
55ff77ac
CV
33142003-09-08 Corinna Vinschen <vinschen@redhat.com>
3315
3316 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3317 (sh64-tdep.o): Add dependencies.
3318 * configure.tgt: Add FIXME to sh-*-linux*.
3319 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3320 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3321 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3322 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3323 * sh64-tdep.c: New file, containing all sh64 related code from
3324 sh-tdep.c.
3325 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3326 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3327 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3328 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3329 * config/sh/wince.mt (TDEPFILES): Ditto.
3330
bfb39158
DJ
33312003-09-07 Daniel Jacobowitz <drow@mvista.com>
3332
3333 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3334 (stop_wait_callback): Handle !lp->signalled also.
3335 (lin_lwp_has_pending, flush_callback): New functions.
3336 (lin_lwp_wait): Call flush_callback.
3337 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3338 (linux_proc_pending_signals): New function.
3339 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3340
9407de8e
DJ
33412003-09-07 Daniel Jacobowitz <drow@mvista.com>
3342
3343 From Nick Kelsey <nickk@ubicom.com>:
3344 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3345 when the stop PC is at the beginning of a function also.
3346
2ef47cd0
DJ
33472003-09-06 Daniel Jacobowitz <drow@mvista.com>
3348
3349 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3350 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3351
6f4492c8
MK
33522003-09-06 Mark Kettenis <kettenis@gnu.org>
3353
3354 * sol-thread.c: Include "gdb_string.h".
3355
d3420b2f
MK
33562003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3357
3358 * gcore.c: Reorder include files in alphabetical order. Include
3359 "gdb_assert.h". Various coding style fixes.
3360 (derive_stack_segment, derive_heap_segment): Replace check for
3361 non-null BOTTOM and TOP with gdb_assert.
3362 (derive_heap_segment): Replace check for successful creation of
3363 ZERO with gdb_assert.
3364 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3365
5220ea4c
AC
33662003-09-04 Andrew Cagney <cagney@redhat.com>
3367
3368 * thread-db.c (verbose_dlsym): New function.
3369 (thread_db_load): Use verbose_dlsym
3370 (thread_db_new_objfile): Print that libthread_db was loaded, and
3371 that thread debugging was enabled.
3372
6e8c2c06
AC
33732003-09-04 Andrew Cagney <cagney@redhat.com>
3374
3375 * configure.tgt: Add "mips64*-*-*" target. Delete
3376 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3377 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3378 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3379 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3380 mips*-sony-*, and mips64*-*-elf* targets.
3381 * config/mips/embedl.mt: Delete file.
3382 * config/mips/embedl64.mt: Delete file.
3383 * config/mips/mips.mt: Delete file.
3384 * config/mips/mips64.mt: Delete file.
3385 * config/mips/tm-embed.h: Delete file.
3386 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3387 * config/mips/embed64.mt: Delete out-of-date comment.
3388
3a3bc038
AC
33892003-09-04 Andrew Cagney <cagney@redhat.com>
3390
3391 * hppa-tdep.c (hppa_gdbarch_init): Set
3392 "have_nonsteppable_watchpoint".
3393 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3394 * mips-tdep.c (mips_dump_tdep): Do not print
3395 HAVE_NONSTEPPABLE_WATCHPOINT.
3396 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3397 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3398 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3399 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3400
a957e642
CV
34012003-09-04 Corinna Vinschen <vinschen@redhat.com>
3402
3403 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3404 unused code. Add comment.
3405
a6fbcf2f
CV
34062003-09-04 Corinna Vinschen <vinschen@redhat.com>
3407
3408 * breakpoint.c (watchpoint_check): Check for pc being in an
3409 epilogue if watchpoint frame couldn't be found.
3410
c14a44d5
AC
34112003-09-04 Andrew Cagney <cagney@redhat.com>
3412
3413 * Makefile.in: Re-generate all dependencies.
3414
f6c40618
AC
34152003-09-03 Andrew Cagney <cagney@redhat.com>
3416
3417 * arch-utils.h (legacy_print_insn): Delete declaration.
3418 * arch-utils.c (legacy_print_insn): Delete function.
3419 * disasm.c (deprecated_tm_print_insn_info): Delete.
3420 (_initialize_disasm): Delete function, contained code initializing
3421 deprecated_tm_print_insn_info.
3422 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3423 (deprecated_tm_print_insn_info): Delete.
3424 (TARGET_PRINT_INSN): Do not provide a default.
3425 * gdbarch.h, gdbarch.c: Re-generate.
3426
242e8be5
AC
34272003-09-03 Andrew Cagney <cagney@redhat.com>
3428
3429 * disasm.c (fprintf_disasm): New function.
3430 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3431 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3432 reverts 2003-08-14 change.
3433 (_initialize_disasm): Call "init_disassemble_info", instead of
3434 INIT_DISASSEMBLE_INFO_NO_ARCH.
3435
3ffc3dda
MS
34362003-09-03 Michael Snyder <msnyder@redhat.com>
3437
3438 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3439
52d16ba8
AC
34402003-09-03 Andrew Cagney <cagney@redhat.com>
3441
3442 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3443 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3444 * symfile.c (syms_from_objfile): Update.
3445 (reread_symbols): `Update
3446 * exec.c (exec_file_attach): Update.
3447 (exec_file_attach): Update.
3448 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3449 2003-08-29 change.
3450 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3451
eb5492fa
DJ
34522003-09-03 Daniel Jacobowitz <drow@mvista.com>
3453
3454 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3455 trad-frame.h.
3456 (arm_get_cache): Delete macro.
3457 (struct arm_prologue_cache): Update comments. Make saved_regs into
3458 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3459 to prev_sp.
3460 (thumb_scan_prologue): Update for cache changes. Don't call
3461 DEPRECATED_PC_IN_CALL_DUMMY.
3462 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3463 argument and use it in desperation search for our prologue. Do not
3464 search past the specified PC.
3465 (arm_make_prologue_cache): Simplify.
3466
3467 (arm_prologue_this_id, arm_prologue_prev_register)
3468 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3469 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3470 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3471 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3472 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3473
3474 (arm_frame_chain_valid, arm_find_callers_reg)
3475 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3476 (arm_pop_frame): Delete obsolete methods.
3477 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3478
3479 (arm_gdbarch_init): Update for new frame methods. Register prologue
3480 and sigtramp unwinders. Set the default frame base method.
3481
3482 * Makefile.in (arm-tdep.o): Update dependencies.
3483 * varobj.c (find_frame_addr_in_frame_chain): Call
3484 get_frame_base_address.
3485 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3486
24de872b
DJ
34872003-09-03 Daniel Jacobowitz <drow@mvista.com>
3488
3489 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3490 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3491 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3492 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3493 Take NEXT_FRAME and CACHE arguments. Call
3494 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3495 Set unwound_pc in CACHE instead of modifying the frame argument.
3496 Don't bother checking the frame type when looking for sigtramp
3497 frames.
3498 (arm_make_prologue_cache, arm_frame_chain)
3499 (arm_init_extra_frame_info): New functions.
3500
9b8d791a
DJ
35012003-09-03 Daniel Jacobowitz <drow@mvista.com>
3502
3503 * arm-tdep.c (arm_get_cache): Define.
3504 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3505 unwound_sp, unwound_pc, and saved_regs.
3506 (thumb_scan_prologue): Take a cache instead of the frame.
3507 (arm_scan_prologue): Likewise.
3508 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3509 instead of a temporary frame.
3510 (arm_init_extra_frame_info): Allocate and use a cache.
3511 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3512
7ee3275f
AC
35132003-09-03 Andrew Cagney <cagney@redhat.com>
3514
3515 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3516 * config/mips/wince.mt (TM_CLIBS): Ditto.
3517 * config/sh/wince.mt (TM_CLIBS): Ditto.
3518 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3519 * config/sparc/sp64.mt (CC): Delete.
3520
57b29be7
AC
35212003-09-03 Andrew Cagney <cagney@redhat.com>
3522
3523 * defs.h: Do not include "arch-utils.h".
3524 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3525 GDB_MULTI_ARCH_PURE.
3526 * configure.in (GDB_MULTI_ARCH): Do not define.
3527 * configure, config.in: Regenerate.
3528 * configure.tgt: Do not set variable "gdb_multi_arch".
3529 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3530 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3531 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3532 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3533 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3534 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3535 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3536 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3537 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3538 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3539 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3540 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3541 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3542 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3543 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3544 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3545 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3546 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3547
12e035e2
MC
35482003-08-30 Michael Chastain <mec@shout.net>
3549
3550 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3551 * config/m68k/nm-hp300hpux.h: Delete.
3552 * config/m68k/tm-hp300hpux.h: Delete.
3553 * config/m68k/xm-hp300hpux.h: Delete.
3554 * config/m68k/xm-hp300bsd.h: Delete.
3555 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3556 tm-hp300hpux.h, xm-hp300hpux.h.
3557 * somsolib.c: Remove comment about hp300 shared libraries.
3558
bda34dc2
MK
35592003-08-31 Mark Kettenis <kettenis@gnu.org>
3560
5bca7895
MK
3561 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3562 Only define PTRACE_GET_THREAD_AREA is not already defined.
3563 Various style fixes in code and comments and some additional
3564 spelling fixes in comments. Move after functions dealing with
3565 debug registers.
3566 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3567 Fix coding-style.
3568
bda34dc2
MK
3569 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3570 frame_unwind_register_unsigned instead of
3571 frame_unwind_unsigned_register.
3572
c890192f
MK
35732003-08-30 Mark Kettenis <kettenis@gnu.org>
3574
3575 * configure.in: Search for gethostbyname in libnsl.
3576 * configure: Regenerated.
3577
60fac5b8
MK
35782003-08-29 Mark Kettenis <kettenis@gnu.org>
3579
e294916c
MK
3580 * configure.in: Remove redundant AC_MSG_RESULT in check for
3581 uintptr_t in stdint.h.
3582 * configure: Regenerated.
3583
c40d267a
MK
3584 * amd64-nat.h (struct regcache): Add opaque declaration.
3585
60fac5b8
MK
3586 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3587 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3588 Change "register array" to "register cache" in comments.
3589 (x86_64_linux_gregset64_reg_offset): New variable.
3590 (GETREGS_SUPPLIES): Remove macro.
3591 (supply_gregset): Call amd64_supply_native_gregset instead of
3592 x86_64_linux_supply_gregset.
3593 (fill_gregset): Rename `regno' to `regnum'. Call
3594 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3595 (store_regs): Rename `regno' to `regnum'.
3596 (store_fpregs): Rename `regno' to `regnum'.
3597 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3598 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3599 Reorganize function a bit.
3600 (store_inferior_registers): Rename `regno' to `regnum'. Use
3601 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3602 Reorganize function a bit.
3603 (_initialize_x86_64_linux_nat): New function.
3604 * config/i386/x86-64linux.mh.
3605
546143b6
AC
36062003-08-29 Andrew Cagney <cagney@redhat.com>
3607
3608 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3609 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3610 (target_remove_watchpoint): Delete macro.
3611 (target_insert_watchpoint): Delete macro.
3612 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3613 (remote_mips_stopped_by_watchpoint): Delete declaration.
3614 (remote_mips_remove_watchpoint): Delete declaration.
3615 (remote_mips_set_watchpoint): Delete declaration.
3616 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3617 * remote-mips.c (_initialize_remote_mips): Set
3618 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3619 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3620 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3621 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3622 (mips_stopped_by_watchpoint): Rename
3623 remote_mips_stopped_by_watchpoint.
3624 (mips_can_hardware_watchpoint): Rename
3625 remote_mips_can_use_hardware_watchpoint, update function
3626 signature.
3627
7bace51b
MK
36282003-08-29 Mark Kettenis <kettenis@gnu.org>
3629
b0f5c6f2
MK
3630 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3631 USER_DS. We haven't given them a register number yet.
3632
2a6d284d
MK
3633 * amd64-nat.h: New file.
3634 * amd64-nat.c: New file.
3635 * amd64fbsd-nat.c: Include "amd64-nat.h".
3636 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3637 (amd64fbsd32_r_reg_offset): New variable.
3638 (supply_gregset): Simply call amd64_supply_native_gregset.
3639 (fill_gregset): Rename `regno' to `regnum'. Simply call
3640 amd64_collect_native_gregset.
3641 (fill_fpregset): Rename `regno' to `regnum'.
3642 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3643 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3644 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3645 `fpregset_t'. Call amd64_supply_native_gregset instead of
3646 supply_gregset. Call x86_64_supply_fxsave instead of
3647 supply_fpregset.
3648 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3649 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3650 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3651 `fpregset_t'. Call amd64_collect_native_gregset instead of
3652 fill_gregset. Call x86_64_collect_fxsave instead of
3653 fill_fpregset.
3654 (_initialize_am64fbsd_nat): Initialize
3655 amd64_native_gregset32_reg_offset and
3656 amd64_native_gregset64_reg_offset.
3657 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3658
a16d75cc
MK
3659 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3660 null pointer. Fix typo in comment.
3661
7bace51b
MK
3662 * regcache.c (supply_register): Reimplement to call
3663 regcache_raw_supply.
3664 (regcache_collect): Reimplement by calling regcache_raw_collect.
3665
9a661b68
MK
36662003-08-28 Mark Kettenis <kettenis@gnu.org>
3667
3668 * regcache.c (register_buffer): Consitify first argument.
3669 (regcache_raw_supply, regcache_raw_collect): New
3670 functions.
3671
e94cc8fa
DJ
36722003-08-28 Daniel Jacobowitz <drow@mvista.com>
3673
3674 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3675 by Nathan J. Williams.
3676
c64bd0ce
DJ
36772003-08-28 Daniel Jacobowitz <drow@mvista.com>
3678
3679 * lin-lwp.c (wait_lwp): New function, copied from
3680 stop_wait_callback. Clean up.
3681 (stop_wait_callback): Use wait_lwp.
3682
e5ab0dce
AC
36832003-08-28 Andrew Cagney <cagney@redhat.com>
3684
3685 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3686 flavour and disassembler options.
3687 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3688 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3689 deprecated_tm_print_insn_info.
a8f4cde1 3690
a788de9b
AC
36912003-08-27 Andrew Cagney <cagney@redhat.com>
3692
3693 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3694 Use target_read_memory.
3695 (s390_get_frame_info): Update. Do not reference
3696 deprecated_tm_print_insn_info.
3697 (s390_check_function_end, s390_is_sigreturn): Ditto.
3698
36482093
AC
36992003-08-27 Andrew Cagney <cagney@redhat.com>
3700
3701 * Makefile.in (cris-tdep.o): Update dependencies.
3702 * cris-tdep.c: Include "gdb_assert.h".
3703 (cris_gdbarch_init): Set print_insn.
3704 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3705 (cris_delayed_get_disassembler): Simplify, directly call the
3706 disassembler returned by cris_get_disassembler.
3707 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3708 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3709 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3710 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3711 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3712 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3713 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3714 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3715 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3716 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3717 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3718 (gdb_print_insn_sparc): Delete function.
3719 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3720 deprecated_tm_print_insn_info.
3721 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3722 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3723 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3725 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3726 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3727 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3728 (s390_gdbarch_init): Set print_insn.
3729
0285512f
AC
37302003-08-27 Andrew Cagney <cagney@redhat.com>
3731
3732 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3733 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3734 * infcall.c (call_function_by_hand): Convert the entry point
3735 address into a code address.
3736
cdcd5552
AC
37372003-08-27 Andrew Cagney <cagney@redhat.com>
3738
3739 * dsrec.c: Include "gdb_string.h".
3740 * Makefile.in (dsrec.o): Update dependencies.
3741
e85cddad
MC
37422003-08-27 Michael Chastain <mec@shout.net>
3743
3744 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3745
8bbfbb23
AC
37462003-08-27 Andrew Cagney <cagney@redhat.com>
3747
3748 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3749 (alpha_osf1_init_abi): Do not set call_dummy_address.
3750
ba058b66
DC
37512003-08-27 David Carlton <carlton@kealia.com>
3752
3753 From Randolph Chung <tausq@debian.org>:
3754 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3755 compiles with -Wformat-nonliteral -Werror.
3756
87f84c9d
JB
37572003-08-26 Jim Blandy <jimb@redhat.com>
3758
3759 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3760 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3761 bfd_lookup_symbol, since we only want symbols in code sections.
3762 (look_for_base): Pass zero as the SECT_FLAGS argument to
3763 bfd_lookup_symbol, since we're not concerned about which section
3764 the symbol is in.
3765
102d615a
JJ
37662003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3767
3768 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3769 we are frameless or the return address register is already known.
102d615a 3770
cc7ad3ea
AC
37712003-08-26 Andrew Cagney <cagney@redhat.com>
3772
3773 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3774 in size. Add comments.
3775
af8b88dd
JJ
37762003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3777
3778 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3779 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3780
e0a4f5a1
JM
37812003-08-26 Jason Merrill <jason@redhat.com>
3782
3783 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3784 case out of #ifdef MIPS block.
3785
4ae9ee8e
DJ
37862003-08-25 Daniel Jacobowitz <drow@mvista.com>
3787
3788 PR java/1322
3789 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3790 available before calling SECT_OFF_TEXT.
3c164570 3791 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3792
004d836a
JJ
37932003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3794
a8f4cde1 3795 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3796 bof, and nat0-nat127 as pseudo-registers.
3797 (ia64_frame_cache): New struct used to cache frame info.
3798 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3799 register grouping so registers without names are still saved and
004d836a 3800 restored.
a8f4cde1 3801 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3802 pseudo values.
3803 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3804 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3805 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3806 ia64_frame_cache.
3807 (examine_prologue): Change prototype to add next_frame pointer.
3808 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3809 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3810 alloc insn and if equal, mark as not frameless. At end of routine,
3811 if not frameless, calculate registers for the previous frame and store
3812 in the cache, if a cache is provided.
3813 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3814 and pass 0 for next_frame.
3815 (ia64_store_return_value): Change to use convert_typed_floating()
3816 instead of calling ia64_convert_to_raw().
3817 (ia64_extract_return_value): Change to use convert_typed_floating()
3818 instead of calling ia64_convert_to_virtual().
3819 (ia64_frame_cache): New routine to support new frame model.
3820 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3821 (ia64_frame_sniffer): Ditto.
3822 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3823 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3824 (ia64_sigtramp_frame_prev_register): Ditto.
3825 (ia64_sigtramp_frame_sniffer): Ditto.
3826 (ia64_frame_base_address): Ditto.
3827 (ia64_extract_struct_value_address): Change to issue error message.
3828 (ia64_frame_align): New routine to align sp.
3829 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3830 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3831 ia64_push_dummy_call().
3832 (ia64_push_return_address): Ditto.
3833 (ia64_unwind_dummy_id): New function.
3834 (ia64_unwind_pc): Ditto.
3835 (ia64_convert_register_p): Ditto.
3836 (ia64_register_to_value): Ditto.
3837 (ia64_value_to_register): Ditto.
3838 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3839 (ia64_register_byte, ia64_register_raw_size): Ditto.
3840 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3841 (ia64_saved_pc_after_call): Ditto.
3842 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3843 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3844 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3845 (ia64_register_convert_to_raw): Ditto.
3846 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3847 (ia64_init_extra_frame_info): Ditto.
3848 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3849 (ia64_gdbarch_init): Remove registering of deprecated functions that
3850 are no longer used. Add registration of new gdbarch functions.
3851 Remove registering deprecated_write_sp. Replace
3852 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3853 Delete set_gdbarch_deprecated_register_convertible(),
3854 set_gdbarch_deprecated_register_convert_to_virtual(), and
3855 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3856 set_gdbarch_deprecated_register_size(),
3857 set_gdbarch_deprecated_register_bytes(),
3858 set_gdbarch_pcregnum(),
3859 set_gdbarch_deprecated_register_byte(),
3860 set_gdbarch_deprecated_register_raw_size(),
3861 set_gdbarch_deprecated_max_register_raw_size(),
3862 set_gdbarch_deprecated_register_virtual_size(),
3863 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3864 Replace set_gdbarch_deprecated_extract_return_value() with
3865 set_gdbarch_extract_return_value(). Remove calls to:
3866 set_gdbarch_deprecated_saved_pc_after_call();
3867 set_gdbarch_deprecated_frame_chain(),
3868 set_gdbarch_deprecated_frame_saved_pc(),
3869 set_gdbarch_deprecated_frame_init_saved_regs(),
3870 set_gdbarch_deprecated_get_saved_register(),
3871 set_gdbarch_deprecated_call_dummy_words(),
3872 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3873 set_gdbarch_deprecated_init_extra_frame_info(),
3874 set_gdbarch_deprecated_frame_args_address(),
3875 set_gdbarch_deprecated_frame_locals_address(),
3876 and set_gdbarch_deprecated_dummy_write_sp().
3877 Add set_gdbarch_convert_register_p(),
3878 set_gdbarch_register_to_value(),
3879 set_gdbarch_value_to_register(),
3880 set_gdbarch_push_dummy_call(),
3881 set_gdbarch_frame_align(),
3882 set_gdbarch_unwind_dummy_id(),
3883 set_gdbarch_unwind_pc(),
3884 frame_unwind_append_sniffer(),
3885 frame_unwind_append_sniffer(),
3886 and frame_base_set_default().
3887
aede7613
CD
38882003-08-25 Chris Demetriou <cgd@broadcom.com>
3889
3890 * configure.tgt: Document need for special "mipsisa64" handling.
3891 (mipsisa64*-*-linux64): Handle as target linux64.
3892 (mipsisa64*-*-*): Handle as target embed64.
3893
43c3a82e
MC
38942003-08-18 Michael Chastain <mec@shout.net>
3895
3896 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3897 objfile bug.
3898
6564f77d
MK
38992003-08-24 Mark Kettenis <kettenis@gnu.org>
3900
2de139ba
MK
3901 * i387-tdep.h: Update copyright date.
3902 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3903
6564f77d
MK
3904 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3905 CFLAGS games to reflect reality.
3906
42cf1509
AC
39072003-08-24 Andrew Cagney <cagney@redhat.com>
3908
3909 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3910 GDB_MULTI_ARCH is always non-zero.
3911 * osabi.c (_initialize_gdb_osabi): Ditto.
3912 (gdbarch_init_osabi): Ditto.
3913 * sparc-tdep.c: Ditto for #if code.
3914
0485f6ad
MK
39152003-08-23 Mark Kettenis <kettenis@gnu.org>
3916
3917 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3918 Update comments.
3919 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3920 comments.
3921 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3922 x86_64_supply_fxsave.
3923 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3924 x86_64_supply_fxsave.
3925 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3926 x86_64_supply_fxsave.
3927
c7716133
AJ
39282003-08-23 Andreas Jaeger <aj@suse.de>
3929
3930 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3931 i387_supply_fxsave.
3932
ed504bdf
MK
39332003-08-23 Mark Kettenis <kettenis@gnu.org>
3934
3935 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3936 i387_supply_register.
3937 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3938 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3939 i387_supply_fsave.
3940 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3941 i387_supply_fxsave.
3942 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3943 i387_supply_fsave.
3944 * i386bsd-nat.c (supply_fpregset): Adjust call to
3945 i387_supply_fsave.
3946 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3947 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3948 supply_fpregset.
3949 (store_inferior_registers): Remove extraneous whitespace. Call
3950 i387_fill_fsave instead of fill_fpregset.
3951 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3952 (supply_fpregset): Likewise.
3953 * i386v4-nat.c (supply_fpregset): Adjust call to
3954 i387_supply_fsave.
3955 * i386-interix-nat.c (supply_fpregset): Adjust call to
3956 i387_supply_fsave.
3957 * i386-linux-nat.c (supply_fpregset): Adjust call to
3958 i387_supply_fsave.
3959 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3960 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3961 i387supply_fsave and i387_supply_fxsave.
3962 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3963 Incorporate code from `i387_supply_register.
3964 (i387_supply_register): Remove.
3965 (i387_supply_fxsave): Add `regnum' argument.
3966 Update comments.
3967 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3968 prototype.
3969 (i387_supply_register): remove prototype.
3970 Update comments.
a8f4cde1 3971
4be5d520
MC
39722003-08-22 Michael Chastain <mec@shout.net>
3973
3974 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3975 Add lines for files in gdb/testsuite/gdb.cp/* that are
3976 still not 8.3 unique.
3977
7ed85d26
DJ
39782003-08-22 Daniel Jacobowitz <drow@mvista.com>
3979
3980 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3981 TYPE_VPTR_FIELDNO is valid.
3982
eb0d3137
MK
39832003-08-19 Mark Kettenis <kettenis@gnu.org>
3984
3985 * utils.c (set_width_command): Remove prototypes.
3986 (set_screen_size): New prototype.
3987 (init_page_info): Simplify by fetching the screen size from
3988 Readline. Call set_screen_size.
3989 (set_screen_size): New function.
3990 (set_width): Add missing whitespace in comment.
3991 (set_width_command): Call set_screen_size.
3992 (set_height_command): New function.
3993 (initialize_utils): Fix formatting. Make "set height" command
3994 call set_height_command. Remove redundant code that turns off
3995 pagination if output isn't a terminal. Remove redundant call to
3996 set_width_command.
a8f4cde1 3997
7e6d0ac8
MK
39982003-08-22 Mark Kettenis <kettenis@gnu.org>
3999
3567a8ea
MK
4000 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4001 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4002 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4003 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4004 `case' keyword.
4005 (sparc64_register_info): Give the reister with number
4006 SPARC64_STATE_REGNUM a name.
4007 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4008 %asi and %ccr.
4009 (sparc64_push_dummy_call): Take BIAS into account when checking
4010 stcak alignment.
4011 (sparc_software_single_step): Remove assertions that check whether
4012 NPC and NNPC were zero.
4013 (sparc_supply_rwindow): Make public. Merge functionality with
4014 sparc64_supply_rwindow.
4015 (sparc_fill_rwindow): Make public. Merge functionality with
4016 sparc64_fill_rwindow.
4017 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4018 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4019 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4020 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4021 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4022
7e6d0ac8
MK
4023 * reggroups.c: Add whitespace after declarations of local
4024 variables in functions.
4025
72e5f484
MC
40262003-08-21 Michael Chastain <mec@shout.net>
4027
4028 * gdbtypes.h: Change array bound type from an int to enum.
4029
435ac228
AC
40302003-08-21 Andrew Cagney <cagney@redhat.com>
4031
4032 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4033 * config/sparc/tm-sparc.h: Ditto.
4034 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4035 unconditionally.
4036 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4037
0d0e1a63
MK
40382003-07-13 Mark Kettenis <kettenis@gnu.org>
4039
4040 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4041 (register_objfile_data, set_objfile_data, objfile_data): New
4042 prototypes.
4043 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4044 prototypes.
4045 (allocate_objfile): Call objfile_alloc_data.
4046 (free_objfile): Call objfile_free_data.
4047 (struct objfile_data): New.
4048 (struct objfile_data_registration): New.
4049 (struct objfile_data_registry): New.
4050 (objfile_data_registry): New variable.
4051 (register_objfile_data): New function.
4052 (objfile_alloc_data, objfile_free_data): New functions.
4053 (set_objfile_data, objfile_data): New functions.
4054 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4055 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4056 (_initialize_dwarf2_frame): New function and prototype.
4057
d90cf509
AC
40582003-08-21 Andrew Cagney <cagney@redhat.com>
4059
4060 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4061 a specific architecture.
4062 * arch-utils.h (set_architecture_from_arch_mach): Delete
4063 declaration.
4064 (target_architecture_hook): Delete declaration.
4065 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4066 (default_float_format): Assume GDB_MULTI_ARCH.
4067 (default_double_format): Assume GDB_MULTI_ARCH.
4068 (set_endian_from_file): Delete function.
4069 (arch_ok): Delete function.
4070 (set_arch): Delete function.
4071 (set_architecture_from_arch_mach): Delete function.
4072 (set_architecture_from_file): Delete function.
4073 (set_architecture): Assume GDB_MULTI_ARCH.
4074 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4075
8b39fe56
MK
40762003-08-21 Mark Kettenis <kettenis@gnu.org>
4077
4078 Rewrite FreeBSD/sparc64 native configuration.
4079 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4080 * sparc64fbsd-nat.c: New file.
4081 * sparc64fbsd-tdep.c: New file.
4082 * sparc64-tdep.c sparc64-tdep.h: New files.
4083 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4084 sparc64fbsd-tdep.o): New dependencies.
4085 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4086 and sparc64fbsd-tdep.c.
4087 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4088 * config/sparc/fbsd.mh: Remove copyright notice.
4089 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4090 sparcbsd-nat.o.
4091 * config/sparc/fbsd.mt: Remove copyright notice.
4092 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4093 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4094 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4095 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4096 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4097 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4098 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4099 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4100 "sparc/tm-sp64.h".
4101 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4102 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4103
a7f19c79
MC
41042003-08-21 Michael Chastain <mec@shout.net>
4105
4106 * symtab.h: Add doco on the space critical structures and
4107 some measurements of space usage.
4108
da08ea5b
MS
41092003-08-21 Michael Snyder <msnyder@redhat.com>
4110
4111 * tracepoint.c (trace_dump_command): Trace break address
4112 is subject to DECR_PC_AFTER_BREAK.
4113 (set_traceframe_context): Make "trace_line" an int.
4114 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4115
6df2bf50
MS
41162003-08-20 Michael Snyder <msnyder@redhat.com>
4117
4118 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4119 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4120 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4121 argument passing.
a8f4cde1 4122 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4123 functions, replace sh_push_dummy_call.
4124 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4125
0955bbf0
MC
41262003-08-20 Michael Chastain <mec@shout.net>
4127
4128 * gdbtypes.h (struct main_type): Rearrange to save space.
4129
260a4188
MS
41302003-08-20 Michael Snyder <msnyder@redhat.com>
4131
4132 * trad-frame.c: Comment typo fix.
4133
8baa6f92
KB
41342003-08-20 Michael Snyder <msnyder@redhat.com>
4135 Kevin Buettner <kevinb@redhat.com>
4136
4137 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4138 (frv_frame_init_saved_regs): Add declaration.
4139 (frame_extra_info): Add new field ``saved_regs''.
4140 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4141 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4142 Update frame related code.
4143 (frv_extract_struct_value_address): Adjust formatting.
4144 * Makefile.in (frv-tdep.o): Update dependencies.
4145 * config/frv/tm-frv.h (target_insert_watchpoint)
4146 (target_remove_watchpoint, target_insert_hw_breakpoint)
4147 (target_remove_hw_breakpoint): Delete these macros.
4148 (remote_insert_watchpoint, remote_remove_watchpoint)
4149 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4150 these declarations.
4151
87193939
MC
41522003-08-20 Michael Chastain <mec@shout.net>
4153
4154 * defs.h (ENUM_BITFIELD): New macro.
4155 * symtab.h (ENUM_BITFIELD): Use it.
4156 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4157
062103ba
SA
41582003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4159
4160 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4161
8b148df9
AC
41622003-08-18 Andrew Cagney <cagney@redhat.com>
4163
4164 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4165 * gdbarch.h, gdbarch.c: Re-generate.
4166 * infcall.c (call_function_by_hand): Adjust the SP by
4167 frame_red_zone_size before allocating any stack space.
4168 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4169 * x86-64-tdep.c (x86_64_frame_align): New function.
4170 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4171
4172 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4173 Remove code adjusting SP so that it skips over the Red Zone.
4174
954a4db8
MK
41752003-08-18 Mark Kettenis <kettenis@gnu.org>
4176
4177 * NEWS (New native configurations): Mention FreeBSD/amd64.
4178
1a241548
AC
41792003-08-18 Andrew Cagney <cagney@redhat.com>
4180
4181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4182 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4183 "m68k_frame_p".
4184 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4185
f82b2acd
MK
41862003-08-18 Mark Kettenis <kettenis@gnu.org>
4187
4188 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4189
4056d258
ML
41902003-08-18 Michal Ludvig <mludvig@suse.cz>
4191
4192 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4193 Define.
4194 * i386-linux-nat.c: Include "linux-nat.h".
4195 (child_post_startup_inferior): New function.
a8f4cde1 4196
99ab4326
MK
41972003-08-18 Mark Kettenis <kettenis@gnu.org>
4198
4199 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4200 at the start of a frameless function. This probably fixes PR
4201 backtrace/1338.
4202
c8d5f0d6
MC
42032003-08-17 Michael Chastain <mec@shout.net>
4204
4205 * symfile.c (find_sym_fns): Remove special case for apollo target.
4206
9016a515
DJ
42072003-08-17 Daniel Jacobowitz <drow@mvista.com>
4208
4209 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4210 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4211 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4212 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4213 (linux_supports_tracevforkdone): New function.
4214 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4215 TRACEVFORKDONE.
4216 (child_follow_fork): Handle vfork.
4217 (linux_handle_extended_wait): Likewise. Also handle exec.
4218 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4219 * NEWS: Mention fork tracing.
4220
c538c11c
DJ
42212003-08-17 Daniel Jacobowitz <drow@mvista.com>
4222
4223 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4224
4de4c07c
DJ
42252003-08-17 Daniel Jacobowitz <drow@mvista.com>
4226
4227 * Makefile.in (i386-linux-nat.o): Update dependencies.
4228 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4229 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4230 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4231 * i386-linux-nat.c: Include "linux-nat.h".
4232 (child_post_startup_inferior): New function.
4233 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4234 * infptrace.c (kill_inferior): Wrap in #ifdef.
4235 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4236 attaching to each LWP.
4237 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4238 (init_lin_lwp_ops): Fill in some more operations.
4239 * linux-nat.h (linux_enable_event_reporting)
4240 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4241 prototypes.
4242 * linux-nat.c (linux_enable_event_reporting): New function.
4243 (child_post_attach, linux_child_post_startup_inferior)
4244 (child_post_startup_inferior, child_follow_fork)
4245 (linux_handle_extended_wait, kill_inferior): New functions.
4246
7996bcec
AC
42472003-08-16 Andrew Cagney <cagney@redhat.com>
4248
4249 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4250 * gdbarch.h, gdbarch.c: Re-generate.
4251
3d48a7a0
MK
42522003-08-16 Mark Kettenis <kettenis@gnu.org>
4253
4254 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4255
7989c619
AC
42562003-08-16 Andrew Cagney <cagney@redhat.com>
4257
4258 * NEWS: Mention that "set prompt-escape-char" was deleted.
4259 * top.c (get_prompt_1): Delete function.
4260 (gdb_prompt_escape):
4261 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4262 prompt-escape-char" command.
4263 (MAX_PROMPT_SIZE): Delete macro.
4264 (get_prompt): Simplify, do not call get_prompt_1.
4265
07978cd8
AC
42662003-08-16 Andrew Cagney <cagney@redhat.com>
4267
4268 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4269 -Werror. -Wformat-nonliteral problems.
4270
3ff7cf9e
JB
42712003-08-15 J. Brobecker <brobecker@gnat.com>
4272
4273 Further multiarching work mostly for hppa64-*-hpux11:
4274 * hppa-tdep.h: New file.
4275 * hppa-tdep.c: #include hppa-tdep.c.
4276 (hppa32_num_regs): Renamed from hppa_num_regs.
4277 (hppa64_num_regs): New constant.
4278 (hppa64_call_dummy_breakpoint_offset): New constant.
4279 (hppa32_call_dummy_length): New constant.
4280 (hppa64_call_dummy_length): New constant.
4281 (hppa32_stack_align): Make name 32bit explicit.
4282 (hppa32_register_virtual_type): Likewise.
4283 (hppa32_extract_return_value): Likewise.
4284 (hppa32_use_struct_convention): Likewise.
4285 (hppa32_store_return_value): Likewise.
4286 (hppa64_register_virtual_type): New function.
4287 (hppa64_extract_return_value): New function.
4288 (hppa64_use_struct_convention): New function.
4289 (hppa64_store_return_value): New function.
4290 (hppa_frame_locals_address): Remove declaration, function does
4291 not exist anymore.
4292 (hppa_register_byte): Add support for PA64 ABI.
4293 (hppa_gdbarch_init): Add support for PA64 ABI.
4294 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4295 Make name 32bit explicit.
4296 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4297 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4298 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4299 (hppa64_hpux_frame_base_before_sigtramp): New function.
4300 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4301 * config/pa/tm-hppa64.h: Remove macros that are no longer
4302 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4303 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4304 * config/pa/tm-hppah.h: Update function calls in macros
4305 following the function renaming in hppa-hpux-tdep.c.
4306 * Makefile.in (hppa_tdep_h): New variable.
4307 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4308
5d05ca6d
MS
43092003-08-14 Michael Snyder <msnyder@redhat.com>
4310
4311 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4312
37ba2569
JB
43132003-08-13 J. Brobecker <brobecker@gnat.com>
4314
4315 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4316 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4317 routine.
4318
aed7f26a
MS
43192003-08-13 Michael Snyder <msnyder@redhat.com>
4320
4321 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4322 (frv_saved_pc_after_call): Use deprecated ftype.
4323 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4324 (frv_remote_translate_xfer_address): Remove.
4325 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4326
752d4ac1
JB
43272003-08-13 J. Brobecker <brobecker@gnat.com>
4328
4329 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4330 initialization after the common gdbarch initialization, not before.
4331
1426ac1d
JB
43322003-08-13 J. Brobecker <brobecker@gnat.com>
4333
4334 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4335 (ADDR_BITS_REMOVE): Remove, redundant.
4336
b6fbdd1d
JB
43372003-08-13 J. Brobecker <brobecker@gnat.com>
4338
4339 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4340 gdbarch method to clear the 2 low bits of text addresses.
4341
44160db3
AC
43422003-08-12 Andrew Cagney <cagney@redhat.com>
4343
4344 * Makefile.in (dsrec.o): Update dependencies.
4345 * dsrec.c: Include "gdb_assert.h".
4346 (make_srec): Use snprintf instead of sprintf, use a literal format
4347 string.
4348
bcf7d3ca
AC
43492003-08-12 Andrew Cagney <cagney@redhat.com>
4350
4351 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4352 FRAME_OBSTACK_ZALLOC.
4353
49ed40de
KB
43542003-08-12 Kevin Buettner <kevinb@redhat.com>
4355
4356 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4357 SSE registers.
4358
b246147c
MK
43592003-08-10 Mark Kettenis <kettenis@gnu.org>
4360
4361 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4362 amd64fbsd_sc_reg_offset): Add extern declarations.
4363 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4364 declarations.
4365
d95fdc0d
BE
43662003-08-11 Ben Elliston <bje@wasabisystems.com>
4367
4368 * MAINTAINERS (write after approval): Update my mail address.
4369
cf6a0e73
AC
43702003-08-10 Andrew Cagney <cagney@redhat.com>
4371
4372 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4373
f837910f
MK
43742003-08-10 Mark Kettenis <kettenis@gnu.org>
4375
e2dbbd2d
MK
4376 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4377 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4378 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4379 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4380 i386bsd_sc_reg_offset): Add extern declarations.
4381 * i386obsd-nat.c: Include "i386-tdep.h"
4382 (_initialize_i386obsd_nat): Remove extern declarations.
4383 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4384 declarations.
4385 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4386 declarations.
4387
f837910f
MK
4388 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4389 instead of frame_read_register.
4390 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4391 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4392 SP_REGNUM.
4393 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4394 instead of frame_unwind_unsigned_register. Use
4395 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4396 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4397 instead of read_register. Use builtin_type_void_data_ptr instead
4398 of builtin_type_void_func_ptr when extracting the address of the
4399 jmp_buf.
4400 (i386_extract_return_value, i386_store_return_value,
4401 i386_pseudo_register_read, i386_pseudo_register_write): Use
4402 register_size instead REGISTER_RAW_SIZE.
4403
edcf254d
AC
44042003-08-10 Andrew Cagney <cagney@redhat.com>
4405
4406 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4407 sprintf. Make "name" constant.
4408
26604a34
MK
44092003-08-10 Mark Kettenis <kettenis@gnu.org>
4410
192285c6
MK
4411 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4412 instead of frame_read_register.
f837910f
MK
4413 (i387_print_float_info): Use get_frame_register and
4414 get_frame_register_unsigned instead of frame_register_read.
192285c6 4415
f0925262
MK
4416 * i386fbsd-nat.c: Include "i386-tdep.h".
4417 (child_resume): Make `eflags' an ULONGEST. Use
4418 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4419 instead of register_read and register_write.
4420
a144416f
MK
4421 * i386bsd-nat.c (fetch_inferior_registers,
4422 store_inferior_registers): Don't use && at the end of a line.
4423 (_initialize_i386bsd_nat): Fix typo.
4424
fec74868
MK
4425 * frame.c (_initialize_frame): Add missing backslash.
4426
87232496
MK
4427 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4428 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4429 and supply_register instead of manipulating the register buffer
4430 directly.
4431
c9b9de0b
MK
4432 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4433 * config/i386/nm-i386sol2.h
4434 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4435
26604a34
MK
4436 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4437 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4438 instructions that GCC likes to mingle into the prologue. Fixes
4439 gdb/1253 and gdb/1255.
4440
25d29d70
AC
44412003-08-09 Andrew Cagney <cagney@redhat.com>
4442
4443 Fix GDB PR cli/926.
4444 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4445 * command.h (add_setshow_uinteger_cmd): Declare.
4446 * frame.c (set_backtrace_cmd): New function.
4447 (show_backtrace_cmd): New function.
4448 * frame.c (_initialize_frame): Replace "set/show
4449 backtrace-below-main" with "set/show backtrace past-main". Add
4450 command "set/show backtrace limit".
4451 (backtrace_past_main): Rename "backtrace_below_main".
4452 (backtrace_limit): New variable.
4453 (get_prev_frame): Update. Check the backtrace_limit.
4454
9ebf4acf
AC
44552003-08-09 Andrew Cagney <cagney@redhat.com>
4456
4457 * defs.h (xstrprintf): Declare.
4458 * utils.c (xstrprintf): New function.
4459 * breakpoint.c (insert_breakpoints): Replace sprintf and
4460 non-literal format strings, with xstrprintf and cleanups.
4461 (delete_breakpoint,breakpoint_re_set): Ditto.
4462 (commands_command, insert_breakpoints): Ditto.
4463 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4464 (break_at_finish_command_1): Ditto.
4465
3771659b
AC
44662003-08-09 Andrew Cagney <cagney@redhat.com>
4467
4468 * MAINTAINERS (language support): List Adam Fedor as Objective C
4469 maintainer.
4470
b4263afa
JB
44712003-08-08 J. Brobecker <brobecker@gnat.com>
4472
4473 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4474 are now multiarched.
4475
d84defb1
JB
44762003-08-08 J. Brobecker <brobecker@gnat.com>
4477
4478 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4479 longer necessary now that hppa64 is partially multiarch'ed.
4480
f786f615
AC
44812003-08-08 Andrew Cagney <cagney@redhat.com>
4482
4483 * interps.c (interp_set): Check for a NULL "old_interp".
4484
c938e9b0
L
44852003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4486
4487 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4488 (install-only): Support DESTDIR.
4489 (uninstall): Likewise.
4490 (install-gdbtk): Likewise.
4491
9a146a11
EZ
44922003-08-08 Elena Zannoni <ezannoni@redhat.com>
4493
4494 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4495 contains something meaningful at all times.
4496
4497Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4498
62599e99 4499 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4500
56296155
BC
4501Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4502
62599e99 4503 * MAINTAINERS (write after approval): Added self.
56296155 4504
9710e734
AC
45052003-08-07 Andrew Cagney <cagney@redhat.com>
4506
4507 * inferior.h (AT_SYMBOL): Define.
4508 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4509 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4510 * mips-tdep.c (mips_call_dummy_address): Delete function.
4511 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4512 set call_dummy_address.
4513
98b3ab73
AC
45142003-08-07 Andrew Cagney <cagney@redhat.com>
4515
4516 * language.c (op_error): Delete function.
4517 (binop_type_check): Delete function.
4518 * language.h (type_op_error, range_op_error): Delete macros.
4519 (op_error): Delete declaration.
4520
2fcf52f0
AC
45212003-08-07 Andrew Cagney <cagney@redhat.com>
4522
4523 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4524
abd4220e 45252003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4526
abd4220e 4527 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4528 (x86_64_push_arguments): Skip the red zone.
abd4220e 4529
9dd5f34f
AC
45302003-08-05 Andrew Cagney <cagney@redhat.com>
4531
4532 * reggroups.c (reggroup_next): Check for the final entry.
4533
e5e78edc
AC
45342003-08-04 Andrew Cagney <cagney@redhat.com>
4535
ab4e3d93
AC
4536 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4537 * cli/cli-script.c (define_command): Call query directly, instead
4538 of passing it a buffer.
4539 * ocd.c (ocd_error): Pass error a constant format string.
4540 * remote-mips.c (mips_error): Use fputs_filtered.
4541
1062ca82
AC
4542 * solib-svr4.c (_initialize_svr4_solib): Update
4543 register_gdbarch_data call.
4544 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4545
fcc1c85c
AC
4546 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4547 (register_gdbarch_data): Delete "free" parameter. Update
4548 comments.
4549 * gdbarch.h, gdbarch.c: Re-generate.
4550 * reggroups.c (_initialize_reggroup): Update.
4551 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4552 * frame-base.c (_initialize_frame_base): Update.
4553 * frame-unwind.c (_initialize_frame_unwind): Update.
4554 * user-regs.c (_initialize_user_regs): Update.
4555 * remote.c (_initialize_remote): Update.
4556 * regcache.c (_initialize_regcache): Update.
4557
116f06ea
AC
4558 * regcache.c (xfree_regcache_descr): Delete function.
4559 (_initialize_regcache): Update call to register_gdbarch_data.
4560 (init_regcache_descr, init_legacy_regcache_descr): Use
4561 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4562
e5e78edc
AC
4563 * remote.c (free_remote_state): Delete function.
4564 (_initialize_remote): Update register_gdbarch_data.
4565 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4566 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4567
6c7d17ba
AC
45682003-08-04 Andrew Cagney <cagney@redhat.com>
4569
4570 * reggroups.c (struct reggroup_el): Define.
4571 (struct reggroups): Delete field "nr_group". Replace array
4572 "group" with a "first" to "last" linked list.
4573 (reggroups_init): Update. Allocate using gdbarch's obstack.
4574 (reggroups_free): Delete function.
4575 (add_group): Update. Add "el" parameter.
4576 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4577 (default_groups): Update.
4578 (reggroup_next): Replace reggroups.
4579 (reggroups_dump): Update.
4580 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4581 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4582 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4583
89b7795b
DJ
45842003-08-04 Daniel Jacobowitz <drow@mvista.com>
4585
4586 * Makefile.in (tui-interp.o): Update dependencies.
4587
306d9ac5
DC
45882003-08-04 David Carlton <carlton@kealia.com>
4589
4590 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4591 to internal_error call.
4592 * source.c (forward_search_command): Add "%s" format argument.
4593 (reverse_search_command): Ditto.
4594 * top.c (quit_confirm): Ditto.
4595 * cli/cli-setshow.c (do_setshow_command): Ditto.
4596 * cp-valprint.c (cp_print_class_method): Replace
4597 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4598 (cp_print_class_member): Ditto.
4599 * event-top.c (command_line_handler): Ditto.
4600 * linux-proc.c (linux_info_proc_cmd): Ditto.
4601 * p-typeprint.c (pascal_type_print_base): Ditto.
4602 * p-valprint.c (pascal_object_print_class_method): Ditto.
4603 (pascal_object_print_class_member): Ditto.
4604 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4605 * remote.c (remote_cisco_section_offsets): Ditto.
4606 * top.c (command_line_input): Ditto.
4607 * utils.c (vwarning,error_stream,quit): Ditto.
4608 * valprint.c (print_floating,print_binary_chars)
4609 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4610
57bfe177
AC
46112003-08-04 Andrew Cagney <cagney@redhat.com>
4612
4613 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4614
e546b999
AC
46152003-08-02 Andrew Cagney <cagney@redhat.com>
4616
4617 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4618 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4619 amd64fbsd-nat.c.
4620
91092ee5
AC
46212003-08-02 Andrew Cagney <cagney@redhat.com>
4622
4623 * Makefile.in: Update all dependencies and definitions.
4624
889f28e2
AF
46252003-08-02 Adam Fedor <fedor@gnu.org>
4626
4627 * linespec.c (is_objc_method_format): New function
4628 (decode_line_1, locate_first_half): Use it.
4629 Fixes PR objc/1298
4630
880bc914
AC
46312003-08-01 Andrew Cagney <cagney@redhat.com>
4632
4633 * NEWS: Mention that m32r is multi-arch.
4634 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4635 * configure.tgt: Recognize m32r-*-*.
4636 * config/m32r/tm-m32r.h: Delete file.
4637 * config/m32r/m32r.mt: New file.
a8f4cde1 4638 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4639 gethostname succeeds, in order to avoid a compilation
4640 warning.
4641 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4642 compiler warning.
4643
19f59343
MS
46442003-08-01 Michael Snyder <msnyder@redhat.com>
4645
4646 * sh-tdep.c (sh_frame_align): New gdbarch method.
4647 (sh_gdbarch_init): Set up frame_align method.
4648
4e7d7511
MS
46492003-07-31 Michael Snyder <msnyder@redhat.com>
4650
4651 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4652 which is already covered by the new frames infrastructure.
4653
63022984
AC
46542003-07-31 Andrew Cagney <cagney@redhat.com>
4655
4656 * user-regs.c (struct user_reg): Add "next" link.
4657 (struct user_regs): Replace "user" with "first" and "last" links.
4658 (append_user_reg): Add pre-allocated "reg" parameter.
4659 (builtin_user_regs): Provide initial value for "last".
4660 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4661 (user_regs_init): Allocate memory from the gdbarch obstack.
4662 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4663 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4664 linked list.
4665 (usernum_to_user_reg): New function.
4666 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4667 (value_of_user_reg): Use usernum_to_user_reg.
4668 (user_regs_free): Delete function.
4669 (_initialize_user_regs): Update register_gdbarch_data call.
4670
7cf6e574
DJ
46712003-07-31 Daniel Jacobowitz <drow@mvista.com>
4672
4673 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4674
c48a845b
MS
46752003-07-30 Michael Snyder <msnyder@redhat.com>
4676
4e7d7511 4677 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4678 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4679 value_being_returned.
4680 * infcmd.c (print_return_value): Pass zero as struct_addr.
4681 * values.c (value_being_returned): If struct_addr is passed,
4682 use it instead of trying to recover it from the inferior.
4683
f0d8db19
KB
46842003-07-30 Kevin Buettner <kevinb@redhat.com>
4685
4686 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4687 the prologue analyzer won't need to attempt to extract the pc
4688 value from the woefully incomplete dummy frame.
4689 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4690 possible. Disable code which modifies the frame.
4691
e5c113a1
AC
46922003-07-28 Andrew Cagney <cagney@redhat.com>
4693
4694 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4695 to level 2.
4696 (annotate_breakpoints_table, annotate_record): Ditto.
4697 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4698 (annotate_field_name_end, annotate_field_value): Ditto.
4699 (annotate_field_end, annotate_frame_source_begin): Ditto.
4700 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4701 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4702 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4703 (annotate_frame_address_end, annotate_frame_address): Ditto.
4704 (annotate_frame_args, annotate_frame_end): Ditto.
4705 (annotate_frame_where, annotate_arg_begin): Ditto.
4706 (annotate_arg_name_end, annotate_arg_value): Ditto.
4707 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4708 (annotate_function_call, annotate_signal_name): Ditto.
4709 (annotate_signal_string, annotate_signal_name_end): Ditto.
4710 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4711 (annotate_value_begin, annotate_value_history_value): Ditto.
4712 (annotate_value_history_end, annotate_value_end): Ditto.
4713 (annotate_display_begin, annotate_display_number_end): Ditto.
4714 (annotate_display_format, annotate_display_expression): Ditto.
4715 (annotate_display_expression_end, annotate_display_value): Ditto.
4716 (annotate_display_end, annotate_array_section_begin): Ditto.
4717 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4718 (annotate_elt, annotate_array_section_end): Ditto.
4719
bb1db049
AC
47202003-07-28 Andrew Cagney <cagney@redhat.com>
4721
4722 * regcache.c (struct regcache_descr): Update comments on
4723 nr_raw_registers.
4724 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4725 sizeof_raw_register_valid_p.
4726 (init_regcache_descr): Set nr_raw_registers and
4727 sizeof_raw_register_valid_p before calling
4728 init_legacy_regcache_descr.
4729
20e6603c
AC
47302003-07-28 Andrew Cagney <cagney@redhat.com>
4731
4732 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4733 MOD NUM_REGS.
4734
db742940
DJ
47352003-07-28 Daniel Jacobowitz <drow@mvista.com>
4736
4737 * thread.c (info_threads_command): Use get_selected_frame ().
4738 Check that there is at least one non-sentinel frame.
4739
ce7f4371
SC
47402003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4741
4742 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4743 (m68hc11_pop_frame): Remove.
4744 (m68hc11_frame_saved_pc): Remove.
4745 (m68hc11_frame_chain): Remove.
4746 (m68hc11_frame_init_saved_regs): Remove.
4747 (m68hc11_init_extra_frame_info): Remove.
4748 (m68hc11_store_struct_return): Remove.
4749 (m68hc11_saved_pc_after_call): Remove.
4750
1ea653ae
SC
47512003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4752
4753 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4754 frame unwind information.
4755 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4756 and adapted for frame unwinding.
4757 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4758 (m68hc11_unwind_pc): New function.
4759 (m68hc11_frame_unwind_cache): New function to analyze frames.
4760 (m68hc11_frame_this_id): New function to create new frame struct.
4761 (m68hc11_frame_prev_register): New function to unwind a register from
4762 the frame.
4763 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4764 (m68hc11_frame_p): New function for the above.
4765 (m68hc11_frame_base_address): New function to return fp of frame.
4766 (m68hc11_frame_args_address): Update for frame.
4767 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4768 (m68hc11_unwind_sp): New function.
4769 (m68hc11_unwind_dummy_id): New function.
4770 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4771 calls.
4772
c8a7f6ac
SC
47732003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4774
4775 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4776 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4777 when we are beyond the current pc.
4778
3dc990bf
SC
47792003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4780
4781 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4782 from m68hc11_push_arguments.
4783 (m68hc11_push_arguments): Remove.
4784 (m68hc11_push_return_address): Remove.
4785 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4786 handlers; remove deprecated_extra_stack_alignment_needed.
4787
222e5d1d
AC
47882003-07-27 Andrew Cagney <cagney@redhat.com>
4789
4790 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4791 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4792 REAL_PC and not the pointer.
4793 * hppa-hpux-tdep.c: Include frame.h
4794
a7e9a47e
AC
47952003-07-27 Andrew Cagney <cagney@redhat.com>
4796
4797 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4798 GDB_MULTI_ACH_PARTIAL.
4799
7e3dd49e
AC
48002003-07-27 Andrew Cagney <cagney@redhat.com>
4801
4802 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4803 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4804 operator at start and not end of line.
4805 (decode_prologue): Ditto.
4806 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4807 frame_unwind_register_unsigned instead of
4808 frame_unwind_unsigned_register.
4809 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4810 read_register.
4811 (m32r_push_dummy_call): Use register_size instead of
4812 REGISTER_RAW_SIZE.
4813 (m32r_frame_sniffer): Replace m32r_frame_p.
4814 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4815 * m32r-rom.c (report_transfer_performance): Delete extern
4816 declaration.
4817 (m32r_load, m32r_upload_command): Use print_transfer_performance
4818 instead of report_transfer_performance.
4819 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4820 / add_show_from_set.
4821
0880807f
AC
48222003-07-26 Andrew Cagney <cagney@redhat.com>
4823
4824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4825 store_return_value and extract_struct_value_address.
4826
64ae9269
DJ
48272003-07-26 Daniel Jacobowitz <drow@mvista.com>
4828
4829 PR c++/1267
4830 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4831 NULL, default to the section containing PC.
4832
e286caf2
SC
48332003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4834
4835 * NEWS: Mention "regs" deprecated for m68hc11 too.
4836
4837 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4838 (m68hc11_print_register): New function to print out one register.
4839 (m68hc11_print_registers_info): New function to print registers.
4840 (show_regs): Deprecate and use the above.
4841 (m68hc11_gdbarch_init): Install the print_registers_info.
4842
705b278b
JJ
48432003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4844
4845 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4846 that we have a SIGTRAP before returning non-zero.
4847
63cd4198
EZ
48482003-07-23 Michal Ludvig <mludvig@suse.cz>
4849 Elena Zannoni <ezannoni@redhat.com>
4850
a8f4cde1 4851 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4852 find_function_start_sal() returns empty record.
4853
6926787d
AS
48542003-07-23 Andreas Schwab <schwab@suse.de>
4855
4856 * ia64-tdep.c (ia64_print_insn): New function.
4857 (ia64_gdbarch_init): Set print_insn to it.
4858 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4859 deprecated_tm_print_insn_info.
4860
708cc1b6
MS
48612003-07-22 Michael Snyder <msnyder@redhat.com>
4862
4863 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4864 handle 8-bit returns (long long).
4865 (h8300h_extract_return_value): Ditto.
4866 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4867
aebd7893
AC
48682003-07-22 Andrew Cagney <cagney@redhat.com>
4869
4870 * gdbarch.c Include "gdb_obstack.h".
4871 (struct gdbarch): Add an "obstack".
4872 (alloc_gdbarch_data): Allocate the gdbarch data using
4873 GDBARCH_OBSTACK_CALLOC.
4874 (free_gdbarch_data): Delete function.
4875 (gdbarch_obstack_zalloc): New function.
4876 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4877 Assert that the architecture is not initialized.
4878 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4879 vector from the obstack.
4880 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4881 architecture obstack.
4882 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4883 (set_gdbarch_data): Assert that the data is not initialized.
4884 (struct gdbarch_data): Delete member "free".
4885 (register_gdbarch_data): Do not initialize "free".
4886 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4887
153721e6
AC
48882003-07-22 Andrew Cagney <cagney@redhat.com>
4889
4890 * configure.in (build_warnings): Add -Wformat-nonliteral.
4891 * configure: Re-generate.
4892
c193f044 48932003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4894
4895 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4896
c3228f12
EZ
48972003-07-22 Elena Zannoni <ezannoni@redhat.com>
4898
4899 * findvar.c (read_var_value): Remove case for thread local storage
4900 variables. It is now entirely handled by the dwarf2 location
4901 expression code.
4902 * printcmd.c (address_info): Ditto.
4903 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4904 enumeration value.
4905 (struct symbol): Remove objfile field, which was used by
4906 LOC_THREAD_LOCAL_STATIC only.
4907 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4908 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4909 usage of objfile pointer.
4910 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4911 thread local variables.
4912 Add include of objfiles.h.
4913 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4914 storage variables.
4915 * Makefile.in (dwarf2loc.o): Update dependencies.
4916
aef9bcd2
AC
49172003-07-22 Andrew Cagney <cagney@redhat.com>
4918
4919 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4920 get_frame_base.
4921 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4922 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4923 (struct value): Add opaque declaration.
4924 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4925
d95a8903
AC
49262003-07-21 Andrew Cagney <cagney@redhat.com>
4927
4928 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4929 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4930
4db73d49
SC
49312003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4932
a8f4cde1 4933 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4934 regcache_cooked_read_unsigned instead of read_register.
4935 (m68hc11_saved_pc_after_call): Likewise.
4936 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4937 instead of write_register.
4938 (m68hc11_register_type): New function.
4939 (m68hc11_register_virtual_type): Remove.
4940 (m68hc11_store_return_value): Convert to use the regcache.
4941 (m68hc11_extract_struct_value_address): Likewise.
4942 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4943 m68hc11_register_type; undeprecate store_return_value and
4944 extract_struct_value_address.
4945
ef2b8fcd
SC
49462003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4947
4948 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4949 and translate to use regcache.
4950 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4951
625b0b97
AC
49522003-07-18 Andrew Cagney <cagney@redhat.com>
4953
4954 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4955 * gdbarch.h, gdbarch.c: Re-generate.
4956 * i386-tdep.c (i386_gdbarch_init): Do not set
4957 DWARF2_BUILD_FRAME_INFO.
4958 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4959 unconditionally.
4960 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4961 DWARF2_BUILD_FRAME_INFO.
4962
22b0d388
AC
49632003-07-18 Andrew Cagney <cagney@redhat.com>
4964
4965 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4966 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4967
1ce5d6dd
AC
49682003-07-18 Andrew Cagney <cagney@redhat.com>
4969
4970 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4971 frame_unwind_address_in_block, instead of frame_pc_unwind.
4972 (dwarf2_frame_cache): Ditto.
4973
e6e5e94c
AC
49742003-07-18 Andrew Cagney <cagney@redhat.com>
4975
4976 * user-regs.h (struct gdbarch): Declare opaque.
4977 * ui-out.h (struct ui_file): Declare opaque.
4978 * dwarf2-frame.h (struct frame_info): Declare opaque.
4979
5483d879
KW
49802003-07-18 Kris Warkentin <kewarken@qnx.com>
4981
4982 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4983 #include "...".
4984 (procfs_meminfo): Change strerror to safe_strerror.
4985 (procfs_can_run): Remove K&R badness.
4986
278a7cf7
MS
49872003-07-17 Michael Snyder <msnyder@redhat.com>
4988
4989 * remote-sim.c: Comment typo fix.
4990
606e3b82
AC
49912003-07-17 Andrew Cagney <cagney@redhat.com>
4992
4993 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4994 configure.
4995 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4996 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4997 GDB_MULTI_ARCH_PARTIAL.
4998
c43af07c
EZ
49992003-07-17 Elena Zannoni <ezannoni@redhat.com>
5000
5001 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5002 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5003 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5004
3b85b0f1
TR
50052003-07-16 Theodore A. Roth <troth@openavr.org>
5006
5007 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5008 found.
5009 (avr_frame_unwind_cache): Don't unwind FP for main.
5010 Update a comment.
5011 Save the computed prev_sp.
5012 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5013 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5014 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5015
336d1bba
AC
50162003-07-16 Andrew Cagney <cagney@redhat.com>
5017
5018 * frame-base.h (frame_base_p_ftype): Delete definition.
5019 (frame_base_append_predicate): Delete declaration.
5020 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5021 (frame_unwind_append_predicate): Delete declaration.
5022 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5023 (append_predicate): Delete parameter "p".
5024 (frame_unwind_append_predicate): Delete function.
5025 (frame_unwind_append_sniffer): Update call to append_predicate.
5026 (frame_unwind_free): Delete function.
5027 (_initialize_frame_unwind): Pass NULL as "free" to
5028 register_gdbarch_data.
5029 (frame_unwind_init): Append the dummy_frame_sniffer.
5030 (frame_unwind_find_by_frame): Simplify.
5031 * frame-base.c (struct frame_base_table): Delete field "p".
5032 (append_predicate): Delete parameter "p".
5033 (frame_base_append_predicate): Delete function.
5034 (frame_base_append_sniffer): Update call to append_predicate.
5035 (frame_base_free): Delete function.
5036 (frame_base_find_by_frame): Simplify.
5037 (_initialize_frame_base): Pass NULL as "free" to
5038 register_gdbarch_data.
5039 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5040 (x86_64_sigtramp_frame_sniffer): Replace
5041 "x86_64_sigtramp_frame_p".
5042 (x86_64_init_abi): Set the frame unwind sniffers.
5043 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5044 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5045 (m68k_gdbarch_init): Set the frame unwind sniffers.
5046 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5047 "i386_sigtramp_frame_p".
5048 (i386_frame_sniffer): Replace "i386_frame_p".
5049 (i386_gdbarch_init): Set the frame unwind sniffers.
5050 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5051 (avr_gdbarch_init): Set the frame unwind sniffers.
5052 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5053 "alpha_sigtramp_frame_p"
5054 (alpha_heuristic_frame_sniffer): Replace
5055 "alpha_heuristic_frame_p".
5056 (alpha_gdbarch_init): Set the frame unwind sniffers.
5057 (alpha_dwarf2_init_abi): Ditto.
5058 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5059 "alpha_debug_frame_p".
5060 (alpha_mdebug_frame_base_sniffer): Replace
5061 "alpha_mdebug_frame_base_p".
5062 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5063 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5064 (d10v_gdbarch_init): Set the frame unwind sniffer.
5065 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5066 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5067 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5068 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5069 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5070 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5071
48db5a3c
CV
50722003-07-16 Michael Snyder <msnyder@redhat.com>
5073
5074 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5075 should go thru sh_dsp_register_sim_regno, else the dsp regs
5076 will not get the right values.
5077
50782003-07-16 Corinna Vinschen <vinschen@redhat.com>
5079
5080 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5081 deprecated_store_floating by call to store_typed_floating.
5082 (sh_sh4_register_convert_to_raw): Substitute call to
5083 deprecated_extract_floating by call to extract_typed_floating.
5084
50852003-07-16 Corinna Vinschen <vinschen@redhat.com>
5086
5087 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5088
50892003-07-16 Corinna Vinschen <vinschen@redhat.com>
5090
5091 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5092 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5093 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5094 as possible.
5095 (do_pseudo_register): Remove.
5096 (sh_push_dummy_code): New function.
5097 (sh64_store_struct_return): Rename from sh_store_struct_return.
5098 Only called for sh64 now.
5099 (sh_extract_struct_value_address): Regcache'ify.
5100 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5101 and accomodate new tasks.
5102 (sh64_push_return_address): Rename from sh_push_return_address.
5103 Only called for sh64 now.
5104 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5105 Regcache'ify.
5106 (sh3e_sh4_extract_return_value): Regcache'ify.
5107 (sh_default_store_return_value): Ditto.
5108 (sh3e_sh4_store_return_value): Ditto.
5109 (sh_default_register_byte): Remove.
5110 (sh_sh4_register_byte): Remove.
5111 (sh_default_register_raw_size): Remove.
5112 (sh_sh4_register_raw_size): Remove.
5113 (sh_register_virtual_size): Remove.
5114 (sh_sh3e_register_virtual_type): Remove.
5115 (sh_sh3e_register_type): New function.
5116 (sh_sh4_register_virtual_type): Remove.
5117 (sh_sh4_register_type): New function.
5118 (sh_default_register_virtual_type): Remove.
5119 (sh_default_register_type): New function.
5120 (do_fv_register_info): Add parameters to accomodate call from
5121 sh_print_registers_info.
5122 (do_dr_register_info): Ditto.
5123 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5124 Add parameters to accomodate call from sh_print_registers_info.
5125 (sh_do_fp_register): Ditto.
5126 (sh64_do_pseudo_register): Call do_dr_register_info,
5127 do_fv_register_info and sh_do_fp_register with default parameters.
5128 (sh_do_register): Add parameters to accomodate call from
5129 sh_print_registers_info.
5130 (sh_print_register): Ditto.
5131 (sh_print_registers_info): Rename from sh_do_registers_info.
5132 Add parameters to be used as gdbarch_print_registers_info
5133 implementation. Accomodate removed do_pseudo_register function
5134 pointer.
5135 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5136 function pointer. Call sh_print_register with default parameters.
5137 (sh64_do_registers_info): Call sh_print_registers_info instead of
5138 sh_do_registers_info.
5139 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5140 detection of deprecated vs. non-deprecated functionality.
5141 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5142 function pointer assignments by direct function calls.
5143
e8a89fe2
AC
51442003-07-15 Andrew Cagney <cagney@redhat.com>
5145
5146 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5147 (frame_register_unwind, create_new_frame): Ditto.
5148 (legacy_get_prev_frame, get_frame_type): Ditto.
5149 (get_frame_base_address): Use frame_base_find_by_frame.
5150 (get_frame_locals_address): Use frame_base_find_by_frame.
5151 (get_frame_args_address): Use frame_base_find_by_frame.
5152 * frame-base.h (frame_base_sniffer_ftype): Declare.
5153 (frame_base_append_sniffer): Declare.
5154 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5155 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5156 (frame_base_append_sniffer): New function.
5157 (frame_base_append_predicate): Add a NULL sniffer.
5158 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5159 (struct frame_base_table): Add "sniffer".
5160 (frame_base_free): Free the "sniffer" table.
5161 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5162 (frame_unwind_append_sniffer): Declare.
5163 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5164 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5165 (struct frame_unwind_table): Add "sniffer", delete "middle".
5166 (append_predicate): Add "sniffer" parameter, append the sniffer.
5167 (frame_unwind_init): Update append_predicate call.
5168 (frame_unwind_append_sniffer): New function.
5169 (frame_unwind_append_predicate): Update append_predicate call.
5170 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5171
0714963c
AC
51722003-07-15 Andrew Cagney <cagney@redhat.com>
5173
5174 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5175 before code inhibiting repeated unwind attempts. Add to
5176 commentary on that test's problems.
5177 * blockframe.c (inside_main_func): Look for "main" in the minimal
5178 symbol table.
5179 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5180 identical.
5181
d9170e22
AC
51822003-07-15 Andrew Cagney <cagney@redhat.com>
5183
5184 * complaints.c (struct explanation): Define.
5185 (struct complaints): Change type of "explanation" to "struct
5186 explanation".
5187 (symfile_explanations): Convert to a "struct explanation" table.
5188 (vcomplaint): Update.
5189
eba29c8c
ML
51902003-07-15 Michal Ludvig <mludvig@suse.cz>
5191
5192 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5193 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5194 x86_64_linux_(fill,supply)_gregset functions.
5195 * x86-64-linux-tdep.c (USER_*): New defines.
5196 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5197 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5198 New functions.
5199 (fetch_core_registers): Ditto.
5200 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5201 * x86-64-linux-tdep.h: New file.
5202 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5203 and core-regset.o.
5204 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5205
68cc0bfb
MK
52062003-07-13 Mark Kettenis <kettenis@gnu.org>
5207
88a115f7
MK
5208 * x86-64-tdep.c (x86_64_store_return_value): Use
5209 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5210
68cc0bfb
MK
5211 * configure.host: Add x86_64-*-freebsd*.
5212 * configure.tgt: Add x86_64-*-freebsd*.
5213 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5214 * amd64fbsd-nat.c: New file.
5215 * amd64fbsd-tdep.c: New file.
5216 * config/i386/nm-fbsd64.h: New file.
5217 * config/i386/fbsd64.mh: New file.
5218 * config/i386/fbsd64.mt: New file.
5219
138e7be5
MK
52202003-07-11 Mark Kettenis <kettenis@gnu.org>
5221
5222 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5223 `sc_regs_offset' and `sc_fpregs_offset'.
5224 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5225 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5226 (alpha_sigtramp_register_address): Rewrite to use new members of
5227 `struct gdbarch_tdep'.
5228 (alpha_gdbarch_init): Initialize new members of struct
5229 gdbarch_tdep'.
5230 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5231 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5232 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5233 (alphafbsd_pc_in_sigtramp): Implement.
5234 (alphafbsd_sigtramp_offset): New function.
5235 (alphafbsd_sigcontext_addr): New function.
5236 (alphafbsd_init_abi): Initialize signal trampoline related members
5237 of `struct gdbarch_tdep'.
5238 (_initialize_alphafbsd_tdep): Add prototype.
5239
95303a68
TR
52402003-07-11 Theodore A. Roth <troth@openavr.org>
5241
ba292e4c
TR
5242 * Makefile.in (install-only): Quote sed expression when generating
5243 transformed_name.
95303a68 5244
6896c0c7
RH
52452003-07-11 Richard Henderson <rth@redhat.com>
5246
5247 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5248 * dwarf2-frame.c: Include complaints.h.
5249 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5250 variable initialization; return NULL on error.
5251 (decode_frame_entry): New.
5252
8edd5d01
AC
52532003-07-11 Andrew Cagney <cagney@redhat.com>
5254
c4a09524
AC
5255 * frame.h (frame_address_in_block): Delete declaration.
5256 * blockframe.c (frame_address_in_block): Delete function.
5257 (get_frame_block): Use get_frame_address_in_block.
5258 (block_innermost_frame): Ditto.
5259 * stack.c (print_frame, backtrace_command_1): Ditto.
5260
8edd5d01
AC
5261 * frame.h (get_frame_address_in_block): Declare.
5262 (frame_unwind_address_in_block): Declare.
5263 * frame.c (frame_unwind_address_in_block): New function.
5264 (get_frame_address_in_block): New function.
5265
f7968451
AC
52662003-07-10 Andrew Cagney <cagney@redhat.com>
5267
5268 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5269 pre-default. Note: re-generate has no effect.
a8f4cde1 5270
ae99b398
AC
52712003-07-10 Andrew Cagney <cagney@redhat.com>
5272
5273 * gdbarch.sh: When a variable, but not a function, compare against
5274 0. Fix problem in previous patch.
5275 * gdbarch.c: Re-generate.
a8f4cde1 5276
956ac328
AC
52772003-07-10 Andrew Cagney <cagney@redhat.com>
5278
5279 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5280 functions against NULL, not 0.
5281 * gdbarch.c: Re-generate.
a8f4cde1 5282
287c3240
FF
52832003-07-10 Fred Fish <fnf@ninemoons.com>
5284
5285 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5286 null string instead of a null pointer.
5287 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5288
32f63c4b
MS
52892003-07-09 Michael Snyder <msnyder@redhat.com>
5290
5291 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5292
402ecd56
MK
52932003-07-09 Mark Kettenis <kettenis@gnu.org>
5294
5295 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5296 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5297 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5298 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5299 * x86-64-tdep.c: ... from here.
5300
c481dac7
AS
53012003-07-09 Andreas Schwab <schwab@suse.de>
5302
5303 * m68k-tdep.h (enum struct_return): Define.
5304 (struct gdbarch_tdep): Add struct_return.
5305 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5306 bytes are padded to the right, not to the left. Pass struct value
5307 address in register %a1, not on stack.
5308 (m68k_use_struct_convention): New function.
5309 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5310 struct_return in tdep to pcc_struct_return.
5311 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5312 reg_struct_return.
5313
a8f4cde1 53142003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5315
a8f4cde1 5316 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5317
96a4ee76
AC
53182003-07-09 Andrew Cagney <cagney@redhat.com>
5319
5320 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5321 Add comments about the checks.
5322
1517c6d1
AC
53232003-07-08 Andrew Cagney <cagney@redhat.com>
5324
5325 * Makefile.in: Make dependency section headers consistent.
5326 (config_h): Move to $BUILD headers section.
5327 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5328 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5329 (ada-exp.tab.c): Move to YACC/LEX section.
5330 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5331 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5332
dc5dd1eb
KW
53332003-07-08 Kris Warkentin <kewarken@qnx.com>
5334
5335 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5336 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5337 of strerror with safe_strerror, use ISO C function definitions,
5338 and replace instances of sprintf with snprintf.
dc5dd1eb 5339
612dde91
AC
53402003-07-07 Andrew Cagney <cagney@redhat.com>
5341
5342 * frame.c (get_prev_frame): Enable check for identical frames.
5343 Update comments. Update error messages.
5344
492c11d3
JB
53452003-07-07 Joel Brobecker <brobecker@gnat.com>
5346
5347 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5348
376a5a49
JB
53492003-07-07 Joel Brobecker <brobecker@gnat.com>
5350
5351 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5352 sort_symtab_syms, no longer necessary.
5353
22b4a9ad
JB
53542003-07-07 Joel Brobecker <brobecker@gnat.com>
5355
5356 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5357
5bbcb741
JB
53582003-07-07 Joel Brobecker <brobecker@gnat.com>
5359
5360 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5361 (mips_register_byte): Likewise.
5362
c139e7d9
DJ
53632003-07-07 Daniel Jacobowitz <drow@mvista.com>
5364
5365 * Makefile.in (sparc_tdep_h): New.
5366 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5367 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5368 * sparc-linux-nat.c: Include "sparc-tdep.h".
5369 * sparc-nat.c: Likewise.
5370 * sparc-tdep.c: Likewise.
5371 * sparc64nbsd-nat.c: Likewise.
5372 * sparcnbsd-nat.c: Likewise.
5373 * sparcnbsd-tdep.c: Likewise.
5374 * sparc-tdep.h: New file.
5375 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5376 and sparc_npc_regnum.
5377
fd8f87c5
DJ
53782003-07-07 Daniel Jacobowitz <drow@mvista.com>
5379
5380 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5381 (mips_linux_cannot_store_register): List supported instead of
5382 unsupported registers.
5383
13adf674
DJ
53842003-07-07 Daniel Jacobowitz <drow@mvista.com>
5385
5386 * disasm.c (dump_insns): Separate instructions from addresses.
5387
8de307e0
AS
53882003-07-07 Andreas Schwab <schwab@suse.de>
5389
5390 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5391 dependencies.
5392 * m68k-tdep.c (NUM_FREGS): Delete.
5393 (SIG_PC_FP_OFFSET): Delete.
5394 (TARGET_M68K): Delete.
5395 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5396 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5397 P_MOVEL_SP, P_MOVEML_SP): Define.
5398 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5399 P_TRAP): Delete.
5400 (m68k_register_raw_size): Delete.
5401 (m68k_register_virtual_size): Delete.
5402 (m68k_register_type): Renamed from m68k_register_virtual_type and
5403 add gdbarch argument.
5404 (m68k_store_struct_return): Delete.
5405 (m68k_deprecated_extract_return_value): Delete.
5406 (m68k_deprecated_extract_struct_value_address): Delete.
5407 (m68k_frame_chain): Delete.
5408 (m68k_frame_saved_pc): Delete.
5409 (m68k_fix_call_dummy): Delete.
5410 (m68k_push_dummy_frame): Delete.
5411 (m68k_pop_frame): Delete.
5412 (m68k_extract_return_value): New function.
5413 (m68k_store_return_value): Rewrite using regcache.
5414 (m68k_extract_struct_value_address): Rewrite using regcache.
5415 (m68k_push_dummy_call): New function.
5416 (struct m68k_frame_cache): Define.
5417 (m68k_alloc_frame_cache): New function.
5418 (m68k_analyze_frame_setup): New function.
5419 (m68k_analyze_register_saves): New function.
5420 (m68k_analyze_prologue): New function.
5421 (m68k_skip_prologue): Rewrite using above functions.
5422 (m68k_unwind_pc): New function.
5423 (m68k_frame_cache): New function.
5424 (m68k_frame_this_id): New function.
5425 (m68k_frame_prev_register): New function.
5426 (m68k_frame_unwind): New variable.
5427 (m68k_frame_p): New function.
5428 (m68k_sigtramp_frame_cache): New function.
5429 (m68k_sigtramp_frame_this_id): New function.
5430 (m68k_sigtramp_frame_prev_register): New function.
5431 (m68k_sigtramp_frame_unwind): New variable.
5432 (m68k_sigtramp_frame_p): New function.
5433 (m68k_frame_base_address): New function.
5434 (m68k_frame_base): New function.
5435 (m68k_unwind_dummy_id): New function.
5436 (fill_gregset): Use regcache_collect.
5437 (fill_fpregset): Likewise.
5438 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5439 defined.
5440 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5441 deprecated_init_frame_pc, deprecated_store_struct_return,
5442 deprecated_extract_return_value, deprecated_store_return_value,
5443 deprecated_frame_chain, deprecated_frame_saved_pc,
5444 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5445 deprecated_register_virtual_size,
5446 deprecated_max_register_raw_size,
5447 deprecated_max_register_virtual_size,
5448 deprecated_register_virtual_type, deprecated_register_size,
5449 deprecated_register_byte, deprecated_register_bytes,
5450 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5451 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5452 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5453 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5454 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5455 deprecated_push_dummy_frame, deprecated_pop_frame,
5456 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5457 only if SYSCALL_TRAP is defined. Set extract_return_value,
5458 store_return_value, extract_struct_value_address, register_type,
5459 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5460 predicates.
5461 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5462 M68K_MAX_REGISTER_SIZE): Define.
5463 (struct m68k_sigtramp_info): Define.
5464 (struct gdbarch_tdep): Add get_sigtramp_info.
5465 * m68klinux-nat.c (fetch_register): Use register_size instead of
5466 REGISTER_RAW_SIZE. Don't put assignment in if.
5467 (store_register): Likewise.
5468 (fetch_inferior_registers): Likewise.
5469 (store_inferior_registers): Likewise.
5470 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5471 (m68k_linux_frame_saved_pc): Delete.
5472 (m68k_linux_sigcontext_reg_offset,
5473 m68k_linux_ucontext_reg_offset): Define.
5474 (m68k_linux_get_sigtramp_info): New function.
5475 (m68k_linux_extract_return_value): Rewrite using regcache.
5476 (m68k_linux_store_return_value): Likewise.
5477 (m68k_linux_extract_struct_value_address): Likewise.
5478 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5479 Don't set deprecated_frame_saved_pc,
5480 deprecated_extract_return_value, deprecated_store_return_value,
5481 deprecated_extract_struct_value_address. Set
5482 extract_return_value, store_return_value,
5483 extract_struct_value_address.
5484
eb8bc282
AC
54852003-07-07 Andrew Cagney <cagney@redhat.com>
5486
5487 * expprint.c: Include "user-regs.h" instead of "frame.h".
5488 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5489 frame_map_regnum_to_name.
5490 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5491 (frame_map_name_to_regnum): Simplify, call
5492 user_reg_map_name_to_regnum.
5493 (frame_map_regnum_to_name): Simplify, call
5494 user_reg_map_regnum_to_name.
5495 (frame_register_unwind): Update.
5496 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5497 (_initialize_frame_reg): Call user_reg_add_builtin.
5498 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5499 (value_of_register): Use value_of_user_reg.
5500 * eval.c (evaluate_subexp_standard): Update.
5501 * parse.c (write_dollar_variable): Update.
5502 * d10v-tdep.c (d10v_print_registers_info): Update.
5503 * infcmd.c (registers_info): Update.
5504 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5505 (builtin_regs_h): Delete macro.
5506 (user_regs_h): Define.
5507 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5508 (builtin-regs.o): Delete target.
5509 (user-regs.o): Specify dependencies.
5510 (expprint.o): Update dependencies.
5511 (findvar.o): Update dependencies.
5512 (frame.o): Update dependencies.
5513 (std-regs.o): Update dependencies.
5514
9f476a01
CF
55152003-07-06 Christopher Faylor <cgf@redhat.com>
5516
5517 * win32-nat.c (solib_symbols_add): Use one variable for all section
5518 address stuff. Pass variable rather than address of variable to
5519 safe_symbol_file_add.
5520
a731b831
AS
55212003-07-06 Andreas Schwab <schwab@suse.de>
5522
5523 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5524
9f83329d
JB
55252003-07-04 Joel Brobecker <brobecker@gnat.com>
5526
5527 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5528
27e28cc5
KW
55292003-07-04 Kris Warkentin <kewarken@qnx.com>
5530
5531 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5532
55332003-07-04 Kris Warkentin <kewarken@qnx.com>
5534
5535 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5536 * config/i386/nto.mh: New file.
5537 * config/i386/nm-nto.h: New file.
5538 * configure.host: Add i[3456]86-*-nto*.
5539
100f2e98
JB
55402003-07-03 Joel Brobecker <brobecker@gnat.com>
5541
5542 * remote-vx.c (vx_add_symbols): Fix compilation error.
5543
e23457df
AC
55442003-07-03 Andrew Cagney <cagney@redhat.com>
5545
5546 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5547 * gdbarch.h, gdbarch.c: Re-generate.
5548 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5549 (legacy_register_name): Declare.
5550 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5551 (REGISTER_NAME): Define.
5552 * sparc-tdep.c (legacy_register_name): New function.
5553 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5554 (REGISTER_NAME): Define.
5555 (hppa64_register_name): Declare.
5556 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5557 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5558 (hppa64_register_name): New function.
5559 (hppa_register_name): New function.
5560 * arch-utils.c (legacy_register_name): Delete.
5561 * arch-utils.h (legacy_register_name): Delete.
5562
38caaeec
DJ
55632003-07-03 Daniel Jacobowitz <drow@mvista.com>
5564
5565 * cli/cli-interp.c (cli_interpreter_resume): Update the
5566 cli_uiout's stream to gdb_stdout.
5567
dadd712e
AC
55682003-07-03 Andrew Cagney <cagney@redhat.com>
5569
5570 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5571 predicate.
5572 * gdbarch.h, gdbarch.c: Re-generate.
5573 * regcache.c (init_regcache_descr): Use legacy code when either
5574 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5575
c7f1390e
DJ
55762003-07-02 Daniel Jacobowitz <drow@mvista.com>
5577
5578 * NEWS: Move "set logging" entry into GDB 6.0 section.
5579
4bc8c588
JB
55802003-07-02 Jim Blandy <jimb@redhat.com>
5581
a9dd42f1
JB
5582 * s390-tdep.c (struct frame_extra_info): new member:
5583 'stack_bought_valid'.
5584 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5585 initialize fextra_info->stack_bought.
5586 (s390_frameless_function_invocation): Don't trust the value of
5587 fextra_info_ptr->stack_bought unless
5588 fextra_info->stack_bought_valid is set.
5589
4bc8c588
JB
5590 New S390 prologue analyzer.
5591 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5592 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5593 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5594 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5595 compute_x_addr, s390_on_stack, s390_store,
5596 s390_get_signal_frame_info): New functions.
5597 (S390_NUM_SPILL_SLOTS): New macro.
5598 (s390_get_frame_info): Rewritten.
5599 (is_arg_reg): Deleted.
5600
5601 Break out the decoding of S/390 instructions into separate
5602 functions, to make it more legible, and easier to check
5603 against the spec.
5604 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5605 is_rx, is_rxe): New functions.
5606 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5607 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5608 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5609 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5610 enums for opcode values. (Is this an improvement?)
5611
fd13a04a
AC
56122003-07-02 Andrew Cagney <cagney@redhat.com>
5613
5614 * i386-tdep.c: Revert change committed as part of trad-frame code
5615 below.
5616
3f8091c1
DJ
56172003-07-02 Daniel Jacobowitz <drow@mvista.com>
5618
5619 * breakpoint.c (insert_catchpoint): Make static.
5620
8dd5115e
AS
56212003-07-02 Andreas Schwab <schwab@suse.de>
5622
5623 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5624 former ia64_push_arguments and ia64_push_return_address, and use
5625 regcache functions instead of read/write_register.
5626 (ia64_gdbarch_init): Set push_dummy_call instead of
5627 deprecated_push_arguments and deprecated_push_return_address.
5628
a2229c23
AJ
56292003-07-01 Andreas Jaeger <aj@suse.de>
5630
5631 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5632 before the call.
5633 Set %rax only to number of SSE registers used.
5634
3b3850e8
AC
56352003-07-01 Andrew Cagney <cagney@redhat.com>
5636
5637 * trad-frame.h: Update comments, a -1 .addr is reserved.
5638 (trad_frame_value_p, trad_frame_addr_p): Declare.
5639 (trad_frame_reg_p): Declare.
5640 (trad_frame_set_value): Rename trad_frame_register_value.
5641 (trad_frame_set_unknown): Declare.
5642 * trad-frame.c (trad_frame_realreg_p): New function.
5643 (trad_frame_addr_p, trad_frame_value_p): New function.
5644 (trad_frame_set_unknown): New function.
5645 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5646 (trad_frame_prev_register): Use trad_frame_realreg_p,
5647 trad_frame_addr_p and trad_frame_value_p.
5648 (trad_frame_set_value): Rename trad_frame_register_value.
5649 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5650 and trad_frame_set_value.
a2229c23 5651
4d819d0e
JB
56522003-06-30 Jim Blandy <jimb@redhat.com>
5653
5654 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5655 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5656 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5657 for 16 registers, and then 32 more bytes.
5658 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5659 New macros.
5660 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5661 Move up in the file, since it's now used by is_simple_arg.
5662 (is_simple_arg): Don't assume registers are four bytes long.
5663 Exclude all double arguments. Extended floats are not simple
5664 args.
5665 (is_power_of_two): New function.
5666 (pass_by_copy_ref): Call is_power_of_two, and check that the
5667 length fits in a register, rather than listing all the acceptable
5668 sizes. Extended floats are not passed by reference.
5669 (s390_push_arguments): Don't assume registers are four bytes long.
5670 Reserve an argument register to point to the buffer for structures
5671 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5672 S390_STACK_FRAME_OVERHEAD.
5673
1ad828f1
AS
56742003-06-30 Andreas Schwab <schwab@suse.de>
5675
5676 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5677 format error message.
5678
39b00981
JB
56792003-06-30 Joel Brobecker <brobecker@gnat.com>
5680
5681 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5682
b2a7f303
DC
56832003-06-30 David Carlton <carlton@kealia.com>
5684
5685 Band-aid for PR c++/1245.
5686 * Makefile.in (cp-support.o): Depend on complaints_h.
5687 * cp-support.c: Include complaints.h. Add declaration for
5688 find_last_component.
5689 (cp_find_first_component): Separate code into
5690 cp_find_first_component_aux.
5691 (cp_find_first_component_aux): Call demangled_name_complaint.
5692 (demangled_name_complaint): New.
5693
a257b5bb
AC
56942003-06-30 Andrew Cagney <cagney@redhat.com>
5695
5696 * remote.c (remote_write_bytes): Explicitly compute and then use
5697 the payload size. Update comments to reflect. Fixes problem of
5698 GDB not sending small packets as found by Fred Fish.
5699
0a2cfde4
AC
57002003-06-30 Andrew Cagney <cagney@redhat.com>
5701
5702 * remote.c (remote_async_wait): Fix -Wformat problem.
5703
3fcb8548
AC
57042003-06-29 Andrew Cagney <cagney@redhat.com>
5705
5706 * remote.c (remote_wait): Call error, and not warning, when the
5707 packet is corrupt.
5708 (remote_async_wait): Ditto.
5709
9f9970a3
DJ
57102003-06-29 Daniel Jacobowitz <drow@mvista.com>
5711
5712 * sparc-tdep.c (sparc_y_regnum): Make external again.
5713
83a8ccca
DJ
57142003-06-29 Daniel Jacobowitz <drow@mvista.com>
5715
5716 * cli/cli-logging.c (pop_output_files): Add void to function
5717 definition.
5718
d2cf594a
AC
57192003-06-29 Andrew Cagney <cagney@redhat.com>
5720
5721 * frame.c (frame_register_unwind): Use unsigned char when dumping
5722 the buffer contents.
5723
0fac0b41
DJ
57242003-06-28 Daniel Jacobowitz <drow@mvista.com>
5725
5726 * cli/cli-logging.c: New file.
5727 * cli-out.c (struct ui_out_data): Add original_stream.
5728 (cli_redirect): New function.
5729 (cli_ui_out_impl): Add cli_redirect.
5730 (cli_out_new): Initialize original_stream.
5731 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5732 (uo_redirect, ui_out_redirect): New.
5733 * ui-out.h (struct ui_out_impl): Add redirect member.
5734 (redirect_ftype): New.
5735 (ui_out_redirect): Add prototype.
5736 * Makefile.in: Add rules for cli-logging.c.
5737 * NEWS: Mention "set logging".
5738
88a07d7c
EZ
57392003-06-27 Elena Zannoni <ezannoni@redhat.com>
5740
5741 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5742
4eb58876
AC
57432003-06-27 Andrew Cagney <cagney@redhat.com>
5744
5745 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5746 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5747 * avr-tdep.c (avr_call_dummy_address): Delete function.
5748 (avr_gdbarch_init): Do not set call_dummy_address.
5749
1549f619
EZ
57502003-06-27 Elena Zannoni <ezannoni@redhat.com>
5751
5752 * symfile.c (syms_from_objfile): Move variables to inner block.
5753 Move the checks for the non-mainline case a bit earlier to avoid
5754 doing some useless computations.
5755
3cb3398d
EZ
57562003-06-27 Elena Zannoni <ezannoni@redhat.com>
5757
5758 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5759
3799ccc6
EZ
57602003-06-26 Elena Zannoni <ezannoni@redhat.com>
5761
5762 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5763 sections.
5764
ce1f6491
MC
57652003-06-26 Michael Chastain <mec@shout.net>
5766
5767 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5768 gdb/testsuite/gdb.c++/pr-1210.exp.
5769
d958dfd0
AC
57702003-06-26 Andrew Cagney <cagney@redhat.com>
5771
5772 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5773 altivec_expression.h and altivec_registers.h.
5774
d31431ed
AC
57752003-06-26 Andrew Cagney <cagney@redhat.com>
5776
5777 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5778 info->mach when MIPS16. Patch suggested by Fred Fish.
5779
714b1282
AC
57802003-06-26 Andrew Cagney <cagney@redhat.com>
5781
5782 * utils.c (internal_vproblem): Print the problem to a reason
5783 buffer and then pass to query. Make the msg variable more local.
5784
42efa47a
AC
57852003-06-26 Andrew Cagney <cagney@redhat.com>
5786
5787 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5788 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5789 * gdbarch.h, gdbarch.c: Re-generate.
5790 * frame-base.c (default_frame_args_address): Update. Use
5791 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5792 not available.
5793 (default_frame_locals_address): Ditto for
5794 DEPRECATED_FRAME_LOCALS_ADDRESS.
5795 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5796 (vax_frame_num_args): Update.
5797 (vax_gdbarch_init): Update.
5798 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5799 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5800 * mcore-tdep.c (mcore_gdbarch_init): Update.
5801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5802 * ia64-tdep.c (ia64_gdbarch_init): Update.
5803 * symtab.h (address_class): Update comments.
5804 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5805 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5806 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5807 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5808 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5809 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5810 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5811 * alpha-mdebug-tdep.c: Update.
5812 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5813
8ffd9b1b
AJ
58142003-06-26 Andreas Jaeger <aj@suse.de>
5815
5816 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5817 of SSE registers so that varargs functions work. Rework handling
5818 of passing arguments on the stack.
5819 (x86_64_store_return_value): Return double and float values in SSE
5820 register.
5821
e8ac10a6
MC
58222003-06-24 Michael Chastain <mec@shout.net>
5823
5824 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5825 the "constructor breakpoints ignored" bug.
5826
986af8e6
DC
58272003-06-25 David Carlton <carlton@kealia.com>
5828
5829 * MAINTAINERS: Update e-mail address.
5830
d64558a5
JB
58312003-06-24 Jim Blandy <jimb@redhat.com>
5832
e538d2d7
JB
5833 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5834
02631ec0
JB
5835 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5836 function.
5837 (ppc_linux_init_abi): Register it as the
5838 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5839
e716d87a
JB
5840 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5841 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5842 method.
5843
d64558a5
JB
5844 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5845 (ppc64_standard_linkage_target): Use it.
5846
449a5da4
AC
58472003-06-23 Andrew Cagney <cagney@redhat.com>
5848
5849 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5850 for 0 "int0" and 4 "int32" sized registers.
5851 * gdbtypes.c (builtin_type_int0): Define.
5852 (build_gdbtypes): Initialize builtin_type_int0.
5853 * gdbtypes.h (builtin_type_int0): Declare.
5854
b2a02dda
SC
58552003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5856
5857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5858 as characters are unsigned.
5859
fba3138e
DJ
58602003-06-22 Daniel Jacobowitz <drow@mvista.com>
5861
5862 PR gdb/1179
5863 * dwarfread.c (struct_type): Skip static fields without crashing.
5864
f6c8180b
AC
58652003-06-22 Andrew Cagney <cagney@redhat.com>
5866
5867 GDB 6.0 branch created.
f2c06f52
AC
5868 * README: Update.
5869 * PROBLEMS: Update. Empty.
5870 * NEWS: Update.
f6c8180b 5871
ae822768
DJ
58722003-06-22 Daniel Jacobowitz <drow@mvista.com>
5873
5874 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5875 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5876
261de166
AC
58772003-06-22 Andrew Cagney <cagney@redhat.com>
5878
5879 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5880 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5881 Velikov.
5882
30e94205
DJ
58832003-06-22 Daniel Jacobowitz <drow@mvista.com>
5884
5885 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5886 compilers.
5887
9e14d721
DJ
58882003-06-21 Daniel Jacobowitz <drow@mvista.com>
5889
5890 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5891 argument of val_print.
5892 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5893 to the address argument of baseclass_offset or target_read_memory.
5894 Do add it to the argument of cp_print_value_fields.
5895
a4b8ebc8
AC
58962003-06-21 Andrew Cagney <cagney@redhat.com>
5897
5898 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5899 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5900 instead of 0..NUM_REGS.
5901 (mips_register_reggroup_p): New function.
5902 (mips_pseudo_register_write): New function.
5903 (mips_pseudo_register_read): New function.
5904 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5905 based on the register's type.
5906 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5907 cooked.
5908 (mips_get_saved_register): Simplify. Assert that REGNO is a
5909 pseudo / cooked.
5910 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5911 (mips_register_type): Replace mips_register_virtual_type. Map
5912 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5913 when available.
5914 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5915 that the register is cooked / virtual.
5916 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5917 Only get the extra info when needed.
5918 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5919 (mips32_heuristic_proc_desc): Fetch the cooked register.
5920 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5921 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5922 (mips_print_register): Use gdbarch_register_type, instead of
5923 REGISTER_VIRTUAL_TYPE.
5924 (print_gp_register_row): Use gdbarch_register_type, instead of
5925 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5926 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5927 Print the pseudo / cooked registers.
5928 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5929 Print the pseudo / cooked registers.
5930 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5931 REG_NUM is pseudo / cooked.
5932 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5933 (mips_n32n64_xfer_return_value): Ditto.
5934 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5935 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5936 (mips_register_sim_regno): New function.
5937 (mips_gdbarch_init): Set deprecated_register_byte,
5938 register_group_p, pseudo_register_write, pseudo_register_read,
5939 register_sim_regno, and num_pseudo_regs. Set register_type,
5940 instead of register_virtual_type.
5941 * Makefile.in (mips-tdep.o): Update dependencies.
5942 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5943 REGISTER_VIRTUAL_TYPE.
5944 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5945 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5946 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5947 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5948 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5949
325ed089
DJ
59502003-06-21 Daniel Jacobowitz <drow@mvista.com>
5951
5952 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5953 * cli/cli-cmds.c: Include "gdb_vfork.h".
5954 (shell_escape): Use vfork.
5955
f0e7d0e8
AC
59562003-06-21 Andrew Cagney <cagney@redhat.com>
5957
c57bb9fa
AC
5958 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5959 32 bit floating-point register saves.
5960
6e51443a
AC
5961 * frame.h (deprecated_unwind_get_saved_register): Delete.
5962 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5963 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5964 and deprecated_get_next_frame_hack instead of
5965 deprecated_unwind_get_saved_register.
5966
ed183c7c
AC
5967 * mips-tdep.c (mips_dump_tdep): Do not print
5968 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5969
f0e7d0e8
AC
5970 * frame.c (get_frame_register): New function.
5971 (frame_unwind_register_signed): New function.
5972 (get_frame_register_signed): New function.
5973 (frame_unwind_register_unsigned): New function.
5974 (get_frame_register_unsigned): New function.
5975 * frame.h: Add comments on naming schema.
5976 (get_frame_register, frame_unwind_register_signed): Declare.
5977 (get_frame_register_signed, get_frame_register_signed): Declare.
5978 (frame_unwind_register_unsigned): Declare.
5979 (get_frame_register_unsigned): Declare.
5980
2224d941
TR
59812003-06-20 Theodore A. Roth <troth@openavr.org>
5982
5983 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5984
8619218d
TR
59852003-06-20 Theodore A. Roth <troth@openavr.org>
5986
5987 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5988 (avr_read_sp): Ditto.
5989
0b1b50c0
DJ
59902003-06-20 Daniel Jacobowitz <drow@mvista.com>
5991
5992 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5993 * config/arm/nm-linux.h: Likewise.
5994 * config/arm/tm-linux.h: Likewise.
5995 * config/ia64/nm-linux.h: Likewise.
5996 * config/ia64/tm-ia64.h: Likewise.
5997 * config/s390/tm-linux.h: Likewise.
5998 * config/s390/tm-s390.h: Likewise.
5999 * s390-nat.c: Likewise.
6000 * s390-tdep.c: Likewise.
6001
6002 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6003 * config/ia64/linux.mt: Likewise.
6004 * config/m68k/linux.mh: Likewise.
6005 * config/mips/linux.mt: Likewise.
6006 * config/powerpc/linux.mh: Likewise.
6007 * config/sh/linux.mt: Likewise.
6008
c8c18e65
KW
60092003-06-19 Kris Warkentin <kewarken@qnx.com>
6010
6011 * solib.c (solib_open): Change tests for whether to search
6012 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6013 comments.
6014
dcccef2e
TR
60152003-06-19 Theodore A. Roth <troth@openavr.org>
6016
6017 * avr-tdep.c (avr_frame_address): Delete function.
6018 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6019 set_gdbarch_frame_args_address.
6020
5861a190
AC
60212003-06-19 Andrew Cagney <cagney@redhat.com>
6022
6023 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6024 (REGISTER_CONVERT_FROM_TYPE): Delete.
6025 (mips_register_convert_to_type): Delete declaration.
6026 (mips_register_convert_from_type): Delete declaration.
6027 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6028 kernel/.
6029
0274a8ce
MS
60302003-06-19 Michael Snyder <msnyder@redhat.com>
6031
6032 * linux-nat.h: New file.
6033 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6034 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6035 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6036 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6037 (linux_make_note_section): Iterate over lwps instead of threads.
6038 (linux_do_thread_registers): Use lwp instead of merged pid.
6039 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6040 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6041 Add dependency on linux_nat_h.
6042
adf5f719
TR
60432003-06-19 Theodore A. Roth <troth@openavr.org>
6044
6045 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6046
6766a268
DJ
60472003-06-19 Daniel Jacobowitz <drow@mvista.com>
6048
6049 * varobj.c (get_type, get_target_type): Use check_typedef.
6050
1171114a
DJ
60512003-06-19 Daniel Jacobowitz <drow@mvista.com>
6052
6053 * breakpoint.c (insert_catchpoint): Call internal_error.
6054
adcf68a2
TR
60552003-06-19 Theodore A. Roth <troth@openavr.org>
6056
6057 * avr-tdep.c (avr_push_dummy_code): Delete function.
6058 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6059
ea67f13b
DJ
60602003-06-19 Daniel Jacobowitz <drow@mvista.com>
6061
6062 * arch-utils.c (default_prepare_to_proceed): Remove.
6063 (generic_prepare_to_proceed): Remove.
6064 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6065 (generic_prepare_to_proceed): Remove prototype.
6066 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6067 * gdbarch.c: Regenerate.
6068 * gdbarch.h: Regenerate.
6069 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6070 * hppah-nat.c (hppa_switched_threads): Remove.
6071 * infrun.c (prepare_to_proceed): New static function, copied from
6072 generic_prepare_to_proceed. Remove select_it argument.
6073 (proceed): Call prepare_to_proceed.
6074 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6075 variables.
6076 (ptrace_wait): Don't set the removed variables.
6077 (hppa_switched_threads): Remove.
6078 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6079 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6080 (lin_lwp_prepare_to_proceed): Remove prototype.
6081 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6082 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6083
4add8633
TR
60842003-06-18 Theodore A. Roth <troth@openavr.org>
6085
6086 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6087 trad-frame.h.
6088 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6089 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6090 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6091 (AVR_PROLOGUE_*): Enumerate prologue types.
6092 (struct frame_extra_info): Remove.
6093 (struct avr_unwind_cache): Define.
6094 (avr_write_sp): Delete function.
6095 (avr_read_fp): Ditto.
6096 (avr_init_extra_frame_info): Ditto.
6097 (avr_pop_frame): Ditto.
6098 (avr_frame_saved_pc): Ditto.
6099 (avr_saved_pc_after_call): Ditto.
6100 (avr_push_return_address): Ditto.
6101 (avr_frame_chain): Ditto.
6102 (avr_store_struct_return): Ditto.
6103 (avr_push_arguments): Ditto.
6104 (avr_scan_prologue): Update comments. Changed to set up the info for
6105 cache unwinding. Now returns end of prologue PC.
6106 (avr_skip_prologue): Better handling of functions lacking a prologue
6107 by using avr_scan_prologue.
6108 (avr_scan_arg_moves): New function.
6109 (avr_saved_regs_unwinder): Ditto.
6110 (avr_frame_unwind_cache): Ditto.
6111 (avr_unwind_pc): Ditto.
6112 (avr_frame_this_id): Ditto.
6113 (avr_frame_prev_register): Ditto.
6114 (avr_frame_p): Ditto.
6115 (avr_frame_base_address ): Ditto.
6116 (avr_unwind_dummy_id): Ditto.
6117 (avr_push_dummy_code): Ditto.
6118 (push_stack_item): Ditto.
6119 (pop_stack_item): Ditto.
6120 (avr_push_dummy_call): Ditto.
6121 (struct stack_item): Define.
6122 (avr_frame_unwind): Declare structure.
6123 (avr_frame_base): Ditto.
6124 (avr_gdbarch_init): Remove calls to
6125 set_gdbarch_deprecated_init_frame_pc,
6126 set_gdbarch_deprecated_target_read_fp,
6127 set_gdbarch_deprecated_dummy_write_sp,
6128 set_gdbarch_deprecated_fp_regnum,
6129 set_gdbarch_deprecated_push_arguments,
6130 set_gdbarch_deprecated_push_return_address,
6131 set_gdbarch_deprecated_pop_frame,
6132 set_gdbarch_deprecated_store_struct_return,
6133 set_gdbarch_deprecated_frame_init_saved_regs,
6134 set_gdbarch_deprecated_init_extra_frame_info,
6135 set_gdbarch_deprecated_frame_chain,
6136 set_gdbarch_deprecated_frame_saved_pc,
6137 set_gdbarch_deprecated_saved_pc_after_call.
6138 Add calls to set_gdbarch_push_dummy_call,
6139 set_gdbarch_push_dummy_code,
6140 frame_unwind_append_predicate,
6141 frame_base_set_default,
6142 set_gdbarch_unwind_dummy_id,
6143 set_gdbarch_unwind_pc.
6144 Wrap a long line.
6145
7be04a68
MS
61462003-06-18 Corinna Vinschen <vinschen@redhat.com>
6147
6148 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6149 registers for H8/300S.
6150 (h8300_print_registers_info): Ditto.
8ffd9b1b 6151 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6152
ae087d01
DJ
61532003-06-18 Daniel Jacobowitz <drow@mvista.com>
6154
6155 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6156 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6157 (lin_lwp_wait): Likewise. Update comments.
6158 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6159 (pull_pid_from_list, linux_record_stopped_pid): New.
6160
07d8f827
SC
61612003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6162
6163 * ada-lang.c (scan_discrim_bound): Name first argument.
6164 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6165 declared by ALL_BLOCK_SYMBOLS.
6166
7cb47b14
SC
61672003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6168
6169 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6170 ("regcache.h"): Include it.
6171 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6172
6ad8ae5c
DJ
61732003-06-17 Daniel Jacobowitz <drow@mvista.com>
6174
6175 * NEWS: Mention gdbserver detach change and "disconnect" command.
6176 * infcmd.c (disconnect_command): New function.
6177 (_initialize_infcmd): Add ``disconnect'' command.
6178 * remote.c (remote_async_detach): Delete.
6179 (remote_detach): Merge remote_async_detach.
6180 (remote_disconnect): New.
6181 (init_remote_ops): Set to_disconnect.
6182 (init_remote_cisco_ops): Likewise.
6183 (init_remote_async_ops): Likewise. Use remote_detach.
6184 * target.c (cleanup_target): Default to_disconnect.
6185 (update_current_target): Inherit to_disconnect.
6186 (target_disconnect, debug_to_disconnect): New functions.
6187 (setup_target_debug): Set to_disconnect.
6188 * target.h (struct target_ops): Add to_disconnect.
6189 (target_disconnect): Add prototype.
6190
687595f9
DJ
61912003-06-17 Daniel Jacobowitz <drow@mvista.com>
6192
6193 * breakpoint.c (insert_catchpoint): New function.
6194 (insert_breakpoints): Use catch_exceptions to call
6195 insert_catchpoint. Disable catchpoints if they fail to insert.
6196
29239a8f
DJ
61972003-06-17 Daniel Jacobowitz <drow@mvista.com>
6198
6199 * symfile.c (reread_symbols): Clear sym_private.
6200
2cdf3c63
AC
62012003-06-17 Andrew Cagney <cagney@redhat.com>
6202
6203 * trad-frame.h (struct frame_info): Add opaque declaration.
6204 * remote-fileio.h (struct cmd_list_element): Add opaque
6205 declaration.
6206 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6207 comments.
6208
cf0e1e0d
DJ
62092003-06-17 Daniel Jacobowitz <drow@mvista.com>
6210
6211 * remote.c (remote_prepare_to_store): Replace call to
6212 deprecated_read_register_bytes with multiple regcache_raw_read
6213 calls.
6214
192cdb19
KW
62152003-06-17 Kris Warkentin <kewarken@qnx.com>
6216
6217 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6218 (nto_find_and_open_solib): Likewise.
6219 (nto_init_solib_absolute_prefix): Likewise.
6220 (_initialize_nto_tdep): Fix indentation.
6221
89929b45
KW
62222003-06-17 Kris Warkentin <kewarken@qnx.com>
6223
6224 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6225
46019f27
KW
62262003-06-17 Kris Warkentin <kewarken@qnx.com>
6227
6228 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6229
1a38736e
JB
62302003-06-17 Jim Blandy <jimb@redhat.com>
6231
6232 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6233
3605c34a
TR
62342003-06-16 Theodore A. Roth <troth@openavr.org>
6235
6236 * avr-tdep.c (avr_extract_return_value): New function.
6237 (avr_gdbarch_init): Set extract_return_value method.
6238
870b3035
AC
62392003-06-16 Andrew Cagney <cagney@redhat.com>
6240
6241 * frame.h (deprecated_get_next_frame_hack): Declare.
6242 * frame.c (legacy_saved_regs_prev_register): Only require
6243 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6244 there are always saved regs.
6245 (deprecated_generic_get_saved_register): Do not require
6246 DEPRECATED_FRAME_INIT_SAVED_REGS.
6247 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6248 use frame ID unwind instead.
6249 (deprecated_get_next_frame_hack): New function.
6250
63d47a7d
CV
62512003-06-16 Corinna Vinschen <vinschen@redhat.com>
6252
6253 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6254 (h8300_push_dummy_call): ...this function. Some minor optimization.
6255 (h8300_push_return_address): Remove.
6256 (h8300_gdbarch_init): Remove calls to
6257 set_gdbarch_deprecated_dummy_write_sp,
6258 set_gdbarch_deprecated_push_arguments and
6259 set_gdbarch_deprecated_push_return_address.
6260 Add call to set_gdbarch_push_dummy_call.
6261
4bb1dc5e
CV
62622003-06-16 Corinna Vinschen <vinschen@redhat.com>
6263
6264 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6265 (E_PSEUDO_EXR_REGNUM): Ditto.
6266 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6267 registers into safe registers.
4bb1dc5e
CV
6268 (h8300_skip_prologue): Check for stm instruction to push registers
6269 used for register variables onto stack.
6270 (gdb_print_insn_h8300): Remove.
6271 (h8300_examine_prologue): Add a comment.
6272 (h8300_register_name): Take pseudo registers into account.
6273 (h8300s_register_name): Ditto.
6274 (h8300sx_register_name): Ditto.
6275 (h8300_print_register): Ditto.
6276 (h8300_print_registers_info): Define "nice" printing order.
6277 (h8300_saved_pc_after_call): Take pseudo registers into account.
6278 (h8300_register_type): Ditto. Return type used for remote connection
6279 when requesting real CCR or EXR register, return actual type when
6280 requesting pseudo CCR or EXR.
6281 (h8300_pseudo_register_read): New function.
6282 (h8300_pseudo_register_write): Ditto.
6283 (h8300_dbg_reg_to_regnum): Ditto.
6284 (h8300s_dbg_reg_to_regnum): Ditto.
6285 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6286 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6287 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6288 set_gdbarch_print_insn architecture dependent.
6289 Call set_gdbarch_pseudo_register_read and
6290 set_gdbarch_pseudo_register_write.
6291 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6292
a59fe496
AC
62932003-06-16 Andrew Cagney <cagney@redhat.com>
6294
6295 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6296 * gdbarch.h, gdbarch.c: Re-generate.
6297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6298 * s390-tdep.c (s390_gdbarch_init): Update.
6299 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6300 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6301 * mips-tdep.c (mips_gdbarch_init): Update.
6302 * mcore-tdep.c (mcore_gdbarch_init): Update.
6303 * cris-tdep.c (cris_gdbarch_init): Update.
6304 * infcall.c (call_function_by_hand): Update.
6305 * ia64-tdep.c (ia64_push_arguments): Update comment.
6306 * frame.c (legacy_get_prev_frame): Do not assume
6307 SAVE_DUMMY_FRAME_TOS_P.
6308 * dummy-frame.c (find_dummy_frame): Update comment.
6309
6f4e5a41
AC
63102003-06-16 Andrew Cagney <cagney@redhat.com>
6311
6312 * regcache.c (do_cooked_read): Do not use register_valid_p.
6313
72fab697
TR
63142003-06-15 Theodore A. Roth <troth@openavr.org>
6315
6316 * avr-tdep.c (avr_register_type): Remove a blank line.
6317 (avr_scan_prologue): Correct some comments.
6318
e3d8b004
TR
63192003-06-15 Theodore A. Roth <troth@openavr.org>
6320
6321 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6322 prologue types.
8ffd9b1b 6323 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6324 option.
6325 Add code to scan -mcall-prologues for mega devices.
6326
866b76ea
TR
63272003-06-15 Theodore A. Roth <troth@openavr.org>
6328
6329 * avr-tdep.c (avr_register_byte): Delete function.
6330 (avr_register_raw_size): Delete function.
6331 (avr_register_virtual_size): Delete function.
6332 (avr_register_virtual_type): Delete function.
6333 (avr_register_type): New function.
6334 (avr_address_to_pointer): Remove unused code.
6335 (avr_read_fp): Need to read FP as two separate bytes due to change to
6336 avr_register_type() usage.
6337 (avr_gdbarch_init): Don't set deprecated_register_size.
6338 Don't set deprecated_register_bytes.
6339 Don't set deprecated_register_byte.
6340 Don't set deprecated_register_raw_size.
6341 Don't set deprecated_max_register_raw_size.
6342 Don't set deprecated_register_virtual_size.
6343 Don't set deprecated_max_register_virtual_size.
6344 Don't set deprecated_register_virtual_type.
6345 Set register_type method.
6346
3993f6b1
DJ
63472003-06-15 Daniel Jacobowitz <drow@mvista.com>
6348
6349 * Makefile.in (linux-nat.o): Add rule.
6350 * linux-nat.c: New file.
6351 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6352 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6353 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6354 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6355 * config/arm/linux.mh (NATDEPFILES): Likewise.
6356 * config/i386/linux.mh (NATDEPFILES): Likewise.
6357 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6358 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6359 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6360 * config/mips/linux.mh (NATDEPFILES): Likewise.
6361 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6362 * config/s390/s390.mh (NATDEPFILES): Likewise.
6363 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6364
786a90bb
MK
63652003-06-15 Mark Kettenis <kettenis@gnu.org>
6366
6367 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6368 replace out-of-date comment.
6369
3bd3f01e
AC
63702003-06-15 Andrew Cagney <cagney@redhat.com>
6371
6372 * rdi-share/host.h (Fail): Change to a varargs function.
6373 * remote-rdi.c (Fail): Update.
8ffd9b1b 6374
de5b9bb9
MK
63752003-06-15 Mark Kettenis <kettenis@gnu.org>
6376
6377 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6378 (i386_convert_register_p, i386_register_to_value,
6379 i386_register_from_value): Handle types longer than 8 bytes.
6380
d532c08f
MK
63812003-06-15 Mark Kettenis <kettenis@gnu.org>
6382
6383 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6384 Move floating-point code to new function in i387-tdep.c.
6385 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6386 New functions containing code moved here from i386-tdep.c.
6387 * i387-tdep.h: Add opaque declaration for `struct type'.
6388 (i387_register_to_value, i387_value_to_register): New prototypes.
6389 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6390 (x86_64_init_abi): Set convert_register_p, register_to_value and
6391 value_to_register here.
8ffd9b1b 6392
42c466d7
AC
63932003-06-14 Andrew Cagney <cagney@redhat.com>
6394
6395 * mips-tdep.c (mips_register_to_value): Make static.
6396 (mips_value_to_register): Make static.
6397 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6398 * ia64-tdep.c (ia64_register_raw_size): Make static.
6399 (ia64_register_virtual_size): Make static.
6400 (ia64_register_byte): Make static.
6401 * i387-tdep.c: Include "i387-tdep.h".
6402 (print_387_control_word): Delete function.
6403 (print_387_status_word): Delete function.
6404 (print_387_status_bits): Delete function.
6405 (print_387_control_bits): Delete function.
6406 * Makefile.in (i387-tdep.o): Update dependencies.
6407 * rdi-share/host.h (Fail): Declare.
6408 * remote-rdi.c (Fail): Update to match declaration.
6409
2a9cda49
AC
64102003-06-14 Andrew Cagney <cagney@redhat.com>
6411
6412 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6413 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6414 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6415 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6416 * README: Delete reference to remote-array.
6417 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6418 (remote-array.o): Delete target.
6419 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6420 * remote-array.c: Delete file.
6421
ff2e87ac
AC
64222003-06-14 Andrew Cagney <cagney@redhat.com>
6423 Mark Kettenis <kettenis@gnu.org>
6424
6425 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6426 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6427 parameter with "frame".
6428 * gdbarch.h, gdbarch.c: Re-generate.
6429 * frame.h (put_frame_register): Declare.
6430 * frame.c (put_frame_register): New function.
6431 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6432 (legacy_register_to_value): Rewrite, use "frame" to get the
6433 register value.
6434 (legacy_value_to_register): Rewrite, use "frame" to find the
6435 register's location before storing.
6436 * arch-utils.h (legacy_convert_register_p): Update.
6437 (legacy_register_to_value, legacy_value_to_register): Update.
6438 * findvar.c (value_from_register): Rewrite, eliminate use of
6439 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6440 "frame" to REGISTER_TO_VALUE.
6441 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6442 lval_reg_frame_relative + lval_register branch of the switch. Do
6443 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6444 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6445 I386_EDI_REGNUM): New defines.
6446 (i386_next_regnum, i386_convert_register_p,
6447 i386_register_to_value, i386_value_to_register): New functions.
6448 (i386_register_convertible, i386_register_convert_to_virtual,
6449 i386_convert_to_raw): Remove functions.
6450 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6451 value_to_register instead of register_convertible,
6452 register_convert_to_virtual and register_convert_to_raw.
6453 * mips-tdep.c (mips_convert_register_p): New function.
6454 (mips_value_to_register): Replace mips_register_convert_from_type.
6455 (mips_register_to_value): Replace mips_register_convert_to_type.
6456 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6457 register_to_value.
6458 * alpha-tdep.c (alpha_convert_register_p): Update.
6459 (alpha_value_to_register): Update, store the register.
6460 (alpha_register_to_value): Update, fetch the register.
6461
98be1e77
TR
64622003-06-14 Theodore A. Roth <troth@openavr.org>
6463
6464 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6465 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6466 Don't set deprecated_call_dummy_words.
6467 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6468 Don't set remote_translate_xfer_address.
6469 (avr_io_reg_read_command): Remove commented out debug printf.
6470 Wrap a long line.
6471
57bc6122
TR
64722003-06-14 Theodore A. Roth <troth@openavr.org>
6473
6474 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6475 causes gdb to seg fault.
6476
eb01fc62
DJ
64772003-06-14 Daniel Jacobowitz <drow@mvista.com>
6478
6479 * sparc-nat.c (fetch_inferior_registers): Correct
6480 a reference to "registers".
6481
3b3e6bee
DJ
64822003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6483
6484 * Makefile.in (exc_request_U_h): Define
6485 (exc_request_S_h): Likewise.
6486 (msg_reply_S_h): Likewise.
6487 (msg_U_h): Likewise.
6488 (notify_S_h): Likewise.
6489 (process_reply_S_h): Likewise.
6490 (gnu-nat.o): Depend on gdb_obstack_h
6491 * gnu-nat.c: Include "gdb_obstack.h".
6492
b8de8283
AC
64932003-06-13 Andrew Cagney <cagney@redhat.com>
6494
6495 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6496 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6497
f3be58bc
AC
64982003-06-13 Andrew Cagney <cagney@redhat.com>
6499
6500 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6501 when deprecated REGISTER macros can be deleted.
6502 * gdbarch.h, gdbarch.c: Re-generate.
6503
4c0122c8
JB
65042003-06-13 Jim Blandy <jimb@redhat.com>
6505
6506 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6507 Linux entry point symbols for _dl_debug_state, too.
6508
3e210248
AC
65092003-06-13 Andrew Cagney <cagney@redhat.com>
6510
6511 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6512 available, do not use the FP register, and always save the TOS.
6513 * dummy-frame.c (dummy_frame_this_id): Do not assert
6514 SAVE_DUMMY_FRAME_TOS.
6515 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6516 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6517 (i386_push_dummy_call): Add 8 to the returned SP.
6518 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6519 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6520 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6521 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6522 (x86_64_push_dummy_call): Return "sp + 16".
6523 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6524 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6525 save_dummy_frame_tos.
6526
0b65af49
JB
65272003-06-13 Jim Blandy <jimb@redhat.com>
6528
6529 * frv-tdep.c (frv_use_struct_convention): Delete static
6530 declaration for function deleted in my change of 2003-06-12.
6531
4ea2465e
TR
65322003-06-13 Theodore A. Roth <troth@openavr.org>
6533
6534 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6535 (avr_pointer_to_address): Shift code addrs left 1 bit.
6536 (avr_convert_from_func_ptr_addr): Delete function since operation is
6537 better handled by avr_address_to_pointer and avr_pointer_to_address.
6538 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6539
1581182a
MK
65402003-06-13 Mark Kettenis <kettenis@gnu.org>
6541
6542 From Kelley Cook <kelleycook@wideopenwest.com>:
6543 * configure.host: Accept i[34567]86 variants.
6544 * configure.tgt: Likewise.
6545 * nlm/configure.in: Likewise.
6546 * nlm/configure: Regenerated.
6547
7aa1783e
RE
65482003-06-13 Richard Earnshaw <rearnsha@arm.com>
6549
6550 * arm-tdep.c (solib-svr4.h): Dont' include it.
6551 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6552 * arm-linux-tdep.c: ... here. Make static.
6553 (arm_linux_init_abi): Register it.
6554 (solib-svr4.h): Include it.
6555 * Makefile.in: Update dependencies.
6556 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6557 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6558
0261a0d0
CV
65592003-06-13 Corinna Vinschen <vinschen@redhat.com>
6560
6561 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6562 indicate registers used for return values.
6563 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6564 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6565 members.
6566 (h8300_init_extra_frame_info): Ditto.
6567 (h8300_frame_locals_address): Removed.
6568 (h8300_frame_args_address): Removed.
6569 (h8300_extract_return_value): Use new regcache structure. Only care
6570 for 16 bit CPUs.
6571 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6572 (h8300_store_return_value): Use new regcache structure. Only care
6573 for 16 bit CPUs.
6574 (h8300h_store_return_value): Same function for 32 bit CPUs.
6575 (h8300_store_struct_return): Removed.
6576 (h8300_extract_struct_value_address): Use new regcache structure.
6577 (h8300h_extract_struct_value_address): Removed.
6578 (h8300_push_dummy_code): New function.
6579 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6580 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6581 set_gdbarch_store_return_value architecture dependent.
6582 Call set_gdbarch_push_dummy_code and
6583 set_gdbarch_extract_struct_value_address.
6584 Remove calls to set_gdbarch_frame_args_address,
6585 set_gdbarch_frame_locals_address,
6586 set_gdbarch_deprecated_store_struct_return,
6587 set_gdbarch_deprecated_extract_return_value,
6588 set_gdbarch_deprecated_extract_struct_value_address,
6589 set_gdbarch_deprecated_call_dummy_words and
6590 set_gdbarch_deprecated_sizeof_call_dummy_words.
6591
055c394a
CV
65922003-06-13 Corinna Vinschen <vinschen@redhat.com>
6593
6594 * h8300-tdep.c (h8300_register_byte): Remove.
6595 (h8300h_register_byte): Remove.
6596 (h8300_register_virtual_type): Remove. Substitute by...
6597 (h8300_register_type): New function.
6598 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6599 (h8300h_extract_struct_value_address): Ditto.
6600 (h8300_gdbarch_init): Drop calls to
6601 set_gdbarch_deprecated_register_byte and
6602 set_gdbarch_deprecated_register_virtual_type.
6603 Add call to set_gdbarch_register_type.
6604
9c04cab7
AC
66052003-06-13 Andrew Cagney <cagney@redhat.com>
6606
6607 * gdbarch.sh: Update comments on registers.
6608 (deprecated_register_byte): Rename register_byte.
6609 (deprecated_register_raw_size): Rename register_raw_size.
6610 (deprecated_register_virtual_size): Rename register_virtual_size.
6611 (deprecated_register_virtual_type): Rename register_virtual_type.
6612 * gdbarch.h, gdbarch.c: Re-generate.
6613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6614 * vax-tdep.c (vax_gdbarch_init): Update.
6615 * v850-tdep.c (v850_gdbarch_init): Update.
6616 * sparc-tdep.c (sparc_gdbarch_init): Update.
6617 * sh-tdep.c (sh_gdbarch_init): Update.
6618 * s390-tdep.c (s390_gdbarch_init): Update.
6619 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6620 * ns32k-tdep.c: Update.
6621 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6622 * mips-tdep.c (mips_gdbarch_init): Update.
6623 * mcore-tdep.c (mcore_gdbarch_init): Update.
6624 * m68k-tdep.c (m68k_gdbarch_init): Update.
6625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6626 * ia64-tdep.c (ia64_gdbarch_init): Update.
6627 * hppa-tdep.c (hppa_gdbarch_init): Update.
6628 * h8300-tdep.c (h8300_gdbarch_init): Update.
6629 * frv-tdep.c (frv_gdbarch_init): Update.
6630 * cris-tdep.c (cris_gdbarch_init): Update.
6631 * avr-tdep.c (avr_gdbarch_init): Update.
6632 * alpha-tdep.c (alpha_gdbarch_init): Update.
6633 * arm-tdep.c (arm_gdbarch_init): Update.
6634
b060cbea
AC
66352003-06-13 Andrew Cagney <cagney@redhat.com>
6636
6637 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6638 mips_o32_use_struct_convention with always_use_struct_convention.
6639
0fc9922a
DC
66402003-06-12 David Carlton <carlton@kealia.com>
6641
6642 * cp-namespace.c (cp_set_block_scope): Comment out
6643 processing_has_namespace_info branch.
6644
1fd35568
JB
66452003-06-12 Jim Blandy <jimb@redhat.com>
6646
f470a70a
JB
6647 Recognize and skip 64-bit PowerPC Linux linkage functions.
6648 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6649 insn_pattern, insns_match_pattern, d_field, ds_field): New
6650 functions, macros, and types for working with PPC instructions.
6651 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6652 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6653 ppc64_skip_trampoline_code): New functions, variables, and macros
6654 for recognizing and skipping linkage functions.
6655 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6656 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6657
49ff75ad
JB
6658 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6659 register offsets for both the 32- and 64-bit interfaces.
6660
bd918c83
JB
6661 Actually finish the job started by my change of 2003-05-29.
6662 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6663 other #definition of this.
6664 (ppc_linux_skip_trampoline_code): Remove declaration.
6665 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6666 static.
6667 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6668 method for GDBARCH.
6669
6670 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6671 'long' on ppc64-*-linux*.
6672
f8c59253
JB
6673 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6674 isn't #defined, assume the register doesn't exist: act as if
6675 tdep->ppc_mq_regnum were -1.
6676
8fbb30b1
JB
6677 * configure.host, configure.tgt: Add entries for
6678 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6679 powerpc/linux.mt.
6680 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6681 New files.
6682
1fd35568
JB
6683 * arch-utils.c (always_use_struct_convention): New function.
6684 * arch-utils.h (always_use_struct_convention): New prototype.
6685 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6686 (alpha_gdbarch_init): Register always_use_struct_convention,
6687 instead of alpha_use_struct_convention.
6688 * cris-tdep.c (cris_use_struct_convention): Delete.
6689 (cris_gdbarch_init): Register always_use_struct_convention,
6690 instead of cris_use_struct_convention.
6691 * frv-tdep.c (frv_use_struct_convention): Delete.
6692 (frv_gdbarch_init): Register always_use_struct_convention,
6693 instead of frv_use_struct_convention.
6694 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6695 (h8300_gdbarch_init): Register always_use_struct_convention,
6696 instead of h8300_use_struct_convention.
e3305dd9 6697 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6698 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6699 instead of mips_o32_use_struct_convention.
6700
e14e6e9c
AC
67012003-06-12 Andrew Cagney <cagney@redhat.com>
6702
6703 * wince.c: Include "mips-tdep.h".
6704 * mips-tdep.h (mips_next_pc): Declare.
6705 * mcore-tdep.c: Make more local functions static.
6706 * Makefile.in (wince.o): Update dependencies.
6707
2335f48e
DC
67082003-06-12 David Carlton <carlton@kealia.com>
6709
6710 * symtab.c (lookup_symbol_aux_minsyms): Replace
6711 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6712 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6713 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6714 SYMBOL_NATURAL_NAME.
6715
f70a7d61
AS
67162003-06-12 Andreas Schwab <schwab@suse.de>
6717
6718 * Makefile.in (tuiDisassem.o): Update dependencies.
6719
b6429628
DC
67202003-06-12 David Carlton <carlton@bactrian.org>
6721
6722 * symtab.h: Delete declaration of make_symbol_overload_list.
6723 Add declaration of lookup_partial_symbol.
6724 * symtab.c (remove_params): Move to cp-support.c.
6725 (overload_list_add_symbol, make_symbol_overload_list)
6726 (sym_return_val_size, sym_return_val_index): Ditto.
6727 (lookup_partial_symbol): Make extern.
6728 * cp-support.h: Add declaration of make_symbol_overload_list.
6729 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6730 symtab.h, and block.h.
6731 (remove_params): Move here from symtab.c.
6732 (overload_list_add_symbol, make_symbol_overload_list)
6733 (sym_return_val_size, sym_return_val_index): Ditto.
6734 * valops.c: Include cp-support.h.
6735 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6736 frame_h, and block_h.
6737 (valops.o): Depend on cp_support_h.
6738
084edea5
CV
67392003-06-12 Corinna Vinschen <vinschen@redhat.com>
6740
6741 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6742 substitute by NUM_REGS throughout.
6743 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6744 (h8300s_register_name): New function for H8S registers.
6745 (h8300sx_register_name): Ditto for H8SX registers.
6746 (h8300_print_register): Revise register printing, avoid depending
6747 on 32 bit long.
0261a0d0 6748 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6749 (h8300h_register_byte): New function for any other architecture.
6750 (h8300_register_raw_size): Remove.
6751 (h8300_register_virtual_type): Revise to return actually useful
6752 type.
6753 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6754 (h8300h_extract_struct_value_address): New function for any other
6755 architecture.
6756 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6757 set_gdbarch_register_name, set_gdbarch_register_byte,
6758 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6759 Remove calls to set_gdbarch_deprecated_register_size,
6760 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6761 set_gdbarch_deprecated_max_register_raw_size,
6762 set_gdbarch_register_virtual_size and
6763 set_gdbarch_deprecated_max_register_virtual_size entirely.
6764 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6765 set_gdbarch_long_double_bit.
6766
06194148
JJ
67672003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6768
8ffd9b1b
AJ
6769 * doublest.c (convert_doublest_to_floatformat): When dealing
6770 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6771 processing a full 32 bits of mantissa.
6772
de4f826b
DC
67732003-06-11 David Carlton <carlton@bactrian.org>
6774
6775 * dictionary.h: New.
6776 * dictionary.c: New.
6777 * block.h: Add opaque declaration for struct dictionary.
6778 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6779 'sym' members.
6780 (BLOCK_DICT): New macro.
6781 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6782 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6783 BLOCK_SHOULD_SORT.
6784 (ALL_BLOCK_SYMBOLS): Update definition.
6785 * Makefile.in (SFILES): Add dictionary.c.
6786 (dictionary_h): New.
6787 (COMMON_OBS): Add dictionary.o.
6788 (dictionary.o): New.
6789 (ada-lang.o): Depend on dictionary_h.
6790 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6791 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6792 (mi-cmd-stack.o): Ditto.
6793 (gdbtk-cmds.o): Update dependencies.
6794 (gdbtk-stack.o): Ditto.
6795 * ada-lang.c: Include dictionary.h.
6796 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6797 (fill_in_ada_prototype, debug_print_block): Ditto.
6798 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6799 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6800 'is_sorted'.
6801 * mdebugread.c: Include dictionary.h.
6802 (struct parse_stack): Delete 'maxsyms' member.
6803 (parse_symbol): Update calls to new_block. Delete calls to
6804 shrink_block. Use dictionary methods.
6805 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6806 Update calls to new_symtab. Don't maintain maxsyms data.
6807 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6808 (add_symbol): Just call dict_add_symbol.
6809 (new_symtab): Delete 'maxsyms' argument.
6810 (new_symtab): Update calls to new_block.
6811 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6812 (shrink_block): Delete function.
6813 (fixup_sigtramp): Update call to new_block. Add symbol via
6814 dict_add_symbol.
6815 * jv-lang.c: Include dictionary.h.
6816 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6817 appropriately. Set class_symtab->free_func. Make sure the
6818 blockvector is big enough to hold two blocks.
6819 (add_class_symtab_symbol): Use dictionary methods.
6820 (free_class_block): New function.
6821 (type_from_class): Replace explicit iteration by
6822 ALL_BLOCK_SYMBOLS.
6823 * symtab.h (struct symtab): Replace 'free_ptr' method by
6824 'free_func'.
6825 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6826 sort_symtab_syms.
6827 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6828 sort_symtab_syms.
6829 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6830 Include dictionary.h.
6831 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6832 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6833 sort_symtab_syms.
6834 * objfiles.c: Include dictionary.h.
6835 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6836 * buildsym.c: Include dictionary.h.
6837 (finish_block): Use dictionary methods.
6838 (end_symtab): Set free_func to NULL, not free_ptr.
6839 * tracepoint.c: Include dictionary.h.
6840 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6841 (scope_info): Ditto.
6842 * stack.c: Include dictionary.h.
6843 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6844 (print_block_frame_labels, print_frame_arg_vars)
6845 (print_frame_args): Ditto.
6846 * symmisc.c (free_symtab_block): Use dictionary methods.
6847 (dump_symtab): Ditto.
6848 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6849 Include dictionary.h.
6850 * symfile.h: Delete declarations of sort_block_syms,
6851 sort_symtab_syms.
6852 * symfile.c (sort_block_syms): Delete.
6853 (sort_symtab_syms): Delete.
6854 * symtab.c: Include dictionary.h.
6855 (lookup_block_symbol): Use dictionary iterators.
6856 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6857 (search_symbols, make_symbol_completion_list): Ditto.
6858 (make_symbol_overload_list): Ditto.
6859 * valops.c (value_of_local): Use dict_empty.
6860 Include dictionary.h.
6861
a31f978c
JB
68622003-06-11 J. Brobecker <brobecker@gnat.com>
6863
6864 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6865
526e70c0
DC
68662003-06-11 David Carlton <carlton@bactrian.org>
6867
6868 * block.h (BLOCK_SHOULD_SORT): Delete.
6869 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6870 blocks.
6871 * ada-lang.c (ada_add_block_symbols): Ditto.
6872 * symfile.c (sort_block_syms): Delete.
6873 (sort_symtab_syms): Ditto.
6874 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6875 declarations.
6876 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6877 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6878 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6879 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6880 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6881 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6882 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6883
33c08150
JJ
68842003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6885
8ffd9b1b 6886 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6887 bits to 128.
6888
781a750d
AC
68892003-06-11 Andrew Cagney <cagney@redhat.com>
6890
6891 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6892 REGISTER_CONVERTIBLE.
6893 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6894 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6895 * gdbarch.h, gdbarch.c: Re-generate.
6896 * arch-utils.h (deprecated_register_convertible_not): Rename
6897 generic_register_convertible_not.
6898 * arch-utils.c (deprecated_register_convertible_not): Rename
6899 generic_register_convertible.
6900 (legacy_convert_register_p, legacy_register_to_value): Update.
6901 * sh-tdep.c (sh64_push_arguments): Update.
6902 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6903 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6904 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6905 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6906 * arch-utils.c (legacy_value_to_register): Update.
6907 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6908 (rs6000_register_convert_to_raw): Make parameter "from" const.
6909 * mips-tdep.c (mips_gdbarch_init): Update.
6910 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6911 * infcmd.c (default_print_registers_info): Update.
6912 * ia64-tdep.c (ia64_gdbarch_init): Update.
6913 (ia64_register_convert_to_raw): Make parameter "from" const.
6914 * i386-tdep.c (i386_gdbarch_init): Update.
6915 (i386_register_convert_to_raw): Update.
6916
cd90e54f
AC
69172003-06-11 Andrew Cagney <cagney@redhat.com>
6918
6919 * remote-fileio.c: Include "remote-fileio.h".
6920 * Makefile.in (remote-fileio.o): Update dependencies.
6921 (remote_fileio_h): Fix typo.
6922
a78f21af
AC
69232003-06-11 Andrew Cagney <cagney@redhat.com>
6924
6925 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6926 (xstormy16_save_dummy_frame_tos): Make static.
6927 (_initialize_xstormy16_tdep): Add declaration.
6928 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6929 * v850-tdep.c: Make local functions static.
6930 (_initialize_v850_tdep): Add declaration.
6931 * sparc-tdep.c: Make local functions static.
6932 (_initialize_sparc_tdep): Add declaration.
6933 * sh-tdep.c: Make local functions static.
6934 (_initialize_sh_tdep): Add declaration.
6935 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6936 * s390-tdep.c: Make local functions static.
6937 (_initialize_s390_tdep): Add declaration.
6938 * dbxread.c (find_stab_function_addr): Make static.
6939 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6940 * ocd.c (_initialize_remote_ocd): Add declaration.
6941 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6942 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6943 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6944 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6945 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6946 * remote-array.c (_initialize_array): Add declaration.
6947 (_initialize_remote_monitors): Add declaration.
6948 * remote-mips.c: Make local functions static.
6949 (_initialize_remote_mips): Add declaration.
6950 * mcore-tdep.c: Make all local functions static.
6951 (_initialize_mcore_tdep): Add declaration.
6952 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6953 * abug-rom.c (_initialize_abug_rom): Add declaration.
6954 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6955 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6956 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6957 * remote-est.c (_initialize_est): Add declaration.
6958 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6959 (m68hc11_call_dummy_address): Make static.
6960 * ia64-tdep.c: Make local functions static.
6961 (_initialize_ia64_tdep): Add declaration.
6962 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6963 * monitor.c (monitor_wait_filter): Make static.
6964 (_initialize_remote_monitors): Add declaration.
6965 * remote-hms.c (_initialize_remote_hms): Add declaration.
6966 * remote-e7000.c (fetch_regs_from_dump): Make static.
6967 (expect_n): Make static.
6968 (_initialize_remote_e7000): Add declaration.
6969 * ser-e7kpc.c: Always include "defs.h".
6970 (_initialize_ser_e7000pc): Add declaration.
6971 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6972 * cris-tdep.c: Make all but one function static.
6973 (_initialize_cris_tdep): Add declaration.
6974 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6975 * solib.c (update_solib_list): Make static.
6976 (_initialize_solib): Add declaration.
6977 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6978 (_initialize_avr_tdep): Add declaration.
6979 * remote-rdi.c (voiddummy): Make static.
6980 (_initialize_remote_rdi): Add declaration.
6981 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6982 * remote-rdp.c (send_rdp): Make static.
6983 (_initialize_remote_rdp): Add declaration.
6984 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6985
cbcdb1f5
CV
69862003-06-11 Corinna Vinschen <vinschen@redhat.com>
6987
6988 * remote-fileio.c: Make ari happy.
6989
a191ea8d
JB
69902003-06-10 J. Brobecker <brobecker@gnat.com>
6991
6992 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6993 fetching the trailing bytes of the buffer we are about to write.
6994
0ef75e11
AC
69952003-06-10 Andrew Cagney <cagney@redhat.com>
6996
6997 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6998 * Makefile.in (remote-fileio.o): Update dependencies.
6999 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7000 include <setjmp.h>, or <sys/types.h> conditional on USG.
7001 (remote_fio_jmp_buf): Delete global variable.
7002
449092f6 70032003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7004 Martin M. Hunt <hunt@redhat.com>
449092f6 7005
559fa028
AC
7006 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7007 (SFILES): Add remote-fileio.c.
7008 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7009 dependencies for building remote.o.
449092f6
CV
7010 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7011 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7012 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7013 static storage class.
7014 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7015 'F' packet.
7016 (_initialize_remote): Call initialize_remote_fileio().
7017 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7018 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7019 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7020 (captured_main): Initialize new ui_files.
7021 * ui-file.c: Add read and fgets input functions.
7022 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7023 (null_file_read): New function.
7024 (ui_file_read): New function.
7025 (set_ui_file_read): New function.
7026 (stdio_file_read): New function.
7027 * ui-file.h: New type ui_file_read_ftype.
7028 (set_ui_file_read): Declare.
7029 (ui_file_read): Declare.
7030
248de703
AC
70312003-06-09 Andrew Cagney <cagney@redhat.com>
7032
7033 * frame.h (deprecated_unwind_get_saved_register): Rename
7034 generic_unwind_get_saved_register, update comments.
7035 * mips-tdep.c (mips_get_saved_register): Update.
7036 * frame.c (deprecated_unwind_get_saved_register): Update.
7037
0ed8aa57
AC
70382003-06-09 Andrew Cagney <cagney@redhat.com>
7039
7040 * vax-tdep.c (vax_frame_locals_address): Delete function.
7041 (vax_gdbarch_init): Do not set frame_locals_address.
7042 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7043 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7044 * s390-tdep.c (s390_frame_args_address): Delete function.
7045 (s390_gdbarch_init): Do not set frame_args_address or
7046 frame_locals_address.
7047 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7048 (ns32k_gdbarch_init): Do not set frame_locals_address.
7049 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7050 (hppa_frame_locals_address): Delete function.
7051 (hppa_gdbarch_init): Do not set frame_args_address, or
7052 frame_locals_address.
7053 * arm-tdep.c (arm_frame_args_address): Delete.
7054 (arm_frame_locals_address): Delete.
7055 (arm_gdbarch_init): Do not set frame_args_address, or
7056 frame_locals_address.
7057
983a287a
AC
70582003-06-09 Andrew Cagney <cagney@redhat.com>
7059
7060 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7061 * gdbarch.h, gdbarch.c: Re-generate.
7062 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7063 * arch-utils.c (frame_num_args_unknown): Delete function.
7064 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7065 (frame_info): Use FRAME_NUM_ARGS_P.
7066 * arm-tdep.c (arm_frame_num_args): Delete function.
7067 (arm_gdbarch_init): Do not set frame_num_args.
7068 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7069 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7070 (hppa_gdbarch_init): Do not set frame_num_args.
7071 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7073 frame_num_args to default frame_num_args_unknown.
7074 * v850-tdep.c (v850_gdbarch_init): Ditto.
7075 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7076 * sh-tdep.c (sh_gdbarch_init): Ditto.
7077 * s390-tdep.c (s390_gdbarch_init): Ditto.
7078 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7079 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7080 * mips-tdep.c (mips_gdbarch_init): Ditto.
7081 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7082 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7084 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7085 * i386-tdep.c (i386_gdbarch_init): Ditto.
7086 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7087 * frv-tdep.c (frv_gdbarch_init): Ditto.
7088 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7089 * cris-tdep.c (cris_gdbarch_init): Ditto.
7090 * avr-tdep.c (avr_gdbarch_init): Ditto.
7091 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7092
8d3b0994
AC
70932003-06-09 Andrew Cagney <cagney@redhat.com>
7094
7095 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7096 (print_frame_args): Moved to "stack.c".
7097 * stack.c: Include "gdb_assert.h".
7098 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7099 (print_frame_args): Moved from "printcmd.c".
7100 * frame.h (print_frame_args): Delete declaration.
7101 * Makefile.in (stack.o): Update dependencies.
7102
25e3a86b
AC
71032003-06-08 Andrew Cagney <cagney@redhat.com>
7104
7105 * frame.c (get_prev_frame): Remove reference to
7106 frame_args_address_correct in comments.
7107 * frame-base.c (default_frame_args_address): Delete code
7108 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7109 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7110 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7111 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7112 (vax_frame_args_address_correct): Delete declaration.
7113
a9e5fdc2
AC
71142003-06-08 Andrew Cagney <cagney@redhat.com>
7115
7116 * gdbarch.sh (UNWIND_SP): Add.
7117 * gdbarch.h, gdbarch.c: Re-generate.
7118 * frame.c (frame_sp_unwind): New function.
7119 (get_frame_sp): New function.
7120 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7121 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7122 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7123 value.
7124 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7125 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7126
8983bd83
AC
71272003-06-08 Andrew Cagney <cagney@redhat.com>
7128
7fec2c59
AC
7129 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7130 REMOTE_BREAKPOINT.
7131 * remote.c: Update.
7132 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7133 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7134 * config/m68k/tm-sun3.h: Update.
7135 * config/m68k/tm-m68klynx.h: Update.
7136 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7137
8983bd83
AC
7138 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7139 trad_frame". Update comments.
7140 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7141 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7142 (trad_frame_register_value, trad_frame_prev_register): Update.
7143
b9362cc7
AC
71442003-06-08 Andrew Cagney <cagney@redhat.com>
7145
7146 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7147 from GCC's acinclude.m4.
7148 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7149 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7150 * main.c (error_init): Delete declaration.
7151 * defs.h (error_init): Declare.
7152 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7153 (rs6000_convert_from_func_ptr_addr): Make static.
7154 (_initialize_rs6000_tdep): Add declaration.
7155 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7156 (show_commands, set_verbose, show_history): Delete declaration.
7157 * top.h (set_verbose): Add declaration.
7158 (show_history, set_history, show_commands): Add declaration.
7159 (do_restore_instream_cleanup): Add declaration.
7160 * objc-lang.c (specialcmp): Make static.
7161 (print_object_command): Make static.
7162 (find_objc_msgsend): Make static.
7163 (find_objc_msgcall_submethod_helper): Make static.
7164 (find_objc_msgcall_submethod): Make static.
7165 (_initialize_objc_language): Add declaration.
7166 (find_implementation_from_class): Make static.
7167 (find_implementation): Make static.
7168 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7169 * objc-lang.h (lookup_struct_typedef): Add declaration.
7170 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7171 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7172 (do_restore_user_call_depth): Make static.
7173 (do_restore_instream_cleanup): Delete declaration.
7174 (dont_repeat): Delete declaration.
7175 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7176 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7177 * reggroups.c (_initialize_reggroup): Add declaration.
7178 * cp-support.c (_initialize_cp_support): Add declaration.
7179 * cp-abi.c (_initialize_cp_abi): Add declaration.
7180 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7181 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7182 (_initialize_gnu_v3_abi): Add declaration.
7183 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7184 (_initialize_gnu_v2_abi): Add declaration.
7185 * frame-base.c (_initialize_frame_base): Add declaration.
7186 * doublest.c (floatformat_from_length): Make static.
7187 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7188 * frame.c (create_sentinel_frame): Make static.
7189 (_initialize_frame): Add declaration.
7190 * top.c (do_catch_errors): Make static.
7191 (gdb_rl_operate_and_get_next_completion): Make static.
7192 * typeprint.c: Include "typeprint.h".
7193 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7194 (sentinel_frame_this_id): Make static.
7195 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7196 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7197 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7198 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7199 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7200 * maint.c (maintenance_print_architecture): Make static.
7201 * signals/signals.c (_initialize_signals): Add declaration.
7202 * std-regs.c (_initialize_frame_reg): Add declaration.
7203 * jv-exp.y (push_variable): ISO C definition.
7204 (push_qualified_expression_name): Ditto.
7205 * memattr.c (_initialize_mem): Add declaration.
7206 * remote.c (remote_check_watch_resources): Make static.
7207 (remote_stopped_by_watchpoint): Make static.
7208 (remote_stopped_data_address): Make static.
7209 * d10v-tdep.c (nr_dmap_regs): Make static.
7210 (a0_regnum): Make static.
7211 (d10v_frame_unwind_cache): Make static.
7212 (d10v_frame_p): Make static.
7213 * osabi.c (show_osabi): Make static.
7214 (_initialize_gdb_osabi): Add extern declaration.
7215 * gdbtypes.c (make_qualified_type): Make static.
7216 (safe_parse_type): Make static.
7217 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7218 * macrotab.c (macro_bcache_free): Make static.
7219 * interps.c (interp_set_quiet): Make static.
7220 (interpreter_exec_cmd): Make static.
7221 * stack.h (select_frame_command): New file.
7222 * stack.c: Include "stack.h".
7223 (select_frame_command_wrapper): Delete function.
7224 (select_frame_command): Make global.
7225 * infcall.c: Include "infcall.h".
7226 * linespec.c: Include "linespec.h".
7227 * symfile.c (sections_overlap): Make static.
7228 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7229 * charset.c (_initialize_charset): Add missing prototype.
7230 * regcache.c (init_legacy_regcache_descr): Make static.
7231 (do_regcache_xfree): Make static.
7232 (regcache_xfer_part): Make static.
7233 (_initialize_regcache): Add missing prototype.
7234 * breakpoint.c (parse_breakpoint_sals): Make static.
7235 (breakpoint_sals_to_pc): Make static.
7236 * interps.h (clear_interpreter_hooks): ISO C declaration.
7237 * Makefile.in (stack_h): Define.
7238 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7239 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7240
a0f267c7
AC
72412003-06-08 Andrew Cagney <cagney@redhat.com>
7242
7243 * Makefile.in (d10v-tdep.o): Update dependencies.
7244 (SFILES): Add trad-frame.c.
7245 (trad_frame_h): Define.
7246 (COMMON_OBS): Add trad-frame.o.
7247 (trad-frame.o): Specify dependencies.
7248 * d10v-tdep.c: Include "trad-frame.h".
7249 (saved_regs_unwinder): Delete function.
7250 (d10v_frame_prev_register): Use trad_frame_prev_register.
7251 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7252 trad_frame", delete "regs" and "prev_sp".
7253 (prologue_find_regs): Use trad-frame.
7254 * trad-frame.h, trad-frame.c: New files.
7255
4538b4f4
MK
72562003-06-08 Mark Kettenis <kettenis@gnu.org>
7257
7258 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7259
a0273b2f
AF
72602003-06-07 Adam Fedor <fedor@gnu.org>
7261
7262 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7263 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7264 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7265 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7266 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7267 Use it.
7268
3a6c3343
AC
72692003-06-07 Andrew Cagney <cagney@redhat.com>
7270
7271 * symfile.h: Re-indent, clean up comments.
7272
b46e02f6
AC
72732003-06-07 Andrew Cagney <cagney@redhat.com>
7274
7275 * inferior.h (deprecated_write_sp): Replace
7276 generic_target_write_sp.
7277 * regcache.c (deprecated_write_sp): Replace
7278 generic_target_write_sp.
7279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7280 * vax-tdep.c (vax_gdbarch_init): Update.
7281 * v850-tdep.c (v850_gdbarch_init): Update.
7282 * sparc-tdep.c (sparc_gdbarch_init): Update.
7283 * sh-tdep.c (sh_gdbarch_init): Update.
7284 * s390-tdep.c (s390_gdbarch_init): Update.
7285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7288 * mcore-tdep.c (mcore_gdbarch_init): Update.
7289 * m68k-tdep.c (m68k_gdbarch_init): Update.
7290 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7291 * ia64-tdep.c (ia64_gdbarch_init): Update.
7292 * h8300-tdep.c (h8300_gdbarch_init): Update.
7293 * frv-tdep.c (frv_gdbarch_init): Update.
7294 * cris-tdep.c (cris_gdbarch_init): Update.
7295 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7296
a42e117c
AC
72972003-06-07 Andrew Cagney <cagney@redhat.com>
7298
7299 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7300 Assert that PC_REGNUM is valid.
7301 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7302
bd1ce8ba
AC
73032003-06-07 Andrew Cagney <cagney@redhat.com>
7304
7305 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7306 * gdbarch.h, gdbarch.c: Regenerate.
7307 * mn10300-tdep.c: Include "gdb_assert.h".
7308 (mn10300_read_fp): New function.
7309 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7310 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7311 * ia64-tdep.c: Include "gdb_assert.h".
7312 (ia64_read_fp): New function.
7313 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7314 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7315 * regcache.c (generic_target_read_sp): Delete function.
7316 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7317 * inferior.h (generic_target_read_sp): Delete declaration.
7318 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7319 generic_target_read_sp.
7320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7321 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7322 * sh-tdep.c (sh_gdbarch_init): Ditto.
7323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7324 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7325
ec5cbaec
AC
73262003-06-07 Andrew Cagney <cagney@redhat.com>
7327
7328 * gdbarch.sh: Comment each field of startup_gdbarch.
7329 * gdbarch.h, gdbarch.c: Re-generate.
7330
cde9ea48
AC
73312003-06-07 Andrew Cagney <cagney@redhat.com>
7332
7333 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7334 * gdbarch.h, gdbarch.c: Re-generate.
7335 * regcache.c: Update comments on read_pc et.al.
7336 (generic_target_read_pc): Delete function.
7337 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7338 * inferior.h (generic_target_read_pc): Delete declaration.
7339 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7340 generic_target_read_pc.
7341 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7342 * sh-tdep.c (sh_gdbarch_init): Ditto.
7343 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7345
9a90a780
AC
73462003-06-07 Andrew Cagney <cagney@redhat.com>
7347
7348 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7349 "index" with "special_local_sect". Use strcmp instead of STREQ.
7350 Append period to coments.
7351
a39a16c4
MM
73522003-06-06 Mark Mitchell <mark@codesourcery.com>
7353
7354 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7355 (elfstab_offset_sections): Likewise.
7356 * gdb-stabs.h (stab_section_info): Likewise.
7357 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7358 * objfiles.c (objfile_relocate): Likewise.
7359 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7360 * remote.c (get_offsets): Likewise.
7361 (remote_cisco_objfile_relocate): Likewise.
7362 * somread.c (som_symfile_offsets): Likewise.
7363 * symfile.c (alloc_section_addr_info): New function.
7364 (build_section_addr_info_from_section_tab): Use it.
7365 (free_section_addr_info): Adjust.
7366 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7367 (syms_from_objfile): Allocate local_addr dynamically.
7368 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7369 dynamically.
7370 (add_symbol_file_command): Allocate sect_opts dynamically.
7371 (reread_symbols): Avoid use of SECT_OFF_MAX.
7372 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7373 (alloc_section_addr_info): Declare it.
7374 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7375 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7376 dynamically.
7377 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7378
20c6c2f8
AC
73792003-06-06 Andrew Cagney <cagney@redhat.com>
7380
7381 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7382 (d10v_frame_unwind_cache): Do not set "return_pc".
7383
884a26c8
MS
73842003-06-06 Michael Snyder <msnyder@redhat.com>
7385
7386 * h8300-tdep.c: Make tidy (long lines).
7387
088ce440
ML
73882003-06-06 Michal Ludvig <mludvig@suse.cz>
7389
8ffd9b1b 7390 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7391 to regcache_collect().
7392
7d773d96
JB
73932003-06-05 J. Brobecker <brobecker@gnat.com>
7394
7395 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7396 pc_in_sigtramp multiarch method.
7397 (hppa_hpux_som_init_abi): Use it.
7398 (hppa_hpux_elf_init_abi): Likewise.
7399 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7400 macro has been multiarched.
7401 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7402 macro here, as hppa64 isn't multiarched yet.
7403
1df6926e
AC
74042003-06-05 Andrew Cagney <cagney@redhat.com>
7405
7406 * Makefile.in (value_h): Add $(frame_h).
7407 * value.h: Include "frame.h".
7408 (struct value): Replace "frame_addr" with "frame_id".
7409 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7410 * values.c (allocate_value): Use VALUE_FRAME_ID.
7411 (value_copy): Use VALUE_FRAME_ID.
7412 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7413 * valops.c (value_assign): Update. Use frame_find_by_id.
7414
6b53acc6
ML
74152003-06-05 Michal Ludvig <mludvig@suse.cz>
7416
7417 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7418 in each pass.
7419
4d9850d3
JJ
74202003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7421
7422 * thread-db.c (check_event): For create/death event breakpoints,
7423 loop through all messages to ensure that we read the message
7424 corresponding to the breakpoint we are at.
7425
8efca6ba
MS
74262003-06-04 Michael Snyder <msnyder@redhat.com>
7427
7428 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7429
0912c7f2
MK
74302003-06-04 Mark Kettenis <kettenis@gnu.org>
7431
7432 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7433 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7434 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7435 when handling .eh_frame sections.
7436
4e370325
JB
74372003-06-04 J. Brobecker <brobecker@gnat.com>
7438
7439 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7440 prepare_to_proceed procedure instead of the hppa-specific one.
7441 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7442
b757528f 74432003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7444
b757528f
JJ
7445 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7446 * config.in: Regenerated.
7447 * configure.in: Add test for syscall function and check for
7448 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7449 * configure: Regenerated.
7450 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7451 <sys/syscall.h>.
7452 (kill_lwp): New function that uses tkill syscall or
7453 uses kill, depending on whether threading model is nptl or not.
7454 All callers of kill() changed to use kill_lwp().
7455 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7456 see if all threads have already exited in the nptl model.
7457 (stop_and_resume_callback): New callback function used by the
7458 lin_lwp_wait thread exit handling code.
7459 (stop_wait_callback): Check for threads already having exited and
7460 delete such threads fromt the lwp list when discovered.
7461 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7462
b757528f
JJ
7463 Roland McGrath <roland@redhat.com>
7464 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7465 nptl libthread_db.
7466
087779b1
RH
74672003-06-03 Richard Henderson <rth@redhat.com>
7468
b21fd293
RH
7469 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7470 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7471 (alpha_sigtramp_frame_prev_register): Likewise.
7472 (alpha_heuristic_frame_prev_register): Likewise.
7473 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7474
8ffd9b1b 7475 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7476 alpha-specific register id names.
7477 (alpha_mdebug_frame_unwind_cache): Likewise.
7478 (alpha_mdebug_frame_prev_register): Likewise.
7479
baa490c4
RH
74802003-06-03 Richard Henderson <rth@redhat.com>
7481
7482 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7483 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7484 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7485 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7486 unwind routines.
7487 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7488 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7489 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7490
7491 * alpha-linux-tdep.c: Remove unnecessary includes.
7492 * Makefile.in (alpha-linux-tdep.o): Update.
7493
74942003-06-03 Richard Henderson <rth@redhat.com>
7495
7496 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7497 (alphabsd_fill_fpreg): Likewise.
7498
f534e522
JB
74992003-06-03 J. Brobecker <brobecker@gnat.com>
7500
7501 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7502 references to struct frame_info fields by calls to the equivalent
7503 accessors. Necessary now that frame_info is opaque.
7504
4035536b
JB
75052003-06-03 J. Brobecker <brobecker@gnat.com>
7506
7507 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7508 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7509 structure, field no longer exists.
7510
0bd79c5c
JB
75112003-06-03 J. Brobecker <brobecker@gnat.com>
7512
7513 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7514 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7515
37bb6d9f
JB
75162003-06-03 J. Brobecker <brobecker@gnat.com>
7517
7518 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7519 references to struct frame_info fields by calls to the equivalent
7520 accessors. Necessary now that frame_info is opaque.
7521
852ee05c
JB
75222003-06-03 J. Brobecker <brobecker@gnat.com>
7523
7524 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7525 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7526 structure, field no longer exists.
7527
7d58c67d
TR
75282003-06-03 Theodore A. Roth <troth@openavr.org>
7529
8ffd9b1b 7530 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7531 accumulation of the size of all registers instead of blindly using
7532 DEPRECATED_REGISTER_BYTES.
7533
0a48e7e8
MS
75342003-06-03 Michael Snyder <msnyder@redhat.com>
7535
7536 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7537 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7538 for h8300sx.
7539
9798ab0d
JB
75402003-06-03 J. Brobecker <brobecker@gnat.com>
7541
7542 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7543 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7544
00b037e2
AC
75452003-06-03 Andrew Cagney <cagney@redhat.com>
7546
7547 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7548 (sparc_convert_to_raw): Delete function.
7549 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7550 register_convert_to_virtual.
7551
043b2f77
JJ
75522003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7553
7554 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7555 layer if not dealing with a statically-linked threaded program.
7556
f43caff8
KW
75572003-06-03 Kris Warkentin <kewarken@qnx.com>
7558
7559 * solib.c (solib_open): Update comment to reflect actual search order.
7560
ae1e7417
AC
75612003-06-03 Andrew Cagney <cagney@redhat.com>
7562
7563 * frame.c (get_frame_memory_signed): New function.
7564 (get_frame_memory, get_frame_memory_unsigned): New function.
7565 (get_frame_arch): New function.
7566 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7567 (get_frame_memory, get_frame_unsigned_memory): Declare.
7568 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7569 get_frame_memory_unsigned and get_frame_arch.
7570 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7571
cb123844
RG
75722003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7573
7574 * MAINTAINERS (write after approval): Add myself.
7575
1bb792e9
JB
75762003-06-03 Jim Blandy <jimb@redhat.com>
7577
7578 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7579 elements of gregset_t are 64 bits each, but access registers
7580 are still 32 bits, so they're packed two per gregset_t
7581 element. Unpack/pack them properly.
7582
aee8d8ba
DC
75832003-06-02 David Carlton <carlton@bactrian.org>
7584
7585 * linespec.c (find_methods): Break out code into
7586 add_matching_methods and add_constructors.
7587 (add_matching_methods): New.
7588 (add_constructors): Ditto.
7589
bf7488d2
AC
75902003-06-02 Andrew Cagney <cagney@redhat.com>
7591
bf7488d2
AC
7592 * sparc-tdep.c (sparc_print_registers): Delete call to
7593 REGISTER_CONVERTIBLE.
7594 (sparc_gdbarch_init): Do not set register_convertible.
7595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7596 * frv-tdep.c (frv_gdbarch_init): Ditto.
7597 * cris-tdep.c (cris_gdbarch_init): Ditto.
7598
adedef68
EZ
75992003-06-02 Elena Zannoni <ezannoni@redhat.com>
7600
8ffd9b1b 7601 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7602 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7603 (syms_from_objfile): Ditto.
7604
650fcc91
AS
76052003-06-03 Andreas Schwab <schwab@suse.de>
7606
7607 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7608 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7609
df4a182b
RH
76102003-06-02 Richard Henderson <rth@redhat.com>
7611
7612 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7613 a member of all_reggroup.
7614
c483c494
RH
76152003-06-02 Richard Henderson <rth@redhat.com>
7616
7617 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7618 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7619 (alpha_lds, alpha_sts): New.
7620 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7621 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7622 restructure and fail for type sizes other than 4 or 8.
7623 (alpha_value_to_register): Similarly.
7624 (alpha_extract_return_value): Use alpha_sts.
7625 (alpha_store_return_value): Use alpha_lds.
7626 (alpha_gdbarch_init): Update hooks.
7627
b38b6be2
RH
76282003-06-02 Richard Henderson <rth@redhat.com>
7629
7630 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7631 regnum identifiers.
7632 (alpha_sigtramp_register_address): Likewise.
7633
98a8e1e5
RH
76342003-06-02 Richard Henderson <rth@redhat.com>
7635
7636 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7637 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7638 * alpha-tdep.h: Declare them.
7639
7640 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7641 Remove zerobuf. Don't error on UNIQUE.
7642 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7643 (ALPHA_REGSET_UNIQUE): Provide default.
7644 (supply_gregset): Use alpha_supply_int_regs.
7645 (fill_gregset): Use alpha_fill_int_regs.
7646 (supply_fpregset): Use alpha_supply_fp_regs.
7647 (fill_fpregset): Use alpha_fill_fp_regs.
7648 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7649 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7650 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7651 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7652 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7653 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7654
67dfac52
RH
76552003-06-02 Richard Henderson <rth@redhat.com>
7656
f75d70cc
RH
7657 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7658
67dfac52
RH
7659 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7660 (alpha_store_return_value): Likewise.
7661
0cf566ec
DC
76622003-06-02 David Carlton <carlton@math.stanford.edu>
7663
7664 * block.c (contained_in): Add 'const' to arguments.
7665 (block_function): Ditto.
7666 * block.h: Update declarations for block_function and
7667 contained_in.
7668
cdef89d0
DC
76692003-06-02 David Carlton <carlton@math.stanford.edu>
7670
7671 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7672 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7673 * p-valprint.c (pascal_val_print): Ditto.
7674 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7675
72667056
RH
76762003-06-02 Richard Henderson <rth@redhat.com>
7677
98a8e1e5
RH
7678 * alpha-tdep.c (alpha_push_dummy_call): Use
7679 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7680
8ffd9b1b 7681 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7682 sign-extension of 32-bit values.
7683 (alpha_store_return_value): Similarly.
0ede8eca 7684
98a8e1e5
RH
7685 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7686 (alpha_extract_return_value): Likewise.
7687 (alpha_store_return_value): Likewise.
7b5e1cb3 7688
98a8e1e5
RH
7689 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7690 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7691
98a8e1e5
RH
7692 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7693 (alpha_extract_struct_value_address): Likewise.
7694 (alpha_store_return_value): Likewise.
7695 (alpha_store_struct_return): Remove.
7696 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7697
98a8e1e5
RH
7698 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7699 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7700 macros where appropriate.
7701 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7702 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7703
98a8e1e5
RH
7704 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7705 for SP, GP; void_func_ptr for PC; non-language-specific types
7706 for all others.
7707 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7708
6dd77b81
RH
77092003-06-02 Richard Henderson <rth@redhat.com>
7710
7711 * top.h (lim_at_start): Declare.
7712 * main.c (captured_main): Set it.
7713 * top.c (lim_at_start): Define.
7714 (command_loop): Use it instead of &environ.
7715 * event-top.c (command_handler): Likewise.
7716
f4dbdb54
JT
77172003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7718
7719 * mipsnbsd-tdep.c: Update copyright years.
7720 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7721
8f285956
RH
77222003-06-01 Richard Henderson <rth@redhat.com>
7723
98a8e1e5
RH
7724 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7725 (alpha-linux-tdep.o): Update dependencies.
7726 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7727 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7728
615967cb
RH
77292003-06-01 Richard Henderson <rth@redhat.com>
7730
98a8e1e5
RH
7731 * alpha-tdep.c (alpha_register_reggroup_p): New.
7732 (alpha_gdbarch_init): Register it.
615967cb 7733
b59661bd
AC
77342003-06-02 Andrew Cagney <cagney@redhat.com>
7735
7736 * dwarfread.c: Eliminate "register"
7737 (decode_die_type): Eliminate assignment within "if".
7738 (struct_type, decode_array_element_type): Ditto.
7739 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7740 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7741 (decode_modified_type, completedieinfo): Ditto.
7742 * block.c: Eliminate "register".
7743 (blockvector_for_pc_sect): Eliminate assignment within "if".
7744 * cp-support.h (struct symbol): Opaque declaration.
7745 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7746
5ef165c2
RH
77472003-06-01 Richard Henderson <rth@redhat.com>
7748
98a8e1e5
RH
7749 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7750 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7751
143985b7
AF
77522003-06-01 Adam Fedor <fedor@gnu.org>
7753
7754 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7755 * gdbarch.[ch]: Regenerate.
7756 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7757 (hppa_gdbarch_init): Set it in the gdbarch vector.
7758 * i386-tdep.c (i386_fetch_pointer_argument): New
7759 (i386_gdbarch_init): Set it into gdbarch.
7760 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7761 (rs6000_gdbarch_init): Set it in gdbarch.
7762 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7763 (sparc_gdbarch_init): Set it in gdbarch.
7764
ae0167b9
AC
77652003-06-01 Andrew Cagney <cagney@redhat.com>
7766
7c0b4a20
AC
7767 * defs.h (extract_address): Delete declaration.
7768 * findvar.c (extract_address): Delete function.
7769 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7770 extract_address with the inline equivalent,
7771 extract_unsigned_integer.
7772 (xstormy16_extract_struct_value_address): Ditto.
7773 (xstormy16_pointer_to_address): Ditto.
7774 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7775 * v850-tdep.c (v850_push_arguments): Ditto.
7776 (v850_extract_return_value): Ditto.
7777 (v850_extract_struct_value_address): Ditto.
7778 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7779 (sparcnbsd_get_longjmp_target_64): Ditto.
7780 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7781 (get_longjmp_target): Ditto.
7782 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7783 (sh64_extract_struct_value_address): Ditto.
7784 (sh_push_arguments): Ditto.
7785 (sh64_push_arguments): Ditto.
7786 * remote-vxsparc.c (vx_read_register): Ditto.
7787 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7788 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7789 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7790 * mipsv4-nat.c (get_longjmp_target): Ditto.
7791 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7792 * mips-nat.c (get_longjmp_target): Ditto.
7793 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7794 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7795 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7796 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7797 * irix5-nat.c (get_longjmp_target): Ditto.
7798 * irix4-nat.c (get_longjmp_target): Ditto.
7799 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7800 (ia64_push_arguments): Ditto.
7801 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7802 * h8300-tdep.c (h8300_push_arguments): Ditto.
7803 (h8300_store_return_value): Ditto.
7804 (h8300_extract_struct_value_address): Ditto.
7805 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7806 (frv_push_arguments): Ditto.
7807 * avr-tdep.c (avr_pointer_to_address): Ditto.
7808 (avr_push_arguments): Ditto.
7809 * arm-tdep.c (arm_push_dummy_call): Ditto.
7810 (arm_get_longjmp_target): Ditto.
7811 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7812 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7813 (alpha_get_longjmp_target): Ditto.
7814
ae0167b9
AC
7815 * solib-irix.c (extract_mips_address): Inline extract_address,
7816 replacing it with extract_signed_integer.
7817 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7818 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7819 (first_link_map_member, open_symbol_file_object): Ditto.
7820 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7821 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7822 (LM_NEXT, LM_NAME): Ditto.
7823
44d88583
RH
78242003-06-01 Richard Henderson <rth@redhat.com>
7825
98a8e1e5
RH
7826 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7827 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7828 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7829 (alpha_cannot_store_register): Likewise.
7830 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7831 * alpha-nat.c (supply_gregset): Likewise.
7832 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7833
310e9b6a
AC
78342003-06-01 Andrew Cagney <cagney@redhat.com>
7835
7836 * infcall.c (call_function_by_hand): Update comment on
7837 DEPRECATED_DUMMY_WRITE_SP.
7838
7839 * mips-tdep.c (mips_gdbarch_init): Do not set
7840 deprecated_dummy_write_sp.
7841 (mips_eabi_push_dummy_call): Set the SP register.
7842 (mips_o64_push_dummy_call): Set the SP register.
7843 (mips_o32_push_dummy_call): Set the SP register.
7844 (mips_n32n64_push_dummy_call): Set the SP register.
7845
5ab84872
RH
78462003-06-01 Richard Henderson <rth@redhat.com>
7847
98a8e1e5
RH
7848 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7849 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7850 (supply_gregset): Likewise.
7851 * alpha-tdep.c (alpha_store_return_value): Likewise.
7852 (alpha_get_longjmp_target): Likewise.
7853 (alpha_register_name): Constify array.
7854 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7855 deprecated_register_size, deprecated_register_bytes,
7856 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7857 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7858 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7859
09cc52fd
RH
78602003-06-01 Richard Henderson <rth@redhat.com>
7861
7862 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7863 from arg_reg_buffer to regcache to avoid double conversion.
7864
c7f16359
MK
78652003-06-01 Mark Kettenis <kettenis@gnu.org>
7866
7867 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7868 SP_REGNUM.
7869 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7870 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7871
7131cb6e
RH
78722003-06-01 Richard Henderson <rth@redhat.com>
7873
98a8e1e5
RH
7874 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7875 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7876
f3e0f90b
RH
78772003-06-01 Richard Henderson <rth@redhat.com>
7878
98a8e1e5
RH
7879 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7880 not overlapping PC_REGNUM.
f3e0f90b 7881
c88e30c0
RH
78822003-06-01 Richard Henderson <rth@redhat.com>
7883
98a8e1e5
RH
7884 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7885 alpha_push_arguments. Don't dump argument register data to
7886 the target stack. Fix float and 128-bit long double semantics.
7887 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7888 (alpha_fix_call_dummy): Remove.
7889 (alpha_call_dummy_words): Remove.
7890 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7891
f1a559ae
RH
78922003-06-01 Richard Henderson <rth@redhat.com>
7893
7894 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7895
5e045346
AC
78962003-06-01 Andrew Cagney <cagney@redhat.com>
7897
95404a3e
AC
7898 * mips-tdep.c (is_mips16_addr): New function.
7899 (make_mips16_addr, unmake_mips16_addr): New functions.
7900 (pc_is_mips16, mips_fetch_instruction): Use.
7901 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7902 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7903 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7904 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7905 TARGET_MIPS.
7906 * config/mips/tm-mips.h: Update copyright.
7907 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7908 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7909 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7910 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7911 (TM_PRINT_INSN_MACH): Delete.
7912 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7913
5e045346
AC
7914 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7915 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7916 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7917 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7918 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7919 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7920 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7921 mips*-*-riscos* and mips*-*-sysv* onto mips.
7922 * config/mips/mips64.mt: New file.
7923 * config/mips/mips.mt: New file.
7924 * config/mips/littlemips.mt: Delete file.
7925 * config/mips/decstation.mt: Delete file.
7926 * config/mips/vr4300el.mt: Delete file.
7927 * config/mips/vr5000el.mt: Delete file.
7928 * config/mips/vr5000.mt: Delete file.
7929 * config/mips/vr4100.mt: Delete file.
7930 * config/mips/vr4xxxel.mt: Delete file.
7931 * config/mips/vr4300.mt: Delete file.
7932 * config/mips/vr4xxx.mt: Delete file.
7933 * config/mips/bigmips.mt: Delete file.
7934 * config/mips/bigmips64.mt: Delete file.
7935 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7936 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7937 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7938 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7939 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7940 "tm-bigmips.h".
7941 * config/mips/tm-irix3.h: Ditto.
7942 * config/mips/tm-mipsv4.h: Ditto.
7943 * config/mips/tm-embed.h: Ditto.
7944 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7945 "tm-bigmips64.h".
7946 * config/mips/tm-vr5000el.h: Delete file.
7947 * config/mips/tm-tx39l.h: Delete file.
7948 * config/mips/tm-vr4300el.h: Delete file.
7949 * config/mips/tm-vr4xxxel.h: Delete file.
7950 * config/mips/tm-vr4300.h: Delete file.
7951 * config/mips/tm-vr4100.h: Delete file.
7952 * config/mips/tm-vr4xxx.h: Delete file.
7953 * config/mips/tm-vr5000.h: Delete file.
7954 * config/mips/tm-embedl64.h: Delete file.
7955 * config/mips/tm-embedl.h: Delete file.
7956 * config/mips/tm-embed64.h: Delete file.
7957 * config/mips/tm-bigmips64.h: Delete file.
7958 * config/mips/tm-bigmips.h: Delete file.
7959
2473a4a9
MK
79602003-06-01 Mark Kettenis <kettenis@gnu.org>
7961
97a5b208
MK
7962 Fix gdb/1216.
7963 * shnbsd-nat.c: Include "sh-tdep.h".
7964
2473a4a9
MK
7965 From Richard Henderson <rth@redhat.com>:
7966 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7967
e0f7ec59
AC
79682003-05-31 Andrew Cagney <cagney@redhat.com>
7969
7970 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7971 forward declaration.
7972 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7973 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7974 (mips_find_saved_regs): Use set_reg_offset.
7975 (mips_frame_init_saved_regs): Delete function.
7976 (mips_pop_frame): Call mips_find_saved_regs instead of
7977 DEPRECATED_FRAME_INIT_SAVED_REGS.
7978
68dcc709
AC
79792003-05-31 Andrew Cagney <cagney@redhat.com>
7980
7981 * mips-tdep.c (mips_gdbarch_init): Do not set
7982 deprecated_max_register_raw_size, register_virtual_size, and
7983 deprecated_max_register_virtual_size.
7984
cfc14b3a
MK
79852003-05-31 Mark Kettenis <kettenis@gnu.org>
7986
6405b0a6
MK
7987 * i386-tdep.c: Include "dwarf2-frame.h".
7988 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7989 * Makefile.in (i386-tdep.o): Update dependencies.
7990
cfc14b3a
MK
7991 * dwarf2-frame.c, dwarf2-frame.h: New files.
7992 * Makefile.in (SFILES): Add dwarf2-frame.c.
7993 (dwarf2_frame_h): Define.
7994 (COMMON_OBS): Add dwarf2-frame.o.
7995 (dwarf2-frame.o): Add dependencies.
7996
6a2751d2
AJ
79972003-05-31 Andreas Jaeger <aj@suse.de>
7998
7999 * x86-64-linux-nat.c: Fix comment.
8000
1c3545ae
MK
80012003-05-31 Mark Kettenis <kettenis@gnu.org>
8002
10f93086
MK
8003 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8004 function signature.
8005
1c3545ae
MK
8006 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8007 have a sigcontext_addr handler.
8008 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8009 sigcontext_addr handler.
8010
e11c53d2
AC
80112003-05-31 Andrew Cagney <cagney@redhat.com>
8012
8013 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8014 (print_fp_register_row): Replace do_fp_register_row.
8015 (mips_print_fp_register): Add "file" and "frame" parameters.
8016 (mips_print_register): Add "file" and "frame" parameters.
8017 (mips_print_registers_info): Replace mips_do_registers_info.
8018 (mips_gdbarch_init): Set print_registers_info instead of
8019 deprecated_do_registers_info.
8020 (mips_read_fp_register_single): Add "frame" parameter.
8021 (mips_read_fp_register_double): Add "frame" parameter.
8022
a3386186
MK
80232003-05-31 Mark Kettenis <kettenis@gnu.org>
8024
70913449
MK
8025 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8026 Fixes a bug where GDB would print the wrong register names for
8027 targets without SSE.
8028
2b5e0749
MK
8029 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8030 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8031 registers.
8032
8033 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8034 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8035 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8036 TDEP->sc_sp_offset.
8037
a3386186
MK
8038 From Michal Ludvig <mludvig@suse.cz>:
8039 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8040 and `sc_num_regs'.
8041 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8042 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8043 I386_ST0_REGNUM): Move here from...
8044 * i386-tdep.c: ... here.
8045 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8046 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8047 registers if possible.
8048 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8049 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8050 Remove variables.
8051 (i386bsd_sc_reg_offset): New variable.
8052 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8053 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8054 TDEP->sc_sp_offset.
8055 (i386fbsd_sc_reg_offset): New variable.
8056 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8057 TDEP->sc_num_regs.
8058 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8059 variables.
8060 (i386fbsd4_sc_reg_offset): New variable.
8061 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8062 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8063 TDEP->sc_sp_offset.
8064 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8065 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8066 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8067 Remove variables.
8068 (i386nbsd_sc_reg_offset): New variable.
8069 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8070 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8071 TDEP->sc_sp_offset.
8072 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8073 Remove variables.
8074 (i386obsd_sc_reg_offset): New variable.
8075 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8076 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8077 TDEP->sc_sp_offset.
8078 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8079 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8080 for frame pointer offset in `struct sigcontext'.
8081
25ab4790
AC
80822003-05-31 Andrew Cagney <cagney@redhat.com>
8083
8084 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8085 architecture methods call_dummy_words, sizeof_call_dummy_words,
8086 push_return_address, store_struct_return, and fix_call_dummy. Set
8087 push_dummy_call instead of deprecated_push_arguments.
8088 (mips_store_struct_return): Delete function.
8089 (mips_fix_call_dummy): Delete function.
8090 (mips_push_return_address): Delete function.
8091 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8092 RA_REGNUM and T9_REGNUM.
8093 (mips_n32n64_push_dummy_call): Ditto for
8094 mips_n32n64_push_arguments.
8095 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8096 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8097
6a65450a
AC
80982003-05-31 Andrew Cagney <cagney@redhat.com>
8099
8100 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8101 "dummy_addr" to "bp_addr".
8102 * infcall.c (call_function_by_hand): Pass "funaddr" to
8103 gdbarch_push_dummy_call.
8104 * gdbarch.h, gdbarch.c: Re-generate.
8105 * i386-tdep.c (i386_push_dummy_call): Update.
8106 * arm-tdep.c (arm_push_dummy_call): Update.
8107 * d10v-tdep.c (d10v_push_dummy_call): Update.
8108
c4f35dd8
MK
81092003-05-31 Mark Kettenis <kettenis@gnu.org>
8110
8111 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8112 variable declarations.
8113 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8114 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8115 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8116 x86_64_init_frame_pc, x86_64_init_frame_pc,
8117 x86_64_function_has_prologue): Remove prototypes.
8118 (X86_64_NUM_GREGS): New define.
8119 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8120 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8121 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8122 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8123 XMM1_REGNUM): Remove defines.
8124 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8125 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8126 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8127 X86_64_XMM1_REGNUM): New defines.
8128 (struct x86_64_register_info): Renamed from `struct
8129 register_info'. Remove `size' member.
8130 (x86_64_register_info_table): Remove variable.
8131 (x86_64_register_info): New variable.
8132 (X86_64_NUM_REGS): New define.
8133 (X86_64_NUM_GREGS): Remove define.
8134 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8135 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8136 Remove variables.
8137 (x86_54_dwarf2_reg_to_regnum): Remove function.
8138 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8139 (x86_64_dwarf_reg_to_regnum): New function.
8140 (x86_64_register_name): Rewrite.
8141 (x86_64_register_raw_size): Remove function.
8142 (x86_64_register_byte_table): Remove variable.
8143 (x86_64_register_byte): Remove function.
8144 (x86_64_register_virtual_type): Remove function.
8145 (x86_64_register_type): New function.
8146 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8147 x86_64_register_convert_to_raw): Remove functions.
8148 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8149 (x86_64_use_struct_convention): Make static. Adjust for renamed
8150 defines.
8151 (x86_64_frame_init_saved_regs): Remove function.
8152 (x86_64_push_arguments): Make static. Change to accept a regcache
8153 as argument.
8154 (x86_64_store_return_value, x86_64_extract_return_value): Make
8155 static. Rewrite based on i386 counterparts.
8156 (x86_64_push_dummy_call): New function.
8157 (X86_64_NUM_SAVED_REGS): New define.
8158 (x86_64_register_number): Remove function.
8159 (x86_64_store_struct_return): Remove function.
8160 (x86_64_frameless_function_invocation,
8161 x86_64_function_has_prologue): Remove functions.
8162 (PROLOG_BUFSIZE): Remove define.
8163 (struct x86_64_frame_cache): New structure.
8164 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8165 x86_64_frame_cache, x86_64_frame_this_id,
8166 x86_64_frame_prev_register, x86_64_frame_p,
8167 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8168 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8169 functions.
8170 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8171 variables.
8172 (x86_64_skip_prologue): Rewrite in terms of
8173 x86_64_analyze_prologue.
8174 (x86_64_frame_base_address): New function.
8175 (x86_64_frame_base): New variable.
8176 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8177 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8178 set deprecated_fp_regnum, deprecated_register_size,
8179 deprecated_register_bytes, register_raw_size, register_byte,
8180 register_virtual_type, register_convertiable,
8181 register_convert_to_virtual, convert_to_raw,
8182 deprecated_get_saved_register, deprecated_target_read_fp,
8183 deprecated_push_arguments, deprecated_push_return_address,
8184 deprecated_pop_frame, deprecated_store_struct_return,
8185 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8186 frameless_function_invocation, deprecated_frame_saved_pc,
8187 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8188 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8189 deprecated_init_frame_pc and virtual_frame_pointer. Call
8190 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8191 and x86_64_frame_p. Call frame_base_set_default to register
8192 x86_64_frame_base.
8193 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8194 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8195 (_initialize_x86_64_tdep): Remove function.
8196 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8197 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8198 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8199 define.
8200 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8201 (x86_64_linux_sigcontext_addr): Rewrite.
8202 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8203 x86_64_linux_frame_saved_pc): Remove functions.
8204 (x86_64_linux_pc_in_sigtramp): Renamed from
8205 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8206 trampoline.
8207 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8208 Remove_functions.
8209 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8210 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8211 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8212 (x86_64_regmap): Rename to regmap.
8213 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8214 x86_64_num_gregs.
8215 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8216 x86_64_regmap.
8217 (x86_64_fxsave_offset): Remove function.
8218 (supply_fpregset): Simply call x86_64_supply_fxsave.
8219 (fill_fpregset): Simply call x86_64_fill_fxsave.
8220 (fetch_inferior_registers, store_inferior_registers): Avoid
8221 asignment in if-statement.
8222 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8223 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8224 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8225 (fetch_core_registers): Remove function.
8226 (linux_elf_core_fns): Remove.
8227 (offsetoff): Don't define.
8228 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8229 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8230 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8231 add core-regset.o.
8232 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8233 protection against multiple includes instead of NM_X86_64_h. Add
8234 various comments. Include "config/nm-linux.h". Don't include
8235 <signal.h>.
8236 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8237 GET_THREAD_SIGNALS): Remove defines.
8238 (x86_64_register_u_addr, kernel_u_size,
8239 lin_thread_get_thread_signals): Remove prototypes.
8240 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8241 [HAVE_LINK_H]: Don't include "solib.h".
8242 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8243 * config/i386/tm-x86-64linux.h: Fix comments.
8244 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8245 x86-64-tdep.o): Update dependencies.
8246
c25083af
AC
82472003-05-30 Andrew Cagney <cagney@redhat.com>
8248
c8f55a7b
AC
8249 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8250 Change parameter type to a "struct regcache *".
8251
c25083af
AC
8252 * gdbarch.sh: Regardless of the multi-arch level, always define
8253 the macro when not already defined.
8254 * gdbarch.h, gdbarch.c: Re-generate.
8255
fbe586ae
RH
82562003-05-30 Richard Henderson <rth@redhat.com>
8257
8258 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8259 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8260 (alpha_mdebug_frame_this_id): Likewise.
8261 (alpha_mdebug_frame_prev_register): Likewise.
8262 (alpha_mdebug_frame_base_address): Likewise.
8263 (alpha_mdebug_frame_locals_address): Likewise.
8264 (alpha_mdebug_frame_args_address): Likewise.
8265 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8266 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8267 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8268 loop increment.
8269 (alpha_heuristic_frame_this_id): Make static.
8270 (alpha_heuristic_frame_prev_register): Likewise.
8271 (alpha_heuristic_frame_base_address): Likewise.
8272 * alpha-tdep.h: Update.
8273
acd5c798
MK
82742003-05-30 Mark Kettenis <kettenis@gnu.org>
8275
8276 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8277 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8278 defenitions.
8279 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8280 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8281 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8282 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8283 I386_ST0_REGNUM): New defines.
8284 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8285 codestream_get): Remove define.
8286 (codestream_next_addr, condestream_addr, condestream_buf,
8287 codestream_off, codestream_cnt): Remove variables.
8288 (codestream_fill, codestream_seek, codestream_read): Remove
8289 functions.
8290 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8291 functionality.
8292 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8293 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8294 i386_frame_saved_pc, i386_saved_pc_after_call,
8295 i386_frame_num_args, i386_frame_init_saved_regs,
8296 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8297 i386_push_arguments): Remove functions.
8298 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8299 functionality. Use i386_analyze_prologue instead of
8300 i386_get_frame_setup.
8301 (I386_NUM_SAVED_REGS): New define.
8302 (struct i386_frame_cache): New structure.
8303 (i386_alloc_frame_cache, i386_analyze_struct_return,
8304 i386_skip_probe, i386_analyze_frame_setup,
8305 i386_analyze_register_saves, i386_analyze_prologue,
8306 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8307 i386_frame_prev_register, i386_sigtramp_frame_cache,
8308 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8309 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8310 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8311 New functions.
8312 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8313 New variables.
8314 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8315 I386_EAX_REGNUM and I386_EDX_REGNUM.
8316 (i386_extract_return_value, i386_store_return_value): Use
8317 I386_ST0_REGNUM where appropriate.
8318 (i386_extract_struct_value_address): Rewrite to use extract_address.
8319 (i386_svr4_pc_in_sigtramp): Add comment.
8320 (i386_svr4_sigcontext_addr): Rewrite.
8321 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8322 TDEP->sc_sp_offset.
8323 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8324 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8325 of new defines. Set push_dummy_call, don't set
8326 deprecated_push_arguments, deprecated_push_return_address,
8327 deprecated_pop_frame. Don't set parm_boundary. Don't set
8328 deprecated_frame_chain, deprecated_frame_saved_pc,
8329 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8330 save_dummy_frame_tos, unwind_pc. Call
8331 frame_unwind_append_predicate and frame_base_set_default. Don't
8332 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8333 Don't set frameless_function_invocation. Don't set
8334 deprecated_register_bytes, deprecated_register_size,
8335 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8336 * i386-linux-tdep.c: Fix formatting in some comments.
8337 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8338 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8339 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8340 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8341 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8342 redundant parentheses.
8343 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8344 (i386_linux_sigcontext_addr): Use it. Rewrite.
8345 (find_minsym_and_objfile): Change name of second argument.
8346 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8347 changed. Use frame_pc_unwind instead of
8348 DEPRECATED_SAVED_PC_AFTER_CALL.
8349 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8350 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8351 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8352 unwinder.
8353 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8354 "dummy-frame.h".
8355 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8356 (_initialize_i386_cygwin_tdep): New prototype.
8357 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8358 deprecated_frame_chain_valid.
8359 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8360 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8361 Rely on the SVR4 defaults.
8362 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8363 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8364
c89b70f1
AC
83652003-05-30 Andrew Cagney <cagney@redhat.com>
8366
8367 * infcall.c (call_function_by_hand): Always call
8368 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8369
85b32d22
RH
83702003-05-30 Richard Henderson <rth@redhat.com>
8371
c89b70f1
AC
8372 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8373 increment.
85b32d22 8374
bfe51b1e
JB
83752003-05-29 Jim Blandy <jimb@redhat.com>
8376
8377 Use gdbarch methods for solib stuff on PowerPC Linux.
8378 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8379 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8380 show through.
8381 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8382 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8383 giving the same effect as the #definitions above.
8384
1abf022c
AF
83852003-05-29 Adam Fedor <fedor@gnu.org>
8386
8387 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8388 (find_implementation_from_class): Replace it with the standard
8389 case i.e. do nothing.
8390
d2427a71
RH
83912003-05-29 Richard Henderson <rth@redhat.com>
8392
8393 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8394 (alpha_linux_sigtramp_offset): Use it. Make static.
8395 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8396 update for new frame model.
8397 * alpha-mdebug-tdep.c: New file.
8398 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8399 (alpha_osf1_init_abi): Install it.
8400 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8401 (linked_proc_desc_table): Remove.
8402 (alpha_frame_past_sigtramp_frame): Remove.
8403 (alpha_dynamic_sigtramp_offset): Remove.
8404 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8405 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8406 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8407 (push_sigtramp_desc): Remove.
8408 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8409 (alpha_cannot_store_register): Likewise.
8410 (alpha_sigcontext_addr): Remove.
8411 (alpha_find_saved_regs): Remove.
8412 (alpha_frame_init_saved_regs): Remove.
8413 (alpha_init_frame_pc_first): Remove.
8414 (read_next_frame_reg): Remove.
8415 (alpha_frame_saved_pc): Remove.
8416 (alpha_saved_pc_after_call): Remove.
8417 (temp_proc_desc, temp_saved_regs): Remove.
8418 (alpha_about_to_return): Remove.
8419 (cached_proc_desc): Remove.
8420 (alpha_frame_chain): Remove.
8421 (alpha_print_extra_frame_info): Remove.
8422 (alpha_init_extra_frame_info): Remove.
8423 (alpha_frame_locals_address): Remove.
8424 (alpha_frame_args_address): Remove.
8425 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8426 (alpha_push_dummy_frame): Remove.
8427 (alpha_pop_frame): Remove.
8428 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8429 (alpha_read_insn): New.
8430 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8431 for different insn encodings.
8432 (alpha_in_lenient_prologue): Remove.
8433 (struct alpha_sigtramp_unwind_cache): New.
8434 (alpha_sigtramp_frame_unwind_cache): New.
8435 (alpha_sigtramp_register_address): New.
8436 (alpha_sigtramp_frame_this_id): New.
8437 (alpha_sigtramp_frame_prev_register): New.
8438 (alpha_sigtramp_frame_unwind): New.
8439 (alpha_sigtramp_frame_p): New.
8440 (struct alpha_heuristic_unwind_cache): New.
8441 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8442 don't count nop insns that occur between functions.
8443 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8444 heuristic_proc_desc, but without the mdebug wrapping.
8445 (alpha_heuristic_frame_this_id): New.
8446 (alpha_heuristic_frame_prev_register): New.
8447 (alpha_heuristic_frame_unwind): New.
8448 (alpha_heuristic_frame_p): New.
8449 (alpha_heuristic_frame_base_address): New.
8450 (alpha_heuristic_frame_base): New.
8451 (alpha_unwind_dummy_id): New.
8452 (alpha_unwind_pc): New.
8453 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8454 frame related deprecated initializations; install replacements.
8455 (alpha_dump_tdep): Remove.
8456 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8457 (alpha_read_insn, alpha_after_prologue,
8458 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8459 alpha_heuristic_frame_prev_register,
8460 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8461 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8462 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8463 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8464
93ec1121
AC
84652003-05-29 Andrew Cagney <cagney@redhat.com>
8466
8467 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8468 dependant on the availability of ASSERT_FUNCTION.
8469 (ASSERT_FUNCTION): Do not define when there is no function name.
8470
98f08d3d
KB
84712003-05-29 Kevin Buettner <kevinb@redhat.com>
8472
8473 From Jimi X <jimix@watson.ibm.com>:
8474 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8475
0897f59b
JB
84762003-05-28 Jim Blandy <jimb@redhat.com>
8477
8478 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8479 argument to ptrace to int; the system headers should give it the
8480 right type, and pointers don't fit in ints on powerpc64-*-*.
8481
14898363
L
84822003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8483
8484 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8485 DW_TAG_catch_block.
8486
a7a48797
EZ
84872003-05-26 Elena Zannoni <ezannoni@redhat.com>
8488
8489 * stabsread.c (dbx_lookup_type): Make static.
8490 (read_type): Ditto.
8491 (add_undefined_type): Ditto.
8492 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8493 not export.
8494
f5479e9c
EZ
84952003-05-26 Elena Zannoni <ezannoni@redhat.com>
8496
8497 * hpread.c (hpread_has_name): Make static.
8498 (hpread_psymtab_to_symtab): Ditto.
8499 (file_exists): Ditto.
8500 (hpread_call_pxdb): Ditto.
8501 (hpread_pxdb_needed): Ditto.
8502 (hpread_quick_traverse): Ditto.
8503 (hpread_get_header): Ditto.
8504 (hpread_get_lntt): Ditto.
8505 (hpread_get_slt): Ditto.
8506 (class_of): Ditto.
8507
eb2e12d7
AS
85082003-05-25 Andreas Schwab <schwab@suse.de>
8509
78bf922a
AS
8510 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8511 stack_align and deprecated_extra_stack_alignment_needed.
8512 (m68k_stack_align): Delete.
8513
eb2e12d7
AS
8514 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8515 (m68k_register_virtual_size): Likewise.
8516 (altos_skip_prologue): Remove obsolete function.
8517 (isi_frame_num_args): Likewise.
8518 (news_frame_num_args): Likewise.
8519 (m68k_fix_call_dummy): Make static.
8520 (m68k_push_dummy_frame): Likewise.
8521 (m68k_pop_frame): Likewise.
8522 (m68k_skip_prologue): Likewise.
8523 (m68k_frame_init_saved_regs): Likewise.
8524 (m68k_saved_pc_after_call): Likewise.
8525 (m68k_get_longjmp_target): Make multi-arch.
8526 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8527 structure. Register m68k_get_longjmp_target if enabled.
8528 * m68k-tdep.h (struct gdbarch_tdep): Define.
8529 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8530
8531 * Makefile.in (config.status): Also depend on configure.tgt
8532 and configure.host.
8533 (m68klinux-tdep.o): Update dependencies.
8534 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8535 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8536 (M68K_LINUX_JB_PC): Define.
8537 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8538 and take additional parameter.
8539 (m68k_linux_sigtramp_saved_pc): Update.
8540 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8541 m68k_linux_pc_in_sigtramp, in_plt_section,
8542 find_solib_trampoline_target.
8543 * config/m68k/tm-linux.h: Don't include any tm headers.
8544 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8545 (JB_ELEMENT_SIZE): Likewise.
8546 (JB_PC): Likewise.
8547 (GET_LONGJMP_TARGET): Likewise.
8548 (IN_SIGTRAMP): Likewise.
8549 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8550
eb2c22dc
MK
85512003-05-25 Mark Kettenis <kettenis@gnu.org>
8552
8553 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8554 (sparc32_push_arguments): Re-implement by calling
8555 sparc32_do_push_arguments.
8556
44b7b84e
MK
85572003-05-25 Mark Kettenis <kettenis@gnu.org>
8558
8559 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8560 SPARC_O1_REGNUM): New defines.
8561 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8562 (sparc32_store_return_value): New function.
8563 (sparc_extract_struct_value_address): Rewrite to operate on a
8564 regcache.
8565 (sparc_gdbarch_init): Don't set
8566 deprecated_extract_struct_value_address. Set
8567 extract_struct_value_address instead. Don't set
8568 deprecated_extract_return_value and deprecated_store_return_value
8569 for 32-bit targets. Set extract_return_value and
8570 store_return_value instead.
8571 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8572 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8573 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8574 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8575 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8576 (sparc_store_return_value): Remove prototype.
8577 (sparc32_store_return_value): New prototype.
8578 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8579 Adjust prototypes.
8580
f6ad61e3
MK
85812003-05-24 Mark Kettenis <kettenis@gnu.org>
8582
8583 * sparcnbsd-tdep.c: Include "gdb_string.h".
8584
b276f1bb
AC
85852003-05-23 Andrew Cagney <cagney@redhat.com>
8586
8587 * p-valprint.c (pascal_val_print): Replace extract_address with
8588 the inline equivalent extract_unsigned_integer.
8589 * jv-valprint.c (java_value_print): Ditto.
8590 * ada-valprint.c (ada_val_print_1): Ditto.
8591 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8592
e76c5fcc
TR
85932003-05-23 Theodore A. Roth <troth@openavr.org>
8594
8595 * blockframe.c (frameless_look_for_prologue): Remove unused
8596 after_prologue variable.
8597
2cdd89cb
MK
85982003-05-23 Mark Kettenis <kettenis@gnu.org>
8599
8600 * blockframe.c (get_pc_function_start): Rewrite to avoid
8601 asignments in if-statements.
8602
182d43bc
EZ
86032003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8604
8605 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8606 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8607 files, don't relocate absolute symbols (and do use mst_abs).
8608
e8f3fcdd
AC
86092003-05-23 Andrew Cagney <cagney@redhat.com>
8610
8611 * objc-lang.c: Include "gdb_assert.h".
8612 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8613 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8614 (gdb_check, gdb_check_fatal): Delete functions.
8615 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8616 gdb_assert.
8617 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8618 * Makefile.in (objc-lang.o): Update dependencies.
8619
3c23e6fb
ILT
86202003-05-22 Ian Lance Taylor <ian@airs.com>
8621
8622 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8623 with fprintf_filtered, not fprintf_unfiltered.
8624
af1342ab
AC
86252003-05-22 Andrew Cagney <cagney@redhat.com>
8626
8627 * stack.c (frame_info): Inline extract_address, replacing it with
8628 extract_unsigned_integer.
8629 * findvar.c (unsigned_pointer_to_address): Ditto.
8630 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8631 * dwarf2expr.c (dwarf2_read_address): Ditto.
8632 * frame.c (frame_pc_unwind): Update comment.
8633 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8634
47e242ec
JJ
86352003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8636
8637 * infptrace.c (detach): Call print_sys_errmsg rather than
8638 perror_with_name to issue warning message when errno is non-zero
8639 after calling ptrace detach.
8640
e2ac8128
JB
86412003-05-21 J. Brobecker <brobecker@gnat.com>
8642
8643 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8644 macro definitions from here...
8645 * hppa-tdep.c: ...to there.
8646
92b3541e
KB
86472003-05-20 Kevin Buettner <kevinb@redhat.com>
8648
8649 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8650 register_ptrace_addr(). Fix all callers.
8651
55809acb
AS
86522003-05-21 Andreas Schwab <schwab@suse.de>
8653
8654 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8655 dependencies.
8656 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8657 end.
8658 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8659 (_initialize_m68k_linux_tdep): New function.
8660 (m68k_linux_frame_saved_pc): Make static.
8661 (m68k_linux_extract_return_value): Likewise.
8662 (m68k_linux_store_return_value): Likewise.
8663 (m68k_linux_extract_struct_value_address): Likewise.
8664 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8665 Remove.
8666 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8667 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8668 (DEPRECATED_FRAME_SAVED_PC): Remove.
8669
0fbc10f7
KW
86702003-05-20 Kris Warkentin <kewarken@qnx.com>
8671
8672 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8673 regset numbering rather than our own.
8674
58da2eb2
DC
86752003-05-19 David Carlton <carlton@bactrian.org>
8676
8677 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8678
1fcb5155
DC
86792003-05-19 David Carlton <carlton@bactrian.org>
8680
8681 Partial fix for PR c++/827.
8682 * cp-support.h: Include symtab.h.
8683 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8684 * cp-namespace.c: Update contributors.
8685 (cp_lookup_symbol_nonlocal): New.
8686 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8687 (lookup_symbol_file): Ditto.
8688 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8689 * block.h: Declare block_scope, block_using, block_global_block.
8690 * block.c (block_scope): New.
8691 (block_using, block_global_block): Ditto.
8692 * Makefile.in (cp_support_h): Depend on symtab_h.
8693 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8694
5f9a71c3
DC
86952003-05-19 David Carlton <carlton@bactrian.org>
8696
8697 * language.h (struct language_defn): Add 'la_value_of_this'
8698 and 'la_lookup_symbol_nonlocal' members.
8699 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8700 lookup_symbol_static, lookup_symbol_global,
8701 lookup_symbol_aux_block.
8702 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8703 if we should search fields of this and how to do static/global
8704 lookup.
8705 (lookup_symbol_aux_block): Make extern.
8706 (basic_lookup_symbol_nonlocal): New.
8707 (lookup_symbol_static, lookup_symbol_global): Ditto.
8708 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8709 'la_lookup_symbol_nonlocal' members.
8710 * c-lang.c (c_language_defn, cplus_language_defn)
8711 (asm_language_defn, minimal_language_defn): Ditto.
8712 * jv-lang.c (java_language_defn): Ditto.
8713 * language.c (unknown_language_defn, auto_language_defn)
8714 (local_language_defn): Ditto.
8715 * m2-lang.c (m2_language_defn): Ditto.
8716 * objc-lang.c (objc_language_defn): Ditto.
8717 * scm-lang.c (scm_language_defn): Ditto.
8718 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8719 * p-lang.c (pascal_language_defn): Ditto for both.
8720 * Makefile.in (f-lang.o): Depend on value_h.
8721 (p-lang.o): Ditto.
8722
89a9d1b1
DC
87232003-05-19 David Carlton <carlton@bactrian.org>
8724
8725 * block.h: Declare block_static_block.
8726 * block.c (block_static_block): New.
8727 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8728 lookup_symbol_aux_local, calling block_static_block instead.
8729 (lookup_symbol_aux_local): Delete 'static_block' argument.
8730
eed3f8ab
DC
87312003-05-19 David Carlton <carlton@bactrian.org>
8732
8733 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8734
a09d8bda
ML
87352003-05-19 Michal Ludvig <mludvig@suse.cz>
8736
8737 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8738 register numbers mapping.
8739
69636828
AF
87402003-05-18 Adam Fedor <fedor@gnu.org>
8741
8742 * symtab.c (completion_list_objc_symbol): New function.
8743 (make_symbol_completion_list): Use it to add ObjC symbols
8744 when looking though the list.
8745 (language_search_unquoted_string): New function.
8746 (make_file_symbol_completion_list): Use it.
8747
55baeb84
AS
87482003-05-18 Andreas Schwab <schwab@suse.de>
8749
d0b45d99
AS
8750 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8751 dependencies.
8752 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8753 as m68k_linux_extract_return_value.
8754 (DEPRECATED_STORE_RETURN_VALUE): Define as
8755 m68k_linux_store_return_value.
8756 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8757 m68k_linux_extract_struct_value_address.
8758 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8759 get_next_frame, get_frame_base, get_frame_pc.
8760 (m68k_linux_frame_saved_pc): Use get_frame_base.
8761 (m68k_linux_extract_return_value): New function.
8762 (m68k_linux_store_return_value): New function.
8763 (m68k_linux_extract_struct_value_address): New function.
8764 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8765
55baeb84
AS
8766 * c-exp.y (typebase): Remove duplicate occurence of
8767 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8768 of lookup_signed_typename.
55baeb84 8769
b6b08ebf
MK
87702003-05-18 Mark Kettenis <kettenis@gnu.org>
8771
8772 * dwarf2loc.c (find_location_expression): Change type of second
8773 argument to `size_t *'.
8774 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8775 for size variable.
8776
5ad1c190
DC
87772003-05-18 David Carlton <carlton@bactrian.org>
8778
8779 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8780 'linkage_name'. Add comment.
8781 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8782 'linkage_name'.
8783 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8784 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8785 (lookup_block_symbol): Ditto.
8786
b8b527c5
AC
87872003-05-16 Andrew Cagney <cagney@redhat.com>
8788
8789 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8790 * gdbarch.h, gdbarch.c: Re-generate.
8791 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8792 * TODO (REGISTER_BYTES): Delete reference.
8793 * alpha-tdep.c (alpha_gdbarch_init): Update.
8794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8795 * x86-64-tdep.c (x86_64_init_abi): Update.
8796 * vax-tdep.c (vax_gdbarch_init): Update.
8797 * v850-tdep.c (v850_gdbarch_init): Update.
8798 * sparc-tdep.c (sparc_gdbarch_init): Update.
8799 * sh-tdep.c (sh_gdbarch_init): Update.
8800 * s390-tdep.c (s390_gdbarch_init): Update.
8801 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8802 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8803 (ns32k_gdbarch_init_32382): Update.
8804 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8805 * mcore-tdep.c (mcore_gdbarch_init): Update.
8806 * m68k-tdep.c (m68k_gdbarch_init): Update.
8807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8808 * ia64-tdep.c (ia64_gdbarch_init): Update.
8809 * i386-tdep.c (i386_gdbarch_init): Update.
8810 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8811 * hppa-tdep.c (hppa_gdbarch_init): Update.
8812 * h8300-tdep.c (h8300_gdbarch_init): Update.
8813 * frv-tdep.c (frv_gdbarch_init): Update.
8814 * cris-tdep.c (cris_gdbarch_init): Update.
8815 * avr-tdep.c (avr_gdbarch_init): Update.
8816 * arm-tdep.c (arm_gdbarch_init): Update.
8817 * sparc-tdep.c (sparc_pop_frame): Update.
8818 * rs6000-tdep.c (rs6000_pop_frame): Update.
8819 * remote.c (init_remote_state): Update.
8820 (remote_prepare_to_store): Update.
8821 * remote-vx.c (vx_prepare_to_store): Update.
8822 * remote-sds.c (sds_fetch_registers): Update.
8823 (sds_prepare_to_store): Update.
8824 * remote-array.c: Update.
8825 * regcache.c (init_legacy_regcache_descr): Update.
8826 (init_regcache_descr): Update.
8827 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8828 (mips_o64_extract_return_value): Update.
8829 * irix5-nat.c (fetch_core_registers): Update.
8830 * irix4-nat.c (fetch_core_registers): Update.
8831 * i386-tdep.h: Update.
8832 * hppa-tdep.c (pa_do_registers_info): Update.
8833 (pa_do_strcat_registers_info): Update.
8834 * cris-tdep.c (cris_register_bytes_ok): Update.
8835 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8836 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8837 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8838 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8839 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8840 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8841 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8842 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8843 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8844 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8845 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8846 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8847 (REGISTER_BYTES_OK): Update.
8848 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8849 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8850
ee2842e2
ILT
88512003-05-16 Ian Lance Taylor <ian@airs.com>
8852
8853 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8854 (vax_print_insn, print_insn_arg): Remove static functions.
8855 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8856 print_insn_vax from opcodes library.
8857 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8858
973177d3
AC
88592003-05-15 Andrew Cagney <cagney@redhat.com>
8860
aaab4dba
AC
8861 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8862 * target.h (memory_breakpoint_from_pc): Delete declaration.
8863 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8864 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8865 * monitor.c (monitor_insert_breakpoint): Use
8866 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8867 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8868 * gdbarch.h, gdbarch.c: Re-generate.
8869 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8870 (sparc_gdbarch_init): Set breakpoint_from_pc to
8871 sparc_breakpoint_from_pc.
8872 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8873 (BREAKPOINT_FROM_PC): Define.
8874 (sparc_breakpoint_from_pc): Declare.
8875 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8876 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8877 (BREAKPOINT_FROM_PC): Define.
8878 (BREAKPOINT): Delete macro.
8879 * target.h: Update comment.
8880 * s390-tdep.c (s390_gdbarch_init): Update comments.
8881 * remote.c: Update comments.
8882 * remote-mips.c: Update comments.
8883 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8884 * mem-break.c: Update comment.
8885 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8886 (ia64_memory_insert_breakpoint): Update.
8887 * config/sparc/tm-sparc.h: Update comment.
8888 * config/pa/tm-hppa64.h: Update comment.
8889 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8890 (rs6000_breakpoint_from_pc): Update.
8891 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8892 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8893 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8894 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8895 (mips_breakpoint_from_pc): Update.
8896 (mips_dump_tdep): Update.
8897
e06963ff
AC
8898 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8899 * minsyms.c (lookup_minimal_symbol): Inline
8900 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8901
973177d3
AC
8902 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8903 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8904 * p-lang.c (pascal_printstr): Ditto.
8905 * objc-lang.c (objc_printstr): Ditto.
8906 * m2-lang.c (m2_printstr): Ditto.
8907 * jv-valprint.c (java_print_value_fields): Ditto.
8908 * f-lang.c (f_printstr): Ditto.
8909 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8910 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8911 for repeat_count_threshold.
8912 * Makefile.in (cp-valprint.o): Update dependencies.
8913
5ea2bd7f 89142003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8915
5ea2bd7f
JJ
8916 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8917 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8918 they start with mov r2,r12. Support skipping over indirect stores
8919 of the input registers. Upon hitting a non-nop branch instruction
8920 or predicated instruction, bail out by setting lim_pc to the current
8921 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8922 beyond our calculated value and we have trust_limit set,
8923 use the lim_pc value.
8924
cc8c88f3
AC
89252003-05-15 Andrew Cagney <cagney@redhat.com>
8926
8927 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8928 generic_find_dummy_frame.
8929 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8930 (deprecated_generic_find_dummy_frame): Update.
8931 (deprecated_read_register_dummy): Update.
8932 * frame.c (deprecated_generic_get_saved_register): Update.
8933
909cd28e
TR
89342003-05-15 Theodore A. Roth <troth@openavr.org>
8935
8936 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8937 (avr_gdbarch_init): Set breakpoint_from_pc method.
8938
b923b08d
AC
89392003-05-15 Andrew Cagney <cagney@redhat.com>
8940
8941 * regcache.c (build_regcache): Set deprecated_register_valid
8942 directly.
8943 (deprecated_grub_regcache_for_register_valid): Delete function.
8944 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8945 declaration.
8946
ae2f03ac 89472003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8948
8949 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8950 * symtab.c (lookup_symbol_aux): Delete calls to
8951 lookup_symbol_aux_minsyms.
8952 (lookup_symbol_aux_minsyms): Comment out function and
8953 prototype. Delete lookup by mangled name.
ae2f03ac 8954
18ec9831
KB
89552003-05-14 Kevin Buettner <kevinb@redhat.com>
8956
8957 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8958 correctly indicate an empty stack and ``stack_allocated'' to the
8959 indicate the number of elements initially allocated.
8960 (dwarf_expr_grow_stack): Simplify method for computing new
8961 stack size. Don't loop infinitely if ``stack_len'' is zero.
8962 (execute_stack_op): Move ``ctx->in_reg'' initialization
8963 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8964 be used in conjuction with DW_OP_piece. Revise error message
8965 accordingly.
8966
de18ac1f
TR
89672003-05-14 Theodore A. Roth <troth@openavr.org>
8968
8969 * MAINTAINERS: Update my email address.
8970 * avr-tdep.c: Ditto.
8971
176620f1
EZ
89722003-05-14 Elena Zannoni <ezannoni@redhat.com>
8973
8974 * symtab.h (enum domain_enum): Rename from namespace_enum.
8975 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8976 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8977 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8978 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8979 TYPES_NAMESPACE, METHODS_NAMESPACE.
8980 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8981 (struct symbol, struct partial_symbol): Rename field
8982 'namespace_enum namespace' to 'domain_enum domain'.
8983 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8984 Delete old define kludge for namespace.
8985
8986 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8987 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8988 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8989 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8990 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8991 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8992 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8993 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8994 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8995 occurrences of the above.
8996
b7f31508
ILT
89972003-05-14 Ian Lance Taylor <ian@airs.com>
8998
8999 * Makefile.in (install-only): Use $(SHELL) when running
9000 mkinstalldirs.
9001
2fdbdd39
ILT
90022003-05-13 Ian Lance Taylor <ian@airs.com>
9003
a208d82c
ILT
9004 * MAINTAINERS (write after approval): Add myself.
9005
2fdbdd39
ILT
9006 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9007 second and third arguments.
9008 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9009 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9010
fbd9dcd3
AC
90112003-05-13 Andrew Cagney <cagney@redhat.com>
9012
9013 * defs.h (store_address): Delete declaration.
9014 findvar.c (store_address): Delete function.
9015 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9016 store_unsigned_integer.
9017 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9018 * v850-tdep.c (v850_push_arguments): Ditto.
9019 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9020 * sh-tdep.c (sh64_get_saved_register): Ditto.
9021 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9022 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9023 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9024 (mips_get_saved_register): Ditto.
9025 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9026 (find_func_descr, ia64_push_arguments): Ditto.
9027 * i386-tdep.c (i386_push_arguments): Ditto.
9028 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9029 * frv-tdep.c (frv_push_arguments): Ditto.
9030 * frame.c (legacy_saved_regs_prev_register): Ditto.
9031 (deprecated_generic_get_saved_register): Ditto.
9032 * findvar.c (unsigned_address_to_pointer): Ditto.
9033 * dwarf2read.c (dwarf2_const_value): Ditto.
9034 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9035 * alpha-tdep.c (alpha_push_arguments): Ditto.
9036
6760f9e6
JB
90372003-05-12 J. Brobecker <brobecker@gnat.com>
9038
9039 * NEWS: Mention that the hppa-hpux port has been partially
9040 multiarched (32bit ABIT only, so far).
9041
30e221b4
AC
90422003-05-11 Andrew Cagney <cagney@redhat.com>
9043
9044 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9045 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9046 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9047 sim/testsuite/sim/arm/misaligned2.ms, and
9048 sim/testsuite/sim/arm/misaligned3.ms.
9049 * disasm.h (struct ui_file): Add opaque struct declaration.
9050 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9051 * frame.h (struct ui_file): Ditto.
9052
dea7f9ba
MK
90532003-05-11 Mark Kettenis <kettenis@gnu.org>
9054
9055 * value.h: Pretty print.
9056
01986c48
MK
90572003-05-10 Mark Kettenis <kettenis@gnu.org>
9058
9059 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9060
123a958e
AC
90612003-05-08 Andrew Cagney <cagney@redhat.com>
9062
9063 * regcache.h (max_register_size): Delete declaration.
9064 * regcache.c (max_register_size): Delete function.
9065 (struct regcache_descr): Delete field "max_register_size".
9066 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9067 registers fit in MAX_REGISTER_SIZE.
9068 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9069 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9070 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9071 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9072 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9073 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9074 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9075 * dve3900-rom.c, hppa-tdep.c: Ditto.
9076
eb294659
DC
90772003-05-08 David Carlton <carlton@math.stanford.edu>
9078
9079 * valops.c (push_word): Fix typo.
9080
d9d9c31f
AC
90812003-05-08 Andrew Cagney <cagney@redhat.com>
9082
9083 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9084 * gdbarch.h: Re-generate.
9085 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9086 (legacy_max_register_raw_size): Delete declaration.
9087 * regcache.c (legacy_max_register_raw_size): Delete function.
9088 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9089 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9090 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9091 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9092 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9093 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9094 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9095 * findvar.c, dwarf2cfi.c: Ditto.
9096
22540ece
AC
90972003-05-08 Andrew Cagney <cagney@redhat.com>
9098
9099 * mips-tdep.c (read_signed_register): New function, moved to here
9100 from "regcache.c".
9101 (read_signed_register_pid): Ditto.
9102 * regcache.c (read_signed_register_pid): Delete function, moved to
9103 "mips-tdep.c".
9104 (read_signed_register): Ditto.
9105 * regcache.h (read_signed_register): Delete declaration.
9106 (read_signed_register_pid): Delete declaration.
9107
0c92afe8
AC
91082003-05-08 Andrew Cagney <cagney@redhat.com>
9109
9110 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9111 * gdbarch.h: Re-generate.
9112 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9113 (legacy_max_register_virtual_size): Delete declaration.
9114 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9115 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9116 * tracepoint.c (memrange_sortmerge): Ditto.
9117 * sparc-tdep.c (sparc_print_registers): Ditto.
9118 * regcache.c (legacy_max_register_virtual_size): Delete function.
9119
6037b830
JB
91202002-05-08 J. Brobecker <brobecker@gnat.com>
9121
9122 * fork-child.c (escape_bang_in_quoted_argument): New function.
9123 (fork_inferior): Escape '!' characters in quoted arguments
9124 only when needed.
9125
5d62c8b1
JB
91262003-05-08 J. Brobecker <brobecker@gnat.com>
9127
9128 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9129 the language of the CU is not currently supported by GDB.
9130
20a0e81d
JB
91312003-05-08 J. Brobecker <brobecker@gnat.com>
9132
9133 * defs.h (language): Add language_minimal enum value.
9134 * c-lang.c (minimal_language_defn): New language definition.
9135 (_initialize_c_language): Add the new minimal language to the list
9136 of languages known to GDB.
9137
710ee10a
KB
91382003-05-08 Kevin Buettner <kevinb@redhat.com>
9139
9140 * frame.c (get_frame_type): Don't attempt to lazily initialize
9141 frame's unwinder for legacy frames.
9142
1750fa04
AC
91432003-05-07 Andrew Cagney <cagney@redhat.com>
9144
9145 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9146 and "regcache" parameters.
9147 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9148
ddf9f258 91492003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9150
9151 * dwarf2read.c (dwarf_decode_lines): Only use output of
9152 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9153 the current address.
9154
87767c29
AC
91552003-05-07 Andrew Cagney <cagney@redhat.com>
9156
9157 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9158 code.
9159
5e7b2f39
JB
91602003-05-07 Jim Blandy <jimb@redhat.com>
9161
9162 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9163 'maint info symtabs' and 'maint info psymtabs'.
9164 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9165 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9166 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9167 Declarations updated.
9168 * maint.c (maintenance_list_command): Delete.
9169 (_initialize_maint_cmds): Update calls to add_cmd.
9170 * gdbcmd.h (maintenancelistlist): Delete declaration.
9171 * cli/cli-cmds.c (maintenancelistlist): Delete.
9172 (init_cmd_lists): Don't initialize it.
9173 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9174
f6684c31
AC
91752003-05-07 Andrew Cagney <cagney@redhat.com>
9176
9177 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9178 "regcache".
9179 (d10v_print_registers_info): Update.
9180 (d10v_dmap_register, d10v_imap_register): Delete functions.
9181 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9182 and "imap_register".
9183 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9184 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9185 * arch-utils.c (generic_remote_translate_xfer_address): Add
9186 "regcache" and "gdbarch" parameters.
9187 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9188 parameter. Change class to multi-arch.
9189 * gdbarch.h, gdbarch.c: Re-generate.
9190 * remote.c (remote_xfer_memory): Use
9191 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9192
e4846b08
JJ
91932003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9194
9195 * infrun.c (prev_pc): Move declaration ahead of proceed().
9196 (proceed): Refresh prev_pc value before resuming.
9197 (stop_stepping): Remove code to refresh prev_pc.
9198
6b71b8ac
KW
91992003-05-06 Kris Warkentin <kewarken@qnx.com>
9200
9201 * nto-tdep.c: Removed stray comment.
9202
47979a4b
KW
92032003-05-06 Kris Warkentin <kewarken@qnx.com>
9204
9205 * i386-nto-tdep.c: Fix old K&R function definitions.
9206 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9207 Also change add_show_from_set() call to add_setshow_cmd().
9208 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9209
00905d52
AC
92102003-05-05 Andrew Cagney <cagney@redhat.com>
9211
9212 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9213 (fprint_dummy_frames): New function.
9214 (maintenance_print_dummy_frames): New function.
9215 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9216 * frame.c (fprint_frame_id): Make global.
9217 * frame.h (fprint_frame_id): Declare.
9218 * Makefile.in (dummy-frame.o): Update dependencies.
9219
b1e29e33
AC
92202003-05-05 Andrew Cagney <cagney@redhat.com>
9221
9222 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9223 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9224 SIZEOF_CALL_DUMMY_WORDS.
9225 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9226 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9227 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9228 CALL_DUMMY_BREAKPOINT_OFFSET.
9229 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9230 CALL_DUMMY_START_OFFSET.
9231 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9232 * gdbarch.h, gdbarch.c: Re-generate.
9233 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9234 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9235 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9236 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9237 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9238 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9239 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9240 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9241 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9242 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9243 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9244 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9245 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9246 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9247 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9248
92492003-05-05 Kris Warkentin <kewarken@qnx.com>
9250
9251 * configure.tgt: Add i[3456]86-*-nto*.
9252 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9253 * nto-tdep.c: New file. Neutrino target support routines.
9254 * nto-tdep.h: New file. Neutrino target header.
9255 * config/tm-qnxnto.h: New file.
9256 * config/i386/i386nto.mt: New file.
9257 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9258
0ce3d317
AC
92592003-05-04 Andrew Cagney <cagney@redhat.com>
9260
9261 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9262 (load_infrun_state): Ditto.
9263 (struct thread_info): Drop "prev_func_name" field.
9264 * thread.c (load_infrun_state): Update.
9265 (save_infrun_state): Update.
9266 * infrun.c (prev_func_name): Delete variable.
9267 (init_wait_for_inferior): Do not clear prev_func_name.
9268 (stop_stepping, keep_going, context_switch): Do not swap
9269 prev_func_name.
9270 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9271 instead of PC_IN_SIGTRAMP.
9272
46654a5b
AC
92732003-05-04 Andrew Cagney <cagney@redhat.com>
9274
9275 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9276 REGISTER_BYTE with register_offset_hack.
9277 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9278 that REGISTER_BYTE is consistent with the regcache.
9279 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9280 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9281
14b08c1b
MK
92822003-05-04 Mark Kettenis <kettenis@gnu.org>
9283
04c8243f
MK
9284 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9285 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9286
14b08c1b
MK
9287 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9288
c7a11e01
JB
92892003-05-03 J. Brobecker <brobecker@gnat.com>
9290
9291 From Thierry Schneider <tpschneider1@yahoo.com>
9292 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9293 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9294 (mi-cmd-symbol.o): Add rule.
9295
7043d8dc
AC
92962003-05-03 Andrew Cagney <cagney@redhat.com>
9297
9298 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9299 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9300 * gdbarch.h, gdbarch.c: Re-generate.
9301 * d10v-tdep.c (d10v_push_dummy_code): New function.
9302 (d10v_gdbarch_init): Set push_dummy_code.
9303 * infcall.c (legacy_push_dummy_code): New function.
9304 (generic_push_dummy_code): New function.
9305 (push_dummy_code): New function.
9306 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9307 instead of dummy_addr, to push_dummy_call. Move call to
9308 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9309 switch.
9310 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9311
92bf2b80
AC
93122003-05-03 Andrew Cagney <cagney@redhat.com>
9313
9314 * disasm.h (print_insn): Declare.
9315 * disasm.c (init_gdb_disassemble_info): New function.
9316 (gdb_disassembly): Call init_gdb_disassemble_info.
9317 (gdb_print_insn): New function.
9318 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9319 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9320 * mcore-tdep.c: Include "disasm.h"
9321 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9322 * d10v-tdep.c: Include "disasm.h".
9323 (display_trace): Call gdb_print_insn, instead of print_insn.
9324 (print_insn): Delete function.
9325 * printcmd.c: Include "disasm.h".
9326 (print_insn): Delete function.
9327 (print_formatted): Call gdb_print_insn, instead of print_insn.
9328 * Makefile.in (printcmd.o): Update dependencies.
9329 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9330
27d94c49
AC
93312003-05-02 Andrew Cagney <cagney@redhat.com>
9332
82de1e5b
AC
9333 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9334 PC_REGNUM, re-indent.
9335 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9336 PC_REGNUM isn't set.
9337
27d94c49
AC
9338 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9339 * gdbarch.h, gdbarch.c: Re-generate.
9340 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9341 register_virtual_size, pc_regnum, or register_bytes.
9342 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9343 (d10v_register_type): Use D10V_PC_REGNUM.
9344 (d10v_print_registers_info, d10v_read_pc): Ditto.
9345 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9346 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9347
a9c0dc7f
DC
93482003-05-02 David Carlton <carlton@bactrian.org>
9349
9350 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9351 the name with mstrsave.
9352
e33d66ec
EZ
93532003-05-02 Elena Zannoni <ezannoni@redhat.com>
9354
9355 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9356 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9357 (host_charset_name, target_charset_name): New vars for use by
9358 set/show commands.
9359 (host_charset_enum, target_charset_enum): New enums for set/show
9360 commands.
9361 (set_charset_sfunc, set_host_charset_sfunc,
9362 set_target_charset_sfunc): New functions.
9363 (set_host_charset, set_target_charset): Make static.
9364 (list_charsets, set_host_charset_command,
9365 set_target_charset_command): Delete functions.
9366 (show_charset_command): Rewrite as....
9367 (show_charset): Hook this up with the set/show command mechanism.
9368 (_initialize_charset): Change names of charsets to match the
9369 set/show enums. Use host_charset_name and target_charset_name.
9370 Use set/show mechanism for charset, host-charset, target-charset
9371 commands. Do not make 'show host-charset' and 'show
9372 target-charset' be aliases of 'show charset'.
9373
9374 * charset.h (set_host_charset, set_target_charset): Don't export,
9375 they are not used outside the file.
9376
2b6fd0d8
AC
93772003-05-01 Andrew Cagney <cagney@redhat.com>
9378
9379 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9380 (gdb_disassembly): Make "di" non static, always initialize and
9381 cleanup. Always use dis_asm_read_memory.
9382 (gdb_dis_asm_read_memory): Delete function.
9383
6ae2f580
AC
93842003-05-01 Andrew Cagney <cagney@redhat.com>
9385
9386 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9387 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9388
810ecf9f
AC
93892003-04-30 Andrew Cagney <cagney@redhat.com>
9390
9391 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9392 "tm_print_insn_info".
9393 (TARGET_PRINT_INSN_INFO): Delete macro.
9394 (dis_asm_read_memory): Delete function declaration.
9395 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9396 (tm_print_insn_info): Delete variable definition.
9397 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9398 * gdbarch.h, gdbarch.c: Re-generate.
9399 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9400 "deprecated_tm_print_insn_info".
9401 * mcore-tdep.c (mcore_dump_insn): Ditto.
9402 * mips-tdep.c (mips_gdbarch_init): Ditto.
9403 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9404 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9405 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9406 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9407 instead of TARGET_PRINT_INSN_INFO, add comment.
9408 * s390-tdep.c (s390_get_frame_info): Instead of
9409 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9410 (s390_check_function_end, s390_is_sigreturn): Ditto.
9411 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9412 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9413 * disasm.c: Include "gdbcore.h".
9414 (_initialize_disasm): New function, initialize
9415 "deprecated_tm_print_insn_info".
9416 (deprecated_tm_print_insn_info): New variable.
9417 (dis_asm_read_memory): Moved from "corefile.c", made static.
9418 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9419 * Makefile.in (disasm.o): Update dependencies.
9420
07020390
AC
94212003-04-30 Andrew Cagney <cagney@redhat.com>
9422
9423 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9424
a9fa03de
AF
94252003-04-29 Adam Fedor <fedor@gnu.org>
9426
9427 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9428 * infcall.c (find_function_addr): Make non-static.
9429 * infcall.h (find_function_addr): Declare.
9430 * Makefile.in (eval.o): Update dependencies.
9431
1bae87b9
AF
94322003-04-28 Adam Fedor <fedor@gnu.org>
9433
9434 * symtab.c (symbol_find_demangled_name): Check for and demangle
9435 ObjC symbols.
9436 (symbol_init_demangled_name): Init for language_objc as well.
9437
0ba6dca9
AC
94382003-04-28 Andrew Cagney <cagney@redhat.com>
9439
9440 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9441 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9442 * gdbarch.h, gdbarch.c: Re-generate.
9443 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9444 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9445 * inferior.h (deprecated_read_fp): Rename read_fp.
9446 (generic_target_read_fp): Delete declaration.
9447 * regcache.c (generic_target_read_fp): Delete function.
9448 (deprecated_read_fp): Replace read_fp, use
9449 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9450 * d10v-tdep.c (d10v_read_fp): Delete function.
9451 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9452
9453 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9454 deprecated_target_read_fp to generic_target_read_fp.
9455 * sh-tdep.c (sh_gdbarch_init): Ditto.
9456 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9458 * frv-tdep.c (frv_gdbarch_init): Ditto.
9459
9460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9461 deprecated_fp_regnum.
9462 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9463 * vax-tdep.c (vax_gdbarch_init): Ditto.
9464 * v850-tdep.c (v850_gdbarch_init): Ditto.
9465 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9466 * sh-tdep.c (sh_gdbarch_init): Ditto.
9467 * s390-tdep.c (s390_gdbarch_init): Ditto.
9468 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9469 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9470 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9471 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9473 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9474 * i386-tdep.c (i386_gdbarch_init): Ditto.
9475 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9476 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9477 * frv-tdep.c (frv_gdbarch_init): Ditto.
9478 * cris-tdep.c (cris_gdbarch_init): Ditto.
9479 * avr-tdep.c (avr_gdbarch_init): Ditto.
9480 * arm-tdep.c (arm_gdbarch_init): Ditto.
9481 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9482
9483 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9484 * v850-tdep.c (v850_gdbarch_init): Ditto.
9485 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9486 * sh-tdep.c (sh_gdbarch_init): Ditto.
9487 * s390-tdep.c (s390_gdbarch_init): Ditto.
9488 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9489 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9490 * mips-tdep.c (mips_gdbarch_init): Ditto.
9491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9492 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9493 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9494 * frv-tdep.c (frv_gdbarch_init): Ditto.
9495 * avr-tdep.c (avr_gdbarch_init): Ditto.
9496 * arm-tdep.c (arm_gdbarch_init): Ditto.
9497
9498 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9499 DEPRECATED_FP_REGNUM.
9500 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9501 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9502 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9503 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9504 (sparc32_register_virtual_type): Ditto.
9505 * sh-tdep.c (sh64_frame_chain): Ditto.
9506 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9507 (sh_nofp_frame_init_saved_regs): Ditto.
9508 (sh64_nofp_frame_init_saved_regs): Ditto.
9509 (sh_fp_frame_init_saved_regs): Ditto.
9510 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9511 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9512 * procfs.c (procfs_fetch_registers): Ditto.
9513 (procfs_store_registers): Ditto.
9514 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9515 (store_inferior_registers, fetch_core_registers): Ditto.
9516 (fetch_kcore_registers, clear_regs): Ditto.
9517 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9518 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9519 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9520 * nlm/i386.c (do_status): Ditto.
9521 * mipsv4-nat.c (supply_gregset): Ditto.
9522 * mips-tdep.c: Ditto for comments.
9523 * mips-nat.c (fetch_inferior_registers): Ditto.
9524 (store_inferior_registers, fetch_core_registers): Ditto.
9525 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9526 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9527 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9528 (i386_do_pop_frame, i386_register_type): Ditto.
9529 * hppa-tdep.c (hppa_frame_chain): Ditto.
9530 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9531 (hppa_pop_frame, hppa_read_fp): Ditto.
9532 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9533 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9534 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9535 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9536 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9537 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9538 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9539 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9540 * blockframe.c: Ditto for comments.
9541 * arch-utils.h: Ditto for comments.
9542 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9543 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9544 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9545 * alpha-tdep.h: Ditto for comments.
9546 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9547 (alpha_cannot_store_register): Ditto.
9548 (alpha_push_dummy_frame): Ditto.
9549 * alpha-nat.c (supply_gregset): Ditto.
9550
9551 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9552 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9553 * config/sparc/tm-sparc.h: Update comment.
9554
9555 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9556 deprecated_read_fp instead of TARGET_READ_FP.
9557 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9558 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9559 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9560 deprecated_read_fp instead of read_fp.
9561 * s390-tdep.c (s390_push_arguments): Ditto.
9562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9563 * frame.h: Ditto in comments.
9564 * frame.c (legacy_get_prev_frame): Ditto.
9565 * dummy-frame.c (dummy_frame_this_id): Ditto.
9566 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9567
d7a27068
AC
95682003-04-28 Andrew Cagney <cagney@redhat.com>
9569
9570 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9571 * gdbarch.h, gdbarch.c: Re-generate.
9572 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9573 * vax-tdep.c (_initialize_vax_tdep): Update.
9574 * v850-tdep.c (_initialize_v850_tdep): Update.
9575 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9576 * s390-tdep.c (_initialize_s390_tdep): Update.
9577 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9578 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9579 * mips-tdep.c (_initialize_mips_tdep): Update.
9580 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9581 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9582 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9583 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9584 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9585 * frv-tdep.c (_initialize_frv_tdep): Update.
9586 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9587 (_initialize_cris_tdep): Update.
9588 * arch-utils.c (legacy_print_insn): Update.
9589 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9590
d2630e69
AF
95912003-04-26 Adam Fedor <fedor@gnu.org>
9592
9593 * linespec.c (decode_objc): New function to decode ObjC calls
9594 (decode_line_1): Check for ObjC calls (using decode_objc)
9595 * Makefile (linespec.o): Update dependencies.
9596
3086aeae
DJ
95972003-04-26 Daniel Jacobowitz <drow@mvista.com>
9598
9599 * breakpoint.h (struct breakpoint_ops): New.
9600 (struct breakpoint): Add ops member.
9601
9602 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9603 (mention): Use new breakpoint ops member.
9604 (set_raw_breakpoint): Initialize ops field to NULL.
9605 (print_exception_catchpoint, print_one_exception_catchpoint)
9606 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9607 (gnu_v3_exception_catchpoint_ops): New.
9608 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9609
1fbec6c3
AF
96102003-04-25 Adam Fedor <fedor@gnu.org>
9611
9612 * Makefile.in (COMMON_OBS): Add objc-lang.o
9613
0ef21242
AC
96142003-04-25 Andrew Cagney <cagney@redhat.com>
9615
9616 * d10v-tdep.c (print_insn): Delete function.
9617 (display_trace): Use TARGET_PRINT_INSN.
9618 (_initialize_d10v_tdep): Do not set tm_print_insn.
9619 (d10v_gdbarch_init): Set print_insn.
9620
f75493ed
AC
96212003-04-25 Andrew Cagney <cagney@redhat.com>
9622
9623 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9624 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9625 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9626 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9627 (nr_dmap_regs, a0_regnum): ... new functions.
9628 (d10v_print_registers_info): Use a0_regnum, use register_size.
9629 (d10v_register_byte): Delete function.
9630 (d10v_register_raw_size): Delete function.
9631 (d10v_register_type): Use a0_regnum.
9632 (d10v_print_registers_info): Use a0_regnum.
9633 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9634 (d10v_gdbarch_init): Do not set register_byte or
9635 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9636 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9637 extract_address.
9638 (trace_command): Use XCALLOC.
9639 (print_insn): Delete reference to tm_print_insn.
9640 (saved_regs_unwinder): Use store_unsigned_integer instead of
9641 store_address.
9642 * frame.h (FRAME_OBSTACK_CALLOC): Define
9643
2202b100
DC
96442003-04-25 David Carlton <carlton@bactrian.org>
9645
9646 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9647
4e45ca2e
AF
96482003-04-24 Adam Fedor <fedor@gnu.org>
9649
9650 * objc-lang.c: Include "valprint.h"
9651 * Makefile.in (objc-lang.o): Update dependencies.
9652
93de3e7f
AF
96532003-04-24 Adam Fedor <fedor@gnu.org>
9654
8ffd9b1b 9655 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9656 architecture dependant compilation and mark as unimplemented
9657 (until they get put in the gdbarch vector).
9658
0f20eeea
DC
96592003-04-23 David Carlton <carlton@bactrian.org>
9660
9661 * cp-support.c (cp_find_first_component): Accept 'operator' in
9662 more locations.
9663
74cfe982
AC
96642003-04-23 Andrew Cagney <cagney@redhat.com>
9665
9666 * infcall.c (call_function_by_hand): Eliminate redundant
9667 indentation. Move "saved_async" and "old_cleanups" to where they
9668 are needed.
8ffd9b1b 9669
52557533
AC
96702003-04-23 Andrew Cagney <cagney@redhat.com>
9671
9672 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9673 and "buffer". Move the "name" code to where it is needed.
9674
158775de
AC
96752003-04-23 Andrew Cagney <cagney@redhat.com>
9676
9677 * infcall.c (call_function_by_hand): Move variables "start_sp",
9678 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9679 code to ON_STACK switch branch.
8ffd9b1b 9680
ebc7896c
AC
96812003-04-23 Andrew Cagney <cagney@redhat.com>
9682
9683 * infcall.c (call_function_by_hand): Make declaration of "i",
9684 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9685 lint.
9686
d727590f
AC
96872003-04-23 Andrew Cagney <cagney@redhat.com>
9688
9689 * infcall.c (call_function_by_hand): Delete variable
9690 "n_method_args". Localize "param_type"'s declaration to the loop
9691 that it is used. Reinstate code assigning to said variable -
9692 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9693 Rationalize code using "param_type".
9694
d585e13a
AC
96952003-04-22 Andrew Cagney <cagney@redhat.com>
9696
9697 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9698 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9699 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9700 to DEPRECATED_PUSH_RETURN_ADDRESS.
9701
051caad9
KB
97022003-04-22 Kevin Buettner <kevinb@redhat.com>
9703
9704 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9705 on the DWARF2 register number prior to fetching a register.
9706
77296879
JB
97072003-04-22 J. Brobecker <brobecker@gnat.com>
9708
9709 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9710 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9711 this macro was always set to 0.
77296879
JB
9712 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9713 considering the fact that this macro was always set to 0.
9714 * hppa-tdep.h (hppa_store_return_value): Likewise.
9715 (hppa_extract_return_value): Likewise.
9716
4252f1df
JB
97172003-04-22 J. Brobecker <brobecker@gnat.com>
9718
9719 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9720 the hppa-pro target only.
9721
14604c6b
JB
97222003-04-21 J. Brobecker <brobecker@gnat.com>
9723
9724 Ongoing multi-arch conversion effort for HP/UX:
9725 * config/pa/tm-hppa.h: Move all macro that are no longer
9726 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9727 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9728
77eb01d1
JB
97292003-04-21 J. Brobecker <brobecker@gnat.com>
9730
9731 * config/pa/tm-hppa.h: Obsolete a section that was only used
9732 for hppa-pro.
9733
61995b3b
JB
97342003-04-21 J. Brobecker <brobecker@gnat.com>
9735
9736 Ongoing multi-arch conversion for HP/UX.
9737 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9738 if already defined (allows hppa64 to stay non-multiarched for now).
9739 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9740
4aa79dcc
AC
97412003-04-21 Andrew Cagney <cagney@redhat.com>
9742
9743 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9744
0f751ff2
AC
97452003-04-21 Andrew Cagney <cagney@redhat.com>
9746
9747 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9748 "i386_num_mmx_regs".
9749
04714b91
AC
97502003-04-21 Andrew Cagney <cagney@redhat.com>
9751
9752 * infcall.c: New file.
9753 * infcall.h: New file.
9754 * valarith.c: Include "infcall.h".
9755 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9756 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9757 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9758 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9759 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9760 (SFILES): Add "infcall.c"
9761 (COMMON_OBS): Add "infcall.o".
9762 (infcall.o): Specify dependencies.
9763 * value.h (call_function_by_hand): Delete declaration.
9764 * inferior.h (run_stack_dummy): Delete declaration.
9765 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9766 (run_stack_dummy): Move to "infcall.c", merged into
9767 call_function_by_hand.
9768 * valops.c (call_function_by_hand): Moved to "infcall.c".
9769 (find_function_addr, value_arg_coerce): Ditto.
9770 (unwindonsignal_p, coerce_float_to_double): Ditto.
9771 (_initialize_valops): Move "set/show coerce-float-to-double", and
9772 "set/show unwindonsignal" commands to "infcall.c".
9773 * v850-tdep.c, target.h: Update comments.
9774 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9775 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9776 (sh64_init_extra_frame_info): Update comments.
9777 * mn10300-tdep.c: Update comments.
9778 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9779 * config/sparc/tm-sparc.h: Update comments.
9780 * breakpoint.h: Update comments.
9781 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9782 * arm-tdep.c: Update comment.
9783
f9d3c2a8
MK
97842003-04-19 Mark Kettenis <kettenis@gnu.org>
9785
c40e1eab
MK
9786 * i386-tdep.c (i386_num_register_names): New variable.
9787 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9788 (MM0_REGNUM): Remove redundant parentheses in define.
9789 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9790 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9791 i386_mxcsr_regnum_p): Remove redundant parentheses.
9792 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9793
94ea66b3
MK
9794 * i386-tdep.c (i386_extract_return_value,
9795 i386_store_return_value): Correct check for availability of
9796 floating-point registers.
9797
54299a1d
MK
9798 * i386-tdep.c (i386_frame_num_args): Remove function.
9799 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9800
c86c27af
MK
9801 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9802 mmx_regnum_to_fp_regnum. Adjust all callers.
9803
f9d3c2a8
MK
9804 * i386-tdep.c (i386_get_longjmp_target): Use
9805 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9806 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9807 extract_address.
9808
94ba74a9
MK
98092003-04-19 Mark Kettenis <kettenis@gnu.org>
9810
9811 * core-regset.c: Update comments to reflect reality. Re-order
9812 includes.
9813 (fetch_core_registers): Use switch instead of if. Remove
9814 redundant prototype.
9815
4074e13c
JB
98162003-04-18 Jim Blandy <jimb@redhat.com>
9817
9818 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9819 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9820
e3ab4aba
RH
98212003-04-17 Richard Henderson <rth@redhat.com>
9822
9823 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9824
627bf7c1
EZ
98252003-04-17 Michael Snyder <msnyder@redhat.com>
9826 Karen Bennet <bennet@redhat.com>
9827
9828 Committed by Elena Zannoni <ezannoni@redhat.com>
9829 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9830
514621a9
EZ
98312003-04-17 Elena Zannoni <ezannoni@redhat.com>
9832
9833 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9834 value if the return type is void.
514621a9 9835
b4acd559
JJ
98362003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9837
9838 * thread-db.c: Reindented.
8ffd9b1b 9839
530b167e 98402003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9841
9842 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9843 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9844 as types.
9845
0a48e7e8
MS
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
8ffd9b1b 9869
ab9fe00e
KB
98702003-04-16 Kevin Buettner <kevinb@redhat.com>
9871
610a3745 9872 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9873 the size of ``long double'' to 16, instead of 8.
9874
e64a344c
MK
98752003-04-16 Mark Kettenis <kettenis@gnu.org>
9876
9877 * i386-linux-nat.c: Add some whitespace to make things more
9878 readable.
9879 (fetch_register, store_register, fetch_inferior_registers,
9880 store_inferior_registers): Get rid of assignment in if-statement.
9881 (store_register): Fix typo in error message.
9882
25d41031
AC
98832003-04-16 Andrew Cagney <cagney@redhat.com>
9884
9885 * utils.c (xmmalloc): Always allocate something, matches
9886 libiberty/xmalloc's semantics.
9887 (xmrealloc, xmcalloc): Ditto.
9888
c50901fd
AC
98892003-04-16 Andrew Cagney <cagney@redhat.com>
9890
9891 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9892 update comments.
9893 (get_frame_type): Initialize unwind and type when needed.
9894 (get_frame_id, frame_register_unwind): Ditto.
9895
f81824a9
AC
98962003-04-16 Andrew Cagney <cagney@redhat.com>
9897
9898 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9899 obsolete.
9900 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9901 * sparcl-stub.c: Obsolete file.
9902 * config/sparc/tm-sparclet.h: Obsolete file.
9903 * sparclet-stub.c: Obsolete file.
9904 * sparclet-rom.c: Obsolete file.
9905 * sparcl-tdep.c: Obsolete file.
9906 * config/sparc/tm-sparclite.h: Obsolete file.
9907 * config/sparc/sparclite.mt: Obsolete file.
9908 * config/sparc/sparclet.mt: Obsolete file.
9909 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9910 sparc86x-*-* obsolete.
9911
9219021c
DC
99122003-04-15 David Carlton <carlton@math.stanford.edu>
9913
9914 * Makefile.in (SFILES): Add cp-namespace.c.
9915 (COMMON_OBS): Add cp-namespace.o.
9916 (block.o): Depend on gdb_obstack_h and cp_support_h.
9917 (buildsym.o): Depend on cp_support_h.
9918 (cp-namespace.o): New.
9919 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9920 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9921 (dwarf2read.o): Depend on cp_support_h.
9922 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9923 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9924 processing_current_namespace.
9925 (read_namespace): Update processing_current_namespace; check for
9926 anonymous namespaces.
9927 (dwarf2_name): New function.
9928 (dwarf2_extension): Ditto.
9929 * cp-support.h: Update copyright, contributors.
9930 Add inclusion guards.
9931 Add opaque declaration for structs obstack, block, symbol.
9932 (struct using_direct): New struct.
9933 Add declarations for cp_find_first_component,
9934 cp_entire_prefix_len, processing_has_namespace_info,
9935 processing_current_namespace, cp_is_anonymous,
9936 cp_add_using_directive, cp_initialize_namespace,
9937 cp_finalize_namespace, cp_set_block_scope,
9938 cp_scan_for_anonymous_namespaces.
9939 * cp-namespace.c: New file.
9940 * cp-support.c: Update copyright.
9941 Include ctype.h, gdb_assert.h, gdbcmd.h.
9942 New variable maint_cplus_cmd_list.
9943 (cp_find_first_component): New function.
9944 (cp_entire_prefix_len, maint_cplus_command)
9945 (first_component_command, _initialize_cp_support): Ditto.
9946 * buildsym.c: Include cp-support.h.
9947 New variable using_list.
9948 (add_symbol_to_list): Check for anonymous namespaces.
9949 (finish_block): Set block's scope.
9950 (start_symtab): Initialize C++ namespace support.
9951 (end_symtab): Finalize C++ namespace support.
9952 * block.h: Add opaque declarations for structs
9953 block_namespace_info, using_direct, and obstack.
9954 Add declarations for block_set_scope and block_set_using.
9955 (struct block): Add 'language_specific' member.
9956 (BLOCK_NAMESPACE): New macro.
9957 * block.c: Include gdb_obstack.h and cp-support.h.
9958 (struct block_namespace_info): New struct.
9959 (block_set_scope): New function.
9960 (block_set_using, block_initialize_namespace): Ditto.
9961
d5a921c9
KB
99622003-04-14 Kevin Buettner <kevinb@redhat.com>
9963
9964 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9965 (locate_base): Return early if there aren't any link map offsets.
9966 (svr4_solib_create_inferior_hook): Warn if shared library support
9967 is unavailable.
9968
d2a52b27
DC
99692003-04-14 David Carlton <carlton@math.stanford.edu>
9970
9971 * symtab.c (symbol_set_names): Add prefix when storing Java names
9972 in hash table. Fix for PR java/1039.
9973
980cae7a
DC
99742003-04-14 David Carlton <carlton@math.stanford.edu>
9975
9976 * symtab.c (symbol_set_names): Rename 'name' arg to
9977 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9978 * symtab.h: Change 'name' argument in declaration of
9979 symbol_set_names to 'linkage_name'.
9980 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9981
e227b13c
AC
99822003-04-14 Andrew Cagney <cagney@redhat.com>
9983
9984 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9985 return the fully sign-extended register value.
9986 (get_frame_pointer): Ditto.
9987 (mips_pop_frame): Initialize "proc_desc" after checking for a
9988 dummy frame.
9989
36712a20
AC
99902003-04-14 Andrew Cagney <cagney@redhat.com>
9991
9992 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9993 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9994 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9995 (mips_push_register): Delete function.
9996 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9997 PUSH_FP_REGNUM.
9998
44ea7b70
JB
99992003-04-14 Jim Blandy <jimb@redhat.com>
10000
10001 * symmisc.c: #include "gdb_regex.h".
10002 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10003 functions.
10004 * maint.c (maintenance_list_command): New function.
10005 (_initialize_maint_cmds): Register the above as commands.
10006 * symtab.h (maintenance_list_symtabs,
10007 maintenance_list_psymtabs): New declarations.
10008 * cli/cli-cmds.c (maintenancelistlist): New variable.
10009 (init_cmd_lists): Initialize it.
10010 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10011 * gdbcmd.h (maintenancelistlist): New declaration.
10012 * Makefile.in (symmisc.o): Update dependencies.
10013
2d0c7962
EZ
100142003-04-14 Elena Zannoni <ezannoni@redhat.com>
10015
10016 * s390-nat.c: Include asm/types.h for addr_t.
10017
1947a811
CV
100182003-04-14 Corinna Vinschen <vinschen@redhat.com>
10019
10020 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10021 actually incoming type.
10022
adb616d7
AC
100232003-04-13 Andrew Cagney <cagney@redhat.com>
10024
10025 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10026 get_next_frame and get_frame_saved_regs.
10027
9b5e151c
AC
100282003-04-13 Andrew Cagney <cagney@redhat.com>
10029
10030 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10031 of gdbarch_num_regs.
10032
ef6e7e13
AC
100332003-04-13 Andrew Cagney <cagney@redhat.com>
10034
10035 * frame.h: Mention what replaced what in "struct frame_info".
10036 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10037 deprecated_update_frame_base_hack and
10038 deprecated_update_frame_pc_hack.
10039 * hppa-tdep.c: Ditto.
10040
61fbb938
DJ
100412003-04-13 Daniel Jacobowitz <drow@mvista.com>
10042
10043 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10044 to read_reg and update its comment. Remove regnum member.
10045 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10046 Don't call read_reg when setting in_reg. Call read_reg to get
10047 the frame base if it's in a register. Return the register number
10048 on the stack instead of in the context. Remove extra arguments
10049 to read_reg.
10050 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10051 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10052 the register number on the expression stack.
10053 (needs_frame_read_reg): Remove extra arguments.
10054
0d53c4c4
DJ
100552003-04-13 Daniel Jacobowitz <drow@mvista.com>
10056
10057 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10058 made non-static.
10059 (execute_stack_op): All callers updated.
10060 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10061 * dwarf2loc.c (find_location_expression): New function.
10062 (dwarf_expr_frame_base): Call it.
10063 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10064 (dwarf2_tracepoint_var_ref): New function, broken out from
10065 locexpr_tracepoint_var_ref.
10066 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10067 Make static.
10068 (loclist_read_variable, loclist_read_needs_frame): New functions.
10069 (loclist_describe_location, loclist_tracepoint_var_ref): New
10070 functions.
10071 (dwarf2_loclist_funcs): New struct location_funcs.
10072 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10073 (struct dwarf2_locexpr_baton): Add comments.
10074 (dwarf2_loclist_funcs): New extern.
10075 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10076 base_address and base_known.
10077 (dwarf_loc_buffer): New variable.
10078 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10079 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10080 (dwarf2_has_info): Initialize dwarf_loc_offset.
10081 (dwarf2_build_psymtabs): Read in .debug_loc.
10082 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10083 DWARF_LOC_SIZE.
10084 (psymtab_to_symtab_1): Likewise. Move base address calculation
10085 here, from...
10086 (dwarf2_get_pc_bounds): ... here. Use the base address from
10087 cu_header.
10088 (dwarf2_symbol_mark_computed): Handle location lists.
10089
6aca59a3
DJ
100902003-04-13 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10093 if the linkage name demangled successfully.
10094
aca1fcd0
MK
100952003-04-13 Mark Kettenis <kettenis@gnu.org>
10096
97095916
MK
10097 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10098 disassmbly_flavour): Removed.
10099
aca1fcd0
MK
10100 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10101
562a961f
MK
101022003-04-13 Mark Kettenis <kettenis@gnu.org>
10103
10104 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10105
bd013d54
AC
101062003-04-12 Andrew Cagney <cagney@redhat.com>
10107
10108 * frame.h (struct frame_info): Move definition from here ...
10109 * frame.c (struct frame_info): ... to here.
10110
167ef8b1
AC
101112003-04-12 Andrew Cagney <cagney@redhat.com>
10112
10113 * gdbthread.h (save_infrun_state): Delete parameter
10114 "prev_func_start".
10115 (struct thread_info): Delete field "prev_func_start".
10116 (load_infrun_state): Ditto.
10117 * thread.c (load_infrun_state, save_infrun_state): Update.
10118 * infrun.c (prev_func_start): Delete variable.
10119 (context_switch, init_wait_for_inferior): Update.
10120 (stop_stepping, keep_going): Update.
10121
da3331ec
AC
101222003-04-12 Andrew Cagney <cagney@redhat.com>
10123
10124 * gdbarch.sh: Add missing opaque declarations.
10125 * gdbarch.h: Regnerate.
10126 * symtab.h: Add missing opaque declarations.
10127 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10128 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10129 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10130 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10131 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10132 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10133 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10134 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10135 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10136 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10137 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10138 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10139 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10140
18adea3f
AC
101412003-04-11 Andrew Cagney <cagney@redhat.com>
10142
10143 * frame.c (get_frame_id): Return this frame's "id".
10144 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10145 function start.
10146 (legacy_saved_regs_this_id): Replace function body with
10147 internal-error.
10148 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10149 FRAME_OBSTACK_ZALLOC.
10150 (create_new_frame): Mark the frame ID as valid.
10151
2252e863
AO
101522003-04-11 Alexandre Oliva <aoliva@redhat.com>
10153
10154 * Makefile.in (libbfd_h): Added missing setting.
10155 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10156 according to the selected ABI.
10157
a8245ab8
JJ
101582003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10159
10160 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10161
6913c89a
AC
101622003-04-11 Andrew Cagney <cagney@redhat.com>
10163
10164 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10165 SAVED_PC_AFTER_CALL.
10166 * gdbarch.h, gdbarch.c: Regenerate.
10167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10168 * x86-64-tdep.c (x86_64_init_abi): Update.
10169 * vax-tdep.c (vax_gdbarch_init): Update.
10170 * v850-tdep.c (v850_gdbarch_init): Update.
10171 * sparc-tdep.c (sparc_gdbarch_init): Update.
10172 * sh-tdep.c (sh_gdbarch_init): Update.
10173 * s390-tdep.c (s390_gdbarch_init): Update.
10174 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10175 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10176 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10177 * mips-tdep.c (mips_gdbarch_init): Update.
10178 * mcore-tdep.c (mcore_gdbarch_init): Update.
10179 * m68k-tdep.c (m68k_gdbarch_init): Update.
10180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10181 * ia64-tdep.c (ia64_gdbarch_init): Update.
10182 (ia64_saved_pc_after_call): Update declaration.
10183 * i386ly-tdep.c (i386lynx_init_abi): Update.
10184 * i386-tdep.c (i386_gdbarch_init): Update.
10185 * hppa-tdep.c (hppa_gdbarch_init): Update.
10186 * h8300-tdep.c (h8300_gdbarch_init): Update.
10187 * frv-tdep.c (frv_gdbarch_init): Update.
10188 * cris-tdep.c (cris_gdbarch_init): Update.
10189 * avr-tdep.c (avr_gdbarch_init): Update.
10190 * arm-tdep.c (arm_gdbarch_init): Update.
10191 * alpha-tdep.c (alpha_gdbarch_init): Update.
10192 * ns32knbsd-nat.c (frame_num_args): Update.
10193 * ns32k-tdep.c (umax_frame_num_args): Update.
10194 * mips-tdep.c (mips_init_frame_pc_first): Update.
10195 * infrun.c (step_over_function): Update.
10196 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10197 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10198 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10199 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10200 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10201 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10202 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10203 * arch-utils.c (init_frame_pc_default): Update.
10204 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10205 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10206 declaration.
8ffd9b1b 10207
38edeab8
AC
102082003-04-11 Andrew Cagney <cagney@redhat.com>
10209
10210 * i387-tdep.c: Update copyright.
10211 (i387_to_double): Delete function.
10212 (double_to_i387): Delete function.
10213
81f8a206
AC
102142003-04-10 Andrew Cagney <cagney@redhat.com>
10215
10216 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10217 frame's function's address. Simplify.
10218 (d10v_frame_unwind_cache): Check that the frame's function is
10219 non-zero.
10220
6e691f7a
JB
102212003-04-10 Jim Blandy <jimb@redhat.com>
10222
10223 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10224 call to set_gdbarch_deprecated_push_arguments.
10225
7f78e237
AC
102262003-04-10 Andrew Cagney <cagney@redhat.com>
10227
10228 * frame.c (fprint_frame_id): New function.
10229 (fprint_frame_type, fprint_frame): New function.
10230 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10231 (create_sentinel_frame, get_frame_id): Ditto.
10232 (frame_id_p, frame_id_eq): Ditto.
10233 (frame_id_inner, create_new_frame): Ditto.
10234 (legacy_get_prev_frame, get_prev_frame): Ditto.
10235 (deprecated_update_frame_pc_hack): Ditto.
10236 (frame_register_unwind): Ditto.
10237 (deprecated_update_frame_base_hack): Ditto.
10238
f870b49b
CV
102392003-04-10 Corinna Vinschen <vinschen@redhat.com>
10240
10241 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10242 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10243 frame_chain function.
10244 * Makefile.in: Add dependencies due to above change.
10245
7c86889b
CV
102462003-04-10 Corinna Vinschen <vinschen@redhat.com>
10247
10248 * blockframe.c (legacy_frame_chain_valid): Move call to
10249 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10250 inside_entry_file.
10251
d0a55772
AC
102522003-04-09 Andrew Cagney <cagney@redhat.com>
10253
10254 * frame.h (struct frame_id): Replace "pc" and "base" with
10255 "stack_addr" and "code_addr". Update comments.
10256 (frame_id_build): Update parameter names and comment.
10257 (struct frame_info): Replace "id_p" and "id" with "this_id".
10258 * dummy-frame.c (dummy_frame_this_id): Update.
10259 * breakpoint.c (print_one_breakpoint): Update.
10260 * frame.c (get_frame_id): Update.
10261 (get_frame_base, frame_id_build): Update.
10262 (create_sentinel_frame, legacy_get_prev_frame): Update.
10263 (deprecated_update_frame_base_hack): Update.
10264 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10265 (frame_id_inner): Ditto.
10266
ac16bf07
AC
102672003-04-09 Andrew Cagney <cagney@redhat.com>
10268
10269 * defs.h (gdb_print_host_address): Make "addr" parameter a
10270 pointer constant.
10271 * utils.c (gdb_print_host_address): Update.
10272
366cfc9e
KB
102732003-04-09 Kevin Buettner <kevinb@redhat.com>
10274
10275 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10276 register number for R0 is 0.
10277
cd983b5c
JB
102782003-04-09 J. Brobecker <brobecker@gnat.com>
10279
10280 * frame.h (struct gdbarch): Add opaque structure definition
10281 to avoid a compilation warning on LynxOS 4.0.
10282
d1340264
AC
102832003-04-09 Andrew Cagney <cagney@redhat.com>
10284
10285 * frame.h (struct frame_info): Delete field "pc". Replace
10286 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10287 structure.
10288 * frame.c (frame_pc_unwind): Update.
10289 (create_sentinel_frame): Do not set "pc".
10290 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10291 (get_frame_pc): Call frame_pc_unwind.
10292 (deprecated_update_frame_pc_hack): Update.
10293 (create_new_frame): Use "pc" not "->pc".
10294
90a6fffb
AC
102952003-04-09 Andrew Cagney <cagney@redhat.com>
10296
10297 * frame.c (get_frame_id): Eliminate code updating "frame".
10298 (legacy_get_prev_frame): Ditto.
10299 (get_frame_base): Return id.base directly.
10300 (deprecated_update_frame_base_hack): Update "id.base".
10301 * frame.h (struct frame_info): Delete field "frame".
10302
2fbce691
AC
103032003-04-09 Andrew Cagney <cagney@redhat.com>
10304
10305 * NEWS: Mention that the "Sequent family" is obsolete.
10306 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10307 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10308 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10309 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10310 * config/i386/tm-ptx4.h: Obsolete file.
10311 * config/i386/tm-ptx.h: Obsolete file.
10312 * symm-tdep.c: Obsolete file.
10313 * config/i386/symmetry.mt: Obsolete file.
10314 * config/i386/tm-symmetry.h: Obsolete file.
10315 * symm-nat.c: Obsolete file.
10316 * config/i386/nm-symmetry.h: Obsolete file.
10317 * config/i386/xm-symmetry.h: Obsolete file.
10318 * config/i386/symmetry.mh: Obsolete file.
10319 * config/i386/nm-ptx4.h: Obsolete file.
10320 * config/i386/ptx4.mh: Obsolete file.
10321 * config/i386/ptx.mt: Obsolete file.
10322 * config/i386/ptx.mh: Obsolete file.
10323 * config/i386/xm-ptx4.h: Obsolete file.
10324 * config/i386/xm-ptx.h: Obsolete file.
10325
78c43945
AC
103262003-04-09 Andrew Cagney <cagney@redhat.com>
10327
10328 Obsolete mips*-*-mach3*.
10329 * NEWS: Mention that mips*-*-mach3* is obsolete.
10330 * m3-nat.c: Obsolete file.
10331 * config/nm-m3.h: Obsolete file.
10332 * config/mips/tm-mipsm3.h: Obsolete file.
10333 * config/mips/mipsm3.mt: Obsolete file.
10334 * config/mips/mipsm3.mh: Obsolete file.
10335 * config/mips/xm-mipsm3.h: Obsolete file.
10336 * mipsm3-nat.c: Obsolete file.
10337 * configure.host: Obsolete mips-dec-mach3*.
10338 * configure.tgt: Obsolete mips*-*-mach3*.
10339
f1908289
AC
103402003-04-09 Andrew Cagney <cagney@redhat.com>
10341
10342 * doublest.h: Update copyright.
10343 (deprecated_store_floating, deprecated_extract_floating): Rename
10344 store_floating and extract_floating. Update comments.
10345 * doublest.c: Update copyright.
10346 (extract_floating_by_length): Replace extract_floating.
10347 (store_floating_by_length): Replace store_floating.
10348 (deprecated_extract_floating): New function.
10349 (deprecated_store_floating): New function.
10350 (extract_typed_floating): Call extract_floating_by_length.
10351 (store_typed_floating): Call store_floating_by_length.
10352 * x86-64-tdep.c (x86_64_store_return_value): Update.
10353 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10354 (sh64_extract_return_value): Update.
10355 (sh_sh4_register_convert_to_virtual): Update.
10356 (sh_sh64_register_convert_to_virtual): Update.
10357 (sh_sh4_register_convert_to_raw): Update.
10358 (sh_sh64_register_convert_to_raw): Update.
10359 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10360 (rs6000_register_convert_to_raw): Update.
10361 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10362 (ia64_register_convert_to_raw): Update.
10363 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10364 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10365 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10366 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10367 (alpha_register_convert_to_raw): Update.
10368
4443bd83
AC
103692003-04-08 Andrew Cagney <cagney@redhat.com>
10370
10371 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10372 * gdbarch.h, gdbarch.c: Re-generate.
10373 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10374 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10375 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10376 conditionally, use frame_pc_unwind as an alternative. Add
10377 comments.
10378 * arch-utils.c (init_frame_pc_default): Only call
10379 SAVED_PC_AFTER_CALL when available.
10380
c0236d92
EZ
103812003-04-08 Elena Zannoni <ezannoni@redhat.com>
10382
fbe586ae 10383 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10384 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10385 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10386 (start_remote): Ditto.
10387 (handle_inferior_event): Ditto.
10388 (save_inferior_status): Ditto.
10389 (restore_inferior_status): Ditto.
10390 * infcmd.c (attach_command): Ditto.
10391 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10392 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10393 * alpha-tdep.c (heuristic_proc_start): Ditto.
10394 * mips-tdep.c (heuristic_proc_start): Ditto.
10395 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10396 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10397 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10398 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10399 * remote-vx.c (vx_create_inferior): Ditto.
10400
104012003-04-08 Elena Zannoni <ezannoni@redhat.com>
10402
10403 * infrun.c (stop_soon_quietly): Make it an enum, to better
10404 override the default behavior of handle_inferior_event.
10405 (clear_proceed_status): Update uses of stop_soon_quietly to
10406 reflect that it is now an enum.
10407 (start_remote): Ditto.
10408 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10409 is set to handle the new GNU/Linux kernel behavior for
10410 attach/sigstop. Update uses of stop_soon_quietly.
10411 * inferior.h (enum stop_kind): New enum.
10412 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10413 Reset normal handle_inferior_event behavior, afterwards.
10414 * fork-child.c (startup_inferior): Update.
10415 * alpha-tdep.c (heuristic_proc_start): Update.
10416 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10417 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10418 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10419 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10420 * remote-vx.c (vx_create_inferior): Update.
10421 * mips-tdep.c (heuristic_proc_start): Update.
10422
1211bce3
EZ
104232003-04-07 Elena Zannoni <ezannoni@redhat.com>
10424
10425 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10426 be freed more than once, causing wild memory corruptions.
1211bce3 10427 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10428 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10429 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10430 with the "core" target.
1211bce3 10431
f0ef6b29
KB
104322003-04-07 Kevin Buettner <kevinb@redhat.com>
10433
10434 * mips-tdep.c (mips_print_fp_register): New function, created from
10435 do_fp_register_row(). Registers are now (also) printed as hex.
10436 Only one register is printed per row.
10437 (mips_print_register, do_fp_register_row): Print floating point
10438 registers with mips_print_fp_register().
10439
8cf71652
AC
104402003-04-06 Andrew Cagney <cagney@redhat.com>
10441
5e488a7b
AC
10442 * valprint.h (inspect_it): Add extern declaration.
10443 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10444 (selectors_info, classes_info): Ditto.
10445 (find_objc_msgcall): Fix indentation.
10446 (objc_printstr): Delete extern declarations.
10447
8cf71652
AC
10448 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10449
e6ba3bc9
AC
104502003-04-06 Andrew Cagney <cagney@redhat.com>
10451
10452 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10453 Update comment.
10454 * frame.c (legacy_saved_regs_this_id): Update.
10455 (legacy_get_prev_frame): Update.
10456 * xstormy16-tdep.c: Update comment.
10457 * sparc-tdep.c (sparc_frame_chain): Update comment.
10458 * blockframe.c (legacy_frame_chain_valid): Update.
10459
55e1d7e7
AC
104602003-04-06 Andrew Cagney <cagney@redhat.com>
10461
996179ee
AC
10462 * valprint.c (val_print_type_code_int): Delete #ifdef
10463 PRINT_TYPELESS_INTEGER code.
10464
55e1d7e7
AC
10465 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10466 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10467 multi-arch definition.
10468 * gdbarch.h: Re-generate.
10469
43bd9a9e
AC
104702003-04-05 Andrew Cagney <cagney@redhat.com>
10471
10472 Eliminate FRAME_FIND_SAVED_REGS.
10473 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10474 Change FSR parameter to a pointer.
10475 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10476 Assume FSR parameter is a pointer.
10477 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10478 Make fsr a pointer.
10479 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10480 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10481 saved_regs a pointer.
10482 (hppa_frame_saved_pc): Ditto.
10483 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10484 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10485 pointer.
10486 (restore_pc_queue): Make fsr a pointer.
10487 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10488 (hppa_frame_chain): Make saved_regs a pointer, call
10489 hppa_frame_init_saved_regs.
10490 * sparc-tdep.c: Include "gdb_assert.h".
10491 (sparc_frame_find_saved_regs): Replace internal_error with
10492 gdb_assert.
10493 * remote-vxsparc.c (vx_read_register): Delete reference to
10494 FRAME_FIND_SAVED_REGS.
10495 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10496 * gdbarch.h: Regenerate.
10497 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10498 (deprecated_get_frame_saved_regs): Delete declaration.
10499 (struct frame_saved_regs): Delete definition.
10500 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10501 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10502 (hppa_frame_find_saved_regs): Delete declaration.
10503 (FRAME_FIND_SAVED_REGS): Delete macro.
10504 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10505 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10506 FRAME_FIND_SAVED_REGS in comment.
10507
be41e9f4
AC
105082003-04-05 Andrew Cagney <cagney@redhat.com>
10509
10510 * frame.c (frame_func_unwind, get_frame_func): New functions.
10511 * frame.h (get_frame_func, frame_func_unwind): Declare.
10512 (struct frame_info): Add field "prev_func" for caching the
10513 previous frame's function address.
10514 * arm-tdep.c (arm_frameless_function_invocation): Combine
10515 get_pc_function_start and get_frame_pc into get_frame_func.
10516 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10517 (sh64_nofp_frame_init_saved_regs): Ditto.
10518 * s390-tdep.c (s390_function_start): Ditto.
10519 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10520 (rs6000_frameless_function_invocation): Ditto.
10521 (rs6000_frame_saved_pc): Ditto.
10522 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10523 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10524 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10525 (i386_frame_init_saved_regs): Ditto.
10526 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10527 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10528 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10529 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10530 * blockframe.c (frameless_look_for_prologue): Ditto.
10531
a01dd7cc
AC
105322003-04-05 Andrew Cagney <cagney@redhat.com>
10533
10534 * frame.c (legacy_get_prev_frame): Link prev to next at the
10535 function start. Update comments.
10536
5e5592e6
AC
105372003-04-05 Andrew Cagney <cagney@redhat.com>
10538
10539 * frame.c (get_frame_id): Update comment.
10540 (legacy_get_prev_frame): Update comment.
10541 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10542 * gdbarch.h: Regenerate.
10543 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10544 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10545
6fba5002
AC
105462003-04-05 Andrew Cagney <cagney@redhat.com>
10547
10548 * stack.c (print_frame_info): Use get_frame_pc.
10549
7df05f2b
AC
105502003-04-04 Andrew Cagney <cagney@redhat.com>
10551
10552 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10553 the frame's type from the unwinder.
10554 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10555 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10556 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10557 (get_frame_base_address): Use get_frame_type.
10558 (get_frame_locals_address, get_frame_args_address): Ditto.
10559 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10560 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10561 (struct frame_info): Add comment explaining why the frame contains
10562 a "type" field.
10563 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10564 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10565 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10566 NORMAL_FRAME.
10567 * frame-unwind.h: Include "frame.h".
10568 (struct frame_unwind): Add "type" field.
10569 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10570
11889732
AC
105712003-04-04 Andrew Cagney <cagney@redhat.com>
10572
10573 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10574 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10575 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10576 get_frame_base.
10577 (d10v_unwind_dummy_id): Use frame_id_build.
10578 * frame.c (find_frame_sal): Use get_frame_pc.
10579 (create_new_frame): Use deprecated_update_frame_pc_hack and
10580 deprecated_update_frame_base_hack.
10581 (create_sentinel_frame): Add comment about ->pc going away.
10582 (get_prev_frame): Add comment about ->pc going away.
10583 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10584 frame_id_build, deprecated_update_frame_pc_hack and
10585 deprecated_update_frame_base_hack.
10586 (select_frame): Use get_frame_pc.
10587 (legacy_saved_regs_this_id): Use frame_id_build.
10588
50c46a0d
EZ
105892003-04-04 Elena Zannoni <ezannoni@redhat.com>
10590
fbe586ae
RH
10591 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10592 signed integer case.
10593 (classify_argument): Handle enumerations and references.
50c46a0d 10594
50bbdbd9
AC
105952003-04-04 Andrew Cagney <cagney@redhat.com>
10596
10597 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10598 ID to NULL.
10599
36018d2e
AF
106002003-04-01 Adam Fedor <fedor@gnu.org>
10601
10602 * gdb/objc-lang.c (selectors_info): Replace calls to
10603 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10604 SYMBOL_NATURAL_NAME.
10605 (classes_info, find_methods): Likewise.
10606
35cec841
KB
106072003-04-03 Kevin Buettner <kevinb@redhat.com>
10608
10609 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10610 ``mach'' to the value determined by bfd_default_set_arch_mach().
10611
43136899
BR
106122003-04-02 Bob Rossi <bob_rossi@cox.net>
10613
10614 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10615 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10616 (mi-cmd-file.o): Update dependencies.
10617
040b99fd
KB
106182003-04-01 Kevin Buettner <kevinb@redhat.com>
10619
10620 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10621 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10622
9a3d7dfd
AF
106232003-04-01 Adam Fedor <fedor@gnu.org>
10624
10625 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10626 * language.h (struct language_defn): Add la_demangle.
10627 (language_demangle): Declare.
10628 * language.c (language_demangle): New function.
10629 (unk_lang_demangle): Likewise.
10630 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10631 Add ukn_lang_demangle.
9a3d7dfd 10632 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10633 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10634 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10635 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10636 * jv-lang.c (java_demangle): New function
10637 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10638 * objc-lang.c (objc_demangle): Add options argument
10639 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10640 * maint.c (maintenance_demangle): Replace switch with
10641 call to language_demangle.
10642 * utils.c (fprintf_symbol_filtered): Likewise.
10643
5e074003
AC
106442003-04-01 Andrew Cagney <cagney@redhat.com>
10645
10646 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10647 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10648 PRINT_TYPELESS_INTEGER.
10649 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10650 PUSH_RETURN_ADDRESS.
10651
270cb5d6
AC
106522003-04-01 Andrew Cagney <cagney@redhat.com>
10653
10654 * Makefile.in (d10v-tdep.o): Update dependencies.
10655 * d10v-tdep.c: Include "frame-base.h".
10656 (d10v_frame_unwind): Make constant.
10657 (d10v_frame_base_address): New function.
10658 (d10v_frame_base): New variable.
10659 (d10v_gdbarch_init): Set frame_base default.
10660 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10661 comment for base.
10662 (d10v_frame_unwind_cache): Set and use "prev_sp".
10663 (d10v_frame_this_id): Use the previous frame's inner most stack
10664 address and this frame's func address for the frame ID. Use
10665 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10666
6bfb3e36
AC
106672003-04-01 Andrew Cagney <cagney@redhat.com>
10668
10669 * frame.h (get_frame_locals_address, get_frame_args_address):
10670 Refer to the base address, instead of the address of the first
10671 local or parameter.
8ffd9b1b 10672
da62e633
AC
106732003-04-01 Andrew Cagney <cagney@redhat.com>
10674
10675 Add frame debug info addresses:
10676 * frame-base.c: New file.
10677 * frame-base.h: New file.
10678 * frame.h (struct frame_base): Add opaque declaration.
10679 (get_frame_base): Update comment.
10680 (get_frame_base_address): Declare.
10681 (get_frame_locals_address): Declare.
10682 (get_frame_args_address): Declare.
10683 (struct frame_info): Add "base" and "base_cache". Update
10684 comments on the unwinder.
10685 * frame.c: Include "frame-base.h".
10686 (get_frame_locals_address): New function.
10687 (get_frame_base_address): New function.
10688 (get_frame_args_address): New function.
10689 * findvar.c (read_var_value): Use get_frame_locals_address and
10690 get_frame_args_address.
10691 * stack.c (frame_info): Use get_frame_locals_address and
10692 get_frame_args_address.
10693 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10694 moved to "frame-base.c".
10695 * printcmd.c (print_frame_nameless_args): Ditto.
10696 * symtab.h (address_class): Update comments.
10697 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10698 get_frame_base_address.
10699 * dwarf2expr.c (execute_stack_op): Ditto.
10700 * Makefile.in (frame_base_h): Define.
10701 (frame.o): Update dependencies.
10702 (frame-base.o): Add dependencies.
10703 (SFILES): Add frame-base.c.
10704 (COMMON_OBS): Add frame-base.o.
10705
3d30e9c2
AC
107062003-04-01 Andrew Cagney <cagney@redhat.com>
10707
10708 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10709 CALL_DUMMY_LENGTH): Ditto.
10710 * gdbarch.c: Re-generate.
10711 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10712 (CALL_DUMMY_LENGTH): Delete macro.
10713 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10714 * arm-tdep.c (arm_gdbarch_init): Ditto.
10715 * avr-tdep.c (avr_gdbarch_init): Ditto.
10716 * cris-tdep.c (cris_gdbarch_init): Ditto.
10717 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10718 * frv-tdep.c (frv_gdbarch_init): Ditto.
10719 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10720 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10721 * i386-tdep.c (i386_gdbarch_init): Ditto.
10722 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10724 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10725 * mips-tdep.c (mips_gdbarch_init): Ditto.
10726 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10727 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10728 * s390-tdep.c (s390_gdbarch_init): Ditto.
10729 * sh-tdep.c (sh_gdbarch_init): Ditto.
10730 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10731 * v850-tdep.c (v850_gdbarch_init): Ditto.
10732 * vax-tdep.c (vax_gdbarch_init): Ditto.
10733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10734
ce0c7262
CV
107352003-04-01 Corinna Vinschen <vinschen@redhat.com>
10736
10737 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10738
73dd234f
AC
107392003-04-01 Andrew Cagney <cagney@redhat.com>
10740
10741 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10742 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10743 * gdbarch.h, gdbarch.c: Re-generate.
10744 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10745 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10746 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10747 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10748 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10749 * infcmd.c (run_stack_dummy): Simplify assuming
10750 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10751 * infrun.c (handle_inferior_event): Ditto.
10752 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10753 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10754 * arm-tdep.c (arm_gdbarch_init): Ditto.
10755 * avr-tdep.c (avr_gdbarch_init): Ditto.
10756 * cris-tdep.c (cris_gdbarch_init): Ditto.
10757 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10758 * frv-tdep.c (frv_gdbarch_init): Ditto.
10759 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10760 * i386-tdep.c (i386_gdbarch_init): Ditto.
10761 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10763 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10764 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10765 * mips-tdep.c (mips_gdbarch_init): Ditto.
10766 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10767 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10768 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10769 * s390-tdep.c (s390_gdbarch_init): Ditto.
10770 * sh-tdep.c (sh_gdbarch_init): Ditto.
10771 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10772 * v850-tdep.c (v850_gdbarch_init): Ditto.
10773 * vax-tdep.c (vax_gdbarch_init): Ditto.
10774 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10775
97606a13
DJ
107762003-04-01 Daniel Jacobowitz <drow@mvista.com>
10777
10778 * symfile.c (symfile_relocate_debug_section): Update call to
10779 bfd_simple_get_relocated_section_contents.
10780
e8ab51f7
AC
107812003-03-31 Andrew Cagney <cagney@redhat.com>
10782
10783 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10784 * gdbarch.h, gdbarch.c: Regenerate.
10785 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10786 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10787 available.
10788 * frame.h (generic_fix_call_dummy): Delete declaration.
10789 * dummy-frame.h: Update comment.
10790 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10791 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10792 fix_call_dummy.
10793 * sh-tdep.c (sh_gdbarch_init): Ditto.
10794 * s390-tdep.c (s390_gdbarch_init): Ditto.
10795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10796 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10798 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10799 * i386-tdep.c (i386_gdbarch_init): Ditto.
10800 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10801 * frv-tdep.c (frv_gdbarch_init): Ditto.
10802 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10803 * cris-tdep.c (cris_gdbarch_init): Ditto.
10804 * avr-tdep.c (avr_gdbarch_init): Ditto.
10805 * arm-tdep.c (arm_gdbarch_init): Ditto.
10806
018d1b48
JB
108072003-03-31 J. Brobecker <brobecker@gnat.com>
10808
10809 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10810 (INIT_FRAME_AP): Likewise.
10811 (EXTRA_FRAME_INFO): Likewise.
10812
e9a2674e
AC
108132003-03-31 Andrew Cagney <cagney@redhat.com>
10814
10815 * gdbarch.sh: Include "symfile.h".
10816 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10817 * gdbarch.h, gdbarch.c: Re-generate.
10818 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10820 call_dummy_address, the default is at entry_point_address.
10821 * v850-tdep.c (v850_gdbarch_init): Ditto.
10822 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10823 * sh-tdep.c (sh_gdbarch_init): Ditto.
10824 * s390-tdep.c (s390_gdbarch_init): Ditto.
10825 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10826 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10827 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10828 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10829 * i386-tdep.c (i386_gdbarch_init): Ditto.
10830 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10831 * frv-tdep.c (frv_gdbarch_init): Ditto.
10832 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10833 * cris-tdep.c (cris_gdbarch_init): Ditto.
10834 * arm-tdep.c (arm_gdbarch_init): Ditto.
10835
e8a8712a
AC
108362003-03-31 Andrew Cagney <cagney@redhat.com>
10837
10838 * gdbarch.sh (CALL_DUMMY_P): Delete.
10839 * gdbarch.h, gdbarch.c: Re-generate.
10840 * inferior.h (CALL_DUMMY_P): Delete macro.
10841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10842 * vax-tdep.c (vax_gdbarch_init): Update.
10843 * v850-tdep.c (v850_gdbarch_init): Update.
10844 * sparc-tdep.c (sparc_gdbarch_init): Update.
10845 * sh-tdep.c (sh_gdbarch_init): Update.
10846 * s390-tdep.c (s390_gdbarch_init): Update.
10847 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10848 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10849 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10850 * mips-tdep.c (mips_gdbarch_init): Update.
10851 * mcore-tdep.c (mcore_gdbarch_init): Update.
10852 * m68k-tdep.c (m68k_gdbarch_init): Update.
10853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10854 * ia64-tdep.c (ia64_gdbarch_init): Update.
10855 * i386-tdep.c (i386_gdbarch_init): Update.
10856 * h8300-tdep.c (h8300_gdbarch_init): Update.
10857 * frv-tdep.c (frv_gdbarch_init): Update.
10858 * d10v-tdep.c (d10v_gdbarch_init): Update.
10859 * cris-tdep.c (cris_gdbarch_init): Update.
10860 * breakpoint.c (deprecated_frame_in_dummy): Update.
10861 * avr-tdep.c (avr_gdbarch_init): Update.
10862 * alpha-tdep.c (alpha_gdbarch_init): Update.
10863 * arm-tdep.c (arm_gdbarch_init): Update.
10864 * dummy-frame.c (dummy_frame_this_id): Update comments.
10865 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10866 * frame.c (legacy_get_prev_frame): Ditto.
10867 * valops.c (call_function_by_hand): Delete function.
10868 (hand_function_call): Rename to call_function_by_hand
10869
ed234cf8
AC
108702003-03-30 Andrew Cagney <cagney@redhat.com>
10871
10872 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10873 * value.h (struct value): Update comment.
ed234cf8 10874
06c77151
AC
108752003-03-30 Andrew Cagney <cagney@redhat.com>
10876
6c2b5168
AC
10877 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10878 D10V_FP_REGNUM.
10879 (d10v_gdbarch_init): Do not set fp_regnum.
10880
06c77151
AC
10881 * frame.c (get_frame_base): Force ID initialization.
10882 (get_prev_frame): Move computation of the frame ID from here ...
10883 (get_frame_id): ... to here.
10884 (legacy_get_prev_frame): Mark the frame ID as valid.
10885 * frame.h (struct frame_info): Add field "id_p".
10886
97a1a11c
MK
108872003-03-30 Mark Kettenis <kettenis@gnu.org>
10888
10889 * i386-tdep.c (i386_store_struct_return): Removed.
10890 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10891
6c0e89ed
AC
108922003-03-30 Andrew Cagney <cagney@redhat.com>
10893
10894 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10895 * gdbarch.h, gdbarch.c: Regenerate.
10896 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10897 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10899 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10900 * i386-tdep.c (i386_gdbarch_init): Ditto.
10901 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10902 * cris-tdep.c (cris_gdbarch_init): Ditto.
10903 * vax-tdep.c (vax_gdbarch_init): Ditto.
10904 * s390-tdep.c (s390_gdbarch_init): Ditto.
10905 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10906 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10907 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10908 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10909 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10910 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10911 * sparc-tdep.c (sparc_gdbarch_init): Update.
10912 * sh-tdep.c (sh_gdbarch_init): Update.
10913 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10914 * mips-tdep.c (mips_gdbarch_init): Update.
10915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10916 * ia64-tdep.c (ia64_gdbarch_init): Update.
10917 * frv-tdep.c (frv_gdbarch_init): Update.
10918 * avr-tdep.c (avr_gdbarch_init): Update.
10919 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10920 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10921 instead of when push_dummy_call is not available.
8ffd9b1b 10922
f7dd6af2
AC
109232003-03-30 Andrew Cagney <cagney@redhat.com>
10924
10925 * infttrace.c: Include "gdbthread.h".
10926 (parent_attach_all): Fix function signature.
10927 (call_ptrace): Update call.
10928 * Makefile.in (infttrace.o): Update dependencies.
10929
28f617b3
AC
109302003-03-30 Andrew Cagney <cagney@redhat.com>
10931
10932 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10933 PUSH_RETURN_ADDRESS.
10934 * gdbarch.h, gdbarch.c: Regenerate.
10935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10936 * x86-64-tdep.c (x86_64_init_abi): Update.
10937 * v850-tdep.c (v850_gdbarch_init): Update.
10938 * sparc-tdep.c (sparc_gdbarch_init): Update.
10939 * sh-tdep.c (sh_gdbarch_init): Update.
10940 * s390-tdep.c (s390_gdbarch_init): Update.
10941 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10942 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10943 * mips-tdep.c (mips_gdbarch_init): Update.
10944 * mcore-tdep.c (mcore_gdbarch_init): Update.
10945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10946 * ia64-tdep.c (ia64_gdbarch_init): Update.
10947 * i386-tdep.c (i386_gdbarch_init): Update.
10948 * h8300-tdep.c (h8300_gdbarch_init): Update.
10949 * frv-tdep.c (frv_gdbarch_init): Update.
10950 * cris-tdep.c (cris_gdbarch_init): Update.
10951 * avr-tdep.c (avr_gdbarch_init): Update.
10952 * arm-tdep.c (arm_gdbarch_init): Update.
10953 * valops.c (hand_function_call): Update.
10954
4d628cd7
AC
109552003-03-29 Andrew Cagney <cagney@redhat.com>
10956
10957 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10958 sizeof_call_dummy_words.
10959 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10960 define.
10961 * gdbarch.h: Regenerate.
8ffd9b1b 10962
65e82032
AC
109632003-03-29 Andrew Cagney <cagney@redhat.com>
10964
10965 * infttrace.h: New file.
10966 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10967 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10968 (hpread_read_doc_function_type): Detect an initialized type1.
10969 (hpread_quick_traverse): Initialize mod_name_string.
10970 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10971 (som_solib_get_solib_by_pc): Declare.
10972 (so_lib_thread_start_addr): Declare.
10973 (no_shared_libraries): Declare.
10974 * somread.c (init_import_symbols): Make static. Add forward
10975 declaration.
10976 * config/pa/nm-hppah.h: Include "infttrace.h" for
10977 parent_attach_all.
10978 (hppa_insert_hw_watchpoint): Declare.
10979 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10980 * hppah-nat.c: Include "gdb_string.h".
10981 (parent_attach_all): Delete extern declaration, moved to
10982 "infttrace.h".
10983 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10984 int.
10985 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10986 * Makefile.in (infttrace_h): Define.
10987 (hpread.o): Update dependencies.
10988 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10989 * hppa-hpux-tdep.c: Include "gdb_string.h".
10990 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10991 * infrun.c (handle_inferior_event): Always initialize
10992 stepped_after_stopped_by_watchpoint. Add default and remove
10993 fallthrough in switch statement.
10994 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10995 parameter to int.
10996 (hppa_remove_hw_watchpoint): Ditto.
10997
2c3bbe77
AC
109982003-03-29 Andrew Cagney <cagney@redhat.com>
10999
11000 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11001 offset.
11002
2dd604e7
RE
110032003-03-29 Richard Earnshaw <rearnsha@arm.com>
11004
11005 * arm-tdep.c (arm_push_arguments): Delete.
11006 (struct stack_item): New type.
11007 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11008 (arm_store_struct_return): Delte.
11009 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11010 arm_push_arguments or arm_store_struct_return.
11011
e8933a55
AC
110122003-03-28 Andrew Cagney <cagney@redhat.com>
11013
11014 * Makefile.in (d10v-tdep.o): Update dependencies.
11015 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11016 * d10v-tdep.c: Include "remote.h".
11017 (target_resume_hook): Delete extern declaration.
11018 (target_wait_loop_hook): Ditto.
11019 (tdisassemble_command): Eliminate assignment in "if" conditional.
11020 (d10v_ts2_register_sim_regno): Eliminate call to
11021 legacy_register_sim_regno.
11022 (d10v_ts3_register_sim_regno): Ditto.
11023
6949171e
JJ
110242003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11025
11026 * thread.c: Reindented.
11027 * lin-lwp.c: Ditto.
11028 * linux-proc.c: Ditto.
11029
98c7071f
BR
110302003-03-28 Bob Rossi <bob_rossi@cox.net>
11031
fbe586ae 11032 * MAINTAINERS (write after approval): Add myself.
98c7071f 11033
5edc9ca6
TR
110342003-03-27 Theodore A. Roth <troth@openavr.org>
11035
11036 * objc-exp.y: Add missing semi-colons.
11037
378bfd1b
AC
110382003-03-27 Andrew Cagney <cagney@redhat.com>
11039
11040 * regcache.c (write_sp): Delete function and references.
11041 * inferior.h (write_sp): Delete declaration.
11042 * valops.c (hand_function_call): Replace write_sp with
11043 TARGET_WRITE_SP.
11044 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11045 (sparc_pop_frame): Ditto.
8ffd9b1b 11046
56056df7
AC
110472003-03-27 Andrew Cagney <cagney@redhat.com>
11048
11049 * NEWS: Mention removal of support for hppa*-*-bsd* and
11050 hppa*-*-osf* natives, and hppa*-*-pro* target.
11051 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11052 * config/pa/xm-pa.h: Obsolete file.
11053 * config/pa/xm-hppab.h: Obsolete file.
11054 * config/pa/nm-hppab.h: Obsolete file.
11055 * config/pa/tm-hppab.h: Obsolete file.
11056 * config/pa/tm-hppao.h: Obsolete file.
11057 * config/pa/nm-hppao.h: Obsolete file.
11058 * config/pa/tm-pro.h: Obsolete file.
11059 * config/pa/hppaosf.mt: Obsolete file.
11060 * config/pa/hppaosf.mh: Obsolete file.
11061 * config/pa/hppapro.mt: Obsolete file.
11062 * config/pa/hppabsd.mt: Obsolete file.
11063 * config/pa/hppabsd.mh: Obsolete file.
11064 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11065 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11066 hppa*-*-osf*.
11067
5873a88d
AC
110682003-03-27 Andrew Cagney <cagney@redhat.com>
11069
11070 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11071 push_arguments. Don't set push_return_address or write_sp.
11072 (d10v_push_dummy_call): Replace d10v_push_arguments.
11073 (d10v_push_return_address, d10v_write_sp): Delete function,
11074 handled by push_dummy_call.
11075
b81774d8
AC
110762003-03-26 Andrew Cagney <cagney@redhat.com>
11077
11078 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11079 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11080 regcache and dummy_addr parameters.
11081 * gdbarch.h, gdbarch.c: Re-generate.
11082 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11083 available; assume it will handle stack alignment and return
11084 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11085 legacy_push_arguments.
11086 (legacy_push_arguments): Rename default_push_arguments.
11087 * value.h (legacy_push_arguments): Rename default_push_arguments.
11088 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11089 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11090 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11091 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11092 * config/i386/tm-symmetry.h: Update.
11093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11094 * x86-64-tdep.c (x86_64_init_abi): Update.
11095 * v850-tdep.c (v850_gdbarch_init): Update.
11096 * sparc-tdep.c (sparc_gdbarch_init): Update.
11097 * sh-tdep.c (sh_gdbarch_init): Update.
11098 * s390-tdep.c (s390_gdbarch_init): Update.
11099 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11100 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11101 * mips-tdep.c (mips_gdbarch_init): Update.
11102 * mcore-tdep.c (mcore_gdbarch_init): Update.
11103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11104 * ia64-tdep.c (ia64_gdbarch_init): Update.
11105 * i386-tdep.c (i386_gdbarch_init): Update.
11106 * hppa-tdep.c (hppa_gdbarch_init): Update.
11107 * h8300-tdep.c (h8300_gdbarch_init): Update.
11108 * frv-tdep.c (frv_gdbarch_init): Update.
11109 * d10v-tdep.c (d10v_gdbarch_init): Update.
11110 * cris-tdep.c (cris_gdbarch_init): Update.
11111 * avr-tdep.c (avr_gdbarch_init): Update.
11112 * arm-tdep.c (arm_gdbarch_init): Update.
11113 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11114 * alpha-tdep.c (alpha_gdbarch_init): Update.
11115
f541410f
DJ
111162003-03-26 Daniel Jacobowitz <drow@mvista.com>
11117
11118 * signals/signals.c (do_target_signal_to_host): Correct realtime
11119 signal range test.
11120
69f567ae
DJ
111212003-03-26 Daniel Jacobowitz <drow@mvista.com>
11122
11123 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11124 (struct sal_chain, map_catch_names): Remove.
11125 (catch_exception_command_1): Don't call
11126 handle_gnu_4_16_catch_command.
11127
d5d14a5a
DJ
111282003-03-26 Daniel Jacobowitz <drow@mvista.com>
11129
11130 From Mark Dettinger <dettinge@de.ibm.com>:
11131 * dwarf2cfi.c (read_2u): Increment pointer by two.
11132
bdd73e22
DJ
111332003-03-26 Daniel Jacobowitz <drow@mvista.com>
11134
11135 * signals/signals.c: Fix typos in last change.
11136
960cb555
DJ
111372003-03-26 Daniel Jacobowitz <drow@mvista.com>
11138
11139 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11140 not already defined. Use __SIGRTMIN if available.
11141 (target_signal_from_host): Remove SIGRTMIN block.
11142 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11143 the signal is within the realtime range.
11144
f636b87d
AF
111452003-03-25 Adam Fedor <fedor@gnu.org>
11146
11147 * Makefile.in (infrun.o): Add $(language_h)
11148 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11149 for language specific trampolines.
11150 * language.h (struct language_defn): Add skip_trampoline.
11151 (skip_language_trampoline): Declare.
11152 * language.c (unk_lang_trampoline, skip_language_trampoline):
11153 New functions.
11154 (unknown_language_defn, auto_language_defn, local_language_defn):
11155 Add ukn_lang_trampoline.
11156 * ada-lang.c (ada_language_defn): Add NULL for language
11157 specific skip_trampoline.
11158 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11159 scm-lang.c: Likewise.
11160 * objc-lang.c (objc_skip_trampoline): New function.
11161 (objc_language_defn): Add objc_skip_trampoline.
11162
28f617b3 111632003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11164
11165 * frame.c (get_prev_frame): Delay validating a frame's ID -
11166 non-NULL, didn't go backwards - until an attempt to unwind it to
11167 the previous frame.
11168
f933a9c5
AC
111692003-03-25 Andrew Cagney <cagney@redhat.com>
11170
11171 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11172 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11173 * gdbarch.h, gdbarch.c: Re-generate.
11174 * config/sparc/tm-sparc.h
11175 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11176 * sparc-tdep.c (sparc_gdbarch_init): Set
11177 deprecated_extra_stack_alignment_needed.
11178 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11180 extra_stack_alignment_needed.
11181 * v850-tdep.c (v850_gdbarch_init): Ditto.
11182 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11183 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11184 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11185 * cris-tdep.c (cris_gdbarch_init): Ditto.
11186 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11188
4183d812
AC
111892003-03-25 Andrew Cagney <cagney@redhat.com>
11190
11191 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11192 STORE_STRUCT_RETURN.
11193 * gdbarch.h, gdbarch.c: Regenerate.
11194 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11195 (d10v_push_arguments): Set the struct return register.
11196 (d10v_gdbarch_init): Update.
11197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11198 * x86-64-tdep.c (x86_64_init_abi): Update.
11199 * vax-tdep.c (vax_gdbarch_init): Update.
11200 * v850-tdep.c (v850_gdbarch_init): Update.
11201 * sparc-tdep.c (sparc_gdbarch_init): Update.
11202 * sh-tdep.c (sh_gdbarch_init): Update.
11203 * s390-tdep.c (s390_gdbarch_init): Update.
11204 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11206 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11207 * mips-tdep.c (mips_gdbarch_init): Update.
11208 * mcore-tdep.c (mcore_gdbarch_init): Update.
11209 * m68k-tdep.c (m68k_gdbarch_init): Update.
11210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11211 * ia64-tdep.c (ia64_gdbarch_init): Update.
11212 * i386-tdep.c (i386_gdbarch_init): Update.
11213 * hppa-tdep.c (hppa_gdbarch_init): Update.
11214 * h8300-tdep.c (h8300_gdbarch_init): Update.
11215 * frv-tdep.c (frv_gdbarch_init): Update.
11216 * cris-tdep.c (cris_gdbarch_init): Update.
11217 * avr-tdep.c (avr_gdbarch_init): Update.
11218 * arm-tdep.c (arm_gdbarch_init): Update.
11219 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11220
1bf6d5cc
AC
112212003-03-25 Andrew Cagney <cagney@redhat.com>
11222
11223 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11224 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11225 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11226 * gdbarch.h, gdbarch.c: Regenerate.
11227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11228 call_dummy_stack_adjust_p.
11229 * vax-tdep.c (vax_gdbarch_init): Ditto.
11230 * v850-tdep.c (v850_gdbarch_init): Ditto.
11231 * sh-tdep.c (sh_gdbarch_init): Ditto.
11232 * s390-tdep.c (s390_gdbarch_init): Ditto.
11233 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11234 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11236 * mips-tdep.c (mips_gdbarch_init): Ditto.
11237 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11238 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11240 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11241 * i386-tdep.c (i386_gdbarch_init): Ditto.
11242 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11243 * frv-tdep.c (frv_gdbarch_init): Ditto.
11244 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11245 * cris-tdep.c (cris_gdbarch_init): Ditto.
11246 * avr-tdep.c (avr_gdbarch_init): Ditto.
11247 * arm-tdep.c (arm_gdbarch_init): Ditto.
11248 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11249 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11250 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11251 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11252 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11253 call_dummy_stack_adjust_p.
11254 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11255 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11256 * sparc-tdep.c (sparc32_push_arguments): Update.
11257 * valops.c (hand_function_call): Update.
11258
71c08af0
CV
112592003-03-25 Corinna Vinschen <vinschen@redhat.com>
11260
11261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11262 set_gdbarch_char_signed.
11263
30757f90
RE
112642003-03-25 Richard Earnshaw <rearnsha@arm.com>
11265
11266 PR cli/548
11267 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11268
03d48a7d
RE
112692003-03-25 Richard Earnshaw <rearnsha@arm.com>
11270
11271 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11272 (_initialize_arm_tdep): Don't set tm_print_insn.
11273
2cf6873c
AF
112742003-03-24 Adam Fedor <fedor@gnu.org>
11275
11276 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11277 * objc-lang.h: Add multiple inclusion protection.
11278 (start_msglist, add_msglist, end_msglist): Additional declarations.
11279
17c0759e
RE
112802003-03-24 Richard Earnshaw <rearnsha@arm.com>
11281
11282 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11283 value was renamed to ARM_FLOAT_SOFT_FPA.
11284
618ce49f
AC
112852003-03-23 Andrew Cagney <cagney@redhat.com>
11286
11287 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11288 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11289 * gdbarch.h, gdbarch.c: Regenerate.
11290 * valops.c (hand_function_call): Update.
11291 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11292 * frame.c (legacy_saved_regs_this_id): Update.
11293 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11294 * dummy-frame.h: Update.
11295 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11296 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11297 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11298 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11299 * config/m68k/tm-sun3.h: Update.
11300 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11302 * x86-64-tdep.c (x86_64_init_abi): Update.
11303 * vax-tdep.c (vax_gdbarch_init): Update.
11304 * v850-tdep.c (v850_gdbarch_init): Update.
11305 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11306 * sh-tdep.c (sh_gdbarch_init): Update.
11307 * s390-tdep.c (s390_gdbarch_init): Update.
11308 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11309 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11310 (frame_get_saved_regs): Update.
11311 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11312 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11313 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11314 * mips-tdep.c (mips_gdbarch_init): Update.
11315 * mcore-tdep.c (mcore_gdbarch_init): Update.
11316 * m68k-tdep.c (m68k_gdbarch_init): Update.
11317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11318 * ia64-tdep.c (ia64_gdbarch_init): Update.
11319 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11320 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11321 (i386_interix_back_one_frame): Update.
11322 * hppa-tdep.c (hppa_gdbarch_init): Update.
11323 (hppa_init_extra_frame_info): Update.
11324 * h8300-tdep.c (h8300_gdbarch_init): Update.
11325 * frv-tdep.c (frv_gdbarch_init): Update.
11326 * cris-tdep.c (cris_gdbarch_init): Update.
11327 * avr-tdep.c (avr_gdbarch_init): Update.
11328 * arm-tdep.c (arm_gdbarch_init): Update.
11329 * alpha-tdep.c (alpha_gdbarch_init): Update.
11330
fd50bc42
RE
113312003-03-22 Richard Earnshaw <rearnsha@arm.com>
11332
11333 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11334 (arm_get_fp_model): Declare.
11335 * arm-tdep.c (fp_model_strings): New string array.
11336 (arm_fp_model, current_fp_model): New variables.
11337 (arm_get_fp_model): New function.
11338 (arm_set_fp): New function.
11339 (set_fp_model_sfunc): New function.
11340 (show_fp_model): New function.
11341 (_initialize_arm_tdep): Add new command to set/show the FPU.
11342 (arm_extract_return_value): Use arm_get_fp_model.
11343 (arm_store_return_value): Likewise.
11344 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11345 to initialize the floating-point data types.
11346 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11347 model is FPA.
11348
26304000
RE
113492003-03-22 Richard Earnshaw <rearnsha@arm.com>
11350
11351 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11352 the current setting of each value.
11353 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11354 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11355 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11356 commands and add new version as subcommands of "set/show arm".
11357
afd7eef0
RE
113582003-03-22 Richard Earnshaw <rearnsha@arm.com>
11359
11360 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11361 (set_arm_command, show_arm_command): New functions.
11362 (_initialize_arm_tdep): Add them.
11363 (num_disassembly_options): Renamed from num_flavor_options.
11364 (valid_disassembly_styles): Renamed from valid_flavors.
11365 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11366 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11367 set_disassembly_flavor_sfunc.
11368 (set_disassembly_style): Renamed from set_disassembly_flavor.
11369 (arm_othernames): Updated.
11370 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11371 command. Add "set/show arm disassembly" commands. Deprecate
11372 "othernames" command.
11373
299a7944
RE
113742003-03-22 Richard Earnshaw <rearnsha@arm.com>
11375
11376 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11377 (arm-tdep.o): Depend on elf_arm_h.
11378
c1dac9e6
RE
113792003-03-22 Richard Earnshaw <rearnsha@arm.com>
11380
11381 * Makefile.in (coff_internal_h): Define.
11382 (arm-tdep.o): Update dependencies.
11383
2702d96c
RE
113842003-03-22 Richard Earnshaw <rearnsha@arm.com>
11385
11386 * arm-tdep.c (prologue_cache): Delete.
11387 (check_prologue_cache, save_prologue_cache): Delete.
11388 (arm_scan_prologue): Don't check or update the prologue_cache.
11389 (arm_gdb_arch_init): Don't initialize it.
11390 (_initialize_arm_tdep): Likewise.
11391
27d5d74b
SC
113922003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11393
11394 * MAINTAINERS (tui): Maintainer of tui code.
11395
1762d96d
CV
113962003-03-21 Corinna Vinschen <vinschen@redhat.com>
11397
11398 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11399 (i386-cygwin-tdep.o): Add dependencies.
11400 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11401 * i386-cygwin-tdep.c: New file.
11402 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11403 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11404
4c2e2391
AC
114052003-03-20 Andrew Cagney <cagney@redhat.com>
11406
f20d38b7
AC
11407 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11408 (handle_inferior_event): Remove code calling
11409 DYNAMIC_TRAMPOLINE_NEXTPC.
11410
0022b738
AC
11411 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11412 already has a full path.
11413
864dbc90
AC
11414 * main.c (gdb_main): Return 1.
11415 (captured_main): Call error to report an invalid interpreter.
11416
4c2e2391
AC
11417 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11418 * alpha-osf1-tdep.c: Include "gdb_string.h".
11419
5ef7553b
JB
114202003-03-19 J. Brobecker <brobecker@gnat.com>
11421
11422 Continuing work to convert the hppa targets to multiarch partial.
11423
11424 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11425 method, now that hppa_push_dummy_frame has a conformant prototype.
11426 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11427 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11428 for the switch to multiarch partial.
11429
7bde8967
KB
114302003-03-19 Kevin Buettner <kevinb@redhat.com>
11431
11432 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11433 when iss is issNull.
11434
b006a9e9
KB
114352003-03-18 Kevin Buettner <kevinb@redhat.com>
11436
11437 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11438 NUM_REGS bounds check.
11439
5e2e9765
KB
114402003-03-18 Kevin Buettner <kevinb@redhat.com>
11441
11442 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11443 * mips-tdep.c (gdb_assert.h): Include.
11444 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11445 (mips_register_name): Handle integer registers explicitly. Add
11446 bounds checking.
11447 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11448 (mips_lsi33k_reg_names): Don't list integer registers; they're
11449 handled by mips_register_name() now.
11450 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11451 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11452 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11453 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11454 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11455
a2867626
AC
114562003-03-18 Andrew Cagney <cagney@redhat.com>
11457
11458 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11459 a void pointer.
11460 * gdbtypes.h (print_scalar_formatted): Update declaration.
11461 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11462
06600e06
JB
114632003-03-18 J. Brobecker <brobecker@gnat.com>
11464
11465 * infrun.c (observer.h): Add #include.
11466 (normal_stop): Add call to observer_notify_normal_stop.
11467 * Makefile.in (infrun.o): Add dependency on observer.h.
11468
7daf4f5b
JB
114692003-03-18 J. Brobecker <brobecker@gnat.com>
11470
11471 Continuing work to convert the hppa targets to multiarch partial.
11472 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11473 parameter. Reformat comment.
11474 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11475 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11476 to match new profile.
11477
3371ccc0
JB
114782003-03-18 J. Brobecker <brobecker@gnat.com>
11479
11480 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11481 appear to be working in any case.
11482
4fbe891e
JB
114832003-03-18 J. Brobecker <brobecker@gnat.com>
11484
11485 * observer.c (observer_test_first_observer): New static variable.
11486 (observer_test_second_observer): Likewise.
11487 (observer_test_third_observer): Likewise.
11488 (observer_test_first_notification_function): New static function.
11489 (observer_test_second_notification_function): Likewise.
11490 (observer_test_third_notification_function): Likewise.
11491
a7ff40e7
JB
114922003-03-17 J. Brobecker <brobecker@gnat.com>
11493
11494 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11495 * somsolib.c (gdb_assert.h): Likewise.
11496 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11497 (somsolib.o): Likewise.
11498
26ca4152
AC
114992003-03-17 Andrew Cagney <cagney@redhat.com>
11500
11501 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11502 BFD. Simplify setting of di.endian.
11503
0a613259
AC
115042003-03-17 Andrew Cagney <cagney@redhat.com>
11505
11506 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11507 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11508
11509 From Elena Zannoni <ezannoni@redhat.com>
11510 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11511 vector and floating-point parameters.
11512 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11513 convention.
11514 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11515
1132738f
FN
115162003-03-17 Fernando Nasser <fnasser@redhat.com>
11517
11518 * MAINTAINERS: Remove my name from several maintainership roles.
11519
6dc42492
AC
115202003-03-17 Andrew Cagney <cagney@redhat.com>
11521
11522 Fix frame off-by-one bug.
11523 * frame-unwind.h (frame_this_id_ftype): Replace
11524 frame_unwind_id_ftype.
11525 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11526 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11527 with "prev_register".
11528 * frame-unwind.c (frame_unwind_find_by_pc): Return
11529 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11530 comment.
11531 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11532 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11533 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11534 (dummy_frame_unwind): Update.
11535 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11536 sentinel_frame_register_unwind.
11537 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11538 (sentinel_frame_unwinder): Update.
11539 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11540 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11541 * frame.c (create_sentinel_frame): Update. Initialize
11542 "prologue_cache" instead of "unwind_cache".
11543 (frame_register_unwind): Call this frame's prev_register with the
11544 next frame and this frame's prologue cache.
11545 (get_prev_frame): Simplify. Always call prev frame's this_id with
11546 this frame and prev frame's prologue cache. Document that this
11547 call is shifted one to the left when compared to the
11548 frame_register_unwind call.
11549 (legacy_saved_regs_prev_register): Replace
11550 frame_saved_regs_register_unwind.
11551 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11552 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11553 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11554 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11555 (d10v_frame_unwind): Update.
11556 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11557 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11558 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11559 "saved_regs" with "this_saved_regs".
11560
efd710d6
AC
115612003-03-16 Andrew Cagney <cagney@redhat.com>
11562
11563 * frame.c (frame_pop): Don't call target_store_registers. Fix
11564 problem reported by Mark Kettenis.
11565
4e259f09
MK
115662003-03-16 Mark Kettenis <kettenis@gnu.org>
11567
11568 * i386-tdep.c (i386_register_type): Renamed from
11569 i386_register_virtual_type. Adjust function signature.
11570 (i386_gdbarch_init): Set register_type instead of
11571 deprecated_max_register_raw_size,
11572 deprecated_max_register_virtual_size and register_virtual_type.
11573
055bb976
AC
115742003-03-14 Andrew Cagney <cagney@redhat.com>
11575
11576 * frame.c (get_prev_frame): When a legacy frame, always call
11577 legacy_get_prev_frame. Simplify unwind code using assumption that
11578 the unwinder is new.
11579 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11580 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11581 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11582
ac2adee5
AC
115832003-03-14 Andrew Cagney <cagney@redhat.com>
11584
11585 * frame.c (get_saved_register): Delete function.
11586 * frame.h (get_saved_register): Delete declaration.
11587 * xstormy16-tdep.c: Update comment.
11588 * regcache.h: Update comments.
11589 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11590 get_saved_register and extract_address, use
11591 frame_read_unsigned_register.
11592 (sparc_frame_saved_pc): Ditto.
11593 (sparc_get_saved_register): Instead of get_saved_register, use
11594 frame_register.
11595 (sparc_pop_frame): Ditto.
11596 * findvar.c: Update comments.
11597 (value_of_register): Call frame_register instead of
11598 get_saved_register.
11599 (value_from_register): Ditto.
11600 * config/sparc/tm-sparc.h: Update comment.
11601 * breakpoint.c: Update comment.
11602
129c1cd6
AC
116032003-03-14 Andrew Cagney <cagney@redhat.com>
11604
11605 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11606 GET_SAVED_REGISTER.
11607 * gdbarch.h, gdbarch.c: Re-generate.
11608 * frame.h: Update comments.
11609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11610 * x86-64-tdep.c (x86_64_init_abi): Update.
11611 * sparc-tdep.c (sparc_gdbarch_init): Update.
11612 * sh-tdep.c (sh_gdbarch_init): Update.
11613 * mips-tdep.c (mips_gdbarch_init): Update.
11614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11615 * cris-tdep.c (cris_gdbarch_init): Update.
11616 * ia64-tdep.c (ia64_gdbarch_init): Update.
11617 * frame.c (frame_register): Update.
11618 (get_saved_register): Update.
11619 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11620
749b82f6
AC
116212003-03-13 Andrew Cagney <cagney@redhat.com>
11622
11623 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11624 * gdbarch.h, gdbarch.c: Regenerate.
11625 * valops.c (hand_function_call): Update comment.
11626 * stack.c (return_command): Update comment.
11627 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11628 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11629 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11630 * x86-64-tdep.c (x86_64_init_abi): Update.
11631 * vax-tdep.c (vax_gdbarch_init): Update.
11632 * v850-tdep.c (v850_gdbarch_init): Update.
11633 * sparc-tdep.c (sparc_gdbarch_init): Update.
11634 * sh-tdep.c (sh_gdbarch_init): Update.
11635 * s390-tdep.c (s390_gdbarch_init): Update.
11636 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11639 * mips-tdep.c (mips_gdbarch_init): Update.
11640 * mcore-tdep.c (mcore_gdbarch_init): Update.
11641 * m68k-tdep.c (m68k_gdbarch_init): Update.
11642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11643 * ia64-tdep.c (ia64_gdbarch_init): Update.
11644 * i386-tdep.c (i386_gdbarch_init): Update.
11645 * hppa-tdep.c (hppa_gdbarch_init): Update.
11646 * h8300-tdep.c (h8300_gdbarch_init): Update.
11647 * frv-tdep.c (frv_gdbarch_init): Update.
11648 * cris-tdep.c (cris_gdbarch_init): Update.
11649 * avr-tdep.c (avr_gdbarch_init): Update.
11650 * arm-tdep.c (arm_gdbarch_init): Update.
11651 * alpha-tdep.c (alpha_gdbarch_init): Update.
11652
1594fa56
AC
116532003-03-13 Andrew Cagney <cagney@redhat.com>
11654
11655 * frame.c (legacy_frame_p): New function.
11656 (get_prev_frame): Use legacy_frame_p.
11657 * frame.h (legacy_frame_p): Declare.
11658
7717fda3
V
116592003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11660
fbe586ae 11661 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11662 listing corrected.
11663
0c67cbe9
V
116642003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11665
fbe586ae 11666 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11667
03febf99
AC
116682003-03-12 Andrew Cagney <cagney@redhat.com>
11669
11670 * frame.c (get_prev_frame): Rename the frame parameter to
11671 "this_frame".
11672 (get_next_frame, legacy_get_prev_frame): Ditto.
11673
0a1e1ca1
AC
116742003-03-12 Andrew Cagney <cagney@redhat.com>
11675
11676 * frame.c (get_current_frame): Check target_has_registers before
11677 checking target_has_stack.
11678 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11679 instead of deprecated_selected_frame.
11680 * findvar.c (value_of_register): Pass "frame", not
11681 deprecated_selected_frame, to value_of_builtin_reg.
11682
a66a9c23
AC
116832003-03-12 Andrew Cagney <cagney@redhat.com>
11684
11685 * regcache.c (regcache_cooked_write_signed): New function.
11686 (regcache_cooked_write_unsigned): New function.
11687 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11688 (regcache_cooked_read_signed): Fix regnum in range assertion.
11689 * regcache.h (regcache_cooked_write_signed): Declare.
11690 (regcache_cooked_write_unsigned): Declare.
11691
8bedc050
AC
116922003-03-12 Andrew Cagney <cagney@redhat.com>
11693
11694 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11695 * gdbarch.h, gdbarch.c: Re-generate.
11696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11697 * x86-64-tdep.h: Update.
11698 * x86-64-tdep.c (x86_64_init_abi): Update.
11699 * v850-tdep.c (v850_gdbarch_init): Update.
11700 * sparc-tdep.c (sparc_gdbarch_init): Update.
11701 * sh-tdep.c (sh_gdbarch_init): Update.
11702 * s390-tdep.c (s390_gdbarch_init): Update.
11703 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11704 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11705 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11706 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11707 * mips-tdep.c (mips_gdbarch_init): Update.
11708 * mcore-tdep.c (mcore_gdbarch_init): Update.
11709 * m68k-tdep.c (m68k_gdbarch_init): Update.
11710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11711 * ia64-tdep.c (ia64_gdbarch_init): Update.
11712 * i386-tdep.c (i386_gdbarch_init): Update.
11713 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11714 * hppa-tdep.c (hppa_gdbarch_init): Update.
11715 * h8300-tdep.c (h8300_gdbarch_init): Update.
11716 * frv-tdep.c (frv_gdbarch_init): Update.
11717 * cris-tdep.c (cris_gdbarch_init): Update.
11718 * avr-tdep.c (avr_gdbarch_init): Update.
11719 * arm-tdep.c (arm_gdbarch_init): Update.
11720 * alpha-tdep.c (alpha_gdbarch_init): Update.
11721 * sh-tdep.c (sh_init_extra_frame_info): Update.
11722 (sh64_init_extra_frame_info): Update.
11723 * ns32knbsd-nat.c (frame_num_args): Update.
11724 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11725 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11726 (xstormy16_frame_chain_valid): Update.
11727 * vax-tdep.c (vax_saved_pc_after_call): Update.
11728 * v850-tdep.c (v850_frame_chain): Update.
11729 (v850_pop_frame): Update.
11730 (v850_init_extra_frame_info): Update.
11731 * sparc-tdep.c (setup_arbitrary_frame): Update.
11732 * ns32k-tdep.c (umax_frame_num_args): Update.
11733 * s390-tdep.c (s390_pop_frame_regular): Update.
11734 * mn10300-tdep.c (mn10300_frame_chain): Update.
11735 (mn10300_pop_frame_regular): Update.
11736 (mn10300_init_extra_frame_info): Update.
11737 * mips-tdep.c (mips_init_frame_pc_first): Update.
11738 (mips_frame_chain): Update.
11739 (mips_pop_frame): Update.
11740 * mcore-tdep.c (mcore_frame_chain): Update.
11741 (mcore_pop_frame): Update.
11742 (mcore_init_extra_frame_info): Update.
11743 * arch-utils.c (init_frame_pc_default): Update.
11744 * m68k-tdep.c (isi_frame_num_args): Update.
11745 (delta68_frame_num_args): Update.
11746 (news_frame_num_args): Update.
11747 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11748 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11749 (alpha_frame_chain): Update.
11750 (alpha_pop_frame): Update.
11751 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11752 (hppa_init_extra_frame_info): Update.
11753 (hppa_frame_chain): Update.
11754 (hppa_frame_chain_valid): Update.
11755 * cris-tdep.c (cris_init_extra_frame_info): Update.
11756 * avr-tdep.c (avr_init_extra_frame_info): Update.
11757 * arm-tdep.c (arm_frame_chain_valid): Update.
11758 (arm_init_extra_frame_info): Update.
11759 (arm_pop_frame): Update.
11760 * frame.c (frame_pc_unwind): Update.
11761 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11762 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11763 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11764 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11765 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11766 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11767
7a25a7c1
AC
117682003-03-12 Andrew Cagney <cagney@redhat.com>
11769
11770 Eliminate the need for POP_FRAME.
11771 * frame.c (do_frame_unwind_register): New function.
11772 (frame_pop): When no POP_FRAME, pop the frame using register
11773 unwind and a scratch regcache.
11774 (frame_saved_regs_pop): Delete function.
11775 (trad_frame_unwinder): Update.
11776 * d10v-tdep.c (d10v_frame_pop): Delete function.
11777 (d10v_frame_unwind): Update.
11778 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11779 (sentinel_frame_unwinder): Update.
11780 * dummy-frame.c (dummy_frame_pop): Delete function.
11781 (dummy_frame_unwind): Update.
11782 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11783 (struct frame_unwind): Update.
11784
2f38ef89
KB
117852003-03-11 Kevin Buettner <kevinb@redhat.com>
11786
11787 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11788 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11789 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11790 Do range checks on register number obtained from debugging info.
11791 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11792 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11793 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11794 mapping function.
11795 (do_fp_register_row): Fix typo which caused double type to be
11796 used when attempting to unpack a float.
11797
552f4abf
JB
117982003-03-11 J. Brobecker <brobecker@gnat.com>
11799
11800 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11801
e0d2ae16
AC
118022003-03-11 Andrew Cagney <cagney@redhat.com>
11803
11804 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11805 frame. Problem found by Corinna Vinschen.
11806
ddbfdd06
PM
118072003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11808
11809 * doublest.c (floatformat_from_length): Accept also
11810 the real size of 'long double' type.
11811
088b2ddc 118122003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11813
088b2ddc 11814 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11815 * breakpoint.c (bpstat_copy): Copy the command lines as well
11816 as the old value, to match what is freed in bpstat_clear.
11817
f56f77c1
DC
118182003-03-10 David Carlton <carlton@math.stanford.edu>
11819
11820 * minsyms.c (add_minsym_to_hash_table): Replace
11821 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11822 (compare_minimal_symbols, compact_minimal_symbols)
11823 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11824 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11825 of DEPRECATED_SYMBOL_MATCHES_NAME.
11826 (lookup_minimal_symbol_solib_trampoline): Ditto.
11827
5602984a
AC
118282003-03-10 Andrew Cagney <cagney@redhat.com>
11829
11830 * regcache.h (regcache_cooked_read_ftype): Define.
11831 (regcache_save, regcache_restore): Add a cooked_read parameter.
11832 * regcache.c (regcache_save, regcache_restore): Update.
11833 (do_cooked_read): New function.
11834 (regcache_cpy): Pass do_cooked_read to regcache_save and
11835 regcache_restore.
11836
8bedc050
AC
118372003-03-10 Andrew Cagney <cagney@redhat.com>
11838
11839 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11840 * gdbarch.h, gdbarch.c: Re-generate.
11841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11842 * x86-64-tdep.h: Update.
11843 * x86-64-tdep.c (x86_64_init_abi): Update.
11844 * v850-tdep.c (v850_gdbarch_init): Update.
11845 * sparc-tdep.c (sparc_gdbarch_init): Update.
11846 * sh-tdep.c (sh_gdbarch_init): Update.
11847 * s390-tdep.c (s390_gdbarch_init): Update.
11848 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11849 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11850 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11851 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11852 * mips-tdep.c (mips_gdbarch_init): Update.
11853 * mcore-tdep.c (mcore_gdbarch_init): Update.
11854 * m68k-tdep.c (m68k_gdbarch_init): Update.
11855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11856 * ia64-tdep.c (ia64_gdbarch_init): Update.
11857 * i386-tdep.c (i386_gdbarch_init): Update.
11858 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11859 * hppa-tdep.c (hppa_gdbarch_init): Update.
11860 * h8300-tdep.c (h8300_gdbarch_init): Update.
11861 * frv-tdep.c (frv_gdbarch_init): Update.
11862 * cris-tdep.c (cris_gdbarch_init): Update.
11863 * avr-tdep.c (avr_gdbarch_init): Update.
11864 * arm-tdep.c (arm_gdbarch_init): Update.
11865 * alpha-tdep.c (alpha_gdbarch_init): Update.
11866 * sh-tdep.c (sh_init_extra_frame_info): Update.
11867 (sh64_init_extra_frame_info): Update.
11868 * ns32knbsd-nat.c (frame_num_args): Update.
11869 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11870 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11871 (xstormy16_frame_chain_valid): Update.
11872 * vax-tdep.c (vax_saved_pc_after_call): Update.
11873 * v850-tdep.c (v850_frame_chain): Update.
11874 (v850_pop_frame): Update.
11875 (v850_init_extra_frame_info): Update.
11876 * sparc-tdep.c (setup_arbitrary_frame): Update.
11877 * ns32k-tdep.c (umax_frame_num_args): Update.
11878 * s390-tdep.c (s390_pop_frame_regular): Update.
11879 * mn10300-tdep.c (mn10300_frame_chain): Update.
11880 (mn10300_pop_frame_regular): Update.
11881 (mn10300_init_extra_frame_info): Update.
11882 * mips-tdep.c (mips_init_frame_pc_first): Update.
11883 (mips_frame_chain): Update.
11884 (mips_pop_frame): Update.
11885 * mcore-tdep.c (mcore_frame_chain): Update.
11886 (mcore_pop_frame): Update.
11887 (mcore_init_extra_frame_info): Update.
11888 * arch-utils.c (init_frame_pc_default): Update.
11889 * m68k-tdep.c (isi_frame_num_args): Update.
11890 (delta68_frame_num_args): Update.
11891 (news_frame_num_args): Update.
11892 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11893 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11894 (alpha_frame_chain): Update.
11895 (alpha_pop_frame): Update.
11896 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11897 (hppa_init_extra_frame_info): Update.
11898 (hppa_frame_chain): Update.
11899 (hppa_frame_chain_valid): Update.
11900 * cris-tdep.c (cris_init_extra_frame_info): Update.
11901 * avr-tdep.c (avr_init_extra_frame_info): Update.
11902 * arm-tdep.c (arm_frame_chain_valid): Update.
11903 (arm_init_extra_frame_info): Update.
11904 (arm_pop_frame): Update.
11905 * frame.c (frame_pc_unwind): Update.
11906 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11907 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11908 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11909 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11910 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11911 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11912
12cc2063
AC
119132003-03-10 Andrew Cagney <cagney@redhat.com>
11914
11915 * gdbarch.sh (gdbarch_unwind_pc): New method.
11916 * gdbarch.h, gdbarch.c: Regenerate.
11917 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11918 but use read_pc and FRAME_SAVED_PC as fall backs.
11919 (frame_saved_regs_pc_unwind): Delete function.
11920 (trad_frame_unwinder): Update.
11921 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11922 (struct frame_unwind): Update.
11923 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11924 (dummy_frame_unwind): Update.
11925 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11926 (sentinel_frame_unwinder): Update.
11927 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11928 (d10v_frame_unwind): Update.
11929 (d10v_unwind_pc): New function.
11930 (d10v_gdbarch_init): Set unwind_pc.
11931
ef840a37
AC
119322003-03-10 Andrew Cagney <cagney@redhat.com>
11933
a2ce2e56
AC
11934 * gdbarch.h: Re-generate.
11935
ef840a37
AC
11936 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11937 PC.
11938 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11939 the PC register.
11940
08f3424b
MK
119412003-03-08 Mark Kettenis <kettenis@gnu.org>
11942
11943 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11944
1248ede2
AC
119452003-03-08 Andrew Cagney <cagney@redhat.com>
11946
11947 * cli-out.c: Update copyright.
11948 (cli_out_data): Define typedef. Use instead of ui_out_data.
11949
f49bacc8
AC
119502003-03-08 Andrew Cagney <cagney@redhat.com>
11951
11952 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11953 the result.
11954
9b05f993
AC
119552003-03-07 Andrew Cagney <cagney@redhat.com>
11956
11957 * gdbarch.sh: Don't generate two macro definitions when an
11958 undefined macro taking no arguments.
11959 * gdbarch.h: Regenerate.
8ffd9b1b 11960
166f4c7b
ML
119612002-03-07 Michal Ludvig <mludvig@suse.cz>
11962
11963 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11964 (x86_64_unwind_dummy_id): New functions.
11965 (x86_64_init_abi): Register these two new functions.
11966
6d686a84
ML
119672003-03-07 Michal Ludvig <mludvig@suse.cz>
11968
11969 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11970 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11971 separate function.
11972 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11973
6314f104
AC
119742003-03-05 Andrew Cagney <cagney@redhat.com>
11975
11976 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11977 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11978 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11979 to use unwind_dummy_id when a dummy frame.
11980 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11981 predicate.
11982 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11983
ceea5145
AC
119842003-03-05 Andrew Cagney <cagney@redhat.com>
11985
11986 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11987 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11988 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11989 values.
11990
0d843116
AC
119912003-03-05 Andrew Cagney <cagney@redhat.com>
11992
11993 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11994 (struct d10v_unwind_cache): Delete field "frameless". Replace
11995 "next_addr" with "sp_offset". Add "r11_offset".
11996 (d10v_frame_unwind_cache): Update.
11997 (prologue_find_regs): Update. When "mv r11, sp", save the
11998 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11999 RN was saved in r11_offset.
12000
b2579786
AC
120012003-03-05 Andrew Cagney <cagney@redhat.com>
12002
12003 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12004 cached PC value in the next frame.
12005
218e5956
AC
120062003-03-05 Andrew Cagney <cagney@redhat.com>
12007
12008 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12009 "id_unwind_cache" with "id".
12010 (frame_id_unwind): Delete declaration.
12011 * frame.c (frame_id_unwind): Delete function.
12012 (get_prev_frame): Call the frame id unwind method directly. Store
12013 the returned next frame's ID value in NEXT_FRAME. Note that there
12014 is a problem with the wrong unwind ID being called with the wrong
12015 unwind cache.
12016
ed363b1b
DJ
120172003-03-05 Daniel Jacobowitz <drow@mvista.com>
12018
12019 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12020
fe1f4a5e
DJ
120212003-03-05 James Ingham <jingham@apple.com>
12022 Daniel Jacobowitz <drow@mvista.com>
12023
12024 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12025 (auto_cp_abi): New variable.
12026 (current_cp_abi, num_cp_abis): Make static.
12027 (CP_ABI_MAX): Define.
12028 (cp_abis): Turn into an array.
12029 (value_virtual_fn_field): Fix formatting.
12030 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12031 takes a pointer.
12032 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12033 (list_cp_abis, _initialize_cp_abi): New functions.
12034 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12035 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12036 switch_to_cp_abi. Update prototype for register_cp_abi.
12037 * Makefile.in (cp-abi.o): Update dependencies.
12038 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12039 instead of switch_to_cp_abi.
12040 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12041 register_cp_abi.
12042 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12043 register_cp_abi.
12044 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12045
e4adbba9
DJ
120462003-03-05 Daniel Jacobowitz <drow@mvista.com>
12047
12048 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12049 * dwarf2loc.c: Include "regcache.h".
12050 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12051 register_size.
12052 * Makefile.in (dwarf2loc.o): Update dependencies.
12053
91ccbfc1
TR
120542003-03-04 Theodore A. Roth <troth@openavr.org>
12055
12056 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12057 number of io registers reported by remote target is not a multiple of
12058 step.
12059
3d4e8fd2
DC
120602003-03-04 David Carlton <carlton@math.stanford.edu>
12061
12062 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12063 (lookup_symbol_aux_psymtabs): Update call to
12064 lookup_partial_symbol.
12065 (lookup_transparent_type, find_main_psymtab)
12066 (make_symbol_overload_list): Ditto.
12067
ed42d87b
KH
120682003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12069
12070 * MAINTAINERS (Write after approval): Update my email address.
12071
a0ed5532
AC
120722003-03-03 Andrew Cagney <cagney@redhat.com>
12073
12074 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12075 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12076 predicate. Replace MAX_REGISTER_RAW_SIZE.
12077 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12078 MAX_REGISTER_VIRTUAL_SIZE.
12079 * regcache.c (legacy_max_register_raw_size): New function.
12080 (legacy_max_register_virtual_size): New function.
12081 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12082 (MAX_REGISTER_RAW_SIZE): Define.
12083 (legacy_max_register_raw_size): Declare.
12084 (legacy_max_register_virtual_size): Declare.
12085 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12086 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12087 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12088 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12089 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12090 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12091 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12092 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12093 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12094 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12095 * vax-tdep.c (vax_gdbarch_init): Update.
12096 * v850-tdep.c (v850_gdbarch_init): Update.
12097 * sparc-tdep.c (sparc_gdbarch_init): Update.
12098 * sh-tdep.c (sh_gdbarch_init): Update.
12099 * s390-tdep.c (s390_gdbarch_init): Update.
12100 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12101 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12102 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12103 * mips-tdep.c (mips_gdbarch_init): Update.
12104 * mcore-tdep.c (mcore_gdbarch_init): Update.
12105 * m68k-tdep.c (m68k_gdbarch_init): Update.
12106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12107 * ia64-tdep.c (ia64_gdbarch_init): Update.
12108 * i386-tdep.c (i386_gdbarch_init): Update.
12109 * hppa-tdep.c (hppa_gdbarch_init): Update.
12110 * h8300-tdep.c (h8300_gdbarch_init): Update.
12111 * frv-tdep.c (frv_gdbarch_init): Update.
12112 * cris-tdep.c (cris_gdbarch_init): Update.
12113 * avr-tdep.c (avr_gdbarch_init): Update.
12114 * arm-tdep.c (arm_gdbarch_init): Update.
12115 * alpha-tdep.c (alpha_gdbarch_init): Update.
12116 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12117 max_register_raw_size or max_register_virtual_size.
12118
8e437497
DC
121192003-03-03 David Carlton <carlton@math.stanford.edu>
12120
12121 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12122 SYMBOL_MATCHES_NAME, add comment.
12123 (SYMBOL_MATCHES_NATURAL_NAME): New.
12124 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12125 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12126 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12127 * symtab.c (lookup_partial_symbol): Use
12128 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12129 unhelpful comment.
12130 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12131 SYMBOL_MATCHES_NAME.
12132 Fix for PR c++/33.
12133
25120b0d
DC
121342003-03-03 David Carlton <carlton@math.stanford.edu>
12135
12136 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12137 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12138 by regexp matching against SYMBOL_NATURAL_NAME.
12139
78a11fb4
DC
121402003-03-03 David Carlton <carlton@math.stanford.edu>
12141
12142 * linespec.c (find_method): Extract code into collect_methods.
12143 (collect_methods): New.
12144
645dd519
MK
121452003-03-02 Mark Kettenis <kettenis@gnu.org>
12146
b4700d91
MK
12147 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12148 get_frame_base.
12149
645dd519
MK
12150 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12151 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12152
0aa7e1aa
SC
121532003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12154
8ffd9b1b 12155 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12156 and not regnum when summing the size of all registers up to regnum.
12157
f30ee0bc
AC
121582003-03-01 Andrew Cagney <cagney@redhat.com>
12159
12160 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12161 FRAME_INIT_SAVED_REGS.
12162 * gdbarch.h, gdbarch.c: Regenerate.
12163 * stack.c (frame_info): Update.
12164 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12165 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12166 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12167 * ns32k-tdep.c (ns32k_pop_frame): Update.
12168 * mips-tdep.c (mips_pop_frame): Update.
12169 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12170 * ia64-tdep.c (ia64_frame_chain): Update.
12171 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12172 (ia64_frameless_function_invocation): Update.
12173 (ia64_init_extra_frame_info): Update.
12174 (ia64_pop_frame_regular): Update.
12175 * frame.h (struct frame_info): Update comment.
12176 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12177 * frame.c (frame_saved_regs_register_unwind): Update.
12178 (frame_saved_regs_register_unwind): Update.
12179 (deprecated_generic_get_saved_register): Update.
12180 * cris-tdep.c: Update comment.
12181 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12182 Rename macro.
12183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12184 * x86-64-tdep.c (x86_64_init_abi): Update.
12185 * vax-tdep.c (vax_gdbarch_init): Update.
12186 * v850-tdep.c (v850_gdbarch_init): Update.
12187 * sparc-tdep.c (sparc_gdbarch_init): Update.
12188 * sh-tdep.c (sh_gdbarch_init): Update.
12189 * s390-tdep.c (s390_gdbarch_init): Update.
12190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12191 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12192 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12193 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12194 * mips-tdep.c (mips_gdbarch_init): Update.
12195 * mcore-tdep.c (mcore_gdbarch_init): Update.
12196 * m68k-tdep.c (m68k_gdbarch_init): Update.
12197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12198 * ia64-tdep.c (ia64_gdbarch_init): Update.
12199 * i386-tdep.c (i386_gdbarch_init): Update.
12200 * frv-tdep.c (frv_gdbarch_init): Update.
12201 * avr-tdep.c (avr_gdbarch_init): Update.
12202 * arm-tdep.c (arm_gdbarch_init): Update.
12203 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12204
42fa7c0f
AC
122052003-03-01 Andrew Cagney <cagney@redhat.com>
12206
12207 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12208 option enum and switch. When no windows, set the interpreter to
12209 INTERP_CONSOLE.
8ffd9b1b 12210
49c7e338
AC
122112003-03-01 Andrew Cagney <cagney@redhat.com>
12212
12213 * main.c (captured_main): Replace magic option characters with an
12214 enum.
12215
e9582e71
AC
122162003-03-01 Andrew Cagney <cagney@redhat.com>
12217
12218 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12219 INIT_EXTRA_FRAME_INFO.
12220 * gdbarch.h, gdbarch.c: Regenerate.
12221 * arm-tdep.c: Update comments.
12222 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12223 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12224 * frame.h, avr-tdep.c: Ditto.
12225 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12226 (create_new_frame, legacy_get_prev_frame): Ditto.
12227 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12228 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12230 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12231 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12232 * v850-tdep.c (v850_gdbarch_init): Ditto.
12233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12234 * sh-tdep.c (sh_gdbarch_init): Ditto.
12235 * s390-tdep.c (s390_gdbarch_init): Ditto.
12236 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12238 * mips-tdep.c (mips_gdbarch_init): Ditto.
12239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12241 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12242 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12243 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12244 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12245 * frv-tdep.c (frv_gdbarch_init): Ditto.
12246 * cris-tdep.c (cris_gdbarch_init): Ditto.
12247 * avr-tdep.c (avr_gdbarch_init): Ditto.
12248 * arm-tdep.c (arm_gdbarch_init): Ditto.
12249 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12250 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12251
35cac7cf
AC
122522003-03-01 Andrew Cagney <cagney@redhat.com>
12253
12254 * gdbarch.sh (register_type): New function with predicate.
12255 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12256 * gdbarch.h, gdbarch.c: Re-generate.
12257 * arch-utils.c (generic_register_byte): Use generic_register_size.
12258 (generic_register_size): When available, use
12259 gdbarch_register_type.
12260 * regcache.c (init_regcache_descr): When available, initialize the
12261 register type array using gdbarch_register_type. If the
12262 architecture supplies gdbarch_register_type, do not use the legacy
12263 regcache layout.
12264 * d10v-tdep.c (d10v_register_type): Replace
12265 d10v_register_virtual_type.
12266 (d10v_gdbarch_init): Set register_type instead of
12267 register_virtual_type.
12268
7b83296f
AC
122692003-03-01 Andrew Cagney <cagney@redhat.com>
12270
12271 * Makefile.in (ax-gdb.o): Update dependencies.
12272 * ax-gdb.c: Include "regcache.h".
12273 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12274 * findvar.c (value_of_register): Ditto.
12275 * infcmd.c (default_print_registers_info): Ditto.
12276
eadc1c87
MK
122772003-03-01 Mark Kettenis <kettenis@gnu.org>
12278
12279 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12280 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12281
14143612
MK
122822003-03-01 Mark Kettenis <kettenis@gnu.org>
12283
12284 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12285 of STREQ.
12286
a55cc764
DJ
122872003-02-28 Daniel Jacobowitz <drow@mvista.com>
12288
12289 * Makefile.in (dwarf2loc.o): Update dependencies.
12290 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12291 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12292 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12293 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12294 (locexpr_tracepoint_var_ref): New function.
12295 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12296
08a617da
AC
122972003-02-28 Andrew Cagney <cagney@redhat.com>
12298
12299 * regcache.c (register_size): New function.
12300 * regcache.h (register_size): Declare
12301 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12302 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12303
4224873a
DC
123042003-02-28 David Carlton <carlton@math.stanford.edu>
12305
12306 * linespec.c (decode_compound): Extract code into find_method.
12307 (find_method): New.
12308
ccdc5d7f
JB
123092003-02-28 J. Brobecker <brobecker@gnat.com>
12310
12311 * Makefile.in: Add rules to build and link in observer.o.
12312
974e8ced
JB
123132003-02-27 J. Brobecker <brobecker@gnat.com>
12314
12315 * observer.c: Minor comments edits.
12316
7a28f973
JB
123172003-02-27 J. Brobecker <brobecker@gnat.com>
12318
12319 * observer.h, observer.c: New file.
12320
27cddce2
AC
123212003-02-27 Andrew Cagney <cagney@redhat.com>
12322
12323 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12324
b94a41a1
SC
123252003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12326
12327 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12328 (M6812_OP_STS_EXT): Likewise.
12329 (m6811_prologue): Use the above to recognize prologue.
12330 (m6812_prologue): Likewise.
12331
c8be8951
DC
123322003-02-27 David Carlton <carlton@math.stanford.edu>
12333
12334 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12335 SYMBOL_PRINT_NAME.
12336 (compare_psymbols): Ditto.
12337 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12338
d05bb1fc
MS
123392003-02-27 Michael Snyder <msnyder@redhat.com>
12340
4e845cd3
MS
12341 * f-lang.c (build_fortran_types): New function.
12342 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12343 * doublest.c (extract_floating): Fix warning text.
12344
f3824013
AC
123452003-02-27 Andrew Cagney <cagney@redhat.com>
12346
12347 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12348 predicate. Replaces PUSH_DUMMY_FRAME.
12349 * gdbarch.h, gdbarch.c: Regnerate.
12350 * valops.c (hand_function_call): Update. Call
12351 generic_push_dummy_frame directly.
12352 * vax-tdep.c (vax_gdbarch_init): Update.
12353 * sparc-tdep.c (sparc_gdbarch_init): Update.
12354 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12355 * m68k-tdep.c (m68k_gdbarch_init): Update.
12356 * hppa-tdep.c (hppa_gdbarch_init): Update.
12357 * alpha-tdep.c (alpha_gdbarch_init): Update.
12358 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12359 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12360 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12361 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12362 push_dummy_frame to generic_push_dummy_frame.
12363 * v850-tdep.c (v850_gdbarch_init): Ditto.
12364 * sh-tdep.c (sh_gdbarch_init): Ditto.
12365 * s390-tdep.c (s390_gdbarch_init): Ditto.
12366 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12367 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12368 * mips-tdep.c (mips_gdbarch_init): Ditto.
12369 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12371 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12372 * i386-tdep.c (i386_gdbarch_init): Ditto.
12373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12374 * frv-tdep.c (frv_gdbarch_init): Ditto.
12375 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12376 * cris-tdep.c (cris_gdbarch_init): Ditto.
12377 * avr-tdep.c (avr_gdbarch_init): Ditto.
12378 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12379
ad188201
KB
123802003-02-26 Kevin Buettner <kevinb@redhat.com>
12381
12382 * mips-tdep.c (show_mips_abi): New function.
12383 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12384 command ``show mips abi''.
12385
6b37567a 123862003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12387
6b37567a 12388 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12389 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12390 more sline entries have been seen for the function.
12391
d3e0a5bf
MC
123922003-02-26 Michael Chastain <mec@shout.net>
12393
12394 * configure: Regenerate with autoconf 000227.
12395
18972eea
MC
123962003-02-26 Michael Chastain <mec@shout.net>
12397
12398 Close PR build/660.
12399 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12400 for old libc5/glibc.
12401 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12402
0bbde931
KW
124032003-02-26 Kris Warkentin <kewarken@qnx.com>
12404
12405 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12406 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12407
27ca5dad
MC
124082003-02-26 Michael Chastain <mec@shout.net>
12409
12410 * configure.in: New variable HAVE_UINTPTR_T.
12411 * configure, config.in: Regenerated.
12412
6f88d630
DJ
124132003-02-26 Daniel Jacobowitz <drow@mvista.com>
12414
12415 Fix PR build/1097.
12416 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12417
b14185ce
AC
124182003-02-25 Andrew Cagney <cagney@redhat.com>
12419
12420 * frame.c (get_prev_frame): Add comment on check for
12421 inside_entry_func. Only check for inside_entry_file when not a
12422 dummy and not a sentinel. Check that the new frame is not inner
12423 to the old frame.
12424
ac2bd0a9
AC
124252003-02-25 Andrew Cagney <cagney@redhat.com>
12426
12427 * frame.c (frame_debug): New variable.
12428 (_initialize_frame): Add "set/show debug frame" command.
12429 (get_prev_frame): When frame_debug, print reason why unwind
12430 failed.
12431
b18a0fd2
MC
124322003-02-25 Michael Chastain <mec@shout.net>
12433
12434 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12435 to avoid uintptr_t definition problems.
12436
22abf04a
DC
124372003-02-25 David Carlton <carlton@math.stanford.edu>
12438
12439 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12440 (SYMBOL_LINKAGE_NAME): Ditto.
12441 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12442 SYMBOL_LINKAGE_NAME.
12443 (struct general_symbol_info): Expand comment.
12444 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12445 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12446 (SYMBOL_MATCHES_REGEXP): Ditto.
12447 * symtab.c (symbol_natural_name): New function.
12448 * objfiles.h: Replace all uses of SYMBOL_NAME by
12449 DEPRECATED_SYMBOL_NAME.
12450 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12451 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12452 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12453 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12454 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12455 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12456 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12457 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12458 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12459 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12460 * ada-exp.y: Ditto.
12461 * ada-exp.y: Update copyright.
12462 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12463 * cp-valprint.c: Ditto.
12464
1a5848f6
JJ
124652003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12466
12467 * infptrace.c (detach): Do not flag error if ptrace detach fails
12468 and errno is set to ESRCH.
12469
7343d46a
AC
124702003-02-24 Andrew Cagney <cagney@redhat.com>
12471
12472 * infptrace.c (udot_info): Change type of udot_off to long. Use
12473 paddr when printing udot_off's value.
12474
49fa1dc2
DC
124752003-02-24 David Carlton <carlton@math.stanford.edu>
12476
12477 * symtab.c (make_symbol_overload_list): Only read in partial
12478 symtabs containing a matching partial symbol.
12479
0fe19209
DC
124802003-02-24 David Carlton <carlton@math.stanford.edu>
12481
12482 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12483 do the comparison, not strcmp.
12484 * symfile.c (compare_psymbols): Ditto.
12485 * defs.h: Declare strcmp_iw_ordered.
12486 * utils.c (strcmp_iw_ordered): New function.
12487
8e3ee7b5
JB
124882003-02-24 Jim Blandy <jimb@redhat.com>
12489
12490 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12491 support, shared libs): Remove my name from here, to better reflect
12492 reality.
12493
7df1a324
KW
124942003-02-24 Kris Warkentin <kewarken@qnx.com>
12495
12496 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12497 (target_ops): Add to_have_continuable_watchpoint.
12498 * target.c (update_current_target): Add INHERIT line for
12499 to_have_continuable_watchpoint.
12500 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12501 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12502 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12503 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12504
d1c76907
EZ
125052003-02-24 Elena Zannoni <ezannoni@redhat.com>
12506
12507 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12508 maintainership.
12509
2610b0bf
KW
125102003-02-24 Kris Warkentin <kewarken@qnx.com>
12511
f46169db
KW
12512 * solib.c (solib_open): Call target defined search function after
12513 failing with solib-search-path.
12514 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12515 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12516
9a3c34fe
KW
125172003-02-24 Kris Warkentin <kewarken@qnx.com>
12518
f46169db 12519 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12520
2417dd25
SC
125212003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12522
12523 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12524
b631436b
SC
125252003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12526
12527 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12528 (m68hc11_add_reggroups): New function.
12529 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12530 (m68hc11_gdbarch_init): Install the reggroups.
12531 (_initialize_m68hc11_tdep): Initialize them.
12532
0aa8c1e4
JW
125332003-02-21 James E Wilson <wilson@tuliptree.org>
12534
12535 * MAINTAINERS: Update my email address.
12536
50ceaba5
DC
125372003-02-21 David Carlton <carlton@math.stanford.edu>
12538
12539 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12540
4c2df51b
DJ
125412003-02-21 Daniel Jacobowitz <drow@mvista.com>
12542
12543 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12544 * symtab.h: Add opaque declarations of struct axs_value and
12545 struct agent_expr.
12546 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12547 (struct location_funcs): New type.
12548 (struct symbol): Add "loc" to aux_value.
12549 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12550 * dwarf2read.c: Include "dwarf2expr.h".
12551 (dwarf2_symbol_mark_computed): New function.
12552 (read_func_scope): Use it.
12553 (var_decode_location): New function.
12554 (new_symbol): Use it.
12555 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12556
12557 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12558 (dwarf2expr_h, dwarf2loc_h): New variables.
12559 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12560 (dwarf2expr.o, dwarf2loc.o): New rules.
12561 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12562 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12563 LOC_COMPUTED_ARG.
12564 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12565 * m2-exp.y (yylex): Likewise.
12566 * printcmd.c (address_info, print_frame_args): Likewise.
12567 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12568 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12569 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12570 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12571 * symtab.c (lookup_block_symbol): Likewise.
12572
5784d15e
AF
125732003-02-20 Adam Fedor <fedor@gnu.org>
12574
12575 * symtab.h: Remove objc_specific struct
12576 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12577 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12578 Have language_objc use cplus_specific struct.
12579
d4cad8db
TT
125802003-02-20 Tom Tromey <tromey@redhat.com>
12581
12582 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12583 TYPE_NAME, when printing a String value. PR java/1075.
12584
2f9a90b4
AF
125852003-02-20 Adam Fedor <fedor@gnu.org>
12586
d38074a8 12587 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12588 * objc-lang.c (find_methods): Make static.
2f9a90b4 12589
6f17862b
CF
125902003-02-20 Christopher Faylor <cgf@redhat.com>
12591
12592 * win32-nat.c (get_image_name): Check return value from
12593 ReadProcessMemory.
12594 (child_xfer_memory): Ditto.
12595
715d1656
AO
125962003-02-20 Alexandre Oliva <aoliva@redhat.com>
12597
12598 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12599 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12600 '${exec_prefix}' (in addition to the expansion thereof) as
12601 relocatable.
12602 * configure: Rebuilt.
12603
b1262a02
DC
126042003-02-20 David Carlton <carlton@math.stanford.edu>
12605
12606 * symtab.c (search_symbols): Revert the search_symbols part of my
12607 2002-12-23 patch. Add comment.
12608
7134143f
DJ
126092002-02-20 Daniel Jacobowitz <drow@mvista.com>
12610
12611 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12612 * dbxread.c (elfstab_build_psymtabs): Don't call
12613 install_minimal_symbols.
12614 (stabsect_build_psymtabs): Likewise.
12615 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12616 earlier.
12617 * somread.c (som_symfile_read): Call install_minimal_symbols
12618 and do_cleanups earlier.
12619 * nlmread.c (nlm_symfile_read): Likewise.
12620 * mdebugread.c (elfmdebug_build_psymtabs): Call
12621 install_minimal_symbols and make appropriate cleanups.
12622
cf466558
KB
126232003-02-20 Kevin Buettner <kevinb@redhat.com>
12624
12625 * solib.c (reload_shared_libraries): New function.
12626 (_initialize_solib): Add callbacks for ``set solib-search-path''
12627 and ``set solib-absolute-prefix''.
12628
de5ad195
DC
126292003-02-20 David Carlton <carlton@math.stanford.edu>
12630
12631 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12632 expand comment.
12633 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12634 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12635 * ada-typeprint.c (ada_typedef_print): Ditto.
12636 * ax-gdb.c (gen_var_ref): Ditto.
12637 * breakpoint.c (print_one_breakpoint): Ditto.
12638 * buildsym.c (finish_block): Ditto.
12639 * c-valprint.c (c_val_print): Ditto.
12640 * expprint.c (print_subexp): Ditto.
12641 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12642 * infcmd.c (jump_command): Ditto.
12643 * linespec.c (decode_line_2, decode_compound): Ditto.
12644 * maint.c (maintenance_translate_address): Ditto.
12645 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12646 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12647 Ditto.
8ffd9b1b
AJ
12648 * p-valprint.c (pascal_val_print): Ditto.
12649 * stabsread.c (define_symbol): Ditto.
de5ad195 12650 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12651 (print_frame_arg_vars, return_command): Ditto.
12652 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12653 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12654 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12655 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12656 (rbreak_command): Ditto.
12657 * tracepoint.c (tracepoints_info): Ditto.
12658 * typeprint.c (typedef_print): Ditto.
12659 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12660 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12661 * ada-typeprint.c: Update Copyright.
12662 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12663 * tracepoint.c, cli/cli-cmds.c: Ditto.
12664
f796e4be
KB
126652003-02-20 Kevin Buettner <kevinb@redhat.com>
12666
12667 * frame.c (generic_unwind_get_saved_register): Make non-static.
12668 * frame.h (generic_unwind_get_saved_register): Declare.
12669 * mips-tdep.c (read_next_frame_reg): Fetch register from
12670 current regcache when frame is NULL.
12671 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12672 that must be NULL.
12673 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12674 instead of frame_register_unwind().
12675
836cc9f4
AC
126762003-02-20 Andrew Cagney <ac131313@redhat.com>
12677
12678 * remote-sim.c (gdbsim_insert_breakpoint)
12679 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12680 code.
12681
501eef12
AC
126822003-02-20 Andrew Cagney <ac131313@redhat.com>
12683
12684 * remote.c (_initialize_remote): Add commands "set/show remote
12685 hardware-watchpoint-limit" and "set/show remote
12686 hardware-breakpoint-limit".
12687 (remote_hw_watchpoint_limit): Initialize to -1.
12688 (remote_hw_breakpoint_limit): Ditto.
12689 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12690
1b6bc7e0
CF
126912003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12692
12693 * coff-pe-read.c: New file - support reading of minimal symbols from a
12694 portable executable using the export table.
12695 * coff-pe-read.h: New file.
12696 * coffread.c: Include coff-pe-read.h.
12697 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12698 debugging symbols found.
12699 * Makefile.in (SFILES): Add coff-pe-read.o.
12700 (coff_pe_read_h): Define.
12701 (COMMON_OBS): Add coff-pe-read.o.
12702 (coffread.o): Add coff_pe_read_h dependency.
12703 (coff-pe-read.o): New target.
12704
fe898f56
DC
127052003-02-19 David Carlton <carlton@math.stanford.edu>
12706
12707 * Makefile.in (SFILES): Add block.c.
12708 (block_h): New.
12709 (COMMON_OBS): Add block.o.
12710 (block.o): New.
12711 (x86-64-tdep.o): Add $(block_h).
12712 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12713 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12714 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12715 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12716 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12717 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12718 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12719 * value.h: Add opaque declaration for struct block.
12720 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12721 * ada-lang.h: Ditto.
12722 * x86-64-tdep.c: #include "block.h"
12723 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12724 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12725 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12726 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12727 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12728 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12729 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12730 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12731 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12732 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12733 * symtab.c (block_function): Ditto.
12734 (contained_in): Ditto.
12735 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12736 block.h. Add opaque declaration for struct block.
12737 * symtab.h: Move block_function and contained_in declarations to
12738 block.h. Add opaque declarations for struct block, struct
12739 blockvector.
12740 (struct block): Move to block.h.
12741 (struct blockvector): Ditto.
12742 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12743 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12744 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12745 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12746 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12747 Ditto.
12748 * block.c: New file.
12749 * block.h: New file.
12750
173345b5
TR
127512003-02-19 Theodore A. Roth <troth@openavr.org>
12752
12753 * avr-tdep.c (avr_extract_return_value): Remove function.
12754 (avr_store_return_value): Remove function.
12755 (avr_extract_struct_value_address): Remove function.
12756 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12757
338ef23d
AC
127582003-02-19 Andrew Cagney <ac131313@redhat.com>
12759
12760 * rs6000-tdep.c: Include "gdb_assert.h".
12761 (registers_e500): Add "acc" and "spefscr".
12762 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12763 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12764 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12765 really is "r0".
12766 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12767
5412f5f3
KS
127682003-02-18 Keith Seitz <keiths@redhat.com>
12769
12770 * Makefile.in: Add gdbtk-interps.c.
12771
881324eb
KB
127722003-02-18 Kevin Buettner <kevinb@redhat.com>
12773
12774 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12775 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12776
6a2f5abf
AC
127772003-02-18 Andrew Cagney <cagney@redhat.com>
12778
12779 * symtab.h (struct objfile): Add opaque declaration.
12780
54c7009d
EZ
127812003-02-18 Elena Zannoni <ezannoni@redhat.com>
12782
12783 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12784 * dbxread.c (process_one_symbol): Use last_function_start rather
12785 than function_start_offset to find the real beginning of the
12786 current function. The latter is just the text section offset on
12787 some systems, the former is always the real function start.
54c7009d 12788
7ee6d7eb
AC
127892003-02-17 Andrew Cagney <cagney@redhat.com>
12790
12791 * configure.in: Revert ${target} != ${host}.
12792
2846da9b
AC
127932003-02-17 Andrew Cagney <ac131313@redhat.com>
12794
12795 * configure.in (Makefile): Use the test ${target} != ${host},
12796 instead of the absence of the "nm.h" file, to determine of the
12797 configuration non-native.
12798 * configure: Regenerate.
8ffd9b1b 12799
3b27aeea
EZ
128002003-02-14 Elena Zannoni <ezannoni@redhat.com>
12801
fbe586ae 12802 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12803
12804 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12805 conditionalize tui_active test.
12806 (lookup_cmd_1): Ditto.
12807
b0b1c2c0
MK
128082003-02-14 Mark Kettenis <kettenis@gnu.org>
12809
12810 * configure.in: Add check for _etext.
12811 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12812 available.
12813 * config.in, configure: regenerated.
12814
8f05cde5
DJ
128152003-02-14 Daniel Jacobowitz <drow@mvista.com>
12816
12817 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12818
021e7609
AC
128192003-02-14 Andrew Cagney <ac131313@redhat.com>
12820
12821 * main.c (tui_version): Delete variable.
12822 (captured_main): When --tui, set interpreter_p to "tui" instead of
12823 enabling tui_version.
12824 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12825 tui_version.
12826 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12827 * cli/cli-cmds.c (disassemble_command): Ditto.
12828 * defs.h (tui_version): Delete declaration.
12829 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12830 (tui-interp.o): Add rules.
12831 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12832
e325dcec
CF
128332003-02-14 Christopher Faylor <cgf@redhat.com>
12834
36ffb041 12835 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12836 just-loaded dll.
12837
c4f90d87
JM
128382003-02-12 Jason Molenda (jmolenda@apple.com)
12839
fbe586ae
RH
12840 * symmisc.c (print_objfile_statistics): Include information about
12841 the number of psymtabs and symtabs in each object file.
c4f90d87 12842
e46e5ccd
KS
128432003-02-13 Keith R Seitz <keiths@redhat.com>
12844
12845 * main.h (struct captured_main_args): Add interpreter_p.
12846 * main.c (captured_main): Initialize interpreter_p from context.
12847 * gdb.c (main): Set interpreter_p argument.
12848 * Makefile.in (gdb.o): Add dependency for interps.h.
12849
fe97fe9c
AC
128502003-02-12 Andrew Cagney <ac131313@redhat.com>
12851
12852 * event-top.c (cli_command_loop): Delete declaration.
12853 (_initialize_event_loop): Delete function setting event_loop_hook.
12854 * event-top.h (cli_command_loop): Declare. Update copyright.
12855 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12856 * interps.c (current_interp_command_loop): When event_loop_p, call
12857 cli_command_loop.
12858
1cdac4ef
AC
128592003-02-12 Andrew Cagney <ac131313@redhat.com>
12860
12861 * interps.h (interp_command_loop_ftype): Change return type to
12862 void.
12863
48037ead
ML
128642003-02-12 Michal Ludvig <mludvig@suse.cz>
12865
12866 * x86-64-tdep.c (x86_64_extract_return_value)
12867 (x86_64_store_return_value): Use regcache instead of regbuf.
12868 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12869 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12870
033afc63
AC
128712003-02-11 Andrew Cagney <ac131313@redhat.com>
12872
12873 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12874 * aclocal.m4: Regenerate.
12875 * configure: Regenerate.
12876
12877 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12878 TCL_LD_SEARCH_FLAGS.
12879
40d02bca
ML
128802003-02-10 Michal Ludvig <mludvig@suse.cz>
12881
12882 * dwarf2cfi.c: Reindented.
12883
11308a41
AC
128842003-02-09 Andrew Cagney <ac131313@redhat.com>
12885
12886 * interps.c (clear_interpreter_hooks): Convert function definition
12887 to ISO C.
12888
e1c1c0f6
DC
128892003-02-07 David Carlton <carlton@math.stanford.edu>
12890
12891 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12892
ab5d3da6
KB
128932003-02-07 Kevin Buettner <kevinb@redhat.com>
12894
12895 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12896 (struct type): ...to here.
12897 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12898 field.
12899 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12900 (replace_type): Set length on all type variants for a given type.
12901
b8a92b82
AC
129022003-02-07 Andrew Cagney <ac131313@redhat.com>
12903
12904 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12905 <sys/stat.h>.
12906 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12907
5cb316ef
AC
129082003-02-06 Andrew Cagney <ac131313@redhat.com>
12909
2555fe1a
AC
12910 * Makefile.in (symm-nat.o): Update dependencies.
12911 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12912 (lynx-nat.o, ia64-linux-nat.): Ditto.
12913 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12914 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12915 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12916
44270758
AC
12917 * Makefile.in (inflow_h): Define.
12918 (procfs.o, inflow.o, procfs.o): Update dependencies.
12919 * inftarg.c (child_stop): Delete extern declaration of
12920 inferior_process_group. Include "inflow.h".
12921 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12922 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12923 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12924 (our_process_group, inferior_process_group): Extern declarations.
12925
df8f7274
AC
12926 * procfs.c: Include "gdb_assert.h".
12927
5cb316ef
AC
12928 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12929 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12930 * jv-typeprint.c (java_type_print_base): Ditto.
12931 * typeprint.c (typedef_print): Eliminate STREQ.
12932 * cli/cli-script.c (define_command, define_command): Ditto.
12933 * main.c (captured_main): Ditto.
12934 * values.c (lookup_internalvar): Ditto.
12935 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12936 within `if' conditional.
12937 * linespec.c (decode_line_2): Ditto.
12938 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12939 (bfd_openw_with_cleanup): Ditto.
12940
2a28ccea
MK
129412003-02-07 Mark Kettenis <kettenis@gnu.org>
12942
12943 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12944 legacy_extract_return_value and store_return_value to
12945 legacy_return_value.
12946
786b8124
CF
129472003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12948
12949 * win32-nat.c (get_relocated_section_addrs): New function. Find
12950 section load addresses for symbol handling in relocated DLLs.
12951 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12952
b871e4ec
FF
129532003-02-05 Fred Fish <fnf@intrinsity.com>
12954
12955 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12956 '=' and '!='.
12957 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12958 with '&' and '=='.
12959 (angel_RDI_info): Ditto.
12960 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12961 with '&' and '!='.
12962 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12963
4389a95a 129642003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12965 Keith Seitz <keiths@redhat.com>
12966 Elena Zannoni <ezannoni@redhat.com>
12967 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12968
12969 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12970 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12971 (SUBDIR_MI_OBS): Add "mi-interp.o".
12972 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12973 (SFILES): Add "interps.c".
12974 (COMMON_OBS): Add "interps.o".
12975 (interps_h, mi_main_h): Define.
12976 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12977 (mi-main.o, main.o, event-top.o): Update dependencies.
12978 * cli/cli-interp.c: New file.
12979 * interps.h, interps.c: New files.
12980 * top.c: (gdb_init): Don't install the default interpreter, handed
12981 by captured_main.
12982 * main.c: Include "interps.h".
12983 (interpreter_p): Note that it should malloc'ed.
12984 (captured_command_loop): Call current_interp_command_loop.
12985 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12986 xfree and xstrdup when updating interpreter_p. Install the
12987 default interpreter. Add hack to stop mi1's copyright notice
12988 being encoded.
12989 * event-top.h (gdb_setup_readline): Declare.
12990 (gdb_disable_readline): Declare.
12991 * event-top.c: Include "interps.h".
12992 (display_gdb_prompt): Call current_interp_display_prompt_p.
12993 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12994 gdb_stdlog, and gdb_stdtarg.
12995 (_initialize_event_loop): Don't call gdb_setup_readline.
12996 * cli-out.c (cli_out_set_stream): New function.
12997 * cli-out.h (cli_out_set_stream): Declare.
12998
ff3b5810
MK
129992003-02-06 Mark Kettenis <kettenis@gnu.org>
13000
13001 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13002 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13003 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13004 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13005 config/i386/i386v42mp.mt: Removed.
13006
5b729aa5
MK
130072003-02-05 Mark Kettenis <kettenis@gnu.org>
13008
13009 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13010 GDB_OSABI_SOLARIS.
13011
8cc15142
MC
130122003-02-05 Michael Chastain <mec@shout.net>
13013
13014 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13015 2.12.1 and earlier versions.
13016
5aa5d4b9
AC
130172003-02-05 Andrew Cagney <ac131313@redhat.com>
13018
13019 Remove orphaned hosts, targets and files.
13020 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13021 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13022 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13023 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13024 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13025 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13026 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13027 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13028 * config/sparc/tm-sp64sim.h: Delete.
13029 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13030 hosts.
13031 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13032 mips*-dec-mach3* targets.
13033
b68767c1
MC
130342003-02-04 Michael Chastain <mec@shout.net>
13035
13036 * NEWS: Fix typo: sepcifying -> specifying.
13037
5ae7ca1d
MC
130382003-02-04 Michael Chastain <mec@shout.net>
13039
13040 * dwarfread.c: Add documentation on the state of dwarf-1,
13041 looking towards obsoletion.
13042
d08a4280
MC
130432003-02-03 Michael Chastain <mec@shout.net>
13044
13045 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13046 gdb/testsuite/gdb.c++/pr-1023.exp.
13047
e9be73e4
AC
130482003-02-04 Andrew Cagney <ac131313@redhat.com>
13049
13050 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13051 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13052
13053 * utils.c (init_page_info): Delete reference to MPW in comments.
13054 * main.c (captured_main): Delete #ifdef MPW.
13055
05d57f6f
AC
130562003-02-04 Andrew Cagney <ac131313@redhat.com>
13057
8ffd9b1b 13058 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13059 * monitor.c (monitor_expect): Obsolete reference to m32r.
13060 * configure.tgt: Mark m32r-*-elf* as obsolete.
13061 * MAINTAINERS: Mark m32k as obsolete.
13062 * m32r-rom.c: Obsolete file.
13063 * config/m32r/m32r.mt: Obsolete file.
13064 * config/m32r/tm-m32r.h: Obsolete file.
13065 * m32r-stub.c: Obsolete file.
13066 * m32r-tdep.c: Obsolete file.
13067
8b0e5691
AC
130682003-02-04 Andrew Cagney <ac131313@redhat.com>
13069
13070 * NEWS: Mention that the z8k-zilog-none is obsolete.
13071 * MAINTAINERS: Mark z8k as obsolete.
13072 * configure.tgt: Obsolete the z8k-*-coff* target.
13073 * config/z8k/z8k.mt: Obsolete file.
13074 * config/z8k/tm-z8k.h: Obsolete file.
13075 * z8k-tdep.c: Obsolete file.
13076
67f16606
AC
130772003-02-04 Andrew Cagney <ac131313@redhat.com>
13078
13079 * NEWS: Mention that the mn10200-elf is obsolete.
13080 * configure.tgt: Obsolete mn10200-*-* target.
13081 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13082 mention that the mn10200 is obsolete.
13083 * breakpoint.h: Ditto.
13084 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13085 * config/mn10200/mn10200.mt: Obsolete file.
13086 * config/mn10200/tm-mn10200.h: Obsolete file.
13087 * mn10200-tdep.c: Obsolete file.
13088
fd2299bd
AC
130892003-02-04 Andrew Cagney <ac131313@redhat.com>
13090
13091 * MAINTAINERS: Mark h8500 as obsolete.
13092 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13093 * findvar.c (value_from_register): Ditto.
13094 * h8500-tdep.c: Mark file as obsolete.
13095 * config/h8500/h8500.mt: Ditto.
13096 * config/h8500/tm-h8500.h: Ditto.
13097 * NEWS: Mention that h8500 is obsolete.
13098
eb9a305d
DC
130992003-02-04 David Carlton <carlton@math.stanford.edu>
13100
13101 * objfiles.c (allocate_objfile): Always set name. Add comment at
13102 start of function.
13103 * jv-lang.c (get_dynamics_objfile): Add comment.
13104
406fc7fb
DC
131052003-02-04 David Carlton <carlton@math.stanford.edu>
13106
13107 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13108 * printcmd.c (build_address_symbolic): Replace uses of
13109 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13110 SYMBOL_NAME, and asm_demangle.
13111 Update copyright.
13112
93d91629
DC
131132003-02-04 David Carlton <carlton@math.stanford.edu>
13114
13115 * linespec.c (decode_compound): Extract code into
13116 lookup_prefix_sym.
13117 (lookup_prefix_sym): New function.
13118
1c5cb38e
DC
131192003-02-04 David Carlton <carlton@math.stanford.edu>
13120
13121 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13122 FLOAT_COERCION_BADNESS.
13123 * gdbtypes.c (rank_one_type): Replace all uses of
13124 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13125
0cf824c9
JB
131262003-02-04 Jim Blandy <jimb@redhat.com>
13127
13128 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13129 section, let dwarf_macinfo_section point to it, not
13130 dwarf_loc_section.
13131
a2d356b0
DJ
131322003-02-04 Daniel Jacobowitz <drow@mvista.com>
13133
13134 Pointed out by Anton Blanchard <anton@samba.org>.
13135 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13136 (ppc_linux_at_sigtramp_return_path): Use it.
13137
2de7ced7
DJ
131382003-02-04 Daniel Jacobowitz <drow@mvista.com>
13139
13140 * defs.h (streq): Add prototype.
13141 * utils.c (streq): New function.
13142
13143 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13144 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13145 * mdebugread.c (new_symbol): Likewise.
13146 * stabsread.c (define_symbol): Likewise.
13147 * coffread.c (process_coff_symbol): Likewise.
13148 * dwarfread.c (new_symbol): Likewise.
13149
13150 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13151 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13152 here.
13153 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13154 SYMBOL_INIT_DEMANGLED_NAME.
13155 * objfiles.c: Include "hashtab.h".
13156 (allocate_objfile): Call htab_set_functions_ex for the
13157 demangled_names_hash.
13158 (free_objfile): Call htab_delete for the demangled_names_hash.
13159 * objfiles.h (struct htab): Add declaration.
13160 (struct objfile): Add demangled_names_hash.
13161 * symfile.c: Include "hashtab.h".
13162 (reread_symbols): Call htab_delete for the demangled_names_hash.
13163 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13164 SYMBOL_NAME in the bcache.
13165 * symtab.c: Include "hashtab.h". Update comments.
13166 (create_demangled_names_hash, symbol_set_names): New functions.
13167 (symbol_find_demangled_name): New function, broken out from
13168 symbol_init_demangled_names.
13169 (symbol_init_demangled_names): Use it.
13170 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13171 (SYMBOL_SET_NAMES): New macro.
13172 (symbol_set_names): Add prototype.
13173
15831452
JB
131742003-02-03 Jim Blandy <jimb@redhat.com>
13175
13176 Use a single, consistent representation for an empty minimal
13177 symbol table in an objfile.
13178 * objfiles.c (terminate_minimal_symbol_table): New function.
13179 (allocate_objfile): Call it.
13180 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13181 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13182 non-NULL.
15831452
JB
13183 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13184 objfile has minimal symbols, compare minimal_symbol_count to zero,
13185 instead of comparing msymbols with NULL.
13186 * objfiles.c (have_minimal_symbols): Same.
13187 * solib-sunos.c (solib_add_common_symbols): Call
13188 terminate_minimal_symbol_table.
13189 * symfile.c (reread_symbols): Same.
8ffd9b1b 13190
ffc65945
KB
131912003-02-03 Kevin Buettner <kevinb@redhat.com>
13192
13193 * s390-tdep.c (s390_address_class_type_flags)
13194 (s390_address_class_type_flags_to_name)
13195 (s390_address_class_name_to_type_flags): New functions.
13196 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13197 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13198
f211c6d4
MS
131992003-02-03 Michael Snyder <msnyder@redhat.com>
13200
13201 * arm-tdep.c: Fix spell-o in comment.
13202
659b0389
ML
132032003-02-03 Michal Ludvig <mludvig@suse.cz>
13204
13205 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13206 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13207 error messages to contain BFD filename.
659b0389 13208
3b31d625
EZ
132092003-02-02 Elena Zannoni <ezannoni@redhat.com>
13210
997b089a 13211 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13212 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13213 (do_mixed_source_and_assembly): Use
13214 make_cleanup_ui_out_tuple_begin_end and
13215 make_cleanup_ui_out_tuple_begin_end.
13216 (do_mixed_source_and_assembly): Ditto.
13217 * thread.c (do_captured_list_thread_ids): Ditto.
13218 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13219 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13220 ui_out_tuple_end): Delete prototypes.
13221 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13222 ui_out_list_end, ui_out_tuple_end): Delete.
13223
13224 From Kevin Buettner <kevinb@redhat.com>:
13225 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13226 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13227 (do_cleanup_table_end): New functions.
13228 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13229 Use cleanups to invoke_ui_out_tuple_end().
13230 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13231 * cli/cli-setshow.c (cmd_show_list): Use
13232 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13233
5b181d62
AC
132342003-02-02 Andrew Cagney <ac131313@redhat.com>
13235
13236 * frame.c (frame_unwind_register): New function.
13237 (frame_unwind_unsigned_register): Use.
13238 (frame_unwind_signed_register): Use.
13239 (frame_read_register): New function.
13240 * frame.h (frame_unwind_register): Declare.
13241 (frame_read_register): Declare.
13242
13243 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13244 and frame_unwind_register instead of read_memory, write_register
13245 and deprecated_write_register_bytes.
13246
5f601589
AC
132472003-02-02 Andrew Cagney <ac131313@redhat.com>
13248
13249 * frame.h: Note that namelen can be negative.
13250 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13251 NAME's length.
13252
13253 * NEWS: Mention that the d10v's `regs' command is deprecated.
13254 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13255 (d10v_print_registers_info): New function.
13256 (show_regs): Call d10v_print_registers_info.
13257 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13258
6a3fe0a4
MK
132592003-02-02 Mark Kettenis <kettenis@gnu.org>
13260
13261 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13262 lost in the previous patch.
13263
075559bc
AC
132642003-02-01 Andrew Cagney <ac131313@redhat.com>
13265
13266 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13267 * stack.c (print_frame_info_base): Output complete FRAME tuple
13268 for synthesized frames.
075559bc 13269
6789195b
AC
132702003-02-02 Andrew Cagney <ac131313@redhat.com>
13271
13272 * mips-nat.c (zerobuf): Delete.
13273 (fetch_inferior_registers): Alloc local zerobuf.
13274 (fetch_core_registers): Alloc local zerobuf.
13275 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13276 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13277 * thread-db.c (thread_db_store_registers): Ditto.
13278 * sh-tdep.c (sh_do_register): Ditto.
13279 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13280 * remote-sim.c (gdbsim_store_register): Ditto.
13281 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13282 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13283 * monitor.c (monitor_supply_register): Ditto.
13284 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13285 * mips-nat.c (fetch_inferior_registers): Ditto.
13286 * m68klinux-nat.c (fetch_register): Ditto.
13287 * lynx-nat.c (fetch_inferior_registers): Ditto.
13288 (fetch_inferior_registers): Ditto.
13289 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13290 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13291 (hpux_thread_store_registers): Ditto.
13292 * hppah-nat.c (fetch_register): Ditto.
13293 * hppab-nat.c (fetch_register): Ditto.
13294 * hppa-tdep.c (pa_register_look_aside): Ditto.
13295 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13296 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13297
e669114a
AC
132982003-02-01 Andrew Cagney <ac131313@redhat.com>
13299
13300 * gdbarch.sh: Explictly specify all method levels. When a
13301 variable with an empty level, provide a non-multi-arch default.
13302 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13303 * gdbarch.h: Re-generate.
13304 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13305 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13306
9a043c1d
AC
133072003-02-01 Andrew Cagney <ac131313@redhat.com>
13308
13309 * defs.h (host_pointer_to_address): Delete declaration.
13310 (address_to_host_pointer): Delete declaration.
13311 * utils.c (host_pointer_to_address): Delete function.
13312 (address_to_host_pointer): Delete function.
13313 * procfs.c (procfs_address_to_host_pointer): New function.
13314 * procfs.c (proc_set_watchpoint): Use.
13315 (procfs_can_use_hw_breakpoint): Update comments.
13316 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13317 (som_solib_add): Use.
13318 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13319 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13320
7ca9f392
AC
133212003-02-01 Andrew Cagney <ac131313@redhat.com>
13322
94bbfd30
AC
13323 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13324 strlen d_name.
13325
7ca9f392
AC
13326 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13327 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13328 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13329 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13330 (define_symbol): Update.
13331 * symfile.c (generic_load): Remove references to nindy.
13332 * symtab.c: Remove references to nindy.
13333
31a85ea2
AC
133342003-02-01 Andrew Cagney <ac131313@redhat.com>
13335
13336 * infcmd.c (print_float_info): Delete code conditional on
13337 FLOAT_INFO.
13338 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13339 * config/m68k/nm-apollo68b.h: Ditto.
13340 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13341 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13342 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13343
f6e85fc8
MK
133442003-02-01 Mark Kettenis <kettenis@gnu.org>
13345
6015b6a0
MK
13346 * config/i386/tm-i386os9k.h: Removed.
13347
f7a30bdf
MK
13348 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13349 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13350 they're identical to i[3456]86-*-sysv* now.
13351 * config/i386/i386v32.mh: Removed.
13352 * config/i386/xm-i386v32.h: Removed.
13353 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13354
28d52111
MK
13355 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13356
4d3f6bce
MK
13357 * config/i386/i386dgux.mh: Removed.
13358 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13359
f6e85fc8
MK
13360 * configure.in: Fix typo.
13361 * configure: Regenerated.
13362
53955967
DC
133632003-01-31 David Carlton <carlton@math.stanford.edu>
13364
13365 * dwarf2read.c (dwarf2_locate_sections): Set
13366 dwarf_ranges_section.
13367
b1364885
AC
133682003-01-31 Andrew Cagney <ac131313@redhat.com>
13369
8dbb1c65
AC
13370 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13371 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13372
8731e58e
AC
13373 * utils.c: Re-indent.
13374
b1364885
AC
13375 * config/djgpp/fnchange.lst: Delete nindy files.
13376 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13377 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13378 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13379 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13380 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13381 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13382 * Makefile.in (init.c): Remove nindy references.
13383 (saber_gdb): Delete rule.
13384 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13385 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13386 and a68v-nat.c.
13387 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13388 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13389 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13390 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13391 nindy-share/stop.h.
13392 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13393 * saber.suppress: Delete file.
13394
086df311
DJ
133952003-01-31 Daniel Jacobowitz <drow@mvista.com>
13396
13397 * dbxread.c (stabs_data): New static variable.
13398 (fill_symbuf): Support an in-memory buffer for stabs data.
13399 (stabs_seek): New function.
13400 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13401 (read_ofile_symtab): Use stabs_seek.
13402 (elfstab_build_psymtabs): Take an asection* instead of
13403 an offset and size. Relocate the stabs data if necessary.
13404 Save the section* for dbx_psymtab_to_symtab.
13405 * dwarf2read.c: Add section variables for each debug section.
13406 (dwarf2_locate_sections): Fill them in.
13407 (dwarf2_read_section): Take an asection* argument.
13408 Relocate the section contents if necessary.
13409 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13410 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13411 it to dwarf2_read_section.
13412 (dwarf2_build_frame_info): Update callers.
13413 * elfread.c (elf_symfile_read): Update call to
13414 elfstab_build_psymtabs.
13415 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13416 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13417 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13418 * symfile.c (symfile_dummy_outputs): New function.
13419 (symfile_relocate_debug_section): New function.
13420 * symfile.h (symfile_relocate_debug_section): Add prototype.
13421
87d1b352
RH
134222003-01-31 Richard Henderson <rth@redhat.com>
13423
13424 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13425 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13426 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13427 * alpha-tdep.c (alpha_register_name): Add "unique".
13428 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13429 (ALPHA_UNIQUE_REGNUM): New.
13430 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13431
c48861fb
AC
134322003-01-31 Andrew Cagney <ac131313@redhat.com>
13433
13434 * README: Remove reference to Ericsson 1800 monitor.
13435 * Makefile.in (remote-es.o): Delete rule.
13436 (ALLDEPFILES): Delete remote-es.c.
13437 * remote-es.c: Delete file.
13438 * config/m68k/es1800.mt: Delete file.
13439 * config/djgpp/fnchange.lst: Update.
13440 * configure.tgt: Delete m68*-ericsson-* target.
13441
d764a824
AF
134422003-01-31 Adam Fedor <fedor@gnu.org>
13443
13444 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13445 Remove duplicate/shadowing variable of same name.
13446
fe36c4f4
JB
134472003-01-30 Jim Blandy <jimb@redhat.com>
13448
13449 * symfile.c (find_separate_debug_file): Assert that the objfile's
13450 directory name we compute ends with a slash, and then assume that
13451 that's so everywhere we use it.
13452
cb741690
DJ
134532003-01-30 Daniel Jacobowitz <drow@mvista.com>
13454
13455 * valops.c (value_assign): Flush frame cache after stores to memory
13456 also.
13457
96ee5227
AC
134582003-01-30 Andrew Cagney <ac131313@redhat.com>
13459
13460 * Makefile.in (mon960-rom.o): Delete rule.
13461 * mon960-rom.c: Delete file.
13462
7f6104a9
AC
134632003-01-30 Andrew Cagney <ac131313@redhat.com>
13464
13465 * d10v-tdep.c: Include "frame-unwind.h".
13466 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13467 list.
13468 (next_addr, uses_frame): Delete.
13469 (struct d10v_unwind_cache): Define.
13470 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13471 Use info instead of next_addr and uses_frame globals.
13472 (d10v_frame_init_saved_regs): Delete function.
13473 (d10v_init_extra_frame_info): Delete function.
13474 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13475 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13476 init_frame_pc or frame_saved_pc.
13477 (d10v_pop_frame): Delete function.
13478 (do_d10v_pop_frame): Delete function.
13479 (d10v_frame_chain): Delete function.
13480 (d10v_frame_chain_valid): Delete function.
13481 (d10v_frame_pc_unwind): New function.
13482 (d10v_frame_id_unwind): New function.
13483 (saved_regs_unwinder): New function.
13484 (d10v_frame_register_unwind): New function.
13485 (d10v_frame_pop): New function.
13486 (d10v_frame_unwind): New variable.
13487 (d10v_frame_p): New function.
13488 (d10v_frame_saved_pc): Delete function.
13489 * Makefile.in (d10v-tdep.o): Update dependencies.
13490
cad2e848
JB
134912003-01-30 J. Brobecker <brobecker@gnat.com>
13492
13493 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13494 causing some regressions due to a change in the default value
13495 for this macro.
13496
af34e669
DJ
134972003-01-29 Richard Henderson <rth@redhat.com>
13498 Elena Zannoni <ezannoni@redhat.com>
13499 Daniel Jacobowitz <drow@mvista.com>
13500
13501 Fix PR gdb/961.
8ffd9b1b 13502 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13503 variables.
13504 (RANGES_SECTION): New.
13505 (dwarf_ranges_buffer): New variable.
13506 (struct comp_unit_head): Add member "die".
13507 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13508 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13509 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13510 (dwarf2_locate_sections): Likewise.
13511 (dwarf2_build_psymtabs): Read .debug_ranges.
13512 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13513 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13514 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13515 Look for DW_AT_ranges and return the bounding box.
13516
baa93fa6
CF
135172003-01-29 Brian Ford <ford@vss.fsi.com>
13518
13519 * win32-nat.c (cygwin_pid): Removed as unused.
13520 (child_attach): Try fall back to Cygwin pid.
13521
c63f977f
JB
135222003-01-29 Jim Blandy <jimb@redhat.com>
13523
13524 * objfiles.h (struct objfile): Doc fix.
13525
d62d1979
AC
135262003-01-29 Andrew Cagney <ac131313@redhat.com>
13527
13528 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13529 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13530 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13531 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13532 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13533 (FRAME_SAVED_PC): Change to a function with predicate.
13534 * gdbarch.h, gdbarch.c: Re-generate.
13535
1ae18a04
AC
135362003-01-28 Andrew Cagney <ac131313@redhat.com>
13537
52287340
AC
13538 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13539
1ae18a04
AC
13540 * complaints.c (complain): Delete function.
13541 * complaints.h (struct deprecated_complaint): Delete definition.
13542 (complain): Delete declaration.
13543
f2c16bd6
KB
135442003-01-28 Kevin Buettner <kevinb@redhat.com>
13545
13546 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13547 dummy frames.
13548
a94dd1fd
AC
135492003-01-27 Andrew Cagney <ac131313@redhat.com>
13550
13551 * sentinel-frame.h, sentinel-frame.c: New files.
13552 * Makefile.in (frame.o): Update dependencies.
13553 (SFILES): Add sentinel-frame.c.
13554 (sentinel_frame_h): Define.
13555 (COMMON_OBS): Add sentinel-frame.o.
13556 (sentinel-frame.o): Specify dependencies.
13557 * frame.c: Include "sentinel-frame.h".
13558 (frame_register_unwind): Rewrite assuming that there is always a a
13559 ->next frame.
13560 (frame_register, generic_unwind_get_saved_register): Ditto.
13561 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13562 (create_sentinel_frame, unwind_to_current_frame): New functions.
13563 (get_current_frame): Rewrite using create_sentinel_frame and
13564 unwind_to_current_frame. When possible, always create a frame.
13565 (create_new_frame): Set next to the sentinel frame.
13566 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13567 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13568 ID cache when necessary.
13569 (frame_saved_regs_id_unwind): Use frame_relative_level.
13570 (deprecated_generic_get_saved_register): Use frame_relative_level,
13571 get_frame_saved_regs, get_frame_pc, get_frame_base and
13572 get_next_frame.
13573 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13574 frame_register.
13575
5378adc4
DJ
135762003-01-27 Daniel Jacobowitz <drow@mvista.com>
13577
13578 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13579
51ee2ddc
DJ
135802003-01-27 Daniel Jacobowitz <drow@mvista.com>
13581
13582 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13583 (maintenance_set_profile_cmd): Use error () instead of warning ().
13584
d9feb4e7
DJ
135852003-01-27 Daniel Jacobowitz <drow@mvista.com>
13586
13587 * configure.in: Check that -pg works if using --enable-profiling.
13588 Check for monstartup and _mcleanup regardless of --enable-profiling.
13589 * maint.c: Check for monstartup and _mcleanup before using them.
13590 * config.in: Regenerated.
13591 * configure: Regenerated.
13592
2d188dd3
NC
135932003-01-24 Nick Clifton <nickc@redhat.com>
13594
13595 * Add sh2e support:
13596
13597 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13598
13599 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13600 (sh2e_show_regs): New.
13601 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13602 * config/sh/tm-sh.h: Added sh2e to comments.
13603
cb3c37b2
JB
136042003-01-23 Jim Blandy <jimb@redhat.com>
13605
13606 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13607 symbols found)" message here; we haven't checked for a separate
13608 debug info file yet, so we don't know yet.
13609 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13610 we've looked everywhere. Also, there's no need to print a special
13611 message when we're loading the separate debug info file: the one
13612 symbol_file_add prints is fine.
13613
5b5d99cf
JB
136142003-01-23 Alexander Larsson <alexl@redhat.com>
13615 Jim Blandy <jimb@redhat.com>
13616
13617 Add support for executables whose debug info has been separated
13618 out into a separate file, leaving only a link behind.
13619 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13620 and separate_debug_objfile_backlink.
13621 (put_objfile_before): New declaration.
13622 * symfile.c: #include "filenames.h".
13623 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13624 debug info in a separate file, read that, too. Save the addrs
13625 argument, so we can use it again to read the separated debug info;
13626 syms_from_objfile modifies the table we pass it.
13627 (reread_symbols): After re-reading an objfile, call
13628 reread_separate_symbols to refresh its separate debug info
13629 objfile, if it has one.
13630 (reread_separate_symbols, find_separate_debug_file,
13631 get_debug_link_info, separate_debug_file_exists): New functions.
13632 (debug_file_directory): New global var.
13633 (_initialize_symfile): Initialize debug_file_directory, and
13634 provide the new `set debug-file-directory' command to let the user
13635 change it.
13636 * objfiles.c (free_objfile): If this objfile has its debug info in
13637 a separate objfile, free that one too. If this is itself a
13638 separate debug info objfile, clear our parent's backlink.
13639 (put_objfile_before): New function.
13640 * utils.c (gnu_debuglink_crc32): New function.
13641 * defs.h (gnu_debuglink_crc32): New declaration.
13642 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13643 * configure.in: Handle --with-separate-debug-dir config option.
13644 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13645 * acconfig.h (DEBUGDIR): New macro.
13646 * configure, aclocal.m4, config.in: Regenerated.
13647
7e8580c1
JB
136482003-01-22 Jim Blandy <jimb@redhat.com>
13649
7904e09f
JB
13650 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13651 like the old symbol_file_add, but taking new arguments: you can
13652 now pass in either a `struct section_addr_info' list to say where
13653 each section is loaded, or a `struct section_offsets' table. Pass
13654 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13655 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13656 with the appropriate quiescent values for the new arguments.
13657
7e8580c1
JB
13658 * symfile.c: #include "gdb_assert.h".
13659 (syms_from_objfile): Add the ability to pass in a section offset
13660 table directly, as an alternative to the section_addr_info table.
13661 Document arguments better.
13662 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13663 * symfile.h (syms_from_objfile): Update declaration.
13664 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13665 syms_from_objfile.
13666 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13667
d28f9cdf
DJ
136682003-01-22 Daniel Jacobowitz <drow@mvista.com>
13669
13670 Original patch by Tom Tromey <tromey@cygnus.com> and
13671 Jason Molenda <jmolenda@apple.com>.
13672 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13673 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13674 * NEWS: Mention profiling.
13675 * configure.in (--enable-gdbtk): Fix typo.
13676 (--enable-profiling): New. Set PROFILE_CFLAGS.
13677 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13678 Fill in function.
13679 (profiling_state): New variable.
13680 (mcleanup_wrapper): New function.
13681 (_initialize_maint): Remove NOTYET, fix call to
13682 add_setshow_boolean_cmd for "maint set profile".
13683 * configure: Regenerated.
13684
df21e465
MH
136852003-01-21 Martin M. Hunt <hunt@redhat.com>
13686
13687 * Makefile.in (install-gdbtk): Install PNG images too.
13688
73c1f219
AC
136892003-01-21 Andrew Cagney <ac131313@redhat.com>
13690
13691 * exec.c (text_start): Delete global variable.
13692 (exec_file_attach): Make text_start local to the function.
13693 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13694 * valops.c (hand_function_call): Delete code that handles
13695 BEFORE_TEXT_END and AFTER_TEXT_END.
13696 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13697 of CALL_DUMMY_LOCATION.
13698 * gdbarch.c: Regenerate.
13699 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13700 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13701 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13702 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13703 (text_end): Delete extern declaration.
13704
eb4f72c5
AC
137052003-01-21 Andrew Cagney <ac131313@redhat.com>
13706
13707 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13708 * blockframe.c (backtrace_below_main): Move to "frame.c".
13709 (frame_chain_valid): Delete check for backtrace_below_main.
13710 (_initialize_blockframe): Delete initialization, move ``set
13711 backtrace-below-main'' command to "frame.c".
13712 (do_flush_frames_sfunc): Delete function.
13713 * frame.c: Include "command.h" and "gdbcmd.h".
13714 (frame_type_from_pc): New function.
13715 (create_new_frame): Use frame_type_from_pc.
13716 (legacy_get_prev_frame): New function.
13717 (get_prev_frame): Rewrite. When an old style frame, call
13718 legacy_get_prev_frame. Otherwize, unwind the PC first.
13719 (_initialize_frame): Add ``set backtrace-below-main'' command.
13720 * Makefile.in (frame.o): Update dependencies.
13721
778ce8cc
AC
137222003-01-19 Andrew Cagney <ac131313@redhat.com>
13723
13724 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13725 DEPRECATED_REGISTERS_INFO.
13726
01c193c8
AC
137272003-01-19 Andrew Cagney <ac131313@redhat.com>
13728
13729 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13730 Maintainers'. Update `Various Maintainers'.
13731
dedc2a2b
AC
137322003-01-19 Andrew Cagney <ac131313@redhat.com>
13733
13734 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13735 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13736 Suppress actual parameters when `-'.
13737 * gdbarch.h, gdbarch.c: Regenerate.
13738
b7261c70
AC
137392003-01-19 Andrew Cagney <ac131313@redhat.com>
13740
13741 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13742 code handling dummy frames.
13743
dbe9fe58
AC
137442003-01-19 Andrew Cagney <ac131313@redhat.com>
13745
13746 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13747 (struct frame_unwind): Add field pop.
13748 * frame.h (frame_pop): Declare.
13749 * frame.c (frame_saved_regs_pop): New function.
13750 (trad_frame_unwinder): Add frame_saved_regs_pop.
13751 (frame_pop): New function.
13752 * dummy-frame.c (dummy_frame_pop): New function.
13753 (discard_innermost_dummy): New function.
13754 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13755 (dummy_frame_unwind): Add dummy_frame_pop.
13756 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13757 * valops.c (hand_function_call): Ditto.
13758 * stack.c (return_command): Ditto.
13759
570b8f7c
AC
137602003-01-18 Andrew Cagney <ac131313@redhat.com>
13761
13762 * cris-tdep.c: Fix function declaration indentation.
13763 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13764 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13765 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13766 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13767 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13768 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13769
137702003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13771
13772 * README (Unpacking and Installation -- quick overview):
13773 Warn against ".../gdb-5.3/gdb/configure".
13774
494cca16
AC
137752003-01-18 Andrew Cagney <ac131313@redhat.com>
13776
13777 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13778 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13779 (struct frame_unwind): Declare opaque.
13780 (dummy_frame_p): Declare function.
13781 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13782 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13783 * dummy-frame.c: Include "frame-unwind.h".
13784 (dummy_frame_p): New function.
13785 (dummy_frame_unwind): New variable.
13786 * frame.c: Include "frame-unwind.h".
13787 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13788 to use the new unwind field.
13789 (set_unwind_by_pc): Delete function.
13790 (create_new_frame, get_prev_frame): Set unwind field using
13791 frame_unwind_find_by_pc.
13792 (trad_frame_unwind, trad_frame_unwinder): New variables.
13793 * frame.h (trad_frame_unwind): Declare variable.
13794 (frame_id_unwind_ftype): Delete declaration.
13795 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13796 (struct frame_unwind): Declare opaque.
13797 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13798 register_unwind with a single unwind pointer.
13799 * frame-unwind.h, frame-unwind.c: New files.
13800 * Makefile.in (SFILES): Add frame-unwind.c.
13801 (frame_unwind_h): Define.
13802 (COMMON_OBS): Add frame-unwind.o.
13803 (frame-unwind.o): Specify dependencies.
13804 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13805
4efb68b1
AC
138062003-01-18 Andrew Cagney <ac131313@redhat.com>
13807
13808 * ada-valprint.c: Eliminate PTR.
13809 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13810 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13811 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13812 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13813 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13814 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13815 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13816
a84d24ee
AC
138172003-01-17 Andrew Cagney <ac131313@redhat.com>
13818
762f08a3
AC
13819 * main.c (captured_main): Don't use PTR.
13820 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13821 * gdbtypes.c (lookup_primitive_typename): Ditto.
13822 (lookup_struct_elt_type): Ditto.
13823 * f-valprint.c (info_common_command): Ditto.
13824 (list_all_visible_commons): Ditto.
13825 * jv-typeprint.c (java_type_print_base): Ditto.
13826
a84d24ee
AC
13827 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13828 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13829 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13830 i386-interix-nat.c and i386-interix-tdep.c. Rename
13831 m68klinux-nat.c and m68klinux-tdep.c. Rename
13832 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13833 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13834 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13835 * main.c (captured_main): Use xfree, not free.
13836
c170fb60
AC
138372003-01-16 Andrew Cagney <ac131313@redhat.com>
13838
13839 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13840 ID back using a parameter.
13841 * frame.c (frame_id_unwind): Update call.
13842 (frame_saved_regs_id_unwind): Update.
13843 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13844 * dummy-frame.h (struct frame_id): Add opaque declaration.
13845 (dummy_frame_id_unwind): Update declaration.
13846
867f3898
AC
138472003-01-15 Andrew Cagney <ac131313@redhat.com>
13848
13849 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13850
40622be8 138512003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13852
40622be8 13853 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13854
ae66c1fc
EZ
138552003-01-14 Elena Zannoni <ezannoni@redhat.com>
13856
997b089a 13857 Fix PR gdb/898
ae66c1fc
EZ
13858 * breakpoint.c (until_break_command): Add new argument. Use it to
13859 decide whether to stop only at the current frame or not.
13860 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13861 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13862 call.
13863 (advance_command): New function.
13864 (_initialize_infcmd): Update help string for 'until' command.
13865 Add new 'advance' command.
13866
a04257e6
DC
138672003-01-14 David Carlton <carlton@math.stanford.edu>
13868
13869 * linespec.c (decode_line_1): Normalize comments.
13870 (set_flags): Ditto.
13871 (locate_first_half): Ditto.
13872 (decode_compound): Ditto.
13873 (symtab_from_filename): Ditto.
13874 (decode_all_digits): Ditto.
13875 (decode_dollar): Ditto.
13876 (find_methods): Ditto.
13877 (find_toplevel_char): Ditto.
13878
1bac305b
AC
138792003-01-13 Andrew Cagney <ac131313@redhat.com>
13880
13881 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13882 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13883 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13884 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13885 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13886 * language.c, language.h, m32r-tdep.c: Update copyright.
13887 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13888 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13889 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13890 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13891 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13892 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13893
25caa7a8
EZ
138942003-01-13 Elena Zannoni <ezannoni@redhat.com>
13895
13896 * stabsread.h (process_later, resolve_cfront_continuation):
13897 Obsolete.
13898 Update copyright years.
13899 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13900 Update copyright year.
13901 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13902 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13903 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13904 Update copyright year.
13905 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13906 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13907 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13908 (parse_partial_symbols): Obsolete cfront support.
13909 * stabsread.c
13910 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13911 macros.
13912 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13913 read_cfront_baseclasses, read_cfront_member_functions,
13914 resolve_cfront_continuation,read_cfront_static_fields,
13915 copy_cfront_struct_fields): Obsolete functions.
13916 (define_symbol, read_one_struct_field): Obsolete cfront support.
13917 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13918 Update Copyright year.
13919
7789c6f5
EZ
139202003-01-13 Elena Zannoni <ezannoni@redhat.com>
13921
13922 * stack.c (print_frame_info, print_stack_frame_base_stub,
13923 print_stack_frame_base, show_and_print_stack_frame_stub,
13924 show_and_print_stack_frame, print_only_stack_frame_stub,
13925 print_only_stack_frame): Delete functions.
13926 (print_stack_frame_stub): Call print_frame_info instead of
13927 print_frame_info_base.
13928 (print_frame_info_base): Rename to print_frame_info.
13929 (backtrace_command_1): Call print_frame_info, instead of
13930 print_frame_info_base.
13931 (current_frame_command): Call print_stack_frame, instead of
13932 print_only_stack_frame.
13933 (frame_command): Call print_stack_frame, instead of
13934 show_and_print_stack_frame.
13935 (up_command): Ditto.
13936 (down_command): Ditto.
13937 * frame.h (print_only_stack_frame): Delete prototype.
13938 * infrun.c (normal_stop): Call print_stack_frame, instead of
13939 show_and_print_stack_frame.
13940 * thread.c (info_threads_command): Call print_stack_frame, instead
13941 of print_only_stack_frame.
13942
3f5a3016
AC
139432003-01-13 Andrew Cagney <ac131313@redhat.com>
13944
d99ba314
AC
13945 * README (Graphical interface to GDB): Update URL. Point at
13946 gdb/links/.
13947
3f5a3016
AC
13948 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13949 version match.
13950
083ae935
DJ
139512003-01-13 Daniel Jacobowitz <drow@mvista.com>
13952
13953 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13954 lines.
13955
5365276c
DJ
139562003-01-13 Daniel Jacobowitz <drow@mvista.com>
13957
13958 * thread-db.c (attach_thread): Prototype.
13959 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13960 thread information (ti), and valid flags (th_valid, ti_valid).
13961 (attach_thread): Move target_pid_to_str call to after the thread
13962 is added to GDB's list. Initialize the cache.
13963 (thread_get_info_callback, thread_db_map_id2thr)
13964 (thread_db_get_info): New functions.
13965 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13966 (thread_db_store_registers, thread_db_thread_alive)
13967 (thread_db_get_thread_local_address): Use them.
13968 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13969 of calling error() for threads in unknown state.
13970
13971 (clear_lwpid_callback): New function.
13972 (thread_db_resume): Use it to clear the cache.
13973
9fc30b6b
DJ
139742003-01-13 Daniel Jacobowitz <drow@mvista.com>
13975
13976 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13977 (resume_callback): Remove dead code.
13978
8f871025
AC
139792003-01-13 Andrew Cagney <ac131313@redhat.com>
13980
13981 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13982 predicate.
13983 * gdbarch.h, gdbarch.c: Regenerate.
13984 * stack.c (frame_info): Only initialize the saved registers when
13985 FRAME_INIT_SAVED_REGS_P.
13986 * frame.c (frame_saved_regs_register_unwind): Assert
13987 FRAME_INIT_SAVED_REGS_P.
13988 (deprecated_generic_get_saved_register): Ditto.
13989
3f565f1e
DJ
139902003-01-13 Daniel Jacobowitz <drow@mvista.com>
13991
13992 * source.c (openp): Squelch warning about "filename".
13993
072b1022
DJ
139942003-01-13 Daniel Jacobowitz <drow@mvista.com>
13995
13996 * source.c (openp): If the file does not exist don't necessarily
13997 search the path.
13998
973ccf8b
DJ
139992003-01-13 Daniel Jacobowitz <drow@mvista.com>
14000
14001 Fix PR gdb/872.
14002 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14003 (integer_types_same_name_p): New function.
14004 (rank_one_type): Use it.
14005 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14006
030292b7
DJ
140072003-01-13 Daniel Jacobowitz <drow@mvista.com>
14008
14009 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14010 variables.
14011 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14012 * configure.in: Add --with-sysroot.
14013 * configure: Regenerated.
14014 * main.c (gdb_sysroot): New variable.
14015 (captured_main): Initialize gdb_sysroot.
14016 * defs.h (gdb_sysroot): New extern declaration.
14017 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14018
afb5d334
MC
140192003-01-12 Michael Chastain <mec@shout.net>
14020
14021 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14022
751ceeb4
MC
140232003-01-12 Michael Chastain <mec@shout.net>
14024
14025 * top.c (print_gdb_version): Bump copyright year to 2003.
14026
94cd26f8
DC
140272003-01-12 David Carlton <carlton@bactrian.org>
14028
14029 * linespec.c (symtab_from_filename): Rename variable 's' to
14030 'file_symtab'.
14031
1ce79225
AC
140322003-01-12 Andrew Cagney <ac131313@redhat.com>
14033
14034 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14035 dummy frame.
14036 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14037
fa1fd571
AC
140382003-01-12 Andrew Cagney <ac131313@redhat.com>
14039
14040 * d10v-tdep.c: Include "gdb_assert.h".
14041 (d10v_store_return_value): Rewrite to match current interface.
14042 (d10v_extract_struct_value_address): Ditto.
14043 (d10v_extract_return_value): Ditto.
14044 (d10v_gdbarch_init): Set store_restore_value,
14045 extract_struct_value_address and extract_return_value.
14046
68b8d23e
JB
140472003-01-12 J. Brobecker <brobecker@gnat.com>
14048
14049 * hpread.c (set_namestring): New procedure replacing the
14050 SET_NAMESTRING macro.
14051 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14052 by calls to set_namestring.
14053
140542003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14055
14056 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14057 a compilation warning.
14058 (hpread_process_one_debug_symbol): Likewise.
14059
88d262ca
DC
140602003-01-10 David Carlton <carlton@math.stanford.edu>
14061
14062 * linespec.c (decode_line_1): Rename variable 's' to
14063 'file_symtab'.
14064 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14065 (decode_dollar): Ditto.
14066 (decode_variable): Ditto.
14067 (symbol_found): Ditto.
14068
86669319
MC
140692003-01-09 Michael Chastain <mec@shout.net>
14070
14071 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14072
616a9dc4
CV
140732003-01-07 Corinna Vinschen <vinschen@redhat.com>
14074
14075 * win32-nat.c (set_process_privilege): New function.
14076 (child_attach): Call set_process_privilege() to enable the
14077 SE_DEBUG_NAME user privilege if available in process token.
14078
3269bcfa
JB
140792003-01-10 J. Brobecker <brobecker@gnat.com>
14080
14081 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14082 compilation error in the previous revision.
14083
2b0ee454
DC
140842003-01-09 David Carlton <carlton@math.stanford.edu>
14085
14086 * linespec.c: Update copyright.
14087
b3ba1b44
DJ
140882003-01-09 Daniel Jacobowitz <drow@mvista.com>
14089
14090 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14091 than inferior_ptid.
14092 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14093
4ef3f3be
AC
140942003-01-09 Andrew Cagney <ac131313@redhat.com>
14095
479ab5a0
AC
14096 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14097 Update comments.
14098 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14099 (frame_saved_regs_zalloc): Update.
14100 (frame_saved_regs_register_unwind): Update.
14101 (create_new_frame): Update.
14102 (get_prev_frame): Update.
14103 (frame_extra_info_zalloc): Update.
14104 (deprecated_get_frame_saved_regs): Update.
14105 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14106 * cris-tdep.c: Update comment.
14107
bde58177
AC
14108 * somsolib.h: Fix function indentation.
14109 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14110 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14111 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14112 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14113 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14114
4ef3f3be
AC
14115 * infrun.c (follow_fork): Use ISO C definition.
14116 * expprint.c (print_subexp): Use xfree instead of free.
14117 * charset.c: Include "gdb_string.h" instead of <string.h>.
14118 (register_iconv_charsets): Use ISO C definition.
14119 (host_charset, target_charset): Ditto.
14120 * Makefile.in (charset.o): Update dependencies.
14121 (mi-cmd-env.o): Update dependencies.
14122
1c615f7a
AC
141232003-01-08 Andrew Cagney <cagney@redhat.com>
14124
14125 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14126 get_frame_base.
14127
c9a1dc08
AC
141282003-01-08 Andrew Cagney <ac131313@redhat.com>
14129
14130 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14131 build directories. Save edited gdb output in Mbuild.log. If a
14132 build fails, remove any final GDB executable.
14133
dbad9d94
AC
141342003-01-08 Andrew Cagney <ac131313@redhat.com>
14135
14136 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14137 replacing hex constants with function names and stripping leading
14138 file name directory prefixes.
14139
8d357cca
AC
141402003-01-08 Andrew Cagney <cagney@redhat.com>
14141
14142 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14143 get_frame_base.
14144
bca02a8a
DC
141452003-01-08 David Carlton <carlton@math.stanford.edu>
14146
14147 * linespec.c (decode_line_1): Move code into decode_variable.
14148 (decode_variable): New function.
14149
7f8ab3a0
AC
141502003-01-08 Andrew Cagney <ac131313@redhat.com>
14151
14152 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14153
7b5849cc
AC
141542003-01-08 Andrew Cagney <cagney@redhat.com>
14155
14156 * cris-tdep.c (cris_frame_init_saved_regs): Use
14157 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14158 saved_regs buffer.
14159 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14160 (sh64_nofp_frame_init_saved_regs): Ditto.
14161 (sh_fp_frame_init_saved_regs): Ditto.
14162 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14163 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14164 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14165 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14166
72a5efb3
DJ
141672003-01-08 Daniel Jacobowitz <drow@mvista.com>
14168
14169 * minsyms.c (lookup_minimal_symbol): Update comment.
14170 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14171 (lookup_minimal_symbol_solib_trampoline): Likewise.
14172
11c02a10
AC
141732003-01-08 Andrew Cagney <cagney@redhat.com>
14174
aab3ea25
AC
14175 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14176 frame_relative_level.
14177
da50a4b7
AC
14178 * alpha-tdep.c: Use get_frame_extra_info.
14179 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14180 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14181 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14182 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14183
11c02a10
AC
14184 * alpha-tdep.c: Use get_next_frame.
14185 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14186 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14187 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14188 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14189 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14190 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14191 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14192
1e2330ba
AC
141932003-01-07 Andrew Cagney <cagney@redhat.com>
14194
14195 * alpha-tdep.c: Use get_frame_base.
14196 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14197 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14198 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14199 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14200 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14201 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14202 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14203 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14204
2d75187b
AC
142052003-01-07 Andrew Cagney <cagney@redhat.com>
14206
14207 * frame.c (deprecated_get_frame_context): New function.
14208 (deprecated_set_frame_context): New function.
14209 * frame.h (deprecated_get_frame_context): Declare.
14210 (deprecated_set_frame_context): Declare.
14211 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14212 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14213
483d36b2
AC
142142003-01-07 Andrew Cagney <cagney@redhat.com>
14215
14216 * frame.c (deprecated_set_frame_next_hack): New function.
14217 (deprecated_set_frame_prev_hack): New function.
14218 * frame.h (deprecated_set_frame_next_hack): Declare.
14219 (deprecated_set_frame_prev_hack): Declare.
14220 * mcore-tdep.c (analyze_dummy_frame): Use
14221 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14222 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14223
14e91ac5
DC
142242003-01-07 David Carlton <carlton@math.stanford.edu>
14225
14226 * linespec.c (decode_line_1): Move code into decode_dollar.
14227 (decode_dollar): New function.
14228
b0c6b05c
AC
142292003-01-07 Andrew Cagney <cagney@redhat.com>
14230
14231 * arm-tdep.c (arm_init_extra_frame_info): Use
14232 deprecated_update_frame_base_hack.
14233 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14234 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14235 (fix_frame_pointer): Ditto.
14236 (mn10300_analyze_prologue): Ditto.
14237
a00a19e9
AC
142382003-01-07 Andrew Cagney <cagney@redhat.com>
14239
14240 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14241 extra_info using frame_extra_info_zalloc.
14242 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14243 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14244 (sh64_init_extra_frame_info): Ditto.
14245 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14246 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14247 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14248 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14249 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14250 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14251 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14252 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14253 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14254 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14255 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14256 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14257
14258 * mn10300-tdep.c (analyze_dummy_frame): Use
14259 deprecated_set_frame_extra_info_hack.
14260 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14261
1fb4c65b
JB
142622003-01-07 J. Brobecker <brobecker@gnat.com>
14263
14264 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14265 class is not scText. These do not define "real" procedures.
14266 (parse_partial_symbols): Likewise.
14267
9fe7d6bf
MS
142682003-01-06 Michael Snyder <msnyder@redhat.com>
14269
14270 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14271
f6c609c4
AC
142722003-01-06 Andrew Cagney <ac131313@redhat.com>
14273
14274 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14275 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14276 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14277 deprecated_frame_xmalloc_with_cleanup.
14278 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14279 deprecated_frame_xmalloc.
14280 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14281 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14282
d995ff4b
AC
142832003-01-06 Andrew Cagney <cagney@redhat.com>
14284
84dc46cb
AC
14285 * x86-64-linux-tdep.c: Include "osabi.h".
14286 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14287
d995ff4b
AC
14288 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14289
66140c26
AC
142902003-01-06 Andrew Cagney <cagney@redhat.com>
14291
14292 * MAINTAINERS (Target Instruction Set Architectures): Update
14293 arm-elf. Can be built with -Werror, has been multiarched.
14294
14295 * value.h (unpack_long): Make buffer parameter constant.
14296 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14297 * scm-lang.h (scm_parse): Ditto.
14298 * defs.h (extract_typed_address, extract_address): Ditto.
14299 (extract_long_unsigned_integer): Ditto.
14300 * inferior.h (unsigned_pointer_to_address): Ditto.
14301 (signed_pointer_to_address): Ditto.
14302 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14303 * gdbarch.h, gdbarch.c: Regenerate.
14304 * findvar.c (extract_long_unsigned_integer): Update.
14305 (extract_address): Update.
14306 (extract_typed_address): Update.
14307 (unsigned_pointer_to_address): Update.
14308 * values.c (unpack_long): Update.
14309 (unpack_double): Update.
14310 (unpack_pointer): Update.
14311 (unpack_field_as_long): Update.
14312 * d10v-tdep.c (d10v_pointer_to_address): Update.
14313 * avr-tdep.c (avr_pointer_to_address): Update.
14314 * scm-lang.c (scm_unpack): Update.
14315 * findvar.c (signed_pointer_to_address): Update.
14316
b089b3da
ML
143172003-01-06 Michal Ludvig <mludvig@suse.cz>
14318
8ffd9b1b 14319 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14320 since it is in i386-tdep.c.
14321
aff87235
JB
143222003-01-06 J. Brobecker <brobecker@gnat.com>
14323
14324 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14325 failure introduced in the previous change.
14326
34f5e845
MC
143272003-01-05 Michael Chastain <mec@shout.net>
14328
14329 * README: Remove references to deleted remote-*.c files:
14330 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14331 remote-nrom.c, remote-os9k.c, remote-udi.c.
14332
28bcfd30
MK
143332003-01-05 Mark Kettenis <kettenis@gnu.org>
14334
14335 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14336 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14337 i386_get_longjmp_target.
14338
15a5b3ee
AC
143392003-01-05 Andrew Cagney <ac131313@redhat.com>
14340
14341 * arm-tdep.c (prologue_cache): Change to a pointer.
14342 (_initialize_arm_tdep): Allocate prologue_cache.
14343 (check_prologue_cache): Update.
14344 (save_prologue_cache): Update.
14345 (arm_gdbarch_init): Update.
14346
c263362b
DJ
143472003-01-04 Daniel Jacobowitz <drow@mvista.com>
14348
14349 * stabsread.c (update_method_name_from_physname): Call complaint()
14350 instead of error.
14351
51603483
DJ
143522003-01-04 Daniel Jacobowitz <drow@mvista.com>
14353
14354 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14355 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14356 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14357
14358 * blockframe.c: Include "gdbcmd.h" and "command.h".
14359 (backtrace_below_main): New variable.
14360 (file_frame_chain_valid, func_frame_chain_valid)
14361 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14362 (generic_func_frame_chain_valid): Remove functions.
14363 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14364 (_initialize_blockframe): New function.
14365 * Makefile.in (blockframe.o): Update dependencies.
14366 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14367 comment. Call frame_chain_valid ().
14368 * frame.h: Remove old prototypes. Add prototype for
14369 frame_chain_valid and update comments to match.
14370 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14371 Remove old comment.
14372 * gdbarch.h: Regenerated.
14373 * gdbarch.c: Regenerated.
14374
14375 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14376 set_gdbarch_frame_chain_valid.
14377 * avr-tdep.c (avr_gdbarch_init): Likewise.
14378 * cris-tdep.c (cris_gdbarch_init): Likewise.
14379 * frv-tdep.c (frv_gdbarch_init): Likewise.
14380 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14381 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14382 (i386_nw_init_abi): Likewise.
14383 (i386_gdbarch_init): Likewise.
14384 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14386 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14387 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14388 * mips-tdep.c (mips_gdbarch_init): Likewise.
14389 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14390 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14391 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14392 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14393 * s390-tdep.c (s390_gdbarch_init): Likewise.
14394 * sh-tdep.c (sh_gdbarch_init): Likewise.
14395 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14396 * v850-tdep.c (v850_gdbarch_init): Likewise.
14397 * vax-tdep.c (vax_gdbarch_init): Likewise.
14398 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14399
14400 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14401 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14402 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14403 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14404 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14405 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14406 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14407 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14408
b00a8037
DJ
144092002-01-04 Daniel Jacobowitz <drow@mvista.com>
14410
14411 * Makefile.in (acconfig_h): Remove incorrect macro.
14412 (config_h): Define.
14413 (osabi.o): Update dependencies.
14414 * configure.tgt: Set gdb_osabi based on target triplet.
14415 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14416 * configure: Regenerated.
14417 * config.in: Regenerated.
14418 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14419 (GDB_OSABI_DEFAULT): Define if not already defined.
14420 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14421 (set_osabi_string): New variables.
14422 (gdbarch_register_osabi): Add new OS ABI to
14423 gdb_osabi_available_names.
14424 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14425 (set_osabi, show_osabi): New functions.
14426 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14427
4be87837
DJ
144282003-01-04 Daniel Jacobowitz <drow@mvista.com>
14429
14430 * arch-utils.c (gdbarch_info_init): Set osabi to
14431 GDB_OSABI_UNINITIALIZED.
14432 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14433 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14434 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14435 * gdbarch.c: Regenerated.
14436 * gdbarch.h: Regenerated.
14437 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14438 there's no BFD.
14439 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14440 * osabi.h (enum gdb_osabi): Move to defs.h.
14441 (gdbarch_init_osabi): Update prototype.
14442 * defs.h (enum gdb_osabi): Moved here.
14443 * Makefile.in: Update dependencies.
14444
14445 * alpha-tdep.h: Don't include "osabi.h".
14446 (struct gdbarch_tdep): Remove osabi member.
14447 * alpha-tdep.c: Include "osabi.h".
14448 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14449 iterate over arches. Update call to gdbarch_init_osabi.
14450 (alpha_dump_tdep): Don't dump osabi.
14451 * alpha-linux-tdep.c: Include "osabi.h".
14452 * alpha-osf1-tdep.c: Include "osabi.h".
14453 * alphafbsd-tdep.c: Include "osabi.h".
14454 * alphanbsd-tdep.c: Include "osabi.h".
14455
14456 * arm-tdep.h: Don't include "osabi.h".
14457 (struct gdbarch_tdep): Remove osabi member.
14458 * arm-tdep.c: Include "osabi.h".
14459 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14460 iterate over arches. Update call to gdbarch_init_osabi.
14461 (arm_dump_tdep): Don't dump osabi.
14462 * arm-linux-tdep.c: Include "osabi.h".
14463 * armnbsd-tdep.c: Include "osabi.h".
14464
14465 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14466 Update call to gdbarch_init_osabi.
14467
14468 * i386-tdep.h: Don't include "osabi.h".
14469 (struct gdbarch_tdep): Remove osabi member.
14470 * i386-tdep.c: Include "osabi.h".
14471 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14472 iterate over arches. Update call to gdbarch_init_osabi.
14473 (i386_dump_tdep): Don't dump osabi.
14474 * i386-linux-tdep.c: Include "osabi.h".
14475 * i386-sol2-tdep.c: Include "osabi.h".
14476 * i386bsd-tdep.c: Include "osabi.h".
14477 * i386gnu-tdep.c: Include "osabi.h".
14478 * i386ly-tdep.c: Include "osabi.h".
14479 * i386nbsd-tdep.c: Include "osabi.h".
14480 * i386obsd-tdep.c: Include "osabi.h".
14481
14482 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14483 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14484 check osabi when iterating over arches. Update call to
14485 gdbarch_init_osabi.
14486 (mips_dump_tdep): Don't dump osabi.
14487
14488 * ns32k-tdep.h: Don't include "osabi.h".
14489 (struct gdbarch_tdep): Remove.
14490 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14491 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14492 allocate tdep. Update call to gdbarch_init_osabi.
14493 (ns32k_dump_tdep): Remove.
14494 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14495 * ns32knbsd-tdep.c: Include "osabi.h".
14496
14497 * ppc-tdep.h: Don't include "osabi.h".
14498 (struct gdbarch_tdep): Remove osabi member.
14499 * rs6000-tdep.c: Include "osabi.h".
14500 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14501 osabi when iterating over arches. Update call to
14502 gdbarch_init_osabi.
14503 (rs6000_dump_tdep): Don't dump osabi.
14504 * ppc-linux-tdep.c: Include "osabi.h".
14505 * ppcnbsd-tdep.c: Include "osabi.h".
14506
14507 * sh-tdep.h: Don't include "osabi.h".
14508 (struct gdbarch_tdep): Remove osabi member.
14509 * sh-tdep.c: Include "osabi.h".
14510 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14511 iterate over arches. Update call to gdbarch_init_osabi.
14512 (sh_dump_tdep): Don't dump osabi.
14513 * shnbsd-tdep.c: Include "osabi.h".
14514
14515 * sparc-tdep.c: Include "osabi.h".
14516 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14517 iterate over arches. Update call to gdbarch_init_osabi.
14518 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14519 tdep structure.
14520
14521 * vax-tdep.h: Don't include "osabi.h".
14522 (struct gdbarch_tdep): Remove.
14523 * vax-tdep.c: Include "osabi.h".
14524 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14525 iterate over arches. Don't allocate tdep. Update call
14526 to gdbarch_init_osabi.
14527 (vax_dump_tdep): Remove.
14528 (_initialize_vax_tdep): Update call to gdbarch_register.
14529
a881cf8e
DJ
145302003-01-04 Daniel Jacobowitz <drow@mvista.com>
14531
14532 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14533 entirely.
14534 (breakpoint_re_set_one): Don't fetch the value for a disabled
14535 watchpoint.
14536
1e698235
DJ
145372003-01-04 Daniel Jacobowitz <drow@mvista.com>
14538
14539 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14540 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14541 (COERCE_FLOAT_TO_DOUBLE): Remove.
14542 * gdbarch.c: Regenerate.
14543 * gdbarch.h: Regenerate.
14544 * Makefile.in: Remove value_h from gdbarch_h.
14545 * valops.c (coerce_float_to_double): New variable.
14546 (default_coerce_float_to_double): Remove.
14547 (standard_coerce_float_to_double): Remove.
14548 (value_arg_coerce): Use coerce_float_to_double.
14549 (_initialize_valops): Add "set coerce-float-to-double".
14550 * value.h (default_coerce_float_to_double): Remove prototype.
14551 (standard_coerce_float_to_double): Remove prototype.
14552
14553 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14554 prototyped.
14555 * mdebugread.c (parse_symbol): Likewise.
14556 * stabsread.c (define_symbol): Mark all functions as prototyped.
14557
14558 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14559 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14560 set_gdbarch_coerce_float_to_double.
14561 * arm-tdep.c (arm_gdbarch_init): Likewise.
14562 * frv-tdep.c (frv_gdbarch_init): Likewise.
14563 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14564 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14565 * mips-tdep.c (mips_gdbarch_init): Likewise.
14566 (mips_coerce_float_to_double): Remove.
14567 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14568 (rs6000_coerce_float_to_double): Remove.
14569 * s390-tdep.c (s390_gdbarch_init): Likewise.
14570 * sh-tdep.c (sh_gdbarch_init): Likewise.
14571 (sh_coerce_float_to_double): Remove.
14572 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14573 (sparc_coerce_float_to_double): Remove.
14574 * v850-tdep.c (v850_gdbarch_init): Likewise.
14575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14576 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14577 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14578 (hppa_coerce_float_to_double): Remove prototype.
14579 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14580
f436a26a
DJ
145812003-01-04 Daniel Jacobowitz <drow@mvista.com>
14582
14583 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14584
248f8055
DJ
145852003-01-04 Daniel Jacobowitz <drow@mvista.com>
14586
14587 Suggested by Stewart Brown <sb24@avaya.com>:
14588 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14589 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14590 (c_type_print_varspec_suffix): Likewise.
14591
72cfdc76
MK
145922003-01-04 Mark Kettenis <kettenis@gnu.org>
14593
bfd260bb
MK
14594 * configure.in: Don't set and AC_SUBST SUBDIRS.
14595 * configure: Regenerated.
14596
72cfdc76
MK
14597 * configure.in: Remove code dealing with shared libraries.
14598 * Makefile.in: Remove HLDFLAGS and HLDENV.
14599 * configure: Regenerated.
14600
c8b8a898
AC
146012003-01-04 Andrew Cagney <ac131313@redhat.com>
14602
14603 * frame.c (deprecated_frame_xmalloc): New function.
14604 (deprecated_set_frame_saved_regs_hack): New function.
14605 (deprecated_set_frame_extra_info_hack): New function.
14606 * frame.h (deprecated_frame_xmalloc): Declare.
14607 (deprecated_set_frame_saved_regs_hack): Declare.
14608 (deprecated_set_frame_extra_info_hack): Declare.
14609
14abd0fb
MK
146102003-01-04 Mark Kettenis <kettenis@gnu.org>
14611
8ee53726
MK
14612 * configure.in: Move code that provides the --enable-gdbtk option
14613 right after the code that handles the --enable-tui option, and
14614 polish it somewhat.
14615 * configure: Regenerated.
14616
14abd0fb
MK
14617 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14618 AC_CHECK_FUNCS and remove the old check for pread64.
14619 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14620 * acconfig.h (_GNU_SOURCE): Add.
14621 (HAVE_PREAD64): Remove.
14622 * configure, aclocal.m4, config.in: Regenerated.
14623
b2fb4676
AC
146242003-01-03 Andrew Cagney <ac131313@redhat.com>
14625
14626 * alpha-tdep.c: Use get_frame_saved_regs.
14627 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14628 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14629 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14630 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14631 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14632
8dcde887
MK
146332003-01-03 Mark Kettenis <kettenis@gnu.org>
14634
14635 * configure.in: Remove all use of the SUBDIRS variable; add
14636 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14637 code providing the --enable-multi-ice option, and move it right in
14638 front of the code that checks whether gdbserver is supported.
14639 Polish that too.
14640 * configure: Regenerated.
14641 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14642 @SUBDIRS@.
14643
8ccd593b
AC
146442003-01-03 Andrew Cagney <cagney@redhat.com>
14645
14646 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14647 * avr-tdep.c, cris-tdep.c: Ditto.
14648 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14649 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14650
91151a06
MK
146512003-01-03 Mark Kettenis <kettenis@gnu.org>
14652
14653 * configure.in: Remove --enable-netrom option.
14654 * configure: Regenerated.
14655
8fe84d01
MK
146562003-01-03 Mark Kettenis <kettenis@gnu.org>
14657
14658 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14659 declaration for `struct re_pattern_buffer' instead.
14660 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14661
f0394be6
JB
146622003-01-03 J. Brobecker <brobecker@gnat.com>
14663
14664 * mdebugread.c (parse_symbol): Count until the stEnd matching
14665 the structure name.
14666
27e9bf90
MK
146672003-01-02 Mark Kettenis <kettenis@gnu.org>
14668
93d331ba
MK
14669 * configure.in: Remove --with-cpu option.
14670 subscripts. Remove evil changequotes here.
14671 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14672 * config.in, configure: Regenerated.
8ffd9b1b 14673
27e9bf90
MK
14674 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14675 * configure.in: Cleanup section that sources GDB and BFD configure
14676 subscripts. Remove evil changequotes here.
14677 * config.in, configure: Regenerated.
14678
50abf9e5
AC
146792003-01-02 Andrew Cagney <ac131313@redhat.com>
14680
14681 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14682 frame accessor methods.
14683 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14684 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14685 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14686 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14687 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14688 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14689 * z8k-tdep.c: Ditto.
8ffd9b1b 14690
287c1a40
MK
146912003-01-02 Mark Kettenis <kettenis@gnu.org>
14692
f5dbc56d
MK
14693 * configure.in: Remove UI_OUT configuration code.
14694 * ada-lang.c: Update assuming UI_OUT is always true.
14695 * Makefile.in (UIOUT_CFLAGS): Remove.
14696 * configure: Regenerated.
14697 * TODO: Remove blurb about elimination of -DUI_OUT.
14698
627af7ea
MK
14699 * configure.in: Move code that provides the --enable-gdbcli,
14700 --enable-gdbmi options right before the code that handles the
14701 --enable-tui option. Polish a bit.
14702 * configure: Regenerated.
14703
06825bd1
MK
14704 * configure.in: Rewrite check for GNU regex and the
14705 --without-included regex option, and move it into the "Checks for
14706 library functions" section. This makes us use the system regex
14707 again by default on systems with version 2 of the GNU C library.
14708 This was apparently broken.
14709 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14710 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14711 * config.in, configure: Regenerated.
14712
287c1a40
MK
14713 * configure.in: Move code that provides the --enable-tui option
14714 before the "Checks for libraries" section. Polish the code
14715 somewhat and set need_curses to yes if we build the TUI. Rewrite
14716 code that looks for a library providing termcap functionality to
14717 match more closely what's done in the Readline library, and move
14718 it into to the "Checks for libraries" section.
14719 * configure: Regenerated.
14720 * Makefile.in (TERMCAP): Remove variable.
14721 * config/i386/go32.mh (TERMCAP): Remove variable.
14722
684e56bf
AC
147232003-01-02 Andrew Cagney <ac131313@redhat.com>
14724
14725 * MAINTAINERS: Mention gdb_mbuild.sh.
14726 * gdb_mbuild.sh: Rewrite.
14727
e1ea1d75
MK
147282003-01-02 Mark Kettenis <kettenis@gnu.org>
14729
14730 * configure.in: Fix typo in last change.
14731 * config.in, configure: Regenerated.
14732
1b831c93
AC
147332003-01-02 Andrew Cagney <ac131313@redhat.com>
14734
14735 * valarith.c (value_binop): Delete obsolete code and comments.
14736 * configure.host: Ditto.
14737 * buildsym.h (make_blockvector): Ditto.
14738 * buildsym.c (make_blockvector): Ditto.
14739 * defs.h (enum language): Ditto.
14740 (chill_demangle): Ditto.
14741 * elfread.c (elf_symtab_read): Ditto.
14742 * dwarfread.c (CHILL_PRODUCER): Ditto.
14743 (set_cu_language): Ditto.
14744 (handle_producer): Ditto.
14745 * expprint.c (print_subexp): Ditto.
14746 * gdbtypes.c (chill_varying_type): Ditto.
14747 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14748 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14749 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14750 (chill_varying_type): Ditto.
14751 * language.h (_LANG_chill): Ditto.
14752 * language.c (binop_result_type, integral_type): Ditto.
14753 (character_type, string_type, structured_type): Ditto.
14754 (lang_bool_type, binop_type_check): Ditto.
14755 * stabsread.h (os9k_stabs): Ditto.
14756 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14757 (define_symbol, read_type, read_struct_fields): Ditto.
14758 (read_array_type, read_enum_type, read_huge_number): Ditto.
14759 (read_range_type, start_stabs): Ditto.
14760 * symfile.c (init_filename_language_table): Ditto.
14761 (add_psymbol_with_dem_name_to_list): Ditto.
14762 * symtab.c (symbol_init_language_specific): Ditto.
14763 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14764 * symtab.h (struct general_symbol_info): Ditto.
14765 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14766 * typeprint.c (typedef_print): Ditto.
14767 * utils.c (fprintf_symbol_filtered): Ditto.
14768 * valops.c (value_cast, search_struct_field, value_slice): Delete
14769 obsolete code.
14770 (varying_to_slice): Delete function.
14771 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14772 (varying_to_slice): Delete declaration.
14773 * MAINTAINERS: Update.
14774
8bb2c122
MK
147752003-01-02 Mark Kettenis <kettenis@gnu.org>
14776
97bf5e38
MK
14777 * configure.in: Reorganize "Checks for library functions section"
14778 a bit. Remove check for `btowc' and `isascii' functions.
14779 * configure: Regenerated.
14780
5ee754fc
MK
14781 * acconfig.h (_MSE_INT_H): Remove.
14782 * configure.in: Create "Checks for header files" section, and move
14783 appropriate tests there. Don't check for objlist.h, wchar.h,
14784 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14785 misdetection fix. Also add "Checks for types", "Checks for
14786 compiler characteristics" and "Checks for library functions"
14787 sections.
14788 * config.in, configure: Regenerated.
14789
8bb2c122
MK
14790 * configure.in: Create "Checks for programs" section, and move
14791 appropriate tests there.
14792
9a156167
MK
147932003-01-01 Mark Kettenis <kettenis@gnu.org>
14794
14795 * configure.in: Create "Checks for libraries" section, and move
14796 appropriate tests there. Cleanup check for wctype in libw. Use
14797 AC_SEARCH_LIBS to see whether we need libsocket.
14798 * configure: Regenerated.
14799
a80e2bcb 14800For older changes see ChangeLog-2002
c906108c
SS
14801\f
14802Local Variables:
14803mode: change-log
14804left-margin: 8
14805fill-column: 74
14806version-control: never
14807End:
This page took 1.133065 seconds and 4 git commands to generate.