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
38a7ce4b
AC
3 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
4 (deprecated_set_frame_prev_hack): Delete declaration.
5 * frame.c (deprecated_set_frame_next_hack): Delete function.
6 (deprecated_set_frame_prev_hack): Delete function.
7 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
8 "deprecated_set_frame_next_hack" and
9 "deprecated_set_frame_prev_hack".
10 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11
47ebcfbe
AC
12 * mips-tdep.c (mips_register_convertible): Delete function.
13 (mips_register_convert_to_virtual): Delete function.
14 (mips_register_convert_to_raw): Delete function.
15 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
16 "deprecated_register_convert_to_virtual", or
17 "deprecated_register_convert_to_raw".
18 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
19 32/64 cooked to raw register conversions.
20
2a9264f1 21 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 22 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
23 (struct frame_info): Delete member "context".
24 * frame.h (deprecated_get_frame_context): Delete declaration.
25 (deprecated_set_frame_context): Delete declaration.
26
7af6341f
AC
27 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
28 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
29 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
30 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
31
10a08821
AC
32 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
33 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
34 mips_regsize.
35 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
36 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
37 * config/mips/tm-irix5.h: Update copyright.
38 (SIGFRAME_REG_SIZE): Delete macro.
39
00d33403
AC
40 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
41 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
42 declaration.
43 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
44 * infcall.c (call_function_by_hand): Delete #ifdef
45 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
46 * infcmd.c (print_return_value): Ditto.
47
74da7425
AC
48 * mips-tdep.c (skip_prologue_using_sal): New function.
49 (mips32_skip_prologue, mips16_skip_prologue): Use
50 skip_prologue_using_sal to get an upper bound on the search.
51
369864a4
AC
52 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
53 #if 0'ed macro.
54 * infrun.c (step_into_function): Delete #ifdef
55 PROLOGUE_FIRSTLINE_OVERLAP code.
56 * symtab.c (find_function_start_sal): Ditto.
57
a5a12285
AC
58 * remote-rdp.c: Update copyright.
59 (rdp_init): #if 0 references to "target_byte_order".
60
29dfb2ac
AC
61 * mips-tdep.c (mips_o32_store_return_value): Delete function.
62 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
63 (mips_o32_extract_return_value): Delete function.
64 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
65 (mips_n32n64_extract_return_value): Delete function.
66 (mips_n32n64_store_return_value): Delete function.
67 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
68 instead of "store_return_value", "extract_return_value", and
69 "use_struct_convention".
70 (mips_n32n64_use_struct_convention): Delete function.
71
3a3da38c
KB
722003-11-21 Kevin Buettner <kevinb@redhat.com>
73
74 * frv-tdep.c (frv_frame_this_id): Eliminate call to
75 inside_entry_func().
76
c5e656c1
MK
772003-11-20 Mark Kettenis <kettenis@gnu.org>
78
79 * i386-tdep.c (i386_extract_return_value,
80 i386_store_return_value): Add gdbarch argument. Use it instead of
81 determining it from REGCACHE. Remove recursive call for
82 structures with a single member.
83 (i386_use_struct_convention): Remove.
84 (i386_reg_struct_return_p): New function.
85 (i386_return_value): New function.
86 (i386_gdbarch_init): Set return_value, don't set
87 extract_return_value, store_return_value and
88 use_struct_convention.
89 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
90
515cc92e
JB
912003-11-20 Jim Blandy <jimb@redhat.com>
92
93 * osabi.c (_initialize_gdb_osabi): Don't return before registering
94 the 'set osabi' and 'show osabi' commands.
95
3f1d7f16
MK
962003-11-19 Mark Kettenis <kettenis@gnu.org>
97
98 * frame.c (get_prev_frame): Use result from
99 get_frame_address_in_block instead of get_frame_pc as argument to
100 inside_main_func. Fixes PR backtrace/1435.
101
667e784f
AC
1022003-11-19 Andrew Cagney <cagney@redhat.com>
103
104 * stack.c (return_command): Handle "void", "legacy" and "unknown
105 location" return values separatly.
106 * values.c (using_struct_return): Return 0 for a "void" return
107 type. Mention "register_value_being_returned".
108 (register_value_being_returned): Mention "using_struct_return".
109
4cecd739
DJ
1102003-11-19 Daniel Jacobowitz <drow@mvista.com>
111
112 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
113 (frame_base_offset): Delete.
114 (read_func_scope): Delete call to decode_locdesc.
115 (decode_locdesc): Update comments. Don't set the removed variables.
116 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
117 DW_OP_fbreg support.
118
6b992462
DJ
1192003-11-18 Daniel Jacobowitz <drow@mvista.com>
120
121 * dwarf2read.c (optimized_out, islocal): Remove.
122 (decode_locdesc): Update comments. Don't set optimized_out
123 or islocal.
124
968d1cb4
JJ
1252003-11-17 Jeff Johnston <jjohnstn@redhat.com>
126 David Mosberger <davidm@hpl.hp.com>
127
128 * ia64-tdep.c: Include elf.h.
129 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
130 libunwind-ia64.h.
131 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
132 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
133 (ia64_is_fpreg, ia64_access_reg): Ditto.
134 (ia64_access_fpreg, ia64_access_mem): Ditto.
135 (get_kernel_table): Ditto.
136 (ia64_find_unwind_table): Ditto.
137 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
138 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
139 (ia64_libunwind_frame_prev_register): Ditto.
140 (ia64_libunwind_frame_sniffer): Ditto.
141 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
142 sniffer. Register libunwind functions needed by generic
143 libunwind frame code using libunwind_frame_set_descr().
144
d29caefc
DJ
1452003-11-16 Daniel Jacobowitz <drow@mvista.com>
146
147 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
148 bp_shlib_disabled breakpoint if there is a shared library mapped
149 at its expected address.
150
691c0433
AC
1512003-11-16 Andrew Cagney <cagney@redhat.com>
152
96cb1c2f
AC
153 * configure.tgt: Delete mips*tx39*-elf*.
154 * config/mips/tm-tx39.h: Delete file.
155 * config/mips/tx39.mt: Delete file.
156 * config/mips/tx39.mt: Delete file.
157
691c0433
AC
158 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
159 * remote-mips.c (common_open): Instead of
160 "mips_read_register_type" and "mips_set_processor_type_command"
161 call "deprecated_mips_set_processor_regs_hack".
162 * config/mips/tm-mips.h (mips_read_processor_type): Delete
163 declaration.
164 (mips_set_processor_type_command): Delete declaration.
165 * mips-tdep.c (mips_gdbarch_init): Update comment.
166 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
167 (mips_set_processor_type): Delete function.
168 (NUM_MIPS_PROCESSOR_REGS): Define.
169 (mips_show_processor_type_command): Delete function.
170 (mips_set_processor_type_command): Delete function.
171 (tmp_mips_processor_type): Delete.
172 (mips_processor_type): Delete.
173 (mips_processor_type_table): Delete.
174 (mips_r3051_reg_names): Delete.
175 (mips_r3081_reg_names): Delete.
176 (mips_lsi33k_reg_names): Delete.
177 (mips_processor_reg_names): Delete.
178 (mips_read_processor_type): Delete function.
179 (deprecated_mips_set_processor_regs_hack): New function.
180 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
181 (mips_register_name): Get the processor names from the tdep.
182 (mips_tx39_reg_names): New array.
183 (mips_generic_reg_names): Wire to a standard set of names.
184 (mips_gdbarch_init): Set "mips_processor_reg_names".
185 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
186 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
187 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
188
56cea623
AC
1892003-11-16 Andrew Cagney <cagney@redhat.com>
190
191 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
192 (mips_fpa0_regnum, mips_regnum): New function.
193 (mips_gdbarch_init): Fill in the "regnum" fields.
194 * mips-tdep.h (struct mips_regnum): Define.
195 (mips_regnum): Declare.
196 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
197 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
198 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
199 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
200 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
201 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
202 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
203 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
204 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
205 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
206 * remote-mips.c: Include "mips-tdep.h". Update.
207 * mipsnbsd-tdep.c: Update.
208 * mipsv4-nat.c: Update.
209 * mips-tdep.c: Update.
210 * mips-nat.c: Update.
211 * mips-linux-tdep.c: Update.
212 * mips-linux-nat.c: Update.
213 * irix5-nat.c: Update.
214 * dve3900-rom.c: Include "mips-tdep.h". Update.
215 (ignore_packet): Supress GCC warning.
216 * config/mips/nm-riscos.h: Update.
217
719ec221
AC
2182003-11-16 Andrew Cagney <cagney@redhat.com>
219
220 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
221 register_size.
222 (mips_register_raw_size): Delete function.
223 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
224 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
225 Check and set "mips64_transfers_32bit_regs_p".
226 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
227 (mips_register_convertible): Check the architecture's
228 "mips64_transfers_32bit_regs_p".
229 (set_mips64_transfers_32bit_regs): New function.
230 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
231 "set remote-mips64-transfers-32bit-regs" command. Specify
232 set_mips64_transfers_32bit_regs as the set function.
56cea623 233 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 234
20187ed5
MK
2352003-11-16 Mark Kettenis <kettenis@gnu.org>
236
237 * i386-tdep.h (i386_supply_gregset): Provide prototype.
238 * i386-tdep.c (i386_supply_gregset): Make public.
239
6771c427
AC
2402003-11-16 Andrew Cagney <cagney@redhat.com>
241
242 * mips-tdep.c (mips_register_byte): Delete function.
243 (mips_gdbarch_init): Do not set "deprecated_register_byte".
244 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
245 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
246 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
247
c8048956
MK
2482003-11-16 Mark Kettenis <kettenis@gnu.org>
249
250 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
251
cc8a868a
AC
2522003-11-16 Andrew Cagney <cagney@redhat.com>
253
254 * config/mips/linux64.mt: Delete file.
255 * config/mips/tm-linux64.h: Delete file.
256 * config/mips/tm-mips64.h: Delete file.
257 * config/mips/embed64.mt: Delete file.
258 * config/djgpp/fnchange.lst: Update.
259 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
260 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
261 * config/mips/tm-irix6.h: Update copyright. Include
262 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
263 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
264 "OP_LDGPR".
265
5ef80fb0
AC
2662003-11-15 Andrew Cagney <cagney@redhat.com>
267
268 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
269 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
270 n32 registers 64 bit.
271 (mips_register_raw_size, mips_register_byte): For pseudo
272 registers, use the register's pseudo size and not the
273 corresponding raw register's size.
274 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
275 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
276 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
277 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
278
4246e332
AC
2792003-11-15 Andrew Cagney <cagney@redhat.com>
280
8fa9cfa1
AC
281 * mips-tdep.c (struct gdbarch_tdep): Delete member
282 gdb_target_is_mips64.
283 (GDB_TARGET_IS_MIPS64): Delete macro.
284 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
285 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
286 (mips_addr_bits_remove): Simplify.
287
c73e8f27
AC
288 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
289 register_size.
290
4246e332
AC
291 Replace MIPS_REGSIZE with mips_regsize.
292 * mips-tdep.c (mips_regsize): New function.
293 * mips-tdep.h (mips_regsize): Declare.
294 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
295 (SIZEOF_STRUCT_REG): Update.
296 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
297 (mipsnbsd_fill_reg): Update.
298 (mipsnbsd_supply_fpreg): Update.
299 (mipsnbsd_fill_fpreg): Update.
300 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
301 * mips-tdep.c (mips_register_raw_size): Update.
302 (mips_register_type): Update.
303 (SIGFRAME_BASE): Update.
304 (SIGFRAME_PC_OFF): Update.
305 (SIGFRAME_REGSAVE_OFF): Update.
306 (SIGFRAME_FPREGSAVE_OFF): Update.
307 (SIGFRAME_REG_SIZE): Update.
308 (mips32_heuristic_proc_desc): Update.
309 (print_gp_register_row): Update.
310 (mips_dump_tdep): Do not print MIPS_REGSIZE.
311 * irix5-nat.c (supply_gregset): Update.
312 (fetch_core_registers): Update.
313 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
314 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
315 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
316 (MIPS_REGISTER_BYTE): Update.
317 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
318
5e044b1e
AC
3192003-11-15 Andrew Cagney <cagney@redhat.com>
320
321 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
322 USE_REGISTER_NOT_ARG.
323 * stabsread.c (define_symbol): Update.
324
3a16a68c
AC
3252003-11-15 Andrew Cagney <cagney@redhat.com>
326
327 * bcache.h (deprecated_bcache): Declare.
328 (bcache): Make returned buffer constant.
329 * bcache.c (deprecated_bcache): New function.
330 (bcache_data): New function.
331 (bcache): Call bcache data.
332 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
333 (add_psymbol_with_dem_name_to_list): Ditto.
334
bb41a796
MK
3352003-11-15 Mark Kettenis <kettenis@gnu.org>
336
337 * glibc-tdep.h (struct gdbarch): Declare opaque.
338 (glibc_skip_solib_resolver): Adjust prototype.
339 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
340 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
341 (arm_linux_init_abi): Set skip_solib_resolver.
342 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
343 (i386_linux_init_abi): Set skip_solib_resolver.
344 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
345 (arm_linux_skip_solib_resolver): Remove prototype.
346 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
347 (i386_linux_skip_solib_resolver): Remove prototype.
348
4c8c40e6
MK
3492003-11-14 Mark Kettenis <kettenis@gnu.org>
350
351 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
352 function.
353 * gdbarch.c, gdbarch.h: Regenerate.
354 * infrun.c (handle_inferior_event): Call
355 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
356 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
357 definition.
358 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
359 prototype.
360
0e5d83e3
JJ
3612003-11-14 Jeff Johnston <jjohnstn@redhat.com>
362
363 * libunwind-frame.c: New file.
364 * libunwind-frame.h: New file.
365 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
366 * configure.in: Add --with-libunwind option support. Define
367 HAVE_LIBUNWIND if libunwind support selected / defaulted.
368 Also check for libunwind.h and libunwind-ia64.h headers.
369 * configure: Regenerated.
370 * Makefile.in: Add support for libunwind-frame.o.
371 * config.in: Regenerated.
372
287a334e
JJ
3732003-11-14 Jeff Johnston <jjohnstn@redhat.com>
374
375 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
376 set up the ia64 linux native target method for getting the kernel
377 unwind table.
378 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
379 * inftarg.c (child_xfer_partial): Enable section of code to
380 handle TARGET_OBJECT_UNWIND_TABLE.
381 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
382
140be7b8
ILT
3832003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
384
385 * config/arm/nbsd.mt (TM_FILE): Define.
386 * config/arm/tm-nbsd.h: New file.
387
0a90bcdd
AC
3882003-11-14 Andrew Cagney <cagney@redhat.com>
389
390 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
391 * ppc-sysv-tdep.c: Include "objfiles.h".
392 (ppc64_sysv_abi_push_dummy_call): Provide the
393 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
394
395 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
396 "name_of_malloc" to ".malloc".
397
087f1027
MK
3982003-11-13 Mark Kettenis <kettenis@gnu.org>
399
400 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
401
3882f37a
DC
4022003-11-13 David Carlton <carlton@kealia.com>
403
404 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
405
a8cf2722
AC
4062003-11-13 Andrew Cagney <cagney@redhat.com>
407
408 * arch-utils.h (selected_architecture_name): Declare.
409 (selected_byte_order): Declare.
410 * arch-utils.c (selected_byte_order): New function.
411 (selected_architecture_name): New function.
412 (target_architecture_auto): Make static.
413 (set_architecture_string): Make static.
414 (target_byte_order): Make static.
415 (target_byte_order_auto): Make static.
416 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
417 non-multi-arch definition.
418 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
419 (target_byte_order, target_architecture): Delete declaration.
420 (target_byte_order_auto, target_architecture_auto): Ditto.
421 * gdbarch.h: Re-generate.
422 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
423 "selected_byte_order".
424
475b6ddd
AC
4252003-11-13 Andrew Cagney <cagney@redhat.com>
426
427 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
428
a22286a9
JB
4292003-11-13 Jim Blandy <jimb@redhat.com>
430
431 * cp-namespace.c: Doc fix.
432
7bb11558
MS
4332003-11-12 Michael Snyder <msnyder@redhat.com>
434
39add00a
MS
435 * sh64_tdep.c: Regularize some names.
436 (sh_sh64_register_name): Rename to sh64_register_name.
437 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
438 (sh_sh64_register_byte): Rename to sh64_register_byte.
439 (sh_sh64_build_float_register_type):
440 Rename to sh64_build_float_register_type.
441 (sh_sh64_register_convert_to_virtual):
442 Rename to sh64_register_convert_to_virtual.
443 (sh_sh64_register_convert_to_raw):
444 Rename to sh64_register_convert_to_raw.
445
2a314ed5
MS
446 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
447 sh64_media_reg_base_num, sh64_compact_reg_base_num,
448 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
449 sh64_extract_return_value, sh64_show_media_regs,
450 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
451 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
452 sh64_pseudo_register_read, sh64_pseudo_register_write,
453 sh64_do_pseudo_register, sh_compact_print_registers_info):
454 Delete unused variable 'tdep'.
455
7bb11558
MS
456 * sh64-tdep.c: Coding standard and spelling comment fixes.
457 (sh64_extract_return_value): Replace deprecated_store_floating
458 with store_typed_floating.
459 (sh_sh64_register_convert_to_raw): Replace
460 deprecated_store_floating with store_typed_floating.
461 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
462 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
463 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
464 sh64_extract_struct_value_address, sh64_pop_frame,
465 sh64_extract_return_value, sh64_store_return_value,
466 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
467 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
468 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
469 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
470 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
471 deprecated_register_virtual_type, deprecated_register_raw_size,
472 deprecated_max_register_raw_size, or
473 deprecated_max_register_virtual_size. Instead, just set
474 gdbarch_register_type.
39add00a
MS
475 (sh_sh64_register_raw_size): Delete.
476 (sh_sh64_register_virtual_size): Delete.
7bb11558 477
e7c27a73
DJ
4782003-11-12 Daniel Jacobowitz <drow@mvista.com>
479
480 * dwarf2read.c (struct dwarf2_cu): New type.
481
482 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
483 dwarf2_cu structure to pass down.
484
485 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
486 (add_partial_enumeration, locate_pdi_sibling, process_die)
487 (read_file_scope, read_func_scope)
488 (read_lexical_block_scope, dwarf2_get_pc_bounds)
489 (dwarf2_add_field, dwarf2_attach_fields_to_type)
490 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
491 (read_structure_scope, read_enumeration, read_array_type)
492 (read_common_block, read_namespace, read_tag_pointer_type)
493 (read_tag_ptr_to_member_type, read_tag_reference_type)
494 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
495 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
496 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
497 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
498 (read_full_die. read_attribute_value, read_attribute)
499 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
500 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
501 (die_containing_type, type_at_offset, tag_type_to_type)
502 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
503 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
504
1640b821
DJ
5052003-11-12 Daniel Jacobowitz <drow@mvista.com>
506
507 PR breakpoints/1450
508 * breakpoint.c (insert_bp_location): Fix a logic error by returning
509 0 after a catchpoint fails.
510
d7891507
MC
5112003-11-11 Michael Chastain <mec.gnu@mindspring.com>
512
513 * mips-tdep.c (msymbol_size): Delete.
514
f594e5e9
MC
5152003-11-07 Michael Chastain <mec@shout.net>
516
517 * symtab.h (struct minimal_symbol): Add size.
518 * dbxread.c: Use it.
519 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
520 Rename to record_minimal_symbol.
521 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
522 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
523 (install_minimal_symbols): Ditto.
524 * objfiles.c (terminate_minimal_symbol_table): Ditto.
525 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
526 * m68hc11-tdep.c: Ditto.
527 * mips-tdep.c: Ditto.
528 * sh64-tdep.c: Ditto.
529
68e39e73
MC
5302003-11-10 Michael Chastain <mec.gnu@mindspring.com>
531
532 * MAINTAINERS: Change my e-mail address.
533
b60eb90d
AC
5342003-11-10 Andrew Cagney <cagney@redhat.com>
535
963e2bb7
AC
536 * gdbarch.sh (return_value): Replace "inval" and "outval" with
537 "readbuf" and "writebuf".
538 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
539 * d10v-tdep.c (d10v_return_value): Ditto.
540 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
541 (ppc_sysv_abi_broken_return_value): Ditto.
542 (ppc64_sysv_abi_return_value): Ditto.
543 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
544 (ppc_sysv_abi_return_value): Ditto.
545 (ppc_sysv_abi_broken_return_value): Ditto.
546 (ppc64_sysv_abi_return_value): Ditto.
547 * values.c (register_value_being_returned): Update call.
548 * stack.c (return_command): Update call.
549 * gdbarch.h, gdbarch.c: Re-generate.
550
8aa91c1e
AC
551 * target.h (struct target_ops): Order xfer buffer parameters "read
552 write" not "write read".
553 * bfd-target.c (target_bfd_xfer_partial): Update.
554 * remote.c (remote_xfer_partial): Update.
555 * inftarg.c (child_xfer_partial): Update.
556 * target.c (default_xfer_partial): Update.
557 (target_read_partial, target_write_partial): Update.
558 (debug_to_xfer_partial): Update.
559
100bcc3f
AC
560 * arch-utils.h, arch-utils.c: Fix typo in comment.
561
b60eb90d
AC
562 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
563 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
564 (set_gdbarch_from_file): Call
565 "deprecated_current_gdbarch_select_hack".
b60eb90d 566
bf922ad9
AC
5672003-11-09 Andrew Cagney <cagney@redhat.com>
568
ebdba546
AC
569 * arch-utils.c (gdbarch_update_p): New function.
570 * gdbarch.sh (gdbarch_update_p): Delete function.
571 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 572 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
573 * gdbarch.c: Re-generate.
574
7de2341d
AC
575 * gdbarch.sh (clear_gdbarch_swap): Delete function.
576 (swapout_gdbarch_swap): Delete function.
577 (swapin_gdbarch_swap): Delete function.
578 (init_gdbarch_swap): Delete function.
579 (initialize_non_multiarch): Delete function.
580 (current_gdbarch_swap_in_hack): New function.
581 (current_gdbarch_swap_out_hack): New function.
582 (current_gdbarch_swap_init_hack): New function.
583 * gdbarch.c: Re-generate.
584
db446970
AC
585 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
586 parameter to "current_gdbarch". Add comment explaining why.
587 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
588 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
589 * gdbarch.c: Re-generate.
590
341e3d11
AC
591 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
592 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
593 * config/s390/xm-linux.h: Delete file.
594 * config/m88k/xm-delta88v4.h: Delete stray.
595
bf922ad9
AC
596 * Makefile.in (arch-utils.o): Update dependencies.
597 * arch-utils.c: Include "osabi.h".
598 (gdbarch_info_fill): New function.
599 * arch-utils.h (gdbarch_info_fill): Declare.
600 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
601 * gdbarch.c: Re-generate.
602
a3640c75
MK
6032003-11-09 Mark Kettenis <kettenis@gnu.org>
604 David S. Miller <davem@redhat.com>
605
606 * glibc-tdep.c, glibc-tdep.h: New files.
607 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
608 * config/i386/linux.mt (TDEPFILES): Likewise.
609 * i386-linux-tdep.c (glibc-tdep.h): Include.
610 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
611 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
612 * arm-linux-tdep.c (glibc-tdep.h): Include.
613 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
614 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
615 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
616 (glibc_tdep_h): Define.
617 (glibc-tdep.o): Add dependencies.
618 (arm-linux-tdep.o): Update dependencies.
619 (i386-linux-tdep.o): Likewise.
620
e60e0ab2
AC
6212003-11-09 Andrew Cagney <cagney@redhat.com>
622
623 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
624 * config/mips/nm-irix6.h: Delete file.
625 * config/mips/nm-linux.h: Update copyright.
626 (MIPS_GNULINUX_TARGET): Delete macro.
627 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
628 * config/mips/xm-irix6.h: Delete file.
629 * config/mips/linux.mh (XM_FILE): Delete definition.
630 * config/mips/xm-linux.h: Delete file.
631
181555e9
AC
6322003-11-09 Andrew Cagney <cagney@redhat.com>
633
634 * d10v-tdep.c (d10v_return_value): New function.
635 (d10v_use_struct_convention): Delete function.
636 (d10v_store_return_value): Delete function.
637 (d10v_extract_struct_value_address): Delete function.
638 (d10v_gdbarch_init): Set "return_value" instead of
639 "extract_return_value", "store_return_value",
640 "extract_struct_value_address", and "use_struct_convention".
641 (RET1_REGNUM): Delete const.
642
dea0c52f
MK
6432003-11-09 Mark Kettenis <kettenis@gnu.org>
644
645 From David S. Miller <davem@redhat.com>:
646 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
647 * gdbarch.c, gdbarch.h: Regenerated.
648 * arch-utils.c (generic_skip_solib_resolver): New function.
649 * arch-utils.h (generic_skip_solib_resolver): New prototype.
650 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
651
6314a349
AC
6522003-11-07 Andrew Cagney <cagney@redhat.com>
653
654 * top.c (print_gdb_version): Replace STREQ with strcmp.
655 * valops.c (value_struct_elt_for_reference): Ditto.
656 (value_struct_elt_for_reference): Ditto.
657 * symtab.c (gdb_mangle_name): Ditto.
658 (find_line_symtab): Ditto.
659 * symmisc.c (maintenance_print_symbols): Ditto.
660 * symfile.c (symbol_file_command): Ditto.
661 * stabsread.c (define_symbol, read_type): Ditto.
662 (cleanup_undefined_types, scan_file_globals): Ditto.
663 * solib.c (solib_map_sections): Ditto.
664 * solib-svr4.c (bfd_lookup_symbol): Ditto.
665 * rs6000-tdep.c (skip_prologue): Ditto.
666 * p-valprint.c (pascal_value_print): Ditto.
667 (pascal_object_is_vtbl_ptr_type): Ditto.
668 * objfiles.c (in_plt_section): Ditto.
669 * minsyms.c (lookup_minimal_symbol): Ditto.
670 (compact_minimal_symbols): Ditto.
671 (find_solib_trampoline_target): Ditto.
672 * mdebugread.c (parse_type): Ditto.
673 * language.c (set_language_command): Ditto.
674 (set_type_command, set_range_command): Ditto.
675 * f-lang.c (add_common_block): Ditto.
676 (add_common_block): Ditto.
677 (find_first_common_named): Ditto.
678 (patch_all_commons_by_name): Ditto.
679 * elfread.c (elf_locate_sections): Ditto.
680 (elf_locate_sections): Ditto.
681 (elfstab_offset_sections): Ditto.
682 * dwarf2read.c (dwarf2_locate_sections): Ditto.
683 * dbxread.c (add_old_header_file): Ditto.
684 (find_corresponding_bincl_psymtab): Ditto.
685 (read_dbx_symtab, process_one_symbol): Ditto.
686 * coffread.c (patch_opaque_types): Ditto.
687 * cli/cli-decode.c (delete_cmd): Ditto.
688 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
689 * c-typeprint.c (c_type_print_base): Ditto.
690 * breakpoint.c (bpstat_stop_status): Ditto.
691 (clear_command, breakpoint_re_set_one): Ditto.
692
49df298f
AC
6932003-11-07 Andrew Cagney <cagney@redhat.com>
694
695 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
696 * bcache.c (struct bstring): Make "length" an unsigned short, add
697 "half_hash".
698 (struct bcache): Add "half_hash_error_count".
699 (bcache): Compute and save the "half_hash". Compare the
700 "half_hash" before comparing the length. Update
701 half_hash_error_count.
702
f168dd80
AC
7032003-11-07 Andrew Cagney <cagney@redhat.com>
704
705 * inftarg.c (child_xfer_partial): New function
706 (init_child_ops): Set "to_xfer_partial".
707
05580c65
AC
7082003-11-07 Andrew Cagney <cagney@redhat.com>
709
710 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
711 set "return_value" instead of "use_struct_convention".
712 (ppc_linux_use_struct_convention): Delete function.
713 (ppc_linux_return_value): New function.
714 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
715 (ppc_sysv_abi_broken_return_value): New function.
716 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
717 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
718 static.
719 (ppc_sysv_abi_extract_return_value): Delete function.
720 (ppc_sysv_abi_broken_extract_return_value): Delete function.
721 (ppc_sysv_abi_store_return_value): Delete function.
722 (ppc_sysv_abi_broken_store_return_value): Delete function.
723 (ppc_sysv_abi_use_struct_convention): Delete function.
724 (ppc64_sysv_abi_use_struct_convention): Delete function.
725 (ppc64_sysv_abi_extract_return_value): Delete function.
726 (ppc64_sysv_abi_store_return_value): Delete function.
727 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
728 (ppcnbsd_init_abi): Set "return_value", instead of
729 "use_struct_convention", "extract_return_value", and
730 "store_return_value".
731 (ppcnbsd_use_struct_convention): Delete function.
732 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
733 (ppc_sysv_abi_return_value): Declare.
734 (ppc_sysv_abi_broken_return_value): Declare.
735 (ppc_sysv_abi_use_struct_convention): Delete.
736 (ppc_sysv_abi_store_return_value): Delete.
737 (ppc_sysv_abi_extract_return_value): Delete.
738 (ppc_sysv_abi_broken_store_return_value): Delete.
739 (ppc_sysv_abi_broken_extract_return_value): Delete.
740 (ppc64_sysv_abi_use_struct_convention): Delete.
741 (ppc64_sysv_abi_extract_return_value): Delete.
742 (ppc64_sysv_abi_store_return_value): Delete.
743 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
744 set "return_value" instead of "extract_return_value",
745 "store_return_value", and "use_struct_convention".
746
1763fba4
MK
7472003-11-07 Mark Kettenis <kettenis@gnu.org>
748
22c7ba1a
MK
749 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
750
1763fba4
MK
751 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
752 fscanf.
753
fc07cc2d
MK
7542003-11-07 Mark Kettenis <kettenis@gnu.org>
755
756 * fbsd-proc.c: Fix formatting.
757
6a748db6
KB
7582003-11-06 Kevin Buettner <kevinb@redhat.com>
759
760 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
761 Define.
762 (new_variant): Set name for iacc0_regnum.
763 (frv_register_name): Accommodate pseudo-registers.
764 (frv_register_type): Add case for iacc0_regnum.
765 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
766 (frv_gdbarch_init): Set number of pseudo registers. Establish
767 pseudo-register read/write methods.
768
bf896cb0
AC
7692003-11-06 Andrew Cagney <cagney@redhat.com>
770
771 * valops.c (destructor_name_p): Replace STREQN with strncmp.
772 * top.c (command_line_input): Ditto.
773 * objc-exp.y (yylex): Ditto.
774 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
775 * jv-exp.y (yylex): Ditto.
776 * f-exp.y (yylex): Ditto.
777 * event-top.c (command_line_handler): Ditto.
778 * environ.c (get_in_environ): Ditto.
779 (set_in_environ): Ditto.
780 * dwarfread.c (handle_producer): Ditto.
781 * dbxread.c (process_one_symbol): Ditto.
782 * c-typeprint.c (c_type_print_base): Ditto.
783 * c-exp.y (yylex): Ditto.
784
0b603eba
AC
7852003-11-06 Andrew Cagney <cagney@redhat.com>
786 Jeff Johnston <jjohnstn@redhat.com>
787
788 * target.c (add_target): Only set "to_xfer_partial" when NULL.
789 (init_dummy_target): Set "to_xfer_partial".
790
9cedbfec
AC
7912003-11-06 Andrew Cagney <cagney@redhat.com>
792
793 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
794 REGISTER_CONVENTION.
795
26bb91f3
DJ
7962003-11-06 Daniel Jacobowitz <drow@mvista.com>
797
798 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
799 static.
800
0bde7532
DJ
8012003-11-06 Daniel Jacobowitz <drow@mvista.com>
802
803 * breakpoint.c (remove_breakpoint): Take an bp_location
804 instead of a breakpoint argument. Check the bp_location's type.
805 Fix a reversed condition for hardware breakpoints.
806
807 (insert_bp_location): Update call to remove_breakpoint.
808 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
809 (remove_hw_watchpoints): Likewise.
810 (reattach_breakpoints): Likewise.
811 (detach_breakpoints): Likewise.
812 (delete_breakpoint): Likewise.
813
075f6582
DJ
8142003-11-06 Daniel Jacobowitz <drow@mvista.com>
815
816 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
817 (beakpoint_init_inferior): Likewise.
818 (breakpoint_here_p): Likewise. Only check addresses for software
819 or hardware breakpoints.
820 (breakpoint_inserted_here_p): Likewise.
821 (breakpoint_thread_match): Likewise. Correct comment.
822 (bpstat_have_active_hw_watchpoints): Likewise.
823 (check_duplicates): Likewise.
824
879bfdc2
DJ
8252003-11-06 Daniel Jacobowitz <drow@mvista.com>
826
827 * breakpoints.c (insert_bp_location): New function, broken out
828 from insert_breakpoints. Work on an bp_location instead of a
829 breakpoint.
830 (insert_breakpoints): Use it.
831
cf3a9e5b
DJ
8322003-11-06 Daniel Jacobowitz <drow@mvista.com>
833
834 * breakpoint.h (struct bp_location): Add section.
835 (struct breakpoint): Remove section.
836 * breakpoint.c (insert_breakpoints, remove_breakpoint)
837 (breakpoint_here_p, breakpoint_inserted_here_p)
838 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
839 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
840 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
841 section through loc.
842
ffce0d52
DJ
8432003-11-06 Daniel Jacobowitz <drow@mvista.com>
844
845 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
846 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
847
e049a4b5
DJ
8482003-11-06 Daniel Jacobowitz <drow@mvista.com>
849
850 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
851 arguments. Initialize owner and type for the new breakpoint
852 location item.
853 (set_raw_breakpoint): Update call to allocate_bp_location.
854
7cc221ef
DJ
8552003-11-06 Daniel Jacobowitz <drow@mvista.com>
856
857 * breakpoint.h (struct bp_location): Add a chain pointer.
858 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
859 macros.
860 (bp_location_chain): New variable.
861 (allocate_bp_location): New function.
862 (set_raw_breakpoint): Use it.
863 (delete_breakpoint): Remove ->loc from the bp_location_chain.
864
5cab636d
DJ
8652003-11-06 Daniel Jacobowitz <drow@mvista.com>
866
867 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
868 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 869 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
870 * breakpoint.c (condition_command, read_memory_nobpt)
871 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
872 (reattach_breakpoints, update_breakpoints_after_exec)
873 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
874 (breakpoint_init_inferior, breakpoint_here_p)
875 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
876 (breakpoint_thread_match, bpstat_stop_status)
877 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
878 (describe_other_breakpoints, check_duplicates)
879 (make_breakpoint_permanent, create_thread_event_breakpoint)
880 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
881 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
882 (watch_command_1, print_one_exception_catchpoint)
883 (clear_command, breakpoint_re_set_one): Adjust member accesses to
884 use the breakpoint's ->loc.
885 (set_raw_breakpoint): Likewise. Initialize ->loc.
886 (delete_breakpoint): Likewise. Free ->loc.
887
7be0c536
AC
8882003-11-05 Andrew Cagney <cagney@redhat.com>
889
4c7d882e
AC
890 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
891 macro.
892 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
893 * config/i386/tm-cygwin.h
894 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
895 * config/powerpc/tm-linux.h
896 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
897 (at_subroutine_call_instruction_target): Delete declaration.
898 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
899 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
900 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
901
7be0c536
AC
902 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
903 "struct bfd_section" and "struct bfd".
904 * target.h (struct section_table): Ditto.
905 * rs6000-nat.c (xcoff_relocate_core): Ditto.
906 * solib-svr4.c (elf_locate_base): Ditto.
907 * pa64solib.c (dld_cache_t): Ditto.
908 * objfiles.h (struct obj_section): Ditto.
909 * objfiles.c (add_to_objfile_sections): Ditto.
910 * exec.c (bfdsec_to_vmap): Ditto.
911 (add_to_section_table): Ditto.
912 (build_section_table): Ditto.
913 * corelow.c (get_core_register_section): Ditto.
914 * coffread.c (find_linenos): Ditto.
915 * elfread.c (elf_interpreter): Delete #if0'd function.
916
917 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
918 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
919 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
920 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
921
922 * arch-utils.h (generic_cannot_extract_struct_value_address):
923 Delete declaration.
924 * wince.c (_initialize_wince): Fix multi-line string.
925 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
926
d8fe84e3
EZ
9272003-11-05 Elena Zannoni <ezannoni@redhat.com>
928
929 * top.c (execute_command): Fix broken logic for command execution
930 while inferior is running in async mode.
931
cbdfc7c0
MK
9322003-11-06 Mark Kettenis <kettenis@gnu.org>
933
934 * dwarf2-frame.c (execute_cfa_program): Mark register as
935 REG_SAVED_REG for DW_CFA_register opcode.
936
dac94105
MK
9372003-11-05 Mark Kettenis <kettenis@gnu.org>
938
939 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
940 %rsp, %rip and %eflags to match ABI-change.
941
85bf2b91
JJ
9422003-11-05 Jeff Johnston <jjohnstn@redhat.com>
943
944 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
945 (ia64_gdbarch_init): Don't bother calculating the os.
946 Instead use the gdbarch_info struct and look at the osabi field.
947 Also use gdbarch_list_lookup_by_info() to look for a
948 candidate gdbarch.
949
cd31fb03
KB
9502003-11-05 Kevin Buettner <kevinb@redhat.com>
951
952 * frv-tdep.c (frv_register_byte): Delete.
953 (frv_extract_return_value, frv_store_return_value)
954 (frv_extract_struct_value_address): Don't call frv_register_byte().
955 Convert to non-deprecated form.
956 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
957 Convert calls to set_gdbarch_deprecated_extract_return_value(),
958 set_gdbarch_deprecated_store_return_value(), and
959 set_gdbarch_deprecated_extract_struct_value_address() into
960 non-deprecated forms.
961
0a056982
AC
9622003-11-05 Andrew Cagney <cagney@redhat.com>
963
964 * mips-tdep.c (mips_dump_tdep): Do not print
965 PRINT_EXTRA_FRAME_INFO.
966 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
967 Rename PRINT_EXTRA_FRAME_INFO.
968 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
969 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
970 (mips_print_extra_frame_info): Delete declaration.
971 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
972
29e0a062
EZ
9732003-11-05 Elena Zannoni <ezannoni@redhat.com>
974
975 * coffread.c (coff_symtab_read): Remove passing of info parameter
976 to prim_record_minimal_symbol_and_info.
977
8af580fc
EZ
9782003-11-05 Elena Zannoni <ezannoni@redhat.com>
979
980 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
981 (decode_base_type): Delete ifdeffed out code.
982
507836c0
AC
9832003-11-04 Andrew Cagney <cagney@redhat.com>
984
985 * symtab.c (find_active_alias): Delete function.
986 (lookup_block_symbol): Delete alias code.
987 * stabsread.c (resolve_live_range): Delete function.
988 (add_live_range): Delete function.
989 (resolve_symbol_reference): Delete function.
990 (define_symbol): Delete live range and alias code.
991 (scan_file_globals): Delete alias code.
992 * symtab.h (SYMBOL_RANGES): Delete macro.
993 (struct range_list): Delete structure.
994 (struct symbol): Delete field "ranges".
995 (SYMBOL_ALIASES): Delete macro.
996 (struct alias_list): Delete structure.
997 (struct symbol): Delete field "aliases".
998
1083b3bc
MS
9992003-11-04 Michael Snyder <msnyder@redhat.com>
1000
1001 * MAINTAINERS: Remove myself as owner of breakpoints and
1002 of sparc/solaris.
1003
474e5826
CV
10042003-11-03 Corinna Vinschen <vinschen@redhat.com>
1005
1006 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1007 (sh_sh4al_dsp_register_name): Ditto.
1008 (sh4_nofpu_show_regs): Ditto.
1009 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1010 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1011
2160782c
AC
10122003-11-03 Andrew Cagney <cagney@redhat.com>
1013
1014 * bcache.c: Include "gdb_assert.h".
1015 (struct bcache): Add fields "expand_count" and
1016 "expand_hash_count".
1017 (expand_hash_table): Update the expand counts.
1018 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1019 on object sizes and hashes.
1020 * Makefile.in (bcache.o): Update dependencies.
1021
85302095
AC
10222003-11-03 Andrew Cagney <cagney@redhat.com>
1023
1024 * exec.c (xfer_memory): Eliminate xfer_fn.
1025
526eef89
KB
10262003-10-31 Kevin Buettner <kevinb@redhat.com>
1027
1028 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1029 (opcodes/frv-desc.h): Include.
1030 (iacc0h_regnum, iacc0l_regnum): Define.
1031 (last_spr_regnum, frv_num_regs): Update.
1032 (new_variant): Don't supply default names for holes in the SPRs.
1033 Supply names for iacc0h_regnum and iacc0l_regnum.
1034 (frv_register_type): Use symbolic constants first_fpr_regnum and
1035 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1036 builtin_type_int instead of builtin_type_int32.
1037 (frv_register_sim_regno): New function.
1038 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1039 * Makefile.in (gdb_sim_frv_h): Define.
1040 (frv-tdep.o): Update dependencies.
1041
9e815ec2
AC
10422003-10-31 Andrew Cagney <cagney@redhat.com>
1043
1044 * avr-tdep.c (avr_frame_this_id): Do not call
1045 deprecated_inside_entry_file.
1046 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1047 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1048 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1049 * arm-tdep.c (arm_prologue_this_id): Ditto.
1050 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1051
e372db49
JB
10522003-10-31 Jim Blandy <jimb@redhat.com>
1053
1054 * elfread.c (elf_symtab_read): Allocate correct number of tail
1055 elements to sectinfo structure. (Fix from Woody LaRue.)
1056
e8bcf01f
AC
10572003-10-31 Andrew Cagney <cagney@redhat.com>
1058
1059 * stack.c (return_command): Use get_frame_type, instead of
1060 CALL_DUMMY_HAS_COMPLETED.
1061 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1062 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1063
4c05fe53
MK
10642003-10-31 Mark Kettenis <kettenis@gnu.org>
1065
1066 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1067 explicitly specify size of array.
1068 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1069 TDEP->sc_num_regs.
1070
c8b91b89
AC
10712003-10-31 Andrew Cagney <cagney@redhat.com>
1072
1073 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1074 function.
1075 (s390_gdbarch_init): Set extract_struct_value_address.
1076 * arch-utils.c (generic_cannot_extract_struct_value_address):
1077 Delete function.
1078 * arch-utils.h (generic_cannot_extract_struct_value_address):
1079 Delete definition.
1080
fdfb6fc8
MK
10812003-10-31 Mark Kettenis <kettenis@gnu.org>
1082
1083 * i386-linux-nat.c (fetch_core_registers): Remove.
1084 (linux_elf_core_fns): Remove.
1085 (_initialize_i386_linux_nat): Remove.
1086
2f4950cd
AC
10872003-10-31 Andrew Cagney <cagney@redhat.com>
1088
1089 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1090 "exec.h".
1091 (exec_entry_point): New function.
1092 (enable_break): Create a "tmp_bfd_target", use that and
1093 entry_point_address when computing the relocation offset.
1094 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1095 * Makefile.in (solib-svr4.o): Update dependencies.
1096
bba2d28d
AC
10972003-10-31 Andrew Cagney <cagney@redhat.com>
1098
1099 * defs.h (XZALLOC): Define.
1100 * target.h (struct target_ops): Add "to_data";
1101 * bfd-target.h, bfd-target.c: New files.
1102 * Makefile.in (SFILES): Add "bfd-target.c".
1103 (COMMON_OBS): Add "bfd-target.o".
1104 (bfd-target.o): Specify dependencies.
1105 (bfd_target_h): Define.
1106 * defs.h (XZALLOC): Define.
1107
6066c3de
AC
11082003-10-31 Andrew Cagney <cagney@redhat.com>
1109
1110 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1111 adjust_breakpoint_address.
1112 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1113 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1114 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1115 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1116
4b8a223f
AC
11172003-10-31 Andrew Cagney <cagney@redhat.com>
1118
1119 * target.h (struct target_ops): Replace "to_read_partial" and
1120 "to_write_partial" with "to_xfer_partial". Update comments.
1121 * target.c (debug_to_write_partial): Delete function.
1122 (debug_to_xfer_partial): Replace debug_to_read_partial.
1123 (add_target, update_current_target, setup_target_debug): Set
1124 "to_xfer_partial" instead of "to_read_partial" and
1125 "to_write_partial".
1126 (default_xfer_partial): Replace "default_write_partial".
1127 (default_read_partial): Delete.
1128 (target_read_partial, target_write_partial): Call
1129 "to_xfer_partial".
1130 * remote.c (init_remote_ops): Set "to_xfer_partial".
1131 (init_remote_async_ops): Ditto.
1132 (remote_xfer_partial): Replace "remote_read_partial".
1133
66a72d25
MK
11342003-10-31 Mark Kettenis <kettenis@gnu.org>
1135
1136 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1137 registers in `fxsave' format.
1138 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1139
9a12a2a0
MK
11402003-10-30 Mark Kettenis <kettenis@gnu.org>
1141
e9f1aad5
MK
1142 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1143 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1144 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1145
bb489b3c
MK
1146 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1147 specify size of array.
1148 (i386_linux_init_abi): Remove initialization of
1149 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1150 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1151
da285bc4
MK
1152 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1153 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1154 core-regset.o.
1155
9a12a2a0
MK
1156 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1157 the ELF header.
1158
0e24ac5d
MK
11592003-10-29 Mark Kettenis <kettenis@gnu.org>
1160
6d6d8e9c
MK
1161 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1162 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1163 core-regset.o.
1164
25e60c9b
MK
1165 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1166
0e24ac5d
MK
1167 * corelow.c: Include "arch-utils.h", "regset.h" and
1168 "gdb_assert.h".
1169 (core_gdbarch): New variable.
1170 (sniff_core_bfd): Don't sniff if we have support for register sets
1171 in CORE_GDBARCH.
1172 (core_close): Reset CORE_GDBARCH.
1173 (core_open): Initialize CORE_GDBARCH.
1174 (get_core_register_section): Use register sets if they are
1175 supported by CORE_GDBARCH.
1176 (get_core_registers): Don't print error message if we have support
1177 for register sets in CORE_GDBARCH.
1178
0a0a4ac3
AC
11792003-10-29 Andrew Cagney <cagney@redhat.com>
1180
1181 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1182 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1183
7b097ae3
MK
11842003-10-29 Mark Kettenis <kettenis@gnu.org>
1185
1186 * objfiles.h (clear_objfile_data): New prototype.
1187 * objfiles.c (clear_objfile_data): New function.
1188 * symfile.c (reread_symbols): Clear per-objfile data.
1189
46f45a4a
JJ
11902003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1191
1192 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1193 printf_unfiltered instead of printf_filtered for output messages.
1194 (add_symbol_file_command): Ditto.
1195 (reread_symbols): Ditto.
1196 (overlay_auto_command): Ditto.
1197 (overlay_manual_command): Ditto.
1198 (overlay_off_command): Ditto.
1199
2b026650
MK
12002003-10-27 Mark Kettenis <kettenis@gnu.org>
1201
1202 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1203 (gdbarch_from_bfd): New function.
1204 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1205 deprecated_select_gdbarch_hack.
1206 * arch-utils.h (gdbarch_from_bfd): New prototype.
1207
0bcad584 12082003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1209
1210 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1211 arch_info. Use warning instead of fprintf_filtered. Do not use
1212 deprecated bfd_printable_arch_mach.
1213
7f398216
KB
12142003-10-26 Kevin Buettner <kevinb@redhat.com>
1215
1216 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1217 Delete.
1218 (frv_register_type): Rename from frv_register_virtual_type. Add
1219 ``struct gdbarch *'' parameter.
1220 (frv_gdbarch_init): Delete calls to the following functions:
1221 set_gdbarch_deprecated_size(),
1222 set_gdbarch_deprecated_register_bytes(),
1223 set_gdbarch_deprecated_register_raw_size(),
1224 set_gdbarch_deprecated_max_register_raw_size(),
1225 set_gdbarch_deprecated_register_virtual_size(),
1226 set_gdbarch_deprecated_max_register_virtual_size(),
1227 set_gdbarch_deprecated_register_virtual_size(),
1228 set_gdbarch_deprecated_register_virtual_type().
1229 Add call to function set_gdbarch_register_type().
1230
bcf48cc7
MK
12312003-10-26 Mark Kettenis <kettenis@gnu.org>
1232
6c7de422
MK
1233 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1234 FDOFF_REGNUM): Remove defines.
1235 * win32-nat.c (do_child_fetch_inferior_registers): Include
1236 "i387-tdep.h".
3e685d41 1237 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1238 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1239 undefine I387_ST0_REGNUM.
1240
f783586b
MK
1241 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1242 * x86-64-tdep.c (x86_64_store_return_value): Use
1243 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1244
bcf48cc7
MK
1245 Change register numbers to enumartion values.
1246 * i386-tdep.h (enum i386_regnum): New.
1247 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1248 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1249 I386_ST0_REGNUM): Remove defines.
1250 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1251 I386_EDI_REGNUM): Remove defines.
1252
b6591e8b
AC
12532003-10-24 Andrew Cagney <cagney@redhat.com>
1254
1255 * target.c: Include "gdbcore.h".
1256 (get_target_memory, get_target_memory_unsigned): New functions.
1257 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1258 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1259 Use get_target_memory_unsigned.
1260 * Makefile.in (target.o): Update dependencies.
1261
5f724446
AC
12622003-10-24 Andrew Cagney <cagney@redhat.com>
1263
ce2826aa
AC
1264 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1265 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1266 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1267 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1268 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1269
5f724446
AC
1270 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1271 (can_run_code_for): Use the OO term "singleton".
1272
fc70c2a0
AC
12732003-10-23 Andrew Cagney <cagney@redhat.com>
1274
1275 * Makefile.in (stack.o): Add $(regcache_h).
1276 * stack.c: Include "regcache.h"
1277 (return_command): Rewrite. Use get_frame_id and
1278 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1279 about unhandled return-values.
1280 * value.h (set_return_value): Delete declaration.
1281 * values.c (set_return_value): Delete function.
1282
4afcc598
JJ
12832003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1284
1285 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1286 (pseudo_regs): Add comment regarding register stack registers.
1287 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1288 (floatformat_valid): New static routine.
1289 (floatformat_ia64_ext): Add name field and set up is_valid routine
1290 to floatformat_valid().
1291 (examine_prologue): For the previous cfm, use
1292 frame_unwind_register()
1293 if the cfm is not stored in a register-stack register. Save the
1294 previous cfm value in the prev_cfm field. Add debug output.
1295 (ia64_frame_this_id): Use frame_id_build_special() to also register
1296 the bsp. Add debug output.
1297 (ia64_sigtramp_frame_this_id): Ditto.
1298 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1299 registers and also add some checks for framelessness before accepting
1300 current register values for fields such as return address. For cfm,
1301 use the cached prev_cfm field if available. Add comment to explain
1302 PSR logic. Add debug output.
1303 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1304 as part of initialization.
1305 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1306 calculated. Cache the bsp and cfm values.
1307 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1308 instead of using ia64_frame_prev_register() which doesn't expect most
1309 registers to be saved. The saved values for bsp and sp
1310 can be taken from the cache. Add debug output.
1311 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1312 the bsp.
1313
6cfae0bc
JB
13142003-10-23 Jim Blandy <jimb@redhat.com>
1315
1316 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1317 architecture the current arch can run code for --- but not if it's
1318 a superset.
1319 (can_run_code_for): New function.
1320
fcd182f9
JW
13212003-10-22 James E Wilson <wilson@specifixinc.com>
1322
1323 * MAINTAINERS: Move myself from paper trail section back to write
1324 after approval section.
1325
4646aa9d
AC
13262003-10-22 Andrew Cagney <cagney@redhat.com>
1327
1328 * exec.h: New file.
1329 * win32-nat.c: Include "exec.h".
1330 * solib.c: Include "exec.h".
1331 * target.h (build_section_table): Delete declaration.
1332 * somsolib.c: Include "exec.h".
1333 (exec_ops): Delete extern declaration.
1334 * rs6000-nat.c: Update copyright. Include "exec.h".
1335 (exec_ops): Delete extern declaration.
1336 * pa64solib.c: Update copyright. Include "exec.h".
1337 (exec_ops): Delete extern declaration.
1338 * exec.c: Update copyright. Include "exec.h".
1339 * corelow.c: Update dependencies. Include "exec.h".
1340 * Makefile.in (exec_h): Define.
1341 (exec.o, somsolib.o): Update dependencies.
1342 (pa64solib.o, corelow.o): Update dependencies.
1343
0088c768
AC
13442003-10-22 Andrew Cagney <cagney@redhat.com>
1345
1346 * target.c: Include "gdb_assert.h" (target_read): Call
1347 "target_read_partial", not "target_write_partial".
1348 (default_read_partial, default_write_partial): New function.
1349 (target_read_partial, target_write_partial): Simplify, assume that
1350 there is always a read/write method.
1351 (update_current_target, add_target): Always set "to_read_partial"
1352 and "to_write_partial".
1353 (target_write, target_read): Fail on a zero byte transfer.
1354 * Makefile.in (target.o): Update dependencies.
1355 * target.h: Update copyright date.
1356 (target_object): Fix typo.
1357
e2d0e7eb
AC
13582003-10-22 Andrew Cagney <cagney@redhat.com>
1359
1360 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1361 multi-arch method, add "targ" parameter.
1362 (struct target_ops): Declare.
1363 * gdbarch.h, gdbarch.c: Re-generate.
1364 * Makefile.in (c-valprint.o): Update dependencies.
1365 * arch-utils.h: Update copyright.
1366 (convert_from_func_ptr_addr_identity): Declare.
1367 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1368 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1369 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1370 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1371 * infcall.c (find_function_addr, call_function_by_hand): Update.
1372 * c-valprint.c: Include "target.h".
1373 (print_function_pointer_address): Update.
1374
f1c07ab0
AC
13752003-10-22 Andrew Cagney <cagney@redhat.com>
1376
1377 * target.c (target_close): New function.
1378 (debug_to_close): Use "target_close".
1379 (push_target): Use "target_close".
1380 (unpush_target): Use "target_close".
1381 (pop_target): Use "target_close".
1382 * target.h (struct target_ops): Add "to_xclose".
1383 (target_open): Delete macro. Move comment to "to_open".
1384 (target_close): Replace macro with function that takes a target.
1385 * top.c (quit_target): Pass "current_target" to "target_close".
1386
5520a790
EZ
13872003-10-21 Elena Zannoni <ezannoni@redhat.com>
1388
1389 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1390 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1391 * symtab.h (lookup_minimal_symbol_text): Update.
1392 * breakpoint.c (create_overlay_event_breakpoint,
1393 create_longjmp_breakpoint): Update callers.
1394 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1395 * symtab.c (find_pc_sect_line): Ditto.
1396
caa92b73
AC
13972003-10-21 Andrew Cagney <cagney@redhat.com>
1398
1399 * target.c (errno): Delete extern declaration.
1400
aa2a9a3c
JJ
14012003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1402
1403 * ia64-tdep.c: Change all occurrences of
1404 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1405 (ia64_frame_prev_register): Minor whitespace change.
1406
4beec2b7
MC
14072003-10-20 Michael Chastain <mec@shout.net>
1408
1409 * config/djgpp/fnchange.lst: Add lines for:
1410 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1411 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1412 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1413 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1414 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1415 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1416 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1417
92ad9cd9
AC
14182003-10-20 Andrew Cagney <cagney@redhat.com>
1419
1420 * values.c (register_value_being_returned): Update comments. Use
1421 "gdbarch_return_value" when available.
1422 (using_struct_return): Ditto.
1423 (set_return_value): Ditto. Use "gdbarch_return_value" when
1424 available.. Print a warning, and not an error, when an unhandled
1425 return type is encountered.
1426 * infcmd.c: Include "gdb_assert.h".
1427 (print_return_value): When gdbarch_return_value_p, and using
1428 struct return, assume that the value is not available.
1429 * defs.h (return_value_convention): Define.
1430 * gdbarch.sh (gdbarch_return_value): New predicate method.
1431 * gdbarch.h, gdbarch.c: Re-generate
1432 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1433
198beae2
AC
14342003-10-20 Andrew Cagney <cagney@redhat.com>
1435
1436 * symtab.c: Replace "struct sec" with "struct bfd_section".
1437 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1438
24d693a6 14392003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1440
1441 * config/djgpp/fnchange.lst: Add lines for:
1442 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1443 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1444 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1445
21ad8dc3
MK
14462003-10-19 Mark Kettenis <kettenis@gnu.org>
1447
1448 * amd64fbsd-nat.c (fetch_inferior_registers,
1449 store_inferior_registers): Remove functions.
1450 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1451
cced5e27
MK
14522003-10-18 Mark Kettenis <kettenis@gnu.org>
1453
1454 Add NetBSD/amd64 native configuration:
1455 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1456 * amd64nbsd-tdep.c: New file.
1457 * amd64nbsd-nat.c: New file.
1458 * amd64bsd-nat.c: New file.
1459 * config/i386/nbsd64.mh: New file.
1460 * config/i386/nbsd64.mt: New file.
1461 * configure.host: Add x86_64-*-netbsd*.
1462 * configure.tgt: Add x86_64-*-netbsd*.
1463 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1464 New targets.
1465 * NEWS (New native configurations): Mention NetBSD/amd64.
1466
666de3fd
MC
14672003-10-17 Michael Chastain <mec@shout.net>
1468
1469 * config/djgpp/fnchange.lst: Remove dead lines for:
1470 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1471 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1472 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1473 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1474 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1475 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1476 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1477 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1478 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1479 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1480 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1481 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1482 gdb/config/sparc/tm-sparclite.h,
1483 gdb/gdbtk/generic/ChangeLog-2001,
1484 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1485 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1486 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1487 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1488 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1489 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1490 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1491 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1492 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1493 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1494 itcl/iwidgets3.0.0/demos/fileselectionbox,
1495 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1496 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1497 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1498 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1499 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1500 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1501 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1502 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1503 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1504 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1505 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1506 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1507 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1508 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1509 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1510 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1511 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1512 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1513 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1514 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1515 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1516 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1517 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1518 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1519 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1520 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1521 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1522 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1523 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1524 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1525 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1526 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1527 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1528 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1529 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1530 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1531 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1532 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1533 itcl/iwidgets3.0.0/demos/scrolledframe,
1534 itcl/iwidgets3.0.0/demos/scrolledhtml,
1535 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1536 itcl/iwidgets3.0.0/demos/scrolledtext,
1537 itcl/iwidgets3.0.0/demos/selectionbox,
1538 itcl/iwidgets3.0.0/demos/selectiondialog,
1539 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1540 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1541 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1542 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1543 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1544 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1545 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1546 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1547 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1548 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1549 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1550 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1551 itcl/iwidgets3.0.0/doc/selectionbox.n,
1552 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1553 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1554 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1555 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1556 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1557 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1558 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1559 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1560 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1561 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1562 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1563 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1564 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1565 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1566 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1567 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1568 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1569 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1570 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1571 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1572 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1573 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1574 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1575 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1576 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1577 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1578 itcl/iwidgets3.0.0/tests/selectionbox.test,
1579 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1580 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1581 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1582 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1583 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1584 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1585 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1586 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1587 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1588 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1589 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1590 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1591 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1592 tk/mac/tkMacProjects.sit.hqx.
1593
1e3ff5ad
AC
15942003-10-17 Andrew Cagney <cagney@redhat.com>
1595
8db32d44
AC
1596 * target.c (target_section_by_addr): New function.
1597 (do_xfer_memory): Use "target_section_by_addr".
1598 * target.h (target_section_by_addr): Declare.
1599
1e3ff5ad
AC
1600 * target.h (struct target_ops): Add "to_read_partial" and
1601 "to_write_partial", delete "to_query".
1602 (target_read_partial, target_write_partial): Declare.
1603 (target_read, target_write): Declare.
1604 (target_query): Delete macro.
1605 * target.c (target_read_partial): New function.
1606 (target_write_partial, target_read, target_write): New function.
1607 (update_current_target): Delete inheritance of "to_query". Add
1608 comments about "to_read_partial" and "to_write_partial".
1609 (debug_to_partial_read, debug_to_partial_write): New functions.
1610 (debug_to_query): Delete function.
1611 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1612 instead of "to_query".
1613 * remote.c (remote_read_partial): Replace "remote_query".
1614 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1615 (init_remote_async_ops): Ditto.
1616 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1617 "target_read_partial" instead of "target_query".
1618 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1619 Use "target_read_partial" instead of "target_query".
1620
48c66725
JJ
16212003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1622
1623 * frame.h (struct frame_id): Add new field: special_addr.
1624 (frame_id_build_special): New prototype.
1625 * frame.c (frame_id_build_special): New function.
1626 (frame_id_build): Change to call frame_id_build_special().
1627 (frame_id_eq): Change to also test special_addr field.
1628 (frame_id_inner): Update comment.
1629
7998dfc3
AC
16302003-10-17 Andrew Cagney <cagney@redhat.com>
1631
1632 * target.c (update_current_target): Perform the target cleanup.
1633 Put the target stack beneath the squashed "current_target".
1634 (add_target): Delete disabled call to "cleanup_target".
1635 (cleanup_target): Delete function.
1636 (push_target, unpush_target): Do not call "cleanup_target".
1637
9c04404e 16382003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1639
1640 * target.c (target_stack): Change to a static target_ops.
1641 (update_current_target): Walk the "struct target_ops" stack.
1642 (pop_target, do_xfer_memory, target_info): Ditto.
1643 (find_target_beneath): Ditto.
1644 (push_target): Rewrite to use the "struct target_ops" stack.
1645 (unpush_target): Ditto.
1646 * target.h (struct target_stack_item): Delete definition.
1647 (target_stack): Delete declaration.
1648 (struct target_ops): Add field "beneath".
1649
c98a2b49 16502003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1651
1652 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1653 declaration.
1654 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1655 (h8300_examine_prologue): Use h8300_normal_mode flag
1656 (h8300_gdbarch_init): Set architecture info for normal mode
1657
506fb367
DJ
16582003-10-16 Daniel Jacobowitz <drow@mvista.com>
1659
1660 * remote.c (remote_protocol_vcont): New variable.
1661 (set_remote_protocol_vcont_packet_cmd): New function.
1662 (show_remote_protocol_vcont_packet_cmd): New function.
1663 (init_all_packet_configs): Handle remote_protocol_vcont.
1664 (remote_vcont_probe): New function.
1665 (remote_vcont_resume): New function.
1666 (remote_resume): Use it.
1667 (remote_async_resume): Call remote_resume.
1668 (_initialize_remote): Add verbose-resume packet commands.
1669
65815ea1
AC
16702003-10-16 Andrew Cagney <cagney@redhat.com>
1671
1672 * infrun.c (handle_inferior_event): Add comment about
1673 "frame_id_inner" being too weak.
1674
40324f1b
EZ
16752003-10-16 Elena Zannoni <ezannoni@redhat.com>
1676
1677 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1678 second parameter, which is always null. Remove
1679 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1680 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1681 accordingly.
1682 * somsolib.c (som_solib_create_inferior_hook,
1683 som_solib_desire_dynamic_linker_symbols): Update callers.
1684 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1685
16862003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1687
1688 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1689 debug interface, SDI (Scalable Debug Interface).
1690 * NEWS: Mention m32r SDI protocol was supported.
1691 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1692 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1693
51931cbb
JJ
16942003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1695
1696 * ia64-linux-tdep.c: Include gdbcore.h.
1697 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1698 (ia64_linux_sigcontext_register_addr): Find the address of the
1699 sigcontext area stored in the sigframe instead of using
1700 a magic offset constant.
1701
84e7fd53
AC
17022003-10-15 Andrew Cagney <cagney@redhat.com>
1703
1704 * remote.c (remote_search): Delete function.
1705 * target.h (target_search): Delete disabled macro.
1706 (struct target_ops): Delete disabled field "to_search".
1707
0f4d7c52
KB
17082003-10-14 Kevin Buettner <kevinb@redhat.com>
1709
1710 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1711 instead of deprecated_inside_entry_file().
1712
2e952408
CV
17132003-10-14 Corinna Vinschen <vinschen@redhat.com>
1714
1715 * sh-tdep.c: Fix copy/paste hangover in comment.
1716 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1717 mode.
1718 (sh3e_sh4_extract_return_value): Ditto.
1719
7e86466e
RH
17202003-10-13 Richard Henderson <rth@redhat.com>
1721
1722 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1723 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1724 match c_val_print a bit closer.
1725
46a16dba
KB
17262003-10-13 Kevin Buettner <kevinb@redhat.com>
1727
1728 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1729 (frv_gdbarch_adjust_breakpoint_address): New function.
1730 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1731 method.
1732
76897487
KB
17332003-10-13 Kevin Buettner <kevinb@redhat.com>
1734
1735 * breakpoint.h (struct breakpoint): Add new member
1736 ``requested_address''.
1737 * breakpoint.c (breakpoint_adjustment_warning)
1738 (adjust_breakpoint_address): New static functions.
1739 (print_it_typical): Issue warning if breakpoint's address is different
1740 from its requested address.
1741 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1742 (breakpoint_re_set_one): Set breakpoint's
1743 ``requested_address'' field. Set ``address'' field to the
1744 result of calling adjust_breakpoint_address() on the requested
1745 address.
1746
a1131521
KB
17472003-10-13 Kevin Buettner <kevinb@redhat.com>
1748
1749 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1750 * gdbarch.h, gdbarch.c: Regenerate.
1751
6ce6d90f
MK
17522003-10-11 Mark Kettenis <kettenis@gnu.org>
1753
155c1d33
MK
1754 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1755 TDEP->sc_num_regs.
1756
8a96bc77
MK
1757 * i386fbsd-tdep.c: New file.
1758 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1759 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1760 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1761 i386bsd-tdep.c.
1762 (_initialize_i386fbsd_tdep): New function.
1763 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1764 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1765 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1766 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1767 TDEP->sc_num_regs.
1768 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1769 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1770 to initialize TDEP->sc_num_regs.
1771 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1772 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1773 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1774 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1775 FreeBSD ELF OS/ABI's here.
1776 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1777 (i386fbsd-tdep.o): New target.
1778 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1779 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1780
477f40d1
MK
1781 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1782 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1783 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1784 in initialization of TDEP->sc_num_regs.
1785
c6b33596
MK
1786 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1787 (x86_64_init_abi): Initialize regset_from_core_section if
1788 appropriate.
1789
8446b36a
MK
1790 * i386-tdep.c (i386_regset_from_core_section): New function.
1791 (i386_gdbarch_init): Initialize regset_from_core_section if
1792 appropriate.
1793 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1794
c783cbd6
MK
1795 * i386-tdep.h (struct regset): Declare opaque.
1796
6ce6d90f
MK
1797 * gdbarch.sh (regset_from_core_section): New method.
1798 (struct regset): Declare opaque.
1799 * gdbarch.c, gdbarch.h: Regenerated.
1800
b98ed7be
AM
18012003-10-11 Alan Modra <amodra@bigpond.net.au>
1802
1803 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1804 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1805 Correct test for pc within section.
1806
f6214256
MK
18072003-10-11 Mark Kettenis <kettenis@gnu.org>
1808
1809 * gdbarch.sh: Remove trailing whitepsace from comments.
1810
a8f4cde1
RM
18112003-10-08 Roland McGrath <roland@redhat.com>
1812
1813 * gcore.c (make_mem_sec): Function removed, folded into ...
1814 (gcore_create_callback): ... here. To omit a section, clear its
1815 SEC_LOAD bit rather than zeroing its size.
1816 Omit read-only sections only if they correspond to a known disk file.
1817 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1818
74276724
MS
18192003-10-10 Michael Snyder <msnyder@redhat.com>
1820
1821 * d10v-tdep.c: Fix typo in comment.
1822
e754ae69
AC
18232003-10-10 Andrew Cagney <cagney@redhat.com>
1824
1825 * rs6000-tdep.c (e500_store_return_value): Delete function.
1826 (e500_extract_return_value): Delete function.
1827 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1828 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1829 "ppc_sysv_abi_restore_return_value" where applicable.
1830 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1831 (ppc_sysv_abi_extract_return_value): Declare.
1832 (ppc_sysv_abi_broken_store_return_value): Declare.
1833 (ppc_sysv_abi_broken_extract_return_value): Declare.
1834 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1835 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1836 start of file.
1837 (do_ppc_sysv_return_value): New function.
1838 (ppc_sysv_abi_extract_return_value): New function.
1839 (ppc_sysv_abi_store_return_value): New function.
1840 (ppc_sysv_abi_broken_extract_return_value): New function.
1841 (ppc_sysv_abi_broken_store_return_value): New function.
1842 (ppc_sysv_abi_use_struct_convention): Call
1843 do_ppc_sysv_return_value.
1844
8d4ce20a
JB
18452003-10-10 J. Brobecker <brobecker@gnat.com>
1846
1847 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1848 to lookup the main function symbol.
1849
afce3d2a
CV
18502003-10-10 Corinna Vinschen <vinschen@redhat.com>
1851
1852 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1853 types correctly.
1854 (sh_push_dummy_call_fpu): Fix argument passing rules.
1855 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1856 float types.
1857 (sh3e_sh4_store_return_value): Ditto.
1858
7fe958be
EZ
18592003-10-10 Elena Zannoni <ezannoni@redhat.com>
1860
1861 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1862 comment.
1863
3f997a97
CV
18642003-10-10 Corinna Vinschen <vinschen@redhat.com>
1865
1866 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1867 more readable code. Accomodate passing of bitfields.
1868
8be9034a
AC
18692003-10-10 Andrew Cagney <cagney@redhat.com>
1870
1871 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1872 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1873 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1874 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1875 (ppc64_sysv_abi_push_dummy_call): New function.
1876 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1877 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1878 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1879
85a453d5
KI
18802003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1881
1882 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1883 * README: Ditto.
1884 * d10v-tdep.c: Ditto.
1885 * h8300-tdep.c: Ditto.
1886 * remote-e7000.c: Ditto.
1887 * remote-hms.c: Ditto.
1888 * ser-e7kpc.c: Ditto.
1889 * sh-stub.c: Ditto.
1890 * sh-tdep.c: Ditto.
1891 * sh-tdep.h: Ditto.
1892 * sh3-rom.c: Ditto.
1893 * sh64-tdep.c: Ditto.
1894 * top.c: Ditto.
1895 * wince.c: Ditto.
1896 * config/d10v/d10v.mt: Ditto.
1897 * config/sh/embed.mt: Ditto.
1898 * config/sh/linux.mt: Ditto.
1899 * config/sh/tm-linux.h: Ditto.
1900 * config/sh/tm-sh.h: Ditto.
1901 * config/sh/wince.mt: Ditto.
1902
221c12ff
AC
19032003-10-09 Andrew Cagney <cagney@redhat.com>
1904
1905 * ppc-tdep.h (struct type): Declare opaque.
1906 * x86-64-tdep.h (struct regcache): Declare opaque.
1907 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1908 coding style.
1909
ef5200c1
AC
19102003-10-09 Andrew Cagney <cagney@redhat.com>
1911
1912 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1913 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1914 (SOFTWARE_SINGLE_STEP_P): Ditto.
1915 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1916 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1917 (SOFTWARE_SINGLE_STEP_P): Ditto.
1918 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1919 software_single_step to rs6000_software_single_step.
a8f4cde1 1920
9644bbdd
AC
19212003-10-09 Andrew Cagney <cagney@redhat.com>
1922
1923 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1924
db72fa6b
MS
19252003-10-09 Michael Snyder <msnyder@redhat.com>
1926
f3efb16c
MS
1927 * frame.h: Fix typo in comment.
1928 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1929 * d10v-tdep.c: Random whitespace/comment tweaks.
1930
9a5cef92
EZ
19312003-10-09 Elena Zannoni <ezannoni@redhat.com>
1932
1933 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1934 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1935 on stack.
a8f4cde1 1936
9a5cef92
EZ
1937 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1938 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1939 in detail.
a8f4cde1 1940
0f317a0c
DJ
19412003-10-09 Daniel Jacobowitz <drow@mvista.com>
1942
1943 * remote-mips.c (mips_initialize): Remove unneeded call to
1944 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1945
bbab2f46
DJ
19462003-10-09 Daniel Jacobowitz <drow@mvista.com>
1947
1948 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1949 a memory pointer.
1950
550950b8
JJ
19512003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1952
1953 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1954 for any lwp we resume.
1955 (running_callback): Add lwps that have pending status events
1956 against them to be considered running.
1957
15c69bc7
KI
19582003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1959
1960 * m32r-tdep.c : Include "dis-asm.h".
1961 * Makefile.in (m32r-tdep.o): Update dependencies.
1962
51065942
JB
19632003-10-06 J. Brobecker <brobecker@gnat.com>
1964
1965 * completer.h (get_gdb_completer_word_break_characters): Delete.
1966 * completer.c: include language.h.
1967 (gdb_completer_word_break_characters): Delete.
1968 (get_gdb_completer_word_break_characters): Delete.
1969 (location_completer): Use the word break characters of the current
1970 language.
1971 (complete_line): Likewise.
1972 (line_completion_function): Likewise.
1973 (skip_quoted_chars): Likewise.
1974 * Makefile.in (completer.o): Add dependency on language.h.
1975 * top.c (init_main): Set the readline word break characters
1976 to GDB's default word break characters.
1977
6084f43a
JB
19782003-10-06 J. Brobecker <brobecker@gnat.com>
1979
1980 * language.h (language_defn): new field, la_word_break_characters.
1981 * language.c (unknown_language_defn): Set new field to
1982 default_word_break_characters.
1983 (auto_language_defn): Likewise.
1984 (local_language_defn): Likewise.
1985 * ada-lang.c (ada_language_defn): Likewise.
1986 * c-lang.c (c_language_defn): Likewise.
1987 (cplus_language_defn): Likewise.
1988 (asm_language_defn): Likewise.
1989 (minimal_language_defn): Likewise.
1990 * f-lang.c (f_language_defn): Likewise.
1991 * jv-lang.c (java_language_defn): Likewise.
1992 * m2-lang.c (m2_language_defn): Likewise.
1993 * objc-lang.c (objc_language_defn): Likewise.
1994 * p-lang.c (pascal_language_defn): Likewise.
1995 * scm-lang.c (scm_language_defn): Likewise.
1996
944fcfab
AC
19972003-10-06 Andrew Cagney <cagney@redhat.com>
1998
1999 * ppc-sysv-tdep.c: Re-indent.
2000
9f0a5303
JB
20012003-10-06 J. Brobecker <brobecker@gnat.com>
2002
2003 * language.h (default_word_break_characters): Add prototype.
2004 * language.c (default_word_break_characters): New function.
2005
7270b6ed
AS
20062003-10-06 Andreas Schwab <schwab@suse.de>
2007
2008 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2009 with %eax.
2010
a5d61f66
AC
20112003-10-06 Andrew Cagney <cagney@redhat.com>
2012
2013 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2014 "h8500-tdep.c".
2015 (z8k-tdep.o): Delete custom build rule.
2016
28a86f5c
AC
20172003-10-06 Andrew Cagney <cagney@redhat.com>
2018
1bfd8a83
AC
2019 * Makefile.in: Update all dependencies.
2020
17144ef8
AC
2021 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2022 No longer list PA as as obsolete candidate. List m32r as
2023 broken instead of obsolete.
a8f4cde1 2024
a5679ae5
AC
2025 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2026 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2027 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2028 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2029 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2030 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2031 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2032 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2033 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2034 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2035 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2036 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2037 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2038 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2039 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2040 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2041 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2042 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2043 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2044 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2045 * config/z8k/z8k.mt: Ditto.
2046
4a8269c0
AC
2047 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2048 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2049 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2050 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2051 sparclite were removed.
2052 * configure.host, configure.tgt: Remove corresponding tuples.
2053
41989fcd
AC
2054 * breakpoint.c, breakpoint.h: Remove obsolete code.
2055 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2056 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2057 * stabsread.h, xcoffread.c: Ditto.
2058
28a86f5c
AC
2059 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2060 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2061 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2062 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2063
4efdaa0d
DL
20642003-10-06 David Lecomber <dsl@sources.redhat.com>
2065
2066 * f-valprint.c: Reformatting
2067
ae53de43
MK
20682003-10-06 Mark Kettenis <kettenis@gnu.org>
2069
a8bb57e7
MK
2070 * x86-64-tdep.c: Remove duplicate comment.
2071
ae53de43
MK
2072 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2073 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2074 names for return values. This fixes a bug since we looked at %rbx
2075 instead of %rdx.
2076
473f17b0
MK
20772003-10-05 Mark Kettenis <kettenis@gnu.org>
2078
2c261fae
MK
2079 * x86-64-tdep.c: Include "regset.h".
2080
473f17b0
MK
2081 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2082 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2083 sizeof_fpregset.
2084 * i386-tdep.c: Include "regset.h".
2085 (i386_supply_gregset): New function.
2086 (i386_supply_fpregset): New function.
2087 (i386_gdbarch_init): Initialze register set-related members of
2088 TDEP.
2089 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2090 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2091
afd48b75
AC
20922003-10-03 Andrew Cagney <cagney@redhat.com>
2093
2094 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2095 set extract_return_value, store_return_value and
2096 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2097 ppc64_sysv_abi_store_return_value and
2098 ppc64_sysv_abi_use_struct_convention.
2099 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2100 (ppc64_sysv_abi_store_return_value): Declare.
2101 (ppc64_sysv_abi_use_struct_convention): Declare.
2102 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2103 (ppc64_sysv_abi_extract_return_value): New function.
2104 (ppc64_sysv_abi_store_return_value): New function.
2105 (ppc64_sysv_abi_use_struct_convention): New function.
2106 (ppc64_sysv_abi_return_value): New function.
2107
9b540880
AC
21082003-10-03 Andrew Cagney <cagney@redhat.com>
2109
2110 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2111 convert a descriptor to a function when it's in the ".opd"
2112 section.
2113
8748518b
CV
21142003-10-03 Corinna Vinschen <vinschen@redhat.com>
2115
2116 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2117 reg_size to keep GCC silent.
2118
0fd85043
CV
21192003-10-03 Corinna Vinschen <vinschen@redhat.com>
2120
2121 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2122 base for DW_EH_PE_textrel encodings.
2123 (read_encoded_value): Add a DW_EH_PE_textrel case.
2124 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2125 section.
2126
37b517aa
MK
21272003-10-03 Mark Kettenis <kettenis@gnu.org>
2128
2129 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2130
12c266ea
AC
21312003-10-02 Andrew Cagney <cagney@redhat.com>
2132
2133 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2134 REGISTER_RAW_SIZE.
2135 * gdbarch.h, gdbarch.c: Re-generate.
2136 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2137 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2138 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2139 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2140 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2141 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2142 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2143 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2144 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2145 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2146 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2147 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2148 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2149 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2150 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2151 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2152
78ba4af6
JB
21532003-10-02 Jim Blandy <jimb@redhat.com>
2154
2155 * dwarf2read.c (struct die_info): Doc fix.
2156
617daa0e
CV
21572003-10-02 Corinna Vinschen <vinschen@redhat.com>
2158
2159 * sh-tdep.c: Running thru gdb_indent.sh.
2160
e5e33cd9
CV
21612003-10-02 Corinna Vinschen <vinschen@redhat.com>
2162
2163 * sh-tdep.c (sh_justify_value_in_reg): New function.
2164 (sh_stack_allocsize): Ditto.
2165 (flt_argreg_array): New array used for floating point argument
2166 passing.
2167 (sh_init_flt_argreg): New function.
a8f4cde1 2168 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2169 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2170 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2171 Fix argument passing strategy.
2172 (sh_push_dummy_call_nofpu): Ditto.
2173
5fe830e4
AC
21742003-10-01 Andrew Cagney <cagney@redhat.com>
2175
2176 * value.h (register_value_being_returned): Declare. Replace
2177 "value_being_returned".
2178 * infcall.c (call_function_by_hand): Use
2179 register_value_being_returned.
2180 * infcmd.c (print_return_value): Call
2181 "register_value_being_returned", handle struct return locally.
2182 * values.c (register_value_being_returned): New function. Replace
2183 "value_being_returned".
a8f4cde1 2184
5fe830e4 21852003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2186
2187 * linux-proc.c (linux_do_registers): New function.
2188 (linux_make_note_section): Use linux_do_registers in case of
2189 single threaded inferior programs.
2190
64f395bf
AC
21912003-10-01 Andrew Cagney <cagney@redhat.com>
2192
2193 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2194 use STRUCT_ADDR. When not using "struct return convention", pass
2195 "0" to "value_being_returned". Add FIXMEs.
2196 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2197 value_being_returned. Add comments.
2198 * values.c (value_being_returned): Add fixme.
2199 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2200 (hppa_value_returned_from_stack): Add FIXME.
2201
639d11d3
DC
22022003-09-30 David Carlton <carlton@kealia.com>
2203
2204 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2205 'has_children' and 'next' by 'child' and 'sibling'.
2206 (read_comp_unit): Rework algorithm, breaking body into
2207 read_die_and_children and read_die_and_siblings.
2208 (read_die_and_children, read_die_and_siblings): New.
2209 (read_full_die): Add 'has_children' argument; set it instead of
2210 the die's 'has_children' field. Minor formatting cleanup.
2211 (free_die_list): Use die->child and die->sibling instead of
2212 die->next.
2213 (dump_die_list): Ditto.
2214 (sibling_die): Use die->sibling.
2215 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2216 'has_children' and 'next' fields.
a8f4cde1
RM
2217 (process_die, read_file_scope, read_func_scope)
2218 (read_lexical_block_scope, read_structure_scope)
2219 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2220 (read_namespace, read_subroutine_type, dump_die): Ditto.
2221
5bffac25
AC
22222003-09-30 Andrew Cagney <cagney@redhat.com>
2223
2224 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2225 to 224, not 220.
2226
f30992d4
AC
22272003-09-30 Andrew Cagney <cagney@redhat.com>
2228
2229 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2230 REGISTER_VIRTUAL_SIZE.
2231 * gdbarch.h, gdbarch.c: Regenerate.
2232 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2233 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2234 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2235
2e092625
AC
22362003-09-29 Andrew Cagney <cagney@redhat.com>
2237
2238 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2239 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2240 * gdbarch.h, gdbarch.c: Regenerate.
2241 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2242 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2243
2244 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2245 * remote-vxmips.c (vx_read_register): Ditto.
2246 * remote-vx68.c (vx_read_register): Ditto.
2247 * gnu-nat.c (inf_validate_procs): Ditto.
2248
7a5dd6ee
JB
22492003-09-29 J. Brobecker <brobecker@gnat.com>
2250
2251 * infcall.c (call_function_by_hand): Fix build failure
2252 introduced in the previous change to this file.
2253
1fe43d45
AC
22542003-09-29 Andrew Cagney <cagney@redhat.com>
2255
2256 * NEWS: Mention Objective-C.
2257
e28a332c
JG
22582003-09-29 Jerome Guitton <guitton@act-europe.fr>
2259
2260 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2261 test if the register has been saved on the stack.
2262 (arm_scan_prologue_cache): When analysing the instruction
2263 "str lr, [sp, #-4]", save the address where lr has been stored.
2264
9ff63c35
AC
22652003-09-28 Andrew Cagney <cagney@redhat.com>
2266
7f5f525d
AC
2267 * frame.c (frame_read_unsigned_register): Delete function.
2268 * frame.h (frame_read_unsigned_register): Delete declaration.
2269 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2270 get_frame_register_unsigned.
2271 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2272 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2273 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2274
7f5f525d
AC
2275 * frame.h (frame_read_register): Delete declaration.
2276 * frame.c (frame_read_register): Delete function.
2277 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2278 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2279 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2280 * mips-tdep.c (mips_register_to_value): Ditto.
2281 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2282 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2283
2284 * frame.c (frame_read_signed_register): Delete function.
2285 (frame_read_unsigned_register): Update comments.
2286 * frame.h (frame_read_signed_register): Delete declaration.
2287 * h8300-tdep.c (h8300_print_register): Use
2288 get_frame_register_signed.
2289 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2290
9ff63c35
AC
2291 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2292 Rename VALUE_RETURNED_FROM_STACK.
2293 * infcmd.c (print_return_value): Update.
2294 * infcall.c (call_function_by_hand): Update.
2295
41d041d6
MK
22962003-09-28 Mark Kettenis <kettenis@gnu.org>
2297
2298 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2299 regcache argument and reverse the order of the other two
2300 arguments. Remove local regcache variable. Determine
2301 architecture from REGCACHE. Update comments.
2302 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2303 reverse the order of the other two arguments. Remove local
2304 regcache variable. Determine architecture from REGCACHE. Update
2305 comments.
2306 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2307 prototypes. Update comments.
2308 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2309 comment.
2310 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2311 Update.
2312 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2313 * i386-interix-nat.c (supply_fpregset): Update.
2314 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2315 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2316 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2317 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2318 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2319 Update.
2320 * i386obsd-tdep.c (fetch_core_registers): Update.
2321 * i386v4-nat.c (supply_fpregset): Update.
2322 * x86-64-linux-nat.c (supply_fpregset): Update.
2323 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2324
1cb97e17
MK
23252003-09-27 Mark Kettenis <kettenis@gnu.org>
2326
5716833c
MK
2327 * i386-tdep.h: Put opaque declarations in alphabetical
2328 order. Remove spurious whitespace.
2329 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2330 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2331 * i386-tdep.c (MM0_REGNUM): Remove define.
2332 (i386_mmx_regnum_p): Add gdbarch argument.
2333 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2334 Rewrite using new macro definitions for FPU/SSE registers.
2335 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2336 definitions from i387-tdep.h.
2337 (i386_register_name): Update.
2338 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2339 new macro definitions for FPU/SSE registers.
2340 (i386_extract_return_value): Determine whether floating-point
2341 registers are present by examining REGCACHE's architecture.
2342 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2343 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2344 FPU/SSE registers.
2345 (i386_register_type): Update.
2346 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2347 definitions for FPU registers. Use REGCACHE's architecture to
2348 determine the appropriate register numbers.
2349 (i386_pseudo_register_read, i386_pseudo_register_write,
2350 i386_register_reggroup_p): Update.
2351 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2352 TDEP->mm0_regnum.
2353 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2354 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2355 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2356 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2357 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2358 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2359 *' to `void *'.
2360 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2361 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2362 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2363 definitions for FPU/SSE registers.
2364 (FXSAVE_MXCSR_ADDR): New define.
2365 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2366 TDEP->mm0_regnum.
2367 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2368 (I387_ST0_REGNUM): Define.
2369
41d35cb0
MK
2370 * regcache.h (get_regcache_arch): New prototype.
2371 * regcache.c (get_regcache_arch): New function.
2372
54e74f72
MK
2373 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2374 whitespace.
2375
1cb97e17
MK
2376 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2377 Initialize using ARRAY_SIZE.
2378
0968aa8c
AC
23792003-09-27 Andrew Cagney <cagney@redhat.com>
2380
2381 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2382 "init_frame_pc_default".
2383 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2385 * vax-tdep.c (vax_gdbarch_init): Update.
2386 * v850-tdep.c (v850_gdbarch_init): Update.
2387 * sh64-tdep.c (sh64_gdbarch_init): Update.
2388 * s390-tdep.c (s390_gdbarch_init): Update.
2389 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2390 * mcore-tdep.c (mcore_gdbarch_init): Update.
2391 * h8300-tdep.c (h8300_gdbarch_init): Update.
2392 * cris-tdep.c (cris_gdbarch_init): Update.
2393 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2394
54c84734
MK
23952003-09-26 Mark Kettenis <kettenis@gnu.org>
2396
2397 * regset.h: New file.
2398 * Makefile.in (regset_h): Add.
2399
1b1d3794
AC
24002003-09-25 Andrew Cagney <cagney@redhat.com>
2401
2402 * frame.h (deprecated_frame_saved_regs): Rename
2403 get_frame_saved_regs.
2404 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2405 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2406 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2407 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2408 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2409
e6beb428
AC
24102003-09-25 Andrew Cagney <cagney@redhat.com>
2411
2412 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2413 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2414 and Java.
2415 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2416 arm*-*-* do not use the new frame code.
2417
710122da
DC
24182003-09-25 David Carlton <carlton@kealia.com>
2419
2420 * c-exp.y: Remove 'register' declarations.
2421 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2422
79c2c32d
DC
24232003-09-25 David Carlton <carlton@kealia.com>
2424
2425 * c-exp.y: Include cp-support.h. Add qualified_type.
2426 (yylex): Delete nested type hack; add comments.
2427 * cp-namespace.c (cp_lookup_nested_type): New function.
2428 * cp-support.h: Declare cp_lookup_nested_type.
2429 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2430 instead of value_struct_elt_for_reference.
2431 * valops.c: Include cp-support.h.
2432 (value_aggregate_elt): New function.
2433 (value_namespace_elt): Ditto.
2434 (value_struct_elt_for_reference): Make static.
2435 * value.h: Delete declaration of value_struct_elt_for_reference;
2436 add declaration for value_aggregate_elt.
2437 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2438 (valops.o): Ditto.
2439
898c62f5
DJ
24402003-09-25 Daniel Jacobowitz <drow@mvista.com>
2441
2442 * stack.c: Include "reggroups.h".
2443 (frame_info): Only display registers in all_reggroup.
2444 * Makefile.in (stack.o): Update dependencies.
2445
28cd8767
JG
24462003-09-25 Jerome Guitton <guitton@act-europe.fr>
2447
2448 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2449 "add ip, sp #n" in the prologue.
2450 (arm_scan_prologue): Ditto.
2451
a4ab2b5d
JG
24522003-09-25 Jerome Guitton <guitton@act-europe.fr>
2453
2454 * MAINTAINERS (write after approval): Add myself.
2455
3f244638
AS
24562003-09-25 Andreas Schwab <schwab@suse.de>
2457
2458 * m68k-tdep.c: Include "dwarf2-frame.h".
2459 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2460 * Makefile.in (m68k-tdep.o): Update dependencies.
2461
1c0159e0
CV
24622003-09-25 Corinna Vinschen <vinschen@redhat.com>
2463
2464 * sh-tdep.c (struct frame_extra_info): Remove.
2465 (struct sh_frame_cache): New structure.
2466 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2467 (GET_TARGET_REG): Ditto but target register.
2468 (GET_PUSHED_REG): Remove.
2469 (IS_MOV_ARG_TO_REG): New macro.
2470 (IS_MOV_ARG_TO_IND_R14): New macro.
2471 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2472 (IS_MOVW_PCREL_TO_REG): New macro.
2473 (IS_MOVL_PCREL_TO_REG): New macro.
2474 (IS_SUB_REG_FROM_SP): New macro.
2475 (IS_ARG_MOV): Remove.
2476 (IS_MOV_TO_R14): Remove.
2477 (IS_RESTORE_FP): New macro.
2478 (IS_RTS): New macro.
2479 (IS_LDS): New macro.
2480 (IS_MOV_FP_SP): New macro.
2481 (IS_ADD_REG_TO_FP): New macro.
2482 (IS_ADD_IMM_FP): New macro.
2483 (sh_skip_prologue_hard_way): Remove.
2484 (sh_saved_pc_after_call): Remove.
2485 (sh_frame_chain): Remove.
2486 (sh_find_callers_reg): Remove.
a8f4cde1 2487 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2488 (sh_fp_frame_init_saved_regs): Remove.
2489 (sh_init_extra_frame_info): Remove.
2490 (sh_analyze_prologue): New function.
2491 (sh_skip_prologue): Remove deprecated code. Rely on new function
2492 sh_analyze_prologue when after_prologue fails.
2493 (sh_frame_saved_pc): Remove.
2494 (sh_alloc_frame_cache): New function.
2495 (sh_frame_cache): Ditto.
2496 (sh_frame_prev_register): Ditto.
2497 (sh_frame_this_id): Ditto.
2498 (sh_frame_unwind): New structure defining the heuristic frame
2499 sniffer interface.
2500 (sh_frame_sniffer): New function.
2501 (sh_unwind_sp): Ditto.
2502 (sh_unwind_pc): Ditto.
2503 (sh_unwind_dummy_id): Ditto.
2504 (sh_frame_base_address): Ditto.
2505 (sh_frame_base): New structure defining new frame base code.
2506 (sh_in_function_epilogue_p): New function.
2507 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2508 code and to call all new code instead. Initialize dwarf2 and
2509 heuristic frame sniffer.
2510
5f9769d1
PH
25112003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2512
a8f4cde1
RM
2513 * parser-defs.h (struct exp_descriptor): New definition, containing
2514 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2515 evaluating expressions.
2516 (exp_descriptor_standard): Declare new variable.
2517 (print_subexp): Make global and declare here (from expprint.c).
2518 (dump_subexp): Ditto.
2519 (dump_subexp_body_standard): Declare.
2520 (operator_length_standard): Declare.
2521 (op_name_standard): Declare.
2522 (print_subexp): Declare.
2523 (print_subexp_standard): Declare.
2524
2525 * language.h (struct language_defn): Add la_exp_desc field to hold
2526 pointer to table for language-specific operators.
2527 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2528
2529 * parse.c (operator_length): Move most code to new
5f9769d1 2530 operator_length_standard function. Use language-specific information.
a8f4cde1 2531 (operator_length_standard): New function taking most code from
5f9769d1
PH
2532 operator_length.
2533 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2534
2535 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2536 and OP_EXTENDED_LAST.
a8f4cde1
RM
2537
2538 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2539 Make global; remove static declaration.
2540 Move most code to print_subexp_standard.
a8f4cde1 2541 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2542 print_subexp.
2543 (op_name): Add expression to argument signature.
a8f4cde1 2544 Use langauge-specific op_name.
5f9769d1
PH
2545 Move most code to op_name_standard.
2546 (op_name_standard): New function, containing code formerly in op_name.
2547 (dump_subexp): Use new version of op_name function.
2548 Use language-specific dump_subexp_body, and move most existing code to
2549 dump_subexp_body_standard.
2550 (dump_raw_expression): Use new op_name interface.
2551 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2552 (dump_subexp_body_standard): New function, containing code formerly
2553 in dump_subexp_body.
a8f4cde1 2554
5f9769d1
PH
2555 * language.c (unknown_language): Add default la_exp_desc field and
2556 remove evaluate_exp field.
2557 (auto_language): Ditto.
2558 (local_language): Ditto.
2559 * f-lang.c (f_language_defn): Ditto.
2560 * c-lang.c (c_language_defn): Ditto.
2561 (cplus_language_defn): Ditto.
2562 (asm_language_defn): Ditto.
2563 (minimal_language_defn): Ditto.
2564 * p-lang.c (pascal_language_defn): Ditto.
2565 * m2-lang.c (m2_language_defn): Ditto.
2566 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2567
2568 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2569 Java-specific expression evaluator.
2570 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2571 field.
a8f4cde1 2572 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2573 Scheme-specific expression evaluator.
2574 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2575 field.
2576 * objc-lang.c (print_object_command): Take evaluate_exp from the
2577 la_exp_desc field.
a8f4cde1 2578
5f9769d1 2579 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2580
2581 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2582 la_exp_desc's type.
2583 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2584
24daaebc
PH
25852003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2586
2587 * parser-defs.h (operator_length): Declare.
a8f4cde1 2588
24daaebc
PH
2589 * parse.c (length_of_subexp): Use operator_length to get operator
2590 lengths and arities for operators.
2591 Move most code to new operator_length function.
a8f4cde1 2592 (operator_length): New function absorbing most code from
24daaebc
PH
2593 length_of_subexp.
2594 (prefixify_subexp): Remove large case and use operator_length instead.
2595 (parse_exp_1): Use renamings:
a8f4cde1 2596 dump_prefix_expression => dump_raw_expression and
24daaebc 2597 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2598
24daaebc
PH
2599 * expression.h (dump_prefix_expression): Rename to ...
2600 (dump_raw_expression): New name.
2601 (dump_postfix_expression): Rename to ...
2602 (dump_prefix_expression): New name.
a8f4cde1 2603
24daaebc
PH
2604 * expprint.c (dump_subexp): Make global. Add comment.
2605 Move most existing code to dump_subexp_body.
2606 (dump_subexp_body): New function.
2607 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2608 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2609 work before the expression is prefixified.
2610 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2611 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2612 that's what it does.
a8f4cde1 2613 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2614 prefixified expression.
2615 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2616
8c2957c4
JB
26172003-09-22 Jim Blandy <jimb@redhat.com>
2618
2619 * dwarf2read.c (read_array_type): When building the type for an
2620 array of unspecified length, make sure to choose the upper bound
2621 so that the array's total length comes out to be zero --- that's
2622 how we represent such arrays.
2623
592e3010
MC
26242003-09-22 Michael Chastain <mec@shout.net>
2625
2626 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2627
365c70b1
JJ
26282003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2629
2630 * top.c (quit_force): Fix indirect call to quit_target so
2631 a struct qt_args pointer is passed.
2632
5d6eb653
AC
26332003-09-22 Andrew Cagney <cagney@redhat.com>
2634
2635 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2636 * arch-utils.c (init_frame_pc_noop): Delete function.
2637 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2638 "init_frame_pc".
2639 * mips-tdep.c (mips_gdbarch_init): Ditto.
2640 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2641 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2642 declaration.
2643 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2644 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2645 declaration.
2646 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2647
b222a67f
AG
26482003-09-22 Anthony Green <green@redhat.com>
2649
2650 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2651 declaration.
2652
d5b5ac79
AC
26532003-09-20 Andrew Cagney <cagney@redhat.com>
2654
deafb061
AC
2655 * breakpoint.c: Eliminate ARGSUSED.
2656 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2657 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2658 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2659 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2660 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2661 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2662 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2663 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2664 * wince.c, remote-vx.c: Ditto.
2665
d5b5ac79
AC
2666 * cli/cli-script.c: Remove "register" attributes.
2667 * config/pa/tm-hppa.h: Ditto.
2668 * cli/cli-decode.c: Ditto.
2669 * cli/cli-cmds.c: Ditto.
2670
c6316faa
AC
26712003-09-19 Andrew Cagney <cagney@redhat.com>
2672
2673 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2674 DEPRECATED_NPC_REGNUM.
2675 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2676
f4f99b11
CF
26772003-09-19 Christopher Faylor <cgf@redhat.com>
2678
2679 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2680
1708f284
JB
26812003-09-19 Jim Blandy <jimb@redhat.com>
2682
2683 * macrotab.c (macro_include): Use the correct comparison to find
2684 the appropriate place for this inclusion in the list.
2685
b9fbf434
AC
26862003-09-19 Andrew Cagney <cagney@redhat.com>
2687
2688 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2689 (DEPRECATED_HPUX_TEXT_END): Define.
2690 (deprecated_hpux_text_end): Declare.
2691 (struct target_ops): Declare opaque.
2692 * hppah-nat.c (text_end): Make static.
2693 (deprecated_hpux_text_end): New function.
2694 * exec.c (text_end): Delete global variable.
2695 (NEED_TEXT_START_END): Do not define.
2696 (exec_file_attach): Replace code computing "text_end" code with
2697 call to DEPRECATED_HPUX_TEXT_END.
2698
5b03f266
AC
26992003-09-19 Andrew Cagney <cagney@redhat.com>
2700
2701 * utils.c (align_up, align_down): New functions.
2702 * defs.h (align_up, align_down): Declare.
2703 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2704 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2705 and "align_down".
2706 (round_up, round_down): Delete functions.
2707 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2708 "align_down".
2709 (ROUND_DOWN, ROUND_UP): Delete macros.
2710 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2711 * h8300-tdep.c: Replace "round_up" and "round_down" with
2712 "align_up" and "align_down".
2713 (round_up, round_down): Delete macros.
2714 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2715 "align_down".
2716 (ROUND_UP, ROUND_DOWN): Delete macros.
2717
51db5742
JB
27182003-09-18 J. Brobecker <brobecker@gnat.com>
2719
2720 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2721 hard-coded constant. Use the proper machine name instead.
2722
77949794
AC
27232003-09-17 Andrew Cagney <cagney@redhat.com>
2724
2725 * sparc-tdep.c (legacy_register_name): Delete function.
2726 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2727 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2728 * infcmd.c (gdb_register_name): Delete variable.
2729 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2730 REGISTER_NAME and "tm.h".
2731 * gdbarch.h, gdbarch.c: Regenerate.
2732 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2733 REGISTER_NAMES in comments.
2734 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2735 * m68klinux-nat.c (regmap): Ditto.
2736
b55c33cc
JB
27372003-09-17 Jim Blandy <jimb@redhat.com>
2738
2739 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2740
957e27ac
AC
27412003-09-17 Andrew Cagney <cagney@redhat.com>
2742
2743 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2744 (ppcnbsd_init_abi): Set "use_struct_convention" to
2745 "ppcnbsd_use_struct_convention".
2746
192cb3d4
MK
27472003-09-17 Mark Kettenis <kettenis@gnu.org>
2748
2749 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2750 * gdbarch.h, gdbarch.c: Regenerate.
2751 (stabs_argument_has_addr): New architecture method.
2752 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2753 * arch-utils.c: Include "buildsym.h".
2754 (default_stabs_argument_has_addr): New function.
2755 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2756 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2757
efe59759
AC
27582003-09-17 Andrew Cagney <cagney@redhat.com>
2759
2760 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2761 * gdbarch.h, gdbarch.c: Regenerate.
2762 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2763 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2764 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2765 * sparcnbsd-tdep.c: Update.
a8f4cde1 2766
62700349
AC
27672003-09-17 Andrew Cagney <cagney@redhat.com>
2768
2769 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2770 * gdbarch.h, gdbarch.c: Regenerate.
2771 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2772 * d10v-tdep.c, frame.c: Update.
2773 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2774 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2775 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2776 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2777 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2778 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2779 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2780 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2781 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2782 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2783 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2784 * config/pa/nm-hppah.h: Update.
2785
b9ff3018
AC
27862003-09-16 Andrew Cagney <cagney@redhat.com>
2787
2788 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2789 "use_struct_convention" to "ppc_linux_use_struct_convention".
2790 (ppc_linux_use_struct_convention): New function.
2791 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2792 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2793 "rs6000_use_struct_convention".
2794 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2795 declaration.
2796 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2797 Delete function.
2798
aa1ee363
AC
27992003-09-16 Andrew Cagney <cagney@redhat.com>
2800
2801 * buildsym.c: Remove more occurances of "register".
2802 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2803 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2804 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2805 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2806 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2807 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2808 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2809 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2810
f2ea0907
CV
28112003-09-16 Corinna Vinschen <vinschen@redhat.com>
2812
2813 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2814 numbers to enumeration values.
2815 * sh-tdep.c: Accomodate above change.
2816 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2817 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2818 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2819 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2820 (IS_FPUSH): Rename from IS_FMOV.
2821 (sh_extract_struct_value_address): Remove useless comment.
2822 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2823 instead of own local values.
2824 (sh_dump_tdep): Remove.
2825 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2826 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2827
1c704f11
AC
28282003-09-15 Andrew Cagney <cagney@redhat.com>
2829
2830 * doublest.c (convert_floatformat_to_doublest): No longer need to
2831 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2832
ac79b88b
DJ
28332003-09-15 Daniel Jacobowitz <drow@mvista.com>
2834
2835 * values.c (unpack_double): Call floatformat_is_valid.
2836
1c671366
MK
28372003-09-15 Mark Kettenis <kettenis@gnu.org>
2838
de5227fb
MK
2839 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2840 ps_strings into a long.
2841
1c671366
MK
2842 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2843 _initialize_am64fbsd_nat.
2844
a604369a
KB
28452003-09-15 Kevin Buettner <kevinb@redhat.com>
2846
2847 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2848 associated with DW_AT_ranges attribute is out of bounds.
2849
b3cacbee
DL
28502003-09-15 David Lecomber <dsl@sources.redhat.com>
2851
2852 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2853
d0f37bb2
MC
28542003-09-14 Michael Chastain <mec@shout.net>
2855
2856 * config/m68k/nm-apollo68v.h: Delete.
2857 * config/m68k/xm-apollo68v.h: Delete.
2858
69517000
AC
28592003-09-14 Andrew Cagney <cagney@redhat.com>
2860
2861 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2862 * dcache.c: Update copyrights and descriptions.
2863 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2864
ef8b349d
AC
28652003-09-14 Andrew Cagney <cagney@redhat.com>
2866
2867 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2868 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2869
52f0bd74
AC
28702003-09-14 Andrew Cagney <cagney@redhat.com>
2871
2872 * alpha-nat.c: Remove some occurances of "register".
2873 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2874 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2875 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2876 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2877 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2878 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2879 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2880 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2881 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2882 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2883 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2884 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2885 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2886 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2887 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2888 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2889 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2890 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2891 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2892 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2893 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2894 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2895
4a4b3fed
AC
28962003-09-13 Andrew Cagney <cagney@redhat.com>
2897
2898 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2899 * ppc-tdep.h (struct regcache): Declare opaque.
2900 * objfiles.h (struct objfile_data): Declare opaque.
2901 * cp-support.h (struct objfile): Declare opaque.
2902 * linux-nat.h (target_waitstatus): Declare opaque.
2903
2110b94f
MK
29042003-09-14 Mark Kettenis <kettenis@gnu.org>
2905
1c671366
MK
2906 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2907 (stabs_argument_has_addr): New architecture method.
2908 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2909 * arch-utils.c: Include "buildsym.h".
2910 (default_stabs_argument_has_addr): New function.
2911 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2912 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2913
2110b94f
MK
2914 * cris-tdep.c (cris_gdbarch_init): Set
2915 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2916 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2917 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2918 * mips-tdep.c (mips_gdbarch_init): Likewise.
2919 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2920 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2921
48436ce6
AC
29222003-09-13 Andrew Cagney <cagney@redhat.com>
2923
2924 * values.c (using_struct_return): Delete "function" and "funcaddr"
2925 parameters.
2926 * value.h (using_struct_return): Update declaration.
2927 * infcmd.c (finish_command_continuation): Update.
2928 (finish_command): Update.
2929 * infcall.c (call_function_by_hand): Update.
2930 * eval.c (evaluate_subexp_standard): Update.
2931
403d9909
CF
29322003-09-13 Christopher Faylor <cgf@redhat.com>
2933
2934 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2935 SSE registers since gdb will not operate correctly without this.
2936 Restore include file ordering munged in previous change.
2937 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2938
ebf7d56b
MK
29392003-09-13 Mark Kettenis <kettenis@gnu.org>
2940
8e823e25
MK
2941 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2942 REG_STRUCT_HAS_ADDR.
2943 * gdbarch.c, gdbarch.h: Updated.
2944 * infcall.c (call_function_by_hand): Update.
2945 * stabsread.c (define_symbol): Updated.
a8f4cde1 2946
ebf7d56b
MK
2947 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2948
d3f13f72
CF
29492003-09-12 Christopher Faylor <cgf@redhat.com>
2950
2951 * win32-nat.c: Reorganize so that defines used by target headers are
2952 actually defined by the system headers.
2953 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2954 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2955
14f75137
JB
29562003-09-12 Jim Blandy <jimb@redhat.com>
2957
d646061f
JB
2958 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2959 the file has no .data, .bss, or .rodata sections. Instead wait
2960 until we see a variable alleged to live in one of those sections.
2961
2a13f9bc
JB
2962 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2963 .bss section, presume that any variables we find live in the
2964 .rodata section.
2965
4f49b26b
JB
2966 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2967 offsets for global and static variables.
2968
14f75137
JB
2969 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2970 symbol types are, by definition, in the .data section, so it is
2971 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2972 If there is no .data section, there should be no N_DATA or N_DATA
2973 | N_EXT symbols.
2974
212c460c
MK
29752003-09-12 Mark Kettenis <kettenis@gnu.org>
2976
2977 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2978 (amd64fbsd_sigcontext_addr): Rewrite.
2979 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2980 with correct values.
2981 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2982 (amd64fbsd_init_abi): Fix typo.
2983
68856ea3
AC
29842003-09-12 Andrew Cagney <cagney@redhat.com>
2985
2986 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2987 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2988
627b3ba2
AC
29892003-09-12 Andrew Cagney <cagney@redhat.com>
2990
2991 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2992 "entry_file_highpc". Update comments.
2993 * defs.h (deprecated_inside_entry_file): Rename
2994 "inside_entry_file".
2995 * blockframe.c (deprecated_inside_entry_file): Rename
2996 "inside_entry_file".
2997 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2998 * vax-tdep.c (vax_frame_chain): Update.
2999 * sh64-tdep.c (sh64_frame_chain): Update.
3000 * sh-tdep.c (sh_frame_chain): Update.
3001 * rs6000-tdep.c (rs6000_frame_chain): Update.
3002 * ns32k-tdep.c (ns32k_frame_chain): Update.
3003 * mips-tdep.c (mips_frame_chain): Update.
3004 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3005 * m32r-tdep.c (m32r_frame_this_id): Update.
3006 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3007 * frv-tdep.c (frv_frame_this_id): Update.
3008 * d10v-tdep.c (d10v_frame_this_id): Update.
3009 * cris-tdep.c (cris_frame_chain): Update.
3010 * blockframe.c (legacy_frame_chain_valid): Update.
3011 * avr-tdep.c (avr_frame_this_id): Update.
3012 * arm-tdep.c (arm_prologue_this_id): Update.
3013 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3014 * objfiles.c (objfile_relocate): Update.
3015 * mipsread.c (mipscoff_symfile_read): Update.
3016 (mipscoff_symfile_read): Update.
3017 * mdebugread.c (parse_partial_symbols): Update.
3018 * dwarfread.c (read_file_scope): Update.
3019 * dwarf2read.c (read_file_scope): Update.
3020 * dbxread.c (read_dbx_symtab): Update.
3021 (read_dbx_symtab): Update.
3022 * coffread.c (complete_symtab): Update.
3023
b0abbc58
JJ
30242003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3025
3026 * top.c (quit_target): New static helper function.
3027 (quit_force): Moved code to quit_target(). Call quit_target()
3028 via catch_errors() to catch errors during quit.
3029
a1632d59
DC
30302003-09-11 David Carlton <carlton@kealia.com>
3031
3032 * buildsym.c (finish_block): Use allocate_block to allocate the
3033 block.
3034 * mdebugread.c (new_block): Add FIXME.
3035
5c4e30ca
DC
30362003-09-11 David Carlton <carlton@kealia.com>
3037
3038 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3039 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3040 (recursive_dump_type): Ditto.
3041 * printcmd.c (print_formatted): Ditto.
3042 * typeprint.c (print_type_scalar): Ditto.
3043 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3044 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3045 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3046 maint_cplus_cmd_list.
3047 * cp-support.c: Make maint_cplus_cmd_list extern.
3048 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3049 command.h.
3050 (lookup_symbol_file): Look in possible namespace blocks when
3051 appropriate.
3052 (initialize_namespace_symtab): New.
3053 (get_possible_namespace_block, free_namespace_block)
3054 (check_possible_namespace_symbols)
3055 (check_possible_namespace_symbols_loop)
3056 (check_one_possible_namespace_symbol)
3057 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3058 (_initialize_cp_namespace): Ditto.
3059 * block.h: Declare allocate_block.
3060 * block.c (allocate_block): New.
3061 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3062 allocate_block.
3063 * symfile.h: Update declaration of add_psymbol_to_list.
3064 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3065 question.
3066 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3067 scan_partial_symbols_call.
3068 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3069 helper functions.
3070 (add_partial_symbol): If necessary, scan mangled names for names
3071 of namespaces.
3072 (add_partial_namespace): Add NAMESPACE argument; generate partial
3073 symbols associated to namespaces.
3074 (add_partial_enumeration): Add NAMESPACE argument.
3075 (new_symbol): Allow namespace syms.
3076 (read_namespace): Generate namespace syms.
3077 * objfiles.h: Add opaque declaration of struct symtab.
3078 (struct objfile): Add cp_namespace_symtab member.
3079 * objfiles.c (allocate_objfile): Set
3080 objfile->cp_namespace_symtab.
3081 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3082 dictionary_h, command_h.
3083
33a7c2fc
AC
30842003-09-11 Andrew Cagney <cagney@redhat.com>
3085
3086 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3087 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3088 near the function's end.
3089 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3090 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3091 regcache_raw_write_signed to set SP_REGNUM.
3092
63cd24fe
EZ
30932003-09-11 Elena Zannoni <ezannoni@redhat.com>
3094
3095 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3096 orig_addrs is set up properly.
3097
f27dd7fd
AC
30982003-09-11 Andrew Cagney <cagney@redhat.com>
3099
3100 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3101 * gdbarch.h, gdbarch.c: Re-generate.
3102 * infcall.c (call_function_by_hand): Update.
3103 * hppa-tdep.c (hppa_push_arguments): Update.
3104 * ada-lang.c (place_on_stack): Update.
3105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3106 * sparc-tdep.c (sparc_gdbarch_init): Update.
3107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3108 * hppa-tdep.c (hppa_gdbarch_init): Update.
3109 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3110 stack_align.
3111
f630a401
DJ
31122003-09-11 Daniel Jacobowitz <drow@mvista.com>
3113
3114 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3115 register do need a frame.
3116
0ddabb4c
AC
31172003-09-11 Andrew Cagney <cagney@redhat.com>
3118
3119 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3120 buildable since GDB 5.0.
3121 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3122 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3123 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3124 * irix4-nat.c: Delete file.
3125 * config/mips/irix4.mh: Delete file.
3126 * config/mips/irix3.mh: Delete file.
3127 * config/mips/irix3.mt: Delete file.
3128 * config/mips/tm-irix3.h: Delete file.
3129 * config/mips/nm-irix3.h: Delete file.
3130 * config/mips/xm-irix3.h: Delete file.
3131 * config/mips/nm-irix4.h: Delete file.
3132 * config/mips/xm-irix4.h: Delete file.
3133 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3134
fde2cceb
JB
31352003-09-10 J. Brobecker <brobecker@gnat.com>
3136
3137 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3138 * Makefile.in (hppa-tdep.o): Update dependencies.
3139
66f667f5
JW
31402003-09-10 James E Wilson <wilson@specifixinc.com>
3141
ef5fd69f
JW
3142 * MAINTAINERS: Change my e-mail address. Move to paper trail
3143 section.
66f667f5 3144
53e8aaea
KB
31452003-09-10 Kevin Buettner <kevinb@redhat.com>
3146
3147 * MAINTAINERS (frv): New ISA entry.
3148
dcc6aaff
KB
31492003-09-10 Kevin Buettner <kevinb@redhat.com>
3150
3151 * frv-tdep.c (dis-asm.h): Include.
3152 * Makefile.in (frv-tdep.o): Update dependencies.
3153
932644f0
JJ
31542003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3155
3156 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3157 Fix typo for high range of floating registers.
3158
91c24f0a
DC
31592003-09-09 David Carlton <carlton@kealia.com>
3160
3161 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3162 highpc initialization here out of scan_partial_symbols.
3163 (scan_partial_symbols): Restructure into a recursive version,
3164 calling add_partial_namespace and add_partial_enumeration when
3165 appropriate.
3166 (add_partial_namespace): New.
3167 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3168
c9263853
AC
31692003-09-09 Andrew Cagney <cagney@redhat.com>
3170
e56a0ecc
AC
3171 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3172 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3173 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3174 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3175
794a477a
AC
3176 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3177 (rs6000_push_dummy_call): Set the "TOC" register.
3178
c9263853
AC
3179 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3180 methods "max_register_raw_size", "max_register_virtual_size" or
3181 "register_virtual_size".
3182
afa7d0b2
ILT
31832003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3184
3185 * MAINTAINERS: Update my e-mail address.
3186
7a41266b
AC
31872003-09-09 Andrew Cagney <cagney@redhat.com>
3188
3189 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3190 (rs6000_push_dummy_call): Store the struct return address.
3191 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3192
77b2b6d4
AC
31932003-09-09 Andrew Cagney <cagney@redhat.com>
3194
3195 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3196 "ppc_sysv_abi_push_arguments".
3197 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3198 "ppc_sysv_abi_push_arguments".
3199 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3200 instead of "push_arguments".
3201 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3202
e8a7b686
AC
32032003-09-09 Andrew Cagney <cagney@redhat.com>
3204
3205 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3206 instead of CALL_DUMMY_ADDRESS.
3207
f86f5ca3
PH
32082003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3209
3210 * p-lang.c: Eliminate "register".
3211 * c-lang.c: Ditto.
3212 * expprint.c: Ditto.
3213 * f-lang.c: Ditto.
3214 * jv-lang.c: Ditto.
3215 * language.c: Ditto.
3216 * m2-lang.c: Ditto.
3217 * parse.c: Ditto.
3218 * scm-lang.c: Ditto.
3219 * objc-lang.c: Ditto.
3220
83ee270e
NC
32212003-09-09 Nick Clifton <nickc@redhat.com>
3222
3223 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3224
a89aa300
AC
32252003-09-04 Andrew Cagney <cagney@redhat.com>
3226
3227 * avr-tdep.c: Include "dis-asm.h".
3228 * cris-tdep.c: Include "dis-asm.h".
3229 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3230 instead of corresponding typedef.
3231 * h8300-tdep.c: Include "dis-asm.h".
3232 * ia64-tdep.c: Include "dis-asm.h".
3233 * i386-tdep.c: Include "dis-asm.h".
3234 (i386_print_insn): Use "struct disassemble_info" instead of
3235 corresponding typedef.
3236 * m68k-tdep.c: Include "dis-asm.h".
3237 * mcore-tdep.c: Include "dis-asm.h".
3238 * mips-tdep.c: Include "dis-asm.h".
3239 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3240 instead of corresponding typedef.
3241 * ns32k-tdep.c: Include "dis-asm.h".
3242 * s390-tdep.c: Include "dis-asm.h".
3243 * sparc-tdep.c: Include "dis-asm.h".
3244 * vax-tdep.c: Include "dis-asm.h".
3245 * v850-tdep.c: Include "dis-asm.h".
3246 * mn10300-tdep.c: Include "dis-asm.h".
3247 * rs6000-tdep.c: Include "dis-asm.h".
3248 * xstormy16-tdep.c: Include "dis-asm.h".
3249 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3250 print_insn_xstormy16.
3251 * Makefile.in (v850-tdep.o): Update dependencies.
3252 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3253 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3254 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3255 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3256 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3257 (gdbarch_h): Remove $(dis_asm_h).
3258 * disasm.c: Include "dis-asm.h".
3259 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3260 corresponding typedef.
3261 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3262 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3263 * gdbarch.sh: Do not include "dis-asm.h".
3264 (struct disassemble_info): Declare opaque.
3265 (TARGET_PRINT_INSN): Update declaration.
3266 * gdbarch.h, gdbarch.c: Re-generate.
3267
88a82a65
AC
32682003-09-08 Andrew Cagney <cagney@redhat.com>
3269
3270 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3271 CALL_DUMMY_ADDRESS, change to a predicate.
3272 * gdbarch.h, gdbarch.c: Re-generate.
3273 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3274 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3275 * infcall.c (call_function_by_hand): Ditto.
3276 * sparc-tdep.c (sparc_push_return_address): Ditto.
3277 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3278 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3279 CALL_DUMMY_ADDRESS with entry_point_address.
3280 * v850-tdep.c (v850_push_return_address): Ditto.
3281 * s390-tdep.c (s390_push_return_address): Ditto.
3282 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3283 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3284 * mcore-tdep.c (mcore_push_return_address): Ditto.
3285 * cris-tdep.c (cris_push_return_address): Ditto.
3286 * arm-tdep.c (arm_push_return_address): Ditto.
3287
3e2c4033
AC
32882003-09-08 Andrew Cagney <cagney@redhat.com>
3289
3290 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3291 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3292 and REG_UNMODIFIED to REG_SAME_VALUE.
3293 (execute_cfa_program): Update.
3294 (dwarf2_frame_cache): Update. Initialize table to
3295 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3296 location.
3297 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3298
39efb398
AC
32992003-09-08 Andrew Cagney <cagney@redhat.com>
3300
3301 * gnu-nat.c: Remove "inline" function attribute.
3302 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3303
f5cb5aca
KB
33042003-09-08 Kevin Buettner <kevinb@redhat.com>
3305
3306 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3307 target.
3308
1cb761c7
KB
33092003-09-08 Kevin Buettner <kevinb@redhat.com>
3310
3311 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3312 (frame_extra_info): Rename this struct to frv_unwind_cache.
3313 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3314 Add fields ``prev_sp'' and ``base''.
3315 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3316 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3317 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3318 Delete.
3319 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3320 Revise all callers. Fill in the unwind cache argument and make
3321 other adjustments to account for new frame mechanisms.
3322 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3323 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3324 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3325 (frv_frame_unwind, frv_frame_base): New structs.
3326 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3327 additional arguments expected by this method and adjust function
3328 body accordingly.
3329 (frv_gdbarch_init): Remove calls to the following functions:
3330 set_gdbarch_deprecated_init_frame_pc(),
3331 set_gdbarch_deprecated_saved_pc_after_call(),
3332 set_gdbarch_deprecated_frame_chain(),
3333 set_gdbarch_deprecated_frame_saved_pc(),
3334 set_gdbarch_deprecated_frame_init_saved_regs(),
3335 set_gdbarch_deprecated_push_arguments(),
3336 set_gdbarch_deprecated_push_return_address(),
3337 set_gdbarch_deprecated_pop_frame(),
3338 set_gdbarch_deprecated_call_dummy_words(),
3339 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3340 set_gdbarch_deprecated_init_extra_frame_info(),
3341 set_gdbarch_deprecated_dummy_write_sp(), and
3342 set_gdbarch_deprecated_pc_in_call_dummy().
3343 Add calls to the following functions:
3344 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3345 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3346 frame_base_set_default().
3347 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3348
68f6cf99
MK
33492003-09-09 Mark Kettenis <kettenis@gnu.org>
3350
3351 * dwarf2-frame.c (read_encoded_value): Add support for
3352 DW_EH_PE_aligned encoding.
3353
73b65bb0
DJ
33542003-09-08 Daniel Jacobowitz <drow@mvista.com>
3355
3356 * infrun.c (normal_stop): Don't print a message if the inferior
3357 has exited.
3358
7c8a5605
JB
33592003-09-08 Jim Blandy <jimb@redhat.com>
3360
3361 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3362 * dbxread.c: #include "gdb_assert.h".
3363 (read_dbx_symtab): If the objfile has no .data section, use the
3364 section index for the .bss section instead.
3365
7dd88986
DJ
33662003-09-08 Daniel Jacobowitz <drow@mvista.com>
3367
3368 * frame.c (deprecated_safe_get_selected_frame): New function.
3369 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3370 * findvar.c (read_var_value): Call it.
3371
55ff77ac
CV
33722003-09-08 Corinna Vinschen <vinschen@redhat.com>
3373
3374 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3375 (sh64-tdep.o): Add dependencies.
3376 * configure.tgt: Add FIXME to sh-*-linux*.
3377 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3378 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3379 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3380 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3381 * sh64-tdep.c: New file, containing all sh64 related code from
3382 sh-tdep.c.
3383 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3384 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3385 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3386 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3387 * config/sh/wince.mt (TDEPFILES): Ditto.
3388
bfb39158
DJ
33892003-09-07 Daniel Jacobowitz <drow@mvista.com>
3390
3391 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3392 (stop_wait_callback): Handle !lp->signalled also.
3393 (lin_lwp_has_pending, flush_callback): New functions.
3394 (lin_lwp_wait): Call flush_callback.
3395 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3396 (linux_proc_pending_signals): New function.
3397 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3398
9407de8e
DJ
33992003-09-07 Daniel Jacobowitz <drow@mvista.com>
3400
3401 From Nick Kelsey <nickk@ubicom.com>:
3402 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3403 when the stop PC is at the beginning of a function also.
3404
2ef47cd0
DJ
34052003-09-06 Daniel Jacobowitz <drow@mvista.com>
3406
3407 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3408 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3409
6f4492c8
MK
34102003-09-06 Mark Kettenis <kettenis@gnu.org>
3411
3412 * sol-thread.c: Include "gdb_string.h".
3413
d3420b2f
MK
34142003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3415
3416 * gcore.c: Reorder include files in alphabetical order. Include
3417 "gdb_assert.h". Various coding style fixes.
3418 (derive_stack_segment, derive_heap_segment): Replace check for
3419 non-null BOTTOM and TOP with gdb_assert.
3420 (derive_heap_segment): Replace check for successful creation of
3421 ZERO with gdb_assert.
3422 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3423
5220ea4c
AC
34242003-09-04 Andrew Cagney <cagney@redhat.com>
3425
3426 * thread-db.c (verbose_dlsym): New function.
3427 (thread_db_load): Use verbose_dlsym
3428 (thread_db_new_objfile): Print that libthread_db was loaded, and
3429 that thread debugging was enabled.
3430
6e8c2c06
AC
34312003-09-04 Andrew Cagney <cagney@redhat.com>
3432
3433 * configure.tgt: Add "mips64*-*-*" target. Delete
3434 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3435 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3436 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3437 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3438 mips*-sony-*, and mips64*-*-elf* targets.
3439 * config/mips/embedl.mt: Delete file.
3440 * config/mips/embedl64.mt: Delete file.
3441 * config/mips/mips.mt: Delete file.
3442 * config/mips/mips64.mt: Delete file.
3443 * config/mips/tm-embed.h: Delete file.
3444 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3445 * config/mips/embed64.mt: Delete out-of-date comment.
3446
3a3bc038
AC
34472003-09-04 Andrew Cagney <cagney@redhat.com>
3448
3449 * hppa-tdep.c (hppa_gdbarch_init): Set
3450 "have_nonsteppable_watchpoint".
3451 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3452 * mips-tdep.c (mips_dump_tdep): Do not print
3453 HAVE_NONSTEPPABLE_WATCHPOINT.
3454 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3455 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3456 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3457 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3458
a957e642
CV
34592003-09-04 Corinna Vinschen <vinschen@redhat.com>
3460
3461 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3462 unused code. Add comment.
3463
a6fbcf2f
CV
34642003-09-04 Corinna Vinschen <vinschen@redhat.com>
3465
3466 * breakpoint.c (watchpoint_check): Check for pc being in an
3467 epilogue if watchpoint frame couldn't be found.
3468
c14a44d5
AC
34692003-09-04 Andrew Cagney <cagney@redhat.com>
3470
3471 * Makefile.in: Re-generate all dependencies.
3472
f6c40618
AC
34732003-09-03 Andrew Cagney <cagney@redhat.com>
3474
3475 * arch-utils.h (legacy_print_insn): Delete declaration.
3476 * arch-utils.c (legacy_print_insn): Delete function.
3477 * disasm.c (deprecated_tm_print_insn_info): Delete.
3478 (_initialize_disasm): Delete function, contained code initializing
3479 deprecated_tm_print_insn_info.
3480 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3481 (deprecated_tm_print_insn_info): Delete.
3482 (TARGET_PRINT_INSN): Do not provide a default.
3483 * gdbarch.h, gdbarch.c: Re-generate.
3484
242e8be5
AC
34852003-09-03 Andrew Cagney <cagney@redhat.com>
3486
3487 * disasm.c (fprintf_disasm): New function.
3488 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3489 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3490 reverts 2003-08-14 change.
3491 (_initialize_disasm): Call "init_disassemble_info", instead of
3492 INIT_DISASSEMBLE_INFO_NO_ARCH.
3493
3ffc3dda
MS
34942003-09-03 Michael Snyder <msnyder@redhat.com>
3495
3496 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3497
52d16ba8
AC
34982003-09-03 Andrew Cagney <cagney@redhat.com>
3499
3500 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3501 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3502 * symfile.c (syms_from_objfile): Update.
3503 (reread_symbols): `Update
3504 * exec.c (exec_file_attach): Update.
3505 (exec_file_attach): Update.
3506 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3507 2003-08-29 change.
3508 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3509
eb5492fa
DJ
35102003-09-03 Daniel Jacobowitz <drow@mvista.com>
3511
3512 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3513 trad-frame.h.
3514 (arm_get_cache): Delete macro.
3515 (struct arm_prologue_cache): Update comments. Make saved_regs into
3516 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3517 to prev_sp.
3518 (thumb_scan_prologue): Update for cache changes. Don't call
3519 DEPRECATED_PC_IN_CALL_DUMMY.
3520 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3521 argument and use it in desperation search for our prologue. Do not
3522 search past the specified PC.
3523 (arm_make_prologue_cache): Simplify.
3524
3525 (arm_prologue_this_id, arm_prologue_prev_register)
3526 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3527 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3528 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3529 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3530 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3531
3532 (arm_frame_chain_valid, arm_find_callers_reg)
3533 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3534 (arm_pop_frame): Delete obsolete methods.
3535 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3536
3537 (arm_gdbarch_init): Update for new frame methods. Register prologue
3538 and sigtramp unwinders. Set the default frame base method.
3539
3540 * Makefile.in (arm-tdep.o): Update dependencies.
3541 * varobj.c (find_frame_addr_in_frame_chain): Call
3542 get_frame_base_address.
3543 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3544
24de872b
DJ
35452003-09-03 Daniel Jacobowitz <drow@mvista.com>
3546
3547 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3548 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3549 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3550 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3551 Take NEXT_FRAME and CACHE arguments. Call
3552 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3553 Set unwound_pc in CACHE instead of modifying the frame argument.
3554 Don't bother checking the frame type when looking for sigtramp
3555 frames.
3556 (arm_make_prologue_cache, arm_frame_chain)
3557 (arm_init_extra_frame_info): New functions.
3558
9b8d791a
DJ
35592003-09-03 Daniel Jacobowitz <drow@mvista.com>
3560
3561 * arm-tdep.c (arm_get_cache): Define.
3562 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3563 unwound_sp, unwound_pc, and saved_regs.
3564 (thumb_scan_prologue): Take a cache instead of the frame.
3565 (arm_scan_prologue): Likewise.
3566 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3567 instead of a temporary frame.
3568 (arm_init_extra_frame_info): Allocate and use a cache.
3569 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3570
7ee3275f
AC
35712003-09-03 Andrew Cagney <cagney@redhat.com>
3572
3573 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3574 * config/mips/wince.mt (TM_CLIBS): Ditto.
3575 * config/sh/wince.mt (TM_CLIBS): Ditto.
3576 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3577 * config/sparc/sp64.mt (CC): Delete.
3578
57b29be7
AC
35792003-09-03 Andrew Cagney <cagney@redhat.com>
3580
3581 * defs.h: Do not include "arch-utils.h".
3582 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3583 GDB_MULTI_ARCH_PURE.
3584 * configure.in (GDB_MULTI_ARCH): Do not define.
3585 * configure, config.in: Regenerate.
3586 * configure.tgt: Do not set variable "gdb_multi_arch".
3587 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3588 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3589 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3590 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3591 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3592 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3593 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3594 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3595 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3596 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3597 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3598 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3599 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3600 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3601 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3602 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3603 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3604 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3605
12e035e2
MC
36062003-08-30 Michael Chastain <mec@shout.net>
3607
3608 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3609 * config/m68k/nm-hp300hpux.h: Delete.
3610 * config/m68k/tm-hp300hpux.h: Delete.
3611 * config/m68k/xm-hp300hpux.h: Delete.
3612 * config/m68k/xm-hp300bsd.h: Delete.
3613 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3614 tm-hp300hpux.h, xm-hp300hpux.h.
3615 * somsolib.c: Remove comment about hp300 shared libraries.
3616
bda34dc2
MK
36172003-08-31 Mark Kettenis <kettenis@gnu.org>
3618
5bca7895
MK
3619 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3620 Only define PTRACE_GET_THREAD_AREA is not already defined.
3621 Various style fixes in code and comments and some additional
3622 spelling fixes in comments. Move after functions dealing with
3623 debug registers.
3624 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3625 Fix coding-style.
3626
bda34dc2
MK
3627 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3628 frame_unwind_register_unsigned instead of
3629 frame_unwind_unsigned_register.
3630
c890192f
MK
36312003-08-30 Mark Kettenis <kettenis@gnu.org>
3632
3633 * configure.in: Search for gethostbyname in libnsl.
3634 * configure: Regenerated.
3635
60fac5b8
MK
36362003-08-29 Mark Kettenis <kettenis@gnu.org>
3637
e294916c
MK
3638 * configure.in: Remove redundant AC_MSG_RESULT in check for
3639 uintptr_t in stdint.h.
3640 * configure: Regenerated.
3641
c40d267a
MK
3642 * amd64-nat.h (struct regcache): Add opaque declaration.
3643
60fac5b8
MK
3644 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3645 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3646 Change "register array" to "register cache" in comments.
3647 (x86_64_linux_gregset64_reg_offset): New variable.
3648 (GETREGS_SUPPLIES): Remove macro.
3649 (supply_gregset): Call amd64_supply_native_gregset instead of
3650 x86_64_linux_supply_gregset.
3651 (fill_gregset): Rename `regno' to `regnum'. Call
3652 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3653 (store_regs): Rename `regno' to `regnum'.
3654 (store_fpregs): Rename `regno' to `regnum'.
3655 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3656 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3657 Reorganize function a bit.
3658 (store_inferior_registers): Rename `regno' to `regnum'. Use
3659 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3660 Reorganize function a bit.
3661 (_initialize_x86_64_linux_nat): New function.
3662 * config/i386/x86-64linux.mh.
3663
546143b6
AC
36642003-08-29 Andrew Cagney <cagney@redhat.com>
3665
3666 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3667 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3668 (target_remove_watchpoint): Delete macro.
3669 (target_insert_watchpoint): Delete macro.
3670 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3671 (remote_mips_stopped_by_watchpoint): Delete declaration.
3672 (remote_mips_remove_watchpoint): Delete declaration.
3673 (remote_mips_set_watchpoint): Delete declaration.
3674 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3675 * remote-mips.c (_initialize_remote_mips): Set
3676 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3677 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3678 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3679 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3680 (mips_stopped_by_watchpoint): Rename
3681 remote_mips_stopped_by_watchpoint.
3682 (mips_can_hardware_watchpoint): Rename
3683 remote_mips_can_use_hardware_watchpoint, update function
3684 signature.
3685
7bace51b
MK
36862003-08-29 Mark Kettenis <kettenis@gnu.org>
3687
b0f5c6f2
MK
3688 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3689 USER_DS. We haven't given them a register number yet.
3690
2a6d284d
MK
3691 * amd64-nat.h: New file.
3692 * amd64-nat.c: New file.
3693 * amd64fbsd-nat.c: Include "amd64-nat.h".
3694 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3695 (amd64fbsd32_r_reg_offset): New variable.
3696 (supply_gregset): Simply call amd64_supply_native_gregset.
3697 (fill_gregset): Rename `regno' to `regnum'. Simply call
3698 amd64_collect_native_gregset.
3699 (fill_fpregset): Rename `regno' to `regnum'.
3700 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3701 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3702 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3703 `fpregset_t'. Call amd64_supply_native_gregset instead of
3704 supply_gregset. Call x86_64_supply_fxsave instead of
3705 supply_fpregset.
3706 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3707 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3708 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3709 `fpregset_t'. Call amd64_collect_native_gregset instead of
3710 fill_gregset. Call x86_64_collect_fxsave instead of
3711 fill_fpregset.
3712 (_initialize_am64fbsd_nat): Initialize
3713 amd64_native_gregset32_reg_offset and
3714 amd64_native_gregset64_reg_offset.
3715 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3716
a16d75cc
MK
3717 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3718 null pointer. Fix typo in comment.
3719
7bace51b
MK
3720 * regcache.c (supply_register): Reimplement to call
3721 regcache_raw_supply.
3722 (regcache_collect): Reimplement by calling regcache_raw_collect.
3723
9a661b68
MK
37242003-08-28 Mark Kettenis <kettenis@gnu.org>
3725
3726 * regcache.c (register_buffer): Consitify first argument.
3727 (regcache_raw_supply, regcache_raw_collect): New
3728 functions.
3729
e94cc8fa
DJ
37302003-08-28 Daniel Jacobowitz <drow@mvista.com>
3731
3732 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3733 by Nathan J. Williams.
3734
c64bd0ce
DJ
37352003-08-28 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * lin-lwp.c (wait_lwp): New function, copied from
3738 stop_wait_callback. Clean up.
3739 (stop_wait_callback): Use wait_lwp.
3740
e5ab0dce
AC
37412003-08-28 Andrew Cagney <cagney@redhat.com>
3742
3743 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3744 flavour and disassembler options.
3745 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3746 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3747 deprecated_tm_print_insn_info.
a8f4cde1 3748
a788de9b
AC
37492003-08-27 Andrew Cagney <cagney@redhat.com>
3750
3751 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3752 Use target_read_memory.
3753 (s390_get_frame_info): Update. Do not reference
3754 deprecated_tm_print_insn_info.
3755 (s390_check_function_end, s390_is_sigreturn): Ditto.
3756
36482093
AC
37572003-08-27 Andrew Cagney <cagney@redhat.com>
3758
3759 * Makefile.in (cris-tdep.o): Update dependencies.
3760 * cris-tdep.c: Include "gdb_assert.h".
3761 (cris_gdbarch_init): Set print_insn.
3762 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3763 (cris_delayed_get_disassembler): Simplify, directly call the
3764 disassembler returned by cris_get_disassembler.
3765 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3766 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3767 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3768 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3769 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3770 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3771 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3772 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3773 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3774 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3775 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3776 (gdb_print_insn_sparc): Delete function.
3777 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3778 deprecated_tm_print_insn_info.
3779 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3780 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3781 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3783 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3784 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3785 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3786 (s390_gdbarch_init): Set print_insn.
3787
0285512f
AC
37882003-08-27 Andrew Cagney <cagney@redhat.com>
3789
3790 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3791 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3792 * infcall.c (call_function_by_hand): Convert the entry point
3793 address into a code address.
3794
cdcd5552
AC
37952003-08-27 Andrew Cagney <cagney@redhat.com>
3796
3797 * dsrec.c: Include "gdb_string.h".
3798 * Makefile.in (dsrec.o): Update dependencies.
3799
e85cddad
MC
38002003-08-27 Michael Chastain <mec@shout.net>
3801
3802 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3803
8bbfbb23
AC
38042003-08-27 Andrew Cagney <cagney@redhat.com>
3805
3806 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3807 (alpha_osf1_init_abi): Do not set call_dummy_address.
3808
ba058b66
DC
38092003-08-27 David Carlton <carlton@kealia.com>
3810
3811 From Randolph Chung <tausq@debian.org>:
3812 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3813 compiles with -Wformat-nonliteral -Werror.
3814
87f84c9d
JB
38152003-08-26 Jim Blandy <jimb@redhat.com>
3816
3817 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3818 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3819 bfd_lookup_symbol, since we only want symbols in code sections.
3820 (look_for_base): Pass zero as the SECT_FLAGS argument to
3821 bfd_lookup_symbol, since we're not concerned about which section
3822 the symbol is in.
3823
102d615a
JJ
38242003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3825
3826 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3827 we are frameless or the return address register is already known.
102d615a 3828
cc7ad3ea
AC
38292003-08-26 Andrew Cagney <cagney@redhat.com>
3830
3831 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3832 in size. Add comments.
3833
af8b88dd
JJ
38342003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3835
3836 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3837 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3838
e0a4f5a1
JM
38392003-08-26 Jason Merrill <jason@redhat.com>
3840
3841 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3842 case out of #ifdef MIPS block.
3843
4ae9ee8e
DJ
38442003-08-25 Daniel Jacobowitz <drow@mvista.com>
3845
3846 PR java/1322
3847 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3848 available before calling SECT_OFF_TEXT.
3c164570 3849 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3850
004d836a
JJ
38512003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3852
a8f4cde1 3853 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3854 bof, and nat0-nat127 as pseudo-registers.
3855 (ia64_frame_cache): New struct used to cache frame info.
3856 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3857 register grouping so registers without names are still saved and
004d836a 3858 restored.
a8f4cde1 3859 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3860 pseudo values.
3861 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3862 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3863 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3864 ia64_frame_cache.
3865 (examine_prologue): Change prototype to add next_frame pointer.
3866 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3867 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3868 alloc insn and if equal, mark as not frameless. At end of routine,
3869 if not frameless, calculate registers for the previous frame and store
3870 in the cache, if a cache is provided.
3871 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3872 and pass 0 for next_frame.
3873 (ia64_store_return_value): Change to use convert_typed_floating()
3874 instead of calling ia64_convert_to_raw().
3875 (ia64_extract_return_value): Change to use convert_typed_floating()
3876 instead of calling ia64_convert_to_virtual().
3877 (ia64_frame_cache): New routine to support new frame model.
3878 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3879 (ia64_frame_sniffer): Ditto.
3880 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3881 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3882 (ia64_sigtramp_frame_prev_register): Ditto.
3883 (ia64_sigtramp_frame_sniffer): Ditto.
3884 (ia64_frame_base_address): Ditto.
3885 (ia64_extract_struct_value_address): Change to issue error message.
3886 (ia64_frame_align): New routine to align sp.
3887 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3888 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3889 ia64_push_dummy_call().
3890 (ia64_push_return_address): Ditto.
3891 (ia64_unwind_dummy_id): New function.
3892 (ia64_unwind_pc): Ditto.
3893 (ia64_convert_register_p): Ditto.
3894 (ia64_register_to_value): Ditto.
3895 (ia64_value_to_register): Ditto.
3896 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3897 (ia64_register_byte, ia64_register_raw_size): Ditto.
3898 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3899 (ia64_saved_pc_after_call): Ditto.
3900 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3901 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3902 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3903 (ia64_register_convert_to_raw): Ditto.
3904 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3905 (ia64_init_extra_frame_info): Ditto.
3906 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3907 (ia64_gdbarch_init): Remove registering of deprecated functions that
3908 are no longer used. Add registration of new gdbarch functions.
3909 Remove registering deprecated_write_sp. Replace
3910 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3911 Delete set_gdbarch_deprecated_register_convertible(),
3912 set_gdbarch_deprecated_register_convert_to_virtual(), and
3913 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3914 set_gdbarch_deprecated_register_size(),
3915 set_gdbarch_deprecated_register_bytes(),
3916 set_gdbarch_pcregnum(),
3917 set_gdbarch_deprecated_register_byte(),
3918 set_gdbarch_deprecated_register_raw_size(),
3919 set_gdbarch_deprecated_max_register_raw_size(),
3920 set_gdbarch_deprecated_register_virtual_size(),
3921 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3922 Replace set_gdbarch_deprecated_extract_return_value() with
3923 set_gdbarch_extract_return_value(). Remove calls to:
3924 set_gdbarch_deprecated_saved_pc_after_call();
3925 set_gdbarch_deprecated_frame_chain(),
3926 set_gdbarch_deprecated_frame_saved_pc(),
3927 set_gdbarch_deprecated_frame_init_saved_regs(),
3928 set_gdbarch_deprecated_get_saved_register(),
3929 set_gdbarch_deprecated_call_dummy_words(),
3930 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3931 set_gdbarch_deprecated_init_extra_frame_info(),
3932 set_gdbarch_deprecated_frame_args_address(),
3933 set_gdbarch_deprecated_frame_locals_address(),
3934 and set_gdbarch_deprecated_dummy_write_sp().
3935 Add set_gdbarch_convert_register_p(),
3936 set_gdbarch_register_to_value(),
3937 set_gdbarch_value_to_register(),
3938 set_gdbarch_push_dummy_call(),
3939 set_gdbarch_frame_align(),
3940 set_gdbarch_unwind_dummy_id(),
3941 set_gdbarch_unwind_pc(),
3942 frame_unwind_append_sniffer(),
3943 frame_unwind_append_sniffer(),
3944 and frame_base_set_default().
3945
aede7613
CD
39462003-08-25 Chris Demetriou <cgd@broadcom.com>
3947
3948 * configure.tgt: Document need for special "mipsisa64" handling.
3949 (mipsisa64*-*-linux64): Handle as target linux64.
3950 (mipsisa64*-*-*): Handle as target embed64.
3951
43c3a82e
MC
39522003-08-18 Michael Chastain <mec@shout.net>
3953
3954 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3955 objfile bug.
3956
6564f77d
MK
39572003-08-24 Mark Kettenis <kettenis@gnu.org>
3958
2de139ba
MK
3959 * i387-tdep.h: Update copyright date.
3960 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3961
6564f77d
MK
3962 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3963 CFLAGS games to reflect reality.
3964
42cf1509
AC
39652003-08-24 Andrew Cagney <cagney@redhat.com>
3966
3967 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3968 GDB_MULTI_ARCH is always non-zero.
3969 * osabi.c (_initialize_gdb_osabi): Ditto.
3970 (gdbarch_init_osabi): Ditto.
3971 * sparc-tdep.c: Ditto for #if code.
3972
0485f6ad
MK
39732003-08-23 Mark Kettenis <kettenis@gnu.org>
3974
3975 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3976 Update comments.
3977 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3978 comments.
3979 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3980 x86_64_supply_fxsave.
3981 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3982 x86_64_supply_fxsave.
3983 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3984 x86_64_supply_fxsave.
3985
c7716133
AJ
39862003-08-23 Andreas Jaeger <aj@suse.de>
3987
3988 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3989 i387_supply_fxsave.
3990
ed504bdf
MK
39912003-08-23 Mark Kettenis <kettenis@gnu.org>
3992
3993 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3994 i387_supply_register.
3995 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3996 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3997 i387_supply_fsave.
3998 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3999 i387_supply_fxsave.
4000 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4001 i387_supply_fsave.
4002 * i386bsd-nat.c (supply_fpregset): Adjust call to
4003 i387_supply_fsave.
4004 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4005 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4006 supply_fpregset.
4007 (store_inferior_registers): Remove extraneous whitespace. Call
4008 i387_fill_fsave instead of fill_fpregset.
4009 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4010 (supply_fpregset): Likewise.
4011 * i386v4-nat.c (supply_fpregset): Adjust call to
4012 i387_supply_fsave.
4013 * i386-interix-nat.c (supply_fpregset): Adjust call to
4014 i387_supply_fsave.
4015 * i386-linux-nat.c (supply_fpregset): Adjust call to
4016 i387_supply_fsave.
4017 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4018 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4019 i387supply_fsave and i387_supply_fxsave.
4020 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4021 Incorporate code from `i387_supply_register.
4022 (i387_supply_register): Remove.
4023 (i387_supply_fxsave): Add `regnum' argument.
4024 Update comments.
4025 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4026 prototype.
4027 (i387_supply_register): remove prototype.
4028 Update comments.
a8f4cde1 4029
4be5d520
MC
40302003-08-22 Michael Chastain <mec@shout.net>
4031
4032 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4033 Add lines for files in gdb/testsuite/gdb.cp/* that are
4034 still not 8.3 unique.
4035
7ed85d26
DJ
40362003-08-22 Daniel Jacobowitz <drow@mvista.com>
4037
4038 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4039 TYPE_VPTR_FIELDNO is valid.
4040
eb0d3137
MK
40412003-08-19 Mark Kettenis <kettenis@gnu.org>
4042
4043 * utils.c (set_width_command): Remove prototypes.
4044 (set_screen_size): New prototype.
4045 (init_page_info): Simplify by fetching the screen size from
4046 Readline. Call set_screen_size.
4047 (set_screen_size): New function.
4048 (set_width): Add missing whitespace in comment.
4049 (set_width_command): Call set_screen_size.
4050 (set_height_command): New function.
4051 (initialize_utils): Fix formatting. Make "set height" command
4052 call set_height_command. Remove redundant code that turns off
4053 pagination if output isn't a terminal. Remove redundant call to
4054 set_width_command.
a8f4cde1 4055
7e6d0ac8
MK
40562003-08-22 Mark Kettenis <kettenis@gnu.org>
4057
3567a8ea
MK
4058 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4059 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4060 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4061 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4062 `case' keyword.
4063 (sparc64_register_info): Give the reister with number
4064 SPARC64_STATE_REGNUM a name.
4065 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4066 %asi and %ccr.
4067 (sparc64_push_dummy_call): Take BIAS into account when checking
4068 stcak alignment.
4069 (sparc_software_single_step): Remove assertions that check whether
4070 NPC and NNPC were zero.
4071 (sparc_supply_rwindow): Make public. Merge functionality with
4072 sparc64_supply_rwindow.
4073 (sparc_fill_rwindow): Make public. Merge functionality with
4074 sparc64_fill_rwindow.
4075 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4076 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4077 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4078 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4079 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4080
7e6d0ac8
MK
4081 * reggroups.c: Add whitespace after declarations of local
4082 variables in functions.
4083
72e5f484
MC
40842003-08-21 Michael Chastain <mec@shout.net>
4085
4086 * gdbtypes.h: Change array bound type from an int to enum.
4087
435ac228
AC
40882003-08-21 Andrew Cagney <cagney@redhat.com>
4089
4090 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4091 * config/sparc/tm-sparc.h: Ditto.
4092 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4093 unconditionally.
4094 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4095
0d0e1a63
MK
40962003-07-13 Mark Kettenis <kettenis@gnu.org>
4097
4098 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4099 (register_objfile_data, set_objfile_data, objfile_data): New
4100 prototypes.
4101 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4102 prototypes.
4103 (allocate_objfile): Call objfile_alloc_data.
4104 (free_objfile): Call objfile_free_data.
4105 (struct objfile_data): New.
4106 (struct objfile_data_registration): New.
4107 (struct objfile_data_registry): New.
4108 (objfile_data_registry): New variable.
4109 (register_objfile_data): New function.
4110 (objfile_alloc_data, objfile_free_data): New functions.
4111 (set_objfile_data, objfile_data): New functions.
4112 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4113 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4114 (_initialize_dwarf2_frame): New function and prototype.
4115
d90cf509
AC
41162003-08-21 Andrew Cagney <cagney@redhat.com>
4117
4118 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4119 a specific architecture.
4120 * arch-utils.h (set_architecture_from_arch_mach): Delete
4121 declaration.
4122 (target_architecture_hook): Delete declaration.
4123 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4124 (default_float_format): Assume GDB_MULTI_ARCH.
4125 (default_double_format): Assume GDB_MULTI_ARCH.
4126 (set_endian_from_file): Delete function.
4127 (arch_ok): Delete function.
4128 (set_arch): Delete function.
4129 (set_architecture_from_arch_mach): Delete function.
4130 (set_architecture_from_file): Delete function.
4131 (set_architecture): Assume GDB_MULTI_ARCH.
4132 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4133
8b39fe56
MK
41342003-08-21 Mark Kettenis <kettenis@gnu.org>
4135
4136 Rewrite FreeBSD/sparc64 native configuration.
4137 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4138 * sparc64fbsd-nat.c: New file.
4139 * sparc64fbsd-tdep.c: New file.
4140 * sparc64-tdep.c sparc64-tdep.h: New files.
4141 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4142 sparc64fbsd-tdep.o): New dependencies.
4143 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4144 and sparc64fbsd-tdep.c.
4145 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4146 * config/sparc/fbsd.mh: Remove copyright notice.
4147 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4148 sparcbsd-nat.o.
4149 * config/sparc/fbsd.mt: Remove copyright notice.
4150 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4151 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4152 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4153 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4154 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4155 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4156 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4157 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4158 "sparc/tm-sp64.h".
4159 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4160 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4161
a7f19c79
MC
41622003-08-21 Michael Chastain <mec@shout.net>
4163
4164 * symtab.h: Add doco on the space critical structures and
4165 some measurements of space usage.
4166
da08ea5b
MS
41672003-08-21 Michael Snyder <msnyder@redhat.com>
4168
4169 * tracepoint.c (trace_dump_command): Trace break address
4170 is subject to DECR_PC_AFTER_BREAK.
4171 (set_traceframe_context): Make "trace_line" an int.
4172 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4173
6df2bf50
MS
41742003-08-20 Michael Snyder <msnyder@redhat.com>
4175
4176 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4177 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4178 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4179 argument passing.
a8f4cde1 4180 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4181 functions, replace sh_push_dummy_call.
4182 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4183
0955bbf0
MC
41842003-08-20 Michael Chastain <mec@shout.net>
4185
4186 * gdbtypes.h (struct main_type): Rearrange to save space.
4187
260a4188
MS
41882003-08-20 Michael Snyder <msnyder@redhat.com>
4189
4190 * trad-frame.c: Comment typo fix.
4191
8baa6f92
KB
41922003-08-20 Michael Snyder <msnyder@redhat.com>
4193 Kevin Buettner <kevinb@redhat.com>
4194
4195 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4196 (frv_frame_init_saved_regs): Add declaration.
4197 (frame_extra_info): Add new field ``saved_regs''.
4198 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4199 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4200 Update frame related code.
4201 (frv_extract_struct_value_address): Adjust formatting.
4202 * Makefile.in (frv-tdep.o): Update dependencies.
4203 * config/frv/tm-frv.h (target_insert_watchpoint)
4204 (target_remove_watchpoint, target_insert_hw_breakpoint)
4205 (target_remove_hw_breakpoint): Delete these macros.
4206 (remote_insert_watchpoint, remote_remove_watchpoint)
4207 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4208 these declarations.
4209
87193939
MC
42102003-08-20 Michael Chastain <mec@shout.net>
4211
4212 * defs.h (ENUM_BITFIELD): New macro.
4213 * symtab.h (ENUM_BITFIELD): Use it.
4214 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4215
062103ba
SA
42162003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4217
4218 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4219
8b148df9
AC
42202003-08-18 Andrew Cagney <cagney@redhat.com>
4221
4222 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4223 * gdbarch.h, gdbarch.c: Re-generate.
4224 * infcall.c (call_function_by_hand): Adjust the SP by
4225 frame_red_zone_size before allocating any stack space.
4226 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4227 * x86-64-tdep.c (x86_64_frame_align): New function.
4228 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4229
4230 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4231 Remove code adjusting SP so that it skips over the Red Zone.
4232
954a4db8
MK
42332003-08-18 Mark Kettenis <kettenis@gnu.org>
4234
4235 * NEWS (New native configurations): Mention FreeBSD/amd64.
4236
1a241548
AC
42372003-08-18 Andrew Cagney <cagney@redhat.com>
4238
4239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4240 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4241 "m68k_frame_p".
4242 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4243
f82b2acd
MK
42442003-08-18 Mark Kettenis <kettenis@gnu.org>
4245
4246 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4247
4056d258
ML
42482003-08-18 Michal Ludvig <mludvig@suse.cz>
4249
4250 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4251 Define.
4252 * i386-linux-nat.c: Include "linux-nat.h".
4253 (child_post_startup_inferior): New function.
a8f4cde1 4254
99ab4326
MK
42552003-08-18 Mark Kettenis <kettenis@gnu.org>
4256
4257 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4258 at the start of a frameless function. This probably fixes PR
4259 backtrace/1338.
4260
c8d5f0d6
MC
42612003-08-17 Michael Chastain <mec@shout.net>
4262
4263 * symfile.c (find_sym_fns): Remove special case for apollo target.
4264
9016a515
DJ
42652003-08-17 Daniel Jacobowitz <drow@mvista.com>
4266
4267 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4268 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4269 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4270 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4271 (linux_supports_tracevforkdone): New function.
4272 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4273 TRACEVFORKDONE.
4274 (child_follow_fork): Handle vfork.
4275 (linux_handle_extended_wait): Likewise. Also handle exec.
4276 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4277 * NEWS: Mention fork tracing.
4278
c538c11c
DJ
42792003-08-17 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4282
4de4c07c
DJ
42832003-08-17 Daniel Jacobowitz <drow@mvista.com>
4284
4285 * Makefile.in (i386-linux-nat.o): Update dependencies.
4286 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4287 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4288 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4289 * i386-linux-nat.c: Include "linux-nat.h".
4290 (child_post_startup_inferior): New function.
4291 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4292 * infptrace.c (kill_inferior): Wrap in #ifdef.
4293 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4294 attaching to each LWP.
4295 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4296 (init_lin_lwp_ops): Fill in some more operations.
4297 * linux-nat.h (linux_enable_event_reporting)
4298 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4299 prototypes.
4300 * linux-nat.c (linux_enable_event_reporting): New function.
4301 (child_post_attach, linux_child_post_startup_inferior)
4302 (child_post_startup_inferior, child_follow_fork)
4303 (linux_handle_extended_wait, kill_inferior): New functions.
4304
7996bcec
AC
43052003-08-16 Andrew Cagney <cagney@redhat.com>
4306
4307 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4308 * gdbarch.h, gdbarch.c: Re-generate.
4309
3d48a7a0
MK
43102003-08-16 Mark Kettenis <kettenis@gnu.org>
4311
4312 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4313
7989c619
AC
43142003-08-16 Andrew Cagney <cagney@redhat.com>
4315
4316 * NEWS: Mention that "set prompt-escape-char" was deleted.
4317 * top.c (get_prompt_1): Delete function.
4318 (gdb_prompt_escape):
4319 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4320 prompt-escape-char" command.
4321 (MAX_PROMPT_SIZE): Delete macro.
4322 (get_prompt): Simplify, do not call get_prompt_1.
4323
07978cd8
AC
43242003-08-16 Andrew Cagney <cagney@redhat.com>
4325
4326 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4327 -Werror. -Wformat-nonliteral problems.
4328
3ff7cf9e
JB
43292003-08-15 J. Brobecker <brobecker@gnat.com>
4330
4331 Further multiarching work mostly for hppa64-*-hpux11:
4332 * hppa-tdep.h: New file.
4333 * hppa-tdep.c: #include hppa-tdep.c.
4334 (hppa32_num_regs): Renamed from hppa_num_regs.
4335 (hppa64_num_regs): New constant.
4336 (hppa64_call_dummy_breakpoint_offset): New constant.
4337 (hppa32_call_dummy_length): New constant.
4338 (hppa64_call_dummy_length): New constant.
4339 (hppa32_stack_align): Make name 32bit explicit.
4340 (hppa32_register_virtual_type): Likewise.
4341 (hppa32_extract_return_value): Likewise.
4342 (hppa32_use_struct_convention): Likewise.
4343 (hppa32_store_return_value): Likewise.
4344 (hppa64_register_virtual_type): New function.
4345 (hppa64_extract_return_value): New function.
4346 (hppa64_use_struct_convention): New function.
4347 (hppa64_store_return_value): New function.
4348 (hppa_frame_locals_address): Remove declaration, function does
4349 not exist anymore.
4350 (hppa_register_byte): Add support for PA64 ABI.
4351 (hppa_gdbarch_init): Add support for PA64 ABI.
4352 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4353 Make name 32bit explicit.
4354 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4355 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4356 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4357 (hppa64_hpux_frame_base_before_sigtramp): New function.
4358 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4359 * config/pa/tm-hppa64.h: Remove macros that are no longer
4360 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4361 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4362 * config/pa/tm-hppah.h: Update function calls in macros
4363 following the function renaming in hppa-hpux-tdep.c.
4364 * Makefile.in (hppa_tdep_h): New variable.
4365 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4366
5d05ca6d
MS
43672003-08-14 Michael Snyder <msnyder@redhat.com>
4368
4369 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4370
37ba2569
JB
43712003-08-13 J. Brobecker <brobecker@gnat.com>
4372
4373 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4374 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4375 routine.
4376
aed7f26a
MS
43772003-08-13 Michael Snyder <msnyder@redhat.com>
4378
4379 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4380 (frv_saved_pc_after_call): Use deprecated ftype.
4381 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4382 (frv_remote_translate_xfer_address): Remove.
4383 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4384
752d4ac1
JB
43852003-08-13 J. Brobecker <brobecker@gnat.com>
4386
4387 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4388 initialization after the common gdbarch initialization, not before.
4389
1426ac1d
JB
43902003-08-13 J. Brobecker <brobecker@gnat.com>
4391
4392 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4393 (ADDR_BITS_REMOVE): Remove, redundant.
4394
b6fbdd1d
JB
43952003-08-13 J. Brobecker <brobecker@gnat.com>
4396
4397 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4398 gdbarch method to clear the 2 low bits of text addresses.
4399
44160db3
AC
44002003-08-12 Andrew Cagney <cagney@redhat.com>
4401
4402 * Makefile.in (dsrec.o): Update dependencies.
4403 * dsrec.c: Include "gdb_assert.h".
4404 (make_srec): Use snprintf instead of sprintf, use a literal format
4405 string.
4406
bcf7d3ca
AC
44072003-08-12 Andrew Cagney <cagney@redhat.com>
4408
4409 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4410 FRAME_OBSTACK_ZALLOC.
4411
49ed40de
KB
44122003-08-12 Kevin Buettner <kevinb@redhat.com>
4413
4414 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4415 SSE registers.
4416
b246147c
MK
44172003-08-10 Mark Kettenis <kettenis@gnu.org>
4418
4419 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4420 amd64fbsd_sc_reg_offset): Add extern declarations.
4421 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4422 declarations.
4423
d95fdc0d
BE
44242003-08-11 Ben Elliston <bje@wasabisystems.com>
4425
4426 * MAINTAINERS (write after approval): Update my mail address.
4427
cf6a0e73
AC
44282003-08-10 Andrew Cagney <cagney@redhat.com>
4429
4430 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4431
f837910f
MK
44322003-08-10 Mark Kettenis <kettenis@gnu.org>
4433
e2dbbd2d
MK
4434 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4435 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4436 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4437 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4438 i386bsd_sc_reg_offset): Add extern declarations.
4439 * i386obsd-nat.c: Include "i386-tdep.h"
4440 (_initialize_i386obsd_nat): Remove extern declarations.
4441 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4442 declarations.
4443 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4444 declarations.
4445
f837910f
MK
4446 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4447 instead of frame_read_register.
4448 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4449 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4450 SP_REGNUM.
4451 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4452 instead of frame_unwind_unsigned_register. Use
4453 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4454 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4455 instead of read_register. Use builtin_type_void_data_ptr instead
4456 of builtin_type_void_func_ptr when extracting the address of the
4457 jmp_buf.
4458 (i386_extract_return_value, i386_store_return_value,
4459 i386_pseudo_register_read, i386_pseudo_register_write): Use
4460 register_size instead REGISTER_RAW_SIZE.
4461
edcf254d
AC
44622003-08-10 Andrew Cagney <cagney@redhat.com>
4463
4464 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4465 sprintf. Make "name" constant.
4466
26604a34
MK
44672003-08-10 Mark Kettenis <kettenis@gnu.org>
4468
192285c6
MK
4469 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4470 instead of frame_read_register.
f837910f
MK
4471 (i387_print_float_info): Use get_frame_register and
4472 get_frame_register_unsigned instead of frame_register_read.
192285c6 4473
f0925262
MK
4474 * i386fbsd-nat.c: Include "i386-tdep.h".
4475 (child_resume): Make `eflags' an ULONGEST. Use
4476 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4477 instead of register_read and register_write.
4478
a144416f
MK
4479 * i386bsd-nat.c (fetch_inferior_registers,
4480 store_inferior_registers): Don't use && at the end of a line.
4481 (_initialize_i386bsd_nat): Fix typo.
4482
fec74868
MK
4483 * frame.c (_initialize_frame): Add missing backslash.
4484
87232496
MK
4485 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4486 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4487 and supply_register instead of manipulating the register buffer
4488 directly.
4489
c9b9de0b
MK
4490 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4491 * config/i386/nm-i386sol2.h
4492 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4493
26604a34
MK
4494 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4495 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4496 instructions that GCC likes to mingle into the prologue. Fixes
4497 gdb/1253 and gdb/1255.
4498
25d29d70
AC
44992003-08-09 Andrew Cagney <cagney@redhat.com>
4500
4501 Fix GDB PR cli/926.
4502 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4503 * command.h (add_setshow_uinteger_cmd): Declare.
4504 * frame.c (set_backtrace_cmd): New function.
4505 (show_backtrace_cmd): New function.
4506 * frame.c (_initialize_frame): Replace "set/show
4507 backtrace-below-main" with "set/show backtrace past-main". Add
4508 command "set/show backtrace limit".
4509 (backtrace_past_main): Rename "backtrace_below_main".
4510 (backtrace_limit): New variable.
4511 (get_prev_frame): Update. Check the backtrace_limit.
4512
9ebf4acf
AC
45132003-08-09 Andrew Cagney <cagney@redhat.com>
4514
4515 * defs.h (xstrprintf): Declare.
4516 * utils.c (xstrprintf): New function.
4517 * breakpoint.c (insert_breakpoints): Replace sprintf and
4518 non-literal format strings, with xstrprintf and cleanups.
4519 (delete_breakpoint,breakpoint_re_set): Ditto.
4520 (commands_command, insert_breakpoints): Ditto.
4521 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4522 (break_at_finish_command_1): Ditto.
4523
3771659b
AC
45242003-08-09 Andrew Cagney <cagney@redhat.com>
4525
4526 * MAINTAINERS (language support): List Adam Fedor as Objective C
4527 maintainer.
4528
b4263afa
JB
45292003-08-08 J. Brobecker <brobecker@gnat.com>
4530
4531 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4532 are now multiarched.
4533
d84defb1
JB
45342003-08-08 J. Brobecker <brobecker@gnat.com>
4535
4536 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4537 longer necessary now that hppa64 is partially multiarch'ed.
4538
f786f615
AC
45392003-08-08 Andrew Cagney <cagney@redhat.com>
4540
4541 * interps.c (interp_set): Check for a NULL "old_interp".
4542
c938e9b0
L
45432003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4544
4545 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4546 (install-only): Support DESTDIR.
4547 (uninstall): Likewise.
4548 (install-gdbtk): Likewise.
4549
9a146a11
EZ
45502003-08-08 Elena Zannoni <ezannoni@redhat.com>
4551
4552 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4553 contains something meaningful at all times.
4554
4555Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4556
62599e99 4557 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4558
56296155
BC
4559Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4560
62599e99 4561 * MAINTAINERS (write after approval): Added self.
56296155 4562
9710e734
AC
45632003-08-07 Andrew Cagney <cagney@redhat.com>
4564
4565 * inferior.h (AT_SYMBOL): Define.
4566 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4567 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4568 * mips-tdep.c (mips_call_dummy_address): Delete function.
4569 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4570 set call_dummy_address.
4571
98b3ab73
AC
45722003-08-07 Andrew Cagney <cagney@redhat.com>
4573
4574 * language.c (op_error): Delete function.
4575 (binop_type_check): Delete function.
4576 * language.h (type_op_error, range_op_error): Delete macros.
4577 (op_error): Delete declaration.
4578
2fcf52f0
AC
45792003-08-07 Andrew Cagney <cagney@redhat.com>
4580
4581 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4582
abd4220e 45832003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4584
abd4220e 4585 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4586 (x86_64_push_arguments): Skip the red zone.
abd4220e 4587
9dd5f34f
AC
45882003-08-05 Andrew Cagney <cagney@redhat.com>
4589
4590 * reggroups.c (reggroup_next): Check for the final entry.
4591
e5e78edc
AC
45922003-08-04 Andrew Cagney <cagney@redhat.com>
4593
ab4e3d93
AC
4594 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4595 * cli/cli-script.c (define_command): Call query directly, instead
4596 of passing it a buffer.
4597 * ocd.c (ocd_error): Pass error a constant format string.
4598 * remote-mips.c (mips_error): Use fputs_filtered.
4599
1062ca82
AC
4600 * solib-svr4.c (_initialize_svr4_solib): Update
4601 register_gdbarch_data call.
4602 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4603
fcc1c85c
AC
4604 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4605 (register_gdbarch_data): Delete "free" parameter. Update
4606 comments.
4607 * gdbarch.h, gdbarch.c: Re-generate.
4608 * reggroups.c (_initialize_reggroup): Update.
4609 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4610 * frame-base.c (_initialize_frame_base): Update.
4611 * frame-unwind.c (_initialize_frame_unwind): Update.
4612 * user-regs.c (_initialize_user_regs): Update.
4613 * remote.c (_initialize_remote): Update.
4614 * regcache.c (_initialize_regcache): Update.
4615
116f06ea
AC
4616 * regcache.c (xfree_regcache_descr): Delete function.
4617 (_initialize_regcache): Update call to register_gdbarch_data.
4618 (init_regcache_descr, init_legacy_regcache_descr): Use
4619 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4620
e5e78edc
AC
4621 * remote.c (free_remote_state): Delete function.
4622 (_initialize_remote): Update register_gdbarch_data.
4623 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4624 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4625
6c7d17ba
AC
46262003-08-04 Andrew Cagney <cagney@redhat.com>
4627
4628 * reggroups.c (struct reggroup_el): Define.
4629 (struct reggroups): Delete field "nr_group". Replace array
4630 "group" with a "first" to "last" linked list.
4631 (reggroups_init): Update. Allocate using gdbarch's obstack.
4632 (reggroups_free): Delete function.
4633 (add_group): Update. Add "el" parameter.
4634 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4635 (default_groups): Update.
4636 (reggroup_next): Replace reggroups.
4637 (reggroups_dump): Update.
4638 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4639 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4640 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4641
89b7795b
DJ
46422003-08-04 Daniel Jacobowitz <drow@mvista.com>
4643
4644 * Makefile.in (tui-interp.o): Update dependencies.
4645
306d9ac5
DC
46462003-08-04 David Carlton <carlton@kealia.com>
4647
4648 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4649 to internal_error call.
4650 * source.c (forward_search_command): Add "%s" format argument.
4651 (reverse_search_command): Ditto.
4652 * top.c (quit_confirm): Ditto.
4653 * cli/cli-setshow.c (do_setshow_command): Ditto.
4654 * cp-valprint.c (cp_print_class_method): Replace
4655 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4656 (cp_print_class_member): Ditto.
4657 * event-top.c (command_line_handler): Ditto.
4658 * linux-proc.c (linux_info_proc_cmd): Ditto.
4659 * p-typeprint.c (pascal_type_print_base): Ditto.
4660 * p-valprint.c (pascal_object_print_class_method): Ditto.
4661 (pascal_object_print_class_member): Ditto.
4662 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4663 * remote.c (remote_cisco_section_offsets): Ditto.
4664 * top.c (command_line_input): Ditto.
4665 * utils.c (vwarning,error_stream,quit): Ditto.
4666 * valprint.c (print_floating,print_binary_chars)
4667 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4668
57bfe177
AC
46692003-08-04 Andrew Cagney <cagney@redhat.com>
4670
4671 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4672
e546b999
AC
46732003-08-02 Andrew Cagney <cagney@redhat.com>
4674
4675 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4676 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4677 amd64fbsd-nat.c.
4678
91092ee5
AC
46792003-08-02 Andrew Cagney <cagney@redhat.com>
4680
4681 * Makefile.in: Update all dependencies and definitions.
4682
889f28e2
AF
46832003-08-02 Adam Fedor <fedor@gnu.org>
4684
4685 * linespec.c (is_objc_method_format): New function
4686 (decode_line_1, locate_first_half): Use it.
4687 Fixes PR objc/1298
4688
880bc914
AC
46892003-08-01 Andrew Cagney <cagney@redhat.com>
4690
4691 * NEWS: Mention that m32r is multi-arch.
4692 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4693 * configure.tgt: Recognize m32r-*-*.
4694 * config/m32r/tm-m32r.h: Delete file.
4695 * config/m32r/m32r.mt: New file.
a8f4cde1 4696 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4697 gethostname succeeds, in order to avoid a compilation
4698 warning.
4699 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4700 compiler warning.
4701
19f59343
MS
47022003-08-01 Michael Snyder <msnyder@redhat.com>
4703
4704 * sh-tdep.c (sh_frame_align): New gdbarch method.
4705 (sh_gdbarch_init): Set up frame_align method.
4706
4e7d7511
MS
47072003-07-31 Michael Snyder <msnyder@redhat.com>
4708
4709 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4710 which is already covered by the new frames infrastructure.
4711
63022984
AC
47122003-07-31 Andrew Cagney <cagney@redhat.com>
4713
4714 * user-regs.c (struct user_reg): Add "next" link.
4715 (struct user_regs): Replace "user" with "first" and "last" links.
4716 (append_user_reg): Add pre-allocated "reg" parameter.
4717 (builtin_user_regs): Provide initial value for "last".
4718 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4719 (user_regs_init): Allocate memory from the gdbarch obstack.
4720 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4721 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4722 linked list.
4723 (usernum_to_user_reg): New function.
4724 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4725 (value_of_user_reg): Use usernum_to_user_reg.
4726 (user_regs_free): Delete function.
4727 (_initialize_user_regs): Update register_gdbarch_data call.
4728
7cf6e574
DJ
47292003-07-31 Daniel Jacobowitz <drow@mvista.com>
4730
4731 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4732
c48a845b
MS
47332003-07-30 Michael Snyder <msnyder@redhat.com>
4734
4e7d7511 4735 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4736 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4737 value_being_returned.
4738 * infcmd.c (print_return_value): Pass zero as struct_addr.
4739 * values.c (value_being_returned): If struct_addr is passed,
4740 use it instead of trying to recover it from the inferior.
4741
f0d8db19
KB
47422003-07-30 Kevin Buettner <kevinb@redhat.com>
4743
4744 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4745 the prologue analyzer won't need to attempt to extract the pc
4746 value from the woefully incomplete dummy frame.
4747 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4748 possible. Disable code which modifies the frame.
4749
e5c113a1
AC
47502003-07-28 Andrew Cagney <cagney@redhat.com>
4751
4752 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4753 to level 2.
4754 (annotate_breakpoints_table, annotate_record): Ditto.
4755 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4756 (annotate_field_name_end, annotate_field_value): Ditto.
4757 (annotate_field_end, annotate_frame_source_begin): Ditto.
4758 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4759 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4760 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4761 (annotate_frame_address_end, annotate_frame_address): Ditto.
4762 (annotate_frame_args, annotate_frame_end): Ditto.
4763 (annotate_frame_where, annotate_arg_begin): Ditto.
4764 (annotate_arg_name_end, annotate_arg_value): Ditto.
4765 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4766 (annotate_function_call, annotate_signal_name): Ditto.
4767 (annotate_signal_string, annotate_signal_name_end): Ditto.
4768 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4769 (annotate_value_begin, annotate_value_history_value): Ditto.
4770 (annotate_value_history_end, annotate_value_end): Ditto.
4771 (annotate_display_begin, annotate_display_number_end): Ditto.
4772 (annotate_display_format, annotate_display_expression): Ditto.
4773 (annotate_display_expression_end, annotate_display_value): Ditto.
4774 (annotate_display_end, annotate_array_section_begin): Ditto.
4775 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4776 (annotate_elt, annotate_array_section_end): Ditto.
4777
bb1db049
AC
47782003-07-28 Andrew Cagney <cagney@redhat.com>
4779
4780 * regcache.c (struct regcache_descr): Update comments on
4781 nr_raw_registers.
4782 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4783 sizeof_raw_register_valid_p.
4784 (init_regcache_descr): Set nr_raw_registers and
4785 sizeof_raw_register_valid_p before calling
4786 init_legacy_regcache_descr.
4787
20e6603c
AC
47882003-07-28 Andrew Cagney <cagney@redhat.com>
4789
4790 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4791 MOD NUM_REGS.
4792
db742940
DJ
47932003-07-28 Daniel Jacobowitz <drow@mvista.com>
4794
4795 * thread.c (info_threads_command): Use get_selected_frame ().
4796 Check that there is at least one non-sentinel frame.
4797
ce7f4371
SC
47982003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4799
4800 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4801 (m68hc11_pop_frame): Remove.
4802 (m68hc11_frame_saved_pc): Remove.
4803 (m68hc11_frame_chain): Remove.
4804 (m68hc11_frame_init_saved_regs): Remove.
4805 (m68hc11_init_extra_frame_info): Remove.
4806 (m68hc11_store_struct_return): Remove.
4807 (m68hc11_saved_pc_after_call): Remove.
4808
1ea653ae
SC
48092003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4810
4811 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4812 frame unwind information.
4813 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4814 and adapted for frame unwinding.
4815 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4816 (m68hc11_unwind_pc): New function.
4817 (m68hc11_frame_unwind_cache): New function to analyze frames.
4818 (m68hc11_frame_this_id): New function to create new frame struct.
4819 (m68hc11_frame_prev_register): New function to unwind a register from
4820 the frame.
4821 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4822 (m68hc11_frame_p): New function for the above.
4823 (m68hc11_frame_base_address): New function to return fp of frame.
4824 (m68hc11_frame_args_address): Update for frame.
4825 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4826 (m68hc11_unwind_sp): New function.
4827 (m68hc11_unwind_dummy_id): New function.
4828 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4829 calls.
4830
c8a7f6ac
SC
48312003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4832
4833 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4834 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4835 when we are beyond the current pc.
4836
3dc990bf
SC
48372003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4838
4839 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4840 from m68hc11_push_arguments.
4841 (m68hc11_push_arguments): Remove.
4842 (m68hc11_push_return_address): Remove.
4843 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4844 handlers; remove deprecated_extra_stack_alignment_needed.
4845
222e5d1d
AC
48462003-07-27 Andrew Cagney <cagney@redhat.com>
4847
4848 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4849 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4850 REAL_PC and not the pointer.
4851 * hppa-hpux-tdep.c: Include frame.h
4852
a7e9a47e
AC
48532003-07-27 Andrew Cagney <cagney@redhat.com>
4854
4855 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4856 GDB_MULTI_ACH_PARTIAL.
4857
7e3dd49e
AC
48582003-07-27 Andrew Cagney <cagney@redhat.com>
4859
4860 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4861 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4862 operator at start and not end of line.
4863 (decode_prologue): Ditto.
4864 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4865 frame_unwind_register_unsigned instead of
4866 frame_unwind_unsigned_register.
4867 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4868 read_register.
4869 (m32r_push_dummy_call): Use register_size instead of
4870 REGISTER_RAW_SIZE.
4871 (m32r_frame_sniffer): Replace m32r_frame_p.
4872 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4873 * m32r-rom.c (report_transfer_performance): Delete extern
4874 declaration.
4875 (m32r_load, m32r_upload_command): Use print_transfer_performance
4876 instead of report_transfer_performance.
4877 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4878 / add_show_from_set.
4879
0880807f
AC
48802003-07-26 Andrew Cagney <cagney@redhat.com>
4881
4882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4883 store_return_value and extract_struct_value_address.
4884
64ae9269
DJ
48852003-07-26 Daniel Jacobowitz <drow@mvista.com>
4886
4887 PR c++/1267
4888 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4889 NULL, default to the section containing PC.
4890
e286caf2
SC
48912003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4892
4893 * NEWS: Mention "regs" deprecated for m68hc11 too.
4894
4895 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4896 (m68hc11_print_register): New function to print out one register.
4897 (m68hc11_print_registers_info): New function to print registers.
4898 (show_regs): Deprecate and use the above.
4899 (m68hc11_gdbarch_init): Install the print_registers_info.
4900
705b278b
JJ
49012003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4902
4903 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4904 that we have a SIGTRAP before returning non-zero.
4905
63cd4198
EZ
49062003-07-23 Michal Ludvig <mludvig@suse.cz>
4907 Elena Zannoni <ezannoni@redhat.com>
4908
a8f4cde1 4909 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4910 find_function_start_sal() returns empty record.
4911
6926787d
AS
49122003-07-23 Andreas Schwab <schwab@suse.de>
4913
4914 * ia64-tdep.c (ia64_print_insn): New function.
4915 (ia64_gdbarch_init): Set print_insn to it.
4916 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4917 deprecated_tm_print_insn_info.
4918
708cc1b6
MS
49192003-07-22 Michael Snyder <msnyder@redhat.com>
4920
4921 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4922 handle 8-bit returns (long long).
4923 (h8300h_extract_return_value): Ditto.
4924 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4925
aebd7893
AC
49262003-07-22 Andrew Cagney <cagney@redhat.com>
4927
4928 * gdbarch.c Include "gdb_obstack.h".
4929 (struct gdbarch): Add an "obstack".
4930 (alloc_gdbarch_data): Allocate the gdbarch data using
4931 GDBARCH_OBSTACK_CALLOC.
4932 (free_gdbarch_data): Delete function.
4933 (gdbarch_obstack_zalloc): New function.
4934 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4935 Assert that the architecture is not initialized.
4936 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4937 vector from the obstack.
4938 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4939 architecture obstack.
4940 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4941 (set_gdbarch_data): Assert that the data is not initialized.
4942 (struct gdbarch_data): Delete member "free".
4943 (register_gdbarch_data): Do not initialize "free".
4944 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4945
153721e6
AC
49462003-07-22 Andrew Cagney <cagney@redhat.com>
4947
4948 * configure.in (build_warnings): Add -Wformat-nonliteral.
4949 * configure: Re-generate.
4950
c193f044 49512003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4952
4953 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4954
c3228f12
EZ
49552003-07-22 Elena Zannoni <ezannoni@redhat.com>
4956
4957 * findvar.c (read_var_value): Remove case for thread local storage
4958 variables. It is now entirely handled by the dwarf2 location
4959 expression code.
4960 * printcmd.c (address_info): Ditto.
4961 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4962 enumeration value.
4963 (struct symbol): Remove objfile field, which was used by
4964 LOC_THREAD_LOCAL_STATIC only.
4965 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4966 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4967 usage of objfile pointer.
4968 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4969 thread local variables.
4970 Add include of objfiles.h.
4971 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4972 storage variables.
4973 * Makefile.in (dwarf2loc.o): Update dependencies.
4974
aef9bcd2
AC
49752003-07-22 Andrew Cagney <cagney@redhat.com>
4976
4977 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4978 get_frame_base.
4979 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4980 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4981 (struct value): Add opaque declaration.
4982 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4983
d95a8903
AC
49842003-07-21 Andrew Cagney <cagney@redhat.com>
4985
4986 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4987 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4988
4db73d49
SC
49892003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4990
a8f4cde1 4991 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4992 regcache_cooked_read_unsigned instead of read_register.
4993 (m68hc11_saved_pc_after_call): Likewise.
4994 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4995 instead of write_register.
4996 (m68hc11_register_type): New function.
4997 (m68hc11_register_virtual_type): Remove.
4998 (m68hc11_store_return_value): Convert to use the regcache.
4999 (m68hc11_extract_struct_value_address): Likewise.
5000 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5001 m68hc11_register_type; undeprecate store_return_value and
5002 extract_struct_value_address.
5003
ef2b8fcd
SC
50042003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5005
5006 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5007 and translate to use regcache.
5008 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5009
625b0b97
AC
50102003-07-18 Andrew Cagney <cagney@redhat.com>
5011
5012 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5013 * gdbarch.h, gdbarch.c: Re-generate.
5014 * i386-tdep.c (i386_gdbarch_init): Do not set
5015 DWARF2_BUILD_FRAME_INFO.
5016 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5017 unconditionally.
5018 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5019 DWARF2_BUILD_FRAME_INFO.
5020
22b0d388
AC
50212003-07-18 Andrew Cagney <cagney@redhat.com>
5022
5023 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5024 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5025
1ce5d6dd
AC
50262003-07-18 Andrew Cagney <cagney@redhat.com>
5027
5028 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5029 frame_unwind_address_in_block, instead of frame_pc_unwind.
5030 (dwarf2_frame_cache): Ditto.
5031
e6e5e94c
AC
50322003-07-18 Andrew Cagney <cagney@redhat.com>
5033
5034 * user-regs.h (struct gdbarch): Declare opaque.
5035 * ui-out.h (struct ui_file): Declare opaque.
5036 * dwarf2-frame.h (struct frame_info): Declare opaque.
5037
5483d879
KW
50382003-07-18 Kris Warkentin <kewarken@qnx.com>
5039
5040 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5041 #include "...".
5042 (procfs_meminfo): Change strerror to safe_strerror.
5043 (procfs_can_run): Remove K&R badness.
5044
278a7cf7
MS
50452003-07-17 Michael Snyder <msnyder@redhat.com>
5046
5047 * remote-sim.c: Comment typo fix.
5048
606e3b82
AC
50492003-07-17 Andrew Cagney <cagney@redhat.com>
5050
5051 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5052 configure.
5053 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5054 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5055 GDB_MULTI_ARCH_PARTIAL.
5056
c43af07c
EZ
50572003-07-17 Elena Zannoni <ezannoni@redhat.com>
5058
5059 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5060 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5061 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5062
3b85b0f1
TR
50632003-07-16 Theodore A. Roth <troth@openavr.org>
5064
5065 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5066 found.
5067 (avr_frame_unwind_cache): Don't unwind FP for main.
5068 Update a comment.
5069 Save the computed prev_sp.
5070 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5071 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5072 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5073
336d1bba
AC
50742003-07-16 Andrew Cagney <cagney@redhat.com>
5075
5076 * frame-base.h (frame_base_p_ftype): Delete definition.
5077 (frame_base_append_predicate): Delete declaration.
5078 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5079 (frame_unwind_append_predicate): Delete declaration.
5080 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5081 (append_predicate): Delete parameter "p".
5082 (frame_unwind_append_predicate): Delete function.
5083 (frame_unwind_append_sniffer): Update call to append_predicate.
5084 (frame_unwind_free): Delete function.
5085 (_initialize_frame_unwind): Pass NULL as "free" to
5086 register_gdbarch_data.
5087 (frame_unwind_init): Append the dummy_frame_sniffer.
5088 (frame_unwind_find_by_frame): Simplify.
5089 * frame-base.c (struct frame_base_table): Delete field "p".
5090 (append_predicate): Delete parameter "p".
5091 (frame_base_append_predicate): Delete function.
5092 (frame_base_append_sniffer): Update call to append_predicate.
5093 (frame_base_free): Delete function.
5094 (frame_base_find_by_frame): Simplify.
5095 (_initialize_frame_base): Pass NULL as "free" to
5096 register_gdbarch_data.
5097 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5098 (x86_64_sigtramp_frame_sniffer): Replace
5099 "x86_64_sigtramp_frame_p".
5100 (x86_64_init_abi): Set the frame unwind sniffers.
5101 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5102 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5103 (m68k_gdbarch_init): Set the frame unwind sniffers.
5104 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5105 "i386_sigtramp_frame_p".
5106 (i386_frame_sniffer): Replace "i386_frame_p".
5107 (i386_gdbarch_init): Set the frame unwind sniffers.
5108 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5109 (avr_gdbarch_init): Set the frame unwind sniffers.
5110 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5111 "alpha_sigtramp_frame_p"
5112 (alpha_heuristic_frame_sniffer): Replace
5113 "alpha_heuristic_frame_p".
5114 (alpha_gdbarch_init): Set the frame unwind sniffers.
5115 (alpha_dwarf2_init_abi): Ditto.
5116 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5117 "alpha_debug_frame_p".
5118 (alpha_mdebug_frame_base_sniffer): Replace
5119 "alpha_mdebug_frame_base_p".
5120 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5121 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5122 (d10v_gdbarch_init): Set the frame unwind sniffer.
5123 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5124 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5125 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5126 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5127 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5128 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5129
48db5a3c
CV
51302003-07-16 Michael Snyder <msnyder@redhat.com>
5131
5132 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5133 should go thru sh_dsp_register_sim_regno, else the dsp regs
5134 will not get the right values.
5135
51362003-07-16 Corinna Vinschen <vinschen@redhat.com>
5137
5138 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5139 deprecated_store_floating by call to store_typed_floating.
5140 (sh_sh4_register_convert_to_raw): Substitute call to
5141 deprecated_extract_floating by call to extract_typed_floating.
5142
51432003-07-16 Corinna Vinschen <vinschen@redhat.com>
5144
5145 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5146
51472003-07-16 Corinna Vinschen <vinschen@redhat.com>
5148
5149 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5150 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5151 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5152 as possible.
5153 (do_pseudo_register): Remove.
5154 (sh_push_dummy_code): New function.
5155 (sh64_store_struct_return): Rename from sh_store_struct_return.
5156 Only called for sh64 now.
5157 (sh_extract_struct_value_address): Regcache'ify.
5158 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5159 and accomodate new tasks.
5160 (sh64_push_return_address): Rename from sh_push_return_address.
5161 Only called for sh64 now.
5162 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5163 Regcache'ify.
5164 (sh3e_sh4_extract_return_value): Regcache'ify.
5165 (sh_default_store_return_value): Ditto.
5166 (sh3e_sh4_store_return_value): Ditto.
5167 (sh_default_register_byte): Remove.
5168 (sh_sh4_register_byte): Remove.
5169 (sh_default_register_raw_size): Remove.
5170 (sh_sh4_register_raw_size): Remove.
5171 (sh_register_virtual_size): Remove.
5172 (sh_sh3e_register_virtual_type): Remove.
5173 (sh_sh3e_register_type): New function.
5174 (sh_sh4_register_virtual_type): Remove.
5175 (sh_sh4_register_type): New function.
5176 (sh_default_register_virtual_type): Remove.
5177 (sh_default_register_type): New function.
5178 (do_fv_register_info): Add parameters to accomodate call from
5179 sh_print_registers_info.
5180 (do_dr_register_info): Ditto.
5181 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5182 Add parameters to accomodate call from sh_print_registers_info.
5183 (sh_do_fp_register): Ditto.
5184 (sh64_do_pseudo_register): Call do_dr_register_info,
5185 do_fv_register_info and sh_do_fp_register with default parameters.
5186 (sh_do_register): Add parameters to accomodate call from
5187 sh_print_registers_info.
5188 (sh_print_register): Ditto.
5189 (sh_print_registers_info): Rename from sh_do_registers_info.
5190 Add parameters to be used as gdbarch_print_registers_info
5191 implementation. Accomodate removed do_pseudo_register function
5192 pointer.
5193 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5194 function pointer. Call sh_print_register with default parameters.
5195 (sh64_do_registers_info): Call sh_print_registers_info instead of
5196 sh_do_registers_info.
5197 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5198 detection of deprecated vs. non-deprecated functionality.
5199 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5200 function pointer assignments by direct function calls.
5201
e8a89fe2
AC
52022003-07-15 Andrew Cagney <cagney@redhat.com>
5203
5204 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5205 (frame_register_unwind, create_new_frame): Ditto.
5206 (legacy_get_prev_frame, get_frame_type): Ditto.
5207 (get_frame_base_address): Use frame_base_find_by_frame.
5208 (get_frame_locals_address): Use frame_base_find_by_frame.
5209 (get_frame_args_address): Use frame_base_find_by_frame.
5210 * frame-base.h (frame_base_sniffer_ftype): Declare.
5211 (frame_base_append_sniffer): Declare.
5212 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5213 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5214 (frame_base_append_sniffer): New function.
5215 (frame_base_append_predicate): Add a NULL sniffer.
5216 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5217 (struct frame_base_table): Add "sniffer".
5218 (frame_base_free): Free the "sniffer" table.
5219 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5220 (frame_unwind_append_sniffer): Declare.
5221 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5222 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5223 (struct frame_unwind_table): Add "sniffer", delete "middle".
5224 (append_predicate): Add "sniffer" parameter, append the sniffer.
5225 (frame_unwind_init): Update append_predicate call.
5226 (frame_unwind_append_sniffer): New function.
5227 (frame_unwind_append_predicate): Update append_predicate call.
5228 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5229
0714963c
AC
52302003-07-15 Andrew Cagney <cagney@redhat.com>
5231
5232 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5233 before code inhibiting repeated unwind attempts. Add to
5234 commentary on that test's problems.
5235 * blockframe.c (inside_main_func): Look for "main" in the minimal
5236 symbol table.
5237 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5238 identical.
5239
d9170e22
AC
52402003-07-15 Andrew Cagney <cagney@redhat.com>
5241
5242 * complaints.c (struct explanation): Define.
5243 (struct complaints): Change type of "explanation" to "struct
5244 explanation".
5245 (symfile_explanations): Convert to a "struct explanation" table.
5246 (vcomplaint): Update.
5247
eba29c8c
ML
52482003-07-15 Michal Ludvig <mludvig@suse.cz>
5249
5250 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5251 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5252 x86_64_linux_(fill,supply)_gregset functions.
5253 * x86-64-linux-tdep.c (USER_*): New defines.
5254 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5255 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5256 New functions.
5257 (fetch_core_registers): Ditto.
5258 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5259 * x86-64-linux-tdep.h: New file.
5260 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5261 and core-regset.o.
5262 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5263
68cc0bfb
MK
52642003-07-13 Mark Kettenis <kettenis@gnu.org>
5265
88a115f7
MK
5266 * x86-64-tdep.c (x86_64_store_return_value): Use
5267 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5268
68cc0bfb
MK
5269 * configure.host: Add x86_64-*-freebsd*.
5270 * configure.tgt: Add x86_64-*-freebsd*.
5271 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5272 * amd64fbsd-nat.c: New file.
5273 * amd64fbsd-tdep.c: New file.
5274 * config/i386/nm-fbsd64.h: New file.
5275 * config/i386/fbsd64.mh: New file.
5276 * config/i386/fbsd64.mt: New file.
5277
138e7be5
MK
52782003-07-11 Mark Kettenis <kettenis@gnu.org>
5279
5280 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5281 `sc_regs_offset' and `sc_fpregs_offset'.
5282 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5283 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5284 (alpha_sigtramp_register_address): Rewrite to use new members of
5285 `struct gdbarch_tdep'.
5286 (alpha_gdbarch_init): Initialize new members of struct
5287 gdbarch_tdep'.
5288 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5289 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5290 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5291 (alphafbsd_pc_in_sigtramp): Implement.
5292 (alphafbsd_sigtramp_offset): New function.
5293 (alphafbsd_sigcontext_addr): New function.
5294 (alphafbsd_init_abi): Initialize signal trampoline related members
5295 of `struct gdbarch_tdep'.
5296 (_initialize_alphafbsd_tdep): Add prototype.
5297
95303a68
TR
52982003-07-11 Theodore A. Roth <troth@openavr.org>
5299
ba292e4c
TR
5300 * Makefile.in (install-only): Quote sed expression when generating
5301 transformed_name.
95303a68 5302
6896c0c7
RH
53032003-07-11 Richard Henderson <rth@redhat.com>
5304
5305 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5306 * dwarf2-frame.c: Include complaints.h.
5307 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5308 variable initialization; return NULL on error.
5309 (decode_frame_entry): New.
5310
8edd5d01
AC
53112003-07-11 Andrew Cagney <cagney@redhat.com>
5312
c4a09524
AC
5313 * frame.h (frame_address_in_block): Delete declaration.
5314 * blockframe.c (frame_address_in_block): Delete function.
5315 (get_frame_block): Use get_frame_address_in_block.
5316 (block_innermost_frame): Ditto.
5317 * stack.c (print_frame, backtrace_command_1): Ditto.
5318
8edd5d01
AC
5319 * frame.h (get_frame_address_in_block): Declare.
5320 (frame_unwind_address_in_block): Declare.
5321 * frame.c (frame_unwind_address_in_block): New function.
5322 (get_frame_address_in_block): New function.
5323
f7968451
AC
53242003-07-10 Andrew Cagney <cagney@redhat.com>
5325
5326 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5327 pre-default. Note: re-generate has no effect.
a8f4cde1 5328
ae99b398
AC
53292003-07-10 Andrew Cagney <cagney@redhat.com>
5330
5331 * gdbarch.sh: When a variable, but not a function, compare against
5332 0. Fix problem in previous patch.
5333 * gdbarch.c: Re-generate.
a8f4cde1 5334
956ac328
AC
53352003-07-10 Andrew Cagney <cagney@redhat.com>
5336
5337 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5338 functions against NULL, not 0.
5339 * gdbarch.c: Re-generate.
a8f4cde1 5340
287c3240
FF
53412003-07-10 Fred Fish <fnf@ninemoons.com>
5342
5343 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5344 null string instead of a null pointer.
5345 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5346
32f63c4b
MS
53472003-07-09 Michael Snyder <msnyder@redhat.com>
5348
5349 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5350
402ecd56
MK
53512003-07-09 Mark Kettenis <kettenis@gnu.org>
5352
5353 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5354 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5355 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5356 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5357 * x86-64-tdep.c: ... from here.
5358
c481dac7
AS
53592003-07-09 Andreas Schwab <schwab@suse.de>
5360
5361 * m68k-tdep.h (enum struct_return): Define.
5362 (struct gdbarch_tdep): Add struct_return.
5363 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5364 bytes are padded to the right, not to the left. Pass struct value
5365 address in register %a1, not on stack.
5366 (m68k_use_struct_convention): New function.
5367 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5368 struct_return in tdep to pcc_struct_return.
5369 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5370 reg_struct_return.
5371
a8f4cde1 53722003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5373
a8f4cde1 5374 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5375
96a4ee76
AC
53762003-07-09 Andrew Cagney <cagney@redhat.com>
5377
5378 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5379 Add comments about the checks.
5380
1517c6d1
AC
53812003-07-08 Andrew Cagney <cagney@redhat.com>
5382
5383 * Makefile.in: Make dependency section headers consistent.
5384 (config_h): Move to $BUILD headers section.
5385 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5386 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5387 (ada-exp.tab.c): Move to YACC/LEX section.
5388 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5389 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5390
dc5dd1eb
KW
53912003-07-08 Kris Warkentin <kewarken@qnx.com>
5392
5393 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5394 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5395 of strerror with safe_strerror, use ISO C function definitions,
5396 and replace instances of sprintf with snprintf.
dc5dd1eb 5397
612dde91
AC
53982003-07-07 Andrew Cagney <cagney@redhat.com>
5399
5400 * frame.c (get_prev_frame): Enable check for identical frames.
5401 Update comments. Update error messages.
5402
492c11d3
JB
54032003-07-07 Joel Brobecker <brobecker@gnat.com>
5404
5405 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5406
376a5a49
JB
54072003-07-07 Joel Brobecker <brobecker@gnat.com>
5408
5409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5410 sort_symtab_syms, no longer necessary.
5411
22b4a9ad
JB
54122003-07-07 Joel Brobecker <brobecker@gnat.com>
5413
5414 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5415
5bbcb741
JB
54162003-07-07 Joel Brobecker <brobecker@gnat.com>
5417
5418 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5419 (mips_register_byte): Likewise.
5420
c139e7d9
DJ
54212003-07-07 Daniel Jacobowitz <drow@mvista.com>
5422
5423 * Makefile.in (sparc_tdep_h): New.
5424 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5425 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5426 * sparc-linux-nat.c: Include "sparc-tdep.h".
5427 * sparc-nat.c: Likewise.
5428 * sparc-tdep.c: Likewise.
5429 * sparc64nbsd-nat.c: Likewise.
5430 * sparcnbsd-nat.c: Likewise.
5431 * sparcnbsd-tdep.c: Likewise.
5432 * sparc-tdep.h: New file.
5433 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5434 and sparc_npc_regnum.
5435
fd8f87c5
DJ
54362003-07-07 Daniel Jacobowitz <drow@mvista.com>
5437
5438 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5439 (mips_linux_cannot_store_register): List supported instead of
5440 unsupported registers.
5441
13adf674
DJ
54422003-07-07 Daniel Jacobowitz <drow@mvista.com>
5443
5444 * disasm.c (dump_insns): Separate instructions from addresses.
5445
8de307e0
AS
54462003-07-07 Andreas Schwab <schwab@suse.de>
5447
5448 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5449 dependencies.
5450 * m68k-tdep.c (NUM_FREGS): Delete.
5451 (SIG_PC_FP_OFFSET): Delete.
5452 (TARGET_M68K): Delete.
5453 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5454 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5455 P_MOVEL_SP, P_MOVEML_SP): Define.
5456 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5457 P_TRAP): Delete.
5458 (m68k_register_raw_size): Delete.
5459 (m68k_register_virtual_size): Delete.
5460 (m68k_register_type): Renamed from m68k_register_virtual_type and
5461 add gdbarch argument.
5462 (m68k_store_struct_return): Delete.
5463 (m68k_deprecated_extract_return_value): Delete.
5464 (m68k_deprecated_extract_struct_value_address): Delete.
5465 (m68k_frame_chain): Delete.
5466 (m68k_frame_saved_pc): Delete.
5467 (m68k_fix_call_dummy): Delete.
5468 (m68k_push_dummy_frame): Delete.
5469 (m68k_pop_frame): Delete.
5470 (m68k_extract_return_value): New function.
5471 (m68k_store_return_value): Rewrite using regcache.
5472 (m68k_extract_struct_value_address): Rewrite using regcache.
5473 (m68k_push_dummy_call): New function.
5474 (struct m68k_frame_cache): Define.
5475 (m68k_alloc_frame_cache): New function.
5476 (m68k_analyze_frame_setup): New function.
5477 (m68k_analyze_register_saves): New function.
5478 (m68k_analyze_prologue): New function.
5479 (m68k_skip_prologue): Rewrite using above functions.
5480 (m68k_unwind_pc): New function.
5481 (m68k_frame_cache): New function.
5482 (m68k_frame_this_id): New function.
5483 (m68k_frame_prev_register): New function.
5484 (m68k_frame_unwind): New variable.
5485 (m68k_frame_p): New function.
5486 (m68k_sigtramp_frame_cache): New function.
5487 (m68k_sigtramp_frame_this_id): New function.
5488 (m68k_sigtramp_frame_prev_register): New function.
5489 (m68k_sigtramp_frame_unwind): New variable.
5490 (m68k_sigtramp_frame_p): New function.
5491 (m68k_frame_base_address): New function.
5492 (m68k_frame_base): New function.
5493 (m68k_unwind_dummy_id): New function.
5494 (fill_gregset): Use regcache_collect.
5495 (fill_fpregset): Likewise.
5496 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5497 defined.
5498 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5499 deprecated_init_frame_pc, deprecated_store_struct_return,
5500 deprecated_extract_return_value, deprecated_store_return_value,
5501 deprecated_frame_chain, deprecated_frame_saved_pc,
5502 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5503 deprecated_register_virtual_size,
5504 deprecated_max_register_raw_size,
5505 deprecated_max_register_virtual_size,
5506 deprecated_register_virtual_type, deprecated_register_size,
5507 deprecated_register_byte, deprecated_register_bytes,
5508 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5509 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5510 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5511 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5512 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5513 deprecated_push_dummy_frame, deprecated_pop_frame,
5514 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5515 only if SYSCALL_TRAP is defined. Set extract_return_value,
5516 store_return_value, extract_struct_value_address, register_type,
5517 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5518 predicates.
5519 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5520 M68K_MAX_REGISTER_SIZE): Define.
5521 (struct m68k_sigtramp_info): Define.
5522 (struct gdbarch_tdep): Add get_sigtramp_info.
5523 * m68klinux-nat.c (fetch_register): Use register_size instead of
5524 REGISTER_RAW_SIZE. Don't put assignment in if.
5525 (store_register): Likewise.
5526 (fetch_inferior_registers): Likewise.
5527 (store_inferior_registers): Likewise.
5528 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5529 (m68k_linux_frame_saved_pc): Delete.
5530 (m68k_linux_sigcontext_reg_offset,
5531 m68k_linux_ucontext_reg_offset): Define.
5532 (m68k_linux_get_sigtramp_info): New function.
5533 (m68k_linux_extract_return_value): Rewrite using regcache.
5534 (m68k_linux_store_return_value): Likewise.
5535 (m68k_linux_extract_struct_value_address): Likewise.
5536 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5537 Don't set deprecated_frame_saved_pc,
5538 deprecated_extract_return_value, deprecated_store_return_value,
5539 deprecated_extract_struct_value_address. Set
5540 extract_return_value, store_return_value,
5541 extract_struct_value_address.
5542
eb8bc282
AC
55432003-07-07 Andrew Cagney <cagney@redhat.com>
5544
5545 * expprint.c: Include "user-regs.h" instead of "frame.h".
5546 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5547 frame_map_regnum_to_name.
5548 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5549 (frame_map_name_to_regnum): Simplify, call
5550 user_reg_map_name_to_regnum.
5551 (frame_map_regnum_to_name): Simplify, call
5552 user_reg_map_regnum_to_name.
5553 (frame_register_unwind): Update.
5554 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5555 (_initialize_frame_reg): Call user_reg_add_builtin.
5556 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5557 (value_of_register): Use value_of_user_reg.
5558 * eval.c (evaluate_subexp_standard): Update.
5559 * parse.c (write_dollar_variable): Update.
5560 * d10v-tdep.c (d10v_print_registers_info): Update.
5561 * infcmd.c (registers_info): Update.
5562 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5563 (builtin_regs_h): Delete macro.
5564 (user_regs_h): Define.
5565 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5566 (builtin-regs.o): Delete target.
5567 (user-regs.o): Specify dependencies.
5568 (expprint.o): Update dependencies.
5569 (findvar.o): Update dependencies.
5570 (frame.o): Update dependencies.
5571 (std-regs.o): Update dependencies.
5572
9f476a01
CF
55732003-07-06 Christopher Faylor <cgf@redhat.com>
5574
5575 * win32-nat.c (solib_symbols_add): Use one variable for all section
5576 address stuff. Pass variable rather than address of variable to
5577 safe_symbol_file_add.
5578
a731b831
AS
55792003-07-06 Andreas Schwab <schwab@suse.de>
5580
5581 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5582
9f83329d
JB
55832003-07-04 Joel Brobecker <brobecker@gnat.com>
5584
5585 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5586
27e28cc5
KW
55872003-07-04 Kris Warkentin <kewarken@qnx.com>
5588
5589 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5590
55912003-07-04 Kris Warkentin <kewarken@qnx.com>
5592
5593 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5594 * config/i386/nto.mh: New file.
5595 * config/i386/nm-nto.h: New file.
5596 * configure.host: Add i[3456]86-*-nto*.
5597
100f2e98
JB
55982003-07-03 Joel Brobecker <brobecker@gnat.com>
5599
5600 * remote-vx.c (vx_add_symbols): Fix compilation error.
5601
e23457df
AC
56022003-07-03 Andrew Cagney <cagney@redhat.com>
5603
5604 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5605 * gdbarch.h, gdbarch.c: Re-generate.
5606 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5607 (legacy_register_name): Declare.
5608 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5609 (REGISTER_NAME): Define.
5610 * sparc-tdep.c (legacy_register_name): New function.
5611 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5612 (REGISTER_NAME): Define.
5613 (hppa64_register_name): Declare.
5614 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5615 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5616 (hppa64_register_name): New function.
5617 (hppa_register_name): New function.
5618 * arch-utils.c (legacy_register_name): Delete.
5619 * arch-utils.h (legacy_register_name): Delete.
5620
38caaeec
DJ
56212003-07-03 Daniel Jacobowitz <drow@mvista.com>
5622
5623 * cli/cli-interp.c (cli_interpreter_resume): Update the
5624 cli_uiout's stream to gdb_stdout.
5625
dadd712e
AC
56262003-07-03 Andrew Cagney <cagney@redhat.com>
5627
5628 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5629 predicate.
5630 * gdbarch.h, gdbarch.c: Re-generate.
5631 * regcache.c (init_regcache_descr): Use legacy code when either
5632 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5633
c7f1390e
DJ
56342003-07-02 Daniel Jacobowitz <drow@mvista.com>
5635
5636 * NEWS: Move "set logging" entry into GDB 6.0 section.
5637
4bc8c588
JB
56382003-07-02 Jim Blandy <jimb@redhat.com>
5639
a9dd42f1
JB
5640 * s390-tdep.c (struct frame_extra_info): new member:
5641 'stack_bought_valid'.
5642 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5643 initialize fextra_info->stack_bought.
5644 (s390_frameless_function_invocation): Don't trust the value of
5645 fextra_info_ptr->stack_bought unless
5646 fextra_info->stack_bought_valid is set.
5647
4bc8c588
JB
5648 New S390 prologue analyzer.
5649 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5650 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5651 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5652 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5653 compute_x_addr, s390_on_stack, s390_store,
5654 s390_get_signal_frame_info): New functions.
5655 (S390_NUM_SPILL_SLOTS): New macro.
5656 (s390_get_frame_info): Rewritten.
5657 (is_arg_reg): Deleted.
5658
5659 Break out the decoding of S/390 instructions into separate
5660 functions, to make it more legible, and easier to check
5661 against the spec.
5662 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5663 is_rx, is_rxe): New functions.
5664 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5665 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5666 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5667 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5668 enums for opcode values. (Is this an improvement?)
5669
fd13a04a
AC
56702003-07-02 Andrew Cagney <cagney@redhat.com>
5671
5672 * i386-tdep.c: Revert change committed as part of trad-frame code
5673 below.
5674
3f8091c1
DJ
56752003-07-02 Daniel Jacobowitz <drow@mvista.com>
5676
5677 * breakpoint.c (insert_catchpoint): Make static.
5678
8dd5115e
AS
56792003-07-02 Andreas Schwab <schwab@suse.de>
5680
5681 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5682 former ia64_push_arguments and ia64_push_return_address, and use
5683 regcache functions instead of read/write_register.
5684 (ia64_gdbarch_init): Set push_dummy_call instead of
5685 deprecated_push_arguments and deprecated_push_return_address.
5686
a2229c23
AJ
56872003-07-01 Andreas Jaeger <aj@suse.de>
5688
5689 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5690 before the call.
5691 Set %rax only to number of SSE registers used.
5692
3b3850e8
AC
56932003-07-01 Andrew Cagney <cagney@redhat.com>
5694
5695 * trad-frame.h: Update comments, a -1 .addr is reserved.
5696 (trad_frame_value_p, trad_frame_addr_p): Declare.
5697 (trad_frame_reg_p): Declare.
5698 (trad_frame_set_value): Rename trad_frame_register_value.
5699 (trad_frame_set_unknown): Declare.
5700 * trad-frame.c (trad_frame_realreg_p): New function.
5701 (trad_frame_addr_p, trad_frame_value_p): New function.
5702 (trad_frame_set_unknown): New function.
5703 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5704 (trad_frame_prev_register): Use trad_frame_realreg_p,
5705 trad_frame_addr_p and trad_frame_value_p.
5706 (trad_frame_set_value): Rename trad_frame_register_value.
5707 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5708 and trad_frame_set_value.
a2229c23 5709
4d819d0e
JB
57102003-06-30 Jim Blandy <jimb@redhat.com>
5711
5712 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5713 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5714 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5715 for 16 registers, and then 32 more bytes.
5716 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5717 New macros.
5718 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5719 Move up in the file, since it's now used by is_simple_arg.
5720 (is_simple_arg): Don't assume registers are four bytes long.
5721 Exclude all double arguments. Extended floats are not simple
5722 args.
5723 (is_power_of_two): New function.
5724 (pass_by_copy_ref): Call is_power_of_two, and check that the
5725 length fits in a register, rather than listing all the acceptable
5726 sizes. Extended floats are not passed by reference.
5727 (s390_push_arguments): Don't assume registers are four bytes long.
5728 Reserve an argument register to point to the buffer for structures
5729 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5730 S390_STACK_FRAME_OVERHEAD.
5731
1ad828f1
AS
57322003-06-30 Andreas Schwab <schwab@suse.de>
5733
5734 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5735 format error message.
5736
39b00981
JB
57372003-06-30 Joel Brobecker <brobecker@gnat.com>
5738
5739 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5740
b2a7f303
DC
57412003-06-30 David Carlton <carlton@kealia.com>
5742
5743 Band-aid for PR c++/1245.
5744 * Makefile.in (cp-support.o): Depend on complaints_h.
5745 * cp-support.c: Include complaints.h. Add declaration for
5746 find_last_component.
5747 (cp_find_first_component): Separate code into
5748 cp_find_first_component_aux.
5749 (cp_find_first_component_aux): Call demangled_name_complaint.
5750 (demangled_name_complaint): New.
5751
a257b5bb
AC
57522003-06-30 Andrew Cagney <cagney@redhat.com>
5753
5754 * remote.c (remote_write_bytes): Explicitly compute and then use
5755 the payload size. Update comments to reflect. Fixes problem of
5756 GDB not sending small packets as found by Fred Fish.
5757
0a2cfde4
AC
57582003-06-30 Andrew Cagney <cagney@redhat.com>
5759
5760 * remote.c (remote_async_wait): Fix -Wformat problem.
5761
3fcb8548
AC
57622003-06-29 Andrew Cagney <cagney@redhat.com>
5763
5764 * remote.c (remote_wait): Call error, and not warning, when the
5765 packet is corrupt.
5766 (remote_async_wait): Ditto.
5767
9f9970a3
DJ
57682003-06-29 Daniel Jacobowitz <drow@mvista.com>
5769
5770 * sparc-tdep.c (sparc_y_regnum): Make external again.
5771
83a8ccca
DJ
57722003-06-29 Daniel Jacobowitz <drow@mvista.com>
5773
5774 * cli/cli-logging.c (pop_output_files): Add void to function
5775 definition.
5776
d2cf594a
AC
57772003-06-29 Andrew Cagney <cagney@redhat.com>
5778
5779 * frame.c (frame_register_unwind): Use unsigned char when dumping
5780 the buffer contents.
5781
0fac0b41
DJ
57822003-06-28 Daniel Jacobowitz <drow@mvista.com>
5783
5784 * cli/cli-logging.c: New file.
5785 * cli-out.c (struct ui_out_data): Add original_stream.
5786 (cli_redirect): New function.
5787 (cli_ui_out_impl): Add cli_redirect.
5788 (cli_out_new): Initialize original_stream.
5789 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5790 (uo_redirect, ui_out_redirect): New.
5791 * ui-out.h (struct ui_out_impl): Add redirect member.
5792 (redirect_ftype): New.
5793 (ui_out_redirect): Add prototype.
5794 * Makefile.in: Add rules for cli-logging.c.
5795 * NEWS: Mention "set logging".
5796
88a07d7c
EZ
57972003-06-27 Elena Zannoni <ezannoni@redhat.com>
5798
5799 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5800
4eb58876
AC
58012003-06-27 Andrew Cagney <cagney@redhat.com>
5802
5803 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5804 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5805 * avr-tdep.c (avr_call_dummy_address): Delete function.
5806 (avr_gdbarch_init): Do not set call_dummy_address.
5807
1549f619
EZ
58082003-06-27 Elena Zannoni <ezannoni@redhat.com>
5809
5810 * symfile.c (syms_from_objfile): Move variables to inner block.
5811 Move the checks for the non-mainline case a bit earlier to avoid
5812 doing some useless computations.
5813
3cb3398d
EZ
58142003-06-27 Elena Zannoni <ezannoni@redhat.com>
5815
5816 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5817
3799ccc6
EZ
58182003-06-26 Elena Zannoni <ezannoni@redhat.com>
5819
5820 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5821 sections.
5822
ce1f6491
MC
58232003-06-26 Michael Chastain <mec@shout.net>
5824
5825 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5826 gdb/testsuite/gdb.c++/pr-1210.exp.
5827
d958dfd0
AC
58282003-06-26 Andrew Cagney <cagney@redhat.com>
5829
5830 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5831 altivec_expression.h and altivec_registers.h.
5832
d31431ed
AC
58332003-06-26 Andrew Cagney <cagney@redhat.com>
5834
5835 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5836 info->mach when MIPS16. Patch suggested by Fred Fish.
5837
714b1282
AC
58382003-06-26 Andrew Cagney <cagney@redhat.com>
5839
5840 * utils.c (internal_vproblem): Print the problem to a reason
5841 buffer and then pass to query. Make the msg variable more local.
5842
42efa47a
AC
58432003-06-26 Andrew Cagney <cagney@redhat.com>
5844
5845 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5846 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5847 * gdbarch.h, gdbarch.c: Re-generate.
5848 * frame-base.c (default_frame_args_address): Update. Use
5849 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5850 not available.
5851 (default_frame_locals_address): Ditto for
5852 DEPRECATED_FRAME_LOCALS_ADDRESS.
5853 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5854 (vax_frame_num_args): Update.
5855 (vax_gdbarch_init): Update.
5856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5858 * mcore-tdep.c (mcore_gdbarch_init): Update.
5859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5860 * ia64-tdep.c (ia64_gdbarch_init): Update.
5861 * symtab.h (address_class): Update comments.
5862 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5863 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5864 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5865 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5866 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5867 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5868 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5869 * alpha-mdebug-tdep.c: Update.
5870 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5871
8ffd9b1b
AJ
58722003-06-26 Andreas Jaeger <aj@suse.de>
5873
5874 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5875 of SSE registers so that varargs functions work. Rework handling
5876 of passing arguments on the stack.
5877 (x86_64_store_return_value): Return double and float values in SSE
5878 register.
5879
e8ac10a6
MC
58802003-06-24 Michael Chastain <mec@shout.net>
5881
5882 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5883 the "constructor breakpoints ignored" bug.
5884
986af8e6
DC
58852003-06-25 David Carlton <carlton@kealia.com>
5886
5887 * MAINTAINERS: Update e-mail address.
5888
d64558a5
JB
58892003-06-24 Jim Blandy <jimb@redhat.com>
5890
e538d2d7
JB
5891 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5892
02631ec0
JB
5893 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5894 function.
5895 (ppc_linux_init_abi): Register it as the
5896 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5897
e716d87a
JB
5898 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5899 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5900 method.
5901
d64558a5
JB
5902 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5903 (ppc64_standard_linkage_target): Use it.
5904
449a5da4
AC
59052003-06-23 Andrew Cagney <cagney@redhat.com>
5906
5907 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5908 for 0 "int0" and 4 "int32" sized registers.
5909 * gdbtypes.c (builtin_type_int0): Define.
5910 (build_gdbtypes): Initialize builtin_type_int0.
5911 * gdbtypes.h (builtin_type_int0): Declare.
5912
b2a02dda
SC
59132003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5914
5915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5916 as characters are unsigned.
5917
fba3138e
DJ
59182003-06-22 Daniel Jacobowitz <drow@mvista.com>
5919
5920 PR gdb/1179
5921 * dwarfread.c (struct_type): Skip static fields without crashing.
5922
f6c8180b
AC
59232003-06-22 Andrew Cagney <cagney@redhat.com>
5924
5925 GDB 6.0 branch created.
f2c06f52
AC
5926 * README: Update.
5927 * PROBLEMS: Update. Empty.
5928 * NEWS: Update.
f6c8180b 5929
ae822768
DJ
59302003-06-22 Daniel Jacobowitz <drow@mvista.com>
5931
5932 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5933 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5934
261de166
AC
59352003-06-22 Andrew Cagney <cagney@redhat.com>
5936
5937 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5938 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5939 Velikov.
5940
30e94205
DJ
59412003-06-22 Daniel Jacobowitz <drow@mvista.com>
5942
5943 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5944 compilers.
5945
9e14d721
DJ
59462003-06-21 Daniel Jacobowitz <drow@mvista.com>
5947
5948 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5949 argument of val_print.
5950 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5951 to the address argument of baseclass_offset or target_read_memory.
5952 Do add it to the argument of cp_print_value_fields.
5953
a4b8ebc8
AC
59542003-06-21 Andrew Cagney <cagney@redhat.com>
5955
5956 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5957 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5958 instead of 0..NUM_REGS.
5959 (mips_register_reggroup_p): New function.
5960 (mips_pseudo_register_write): New function.
5961 (mips_pseudo_register_read): New function.
5962 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5963 based on the register's type.
5964 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5965 cooked.
5966 (mips_get_saved_register): Simplify. Assert that REGNO is a
5967 pseudo / cooked.
5968 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5969 (mips_register_type): Replace mips_register_virtual_type. Map
5970 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5971 when available.
5972 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5973 that the register is cooked / virtual.
5974 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5975 Only get the extra info when needed.
5976 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5977 (mips32_heuristic_proc_desc): Fetch the cooked register.
5978 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5979 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5980 (mips_print_register): Use gdbarch_register_type, instead of
5981 REGISTER_VIRTUAL_TYPE.
5982 (print_gp_register_row): Use gdbarch_register_type, instead of
5983 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5984 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5985 Print the pseudo / cooked registers.
5986 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5987 Print the pseudo / cooked registers.
5988 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5989 REG_NUM is pseudo / cooked.
5990 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5991 (mips_n32n64_xfer_return_value): Ditto.
5992 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5993 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5994 (mips_register_sim_regno): New function.
5995 (mips_gdbarch_init): Set deprecated_register_byte,
5996 register_group_p, pseudo_register_write, pseudo_register_read,
5997 register_sim_regno, and num_pseudo_regs. Set register_type,
5998 instead of register_virtual_type.
5999 * Makefile.in (mips-tdep.o): Update dependencies.
6000 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6001 REGISTER_VIRTUAL_TYPE.
6002 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6003 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6004 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6005 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6006 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6007
325ed089
DJ
60082003-06-21 Daniel Jacobowitz <drow@mvista.com>
6009
6010 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6011 * cli/cli-cmds.c: Include "gdb_vfork.h".
6012 (shell_escape): Use vfork.
6013
f0e7d0e8
AC
60142003-06-21 Andrew Cagney <cagney@redhat.com>
6015
c57bb9fa
AC
6016 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6017 32 bit floating-point register saves.
6018
6e51443a
AC
6019 * frame.h (deprecated_unwind_get_saved_register): Delete.
6020 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6021 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6022 and deprecated_get_next_frame_hack instead of
6023 deprecated_unwind_get_saved_register.
6024
ed183c7c
AC
6025 * mips-tdep.c (mips_dump_tdep): Do not print
6026 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6027
f0e7d0e8
AC
6028 * frame.c (get_frame_register): New function.
6029 (frame_unwind_register_signed): New function.
6030 (get_frame_register_signed): New function.
6031 (frame_unwind_register_unsigned): New function.
6032 (get_frame_register_unsigned): New function.
6033 * frame.h: Add comments on naming schema.
6034 (get_frame_register, frame_unwind_register_signed): Declare.
6035 (get_frame_register_signed, get_frame_register_signed): Declare.
6036 (frame_unwind_register_unsigned): Declare.
6037 (get_frame_register_unsigned): Declare.
6038
2224d941
TR
60392003-06-20 Theodore A. Roth <troth@openavr.org>
6040
6041 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6042
8619218d
TR
60432003-06-20 Theodore A. Roth <troth@openavr.org>
6044
6045 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6046 (avr_read_sp): Ditto.
6047
0b1b50c0
DJ
60482003-06-20 Daniel Jacobowitz <drow@mvista.com>
6049
6050 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6051 * config/arm/nm-linux.h: Likewise.
6052 * config/arm/tm-linux.h: Likewise.
6053 * config/ia64/nm-linux.h: Likewise.
6054 * config/ia64/tm-ia64.h: Likewise.
6055 * config/s390/tm-linux.h: Likewise.
6056 * config/s390/tm-s390.h: Likewise.
6057 * s390-nat.c: Likewise.
6058 * s390-tdep.c: Likewise.
6059
6060 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6061 * config/ia64/linux.mt: Likewise.
6062 * config/m68k/linux.mh: Likewise.
6063 * config/mips/linux.mt: Likewise.
6064 * config/powerpc/linux.mh: Likewise.
6065 * config/sh/linux.mt: Likewise.
6066
c8c18e65
KW
60672003-06-19 Kris Warkentin <kewarken@qnx.com>
6068
6069 * solib.c (solib_open): Change tests for whether to search
6070 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6071 comments.
6072
dcccef2e
TR
60732003-06-19 Theodore A. Roth <troth@openavr.org>
6074
6075 * avr-tdep.c (avr_frame_address): Delete function.
6076 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6077 set_gdbarch_frame_args_address.
6078
5861a190
AC
60792003-06-19 Andrew Cagney <cagney@redhat.com>
6080
6081 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6082 (REGISTER_CONVERT_FROM_TYPE): Delete.
6083 (mips_register_convert_to_type): Delete declaration.
6084 (mips_register_convert_from_type): Delete declaration.
6085 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6086 kernel/.
6087
0274a8ce
MS
60882003-06-19 Michael Snyder <msnyder@redhat.com>
6089
6090 * linux-nat.h: New file.
6091 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6092 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6093 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6094 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6095 (linux_make_note_section): Iterate over lwps instead of threads.
6096 (linux_do_thread_registers): Use lwp instead of merged pid.
6097 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6098 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6099 Add dependency on linux_nat_h.
6100
adf5f719
TR
61012003-06-19 Theodore A. Roth <troth@openavr.org>
6102
6103 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6104
6766a268
DJ
61052003-06-19 Daniel Jacobowitz <drow@mvista.com>
6106
6107 * varobj.c (get_type, get_target_type): Use check_typedef.
6108
1171114a
DJ
61092003-06-19 Daniel Jacobowitz <drow@mvista.com>
6110
6111 * breakpoint.c (insert_catchpoint): Call internal_error.
6112
adcf68a2
TR
61132003-06-19 Theodore A. Roth <troth@openavr.org>
6114
6115 * avr-tdep.c (avr_push_dummy_code): Delete function.
6116 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6117
ea67f13b
DJ
61182003-06-19 Daniel Jacobowitz <drow@mvista.com>
6119
6120 * arch-utils.c (default_prepare_to_proceed): Remove.
6121 (generic_prepare_to_proceed): Remove.
6122 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6123 (generic_prepare_to_proceed): Remove prototype.
6124 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6125 * gdbarch.c: Regenerate.
6126 * gdbarch.h: Regenerate.
6127 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6128 * hppah-nat.c (hppa_switched_threads): Remove.
6129 * infrun.c (prepare_to_proceed): New static function, copied from
6130 generic_prepare_to_proceed. Remove select_it argument.
6131 (proceed): Call prepare_to_proceed.
6132 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6133 variables.
6134 (ptrace_wait): Don't set the removed variables.
6135 (hppa_switched_threads): Remove.
6136 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6137 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6138 (lin_lwp_prepare_to_proceed): Remove prototype.
6139 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6140 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6141
4add8633
TR
61422003-06-18 Theodore A. Roth <troth@openavr.org>
6143
6144 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6145 trad-frame.h.
6146 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6147 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6148 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6149 (AVR_PROLOGUE_*): Enumerate prologue types.
6150 (struct frame_extra_info): Remove.
6151 (struct avr_unwind_cache): Define.
6152 (avr_write_sp): Delete function.
6153 (avr_read_fp): Ditto.
6154 (avr_init_extra_frame_info): Ditto.
6155 (avr_pop_frame): Ditto.
6156 (avr_frame_saved_pc): Ditto.
6157 (avr_saved_pc_after_call): Ditto.
6158 (avr_push_return_address): Ditto.
6159 (avr_frame_chain): Ditto.
6160 (avr_store_struct_return): Ditto.
6161 (avr_push_arguments): Ditto.
6162 (avr_scan_prologue): Update comments. Changed to set up the info for
6163 cache unwinding. Now returns end of prologue PC.
6164 (avr_skip_prologue): Better handling of functions lacking a prologue
6165 by using avr_scan_prologue.
6166 (avr_scan_arg_moves): New function.
6167 (avr_saved_regs_unwinder): Ditto.
6168 (avr_frame_unwind_cache): Ditto.
6169 (avr_unwind_pc): Ditto.
6170 (avr_frame_this_id): Ditto.
6171 (avr_frame_prev_register): Ditto.
6172 (avr_frame_p): Ditto.
6173 (avr_frame_base_address ): Ditto.
6174 (avr_unwind_dummy_id): Ditto.
6175 (avr_push_dummy_code): Ditto.
6176 (push_stack_item): Ditto.
6177 (pop_stack_item): Ditto.
6178 (avr_push_dummy_call): Ditto.
6179 (struct stack_item): Define.
6180 (avr_frame_unwind): Declare structure.
6181 (avr_frame_base): Ditto.
6182 (avr_gdbarch_init): Remove calls to
6183 set_gdbarch_deprecated_init_frame_pc,
6184 set_gdbarch_deprecated_target_read_fp,
6185 set_gdbarch_deprecated_dummy_write_sp,
6186 set_gdbarch_deprecated_fp_regnum,
6187 set_gdbarch_deprecated_push_arguments,
6188 set_gdbarch_deprecated_push_return_address,
6189 set_gdbarch_deprecated_pop_frame,
6190 set_gdbarch_deprecated_store_struct_return,
6191 set_gdbarch_deprecated_frame_init_saved_regs,
6192 set_gdbarch_deprecated_init_extra_frame_info,
6193 set_gdbarch_deprecated_frame_chain,
6194 set_gdbarch_deprecated_frame_saved_pc,
6195 set_gdbarch_deprecated_saved_pc_after_call.
6196 Add calls to set_gdbarch_push_dummy_call,
6197 set_gdbarch_push_dummy_code,
6198 frame_unwind_append_predicate,
6199 frame_base_set_default,
6200 set_gdbarch_unwind_dummy_id,
6201 set_gdbarch_unwind_pc.
6202 Wrap a long line.
6203
7be04a68
MS
62042003-06-18 Corinna Vinschen <vinschen@redhat.com>
6205
6206 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6207 registers for H8/300S.
6208 (h8300_print_registers_info): Ditto.
8ffd9b1b 6209 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6210
ae087d01
DJ
62112003-06-18 Daniel Jacobowitz <drow@mvista.com>
6212
6213 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6214 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6215 (lin_lwp_wait): Likewise. Update comments.
6216 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6217 (pull_pid_from_list, linux_record_stopped_pid): New.
6218
07d8f827
SC
62192003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6220
6221 * ada-lang.c (scan_discrim_bound): Name first argument.
6222 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6223 declared by ALL_BLOCK_SYMBOLS.
6224
7cb47b14
SC
62252003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6226
6227 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6228 ("regcache.h"): Include it.
6229 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6230
6ad8ae5c
DJ
62312003-06-17 Daniel Jacobowitz <drow@mvista.com>
6232
6233 * NEWS: Mention gdbserver detach change and "disconnect" command.
6234 * infcmd.c (disconnect_command): New function.
6235 (_initialize_infcmd): Add ``disconnect'' command.
6236 * remote.c (remote_async_detach): Delete.
6237 (remote_detach): Merge remote_async_detach.
6238 (remote_disconnect): New.
6239 (init_remote_ops): Set to_disconnect.
6240 (init_remote_cisco_ops): Likewise.
6241 (init_remote_async_ops): Likewise. Use remote_detach.
6242 * target.c (cleanup_target): Default to_disconnect.
6243 (update_current_target): Inherit to_disconnect.
6244 (target_disconnect, debug_to_disconnect): New functions.
6245 (setup_target_debug): Set to_disconnect.
6246 * target.h (struct target_ops): Add to_disconnect.
6247 (target_disconnect): Add prototype.
6248
687595f9
DJ
62492003-06-17 Daniel Jacobowitz <drow@mvista.com>
6250
6251 * breakpoint.c (insert_catchpoint): New function.
6252 (insert_breakpoints): Use catch_exceptions to call
6253 insert_catchpoint. Disable catchpoints if they fail to insert.
6254
29239a8f
DJ
62552003-06-17 Daniel Jacobowitz <drow@mvista.com>
6256
6257 * symfile.c (reread_symbols): Clear sym_private.
6258
2cdf3c63
AC
62592003-06-17 Andrew Cagney <cagney@redhat.com>
6260
6261 * trad-frame.h (struct frame_info): Add opaque declaration.
6262 * remote-fileio.h (struct cmd_list_element): Add opaque
6263 declaration.
6264 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6265 comments.
6266
cf0e1e0d
DJ
62672003-06-17 Daniel Jacobowitz <drow@mvista.com>
6268
6269 * remote.c (remote_prepare_to_store): Replace call to
6270 deprecated_read_register_bytes with multiple regcache_raw_read
6271 calls.
6272
192cdb19
KW
62732003-06-17 Kris Warkentin <kewarken@qnx.com>
6274
6275 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6276 (nto_find_and_open_solib): Likewise.
6277 (nto_init_solib_absolute_prefix): Likewise.
6278 (_initialize_nto_tdep): Fix indentation.
6279
89929b45
KW
62802003-06-17 Kris Warkentin <kewarken@qnx.com>
6281
6282 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6283
46019f27
KW
62842003-06-17 Kris Warkentin <kewarken@qnx.com>
6285
6286 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6287
1a38736e
JB
62882003-06-17 Jim Blandy <jimb@redhat.com>
6289
6290 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6291
3605c34a
TR
62922003-06-16 Theodore A. Roth <troth@openavr.org>
6293
6294 * avr-tdep.c (avr_extract_return_value): New function.
6295 (avr_gdbarch_init): Set extract_return_value method.
6296
870b3035
AC
62972003-06-16 Andrew Cagney <cagney@redhat.com>
6298
6299 * frame.h (deprecated_get_next_frame_hack): Declare.
6300 * frame.c (legacy_saved_regs_prev_register): Only require
6301 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6302 there are always saved regs.
6303 (deprecated_generic_get_saved_register): Do not require
6304 DEPRECATED_FRAME_INIT_SAVED_REGS.
6305 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6306 use frame ID unwind instead.
6307 (deprecated_get_next_frame_hack): New function.
6308
63d47a7d
CV
63092003-06-16 Corinna Vinschen <vinschen@redhat.com>
6310
6311 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6312 (h8300_push_dummy_call): ...this function. Some minor optimization.
6313 (h8300_push_return_address): Remove.
6314 (h8300_gdbarch_init): Remove calls to
6315 set_gdbarch_deprecated_dummy_write_sp,
6316 set_gdbarch_deprecated_push_arguments and
6317 set_gdbarch_deprecated_push_return_address.
6318 Add call to set_gdbarch_push_dummy_call.
6319
4bb1dc5e
CV
63202003-06-16 Corinna Vinschen <vinschen@redhat.com>
6321
6322 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6323 (E_PSEUDO_EXR_REGNUM): Ditto.
6324 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6325 registers into safe registers.
4bb1dc5e
CV
6326 (h8300_skip_prologue): Check for stm instruction to push registers
6327 used for register variables onto stack.
6328 (gdb_print_insn_h8300): Remove.
6329 (h8300_examine_prologue): Add a comment.
6330 (h8300_register_name): Take pseudo registers into account.
6331 (h8300s_register_name): Ditto.
6332 (h8300sx_register_name): Ditto.
6333 (h8300_print_register): Ditto.
6334 (h8300_print_registers_info): Define "nice" printing order.
6335 (h8300_saved_pc_after_call): Take pseudo registers into account.
6336 (h8300_register_type): Ditto. Return type used for remote connection
6337 when requesting real CCR or EXR register, return actual type when
6338 requesting pseudo CCR or EXR.
6339 (h8300_pseudo_register_read): New function.
6340 (h8300_pseudo_register_write): Ditto.
6341 (h8300_dbg_reg_to_regnum): Ditto.
6342 (h8300s_dbg_reg_to_regnum): Ditto.
6343 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6344 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6345 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6346 set_gdbarch_print_insn architecture dependent.
6347 Call set_gdbarch_pseudo_register_read and
6348 set_gdbarch_pseudo_register_write.
6349 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6350
a59fe496
AC
63512003-06-16 Andrew Cagney <cagney@redhat.com>
6352
6353 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6354 * gdbarch.h, gdbarch.c: Re-generate.
6355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6356 * s390-tdep.c (s390_gdbarch_init): Update.
6357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6359 * mips-tdep.c (mips_gdbarch_init): Update.
6360 * mcore-tdep.c (mcore_gdbarch_init): Update.
6361 * cris-tdep.c (cris_gdbarch_init): Update.
6362 * infcall.c (call_function_by_hand): Update.
6363 * ia64-tdep.c (ia64_push_arguments): Update comment.
6364 * frame.c (legacy_get_prev_frame): Do not assume
6365 SAVE_DUMMY_FRAME_TOS_P.
6366 * dummy-frame.c (find_dummy_frame): Update comment.
6367
6f4e5a41
AC
63682003-06-16 Andrew Cagney <cagney@redhat.com>
6369
6370 * regcache.c (do_cooked_read): Do not use register_valid_p.
6371
72fab697
TR
63722003-06-15 Theodore A. Roth <troth@openavr.org>
6373
6374 * avr-tdep.c (avr_register_type): Remove a blank line.
6375 (avr_scan_prologue): Correct some comments.
6376
e3d8b004
TR
63772003-06-15 Theodore A. Roth <troth@openavr.org>
6378
6379 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6380 prologue types.
8ffd9b1b 6381 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6382 option.
6383 Add code to scan -mcall-prologues for mega devices.
6384
866b76ea
TR
63852003-06-15 Theodore A. Roth <troth@openavr.org>
6386
6387 * avr-tdep.c (avr_register_byte): Delete function.
6388 (avr_register_raw_size): Delete function.
6389 (avr_register_virtual_size): Delete function.
6390 (avr_register_virtual_type): Delete function.
6391 (avr_register_type): New function.
6392 (avr_address_to_pointer): Remove unused code.
6393 (avr_read_fp): Need to read FP as two separate bytes due to change to
6394 avr_register_type() usage.
6395 (avr_gdbarch_init): Don't set deprecated_register_size.
6396 Don't set deprecated_register_bytes.
6397 Don't set deprecated_register_byte.
6398 Don't set deprecated_register_raw_size.
6399 Don't set deprecated_max_register_raw_size.
6400 Don't set deprecated_register_virtual_size.
6401 Don't set deprecated_max_register_virtual_size.
6402 Don't set deprecated_register_virtual_type.
6403 Set register_type method.
6404
3993f6b1
DJ
64052003-06-15 Daniel Jacobowitz <drow@mvista.com>
6406
6407 * Makefile.in (linux-nat.o): Add rule.
6408 * linux-nat.c: New file.
6409 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6410 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6411 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6412 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6413 * config/arm/linux.mh (NATDEPFILES): Likewise.
6414 * config/i386/linux.mh (NATDEPFILES): Likewise.
6415 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6416 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6417 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6418 * config/mips/linux.mh (NATDEPFILES): Likewise.
6419 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6420 * config/s390/s390.mh (NATDEPFILES): Likewise.
6421 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6422
786a90bb
MK
64232003-06-15 Mark Kettenis <kettenis@gnu.org>
6424
6425 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6426 replace out-of-date comment.
6427
3bd3f01e
AC
64282003-06-15 Andrew Cagney <cagney@redhat.com>
6429
6430 * rdi-share/host.h (Fail): Change to a varargs function.
6431 * remote-rdi.c (Fail): Update.
8ffd9b1b 6432
de5b9bb9
MK
64332003-06-15 Mark Kettenis <kettenis@gnu.org>
6434
6435 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6436 (i386_convert_register_p, i386_register_to_value,
6437 i386_register_from_value): Handle types longer than 8 bytes.
6438
d532c08f
MK
64392003-06-15 Mark Kettenis <kettenis@gnu.org>
6440
6441 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6442 Move floating-point code to new function in i387-tdep.c.
6443 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6444 New functions containing code moved here from i386-tdep.c.
6445 * i387-tdep.h: Add opaque declaration for `struct type'.
6446 (i387_register_to_value, i387_value_to_register): New prototypes.
6447 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6448 (x86_64_init_abi): Set convert_register_p, register_to_value and
6449 value_to_register here.
8ffd9b1b 6450
42c466d7
AC
64512003-06-14 Andrew Cagney <cagney@redhat.com>
6452
6453 * mips-tdep.c (mips_register_to_value): Make static.
6454 (mips_value_to_register): Make static.
6455 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6456 * ia64-tdep.c (ia64_register_raw_size): Make static.
6457 (ia64_register_virtual_size): Make static.
6458 (ia64_register_byte): Make static.
6459 * i387-tdep.c: Include "i387-tdep.h".
6460 (print_387_control_word): Delete function.
6461 (print_387_status_word): Delete function.
6462 (print_387_status_bits): Delete function.
6463 (print_387_control_bits): Delete function.
6464 * Makefile.in (i387-tdep.o): Update dependencies.
6465 * rdi-share/host.h (Fail): Declare.
6466 * remote-rdi.c (Fail): Update to match declaration.
6467
2a9cda49
AC
64682003-06-14 Andrew Cagney <cagney@redhat.com>
6469
6470 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6471 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6472 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6473 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6474 * README: Delete reference to remote-array.
6475 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6476 (remote-array.o): Delete target.
6477 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6478 * remote-array.c: Delete file.
6479
ff2e87ac
AC
64802003-06-14 Andrew Cagney <cagney@redhat.com>
6481 Mark Kettenis <kettenis@gnu.org>
6482
6483 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6484 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6485 parameter with "frame".
6486 * gdbarch.h, gdbarch.c: Re-generate.
6487 * frame.h (put_frame_register): Declare.
6488 * frame.c (put_frame_register): New function.
6489 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6490 (legacy_register_to_value): Rewrite, use "frame" to get the
6491 register value.
6492 (legacy_value_to_register): Rewrite, use "frame" to find the
6493 register's location before storing.
6494 * arch-utils.h (legacy_convert_register_p): Update.
6495 (legacy_register_to_value, legacy_value_to_register): Update.
6496 * findvar.c (value_from_register): Rewrite, eliminate use of
6497 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6498 "frame" to REGISTER_TO_VALUE.
6499 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6500 lval_reg_frame_relative + lval_register branch of the switch. Do
6501 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6502 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6503 I386_EDI_REGNUM): New defines.
6504 (i386_next_regnum, i386_convert_register_p,
6505 i386_register_to_value, i386_value_to_register): New functions.
6506 (i386_register_convertible, i386_register_convert_to_virtual,
6507 i386_convert_to_raw): Remove functions.
6508 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6509 value_to_register instead of register_convertible,
6510 register_convert_to_virtual and register_convert_to_raw.
6511 * mips-tdep.c (mips_convert_register_p): New function.
6512 (mips_value_to_register): Replace mips_register_convert_from_type.
6513 (mips_register_to_value): Replace mips_register_convert_to_type.
6514 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6515 register_to_value.
6516 * alpha-tdep.c (alpha_convert_register_p): Update.
6517 (alpha_value_to_register): Update, store the register.
6518 (alpha_register_to_value): Update, fetch the register.
6519
98be1e77
TR
65202003-06-14 Theodore A. Roth <troth@openavr.org>
6521
6522 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6523 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6524 Don't set deprecated_call_dummy_words.
6525 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6526 Don't set remote_translate_xfer_address.
6527 (avr_io_reg_read_command): Remove commented out debug printf.
6528 Wrap a long line.
6529
57bc6122
TR
65302003-06-14 Theodore A. Roth <troth@openavr.org>
6531
6532 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6533 causes gdb to seg fault.
6534
eb01fc62
DJ
65352003-06-14 Daniel Jacobowitz <drow@mvista.com>
6536
6537 * sparc-nat.c (fetch_inferior_registers): Correct
6538 a reference to "registers".
6539
3b3e6bee
DJ
65402003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6541
6542 * Makefile.in (exc_request_U_h): Define
6543 (exc_request_S_h): Likewise.
6544 (msg_reply_S_h): Likewise.
6545 (msg_U_h): Likewise.
6546 (notify_S_h): Likewise.
6547 (process_reply_S_h): Likewise.
6548 (gnu-nat.o): Depend on gdb_obstack_h
6549 * gnu-nat.c: Include "gdb_obstack.h".
6550
b8de8283
AC
65512003-06-13 Andrew Cagney <cagney@redhat.com>
6552
6553 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6554 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6555
f3be58bc
AC
65562003-06-13 Andrew Cagney <cagney@redhat.com>
6557
6558 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6559 when deprecated REGISTER macros can be deleted.
6560 * gdbarch.h, gdbarch.c: Re-generate.
6561
4c0122c8
JB
65622003-06-13 Jim Blandy <jimb@redhat.com>
6563
6564 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6565 Linux entry point symbols for _dl_debug_state, too.
6566
3e210248
AC
65672003-06-13 Andrew Cagney <cagney@redhat.com>
6568
6569 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6570 available, do not use the FP register, and always save the TOS.
6571 * dummy-frame.c (dummy_frame_this_id): Do not assert
6572 SAVE_DUMMY_FRAME_TOS.
6573 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6574 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6575 (i386_push_dummy_call): Add 8 to the returned SP.
6576 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6577 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6578 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6579 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6580 (x86_64_push_dummy_call): Return "sp + 16".
6581 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6582 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6583 save_dummy_frame_tos.
6584
0b65af49
JB
65852003-06-13 Jim Blandy <jimb@redhat.com>
6586
6587 * frv-tdep.c (frv_use_struct_convention): Delete static
6588 declaration for function deleted in my change of 2003-06-12.
6589
4ea2465e
TR
65902003-06-13 Theodore A. Roth <troth@openavr.org>
6591
6592 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6593 (avr_pointer_to_address): Shift code addrs left 1 bit.
6594 (avr_convert_from_func_ptr_addr): Delete function since operation is
6595 better handled by avr_address_to_pointer and avr_pointer_to_address.
6596 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6597
1581182a
MK
65982003-06-13 Mark Kettenis <kettenis@gnu.org>
6599
6600 From Kelley Cook <kelleycook@wideopenwest.com>:
6601 * configure.host: Accept i[34567]86 variants.
6602 * configure.tgt: Likewise.
6603 * nlm/configure.in: Likewise.
6604 * nlm/configure: Regenerated.
6605
7aa1783e
RE
66062003-06-13 Richard Earnshaw <rearnsha@arm.com>
6607
6608 * arm-tdep.c (solib-svr4.h): Dont' include it.
6609 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6610 * arm-linux-tdep.c: ... here. Make static.
6611 (arm_linux_init_abi): Register it.
6612 (solib-svr4.h): Include it.
6613 * Makefile.in: Update dependencies.
6614 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6615 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6616
0261a0d0
CV
66172003-06-13 Corinna Vinschen <vinschen@redhat.com>
6618
6619 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6620 indicate registers used for return values.
6621 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6622 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6623 members.
6624 (h8300_init_extra_frame_info): Ditto.
6625 (h8300_frame_locals_address): Removed.
6626 (h8300_frame_args_address): Removed.
6627 (h8300_extract_return_value): Use new regcache structure. Only care
6628 for 16 bit CPUs.
6629 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6630 (h8300_store_return_value): Use new regcache structure. Only care
6631 for 16 bit CPUs.
6632 (h8300h_store_return_value): Same function for 32 bit CPUs.
6633 (h8300_store_struct_return): Removed.
6634 (h8300_extract_struct_value_address): Use new regcache structure.
6635 (h8300h_extract_struct_value_address): Removed.
6636 (h8300_push_dummy_code): New function.
6637 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6638 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6639 set_gdbarch_store_return_value architecture dependent.
6640 Call set_gdbarch_push_dummy_code and
6641 set_gdbarch_extract_struct_value_address.
6642 Remove calls to set_gdbarch_frame_args_address,
6643 set_gdbarch_frame_locals_address,
6644 set_gdbarch_deprecated_store_struct_return,
6645 set_gdbarch_deprecated_extract_return_value,
6646 set_gdbarch_deprecated_extract_struct_value_address,
6647 set_gdbarch_deprecated_call_dummy_words and
6648 set_gdbarch_deprecated_sizeof_call_dummy_words.
6649
055c394a
CV
66502003-06-13 Corinna Vinschen <vinschen@redhat.com>
6651
6652 * h8300-tdep.c (h8300_register_byte): Remove.
6653 (h8300h_register_byte): Remove.
6654 (h8300_register_virtual_type): Remove. Substitute by...
6655 (h8300_register_type): New function.
6656 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6657 (h8300h_extract_struct_value_address): Ditto.
6658 (h8300_gdbarch_init): Drop calls to
6659 set_gdbarch_deprecated_register_byte and
6660 set_gdbarch_deprecated_register_virtual_type.
6661 Add call to set_gdbarch_register_type.
6662
9c04cab7
AC
66632003-06-13 Andrew Cagney <cagney@redhat.com>
6664
6665 * gdbarch.sh: Update comments on registers.
6666 (deprecated_register_byte): Rename register_byte.
6667 (deprecated_register_raw_size): Rename register_raw_size.
6668 (deprecated_register_virtual_size): Rename register_virtual_size.
6669 (deprecated_register_virtual_type): Rename register_virtual_type.
6670 * gdbarch.h, gdbarch.c: Re-generate.
6671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6672 * vax-tdep.c (vax_gdbarch_init): Update.
6673 * v850-tdep.c (v850_gdbarch_init): Update.
6674 * sparc-tdep.c (sparc_gdbarch_init): Update.
6675 * sh-tdep.c (sh_gdbarch_init): Update.
6676 * s390-tdep.c (s390_gdbarch_init): Update.
6677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6678 * ns32k-tdep.c: Update.
6679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6680 * mips-tdep.c (mips_gdbarch_init): Update.
6681 * mcore-tdep.c (mcore_gdbarch_init): Update.
6682 * m68k-tdep.c (m68k_gdbarch_init): Update.
6683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6684 * ia64-tdep.c (ia64_gdbarch_init): Update.
6685 * hppa-tdep.c (hppa_gdbarch_init): Update.
6686 * h8300-tdep.c (h8300_gdbarch_init): Update.
6687 * frv-tdep.c (frv_gdbarch_init): Update.
6688 * cris-tdep.c (cris_gdbarch_init): Update.
6689 * avr-tdep.c (avr_gdbarch_init): Update.
6690 * alpha-tdep.c (alpha_gdbarch_init): Update.
6691 * arm-tdep.c (arm_gdbarch_init): Update.
6692
b060cbea
AC
66932003-06-13 Andrew Cagney <cagney@redhat.com>
6694
6695 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6696 mips_o32_use_struct_convention with always_use_struct_convention.
6697
0fc9922a
DC
66982003-06-12 David Carlton <carlton@kealia.com>
6699
6700 * cp-namespace.c (cp_set_block_scope): Comment out
6701 processing_has_namespace_info branch.
6702
1fd35568
JB
67032003-06-12 Jim Blandy <jimb@redhat.com>
6704
f470a70a
JB
6705 Recognize and skip 64-bit PowerPC Linux linkage functions.
6706 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6707 insn_pattern, insns_match_pattern, d_field, ds_field): New
6708 functions, macros, and types for working with PPC instructions.
6709 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6710 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6711 ppc64_skip_trampoline_code): New functions, variables, and macros
6712 for recognizing and skipping linkage functions.
6713 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6714 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6715
49ff75ad
JB
6716 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6717 register offsets for both the 32- and 64-bit interfaces.
6718
bd918c83
JB
6719 Actually finish the job started by my change of 2003-05-29.
6720 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6721 other #definition of this.
6722 (ppc_linux_skip_trampoline_code): Remove declaration.
6723 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6724 static.
6725 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6726 method for GDBARCH.
6727
6728 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6729 'long' on ppc64-*-linux*.
6730
f8c59253
JB
6731 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6732 isn't #defined, assume the register doesn't exist: act as if
6733 tdep->ppc_mq_regnum were -1.
6734
8fbb30b1
JB
6735 * configure.host, configure.tgt: Add entries for
6736 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6737 powerpc/linux.mt.
6738 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6739 New files.
6740
1fd35568
JB
6741 * arch-utils.c (always_use_struct_convention): New function.
6742 * arch-utils.h (always_use_struct_convention): New prototype.
6743 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6744 (alpha_gdbarch_init): Register always_use_struct_convention,
6745 instead of alpha_use_struct_convention.
6746 * cris-tdep.c (cris_use_struct_convention): Delete.
6747 (cris_gdbarch_init): Register always_use_struct_convention,
6748 instead of cris_use_struct_convention.
6749 * frv-tdep.c (frv_use_struct_convention): Delete.
6750 (frv_gdbarch_init): Register always_use_struct_convention,
6751 instead of frv_use_struct_convention.
6752 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6753 (h8300_gdbarch_init): Register always_use_struct_convention,
6754 instead of h8300_use_struct_convention.
e3305dd9 6755 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6756 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6757 instead of mips_o32_use_struct_convention.
6758
e14e6e9c
AC
67592003-06-12 Andrew Cagney <cagney@redhat.com>
6760
6761 * wince.c: Include "mips-tdep.h".
6762 * mips-tdep.h (mips_next_pc): Declare.
6763 * mcore-tdep.c: Make more local functions static.
6764 * Makefile.in (wince.o): Update dependencies.
6765
2335f48e
DC
67662003-06-12 David Carlton <carlton@kealia.com>
6767
6768 * symtab.c (lookup_symbol_aux_minsyms): Replace
6769 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6770 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6771 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6772 SYMBOL_NATURAL_NAME.
6773
f70a7d61
AS
67742003-06-12 Andreas Schwab <schwab@suse.de>
6775
6776 * Makefile.in (tuiDisassem.o): Update dependencies.
6777
b6429628
DC
67782003-06-12 David Carlton <carlton@bactrian.org>
6779
6780 * symtab.h: Delete declaration of make_symbol_overload_list.
6781 Add declaration of lookup_partial_symbol.
6782 * symtab.c (remove_params): Move to cp-support.c.
6783 (overload_list_add_symbol, make_symbol_overload_list)
6784 (sym_return_val_size, sym_return_val_index): Ditto.
6785 (lookup_partial_symbol): Make extern.
6786 * cp-support.h: Add declaration of make_symbol_overload_list.
6787 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6788 symtab.h, and block.h.
6789 (remove_params): Move here from symtab.c.
6790 (overload_list_add_symbol, make_symbol_overload_list)
6791 (sym_return_val_size, sym_return_val_index): Ditto.
6792 * valops.c: Include cp-support.h.
6793 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6794 frame_h, and block_h.
6795 (valops.o): Depend on cp_support_h.
6796
084edea5
CV
67972003-06-12 Corinna Vinschen <vinschen@redhat.com>
6798
6799 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6800 substitute by NUM_REGS throughout.
6801 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6802 (h8300s_register_name): New function for H8S registers.
6803 (h8300sx_register_name): Ditto for H8SX registers.
6804 (h8300_print_register): Revise register printing, avoid depending
6805 on 32 bit long.
0261a0d0 6806 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6807 (h8300h_register_byte): New function for any other architecture.
6808 (h8300_register_raw_size): Remove.
6809 (h8300_register_virtual_type): Revise to return actually useful
6810 type.
6811 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6812 (h8300h_extract_struct_value_address): New function for any other
6813 architecture.
6814 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6815 set_gdbarch_register_name, set_gdbarch_register_byte,
6816 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6817 Remove calls to set_gdbarch_deprecated_register_size,
6818 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6819 set_gdbarch_deprecated_max_register_raw_size,
6820 set_gdbarch_register_virtual_size and
6821 set_gdbarch_deprecated_max_register_virtual_size entirely.
6822 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6823 set_gdbarch_long_double_bit.
6824
06194148
JJ
68252003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6826
8ffd9b1b
AJ
6827 * doublest.c (convert_doublest_to_floatformat): When dealing
6828 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6829 processing a full 32 bits of mantissa.
6830
de4f826b
DC
68312003-06-11 David Carlton <carlton@bactrian.org>
6832
6833 * dictionary.h: New.
6834 * dictionary.c: New.
6835 * block.h: Add opaque declaration for struct dictionary.
6836 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6837 'sym' members.
6838 (BLOCK_DICT): New macro.
6839 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6840 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6841 BLOCK_SHOULD_SORT.
6842 (ALL_BLOCK_SYMBOLS): Update definition.
6843 * Makefile.in (SFILES): Add dictionary.c.
6844 (dictionary_h): New.
6845 (COMMON_OBS): Add dictionary.o.
6846 (dictionary.o): New.
6847 (ada-lang.o): Depend on dictionary_h.
6848 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6849 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6850 (mi-cmd-stack.o): Ditto.
6851 (gdbtk-cmds.o): Update dependencies.
6852 (gdbtk-stack.o): Ditto.
6853 * ada-lang.c: Include dictionary.h.
6854 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6855 (fill_in_ada_prototype, debug_print_block): Ditto.
6856 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6857 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6858 'is_sorted'.
6859 * mdebugread.c: Include dictionary.h.
6860 (struct parse_stack): Delete 'maxsyms' member.
6861 (parse_symbol): Update calls to new_block. Delete calls to
6862 shrink_block. Use dictionary methods.
6863 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6864 Update calls to new_symtab. Don't maintain maxsyms data.
6865 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6866 (add_symbol): Just call dict_add_symbol.
6867 (new_symtab): Delete 'maxsyms' argument.
6868 (new_symtab): Update calls to new_block.
6869 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6870 (shrink_block): Delete function.
6871 (fixup_sigtramp): Update call to new_block. Add symbol via
6872 dict_add_symbol.
6873 * jv-lang.c: Include dictionary.h.
6874 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6875 appropriately. Set class_symtab->free_func. Make sure the
6876 blockvector is big enough to hold two blocks.
6877 (add_class_symtab_symbol): Use dictionary methods.
6878 (free_class_block): New function.
6879 (type_from_class): Replace explicit iteration by
6880 ALL_BLOCK_SYMBOLS.
6881 * symtab.h (struct symtab): Replace 'free_ptr' method by
6882 'free_func'.
6883 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6884 sort_symtab_syms.
6885 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6886 sort_symtab_syms.
6887 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6888 Include dictionary.h.
6889 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6890 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6891 sort_symtab_syms.
6892 * objfiles.c: Include dictionary.h.
6893 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6894 * buildsym.c: Include dictionary.h.
6895 (finish_block): Use dictionary methods.
6896 (end_symtab): Set free_func to NULL, not free_ptr.
6897 * tracepoint.c: Include dictionary.h.
6898 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6899 (scope_info): Ditto.
6900 * stack.c: Include dictionary.h.
6901 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6902 (print_block_frame_labels, print_frame_arg_vars)
6903 (print_frame_args): Ditto.
6904 * symmisc.c (free_symtab_block): Use dictionary methods.
6905 (dump_symtab): Ditto.
6906 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6907 Include dictionary.h.
6908 * symfile.h: Delete declarations of sort_block_syms,
6909 sort_symtab_syms.
6910 * symfile.c (sort_block_syms): Delete.
6911 (sort_symtab_syms): Delete.
6912 * symtab.c: Include dictionary.h.
6913 (lookup_block_symbol): Use dictionary iterators.
6914 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6915 (search_symbols, make_symbol_completion_list): Ditto.
6916 (make_symbol_overload_list): Ditto.
6917 * valops.c (value_of_local): Use dict_empty.
6918 Include dictionary.h.
6919
a31f978c
JB
69202003-06-11 J. Brobecker <brobecker@gnat.com>
6921
6922 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6923
526e70c0
DC
69242003-06-11 David Carlton <carlton@bactrian.org>
6925
6926 * block.h (BLOCK_SHOULD_SORT): Delete.
6927 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6928 blocks.
6929 * ada-lang.c (ada_add_block_symbols): Ditto.
6930 * symfile.c (sort_block_syms): Delete.
6931 (sort_symtab_syms): Ditto.
6932 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6933 declarations.
6934 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6935 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6936 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6937 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6938 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6939 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6940 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6941
33c08150
JJ
69422003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6943
8ffd9b1b 6944 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6945 bits to 128.
6946
781a750d
AC
69472003-06-11 Andrew Cagney <cagney@redhat.com>
6948
6949 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6950 REGISTER_CONVERTIBLE.
6951 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6952 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6953 * gdbarch.h, gdbarch.c: Re-generate.
6954 * arch-utils.h (deprecated_register_convertible_not): Rename
6955 generic_register_convertible_not.
6956 * arch-utils.c (deprecated_register_convertible_not): Rename
6957 generic_register_convertible.
6958 (legacy_convert_register_p, legacy_register_to_value): Update.
6959 * sh-tdep.c (sh64_push_arguments): Update.
6960 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6961 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6962 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6963 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6964 * arch-utils.c (legacy_value_to_register): Update.
6965 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6966 (rs6000_register_convert_to_raw): Make parameter "from" const.
6967 * mips-tdep.c (mips_gdbarch_init): Update.
6968 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6969 * infcmd.c (default_print_registers_info): Update.
6970 * ia64-tdep.c (ia64_gdbarch_init): Update.
6971 (ia64_register_convert_to_raw): Make parameter "from" const.
6972 * i386-tdep.c (i386_gdbarch_init): Update.
6973 (i386_register_convert_to_raw): Update.
6974
cd90e54f
AC
69752003-06-11 Andrew Cagney <cagney@redhat.com>
6976
6977 * remote-fileio.c: Include "remote-fileio.h".
6978 * Makefile.in (remote-fileio.o): Update dependencies.
6979 (remote_fileio_h): Fix typo.
6980
a78f21af
AC
69812003-06-11 Andrew Cagney <cagney@redhat.com>
6982
6983 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6984 (xstormy16_save_dummy_frame_tos): Make static.
6985 (_initialize_xstormy16_tdep): Add declaration.
6986 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6987 * v850-tdep.c: Make local functions static.
6988 (_initialize_v850_tdep): Add declaration.
6989 * sparc-tdep.c: Make local functions static.
6990 (_initialize_sparc_tdep): Add declaration.
6991 * sh-tdep.c: Make local functions static.
6992 (_initialize_sh_tdep): Add declaration.
6993 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6994 * s390-tdep.c: Make local functions static.
6995 (_initialize_s390_tdep): Add declaration.
6996 * dbxread.c (find_stab_function_addr): Make static.
6997 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6998 * ocd.c (_initialize_remote_ocd): Add declaration.
6999 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7000 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7001 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7002 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7003 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7004 * remote-array.c (_initialize_array): Add declaration.
7005 (_initialize_remote_monitors): Add declaration.
7006 * remote-mips.c: Make local functions static.
7007 (_initialize_remote_mips): Add declaration.
7008 * mcore-tdep.c: Make all local functions static.
7009 (_initialize_mcore_tdep): Add declaration.
7010 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7011 * abug-rom.c (_initialize_abug_rom): Add declaration.
7012 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7013 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7014 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7015 * remote-est.c (_initialize_est): Add declaration.
7016 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7017 (m68hc11_call_dummy_address): Make static.
7018 * ia64-tdep.c: Make local functions static.
7019 (_initialize_ia64_tdep): Add declaration.
7020 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7021 * monitor.c (monitor_wait_filter): Make static.
7022 (_initialize_remote_monitors): Add declaration.
7023 * remote-hms.c (_initialize_remote_hms): Add declaration.
7024 * remote-e7000.c (fetch_regs_from_dump): Make static.
7025 (expect_n): Make static.
7026 (_initialize_remote_e7000): Add declaration.
7027 * ser-e7kpc.c: Always include "defs.h".
7028 (_initialize_ser_e7000pc): Add declaration.
7029 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7030 * cris-tdep.c: Make all but one function static.
7031 (_initialize_cris_tdep): Add declaration.
7032 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7033 * solib.c (update_solib_list): Make static.
7034 (_initialize_solib): Add declaration.
7035 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7036 (_initialize_avr_tdep): Add declaration.
7037 * remote-rdi.c (voiddummy): Make static.
7038 (_initialize_remote_rdi): Add declaration.
7039 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7040 * remote-rdp.c (send_rdp): Make static.
7041 (_initialize_remote_rdp): Add declaration.
7042 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7043
cbcdb1f5
CV
70442003-06-11 Corinna Vinschen <vinschen@redhat.com>
7045
7046 * remote-fileio.c: Make ari happy.
7047
a191ea8d
JB
70482003-06-10 J. Brobecker <brobecker@gnat.com>
7049
7050 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7051 fetching the trailing bytes of the buffer we are about to write.
7052
0ef75e11
AC
70532003-06-10 Andrew Cagney <cagney@redhat.com>
7054
7055 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7056 * Makefile.in (remote-fileio.o): Update dependencies.
7057 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7058 include <setjmp.h>, or <sys/types.h> conditional on USG.
7059 (remote_fio_jmp_buf): Delete global variable.
7060
449092f6 70612003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7062 Martin M. Hunt <hunt@redhat.com>
449092f6 7063
559fa028
AC
7064 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7065 (SFILES): Add remote-fileio.c.
7066 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7067 dependencies for building remote.o.
449092f6
CV
7068 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7069 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7070 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7071 static storage class.
7072 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7073 'F' packet.
7074 (_initialize_remote): Call initialize_remote_fileio().
7075 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7076 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7077 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7078 (captured_main): Initialize new ui_files.
7079 * ui-file.c: Add read and fgets input functions.
7080 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7081 (null_file_read): New function.
7082 (ui_file_read): New function.
7083 (set_ui_file_read): New function.
7084 (stdio_file_read): New function.
7085 * ui-file.h: New type ui_file_read_ftype.
7086 (set_ui_file_read): Declare.
7087 (ui_file_read): Declare.
7088
248de703
AC
70892003-06-09 Andrew Cagney <cagney@redhat.com>
7090
7091 * frame.h (deprecated_unwind_get_saved_register): Rename
7092 generic_unwind_get_saved_register, update comments.
7093 * mips-tdep.c (mips_get_saved_register): Update.
7094 * frame.c (deprecated_unwind_get_saved_register): Update.
7095
0ed8aa57
AC
70962003-06-09 Andrew Cagney <cagney@redhat.com>
7097
7098 * vax-tdep.c (vax_frame_locals_address): Delete function.
7099 (vax_gdbarch_init): Do not set frame_locals_address.
7100 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7101 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7102 * s390-tdep.c (s390_frame_args_address): Delete function.
7103 (s390_gdbarch_init): Do not set frame_args_address or
7104 frame_locals_address.
7105 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7106 (ns32k_gdbarch_init): Do not set frame_locals_address.
7107 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7108 (hppa_frame_locals_address): Delete function.
7109 (hppa_gdbarch_init): Do not set frame_args_address, or
7110 frame_locals_address.
7111 * arm-tdep.c (arm_frame_args_address): Delete.
7112 (arm_frame_locals_address): Delete.
7113 (arm_gdbarch_init): Do not set frame_args_address, or
7114 frame_locals_address.
7115
983a287a
AC
71162003-06-09 Andrew Cagney <cagney@redhat.com>
7117
7118 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7119 * gdbarch.h, gdbarch.c: Re-generate.
7120 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7121 * arch-utils.c (frame_num_args_unknown): Delete function.
7122 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7123 (frame_info): Use FRAME_NUM_ARGS_P.
7124 * arm-tdep.c (arm_frame_num_args): Delete function.
7125 (arm_gdbarch_init): Do not set frame_num_args.
7126 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7127 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7128 (hppa_gdbarch_init): Do not set frame_num_args.
7129 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7131 frame_num_args to default frame_num_args_unknown.
7132 * v850-tdep.c (v850_gdbarch_init): Ditto.
7133 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7134 * sh-tdep.c (sh_gdbarch_init): Ditto.
7135 * s390-tdep.c (s390_gdbarch_init): Ditto.
7136 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7138 * mips-tdep.c (mips_gdbarch_init): Ditto.
7139 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7140 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7142 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7143 * i386-tdep.c (i386_gdbarch_init): Ditto.
7144 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7145 * frv-tdep.c (frv_gdbarch_init): Ditto.
7146 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7147 * cris-tdep.c (cris_gdbarch_init): Ditto.
7148 * avr-tdep.c (avr_gdbarch_init): Ditto.
7149 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7150
8d3b0994
AC
71512003-06-09 Andrew Cagney <cagney@redhat.com>
7152
7153 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7154 (print_frame_args): Moved to "stack.c".
7155 * stack.c: Include "gdb_assert.h".
7156 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7157 (print_frame_args): Moved from "printcmd.c".
7158 * frame.h (print_frame_args): Delete declaration.
7159 * Makefile.in (stack.o): Update dependencies.
7160
25e3a86b
AC
71612003-06-08 Andrew Cagney <cagney@redhat.com>
7162
7163 * frame.c (get_prev_frame): Remove reference to
7164 frame_args_address_correct in comments.
7165 * frame-base.c (default_frame_args_address): Delete code
7166 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7167 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7168 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7169 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7170 (vax_frame_args_address_correct): Delete declaration.
7171
a9e5fdc2
AC
71722003-06-08 Andrew Cagney <cagney@redhat.com>
7173
7174 * gdbarch.sh (UNWIND_SP): Add.
7175 * gdbarch.h, gdbarch.c: Re-generate.
7176 * frame.c (frame_sp_unwind): New function.
7177 (get_frame_sp): New function.
7178 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7179 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7180 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7181 value.
7182 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7183 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7184
8983bd83
AC
71852003-06-08 Andrew Cagney <cagney@redhat.com>
7186
7fec2c59
AC
7187 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7188 REMOTE_BREAKPOINT.
7189 * remote.c: Update.
7190 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7191 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7192 * config/m68k/tm-sun3.h: Update.
7193 * config/m68k/tm-m68klynx.h: Update.
7194 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7195
8983bd83
AC
7196 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7197 trad_frame". Update comments.
7198 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7199 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7200 (trad_frame_register_value, trad_frame_prev_register): Update.
7201
b9362cc7
AC
72022003-06-08 Andrew Cagney <cagney@redhat.com>
7203
7204 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7205 from GCC's acinclude.m4.
7206 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7207 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7208 * main.c (error_init): Delete declaration.
7209 * defs.h (error_init): Declare.
7210 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7211 (rs6000_convert_from_func_ptr_addr): Make static.
7212 (_initialize_rs6000_tdep): Add declaration.
7213 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7214 (show_commands, set_verbose, show_history): Delete declaration.
7215 * top.h (set_verbose): Add declaration.
7216 (show_history, set_history, show_commands): Add declaration.
7217 (do_restore_instream_cleanup): Add declaration.
7218 * objc-lang.c (specialcmp): Make static.
7219 (print_object_command): Make static.
7220 (find_objc_msgsend): Make static.
7221 (find_objc_msgcall_submethod_helper): Make static.
7222 (find_objc_msgcall_submethod): Make static.
7223 (_initialize_objc_language): Add declaration.
7224 (find_implementation_from_class): Make static.
7225 (find_implementation): Make static.
7226 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7227 * objc-lang.h (lookup_struct_typedef): Add declaration.
7228 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7229 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7230 (do_restore_user_call_depth): Make static.
7231 (do_restore_instream_cleanup): Delete declaration.
7232 (dont_repeat): Delete declaration.
7233 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7234 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7235 * reggroups.c (_initialize_reggroup): Add declaration.
7236 * cp-support.c (_initialize_cp_support): Add declaration.
7237 * cp-abi.c (_initialize_cp_abi): Add declaration.
7238 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7239 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7240 (_initialize_gnu_v3_abi): Add declaration.
7241 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7242 (_initialize_gnu_v2_abi): Add declaration.
7243 * frame-base.c (_initialize_frame_base): Add declaration.
7244 * doublest.c (floatformat_from_length): Make static.
7245 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7246 * frame.c (create_sentinel_frame): Make static.
7247 (_initialize_frame): Add declaration.
7248 * top.c (do_catch_errors): Make static.
7249 (gdb_rl_operate_and_get_next_completion): Make static.
7250 * typeprint.c: Include "typeprint.h".
7251 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7252 (sentinel_frame_this_id): Make static.
7253 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7254 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7255 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7256 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7257 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7258 * maint.c (maintenance_print_architecture): Make static.
7259 * signals/signals.c (_initialize_signals): Add declaration.
7260 * std-regs.c (_initialize_frame_reg): Add declaration.
7261 * jv-exp.y (push_variable): ISO C definition.
7262 (push_qualified_expression_name): Ditto.
7263 * memattr.c (_initialize_mem): Add declaration.
7264 * remote.c (remote_check_watch_resources): Make static.
7265 (remote_stopped_by_watchpoint): Make static.
7266 (remote_stopped_data_address): Make static.
7267 * d10v-tdep.c (nr_dmap_regs): Make static.
7268 (a0_regnum): Make static.
7269 (d10v_frame_unwind_cache): Make static.
7270 (d10v_frame_p): Make static.
7271 * osabi.c (show_osabi): Make static.
7272 (_initialize_gdb_osabi): Add extern declaration.
7273 * gdbtypes.c (make_qualified_type): Make static.
7274 (safe_parse_type): Make static.
7275 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7276 * macrotab.c (macro_bcache_free): Make static.
7277 * interps.c (interp_set_quiet): Make static.
7278 (interpreter_exec_cmd): Make static.
7279 * stack.h (select_frame_command): New file.
7280 * stack.c: Include "stack.h".
7281 (select_frame_command_wrapper): Delete function.
7282 (select_frame_command): Make global.
7283 * infcall.c: Include "infcall.h".
7284 * linespec.c: Include "linespec.h".
7285 * symfile.c (sections_overlap): Make static.
7286 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7287 * charset.c (_initialize_charset): Add missing prototype.
7288 * regcache.c (init_legacy_regcache_descr): Make static.
7289 (do_regcache_xfree): Make static.
7290 (regcache_xfer_part): Make static.
7291 (_initialize_regcache): Add missing prototype.
7292 * breakpoint.c (parse_breakpoint_sals): Make static.
7293 (breakpoint_sals_to_pc): Make static.
7294 * interps.h (clear_interpreter_hooks): ISO C declaration.
7295 * Makefile.in (stack_h): Define.
7296 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7297 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7298
a0f267c7
AC
72992003-06-08 Andrew Cagney <cagney@redhat.com>
7300
7301 * Makefile.in (d10v-tdep.o): Update dependencies.
7302 (SFILES): Add trad-frame.c.
7303 (trad_frame_h): Define.
7304 (COMMON_OBS): Add trad-frame.o.
7305 (trad-frame.o): Specify dependencies.
7306 * d10v-tdep.c: Include "trad-frame.h".
7307 (saved_regs_unwinder): Delete function.
7308 (d10v_frame_prev_register): Use trad_frame_prev_register.
7309 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7310 trad_frame", delete "regs" and "prev_sp".
7311 (prologue_find_regs): Use trad-frame.
7312 * trad-frame.h, trad-frame.c: New files.
7313
4538b4f4
MK
73142003-06-08 Mark Kettenis <kettenis@gnu.org>
7315
7316 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7317
a0273b2f
AF
73182003-06-07 Adam Fedor <fedor@gnu.org>
7319
7320 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7321 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7322 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7323 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7324 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7325 Use it.
7326
3a6c3343
AC
73272003-06-07 Andrew Cagney <cagney@redhat.com>
7328
7329 * symfile.h: Re-indent, clean up comments.
7330
b46e02f6
AC
73312003-06-07 Andrew Cagney <cagney@redhat.com>
7332
7333 * inferior.h (deprecated_write_sp): Replace
7334 generic_target_write_sp.
7335 * regcache.c (deprecated_write_sp): Replace
7336 generic_target_write_sp.
7337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7338 * vax-tdep.c (vax_gdbarch_init): Update.
7339 * v850-tdep.c (v850_gdbarch_init): Update.
7340 * sparc-tdep.c (sparc_gdbarch_init): Update.
7341 * sh-tdep.c (sh_gdbarch_init): Update.
7342 * s390-tdep.c (s390_gdbarch_init): Update.
7343 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7344 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7345 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7346 * mcore-tdep.c (mcore_gdbarch_init): Update.
7347 * m68k-tdep.c (m68k_gdbarch_init): Update.
7348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7349 * ia64-tdep.c (ia64_gdbarch_init): Update.
7350 * h8300-tdep.c (h8300_gdbarch_init): Update.
7351 * frv-tdep.c (frv_gdbarch_init): Update.
7352 * cris-tdep.c (cris_gdbarch_init): Update.
7353 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7354
a42e117c
AC
73552003-06-07 Andrew Cagney <cagney@redhat.com>
7356
7357 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7358 Assert that PC_REGNUM is valid.
7359 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7360
bd1ce8ba
AC
73612003-06-07 Andrew Cagney <cagney@redhat.com>
7362
7363 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7364 * gdbarch.h, gdbarch.c: Regenerate.
7365 * mn10300-tdep.c: Include "gdb_assert.h".
7366 (mn10300_read_fp): New function.
7367 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7368 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7369 * ia64-tdep.c: Include "gdb_assert.h".
7370 (ia64_read_fp): New function.
7371 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7372 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7373 * regcache.c (generic_target_read_sp): Delete function.
7374 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7375 * inferior.h (generic_target_read_sp): Delete declaration.
7376 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7377 generic_target_read_sp.
7378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7379 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7380 * sh-tdep.c (sh_gdbarch_init): Ditto.
7381 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7382 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7383
ec5cbaec
AC
73842003-06-07 Andrew Cagney <cagney@redhat.com>
7385
7386 * gdbarch.sh: Comment each field of startup_gdbarch.
7387 * gdbarch.h, gdbarch.c: Re-generate.
7388
cde9ea48
AC
73892003-06-07 Andrew Cagney <cagney@redhat.com>
7390
7391 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7392 * gdbarch.h, gdbarch.c: Re-generate.
7393 * regcache.c: Update comments on read_pc et.al.
7394 (generic_target_read_pc): Delete function.
7395 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7396 * inferior.h (generic_target_read_pc): Delete declaration.
7397 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7398 generic_target_read_pc.
7399 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7400 * sh-tdep.c (sh_gdbarch_init): Ditto.
7401 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7403
9a90a780
AC
74042003-06-07 Andrew Cagney <cagney@redhat.com>
7405
7406 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7407 "index" with "special_local_sect". Use strcmp instead of STREQ.
7408 Append period to coments.
7409
a39a16c4
MM
74102003-06-06 Mark Mitchell <mark@codesourcery.com>
7411
7412 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7413 (elfstab_offset_sections): Likewise.
7414 * gdb-stabs.h (stab_section_info): Likewise.
7415 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7416 * objfiles.c (objfile_relocate): Likewise.
7417 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7418 * remote.c (get_offsets): Likewise.
7419 (remote_cisco_objfile_relocate): Likewise.
7420 * somread.c (som_symfile_offsets): Likewise.
7421 * symfile.c (alloc_section_addr_info): New function.
7422 (build_section_addr_info_from_section_tab): Use it.
7423 (free_section_addr_info): Adjust.
7424 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7425 (syms_from_objfile): Allocate local_addr dynamically.
7426 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7427 dynamically.
7428 (add_symbol_file_command): Allocate sect_opts dynamically.
7429 (reread_symbols): Avoid use of SECT_OFF_MAX.
7430 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7431 (alloc_section_addr_info): Declare it.
7432 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7433 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7434 dynamically.
7435 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7436
20c6c2f8
AC
74372003-06-06 Andrew Cagney <cagney@redhat.com>
7438
7439 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7440 (d10v_frame_unwind_cache): Do not set "return_pc".
7441
884a26c8
MS
74422003-06-06 Michael Snyder <msnyder@redhat.com>
7443
7444 * h8300-tdep.c: Make tidy (long lines).
7445
088ce440
ML
74462003-06-06 Michal Ludvig <mludvig@suse.cz>
7447
8ffd9b1b 7448 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7449 to regcache_collect().
7450
7d773d96
JB
74512003-06-05 J. Brobecker <brobecker@gnat.com>
7452
7453 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7454 pc_in_sigtramp multiarch method.
7455 (hppa_hpux_som_init_abi): Use it.
7456 (hppa_hpux_elf_init_abi): Likewise.
7457 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7458 macro has been multiarched.
7459 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7460 macro here, as hppa64 isn't multiarched yet.
7461
1df6926e
AC
74622003-06-05 Andrew Cagney <cagney@redhat.com>
7463
7464 * Makefile.in (value_h): Add $(frame_h).
7465 * value.h: Include "frame.h".
7466 (struct value): Replace "frame_addr" with "frame_id".
7467 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7468 * values.c (allocate_value): Use VALUE_FRAME_ID.
7469 (value_copy): Use VALUE_FRAME_ID.
7470 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7471 * valops.c (value_assign): Update. Use frame_find_by_id.
7472
6b53acc6
ML
74732003-06-05 Michal Ludvig <mludvig@suse.cz>
7474
7475 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7476 in each pass.
7477
4d9850d3
JJ
74782003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7479
7480 * thread-db.c (check_event): For create/death event breakpoints,
7481 loop through all messages to ensure that we read the message
7482 corresponding to the breakpoint we are at.
7483
8efca6ba
MS
74842003-06-04 Michael Snyder <msnyder@redhat.com>
7485
7486 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7487
0912c7f2
MK
74882003-06-04 Mark Kettenis <kettenis@gnu.org>
7489
7490 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7491 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7492 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7493 when handling .eh_frame sections.
7494
4e370325
JB
74952003-06-04 J. Brobecker <brobecker@gnat.com>
7496
7497 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7498 prepare_to_proceed procedure instead of the hppa-specific one.
7499 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7500
b757528f 75012003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7502
b757528f
JJ
7503 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7504 * config.in: Regenerated.
7505 * configure.in: Add test for syscall function and check for
7506 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7507 * configure: Regenerated.
7508 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7509 <sys/syscall.h>.
7510 (kill_lwp): New function that uses tkill syscall or
7511 uses kill, depending on whether threading model is nptl or not.
7512 All callers of kill() changed to use kill_lwp().
7513 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7514 see if all threads have already exited in the nptl model.
7515 (stop_and_resume_callback): New callback function used by the
7516 lin_lwp_wait thread exit handling code.
7517 (stop_wait_callback): Check for threads already having exited and
7518 delete such threads fromt the lwp list when discovered.
7519 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7520
b757528f
JJ
7521 Roland McGrath <roland@redhat.com>
7522 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7523 nptl libthread_db.
7524
087779b1
RH
75252003-06-03 Richard Henderson <rth@redhat.com>
7526
b21fd293
RH
7527 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7528 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7529 (alpha_sigtramp_frame_prev_register): Likewise.
7530 (alpha_heuristic_frame_prev_register): Likewise.
7531 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7532
8ffd9b1b 7533 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7534 alpha-specific register id names.
7535 (alpha_mdebug_frame_unwind_cache): Likewise.
7536 (alpha_mdebug_frame_prev_register): Likewise.
7537
baa490c4
RH
75382003-06-03 Richard Henderson <rth@redhat.com>
7539
7540 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7541 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7542 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7543 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7544 unwind routines.
7545 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7546 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7547 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7548
7549 * alpha-linux-tdep.c: Remove unnecessary includes.
7550 * Makefile.in (alpha-linux-tdep.o): Update.
7551
75522003-06-03 Richard Henderson <rth@redhat.com>
7553
7554 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7555 (alphabsd_fill_fpreg): Likewise.
7556
f534e522
JB
75572003-06-03 J. Brobecker <brobecker@gnat.com>
7558
7559 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7560 references to struct frame_info fields by calls to the equivalent
7561 accessors. Necessary now that frame_info is opaque.
7562
4035536b
JB
75632003-06-03 J. Brobecker <brobecker@gnat.com>
7564
7565 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7566 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7567 structure, field no longer exists.
7568
0bd79c5c
JB
75692003-06-03 J. Brobecker <brobecker@gnat.com>
7570
7571 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7572 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7573
37bb6d9f
JB
75742003-06-03 J. Brobecker <brobecker@gnat.com>
7575
7576 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7577 references to struct frame_info fields by calls to the equivalent
7578 accessors. Necessary now that frame_info is opaque.
7579
852ee05c
JB
75802003-06-03 J. Brobecker <brobecker@gnat.com>
7581
7582 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7583 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7584 structure, field no longer exists.
7585
7d58c67d
TR
75862003-06-03 Theodore A. Roth <troth@openavr.org>
7587
8ffd9b1b 7588 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7589 accumulation of the size of all registers instead of blindly using
7590 DEPRECATED_REGISTER_BYTES.
7591
0a48e7e8
MS
75922003-06-03 Michael Snyder <msnyder@redhat.com>
7593
7594 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7595 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7596 for h8300sx.
7597
9798ab0d
JB
75982003-06-03 J. Brobecker <brobecker@gnat.com>
7599
7600 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7601 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7602
00b037e2
AC
76032003-06-03 Andrew Cagney <cagney@redhat.com>
7604
7605 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7606 (sparc_convert_to_raw): Delete function.
7607 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7608 register_convert_to_virtual.
7609
043b2f77
JJ
76102003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7611
7612 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7613 layer if not dealing with a statically-linked threaded program.
7614
f43caff8
KW
76152003-06-03 Kris Warkentin <kewarken@qnx.com>
7616
7617 * solib.c (solib_open): Update comment to reflect actual search order.
7618
ae1e7417
AC
76192003-06-03 Andrew Cagney <cagney@redhat.com>
7620
7621 * frame.c (get_frame_memory_signed): New function.
7622 (get_frame_memory, get_frame_memory_unsigned): New function.
7623 (get_frame_arch): New function.
7624 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7625 (get_frame_memory, get_frame_unsigned_memory): Declare.
7626 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7627 get_frame_memory_unsigned and get_frame_arch.
7628 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7629
cb123844
RG
76302003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7631
7632 * MAINTAINERS (write after approval): Add myself.
7633
1bb792e9
JB
76342003-06-03 Jim Blandy <jimb@redhat.com>
7635
7636 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7637 elements of gregset_t are 64 bits each, but access registers
7638 are still 32 bits, so they're packed two per gregset_t
7639 element. Unpack/pack them properly.
7640
aee8d8ba
DC
76412003-06-02 David Carlton <carlton@bactrian.org>
7642
7643 * linespec.c (find_methods): Break out code into
7644 add_matching_methods and add_constructors.
7645 (add_matching_methods): New.
7646 (add_constructors): Ditto.
7647
bf7488d2
AC
76482003-06-02 Andrew Cagney <cagney@redhat.com>
7649
bf7488d2
AC
7650 * sparc-tdep.c (sparc_print_registers): Delete call to
7651 REGISTER_CONVERTIBLE.
7652 (sparc_gdbarch_init): Do not set register_convertible.
7653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7654 * frv-tdep.c (frv_gdbarch_init): Ditto.
7655 * cris-tdep.c (cris_gdbarch_init): Ditto.
7656
adedef68
EZ
76572003-06-02 Elena Zannoni <ezannoni@redhat.com>
7658
8ffd9b1b 7659 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7660 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7661 (syms_from_objfile): Ditto.
7662
650fcc91
AS
76632003-06-03 Andreas Schwab <schwab@suse.de>
7664
7665 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7666 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7667
df4a182b
RH
76682003-06-02 Richard Henderson <rth@redhat.com>
7669
7670 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7671 a member of all_reggroup.
7672
c483c494
RH
76732003-06-02 Richard Henderson <rth@redhat.com>
7674
7675 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7676 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7677 (alpha_lds, alpha_sts): New.
7678 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7679 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7680 restructure and fail for type sizes other than 4 or 8.
7681 (alpha_value_to_register): Similarly.
7682 (alpha_extract_return_value): Use alpha_sts.
7683 (alpha_store_return_value): Use alpha_lds.
7684 (alpha_gdbarch_init): Update hooks.
7685
b38b6be2
RH
76862003-06-02 Richard Henderson <rth@redhat.com>
7687
7688 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7689 regnum identifiers.
7690 (alpha_sigtramp_register_address): Likewise.
7691
98a8e1e5
RH
76922003-06-02 Richard Henderson <rth@redhat.com>
7693
7694 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7695 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7696 * alpha-tdep.h: Declare them.
7697
7698 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7699 Remove zerobuf. Don't error on UNIQUE.
7700 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7701 (ALPHA_REGSET_UNIQUE): Provide default.
7702 (supply_gregset): Use alpha_supply_int_regs.
7703 (fill_gregset): Use alpha_fill_int_regs.
7704 (supply_fpregset): Use alpha_supply_fp_regs.
7705 (fill_fpregset): Use alpha_fill_fp_regs.
7706 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7707 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7708 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7709 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7710 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7711 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7712
67dfac52
RH
77132003-06-02 Richard Henderson <rth@redhat.com>
7714
f75d70cc
RH
7715 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7716
67dfac52
RH
7717 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7718 (alpha_store_return_value): Likewise.
7719
0cf566ec
DC
77202003-06-02 David Carlton <carlton@math.stanford.edu>
7721
7722 * block.c (contained_in): Add 'const' to arguments.
7723 (block_function): Ditto.
7724 * block.h: Update declarations for block_function and
7725 contained_in.
7726
cdef89d0
DC
77272003-06-02 David Carlton <carlton@math.stanford.edu>
7728
7729 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7730 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7731 * p-valprint.c (pascal_val_print): Ditto.
7732 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7733
72667056
RH
77342003-06-02 Richard Henderson <rth@redhat.com>
7735
98a8e1e5
RH
7736 * alpha-tdep.c (alpha_push_dummy_call): Use
7737 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7738
8ffd9b1b 7739 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7740 sign-extension of 32-bit values.
7741 (alpha_store_return_value): Similarly.
0ede8eca 7742
98a8e1e5
RH
7743 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7744 (alpha_extract_return_value): Likewise.
7745 (alpha_store_return_value): Likewise.
7b5e1cb3 7746
98a8e1e5
RH
7747 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7748 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7749
98a8e1e5
RH
7750 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7751 (alpha_extract_struct_value_address): Likewise.
7752 (alpha_store_return_value): Likewise.
7753 (alpha_store_struct_return): Remove.
7754 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7755
98a8e1e5
RH
7756 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7757 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7758 macros where appropriate.
7759 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7760 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7761
98a8e1e5
RH
7762 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7763 for SP, GP; void_func_ptr for PC; non-language-specific types
7764 for all others.
7765 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7766
6dd77b81
RH
77672003-06-02 Richard Henderson <rth@redhat.com>
7768
7769 * top.h (lim_at_start): Declare.
7770 * main.c (captured_main): Set it.
7771 * top.c (lim_at_start): Define.
7772 (command_loop): Use it instead of &environ.
7773 * event-top.c (command_handler): Likewise.
7774
f4dbdb54
JT
77752003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7776
7777 * mipsnbsd-tdep.c: Update copyright years.
7778 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7779
8f285956
RH
77802003-06-01 Richard Henderson <rth@redhat.com>
7781
98a8e1e5
RH
7782 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7783 (alpha-linux-tdep.o): Update dependencies.
7784 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7785 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7786
615967cb
RH
77872003-06-01 Richard Henderson <rth@redhat.com>
7788
98a8e1e5
RH
7789 * alpha-tdep.c (alpha_register_reggroup_p): New.
7790 (alpha_gdbarch_init): Register it.
615967cb 7791
b59661bd
AC
77922003-06-02 Andrew Cagney <cagney@redhat.com>
7793
7794 * dwarfread.c: Eliminate "register"
7795 (decode_die_type): Eliminate assignment within "if".
7796 (struct_type, decode_array_element_type): Ditto.
7797 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7798 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7799 (decode_modified_type, completedieinfo): Ditto.
7800 * block.c: Eliminate "register".
7801 (blockvector_for_pc_sect): Eliminate assignment within "if".
7802 * cp-support.h (struct symbol): Opaque declaration.
7803 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7804
5ef165c2
RH
78052003-06-01 Richard Henderson <rth@redhat.com>
7806
98a8e1e5
RH
7807 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7808 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7809
143985b7
AF
78102003-06-01 Adam Fedor <fedor@gnu.org>
7811
7812 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7813 * gdbarch.[ch]: Regenerate.
7814 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7815 (hppa_gdbarch_init): Set it in the gdbarch vector.
7816 * i386-tdep.c (i386_fetch_pointer_argument): New
7817 (i386_gdbarch_init): Set it into gdbarch.
7818 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7819 (rs6000_gdbarch_init): Set it in gdbarch.
7820 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7821 (sparc_gdbarch_init): Set it in gdbarch.
7822
ae0167b9
AC
78232003-06-01 Andrew Cagney <cagney@redhat.com>
7824
7c0b4a20
AC
7825 * defs.h (extract_address): Delete declaration.
7826 * findvar.c (extract_address): Delete function.
7827 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7828 extract_address with the inline equivalent,
7829 extract_unsigned_integer.
7830 (xstormy16_extract_struct_value_address): Ditto.
7831 (xstormy16_pointer_to_address): Ditto.
7832 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7833 * v850-tdep.c (v850_push_arguments): Ditto.
7834 (v850_extract_return_value): Ditto.
7835 (v850_extract_struct_value_address): Ditto.
7836 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7837 (sparcnbsd_get_longjmp_target_64): Ditto.
7838 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7839 (get_longjmp_target): Ditto.
7840 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7841 (sh64_extract_struct_value_address): Ditto.
7842 (sh_push_arguments): Ditto.
7843 (sh64_push_arguments): Ditto.
7844 * remote-vxsparc.c (vx_read_register): Ditto.
7845 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7846 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7847 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7848 * mipsv4-nat.c (get_longjmp_target): Ditto.
7849 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7850 * mips-nat.c (get_longjmp_target): Ditto.
7851 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7852 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7853 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7854 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7855 * irix5-nat.c (get_longjmp_target): Ditto.
7856 * irix4-nat.c (get_longjmp_target): Ditto.
7857 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7858 (ia64_push_arguments): Ditto.
7859 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7860 * h8300-tdep.c (h8300_push_arguments): Ditto.
7861 (h8300_store_return_value): Ditto.
7862 (h8300_extract_struct_value_address): Ditto.
7863 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7864 (frv_push_arguments): Ditto.
7865 * avr-tdep.c (avr_pointer_to_address): Ditto.
7866 (avr_push_arguments): Ditto.
7867 * arm-tdep.c (arm_push_dummy_call): Ditto.
7868 (arm_get_longjmp_target): Ditto.
7869 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7870 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7871 (alpha_get_longjmp_target): Ditto.
7872
ae0167b9
AC
7873 * solib-irix.c (extract_mips_address): Inline extract_address,
7874 replacing it with extract_signed_integer.
7875 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7876 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7877 (first_link_map_member, open_symbol_file_object): Ditto.
7878 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7879 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7880 (LM_NEXT, LM_NAME): Ditto.
7881
44d88583
RH
78822003-06-01 Richard Henderson <rth@redhat.com>
7883
98a8e1e5
RH
7884 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7885 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7886 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7887 (alpha_cannot_store_register): Likewise.
7888 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7889 * alpha-nat.c (supply_gregset): Likewise.
7890 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7891
310e9b6a
AC
78922003-06-01 Andrew Cagney <cagney@redhat.com>
7893
7894 * infcall.c (call_function_by_hand): Update comment on
7895 DEPRECATED_DUMMY_WRITE_SP.
7896
7897 * mips-tdep.c (mips_gdbarch_init): Do not set
7898 deprecated_dummy_write_sp.
7899 (mips_eabi_push_dummy_call): Set the SP register.
7900 (mips_o64_push_dummy_call): Set the SP register.
7901 (mips_o32_push_dummy_call): Set the SP register.
7902 (mips_n32n64_push_dummy_call): Set the SP register.
7903
5ab84872
RH
79042003-06-01 Richard Henderson <rth@redhat.com>
7905
98a8e1e5
RH
7906 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7907 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7908 (supply_gregset): Likewise.
7909 * alpha-tdep.c (alpha_store_return_value): Likewise.
7910 (alpha_get_longjmp_target): Likewise.
7911 (alpha_register_name): Constify array.
7912 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7913 deprecated_register_size, deprecated_register_bytes,
7914 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7915 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7916 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7917
09cc52fd
RH
79182003-06-01 Richard Henderson <rth@redhat.com>
7919
7920 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7921 from arg_reg_buffer to regcache to avoid double conversion.
7922
c7f16359
MK
79232003-06-01 Mark Kettenis <kettenis@gnu.org>
7924
7925 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7926 SP_REGNUM.
7927 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7928 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7929
7131cb6e
RH
79302003-06-01 Richard Henderson <rth@redhat.com>
7931
98a8e1e5
RH
7932 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7933 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7934
f3e0f90b
RH
79352003-06-01 Richard Henderson <rth@redhat.com>
7936
98a8e1e5
RH
7937 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7938 not overlapping PC_REGNUM.
f3e0f90b 7939
c88e30c0
RH
79402003-06-01 Richard Henderson <rth@redhat.com>
7941
98a8e1e5
RH
7942 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7943 alpha_push_arguments. Don't dump argument register data to
7944 the target stack. Fix float and 128-bit long double semantics.
7945 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7946 (alpha_fix_call_dummy): Remove.
7947 (alpha_call_dummy_words): Remove.
7948 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7949
f1a559ae
RH
79502003-06-01 Richard Henderson <rth@redhat.com>
7951
7952 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7953
5e045346
AC
79542003-06-01 Andrew Cagney <cagney@redhat.com>
7955
95404a3e
AC
7956 * mips-tdep.c (is_mips16_addr): New function.
7957 (make_mips16_addr, unmake_mips16_addr): New functions.
7958 (pc_is_mips16, mips_fetch_instruction): Use.
7959 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7960 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7961 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7962 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7963 TARGET_MIPS.
7964 * config/mips/tm-mips.h: Update copyright.
7965 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7966 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7967 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7968 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7969 (TM_PRINT_INSN_MACH): Delete.
7970 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7971
5e045346
AC
7972 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7973 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7974 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7975 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7976 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7977 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7978 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7979 mips*-*-riscos* and mips*-*-sysv* onto mips.
7980 * config/mips/mips64.mt: New file.
7981 * config/mips/mips.mt: New file.
7982 * config/mips/littlemips.mt: Delete file.
7983 * config/mips/decstation.mt: Delete file.
7984 * config/mips/vr4300el.mt: Delete file.
7985 * config/mips/vr5000el.mt: Delete file.
7986 * config/mips/vr5000.mt: Delete file.
7987 * config/mips/vr4100.mt: Delete file.
7988 * config/mips/vr4xxxel.mt: Delete file.
7989 * config/mips/vr4300.mt: Delete file.
7990 * config/mips/vr4xxx.mt: Delete file.
7991 * config/mips/bigmips.mt: Delete file.
7992 * config/mips/bigmips64.mt: Delete file.
7993 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7994 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7995 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7996 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7997 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7998 "tm-bigmips.h".
7999 * config/mips/tm-irix3.h: Ditto.
8000 * config/mips/tm-mipsv4.h: Ditto.
8001 * config/mips/tm-embed.h: Ditto.
8002 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8003 "tm-bigmips64.h".
8004 * config/mips/tm-vr5000el.h: Delete file.
8005 * config/mips/tm-tx39l.h: Delete file.
8006 * config/mips/tm-vr4300el.h: Delete file.
8007 * config/mips/tm-vr4xxxel.h: Delete file.
8008 * config/mips/tm-vr4300.h: Delete file.
8009 * config/mips/tm-vr4100.h: Delete file.
8010 * config/mips/tm-vr4xxx.h: Delete file.
8011 * config/mips/tm-vr5000.h: Delete file.
8012 * config/mips/tm-embedl64.h: Delete file.
8013 * config/mips/tm-embedl.h: Delete file.
8014 * config/mips/tm-embed64.h: Delete file.
8015 * config/mips/tm-bigmips64.h: Delete file.
8016 * config/mips/tm-bigmips.h: Delete file.
8017
2473a4a9
MK
80182003-06-01 Mark Kettenis <kettenis@gnu.org>
8019
97a5b208
MK
8020 Fix gdb/1216.
8021 * shnbsd-nat.c: Include "sh-tdep.h".
8022
2473a4a9
MK
8023 From Richard Henderson <rth@redhat.com>:
8024 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8025
e0f7ec59
AC
80262003-05-31 Andrew Cagney <cagney@redhat.com>
8027
8028 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8029 forward declaration.
8030 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8031 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8032 (mips_find_saved_regs): Use set_reg_offset.
8033 (mips_frame_init_saved_regs): Delete function.
8034 (mips_pop_frame): Call mips_find_saved_regs instead of
8035 DEPRECATED_FRAME_INIT_SAVED_REGS.
8036
68dcc709
AC
80372003-05-31 Andrew Cagney <cagney@redhat.com>
8038
8039 * mips-tdep.c (mips_gdbarch_init): Do not set
8040 deprecated_max_register_raw_size, register_virtual_size, and
8041 deprecated_max_register_virtual_size.
8042
cfc14b3a
MK
80432003-05-31 Mark Kettenis <kettenis@gnu.org>
8044
6405b0a6
MK
8045 * i386-tdep.c: Include "dwarf2-frame.h".
8046 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8047 * Makefile.in (i386-tdep.o): Update dependencies.
8048
cfc14b3a
MK
8049 * dwarf2-frame.c, dwarf2-frame.h: New files.
8050 * Makefile.in (SFILES): Add dwarf2-frame.c.
8051 (dwarf2_frame_h): Define.
8052 (COMMON_OBS): Add dwarf2-frame.o.
8053 (dwarf2-frame.o): Add dependencies.
8054
6a2751d2
AJ
80552003-05-31 Andreas Jaeger <aj@suse.de>
8056
8057 * x86-64-linux-nat.c: Fix comment.
8058
1c3545ae
MK
80592003-05-31 Mark Kettenis <kettenis@gnu.org>
8060
10f93086
MK
8061 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8062 function signature.
8063
1c3545ae
MK
8064 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8065 have a sigcontext_addr handler.
8066 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8067 sigcontext_addr handler.
8068
e11c53d2
AC
80692003-05-31 Andrew Cagney <cagney@redhat.com>
8070
8071 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8072 (print_fp_register_row): Replace do_fp_register_row.
8073 (mips_print_fp_register): Add "file" and "frame" parameters.
8074 (mips_print_register): Add "file" and "frame" parameters.
8075 (mips_print_registers_info): Replace mips_do_registers_info.
8076 (mips_gdbarch_init): Set print_registers_info instead of
8077 deprecated_do_registers_info.
8078 (mips_read_fp_register_single): Add "frame" parameter.
8079 (mips_read_fp_register_double): Add "frame" parameter.
8080
a3386186
MK
80812003-05-31 Mark Kettenis <kettenis@gnu.org>
8082
70913449
MK
8083 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8084 Fixes a bug where GDB would print the wrong register names for
8085 targets without SSE.
8086
2b5e0749
MK
8087 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8088 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8089 registers.
8090
8091 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8092 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8093 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8094 TDEP->sc_sp_offset.
8095
a3386186
MK
8096 From Michal Ludvig <mludvig@suse.cz>:
8097 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8098 and `sc_num_regs'.
8099 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8100 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8101 I386_ST0_REGNUM): Move here from...
8102 * i386-tdep.c: ... here.
8103 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8104 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8105 registers if possible.
8106 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8107 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8108 Remove variables.
8109 (i386bsd_sc_reg_offset): New variable.
8110 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8111 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8112 TDEP->sc_sp_offset.
8113 (i386fbsd_sc_reg_offset): New variable.
8114 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8115 TDEP->sc_num_regs.
8116 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8117 variables.
8118 (i386fbsd4_sc_reg_offset): New variable.
8119 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8120 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8121 TDEP->sc_sp_offset.
8122 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8123 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8124 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8125 Remove variables.
8126 (i386nbsd_sc_reg_offset): New variable.
8127 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8128 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8129 TDEP->sc_sp_offset.
8130 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8131 Remove variables.
8132 (i386obsd_sc_reg_offset): New variable.
8133 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8134 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8135 TDEP->sc_sp_offset.
8136 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8137 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8138 for frame pointer offset in `struct sigcontext'.
8139
25ab4790
AC
81402003-05-31 Andrew Cagney <cagney@redhat.com>
8141
8142 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8143 architecture methods call_dummy_words, sizeof_call_dummy_words,
8144 push_return_address, store_struct_return, and fix_call_dummy. Set
8145 push_dummy_call instead of deprecated_push_arguments.
8146 (mips_store_struct_return): Delete function.
8147 (mips_fix_call_dummy): Delete function.
8148 (mips_push_return_address): Delete function.
8149 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8150 RA_REGNUM and T9_REGNUM.
8151 (mips_n32n64_push_dummy_call): Ditto for
8152 mips_n32n64_push_arguments.
8153 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8154 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8155
6a65450a
AC
81562003-05-31 Andrew Cagney <cagney@redhat.com>
8157
8158 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8159 "dummy_addr" to "bp_addr".
8160 * infcall.c (call_function_by_hand): Pass "funaddr" to
8161 gdbarch_push_dummy_call.
8162 * gdbarch.h, gdbarch.c: Re-generate.
8163 * i386-tdep.c (i386_push_dummy_call): Update.
8164 * arm-tdep.c (arm_push_dummy_call): Update.
8165 * d10v-tdep.c (d10v_push_dummy_call): Update.
8166
c4f35dd8
MK
81672003-05-31 Mark Kettenis <kettenis@gnu.org>
8168
8169 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8170 variable declarations.
8171 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8172 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8173 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8174 x86_64_init_frame_pc, x86_64_init_frame_pc,
8175 x86_64_function_has_prologue): Remove prototypes.
8176 (X86_64_NUM_GREGS): New define.
8177 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8178 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8179 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8180 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8181 XMM1_REGNUM): Remove defines.
8182 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8183 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8184 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8185 X86_64_XMM1_REGNUM): New defines.
8186 (struct x86_64_register_info): Renamed from `struct
8187 register_info'. Remove `size' member.
8188 (x86_64_register_info_table): Remove variable.
8189 (x86_64_register_info): New variable.
8190 (X86_64_NUM_REGS): New define.
8191 (X86_64_NUM_GREGS): Remove define.
8192 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8193 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8194 Remove variables.
8195 (x86_54_dwarf2_reg_to_regnum): Remove function.
8196 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8197 (x86_64_dwarf_reg_to_regnum): New function.
8198 (x86_64_register_name): Rewrite.
8199 (x86_64_register_raw_size): Remove function.
8200 (x86_64_register_byte_table): Remove variable.
8201 (x86_64_register_byte): Remove function.
8202 (x86_64_register_virtual_type): Remove function.
8203 (x86_64_register_type): New function.
8204 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8205 x86_64_register_convert_to_raw): Remove functions.
8206 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8207 (x86_64_use_struct_convention): Make static. Adjust for renamed
8208 defines.
8209 (x86_64_frame_init_saved_regs): Remove function.
8210 (x86_64_push_arguments): Make static. Change to accept a regcache
8211 as argument.
8212 (x86_64_store_return_value, x86_64_extract_return_value): Make
8213 static. Rewrite based on i386 counterparts.
8214 (x86_64_push_dummy_call): New function.
8215 (X86_64_NUM_SAVED_REGS): New define.
8216 (x86_64_register_number): Remove function.
8217 (x86_64_store_struct_return): Remove function.
8218 (x86_64_frameless_function_invocation,
8219 x86_64_function_has_prologue): Remove functions.
8220 (PROLOG_BUFSIZE): Remove define.
8221 (struct x86_64_frame_cache): New structure.
8222 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8223 x86_64_frame_cache, x86_64_frame_this_id,
8224 x86_64_frame_prev_register, x86_64_frame_p,
8225 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8226 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8227 functions.
8228 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8229 variables.
8230 (x86_64_skip_prologue): Rewrite in terms of
8231 x86_64_analyze_prologue.
8232 (x86_64_frame_base_address): New function.
8233 (x86_64_frame_base): New variable.
8234 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8235 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8236 set deprecated_fp_regnum, deprecated_register_size,
8237 deprecated_register_bytes, register_raw_size, register_byte,
8238 register_virtual_type, register_convertiable,
8239 register_convert_to_virtual, convert_to_raw,
8240 deprecated_get_saved_register, deprecated_target_read_fp,
8241 deprecated_push_arguments, deprecated_push_return_address,
8242 deprecated_pop_frame, deprecated_store_struct_return,
8243 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8244 frameless_function_invocation, deprecated_frame_saved_pc,
8245 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8246 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8247 deprecated_init_frame_pc and virtual_frame_pointer. Call
8248 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8249 and x86_64_frame_p. Call frame_base_set_default to register
8250 x86_64_frame_base.
8251 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8252 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8253 (_initialize_x86_64_tdep): Remove function.
8254 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8255 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8256 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8257 define.
8258 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8259 (x86_64_linux_sigcontext_addr): Rewrite.
8260 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8261 x86_64_linux_frame_saved_pc): Remove functions.
8262 (x86_64_linux_pc_in_sigtramp): Renamed from
8263 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8264 trampoline.
8265 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8266 Remove_functions.
8267 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8268 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8269 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8270 (x86_64_regmap): Rename to regmap.
8271 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8272 x86_64_num_gregs.
8273 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8274 x86_64_regmap.
8275 (x86_64_fxsave_offset): Remove function.
8276 (supply_fpregset): Simply call x86_64_supply_fxsave.
8277 (fill_fpregset): Simply call x86_64_fill_fxsave.
8278 (fetch_inferior_registers, store_inferior_registers): Avoid
8279 asignment in if-statement.
8280 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8281 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8282 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8283 (fetch_core_registers): Remove function.
8284 (linux_elf_core_fns): Remove.
8285 (offsetoff): Don't define.
8286 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8287 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8288 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8289 add core-regset.o.
8290 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8291 protection against multiple includes instead of NM_X86_64_h. Add
8292 various comments. Include "config/nm-linux.h". Don't include
8293 <signal.h>.
8294 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8295 GET_THREAD_SIGNALS): Remove defines.
8296 (x86_64_register_u_addr, kernel_u_size,
8297 lin_thread_get_thread_signals): Remove prototypes.
8298 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8299 [HAVE_LINK_H]: Don't include "solib.h".
8300 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8301 * config/i386/tm-x86-64linux.h: Fix comments.
8302 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8303 x86-64-tdep.o): Update dependencies.
8304
c25083af
AC
83052003-05-30 Andrew Cagney <cagney@redhat.com>
8306
c8f55a7b
AC
8307 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8308 Change parameter type to a "struct regcache *".
8309
c25083af
AC
8310 * gdbarch.sh: Regardless of the multi-arch level, always define
8311 the macro when not already defined.
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313
fbe586ae
RH
83142003-05-30 Richard Henderson <rth@redhat.com>
8315
8316 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8317 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8318 (alpha_mdebug_frame_this_id): Likewise.
8319 (alpha_mdebug_frame_prev_register): Likewise.
8320 (alpha_mdebug_frame_base_address): Likewise.
8321 (alpha_mdebug_frame_locals_address): Likewise.
8322 (alpha_mdebug_frame_args_address): Likewise.
8323 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8324 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8325 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8326 loop increment.
8327 (alpha_heuristic_frame_this_id): Make static.
8328 (alpha_heuristic_frame_prev_register): Likewise.
8329 (alpha_heuristic_frame_base_address): Likewise.
8330 * alpha-tdep.h: Update.
8331
acd5c798
MK
83322003-05-30 Mark Kettenis <kettenis@gnu.org>
8333
8334 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8335 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8336 defenitions.
8337 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8338 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8339 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8340 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8341 I386_ST0_REGNUM): New defines.
8342 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8343 codestream_get): Remove define.
8344 (codestream_next_addr, condestream_addr, condestream_buf,
8345 codestream_off, codestream_cnt): Remove variables.
8346 (codestream_fill, codestream_seek, codestream_read): Remove
8347 functions.
8348 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8349 functionality.
8350 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8351 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8352 i386_frame_saved_pc, i386_saved_pc_after_call,
8353 i386_frame_num_args, i386_frame_init_saved_regs,
8354 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8355 i386_push_arguments): Remove functions.
8356 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8357 functionality. Use i386_analyze_prologue instead of
8358 i386_get_frame_setup.
8359 (I386_NUM_SAVED_REGS): New define.
8360 (struct i386_frame_cache): New structure.
8361 (i386_alloc_frame_cache, i386_analyze_struct_return,
8362 i386_skip_probe, i386_analyze_frame_setup,
8363 i386_analyze_register_saves, i386_analyze_prologue,
8364 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8365 i386_frame_prev_register, i386_sigtramp_frame_cache,
8366 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8367 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8368 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8369 New functions.
8370 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8371 New variables.
8372 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8373 I386_EAX_REGNUM and I386_EDX_REGNUM.
8374 (i386_extract_return_value, i386_store_return_value): Use
8375 I386_ST0_REGNUM where appropriate.
8376 (i386_extract_struct_value_address): Rewrite to use extract_address.
8377 (i386_svr4_pc_in_sigtramp): Add comment.
8378 (i386_svr4_sigcontext_addr): Rewrite.
8379 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8380 TDEP->sc_sp_offset.
8381 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8382 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8383 of new defines. Set push_dummy_call, don't set
8384 deprecated_push_arguments, deprecated_push_return_address,
8385 deprecated_pop_frame. Don't set parm_boundary. Don't set
8386 deprecated_frame_chain, deprecated_frame_saved_pc,
8387 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8388 save_dummy_frame_tos, unwind_pc. Call
8389 frame_unwind_append_predicate and frame_base_set_default. Don't
8390 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8391 Don't set frameless_function_invocation. Don't set
8392 deprecated_register_bytes, deprecated_register_size,
8393 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8394 * i386-linux-tdep.c: Fix formatting in some comments.
8395 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8396 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8397 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8398 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8399 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8400 redundant parentheses.
8401 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8402 (i386_linux_sigcontext_addr): Use it. Rewrite.
8403 (find_minsym_and_objfile): Change name of second argument.
8404 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8405 changed. Use frame_pc_unwind instead of
8406 DEPRECATED_SAVED_PC_AFTER_CALL.
8407 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8408 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8409 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8410 unwinder.
8411 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8412 "dummy-frame.h".
8413 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8414 (_initialize_i386_cygwin_tdep): New prototype.
8415 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8416 deprecated_frame_chain_valid.
8417 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8418 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8419 Rely on the SVR4 defaults.
8420 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8421 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8422
c89b70f1
AC
84232003-05-30 Andrew Cagney <cagney@redhat.com>
8424
8425 * infcall.c (call_function_by_hand): Always call
8426 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8427
85b32d22
RH
84282003-05-30 Richard Henderson <rth@redhat.com>
8429
c89b70f1
AC
8430 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8431 increment.
85b32d22 8432
bfe51b1e
JB
84332003-05-29 Jim Blandy <jimb@redhat.com>
8434
8435 Use gdbarch methods for solib stuff on PowerPC Linux.
8436 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8437 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8438 show through.
8439 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8440 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8441 giving the same effect as the #definitions above.
8442
1abf022c
AF
84432003-05-29 Adam Fedor <fedor@gnu.org>
8444
8445 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8446 (find_implementation_from_class): Replace it with the standard
8447 case i.e. do nothing.
8448
d2427a71
RH
84492003-05-29 Richard Henderson <rth@redhat.com>
8450
8451 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8452 (alpha_linux_sigtramp_offset): Use it. Make static.
8453 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8454 update for new frame model.
8455 * alpha-mdebug-tdep.c: New file.
8456 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8457 (alpha_osf1_init_abi): Install it.
8458 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8459 (linked_proc_desc_table): Remove.
8460 (alpha_frame_past_sigtramp_frame): Remove.
8461 (alpha_dynamic_sigtramp_offset): Remove.
8462 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8463 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8464 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8465 (push_sigtramp_desc): Remove.
8466 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8467 (alpha_cannot_store_register): Likewise.
8468 (alpha_sigcontext_addr): Remove.
8469 (alpha_find_saved_regs): Remove.
8470 (alpha_frame_init_saved_regs): Remove.
8471 (alpha_init_frame_pc_first): Remove.
8472 (read_next_frame_reg): Remove.
8473 (alpha_frame_saved_pc): Remove.
8474 (alpha_saved_pc_after_call): Remove.
8475 (temp_proc_desc, temp_saved_regs): Remove.
8476 (alpha_about_to_return): Remove.
8477 (cached_proc_desc): Remove.
8478 (alpha_frame_chain): Remove.
8479 (alpha_print_extra_frame_info): Remove.
8480 (alpha_init_extra_frame_info): Remove.
8481 (alpha_frame_locals_address): Remove.
8482 (alpha_frame_args_address): Remove.
8483 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8484 (alpha_push_dummy_frame): Remove.
8485 (alpha_pop_frame): Remove.
8486 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8487 (alpha_read_insn): New.
8488 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8489 for different insn encodings.
8490 (alpha_in_lenient_prologue): Remove.
8491 (struct alpha_sigtramp_unwind_cache): New.
8492 (alpha_sigtramp_frame_unwind_cache): New.
8493 (alpha_sigtramp_register_address): New.
8494 (alpha_sigtramp_frame_this_id): New.
8495 (alpha_sigtramp_frame_prev_register): New.
8496 (alpha_sigtramp_frame_unwind): New.
8497 (alpha_sigtramp_frame_p): New.
8498 (struct alpha_heuristic_unwind_cache): New.
8499 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8500 don't count nop insns that occur between functions.
8501 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8502 heuristic_proc_desc, but without the mdebug wrapping.
8503 (alpha_heuristic_frame_this_id): New.
8504 (alpha_heuristic_frame_prev_register): New.
8505 (alpha_heuristic_frame_unwind): New.
8506 (alpha_heuristic_frame_p): New.
8507 (alpha_heuristic_frame_base_address): New.
8508 (alpha_heuristic_frame_base): New.
8509 (alpha_unwind_dummy_id): New.
8510 (alpha_unwind_pc): New.
8511 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8512 frame related deprecated initializations; install replacements.
8513 (alpha_dump_tdep): Remove.
8514 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8515 (alpha_read_insn, alpha_after_prologue,
8516 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8517 alpha_heuristic_frame_prev_register,
8518 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8519 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8520 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8521 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8522
93ec1121
AC
85232003-05-29 Andrew Cagney <cagney@redhat.com>
8524
8525 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8526 dependant on the availability of ASSERT_FUNCTION.
8527 (ASSERT_FUNCTION): Do not define when there is no function name.
8528
98f08d3d
KB
85292003-05-29 Kevin Buettner <kevinb@redhat.com>
8530
8531 From Jimi X <jimix@watson.ibm.com>:
8532 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8533
0897f59b
JB
85342003-05-28 Jim Blandy <jimb@redhat.com>
8535
8536 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8537 argument to ptrace to int; the system headers should give it the
8538 right type, and pointers don't fit in ints on powerpc64-*-*.
8539
14898363
L
85402003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8541
8542 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8543 DW_TAG_catch_block.
8544
a7a48797
EZ
85452003-05-26 Elena Zannoni <ezannoni@redhat.com>
8546
8547 * stabsread.c (dbx_lookup_type): Make static.
8548 (read_type): Ditto.
8549 (add_undefined_type): Ditto.
8550 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8551 not export.
8552
f5479e9c
EZ
85532003-05-26 Elena Zannoni <ezannoni@redhat.com>
8554
8555 * hpread.c (hpread_has_name): Make static.
8556 (hpread_psymtab_to_symtab): Ditto.
8557 (file_exists): Ditto.
8558 (hpread_call_pxdb): Ditto.
8559 (hpread_pxdb_needed): Ditto.
8560 (hpread_quick_traverse): Ditto.
8561 (hpread_get_header): Ditto.
8562 (hpread_get_lntt): Ditto.
8563 (hpread_get_slt): Ditto.
8564 (class_of): Ditto.
8565
eb2e12d7
AS
85662003-05-25 Andreas Schwab <schwab@suse.de>
8567
78bf922a
AS
8568 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8569 stack_align and deprecated_extra_stack_alignment_needed.
8570 (m68k_stack_align): Delete.
8571
eb2e12d7
AS
8572 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8573 (m68k_register_virtual_size): Likewise.
8574 (altos_skip_prologue): Remove obsolete function.
8575 (isi_frame_num_args): Likewise.
8576 (news_frame_num_args): Likewise.
8577 (m68k_fix_call_dummy): Make static.
8578 (m68k_push_dummy_frame): Likewise.
8579 (m68k_pop_frame): Likewise.
8580 (m68k_skip_prologue): Likewise.
8581 (m68k_frame_init_saved_regs): Likewise.
8582 (m68k_saved_pc_after_call): Likewise.
8583 (m68k_get_longjmp_target): Make multi-arch.
8584 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8585 structure. Register m68k_get_longjmp_target if enabled.
8586 * m68k-tdep.h (struct gdbarch_tdep): Define.
8587 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8588
8589 * Makefile.in (config.status): Also depend on configure.tgt
8590 and configure.host.
8591 (m68klinux-tdep.o): Update dependencies.
8592 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8593 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8594 (M68K_LINUX_JB_PC): Define.
8595 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8596 and take additional parameter.
8597 (m68k_linux_sigtramp_saved_pc): Update.
8598 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8599 m68k_linux_pc_in_sigtramp, in_plt_section,
8600 find_solib_trampoline_target.
8601 * config/m68k/tm-linux.h: Don't include any tm headers.
8602 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8603 (JB_ELEMENT_SIZE): Likewise.
8604 (JB_PC): Likewise.
8605 (GET_LONGJMP_TARGET): Likewise.
8606 (IN_SIGTRAMP): Likewise.
8607 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8608
eb2c22dc
MK
86092003-05-25 Mark Kettenis <kettenis@gnu.org>
8610
8611 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8612 (sparc32_push_arguments): Re-implement by calling
8613 sparc32_do_push_arguments.
8614
44b7b84e
MK
86152003-05-25 Mark Kettenis <kettenis@gnu.org>
8616
8617 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8618 SPARC_O1_REGNUM): New defines.
8619 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8620 (sparc32_store_return_value): New function.
8621 (sparc_extract_struct_value_address): Rewrite to operate on a
8622 regcache.
8623 (sparc_gdbarch_init): Don't set
8624 deprecated_extract_struct_value_address. Set
8625 extract_struct_value_address instead. Don't set
8626 deprecated_extract_return_value and deprecated_store_return_value
8627 for 32-bit targets. Set extract_return_value and
8628 store_return_value instead.
8629 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8630 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8631 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8632 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8633 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8634 (sparc_store_return_value): Remove prototype.
8635 (sparc32_store_return_value): New prototype.
8636 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8637 Adjust prototypes.
8638
f6ad61e3
MK
86392003-05-24 Mark Kettenis <kettenis@gnu.org>
8640
8641 * sparcnbsd-tdep.c: Include "gdb_string.h".
8642
b276f1bb
AC
86432003-05-23 Andrew Cagney <cagney@redhat.com>
8644
8645 * p-valprint.c (pascal_val_print): Replace extract_address with
8646 the inline equivalent extract_unsigned_integer.
8647 * jv-valprint.c (java_value_print): Ditto.
8648 * ada-valprint.c (ada_val_print_1): Ditto.
8649 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8650
e76c5fcc
TR
86512003-05-23 Theodore A. Roth <troth@openavr.org>
8652
8653 * blockframe.c (frameless_look_for_prologue): Remove unused
8654 after_prologue variable.
8655
2cdd89cb
MK
86562003-05-23 Mark Kettenis <kettenis@gnu.org>
8657
8658 * blockframe.c (get_pc_function_start): Rewrite to avoid
8659 asignments in if-statements.
8660
182d43bc
EZ
86612003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8662
8663 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8664 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8665 files, don't relocate absolute symbols (and do use mst_abs).
8666
e8f3fcdd
AC
86672003-05-23 Andrew Cagney <cagney@redhat.com>
8668
8669 * objc-lang.c: Include "gdb_assert.h".
8670 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8671 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8672 (gdb_check, gdb_check_fatal): Delete functions.
8673 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8674 gdb_assert.
8675 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8676 * Makefile.in (objc-lang.o): Update dependencies.
8677
3c23e6fb
ILT
86782003-05-22 Ian Lance Taylor <ian@airs.com>
8679
8680 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8681 with fprintf_filtered, not fprintf_unfiltered.
8682
af1342ab
AC
86832003-05-22 Andrew Cagney <cagney@redhat.com>
8684
8685 * stack.c (frame_info): Inline extract_address, replacing it with
8686 extract_unsigned_integer.
8687 * findvar.c (unsigned_pointer_to_address): Ditto.
8688 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8689 * dwarf2expr.c (dwarf2_read_address): Ditto.
8690 * frame.c (frame_pc_unwind): Update comment.
8691 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8692
47e242ec
JJ
86932003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8694
8695 * infptrace.c (detach): Call print_sys_errmsg rather than
8696 perror_with_name to issue warning message when errno is non-zero
8697 after calling ptrace detach.
8698
e2ac8128
JB
86992003-05-21 J. Brobecker <brobecker@gnat.com>
8700
8701 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8702 macro definitions from here...
8703 * hppa-tdep.c: ...to there.
8704
92b3541e
KB
87052003-05-20 Kevin Buettner <kevinb@redhat.com>
8706
8707 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8708 register_ptrace_addr(). Fix all callers.
8709
55809acb
AS
87102003-05-21 Andreas Schwab <schwab@suse.de>
8711
8712 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8713 dependencies.
8714 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8715 end.
8716 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8717 (_initialize_m68k_linux_tdep): New function.
8718 (m68k_linux_frame_saved_pc): Make static.
8719 (m68k_linux_extract_return_value): Likewise.
8720 (m68k_linux_store_return_value): Likewise.
8721 (m68k_linux_extract_struct_value_address): Likewise.
8722 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8723 Remove.
8724 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8725 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8726 (DEPRECATED_FRAME_SAVED_PC): Remove.
8727
0fbc10f7
KW
87282003-05-20 Kris Warkentin <kewarken@qnx.com>
8729
8730 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8731 regset numbering rather than our own.
8732
58da2eb2
DC
87332003-05-19 David Carlton <carlton@bactrian.org>
8734
8735 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8736
1fcb5155
DC
87372003-05-19 David Carlton <carlton@bactrian.org>
8738
8739 Partial fix for PR c++/827.
8740 * cp-support.h: Include symtab.h.
8741 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8742 * cp-namespace.c: Update contributors.
8743 (cp_lookup_symbol_nonlocal): New.
8744 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8745 (lookup_symbol_file): Ditto.
8746 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8747 * block.h: Declare block_scope, block_using, block_global_block.
8748 * block.c (block_scope): New.
8749 (block_using, block_global_block): Ditto.
8750 * Makefile.in (cp_support_h): Depend on symtab_h.
8751 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8752
5f9a71c3
DC
87532003-05-19 David Carlton <carlton@bactrian.org>
8754
8755 * language.h (struct language_defn): Add 'la_value_of_this'
8756 and 'la_lookup_symbol_nonlocal' members.
8757 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8758 lookup_symbol_static, lookup_symbol_global,
8759 lookup_symbol_aux_block.
8760 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8761 if we should search fields of this and how to do static/global
8762 lookup.
8763 (lookup_symbol_aux_block): Make extern.
8764 (basic_lookup_symbol_nonlocal): New.
8765 (lookup_symbol_static, lookup_symbol_global): Ditto.
8766 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8767 'la_lookup_symbol_nonlocal' members.
8768 * c-lang.c (c_language_defn, cplus_language_defn)
8769 (asm_language_defn, minimal_language_defn): Ditto.
8770 * jv-lang.c (java_language_defn): Ditto.
8771 * language.c (unknown_language_defn, auto_language_defn)
8772 (local_language_defn): Ditto.
8773 * m2-lang.c (m2_language_defn): Ditto.
8774 * objc-lang.c (objc_language_defn): Ditto.
8775 * scm-lang.c (scm_language_defn): Ditto.
8776 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8777 * p-lang.c (pascal_language_defn): Ditto for both.
8778 * Makefile.in (f-lang.o): Depend on value_h.
8779 (p-lang.o): Ditto.
8780
89a9d1b1
DC
87812003-05-19 David Carlton <carlton@bactrian.org>
8782
8783 * block.h: Declare block_static_block.
8784 * block.c (block_static_block): New.
8785 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8786 lookup_symbol_aux_local, calling block_static_block instead.
8787 (lookup_symbol_aux_local): Delete 'static_block' argument.
8788
eed3f8ab
DC
87892003-05-19 David Carlton <carlton@bactrian.org>
8790
8791 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8792
a09d8bda
ML
87932003-05-19 Michal Ludvig <mludvig@suse.cz>
8794
8795 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8796 register numbers mapping.
8797
69636828
AF
87982003-05-18 Adam Fedor <fedor@gnu.org>
8799
8800 * symtab.c (completion_list_objc_symbol): New function.
8801 (make_symbol_completion_list): Use it to add ObjC symbols
8802 when looking though the list.
8803 (language_search_unquoted_string): New function.
8804 (make_file_symbol_completion_list): Use it.
8805
55baeb84
AS
88062003-05-18 Andreas Schwab <schwab@suse.de>
8807
d0b45d99
AS
8808 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8809 dependencies.
8810 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8811 as m68k_linux_extract_return_value.
8812 (DEPRECATED_STORE_RETURN_VALUE): Define as
8813 m68k_linux_store_return_value.
8814 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8815 m68k_linux_extract_struct_value_address.
8816 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8817 get_next_frame, get_frame_base, get_frame_pc.
8818 (m68k_linux_frame_saved_pc): Use get_frame_base.
8819 (m68k_linux_extract_return_value): New function.
8820 (m68k_linux_store_return_value): New function.
8821 (m68k_linux_extract_struct_value_address): New function.
8822 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8823
55baeb84
AS
8824 * c-exp.y (typebase): Remove duplicate occurence of
8825 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8826 of lookup_signed_typename.
55baeb84 8827
b6b08ebf
MK
88282003-05-18 Mark Kettenis <kettenis@gnu.org>
8829
8830 * dwarf2loc.c (find_location_expression): Change type of second
8831 argument to `size_t *'.
8832 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8833 for size variable.
8834
5ad1c190
DC
88352003-05-18 David Carlton <carlton@bactrian.org>
8836
8837 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8838 'linkage_name'. Add comment.
8839 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8840 'linkage_name'.
8841 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8842 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8843 (lookup_block_symbol): Ditto.
8844
b8b527c5
AC
88452003-05-16 Andrew Cagney <cagney@redhat.com>
8846
8847 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8848 * gdbarch.h, gdbarch.c: Re-generate.
8849 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8850 * TODO (REGISTER_BYTES): Delete reference.
8851 * alpha-tdep.c (alpha_gdbarch_init): Update.
8852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8853 * x86-64-tdep.c (x86_64_init_abi): Update.
8854 * vax-tdep.c (vax_gdbarch_init): Update.
8855 * v850-tdep.c (v850_gdbarch_init): Update.
8856 * sparc-tdep.c (sparc_gdbarch_init): Update.
8857 * sh-tdep.c (sh_gdbarch_init): Update.
8858 * s390-tdep.c (s390_gdbarch_init): Update.
8859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8860 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8861 (ns32k_gdbarch_init_32382): Update.
8862 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8863 * mcore-tdep.c (mcore_gdbarch_init): Update.
8864 * m68k-tdep.c (m68k_gdbarch_init): Update.
8865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8866 * ia64-tdep.c (ia64_gdbarch_init): Update.
8867 * i386-tdep.c (i386_gdbarch_init): Update.
8868 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8869 * hppa-tdep.c (hppa_gdbarch_init): Update.
8870 * h8300-tdep.c (h8300_gdbarch_init): Update.
8871 * frv-tdep.c (frv_gdbarch_init): Update.
8872 * cris-tdep.c (cris_gdbarch_init): Update.
8873 * avr-tdep.c (avr_gdbarch_init): Update.
8874 * arm-tdep.c (arm_gdbarch_init): Update.
8875 * sparc-tdep.c (sparc_pop_frame): Update.
8876 * rs6000-tdep.c (rs6000_pop_frame): Update.
8877 * remote.c (init_remote_state): Update.
8878 (remote_prepare_to_store): Update.
8879 * remote-vx.c (vx_prepare_to_store): Update.
8880 * remote-sds.c (sds_fetch_registers): Update.
8881 (sds_prepare_to_store): Update.
8882 * remote-array.c: Update.
8883 * regcache.c (init_legacy_regcache_descr): Update.
8884 (init_regcache_descr): Update.
8885 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8886 (mips_o64_extract_return_value): Update.
8887 * irix5-nat.c (fetch_core_registers): Update.
8888 * irix4-nat.c (fetch_core_registers): Update.
8889 * i386-tdep.h: Update.
8890 * hppa-tdep.c (pa_do_registers_info): Update.
8891 (pa_do_strcat_registers_info): Update.
8892 * cris-tdep.c (cris_register_bytes_ok): Update.
8893 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8894 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8895 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8896 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8897 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8898 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8899 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8900 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8901 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8902 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8903 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8904 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8905 (REGISTER_BYTES_OK): Update.
8906 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8907 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8908
ee2842e2
ILT
89092003-05-16 Ian Lance Taylor <ian@airs.com>
8910
8911 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8912 (vax_print_insn, print_insn_arg): Remove static functions.
8913 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8914 print_insn_vax from opcodes library.
8915 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8916
973177d3
AC
89172003-05-15 Andrew Cagney <cagney@redhat.com>
8918
aaab4dba
AC
8919 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8920 * target.h (memory_breakpoint_from_pc): Delete declaration.
8921 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8922 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8923 * monitor.c (monitor_insert_breakpoint): Use
8924 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8925 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8926 * gdbarch.h, gdbarch.c: Re-generate.
8927 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8928 (sparc_gdbarch_init): Set breakpoint_from_pc to
8929 sparc_breakpoint_from_pc.
8930 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8931 (BREAKPOINT_FROM_PC): Define.
8932 (sparc_breakpoint_from_pc): Declare.
8933 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8934 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8935 (BREAKPOINT_FROM_PC): Define.
8936 (BREAKPOINT): Delete macro.
8937 * target.h: Update comment.
8938 * s390-tdep.c (s390_gdbarch_init): Update comments.
8939 * remote.c: Update comments.
8940 * remote-mips.c: Update comments.
8941 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8942 * mem-break.c: Update comment.
8943 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8944 (ia64_memory_insert_breakpoint): Update.
8945 * config/sparc/tm-sparc.h: Update comment.
8946 * config/pa/tm-hppa64.h: Update comment.
8947 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8948 (rs6000_breakpoint_from_pc): Update.
8949 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8950 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8951 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8952 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8953 (mips_breakpoint_from_pc): Update.
8954 (mips_dump_tdep): Update.
8955
e06963ff
AC
8956 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8957 * minsyms.c (lookup_minimal_symbol): Inline
8958 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8959
973177d3
AC
8960 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8961 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8962 * p-lang.c (pascal_printstr): Ditto.
8963 * objc-lang.c (objc_printstr): Ditto.
8964 * m2-lang.c (m2_printstr): Ditto.
8965 * jv-valprint.c (java_print_value_fields): Ditto.
8966 * f-lang.c (f_printstr): Ditto.
8967 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8968 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8969 for repeat_count_threshold.
8970 * Makefile.in (cp-valprint.o): Update dependencies.
8971
5ea2bd7f 89722003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8973
5ea2bd7f
JJ
8974 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8975 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8976 they start with mov r2,r12. Support skipping over indirect stores
8977 of the input registers. Upon hitting a non-nop branch instruction
8978 or predicated instruction, bail out by setting lim_pc to the current
8979 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8980 beyond our calculated value and we have trust_limit set,
8981 use the lim_pc value.
8982
cc8c88f3
AC
89832003-05-15 Andrew Cagney <cagney@redhat.com>
8984
8985 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8986 generic_find_dummy_frame.
8987 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8988 (deprecated_generic_find_dummy_frame): Update.
8989 (deprecated_read_register_dummy): Update.
8990 * frame.c (deprecated_generic_get_saved_register): Update.
8991
909cd28e
TR
89922003-05-15 Theodore A. Roth <troth@openavr.org>
8993
8994 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8995 (avr_gdbarch_init): Set breakpoint_from_pc method.
8996
b923b08d
AC
89972003-05-15 Andrew Cagney <cagney@redhat.com>
8998
8999 * regcache.c (build_regcache): Set deprecated_register_valid
9000 directly.
9001 (deprecated_grub_regcache_for_register_valid): Delete function.
9002 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9003 declaration.
9004
ae2f03ac 90052003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9006
9007 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9008 * symtab.c (lookup_symbol_aux): Delete calls to
9009 lookup_symbol_aux_minsyms.
9010 (lookup_symbol_aux_minsyms): Comment out function and
9011 prototype. Delete lookup by mangled name.
ae2f03ac 9012
18ec9831
KB
90132003-05-14 Kevin Buettner <kevinb@redhat.com>
9014
9015 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9016 correctly indicate an empty stack and ``stack_allocated'' to the
9017 indicate the number of elements initially allocated.
9018 (dwarf_expr_grow_stack): Simplify method for computing new
9019 stack size. Don't loop infinitely if ``stack_len'' is zero.
9020 (execute_stack_op): Move ``ctx->in_reg'' initialization
9021 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9022 be used in conjuction with DW_OP_piece. Revise error message
9023 accordingly.
9024
de18ac1f
TR
90252003-05-14 Theodore A. Roth <troth@openavr.org>
9026
9027 * MAINTAINERS: Update my email address.
9028 * avr-tdep.c: Ditto.
9029
176620f1
EZ
90302003-05-14 Elena Zannoni <ezannoni@redhat.com>
9031
9032 * symtab.h (enum domain_enum): Rename from namespace_enum.
9033 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9034 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9035 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9036 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9037 TYPES_NAMESPACE, METHODS_NAMESPACE.
9038 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9039 (struct symbol, struct partial_symbol): Rename field
9040 'namespace_enum namespace' to 'domain_enum domain'.
9041 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9042 Delete old define kludge for namespace.
9043
9044 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9045 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9046 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9047 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9048 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9049 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9050 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9051 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9052 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9053 occurrences of the above.
9054
b7f31508
ILT
90552003-05-14 Ian Lance Taylor <ian@airs.com>
9056
9057 * Makefile.in (install-only): Use $(SHELL) when running
9058 mkinstalldirs.
9059
2fdbdd39
ILT
90602003-05-13 Ian Lance Taylor <ian@airs.com>
9061
a208d82c
ILT
9062 * MAINTAINERS (write after approval): Add myself.
9063
2fdbdd39
ILT
9064 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9065 second and third arguments.
9066 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9067 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9068
fbd9dcd3
AC
90692003-05-13 Andrew Cagney <cagney@redhat.com>
9070
9071 * defs.h (store_address): Delete declaration.
9072 findvar.c (store_address): Delete function.
9073 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9074 store_unsigned_integer.
9075 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9076 * v850-tdep.c (v850_push_arguments): Ditto.
9077 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9078 * sh-tdep.c (sh64_get_saved_register): Ditto.
9079 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9080 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9081 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9082 (mips_get_saved_register): Ditto.
9083 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9084 (find_func_descr, ia64_push_arguments): Ditto.
9085 * i386-tdep.c (i386_push_arguments): Ditto.
9086 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9087 * frv-tdep.c (frv_push_arguments): Ditto.
9088 * frame.c (legacy_saved_regs_prev_register): Ditto.
9089 (deprecated_generic_get_saved_register): Ditto.
9090 * findvar.c (unsigned_address_to_pointer): Ditto.
9091 * dwarf2read.c (dwarf2_const_value): Ditto.
9092 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9093 * alpha-tdep.c (alpha_push_arguments): Ditto.
9094
6760f9e6
JB
90952003-05-12 J. Brobecker <brobecker@gnat.com>
9096
9097 * NEWS: Mention that the hppa-hpux port has been partially
9098 multiarched (32bit ABIT only, so far).
9099
30e221b4
AC
91002003-05-11 Andrew Cagney <cagney@redhat.com>
9101
9102 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9103 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9104 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9105 sim/testsuite/sim/arm/misaligned2.ms, and
9106 sim/testsuite/sim/arm/misaligned3.ms.
9107 * disasm.h (struct ui_file): Add opaque struct declaration.
9108 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9109 * frame.h (struct ui_file): Ditto.
9110
dea7f9ba
MK
91112003-05-11 Mark Kettenis <kettenis@gnu.org>
9112
9113 * value.h: Pretty print.
9114
01986c48
MK
91152003-05-10 Mark Kettenis <kettenis@gnu.org>
9116
9117 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9118
123a958e
AC
91192003-05-08 Andrew Cagney <cagney@redhat.com>
9120
9121 * regcache.h (max_register_size): Delete declaration.
9122 * regcache.c (max_register_size): Delete function.
9123 (struct regcache_descr): Delete field "max_register_size".
9124 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9125 registers fit in MAX_REGISTER_SIZE.
9126 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9127 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9128 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9129 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9130 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9131 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9132 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9133 * dve3900-rom.c, hppa-tdep.c: Ditto.
9134
eb294659
DC
91352003-05-08 David Carlton <carlton@math.stanford.edu>
9136
9137 * valops.c (push_word): Fix typo.
9138
d9d9c31f
AC
91392003-05-08 Andrew Cagney <cagney@redhat.com>
9140
9141 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9142 * gdbarch.h: Re-generate.
9143 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9144 (legacy_max_register_raw_size): Delete declaration.
9145 * regcache.c (legacy_max_register_raw_size): Delete function.
9146 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9147 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9148 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9149 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9150 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9151 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9152 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9153 * findvar.c, dwarf2cfi.c: Ditto.
9154
22540ece
AC
91552003-05-08 Andrew Cagney <cagney@redhat.com>
9156
9157 * mips-tdep.c (read_signed_register): New function, moved to here
9158 from "regcache.c".
9159 (read_signed_register_pid): Ditto.
9160 * regcache.c (read_signed_register_pid): Delete function, moved to
9161 "mips-tdep.c".
9162 (read_signed_register): Ditto.
9163 * regcache.h (read_signed_register): Delete declaration.
9164 (read_signed_register_pid): Delete declaration.
9165
0c92afe8
AC
91662003-05-08 Andrew Cagney <cagney@redhat.com>
9167
9168 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9169 * gdbarch.h: Re-generate.
9170 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9171 (legacy_max_register_virtual_size): Delete declaration.
9172 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9173 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9174 * tracepoint.c (memrange_sortmerge): Ditto.
9175 * sparc-tdep.c (sparc_print_registers): Ditto.
9176 * regcache.c (legacy_max_register_virtual_size): Delete function.
9177
6037b830
JB
91782002-05-08 J. Brobecker <brobecker@gnat.com>
9179
9180 * fork-child.c (escape_bang_in_quoted_argument): New function.
9181 (fork_inferior): Escape '!' characters in quoted arguments
9182 only when needed.
9183
5d62c8b1
JB
91842003-05-08 J. Brobecker <brobecker@gnat.com>
9185
9186 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9187 the language of the CU is not currently supported by GDB.
9188
20a0e81d
JB
91892003-05-08 J. Brobecker <brobecker@gnat.com>
9190
9191 * defs.h (language): Add language_minimal enum value.
9192 * c-lang.c (minimal_language_defn): New language definition.
9193 (_initialize_c_language): Add the new minimal language to the list
9194 of languages known to GDB.
9195
710ee10a
KB
91962003-05-08 Kevin Buettner <kevinb@redhat.com>
9197
9198 * frame.c (get_frame_type): Don't attempt to lazily initialize
9199 frame's unwinder for legacy frames.
9200
1750fa04
AC
92012003-05-07 Andrew Cagney <cagney@redhat.com>
9202
9203 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9204 and "regcache" parameters.
9205 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9206
ddf9f258 92072003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9208
9209 * dwarf2read.c (dwarf_decode_lines): Only use output of
9210 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9211 the current address.
9212
87767c29
AC
92132003-05-07 Andrew Cagney <cagney@redhat.com>
9214
9215 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9216 code.
9217
5e7b2f39
JB
92182003-05-07 Jim Blandy <jimb@redhat.com>
9219
9220 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9221 'maint info symtabs' and 'maint info psymtabs'.
9222 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9223 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9224 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9225 Declarations updated.
9226 * maint.c (maintenance_list_command): Delete.
9227 (_initialize_maint_cmds): Update calls to add_cmd.
9228 * gdbcmd.h (maintenancelistlist): Delete declaration.
9229 * cli/cli-cmds.c (maintenancelistlist): Delete.
9230 (init_cmd_lists): Don't initialize it.
9231 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9232
f6684c31
AC
92332003-05-07 Andrew Cagney <cagney@redhat.com>
9234
9235 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9236 "regcache".
9237 (d10v_print_registers_info): Update.
9238 (d10v_dmap_register, d10v_imap_register): Delete functions.
9239 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9240 and "imap_register".
9241 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9242 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9243 * arch-utils.c (generic_remote_translate_xfer_address): Add
9244 "regcache" and "gdbarch" parameters.
9245 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9246 parameter. Change class to multi-arch.
9247 * gdbarch.h, gdbarch.c: Re-generate.
9248 * remote.c (remote_xfer_memory): Use
9249 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9250
e4846b08
JJ
92512003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9252
9253 * infrun.c (prev_pc): Move declaration ahead of proceed().
9254 (proceed): Refresh prev_pc value before resuming.
9255 (stop_stepping): Remove code to refresh prev_pc.
9256
6b71b8ac
KW
92572003-05-06 Kris Warkentin <kewarken@qnx.com>
9258
9259 * nto-tdep.c: Removed stray comment.
9260
47979a4b
KW
92612003-05-06 Kris Warkentin <kewarken@qnx.com>
9262
9263 * i386-nto-tdep.c: Fix old K&R function definitions.
9264 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9265 Also change add_show_from_set() call to add_setshow_cmd().
9266 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9267
00905d52
AC
92682003-05-05 Andrew Cagney <cagney@redhat.com>
9269
9270 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9271 (fprint_dummy_frames): New function.
9272 (maintenance_print_dummy_frames): New function.
9273 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9274 * frame.c (fprint_frame_id): Make global.
9275 * frame.h (fprint_frame_id): Declare.
9276 * Makefile.in (dummy-frame.o): Update dependencies.
9277
b1e29e33
AC
92782003-05-05 Andrew Cagney <cagney@redhat.com>
9279
9280 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9281 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9282 SIZEOF_CALL_DUMMY_WORDS.
9283 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9284 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9285 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9286 CALL_DUMMY_BREAKPOINT_OFFSET.
9287 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9288 CALL_DUMMY_START_OFFSET.
9289 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9290 * gdbarch.h, gdbarch.c: Re-generate.
9291 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9292 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9293 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9294 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9295 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9296 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9297 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9298 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9299 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9300 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9301 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9302 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9303 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9304 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9305 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9306
93072003-05-05 Kris Warkentin <kewarken@qnx.com>
9308
9309 * configure.tgt: Add i[3456]86-*-nto*.
9310 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9311 * nto-tdep.c: New file. Neutrino target support routines.
9312 * nto-tdep.h: New file. Neutrino target header.
9313 * config/tm-qnxnto.h: New file.
9314 * config/i386/i386nto.mt: New file.
9315 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9316
0ce3d317
AC
93172003-05-04 Andrew Cagney <cagney@redhat.com>
9318
9319 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9320 (load_infrun_state): Ditto.
9321 (struct thread_info): Drop "prev_func_name" field.
9322 * thread.c (load_infrun_state): Update.
9323 (save_infrun_state): Update.
9324 * infrun.c (prev_func_name): Delete variable.
9325 (init_wait_for_inferior): Do not clear prev_func_name.
9326 (stop_stepping, keep_going, context_switch): Do not swap
9327 prev_func_name.
9328 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9329 instead of PC_IN_SIGTRAMP.
9330
46654a5b
AC
93312003-05-04 Andrew Cagney <cagney@redhat.com>
9332
9333 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9334 REGISTER_BYTE with register_offset_hack.
9335 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9336 that REGISTER_BYTE is consistent with the regcache.
9337 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9338 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9339
14b08c1b
MK
93402003-05-04 Mark Kettenis <kettenis@gnu.org>
9341
04c8243f
MK
9342 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9343 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9344
14b08c1b
MK
9345 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9346
c7a11e01
JB
93472003-05-03 J. Brobecker <brobecker@gnat.com>
9348
9349 From Thierry Schneider <tpschneider1@yahoo.com>
9350 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9351 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9352 (mi-cmd-symbol.o): Add rule.
9353
7043d8dc
AC
93542003-05-03 Andrew Cagney <cagney@redhat.com>
9355
9356 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9357 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9358 * gdbarch.h, gdbarch.c: Re-generate.
9359 * d10v-tdep.c (d10v_push_dummy_code): New function.
9360 (d10v_gdbarch_init): Set push_dummy_code.
9361 * infcall.c (legacy_push_dummy_code): New function.
9362 (generic_push_dummy_code): New function.
9363 (push_dummy_code): New function.
9364 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9365 instead of dummy_addr, to push_dummy_call. Move call to
9366 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9367 switch.
9368 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9369
92bf2b80
AC
93702003-05-03 Andrew Cagney <cagney@redhat.com>
9371
9372 * disasm.h (print_insn): Declare.
9373 * disasm.c (init_gdb_disassemble_info): New function.
9374 (gdb_disassembly): Call init_gdb_disassemble_info.
9375 (gdb_print_insn): New function.
9376 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9377 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9378 * mcore-tdep.c: Include "disasm.h"
9379 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9380 * d10v-tdep.c: Include "disasm.h".
9381 (display_trace): Call gdb_print_insn, instead of print_insn.
9382 (print_insn): Delete function.
9383 * printcmd.c: Include "disasm.h".
9384 (print_insn): Delete function.
9385 (print_formatted): Call gdb_print_insn, instead of print_insn.
9386 * Makefile.in (printcmd.o): Update dependencies.
9387 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9388
27d94c49
AC
93892003-05-02 Andrew Cagney <cagney@redhat.com>
9390
82de1e5b
AC
9391 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9392 PC_REGNUM, re-indent.
9393 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9394 PC_REGNUM isn't set.
9395
27d94c49
AC
9396 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9397 * gdbarch.h, gdbarch.c: Re-generate.
9398 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9399 register_virtual_size, pc_regnum, or register_bytes.
9400 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9401 (d10v_register_type): Use D10V_PC_REGNUM.
9402 (d10v_print_registers_info, d10v_read_pc): Ditto.
9403 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9404 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9405
a9c0dc7f
DC
94062003-05-02 David Carlton <carlton@bactrian.org>
9407
9408 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9409 the name with mstrsave.
9410
e33d66ec
EZ
94112003-05-02 Elena Zannoni <ezannoni@redhat.com>
9412
9413 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9414 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9415 (host_charset_name, target_charset_name): New vars for use by
9416 set/show commands.
9417 (host_charset_enum, target_charset_enum): New enums for set/show
9418 commands.
9419 (set_charset_sfunc, set_host_charset_sfunc,
9420 set_target_charset_sfunc): New functions.
9421 (set_host_charset, set_target_charset): Make static.
9422 (list_charsets, set_host_charset_command,
9423 set_target_charset_command): Delete functions.
9424 (show_charset_command): Rewrite as....
9425 (show_charset): Hook this up with the set/show command mechanism.
9426 (_initialize_charset): Change names of charsets to match the
9427 set/show enums. Use host_charset_name and target_charset_name.
9428 Use set/show mechanism for charset, host-charset, target-charset
9429 commands. Do not make 'show host-charset' and 'show
9430 target-charset' be aliases of 'show charset'.
9431
9432 * charset.h (set_host_charset, set_target_charset): Don't export,
9433 they are not used outside the file.
9434
2b6fd0d8
AC
94352003-05-01 Andrew Cagney <cagney@redhat.com>
9436
9437 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9438 (gdb_disassembly): Make "di" non static, always initialize and
9439 cleanup. Always use dis_asm_read_memory.
9440 (gdb_dis_asm_read_memory): Delete function.
9441
6ae2f580
AC
94422003-05-01 Andrew Cagney <cagney@redhat.com>
9443
9444 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9445 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9446
810ecf9f
AC
94472003-04-30 Andrew Cagney <cagney@redhat.com>
9448
9449 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9450 "tm_print_insn_info".
9451 (TARGET_PRINT_INSN_INFO): Delete macro.
9452 (dis_asm_read_memory): Delete function declaration.
9453 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9454 (tm_print_insn_info): Delete variable definition.
9455 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9456 * gdbarch.h, gdbarch.c: Re-generate.
9457 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9458 "deprecated_tm_print_insn_info".
9459 * mcore-tdep.c (mcore_dump_insn): Ditto.
9460 * mips-tdep.c (mips_gdbarch_init): Ditto.
9461 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9462 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9463 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9464 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9465 instead of TARGET_PRINT_INSN_INFO, add comment.
9466 * s390-tdep.c (s390_get_frame_info): Instead of
9467 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9468 (s390_check_function_end, s390_is_sigreturn): Ditto.
9469 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9470 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9471 * disasm.c: Include "gdbcore.h".
9472 (_initialize_disasm): New function, initialize
9473 "deprecated_tm_print_insn_info".
9474 (deprecated_tm_print_insn_info): New variable.
9475 (dis_asm_read_memory): Moved from "corefile.c", made static.
9476 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9477 * Makefile.in (disasm.o): Update dependencies.
9478
07020390
AC
94792003-04-30 Andrew Cagney <cagney@redhat.com>
9480
9481 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9482
a9fa03de
AF
94832003-04-29 Adam Fedor <fedor@gnu.org>
9484
9485 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9486 * infcall.c (find_function_addr): Make non-static.
9487 * infcall.h (find_function_addr): Declare.
9488 * Makefile.in (eval.o): Update dependencies.
9489
1bae87b9
AF
94902003-04-28 Adam Fedor <fedor@gnu.org>
9491
9492 * symtab.c (symbol_find_demangled_name): Check for and demangle
9493 ObjC symbols.
9494 (symbol_init_demangled_name): Init for language_objc as well.
9495
0ba6dca9
AC
94962003-04-28 Andrew Cagney <cagney@redhat.com>
9497
9498 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9499 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9500 * gdbarch.h, gdbarch.c: Re-generate.
9501 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9502 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9503 * inferior.h (deprecated_read_fp): Rename read_fp.
9504 (generic_target_read_fp): Delete declaration.
9505 * regcache.c (generic_target_read_fp): Delete function.
9506 (deprecated_read_fp): Replace read_fp, use
9507 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9508 * d10v-tdep.c (d10v_read_fp): Delete function.
9509 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9510
9511 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9512 deprecated_target_read_fp to generic_target_read_fp.
9513 * sh-tdep.c (sh_gdbarch_init): Ditto.
9514 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9516 * frv-tdep.c (frv_gdbarch_init): Ditto.
9517
9518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9519 deprecated_fp_regnum.
9520 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9521 * vax-tdep.c (vax_gdbarch_init): Ditto.
9522 * v850-tdep.c (v850_gdbarch_init): Ditto.
9523 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9524 * sh-tdep.c (sh_gdbarch_init): Ditto.
9525 * s390-tdep.c (s390_gdbarch_init): Ditto.
9526 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9527 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9528 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9529 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9531 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9532 * i386-tdep.c (i386_gdbarch_init): Ditto.
9533 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9534 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9535 * frv-tdep.c (frv_gdbarch_init): Ditto.
9536 * cris-tdep.c (cris_gdbarch_init): Ditto.
9537 * avr-tdep.c (avr_gdbarch_init): Ditto.
9538 * arm-tdep.c (arm_gdbarch_init): Ditto.
9539 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9540
9541 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9542 * v850-tdep.c (v850_gdbarch_init): Ditto.
9543 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9544 * sh-tdep.c (sh_gdbarch_init): Ditto.
9545 * s390-tdep.c (s390_gdbarch_init): Ditto.
9546 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9548 * mips-tdep.c (mips_gdbarch_init): Ditto.
9549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9550 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9551 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9552 * frv-tdep.c (frv_gdbarch_init): Ditto.
9553 * avr-tdep.c (avr_gdbarch_init): Ditto.
9554 * arm-tdep.c (arm_gdbarch_init): Ditto.
9555
9556 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9557 DEPRECATED_FP_REGNUM.
9558 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9559 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9560 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9561 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9562 (sparc32_register_virtual_type): Ditto.
9563 * sh-tdep.c (sh64_frame_chain): Ditto.
9564 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9565 (sh_nofp_frame_init_saved_regs): Ditto.
9566 (sh64_nofp_frame_init_saved_regs): Ditto.
9567 (sh_fp_frame_init_saved_regs): Ditto.
9568 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9569 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9570 * procfs.c (procfs_fetch_registers): Ditto.
9571 (procfs_store_registers): Ditto.
9572 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9573 (store_inferior_registers, fetch_core_registers): Ditto.
9574 (fetch_kcore_registers, clear_regs): Ditto.
9575 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9576 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9577 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9578 * nlm/i386.c (do_status): Ditto.
9579 * mipsv4-nat.c (supply_gregset): Ditto.
9580 * mips-tdep.c: Ditto for comments.
9581 * mips-nat.c (fetch_inferior_registers): Ditto.
9582 (store_inferior_registers, fetch_core_registers): Ditto.
9583 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9584 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9585 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9586 (i386_do_pop_frame, i386_register_type): Ditto.
9587 * hppa-tdep.c (hppa_frame_chain): Ditto.
9588 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9589 (hppa_pop_frame, hppa_read_fp): Ditto.
9590 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9591 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9592 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9593 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9594 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9595 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9596 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9597 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9598 * blockframe.c: Ditto for comments.
9599 * arch-utils.h: Ditto for comments.
9600 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9601 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9602 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9603 * alpha-tdep.h: Ditto for comments.
9604 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9605 (alpha_cannot_store_register): Ditto.
9606 (alpha_push_dummy_frame): Ditto.
9607 * alpha-nat.c (supply_gregset): Ditto.
9608
9609 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9610 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9611 * config/sparc/tm-sparc.h: Update comment.
9612
9613 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9614 deprecated_read_fp instead of TARGET_READ_FP.
9615 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9616 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9617 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9618 deprecated_read_fp instead of read_fp.
9619 * s390-tdep.c (s390_push_arguments): Ditto.
9620 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9621 * frame.h: Ditto in comments.
9622 * frame.c (legacy_get_prev_frame): Ditto.
9623 * dummy-frame.c (dummy_frame_this_id): Ditto.
9624 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9625
d7a27068
AC
96262003-04-28 Andrew Cagney <cagney@redhat.com>
9627
9628 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9629 * gdbarch.h, gdbarch.c: Re-generate.
9630 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9631 * vax-tdep.c (_initialize_vax_tdep): Update.
9632 * v850-tdep.c (_initialize_v850_tdep): Update.
9633 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9634 * s390-tdep.c (_initialize_s390_tdep): Update.
9635 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9636 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9637 * mips-tdep.c (_initialize_mips_tdep): Update.
9638 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9639 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9640 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9641 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9642 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9643 * frv-tdep.c (_initialize_frv_tdep): Update.
9644 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9645 (_initialize_cris_tdep): Update.
9646 * arch-utils.c (legacy_print_insn): Update.
9647 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9648
d2630e69
AF
96492003-04-26 Adam Fedor <fedor@gnu.org>
9650
9651 * linespec.c (decode_objc): New function to decode ObjC calls
9652 (decode_line_1): Check for ObjC calls (using decode_objc)
9653 * Makefile (linespec.o): Update dependencies.
9654
3086aeae
DJ
96552003-04-26 Daniel Jacobowitz <drow@mvista.com>
9656
9657 * breakpoint.h (struct breakpoint_ops): New.
9658 (struct breakpoint): Add ops member.
9659
9660 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9661 (mention): Use new breakpoint ops member.
9662 (set_raw_breakpoint): Initialize ops field to NULL.
9663 (print_exception_catchpoint, print_one_exception_catchpoint)
9664 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9665 (gnu_v3_exception_catchpoint_ops): New.
9666 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9667
1fbec6c3
AF
96682003-04-25 Adam Fedor <fedor@gnu.org>
9669
9670 * Makefile.in (COMMON_OBS): Add objc-lang.o
9671
0ef21242
AC
96722003-04-25 Andrew Cagney <cagney@redhat.com>
9673
9674 * d10v-tdep.c (print_insn): Delete function.
9675 (display_trace): Use TARGET_PRINT_INSN.
9676 (_initialize_d10v_tdep): Do not set tm_print_insn.
9677 (d10v_gdbarch_init): Set print_insn.
9678
f75493ed
AC
96792003-04-25 Andrew Cagney <cagney@redhat.com>
9680
9681 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9682 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9683 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9684 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9685 (nr_dmap_regs, a0_regnum): ... new functions.
9686 (d10v_print_registers_info): Use a0_regnum, use register_size.
9687 (d10v_register_byte): Delete function.
9688 (d10v_register_raw_size): Delete function.
9689 (d10v_register_type): Use a0_regnum.
9690 (d10v_print_registers_info): Use a0_regnum.
9691 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9692 (d10v_gdbarch_init): Do not set register_byte or
9693 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9694 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9695 extract_address.
9696 (trace_command): Use XCALLOC.
9697 (print_insn): Delete reference to tm_print_insn.
9698 (saved_regs_unwinder): Use store_unsigned_integer instead of
9699 store_address.
9700 * frame.h (FRAME_OBSTACK_CALLOC): Define
9701
2202b100
DC
97022003-04-25 David Carlton <carlton@bactrian.org>
9703
9704 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9705
4e45ca2e
AF
97062003-04-24 Adam Fedor <fedor@gnu.org>
9707
9708 * objc-lang.c: Include "valprint.h"
9709 * Makefile.in (objc-lang.o): Update dependencies.
9710
93de3e7f
AF
97112003-04-24 Adam Fedor <fedor@gnu.org>
9712
8ffd9b1b 9713 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9714 architecture dependant compilation and mark as unimplemented
9715 (until they get put in the gdbarch vector).
9716
0f20eeea
DC
97172003-04-23 David Carlton <carlton@bactrian.org>
9718
9719 * cp-support.c (cp_find_first_component): Accept 'operator' in
9720 more locations.
9721
74cfe982
AC
97222003-04-23 Andrew Cagney <cagney@redhat.com>
9723
9724 * infcall.c (call_function_by_hand): Eliminate redundant
9725 indentation. Move "saved_async" and "old_cleanups" to where they
9726 are needed.
8ffd9b1b 9727
52557533
AC
97282003-04-23 Andrew Cagney <cagney@redhat.com>
9729
9730 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9731 and "buffer". Move the "name" code to where it is needed.
9732
158775de
AC
97332003-04-23 Andrew Cagney <cagney@redhat.com>
9734
9735 * infcall.c (call_function_by_hand): Move variables "start_sp",
9736 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9737 code to ON_STACK switch branch.
8ffd9b1b 9738
ebc7896c
AC
97392003-04-23 Andrew Cagney <cagney@redhat.com>
9740
9741 * infcall.c (call_function_by_hand): Make declaration of "i",
9742 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9743 lint.
9744
d727590f
AC
97452003-04-23 Andrew Cagney <cagney@redhat.com>
9746
9747 * infcall.c (call_function_by_hand): Delete variable
9748 "n_method_args". Localize "param_type"'s declaration to the loop
9749 that it is used. Reinstate code assigning to said variable -
9750 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9751 Rationalize code using "param_type".
9752
d585e13a
AC
97532003-04-22 Andrew Cagney <cagney@redhat.com>
9754
9755 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9756 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9757 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9758 to DEPRECATED_PUSH_RETURN_ADDRESS.
9759
051caad9
KB
97602003-04-22 Kevin Buettner <kevinb@redhat.com>
9761
9762 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9763 on the DWARF2 register number prior to fetching a register.
9764
77296879
JB
97652003-04-22 J. Brobecker <brobecker@gnat.com>
9766
9767 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9768 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9769 this macro was always set to 0.
77296879
JB
9770 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9771 considering the fact that this macro was always set to 0.
9772 * hppa-tdep.h (hppa_store_return_value): Likewise.
9773 (hppa_extract_return_value): Likewise.
9774
4252f1df
JB
97752003-04-22 J. Brobecker <brobecker@gnat.com>
9776
9777 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9778 the hppa-pro target only.
9779
14604c6b
JB
97802003-04-21 J. Brobecker <brobecker@gnat.com>
9781
9782 Ongoing multi-arch conversion effort for HP/UX:
9783 * config/pa/tm-hppa.h: Move all macro that are no longer
9784 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9785 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9786
77eb01d1
JB
97872003-04-21 J. Brobecker <brobecker@gnat.com>
9788
9789 * config/pa/tm-hppa.h: Obsolete a section that was only used
9790 for hppa-pro.
9791
61995b3b
JB
97922003-04-21 J. Brobecker <brobecker@gnat.com>
9793
9794 Ongoing multi-arch conversion for HP/UX.
9795 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9796 if already defined (allows hppa64 to stay non-multiarched for now).
9797 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9798
4aa79dcc
AC
97992003-04-21 Andrew Cagney <cagney@redhat.com>
9800
9801 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9802
0f751ff2
AC
98032003-04-21 Andrew Cagney <cagney@redhat.com>
9804
9805 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9806 "i386_num_mmx_regs".
9807
04714b91
AC
98082003-04-21 Andrew Cagney <cagney@redhat.com>
9809
9810 * infcall.c: New file.
9811 * infcall.h: New file.
9812 * valarith.c: Include "infcall.h".
9813 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9814 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9815 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9816 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9817 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9818 (SFILES): Add "infcall.c"
9819 (COMMON_OBS): Add "infcall.o".
9820 (infcall.o): Specify dependencies.
9821 * value.h (call_function_by_hand): Delete declaration.
9822 * inferior.h (run_stack_dummy): Delete declaration.
9823 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9824 (run_stack_dummy): Move to "infcall.c", merged into
9825 call_function_by_hand.
9826 * valops.c (call_function_by_hand): Moved to "infcall.c".
9827 (find_function_addr, value_arg_coerce): Ditto.
9828 (unwindonsignal_p, coerce_float_to_double): Ditto.
9829 (_initialize_valops): Move "set/show coerce-float-to-double", and
9830 "set/show unwindonsignal" commands to "infcall.c".
9831 * v850-tdep.c, target.h: Update comments.
9832 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9833 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9834 (sh64_init_extra_frame_info): Update comments.
9835 * mn10300-tdep.c: Update comments.
9836 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9837 * config/sparc/tm-sparc.h: Update comments.
9838 * breakpoint.h: Update comments.
9839 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9840 * arm-tdep.c: Update comment.
9841
f9d3c2a8
MK
98422003-04-19 Mark Kettenis <kettenis@gnu.org>
9843
c40e1eab
MK
9844 * i386-tdep.c (i386_num_register_names): New variable.
9845 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9846 (MM0_REGNUM): Remove redundant parentheses in define.
9847 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9848 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9849 i386_mxcsr_regnum_p): Remove redundant parentheses.
9850 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9851
94ea66b3
MK
9852 * i386-tdep.c (i386_extract_return_value,
9853 i386_store_return_value): Correct check for availability of
9854 floating-point registers.
9855
54299a1d
MK
9856 * i386-tdep.c (i386_frame_num_args): Remove function.
9857 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9858
c86c27af
MK
9859 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9860 mmx_regnum_to_fp_regnum. Adjust all callers.
9861
f9d3c2a8
MK
9862 * i386-tdep.c (i386_get_longjmp_target): Use
9863 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9864 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9865 extract_address.
9866
94ba74a9
MK
98672003-04-19 Mark Kettenis <kettenis@gnu.org>
9868
9869 * core-regset.c: Update comments to reflect reality. Re-order
9870 includes.
9871 (fetch_core_registers): Use switch instead of if. Remove
9872 redundant prototype.
9873
4074e13c
JB
98742003-04-18 Jim Blandy <jimb@redhat.com>
9875
9876 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9877 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9878
e3ab4aba
RH
98792003-04-17 Richard Henderson <rth@redhat.com>
9880
9881 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9882
627bf7c1
EZ
98832003-04-17 Michael Snyder <msnyder@redhat.com>
9884 Karen Bennet <bennet@redhat.com>
9885
9886 Committed by Elena Zannoni <ezannoni@redhat.com>
9887 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9888
514621a9
EZ
98892003-04-17 Elena Zannoni <ezannoni@redhat.com>
9890
9891 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9892 value if the return type is void.
514621a9 9893
b4acd559
JJ
98942003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9895
9896 * thread-db.c: Reindented.
8ffd9b1b 9897
530b167e 98982003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9899
9900 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9901 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9902 as types.
9903
0a48e7e8
MS
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
8ffd9b1b 9927
ab9fe00e
KB
99282003-04-16 Kevin Buettner <kevinb@redhat.com>
9929
610a3745 9930 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9931 the size of ``long double'' to 16, instead of 8.
9932
e64a344c
MK
99332003-04-16 Mark Kettenis <kettenis@gnu.org>
9934
9935 * i386-linux-nat.c: Add some whitespace to make things more
9936 readable.
9937 (fetch_register, store_register, fetch_inferior_registers,
9938 store_inferior_registers): Get rid of assignment in if-statement.
9939 (store_register): Fix typo in error message.
9940
25d41031
AC
99412003-04-16 Andrew Cagney <cagney@redhat.com>
9942
9943 * utils.c (xmmalloc): Always allocate something, matches
9944 libiberty/xmalloc's semantics.
9945 (xmrealloc, xmcalloc): Ditto.
9946
c50901fd
AC
99472003-04-16 Andrew Cagney <cagney@redhat.com>
9948
9949 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9950 update comments.
9951 (get_frame_type): Initialize unwind and type when needed.
9952 (get_frame_id, frame_register_unwind): Ditto.
9953
f81824a9
AC
99542003-04-16 Andrew Cagney <cagney@redhat.com>
9955
9956 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9957 obsolete.
9958 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9959 * sparcl-stub.c: Obsolete file.
9960 * config/sparc/tm-sparclet.h: Obsolete file.
9961 * sparclet-stub.c: Obsolete file.
9962 * sparclet-rom.c: Obsolete file.
9963 * sparcl-tdep.c: Obsolete file.
9964 * config/sparc/tm-sparclite.h: Obsolete file.
9965 * config/sparc/sparclite.mt: Obsolete file.
9966 * config/sparc/sparclet.mt: Obsolete file.
9967 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9968 sparc86x-*-* obsolete.
9969
9219021c
DC
99702003-04-15 David Carlton <carlton@math.stanford.edu>
9971
9972 * Makefile.in (SFILES): Add cp-namespace.c.
9973 (COMMON_OBS): Add cp-namespace.o.
9974 (block.o): Depend on gdb_obstack_h and cp_support_h.
9975 (buildsym.o): Depend on cp_support_h.
9976 (cp-namespace.o): New.
9977 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9978 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9979 (dwarf2read.o): Depend on cp_support_h.
9980 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9981 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9982 processing_current_namespace.
9983 (read_namespace): Update processing_current_namespace; check for
9984 anonymous namespaces.
9985 (dwarf2_name): New function.
9986 (dwarf2_extension): Ditto.
9987 * cp-support.h: Update copyright, contributors.
9988 Add inclusion guards.
9989 Add opaque declaration for structs obstack, block, symbol.
9990 (struct using_direct): New struct.
9991 Add declarations for cp_find_first_component,
9992 cp_entire_prefix_len, processing_has_namespace_info,
9993 processing_current_namespace, cp_is_anonymous,
9994 cp_add_using_directive, cp_initialize_namespace,
9995 cp_finalize_namespace, cp_set_block_scope,
9996 cp_scan_for_anonymous_namespaces.
9997 * cp-namespace.c: New file.
9998 * cp-support.c: Update copyright.
9999 Include ctype.h, gdb_assert.h, gdbcmd.h.
10000 New variable maint_cplus_cmd_list.
10001 (cp_find_first_component): New function.
10002 (cp_entire_prefix_len, maint_cplus_command)
10003 (first_component_command, _initialize_cp_support): Ditto.
10004 * buildsym.c: Include cp-support.h.
10005 New variable using_list.
10006 (add_symbol_to_list): Check for anonymous namespaces.
10007 (finish_block): Set block's scope.
10008 (start_symtab): Initialize C++ namespace support.
10009 (end_symtab): Finalize C++ namespace support.
10010 * block.h: Add opaque declarations for structs
10011 block_namespace_info, using_direct, and obstack.
10012 Add declarations for block_set_scope and block_set_using.
10013 (struct block): Add 'language_specific' member.
10014 (BLOCK_NAMESPACE): New macro.
10015 * block.c: Include gdb_obstack.h and cp-support.h.
10016 (struct block_namespace_info): New struct.
10017 (block_set_scope): New function.
10018 (block_set_using, block_initialize_namespace): Ditto.
10019
d5a921c9
KB
100202003-04-14 Kevin Buettner <kevinb@redhat.com>
10021
10022 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10023 (locate_base): Return early if there aren't any link map offsets.
10024 (svr4_solib_create_inferior_hook): Warn if shared library support
10025 is unavailable.
10026
d2a52b27
DC
100272003-04-14 David Carlton <carlton@math.stanford.edu>
10028
10029 * symtab.c (symbol_set_names): Add prefix when storing Java names
10030 in hash table. Fix for PR java/1039.
10031
980cae7a
DC
100322003-04-14 David Carlton <carlton@math.stanford.edu>
10033
10034 * symtab.c (symbol_set_names): Rename 'name' arg to
10035 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10036 * symtab.h: Change 'name' argument in declaration of
10037 symbol_set_names to 'linkage_name'.
10038 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10039
e227b13c
AC
100402003-04-14 Andrew Cagney <cagney@redhat.com>
10041
10042 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10043 return the fully sign-extended register value.
10044 (get_frame_pointer): Ditto.
10045 (mips_pop_frame): Initialize "proc_desc" after checking for a
10046 dummy frame.
10047
36712a20
AC
100482003-04-14 Andrew Cagney <cagney@redhat.com>
10049
10050 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10051 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10052 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10053 (mips_push_register): Delete function.
10054 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10055 PUSH_FP_REGNUM.
10056
44ea7b70
JB
100572003-04-14 Jim Blandy <jimb@redhat.com>
10058
10059 * symmisc.c: #include "gdb_regex.h".
10060 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10061 functions.
10062 * maint.c (maintenance_list_command): New function.
10063 (_initialize_maint_cmds): Register the above as commands.
10064 * symtab.h (maintenance_list_symtabs,
10065 maintenance_list_psymtabs): New declarations.
10066 * cli/cli-cmds.c (maintenancelistlist): New variable.
10067 (init_cmd_lists): Initialize it.
10068 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10069 * gdbcmd.h (maintenancelistlist): New declaration.
10070 * Makefile.in (symmisc.o): Update dependencies.
10071
2d0c7962
EZ
100722003-04-14 Elena Zannoni <ezannoni@redhat.com>
10073
10074 * s390-nat.c: Include asm/types.h for addr_t.
10075
1947a811
CV
100762003-04-14 Corinna Vinschen <vinschen@redhat.com>
10077
10078 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10079 actually incoming type.
10080
adb616d7
AC
100812003-04-13 Andrew Cagney <cagney@redhat.com>
10082
10083 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10084 get_next_frame and get_frame_saved_regs.
10085
9b5e151c
AC
100862003-04-13 Andrew Cagney <cagney@redhat.com>
10087
10088 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10089 of gdbarch_num_regs.
10090
ef6e7e13
AC
100912003-04-13 Andrew Cagney <cagney@redhat.com>
10092
10093 * frame.h: Mention what replaced what in "struct frame_info".
10094 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10095 deprecated_update_frame_base_hack and
10096 deprecated_update_frame_pc_hack.
10097 * hppa-tdep.c: Ditto.
10098
61fbb938
DJ
100992003-04-13 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10102 to read_reg and update its comment. Remove regnum member.
10103 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10104 Don't call read_reg when setting in_reg. Call read_reg to get
10105 the frame base if it's in a register. Return the register number
10106 on the stack instead of in the context. Remove extra arguments
10107 to read_reg.
10108 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10109 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10110 the register number on the expression stack.
10111 (needs_frame_read_reg): Remove extra arguments.
10112
0d53c4c4
DJ
101132003-04-13 Daniel Jacobowitz <drow@mvista.com>
10114
10115 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10116 made non-static.
10117 (execute_stack_op): All callers updated.
10118 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10119 * dwarf2loc.c (find_location_expression): New function.
10120 (dwarf_expr_frame_base): Call it.
10121 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10122 (dwarf2_tracepoint_var_ref): New function, broken out from
10123 locexpr_tracepoint_var_ref.
10124 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10125 Make static.
10126 (loclist_read_variable, loclist_read_needs_frame): New functions.
10127 (loclist_describe_location, loclist_tracepoint_var_ref): New
10128 functions.
10129 (dwarf2_loclist_funcs): New struct location_funcs.
10130 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10131 (struct dwarf2_locexpr_baton): Add comments.
10132 (dwarf2_loclist_funcs): New extern.
10133 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10134 base_address and base_known.
10135 (dwarf_loc_buffer): New variable.
10136 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10137 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10138 (dwarf2_has_info): Initialize dwarf_loc_offset.
10139 (dwarf2_build_psymtabs): Read in .debug_loc.
10140 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10141 DWARF_LOC_SIZE.
10142 (psymtab_to_symtab_1): Likewise. Move base address calculation
10143 here, from...
10144 (dwarf2_get_pc_bounds): ... here. Use the base address from
10145 cu_header.
10146 (dwarf2_symbol_mark_computed): Handle location lists.
10147
6aca59a3
DJ
101482003-04-13 Daniel Jacobowitz <drow@mvista.com>
10149
10150 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10151 if the linkage name demangled successfully.
10152
aca1fcd0
MK
101532003-04-13 Mark Kettenis <kettenis@gnu.org>
10154
97095916
MK
10155 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10156 disassmbly_flavour): Removed.
10157
aca1fcd0
MK
10158 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10159
562a961f
MK
101602003-04-13 Mark Kettenis <kettenis@gnu.org>
10161
10162 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10163
bd013d54
AC
101642003-04-12 Andrew Cagney <cagney@redhat.com>
10165
10166 * frame.h (struct frame_info): Move definition from here ...
10167 * frame.c (struct frame_info): ... to here.
10168
167ef8b1
AC
101692003-04-12 Andrew Cagney <cagney@redhat.com>
10170
10171 * gdbthread.h (save_infrun_state): Delete parameter
10172 "prev_func_start".
10173 (struct thread_info): Delete field "prev_func_start".
10174 (load_infrun_state): Ditto.
10175 * thread.c (load_infrun_state, save_infrun_state): Update.
10176 * infrun.c (prev_func_start): Delete variable.
10177 (context_switch, init_wait_for_inferior): Update.
10178 (stop_stepping, keep_going): Update.
10179
da3331ec
AC
101802003-04-12 Andrew Cagney <cagney@redhat.com>
10181
10182 * gdbarch.sh: Add missing opaque declarations.
10183 * gdbarch.h: Regnerate.
10184 * symtab.h: Add missing opaque declarations.
10185 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10186 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10187 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10188 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10189 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10190 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10191 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10192 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10193 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10194 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10195 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10196 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10197 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10198
18adea3f
AC
101992003-04-11 Andrew Cagney <cagney@redhat.com>
10200
10201 * frame.c (get_frame_id): Return this frame's "id".
10202 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10203 function start.
10204 (legacy_saved_regs_this_id): Replace function body with
10205 internal-error.
10206 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10207 FRAME_OBSTACK_ZALLOC.
10208 (create_new_frame): Mark the frame ID as valid.
10209
2252e863
AO
102102003-04-11 Alexandre Oliva <aoliva@redhat.com>
10211
10212 * Makefile.in (libbfd_h): Added missing setting.
10213 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10214 according to the selected ABI.
10215
a8245ab8
JJ
102162003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10217
10218 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10219
6913c89a
AC
102202003-04-11 Andrew Cagney <cagney@redhat.com>
10221
10222 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10223 SAVED_PC_AFTER_CALL.
10224 * gdbarch.h, gdbarch.c: Regenerate.
10225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10226 * x86-64-tdep.c (x86_64_init_abi): Update.
10227 * vax-tdep.c (vax_gdbarch_init): Update.
10228 * v850-tdep.c (v850_gdbarch_init): Update.
10229 * sparc-tdep.c (sparc_gdbarch_init): Update.
10230 * sh-tdep.c (sh_gdbarch_init): Update.
10231 * s390-tdep.c (s390_gdbarch_init): Update.
10232 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10233 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10235 * mips-tdep.c (mips_gdbarch_init): Update.
10236 * mcore-tdep.c (mcore_gdbarch_init): Update.
10237 * m68k-tdep.c (m68k_gdbarch_init): Update.
10238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10239 * ia64-tdep.c (ia64_gdbarch_init): Update.
10240 (ia64_saved_pc_after_call): Update declaration.
10241 * i386ly-tdep.c (i386lynx_init_abi): Update.
10242 * i386-tdep.c (i386_gdbarch_init): Update.
10243 * hppa-tdep.c (hppa_gdbarch_init): Update.
10244 * h8300-tdep.c (h8300_gdbarch_init): Update.
10245 * frv-tdep.c (frv_gdbarch_init): Update.
10246 * cris-tdep.c (cris_gdbarch_init): Update.
10247 * avr-tdep.c (avr_gdbarch_init): Update.
10248 * arm-tdep.c (arm_gdbarch_init): Update.
10249 * alpha-tdep.c (alpha_gdbarch_init): Update.
10250 * ns32knbsd-nat.c (frame_num_args): Update.
10251 * ns32k-tdep.c (umax_frame_num_args): Update.
10252 * mips-tdep.c (mips_init_frame_pc_first): Update.
10253 * infrun.c (step_over_function): Update.
10254 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10255 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10256 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10257 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10258 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10259 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10260 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10261 * arch-utils.c (init_frame_pc_default): Update.
10262 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10263 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10264 declaration.
8ffd9b1b 10265
38edeab8
AC
102662003-04-11 Andrew Cagney <cagney@redhat.com>
10267
10268 * i387-tdep.c: Update copyright.
10269 (i387_to_double): Delete function.
10270 (double_to_i387): Delete function.
10271
81f8a206
AC
102722003-04-10 Andrew Cagney <cagney@redhat.com>
10273
10274 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10275 frame's function's address. Simplify.
10276 (d10v_frame_unwind_cache): Check that the frame's function is
10277 non-zero.
10278
6e691f7a
JB
102792003-04-10 Jim Blandy <jimb@redhat.com>
10280
10281 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10282 call to set_gdbarch_deprecated_push_arguments.
10283
7f78e237
AC
102842003-04-10 Andrew Cagney <cagney@redhat.com>
10285
10286 * frame.c (fprint_frame_id): New function.
10287 (fprint_frame_type, fprint_frame): New function.
10288 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10289 (create_sentinel_frame, get_frame_id): Ditto.
10290 (frame_id_p, frame_id_eq): Ditto.
10291 (frame_id_inner, create_new_frame): Ditto.
10292 (legacy_get_prev_frame, get_prev_frame): Ditto.
10293 (deprecated_update_frame_pc_hack): Ditto.
10294 (frame_register_unwind): Ditto.
10295 (deprecated_update_frame_base_hack): Ditto.
10296
f870b49b
CV
102972003-04-10 Corinna Vinschen <vinschen@redhat.com>
10298
10299 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10300 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10301 frame_chain function.
10302 * Makefile.in: Add dependencies due to above change.
10303
7c86889b
CV
103042003-04-10 Corinna Vinschen <vinschen@redhat.com>
10305
10306 * blockframe.c (legacy_frame_chain_valid): Move call to
10307 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10308 inside_entry_file.
10309
d0a55772
AC
103102003-04-09 Andrew Cagney <cagney@redhat.com>
10311
10312 * frame.h (struct frame_id): Replace "pc" and "base" with
10313 "stack_addr" and "code_addr". Update comments.
10314 (frame_id_build): Update parameter names and comment.
10315 (struct frame_info): Replace "id_p" and "id" with "this_id".
10316 * dummy-frame.c (dummy_frame_this_id): Update.
10317 * breakpoint.c (print_one_breakpoint): Update.
10318 * frame.c (get_frame_id): Update.
10319 (get_frame_base, frame_id_build): Update.
10320 (create_sentinel_frame, legacy_get_prev_frame): Update.
10321 (deprecated_update_frame_base_hack): Update.
10322 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10323 (frame_id_inner): Ditto.
10324
ac16bf07
AC
103252003-04-09 Andrew Cagney <cagney@redhat.com>
10326
10327 * defs.h (gdb_print_host_address): Make "addr" parameter a
10328 pointer constant.
10329 * utils.c (gdb_print_host_address): Update.
10330
366cfc9e
KB
103312003-04-09 Kevin Buettner <kevinb@redhat.com>
10332
10333 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10334 register number for R0 is 0.
10335
cd983b5c
JB
103362003-04-09 J. Brobecker <brobecker@gnat.com>
10337
10338 * frame.h (struct gdbarch): Add opaque structure definition
10339 to avoid a compilation warning on LynxOS 4.0.
10340
d1340264
AC
103412003-04-09 Andrew Cagney <cagney@redhat.com>
10342
10343 * frame.h (struct frame_info): Delete field "pc". Replace
10344 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10345 structure.
10346 * frame.c (frame_pc_unwind): Update.
10347 (create_sentinel_frame): Do not set "pc".
10348 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10349 (get_frame_pc): Call frame_pc_unwind.
10350 (deprecated_update_frame_pc_hack): Update.
10351 (create_new_frame): Use "pc" not "->pc".
10352
90a6fffb
AC
103532003-04-09 Andrew Cagney <cagney@redhat.com>
10354
10355 * frame.c (get_frame_id): Eliminate code updating "frame".
10356 (legacy_get_prev_frame): Ditto.
10357 (get_frame_base): Return id.base directly.
10358 (deprecated_update_frame_base_hack): Update "id.base".
10359 * frame.h (struct frame_info): Delete field "frame".
10360
2fbce691
AC
103612003-04-09 Andrew Cagney <cagney@redhat.com>
10362
10363 * NEWS: Mention that the "Sequent family" is obsolete.
10364 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10365 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10366 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10367 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10368 * config/i386/tm-ptx4.h: Obsolete file.
10369 * config/i386/tm-ptx.h: Obsolete file.
10370 * symm-tdep.c: Obsolete file.
10371 * config/i386/symmetry.mt: Obsolete file.
10372 * config/i386/tm-symmetry.h: Obsolete file.
10373 * symm-nat.c: Obsolete file.
10374 * config/i386/nm-symmetry.h: Obsolete file.
10375 * config/i386/xm-symmetry.h: Obsolete file.
10376 * config/i386/symmetry.mh: Obsolete file.
10377 * config/i386/nm-ptx4.h: Obsolete file.
10378 * config/i386/ptx4.mh: Obsolete file.
10379 * config/i386/ptx.mt: Obsolete file.
10380 * config/i386/ptx.mh: Obsolete file.
10381 * config/i386/xm-ptx4.h: Obsolete file.
10382 * config/i386/xm-ptx.h: Obsolete file.
10383
78c43945
AC
103842003-04-09 Andrew Cagney <cagney@redhat.com>
10385
10386 Obsolete mips*-*-mach3*.
10387 * NEWS: Mention that mips*-*-mach3* is obsolete.
10388 * m3-nat.c: Obsolete file.
10389 * config/nm-m3.h: Obsolete file.
10390 * config/mips/tm-mipsm3.h: Obsolete file.
10391 * config/mips/mipsm3.mt: Obsolete file.
10392 * config/mips/mipsm3.mh: Obsolete file.
10393 * config/mips/xm-mipsm3.h: Obsolete file.
10394 * mipsm3-nat.c: Obsolete file.
10395 * configure.host: Obsolete mips-dec-mach3*.
10396 * configure.tgt: Obsolete mips*-*-mach3*.
10397
f1908289
AC
103982003-04-09 Andrew Cagney <cagney@redhat.com>
10399
10400 * doublest.h: Update copyright.
10401 (deprecated_store_floating, deprecated_extract_floating): Rename
10402 store_floating and extract_floating. Update comments.
10403 * doublest.c: Update copyright.
10404 (extract_floating_by_length): Replace extract_floating.
10405 (store_floating_by_length): Replace store_floating.
10406 (deprecated_extract_floating): New function.
10407 (deprecated_store_floating): New function.
10408 (extract_typed_floating): Call extract_floating_by_length.
10409 (store_typed_floating): Call store_floating_by_length.
10410 * x86-64-tdep.c (x86_64_store_return_value): Update.
10411 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10412 (sh64_extract_return_value): Update.
10413 (sh_sh4_register_convert_to_virtual): Update.
10414 (sh_sh64_register_convert_to_virtual): Update.
10415 (sh_sh4_register_convert_to_raw): Update.
10416 (sh_sh64_register_convert_to_raw): Update.
10417 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10418 (rs6000_register_convert_to_raw): Update.
10419 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10420 (ia64_register_convert_to_raw): Update.
10421 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10422 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10423 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10424 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10425 (alpha_register_convert_to_raw): Update.
10426
4443bd83
AC
104272003-04-08 Andrew Cagney <cagney@redhat.com>
10428
10429 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10430 * gdbarch.h, gdbarch.c: Re-generate.
10431 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10432 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10433 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10434 conditionally, use frame_pc_unwind as an alternative. Add
10435 comments.
10436 * arch-utils.c (init_frame_pc_default): Only call
10437 SAVED_PC_AFTER_CALL when available.
10438
c0236d92
EZ
104392003-04-08 Elena Zannoni <ezannoni@redhat.com>
10440
fbe586ae 10441 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10442 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10443 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10444 (start_remote): Ditto.
10445 (handle_inferior_event): Ditto.
10446 (save_inferior_status): Ditto.
10447 (restore_inferior_status): Ditto.
10448 * infcmd.c (attach_command): Ditto.
10449 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10450 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10451 * alpha-tdep.c (heuristic_proc_start): Ditto.
10452 * mips-tdep.c (heuristic_proc_start): Ditto.
10453 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10454 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10455 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10456 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10457 * remote-vx.c (vx_create_inferior): Ditto.
10458
104592003-04-08 Elena Zannoni <ezannoni@redhat.com>
10460
10461 * infrun.c (stop_soon_quietly): Make it an enum, to better
10462 override the default behavior of handle_inferior_event.
10463 (clear_proceed_status): Update uses of stop_soon_quietly to
10464 reflect that it is now an enum.
10465 (start_remote): Ditto.
10466 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10467 is set to handle the new GNU/Linux kernel behavior for
10468 attach/sigstop. Update uses of stop_soon_quietly.
10469 * inferior.h (enum stop_kind): New enum.
10470 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10471 Reset normal handle_inferior_event behavior, afterwards.
10472 * fork-child.c (startup_inferior): Update.
10473 * alpha-tdep.c (heuristic_proc_start): Update.
10474 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10475 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10476 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10477 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10478 * remote-vx.c (vx_create_inferior): Update.
10479 * mips-tdep.c (heuristic_proc_start): Update.
10480
1211bce3
EZ
104812003-04-07 Elena Zannoni <ezannoni@redhat.com>
10482
10483 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10484 be freed more than once, causing wild memory corruptions.
1211bce3 10485 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10486 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10487 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10488 with the "core" target.
1211bce3 10489
f0ef6b29
KB
104902003-04-07 Kevin Buettner <kevinb@redhat.com>
10491
10492 * mips-tdep.c (mips_print_fp_register): New function, created from
10493 do_fp_register_row(). Registers are now (also) printed as hex.
10494 Only one register is printed per row.
10495 (mips_print_register, do_fp_register_row): Print floating point
10496 registers with mips_print_fp_register().
10497
8cf71652
AC
104982003-04-06 Andrew Cagney <cagney@redhat.com>
10499
5e488a7b
AC
10500 * valprint.h (inspect_it): Add extern declaration.
10501 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10502 (selectors_info, classes_info): Ditto.
10503 (find_objc_msgcall): Fix indentation.
10504 (objc_printstr): Delete extern declarations.
10505
8cf71652
AC
10506 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10507
e6ba3bc9
AC
105082003-04-06 Andrew Cagney <cagney@redhat.com>
10509
10510 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10511 Update comment.
10512 * frame.c (legacy_saved_regs_this_id): Update.
10513 (legacy_get_prev_frame): Update.
10514 * xstormy16-tdep.c: Update comment.
10515 * sparc-tdep.c (sparc_frame_chain): Update comment.
10516 * blockframe.c (legacy_frame_chain_valid): Update.
10517
55e1d7e7
AC
105182003-04-06 Andrew Cagney <cagney@redhat.com>
10519
996179ee
AC
10520 * valprint.c (val_print_type_code_int): Delete #ifdef
10521 PRINT_TYPELESS_INTEGER code.
10522
55e1d7e7
AC
10523 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10524 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10525 multi-arch definition.
10526 * gdbarch.h: Re-generate.
10527
43bd9a9e
AC
105282003-04-05 Andrew Cagney <cagney@redhat.com>
10529
10530 Eliminate FRAME_FIND_SAVED_REGS.
10531 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10532 Change FSR parameter to a pointer.
10533 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10534 Assume FSR parameter is a pointer.
10535 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10536 Make fsr a pointer.
10537 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10538 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10539 saved_regs a pointer.
10540 (hppa_frame_saved_pc): Ditto.
10541 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10542 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10543 pointer.
10544 (restore_pc_queue): Make fsr a pointer.
10545 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10546 (hppa_frame_chain): Make saved_regs a pointer, call
10547 hppa_frame_init_saved_regs.
10548 * sparc-tdep.c: Include "gdb_assert.h".
10549 (sparc_frame_find_saved_regs): Replace internal_error with
10550 gdb_assert.
10551 * remote-vxsparc.c (vx_read_register): Delete reference to
10552 FRAME_FIND_SAVED_REGS.
10553 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10554 * gdbarch.h: Regenerate.
10555 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10556 (deprecated_get_frame_saved_regs): Delete declaration.
10557 (struct frame_saved_regs): Delete definition.
10558 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10559 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10560 (hppa_frame_find_saved_regs): Delete declaration.
10561 (FRAME_FIND_SAVED_REGS): Delete macro.
10562 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10563 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10564 FRAME_FIND_SAVED_REGS in comment.
10565
be41e9f4
AC
105662003-04-05 Andrew Cagney <cagney@redhat.com>
10567
10568 * frame.c (frame_func_unwind, get_frame_func): New functions.
10569 * frame.h (get_frame_func, frame_func_unwind): Declare.
10570 (struct frame_info): Add field "prev_func" for caching the
10571 previous frame's function address.
10572 * arm-tdep.c (arm_frameless_function_invocation): Combine
10573 get_pc_function_start and get_frame_pc into get_frame_func.
10574 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10575 (sh64_nofp_frame_init_saved_regs): Ditto.
10576 * s390-tdep.c (s390_function_start): Ditto.
10577 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10578 (rs6000_frameless_function_invocation): Ditto.
10579 (rs6000_frame_saved_pc): Ditto.
10580 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10581 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10582 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10583 (i386_frame_init_saved_regs): Ditto.
10584 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10585 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10586 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10587 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10588 * blockframe.c (frameless_look_for_prologue): Ditto.
10589
a01dd7cc
AC
105902003-04-05 Andrew Cagney <cagney@redhat.com>
10591
10592 * frame.c (legacy_get_prev_frame): Link prev to next at the
10593 function start. Update comments.
10594
5e5592e6
AC
105952003-04-05 Andrew Cagney <cagney@redhat.com>
10596
10597 * frame.c (get_frame_id): Update comment.
10598 (legacy_get_prev_frame): Update comment.
10599 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10600 * gdbarch.h: Regenerate.
10601 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10602 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10603
6fba5002
AC
106042003-04-05 Andrew Cagney <cagney@redhat.com>
10605
10606 * stack.c (print_frame_info): Use get_frame_pc.
10607
7df05f2b
AC
106082003-04-04 Andrew Cagney <cagney@redhat.com>
10609
10610 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10611 the frame's type from the unwinder.
10612 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10613 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10614 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10615 (get_frame_base_address): Use get_frame_type.
10616 (get_frame_locals_address, get_frame_args_address): Ditto.
10617 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10618 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10619 (struct frame_info): Add comment explaining why the frame contains
10620 a "type" field.
10621 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10622 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10623 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10624 NORMAL_FRAME.
10625 * frame-unwind.h: Include "frame.h".
10626 (struct frame_unwind): Add "type" field.
10627 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10628
11889732
AC
106292003-04-04 Andrew Cagney <cagney@redhat.com>
10630
10631 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10632 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10633 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10634 get_frame_base.
10635 (d10v_unwind_dummy_id): Use frame_id_build.
10636 * frame.c (find_frame_sal): Use get_frame_pc.
10637 (create_new_frame): Use deprecated_update_frame_pc_hack and
10638 deprecated_update_frame_base_hack.
10639 (create_sentinel_frame): Add comment about ->pc going away.
10640 (get_prev_frame): Add comment about ->pc going away.
10641 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10642 frame_id_build, deprecated_update_frame_pc_hack and
10643 deprecated_update_frame_base_hack.
10644 (select_frame): Use get_frame_pc.
10645 (legacy_saved_regs_this_id): Use frame_id_build.
10646
50c46a0d
EZ
106472003-04-04 Elena Zannoni <ezannoni@redhat.com>
10648
fbe586ae
RH
10649 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10650 signed integer case.
10651 (classify_argument): Handle enumerations and references.
50c46a0d 10652
50bbdbd9
AC
106532003-04-04 Andrew Cagney <cagney@redhat.com>
10654
10655 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10656 ID to NULL.
10657
36018d2e
AF
106582003-04-01 Adam Fedor <fedor@gnu.org>
10659
10660 * gdb/objc-lang.c (selectors_info): Replace calls to
10661 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10662 SYMBOL_NATURAL_NAME.
10663 (classes_info, find_methods): Likewise.
10664
35cec841
KB
106652003-04-03 Kevin Buettner <kevinb@redhat.com>
10666
10667 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10668 ``mach'' to the value determined by bfd_default_set_arch_mach().
10669
43136899
BR
106702003-04-02 Bob Rossi <bob_rossi@cox.net>
10671
10672 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10673 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10674 (mi-cmd-file.o): Update dependencies.
10675
040b99fd
KB
106762003-04-01 Kevin Buettner <kevinb@redhat.com>
10677
10678 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10679 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10680
9a3d7dfd
AF
106812003-04-01 Adam Fedor <fedor@gnu.org>
10682
10683 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10684 * language.h (struct language_defn): Add la_demangle.
10685 (language_demangle): Declare.
10686 * language.c (language_demangle): New function.
10687 (unk_lang_demangle): Likewise.
10688 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10689 Add ukn_lang_demangle.
9a3d7dfd 10690 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10691 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10692 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10693 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10694 * jv-lang.c (java_demangle): New function
10695 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10696 * objc-lang.c (objc_demangle): Add options argument
10697 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10698 * maint.c (maintenance_demangle): Replace switch with
10699 call to language_demangle.
10700 * utils.c (fprintf_symbol_filtered): Likewise.
10701
5e074003
AC
107022003-04-01 Andrew Cagney <cagney@redhat.com>
10703
10704 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10705 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10706 PRINT_TYPELESS_INTEGER.
10707 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10708 PUSH_RETURN_ADDRESS.
10709
270cb5d6
AC
107102003-04-01 Andrew Cagney <cagney@redhat.com>
10711
10712 * Makefile.in (d10v-tdep.o): Update dependencies.
10713 * d10v-tdep.c: Include "frame-base.h".
10714 (d10v_frame_unwind): Make constant.
10715 (d10v_frame_base_address): New function.
10716 (d10v_frame_base): New variable.
10717 (d10v_gdbarch_init): Set frame_base default.
10718 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10719 comment for base.
10720 (d10v_frame_unwind_cache): Set and use "prev_sp".
10721 (d10v_frame_this_id): Use the previous frame's inner most stack
10722 address and this frame's func address for the frame ID. Use
10723 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10724
6bfb3e36
AC
107252003-04-01 Andrew Cagney <cagney@redhat.com>
10726
10727 * frame.h (get_frame_locals_address, get_frame_args_address):
10728 Refer to the base address, instead of the address of the first
10729 local or parameter.
8ffd9b1b 10730
da62e633
AC
107312003-04-01 Andrew Cagney <cagney@redhat.com>
10732
10733 Add frame debug info addresses:
10734 * frame-base.c: New file.
10735 * frame-base.h: New file.
10736 * frame.h (struct frame_base): Add opaque declaration.
10737 (get_frame_base): Update comment.
10738 (get_frame_base_address): Declare.
10739 (get_frame_locals_address): Declare.
10740 (get_frame_args_address): Declare.
10741 (struct frame_info): Add "base" and "base_cache". Update
10742 comments on the unwinder.
10743 * frame.c: Include "frame-base.h".
10744 (get_frame_locals_address): New function.
10745 (get_frame_base_address): New function.
10746 (get_frame_args_address): New function.
10747 * findvar.c (read_var_value): Use get_frame_locals_address and
10748 get_frame_args_address.
10749 * stack.c (frame_info): Use get_frame_locals_address and
10750 get_frame_args_address.
10751 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10752 moved to "frame-base.c".
10753 * printcmd.c (print_frame_nameless_args): Ditto.
10754 * symtab.h (address_class): Update comments.
10755 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10756 get_frame_base_address.
10757 * dwarf2expr.c (execute_stack_op): Ditto.
10758 * Makefile.in (frame_base_h): Define.
10759 (frame.o): Update dependencies.
10760 (frame-base.o): Add dependencies.
10761 (SFILES): Add frame-base.c.
10762 (COMMON_OBS): Add frame-base.o.
10763
3d30e9c2
AC
107642003-04-01 Andrew Cagney <cagney@redhat.com>
10765
10766 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10767 CALL_DUMMY_LENGTH): Ditto.
10768 * gdbarch.c: Re-generate.
10769 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10770 (CALL_DUMMY_LENGTH): Delete macro.
10771 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10772 * arm-tdep.c (arm_gdbarch_init): Ditto.
10773 * avr-tdep.c (avr_gdbarch_init): Ditto.
10774 * cris-tdep.c (cris_gdbarch_init): Ditto.
10775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10776 * frv-tdep.c (frv_gdbarch_init): Ditto.
10777 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10778 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10779 * i386-tdep.c (i386_gdbarch_init): Ditto.
10780 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10782 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10783 * mips-tdep.c (mips_gdbarch_init): Ditto.
10784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10785 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10786 * s390-tdep.c (s390_gdbarch_init): Ditto.
10787 * sh-tdep.c (sh_gdbarch_init): Ditto.
10788 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10789 * v850-tdep.c (v850_gdbarch_init): Ditto.
10790 * vax-tdep.c (vax_gdbarch_init): Ditto.
10791 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10792
ce0c7262
CV
107932003-04-01 Corinna Vinschen <vinschen@redhat.com>
10794
10795 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10796
73dd234f
AC
107972003-04-01 Andrew Cagney <cagney@redhat.com>
10798
10799 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10800 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10801 * gdbarch.h, gdbarch.c: Re-generate.
10802 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10803 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10804 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10805 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10806 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10807 * infcmd.c (run_stack_dummy): Simplify assuming
10808 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10809 * infrun.c (handle_inferior_event): Ditto.
10810 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10811 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10812 * arm-tdep.c (arm_gdbarch_init): Ditto.
10813 * avr-tdep.c (avr_gdbarch_init): Ditto.
10814 * cris-tdep.c (cris_gdbarch_init): Ditto.
10815 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10816 * frv-tdep.c (frv_gdbarch_init): Ditto.
10817 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10818 * i386-tdep.c (i386_gdbarch_init): Ditto.
10819 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10821 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10822 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10823 * mips-tdep.c (mips_gdbarch_init): Ditto.
10824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10825 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10827 * s390-tdep.c (s390_gdbarch_init): Ditto.
10828 * sh-tdep.c (sh_gdbarch_init): Ditto.
10829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10830 * v850-tdep.c (v850_gdbarch_init): Ditto.
10831 * vax-tdep.c (vax_gdbarch_init): Ditto.
10832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10833
97606a13
DJ
108342003-04-01 Daniel Jacobowitz <drow@mvista.com>
10835
10836 * symfile.c (symfile_relocate_debug_section): Update call to
10837 bfd_simple_get_relocated_section_contents.
10838
e8ab51f7
AC
108392003-03-31 Andrew Cagney <cagney@redhat.com>
10840
10841 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10842 * gdbarch.h, gdbarch.c: Regenerate.
10843 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10844 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10845 available.
10846 * frame.h (generic_fix_call_dummy): Delete declaration.
10847 * dummy-frame.h: Update comment.
10848 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10850 fix_call_dummy.
10851 * sh-tdep.c (sh_gdbarch_init): Ditto.
10852 * s390-tdep.c (s390_gdbarch_init): Ditto.
10853 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10854 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10856 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10857 * i386-tdep.c (i386_gdbarch_init): Ditto.
10858 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10859 * frv-tdep.c (frv_gdbarch_init): Ditto.
10860 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10861 * cris-tdep.c (cris_gdbarch_init): Ditto.
10862 * avr-tdep.c (avr_gdbarch_init): Ditto.
10863 * arm-tdep.c (arm_gdbarch_init): Ditto.
10864
018d1b48
JB
108652003-03-31 J. Brobecker <brobecker@gnat.com>
10866
10867 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10868 (INIT_FRAME_AP): Likewise.
10869 (EXTRA_FRAME_INFO): Likewise.
10870
e9a2674e
AC
108712003-03-31 Andrew Cagney <cagney@redhat.com>
10872
10873 * gdbarch.sh: Include "symfile.h".
10874 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10875 * gdbarch.h, gdbarch.c: Re-generate.
10876 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10878 call_dummy_address, the default is at entry_point_address.
10879 * v850-tdep.c (v850_gdbarch_init): Ditto.
10880 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10881 * sh-tdep.c (sh_gdbarch_init): Ditto.
10882 * s390-tdep.c (s390_gdbarch_init): Ditto.
10883 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10885 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10886 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10887 * i386-tdep.c (i386_gdbarch_init): Ditto.
10888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10889 * frv-tdep.c (frv_gdbarch_init): Ditto.
10890 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10891 * cris-tdep.c (cris_gdbarch_init): Ditto.
10892 * arm-tdep.c (arm_gdbarch_init): Ditto.
10893
e8a8712a
AC
108942003-03-31 Andrew Cagney <cagney@redhat.com>
10895
10896 * gdbarch.sh (CALL_DUMMY_P): Delete.
10897 * gdbarch.h, gdbarch.c: Re-generate.
10898 * inferior.h (CALL_DUMMY_P): Delete macro.
10899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10900 * vax-tdep.c (vax_gdbarch_init): Update.
10901 * v850-tdep.c (v850_gdbarch_init): Update.
10902 * sparc-tdep.c (sparc_gdbarch_init): Update.
10903 * sh-tdep.c (sh_gdbarch_init): Update.
10904 * s390-tdep.c (s390_gdbarch_init): Update.
10905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10906 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10907 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10908 * mips-tdep.c (mips_gdbarch_init): Update.
10909 * mcore-tdep.c (mcore_gdbarch_init): Update.
10910 * m68k-tdep.c (m68k_gdbarch_init): Update.
10911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10912 * ia64-tdep.c (ia64_gdbarch_init): Update.
10913 * i386-tdep.c (i386_gdbarch_init): Update.
10914 * h8300-tdep.c (h8300_gdbarch_init): Update.
10915 * frv-tdep.c (frv_gdbarch_init): Update.
10916 * d10v-tdep.c (d10v_gdbarch_init): Update.
10917 * cris-tdep.c (cris_gdbarch_init): Update.
10918 * breakpoint.c (deprecated_frame_in_dummy): Update.
10919 * avr-tdep.c (avr_gdbarch_init): Update.
10920 * alpha-tdep.c (alpha_gdbarch_init): Update.
10921 * arm-tdep.c (arm_gdbarch_init): Update.
10922 * dummy-frame.c (dummy_frame_this_id): Update comments.
10923 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10924 * frame.c (legacy_get_prev_frame): Ditto.
10925 * valops.c (call_function_by_hand): Delete function.
10926 (hand_function_call): Rename to call_function_by_hand
10927
ed234cf8
AC
109282003-03-30 Andrew Cagney <cagney@redhat.com>
10929
10930 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10931 * value.h (struct value): Update comment.
ed234cf8 10932
06c77151
AC
109332003-03-30 Andrew Cagney <cagney@redhat.com>
10934
6c2b5168
AC
10935 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10936 D10V_FP_REGNUM.
10937 (d10v_gdbarch_init): Do not set fp_regnum.
10938
06c77151
AC
10939 * frame.c (get_frame_base): Force ID initialization.
10940 (get_prev_frame): Move computation of the frame ID from here ...
10941 (get_frame_id): ... to here.
10942 (legacy_get_prev_frame): Mark the frame ID as valid.
10943 * frame.h (struct frame_info): Add field "id_p".
10944
97a1a11c
MK
109452003-03-30 Mark Kettenis <kettenis@gnu.org>
10946
10947 * i386-tdep.c (i386_store_struct_return): Removed.
10948 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10949
6c0e89ed
AC
109502003-03-30 Andrew Cagney <cagney@redhat.com>
10951
10952 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10953 * gdbarch.h, gdbarch.c: Regenerate.
10954 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10956 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10957 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10958 * i386-tdep.c (i386_gdbarch_init): Ditto.
10959 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10960 * cris-tdep.c (cris_gdbarch_init): Ditto.
10961 * vax-tdep.c (vax_gdbarch_init): Ditto.
10962 * s390-tdep.c (s390_gdbarch_init): Ditto.
10963 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10964 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10965 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10966 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10967 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10968 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10969 * sparc-tdep.c (sparc_gdbarch_init): Update.
10970 * sh-tdep.c (sh_gdbarch_init): Update.
10971 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10972 * mips-tdep.c (mips_gdbarch_init): Update.
10973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10974 * ia64-tdep.c (ia64_gdbarch_init): Update.
10975 * frv-tdep.c (frv_gdbarch_init): Update.
10976 * avr-tdep.c (avr_gdbarch_init): Update.
10977 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10978 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10979 instead of when push_dummy_call is not available.
8ffd9b1b 10980
f7dd6af2
AC
109812003-03-30 Andrew Cagney <cagney@redhat.com>
10982
10983 * infttrace.c: Include "gdbthread.h".
10984 (parent_attach_all): Fix function signature.
10985 (call_ptrace): Update call.
10986 * Makefile.in (infttrace.o): Update dependencies.
10987
28f617b3
AC
109882003-03-30 Andrew Cagney <cagney@redhat.com>
10989
10990 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10991 PUSH_RETURN_ADDRESS.
10992 * gdbarch.h, gdbarch.c: Regenerate.
10993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10994 * x86-64-tdep.c (x86_64_init_abi): Update.
10995 * v850-tdep.c (v850_gdbarch_init): Update.
10996 * sparc-tdep.c (sparc_gdbarch_init): Update.
10997 * sh-tdep.c (sh_gdbarch_init): Update.
10998 * s390-tdep.c (s390_gdbarch_init): Update.
10999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11001 * mips-tdep.c (mips_gdbarch_init): Update.
11002 * mcore-tdep.c (mcore_gdbarch_init): Update.
11003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11004 * ia64-tdep.c (ia64_gdbarch_init): Update.
11005 * i386-tdep.c (i386_gdbarch_init): Update.
11006 * h8300-tdep.c (h8300_gdbarch_init): Update.
11007 * frv-tdep.c (frv_gdbarch_init): Update.
11008 * cris-tdep.c (cris_gdbarch_init): Update.
11009 * avr-tdep.c (avr_gdbarch_init): Update.
11010 * arm-tdep.c (arm_gdbarch_init): Update.
11011 * valops.c (hand_function_call): Update.
11012
4d628cd7
AC
110132003-03-29 Andrew Cagney <cagney@redhat.com>
11014
11015 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11016 sizeof_call_dummy_words.
11017 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11018 define.
11019 * gdbarch.h: Regenerate.
8ffd9b1b 11020
65e82032
AC
110212003-03-29 Andrew Cagney <cagney@redhat.com>
11022
11023 * infttrace.h: New file.
11024 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11025 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11026 (hpread_read_doc_function_type): Detect an initialized type1.
11027 (hpread_quick_traverse): Initialize mod_name_string.
11028 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11029 (som_solib_get_solib_by_pc): Declare.
11030 (so_lib_thread_start_addr): Declare.
11031 (no_shared_libraries): Declare.
11032 * somread.c (init_import_symbols): Make static. Add forward
11033 declaration.
11034 * config/pa/nm-hppah.h: Include "infttrace.h" for
11035 parent_attach_all.
11036 (hppa_insert_hw_watchpoint): Declare.
11037 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11038 * hppah-nat.c: Include "gdb_string.h".
11039 (parent_attach_all): Delete extern declaration, moved to
11040 "infttrace.h".
11041 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11042 int.
11043 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11044 * Makefile.in (infttrace_h): Define.
11045 (hpread.o): Update dependencies.
11046 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11047 * hppa-hpux-tdep.c: Include "gdb_string.h".
11048 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11049 * infrun.c (handle_inferior_event): Always initialize
11050 stepped_after_stopped_by_watchpoint. Add default and remove
11051 fallthrough in switch statement.
11052 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11053 parameter to int.
11054 (hppa_remove_hw_watchpoint): Ditto.
11055
2c3bbe77
AC
110562003-03-29 Andrew Cagney <cagney@redhat.com>
11057
11058 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11059 offset.
11060
2dd604e7
RE
110612003-03-29 Richard Earnshaw <rearnsha@arm.com>
11062
11063 * arm-tdep.c (arm_push_arguments): Delete.
11064 (struct stack_item): New type.
11065 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11066 (arm_store_struct_return): Delte.
11067 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11068 arm_push_arguments or arm_store_struct_return.
11069
e8933a55
AC
110702003-03-28 Andrew Cagney <cagney@redhat.com>
11071
11072 * Makefile.in (d10v-tdep.o): Update dependencies.
11073 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11074 * d10v-tdep.c: Include "remote.h".
11075 (target_resume_hook): Delete extern declaration.
11076 (target_wait_loop_hook): Ditto.
11077 (tdisassemble_command): Eliminate assignment in "if" conditional.
11078 (d10v_ts2_register_sim_regno): Eliminate call to
11079 legacy_register_sim_regno.
11080 (d10v_ts3_register_sim_regno): Ditto.
11081
6949171e
JJ
110822003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11083
11084 * thread.c: Reindented.
11085 * lin-lwp.c: Ditto.
11086 * linux-proc.c: Ditto.
11087
98c7071f
BR
110882003-03-28 Bob Rossi <bob_rossi@cox.net>
11089
fbe586ae 11090 * MAINTAINERS (write after approval): Add myself.
98c7071f 11091
5edc9ca6
TR
110922003-03-27 Theodore A. Roth <troth@openavr.org>
11093
11094 * objc-exp.y: Add missing semi-colons.
11095
378bfd1b
AC
110962003-03-27 Andrew Cagney <cagney@redhat.com>
11097
11098 * regcache.c (write_sp): Delete function and references.
11099 * inferior.h (write_sp): Delete declaration.
11100 * valops.c (hand_function_call): Replace write_sp with
11101 TARGET_WRITE_SP.
11102 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11103 (sparc_pop_frame): Ditto.
8ffd9b1b 11104
56056df7
AC
111052003-03-27 Andrew Cagney <cagney@redhat.com>
11106
11107 * NEWS: Mention removal of support for hppa*-*-bsd* and
11108 hppa*-*-osf* natives, and hppa*-*-pro* target.
11109 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11110 * config/pa/xm-pa.h: Obsolete file.
11111 * config/pa/xm-hppab.h: Obsolete file.
11112 * config/pa/nm-hppab.h: Obsolete file.
11113 * config/pa/tm-hppab.h: Obsolete file.
11114 * config/pa/tm-hppao.h: Obsolete file.
11115 * config/pa/nm-hppao.h: Obsolete file.
11116 * config/pa/tm-pro.h: Obsolete file.
11117 * config/pa/hppaosf.mt: Obsolete file.
11118 * config/pa/hppaosf.mh: Obsolete file.
11119 * config/pa/hppapro.mt: Obsolete file.
11120 * config/pa/hppabsd.mt: Obsolete file.
11121 * config/pa/hppabsd.mh: Obsolete file.
11122 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11123 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11124 hppa*-*-osf*.
11125
5873a88d
AC
111262003-03-27 Andrew Cagney <cagney@redhat.com>
11127
11128 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11129 push_arguments. Don't set push_return_address or write_sp.
11130 (d10v_push_dummy_call): Replace d10v_push_arguments.
11131 (d10v_push_return_address, d10v_write_sp): Delete function,
11132 handled by push_dummy_call.
11133
b81774d8
AC
111342003-03-26 Andrew Cagney <cagney@redhat.com>
11135
11136 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11137 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11138 regcache and dummy_addr parameters.
11139 * gdbarch.h, gdbarch.c: Re-generate.
11140 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11141 available; assume it will handle stack alignment and return
11142 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11143 legacy_push_arguments.
11144 (legacy_push_arguments): Rename default_push_arguments.
11145 * value.h (legacy_push_arguments): Rename default_push_arguments.
11146 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11147 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11148 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11149 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11150 * config/i386/tm-symmetry.h: Update.
11151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11152 * x86-64-tdep.c (x86_64_init_abi): Update.
11153 * v850-tdep.c (v850_gdbarch_init): Update.
11154 * sparc-tdep.c (sparc_gdbarch_init): Update.
11155 * sh-tdep.c (sh_gdbarch_init): Update.
11156 * s390-tdep.c (s390_gdbarch_init): Update.
11157 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11158 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11159 * mips-tdep.c (mips_gdbarch_init): Update.
11160 * mcore-tdep.c (mcore_gdbarch_init): Update.
11161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11162 * ia64-tdep.c (ia64_gdbarch_init): Update.
11163 * i386-tdep.c (i386_gdbarch_init): Update.
11164 * hppa-tdep.c (hppa_gdbarch_init): Update.
11165 * h8300-tdep.c (h8300_gdbarch_init): Update.
11166 * frv-tdep.c (frv_gdbarch_init): Update.
11167 * d10v-tdep.c (d10v_gdbarch_init): Update.
11168 * cris-tdep.c (cris_gdbarch_init): Update.
11169 * avr-tdep.c (avr_gdbarch_init): Update.
11170 * arm-tdep.c (arm_gdbarch_init): Update.
11171 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11172 * alpha-tdep.c (alpha_gdbarch_init): Update.
11173
f541410f
DJ
111742003-03-26 Daniel Jacobowitz <drow@mvista.com>
11175
11176 * signals/signals.c (do_target_signal_to_host): Correct realtime
11177 signal range test.
11178
69f567ae
DJ
111792003-03-26 Daniel Jacobowitz <drow@mvista.com>
11180
11181 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11182 (struct sal_chain, map_catch_names): Remove.
11183 (catch_exception_command_1): Don't call
11184 handle_gnu_4_16_catch_command.
11185
d5d14a5a
DJ
111862003-03-26 Daniel Jacobowitz <drow@mvista.com>
11187
11188 From Mark Dettinger <dettinge@de.ibm.com>:
11189 * dwarf2cfi.c (read_2u): Increment pointer by two.
11190
bdd73e22
DJ
111912003-03-26 Daniel Jacobowitz <drow@mvista.com>
11192
11193 * signals/signals.c: Fix typos in last change.
11194
960cb555
DJ
111952003-03-26 Daniel Jacobowitz <drow@mvista.com>
11196
11197 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11198 not already defined. Use __SIGRTMIN if available.
11199 (target_signal_from_host): Remove SIGRTMIN block.
11200 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11201 the signal is within the realtime range.
11202
f636b87d
AF
112032003-03-25 Adam Fedor <fedor@gnu.org>
11204
11205 * Makefile.in (infrun.o): Add $(language_h)
11206 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11207 for language specific trampolines.
11208 * language.h (struct language_defn): Add skip_trampoline.
11209 (skip_language_trampoline): Declare.
11210 * language.c (unk_lang_trampoline, skip_language_trampoline):
11211 New functions.
11212 (unknown_language_defn, auto_language_defn, local_language_defn):
11213 Add ukn_lang_trampoline.
11214 * ada-lang.c (ada_language_defn): Add NULL for language
11215 specific skip_trampoline.
11216 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11217 scm-lang.c: Likewise.
11218 * objc-lang.c (objc_skip_trampoline): New function.
11219 (objc_language_defn): Add objc_skip_trampoline.
11220
28f617b3 112212003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11222
11223 * frame.c (get_prev_frame): Delay validating a frame's ID -
11224 non-NULL, didn't go backwards - until an attempt to unwind it to
11225 the previous frame.
11226
f933a9c5
AC
112272003-03-25 Andrew Cagney <cagney@redhat.com>
11228
11229 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11230 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11231 * gdbarch.h, gdbarch.c: Re-generate.
11232 * config/sparc/tm-sparc.h
11233 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11234 * sparc-tdep.c (sparc_gdbarch_init): Set
11235 deprecated_extra_stack_alignment_needed.
11236 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11238 extra_stack_alignment_needed.
11239 * v850-tdep.c (v850_gdbarch_init): Ditto.
11240 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11241 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11242 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11243 * cris-tdep.c (cris_gdbarch_init): Ditto.
11244 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11246
4183d812
AC
112472003-03-25 Andrew Cagney <cagney@redhat.com>
11248
11249 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11250 STORE_STRUCT_RETURN.
11251 * gdbarch.h, gdbarch.c: Regenerate.
11252 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11253 (d10v_push_arguments): Set the struct return register.
11254 (d10v_gdbarch_init): Update.
11255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11256 * x86-64-tdep.c (x86_64_init_abi): Update.
11257 * vax-tdep.c (vax_gdbarch_init): Update.
11258 * v850-tdep.c (v850_gdbarch_init): Update.
11259 * sparc-tdep.c (sparc_gdbarch_init): Update.
11260 * sh-tdep.c (sh_gdbarch_init): Update.
11261 * s390-tdep.c (s390_gdbarch_init): Update.
11262 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11263 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11264 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11265 * mips-tdep.c (mips_gdbarch_init): Update.
11266 * mcore-tdep.c (mcore_gdbarch_init): Update.
11267 * m68k-tdep.c (m68k_gdbarch_init): Update.
11268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11269 * ia64-tdep.c (ia64_gdbarch_init): Update.
11270 * i386-tdep.c (i386_gdbarch_init): Update.
11271 * hppa-tdep.c (hppa_gdbarch_init): Update.
11272 * h8300-tdep.c (h8300_gdbarch_init): Update.
11273 * frv-tdep.c (frv_gdbarch_init): Update.
11274 * cris-tdep.c (cris_gdbarch_init): Update.
11275 * avr-tdep.c (avr_gdbarch_init): Update.
11276 * arm-tdep.c (arm_gdbarch_init): Update.
11277 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11278
1bf6d5cc
AC
112792003-03-25 Andrew Cagney <cagney@redhat.com>
11280
11281 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11282 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11283 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11284 * gdbarch.h, gdbarch.c: Regenerate.
11285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11286 call_dummy_stack_adjust_p.
11287 * vax-tdep.c (vax_gdbarch_init): Ditto.
11288 * v850-tdep.c (v850_gdbarch_init): Ditto.
11289 * sh-tdep.c (sh_gdbarch_init): Ditto.
11290 * s390-tdep.c (s390_gdbarch_init): Ditto.
11291 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11292 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11293 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11294 * mips-tdep.c (mips_gdbarch_init): Ditto.
11295 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11296 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11298 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11299 * i386-tdep.c (i386_gdbarch_init): Ditto.
11300 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11301 * frv-tdep.c (frv_gdbarch_init): Ditto.
11302 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11303 * cris-tdep.c (cris_gdbarch_init): Ditto.
11304 * avr-tdep.c (avr_gdbarch_init): Ditto.
11305 * arm-tdep.c (arm_gdbarch_init): Ditto.
11306 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11307 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11308 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11309 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11310 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11311 call_dummy_stack_adjust_p.
11312 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11313 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11314 * sparc-tdep.c (sparc32_push_arguments): Update.
11315 * valops.c (hand_function_call): Update.
11316
71c08af0
CV
113172003-03-25 Corinna Vinschen <vinschen@redhat.com>
11318
11319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11320 set_gdbarch_char_signed.
11321
30757f90
RE
113222003-03-25 Richard Earnshaw <rearnsha@arm.com>
11323
11324 PR cli/548
11325 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11326
03d48a7d
RE
113272003-03-25 Richard Earnshaw <rearnsha@arm.com>
11328
11329 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11330 (_initialize_arm_tdep): Don't set tm_print_insn.
11331
2cf6873c
AF
113322003-03-24 Adam Fedor <fedor@gnu.org>
11333
11334 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11335 * objc-lang.h: Add multiple inclusion protection.
11336 (start_msglist, add_msglist, end_msglist): Additional declarations.
11337
17c0759e
RE
113382003-03-24 Richard Earnshaw <rearnsha@arm.com>
11339
11340 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11341 value was renamed to ARM_FLOAT_SOFT_FPA.
11342
618ce49f
AC
113432003-03-23 Andrew Cagney <cagney@redhat.com>
11344
11345 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11346 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11347 * gdbarch.h, gdbarch.c: Regenerate.
11348 * valops.c (hand_function_call): Update.
11349 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11350 * frame.c (legacy_saved_regs_this_id): Update.
11351 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11352 * dummy-frame.h: Update.
11353 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11354 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11355 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11356 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11357 * config/m68k/tm-sun3.h: Update.
11358 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11360 * x86-64-tdep.c (x86_64_init_abi): Update.
11361 * vax-tdep.c (vax_gdbarch_init): Update.
11362 * v850-tdep.c (v850_gdbarch_init): Update.
11363 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11364 * sh-tdep.c (sh_gdbarch_init): Update.
11365 * s390-tdep.c (s390_gdbarch_init): Update.
11366 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11367 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11368 (frame_get_saved_regs): Update.
11369 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11370 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11371 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11372 * mips-tdep.c (mips_gdbarch_init): Update.
11373 * mcore-tdep.c (mcore_gdbarch_init): Update.
11374 * m68k-tdep.c (m68k_gdbarch_init): Update.
11375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11376 * ia64-tdep.c (ia64_gdbarch_init): Update.
11377 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11378 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11379 (i386_interix_back_one_frame): Update.
11380 * hppa-tdep.c (hppa_gdbarch_init): Update.
11381 (hppa_init_extra_frame_info): Update.
11382 * h8300-tdep.c (h8300_gdbarch_init): Update.
11383 * frv-tdep.c (frv_gdbarch_init): Update.
11384 * cris-tdep.c (cris_gdbarch_init): Update.
11385 * avr-tdep.c (avr_gdbarch_init): Update.
11386 * arm-tdep.c (arm_gdbarch_init): Update.
11387 * alpha-tdep.c (alpha_gdbarch_init): Update.
11388
fd50bc42
RE
113892003-03-22 Richard Earnshaw <rearnsha@arm.com>
11390
11391 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11392 (arm_get_fp_model): Declare.
11393 * arm-tdep.c (fp_model_strings): New string array.
11394 (arm_fp_model, current_fp_model): New variables.
11395 (arm_get_fp_model): New function.
11396 (arm_set_fp): New function.
11397 (set_fp_model_sfunc): New function.
11398 (show_fp_model): New function.
11399 (_initialize_arm_tdep): Add new command to set/show the FPU.
11400 (arm_extract_return_value): Use arm_get_fp_model.
11401 (arm_store_return_value): Likewise.
11402 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11403 to initialize the floating-point data types.
11404 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11405 model is FPA.
11406
26304000
RE
114072003-03-22 Richard Earnshaw <rearnsha@arm.com>
11408
11409 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11410 the current setting of each value.
11411 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11412 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11413 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11414 commands and add new version as subcommands of "set/show arm".
11415
afd7eef0
RE
114162003-03-22 Richard Earnshaw <rearnsha@arm.com>
11417
11418 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11419 (set_arm_command, show_arm_command): New functions.
11420 (_initialize_arm_tdep): Add them.
11421 (num_disassembly_options): Renamed from num_flavor_options.
11422 (valid_disassembly_styles): Renamed from valid_flavors.
11423 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11424 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11425 set_disassembly_flavor_sfunc.
11426 (set_disassembly_style): Renamed from set_disassembly_flavor.
11427 (arm_othernames): Updated.
11428 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11429 command. Add "set/show arm disassembly" commands. Deprecate
11430 "othernames" command.
11431
299a7944
RE
114322003-03-22 Richard Earnshaw <rearnsha@arm.com>
11433
11434 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11435 (arm-tdep.o): Depend on elf_arm_h.
11436
c1dac9e6
RE
114372003-03-22 Richard Earnshaw <rearnsha@arm.com>
11438
11439 * Makefile.in (coff_internal_h): Define.
11440 (arm-tdep.o): Update dependencies.
11441
2702d96c
RE
114422003-03-22 Richard Earnshaw <rearnsha@arm.com>
11443
11444 * arm-tdep.c (prologue_cache): Delete.
11445 (check_prologue_cache, save_prologue_cache): Delete.
11446 (arm_scan_prologue): Don't check or update the prologue_cache.
11447 (arm_gdb_arch_init): Don't initialize it.
11448 (_initialize_arm_tdep): Likewise.
11449
27d5d74b
SC
114502003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11451
11452 * MAINTAINERS (tui): Maintainer of tui code.
11453
1762d96d
CV
114542003-03-21 Corinna Vinschen <vinschen@redhat.com>
11455
11456 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11457 (i386-cygwin-tdep.o): Add dependencies.
11458 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11459 * i386-cygwin-tdep.c: New file.
11460 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11461 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11462
4c2e2391
AC
114632003-03-20 Andrew Cagney <cagney@redhat.com>
11464
f20d38b7
AC
11465 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11466 (handle_inferior_event): Remove code calling
11467 DYNAMIC_TRAMPOLINE_NEXTPC.
11468
0022b738
AC
11469 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11470 already has a full path.
11471
864dbc90
AC
11472 * main.c (gdb_main): Return 1.
11473 (captured_main): Call error to report an invalid interpreter.
11474
4c2e2391
AC
11475 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11476 * alpha-osf1-tdep.c: Include "gdb_string.h".
11477
5ef7553b
JB
114782003-03-19 J. Brobecker <brobecker@gnat.com>
11479
11480 Continuing work to convert the hppa targets to multiarch partial.
11481
11482 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11483 method, now that hppa_push_dummy_frame has a conformant prototype.
11484 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11485 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11486 for the switch to multiarch partial.
11487
7bde8967
KB
114882003-03-19 Kevin Buettner <kevinb@redhat.com>
11489
11490 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11491 when iss is issNull.
11492
b006a9e9
KB
114932003-03-18 Kevin Buettner <kevinb@redhat.com>
11494
11495 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11496 NUM_REGS bounds check.
11497
5e2e9765
KB
114982003-03-18 Kevin Buettner <kevinb@redhat.com>
11499
11500 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11501 * mips-tdep.c (gdb_assert.h): Include.
11502 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11503 (mips_register_name): Handle integer registers explicitly. Add
11504 bounds checking.
11505 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11506 (mips_lsi33k_reg_names): Don't list integer registers; they're
11507 handled by mips_register_name() now.
11508 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11509 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11510 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11511 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11512 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11513
a2867626
AC
115142003-03-18 Andrew Cagney <cagney@redhat.com>
11515
11516 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11517 a void pointer.
11518 * gdbtypes.h (print_scalar_formatted): Update declaration.
11519 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11520
06600e06
JB
115212003-03-18 J. Brobecker <brobecker@gnat.com>
11522
11523 * infrun.c (observer.h): Add #include.
11524 (normal_stop): Add call to observer_notify_normal_stop.
11525 * Makefile.in (infrun.o): Add dependency on observer.h.
11526
7daf4f5b
JB
115272003-03-18 J. Brobecker <brobecker@gnat.com>
11528
11529 Continuing work to convert the hppa targets to multiarch partial.
11530 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11531 parameter. Reformat comment.
11532 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11533 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11534 to match new profile.
11535
3371ccc0
JB
115362003-03-18 J. Brobecker <brobecker@gnat.com>
11537
11538 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11539 appear to be working in any case.
11540
4fbe891e
JB
115412003-03-18 J. Brobecker <brobecker@gnat.com>
11542
11543 * observer.c (observer_test_first_observer): New static variable.
11544 (observer_test_second_observer): Likewise.
11545 (observer_test_third_observer): Likewise.
11546 (observer_test_first_notification_function): New static function.
11547 (observer_test_second_notification_function): Likewise.
11548 (observer_test_third_notification_function): Likewise.
11549
a7ff40e7
JB
115502003-03-17 J. Brobecker <brobecker@gnat.com>
11551
11552 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11553 * somsolib.c (gdb_assert.h): Likewise.
11554 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11555 (somsolib.o): Likewise.
11556
26ca4152
AC
115572003-03-17 Andrew Cagney <cagney@redhat.com>
11558
11559 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11560 BFD. Simplify setting of di.endian.
11561
0a613259
AC
115622003-03-17 Andrew Cagney <cagney@redhat.com>
11563
11564 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11565 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11566
11567 From Elena Zannoni <ezannoni@redhat.com>
11568 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11569 vector and floating-point parameters.
11570 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11571 convention.
11572 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11573
1132738f
FN
115742003-03-17 Fernando Nasser <fnasser@redhat.com>
11575
11576 * MAINTAINERS: Remove my name from several maintainership roles.
11577
6dc42492
AC
115782003-03-17 Andrew Cagney <cagney@redhat.com>
11579
11580 Fix frame off-by-one bug.
11581 * frame-unwind.h (frame_this_id_ftype): Replace
11582 frame_unwind_id_ftype.
11583 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11584 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11585 with "prev_register".
11586 * frame-unwind.c (frame_unwind_find_by_pc): Return
11587 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11588 comment.
11589 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11590 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11591 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11592 (dummy_frame_unwind): Update.
11593 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11594 sentinel_frame_register_unwind.
11595 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11596 (sentinel_frame_unwinder): Update.
11597 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11598 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11599 * frame.c (create_sentinel_frame): Update. Initialize
11600 "prologue_cache" instead of "unwind_cache".
11601 (frame_register_unwind): Call this frame's prev_register with the
11602 next frame and this frame's prologue cache.
11603 (get_prev_frame): Simplify. Always call prev frame's this_id with
11604 this frame and prev frame's prologue cache. Document that this
11605 call is shifted one to the left when compared to the
11606 frame_register_unwind call.
11607 (legacy_saved_regs_prev_register): Replace
11608 frame_saved_regs_register_unwind.
11609 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11610 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11611 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11612 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11613 (d10v_frame_unwind): Update.
11614 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11615 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11616 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11617 "saved_regs" with "this_saved_regs".
11618
efd710d6
AC
116192003-03-16 Andrew Cagney <cagney@redhat.com>
11620
11621 * frame.c (frame_pop): Don't call target_store_registers. Fix
11622 problem reported by Mark Kettenis.
11623
4e259f09
MK
116242003-03-16 Mark Kettenis <kettenis@gnu.org>
11625
11626 * i386-tdep.c (i386_register_type): Renamed from
11627 i386_register_virtual_type. Adjust function signature.
11628 (i386_gdbarch_init): Set register_type instead of
11629 deprecated_max_register_raw_size,
11630 deprecated_max_register_virtual_size and register_virtual_type.
11631
055bb976
AC
116322003-03-14 Andrew Cagney <cagney@redhat.com>
11633
11634 * frame.c (get_prev_frame): When a legacy frame, always call
11635 legacy_get_prev_frame. Simplify unwind code using assumption that
11636 the unwinder is new.
11637 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11638 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11639 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11640
ac2adee5
AC
116412003-03-14 Andrew Cagney <cagney@redhat.com>
11642
11643 * frame.c (get_saved_register): Delete function.
11644 * frame.h (get_saved_register): Delete declaration.
11645 * xstormy16-tdep.c: Update comment.
11646 * regcache.h: Update comments.
11647 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11648 get_saved_register and extract_address, use
11649 frame_read_unsigned_register.
11650 (sparc_frame_saved_pc): Ditto.
11651 (sparc_get_saved_register): Instead of get_saved_register, use
11652 frame_register.
11653 (sparc_pop_frame): Ditto.
11654 * findvar.c: Update comments.
11655 (value_of_register): Call frame_register instead of
11656 get_saved_register.
11657 (value_from_register): Ditto.
11658 * config/sparc/tm-sparc.h: Update comment.
11659 * breakpoint.c: Update comment.
11660
129c1cd6
AC
116612003-03-14 Andrew Cagney <cagney@redhat.com>
11662
11663 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11664 GET_SAVED_REGISTER.
11665 * gdbarch.h, gdbarch.c: Re-generate.
11666 * frame.h: Update comments.
11667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11668 * x86-64-tdep.c (x86_64_init_abi): Update.
11669 * sparc-tdep.c (sparc_gdbarch_init): Update.
11670 * sh-tdep.c (sh_gdbarch_init): Update.
11671 * mips-tdep.c (mips_gdbarch_init): Update.
11672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11673 * cris-tdep.c (cris_gdbarch_init): Update.
11674 * ia64-tdep.c (ia64_gdbarch_init): Update.
11675 * frame.c (frame_register): Update.
11676 (get_saved_register): Update.
11677 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11678
749b82f6
AC
116792003-03-13 Andrew Cagney <cagney@redhat.com>
11680
11681 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11682 * gdbarch.h, gdbarch.c: Regenerate.
11683 * valops.c (hand_function_call): Update comment.
11684 * stack.c (return_command): Update comment.
11685 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11686 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11688 * x86-64-tdep.c (x86_64_init_abi): Update.
11689 * vax-tdep.c (vax_gdbarch_init): Update.
11690 * v850-tdep.c (v850_gdbarch_init): Update.
11691 * sparc-tdep.c (sparc_gdbarch_init): Update.
11692 * sh-tdep.c (sh_gdbarch_init): Update.
11693 * s390-tdep.c (s390_gdbarch_init): Update.
11694 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11695 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11696 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11697 * mips-tdep.c (mips_gdbarch_init): Update.
11698 * mcore-tdep.c (mcore_gdbarch_init): Update.
11699 * m68k-tdep.c (m68k_gdbarch_init): Update.
11700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11701 * ia64-tdep.c (ia64_gdbarch_init): Update.
11702 * i386-tdep.c (i386_gdbarch_init): Update.
11703 * hppa-tdep.c (hppa_gdbarch_init): Update.
11704 * h8300-tdep.c (h8300_gdbarch_init): Update.
11705 * frv-tdep.c (frv_gdbarch_init): Update.
11706 * cris-tdep.c (cris_gdbarch_init): Update.
11707 * avr-tdep.c (avr_gdbarch_init): Update.
11708 * arm-tdep.c (arm_gdbarch_init): Update.
11709 * alpha-tdep.c (alpha_gdbarch_init): Update.
11710
1594fa56
AC
117112003-03-13 Andrew Cagney <cagney@redhat.com>
11712
11713 * frame.c (legacy_frame_p): New function.
11714 (get_prev_frame): Use legacy_frame_p.
11715 * frame.h (legacy_frame_p): Declare.
11716
7717fda3
V
117172003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11718
fbe586ae 11719 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11720 listing corrected.
11721
0c67cbe9
V
117222003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11723
fbe586ae 11724 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11725
03febf99
AC
117262003-03-12 Andrew Cagney <cagney@redhat.com>
11727
11728 * frame.c (get_prev_frame): Rename the frame parameter to
11729 "this_frame".
11730 (get_next_frame, legacy_get_prev_frame): Ditto.
11731
0a1e1ca1
AC
117322003-03-12 Andrew Cagney <cagney@redhat.com>
11733
11734 * frame.c (get_current_frame): Check target_has_registers before
11735 checking target_has_stack.
11736 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11737 instead of deprecated_selected_frame.
11738 * findvar.c (value_of_register): Pass "frame", not
11739 deprecated_selected_frame, to value_of_builtin_reg.
11740
a66a9c23
AC
117412003-03-12 Andrew Cagney <cagney@redhat.com>
11742
11743 * regcache.c (regcache_cooked_write_signed): New function.
11744 (regcache_cooked_write_unsigned): New function.
11745 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11746 (regcache_cooked_read_signed): Fix regnum in range assertion.
11747 * regcache.h (regcache_cooked_write_signed): Declare.
11748 (regcache_cooked_write_unsigned): Declare.
11749
8bedc050
AC
117502003-03-12 Andrew Cagney <cagney@redhat.com>
11751
11752 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11753 * gdbarch.h, gdbarch.c: Re-generate.
11754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11755 * x86-64-tdep.h: Update.
11756 * x86-64-tdep.c (x86_64_init_abi): Update.
11757 * v850-tdep.c (v850_gdbarch_init): Update.
11758 * sparc-tdep.c (sparc_gdbarch_init): Update.
11759 * sh-tdep.c (sh_gdbarch_init): Update.
11760 * s390-tdep.c (s390_gdbarch_init): Update.
11761 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11762 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11763 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11764 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11765 * mips-tdep.c (mips_gdbarch_init): Update.
11766 * mcore-tdep.c (mcore_gdbarch_init): Update.
11767 * m68k-tdep.c (m68k_gdbarch_init): Update.
11768 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11769 * ia64-tdep.c (ia64_gdbarch_init): Update.
11770 * i386-tdep.c (i386_gdbarch_init): Update.
11771 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11772 * hppa-tdep.c (hppa_gdbarch_init): Update.
11773 * h8300-tdep.c (h8300_gdbarch_init): Update.
11774 * frv-tdep.c (frv_gdbarch_init): Update.
11775 * cris-tdep.c (cris_gdbarch_init): Update.
11776 * avr-tdep.c (avr_gdbarch_init): Update.
11777 * arm-tdep.c (arm_gdbarch_init): Update.
11778 * alpha-tdep.c (alpha_gdbarch_init): Update.
11779 * sh-tdep.c (sh_init_extra_frame_info): Update.
11780 (sh64_init_extra_frame_info): Update.
11781 * ns32knbsd-nat.c (frame_num_args): Update.
11782 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11783 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11784 (xstormy16_frame_chain_valid): Update.
11785 * vax-tdep.c (vax_saved_pc_after_call): Update.
11786 * v850-tdep.c (v850_frame_chain): Update.
11787 (v850_pop_frame): Update.
11788 (v850_init_extra_frame_info): Update.
11789 * sparc-tdep.c (setup_arbitrary_frame): Update.
11790 * ns32k-tdep.c (umax_frame_num_args): Update.
11791 * s390-tdep.c (s390_pop_frame_regular): Update.
11792 * mn10300-tdep.c (mn10300_frame_chain): Update.
11793 (mn10300_pop_frame_regular): Update.
11794 (mn10300_init_extra_frame_info): Update.
11795 * mips-tdep.c (mips_init_frame_pc_first): Update.
11796 (mips_frame_chain): Update.
11797 (mips_pop_frame): Update.
11798 * mcore-tdep.c (mcore_frame_chain): Update.
11799 (mcore_pop_frame): Update.
11800 (mcore_init_extra_frame_info): Update.
11801 * arch-utils.c (init_frame_pc_default): Update.
11802 * m68k-tdep.c (isi_frame_num_args): Update.
11803 (delta68_frame_num_args): Update.
11804 (news_frame_num_args): Update.
11805 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11806 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11807 (alpha_frame_chain): Update.
11808 (alpha_pop_frame): Update.
11809 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11810 (hppa_init_extra_frame_info): Update.
11811 (hppa_frame_chain): Update.
11812 (hppa_frame_chain_valid): Update.
11813 * cris-tdep.c (cris_init_extra_frame_info): Update.
11814 * avr-tdep.c (avr_init_extra_frame_info): Update.
11815 * arm-tdep.c (arm_frame_chain_valid): Update.
11816 (arm_init_extra_frame_info): Update.
11817 (arm_pop_frame): Update.
11818 * frame.c (frame_pc_unwind): Update.
11819 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11820 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11821 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11822 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11823 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11824 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11825
7a25a7c1
AC
118262003-03-12 Andrew Cagney <cagney@redhat.com>
11827
11828 Eliminate the need for POP_FRAME.
11829 * frame.c (do_frame_unwind_register): New function.
11830 (frame_pop): When no POP_FRAME, pop the frame using register
11831 unwind and a scratch regcache.
11832 (frame_saved_regs_pop): Delete function.
11833 (trad_frame_unwinder): Update.
11834 * d10v-tdep.c (d10v_frame_pop): Delete function.
11835 (d10v_frame_unwind): Update.
11836 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11837 (sentinel_frame_unwinder): Update.
11838 * dummy-frame.c (dummy_frame_pop): Delete function.
11839 (dummy_frame_unwind): Update.
11840 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11841 (struct frame_unwind): Update.
11842
2f38ef89
KB
118432003-03-11 Kevin Buettner <kevinb@redhat.com>
11844
11845 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11846 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11847 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11848 Do range checks on register number obtained from debugging info.
11849 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11850 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11851 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11852 mapping function.
11853 (do_fp_register_row): Fix typo which caused double type to be
11854 used when attempting to unpack a float.
11855
552f4abf
JB
118562003-03-11 J. Brobecker <brobecker@gnat.com>
11857
11858 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11859
e0d2ae16
AC
118602003-03-11 Andrew Cagney <cagney@redhat.com>
11861
11862 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11863 frame. Problem found by Corinna Vinschen.
11864
ddbfdd06
PM
118652003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11866
11867 * doublest.c (floatformat_from_length): Accept also
11868 the real size of 'long double' type.
11869
088b2ddc 118702003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11871
088b2ddc 11872 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11873 * breakpoint.c (bpstat_copy): Copy the command lines as well
11874 as the old value, to match what is freed in bpstat_clear.
11875
f56f77c1
DC
118762003-03-10 David Carlton <carlton@math.stanford.edu>
11877
11878 * minsyms.c (add_minsym_to_hash_table): Replace
11879 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11880 (compare_minimal_symbols, compact_minimal_symbols)
11881 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11882 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11883 of DEPRECATED_SYMBOL_MATCHES_NAME.
11884 (lookup_minimal_symbol_solib_trampoline): Ditto.
11885
5602984a
AC
118862003-03-10 Andrew Cagney <cagney@redhat.com>
11887
11888 * regcache.h (regcache_cooked_read_ftype): Define.
11889 (regcache_save, regcache_restore): Add a cooked_read parameter.
11890 * regcache.c (regcache_save, regcache_restore): Update.
11891 (do_cooked_read): New function.
11892 (regcache_cpy): Pass do_cooked_read to regcache_save and
11893 regcache_restore.
11894
8bedc050
AC
118952003-03-10 Andrew Cagney <cagney@redhat.com>
11896
11897 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11898 * gdbarch.h, gdbarch.c: Re-generate.
11899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11900 * x86-64-tdep.h: Update.
11901 * x86-64-tdep.c (x86_64_init_abi): Update.
11902 * v850-tdep.c (v850_gdbarch_init): Update.
11903 * sparc-tdep.c (sparc_gdbarch_init): Update.
11904 * sh-tdep.c (sh_gdbarch_init): Update.
11905 * s390-tdep.c (s390_gdbarch_init): Update.
11906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11907 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11908 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11909 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11910 * mips-tdep.c (mips_gdbarch_init): Update.
11911 * mcore-tdep.c (mcore_gdbarch_init): Update.
11912 * m68k-tdep.c (m68k_gdbarch_init): Update.
11913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11914 * ia64-tdep.c (ia64_gdbarch_init): Update.
11915 * i386-tdep.c (i386_gdbarch_init): Update.
11916 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11917 * hppa-tdep.c (hppa_gdbarch_init): Update.
11918 * h8300-tdep.c (h8300_gdbarch_init): Update.
11919 * frv-tdep.c (frv_gdbarch_init): Update.
11920 * cris-tdep.c (cris_gdbarch_init): Update.
11921 * avr-tdep.c (avr_gdbarch_init): Update.
11922 * arm-tdep.c (arm_gdbarch_init): Update.
11923 * alpha-tdep.c (alpha_gdbarch_init): Update.
11924 * sh-tdep.c (sh_init_extra_frame_info): Update.
11925 (sh64_init_extra_frame_info): Update.
11926 * ns32knbsd-nat.c (frame_num_args): Update.
11927 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11928 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11929 (xstormy16_frame_chain_valid): Update.
11930 * vax-tdep.c (vax_saved_pc_after_call): Update.
11931 * v850-tdep.c (v850_frame_chain): Update.
11932 (v850_pop_frame): Update.
11933 (v850_init_extra_frame_info): Update.
11934 * sparc-tdep.c (setup_arbitrary_frame): Update.
11935 * ns32k-tdep.c (umax_frame_num_args): Update.
11936 * s390-tdep.c (s390_pop_frame_regular): Update.
11937 * mn10300-tdep.c (mn10300_frame_chain): Update.
11938 (mn10300_pop_frame_regular): Update.
11939 (mn10300_init_extra_frame_info): Update.
11940 * mips-tdep.c (mips_init_frame_pc_first): Update.
11941 (mips_frame_chain): Update.
11942 (mips_pop_frame): Update.
11943 * mcore-tdep.c (mcore_frame_chain): Update.
11944 (mcore_pop_frame): Update.
11945 (mcore_init_extra_frame_info): Update.
11946 * arch-utils.c (init_frame_pc_default): Update.
11947 * m68k-tdep.c (isi_frame_num_args): Update.
11948 (delta68_frame_num_args): Update.
11949 (news_frame_num_args): Update.
11950 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11951 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11952 (alpha_frame_chain): Update.
11953 (alpha_pop_frame): Update.
11954 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11955 (hppa_init_extra_frame_info): Update.
11956 (hppa_frame_chain): Update.
11957 (hppa_frame_chain_valid): Update.
11958 * cris-tdep.c (cris_init_extra_frame_info): Update.
11959 * avr-tdep.c (avr_init_extra_frame_info): Update.
11960 * arm-tdep.c (arm_frame_chain_valid): Update.
11961 (arm_init_extra_frame_info): Update.
11962 (arm_pop_frame): Update.
11963 * frame.c (frame_pc_unwind): Update.
11964 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11965 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11966 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11967 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11968 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11969 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11970
12cc2063
AC
119712003-03-10 Andrew Cagney <cagney@redhat.com>
11972
11973 * gdbarch.sh (gdbarch_unwind_pc): New method.
11974 * gdbarch.h, gdbarch.c: Regenerate.
11975 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11976 but use read_pc and FRAME_SAVED_PC as fall backs.
11977 (frame_saved_regs_pc_unwind): Delete function.
11978 (trad_frame_unwinder): Update.
11979 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11980 (struct frame_unwind): Update.
11981 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11982 (dummy_frame_unwind): Update.
11983 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11984 (sentinel_frame_unwinder): Update.
11985 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11986 (d10v_frame_unwind): Update.
11987 (d10v_unwind_pc): New function.
11988 (d10v_gdbarch_init): Set unwind_pc.
11989
ef840a37
AC
119902003-03-10 Andrew Cagney <cagney@redhat.com>
11991
a2ce2e56
AC
11992 * gdbarch.h: Re-generate.
11993
ef840a37
AC
11994 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11995 PC.
11996 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11997 the PC register.
11998
08f3424b
MK
119992003-03-08 Mark Kettenis <kettenis@gnu.org>
12000
12001 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12002
1248ede2
AC
120032003-03-08 Andrew Cagney <cagney@redhat.com>
12004
12005 * cli-out.c: Update copyright.
12006 (cli_out_data): Define typedef. Use instead of ui_out_data.
12007
f49bacc8
AC
120082003-03-08 Andrew Cagney <cagney@redhat.com>
12009
12010 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12011 the result.
12012
9b05f993
AC
120132003-03-07 Andrew Cagney <cagney@redhat.com>
12014
12015 * gdbarch.sh: Don't generate two macro definitions when an
12016 undefined macro taking no arguments.
12017 * gdbarch.h: Regenerate.
8ffd9b1b 12018
166f4c7b
ML
120192002-03-07 Michal Ludvig <mludvig@suse.cz>
12020
12021 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12022 (x86_64_unwind_dummy_id): New functions.
12023 (x86_64_init_abi): Register these two new functions.
12024
6d686a84
ML
120252003-03-07 Michal Ludvig <mludvig@suse.cz>
12026
12027 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12028 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12029 separate function.
12030 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12031
6314f104
AC
120322003-03-05 Andrew Cagney <cagney@redhat.com>
12033
12034 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12035 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12036 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12037 to use unwind_dummy_id when a dummy frame.
12038 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12039 predicate.
12040 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12041
ceea5145
AC
120422003-03-05 Andrew Cagney <cagney@redhat.com>
12043
12044 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12045 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12046 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12047 values.
12048
0d843116
AC
120492003-03-05 Andrew Cagney <cagney@redhat.com>
12050
12051 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12052 (struct d10v_unwind_cache): Delete field "frameless". Replace
12053 "next_addr" with "sp_offset". Add "r11_offset".
12054 (d10v_frame_unwind_cache): Update.
12055 (prologue_find_regs): Update. When "mv r11, sp", save the
12056 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12057 RN was saved in r11_offset.
12058
b2579786
AC
120592003-03-05 Andrew Cagney <cagney@redhat.com>
12060
12061 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12062 cached PC value in the next frame.
12063
218e5956
AC
120642003-03-05 Andrew Cagney <cagney@redhat.com>
12065
12066 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12067 "id_unwind_cache" with "id".
12068 (frame_id_unwind): Delete declaration.
12069 * frame.c (frame_id_unwind): Delete function.
12070 (get_prev_frame): Call the frame id unwind method directly. Store
12071 the returned next frame's ID value in NEXT_FRAME. Note that there
12072 is a problem with the wrong unwind ID being called with the wrong
12073 unwind cache.
12074
ed363b1b
DJ
120752003-03-05 Daniel Jacobowitz <drow@mvista.com>
12076
12077 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12078
fe1f4a5e
DJ
120792003-03-05 James Ingham <jingham@apple.com>
12080 Daniel Jacobowitz <drow@mvista.com>
12081
12082 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12083 (auto_cp_abi): New variable.
12084 (current_cp_abi, num_cp_abis): Make static.
12085 (CP_ABI_MAX): Define.
12086 (cp_abis): Turn into an array.
12087 (value_virtual_fn_field): Fix formatting.
12088 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12089 takes a pointer.
12090 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12091 (list_cp_abis, _initialize_cp_abi): New functions.
12092 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12093 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12094 switch_to_cp_abi. Update prototype for register_cp_abi.
12095 * Makefile.in (cp-abi.o): Update dependencies.
12096 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12097 instead of switch_to_cp_abi.
12098 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12099 register_cp_abi.
12100 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12101 register_cp_abi.
12102 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12103
e4adbba9
DJ
121042003-03-05 Daniel Jacobowitz <drow@mvista.com>
12105
12106 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12107 * dwarf2loc.c: Include "regcache.h".
12108 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12109 register_size.
12110 * Makefile.in (dwarf2loc.o): Update dependencies.
12111
91ccbfc1
TR
121122003-03-04 Theodore A. Roth <troth@openavr.org>
12113
12114 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12115 number of io registers reported by remote target is not a multiple of
12116 step.
12117
3d4e8fd2
DC
121182003-03-04 David Carlton <carlton@math.stanford.edu>
12119
12120 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12121 (lookup_symbol_aux_psymtabs): Update call to
12122 lookup_partial_symbol.
12123 (lookup_transparent_type, find_main_psymtab)
12124 (make_symbol_overload_list): Ditto.
12125
ed42d87b
KH
121262003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12127
12128 * MAINTAINERS (Write after approval): Update my email address.
12129
a0ed5532
AC
121302003-03-03 Andrew Cagney <cagney@redhat.com>
12131
12132 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12133 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12134 predicate. Replace MAX_REGISTER_RAW_SIZE.
12135 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12136 MAX_REGISTER_VIRTUAL_SIZE.
12137 * regcache.c (legacy_max_register_raw_size): New function.
12138 (legacy_max_register_virtual_size): New function.
12139 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12140 (MAX_REGISTER_RAW_SIZE): Define.
12141 (legacy_max_register_raw_size): Declare.
12142 (legacy_max_register_virtual_size): Declare.
12143 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12144 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12145 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12146 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12147 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12148 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12149 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12150 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12151 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12153 * vax-tdep.c (vax_gdbarch_init): Update.
12154 * v850-tdep.c (v850_gdbarch_init): Update.
12155 * sparc-tdep.c (sparc_gdbarch_init): Update.
12156 * sh-tdep.c (sh_gdbarch_init): Update.
12157 * s390-tdep.c (s390_gdbarch_init): Update.
12158 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12159 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12160 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12161 * mips-tdep.c (mips_gdbarch_init): Update.
12162 * mcore-tdep.c (mcore_gdbarch_init): Update.
12163 * m68k-tdep.c (m68k_gdbarch_init): Update.
12164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12165 * ia64-tdep.c (ia64_gdbarch_init): Update.
12166 * i386-tdep.c (i386_gdbarch_init): Update.
12167 * hppa-tdep.c (hppa_gdbarch_init): Update.
12168 * h8300-tdep.c (h8300_gdbarch_init): Update.
12169 * frv-tdep.c (frv_gdbarch_init): Update.
12170 * cris-tdep.c (cris_gdbarch_init): Update.
12171 * avr-tdep.c (avr_gdbarch_init): Update.
12172 * arm-tdep.c (arm_gdbarch_init): Update.
12173 * alpha-tdep.c (alpha_gdbarch_init): Update.
12174 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12175 max_register_raw_size or max_register_virtual_size.
12176
8e437497
DC
121772003-03-03 David Carlton <carlton@math.stanford.edu>
12178
12179 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12180 SYMBOL_MATCHES_NAME, add comment.
12181 (SYMBOL_MATCHES_NATURAL_NAME): New.
12182 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12183 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12184 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12185 * symtab.c (lookup_partial_symbol): Use
12186 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12187 unhelpful comment.
12188 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12189 SYMBOL_MATCHES_NAME.
12190 Fix for PR c++/33.
12191
25120b0d
DC
121922003-03-03 David Carlton <carlton@math.stanford.edu>
12193
12194 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12195 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12196 by regexp matching against SYMBOL_NATURAL_NAME.
12197
78a11fb4
DC
121982003-03-03 David Carlton <carlton@math.stanford.edu>
12199
12200 * linespec.c (find_method): Extract code into collect_methods.
12201 (collect_methods): New.
12202
645dd519
MK
122032003-03-02 Mark Kettenis <kettenis@gnu.org>
12204
b4700d91
MK
12205 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12206 get_frame_base.
12207
645dd519
MK
12208 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12209 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12210
0aa7e1aa
SC
122112003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12212
8ffd9b1b 12213 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12214 and not regnum when summing the size of all registers up to regnum.
12215
f30ee0bc
AC
122162003-03-01 Andrew Cagney <cagney@redhat.com>
12217
12218 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12219 FRAME_INIT_SAVED_REGS.
12220 * gdbarch.h, gdbarch.c: Regenerate.
12221 * stack.c (frame_info): Update.
12222 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12223 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12224 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12225 * ns32k-tdep.c (ns32k_pop_frame): Update.
12226 * mips-tdep.c (mips_pop_frame): Update.
12227 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12228 * ia64-tdep.c (ia64_frame_chain): Update.
12229 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12230 (ia64_frameless_function_invocation): Update.
12231 (ia64_init_extra_frame_info): Update.
12232 (ia64_pop_frame_regular): Update.
12233 * frame.h (struct frame_info): Update comment.
12234 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12235 * frame.c (frame_saved_regs_register_unwind): Update.
12236 (frame_saved_regs_register_unwind): Update.
12237 (deprecated_generic_get_saved_register): Update.
12238 * cris-tdep.c: Update comment.
12239 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12240 Rename macro.
12241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12242 * x86-64-tdep.c (x86_64_init_abi): Update.
12243 * vax-tdep.c (vax_gdbarch_init): Update.
12244 * v850-tdep.c (v850_gdbarch_init): Update.
12245 * sparc-tdep.c (sparc_gdbarch_init): Update.
12246 * sh-tdep.c (sh_gdbarch_init): Update.
12247 * s390-tdep.c (s390_gdbarch_init): Update.
12248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12249 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12250 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12251 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12252 * mips-tdep.c (mips_gdbarch_init): Update.
12253 * mcore-tdep.c (mcore_gdbarch_init): Update.
12254 * m68k-tdep.c (m68k_gdbarch_init): Update.
12255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12256 * ia64-tdep.c (ia64_gdbarch_init): Update.
12257 * i386-tdep.c (i386_gdbarch_init): Update.
12258 * frv-tdep.c (frv_gdbarch_init): Update.
12259 * avr-tdep.c (avr_gdbarch_init): Update.
12260 * arm-tdep.c (arm_gdbarch_init): Update.
12261 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12262
42fa7c0f
AC
122632003-03-01 Andrew Cagney <cagney@redhat.com>
12264
12265 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12266 option enum and switch. When no windows, set the interpreter to
12267 INTERP_CONSOLE.
8ffd9b1b 12268
49c7e338
AC
122692003-03-01 Andrew Cagney <cagney@redhat.com>
12270
12271 * main.c (captured_main): Replace magic option characters with an
12272 enum.
12273
e9582e71
AC
122742003-03-01 Andrew Cagney <cagney@redhat.com>
12275
12276 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12277 INIT_EXTRA_FRAME_INFO.
12278 * gdbarch.h, gdbarch.c: Regenerate.
12279 * arm-tdep.c: Update comments.
12280 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12281 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12282 * frame.h, avr-tdep.c: Ditto.
12283 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12284 (create_new_frame, legacy_get_prev_frame): Ditto.
12285 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12286 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12288 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12289 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12290 * v850-tdep.c (v850_gdbarch_init): Ditto.
12291 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12292 * sh-tdep.c (sh_gdbarch_init): Ditto.
12293 * s390-tdep.c (s390_gdbarch_init): Ditto.
12294 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12295 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12296 * mips-tdep.c (mips_gdbarch_init): Ditto.
12297 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12299 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12300 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12301 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12302 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12303 * frv-tdep.c (frv_gdbarch_init): Ditto.
12304 * cris-tdep.c (cris_gdbarch_init): Ditto.
12305 * avr-tdep.c (avr_gdbarch_init): Ditto.
12306 * arm-tdep.c (arm_gdbarch_init): Ditto.
12307 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12308 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12309
35cac7cf
AC
123102003-03-01 Andrew Cagney <cagney@redhat.com>
12311
12312 * gdbarch.sh (register_type): New function with predicate.
12313 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12314 * gdbarch.h, gdbarch.c: Re-generate.
12315 * arch-utils.c (generic_register_byte): Use generic_register_size.
12316 (generic_register_size): When available, use
12317 gdbarch_register_type.
12318 * regcache.c (init_regcache_descr): When available, initialize the
12319 register type array using gdbarch_register_type. If the
12320 architecture supplies gdbarch_register_type, do not use the legacy
12321 regcache layout.
12322 * d10v-tdep.c (d10v_register_type): Replace
12323 d10v_register_virtual_type.
12324 (d10v_gdbarch_init): Set register_type instead of
12325 register_virtual_type.
12326
7b83296f
AC
123272003-03-01 Andrew Cagney <cagney@redhat.com>
12328
12329 * Makefile.in (ax-gdb.o): Update dependencies.
12330 * ax-gdb.c: Include "regcache.h".
12331 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12332 * findvar.c (value_of_register): Ditto.
12333 * infcmd.c (default_print_registers_info): Ditto.
12334
eadc1c87
MK
123352003-03-01 Mark Kettenis <kettenis@gnu.org>
12336
12337 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12338 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12339
14143612
MK
123402003-03-01 Mark Kettenis <kettenis@gnu.org>
12341
12342 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12343 of STREQ.
12344
a55cc764
DJ
123452003-02-28 Daniel Jacobowitz <drow@mvista.com>
12346
12347 * Makefile.in (dwarf2loc.o): Update dependencies.
12348 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12349 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12350 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12351 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12352 (locexpr_tracepoint_var_ref): New function.
12353 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12354
08a617da
AC
123552003-02-28 Andrew Cagney <cagney@redhat.com>
12356
12357 * regcache.c (register_size): New function.
12358 * regcache.h (register_size): Declare
12359 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12360 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12361
4224873a
DC
123622003-02-28 David Carlton <carlton@math.stanford.edu>
12363
12364 * linespec.c (decode_compound): Extract code into find_method.
12365 (find_method): New.
12366
ccdc5d7f
JB
123672003-02-28 J. Brobecker <brobecker@gnat.com>
12368
12369 * Makefile.in: Add rules to build and link in observer.o.
12370
974e8ced
JB
123712003-02-27 J. Brobecker <brobecker@gnat.com>
12372
12373 * observer.c: Minor comments edits.
12374
7a28f973
JB
123752003-02-27 J. Brobecker <brobecker@gnat.com>
12376
12377 * observer.h, observer.c: New file.
12378
27cddce2
AC
123792003-02-27 Andrew Cagney <cagney@redhat.com>
12380
12381 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12382
b94a41a1
SC
123832003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12384
12385 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12386 (M6812_OP_STS_EXT): Likewise.
12387 (m6811_prologue): Use the above to recognize prologue.
12388 (m6812_prologue): Likewise.
12389
c8be8951
DC
123902003-02-27 David Carlton <carlton@math.stanford.edu>
12391
12392 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12393 SYMBOL_PRINT_NAME.
12394 (compare_psymbols): Ditto.
12395 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12396
d05bb1fc
MS
123972003-02-27 Michael Snyder <msnyder@redhat.com>
12398
4e845cd3
MS
12399 * f-lang.c (build_fortran_types): New function.
12400 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12401 * doublest.c (extract_floating): Fix warning text.
12402
f3824013
AC
124032003-02-27 Andrew Cagney <cagney@redhat.com>
12404
12405 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12406 predicate. Replaces PUSH_DUMMY_FRAME.
12407 * gdbarch.h, gdbarch.c: Regnerate.
12408 * valops.c (hand_function_call): Update. Call
12409 generic_push_dummy_frame directly.
12410 * vax-tdep.c (vax_gdbarch_init): Update.
12411 * sparc-tdep.c (sparc_gdbarch_init): Update.
12412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12413 * m68k-tdep.c (m68k_gdbarch_init): Update.
12414 * hppa-tdep.c (hppa_gdbarch_init): Update.
12415 * alpha-tdep.c (alpha_gdbarch_init): Update.
12416 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12417 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12418 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12420 push_dummy_frame to generic_push_dummy_frame.
12421 * v850-tdep.c (v850_gdbarch_init): Ditto.
12422 * sh-tdep.c (sh_gdbarch_init): Ditto.
12423 * s390-tdep.c (s390_gdbarch_init): Ditto.
12424 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12425 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12426 * mips-tdep.c (mips_gdbarch_init): Ditto.
12427 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12429 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12430 * i386-tdep.c (i386_gdbarch_init): Ditto.
12431 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12432 * frv-tdep.c (frv_gdbarch_init): Ditto.
12433 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12434 * cris-tdep.c (cris_gdbarch_init): Ditto.
12435 * avr-tdep.c (avr_gdbarch_init): Ditto.
12436 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12437
ad188201
KB
124382003-02-26 Kevin Buettner <kevinb@redhat.com>
12439
12440 * mips-tdep.c (show_mips_abi): New function.
12441 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12442 command ``show mips abi''.
12443
6b37567a 124442003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12445
6b37567a 12446 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12447 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12448 more sline entries have been seen for the function.
12449
d3e0a5bf
MC
124502003-02-26 Michael Chastain <mec@shout.net>
12451
12452 * configure: Regenerate with autoconf 000227.
12453
18972eea
MC
124542003-02-26 Michael Chastain <mec@shout.net>
12455
12456 Close PR build/660.
12457 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12458 for old libc5/glibc.
12459 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12460
0bbde931
KW
124612003-02-26 Kris Warkentin <kewarken@qnx.com>
12462
12463 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12464 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12465
27ca5dad
MC
124662003-02-26 Michael Chastain <mec@shout.net>
12467
12468 * configure.in: New variable HAVE_UINTPTR_T.
12469 * configure, config.in: Regenerated.
12470
6f88d630
DJ
124712003-02-26 Daniel Jacobowitz <drow@mvista.com>
12472
12473 Fix PR build/1097.
12474 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12475
b14185ce
AC
124762003-02-25 Andrew Cagney <cagney@redhat.com>
12477
12478 * frame.c (get_prev_frame): Add comment on check for
12479 inside_entry_func. Only check for inside_entry_file when not a
12480 dummy and not a sentinel. Check that the new frame is not inner
12481 to the old frame.
12482
ac2bd0a9
AC
124832003-02-25 Andrew Cagney <cagney@redhat.com>
12484
12485 * frame.c (frame_debug): New variable.
12486 (_initialize_frame): Add "set/show debug frame" command.
12487 (get_prev_frame): When frame_debug, print reason why unwind
12488 failed.
12489
b18a0fd2
MC
124902003-02-25 Michael Chastain <mec@shout.net>
12491
12492 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12493 to avoid uintptr_t definition problems.
12494
22abf04a
DC
124952003-02-25 David Carlton <carlton@math.stanford.edu>
12496
12497 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12498 (SYMBOL_LINKAGE_NAME): Ditto.
12499 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12500 SYMBOL_LINKAGE_NAME.
12501 (struct general_symbol_info): Expand comment.
12502 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12503 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12504 (SYMBOL_MATCHES_REGEXP): Ditto.
12505 * symtab.c (symbol_natural_name): New function.
12506 * objfiles.h: Replace all uses of SYMBOL_NAME by
12507 DEPRECATED_SYMBOL_NAME.
12508 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12509 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12510 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12511 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12512 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12513 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12514 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12515 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12516 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12517 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12518 * ada-exp.y: Ditto.
12519 * ada-exp.y: Update copyright.
12520 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12521 * cp-valprint.c: Ditto.
12522
1a5848f6
JJ
125232003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12524
12525 * infptrace.c (detach): Do not flag error if ptrace detach fails
12526 and errno is set to ESRCH.
12527
7343d46a
AC
125282003-02-24 Andrew Cagney <cagney@redhat.com>
12529
12530 * infptrace.c (udot_info): Change type of udot_off to long. Use
12531 paddr when printing udot_off's value.
12532
49fa1dc2
DC
125332003-02-24 David Carlton <carlton@math.stanford.edu>
12534
12535 * symtab.c (make_symbol_overload_list): Only read in partial
12536 symtabs containing a matching partial symbol.
12537
0fe19209
DC
125382003-02-24 David Carlton <carlton@math.stanford.edu>
12539
12540 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12541 do the comparison, not strcmp.
12542 * symfile.c (compare_psymbols): Ditto.
12543 * defs.h: Declare strcmp_iw_ordered.
12544 * utils.c (strcmp_iw_ordered): New function.
12545
8e3ee7b5
JB
125462003-02-24 Jim Blandy <jimb@redhat.com>
12547
12548 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12549 support, shared libs): Remove my name from here, to better reflect
12550 reality.
12551
7df1a324
KW
125522003-02-24 Kris Warkentin <kewarken@qnx.com>
12553
12554 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12555 (target_ops): Add to_have_continuable_watchpoint.
12556 * target.c (update_current_target): Add INHERIT line for
12557 to_have_continuable_watchpoint.
12558 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12559 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12560 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12561 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12562
d1c76907
EZ
125632003-02-24 Elena Zannoni <ezannoni@redhat.com>
12564
12565 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12566 maintainership.
12567
2610b0bf
KW
125682003-02-24 Kris Warkentin <kewarken@qnx.com>
12569
f46169db
KW
12570 * solib.c (solib_open): Call target defined search function after
12571 failing with solib-search-path.
12572 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12573 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12574
9a3c34fe
KW
125752003-02-24 Kris Warkentin <kewarken@qnx.com>
12576
f46169db 12577 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12578
2417dd25
SC
125792003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12580
12581 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12582
b631436b
SC
125832003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12584
12585 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12586 (m68hc11_add_reggroups): New function.
12587 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12588 (m68hc11_gdbarch_init): Install the reggroups.
12589 (_initialize_m68hc11_tdep): Initialize them.
12590
0aa8c1e4
JW
125912003-02-21 James E Wilson <wilson@tuliptree.org>
12592
12593 * MAINTAINERS: Update my email address.
12594
50ceaba5
DC
125952003-02-21 David Carlton <carlton@math.stanford.edu>
12596
12597 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12598
4c2df51b
DJ
125992003-02-21 Daniel Jacobowitz <drow@mvista.com>
12600
12601 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12602 * symtab.h: Add opaque declarations of struct axs_value and
12603 struct agent_expr.
12604 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12605 (struct location_funcs): New type.
12606 (struct symbol): Add "loc" to aux_value.
12607 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12608 * dwarf2read.c: Include "dwarf2expr.h".
12609 (dwarf2_symbol_mark_computed): New function.
12610 (read_func_scope): Use it.
12611 (var_decode_location): New function.
12612 (new_symbol): Use it.
12613 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12614
12615 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12616 (dwarf2expr_h, dwarf2loc_h): New variables.
12617 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12618 (dwarf2expr.o, dwarf2loc.o): New rules.
12619 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12620 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12621 LOC_COMPUTED_ARG.
12622 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12623 * m2-exp.y (yylex): Likewise.
12624 * printcmd.c (address_info, print_frame_args): Likewise.
12625 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12626 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12627 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12628 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12629 * symtab.c (lookup_block_symbol): Likewise.
12630
5784d15e
AF
126312003-02-20 Adam Fedor <fedor@gnu.org>
12632
12633 * symtab.h: Remove objc_specific struct
12634 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12635 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12636 Have language_objc use cplus_specific struct.
12637
d4cad8db
TT
126382003-02-20 Tom Tromey <tromey@redhat.com>
12639
12640 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12641 TYPE_NAME, when printing a String value. PR java/1075.
12642
2f9a90b4
AF
126432003-02-20 Adam Fedor <fedor@gnu.org>
12644
d38074a8 12645 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12646 * objc-lang.c (find_methods): Make static.
2f9a90b4 12647
6f17862b
CF
126482003-02-20 Christopher Faylor <cgf@redhat.com>
12649
12650 * win32-nat.c (get_image_name): Check return value from
12651 ReadProcessMemory.
12652 (child_xfer_memory): Ditto.
12653
715d1656
AO
126542003-02-20 Alexandre Oliva <aoliva@redhat.com>
12655
12656 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12657 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12658 '${exec_prefix}' (in addition to the expansion thereof) as
12659 relocatable.
12660 * configure: Rebuilt.
12661
b1262a02
DC
126622003-02-20 David Carlton <carlton@math.stanford.edu>
12663
12664 * symtab.c (search_symbols): Revert the search_symbols part of my
12665 2002-12-23 patch. Add comment.
12666
7134143f
DJ
126672002-02-20 Daniel Jacobowitz <drow@mvista.com>
12668
12669 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12670 * dbxread.c (elfstab_build_psymtabs): Don't call
12671 install_minimal_symbols.
12672 (stabsect_build_psymtabs): Likewise.
12673 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12674 earlier.
12675 * somread.c (som_symfile_read): Call install_minimal_symbols
12676 and do_cleanups earlier.
12677 * nlmread.c (nlm_symfile_read): Likewise.
12678 * mdebugread.c (elfmdebug_build_psymtabs): Call
12679 install_minimal_symbols and make appropriate cleanups.
12680
cf466558
KB
126812003-02-20 Kevin Buettner <kevinb@redhat.com>
12682
12683 * solib.c (reload_shared_libraries): New function.
12684 (_initialize_solib): Add callbacks for ``set solib-search-path''
12685 and ``set solib-absolute-prefix''.
12686
de5ad195
DC
126872003-02-20 David Carlton <carlton@math.stanford.edu>
12688
12689 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12690 expand comment.
12691 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12692 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12693 * ada-typeprint.c (ada_typedef_print): Ditto.
12694 * ax-gdb.c (gen_var_ref): Ditto.
12695 * breakpoint.c (print_one_breakpoint): Ditto.
12696 * buildsym.c (finish_block): Ditto.
12697 * c-valprint.c (c_val_print): Ditto.
12698 * expprint.c (print_subexp): Ditto.
12699 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12700 * infcmd.c (jump_command): Ditto.
12701 * linespec.c (decode_line_2, decode_compound): Ditto.
12702 * maint.c (maintenance_translate_address): Ditto.
12703 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12704 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12705 Ditto.
8ffd9b1b
AJ
12706 * p-valprint.c (pascal_val_print): Ditto.
12707 * stabsread.c (define_symbol): Ditto.
de5ad195 12708 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12709 (print_frame_arg_vars, return_command): Ditto.
12710 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12711 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12712 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12713 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12714 (rbreak_command): Ditto.
12715 * tracepoint.c (tracepoints_info): Ditto.
12716 * typeprint.c (typedef_print): Ditto.
12717 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12718 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12719 * ada-typeprint.c: Update Copyright.
12720 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12721 * tracepoint.c, cli/cli-cmds.c: Ditto.
12722
f796e4be
KB
127232003-02-20 Kevin Buettner <kevinb@redhat.com>
12724
12725 * frame.c (generic_unwind_get_saved_register): Make non-static.
12726 * frame.h (generic_unwind_get_saved_register): Declare.
12727 * mips-tdep.c (read_next_frame_reg): Fetch register from
12728 current regcache when frame is NULL.
12729 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12730 that must be NULL.
12731 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12732 instead of frame_register_unwind().
12733
836cc9f4
AC
127342003-02-20 Andrew Cagney <ac131313@redhat.com>
12735
12736 * remote-sim.c (gdbsim_insert_breakpoint)
12737 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12738 code.
12739
501eef12
AC
127402003-02-20 Andrew Cagney <ac131313@redhat.com>
12741
12742 * remote.c (_initialize_remote): Add commands "set/show remote
12743 hardware-watchpoint-limit" and "set/show remote
12744 hardware-breakpoint-limit".
12745 (remote_hw_watchpoint_limit): Initialize to -1.
12746 (remote_hw_breakpoint_limit): Ditto.
12747 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12748
1b6bc7e0
CF
127492003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12750
12751 * coff-pe-read.c: New file - support reading of minimal symbols from a
12752 portable executable using the export table.
12753 * coff-pe-read.h: New file.
12754 * coffread.c: Include coff-pe-read.h.
12755 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12756 debugging symbols found.
12757 * Makefile.in (SFILES): Add coff-pe-read.o.
12758 (coff_pe_read_h): Define.
12759 (COMMON_OBS): Add coff-pe-read.o.
12760 (coffread.o): Add coff_pe_read_h dependency.
12761 (coff-pe-read.o): New target.
12762
fe898f56
DC
127632003-02-19 David Carlton <carlton@math.stanford.edu>
12764
12765 * Makefile.in (SFILES): Add block.c.
12766 (block_h): New.
12767 (COMMON_OBS): Add block.o.
12768 (block.o): New.
12769 (x86-64-tdep.o): Add $(block_h).
12770 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12771 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12772 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12773 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12774 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12775 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12776 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12777 * value.h: Add opaque declaration for struct block.
12778 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12779 * ada-lang.h: Ditto.
12780 * x86-64-tdep.c: #include "block.h"
12781 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12782 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12783 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12784 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12785 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12786 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12787 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12788 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12789 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12790 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12791 * symtab.c (block_function): Ditto.
12792 (contained_in): Ditto.
12793 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12794 block.h. Add opaque declaration for struct block.
12795 * symtab.h: Move block_function and contained_in declarations to
12796 block.h. Add opaque declarations for struct block, struct
12797 blockvector.
12798 (struct block): Move to block.h.
12799 (struct blockvector): Ditto.
12800 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12801 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12802 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12803 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12804 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12805 Ditto.
12806 * block.c: New file.
12807 * block.h: New file.
12808
173345b5
TR
128092003-02-19 Theodore A. Roth <troth@openavr.org>
12810
12811 * avr-tdep.c (avr_extract_return_value): Remove function.
12812 (avr_store_return_value): Remove function.
12813 (avr_extract_struct_value_address): Remove function.
12814 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12815
338ef23d
AC
128162003-02-19 Andrew Cagney <ac131313@redhat.com>
12817
12818 * rs6000-tdep.c: Include "gdb_assert.h".
12819 (registers_e500): Add "acc" and "spefscr".
12820 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12821 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12822 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12823 really is "r0".
12824 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12825
5412f5f3
KS
128262003-02-18 Keith Seitz <keiths@redhat.com>
12827
12828 * Makefile.in: Add gdbtk-interps.c.
12829
881324eb
KB
128302003-02-18 Kevin Buettner <kevinb@redhat.com>
12831
12832 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12833 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12834
6a2f5abf
AC
128352003-02-18 Andrew Cagney <cagney@redhat.com>
12836
12837 * symtab.h (struct objfile): Add opaque declaration.
12838
54c7009d
EZ
128392003-02-18 Elena Zannoni <ezannoni@redhat.com>
12840
12841 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12842 * dbxread.c (process_one_symbol): Use last_function_start rather
12843 than function_start_offset to find the real beginning of the
12844 current function. The latter is just the text section offset on
12845 some systems, the former is always the real function start.
54c7009d 12846
7ee6d7eb
AC
128472003-02-17 Andrew Cagney <cagney@redhat.com>
12848
12849 * configure.in: Revert ${target} != ${host}.
12850
2846da9b
AC
128512003-02-17 Andrew Cagney <ac131313@redhat.com>
12852
12853 * configure.in (Makefile): Use the test ${target} != ${host},
12854 instead of the absence of the "nm.h" file, to determine of the
12855 configuration non-native.
12856 * configure: Regenerate.
8ffd9b1b 12857
3b27aeea
EZ
128582003-02-14 Elena Zannoni <ezannoni@redhat.com>
12859
fbe586ae 12860 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12861
12862 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12863 conditionalize tui_active test.
12864 (lookup_cmd_1): Ditto.
12865
b0b1c2c0
MK
128662003-02-14 Mark Kettenis <kettenis@gnu.org>
12867
12868 * configure.in: Add check for _etext.
12869 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12870 available.
12871 * config.in, configure: regenerated.
12872
8f05cde5
DJ
128732003-02-14 Daniel Jacobowitz <drow@mvista.com>
12874
12875 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12876
021e7609
AC
128772003-02-14 Andrew Cagney <ac131313@redhat.com>
12878
12879 * main.c (tui_version): Delete variable.
12880 (captured_main): When --tui, set interpreter_p to "tui" instead of
12881 enabling tui_version.
12882 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12883 tui_version.
12884 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12885 * cli/cli-cmds.c (disassemble_command): Ditto.
12886 * defs.h (tui_version): Delete declaration.
12887 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12888 (tui-interp.o): Add rules.
12889 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12890
e325dcec
CF
128912003-02-14 Christopher Faylor <cgf@redhat.com>
12892
36ffb041 12893 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12894 just-loaded dll.
12895
c4f90d87
JM
128962003-02-12 Jason Molenda (jmolenda@apple.com)
12897
fbe586ae
RH
12898 * symmisc.c (print_objfile_statistics): Include information about
12899 the number of psymtabs and symtabs in each object file.
c4f90d87 12900
e46e5ccd
KS
129012003-02-13 Keith R Seitz <keiths@redhat.com>
12902
12903 * main.h (struct captured_main_args): Add interpreter_p.
12904 * main.c (captured_main): Initialize interpreter_p from context.
12905 * gdb.c (main): Set interpreter_p argument.
12906 * Makefile.in (gdb.o): Add dependency for interps.h.
12907
fe97fe9c
AC
129082003-02-12 Andrew Cagney <ac131313@redhat.com>
12909
12910 * event-top.c (cli_command_loop): Delete declaration.
12911 (_initialize_event_loop): Delete function setting event_loop_hook.
12912 * event-top.h (cli_command_loop): Declare. Update copyright.
12913 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12914 * interps.c (current_interp_command_loop): When event_loop_p, call
12915 cli_command_loop.
12916
1cdac4ef
AC
129172003-02-12 Andrew Cagney <ac131313@redhat.com>
12918
12919 * interps.h (interp_command_loop_ftype): Change return type to
12920 void.
12921
48037ead
ML
129222003-02-12 Michal Ludvig <mludvig@suse.cz>
12923
12924 * x86-64-tdep.c (x86_64_extract_return_value)
12925 (x86_64_store_return_value): Use regcache instead of regbuf.
12926 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12927 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12928
033afc63
AC
129292003-02-11 Andrew Cagney <ac131313@redhat.com>
12930
12931 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12932 * aclocal.m4: Regenerate.
12933 * configure: Regenerate.
12934
12935 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12936 TCL_LD_SEARCH_FLAGS.
12937
40d02bca
ML
129382003-02-10 Michal Ludvig <mludvig@suse.cz>
12939
12940 * dwarf2cfi.c: Reindented.
12941
11308a41
AC
129422003-02-09 Andrew Cagney <ac131313@redhat.com>
12943
12944 * interps.c (clear_interpreter_hooks): Convert function definition
12945 to ISO C.
12946
e1c1c0f6
DC
129472003-02-07 David Carlton <carlton@math.stanford.edu>
12948
12949 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12950
ab5d3da6
KB
129512003-02-07 Kevin Buettner <kevinb@redhat.com>
12952
12953 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12954 (struct type): ...to here.
12955 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12956 field.
12957 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12958 (replace_type): Set length on all type variants for a given type.
12959
b8a92b82
AC
129602003-02-07 Andrew Cagney <ac131313@redhat.com>
12961
12962 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12963 <sys/stat.h>.
12964 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12965
5cb316ef
AC
129662003-02-06 Andrew Cagney <ac131313@redhat.com>
12967
2555fe1a
AC
12968 * Makefile.in (symm-nat.o): Update dependencies.
12969 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12970 (lynx-nat.o, ia64-linux-nat.): Ditto.
12971 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12972 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12973 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12974
44270758
AC
12975 * Makefile.in (inflow_h): Define.
12976 (procfs.o, inflow.o, procfs.o): Update dependencies.
12977 * inftarg.c (child_stop): Delete extern declaration of
12978 inferior_process_group. Include "inflow.h".
12979 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12980 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12981 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12982 (our_process_group, inferior_process_group): Extern declarations.
12983
df8f7274
AC
12984 * procfs.c: Include "gdb_assert.h".
12985
5cb316ef
AC
12986 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12987 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12988 * jv-typeprint.c (java_type_print_base): Ditto.
12989 * typeprint.c (typedef_print): Eliminate STREQ.
12990 * cli/cli-script.c (define_command, define_command): Ditto.
12991 * main.c (captured_main): Ditto.
12992 * values.c (lookup_internalvar): Ditto.
12993 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12994 within `if' conditional.
12995 * linespec.c (decode_line_2): Ditto.
12996 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12997 (bfd_openw_with_cleanup): Ditto.
12998
2a28ccea
MK
129992003-02-07 Mark Kettenis <kettenis@gnu.org>
13000
13001 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13002 legacy_extract_return_value and store_return_value to
13003 legacy_return_value.
13004
786b8124
CF
130052003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13006
13007 * win32-nat.c (get_relocated_section_addrs): New function. Find
13008 section load addresses for symbol handling in relocated DLLs.
13009 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13010
b871e4ec
FF
130112003-02-05 Fred Fish <fnf@intrinsity.com>
13012
13013 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13014 '=' and '!='.
13015 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13016 with '&' and '=='.
13017 (angel_RDI_info): Ditto.
13018 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13019 with '&' and '!='.
13020 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13021
4389a95a 130222003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13023 Keith Seitz <keiths@redhat.com>
13024 Elena Zannoni <ezannoni@redhat.com>
13025 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13026
13027 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13028 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13029 (SUBDIR_MI_OBS): Add "mi-interp.o".
13030 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13031 (SFILES): Add "interps.c".
13032 (COMMON_OBS): Add "interps.o".
13033 (interps_h, mi_main_h): Define.
13034 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13035 (mi-main.o, main.o, event-top.o): Update dependencies.
13036 * cli/cli-interp.c: New file.
13037 * interps.h, interps.c: New files.
13038 * top.c: (gdb_init): Don't install the default interpreter, handed
13039 by captured_main.
13040 * main.c: Include "interps.h".
13041 (interpreter_p): Note that it should malloc'ed.
13042 (captured_command_loop): Call current_interp_command_loop.
13043 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13044 xfree and xstrdup when updating interpreter_p. Install the
13045 default interpreter. Add hack to stop mi1's copyright notice
13046 being encoded.
13047 * event-top.h (gdb_setup_readline): Declare.
13048 (gdb_disable_readline): Declare.
13049 * event-top.c: Include "interps.h".
13050 (display_gdb_prompt): Call current_interp_display_prompt_p.
13051 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13052 gdb_stdlog, and gdb_stdtarg.
13053 (_initialize_event_loop): Don't call gdb_setup_readline.
13054 * cli-out.c (cli_out_set_stream): New function.
13055 * cli-out.h (cli_out_set_stream): Declare.
13056
ff3b5810
MK
130572003-02-06 Mark Kettenis <kettenis@gnu.org>
13058
13059 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13060 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13061 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13062 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13063 config/i386/i386v42mp.mt: Removed.
13064
5b729aa5
MK
130652003-02-05 Mark Kettenis <kettenis@gnu.org>
13066
13067 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13068 GDB_OSABI_SOLARIS.
13069
8cc15142
MC
130702003-02-05 Michael Chastain <mec@shout.net>
13071
13072 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13073 2.12.1 and earlier versions.
13074
5aa5d4b9
AC
130752003-02-05 Andrew Cagney <ac131313@redhat.com>
13076
13077 Remove orphaned hosts, targets and files.
13078 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13079 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13080 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13081 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13082 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13083 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13084 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13085 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13086 * config/sparc/tm-sp64sim.h: Delete.
13087 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13088 hosts.
13089 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13090 mips*-dec-mach3* targets.
13091
b68767c1
MC
130922003-02-04 Michael Chastain <mec@shout.net>
13093
13094 * NEWS: Fix typo: sepcifying -> specifying.
13095
5ae7ca1d
MC
130962003-02-04 Michael Chastain <mec@shout.net>
13097
13098 * dwarfread.c: Add documentation on the state of dwarf-1,
13099 looking towards obsoletion.
13100
d08a4280
MC
131012003-02-03 Michael Chastain <mec@shout.net>
13102
13103 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13104 gdb/testsuite/gdb.c++/pr-1023.exp.
13105
e9be73e4
AC
131062003-02-04 Andrew Cagney <ac131313@redhat.com>
13107
13108 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13109 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13110
13111 * utils.c (init_page_info): Delete reference to MPW in comments.
13112 * main.c (captured_main): Delete #ifdef MPW.
13113
05d57f6f
AC
131142003-02-04 Andrew Cagney <ac131313@redhat.com>
13115
8ffd9b1b 13116 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13117 * monitor.c (monitor_expect): Obsolete reference to m32r.
13118 * configure.tgt: Mark m32r-*-elf* as obsolete.
13119 * MAINTAINERS: Mark m32k as obsolete.
13120 * m32r-rom.c: Obsolete file.
13121 * config/m32r/m32r.mt: Obsolete file.
13122 * config/m32r/tm-m32r.h: Obsolete file.
13123 * m32r-stub.c: Obsolete file.
13124 * m32r-tdep.c: Obsolete file.
13125
8b0e5691
AC
131262003-02-04 Andrew Cagney <ac131313@redhat.com>
13127
13128 * NEWS: Mention that the z8k-zilog-none is obsolete.
13129 * MAINTAINERS: Mark z8k as obsolete.
13130 * configure.tgt: Obsolete the z8k-*-coff* target.
13131 * config/z8k/z8k.mt: Obsolete file.
13132 * config/z8k/tm-z8k.h: Obsolete file.
13133 * z8k-tdep.c: Obsolete file.
13134
67f16606
AC
131352003-02-04 Andrew Cagney <ac131313@redhat.com>
13136
13137 * NEWS: Mention that the mn10200-elf is obsolete.
13138 * configure.tgt: Obsolete mn10200-*-* target.
13139 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13140 mention that the mn10200 is obsolete.
13141 * breakpoint.h: Ditto.
13142 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13143 * config/mn10200/mn10200.mt: Obsolete file.
13144 * config/mn10200/tm-mn10200.h: Obsolete file.
13145 * mn10200-tdep.c: Obsolete file.
13146
fd2299bd
AC
131472003-02-04 Andrew Cagney <ac131313@redhat.com>
13148
13149 * MAINTAINERS: Mark h8500 as obsolete.
13150 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13151 * findvar.c (value_from_register): Ditto.
13152 * h8500-tdep.c: Mark file as obsolete.
13153 * config/h8500/h8500.mt: Ditto.
13154 * config/h8500/tm-h8500.h: Ditto.
13155 * NEWS: Mention that h8500 is obsolete.
13156
eb9a305d
DC
131572003-02-04 David Carlton <carlton@math.stanford.edu>
13158
13159 * objfiles.c (allocate_objfile): Always set name. Add comment at
13160 start of function.
13161 * jv-lang.c (get_dynamics_objfile): Add comment.
13162
406fc7fb
DC
131632003-02-04 David Carlton <carlton@math.stanford.edu>
13164
13165 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13166 * printcmd.c (build_address_symbolic): Replace uses of
13167 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13168 SYMBOL_NAME, and asm_demangle.
13169 Update copyright.
13170
93d91629
DC
131712003-02-04 David Carlton <carlton@math.stanford.edu>
13172
13173 * linespec.c (decode_compound): Extract code into
13174 lookup_prefix_sym.
13175 (lookup_prefix_sym): New function.
13176
1c5cb38e
DC
131772003-02-04 David Carlton <carlton@math.stanford.edu>
13178
13179 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13180 FLOAT_COERCION_BADNESS.
13181 * gdbtypes.c (rank_one_type): Replace all uses of
13182 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13183
0cf824c9
JB
131842003-02-04 Jim Blandy <jimb@redhat.com>
13185
13186 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13187 section, let dwarf_macinfo_section point to it, not
13188 dwarf_loc_section.
13189
a2d356b0
DJ
131902003-02-04 Daniel Jacobowitz <drow@mvista.com>
13191
13192 Pointed out by Anton Blanchard <anton@samba.org>.
13193 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13194 (ppc_linux_at_sigtramp_return_path): Use it.
13195
2de7ced7
DJ
131962003-02-04 Daniel Jacobowitz <drow@mvista.com>
13197
13198 * defs.h (streq): Add prototype.
13199 * utils.c (streq): New function.
13200
13201 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13202 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13203 * mdebugread.c (new_symbol): Likewise.
13204 * stabsread.c (define_symbol): Likewise.
13205 * coffread.c (process_coff_symbol): Likewise.
13206 * dwarfread.c (new_symbol): Likewise.
13207
13208 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13209 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13210 here.
13211 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13212 SYMBOL_INIT_DEMANGLED_NAME.
13213 * objfiles.c: Include "hashtab.h".
13214 (allocate_objfile): Call htab_set_functions_ex for the
13215 demangled_names_hash.
13216 (free_objfile): Call htab_delete for the demangled_names_hash.
13217 * objfiles.h (struct htab): Add declaration.
13218 (struct objfile): Add demangled_names_hash.
13219 * symfile.c: Include "hashtab.h".
13220 (reread_symbols): Call htab_delete for the demangled_names_hash.
13221 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13222 SYMBOL_NAME in the bcache.
13223 * symtab.c: Include "hashtab.h". Update comments.
13224 (create_demangled_names_hash, symbol_set_names): New functions.
13225 (symbol_find_demangled_name): New function, broken out from
13226 symbol_init_demangled_names.
13227 (symbol_init_demangled_names): Use it.
13228 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13229 (SYMBOL_SET_NAMES): New macro.
13230 (symbol_set_names): Add prototype.
13231
15831452
JB
132322003-02-03 Jim Blandy <jimb@redhat.com>
13233
13234 Use a single, consistent representation for an empty minimal
13235 symbol table in an objfile.
13236 * objfiles.c (terminate_minimal_symbol_table): New function.
13237 (allocate_objfile): Call it.
13238 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13239 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13240 non-NULL.
15831452
JB
13241 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13242 objfile has minimal symbols, compare minimal_symbol_count to zero,
13243 instead of comparing msymbols with NULL.
13244 * objfiles.c (have_minimal_symbols): Same.
13245 * solib-sunos.c (solib_add_common_symbols): Call
13246 terminate_minimal_symbol_table.
13247 * symfile.c (reread_symbols): Same.
8ffd9b1b 13248
ffc65945
KB
132492003-02-03 Kevin Buettner <kevinb@redhat.com>
13250
13251 * s390-tdep.c (s390_address_class_type_flags)
13252 (s390_address_class_type_flags_to_name)
13253 (s390_address_class_name_to_type_flags): New functions.
13254 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13255 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13256
f211c6d4
MS
132572003-02-03 Michael Snyder <msnyder@redhat.com>
13258
13259 * arm-tdep.c: Fix spell-o in comment.
13260
659b0389
ML
132612003-02-03 Michal Ludvig <mludvig@suse.cz>
13262
13263 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13264 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13265 error messages to contain BFD filename.
659b0389 13266
3b31d625
EZ
132672003-02-02 Elena Zannoni <ezannoni@redhat.com>
13268
997b089a 13269 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13270 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13271 (do_mixed_source_and_assembly): Use
13272 make_cleanup_ui_out_tuple_begin_end and
13273 make_cleanup_ui_out_tuple_begin_end.
13274 (do_mixed_source_and_assembly): Ditto.
13275 * thread.c (do_captured_list_thread_ids): Ditto.
13276 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13277 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13278 ui_out_tuple_end): Delete prototypes.
13279 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13280 ui_out_list_end, ui_out_tuple_end): Delete.
13281
13282 From Kevin Buettner <kevinb@redhat.com>:
13283 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13284 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13285 (do_cleanup_table_end): New functions.
13286 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13287 Use cleanups to invoke_ui_out_tuple_end().
13288 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13289 * cli/cli-setshow.c (cmd_show_list): Use
13290 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13291
5b181d62
AC
132922003-02-02 Andrew Cagney <ac131313@redhat.com>
13293
13294 * frame.c (frame_unwind_register): New function.
13295 (frame_unwind_unsigned_register): Use.
13296 (frame_unwind_signed_register): Use.
13297 (frame_read_register): New function.
13298 * frame.h (frame_unwind_register): Declare.
13299 (frame_read_register): Declare.
13300
13301 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13302 and frame_unwind_register instead of read_memory, write_register
13303 and deprecated_write_register_bytes.
13304
5f601589
AC
133052003-02-02 Andrew Cagney <ac131313@redhat.com>
13306
13307 * frame.h: Note that namelen can be negative.
13308 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13309 NAME's length.
13310
13311 * NEWS: Mention that the d10v's `regs' command is deprecated.
13312 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13313 (d10v_print_registers_info): New function.
13314 (show_regs): Call d10v_print_registers_info.
13315 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13316
6a3fe0a4
MK
133172003-02-02 Mark Kettenis <kettenis@gnu.org>
13318
13319 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13320 lost in the previous patch.
13321
075559bc
AC
133222003-02-01 Andrew Cagney <ac131313@redhat.com>
13323
13324 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13325 * stack.c (print_frame_info_base): Output complete FRAME tuple
13326 for synthesized frames.
075559bc 13327
6789195b
AC
133282003-02-02 Andrew Cagney <ac131313@redhat.com>
13329
13330 * mips-nat.c (zerobuf): Delete.
13331 (fetch_inferior_registers): Alloc local zerobuf.
13332 (fetch_core_registers): Alloc local zerobuf.
13333 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13334 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13335 * thread-db.c (thread_db_store_registers): Ditto.
13336 * sh-tdep.c (sh_do_register): Ditto.
13337 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13338 * remote-sim.c (gdbsim_store_register): Ditto.
13339 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13340 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13341 * monitor.c (monitor_supply_register): Ditto.
13342 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13343 * mips-nat.c (fetch_inferior_registers): Ditto.
13344 * m68klinux-nat.c (fetch_register): Ditto.
13345 * lynx-nat.c (fetch_inferior_registers): Ditto.
13346 (fetch_inferior_registers): Ditto.
13347 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13348 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13349 (hpux_thread_store_registers): Ditto.
13350 * hppah-nat.c (fetch_register): Ditto.
13351 * hppab-nat.c (fetch_register): Ditto.
13352 * hppa-tdep.c (pa_register_look_aside): Ditto.
13353 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13354 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13355
e669114a
AC
133562003-02-01 Andrew Cagney <ac131313@redhat.com>
13357
13358 * gdbarch.sh: Explictly specify all method levels. When a
13359 variable with an empty level, provide a non-multi-arch default.
13360 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13361 * gdbarch.h: Re-generate.
13362 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13363 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13364
9a043c1d
AC
133652003-02-01 Andrew Cagney <ac131313@redhat.com>
13366
13367 * defs.h (host_pointer_to_address): Delete declaration.
13368 (address_to_host_pointer): Delete declaration.
13369 * utils.c (host_pointer_to_address): Delete function.
13370 (address_to_host_pointer): Delete function.
13371 * procfs.c (procfs_address_to_host_pointer): New function.
13372 * procfs.c (proc_set_watchpoint): Use.
13373 (procfs_can_use_hw_breakpoint): Update comments.
13374 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13375 (som_solib_add): Use.
13376 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13377 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13378
7ca9f392
AC
133792003-02-01 Andrew Cagney <ac131313@redhat.com>
13380
94bbfd30
AC
13381 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13382 strlen d_name.
13383
7ca9f392
AC
13384 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13385 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13386 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13387 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13388 (define_symbol): Update.
13389 * symfile.c (generic_load): Remove references to nindy.
13390 * symtab.c: Remove references to nindy.
13391
31a85ea2
AC
133922003-02-01 Andrew Cagney <ac131313@redhat.com>
13393
13394 * infcmd.c (print_float_info): Delete code conditional on
13395 FLOAT_INFO.
13396 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13397 * config/m68k/nm-apollo68b.h: Ditto.
13398 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13399 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13400 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13401
f6e85fc8
MK
134022003-02-01 Mark Kettenis <kettenis@gnu.org>
13403
6015b6a0
MK
13404 * config/i386/tm-i386os9k.h: Removed.
13405
f7a30bdf
MK
13406 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13407 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13408 they're identical to i[3456]86-*-sysv* now.
13409 * config/i386/i386v32.mh: Removed.
13410 * config/i386/xm-i386v32.h: Removed.
13411 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13412
28d52111
MK
13413 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13414
4d3f6bce
MK
13415 * config/i386/i386dgux.mh: Removed.
13416 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13417
f6e85fc8
MK
13418 * configure.in: Fix typo.
13419 * configure: Regenerated.
13420
53955967
DC
134212003-01-31 David Carlton <carlton@math.stanford.edu>
13422
13423 * dwarf2read.c (dwarf2_locate_sections): Set
13424 dwarf_ranges_section.
13425
b1364885
AC
134262003-01-31 Andrew Cagney <ac131313@redhat.com>
13427
8dbb1c65
AC
13428 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13429 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13430
8731e58e
AC
13431 * utils.c: Re-indent.
13432
b1364885
AC
13433 * config/djgpp/fnchange.lst: Delete nindy files.
13434 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13435 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13436 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13437 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13438 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13439 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13440 * Makefile.in (init.c): Remove nindy references.
13441 (saber_gdb): Delete rule.
13442 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13443 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13444 and a68v-nat.c.
13445 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13446 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13447 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13448 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13449 nindy-share/stop.h.
13450 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13451 * saber.suppress: Delete file.
13452
086df311
DJ
134532003-01-31 Daniel Jacobowitz <drow@mvista.com>
13454
13455 * dbxread.c (stabs_data): New static variable.
13456 (fill_symbuf): Support an in-memory buffer for stabs data.
13457 (stabs_seek): New function.
13458 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13459 (read_ofile_symtab): Use stabs_seek.
13460 (elfstab_build_psymtabs): Take an asection* instead of
13461 an offset and size. Relocate the stabs data if necessary.
13462 Save the section* for dbx_psymtab_to_symtab.
13463 * dwarf2read.c: Add section variables for each debug section.
13464 (dwarf2_locate_sections): Fill them in.
13465 (dwarf2_read_section): Take an asection* argument.
13466 Relocate the section contents if necessary.
13467 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13468 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13469 it to dwarf2_read_section.
13470 (dwarf2_build_frame_info): Update callers.
13471 * elfread.c (elf_symfile_read): Update call to
13472 elfstab_build_psymtabs.
13473 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13474 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13475 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13476 * symfile.c (symfile_dummy_outputs): New function.
13477 (symfile_relocate_debug_section): New function.
13478 * symfile.h (symfile_relocate_debug_section): Add prototype.
13479
87d1b352
RH
134802003-01-31 Richard Henderson <rth@redhat.com>
13481
13482 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13483 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13484 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13485 * alpha-tdep.c (alpha_register_name): Add "unique".
13486 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13487 (ALPHA_UNIQUE_REGNUM): New.
13488 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13489
c48861fb
AC
134902003-01-31 Andrew Cagney <ac131313@redhat.com>
13491
13492 * README: Remove reference to Ericsson 1800 monitor.
13493 * Makefile.in (remote-es.o): Delete rule.
13494 (ALLDEPFILES): Delete remote-es.c.
13495 * remote-es.c: Delete file.
13496 * config/m68k/es1800.mt: Delete file.
13497 * config/djgpp/fnchange.lst: Update.
13498 * configure.tgt: Delete m68*-ericsson-* target.
13499
d764a824
AF
135002003-01-31 Adam Fedor <fedor@gnu.org>
13501
13502 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13503 Remove duplicate/shadowing variable of same name.
13504
fe36c4f4
JB
135052003-01-30 Jim Blandy <jimb@redhat.com>
13506
13507 * symfile.c (find_separate_debug_file): Assert that the objfile's
13508 directory name we compute ends with a slash, and then assume that
13509 that's so everywhere we use it.
13510
cb741690
DJ
135112003-01-30 Daniel Jacobowitz <drow@mvista.com>
13512
13513 * valops.c (value_assign): Flush frame cache after stores to memory
13514 also.
13515
96ee5227
AC
135162003-01-30 Andrew Cagney <ac131313@redhat.com>
13517
13518 * Makefile.in (mon960-rom.o): Delete rule.
13519 * mon960-rom.c: Delete file.
13520
7f6104a9
AC
135212003-01-30 Andrew Cagney <ac131313@redhat.com>
13522
13523 * d10v-tdep.c: Include "frame-unwind.h".
13524 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13525 list.
13526 (next_addr, uses_frame): Delete.
13527 (struct d10v_unwind_cache): Define.
13528 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13529 Use info instead of next_addr and uses_frame globals.
13530 (d10v_frame_init_saved_regs): Delete function.
13531 (d10v_init_extra_frame_info): Delete function.
13532 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13533 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13534 init_frame_pc or frame_saved_pc.
13535 (d10v_pop_frame): Delete function.
13536 (do_d10v_pop_frame): Delete function.
13537 (d10v_frame_chain): Delete function.
13538 (d10v_frame_chain_valid): Delete function.
13539 (d10v_frame_pc_unwind): New function.
13540 (d10v_frame_id_unwind): New function.
13541 (saved_regs_unwinder): New function.
13542 (d10v_frame_register_unwind): New function.
13543 (d10v_frame_pop): New function.
13544 (d10v_frame_unwind): New variable.
13545 (d10v_frame_p): New function.
13546 (d10v_frame_saved_pc): Delete function.
13547 * Makefile.in (d10v-tdep.o): Update dependencies.
13548
cad2e848
JB
135492003-01-30 J. Brobecker <brobecker@gnat.com>
13550
13551 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13552 causing some regressions due to a change in the default value
13553 for this macro.
13554
af34e669
DJ
135552003-01-29 Richard Henderson <rth@redhat.com>
13556 Elena Zannoni <ezannoni@redhat.com>
13557 Daniel Jacobowitz <drow@mvista.com>
13558
13559 Fix PR gdb/961.
8ffd9b1b 13560 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13561 variables.
13562 (RANGES_SECTION): New.
13563 (dwarf_ranges_buffer): New variable.
13564 (struct comp_unit_head): Add member "die".
13565 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13566 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13567 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13568 (dwarf2_locate_sections): Likewise.
13569 (dwarf2_build_psymtabs): Read .debug_ranges.
13570 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13571 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13572 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13573 Look for DW_AT_ranges and return the bounding box.
13574
baa93fa6
CF
135752003-01-29 Brian Ford <ford@vss.fsi.com>
13576
13577 * win32-nat.c (cygwin_pid): Removed as unused.
13578 (child_attach): Try fall back to Cygwin pid.
13579
c63f977f
JB
135802003-01-29 Jim Blandy <jimb@redhat.com>
13581
13582 * objfiles.h (struct objfile): Doc fix.
13583
d62d1979
AC
135842003-01-29 Andrew Cagney <ac131313@redhat.com>
13585
13586 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13587 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13588 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13589 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13590 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13591 (FRAME_SAVED_PC): Change to a function with predicate.
13592 * gdbarch.h, gdbarch.c: Re-generate.
13593
1ae18a04
AC
135942003-01-28 Andrew Cagney <ac131313@redhat.com>
13595
52287340
AC
13596 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13597
1ae18a04
AC
13598 * complaints.c (complain): Delete function.
13599 * complaints.h (struct deprecated_complaint): Delete definition.
13600 (complain): Delete declaration.
13601
f2c16bd6
KB
136022003-01-28 Kevin Buettner <kevinb@redhat.com>
13603
13604 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13605 dummy frames.
13606
a94dd1fd
AC
136072003-01-27 Andrew Cagney <ac131313@redhat.com>
13608
13609 * sentinel-frame.h, sentinel-frame.c: New files.
13610 * Makefile.in (frame.o): Update dependencies.
13611 (SFILES): Add sentinel-frame.c.
13612 (sentinel_frame_h): Define.
13613 (COMMON_OBS): Add sentinel-frame.o.
13614 (sentinel-frame.o): Specify dependencies.
13615 * frame.c: Include "sentinel-frame.h".
13616 (frame_register_unwind): Rewrite assuming that there is always a a
13617 ->next frame.
13618 (frame_register, generic_unwind_get_saved_register): Ditto.
13619 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13620 (create_sentinel_frame, unwind_to_current_frame): New functions.
13621 (get_current_frame): Rewrite using create_sentinel_frame and
13622 unwind_to_current_frame. When possible, always create a frame.
13623 (create_new_frame): Set next to the sentinel frame.
13624 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13625 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13626 ID cache when necessary.
13627 (frame_saved_regs_id_unwind): Use frame_relative_level.
13628 (deprecated_generic_get_saved_register): Use frame_relative_level,
13629 get_frame_saved_regs, get_frame_pc, get_frame_base and
13630 get_next_frame.
13631 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13632 frame_register.
13633
5378adc4
DJ
136342003-01-27 Daniel Jacobowitz <drow@mvista.com>
13635
13636 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13637
51ee2ddc
DJ
136382003-01-27 Daniel Jacobowitz <drow@mvista.com>
13639
13640 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13641 (maintenance_set_profile_cmd): Use error () instead of warning ().
13642
d9feb4e7
DJ
136432003-01-27 Daniel Jacobowitz <drow@mvista.com>
13644
13645 * configure.in: Check that -pg works if using --enable-profiling.
13646 Check for monstartup and _mcleanup regardless of --enable-profiling.
13647 * maint.c: Check for monstartup and _mcleanup before using them.
13648 * config.in: Regenerated.
13649 * configure: Regenerated.
13650
2d188dd3
NC
136512003-01-24 Nick Clifton <nickc@redhat.com>
13652
13653 * Add sh2e support:
13654
13655 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13656
13657 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13658 (sh2e_show_regs): New.
13659 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13660 * config/sh/tm-sh.h: Added sh2e to comments.
13661
cb3c37b2
JB
136622003-01-23 Jim Blandy <jimb@redhat.com>
13663
13664 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13665 symbols found)" message here; we haven't checked for a separate
13666 debug info file yet, so we don't know yet.
13667 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13668 we've looked everywhere. Also, there's no need to print a special
13669 message when we're loading the separate debug info file: the one
13670 symbol_file_add prints is fine.
13671
5b5d99cf
JB
136722003-01-23 Alexander Larsson <alexl@redhat.com>
13673 Jim Blandy <jimb@redhat.com>
13674
13675 Add support for executables whose debug info has been separated
13676 out into a separate file, leaving only a link behind.
13677 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13678 and separate_debug_objfile_backlink.
13679 (put_objfile_before): New declaration.
13680 * symfile.c: #include "filenames.h".
13681 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13682 debug info in a separate file, read that, too. Save the addrs
13683 argument, so we can use it again to read the separated debug info;
13684 syms_from_objfile modifies the table we pass it.
13685 (reread_symbols): After re-reading an objfile, call
13686 reread_separate_symbols to refresh its separate debug info
13687 objfile, if it has one.
13688 (reread_separate_symbols, find_separate_debug_file,
13689 get_debug_link_info, separate_debug_file_exists): New functions.
13690 (debug_file_directory): New global var.
13691 (_initialize_symfile): Initialize debug_file_directory, and
13692 provide the new `set debug-file-directory' command to let the user
13693 change it.
13694 * objfiles.c (free_objfile): If this objfile has its debug info in
13695 a separate objfile, free that one too. If this is itself a
13696 separate debug info objfile, clear our parent's backlink.
13697 (put_objfile_before): New function.
13698 * utils.c (gnu_debuglink_crc32): New function.
13699 * defs.h (gnu_debuglink_crc32): New declaration.
13700 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13701 * configure.in: Handle --with-separate-debug-dir config option.
13702 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13703 * acconfig.h (DEBUGDIR): New macro.
13704 * configure, aclocal.m4, config.in: Regenerated.
13705
7e8580c1
JB
137062003-01-22 Jim Blandy <jimb@redhat.com>
13707
7904e09f
JB
13708 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13709 like the old symbol_file_add, but taking new arguments: you can
13710 now pass in either a `struct section_addr_info' list to say where
13711 each section is loaded, or a `struct section_offsets' table. Pass
13712 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13713 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13714 with the appropriate quiescent values for the new arguments.
13715
7e8580c1
JB
13716 * symfile.c: #include "gdb_assert.h".
13717 (syms_from_objfile): Add the ability to pass in a section offset
13718 table directly, as an alternative to the section_addr_info table.
13719 Document arguments better.
13720 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13721 * symfile.h (syms_from_objfile): Update declaration.
13722 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13723 syms_from_objfile.
13724 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13725
d28f9cdf
DJ
137262003-01-22 Daniel Jacobowitz <drow@mvista.com>
13727
13728 Original patch by Tom Tromey <tromey@cygnus.com> and
13729 Jason Molenda <jmolenda@apple.com>.
13730 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13731 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13732 * NEWS: Mention profiling.
13733 * configure.in (--enable-gdbtk): Fix typo.
13734 (--enable-profiling): New. Set PROFILE_CFLAGS.
13735 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13736 Fill in function.
13737 (profiling_state): New variable.
13738 (mcleanup_wrapper): New function.
13739 (_initialize_maint): Remove NOTYET, fix call to
13740 add_setshow_boolean_cmd for "maint set profile".
13741 * configure: Regenerated.
13742
df21e465
MH
137432003-01-21 Martin M. Hunt <hunt@redhat.com>
13744
13745 * Makefile.in (install-gdbtk): Install PNG images too.
13746
73c1f219
AC
137472003-01-21 Andrew Cagney <ac131313@redhat.com>
13748
13749 * exec.c (text_start): Delete global variable.
13750 (exec_file_attach): Make text_start local to the function.
13751 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13752 * valops.c (hand_function_call): Delete code that handles
13753 BEFORE_TEXT_END and AFTER_TEXT_END.
13754 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13755 of CALL_DUMMY_LOCATION.
13756 * gdbarch.c: Regenerate.
13757 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13758 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13759 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13760 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13761 (text_end): Delete extern declaration.
13762
eb4f72c5
AC
137632003-01-21 Andrew Cagney <ac131313@redhat.com>
13764
13765 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13766 * blockframe.c (backtrace_below_main): Move to "frame.c".
13767 (frame_chain_valid): Delete check for backtrace_below_main.
13768 (_initialize_blockframe): Delete initialization, move ``set
13769 backtrace-below-main'' command to "frame.c".
13770 (do_flush_frames_sfunc): Delete function.
13771 * frame.c: Include "command.h" and "gdbcmd.h".
13772 (frame_type_from_pc): New function.
13773 (create_new_frame): Use frame_type_from_pc.
13774 (legacy_get_prev_frame): New function.
13775 (get_prev_frame): Rewrite. When an old style frame, call
13776 legacy_get_prev_frame. Otherwize, unwind the PC first.
13777 (_initialize_frame): Add ``set backtrace-below-main'' command.
13778 * Makefile.in (frame.o): Update dependencies.
13779
778ce8cc
AC
137802003-01-19 Andrew Cagney <ac131313@redhat.com>
13781
13782 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13783 DEPRECATED_REGISTERS_INFO.
13784
01c193c8
AC
137852003-01-19 Andrew Cagney <ac131313@redhat.com>
13786
13787 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13788 Maintainers'. Update `Various Maintainers'.
13789
dedc2a2b
AC
137902003-01-19 Andrew Cagney <ac131313@redhat.com>
13791
13792 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13793 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13794 Suppress actual parameters when `-'.
13795 * gdbarch.h, gdbarch.c: Regenerate.
13796
b7261c70
AC
137972003-01-19 Andrew Cagney <ac131313@redhat.com>
13798
13799 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13800 code handling dummy frames.
13801
dbe9fe58
AC
138022003-01-19 Andrew Cagney <ac131313@redhat.com>
13803
13804 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13805 (struct frame_unwind): Add field pop.
13806 * frame.h (frame_pop): Declare.
13807 * frame.c (frame_saved_regs_pop): New function.
13808 (trad_frame_unwinder): Add frame_saved_regs_pop.
13809 (frame_pop): New function.
13810 * dummy-frame.c (dummy_frame_pop): New function.
13811 (discard_innermost_dummy): New function.
13812 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13813 (dummy_frame_unwind): Add dummy_frame_pop.
13814 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13815 * valops.c (hand_function_call): Ditto.
13816 * stack.c (return_command): Ditto.
13817
570b8f7c
AC
138182003-01-18 Andrew Cagney <ac131313@redhat.com>
13819
13820 * cris-tdep.c: Fix function declaration indentation.
13821 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13822 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13823 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13824 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13825 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13826 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13827
138282003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13829
13830 * README (Unpacking and Installation -- quick overview):
13831 Warn against ".../gdb-5.3/gdb/configure".
13832
494cca16
AC
138332003-01-18 Andrew Cagney <ac131313@redhat.com>
13834
13835 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13836 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13837 (struct frame_unwind): Declare opaque.
13838 (dummy_frame_p): Declare function.
13839 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13840 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13841 * dummy-frame.c: Include "frame-unwind.h".
13842 (dummy_frame_p): New function.
13843 (dummy_frame_unwind): New variable.
13844 * frame.c: Include "frame-unwind.h".
13845 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13846 to use the new unwind field.
13847 (set_unwind_by_pc): Delete function.
13848 (create_new_frame, get_prev_frame): Set unwind field using
13849 frame_unwind_find_by_pc.
13850 (trad_frame_unwind, trad_frame_unwinder): New variables.
13851 * frame.h (trad_frame_unwind): Declare variable.
13852 (frame_id_unwind_ftype): Delete declaration.
13853 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13854 (struct frame_unwind): Declare opaque.
13855 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13856 register_unwind with a single unwind pointer.
13857 * frame-unwind.h, frame-unwind.c: New files.
13858 * Makefile.in (SFILES): Add frame-unwind.c.
13859 (frame_unwind_h): Define.
13860 (COMMON_OBS): Add frame-unwind.o.
13861 (frame-unwind.o): Specify dependencies.
13862 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13863
4efb68b1
AC
138642003-01-18 Andrew Cagney <ac131313@redhat.com>
13865
13866 * ada-valprint.c: Eliminate PTR.
13867 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13868 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13869 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13870 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13871 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13872 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13873 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13874
a84d24ee
AC
138752003-01-17 Andrew Cagney <ac131313@redhat.com>
13876
762f08a3
AC
13877 * main.c (captured_main): Don't use PTR.
13878 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13879 * gdbtypes.c (lookup_primitive_typename): Ditto.
13880 (lookup_struct_elt_type): Ditto.
13881 * f-valprint.c (info_common_command): Ditto.
13882 (list_all_visible_commons): Ditto.
13883 * jv-typeprint.c (java_type_print_base): Ditto.
13884
a84d24ee
AC
13885 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13886 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13887 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13888 i386-interix-nat.c and i386-interix-tdep.c. Rename
13889 m68klinux-nat.c and m68klinux-tdep.c. Rename
13890 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13891 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13892 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13893 * main.c (captured_main): Use xfree, not free.
13894
c170fb60
AC
138952003-01-16 Andrew Cagney <ac131313@redhat.com>
13896
13897 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13898 ID back using a parameter.
13899 * frame.c (frame_id_unwind): Update call.
13900 (frame_saved_regs_id_unwind): Update.
13901 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13902 * dummy-frame.h (struct frame_id): Add opaque declaration.
13903 (dummy_frame_id_unwind): Update declaration.
13904
867f3898
AC
139052003-01-15 Andrew Cagney <ac131313@redhat.com>
13906
13907 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13908
40622be8 139092003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13910
40622be8 13911 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13912
ae66c1fc
EZ
139132003-01-14 Elena Zannoni <ezannoni@redhat.com>
13914
997b089a 13915 Fix PR gdb/898
ae66c1fc
EZ
13916 * breakpoint.c (until_break_command): Add new argument. Use it to
13917 decide whether to stop only at the current frame or not.
13918 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13919 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13920 call.
13921 (advance_command): New function.
13922 (_initialize_infcmd): Update help string for 'until' command.
13923 Add new 'advance' command.
13924
a04257e6
DC
139252003-01-14 David Carlton <carlton@math.stanford.edu>
13926
13927 * linespec.c (decode_line_1): Normalize comments.
13928 (set_flags): Ditto.
13929 (locate_first_half): Ditto.
13930 (decode_compound): Ditto.
13931 (symtab_from_filename): Ditto.
13932 (decode_all_digits): Ditto.
13933 (decode_dollar): Ditto.
13934 (find_methods): Ditto.
13935 (find_toplevel_char): Ditto.
13936
1bac305b
AC
139372003-01-13 Andrew Cagney <ac131313@redhat.com>
13938
13939 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13940 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13941 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13942 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13943 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13944 * language.c, language.h, m32r-tdep.c: Update copyright.
13945 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13946 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13947 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13948 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13949 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13950 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13951
25caa7a8
EZ
139522003-01-13 Elena Zannoni <ezannoni@redhat.com>
13953
13954 * stabsread.h (process_later, resolve_cfront_continuation):
13955 Obsolete.
13956 Update copyright years.
13957 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13958 Update copyright year.
13959 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13960 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13961 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13962 Update copyright year.
13963 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13964 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13965 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13966 (parse_partial_symbols): Obsolete cfront support.
13967 * stabsread.c
13968 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13969 macros.
13970 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13971 read_cfront_baseclasses, read_cfront_member_functions,
13972 resolve_cfront_continuation,read_cfront_static_fields,
13973 copy_cfront_struct_fields): Obsolete functions.
13974 (define_symbol, read_one_struct_field): Obsolete cfront support.
13975 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13976 Update Copyright year.
13977
7789c6f5
EZ
139782003-01-13 Elena Zannoni <ezannoni@redhat.com>
13979
13980 * stack.c (print_frame_info, print_stack_frame_base_stub,
13981 print_stack_frame_base, show_and_print_stack_frame_stub,
13982 show_and_print_stack_frame, print_only_stack_frame_stub,
13983 print_only_stack_frame): Delete functions.
13984 (print_stack_frame_stub): Call print_frame_info instead of
13985 print_frame_info_base.
13986 (print_frame_info_base): Rename to print_frame_info.
13987 (backtrace_command_1): Call print_frame_info, instead of
13988 print_frame_info_base.
13989 (current_frame_command): Call print_stack_frame, instead of
13990 print_only_stack_frame.
13991 (frame_command): Call print_stack_frame, instead of
13992 show_and_print_stack_frame.
13993 (up_command): Ditto.
13994 (down_command): Ditto.
13995 * frame.h (print_only_stack_frame): Delete prototype.
13996 * infrun.c (normal_stop): Call print_stack_frame, instead of
13997 show_and_print_stack_frame.
13998 * thread.c (info_threads_command): Call print_stack_frame, instead
13999 of print_only_stack_frame.
14000
3f5a3016
AC
140012003-01-13 Andrew Cagney <ac131313@redhat.com>
14002
d99ba314
AC
14003 * README (Graphical interface to GDB): Update URL. Point at
14004 gdb/links/.
14005
3f5a3016
AC
14006 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14007 version match.
14008
083ae935
DJ
140092003-01-13 Daniel Jacobowitz <drow@mvista.com>
14010
14011 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14012 lines.
14013
5365276c
DJ
140142003-01-13 Daniel Jacobowitz <drow@mvista.com>
14015
14016 * thread-db.c (attach_thread): Prototype.
14017 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14018 thread information (ti), and valid flags (th_valid, ti_valid).
14019 (attach_thread): Move target_pid_to_str call to after the thread
14020 is added to GDB's list. Initialize the cache.
14021 (thread_get_info_callback, thread_db_map_id2thr)
14022 (thread_db_get_info): New functions.
14023 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14024 (thread_db_store_registers, thread_db_thread_alive)
14025 (thread_db_get_thread_local_address): Use them.
14026 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14027 of calling error() for threads in unknown state.
14028
14029 (clear_lwpid_callback): New function.
14030 (thread_db_resume): Use it to clear the cache.
14031
9fc30b6b
DJ
140322003-01-13 Daniel Jacobowitz <drow@mvista.com>
14033
14034 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14035 (resume_callback): Remove dead code.
14036
8f871025
AC
140372003-01-13 Andrew Cagney <ac131313@redhat.com>
14038
14039 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14040 predicate.
14041 * gdbarch.h, gdbarch.c: Regenerate.
14042 * stack.c (frame_info): Only initialize the saved registers when
14043 FRAME_INIT_SAVED_REGS_P.
14044 * frame.c (frame_saved_regs_register_unwind): Assert
14045 FRAME_INIT_SAVED_REGS_P.
14046 (deprecated_generic_get_saved_register): Ditto.
14047
3f565f1e
DJ
140482003-01-13 Daniel Jacobowitz <drow@mvista.com>
14049
14050 * source.c (openp): Squelch warning about "filename".
14051
072b1022
DJ
140522003-01-13 Daniel Jacobowitz <drow@mvista.com>
14053
14054 * source.c (openp): If the file does not exist don't necessarily
14055 search the path.
14056
973ccf8b
DJ
140572003-01-13 Daniel Jacobowitz <drow@mvista.com>
14058
14059 Fix PR gdb/872.
14060 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14061 (integer_types_same_name_p): New function.
14062 (rank_one_type): Use it.
14063 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14064
030292b7
DJ
140652003-01-13 Daniel Jacobowitz <drow@mvista.com>
14066
14067 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14068 variables.
14069 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14070 * configure.in: Add --with-sysroot.
14071 * configure: Regenerated.
14072 * main.c (gdb_sysroot): New variable.
14073 (captured_main): Initialize gdb_sysroot.
14074 * defs.h (gdb_sysroot): New extern declaration.
14075 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14076
afb5d334
MC
140772003-01-12 Michael Chastain <mec@shout.net>
14078
14079 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14080
751ceeb4
MC
140812003-01-12 Michael Chastain <mec@shout.net>
14082
14083 * top.c (print_gdb_version): Bump copyright year to 2003.
14084
94cd26f8
DC
140852003-01-12 David Carlton <carlton@bactrian.org>
14086
14087 * linespec.c (symtab_from_filename): Rename variable 's' to
14088 'file_symtab'.
14089
1ce79225
AC
140902003-01-12 Andrew Cagney <ac131313@redhat.com>
14091
14092 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14093 dummy frame.
14094 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14095
fa1fd571
AC
140962003-01-12 Andrew Cagney <ac131313@redhat.com>
14097
14098 * d10v-tdep.c: Include "gdb_assert.h".
14099 (d10v_store_return_value): Rewrite to match current interface.
14100 (d10v_extract_struct_value_address): Ditto.
14101 (d10v_extract_return_value): Ditto.
14102 (d10v_gdbarch_init): Set store_restore_value,
14103 extract_struct_value_address and extract_return_value.
14104
68b8d23e
JB
141052003-01-12 J. Brobecker <brobecker@gnat.com>
14106
14107 * hpread.c (set_namestring): New procedure replacing the
14108 SET_NAMESTRING macro.
14109 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14110 by calls to set_namestring.
14111
141122003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14113
14114 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14115 a compilation warning.
14116 (hpread_process_one_debug_symbol): Likewise.
14117
88d262ca
DC
141182003-01-10 David Carlton <carlton@math.stanford.edu>
14119
14120 * linespec.c (decode_line_1): Rename variable 's' to
14121 'file_symtab'.
14122 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14123 (decode_dollar): Ditto.
14124 (decode_variable): Ditto.
14125 (symbol_found): Ditto.
14126
86669319
MC
141272003-01-09 Michael Chastain <mec@shout.net>
14128
14129 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14130
616a9dc4
CV
141312003-01-07 Corinna Vinschen <vinschen@redhat.com>
14132
14133 * win32-nat.c (set_process_privilege): New function.
14134 (child_attach): Call set_process_privilege() to enable the
14135 SE_DEBUG_NAME user privilege if available in process token.
14136
3269bcfa
JB
141372003-01-10 J. Brobecker <brobecker@gnat.com>
14138
14139 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14140 compilation error in the previous revision.
14141
2b0ee454
DC
141422003-01-09 David Carlton <carlton@math.stanford.edu>
14143
14144 * linespec.c: Update copyright.
14145
b3ba1b44
DJ
141462003-01-09 Daniel Jacobowitz <drow@mvista.com>
14147
14148 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14149 than inferior_ptid.
14150 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14151
4ef3f3be
AC
141522003-01-09 Andrew Cagney <ac131313@redhat.com>
14153
479ab5a0
AC
14154 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14155 Update comments.
14156 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14157 (frame_saved_regs_zalloc): Update.
14158 (frame_saved_regs_register_unwind): Update.
14159 (create_new_frame): Update.
14160 (get_prev_frame): Update.
14161 (frame_extra_info_zalloc): Update.
14162 (deprecated_get_frame_saved_regs): Update.
14163 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14164 * cris-tdep.c: Update comment.
14165
bde58177
AC
14166 * somsolib.h: Fix function indentation.
14167 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14168 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14169 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14170 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14171 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14172
4ef3f3be
AC
14173 * infrun.c (follow_fork): Use ISO C definition.
14174 * expprint.c (print_subexp): Use xfree instead of free.
14175 * charset.c: Include "gdb_string.h" instead of <string.h>.
14176 (register_iconv_charsets): Use ISO C definition.
14177 (host_charset, target_charset): Ditto.
14178 * Makefile.in (charset.o): Update dependencies.
14179 (mi-cmd-env.o): Update dependencies.
14180
1c615f7a
AC
141812003-01-08 Andrew Cagney <cagney@redhat.com>
14182
14183 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14184 get_frame_base.
14185
c9a1dc08
AC
141862003-01-08 Andrew Cagney <ac131313@redhat.com>
14187
14188 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14189 build directories. Save edited gdb output in Mbuild.log. If a
14190 build fails, remove any final GDB executable.
14191
dbad9d94
AC
141922003-01-08 Andrew Cagney <ac131313@redhat.com>
14193
14194 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14195 replacing hex constants with function names and stripping leading
14196 file name directory prefixes.
14197
8d357cca
AC
141982003-01-08 Andrew Cagney <cagney@redhat.com>
14199
14200 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14201 get_frame_base.
14202
bca02a8a
DC
142032003-01-08 David Carlton <carlton@math.stanford.edu>
14204
14205 * linespec.c (decode_line_1): Move code into decode_variable.
14206 (decode_variable): New function.
14207
7f8ab3a0
AC
142082003-01-08 Andrew Cagney <ac131313@redhat.com>
14209
14210 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14211
7b5849cc
AC
142122003-01-08 Andrew Cagney <cagney@redhat.com>
14213
14214 * cris-tdep.c (cris_frame_init_saved_regs): Use
14215 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14216 saved_regs buffer.
14217 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14218 (sh64_nofp_frame_init_saved_regs): Ditto.
14219 (sh_fp_frame_init_saved_regs): Ditto.
14220 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14221 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14222 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14223 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14224
72a5efb3
DJ
142252003-01-08 Daniel Jacobowitz <drow@mvista.com>
14226
14227 * minsyms.c (lookup_minimal_symbol): Update comment.
14228 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14229 (lookup_minimal_symbol_solib_trampoline): Likewise.
14230
11c02a10
AC
142312003-01-08 Andrew Cagney <cagney@redhat.com>
14232
aab3ea25
AC
14233 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14234 frame_relative_level.
14235
da50a4b7
AC
14236 * alpha-tdep.c: Use get_frame_extra_info.
14237 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14238 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14239 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14240 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14241
11c02a10
AC
14242 * alpha-tdep.c: Use get_next_frame.
14243 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14244 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14245 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14246 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14247 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14248 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14249 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14250
1e2330ba
AC
142512003-01-07 Andrew Cagney <cagney@redhat.com>
14252
14253 * alpha-tdep.c: Use get_frame_base.
14254 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14255 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14256 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14257 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14258 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14259 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14260 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14261 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14262
2d75187b
AC
142632003-01-07 Andrew Cagney <cagney@redhat.com>
14264
14265 * frame.c (deprecated_get_frame_context): New function.
14266 (deprecated_set_frame_context): New function.
14267 * frame.h (deprecated_get_frame_context): Declare.
14268 (deprecated_set_frame_context): Declare.
14269 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14270 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14271
483d36b2
AC
142722003-01-07 Andrew Cagney <cagney@redhat.com>
14273
14274 * frame.c (deprecated_set_frame_next_hack): New function.
14275 (deprecated_set_frame_prev_hack): New function.
14276 * frame.h (deprecated_set_frame_next_hack): Declare.
14277 (deprecated_set_frame_prev_hack): Declare.
14278 * mcore-tdep.c (analyze_dummy_frame): Use
14279 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14280 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14281
14e91ac5
DC
142822003-01-07 David Carlton <carlton@math.stanford.edu>
14283
14284 * linespec.c (decode_line_1): Move code into decode_dollar.
14285 (decode_dollar): New function.
14286
b0c6b05c
AC
142872003-01-07 Andrew Cagney <cagney@redhat.com>
14288
14289 * arm-tdep.c (arm_init_extra_frame_info): Use
14290 deprecated_update_frame_base_hack.
14291 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14292 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14293 (fix_frame_pointer): Ditto.
14294 (mn10300_analyze_prologue): Ditto.
14295
a00a19e9
AC
142962003-01-07 Andrew Cagney <cagney@redhat.com>
14297
14298 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14299 extra_info using frame_extra_info_zalloc.
14300 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14301 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14302 (sh64_init_extra_frame_info): Ditto.
14303 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14304 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14305 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14306 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14307 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14308 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14309 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14310 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14311 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14312 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14313 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14314 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14315
14316 * mn10300-tdep.c (analyze_dummy_frame): Use
14317 deprecated_set_frame_extra_info_hack.
14318 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14319
1fb4c65b
JB
143202003-01-07 J. Brobecker <brobecker@gnat.com>
14321
14322 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14323 class is not scText. These do not define "real" procedures.
14324 (parse_partial_symbols): Likewise.
14325
9fe7d6bf
MS
143262003-01-06 Michael Snyder <msnyder@redhat.com>
14327
14328 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14329
f6c609c4
AC
143302003-01-06 Andrew Cagney <ac131313@redhat.com>
14331
14332 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14333 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14334 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14335 deprecated_frame_xmalloc_with_cleanup.
14336 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14337 deprecated_frame_xmalloc.
14338 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14339 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14340
d995ff4b
AC
143412003-01-06 Andrew Cagney <cagney@redhat.com>
14342
84dc46cb
AC
14343 * x86-64-linux-tdep.c: Include "osabi.h".
14344 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14345
d995ff4b
AC
14346 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14347
66140c26
AC
143482003-01-06 Andrew Cagney <cagney@redhat.com>
14349
14350 * MAINTAINERS (Target Instruction Set Architectures): Update
14351 arm-elf. Can be built with -Werror, has been multiarched.
14352
14353 * value.h (unpack_long): Make buffer parameter constant.
14354 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14355 * scm-lang.h (scm_parse): Ditto.
14356 * defs.h (extract_typed_address, extract_address): Ditto.
14357 (extract_long_unsigned_integer): Ditto.
14358 * inferior.h (unsigned_pointer_to_address): Ditto.
14359 (signed_pointer_to_address): Ditto.
14360 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14361 * gdbarch.h, gdbarch.c: Regenerate.
14362 * findvar.c (extract_long_unsigned_integer): Update.
14363 (extract_address): Update.
14364 (extract_typed_address): Update.
14365 (unsigned_pointer_to_address): Update.
14366 * values.c (unpack_long): Update.
14367 (unpack_double): Update.
14368 (unpack_pointer): Update.
14369 (unpack_field_as_long): Update.
14370 * d10v-tdep.c (d10v_pointer_to_address): Update.
14371 * avr-tdep.c (avr_pointer_to_address): Update.
14372 * scm-lang.c (scm_unpack): Update.
14373 * findvar.c (signed_pointer_to_address): Update.
14374
b089b3da
ML
143752003-01-06 Michal Ludvig <mludvig@suse.cz>
14376
8ffd9b1b 14377 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14378 since it is in i386-tdep.c.
14379
aff87235
JB
143802003-01-06 J. Brobecker <brobecker@gnat.com>
14381
14382 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14383 failure introduced in the previous change.
14384
34f5e845
MC
143852003-01-05 Michael Chastain <mec@shout.net>
14386
14387 * README: Remove references to deleted remote-*.c files:
14388 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14389 remote-nrom.c, remote-os9k.c, remote-udi.c.
14390
28bcfd30
MK
143912003-01-05 Mark Kettenis <kettenis@gnu.org>
14392
14393 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14394 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14395 i386_get_longjmp_target.
14396
15a5b3ee
AC
143972003-01-05 Andrew Cagney <ac131313@redhat.com>
14398
14399 * arm-tdep.c (prologue_cache): Change to a pointer.
14400 (_initialize_arm_tdep): Allocate prologue_cache.
14401 (check_prologue_cache): Update.
14402 (save_prologue_cache): Update.
14403 (arm_gdbarch_init): Update.
14404
c263362b
DJ
144052003-01-04 Daniel Jacobowitz <drow@mvista.com>
14406
14407 * stabsread.c (update_method_name_from_physname): Call complaint()
14408 instead of error.
14409
51603483
DJ
144102003-01-04 Daniel Jacobowitz <drow@mvista.com>
14411
14412 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14413 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14414 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14415
14416 * blockframe.c: Include "gdbcmd.h" and "command.h".
14417 (backtrace_below_main): New variable.
14418 (file_frame_chain_valid, func_frame_chain_valid)
14419 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14420 (generic_func_frame_chain_valid): Remove functions.
14421 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14422 (_initialize_blockframe): New function.
14423 * Makefile.in (blockframe.o): Update dependencies.
14424 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14425 comment. Call frame_chain_valid ().
14426 * frame.h: Remove old prototypes. Add prototype for
14427 frame_chain_valid and update comments to match.
14428 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14429 Remove old comment.
14430 * gdbarch.h: Regenerated.
14431 * gdbarch.c: Regenerated.
14432
14433 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14434 set_gdbarch_frame_chain_valid.
14435 * avr-tdep.c (avr_gdbarch_init): Likewise.
14436 * cris-tdep.c (cris_gdbarch_init): Likewise.
14437 * frv-tdep.c (frv_gdbarch_init): Likewise.
14438 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14439 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14440 (i386_nw_init_abi): Likewise.
14441 (i386_gdbarch_init): Likewise.
14442 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14444 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14445 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14446 * mips-tdep.c (mips_gdbarch_init): Likewise.
14447 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14448 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14449 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14450 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14451 * s390-tdep.c (s390_gdbarch_init): Likewise.
14452 * sh-tdep.c (sh_gdbarch_init): Likewise.
14453 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14454 * v850-tdep.c (v850_gdbarch_init): Likewise.
14455 * vax-tdep.c (vax_gdbarch_init): Likewise.
14456 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14457
14458 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14459 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14460 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14461 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14462 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14463 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14464 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14465 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14466
b00a8037
DJ
144672002-01-04 Daniel Jacobowitz <drow@mvista.com>
14468
14469 * Makefile.in (acconfig_h): Remove incorrect macro.
14470 (config_h): Define.
14471 (osabi.o): Update dependencies.
14472 * configure.tgt: Set gdb_osabi based on target triplet.
14473 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14474 * configure: Regenerated.
14475 * config.in: Regenerated.
14476 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14477 (GDB_OSABI_DEFAULT): Define if not already defined.
14478 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14479 (set_osabi_string): New variables.
14480 (gdbarch_register_osabi): Add new OS ABI to
14481 gdb_osabi_available_names.
14482 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14483 (set_osabi, show_osabi): New functions.
14484 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14485
4be87837
DJ
144862003-01-04 Daniel Jacobowitz <drow@mvista.com>
14487
14488 * arch-utils.c (gdbarch_info_init): Set osabi to
14489 GDB_OSABI_UNINITIALIZED.
14490 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14491 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14492 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14493 * gdbarch.c: Regenerated.
14494 * gdbarch.h: Regenerated.
14495 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14496 there's no BFD.
14497 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14498 * osabi.h (enum gdb_osabi): Move to defs.h.
14499 (gdbarch_init_osabi): Update prototype.
14500 * defs.h (enum gdb_osabi): Moved here.
14501 * Makefile.in: Update dependencies.
14502
14503 * alpha-tdep.h: Don't include "osabi.h".
14504 (struct gdbarch_tdep): Remove osabi member.
14505 * alpha-tdep.c: Include "osabi.h".
14506 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14507 iterate over arches. Update call to gdbarch_init_osabi.
14508 (alpha_dump_tdep): Don't dump osabi.
14509 * alpha-linux-tdep.c: Include "osabi.h".
14510 * alpha-osf1-tdep.c: Include "osabi.h".
14511 * alphafbsd-tdep.c: Include "osabi.h".
14512 * alphanbsd-tdep.c: Include "osabi.h".
14513
14514 * arm-tdep.h: Don't include "osabi.h".
14515 (struct gdbarch_tdep): Remove osabi member.
14516 * arm-tdep.c: Include "osabi.h".
14517 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14518 iterate over arches. Update call to gdbarch_init_osabi.
14519 (arm_dump_tdep): Don't dump osabi.
14520 * arm-linux-tdep.c: Include "osabi.h".
14521 * armnbsd-tdep.c: Include "osabi.h".
14522
14523 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14524 Update call to gdbarch_init_osabi.
14525
14526 * i386-tdep.h: Don't include "osabi.h".
14527 (struct gdbarch_tdep): Remove osabi member.
14528 * i386-tdep.c: Include "osabi.h".
14529 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14530 iterate over arches. Update call to gdbarch_init_osabi.
14531 (i386_dump_tdep): Don't dump osabi.
14532 * i386-linux-tdep.c: Include "osabi.h".
14533 * i386-sol2-tdep.c: Include "osabi.h".
14534 * i386bsd-tdep.c: Include "osabi.h".
14535 * i386gnu-tdep.c: Include "osabi.h".
14536 * i386ly-tdep.c: Include "osabi.h".
14537 * i386nbsd-tdep.c: Include "osabi.h".
14538 * i386obsd-tdep.c: Include "osabi.h".
14539
14540 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14541 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14542 check osabi when iterating over arches. Update call to
14543 gdbarch_init_osabi.
14544 (mips_dump_tdep): Don't dump osabi.
14545
14546 * ns32k-tdep.h: Don't include "osabi.h".
14547 (struct gdbarch_tdep): Remove.
14548 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14549 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14550 allocate tdep. Update call to gdbarch_init_osabi.
14551 (ns32k_dump_tdep): Remove.
14552 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14553 * ns32knbsd-tdep.c: Include "osabi.h".
14554
14555 * ppc-tdep.h: Don't include "osabi.h".
14556 (struct gdbarch_tdep): Remove osabi member.
14557 * rs6000-tdep.c: Include "osabi.h".
14558 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14559 osabi when iterating over arches. Update call to
14560 gdbarch_init_osabi.
14561 (rs6000_dump_tdep): Don't dump osabi.
14562 * ppc-linux-tdep.c: Include "osabi.h".
14563 * ppcnbsd-tdep.c: Include "osabi.h".
14564
14565 * sh-tdep.h: Don't include "osabi.h".
14566 (struct gdbarch_tdep): Remove osabi member.
14567 * sh-tdep.c: Include "osabi.h".
14568 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14569 iterate over arches. Update call to gdbarch_init_osabi.
14570 (sh_dump_tdep): Don't dump osabi.
14571 * shnbsd-tdep.c: Include "osabi.h".
14572
14573 * sparc-tdep.c: Include "osabi.h".
14574 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14575 iterate over arches. Update call to gdbarch_init_osabi.
14576 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14577 tdep structure.
14578
14579 * vax-tdep.h: Don't include "osabi.h".
14580 (struct gdbarch_tdep): Remove.
14581 * vax-tdep.c: Include "osabi.h".
14582 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14583 iterate over arches. Don't allocate tdep. Update call
14584 to gdbarch_init_osabi.
14585 (vax_dump_tdep): Remove.
14586 (_initialize_vax_tdep): Update call to gdbarch_register.
14587
a881cf8e
DJ
145882003-01-04 Daniel Jacobowitz <drow@mvista.com>
14589
14590 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14591 entirely.
14592 (breakpoint_re_set_one): Don't fetch the value for a disabled
14593 watchpoint.
14594
1e698235
DJ
145952003-01-04 Daniel Jacobowitz <drow@mvista.com>
14596
14597 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14598 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14599 (COERCE_FLOAT_TO_DOUBLE): Remove.
14600 * gdbarch.c: Regenerate.
14601 * gdbarch.h: Regenerate.
14602 * Makefile.in: Remove value_h from gdbarch_h.
14603 * valops.c (coerce_float_to_double): New variable.
14604 (default_coerce_float_to_double): Remove.
14605 (standard_coerce_float_to_double): Remove.
14606 (value_arg_coerce): Use coerce_float_to_double.
14607 (_initialize_valops): Add "set coerce-float-to-double".
14608 * value.h (default_coerce_float_to_double): Remove prototype.
14609 (standard_coerce_float_to_double): Remove prototype.
14610
14611 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14612 prototyped.
14613 * mdebugread.c (parse_symbol): Likewise.
14614 * stabsread.c (define_symbol): Mark all functions as prototyped.
14615
14616 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14617 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14618 set_gdbarch_coerce_float_to_double.
14619 * arm-tdep.c (arm_gdbarch_init): Likewise.
14620 * frv-tdep.c (frv_gdbarch_init): Likewise.
14621 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14622 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14623 * mips-tdep.c (mips_gdbarch_init): Likewise.
14624 (mips_coerce_float_to_double): Remove.
14625 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14626 (rs6000_coerce_float_to_double): Remove.
14627 * s390-tdep.c (s390_gdbarch_init): Likewise.
14628 * sh-tdep.c (sh_gdbarch_init): Likewise.
14629 (sh_coerce_float_to_double): Remove.
14630 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14631 (sparc_coerce_float_to_double): Remove.
14632 * v850-tdep.c (v850_gdbarch_init): Likewise.
14633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14634 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14635 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14636 (hppa_coerce_float_to_double): Remove prototype.
14637 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14638
f436a26a
DJ
146392003-01-04 Daniel Jacobowitz <drow@mvista.com>
14640
14641 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14642
248f8055
DJ
146432003-01-04 Daniel Jacobowitz <drow@mvista.com>
14644
14645 Suggested by Stewart Brown <sb24@avaya.com>:
14646 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14647 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14648 (c_type_print_varspec_suffix): Likewise.
14649
72cfdc76
MK
146502003-01-04 Mark Kettenis <kettenis@gnu.org>
14651
bfd260bb
MK
14652 * configure.in: Don't set and AC_SUBST SUBDIRS.
14653 * configure: Regenerated.
14654
72cfdc76
MK
14655 * configure.in: Remove code dealing with shared libraries.
14656 * Makefile.in: Remove HLDFLAGS and HLDENV.
14657 * configure: Regenerated.
14658
c8b8a898
AC
146592003-01-04 Andrew Cagney <ac131313@redhat.com>
14660
14661 * frame.c (deprecated_frame_xmalloc): New function.
14662 (deprecated_set_frame_saved_regs_hack): New function.
14663 (deprecated_set_frame_extra_info_hack): New function.
14664 * frame.h (deprecated_frame_xmalloc): Declare.
14665 (deprecated_set_frame_saved_regs_hack): Declare.
14666 (deprecated_set_frame_extra_info_hack): Declare.
14667
14abd0fb
MK
146682003-01-04 Mark Kettenis <kettenis@gnu.org>
14669
8ee53726
MK
14670 * configure.in: Move code that provides the --enable-gdbtk option
14671 right after the code that handles the --enable-tui option, and
14672 polish it somewhat.
14673 * configure: Regenerated.
14674
14abd0fb
MK
14675 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14676 AC_CHECK_FUNCS and remove the old check for pread64.
14677 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14678 * acconfig.h (_GNU_SOURCE): Add.
14679 (HAVE_PREAD64): Remove.
14680 * configure, aclocal.m4, config.in: Regenerated.
14681
b2fb4676
AC
146822003-01-03 Andrew Cagney <ac131313@redhat.com>
14683
14684 * alpha-tdep.c: Use get_frame_saved_regs.
14685 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14686 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14687 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14688 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14689 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14690
8dcde887
MK
146912003-01-03 Mark Kettenis <kettenis@gnu.org>
14692
14693 * configure.in: Remove all use of the SUBDIRS variable; add
14694 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14695 code providing the --enable-multi-ice option, and move it right in
14696 front of the code that checks whether gdbserver is supported.
14697 Polish that too.
14698 * configure: Regenerated.
14699 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14700 @SUBDIRS@.
14701
8ccd593b
AC
147022003-01-03 Andrew Cagney <cagney@redhat.com>
14703
14704 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14705 * avr-tdep.c, cris-tdep.c: Ditto.
14706 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14707 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14708
91151a06
MK
147092003-01-03 Mark Kettenis <kettenis@gnu.org>
14710
14711 * configure.in: Remove --enable-netrom option.
14712 * configure: Regenerated.
14713
8fe84d01
MK
147142003-01-03 Mark Kettenis <kettenis@gnu.org>
14715
14716 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14717 declaration for `struct re_pattern_buffer' instead.
14718 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14719
f0394be6
JB
147202003-01-03 J. Brobecker <brobecker@gnat.com>
14721
14722 * mdebugread.c (parse_symbol): Count until the stEnd matching
14723 the structure name.
14724
27e9bf90
MK
147252003-01-02 Mark Kettenis <kettenis@gnu.org>
14726
93d331ba
MK
14727 * configure.in: Remove --with-cpu option.
14728 subscripts. Remove evil changequotes here.
14729 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14730 * config.in, configure: Regenerated.
8ffd9b1b 14731
27e9bf90
MK
14732 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14733 * configure.in: Cleanup section that sources GDB and BFD configure
14734 subscripts. Remove evil changequotes here.
14735 * config.in, configure: Regenerated.
14736
50abf9e5
AC
147372003-01-02 Andrew Cagney <ac131313@redhat.com>
14738
14739 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14740 frame accessor methods.
14741 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14742 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14743 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14744 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14745 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14746 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14747 * z8k-tdep.c: Ditto.
8ffd9b1b 14748
287c1a40
MK
147492003-01-02 Mark Kettenis <kettenis@gnu.org>
14750
f5dbc56d
MK
14751 * configure.in: Remove UI_OUT configuration code.
14752 * ada-lang.c: Update assuming UI_OUT is always true.
14753 * Makefile.in (UIOUT_CFLAGS): Remove.
14754 * configure: Regenerated.
14755 * TODO: Remove blurb about elimination of -DUI_OUT.
14756
627af7ea
MK
14757 * configure.in: Move code that provides the --enable-gdbcli,
14758 --enable-gdbmi options right before the code that handles the
14759 --enable-tui option. Polish a bit.
14760 * configure: Regenerated.
14761
06825bd1
MK
14762 * configure.in: Rewrite check for GNU regex and the
14763 --without-included regex option, and move it into the "Checks for
14764 library functions" section. This makes us use the system regex
14765 again by default on systems with version 2 of the GNU C library.
14766 This was apparently broken.
14767 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14768 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14769 * config.in, configure: Regenerated.
14770
287c1a40
MK
14771 * configure.in: Move code that provides the --enable-tui option
14772 before the "Checks for libraries" section. Polish the code
14773 somewhat and set need_curses to yes if we build the TUI. Rewrite
14774 code that looks for a library providing termcap functionality to
14775 match more closely what's done in the Readline library, and move
14776 it into to the "Checks for libraries" section.
14777 * configure: Regenerated.
14778 * Makefile.in (TERMCAP): Remove variable.
14779 * config/i386/go32.mh (TERMCAP): Remove variable.
14780
684e56bf
AC
147812003-01-02 Andrew Cagney <ac131313@redhat.com>
14782
14783 * MAINTAINERS: Mention gdb_mbuild.sh.
14784 * gdb_mbuild.sh: Rewrite.
14785
e1ea1d75
MK
147862003-01-02 Mark Kettenis <kettenis@gnu.org>
14787
14788 * configure.in: Fix typo in last change.
14789 * config.in, configure: Regenerated.
14790
1b831c93
AC
147912003-01-02 Andrew Cagney <ac131313@redhat.com>
14792
14793 * valarith.c (value_binop): Delete obsolete code and comments.
14794 * configure.host: Ditto.
14795 * buildsym.h (make_blockvector): Ditto.
14796 * buildsym.c (make_blockvector): Ditto.
14797 * defs.h (enum language): Ditto.
14798 (chill_demangle): Ditto.
14799 * elfread.c (elf_symtab_read): Ditto.
14800 * dwarfread.c (CHILL_PRODUCER): Ditto.
14801 (set_cu_language): Ditto.
14802 (handle_producer): Ditto.
14803 * expprint.c (print_subexp): Ditto.
14804 * gdbtypes.c (chill_varying_type): Ditto.
14805 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14806 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14807 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14808 (chill_varying_type): Ditto.
14809 * language.h (_LANG_chill): Ditto.
14810 * language.c (binop_result_type, integral_type): Ditto.
14811 (character_type, string_type, structured_type): Ditto.
14812 (lang_bool_type, binop_type_check): Ditto.
14813 * stabsread.h (os9k_stabs): Ditto.
14814 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14815 (define_symbol, read_type, read_struct_fields): Ditto.
14816 (read_array_type, read_enum_type, read_huge_number): Ditto.
14817 (read_range_type, start_stabs): Ditto.
14818 * symfile.c (init_filename_language_table): Ditto.
14819 (add_psymbol_with_dem_name_to_list): Ditto.
14820 * symtab.c (symbol_init_language_specific): Ditto.
14821 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14822 * symtab.h (struct general_symbol_info): Ditto.
14823 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14824 * typeprint.c (typedef_print): Ditto.
14825 * utils.c (fprintf_symbol_filtered): Ditto.
14826 * valops.c (value_cast, search_struct_field, value_slice): Delete
14827 obsolete code.
14828 (varying_to_slice): Delete function.
14829 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14830 (varying_to_slice): Delete declaration.
14831 * MAINTAINERS: Update.
14832
8bb2c122
MK
148332003-01-02 Mark Kettenis <kettenis@gnu.org>
14834
97bf5e38
MK
14835 * configure.in: Reorganize "Checks for library functions section"
14836 a bit. Remove check for `btowc' and `isascii' functions.
14837 * configure: Regenerated.
14838
5ee754fc
MK
14839 * acconfig.h (_MSE_INT_H): Remove.
14840 * configure.in: Create "Checks for header files" section, and move
14841 appropriate tests there. Don't check for objlist.h, wchar.h,
14842 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14843 misdetection fix. Also add "Checks for types", "Checks for
14844 compiler characteristics" and "Checks for library functions"
14845 sections.
14846 * config.in, configure: Regenerated.
14847
8bb2c122
MK
14848 * configure.in: Create "Checks for programs" section, and move
14849 appropriate tests there.
14850
9a156167
MK
148512003-01-01 Mark Kettenis <kettenis@gnu.org>
14852
14853 * configure.in: Create "Checks for libraries" section, and move
14854 appropriate tests there. Cleanup check for wctype in libw. Use
14855 AC_SEARCH_LIBS to see whether we need libsocket.
14856 * configure: Regenerated.
14857
a80e2bcb 14858For older changes see ChangeLog-2002
c906108c
SS
14859\f
14860Local Variables:
14861mode: change-log
14862left-margin: 8
14863fill-column: 74
14864version-control: never
14865End:
This page took 1.151956 seconds and 4 git commands to generate.