2003-11-22 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
29dfb2ac
AC
12003-11-22 Andrew Cagney <cagney@redhat.com>
2
10a08821
AC
3 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
4 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
5 mips_regsize.
6 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
7 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
8 * config/mips/tm-irix5.h: Update copyright.
9 (SIGFRAME_REG_SIZE): Delete macro.
10
00d33403
AC
11 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
12 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
13 declaration.
14 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
15 * infcall.c (call_function_by_hand): Delete #ifdef
16 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
17 * infcmd.c (print_return_value): Ditto.
18
74da7425
AC
19 * mips-tdep.c (skip_prologue_using_sal): New function.
20 (mips32_skip_prologue, mips16_skip_prologue): Use
21 skip_prologue_using_sal to get an upper bound on the search.
22
369864a4
AC
23 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
24 #if 0'ed macro.
25 * infrun.c (step_into_function): Delete #ifdef
26 PROLOGUE_FIRSTLINE_OVERLAP code.
27 * symtab.c (find_function_start_sal): Ditto.
28
a5a12285
AC
29 * remote-rdp.c: Update copyright.
30 (rdp_init): #if 0 references to "target_byte_order".
31
29dfb2ac
AC
32 * mips-tdep.c (mips_o32_store_return_value): Delete function.
33 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
34 (mips_o32_extract_return_value): Delete function.
35 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
36 (mips_n32n64_extract_return_value): Delete function.
37 (mips_n32n64_store_return_value): Delete function.
38 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
39 instead of "store_return_value", "extract_return_value", and
40 "use_struct_convention".
41 (mips_n32n64_use_struct_convention): Delete function.
42
3a3da38c
KB
432003-11-21 Kevin Buettner <kevinb@redhat.com>
44
45 * frv-tdep.c (frv_frame_this_id): Eliminate call to
46 inside_entry_func().
47
c5e656c1
MK
482003-11-20 Mark Kettenis <kettenis@gnu.org>
49
50 * i386-tdep.c (i386_extract_return_value,
51 i386_store_return_value): Add gdbarch argument. Use it instead of
52 determining it from REGCACHE. Remove recursive call for
53 structures with a single member.
54 (i386_use_struct_convention): Remove.
55 (i386_reg_struct_return_p): New function.
56 (i386_return_value): New function.
57 (i386_gdbarch_init): Set return_value, don't set
58 extract_return_value, store_return_value and
59 use_struct_convention.
60 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
61
515cc92e
JB
622003-11-20 Jim Blandy <jimb@redhat.com>
63
64 * osabi.c (_initialize_gdb_osabi): Don't return before registering
65 the 'set osabi' and 'show osabi' commands.
66
3f1d7f16
MK
672003-11-19 Mark Kettenis <kettenis@gnu.org>
68
69 * frame.c (get_prev_frame): Use result from
70 get_frame_address_in_block instead of get_frame_pc as argument to
71 inside_main_func. Fixes PR backtrace/1435.
72
667e784f
AC
732003-11-19 Andrew Cagney <cagney@redhat.com>
74
75 * stack.c (return_command): Handle "void", "legacy" and "unknown
76 location" return values separatly.
77 * values.c (using_struct_return): Return 0 for a "void" return
78 type. Mention "register_value_being_returned".
79 (register_value_being_returned): Mention "using_struct_return".
80
4cecd739
DJ
812003-11-19 Daniel Jacobowitz <drow@mvista.com>
82
83 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
84 (frame_base_offset): Delete.
85 (read_func_scope): Delete call to decode_locdesc.
86 (decode_locdesc): Update comments. Don't set the removed variables.
87 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
88 DW_OP_fbreg support.
89
6b992462
DJ
902003-11-18 Daniel Jacobowitz <drow@mvista.com>
91
92 * dwarf2read.c (optimized_out, islocal): Remove.
93 (decode_locdesc): Update comments. Don't set optimized_out
94 or islocal.
95
968d1cb4
JJ
962003-11-17 Jeff Johnston <jjohnstn@redhat.com>
97 David Mosberger <davidm@hpl.hp.com>
98
99 * ia64-tdep.c: Include elf.h.
100 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
101 libunwind-ia64.h.
102 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
103 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
104 (ia64_is_fpreg, ia64_access_reg): Ditto.
105 (ia64_access_fpreg, ia64_access_mem): Ditto.
106 (get_kernel_table): Ditto.
107 (ia64_find_unwind_table): Ditto.
108 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
109 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
110 (ia64_libunwind_frame_prev_register): Ditto.
111 (ia64_libunwind_frame_sniffer): Ditto.
112 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
113 sniffer. Register libunwind functions needed by generic
114 libunwind frame code using libunwind_frame_set_descr().
115
d29caefc
DJ
1162003-11-16 Daniel Jacobowitz <drow@mvista.com>
117
118 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
119 bp_shlib_disabled breakpoint if there is a shared library mapped
120 at its expected address.
121
691c0433
AC
1222003-11-16 Andrew Cagney <cagney@redhat.com>
123
96cb1c2f
AC
124 * configure.tgt: Delete mips*tx39*-elf*.
125 * config/mips/tm-tx39.h: Delete file.
126 * config/mips/tx39.mt: Delete file.
127 * config/mips/tx39.mt: Delete file.
128
691c0433
AC
129 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
130 * remote-mips.c (common_open): Instead of
131 "mips_read_register_type" and "mips_set_processor_type_command"
132 call "deprecated_mips_set_processor_regs_hack".
133 * config/mips/tm-mips.h (mips_read_processor_type): Delete
134 declaration.
135 (mips_set_processor_type_command): Delete declaration.
136 * mips-tdep.c (mips_gdbarch_init): Update comment.
137 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
138 (mips_set_processor_type): Delete function.
139 (NUM_MIPS_PROCESSOR_REGS): Define.
140 (mips_show_processor_type_command): Delete function.
141 (mips_set_processor_type_command): Delete function.
142 (tmp_mips_processor_type): Delete.
143 (mips_processor_type): Delete.
144 (mips_processor_type_table): Delete.
145 (mips_r3051_reg_names): Delete.
146 (mips_r3081_reg_names): Delete.
147 (mips_lsi33k_reg_names): Delete.
148 (mips_processor_reg_names): Delete.
149 (mips_read_processor_type): Delete function.
150 (deprecated_mips_set_processor_regs_hack): New function.
151 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
152 (mips_register_name): Get the processor names from the tdep.
153 (mips_tx39_reg_names): New array.
154 (mips_generic_reg_names): Wire to a standard set of names.
155 (mips_gdbarch_init): Set "mips_processor_reg_names".
156 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
157 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
158 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
159
56cea623
AC
1602003-11-16 Andrew Cagney <cagney@redhat.com>
161
162 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
163 (mips_fpa0_regnum, mips_regnum): New function.
164 (mips_gdbarch_init): Fill in the "regnum" fields.
165 * mips-tdep.h (struct mips_regnum): Define.
166 (mips_regnum): Declare.
167 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
168 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
169 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
170 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
171 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
172 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
173 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
174 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
175 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
176 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
177 * remote-mips.c: Include "mips-tdep.h". Update.
178 * mipsnbsd-tdep.c: Update.
179 * mipsv4-nat.c: Update.
180 * mips-tdep.c: Update.
181 * mips-nat.c: Update.
182 * mips-linux-tdep.c: Update.
183 * mips-linux-nat.c: Update.
184 * irix5-nat.c: Update.
185 * dve3900-rom.c: Include "mips-tdep.h". Update.
186 (ignore_packet): Supress GCC warning.
187 * config/mips/nm-riscos.h: Update.
188
719ec221
AC
1892003-11-16 Andrew Cagney <cagney@redhat.com>
190
191 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
192 register_size.
193 (mips_register_raw_size): Delete function.
194 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
195 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
196 Check and set "mips64_transfers_32bit_regs_p".
197 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
198 (mips_register_convertible): Check the architecture's
199 "mips64_transfers_32bit_regs_p".
200 (set_mips64_transfers_32bit_regs): New function.
201 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
202 "set remote-mips64-transfers-32bit-regs" command. Specify
203 set_mips64_transfers_32bit_regs as the set function.
56cea623 204 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 205
20187ed5
MK
2062003-11-16 Mark Kettenis <kettenis@gnu.org>
207
208 * i386-tdep.h (i386_supply_gregset): Provide prototype.
209 * i386-tdep.c (i386_supply_gregset): Make public.
210
6771c427
AC
2112003-11-16 Andrew Cagney <cagney@redhat.com>
212
213 * mips-tdep.c (mips_register_byte): Delete function.
214 (mips_gdbarch_init): Do not set "deprecated_register_byte".
215 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
216 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
217 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
218
c8048956
MK
2192003-11-16 Mark Kettenis <kettenis@gnu.org>
220
221 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
222
cc8a868a
AC
2232003-11-16 Andrew Cagney <cagney@redhat.com>
224
225 * config/mips/linux64.mt: Delete file.
226 * config/mips/tm-linux64.h: Delete file.
227 * config/mips/tm-mips64.h: Delete file.
228 * config/mips/embed64.mt: Delete file.
229 * config/djgpp/fnchange.lst: Update.
230 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
231 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
232 * config/mips/tm-irix6.h: Update copyright. Include
233 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
234 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
235 "OP_LDGPR".
236
5ef80fb0
AC
2372003-11-15 Andrew Cagney <cagney@redhat.com>
238
239 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
240 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
241 n32 registers 64 bit.
242 (mips_register_raw_size, mips_register_byte): For pseudo
243 registers, use the register's pseudo size and not the
244 corresponding raw register's size.
245 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
246 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
247 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
248 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
249
4246e332
AC
2502003-11-15 Andrew Cagney <cagney@redhat.com>
251
8fa9cfa1
AC
252 * mips-tdep.c (struct gdbarch_tdep): Delete member
253 gdb_target_is_mips64.
254 (GDB_TARGET_IS_MIPS64): Delete macro.
255 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
256 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
257 (mips_addr_bits_remove): Simplify.
258
c73e8f27
AC
259 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
260 register_size.
261
4246e332
AC
262 Replace MIPS_REGSIZE with mips_regsize.
263 * mips-tdep.c (mips_regsize): New function.
264 * mips-tdep.h (mips_regsize): Declare.
265 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
266 (SIZEOF_STRUCT_REG): Update.
267 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
268 (mipsnbsd_fill_reg): Update.
269 (mipsnbsd_supply_fpreg): Update.
270 (mipsnbsd_fill_fpreg): Update.
271 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
272 * mips-tdep.c (mips_register_raw_size): Update.
273 (mips_register_type): Update.
274 (SIGFRAME_BASE): Update.
275 (SIGFRAME_PC_OFF): Update.
276 (SIGFRAME_REGSAVE_OFF): Update.
277 (SIGFRAME_FPREGSAVE_OFF): Update.
278 (SIGFRAME_REG_SIZE): Update.
279 (mips32_heuristic_proc_desc): Update.
280 (print_gp_register_row): Update.
281 (mips_dump_tdep): Do not print MIPS_REGSIZE.
282 * irix5-nat.c (supply_gregset): Update.
283 (fetch_core_registers): Update.
284 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
285 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
286 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
287 (MIPS_REGISTER_BYTE): Update.
288 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
289
5e044b1e
AC
2902003-11-15 Andrew Cagney <cagney@redhat.com>
291
292 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
293 USE_REGISTER_NOT_ARG.
294 * stabsread.c (define_symbol): Update.
295
3a16a68c
AC
2962003-11-15 Andrew Cagney <cagney@redhat.com>
297
298 * bcache.h (deprecated_bcache): Declare.
299 (bcache): Make returned buffer constant.
300 * bcache.c (deprecated_bcache): New function.
301 (bcache_data): New function.
302 (bcache): Call bcache data.
303 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
304 (add_psymbol_with_dem_name_to_list): Ditto.
305
bb41a796
MK
3062003-11-15 Mark Kettenis <kettenis@gnu.org>
307
308 * glibc-tdep.h (struct gdbarch): Declare opaque.
309 (glibc_skip_solib_resolver): Adjust prototype.
310 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
311 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
312 (arm_linux_init_abi): Set skip_solib_resolver.
313 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
314 (i386_linux_init_abi): Set skip_solib_resolver.
315 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
316 (arm_linux_skip_solib_resolver): Remove prototype.
317 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
318 (i386_linux_skip_solib_resolver): Remove prototype.
319
4c8c40e6
MK
3202003-11-14 Mark Kettenis <kettenis@gnu.org>
321
322 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
323 function.
324 * gdbarch.c, gdbarch.h: Regenerate.
325 * infrun.c (handle_inferior_event): Call
326 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
327 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
328 definition.
329 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
330 prototype.
331
0e5d83e3
JJ
3322003-11-14 Jeff Johnston <jjohnstn@redhat.com>
333
334 * libunwind-frame.c: New file.
335 * libunwind-frame.h: New file.
336 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
337 * configure.in: Add --with-libunwind option support. Define
338 HAVE_LIBUNWIND if libunwind support selected / defaulted.
339 Also check for libunwind.h and libunwind-ia64.h headers.
340 * configure: Regenerated.
341 * Makefile.in: Add support for libunwind-frame.o.
342 * config.in: Regenerated.
343
287a334e
JJ
3442003-11-14 Jeff Johnston <jjohnstn@redhat.com>
345
346 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
347 set up the ia64 linux native target method for getting the kernel
348 unwind table.
349 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
350 * inftarg.c (child_xfer_partial): Enable section of code to
351 handle TARGET_OBJECT_UNWIND_TABLE.
352 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
353
140be7b8
ILT
3542003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
355
356 * config/arm/nbsd.mt (TM_FILE): Define.
357 * config/arm/tm-nbsd.h: New file.
358
0a90bcdd
AC
3592003-11-14 Andrew Cagney <cagney@redhat.com>
360
361 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
362 * ppc-sysv-tdep.c: Include "objfiles.h".
363 (ppc64_sysv_abi_push_dummy_call): Provide the
364 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
365
366 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
367 "name_of_malloc" to ".malloc".
368
087f1027
MK
3692003-11-13 Mark Kettenis <kettenis@gnu.org>
370
371 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
372
3882f37a
DC
3732003-11-13 David Carlton <carlton@kealia.com>
374
375 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
376
a8cf2722
AC
3772003-11-13 Andrew Cagney <cagney@redhat.com>
378
379 * arch-utils.h (selected_architecture_name): Declare.
380 (selected_byte_order): Declare.
381 * arch-utils.c (selected_byte_order): New function.
382 (selected_architecture_name): New function.
383 (target_architecture_auto): Make static.
384 (set_architecture_string): Make static.
385 (target_byte_order): Make static.
386 (target_byte_order_auto): Make static.
387 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
388 non-multi-arch definition.
389 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
390 (target_byte_order, target_architecture): Delete declaration.
391 (target_byte_order_auto, target_architecture_auto): Ditto.
392 * gdbarch.h: Re-generate.
393 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
394 "selected_byte_order".
395
475b6ddd
AC
3962003-11-13 Andrew Cagney <cagney@redhat.com>
397
398 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
399
a22286a9
JB
4002003-11-13 Jim Blandy <jimb@redhat.com>
401
402 * cp-namespace.c: Doc fix.
403
7bb11558
MS
4042003-11-12 Michael Snyder <msnyder@redhat.com>
405
39add00a
MS
406 * sh64_tdep.c: Regularize some names.
407 (sh_sh64_register_name): Rename to sh64_register_name.
408 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
409 (sh_sh64_register_byte): Rename to sh64_register_byte.
410 (sh_sh64_build_float_register_type):
411 Rename to sh64_build_float_register_type.
412 (sh_sh64_register_convert_to_virtual):
413 Rename to sh64_register_convert_to_virtual.
414 (sh_sh64_register_convert_to_raw):
415 Rename to sh64_register_convert_to_raw.
416
2a314ed5
MS
417 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
418 sh64_media_reg_base_num, sh64_compact_reg_base_num,
419 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
420 sh64_extract_return_value, sh64_show_media_regs,
421 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
422 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
423 sh64_pseudo_register_read, sh64_pseudo_register_write,
424 sh64_do_pseudo_register, sh_compact_print_registers_info):
425 Delete unused variable 'tdep'.
426
7bb11558
MS
427 * sh64-tdep.c: Coding standard and spelling comment fixes.
428 (sh64_extract_return_value): Replace deprecated_store_floating
429 with store_typed_floating.
430 (sh_sh64_register_convert_to_raw): Replace
431 deprecated_store_floating with store_typed_floating.
432 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
433 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
434 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
435 sh64_extract_struct_value_address, sh64_pop_frame,
436 sh64_extract_return_value, sh64_store_return_value,
437 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
438 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
439 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
440 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
441 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
442 deprecated_register_virtual_type, deprecated_register_raw_size,
443 deprecated_max_register_raw_size, or
444 deprecated_max_register_virtual_size. Instead, just set
445 gdbarch_register_type.
39add00a
MS
446 (sh_sh64_register_raw_size): Delete.
447 (sh_sh64_register_virtual_size): Delete.
7bb11558 448
e7c27a73
DJ
4492003-11-12 Daniel Jacobowitz <drow@mvista.com>
450
451 * dwarf2read.c (struct dwarf2_cu): New type.
452
453 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
454 dwarf2_cu structure to pass down.
455
456 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
457 (add_partial_enumeration, locate_pdi_sibling, process_die)
458 (read_file_scope, read_func_scope)
459 (read_lexical_block_scope, dwarf2_get_pc_bounds)
460 (dwarf2_add_field, dwarf2_attach_fields_to_type)
461 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
462 (read_structure_scope, read_enumeration, read_array_type)
463 (read_common_block, read_namespace, read_tag_pointer_type)
464 (read_tag_ptr_to_member_type, read_tag_reference_type)
465 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
466 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
467 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
468 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
469 (read_full_die. read_attribute_value, read_attribute)
470 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
471 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
472 (die_containing_type, type_at_offset, tag_type_to_type)
473 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
474 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
475
1640b821
DJ
4762003-11-12 Daniel Jacobowitz <drow@mvista.com>
477
478 PR breakpoints/1450
479 * breakpoint.c (insert_bp_location): Fix a logic error by returning
480 0 after a catchpoint fails.
481
d7891507
MC
4822003-11-11 Michael Chastain <mec.gnu@mindspring.com>
483
484 * mips-tdep.c (msymbol_size): Delete.
485
f594e5e9
MC
4862003-11-07 Michael Chastain <mec@shout.net>
487
488 * symtab.h (struct minimal_symbol): Add size.
489 * dbxread.c: Use it.
490 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
491 Rename to record_minimal_symbol.
492 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
493 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
494 (install_minimal_symbols): Ditto.
495 * objfiles.c (terminate_minimal_symbol_table): Ditto.
496 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
497 * m68hc11-tdep.c: Ditto.
498 * mips-tdep.c: Ditto.
499 * sh64-tdep.c: Ditto.
500
68e39e73
MC
5012003-11-10 Michael Chastain <mec.gnu@mindspring.com>
502
503 * MAINTAINERS: Change my e-mail address.
504
b60eb90d
AC
5052003-11-10 Andrew Cagney <cagney@redhat.com>
506
963e2bb7
AC
507 * gdbarch.sh (return_value): Replace "inval" and "outval" with
508 "readbuf" and "writebuf".
509 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
510 * d10v-tdep.c (d10v_return_value): Ditto.
511 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
512 (ppc_sysv_abi_broken_return_value): Ditto.
513 (ppc64_sysv_abi_return_value): Ditto.
514 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
515 (ppc_sysv_abi_return_value): Ditto.
516 (ppc_sysv_abi_broken_return_value): Ditto.
517 (ppc64_sysv_abi_return_value): Ditto.
518 * values.c (register_value_being_returned): Update call.
519 * stack.c (return_command): Update call.
520 * gdbarch.h, gdbarch.c: Re-generate.
521
8aa91c1e
AC
522 * target.h (struct target_ops): Order xfer buffer parameters "read
523 write" not "write read".
524 * bfd-target.c (target_bfd_xfer_partial): Update.
525 * remote.c (remote_xfer_partial): Update.
526 * inftarg.c (child_xfer_partial): Update.
527 * target.c (default_xfer_partial): Update.
528 (target_read_partial, target_write_partial): Update.
529 (debug_to_xfer_partial): Update.
530
100bcc3f
AC
531 * arch-utils.h, arch-utils.c: Fix typo in comment.
532
b60eb90d
AC
533 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
534 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
535 (set_gdbarch_from_file): Call
536 "deprecated_current_gdbarch_select_hack".
b60eb90d 537
bf922ad9
AC
5382003-11-09 Andrew Cagney <cagney@redhat.com>
539
ebdba546
AC
540 * arch-utils.c (gdbarch_update_p): New function.
541 * gdbarch.sh (gdbarch_update_p): Delete function.
542 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 543 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
544 * gdbarch.c: Re-generate.
545
7de2341d
AC
546 * gdbarch.sh (clear_gdbarch_swap): Delete function.
547 (swapout_gdbarch_swap): Delete function.
548 (swapin_gdbarch_swap): Delete function.
549 (init_gdbarch_swap): Delete function.
550 (initialize_non_multiarch): Delete function.
551 (current_gdbarch_swap_in_hack): New function.
552 (current_gdbarch_swap_out_hack): New function.
553 (current_gdbarch_swap_init_hack): New function.
554 * gdbarch.c: Re-generate.
555
db446970
AC
556 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
557 parameter to "current_gdbarch". Add comment explaining why.
558 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
559 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
560 * gdbarch.c: Re-generate.
561
341e3d11
AC
562 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
563 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
564 * config/s390/xm-linux.h: Delete file.
565 * config/m88k/xm-delta88v4.h: Delete stray.
566
bf922ad9
AC
567 * Makefile.in (arch-utils.o): Update dependencies.
568 * arch-utils.c: Include "osabi.h".
569 (gdbarch_info_fill): New function.
570 * arch-utils.h (gdbarch_info_fill): Declare.
571 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
572 * gdbarch.c: Re-generate.
573
a3640c75
MK
5742003-11-09 Mark Kettenis <kettenis@gnu.org>
575 David S. Miller <davem@redhat.com>
576
577 * glibc-tdep.c, glibc-tdep.h: New files.
578 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
579 * config/i386/linux.mt (TDEPFILES): Likewise.
580 * i386-linux-tdep.c (glibc-tdep.h): Include.
581 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
582 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
583 * arm-linux-tdep.c (glibc-tdep.h): Include.
584 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
585 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
586 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
587 (glibc_tdep_h): Define.
588 (glibc-tdep.o): Add dependencies.
589 (arm-linux-tdep.o): Update dependencies.
590 (i386-linux-tdep.o): Likewise.
591
e60e0ab2
AC
5922003-11-09 Andrew Cagney <cagney@redhat.com>
593
594 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
595 * config/mips/nm-irix6.h: Delete file.
596 * config/mips/nm-linux.h: Update copyright.
597 (MIPS_GNULINUX_TARGET): Delete macro.
598 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
599 * config/mips/xm-irix6.h: Delete file.
600 * config/mips/linux.mh (XM_FILE): Delete definition.
601 * config/mips/xm-linux.h: Delete file.
602
181555e9
AC
6032003-11-09 Andrew Cagney <cagney@redhat.com>
604
605 * d10v-tdep.c (d10v_return_value): New function.
606 (d10v_use_struct_convention): Delete function.
607 (d10v_store_return_value): Delete function.
608 (d10v_extract_struct_value_address): Delete function.
609 (d10v_gdbarch_init): Set "return_value" instead of
610 "extract_return_value", "store_return_value",
611 "extract_struct_value_address", and "use_struct_convention".
612 (RET1_REGNUM): Delete const.
613
dea0c52f
MK
6142003-11-09 Mark Kettenis <kettenis@gnu.org>
615
616 From David S. Miller <davem@redhat.com>:
617 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
618 * gdbarch.c, gdbarch.h: Regenerated.
619 * arch-utils.c (generic_skip_solib_resolver): New function.
620 * arch-utils.h (generic_skip_solib_resolver): New prototype.
621 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
622
6314a349
AC
6232003-11-07 Andrew Cagney <cagney@redhat.com>
624
625 * top.c (print_gdb_version): Replace STREQ with strcmp.
626 * valops.c (value_struct_elt_for_reference): Ditto.
627 (value_struct_elt_for_reference): Ditto.
628 * symtab.c (gdb_mangle_name): Ditto.
629 (find_line_symtab): Ditto.
630 * symmisc.c (maintenance_print_symbols): Ditto.
631 * symfile.c (symbol_file_command): Ditto.
632 * stabsread.c (define_symbol, read_type): Ditto.
633 (cleanup_undefined_types, scan_file_globals): Ditto.
634 * solib.c (solib_map_sections): Ditto.
635 * solib-svr4.c (bfd_lookup_symbol): Ditto.
636 * rs6000-tdep.c (skip_prologue): Ditto.
637 * p-valprint.c (pascal_value_print): Ditto.
638 (pascal_object_is_vtbl_ptr_type): Ditto.
639 * objfiles.c (in_plt_section): Ditto.
640 * minsyms.c (lookup_minimal_symbol): Ditto.
641 (compact_minimal_symbols): Ditto.
642 (find_solib_trampoline_target): Ditto.
643 * mdebugread.c (parse_type): Ditto.
644 * language.c (set_language_command): Ditto.
645 (set_type_command, set_range_command): Ditto.
646 * f-lang.c (add_common_block): Ditto.
647 (add_common_block): Ditto.
648 (find_first_common_named): Ditto.
649 (patch_all_commons_by_name): Ditto.
650 * elfread.c (elf_locate_sections): Ditto.
651 (elf_locate_sections): Ditto.
652 (elfstab_offset_sections): Ditto.
653 * dwarf2read.c (dwarf2_locate_sections): Ditto.
654 * dbxread.c (add_old_header_file): Ditto.
655 (find_corresponding_bincl_psymtab): Ditto.
656 (read_dbx_symtab, process_one_symbol): Ditto.
657 * coffread.c (patch_opaque_types): Ditto.
658 * cli/cli-decode.c (delete_cmd): Ditto.
659 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
660 * c-typeprint.c (c_type_print_base): Ditto.
661 * breakpoint.c (bpstat_stop_status): Ditto.
662 (clear_command, breakpoint_re_set_one): Ditto.
663
49df298f
AC
6642003-11-07 Andrew Cagney <cagney@redhat.com>
665
666 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
667 * bcache.c (struct bstring): Make "length" an unsigned short, add
668 "half_hash".
669 (struct bcache): Add "half_hash_error_count".
670 (bcache): Compute and save the "half_hash". Compare the
671 "half_hash" before comparing the length. Update
672 half_hash_error_count.
673
f168dd80
AC
6742003-11-07 Andrew Cagney <cagney@redhat.com>
675
676 * inftarg.c (child_xfer_partial): New function
677 (init_child_ops): Set "to_xfer_partial".
678
05580c65
AC
6792003-11-07 Andrew Cagney <cagney@redhat.com>
680
681 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
682 set "return_value" instead of "use_struct_convention".
683 (ppc_linux_use_struct_convention): Delete function.
684 (ppc_linux_return_value): New function.
685 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
686 (ppc_sysv_abi_broken_return_value): New function.
687 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
688 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
689 static.
690 (ppc_sysv_abi_extract_return_value): Delete function.
691 (ppc_sysv_abi_broken_extract_return_value): Delete function.
692 (ppc_sysv_abi_store_return_value): Delete function.
693 (ppc_sysv_abi_broken_store_return_value): Delete function.
694 (ppc_sysv_abi_use_struct_convention): Delete function.
695 (ppc64_sysv_abi_use_struct_convention): Delete function.
696 (ppc64_sysv_abi_extract_return_value): Delete function.
697 (ppc64_sysv_abi_store_return_value): Delete function.
698 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
699 (ppcnbsd_init_abi): Set "return_value", instead of
700 "use_struct_convention", "extract_return_value", and
701 "store_return_value".
702 (ppcnbsd_use_struct_convention): Delete function.
703 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
704 (ppc_sysv_abi_return_value): Declare.
705 (ppc_sysv_abi_broken_return_value): Declare.
706 (ppc_sysv_abi_use_struct_convention): Delete.
707 (ppc_sysv_abi_store_return_value): Delete.
708 (ppc_sysv_abi_extract_return_value): Delete.
709 (ppc_sysv_abi_broken_store_return_value): Delete.
710 (ppc_sysv_abi_broken_extract_return_value): Delete.
711 (ppc64_sysv_abi_use_struct_convention): Delete.
712 (ppc64_sysv_abi_extract_return_value): Delete.
713 (ppc64_sysv_abi_store_return_value): Delete.
714 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
715 set "return_value" instead of "extract_return_value",
716 "store_return_value", and "use_struct_convention".
717
1763fba4
MK
7182003-11-07 Mark Kettenis <kettenis@gnu.org>
719
22c7ba1a
MK
720 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
721
1763fba4
MK
722 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
723 fscanf.
724
fc07cc2d
MK
7252003-11-07 Mark Kettenis <kettenis@gnu.org>
726
727 * fbsd-proc.c: Fix formatting.
728
6a748db6
KB
7292003-11-06 Kevin Buettner <kevinb@redhat.com>
730
731 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
732 Define.
733 (new_variant): Set name for iacc0_regnum.
734 (frv_register_name): Accommodate pseudo-registers.
735 (frv_register_type): Add case for iacc0_regnum.
736 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
737 (frv_gdbarch_init): Set number of pseudo registers. Establish
738 pseudo-register read/write methods.
739
bf896cb0
AC
7402003-11-06 Andrew Cagney <cagney@redhat.com>
741
742 * valops.c (destructor_name_p): Replace STREQN with strncmp.
743 * top.c (command_line_input): Ditto.
744 * objc-exp.y (yylex): Ditto.
745 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
746 * jv-exp.y (yylex): Ditto.
747 * f-exp.y (yylex): Ditto.
748 * event-top.c (command_line_handler): Ditto.
749 * environ.c (get_in_environ): Ditto.
750 (set_in_environ): Ditto.
751 * dwarfread.c (handle_producer): Ditto.
752 * dbxread.c (process_one_symbol): Ditto.
753 * c-typeprint.c (c_type_print_base): Ditto.
754 * c-exp.y (yylex): Ditto.
755
0b603eba
AC
7562003-11-06 Andrew Cagney <cagney@redhat.com>
757 Jeff Johnston <jjohnstn@redhat.com>
758
759 * target.c (add_target): Only set "to_xfer_partial" when NULL.
760 (init_dummy_target): Set "to_xfer_partial".
761
9cedbfec
AC
7622003-11-06 Andrew Cagney <cagney@redhat.com>
763
764 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
765 REGISTER_CONVENTION.
766
26bb91f3
DJ
7672003-11-06 Daniel Jacobowitz <drow@mvista.com>
768
769 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
770 static.
771
0bde7532
DJ
7722003-11-06 Daniel Jacobowitz <drow@mvista.com>
773
774 * breakpoint.c (remove_breakpoint): Take an bp_location
775 instead of a breakpoint argument. Check the bp_location's type.
776 Fix a reversed condition for hardware breakpoints.
777
778 (insert_bp_location): Update call to remove_breakpoint.
779 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
780 (remove_hw_watchpoints): Likewise.
781 (reattach_breakpoints): Likewise.
782 (detach_breakpoints): Likewise.
783 (delete_breakpoint): Likewise.
784
075f6582
DJ
7852003-11-06 Daniel Jacobowitz <drow@mvista.com>
786
787 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
788 (beakpoint_init_inferior): Likewise.
789 (breakpoint_here_p): Likewise. Only check addresses for software
790 or hardware breakpoints.
791 (breakpoint_inserted_here_p): Likewise.
792 (breakpoint_thread_match): Likewise. Correct comment.
793 (bpstat_have_active_hw_watchpoints): Likewise.
794 (check_duplicates): Likewise.
795
879bfdc2
DJ
7962003-11-06 Daniel Jacobowitz <drow@mvista.com>
797
798 * breakpoints.c (insert_bp_location): New function, broken out
799 from insert_breakpoints. Work on an bp_location instead of a
800 breakpoint.
801 (insert_breakpoints): Use it.
802
cf3a9e5b
DJ
8032003-11-06 Daniel Jacobowitz <drow@mvista.com>
804
805 * breakpoint.h (struct bp_location): Add section.
806 (struct breakpoint): Remove section.
807 * breakpoint.c (insert_breakpoints, remove_breakpoint)
808 (breakpoint_here_p, breakpoint_inserted_here_p)
809 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
810 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
811 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
812 section through loc.
813
ffce0d52
DJ
8142003-11-06 Daniel Jacobowitz <drow@mvista.com>
815
816 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
817 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
818
e049a4b5
DJ
8192003-11-06 Daniel Jacobowitz <drow@mvista.com>
820
821 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
822 arguments. Initialize owner and type for the new breakpoint
823 location item.
824 (set_raw_breakpoint): Update call to allocate_bp_location.
825
7cc221ef
DJ
8262003-11-06 Daniel Jacobowitz <drow@mvista.com>
827
828 * breakpoint.h (struct bp_location): Add a chain pointer.
829 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
830 macros.
831 (bp_location_chain): New variable.
832 (allocate_bp_location): New function.
833 (set_raw_breakpoint): Use it.
834 (delete_breakpoint): Remove ->loc from the bp_location_chain.
835
5cab636d
DJ
8362003-11-06 Daniel Jacobowitz <drow@mvista.com>
837
838 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
839 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 840 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
841 * breakpoint.c (condition_command, read_memory_nobpt)
842 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
843 (reattach_breakpoints, update_breakpoints_after_exec)
844 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
845 (breakpoint_init_inferior, breakpoint_here_p)
846 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
847 (breakpoint_thread_match, bpstat_stop_status)
848 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
849 (describe_other_breakpoints, check_duplicates)
850 (make_breakpoint_permanent, create_thread_event_breakpoint)
851 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
852 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
853 (watch_command_1, print_one_exception_catchpoint)
854 (clear_command, breakpoint_re_set_one): Adjust member accesses to
855 use the breakpoint's ->loc.
856 (set_raw_breakpoint): Likewise. Initialize ->loc.
857 (delete_breakpoint): Likewise. Free ->loc.
858
7be0c536
AC
8592003-11-05 Andrew Cagney <cagney@redhat.com>
860
4c7d882e
AC
861 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
862 macro.
863 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
864 * config/i386/tm-cygwin.h
865 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
866 * config/powerpc/tm-linux.h
867 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
868 (at_subroutine_call_instruction_target): Delete declaration.
869 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
870 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
871 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
872
7be0c536
AC
873 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
874 "struct bfd_section" and "struct bfd".
875 * target.h (struct section_table): Ditto.
876 * rs6000-nat.c (xcoff_relocate_core): Ditto.
877 * solib-svr4.c (elf_locate_base): Ditto.
878 * pa64solib.c (dld_cache_t): Ditto.
879 * objfiles.h (struct obj_section): Ditto.
880 * objfiles.c (add_to_objfile_sections): Ditto.
881 * exec.c (bfdsec_to_vmap): Ditto.
882 (add_to_section_table): Ditto.
883 (build_section_table): Ditto.
884 * corelow.c (get_core_register_section): Ditto.
885 * coffread.c (find_linenos): Ditto.
886 * elfread.c (elf_interpreter): Delete #if0'd function.
887
888 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
889 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
890 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
891 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
892
893 * arch-utils.h (generic_cannot_extract_struct_value_address):
894 Delete declaration.
895 * wince.c (_initialize_wince): Fix multi-line string.
896 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
897
d8fe84e3
EZ
8982003-11-05 Elena Zannoni <ezannoni@redhat.com>
899
900 * top.c (execute_command): Fix broken logic for command execution
901 while inferior is running in async mode.
902
cbdfc7c0
MK
9032003-11-06 Mark Kettenis <kettenis@gnu.org>
904
905 * dwarf2-frame.c (execute_cfa_program): Mark register as
906 REG_SAVED_REG for DW_CFA_register opcode.
907
dac94105
MK
9082003-11-05 Mark Kettenis <kettenis@gnu.org>
909
910 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
911 %rsp, %rip and %eflags to match ABI-change.
912
85bf2b91
JJ
9132003-11-05 Jeff Johnston <jjohnstn@redhat.com>
914
915 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
916 (ia64_gdbarch_init): Don't bother calculating the os.
917 Instead use the gdbarch_info struct and look at the osabi field.
918 Also use gdbarch_list_lookup_by_info() to look for a
919 candidate gdbarch.
920
cd31fb03
KB
9212003-11-05 Kevin Buettner <kevinb@redhat.com>
922
923 * frv-tdep.c (frv_register_byte): Delete.
924 (frv_extract_return_value, frv_store_return_value)
925 (frv_extract_struct_value_address): Don't call frv_register_byte().
926 Convert to non-deprecated form.
927 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
928 Convert calls to set_gdbarch_deprecated_extract_return_value(),
929 set_gdbarch_deprecated_store_return_value(), and
930 set_gdbarch_deprecated_extract_struct_value_address() into
931 non-deprecated forms.
932
0a056982
AC
9332003-11-05 Andrew Cagney <cagney@redhat.com>
934
935 * mips-tdep.c (mips_dump_tdep): Do not print
936 PRINT_EXTRA_FRAME_INFO.
937 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
938 Rename PRINT_EXTRA_FRAME_INFO.
939 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
940 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
941 (mips_print_extra_frame_info): Delete declaration.
942 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
943
29e0a062
EZ
9442003-11-05 Elena Zannoni <ezannoni@redhat.com>
945
946 * coffread.c (coff_symtab_read): Remove passing of info parameter
947 to prim_record_minimal_symbol_and_info.
948
8af580fc
EZ
9492003-11-05 Elena Zannoni <ezannoni@redhat.com>
950
951 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
952 (decode_base_type): Delete ifdeffed out code.
953
507836c0
AC
9542003-11-04 Andrew Cagney <cagney@redhat.com>
955
956 * symtab.c (find_active_alias): Delete function.
957 (lookup_block_symbol): Delete alias code.
958 * stabsread.c (resolve_live_range): Delete function.
959 (add_live_range): Delete function.
960 (resolve_symbol_reference): Delete function.
961 (define_symbol): Delete live range and alias code.
962 (scan_file_globals): Delete alias code.
963 * symtab.h (SYMBOL_RANGES): Delete macro.
964 (struct range_list): Delete structure.
965 (struct symbol): Delete field "ranges".
966 (SYMBOL_ALIASES): Delete macro.
967 (struct alias_list): Delete structure.
968 (struct symbol): Delete field "aliases".
969
1083b3bc
MS
9702003-11-04 Michael Snyder <msnyder@redhat.com>
971
972 * MAINTAINERS: Remove myself as owner of breakpoints and
973 of sparc/solaris.
974
474e5826
CV
9752003-11-03 Corinna Vinschen <vinschen@redhat.com>
976
977 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
978 (sh_sh4al_dsp_register_name): Ditto.
979 (sh4_nofpu_show_regs): Ditto.
980 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
981 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
982
2160782c
AC
9832003-11-03 Andrew Cagney <cagney@redhat.com>
984
985 * bcache.c: Include "gdb_assert.h".
986 (struct bcache): Add fields "expand_count" and
987 "expand_hash_count".
988 (expand_hash_table): Update the expand counts.
989 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
990 on object sizes and hashes.
991 * Makefile.in (bcache.o): Update dependencies.
992
85302095
AC
9932003-11-03 Andrew Cagney <cagney@redhat.com>
994
995 * exec.c (xfer_memory): Eliminate xfer_fn.
996
526eef89
KB
9972003-10-31 Kevin Buettner <kevinb@redhat.com>
998
999 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1000 (opcodes/frv-desc.h): Include.
1001 (iacc0h_regnum, iacc0l_regnum): Define.
1002 (last_spr_regnum, frv_num_regs): Update.
1003 (new_variant): Don't supply default names for holes in the SPRs.
1004 Supply names for iacc0h_regnum and iacc0l_regnum.
1005 (frv_register_type): Use symbolic constants first_fpr_regnum and
1006 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1007 builtin_type_int instead of builtin_type_int32.
1008 (frv_register_sim_regno): New function.
1009 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1010 * Makefile.in (gdb_sim_frv_h): Define.
1011 (frv-tdep.o): Update dependencies.
1012
9e815ec2
AC
10132003-10-31 Andrew Cagney <cagney@redhat.com>
1014
1015 * avr-tdep.c (avr_frame_this_id): Do not call
1016 deprecated_inside_entry_file.
1017 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1018 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1019 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1020 * arm-tdep.c (arm_prologue_this_id): Ditto.
1021 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1022
e372db49
JB
10232003-10-31 Jim Blandy <jimb@redhat.com>
1024
1025 * elfread.c (elf_symtab_read): Allocate correct number of tail
1026 elements to sectinfo structure. (Fix from Woody LaRue.)
1027
e8bcf01f
AC
10282003-10-31 Andrew Cagney <cagney@redhat.com>
1029
1030 * stack.c (return_command): Use get_frame_type, instead of
1031 CALL_DUMMY_HAS_COMPLETED.
1032 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1033 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1034
4c05fe53
MK
10352003-10-31 Mark Kettenis <kettenis@gnu.org>
1036
1037 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1038 explicitly specify size of array.
1039 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1040 TDEP->sc_num_regs.
1041
c8b91b89
AC
10422003-10-31 Andrew Cagney <cagney@redhat.com>
1043
1044 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1045 function.
1046 (s390_gdbarch_init): Set extract_struct_value_address.
1047 * arch-utils.c (generic_cannot_extract_struct_value_address):
1048 Delete function.
1049 * arch-utils.h (generic_cannot_extract_struct_value_address):
1050 Delete definition.
1051
fdfb6fc8
MK
10522003-10-31 Mark Kettenis <kettenis@gnu.org>
1053
1054 * i386-linux-nat.c (fetch_core_registers): Remove.
1055 (linux_elf_core_fns): Remove.
1056 (_initialize_i386_linux_nat): Remove.
1057
2f4950cd
AC
10582003-10-31 Andrew Cagney <cagney@redhat.com>
1059
1060 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1061 "exec.h".
1062 (exec_entry_point): New function.
1063 (enable_break): Create a "tmp_bfd_target", use that and
1064 entry_point_address when computing the relocation offset.
1065 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1066 * Makefile.in (solib-svr4.o): Update dependencies.
1067
bba2d28d
AC
10682003-10-31 Andrew Cagney <cagney@redhat.com>
1069
1070 * defs.h (XZALLOC): Define.
1071 * target.h (struct target_ops): Add "to_data";
1072 * bfd-target.h, bfd-target.c: New files.
1073 * Makefile.in (SFILES): Add "bfd-target.c".
1074 (COMMON_OBS): Add "bfd-target.o".
1075 (bfd-target.o): Specify dependencies.
1076 (bfd_target_h): Define.
1077 * defs.h (XZALLOC): Define.
1078
6066c3de
AC
10792003-10-31 Andrew Cagney <cagney@redhat.com>
1080
1081 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1082 adjust_breakpoint_address.
1083 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1084 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1085 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1086 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1087
4b8a223f
AC
10882003-10-31 Andrew Cagney <cagney@redhat.com>
1089
1090 * target.h (struct target_ops): Replace "to_read_partial" and
1091 "to_write_partial" with "to_xfer_partial". Update comments.
1092 * target.c (debug_to_write_partial): Delete function.
1093 (debug_to_xfer_partial): Replace debug_to_read_partial.
1094 (add_target, update_current_target, setup_target_debug): Set
1095 "to_xfer_partial" instead of "to_read_partial" and
1096 "to_write_partial".
1097 (default_xfer_partial): Replace "default_write_partial".
1098 (default_read_partial): Delete.
1099 (target_read_partial, target_write_partial): Call
1100 "to_xfer_partial".
1101 * remote.c (init_remote_ops): Set "to_xfer_partial".
1102 (init_remote_async_ops): Ditto.
1103 (remote_xfer_partial): Replace "remote_read_partial".
1104
66a72d25
MK
11052003-10-31 Mark Kettenis <kettenis@gnu.org>
1106
1107 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1108 registers in `fxsave' format.
1109 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1110
9a12a2a0
MK
11112003-10-30 Mark Kettenis <kettenis@gnu.org>
1112
e9f1aad5
MK
1113 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1114 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1115 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1116
bb489b3c
MK
1117 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1118 specify size of array.
1119 (i386_linux_init_abi): Remove initialization of
1120 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1121 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1122
da285bc4
MK
1123 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1124 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1125 core-regset.o.
1126
9a12a2a0
MK
1127 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1128 the ELF header.
1129
0e24ac5d
MK
11302003-10-29 Mark Kettenis <kettenis@gnu.org>
1131
6d6d8e9c
MK
1132 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1133 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1134 core-regset.o.
1135
25e60c9b
MK
1136 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1137
0e24ac5d
MK
1138 * corelow.c: Include "arch-utils.h", "regset.h" and
1139 "gdb_assert.h".
1140 (core_gdbarch): New variable.
1141 (sniff_core_bfd): Don't sniff if we have support for register sets
1142 in CORE_GDBARCH.
1143 (core_close): Reset CORE_GDBARCH.
1144 (core_open): Initialize CORE_GDBARCH.
1145 (get_core_register_section): Use register sets if they are
1146 supported by CORE_GDBARCH.
1147 (get_core_registers): Don't print error message if we have support
1148 for register sets in CORE_GDBARCH.
1149
0a0a4ac3
AC
11502003-10-29 Andrew Cagney <cagney@redhat.com>
1151
1152 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1153 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1154
7b097ae3
MK
11552003-10-29 Mark Kettenis <kettenis@gnu.org>
1156
1157 * objfiles.h (clear_objfile_data): New prototype.
1158 * objfiles.c (clear_objfile_data): New function.
1159 * symfile.c (reread_symbols): Clear per-objfile data.
1160
46f45a4a
JJ
11612003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1162
1163 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1164 printf_unfiltered instead of printf_filtered for output messages.
1165 (add_symbol_file_command): Ditto.
1166 (reread_symbols): Ditto.
1167 (overlay_auto_command): Ditto.
1168 (overlay_manual_command): Ditto.
1169 (overlay_off_command): Ditto.
1170
2b026650
MK
11712003-10-27 Mark Kettenis <kettenis@gnu.org>
1172
1173 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1174 (gdbarch_from_bfd): New function.
1175 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1176 deprecated_select_gdbarch_hack.
1177 * arch-utils.h (gdbarch_from_bfd): New prototype.
1178
0bcad584 11792003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1180
1181 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1182 arch_info. Use warning instead of fprintf_filtered. Do not use
1183 deprecated bfd_printable_arch_mach.
1184
7f398216
KB
11852003-10-26 Kevin Buettner <kevinb@redhat.com>
1186
1187 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1188 Delete.
1189 (frv_register_type): Rename from frv_register_virtual_type. Add
1190 ``struct gdbarch *'' parameter.
1191 (frv_gdbarch_init): Delete calls to the following functions:
1192 set_gdbarch_deprecated_size(),
1193 set_gdbarch_deprecated_register_bytes(),
1194 set_gdbarch_deprecated_register_raw_size(),
1195 set_gdbarch_deprecated_max_register_raw_size(),
1196 set_gdbarch_deprecated_register_virtual_size(),
1197 set_gdbarch_deprecated_max_register_virtual_size(),
1198 set_gdbarch_deprecated_register_virtual_size(),
1199 set_gdbarch_deprecated_register_virtual_type().
1200 Add call to function set_gdbarch_register_type().
1201
bcf48cc7
MK
12022003-10-26 Mark Kettenis <kettenis@gnu.org>
1203
6c7de422
MK
1204 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1205 FDOFF_REGNUM): Remove defines.
1206 * win32-nat.c (do_child_fetch_inferior_registers): Include
1207 "i387-tdep.h".
3e685d41 1208 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1209 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1210 undefine I387_ST0_REGNUM.
1211
f783586b
MK
1212 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1213 * x86-64-tdep.c (x86_64_store_return_value): Use
1214 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1215
bcf48cc7
MK
1216 Change register numbers to enumartion values.
1217 * i386-tdep.h (enum i386_regnum): New.
1218 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1219 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1220 I386_ST0_REGNUM): Remove defines.
1221 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1222 I386_EDI_REGNUM): Remove defines.
1223
b6591e8b
AC
12242003-10-24 Andrew Cagney <cagney@redhat.com>
1225
1226 * target.c: Include "gdbcore.h".
1227 (get_target_memory, get_target_memory_unsigned): New functions.
1228 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1229 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1230 Use get_target_memory_unsigned.
1231 * Makefile.in (target.o): Update dependencies.
1232
5f724446
AC
12332003-10-24 Andrew Cagney <cagney@redhat.com>
1234
ce2826aa
AC
1235 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1236 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1237 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1238 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1239 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1240
5f724446
AC
1241 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1242 (can_run_code_for): Use the OO term "singleton".
1243
fc70c2a0
AC
12442003-10-23 Andrew Cagney <cagney@redhat.com>
1245
1246 * Makefile.in (stack.o): Add $(regcache_h).
1247 * stack.c: Include "regcache.h"
1248 (return_command): Rewrite. Use get_frame_id and
1249 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1250 about unhandled return-values.
1251 * value.h (set_return_value): Delete declaration.
1252 * values.c (set_return_value): Delete function.
1253
4afcc598
JJ
12542003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1255
1256 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1257 (pseudo_regs): Add comment regarding register stack registers.
1258 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1259 (floatformat_valid): New static routine.
1260 (floatformat_ia64_ext): Add name field and set up is_valid routine
1261 to floatformat_valid().
1262 (examine_prologue): For the previous cfm, use
1263 frame_unwind_register()
1264 if the cfm is not stored in a register-stack register. Save the
1265 previous cfm value in the prev_cfm field. Add debug output.
1266 (ia64_frame_this_id): Use frame_id_build_special() to also register
1267 the bsp. Add debug output.
1268 (ia64_sigtramp_frame_this_id): Ditto.
1269 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1270 registers and also add some checks for framelessness before accepting
1271 current register values for fields such as return address. For cfm,
1272 use the cached prev_cfm field if available. Add comment to explain
1273 PSR logic. Add debug output.
1274 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1275 as part of initialization.
1276 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1277 calculated. Cache the bsp and cfm values.
1278 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1279 instead of using ia64_frame_prev_register() which doesn't expect most
1280 registers to be saved. The saved values for bsp and sp
1281 can be taken from the cache. Add debug output.
1282 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1283 the bsp.
1284
6cfae0bc
JB
12852003-10-23 Jim Blandy <jimb@redhat.com>
1286
1287 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1288 architecture the current arch can run code for --- but not if it's
1289 a superset.
1290 (can_run_code_for): New function.
1291
fcd182f9
JW
12922003-10-22 James E Wilson <wilson@specifixinc.com>
1293
1294 * MAINTAINERS: Move myself from paper trail section back to write
1295 after approval section.
1296
4646aa9d
AC
12972003-10-22 Andrew Cagney <cagney@redhat.com>
1298
1299 * exec.h: New file.
1300 * win32-nat.c: Include "exec.h".
1301 * solib.c: Include "exec.h".
1302 * target.h (build_section_table): Delete declaration.
1303 * somsolib.c: Include "exec.h".
1304 (exec_ops): Delete extern declaration.
1305 * rs6000-nat.c: Update copyright. Include "exec.h".
1306 (exec_ops): Delete extern declaration.
1307 * pa64solib.c: Update copyright. Include "exec.h".
1308 (exec_ops): Delete extern declaration.
1309 * exec.c: Update copyright. Include "exec.h".
1310 * corelow.c: Update dependencies. Include "exec.h".
1311 * Makefile.in (exec_h): Define.
1312 (exec.o, somsolib.o): Update dependencies.
1313 (pa64solib.o, corelow.o): Update dependencies.
1314
0088c768
AC
13152003-10-22 Andrew Cagney <cagney@redhat.com>
1316
1317 * target.c: Include "gdb_assert.h" (target_read): Call
1318 "target_read_partial", not "target_write_partial".
1319 (default_read_partial, default_write_partial): New function.
1320 (target_read_partial, target_write_partial): Simplify, assume that
1321 there is always a read/write method.
1322 (update_current_target, add_target): Always set "to_read_partial"
1323 and "to_write_partial".
1324 (target_write, target_read): Fail on a zero byte transfer.
1325 * Makefile.in (target.o): Update dependencies.
1326 * target.h: Update copyright date.
1327 (target_object): Fix typo.
1328
e2d0e7eb
AC
13292003-10-22 Andrew Cagney <cagney@redhat.com>
1330
1331 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1332 multi-arch method, add "targ" parameter.
1333 (struct target_ops): Declare.
1334 * gdbarch.h, gdbarch.c: Re-generate.
1335 * Makefile.in (c-valprint.o): Update dependencies.
1336 * arch-utils.h: Update copyright.
1337 (convert_from_func_ptr_addr_identity): Declare.
1338 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1339 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1340 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1341 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1342 * infcall.c (find_function_addr, call_function_by_hand): Update.
1343 * c-valprint.c: Include "target.h".
1344 (print_function_pointer_address): Update.
1345
f1c07ab0
AC
13462003-10-22 Andrew Cagney <cagney@redhat.com>
1347
1348 * target.c (target_close): New function.
1349 (debug_to_close): Use "target_close".
1350 (push_target): Use "target_close".
1351 (unpush_target): Use "target_close".
1352 (pop_target): Use "target_close".
1353 * target.h (struct target_ops): Add "to_xclose".
1354 (target_open): Delete macro. Move comment to "to_open".
1355 (target_close): Replace macro with function that takes a target.
1356 * top.c (quit_target): Pass "current_target" to "target_close".
1357
5520a790
EZ
13582003-10-21 Elena Zannoni <ezannoni@redhat.com>
1359
1360 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1361 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1362 * symtab.h (lookup_minimal_symbol_text): Update.
1363 * breakpoint.c (create_overlay_event_breakpoint,
1364 create_longjmp_breakpoint): Update callers.
1365 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1366 * symtab.c (find_pc_sect_line): Ditto.
1367
caa92b73
AC
13682003-10-21 Andrew Cagney <cagney@redhat.com>
1369
1370 * target.c (errno): Delete extern declaration.
1371
aa2a9a3c
JJ
13722003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1373
1374 * ia64-tdep.c: Change all occurrences of
1375 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1376 (ia64_frame_prev_register): Minor whitespace change.
1377
4beec2b7
MC
13782003-10-20 Michael Chastain <mec@shout.net>
1379
1380 * config/djgpp/fnchange.lst: Add lines for:
1381 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1382 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1383 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1384 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1385 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1386 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1387 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1388
92ad9cd9
AC
13892003-10-20 Andrew Cagney <cagney@redhat.com>
1390
1391 * values.c (register_value_being_returned): Update comments. Use
1392 "gdbarch_return_value" when available.
1393 (using_struct_return): Ditto.
1394 (set_return_value): Ditto. Use "gdbarch_return_value" when
1395 available.. Print a warning, and not an error, when an unhandled
1396 return type is encountered.
1397 * infcmd.c: Include "gdb_assert.h".
1398 (print_return_value): When gdbarch_return_value_p, and using
1399 struct return, assume that the value is not available.
1400 * defs.h (return_value_convention): Define.
1401 * gdbarch.sh (gdbarch_return_value): New predicate method.
1402 * gdbarch.h, gdbarch.c: Re-generate
1403 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1404
198beae2
AC
14052003-10-20 Andrew Cagney <cagney@redhat.com>
1406
1407 * symtab.c: Replace "struct sec" with "struct bfd_section".
1408 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1409
24d693a6 14102003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1411
1412 * config/djgpp/fnchange.lst: Add lines for:
1413 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1414 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1415 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1416
21ad8dc3
MK
14172003-10-19 Mark Kettenis <kettenis@gnu.org>
1418
1419 * amd64fbsd-nat.c (fetch_inferior_registers,
1420 store_inferior_registers): Remove functions.
1421 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1422
cced5e27
MK
14232003-10-18 Mark Kettenis <kettenis@gnu.org>
1424
1425 Add NetBSD/amd64 native configuration:
1426 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1427 * amd64nbsd-tdep.c: New file.
1428 * amd64nbsd-nat.c: New file.
1429 * amd64bsd-nat.c: New file.
1430 * config/i386/nbsd64.mh: New file.
1431 * config/i386/nbsd64.mt: New file.
1432 * configure.host: Add x86_64-*-netbsd*.
1433 * configure.tgt: Add x86_64-*-netbsd*.
1434 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1435 New targets.
1436 * NEWS (New native configurations): Mention NetBSD/amd64.
1437
666de3fd
MC
14382003-10-17 Michael Chastain <mec@shout.net>
1439
1440 * config/djgpp/fnchange.lst: Remove dead lines for:
1441 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1442 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1443 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1444 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1445 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1446 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1447 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1448 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1449 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1450 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1451 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1452 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1453 gdb/config/sparc/tm-sparclite.h,
1454 gdb/gdbtk/generic/ChangeLog-2001,
1455 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1456 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1457 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1458 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1459 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1460 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1461 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1462 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1463 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1464 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1465 itcl/iwidgets3.0.0/demos/fileselectionbox,
1466 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1467 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1468 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1469 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1470 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1471 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1472 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1473 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1474 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1475 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1476 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1477 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1478 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1479 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1480 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1481 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1482 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1483 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1484 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1485 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1486 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1487 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1488 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1489 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1490 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1491 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1492 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1493 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1494 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1495 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1496 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1497 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1498 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1499 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1500 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1501 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1502 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1503 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1504 itcl/iwidgets3.0.0/demos/scrolledframe,
1505 itcl/iwidgets3.0.0/demos/scrolledhtml,
1506 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1507 itcl/iwidgets3.0.0/demos/scrolledtext,
1508 itcl/iwidgets3.0.0/demos/selectionbox,
1509 itcl/iwidgets3.0.0/demos/selectiondialog,
1510 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1511 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1512 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1513 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1514 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1515 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1516 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1517 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1518 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1519 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1520 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1521 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1522 itcl/iwidgets3.0.0/doc/selectionbox.n,
1523 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1524 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1525 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1526 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1527 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1528 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1529 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1530 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1531 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1532 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1533 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1534 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1535 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1536 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1537 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1538 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1539 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1540 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1541 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1542 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1543 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1544 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1545 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1546 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1547 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1548 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1549 itcl/iwidgets3.0.0/tests/selectionbox.test,
1550 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1551 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1552 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1553 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1554 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1555 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1556 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1557 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1558 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1559 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1560 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1561 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1562 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1563 tk/mac/tkMacProjects.sit.hqx.
1564
1e3ff5ad
AC
15652003-10-17 Andrew Cagney <cagney@redhat.com>
1566
8db32d44
AC
1567 * target.c (target_section_by_addr): New function.
1568 (do_xfer_memory): Use "target_section_by_addr".
1569 * target.h (target_section_by_addr): Declare.
1570
1e3ff5ad
AC
1571 * target.h (struct target_ops): Add "to_read_partial" and
1572 "to_write_partial", delete "to_query".
1573 (target_read_partial, target_write_partial): Declare.
1574 (target_read, target_write): Declare.
1575 (target_query): Delete macro.
1576 * target.c (target_read_partial): New function.
1577 (target_write_partial, target_read, target_write): New function.
1578 (update_current_target): Delete inheritance of "to_query". Add
1579 comments about "to_read_partial" and "to_write_partial".
1580 (debug_to_partial_read, debug_to_partial_write): New functions.
1581 (debug_to_query): Delete function.
1582 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1583 instead of "to_query".
1584 * remote.c (remote_read_partial): Replace "remote_query".
1585 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1586 (init_remote_async_ops): Ditto.
1587 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1588 "target_read_partial" instead of "target_query".
1589 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1590 Use "target_read_partial" instead of "target_query".
1591
48c66725
JJ
15922003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1593
1594 * frame.h (struct frame_id): Add new field: special_addr.
1595 (frame_id_build_special): New prototype.
1596 * frame.c (frame_id_build_special): New function.
1597 (frame_id_build): Change to call frame_id_build_special().
1598 (frame_id_eq): Change to also test special_addr field.
1599 (frame_id_inner): Update comment.
1600
7998dfc3
AC
16012003-10-17 Andrew Cagney <cagney@redhat.com>
1602
1603 * target.c (update_current_target): Perform the target cleanup.
1604 Put the target stack beneath the squashed "current_target".
1605 (add_target): Delete disabled call to "cleanup_target".
1606 (cleanup_target): Delete function.
1607 (push_target, unpush_target): Do not call "cleanup_target".
1608
9c04404e 16092003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1610
1611 * target.c (target_stack): Change to a static target_ops.
1612 (update_current_target): Walk the "struct target_ops" stack.
1613 (pop_target, do_xfer_memory, target_info): Ditto.
1614 (find_target_beneath): Ditto.
1615 (push_target): Rewrite to use the "struct target_ops" stack.
1616 (unpush_target): Ditto.
1617 * target.h (struct target_stack_item): Delete definition.
1618 (target_stack): Delete declaration.
1619 (struct target_ops): Add field "beneath".
1620
c98a2b49 16212003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1622
1623 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1624 declaration.
1625 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1626 (h8300_examine_prologue): Use h8300_normal_mode flag
1627 (h8300_gdbarch_init): Set architecture info for normal mode
1628
506fb367
DJ
16292003-10-16 Daniel Jacobowitz <drow@mvista.com>
1630
1631 * remote.c (remote_protocol_vcont): New variable.
1632 (set_remote_protocol_vcont_packet_cmd): New function.
1633 (show_remote_protocol_vcont_packet_cmd): New function.
1634 (init_all_packet_configs): Handle remote_protocol_vcont.
1635 (remote_vcont_probe): New function.
1636 (remote_vcont_resume): New function.
1637 (remote_resume): Use it.
1638 (remote_async_resume): Call remote_resume.
1639 (_initialize_remote): Add verbose-resume packet commands.
1640
65815ea1
AC
16412003-10-16 Andrew Cagney <cagney@redhat.com>
1642
1643 * infrun.c (handle_inferior_event): Add comment about
1644 "frame_id_inner" being too weak.
1645
40324f1b
EZ
16462003-10-16 Elena Zannoni <ezannoni@redhat.com>
1647
1648 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1649 second parameter, which is always null. Remove
1650 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1651 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1652 accordingly.
1653 * somsolib.c (som_solib_create_inferior_hook,
1654 som_solib_desire_dynamic_linker_symbols): Update callers.
1655 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1656
16572003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1658
1659 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1660 debug interface, SDI (Scalable Debug Interface).
1661 * NEWS: Mention m32r SDI protocol was supported.
1662 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1663 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1664
51931cbb
JJ
16652003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1666
1667 * ia64-linux-tdep.c: Include gdbcore.h.
1668 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1669 (ia64_linux_sigcontext_register_addr): Find the address of the
1670 sigcontext area stored in the sigframe instead of using
1671 a magic offset constant.
1672
84e7fd53
AC
16732003-10-15 Andrew Cagney <cagney@redhat.com>
1674
1675 * remote.c (remote_search): Delete function.
1676 * target.h (target_search): Delete disabled macro.
1677 (struct target_ops): Delete disabled field "to_search".
1678
0f4d7c52
KB
16792003-10-14 Kevin Buettner <kevinb@redhat.com>
1680
1681 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1682 instead of deprecated_inside_entry_file().
1683
2e952408
CV
16842003-10-14 Corinna Vinschen <vinschen@redhat.com>
1685
1686 * sh-tdep.c: Fix copy/paste hangover in comment.
1687 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1688 mode.
1689 (sh3e_sh4_extract_return_value): Ditto.
1690
7e86466e
RH
16912003-10-13 Richard Henderson <rth@redhat.com>
1692
1693 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1694 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1695 match c_val_print a bit closer.
1696
46a16dba
KB
16972003-10-13 Kevin Buettner <kevinb@redhat.com>
1698
1699 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1700 (frv_gdbarch_adjust_breakpoint_address): New function.
1701 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1702 method.
1703
76897487
KB
17042003-10-13 Kevin Buettner <kevinb@redhat.com>
1705
1706 * breakpoint.h (struct breakpoint): Add new member
1707 ``requested_address''.
1708 * breakpoint.c (breakpoint_adjustment_warning)
1709 (adjust_breakpoint_address): New static functions.
1710 (print_it_typical): Issue warning if breakpoint's address is different
1711 from its requested address.
1712 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1713 (breakpoint_re_set_one): Set breakpoint's
1714 ``requested_address'' field. Set ``address'' field to the
1715 result of calling adjust_breakpoint_address() on the requested
1716 address.
1717
a1131521
KB
17182003-10-13 Kevin Buettner <kevinb@redhat.com>
1719
1720 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1721 * gdbarch.h, gdbarch.c: Regenerate.
1722
6ce6d90f
MK
17232003-10-11 Mark Kettenis <kettenis@gnu.org>
1724
155c1d33
MK
1725 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1726 TDEP->sc_num_regs.
1727
8a96bc77
MK
1728 * i386fbsd-tdep.c: New file.
1729 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1730 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1731 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1732 i386bsd-tdep.c.
1733 (_initialize_i386fbsd_tdep): New function.
1734 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1735 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1736 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1737 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1738 TDEP->sc_num_regs.
1739 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1740 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1741 to initialize TDEP->sc_num_regs.
1742 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1743 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1744 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1745 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1746 FreeBSD ELF OS/ABI's here.
1747 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1748 (i386fbsd-tdep.o): New target.
1749 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1750 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1751
477f40d1
MK
1752 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1753 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1754 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1755 in initialization of TDEP->sc_num_regs.
1756
c6b33596
MK
1757 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1758 (x86_64_init_abi): Initialize regset_from_core_section if
1759 appropriate.
1760
8446b36a
MK
1761 * i386-tdep.c (i386_regset_from_core_section): New function.
1762 (i386_gdbarch_init): Initialize regset_from_core_section if
1763 appropriate.
1764 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1765
c783cbd6
MK
1766 * i386-tdep.h (struct regset): Declare opaque.
1767
6ce6d90f
MK
1768 * gdbarch.sh (regset_from_core_section): New method.
1769 (struct regset): Declare opaque.
1770 * gdbarch.c, gdbarch.h: Regenerated.
1771
b98ed7be
AM
17722003-10-11 Alan Modra <amodra@bigpond.net.au>
1773
1774 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1775 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1776 Correct test for pc within section.
1777
f6214256
MK
17782003-10-11 Mark Kettenis <kettenis@gnu.org>
1779
1780 * gdbarch.sh: Remove trailing whitepsace from comments.
1781
a8f4cde1
RM
17822003-10-08 Roland McGrath <roland@redhat.com>
1783
1784 * gcore.c (make_mem_sec): Function removed, folded into ...
1785 (gcore_create_callback): ... here. To omit a section, clear its
1786 SEC_LOAD bit rather than zeroing its size.
1787 Omit read-only sections only if they correspond to a known disk file.
1788 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1789
74276724
MS
17902003-10-10 Michael Snyder <msnyder@redhat.com>
1791
1792 * d10v-tdep.c: Fix typo in comment.
1793
e754ae69
AC
17942003-10-10 Andrew Cagney <cagney@redhat.com>
1795
1796 * rs6000-tdep.c (e500_store_return_value): Delete function.
1797 (e500_extract_return_value): Delete function.
1798 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1799 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1800 "ppc_sysv_abi_restore_return_value" where applicable.
1801 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1802 (ppc_sysv_abi_extract_return_value): Declare.
1803 (ppc_sysv_abi_broken_store_return_value): Declare.
1804 (ppc_sysv_abi_broken_extract_return_value): Declare.
1805 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1806 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1807 start of file.
1808 (do_ppc_sysv_return_value): New function.
1809 (ppc_sysv_abi_extract_return_value): New function.
1810 (ppc_sysv_abi_store_return_value): New function.
1811 (ppc_sysv_abi_broken_extract_return_value): New function.
1812 (ppc_sysv_abi_broken_store_return_value): New function.
1813 (ppc_sysv_abi_use_struct_convention): Call
1814 do_ppc_sysv_return_value.
1815
8d4ce20a
JB
18162003-10-10 J. Brobecker <brobecker@gnat.com>
1817
1818 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1819 to lookup the main function symbol.
1820
afce3d2a
CV
18212003-10-10 Corinna Vinschen <vinschen@redhat.com>
1822
1823 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1824 types correctly.
1825 (sh_push_dummy_call_fpu): Fix argument passing rules.
1826 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1827 float types.
1828 (sh3e_sh4_store_return_value): Ditto.
1829
7fe958be
EZ
18302003-10-10 Elena Zannoni <ezannoni@redhat.com>
1831
1832 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1833 comment.
1834
3f997a97
CV
18352003-10-10 Corinna Vinschen <vinschen@redhat.com>
1836
1837 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1838 more readable code. Accomodate passing of bitfields.
1839
8be9034a
AC
18402003-10-10 Andrew Cagney <cagney@redhat.com>
1841
1842 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1843 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1844 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1845 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1846 (ppc64_sysv_abi_push_dummy_call): New function.
1847 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1848 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1849 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1850
85a453d5
KI
18512003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1852
1853 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1854 * README: Ditto.
1855 * d10v-tdep.c: Ditto.
1856 * h8300-tdep.c: Ditto.
1857 * remote-e7000.c: Ditto.
1858 * remote-hms.c: Ditto.
1859 * ser-e7kpc.c: Ditto.
1860 * sh-stub.c: Ditto.
1861 * sh-tdep.c: Ditto.
1862 * sh-tdep.h: Ditto.
1863 * sh3-rom.c: Ditto.
1864 * sh64-tdep.c: Ditto.
1865 * top.c: Ditto.
1866 * wince.c: Ditto.
1867 * config/d10v/d10v.mt: Ditto.
1868 * config/sh/embed.mt: Ditto.
1869 * config/sh/linux.mt: Ditto.
1870 * config/sh/tm-linux.h: Ditto.
1871 * config/sh/tm-sh.h: Ditto.
1872 * config/sh/wince.mt: Ditto.
1873
221c12ff
AC
18742003-10-09 Andrew Cagney <cagney@redhat.com>
1875
1876 * ppc-tdep.h (struct type): Declare opaque.
1877 * x86-64-tdep.h (struct regcache): Declare opaque.
1878 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1879 coding style.
1880
ef5200c1
AC
18812003-10-09 Andrew Cagney <cagney@redhat.com>
1882
1883 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1884 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1885 (SOFTWARE_SINGLE_STEP_P): Ditto.
1886 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1887 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1888 (SOFTWARE_SINGLE_STEP_P): Ditto.
1889 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1890 software_single_step to rs6000_software_single_step.
a8f4cde1 1891
9644bbdd
AC
18922003-10-09 Andrew Cagney <cagney@redhat.com>
1893
1894 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1895
db72fa6b
MS
18962003-10-09 Michael Snyder <msnyder@redhat.com>
1897
f3efb16c
MS
1898 * frame.h: Fix typo in comment.
1899 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1900 * d10v-tdep.c: Random whitespace/comment tweaks.
1901
9a5cef92
EZ
19022003-10-09 Elena Zannoni <ezannoni@redhat.com>
1903
1904 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1905 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1906 on stack.
a8f4cde1 1907
9a5cef92
EZ
1908 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1909 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1910 in detail.
a8f4cde1 1911
0f317a0c
DJ
19122003-10-09 Daniel Jacobowitz <drow@mvista.com>
1913
1914 * remote-mips.c (mips_initialize): Remove unneeded call to
1915 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1916
bbab2f46
DJ
19172003-10-09 Daniel Jacobowitz <drow@mvista.com>
1918
1919 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1920 a memory pointer.
1921
550950b8
JJ
19222003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1923
1924 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1925 for any lwp we resume.
1926 (running_callback): Add lwps that have pending status events
1927 against them to be considered running.
1928
15c69bc7
KI
19292003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1930
1931 * m32r-tdep.c : Include "dis-asm.h".
1932 * Makefile.in (m32r-tdep.o): Update dependencies.
1933
51065942
JB
19342003-10-06 J. Brobecker <brobecker@gnat.com>
1935
1936 * completer.h (get_gdb_completer_word_break_characters): Delete.
1937 * completer.c: include language.h.
1938 (gdb_completer_word_break_characters): Delete.
1939 (get_gdb_completer_word_break_characters): Delete.
1940 (location_completer): Use the word break characters of the current
1941 language.
1942 (complete_line): Likewise.
1943 (line_completion_function): Likewise.
1944 (skip_quoted_chars): Likewise.
1945 * Makefile.in (completer.o): Add dependency on language.h.
1946 * top.c (init_main): Set the readline word break characters
1947 to GDB's default word break characters.
1948
6084f43a
JB
19492003-10-06 J. Brobecker <brobecker@gnat.com>
1950
1951 * language.h (language_defn): new field, la_word_break_characters.
1952 * language.c (unknown_language_defn): Set new field to
1953 default_word_break_characters.
1954 (auto_language_defn): Likewise.
1955 (local_language_defn): Likewise.
1956 * ada-lang.c (ada_language_defn): Likewise.
1957 * c-lang.c (c_language_defn): Likewise.
1958 (cplus_language_defn): Likewise.
1959 (asm_language_defn): Likewise.
1960 (minimal_language_defn): Likewise.
1961 * f-lang.c (f_language_defn): Likewise.
1962 * jv-lang.c (java_language_defn): Likewise.
1963 * m2-lang.c (m2_language_defn): Likewise.
1964 * objc-lang.c (objc_language_defn): Likewise.
1965 * p-lang.c (pascal_language_defn): Likewise.
1966 * scm-lang.c (scm_language_defn): Likewise.
1967
944fcfab
AC
19682003-10-06 Andrew Cagney <cagney@redhat.com>
1969
1970 * ppc-sysv-tdep.c: Re-indent.
1971
9f0a5303
JB
19722003-10-06 J. Brobecker <brobecker@gnat.com>
1973
1974 * language.h (default_word_break_characters): Add prototype.
1975 * language.c (default_word_break_characters): New function.
1976
7270b6ed
AS
19772003-10-06 Andreas Schwab <schwab@suse.de>
1978
1979 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1980 with %eax.
1981
a5d61f66
AC
19822003-10-06 Andrew Cagney <cagney@redhat.com>
1983
1984 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1985 "h8500-tdep.c".
1986 (z8k-tdep.o): Delete custom build rule.
1987
28a86f5c
AC
19882003-10-06 Andrew Cagney <cagney@redhat.com>
1989
1bfd8a83
AC
1990 * Makefile.in: Update all dependencies.
1991
17144ef8
AC
1992 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1993 No longer list PA as as obsolete candidate. List m32r as
1994 broken instead of obsolete.
a8f4cde1 1995
a5679ae5
AC
1996 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1997 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1998 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1999 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2000 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2001 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2002 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2003 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2004 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2005 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2006 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2007 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2008 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2009 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2010 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2011 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2012 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2013 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2014 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2015 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2016 * config/z8k/z8k.mt: Ditto.
2017
4a8269c0
AC
2018 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2019 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2020 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2021 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2022 sparclite were removed.
2023 * configure.host, configure.tgt: Remove corresponding tuples.
2024
41989fcd
AC
2025 * breakpoint.c, breakpoint.h: Remove obsolete code.
2026 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2027 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2028 * stabsread.h, xcoffread.c: Ditto.
2029
28a86f5c
AC
2030 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2031 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2032 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2033 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2034
4efdaa0d
DL
20352003-10-06 David Lecomber <dsl@sources.redhat.com>
2036
2037 * f-valprint.c: Reformatting
2038
ae53de43
MK
20392003-10-06 Mark Kettenis <kettenis@gnu.org>
2040
a8bb57e7
MK
2041 * x86-64-tdep.c: Remove duplicate comment.
2042
ae53de43
MK
2043 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2044 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2045 names for return values. This fixes a bug since we looked at %rbx
2046 instead of %rdx.
2047
473f17b0
MK
20482003-10-05 Mark Kettenis <kettenis@gnu.org>
2049
2c261fae
MK
2050 * x86-64-tdep.c: Include "regset.h".
2051
473f17b0
MK
2052 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2053 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2054 sizeof_fpregset.
2055 * i386-tdep.c: Include "regset.h".
2056 (i386_supply_gregset): New function.
2057 (i386_supply_fpregset): New function.
2058 (i386_gdbarch_init): Initialze register set-related members of
2059 TDEP.
2060 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2061 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2062
afd48b75
AC
20632003-10-03 Andrew Cagney <cagney@redhat.com>
2064
2065 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2066 set extract_return_value, store_return_value and
2067 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2068 ppc64_sysv_abi_store_return_value and
2069 ppc64_sysv_abi_use_struct_convention.
2070 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2071 (ppc64_sysv_abi_store_return_value): Declare.
2072 (ppc64_sysv_abi_use_struct_convention): Declare.
2073 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2074 (ppc64_sysv_abi_extract_return_value): New function.
2075 (ppc64_sysv_abi_store_return_value): New function.
2076 (ppc64_sysv_abi_use_struct_convention): New function.
2077 (ppc64_sysv_abi_return_value): New function.
2078
9b540880
AC
20792003-10-03 Andrew Cagney <cagney@redhat.com>
2080
2081 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2082 convert a descriptor to a function when it's in the ".opd"
2083 section.
2084
8748518b
CV
20852003-10-03 Corinna Vinschen <vinschen@redhat.com>
2086
2087 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2088 reg_size to keep GCC silent.
2089
0fd85043
CV
20902003-10-03 Corinna Vinschen <vinschen@redhat.com>
2091
2092 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2093 base for DW_EH_PE_textrel encodings.
2094 (read_encoded_value): Add a DW_EH_PE_textrel case.
2095 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2096 section.
2097
37b517aa
MK
20982003-10-03 Mark Kettenis <kettenis@gnu.org>
2099
2100 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2101
12c266ea
AC
21022003-10-02 Andrew Cagney <cagney@redhat.com>
2103
2104 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2105 REGISTER_RAW_SIZE.
2106 * gdbarch.h, gdbarch.c: Re-generate.
2107 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2108 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2109 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2110 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2111 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2112 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2113 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2114 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2115 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2116 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2117 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2118 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2119 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2120 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2121 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2122 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2123
78ba4af6
JB
21242003-10-02 Jim Blandy <jimb@redhat.com>
2125
2126 * dwarf2read.c (struct die_info): Doc fix.
2127
617daa0e
CV
21282003-10-02 Corinna Vinschen <vinschen@redhat.com>
2129
2130 * sh-tdep.c: Running thru gdb_indent.sh.
2131
e5e33cd9
CV
21322003-10-02 Corinna Vinschen <vinschen@redhat.com>
2133
2134 * sh-tdep.c (sh_justify_value_in_reg): New function.
2135 (sh_stack_allocsize): Ditto.
2136 (flt_argreg_array): New array used for floating point argument
2137 passing.
2138 (sh_init_flt_argreg): New function.
a8f4cde1 2139 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2140 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2141 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2142 Fix argument passing strategy.
2143 (sh_push_dummy_call_nofpu): Ditto.
2144
5fe830e4
AC
21452003-10-01 Andrew Cagney <cagney@redhat.com>
2146
2147 * value.h (register_value_being_returned): Declare. Replace
2148 "value_being_returned".
2149 * infcall.c (call_function_by_hand): Use
2150 register_value_being_returned.
2151 * infcmd.c (print_return_value): Call
2152 "register_value_being_returned", handle struct return locally.
2153 * values.c (register_value_being_returned): New function. Replace
2154 "value_being_returned".
a8f4cde1 2155
5fe830e4 21562003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2157
2158 * linux-proc.c (linux_do_registers): New function.
2159 (linux_make_note_section): Use linux_do_registers in case of
2160 single threaded inferior programs.
2161
64f395bf
AC
21622003-10-01 Andrew Cagney <cagney@redhat.com>
2163
2164 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2165 use STRUCT_ADDR. When not using "struct return convention", pass
2166 "0" to "value_being_returned". Add FIXMEs.
2167 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2168 value_being_returned. Add comments.
2169 * values.c (value_being_returned): Add fixme.
2170 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2171 (hppa_value_returned_from_stack): Add FIXME.
2172
639d11d3
DC
21732003-09-30 David Carlton <carlton@kealia.com>
2174
2175 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2176 'has_children' and 'next' by 'child' and 'sibling'.
2177 (read_comp_unit): Rework algorithm, breaking body into
2178 read_die_and_children and read_die_and_siblings.
2179 (read_die_and_children, read_die_and_siblings): New.
2180 (read_full_die): Add 'has_children' argument; set it instead of
2181 the die's 'has_children' field. Minor formatting cleanup.
2182 (free_die_list): Use die->child and die->sibling instead of
2183 die->next.
2184 (dump_die_list): Ditto.
2185 (sibling_die): Use die->sibling.
2186 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2187 'has_children' and 'next' fields.
a8f4cde1
RM
2188 (process_die, read_file_scope, read_func_scope)
2189 (read_lexical_block_scope, read_structure_scope)
2190 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2191 (read_namespace, read_subroutine_type, dump_die): Ditto.
2192
5bffac25
AC
21932003-09-30 Andrew Cagney <cagney@redhat.com>
2194
2195 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2196 to 224, not 220.
2197
f30992d4
AC
21982003-09-30 Andrew Cagney <cagney@redhat.com>
2199
2200 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2201 REGISTER_VIRTUAL_SIZE.
2202 * gdbarch.h, gdbarch.c: Regenerate.
2203 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2204 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2205 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2206
2e092625
AC
22072003-09-29 Andrew Cagney <cagney@redhat.com>
2208
2209 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2210 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2211 * gdbarch.h, gdbarch.c: Regenerate.
2212 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2213 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2214
2215 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2216 * remote-vxmips.c (vx_read_register): Ditto.
2217 * remote-vx68.c (vx_read_register): Ditto.
2218 * gnu-nat.c (inf_validate_procs): Ditto.
2219
7a5dd6ee
JB
22202003-09-29 J. Brobecker <brobecker@gnat.com>
2221
2222 * infcall.c (call_function_by_hand): Fix build failure
2223 introduced in the previous change to this file.
2224
1fe43d45
AC
22252003-09-29 Andrew Cagney <cagney@redhat.com>
2226
2227 * NEWS: Mention Objective-C.
2228
e28a332c
JG
22292003-09-29 Jerome Guitton <guitton@act-europe.fr>
2230
2231 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2232 test if the register has been saved on the stack.
2233 (arm_scan_prologue_cache): When analysing the instruction
2234 "str lr, [sp, #-4]", save the address where lr has been stored.
2235
9ff63c35
AC
22362003-09-28 Andrew Cagney <cagney@redhat.com>
2237
7f5f525d
AC
2238 * frame.c (frame_read_unsigned_register): Delete function.
2239 * frame.h (frame_read_unsigned_register): Delete declaration.
2240 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2241 get_frame_register_unsigned.
2242 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2243 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2244 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2245
7f5f525d
AC
2246 * frame.h (frame_read_register): Delete declaration.
2247 * frame.c (frame_read_register): Delete function.
2248 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2249 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2250 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2251 * mips-tdep.c (mips_register_to_value): Ditto.
2252 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2253 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2254
2255 * frame.c (frame_read_signed_register): Delete function.
2256 (frame_read_unsigned_register): Update comments.
2257 * frame.h (frame_read_signed_register): Delete declaration.
2258 * h8300-tdep.c (h8300_print_register): Use
2259 get_frame_register_signed.
2260 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2261
9ff63c35
AC
2262 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2263 Rename VALUE_RETURNED_FROM_STACK.
2264 * infcmd.c (print_return_value): Update.
2265 * infcall.c (call_function_by_hand): Update.
2266
41d041d6
MK
22672003-09-28 Mark Kettenis <kettenis@gnu.org>
2268
2269 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2270 regcache argument and reverse the order of the other two
2271 arguments. Remove local regcache variable. Determine
2272 architecture from REGCACHE. Update comments.
2273 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2274 reverse the order of the other two arguments. Remove local
2275 regcache variable. Determine architecture from REGCACHE. Update
2276 comments.
2277 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2278 prototypes. Update comments.
2279 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2280 comment.
2281 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2282 Update.
2283 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2284 * i386-interix-nat.c (supply_fpregset): Update.
2285 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2286 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2287 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2288 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2289 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2290 Update.
2291 * i386obsd-tdep.c (fetch_core_registers): Update.
2292 * i386v4-nat.c (supply_fpregset): Update.
2293 * x86-64-linux-nat.c (supply_fpregset): Update.
2294 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2295
1cb97e17
MK
22962003-09-27 Mark Kettenis <kettenis@gnu.org>
2297
5716833c
MK
2298 * i386-tdep.h: Put opaque declarations in alphabetical
2299 order. Remove spurious whitespace.
2300 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2301 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2302 * i386-tdep.c (MM0_REGNUM): Remove define.
2303 (i386_mmx_regnum_p): Add gdbarch argument.
2304 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2305 Rewrite using new macro definitions for FPU/SSE registers.
2306 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2307 definitions from i387-tdep.h.
2308 (i386_register_name): Update.
2309 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2310 new macro definitions for FPU/SSE registers.
2311 (i386_extract_return_value): Determine whether floating-point
2312 registers are present by examining REGCACHE's architecture.
2313 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2314 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2315 FPU/SSE registers.
2316 (i386_register_type): Update.
2317 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2318 definitions for FPU registers. Use REGCACHE's architecture to
2319 determine the appropriate register numbers.
2320 (i386_pseudo_register_read, i386_pseudo_register_write,
2321 i386_register_reggroup_p): Update.
2322 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2323 TDEP->mm0_regnum.
2324 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2325 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2326 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2327 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2328 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2329 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2330 *' to `void *'.
2331 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2332 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2333 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2334 definitions for FPU/SSE registers.
2335 (FXSAVE_MXCSR_ADDR): New define.
2336 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2337 TDEP->mm0_regnum.
2338 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2339 (I387_ST0_REGNUM): Define.
2340
41d35cb0
MK
2341 * regcache.h (get_regcache_arch): New prototype.
2342 * regcache.c (get_regcache_arch): New function.
2343
54e74f72
MK
2344 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2345 whitespace.
2346
1cb97e17
MK
2347 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2348 Initialize using ARRAY_SIZE.
2349
0968aa8c
AC
23502003-09-27 Andrew Cagney <cagney@redhat.com>
2351
2352 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2353 "init_frame_pc_default".
2354 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2356 * vax-tdep.c (vax_gdbarch_init): Update.
2357 * v850-tdep.c (v850_gdbarch_init): Update.
2358 * sh64-tdep.c (sh64_gdbarch_init): Update.
2359 * s390-tdep.c (s390_gdbarch_init): Update.
2360 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2361 * mcore-tdep.c (mcore_gdbarch_init): Update.
2362 * h8300-tdep.c (h8300_gdbarch_init): Update.
2363 * cris-tdep.c (cris_gdbarch_init): Update.
2364 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2365
54c84734
MK
23662003-09-26 Mark Kettenis <kettenis@gnu.org>
2367
2368 * regset.h: New file.
2369 * Makefile.in (regset_h): Add.
2370
1b1d3794
AC
23712003-09-25 Andrew Cagney <cagney@redhat.com>
2372
2373 * frame.h (deprecated_frame_saved_regs): Rename
2374 get_frame_saved_regs.
2375 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2376 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2377 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2378 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2379 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2380
e6beb428
AC
23812003-09-25 Andrew Cagney <cagney@redhat.com>
2382
2383 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2384 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2385 and Java.
2386 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2387 arm*-*-* do not use the new frame code.
2388
710122da
DC
23892003-09-25 David Carlton <carlton@kealia.com>
2390
2391 * c-exp.y: Remove 'register' declarations.
2392 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2393
79c2c32d
DC
23942003-09-25 David Carlton <carlton@kealia.com>
2395
2396 * c-exp.y: Include cp-support.h. Add qualified_type.
2397 (yylex): Delete nested type hack; add comments.
2398 * cp-namespace.c (cp_lookup_nested_type): New function.
2399 * cp-support.h: Declare cp_lookup_nested_type.
2400 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2401 instead of value_struct_elt_for_reference.
2402 * valops.c: Include cp-support.h.
2403 (value_aggregate_elt): New function.
2404 (value_namespace_elt): Ditto.
2405 (value_struct_elt_for_reference): Make static.
2406 * value.h: Delete declaration of value_struct_elt_for_reference;
2407 add declaration for value_aggregate_elt.
2408 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2409 (valops.o): Ditto.
2410
898c62f5
DJ
24112003-09-25 Daniel Jacobowitz <drow@mvista.com>
2412
2413 * stack.c: Include "reggroups.h".
2414 (frame_info): Only display registers in all_reggroup.
2415 * Makefile.in (stack.o): Update dependencies.
2416
28cd8767
JG
24172003-09-25 Jerome Guitton <guitton@act-europe.fr>
2418
2419 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2420 "add ip, sp #n" in the prologue.
2421 (arm_scan_prologue): Ditto.
2422
a4ab2b5d
JG
24232003-09-25 Jerome Guitton <guitton@act-europe.fr>
2424
2425 * MAINTAINERS (write after approval): Add myself.
2426
3f244638
AS
24272003-09-25 Andreas Schwab <schwab@suse.de>
2428
2429 * m68k-tdep.c: Include "dwarf2-frame.h".
2430 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2431 * Makefile.in (m68k-tdep.o): Update dependencies.
2432
1c0159e0
CV
24332003-09-25 Corinna Vinschen <vinschen@redhat.com>
2434
2435 * sh-tdep.c (struct frame_extra_info): Remove.
2436 (struct sh_frame_cache): New structure.
2437 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2438 (GET_TARGET_REG): Ditto but target register.
2439 (GET_PUSHED_REG): Remove.
2440 (IS_MOV_ARG_TO_REG): New macro.
2441 (IS_MOV_ARG_TO_IND_R14): New macro.
2442 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2443 (IS_MOVW_PCREL_TO_REG): New macro.
2444 (IS_MOVL_PCREL_TO_REG): New macro.
2445 (IS_SUB_REG_FROM_SP): New macro.
2446 (IS_ARG_MOV): Remove.
2447 (IS_MOV_TO_R14): Remove.
2448 (IS_RESTORE_FP): New macro.
2449 (IS_RTS): New macro.
2450 (IS_LDS): New macro.
2451 (IS_MOV_FP_SP): New macro.
2452 (IS_ADD_REG_TO_FP): New macro.
2453 (IS_ADD_IMM_FP): New macro.
2454 (sh_skip_prologue_hard_way): Remove.
2455 (sh_saved_pc_after_call): Remove.
2456 (sh_frame_chain): Remove.
2457 (sh_find_callers_reg): Remove.
a8f4cde1 2458 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2459 (sh_fp_frame_init_saved_regs): Remove.
2460 (sh_init_extra_frame_info): Remove.
2461 (sh_analyze_prologue): New function.
2462 (sh_skip_prologue): Remove deprecated code. Rely on new function
2463 sh_analyze_prologue when after_prologue fails.
2464 (sh_frame_saved_pc): Remove.
2465 (sh_alloc_frame_cache): New function.
2466 (sh_frame_cache): Ditto.
2467 (sh_frame_prev_register): Ditto.
2468 (sh_frame_this_id): Ditto.
2469 (sh_frame_unwind): New structure defining the heuristic frame
2470 sniffer interface.
2471 (sh_frame_sniffer): New function.
2472 (sh_unwind_sp): Ditto.
2473 (sh_unwind_pc): Ditto.
2474 (sh_unwind_dummy_id): Ditto.
2475 (sh_frame_base_address): Ditto.
2476 (sh_frame_base): New structure defining new frame base code.
2477 (sh_in_function_epilogue_p): New function.
2478 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2479 code and to call all new code instead. Initialize dwarf2 and
2480 heuristic frame sniffer.
2481
5f9769d1
PH
24822003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2483
a8f4cde1
RM
2484 * parser-defs.h (struct exp_descriptor): New definition, containing
2485 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2486 evaluating expressions.
2487 (exp_descriptor_standard): Declare new variable.
2488 (print_subexp): Make global and declare here (from expprint.c).
2489 (dump_subexp): Ditto.
2490 (dump_subexp_body_standard): Declare.
2491 (operator_length_standard): Declare.
2492 (op_name_standard): Declare.
2493 (print_subexp): Declare.
2494 (print_subexp_standard): Declare.
2495
2496 * language.h (struct language_defn): Add la_exp_desc field to hold
2497 pointer to table for language-specific operators.
2498 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2499
2500 * parse.c (operator_length): Move most code to new
5f9769d1 2501 operator_length_standard function. Use language-specific information.
a8f4cde1 2502 (operator_length_standard): New function taking most code from
5f9769d1
PH
2503 operator_length.
2504 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2505
2506 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2507 and OP_EXTENDED_LAST.
a8f4cde1
RM
2508
2509 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2510 Make global; remove static declaration.
2511 Move most code to print_subexp_standard.
a8f4cde1 2512 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2513 print_subexp.
2514 (op_name): Add expression to argument signature.
a8f4cde1 2515 Use langauge-specific op_name.
5f9769d1
PH
2516 Move most code to op_name_standard.
2517 (op_name_standard): New function, containing code formerly in op_name.
2518 (dump_subexp): Use new version of op_name function.
2519 Use language-specific dump_subexp_body, and move most existing code to
2520 dump_subexp_body_standard.
2521 (dump_raw_expression): Use new op_name interface.
2522 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2523 (dump_subexp_body_standard): New function, containing code formerly
2524 in dump_subexp_body.
a8f4cde1 2525
5f9769d1
PH
2526 * language.c (unknown_language): Add default la_exp_desc field and
2527 remove evaluate_exp field.
2528 (auto_language): Ditto.
2529 (local_language): Ditto.
2530 * f-lang.c (f_language_defn): Ditto.
2531 * c-lang.c (c_language_defn): Ditto.
2532 (cplus_language_defn): Ditto.
2533 (asm_language_defn): Ditto.
2534 (minimal_language_defn): Ditto.
2535 * p-lang.c (pascal_language_defn): Ditto.
2536 * m2-lang.c (m2_language_defn): Ditto.
2537 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2538
2539 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2540 Java-specific expression evaluator.
2541 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2542 field.
a8f4cde1 2543 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2544 Scheme-specific expression evaluator.
2545 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2546 field.
2547 * objc-lang.c (print_object_command): Take evaluate_exp from the
2548 la_exp_desc field.
a8f4cde1 2549
5f9769d1 2550 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2551
2552 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2553 la_exp_desc's type.
2554 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2555
24daaebc
PH
25562003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2557
2558 * parser-defs.h (operator_length): Declare.
a8f4cde1 2559
24daaebc
PH
2560 * parse.c (length_of_subexp): Use operator_length to get operator
2561 lengths and arities for operators.
2562 Move most code to new operator_length function.
a8f4cde1 2563 (operator_length): New function absorbing most code from
24daaebc
PH
2564 length_of_subexp.
2565 (prefixify_subexp): Remove large case and use operator_length instead.
2566 (parse_exp_1): Use renamings:
a8f4cde1 2567 dump_prefix_expression => dump_raw_expression and
24daaebc 2568 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2569
24daaebc
PH
2570 * expression.h (dump_prefix_expression): Rename to ...
2571 (dump_raw_expression): New name.
2572 (dump_postfix_expression): Rename to ...
2573 (dump_prefix_expression): New name.
a8f4cde1 2574
24daaebc
PH
2575 * expprint.c (dump_subexp): Make global. Add comment.
2576 Move most existing code to dump_subexp_body.
2577 (dump_subexp_body): New function.
2578 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2579 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2580 work before the expression is prefixified.
2581 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2582 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2583 that's what it does.
a8f4cde1 2584 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2585 prefixified expression.
2586 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2587
8c2957c4
JB
25882003-09-22 Jim Blandy <jimb@redhat.com>
2589
2590 * dwarf2read.c (read_array_type): When building the type for an
2591 array of unspecified length, make sure to choose the upper bound
2592 so that the array's total length comes out to be zero --- that's
2593 how we represent such arrays.
2594
592e3010
MC
25952003-09-22 Michael Chastain <mec@shout.net>
2596
2597 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2598
365c70b1
JJ
25992003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2600
2601 * top.c (quit_force): Fix indirect call to quit_target so
2602 a struct qt_args pointer is passed.
2603
5d6eb653
AC
26042003-09-22 Andrew Cagney <cagney@redhat.com>
2605
2606 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2607 * arch-utils.c (init_frame_pc_noop): Delete function.
2608 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2609 "init_frame_pc".
2610 * mips-tdep.c (mips_gdbarch_init): Ditto.
2611 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2612 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2613 declaration.
2614 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2615 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2616 declaration.
2617 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2618
b222a67f
AG
26192003-09-22 Anthony Green <green@redhat.com>
2620
2621 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2622 declaration.
2623
d5b5ac79
AC
26242003-09-20 Andrew Cagney <cagney@redhat.com>
2625
deafb061
AC
2626 * breakpoint.c: Eliminate ARGSUSED.
2627 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2628 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2629 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2630 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2631 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2632 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2633 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2634 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2635 * wince.c, remote-vx.c: Ditto.
2636
d5b5ac79
AC
2637 * cli/cli-script.c: Remove "register" attributes.
2638 * config/pa/tm-hppa.h: Ditto.
2639 * cli/cli-decode.c: Ditto.
2640 * cli/cli-cmds.c: Ditto.
2641
c6316faa
AC
26422003-09-19 Andrew Cagney <cagney@redhat.com>
2643
2644 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2645 DEPRECATED_NPC_REGNUM.
2646 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2647
f4f99b11
CF
26482003-09-19 Christopher Faylor <cgf@redhat.com>
2649
2650 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2651
1708f284
JB
26522003-09-19 Jim Blandy <jimb@redhat.com>
2653
2654 * macrotab.c (macro_include): Use the correct comparison to find
2655 the appropriate place for this inclusion in the list.
2656
b9fbf434
AC
26572003-09-19 Andrew Cagney <cagney@redhat.com>
2658
2659 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2660 (DEPRECATED_HPUX_TEXT_END): Define.
2661 (deprecated_hpux_text_end): Declare.
2662 (struct target_ops): Declare opaque.
2663 * hppah-nat.c (text_end): Make static.
2664 (deprecated_hpux_text_end): New function.
2665 * exec.c (text_end): Delete global variable.
2666 (NEED_TEXT_START_END): Do not define.
2667 (exec_file_attach): Replace code computing "text_end" code with
2668 call to DEPRECATED_HPUX_TEXT_END.
2669
5b03f266
AC
26702003-09-19 Andrew Cagney <cagney@redhat.com>
2671
2672 * utils.c (align_up, align_down): New functions.
2673 * defs.h (align_up, align_down): Declare.
2674 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2675 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2676 and "align_down".
2677 (round_up, round_down): Delete functions.
2678 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2679 "align_down".
2680 (ROUND_DOWN, ROUND_UP): Delete macros.
2681 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2682 * h8300-tdep.c: Replace "round_up" and "round_down" with
2683 "align_up" and "align_down".
2684 (round_up, round_down): Delete macros.
2685 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2686 "align_down".
2687 (ROUND_UP, ROUND_DOWN): Delete macros.
2688
51db5742
JB
26892003-09-18 J. Brobecker <brobecker@gnat.com>
2690
2691 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2692 hard-coded constant. Use the proper machine name instead.
2693
77949794
AC
26942003-09-17 Andrew Cagney <cagney@redhat.com>
2695
2696 * sparc-tdep.c (legacy_register_name): Delete function.
2697 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2698 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2699 * infcmd.c (gdb_register_name): Delete variable.
2700 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2701 REGISTER_NAME and "tm.h".
2702 * gdbarch.h, gdbarch.c: Regenerate.
2703 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2704 REGISTER_NAMES in comments.
2705 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2706 * m68klinux-nat.c (regmap): Ditto.
2707
b55c33cc
JB
27082003-09-17 Jim Blandy <jimb@redhat.com>
2709
2710 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2711
957e27ac
AC
27122003-09-17 Andrew Cagney <cagney@redhat.com>
2713
2714 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2715 (ppcnbsd_init_abi): Set "use_struct_convention" to
2716 "ppcnbsd_use_struct_convention".
2717
192cb3d4
MK
27182003-09-17 Mark Kettenis <kettenis@gnu.org>
2719
2720 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2721 * gdbarch.h, gdbarch.c: Regenerate.
2722 (stabs_argument_has_addr): New architecture method.
2723 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2724 * arch-utils.c: Include "buildsym.h".
2725 (default_stabs_argument_has_addr): New function.
2726 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2727 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2728
efe59759
AC
27292003-09-17 Andrew Cagney <cagney@redhat.com>
2730
2731 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2732 * gdbarch.h, gdbarch.c: Regenerate.
2733 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2734 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2735 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2736 * sparcnbsd-tdep.c: Update.
a8f4cde1 2737
62700349
AC
27382003-09-17 Andrew Cagney <cagney@redhat.com>
2739
2740 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2741 * gdbarch.h, gdbarch.c: Regenerate.
2742 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2743 * d10v-tdep.c, frame.c: Update.
2744 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2745 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2746 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2747 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2748 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2749 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2750 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2751 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2752 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2753 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2754 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2755 * config/pa/nm-hppah.h: Update.
2756
b9ff3018
AC
27572003-09-16 Andrew Cagney <cagney@redhat.com>
2758
2759 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2760 "use_struct_convention" to "ppc_linux_use_struct_convention".
2761 (ppc_linux_use_struct_convention): New function.
2762 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2763 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2764 "rs6000_use_struct_convention".
2765 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2766 declaration.
2767 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2768 Delete function.
2769
aa1ee363
AC
27702003-09-16 Andrew Cagney <cagney@redhat.com>
2771
2772 * buildsym.c: Remove more occurances of "register".
2773 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2774 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2775 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2776 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2777 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2778 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2779 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2780 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2781
f2ea0907
CV
27822003-09-16 Corinna Vinschen <vinschen@redhat.com>
2783
2784 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2785 numbers to enumeration values.
2786 * sh-tdep.c: Accomodate above change.
2787 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2788 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2789 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2790 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2791 (IS_FPUSH): Rename from IS_FMOV.
2792 (sh_extract_struct_value_address): Remove useless comment.
2793 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2794 instead of own local values.
2795 (sh_dump_tdep): Remove.
2796 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2797 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2798
1c704f11
AC
27992003-09-15 Andrew Cagney <cagney@redhat.com>
2800
2801 * doublest.c (convert_floatformat_to_doublest): No longer need to
2802 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2803
ac79b88b
DJ
28042003-09-15 Daniel Jacobowitz <drow@mvista.com>
2805
2806 * values.c (unpack_double): Call floatformat_is_valid.
2807
1c671366
MK
28082003-09-15 Mark Kettenis <kettenis@gnu.org>
2809
de5227fb
MK
2810 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2811 ps_strings into a long.
2812
1c671366
MK
2813 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2814 _initialize_am64fbsd_nat.
2815
a604369a
KB
28162003-09-15 Kevin Buettner <kevinb@redhat.com>
2817
2818 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2819 associated with DW_AT_ranges attribute is out of bounds.
2820
b3cacbee
DL
28212003-09-15 David Lecomber <dsl@sources.redhat.com>
2822
2823 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2824
d0f37bb2
MC
28252003-09-14 Michael Chastain <mec@shout.net>
2826
2827 * config/m68k/nm-apollo68v.h: Delete.
2828 * config/m68k/xm-apollo68v.h: Delete.
2829
69517000
AC
28302003-09-14 Andrew Cagney <cagney@redhat.com>
2831
2832 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2833 * dcache.c: Update copyrights and descriptions.
2834 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2835
ef8b349d
AC
28362003-09-14 Andrew Cagney <cagney@redhat.com>
2837
2838 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2839 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2840
52f0bd74
AC
28412003-09-14 Andrew Cagney <cagney@redhat.com>
2842
2843 * alpha-nat.c: Remove some occurances of "register".
2844 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2845 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2846 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2847 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2848 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2849 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2850 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2851 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2852 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2853 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2854 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2855 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2856 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2857 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2858 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2859 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2860 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2861 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2862 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2863 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2864 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2865 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2866
4a4b3fed
AC
28672003-09-13 Andrew Cagney <cagney@redhat.com>
2868
2869 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2870 * ppc-tdep.h (struct regcache): Declare opaque.
2871 * objfiles.h (struct objfile_data): Declare opaque.
2872 * cp-support.h (struct objfile): Declare opaque.
2873 * linux-nat.h (target_waitstatus): Declare opaque.
2874
2110b94f
MK
28752003-09-14 Mark Kettenis <kettenis@gnu.org>
2876
1c671366
MK
2877 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2878 (stabs_argument_has_addr): New architecture method.
2879 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2880 * arch-utils.c: Include "buildsym.h".
2881 (default_stabs_argument_has_addr): New function.
2882 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2883 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2884
2110b94f
MK
2885 * cris-tdep.c (cris_gdbarch_init): Set
2886 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2887 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2888 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2889 * mips-tdep.c (mips_gdbarch_init): Likewise.
2890 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2891 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2892
48436ce6
AC
28932003-09-13 Andrew Cagney <cagney@redhat.com>
2894
2895 * values.c (using_struct_return): Delete "function" and "funcaddr"
2896 parameters.
2897 * value.h (using_struct_return): Update declaration.
2898 * infcmd.c (finish_command_continuation): Update.
2899 (finish_command): Update.
2900 * infcall.c (call_function_by_hand): Update.
2901 * eval.c (evaluate_subexp_standard): Update.
2902
403d9909
CF
29032003-09-13 Christopher Faylor <cgf@redhat.com>
2904
2905 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2906 SSE registers since gdb will not operate correctly without this.
2907 Restore include file ordering munged in previous change.
2908 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2909
ebf7d56b
MK
29102003-09-13 Mark Kettenis <kettenis@gnu.org>
2911
8e823e25
MK
2912 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2913 REG_STRUCT_HAS_ADDR.
2914 * gdbarch.c, gdbarch.h: Updated.
2915 * infcall.c (call_function_by_hand): Update.
2916 * stabsread.c (define_symbol): Updated.
a8f4cde1 2917
ebf7d56b
MK
2918 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2919
d3f13f72
CF
29202003-09-12 Christopher Faylor <cgf@redhat.com>
2921
2922 * win32-nat.c: Reorganize so that defines used by target headers are
2923 actually defined by the system headers.
2924 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2925 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2926
14f75137
JB
29272003-09-12 Jim Blandy <jimb@redhat.com>
2928
d646061f
JB
2929 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2930 the file has no .data, .bss, or .rodata sections. Instead wait
2931 until we see a variable alleged to live in one of those sections.
2932
2a13f9bc
JB
2933 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2934 .bss section, presume that any variables we find live in the
2935 .rodata section.
2936
4f49b26b
JB
2937 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2938 offsets for global and static variables.
2939
14f75137
JB
2940 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2941 symbol types are, by definition, in the .data section, so it is
2942 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2943 If there is no .data section, there should be no N_DATA or N_DATA
2944 | N_EXT symbols.
2945
212c460c
MK
29462003-09-12 Mark Kettenis <kettenis@gnu.org>
2947
2948 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2949 (amd64fbsd_sigcontext_addr): Rewrite.
2950 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2951 with correct values.
2952 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2953 (amd64fbsd_init_abi): Fix typo.
2954
68856ea3
AC
29552003-09-12 Andrew Cagney <cagney@redhat.com>
2956
2957 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2958 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2959
627b3ba2
AC
29602003-09-12 Andrew Cagney <cagney@redhat.com>
2961
2962 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2963 "entry_file_highpc". Update comments.
2964 * defs.h (deprecated_inside_entry_file): Rename
2965 "inside_entry_file".
2966 * blockframe.c (deprecated_inside_entry_file): Rename
2967 "inside_entry_file".
2968 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2969 * vax-tdep.c (vax_frame_chain): Update.
2970 * sh64-tdep.c (sh64_frame_chain): Update.
2971 * sh-tdep.c (sh_frame_chain): Update.
2972 * rs6000-tdep.c (rs6000_frame_chain): Update.
2973 * ns32k-tdep.c (ns32k_frame_chain): Update.
2974 * mips-tdep.c (mips_frame_chain): Update.
2975 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2976 * m32r-tdep.c (m32r_frame_this_id): Update.
2977 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2978 * frv-tdep.c (frv_frame_this_id): Update.
2979 * d10v-tdep.c (d10v_frame_this_id): Update.
2980 * cris-tdep.c (cris_frame_chain): Update.
2981 * blockframe.c (legacy_frame_chain_valid): Update.
2982 * avr-tdep.c (avr_frame_this_id): Update.
2983 * arm-tdep.c (arm_prologue_this_id): Update.
2984 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2985 * objfiles.c (objfile_relocate): Update.
2986 * mipsread.c (mipscoff_symfile_read): Update.
2987 (mipscoff_symfile_read): Update.
2988 * mdebugread.c (parse_partial_symbols): Update.
2989 * dwarfread.c (read_file_scope): Update.
2990 * dwarf2read.c (read_file_scope): Update.
2991 * dbxread.c (read_dbx_symtab): Update.
2992 (read_dbx_symtab): Update.
2993 * coffread.c (complete_symtab): Update.
2994
b0abbc58
JJ
29952003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2996
2997 * top.c (quit_target): New static helper function.
2998 (quit_force): Moved code to quit_target(). Call quit_target()
2999 via catch_errors() to catch errors during quit.
3000
a1632d59
DC
30012003-09-11 David Carlton <carlton@kealia.com>
3002
3003 * buildsym.c (finish_block): Use allocate_block to allocate the
3004 block.
3005 * mdebugread.c (new_block): Add FIXME.
3006
5c4e30ca
DC
30072003-09-11 David Carlton <carlton@kealia.com>
3008
3009 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3010 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3011 (recursive_dump_type): Ditto.
3012 * printcmd.c (print_formatted): Ditto.
3013 * typeprint.c (print_type_scalar): Ditto.
3014 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3015 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3016 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3017 maint_cplus_cmd_list.
3018 * cp-support.c: Make maint_cplus_cmd_list extern.
3019 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3020 command.h.
3021 (lookup_symbol_file): Look in possible namespace blocks when
3022 appropriate.
3023 (initialize_namespace_symtab): New.
3024 (get_possible_namespace_block, free_namespace_block)
3025 (check_possible_namespace_symbols)
3026 (check_possible_namespace_symbols_loop)
3027 (check_one_possible_namespace_symbol)
3028 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3029 (_initialize_cp_namespace): Ditto.
3030 * block.h: Declare allocate_block.
3031 * block.c (allocate_block): New.
3032 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3033 allocate_block.
3034 * symfile.h: Update declaration of add_psymbol_to_list.
3035 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3036 question.
3037 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3038 scan_partial_symbols_call.
3039 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3040 helper functions.
3041 (add_partial_symbol): If necessary, scan mangled names for names
3042 of namespaces.
3043 (add_partial_namespace): Add NAMESPACE argument; generate partial
3044 symbols associated to namespaces.
3045 (add_partial_enumeration): Add NAMESPACE argument.
3046 (new_symbol): Allow namespace syms.
3047 (read_namespace): Generate namespace syms.
3048 * objfiles.h: Add opaque declaration of struct symtab.
3049 (struct objfile): Add cp_namespace_symtab member.
3050 * objfiles.c (allocate_objfile): Set
3051 objfile->cp_namespace_symtab.
3052 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3053 dictionary_h, command_h.
3054
33a7c2fc
AC
30552003-09-11 Andrew Cagney <cagney@redhat.com>
3056
3057 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3058 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3059 near the function's end.
3060 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3061 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3062 regcache_raw_write_signed to set SP_REGNUM.
3063
63cd24fe
EZ
30642003-09-11 Elena Zannoni <ezannoni@redhat.com>
3065
3066 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3067 orig_addrs is set up properly.
3068
f27dd7fd
AC
30692003-09-11 Andrew Cagney <cagney@redhat.com>
3070
3071 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3072 * gdbarch.h, gdbarch.c: Re-generate.
3073 * infcall.c (call_function_by_hand): Update.
3074 * hppa-tdep.c (hppa_push_arguments): Update.
3075 * ada-lang.c (place_on_stack): Update.
3076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3077 * sparc-tdep.c (sparc_gdbarch_init): Update.
3078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3079 * hppa-tdep.c (hppa_gdbarch_init): Update.
3080 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3081 stack_align.
3082
f630a401
DJ
30832003-09-11 Daniel Jacobowitz <drow@mvista.com>
3084
3085 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3086 register do need a frame.
3087
0ddabb4c
AC
30882003-09-11 Andrew Cagney <cagney@redhat.com>
3089
3090 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3091 buildable since GDB 5.0.
3092 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3093 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3094 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3095 * irix4-nat.c: Delete file.
3096 * config/mips/irix4.mh: Delete file.
3097 * config/mips/irix3.mh: Delete file.
3098 * config/mips/irix3.mt: Delete file.
3099 * config/mips/tm-irix3.h: Delete file.
3100 * config/mips/nm-irix3.h: Delete file.
3101 * config/mips/xm-irix3.h: Delete file.
3102 * config/mips/nm-irix4.h: Delete file.
3103 * config/mips/xm-irix4.h: Delete file.
3104 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3105
fde2cceb
JB
31062003-09-10 J. Brobecker <brobecker@gnat.com>
3107
3108 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3109 * Makefile.in (hppa-tdep.o): Update dependencies.
3110
66f667f5
JW
31112003-09-10 James E Wilson <wilson@specifixinc.com>
3112
ef5fd69f
JW
3113 * MAINTAINERS: Change my e-mail address. Move to paper trail
3114 section.
66f667f5 3115
53e8aaea
KB
31162003-09-10 Kevin Buettner <kevinb@redhat.com>
3117
3118 * MAINTAINERS (frv): New ISA entry.
3119
dcc6aaff
KB
31202003-09-10 Kevin Buettner <kevinb@redhat.com>
3121
3122 * frv-tdep.c (dis-asm.h): Include.
3123 * Makefile.in (frv-tdep.o): Update dependencies.
3124
932644f0
JJ
31252003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3126
3127 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3128 Fix typo for high range of floating registers.
3129
91c24f0a
DC
31302003-09-09 David Carlton <carlton@kealia.com>
3131
3132 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3133 highpc initialization here out of scan_partial_symbols.
3134 (scan_partial_symbols): Restructure into a recursive version,
3135 calling add_partial_namespace and add_partial_enumeration when
3136 appropriate.
3137 (add_partial_namespace): New.
3138 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3139
c9263853
AC
31402003-09-09 Andrew Cagney <cagney@redhat.com>
3141
e56a0ecc
AC
3142 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3143 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3144 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3145 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3146
794a477a
AC
3147 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3148 (rs6000_push_dummy_call): Set the "TOC" register.
3149
c9263853
AC
3150 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3151 methods "max_register_raw_size", "max_register_virtual_size" or
3152 "register_virtual_size".
3153
afa7d0b2
ILT
31542003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3155
3156 * MAINTAINERS: Update my e-mail address.
3157
7a41266b
AC
31582003-09-09 Andrew Cagney <cagney@redhat.com>
3159
3160 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3161 (rs6000_push_dummy_call): Store the struct return address.
3162 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3163
77b2b6d4
AC
31642003-09-09 Andrew Cagney <cagney@redhat.com>
3165
3166 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3167 "ppc_sysv_abi_push_arguments".
3168 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3169 "ppc_sysv_abi_push_arguments".
3170 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3171 instead of "push_arguments".
3172 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3173
e8a7b686
AC
31742003-09-09 Andrew Cagney <cagney@redhat.com>
3175
3176 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3177 instead of CALL_DUMMY_ADDRESS.
3178
f86f5ca3
PH
31792003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3180
3181 * p-lang.c: Eliminate "register".
3182 * c-lang.c: Ditto.
3183 * expprint.c: Ditto.
3184 * f-lang.c: Ditto.
3185 * jv-lang.c: Ditto.
3186 * language.c: Ditto.
3187 * m2-lang.c: Ditto.
3188 * parse.c: Ditto.
3189 * scm-lang.c: Ditto.
3190 * objc-lang.c: Ditto.
3191
83ee270e
NC
31922003-09-09 Nick Clifton <nickc@redhat.com>
3193
3194 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3195
a89aa300
AC
31962003-09-04 Andrew Cagney <cagney@redhat.com>
3197
3198 * avr-tdep.c: Include "dis-asm.h".
3199 * cris-tdep.c: Include "dis-asm.h".
3200 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3201 instead of corresponding typedef.
3202 * h8300-tdep.c: Include "dis-asm.h".
3203 * ia64-tdep.c: Include "dis-asm.h".
3204 * i386-tdep.c: Include "dis-asm.h".
3205 (i386_print_insn): Use "struct disassemble_info" instead of
3206 corresponding typedef.
3207 * m68k-tdep.c: Include "dis-asm.h".
3208 * mcore-tdep.c: Include "dis-asm.h".
3209 * mips-tdep.c: Include "dis-asm.h".
3210 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3211 instead of corresponding typedef.
3212 * ns32k-tdep.c: Include "dis-asm.h".
3213 * s390-tdep.c: Include "dis-asm.h".
3214 * sparc-tdep.c: Include "dis-asm.h".
3215 * vax-tdep.c: Include "dis-asm.h".
3216 * v850-tdep.c: Include "dis-asm.h".
3217 * mn10300-tdep.c: Include "dis-asm.h".
3218 * rs6000-tdep.c: Include "dis-asm.h".
3219 * xstormy16-tdep.c: Include "dis-asm.h".
3220 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3221 print_insn_xstormy16.
3222 * Makefile.in (v850-tdep.o): Update dependencies.
3223 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3224 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3225 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3226 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3227 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3228 (gdbarch_h): Remove $(dis_asm_h).
3229 * disasm.c: Include "dis-asm.h".
3230 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3231 corresponding typedef.
3232 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3233 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3234 * gdbarch.sh: Do not include "dis-asm.h".
3235 (struct disassemble_info): Declare opaque.
3236 (TARGET_PRINT_INSN): Update declaration.
3237 * gdbarch.h, gdbarch.c: Re-generate.
3238
88a82a65
AC
32392003-09-08 Andrew Cagney <cagney@redhat.com>
3240
3241 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3242 CALL_DUMMY_ADDRESS, change to a predicate.
3243 * gdbarch.h, gdbarch.c: Re-generate.
3244 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3245 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3246 * infcall.c (call_function_by_hand): Ditto.
3247 * sparc-tdep.c (sparc_push_return_address): Ditto.
3248 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3249 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3250 CALL_DUMMY_ADDRESS with entry_point_address.
3251 * v850-tdep.c (v850_push_return_address): Ditto.
3252 * s390-tdep.c (s390_push_return_address): Ditto.
3253 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3254 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3255 * mcore-tdep.c (mcore_push_return_address): Ditto.
3256 * cris-tdep.c (cris_push_return_address): Ditto.
3257 * arm-tdep.c (arm_push_return_address): Ditto.
3258
3e2c4033
AC
32592003-09-08 Andrew Cagney <cagney@redhat.com>
3260
3261 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3262 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3263 and REG_UNMODIFIED to REG_SAME_VALUE.
3264 (execute_cfa_program): Update.
3265 (dwarf2_frame_cache): Update. Initialize table to
3266 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3267 location.
3268 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3269
39efb398
AC
32702003-09-08 Andrew Cagney <cagney@redhat.com>
3271
3272 * gnu-nat.c: Remove "inline" function attribute.
3273 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3274
f5cb5aca
KB
32752003-09-08 Kevin Buettner <kevinb@redhat.com>
3276
3277 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3278 target.
3279
1cb761c7
KB
32802003-09-08 Kevin Buettner <kevinb@redhat.com>
3281
3282 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3283 (frame_extra_info): Rename this struct to frv_unwind_cache.
3284 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3285 Add fields ``prev_sp'' and ``base''.
3286 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3287 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3288 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3289 Delete.
3290 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3291 Revise all callers. Fill in the unwind cache argument and make
3292 other adjustments to account for new frame mechanisms.
3293 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3294 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3295 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3296 (frv_frame_unwind, frv_frame_base): New structs.
3297 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3298 additional arguments expected by this method and adjust function
3299 body accordingly.
3300 (frv_gdbarch_init): Remove calls to the following functions:
3301 set_gdbarch_deprecated_init_frame_pc(),
3302 set_gdbarch_deprecated_saved_pc_after_call(),
3303 set_gdbarch_deprecated_frame_chain(),
3304 set_gdbarch_deprecated_frame_saved_pc(),
3305 set_gdbarch_deprecated_frame_init_saved_regs(),
3306 set_gdbarch_deprecated_push_arguments(),
3307 set_gdbarch_deprecated_push_return_address(),
3308 set_gdbarch_deprecated_pop_frame(),
3309 set_gdbarch_deprecated_call_dummy_words(),
3310 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3311 set_gdbarch_deprecated_init_extra_frame_info(),
3312 set_gdbarch_deprecated_dummy_write_sp(), and
3313 set_gdbarch_deprecated_pc_in_call_dummy().
3314 Add calls to the following functions:
3315 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3316 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3317 frame_base_set_default().
3318 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3319
68f6cf99
MK
33202003-09-09 Mark Kettenis <kettenis@gnu.org>
3321
3322 * dwarf2-frame.c (read_encoded_value): Add support for
3323 DW_EH_PE_aligned encoding.
3324
73b65bb0
DJ
33252003-09-08 Daniel Jacobowitz <drow@mvista.com>
3326
3327 * infrun.c (normal_stop): Don't print a message if the inferior
3328 has exited.
3329
7c8a5605
JB
33302003-09-08 Jim Blandy <jimb@redhat.com>
3331
3332 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3333 * dbxread.c: #include "gdb_assert.h".
3334 (read_dbx_symtab): If the objfile has no .data section, use the
3335 section index for the .bss section instead.
3336
7dd88986
DJ
33372003-09-08 Daniel Jacobowitz <drow@mvista.com>
3338
3339 * frame.c (deprecated_safe_get_selected_frame): New function.
3340 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3341 * findvar.c (read_var_value): Call it.
3342
55ff77ac
CV
33432003-09-08 Corinna Vinschen <vinschen@redhat.com>
3344
3345 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3346 (sh64-tdep.o): Add dependencies.
3347 * configure.tgt: Add FIXME to sh-*-linux*.
3348 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3349 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3350 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3351 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3352 * sh64-tdep.c: New file, containing all sh64 related code from
3353 sh-tdep.c.
3354 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3355 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3356 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3357 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3358 * config/sh/wince.mt (TDEPFILES): Ditto.
3359
bfb39158
DJ
33602003-09-07 Daniel Jacobowitz <drow@mvista.com>
3361
3362 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3363 (stop_wait_callback): Handle !lp->signalled also.
3364 (lin_lwp_has_pending, flush_callback): New functions.
3365 (lin_lwp_wait): Call flush_callback.
3366 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3367 (linux_proc_pending_signals): New function.
3368 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3369
9407de8e
DJ
33702003-09-07 Daniel Jacobowitz <drow@mvista.com>
3371
3372 From Nick Kelsey <nickk@ubicom.com>:
3373 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3374 when the stop PC is at the beginning of a function also.
3375
2ef47cd0
DJ
33762003-09-06 Daniel Jacobowitz <drow@mvista.com>
3377
3378 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3379 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3380
6f4492c8
MK
33812003-09-06 Mark Kettenis <kettenis@gnu.org>
3382
3383 * sol-thread.c: Include "gdb_string.h".
3384
d3420b2f
MK
33852003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3386
3387 * gcore.c: Reorder include files in alphabetical order. Include
3388 "gdb_assert.h". Various coding style fixes.
3389 (derive_stack_segment, derive_heap_segment): Replace check for
3390 non-null BOTTOM and TOP with gdb_assert.
3391 (derive_heap_segment): Replace check for successful creation of
3392 ZERO with gdb_assert.
3393 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3394
5220ea4c
AC
33952003-09-04 Andrew Cagney <cagney@redhat.com>
3396
3397 * thread-db.c (verbose_dlsym): New function.
3398 (thread_db_load): Use verbose_dlsym
3399 (thread_db_new_objfile): Print that libthread_db was loaded, and
3400 that thread debugging was enabled.
3401
6e8c2c06
AC
34022003-09-04 Andrew Cagney <cagney@redhat.com>
3403
3404 * configure.tgt: Add "mips64*-*-*" target. Delete
3405 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3406 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3407 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3408 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3409 mips*-sony-*, and mips64*-*-elf* targets.
3410 * config/mips/embedl.mt: Delete file.
3411 * config/mips/embedl64.mt: Delete file.
3412 * config/mips/mips.mt: Delete file.
3413 * config/mips/mips64.mt: Delete file.
3414 * config/mips/tm-embed.h: Delete file.
3415 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3416 * config/mips/embed64.mt: Delete out-of-date comment.
3417
3a3bc038
AC
34182003-09-04 Andrew Cagney <cagney@redhat.com>
3419
3420 * hppa-tdep.c (hppa_gdbarch_init): Set
3421 "have_nonsteppable_watchpoint".
3422 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3423 * mips-tdep.c (mips_dump_tdep): Do not print
3424 HAVE_NONSTEPPABLE_WATCHPOINT.
3425 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3426 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3427 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3428 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3429
a957e642
CV
34302003-09-04 Corinna Vinschen <vinschen@redhat.com>
3431
3432 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3433 unused code. Add comment.
3434
a6fbcf2f
CV
34352003-09-04 Corinna Vinschen <vinschen@redhat.com>
3436
3437 * breakpoint.c (watchpoint_check): Check for pc being in an
3438 epilogue if watchpoint frame couldn't be found.
3439
c14a44d5
AC
34402003-09-04 Andrew Cagney <cagney@redhat.com>
3441
3442 * Makefile.in: Re-generate all dependencies.
3443
f6c40618
AC
34442003-09-03 Andrew Cagney <cagney@redhat.com>
3445
3446 * arch-utils.h (legacy_print_insn): Delete declaration.
3447 * arch-utils.c (legacy_print_insn): Delete function.
3448 * disasm.c (deprecated_tm_print_insn_info): Delete.
3449 (_initialize_disasm): Delete function, contained code initializing
3450 deprecated_tm_print_insn_info.
3451 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3452 (deprecated_tm_print_insn_info): Delete.
3453 (TARGET_PRINT_INSN): Do not provide a default.
3454 * gdbarch.h, gdbarch.c: Re-generate.
3455
242e8be5
AC
34562003-09-03 Andrew Cagney <cagney@redhat.com>
3457
3458 * disasm.c (fprintf_disasm): New function.
3459 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3460 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3461 reverts 2003-08-14 change.
3462 (_initialize_disasm): Call "init_disassemble_info", instead of
3463 INIT_DISASSEMBLE_INFO_NO_ARCH.
3464
3ffc3dda
MS
34652003-09-03 Michael Snyder <msnyder@redhat.com>
3466
3467 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3468
52d16ba8
AC
34692003-09-03 Andrew Cagney <cagney@redhat.com>
3470
3471 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3472 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3473 * symfile.c (syms_from_objfile): Update.
3474 (reread_symbols): `Update
3475 * exec.c (exec_file_attach): Update.
3476 (exec_file_attach): Update.
3477 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3478 2003-08-29 change.
3479 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3480
eb5492fa
DJ
34812003-09-03 Daniel Jacobowitz <drow@mvista.com>
3482
3483 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3484 trad-frame.h.
3485 (arm_get_cache): Delete macro.
3486 (struct arm_prologue_cache): Update comments. Make saved_regs into
3487 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3488 to prev_sp.
3489 (thumb_scan_prologue): Update for cache changes. Don't call
3490 DEPRECATED_PC_IN_CALL_DUMMY.
3491 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3492 argument and use it in desperation search for our prologue. Do not
3493 search past the specified PC.
3494 (arm_make_prologue_cache): Simplify.
3495
3496 (arm_prologue_this_id, arm_prologue_prev_register)
3497 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3498 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3499 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3500 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3501 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3502
3503 (arm_frame_chain_valid, arm_find_callers_reg)
3504 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3505 (arm_pop_frame): Delete obsolete methods.
3506 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3507
3508 (arm_gdbarch_init): Update for new frame methods. Register prologue
3509 and sigtramp unwinders. Set the default frame base method.
3510
3511 * Makefile.in (arm-tdep.o): Update dependencies.
3512 * varobj.c (find_frame_addr_in_frame_chain): Call
3513 get_frame_base_address.
3514 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3515
24de872b
DJ
35162003-09-03 Daniel Jacobowitz <drow@mvista.com>
3517
3518 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3519 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3520 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3521 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3522 Take NEXT_FRAME and CACHE arguments. Call
3523 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3524 Set unwound_pc in CACHE instead of modifying the frame argument.
3525 Don't bother checking the frame type when looking for sigtramp
3526 frames.
3527 (arm_make_prologue_cache, arm_frame_chain)
3528 (arm_init_extra_frame_info): New functions.
3529
9b8d791a
DJ
35302003-09-03 Daniel Jacobowitz <drow@mvista.com>
3531
3532 * arm-tdep.c (arm_get_cache): Define.
3533 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3534 unwound_sp, unwound_pc, and saved_regs.
3535 (thumb_scan_prologue): Take a cache instead of the frame.
3536 (arm_scan_prologue): Likewise.
3537 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3538 instead of a temporary frame.
3539 (arm_init_extra_frame_info): Allocate and use a cache.
3540 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3541
7ee3275f
AC
35422003-09-03 Andrew Cagney <cagney@redhat.com>
3543
3544 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3545 * config/mips/wince.mt (TM_CLIBS): Ditto.
3546 * config/sh/wince.mt (TM_CLIBS): Ditto.
3547 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3548 * config/sparc/sp64.mt (CC): Delete.
3549
57b29be7
AC
35502003-09-03 Andrew Cagney <cagney@redhat.com>
3551
3552 * defs.h: Do not include "arch-utils.h".
3553 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3554 GDB_MULTI_ARCH_PURE.
3555 * configure.in (GDB_MULTI_ARCH): Do not define.
3556 * configure, config.in: Regenerate.
3557 * configure.tgt: Do not set variable "gdb_multi_arch".
3558 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3559 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3560 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3561 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3562 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3563 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3564 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3565 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3566 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3567 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3568 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3569 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3570 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3571 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3572 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3573 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3574 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3575 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3576
12e035e2
MC
35772003-08-30 Michael Chastain <mec@shout.net>
3578
3579 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3580 * config/m68k/nm-hp300hpux.h: Delete.
3581 * config/m68k/tm-hp300hpux.h: Delete.
3582 * config/m68k/xm-hp300hpux.h: Delete.
3583 * config/m68k/xm-hp300bsd.h: Delete.
3584 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3585 tm-hp300hpux.h, xm-hp300hpux.h.
3586 * somsolib.c: Remove comment about hp300 shared libraries.
3587
bda34dc2
MK
35882003-08-31 Mark Kettenis <kettenis@gnu.org>
3589
5bca7895
MK
3590 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3591 Only define PTRACE_GET_THREAD_AREA is not already defined.
3592 Various style fixes in code and comments and some additional
3593 spelling fixes in comments. Move after functions dealing with
3594 debug registers.
3595 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3596 Fix coding-style.
3597
bda34dc2
MK
3598 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3599 frame_unwind_register_unsigned instead of
3600 frame_unwind_unsigned_register.
3601
c890192f
MK
36022003-08-30 Mark Kettenis <kettenis@gnu.org>
3603
3604 * configure.in: Search for gethostbyname in libnsl.
3605 * configure: Regenerated.
3606
60fac5b8
MK
36072003-08-29 Mark Kettenis <kettenis@gnu.org>
3608
e294916c
MK
3609 * configure.in: Remove redundant AC_MSG_RESULT in check for
3610 uintptr_t in stdint.h.
3611 * configure: Regenerated.
3612
c40d267a
MK
3613 * amd64-nat.h (struct regcache): Add opaque declaration.
3614
60fac5b8
MK
3615 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3616 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3617 Change "register array" to "register cache" in comments.
3618 (x86_64_linux_gregset64_reg_offset): New variable.
3619 (GETREGS_SUPPLIES): Remove macro.
3620 (supply_gregset): Call amd64_supply_native_gregset instead of
3621 x86_64_linux_supply_gregset.
3622 (fill_gregset): Rename `regno' to `regnum'. Call
3623 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3624 (store_regs): Rename `regno' to `regnum'.
3625 (store_fpregs): Rename `regno' to `regnum'.
3626 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3627 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3628 Reorganize function a bit.
3629 (store_inferior_registers): Rename `regno' to `regnum'. Use
3630 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3631 Reorganize function a bit.
3632 (_initialize_x86_64_linux_nat): New function.
3633 * config/i386/x86-64linux.mh.
3634
546143b6
AC
36352003-08-29 Andrew Cagney <cagney@redhat.com>
3636
3637 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3638 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3639 (target_remove_watchpoint): Delete macro.
3640 (target_insert_watchpoint): Delete macro.
3641 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3642 (remote_mips_stopped_by_watchpoint): Delete declaration.
3643 (remote_mips_remove_watchpoint): Delete declaration.
3644 (remote_mips_set_watchpoint): Delete declaration.
3645 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3646 * remote-mips.c (_initialize_remote_mips): Set
3647 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3648 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3649 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3650 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3651 (mips_stopped_by_watchpoint): Rename
3652 remote_mips_stopped_by_watchpoint.
3653 (mips_can_hardware_watchpoint): Rename
3654 remote_mips_can_use_hardware_watchpoint, update function
3655 signature.
3656
7bace51b
MK
36572003-08-29 Mark Kettenis <kettenis@gnu.org>
3658
b0f5c6f2
MK
3659 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3660 USER_DS. We haven't given them a register number yet.
3661
2a6d284d
MK
3662 * amd64-nat.h: New file.
3663 * amd64-nat.c: New file.
3664 * amd64fbsd-nat.c: Include "amd64-nat.h".
3665 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3666 (amd64fbsd32_r_reg_offset): New variable.
3667 (supply_gregset): Simply call amd64_supply_native_gregset.
3668 (fill_gregset): Rename `regno' to `regnum'. Simply call
3669 amd64_collect_native_gregset.
3670 (fill_fpregset): Rename `regno' to `regnum'.
3671 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3672 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3673 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3674 `fpregset_t'. Call amd64_supply_native_gregset instead of
3675 supply_gregset. Call x86_64_supply_fxsave instead of
3676 supply_fpregset.
3677 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3678 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3679 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3680 `fpregset_t'. Call amd64_collect_native_gregset instead of
3681 fill_gregset. Call x86_64_collect_fxsave instead of
3682 fill_fpregset.
3683 (_initialize_am64fbsd_nat): Initialize
3684 amd64_native_gregset32_reg_offset and
3685 amd64_native_gregset64_reg_offset.
3686 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3687
a16d75cc
MK
3688 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3689 null pointer. Fix typo in comment.
3690
7bace51b
MK
3691 * regcache.c (supply_register): Reimplement to call
3692 regcache_raw_supply.
3693 (regcache_collect): Reimplement by calling regcache_raw_collect.
3694
9a661b68
MK
36952003-08-28 Mark Kettenis <kettenis@gnu.org>
3696
3697 * regcache.c (register_buffer): Consitify first argument.
3698 (regcache_raw_supply, regcache_raw_collect): New
3699 functions.
3700
e94cc8fa
DJ
37012003-08-28 Daniel Jacobowitz <drow@mvista.com>
3702
3703 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3704 by Nathan J. Williams.
3705
c64bd0ce
DJ
37062003-08-28 Daniel Jacobowitz <drow@mvista.com>
3707
3708 * lin-lwp.c (wait_lwp): New function, copied from
3709 stop_wait_callback. Clean up.
3710 (stop_wait_callback): Use wait_lwp.
3711
e5ab0dce
AC
37122003-08-28 Andrew Cagney <cagney@redhat.com>
3713
3714 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3715 flavour and disassembler options.
3716 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3717 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3718 deprecated_tm_print_insn_info.
a8f4cde1 3719
a788de9b
AC
37202003-08-27 Andrew Cagney <cagney@redhat.com>
3721
3722 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3723 Use target_read_memory.
3724 (s390_get_frame_info): Update. Do not reference
3725 deprecated_tm_print_insn_info.
3726 (s390_check_function_end, s390_is_sigreturn): Ditto.
3727
36482093
AC
37282003-08-27 Andrew Cagney <cagney@redhat.com>
3729
3730 * Makefile.in (cris-tdep.o): Update dependencies.
3731 * cris-tdep.c: Include "gdb_assert.h".
3732 (cris_gdbarch_init): Set print_insn.
3733 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3734 (cris_delayed_get_disassembler): Simplify, directly call the
3735 disassembler returned by cris_get_disassembler.
3736 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3737 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3738 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3739 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3740 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3741 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3742 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3743 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3744 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3745 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3746 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3747 (gdb_print_insn_sparc): Delete function.
3748 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3749 deprecated_tm_print_insn_info.
3750 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3751 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3752 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3754 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3755 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3756 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3757 (s390_gdbarch_init): Set print_insn.
3758
0285512f
AC
37592003-08-27 Andrew Cagney <cagney@redhat.com>
3760
3761 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3762 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3763 * infcall.c (call_function_by_hand): Convert the entry point
3764 address into a code address.
3765
cdcd5552
AC
37662003-08-27 Andrew Cagney <cagney@redhat.com>
3767
3768 * dsrec.c: Include "gdb_string.h".
3769 * Makefile.in (dsrec.o): Update dependencies.
3770
e85cddad
MC
37712003-08-27 Michael Chastain <mec@shout.net>
3772
3773 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3774
8bbfbb23
AC
37752003-08-27 Andrew Cagney <cagney@redhat.com>
3776
3777 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3778 (alpha_osf1_init_abi): Do not set call_dummy_address.
3779
ba058b66
DC
37802003-08-27 David Carlton <carlton@kealia.com>
3781
3782 From Randolph Chung <tausq@debian.org>:
3783 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3784 compiles with -Wformat-nonliteral -Werror.
3785
87f84c9d
JB
37862003-08-26 Jim Blandy <jimb@redhat.com>
3787
3788 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3789 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3790 bfd_lookup_symbol, since we only want symbols in code sections.
3791 (look_for_base): Pass zero as the SECT_FLAGS argument to
3792 bfd_lookup_symbol, since we're not concerned about which section
3793 the symbol is in.
3794
102d615a
JJ
37952003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3796
3797 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3798 we are frameless or the return address register is already known.
102d615a 3799
cc7ad3ea
AC
38002003-08-26 Andrew Cagney <cagney@redhat.com>
3801
3802 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3803 in size. Add comments.
3804
af8b88dd
JJ
38052003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3806
3807 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3808 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3809
e0a4f5a1
JM
38102003-08-26 Jason Merrill <jason@redhat.com>
3811
3812 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3813 case out of #ifdef MIPS block.
3814
4ae9ee8e
DJ
38152003-08-25 Daniel Jacobowitz <drow@mvista.com>
3816
3817 PR java/1322
3818 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3819 available before calling SECT_OFF_TEXT.
3c164570 3820 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3821
004d836a
JJ
38222003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3823
a8f4cde1 3824 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3825 bof, and nat0-nat127 as pseudo-registers.
3826 (ia64_frame_cache): New struct used to cache frame info.
3827 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3828 register grouping so registers without names are still saved and
004d836a 3829 restored.
a8f4cde1 3830 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3831 pseudo values.
3832 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3833 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3834 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3835 ia64_frame_cache.
3836 (examine_prologue): Change prototype to add next_frame pointer.
3837 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3838 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3839 alloc insn and if equal, mark as not frameless. At end of routine,
3840 if not frameless, calculate registers for the previous frame and store
3841 in the cache, if a cache is provided.
3842 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3843 and pass 0 for next_frame.
3844 (ia64_store_return_value): Change to use convert_typed_floating()
3845 instead of calling ia64_convert_to_raw().
3846 (ia64_extract_return_value): Change to use convert_typed_floating()
3847 instead of calling ia64_convert_to_virtual().
3848 (ia64_frame_cache): New routine to support new frame model.
3849 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3850 (ia64_frame_sniffer): Ditto.
3851 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3852 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3853 (ia64_sigtramp_frame_prev_register): Ditto.
3854 (ia64_sigtramp_frame_sniffer): Ditto.
3855 (ia64_frame_base_address): Ditto.
3856 (ia64_extract_struct_value_address): Change to issue error message.
3857 (ia64_frame_align): New routine to align sp.
3858 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3859 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3860 ia64_push_dummy_call().
3861 (ia64_push_return_address): Ditto.
3862 (ia64_unwind_dummy_id): New function.
3863 (ia64_unwind_pc): Ditto.
3864 (ia64_convert_register_p): Ditto.
3865 (ia64_register_to_value): Ditto.
3866 (ia64_value_to_register): Ditto.
3867 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3868 (ia64_register_byte, ia64_register_raw_size): Ditto.
3869 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3870 (ia64_saved_pc_after_call): Ditto.
3871 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3872 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3873 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3874 (ia64_register_convert_to_raw): Ditto.
3875 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3876 (ia64_init_extra_frame_info): Ditto.
3877 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3878 (ia64_gdbarch_init): Remove registering of deprecated functions that
3879 are no longer used. Add registration of new gdbarch functions.
3880 Remove registering deprecated_write_sp. Replace
3881 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3882 Delete set_gdbarch_deprecated_register_convertible(),
3883 set_gdbarch_deprecated_register_convert_to_virtual(), and
3884 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3885 set_gdbarch_deprecated_register_size(),
3886 set_gdbarch_deprecated_register_bytes(),
3887 set_gdbarch_pcregnum(),
3888 set_gdbarch_deprecated_register_byte(),
3889 set_gdbarch_deprecated_register_raw_size(),
3890 set_gdbarch_deprecated_max_register_raw_size(),
3891 set_gdbarch_deprecated_register_virtual_size(),
3892 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3893 Replace set_gdbarch_deprecated_extract_return_value() with
3894 set_gdbarch_extract_return_value(). Remove calls to:
3895 set_gdbarch_deprecated_saved_pc_after_call();
3896 set_gdbarch_deprecated_frame_chain(),
3897 set_gdbarch_deprecated_frame_saved_pc(),
3898 set_gdbarch_deprecated_frame_init_saved_regs(),
3899 set_gdbarch_deprecated_get_saved_register(),
3900 set_gdbarch_deprecated_call_dummy_words(),
3901 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3902 set_gdbarch_deprecated_init_extra_frame_info(),
3903 set_gdbarch_deprecated_frame_args_address(),
3904 set_gdbarch_deprecated_frame_locals_address(),
3905 and set_gdbarch_deprecated_dummy_write_sp().
3906 Add set_gdbarch_convert_register_p(),
3907 set_gdbarch_register_to_value(),
3908 set_gdbarch_value_to_register(),
3909 set_gdbarch_push_dummy_call(),
3910 set_gdbarch_frame_align(),
3911 set_gdbarch_unwind_dummy_id(),
3912 set_gdbarch_unwind_pc(),
3913 frame_unwind_append_sniffer(),
3914 frame_unwind_append_sniffer(),
3915 and frame_base_set_default().
3916
aede7613
CD
39172003-08-25 Chris Demetriou <cgd@broadcom.com>
3918
3919 * configure.tgt: Document need for special "mipsisa64" handling.
3920 (mipsisa64*-*-linux64): Handle as target linux64.
3921 (mipsisa64*-*-*): Handle as target embed64.
3922
43c3a82e
MC
39232003-08-18 Michael Chastain <mec@shout.net>
3924
3925 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3926 objfile bug.
3927
6564f77d
MK
39282003-08-24 Mark Kettenis <kettenis@gnu.org>
3929
2de139ba
MK
3930 * i387-tdep.h: Update copyright date.
3931 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3932
6564f77d
MK
3933 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3934 CFLAGS games to reflect reality.
3935
42cf1509
AC
39362003-08-24 Andrew Cagney <cagney@redhat.com>
3937
3938 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3939 GDB_MULTI_ARCH is always non-zero.
3940 * osabi.c (_initialize_gdb_osabi): Ditto.
3941 (gdbarch_init_osabi): Ditto.
3942 * sparc-tdep.c: Ditto for #if code.
3943
0485f6ad
MK
39442003-08-23 Mark Kettenis <kettenis@gnu.org>
3945
3946 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3947 Update comments.
3948 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3949 comments.
3950 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3951 x86_64_supply_fxsave.
3952 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3953 x86_64_supply_fxsave.
3954 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3955 x86_64_supply_fxsave.
3956
c7716133
AJ
39572003-08-23 Andreas Jaeger <aj@suse.de>
3958
3959 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3960 i387_supply_fxsave.
3961
ed504bdf
MK
39622003-08-23 Mark Kettenis <kettenis@gnu.org>
3963
3964 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3965 i387_supply_register.
3966 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3967 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3968 i387_supply_fsave.
3969 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3970 i387_supply_fxsave.
3971 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3972 i387_supply_fsave.
3973 * i386bsd-nat.c (supply_fpregset): Adjust call to
3974 i387_supply_fsave.
3975 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3976 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3977 supply_fpregset.
3978 (store_inferior_registers): Remove extraneous whitespace. Call
3979 i387_fill_fsave instead of fill_fpregset.
3980 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3981 (supply_fpregset): Likewise.
3982 * i386v4-nat.c (supply_fpregset): Adjust call to
3983 i387_supply_fsave.
3984 * i386-interix-nat.c (supply_fpregset): Adjust call to
3985 i387_supply_fsave.
3986 * i386-linux-nat.c (supply_fpregset): Adjust call to
3987 i387_supply_fsave.
3988 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3989 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3990 i387supply_fsave and i387_supply_fxsave.
3991 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3992 Incorporate code from `i387_supply_register.
3993 (i387_supply_register): Remove.
3994 (i387_supply_fxsave): Add `regnum' argument.
3995 Update comments.
3996 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3997 prototype.
3998 (i387_supply_register): remove prototype.
3999 Update comments.
a8f4cde1 4000
4be5d520
MC
40012003-08-22 Michael Chastain <mec@shout.net>
4002
4003 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4004 Add lines for files in gdb/testsuite/gdb.cp/* that are
4005 still not 8.3 unique.
4006
7ed85d26
DJ
40072003-08-22 Daniel Jacobowitz <drow@mvista.com>
4008
4009 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4010 TYPE_VPTR_FIELDNO is valid.
4011
eb0d3137
MK
40122003-08-19 Mark Kettenis <kettenis@gnu.org>
4013
4014 * utils.c (set_width_command): Remove prototypes.
4015 (set_screen_size): New prototype.
4016 (init_page_info): Simplify by fetching the screen size from
4017 Readline. Call set_screen_size.
4018 (set_screen_size): New function.
4019 (set_width): Add missing whitespace in comment.
4020 (set_width_command): Call set_screen_size.
4021 (set_height_command): New function.
4022 (initialize_utils): Fix formatting. Make "set height" command
4023 call set_height_command. Remove redundant code that turns off
4024 pagination if output isn't a terminal. Remove redundant call to
4025 set_width_command.
a8f4cde1 4026
7e6d0ac8
MK
40272003-08-22 Mark Kettenis <kettenis@gnu.org>
4028
3567a8ea
MK
4029 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4030 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4031 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4032 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4033 `case' keyword.
4034 (sparc64_register_info): Give the reister with number
4035 SPARC64_STATE_REGNUM a name.
4036 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4037 %asi and %ccr.
4038 (sparc64_push_dummy_call): Take BIAS into account when checking
4039 stcak alignment.
4040 (sparc_software_single_step): Remove assertions that check whether
4041 NPC and NNPC were zero.
4042 (sparc_supply_rwindow): Make public. Merge functionality with
4043 sparc64_supply_rwindow.
4044 (sparc_fill_rwindow): Make public. Merge functionality with
4045 sparc64_fill_rwindow.
4046 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4047 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4048 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4049 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4050 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4051
7e6d0ac8
MK
4052 * reggroups.c: Add whitespace after declarations of local
4053 variables in functions.
4054
72e5f484
MC
40552003-08-21 Michael Chastain <mec@shout.net>
4056
4057 * gdbtypes.h: Change array bound type from an int to enum.
4058
435ac228
AC
40592003-08-21 Andrew Cagney <cagney@redhat.com>
4060
4061 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4062 * config/sparc/tm-sparc.h: Ditto.
4063 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4064 unconditionally.
4065 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4066
0d0e1a63
MK
40672003-07-13 Mark Kettenis <kettenis@gnu.org>
4068
4069 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4070 (register_objfile_data, set_objfile_data, objfile_data): New
4071 prototypes.
4072 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4073 prototypes.
4074 (allocate_objfile): Call objfile_alloc_data.
4075 (free_objfile): Call objfile_free_data.
4076 (struct objfile_data): New.
4077 (struct objfile_data_registration): New.
4078 (struct objfile_data_registry): New.
4079 (objfile_data_registry): New variable.
4080 (register_objfile_data): New function.
4081 (objfile_alloc_data, objfile_free_data): New functions.
4082 (set_objfile_data, objfile_data): New functions.
4083 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4084 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4085 (_initialize_dwarf2_frame): New function and prototype.
4086
d90cf509
AC
40872003-08-21 Andrew Cagney <cagney@redhat.com>
4088
4089 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4090 a specific architecture.
4091 * arch-utils.h (set_architecture_from_arch_mach): Delete
4092 declaration.
4093 (target_architecture_hook): Delete declaration.
4094 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4095 (default_float_format): Assume GDB_MULTI_ARCH.
4096 (default_double_format): Assume GDB_MULTI_ARCH.
4097 (set_endian_from_file): Delete function.
4098 (arch_ok): Delete function.
4099 (set_arch): Delete function.
4100 (set_architecture_from_arch_mach): Delete function.
4101 (set_architecture_from_file): Delete function.
4102 (set_architecture): Assume GDB_MULTI_ARCH.
4103 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4104
8b39fe56
MK
41052003-08-21 Mark Kettenis <kettenis@gnu.org>
4106
4107 Rewrite FreeBSD/sparc64 native configuration.
4108 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4109 * sparc64fbsd-nat.c: New file.
4110 * sparc64fbsd-tdep.c: New file.
4111 * sparc64-tdep.c sparc64-tdep.h: New files.
4112 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4113 sparc64fbsd-tdep.o): New dependencies.
4114 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4115 and sparc64fbsd-tdep.c.
4116 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4117 * config/sparc/fbsd.mh: Remove copyright notice.
4118 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4119 sparcbsd-nat.o.
4120 * config/sparc/fbsd.mt: Remove copyright notice.
4121 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4122 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4123 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4124 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4125 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4126 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4127 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4128 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4129 "sparc/tm-sp64.h".
4130 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4131 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4132
a7f19c79
MC
41332003-08-21 Michael Chastain <mec@shout.net>
4134
4135 * symtab.h: Add doco on the space critical structures and
4136 some measurements of space usage.
4137
da08ea5b
MS
41382003-08-21 Michael Snyder <msnyder@redhat.com>
4139
4140 * tracepoint.c (trace_dump_command): Trace break address
4141 is subject to DECR_PC_AFTER_BREAK.
4142 (set_traceframe_context): Make "trace_line" an int.
4143 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4144
6df2bf50
MS
41452003-08-20 Michael Snyder <msnyder@redhat.com>
4146
4147 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4148 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4149 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4150 argument passing.
a8f4cde1 4151 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4152 functions, replace sh_push_dummy_call.
4153 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4154
0955bbf0
MC
41552003-08-20 Michael Chastain <mec@shout.net>
4156
4157 * gdbtypes.h (struct main_type): Rearrange to save space.
4158
260a4188
MS
41592003-08-20 Michael Snyder <msnyder@redhat.com>
4160
4161 * trad-frame.c: Comment typo fix.
4162
8baa6f92
KB
41632003-08-20 Michael Snyder <msnyder@redhat.com>
4164 Kevin Buettner <kevinb@redhat.com>
4165
4166 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4167 (frv_frame_init_saved_regs): Add declaration.
4168 (frame_extra_info): Add new field ``saved_regs''.
4169 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4170 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4171 Update frame related code.
4172 (frv_extract_struct_value_address): Adjust formatting.
4173 * Makefile.in (frv-tdep.o): Update dependencies.
4174 * config/frv/tm-frv.h (target_insert_watchpoint)
4175 (target_remove_watchpoint, target_insert_hw_breakpoint)
4176 (target_remove_hw_breakpoint): Delete these macros.
4177 (remote_insert_watchpoint, remote_remove_watchpoint)
4178 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4179 these declarations.
4180
87193939
MC
41812003-08-20 Michael Chastain <mec@shout.net>
4182
4183 * defs.h (ENUM_BITFIELD): New macro.
4184 * symtab.h (ENUM_BITFIELD): Use it.
4185 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4186
062103ba
SA
41872003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4188
4189 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4190
8b148df9
AC
41912003-08-18 Andrew Cagney <cagney@redhat.com>
4192
4193 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4194 * gdbarch.h, gdbarch.c: Re-generate.
4195 * infcall.c (call_function_by_hand): Adjust the SP by
4196 frame_red_zone_size before allocating any stack space.
4197 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4198 * x86-64-tdep.c (x86_64_frame_align): New function.
4199 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4200
4201 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4202 Remove code adjusting SP so that it skips over the Red Zone.
4203
954a4db8
MK
42042003-08-18 Mark Kettenis <kettenis@gnu.org>
4205
4206 * NEWS (New native configurations): Mention FreeBSD/amd64.
4207
1a241548
AC
42082003-08-18 Andrew Cagney <cagney@redhat.com>
4209
4210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4211 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4212 "m68k_frame_p".
4213 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4214
f82b2acd
MK
42152003-08-18 Mark Kettenis <kettenis@gnu.org>
4216
4217 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4218
4056d258
ML
42192003-08-18 Michal Ludvig <mludvig@suse.cz>
4220
4221 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4222 Define.
4223 * i386-linux-nat.c: Include "linux-nat.h".
4224 (child_post_startup_inferior): New function.
a8f4cde1 4225
99ab4326
MK
42262003-08-18 Mark Kettenis <kettenis@gnu.org>
4227
4228 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4229 at the start of a frameless function. This probably fixes PR
4230 backtrace/1338.
4231
c8d5f0d6
MC
42322003-08-17 Michael Chastain <mec@shout.net>
4233
4234 * symfile.c (find_sym_fns): Remove special case for apollo target.
4235
9016a515
DJ
42362003-08-17 Daniel Jacobowitz <drow@mvista.com>
4237
4238 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4239 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4240 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4241 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4242 (linux_supports_tracevforkdone): New function.
4243 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4244 TRACEVFORKDONE.
4245 (child_follow_fork): Handle vfork.
4246 (linux_handle_extended_wait): Likewise. Also handle exec.
4247 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4248 * NEWS: Mention fork tracing.
4249
c538c11c
DJ
42502003-08-17 Daniel Jacobowitz <drow@mvista.com>
4251
4252 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4253
4de4c07c
DJ
42542003-08-17 Daniel Jacobowitz <drow@mvista.com>
4255
4256 * Makefile.in (i386-linux-nat.o): Update dependencies.
4257 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4258 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4259 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4260 * i386-linux-nat.c: Include "linux-nat.h".
4261 (child_post_startup_inferior): New function.
4262 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4263 * infptrace.c (kill_inferior): Wrap in #ifdef.
4264 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4265 attaching to each LWP.
4266 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4267 (init_lin_lwp_ops): Fill in some more operations.
4268 * linux-nat.h (linux_enable_event_reporting)
4269 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4270 prototypes.
4271 * linux-nat.c (linux_enable_event_reporting): New function.
4272 (child_post_attach, linux_child_post_startup_inferior)
4273 (child_post_startup_inferior, child_follow_fork)
4274 (linux_handle_extended_wait, kill_inferior): New functions.
4275
7996bcec
AC
42762003-08-16 Andrew Cagney <cagney@redhat.com>
4277
4278 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4279 * gdbarch.h, gdbarch.c: Re-generate.
4280
3d48a7a0
MK
42812003-08-16 Mark Kettenis <kettenis@gnu.org>
4282
4283 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4284
7989c619
AC
42852003-08-16 Andrew Cagney <cagney@redhat.com>
4286
4287 * NEWS: Mention that "set prompt-escape-char" was deleted.
4288 * top.c (get_prompt_1): Delete function.
4289 (gdb_prompt_escape):
4290 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4291 prompt-escape-char" command.
4292 (MAX_PROMPT_SIZE): Delete macro.
4293 (get_prompt): Simplify, do not call get_prompt_1.
4294
07978cd8
AC
42952003-08-16 Andrew Cagney <cagney@redhat.com>
4296
4297 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4298 -Werror. -Wformat-nonliteral problems.
4299
3ff7cf9e
JB
43002003-08-15 J. Brobecker <brobecker@gnat.com>
4301
4302 Further multiarching work mostly for hppa64-*-hpux11:
4303 * hppa-tdep.h: New file.
4304 * hppa-tdep.c: #include hppa-tdep.c.
4305 (hppa32_num_regs): Renamed from hppa_num_regs.
4306 (hppa64_num_regs): New constant.
4307 (hppa64_call_dummy_breakpoint_offset): New constant.
4308 (hppa32_call_dummy_length): New constant.
4309 (hppa64_call_dummy_length): New constant.
4310 (hppa32_stack_align): Make name 32bit explicit.
4311 (hppa32_register_virtual_type): Likewise.
4312 (hppa32_extract_return_value): Likewise.
4313 (hppa32_use_struct_convention): Likewise.
4314 (hppa32_store_return_value): Likewise.
4315 (hppa64_register_virtual_type): New function.
4316 (hppa64_extract_return_value): New function.
4317 (hppa64_use_struct_convention): New function.
4318 (hppa64_store_return_value): New function.
4319 (hppa_frame_locals_address): Remove declaration, function does
4320 not exist anymore.
4321 (hppa_register_byte): Add support for PA64 ABI.
4322 (hppa_gdbarch_init): Add support for PA64 ABI.
4323 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4324 Make name 32bit explicit.
4325 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4326 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4327 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4328 (hppa64_hpux_frame_base_before_sigtramp): New function.
4329 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4330 * config/pa/tm-hppa64.h: Remove macros that are no longer
4331 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4332 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4333 * config/pa/tm-hppah.h: Update function calls in macros
4334 following the function renaming in hppa-hpux-tdep.c.
4335 * Makefile.in (hppa_tdep_h): New variable.
4336 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4337
5d05ca6d
MS
43382003-08-14 Michael Snyder <msnyder@redhat.com>
4339
4340 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4341
37ba2569
JB
43422003-08-13 J. Brobecker <brobecker@gnat.com>
4343
4344 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4345 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4346 routine.
4347
aed7f26a
MS
43482003-08-13 Michael Snyder <msnyder@redhat.com>
4349
4350 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4351 (frv_saved_pc_after_call): Use deprecated ftype.
4352 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4353 (frv_remote_translate_xfer_address): Remove.
4354 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4355
752d4ac1
JB
43562003-08-13 J. Brobecker <brobecker@gnat.com>
4357
4358 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4359 initialization after the common gdbarch initialization, not before.
4360
1426ac1d
JB
43612003-08-13 J. Brobecker <brobecker@gnat.com>
4362
4363 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4364 (ADDR_BITS_REMOVE): Remove, redundant.
4365
b6fbdd1d
JB
43662003-08-13 J. Brobecker <brobecker@gnat.com>
4367
4368 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4369 gdbarch method to clear the 2 low bits of text addresses.
4370
44160db3
AC
43712003-08-12 Andrew Cagney <cagney@redhat.com>
4372
4373 * Makefile.in (dsrec.o): Update dependencies.
4374 * dsrec.c: Include "gdb_assert.h".
4375 (make_srec): Use snprintf instead of sprintf, use a literal format
4376 string.
4377
bcf7d3ca
AC
43782003-08-12 Andrew Cagney <cagney@redhat.com>
4379
4380 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4381 FRAME_OBSTACK_ZALLOC.
4382
49ed40de
KB
43832003-08-12 Kevin Buettner <kevinb@redhat.com>
4384
4385 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4386 SSE registers.
4387
b246147c
MK
43882003-08-10 Mark Kettenis <kettenis@gnu.org>
4389
4390 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4391 amd64fbsd_sc_reg_offset): Add extern declarations.
4392 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4393 declarations.
4394
d95fdc0d
BE
43952003-08-11 Ben Elliston <bje@wasabisystems.com>
4396
4397 * MAINTAINERS (write after approval): Update my mail address.
4398
cf6a0e73
AC
43992003-08-10 Andrew Cagney <cagney@redhat.com>
4400
4401 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4402
f837910f
MK
44032003-08-10 Mark Kettenis <kettenis@gnu.org>
4404
e2dbbd2d
MK
4405 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4406 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4407 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4408 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4409 i386bsd_sc_reg_offset): Add extern declarations.
4410 * i386obsd-nat.c: Include "i386-tdep.h"
4411 (_initialize_i386obsd_nat): Remove extern declarations.
4412 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4413 declarations.
4414 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4415 declarations.
4416
f837910f
MK
4417 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4418 instead of frame_read_register.
4419 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4420 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4421 SP_REGNUM.
4422 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4423 instead of frame_unwind_unsigned_register. Use
4424 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4425 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4426 instead of read_register. Use builtin_type_void_data_ptr instead
4427 of builtin_type_void_func_ptr when extracting the address of the
4428 jmp_buf.
4429 (i386_extract_return_value, i386_store_return_value,
4430 i386_pseudo_register_read, i386_pseudo_register_write): Use
4431 register_size instead REGISTER_RAW_SIZE.
4432
edcf254d
AC
44332003-08-10 Andrew Cagney <cagney@redhat.com>
4434
4435 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4436 sprintf. Make "name" constant.
4437
26604a34
MK
44382003-08-10 Mark Kettenis <kettenis@gnu.org>
4439
192285c6
MK
4440 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4441 instead of frame_read_register.
f837910f
MK
4442 (i387_print_float_info): Use get_frame_register and
4443 get_frame_register_unsigned instead of frame_register_read.
192285c6 4444
f0925262
MK
4445 * i386fbsd-nat.c: Include "i386-tdep.h".
4446 (child_resume): Make `eflags' an ULONGEST. Use
4447 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4448 instead of register_read and register_write.
4449
a144416f
MK
4450 * i386bsd-nat.c (fetch_inferior_registers,
4451 store_inferior_registers): Don't use && at the end of a line.
4452 (_initialize_i386bsd_nat): Fix typo.
4453
fec74868
MK
4454 * frame.c (_initialize_frame): Add missing backslash.
4455
87232496
MK
4456 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4457 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4458 and supply_register instead of manipulating the register buffer
4459 directly.
4460
c9b9de0b
MK
4461 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4462 * config/i386/nm-i386sol2.h
4463 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4464
26604a34
MK
4465 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4466 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4467 instructions that GCC likes to mingle into the prologue. Fixes
4468 gdb/1253 and gdb/1255.
4469
25d29d70
AC
44702003-08-09 Andrew Cagney <cagney@redhat.com>
4471
4472 Fix GDB PR cli/926.
4473 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4474 * command.h (add_setshow_uinteger_cmd): Declare.
4475 * frame.c (set_backtrace_cmd): New function.
4476 (show_backtrace_cmd): New function.
4477 * frame.c (_initialize_frame): Replace "set/show
4478 backtrace-below-main" with "set/show backtrace past-main". Add
4479 command "set/show backtrace limit".
4480 (backtrace_past_main): Rename "backtrace_below_main".
4481 (backtrace_limit): New variable.
4482 (get_prev_frame): Update. Check the backtrace_limit.
4483
9ebf4acf
AC
44842003-08-09 Andrew Cagney <cagney@redhat.com>
4485
4486 * defs.h (xstrprintf): Declare.
4487 * utils.c (xstrprintf): New function.
4488 * breakpoint.c (insert_breakpoints): Replace sprintf and
4489 non-literal format strings, with xstrprintf and cleanups.
4490 (delete_breakpoint,breakpoint_re_set): Ditto.
4491 (commands_command, insert_breakpoints): Ditto.
4492 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4493 (break_at_finish_command_1): Ditto.
4494
3771659b
AC
44952003-08-09 Andrew Cagney <cagney@redhat.com>
4496
4497 * MAINTAINERS (language support): List Adam Fedor as Objective C
4498 maintainer.
4499
b4263afa
JB
45002003-08-08 J. Brobecker <brobecker@gnat.com>
4501
4502 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4503 are now multiarched.
4504
d84defb1
JB
45052003-08-08 J. Brobecker <brobecker@gnat.com>
4506
4507 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4508 longer necessary now that hppa64 is partially multiarch'ed.
4509
f786f615
AC
45102003-08-08 Andrew Cagney <cagney@redhat.com>
4511
4512 * interps.c (interp_set): Check for a NULL "old_interp".
4513
c938e9b0
L
45142003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4515
4516 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4517 (install-only): Support DESTDIR.
4518 (uninstall): Likewise.
4519 (install-gdbtk): Likewise.
4520
9a146a11
EZ
45212003-08-08 Elena Zannoni <ezannoni@redhat.com>
4522
4523 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4524 contains something meaningful at all times.
4525
4526Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4527
62599e99 4528 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4529
56296155
BC
4530Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4531
62599e99 4532 * MAINTAINERS (write after approval): Added self.
56296155 4533
9710e734
AC
45342003-08-07 Andrew Cagney <cagney@redhat.com>
4535
4536 * inferior.h (AT_SYMBOL): Define.
4537 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4538 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4539 * mips-tdep.c (mips_call_dummy_address): Delete function.
4540 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4541 set call_dummy_address.
4542
98b3ab73
AC
45432003-08-07 Andrew Cagney <cagney@redhat.com>
4544
4545 * language.c (op_error): Delete function.
4546 (binop_type_check): Delete function.
4547 * language.h (type_op_error, range_op_error): Delete macros.
4548 (op_error): Delete declaration.
4549
2fcf52f0
AC
45502003-08-07 Andrew Cagney <cagney@redhat.com>
4551
4552 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4553
abd4220e 45542003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4555
abd4220e 4556 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4557 (x86_64_push_arguments): Skip the red zone.
abd4220e 4558
9dd5f34f
AC
45592003-08-05 Andrew Cagney <cagney@redhat.com>
4560
4561 * reggroups.c (reggroup_next): Check for the final entry.
4562
e5e78edc
AC
45632003-08-04 Andrew Cagney <cagney@redhat.com>
4564
ab4e3d93
AC
4565 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4566 * cli/cli-script.c (define_command): Call query directly, instead
4567 of passing it a buffer.
4568 * ocd.c (ocd_error): Pass error a constant format string.
4569 * remote-mips.c (mips_error): Use fputs_filtered.
4570
1062ca82
AC
4571 * solib-svr4.c (_initialize_svr4_solib): Update
4572 register_gdbarch_data call.
4573 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4574
fcc1c85c
AC
4575 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4576 (register_gdbarch_data): Delete "free" parameter. Update
4577 comments.
4578 * gdbarch.h, gdbarch.c: Re-generate.
4579 * reggroups.c (_initialize_reggroup): Update.
4580 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4581 * frame-base.c (_initialize_frame_base): Update.
4582 * frame-unwind.c (_initialize_frame_unwind): Update.
4583 * user-regs.c (_initialize_user_regs): Update.
4584 * remote.c (_initialize_remote): Update.
4585 * regcache.c (_initialize_regcache): Update.
4586
116f06ea
AC
4587 * regcache.c (xfree_regcache_descr): Delete function.
4588 (_initialize_regcache): Update call to register_gdbarch_data.
4589 (init_regcache_descr, init_legacy_regcache_descr): Use
4590 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4591
e5e78edc
AC
4592 * remote.c (free_remote_state): Delete function.
4593 (_initialize_remote): Update register_gdbarch_data.
4594 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4595 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4596
6c7d17ba
AC
45972003-08-04 Andrew Cagney <cagney@redhat.com>
4598
4599 * reggroups.c (struct reggroup_el): Define.
4600 (struct reggroups): Delete field "nr_group". Replace array
4601 "group" with a "first" to "last" linked list.
4602 (reggroups_init): Update. Allocate using gdbarch's obstack.
4603 (reggroups_free): Delete function.
4604 (add_group): Update. Add "el" parameter.
4605 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4606 (default_groups): Update.
4607 (reggroup_next): Replace reggroups.
4608 (reggroups_dump): Update.
4609 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4610 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4611 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4612
89b7795b
DJ
46132003-08-04 Daniel Jacobowitz <drow@mvista.com>
4614
4615 * Makefile.in (tui-interp.o): Update dependencies.
4616
306d9ac5
DC
46172003-08-04 David Carlton <carlton@kealia.com>
4618
4619 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4620 to internal_error call.
4621 * source.c (forward_search_command): Add "%s" format argument.
4622 (reverse_search_command): Ditto.
4623 * top.c (quit_confirm): Ditto.
4624 * cli/cli-setshow.c (do_setshow_command): Ditto.
4625 * cp-valprint.c (cp_print_class_method): Replace
4626 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4627 (cp_print_class_member): Ditto.
4628 * event-top.c (command_line_handler): Ditto.
4629 * linux-proc.c (linux_info_proc_cmd): Ditto.
4630 * p-typeprint.c (pascal_type_print_base): Ditto.
4631 * p-valprint.c (pascal_object_print_class_method): Ditto.
4632 (pascal_object_print_class_member): Ditto.
4633 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4634 * remote.c (remote_cisco_section_offsets): Ditto.
4635 * top.c (command_line_input): Ditto.
4636 * utils.c (vwarning,error_stream,quit): Ditto.
4637 * valprint.c (print_floating,print_binary_chars)
4638 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4639
57bfe177
AC
46402003-08-04 Andrew Cagney <cagney@redhat.com>
4641
4642 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4643
e546b999
AC
46442003-08-02 Andrew Cagney <cagney@redhat.com>
4645
4646 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4647 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4648 amd64fbsd-nat.c.
4649
91092ee5
AC
46502003-08-02 Andrew Cagney <cagney@redhat.com>
4651
4652 * Makefile.in: Update all dependencies and definitions.
4653
889f28e2
AF
46542003-08-02 Adam Fedor <fedor@gnu.org>
4655
4656 * linespec.c (is_objc_method_format): New function
4657 (decode_line_1, locate_first_half): Use it.
4658 Fixes PR objc/1298
4659
880bc914
AC
46602003-08-01 Andrew Cagney <cagney@redhat.com>
4661
4662 * NEWS: Mention that m32r is multi-arch.
4663 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4664 * configure.tgt: Recognize m32r-*-*.
4665 * config/m32r/tm-m32r.h: Delete file.
4666 * config/m32r/m32r.mt: New file.
a8f4cde1 4667 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4668 gethostname succeeds, in order to avoid a compilation
4669 warning.
4670 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4671 compiler warning.
4672
19f59343
MS
46732003-08-01 Michael Snyder <msnyder@redhat.com>
4674
4675 * sh-tdep.c (sh_frame_align): New gdbarch method.
4676 (sh_gdbarch_init): Set up frame_align method.
4677
4e7d7511
MS
46782003-07-31 Michael Snyder <msnyder@redhat.com>
4679
4680 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4681 which is already covered by the new frames infrastructure.
4682
63022984
AC
46832003-07-31 Andrew Cagney <cagney@redhat.com>
4684
4685 * user-regs.c (struct user_reg): Add "next" link.
4686 (struct user_regs): Replace "user" with "first" and "last" links.
4687 (append_user_reg): Add pre-allocated "reg" parameter.
4688 (builtin_user_regs): Provide initial value for "last".
4689 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4690 (user_regs_init): Allocate memory from the gdbarch obstack.
4691 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4692 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4693 linked list.
4694 (usernum_to_user_reg): New function.
4695 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4696 (value_of_user_reg): Use usernum_to_user_reg.
4697 (user_regs_free): Delete function.
4698 (_initialize_user_regs): Update register_gdbarch_data call.
4699
7cf6e574
DJ
47002003-07-31 Daniel Jacobowitz <drow@mvista.com>
4701
4702 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4703
c48a845b
MS
47042003-07-30 Michael Snyder <msnyder@redhat.com>
4705
4e7d7511 4706 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4707 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4708 value_being_returned.
4709 * infcmd.c (print_return_value): Pass zero as struct_addr.
4710 * values.c (value_being_returned): If struct_addr is passed,
4711 use it instead of trying to recover it from the inferior.
4712
f0d8db19
KB
47132003-07-30 Kevin Buettner <kevinb@redhat.com>
4714
4715 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4716 the prologue analyzer won't need to attempt to extract the pc
4717 value from the woefully incomplete dummy frame.
4718 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4719 possible. Disable code which modifies the frame.
4720
e5c113a1
AC
47212003-07-28 Andrew Cagney <cagney@redhat.com>
4722
4723 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4724 to level 2.
4725 (annotate_breakpoints_table, annotate_record): Ditto.
4726 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4727 (annotate_field_name_end, annotate_field_value): Ditto.
4728 (annotate_field_end, annotate_frame_source_begin): Ditto.
4729 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4730 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4731 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4732 (annotate_frame_address_end, annotate_frame_address): Ditto.
4733 (annotate_frame_args, annotate_frame_end): Ditto.
4734 (annotate_frame_where, annotate_arg_begin): Ditto.
4735 (annotate_arg_name_end, annotate_arg_value): Ditto.
4736 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4737 (annotate_function_call, annotate_signal_name): Ditto.
4738 (annotate_signal_string, annotate_signal_name_end): Ditto.
4739 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4740 (annotate_value_begin, annotate_value_history_value): Ditto.
4741 (annotate_value_history_end, annotate_value_end): Ditto.
4742 (annotate_display_begin, annotate_display_number_end): Ditto.
4743 (annotate_display_format, annotate_display_expression): Ditto.
4744 (annotate_display_expression_end, annotate_display_value): Ditto.
4745 (annotate_display_end, annotate_array_section_begin): Ditto.
4746 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4747 (annotate_elt, annotate_array_section_end): Ditto.
4748
bb1db049
AC
47492003-07-28 Andrew Cagney <cagney@redhat.com>
4750
4751 * regcache.c (struct regcache_descr): Update comments on
4752 nr_raw_registers.
4753 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4754 sizeof_raw_register_valid_p.
4755 (init_regcache_descr): Set nr_raw_registers and
4756 sizeof_raw_register_valid_p before calling
4757 init_legacy_regcache_descr.
4758
20e6603c
AC
47592003-07-28 Andrew Cagney <cagney@redhat.com>
4760
4761 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4762 MOD NUM_REGS.
4763
db742940
DJ
47642003-07-28 Daniel Jacobowitz <drow@mvista.com>
4765
4766 * thread.c (info_threads_command): Use get_selected_frame ().
4767 Check that there is at least one non-sentinel frame.
4768
ce7f4371
SC
47692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4770
4771 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4772 (m68hc11_pop_frame): Remove.
4773 (m68hc11_frame_saved_pc): Remove.
4774 (m68hc11_frame_chain): Remove.
4775 (m68hc11_frame_init_saved_regs): Remove.
4776 (m68hc11_init_extra_frame_info): Remove.
4777 (m68hc11_store_struct_return): Remove.
4778 (m68hc11_saved_pc_after_call): Remove.
4779
1ea653ae
SC
47802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4781
4782 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4783 frame unwind information.
4784 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4785 and adapted for frame unwinding.
4786 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4787 (m68hc11_unwind_pc): New function.
4788 (m68hc11_frame_unwind_cache): New function to analyze frames.
4789 (m68hc11_frame_this_id): New function to create new frame struct.
4790 (m68hc11_frame_prev_register): New function to unwind a register from
4791 the frame.
4792 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4793 (m68hc11_frame_p): New function for the above.
4794 (m68hc11_frame_base_address): New function to return fp of frame.
4795 (m68hc11_frame_args_address): Update for frame.
4796 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4797 (m68hc11_unwind_sp): New function.
4798 (m68hc11_unwind_dummy_id): New function.
4799 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4800 calls.
4801
c8a7f6ac
SC
48022003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4803
4804 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4805 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4806 when we are beyond the current pc.
4807
3dc990bf
SC
48082003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4809
4810 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4811 from m68hc11_push_arguments.
4812 (m68hc11_push_arguments): Remove.
4813 (m68hc11_push_return_address): Remove.
4814 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4815 handlers; remove deprecated_extra_stack_alignment_needed.
4816
222e5d1d
AC
48172003-07-27 Andrew Cagney <cagney@redhat.com>
4818
4819 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4820 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4821 REAL_PC and not the pointer.
4822 * hppa-hpux-tdep.c: Include frame.h
4823
a7e9a47e
AC
48242003-07-27 Andrew Cagney <cagney@redhat.com>
4825
4826 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4827 GDB_MULTI_ACH_PARTIAL.
4828
7e3dd49e
AC
48292003-07-27 Andrew Cagney <cagney@redhat.com>
4830
4831 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4832 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4833 operator at start and not end of line.
4834 (decode_prologue): Ditto.
4835 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4836 frame_unwind_register_unsigned instead of
4837 frame_unwind_unsigned_register.
4838 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4839 read_register.
4840 (m32r_push_dummy_call): Use register_size instead of
4841 REGISTER_RAW_SIZE.
4842 (m32r_frame_sniffer): Replace m32r_frame_p.
4843 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4844 * m32r-rom.c (report_transfer_performance): Delete extern
4845 declaration.
4846 (m32r_load, m32r_upload_command): Use print_transfer_performance
4847 instead of report_transfer_performance.
4848 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4849 / add_show_from_set.
4850
0880807f
AC
48512003-07-26 Andrew Cagney <cagney@redhat.com>
4852
4853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4854 store_return_value and extract_struct_value_address.
4855
64ae9269
DJ
48562003-07-26 Daniel Jacobowitz <drow@mvista.com>
4857
4858 PR c++/1267
4859 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4860 NULL, default to the section containing PC.
4861
e286caf2
SC
48622003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4863
4864 * NEWS: Mention "regs" deprecated for m68hc11 too.
4865
4866 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4867 (m68hc11_print_register): New function to print out one register.
4868 (m68hc11_print_registers_info): New function to print registers.
4869 (show_regs): Deprecate and use the above.
4870 (m68hc11_gdbarch_init): Install the print_registers_info.
4871
705b278b
JJ
48722003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4873
4874 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4875 that we have a SIGTRAP before returning non-zero.
4876
63cd4198
EZ
48772003-07-23 Michal Ludvig <mludvig@suse.cz>
4878 Elena Zannoni <ezannoni@redhat.com>
4879
a8f4cde1 4880 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4881 find_function_start_sal() returns empty record.
4882
6926787d
AS
48832003-07-23 Andreas Schwab <schwab@suse.de>
4884
4885 * ia64-tdep.c (ia64_print_insn): New function.
4886 (ia64_gdbarch_init): Set print_insn to it.
4887 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4888 deprecated_tm_print_insn_info.
4889
708cc1b6
MS
48902003-07-22 Michael Snyder <msnyder@redhat.com>
4891
4892 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4893 handle 8-bit returns (long long).
4894 (h8300h_extract_return_value): Ditto.
4895 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4896
aebd7893
AC
48972003-07-22 Andrew Cagney <cagney@redhat.com>
4898
4899 * gdbarch.c Include "gdb_obstack.h".
4900 (struct gdbarch): Add an "obstack".
4901 (alloc_gdbarch_data): Allocate the gdbarch data using
4902 GDBARCH_OBSTACK_CALLOC.
4903 (free_gdbarch_data): Delete function.
4904 (gdbarch_obstack_zalloc): New function.
4905 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4906 Assert that the architecture is not initialized.
4907 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4908 vector from the obstack.
4909 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4910 architecture obstack.
4911 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4912 (set_gdbarch_data): Assert that the data is not initialized.
4913 (struct gdbarch_data): Delete member "free".
4914 (register_gdbarch_data): Do not initialize "free".
4915 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4916
153721e6
AC
49172003-07-22 Andrew Cagney <cagney@redhat.com>
4918
4919 * configure.in (build_warnings): Add -Wformat-nonliteral.
4920 * configure: Re-generate.
4921
c193f044 49222003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4923
4924 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4925
c3228f12
EZ
49262003-07-22 Elena Zannoni <ezannoni@redhat.com>
4927
4928 * findvar.c (read_var_value): Remove case for thread local storage
4929 variables. It is now entirely handled by the dwarf2 location
4930 expression code.
4931 * printcmd.c (address_info): Ditto.
4932 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4933 enumeration value.
4934 (struct symbol): Remove objfile field, which was used by
4935 LOC_THREAD_LOCAL_STATIC only.
4936 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4937 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4938 usage of objfile pointer.
4939 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4940 thread local variables.
4941 Add include of objfiles.h.
4942 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4943 storage variables.
4944 * Makefile.in (dwarf2loc.o): Update dependencies.
4945
aef9bcd2
AC
49462003-07-22 Andrew Cagney <cagney@redhat.com>
4947
4948 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4949 get_frame_base.
4950 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4951 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4952 (struct value): Add opaque declaration.
4953 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4954
d95a8903
AC
49552003-07-21 Andrew Cagney <cagney@redhat.com>
4956
4957 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4958 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4959
4db73d49
SC
49602003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4961
a8f4cde1 4962 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4963 regcache_cooked_read_unsigned instead of read_register.
4964 (m68hc11_saved_pc_after_call): Likewise.
4965 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4966 instead of write_register.
4967 (m68hc11_register_type): New function.
4968 (m68hc11_register_virtual_type): Remove.
4969 (m68hc11_store_return_value): Convert to use the regcache.
4970 (m68hc11_extract_struct_value_address): Likewise.
4971 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4972 m68hc11_register_type; undeprecate store_return_value and
4973 extract_struct_value_address.
4974
ef2b8fcd
SC
49752003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4976
4977 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4978 and translate to use regcache.
4979 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4980
625b0b97
AC
49812003-07-18 Andrew Cagney <cagney@redhat.com>
4982
4983 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4984 * gdbarch.h, gdbarch.c: Re-generate.
4985 * i386-tdep.c (i386_gdbarch_init): Do not set
4986 DWARF2_BUILD_FRAME_INFO.
4987 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4988 unconditionally.
4989 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4990 DWARF2_BUILD_FRAME_INFO.
4991
22b0d388
AC
49922003-07-18 Andrew Cagney <cagney@redhat.com>
4993
4994 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4995 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4996
1ce5d6dd
AC
49972003-07-18 Andrew Cagney <cagney@redhat.com>
4998
4999 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5000 frame_unwind_address_in_block, instead of frame_pc_unwind.
5001 (dwarf2_frame_cache): Ditto.
5002
e6e5e94c
AC
50032003-07-18 Andrew Cagney <cagney@redhat.com>
5004
5005 * user-regs.h (struct gdbarch): Declare opaque.
5006 * ui-out.h (struct ui_file): Declare opaque.
5007 * dwarf2-frame.h (struct frame_info): Declare opaque.
5008
5483d879
KW
50092003-07-18 Kris Warkentin <kewarken@qnx.com>
5010
5011 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5012 #include "...".
5013 (procfs_meminfo): Change strerror to safe_strerror.
5014 (procfs_can_run): Remove K&R badness.
5015
278a7cf7
MS
50162003-07-17 Michael Snyder <msnyder@redhat.com>
5017
5018 * remote-sim.c: Comment typo fix.
5019
606e3b82
AC
50202003-07-17 Andrew Cagney <cagney@redhat.com>
5021
5022 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5023 configure.
5024 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5025 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5026 GDB_MULTI_ARCH_PARTIAL.
5027
c43af07c
EZ
50282003-07-17 Elena Zannoni <ezannoni@redhat.com>
5029
5030 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5031 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5032 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5033
3b85b0f1
TR
50342003-07-16 Theodore A. Roth <troth@openavr.org>
5035
5036 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5037 found.
5038 (avr_frame_unwind_cache): Don't unwind FP for main.
5039 Update a comment.
5040 Save the computed prev_sp.
5041 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5042 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5043 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5044
336d1bba
AC
50452003-07-16 Andrew Cagney <cagney@redhat.com>
5046
5047 * frame-base.h (frame_base_p_ftype): Delete definition.
5048 (frame_base_append_predicate): Delete declaration.
5049 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5050 (frame_unwind_append_predicate): Delete declaration.
5051 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5052 (append_predicate): Delete parameter "p".
5053 (frame_unwind_append_predicate): Delete function.
5054 (frame_unwind_append_sniffer): Update call to append_predicate.
5055 (frame_unwind_free): Delete function.
5056 (_initialize_frame_unwind): Pass NULL as "free" to
5057 register_gdbarch_data.
5058 (frame_unwind_init): Append the dummy_frame_sniffer.
5059 (frame_unwind_find_by_frame): Simplify.
5060 * frame-base.c (struct frame_base_table): Delete field "p".
5061 (append_predicate): Delete parameter "p".
5062 (frame_base_append_predicate): Delete function.
5063 (frame_base_append_sniffer): Update call to append_predicate.
5064 (frame_base_free): Delete function.
5065 (frame_base_find_by_frame): Simplify.
5066 (_initialize_frame_base): Pass NULL as "free" to
5067 register_gdbarch_data.
5068 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5069 (x86_64_sigtramp_frame_sniffer): Replace
5070 "x86_64_sigtramp_frame_p".
5071 (x86_64_init_abi): Set the frame unwind sniffers.
5072 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5073 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5074 (m68k_gdbarch_init): Set the frame unwind sniffers.
5075 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5076 "i386_sigtramp_frame_p".
5077 (i386_frame_sniffer): Replace "i386_frame_p".
5078 (i386_gdbarch_init): Set the frame unwind sniffers.
5079 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5080 (avr_gdbarch_init): Set the frame unwind sniffers.
5081 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5082 "alpha_sigtramp_frame_p"
5083 (alpha_heuristic_frame_sniffer): Replace
5084 "alpha_heuristic_frame_p".
5085 (alpha_gdbarch_init): Set the frame unwind sniffers.
5086 (alpha_dwarf2_init_abi): Ditto.
5087 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5088 "alpha_debug_frame_p".
5089 (alpha_mdebug_frame_base_sniffer): Replace
5090 "alpha_mdebug_frame_base_p".
5091 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5092 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5093 (d10v_gdbarch_init): Set the frame unwind sniffer.
5094 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5095 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5096 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5097 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5098 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5099 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5100
48db5a3c
CV
51012003-07-16 Michael Snyder <msnyder@redhat.com>
5102
5103 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5104 should go thru sh_dsp_register_sim_regno, else the dsp regs
5105 will not get the right values.
5106
51072003-07-16 Corinna Vinschen <vinschen@redhat.com>
5108
5109 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5110 deprecated_store_floating by call to store_typed_floating.
5111 (sh_sh4_register_convert_to_raw): Substitute call to
5112 deprecated_extract_floating by call to extract_typed_floating.
5113
51142003-07-16 Corinna Vinschen <vinschen@redhat.com>
5115
5116 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5117
51182003-07-16 Corinna Vinschen <vinschen@redhat.com>
5119
5120 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5121 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5122 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5123 as possible.
5124 (do_pseudo_register): Remove.
5125 (sh_push_dummy_code): New function.
5126 (sh64_store_struct_return): Rename from sh_store_struct_return.
5127 Only called for sh64 now.
5128 (sh_extract_struct_value_address): Regcache'ify.
5129 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5130 and accomodate new tasks.
5131 (sh64_push_return_address): Rename from sh_push_return_address.
5132 Only called for sh64 now.
5133 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5134 Regcache'ify.
5135 (sh3e_sh4_extract_return_value): Regcache'ify.
5136 (sh_default_store_return_value): Ditto.
5137 (sh3e_sh4_store_return_value): Ditto.
5138 (sh_default_register_byte): Remove.
5139 (sh_sh4_register_byte): Remove.
5140 (sh_default_register_raw_size): Remove.
5141 (sh_sh4_register_raw_size): Remove.
5142 (sh_register_virtual_size): Remove.
5143 (sh_sh3e_register_virtual_type): Remove.
5144 (sh_sh3e_register_type): New function.
5145 (sh_sh4_register_virtual_type): Remove.
5146 (sh_sh4_register_type): New function.
5147 (sh_default_register_virtual_type): Remove.
5148 (sh_default_register_type): New function.
5149 (do_fv_register_info): Add parameters to accomodate call from
5150 sh_print_registers_info.
5151 (do_dr_register_info): Ditto.
5152 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5153 Add parameters to accomodate call from sh_print_registers_info.
5154 (sh_do_fp_register): Ditto.
5155 (sh64_do_pseudo_register): Call do_dr_register_info,
5156 do_fv_register_info and sh_do_fp_register with default parameters.
5157 (sh_do_register): Add parameters to accomodate call from
5158 sh_print_registers_info.
5159 (sh_print_register): Ditto.
5160 (sh_print_registers_info): Rename from sh_do_registers_info.
5161 Add parameters to be used as gdbarch_print_registers_info
5162 implementation. Accomodate removed do_pseudo_register function
5163 pointer.
5164 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5165 function pointer. Call sh_print_register with default parameters.
5166 (sh64_do_registers_info): Call sh_print_registers_info instead of
5167 sh_do_registers_info.
5168 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5169 detection of deprecated vs. non-deprecated functionality.
5170 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5171 function pointer assignments by direct function calls.
5172
e8a89fe2
AC
51732003-07-15 Andrew Cagney <cagney@redhat.com>
5174
5175 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5176 (frame_register_unwind, create_new_frame): Ditto.
5177 (legacy_get_prev_frame, get_frame_type): Ditto.
5178 (get_frame_base_address): Use frame_base_find_by_frame.
5179 (get_frame_locals_address): Use frame_base_find_by_frame.
5180 (get_frame_args_address): Use frame_base_find_by_frame.
5181 * frame-base.h (frame_base_sniffer_ftype): Declare.
5182 (frame_base_append_sniffer): Declare.
5183 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5184 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5185 (frame_base_append_sniffer): New function.
5186 (frame_base_append_predicate): Add a NULL sniffer.
5187 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5188 (struct frame_base_table): Add "sniffer".
5189 (frame_base_free): Free the "sniffer" table.
5190 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5191 (frame_unwind_append_sniffer): Declare.
5192 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5193 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5194 (struct frame_unwind_table): Add "sniffer", delete "middle".
5195 (append_predicate): Add "sniffer" parameter, append the sniffer.
5196 (frame_unwind_init): Update append_predicate call.
5197 (frame_unwind_append_sniffer): New function.
5198 (frame_unwind_append_predicate): Update append_predicate call.
5199 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5200
0714963c
AC
52012003-07-15 Andrew Cagney <cagney@redhat.com>
5202
5203 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5204 before code inhibiting repeated unwind attempts. Add to
5205 commentary on that test's problems.
5206 * blockframe.c (inside_main_func): Look for "main" in the minimal
5207 symbol table.
5208 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5209 identical.
5210
d9170e22
AC
52112003-07-15 Andrew Cagney <cagney@redhat.com>
5212
5213 * complaints.c (struct explanation): Define.
5214 (struct complaints): Change type of "explanation" to "struct
5215 explanation".
5216 (symfile_explanations): Convert to a "struct explanation" table.
5217 (vcomplaint): Update.
5218
eba29c8c
ML
52192003-07-15 Michal Ludvig <mludvig@suse.cz>
5220
5221 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5222 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5223 x86_64_linux_(fill,supply)_gregset functions.
5224 * x86-64-linux-tdep.c (USER_*): New defines.
5225 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5226 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5227 New functions.
5228 (fetch_core_registers): Ditto.
5229 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5230 * x86-64-linux-tdep.h: New file.
5231 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5232 and core-regset.o.
5233 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5234
68cc0bfb
MK
52352003-07-13 Mark Kettenis <kettenis@gnu.org>
5236
88a115f7
MK
5237 * x86-64-tdep.c (x86_64_store_return_value): Use
5238 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5239
68cc0bfb
MK
5240 * configure.host: Add x86_64-*-freebsd*.
5241 * configure.tgt: Add x86_64-*-freebsd*.
5242 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5243 * amd64fbsd-nat.c: New file.
5244 * amd64fbsd-tdep.c: New file.
5245 * config/i386/nm-fbsd64.h: New file.
5246 * config/i386/fbsd64.mh: New file.
5247 * config/i386/fbsd64.mt: New file.
5248
138e7be5
MK
52492003-07-11 Mark Kettenis <kettenis@gnu.org>
5250
5251 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5252 `sc_regs_offset' and `sc_fpregs_offset'.
5253 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5254 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5255 (alpha_sigtramp_register_address): Rewrite to use new members of
5256 `struct gdbarch_tdep'.
5257 (alpha_gdbarch_init): Initialize new members of struct
5258 gdbarch_tdep'.
5259 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5260 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5261 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5262 (alphafbsd_pc_in_sigtramp): Implement.
5263 (alphafbsd_sigtramp_offset): New function.
5264 (alphafbsd_sigcontext_addr): New function.
5265 (alphafbsd_init_abi): Initialize signal trampoline related members
5266 of `struct gdbarch_tdep'.
5267 (_initialize_alphafbsd_tdep): Add prototype.
5268
95303a68
TR
52692003-07-11 Theodore A. Roth <troth@openavr.org>
5270
ba292e4c
TR
5271 * Makefile.in (install-only): Quote sed expression when generating
5272 transformed_name.
95303a68 5273
6896c0c7
RH
52742003-07-11 Richard Henderson <rth@redhat.com>
5275
5276 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5277 * dwarf2-frame.c: Include complaints.h.
5278 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5279 variable initialization; return NULL on error.
5280 (decode_frame_entry): New.
5281
8edd5d01
AC
52822003-07-11 Andrew Cagney <cagney@redhat.com>
5283
c4a09524
AC
5284 * frame.h (frame_address_in_block): Delete declaration.
5285 * blockframe.c (frame_address_in_block): Delete function.
5286 (get_frame_block): Use get_frame_address_in_block.
5287 (block_innermost_frame): Ditto.
5288 * stack.c (print_frame, backtrace_command_1): Ditto.
5289
8edd5d01
AC
5290 * frame.h (get_frame_address_in_block): Declare.
5291 (frame_unwind_address_in_block): Declare.
5292 * frame.c (frame_unwind_address_in_block): New function.
5293 (get_frame_address_in_block): New function.
5294
f7968451
AC
52952003-07-10 Andrew Cagney <cagney@redhat.com>
5296
5297 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5298 pre-default. Note: re-generate has no effect.
a8f4cde1 5299
ae99b398
AC
53002003-07-10 Andrew Cagney <cagney@redhat.com>
5301
5302 * gdbarch.sh: When a variable, but not a function, compare against
5303 0. Fix problem in previous patch.
5304 * gdbarch.c: Re-generate.
a8f4cde1 5305
956ac328
AC
53062003-07-10 Andrew Cagney <cagney@redhat.com>
5307
5308 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5309 functions against NULL, not 0.
5310 * gdbarch.c: Re-generate.
a8f4cde1 5311
287c3240
FF
53122003-07-10 Fred Fish <fnf@ninemoons.com>
5313
5314 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5315 null string instead of a null pointer.
5316 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5317
32f63c4b
MS
53182003-07-09 Michael Snyder <msnyder@redhat.com>
5319
5320 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5321
402ecd56
MK
53222003-07-09 Mark Kettenis <kettenis@gnu.org>
5323
5324 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5325 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5326 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5327 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5328 * x86-64-tdep.c: ... from here.
5329
c481dac7
AS
53302003-07-09 Andreas Schwab <schwab@suse.de>
5331
5332 * m68k-tdep.h (enum struct_return): Define.
5333 (struct gdbarch_tdep): Add struct_return.
5334 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5335 bytes are padded to the right, not to the left. Pass struct value
5336 address in register %a1, not on stack.
5337 (m68k_use_struct_convention): New function.
5338 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5339 struct_return in tdep to pcc_struct_return.
5340 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5341 reg_struct_return.
5342
a8f4cde1 53432003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5344
a8f4cde1 5345 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5346
96a4ee76
AC
53472003-07-09 Andrew Cagney <cagney@redhat.com>
5348
5349 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5350 Add comments about the checks.
5351
1517c6d1
AC
53522003-07-08 Andrew Cagney <cagney@redhat.com>
5353
5354 * Makefile.in: Make dependency section headers consistent.
5355 (config_h): Move to $BUILD headers section.
5356 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5357 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5358 (ada-exp.tab.c): Move to YACC/LEX section.
5359 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5360 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5361
dc5dd1eb
KW
53622003-07-08 Kris Warkentin <kewarken@qnx.com>
5363
5364 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5365 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5366 of strerror with safe_strerror, use ISO C function definitions,
5367 and replace instances of sprintf with snprintf.
dc5dd1eb 5368
612dde91
AC
53692003-07-07 Andrew Cagney <cagney@redhat.com>
5370
5371 * frame.c (get_prev_frame): Enable check for identical frames.
5372 Update comments. Update error messages.
5373
492c11d3
JB
53742003-07-07 Joel Brobecker <brobecker@gnat.com>
5375
5376 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5377
376a5a49
JB
53782003-07-07 Joel Brobecker <brobecker@gnat.com>
5379
5380 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5381 sort_symtab_syms, no longer necessary.
5382
22b4a9ad
JB
53832003-07-07 Joel Brobecker <brobecker@gnat.com>
5384
5385 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5386
5bbcb741
JB
53872003-07-07 Joel Brobecker <brobecker@gnat.com>
5388
5389 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5390 (mips_register_byte): Likewise.
5391
c139e7d9
DJ
53922003-07-07 Daniel Jacobowitz <drow@mvista.com>
5393
5394 * Makefile.in (sparc_tdep_h): New.
5395 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5396 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5397 * sparc-linux-nat.c: Include "sparc-tdep.h".
5398 * sparc-nat.c: Likewise.
5399 * sparc-tdep.c: Likewise.
5400 * sparc64nbsd-nat.c: Likewise.
5401 * sparcnbsd-nat.c: Likewise.
5402 * sparcnbsd-tdep.c: Likewise.
5403 * sparc-tdep.h: New file.
5404 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5405 and sparc_npc_regnum.
5406
fd8f87c5
DJ
54072003-07-07 Daniel Jacobowitz <drow@mvista.com>
5408
5409 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5410 (mips_linux_cannot_store_register): List supported instead of
5411 unsupported registers.
5412
13adf674
DJ
54132003-07-07 Daniel Jacobowitz <drow@mvista.com>
5414
5415 * disasm.c (dump_insns): Separate instructions from addresses.
5416
8de307e0
AS
54172003-07-07 Andreas Schwab <schwab@suse.de>
5418
5419 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5420 dependencies.
5421 * m68k-tdep.c (NUM_FREGS): Delete.
5422 (SIG_PC_FP_OFFSET): Delete.
5423 (TARGET_M68K): Delete.
5424 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5425 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5426 P_MOVEL_SP, P_MOVEML_SP): Define.
5427 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5428 P_TRAP): Delete.
5429 (m68k_register_raw_size): Delete.
5430 (m68k_register_virtual_size): Delete.
5431 (m68k_register_type): Renamed from m68k_register_virtual_type and
5432 add gdbarch argument.
5433 (m68k_store_struct_return): Delete.
5434 (m68k_deprecated_extract_return_value): Delete.
5435 (m68k_deprecated_extract_struct_value_address): Delete.
5436 (m68k_frame_chain): Delete.
5437 (m68k_frame_saved_pc): Delete.
5438 (m68k_fix_call_dummy): Delete.
5439 (m68k_push_dummy_frame): Delete.
5440 (m68k_pop_frame): Delete.
5441 (m68k_extract_return_value): New function.
5442 (m68k_store_return_value): Rewrite using regcache.
5443 (m68k_extract_struct_value_address): Rewrite using regcache.
5444 (m68k_push_dummy_call): New function.
5445 (struct m68k_frame_cache): Define.
5446 (m68k_alloc_frame_cache): New function.
5447 (m68k_analyze_frame_setup): New function.
5448 (m68k_analyze_register_saves): New function.
5449 (m68k_analyze_prologue): New function.
5450 (m68k_skip_prologue): Rewrite using above functions.
5451 (m68k_unwind_pc): New function.
5452 (m68k_frame_cache): New function.
5453 (m68k_frame_this_id): New function.
5454 (m68k_frame_prev_register): New function.
5455 (m68k_frame_unwind): New variable.
5456 (m68k_frame_p): New function.
5457 (m68k_sigtramp_frame_cache): New function.
5458 (m68k_sigtramp_frame_this_id): New function.
5459 (m68k_sigtramp_frame_prev_register): New function.
5460 (m68k_sigtramp_frame_unwind): New variable.
5461 (m68k_sigtramp_frame_p): New function.
5462 (m68k_frame_base_address): New function.
5463 (m68k_frame_base): New function.
5464 (m68k_unwind_dummy_id): New function.
5465 (fill_gregset): Use regcache_collect.
5466 (fill_fpregset): Likewise.
5467 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5468 defined.
5469 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5470 deprecated_init_frame_pc, deprecated_store_struct_return,
5471 deprecated_extract_return_value, deprecated_store_return_value,
5472 deprecated_frame_chain, deprecated_frame_saved_pc,
5473 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5474 deprecated_register_virtual_size,
5475 deprecated_max_register_raw_size,
5476 deprecated_max_register_virtual_size,
5477 deprecated_register_virtual_type, deprecated_register_size,
5478 deprecated_register_byte, deprecated_register_bytes,
5479 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5480 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5481 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5482 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5483 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5484 deprecated_push_dummy_frame, deprecated_pop_frame,
5485 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5486 only if SYSCALL_TRAP is defined. Set extract_return_value,
5487 store_return_value, extract_struct_value_address, register_type,
5488 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5489 predicates.
5490 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5491 M68K_MAX_REGISTER_SIZE): Define.
5492 (struct m68k_sigtramp_info): Define.
5493 (struct gdbarch_tdep): Add get_sigtramp_info.
5494 * m68klinux-nat.c (fetch_register): Use register_size instead of
5495 REGISTER_RAW_SIZE. Don't put assignment in if.
5496 (store_register): Likewise.
5497 (fetch_inferior_registers): Likewise.
5498 (store_inferior_registers): Likewise.
5499 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5500 (m68k_linux_frame_saved_pc): Delete.
5501 (m68k_linux_sigcontext_reg_offset,
5502 m68k_linux_ucontext_reg_offset): Define.
5503 (m68k_linux_get_sigtramp_info): New function.
5504 (m68k_linux_extract_return_value): Rewrite using regcache.
5505 (m68k_linux_store_return_value): Likewise.
5506 (m68k_linux_extract_struct_value_address): Likewise.
5507 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5508 Don't set deprecated_frame_saved_pc,
5509 deprecated_extract_return_value, deprecated_store_return_value,
5510 deprecated_extract_struct_value_address. Set
5511 extract_return_value, store_return_value,
5512 extract_struct_value_address.
5513
eb8bc282
AC
55142003-07-07 Andrew Cagney <cagney@redhat.com>
5515
5516 * expprint.c: Include "user-regs.h" instead of "frame.h".
5517 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5518 frame_map_regnum_to_name.
5519 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5520 (frame_map_name_to_regnum): Simplify, call
5521 user_reg_map_name_to_regnum.
5522 (frame_map_regnum_to_name): Simplify, call
5523 user_reg_map_regnum_to_name.
5524 (frame_register_unwind): Update.
5525 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5526 (_initialize_frame_reg): Call user_reg_add_builtin.
5527 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5528 (value_of_register): Use value_of_user_reg.
5529 * eval.c (evaluate_subexp_standard): Update.
5530 * parse.c (write_dollar_variable): Update.
5531 * d10v-tdep.c (d10v_print_registers_info): Update.
5532 * infcmd.c (registers_info): Update.
5533 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5534 (builtin_regs_h): Delete macro.
5535 (user_regs_h): Define.
5536 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5537 (builtin-regs.o): Delete target.
5538 (user-regs.o): Specify dependencies.
5539 (expprint.o): Update dependencies.
5540 (findvar.o): Update dependencies.
5541 (frame.o): Update dependencies.
5542 (std-regs.o): Update dependencies.
5543
9f476a01
CF
55442003-07-06 Christopher Faylor <cgf@redhat.com>
5545
5546 * win32-nat.c (solib_symbols_add): Use one variable for all section
5547 address stuff. Pass variable rather than address of variable to
5548 safe_symbol_file_add.
5549
a731b831
AS
55502003-07-06 Andreas Schwab <schwab@suse.de>
5551
5552 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5553
9f83329d
JB
55542003-07-04 Joel Brobecker <brobecker@gnat.com>
5555
5556 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5557
27e28cc5
KW
55582003-07-04 Kris Warkentin <kewarken@qnx.com>
5559
5560 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5561
55622003-07-04 Kris Warkentin <kewarken@qnx.com>
5563
5564 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5565 * config/i386/nto.mh: New file.
5566 * config/i386/nm-nto.h: New file.
5567 * configure.host: Add i[3456]86-*-nto*.
5568
100f2e98
JB
55692003-07-03 Joel Brobecker <brobecker@gnat.com>
5570
5571 * remote-vx.c (vx_add_symbols): Fix compilation error.
5572
e23457df
AC
55732003-07-03 Andrew Cagney <cagney@redhat.com>
5574
5575 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5576 * gdbarch.h, gdbarch.c: Re-generate.
5577 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5578 (legacy_register_name): Declare.
5579 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5580 (REGISTER_NAME): Define.
5581 * sparc-tdep.c (legacy_register_name): New function.
5582 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5583 (REGISTER_NAME): Define.
5584 (hppa64_register_name): Declare.
5585 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5586 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5587 (hppa64_register_name): New function.
5588 (hppa_register_name): New function.
5589 * arch-utils.c (legacy_register_name): Delete.
5590 * arch-utils.h (legacy_register_name): Delete.
5591
38caaeec
DJ
55922003-07-03 Daniel Jacobowitz <drow@mvista.com>
5593
5594 * cli/cli-interp.c (cli_interpreter_resume): Update the
5595 cli_uiout's stream to gdb_stdout.
5596
dadd712e
AC
55972003-07-03 Andrew Cagney <cagney@redhat.com>
5598
5599 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5600 predicate.
5601 * gdbarch.h, gdbarch.c: Re-generate.
5602 * regcache.c (init_regcache_descr): Use legacy code when either
5603 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5604
c7f1390e
DJ
56052003-07-02 Daniel Jacobowitz <drow@mvista.com>
5606
5607 * NEWS: Move "set logging" entry into GDB 6.0 section.
5608
4bc8c588
JB
56092003-07-02 Jim Blandy <jimb@redhat.com>
5610
a9dd42f1
JB
5611 * s390-tdep.c (struct frame_extra_info): new member:
5612 'stack_bought_valid'.
5613 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5614 initialize fextra_info->stack_bought.
5615 (s390_frameless_function_invocation): Don't trust the value of
5616 fextra_info_ptr->stack_bought unless
5617 fextra_info->stack_bought_valid is set.
5618
4bc8c588
JB
5619 New S390 prologue analyzer.
5620 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5621 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5622 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5623 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5624 compute_x_addr, s390_on_stack, s390_store,
5625 s390_get_signal_frame_info): New functions.
5626 (S390_NUM_SPILL_SLOTS): New macro.
5627 (s390_get_frame_info): Rewritten.
5628 (is_arg_reg): Deleted.
5629
5630 Break out the decoding of S/390 instructions into separate
5631 functions, to make it more legible, and easier to check
5632 against the spec.
5633 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5634 is_rx, is_rxe): New functions.
5635 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5636 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5637 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5638 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5639 enums for opcode values. (Is this an improvement?)
5640
fd13a04a
AC
56412003-07-02 Andrew Cagney <cagney@redhat.com>
5642
5643 * i386-tdep.c: Revert change committed as part of trad-frame code
5644 below.
5645
3f8091c1
DJ
56462003-07-02 Daniel Jacobowitz <drow@mvista.com>
5647
5648 * breakpoint.c (insert_catchpoint): Make static.
5649
8dd5115e
AS
56502003-07-02 Andreas Schwab <schwab@suse.de>
5651
5652 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5653 former ia64_push_arguments and ia64_push_return_address, and use
5654 regcache functions instead of read/write_register.
5655 (ia64_gdbarch_init): Set push_dummy_call instead of
5656 deprecated_push_arguments and deprecated_push_return_address.
5657
a2229c23
AJ
56582003-07-01 Andreas Jaeger <aj@suse.de>
5659
5660 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5661 before the call.
5662 Set %rax only to number of SSE registers used.
5663
3b3850e8
AC
56642003-07-01 Andrew Cagney <cagney@redhat.com>
5665
5666 * trad-frame.h: Update comments, a -1 .addr is reserved.
5667 (trad_frame_value_p, trad_frame_addr_p): Declare.
5668 (trad_frame_reg_p): Declare.
5669 (trad_frame_set_value): Rename trad_frame_register_value.
5670 (trad_frame_set_unknown): Declare.
5671 * trad-frame.c (trad_frame_realreg_p): New function.
5672 (trad_frame_addr_p, trad_frame_value_p): New function.
5673 (trad_frame_set_unknown): New function.
5674 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5675 (trad_frame_prev_register): Use trad_frame_realreg_p,
5676 trad_frame_addr_p and trad_frame_value_p.
5677 (trad_frame_set_value): Rename trad_frame_register_value.
5678 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5679 and trad_frame_set_value.
a2229c23 5680
4d819d0e
JB
56812003-06-30 Jim Blandy <jimb@redhat.com>
5682
5683 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5684 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5685 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5686 for 16 registers, and then 32 more bytes.
5687 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5688 New macros.
5689 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5690 Move up in the file, since it's now used by is_simple_arg.
5691 (is_simple_arg): Don't assume registers are four bytes long.
5692 Exclude all double arguments. Extended floats are not simple
5693 args.
5694 (is_power_of_two): New function.
5695 (pass_by_copy_ref): Call is_power_of_two, and check that the
5696 length fits in a register, rather than listing all the acceptable
5697 sizes. Extended floats are not passed by reference.
5698 (s390_push_arguments): Don't assume registers are four bytes long.
5699 Reserve an argument register to point to the buffer for structures
5700 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5701 S390_STACK_FRAME_OVERHEAD.
5702
1ad828f1
AS
57032003-06-30 Andreas Schwab <schwab@suse.de>
5704
5705 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5706 format error message.
5707
39b00981
JB
57082003-06-30 Joel Brobecker <brobecker@gnat.com>
5709
5710 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5711
b2a7f303
DC
57122003-06-30 David Carlton <carlton@kealia.com>
5713
5714 Band-aid for PR c++/1245.
5715 * Makefile.in (cp-support.o): Depend on complaints_h.
5716 * cp-support.c: Include complaints.h. Add declaration for
5717 find_last_component.
5718 (cp_find_first_component): Separate code into
5719 cp_find_first_component_aux.
5720 (cp_find_first_component_aux): Call demangled_name_complaint.
5721 (demangled_name_complaint): New.
5722
a257b5bb
AC
57232003-06-30 Andrew Cagney <cagney@redhat.com>
5724
5725 * remote.c (remote_write_bytes): Explicitly compute and then use
5726 the payload size. Update comments to reflect. Fixes problem of
5727 GDB not sending small packets as found by Fred Fish.
5728
0a2cfde4
AC
57292003-06-30 Andrew Cagney <cagney@redhat.com>
5730
5731 * remote.c (remote_async_wait): Fix -Wformat problem.
5732
3fcb8548
AC
57332003-06-29 Andrew Cagney <cagney@redhat.com>
5734
5735 * remote.c (remote_wait): Call error, and not warning, when the
5736 packet is corrupt.
5737 (remote_async_wait): Ditto.
5738
9f9970a3
DJ
57392003-06-29 Daniel Jacobowitz <drow@mvista.com>
5740
5741 * sparc-tdep.c (sparc_y_regnum): Make external again.
5742
83a8ccca
DJ
57432003-06-29 Daniel Jacobowitz <drow@mvista.com>
5744
5745 * cli/cli-logging.c (pop_output_files): Add void to function
5746 definition.
5747
d2cf594a
AC
57482003-06-29 Andrew Cagney <cagney@redhat.com>
5749
5750 * frame.c (frame_register_unwind): Use unsigned char when dumping
5751 the buffer contents.
5752
0fac0b41
DJ
57532003-06-28 Daniel Jacobowitz <drow@mvista.com>
5754
5755 * cli/cli-logging.c: New file.
5756 * cli-out.c (struct ui_out_data): Add original_stream.
5757 (cli_redirect): New function.
5758 (cli_ui_out_impl): Add cli_redirect.
5759 (cli_out_new): Initialize original_stream.
5760 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5761 (uo_redirect, ui_out_redirect): New.
5762 * ui-out.h (struct ui_out_impl): Add redirect member.
5763 (redirect_ftype): New.
5764 (ui_out_redirect): Add prototype.
5765 * Makefile.in: Add rules for cli-logging.c.
5766 * NEWS: Mention "set logging".
5767
88a07d7c
EZ
57682003-06-27 Elena Zannoni <ezannoni@redhat.com>
5769
5770 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5771
4eb58876
AC
57722003-06-27 Andrew Cagney <cagney@redhat.com>
5773
5774 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5775 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5776 * avr-tdep.c (avr_call_dummy_address): Delete function.
5777 (avr_gdbarch_init): Do not set call_dummy_address.
5778
1549f619
EZ
57792003-06-27 Elena Zannoni <ezannoni@redhat.com>
5780
5781 * symfile.c (syms_from_objfile): Move variables to inner block.
5782 Move the checks for the non-mainline case a bit earlier to avoid
5783 doing some useless computations.
5784
3cb3398d
EZ
57852003-06-27 Elena Zannoni <ezannoni@redhat.com>
5786
5787 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5788
3799ccc6
EZ
57892003-06-26 Elena Zannoni <ezannoni@redhat.com>
5790
5791 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5792 sections.
5793
ce1f6491
MC
57942003-06-26 Michael Chastain <mec@shout.net>
5795
5796 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5797 gdb/testsuite/gdb.c++/pr-1210.exp.
5798
d958dfd0
AC
57992003-06-26 Andrew Cagney <cagney@redhat.com>
5800
5801 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5802 altivec_expression.h and altivec_registers.h.
5803
d31431ed
AC
58042003-06-26 Andrew Cagney <cagney@redhat.com>
5805
5806 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5807 info->mach when MIPS16. Patch suggested by Fred Fish.
5808
714b1282
AC
58092003-06-26 Andrew Cagney <cagney@redhat.com>
5810
5811 * utils.c (internal_vproblem): Print the problem to a reason
5812 buffer and then pass to query. Make the msg variable more local.
5813
42efa47a
AC
58142003-06-26 Andrew Cagney <cagney@redhat.com>
5815
5816 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5817 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5818 * gdbarch.h, gdbarch.c: Re-generate.
5819 * frame-base.c (default_frame_args_address): Update. Use
5820 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5821 not available.
5822 (default_frame_locals_address): Ditto for
5823 DEPRECATED_FRAME_LOCALS_ADDRESS.
5824 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5825 (vax_frame_num_args): Update.
5826 (vax_gdbarch_init): Update.
5827 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5828 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5829 * mcore-tdep.c (mcore_gdbarch_init): Update.
5830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5831 * ia64-tdep.c (ia64_gdbarch_init): Update.
5832 * symtab.h (address_class): Update comments.
5833 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5834 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5835 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5836 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5837 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5838 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5839 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5840 * alpha-mdebug-tdep.c: Update.
5841 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5842
8ffd9b1b
AJ
58432003-06-26 Andreas Jaeger <aj@suse.de>
5844
5845 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5846 of SSE registers so that varargs functions work. Rework handling
5847 of passing arguments on the stack.
5848 (x86_64_store_return_value): Return double and float values in SSE
5849 register.
5850
e8ac10a6
MC
58512003-06-24 Michael Chastain <mec@shout.net>
5852
5853 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5854 the "constructor breakpoints ignored" bug.
5855
986af8e6
DC
58562003-06-25 David Carlton <carlton@kealia.com>
5857
5858 * MAINTAINERS: Update e-mail address.
5859
d64558a5
JB
58602003-06-24 Jim Blandy <jimb@redhat.com>
5861
e538d2d7
JB
5862 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5863
02631ec0
JB
5864 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5865 function.
5866 (ppc_linux_init_abi): Register it as the
5867 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5868
e716d87a
JB
5869 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5870 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5871 method.
5872
d64558a5
JB
5873 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5874 (ppc64_standard_linkage_target): Use it.
5875
449a5da4
AC
58762003-06-23 Andrew Cagney <cagney@redhat.com>
5877
5878 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5879 for 0 "int0" and 4 "int32" sized registers.
5880 * gdbtypes.c (builtin_type_int0): Define.
5881 (build_gdbtypes): Initialize builtin_type_int0.
5882 * gdbtypes.h (builtin_type_int0): Declare.
5883
b2a02dda
SC
58842003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5885
5886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5887 as characters are unsigned.
5888
fba3138e
DJ
58892003-06-22 Daniel Jacobowitz <drow@mvista.com>
5890
5891 PR gdb/1179
5892 * dwarfread.c (struct_type): Skip static fields without crashing.
5893
f6c8180b
AC
58942003-06-22 Andrew Cagney <cagney@redhat.com>
5895
5896 GDB 6.0 branch created.
f2c06f52
AC
5897 * README: Update.
5898 * PROBLEMS: Update. Empty.
5899 * NEWS: Update.
f6c8180b 5900
ae822768
DJ
59012003-06-22 Daniel Jacobowitz <drow@mvista.com>
5902
5903 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5904 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5905
261de166
AC
59062003-06-22 Andrew Cagney <cagney@redhat.com>
5907
5908 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5909 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5910 Velikov.
5911
30e94205
DJ
59122003-06-22 Daniel Jacobowitz <drow@mvista.com>
5913
5914 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5915 compilers.
5916
9e14d721
DJ
59172003-06-21 Daniel Jacobowitz <drow@mvista.com>
5918
5919 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5920 argument of val_print.
5921 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5922 to the address argument of baseclass_offset or target_read_memory.
5923 Do add it to the argument of cp_print_value_fields.
5924
a4b8ebc8
AC
59252003-06-21 Andrew Cagney <cagney@redhat.com>
5926
5927 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5928 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5929 instead of 0..NUM_REGS.
5930 (mips_register_reggroup_p): New function.
5931 (mips_pseudo_register_write): New function.
5932 (mips_pseudo_register_read): New function.
5933 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5934 based on the register's type.
5935 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5936 cooked.
5937 (mips_get_saved_register): Simplify. Assert that REGNO is a
5938 pseudo / cooked.
5939 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5940 (mips_register_type): Replace mips_register_virtual_type. Map
5941 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5942 when available.
5943 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5944 that the register is cooked / virtual.
5945 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5946 Only get the extra info when needed.
5947 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5948 (mips32_heuristic_proc_desc): Fetch the cooked register.
5949 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5950 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5951 (mips_print_register): Use gdbarch_register_type, instead of
5952 REGISTER_VIRTUAL_TYPE.
5953 (print_gp_register_row): Use gdbarch_register_type, instead of
5954 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5955 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5956 Print the pseudo / cooked registers.
5957 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5958 Print the pseudo / cooked registers.
5959 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5960 REG_NUM is pseudo / cooked.
5961 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5962 (mips_n32n64_xfer_return_value): Ditto.
5963 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5964 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5965 (mips_register_sim_regno): New function.
5966 (mips_gdbarch_init): Set deprecated_register_byte,
5967 register_group_p, pseudo_register_write, pseudo_register_read,
5968 register_sim_regno, and num_pseudo_regs. Set register_type,
5969 instead of register_virtual_type.
5970 * Makefile.in (mips-tdep.o): Update dependencies.
5971 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5972 REGISTER_VIRTUAL_TYPE.
5973 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5974 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5975 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5976 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5977 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5978
325ed089
DJ
59792003-06-21 Daniel Jacobowitz <drow@mvista.com>
5980
5981 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5982 * cli/cli-cmds.c: Include "gdb_vfork.h".
5983 (shell_escape): Use vfork.
5984
f0e7d0e8
AC
59852003-06-21 Andrew Cagney <cagney@redhat.com>
5986
c57bb9fa
AC
5987 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5988 32 bit floating-point register saves.
5989
6e51443a
AC
5990 * frame.h (deprecated_unwind_get_saved_register): Delete.
5991 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5992 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5993 and deprecated_get_next_frame_hack instead of
5994 deprecated_unwind_get_saved_register.
5995
ed183c7c
AC
5996 * mips-tdep.c (mips_dump_tdep): Do not print
5997 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5998
f0e7d0e8
AC
5999 * frame.c (get_frame_register): New function.
6000 (frame_unwind_register_signed): New function.
6001 (get_frame_register_signed): New function.
6002 (frame_unwind_register_unsigned): New function.
6003 (get_frame_register_unsigned): New function.
6004 * frame.h: Add comments on naming schema.
6005 (get_frame_register, frame_unwind_register_signed): Declare.
6006 (get_frame_register_signed, get_frame_register_signed): Declare.
6007 (frame_unwind_register_unsigned): Declare.
6008 (get_frame_register_unsigned): Declare.
6009
2224d941
TR
60102003-06-20 Theodore A. Roth <troth@openavr.org>
6011
6012 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6013
8619218d
TR
60142003-06-20 Theodore A. Roth <troth@openavr.org>
6015
6016 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6017 (avr_read_sp): Ditto.
6018
0b1b50c0
DJ
60192003-06-20 Daniel Jacobowitz <drow@mvista.com>
6020
6021 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6022 * config/arm/nm-linux.h: Likewise.
6023 * config/arm/tm-linux.h: Likewise.
6024 * config/ia64/nm-linux.h: Likewise.
6025 * config/ia64/tm-ia64.h: Likewise.
6026 * config/s390/tm-linux.h: Likewise.
6027 * config/s390/tm-s390.h: Likewise.
6028 * s390-nat.c: Likewise.
6029 * s390-tdep.c: Likewise.
6030
6031 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6032 * config/ia64/linux.mt: Likewise.
6033 * config/m68k/linux.mh: Likewise.
6034 * config/mips/linux.mt: Likewise.
6035 * config/powerpc/linux.mh: Likewise.
6036 * config/sh/linux.mt: Likewise.
6037
c8c18e65
KW
60382003-06-19 Kris Warkentin <kewarken@qnx.com>
6039
6040 * solib.c (solib_open): Change tests for whether to search
6041 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6042 comments.
6043
dcccef2e
TR
60442003-06-19 Theodore A. Roth <troth@openavr.org>
6045
6046 * avr-tdep.c (avr_frame_address): Delete function.
6047 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6048 set_gdbarch_frame_args_address.
6049
5861a190
AC
60502003-06-19 Andrew Cagney <cagney@redhat.com>
6051
6052 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6053 (REGISTER_CONVERT_FROM_TYPE): Delete.
6054 (mips_register_convert_to_type): Delete declaration.
6055 (mips_register_convert_from_type): Delete declaration.
6056 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6057 kernel/.
6058
0274a8ce
MS
60592003-06-19 Michael Snyder <msnyder@redhat.com>
6060
6061 * linux-nat.h: New file.
6062 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6063 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6064 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6065 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6066 (linux_make_note_section): Iterate over lwps instead of threads.
6067 (linux_do_thread_registers): Use lwp instead of merged pid.
6068 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6069 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6070 Add dependency on linux_nat_h.
6071
adf5f719
TR
60722003-06-19 Theodore A. Roth <troth@openavr.org>
6073
6074 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6075
6766a268
DJ
60762003-06-19 Daniel Jacobowitz <drow@mvista.com>
6077
6078 * varobj.c (get_type, get_target_type): Use check_typedef.
6079
1171114a
DJ
60802003-06-19 Daniel Jacobowitz <drow@mvista.com>
6081
6082 * breakpoint.c (insert_catchpoint): Call internal_error.
6083
adcf68a2
TR
60842003-06-19 Theodore A. Roth <troth@openavr.org>
6085
6086 * avr-tdep.c (avr_push_dummy_code): Delete function.
6087 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6088
ea67f13b
DJ
60892003-06-19 Daniel Jacobowitz <drow@mvista.com>
6090
6091 * arch-utils.c (default_prepare_to_proceed): Remove.
6092 (generic_prepare_to_proceed): Remove.
6093 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6094 (generic_prepare_to_proceed): Remove prototype.
6095 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6096 * gdbarch.c: Regenerate.
6097 * gdbarch.h: Regenerate.
6098 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6099 * hppah-nat.c (hppa_switched_threads): Remove.
6100 * infrun.c (prepare_to_proceed): New static function, copied from
6101 generic_prepare_to_proceed. Remove select_it argument.
6102 (proceed): Call prepare_to_proceed.
6103 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6104 variables.
6105 (ptrace_wait): Don't set the removed variables.
6106 (hppa_switched_threads): Remove.
6107 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6108 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6109 (lin_lwp_prepare_to_proceed): Remove prototype.
6110 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6111 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6112
4add8633
TR
61132003-06-18 Theodore A. Roth <troth@openavr.org>
6114
6115 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6116 trad-frame.h.
6117 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6118 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6119 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6120 (AVR_PROLOGUE_*): Enumerate prologue types.
6121 (struct frame_extra_info): Remove.
6122 (struct avr_unwind_cache): Define.
6123 (avr_write_sp): Delete function.
6124 (avr_read_fp): Ditto.
6125 (avr_init_extra_frame_info): Ditto.
6126 (avr_pop_frame): Ditto.
6127 (avr_frame_saved_pc): Ditto.
6128 (avr_saved_pc_after_call): Ditto.
6129 (avr_push_return_address): Ditto.
6130 (avr_frame_chain): Ditto.
6131 (avr_store_struct_return): Ditto.
6132 (avr_push_arguments): Ditto.
6133 (avr_scan_prologue): Update comments. Changed to set up the info for
6134 cache unwinding. Now returns end of prologue PC.
6135 (avr_skip_prologue): Better handling of functions lacking a prologue
6136 by using avr_scan_prologue.
6137 (avr_scan_arg_moves): New function.
6138 (avr_saved_regs_unwinder): Ditto.
6139 (avr_frame_unwind_cache): Ditto.
6140 (avr_unwind_pc): Ditto.
6141 (avr_frame_this_id): Ditto.
6142 (avr_frame_prev_register): Ditto.
6143 (avr_frame_p): Ditto.
6144 (avr_frame_base_address ): Ditto.
6145 (avr_unwind_dummy_id): Ditto.
6146 (avr_push_dummy_code): Ditto.
6147 (push_stack_item): Ditto.
6148 (pop_stack_item): Ditto.
6149 (avr_push_dummy_call): Ditto.
6150 (struct stack_item): Define.
6151 (avr_frame_unwind): Declare structure.
6152 (avr_frame_base): Ditto.
6153 (avr_gdbarch_init): Remove calls to
6154 set_gdbarch_deprecated_init_frame_pc,
6155 set_gdbarch_deprecated_target_read_fp,
6156 set_gdbarch_deprecated_dummy_write_sp,
6157 set_gdbarch_deprecated_fp_regnum,
6158 set_gdbarch_deprecated_push_arguments,
6159 set_gdbarch_deprecated_push_return_address,
6160 set_gdbarch_deprecated_pop_frame,
6161 set_gdbarch_deprecated_store_struct_return,
6162 set_gdbarch_deprecated_frame_init_saved_regs,
6163 set_gdbarch_deprecated_init_extra_frame_info,
6164 set_gdbarch_deprecated_frame_chain,
6165 set_gdbarch_deprecated_frame_saved_pc,
6166 set_gdbarch_deprecated_saved_pc_after_call.
6167 Add calls to set_gdbarch_push_dummy_call,
6168 set_gdbarch_push_dummy_code,
6169 frame_unwind_append_predicate,
6170 frame_base_set_default,
6171 set_gdbarch_unwind_dummy_id,
6172 set_gdbarch_unwind_pc.
6173 Wrap a long line.
6174
7be04a68
MS
61752003-06-18 Corinna Vinschen <vinschen@redhat.com>
6176
6177 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6178 registers for H8/300S.
6179 (h8300_print_registers_info): Ditto.
8ffd9b1b 6180 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6181
ae087d01
DJ
61822003-06-18 Daniel Jacobowitz <drow@mvista.com>
6183
6184 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6185 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6186 (lin_lwp_wait): Likewise. Update comments.
6187 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6188 (pull_pid_from_list, linux_record_stopped_pid): New.
6189
07d8f827
SC
61902003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6191
6192 * ada-lang.c (scan_discrim_bound): Name first argument.
6193 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6194 declared by ALL_BLOCK_SYMBOLS.
6195
7cb47b14
SC
61962003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6197
6198 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6199 ("regcache.h"): Include it.
6200 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6201
6ad8ae5c
DJ
62022003-06-17 Daniel Jacobowitz <drow@mvista.com>
6203
6204 * NEWS: Mention gdbserver detach change and "disconnect" command.
6205 * infcmd.c (disconnect_command): New function.
6206 (_initialize_infcmd): Add ``disconnect'' command.
6207 * remote.c (remote_async_detach): Delete.
6208 (remote_detach): Merge remote_async_detach.
6209 (remote_disconnect): New.
6210 (init_remote_ops): Set to_disconnect.
6211 (init_remote_cisco_ops): Likewise.
6212 (init_remote_async_ops): Likewise. Use remote_detach.
6213 * target.c (cleanup_target): Default to_disconnect.
6214 (update_current_target): Inherit to_disconnect.
6215 (target_disconnect, debug_to_disconnect): New functions.
6216 (setup_target_debug): Set to_disconnect.
6217 * target.h (struct target_ops): Add to_disconnect.
6218 (target_disconnect): Add prototype.
6219
687595f9
DJ
62202003-06-17 Daniel Jacobowitz <drow@mvista.com>
6221
6222 * breakpoint.c (insert_catchpoint): New function.
6223 (insert_breakpoints): Use catch_exceptions to call
6224 insert_catchpoint. Disable catchpoints if they fail to insert.
6225
29239a8f
DJ
62262003-06-17 Daniel Jacobowitz <drow@mvista.com>
6227
6228 * symfile.c (reread_symbols): Clear sym_private.
6229
2cdf3c63
AC
62302003-06-17 Andrew Cagney <cagney@redhat.com>
6231
6232 * trad-frame.h (struct frame_info): Add opaque declaration.
6233 * remote-fileio.h (struct cmd_list_element): Add opaque
6234 declaration.
6235 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6236 comments.
6237
cf0e1e0d
DJ
62382003-06-17 Daniel Jacobowitz <drow@mvista.com>
6239
6240 * remote.c (remote_prepare_to_store): Replace call to
6241 deprecated_read_register_bytes with multiple regcache_raw_read
6242 calls.
6243
192cdb19
KW
62442003-06-17 Kris Warkentin <kewarken@qnx.com>
6245
6246 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6247 (nto_find_and_open_solib): Likewise.
6248 (nto_init_solib_absolute_prefix): Likewise.
6249 (_initialize_nto_tdep): Fix indentation.
6250
89929b45
KW
62512003-06-17 Kris Warkentin <kewarken@qnx.com>
6252
6253 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6254
46019f27
KW
62552003-06-17 Kris Warkentin <kewarken@qnx.com>
6256
6257 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6258
1a38736e
JB
62592003-06-17 Jim Blandy <jimb@redhat.com>
6260
6261 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6262
3605c34a
TR
62632003-06-16 Theodore A. Roth <troth@openavr.org>
6264
6265 * avr-tdep.c (avr_extract_return_value): New function.
6266 (avr_gdbarch_init): Set extract_return_value method.
6267
870b3035
AC
62682003-06-16 Andrew Cagney <cagney@redhat.com>
6269
6270 * frame.h (deprecated_get_next_frame_hack): Declare.
6271 * frame.c (legacy_saved_regs_prev_register): Only require
6272 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6273 there are always saved regs.
6274 (deprecated_generic_get_saved_register): Do not require
6275 DEPRECATED_FRAME_INIT_SAVED_REGS.
6276 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6277 use frame ID unwind instead.
6278 (deprecated_get_next_frame_hack): New function.
6279
63d47a7d
CV
62802003-06-16 Corinna Vinschen <vinschen@redhat.com>
6281
6282 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6283 (h8300_push_dummy_call): ...this function. Some minor optimization.
6284 (h8300_push_return_address): Remove.
6285 (h8300_gdbarch_init): Remove calls to
6286 set_gdbarch_deprecated_dummy_write_sp,
6287 set_gdbarch_deprecated_push_arguments and
6288 set_gdbarch_deprecated_push_return_address.
6289 Add call to set_gdbarch_push_dummy_call.
6290
4bb1dc5e
CV
62912003-06-16 Corinna Vinschen <vinschen@redhat.com>
6292
6293 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6294 (E_PSEUDO_EXR_REGNUM): Ditto.
6295 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6296 registers into safe registers.
4bb1dc5e
CV
6297 (h8300_skip_prologue): Check for stm instruction to push registers
6298 used for register variables onto stack.
6299 (gdb_print_insn_h8300): Remove.
6300 (h8300_examine_prologue): Add a comment.
6301 (h8300_register_name): Take pseudo registers into account.
6302 (h8300s_register_name): Ditto.
6303 (h8300sx_register_name): Ditto.
6304 (h8300_print_register): Ditto.
6305 (h8300_print_registers_info): Define "nice" printing order.
6306 (h8300_saved_pc_after_call): Take pseudo registers into account.
6307 (h8300_register_type): Ditto. Return type used for remote connection
6308 when requesting real CCR or EXR register, return actual type when
6309 requesting pseudo CCR or EXR.
6310 (h8300_pseudo_register_read): New function.
6311 (h8300_pseudo_register_write): Ditto.
6312 (h8300_dbg_reg_to_regnum): Ditto.
6313 (h8300s_dbg_reg_to_regnum): Ditto.
6314 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6315 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6316 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6317 set_gdbarch_print_insn architecture dependent.
6318 Call set_gdbarch_pseudo_register_read and
6319 set_gdbarch_pseudo_register_write.
6320 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6321
a59fe496
AC
63222003-06-16 Andrew Cagney <cagney@redhat.com>
6323
6324 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6325 * gdbarch.h, gdbarch.c: Re-generate.
6326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6327 * s390-tdep.c (s390_gdbarch_init): Update.
6328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6330 * mips-tdep.c (mips_gdbarch_init): Update.
6331 * mcore-tdep.c (mcore_gdbarch_init): Update.
6332 * cris-tdep.c (cris_gdbarch_init): Update.
6333 * infcall.c (call_function_by_hand): Update.
6334 * ia64-tdep.c (ia64_push_arguments): Update comment.
6335 * frame.c (legacy_get_prev_frame): Do not assume
6336 SAVE_DUMMY_FRAME_TOS_P.
6337 * dummy-frame.c (find_dummy_frame): Update comment.
6338
6f4e5a41
AC
63392003-06-16 Andrew Cagney <cagney@redhat.com>
6340
6341 * regcache.c (do_cooked_read): Do not use register_valid_p.
6342
72fab697
TR
63432003-06-15 Theodore A. Roth <troth@openavr.org>
6344
6345 * avr-tdep.c (avr_register_type): Remove a blank line.
6346 (avr_scan_prologue): Correct some comments.
6347
e3d8b004
TR
63482003-06-15 Theodore A. Roth <troth@openavr.org>
6349
6350 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6351 prologue types.
8ffd9b1b 6352 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6353 option.
6354 Add code to scan -mcall-prologues for mega devices.
6355
866b76ea
TR
63562003-06-15 Theodore A. Roth <troth@openavr.org>
6357
6358 * avr-tdep.c (avr_register_byte): Delete function.
6359 (avr_register_raw_size): Delete function.
6360 (avr_register_virtual_size): Delete function.
6361 (avr_register_virtual_type): Delete function.
6362 (avr_register_type): New function.
6363 (avr_address_to_pointer): Remove unused code.
6364 (avr_read_fp): Need to read FP as two separate bytes due to change to
6365 avr_register_type() usage.
6366 (avr_gdbarch_init): Don't set deprecated_register_size.
6367 Don't set deprecated_register_bytes.
6368 Don't set deprecated_register_byte.
6369 Don't set deprecated_register_raw_size.
6370 Don't set deprecated_max_register_raw_size.
6371 Don't set deprecated_register_virtual_size.
6372 Don't set deprecated_max_register_virtual_size.
6373 Don't set deprecated_register_virtual_type.
6374 Set register_type method.
6375
3993f6b1
DJ
63762003-06-15 Daniel Jacobowitz <drow@mvista.com>
6377
6378 * Makefile.in (linux-nat.o): Add rule.
6379 * linux-nat.c: New file.
6380 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6381 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6382 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6383 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6384 * config/arm/linux.mh (NATDEPFILES): Likewise.
6385 * config/i386/linux.mh (NATDEPFILES): Likewise.
6386 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6387 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6388 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6389 * config/mips/linux.mh (NATDEPFILES): Likewise.
6390 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6391 * config/s390/s390.mh (NATDEPFILES): Likewise.
6392 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6393
786a90bb
MK
63942003-06-15 Mark Kettenis <kettenis@gnu.org>
6395
6396 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6397 replace out-of-date comment.
6398
3bd3f01e
AC
63992003-06-15 Andrew Cagney <cagney@redhat.com>
6400
6401 * rdi-share/host.h (Fail): Change to a varargs function.
6402 * remote-rdi.c (Fail): Update.
8ffd9b1b 6403
de5b9bb9
MK
64042003-06-15 Mark Kettenis <kettenis@gnu.org>
6405
6406 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6407 (i386_convert_register_p, i386_register_to_value,
6408 i386_register_from_value): Handle types longer than 8 bytes.
6409
d532c08f
MK
64102003-06-15 Mark Kettenis <kettenis@gnu.org>
6411
6412 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6413 Move floating-point code to new function in i387-tdep.c.
6414 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6415 New functions containing code moved here from i386-tdep.c.
6416 * i387-tdep.h: Add opaque declaration for `struct type'.
6417 (i387_register_to_value, i387_value_to_register): New prototypes.
6418 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6419 (x86_64_init_abi): Set convert_register_p, register_to_value and
6420 value_to_register here.
8ffd9b1b 6421
42c466d7
AC
64222003-06-14 Andrew Cagney <cagney@redhat.com>
6423
6424 * mips-tdep.c (mips_register_to_value): Make static.
6425 (mips_value_to_register): Make static.
6426 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6427 * ia64-tdep.c (ia64_register_raw_size): Make static.
6428 (ia64_register_virtual_size): Make static.
6429 (ia64_register_byte): Make static.
6430 * i387-tdep.c: Include "i387-tdep.h".
6431 (print_387_control_word): Delete function.
6432 (print_387_status_word): Delete function.
6433 (print_387_status_bits): Delete function.
6434 (print_387_control_bits): Delete function.
6435 * Makefile.in (i387-tdep.o): Update dependencies.
6436 * rdi-share/host.h (Fail): Declare.
6437 * remote-rdi.c (Fail): Update to match declaration.
6438
2a9cda49
AC
64392003-06-14 Andrew Cagney <cagney@redhat.com>
6440
6441 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6442 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6443 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6444 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6445 * README: Delete reference to remote-array.
6446 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6447 (remote-array.o): Delete target.
6448 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6449 * remote-array.c: Delete file.
6450
ff2e87ac
AC
64512003-06-14 Andrew Cagney <cagney@redhat.com>
6452 Mark Kettenis <kettenis@gnu.org>
6453
6454 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6455 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6456 parameter with "frame".
6457 * gdbarch.h, gdbarch.c: Re-generate.
6458 * frame.h (put_frame_register): Declare.
6459 * frame.c (put_frame_register): New function.
6460 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6461 (legacy_register_to_value): Rewrite, use "frame" to get the
6462 register value.
6463 (legacy_value_to_register): Rewrite, use "frame" to find the
6464 register's location before storing.
6465 * arch-utils.h (legacy_convert_register_p): Update.
6466 (legacy_register_to_value, legacy_value_to_register): Update.
6467 * findvar.c (value_from_register): Rewrite, eliminate use of
6468 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6469 "frame" to REGISTER_TO_VALUE.
6470 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6471 lval_reg_frame_relative + lval_register branch of the switch. Do
6472 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6473 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6474 I386_EDI_REGNUM): New defines.
6475 (i386_next_regnum, i386_convert_register_p,
6476 i386_register_to_value, i386_value_to_register): New functions.
6477 (i386_register_convertible, i386_register_convert_to_virtual,
6478 i386_convert_to_raw): Remove functions.
6479 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6480 value_to_register instead of register_convertible,
6481 register_convert_to_virtual and register_convert_to_raw.
6482 * mips-tdep.c (mips_convert_register_p): New function.
6483 (mips_value_to_register): Replace mips_register_convert_from_type.
6484 (mips_register_to_value): Replace mips_register_convert_to_type.
6485 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6486 register_to_value.
6487 * alpha-tdep.c (alpha_convert_register_p): Update.
6488 (alpha_value_to_register): Update, store the register.
6489 (alpha_register_to_value): Update, fetch the register.
6490
98be1e77
TR
64912003-06-14 Theodore A. Roth <troth@openavr.org>
6492
6493 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6494 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6495 Don't set deprecated_call_dummy_words.
6496 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6497 Don't set remote_translate_xfer_address.
6498 (avr_io_reg_read_command): Remove commented out debug printf.
6499 Wrap a long line.
6500
57bc6122
TR
65012003-06-14 Theodore A. Roth <troth@openavr.org>
6502
6503 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6504 causes gdb to seg fault.
6505
eb01fc62
DJ
65062003-06-14 Daniel Jacobowitz <drow@mvista.com>
6507
6508 * sparc-nat.c (fetch_inferior_registers): Correct
6509 a reference to "registers".
6510
3b3e6bee
DJ
65112003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6512
6513 * Makefile.in (exc_request_U_h): Define
6514 (exc_request_S_h): Likewise.
6515 (msg_reply_S_h): Likewise.
6516 (msg_U_h): Likewise.
6517 (notify_S_h): Likewise.
6518 (process_reply_S_h): Likewise.
6519 (gnu-nat.o): Depend on gdb_obstack_h
6520 * gnu-nat.c: Include "gdb_obstack.h".
6521
b8de8283
AC
65222003-06-13 Andrew Cagney <cagney@redhat.com>
6523
6524 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6525 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6526
f3be58bc
AC
65272003-06-13 Andrew Cagney <cagney@redhat.com>
6528
6529 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6530 when deprecated REGISTER macros can be deleted.
6531 * gdbarch.h, gdbarch.c: Re-generate.
6532
4c0122c8
JB
65332003-06-13 Jim Blandy <jimb@redhat.com>
6534
6535 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6536 Linux entry point symbols for _dl_debug_state, too.
6537
3e210248
AC
65382003-06-13 Andrew Cagney <cagney@redhat.com>
6539
6540 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6541 available, do not use the FP register, and always save the TOS.
6542 * dummy-frame.c (dummy_frame_this_id): Do not assert
6543 SAVE_DUMMY_FRAME_TOS.
6544 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6545 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6546 (i386_push_dummy_call): Add 8 to the returned SP.
6547 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6548 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6549 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6550 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6551 (x86_64_push_dummy_call): Return "sp + 16".
6552 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6553 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6554 save_dummy_frame_tos.
6555
0b65af49
JB
65562003-06-13 Jim Blandy <jimb@redhat.com>
6557
6558 * frv-tdep.c (frv_use_struct_convention): Delete static
6559 declaration for function deleted in my change of 2003-06-12.
6560
4ea2465e
TR
65612003-06-13 Theodore A. Roth <troth@openavr.org>
6562
6563 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6564 (avr_pointer_to_address): Shift code addrs left 1 bit.
6565 (avr_convert_from_func_ptr_addr): Delete function since operation is
6566 better handled by avr_address_to_pointer and avr_pointer_to_address.
6567 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6568
1581182a
MK
65692003-06-13 Mark Kettenis <kettenis@gnu.org>
6570
6571 From Kelley Cook <kelleycook@wideopenwest.com>:
6572 * configure.host: Accept i[34567]86 variants.
6573 * configure.tgt: Likewise.
6574 * nlm/configure.in: Likewise.
6575 * nlm/configure: Regenerated.
6576
7aa1783e
RE
65772003-06-13 Richard Earnshaw <rearnsha@arm.com>
6578
6579 * arm-tdep.c (solib-svr4.h): Dont' include it.
6580 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6581 * arm-linux-tdep.c: ... here. Make static.
6582 (arm_linux_init_abi): Register it.
6583 (solib-svr4.h): Include it.
6584 * Makefile.in: Update dependencies.
6585 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6586 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6587
0261a0d0
CV
65882003-06-13 Corinna Vinschen <vinschen@redhat.com>
6589
6590 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6591 indicate registers used for return values.
6592 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6593 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6594 members.
6595 (h8300_init_extra_frame_info): Ditto.
6596 (h8300_frame_locals_address): Removed.
6597 (h8300_frame_args_address): Removed.
6598 (h8300_extract_return_value): Use new regcache structure. Only care
6599 for 16 bit CPUs.
6600 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6601 (h8300_store_return_value): Use new regcache structure. Only care
6602 for 16 bit CPUs.
6603 (h8300h_store_return_value): Same function for 32 bit CPUs.
6604 (h8300_store_struct_return): Removed.
6605 (h8300_extract_struct_value_address): Use new regcache structure.
6606 (h8300h_extract_struct_value_address): Removed.
6607 (h8300_push_dummy_code): New function.
6608 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6609 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6610 set_gdbarch_store_return_value architecture dependent.
6611 Call set_gdbarch_push_dummy_code and
6612 set_gdbarch_extract_struct_value_address.
6613 Remove calls to set_gdbarch_frame_args_address,
6614 set_gdbarch_frame_locals_address,
6615 set_gdbarch_deprecated_store_struct_return,
6616 set_gdbarch_deprecated_extract_return_value,
6617 set_gdbarch_deprecated_extract_struct_value_address,
6618 set_gdbarch_deprecated_call_dummy_words and
6619 set_gdbarch_deprecated_sizeof_call_dummy_words.
6620
055c394a
CV
66212003-06-13 Corinna Vinschen <vinschen@redhat.com>
6622
6623 * h8300-tdep.c (h8300_register_byte): Remove.
6624 (h8300h_register_byte): Remove.
6625 (h8300_register_virtual_type): Remove. Substitute by...
6626 (h8300_register_type): New function.
6627 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6628 (h8300h_extract_struct_value_address): Ditto.
6629 (h8300_gdbarch_init): Drop calls to
6630 set_gdbarch_deprecated_register_byte and
6631 set_gdbarch_deprecated_register_virtual_type.
6632 Add call to set_gdbarch_register_type.
6633
9c04cab7
AC
66342003-06-13 Andrew Cagney <cagney@redhat.com>
6635
6636 * gdbarch.sh: Update comments on registers.
6637 (deprecated_register_byte): Rename register_byte.
6638 (deprecated_register_raw_size): Rename register_raw_size.
6639 (deprecated_register_virtual_size): Rename register_virtual_size.
6640 (deprecated_register_virtual_type): Rename register_virtual_type.
6641 * gdbarch.h, gdbarch.c: Re-generate.
6642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6643 * vax-tdep.c (vax_gdbarch_init): Update.
6644 * v850-tdep.c (v850_gdbarch_init): Update.
6645 * sparc-tdep.c (sparc_gdbarch_init): Update.
6646 * sh-tdep.c (sh_gdbarch_init): Update.
6647 * s390-tdep.c (s390_gdbarch_init): Update.
6648 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6649 * ns32k-tdep.c: Update.
6650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6651 * mips-tdep.c (mips_gdbarch_init): Update.
6652 * mcore-tdep.c (mcore_gdbarch_init): Update.
6653 * m68k-tdep.c (m68k_gdbarch_init): Update.
6654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6655 * ia64-tdep.c (ia64_gdbarch_init): Update.
6656 * hppa-tdep.c (hppa_gdbarch_init): Update.
6657 * h8300-tdep.c (h8300_gdbarch_init): Update.
6658 * frv-tdep.c (frv_gdbarch_init): Update.
6659 * cris-tdep.c (cris_gdbarch_init): Update.
6660 * avr-tdep.c (avr_gdbarch_init): Update.
6661 * alpha-tdep.c (alpha_gdbarch_init): Update.
6662 * arm-tdep.c (arm_gdbarch_init): Update.
6663
b060cbea
AC
66642003-06-13 Andrew Cagney <cagney@redhat.com>
6665
6666 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6667 mips_o32_use_struct_convention with always_use_struct_convention.
6668
0fc9922a
DC
66692003-06-12 David Carlton <carlton@kealia.com>
6670
6671 * cp-namespace.c (cp_set_block_scope): Comment out
6672 processing_has_namespace_info branch.
6673
1fd35568
JB
66742003-06-12 Jim Blandy <jimb@redhat.com>
6675
f470a70a
JB
6676 Recognize and skip 64-bit PowerPC Linux linkage functions.
6677 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6678 insn_pattern, insns_match_pattern, d_field, ds_field): New
6679 functions, macros, and types for working with PPC instructions.
6680 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6681 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6682 ppc64_skip_trampoline_code): New functions, variables, and macros
6683 for recognizing and skipping linkage functions.
6684 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6685 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6686
49ff75ad
JB
6687 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6688 register offsets for both the 32- and 64-bit interfaces.
6689
bd918c83
JB
6690 Actually finish the job started by my change of 2003-05-29.
6691 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6692 other #definition of this.
6693 (ppc_linux_skip_trampoline_code): Remove declaration.
6694 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6695 static.
6696 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6697 method for GDBARCH.
6698
6699 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6700 'long' on ppc64-*-linux*.
6701
f8c59253
JB
6702 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6703 isn't #defined, assume the register doesn't exist: act as if
6704 tdep->ppc_mq_regnum were -1.
6705
8fbb30b1
JB
6706 * configure.host, configure.tgt: Add entries for
6707 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6708 powerpc/linux.mt.
6709 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6710 New files.
6711
1fd35568
JB
6712 * arch-utils.c (always_use_struct_convention): New function.
6713 * arch-utils.h (always_use_struct_convention): New prototype.
6714 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6715 (alpha_gdbarch_init): Register always_use_struct_convention,
6716 instead of alpha_use_struct_convention.
6717 * cris-tdep.c (cris_use_struct_convention): Delete.
6718 (cris_gdbarch_init): Register always_use_struct_convention,
6719 instead of cris_use_struct_convention.
6720 * frv-tdep.c (frv_use_struct_convention): Delete.
6721 (frv_gdbarch_init): Register always_use_struct_convention,
6722 instead of frv_use_struct_convention.
6723 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6724 (h8300_gdbarch_init): Register always_use_struct_convention,
6725 instead of h8300_use_struct_convention.
e3305dd9 6726 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6727 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6728 instead of mips_o32_use_struct_convention.
6729
e14e6e9c
AC
67302003-06-12 Andrew Cagney <cagney@redhat.com>
6731
6732 * wince.c: Include "mips-tdep.h".
6733 * mips-tdep.h (mips_next_pc): Declare.
6734 * mcore-tdep.c: Make more local functions static.
6735 * Makefile.in (wince.o): Update dependencies.
6736
2335f48e
DC
67372003-06-12 David Carlton <carlton@kealia.com>
6738
6739 * symtab.c (lookup_symbol_aux_minsyms): Replace
6740 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6741 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6742 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6743 SYMBOL_NATURAL_NAME.
6744
f70a7d61
AS
67452003-06-12 Andreas Schwab <schwab@suse.de>
6746
6747 * Makefile.in (tuiDisassem.o): Update dependencies.
6748
b6429628
DC
67492003-06-12 David Carlton <carlton@bactrian.org>
6750
6751 * symtab.h: Delete declaration of make_symbol_overload_list.
6752 Add declaration of lookup_partial_symbol.
6753 * symtab.c (remove_params): Move to cp-support.c.
6754 (overload_list_add_symbol, make_symbol_overload_list)
6755 (sym_return_val_size, sym_return_val_index): Ditto.
6756 (lookup_partial_symbol): Make extern.
6757 * cp-support.h: Add declaration of make_symbol_overload_list.
6758 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6759 symtab.h, and block.h.
6760 (remove_params): Move here from symtab.c.
6761 (overload_list_add_symbol, make_symbol_overload_list)
6762 (sym_return_val_size, sym_return_val_index): Ditto.
6763 * valops.c: Include cp-support.h.
6764 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6765 frame_h, and block_h.
6766 (valops.o): Depend on cp_support_h.
6767
084edea5
CV
67682003-06-12 Corinna Vinschen <vinschen@redhat.com>
6769
6770 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6771 substitute by NUM_REGS throughout.
6772 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6773 (h8300s_register_name): New function for H8S registers.
6774 (h8300sx_register_name): Ditto for H8SX registers.
6775 (h8300_print_register): Revise register printing, avoid depending
6776 on 32 bit long.
0261a0d0 6777 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6778 (h8300h_register_byte): New function for any other architecture.
6779 (h8300_register_raw_size): Remove.
6780 (h8300_register_virtual_type): Revise to return actually useful
6781 type.
6782 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6783 (h8300h_extract_struct_value_address): New function for any other
6784 architecture.
6785 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6786 set_gdbarch_register_name, set_gdbarch_register_byte,
6787 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6788 Remove calls to set_gdbarch_deprecated_register_size,
6789 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6790 set_gdbarch_deprecated_max_register_raw_size,
6791 set_gdbarch_register_virtual_size and
6792 set_gdbarch_deprecated_max_register_virtual_size entirely.
6793 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6794 set_gdbarch_long_double_bit.
6795
06194148
JJ
67962003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6797
8ffd9b1b
AJ
6798 * doublest.c (convert_doublest_to_floatformat): When dealing
6799 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6800 processing a full 32 bits of mantissa.
6801
de4f826b
DC
68022003-06-11 David Carlton <carlton@bactrian.org>
6803
6804 * dictionary.h: New.
6805 * dictionary.c: New.
6806 * block.h: Add opaque declaration for struct dictionary.
6807 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6808 'sym' members.
6809 (BLOCK_DICT): New macro.
6810 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6811 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6812 BLOCK_SHOULD_SORT.
6813 (ALL_BLOCK_SYMBOLS): Update definition.
6814 * Makefile.in (SFILES): Add dictionary.c.
6815 (dictionary_h): New.
6816 (COMMON_OBS): Add dictionary.o.
6817 (dictionary.o): New.
6818 (ada-lang.o): Depend on dictionary_h.
6819 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6820 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6821 (mi-cmd-stack.o): Ditto.
6822 (gdbtk-cmds.o): Update dependencies.
6823 (gdbtk-stack.o): Ditto.
6824 * ada-lang.c: Include dictionary.h.
6825 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6826 (fill_in_ada_prototype, debug_print_block): Ditto.
6827 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6828 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6829 'is_sorted'.
6830 * mdebugread.c: Include dictionary.h.
6831 (struct parse_stack): Delete 'maxsyms' member.
6832 (parse_symbol): Update calls to new_block. Delete calls to
6833 shrink_block. Use dictionary methods.
6834 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6835 Update calls to new_symtab. Don't maintain maxsyms data.
6836 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6837 (add_symbol): Just call dict_add_symbol.
6838 (new_symtab): Delete 'maxsyms' argument.
6839 (new_symtab): Update calls to new_block.
6840 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6841 (shrink_block): Delete function.
6842 (fixup_sigtramp): Update call to new_block. Add symbol via
6843 dict_add_symbol.
6844 * jv-lang.c: Include dictionary.h.
6845 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6846 appropriately. Set class_symtab->free_func. Make sure the
6847 blockvector is big enough to hold two blocks.
6848 (add_class_symtab_symbol): Use dictionary methods.
6849 (free_class_block): New function.
6850 (type_from_class): Replace explicit iteration by
6851 ALL_BLOCK_SYMBOLS.
6852 * symtab.h (struct symtab): Replace 'free_ptr' method by
6853 'free_func'.
6854 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6855 sort_symtab_syms.
6856 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6857 sort_symtab_syms.
6858 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6859 Include dictionary.h.
6860 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6861 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6862 sort_symtab_syms.
6863 * objfiles.c: Include dictionary.h.
6864 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6865 * buildsym.c: Include dictionary.h.
6866 (finish_block): Use dictionary methods.
6867 (end_symtab): Set free_func to NULL, not free_ptr.
6868 * tracepoint.c: Include dictionary.h.
6869 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6870 (scope_info): Ditto.
6871 * stack.c: Include dictionary.h.
6872 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6873 (print_block_frame_labels, print_frame_arg_vars)
6874 (print_frame_args): Ditto.
6875 * symmisc.c (free_symtab_block): Use dictionary methods.
6876 (dump_symtab): Ditto.
6877 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6878 Include dictionary.h.
6879 * symfile.h: Delete declarations of sort_block_syms,
6880 sort_symtab_syms.
6881 * symfile.c (sort_block_syms): Delete.
6882 (sort_symtab_syms): Delete.
6883 * symtab.c: Include dictionary.h.
6884 (lookup_block_symbol): Use dictionary iterators.
6885 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6886 (search_symbols, make_symbol_completion_list): Ditto.
6887 (make_symbol_overload_list): Ditto.
6888 * valops.c (value_of_local): Use dict_empty.
6889 Include dictionary.h.
6890
a31f978c
JB
68912003-06-11 J. Brobecker <brobecker@gnat.com>
6892
6893 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6894
526e70c0
DC
68952003-06-11 David Carlton <carlton@bactrian.org>
6896
6897 * block.h (BLOCK_SHOULD_SORT): Delete.
6898 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6899 blocks.
6900 * ada-lang.c (ada_add_block_symbols): Ditto.
6901 * symfile.c (sort_block_syms): Delete.
6902 (sort_symtab_syms): Ditto.
6903 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6904 declarations.
6905 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6906 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6907 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6908 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6909 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6910 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6911 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6912
33c08150
JJ
69132003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6914
8ffd9b1b 6915 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6916 bits to 128.
6917
781a750d
AC
69182003-06-11 Andrew Cagney <cagney@redhat.com>
6919
6920 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6921 REGISTER_CONVERTIBLE.
6922 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6923 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6924 * gdbarch.h, gdbarch.c: Re-generate.
6925 * arch-utils.h (deprecated_register_convertible_not): Rename
6926 generic_register_convertible_not.
6927 * arch-utils.c (deprecated_register_convertible_not): Rename
6928 generic_register_convertible.
6929 (legacy_convert_register_p, legacy_register_to_value): Update.
6930 * sh-tdep.c (sh64_push_arguments): Update.
6931 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6932 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6933 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6934 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6935 * arch-utils.c (legacy_value_to_register): Update.
6936 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6937 (rs6000_register_convert_to_raw): Make parameter "from" const.
6938 * mips-tdep.c (mips_gdbarch_init): Update.
6939 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6940 * infcmd.c (default_print_registers_info): Update.
6941 * ia64-tdep.c (ia64_gdbarch_init): Update.
6942 (ia64_register_convert_to_raw): Make parameter "from" const.
6943 * i386-tdep.c (i386_gdbarch_init): Update.
6944 (i386_register_convert_to_raw): Update.
6945
cd90e54f
AC
69462003-06-11 Andrew Cagney <cagney@redhat.com>
6947
6948 * remote-fileio.c: Include "remote-fileio.h".
6949 * Makefile.in (remote-fileio.o): Update dependencies.
6950 (remote_fileio_h): Fix typo.
6951
a78f21af
AC
69522003-06-11 Andrew Cagney <cagney@redhat.com>
6953
6954 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6955 (xstormy16_save_dummy_frame_tos): Make static.
6956 (_initialize_xstormy16_tdep): Add declaration.
6957 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6958 * v850-tdep.c: Make local functions static.
6959 (_initialize_v850_tdep): Add declaration.
6960 * sparc-tdep.c: Make local functions static.
6961 (_initialize_sparc_tdep): Add declaration.
6962 * sh-tdep.c: Make local functions static.
6963 (_initialize_sh_tdep): Add declaration.
6964 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6965 * s390-tdep.c: Make local functions static.
6966 (_initialize_s390_tdep): Add declaration.
6967 * dbxread.c (find_stab_function_addr): Make static.
6968 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6969 * ocd.c (_initialize_remote_ocd): Add declaration.
6970 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6971 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6972 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6973 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6974 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6975 * remote-array.c (_initialize_array): Add declaration.
6976 (_initialize_remote_monitors): Add declaration.
6977 * remote-mips.c: Make local functions static.
6978 (_initialize_remote_mips): Add declaration.
6979 * mcore-tdep.c: Make all local functions static.
6980 (_initialize_mcore_tdep): Add declaration.
6981 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6982 * abug-rom.c (_initialize_abug_rom): Add declaration.
6983 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6984 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6985 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6986 * remote-est.c (_initialize_est): Add declaration.
6987 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6988 (m68hc11_call_dummy_address): Make static.
6989 * ia64-tdep.c: Make local functions static.
6990 (_initialize_ia64_tdep): Add declaration.
6991 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6992 * monitor.c (monitor_wait_filter): Make static.
6993 (_initialize_remote_monitors): Add declaration.
6994 * remote-hms.c (_initialize_remote_hms): Add declaration.
6995 * remote-e7000.c (fetch_regs_from_dump): Make static.
6996 (expect_n): Make static.
6997 (_initialize_remote_e7000): Add declaration.
6998 * ser-e7kpc.c: Always include "defs.h".
6999 (_initialize_ser_e7000pc): Add declaration.
7000 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7001 * cris-tdep.c: Make all but one function static.
7002 (_initialize_cris_tdep): Add declaration.
7003 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7004 * solib.c (update_solib_list): Make static.
7005 (_initialize_solib): Add declaration.
7006 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7007 (_initialize_avr_tdep): Add declaration.
7008 * remote-rdi.c (voiddummy): Make static.
7009 (_initialize_remote_rdi): Add declaration.
7010 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7011 * remote-rdp.c (send_rdp): Make static.
7012 (_initialize_remote_rdp): Add declaration.
7013 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7014
cbcdb1f5
CV
70152003-06-11 Corinna Vinschen <vinschen@redhat.com>
7016
7017 * remote-fileio.c: Make ari happy.
7018
a191ea8d
JB
70192003-06-10 J. Brobecker <brobecker@gnat.com>
7020
7021 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7022 fetching the trailing bytes of the buffer we are about to write.
7023
0ef75e11
AC
70242003-06-10 Andrew Cagney <cagney@redhat.com>
7025
7026 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7027 * Makefile.in (remote-fileio.o): Update dependencies.
7028 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7029 include <setjmp.h>, or <sys/types.h> conditional on USG.
7030 (remote_fio_jmp_buf): Delete global variable.
7031
449092f6 70322003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7033 Martin M. Hunt <hunt@redhat.com>
449092f6 7034
559fa028
AC
7035 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7036 (SFILES): Add remote-fileio.c.
7037 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7038 dependencies for building remote.o.
449092f6
CV
7039 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7040 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7041 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7042 static storage class.
7043 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7044 'F' packet.
7045 (_initialize_remote): Call initialize_remote_fileio().
7046 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7047 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7048 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7049 (captured_main): Initialize new ui_files.
7050 * ui-file.c: Add read and fgets input functions.
7051 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7052 (null_file_read): New function.
7053 (ui_file_read): New function.
7054 (set_ui_file_read): New function.
7055 (stdio_file_read): New function.
7056 * ui-file.h: New type ui_file_read_ftype.
7057 (set_ui_file_read): Declare.
7058 (ui_file_read): Declare.
7059
248de703
AC
70602003-06-09 Andrew Cagney <cagney@redhat.com>
7061
7062 * frame.h (deprecated_unwind_get_saved_register): Rename
7063 generic_unwind_get_saved_register, update comments.
7064 * mips-tdep.c (mips_get_saved_register): Update.
7065 * frame.c (deprecated_unwind_get_saved_register): Update.
7066
0ed8aa57
AC
70672003-06-09 Andrew Cagney <cagney@redhat.com>
7068
7069 * vax-tdep.c (vax_frame_locals_address): Delete function.
7070 (vax_gdbarch_init): Do not set frame_locals_address.
7071 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7072 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7073 * s390-tdep.c (s390_frame_args_address): Delete function.
7074 (s390_gdbarch_init): Do not set frame_args_address or
7075 frame_locals_address.
7076 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7077 (ns32k_gdbarch_init): Do not set frame_locals_address.
7078 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7079 (hppa_frame_locals_address): Delete function.
7080 (hppa_gdbarch_init): Do not set frame_args_address, or
7081 frame_locals_address.
7082 * arm-tdep.c (arm_frame_args_address): Delete.
7083 (arm_frame_locals_address): Delete.
7084 (arm_gdbarch_init): Do not set frame_args_address, or
7085 frame_locals_address.
7086
983a287a
AC
70872003-06-09 Andrew Cagney <cagney@redhat.com>
7088
7089 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7090 * gdbarch.h, gdbarch.c: Re-generate.
7091 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7092 * arch-utils.c (frame_num_args_unknown): Delete function.
7093 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7094 (frame_info): Use FRAME_NUM_ARGS_P.
7095 * arm-tdep.c (arm_frame_num_args): Delete function.
7096 (arm_gdbarch_init): Do not set frame_num_args.
7097 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7098 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7099 (hppa_gdbarch_init): Do not set frame_num_args.
7100 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7102 frame_num_args to default frame_num_args_unknown.
7103 * v850-tdep.c (v850_gdbarch_init): Ditto.
7104 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7105 * sh-tdep.c (sh_gdbarch_init): Ditto.
7106 * s390-tdep.c (s390_gdbarch_init): Ditto.
7107 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7108 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7109 * mips-tdep.c (mips_gdbarch_init): Ditto.
7110 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7111 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7113 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7114 * i386-tdep.c (i386_gdbarch_init): Ditto.
7115 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7116 * frv-tdep.c (frv_gdbarch_init): Ditto.
7117 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7118 * cris-tdep.c (cris_gdbarch_init): Ditto.
7119 * avr-tdep.c (avr_gdbarch_init): Ditto.
7120 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7121
8d3b0994
AC
71222003-06-09 Andrew Cagney <cagney@redhat.com>
7123
7124 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7125 (print_frame_args): Moved to "stack.c".
7126 * stack.c: Include "gdb_assert.h".
7127 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7128 (print_frame_args): Moved from "printcmd.c".
7129 * frame.h (print_frame_args): Delete declaration.
7130 * Makefile.in (stack.o): Update dependencies.
7131
25e3a86b
AC
71322003-06-08 Andrew Cagney <cagney@redhat.com>
7133
7134 * frame.c (get_prev_frame): Remove reference to
7135 frame_args_address_correct in comments.
7136 * frame-base.c (default_frame_args_address): Delete code
7137 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7138 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7139 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7140 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7141 (vax_frame_args_address_correct): Delete declaration.
7142
a9e5fdc2
AC
71432003-06-08 Andrew Cagney <cagney@redhat.com>
7144
7145 * gdbarch.sh (UNWIND_SP): Add.
7146 * gdbarch.h, gdbarch.c: Re-generate.
7147 * frame.c (frame_sp_unwind): New function.
7148 (get_frame_sp): New function.
7149 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7150 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7151 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7152 value.
7153 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7154 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7155
8983bd83
AC
71562003-06-08 Andrew Cagney <cagney@redhat.com>
7157
7fec2c59
AC
7158 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7159 REMOTE_BREAKPOINT.
7160 * remote.c: Update.
7161 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7162 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7163 * config/m68k/tm-sun3.h: Update.
7164 * config/m68k/tm-m68klynx.h: Update.
7165 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7166
8983bd83
AC
7167 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7168 trad_frame". Update comments.
7169 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7170 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7171 (trad_frame_register_value, trad_frame_prev_register): Update.
7172
b9362cc7
AC
71732003-06-08 Andrew Cagney <cagney@redhat.com>
7174
7175 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7176 from GCC's acinclude.m4.
7177 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7178 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7179 * main.c (error_init): Delete declaration.
7180 * defs.h (error_init): Declare.
7181 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7182 (rs6000_convert_from_func_ptr_addr): Make static.
7183 (_initialize_rs6000_tdep): Add declaration.
7184 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7185 (show_commands, set_verbose, show_history): Delete declaration.
7186 * top.h (set_verbose): Add declaration.
7187 (show_history, set_history, show_commands): Add declaration.
7188 (do_restore_instream_cleanup): Add declaration.
7189 * objc-lang.c (specialcmp): Make static.
7190 (print_object_command): Make static.
7191 (find_objc_msgsend): Make static.
7192 (find_objc_msgcall_submethod_helper): Make static.
7193 (find_objc_msgcall_submethod): Make static.
7194 (_initialize_objc_language): Add declaration.
7195 (find_implementation_from_class): Make static.
7196 (find_implementation): Make static.
7197 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7198 * objc-lang.h (lookup_struct_typedef): Add declaration.
7199 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7200 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7201 (do_restore_user_call_depth): Make static.
7202 (do_restore_instream_cleanup): Delete declaration.
7203 (dont_repeat): Delete declaration.
7204 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7205 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7206 * reggroups.c (_initialize_reggroup): Add declaration.
7207 * cp-support.c (_initialize_cp_support): Add declaration.
7208 * cp-abi.c (_initialize_cp_abi): Add declaration.
7209 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7210 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7211 (_initialize_gnu_v3_abi): Add declaration.
7212 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7213 (_initialize_gnu_v2_abi): Add declaration.
7214 * frame-base.c (_initialize_frame_base): Add declaration.
7215 * doublest.c (floatformat_from_length): Make static.
7216 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7217 * frame.c (create_sentinel_frame): Make static.
7218 (_initialize_frame): Add declaration.
7219 * top.c (do_catch_errors): Make static.
7220 (gdb_rl_operate_and_get_next_completion): Make static.
7221 * typeprint.c: Include "typeprint.h".
7222 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7223 (sentinel_frame_this_id): Make static.
7224 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7225 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7226 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7227 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7228 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7229 * maint.c (maintenance_print_architecture): Make static.
7230 * signals/signals.c (_initialize_signals): Add declaration.
7231 * std-regs.c (_initialize_frame_reg): Add declaration.
7232 * jv-exp.y (push_variable): ISO C definition.
7233 (push_qualified_expression_name): Ditto.
7234 * memattr.c (_initialize_mem): Add declaration.
7235 * remote.c (remote_check_watch_resources): Make static.
7236 (remote_stopped_by_watchpoint): Make static.
7237 (remote_stopped_data_address): Make static.
7238 * d10v-tdep.c (nr_dmap_regs): Make static.
7239 (a0_regnum): Make static.
7240 (d10v_frame_unwind_cache): Make static.
7241 (d10v_frame_p): Make static.
7242 * osabi.c (show_osabi): Make static.
7243 (_initialize_gdb_osabi): Add extern declaration.
7244 * gdbtypes.c (make_qualified_type): Make static.
7245 (safe_parse_type): Make static.
7246 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7247 * macrotab.c (macro_bcache_free): Make static.
7248 * interps.c (interp_set_quiet): Make static.
7249 (interpreter_exec_cmd): Make static.
7250 * stack.h (select_frame_command): New file.
7251 * stack.c: Include "stack.h".
7252 (select_frame_command_wrapper): Delete function.
7253 (select_frame_command): Make global.
7254 * infcall.c: Include "infcall.h".
7255 * linespec.c: Include "linespec.h".
7256 * symfile.c (sections_overlap): Make static.
7257 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7258 * charset.c (_initialize_charset): Add missing prototype.
7259 * regcache.c (init_legacy_regcache_descr): Make static.
7260 (do_regcache_xfree): Make static.
7261 (regcache_xfer_part): Make static.
7262 (_initialize_regcache): Add missing prototype.
7263 * breakpoint.c (parse_breakpoint_sals): Make static.
7264 (breakpoint_sals_to_pc): Make static.
7265 * interps.h (clear_interpreter_hooks): ISO C declaration.
7266 * Makefile.in (stack_h): Define.
7267 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7268 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7269
a0f267c7
AC
72702003-06-08 Andrew Cagney <cagney@redhat.com>
7271
7272 * Makefile.in (d10v-tdep.o): Update dependencies.
7273 (SFILES): Add trad-frame.c.
7274 (trad_frame_h): Define.
7275 (COMMON_OBS): Add trad-frame.o.
7276 (trad-frame.o): Specify dependencies.
7277 * d10v-tdep.c: Include "trad-frame.h".
7278 (saved_regs_unwinder): Delete function.
7279 (d10v_frame_prev_register): Use trad_frame_prev_register.
7280 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7281 trad_frame", delete "regs" and "prev_sp".
7282 (prologue_find_regs): Use trad-frame.
7283 * trad-frame.h, trad-frame.c: New files.
7284
4538b4f4
MK
72852003-06-08 Mark Kettenis <kettenis@gnu.org>
7286
7287 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7288
a0273b2f
AF
72892003-06-07 Adam Fedor <fedor@gnu.org>
7290
7291 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7292 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7293 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7294 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7295 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7296 Use it.
7297
3a6c3343
AC
72982003-06-07 Andrew Cagney <cagney@redhat.com>
7299
7300 * symfile.h: Re-indent, clean up comments.
7301
b46e02f6
AC
73022003-06-07 Andrew Cagney <cagney@redhat.com>
7303
7304 * inferior.h (deprecated_write_sp): Replace
7305 generic_target_write_sp.
7306 * regcache.c (deprecated_write_sp): Replace
7307 generic_target_write_sp.
7308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7309 * vax-tdep.c (vax_gdbarch_init): Update.
7310 * v850-tdep.c (v850_gdbarch_init): Update.
7311 * sparc-tdep.c (sparc_gdbarch_init): Update.
7312 * sh-tdep.c (sh_gdbarch_init): Update.
7313 * s390-tdep.c (s390_gdbarch_init): Update.
7314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7317 * mcore-tdep.c (mcore_gdbarch_init): Update.
7318 * m68k-tdep.c (m68k_gdbarch_init): Update.
7319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7320 * ia64-tdep.c (ia64_gdbarch_init): Update.
7321 * h8300-tdep.c (h8300_gdbarch_init): Update.
7322 * frv-tdep.c (frv_gdbarch_init): Update.
7323 * cris-tdep.c (cris_gdbarch_init): Update.
7324 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7325
a42e117c
AC
73262003-06-07 Andrew Cagney <cagney@redhat.com>
7327
7328 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7329 Assert that PC_REGNUM is valid.
7330 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7331
bd1ce8ba
AC
73322003-06-07 Andrew Cagney <cagney@redhat.com>
7333
7334 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7335 * gdbarch.h, gdbarch.c: Regenerate.
7336 * mn10300-tdep.c: Include "gdb_assert.h".
7337 (mn10300_read_fp): New function.
7338 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7339 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7340 * ia64-tdep.c: Include "gdb_assert.h".
7341 (ia64_read_fp): New function.
7342 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7343 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7344 * regcache.c (generic_target_read_sp): Delete function.
7345 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7346 * inferior.h (generic_target_read_sp): Delete declaration.
7347 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7348 generic_target_read_sp.
7349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7350 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7351 * sh-tdep.c (sh_gdbarch_init): Ditto.
7352 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7353 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7354
ec5cbaec
AC
73552003-06-07 Andrew Cagney <cagney@redhat.com>
7356
7357 * gdbarch.sh: Comment each field of startup_gdbarch.
7358 * gdbarch.h, gdbarch.c: Re-generate.
7359
cde9ea48
AC
73602003-06-07 Andrew Cagney <cagney@redhat.com>
7361
7362 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7363 * gdbarch.h, gdbarch.c: Re-generate.
7364 * regcache.c: Update comments on read_pc et.al.
7365 (generic_target_read_pc): Delete function.
7366 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7367 * inferior.h (generic_target_read_pc): Delete declaration.
7368 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7369 generic_target_read_pc.
7370 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7371 * sh-tdep.c (sh_gdbarch_init): Ditto.
7372 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7374
9a90a780
AC
73752003-06-07 Andrew Cagney <cagney@redhat.com>
7376
7377 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7378 "index" with "special_local_sect". Use strcmp instead of STREQ.
7379 Append period to coments.
7380
a39a16c4
MM
73812003-06-06 Mark Mitchell <mark@codesourcery.com>
7382
7383 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7384 (elfstab_offset_sections): Likewise.
7385 * gdb-stabs.h (stab_section_info): Likewise.
7386 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7387 * objfiles.c (objfile_relocate): Likewise.
7388 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7389 * remote.c (get_offsets): Likewise.
7390 (remote_cisco_objfile_relocate): Likewise.
7391 * somread.c (som_symfile_offsets): Likewise.
7392 * symfile.c (alloc_section_addr_info): New function.
7393 (build_section_addr_info_from_section_tab): Use it.
7394 (free_section_addr_info): Adjust.
7395 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7396 (syms_from_objfile): Allocate local_addr dynamically.
7397 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7398 dynamically.
7399 (add_symbol_file_command): Allocate sect_opts dynamically.
7400 (reread_symbols): Avoid use of SECT_OFF_MAX.
7401 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7402 (alloc_section_addr_info): Declare it.
7403 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7404 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7405 dynamically.
7406 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7407
20c6c2f8
AC
74082003-06-06 Andrew Cagney <cagney@redhat.com>
7409
7410 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7411 (d10v_frame_unwind_cache): Do not set "return_pc".
7412
884a26c8
MS
74132003-06-06 Michael Snyder <msnyder@redhat.com>
7414
7415 * h8300-tdep.c: Make tidy (long lines).
7416
088ce440
ML
74172003-06-06 Michal Ludvig <mludvig@suse.cz>
7418
8ffd9b1b 7419 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7420 to regcache_collect().
7421
7d773d96
JB
74222003-06-05 J. Brobecker <brobecker@gnat.com>
7423
7424 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7425 pc_in_sigtramp multiarch method.
7426 (hppa_hpux_som_init_abi): Use it.
7427 (hppa_hpux_elf_init_abi): Likewise.
7428 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7429 macro has been multiarched.
7430 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7431 macro here, as hppa64 isn't multiarched yet.
7432
1df6926e
AC
74332003-06-05 Andrew Cagney <cagney@redhat.com>
7434
7435 * Makefile.in (value_h): Add $(frame_h).
7436 * value.h: Include "frame.h".
7437 (struct value): Replace "frame_addr" with "frame_id".
7438 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7439 * values.c (allocate_value): Use VALUE_FRAME_ID.
7440 (value_copy): Use VALUE_FRAME_ID.
7441 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7442 * valops.c (value_assign): Update. Use frame_find_by_id.
7443
6b53acc6
ML
74442003-06-05 Michal Ludvig <mludvig@suse.cz>
7445
7446 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7447 in each pass.
7448
4d9850d3
JJ
74492003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7450
7451 * thread-db.c (check_event): For create/death event breakpoints,
7452 loop through all messages to ensure that we read the message
7453 corresponding to the breakpoint we are at.
7454
8efca6ba
MS
74552003-06-04 Michael Snyder <msnyder@redhat.com>
7456
7457 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7458
0912c7f2
MK
74592003-06-04 Mark Kettenis <kettenis@gnu.org>
7460
7461 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7462 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7463 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7464 when handling .eh_frame sections.
7465
4e370325
JB
74662003-06-04 J. Brobecker <brobecker@gnat.com>
7467
7468 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7469 prepare_to_proceed procedure instead of the hppa-specific one.
7470 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7471
b757528f 74722003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7473
b757528f
JJ
7474 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7475 * config.in: Regenerated.
7476 * configure.in: Add test for syscall function and check for
7477 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7478 * configure: Regenerated.
7479 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7480 <sys/syscall.h>.
7481 (kill_lwp): New function that uses tkill syscall or
7482 uses kill, depending on whether threading model is nptl or not.
7483 All callers of kill() changed to use kill_lwp().
7484 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7485 see if all threads have already exited in the nptl model.
7486 (stop_and_resume_callback): New callback function used by the
7487 lin_lwp_wait thread exit handling code.
7488 (stop_wait_callback): Check for threads already having exited and
7489 delete such threads fromt the lwp list when discovered.
7490 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7491
b757528f
JJ
7492 Roland McGrath <roland@redhat.com>
7493 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7494 nptl libthread_db.
7495
087779b1
RH
74962003-06-03 Richard Henderson <rth@redhat.com>
7497
b21fd293
RH
7498 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7499 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7500 (alpha_sigtramp_frame_prev_register): Likewise.
7501 (alpha_heuristic_frame_prev_register): Likewise.
7502 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7503
8ffd9b1b 7504 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7505 alpha-specific register id names.
7506 (alpha_mdebug_frame_unwind_cache): Likewise.
7507 (alpha_mdebug_frame_prev_register): Likewise.
7508
baa490c4
RH
75092003-06-03 Richard Henderson <rth@redhat.com>
7510
7511 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7512 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7513 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7514 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7515 unwind routines.
7516 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7517 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7518 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7519
7520 * alpha-linux-tdep.c: Remove unnecessary includes.
7521 * Makefile.in (alpha-linux-tdep.o): Update.
7522
75232003-06-03 Richard Henderson <rth@redhat.com>
7524
7525 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7526 (alphabsd_fill_fpreg): Likewise.
7527
f534e522
JB
75282003-06-03 J. Brobecker <brobecker@gnat.com>
7529
7530 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7531 references to struct frame_info fields by calls to the equivalent
7532 accessors. Necessary now that frame_info is opaque.
7533
4035536b
JB
75342003-06-03 J. Brobecker <brobecker@gnat.com>
7535
7536 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7537 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7538 structure, field no longer exists.
7539
0bd79c5c
JB
75402003-06-03 J. Brobecker <brobecker@gnat.com>
7541
7542 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7543 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7544
37bb6d9f
JB
75452003-06-03 J. Brobecker <brobecker@gnat.com>
7546
7547 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7548 references to struct frame_info fields by calls to the equivalent
7549 accessors. Necessary now that frame_info is opaque.
7550
852ee05c
JB
75512003-06-03 J. Brobecker <brobecker@gnat.com>
7552
7553 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7554 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7555 structure, field no longer exists.
7556
7d58c67d
TR
75572003-06-03 Theodore A. Roth <troth@openavr.org>
7558
8ffd9b1b 7559 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7560 accumulation of the size of all registers instead of blindly using
7561 DEPRECATED_REGISTER_BYTES.
7562
0a48e7e8
MS
75632003-06-03 Michael Snyder <msnyder@redhat.com>
7564
7565 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7566 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7567 for h8300sx.
7568
9798ab0d
JB
75692003-06-03 J. Brobecker <brobecker@gnat.com>
7570
7571 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7572 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7573
00b037e2
AC
75742003-06-03 Andrew Cagney <cagney@redhat.com>
7575
7576 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7577 (sparc_convert_to_raw): Delete function.
7578 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7579 register_convert_to_virtual.
7580
043b2f77
JJ
75812003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7582
7583 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7584 layer if not dealing with a statically-linked threaded program.
7585
f43caff8
KW
75862003-06-03 Kris Warkentin <kewarken@qnx.com>
7587
7588 * solib.c (solib_open): Update comment to reflect actual search order.
7589
ae1e7417
AC
75902003-06-03 Andrew Cagney <cagney@redhat.com>
7591
7592 * frame.c (get_frame_memory_signed): New function.
7593 (get_frame_memory, get_frame_memory_unsigned): New function.
7594 (get_frame_arch): New function.
7595 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7596 (get_frame_memory, get_frame_unsigned_memory): Declare.
7597 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7598 get_frame_memory_unsigned and get_frame_arch.
7599 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7600
cb123844
RG
76012003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7602
7603 * MAINTAINERS (write after approval): Add myself.
7604
1bb792e9
JB
76052003-06-03 Jim Blandy <jimb@redhat.com>
7606
7607 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7608 elements of gregset_t are 64 bits each, but access registers
7609 are still 32 bits, so they're packed two per gregset_t
7610 element. Unpack/pack them properly.
7611
aee8d8ba
DC
76122003-06-02 David Carlton <carlton@bactrian.org>
7613
7614 * linespec.c (find_methods): Break out code into
7615 add_matching_methods and add_constructors.
7616 (add_matching_methods): New.
7617 (add_constructors): Ditto.
7618
bf7488d2
AC
76192003-06-02 Andrew Cagney <cagney@redhat.com>
7620
bf7488d2
AC
7621 * sparc-tdep.c (sparc_print_registers): Delete call to
7622 REGISTER_CONVERTIBLE.
7623 (sparc_gdbarch_init): Do not set register_convertible.
7624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7625 * frv-tdep.c (frv_gdbarch_init): Ditto.
7626 * cris-tdep.c (cris_gdbarch_init): Ditto.
7627
adedef68
EZ
76282003-06-02 Elena Zannoni <ezannoni@redhat.com>
7629
8ffd9b1b 7630 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7631 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7632 (syms_from_objfile): Ditto.
7633
650fcc91
AS
76342003-06-03 Andreas Schwab <schwab@suse.de>
7635
7636 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7637 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7638
df4a182b
RH
76392003-06-02 Richard Henderson <rth@redhat.com>
7640
7641 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7642 a member of all_reggroup.
7643
c483c494
RH
76442003-06-02 Richard Henderson <rth@redhat.com>
7645
7646 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7647 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7648 (alpha_lds, alpha_sts): New.
7649 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7650 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7651 restructure and fail for type sizes other than 4 or 8.
7652 (alpha_value_to_register): Similarly.
7653 (alpha_extract_return_value): Use alpha_sts.
7654 (alpha_store_return_value): Use alpha_lds.
7655 (alpha_gdbarch_init): Update hooks.
7656
b38b6be2
RH
76572003-06-02 Richard Henderson <rth@redhat.com>
7658
7659 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7660 regnum identifiers.
7661 (alpha_sigtramp_register_address): Likewise.
7662
98a8e1e5
RH
76632003-06-02 Richard Henderson <rth@redhat.com>
7664
7665 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7666 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7667 * alpha-tdep.h: Declare them.
7668
7669 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7670 Remove zerobuf. Don't error on UNIQUE.
7671 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7672 (ALPHA_REGSET_UNIQUE): Provide default.
7673 (supply_gregset): Use alpha_supply_int_regs.
7674 (fill_gregset): Use alpha_fill_int_regs.
7675 (supply_fpregset): Use alpha_supply_fp_regs.
7676 (fill_fpregset): Use alpha_fill_fp_regs.
7677 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7678 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7679 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7680 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7681 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7682 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7683
67dfac52
RH
76842003-06-02 Richard Henderson <rth@redhat.com>
7685
f75d70cc
RH
7686 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7687
67dfac52
RH
7688 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7689 (alpha_store_return_value): Likewise.
7690
0cf566ec
DC
76912003-06-02 David Carlton <carlton@math.stanford.edu>
7692
7693 * block.c (contained_in): Add 'const' to arguments.
7694 (block_function): Ditto.
7695 * block.h: Update declarations for block_function and
7696 contained_in.
7697
cdef89d0
DC
76982003-06-02 David Carlton <carlton@math.stanford.edu>
7699
7700 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7701 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7702 * p-valprint.c (pascal_val_print): Ditto.
7703 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7704
72667056
RH
77052003-06-02 Richard Henderson <rth@redhat.com>
7706
98a8e1e5
RH
7707 * alpha-tdep.c (alpha_push_dummy_call): Use
7708 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7709
8ffd9b1b 7710 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7711 sign-extension of 32-bit values.
7712 (alpha_store_return_value): Similarly.
0ede8eca 7713
98a8e1e5
RH
7714 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7715 (alpha_extract_return_value): Likewise.
7716 (alpha_store_return_value): Likewise.
7b5e1cb3 7717
98a8e1e5
RH
7718 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7719 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7720
98a8e1e5
RH
7721 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7722 (alpha_extract_struct_value_address): Likewise.
7723 (alpha_store_return_value): Likewise.
7724 (alpha_store_struct_return): Remove.
7725 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7726
98a8e1e5
RH
7727 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7728 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7729 macros where appropriate.
7730 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7731 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7732
98a8e1e5
RH
7733 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7734 for SP, GP; void_func_ptr for PC; non-language-specific types
7735 for all others.
7736 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7737
6dd77b81
RH
77382003-06-02 Richard Henderson <rth@redhat.com>
7739
7740 * top.h (lim_at_start): Declare.
7741 * main.c (captured_main): Set it.
7742 * top.c (lim_at_start): Define.
7743 (command_loop): Use it instead of &environ.
7744 * event-top.c (command_handler): Likewise.
7745
f4dbdb54
JT
77462003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7747
7748 * mipsnbsd-tdep.c: Update copyright years.
7749 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7750
8f285956
RH
77512003-06-01 Richard Henderson <rth@redhat.com>
7752
98a8e1e5
RH
7753 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7754 (alpha-linux-tdep.o): Update dependencies.
7755 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7756 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7757
615967cb
RH
77582003-06-01 Richard Henderson <rth@redhat.com>
7759
98a8e1e5
RH
7760 * alpha-tdep.c (alpha_register_reggroup_p): New.
7761 (alpha_gdbarch_init): Register it.
615967cb 7762
b59661bd
AC
77632003-06-02 Andrew Cagney <cagney@redhat.com>
7764
7765 * dwarfread.c: Eliminate "register"
7766 (decode_die_type): Eliminate assignment within "if".
7767 (struct_type, decode_array_element_type): Ditto.
7768 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7769 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7770 (decode_modified_type, completedieinfo): Ditto.
7771 * block.c: Eliminate "register".
7772 (blockvector_for_pc_sect): Eliminate assignment within "if".
7773 * cp-support.h (struct symbol): Opaque declaration.
7774 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7775
5ef165c2
RH
77762003-06-01 Richard Henderson <rth@redhat.com>
7777
98a8e1e5
RH
7778 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7779 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7780
143985b7
AF
77812003-06-01 Adam Fedor <fedor@gnu.org>
7782
7783 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7784 * gdbarch.[ch]: Regenerate.
7785 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7786 (hppa_gdbarch_init): Set it in the gdbarch vector.
7787 * i386-tdep.c (i386_fetch_pointer_argument): New
7788 (i386_gdbarch_init): Set it into gdbarch.
7789 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7790 (rs6000_gdbarch_init): Set it in gdbarch.
7791 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7792 (sparc_gdbarch_init): Set it in gdbarch.
7793
ae0167b9
AC
77942003-06-01 Andrew Cagney <cagney@redhat.com>
7795
7c0b4a20
AC
7796 * defs.h (extract_address): Delete declaration.
7797 * findvar.c (extract_address): Delete function.
7798 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7799 extract_address with the inline equivalent,
7800 extract_unsigned_integer.
7801 (xstormy16_extract_struct_value_address): Ditto.
7802 (xstormy16_pointer_to_address): Ditto.
7803 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7804 * v850-tdep.c (v850_push_arguments): Ditto.
7805 (v850_extract_return_value): Ditto.
7806 (v850_extract_struct_value_address): Ditto.
7807 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7808 (sparcnbsd_get_longjmp_target_64): Ditto.
7809 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7810 (get_longjmp_target): Ditto.
7811 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7812 (sh64_extract_struct_value_address): Ditto.
7813 (sh_push_arguments): Ditto.
7814 (sh64_push_arguments): Ditto.
7815 * remote-vxsparc.c (vx_read_register): Ditto.
7816 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7817 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7818 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7819 * mipsv4-nat.c (get_longjmp_target): Ditto.
7820 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7821 * mips-nat.c (get_longjmp_target): Ditto.
7822 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7823 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7824 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7825 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7826 * irix5-nat.c (get_longjmp_target): Ditto.
7827 * irix4-nat.c (get_longjmp_target): Ditto.
7828 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7829 (ia64_push_arguments): Ditto.
7830 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7831 * h8300-tdep.c (h8300_push_arguments): Ditto.
7832 (h8300_store_return_value): Ditto.
7833 (h8300_extract_struct_value_address): Ditto.
7834 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7835 (frv_push_arguments): Ditto.
7836 * avr-tdep.c (avr_pointer_to_address): Ditto.
7837 (avr_push_arguments): Ditto.
7838 * arm-tdep.c (arm_push_dummy_call): Ditto.
7839 (arm_get_longjmp_target): Ditto.
7840 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7841 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7842 (alpha_get_longjmp_target): Ditto.
7843
ae0167b9
AC
7844 * solib-irix.c (extract_mips_address): Inline extract_address,
7845 replacing it with extract_signed_integer.
7846 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7847 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7848 (first_link_map_member, open_symbol_file_object): Ditto.
7849 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7850 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7851 (LM_NEXT, LM_NAME): Ditto.
7852
44d88583
RH
78532003-06-01 Richard Henderson <rth@redhat.com>
7854
98a8e1e5
RH
7855 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7856 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7857 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7858 (alpha_cannot_store_register): Likewise.
7859 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7860 * alpha-nat.c (supply_gregset): Likewise.
7861 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7862
310e9b6a
AC
78632003-06-01 Andrew Cagney <cagney@redhat.com>
7864
7865 * infcall.c (call_function_by_hand): Update comment on
7866 DEPRECATED_DUMMY_WRITE_SP.
7867
7868 * mips-tdep.c (mips_gdbarch_init): Do not set
7869 deprecated_dummy_write_sp.
7870 (mips_eabi_push_dummy_call): Set the SP register.
7871 (mips_o64_push_dummy_call): Set the SP register.
7872 (mips_o32_push_dummy_call): Set the SP register.
7873 (mips_n32n64_push_dummy_call): Set the SP register.
7874
5ab84872
RH
78752003-06-01 Richard Henderson <rth@redhat.com>
7876
98a8e1e5
RH
7877 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7878 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7879 (supply_gregset): Likewise.
7880 * alpha-tdep.c (alpha_store_return_value): Likewise.
7881 (alpha_get_longjmp_target): Likewise.
7882 (alpha_register_name): Constify array.
7883 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7884 deprecated_register_size, deprecated_register_bytes,
7885 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7886 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7887 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7888
09cc52fd
RH
78892003-06-01 Richard Henderson <rth@redhat.com>
7890
7891 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7892 from arg_reg_buffer to regcache to avoid double conversion.
7893
c7f16359
MK
78942003-06-01 Mark Kettenis <kettenis@gnu.org>
7895
7896 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7897 SP_REGNUM.
7898 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7899 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7900
7131cb6e
RH
79012003-06-01 Richard Henderson <rth@redhat.com>
7902
98a8e1e5
RH
7903 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7904 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7905
f3e0f90b
RH
79062003-06-01 Richard Henderson <rth@redhat.com>
7907
98a8e1e5
RH
7908 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7909 not overlapping PC_REGNUM.
f3e0f90b 7910
c88e30c0
RH
79112003-06-01 Richard Henderson <rth@redhat.com>
7912
98a8e1e5
RH
7913 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7914 alpha_push_arguments. Don't dump argument register data to
7915 the target stack. Fix float and 128-bit long double semantics.
7916 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7917 (alpha_fix_call_dummy): Remove.
7918 (alpha_call_dummy_words): Remove.
7919 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7920
f1a559ae
RH
79212003-06-01 Richard Henderson <rth@redhat.com>
7922
7923 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7924
5e045346
AC
79252003-06-01 Andrew Cagney <cagney@redhat.com>
7926
95404a3e
AC
7927 * mips-tdep.c (is_mips16_addr): New function.
7928 (make_mips16_addr, unmake_mips16_addr): New functions.
7929 (pc_is_mips16, mips_fetch_instruction): Use.
7930 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7931 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7932 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7933 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7934 TARGET_MIPS.
7935 * config/mips/tm-mips.h: Update copyright.
7936 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7937 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7938 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7939 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7940 (TM_PRINT_INSN_MACH): Delete.
7941 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7942
5e045346
AC
7943 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7944 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7945 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7946 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7947 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7948 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7949 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7950 mips*-*-riscos* and mips*-*-sysv* onto mips.
7951 * config/mips/mips64.mt: New file.
7952 * config/mips/mips.mt: New file.
7953 * config/mips/littlemips.mt: Delete file.
7954 * config/mips/decstation.mt: Delete file.
7955 * config/mips/vr4300el.mt: Delete file.
7956 * config/mips/vr5000el.mt: Delete file.
7957 * config/mips/vr5000.mt: Delete file.
7958 * config/mips/vr4100.mt: Delete file.
7959 * config/mips/vr4xxxel.mt: Delete file.
7960 * config/mips/vr4300.mt: Delete file.
7961 * config/mips/vr4xxx.mt: Delete file.
7962 * config/mips/bigmips.mt: Delete file.
7963 * config/mips/bigmips64.mt: Delete file.
7964 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7965 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7966 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7967 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7968 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7969 "tm-bigmips.h".
7970 * config/mips/tm-irix3.h: Ditto.
7971 * config/mips/tm-mipsv4.h: Ditto.
7972 * config/mips/tm-embed.h: Ditto.
7973 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7974 "tm-bigmips64.h".
7975 * config/mips/tm-vr5000el.h: Delete file.
7976 * config/mips/tm-tx39l.h: Delete file.
7977 * config/mips/tm-vr4300el.h: Delete file.
7978 * config/mips/tm-vr4xxxel.h: Delete file.
7979 * config/mips/tm-vr4300.h: Delete file.
7980 * config/mips/tm-vr4100.h: Delete file.
7981 * config/mips/tm-vr4xxx.h: Delete file.
7982 * config/mips/tm-vr5000.h: Delete file.
7983 * config/mips/tm-embedl64.h: Delete file.
7984 * config/mips/tm-embedl.h: Delete file.
7985 * config/mips/tm-embed64.h: Delete file.
7986 * config/mips/tm-bigmips64.h: Delete file.
7987 * config/mips/tm-bigmips.h: Delete file.
7988
2473a4a9
MK
79892003-06-01 Mark Kettenis <kettenis@gnu.org>
7990
97a5b208
MK
7991 Fix gdb/1216.
7992 * shnbsd-nat.c: Include "sh-tdep.h".
7993
2473a4a9
MK
7994 From Richard Henderson <rth@redhat.com>:
7995 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7996
e0f7ec59
AC
79972003-05-31 Andrew Cagney <cagney@redhat.com>
7998
7999 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8000 forward declaration.
8001 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8002 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8003 (mips_find_saved_regs): Use set_reg_offset.
8004 (mips_frame_init_saved_regs): Delete function.
8005 (mips_pop_frame): Call mips_find_saved_regs instead of
8006 DEPRECATED_FRAME_INIT_SAVED_REGS.
8007
68dcc709
AC
80082003-05-31 Andrew Cagney <cagney@redhat.com>
8009
8010 * mips-tdep.c (mips_gdbarch_init): Do not set
8011 deprecated_max_register_raw_size, register_virtual_size, and
8012 deprecated_max_register_virtual_size.
8013
cfc14b3a
MK
80142003-05-31 Mark Kettenis <kettenis@gnu.org>
8015
6405b0a6
MK
8016 * i386-tdep.c: Include "dwarf2-frame.h".
8017 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8018 * Makefile.in (i386-tdep.o): Update dependencies.
8019
cfc14b3a
MK
8020 * dwarf2-frame.c, dwarf2-frame.h: New files.
8021 * Makefile.in (SFILES): Add dwarf2-frame.c.
8022 (dwarf2_frame_h): Define.
8023 (COMMON_OBS): Add dwarf2-frame.o.
8024 (dwarf2-frame.o): Add dependencies.
8025
6a2751d2
AJ
80262003-05-31 Andreas Jaeger <aj@suse.de>
8027
8028 * x86-64-linux-nat.c: Fix comment.
8029
1c3545ae
MK
80302003-05-31 Mark Kettenis <kettenis@gnu.org>
8031
10f93086
MK
8032 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8033 function signature.
8034
1c3545ae
MK
8035 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8036 have a sigcontext_addr handler.
8037 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8038 sigcontext_addr handler.
8039
e11c53d2
AC
80402003-05-31 Andrew Cagney <cagney@redhat.com>
8041
8042 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8043 (print_fp_register_row): Replace do_fp_register_row.
8044 (mips_print_fp_register): Add "file" and "frame" parameters.
8045 (mips_print_register): Add "file" and "frame" parameters.
8046 (mips_print_registers_info): Replace mips_do_registers_info.
8047 (mips_gdbarch_init): Set print_registers_info instead of
8048 deprecated_do_registers_info.
8049 (mips_read_fp_register_single): Add "frame" parameter.
8050 (mips_read_fp_register_double): Add "frame" parameter.
8051
a3386186
MK
80522003-05-31 Mark Kettenis <kettenis@gnu.org>
8053
70913449
MK
8054 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8055 Fixes a bug where GDB would print the wrong register names for
8056 targets without SSE.
8057
2b5e0749
MK
8058 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8059 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8060 registers.
8061
8062 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8063 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8064 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8065 TDEP->sc_sp_offset.
8066
a3386186
MK
8067 From Michal Ludvig <mludvig@suse.cz>:
8068 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8069 and `sc_num_regs'.
8070 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8071 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8072 I386_ST0_REGNUM): Move here from...
8073 * i386-tdep.c: ... here.
8074 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8075 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8076 registers if possible.
8077 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8078 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8079 Remove variables.
8080 (i386bsd_sc_reg_offset): New variable.
8081 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8082 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8083 TDEP->sc_sp_offset.
8084 (i386fbsd_sc_reg_offset): New variable.
8085 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8086 TDEP->sc_num_regs.
8087 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8088 variables.
8089 (i386fbsd4_sc_reg_offset): New variable.
8090 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8091 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8092 TDEP->sc_sp_offset.
8093 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8094 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8095 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8096 Remove variables.
8097 (i386nbsd_sc_reg_offset): New variable.
8098 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8099 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8100 TDEP->sc_sp_offset.
8101 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8102 Remove variables.
8103 (i386obsd_sc_reg_offset): New variable.
8104 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8105 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8106 TDEP->sc_sp_offset.
8107 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8108 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8109 for frame pointer offset in `struct sigcontext'.
8110
25ab4790
AC
81112003-05-31 Andrew Cagney <cagney@redhat.com>
8112
8113 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8114 architecture methods call_dummy_words, sizeof_call_dummy_words,
8115 push_return_address, store_struct_return, and fix_call_dummy. Set
8116 push_dummy_call instead of deprecated_push_arguments.
8117 (mips_store_struct_return): Delete function.
8118 (mips_fix_call_dummy): Delete function.
8119 (mips_push_return_address): Delete function.
8120 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8121 RA_REGNUM and T9_REGNUM.
8122 (mips_n32n64_push_dummy_call): Ditto for
8123 mips_n32n64_push_arguments.
8124 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8125 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8126
6a65450a
AC
81272003-05-31 Andrew Cagney <cagney@redhat.com>
8128
8129 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8130 "dummy_addr" to "bp_addr".
8131 * infcall.c (call_function_by_hand): Pass "funaddr" to
8132 gdbarch_push_dummy_call.
8133 * gdbarch.h, gdbarch.c: Re-generate.
8134 * i386-tdep.c (i386_push_dummy_call): Update.
8135 * arm-tdep.c (arm_push_dummy_call): Update.
8136 * d10v-tdep.c (d10v_push_dummy_call): Update.
8137
c4f35dd8
MK
81382003-05-31 Mark Kettenis <kettenis@gnu.org>
8139
8140 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8141 variable declarations.
8142 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8143 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8144 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8145 x86_64_init_frame_pc, x86_64_init_frame_pc,
8146 x86_64_function_has_prologue): Remove prototypes.
8147 (X86_64_NUM_GREGS): New define.
8148 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8149 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8150 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8151 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8152 XMM1_REGNUM): Remove defines.
8153 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8154 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8155 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8156 X86_64_XMM1_REGNUM): New defines.
8157 (struct x86_64_register_info): Renamed from `struct
8158 register_info'. Remove `size' member.
8159 (x86_64_register_info_table): Remove variable.
8160 (x86_64_register_info): New variable.
8161 (X86_64_NUM_REGS): New define.
8162 (X86_64_NUM_GREGS): Remove define.
8163 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8164 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8165 Remove variables.
8166 (x86_54_dwarf2_reg_to_regnum): Remove function.
8167 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8168 (x86_64_dwarf_reg_to_regnum): New function.
8169 (x86_64_register_name): Rewrite.
8170 (x86_64_register_raw_size): Remove function.
8171 (x86_64_register_byte_table): Remove variable.
8172 (x86_64_register_byte): Remove function.
8173 (x86_64_register_virtual_type): Remove function.
8174 (x86_64_register_type): New function.
8175 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8176 x86_64_register_convert_to_raw): Remove functions.
8177 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8178 (x86_64_use_struct_convention): Make static. Adjust for renamed
8179 defines.
8180 (x86_64_frame_init_saved_regs): Remove function.
8181 (x86_64_push_arguments): Make static. Change to accept a regcache
8182 as argument.
8183 (x86_64_store_return_value, x86_64_extract_return_value): Make
8184 static. Rewrite based on i386 counterparts.
8185 (x86_64_push_dummy_call): New function.
8186 (X86_64_NUM_SAVED_REGS): New define.
8187 (x86_64_register_number): Remove function.
8188 (x86_64_store_struct_return): Remove function.
8189 (x86_64_frameless_function_invocation,
8190 x86_64_function_has_prologue): Remove functions.
8191 (PROLOG_BUFSIZE): Remove define.
8192 (struct x86_64_frame_cache): New structure.
8193 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8194 x86_64_frame_cache, x86_64_frame_this_id,
8195 x86_64_frame_prev_register, x86_64_frame_p,
8196 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8197 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8198 functions.
8199 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8200 variables.
8201 (x86_64_skip_prologue): Rewrite in terms of
8202 x86_64_analyze_prologue.
8203 (x86_64_frame_base_address): New function.
8204 (x86_64_frame_base): New variable.
8205 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8206 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8207 set deprecated_fp_regnum, deprecated_register_size,
8208 deprecated_register_bytes, register_raw_size, register_byte,
8209 register_virtual_type, register_convertiable,
8210 register_convert_to_virtual, convert_to_raw,
8211 deprecated_get_saved_register, deprecated_target_read_fp,
8212 deprecated_push_arguments, deprecated_push_return_address,
8213 deprecated_pop_frame, deprecated_store_struct_return,
8214 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8215 frameless_function_invocation, deprecated_frame_saved_pc,
8216 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8217 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8218 deprecated_init_frame_pc and virtual_frame_pointer. Call
8219 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8220 and x86_64_frame_p. Call frame_base_set_default to register
8221 x86_64_frame_base.
8222 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8223 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8224 (_initialize_x86_64_tdep): Remove function.
8225 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8226 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8227 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8228 define.
8229 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8230 (x86_64_linux_sigcontext_addr): Rewrite.
8231 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8232 x86_64_linux_frame_saved_pc): Remove functions.
8233 (x86_64_linux_pc_in_sigtramp): Renamed from
8234 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8235 trampoline.
8236 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8237 Remove_functions.
8238 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8239 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8240 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8241 (x86_64_regmap): Rename to regmap.
8242 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8243 x86_64_num_gregs.
8244 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8245 x86_64_regmap.
8246 (x86_64_fxsave_offset): Remove function.
8247 (supply_fpregset): Simply call x86_64_supply_fxsave.
8248 (fill_fpregset): Simply call x86_64_fill_fxsave.
8249 (fetch_inferior_registers, store_inferior_registers): Avoid
8250 asignment in if-statement.
8251 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8252 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8253 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8254 (fetch_core_registers): Remove function.
8255 (linux_elf_core_fns): Remove.
8256 (offsetoff): Don't define.
8257 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8258 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8259 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8260 add core-regset.o.
8261 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8262 protection against multiple includes instead of NM_X86_64_h. Add
8263 various comments. Include "config/nm-linux.h". Don't include
8264 <signal.h>.
8265 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8266 GET_THREAD_SIGNALS): Remove defines.
8267 (x86_64_register_u_addr, kernel_u_size,
8268 lin_thread_get_thread_signals): Remove prototypes.
8269 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8270 [HAVE_LINK_H]: Don't include "solib.h".
8271 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8272 * config/i386/tm-x86-64linux.h: Fix comments.
8273 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8274 x86-64-tdep.o): Update dependencies.
8275
c25083af
AC
82762003-05-30 Andrew Cagney <cagney@redhat.com>
8277
c8f55a7b
AC
8278 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8279 Change parameter type to a "struct regcache *".
8280
c25083af
AC
8281 * gdbarch.sh: Regardless of the multi-arch level, always define
8282 the macro when not already defined.
8283 * gdbarch.h, gdbarch.c: Re-generate.
8284
fbe586ae
RH
82852003-05-30 Richard Henderson <rth@redhat.com>
8286
8287 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8288 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8289 (alpha_mdebug_frame_this_id): Likewise.
8290 (alpha_mdebug_frame_prev_register): Likewise.
8291 (alpha_mdebug_frame_base_address): Likewise.
8292 (alpha_mdebug_frame_locals_address): Likewise.
8293 (alpha_mdebug_frame_args_address): Likewise.
8294 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8295 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8296 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8297 loop increment.
8298 (alpha_heuristic_frame_this_id): Make static.
8299 (alpha_heuristic_frame_prev_register): Likewise.
8300 (alpha_heuristic_frame_base_address): Likewise.
8301 * alpha-tdep.h: Update.
8302
acd5c798
MK
83032003-05-30 Mark Kettenis <kettenis@gnu.org>
8304
8305 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8306 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8307 defenitions.
8308 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8309 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8310 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8311 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8312 I386_ST0_REGNUM): New defines.
8313 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8314 codestream_get): Remove define.
8315 (codestream_next_addr, condestream_addr, condestream_buf,
8316 codestream_off, codestream_cnt): Remove variables.
8317 (codestream_fill, codestream_seek, codestream_read): Remove
8318 functions.
8319 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8320 functionality.
8321 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8322 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8323 i386_frame_saved_pc, i386_saved_pc_after_call,
8324 i386_frame_num_args, i386_frame_init_saved_regs,
8325 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8326 i386_push_arguments): Remove functions.
8327 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8328 functionality. Use i386_analyze_prologue instead of
8329 i386_get_frame_setup.
8330 (I386_NUM_SAVED_REGS): New define.
8331 (struct i386_frame_cache): New structure.
8332 (i386_alloc_frame_cache, i386_analyze_struct_return,
8333 i386_skip_probe, i386_analyze_frame_setup,
8334 i386_analyze_register_saves, i386_analyze_prologue,
8335 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8336 i386_frame_prev_register, i386_sigtramp_frame_cache,
8337 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8338 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8339 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8340 New functions.
8341 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8342 New variables.
8343 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8344 I386_EAX_REGNUM and I386_EDX_REGNUM.
8345 (i386_extract_return_value, i386_store_return_value): Use
8346 I386_ST0_REGNUM where appropriate.
8347 (i386_extract_struct_value_address): Rewrite to use extract_address.
8348 (i386_svr4_pc_in_sigtramp): Add comment.
8349 (i386_svr4_sigcontext_addr): Rewrite.
8350 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8351 TDEP->sc_sp_offset.
8352 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8353 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8354 of new defines. Set push_dummy_call, don't set
8355 deprecated_push_arguments, deprecated_push_return_address,
8356 deprecated_pop_frame. Don't set parm_boundary. Don't set
8357 deprecated_frame_chain, deprecated_frame_saved_pc,
8358 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8359 save_dummy_frame_tos, unwind_pc. Call
8360 frame_unwind_append_predicate and frame_base_set_default. Don't
8361 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8362 Don't set frameless_function_invocation. Don't set
8363 deprecated_register_bytes, deprecated_register_size,
8364 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8365 * i386-linux-tdep.c: Fix formatting in some comments.
8366 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8367 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8368 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8369 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8370 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8371 redundant parentheses.
8372 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8373 (i386_linux_sigcontext_addr): Use it. Rewrite.
8374 (find_minsym_and_objfile): Change name of second argument.
8375 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8376 changed. Use frame_pc_unwind instead of
8377 DEPRECATED_SAVED_PC_AFTER_CALL.
8378 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8379 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8380 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8381 unwinder.
8382 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8383 "dummy-frame.h".
8384 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8385 (_initialize_i386_cygwin_tdep): New prototype.
8386 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8387 deprecated_frame_chain_valid.
8388 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8389 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8390 Rely on the SVR4 defaults.
8391 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8392 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8393
c89b70f1
AC
83942003-05-30 Andrew Cagney <cagney@redhat.com>
8395
8396 * infcall.c (call_function_by_hand): Always call
8397 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8398
85b32d22
RH
83992003-05-30 Richard Henderson <rth@redhat.com>
8400
c89b70f1
AC
8401 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8402 increment.
85b32d22 8403
bfe51b1e
JB
84042003-05-29 Jim Blandy <jimb@redhat.com>
8405
8406 Use gdbarch methods for solib stuff on PowerPC Linux.
8407 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8408 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8409 show through.
8410 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8411 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8412 giving the same effect as the #definitions above.
8413
1abf022c
AF
84142003-05-29 Adam Fedor <fedor@gnu.org>
8415
8416 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8417 (find_implementation_from_class): Replace it with the standard
8418 case i.e. do nothing.
8419
d2427a71
RH
84202003-05-29 Richard Henderson <rth@redhat.com>
8421
8422 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8423 (alpha_linux_sigtramp_offset): Use it. Make static.
8424 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8425 update for new frame model.
8426 * alpha-mdebug-tdep.c: New file.
8427 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8428 (alpha_osf1_init_abi): Install it.
8429 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8430 (linked_proc_desc_table): Remove.
8431 (alpha_frame_past_sigtramp_frame): Remove.
8432 (alpha_dynamic_sigtramp_offset): Remove.
8433 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8434 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8435 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8436 (push_sigtramp_desc): Remove.
8437 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8438 (alpha_cannot_store_register): Likewise.
8439 (alpha_sigcontext_addr): Remove.
8440 (alpha_find_saved_regs): Remove.
8441 (alpha_frame_init_saved_regs): Remove.
8442 (alpha_init_frame_pc_first): Remove.
8443 (read_next_frame_reg): Remove.
8444 (alpha_frame_saved_pc): Remove.
8445 (alpha_saved_pc_after_call): Remove.
8446 (temp_proc_desc, temp_saved_regs): Remove.
8447 (alpha_about_to_return): Remove.
8448 (cached_proc_desc): Remove.
8449 (alpha_frame_chain): Remove.
8450 (alpha_print_extra_frame_info): Remove.
8451 (alpha_init_extra_frame_info): Remove.
8452 (alpha_frame_locals_address): Remove.
8453 (alpha_frame_args_address): Remove.
8454 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8455 (alpha_push_dummy_frame): Remove.
8456 (alpha_pop_frame): Remove.
8457 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8458 (alpha_read_insn): New.
8459 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8460 for different insn encodings.
8461 (alpha_in_lenient_prologue): Remove.
8462 (struct alpha_sigtramp_unwind_cache): New.
8463 (alpha_sigtramp_frame_unwind_cache): New.
8464 (alpha_sigtramp_register_address): New.
8465 (alpha_sigtramp_frame_this_id): New.
8466 (alpha_sigtramp_frame_prev_register): New.
8467 (alpha_sigtramp_frame_unwind): New.
8468 (alpha_sigtramp_frame_p): New.
8469 (struct alpha_heuristic_unwind_cache): New.
8470 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8471 don't count nop insns that occur between functions.
8472 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8473 heuristic_proc_desc, but without the mdebug wrapping.
8474 (alpha_heuristic_frame_this_id): New.
8475 (alpha_heuristic_frame_prev_register): New.
8476 (alpha_heuristic_frame_unwind): New.
8477 (alpha_heuristic_frame_p): New.
8478 (alpha_heuristic_frame_base_address): New.
8479 (alpha_heuristic_frame_base): New.
8480 (alpha_unwind_dummy_id): New.
8481 (alpha_unwind_pc): New.
8482 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8483 frame related deprecated initializations; install replacements.
8484 (alpha_dump_tdep): Remove.
8485 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8486 (alpha_read_insn, alpha_after_prologue,
8487 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8488 alpha_heuristic_frame_prev_register,
8489 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8490 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8491 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8492 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8493
93ec1121
AC
84942003-05-29 Andrew Cagney <cagney@redhat.com>
8495
8496 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8497 dependant on the availability of ASSERT_FUNCTION.
8498 (ASSERT_FUNCTION): Do not define when there is no function name.
8499
98f08d3d
KB
85002003-05-29 Kevin Buettner <kevinb@redhat.com>
8501
8502 From Jimi X <jimix@watson.ibm.com>:
8503 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8504
0897f59b
JB
85052003-05-28 Jim Blandy <jimb@redhat.com>
8506
8507 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8508 argument to ptrace to int; the system headers should give it the
8509 right type, and pointers don't fit in ints on powerpc64-*-*.
8510
14898363
L
85112003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8512
8513 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8514 DW_TAG_catch_block.
8515
a7a48797
EZ
85162003-05-26 Elena Zannoni <ezannoni@redhat.com>
8517
8518 * stabsread.c (dbx_lookup_type): Make static.
8519 (read_type): Ditto.
8520 (add_undefined_type): Ditto.
8521 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8522 not export.
8523
f5479e9c
EZ
85242003-05-26 Elena Zannoni <ezannoni@redhat.com>
8525
8526 * hpread.c (hpread_has_name): Make static.
8527 (hpread_psymtab_to_symtab): Ditto.
8528 (file_exists): Ditto.
8529 (hpread_call_pxdb): Ditto.
8530 (hpread_pxdb_needed): Ditto.
8531 (hpread_quick_traverse): Ditto.
8532 (hpread_get_header): Ditto.
8533 (hpread_get_lntt): Ditto.
8534 (hpread_get_slt): Ditto.
8535 (class_of): Ditto.
8536
eb2e12d7
AS
85372003-05-25 Andreas Schwab <schwab@suse.de>
8538
78bf922a
AS
8539 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8540 stack_align and deprecated_extra_stack_alignment_needed.
8541 (m68k_stack_align): Delete.
8542
eb2e12d7
AS
8543 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8544 (m68k_register_virtual_size): Likewise.
8545 (altos_skip_prologue): Remove obsolete function.
8546 (isi_frame_num_args): Likewise.
8547 (news_frame_num_args): Likewise.
8548 (m68k_fix_call_dummy): Make static.
8549 (m68k_push_dummy_frame): Likewise.
8550 (m68k_pop_frame): Likewise.
8551 (m68k_skip_prologue): Likewise.
8552 (m68k_frame_init_saved_regs): Likewise.
8553 (m68k_saved_pc_after_call): Likewise.
8554 (m68k_get_longjmp_target): Make multi-arch.
8555 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8556 structure. Register m68k_get_longjmp_target if enabled.
8557 * m68k-tdep.h (struct gdbarch_tdep): Define.
8558 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8559
8560 * Makefile.in (config.status): Also depend on configure.tgt
8561 and configure.host.
8562 (m68klinux-tdep.o): Update dependencies.
8563 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8564 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8565 (M68K_LINUX_JB_PC): Define.
8566 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8567 and take additional parameter.
8568 (m68k_linux_sigtramp_saved_pc): Update.
8569 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8570 m68k_linux_pc_in_sigtramp, in_plt_section,
8571 find_solib_trampoline_target.
8572 * config/m68k/tm-linux.h: Don't include any tm headers.
8573 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8574 (JB_ELEMENT_SIZE): Likewise.
8575 (JB_PC): Likewise.
8576 (GET_LONGJMP_TARGET): Likewise.
8577 (IN_SIGTRAMP): Likewise.
8578 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8579
eb2c22dc
MK
85802003-05-25 Mark Kettenis <kettenis@gnu.org>
8581
8582 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8583 (sparc32_push_arguments): Re-implement by calling
8584 sparc32_do_push_arguments.
8585
44b7b84e
MK
85862003-05-25 Mark Kettenis <kettenis@gnu.org>
8587
8588 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8589 SPARC_O1_REGNUM): New defines.
8590 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8591 (sparc32_store_return_value): New function.
8592 (sparc_extract_struct_value_address): Rewrite to operate on a
8593 regcache.
8594 (sparc_gdbarch_init): Don't set
8595 deprecated_extract_struct_value_address. Set
8596 extract_struct_value_address instead. Don't set
8597 deprecated_extract_return_value and deprecated_store_return_value
8598 for 32-bit targets. Set extract_return_value and
8599 store_return_value instead.
8600 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8601 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8602 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8603 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8604 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8605 (sparc_store_return_value): Remove prototype.
8606 (sparc32_store_return_value): New prototype.
8607 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8608 Adjust prototypes.
8609
f6ad61e3
MK
86102003-05-24 Mark Kettenis <kettenis@gnu.org>
8611
8612 * sparcnbsd-tdep.c: Include "gdb_string.h".
8613
b276f1bb
AC
86142003-05-23 Andrew Cagney <cagney@redhat.com>
8615
8616 * p-valprint.c (pascal_val_print): Replace extract_address with
8617 the inline equivalent extract_unsigned_integer.
8618 * jv-valprint.c (java_value_print): Ditto.
8619 * ada-valprint.c (ada_val_print_1): Ditto.
8620 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8621
e76c5fcc
TR
86222003-05-23 Theodore A. Roth <troth@openavr.org>
8623
8624 * blockframe.c (frameless_look_for_prologue): Remove unused
8625 after_prologue variable.
8626
2cdd89cb
MK
86272003-05-23 Mark Kettenis <kettenis@gnu.org>
8628
8629 * blockframe.c (get_pc_function_start): Rewrite to avoid
8630 asignments in if-statements.
8631
182d43bc
EZ
86322003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8633
8634 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8635 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8636 files, don't relocate absolute symbols (and do use mst_abs).
8637
e8f3fcdd
AC
86382003-05-23 Andrew Cagney <cagney@redhat.com>
8639
8640 * objc-lang.c: Include "gdb_assert.h".
8641 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8642 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8643 (gdb_check, gdb_check_fatal): Delete functions.
8644 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8645 gdb_assert.
8646 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8647 * Makefile.in (objc-lang.o): Update dependencies.
8648
3c23e6fb
ILT
86492003-05-22 Ian Lance Taylor <ian@airs.com>
8650
8651 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8652 with fprintf_filtered, not fprintf_unfiltered.
8653
af1342ab
AC
86542003-05-22 Andrew Cagney <cagney@redhat.com>
8655
8656 * stack.c (frame_info): Inline extract_address, replacing it with
8657 extract_unsigned_integer.
8658 * findvar.c (unsigned_pointer_to_address): Ditto.
8659 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8660 * dwarf2expr.c (dwarf2_read_address): Ditto.
8661 * frame.c (frame_pc_unwind): Update comment.
8662 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8663
47e242ec
JJ
86642003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8665
8666 * infptrace.c (detach): Call print_sys_errmsg rather than
8667 perror_with_name to issue warning message when errno is non-zero
8668 after calling ptrace detach.
8669
e2ac8128
JB
86702003-05-21 J. Brobecker <brobecker@gnat.com>
8671
8672 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8673 macro definitions from here...
8674 * hppa-tdep.c: ...to there.
8675
92b3541e
KB
86762003-05-20 Kevin Buettner <kevinb@redhat.com>
8677
8678 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8679 register_ptrace_addr(). Fix all callers.
8680
55809acb
AS
86812003-05-21 Andreas Schwab <schwab@suse.de>
8682
8683 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8684 dependencies.
8685 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8686 end.
8687 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8688 (_initialize_m68k_linux_tdep): New function.
8689 (m68k_linux_frame_saved_pc): Make static.
8690 (m68k_linux_extract_return_value): Likewise.
8691 (m68k_linux_store_return_value): Likewise.
8692 (m68k_linux_extract_struct_value_address): Likewise.
8693 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8694 Remove.
8695 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8696 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8697 (DEPRECATED_FRAME_SAVED_PC): Remove.
8698
0fbc10f7
KW
86992003-05-20 Kris Warkentin <kewarken@qnx.com>
8700
8701 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8702 regset numbering rather than our own.
8703
58da2eb2
DC
87042003-05-19 David Carlton <carlton@bactrian.org>
8705
8706 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8707
1fcb5155
DC
87082003-05-19 David Carlton <carlton@bactrian.org>
8709
8710 Partial fix for PR c++/827.
8711 * cp-support.h: Include symtab.h.
8712 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8713 * cp-namespace.c: Update contributors.
8714 (cp_lookup_symbol_nonlocal): New.
8715 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8716 (lookup_symbol_file): Ditto.
8717 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8718 * block.h: Declare block_scope, block_using, block_global_block.
8719 * block.c (block_scope): New.
8720 (block_using, block_global_block): Ditto.
8721 * Makefile.in (cp_support_h): Depend on symtab_h.
8722 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8723
5f9a71c3
DC
87242003-05-19 David Carlton <carlton@bactrian.org>
8725
8726 * language.h (struct language_defn): Add 'la_value_of_this'
8727 and 'la_lookup_symbol_nonlocal' members.
8728 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8729 lookup_symbol_static, lookup_symbol_global,
8730 lookup_symbol_aux_block.
8731 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8732 if we should search fields of this and how to do static/global
8733 lookup.
8734 (lookup_symbol_aux_block): Make extern.
8735 (basic_lookup_symbol_nonlocal): New.
8736 (lookup_symbol_static, lookup_symbol_global): Ditto.
8737 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8738 'la_lookup_symbol_nonlocal' members.
8739 * c-lang.c (c_language_defn, cplus_language_defn)
8740 (asm_language_defn, minimal_language_defn): Ditto.
8741 * jv-lang.c (java_language_defn): Ditto.
8742 * language.c (unknown_language_defn, auto_language_defn)
8743 (local_language_defn): Ditto.
8744 * m2-lang.c (m2_language_defn): Ditto.
8745 * objc-lang.c (objc_language_defn): Ditto.
8746 * scm-lang.c (scm_language_defn): Ditto.
8747 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8748 * p-lang.c (pascal_language_defn): Ditto for both.
8749 * Makefile.in (f-lang.o): Depend on value_h.
8750 (p-lang.o): Ditto.
8751
89a9d1b1
DC
87522003-05-19 David Carlton <carlton@bactrian.org>
8753
8754 * block.h: Declare block_static_block.
8755 * block.c (block_static_block): New.
8756 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8757 lookup_symbol_aux_local, calling block_static_block instead.
8758 (lookup_symbol_aux_local): Delete 'static_block' argument.
8759
eed3f8ab
DC
87602003-05-19 David Carlton <carlton@bactrian.org>
8761
8762 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8763
a09d8bda
ML
87642003-05-19 Michal Ludvig <mludvig@suse.cz>
8765
8766 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8767 register numbers mapping.
8768
69636828
AF
87692003-05-18 Adam Fedor <fedor@gnu.org>
8770
8771 * symtab.c (completion_list_objc_symbol): New function.
8772 (make_symbol_completion_list): Use it to add ObjC symbols
8773 when looking though the list.
8774 (language_search_unquoted_string): New function.
8775 (make_file_symbol_completion_list): Use it.
8776
55baeb84
AS
87772003-05-18 Andreas Schwab <schwab@suse.de>
8778
d0b45d99
AS
8779 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8780 dependencies.
8781 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8782 as m68k_linux_extract_return_value.
8783 (DEPRECATED_STORE_RETURN_VALUE): Define as
8784 m68k_linux_store_return_value.
8785 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8786 m68k_linux_extract_struct_value_address.
8787 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8788 get_next_frame, get_frame_base, get_frame_pc.
8789 (m68k_linux_frame_saved_pc): Use get_frame_base.
8790 (m68k_linux_extract_return_value): New function.
8791 (m68k_linux_store_return_value): New function.
8792 (m68k_linux_extract_struct_value_address): New function.
8793 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8794
55baeb84
AS
8795 * c-exp.y (typebase): Remove duplicate occurence of
8796 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8797 of lookup_signed_typename.
55baeb84 8798
b6b08ebf
MK
87992003-05-18 Mark Kettenis <kettenis@gnu.org>
8800
8801 * dwarf2loc.c (find_location_expression): Change type of second
8802 argument to `size_t *'.
8803 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8804 for size variable.
8805
5ad1c190
DC
88062003-05-18 David Carlton <carlton@bactrian.org>
8807
8808 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8809 'linkage_name'. Add comment.
8810 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8811 'linkage_name'.
8812 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8813 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8814 (lookup_block_symbol): Ditto.
8815
b8b527c5
AC
88162003-05-16 Andrew Cagney <cagney@redhat.com>
8817
8818 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8819 * gdbarch.h, gdbarch.c: Re-generate.
8820 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8821 * TODO (REGISTER_BYTES): Delete reference.
8822 * alpha-tdep.c (alpha_gdbarch_init): Update.
8823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8824 * x86-64-tdep.c (x86_64_init_abi): Update.
8825 * vax-tdep.c (vax_gdbarch_init): Update.
8826 * v850-tdep.c (v850_gdbarch_init): Update.
8827 * sparc-tdep.c (sparc_gdbarch_init): Update.
8828 * sh-tdep.c (sh_gdbarch_init): Update.
8829 * s390-tdep.c (s390_gdbarch_init): Update.
8830 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8831 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8832 (ns32k_gdbarch_init_32382): Update.
8833 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8834 * mcore-tdep.c (mcore_gdbarch_init): Update.
8835 * m68k-tdep.c (m68k_gdbarch_init): Update.
8836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8837 * ia64-tdep.c (ia64_gdbarch_init): Update.
8838 * i386-tdep.c (i386_gdbarch_init): Update.
8839 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8840 * hppa-tdep.c (hppa_gdbarch_init): Update.
8841 * h8300-tdep.c (h8300_gdbarch_init): Update.
8842 * frv-tdep.c (frv_gdbarch_init): Update.
8843 * cris-tdep.c (cris_gdbarch_init): Update.
8844 * avr-tdep.c (avr_gdbarch_init): Update.
8845 * arm-tdep.c (arm_gdbarch_init): Update.
8846 * sparc-tdep.c (sparc_pop_frame): Update.
8847 * rs6000-tdep.c (rs6000_pop_frame): Update.
8848 * remote.c (init_remote_state): Update.
8849 (remote_prepare_to_store): Update.
8850 * remote-vx.c (vx_prepare_to_store): Update.
8851 * remote-sds.c (sds_fetch_registers): Update.
8852 (sds_prepare_to_store): Update.
8853 * remote-array.c: Update.
8854 * regcache.c (init_legacy_regcache_descr): Update.
8855 (init_regcache_descr): Update.
8856 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8857 (mips_o64_extract_return_value): Update.
8858 * irix5-nat.c (fetch_core_registers): Update.
8859 * irix4-nat.c (fetch_core_registers): Update.
8860 * i386-tdep.h: Update.
8861 * hppa-tdep.c (pa_do_registers_info): Update.
8862 (pa_do_strcat_registers_info): Update.
8863 * cris-tdep.c (cris_register_bytes_ok): Update.
8864 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8865 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8866 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8867 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8868 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8869 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8870 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8871 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8872 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8873 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8874 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8875 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8876 (REGISTER_BYTES_OK): Update.
8877 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8878 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8879
ee2842e2
ILT
88802003-05-16 Ian Lance Taylor <ian@airs.com>
8881
8882 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8883 (vax_print_insn, print_insn_arg): Remove static functions.
8884 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8885 print_insn_vax from opcodes library.
8886 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8887
973177d3
AC
88882003-05-15 Andrew Cagney <cagney@redhat.com>
8889
aaab4dba
AC
8890 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8891 * target.h (memory_breakpoint_from_pc): Delete declaration.
8892 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8893 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8894 * monitor.c (monitor_insert_breakpoint): Use
8895 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8896 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8897 * gdbarch.h, gdbarch.c: Re-generate.
8898 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8899 (sparc_gdbarch_init): Set breakpoint_from_pc to
8900 sparc_breakpoint_from_pc.
8901 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8902 (BREAKPOINT_FROM_PC): Define.
8903 (sparc_breakpoint_from_pc): Declare.
8904 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8905 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8906 (BREAKPOINT_FROM_PC): Define.
8907 (BREAKPOINT): Delete macro.
8908 * target.h: Update comment.
8909 * s390-tdep.c (s390_gdbarch_init): Update comments.
8910 * remote.c: Update comments.
8911 * remote-mips.c: Update comments.
8912 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8913 * mem-break.c: Update comment.
8914 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8915 (ia64_memory_insert_breakpoint): Update.
8916 * config/sparc/tm-sparc.h: Update comment.
8917 * config/pa/tm-hppa64.h: Update comment.
8918 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8919 (rs6000_breakpoint_from_pc): Update.
8920 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8921 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8922 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8923 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8924 (mips_breakpoint_from_pc): Update.
8925 (mips_dump_tdep): Update.
8926
e06963ff
AC
8927 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8928 * minsyms.c (lookup_minimal_symbol): Inline
8929 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8930
973177d3
AC
8931 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8932 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8933 * p-lang.c (pascal_printstr): Ditto.
8934 * objc-lang.c (objc_printstr): Ditto.
8935 * m2-lang.c (m2_printstr): Ditto.
8936 * jv-valprint.c (java_print_value_fields): Ditto.
8937 * f-lang.c (f_printstr): Ditto.
8938 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8939 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8940 for repeat_count_threshold.
8941 * Makefile.in (cp-valprint.o): Update dependencies.
8942
5ea2bd7f 89432003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8944
5ea2bd7f
JJ
8945 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8946 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8947 they start with mov r2,r12. Support skipping over indirect stores
8948 of the input registers. Upon hitting a non-nop branch instruction
8949 or predicated instruction, bail out by setting lim_pc to the current
8950 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8951 beyond our calculated value and we have trust_limit set,
8952 use the lim_pc value.
8953
cc8c88f3
AC
89542003-05-15 Andrew Cagney <cagney@redhat.com>
8955
8956 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8957 generic_find_dummy_frame.
8958 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8959 (deprecated_generic_find_dummy_frame): Update.
8960 (deprecated_read_register_dummy): Update.
8961 * frame.c (deprecated_generic_get_saved_register): Update.
8962
909cd28e
TR
89632003-05-15 Theodore A. Roth <troth@openavr.org>
8964
8965 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8966 (avr_gdbarch_init): Set breakpoint_from_pc method.
8967
b923b08d
AC
89682003-05-15 Andrew Cagney <cagney@redhat.com>
8969
8970 * regcache.c (build_regcache): Set deprecated_register_valid
8971 directly.
8972 (deprecated_grub_regcache_for_register_valid): Delete function.
8973 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8974 declaration.
8975
ae2f03ac 89762003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8977
8978 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8979 * symtab.c (lookup_symbol_aux): Delete calls to
8980 lookup_symbol_aux_minsyms.
8981 (lookup_symbol_aux_minsyms): Comment out function and
8982 prototype. Delete lookup by mangled name.
ae2f03ac 8983
18ec9831
KB
89842003-05-14 Kevin Buettner <kevinb@redhat.com>
8985
8986 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8987 correctly indicate an empty stack and ``stack_allocated'' to the
8988 indicate the number of elements initially allocated.
8989 (dwarf_expr_grow_stack): Simplify method for computing new
8990 stack size. Don't loop infinitely if ``stack_len'' is zero.
8991 (execute_stack_op): Move ``ctx->in_reg'' initialization
8992 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8993 be used in conjuction with DW_OP_piece. Revise error message
8994 accordingly.
8995
de18ac1f
TR
89962003-05-14 Theodore A. Roth <troth@openavr.org>
8997
8998 * MAINTAINERS: Update my email address.
8999 * avr-tdep.c: Ditto.
9000
176620f1
EZ
90012003-05-14 Elena Zannoni <ezannoni@redhat.com>
9002
9003 * symtab.h (enum domain_enum): Rename from namespace_enum.
9004 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9005 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9006 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9007 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9008 TYPES_NAMESPACE, METHODS_NAMESPACE.
9009 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9010 (struct symbol, struct partial_symbol): Rename field
9011 'namespace_enum namespace' to 'domain_enum domain'.
9012 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9013 Delete old define kludge for namespace.
9014
9015 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9016 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9017 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9018 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9019 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9020 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9021 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9022 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9023 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9024 occurrences of the above.
9025
b7f31508
ILT
90262003-05-14 Ian Lance Taylor <ian@airs.com>
9027
9028 * Makefile.in (install-only): Use $(SHELL) when running
9029 mkinstalldirs.
9030
2fdbdd39
ILT
90312003-05-13 Ian Lance Taylor <ian@airs.com>
9032
a208d82c
ILT
9033 * MAINTAINERS (write after approval): Add myself.
9034
2fdbdd39
ILT
9035 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9036 second and third arguments.
9037 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9038 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9039
fbd9dcd3
AC
90402003-05-13 Andrew Cagney <cagney@redhat.com>
9041
9042 * defs.h (store_address): Delete declaration.
9043 findvar.c (store_address): Delete function.
9044 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9045 store_unsigned_integer.
9046 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9047 * v850-tdep.c (v850_push_arguments): Ditto.
9048 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9049 * sh-tdep.c (sh64_get_saved_register): Ditto.
9050 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9051 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9052 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9053 (mips_get_saved_register): Ditto.
9054 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9055 (find_func_descr, ia64_push_arguments): Ditto.
9056 * i386-tdep.c (i386_push_arguments): Ditto.
9057 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9058 * frv-tdep.c (frv_push_arguments): Ditto.
9059 * frame.c (legacy_saved_regs_prev_register): Ditto.
9060 (deprecated_generic_get_saved_register): Ditto.
9061 * findvar.c (unsigned_address_to_pointer): Ditto.
9062 * dwarf2read.c (dwarf2_const_value): Ditto.
9063 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9064 * alpha-tdep.c (alpha_push_arguments): Ditto.
9065
6760f9e6
JB
90662003-05-12 J. Brobecker <brobecker@gnat.com>
9067
9068 * NEWS: Mention that the hppa-hpux port has been partially
9069 multiarched (32bit ABIT only, so far).
9070
30e221b4
AC
90712003-05-11 Andrew Cagney <cagney@redhat.com>
9072
9073 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9074 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9075 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9076 sim/testsuite/sim/arm/misaligned2.ms, and
9077 sim/testsuite/sim/arm/misaligned3.ms.
9078 * disasm.h (struct ui_file): Add opaque struct declaration.
9079 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9080 * frame.h (struct ui_file): Ditto.
9081
dea7f9ba
MK
90822003-05-11 Mark Kettenis <kettenis@gnu.org>
9083
9084 * value.h: Pretty print.
9085
01986c48
MK
90862003-05-10 Mark Kettenis <kettenis@gnu.org>
9087
9088 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9089
123a958e
AC
90902003-05-08 Andrew Cagney <cagney@redhat.com>
9091
9092 * regcache.h (max_register_size): Delete declaration.
9093 * regcache.c (max_register_size): Delete function.
9094 (struct regcache_descr): Delete field "max_register_size".
9095 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9096 registers fit in MAX_REGISTER_SIZE.
9097 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9098 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9099 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9100 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9101 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9102 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9103 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9104 * dve3900-rom.c, hppa-tdep.c: Ditto.
9105
eb294659
DC
91062003-05-08 David Carlton <carlton@math.stanford.edu>
9107
9108 * valops.c (push_word): Fix typo.
9109
d9d9c31f
AC
91102003-05-08 Andrew Cagney <cagney@redhat.com>
9111
9112 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9113 * gdbarch.h: Re-generate.
9114 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9115 (legacy_max_register_raw_size): Delete declaration.
9116 * regcache.c (legacy_max_register_raw_size): Delete function.
9117 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9118 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9119 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9120 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9121 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9122 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9123 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9124 * findvar.c, dwarf2cfi.c: Ditto.
9125
22540ece
AC
91262003-05-08 Andrew Cagney <cagney@redhat.com>
9127
9128 * mips-tdep.c (read_signed_register): New function, moved to here
9129 from "regcache.c".
9130 (read_signed_register_pid): Ditto.
9131 * regcache.c (read_signed_register_pid): Delete function, moved to
9132 "mips-tdep.c".
9133 (read_signed_register): Ditto.
9134 * regcache.h (read_signed_register): Delete declaration.
9135 (read_signed_register_pid): Delete declaration.
9136
0c92afe8
AC
91372003-05-08 Andrew Cagney <cagney@redhat.com>
9138
9139 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9140 * gdbarch.h: Re-generate.
9141 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9142 (legacy_max_register_virtual_size): Delete declaration.
9143 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9144 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9145 * tracepoint.c (memrange_sortmerge): Ditto.
9146 * sparc-tdep.c (sparc_print_registers): Ditto.
9147 * regcache.c (legacy_max_register_virtual_size): Delete function.
9148
6037b830
JB
91492002-05-08 J. Brobecker <brobecker@gnat.com>
9150
9151 * fork-child.c (escape_bang_in_quoted_argument): New function.
9152 (fork_inferior): Escape '!' characters in quoted arguments
9153 only when needed.
9154
5d62c8b1
JB
91552003-05-08 J. Brobecker <brobecker@gnat.com>
9156
9157 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9158 the language of the CU is not currently supported by GDB.
9159
20a0e81d
JB
91602003-05-08 J. Brobecker <brobecker@gnat.com>
9161
9162 * defs.h (language): Add language_minimal enum value.
9163 * c-lang.c (minimal_language_defn): New language definition.
9164 (_initialize_c_language): Add the new minimal language to the list
9165 of languages known to GDB.
9166
710ee10a
KB
91672003-05-08 Kevin Buettner <kevinb@redhat.com>
9168
9169 * frame.c (get_frame_type): Don't attempt to lazily initialize
9170 frame's unwinder for legacy frames.
9171
1750fa04
AC
91722003-05-07 Andrew Cagney <cagney@redhat.com>
9173
9174 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9175 and "regcache" parameters.
9176 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9177
ddf9f258 91782003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9179
9180 * dwarf2read.c (dwarf_decode_lines): Only use output of
9181 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9182 the current address.
9183
87767c29
AC
91842003-05-07 Andrew Cagney <cagney@redhat.com>
9185
9186 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9187 code.
9188
5e7b2f39
JB
91892003-05-07 Jim Blandy <jimb@redhat.com>
9190
9191 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9192 'maint info symtabs' and 'maint info psymtabs'.
9193 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9194 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9195 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9196 Declarations updated.
9197 * maint.c (maintenance_list_command): Delete.
9198 (_initialize_maint_cmds): Update calls to add_cmd.
9199 * gdbcmd.h (maintenancelistlist): Delete declaration.
9200 * cli/cli-cmds.c (maintenancelistlist): Delete.
9201 (init_cmd_lists): Don't initialize it.
9202 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9203
f6684c31
AC
92042003-05-07 Andrew Cagney <cagney@redhat.com>
9205
9206 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9207 "regcache".
9208 (d10v_print_registers_info): Update.
9209 (d10v_dmap_register, d10v_imap_register): Delete functions.
9210 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9211 and "imap_register".
9212 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9213 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9214 * arch-utils.c (generic_remote_translate_xfer_address): Add
9215 "regcache" and "gdbarch" parameters.
9216 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9217 parameter. Change class to multi-arch.
9218 * gdbarch.h, gdbarch.c: Re-generate.
9219 * remote.c (remote_xfer_memory): Use
9220 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9221
e4846b08
JJ
92222003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9223
9224 * infrun.c (prev_pc): Move declaration ahead of proceed().
9225 (proceed): Refresh prev_pc value before resuming.
9226 (stop_stepping): Remove code to refresh prev_pc.
9227
6b71b8ac
KW
92282003-05-06 Kris Warkentin <kewarken@qnx.com>
9229
9230 * nto-tdep.c: Removed stray comment.
9231
47979a4b
KW
92322003-05-06 Kris Warkentin <kewarken@qnx.com>
9233
9234 * i386-nto-tdep.c: Fix old K&R function definitions.
9235 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9236 Also change add_show_from_set() call to add_setshow_cmd().
9237 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9238
00905d52
AC
92392003-05-05 Andrew Cagney <cagney@redhat.com>
9240
9241 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9242 (fprint_dummy_frames): New function.
9243 (maintenance_print_dummy_frames): New function.
9244 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9245 * frame.c (fprint_frame_id): Make global.
9246 * frame.h (fprint_frame_id): Declare.
9247 * Makefile.in (dummy-frame.o): Update dependencies.
9248
b1e29e33
AC
92492003-05-05 Andrew Cagney <cagney@redhat.com>
9250
9251 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9252 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9253 SIZEOF_CALL_DUMMY_WORDS.
9254 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9255 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9256 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9257 CALL_DUMMY_BREAKPOINT_OFFSET.
9258 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9259 CALL_DUMMY_START_OFFSET.
9260 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9261 * gdbarch.h, gdbarch.c: Re-generate.
9262 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9263 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9264 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9265 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9266 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9267 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9268 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9269 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9270 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9271 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9272 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9273 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9274 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9275 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9276 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9277
92782003-05-05 Kris Warkentin <kewarken@qnx.com>
9279
9280 * configure.tgt: Add i[3456]86-*-nto*.
9281 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9282 * nto-tdep.c: New file. Neutrino target support routines.
9283 * nto-tdep.h: New file. Neutrino target header.
9284 * config/tm-qnxnto.h: New file.
9285 * config/i386/i386nto.mt: New file.
9286 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9287
0ce3d317
AC
92882003-05-04 Andrew Cagney <cagney@redhat.com>
9289
9290 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9291 (load_infrun_state): Ditto.
9292 (struct thread_info): Drop "prev_func_name" field.
9293 * thread.c (load_infrun_state): Update.
9294 (save_infrun_state): Update.
9295 * infrun.c (prev_func_name): Delete variable.
9296 (init_wait_for_inferior): Do not clear prev_func_name.
9297 (stop_stepping, keep_going, context_switch): Do not swap
9298 prev_func_name.
9299 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9300 instead of PC_IN_SIGTRAMP.
9301
46654a5b
AC
93022003-05-04 Andrew Cagney <cagney@redhat.com>
9303
9304 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9305 REGISTER_BYTE with register_offset_hack.
9306 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9307 that REGISTER_BYTE is consistent with the regcache.
9308 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9309 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9310
14b08c1b
MK
93112003-05-04 Mark Kettenis <kettenis@gnu.org>
9312
04c8243f
MK
9313 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9314 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9315
14b08c1b
MK
9316 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9317
c7a11e01
JB
93182003-05-03 J. Brobecker <brobecker@gnat.com>
9319
9320 From Thierry Schneider <tpschneider1@yahoo.com>
9321 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9322 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9323 (mi-cmd-symbol.o): Add rule.
9324
7043d8dc
AC
93252003-05-03 Andrew Cagney <cagney@redhat.com>
9326
9327 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9328 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9329 * gdbarch.h, gdbarch.c: Re-generate.
9330 * d10v-tdep.c (d10v_push_dummy_code): New function.
9331 (d10v_gdbarch_init): Set push_dummy_code.
9332 * infcall.c (legacy_push_dummy_code): New function.
9333 (generic_push_dummy_code): New function.
9334 (push_dummy_code): New function.
9335 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9336 instead of dummy_addr, to push_dummy_call. Move call to
9337 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9338 switch.
9339 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9340
92bf2b80
AC
93412003-05-03 Andrew Cagney <cagney@redhat.com>
9342
9343 * disasm.h (print_insn): Declare.
9344 * disasm.c (init_gdb_disassemble_info): New function.
9345 (gdb_disassembly): Call init_gdb_disassemble_info.
9346 (gdb_print_insn): New function.
9347 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9348 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9349 * mcore-tdep.c: Include "disasm.h"
9350 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9351 * d10v-tdep.c: Include "disasm.h".
9352 (display_trace): Call gdb_print_insn, instead of print_insn.
9353 (print_insn): Delete function.
9354 * printcmd.c: Include "disasm.h".
9355 (print_insn): Delete function.
9356 (print_formatted): Call gdb_print_insn, instead of print_insn.
9357 * Makefile.in (printcmd.o): Update dependencies.
9358 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9359
27d94c49
AC
93602003-05-02 Andrew Cagney <cagney@redhat.com>
9361
82de1e5b
AC
9362 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9363 PC_REGNUM, re-indent.
9364 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9365 PC_REGNUM isn't set.
9366
27d94c49
AC
9367 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9368 * gdbarch.h, gdbarch.c: Re-generate.
9369 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9370 register_virtual_size, pc_regnum, or register_bytes.
9371 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9372 (d10v_register_type): Use D10V_PC_REGNUM.
9373 (d10v_print_registers_info, d10v_read_pc): Ditto.
9374 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9375 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9376
a9c0dc7f
DC
93772003-05-02 David Carlton <carlton@bactrian.org>
9378
9379 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9380 the name with mstrsave.
9381
e33d66ec
EZ
93822003-05-02 Elena Zannoni <ezannoni@redhat.com>
9383
9384 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9385 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9386 (host_charset_name, target_charset_name): New vars for use by
9387 set/show commands.
9388 (host_charset_enum, target_charset_enum): New enums for set/show
9389 commands.
9390 (set_charset_sfunc, set_host_charset_sfunc,
9391 set_target_charset_sfunc): New functions.
9392 (set_host_charset, set_target_charset): Make static.
9393 (list_charsets, set_host_charset_command,
9394 set_target_charset_command): Delete functions.
9395 (show_charset_command): Rewrite as....
9396 (show_charset): Hook this up with the set/show command mechanism.
9397 (_initialize_charset): Change names of charsets to match the
9398 set/show enums. Use host_charset_name and target_charset_name.
9399 Use set/show mechanism for charset, host-charset, target-charset
9400 commands. Do not make 'show host-charset' and 'show
9401 target-charset' be aliases of 'show charset'.
9402
9403 * charset.h (set_host_charset, set_target_charset): Don't export,
9404 they are not used outside the file.
9405
2b6fd0d8
AC
94062003-05-01 Andrew Cagney <cagney@redhat.com>
9407
9408 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9409 (gdb_disassembly): Make "di" non static, always initialize and
9410 cleanup. Always use dis_asm_read_memory.
9411 (gdb_dis_asm_read_memory): Delete function.
9412
6ae2f580
AC
94132003-05-01 Andrew Cagney <cagney@redhat.com>
9414
9415 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9416 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9417
810ecf9f
AC
94182003-04-30 Andrew Cagney <cagney@redhat.com>
9419
9420 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9421 "tm_print_insn_info".
9422 (TARGET_PRINT_INSN_INFO): Delete macro.
9423 (dis_asm_read_memory): Delete function declaration.
9424 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9425 (tm_print_insn_info): Delete variable definition.
9426 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9427 * gdbarch.h, gdbarch.c: Re-generate.
9428 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9429 "deprecated_tm_print_insn_info".
9430 * mcore-tdep.c (mcore_dump_insn): Ditto.
9431 * mips-tdep.c (mips_gdbarch_init): Ditto.
9432 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9433 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9434 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9435 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9436 instead of TARGET_PRINT_INSN_INFO, add comment.
9437 * s390-tdep.c (s390_get_frame_info): Instead of
9438 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9439 (s390_check_function_end, s390_is_sigreturn): Ditto.
9440 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9441 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9442 * disasm.c: Include "gdbcore.h".
9443 (_initialize_disasm): New function, initialize
9444 "deprecated_tm_print_insn_info".
9445 (deprecated_tm_print_insn_info): New variable.
9446 (dis_asm_read_memory): Moved from "corefile.c", made static.
9447 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9448 * Makefile.in (disasm.o): Update dependencies.
9449
07020390
AC
94502003-04-30 Andrew Cagney <cagney@redhat.com>
9451
9452 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9453
a9fa03de
AF
94542003-04-29 Adam Fedor <fedor@gnu.org>
9455
9456 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9457 * infcall.c (find_function_addr): Make non-static.
9458 * infcall.h (find_function_addr): Declare.
9459 * Makefile.in (eval.o): Update dependencies.
9460
1bae87b9
AF
94612003-04-28 Adam Fedor <fedor@gnu.org>
9462
9463 * symtab.c (symbol_find_demangled_name): Check for and demangle
9464 ObjC symbols.
9465 (symbol_init_demangled_name): Init for language_objc as well.
9466
0ba6dca9
AC
94672003-04-28 Andrew Cagney <cagney@redhat.com>
9468
9469 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9470 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9471 * gdbarch.h, gdbarch.c: Re-generate.
9472 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9473 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9474 * inferior.h (deprecated_read_fp): Rename read_fp.
9475 (generic_target_read_fp): Delete declaration.
9476 * regcache.c (generic_target_read_fp): Delete function.
9477 (deprecated_read_fp): Replace read_fp, use
9478 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9479 * d10v-tdep.c (d10v_read_fp): Delete function.
9480 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9481
9482 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9483 deprecated_target_read_fp to generic_target_read_fp.
9484 * sh-tdep.c (sh_gdbarch_init): Ditto.
9485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9487 * frv-tdep.c (frv_gdbarch_init): Ditto.
9488
9489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9490 deprecated_fp_regnum.
9491 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9492 * vax-tdep.c (vax_gdbarch_init): Ditto.
9493 * v850-tdep.c (v850_gdbarch_init): Ditto.
9494 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9495 * sh-tdep.c (sh_gdbarch_init): Ditto.
9496 * s390-tdep.c (s390_gdbarch_init): Ditto.
9497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9498 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9499 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9500 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9502 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9503 * i386-tdep.c (i386_gdbarch_init): Ditto.
9504 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9506 * frv-tdep.c (frv_gdbarch_init): Ditto.
9507 * cris-tdep.c (cris_gdbarch_init): Ditto.
9508 * avr-tdep.c (avr_gdbarch_init): Ditto.
9509 * arm-tdep.c (arm_gdbarch_init): Ditto.
9510 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9511
9512 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9513 * v850-tdep.c (v850_gdbarch_init): Ditto.
9514 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9515 * sh-tdep.c (sh_gdbarch_init): Ditto.
9516 * s390-tdep.c (s390_gdbarch_init): Ditto.
9517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9518 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9519 * mips-tdep.c (mips_gdbarch_init): Ditto.
9520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9521 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9522 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9523 * frv-tdep.c (frv_gdbarch_init): Ditto.
9524 * avr-tdep.c (avr_gdbarch_init): Ditto.
9525 * arm-tdep.c (arm_gdbarch_init): Ditto.
9526
9527 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9528 DEPRECATED_FP_REGNUM.
9529 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9530 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9531 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9532 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9533 (sparc32_register_virtual_type): Ditto.
9534 * sh-tdep.c (sh64_frame_chain): Ditto.
9535 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9536 (sh_nofp_frame_init_saved_regs): Ditto.
9537 (sh64_nofp_frame_init_saved_regs): Ditto.
9538 (sh_fp_frame_init_saved_regs): Ditto.
9539 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9540 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9541 * procfs.c (procfs_fetch_registers): Ditto.
9542 (procfs_store_registers): Ditto.
9543 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9544 (store_inferior_registers, fetch_core_registers): Ditto.
9545 (fetch_kcore_registers, clear_regs): Ditto.
9546 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9547 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9548 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9549 * nlm/i386.c (do_status): Ditto.
9550 * mipsv4-nat.c (supply_gregset): Ditto.
9551 * mips-tdep.c: Ditto for comments.
9552 * mips-nat.c (fetch_inferior_registers): Ditto.
9553 (store_inferior_registers, fetch_core_registers): Ditto.
9554 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9555 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9556 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9557 (i386_do_pop_frame, i386_register_type): Ditto.
9558 * hppa-tdep.c (hppa_frame_chain): Ditto.
9559 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9560 (hppa_pop_frame, hppa_read_fp): Ditto.
9561 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9562 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9563 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9564 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9565 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9566 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9567 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9568 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9569 * blockframe.c: Ditto for comments.
9570 * arch-utils.h: Ditto for comments.
9571 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9572 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9573 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9574 * alpha-tdep.h: Ditto for comments.
9575 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9576 (alpha_cannot_store_register): Ditto.
9577 (alpha_push_dummy_frame): Ditto.
9578 * alpha-nat.c (supply_gregset): Ditto.
9579
9580 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9581 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9582 * config/sparc/tm-sparc.h: Update comment.
9583
9584 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9585 deprecated_read_fp instead of TARGET_READ_FP.
9586 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9587 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9588 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9589 deprecated_read_fp instead of read_fp.
9590 * s390-tdep.c (s390_push_arguments): Ditto.
9591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9592 * frame.h: Ditto in comments.
9593 * frame.c (legacy_get_prev_frame): Ditto.
9594 * dummy-frame.c (dummy_frame_this_id): Ditto.
9595 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9596
d7a27068
AC
95972003-04-28 Andrew Cagney <cagney@redhat.com>
9598
9599 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9600 * gdbarch.h, gdbarch.c: Re-generate.
9601 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9602 * vax-tdep.c (_initialize_vax_tdep): Update.
9603 * v850-tdep.c (_initialize_v850_tdep): Update.
9604 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9605 * s390-tdep.c (_initialize_s390_tdep): Update.
9606 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9607 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9608 * mips-tdep.c (_initialize_mips_tdep): Update.
9609 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9610 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9611 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9612 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9613 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9614 * frv-tdep.c (_initialize_frv_tdep): Update.
9615 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9616 (_initialize_cris_tdep): Update.
9617 * arch-utils.c (legacy_print_insn): Update.
9618 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9619
d2630e69
AF
96202003-04-26 Adam Fedor <fedor@gnu.org>
9621
9622 * linespec.c (decode_objc): New function to decode ObjC calls
9623 (decode_line_1): Check for ObjC calls (using decode_objc)
9624 * Makefile (linespec.o): Update dependencies.
9625
3086aeae
DJ
96262003-04-26 Daniel Jacobowitz <drow@mvista.com>
9627
9628 * breakpoint.h (struct breakpoint_ops): New.
9629 (struct breakpoint): Add ops member.
9630
9631 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9632 (mention): Use new breakpoint ops member.
9633 (set_raw_breakpoint): Initialize ops field to NULL.
9634 (print_exception_catchpoint, print_one_exception_catchpoint)
9635 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9636 (gnu_v3_exception_catchpoint_ops): New.
9637 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9638
1fbec6c3
AF
96392003-04-25 Adam Fedor <fedor@gnu.org>
9640
9641 * Makefile.in (COMMON_OBS): Add objc-lang.o
9642
0ef21242
AC
96432003-04-25 Andrew Cagney <cagney@redhat.com>
9644
9645 * d10v-tdep.c (print_insn): Delete function.
9646 (display_trace): Use TARGET_PRINT_INSN.
9647 (_initialize_d10v_tdep): Do not set tm_print_insn.
9648 (d10v_gdbarch_init): Set print_insn.
9649
f75493ed
AC
96502003-04-25 Andrew Cagney <cagney@redhat.com>
9651
9652 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9653 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9654 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9655 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9656 (nr_dmap_regs, a0_regnum): ... new functions.
9657 (d10v_print_registers_info): Use a0_regnum, use register_size.
9658 (d10v_register_byte): Delete function.
9659 (d10v_register_raw_size): Delete function.
9660 (d10v_register_type): Use a0_regnum.
9661 (d10v_print_registers_info): Use a0_regnum.
9662 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9663 (d10v_gdbarch_init): Do not set register_byte or
9664 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9665 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9666 extract_address.
9667 (trace_command): Use XCALLOC.
9668 (print_insn): Delete reference to tm_print_insn.
9669 (saved_regs_unwinder): Use store_unsigned_integer instead of
9670 store_address.
9671 * frame.h (FRAME_OBSTACK_CALLOC): Define
9672
2202b100
DC
96732003-04-25 David Carlton <carlton@bactrian.org>
9674
9675 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9676
4e45ca2e
AF
96772003-04-24 Adam Fedor <fedor@gnu.org>
9678
9679 * objc-lang.c: Include "valprint.h"
9680 * Makefile.in (objc-lang.o): Update dependencies.
9681
93de3e7f
AF
96822003-04-24 Adam Fedor <fedor@gnu.org>
9683
8ffd9b1b 9684 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9685 architecture dependant compilation and mark as unimplemented
9686 (until they get put in the gdbarch vector).
9687
0f20eeea
DC
96882003-04-23 David Carlton <carlton@bactrian.org>
9689
9690 * cp-support.c (cp_find_first_component): Accept 'operator' in
9691 more locations.
9692
74cfe982
AC
96932003-04-23 Andrew Cagney <cagney@redhat.com>
9694
9695 * infcall.c (call_function_by_hand): Eliminate redundant
9696 indentation. Move "saved_async" and "old_cleanups" to where they
9697 are needed.
8ffd9b1b 9698
52557533
AC
96992003-04-23 Andrew Cagney <cagney@redhat.com>
9700
9701 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9702 and "buffer". Move the "name" code to where it is needed.
9703
158775de
AC
97042003-04-23 Andrew Cagney <cagney@redhat.com>
9705
9706 * infcall.c (call_function_by_hand): Move variables "start_sp",
9707 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9708 code to ON_STACK switch branch.
8ffd9b1b 9709
ebc7896c
AC
97102003-04-23 Andrew Cagney <cagney@redhat.com>
9711
9712 * infcall.c (call_function_by_hand): Make declaration of "i",
9713 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9714 lint.
9715
d727590f
AC
97162003-04-23 Andrew Cagney <cagney@redhat.com>
9717
9718 * infcall.c (call_function_by_hand): Delete variable
9719 "n_method_args". Localize "param_type"'s declaration to the loop
9720 that it is used. Reinstate code assigning to said variable -
9721 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9722 Rationalize code using "param_type".
9723
d585e13a
AC
97242003-04-22 Andrew Cagney <cagney@redhat.com>
9725
9726 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9727 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9728 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9729 to DEPRECATED_PUSH_RETURN_ADDRESS.
9730
051caad9
KB
97312003-04-22 Kevin Buettner <kevinb@redhat.com>
9732
9733 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9734 on the DWARF2 register number prior to fetching a register.
9735
77296879
JB
97362003-04-22 J. Brobecker <brobecker@gnat.com>
9737
9738 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9739 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9740 this macro was always set to 0.
77296879
JB
9741 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9742 considering the fact that this macro was always set to 0.
9743 * hppa-tdep.h (hppa_store_return_value): Likewise.
9744 (hppa_extract_return_value): Likewise.
9745
4252f1df
JB
97462003-04-22 J. Brobecker <brobecker@gnat.com>
9747
9748 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9749 the hppa-pro target only.
9750
14604c6b
JB
97512003-04-21 J. Brobecker <brobecker@gnat.com>
9752
9753 Ongoing multi-arch conversion effort for HP/UX:
9754 * config/pa/tm-hppa.h: Move all macro that are no longer
9755 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9756 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9757
77eb01d1
JB
97582003-04-21 J. Brobecker <brobecker@gnat.com>
9759
9760 * config/pa/tm-hppa.h: Obsolete a section that was only used
9761 for hppa-pro.
9762
61995b3b
JB
97632003-04-21 J. Brobecker <brobecker@gnat.com>
9764
9765 Ongoing multi-arch conversion for HP/UX.
9766 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9767 if already defined (allows hppa64 to stay non-multiarched for now).
9768 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9769
4aa79dcc
AC
97702003-04-21 Andrew Cagney <cagney@redhat.com>
9771
9772 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9773
0f751ff2
AC
97742003-04-21 Andrew Cagney <cagney@redhat.com>
9775
9776 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9777 "i386_num_mmx_regs".
9778
04714b91
AC
97792003-04-21 Andrew Cagney <cagney@redhat.com>
9780
9781 * infcall.c: New file.
9782 * infcall.h: New file.
9783 * valarith.c: Include "infcall.h".
9784 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9785 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9786 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9787 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9788 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9789 (SFILES): Add "infcall.c"
9790 (COMMON_OBS): Add "infcall.o".
9791 (infcall.o): Specify dependencies.
9792 * value.h (call_function_by_hand): Delete declaration.
9793 * inferior.h (run_stack_dummy): Delete declaration.
9794 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9795 (run_stack_dummy): Move to "infcall.c", merged into
9796 call_function_by_hand.
9797 * valops.c (call_function_by_hand): Moved to "infcall.c".
9798 (find_function_addr, value_arg_coerce): Ditto.
9799 (unwindonsignal_p, coerce_float_to_double): Ditto.
9800 (_initialize_valops): Move "set/show coerce-float-to-double", and
9801 "set/show unwindonsignal" commands to "infcall.c".
9802 * v850-tdep.c, target.h: Update comments.
9803 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9804 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9805 (sh64_init_extra_frame_info): Update comments.
9806 * mn10300-tdep.c: Update comments.
9807 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9808 * config/sparc/tm-sparc.h: Update comments.
9809 * breakpoint.h: Update comments.
9810 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9811 * arm-tdep.c: Update comment.
9812
f9d3c2a8
MK
98132003-04-19 Mark Kettenis <kettenis@gnu.org>
9814
c40e1eab
MK
9815 * i386-tdep.c (i386_num_register_names): New variable.
9816 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9817 (MM0_REGNUM): Remove redundant parentheses in define.
9818 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9819 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9820 i386_mxcsr_regnum_p): Remove redundant parentheses.
9821 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9822
94ea66b3
MK
9823 * i386-tdep.c (i386_extract_return_value,
9824 i386_store_return_value): Correct check for availability of
9825 floating-point registers.
9826
54299a1d
MK
9827 * i386-tdep.c (i386_frame_num_args): Remove function.
9828 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9829
c86c27af
MK
9830 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9831 mmx_regnum_to_fp_regnum. Adjust all callers.
9832
f9d3c2a8
MK
9833 * i386-tdep.c (i386_get_longjmp_target): Use
9834 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9835 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9836 extract_address.
9837
94ba74a9
MK
98382003-04-19 Mark Kettenis <kettenis@gnu.org>
9839
9840 * core-regset.c: Update comments to reflect reality. Re-order
9841 includes.
9842 (fetch_core_registers): Use switch instead of if. Remove
9843 redundant prototype.
9844
4074e13c
JB
98452003-04-18 Jim Blandy <jimb@redhat.com>
9846
9847 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9848 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9849
e3ab4aba
RH
98502003-04-17 Richard Henderson <rth@redhat.com>
9851
9852 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9853
627bf7c1
EZ
98542003-04-17 Michael Snyder <msnyder@redhat.com>
9855 Karen Bennet <bennet@redhat.com>
9856
9857 Committed by Elena Zannoni <ezannoni@redhat.com>
9858 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9859
514621a9
EZ
98602003-04-17 Elena Zannoni <ezannoni@redhat.com>
9861
9862 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9863 value if the return type is void.
514621a9 9864
b4acd559
JJ
98652003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9866
9867 * thread-db.c: Reindented.
8ffd9b1b 9868
530b167e 98692003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9870
9871 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9872 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9873 as types.
9874
0a48e7e8
MS
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
8ffd9b1b 9898
ab9fe00e
KB
98992003-04-16 Kevin Buettner <kevinb@redhat.com>
9900
610a3745 9901 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9902 the size of ``long double'' to 16, instead of 8.
9903
e64a344c
MK
99042003-04-16 Mark Kettenis <kettenis@gnu.org>
9905
9906 * i386-linux-nat.c: Add some whitespace to make things more
9907 readable.
9908 (fetch_register, store_register, fetch_inferior_registers,
9909 store_inferior_registers): Get rid of assignment in if-statement.
9910 (store_register): Fix typo in error message.
9911
25d41031
AC
99122003-04-16 Andrew Cagney <cagney@redhat.com>
9913
9914 * utils.c (xmmalloc): Always allocate something, matches
9915 libiberty/xmalloc's semantics.
9916 (xmrealloc, xmcalloc): Ditto.
9917
c50901fd
AC
99182003-04-16 Andrew Cagney <cagney@redhat.com>
9919
9920 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9921 update comments.
9922 (get_frame_type): Initialize unwind and type when needed.
9923 (get_frame_id, frame_register_unwind): Ditto.
9924
f81824a9
AC
99252003-04-16 Andrew Cagney <cagney@redhat.com>
9926
9927 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9928 obsolete.
9929 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9930 * sparcl-stub.c: Obsolete file.
9931 * config/sparc/tm-sparclet.h: Obsolete file.
9932 * sparclet-stub.c: Obsolete file.
9933 * sparclet-rom.c: Obsolete file.
9934 * sparcl-tdep.c: Obsolete file.
9935 * config/sparc/tm-sparclite.h: Obsolete file.
9936 * config/sparc/sparclite.mt: Obsolete file.
9937 * config/sparc/sparclet.mt: Obsolete file.
9938 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9939 sparc86x-*-* obsolete.
9940
9219021c
DC
99412003-04-15 David Carlton <carlton@math.stanford.edu>
9942
9943 * Makefile.in (SFILES): Add cp-namespace.c.
9944 (COMMON_OBS): Add cp-namespace.o.
9945 (block.o): Depend on gdb_obstack_h and cp_support_h.
9946 (buildsym.o): Depend on cp_support_h.
9947 (cp-namespace.o): New.
9948 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9949 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9950 (dwarf2read.o): Depend on cp_support_h.
9951 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9952 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9953 processing_current_namespace.
9954 (read_namespace): Update processing_current_namespace; check for
9955 anonymous namespaces.
9956 (dwarf2_name): New function.
9957 (dwarf2_extension): Ditto.
9958 * cp-support.h: Update copyright, contributors.
9959 Add inclusion guards.
9960 Add opaque declaration for structs obstack, block, symbol.
9961 (struct using_direct): New struct.
9962 Add declarations for cp_find_first_component,
9963 cp_entire_prefix_len, processing_has_namespace_info,
9964 processing_current_namespace, cp_is_anonymous,
9965 cp_add_using_directive, cp_initialize_namespace,
9966 cp_finalize_namespace, cp_set_block_scope,
9967 cp_scan_for_anonymous_namespaces.
9968 * cp-namespace.c: New file.
9969 * cp-support.c: Update copyright.
9970 Include ctype.h, gdb_assert.h, gdbcmd.h.
9971 New variable maint_cplus_cmd_list.
9972 (cp_find_first_component): New function.
9973 (cp_entire_prefix_len, maint_cplus_command)
9974 (first_component_command, _initialize_cp_support): Ditto.
9975 * buildsym.c: Include cp-support.h.
9976 New variable using_list.
9977 (add_symbol_to_list): Check for anonymous namespaces.
9978 (finish_block): Set block's scope.
9979 (start_symtab): Initialize C++ namespace support.
9980 (end_symtab): Finalize C++ namespace support.
9981 * block.h: Add opaque declarations for structs
9982 block_namespace_info, using_direct, and obstack.
9983 Add declarations for block_set_scope and block_set_using.
9984 (struct block): Add 'language_specific' member.
9985 (BLOCK_NAMESPACE): New macro.
9986 * block.c: Include gdb_obstack.h and cp-support.h.
9987 (struct block_namespace_info): New struct.
9988 (block_set_scope): New function.
9989 (block_set_using, block_initialize_namespace): Ditto.
9990
d5a921c9
KB
99912003-04-14 Kevin Buettner <kevinb@redhat.com>
9992
9993 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9994 (locate_base): Return early if there aren't any link map offsets.
9995 (svr4_solib_create_inferior_hook): Warn if shared library support
9996 is unavailable.
9997
d2a52b27
DC
99982003-04-14 David Carlton <carlton@math.stanford.edu>
9999
10000 * symtab.c (symbol_set_names): Add prefix when storing Java names
10001 in hash table. Fix for PR java/1039.
10002
980cae7a
DC
100032003-04-14 David Carlton <carlton@math.stanford.edu>
10004
10005 * symtab.c (symbol_set_names): Rename 'name' arg to
10006 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10007 * symtab.h: Change 'name' argument in declaration of
10008 symbol_set_names to 'linkage_name'.
10009 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10010
e227b13c
AC
100112003-04-14 Andrew Cagney <cagney@redhat.com>
10012
10013 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10014 return the fully sign-extended register value.
10015 (get_frame_pointer): Ditto.
10016 (mips_pop_frame): Initialize "proc_desc" after checking for a
10017 dummy frame.
10018
36712a20
AC
100192003-04-14 Andrew Cagney <cagney@redhat.com>
10020
10021 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10022 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10023 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10024 (mips_push_register): Delete function.
10025 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10026 PUSH_FP_REGNUM.
10027
44ea7b70
JB
100282003-04-14 Jim Blandy <jimb@redhat.com>
10029
10030 * symmisc.c: #include "gdb_regex.h".
10031 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10032 functions.
10033 * maint.c (maintenance_list_command): New function.
10034 (_initialize_maint_cmds): Register the above as commands.
10035 * symtab.h (maintenance_list_symtabs,
10036 maintenance_list_psymtabs): New declarations.
10037 * cli/cli-cmds.c (maintenancelistlist): New variable.
10038 (init_cmd_lists): Initialize it.
10039 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10040 * gdbcmd.h (maintenancelistlist): New declaration.
10041 * Makefile.in (symmisc.o): Update dependencies.
10042
2d0c7962
EZ
100432003-04-14 Elena Zannoni <ezannoni@redhat.com>
10044
10045 * s390-nat.c: Include asm/types.h for addr_t.
10046
1947a811
CV
100472003-04-14 Corinna Vinschen <vinschen@redhat.com>
10048
10049 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10050 actually incoming type.
10051
adb616d7
AC
100522003-04-13 Andrew Cagney <cagney@redhat.com>
10053
10054 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10055 get_next_frame and get_frame_saved_regs.
10056
9b5e151c
AC
100572003-04-13 Andrew Cagney <cagney@redhat.com>
10058
10059 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10060 of gdbarch_num_regs.
10061
ef6e7e13
AC
100622003-04-13 Andrew Cagney <cagney@redhat.com>
10063
10064 * frame.h: Mention what replaced what in "struct frame_info".
10065 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10066 deprecated_update_frame_base_hack and
10067 deprecated_update_frame_pc_hack.
10068 * hppa-tdep.c: Ditto.
10069
61fbb938
DJ
100702003-04-13 Daniel Jacobowitz <drow@mvista.com>
10071
10072 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10073 to read_reg and update its comment. Remove regnum member.
10074 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10075 Don't call read_reg when setting in_reg. Call read_reg to get
10076 the frame base if it's in a register. Return the register number
10077 on the stack instead of in the context. Remove extra arguments
10078 to read_reg.
10079 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10080 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10081 the register number on the expression stack.
10082 (needs_frame_read_reg): Remove extra arguments.
10083
0d53c4c4
DJ
100842003-04-13 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10087 made non-static.
10088 (execute_stack_op): All callers updated.
10089 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10090 * dwarf2loc.c (find_location_expression): New function.
10091 (dwarf_expr_frame_base): Call it.
10092 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10093 (dwarf2_tracepoint_var_ref): New function, broken out from
10094 locexpr_tracepoint_var_ref.
10095 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10096 Make static.
10097 (loclist_read_variable, loclist_read_needs_frame): New functions.
10098 (loclist_describe_location, loclist_tracepoint_var_ref): New
10099 functions.
10100 (dwarf2_loclist_funcs): New struct location_funcs.
10101 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10102 (struct dwarf2_locexpr_baton): Add comments.
10103 (dwarf2_loclist_funcs): New extern.
10104 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10105 base_address and base_known.
10106 (dwarf_loc_buffer): New variable.
10107 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10108 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10109 (dwarf2_has_info): Initialize dwarf_loc_offset.
10110 (dwarf2_build_psymtabs): Read in .debug_loc.
10111 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10112 DWARF_LOC_SIZE.
10113 (psymtab_to_symtab_1): Likewise. Move base address calculation
10114 here, from...
10115 (dwarf2_get_pc_bounds): ... here. Use the base address from
10116 cu_header.
10117 (dwarf2_symbol_mark_computed): Handle location lists.
10118
6aca59a3
DJ
101192003-04-13 Daniel Jacobowitz <drow@mvista.com>
10120
10121 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10122 if the linkage name demangled successfully.
10123
aca1fcd0
MK
101242003-04-13 Mark Kettenis <kettenis@gnu.org>
10125
97095916
MK
10126 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10127 disassmbly_flavour): Removed.
10128
aca1fcd0
MK
10129 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10130
562a961f
MK
101312003-04-13 Mark Kettenis <kettenis@gnu.org>
10132
10133 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10134
bd013d54
AC
101352003-04-12 Andrew Cagney <cagney@redhat.com>
10136
10137 * frame.h (struct frame_info): Move definition from here ...
10138 * frame.c (struct frame_info): ... to here.
10139
167ef8b1
AC
101402003-04-12 Andrew Cagney <cagney@redhat.com>
10141
10142 * gdbthread.h (save_infrun_state): Delete parameter
10143 "prev_func_start".
10144 (struct thread_info): Delete field "prev_func_start".
10145 (load_infrun_state): Ditto.
10146 * thread.c (load_infrun_state, save_infrun_state): Update.
10147 * infrun.c (prev_func_start): Delete variable.
10148 (context_switch, init_wait_for_inferior): Update.
10149 (stop_stepping, keep_going): Update.
10150
da3331ec
AC
101512003-04-12 Andrew Cagney <cagney@redhat.com>
10152
10153 * gdbarch.sh: Add missing opaque declarations.
10154 * gdbarch.h: Regnerate.
10155 * symtab.h: Add missing opaque declarations.
10156 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10157 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10158 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10159 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10160 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10161 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10162 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10163 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10164 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10165 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10166 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10167 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10168 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10169
18adea3f
AC
101702003-04-11 Andrew Cagney <cagney@redhat.com>
10171
10172 * frame.c (get_frame_id): Return this frame's "id".
10173 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10174 function start.
10175 (legacy_saved_regs_this_id): Replace function body with
10176 internal-error.
10177 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10178 FRAME_OBSTACK_ZALLOC.
10179 (create_new_frame): Mark the frame ID as valid.
10180
2252e863
AO
101812003-04-11 Alexandre Oliva <aoliva@redhat.com>
10182
10183 * Makefile.in (libbfd_h): Added missing setting.
10184 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10185 according to the selected ABI.
10186
a8245ab8
JJ
101872003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10188
10189 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10190
6913c89a
AC
101912003-04-11 Andrew Cagney <cagney@redhat.com>
10192
10193 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10194 SAVED_PC_AFTER_CALL.
10195 * gdbarch.h, gdbarch.c: Regenerate.
10196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10197 * x86-64-tdep.c (x86_64_init_abi): Update.
10198 * vax-tdep.c (vax_gdbarch_init): Update.
10199 * v850-tdep.c (v850_gdbarch_init): Update.
10200 * sparc-tdep.c (sparc_gdbarch_init): Update.
10201 * sh-tdep.c (sh_gdbarch_init): Update.
10202 * s390-tdep.c (s390_gdbarch_init): Update.
10203 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10204 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10205 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10206 * mips-tdep.c (mips_gdbarch_init): Update.
10207 * mcore-tdep.c (mcore_gdbarch_init): Update.
10208 * m68k-tdep.c (m68k_gdbarch_init): Update.
10209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10210 * ia64-tdep.c (ia64_gdbarch_init): Update.
10211 (ia64_saved_pc_after_call): Update declaration.
10212 * i386ly-tdep.c (i386lynx_init_abi): Update.
10213 * i386-tdep.c (i386_gdbarch_init): Update.
10214 * hppa-tdep.c (hppa_gdbarch_init): Update.
10215 * h8300-tdep.c (h8300_gdbarch_init): Update.
10216 * frv-tdep.c (frv_gdbarch_init): Update.
10217 * cris-tdep.c (cris_gdbarch_init): Update.
10218 * avr-tdep.c (avr_gdbarch_init): Update.
10219 * arm-tdep.c (arm_gdbarch_init): Update.
10220 * alpha-tdep.c (alpha_gdbarch_init): Update.
10221 * ns32knbsd-nat.c (frame_num_args): Update.
10222 * ns32k-tdep.c (umax_frame_num_args): Update.
10223 * mips-tdep.c (mips_init_frame_pc_first): Update.
10224 * infrun.c (step_over_function): Update.
10225 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10226 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10227 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10228 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10229 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10230 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10231 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10232 * arch-utils.c (init_frame_pc_default): Update.
10233 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10234 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10235 declaration.
8ffd9b1b 10236
38edeab8
AC
102372003-04-11 Andrew Cagney <cagney@redhat.com>
10238
10239 * i387-tdep.c: Update copyright.
10240 (i387_to_double): Delete function.
10241 (double_to_i387): Delete function.
10242
81f8a206
AC
102432003-04-10 Andrew Cagney <cagney@redhat.com>
10244
10245 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10246 frame's function's address. Simplify.
10247 (d10v_frame_unwind_cache): Check that the frame's function is
10248 non-zero.
10249
6e691f7a
JB
102502003-04-10 Jim Blandy <jimb@redhat.com>
10251
10252 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10253 call to set_gdbarch_deprecated_push_arguments.
10254
7f78e237
AC
102552003-04-10 Andrew Cagney <cagney@redhat.com>
10256
10257 * frame.c (fprint_frame_id): New function.
10258 (fprint_frame_type, fprint_frame): New function.
10259 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10260 (create_sentinel_frame, get_frame_id): Ditto.
10261 (frame_id_p, frame_id_eq): Ditto.
10262 (frame_id_inner, create_new_frame): Ditto.
10263 (legacy_get_prev_frame, get_prev_frame): Ditto.
10264 (deprecated_update_frame_pc_hack): Ditto.
10265 (frame_register_unwind): Ditto.
10266 (deprecated_update_frame_base_hack): Ditto.
10267
f870b49b
CV
102682003-04-10 Corinna Vinschen <vinschen@redhat.com>
10269
10270 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10271 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10272 frame_chain function.
10273 * Makefile.in: Add dependencies due to above change.
10274
7c86889b
CV
102752003-04-10 Corinna Vinschen <vinschen@redhat.com>
10276
10277 * blockframe.c (legacy_frame_chain_valid): Move call to
10278 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10279 inside_entry_file.
10280
d0a55772
AC
102812003-04-09 Andrew Cagney <cagney@redhat.com>
10282
10283 * frame.h (struct frame_id): Replace "pc" and "base" with
10284 "stack_addr" and "code_addr". Update comments.
10285 (frame_id_build): Update parameter names and comment.
10286 (struct frame_info): Replace "id_p" and "id" with "this_id".
10287 * dummy-frame.c (dummy_frame_this_id): Update.
10288 * breakpoint.c (print_one_breakpoint): Update.
10289 * frame.c (get_frame_id): Update.
10290 (get_frame_base, frame_id_build): Update.
10291 (create_sentinel_frame, legacy_get_prev_frame): Update.
10292 (deprecated_update_frame_base_hack): Update.
10293 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10294 (frame_id_inner): Ditto.
10295
ac16bf07
AC
102962003-04-09 Andrew Cagney <cagney@redhat.com>
10297
10298 * defs.h (gdb_print_host_address): Make "addr" parameter a
10299 pointer constant.
10300 * utils.c (gdb_print_host_address): Update.
10301
366cfc9e
KB
103022003-04-09 Kevin Buettner <kevinb@redhat.com>
10303
10304 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10305 register number for R0 is 0.
10306
cd983b5c
JB
103072003-04-09 J. Brobecker <brobecker@gnat.com>
10308
10309 * frame.h (struct gdbarch): Add opaque structure definition
10310 to avoid a compilation warning on LynxOS 4.0.
10311
d1340264
AC
103122003-04-09 Andrew Cagney <cagney@redhat.com>
10313
10314 * frame.h (struct frame_info): Delete field "pc". Replace
10315 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10316 structure.
10317 * frame.c (frame_pc_unwind): Update.
10318 (create_sentinel_frame): Do not set "pc".
10319 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10320 (get_frame_pc): Call frame_pc_unwind.
10321 (deprecated_update_frame_pc_hack): Update.
10322 (create_new_frame): Use "pc" not "->pc".
10323
90a6fffb
AC
103242003-04-09 Andrew Cagney <cagney@redhat.com>
10325
10326 * frame.c (get_frame_id): Eliminate code updating "frame".
10327 (legacy_get_prev_frame): Ditto.
10328 (get_frame_base): Return id.base directly.
10329 (deprecated_update_frame_base_hack): Update "id.base".
10330 * frame.h (struct frame_info): Delete field "frame".
10331
2fbce691
AC
103322003-04-09 Andrew Cagney <cagney@redhat.com>
10333
10334 * NEWS: Mention that the "Sequent family" is obsolete.
10335 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10336 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10337 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10338 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10339 * config/i386/tm-ptx4.h: Obsolete file.
10340 * config/i386/tm-ptx.h: Obsolete file.
10341 * symm-tdep.c: Obsolete file.
10342 * config/i386/symmetry.mt: Obsolete file.
10343 * config/i386/tm-symmetry.h: Obsolete file.
10344 * symm-nat.c: Obsolete file.
10345 * config/i386/nm-symmetry.h: Obsolete file.
10346 * config/i386/xm-symmetry.h: Obsolete file.
10347 * config/i386/symmetry.mh: Obsolete file.
10348 * config/i386/nm-ptx4.h: Obsolete file.
10349 * config/i386/ptx4.mh: Obsolete file.
10350 * config/i386/ptx.mt: Obsolete file.
10351 * config/i386/ptx.mh: Obsolete file.
10352 * config/i386/xm-ptx4.h: Obsolete file.
10353 * config/i386/xm-ptx.h: Obsolete file.
10354
78c43945
AC
103552003-04-09 Andrew Cagney <cagney@redhat.com>
10356
10357 Obsolete mips*-*-mach3*.
10358 * NEWS: Mention that mips*-*-mach3* is obsolete.
10359 * m3-nat.c: Obsolete file.
10360 * config/nm-m3.h: Obsolete file.
10361 * config/mips/tm-mipsm3.h: Obsolete file.
10362 * config/mips/mipsm3.mt: Obsolete file.
10363 * config/mips/mipsm3.mh: Obsolete file.
10364 * config/mips/xm-mipsm3.h: Obsolete file.
10365 * mipsm3-nat.c: Obsolete file.
10366 * configure.host: Obsolete mips-dec-mach3*.
10367 * configure.tgt: Obsolete mips*-*-mach3*.
10368
f1908289
AC
103692003-04-09 Andrew Cagney <cagney@redhat.com>
10370
10371 * doublest.h: Update copyright.
10372 (deprecated_store_floating, deprecated_extract_floating): Rename
10373 store_floating and extract_floating. Update comments.
10374 * doublest.c: Update copyright.
10375 (extract_floating_by_length): Replace extract_floating.
10376 (store_floating_by_length): Replace store_floating.
10377 (deprecated_extract_floating): New function.
10378 (deprecated_store_floating): New function.
10379 (extract_typed_floating): Call extract_floating_by_length.
10380 (store_typed_floating): Call store_floating_by_length.
10381 * x86-64-tdep.c (x86_64_store_return_value): Update.
10382 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10383 (sh64_extract_return_value): Update.
10384 (sh_sh4_register_convert_to_virtual): Update.
10385 (sh_sh64_register_convert_to_virtual): Update.
10386 (sh_sh4_register_convert_to_raw): Update.
10387 (sh_sh64_register_convert_to_raw): Update.
10388 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10389 (rs6000_register_convert_to_raw): Update.
10390 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10391 (ia64_register_convert_to_raw): Update.
10392 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10393 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10394 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10395 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10396 (alpha_register_convert_to_raw): Update.
10397
4443bd83
AC
103982003-04-08 Andrew Cagney <cagney@redhat.com>
10399
10400 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10401 * gdbarch.h, gdbarch.c: Re-generate.
10402 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10403 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10404 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10405 conditionally, use frame_pc_unwind as an alternative. Add
10406 comments.
10407 * arch-utils.c (init_frame_pc_default): Only call
10408 SAVED_PC_AFTER_CALL when available.
10409
c0236d92
EZ
104102003-04-08 Elena Zannoni <ezannoni@redhat.com>
10411
fbe586ae 10412 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10413 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10414 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10415 (start_remote): Ditto.
10416 (handle_inferior_event): Ditto.
10417 (save_inferior_status): Ditto.
10418 (restore_inferior_status): Ditto.
10419 * infcmd.c (attach_command): Ditto.
10420 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10421 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10422 * alpha-tdep.c (heuristic_proc_start): Ditto.
10423 * mips-tdep.c (heuristic_proc_start): Ditto.
10424 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10425 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10426 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10427 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10428 * remote-vx.c (vx_create_inferior): Ditto.
10429
104302003-04-08 Elena Zannoni <ezannoni@redhat.com>
10431
10432 * infrun.c (stop_soon_quietly): Make it an enum, to better
10433 override the default behavior of handle_inferior_event.
10434 (clear_proceed_status): Update uses of stop_soon_quietly to
10435 reflect that it is now an enum.
10436 (start_remote): Ditto.
10437 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10438 is set to handle the new GNU/Linux kernel behavior for
10439 attach/sigstop. Update uses of stop_soon_quietly.
10440 * inferior.h (enum stop_kind): New enum.
10441 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10442 Reset normal handle_inferior_event behavior, afterwards.
10443 * fork-child.c (startup_inferior): Update.
10444 * alpha-tdep.c (heuristic_proc_start): Update.
10445 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10446 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10447 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10448 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10449 * remote-vx.c (vx_create_inferior): Update.
10450 * mips-tdep.c (heuristic_proc_start): Update.
10451
1211bce3
EZ
104522003-04-07 Elena Zannoni <ezannoni@redhat.com>
10453
10454 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10455 be freed more than once, causing wild memory corruptions.
1211bce3 10456 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10457 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10458 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10459 with the "core" target.
1211bce3 10460
f0ef6b29
KB
104612003-04-07 Kevin Buettner <kevinb@redhat.com>
10462
10463 * mips-tdep.c (mips_print_fp_register): New function, created from
10464 do_fp_register_row(). Registers are now (also) printed as hex.
10465 Only one register is printed per row.
10466 (mips_print_register, do_fp_register_row): Print floating point
10467 registers with mips_print_fp_register().
10468
8cf71652
AC
104692003-04-06 Andrew Cagney <cagney@redhat.com>
10470
5e488a7b
AC
10471 * valprint.h (inspect_it): Add extern declaration.
10472 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10473 (selectors_info, classes_info): Ditto.
10474 (find_objc_msgcall): Fix indentation.
10475 (objc_printstr): Delete extern declarations.
10476
8cf71652
AC
10477 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10478
e6ba3bc9
AC
104792003-04-06 Andrew Cagney <cagney@redhat.com>
10480
10481 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10482 Update comment.
10483 * frame.c (legacy_saved_regs_this_id): Update.
10484 (legacy_get_prev_frame): Update.
10485 * xstormy16-tdep.c: Update comment.
10486 * sparc-tdep.c (sparc_frame_chain): Update comment.
10487 * blockframe.c (legacy_frame_chain_valid): Update.
10488
55e1d7e7
AC
104892003-04-06 Andrew Cagney <cagney@redhat.com>
10490
996179ee
AC
10491 * valprint.c (val_print_type_code_int): Delete #ifdef
10492 PRINT_TYPELESS_INTEGER code.
10493
55e1d7e7
AC
10494 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10495 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10496 multi-arch definition.
10497 * gdbarch.h: Re-generate.
10498
43bd9a9e
AC
104992003-04-05 Andrew Cagney <cagney@redhat.com>
10500
10501 Eliminate FRAME_FIND_SAVED_REGS.
10502 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10503 Change FSR parameter to a pointer.
10504 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10505 Assume FSR parameter is a pointer.
10506 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10507 Make fsr a pointer.
10508 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10509 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10510 saved_regs a pointer.
10511 (hppa_frame_saved_pc): Ditto.
10512 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10513 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10514 pointer.
10515 (restore_pc_queue): Make fsr a pointer.
10516 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10517 (hppa_frame_chain): Make saved_regs a pointer, call
10518 hppa_frame_init_saved_regs.
10519 * sparc-tdep.c: Include "gdb_assert.h".
10520 (sparc_frame_find_saved_regs): Replace internal_error with
10521 gdb_assert.
10522 * remote-vxsparc.c (vx_read_register): Delete reference to
10523 FRAME_FIND_SAVED_REGS.
10524 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10525 * gdbarch.h: Regenerate.
10526 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10527 (deprecated_get_frame_saved_regs): Delete declaration.
10528 (struct frame_saved_regs): Delete definition.
10529 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10530 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10531 (hppa_frame_find_saved_regs): Delete declaration.
10532 (FRAME_FIND_SAVED_REGS): Delete macro.
10533 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10534 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10535 FRAME_FIND_SAVED_REGS in comment.
10536
be41e9f4
AC
105372003-04-05 Andrew Cagney <cagney@redhat.com>
10538
10539 * frame.c (frame_func_unwind, get_frame_func): New functions.
10540 * frame.h (get_frame_func, frame_func_unwind): Declare.
10541 (struct frame_info): Add field "prev_func" for caching the
10542 previous frame's function address.
10543 * arm-tdep.c (arm_frameless_function_invocation): Combine
10544 get_pc_function_start and get_frame_pc into get_frame_func.
10545 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10546 (sh64_nofp_frame_init_saved_regs): Ditto.
10547 * s390-tdep.c (s390_function_start): Ditto.
10548 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10549 (rs6000_frameless_function_invocation): Ditto.
10550 (rs6000_frame_saved_pc): Ditto.
10551 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10552 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10553 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10554 (i386_frame_init_saved_regs): Ditto.
10555 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10556 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10557 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10558 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10559 * blockframe.c (frameless_look_for_prologue): Ditto.
10560
a01dd7cc
AC
105612003-04-05 Andrew Cagney <cagney@redhat.com>
10562
10563 * frame.c (legacy_get_prev_frame): Link prev to next at the
10564 function start. Update comments.
10565
5e5592e6
AC
105662003-04-05 Andrew Cagney <cagney@redhat.com>
10567
10568 * frame.c (get_frame_id): Update comment.
10569 (legacy_get_prev_frame): Update comment.
10570 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10571 * gdbarch.h: Regenerate.
10572 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10573 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10574
6fba5002
AC
105752003-04-05 Andrew Cagney <cagney@redhat.com>
10576
10577 * stack.c (print_frame_info): Use get_frame_pc.
10578
7df05f2b
AC
105792003-04-04 Andrew Cagney <cagney@redhat.com>
10580
10581 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10582 the frame's type from the unwinder.
10583 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10584 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10585 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10586 (get_frame_base_address): Use get_frame_type.
10587 (get_frame_locals_address, get_frame_args_address): Ditto.
10588 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10589 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10590 (struct frame_info): Add comment explaining why the frame contains
10591 a "type" field.
10592 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10593 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10594 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10595 NORMAL_FRAME.
10596 * frame-unwind.h: Include "frame.h".
10597 (struct frame_unwind): Add "type" field.
10598 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10599
11889732
AC
106002003-04-04 Andrew Cagney <cagney@redhat.com>
10601
10602 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10603 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10604 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10605 get_frame_base.
10606 (d10v_unwind_dummy_id): Use frame_id_build.
10607 * frame.c (find_frame_sal): Use get_frame_pc.
10608 (create_new_frame): Use deprecated_update_frame_pc_hack and
10609 deprecated_update_frame_base_hack.
10610 (create_sentinel_frame): Add comment about ->pc going away.
10611 (get_prev_frame): Add comment about ->pc going away.
10612 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10613 frame_id_build, deprecated_update_frame_pc_hack and
10614 deprecated_update_frame_base_hack.
10615 (select_frame): Use get_frame_pc.
10616 (legacy_saved_regs_this_id): Use frame_id_build.
10617
50c46a0d
EZ
106182003-04-04 Elena Zannoni <ezannoni@redhat.com>
10619
fbe586ae
RH
10620 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10621 signed integer case.
10622 (classify_argument): Handle enumerations and references.
50c46a0d 10623
50bbdbd9
AC
106242003-04-04 Andrew Cagney <cagney@redhat.com>
10625
10626 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10627 ID to NULL.
10628
36018d2e
AF
106292003-04-01 Adam Fedor <fedor@gnu.org>
10630
10631 * gdb/objc-lang.c (selectors_info): Replace calls to
10632 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10633 SYMBOL_NATURAL_NAME.
10634 (classes_info, find_methods): Likewise.
10635
35cec841
KB
106362003-04-03 Kevin Buettner <kevinb@redhat.com>
10637
10638 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10639 ``mach'' to the value determined by bfd_default_set_arch_mach().
10640
43136899
BR
106412003-04-02 Bob Rossi <bob_rossi@cox.net>
10642
10643 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10644 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10645 (mi-cmd-file.o): Update dependencies.
10646
040b99fd
KB
106472003-04-01 Kevin Buettner <kevinb@redhat.com>
10648
10649 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10650 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10651
9a3d7dfd
AF
106522003-04-01 Adam Fedor <fedor@gnu.org>
10653
10654 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10655 * language.h (struct language_defn): Add la_demangle.
10656 (language_demangle): Declare.
10657 * language.c (language_demangle): New function.
10658 (unk_lang_demangle): Likewise.
10659 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10660 Add ukn_lang_demangle.
9a3d7dfd 10661 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10662 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10663 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10664 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10665 * jv-lang.c (java_demangle): New function
10666 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10667 * objc-lang.c (objc_demangle): Add options argument
10668 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10669 * maint.c (maintenance_demangle): Replace switch with
10670 call to language_demangle.
10671 * utils.c (fprintf_symbol_filtered): Likewise.
10672
5e074003
AC
106732003-04-01 Andrew Cagney <cagney@redhat.com>
10674
10675 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10676 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10677 PRINT_TYPELESS_INTEGER.
10678 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10679 PUSH_RETURN_ADDRESS.
10680
270cb5d6
AC
106812003-04-01 Andrew Cagney <cagney@redhat.com>
10682
10683 * Makefile.in (d10v-tdep.o): Update dependencies.
10684 * d10v-tdep.c: Include "frame-base.h".
10685 (d10v_frame_unwind): Make constant.
10686 (d10v_frame_base_address): New function.
10687 (d10v_frame_base): New variable.
10688 (d10v_gdbarch_init): Set frame_base default.
10689 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10690 comment for base.
10691 (d10v_frame_unwind_cache): Set and use "prev_sp".
10692 (d10v_frame_this_id): Use the previous frame's inner most stack
10693 address and this frame's func address for the frame ID. Use
10694 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10695
6bfb3e36
AC
106962003-04-01 Andrew Cagney <cagney@redhat.com>
10697
10698 * frame.h (get_frame_locals_address, get_frame_args_address):
10699 Refer to the base address, instead of the address of the first
10700 local or parameter.
8ffd9b1b 10701
da62e633
AC
107022003-04-01 Andrew Cagney <cagney@redhat.com>
10703
10704 Add frame debug info addresses:
10705 * frame-base.c: New file.
10706 * frame-base.h: New file.
10707 * frame.h (struct frame_base): Add opaque declaration.
10708 (get_frame_base): Update comment.
10709 (get_frame_base_address): Declare.
10710 (get_frame_locals_address): Declare.
10711 (get_frame_args_address): Declare.
10712 (struct frame_info): Add "base" and "base_cache". Update
10713 comments on the unwinder.
10714 * frame.c: Include "frame-base.h".
10715 (get_frame_locals_address): New function.
10716 (get_frame_base_address): New function.
10717 (get_frame_args_address): New function.
10718 * findvar.c (read_var_value): Use get_frame_locals_address and
10719 get_frame_args_address.
10720 * stack.c (frame_info): Use get_frame_locals_address and
10721 get_frame_args_address.
10722 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10723 moved to "frame-base.c".
10724 * printcmd.c (print_frame_nameless_args): Ditto.
10725 * symtab.h (address_class): Update comments.
10726 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10727 get_frame_base_address.
10728 * dwarf2expr.c (execute_stack_op): Ditto.
10729 * Makefile.in (frame_base_h): Define.
10730 (frame.o): Update dependencies.
10731 (frame-base.o): Add dependencies.
10732 (SFILES): Add frame-base.c.
10733 (COMMON_OBS): Add frame-base.o.
10734
3d30e9c2
AC
107352003-04-01 Andrew Cagney <cagney@redhat.com>
10736
10737 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10738 CALL_DUMMY_LENGTH): Ditto.
10739 * gdbarch.c: Re-generate.
10740 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10741 (CALL_DUMMY_LENGTH): Delete macro.
10742 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10743 * arm-tdep.c (arm_gdbarch_init): Ditto.
10744 * avr-tdep.c (avr_gdbarch_init): Ditto.
10745 * cris-tdep.c (cris_gdbarch_init): Ditto.
10746 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10747 * frv-tdep.c (frv_gdbarch_init): Ditto.
10748 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10749 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10750 * i386-tdep.c (i386_gdbarch_init): Ditto.
10751 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10754 * mips-tdep.c (mips_gdbarch_init): Ditto.
10755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10756 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10757 * s390-tdep.c (s390_gdbarch_init): Ditto.
10758 * sh-tdep.c (sh_gdbarch_init): Ditto.
10759 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10760 * v850-tdep.c (v850_gdbarch_init): Ditto.
10761 * vax-tdep.c (vax_gdbarch_init): Ditto.
10762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10763
ce0c7262
CV
107642003-04-01 Corinna Vinschen <vinschen@redhat.com>
10765
10766 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10767
73dd234f
AC
107682003-04-01 Andrew Cagney <cagney@redhat.com>
10769
10770 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10771 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10772 * gdbarch.h, gdbarch.c: Re-generate.
10773 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10774 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10775 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10776 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10777 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10778 * infcmd.c (run_stack_dummy): Simplify assuming
10779 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10780 * infrun.c (handle_inferior_event): Ditto.
10781 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10782 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10783 * arm-tdep.c (arm_gdbarch_init): Ditto.
10784 * avr-tdep.c (avr_gdbarch_init): Ditto.
10785 * cris-tdep.c (cris_gdbarch_init): Ditto.
10786 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10787 * frv-tdep.c (frv_gdbarch_init): Ditto.
10788 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10789 * i386-tdep.c (i386_gdbarch_init): Ditto.
10790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10792 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10793 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10794 * mips-tdep.c (mips_gdbarch_init): Ditto.
10795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10796 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10798 * s390-tdep.c (s390_gdbarch_init): Ditto.
10799 * sh-tdep.c (sh_gdbarch_init): Ditto.
10800 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10801 * v850-tdep.c (v850_gdbarch_init): Ditto.
10802 * vax-tdep.c (vax_gdbarch_init): Ditto.
10803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10804
97606a13
DJ
108052003-04-01 Daniel Jacobowitz <drow@mvista.com>
10806
10807 * symfile.c (symfile_relocate_debug_section): Update call to
10808 bfd_simple_get_relocated_section_contents.
10809
e8ab51f7
AC
108102003-03-31 Andrew Cagney <cagney@redhat.com>
10811
10812 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10813 * gdbarch.h, gdbarch.c: Regenerate.
10814 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10815 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10816 available.
10817 * frame.h (generic_fix_call_dummy): Delete declaration.
10818 * dummy-frame.h: Update comment.
10819 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10820 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10821 fix_call_dummy.
10822 * sh-tdep.c (sh_gdbarch_init): Ditto.
10823 * s390-tdep.c (s390_gdbarch_init): Ditto.
10824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10828 * i386-tdep.c (i386_gdbarch_init): Ditto.
10829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10830 * frv-tdep.c (frv_gdbarch_init): Ditto.
10831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10832 * cris-tdep.c (cris_gdbarch_init): Ditto.
10833 * avr-tdep.c (avr_gdbarch_init): Ditto.
10834 * arm-tdep.c (arm_gdbarch_init): Ditto.
10835
018d1b48
JB
108362003-03-31 J. Brobecker <brobecker@gnat.com>
10837
10838 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10839 (INIT_FRAME_AP): Likewise.
10840 (EXTRA_FRAME_INFO): Likewise.
10841
e9a2674e
AC
108422003-03-31 Andrew Cagney <cagney@redhat.com>
10843
10844 * gdbarch.sh: Include "symfile.h".
10845 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10846 * gdbarch.h, gdbarch.c: Re-generate.
10847 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10849 call_dummy_address, the default is at entry_point_address.
10850 * v850-tdep.c (v850_gdbarch_init): Ditto.
10851 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10852 * sh-tdep.c (sh_gdbarch_init): Ditto.
10853 * s390-tdep.c (s390_gdbarch_init): Ditto.
10854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10855 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10856 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10857 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10858 * i386-tdep.c (i386_gdbarch_init): Ditto.
10859 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10860 * frv-tdep.c (frv_gdbarch_init): Ditto.
10861 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10862 * cris-tdep.c (cris_gdbarch_init): Ditto.
10863 * arm-tdep.c (arm_gdbarch_init): Ditto.
10864
e8a8712a
AC
108652003-03-31 Andrew Cagney <cagney@redhat.com>
10866
10867 * gdbarch.sh (CALL_DUMMY_P): Delete.
10868 * gdbarch.h, gdbarch.c: Re-generate.
10869 * inferior.h (CALL_DUMMY_P): Delete macro.
10870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10871 * vax-tdep.c (vax_gdbarch_init): Update.
10872 * v850-tdep.c (v850_gdbarch_init): Update.
10873 * sparc-tdep.c (sparc_gdbarch_init): Update.
10874 * sh-tdep.c (sh_gdbarch_init): Update.
10875 * s390-tdep.c (s390_gdbarch_init): Update.
10876 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10879 * mips-tdep.c (mips_gdbarch_init): Update.
10880 * mcore-tdep.c (mcore_gdbarch_init): Update.
10881 * m68k-tdep.c (m68k_gdbarch_init): Update.
10882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10883 * ia64-tdep.c (ia64_gdbarch_init): Update.
10884 * i386-tdep.c (i386_gdbarch_init): Update.
10885 * h8300-tdep.c (h8300_gdbarch_init): Update.
10886 * frv-tdep.c (frv_gdbarch_init): Update.
10887 * d10v-tdep.c (d10v_gdbarch_init): Update.
10888 * cris-tdep.c (cris_gdbarch_init): Update.
10889 * breakpoint.c (deprecated_frame_in_dummy): Update.
10890 * avr-tdep.c (avr_gdbarch_init): Update.
10891 * alpha-tdep.c (alpha_gdbarch_init): Update.
10892 * arm-tdep.c (arm_gdbarch_init): Update.
10893 * dummy-frame.c (dummy_frame_this_id): Update comments.
10894 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10895 * frame.c (legacy_get_prev_frame): Ditto.
10896 * valops.c (call_function_by_hand): Delete function.
10897 (hand_function_call): Rename to call_function_by_hand
10898
ed234cf8
AC
108992003-03-30 Andrew Cagney <cagney@redhat.com>
10900
10901 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10902 * value.h (struct value): Update comment.
ed234cf8 10903
06c77151
AC
109042003-03-30 Andrew Cagney <cagney@redhat.com>
10905
6c2b5168
AC
10906 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10907 D10V_FP_REGNUM.
10908 (d10v_gdbarch_init): Do not set fp_regnum.
10909
06c77151
AC
10910 * frame.c (get_frame_base): Force ID initialization.
10911 (get_prev_frame): Move computation of the frame ID from here ...
10912 (get_frame_id): ... to here.
10913 (legacy_get_prev_frame): Mark the frame ID as valid.
10914 * frame.h (struct frame_info): Add field "id_p".
10915
97a1a11c
MK
109162003-03-30 Mark Kettenis <kettenis@gnu.org>
10917
10918 * i386-tdep.c (i386_store_struct_return): Removed.
10919 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10920
6c0e89ed
AC
109212003-03-30 Andrew Cagney <cagney@redhat.com>
10922
10923 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10924 * gdbarch.h, gdbarch.c: Regenerate.
10925 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10927 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10928 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10929 * i386-tdep.c (i386_gdbarch_init): Ditto.
10930 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10931 * cris-tdep.c (cris_gdbarch_init): Ditto.
10932 * vax-tdep.c (vax_gdbarch_init): Ditto.
10933 * s390-tdep.c (s390_gdbarch_init): Ditto.
10934 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10935 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10936 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10937 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10938 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10939 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10940 * sparc-tdep.c (sparc_gdbarch_init): Update.
10941 * sh-tdep.c (sh_gdbarch_init): Update.
10942 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10943 * mips-tdep.c (mips_gdbarch_init): Update.
10944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10945 * ia64-tdep.c (ia64_gdbarch_init): Update.
10946 * frv-tdep.c (frv_gdbarch_init): Update.
10947 * avr-tdep.c (avr_gdbarch_init): Update.
10948 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10949 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10950 instead of when push_dummy_call is not available.
8ffd9b1b 10951
f7dd6af2
AC
109522003-03-30 Andrew Cagney <cagney@redhat.com>
10953
10954 * infttrace.c: Include "gdbthread.h".
10955 (parent_attach_all): Fix function signature.
10956 (call_ptrace): Update call.
10957 * Makefile.in (infttrace.o): Update dependencies.
10958
28f617b3
AC
109592003-03-30 Andrew Cagney <cagney@redhat.com>
10960
10961 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10962 PUSH_RETURN_ADDRESS.
10963 * gdbarch.h, gdbarch.c: Regenerate.
10964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10965 * x86-64-tdep.c (x86_64_init_abi): Update.
10966 * v850-tdep.c (v850_gdbarch_init): Update.
10967 * sparc-tdep.c (sparc_gdbarch_init): Update.
10968 * sh-tdep.c (sh_gdbarch_init): Update.
10969 * s390-tdep.c (s390_gdbarch_init): Update.
10970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10971 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10972 * mips-tdep.c (mips_gdbarch_init): Update.
10973 * mcore-tdep.c (mcore_gdbarch_init): Update.
10974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10975 * ia64-tdep.c (ia64_gdbarch_init): Update.
10976 * i386-tdep.c (i386_gdbarch_init): Update.
10977 * h8300-tdep.c (h8300_gdbarch_init): Update.
10978 * frv-tdep.c (frv_gdbarch_init): Update.
10979 * cris-tdep.c (cris_gdbarch_init): Update.
10980 * avr-tdep.c (avr_gdbarch_init): Update.
10981 * arm-tdep.c (arm_gdbarch_init): Update.
10982 * valops.c (hand_function_call): Update.
10983
4d628cd7
AC
109842003-03-29 Andrew Cagney <cagney@redhat.com>
10985
10986 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10987 sizeof_call_dummy_words.
10988 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10989 define.
10990 * gdbarch.h: Regenerate.
8ffd9b1b 10991
65e82032
AC
109922003-03-29 Andrew Cagney <cagney@redhat.com>
10993
10994 * infttrace.h: New file.
10995 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10996 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10997 (hpread_read_doc_function_type): Detect an initialized type1.
10998 (hpread_quick_traverse): Initialize mod_name_string.
10999 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11000 (som_solib_get_solib_by_pc): Declare.
11001 (so_lib_thread_start_addr): Declare.
11002 (no_shared_libraries): Declare.
11003 * somread.c (init_import_symbols): Make static. Add forward
11004 declaration.
11005 * config/pa/nm-hppah.h: Include "infttrace.h" for
11006 parent_attach_all.
11007 (hppa_insert_hw_watchpoint): Declare.
11008 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11009 * hppah-nat.c: Include "gdb_string.h".
11010 (parent_attach_all): Delete extern declaration, moved to
11011 "infttrace.h".
11012 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11013 int.
11014 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11015 * Makefile.in (infttrace_h): Define.
11016 (hpread.o): Update dependencies.
11017 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11018 * hppa-hpux-tdep.c: Include "gdb_string.h".
11019 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11020 * infrun.c (handle_inferior_event): Always initialize
11021 stepped_after_stopped_by_watchpoint. Add default and remove
11022 fallthrough in switch statement.
11023 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11024 parameter to int.
11025 (hppa_remove_hw_watchpoint): Ditto.
11026
2c3bbe77
AC
110272003-03-29 Andrew Cagney <cagney@redhat.com>
11028
11029 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11030 offset.
11031
2dd604e7
RE
110322003-03-29 Richard Earnshaw <rearnsha@arm.com>
11033
11034 * arm-tdep.c (arm_push_arguments): Delete.
11035 (struct stack_item): New type.
11036 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11037 (arm_store_struct_return): Delte.
11038 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11039 arm_push_arguments or arm_store_struct_return.
11040
e8933a55
AC
110412003-03-28 Andrew Cagney <cagney@redhat.com>
11042
11043 * Makefile.in (d10v-tdep.o): Update dependencies.
11044 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11045 * d10v-tdep.c: Include "remote.h".
11046 (target_resume_hook): Delete extern declaration.
11047 (target_wait_loop_hook): Ditto.
11048 (tdisassemble_command): Eliminate assignment in "if" conditional.
11049 (d10v_ts2_register_sim_regno): Eliminate call to
11050 legacy_register_sim_regno.
11051 (d10v_ts3_register_sim_regno): Ditto.
11052
6949171e
JJ
110532003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11054
11055 * thread.c: Reindented.
11056 * lin-lwp.c: Ditto.
11057 * linux-proc.c: Ditto.
11058
98c7071f
BR
110592003-03-28 Bob Rossi <bob_rossi@cox.net>
11060
fbe586ae 11061 * MAINTAINERS (write after approval): Add myself.
98c7071f 11062
5edc9ca6
TR
110632003-03-27 Theodore A. Roth <troth@openavr.org>
11064
11065 * objc-exp.y: Add missing semi-colons.
11066
378bfd1b
AC
110672003-03-27 Andrew Cagney <cagney@redhat.com>
11068
11069 * regcache.c (write_sp): Delete function and references.
11070 * inferior.h (write_sp): Delete declaration.
11071 * valops.c (hand_function_call): Replace write_sp with
11072 TARGET_WRITE_SP.
11073 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11074 (sparc_pop_frame): Ditto.
8ffd9b1b 11075
56056df7
AC
110762003-03-27 Andrew Cagney <cagney@redhat.com>
11077
11078 * NEWS: Mention removal of support for hppa*-*-bsd* and
11079 hppa*-*-osf* natives, and hppa*-*-pro* target.
11080 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11081 * config/pa/xm-pa.h: Obsolete file.
11082 * config/pa/xm-hppab.h: Obsolete file.
11083 * config/pa/nm-hppab.h: Obsolete file.
11084 * config/pa/tm-hppab.h: Obsolete file.
11085 * config/pa/tm-hppao.h: Obsolete file.
11086 * config/pa/nm-hppao.h: Obsolete file.
11087 * config/pa/tm-pro.h: Obsolete file.
11088 * config/pa/hppaosf.mt: Obsolete file.
11089 * config/pa/hppaosf.mh: Obsolete file.
11090 * config/pa/hppapro.mt: Obsolete file.
11091 * config/pa/hppabsd.mt: Obsolete file.
11092 * config/pa/hppabsd.mh: Obsolete file.
11093 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11094 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11095 hppa*-*-osf*.
11096
5873a88d
AC
110972003-03-27 Andrew Cagney <cagney@redhat.com>
11098
11099 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11100 push_arguments. Don't set push_return_address or write_sp.
11101 (d10v_push_dummy_call): Replace d10v_push_arguments.
11102 (d10v_push_return_address, d10v_write_sp): Delete function,
11103 handled by push_dummy_call.
11104
b81774d8
AC
111052003-03-26 Andrew Cagney <cagney@redhat.com>
11106
11107 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11108 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11109 regcache and dummy_addr parameters.
11110 * gdbarch.h, gdbarch.c: Re-generate.
11111 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11112 available; assume it will handle stack alignment and return
11113 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11114 legacy_push_arguments.
11115 (legacy_push_arguments): Rename default_push_arguments.
11116 * value.h (legacy_push_arguments): Rename default_push_arguments.
11117 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11118 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11119 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11120 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11121 * config/i386/tm-symmetry.h: Update.
11122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11123 * x86-64-tdep.c (x86_64_init_abi): Update.
11124 * v850-tdep.c (v850_gdbarch_init): Update.
11125 * sparc-tdep.c (sparc_gdbarch_init): Update.
11126 * sh-tdep.c (sh_gdbarch_init): Update.
11127 * s390-tdep.c (s390_gdbarch_init): Update.
11128 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11129 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11130 * mips-tdep.c (mips_gdbarch_init): Update.
11131 * mcore-tdep.c (mcore_gdbarch_init): Update.
11132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11133 * ia64-tdep.c (ia64_gdbarch_init): Update.
11134 * i386-tdep.c (i386_gdbarch_init): Update.
11135 * hppa-tdep.c (hppa_gdbarch_init): Update.
11136 * h8300-tdep.c (h8300_gdbarch_init): Update.
11137 * frv-tdep.c (frv_gdbarch_init): Update.
11138 * d10v-tdep.c (d10v_gdbarch_init): Update.
11139 * cris-tdep.c (cris_gdbarch_init): Update.
11140 * avr-tdep.c (avr_gdbarch_init): Update.
11141 * arm-tdep.c (arm_gdbarch_init): Update.
11142 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11143 * alpha-tdep.c (alpha_gdbarch_init): Update.
11144
f541410f
DJ
111452003-03-26 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * signals/signals.c (do_target_signal_to_host): Correct realtime
11148 signal range test.
11149
69f567ae
DJ
111502003-03-26 Daniel Jacobowitz <drow@mvista.com>
11151
11152 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11153 (struct sal_chain, map_catch_names): Remove.
11154 (catch_exception_command_1): Don't call
11155 handle_gnu_4_16_catch_command.
11156
d5d14a5a
DJ
111572003-03-26 Daniel Jacobowitz <drow@mvista.com>
11158
11159 From Mark Dettinger <dettinge@de.ibm.com>:
11160 * dwarf2cfi.c (read_2u): Increment pointer by two.
11161
bdd73e22
DJ
111622003-03-26 Daniel Jacobowitz <drow@mvista.com>
11163
11164 * signals/signals.c: Fix typos in last change.
11165
960cb555
DJ
111662003-03-26 Daniel Jacobowitz <drow@mvista.com>
11167
11168 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11169 not already defined. Use __SIGRTMIN if available.
11170 (target_signal_from_host): Remove SIGRTMIN block.
11171 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11172 the signal is within the realtime range.
11173
f636b87d
AF
111742003-03-25 Adam Fedor <fedor@gnu.org>
11175
11176 * Makefile.in (infrun.o): Add $(language_h)
11177 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11178 for language specific trampolines.
11179 * language.h (struct language_defn): Add skip_trampoline.
11180 (skip_language_trampoline): Declare.
11181 * language.c (unk_lang_trampoline, skip_language_trampoline):
11182 New functions.
11183 (unknown_language_defn, auto_language_defn, local_language_defn):
11184 Add ukn_lang_trampoline.
11185 * ada-lang.c (ada_language_defn): Add NULL for language
11186 specific skip_trampoline.
11187 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11188 scm-lang.c: Likewise.
11189 * objc-lang.c (objc_skip_trampoline): New function.
11190 (objc_language_defn): Add objc_skip_trampoline.
11191
28f617b3 111922003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11193
11194 * frame.c (get_prev_frame): Delay validating a frame's ID -
11195 non-NULL, didn't go backwards - until an attempt to unwind it to
11196 the previous frame.
11197
f933a9c5
AC
111982003-03-25 Andrew Cagney <cagney@redhat.com>
11199
11200 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11201 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11202 * gdbarch.h, gdbarch.c: Re-generate.
11203 * config/sparc/tm-sparc.h
11204 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11205 * sparc-tdep.c (sparc_gdbarch_init): Set
11206 deprecated_extra_stack_alignment_needed.
11207 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11208 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11209 extra_stack_alignment_needed.
11210 * v850-tdep.c (v850_gdbarch_init): Ditto.
11211 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11212 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11214 * cris-tdep.c (cris_gdbarch_init): Ditto.
11215 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11217
4183d812
AC
112182003-03-25 Andrew Cagney <cagney@redhat.com>
11219
11220 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11221 STORE_STRUCT_RETURN.
11222 * gdbarch.h, gdbarch.c: Regenerate.
11223 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11224 (d10v_push_arguments): Set the struct return register.
11225 (d10v_gdbarch_init): Update.
11226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11227 * x86-64-tdep.c (x86_64_init_abi): Update.
11228 * vax-tdep.c (vax_gdbarch_init): Update.
11229 * v850-tdep.c (v850_gdbarch_init): Update.
11230 * sparc-tdep.c (sparc_gdbarch_init): Update.
11231 * sh-tdep.c (sh_gdbarch_init): Update.
11232 * s390-tdep.c (s390_gdbarch_init): Update.
11233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11234 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11235 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11236 * mips-tdep.c (mips_gdbarch_init): Update.
11237 * mcore-tdep.c (mcore_gdbarch_init): Update.
11238 * m68k-tdep.c (m68k_gdbarch_init): Update.
11239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11240 * ia64-tdep.c (ia64_gdbarch_init): Update.
11241 * i386-tdep.c (i386_gdbarch_init): Update.
11242 * hppa-tdep.c (hppa_gdbarch_init): Update.
11243 * h8300-tdep.c (h8300_gdbarch_init): Update.
11244 * frv-tdep.c (frv_gdbarch_init): Update.
11245 * cris-tdep.c (cris_gdbarch_init): Update.
11246 * avr-tdep.c (avr_gdbarch_init): Update.
11247 * arm-tdep.c (arm_gdbarch_init): Update.
11248 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11249
1bf6d5cc
AC
112502003-03-25 Andrew Cagney <cagney@redhat.com>
11251
11252 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11253 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11254 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11255 * gdbarch.h, gdbarch.c: Regenerate.
11256 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11257 call_dummy_stack_adjust_p.
11258 * vax-tdep.c (vax_gdbarch_init): Ditto.
11259 * v850-tdep.c (v850_gdbarch_init): Ditto.
11260 * sh-tdep.c (sh_gdbarch_init): Ditto.
11261 * s390-tdep.c (s390_gdbarch_init): Ditto.
11262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11263 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11265 * mips-tdep.c (mips_gdbarch_init): Ditto.
11266 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11267 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11269 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11270 * i386-tdep.c (i386_gdbarch_init): Ditto.
11271 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11272 * frv-tdep.c (frv_gdbarch_init): Ditto.
11273 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11274 * cris-tdep.c (cris_gdbarch_init): Ditto.
11275 * avr-tdep.c (avr_gdbarch_init): Ditto.
11276 * arm-tdep.c (arm_gdbarch_init): Ditto.
11277 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11278 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11279 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11280 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11281 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11282 call_dummy_stack_adjust_p.
11283 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11284 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11285 * sparc-tdep.c (sparc32_push_arguments): Update.
11286 * valops.c (hand_function_call): Update.
11287
71c08af0
CV
112882003-03-25 Corinna Vinschen <vinschen@redhat.com>
11289
11290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11291 set_gdbarch_char_signed.
11292
30757f90
RE
112932003-03-25 Richard Earnshaw <rearnsha@arm.com>
11294
11295 PR cli/548
11296 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11297
03d48a7d
RE
112982003-03-25 Richard Earnshaw <rearnsha@arm.com>
11299
11300 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11301 (_initialize_arm_tdep): Don't set tm_print_insn.
11302
2cf6873c
AF
113032003-03-24 Adam Fedor <fedor@gnu.org>
11304
11305 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11306 * objc-lang.h: Add multiple inclusion protection.
11307 (start_msglist, add_msglist, end_msglist): Additional declarations.
11308
17c0759e
RE
113092003-03-24 Richard Earnshaw <rearnsha@arm.com>
11310
11311 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11312 value was renamed to ARM_FLOAT_SOFT_FPA.
11313
618ce49f
AC
113142003-03-23 Andrew Cagney <cagney@redhat.com>
11315
11316 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11317 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11318 * gdbarch.h, gdbarch.c: Regenerate.
11319 * valops.c (hand_function_call): Update.
11320 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11321 * frame.c (legacy_saved_regs_this_id): Update.
11322 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11323 * dummy-frame.h: Update.
11324 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11325 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11326 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11327 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11328 * config/m68k/tm-sun3.h: Update.
11329 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11331 * x86-64-tdep.c (x86_64_init_abi): Update.
11332 * vax-tdep.c (vax_gdbarch_init): Update.
11333 * v850-tdep.c (v850_gdbarch_init): Update.
11334 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11335 * sh-tdep.c (sh_gdbarch_init): Update.
11336 * s390-tdep.c (s390_gdbarch_init): Update.
11337 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11338 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11339 (frame_get_saved_regs): Update.
11340 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11341 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11343 * mips-tdep.c (mips_gdbarch_init): Update.
11344 * mcore-tdep.c (mcore_gdbarch_init): Update.
11345 * m68k-tdep.c (m68k_gdbarch_init): Update.
11346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11347 * ia64-tdep.c (ia64_gdbarch_init): Update.
11348 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11349 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11350 (i386_interix_back_one_frame): Update.
11351 * hppa-tdep.c (hppa_gdbarch_init): Update.
11352 (hppa_init_extra_frame_info): Update.
11353 * h8300-tdep.c (h8300_gdbarch_init): Update.
11354 * frv-tdep.c (frv_gdbarch_init): Update.
11355 * cris-tdep.c (cris_gdbarch_init): Update.
11356 * avr-tdep.c (avr_gdbarch_init): Update.
11357 * arm-tdep.c (arm_gdbarch_init): Update.
11358 * alpha-tdep.c (alpha_gdbarch_init): Update.
11359
fd50bc42
RE
113602003-03-22 Richard Earnshaw <rearnsha@arm.com>
11361
11362 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11363 (arm_get_fp_model): Declare.
11364 * arm-tdep.c (fp_model_strings): New string array.
11365 (arm_fp_model, current_fp_model): New variables.
11366 (arm_get_fp_model): New function.
11367 (arm_set_fp): New function.
11368 (set_fp_model_sfunc): New function.
11369 (show_fp_model): New function.
11370 (_initialize_arm_tdep): Add new command to set/show the FPU.
11371 (arm_extract_return_value): Use arm_get_fp_model.
11372 (arm_store_return_value): Likewise.
11373 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11374 to initialize the floating-point data types.
11375 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11376 model is FPA.
11377
26304000
RE
113782003-03-22 Richard Earnshaw <rearnsha@arm.com>
11379
11380 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11381 the current setting of each value.
11382 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11383 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11384 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11385 commands and add new version as subcommands of "set/show arm".
11386
afd7eef0
RE
113872003-03-22 Richard Earnshaw <rearnsha@arm.com>
11388
11389 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11390 (set_arm_command, show_arm_command): New functions.
11391 (_initialize_arm_tdep): Add them.
11392 (num_disassembly_options): Renamed from num_flavor_options.
11393 (valid_disassembly_styles): Renamed from valid_flavors.
11394 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11395 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11396 set_disassembly_flavor_sfunc.
11397 (set_disassembly_style): Renamed from set_disassembly_flavor.
11398 (arm_othernames): Updated.
11399 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11400 command. Add "set/show arm disassembly" commands. Deprecate
11401 "othernames" command.
11402
299a7944
RE
114032003-03-22 Richard Earnshaw <rearnsha@arm.com>
11404
11405 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11406 (arm-tdep.o): Depend on elf_arm_h.
11407
c1dac9e6
RE
114082003-03-22 Richard Earnshaw <rearnsha@arm.com>
11409
11410 * Makefile.in (coff_internal_h): Define.
11411 (arm-tdep.o): Update dependencies.
11412
2702d96c
RE
114132003-03-22 Richard Earnshaw <rearnsha@arm.com>
11414
11415 * arm-tdep.c (prologue_cache): Delete.
11416 (check_prologue_cache, save_prologue_cache): Delete.
11417 (arm_scan_prologue): Don't check or update the prologue_cache.
11418 (arm_gdb_arch_init): Don't initialize it.
11419 (_initialize_arm_tdep): Likewise.
11420
27d5d74b
SC
114212003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11422
11423 * MAINTAINERS (tui): Maintainer of tui code.
11424
1762d96d
CV
114252003-03-21 Corinna Vinschen <vinschen@redhat.com>
11426
11427 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11428 (i386-cygwin-tdep.o): Add dependencies.
11429 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11430 * i386-cygwin-tdep.c: New file.
11431 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11432 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11433
4c2e2391
AC
114342003-03-20 Andrew Cagney <cagney@redhat.com>
11435
f20d38b7
AC
11436 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11437 (handle_inferior_event): Remove code calling
11438 DYNAMIC_TRAMPOLINE_NEXTPC.
11439
0022b738
AC
11440 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11441 already has a full path.
11442
864dbc90
AC
11443 * main.c (gdb_main): Return 1.
11444 (captured_main): Call error to report an invalid interpreter.
11445
4c2e2391
AC
11446 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11447 * alpha-osf1-tdep.c: Include "gdb_string.h".
11448
5ef7553b
JB
114492003-03-19 J. Brobecker <brobecker@gnat.com>
11450
11451 Continuing work to convert the hppa targets to multiarch partial.
11452
11453 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11454 method, now that hppa_push_dummy_frame has a conformant prototype.
11455 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11456 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11457 for the switch to multiarch partial.
11458
7bde8967
KB
114592003-03-19 Kevin Buettner <kevinb@redhat.com>
11460
11461 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11462 when iss is issNull.
11463
b006a9e9
KB
114642003-03-18 Kevin Buettner <kevinb@redhat.com>
11465
11466 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11467 NUM_REGS bounds check.
11468
5e2e9765
KB
114692003-03-18 Kevin Buettner <kevinb@redhat.com>
11470
11471 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11472 * mips-tdep.c (gdb_assert.h): Include.
11473 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11474 (mips_register_name): Handle integer registers explicitly. Add
11475 bounds checking.
11476 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11477 (mips_lsi33k_reg_names): Don't list integer registers; they're
11478 handled by mips_register_name() now.
11479 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11480 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11481 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11482 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11483 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11484
a2867626
AC
114852003-03-18 Andrew Cagney <cagney@redhat.com>
11486
11487 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11488 a void pointer.
11489 * gdbtypes.h (print_scalar_formatted): Update declaration.
11490 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11491
06600e06
JB
114922003-03-18 J. Brobecker <brobecker@gnat.com>
11493
11494 * infrun.c (observer.h): Add #include.
11495 (normal_stop): Add call to observer_notify_normal_stop.
11496 * Makefile.in (infrun.o): Add dependency on observer.h.
11497
7daf4f5b
JB
114982003-03-18 J. Brobecker <brobecker@gnat.com>
11499
11500 Continuing work to convert the hppa targets to multiarch partial.
11501 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11502 parameter. Reformat comment.
11503 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11504 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11505 to match new profile.
11506
3371ccc0
JB
115072003-03-18 J. Brobecker <brobecker@gnat.com>
11508
11509 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11510 appear to be working in any case.
11511
4fbe891e
JB
115122003-03-18 J. Brobecker <brobecker@gnat.com>
11513
11514 * observer.c (observer_test_first_observer): New static variable.
11515 (observer_test_second_observer): Likewise.
11516 (observer_test_third_observer): Likewise.
11517 (observer_test_first_notification_function): New static function.
11518 (observer_test_second_notification_function): Likewise.
11519 (observer_test_third_notification_function): Likewise.
11520
a7ff40e7
JB
115212003-03-17 J. Brobecker <brobecker@gnat.com>
11522
11523 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11524 * somsolib.c (gdb_assert.h): Likewise.
11525 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11526 (somsolib.o): Likewise.
11527
26ca4152
AC
115282003-03-17 Andrew Cagney <cagney@redhat.com>
11529
11530 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11531 BFD. Simplify setting of di.endian.
11532
0a613259
AC
115332003-03-17 Andrew Cagney <cagney@redhat.com>
11534
11535 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11536 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11537
11538 From Elena Zannoni <ezannoni@redhat.com>
11539 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11540 vector and floating-point parameters.
11541 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11542 convention.
11543 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11544
1132738f
FN
115452003-03-17 Fernando Nasser <fnasser@redhat.com>
11546
11547 * MAINTAINERS: Remove my name from several maintainership roles.
11548
6dc42492
AC
115492003-03-17 Andrew Cagney <cagney@redhat.com>
11550
11551 Fix frame off-by-one bug.
11552 * frame-unwind.h (frame_this_id_ftype): Replace
11553 frame_unwind_id_ftype.
11554 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11555 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11556 with "prev_register".
11557 * frame-unwind.c (frame_unwind_find_by_pc): Return
11558 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11559 comment.
11560 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11561 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11562 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11563 (dummy_frame_unwind): Update.
11564 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11565 sentinel_frame_register_unwind.
11566 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11567 (sentinel_frame_unwinder): Update.
11568 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11569 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11570 * frame.c (create_sentinel_frame): Update. Initialize
11571 "prologue_cache" instead of "unwind_cache".
11572 (frame_register_unwind): Call this frame's prev_register with the
11573 next frame and this frame's prologue cache.
11574 (get_prev_frame): Simplify. Always call prev frame's this_id with
11575 this frame and prev frame's prologue cache. Document that this
11576 call is shifted one to the left when compared to the
11577 frame_register_unwind call.
11578 (legacy_saved_regs_prev_register): Replace
11579 frame_saved_regs_register_unwind.
11580 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11581 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11582 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11583 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11584 (d10v_frame_unwind): Update.
11585 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11586 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11587 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11588 "saved_regs" with "this_saved_regs".
11589
efd710d6
AC
115902003-03-16 Andrew Cagney <cagney@redhat.com>
11591
11592 * frame.c (frame_pop): Don't call target_store_registers. Fix
11593 problem reported by Mark Kettenis.
11594
4e259f09
MK
115952003-03-16 Mark Kettenis <kettenis@gnu.org>
11596
11597 * i386-tdep.c (i386_register_type): Renamed from
11598 i386_register_virtual_type. Adjust function signature.
11599 (i386_gdbarch_init): Set register_type instead of
11600 deprecated_max_register_raw_size,
11601 deprecated_max_register_virtual_size and register_virtual_type.
11602
055bb976
AC
116032003-03-14 Andrew Cagney <cagney@redhat.com>
11604
11605 * frame.c (get_prev_frame): When a legacy frame, always call
11606 legacy_get_prev_frame. Simplify unwind code using assumption that
11607 the unwinder is new.
11608 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11609 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11610 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11611
ac2adee5
AC
116122003-03-14 Andrew Cagney <cagney@redhat.com>
11613
11614 * frame.c (get_saved_register): Delete function.
11615 * frame.h (get_saved_register): Delete declaration.
11616 * xstormy16-tdep.c: Update comment.
11617 * regcache.h: Update comments.
11618 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11619 get_saved_register and extract_address, use
11620 frame_read_unsigned_register.
11621 (sparc_frame_saved_pc): Ditto.
11622 (sparc_get_saved_register): Instead of get_saved_register, use
11623 frame_register.
11624 (sparc_pop_frame): Ditto.
11625 * findvar.c: Update comments.
11626 (value_of_register): Call frame_register instead of
11627 get_saved_register.
11628 (value_from_register): Ditto.
11629 * config/sparc/tm-sparc.h: Update comment.
11630 * breakpoint.c: Update comment.
11631
129c1cd6
AC
116322003-03-14 Andrew Cagney <cagney@redhat.com>
11633
11634 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11635 GET_SAVED_REGISTER.
11636 * gdbarch.h, gdbarch.c: Re-generate.
11637 * frame.h: Update comments.
11638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11639 * x86-64-tdep.c (x86_64_init_abi): Update.
11640 * sparc-tdep.c (sparc_gdbarch_init): Update.
11641 * sh-tdep.c (sh_gdbarch_init): Update.
11642 * mips-tdep.c (mips_gdbarch_init): Update.
11643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11644 * cris-tdep.c (cris_gdbarch_init): Update.
11645 * ia64-tdep.c (ia64_gdbarch_init): Update.
11646 * frame.c (frame_register): Update.
11647 (get_saved_register): Update.
11648 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11649
749b82f6
AC
116502003-03-13 Andrew Cagney <cagney@redhat.com>
11651
11652 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11653 * gdbarch.h, gdbarch.c: Regenerate.
11654 * valops.c (hand_function_call): Update comment.
11655 * stack.c (return_command): Update comment.
11656 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11657 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11659 * x86-64-tdep.c (x86_64_init_abi): Update.
11660 * vax-tdep.c (vax_gdbarch_init): Update.
11661 * v850-tdep.c (v850_gdbarch_init): Update.
11662 * sparc-tdep.c (sparc_gdbarch_init): Update.
11663 * sh-tdep.c (sh_gdbarch_init): Update.
11664 * s390-tdep.c (s390_gdbarch_init): Update.
11665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11667 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11668 * mips-tdep.c (mips_gdbarch_init): Update.
11669 * mcore-tdep.c (mcore_gdbarch_init): Update.
11670 * m68k-tdep.c (m68k_gdbarch_init): Update.
11671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11672 * ia64-tdep.c (ia64_gdbarch_init): Update.
11673 * i386-tdep.c (i386_gdbarch_init): Update.
11674 * hppa-tdep.c (hppa_gdbarch_init): Update.
11675 * h8300-tdep.c (h8300_gdbarch_init): Update.
11676 * frv-tdep.c (frv_gdbarch_init): Update.
11677 * cris-tdep.c (cris_gdbarch_init): Update.
11678 * avr-tdep.c (avr_gdbarch_init): Update.
11679 * arm-tdep.c (arm_gdbarch_init): Update.
11680 * alpha-tdep.c (alpha_gdbarch_init): Update.
11681
1594fa56
AC
116822003-03-13 Andrew Cagney <cagney@redhat.com>
11683
11684 * frame.c (legacy_frame_p): New function.
11685 (get_prev_frame): Use legacy_frame_p.
11686 * frame.h (legacy_frame_p): Declare.
11687
7717fda3
V
116882003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11689
fbe586ae 11690 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11691 listing corrected.
11692
0c67cbe9
V
116932003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11694
fbe586ae 11695 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11696
03febf99
AC
116972003-03-12 Andrew Cagney <cagney@redhat.com>
11698
11699 * frame.c (get_prev_frame): Rename the frame parameter to
11700 "this_frame".
11701 (get_next_frame, legacy_get_prev_frame): Ditto.
11702
0a1e1ca1
AC
117032003-03-12 Andrew Cagney <cagney@redhat.com>
11704
11705 * frame.c (get_current_frame): Check target_has_registers before
11706 checking target_has_stack.
11707 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11708 instead of deprecated_selected_frame.
11709 * findvar.c (value_of_register): Pass "frame", not
11710 deprecated_selected_frame, to value_of_builtin_reg.
11711
a66a9c23
AC
117122003-03-12 Andrew Cagney <cagney@redhat.com>
11713
11714 * regcache.c (regcache_cooked_write_signed): New function.
11715 (regcache_cooked_write_unsigned): New function.
11716 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11717 (regcache_cooked_read_signed): Fix regnum in range assertion.
11718 * regcache.h (regcache_cooked_write_signed): Declare.
11719 (regcache_cooked_write_unsigned): Declare.
11720
8bedc050
AC
117212003-03-12 Andrew Cagney <cagney@redhat.com>
11722
11723 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11724 * gdbarch.h, gdbarch.c: Re-generate.
11725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11726 * x86-64-tdep.h: Update.
11727 * x86-64-tdep.c (x86_64_init_abi): Update.
11728 * v850-tdep.c (v850_gdbarch_init): Update.
11729 * sparc-tdep.c (sparc_gdbarch_init): Update.
11730 * sh-tdep.c (sh_gdbarch_init): Update.
11731 * s390-tdep.c (s390_gdbarch_init): Update.
11732 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11733 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11736 * mips-tdep.c (mips_gdbarch_init): Update.
11737 * mcore-tdep.c (mcore_gdbarch_init): Update.
11738 * m68k-tdep.c (m68k_gdbarch_init): Update.
11739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11740 * ia64-tdep.c (ia64_gdbarch_init): Update.
11741 * i386-tdep.c (i386_gdbarch_init): Update.
11742 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11743 * hppa-tdep.c (hppa_gdbarch_init): Update.
11744 * h8300-tdep.c (h8300_gdbarch_init): Update.
11745 * frv-tdep.c (frv_gdbarch_init): Update.
11746 * cris-tdep.c (cris_gdbarch_init): Update.
11747 * avr-tdep.c (avr_gdbarch_init): Update.
11748 * arm-tdep.c (arm_gdbarch_init): Update.
11749 * alpha-tdep.c (alpha_gdbarch_init): Update.
11750 * sh-tdep.c (sh_init_extra_frame_info): Update.
11751 (sh64_init_extra_frame_info): Update.
11752 * ns32knbsd-nat.c (frame_num_args): Update.
11753 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11754 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11755 (xstormy16_frame_chain_valid): Update.
11756 * vax-tdep.c (vax_saved_pc_after_call): Update.
11757 * v850-tdep.c (v850_frame_chain): Update.
11758 (v850_pop_frame): Update.
11759 (v850_init_extra_frame_info): Update.
11760 * sparc-tdep.c (setup_arbitrary_frame): Update.
11761 * ns32k-tdep.c (umax_frame_num_args): Update.
11762 * s390-tdep.c (s390_pop_frame_regular): Update.
11763 * mn10300-tdep.c (mn10300_frame_chain): Update.
11764 (mn10300_pop_frame_regular): Update.
11765 (mn10300_init_extra_frame_info): Update.
11766 * mips-tdep.c (mips_init_frame_pc_first): Update.
11767 (mips_frame_chain): Update.
11768 (mips_pop_frame): Update.
11769 * mcore-tdep.c (mcore_frame_chain): Update.
11770 (mcore_pop_frame): Update.
11771 (mcore_init_extra_frame_info): Update.
11772 * arch-utils.c (init_frame_pc_default): Update.
11773 * m68k-tdep.c (isi_frame_num_args): Update.
11774 (delta68_frame_num_args): Update.
11775 (news_frame_num_args): Update.
11776 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11777 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11778 (alpha_frame_chain): Update.
11779 (alpha_pop_frame): Update.
11780 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11781 (hppa_init_extra_frame_info): Update.
11782 (hppa_frame_chain): Update.
11783 (hppa_frame_chain_valid): Update.
11784 * cris-tdep.c (cris_init_extra_frame_info): Update.
11785 * avr-tdep.c (avr_init_extra_frame_info): Update.
11786 * arm-tdep.c (arm_frame_chain_valid): Update.
11787 (arm_init_extra_frame_info): Update.
11788 (arm_pop_frame): Update.
11789 * frame.c (frame_pc_unwind): Update.
11790 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11791 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11792 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11793 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11794 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11795 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11796
7a25a7c1
AC
117972003-03-12 Andrew Cagney <cagney@redhat.com>
11798
11799 Eliminate the need for POP_FRAME.
11800 * frame.c (do_frame_unwind_register): New function.
11801 (frame_pop): When no POP_FRAME, pop the frame using register
11802 unwind and a scratch regcache.
11803 (frame_saved_regs_pop): Delete function.
11804 (trad_frame_unwinder): Update.
11805 * d10v-tdep.c (d10v_frame_pop): Delete function.
11806 (d10v_frame_unwind): Update.
11807 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11808 (sentinel_frame_unwinder): Update.
11809 * dummy-frame.c (dummy_frame_pop): Delete function.
11810 (dummy_frame_unwind): Update.
11811 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11812 (struct frame_unwind): Update.
11813
2f38ef89
KB
118142003-03-11 Kevin Buettner <kevinb@redhat.com>
11815
11816 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11817 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11818 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11819 Do range checks on register number obtained from debugging info.
11820 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11821 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11822 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11823 mapping function.
11824 (do_fp_register_row): Fix typo which caused double type to be
11825 used when attempting to unpack a float.
11826
552f4abf
JB
118272003-03-11 J. Brobecker <brobecker@gnat.com>
11828
11829 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11830
e0d2ae16
AC
118312003-03-11 Andrew Cagney <cagney@redhat.com>
11832
11833 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11834 frame. Problem found by Corinna Vinschen.
11835
ddbfdd06
PM
118362003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11837
11838 * doublest.c (floatformat_from_length): Accept also
11839 the real size of 'long double' type.
11840
088b2ddc 118412003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11842
088b2ddc 11843 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11844 * breakpoint.c (bpstat_copy): Copy the command lines as well
11845 as the old value, to match what is freed in bpstat_clear.
11846
f56f77c1
DC
118472003-03-10 David Carlton <carlton@math.stanford.edu>
11848
11849 * minsyms.c (add_minsym_to_hash_table): Replace
11850 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11851 (compare_minimal_symbols, compact_minimal_symbols)
11852 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11853 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11854 of DEPRECATED_SYMBOL_MATCHES_NAME.
11855 (lookup_minimal_symbol_solib_trampoline): Ditto.
11856
5602984a
AC
118572003-03-10 Andrew Cagney <cagney@redhat.com>
11858
11859 * regcache.h (regcache_cooked_read_ftype): Define.
11860 (regcache_save, regcache_restore): Add a cooked_read parameter.
11861 * regcache.c (regcache_save, regcache_restore): Update.
11862 (do_cooked_read): New function.
11863 (regcache_cpy): Pass do_cooked_read to regcache_save and
11864 regcache_restore.
11865
8bedc050
AC
118662003-03-10 Andrew Cagney <cagney@redhat.com>
11867
11868 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11869 * gdbarch.h, gdbarch.c: Re-generate.
11870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11871 * x86-64-tdep.h: Update.
11872 * x86-64-tdep.c (x86_64_init_abi): Update.
11873 * v850-tdep.c (v850_gdbarch_init): Update.
11874 * sparc-tdep.c (sparc_gdbarch_init): Update.
11875 * sh-tdep.c (sh_gdbarch_init): Update.
11876 * s390-tdep.c (s390_gdbarch_init): Update.
11877 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11878 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11881 * mips-tdep.c (mips_gdbarch_init): Update.
11882 * mcore-tdep.c (mcore_gdbarch_init): Update.
11883 * m68k-tdep.c (m68k_gdbarch_init): Update.
11884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11885 * ia64-tdep.c (ia64_gdbarch_init): Update.
11886 * i386-tdep.c (i386_gdbarch_init): Update.
11887 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11888 * hppa-tdep.c (hppa_gdbarch_init): Update.
11889 * h8300-tdep.c (h8300_gdbarch_init): Update.
11890 * frv-tdep.c (frv_gdbarch_init): Update.
11891 * cris-tdep.c (cris_gdbarch_init): Update.
11892 * avr-tdep.c (avr_gdbarch_init): Update.
11893 * arm-tdep.c (arm_gdbarch_init): Update.
11894 * alpha-tdep.c (alpha_gdbarch_init): Update.
11895 * sh-tdep.c (sh_init_extra_frame_info): Update.
11896 (sh64_init_extra_frame_info): Update.
11897 * ns32knbsd-nat.c (frame_num_args): Update.
11898 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11899 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11900 (xstormy16_frame_chain_valid): Update.
11901 * vax-tdep.c (vax_saved_pc_after_call): Update.
11902 * v850-tdep.c (v850_frame_chain): Update.
11903 (v850_pop_frame): Update.
11904 (v850_init_extra_frame_info): Update.
11905 * sparc-tdep.c (setup_arbitrary_frame): Update.
11906 * ns32k-tdep.c (umax_frame_num_args): Update.
11907 * s390-tdep.c (s390_pop_frame_regular): Update.
11908 * mn10300-tdep.c (mn10300_frame_chain): Update.
11909 (mn10300_pop_frame_regular): Update.
11910 (mn10300_init_extra_frame_info): Update.
11911 * mips-tdep.c (mips_init_frame_pc_first): Update.
11912 (mips_frame_chain): Update.
11913 (mips_pop_frame): Update.
11914 * mcore-tdep.c (mcore_frame_chain): Update.
11915 (mcore_pop_frame): Update.
11916 (mcore_init_extra_frame_info): Update.
11917 * arch-utils.c (init_frame_pc_default): Update.
11918 * m68k-tdep.c (isi_frame_num_args): Update.
11919 (delta68_frame_num_args): Update.
11920 (news_frame_num_args): Update.
11921 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11922 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11923 (alpha_frame_chain): Update.
11924 (alpha_pop_frame): Update.
11925 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11926 (hppa_init_extra_frame_info): Update.
11927 (hppa_frame_chain): Update.
11928 (hppa_frame_chain_valid): Update.
11929 * cris-tdep.c (cris_init_extra_frame_info): Update.
11930 * avr-tdep.c (avr_init_extra_frame_info): Update.
11931 * arm-tdep.c (arm_frame_chain_valid): Update.
11932 (arm_init_extra_frame_info): Update.
11933 (arm_pop_frame): Update.
11934 * frame.c (frame_pc_unwind): Update.
11935 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11936 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11937 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11938 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11939 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11940 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11941
12cc2063
AC
119422003-03-10 Andrew Cagney <cagney@redhat.com>
11943
11944 * gdbarch.sh (gdbarch_unwind_pc): New method.
11945 * gdbarch.h, gdbarch.c: Regenerate.
11946 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11947 but use read_pc and FRAME_SAVED_PC as fall backs.
11948 (frame_saved_regs_pc_unwind): Delete function.
11949 (trad_frame_unwinder): Update.
11950 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11951 (struct frame_unwind): Update.
11952 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11953 (dummy_frame_unwind): Update.
11954 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11955 (sentinel_frame_unwinder): Update.
11956 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11957 (d10v_frame_unwind): Update.
11958 (d10v_unwind_pc): New function.
11959 (d10v_gdbarch_init): Set unwind_pc.
11960
ef840a37
AC
119612003-03-10 Andrew Cagney <cagney@redhat.com>
11962
a2ce2e56
AC
11963 * gdbarch.h: Re-generate.
11964
ef840a37
AC
11965 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11966 PC.
11967 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11968 the PC register.
11969
08f3424b
MK
119702003-03-08 Mark Kettenis <kettenis@gnu.org>
11971
11972 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11973
1248ede2
AC
119742003-03-08 Andrew Cagney <cagney@redhat.com>
11975
11976 * cli-out.c: Update copyright.
11977 (cli_out_data): Define typedef. Use instead of ui_out_data.
11978
f49bacc8
AC
119792003-03-08 Andrew Cagney <cagney@redhat.com>
11980
11981 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11982 the result.
11983
9b05f993
AC
119842003-03-07 Andrew Cagney <cagney@redhat.com>
11985
11986 * gdbarch.sh: Don't generate two macro definitions when an
11987 undefined macro taking no arguments.
11988 * gdbarch.h: Regenerate.
8ffd9b1b 11989
166f4c7b
ML
119902002-03-07 Michal Ludvig <mludvig@suse.cz>
11991
11992 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11993 (x86_64_unwind_dummy_id): New functions.
11994 (x86_64_init_abi): Register these two new functions.
11995
6d686a84
ML
119962003-03-07 Michal Ludvig <mludvig@suse.cz>
11997
11998 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11999 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12000 separate function.
12001 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12002
6314f104
AC
120032003-03-05 Andrew Cagney <cagney@redhat.com>
12004
12005 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12006 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12007 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12008 to use unwind_dummy_id when a dummy frame.
12009 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12010 predicate.
12011 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12012
ceea5145
AC
120132003-03-05 Andrew Cagney <cagney@redhat.com>
12014
12015 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12016 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12017 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12018 values.
12019
0d843116
AC
120202003-03-05 Andrew Cagney <cagney@redhat.com>
12021
12022 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12023 (struct d10v_unwind_cache): Delete field "frameless". Replace
12024 "next_addr" with "sp_offset". Add "r11_offset".
12025 (d10v_frame_unwind_cache): Update.
12026 (prologue_find_regs): Update. When "mv r11, sp", save the
12027 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12028 RN was saved in r11_offset.
12029
b2579786
AC
120302003-03-05 Andrew Cagney <cagney@redhat.com>
12031
12032 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12033 cached PC value in the next frame.
12034
218e5956
AC
120352003-03-05 Andrew Cagney <cagney@redhat.com>
12036
12037 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12038 "id_unwind_cache" with "id".
12039 (frame_id_unwind): Delete declaration.
12040 * frame.c (frame_id_unwind): Delete function.
12041 (get_prev_frame): Call the frame id unwind method directly. Store
12042 the returned next frame's ID value in NEXT_FRAME. Note that there
12043 is a problem with the wrong unwind ID being called with the wrong
12044 unwind cache.
12045
ed363b1b
DJ
120462003-03-05 Daniel Jacobowitz <drow@mvista.com>
12047
12048 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12049
fe1f4a5e
DJ
120502003-03-05 James Ingham <jingham@apple.com>
12051 Daniel Jacobowitz <drow@mvista.com>
12052
12053 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12054 (auto_cp_abi): New variable.
12055 (current_cp_abi, num_cp_abis): Make static.
12056 (CP_ABI_MAX): Define.
12057 (cp_abis): Turn into an array.
12058 (value_virtual_fn_field): Fix formatting.
12059 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12060 takes a pointer.
12061 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12062 (list_cp_abis, _initialize_cp_abi): New functions.
12063 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12064 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12065 switch_to_cp_abi. Update prototype for register_cp_abi.
12066 * Makefile.in (cp-abi.o): Update dependencies.
12067 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12068 instead of switch_to_cp_abi.
12069 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12070 register_cp_abi.
12071 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12072 register_cp_abi.
12073 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12074
e4adbba9
DJ
120752003-03-05 Daniel Jacobowitz <drow@mvista.com>
12076
12077 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12078 * dwarf2loc.c: Include "regcache.h".
12079 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12080 register_size.
12081 * Makefile.in (dwarf2loc.o): Update dependencies.
12082
91ccbfc1
TR
120832003-03-04 Theodore A. Roth <troth@openavr.org>
12084
12085 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12086 number of io registers reported by remote target is not a multiple of
12087 step.
12088
3d4e8fd2
DC
120892003-03-04 David Carlton <carlton@math.stanford.edu>
12090
12091 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12092 (lookup_symbol_aux_psymtabs): Update call to
12093 lookup_partial_symbol.
12094 (lookup_transparent_type, find_main_psymtab)
12095 (make_symbol_overload_list): Ditto.
12096
ed42d87b
KH
120972003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12098
12099 * MAINTAINERS (Write after approval): Update my email address.
12100
a0ed5532
AC
121012003-03-03 Andrew Cagney <cagney@redhat.com>
12102
12103 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12104 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12105 predicate. Replace MAX_REGISTER_RAW_SIZE.
12106 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12107 MAX_REGISTER_VIRTUAL_SIZE.
12108 * regcache.c (legacy_max_register_raw_size): New function.
12109 (legacy_max_register_virtual_size): New function.
12110 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12111 (MAX_REGISTER_RAW_SIZE): Define.
12112 (legacy_max_register_raw_size): Declare.
12113 (legacy_max_register_virtual_size): Declare.
12114 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12115 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12116 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12117 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12118 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12119 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12120 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12121 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12122 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12124 * vax-tdep.c (vax_gdbarch_init): Update.
12125 * v850-tdep.c (v850_gdbarch_init): Update.
12126 * sparc-tdep.c (sparc_gdbarch_init): Update.
12127 * sh-tdep.c (sh_gdbarch_init): Update.
12128 * s390-tdep.c (s390_gdbarch_init): Update.
12129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12130 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12131 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12132 * mips-tdep.c (mips_gdbarch_init): Update.
12133 * mcore-tdep.c (mcore_gdbarch_init): Update.
12134 * m68k-tdep.c (m68k_gdbarch_init): Update.
12135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12136 * ia64-tdep.c (ia64_gdbarch_init): Update.
12137 * i386-tdep.c (i386_gdbarch_init): Update.
12138 * hppa-tdep.c (hppa_gdbarch_init): Update.
12139 * h8300-tdep.c (h8300_gdbarch_init): Update.
12140 * frv-tdep.c (frv_gdbarch_init): Update.
12141 * cris-tdep.c (cris_gdbarch_init): Update.
12142 * avr-tdep.c (avr_gdbarch_init): Update.
12143 * arm-tdep.c (arm_gdbarch_init): Update.
12144 * alpha-tdep.c (alpha_gdbarch_init): Update.
12145 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12146 max_register_raw_size or max_register_virtual_size.
12147
8e437497
DC
121482003-03-03 David Carlton <carlton@math.stanford.edu>
12149
12150 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12151 SYMBOL_MATCHES_NAME, add comment.
12152 (SYMBOL_MATCHES_NATURAL_NAME): New.
12153 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12154 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12155 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12156 * symtab.c (lookup_partial_symbol): Use
12157 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12158 unhelpful comment.
12159 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12160 SYMBOL_MATCHES_NAME.
12161 Fix for PR c++/33.
12162
25120b0d
DC
121632003-03-03 David Carlton <carlton@math.stanford.edu>
12164
12165 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12166 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12167 by regexp matching against SYMBOL_NATURAL_NAME.
12168
78a11fb4
DC
121692003-03-03 David Carlton <carlton@math.stanford.edu>
12170
12171 * linespec.c (find_method): Extract code into collect_methods.
12172 (collect_methods): New.
12173
645dd519
MK
121742003-03-02 Mark Kettenis <kettenis@gnu.org>
12175
b4700d91
MK
12176 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12177 get_frame_base.
12178
645dd519
MK
12179 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12180 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12181
0aa7e1aa
SC
121822003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12183
8ffd9b1b 12184 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12185 and not regnum when summing the size of all registers up to regnum.
12186
f30ee0bc
AC
121872003-03-01 Andrew Cagney <cagney@redhat.com>
12188
12189 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12190 FRAME_INIT_SAVED_REGS.
12191 * gdbarch.h, gdbarch.c: Regenerate.
12192 * stack.c (frame_info): Update.
12193 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12194 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12195 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12196 * ns32k-tdep.c (ns32k_pop_frame): Update.
12197 * mips-tdep.c (mips_pop_frame): Update.
12198 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12199 * ia64-tdep.c (ia64_frame_chain): Update.
12200 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12201 (ia64_frameless_function_invocation): Update.
12202 (ia64_init_extra_frame_info): Update.
12203 (ia64_pop_frame_regular): Update.
12204 * frame.h (struct frame_info): Update comment.
12205 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12206 * frame.c (frame_saved_regs_register_unwind): Update.
12207 (frame_saved_regs_register_unwind): Update.
12208 (deprecated_generic_get_saved_register): Update.
12209 * cris-tdep.c: Update comment.
12210 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12211 Rename macro.
12212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12213 * x86-64-tdep.c (x86_64_init_abi): Update.
12214 * vax-tdep.c (vax_gdbarch_init): Update.
12215 * v850-tdep.c (v850_gdbarch_init): Update.
12216 * sparc-tdep.c (sparc_gdbarch_init): Update.
12217 * sh-tdep.c (sh_gdbarch_init): Update.
12218 * s390-tdep.c (s390_gdbarch_init): Update.
12219 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12220 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12221 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12222 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12223 * mips-tdep.c (mips_gdbarch_init): Update.
12224 * mcore-tdep.c (mcore_gdbarch_init): Update.
12225 * m68k-tdep.c (m68k_gdbarch_init): Update.
12226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12227 * ia64-tdep.c (ia64_gdbarch_init): Update.
12228 * i386-tdep.c (i386_gdbarch_init): Update.
12229 * frv-tdep.c (frv_gdbarch_init): Update.
12230 * avr-tdep.c (avr_gdbarch_init): Update.
12231 * arm-tdep.c (arm_gdbarch_init): Update.
12232 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12233
42fa7c0f
AC
122342003-03-01 Andrew Cagney <cagney@redhat.com>
12235
12236 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12237 option enum and switch. When no windows, set the interpreter to
12238 INTERP_CONSOLE.
8ffd9b1b 12239
49c7e338
AC
122402003-03-01 Andrew Cagney <cagney@redhat.com>
12241
12242 * main.c (captured_main): Replace magic option characters with an
12243 enum.
12244
e9582e71
AC
122452003-03-01 Andrew Cagney <cagney@redhat.com>
12246
12247 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12248 INIT_EXTRA_FRAME_INFO.
12249 * gdbarch.h, gdbarch.c: Regenerate.
12250 * arm-tdep.c: Update comments.
12251 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12252 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12253 * frame.h, avr-tdep.c: Ditto.
12254 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12255 (create_new_frame, legacy_get_prev_frame): Ditto.
12256 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12257 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12259 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12260 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12261 * v850-tdep.c (v850_gdbarch_init): Ditto.
12262 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12263 * sh-tdep.c (sh_gdbarch_init): Ditto.
12264 * s390-tdep.c (s390_gdbarch_init): Ditto.
12265 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12266 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12267 * mips-tdep.c (mips_gdbarch_init): Ditto.
12268 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12269 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12270 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12271 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12272 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12274 * frv-tdep.c (frv_gdbarch_init): Ditto.
12275 * cris-tdep.c (cris_gdbarch_init): Ditto.
12276 * avr-tdep.c (avr_gdbarch_init): Ditto.
12277 * arm-tdep.c (arm_gdbarch_init): Ditto.
12278 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12279 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12280
35cac7cf
AC
122812003-03-01 Andrew Cagney <cagney@redhat.com>
12282
12283 * gdbarch.sh (register_type): New function with predicate.
12284 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12285 * gdbarch.h, gdbarch.c: Re-generate.
12286 * arch-utils.c (generic_register_byte): Use generic_register_size.
12287 (generic_register_size): When available, use
12288 gdbarch_register_type.
12289 * regcache.c (init_regcache_descr): When available, initialize the
12290 register type array using gdbarch_register_type. If the
12291 architecture supplies gdbarch_register_type, do not use the legacy
12292 regcache layout.
12293 * d10v-tdep.c (d10v_register_type): Replace
12294 d10v_register_virtual_type.
12295 (d10v_gdbarch_init): Set register_type instead of
12296 register_virtual_type.
12297
7b83296f
AC
122982003-03-01 Andrew Cagney <cagney@redhat.com>
12299
12300 * Makefile.in (ax-gdb.o): Update dependencies.
12301 * ax-gdb.c: Include "regcache.h".
12302 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12303 * findvar.c (value_of_register): Ditto.
12304 * infcmd.c (default_print_registers_info): Ditto.
12305
eadc1c87
MK
123062003-03-01 Mark Kettenis <kettenis@gnu.org>
12307
12308 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12309 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12310
14143612
MK
123112003-03-01 Mark Kettenis <kettenis@gnu.org>
12312
12313 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12314 of STREQ.
12315
a55cc764
DJ
123162003-02-28 Daniel Jacobowitz <drow@mvista.com>
12317
12318 * Makefile.in (dwarf2loc.o): Update dependencies.
12319 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12320 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12321 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12322 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12323 (locexpr_tracepoint_var_ref): New function.
12324 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12325
08a617da
AC
123262003-02-28 Andrew Cagney <cagney@redhat.com>
12327
12328 * regcache.c (register_size): New function.
12329 * regcache.h (register_size): Declare
12330 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12331 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12332
4224873a
DC
123332003-02-28 David Carlton <carlton@math.stanford.edu>
12334
12335 * linespec.c (decode_compound): Extract code into find_method.
12336 (find_method): New.
12337
ccdc5d7f
JB
123382003-02-28 J. Brobecker <brobecker@gnat.com>
12339
12340 * Makefile.in: Add rules to build and link in observer.o.
12341
974e8ced
JB
123422003-02-27 J. Brobecker <brobecker@gnat.com>
12343
12344 * observer.c: Minor comments edits.
12345
7a28f973
JB
123462003-02-27 J. Brobecker <brobecker@gnat.com>
12347
12348 * observer.h, observer.c: New file.
12349
27cddce2
AC
123502003-02-27 Andrew Cagney <cagney@redhat.com>
12351
12352 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12353
b94a41a1
SC
123542003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12355
12356 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12357 (M6812_OP_STS_EXT): Likewise.
12358 (m6811_prologue): Use the above to recognize prologue.
12359 (m6812_prologue): Likewise.
12360
c8be8951
DC
123612003-02-27 David Carlton <carlton@math.stanford.edu>
12362
12363 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12364 SYMBOL_PRINT_NAME.
12365 (compare_psymbols): Ditto.
12366 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12367
d05bb1fc
MS
123682003-02-27 Michael Snyder <msnyder@redhat.com>
12369
4e845cd3
MS
12370 * f-lang.c (build_fortran_types): New function.
12371 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12372 * doublest.c (extract_floating): Fix warning text.
12373
f3824013
AC
123742003-02-27 Andrew Cagney <cagney@redhat.com>
12375
12376 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12377 predicate. Replaces PUSH_DUMMY_FRAME.
12378 * gdbarch.h, gdbarch.c: Regnerate.
12379 * valops.c (hand_function_call): Update. Call
12380 generic_push_dummy_frame directly.
12381 * vax-tdep.c (vax_gdbarch_init): Update.
12382 * sparc-tdep.c (sparc_gdbarch_init): Update.
12383 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12384 * m68k-tdep.c (m68k_gdbarch_init): Update.
12385 * hppa-tdep.c (hppa_gdbarch_init): Update.
12386 * alpha-tdep.c (alpha_gdbarch_init): Update.
12387 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12388 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12389 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12391 push_dummy_frame to generic_push_dummy_frame.
12392 * v850-tdep.c (v850_gdbarch_init): Ditto.
12393 * sh-tdep.c (sh_gdbarch_init): Ditto.
12394 * s390-tdep.c (s390_gdbarch_init): Ditto.
12395 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12396 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12397 * mips-tdep.c (mips_gdbarch_init): Ditto.
12398 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12400 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12401 * i386-tdep.c (i386_gdbarch_init): Ditto.
12402 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12403 * frv-tdep.c (frv_gdbarch_init): Ditto.
12404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12405 * cris-tdep.c (cris_gdbarch_init): Ditto.
12406 * avr-tdep.c (avr_gdbarch_init): Ditto.
12407 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12408
ad188201
KB
124092003-02-26 Kevin Buettner <kevinb@redhat.com>
12410
12411 * mips-tdep.c (show_mips_abi): New function.
12412 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12413 command ``show mips abi''.
12414
6b37567a 124152003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12416
6b37567a 12417 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12418 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12419 more sline entries have been seen for the function.
12420
d3e0a5bf
MC
124212003-02-26 Michael Chastain <mec@shout.net>
12422
12423 * configure: Regenerate with autoconf 000227.
12424
18972eea
MC
124252003-02-26 Michael Chastain <mec@shout.net>
12426
12427 Close PR build/660.
12428 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12429 for old libc5/glibc.
12430 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12431
0bbde931
KW
124322003-02-26 Kris Warkentin <kewarken@qnx.com>
12433
12434 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12435 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12436
27ca5dad
MC
124372003-02-26 Michael Chastain <mec@shout.net>
12438
12439 * configure.in: New variable HAVE_UINTPTR_T.
12440 * configure, config.in: Regenerated.
12441
6f88d630
DJ
124422003-02-26 Daniel Jacobowitz <drow@mvista.com>
12443
12444 Fix PR build/1097.
12445 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12446
b14185ce
AC
124472003-02-25 Andrew Cagney <cagney@redhat.com>
12448
12449 * frame.c (get_prev_frame): Add comment on check for
12450 inside_entry_func. Only check for inside_entry_file when not a
12451 dummy and not a sentinel. Check that the new frame is not inner
12452 to the old frame.
12453
ac2bd0a9
AC
124542003-02-25 Andrew Cagney <cagney@redhat.com>
12455
12456 * frame.c (frame_debug): New variable.
12457 (_initialize_frame): Add "set/show debug frame" command.
12458 (get_prev_frame): When frame_debug, print reason why unwind
12459 failed.
12460
b18a0fd2
MC
124612003-02-25 Michael Chastain <mec@shout.net>
12462
12463 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12464 to avoid uintptr_t definition problems.
12465
22abf04a
DC
124662003-02-25 David Carlton <carlton@math.stanford.edu>
12467
12468 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12469 (SYMBOL_LINKAGE_NAME): Ditto.
12470 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12471 SYMBOL_LINKAGE_NAME.
12472 (struct general_symbol_info): Expand comment.
12473 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12474 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12475 (SYMBOL_MATCHES_REGEXP): Ditto.
12476 * symtab.c (symbol_natural_name): New function.
12477 * objfiles.h: Replace all uses of SYMBOL_NAME by
12478 DEPRECATED_SYMBOL_NAME.
12479 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12480 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12481 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12482 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12483 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12484 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12485 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12486 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12487 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12488 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12489 * ada-exp.y: Ditto.
12490 * ada-exp.y: Update copyright.
12491 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12492 * cp-valprint.c: Ditto.
12493
1a5848f6
JJ
124942003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12495
12496 * infptrace.c (detach): Do not flag error if ptrace detach fails
12497 and errno is set to ESRCH.
12498
7343d46a
AC
124992003-02-24 Andrew Cagney <cagney@redhat.com>
12500
12501 * infptrace.c (udot_info): Change type of udot_off to long. Use
12502 paddr when printing udot_off's value.
12503
49fa1dc2
DC
125042003-02-24 David Carlton <carlton@math.stanford.edu>
12505
12506 * symtab.c (make_symbol_overload_list): Only read in partial
12507 symtabs containing a matching partial symbol.
12508
0fe19209
DC
125092003-02-24 David Carlton <carlton@math.stanford.edu>
12510
12511 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12512 do the comparison, not strcmp.
12513 * symfile.c (compare_psymbols): Ditto.
12514 * defs.h: Declare strcmp_iw_ordered.
12515 * utils.c (strcmp_iw_ordered): New function.
12516
8e3ee7b5
JB
125172003-02-24 Jim Blandy <jimb@redhat.com>
12518
12519 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12520 support, shared libs): Remove my name from here, to better reflect
12521 reality.
12522
7df1a324
KW
125232003-02-24 Kris Warkentin <kewarken@qnx.com>
12524
12525 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12526 (target_ops): Add to_have_continuable_watchpoint.
12527 * target.c (update_current_target): Add INHERIT line for
12528 to_have_continuable_watchpoint.
12529 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12530 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12531 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12532 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12533
d1c76907
EZ
125342003-02-24 Elena Zannoni <ezannoni@redhat.com>
12535
12536 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12537 maintainership.
12538
2610b0bf
KW
125392003-02-24 Kris Warkentin <kewarken@qnx.com>
12540
f46169db
KW
12541 * solib.c (solib_open): Call target defined search function after
12542 failing with solib-search-path.
12543 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12544 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12545
9a3c34fe
KW
125462003-02-24 Kris Warkentin <kewarken@qnx.com>
12547
f46169db 12548 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12549
2417dd25
SC
125502003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12551
12552 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12553
b631436b
SC
125542003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12555
12556 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12557 (m68hc11_add_reggroups): New function.
12558 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12559 (m68hc11_gdbarch_init): Install the reggroups.
12560 (_initialize_m68hc11_tdep): Initialize them.
12561
0aa8c1e4
JW
125622003-02-21 James E Wilson <wilson@tuliptree.org>
12563
12564 * MAINTAINERS: Update my email address.
12565
50ceaba5
DC
125662003-02-21 David Carlton <carlton@math.stanford.edu>
12567
12568 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12569
4c2df51b
DJ
125702003-02-21 Daniel Jacobowitz <drow@mvista.com>
12571
12572 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12573 * symtab.h: Add opaque declarations of struct axs_value and
12574 struct agent_expr.
12575 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12576 (struct location_funcs): New type.
12577 (struct symbol): Add "loc" to aux_value.
12578 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12579 * dwarf2read.c: Include "dwarf2expr.h".
12580 (dwarf2_symbol_mark_computed): New function.
12581 (read_func_scope): Use it.
12582 (var_decode_location): New function.
12583 (new_symbol): Use it.
12584 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12585
12586 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12587 (dwarf2expr_h, dwarf2loc_h): New variables.
12588 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12589 (dwarf2expr.o, dwarf2loc.o): New rules.
12590 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12591 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12592 LOC_COMPUTED_ARG.
12593 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12594 * m2-exp.y (yylex): Likewise.
12595 * printcmd.c (address_info, print_frame_args): Likewise.
12596 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12597 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12598 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12599 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12600 * symtab.c (lookup_block_symbol): Likewise.
12601
5784d15e
AF
126022003-02-20 Adam Fedor <fedor@gnu.org>
12603
12604 * symtab.h: Remove objc_specific struct
12605 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12606 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12607 Have language_objc use cplus_specific struct.
12608
d4cad8db
TT
126092003-02-20 Tom Tromey <tromey@redhat.com>
12610
12611 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12612 TYPE_NAME, when printing a String value. PR java/1075.
12613
2f9a90b4
AF
126142003-02-20 Adam Fedor <fedor@gnu.org>
12615
d38074a8 12616 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12617 * objc-lang.c (find_methods): Make static.
2f9a90b4 12618
6f17862b
CF
126192003-02-20 Christopher Faylor <cgf@redhat.com>
12620
12621 * win32-nat.c (get_image_name): Check return value from
12622 ReadProcessMemory.
12623 (child_xfer_memory): Ditto.
12624
715d1656
AO
126252003-02-20 Alexandre Oliva <aoliva@redhat.com>
12626
12627 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12628 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12629 '${exec_prefix}' (in addition to the expansion thereof) as
12630 relocatable.
12631 * configure: Rebuilt.
12632
b1262a02
DC
126332003-02-20 David Carlton <carlton@math.stanford.edu>
12634
12635 * symtab.c (search_symbols): Revert the search_symbols part of my
12636 2002-12-23 patch. Add comment.
12637
7134143f
DJ
126382002-02-20 Daniel Jacobowitz <drow@mvista.com>
12639
12640 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12641 * dbxread.c (elfstab_build_psymtabs): Don't call
12642 install_minimal_symbols.
12643 (stabsect_build_psymtabs): Likewise.
12644 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12645 earlier.
12646 * somread.c (som_symfile_read): Call install_minimal_symbols
12647 and do_cleanups earlier.
12648 * nlmread.c (nlm_symfile_read): Likewise.
12649 * mdebugread.c (elfmdebug_build_psymtabs): Call
12650 install_minimal_symbols and make appropriate cleanups.
12651
cf466558
KB
126522003-02-20 Kevin Buettner <kevinb@redhat.com>
12653
12654 * solib.c (reload_shared_libraries): New function.
12655 (_initialize_solib): Add callbacks for ``set solib-search-path''
12656 and ``set solib-absolute-prefix''.
12657
de5ad195
DC
126582003-02-20 David Carlton <carlton@math.stanford.edu>
12659
12660 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12661 expand comment.
12662 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12663 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12664 * ada-typeprint.c (ada_typedef_print): Ditto.
12665 * ax-gdb.c (gen_var_ref): Ditto.
12666 * breakpoint.c (print_one_breakpoint): Ditto.
12667 * buildsym.c (finish_block): Ditto.
12668 * c-valprint.c (c_val_print): Ditto.
12669 * expprint.c (print_subexp): Ditto.
12670 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12671 * infcmd.c (jump_command): Ditto.
12672 * linespec.c (decode_line_2, decode_compound): Ditto.
12673 * maint.c (maintenance_translate_address): Ditto.
12674 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12675 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12676 Ditto.
8ffd9b1b
AJ
12677 * p-valprint.c (pascal_val_print): Ditto.
12678 * stabsread.c (define_symbol): Ditto.
de5ad195 12679 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12680 (print_frame_arg_vars, return_command): Ditto.
12681 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12682 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12683 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12684 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12685 (rbreak_command): Ditto.
12686 * tracepoint.c (tracepoints_info): Ditto.
12687 * typeprint.c (typedef_print): Ditto.
12688 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12689 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12690 * ada-typeprint.c: Update Copyright.
12691 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12692 * tracepoint.c, cli/cli-cmds.c: Ditto.
12693
f796e4be
KB
126942003-02-20 Kevin Buettner <kevinb@redhat.com>
12695
12696 * frame.c (generic_unwind_get_saved_register): Make non-static.
12697 * frame.h (generic_unwind_get_saved_register): Declare.
12698 * mips-tdep.c (read_next_frame_reg): Fetch register from
12699 current regcache when frame is NULL.
12700 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12701 that must be NULL.
12702 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12703 instead of frame_register_unwind().
12704
836cc9f4
AC
127052003-02-20 Andrew Cagney <ac131313@redhat.com>
12706
12707 * remote-sim.c (gdbsim_insert_breakpoint)
12708 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12709 code.
12710
501eef12
AC
127112003-02-20 Andrew Cagney <ac131313@redhat.com>
12712
12713 * remote.c (_initialize_remote): Add commands "set/show remote
12714 hardware-watchpoint-limit" and "set/show remote
12715 hardware-breakpoint-limit".
12716 (remote_hw_watchpoint_limit): Initialize to -1.
12717 (remote_hw_breakpoint_limit): Ditto.
12718 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12719
1b6bc7e0
CF
127202003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12721
12722 * coff-pe-read.c: New file - support reading of minimal symbols from a
12723 portable executable using the export table.
12724 * coff-pe-read.h: New file.
12725 * coffread.c: Include coff-pe-read.h.
12726 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12727 debugging symbols found.
12728 * Makefile.in (SFILES): Add coff-pe-read.o.
12729 (coff_pe_read_h): Define.
12730 (COMMON_OBS): Add coff-pe-read.o.
12731 (coffread.o): Add coff_pe_read_h dependency.
12732 (coff-pe-read.o): New target.
12733
fe898f56
DC
127342003-02-19 David Carlton <carlton@math.stanford.edu>
12735
12736 * Makefile.in (SFILES): Add block.c.
12737 (block_h): New.
12738 (COMMON_OBS): Add block.o.
12739 (block.o): New.
12740 (x86-64-tdep.o): Add $(block_h).
12741 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12742 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12743 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12744 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12745 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12746 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12747 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12748 * value.h: Add opaque declaration for struct block.
12749 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12750 * ada-lang.h: Ditto.
12751 * x86-64-tdep.c: #include "block.h"
12752 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12753 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12754 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12755 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12756 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12757 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12758 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12759 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12760 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12761 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12762 * symtab.c (block_function): Ditto.
12763 (contained_in): Ditto.
12764 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12765 block.h. Add opaque declaration for struct block.
12766 * symtab.h: Move block_function and contained_in declarations to
12767 block.h. Add opaque declarations for struct block, struct
12768 blockvector.
12769 (struct block): Move to block.h.
12770 (struct blockvector): Ditto.
12771 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12772 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12773 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12774 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12775 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12776 Ditto.
12777 * block.c: New file.
12778 * block.h: New file.
12779
173345b5
TR
127802003-02-19 Theodore A. Roth <troth@openavr.org>
12781
12782 * avr-tdep.c (avr_extract_return_value): Remove function.
12783 (avr_store_return_value): Remove function.
12784 (avr_extract_struct_value_address): Remove function.
12785 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12786
338ef23d
AC
127872003-02-19 Andrew Cagney <ac131313@redhat.com>
12788
12789 * rs6000-tdep.c: Include "gdb_assert.h".
12790 (registers_e500): Add "acc" and "spefscr".
12791 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12792 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12793 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12794 really is "r0".
12795 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12796
5412f5f3
KS
127972003-02-18 Keith Seitz <keiths@redhat.com>
12798
12799 * Makefile.in: Add gdbtk-interps.c.
12800
881324eb
KB
128012003-02-18 Kevin Buettner <kevinb@redhat.com>
12802
12803 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12804 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12805
6a2f5abf
AC
128062003-02-18 Andrew Cagney <cagney@redhat.com>
12807
12808 * symtab.h (struct objfile): Add opaque declaration.
12809
54c7009d
EZ
128102003-02-18 Elena Zannoni <ezannoni@redhat.com>
12811
12812 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12813 * dbxread.c (process_one_symbol): Use last_function_start rather
12814 than function_start_offset to find the real beginning of the
12815 current function. The latter is just the text section offset on
12816 some systems, the former is always the real function start.
54c7009d 12817
7ee6d7eb
AC
128182003-02-17 Andrew Cagney <cagney@redhat.com>
12819
12820 * configure.in: Revert ${target} != ${host}.
12821
2846da9b
AC
128222003-02-17 Andrew Cagney <ac131313@redhat.com>
12823
12824 * configure.in (Makefile): Use the test ${target} != ${host},
12825 instead of the absence of the "nm.h" file, to determine of the
12826 configuration non-native.
12827 * configure: Regenerate.
8ffd9b1b 12828
3b27aeea
EZ
128292003-02-14 Elena Zannoni <ezannoni@redhat.com>
12830
fbe586ae 12831 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12832
12833 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12834 conditionalize tui_active test.
12835 (lookup_cmd_1): Ditto.
12836
b0b1c2c0
MK
128372003-02-14 Mark Kettenis <kettenis@gnu.org>
12838
12839 * configure.in: Add check for _etext.
12840 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12841 available.
12842 * config.in, configure: regenerated.
12843
8f05cde5
DJ
128442003-02-14 Daniel Jacobowitz <drow@mvista.com>
12845
12846 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12847
021e7609
AC
128482003-02-14 Andrew Cagney <ac131313@redhat.com>
12849
12850 * main.c (tui_version): Delete variable.
12851 (captured_main): When --tui, set interpreter_p to "tui" instead of
12852 enabling tui_version.
12853 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12854 tui_version.
12855 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12856 * cli/cli-cmds.c (disassemble_command): Ditto.
12857 * defs.h (tui_version): Delete declaration.
12858 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12859 (tui-interp.o): Add rules.
12860 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12861
e325dcec
CF
128622003-02-14 Christopher Faylor <cgf@redhat.com>
12863
36ffb041 12864 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12865 just-loaded dll.
12866
c4f90d87
JM
128672003-02-12 Jason Molenda (jmolenda@apple.com)
12868
fbe586ae
RH
12869 * symmisc.c (print_objfile_statistics): Include information about
12870 the number of psymtabs and symtabs in each object file.
c4f90d87 12871
e46e5ccd
KS
128722003-02-13 Keith R Seitz <keiths@redhat.com>
12873
12874 * main.h (struct captured_main_args): Add interpreter_p.
12875 * main.c (captured_main): Initialize interpreter_p from context.
12876 * gdb.c (main): Set interpreter_p argument.
12877 * Makefile.in (gdb.o): Add dependency for interps.h.
12878
fe97fe9c
AC
128792003-02-12 Andrew Cagney <ac131313@redhat.com>
12880
12881 * event-top.c (cli_command_loop): Delete declaration.
12882 (_initialize_event_loop): Delete function setting event_loop_hook.
12883 * event-top.h (cli_command_loop): Declare. Update copyright.
12884 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12885 * interps.c (current_interp_command_loop): When event_loop_p, call
12886 cli_command_loop.
12887
1cdac4ef
AC
128882003-02-12 Andrew Cagney <ac131313@redhat.com>
12889
12890 * interps.h (interp_command_loop_ftype): Change return type to
12891 void.
12892
48037ead
ML
128932003-02-12 Michal Ludvig <mludvig@suse.cz>
12894
12895 * x86-64-tdep.c (x86_64_extract_return_value)
12896 (x86_64_store_return_value): Use regcache instead of regbuf.
12897 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12898 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12899
033afc63
AC
129002003-02-11 Andrew Cagney <ac131313@redhat.com>
12901
12902 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12903 * aclocal.m4: Regenerate.
12904 * configure: Regenerate.
12905
12906 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12907 TCL_LD_SEARCH_FLAGS.
12908
40d02bca
ML
129092003-02-10 Michal Ludvig <mludvig@suse.cz>
12910
12911 * dwarf2cfi.c: Reindented.
12912
11308a41
AC
129132003-02-09 Andrew Cagney <ac131313@redhat.com>
12914
12915 * interps.c (clear_interpreter_hooks): Convert function definition
12916 to ISO C.
12917
e1c1c0f6
DC
129182003-02-07 David Carlton <carlton@math.stanford.edu>
12919
12920 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12921
ab5d3da6
KB
129222003-02-07 Kevin Buettner <kevinb@redhat.com>
12923
12924 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12925 (struct type): ...to here.
12926 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12927 field.
12928 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12929 (replace_type): Set length on all type variants for a given type.
12930
b8a92b82
AC
129312003-02-07 Andrew Cagney <ac131313@redhat.com>
12932
12933 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12934 <sys/stat.h>.
12935 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12936
5cb316ef
AC
129372003-02-06 Andrew Cagney <ac131313@redhat.com>
12938
2555fe1a
AC
12939 * Makefile.in (symm-nat.o): Update dependencies.
12940 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12941 (lynx-nat.o, ia64-linux-nat.): Ditto.
12942 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12943 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12944 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12945
44270758
AC
12946 * Makefile.in (inflow_h): Define.
12947 (procfs.o, inflow.o, procfs.o): Update dependencies.
12948 * inftarg.c (child_stop): Delete extern declaration of
12949 inferior_process_group. Include "inflow.h".
12950 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12951 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12952 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12953 (our_process_group, inferior_process_group): Extern declarations.
12954
df8f7274
AC
12955 * procfs.c: Include "gdb_assert.h".
12956
5cb316ef
AC
12957 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12958 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12959 * jv-typeprint.c (java_type_print_base): Ditto.
12960 * typeprint.c (typedef_print): Eliminate STREQ.
12961 * cli/cli-script.c (define_command, define_command): Ditto.
12962 * main.c (captured_main): Ditto.
12963 * values.c (lookup_internalvar): Ditto.
12964 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12965 within `if' conditional.
12966 * linespec.c (decode_line_2): Ditto.
12967 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12968 (bfd_openw_with_cleanup): Ditto.
12969
2a28ccea
MK
129702003-02-07 Mark Kettenis <kettenis@gnu.org>
12971
12972 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12973 legacy_extract_return_value and store_return_value to
12974 legacy_return_value.
12975
786b8124
CF
129762003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12977
12978 * win32-nat.c (get_relocated_section_addrs): New function. Find
12979 section load addresses for symbol handling in relocated DLLs.
12980 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12981
b871e4ec
FF
129822003-02-05 Fred Fish <fnf@intrinsity.com>
12983
12984 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12985 '=' and '!='.
12986 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12987 with '&' and '=='.
12988 (angel_RDI_info): Ditto.
12989 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12990 with '&' and '!='.
12991 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12992
4389a95a 129932003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12994 Keith Seitz <keiths@redhat.com>
12995 Elena Zannoni <ezannoni@redhat.com>
12996 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12997
12998 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12999 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13000 (SUBDIR_MI_OBS): Add "mi-interp.o".
13001 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13002 (SFILES): Add "interps.c".
13003 (COMMON_OBS): Add "interps.o".
13004 (interps_h, mi_main_h): Define.
13005 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13006 (mi-main.o, main.o, event-top.o): Update dependencies.
13007 * cli/cli-interp.c: New file.
13008 * interps.h, interps.c: New files.
13009 * top.c: (gdb_init): Don't install the default interpreter, handed
13010 by captured_main.
13011 * main.c: Include "interps.h".
13012 (interpreter_p): Note that it should malloc'ed.
13013 (captured_command_loop): Call current_interp_command_loop.
13014 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13015 xfree and xstrdup when updating interpreter_p. Install the
13016 default interpreter. Add hack to stop mi1's copyright notice
13017 being encoded.
13018 * event-top.h (gdb_setup_readline): Declare.
13019 (gdb_disable_readline): Declare.
13020 * event-top.c: Include "interps.h".
13021 (display_gdb_prompt): Call current_interp_display_prompt_p.
13022 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13023 gdb_stdlog, and gdb_stdtarg.
13024 (_initialize_event_loop): Don't call gdb_setup_readline.
13025 * cli-out.c (cli_out_set_stream): New function.
13026 * cli-out.h (cli_out_set_stream): Declare.
13027
ff3b5810
MK
130282003-02-06 Mark Kettenis <kettenis@gnu.org>
13029
13030 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13031 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13032 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13033 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13034 config/i386/i386v42mp.mt: Removed.
13035
5b729aa5
MK
130362003-02-05 Mark Kettenis <kettenis@gnu.org>
13037
13038 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13039 GDB_OSABI_SOLARIS.
13040
8cc15142
MC
130412003-02-05 Michael Chastain <mec@shout.net>
13042
13043 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13044 2.12.1 and earlier versions.
13045
5aa5d4b9
AC
130462003-02-05 Andrew Cagney <ac131313@redhat.com>
13047
13048 Remove orphaned hosts, targets and files.
13049 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13050 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13051 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13052 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13053 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13054 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13055 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13056 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13057 * config/sparc/tm-sp64sim.h: Delete.
13058 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13059 hosts.
13060 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13061 mips*-dec-mach3* targets.
13062
b68767c1
MC
130632003-02-04 Michael Chastain <mec@shout.net>
13064
13065 * NEWS: Fix typo: sepcifying -> specifying.
13066
5ae7ca1d
MC
130672003-02-04 Michael Chastain <mec@shout.net>
13068
13069 * dwarfread.c: Add documentation on the state of dwarf-1,
13070 looking towards obsoletion.
13071
d08a4280
MC
130722003-02-03 Michael Chastain <mec@shout.net>
13073
13074 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13075 gdb/testsuite/gdb.c++/pr-1023.exp.
13076
e9be73e4
AC
130772003-02-04 Andrew Cagney <ac131313@redhat.com>
13078
13079 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13080 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13081
13082 * utils.c (init_page_info): Delete reference to MPW in comments.
13083 * main.c (captured_main): Delete #ifdef MPW.
13084
05d57f6f
AC
130852003-02-04 Andrew Cagney <ac131313@redhat.com>
13086
8ffd9b1b 13087 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13088 * monitor.c (monitor_expect): Obsolete reference to m32r.
13089 * configure.tgt: Mark m32r-*-elf* as obsolete.
13090 * MAINTAINERS: Mark m32k as obsolete.
13091 * m32r-rom.c: Obsolete file.
13092 * config/m32r/m32r.mt: Obsolete file.
13093 * config/m32r/tm-m32r.h: Obsolete file.
13094 * m32r-stub.c: Obsolete file.
13095 * m32r-tdep.c: Obsolete file.
13096
8b0e5691
AC
130972003-02-04 Andrew Cagney <ac131313@redhat.com>
13098
13099 * NEWS: Mention that the z8k-zilog-none is obsolete.
13100 * MAINTAINERS: Mark z8k as obsolete.
13101 * configure.tgt: Obsolete the z8k-*-coff* target.
13102 * config/z8k/z8k.mt: Obsolete file.
13103 * config/z8k/tm-z8k.h: Obsolete file.
13104 * z8k-tdep.c: Obsolete file.
13105
67f16606
AC
131062003-02-04 Andrew Cagney <ac131313@redhat.com>
13107
13108 * NEWS: Mention that the mn10200-elf is obsolete.
13109 * configure.tgt: Obsolete mn10200-*-* target.
13110 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13111 mention that the mn10200 is obsolete.
13112 * breakpoint.h: Ditto.
13113 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13114 * config/mn10200/mn10200.mt: Obsolete file.
13115 * config/mn10200/tm-mn10200.h: Obsolete file.
13116 * mn10200-tdep.c: Obsolete file.
13117
fd2299bd
AC
131182003-02-04 Andrew Cagney <ac131313@redhat.com>
13119
13120 * MAINTAINERS: Mark h8500 as obsolete.
13121 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13122 * findvar.c (value_from_register): Ditto.
13123 * h8500-tdep.c: Mark file as obsolete.
13124 * config/h8500/h8500.mt: Ditto.
13125 * config/h8500/tm-h8500.h: Ditto.
13126 * NEWS: Mention that h8500 is obsolete.
13127
eb9a305d
DC
131282003-02-04 David Carlton <carlton@math.stanford.edu>
13129
13130 * objfiles.c (allocate_objfile): Always set name. Add comment at
13131 start of function.
13132 * jv-lang.c (get_dynamics_objfile): Add comment.
13133
406fc7fb
DC
131342003-02-04 David Carlton <carlton@math.stanford.edu>
13135
13136 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13137 * printcmd.c (build_address_symbolic): Replace uses of
13138 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13139 SYMBOL_NAME, and asm_demangle.
13140 Update copyright.
13141
93d91629
DC
131422003-02-04 David Carlton <carlton@math.stanford.edu>
13143
13144 * linespec.c (decode_compound): Extract code into
13145 lookup_prefix_sym.
13146 (lookup_prefix_sym): New function.
13147
1c5cb38e
DC
131482003-02-04 David Carlton <carlton@math.stanford.edu>
13149
13150 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13151 FLOAT_COERCION_BADNESS.
13152 * gdbtypes.c (rank_one_type): Replace all uses of
13153 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13154
0cf824c9
JB
131552003-02-04 Jim Blandy <jimb@redhat.com>
13156
13157 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13158 section, let dwarf_macinfo_section point to it, not
13159 dwarf_loc_section.
13160
a2d356b0
DJ
131612003-02-04 Daniel Jacobowitz <drow@mvista.com>
13162
13163 Pointed out by Anton Blanchard <anton@samba.org>.
13164 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13165 (ppc_linux_at_sigtramp_return_path): Use it.
13166
2de7ced7
DJ
131672003-02-04 Daniel Jacobowitz <drow@mvista.com>
13168
13169 * defs.h (streq): Add prototype.
13170 * utils.c (streq): New function.
13171
13172 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13173 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13174 * mdebugread.c (new_symbol): Likewise.
13175 * stabsread.c (define_symbol): Likewise.
13176 * coffread.c (process_coff_symbol): Likewise.
13177 * dwarfread.c (new_symbol): Likewise.
13178
13179 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13180 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13181 here.
13182 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13183 SYMBOL_INIT_DEMANGLED_NAME.
13184 * objfiles.c: Include "hashtab.h".
13185 (allocate_objfile): Call htab_set_functions_ex for the
13186 demangled_names_hash.
13187 (free_objfile): Call htab_delete for the demangled_names_hash.
13188 * objfiles.h (struct htab): Add declaration.
13189 (struct objfile): Add demangled_names_hash.
13190 * symfile.c: Include "hashtab.h".
13191 (reread_symbols): Call htab_delete for the demangled_names_hash.
13192 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13193 SYMBOL_NAME in the bcache.
13194 * symtab.c: Include "hashtab.h". Update comments.
13195 (create_demangled_names_hash, symbol_set_names): New functions.
13196 (symbol_find_demangled_name): New function, broken out from
13197 symbol_init_demangled_names.
13198 (symbol_init_demangled_names): Use it.
13199 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13200 (SYMBOL_SET_NAMES): New macro.
13201 (symbol_set_names): Add prototype.
13202
15831452
JB
132032003-02-03 Jim Blandy <jimb@redhat.com>
13204
13205 Use a single, consistent representation for an empty minimal
13206 symbol table in an objfile.
13207 * objfiles.c (terminate_minimal_symbol_table): New function.
13208 (allocate_objfile): Call it.
13209 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13210 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13211 non-NULL.
15831452
JB
13212 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13213 objfile has minimal symbols, compare minimal_symbol_count to zero,
13214 instead of comparing msymbols with NULL.
13215 * objfiles.c (have_minimal_symbols): Same.
13216 * solib-sunos.c (solib_add_common_symbols): Call
13217 terminate_minimal_symbol_table.
13218 * symfile.c (reread_symbols): Same.
8ffd9b1b 13219
ffc65945
KB
132202003-02-03 Kevin Buettner <kevinb@redhat.com>
13221
13222 * s390-tdep.c (s390_address_class_type_flags)
13223 (s390_address_class_type_flags_to_name)
13224 (s390_address_class_name_to_type_flags): New functions.
13225 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13226 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13227
f211c6d4
MS
132282003-02-03 Michael Snyder <msnyder@redhat.com>
13229
13230 * arm-tdep.c: Fix spell-o in comment.
13231
659b0389
ML
132322003-02-03 Michal Ludvig <mludvig@suse.cz>
13233
13234 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13235 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13236 error messages to contain BFD filename.
659b0389 13237
3b31d625
EZ
132382003-02-02 Elena Zannoni <ezannoni@redhat.com>
13239
997b089a 13240 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13241 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13242 (do_mixed_source_and_assembly): Use
13243 make_cleanup_ui_out_tuple_begin_end and
13244 make_cleanup_ui_out_tuple_begin_end.
13245 (do_mixed_source_and_assembly): Ditto.
13246 * thread.c (do_captured_list_thread_ids): Ditto.
13247 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13248 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13249 ui_out_tuple_end): Delete prototypes.
13250 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13251 ui_out_list_end, ui_out_tuple_end): Delete.
13252
13253 From Kevin Buettner <kevinb@redhat.com>:
13254 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13255 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13256 (do_cleanup_table_end): New functions.
13257 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13258 Use cleanups to invoke_ui_out_tuple_end().
13259 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13260 * cli/cli-setshow.c (cmd_show_list): Use
13261 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13262
5b181d62
AC
132632003-02-02 Andrew Cagney <ac131313@redhat.com>
13264
13265 * frame.c (frame_unwind_register): New function.
13266 (frame_unwind_unsigned_register): Use.
13267 (frame_unwind_signed_register): Use.
13268 (frame_read_register): New function.
13269 * frame.h (frame_unwind_register): Declare.
13270 (frame_read_register): Declare.
13271
13272 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13273 and frame_unwind_register instead of read_memory, write_register
13274 and deprecated_write_register_bytes.
13275
5f601589
AC
132762003-02-02 Andrew Cagney <ac131313@redhat.com>
13277
13278 * frame.h: Note that namelen can be negative.
13279 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13280 NAME's length.
13281
13282 * NEWS: Mention that the d10v's `regs' command is deprecated.
13283 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13284 (d10v_print_registers_info): New function.
13285 (show_regs): Call d10v_print_registers_info.
13286 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13287
6a3fe0a4
MK
132882003-02-02 Mark Kettenis <kettenis@gnu.org>
13289
13290 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13291 lost in the previous patch.
13292
075559bc
AC
132932003-02-01 Andrew Cagney <ac131313@redhat.com>
13294
13295 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13296 * stack.c (print_frame_info_base): Output complete FRAME tuple
13297 for synthesized frames.
075559bc 13298
6789195b
AC
132992003-02-02 Andrew Cagney <ac131313@redhat.com>
13300
13301 * mips-nat.c (zerobuf): Delete.
13302 (fetch_inferior_registers): Alloc local zerobuf.
13303 (fetch_core_registers): Alloc local zerobuf.
13304 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13305 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13306 * thread-db.c (thread_db_store_registers): Ditto.
13307 * sh-tdep.c (sh_do_register): Ditto.
13308 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13309 * remote-sim.c (gdbsim_store_register): Ditto.
13310 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13311 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13312 * monitor.c (monitor_supply_register): Ditto.
13313 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13314 * mips-nat.c (fetch_inferior_registers): Ditto.
13315 * m68klinux-nat.c (fetch_register): Ditto.
13316 * lynx-nat.c (fetch_inferior_registers): Ditto.
13317 (fetch_inferior_registers): Ditto.
13318 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13319 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13320 (hpux_thread_store_registers): Ditto.
13321 * hppah-nat.c (fetch_register): Ditto.
13322 * hppab-nat.c (fetch_register): Ditto.
13323 * hppa-tdep.c (pa_register_look_aside): Ditto.
13324 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13325 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13326
e669114a
AC
133272003-02-01 Andrew Cagney <ac131313@redhat.com>
13328
13329 * gdbarch.sh: Explictly specify all method levels. When a
13330 variable with an empty level, provide a non-multi-arch default.
13331 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13332 * gdbarch.h: Re-generate.
13333 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13334 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13335
9a043c1d
AC
133362003-02-01 Andrew Cagney <ac131313@redhat.com>
13337
13338 * defs.h (host_pointer_to_address): Delete declaration.
13339 (address_to_host_pointer): Delete declaration.
13340 * utils.c (host_pointer_to_address): Delete function.
13341 (address_to_host_pointer): Delete function.
13342 * procfs.c (procfs_address_to_host_pointer): New function.
13343 * procfs.c (proc_set_watchpoint): Use.
13344 (procfs_can_use_hw_breakpoint): Update comments.
13345 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13346 (som_solib_add): Use.
13347 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13348 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13349
7ca9f392
AC
133502003-02-01 Andrew Cagney <ac131313@redhat.com>
13351
94bbfd30
AC
13352 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13353 strlen d_name.
13354
7ca9f392
AC
13355 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13356 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13357 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13358 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13359 (define_symbol): Update.
13360 * symfile.c (generic_load): Remove references to nindy.
13361 * symtab.c: Remove references to nindy.
13362
31a85ea2
AC
133632003-02-01 Andrew Cagney <ac131313@redhat.com>
13364
13365 * infcmd.c (print_float_info): Delete code conditional on
13366 FLOAT_INFO.
13367 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13368 * config/m68k/nm-apollo68b.h: Ditto.
13369 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13370 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13371 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13372
f6e85fc8
MK
133732003-02-01 Mark Kettenis <kettenis@gnu.org>
13374
6015b6a0
MK
13375 * config/i386/tm-i386os9k.h: Removed.
13376
f7a30bdf
MK
13377 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13378 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13379 they're identical to i[3456]86-*-sysv* now.
13380 * config/i386/i386v32.mh: Removed.
13381 * config/i386/xm-i386v32.h: Removed.
13382 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13383
28d52111
MK
13384 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13385
4d3f6bce
MK
13386 * config/i386/i386dgux.mh: Removed.
13387 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13388
f6e85fc8
MK
13389 * configure.in: Fix typo.
13390 * configure: Regenerated.
13391
53955967
DC
133922003-01-31 David Carlton <carlton@math.stanford.edu>
13393
13394 * dwarf2read.c (dwarf2_locate_sections): Set
13395 dwarf_ranges_section.
13396
b1364885
AC
133972003-01-31 Andrew Cagney <ac131313@redhat.com>
13398
8dbb1c65
AC
13399 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13400 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13401
8731e58e
AC
13402 * utils.c: Re-indent.
13403
b1364885
AC
13404 * config/djgpp/fnchange.lst: Delete nindy files.
13405 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13406 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13407 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13408 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13409 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13410 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13411 * Makefile.in (init.c): Remove nindy references.
13412 (saber_gdb): Delete rule.
13413 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13414 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13415 and a68v-nat.c.
13416 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13417 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13418 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13419 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13420 nindy-share/stop.h.
13421 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13422 * saber.suppress: Delete file.
13423
086df311
DJ
134242003-01-31 Daniel Jacobowitz <drow@mvista.com>
13425
13426 * dbxread.c (stabs_data): New static variable.
13427 (fill_symbuf): Support an in-memory buffer for stabs data.
13428 (stabs_seek): New function.
13429 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13430 (read_ofile_symtab): Use stabs_seek.
13431 (elfstab_build_psymtabs): Take an asection* instead of
13432 an offset and size. Relocate the stabs data if necessary.
13433 Save the section* for dbx_psymtab_to_symtab.
13434 * dwarf2read.c: Add section variables for each debug section.
13435 (dwarf2_locate_sections): Fill them in.
13436 (dwarf2_read_section): Take an asection* argument.
13437 Relocate the section contents if necessary.
13438 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13439 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13440 it to dwarf2_read_section.
13441 (dwarf2_build_frame_info): Update callers.
13442 * elfread.c (elf_symfile_read): Update call to
13443 elfstab_build_psymtabs.
13444 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13445 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13446 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13447 * symfile.c (symfile_dummy_outputs): New function.
13448 (symfile_relocate_debug_section): New function.
13449 * symfile.h (symfile_relocate_debug_section): Add prototype.
13450
87d1b352
RH
134512003-01-31 Richard Henderson <rth@redhat.com>
13452
13453 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13454 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13455 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13456 * alpha-tdep.c (alpha_register_name): Add "unique".
13457 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13458 (ALPHA_UNIQUE_REGNUM): New.
13459 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13460
c48861fb
AC
134612003-01-31 Andrew Cagney <ac131313@redhat.com>
13462
13463 * README: Remove reference to Ericsson 1800 monitor.
13464 * Makefile.in (remote-es.o): Delete rule.
13465 (ALLDEPFILES): Delete remote-es.c.
13466 * remote-es.c: Delete file.
13467 * config/m68k/es1800.mt: Delete file.
13468 * config/djgpp/fnchange.lst: Update.
13469 * configure.tgt: Delete m68*-ericsson-* target.
13470
d764a824
AF
134712003-01-31 Adam Fedor <fedor@gnu.org>
13472
13473 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13474 Remove duplicate/shadowing variable of same name.
13475
fe36c4f4
JB
134762003-01-30 Jim Blandy <jimb@redhat.com>
13477
13478 * symfile.c (find_separate_debug_file): Assert that the objfile's
13479 directory name we compute ends with a slash, and then assume that
13480 that's so everywhere we use it.
13481
cb741690
DJ
134822003-01-30 Daniel Jacobowitz <drow@mvista.com>
13483
13484 * valops.c (value_assign): Flush frame cache after stores to memory
13485 also.
13486
96ee5227
AC
134872003-01-30 Andrew Cagney <ac131313@redhat.com>
13488
13489 * Makefile.in (mon960-rom.o): Delete rule.
13490 * mon960-rom.c: Delete file.
13491
7f6104a9
AC
134922003-01-30 Andrew Cagney <ac131313@redhat.com>
13493
13494 * d10v-tdep.c: Include "frame-unwind.h".
13495 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13496 list.
13497 (next_addr, uses_frame): Delete.
13498 (struct d10v_unwind_cache): Define.
13499 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13500 Use info instead of next_addr and uses_frame globals.
13501 (d10v_frame_init_saved_regs): Delete function.
13502 (d10v_init_extra_frame_info): Delete function.
13503 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13504 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13505 init_frame_pc or frame_saved_pc.
13506 (d10v_pop_frame): Delete function.
13507 (do_d10v_pop_frame): Delete function.
13508 (d10v_frame_chain): Delete function.
13509 (d10v_frame_chain_valid): Delete function.
13510 (d10v_frame_pc_unwind): New function.
13511 (d10v_frame_id_unwind): New function.
13512 (saved_regs_unwinder): New function.
13513 (d10v_frame_register_unwind): New function.
13514 (d10v_frame_pop): New function.
13515 (d10v_frame_unwind): New variable.
13516 (d10v_frame_p): New function.
13517 (d10v_frame_saved_pc): Delete function.
13518 * Makefile.in (d10v-tdep.o): Update dependencies.
13519
cad2e848
JB
135202003-01-30 J. Brobecker <brobecker@gnat.com>
13521
13522 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13523 causing some regressions due to a change in the default value
13524 for this macro.
13525
af34e669
DJ
135262003-01-29 Richard Henderson <rth@redhat.com>
13527 Elena Zannoni <ezannoni@redhat.com>
13528 Daniel Jacobowitz <drow@mvista.com>
13529
13530 Fix PR gdb/961.
8ffd9b1b 13531 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13532 variables.
13533 (RANGES_SECTION): New.
13534 (dwarf_ranges_buffer): New variable.
13535 (struct comp_unit_head): Add member "die".
13536 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13537 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13538 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13539 (dwarf2_locate_sections): Likewise.
13540 (dwarf2_build_psymtabs): Read .debug_ranges.
13541 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13542 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13543 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13544 Look for DW_AT_ranges and return the bounding box.
13545
baa93fa6
CF
135462003-01-29 Brian Ford <ford@vss.fsi.com>
13547
13548 * win32-nat.c (cygwin_pid): Removed as unused.
13549 (child_attach): Try fall back to Cygwin pid.
13550
c63f977f
JB
135512003-01-29 Jim Blandy <jimb@redhat.com>
13552
13553 * objfiles.h (struct objfile): Doc fix.
13554
d62d1979
AC
135552003-01-29 Andrew Cagney <ac131313@redhat.com>
13556
13557 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13558 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13559 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13560 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13561 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13562 (FRAME_SAVED_PC): Change to a function with predicate.
13563 * gdbarch.h, gdbarch.c: Re-generate.
13564
1ae18a04
AC
135652003-01-28 Andrew Cagney <ac131313@redhat.com>
13566
52287340
AC
13567 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13568
1ae18a04
AC
13569 * complaints.c (complain): Delete function.
13570 * complaints.h (struct deprecated_complaint): Delete definition.
13571 (complain): Delete declaration.
13572
f2c16bd6
KB
135732003-01-28 Kevin Buettner <kevinb@redhat.com>
13574
13575 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13576 dummy frames.
13577
a94dd1fd
AC
135782003-01-27 Andrew Cagney <ac131313@redhat.com>
13579
13580 * sentinel-frame.h, sentinel-frame.c: New files.
13581 * Makefile.in (frame.o): Update dependencies.
13582 (SFILES): Add sentinel-frame.c.
13583 (sentinel_frame_h): Define.
13584 (COMMON_OBS): Add sentinel-frame.o.
13585 (sentinel-frame.o): Specify dependencies.
13586 * frame.c: Include "sentinel-frame.h".
13587 (frame_register_unwind): Rewrite assuming that there is always a a
13588 ->next frame.
13589 (frame_register, generic_unwind_get_saved_register): Ditto.
13590 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13591 (create_sentinel_frame, unwind_to_current_frame): New functions.
13592 (get_current_frame): Rewrite using create_sentinel_frame and
13593 unwind_to_current_frame. When possible, always create a frame.
13594 (create_new_frame): Set next to the sentinel frame.
13595 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13596 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13597 ID cache when necessary.
13598 (frame_saved_regs_id_unwind): Use frame_relative_level.
13599 (deprecated_generic_get_saved_register): Use frame_relative_level,
13600 get_frame_saved_regs, get_frame_pc, get_frame_base and
13601 get_next_frame.
13602 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13603 frame_register.
13604
5378adc4
DJ
136052003-01-27 Daniel Jacobowitz <drow@mvista.com>
13606
13607 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13608
51ee2ddc
DJ
136092003-01-27 Daniel Jacobowitz <drow@mvista.com>
13610
13611 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13612 (maintenance_set_profile_cmd): Use error () instead of warning ().
13613
d9feb4e7
DJ
136142003-01-27 Daniel Jacobowitz <drow@mvista.com>
13615
13616 * configure.in: Check that -pg works if using --enable-profiling.
13617 Check for monstartup and _mcleanup regardless of --enable-profiling.
13618 * maint.c: Check for monstartup and _mcleanup before using them.
13619 * config.in: Regenerated.
13620 * configure: Regenerated.
13621
2d188dd3
NC
136222003-01-24 Nick Clifton <nickc@redhat.com>
13623
13624 * Add sh2e support:
13625
13626 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13627
13628 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13629 (sh2e_show_regs): New.
13630 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13631 * config/sh/tm-sh.h: Added sh2e to comments.
13632
cb3c37b2
JB
136332003-01-23 Jim Blandy <jimb@redhat.com>
13634
13635 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13636 symbols found)" message here; we haven't checked for a separate
13637 debug info file yet, so we don't know yet.
13638 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13639 we've looked everywhere. Also, there's no need to print a special
13640 message when we're loading the separate debug info file: the one
13641 symbol_file_add prints is fine.
13642
5b5d99cf
JB
136432003-01-23 Alexander Larsson <alexl@redhat.com>
13644 Jim Blandy <jimb@redhat.com>
13645
13646 Add support for executables whose debug info has been separated
13647 out into a separate file, leaving only a link behind.
13648 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13649 and separate_debug_objfile_backlink.
13650 (put_objfile_before): New declaration.
13651 * symfile.c: #include "filenames.h".
13652 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13653 debug info in a separate file, read that, too. Save the addrs
13654 argument, so we can use it again to read the separated debug info;
13655 syms_from_objfile modifies the table we pass it.
13656 (reread_symbols): After re-reading an objfile, call
13657 reread_separate_symbols to refresh its separate debug info
13658 objfile, if it has one.
13659 (reread_separate_symbols, find_separate_debug_file,
13660 get_debug_link_info, separate_debug_file_exists): New functions.
13661 (debug_file_directory): New global var.
13662 (_initialize_symfile): Initialize debug_file_directory, and
13663 provide the new `set debug-file-directory' command to let the user
13664 change it.
13665 * objfiles.c (free_objfile): If this objfile has its debug info in
13666 a separate objfile, free that one too. If this is itself a
13667 separate debug info objfile, clear our parent's backlink.
13668 (put_objfile_before): New function.
13669 * utils.c (gnu_debuglink_crc32): New function.
13670 * defs.h (gnu_debuglink_crc32): New declaration.
13671 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13672 * configure.in: Handle --with-separate-debug-dir config option.
13673 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13674 * acconfig.h (DEBUGDIR): New macro.
13675 * configure, aclocal.m4, config.in: Regenerated.
13676
7e8580c1
JB
136772003-01-22 Jim Blandy <jimb@redhat.com>
13678
7904e09f
JB
13679 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13680 like the old symbol_file_add, but taking new arguments: you can
13681 now pass in either a `struct section_addr_info' list to say where
13682 each section is loaded, or a `struct section_offsets' table. Pass
13683 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13684 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13685 with the appropriate quiescent values for the new arguments.
13686
7e8580c1
JB
13687 * symfile.c: #include "gdb_assert.h".
13688 (syms_from_objfile): Add the ability to pass in a section offset
13689 table directly, as an alternative to the section_addr_info table.
13690 Document arguments better.
13691 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13692 * symfile.h (syms_from_objfile): Update declaration.
13693 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13694 syms_from_objfile.
13695 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13696
d28f9cdf
DJ
136972003-01-22 Daniel Jacobowitz <drow@mvista.com>
13698
13699 Original patch by Tom Tromey <tromey@cygnus.com> and
13700 Jason Molenda <jmolenda@apple.com>.
13701 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13702 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13703 * NEWS: Mention profiling.
13704 * configure.in (--enable-gdbtk): Fix typo.
13705 (--enable-profiling): New. Set PROFILE_CFLAGS.
13706 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13707 Fill in function.
13708 (profiling_state): New variable.
13709 (mcleanup_wrapper): New function.
13710 (_initialize_maint): Remove NOTYET, fix call to
13711 add_setshow_boolean_cmd for "maint set profile".
13712 * configure: Regenerated.
13713
df21e465
MH
137142003-01-21 Martin M. Hunt <hunt@redhat.com>
13715
13716 * Makefile.in (install-gdbtk): Install PNG images too.
13717
73c1f219
AC
137182003-01-21 Andrew Cagney <ac131313@redhat.com>
13719
13720 * exec.c (text_start): Delete global variable.
13721 (exec_file_attach): Make text_start local to the function.
13722 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13723 * valops.c (hand_function_call): Delete code that handles
13724 BEFORE_TEXT_END and AFTER_TEXT_END.
13725 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13726 of CALL_DUMMY_LOCATION.
13727 * gdbarch.c: Regenerate.
13728 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13729 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13730 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13731 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13732 (text_end): Delete extern declaration.
13733
eb4f72c5
AC
137342003-01-21 Andrew Cagney <ac131313@redhat.com>
13735
13736 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13737 * blockframe.c (backtrace_below_main): Move to "frame.c".
13738 (frame_chain_valid): Delete check for backtrace_below_main.
13739 (_initialize_blockframe): Delete initialization, move ``set
13740 backtrace-below-main'' command to "frame.c".
13741 (do_flush_frames_sfunc): Delete function.
13742 * frame.c: Include "command.h" and "gdbcmd.h".
13743 (frame_type_from_pc): New function.
13744 (create_new_frame): Use frame_type_from_pc.
13745 (legacy_get_prev_frame): New function.
13746 (get_prev_frame): Rewrite. When an old style frame, call
13747 legacy_get_prev_frame. Otherwize, unwind the PC first.
13748 (_initialize_frame): Add ``set backtrace-below-main'' command.
13749 * Makefile.in (frame.o): Update dependencies.
13750
778ce8cc
AC
137512003-01-19 Andrew Cagney <ac131313@redhat.com>
13752
13753 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13754 DEPRECATED_REGISTERS_INFO.
13755
01c193c8
AC
137562003-01-19 Andrew Cagney <ac131313@redhat.com>
13757
13758 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13759 Maintainers'. Update `Various Maintainers'.
13760
dedc2a2b
AC
137612003-01-19 Andrew Cagney <ac131313@redhat.com>
13762
13763 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13764 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13765 Suppress actual parameters when `-'.
13766 * gdbarch.h, gdbarch.c: Regenerate.
13767
b7261c70
AC
137682003-01-19 Andrew Cagney <ac131313@redhat.com>
13769
13770 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13771 code handling dummy frames.
13772
dbe9fe58
AC
137732003-01-19 Andrew Cagney <ac131313@redhat.com>
13774
13775 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13776 (struct frame_unwind): Add field pop.
13777 * frame.h (frame_pop): Declare.
13778 * frame.c (frame_saved_regs_pop): New function.
13779 (trad_frame_unwinder): Add frame_saved_regs_pop.
13780 (frame_pop): New function.
13781 * dummy-frame.c (dummy_frame_pop): New function.
13782 (discard_innermost_dummy): New function.
13783 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13784 (dummy_frame_unwind): Add dummy_frame_pop.
13785 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13786 * valops.c (hand_function_call): Ditto.
13787 * stack.c (return_command): Ditto.
13788
570b8f7c
AC
137892003-01-18 Andrew Cagney <ac131313@redhat.com>
13790
13791 * cris-tdep.c: Fix function declaration indentation.
13792 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13793 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13794 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13795 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13796 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13797 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13798
137992003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13800
13801 * README (Unpacking and Installation -- quick overview):
13802 Warn against ".../gdb-5.3/gdb/configure".
13803
494cca16
AC
138042003-01-18 Andrew Cagney <ac131313@redhat.com>
13805
13806 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13807 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13808 (struct frame_unwind): Declare opaque.
13809 (dummy_frame_p): Declare function.
13810 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13811 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13812 * dummy-frame.c: Include "frame-unwind.h".
13813 (dummy_frame_p): New function.
13814 (dummy_frame_unwind): New variable.
13815 * frame.c: Include "frame-unwind.h".
13816 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13817 to use the new unwind field.
13818 (set_unwind_by_pc): Delete function.
13819 (create_new_frame, get_prev_frame): Set unwind field using
13820 frame_unwind_find_by_pc.
13821 (trad_frame_unwind, trad_frame_unwinder): New variables.
13822 * frame.h (trad_frame_unwind): Declare variable.
13823 (frame_id_unwind_ftype): Delete declaration.
13824 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13825 (struct frame_unwind): Declare opaque.
13826 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13827 register_unwind with a single unwind pointer.
13828 * frame-unwind.h, frame-unwind.c: New files.
13829 * Makefile.in (SFILES): Add frame-unwind.c.
13830 (frame_unwind_h): Define.
13831 (COMMON_OBS): Add frame-unwind.o.
13832 (frame-unwind.o): Specify dependencies.
13833 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13834
4efb68b1
AC
138352003-01-18 Andrew Cagney <ac131313@redhat.com>
13836
13837 * ada-valprint.c: Eliminate PTR.
13838 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13839 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13840 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13841 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13842 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13843 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13844 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13845
a84d24ee
AC
138462003-01-17 Andrew Cagney <ac131313@redhat.com>
13847
762f08a3
AC
13848 * main.c (captured_main): Don't use PTR.
13849 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13850 * gdbtypes.c (lookup_primitive_typename): Ditto.
13851 (lookup_struct_elt_type): Ditto.
13852 * f-valprint.c (info_common_command): Ditto.
13853 (list_all_visible_commons): Ditto.
13854 * jv-typeprint.c (java_type_print_base): Ditto.
13855
a84d24ee
AC
13856 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13857 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13858 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13859 i386-interix-nat.c and i386-interix-tdep.c. Rename
13860 m68klinux-nat.c and m68klinux-tdep.c. Rename
13861 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13862 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13863 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13864 * main.c (captured_main): Use xfree, not free.
13865
c170fb60
AC
138662003-01-16 Andrew Cagney <ac131313@redhat.com>
13867
13868 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13869 ID back using a parameter.
13870 * frame.c (frame_id_unwind): Update call.
13871 (frame_saved_regs_id_unwind): Update.
13872 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13873 * dummy-frame.h (struct frame_id): Add opaque declaration.
13874 (dummy_frame_id_unwind): Update declaration.
13875
867f3898
AC
138762003-01-15 Andrew Cagney <ac131313@redhat.com>
13877
13878 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13879
40622be8 138802003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13881
40622be8 13882 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13883
ae66c1fc
EZ
138842003-01-14 Elena Zannoni <ezannoni@redhat.com>
13885
997b089a 13886 Fix PR gdb/898
ae66c1fc
EZ
13887 * breakpoint.c (until_break_command): Add new argument. Use it to
13888 decide whether to stop only at the current frame or not.
13889 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13890 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13891 call.
13892 (advance_command): New function.
13893 (_initialize_infcmd): Update help string for 'until' command.
13894 Add new 'advance' command.
13895
a04257e6
DC
138962003-01-14 David Carlton <carlton@math.stanford.edu>
13897
13898 * linespec.c (decode_line_1): Normalize comments.
13899 (set_flags): Ditto.
13900 (locate_first_half): Ditto.
13901 (decode_compound): Ditto.
13902 (symtab_from_filename): Ditto.
13903 (decode_all_digits): Ditto.
13904 (decode_dollar): Ditto.
13905 (find_methods): Ditto.
13906 (find_toplevel_char): Ditto.
13907
1bac305b
AC
139082003-01-13 Andrew Cagney <ac131313@redhat.com>
13909
13910 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13911 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13912 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13913 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13914 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13915 * language.c, language.h, m32r-tdep.c: Update copyright.
13916 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13917 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13918 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13919 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13920 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13921 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13922
25caa7a8
EZ
139232003-01-13 Elena Zannoni <ezannoni@redhat.com>
13924
13925 * stabsread.h (process_later, resolve_cfront_continuation):
13926 Obsolete.
13927 Update copyright years.
13928 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13929 Update copyright year.
13930 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13931 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13932 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13933 Update copyright year.
13934 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13935 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13936 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13937 (parse_partial_symbols): Obsolete cfront support.
13938 * stabsread.c
13939 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13940 macros.
13941 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13942 read_cfront_baseclasses, read_cfront_member_functions,
13943 resolve_cfront_continuation,read_cfront_static_fields,
13944 copy_cfront_struct_fields): Obsolete functions.
13945 (define_symbol, read_one_struct_field): Obsolete cfront support.
13946 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13947 Update Copyright year.
13948
7789c6f5
EZ
139492003-01-13 Elena Zannoni <ezannoni@redhat.com>
13950
13951 * stack.c (print_frame_info, print_stack_frame_base_stub,
13952 print_stack_frame_base, show_and_print_stack_frame_stub,
13953 show_and_print_stack_frame, print_only_stack_frame_stub,
13954 print_only_stack_frame): Delete functions.
13955 (print_stack_frame_stub): Call print_frame_info instead of
13956 print_frame_info_base.
13957 (print_frame_info_base): Rename to print_frame_info.
13958 (backtrace_command_1): Call print_frame_info, instead of
13959 print_frame_info_base.
13960 (current_frame_command): Call print_stack_frame, instead of
13961 print_only_stack_frame.
13962 (frame_command): Call print_stack_frame, instead of
13963 show_and_print_stack_frame.
13964 (up_command): Ditto.
13965 (down_command): Ditto.
13966 * frame.h (print_only_stack_frame): Delete prototype.
13967 * infrun.c (normal_stop): Call print_stack_frame, instead of
13968 show_and_print_stack_frame.
13969 * thread.c (info_threads_command): Call print_stack_frame, instead
13970 of print_only_stack_frame.
13971
3f5a3016
AC
139722003-01-13 Andrew Cagney <ac131313@redhat.com>
13973
d99ba314
AC
13974 * README (Graphical interface to GDB): Update URL. Point at
13975 gdb/links/.
13976
3f5a3016
AC
13977 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13978 version match.
13979
083ae935
DJ
139802003-01-13 Daniel Jacobowitz <drow@mvista.com>
13981
13982 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13983 lines.
13984
5365276c
DJ
139852003-01-13 Daniel Jacobowitz <drow@mvista.com>
13986
13987 * thread-db.c (attach_thread): Prototype.
13988 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13989 thread information (ti), and valid flags (th_valid, ti_valid).
13990 (attach_thread): Move target_pid_to_str call to after the thread
13991 is added to GDB's list. Initialize the cache.
13992 (thread_get_info_callback, thread_db_map_id2thr)
13993 (thread_db_get_info): New functions.
13994 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13995 (thread_db_store_registers, thread_db_thread_alive)
13996 (thread_db_get_thread_local_address): Use them.
13997 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13998 of calling error() for threads in unknown state.
13999
14000 (clear_lwpid_callback): New function.
14001 (thread_db_resume): Use it to clear the cache.
14002
9fc30b6b
DJ
140032003-01-13 Daniel Jacobowitz <drow@mvista.com>
14004
14005 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14006 (resume_callback): Remove dead code.
14007
8f871025
AC
140082003-01-13 Andrew Cagney <ac131313@redhat.com>
14009
14010 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14011 predicate.
14012 * gdbarch.h, gdbarch.c: Regenerate.
14013 * stack.c (frame_info): Only initialize the saved registers when
14014 FRAME_INIT_SAVED_REGS_P.
14015 * frame.c (frame_saved_regs_register_unwind): Assert
14016 FRAME_INIT_SAVED_REGS_P.
14017 (deprecated_generic_get_saved_register): Ditto.
14018
3f565f1e
DJ
140192003-01-13 Daniel Jacobowitz <drow@mvista.com>
14020
14021 * source.c (openp): Squelch warning about "filename".
14022
072b1022
DJ
140232003-01-13 Daniel Jacobowitz <drow@mvista.com>
14024
14025 * source.c (openp): If the file does not exist don't necessarily
14026 search the path.
14027
973ccf8b
DJ
140282003-01-13 Daniel Jacobowitz <drow@mvista.com>
14029
14030 Fix PR gdb/872.
14031 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14032 (integer_types_same_name_p): New function.
14033 (rank_one_type): Use it.
14034 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14035
030292b7
DJ
140362003-01-13 Daniel Jacobowitz <drow@mvista.com>
14037
14038 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14039 variables.
14040 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14041 * configure.in: Add --with-sysroot.
14042 * configure: Regenerated.
14043 * main.c (gdb_sysroot): New variable.
14044 (captured_main): Initialize gdb_sysroot.
14045 * defs.h (gdb_sysroot): New extern declaration.
14046 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14047
afb5d334
MC
140482003-01-12 Michael Chastain <mec@shout.net>
14049
14050 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14051
751ceeb4
MC
140522003-01-12 Michael Chastain <mec@shout.net>
14053
14054 * top.c (print_gdb_version): Bump copyright year to 2003.
14055
94cd26f8
DC
140562003-01-12 David Carlton <carlton@bactrian.org>
14057
14058 * linespec.c (symtab_from_filename): Rename variable 's' to
14059 'file_symtab'.
14060
1ce79225
AC
140612003-01-12 Andrew Cagney <ac131313@redhat.com>
14062
14063 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14064 dummy frame.
14065 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14066
fa1fd571
AC
140672003-01-12 Andrew Cagney <ac131313@redhat.com>
14068
14069 * d10v-tdep.c: Include "gdb_assert.h".
14070 (d10v_store_return_value): Rewrite to match current interface.
14071 (d10v_extract_struct_value_address): Ditto.
14072 (d10v_extract_return_value): Ditto.
14073 (d10v_gdbarch_init): Set store_restore_value,
14074 extract_struct_value_address and extract_return_value.
14075
68b8d23e
JB
140762003-01-12 J. Brobecker <brobecker@gnat.com>
14077
14078 * hpread.c (set_namestring): New procedure replacing the
14079 SET_NAMESTRING macro.
14080 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14081 by calls to set_namestring.
14082
140832003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14084
14085 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14086 a compilation warning.
14087 (hpread_process_one_debug_symbol): Likewise.
14088
88d262ca
DC
140892003-01-10 David Carlton <carlton@math.stanford.edu>
14090
14091 * linespec.c (decode_line_1): Rename variable 's' to
14092 'file_symtab'.
14093 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14094 (decode_dollar): Ditto.
14095 (decode_variable): Ditto.
14096 (symbol_found): Ditto.
14097
86669319
MC
140982003-01-09 Michael Chastain <mec@shout.net>
14099
14100 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14101
616a9dc4
CV
141022003-01-07 Corinna Vinschen <vinschen@redhat.com>
14103
14104 * win32-nat.c (set_process_privilege): New function.
14105 (child_attach): Call set_process_privilege() to enable the
14106 SE_DEBUG_NAME user privilege if available in process token.
14107
3269bcfa
JB
141082003-01-10 J. Brobecker <brobecker@gnat.com>
14109
14110 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14111 compilation error in the previous revision.
14112
2b0ee454
DC
141132003-01-09 David Carlton <carlton@math.stanford.edu>
14114
14115 * linespec.c: Update copyright.
14116
b3ba1b44
DJ
141172003-01-09 Daniel Jacobowitz <drow@mvista.com>
14118
14119 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14120 than inferior_ptid.
14121 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14122
4ef3f3be
AC
141232003-01-09 Andrew Cagney <ac131313@redhat.com>
14124
479ab5a0
AC
14125 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14126 Update comments.
14127 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14128 (frame_saved_regs_zalloc): Update.
14129 (frame_saved_regs_register_unwind): Update.
14130 (create_new_frame): Update.
14131 (get_prev_frame): Update.
14132 (frame_extra_info_zalloc): Update.
14133 (deprecated_get_frame_saved_regs): Update.
14134 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14135 * cris-tdep.c: Update comment.
14136
bde58177
AC
14137 * somsolib.h: Fix function indentation.
14138 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14139 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14140 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14141 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14142 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14143
4ef3f3be
AC
14144 * infrun.c (follow_fork): Use ISO C definition.
14145 * expprint.c (print_subexp): Use xfree instead of free.
14146 * charset.c: Include "gdb_string.h" instead of <string.h>.
14147 (register_iconv_charsets): Use ISO C definition.
14148 (host_charset, target_charset): Ditto.
14149 * Makefile.in (charset.o): Update dependencies.
14150 (mi-cmd-env.o): Update dependencies.
14151
1c615f7a
AC
141522003-01-08 Andrew Cagney <cagney@redhat.com>
14153
14154 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14155 get_frame_base.
14156
c9a1dc08
AC
141572003-01-08 Andrew Cagney <ac131313@redhat.com>
14158
14159 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14160 build directories. Save edited gdb output in Mbuild.log. If a
14161 build fails, remove any final GDB executable.
14162
dbad9d94
AC
141632003-01-08 Andrew Cagney <ac131313@redhat.com>
14164
14165 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14166 replacing hex constants with function names and stripping leading
14167 file name directory prefixes.
14168
8d357cca
AC
141692003-01-08 Andrew Cagney <cagney@redhat.com>
14170
14171 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14172 get_frame_base.
14173
bca02a8a
DC
141742003-01-08 David Carlton <carlton@math.stanford.edu>
14175
14176 * linespec.c (decode_line_1): Move code into decode_variable.
14177 (decode_variable): New function.
14178
7f8ab3a0
AC
141792003-01-08 Andrew Cagney <ac131313@redhat.com>
14180
14181 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14182
7b5849cc
AC
141832003-01-08 Andrew Cagney <cagney@redhat.com>
14184
14185 * cris-tdep.c (cris_frame_init_saved_regs): Use
14186 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14187 saved_regs buffer.
14188 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14189 (sh64_nofp_frame_init_saved_regs): Ditto.
14190 (sh_fp_frame_init_saved_regs): Ditto.
14191 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14192 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14193 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14194 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14195
72a5efb3
DJ
141962003-01-08 Daniel Jacobowitz <drow@mvista.com>
14197
14198 * minsyms.c (lookup_minimal_symbol): Update comment.
14199 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14200 (lookup_minimal_symbol_solib_trampoline): Likewise.
14201
11c02a10
AC
142022003-01-08 Andrew Cagney <cagney@redhat.com>
14203
aab3ea25
AC
14204 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14205 frame_relative_level.
14206
da50a4b7
AC
14207 * alpha-tdep.c: Use get_frame_extra_info.
14208 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14209 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14210 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14211 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14212
11c02a10
AC
14213 * alpha-tdep.c: Use get_next_frame.
14214 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14215 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14216 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14217 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14218 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14219 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14220 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14221
1e2330ba
AC
142222003-01-07 Andrew Cagney <cagney@redhat.com>
14223
14224 * alpha-tdep.c: Use get_frame_base.
14225 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14226 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14227 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14228 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14229 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14230 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14231 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14232 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14233
2d75187b
AC
142342003-01-07 Andrew Cagney <cagney@redhat.com>
14235
14236 * frame.c (deprecated_get_frame_context): New function.
14237 (deprecated_set_frame_context): New function.
14238 * frame.h (deprecated_get_frame_context): Declare.
14239 (deprecated_set_frame_context): Declare.
14240 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14241 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14242
483d36b2
AC
142432003-01-07 Andrew Cagney <cagney@redhat.com>
14244
14245 * frame.c (deprecated_set_frame_next_hack): New function.
14246 (deprecated_set_frame_prev_hack): New function.
14247 * frame.h (deprecated_set_frame_next_hack): Declare.
14248 (deprecated_set_frame_prev_hack): Declare.
14249 * mcore-tdep.c (analyze_dummy_frame): Use
14250 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14251 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14252
14e91ac5
DC
142532003-01-07 David Carlton <carlton@math.stanford.edu>
14254
14255 * linespec.c (decode_line_1): Move code into decode_dollar.
14256 (decode_dollar): New function.
14257
b0c6b05c
AC
142582003-01-07 Andrew Cagney <cagney@redhat.com>
14259
14260 * arm-tdep.c (arm_init_extra_frame_info): Use
14261 deprecated_update_frame_base_hack.
14262 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14263 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14264 (fix_frame_pointer): Ditto.
14265 (mn10300_analyze_prologue): Ditto.
14266
a00a19e9
AC
142672003-01-07 Andrew Cagney <cagney@redhat.com>
14268
14269 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14270 extra_info using frame_extra_info_zalloc.
14271 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14272 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14273 (sh64_init_extra_frame_info): Ditto.
14274 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14275 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14276 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14277 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14278 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14279 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14280 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14281 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14282 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14283 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14284 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14285 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14286
14287 * mn10300-tdep.c (analyze_dummy_frame): Use
14288 deprecated_set_frame_extra_info_hack.
14289 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14290
1fb4c65b
JB
142912003-01-07 J. Brobecker <brobecker@gnat.com>
14292
14293 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14294 class is not scText. These do not define "real" procedures.
14295 (parse_partial_symbols): Likewise.
14296
9fe7d6bf
MS
142972003-01-06 Michael Snyder <msnyder@redhat.com>
14298
14299 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14300
f6c609c4
AC
143012003-01-06 Andrew Cagney <ac131313@redhat.com>
14302
14303 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14304 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14305 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14306 deprecated_frame_xmalloc_with_cleanup.
14307 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14308 deprecated_frame_xmalloc.
14309 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14310 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14311
d995ff4b
AC
143122003-01-06 Andrew Cagney <cagney@redhat.com>
14313
84dc46cb
AC
14314 * x86-64-linux-tdep.c: Include "osabi.h".
14315 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14316
d995ff4b
AC
14317 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14318
66140c26
AC
143192003-01-06 Andrew Cagney <cagney@redhat.com>
14320
14321 * MAINTAINERS (Target Instruction Set Architectures): Update
14322 arm-elf. Can be built with -Werror, has been multiarched.
14323
14324 * value.h (unpack_long): Make buffer parameter constant.
14325 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14326 * scm-lang.h (scm_parse): Ditto.
14327 * defs.h (extract_typed_address, extract_address): Ditto.
14328 (extract_long_unsigned_integer): Ditto.
14329 * inferior.h (unsigned_pointer_to_address): Ditto.
14330 (signed_pointer_to_address): Ditto.
14331 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14332 * gdbarch.h, gdbarch.c: Regenerate.
14333 * findvar.c (extract_long_unsigned_integer): Update.
14334 (extract_address): Update.
14335 (extract_typed_address): Update.
14336 (unsigned_pointer_to_address): Update.
14337 * values.c (unpack_long): Update.
14338 (unpack_double): Update.
14339 (unpack_pointer): Update.
14340 (unpack_field_as_long): Update.
14341 * d10v-tdep.c (d10v_pointer_to_address): Update.
14342 * avr-tdep.c (avr_pointer_to_address): Update.
14343 * scm-lang.c (scm_unpack): Update.
14344 * findvar.c (signed_pointer_to_address): Update.
14345
b089b3da
ML
143462003-01-06 Michal Ludvig <mludvig@suse.cz>
14347
8ffd9b1b 14348 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14349 since it is in i386-tdep.c.
14350
aff87235
JB
143512003-01-06 J. Brobecker <brobecker@gnat.com>
14352
14353 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14354 failure introduced in the previous change.
14355
34f5e845
MC
143562003-01-05 Michael Chastain <mec@shout.net>
14357
14358 * README: Remove references to deleted remote-*.c files:
14359 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14360 remote-nrom.c, remote-os9k.c, remote-udi.c.
14361
28bcfd30
MK
143622003-01-05 Mark Kettenis <kettenis@gnu.org>
14363
14364 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14365 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14366 i386_get_longjmp_target.
14367
15a5b3ee
AC
143682003-01-05 Andrew Cagney <ac131313@redhat.com>
14369
14370 * arm-tdep.c (prologue_cache): Change to a pointer.
14371 (_initialize_arm_tdep): Allocate prologue_cache.
14372 (check_prologue_cache): Update.
14373 (save_prologue_cache): Update.
14374 (arm_gdbarch_init): Update.
14375
c263362b
DJ
143762003-01-04 Daniel Jacobowitz <drow@mvista.com>
14377
14378 * stabsread.c (update_method_name_from_physname): Call complaint()
14379 instead of error.
14380
51603483
DJ
143812003-01-04 Daniel Jacobowitz <drow@mvista.com>
14382
14383 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14384 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14385 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14386
14387 * blockframe.c: Include "gdbcmd.h" and "command.h".
14388 (backtrace_below_main): New variable.
14389 (file_frame_chain_valid, func_frame_chain_valid)
14390 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14391 (generic_func_frame_chain_valid): Remove functions.
14392 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14393 (_initialize_blockframe): New function.
14394 * Makefile.in (blockframe.o): Update dependencies.
14395 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14396 comment. Call frame_chain_valid ().
14397 * frame.h: Remove old prototypes. Add prototype for
14398 frame_chain_valid and update comments to match.
14399 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14400 Remove old comment.
14401 * gdbarch.h: Regenerated.
14402 * gdbarch.c: Regenerated.
14403
14404 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14405 set_gdbarch_frame_chain_valid.
14406 * avr-tdep.c (avr_gdbarch_init): Likewise.
14407 * cris-tdep.c (cris_gdbarch_init): Likewise.
14408 * frv-tdep.c (frv_gdbarch_init): Likewise.
14409 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14410 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14411 (i386_nw_init_abi): Likewise.
14412 (i386_gdbarch_init): Likewise.
14413 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14415 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14416 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14417 * mips-tdep.c (mips_gdbarch_init): Likewise.
14418 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14419 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14420 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14421 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14422 * s390-tdep.c (s390_gdbarch_init): Likewise.
14423 * sh-tdep.c (sh_gdbarch_init): Likewise.
14424 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14425 * v850-tdep.c (v850_gdbarch_init): Likewise.
14426 * vax-tdep.c (vax_gdbarch_init): Likewise.
14427 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14428
14429 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14430 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14431 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14432 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14433 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14434 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14435 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14436 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14437
b00a8037
DJ
144382002-01-04 Daniel Jacobowitz <drow@mvista.com>
14439
14440 * Makefile.in (acconfig_h): Remove incorrect macro.
14441 (config_h): Define.
14442 (osabi.o): Update dependencies.
14443 * configure.tgt: Set gdb_osabi based on target triplet.
14444 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14445 * configure: Regenerated.
14446 * config.in: Regenerated.
14447 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14448 (GDB_OSABI_DEFAULT): Define if not already defined.
14449 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14450 (set_osabi_string): New variables.
14451 (gdbarch_register_osabi): Add new OS ABI to
14452 gdb_osabi_available_names.
14453 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14454 (set_osabi, show_osabi): New functions.
14455 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14456
4be87837
DJ
144572003-01-04 Daniel Jacobowitz <drow@mvista.com>
14458
14459 * arch-utils.c (gdbarch_info_init): Set osabi to
14460 GDB_OSABI_UNINITIALIZED.
14461 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14462 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14463 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14464 * gdbarch.c: Regenerated.
14465 * gdbarch.h: Regenerated.
14466 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14467 there's no BFD.
14468 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14469 * osabi.h (enum gdb_osabi): Move to defs.h.
14470 (gdbarch_init_osabi): Update prototype.
14471 * defs.h (enum gdb_osabi): Moved here.
14472 * Makefile.in: Update dependencies.
14473
14474 * alpha-tdep.h: Don't include "osabi.h".
14475 (struct gdbarch_tdep): Remove osabi member.
14476 * alpha-tdep.c: Include "osabi.h".
14477 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14478 iterate over arches. Update call to gdbarch_init_osabi.
14479 (alpha_dump_tdep): Don't dump osabi.
14480 * alpha-linux-tdep.c: Include "osabi.h".
14481 * alpha-osf1-tdep.c: Include "osabi.h".
14482 * alphafbsd-tdep.c: Include "osabi.h".
14483 * alphanbsd-tdep.c: Include "osabi.h".
14484
14485 * arm-tdep.h: Don't include "osabi.h".
14486 (struct gdbarch_tdep): Remove osabi member.
14487 * arm-tdep.c: Include "osabi.h".
14488 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14489 iterate over arches. Update call to gdbarch_init_osabi.
14490 (arm_dump_tdep): Don't dump osabi.
14491 * arm-linux-tdep.c: Include "osabi.h".
14492 * armnbsd-tdep.c: Include "osabi.h".
14493
14494 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14495 Update call to gdbarch_init_osabi.
14496
14497 * i386-tdep.h: Don't include "osabi.h".
14498 (struct gdbarch_tdep): Remove osabi member.
14499 * i386-tdep.c: Include "osabi.h".
14500 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14501 iterate over arches. Update call to gdbarch_init_osabi.
14502 (i386_dump_tdep): Don't dump osabi.
14503 * i386-linux-tdep.c: Include "osabi.h".
14504 * i386-sol2-tdep.c: Include "osabi.h".
14505 * i386bsd-tdep.c: Include "osabi.h".
14506 * i386gnu-tdep.c: Include "osabi.h".
14507 * i386ly-tdep.c: Include "osabi.h".
14508 * i386nbsd-tdep.c: Include "osabi.h".
14509 * i386obsd-tdep.c: Include "osabi.h".
14510
14511 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14512 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14513 check osabi when iterating over arches. Update call to
14514 gdbarch_init_osabi.
14515 (mips_dump_tdep): Don't dump osabi.
14516
14517 * ns32k-tdep.h: Don't include "osabi.h".
14518 (struct gdbarch_tdep): Remove.
14519 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14520 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14521 allocate tdep. Update call to gdbarch_init_osabi.
14522 (ns32k_dump_tdep): Remove.
14523 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14524 * ns32knbsd-tdep.c: Include "osabi.h".
14525
14526 * ppc-tdep.h: Don't include "osabi.h".
14527 (struct gdbarch_tdep): Remove osabi member.
14528 * rs6000-tdep.c: Include "osabi.h".
14529 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14530 osabi when iterating over arches. Update call to
14531 gdbarch_init_osabi.
14532 (rs6000_dump_tdep): Don't dump osabi.
14533 * ppc-linux-tdep.c: Include "osabi.h".
14534 * ppcnbsd-tdep.c: Include "osabi.h".
14535
14536 * sh-tdep.h: Don't include "osabi.h".
14537 (struct gdbarch_tdep): Remove osabi member.
14538 * sh-tdep.c: Include "osabi.h".
14539 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14540 iterate over arches. Update call to gdbarch_init_osabi.
14541 (sh_dump_tdep): Don't dump osabi.
14542 * shnbsd-tdep.c: Include "osabi.h".
14543
14544 * sparc-tdep.c: Include "osabi.h".
14545 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14546 iterate over arches. Update call to gdbarch_init_osabi.
14547 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14548 tdep structure.
14549
14550 * vax-tdep.h: Don't include "osabi.h".
14551 (struct gdbarch_tdep): Remove.
14552 * vax-tdep.c: Include "osabi.h".
14553 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14554 iterate over arches. Don't allocate tdep. Update call
14555 to gdbarch_init_osabi.
14556 (vax_dump_tdep): Remove.
14557 (_initialize_vax_tdep): Update call to gdbarch_register.
14558
a881cf8e
DJ
145592003-01-04 Daniel Jacobowitz <drow@mvista.com>
14560
14561 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14562 entirely.
14563 (breakpoint_re_set_one): Don't fetch the value for a disabled
14564 watchpoint.
14565
1e698235
DJ
145662003-01-04 Daniel Jacobowitz <drow@mvista.com>
14567
14568 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14569 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14570 (COERCE_FLOAT_TO_DOUBLE): Remove.
14571 * gdbarch.c: Regenerate.
14572 * gdbarch.h: Regenerate.
14573 * Makefile.in: Remove value_h from gdbarch_h.
14574 * valops.c (coerce_float_to_double): New variable.
14575 (default_coerce_float_to_double): Remove.
14576 (standard_coerce_float_to_double): Remove.
14577 (value_arg_coerce): Use coerce_float_to_double.
14578 (_initialize_valops): Add "set coerce-float-to-double".
14579 * value.h (default_coerce_float_to_double): Remove prototype.
14580 (standard_coerce_float_to_double): Remove prototype.
14581
14582 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14583 prototyped.
14584 * mdebugread.c (parse_symbol): Likewise.
14585 * stabsread.c (define_symbol): Mark all functions as prototyped.
14586
14587 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14588 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14589 set_gdbarch_coerce_float_to_double.
14590 * arm-tdep.c (arm_gdbarch_init): Likewise.
14591 * frv-tdep.c (frv_gdbarch_init): Likewise.
14592 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14593 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14594 * mips-tdep.c (mips_gdbarch_init): Likewise.
14595 (mips_coerce_float_to_double): Remove.
14596 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14597 (rs6000_coerce_float_to_double): Remove.
14598 * s390-tdep.c (s390_gdbarch_init): Likewise.
14599 * sh-tdep.c (sh_gdbarch_init): Likewise.
14600 (sh_coerce_float_to_double): Remove.
14601 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14602 (sparc_coerce_float_to_double): Remove.
14603 * v850-tdep.c (v850_gdbarch_init): Likewise.
14604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14605 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14606 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14607 (hppa_coerce_float_to_double): Remove prototype.
14608 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14609
f436a26a
DJ
146102003-01-04 Daniel Jacobowitz <drow@mvista.com>
14611
14612 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14613
248f8055
DJ
146142003-01-04 Daniel Jacobowitz <drow@mvista.com>
14615
14616 Suggested by Stewart Brown <sb24@avaya.com>:
14617 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14618 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14619 (c_type_print_varspec_suffix): Likewise.
14620
72cfdc76
MK
146212003-01-04 Mark Kettenis <kettenis@gnu.org>
14622
bfd260bb
MK
14623 * configure.in: Don't set and AC_SUBST SUBDIRS.
14624 * configure: Regenerated.
14625
72cfdc76
MK
14626 * configure.in: Remove code dealing with shared libraries.
14627 * Makefile.in: Remove HLDFLAGS and HLDENV.
14628 * configure: Regenerated.
14629
c8b8a898
AC
146302003-01-04 Andrew Cagney <ac131313@redhat.com>
14631
14632 * frame.c (deprecated_frame_xmalloc): New function.
14633 (deprecated_set_frame_saved_regs_hack): New function.
14634 (deprecated_set_frame_extra_info_hack): New function.
14635 * frame.h (deprecated_frame_xmalloc): Declare.
14636 (deprecated_set_frame_saved_regs_hack): Declare.
14637 (deprecated_set_frame_extra_info_hack): Declare.
14638
14abd0fb
MK
146392003-01-04 Mark Kettenis <kettenis@gnu.org>
14640
8ee53726
MK
14641 * configure.in: Move code that provides the --enable-gdbtk option
14642 right after the code that handles the --enable-tui option, and
14643 polish it somewhat.
14644 * configure: Regenerated.
14645
14abd0fb
MK
14646 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14647 AC_CHECK_FUNCS and remove the old check for pread64.
14648 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14649 * acconfig.h (_GNU_SOURCE): Add.
14650 (HAVE_PREAD64): Remove.
14651 * configure, aclocal.m4, config.in: Regenerated.
14652
b2fb4676
AC
146532003-01-03 Andrew Cagney <ac131313@redhat.com>
14654
14655 * alpha-tdep.c: Use get_frame_saved_regs.
14656 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14657 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14658 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14659 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14660 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14661
8dcde887
MK
146622003-01-03 Mark Kettenis <kettenis@gnu.org>
14663
14664 * configure.in: Remove all use of the SUBDIRS variable; add
14665 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14666 code providing the --enable-multi-ice option, and move it right in
14667 front of the code that checks whether gdbserver is supported.
14668 Polish that too.
14669 * configure: Regenerated.
14670 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14671 @SUBDIRS@.
14672
8ccd593b
AC
146732003-01-03 Andrew Cagney <cagney@redhat.com>
14674
14675 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14676 * avr-tdep.c, cris-tdep.c: Ditto.
14677 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14678 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14679
91151a06
MK
146802003-01-03 Mark Kettenis <kettenis@gnu.org>
14681
14682 * configure.in: Remove --enable-netrom option.
14683 * configure: Regenerated.
14684
8fe84d01
MK
146852003-01-03 Mark Kettenis <kettenis@gnu.org>
14686
14687 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14688 declaration for `struct re_pattern_buffer' instead.
14689 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14690
f0394be6
JB
146912003-01-03 J. Brobecker <brobecker@gnat.com>
14692
14693 * mdebugread.c (parse_symbol): Count until the stEnd matching
14694 the structure name.
14695
27e9bf90
MK
146962003-01-02 Mark Kettenis <kettenis@gnu.org>
14697
93d331ba
MK
14698 * configure.in: Remove --with-cpu option.
14699 subscripts. Remove evil changequotes here.
14700 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14701 * config.in, configure: Regenerated.
8ffd9b1b 14702
27e9bf90
MK
14703 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14704 * configure.in: Cleanup section that sources GDB and BFD configure
14705 subscripts. Remove evil changequotes here.
14706 * config.in, configure: Regenerated.
14707
50abf9e5
AC
147082003-01-02 Andrew Cagney <ac131313@redhat.com>
14709
14710 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14711 frame accessor methods.
14712 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14713 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14714 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14715 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14716 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14717 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14718 * z8k-tdep.c: Ditto.
8ffd9b1b 14719
287c1a40
MK
147202003-01-02 Mark Kettenis <kettenis@gnu.org>
14721
f5dbc56d
MK
14722 * configure.in: Remove UI_OUT configuration code.
14723 * ada-lang.c: Update assuming UI_OUT is always true.
14724 * Makefile.in (UIOUT_CFLAGS): Remove.
14725 * configure: Regenerated.
14726 * TODO: Remove blurb about elimination of -DUI_OUT.
14727
627af7ea
MK
14728 * configure.in: Move code that provides the --enable-gdbcli,
14729 --enable-gdbmi options right before the code that handles the
14730 --enable-tui option. Polish a bit.
14731 * configure: Regenerated.
14732
06825bd1
MK
14733 * configure.in: Rewrite check for GNU regex and the
14734 --without-included regex option, and move it into the "Checks for
14735 library functions" section. This makes us use the system regex
14736 again by default on systems with version 2 of the GNU C library.
14737 This was apparently broken.
14738 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14739 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14740 * config.in, configure: Regenerated.
14741
287c1a40
MK
14742 * configure.in: Move code that provides the --enable-tui option
14743 before the "Checks for libraries" section. Polish the code
14744 somewhat and set need_curses to yes if we build the TUI. Rewrite
14745 code that looks for a library providing termcap functionality to
14746 match more closely what's done in the Readline library, and move
14747 it into to the "Checks for libraries" section.
14748 * configure: Regenerated.
14749 * Makefile.in (TERMCAP): Remove variable.
14750 * config/i386/go32.mh (TERMCAP): Remove variable.
14751
684e56bf
AC
147522003-01-02 Andrew Cagney <ac131313@redhat.com>
14753
14754 * MAINTAINERS: Mention gdb_mbuild.sh.
14755 * gdb_mbuild.sh: Rewrite.
14756
e1ea1d75
MK
147572003-01-02 Mark Kettenis <kettenis@gnu.org>
14758
14759 * configure.in: Fix typo in last change.
14760 * config.in, configure: Regenerated.
14761
1b831c93
AC
147622003-01-02 Andrew Cagney <ac131313@redhat.com>
14763
14764 * valarith.c (value_binop): Delete obsolete code and comments.
14765 * configure.host: Ditto.
14766 * buildsym.h (make_blockvector): Ditto.
14767 * buildsym.c (make_blockvector): Ditto.
14768 * defs.h (enum language): Ditto.
14769 (chill_demangle): Ditto.
14770 * elfread.c (elf_symtab_read): Ditto.
14771 * dwarfread.c (CHILL_PRODUCER): Ditto.
14772 (set_cu_language): Ditto.
14773 (handle_producer): Ditto.
14774 * expprint.c (print_subexp): Ditto.
14775 * gdbtypes.c (chill_varying_type): Ditto.
14776 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14777 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14778 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14779 (chill_varying_type): Ditto.
14780 * language.h (_LANG_chill): Ditto.
14781 * language.c (binop_result_type, integral_type): Ditto.
14782 (character_type, string_type, structured_type): Ditto.
14783 (lang_bool_type, binop_type_check): Ditto.
14784 * stabsread.h (os9k_stabs): Ditto.
14785 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14786 (define_symbol, read_type, read_struct_fields): Ditto.
14787 (read_array_type, read_enum_type, read_huge_number): Ditto.
14788 (read_range_type, start_stabs): Ditto.
14789 * symfile.c (init_filename_language_table): Ditto.
14790 (add_psymbol_with_dem_name_to_list): Ditto.
14791 * symtab.c (symbol_init_language_specific): Ditto.
14792 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14793 * symtab.h (struct general_symbol_info): Ditto.
14794 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14795 * typeprint.c (typedef_print): Ditto.
14796 * utils.c (fprintf_symbol_filtered): Ditto.
14797 * valops.c (value_cast, search_struct_field, value_slice): Delete
14798 obsolete code.
14799 (varying_to_slice): Delete function.
14800 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14801 (varying_to_slice): Delete declaration.
14802 * MAINTAINERS: Update.
14803
8bb2c122
MK
148042003-01-02 Mark Kettenis <kettenis@gnu.org>
14805
97bf5e38
MK
14806 * configure.in: Reorganize "Checks for library functions section"
14807 a bit. Remove check for `btowc' and `isascii' functions.
14808 * configure: Regenerated.
14809
5ee754fc
MK
14810 * acconfig.h (_MSE_INT_H): Remove.
14811 * configure.in: Create "Checks for header files" section, and move
14812 appropriate tests there. Don't check for objlist.h, wchar.h,
14813 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14814 misdetection fix. Also add "Checks for types", "Checks for
14815 compiler characteristics" and "Checks for library functions"
14816 sections.
14817 * config.in, configure: Regenerated.
14818
8bb2c122
MK
14819 * configure.in: Create "Checks for programs" section, and move
14820 appropriate tests there.
14821
9a156167
MK
148222003-01-01 Mark Kettenis <kettenis@gnu.org>
14823
14824 * configure.in: Create "Checks for libraries" section, and move
14825 appropriate tests there. Cleanup check for wctype in libw. Use
14826 AC_SEARCH_LIBS to see whether we need libsocket.
14827 * configure: Regenerated.
14828
a80e2bcb 14829For older changes see ChangeLog-2002
c906108c
SS
14830\f
14831Local Variables:
14832mode: change-log
14833left-margin: 8
14834fill-column: 74
14835version-control: never
14836End:
This page took 1.178915 seconds and 4 git commands to generate.