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
47ebcfbe
AC
3 * mips-tdep.c (mips_register_convertible): Delete function.
4 (mips_register_convert_to_virtual): Delete function.
5 (mips_register_convert_to_raw): Delete function.
6 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
7 "deprecated_register_convert_to_virtual", or
8 "deprecated_register_convert_to_raw".
9 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
10 32/64 cooked to raw register conversions.
11
2a9264f1
AC
12 * frame.c (deprecated_get_frame_context): Delete function.
13 (deprecated_set_frame_prev_hack): Delete function.
14 (struct frame_info): Delete member "context".
15 * frame.h (deprecated_get_frame_context): Delete declaration.
16 (deprecated_set_frame_context): Delete declaration.
17
7af6341f
AC
18 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
19 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
20 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
21 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
22
10a08821
AC
23 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
24 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
25 mips_regsize.
26 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
27 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
28 * config/mips/tm-irix5.h: Update copyright.
29 (SIGFRAME_REG_SIZE): Delete macro.
30
00d33403
AC
31 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
32 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
33 declaration.
34 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
35 * infcall.c (call_function_by_hand): Delete #ifdef
36 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
37 * infcmd.c (print_return_value): Ditto.
38
74da7425
AC
39 * mips-tdep.c (skip_prologue_using_sal): New function.
40 (mips32_skip_prologue, mips16_skip_prologue): Use
41 skip_prologue_using_sal to get an upper bound on the search.
42
369864a4
AC
43 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
44 #if 0'ed macro.
45 * infrun.c (step_into_function): Delete #ifdef
46 PROLOGUE_FIRSTLINE_OVERLAP code.
47 * symtab.c (find_function_start_sal): Ditto.
48
a5a12285
AC
49 * remote-rdp.c: Update copyright.
50 (rdp_init): #if 0 references to "target_byte_order".
51
29dfb2ac
AC
52 * mips-tdep.c (mips_o32_store_return_value): Delete function.
53 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
54 (mips_o32_extract_return_value): Delete function.
55 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
56 (mips_n32n64_extract_return_value): Delete function.
57 (mips_n32n64_store_return_value): Delete function.
58 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
59 instead of "store_return_value", "extract_return_value", and
60 "use_struct_convention".
61 (mips_n32n64_use_struct_convention): Delete function.
62
3a3da38c
KB
632003-11-21 Kevin Buettner <kevinb@redhat.com>
64
65 * frv-tdep.c (frv_frame_this_id): Eliminate call to
66 inside_entry_func().
67
c5e656c1
MK
682003-11-20 Mark Kettenis <kettenis@gnu.org>
69
70 * i386-tdep.c (i386_extract_return_value,
71 i386_store_return_value): Add gdbarch argument. Use it instead of
72 determining it from REGCACHE. Remove recursive call for
73 structures with a single member.
74 (i386_use_struct_convention): Remove.
75 (i386_reg_struct_return_p): New function.
76 (i386_return_value): New function.
77 (i386_gdbarch_init): Set return_value, don't set
78 extract_return_value, store_return_value and
79 use_struct_convention.
80 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
81
515cc92e
JB
822003-11-20 Jim Blandy <jimb@redhat.com>
83
84 * osabi.c (_initialize_gdb_osabi): Don't return before registering
85 the 'set osabi' and 'show osabi' commands.
86
3f1d7f16
MK
872003-11-19 Mark Kettenis <kettenis@gnu.org>
88
89 * frame.c (get_prev_frame): Use result from
90 get_frame_address_in_block instead of get_frame_pc as argument to
91 inside_main_func. Fixes PR backtrace/1435.
92
667e784f
AC
932003-11-19 Andrew Cagney <cagney@redhat.com>
94
95 * stack.c (return_command): Handle "void", "legacy" and "unknown
96 location" return values separatly.
97 * values.c (using_struct_return): Return 0 for a "void" return
98 type. Mention "register_value_being_returned".
99 (register_value_being_returned): Mention "using_struct_return".
100
4cecd739
DJ
1012003-11-19 Daniel Jacobowitz <drow@mvista.com>
102
103 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
104 (frame_base_offset): Delete.
105 (read_func_scope): Delete call to decode_locdesc.
106 (decode_locdesc): Update comments. Don't set the removed variables.
107 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
108 DW_OP_fbreg support.
109
6b992462
DJ
1102003-11-18 Daniel Jacobowitz <drow@mvista.com>
111
112 * dwarf2read.c (optimized_out, islocal): Remove.
113 (decode_locdesc): Update comments. Don't set optimized_out
114 or islocal.
115
968d1cb4
JJ
1162003-11-17 Jeff Johnston <jjohnstn@redhat.com>
117 David Mosberger <davidm@hpl.hp.com>
118
119 * ia64-tdep.c: Include elf.h.
120 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
121 libunwind-ia64.h.
122 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
123 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
124 (ia64_is_fpreg, ia64_access_reg): Ditto.
125 (ia64_access_fpreg, ia64_access_mem): Ditto.
126 (get_kernel_table): Ditto.
127 (ia64_find_unwind_table): Ditto.
128 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
129 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
130 (ia64_libunwind_frame_prev_register): Ditto.
131 (ia64_libunwind_frame_sniffer): Ditto.
132 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
133 sniffer. Register libunwind functions needed by generic
134 libunwind frame code using libunwind_frame_set_descr().
135
d29caefc
DJ
1362003-11-16 Daniel Jacobowitz <drow@mvista.com>
137
138 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
139 bp_shlib_disabled breakpoint if there is a shared library mapped
140 at its expected address.
141
691c0433
AC
1422003-11-16 Andrew Cagney <cagney@redhat.com>
143
96cb1c2f
AC
144 * configure.tgt: Delete mips*tx39*-elf*.
145 * config/mips/tm-tx39.h: Delete file.
146 * config/mips/tx39.mt: Delete file.
147 * config/mips/tx39.mt: Delete file.
148
691c0433
AC
149 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
150 * remote-mips.c (common_open): Instead of
151 "mips_read_register_type" and "mips_set_processor_type_command"
152 call "deprecated_mips_set_processor_regs_hack".
153 * config/mips/tm-mips.h (mips_read_processor_type): Delete
154 declaration.
155 (mips_set_processor_type_command): Delete declaration.
156 * mips-tdep.c (mips_gdbarch_init): Update comment.
157 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
158 (mips_set_processor_type): Delete function.
159 (NUM_MIPS_PROCESSOR_REGS): Define.
160 (mips_show_processor_type_command): Delete function.
161 (mips_set_processor_type_command): Delete function.
162 (tmp_mips_processor_type): Delete.
163 (mips_processor_type): Delete.
164 (mips_processor_type_table): Delete.
165 (mips_r3051_reg_names): Delete.
166 (mips_r3081_reg_names): Delete.
167 (mips_lsi33k_reg_names): Delete.
168 (mips_processor_reg_names): Delete.
169 (mips_read_processor_type): Delete function.
170 (deprecated_mips_set_processor_regs_hack): New function.
171 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
172 (mips_register_name): Get the processor names from the tdep.
173 (mips_tx39_reg_names): New array.
174 (mips_generic_reg_names): Wire to a standard set of names.
175 (mips_gdbarch_init): Set "mips_processor_reg_names".
176 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
177 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
178 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
179
56cea623
AC
1802003-11-16 Andrew Cagney <cagney@redhat.com>
181
182 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
183 (mips_fpa0_regnum, mips_regnum): New function.
184 (mips_gdbarch_init): Fill in the "regnum" fields.
185 * mips-tdep.h (struct mips_regnum): Define.
186 (mips_regnum): Declare.
187 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
188 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
189 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
190 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
191 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
192 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
193 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
194 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
195 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
196 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
197 * remote-mips.c: Include "mips-tdep.h". Update.
198 * mipsnbsd-tdep.c: Update.
199 * mipsv4-nat.c: Update.
200 * mips-tdep.c: Update.
201 * mips-nat.c: Update.
202 * mips-linux-tdep.c: Update.
203 * mips-linux-nat.c: Update.
204 * irix5-nat.c: Update.
205 * dve3900-rom.c: Include "mips-tdep.h". Update.
206 (ignore_packet): Supress GCC warning.
207 * config/mips/nm-riscos.h: Update.
208
719ec221
AC
2092003-11-16 Andrew Cagney <cagney@redhat.com>
210
211 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
212 register_size.
213 (mips_register_raw_size): Delete function.
214 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
215 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
216 Check and set "mips64_transfers_32bit_regs_p".
217 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
218 (mips_register_convertible): Check the architecture's
219 "mips64_transfers_32bit_regs_p".
220 (set_mips64_transfers_32bit_regs): New function.
221 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
222 "set remote-mips64-transfers-32bit-regs" command. Specify
223 set_mips64_transfers_32bit_regs as the set function.
56cea623 224 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 225
20187ed5
MK
2262003-11-16 Mark Kettenis <kettenis@gnu.org>
227
228 * i386-tdep.h (i386_supply_gregset): Provide prototype.
229 * i386-tdep.c (i386_supply_gregset): Make public.
230
6771c427
AC
2312003-11-16 Andrew Cagney <cagney@redhat.com>
232
233 * mips-tdep.c (mips_register_byte): Delete function.
234 (mips_gdbarch_init): Do not set "deprecated_register_byte".
235 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
236 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
237 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
238
c8048956
MK
2392003-11-16 Mark Kettenis <kettenis@gnu.org>
240
241 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
242
cc8a868a
AC
2432003-11-16 Andrew Cagney <cagney@redhat.com>
244
245 * config/mips/linux64.mt: Delete file.
246 * config/mips/tm-linux64.h: Delete file.
247 * config/mips/tm-mips64.h: Delete file.
248 * config/mips/embed64.mt: Delete file.
249 * config/djgpp/fnchange.lst: Update.
250 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
251 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
252 * config/mips/tm-irix6.h: Update copyright. Include
253 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
254 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
255 "OP_LDGPR".
256
5ef80fb0
AC
2572003-11-15 Andrew Cagney <cagney@redhat.com>
258
259 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
260 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
261 n32 registers 64 bit.
262 (mips_register_raw_size, mips_register_byte): For pseudo
263 registers, use the register's pseudo size and not the
264 corresponding raw register's size.
265 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
266 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
267 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
268 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
269
4246e332
AC
2702003-11-15 Andrew Cagney <cagney@redhat.com>
271
8fa9cfa1
AC
272 * mips-tdep.c (struct gdbarch_tdep): Delete member
273 gdb_target_is_mips64.
274 (GDB_TARGET_IS_MIPS64): Delete macro.
275 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
276 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
277 (mips_addr_bits_remove): Simplify.
278
c73e8f27
AC
279 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
280 register_size.
281
4246e332
AC
282 Replace MIPS_REGSIZE with mips_regsize.
283 * mips-tdep.c (mips_regsize): New function.
284 * mips-tdep.h (mips_regsize): Declare.
285 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
286 (SIZEOF_STRUCT_REG): Update.
287 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
288 (mipsnbsd_fill_reg): Update.
289 (mipsnbsd_supply_fpreg): Update.
290 (mipsnbsd_fill_fpreg): Update.
291 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
292 * mips-tdep.c (mips_register_raw_size): Update.
293 (mips_register_type): Update.
294 (SIGFRAME_BASE): Update.
295 (SIGFRAME_PC_OFF): Update.
296 (SIGFRAME_REGSAVE_OFF): Update.
297 (SIGFRAME_FPREGSAVE_OFF): Update.
298 (SIGFRAME_REG_SIZE): Update.
299 (mips32_heuristic_proc_desc): Update.
300 (print_gp_register_row): Update.
301 (mips_dump_tdep): Do not print MIPS_REGSIZE.
302 * irix5-nat.c (supply_gregset): Update.
303 (fetch_core_registers): Update.
304 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
305 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
306 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
307 (MIPS_REGISTER_BYTE): Update.
308 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
309
5e044b1e
AC
3102003-11-15 Andrew Cagney <cagney@redhat.com>
311
312 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
313 USE_REGISTER_NOT_ARG.
314 * stabsread.c (define_symbol): Update.
315
3a16a68c
AC
3162003-11-15 Andrew Cagney <cagney@redhat.com>
317
318 * bcache.h (deprecated_bcache): Declare.
319 (bcache): Make returned buffer constant.
320 * bcache.c (deprecated_bcache): New function.
321 (bcache_data): New function.
322 (bcache): Call bcache data.
323 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
324 (add_psymbol_with_dem_name_to_list): Ditto.
325
bb41a796
MK
3262003-11-15 Mark Kettenis <kettenis@gnu.org>
327
328 * glibc-tdep.h (struct gdbarch): Declare opaque.
329 (glibc_skip_solib_resolver): Adjust prototype.
330 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
331 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
332 (arm_linux_init_abi): Set skip_solib_resolver.
333 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
334 (i386_linux_init_abi): Set skip_solib_resolver.
335 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
336 (arm_linux_skip_solib_resolver): Remove prototype.
337 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
338 (i386_linux_skip_solib_resolver): Remove prototype.
339
4c8c40e6
MK
3402003-11-14 Mark Kettenis <kettenis@gnu.org>
341
342 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
343 function.
344 * gdbarch.c, gdbarch.h: Regenerate.
345 * infrun.c (handle_inferior_event): Call
346 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
347 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
348 definition.
349 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
350 prototype.
351
0e5d83e3
JJ
3522003-11-14 Jeff Johnston <jjohnstn@redhat.com>
353
354 * libunwind-frame.c: New file.
355 * libunwind-frame.h: New file.
356 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
357 * configure.in: Add --with-libunwind option support. Define
358 HAVE_LIBUNWIND if libunwind support selected / defaulted.
359 Also check for libunwind.h and libunwind-ia64.h headers.
360 * configure: Regenerated.
361 * Makefile.in: Add support for libunwind-frame.o.
362 * config.in: Regenerated.
363
287a334e
JJ
3642003-11-14 Jeff Johnston <jjohnstn@redhat.com>
365
366 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
367 set up the ia64 linux native target method for getting the kernel
368 unwind table.
369 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
370 * inftarg.c (child_xfer_partial): Enable section of code to
371 handle TARGET_OBJECT_UNWIND_TABLE.
372 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
373
140be7b8
ILT
3742003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
375
376 * config/arm/nbsd.mt (TM_FILE): Define.
377 * config/arm/tm-nbsd.h: New file.
378
0a90bcdd
AC
3792003-11-14 Andrew Cagney <cagney@redhat.com>
380
381 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
382 * ppc-sysv-tdep.c: Include "objfiles.h".
383 (ppc64_sysv_abi_push_dummy_call): Provide the
384 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
385
386 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
387 "name_of_malloc" to ".malloc".
388
087f1027
MK
3892003-11-13 Mark Kettenis <kettenis@gnu.org>
390
391 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
392
3882f37a
DC
3932003-11-13 David Carlton <carlton@kealia.com>
394
395 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
396
a8cf2722
AC
3972003-11-13 Andrew Cagney <cagney@redhat.com>
398
399 * arch-utils.h (selected_architecture_name): Declare.
400 (selected_byte_order): Declare.
401 * arch-utils.c (selected_byte_order): New function.
402 (selected_architecture_name): New function.
403 (target_architecture_auto): Make static.
404 (set_architecture_string): Make static.
405 (target_byte_order): Make static.
406 (target_byte_order_auto): Make static.
407 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
408 non-multi-arch definition.
409 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
410 (target_byte_order, target_architecture): Delete declaration.
411 (target_byte_order_auto, target_architecture_auto): Ditto.
412 * gdbarch.h: Re-generate.
413 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
414 "selected_byte_order".
415
475b6ddd
AC
4162003-11-13 Andrew Cagney <cagney@redhat.com>
417
418 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
419
a22286a9
JB
4202003-11-13 Jim Blandy <jimb@redhat.com>
421
422 * cp-namespace.c: Doc fix.
423
7bb11558
MS
4242003-11-12 Michael Snyder <msnyder@redhat.com>
425
39add00a
MS
426 * sh64_tdep.c: Regularize some names.
427 (sh_sh64_register_name): Rename to sh64_register_name.
428 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
429 (sh_sh64_register_byte): Rename to sh64_register_byte.
430 (sh_sh64_build_float_register_type):
431 Rename to sh64_build_float_register_type.
432 (sh_sh64_register_convert_to_virtual):
433 Rename to sh64_register_convert_to_virtual.
434 (sh_sh64_register_convert_to_raw):
435 Rename to sh64_register_convert_to_raw.
436
2a314ed5
MS
437 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
438 sh64_media_reg_base_num, sh64_compact_reg_base_num,
439 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
440 sh64_extract_return_value, sh64_show_media_regs,
441 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
442 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
443 sh64_pseudo_register_read, sh64_pseudo_register_write,
444 sh64_do_pseudo_register, sh_compact_print_registers_info):
445 Delete unused variable 'tdep'.
446
7bb11558
MS
447 * sh64-tdep.c: Coding standard and spelling comment fixes.
448 (sh64_extract_return_value): Replace deprecated_store_floating
449 with store_typed_floating.
450 (sh_sh64_register_convert_to_raw): Replace
451 deprecated_store_floating with store_typed_floating.
452 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
453 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
454 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
455 sh64_extract_struct_value_address, sh64_pop_frame,
456 sh64_extract_return_value, sh64_store_return_value,
457 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
458 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
459 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
460 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
461 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
462 deprecated_register_virtual_type, deprecated_register_raw_size,
463 deprecated_max_register_raw_size, or
464 deprecated_max_register_virtual_size. Instead, just set
465 gdbarch_register_type.
39add00a
MS
466 (sh_sh64_register_raw_size): Delete.
467 (sh_sh64_register_virtual_size): Delete.
7bb11558 468
e7c27a73
DJ
4692003-11-12 Daniel Jacobowitz <drow@mvista.com>
470
471 * dwarf2read.c (struct dwarf2_cu): New type.
472
473 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
474 dwarf2_cu structure to pass down.
475
476 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
477 (add_partial_enumeration, locate_pdi_sibling, process_die)
478 (read_file_scope, read_func_scope)
479 (read_lexical_block_scope, dwarf2_get_pc_bounds)
480 (dwarf2_add_field, dwarf2_attach_fields_to_type)
481 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
482 (read_structure_scope, read_enumeration, read_array_type)
483 (read_common_block, read_namespace, read_tag_pointer_type)
484 (read_tag_ptr_to_member_type, read_tag_reference_type)
485 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
486 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
487 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
488 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
489 (read_full_die. read_attribute_value, read_attribute)
490 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
491 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
492 (die_containing_type, type_at_offset, tag_type_to_type)
493 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
494 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
495
1640b821
DJ
4962003-11-12 Daniel Jacobowitz <drow@mvista.com>
497
498 PR breakpoints/1450
499 * breakpoint.c (insert_bp_location): Fix a logic error by returning
500 0 after a catchpoint fails.
501
d7891507
MC
5022003-11-11 Michael Chastain <mec.gnu@mindspring.com>
503
504 * mips-tdep.c (msymbol_size): Delete.
505
f594e5e9
MC
5062003-11-07 Michael Chastain <mec@shout.net>
507
508 * symtab.h (struct minimal_symbol): Add size.
509 * dbxread.c: Use it.
510 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
511 Rename to record_minimal_symbol.
512 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
513 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
514 (install_minimal_symbols): Ditto.
515 * objfiles.c (terminate_minimal_symbol_table): Ditto.
516 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
517 * m68hc11-tdep.c: Ditto.
518 * mips-tdep.c: Ditto.
519 * sh64-tdep.c: Ditto.
520
68e39e73
MC
5212003-11-10 Michael Chastain <mec.gnu@mindspring.com>
522
523 * MAINTAINERS: Change my e-mail address.
524
b60eb90d
AC
5252003-11-10 Andrew Cagney <cagney@redhat.com>
526
963e2bb7
AC
527 * gdbarch.sh (return_value): Replace "inval" and "outval" with
528 "readbuf" and "writebuf".
529 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
530 * d10v-tdep.c (d10v_return_value): Ditto.
531 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
532 (ppc_sysv_abi_broken_return_value): Ditto.
533 (ppc64_sysv_abi_return_value): Ditto.
534 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
535 (ppc_sysv_abi_return_value): Ditto.
536 (ppc_sysv_abi_broken_return_value): Ditto.
537 (ppc64_sysv_abi_return_value): Ditto.
538 * values.c (register_value_being_returned): Update call.
539 * stack.c (return_command): Update call.
540 * gdbarch.h, gdbarch.c: Re-generate.
541
8aa91c1e
AC
542 * target.h (struct target_ops): Order xfer buffer parameters "read
543 write" not "write read".
544 * bfd-target.c (target_bfd_xfer_partial): Update.
545 * remote.c (remote_xfer_partial): Update.
546 * inftarg.c (child_xfer_partial): Update.
547 * target.c (default_xfer_partial): Update.
548 (target_read_partial, target_write_partial): Update.
549 (debug_to_xfer_partial): Update.
550
100bcc3f
AC
551 * arch-utils.h, arch-utils.c: Fix typo in comment.
552
b60eb90d
AC
553 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
554 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
555 (set_gdbarch_from_file): Call
556 "deprecated_current_gdbarch_select_hack".
b60eb90d 557
bf922ad9
AC
5582003-11-09 Andrew Cagney <cagney@redhat.com>
559
ebdba546
AC
560 * arch-utils.c (gdbarch_update_p): New function.
561 * gdbarch.sh (gdbarch_update_p): Delete function.
562 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 563 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
564 * gdbarch.c: Re-generate.
565
7de2341d
AC
566 * gdbarch.sh (clear_gdbarch_swap): Delete function.
567 (swapout_gdbarch_swap): Delete function.
568 (swapin_gdbarch_swap): Delete function.
569 (init_gdbarch_swap): Delete function.
570 (initialize_non_multiarch): Delete function.
571 (current_gdbarch_swap_in_hack): New function.
572 (current_gdbarch_swap_out_hack): New function.
573 (current_gdbarch_swap_init_hack): New function.
574 * gdbarch.c: Re-generate.
575
db446970
AC
576 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
577 parameter to "current_gdbarch". Add comment explaining why.
578 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
579 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
580 * gdbarch.c: Re-generate.
581
341e3d11
AC
582 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
583 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
584 * config/s390/xm-linux.h: Delete file.
585 * config/m88k/xm-delta88v4.h: Delete stray.
586
bf922ad9
AC
587 * Makefile.in (arch-utils.o): Update dependencies.
588 * arch-utils.c: Include "osabi.h".
589 (gdbarch_info_fill): New function.
590 * arch-utils.h (gdbarch_info_fill): Declare.
591 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
592 * gdbarch.c: Re-generate.
593
a3640c75
MK
5942003-11-09 Mark Kettenis <kettenis@gnu.org>
595 David S. Miller <davem@redhat.com>
596
597 * glibc-tdep.c, glibc-tdep.h: New files.
598 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
599 * config/i386/linux.mt (TDEPFILES): Likewise.
600 * i386-linux-tdep.c (glibc-tdep.h): Include.
601 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
602 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
603 * arm-linux-tdep.c (glibc-tdep.h): Include.
604 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
605 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
606 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
607 (glibc_tdep_h): Define.
608 (glibc-tdep.o): Add dependencies.
609 (arm-linux-tdep.o): Update dependencies.
610 (i386-linux-tdep.o): Likewise.
611
e60e0ab2
AC
6122003-11-09 Andrew Cagney <cagney@redhat.com>
613
614 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
615 * config/mips/nm-irix6.h: Delete file.
616 * config/mips/nm-linux.h: Update copyright.
617 (MIPS_GNULINUX_TARGET): Delete macro.
618 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
619 * config/mips/xm-irix6.h: Delete file.
620 * config/mips/linux.mh (XM_FILE): Delete definition.
621 * config/mips/xm-linux.h: Delete file.
622
181555e9
AC
6232003-11-09 Andrew Cagney <cagney@redhat.com>
624
625 * d10v-tdep.c (d10v_return_value): New function.
626 (d10v_use_struct_convention): Delete function.
627 (d10v_store_return_value): Delete function.
628 (d10v_extract_struct_value_address): Delete function.
629 (d10v_gdbarch_init): Set "return_value" instead of
630 "extract_return_value", "store_return_value",
631 "extract_struct_value_address", and "use_struct_convention".
632 (RET1_REGNUM): Delete const.
633
dea0c52f
MK
6342003-11-09 Mark Kettenis <kettenis@gnu.org>
635
636 From David S. Miller <davem@redhat.com>:
637 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
638 * gdbarch.c, gdbarch.h: Regenerated.
639 * arch-utils.c (generic_skip_solib_resolver): New function.
640 * arch-utils.h (generic_skip_solib_resolver): New prototype.
641 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
642
6314a349
AC
6432003-11-07 Andrew Cagney <cagney@redhat.com>
644
645 * top.c (print_gdb_version): Replace STREQ with strcmp.
646 * valops.c (value_struct_elt_for_reference): Ditto.
647 (value_struct_elt_for_reference): Ditto.
648 * symtab.c (gdb_mangle_name): Ditto.
649 (find_line_symtab): Ditto.
650 * symmisc.c (maintenance_print_symbols): Ditto.
651 * symfile.c (symbol_file_command): Ditto.
652 * stabsread.c (define_symbol, read_type): Ditto.
653 (cleanup_undefined_types, scan_file_globals): Ditto.
654 * solib.c (solib_map_sections): Ditto.
655 * solib-svr4.c (bfd_lookup_symbol): Ditto.
656 * rs6000-tdep.c (skip_prologue): Ditto.
657 * p-valprint.c (pascal_value_print): Ditto.
658 (pascal_object_is_vtbl_ptr_type): Ditto.
659 * objfiles.c (in_plt_section): Ditto.
660 * minsyms.c (lookup_minimal_symbol): Ditto.
661 (compact_minimal_symbols): Ditto.
662 (find_solib_trampoline_target): Ditto.
663 * mdebugread.c (parse_type): Ditto.
664 * language.c (set_language_command): Ditto.
665 (set_type_command, set_range_command): Ditto.
666 * f-lang.c (add_common_block): Ditto.
667 (add_common_block): Ditto.
668 (find_first_common_named): Ditto.
669 (patch_all_commons_by_name): Ditto.
670 * elfread.c (elf_locate_sections): Ditto.
671 (elf_locate_sections): Ditto.
672 (elfstab_offset_sections): Ditto.
673 * dwarf2read.c (dwarf2_locate_sections): Ditto.
674 * dbxread.c (add_old_header_file): Ditto.
675 (find_corresponding_bincl_psymtab): Ditto.
676 (read_dbx_symtab, process_one_symbol): Ditto.
677 * coffread.c (patch_opaque_types): Ditto.
678 * cli/cli-decode.c (delete_cmd): Ditto.
679 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
680 * c-typeprint.c (c_type_print_base): Ditto.
681 * breakpoint.c (bpstat_stop_status): Ditto.
682 (clear_command, breakpoint_re_set_one): Ditto.
683
49df298f
AC
6842003-11-07 Andrew Cagney <cagney@redhat.com>
685
686 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
687 * bcache.c (struct bstring): Make "length" an unsigned short, add
688 "half_hash".
689 (struct bcache): Add "half_hash_error_count".
690 (bcache): Compute and save the "half_hash". Compare the
691 "half_hash" before comparing the length. Update
692 half_hash_error_count.
693
f168dd80
AC
6942003-11-07 Andrew Cagney <cagney@redhat.com>
695
696 * inftarg.c (child_xfer_partial): New function
697 (init_child_ops): Set "to_xfer_partial".
698
05580c65
AC
6992003-11-07 Andrew Cagney <cagney@redhat.com>
700
701 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
702 set "return_value" instead of "use_struct_convention".
703 (ppc_linux_use_struct_convention): Delete function.
704 (ppc_linux_return_value): New function.
705 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
706 (ppc_sysv_abi_broken_return_value): New function.
707 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
708 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
709 static.
710 (ppc_sysv_abi_extract_return_value): Delete function.
711 (ppc_sysv_abi_broken_extract_return_value): Delete function.
712 (ppc_sysv_abi_store_return_value): Delete function.
713 (ppc_sysv_abi_broken_store_return_value): Delete function.
714 (ppc_sysv_abi_use_struct_convention): Delete function.
715 (ppc64_sysv_abi_use_struct_convention): Delete function.
716 (ppc64_sysv_abi_extract_return_value): Delete function.
717 (ppc64_sysv_abi_store_return_value): Delete function.
718 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
719 (ppcnbsd_init_abi): Set "return_value", instead of
720 "use_struct_convention", "extract_return_value", and
721 "store_return_value".
722 (ppcnbsd_use_struct_convention): Delete function.
723 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
724 (ppc_sysv_abi_return_value): Declare.
725 (ppc_sysv_abi_broken_return_value): Declare.
726 (ppc_sysv_abi_use_struct_convention): Delete.
727 (ppc_sysv_abi_store_return_value): Delete.
728 (ppc_sysv_abi_extract_return_value): Delete.
729 (ppc_sysv_abi_broken_store_return_value): Delete.
730 (ppc_sysv_abi_broken_extract_return_value): Delete.
731 (ppc64_sysv_abi_use_struct_convention): Delete.
732 (ppc64_sysv_abi_extract_return_value): Delete.
733 (ppc64_sysv_abi_store_return_value): Delete.
734 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
735 set "return_value" instead of "extract_return_value",
736 "store_return_value", and "use_struct_convention".
737
1763fba4
MK
7382003-11-07 Mark Kettenis <kettenis@gnu.org>
739
22c7ba1a
MK
740 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
741
1763fba4
MK
742 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
743 fscanf.
744
fc07cc2d
MK
7452003-11-07 Mark Kettenis <kettenis@gnu.org>
746
747 * fbsd-proc.c: Fix formatting.
748
6a748db6
KB
7492003-11-06 Kevin Buettner <kevinb@redhat.com>
750
751 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
752 Define.
753 (new_variant): Set name for iacc0_regnum.
754 (frv_register_name): Accommodate pseudo-registers.
755 (frv_register_type): Add case for iacc0_regnum.
756 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
757 (frv_gdbarch_init): Set number of pseudo registers. Establish
758 pseudo-register read/write methods.
759
bf896cb0
AC
7602003-11-06 Andrew Cagney <cagney@redhat.com>
761
762 * valops.c (destructor_name_p): Replace STREQN with strncmp.
763 * top.c (command_line_input): Ditto.
764 * objc-exp.y (yylex): Ditto.
765 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
766 * jv-exp.y (yylex): Ditto.
767 * f-exp.y (yylex): Ditto.
768 * event-top.c (command_line_handler): Ditto.
769 * environ.c (get_in_environ): Ditto.
770 (set_in_environ): Ditto.
771 * dwarfread.c (handle_producer): Ditto.
772 * dbxread.c (process_one_symbol): Ditto.
773 * c-typeprint.c (c_type_print_base): Ditto.
774 * c-exp.y (yylex): Ditto.
775
0b603eba
AC
7762003-11-06 Andrew Cagney <cagney@redhat.com>
777 Jeff Johnston <jjohnstn@redhat.com>
778
779 * target.c (add_target): Only set "to_xfer_partial" when NULL.
780 (init_dummy_target): Set "to_xfer_partial".
781
9cedbfec
AC
7822003-11-06 Andrew Cagney <cagney@redhat.com>
783
784 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
785 REGISTER_CONVENTION.
786
26bb91f3
DJ
7872003-11-06 Daniel Jacobowitz <drow@mvista.com>
788
789 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
790 static.
791
0bde7532
DJ
7922003-11-06 Daniel Jacobowitz <drow@mvista.com>
793
794 * breakpoint.c (remove_breakpoint): Take an bp_location
795 instead of a breakpoint argument. Check the bp_location's type.
796 Fix a reversed condition for hardware breakpoints.
797
798 (insert_bp_location): Update call to remove_breakpoint.
799 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
800 (remove_hw_watchpoints): Likewise.
801 (reattach_breakpoints): Likewise.
802 (detach_breakpoints): Likewise.
803 (delete_breakpoint): Likewise.
804
075f6582
DJ
8052003-11-06 Daniel Jacobowitz <drow@mvista.com>
806
807 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
808 (beakpoint_init_inferior): Likewise.
809 (breakpoint_here_p): Likewise. Only check addresses for software
810 or hardware breakpoints.
811 (breakpoint_inserted_here_p): Likewise.
812 (breakpoint_thread_match): Likewise. Correct comment.
813 (bpstat_have_active_hw_watchpoints): Likewise.
814 (check_duplicates): Likewise.
815
879bfdc2
DJ
8162003-11-06 Daniel Jacobowitz <drow@mvista.com>
817
818 * breakpoints.c (insert_bp_location): New function, broken out
819 from insert_breakpoints. Work on an bp_location instead of a
820 breakpoint.
821 (insert_breakpoints): Use it.
822
cf3a9e5b
DJ
8232003-11-06 Daniel Jacobowitz <drow@mvista.com>
824
825 * breakpoint.h (struct bp_location): Add section.
826 (struct breakpoint): Remove section.
827 * breakpoint.c (insert_breakpoints, remove_breakpoint)
828 (breakpoint_here_p, breakpoint_inserted_here_p)
829 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
830 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
831 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
832 section through loc.
833
ffce0d52
DJ
8342003-11-06 Daniel Jacobowitz <drow@mvista.com>
835
836 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
837 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
838
e049a4b5
DJ
8392003-11-06 Daniel Jacobowitz <drow@mvista.com>
840
841 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
842 arguments. Initialize owner and type for the new breakpoint
843 location item.
844 (set_raw_breakpoint): Update call to allocate_bp_location.
845
7cc221ef
DJ
8462003-11-06 Daniel Jacobowitz <drow@mvista.com>
847
848 * breakpoint.h (struct bp_location): Add a chain pointer.
849 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
850 macros.
851 (bp_location_chain): New variable.
852 (allocate_bp_location): New function.
853 (set_raw_breakpoint): Use it.
854 (delete_breakpoint): Remove ->loc from the bp_location_chain.
855
5cab636d
DJ
8562003-11-06 Daniel Jacobowitz <drow@mvista.com>
857
858 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
859 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 860 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
861 * breakpoint.c (condition_command, read_memory_nobpt)
862 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
863 (reattach_breakpoints, update_breakpoints_after_exec)
864 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
865 (breakpoint_init_inferior, breakpoint_here_p)
866 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
867 (breakpoint_thread_match, bpstat_stop_status)
868 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
869 (describe_other_breakpoints, check_duplicates)
870 (make_breakpoint_permanent, create_thread_event_breakpoint)
871 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
872 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
873 (watch_command_1, print_one_exception_catchpoint)
874 (clear_command, breakpoint_re_set_one): Adjust member accesses to
875 use the breakpoint's ->loc.
876 (set_raw_breakpoint): Likewise. Initialize ->loc.
877 (delete_breakpoint): Likewise. Free ->loc.
878
7be0c536
AC
8792003-11-05 Andrew Cagney <cagney@redhat.com>
880
4c7d882e
AC
881 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
882 macro.
883 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
884 * config/i386/tm-cygwin.h
885 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
886 * config/powerpc/tm-linux.h
887 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
888 (at_subroutine_call_instruction_target): Delete declaration.
889 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
890 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
891 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
892
7be0c536
AC
893 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
894 "struct bfd_section" and "struct bfd".
895 * target.h (struct section_table): Ditto.
896 * rs6000-nat.c (xcoff_relocate_core): Ditto.
897 * solib-svr4.c (elf_locate_base): Ditto.
898 * pa64solib.c (dld_cache_t): Ditto.
899 * objfiles.h (struct obj_section): Ditto.
900 * objfiles.c (add_to_objfile_sections): Ditto.
901 * exec.c (bfdsec_to_vmap): Ditto.
902 (add_to_section_table): Ditto.
903 (build_section_table): Ditto.
904 * corelow.c (get_core_register_section): Ditto.
905 * coffread.c (find_linenos): Ditto.
906 * elfread.c (elf_interpreter): Delete #if0'd function.
907
908 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
909 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
910 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
911 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
912
913 * arch-utils.h (generic_cannot_extract_struct_value_address):
914 Delete declaration.
915 * wince.c (_initialize_wince): Fix multi-line string.
916 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
917
d8fe84e3
EZ
9182003-11-05 Elena Zannoni <ezannoni@redhat.com>
919
920 * top.c (execute_command): Fix broken logic for command execution
921 while inferior is running in async mode.
922
cbdfc7c0
MK
9232003-11-06 Mark Kettenis <kettenis@gnu.org>
924
925 * dwarf2-frame.c (execute_cfa_program): Mark register as
926 REG_SAVED_REG for DW_CFA_register opcode.
927
dac94105
MK
9282003-11-05 Mark Kettenis <kettenis@gnu.org>
929
930 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
931 %rsp, %rip and %eflags to match ABI-change.
932
85bf2b91
JJ
9332003-11-05 Jeff Johnston <jjohnstn@redhat.com>
934
935 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
936 (ia64_gdbarch_init): Don't bother calculating the os.
937 Instead use the gdbarch_info struct and look at the osabi field.
938 Also use gdbarch_list_lookup_by_info() to look for a
939 candidate gdbarch.
940
cd31fb03
KB
9412003-11-05 Kevin Buettner <kevinb@redhat.com>
942
943 * frv-tdep.c (frv_register_byte): Delete.
944 (frv_extract_return_value, frv_store_return_value)
945 (frv_extract_struct_value_address): Don't call frv_register_byte().
946 Convert to non-deprecated form.
947 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
948 Convert calls to set_gdbarch_deprecated_extract_return_value(),
949 set_gdbarch_deprecated_store_return_value(), and
950 set_gdbarch_deprecated_extract_struct_value_address() into
951 non-deprecated forms.
952
0a056982
AC
9532003-11-05 Andrew Cagney <cagney@redhat.com>
954
955 * mips-tdep.c (mips_dump_tdep): Do not print
956 PRINT_EXTRA_FRAME_INFO.
957 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
958 Rename PRINT_EXTRA_FRAME_INFO.
959 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
960 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
961 (mips_print_extra_frame_info): Delete declaration.
962 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
963
29e0a062
EZ
9642003-11-05 Elena Zannoni <ezannoni@redhat.com>
965
966 * coffread.c (coff_symtab_read): Remove passing of info parameter
967 to prim_record_minimal_symbol_and_info.
968
8af580fc
EZ
9692003-11-05 Elena Zannoni <ezannoni@redhat.com>
970
971 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
972 (decode_base_type): Delete ifdeffed out code.
973
507836c0
AC
9742003-11-04 Andrew Cagney <cagney@redhat.com>
975
976 * symtab.c (find_active_alias): Delete function.
977 (lookup_block_symbol): Delete alias code.
978 * stabsread.c (resolve_live_range): Delete function.
979 (add_live_range): Delete function.
980 (resolve_symbol_reference): Delete function.
981 (define_symbol): Delete live range and alias code.
982 (scan_file_globals): Delete alias code.
983 * symtab.h (SYMBOL_RANGES): Delete macro.
984 (struct range_list): Delete structure.
985 (struct symbol): Delete field "ranges".
986 (SYMBOL_ALIASES): Delete macro.
987 (struct alias_list): Delete structure.
988 (struct symbol): Delete field "aliases".
989
1083b3bc
MS
9902003-11-04 Michael Snyder <msnyder@redhat.com>
991
992 * MAINTAINERS: Remove myself as owner of breakpoints and
993 of sparc/solaris.
994
474e5826
CV
9952003-11-03 Corinna Vinschen <vinschen@redhat.com>
996
997 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
998 (sh_sh4al_dsp_register_name): Ditto.
999 (sh4_nofpu_show_regs): Ditto.
1000 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1001 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1002
2160782c
AC
10032003-11-03 Andrew Cagney <cagney@redhat.com>
1004
1005 * bcache.c: Include "gdb_assert.h".
1006 (struct bcache): Add fields "expand_count" and
1007 "expand_hash_count".
1008 (expand_hash_table): Update the expand counts.
1009 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1010 on object sizes and hashes.
1011 * Makefile.in (bcache.o): Update dependencies.
1012
85302095
AC
10132003-11-03 Andrew Cagney <cagney@redhat.com>
1014
1015 * exec.c (xfer_memory): Eliminate xfer_fn.
1016
526eef89
KB
10172003-10-31 Kevin Buettner <kevinb@redhat.com>
1018
1019 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1020 (opcodes/frv-desc.h): Include.
1021 (iacc0h_regnum, iacc0l_regnum): Define.
1022 (last_spr_regnum, frv_num_regs): Update.
1023 (new_variant): Don't supply default names for holes in the SPRs.
1024 Supply names for iacc0h_regnum and iacc0l_regnum.
1025 (frv_register_type): Use symbolic constants first_fpr_regnum and
1026 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1027 builtin_type_int instead of builtin_type_int32.
1028 (frv_register_sim_regno): New function.
1029 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1030 * Makefile.in (gdb_sim_frv_h): Define.
1031 (frv-tdep.o): Update dependencies.
1032
9e815ec2
AC
10332003-10-31 Andrew Cagney <cagney@redhat.com>
1034
1035 * avr-tdep.c (avr_frame_this_id): Do not call
1036 deprecated_inside_entry_file.
1037 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1038 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1039 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1040 * arm-tdep.c (arm_prologue_this_id): Ditto.
1041 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1042
e372db49
JB
10432003-10-31 Jim Blandy <jimb@redhat.com>
1044
1045 * elfread.c (elf_symtab_read): Allocate correct number of tail
1046 elements to sectinfo structure. (Fix from Woody LaRue.)
1047
e8bcf01f
AC
10482003-10-31 Andrew Cagney <cagney@redhat.com>
1049
1050 * stack.c (return_command): Use get_frame_type, instead of
1051 CALL_DUMMY_HAS_COMPLETED.
1052 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1053 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1054
4c05fe53
MK
10552003-10-31 Mark Kettenis <kettenis@gnu.org>
1056
1057 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1058 explicitly specify size of array.
1059 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1060 TDEP->sc_num_regs.
1061
c8b91b89
AC
10622003-10-31 Andrew Cagney <cagney@redhat.com>
1063
1064 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1065 function.
1066 (s390_gdbarch_init): Set extract_struct_value_address.
1067 * arch-utils.c (generic_cannot_extract_struct_value_address):
1068 Delete function.
1069 * arch-utils.h (generic_cannot_extract_struct_value_address):
1070 Delete definition.
1071
fdfb6fc8
MK
10722003-10-31 Mark Kettenis <kettenis@gnu.org>
1073
1074 * i386-linux-nat.c (fetch_core_registers): Remove.
1075 (linux_elf_core_fns): Remove.
1076 (_initialize_i386_linux_nat): Remove.
1077
2f4950cd
AC
10782003-10-31 Andrew Cagney <cagney@redhat.com>
1079
1080 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1081 "exec.h".
1082 (exec_entry_point): New function.
1083 (enable_break): Create a "tmp_bfd_target", use that and
1084 entry_point_address when computing the relocation offset.
1085 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1086 * Makefile.in (solib-svr4.o): Update dependencies.
1087
bba2d28d
AC
10882003-10-31 Andrew Cagney <cagney@redhat.com>
1089
1090 * defs.h (XZALLOC): Define.
1091 * target.h (struct target_ops): Add "to_data";
1092 * bfd-target.h, bfd-target.c: New files.
1093 * Makefile.in (SFILES): Add "bfd-target.c".
1094 (COMMON_OBS): Add "bfd-target.o".
1095 (bfd-target.o): Specify dependencies.
1096 (bfd_target_h): Define.
1097 * defs.h (XZALLOC): Define.
1098
6066c3de
AC
10992003-10-31 Andrew Cagney <cagney@redhat.com>
1100
1101 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1102 adjust_breakpoint_address.
1103 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1104 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1105 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1106 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1107
4b8a223f
AC
11082003-10-31 Andrew Cagney <cagney@redhat.com>
1109
1110 * target.h (struct target_ops): Replace "to_read_partial" and
1111 "to_write_partial" with "to_xfer_partial". Update comments.
1112 * target.c (debug_to_write_partial): Delete function.
1113 (debug_to_xfer_partial): Replace debug_to_read_partial.
1114 (add_target, update_current_target, setup_target_debug): Set
1115 "to_xfer_partial" instead of "to_read_partial" and
1116 "to_write_partial".
1117 (default_xfer_partial): Replace "default_write_partial".
1118 (default_read_partial): Delete.
1119 (target_read_partial, target_write_partial): Call
1120 "to_xfer_partial".
1121 * remote.c (init_remote_ops): Set "to_xfer_partial".
1122 (init_remote_async_ops): Ditto.
1123 (remote_xfer_partial): Replace "remote_read_partial".
1124
66a72d25
MK
11252003-10-31 Mark Kettenis <kettenis@gnu.org>
1126
1127 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1128 registers in `fxsave' format.
1129 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1130
9a12a2a0
MK
11312003-10-30 Mark Kettenis <kettenis@gnu.org>
1132
e9f1aad5
MK
1133 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1134 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1135 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1136
bb489b3c
MK
1137 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1138 specify size of array.
1139 (i386_linux_init_abi): Remove initialization of
1140 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1141 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1142
da285bc4
MK
1143 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1144 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1145 core-regset.o.
1146
9a12a2a0
MK
1147 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1148 the ELF header.
1149
0e24ac5d
MK
11502003-10-29 Mark Kettenis <kettenis@gnu.org>
1151
6d6d8e9c
MK
1152 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1153 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1154 core-regset.o.
1155
25e60c9b
MK
1156 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1157
0e24ac5d
MK
1158 * corelow.c: Include "arch-utils.h", "regset.h" and
1159 "gdb_assert.h".
1160 (core_gdbarch): New variable.
1161 (sniff_core_bfd): Don't sniff if we have support for register sets
1162 in CORE_GDBARCH.
1163 (core_close): Reset CORE_GDBARCH.
1164 (core_open): Initialize CORE_GDBARCH.
1165 (get_core_register_section): Use register sets if they are
1166 supported by CORE_GDBARCH.
1167 (get_core_registers): Don't print error message if we have support
1168 for register sets in CORE_GDBARCH.
1169
0a0a4ac3
AC
11702003-10-29 Andrew Cagney <cagney@redhat.com>
1171
1172 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1173 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1174
7b097ae3
MK
11752003-10-29 Mark Kettenis <kettenis@gnu.org>
1176
1177 * objfiles.h (clear_objfile_data): New prototype.
1178 * objfiles.c (clear_objfile_data): New function.
1179 * symfile.c (reread_symbols): Clear per-objfile data.
1180
46f45a4a
JJ
11812003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1182
1183 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1184 printf_unfiltered instead of printf_filtered for output messages.
1185 (add_symbol_file_command): Ditto.
1186 (reread_symbols): Ditto.
1187 (overlay_auto_command): Ditto.
1188 (overlay_manual_command): Ditto.
1189 (overlay_off_command): Ditto.
1190
2b026650
MK
11912003-10-27 Mark Kettenis <kettenis@gnu.org>
1192
1193 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1194 (gdbarch_from_bfd): New function.
1195 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1196 deprecated_select_gdbarch_hack.
1197 * arch-utils.h (gdbarch_from_bfd): New prototype.
1198
0bcad584 11992003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1200
1201 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1202 arch_info. Use warning instead of fprintf_filtered. Do not use
1203 deprecated bfd_printable_arch_mach.
1204
7f398216
KB
12052003-10-26 Kevin Buettner <kevinb@redhat.com>
1206
1207 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1208 Delete.
1209 (frv_register_type): Rename from frv_register_virtual_type. Add
1210 ``struct gdbarch *'' parameter.
1211 (frv_gdbarch_init): Delete calls to the following functions:
1212 set_gdbarch_deprecated_size(),
1213 set_gdbarch_deprecated_register_bytes(),
1214 set_gdbarch_deprecated_register_raw_size(),
1215 set_gdbarch_deprecated_max_register_raw_size(),
1216 set_gdbarch_deprecated_register_virtual_size(),
1217 set_gdbarch_deprecated_max_register_virtual_size(),
1218 set_gdbarch_deprecated_register_virtual_size(),
1219 set_gdbarch_deprecated_register_virtual_type().
1220 Add call to function set_gdbarch_register_type().
1221
bcf48cc7
MK
12222003-10-26 Mark Kettenis <kettenis@gnu.org>
1223
6c7de422
MK
1224 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1225 FDOFF_REGNUM): Remove defines.
1226 * win32-nat.c (do_child_fetch_inferior_registers): Include
1227 "i387-tdep.h".
3e685d41 1228 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1229 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1230 undefine I387_ST0_REGNUM.
1231
f783586b
MK
1232 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1233 * x86-64-tdep.c (x86_64_store_return_value): Use
1234 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1235
bcf48cc7
MK
1236 Change register numbers to enumartion values.
1237 * i386-tdep.h (enum i386_regnum): New.
1238 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1239 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1240 I386_ST0_REGNUM): Remove defines.
1241 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1242 I386_EDI_REGNUM): Remove defines.
1243
b6591e8b
AC
12442003-10-24 Andrew Cagney <cagney@redhat.com>
1245
1246 * target.c: Include "gdbcore.h".
1247 (get_target_memory, get_target_memory_unsigned): New functions.
1248 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1249 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1250 Use get_target_memory_unsigned.
1251 * Makefile.in (target.o): Update dependencies.
1252
5f724446
AC
12532003-10-24 Andrew Cagney <cagney@redhat.com>
1254
ce2826aa
AC
1255 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1256 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1257 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1258 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1259 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1260
5f724446
AC
1261 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1262 (can_run_code_for): Use the OO term "singleton".
1263
fc70c2a0
AC
12642003-10-23 Andrew Cagney <cagney@redhat.com>
1265
1266 * Makefile.in (stack.o): Add $(regcache_h).
1267 * stack.c: Include "regcache.h"
1268 (return_command): Rewrite. Use get_frame_id and
1269 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1270 about unhandled return-values.
1271 * value.h (set_return_value): Delete declaration.
1272 * values.c (set_return_value): Delete function.
1273
4afcc598
JJ
12742003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1275
1276 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1277 (pseudo_regs): Add comment regarding register stack registers.
1278 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1279 (floatformat_valid): New static routine.
1280 (floatformat_ia64_ext): Add name field and set up is_valid routine
1281 to floatformat_valid().
1282 (examine_prologue): For the previous cfm, use
1283 frame_unwind_register()
1284 if the cfm is not stored in a register-stack register. Save the
1285 previous cfm value in the prev_cfm field. Add debug output.
1286 (ia64_frame_this_id): Use frame_id_build_special() to also register
1287 the bsp. Add debug output.
1288 (ia64_sigtramp_frame_this_id): Ditto.
1289 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1290 registers and also add some checks for framelessness before accepting
1291 current register values for fields such as return address. For cfm,
1292 use the cached prev_cfm field if available. Add comment to explain
1293 PSR logic. Add debug output.
1294 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1295 as part of initialization.
1296 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1297 calculated. Cache the bsp and cfm values.
1298 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1299 instead of using ia64_frame_prev_register() which doesn't expect most
1300 registers to be saved. The saved values for bsp and sp
1301 can be taken from the cache. Add debug output.
1302 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1303 the bsp.
1304
6cfae0bc
JB
13052003-10-23 Jim Blandy <jimb@redhat.com>
1306
1307 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1308 architecture the current arch can run code for --- but not if it's
1309 a superset.
1310 (can_run_code_for): New function.
1311
fcd182f9
JW
13122003-10-22 James E Wilson <wilson@specifixinc.com>
1313
1314 * MAINTAINERS: Move myself from paper trail section back to write
1315 after approval section.
1316
4646aa9d
AC
13172003-10-22 Andrew Cagney <cagney@redhat.com>
1318
1319 * exec.h: New file.
1320 * win32-nat.c: Include "exec.h".
1321 * solib.c: Include "exec.h".
1322 * target.h (build_section_table): Delete declaration.
1323 * somsolib.c: Include "exec.h".
1324 (exec_ops): Delete extern declaration.
1325 * rs6000-nat.c: Update copyright. Include "exec.h".
1326 (exec_ops): Delete extern declaration.
1327 * pa64solib.c: Update copyright. Include "exec.h".
1328 (exec_ops): Delete extern declaration.
1329 * exec.c: Update copyright. Include "exec.h".
1330 * corelow.c: Update dependencies. Include "exec.h".
1331 * Makefile.in (exec_h): Define.
1332 (exec.o, somsolib.o): Update dependencies.
1333 (pa64solib.o, corelow.o): Update dependencies.
1334
0088c768
AC
13352003-10-22 Andrew Cagney <cagney@redhat.com>
1336
1337 * target.c: Include "gdb_assert.h" (target_read): Call
1338 "target_read_partial", not "target_write_partial".
1339 (default_read_partial, default_write_partial): New function.
1340 (target_read_partial, target_write_partial): Simplify, assume that
1341 there is always a read/write method.
1342 (update_current_target, add_target): Always set "to_read_partial"
1343 and "to_write_partial".
1344 (target_write, target_read): Fail on a zero byte transfer.
1345 * Makefile.in (target.o): Update dependencies.
1346 * target.h: Update copyright date.
1347 (target_object): Fix typo.
1348
e2d0e7eb
AC
13492003-10-22 Andrew Cagney <cagney@redhat.com>
1350
1351 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1352 multi-arch method, add "targ" parameter.
1353 (struct target_ops): Declare.
1354 * gdbarch.h, gdbarch.c: Re-generate.
1355 * Makefile.in (c-valprint.o): Update dependencies.
1356 * arch-utils.h: Update copyright.
1357 (convert_from_func_ptr_addr_identity): Declare.
1358 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1359 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1360 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1361 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1362 * infcall.c (find_function_addr, call_function_by_hand): Update.
1363 * c-valprint.c: Include "target.h".
1364 (print_function_pointer_address): Update.
1365
f1c07ab0
AC
13662003-10-22 Andrew Cagney <cagney@redhat.com>
1367
1368 * target.c (target_close): New function.
1369 (debug_to_close): Use "target_close".
1370 (push_target): Use "target_close".
1371 (unpush_target): Use "target_close".
1372 (pop_target): Use "target_close".
1373 * target.h (struct target_ops): Add "to_xclose".
1374 (target_open): Delete macro. Move comment to "to_open".
1375 (target_close): Replace macro with function that takes a target.
1376 * top.c (quit_target): Pass "current_target" to "target_close".
1377
5520a790
EZ
13782003-10-21 Elena Zannoni <ezannoni@redhat.com>
1379
1380 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1381 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1382 * symtab.h (lookup_minimal_symbol_text): Update.
1383 * breakpoint.c (create_overlay_event_breakpoint,
1384 create_longjmp_breakpoint): Update callers.
1385 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1386 * symtab.c (find_pc_sect_line): Ditto.
1387
caa92b73
AC
13882003-10-21 Andrew Cagney <cagney@redhat.com>
1389
1390 * target.c (errno): Delete extern declaration.
1391
aa2a9a3c
JJ
13922003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1393
1394 * ia64-tdep.c: Change all occurrences of
1395 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1396 (ia64_frame_prev_register): Minor whitespace change.
1397
4beec2b7
MC
13982003-10-20 Michael Chastain <mec@shout.net>
1399
1400 * config/djgpp/fnchange.lst: Add lines for:
1401 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1402 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1403 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1404 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1405 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1406 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1407 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1408
92ad9cd9
AC
14092003-10-20 Andrew Cagney <cagney@redhat.com>
1410
1411 * values.c (register_value_being_returned): Update comments. Use
1412 "gdbarch_return_value" when available.
1413 (using_struct_return): Ditto.
1414 (set_return_value): Ditto. Use "gdbarch_return_value" when
1415 available.. Print a warning, and not an error, when an unhandled
1416 return type is encountered.
1417 * infcmd.c: Include "gdb_assert.h".
1418 (print_return_value): When gdbarch_return_value_p, and using
1419 struct return, assume that the value is not available.
1420 * defs.h (return_value_convention): Define.
1421 * gdbarch.sh (gdbarch_return_value): New predicate method.
1422 * gdbarch.h, gdbarch.c: Re-generate
1423 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1424
198beae2
AC
14252003-10-20 Andrew Cagney <cagney@redhat.com>
1426
1427 * symtab.c: Replace "struct sec" with "struct bfd_section".
1428 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1429
24d693a6 14302003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1431
1432 * config/djgpp/fnchange.lst: Add lines for:
1433 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1434 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1435 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1436
21ad8dc3
MK
14372003-10-19 Mark Kettenis <kettenis@gnu.org>
1438
1439 * amd64fbsd-nat.c (fetch_inferior_registers,
1440 store_inferior_registers): Remove functions.
1441 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1442
cced5e27
MK
14432003-10-18 Mark Kettenis <kettenis@gnu.org>
1444
1445 Add NetBSD/amd64 native configuration:
1446 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1447 * amd64nbsd-tdep.c: New file.
1448 * amd64nbsd-nat.c: New file.
1449 * amd64bsd-nat.c: New file.
1450 * config/i386/nbsd64.mh: New file.
1451 * config/i386/nbsd64.mt: New file.
1452 * configure.host: Add x86_64-*-netbsd*.
1453 * configure.tgt: Add x86_64-*-netbsd*.
1454 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1455 New targets.
1456 * NEWS (New native configurations): Mention NetBSD/amd64.
1457
666de3fd
MC
14582003-10-17 Michael Chastain <mec@shout.net>
1459
1460 * config/djgpp/fnchange.lst: Remove dead lines for:
1461 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1462 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1463 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1464 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1465 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1466 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1467 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1468 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1469 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1470 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1471 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1472 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1473 gdb/config/sparc/tm-sparclite.h,
1474 gdb/gdbtk/generic/ChangeLog-2001,
1475 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1476 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1477 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1478 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1479 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1480 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1481 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1482 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1483 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1484 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1485 itcl/iwidgets3.0.0/demos/fileselectionbox,
1486 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1487 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1488 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1489 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1490 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1491 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1492 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1493 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1494 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1495 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1496 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1497 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1498 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1499 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1500 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1501 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1502 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1503 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1504 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1505 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1506 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1507 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1508 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1509 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1510 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1511 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1512 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1513 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1514 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1515 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1516 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1517 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1518 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1519 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1520 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1521 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1522 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1523 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1524 itcl/iwidgets3.0.0/demos/scrolledframe,
1525 itcl/iwidgets3.0.0/demos/scrolledhtml,
1526 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1527 itcl/iwidgets3.0.0/demos/scrolledtext,
1528 itcl/iwidgets3.0.0/demos/selectionbox,
1529 itcl/iwidgets3.0.0/demos/selectiondialog,
1530 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1531 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1532 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1533 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1534 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1535 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1536 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1537 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1538 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1539 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1540 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1541 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1542 itcl/iwidgets3.0.0/doc/selectionbox.n,
1543 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1544 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1545 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1546 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1547 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1548 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1549 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1550 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1551 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1552 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1553 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1554 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1555 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1556 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1557 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1558 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1559 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1560 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1561 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1562 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1563 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1564 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1565 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1566 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1567 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1568 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1569 itcl/iwidgets3.0.0/tests/selectionbox.test,
1570 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1571 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1572 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1573 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1574 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1575 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1576 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1577 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1578 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1579 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1580 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1581 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1582 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1583 tk/mac/tkMacProjects.sit.hqx.
1584
1e3ff5ad
AC
15852003-10-17 Andrew Cagney <cagney@redhat.com>
1586
8db32d44
AC
1587 * target.c (target_section_by_addr): New function.
1588 (do_xfer_memory): Use "target_section_by_addr".
1589 * target.h (target_section_by_addr): Declare.
1590
1e3ff5ad
AC
1591 * target.h (struct target_ops): Add "to_read_partial" and
1592 "to_write_partial", delete "to_query".
1593 (target_read_partial, target_write_partial): Declare.
1594 (target_read, target_write): Declare.
1595 (target_query): Delete macro.
1596 * target.c (target_read_partial): New function.
1597 (target_write_partial, target_read, target_write): New function.
1598 (update_current_target): Delete inheritance of "to_query". Add
1599 comments about "to_read_partial" and "to_write_partial".
1600 (debug_to_partial_read, debug_to_partial_write): New functions.
1601 (debug_to_query): Delete function.
1602 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1603 instead of "to_query".
1604 * remote.c (remote_read_partial): Replace "remote_query".
1605 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1606 (init_remote_async_ops): Ditto.
1607 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1608 "target_read_partial" instead of "target_query".
1609 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1610 Use "target_read_partial" instead of "target_query".
1611
48c66725
JJ
16122003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1613
1614 * frame.h (struct frame_id): Add new field: special_addr.
1615 (frame_id_build_special): New prototype.
1616 * frame.c (frame_id_build_special): New function.
1617 (frame_id_build): Change to call frame_id_build_special().
1618 (frame_id_eq): Change to also test special_addr field.
1619 (frame_id_inner): Update comment.
1620
7998dfc3
AC
16212003-10-17 Andrew Cagney <cagney@redhat.com>
1622
1623 * target.c (update_current_target): Perform the target cleanup.
1624 Put the target stack beneath the squashed "current_target".
1625 (add_target): Delete disabled call to "cleanup_target".
1626 (cleanup_target): Delete function.
1627 (push_target, unpush_target): Do not call "cleanup_target".
1628
9c04404e 16292003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1630
1631 * target.c (target_stack): Change to a static target_ops.
1632 (update_current_target): Walk the "struct target_ops" stack.
1633 (pop_target, do_xfer_memory, target_info): Ditto.
1634 (find_target_beneath): Ditto.
1635 (push_target): Rewrite to use the "struct target_ops" stack.
1636 (unpush_target): Ditto.
1637 * target.h (struct target_stack_item): Delete definition.
1638 (target_stack): Delete declaration.
1639 (struct target_ops): Add field "beneath".
1640
c98a2b49 16412003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1642
1643 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1644 declaration.
1645 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1646 (h8300_examine_prologue): Use h8300_normal_mode flag
1647 (h8300_gdbarch_init): Set architecture info for normal mode
1648
506fb367
DJ
16492003-10-16 Daniel Jacobowitz <drow@mvista.com>
1650
1651 * remote.c (remote_protocol_vcont): New variable.
1652 (set_remote_protocol_vcont_packet_cmd): New function.
1653 (show_remote_protocol_vcont_packet_cmd): New function.
1654 (init_all_packet_configs): Handle remote_protocol_vcont.
1655 (remote_vcont_probe): New function.
1656 (remote_vcont_resume): New function.
1657 (remote_resume): Use it.
1658 (remote_async_resume): Call remote_resume.
1659 (_initialize_remote): Add verbose-resume packet commands.
1660
65815ea1
AC
16612003-10-16 Andrew Cagney <cagney@redhat.com>
1662
1663 * infrun.c (handle_inferior_event): Add comment about
1664 "frame_id_inner" being too weak.
1665
40324f1b
EZ
16662003-10-16 Elena Zannoni <ezannoni@redhat.com>
1667
1668 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1669 second parameter, which is always null. Remove
1670 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1671 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1672 accordingly.
1673 * somsolib.c (som_solib_create_inferior_hook,
1674 som_solib_desire_dynamic_linker_symbols): Update callers.
1675 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1676
16772003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1678
1679 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1680 debug interface, SDI (Scalable Debug Interface).
1681 * NEWS: Mention m32r SDI protocol was supported.
1682 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1683 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1684
51931cbb
JJ
16852003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1686
1687 * ia64-linux-tdep.c: Include gdbcore.h.
1688 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1689 (ia64_linux_sigcontext_register_addr): Find the address of the
1690 sigcontext area stored in the sigframe instead of using
1691 a magic offset constant.
1692
84e7fd53
AC
16932003-10-15 Andrew Cagney <cagney@redhat.com>
1694
1695 * remote.c (remote_search): Delete function.
1696 * target.h (target_search): Delete disabled macro.
1697 (struct target_ops): Delete disabled field "to_search".
1698
0f4d7c52
KB
16992003-10-14 Kevin Buettner <kevinb@redhat.com>
1700
1701 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1702 instead of deprecated_inside_entry_file().
1703
2e952408
CV
17042003-10-14 Corinna Vinschen <vinschen@redhat.com>
1705
1706 * sh-tdep.c: Fix copy/paste hangover in comment.
1707 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1708 mode.
1709 (sh3e_sh4_extract_return_value): Ditto.
1710
7e86466e
RH
17112003-10-13 Richard Henderson <rth@redhat.com>
1712
1713 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1714 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1715 match c_val_print a bit closer.
1716
46a16dba
KB
17172003-10-13 Kevin Buettner <kevinb@redhat.com>
1718
1719 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1720 (frv_gdbarch_adjust_breakpoint_address): New function.
1721 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1722 method.
1723
76897487
KB
17242003-10-13 Kevin Buettner <kevinb@redhat.com>
1725
1726 * breakpoint.h (struct breakpoint): Add new member
1727 ``requested_address''.
1728 * breakpoint.c (breakpoint_adjustment_warning)
1729 (adjust_breakpoint_address): New static functions.
1730 (print_it_typical): Issue warning if breakpoint's address is different
1731 from its requested address.
1732 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1733 (breakpoint_re_set_one): Set breakpoint's
1734 ``requested_address'' field. Set ``address'' field to the
1735 result of calling adjust_breakpoint_address() on the requested
1736 address.
1737
a1131521
KB
17382003-10-13 Kevin Buettner <kevinb@redhat.com>
1739
1740 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1741 * gdbarch.h, gdbarch.c: Regenerate.
1742
6ce6d90f
MK
17432003-10-11 Mark Kettenis <kettenis@gnu.org>
1744
155c1d33
MK
1745 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1746 TDEP->sc_num_regs.
1747
8a96bc77
MK
1748 * i386fbsd-tdep.c: New file.
1749 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1750 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1751 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1752 i386bsd-tdep.c.
1753 (_initialize_i386fbsd_tdep): New function.
1754 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1755 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1756 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1757 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1758 TDEP->sc_num_regs.
1759 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1760 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1761 to initialize TDEP->sc_num_regs.
1762 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1763 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1764 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1765 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1766 FreeBSD ELF OS/ABI's here.
1767 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1768 (i386fbsd-tdep.o): New target.
1769 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1770 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1771
477f40d1
MK
1772 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1773 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1774 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1775 in initialization of TDEP->sc_num_regs.
1776
c6b33596
MK
1777 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1778 (x86_64_init_abi): Initialize regset_from_core_section if
1779 appropriate.
1780
8446b36a
MK
1781 * i386-tdep.c (i386_regset_from_core_section): New function.
1782 (i386_gdbarch_init): Initialize regset_from_core_section if
1783 appropriate.
1784 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1785
c783cbd6
MK
1786 * i386-tdep.h (struct regset): Declare opaque.
1787
6ce6d90f
MK
1788 * gdbarch.sh (regset_from_core_section): New method.
1789 (struct regset): Declare opaque.
1790 * gdbarch.c, gdbarch.h: Regenerated.
1791
b98ed7be
AM
17922003-10-11 Alan Modra <amodra@bigpond.net.au>
1793
1794 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1795 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1796 Correct test for pc within section.
1797
f6214256
MK
17982003-10-11 Mark Kettenis <kettenis@gnu.org>
1799
1800 * gdbarch.sh: Remove trailing whitepsace from comments.
1801
a8f4cde1
RM
18022003-10-08 Roland McGrath <roland@redhat.com>
1803
1804 * gcore.c (make_mem_sec): Function removed, folded into ...
1805 (gcore_create_callback): ... here. To omit a section, clear its
1806 SEC_LOAD bit rather than zeroing its size.
1807 Omit read-only sections only if they correspond to a known disk file.
1808 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1809
74276724
MS
18102003-10-10 Michael Snyder <msnyder@redhat.com>
1811
1812 * d10v-tdep.c: Fix typo in comment.
1813
e754ae69
AC
18142003-10-10 Andrew Cagney <cagney@redhat.com>
1815
1816 * rs6000-tdep.c (e500_store_return_value): Delete function.
1817 (e500_extract_return_value): Delete function.
1818 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1819 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1820 "ppc_sysv_abi_restore_return_value" where applicable.
1821 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1822 (ppc_sysv_abi_extract_return_value): Declare.
1823 (ppc_sysv_abi_broken_store_return_value): Declare.
1824 (ppc_sysv_abi_broken_extract_return_value): Declare.
1825 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1826 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1827 start of file.
1828 (do_ppc_sysv_return_value): New function.
1829 (ppc_sysv_abi_extract_return_value): New function.
1830 (ppc_sysv_abi_store_return_value): New function.
1831 (ppc_sysv_abi_broken_extract_return_value): New function.
1832 (ppc_sysv_abi_broken_store_return_value): New function.
1833 (ppc_sysv_abi_use_struct_convention): Call
1834 do_ppc_sysv_return_value.
1835
8d4ce20a
JB
18362003-10-10 J. Brobecker <brobecker@gnat.com>
1837
1838 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1839 to lookup the main function symbol.
1840
afce3d2a
CV
18412003-10-10 Corinna Vinschen <vinschen@redhat.com>
1842
1843 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1844 types correctly.
1845 (sh_push_dummy_call_fpu): Fix argument passing rules.
1846 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1847 float types.
1848 (sh3e_sh4_store_return_value): Ditto.
1849
7fe958be
EZ
18502003-10-10 Elena Zannoni <ezannoni@redhat.com>
1851
1852 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1853 comment.
1854
3f997a97
CV
18552003-10-10 Corinna Vinschen <vinschen@redhat.com>
1856
1857 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1858 more readable code. Accomodate passing of bitfields.
1859
8be9034a
AC
18602003-10-10 Andrew Cagney <cagney@redhat.com>
1861
1862 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1863 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1864 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1865 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1866 (ppc64_sysv_abi_push_dummy_call): New function.
1867 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1868 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1869 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1870
85a453d5
KI
18712003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1872
1873 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1874 * README: Ditto.
1875 * d10v-tdep.c: Ditto.
1876 * h8300-tdep.c: Ditto.
1877 * remote-e7000.c: Ditto.
1878 * remote-hms.c: Ditto.
1879 * ser-e7kpc.c: Ditto.
1880 * sh-stub.c: Ditto.
1881 * sh-tdep.c: Ditto.
1882 * sh-tdep.h: Ditto.
1883 * sh3-rom.c: Ditto.
1884 * sh64-tdep.c: Ditto.
1885 * top.c: Ditto.
1886 * wince.c: Ditto.
1887 * config/d10v/d10v.mt: Ditto.
1888 * config/sh/embed.mt: Ditto.
1889 * config/sh/linux.mt: Ditto.
1890 * config/sh/tm-linux.h: Ditto.
1891 * config/sh/tm-sh.h: Ditto.
1892 * config/sh/wince.mt: Ditto.
1893
221c12ff
AC
18942003-10-09 Andrew Cagney <cagney@redhat.com>
1895
1896 * ppc-tdep.h (struct type): Declare opaque.
1897 * x86-64-tdep.h (struct regcache): Declare opaque.
1898 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1899 coding style.
1900
ef5200c1
AC
19012003-10-09 Andrew Cagney <cagney@redhat.com>
1902
1903 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1904 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1905 (SOFTWARE_SINGLE_STEP_P): Ditto.
1906 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1907 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1908 (SOFTWARE_SINGLE_STEP_P): Ditto.
1909 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1910 software_single_step to rs6000_software_single_step.
a8f4cde1 1911
9644bbdd
AC
19122003-10-09 Andrew Cagney <cagney@redhat.com>
1913
1914 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1915
db72fa6b
MS
19162003-10-09 Michael Snyder <msnyder@redhat.com>
1917
f3efb16c
MS
1918 * frame.h: Fix typo in comment.
1919 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1920 * d10v-tdep.c: Random whitespace/comment tweaks.
1921
9a5cef92
EZ
19222003-10-09 Elena Zannoni <ezannoni@redhat.com>
1923
1924 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1925 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1926 on stack.
a8f4cde1 1927
9a5cef92
EZ
1928 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1929 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1930 in detail.
a8f4cde1 1931
0f317a0c
DJ
19322003-10-09 Daniel Jacobowitz <drow@mvista.com>
1933
1934 * remote-mips.c (mips_initialize): Remove unneeded call to
1935 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1936
bbab2f46
DJ
19372003-10-09 Daniel Jacobowitz <drow@mvista.com>
1938
1939 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1940 a memory pointer.
1941
550950b8
JJ
19422003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1943
1944 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1945 for any lwp we resume.
1946 (running_callback): Add lwps that have pending status events
1947 against them to be considered running.
1948
15c69bc7
KI
19492003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1950
1951 * m32r-tdep.c : Include "dis-asm.h".
1952 * Makefile.in (m32r-tdep.o): Update dependencies.
1953
51065942
JB
19542003-10-06 J. Brobecker <brobecker@gnat.com>
1955
1956 * completer.h (get_gdb_completer_word_break_characters): Delete.
1957 * completer.c: include language.h.
1958 (gdb_completer_word_break_characters): Delete.
1959 (get_gdb_completer_word_break_characters): Delete.
1960 (location_completer): Use the word break characters of the current
1961 language.
1962 (complete_line): Likewise.
1963 (line_completion_function): Likewise.
1964 (skip_quoted_chars): Likewise.
1965 * Makefile.in (completer.o): Add dependency on language.h.
1966 * top.c (init_main): Set the readline word break characters
1967 to GDB's default word break characters.
1968
6084f43a
JB
19692003-10-06 J. Brobecker <brobecker@gnat.com>
1970
1971 * language.h (language_defn): new field, la_word_break_characters.
1972 * language.c (unknown_language_defn): Set new field to
1973 default_word_break_characters.
1974 (auto_language_defn): Likewise.
1975 (local_language_defn): Likewise.
1976 * ada-lang.c (ada_language_defn): Likewise.
1977 * c-lang.c (c_language_defn): Likewise.
1978 (cplus_language_defn): Likewise.
1979 (asm_language_defn): Likewise.
1980 (minimal_language_defn): Likewise.
1981 * f-lang.c (f_language_defn): Likewise.
1982 * jv-lang.c (java_language_defn): Likewise.
1983 * m2-lang.c (m2_language_defn): Likewise.
1984 * objc-lang.c (objc_language_defn): Likewise.
1985 * p-lang.c (pascal_language_defn): Likewise.
1986 * scm-lang.c (scm_language_defn): Likewise.
1987
944fcfab
AC
19882003-10-06 Andrew Cagney <cagney@redhat.com>
1989
1990 * ppc-sysv-tdep.c: Re-indent.
1991
9f0a5303
JB
19922003-10-06 J. Brobecker <brobecker@gnat.com>
1993
1994 * language.h (default_word_break_characters): Add prototype.
1995 * language.c (default_word_break_characters): New function.
1996
7270b6ed
AS
19972003-10-06 Andreas Schwab <schwab@suse.de>
1998
1999 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2000 with %eax.
2001
a5d61f66
AC
20022003-10-06 Andrew Cagney <cagney@redhat.com>
2003
2004 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2005 "h8500-tdep.c".
2006 (z8k-tdep.o): Delete custom build rule.
2007
28a86f5c
AC
20082003-10-06 Andrew Cagney <cagney@redhat.com>
2009
1bfd8a83
AC
2010 * Makefile.in: Update all dependencies.
2011
17144ef8
AC
2012 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2013 No longer list PA as as obsolete candidate. List m32r as
2014 broken instead of obsolete.
a8f4cde1 2015
a5679ae5
AC
2016 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2017 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2018 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2019 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2020 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2021 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2022 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2023 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2024 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2025 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2026 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2027 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2028 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2029 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2030 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2031 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2032 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2033 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2034 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2035 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2036 * config/z8k/z8k.mt: Ditto.
2037
4a8269c0
AC
2038 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2039 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2040 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2041 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2042 sparclite were removed.
2043 * configure.host, configure.tgt: Remove corresponding tuples.
2044
41989fcd
AC
2045 * breakpoint.c, breakpoint.h: Remove obsolete code.
2046 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2047 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2048 * stabsread.h, xcoffread.c: Ditto.
2049
28a86f5c
AC
2050 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2051 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2052 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2053 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2054
4efdaa0d
DL
20552003-10-06 David Lecomber <dsl@sources.redhat.com>
2056
2057 * f-valprint.c: Reformatting
2058
ae53de43
MK
20592003-10-06 Mark Kettenis <kettenis@gnu.org>
2060
a8bb57e7
MK
2061 * x86-64-tdep.c: Remove duplicate comment.
2062
ae53de43
MK
2063 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2064 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2065 names for return values. This fixes a bug since we looked at %rbx
2066 instead of %rdx.
2067
473f17b0
MK
20682003-10-05 Mark Kettenis <kettenis@gnu.org>
2069
2c261fae
MK
2070 * x86-64-tdep.c: Include "regset.h".
2071
473f17b0
MK
2072 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2073 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2074 sizeof_fpregset.
2075 * i386-tdep.c: Include "regset.h".
2076 (i386_supply_gregset): New function.
2077 (i386_supply_fpregset): New function.
2078 (i386_gdbarch_init): Initialze register set-related members of
2079 TDEP.
2080 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2081 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2082
afd48b75
AC
20832003-10-03 Andrew Cagney <cagney@redhat.com>
2084
2085 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2086 set extract_return_value, store_return_value and
2087 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2088 ppc64_sysv_abi_store_return_value and
2089 ppc64_sysv_abi_use_struct_convention.
2090 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2091 (ppc64_sysv_abi_store_return_value): Declare.
2092 (ppc64_sysv_abi_use_struct_convention): Declare.
2093 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2094 (ppc64_sysv_abi_extract_return_value): New function.
2095 (ppc64_sysv_abi_store_return_value): New function.
2096 (ppc64_sysv_abi_use_struct_convention): New function.
2097 (ppc64_sysv_abi_return_value): New function.
2098
9b540880
AC
20992003-10-03 Andrew Cagney <cagney@redhat.com>
2100
2101 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2102 convert a descriptor to a function when it's in the ".opd"
2103 section.
2104
8748518b
CV
21052003-10-03 Corinna Vinschen <vinschen@redhat.com>
2106
2107 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2108 reg_size to keep GCC silent.
2109
0fd85043
CV
21102003-10-03 Corinna Vinschen <vinschen@redhat.com>
2111
2112 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2113 base for DW_EH_PE_textrel encodings.
2114 (read_encoded_value): Add a DW_EH_PE_textrel case.
2115 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2116 section.
2117
37b517aa
MK
21182003-10-03 Mark Kettenis <kettenis@gnu.org>
2119
2120 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2121
12c266ea
AC
21222003-10-02 Andrew Cagney <cagney@redhat.com>
2123
2124 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2125 REGISTER_RAW_SIZE.
2126 * gdbarch.h, gdbarch.c: Re-generate.
2127 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2128 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2129 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2130 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2131 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2132 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2133 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2134 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2135 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2136 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2137 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2138 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2139 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2140 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2141 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2142 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2143
78ba4af6
JB
21442003-10-02 Jim Blandy <jimb@redhat.com>
2145
2146 * dwarf2read.c (struct die_info): Doc fix.
2147
617daa0e
CV
21482003-10-02 Corinna Vinschen <vinschen@redhat.com>
2149
2150 * sh-tdep.c: Running thru gdb_indent.sh.
2151
e5e33cd9
CV
21522003-10-02 Corinna Vinschen <vinschen@redhat.com>
2153
2154 * sh-tdep.c (sh_justify_value_in_reg): New function.
2155 (sh_stack_allocsize): Ditto.
2156 (flt_argreg_array): New array used for floating point argument
2157 passing.
2158 (sh_init_flt_argreg): New function.
a8f4cde1 2159 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2160 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2161 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2162 Fix argument passing strategy.
2163 (sh_push_dummy_call_nofpu): Ditto.
2164
5fe830e4
AC
21652003-10-01 Andrew Cagney <cagney@redhat.com>
2166
2167 * value.h (register_value_being_returned): Declare. Replace
2168 "value_being_returned".
2169 * infcall.c (call_function_by_hand): Use
2170 register_value_being_returned.
2171 * infcmd.c (print_return_value): Call
2172 "register_value_being_returned", handle struct return locally.
2173 * values.c (register_value_being_returned): New function. Replace
2174 "value_being_returned".
a8f4cde1 2175
5fe830e4 21762003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2177
2178 * linux-proc.c (linux_do_registers): New function.
2179 (linux_make_note_section): Use linux_do_registers in case of
2180 single threaded inferior programs.
2181
64f395bf
AC
21822003-10-01 Andrew Cagney <cagney@redhat.com>
2183
2184 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2185 use STRUCT_ADDR. When not using "struct return convention", pass
2186 "0" to "value_being_returned". Add FIXMEs.
2187 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2188 value_being_returned. Add comments.
2189 * values.c (value_being_returned): Add fixme.
2190 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2191 (hppa_value_returned_from_stack): Add FIXME.
2192
639d11d3
DC
21932003-09-30 David Carlton <carlton@kealia.com>
2194
2195 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2196 'has_children' and 'next' by 'child' and 'sibling'.
2197 (read_comp_unit): Rework algorithm, breaking body into
2198 read_die_and_children and read_die_and_siblings.
2199 (read_die_and_children, read_die_and_siblings): New.
2200 (read_full_die): Add 'has_children' argument; set it instead of
2201 the die's 'has_children' field. Minor formatting cleanup.
2202 (free_die_list): Use die->child and die->sibling instead of
2203 die->next.
2204 (dump_die_list): Ditto.
2205 (sibling_die): Use die->sibling.
2206 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2207 'has_children' and 'next' fields.
a8f4cde1
RM
2208 (process_die, read_file_scope, read_func_scope)
2209 (read_lexical_block_scope, read_structure_scope)
2210 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2211 (read_namespace, read_subroutine_type, dump_die): Ditto.
2212
5bffac25
AC
22132003-09-30 Andrew Cagney <cagney@redhat.com>
2214
2215 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2216 to 224, not 220.
2217
f30992d4
AC
22182003-09-30 Andrew Cagney <cagney@redhat.com>
2219
2220 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2221 REGISTER_VIRTUAL_SIZE.
2222 * gdbarch.h, gdbarch.c: Regenerate.
2223 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2224 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2225 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2226
2e092625
AC
22272003-09-29 Andrew Cagney <cagney@redhat.com>
2228
2229 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2230 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2231 * gdbarch.h, gdbarch.c: Regenerate.
2232 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2233 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2234
2235 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2236 * remote-vxmips.c (vx_read_register): Ditto.
2237 * remote-vx68.c (vx_read_register): Ditto.
2238 * gnu-nat.c (inf_validate_procs): Ditto.
2239
7a5dd6ee
JB
22402003-09-29 J. Brobecker <brobecker@gnat.com>
2241
2242 * infcall.c (call_function_by_hand): Fix build failure
2243 introduced in the previous change to this file.
2244
1fe43d45
AC
22452003-09-29 Andrew Cagney <cagney@redhat.com>
2246
2247 * NEWS: Mention Objective-C.
2248
e28a332c
JG
22492003-09-29 Jerome Guitton <guitton@act-europe.fr>
2250
2251 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2252 test if the register has been saved on the stack.
2253 (arm_scan_prologue_cache): When analysing the instruction
2254 "str lr, [sp, #-4]", save the address where lr has been stored.
2255
9ff63c35
AC
22562003-09-28 Andrew Cagney <cagney@redhat.com>
2257
7f5f525d
AC
2258 * frame.c (frame_read_unsigned_register): Delete function.
2259 * frame.h (frame_read_unsigned_register): Delete declaration.
2260 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2261 get_frame_register_unsigned.
2262 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2263 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2264 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2265
7f5f525d
AC
2266 * frame.h (frame_read_register): Delete declaration.
2267 * frame.c (frame_read_register): Delete function.
2268 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2269 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2270 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2271 * mips-tdep.c (mips_register_to_value): Ditto.
2272 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2273 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2274
2275 * frame.c (frame_read_signed_register): Delete function.
2276 (frame_read_unsigned_register): Update comments.
2277 * frame.h (frame_read_signed_register): Delete declaration.
2278 * h8300-tdep.c (h8300_print_register): Use
2279 get_frame_register_signed.
2280 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2281
9ff63c35
AC
2282 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2283 Rename VALUE_RETURNED_FROM_STACK.
2284 * infcmd.c (print_return_value): Update.
2285 * infcall.c (call_function_by_hand): Update.
2286
41d041d6
MK
22872003-09-28 Mark Kettenis <kettenis@gnu.org>
2288
2289 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2290 regcache argument and reverse the order of the other two
2291 arguments. Remove local regcache variable. Determine
2292 architecture from REGCACHE. Update comments.
2293 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2294 reverse the order of the other two arguments. Remove local
2295 regcache variable. Determine architecture from REGCACHE. Update
2296 comments.
2297 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2298 prototypes. Update comments.
2299 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2300 comment.
2301 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2302 Update.
2303 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2304 * i386-interix-nat.c (supply_fpregset): Update.
2305 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2306 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2307 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2308 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2309 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2310 Update.
2311 * i386obsd-tdep.c (fetch_core_registers): Update.
2312 * i386v4-nat.c (supply_fpregset): Update.
2313 * x86-64-linux-nat.c (supply_fpregset): Update.
2314 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2315
1cb97e17
MK
23162003-09-27 Mark Kettenis <kettenis@gnu.org>
2317
5716833c
MK
2318 * i386-tdep.h: Put opaque declarations in alphabetical
2319 order. Remove spurious whitespace.
2320 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2321 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2322 * i386-tdep.c (MM0_REGNUM): Remove define.
2323 (i386_mmx_regnum_p): Add gdbarch argument.
2324 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2325 Rewrite using new macro definitions for FPU/SSE registers.
2326 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2327 definitions from i387-tdep.h.
2328 (i386_register_name): Update.
2329 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2330 new macro definitions for FPU/SSE registers.
2331 (i386_extract_return_value): Determine whether floating-point
2332 registers are present by examining REGCACHE's architecture.
2333 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2334 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2335 FPU/SSE registers.
2336 (i386_register_type): Update.
2337 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2338 definitions for FPU registers. Use REGCACHE's architecture to
2339 determine the appropriate register numbers.
2340 (i386_pseudo_register_read, i386_pseudo_register_write,
2341 i386_register_reggroup_p): Update.
2342 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2343 TDEP->mm0_regnum.
2344 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2345 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2346 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2347 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2348 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2349 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2350 *' to `void *'.
2351 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2352 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2353 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2354 definitions for FPU/SSE registers.
2355 (FXSAVE_MXCSR_ADDR): New define.
2356 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2357 TDEP->mm0_regnum.
2358 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2359 (I387_ST0_REGNUM): Define.
2360
41d35cb0
MK
2361 * regcache.h (get_regcache_arch): New prototype.
2362 * regcache.c (get_regcache_arch): New function.
2363
54e74f72
MK
2364 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2365 whitespace.
2366
1cb97e17
MK
2367 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2368 Initialize using ARRAY_SIZE.
2369
0968aa8c
AC
23702003-09-27 Andrew Cagney <cagney@redhat.com>
2371
2372 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2373 "init_frame_pc_default".
2374 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2376 * vax-tdep.c (vax_gdbarch_init): Update.
2377 * v850-tdep.c (v850_gdbarch_init): Update.
2378 * sh64-tdep.c (sh64_gdbarch_init): Update.
2379 * s390-tdep.c (s390_gdbarch_init): Update.
2380 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2381 * mcore-tdep.c (mcore_gdbarch_init): Update.
2382 * h8300-tdep.c (h8300_gdbarch_init): Update.
2383 * cris-tdep.c (cris_gdbarch_init): Update.
2384 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2385
54c84734
MK
23862003-09-26 Mark Kettenis <kettenis@gnu.org>
2387
2388 * regset.h: New file.
2389 * Makefile.in (regset_h): Add.
2390
1b1d3794
AC
23912003-09-25 Andrew Cagney <cagney@redhat.com>
2392
2393 * frame.h (deprecated_frame_saved_regs): Rename
2394 get_frame_saved_regs.
2395 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2396 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2397 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2398 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2399 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2400
e6beb428
AC
24012003-09-25 Andrew Cagney <cagney@redhat.com>
2402
2403 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2404 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2405 and Java.
2406 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2407 arm*-*-* do not use the new frame code.
2408
710122da
DC
24092003-09-25 David Carlton <carlton@kealia.com>
2410
2411 * c-exp.y: Remove 'register' declarations.
2412 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2413
79c2c32d
DC
24142003-09-25 David Carlton <carlton@kealia.com>
2415
2416 * c-exp.y: Include cp-support.h. Add qualified_type.
2417 (yylex): Delete nested type hack; add comments.
2418 * cp-namespace.c (cp_lookup_nested_type): New function.
2419 * cp-support.h: Declare cp_lookup_nested_type.
2420 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2421 instead of value_struct_elt_for_reference.
2422 * valops.c: Include cp-support.h.
2423 (value_aggregate_elt): New function.
2424 (value_namespace_elt): Ditto.
2425 (value_struct_elt_for_reference): Make static.
2426 * value.h: Delete declaration of value_struct_elt_for_reference;
2427 add declaration for value_aggregate_elt.
2428 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2429 (valops.o): Ditto.
2430
898c62f5
DJ
24312003-09-25 Daniel Jacobowitz <drow@mvista.com>
2432
2433 * stack.c: Include "reggroups.h".
2434 (frame_info): Only display registers in all_reggroup.
2435 * Makefile.in (stack.o): Update dependencies.
2436
28cd8767
JG
24372003-09-25 Jerome Guitton <guitton@act-europe.fr>
2438
2439 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2440 "add ip, sp #n" in the prologue.
2441 (arm_scan_prologue): Ditto.
2442
a4ab2b5d
JG
24432003-09-25 Jerome Guitton <guitton@act-europe.fr>
2444
2445 * MAINTAINERS (write after approval): Add myself.
2446
3f244638
AS
24472003-09-25 Andreas Schwab <schwab@suse.de>
2448
2449 * m68k-tdep.c: Include "dwarf2-frame.h".
2450 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2451 * Makefile.in (m68k-tdep.o): Update dependencies.
2452
1c0159e0
CV
24532003-09-25 Corinna Vinschen <vinschen@redhat.com>
2454
2455 * sh-tdep.c (struct frame_extra_info): Remove.
2456 (struct sh_frame_cache): New structure.
2457 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2458 (GET_TARGET_REG): Ditto but target register.
2459 (GET_PUSHED_REG): Remove.
2460 (IS_MOV_ARG_TO_REG): New macro.
2461 (IS_MOV_ARG_TO_IND_R14): New macro.
2462 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2463 (IS_MOVW_PCREL_TO_REG): New macro.
2464 (IS_MOVL_PCREL_TO_REG): New macro.
2465 (IS_SUB_REG_FROM_SP): New macro.
2466 (IS_ARG_MOV): Remove.
2467 (IS_MOV_TO_R14): Remove.
2468 (IS_RESTORE_FP): New macro.
2469 (IS_RTS): New macro.
2470 (IS_LDS): New macro.
2471 (IS_MOV_FP_SP): New macro.
2472 (IS_ADD_REG_TO_FP): New macro.
2473 (IS_ADD_IMM_FP): New macro.
2474 (sh_skip_prologue_hard_way): Remove.
2475 (sh_saved_pc_after_call): Remove.
2476 (sh_frame_chain): Remove.
2477 (sh_find_callers_reg): Remove.
a8f4cde1 2478 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2479 (sh_fp_frame_init_saved_regs): Remove.
2480 (sh_init_extra_frame_info): Remove.
2481 (sh_analyze_prologue): New function.
2482 (sh_skip_prologue): Remove deprecated code. Rely on new function
2483 sh_analyze_prologue when after_prologue fails.
2484 (sh_frame_saved_pc): Remove.
2485 (sh_alloc_frame_cache): New function.
2486 (sh_frame_cache): Ditto.
2487 (sh_frame_prev_register): Ditto.
2488 (sh_frame_this_id): Ditto.
2489 (sh_frame_unwind): New structure defining the heuristic frame
2490 sniffer interface.
2491 (sh_frame_sniffer): New function.
2492 (sh_unwind_sp): Ditto.
2493 (sh_unwind_pc): Ditto.
2494 (sh_unwind_dummy_id): Ditto.
2495 (sh_frame_base_address): Ditto.
2496 (sh_frame_base): New structure defining new frame base code.
2497 (sh_in_function_epilogue_p): New function.
2498 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2499 code and to call all new code instead. Initialize dwarf2 and
2500 heuristic frame sniffer.
2501
5f9769d1
PH
25022003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2503
a8f4cde1
RM
2504 * parser-defs.h (struct exp_descriptor): New definition, containing
2505 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2506 evaluating expressions.
2507 (exp_descriptor_standard): Declare new variable.
2508 (print_subexp): Make global and declare here (from expprint.c).
2509 (dump_subexp): Ditto.
2510 (dump_subexp_body_standard): Declare.
2511 (operator_length_standard): Declare.
2512 (op_name_standard): Declare.
2513 (print_subexp): Declare.
2514 (print_subexp_standard): Declare.
2515
2516 * language.h (struct language_defn): Add la_exp_desc field to hold
2517 pointer to table for language-specific operators.
2518 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2519
2520 * parse.c (operator_length): Move most code to new
5f9769d1 2521 operator_length_standard function. Use language-specific information.
a8f4cde1 2522 (operator_length_standard): New function taking most code from
5f9769d1
PH
2523 operator_length.
2524 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2525
2526 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2527 and OP_EXTENDED_LAST.
a8f4cde1
RM
2528
2529 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2530 Make global; remove static declaration.
2531 Move most code to print_subexp_standard.
a8f4cde1 2532 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2533 print_subexp.
2534 (op_name): Add expression to argument signature.
a8f4cde1 2535 Use langauge-specific op_name.
5f9769d1
PH
2536 Move most code to op_name_standard.
2537 (op_name_standard): New function, containing code formerly in op_name.
2538 (dump_subexp): Use new version of op_name function.
2539 Use language-specific dump_subexp_body, and move most existing code to
2540 dump_subexp_body_standard.
2541 (dump_raw_expression): Use new op_name interface.
2542 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2543 (dump_subexp_body_standard): New function, containing code formerly
2544 in dump_subexp_body.
a8f4cde1 2545
5f9769d1
PH
2546 * language.c (unknown_language): Add default la_exp_desc field and
2547 remove evaluate_exp field.
2548 (auto_language): Ditto.
2549 (local_language): Ditto.
2550 * f-lang.c (f_language_defn): Ditto.
2551 * c-lang.c (c_language_defn): Ditto.
2552 (cplus_language_defn): Ditto.
2553 (asm_language_defn): Ditto.
2554 (minimal_language_defn): Ditto.
2555 * p-lang.c (pascal_language_defn): Ditto.
2556 * m2-lang.c (m2_language_defn): Ditto.
2557 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2558
2559 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2560 Java-specific expression evaluator.
2561 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2562 field.
a8f4cde1 2563 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2564 Scheme-specific expression evaluator.
2565 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2566 field.
2567 * objc-lang.c (print_object_command): Take evaluate_exp from the
2568 la_exp_desc field.
a8f4cde1 2569
5f9769d1 2570 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2571
2572 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2573 la_exp_desc's type.
2574 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2575
24daaebc
PH
25762003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2577
2578 * parser-defs.h (operator_length): Declare.
a8f4cde1 2579
24daaebc
PH
2580 * parse.c (length_of_subexp): Use operator_length to get operator
2581 lengths and arities for operators.
2582 Move most code to new operator_length function.
a8f4cde1 2583 (operator_length): New function absorbing most code from
24daaebc
PH
2584 length_of_subexp.
2585 (prefixify_subexp): Remove large case and use operator_length instead.
2586 (parse_exp_1): Use renamings:
a8f4cde1 2587 dump_prefix_expression => dump_raw_expression and
24daaebc 2588 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2589
24daaebc
PH
2590 * expression.h (dump_prefix_expression): Rename to ...
2591 (dump_raw_expression): New name.
2592 (dump_postfix_expression): Rename to ...
2593 (dump_prefix_expression): New name.
a8f4cde1 2594
24daaebc
PH
2595 * expprint.c (dump_subexp): Make global. Add comment.
2596 Move most existing code to dump_subexp_body.
2597 (dump_subexp_body): New function.
2598 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2599 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2600 work before the expression is prefixified.
2601 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2602 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2603 that's what it does.
a8f4cde1 2604 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2605 prefixified expression.
2606 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2607
8c2957c4
JB
26082003-09-22 Jim Blandy <jimb@redhat.com>
2609
2610 * dwarf2read.c (read_array_type): When building the type for an
2611 array of unspecified length, make sure to choose the upper bound
2612 so that the array's total length comes out to be zero --- that's
2613 how we represent such arrays.
2614
592e3010
MC
26152003-09-22 Michael Chastain <mec@shout.net>
2616
2617 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2618
365c70b1
JJ
26192003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2620
2621 * top.c (quit_force): Fix indirect call to quit_target so
2622 a struct qt_args pointer is passed.
2623
5d6eb653
AC
26242003-09-22 Andrew Cagney <cagney@redhat.com>
2625
2626 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2627 * arch-utils.c (init_frame_pc_noop): Delete function.
2628 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2629 "init_frame_pc".
2630 * mips-tdep.c (mips_gdbarch_init): Ditto.
2631 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2632 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2633 declaration.
2634 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2635 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2636 declaration.
2637 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2638
b222a67f
AG
26392003-09-22 Anthony Green <green@redhat.com>
2640
2641 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2642 declaration.
2643
d5b5ac79
AC
26442003-09-20 Andrew Cagney <cagney@redhat.com>
2645
deafb061
AC
2646 * breakpoint.c: Eliminate ARGSUSED.
2647 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2648 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2649 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2650 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2651 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2652 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2653 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2654 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2655 * wince.c, remote-vx.c: Ditto.
2656
d5b5ac79
AC
2657 * cli/cli-script.c: Remove "register" attributes.
2658 * config/pa/tm-hppa.h: Ditto.
2659 * cli/cli-decode.c: Ditto.
2660 * cli/cli-cmds.c: Ditto.
2661
c6316faa
AC
26622003-09-19 Andrew Cagney <cagney@redhat.com>
2663
2664 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2665 DEPRECATED_NPC_REGNUM.
2666 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2667
f4f99b11
CF
26682003-09-19 Christopher Faylor <cgf@redhat.com>
2669
2670 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2671
1708f284
JB
26722003-09-19 Jim Blandy <jimb@redhat.com>
2673
2674 * macrotab.c (macro_include): Use the correct comparison to find
2675 the appropriate place for this inclusion in the list.
2676
b9fbf434
AC
26772003-09-19 Andrew Cagney <cagney@redhat.com>
2678
2679 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2680 (DEPRECATED_HPUX_TEXT_END): Define.
2681 (deprecated_hpux_text_end): Declare.
2682 (struct target_ops): Declare opaque.
2683 * hppah-nat.c (text_end): Make static.
2684 (deprecated_hpux_text_end): New function.
2685 * exec.c (text_end): Delete global variable.
2686 (NEED_TEXT_START_END): Do not define.
2687 (exec_file_attach): Replace code computing "text_end" code with
2688 call to DEPRECATED_HPUX_TEXT_END.
2689
5b03f266
AC
26902003-09-19 Andrew Cagney <cagney@redhat.com>
2691
2692 * utils.c (align_up, align_down): New functions.
2693 * defs.h (align_up, align_down): Declare.
2694 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2695 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2696 and "align_down".
2697 (round_up, round_down): Delete functions.
2698 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2699 "align_down".
2700 (ROUND_DOWN, ROUND_UP): Delete macros.
2701 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2702 * h8300-tdep.c: Replace "round_up" and "round_down" with
2703 "align_up" and "align_down".
2704 (round_up, round_down): Delete macros.
2705 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2706 "align_down".
2707 (ROUND_UP, ROUND_DOWN): Delete macros.
2708
51db5742
JB
27092003-09-18 J. Brobecker <brobecker@gnat.com>
2710
2711 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2712 hard-coded constant. Use the proper machine name instead.
2713
77949794
AC
27142003-09-17 Andrew Cagney <cagney@redhat.com>
2715
2716 * sparc-tdep.c (legacy_register_name): Delete function.
2717 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2718 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2719 * infcmd.c (gdb_register_name): Delete variable.
2720 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2721 REGISTER_NAME and "tm.h".
2722 * gdbarch.h, gdbarch.c: Regenerate.
2723 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2724 REGISTER_NAMES in comments.
2725 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2726 * m68klinux-nat.c (regmap): Ditto.
2727
b55c33cc
JB
27282003-09-17 Jim Blandy <jimb@redhat.com>
2729
2730 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2731
957e27ac
AC
27322003-09-17 Andrew Cagney <cagney@redhat.com>
2733
2734 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2735 (ppcnbsd_init_abi): Set "use_struct_convention" to
2736 "ppcnbsd_use_struct_convention".
2737
192cb3d4
MK
27382003-09-17 Mark Kettenis <kettenis@gnu.org>
2739
2740 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2741 * gdbarch.h, gdbarch.c: Regenerate.
2742 (stabs_argument_has_addr): New architecture method.
2743 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2744 * arch-utils.c: Include "buildsym.h".
2745 (default_stabs_argument_has_addr): New function.
2746 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2747 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2748
efe59759
AC
27492003-09-17 Andrew Cagney <cagney@redhat.com>
2750
2751 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2752 * gdbarch.h, gdbarch.c: Regenerate.
2753 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2754 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2755 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2756 * sparcnbsd-tdep.c: Update.
a8f4cde1 2757
62700349
AC
27582003-09-17 Andrew Cagney <cagney@redhat.com>
2759
2760 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2761 * gdbarch.h, gdbarch.c: Regenerate.
2762 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2763 * d10v-tdep.c, frame.c: Update.
2764 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2765 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2766 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2767 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2768 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2769 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2770 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2771 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2772 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2773 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2774 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2775 * config/pa/nm-hppah.h: Update.
2776
b9ff3018
AC
27772003-09-16 Andrew Cagney <cagney@redhat.com>
2778
2779 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2780 "use_struct_convention" to "ppc_linux_use_struct_convention".
2781 (ppc_linux_use_struct_convention): New function.
2782 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2783 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2784 "rs6000_use_struct_convention".
2785 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2786 declaration.
2787 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2788 Delete function.
2789
aa1ee363
AC
27902003-09-16 Andrew Cagney <cagney@redhat.com>
2791
2792 * buildsym.c: Remove more occurances of "register".
2793 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2794 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2795 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2796 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2797 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2798 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2799 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2800 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2801
f2ea0907
CV
28022003-09-16 Corinna Vinschen <vinschen@redhat.com>
2803
2804 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2805 numbers to enumeration values.
2806 * sh-tdep.c: Accomodate above change.
2807 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2808 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2809 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2810 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2811 (IS_FPUSH): Rename from IS_FMOV.
2812 (sh_extract_struct_value_address): Remove useless comment.
2813 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2814 instead of own local values.
2815 (sh_dump_tdep): Remove.
2816 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2817 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2818
1c704f11
AC
28192003-09-15 Andrew Cagney <cagney@redhat.com>
2820
2821 * doublest.c (convert_floatformat_to_doublest): No longer need to
2822 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2823
ac79b88b
DJ
28242003-09-15 Daniel Jacobowitz <drow@mvista.com>
2825
2826 * values.c (unpack_double): Call floatformat_is_valid.
2827
1c671366
MK
28282003-09-15 Mark Kettenis <kettenis@gnu.org>
2829
de5227fb
MK
2830 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2831 ps_strings into a long.
2832
1c671366
MK
2833 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2834 _initialize_am64fbsd_nat.
2835
a604369a
KB
28362003-09-15 Kevin Buettner <kevinb@redhat.com>
2837
2838 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2839 associated with DW_AT_ranges attribute is out of bounds.
2840
b3cacbee
DL
28412003-09-15 David Lecomber <dsl@sources.redhat.com>
2842
2843 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2844
d0f37bb2
MC
28452003-09-14 Michael Chastain <mec@shout.net>
2846
2847 * config/m68k/nm-apollo68v.h: Delete.
2848 * config/m68k/xm-apollo68v.h: Delete.
2849
69517000
AC
28502003-09-14 Andrew Cagney <cagney@redhat.com>
2851
2852 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2853 * dcache.c: Update copyrights and descriptions.
2854 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2855
ef8b349d
AC
28562003-09-14 Andrew Cagney <cagney@redhat.com>
2857
2858 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2859 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2860
52f0bd74
AC
28612003-09-14 Andrew Cagney <cagney@redhat.com>
2862
2863 * alpha-nat.c: Remove some occurances of "register".
2864 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2865 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2866 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2867 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2868 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2869 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2870 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2871 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2872 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2873 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2874 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2875 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2876 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2877 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2878 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2879 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2880 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2881 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2882 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2883 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2884 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2885 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2886
4a4b3fed
AC
28872003-09-13 Andrew Cagney <cagney@redhat.com>
2888
2889 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2890 * ppc-tdep.h (struct regcache): Declare opaque.
2891 * objfiles.h (struct objfile_data): Declare opaque.
2892 * cp-support.h (struct objfile): Declare opaque.
2893 * linux-nat.h (target_waitstatus): Declare opaque.
2894
2110b94f
MK
28952003-09-14 Mark Kettenis <kettenis@gnu.org>
2896
1c671366
MK
2897 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2898 (stabs_argument_has_addr): New architecture method.
2899 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2900 * arch-utils.c: Include "buildsym.h".
2901 (default_stabs_argument_has_addr): New function.
2902 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2903 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2904
2110b94f
MK
2905 * cris-tdep.c (cris_gdbarch_init): Set
2906 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2907 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2908 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2909 * mips-tdep.c (mips_gdbarch_init): Likewise.
2910 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2911 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2912
48436ce6
AC
29132003-09-13 Andrew Cagney <cagney@redhat.com>
2914
2915 * values.c (using_struct_return): Delete "function" and "funcaddr"
2916 parameters.
2917 * value.h (using_struct_return): Update declaration.
2918 * infcmd.c (finish_command_continuation): Update.
2919 (finish_command): Update.
2920 * infcall.c (call_function_by_hand): Update.
2921 * eval.c (evaluate_subexp_standard): Update.
2922
403d9909
CF
29232003-09-13 Christopher Faylor <cgf@redhat.com>
2924
2925 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2926 SSE registers since gdb will not operate correctly without this.
2927 Restore include file ordering munged in previous change.
2928 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2929
ebf7d56b
MK
29302003-09-13 Mark Kettenis <kettenis@gnu.org>
2931
8e823e25
MK
2932 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2933 REG_STRUCT_HAS_ADDR.
2934 * gdbarch.c, gdbarch.h: Updated.
2935 * infcall.c (call_function_by_hand): Update.
2936 * stabsread.c (define_symbol): Updated.
a8f4cde1 2937
ebf7d56b
MK
2938 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2939
d3f13f72
CF
29402003-09-12 Christopher Faylor <cgf@redhat.com>
2941
2942 * win32-nat.c: Reorganize so that defines used by target headers are
2943 actually defined by the system headers.
2944 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2945 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2946
14f75137
JB
29472003-09-12 Jim Blandy <jimb@redhat.com>
2948
d646061f
JB
2949 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2950 the file has no .data, .bss, or .rodata sections. Instead wait
2951 until we see a variable alleged to live in one of those sections.
2952
2a13f9bc
JB
2953 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2954 .bss section, presume that any variables we find live in the
2955 .rodata section.
2956
4f49b26b
JB
2957 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2958 offsets for global and static variables.
2959
14f75137
JB
2960 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2961 symbol types are, by definition, in the .data section, so it is
2962 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2963 If there is no .data section, there should be no N_DATA or N_DATA
2964 | N_EXT symbols.
2965
212c460c
MK
29662003-09-12 Mark Kettenis <kettenis@gnu.org>
2967
2968 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2969 (amd64fbsd_sigcontext_addr): Rewrite.
2970 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2971 with correct values.
2972 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2973 (amd64fbsd_init_abi): Fix typo.
2974
68856ea3
AC
29752003-09-12 Andrew Cagney <cagney@redhat.com>
2976
2977 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2978 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2979
627b3ba2
AC
29802003-09-12 Andrew Cagney <cagney@redhat.com>
2981
2982 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2983 "entry_file_highpc". Update comments.
2984 * defs.h (deprecated_inside_entry_file): Rename
2985 "inside_entry_file".
2986 * blockframe.c (deprecated_inside_entry_file): Rename
2987 "inside_entry_file".
2988 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2989 * vax-tdep.c (vax_frame_chain): Update.
2990 * sh64-tdep.c (sh64_frame_chain): Update.
2991 * sh-tdep.c (sh_frame_chain): Update.
2992 * rs6000-tdep.c (rs6000_frame_chain): Update.
2993 * ns32k-tdep.c (ns32k_frame_chain): Update.
2994 * mips-tdep.c (mips_frame_chain): Update.
2995 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2996 * m32r-tdep.c (m32r_frame_this_id): Update.
2997 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2998 * frv-tdep.c (frv_frame_this_id): Update.
2999 * d10v-tdep.c (d10v_frame_this_id): Update.
3000 * cris-tdep.c (cris_frame_chain): Update.
3001 * blockframe.c (legacy_frame_chain_valid): Update.
3002 * avr-tdep.c (avr_frame_this_id): Update.
3003 * arm-tdep.c (arm_prologue_this_id): Update.
3004 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3005 * objfiles.c (objfile_relocate): Update.
3006 * mipsread.c (mipscoff_symfile_read): Update.
3007 (mipscoff_symfile_read): Update.
3008 * mdebugread.c (parse_partial_symbols): Update.
3009 * dwarfread.c (read_file_scope): Update.
3010 * dwarf2read.c (read_file_scope): Update.
3011 * dbxread.c (read_dbx_symtab): Update.
3012 (read_dbx_symtab): Update.
3013 * coffread.c (complete_symtab): Update.
3014
b0abbc58
JJ
30152003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3016
3017 * top.c (quit_target): New static helper function.
3018 (quit_force): Moved code to quit_target(). Call quit_target()
3019 via catch_errors() to catch errors during quit.
3020
a1632d59
DC
30212003-09-11 David Carlton <carlton@kealia.com>
3022
3023 * buildsym.c (finish_block): Use allocate_block to allocate the
3024 block.
3025 * mdebugread.c (new_block): Add FIXME.
3026
5c4e30ca
DC
30272003-09-11 David Carlton <carlton@kealia.com>
3028
3029 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3030 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3031 (recursive_dump_type): Ditto.
3032 * printcmd.c (print_formatted): Ditto.
3033 * typeprint.c (print_type_scalar): Ditto.
3034 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3035 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3036 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3037 maint_cplus_cmd_list.
3038 * cp-support.c: Make maint_cplus_cmd_list extern.
3039 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3040 command.h.
3041 (lookup_symbol_file): Look in possible namespace blocks when
3042 appropriate.
3043 (initialize_namespace_symtab): New.
3044 (get_possible_namespace_block, free_namespace_block)
3045 (check_possible_namespace_symbols)
3046 (check_possible_namespace_symbols_loop)
3047 (check_one_possible_namespace_symbol)
3048 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3049 (_initialize_cp_namespace): Ditto.
3050 * block.h: Declare allocate_block.
3051 * block.c (allocate_block): New.
3052 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3053 allocate_block.
3054 * symfile.h: Update declaration of add_psymbol_to_list.
3055 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3056 question.
3057 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3058 scan_partial_symbols_call.
3059 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3060 helper functions.
3061 (add_partial_symbol): If necessary, scan mangled names for names
3062 of namespaces.
3063 (add_partial_namespace): Add NAMESPACE argument; generate partial
3064 symbols associated to namespaces.
3065 (add_partial_enumeration): Add NAMESPACE argument.
3066 (new_symbol): Allow namespace syms.
3067 (read_namespace): Generate namespace syms.
3068 * objfiles.h: Add opaque declaration of struct symtab.
3069 (struct objfile): Add cp_namespace_symtab member.
3070 * objfiles.c (allocate_objfile): Set
3071 objfile->cp_namespace_symtab.
3072 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3073 dictionary_h, command_h.
3074
33a7c2fc
AC
30752003-09-11 Andrew Cagney <cagney@redhat.com>
3076
3077 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3078 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3079 near the function's end.
3080 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3081 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3082 regcache_raw_write_signed to set SP_REGNUM.
3083
63cd24fe
EZ
30842003-09-11 Elena Zannoni <ezannoni@redhat.com>
3085
3086 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3087 orig_addrs is set up properly.
3088
f27dd7fd
AC
30892003-09-11 Andrew Cagney <cagney@redhat.com>
3090
3091 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3092 * gdbarch.h, gdbarch.c: Re-generate.
3093 * infcall.c (call_function_by_hand): Update.
3094 * hppa-tdep.c (hppa_push_arguments): Update.
3095 * ada-lang.c (place_on_stack): Update.
3096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3097 * sparc-tdep.c (sparc_gdbarch_init): Update.
3098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3099 * hppa-tdep.c (hppa_gdbarch_init): Update.
3100 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3101 stack_align.
3102
f630a401
DJ
31032003-09-11 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3106 register do need a frame.
3107
0ddabb4c
AC
31082003-09-11 Andrew Cagney <cagney@redhat.com>
3109
3110 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3111 buildable since GDB 5.0.
3112 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3113 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3114 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3115 * irix4-nat.c: Delete file.
3116 * config/mips/irix4.mh: Delete file.
3117 * config/mips/irix3.mh: Delete file.
3118 * config/mips/irix3.mt: Delete file.
3119 * config/mips/tm-irix3.h: Delete file.
3120 * config/mips/nm-irix3.h: Delete file.
3121 * config/mips/xm-irix3.h: Delete file.
3122 * config/mips/nm-irix4.h: Delete file.
3123 * config/mips/xm-irix4.h: Delete file.
3124 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3125
fde2cceb
JB
31262003-09-10 J. Brobecker <brobecker@gnat.com>
3127
3128 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3129 * Makefile.in (hppa-tdep.o): Update dependencies.
3130
66f667f5
JW
31312003-09-10 James E Wilson <wilson@specifixinc.com>
3132
ef5fd69f
JW
3133 * MAINTAINERS: Change my e-mail address. Move to paper trail
3134 section.
66f667f5 3135
53e8aaea
KB
31362003-09-10 Kevin Buettner <kevinb@redhat.com>
3137
3138 * MAINTAINERS (frv): New ISA entry.
3139
dcc6aaff
KB
31402003-09-10 Kevin Buettner <kevinb@redhat.com>
3141
3142 * frv-tdep.c (dis-asm.h): Include.
3143 * Makefile.in (frv-tdep.o): Update dependencies.
3144
932644f0
JJ
31452003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3146
3147 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3148 Fix typo for high range of floating registers.
3149
91c24f0a
DC
31502003-09-09 David Carlton <carlton@kealia.com>
3151
3152 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3153 highpc initialization here out of scan_partial_symbols.
3154 (scan_partial_symbols): Restructure into a recursive version,
3155 calling add_partial_namespace and add_partial_enumeration when
3156 appropriate.
3157 (add_partial_namespace): New.
3158 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3159
c9263853
AC
31602003-09-09 Andrew Cagney <cagney@redhat.com>
3161
e56a0ecc
AC
3162 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3163 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3164 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3165 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3166
794a477a
AC
3167 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3168 (rs6000_push_dummy_call): Set the "TOC" register.
3169
c9263853
AC
3170 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3171 methods "max_register_raw_size", "max_register_virtual_size" or
3172 "register_virtual_size".
3173
afa7d0b2
ILT
31742003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3175
3176 * MAINTAINERS: Update my e-mail address.
3177
7a41266b
AC
31782003-09-09 Andrew Cagney <cagney@redhat.com>
3179
3180 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3181 (rs6000_push_dummy_call): Store the struct return address.
3182 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3183
77b2b6d4
AC
31842003-09-09 Andrew Cagney <cagney@redhat.com>
3185
3186 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3187 "ppc_sysv_abi_push_arguments".
3188 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3189 "ppc_sysv_abi_push_arguments".
3190 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3191 instead of "push_arguments".
3192 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3193
e8a7b686
AC
31942003-09-09 Andrew Cagney <cagney@redhat.com>
3195
3196 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3197 instead of CALL_DUMMY_ADDRESS.
3198
f86f5ca3
PH
31992003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3200
3201 * p-lang.c: Eliminate "register".
3202 * c-lang.c: Ditto.
3203 * expprint.c: Ditto.
3204 * f-lang.c: Ditto.
3205 * jv-lang.c: Ditto.
3206 * language.c: Ditto.
3207 * m2-lang.c: Ditto.
3208 * parse.c: Ditto.
3209 * scm-lang.c: Ditto.
3210 * objc-lang.c: Ditto.
3211
83ee270e
NC
32122003-09-09 Nick Clifton <nickc@redhat.com>
3213
3214 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3215
a89aa300
AC
32162003-09-04 Andrew Cagney <cagney@redhat.com>
3217
3218 * avr-tdep.c: Include "dis-asm.h".
3219 * cris-tdep.c: Include "dis-asm.h".
3220 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3221 instead of corresponding typedef.
3222 * h8300-tdep.c: Include "dis-asm.h".
3223 * ia64-tdep.c: Include "dis-asm.h".
3224 * i386-tdep.c: Include "dis-asm.h".
3225 (i386_print_insn): Use "struct disassemble_info" instead of
3226 corresponding typedef.
3227 * m68k-tdep.c: Include "dis-asm.h".
3228 * mcore-tdep.c: Include "dis-asm.h".
3229 * mips-tdep.c: Include "dis-asm.h".
3230 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3231 instead of corresponding typedef.
3232 * ns32k-tdep.c: Include "dis-asm.h".
3233 * s390-tdep.c: Include "dis-asm.h".
3234 * sparc-tdep.c: Include "dis-asm.h".
3235 * vax-tdep.c: Include "dis-asm.h".
3236 * v850-tdep.c: Include "dis-asm.h".
3237 * mn10300-tdep.c: Include "dis-asm.h".
3238 * rs6000-tdep.c: Include "dis-asm.h".
3239 * xstormy16-tdep.c: Include "dis-asm.h".
3240 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3241 print_insn_xstormy16.
3242 * Makefile.in (v850-tdep.o): Update dependencies.
3243 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3244 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3245 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3246 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3247 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3248 (gdbarch_h): Remove $(dis_asm_h).
3249 * disasm.c: Include "dis-asm.h".
3250 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3251 corresponding typedef.
3252 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3253 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3254 * gdbarch.sh: Do not include "dis-asm.h".
3255 (struct disassemble_info): Declare opaque.
3256 (TARGET_PRINT_INSN): Update declaration.
3257 * gdbarch.h, gdbarch.c: Re-generate.
3258
88a82a65
AC
32592003-09-08 Andrew Cagney <cagney@redhat.com>
3260
3261 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3262 CALL_DUMMY_ADDRESS, change to a predicate.
3263 * gdbarch.h, gdbarch.c: Re-generate.
3264 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3265 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3266 * infcall.c (call_function_by_hand): Ditto.
3267 * sparc-tdep.c (sparc_push_return_address): Ditto.
3268 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3269 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3270 CALL_DUMMY_ADDRESS with entry_point_address.
3271 * v850-tdep.c (v850_push_return_address): Ditto.
3272 * s390-tdep.c (s390_push_return_address): Ditto.
3273 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3274 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3275 * mcore-tdep.c (mcore_push_return_address): Ditto.
3276 * cris-tdep.c (cris_push_return_address): Ditto.
3277 * arm-tdep.c (arm_push_return_address): Ditto.
3278
3e2c4033
AC
32792003-09-08 Andrew Cagney <cagney@redhat.com>
3280
3281 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3282 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3283 and REG_UNMODIFIED to REG_SAME_VALUE.
3284 (execute_cfa_program): Update.
3285 (dwarf2_frame_cache): Update. Initialize table to
3286 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3287 location.
3288 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3289
39efb398
AC
32902003-09-08 Andrew Cagney <cagney@redhat.com>
3291
3292 * gnu-nat.c: Remove "inline" function attribute.
3293 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3294
f5cb5aca
KB
32952003-09-08 Kevin Buettner <kevinb@redhat.com>
3296
3297 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3298 target.
3299
1cb761c7
KB
33002003-09-08 Kevin Buettner <kevinb@redhat.com>
3301
3302 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3303 (frame_extra_info): Rename this struct to frv_unwind_cache.
3304 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3305 Add fields ``prev_sp'' and ``base''.
3306 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3307 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3308 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3309 Delete.
3310 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3311 Revise all callers. Fill in the unwind cache argument and make
3312 other adjustments to account for new frame mechanisms.
3313 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3314 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3315 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3316 (frv_frame_unwind, frv_frame_base): New structs.
3317 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3318 additional arguments expected by this method and adjust function
3319 body accordingly.
3320 (frv_gdbarch_init): Remove calls to the following functions:
3321 set_gdbarch_deprecated_init_frame_pc(),
3322 set_gdbarch_deprecated_saved_pc_after_call(),
3323 set_gdbarch_deprecated_frame_chain(),
3324 set_gdbarch_deprecated_frame_saved_pc(),
3325 set_gdbarch_deprecated_frame_init_saved_regs(),
3326 set_gdbarch_deprecated_push_arguments(),
3327 set_gdbarch_deprecated_push_return_address(),
3328 set_gdbarch_deprecated_pop_frame(),
3329 set_gdbarch_deprecated_call_dummy_words(),
3330 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3331 set_gdbarch_deprecated_init_extra_frame_info(),
3332 set_gdbarch_deprecated_dummy_write_sp(), and
3333 set_gdbarch_deprecated_pc_in_call_dummy().
3334 Add calls to the following functions:
3335 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3336 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3337 frame_base_set_default().
3338 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3339
68f6cf99
MK
33402003-09-09 Mark Kettenis <kettenis@gnu.org>
3341
3342 * dwarf2-frame.c (read_encoded_value): Add support for
3343 DW_EH_PE_aligned encoding.
3344
73b65bb0
DJ
33452003-09-08 Daniel Jacobowitz <drow@mvista.com>
3346
3347 * infrun.c (normal_stop): Don't print a message if the inferior
3348 has exited.
3349
7c8a5605
JB
33502003-09-08 Jim Blandy <jimb@redhat.com>
3351
3352 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3353 * dbxread.c: #include "gdb_assert.h".
3354 (read_dbx_symtab): If the objfile has no .data section, use the
3355 section index for the .bss section instead.
3356
7dd88986
DJ
33572003-09-08 Daniel Jacobowitz <drow@mvista.com>
3358
3359 * frame.c (deprecated_safe_get_selected_frame): New function.
3360 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3361 * findvar.c (read_var_value): Call it.
3362
55ff77ac
CV
33632003-09-08 Corinna Vinschen <vinschen@redhat.com>
3364
3365 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3366 (sh64-tdep.o): Add dependencies.
3367 * configure.tgt: Add FIXME to sh-*-linux*.
3368 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3369 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3370 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3371 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3372 * sh64-tdep.c: New file, containing all sh64 related code from
3373 sh-tdep.c.
3374 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3375 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3376 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3377 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3378 * config/sh/wince.mt (TDEPFILES): Ditto.
3379
bfb39158
DJ
33802003-09-07 Daniel Jacobowitz <drow@mvista.com>
3381
3382 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3383 (stop_wait_callback): Handle !lp->signalled also.
3384 (lin_lwp_has_pending, flush_callback): New functions.
3385 (lin_lwp_wait): Call flush_callback.
3386 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3387 (linux_proc_pending_signals): New function.
3388 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3389
9407de8e
DJ
33902003-09-07 Daniel Jacobowitz <drow@mvista.com>
3391
3392 From Nick Kelsey <nickk@ubicom.com>:
3393 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3394 when the stop PC is at the beginning of a function also.
3395
2ef47cd0
DJ
33962003-09-06 Daniel Jacobowitz <drow@mvista.com>
3397
3398 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3399 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3400
6f4492c8
MK
34012003-09-06 Mark Kettenis <kettenis@gnu.org>
3402
3403 * sol-thread.c: Include "gdb_string.h".
3404
d3420b2f
MK
34052003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3406
3407 * gcore.c: Reorder include files in alphabetical order. Include
3408 "gdb_assert.h". Various coding style fixes.
3409 (derive_stack_segment, derive_heap_segment): Replace check for
3410 non-null BOTTOM and TOP with gdb_assert.
3411 (derive_heap_segment): Replace check for successful creation of
3412 ZERO with gdb_assert.
3413 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3414
5220ea4c
AC
34152003-09-04 Andrew Cagney <cagney@redhat.com>
3416
3417 * thread-db.c (verbose_dlsym): New function.
3418 (thread_db_load): Use verbose_dlsym
3419 (thread_db_new_objfile): Print that libthread_db was loaded, and
3420 that thread debugging was enabled.
3421
6e8c2c06
AC
34222003-09-04 Andrew Cagney <cagney@redhat.com>
3423
3424 * configure.tgt: Add "mips64*-*-*" target. Delete
3425 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3426 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3427 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3428 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3429 mips*-sony-*, and mips64*-*-elf* targets.
3430 * config/mips/embedl.mt: Delete file.
3431 * config/mips/embedl64.mt: Delete file.
3432 * config/mips/mips.mt: Delete file.
3433 * config/mips/mips64.mt: Delete file.
3434 * config/mips/tm-embed.h: Delete file.
3435 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3436 * config/mips/embed64.mt: Delete out-of-date comment.
3437
3a3bc038
AC
34382003-09-04 Andrew Cagney <cagney@redhat.com>
3439
3440 * hppa-tdep.c (hppa_gdbarch_init): Set
3441 "have_nonsteppable_watchpoint".
3442 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3443 * mips-tdep.c (mips_dump_tdep): Do not print
3444 HAVE_NONSTEPPABLE_WATCHPOINT.
3445 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3446 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3447 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3448 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3449
a957e642
CV
34502003-09-04 Corinna Vinschen <vinschen@redhat.com>
3451
3452 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3453 unused code. Add comment.
3454
a6fbcf2f
CV
34552003-09-04 Corinna Vinschen <vinschen@redhat.com>
3456
3457 * breakpoint.c (watchpoint_check): Check for pc being in an
3458 epilogue if watchpoint frame couldn't be found.
3459
c14a44d5
AC
34602003-09-04 Andrew Cagney <cagney@redhat.com>
3461
3462 * Makefile.in: Re-generate all dependencies.
3463
f6c40618
AC
34642003-09-03 Andrew Cagney <cagney@redhat.com>
3465
3466 * arch-utils.h (legacy_print_insn): Delete declaration.
3467 * arch-utils.c (legacy_print_insn): Delete function.
3468 * disasm.c (deprecated_tm_print_insn_info): Delete.
3469 (_initialize_disasm): Delete function, contained code initializing
3470 deprecated_tm_print_insn_info.
3471 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3472 (deprecated_tm_print_insn_info): Delete.
3473 (TARGET_PRINT_INSN): Do not provide a default.
3474 * gdbarch.h, gdbarch.c: Re-generate.
3475
242e8be5
AC
34762003-09-03 Andrew Cagney <cagney@redhat.com>
3477
3478 * disasm.c (fprintf_disasm): New function.
3479 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3480 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3481 reverts 2003-08-14 change.
3482 (_initialize_disasm): Call "init_disassemble_info", instead of
3483 INIT_DISASSEMBLE_INFO_NO_ARCH.
3484
3ffc3dda
MS
34852003-09-03 Michael Snyder <msnyder@redhat.com>
3486
3487 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3488
52d16ba8
AC
34892003-09-03 Andrew Cagney <cagney@redhat.com>
3490
3491 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3492 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3493 * symfile.c (syms_from_objfile): Update.
3494 (reread_symbols): `Update
3495 * exec.c (exec_file_attach): Update.
3496 (exec_file_attach): Update.
3497 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3498 2003-08-29 change.
3499 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3500
eb5492fa
DJ
35012003-09-03 Daniel Jacobowitz <drow@mvista.com>
3502
3503 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3504 trad-frame.h.
3505 (arm_get_cache): Delete macro.
3506 (struct arm_prologue_cache): Update comments. Make saved_regs into
3507 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3508 to prev_sp.
3509 (thumb_scan_prologue): Update for cache changes. Don't call
3510 DEPRECATED_PC_IN_CALL_DUMMY.
3511 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3512 argument and use it in desperation search for our prologue. Do not
3513 search past the specified PC.
3514 (arm_make_prologue_cache): Simplify.
3515
3516 (arm_prologue_this_id, arm_prologue_prev_register)
3517 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3518 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3519 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3520 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3521 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3522
3523 (arm_frame_chain_valid, arm_find_callers_reg)
3524 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3525 (arm_pop_frame): Delete obsolete methods.
3526 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3527
3528 (arm_gdbarch_init): Update for new frame methods. Register prologue
3529 and sigtramp unwinders. Set the default frame base method.
3530
3531 * Makefile.in (arm-tdep.o): Update dependencies.
3532 * varobj.c (find_frame_addr_in_frame_chain): Call
3533 get_frame_base_address.
3534 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3535
24de872b
DJ
35362003-09-03 Daniel Jacobowitz <drow@mvista.com>
3537
3538 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3539 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3540 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3541 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3542 Take NEXT_FRAME and CACHE arguments. Call
3543 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3544 Set unwound_pc in CACHE instead of modifying the frame argument.
3545 Don't bother checking the frame type when looking for sigtramp
3546 frames.
3547 (arm_make_prologue_cache, arm_frame_chain)
3548 (arm_init_extra_frame_info): New functions.
3549
9b8d791a
DJ
35502003-09-03 Daniel Jacobowitz <drow@mvista.com>
3551
3552 * arm-tdep.c (arm_get_cache): Define.
3553 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3554 unwound_sp, unwound_pc, and saved_regs.
3555 (thumb_scan_prologue): Take a cache instead of the frame.
3556 (arm_scan_prologue): Likewise.
3557 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3558 instead of a temporary frame.
3559 (arm_init_extra_frame_info): Allocate and use a cache.
3560 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3561
7ee3275f
AC
35622003-09-03 Andrew Cagney <cagney@redhat.com>
3563
3564 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3565 * config/mips/wince.mt (TM_CLIBS): Ditto.
3566 * config/sh/wince.mt (TM_CLIBS): Ditto.
3567 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3568 * config/sparc/sp64.mt (CC): Delete.
3569
57b29be7
AC
35702003-09-03 Andrew Cagney <cagney@redhat.com>
3571
3572 * defs.h: Do not include "arch-utils.h".
3573 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3574 GDB_MULTI_ARCH_PURE.
3575 * configure.in (GDB_MULTI_ARCH): Do not define.
3576 * configure, config.in: Regenerate.
3577 * configure.tgt: Do not set variable "gdb_multi_arch".
3578 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3579 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3580 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3581 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3582 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3583 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3584 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3585 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3586 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3587 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3588 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3589 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3590 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3591 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3592 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3593 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3594 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3595 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3596
12e035e2
MC
35972003-08-30 Michael Chastain <mec@shout.net>
3598
3599 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3600 * config/m68k/nm-hp300hpux.h: Delete.
3601 * config/m68k/tm-hp300hpux.h: Delete.
3602 * config/m68k/xm-hp300hpux.h: Delete.
3603 * config/m68k/xm-hp300bsd.h: Delete.
3604 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3605 tm-hp300hpux.h, xm-hp300hpux.h.
3606 * somsolib.c: Remove comment about hp300 shared libraries.
3607
bda34dc2
MK
36082003-08-31 Mark Kettenis <kettenis@gnu.org>
3609
5bca7895
MK
3610 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3611 Only define PTRACE_GET_THREAD_AREA is not already defined.
3612 Various style fixes in code and comments and some additional
3613 spelling fixes in comments. Move after functions dealing with
3614 debug registers.
3615 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3616 Fix coding-style.
3617
bda34dc2
MK
3618 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3619 frame_unwind_register_unsigned instead of
3620 frame_unwind_unsigned_register.
3621
c890192f
MK
36222003-08-30 Mark Kettenis <kettenis@gnu.org>
3623
3624 * configure.in: Search for gethostbyname in libnsl.
3625 * configure: Regenerated.
3626
60fac5b8
MK
36272003-08-29 Mark Kettenis <kettenis@gnu.org>
3628
e294916c
MK
3629 * configure.in: Remove redundant AC_MSG_RESULT in check for
3630 uintptr_t in stdint.h.
3631 * configure: Regenerated.
3632
c40d267a
MK
3633 * amd64-nat.h (struct regcache): Add opaque declaration.
3634
60fac5b8
MK
3635 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3636 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3637 Change "register array" to "register cache" in comments.
3638 (x86_64_linux_gregset64_reg_offset): New variable.
3639 (GETREGS_SUPPLIES): Remove macro.
3640 (supply_gregset): Call amd64_supply_native_gregset instead of
3641 x86_64_linux_supply_gregset.
3642 (fill_gregset): Rename `regno' to `regnum'. Call
3643 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3644 (store_regs): Rename `regno' to `regnum'.
3645 (store_fpregs): Rename `regno' to `regnum'.
3646 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3647 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3648 Reorganize function a bit.
3649 (store_inferior_registers): Rename `regno' to `regnum'. Use
3650 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3651 Reorganize function a bit.
3652 (_initialize_x86_64_linux_nat): New function.
3653 * config/i386/x86-64linux.mh.
3654
546143b6
AC
36552003-08-29 Andrew Cagney <cagney@redhat.com>
3656
3657 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3658 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3659 (target_remove_watchpoint): Delete macro.
3660 (target_insert_watchpoint): Delete macro.
3661 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3662 (remote_mips_stopped_by_watchpoint): Delete declaration.
3663 (remote_mips_remove_watchpoint): Delete declaration.
3664 (remote_mips_set_watchpoint): Delete declaration.
3665 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3666 * remote-mips.c (_initialize_remote_mips): Set
3667 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3668 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3669 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3670 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3671 (mips_stopped_by_watchpoint): Rename
3672 remote_mips_stopped_by_watchpoint.
3673 (mips_can_hardware_watchpoint): Rename
3674 remote_mips_can_use_hardware_watchpoint, update function
3675 signature.
3676
7bace51b
MK
36772003-08-29 Mark Kettenis <kettenis@gnu.org>
3678
b0f5c6f2
MK
3679 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3680 USER_DS. We haven't given them a register number yet.
3681
2a6d284d
MK
3682 * amd64-nat.h: New file.
3683 * amd64-nat.c: New file.
3684 * amd64fbsd-nat.c: Include "amd64-nat.h".
3685 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3686 (amd64fbsd32_r_reg_offset): New variable.
3687 (supply_gregset): Simply call amd64_supply_native_gregset.
3688 (fill_gregset): Rename `regno' to `regnum'. Simply call
3689 amd64_collect_native_gregset.
3690 (fill_fpregset): Rename `regno' to `regnum'.
3691 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3692 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3693 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3694 `fpregset_t'. Call amd64_supply_native_gregset instead of
3695 supply_gregset. Call x86_64_supply_fxsave instead of
3696 supply_fpregset.
3697 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3698 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3699 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3700 `fpregset_t'. Call amd64_collect_native_gregset instead of
3701 fill_gregset. Call x86_64_collect_fxsave instead of
3702 fill_fpregset.
3703 (_initialize_am64fbsd_nat): Initialize
3704 amd64_native_gregset32_reg_offset and
3705 amd64_native_gregset64_reg_offset.
3706 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3707
a16d75cc
MK
3708 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3709 null pointer. Fix typo in comment.
3710
7bace51b
MK
3711 * regcache.c (supply_register): Reimplement to call
3712 regcache_raw_supply.
3713 (regcache_collect): Reimplement by calling regcache_raw_collect.
3714
9a661b68
MK
37152003-08-28 Mark Kettenis <kettenis@gnu.org>
3716
3717 * regcache.c (register_buffer): Consitify first argument.
3718 (regcache_raw_supply, regcache_raw_collect): New
3719 functions.
3720
e94cc8fa
DJ
37212003-08-28 Daniel Jacobowitz <drow@mvista.com>
3722
3723 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3724 by Nathan J. Williams.
3725
c64bd0ce
DJ
37262003-08-28 Daniel Jacobowitz <drow@mvista.com>
3727
3728 * lin-lwp.c (wait_lwp): New function, copied from
3729 stop_wait_callback. Clean up.
3730 (stop_wait_callback): Use wait_lwp.
3731
e5ab0dce
AC
37322003-08-28 Andrew Cagney <cagney@redhat.com>
3733
3734 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3735 flavour and disassembler options.
3736 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3737 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3738 deprecated_tm_print_insn_info.
a8f4cde1 3739
a788de9b
AC
37402003-08-27 Andrew Cagney <cagney@redhat.com>
3741
3742 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3743 Use target_read_memory.
3744 (s390_get_frame_info): Update. Do not reference
3745 deprecated_tm_print_insn_info.
3746 (s390_check_function_end, s390_is_sigreturn): Ditto.
3747
36482093
AC
37482003-08-27 Andrew Cagney <cagney@redhat.com>
3749
3750 * Makefile.in (cris-tdep.o): Update dependencies.
3751 * cris-tdep.c: Include "gdb_assert.h".
3752 (cris_gdbarch_init): Set print_insn.
3753 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3754 (cris_delayed_get_disassembler): Simplify, directly call the
3755 disassembler returned by cris_get_disassembler.
3756 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3757 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3758 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3759 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3760 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3761 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3762 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3763 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3764 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3765 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3766 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3767 (gdb_print_insn_sparc): Delete function.
3768 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3769 deprecated_tm_print_insn_info.
3770 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3771 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3772 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3773 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3774 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3775 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3776 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3777 (s390_gdbarch_init): Set print_insn.
3778
0285512f
AC
37792003-08-27 Andrew Cagney <cagney@redhat.com>
3780
3781 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3782 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3783 * infcall.c (call_function_by_hand): Convert the entry point
3784 address into a code address.
3785
cdcd5552
AC
37862003-08-27 Andrew Cagney <cagney@redhat.com>
3787
3788 * dsrec.c: Include "gdb_string.h".
3789 * Makefile.in (dsrec.o): Update dependencies.
3790
e85cddad
MC
37912003-08-27 Michael Chastain <mec@shout.net>
3792
3793 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3794
8bbfbb23
AC
37952003-08-27 Andrew Cagney <cagney@redhat.com>
3796
3797 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3798 (alpha_osf1_init_abi): Do not set call_dummy_address.
3799
ba058b66
DC
38002003-08-27 David Carlton <carlton@kealia.com>
3801
3802 From Randolph Chung <tausq@debian.org>:
3803 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3804 compiles with -Wformat-nonliteral -Werror.
3805
87f84c9d
JB
38062003-08-26 Jim Blandy <jimb@redhat.com>
3807
3808 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3809 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3810 bfd_lookup_symbol, since we only want symbols in code sections.
3811 (look_for_base): Pass zero as the SECT_FLAGS argument to
3812 bfd_lookup_symbol, since we're not concerned about which section
3813 the symbol is in.
3814
102d615a
JJ
38152003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3816
3817 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3818 we are frameless or the return address register is already known.
102d615a 3819
cc7ad3ea
AC
38202003-08-26 Andrew Cagney <cagney@redhat.com>
3821
3822 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3823 in size. Add comments.
3824
af8b88dd
JJ
38252003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3826
3827 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3828 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3829
e0a4f5a1
JM
38302003-08-26 Jason Merrill <jason@redhat.com>
3831
3832 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3833 case out of #ifdef MIPS block.
3834
4ae9ee8e
DJ
38352003-08-25 Daniel Jacobowitz <drow@mvista.com>
3836
3837 PR java/1322
3838 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3839 available before calling SECT_OFF_TEXT.
3c164570 3840 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3841
004d836a
JJ
38422003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3843
a8f4cde1 3844 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3845 bof, and nat0-nat127 as pseudo-registers.
3846 (ia64_frame_cache): New struct used to cache frame info.
3847 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3848 register grouping so registers without names are still saved and
004d836a 3849 restored.
a8f4cde1 3850 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3851 pseudo values.
3852 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3853 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3854 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3855 ia64_frame_cache.
3856 (examine_prologue): Change prototype to add next_frame pointer.
3857 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3858 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3859 alloc insn and if equal, mark as not frameless. At end of routine,
3860 if not frameless, calculate registers for the previous frame and store
3861 in the cache, if a cache is provided.
3862 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3863 and pass 0 for next_frame.
3864 (ia64_store_return_value): Change to use convert_typed_floating()
3865 instead of calling ia64_convert_to_raw().
3866 (ia64_extract_return_value): Change to use convert_typed_floating()
3867 instead of calling ia64_convert_to_virtual().
3868 (ia64_frame_cache): New routine to support new frame model.
3869 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3870 (ia64_frame_sniffer): Ditto.
3871 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3872 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3873 (ia64_sigtramp_frame_prev_register): Ditto.
3874 (ia64_sigtramp_frame_sniffer): Ditto.
3875 (ia64_frame_base_address): Ditto.
3876 (ia64_extract_struct_value_address): Change to issue error message.
3877 (ia64_frame_align): New routine to align sp.
3878 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3879 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3880 ia64_push_dummy_call().
3881 (ia64_push_return_address): Ditto.
3882 (ia64_unwind_dummy_id): New function.
3883 (ia64_unwind_pc): Ditto.
3884 (ia64_convert_register_p): Ditto.
3885 (ia64_register_to_value): Ditto.
3886 (ia64_value_to_register): Ditto.
3887 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3888 (ia64_register_byte, ia64_register_raw_size): Ditto.
3889 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3890 (ia64_saved_pc_after_call): Ditto.
3891 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3892 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3893 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3894 (ia64_register_convert_to_raw): Ditto.
3895 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3896 (ia64_init_extra_frame_info): Ditto.
3897 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3898 (ia64_gdbarch_init): Remove registering of deprecated functions that
3899 are no longer used. Add registration of new gdbarch functions.
3900 Remove registering deprecated_write_sp. Replace
3901 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3902 Delete set_gdbarch_deprecated_register_convertible(),
3903 set_gdbarch_deprecated_register_convert_to_virtual(), and
3904 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3905 set_gdbarch_deprecated_register_size(),
3906 set_gdbarch_deprecated_register_bytes(),
3907 set_gdbarch_pcregnum(),
3908 set_gdbarch_deprecated_register_byte(),
3909 set_gdbarch_deprecated_register_raw_size(),
3910 set_gdbarch_deprecated_max_register_raw_size(),
3911 set_gdbarch_deprecated_register_virtual_size(),
3912 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3913 Replace set_gdbarch_deprecated_extract_return_value() with
3914 set_gdbarch_extract_return_value(). Remove calls to:
3915 set_gdbarch_deprecated_saved_pc_after_call();
3916 set_gdbarch_deprecated_frame_chain(),
3917 set_gdbarch_deprecated_frame_saved_pc(),
3918 set_gdbarch_deprecated_frame_init_saved_regs(),
3919 set_gdbarch_deprecated_get_saved_register(),
3920 set_gdbarch_deprecated_call_dummy_words(),
3921 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3922 set_gdbarch_deprecated_init_extra_frame_info(),
3923 set_gdbarch_deprecated_frame_args_address(),
3924 set_gdbarch_deprecated_frame_locals_address(),
3925 and set_gdbarch_deprecated_dummy_write_sp().
3926 Add set_gdbarch_convert_register_p(),
3927 set_gdbarch_register_to_value(),
3928 set_gdbarch_value_to_register(),
3929 set_gdbarch_push_dummy_call(),
3930 set_gdbarch_frame_align(),
3931 set_gdbarch_unwind_dummy_id(),
3932 set_gdbarch_unwind_pc(),
3933 frame_unwind_append_sniffer(),
3934 frame_unwind_append_sniffer(),
3935 and frame_base_set_default().
3936
aede7613
CD
39372003-08-25 Chris Demetriou <cgd@broadcom.com>
3938
3939 * configure.tgt: Document need for special "mipsisa64" handling.
3940 (mipsisa64*-*-linux64): Handle as target linux64.
3941 (mipsisa64*-*-*): Handle as target embed64.
3942
43c3a82e
MC
39432003-08-18 Michael Chastain <mec@shout.net>
3944
3945 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3946 objfile bug.
3947
6564f77d
MK
39482003-08-24 Mark Kettenis <kettenis@gnu.org>
3949
2de139ba
MK
3950 * i387-tdep.h: Update copyright date.
3951 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3952
6564f77d
MK
3953 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3954 CFLAGS games to reflect reality.
3955
42cf1509
AC
39562003-08-24 Andrew Cagney <cagney@redhat.com>
3957
3958 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3959 GDB_MULTI_ARCH is always non-zero.
3960 * osabi.c (_initialize_gdb_osabi): Ditto.
3961 (gdbarch_init_osabi): Ditto.
3962 * sparc-tdep.c: Ditto for #if code.
3963
0485f6ad
MK
39642003-08-23 Mark Kettenis <kettenis@gnu.org>
3965
3966 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3967 Update comments.
3968 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3969 comments.
3970 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3971 x86_64_supply_fxsave.
3972 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3973 x86_64_supply_fxsave.
3974 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3975 x86_64_supply_fxsave.
3976
c7716133
AJ
39772003-08-23 Andreas Jaeger <aj@suse.de>
3978
3979 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3980 i387_supply_fxsave.
3981
ed504bdf
MK
39822003-08-23 Mark Kettenis <kettenis@gnu.org>
3983
3984 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3985 i387_supply_register.
3986 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3987 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3988 i387_supply_fsave.
3989 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3990 i387_supply_fxsave.
3991 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3992 i387_supply_fsave.
3993 * i386bsd-nat.c (supply_fpregset): Adjust call to
3994 i387_supply_fsave.
3995 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3996 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3997 supply_fpregset.
3998 (store_inferior_registers): Remove extraneous whitespace. Call
3999 i387_fill_fsave instead of fill_fpregset.
4000 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4001 (supply_fpregset): Likewise.
4002 * i386v4-nat.c (supply_fpregset): Adjust call to
4003 i387_supply_fsave.
4004 * i386-interix-nat.c (supply_fpregset): Adjust call to
4005 i387_supply_fsave.
4006 * i386-linux-nat.c (supply_fpregset): Adjust call to
4007 i387_supply_fsave.
4008 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4009 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4010 i387supply_fsave and i387_supply_fxsave.
4011 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4012 Incorporate code from `i387_supply_register.
4013 (i387_supply_register): Remove.
4014 (i387_supply_fxsave): Add `regnum' argument.
4015 Update comments.
4016 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4017 prototype.
4018 (i387_supply_register): remove prototype.
4019 Update comments.
a8f4cde1 4020
4be5d520
MC
40212003-08-22 Michael Chastain <mec@shout.net>
4022
4023 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4024 Add lines for files in gdb/testsuite/gdb.cp/* that are
4025 still not 8.3 unique.
4026
7ed85d26
DJ
40272003-08-22 Daniel Jacobowitz <drow@mvista.com>
4028
4029 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4030 TYPE_VPTR_FIELDNO is valid.
4031
eb0d3137
MK
40322003-08-19 Mark Kettenis <kettenis@gnu.org>
4033
4034 * utils.c (set_width_command): Remove prototypes.
4035 (set_screen_size): New prototype.
4036 (init_page_info): Simplify by fetching the screen size from
4037 Readline. Call set_screen_size.
4038 (set_screen_size): New function.
4039 (set_width): Add missing whitespace in comment.
4040 (set_width_command): Call set_screen_size.
4041 (set_height_command): New function.
4042 (initialize_utils): Fix formatting. Make "set height" command
4043 call set_height_command. Remove redundant code that turns off
4044 pagination if output isn't a terminal. Remove redundant call to
4045 set_width_command.
a8f4cde1 4046
7e6d0ac8
MK
40472003-08-22 Mark Kettenis <kettenis@gnu.org>
4048
3567a8ea
MK
4049 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4050 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4051 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4052 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4053 `case' keyword.
4054 (sparc64_register_info): Give the reister with number
4055 SPARC64_STATE_REGNUM a name.
4056 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4057 %asi and %ccr.
4058 (sparc64_push_dummy_call): Take BIAS into account when checking
4059 stcak alignment.
4060 (sparc_software_single_step): Remove assertions that check whether
4061 NPC and NNPC were zero.
4062 (sparc_supply_rwindow): Make public. Merge functionality with
4063 sparc64_supply_rwindow.
4064 (sparc_fill_rwindow): Make public. Merge functionality with
4065 sparc64_fill_rwindow.
4066 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4067 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4068 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4069 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4070 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4071
7e6d0ac8
MK
4072 * reggroups.c: Add whitespace after declarations of local
4073 variables in functions.
4074
72e5f484
MC
40752003-08-21 Michael Chastain <mec@shout.net>
4076
4077 * gdbtypes.h: Change array bound type from an int to enum.
4078
435ac228
AC
40792003-08-21 Andrew Cagney <cagney@redhat.com>
4080
4081 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4082 * config/sparc/tm-sparc.h: Ditto.
4083 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4084 unconditionally.
4085 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4086
0d0e1a63
MK
40872003-07-13 Mark Kettenis <kettenis@gnu.org>
4088
4089 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4090 (register_objfile_data, set_objfile_data, objfile_data): New
4091 prototypes.
4092 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4093 prototypes.
4094 (allocate_objfile): Call objfile_alloc_data.
4095 (free_objfile): Call objfile_free_data.
4096 (struct objfile_data): New.
4097 (struct objfile_data_registration): New.
4098 (struct objfile_data_registry): New.
4099 (objfile_data_registry): New variable.
4100 (register_objfile_data): New function.
4101 (objfile_alloc_data, objfile_free_data): New functions.
4102 (set_objfile_data, objfile_data): New functions.
4103 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4104 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4105 (_initialize_dwarf2_frame): New function and prototype.
4106
d90cf509
AC
41072003-08-21 Andrew Cagney <cagney@redhat.com>
4108
4109 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4110 a specific architecture.
4111 * arch-utils.h (set_architecture_from_arch_mach): Delete
4112 declaration.
4113 (target_architecture_hook): Delete declaration.
4114 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4115 (default_float_format): Assume GDB_MULTI_ARCH.
4116 (default_double_format): Assume GDB_MULTI_ARCH.
4117 (set_endian_from_file): Delete function.
4118 (arch_ok): Delete function.
4119 (set_arch): Delete function.
4120 (set_architecture_from_arch_mach): Delete function.
4121 (set_architecture_from_file): Delete function.
4122 (set_architecture): Assume GDB_MULTI_ARCH.
4123 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4124
8b39fe56
MK
41252003-08-21 Mark Kettenis <kettenis@gnu.org>
4126
4127 Rewrite FreeBSD/sparc64 native configuration.
4128 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4129 * sparc64fbsd-nat.c: New file.
4130 * sparc64fbsd-tdep.c: New file.
4131 * sparc64-tdep.c sparc64-tdep.h: New files.
4132 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4133 sparc64fbsd-tdep.o): New dependencies.
4134 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4135 and sparc64fbsd-tdep.c.
4136 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4137 * config/sparc/fbsd.mh: Remove copyright notice.
4138 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4139 sparcbsd-nat.o.
4140 * config/sparc/fbsd.mt: Remove copyright notice.
4141 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4142 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4143 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4144 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4145 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4146 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4147 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4148 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4149 "sparc/tm-sp64.h".
4150 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4151 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4152
a7f19c79
MC
41532003-08-21 Michael Chastain <mec@shout.net>
4154
4155 * symtab.h: Add doco on the space critical structures and
4156 some measurements of space usage.
4157
da08ea5b
MS
41582003-08-21 Michael Snyder <msnyder@redhat.com>
4159
4160 * tracepoint.c (trace_dump_command): Trace break address
4161 is subject to DECR_PC_AFTER_BREAK.
4162 (set_traceframe_context): Make "trace_line" an int.
4163 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4164
6df2bf50
MS
41652003-08-20 Michael Snyder <msnyder@redhat.com>
4166
4167 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4168 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4169 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4170 argument passing.
a8f4cde1 4171 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4172 functions, replace sh_push_dummy_call.
4173 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4174
0955bbf0
MC
41752003-08-20 Michael Chastain <mec@shout.net>
4176
4177 * gdbtypes.h (struct main_type): Rearrange to save space.
4178
260a4188
MS
41792003-08-20 Michael Snyder <msnyder@redhat.com>
4180
4181 * trad-frame.c: Comment typo fix.
4182
8baa6f92
KB
41832003-08-20 Michael Snyder <msnyder@redhat.com>
4184 Kevin Buettner <kevinb@redhat.com>
4185
4186 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4187 (frv_frame_init_saved_regs): Add declaration.
4188 (frame_extra_info): Add new field ``saved_regs''.
4189 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4190 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4191 Update frame related code.
4192 (frv_extract_struct_value_address): Adjust formatting.
4193 * Makefile.in (frv-tdep.o): Update dependencies.
4194 * config/frv/tm-frv.h (target_insert_watchpoint)
4195 (target_remove_watchpoint, target_insert_hw_breakpoint)
4196 (target_remove_hw_breakpoint): Delete these macros.
4197 (remote_insert_watchpoint, remote_remove_watchpoint)
4198 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4199 these declarations.
4200
87193939
MC
42012003-08-20 Michael Chastain <mec@shout.net>
4202
4203 * defs.h (ENUM_BITFIELD): New macro.
4204 * symtab.h (ENUM_BITFIELD): Use it.
4205 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4206
062103ba
SA
42072003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4208
4209 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4210
8b148df9
AC
42112003-08-18 Andrew Cagney <cagney@redhat.com>
4212
4213 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4214 * gdbarch.h, gdbarch.c: Re-generate.
4215 * infcall.c (call_function_by_hand): Adjust the SP by
4216 frame_red_zone_size before allocating any stack space.
4217 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4218 * x86-64-tdep.c (x86_64_frame_align): New function.
4219 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4220
4221 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4222 Remove code adjusting SP so that it skips over the Red Zone.
4223
954a4db8
MK
42242003-08-18 Mark Kettenis <kettenis@gnu.org>
4225
4226 * NEWS (New native configurations): Mention FreeBSD/amd64.
4227
1a241548
AC
42282003-08-18 Andrew Cagney <cagney@redhat.com>
4229
4230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4231 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4232 "m68k_frame_p".
4233 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4234
f82b2acd
MK
42352003-08-18 Mark Kettenis <kettenis@gnu.org>
4236
4237 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4238
4056d258
ML
42392003-08-18 Michal Ludvig <mludvig@suse.cz>
4240
4241 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4242 Define.
4243 * i386-linux-nat.c: Include "linux-nat.h".
4244 (child_post_startup_inferior): New function.
a8f4cde1 4245
99ab4326
MK
42462003-08-18 Mark Kettenis <kettenis@gnu.org>
4247
4248 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4249 at the start of a frameless function. This probably fixes PR
4250 backtrace/1338.
4251
c8d5f0d6
MC
42522003-08-17 Michael Chastain <mec@shout.net>
4253
4254 * symfile.c (find_sym_fns): Remove special case for apollo target.
4255
9016a515
DJ
42562003-08-17 Daniel Jacobowitz <drow@mvista.com>
4257
4258 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4259 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4260 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4261 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4262 (linux_supports_tracevforkdone): New function.
4263 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4264 TRACEVFORKDONE.
4265 (child_follow_fork): Handle vfork.
4266 (linux_handle_extended_wait): Likewise. Also handle exec.
4267 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4268 * NEWS: Mention fork tracing.
4269
c538c11c
DJ
42702003-08-17 Daniel Jacobowitz <drow@mvista.com>
4271
4272 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4273
4de4c07c
DJ
42742003-08-17 Daniel Jacobowitz <drow@mvista.com>
4275
4276 * Makefile.in (i386-linux-nat.o): Update dependencies.
4277 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4278 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4279 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4280 * i386-linux-nat.c: Include "linux-nat.h".
4281 (child_post_startup_inferior): New function.
4282 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4283 * infptrace.c (kill_inferior): Wrap in #ifdef.
4284 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4285 attaching to each LWP.
4286 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4287 (init_lin_lwp_ops): Fill in some more operations.
4288 * linux-nat.h (linux_enable_event_reporting)
4289 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4290 prototypes.
4291 * linux-nat.c (linux_enable_event_reporting): New function.
4292 (child_post_attach, linux_child_post_startup_inferior)
4293 (child_post_startup_inferior, child_follow_fork)
4294 (linux_handle_extended_wait, kill_inferior): New functions.
4295
7996bcec
AC
42962003-08-16 Andrew Cagney <cagney@redhat.com>
4297
4298 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4299 * gdbarch.h, gdbarch.c: Re-generate.
4300
3d48a7a0
MK
43012003-08-16 Mark Kettenis <kettenis@gnu.org>
4302
4303 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4304
7989c619
AC
43052003-08-16 Andrew Cagney <cagney@redhat.com>
4306
4307 * NEWS: Mention that "set prompt-escape-char" was deleted.
4308 * top.c (get_prompt_1): Delete function.
4309 (gdb_prompt_escape):
4310 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4311 prompt-escape-char" command.
4312 (MAX_PROMPT_SIZE): Delete macro.
4313 (get_prompt): Simplify, do not call get_prompt_1.
4314
07978cd8
AC
43152003-08-16 Andrew Cagney <cagney@redhat.com>
4316
4317 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4318 -Werror. -Wformat-nonliteral problems.
4319
3ff7cf9e
JB
43202003-08-15 J. Brobecker <brobecker@gnat.com>
4321
4322 Further multiarching work mostly for hppa64-*-hpux11:
4323 * hppa-tdep.h: New file.
4324 * hppa-tdep.c: #include hppa-tdep.c.
4325 (hppa32_num_regs): Renamed from hppa_num_regs.
4326 (hppa64_num_regs): New constant.
4327 (hppa64_call_dummy_breakpoint_offset): New constant.
4328 (hppa32_call_dummy_length): New constant.
4329 (hppa64_call_dummy_length): New constant.
4330 (hppa32_stack_align): Make name 32bit explicit.
4331 (hppa32_register_virtual_type): Likewise.
4332 (hppa32_extract_return_value): Likewise.
4333 (hppa32_use_struct_convention): Likewise.
4334 (hppa32_store_return_value): Likewise.
4335 (hppa64_register_virtual_type): New function.
4336 (hppa64_extract_return_value): New function.
4337 (hppa64_use_struct_convention): New function.
4338 (hppa64_store_return_value): New function.
4339 (hppa_frame_locals_address): Remove declaration, function does
4340 not exist anymore.
4341 (hppa_register_byte): Add support for PA64 ABI.
4342 (hppa_gdbarch_init): Add support for PA64 ABI.
4343 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4344 Make name 32bit explicit.
4345 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4346 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4347 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4348 (hppa64_hpux_frame_base_before_sigtramp): New function.
4349 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4350 * config/pa/tm-hppa64.h: Remove macros that are no longer
4351 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4352 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4353 * config/pa/tm-hppah.h: Update function calls in macros
4354 following the function renaming in hppa-hpux-tdep.c.
4355 * Makefile.in (hppa_tdep_h): New variable.
4356 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4357
5d05ca6d
MS
43582003-08-14 Michael Snyder <msnyder@redhat.com>
4359
4360 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4361
37ba2569
JB
43622003-08-13 J. Brobecker <brobecker@gnat.com>
4363
4364 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4365 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4366 routine.
4367
aed7f26a
MS
43682003-08-13 Michael Snyder <msnyder@redhat.com>
4369
4370 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4371 (frv_saved_pc_after_call): Use deprecated ftype.
4372 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4373 (frv_remote_translate_xfer_address): Remove.
4374 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4375
752d4ac1
JB
43762003-08-13 J. Brobecker <brobecker@gnat.com>
4377
4378 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4379 initialization after the common gdbarch initialization, not before.
4380
1426ac1d
JB
43812003-08-13 J. Brobecker <brobecker@gnat.com>
4382
4383 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4384 (ADDR_BITS_REMOVE): Remove, redundant.
4385
b6fbdd1d
JB
43862003-08-13 J. Brobecker <brobecker@gnat.com>
4387
4388 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4389 gdbarch method to clear the 2 low bits of text addresses.
4390
44160db3
AC
43912003-08-12 Andrew Cagney <cagney@redhat.com>
4392
4393 * Makefile.in (dsrec.o): Update dependencies.
4394 * dsrec.c: Include "gdb_assert.h".
4395 (make_srec): Use snprintf instead of sprintf, use a literal format
4396 string.
4397
bcf7d3ca
AC
43982003-08-12 Andrew Cagney <cagney@redhat.com>
4399
4400 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4401 FRAME_OBSTACK_ZALLOC.
4402
49ed40de
KB
44032003-08-12 Kevin Buettner <kevinb@redhat.com>
4404
4405 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4406 SSE registers.
4407
b246147c
MK
44082003-08-10 Mark Kettenis <kettenis@gnu.org>
4409
4410 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4411 amd64fbsd_sc_reg_offset): Add extern declarations.
4412 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4413 declarations.
4414
d95fdc0d
BE
44152003-08-11 Ben Elliston <bje@wasabisystems.com>
4416
4417 * MAINTAINERS (write after approval): Update my mail address.
4418
cf6a0e73
AC
44192003-08-10 Andrew Cagney <cagney@redhat.com>
4420
4421 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4422
f837910f
MK
44232003-08-10 Mark Kettenis <kettenis@gnu.org>
4424
e2dbbd2d
MK
4425 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4426 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4427 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4428 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4429 i386bsd_sc_reg_offset): Add extern declarations.
4430 * i386obsd-nat.c: Include "i386-tdep.h"
4431 (_initialize_i386obsd_nat): Remove extern declarations.
4432 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4433 declarations.
4434 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4435 declarations.
4436
f837910f
MK
4437 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4438 instead of frame_read_register.
4439 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4440 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4441 SP_REGNUM.
4442 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4443 instead of frame_unwind_unsigned_register. Use
4444 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4445 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4446 instead of read_register. Use builtin_type_void_data_ptr instead
4447 of builtin_type_void_func_ptr when extracting the address of the
4448 jmp_buf.
4449 (i386_extract_return_value, i386_store_return_value,
4450 i386_pseudo_register_read, i386_pseudo_register_write): Use
4451 register_size instead REGISTER_RAW_SIZE.
4452
edcf254d
AC
44532003-08-10 Andrew Cagney <cagney@redhat.com>
4454
4455 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4456 sprintf. Make "name" constant.
4457
26604a34
MK
44582003-08-10 Mark Kettenis <kettenis@gnu.org>
4459
192285c6
MK
4460 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4461 instead of frame_read_register.
f837910f
MK
4462 (i387_print_float_info): Use get_frame_register and
4463 get_frame_register_unsigned instead of frame_register_read.
192285c6 4464
f0925262
MK
4465 * i386fbsd-nat.c: Include "i386-tdep.h".
4466 (child_resume): Make `eflags' an ULONGEST. Use
4467 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4468 instead of register_read and register_write.
4469
a144416f
MK
4470 * i386bsd-nat.c (fetch_inferior_registers,
4471 store_inferior_registers): Don't use && at the end of a line.
4472 (_initialize_i386bsd_nat): Fix typo.
4473
fec74868
MK
4474 * frame.c (_initialize_frame): Add missing backslash.
4475
87232496
MK
4476 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4477 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4478 and supply_register instead of manipulating the register buffer
4479 directly.
4480
c9b9de0b
MK
4481 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4482 * config/i386/nm-i386sol2.h
4483 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4484
26604a34
MK
4485 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4486 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4487 instructions that GCC likes to mingle into the prologue. Fixes
4488 gdb/1253 and gdb/1255.
4489
25d29d70
AC
44902003-08-09 Andrew Cagney <cagney@redhat.com>
4491
4492 Fix GDB PR cli/926.
4493 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4494 * command.h (add_setshow_uinteger_cmd): Declare.
4495 * frame.c (set_backtrace_cmd): New function.
4496 (show_backtrace_cmd): New function.
4497 * frame.c (_initialize_frame): Replace "set/show
4498 backtrace-below-main" with "set/show backtrace past-main". Add
4499 command "set/show backtrace limit".
4500 (backtrace_past_main): Rename "backtrace_below_main".
4501 (backtrace_limit): New variable.
4502 (get_prev_frame): Update. Check the backtrace_limit.
4503
9ebf4acf
AC
45042003-08-09 Andrew Cagney <cagney@redhat.com>
4505
4506 * defs.h (xstrprintf): Declare.
4507 * utils.c (xstrprintf): New function.
4508 * breakpoint.c (insert_breakpoints): Replace sprintf and
4509 non-literal format strings, with xstrprintf and cleanups.
4510 (delete_breakpoint,breakpoint_re_set): Ditto.
4511 (commands_command, insert_breakpoints): Ditto.
4512 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4513 (break_at_finish_command_1): Ditto.
4514
3771659b
AC
45152003-08-09 Andrew Cagney <cagney@redhat.com>
4516
4517 * MAINTAINERS (language support): List Adam Fedor as Objective C
4518 maintainer.
4519
b4263afa
JB
45202003-08-08 J. Brobecker <brobecker@gnat.com>
4521
4522 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4523 are now multiarched.
4524
d84defb1
JB
45252003-08-08 J. Brobecker <brobecker@gnat.com>
4526
4527 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4528 longer necessary now that hppa64 is partially multiarch'ed.
4529
f786f615
AC
45302003-08-08 Andrew Cagney <cagney@redhat.com>
4531
4532 * interps.c (interp_set): Check for a NULL "old_interp".
4533
c938e9b0
L
45342003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4535
4536 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4537 (install-only): Support DESTDIR.
4538 (uninstall): Likewise.
4539 (install-gdbtk): Likewise.
4540
9a146a11
EZ
45412003-08-08 Elena Zannoni <ezannoni@redhat.com>
4542
4543 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4544 contains something meaningful at all times.
4545
4546Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4547
62599e99 4548 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4549
56296155
BC
4550Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4551
62599e99 4552 * MAINTAINERS (write after approval): Added self.
56296155 4553
9710e734
AC
45542003-08-07 Andrew Cagney <cagney@redhat.com>
4555
4556 * inferior.h (AT_SYMBOL): Define.
4557 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4558 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4559 * mips-tdep.c (mips_call_dummy_address): Delete function.
4560 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4561 set call_dummy_address.
4562
98b3ab73
AC
45632003-08-07 Andrew Cagney <cagney@redhat.com>
4564
4565 * language.c (op_error): Delete function.
4566 (binop_type_check): Delete function.
4567 * language.h (type_op_error, range_op_error): Delete macros.
4568 (op_error): Delete declaration.
4569
2fcf52f0
AC
45702003-08-07 Andrew Cagney <cagney@redhat.com>
4571
4572 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4573
abd4220e 45742003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4575
abd4220e 4576 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4577 (x86_64_push_arguments): Skip the red zone.
abd4220e 4578
9dd5f34f
AC
45792003-08-05 Andrew Cagney <cagney@redhat.com>
4580
4581 * reggroups.c (reggroup_next): Check for the final entry.
4582
e5e78edc
AC
45832003-08-04 Andrew Cagney <cagney@redhat.com>
4584
ab4e3d93
AC
4585 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4586 * cli/cli-script.c (define_command): Call query directly, instead
4587 of passing it a buffer.
4588 * ocd.c (ocd_error): Pass error a constant format string.
4589 * remote-mips.c (mips_error): Use fputs_filtered.
4590
1062ca82
AC
4591 * solib-svr4.c (_initialize_svr4_solib): Update
4592 register_gdbarch_data call.
4593 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4594
fcc1c85c
AC
4595 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4596 (register_gdbarch_data): Delete "free" parameter. Update
4597 comments.
4598 * gdbarch.h, gdbarch.c: Re-generate.
4599 * reggroups.c (_initialize_reggroup): Update.
4600 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4601 * frame-base.c (_initialize_frame_base): Update.
4602 * frame-unwind.c (_initialize_frame_unwind): Update.
4603 * user-regs.c (_initialize_user_regs): Update.
4604 * remote.c (_initialize_remote): Update.
4605 * regcache.c (_initialize_regcache): Update.
4606
116f06ea
AC
4607 * regcache.c (xfree_regcache_descr): Delete function.
4608 (_initialize_regcache): Update call to register_gdbarch_data.
4609 (init_regcache_descr, init_legacy_regcache_descr): Use
4610 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4611
e5e78edc
AC
4612 * remote.c (free_remote_state): Delete function.
4613 (_initialize_remote): Update register_gdbarch_data.
4614 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4615 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4616
6c7d17ba
AC
46172003-08-04 Andrew Cagney <cagney@redhat.com>
4618
4619 * reggroups.c (struct reggroup_el): Define.
4620 (struct reggroups): Delete field "nr_group". Replace array
4621 "group" with a "first" to "last" linked list.
4622 (reggroups_init): Update. Allocate using gdbarch's obstack.
4623 (reggroups_free): Delete function.
4624 (add_group): Update. Add "el" parameter.
4625 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4626 (default_groups): Update.
4627 (reggroup_next): Replace reggroups.
4628 (reggroups_dump): Update.
4629 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4630 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4631 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4632
89b7795b
DJ
46332003-08-04 Daniel Jacobowitz <drow@mvista.com>
4634
4635 * Makefile.in (tui-interp.o): Update dependencies.
4636
306d9ac5
DC
46372003-08-04 David Carlton <carlton@kealia.com>
4638
4639 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4640 to internal_error call.
4641 * source.c (forward_search_command): Add "%s" format argument.
4642 (reverse_search_command): Ditto.
4643 * top.c (quit_confirm): Ditto.
4644 * cli/cli-setshow.c (do_setshow_command): Ditto.
4645 * cp-valprint.c (cp_print_class_method): Replace
4646 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4647 (cp_print_class_member): Ditto.
4648 * event-top.c (command_line_handler): Ditto.
4649 * linux-proc.c (linux_info_proc_cmd): Ditto.
4650 * p-typeprint.c (pascal_type_print_base): Ditto.
4651 * p-valprint.c (pascal_object_print_class_method): Ditto.
4652 (pascal_object_print_class_member): Ditto.
4653 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4654 * remote.c (remote_cisco_section_offsets): Ditto.
4655 * top.c (command_line_input): Ditto.
4656 * utils.c (vwarning,error_stream,quit): Ditto.
4657 * valprint.c (print_floating,print_binary_chars)
4658 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4659
57bfe177
AC
46602003-08-04 Andrew Cagney <cagney@redhat.com>
4661
4662 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4663
e546b999
AC
46642003-08-02 Andrew Cagney <cagney@redhat.com>
4665
4666 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4667 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4668 amd64fbsd-nat.c.
4669
91092ee5
AC
46702003-08-02 Andrew Cagney <cagney@redhat.com>
4671
4672 * Makefile.in: Update all dependencies and definitions.
4673
889f28e2
AF
46742003-08-02 Adam Fedor <fedor@gnu.org>
4675
4676 * linespec.c (is_objc_method_format): New function
4677 (decode_line_1, locate_first_half): Use it.
4678 Fixes PR objc/1298
4679
880bc914
AC
46802003-08-01 Andrew Cagney <cagney@redhat.com>
4681
4682 * NEWS: Mention that m32r is multi-arch.
4683 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4684 * configure.tgt: Recognize m32r-*-*.
4685 * config/m32r/tm-m32r.h: Delete file.
4686 * config/m32r/m32r.mt: New file.
a8f4cde1 4687 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4688 gethostname succeeds, in order to avoid a compilation
4689 warning.
4690 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4691 compiler warning.
4692
19f59343
MS
46932003-08-01 Michael Snyder <msnyder@redhat.com>
4694
4695 * sh-tdep.c (sh_frame_align): New gdbarch method.
4696 (sh_gdbarch_init): Set up frame_align method.
4697
4e7d7511
MS
46982003-07-31 Michael Snyder <msnyder@redhat.com>
4699
4700 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4701 which is already covered by the new frames infrastructure.
4702
63022984
AC
47032003-07-31 Andrew Cagney <cagney@redhat.com>
4704
4705 * user-regs.c (struct user_reg): Add "next" link.
4706 (struct user_regs): Replace "user" with "first" and "last" links.
4707 (append_user_reg): Add pre-allocated "reg" parameter.
4708 (builtin_user_regs): Provide initial value for "last".
4709 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4710 (user_regs_init): Allocate memory from the gdbarch obstack.
4711 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4712 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4713 linked list.
4714 (usernum_to_user_reg): New function.
4715 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4716 (value_of_user_reg): Use usernum_to_user_reg.
4717 (user_regs_free): Delete function.
4718 (_initialize_user_regs): Update register_gdbarch_data call.
4719
7cf6e574
DJ
47202003-07-31 Daniel Jacobowitz <drow@mvista.com>
4721
4722 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4723
c48a845b
MS
47242003-07-30 Michael Snyder <msnyder@redhat.com>
4725
4e7d7511 4726 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4727 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4728 value_being_returned.
4729 * infcmd.c (print_return_value): Pass zero as struct_addr.
4730 * values.c (value_being_returned): If struct_addr is passed,
4731 use it instead of trying to recover it from the inferior.
4732
f0d8db19
KB
47332003-07-30 Kevin Buettner <kevinb@redhat.com>
4734
4735 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4736 the prologue analyzer won't need to attempt to extract the pc
4737 value from the woefully incomplete dummy frame.
4738 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4739 possible. Disable code which modifies the frame.
4740
e5c113a1
AC
47412003-07-28 Andrew Cagney <cagney@redhat.com>
4742
4743 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4744 to level 2.
4745 (annotate_breakpoints_table, annotate_record): Ditto.
4746 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4747 (annotate_field_name_end, annotate_field_value): Ditto.
4748 (annotate_field_end, annotate_frame_source_begin): Ditto.
4749 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4750 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4751 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4752 (annotate_frame_address_end, annotate_frame_address): Ditto.
4753 (annotate_frame_args, annotate_frame_end): Ditto.
4754 (annotate_frame_where, annotate_arg_begin): Ditto.
4755 (annotate_arg_name_end, annotate_arg_value): Ditto.
4756 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4757 (annotate_function_call, annotate_signal_name): Ditto.
4758 (annotate_signal_string, annotate_signal_name_end): Ditto.
4759 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4760 (annotate_value_begin, annotate_value_history_value): Ditto.
4761 (annotate_value_history_end, annotate_value_end): Ditto.
4762 (annotate_display_begin, annotate_display_number_end): Ditto.
4763 (annotate_display_format, annotate_display_expression): Ditto.
4764 (annotate_display_expression_end, annotate_display_value): Ditto.
4765 (annotate_display_end, annotate_array_section_begin): Ditto.
4766 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4767 (annotate_elt, annotate_array_section_end): Ditto.
4768
bb1db049
AC
47692003-07-28 Andrew Cagney <cagney@redhat.com>
4770
4771 * regcache.c (struct regcache_descr): Update comments on
4772 nr_raw_registers.
4773 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4774 sizeof_raw_register_valid_p.
4775 (init_regcache_descr): Set nr_raw_registers and
4776 sizeof_raw_register_valid_p before calling
4777 init_legacy_regcache_descr.
4778
20e6603c
AC
47792003-07-28 Andrew Cagney <cagney@redhat.com>
4780
4781 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4782 MOD NUM_REGS.
4783
db742940
DJ
47842003-07-28 Daniel Jacobowitz <drow@mvista.com>
4785
4786 * thread.c (info_threads_command): Use get_selected_frame ().
4787 Check that there is at least one non-sentinel frame.
4788
ce7f4371
SC
47892003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4790
4791 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4792 (m68hc11_pop_frame): Remove.
4793 (m68hc11_frame_saved_pc): Remove.
4794 (m68hc11_frame_chain): Remove.
4795 (m68hc11_frame_init_saved_regs): Remove.
4796 (m68hc11_init_extra_frame_info): Remove.
4797 (m68hc11_store_struct_return): Remove.
4798 (m68hc11_saved_pc_after_call): Remove.
4799
1ea653ae
SC
48002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4801
4802 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4803 frame unwind information.
4804 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4805 and adapted for frame unwinding.
4806 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4807 (m68hc11_unwind_pc): New function.
4808 (m68hc11_frame_unwind_cache): New function to analyze frames.
4809 (m68hc11_frame_this_id): New function to create new frame struct.
4810 (m68hc11_frame_prev_register): New function to unwind a register from
4811 the frame.
4812 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4813 (m68hc11_frame_p): New function for the above.
4814 (m68hc11_frame_base_address): New function to return fp of frame.
4815 (m68hc11_frame_args_address): Update for frame.
4816 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4817 (m68hc11_unwind_sp): New function.
4818 (m68hc11_unwind_dummy_id): New function.
4819 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4820 calls.
4821
c8a7f6ac
SC
48222003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4823
4824 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4825 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4826 when we are beyond the current pc.
4827
3dc990bf
SC
48282003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4829
4830 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4831 from m68hc11_push_arguments.
4832 (m68hc11_push_arguments): Remove.
4833 (m68hc11_push_return_address): Remove.
4834 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4835 handlers; remove deprecated_extra_stack_alignment_needed.
4836
222e5d1d
AC
48372003-07-27 Andrew Cagney <cagney@redhat.com>
4838
4839 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4840 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4841 REAL_PC and not the pointer.
4842 * hppa-hpux-tdep.c: Include frame.h
4843
a7e9a47e
AC
48442003-07-27 Andrew Cagney <cagney@redhat.com>
4845
4846 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4847 GDB_MULTI_ACH_PARTIAL.
4848
7e3dd49e
AC
48492003-07-27 Andrew Cagney <cagney@redhat.com>
4850
4851 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4852 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4853 operator at start and not end of line.
4854 (decode_prologue): Ditto.
4855 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4856 frame_unwind_register_unsigned instead of
4857 frame_unwind_unsigned_register.
4858 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4859 read_register.
4860 (m32r_push_dummy_call): Use register_size instead of
4861 REGISTER_RAW_SIZE.
4862 (m32r_frame_sniffer): Replace m32r_frame_p.
4863 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4864 * m32r-rom.c (report_transfer_performance): Delete extern
4865 declaration.
4866 (m32r_load, m32r_upload_command): Use print_transfer_performance
4867 instead of report_transfer_performance.
4868 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4869 / add_show_from_set.
4870
0880807f
AC
48712003-07-26 Andrew Cagney <cagney@redhat.com>
4872
4873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4874 store_return_value and extract_struct_value_address.
4875
64ae9269
DJ
48762003-07-26 Daniel Jacobowitz <drow@mvista.com>
4877
4878 PR c++/1267
4879 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4880 NULL, default to the section containing PC.
4881
e286caf2
SC
48822003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4883
4884 * NEWS: Mention "regs" deprecated for m68hc11 too.
4885
4886 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4887 (m68hc11_print_register): New function to print out one register.
4888 (m68hc11_print_registers_info): New function to print registers.
4889 (show_regs): Deprecate and use the above.
4890 (m68hc11_gdbarch_init): Install the print_registers_info.
4891
705b278b
JJ
48922003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4893
4894 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4895 that we have a SIGTRAP before returning non-zero.
4896
63cd4198
EZ
48972003-07-23 Michal Ludvig <mludvig@suse.cz>
4898 Elena Zannoni <ezannoni@redhat.com>
4899
a8f4cde1 4900 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4901 find_function_start_sal() returns empty record.
4902
6926787d
AS
49032003-07-23 Andreas Schwab <schwab@suse.de>
4904
4905 * ia64-tdep.c (ia64_print_insn): New function.
4906 (ia64_gdbarch_init): Set print_insn to it.
4907 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4908 deprecated_tm_print_insn_info.
4909
708cc1b6
MS
49102003-07-22 Michael Snyder <msnyder@redhat.com>
4911
4912 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4913 handle 8-bit returns (long long).
4914 (h8300h_extract_return_value): Ditto.
4915 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4916
aebd7893
AC
49172003-07-22 Andrew Cagney <cagney@redhat.com>
4918
4919 * gdbarch.c Include "gdb_obstack.h".
4920 (struct gdbarch): Add an "obstack".
4921 (alloc_gdbarch_data): Allocate the gdbarch data using
4922 GDBARCH_OBSTACK_CALLOC.
4923 (free_gdbarch_data): Delete function.
4924 (gdbarch_obstack_zalloc): New function.
4925 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4926 Assert that the architecture is not initialized.
4927 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4928 vector from the obstack.
4929 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4930 architecture obstack.
4931 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4932 (set_gdbarch_data): Assert that the data is not initialized.
4933 (struct gdbarch_data): Delete member "free".
4934 (register_gdbarch_data): Do not initialize "free".
4935 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4936
153721e6
AC
49372003-07-22 Andrew Cagney <cagney@redhat.com>
4938
4939 * configure.in (build_warnings): Add -Wformat-nonliteral.
4940 * configure: Re-generate.
4941
c193f044 49422003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4943
4944 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4945
c3228f12
EZ
49462003-07-22 Elena Zannoni <ezannoni@redhat.com>
4947
4948 * findvar.c (read_var_value): Remove case for thread local storage
4949 variables. It is now entirely handled by the dwarf2 location
4950 expression code.
4951 * printcmd.c (address_info): Ditto.
4952 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4953 enumeration value.
4954 (struct symbol): Remove objfile field, which was used by
4955 LOC_THREAD_LOCAL_STATIC only.
4956 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4957 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4958 usage of objfile pointer.
4959 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4960 thread local variables.
4961 Add include of objfiles.h.
4962 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4963 storage variables.
4964 * Makefile.in (dwarf2loc.o): Update dependencies.
4965
aef9bcd2
AC
49662003-07-22 Andrew Cagney <cagney@redhat.com>
4967
4968 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4969 get_frame_base.
4970 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4971 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4972 (struct value): Add opaque declaration.
4973 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4974
d95a8903
AC
49752003-07-21 Andrew Cagney <cagney@redhat.com>
4976
4977 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4978 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4979
4db73d49
SC
49802003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4981
a8f4cde1 4982 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4983 regcache_cooked_read_unsigned instead of read_register.
4984 (m68hc11_saved_pc_after_call): Likewise.
4985 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4986 instead of write_register.
4987 (m68hc11_register_type): New function.
4988 (m68hc11_register_virtual_type): Remove.
4989 (m68hc11_store_return_value): Convert to use the regcache.
4990 (m68hc11_extract_struct_value_address): Likewise.
4991 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4992 m68hc11_register_type; undeprecate store_return_value and
4993 extract_struct_value_address.
4994
ef2b8fcd
SC
49952003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4996
4997 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4998 and translate to use regcache.
4999 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5000
625b0b97
AC
50012003-07-18 Andrew Cagney <cagney@redhat.com>
5002
5003 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5004 * gdbarch.h, gdbarch.c: Re-generate.
5005 * i386-tdep.c (i386_gdbarch_init): Do not set
5006 DWARF2_BUILD_FRAME_INFO.
5007 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5008 unconditionally.
5009 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5010 DWARF2_BUILD_FRAME_INFO.
5011
22b0d388
AC
50122003-07-18 Andrew Cagney <cagney@redhat.com>
5013
5014 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5015 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5016
1ce5d6dd
AC
50172003-07-18 Andrew Cagney <cagney@redhat.com>
5018
5019 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5020 frame_unwind_address_in_block, instead of frame_pc_unwind.
5021 (dwarf2_frame_cache): Ditto.
5022
e6e5e94c
AC
50232003-07-18 Andrew Cagney <cagney@redhat.com>
5024
5025 * user-regs.h (struct gdbarch): Declare opaque.
5026 * ui-out.h (struct ui_file): Declare opaque.
5027 * dwarf2-frame.h (struct frame_info): Declare opaque.
5028
5483d879
KW
50292003-07-18 Kris Warkentin <kewarken@qnx.com>
5030
5031 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5032 #include "...".
5033 (procfs_meminfo): Change strerror to safe_strerror.
5034 (procfs_can_run): Remove K&R badness.
5035
278a7cf7
MS
50362003-07-17 Michael Snyder <msnyder@redhat.com>
5037
5038 * remote-sim.c: Comment typo fix.
5039
606e3b82
AC
50402003-07-17 Andrew Cagney <cagney@redhat.com>
5041
5042 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5043 configure.
5044 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5045 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5046 GDB_MULTI_ARCH_PARTIAL.
5047
c43af07c
EZ
50482003-07-17 Elena Zannoni <ezannoni@redhat.com>
5049
5050 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5051 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5052 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5053
3b85b0f1
TR
50542003-07-16 Theodore A. Roth <troth@openavr.org>
5055
5056 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5057 found.
5058 (avr_frame_unwind_cache): Don't unwind FP for main.
5059 Update a comment.
5060 Save the computed prev_sp.
5061 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5062 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5063 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5064
336d1bba
AC
50652003-07-16 Andrew Cagney <cagney@redhat.com>
5066
5067 * frame-base.h (frame_base_p_ftype): Delete definition.
5068 (frame_base_append_predicate): Delete declaration.
5069 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5070 (frame_unwind_append_predicate): Delete declaration.
5071 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5072 (append_predicate): Delete parameter "p".
5073 (frame_unwind_append_predicate): Delete function.
5074 (frame_unwind_append_sniffer): Update call to append_predicate.
5075 (frame_unwind_free): Delete function.
5076 (_initialize_frame_unwind): Pass NULL as "free" to
5077 register_gdbarch_data.
5078 (frame_unwind_init): Append the dummy_frame_sniffer.
5079 (frame_unwind_find_by_frame): Simplify.
5080 * frame-base.c (struct frame_base_table): Delete field "p".
5081 (append_predicate): Delete parameter "p".
5082 (frame_base_append_predicate): Delete function.
5083 (frame_base_append_sniffer): Update call to append_predicate.
5084 (frame_base_free): Delete function.
5085 (frame_base_find_by_frame): Simplify.
5086 (_initialize_frame_base): Pass NULL as "free" to
5087 register_gdbarch_data.
5088 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5089 (x86_64_sigtramp_frame_sniffer): Replace
5090 "x86_64_sigtramp_frame_p".
5091 (x86_64_init_abi): Set the frame unwind sniffers.
5092 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5093 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5094 (m68k_gdbarch_init): Set the frame unwind sniffers.
5095 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5096 "i386_sigtramp_frame_p".
5097 (i386_frame_sniffer): Replace "i386_frame_p".
5098 (i386_gdbarch_init): Set the frame unwind sniffers.
5099 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5100 (avr_gdbarch_init): Set the frame unwind sniffers.
5101 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5102 "alpha_sigtramp_frame_p"
5103 (alpha_heuristic_frame_sniffer): Replace
5104 "alpha_heuristic_frame_p".
5105 (alpha_gdbarch_init): Set the frame unwind sniffers.
5106 (alpha_dwarf2_init_abi): Ditto.
5107 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5108 "alpha_debug_frame_p".
5109 (alpha_mdebug_frame_base_sniffer): Replace
5110 "alpha_mdebug_frame_base_p".
5111 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5112 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5113 (d10v_gdbarch_init): Set the frame unwind sniffer.
5114 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5115 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5116 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5117 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5118 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5119 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5120
48db5a3c
CV
51212003-07-16 Michael Snyder <msnyder@redhat.com>
5122
5123 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5124 should go thru sh_dsp_register_sim_regno, else the dsp regs
5125 will not get the right values.
5126
51272003-07-16 Corinna Vinschen <vinschen@redhat.com>
5128
5129 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5130 deprecated_store_floating by call to store_typed_floating.
5131 (sh_sh4_register_convert_to_raw): Substitute call to
5132 deprecated_extract_floating by call to extract_typed_floating.
5133
51342003-07-16 Corinna Vinschen <vinschen@redhat.com>
5135
5136 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5137
51382003-07-16 Corinna Vinschen <vinschen@redhat.com>
5139
5140 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5141 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5142 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5143 as possible.
5144 (do_pseudo_register): Remove.
5145 (sh_push_dummy_code): New function.
5146 (sh64_store_struct_return): Rename from sh_store_struct_return.
5147 Only called for sh64 now.
5148 (sh_extract_struct_value_address): Regcache'ify.
5149 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5150 and accomodate new tasks.
5151 (sh64_push_return_address): Rename from sh_push_return_address.
5152 Only called for sh64 now.
5153 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5154 Regcache'ify.
5155 (sh3e_sh4_extract_return_value): Regcache'ify.
5156 (sh_default_store_return_value): Ditto.
5157 (sh3e_sh4_store_return_value): Ditto.
5158 (sh_default_register_byte): Remove.
5159 (sh_sh4_register_byte): Remove.
5160 (sh_default_register_raw_size): Remove.
5161 (sh_sh4_register_raw_size): Remove.
5162 (sh_register_virtual_size): Remove.
5163 (sh_sh3e_register_virtual_type): Remove.
5164 (sh_sh3e_register_type): New function.
5165 (sh_sh4_register_virtual_type): Remove.
5166 (sh_sh4_register_type): New function.
5167 (sh_default_register_virtual_type): Remove.
5168 (sh_default_register_type): New function.
5169 (do_fv_register_info): Add parameters to accomodate call from
5170 sh_print_registers_info.
5171 (do_dr_register_info): Ditto.
5172 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5173 Add parameters to accomodate call from sh_print_registers_info.
5174 (sh_do_fp_register): Ditto.
5175 (sh64_do_pseudo_register): Call do_dr_register_info,
5176 do_fv_register_info and sh_do_fp_register with default parameters.
5177 (sh_do_register): Add parameters to accomodate call from
5178 sh_print_registers_info.
5179 (sh_print_register): Ditto.
5180 (sh_print_registers_info): Rename from sh_do_registers_info.
5181 Add parameters to be used as gdbarch_print_registers_info
5182 implementation. Accomodate removed do_pseudo_register function
5183 pointer.
5184 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5185 function pointer. Call sh_print_register with default parameters.
5186 (sh64_do_registers_info): Call sh_print_registers_info instead of
5187 sh_do_registers_info.
5188 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5189 detection of deprecated vs. non-deprecated functionality.
5190 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5191 function pointer assignments by direct function calls.
5192
e8a89fe2
AC
51932003-07-15 Andrew Cagney <cagney@redhat.com>
5194
5195 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5196 (frame_register_unwind, create_new_frame): Ditto.
5197 (legacy_get_prev_frame, get_frame_type): Ditto.
5198 (get_frame_base_address): Use frame_base_find_by_frame.
5199 (get_frame_locals_address): Use frame_base_find_by_frame.
5200 (get_frame_args_address): Use frame_base_find_by_frame.
5201 * frame-base.h (frame_base_sniffer_ftype): Declare.
5202 (frame_base_append_sniffer): Declare.
5203 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5204 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5205 (frame_base_append_sniffer): New function.
5206 (frame_base_append_predicate): Add a NULL sniffer.
5207 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5208 (struct frame_base_table): Add "sniffer".
5209 (frame_base_free): Free the "sniffer" table.
5210 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5211 (frame_unwind_append_sniffer): Declare.
5212 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5213 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5214 (struct frame_unwind_table): Add "sniffer", delete "middle".
5215 (append_predicate): Add "sniffer" parameter, append the sniffer.
5216 (frame_unwind_init): Update append_predicate call.
5217 (frame_unwind_append_sniffer): New function.
5218 (frame_unwind_append_predicate): Update append_predicate call.
5219 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5220
0714963c
AC
52212003-07-15 Andrew Cagney <cagney@redhat.com>
5222
5223 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5224 before code inhibiting repeated unwind attempts. Add to
5225 commentary on that test's problems.
5226 * blockframe.c (inside_main_func): Look for "main" in the minimal
5227 symbol table.
5228 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5229 identical.
5230
d9170e22
AC
52312003-07-15 Andrew Cagney <cagney@redhat.com>
5232
5233 * complaints.c (struct explanation): Define.
5234 (struct complaints): Change type of "explanation" to "struct
5235 explanation".
5236 (symfile_explanations): Convert to a "struct explanation" table.
5237 (vcomplaint): Update.
5238
eba29c8c
ML
52392003-07-15 Michal Ludvig <mludvig@suse.cz>
5240
5241 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5242 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5243 x86_64_linux_(fill,supply)_gregset functions.
5244 * x86-64-linux-tdep.c (USER_*): New defines.
5245 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5246 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5247 New functions.
5248 (fetch_core_registers): Ditto.
5249 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5250 * x86-64-linux-tdep.h: New file.
5251 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5252 and core-regset.o.
5253 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5254
68cc0bfb
MK
52552003-07-13 Mark Kettenis <kettenis@gnu.org>
5256
88a115f7
MK
5257 * x86-64-tdep.c (x86_64_store_return_value): Use
5258 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5259
68cc0bfb
MK
5260 * configure.host: Add x86_64-*-freebsd*.
5261 * configure.tgt: Add x86_64-*-freebsd*.
5262 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5263 * amd64fbsd-nat.c: New file.
5264 * amd64fbsd-tdep.c: New file.
5265 * config/i386/nm-fbsd64.h: New file.
5266 * config/i386/fbsd64.mh: New file.
5267 * config/i386/fbsd64.mt: New file.
5268
138e7be5
MK
52692003-07-11 Mark Kettenis <kettenis@gnu.org>
5270
5271 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5272 `sc_regs_offset' and `sc_fpregs_offset'.
5273 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5274 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5275 (alpha_sigtramp_register_address): Rewrite to use new members of
5276 `struct gdbarch_tdep'.
5277 (alpha_gdbarch_init): Initialize new members of struct
5278 gdbarch_tdep'.
5279 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5280 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5281 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5282 (alphafbsd_pc_in_sigtramp): Implement.
5283 (alphafbsd_sigtramp_offset): New function.
5284 (alphafbsd_sigcontext_addr): New function.
5285 (alphafbsd_init_abi): Initialize signal trampoline related members
5286 of `struct gdbarch_tdep'.
5287 (_initialize_alphafbsd_tdep): Add prototype.
5288
95303a68
TR
52892003-07-11 Theodore A. Roth <troth@openavr.org>
5290
ba292e4c
TR
5291 * Makefile.in (install-only): Quote sed expression when generating
5292 transformed_name.
95303a68 5293
6896c0c7
RH
52942003-07-11 Richard Henderson <rth@redhat.com>
5295
5296 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5297 * dwarf2-frame.c: Include complaints.h.
5298 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5299 variable initialization; return NULL on error.
5300 (decode_frame_entry): New.
5301
8edd5d01
AC
53022003-07-11 Andrew Cagney <cagney@redhat.com>
5303
c4a09524
AC
5304 * frame.h (frame_address_in_block): Delete declaration.
5305 * blockframe.c (frame_address_in_block): Delete function.
5306 (get_frame_block): Use get_frame_address_in_block.
5307 (block_innermost_frame): Ditto.
5308 * stack.c (print_frame, backtrace_command_1): Ditto.
5309
8edd5d01
AC
5310 * frame.h (get_frame_address_in_block): Declare.
5311 (frame_unwind_address_in_block): Declare.
5312 * frame.c (frame_unwind_address_in_block): New function.
5313 (get_frame_address_in_block): New function.
5314
f7968451
AC
53152003-07-10 Andrew Cagney <cagney@redhat.com>
5316
5317 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5318 pre-default. Note: re-generate has no effect.
a8f4cde1 5319
ae99b398
AC
53202003-07-10 Andrew Cagney <cagney@redhat.com>
5321
5322 * gdbarch.sh: When a variable, but not a function, compare against
5323 0. Fix problem in previous patch.
5324 * gdbarch.c: Re-generate.
a8f4cde1 5325
956ac328
AC
53262003-07-10 Andrew Cagney <cagney@redhat.com>
5327
5328 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5329 functions against NULL, not 0.
5330 * gdbarch.c: Re-generate.
a8f4cde1 5331
287c3240
FF
53322003-07-10 Fred Fish <fnf@ninemoons.com>
5333
5334 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5335 null string instead of a null pointer.
5336 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5337
32f63c4b
MS
53382003-07-09 Michael Snyder <msnyder@redhat.com>
5339
5340 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5341
402ecd56
MK
53422003-07-09 Mark Kettenis <kettenis@gnu.org>
5343
5344 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5345 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5346 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5347 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5348 * x86-64-tdep.c: ... from here.
5349
c481dac7
AS
53502003-07-09 Andreas Schwab <schwab@suse.de>
5351
5352 * m68k-tdep.h (enum struct_return): Define.
5353 (struct gdbarch_tdep): Add struct_return.
5354 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5355 bytes are padded to the right, not to the left. Pass struct value
5356 address in register %a1, not on stack.
5357 (m68k_use_struct_convention): New function.
5358 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5359 struct_return in tdep to pcc_struct_return.
5360 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5361 reg_struct_return.
5362
a8f4cde1 53632003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5364
a8f4cde1 5365 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5366
96a4ee76
AC
53672003-07-09 Andrew Cagney <cagney@redhat.com>
5368
5369 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5370 Add comments about the checks.
5371
1517c6d1
AC
53722003-07-08 Andrew Cagney <cagney@redhat.com>
5373
5374 * Makefile.in: Make dependency section headers consistent.
5375 (config_h): Move to $BUILD headers section.
5376 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5377 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5378 (ada-exp.tab.c): Move to YACC/LEX section.
5379 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5380 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5381
dc5dd1eb
KW
53822003-07-08 Kris Warkentin <kewarken@qnx.com>
5383
5384 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5385 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5386 of strerror with safe_strerror, use ISO C function definitions,
5387 and replace instances of sprintf with snprintf.
dc5dd1eb 5388
612dde91
AC
53892003-07-07 Andrew Cagney <cagney@redhat.com>
5390
5391 * frame.c (get_prev_frame): Enable check for identical frames.
5392 Update comments. Update error messages.
5393
492c11d3
JB
53942003-07-07 Joel Brobecker <brobecker@gnat.com>
5395
5396 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5397
376a5a49
JB
53982003-07-07 Joel Brobecker <brobecker@gnat.com>
5399
5400 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5401 sort_symtab_syms, no longer necessary.
5402
22b4a9ad
JB
54032003-07-07 Joel Brobecker <brobecker@gnat.com>
5404
5405 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5406
5bbcb741
JB
54072003-07-07 Joel Brobecker <brobecker@gnat.com>
5408
5409 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5410 (mips_register_byte): Likewise.
5411
c139e7d9
DJ
54122003-07-07 Daniel Jacobowitz <drow@mvista.com>
5413
5414 * Makefile.in (sparc_tdep_h): New.
5415 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5416 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5417 * sparc-linux-nat.c: Include "sparc-tdep.h".
5418 * sparc-nat.c: Likewise.
5419 * sparc-tdep.c: Likewise.
5420 * sparc64nbsd-nat.c: Likewise.
5421 * sparcnbsd-nat.c: Likewise.
5422 * sparcnbsd-tdep.c: Likewise.
5423 * sparc-tdep.h: New file.
5424 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5425 and sparc_npc_regnum.
5426
fd8f87c5
DJ
54272003-07-07 Daniel Jacobowitz <drow@mvista.com>
5428
5429 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5430 (mips_linux_cannot_store_register): List supported instead of
5431 unsupported registers.
5432
13adf674
DJ
54332003-07-07 Daniel Jacobowitz <drow@mvista.com>
5434
5435 * disasm.c (dump_insns): Separate instructions from addresses.
5436
8de307e0
AS
54372003-07-07 Andreas Schwab <schwab@suse.de>
5438
5439 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5440 dependencies.
5441 * m68k-tdep.c (NUM_FREGS): Delete.
5442 (SIG_PC_FP_OFFSET): Delete.
5443 (TARGET_M68K): Delete.
5444 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5445 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5446 P_MOVEL_SP, P_MOVEML_SP): Define.
5447 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5448 P_TRAP): Delete.
5449 (m68k_register_raw_size): Delete.
5450 (m68k_register_virtual_size): Delete.
5451 (m68k_register_type): Renamed from m68k_register_virtual_type and
5452 add gdbarch argument.
5453 (m68k_store_struct_return): Delete.
5454 (m68k_deprecated_extract_return_value): Delete.
5455 (m68k_deprecated_extract_struct_value_address): Delete.
5456 (m68k_frame_chain): Delete.
5457 (m68k_frame_saved_pc): Delete.
5458 (m68k_fix_call_dummy): Delete.
5459 (m68k_push_dummy_frame): Delete.
5460 (m68k_pop_frame): Delete.
5461 (m68k_extract_return_value): New function.
5462 (m68k_store_return_value): Rewrite using regcache.
5463 (m68k_extract_struct_value_address): Rewrite using regcache.
5464 (m68k_push_dummy_call): New function.
5465 (struct m68k_frame_cache): Define.
5466 (m68k_alloc_frame_cache): New function.
5467 (m68k_analyze_frame_setup): New function.
5468 (m68k_analyze_register_saves): New function.
5469 (m68k_analyze_prologue): New function.
5470 (m68k_skip_prologue): Rewrite using above functions.
5471 (m68k_unwind_pc): New function.
5472 (m68k_frame_cache): New function.
5473 (m68k_frame_this_id): New function.
5474 (m68k_frame_prev_register): New function.
5475 (m68k_frame_unwind): New variable.
5476 (m68k_frame_p): New function.
5477 (m68k_sigtramp_frame_cache): New function.
5478 (m68k_sigtramp_frame_this_id): New function.
5479 (m68k_sigtramp_frame_prev_register): New function.
5480 (m68k_sigtramp_frame_unwind): New variable.
5481 (m68k_sigtramp_frame_p): New function.
5482 (m68k_frame_base_address): New function.
5483 (m68k_frame_base): New function.
5484 (m68k_unwind_dummy_id): New function.
5485 (fill_gregset): Use regcache_collect.
5486 (fill_fpregset): Likewise.
5487 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5488 defined.
5489 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5490 deprecated_init_frame_pc, deprecated_store_struct_return,
5491 deprecated_extract_return_value, deprecated_store_return_value,
5492 deprecated_frame_chain, deprecated_frame_saved_pc,
5493 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5494 deprecated_register_virtual_size,
5495 deprecated_max_register_raw_size,
5496 deprecated_max_register_virtual_size,
5497 deprecated_register_virtual_type, deprecated_register_size,
5498 deprecated_register_byte, deprecated_register_bytes,
5499 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5500 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5501 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5502 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5503 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5504 deprecated_push_dummy_frame, deprecated_pop_frame,
5505 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5506 only if SYSCALL_TRAP is defined. Set extract_return_value,
5507 store_return_value, extract_struct_value_address, register_type,
5508 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5509 predicates.
5510 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5511 M68K_MAX_REGISTER_SIZE): Define.
5512 (struct m68k_sigtramp_info): Define.
5513 (struct gdbarch_tdep): Add get_sigtramp_info.
5514 * m68klinux-nat.c (fetch_register): Use register_size instead of
5515 REGISTER_RAW_SIZE. Don't put assignment in if.
5516 (store_register): Likewise.
5517 (fetch_inferior_registers): Likewise.
5518 (store_inferior_registers): Likewise.
5519 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5520 (m68k_linux_frame_saved_pc): Delete.
5521 (m68k_linux_sigcontext_reg_offset,
5522 m68k_linux_ucontext_reg_offset): Define.
5523 (m68k_linux_get_sigtramp_info): New function.
5524 (m68k_linux_extract_return_value): Rewrite using regcache.
5525 (m68k_linux_store_return_value): Likewise.
5526 (m68k_linux_extract_struct_value_address): Likewise.
5527 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5528 Don't set deprecated_frame_saved_pc,
5529 deprecated_extract_return_value, deprecated_store_return_value,
5530 deprecated_extract_struct_value_address. Set
5531 extract_return_value, store_return_value,
5532 extract_struct_value_address.
5533
eb8bc282
AC
55342003-07-07 Andrew Cagney <cagney@redhat.com>
5535
5536 * expprint.c: Include "user-regs.h" instead of "frame.h".
5537 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5538 frame_map_regnum_to_name.
5539 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5540 (frame_map_name_to_regnum): Simplify, call
5541 user_reg_map_name_to_regnum.
5542 (frame_map_regnum_to_name): Simplify, call
5543 user_reg_map_regnum_to_name.
5544 (frame_register_unwind): Update.
5545 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5546 (_initialize_frame_reg): Call user_reg_add_builtin.
5547 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5548 (value_of_register): Use value_of_user_reg.
5549 * eval.c (evaluate_subexp_standard): Update.
5550 * parse.c (write_dollar_variable): Update.
5551 * d10v-tdep.c (d10v_print_registers_info): Update.
5552 * infcmd.c (registers_info): Update.
5553 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5554 (builtin_regs_h): Delete macro.
5555 (user_regs_h): Define.
5556 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5557 (builtin-regs.o): Delete target.
5558 (user-regs.o): Specify dependencies.
5559 (expprint.o): Update dependencies.
5560 (findvar.o): Update dependencies.
5561 (frame.o): Update dependencies.
5562 (std-regs.o): Update dependencies.
5563
9f476a01
CF
55642003-07-06 Christopher Faylor <cgf@redhat.com>
5565
5566 * win32-nat.c (solib_symbols_add): Use one variable for all section
5567 address stuff. Pass variable rather than address of variable to
5568 safe_symbol_file_add.
5569
a731b831
AS
55702003-07-06 Andreas Schwab <schwab@suse.de>
5571
5572 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5573
9f83329d
JB
55742003-07-04 Joel Brobecker <brobecker@gnat.com>
5575
5576 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5577
27e28cc5
KW
55782003-07-04 Kris Warkentin <kewarken@qnx.com>
5579
5580 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5581
55822003-07-04 Kris Warkentin <kewarken@qnx.com>
5583
5584 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5585 * config/i386/nto.mh: New file.
5586 * config/i386/nm-nto.h: New file.
5587 * configure.host: Add i[3456]86-*-nto*.
5588
100f2e98
JB
55892003-07-03 Joel Brobecker <brobecker@gnat.com>
5590
5591 * remote-vx.c (vx_add_symbols): Fix compilation error.
5592
e23457df
AC
55932003-07-03 Andrew Cagney <cagney@redhat.com>
5594
5595 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5596 * gdbarch.h, gdbarch.c: Re-generate.
5597 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5598 (legacy_register_name): Declare.
5599 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5600 (REGISTER_NAME): Define.
5601 * sparc-tdep.c (legacy_register_name): New function.
5602 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5603 (REGISTER_NAME): Define.
5604 (hppa64_register_name): Declare.
5605 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5606 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5607 (hppa64_register_name): New function.
5608 (hppa_register_name): New function.
5609 * arch-utils.c (legacy_register_name): Delete.
5610 * arch-utils.h (legacy_register_name): Delete.
5611
38caaeec
DJ
56122003-07-03 Daniel Jacobowitz <drow@mvista.com>
5613
5614 * cli/cli-interp.c (cli_interpreter_resume): Update the
5615 cli_uiout's stream to gdb_stdout.
5616
dadd712e
AC
56172003-07-03 Andrew Cagney <cagney@redhat.com>
5618
5619 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5620 predicate.
5621 * gdbarch.h, gdbarch.c: Re-generate.
5622 * regcache.c (init_regcache_descr): Use legacy code when either
5623 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5624
c7f1390e
DJ
56252003-07-02 Daniel Jacobowitz <drow@mvista.com>
5626
5627 * NEWS: Move "set logging" entry into GDB 6.0 section.
5628
4bc8c588
JB
56292003-07-02 Jim Blandy <jimb@redhat.com>
5630
a9dd42f1
JB
5631 * s390-tdep.c (struct frame_extra_info): new member:
5632 'stack_bought_valid'.
5633 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5634 initialize fextra_info->stack_bought.
5635 (s390_frameless_function_invocation): Don't trust the value of
5636 fextra_info_ptr->stack_bought unless
5637 fextra_info->stack_bought_valid is set.
5638
4bc8c588
JB
5639 New S390 prologue analyzer.
5640 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5641 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5642 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5643 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5644 compute_x_addr, s390_on_stack, s390_store,
5645 s390_get_signal_frame_info): New functions.
5646 (S390_NUM_SPILL_SLOTS): New macro.
5647 (s390_get_frame_info): Rewritten.
5648 (is_arg_reg): Deleted.
5649
5650 Break out the decoding of S/390 instructions into separate
5651 functions, to make it more legible, and easier to check
5652 against the spec.
5653 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5654 is_rx, is_rxe): New functions.
5655 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5656 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5657 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5658 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5659 enums for opcode values. (Is this an improvement?)
5660
fd13a04a
AC
56612003-07-02 Andrew Cagney <cagney@redhat.com>
5662
5663 * i386-tdep.c: Revert change committed as part of trad-frame code
5664 below.
5665
3f8091c1
DJ
56662003-07-02 Daniel Jacobowitz <drow@mvista.com>
5667
5668 * breakpoint.c (insert_catchpoint): Make static.
5669
8dd5115e
AS
56702003-07-02 Andreas Schwab <schwab@suse.de>
5671
5672 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5673 former ia64_push_arguments and ia64_push_return_address, and use
5674 regcache functions instead of read/write_register.
5675 (ia64_gdbarch_init): Set push_dummy_call instead of
5676 deprecated_push_arguments and deprecated_push_return_address.
5677
a2229c23
AJ
56782003-07-01 Andreas Jaeger <aj@suse.de>
5679
5680 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5681 before the call.
5682 Set %rax only to number of SSE registers used.
5683
3b3850e8
AC
56842003-07-01 Andrew Cagney <cagney@redhat.com>
5685
5686 * trad-frame.h: Update comments, a -1 .addr is reserved.
5687 (trad_frame_value_p, trad_frame_addr_p): Declare.
5688 (trad_frame_reg_p): Declare.
5689 (trad_frame_set_value): Rename trad_frame_register_value.
5690 (trad_frame_set_unknown): Declare.
5691 * trad-frame.c (trad_frame_realreg_p): New function.
5692 (trad_frame_addr_p, trad_frame_value_p): New function.
5693 (trad_frame_set_unknown): New function.
5694 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5695 (trad_frame_prev_register): Use trad_frame_realreg_p,
5696 trad_frame_addr_p and trad_frame_value_p.
5697 (trad_frame_set_value): Rename trad_frame_register_value.
5698 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5699 and trad_frame_set_value.
a2229c23 5700
4d819d0e
JB
57012003-06-30 Jim Blandy <jimb@redhat.com>
5702
5703 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5704 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5705 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5706 for 16 registers, and then 32 more bytes.
5707 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5708 New macros.
5709 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5710 Move up in the file, since it's now used by is_simple_arg.
5711 (is_simple_arg): Don't assume registers are four bytes long.
5712 Exclude all double arguments. Extended floats are not simple
5713 args.
5714 (is_power_of_two): New function.
5715 (pass_by_copy_ref): Call is_power_of_two, and check that the
5716 length fits in a register, rather than listing all the acceptable
5717 sizes. Extended floats are not passed by reference.
5718 (s390_push_arguments): Don't assume registers are four bytes long.
5719 Reserve an argument register to point to the buffer for structures
5720 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5721 S390_STACK_FRAME_OVERHEAD.
5722
1ad828f1
AS
57232003-06-30 Andreas Schwab <schwab@suse.de>
5724
5725 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5726 format error message.
5727
39b00981
JB
57282003-06-30 Joel Brobecker <brobecker@gnat.com>
5729
5730 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5731
b2a7f303
DC
57322003-06-30 David Carlton <carlton@kealia.com>
5733
5734 Band-aid for PR c++/1245.
5735 * Makefile.in (cp-support.o): Depend on complaints_h.
5736 * cp-support.c: Include complaints.h. Add declaration for
5737 find_last_component.
5738 (cp_find_first_component): Separate code into
5739 cp_find_first_component_aux.
5740 (cp_find_first_component_aux): Call demangled_name_complaint.
5741 (demangled_name_complaint): New.
5742
a257b5bb
AC
57432003-06-30 Andrew Cagney <cagney@redhat.com>
5744
5745 * remote.c (remote_write_bytes): Explicitly compute and then use
5746 the payload size. Update comments to reflect. Fixes problem of
5747 GDB not sending small packets as found by Fred Fish.
5748
0a2cfde4
AC
57492003-06-30 Andrew Cagney <cagney@redhat.com>
5750
5751 * remote.c (remote_async_wait): Fix -Wformat problem.
5752
3fcb8548
AC
57532003-06-29 Andrew Cagney <cagney@redhat.com>
5754
5755 * remote.c (remote_wait): Call error, and not warning, when the
5756 packet is corrupt.
5757 (remote_async_wait): Ditto.
5758
9f9970a3
DJ
57592003-06-29 Daniel Jacobowitz <drow@mvista.com>
5760
5761 * sparc-tdep.c (sparc_y_regnum): Make external again.
5762
83a8ccca
DJ
57632003-06-29 Daniel Jacobowitz <drow@mvista.com>
5764
5765 * cli/cli-logging.c (pop_output_files): Add void to function
5766 definition.
5767
d2cf594a
AC
57682003-06-29 Andrew Cagney <cagney@redhat.com>
5769
5770 * frame.c (frame_register_unwind): Use unsigned char when dumping
5771 the buffer contents.
5772
0fac0b41
DJ
57732003-06-28 Daniel Jacobowitz <drow@mvista.com>
5774
5775 * cli/cli-logging.c: New file.
5776 * cli-out.c (struct ui_out_data): Add original_stream.
5777 (cli_redirect): New function.
5778 (cli_ui_out_impl): Add cli_redirect.
5779 (cli_out_new): Initialize original_stream.
5780 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5781 (uo_redirect, ui_out_redirect): New.
5782 * ui-out.h (struct ui_out_impl): Add redirect member.
5783 (redirect_ftype): New.
5784 (ui_out_redirect): Add prototype.
5785 * Makefile.in: Add rules for cli-logging.c.
5786 * NEWS: Mention "set logging".
5787
88a07d7c
EZ
57882003-06-27 Elena Zannoni <ezannoni@redhat.com>
5789
5790 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5791
4eb58876
AC
57922003-06-27 Andrew Cagney <cagney@redhat.com>
5793
5794 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5795 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5796 * avr-tdep.c (avr_call_dummy_address): Delete function.
5797 (avr_gdbarch_init): Do not set call_dummy_address.
5798
1549f619
EZ
57992003-06-27 Elena Zannoni <ezannoni@redhat.com>
5800
5801 * symfile.c (syms_from_objfile): Move variables to inner block.
5802 Move the checks for the non-mainline case a bit earlier to avoid
5803 doing some useless computations.
5804
3cb3398d
EZ
58052003-06-27 Elena Zannoni <ezannoni@redhat.com>
5806
5807 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5808
3799ccc6
EZ
58092003-06-26 Elena Zannoni <ezannoni@redhat.com>
5810
5811 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5812 sections.
5813
ce1f6491
MC
58142003-06-26 Michael Chastain <mec@shout.net>
5815
5816 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5817 gdb/testsuite/gdb.c++/pr-1210.exp.
5818
d958dfd0
AC
58192003-06-26 Andrew Cagney <cagney@redhat.com>
5820
5821 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5822 altivec_expression.h and altivec_registers.h.
5823
d31431ed
AC
58242003-06-26 Andrew Cagney <cagney@redhat.com>
5825
5826 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5827 info->mach when MIPS16. Patch suggested by Fred Fish.
5828
714b1282
AC
58292003-06-26 Andrew Cagney <cagney@redhat.com>
5830
5831 * utils.c (internal_vproblem): Print the problem to a reason
5832 buffer and then pass to query. Make the msg variable more local.
5833
42efa47a
AC
58342003-06-26 Andrew Cagney <cagney@redhat.com>
5835
5836 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5837 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5838 * gdbarch.h, gdbarch.c: Re-generate.
5839 * frame-base.c (default_frame_args_address): Update. Use
5840 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5841 not available.
5842 (default_frame_locals_address): Ditto for
5843 DEPRECATED_FRAME_LOCALS_ADDRESS.
5844 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5845 (vax_frame_num_args): Update.
5846 (vax_gdbarch_init): Update.
5847 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5848 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5849 * mcore-tdep.c (mcore_gdbarch_init): Update.
5850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5851 * ia64-tdep.c (ia64_gdbarch_init): Update.
5852 * symtab.h (address_class): Update comments.
5853 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5854 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5855 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5856 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5857 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5858 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5859 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5860 * alpha-mdebug-tdep.c: Update.
5861 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5862
8ffd9b1b
AJ
58632003-06-26 Andreas Jaeger <aj@suse.de>
5864
5865 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5866 of SSE registers so that varargs functions work. Rework handling
5867 of passing arguments on the stack.
5868 (x86_64_store_return_value): Return double and float values in SSE
5869 register.
5870
e8ac10a6
MC
58712003-06-24 Michael Chastain <mec@shout.net>
5872
5873 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5874 the "constructor breakpoints ignored" bug.
5875
986af8e6
DC
58762003-06-25 David Carlton <carlton@kealia.com>
5877
5878 * MAINTAINERS: Update e-mail address.
5879
d64558a5
JB
58802003-06-24 Jim Blandy <jimb@redhat.com>
5881
e538d2d7
JB
5882 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5883
02631ec0
JB
5884 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5885 function.
5886 (ppc_linux_init_abi): Register it as the
5887 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5888
e716d87a
JB
5889 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5890 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5891 method.
5892
d64558a5
JB
5893 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5894 (ppc64_standard_linkage_target): Use it.
5895
449a5da4
AC
58962003-06-23 Andrew Cagney <cagney@redhat.com>
5897
5898 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5899 for 0 "int0" and 4 "int32" sized registers.
5900 * gdbtypes.c (builtin_type_int0): Define.
5901 (build_gdbtypes): Initialize builtin_type_int0.
5902 * gdbtypes.h (builtin_type_int0): Declare.
5903
b2a02dda
SC
59042003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5905
5906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5907 as characters are unsigned.
5908
fba3138e
DJ
59092003-06-22 Daniel Jacobowitz <drow@mvista.com>
5910
5911 PR gdb/1179
5912 * dwarfread.c (struct_type): Skip static fields without crashing.
5913
f6c8180b
AC
59142003-06-22 Andrew Cagney <cagney@redhat.com>
5915
5916 GDB 6.0 branch created.
f2c06f52
AC
5917 * README: Update.
5918 * PROBLEMS: Update. Empty.
5919 * NEWS: Update.
f6c8180b 5920
ae822768
DJ
59212003-06-22 Daniel Jacobowitz <drow@mvista.com>
5922
5923 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5924 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5925
261de166
AC
59262003-06-22 Andrew Cagney <cagney@redhat.com>
5927
5928 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5929 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5930 Velikov.
5931
30e94205
DJ
59322003-06-22 Daniel Jacobowitz <drow@mvista.com>
5933
5934 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5935 compilers.
5936
9e14d721
DJ
59372003-06-21 Daniel Jacobowitz <drow@mvista.com>
5938
5939 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5940 argument of val_print.
5941 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5942 to the address argument of baseclass_offset or target_read_memory.
5943 Do add it to the argument of cp_print_value_fields.
5944
a4b8ebc8
AC
59452003-06-21 Andrew Cagney <cagney@redhat.com>
5946
5947 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5948 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5949 instead of 0..NUM_REGS.
5950 (mips_register_reggroup_p): New function.
5951 (mips_pseudo_register_write): New function.
5952 (mips_pseudo_register_read): New function.
5953 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5954 based on the register's type.
5955 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5956 cooked.
5957 (mips_get_saved_register): Simplify. Assert that REGNO is a
5958 pseudo / cooked.
5959 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5960 (mips_register_type): Replace mips_register_virtual_type. Map
5961 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5962 when available.
5963 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5964 that the register is cooked / virtual.
5965 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5966 Only get the extra info when needed.
5967 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5968 (mips32_heuristic_proc_desc): Fetch the cooked register.
5969 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5970 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5971 (mips_print_register): Use gdbarch_register_type, instead of
5972 REGISTER_VIRTUAL_TYPE.
5973 (print_gp_register_row): Use gdbarch_register_type, instead of
5974 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5975 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5976 Print the pseudo / cooked registers.
5977 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5978 Print the pseudo / cooked registers.
5979 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5980 REG_NUM is pseudo / cooked.
5981 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5982 (mips_n32n64_xfer_return_value): Ditto.
5983 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5984 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5985 (mips_register_sim_regno): New function.
5986 (mips_gdbarch_init): Set deprecated_register_byte,
5987 register_group_p, pseudo_register_write, pseudo_register_read,
5988 register_sim_regno, and num_pseudo_regs. Set register_type,
5989 instead of register_virtual_type.
5990 * Makefile.in (mips-tdep.o): Update dependencies.
5991 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5992 REGISTER_VIRTUAL_TYPE.
5993 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5994 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5995 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5996 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5997 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5998
325ed089
DJ
59992003-06-21 Daniel Jacobowitz <drow@mvista.com>
6000
6001 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6002 * cli/cli-cmds.c: Include "gdb_vfork.h".
6003 (shell_escape): Use vfork.
6004
f0e7d0e8
AC
60052003-06-21 Andrew Cagney <cagney@redhat.com>
6006
c57bb9fa
AC
6007 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6008 32 bit floating-point register saves.
6009
6e51443a
AC
6010 * frame.h (deprecated_unwind_get_saved_register): Delete.
6011 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6012 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6013 and deprecated_get_next_frame_hack instead of
6014 deprecated_unwind_get_saved_register.
6015
ed183c7c
AC
6016 * mips-tdep.c (mips_dump_tdep): Do not print
6017 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6018
f0e7d0e8
AC
6019 * frame.c (get_frame_register): New function.
6020 (frame_unwind_register_signed): New function.
6021 (get_frame_register_signed): New function.
6022 (frame_unwind_register_unsigned): New function.
6023 (get_frame_register_unsigned): New function.
6024 * frame.h: Add comments on naming schema.
6025 (get_frame_register, frame_unwind_register_signed): Declare.
6026 (get_frame_register_signed, get_frame_register_signed): Declare.
6027 (frame_unwind_register_unsigned): Declare.
6028 (get_frame_register_unsigned): Declare.
6029
2224d941
TR
60302003-06-20 Theodore A. Roth <troth@openavr.org>
6031
6032 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6033
8619218d
TR
60342003-06-20 Theodore A. Roth <troth@openavr.org>
6035
6036 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6037 (avr_read_sp): Ditto.
6038
0b1b50c0
DJ
60392003-06-20 Daniel Jacobowitz <drow@mvista.com>
6040
6041 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6042 * config/arm/nm-linux.h: Likewise.
6043 * config/arm/tm-linux.h: Likewise.
6044 * config/ia64/nm-linux.h: Likewise.
6045 * config/ia64/tm-ia64.h: Likewise.
6046 * config/s390/tm-linux.h: Likewise.
6047 * config/s390/tm-s390.h: Likewise.
6048 * s390-nat.c: Likewise.
6049 * s390-tdep.c: Likewise.
6050
6051 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6052 * config/ia64/linux.mt: Likewise.
6053 * config/m68k/linux.mh: Likewise.
6054 * config/mips/linux.mt: Likewise.
6055 * config/powerpc/linux.mh: Likewise.
6056 * config/sh/linux.mt: Likewise.
6057
c8c18e65
KW
60582003-06-19 Kris Warkentin <kewarken@qnx.com>
6059
6060 * solib.c (solib_open): Change tests for whether to search
6061 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6062 comments.
6063
dcccef2e
TR
60642003-06-19 Theodore A. Roth <troth@openavr.org>
6065
6066 * avr-tdep.c (avr_frame_address): Delete function.
6067 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6068 set_gdbarch_frame_args_address.
6069
5861a190
AC
60702003-06-19 Andrew Cagney <cagney@redhat.com>
6071
6072 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6073 (REGISTER_CONVERT_FROM_TYPE): Delete.
6074 (mips_register_convert_to_type): Delete declaration.
6075 (mips_register_convert_from_type): Delete declaration.
6076 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6077 kernel/.
6078
0274a8ce
MS
60792003-06-19 Michael Snyder <msnyder@redhat.com>
6080
6081 * linux-nat.h: New file.
6082 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6083 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6084 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6085 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6086 (linux_make_note_section): Iterate over lwps instead of threads.
6087 (linux_do_thread_registers): Use lwp instead of merged pid.
6088 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6089 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6090 Add dependency on linux_nat_h.
6091
adf5f719
TR
60922003-06-19 Theodore A. Roth <troth@openavr.org>
6093
6094 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6095
6766a268
DJ
60962003-06-19 Daniel Jacobowitz <drow@mvista.com>
6097
6098 * varobj.c (get_type, get_target_type): Use check_typedef.
6099
1171114a
DJ
61002003-06-19 Daniel Jacobowitz <drow@mvista.com>
6101
6102 * breakpoint.c (insert_catchpoint): Call internal_error.
6103
adcf68a2
TR
61042003-06-19 Theodore A. Roth <troth@openavr.org>
6105
6106 * avr-tdep.c (avr_push_dummy_code): Delete function.
6107 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6108
ea67f13b
DJ
61092003-06-19 Daniel Jacobowitz <drow@mvista.com>
6110
6111 * arch-utils.c (default_prepare_to_proceed): Remove.
6112 (generic_prepare_to_proceed): Remove.
6113 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6114 (generic_prepare_to_proceed): Remove prototype.
6115 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6116 * gdbarch.c: Regenerate.
6117 * gdbarch.h: Regenerate.
6118 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6119 * hppah-nat.c (hppa_switched_threads): Remove.
6120 * infrun.c (prepare_to_proceed): New static function, copied from
6121 generic_prepare_to_proceed. Remove select_it argument.
6122 (proceed): Call prepare_to_proceed.
6123 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6124 variables.
6125 (ptrace_wait): Don't set the removed variables.
6126 (hppa_switched_threads): Remove.
6127 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6128 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6129 (lin_lwp_prepare_to_proceed): Remove prototype.
6130 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6131 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6132
4add8633
TR
61332003-06-18 Theodore A. Roth <troth@openavr.org>
6134
6135 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6136 trad-frame.h.
6137 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6138 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6139 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6140 (AVR_PROLOGUE_*): Enumerate prologue types.
6141 (struct frame_extra_info): Remove.
6142 (struct avr_unwind_cache): Define.
6143 (avr_write_sp): Delete function.
6144 (avr_read_fp): Ditto.
6145 (avr_init_extra_frame_info): Ditto.
6146 (avr_pop_frame): Ditto.
6147 (avr_frame_saved_pc): Ditto.
6148 (avr_saved_pc_after_call): Ditto.
6149 (avr_push_return_address): Ditto.
6150 (avr_frame_chain): Ditto.
6151 (avr_store_struct_return): Ditto.
6152 (avr_push_arguments): Ditto.
6153 (avr_scan_prologue): Update comments. Changed to set up the info for
6154 cache unwinding. Now returns end of prologue PC.
6155 (avr_skip_prologue): Better handling of functions lacking a prologue
6156 by using avr_scan_prologue.
6157 (avr_scan_arg_moves): New function.
6158 (avr_saved_regs_unwinder): Ditto.
6159 (avr_frame_unwind_cache): Ditto.
6160 (avr_unwind_pc): Ditto.
6161 (avr_frame_this_id): Ditto.
6162 (avr_frame_prev_register): Ditto.
6163 (avr_frame_p): Ditto.
6164 (avr_frame_base_address ): Ditto.
6165 (avr_unwind_dummy_id): Ditto.
6166 (avr_push_dummy_code): Ditto.
6167 (push_stack_item): Ditto.
6168 (pop_stack_item): Ditto.
6169 (avr_push_dummy_call): Ditto.
6170 (struct stack_item): Define.
6171 (avr_frame_unwind): Declare structure.
6172 (avr_frame_base): Ditto.
6173 (avr_gdbarch_init): Remove calls to
6174 set_gdbarch_deprecated_init_frame_pc,
6175 set_gdbarch_deprecated_target_read_fp,
6176 set_gdbarch_deprecated_dummy_write_sp,
6177 set_gdbarch_deprecated_fp_regnum,
6178 set_gdbarch_deprecated_push_arguments,
6179 set_gdbarch_deprecated_push_return_address,
6180 set_gdbarch_deprecated_pop_frame,
6181 set_gdbarch_deprecated_store_struct_return,
6182 set_gdbarch_deprecated_frame_init_saved_regs,
6183 set_gdbarch_deprecated_init_extra_frame_info,
6184 set_gdbarch_deprecated_frame_chain,
6185 set_gdbarch_deprecated_frame_saved_pc,
6186 set_gdbarch_deprecated_saved_pc_after_call.
6187 Add calls to set_gdbarch_push_dummy_call,
6188 set_gdbarch_push_dummy_code,
6189 frame_unwind_append_predicate,
6190 frame_base_set_default,
6191 set_gdbarch_unwind_dummy_id,
6192 set_gdbarch_unwind_pc.
6193 Wrap a long line.
6194
7be04a68
MS
61952003-06-18 Corinna Vinschen <vinschen@redhat.com>
6196
6197 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6198 registers for H8/300S.
6199 (h8300_print_registers_info): Ditto.
8ffd9b1b 6200 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6201
ae087d01
DJ
62022003-06-18 Daniel Jacobowitz <drow@mvista.com>
6203
6204 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6205 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6206 (lin_lwp_wait): Likewise. Update comments.
6207 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6208 (pull_pid_from_list, linux_record_stopped_pid): New.
6209
07d8f827
SC
62102003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6211
6212 * ada-lang.c (scan_discrim_bound): Name first argument.
6213 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6214 declared by ALL_BLOCK_SYMBOLS.
6215
7cb47b14
SC
62162003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6217
6218 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6219 ("regcache.h"): Include it.
6220 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6221
6ad8ae5c
DJ
62222003-06-17 Daniel Jacobowitz <drow@mvista.com>
6223
6224 * NEWS: Mention gdbserver detach change and "disconnect" command.
6225 * infcmd.c (disconnect_command): New function.
6226 (_initialize_infcmd): Add ``disconnect'' command.
6227 * remote.c (remote_async_detach): Delete.
6228 (remote_detach): Merge remote_async_detach.
6229 (remote_disconnect): New.
6230 (init_remote_ops): Set to_disconnect.
6231 (init_remote_cisco_ops): Likewise.
6232 (init_remote_async_ops): Likewise. Use remote_detach.
6233 * target.c (cleanup_target): Default to_disconnect.
6234 (update_current_target): Inherit to_disconnect.
6235 (target_disconnect, debug_to_disconnect): New functions.
6236 (setup_target_debug): Set to_disconnect.
6237 * target.h (struct target_ops): Add to_disconnect.
6238 (target_disconnect): Add prototype.
6239
687595f9
DJ
62402003-06-17 Daniel Jacobowitz <drow@mvista.com>
6241
6242 * breakpoint.c (insert_catchpoint): New function.
6243 (insert_breakpoints): Use catch_exceptions to call
6244 insert_catchpoint. Disable catchpoints if they fail to insert.
6245
29239a8f
DJ
62462003-06-17 Daniel Jacobowitz <drow@mvista.com>
6247
6248 * symfile.c (reread_symbols): Clear sym_private.
6249
2cdf3c63
AC
62502003-06-17 Andrew Cagney <cagney@redhat.com>
6251
6252 * trad-frame.h (struct frame_info): Add opaque declaration.
6253 * remote-fileio.h (struct cmd_list_element): Add opaque
6254 declaration.
6255 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6256 comments.
6257
cf0e1e0d
DJ
62582003-06-17 Daniel Jacobowitz <drow@mvista.com>
6259
6260 * remote.c (remote_prepare_to_store): Replace call to
6261 deprecated_read_register_bytes with multiple regcache_raw_read
6262 calls.
6263
192cdb19
KW
62642003-06-17 Kris Warkentin <kewarken@qnx.com>
6265
6266 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6267 (nto_find_and_open_solib): Likewise.
6268 (nto_init_solib_absolute_prefix): Likewise.
6269 (_initialize_nto_tdep): Fix indentation.
6270
89929b45
KW
62712003-06-17 Kris Warkentin <kewarken@qnx.com>
6272
6273 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6274
46019f27
KW
62752003-06-17 Kris Warkentin <kewarken@qnx.com>
6276
6277 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6278
1a38736e
JB
62792003-06-17 Jim Blandy <jimb@redhat.com>
6280
6281 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6282
3605c34a
TR
62832003-06-16 Theodore A. Roth <troth@openavr.org>
6284
6285 * avr-tdep.c (avr_extract_return_value): New function.
6286 (avr_gdbarch_init): Set extract_return_value method.
6287
870b3035
AC
62882003-06-16 Andrew Cagney <cagney@redhat.com>
6289
6290 * frame.h (deprecated_get_next_frame_hack): Declare.
6291 * frame.c (legacy_saved_regs_prev_register): Only require
6292 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6293 there are always saved regs.
6294 (deprecated_generic_get_saved_register): Do not require
6295 DEPRECATED_FRAME_INIT_SAVED_REGS.
6296 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6297 use frame ID unwind instead.
6298 (deprecated_get_next_frame_hack): New function.
6299
63d47a7d
CV
63002003-06-16 Corinna Vinschen <vinschen@redhat.com>
6301
6302 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6303 (h8300_push_dummy_call): ...this function. Some minor optimization.
6304 (h8300_push_return_address): Remove.
6305 (h8300_gdbarch_init): Remove calls to
6306 set_gdbarch_deprecated_dummy_write_sp,
6307 set_gdbarch_deprecated_push_arguments and
6308 set_gdbarch_deprecated_push_return_address.
6309 Add call to set_gdbarch_push_dummy_call.
6310
4bb1dc5e
CV
63112003-06-16 Corinna Vinschen <vinschen@redhat.com>
6312
6313 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6314 (E_PSEUDO_EXR_REGNUM): Ditto.
6315 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6316 registers into safe registers.
4bb1dc5e
CV
6317 (h8300_skip_prologue): Check for stm instruction to push registers
6318 used for register variables onto stack.
6319 (gdb_print_insn_h8300): Remove.
6320 (h8300_examine_prologue): Add a comment.
6321 (h8300_register_name): Take pseudo registers into account.
6322 (h8300s_register_name): Ditto.
6323 (h8300sx_register_name): Ditto.
6324 (h8300_print_register): Ditto.
6325 (h8300_print_registers_info): Define "nice" printing order.
6326 (h8300_saved_pc_after_call): Take pseudo registers into account.
6327 (h8300_register_type): Ditto. Return type used for remote connection
6328 when requesting real CCR or EXR register, return actual type when
6329 requesting pseudo CCR or EXR.
6330 (h8300_pseudo_register_read): New function.
6331 (h8300_pseudo_register_write): Ditto.
6332 (h8300_dbg_reg_to_regnum): Ditto.
6333 (h8300s_dbg_reg_to_regnum): Ditto.
6334 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6335 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6336 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6337 set_gdbarch_print_insn architecture dependent.
6338 Call set_gdbarch_pseudo_register_read and
6339 set_gdbarch_pseudo_register_write.
6340 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6341
a59fe496
AC
63422003-06-16 Andrew Cagney <cagney@redhat.com>
6343
6344 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6345 * gdbarch.h, gdbarch.c: Re-generate.
6346 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6347 * s390-tdep.c (s390_gdbarch_init): Update.
6348 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6349 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6350 * mips-tdep.c (mips_gdbarch_init): Update.
6351 * mcore-tdep.c (mcore_gdbarch_init): Update.
6352 * cris-tdep.c (cris_gdbarch_init): Update.
6353 * infcall.c (call_function_by_hand): Update.
6354 * ia64-tdep.c (ia64_push_arguments): Update comment.
6355 * frame.c (legacy_get_prev_frame): Do not assume
6356 SAVE_DUMMY_FRAME_TOS_P.
6357 * dummy-frame.c (find_dummy_frame): Update comment.
6358
6f4e5a41
AC
63592003-06-16 Andrew Cagney <cagney@redhat.com>
6360
6361 * regcache.c (do_cooked_read): Do not use register_valid_p.
6362
72fab697
TR
63632003-06-15 Theodore A. Roth <troth@openavr.org>
6364
6365 * avr-tdep.c (avr_register_type): Remove a blank line.
6366 (avr_scan_prologue): Correct some comments.
6367
e3d8b004
TR
63682003-06-15 Theodore A. Roth <troth@openavr.org>
6369
6370 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6371 prologue types.
8ffd9b1b 6372 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6373 option.
6374 Add code to scan -mcall-prologues for mega devices.
6375
866b76ea
TR
63762003-06-15 Theodore A. Roth <troth@openavr.org>
6377
6378 * avr-tdep.c (avr_register_byte): Delete function.
6379 (avr_register_raw_size): Delete function.
6380 (avr_register_virtual_size): Delete function.
6381 (avr_register_virtual_type): Delete function.
6382 (avr_register_type): New function.
6383 (avr_address_to_pointer): Remove unused code.
6384 (avr_read_fp): Need to read FP as two separate bytes due to change to
6385 avr_register_type() usage.
6386 (avr_gdbarch_init): Don't set deprecated_register_size.
6387 Don't set deprecated_register_bytes.
6388 Don't set deprecated_register_byte.
6389 Don't set deprecated_register_raw_size.
6390 Don't set deprecated_max_register_raw_size.
6391 Don't set deprecated_register_virtual_size.
6392 Don't set deprecated_max_register_virtual_size.
6393 Don't set deprecated_register_virtual_type.
6394 Set register_type method.
6395
3993f6b1
DJ
63962003-06-15 Daniel Jacobowitz <drow@mvista.com>
6397
6398 * Makefile.in (linux-nat.o): Add rule.
6399 * linux-nat.c: New file.
6400 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6401 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6402 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6403 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6404 * config/arm/linux.mh (NATDEPFILES): Likewise.
6405 * config/i386/linux.mh (NATDEPFILES): Likewise.
6406 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6407 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6408 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6409 * config/mips/linux.mh (NATDEPFILES): Likewise.
6410 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6411 * config/s390/s390.mh (NATDEPFILES): Likewise.
6412 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6413
786a90bb
MK
64142003-06-15 Mark Kettenis <kettenis@gnu.org>
6415
6416 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6417 replace out-of-date comment.
6418
3bd3f01e
AC
64192003-06-15 Andrew Cagney <cagney@redhat.com>
6420
6421 * rdi-share/host.h (Fail): Change to a varargs function.
6422 * remote-rdi.c (Fail): Update.
8ffd9b1b 6423
de5b9bb9
MK
64242003-06-15 Mark Kettenis <kettenis@gnu.org>
6425
6426 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6427 (i386_convert_register_p, i386_register_to_value,
6428 i386_register_from_value): Handle types longer than 8 bytes.
6429
d532c08f
MK
64302003-06-15 Mark Kettenis <kettenis@gnu.org>
6431
6432 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6433 Move floating-point code to new function in i387-tdep.c.
6434 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6435 New functions containing code moved here from i386-tdep.c.
6436 * i387-tdep.h: Add opaque declaration for `struct type'.
6437 (i387_register_to_value, i387_value_to_register): New prototypes.
6438 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6439 (x86_64_init_abi): Set convert_register_p, register_to_value and
6440 value_to_register here.
8ffd9b1b 6441
42c466d7
AC
64422003-06-14 Andrew Cagney <cagney@redhat.com>
6443
6444 * mips-tdep.c (mips_register_to_value): Make static.
6445 (mips_value_to_register): Make static.
6446 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6447 * ia64-tdep.c (ia64_register_raw_size): Make static.
6448 (ia64_register_virtual_size): Make static.
6449 (ia64_register_byte): Make static.
6450 * i387-tdep.c: Include "i387-tdep.h".
6451 (print_387_control_word): Delete function.
6452 (print_387_status_word): Delete function.
6453 (print_387_status_bits): Delete function.
6454 (print_387_control_bits): Delete function.
6455 * Makefile.in (i387-tdep.o): Update dependencies.
6456 * rdi-share/host.h (Fail): Declare.
6457 * remote-rdi.c (Fail): Update to match declaration.
6458
2a9cda49
AC
64592003-06-14 Andrew Cagney <cagney@redhat.com>
6460
6461 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6462 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6463 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6464 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6465 * README: Delete reference to remote-array.
6466 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6467 (remote-array.o): Delete target.
6468 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6469 * remote-array.c: Delete file.
6470
ff2e87ac
AC
64712003-06-14 Andrew Cagney <cagney@redhat.com>
6472 Mark Kettenis <kettenis@gnu.org>
6473
6474 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6475 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6476 parameter with "frame".
6477 * gdbarch.h, gdbarch.c: Re-generate.
6478 * frame.h (put_frame_register): Declare.
6479 * frame.c (put_frame_register): New function.
6480 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6481 (legacy_register_to_value): Rewrite, use "frame" to get the
6482 register value.
6483 (legacy_value_to_register): Rewrite, use "frame" to find the
6484 register's location before storing.
6485 * arch-utils.h (legacy_convert_register_p): Update.
6486 (legacy_register_to_value, legacy_value_to_register): Update.
6487 * findvar.c (value_from_register): Rewrite, eliminate use of
6488 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6489 "frame" to REGISTER_TO_VALUE.
6490 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6491 lval_reg_frame_relative + lval_register branch of the switch. Do
6492 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6493 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6494 I386_EDI_REGNUM): New defines.
6495 (i386_next_regnum, i386_convert_register_p,
6496 i386_register_to_value, i386_value_to_register): New functions.
6497 (i386_register_convertible, i386_register_convert_to_virtual,
6498 i386_convert_to_raw): Remove functions.
6499 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6500 value_to_register instead of register_convertible,
6501 register_convert_to_virtual and register_convert_to_raw.
6502 * mips-tdep.c (mips_convert_register_p): New function.
6503 (mips_value_to_register): Replace mips_register_convert_from_type.
6504 (mips_register_to_value): Replace mips_register_convert_to_type.
6505 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6506 register_to_value.
6507 * alpha-tdep.c (alpha_convert_register_p): Update.
6508 (alpha_value_to_register): Update, store the register.
6509 (alpha_register_to_value): Update, fetch the register.
6510
98be1e77
TR
65112003-06-14 Theodore A. Roth <troth@openavr.org>
6512
6513 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6514 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6515 Don't set deprecated_call_dummy_words.
6516 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6517 Don't set remote_translate_xfer_address.
6518 (avr_io_reg_read_command): Remove commented out debug printf.
6519 Wrap a long line.
6520
57bc6122
TR
65212003-06-14 Theodore A. Roth <troth@openavr.org>
6522
6523 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6524 causes gdb to seg fault.
6525
eb01fc62
DJ
65262003-06-14 Daniel Jacobowitz <drow@mvista.com>
6527
6528 * sparc-nat.c (fetch_inferior_registers): Correct
6529 a reference to "registers".
6530
3b3e6bee
DJ
65312003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6532
6533 * Makefile.in (exc_request_U_h): Define
6534 (exc_request_S_h): Likewise.
6535 (msg_reply_S_h): Likewise.
6536 (msg_U_h): Likewise.
6537 (notify_S_h): Likewise.
6538 (process_reply_S_h): Likewise.
6539 (gnu-nat.o): Depend on gdb_obstack_h
6540 * gnu-nat.c: Include "gdb_obstack.h".
6541
b8de8283
AC
65422003-06-13 Andrew Cagney <cagney@redhat.com>
6543
6544 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6545 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6546
f3be58bc
AC
65472003-06-13 Andrew Cagney <cagney@redhat.com>
6548
6549 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6550 when deprecated REGISTER macros can be deleted.
6551 * gdbarch.h, gdbarch.c: Re-generate.
6552
4c0122c8
JB
65532003-06-13 Jim Blandy <jimb@redhat.com>
6554
6555 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6556 Linux entry point symbols for _dl_debug_state, too.
6557
3e210248
AC
65582003-06-13 Andrew Cagney <cagney@redhat.com>
6559
6560 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6561 available, do not use the FP register, and always save the TOS.
6562 * dummy-frame.c (dummy_frame_this_id): Do not assert
6563 SAVE_DUMMY_FRAME_TOS.
6564 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6565 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6566 (i386_push_dummy_call): Add 8 to the returned SP.
6567 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6568 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6569 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6570 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6571 (x86_64_push_dummy_call): Return "sp + 16".
6572 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6573 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6574 save_dummy_frame_tos.
6575
0b65af49
JB
65762003-06-13 Jim Blandy <jimb@redhat.com>
6577
6578 * frv-tdep.c (frv_use_struct_convention): Delete static
6579 declaration for function deleted in my change of 2003-06-12.
6580
4ea2465e
TR
65812003-06-13 Theodore A. Roth <troth@openavr.org>
6582
6583 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6584 (avr_pointer_to_address): Shift code addrs left 1 bit.
6585 (avr_convert_from_func_ptr_addr): Delete function since operation is
6586 better handled by avr_address_to_pointer and avr_pointer_to_address.
6587 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6588
1581182a
MK
65892003-06-13 Mark Kettenis <kettenis@gnu.org>
6590
6591 From Kelley Cook <kelleycook@wideopenwest.com>:
6592 * configure.host: Accept i[34567]86 variants.
6593 * configure.tgt: Likewise.
6594 * nlm/configure.in: Likewise.
6595 * nlm/configure: Regenerated.
6596
7aa1783e
RE
65972003-06-13 Richard Earnshaw <rearnsha@arm.com>
6598
6599 * arm-tdep.c (solib-svr4.h): Dont' include it.
6600 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6601 * arm-linux-tdep.c: ... here. Make static.
6602 (arm_linux_init_abi): Register it.
6603 (solib-svr4.h): Include it.
6604 * Makefile.in: Update dependencies.
6605 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6606 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6607
0261a0d0
CV
66082003-06-13 Corinna Vinschen <vinschen@redhat.com>
6609
6610 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6611 indicate registers used for return values.
6612 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6613 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6614 members.
6615 (h8300_init_extra_frame_info): Ditto.
6616 (h8300_frame_locals_address): Removed.
6617 (h8300_frame_args_address): Removed.
6618 (h8300_extract_return_value): Use new regcache structure. Only care
6619 for 16 bit CPUs.
6620 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6621 (h8300_store_return_value): Use new regcache structure. Only care
6622 for 16 bit CPUs.
6623 (h8300h_store_return_value): Same function for 32 bit CPUs.
6624 (h8300_store_struct_return): Removed.
6625 (h8300_extract_struct_value_address): Use new regcache structure.
6626 (h8300h_extract_struct_value_address): Removed.
6627 (h8300_push_dummy_code): New function.
6628 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6629 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6630 set_gdbarch_store_return_value architecture dependent.
6631 Call set_gdbarch_push_dummy_code and
6632 set_gdbarch_extract_struct_value_address.
6633 Remove calls to set_gdbarch_frame_args_address,
6634 set_gdbarch_frame_locals_address,
6635 set_gdbarch_deprecated_store_struct_return,
6636 set_gdbarch_deprecated_extract_return_value,
6637 set_gdbarch_deprecated_extract_struct_value_address,
6638 set_gdbarch_deprecated_call_dummy_words and
6639 set_gdbarch_deprecated_sizeof_call_dummy_words.
6640
055c394a
CV
66412003-06-13 Corinna Vinschen <vinschen@redhat.com>
6642
6643 * h8300-tdep.c (h8300_register_byte): Remove.
6644 (h8300h_register_byte): Remove.
6645 (h8300_register_virtual_type): Remove. Substitute by...
6646 (h8300_register_type): New function.
6647 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6648 (h8300h_extract_struct_value_address): Ditto.
6649 (h8300_gdbarch_init): Drop calls to
6650 set_gdbarch_deprecated_register_byte and
6651 set_gdbarch_deprecated_register_virtual_type.
6652 Add call to set_gdbarch_register_type.
6653
9c04cab7
AC
66542003-06-13 Andrew Cagney <cagney@redhat.com>
6655
6656 * gdbarch.sh: Update comments on registers.
6657 (deprecated_register_byte): Rename register_byte.
6658 (deprecated_register_raw_size): Rename register_raw_size.
6659 (deprecated_register_virtual_size): Rename register_virtual_size.
6660 (deprecated_register_virtual_type): Rename register_virtual_type.
6661 * gdbarch.h, gdbarch.c: Re-generate.
6662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6663 * vax-tdep.c (vax_gdbarch_init): Update.
6664 * v850-tdep.c (v850_gdbarch_init): Update.
6665 * sparc-tdep.c (sparc_gdbarch_init): Update.
6666 * sh-tdep.c (sh_gdbarch_init): Update.
6667 * s390-tdep.c (s390_gdbarch_init): Update.
6668 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6669 * ns32k-tdep.c: Update.
6670 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6671 * mips-tdep.c (mips_gdbarch_init): Update.
6672 * mcore-tdep.c (mcore_gdbarch_init): Update.
6673 * m68k-tdep.c (m68k_gdbarch_init): Update.
6674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6675 * ia64-tdep.c (ia64_gdbarch_init): Update.
6676 * hppa-tdep.c (hppa_gdbarch_init): Update.
6677 * h8300-tdep.c (h8300_gdbarch_init): Update.
6678 * frv-tdep.c (frv_gdbarch_init): Update.
6679 * cris-tdep.c (cris_gdbarch_init): Update.
6680 * avr-tdep.c (avr_gdbarch_init): Update.
6681 * alpha-tdep.c (alpha_gdbarch_init): Update.
6682 * arm-tdep.c (arm_gdbarch_init): Update.
6683
b060cbea
AC
66842003-06-13 Andrew Cagney <cagney@redhat.com>
6685
6686 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6687 mips_o32_use_struct_convention with always_use_struct_convention.
6688
0fc9922a
DC
66892003-06-12 David Carlton <carlton@kealia.com>
6690
6691 * cp-namespace.c (cp_set_block_scope): Comment out
6692 processing_has_namespace_info branch.
6693
1fd35568
JB
66942003-06-12 Jim Blandy <jimb@redhat.com>
6695
f470a70a
JB
6696 Recognize and skip 64-bit PowerPC Linux linkage functions.
6697 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6698 insn_pattern, insns_match_pattern, d_field, ds_field): New
6699 functions, macros, and types for working with PPC instructions.
6700 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6701 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6702 ppc64_skip_trampoline_code): New functions, variables, and macros
6703 for recognizing and skipping linkage functions.
6704 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6705 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6706
49ff75ad
JB
6707 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6708 register offsets for both the 32- and 64-bit interfaces.
6709
bd918c83
JB
6710 Actually finish the job started by my change of 2003-05-29.
6711 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6712 other #definition of this.
6713 (ppc_linux_skip_trampoline_code): Remove declaration.
6714 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6715 static.
6716 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6717 method for GDBARCH.
6718
6719 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6720 'long' on ppc64-*-linux*.
6721
f8c59253
JB
6722 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6723 isn't #defined, assume the register doesn't exist: act as if
6724 tdep->ppc_mq_regnum were -1.
6725
8fbb30b1
JB
6726 * configure.host, configure.tgt: Add entries for
6727 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6728 powerpc/linux.mt.
6729 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6730 New files.
6731
1fd35568
JB
6732 * arch-utils.c (always_use_struct_convention): New function.
6733 * arch-utils.h (always_use_struct_convention): New prototype.
6734 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6735 (alpha_gdbarch_init): Register always_use_struct_convention,
6736 instead of alpha_use_struct_convention.
6737 * cris-tdep.c (cris_use_struct_convention): Delete.
6738 (cris_gdbarch_init): Register always_use_struct_convention,
6739 instead of cris_use_struct_convention.
6740 * frv-tdep.c (frv_use_struct_convention): Delete.
6741 (frv_gdbarch_init): Register always_use_struct_convention,
6742 instead of frv_use_struct_convention.
6743 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6744 (h8300_gdbarch_init): Register always_use_struct_convention,
6745 instead of h8300_use_struct_convention.
e3305dd9 6746 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6747 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6748 instead of mips_o32_use_struct_convention.
6749
e14e6e9c
AC
67502003-06-12 Andrew Cagney <cagney@redhat.com>
6751
6752 * wince.c: Include "mips-tdep.h".
6753 * mips-tdep.h (mips_next_pc): Declare.
6754 * mcore-tdep.c: Make more local functions static.
6755 * Makefile.in (wince.o): Update dependencies.
6756
2335f48e
DC
67572003-06-12 David Carlton <carlton@kealia.com>
6758
6759 * symtab.c (lookup_symbol_aux_minsyms): Replace
6760 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6761 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6762 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6763 SYMBOL_NATURAL_NAME.
6764
f70a7d61
AS
67652003-06-12 Andreas Schwab <schwab@suse.de>
6766
6767 * Makefile.in (tuiDisassem.o): Update dependencies.
6768
b6429628
DC
67692003-06-12 David Carlton <carlton@bactrian.org>
6770
6771 * symtab.h: Delete declaration of make_symbol_overload_list.
6772 Add declaration of lookup_partial_symbol.
6773 * symtab.c (remove_params): Move to cp-support.c.
6774 (overload_list_add_symbol, make_symbol_overload_list)
6775 (sym_return_val_size, sym_return_val_index): Ditto.
6776 (lookup_partial_symbol): Make extern.
6777 * cp-support.h: Add declaration of make_symbol_overload_list.
6778 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6779 symtab.h, and block.h.
6780 (remove_params): Move here from symtab.c.
6781 (overload_list_add_symbol, make_symbol_overload_list)
6782 (sym_return_val_size, sym_return_val_index): Ditto.
6783 * valops.c: Include cp-support.h.
6784 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6785 frame_h, and block_h.
6786 (valops.o): Depend on cp_support_h.
6787
084edea5
CV
67882003-06-12 Corinna Vinschen <vinschen@redhat.com>
6789
6790 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6791 substitute by NUM_REGS throughout.
6792 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6793 (h8300s_register_name): New function for H8S registers.
6794 (h8300sx_register_name): Ditto for H8SX registers.
6795 (h8300_print_register): Revise register printing, avoid depending
6796 on 32 bit long.
0261a0d0 6797 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6798 (h8300h_register_byte): New function for any other architecture.
6799 (h8300_register_raw_size): Remove.
6800 (h8300_register_virtual_type): Revise to return actually useful
6801 type.
6802 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6803 (h8300h_extract_struct_value_address): New function for any other
6804 architecture.
6805 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6806 set_gdbarch_register_name, set_gdbarch_register_byte,
6807 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6808 Remove calls to set_gdbarch_deprecated_register_size,
6809 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6810 set_gdbarch_deprecated_max_register_raw_size,
6811 set_gdbarch_register_virtual_size and
6812 set_gdbarch_deprecated_max_register_virtual_size entirely.
6813 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6814 set_gdbarch_long_double_bit.
6815
06194148
JJ
68162003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6817
8ffd9b1b
AJ
6818 * doublest.c (convert_doublest_to_floatformat): When dealing
6819 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6820 processing a full 32 bits of mantissa.
6821
de4f826b
DC
68222003-06-11 David Carlton <carlton@bactrian.org>
6823
6824 * dictionary.h: New.
6825 * dictionary.c: New.
6826 * block.h: Add opaque declaration for struct dictionary.
6827 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6828 'sym' members.
6829 (BLOCK_DICT): New macro.
6830 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6831 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6832 BLOCK_SHOULD_SORT.
6833 (ALL_BLOCK_SYMBOLS): Update definition.
6834 * Makefile.in (SFILES): Add dictionary.c.
6835 (dictionary_h): New.
6836 (COMMON_OBS): Add dictionary.o.
6837 (dictionary.o): New.
6838 (ada-lang.o): Depend on dictionary_h.
6839 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6840 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6841 (mi-cmd-stack.o): Ditto.
6842 (gdbtk-cmds.o): Update dependencies.
6843 (gdbtk-stack.o): Ditto.
6844 * ada-lang.c: Include dictionary.h.
6845 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6846 (fill_in_ada_prototype, debug_print_block): Ditto.
6847 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6848 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6849 'is_sorted'.
6850 * mdebugread.c: Include dictionary.h.
6851 (struct parse_stack): Delete 'maxsyms' member.
6852 (parse_symbol): Update calls to new_block. Delete calls to
6853 shrink_block. Use dictionary methods.
6854 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6855 Update calls to new_symtab. Don't maintain maxsyms data.
6856 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6857 (add_symbol): Just call dict_add_symbol.
6858 (new_symtab): Delete 'maxsyms' argument.
6859 (new_symtab): Update calls to new_block.
6860 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6861 (shrink_block): Delete function.
6862 (fixup_sigtramp): Update call to new_block. Add symbol via
6863 dict_add_symbol.
6864 * jv-lang.c: Include dictionary.h.
6865 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6866 appropriately. Set class_symtab->free_func. Make sure the
6867 blockvector is big enough to hold two blocks.
6868 (add_class_symtab_symbol): Use dictionary methods.
6869 (free_class_block): New function.
6870 (type_from_class): Replace explicit iteration by
6871 ALL_BLOCK_SYMBOLS.
6872 * symtab.h (struct symtab): Replace 'free_ptr' method by
6873 'free_func'.
6874 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6875 sort_symtab_syms.
6876 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6877 sort_symtab_syms.
6878 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6879 Include dictionary.h.
6880 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6881 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6882 sort_symtab_syms.
6883 * objfiles.c: Include dictionary.h.
6884 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6885 * buildsym.c: Include dictionary.h.
6886 (finish_block): Use dictionary methods.
6887 (end_symtab): Set free_func to NULL, not free_ptr.
6888 * tracepoint.c: Include dictionary.h.
6889 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6890 (scope_info): Ditto.
6891 * stack.c: Include dictionary.h.
6892 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6893 (print_block_frame_labels, print_frame_arg_vars)
6894 (print_frame_args): Ditto.
6895 * symmisc.c (free_symtab_block): Use dictionary methods.
6896 (dump_symtab): Ditto.
6897 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6898 Include dictionary.h.
6899 * symfile.h: Delete declarations of sort_block_syms,
6900 sort_symtab_syms.
6901 * symfile.c (sort_block_syms): Delete.
6902 (sort_symtab_syms): Delete.
6903 * symtab.c: Include dictionary.h.
6904 (lookup_block_symbol): Use dictionary iterators.
6905 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6906 (search_symbols, make_symbol_completion_list): Ditto.
6907 (make_symbol_overload_list): Ditto.
6908 * valops.c (value_of_local): Use dict_empty.
6909 Include dictionary.h.
6910
a31f978c
JB
69112003-06-11 J. Brobecker <brobecker@gnat.com>
6912
6913 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6914
526e70c0
DC
69152003-06-11 David Carlton <carlton@bactrian.org>
6916
6917 * block.h (BLOCK_SHOULD_SORT): Delete.
6918 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6919 blocks.
6920 * ada-lang.c (ada_add_block_symbols): Ditto.
6921 * symfile.c (sort_block_syms): Delete.
6922 (sort_symtab_syms): Ditto.
6923 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6924 declarations.
6925 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6926 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6927 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6928 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6929 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6930 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6931 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6932
33c08150
JJ
69332003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6934
8ffd9b1b 6935 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6936 bits to 128.
6937
781a750d
AC
69382003-06-11 Andrew Cagney <cagney@redhat.com>
6939
6940 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6941 REGISTER_CONVERTIBLE.
6942 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6943 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6944 * gdbarch.h, gdbarch.c: Re-generate.
6945 * arch-utils.h (deprecated_register_convertible_not): Rename
6946 generic_register_convertible_not.
6947 * arch-utils.c (deprecated_register_convertible_not): Rename
6948 generic_register_convertible.
6949 (legacy_convert_register_p, legacy_register_to_value): Update.
6950 * sh-tdep.c (sh64_push_arguments): Update.
6951 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6952 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6953 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6954 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6955 * arch-utils.c (legacy_value_to_register): Update.
6956 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6957 (rs6000_register_convert_to_raw): Make parameter "from" const.
6958 * mips-tdep.c (mips_gdbarch_init): Update.
6959 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6960 * infcmd.c (default_print_registers_info): Update.
6961 * ia64-tdep.c (ia64_gdbarch_init): Update.
6962 (ia64_register_convert_to_raw): Make parameter "from" const.
6963 * i386-tdep.c (i386_gdbarch_init): Update.
6964 (i386_register_convert_to_raw): Update.
6965
cd90e54f
AC
69662003-06-11 Andrew Cagney <cagney@redhat.com>
6967
6968 * remote-fileio.c: Include "remote-fileio.h".
6969 * Makefile.in (remote-fileio.o): Update dependencies.
6970 (remote_fileio_h): Fix typo.
6971
a78f21af
AC
69722003-06-11 Andrew Cagney <cagney@redhat.com>
6973
6974 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6975 (xstormy16_save_dummy_frame_tos): Make static.
6976 (_initialize_xstormy16_tdep): Add declaration.
6977 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6978 * v850-tdep.c: Make local functions static.
6979 (_initialize_v850_tdep): Add declaration.
6980 * sparc-tdep.c: Make local functions static.
6981 (_initialize_sparc_tdep): Add declaration.
6982 * sh-tdep.c: Make local functions static.
6983 (_initialize_sh_tdep): Add declaration.
6984 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6985 * s390-tdep.c: Make local functions static.
6986 (_initialize_s390_tdep): Add declaration.
6987 * dbxread.c (find_stab_function_addr): Make static.
6988 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6989 * ocd.c (_initialize_remote_ocd): Add declaration.
6990 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6991 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6992 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6993 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6994 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6995 * remote-array.c (_initialize_array): Add declaration.
6996 (_initialize_remote_monitors): Add declaration.
6997 * remote-mips.c: Make local functions static.
6998 (_initialize_remote_mips): Add declaration.
6999 * mcore-tdep.c: Make all local functions static.
7000 (_initialize_mcore_tdep): Add declaration.
7001 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7002 * abug-rom.c (_initialize_abug_rom): Add declaration.
7003 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7004 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7005 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7006 * remote-est.c (_initialize_est): Add declaration.
7007 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7008 (m68hc11_call_dummy_address): Make static.
7009 * ia64-tdep.c: Make local functions static.
7010 (_initialize_ia64_tdep): Add declaration.
7011 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7012 * monitor.c (monitor_wait_filter): Make static.
7013 (_initialize_remote_monitors): Add declaration.
7014 * remote-hms.c (_initialize_remote_hms): Add declaration.
7015 * remote-e7000.c (fetch_regs_from_dump): Make static.
7016 (expect_n): Make static.
7017 (_initialize_remote_e7000): Add declaration.
7018 * ser-e7kpc.c: Always include "defs.h".
7019 (_initialize_ser_e7000pc): Add declaration.
7020 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7021 * cris-tdep.c: Make all but one function static.
7022 (_initialize_cris_tdep): Add declaration.
7023 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7024 * solib.c (update_solib_list): Make static.
7025 (_initialize_solib): Add declaration.
7026 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7027 (_initialize_avr_tdep): Add declaration.
7028 * remote-rdi.c (voiddummy): Make static.
7029 (_initialize_remote_rdi): Add declaration.
7030 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7031 * remote-rdp.c (send_rdp): Make static.
7032 (_initialize_remote_rdp): Add declaration.
7033 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7034
cbcdb1f5
CV
70352003-06-11 Corinna Vinschen <vinschen@redhat.com>
7036
7037 * remote-fileio.c: Make ari happy.
7038
a191ea8d
JB
70392003-06-10 J. Brobecker <brobecker@gnat.com>
7040
7041 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7042 fetching the trailing bytes of the buffer we are about to write.
7043
0ef75e11
AC
70442003-06-10 Andrew Cagney <cagney@redhat.com>
7045
7046 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7047 * Makefile.in (remote-fileio.o): Update dependencies.
7048 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7049 include <setjmp.h>, or <sys/types.h> conditional on USG.
7050 (remote_fio_jmp_buf): Delete global variable.
7051
449092f6 70522003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7053 Martin M. Hunt <hunt@redhat.com>
449092f6 7054
559fa028
AC
7055 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7056 (SFILES): Add remote-fileio.c.
7057 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7058 dependencies for building remote.o.
449092f6
CV
7059 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7060 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7061 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7062 static storage class.
7063 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7064 'F' packet.
7065 (_initialize_remote): Call initialize_remote_fileio().
7066 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7067 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7068 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7069 (captured_main): Initialize new ui_files.
7070 * ui-file.c: Add read and fgets input functions.
7071 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7072 (null_file_read): New function.
7073 (ui_file_read): New function.
7074 (set_ui_file_read): New function.
7075 (stdio_file_read): New function.
7076 * ui-file.h: New type ui_file_read_ftype.
7077 (set_ui_file_read): Declare.
7078 (ui_file_read): Declare.
7079
248de703
AC
70802003-06-09 Andrew Cagney <cagney@redhat.com>
7081
7082 * frame.h (deprecated_unwind_get_saved_register): Rename
7083 generic_unwind_get_saved_register, update comments.
7084 * mips-tdep.c (mips_get_saved_register): Update.
7085 * frame.c (deprecated_unwind_get_saved_register): Update.
7086
0ed8aa57
AC
70872003-06-09 Andrew Cagney <cagney@redhat.com>
7088
7089 * vax-tdep.c (vax_frame_locals_address): Delete function.
7090 (vax_gdbarch_init): Do not set frame_locals_address.
7091 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7092 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7093 * s390-tdep.c (s390_frame_args_address): Delete function.
7094 (s390_gdbarch_init): Do not set frame_args_address or
7095 frame_locals_address.
7096 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7097 (ns32k_gdbarch_init): Do not set frame_locals_address.
7098 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7099 (hppa_frame_locals_address): Delete function.
7100 (hppa_gdbarch_init): Do not set frame_args_address, or
7101 frame_locals_address.
7102 * arm-tdep.c (arm_frame_args_address): Delete.
7103 (arm_frame_locals_address): Delete.
7104 (arm_gdbarch_init): Do not set frame_args_address, or
7105 frame_locals_address.
7106
983a287a
AC
71072003-06-09 Andrew Cagney <cagney@redhat.com>
7108
7109 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7110 * gdbarch.h, gdbarch.c: Re-generate.
7111 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7112 * arch-utils.c (frame_num_args_unknown): Delete function.
7113 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7114 (frame_info): Use FRAME_NUM_ARGS_P.
7115 * arm-tdep.c (arm_frame_num_args): Delete function.
7116 (arm_gdbarch_init): Do not set frame_num_args.
7117 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7118 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7119 (hppa_gdbarch_init): Do not set frame_num_args.
7120 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7122 frame_num_args to default frame_num_args_unknown.
7123 * v850-tdep.c (v850_gdbarch_init): Ditto.
7124 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7125 * sh-tdep.c (sh_gdbarch_init): Ditto.
7126 * s390-tdep.c (s390_gdbarch_init): Ditto.
7127 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7128 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7129 * mips-tdep.c (mips_gdbarch_init): Ditto.
7130 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7131 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7134 * i386-tdep.c (i386_gdbarch_init): Ditto.
7135 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7136 * frv-tdep.c (frv_gdbarch_init): Ditto.
7137 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7138 * cris-tdep.c (cris_gdbarch_init): Ditto.
7139 * avr-tdep.c (avr_gdbarch_init): Ditto.
7140 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7141
8d3b0994
AC
71422003-06-09 Andrew Cagney <cagney@redhat.com>
7143
7144 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7145 (print_frame_args): Moved to "stack.c".
7146 * stack.c: Include "gdb_assert.h".
7147 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7148 (print_frame_args): Moved from "printcmd.c".
7149 * frame.h (print_frame_args): Delete declaration.
7150 * Makefile.in (stack.o): Update dependencies.
7151
25e3a86b
AC
71522003-06-08 Andrew Cagney <cagney@redhat.com>
7153
7154 * frame.c (get_prev_frame): Remove reference to
7155 frame_args_address_correct in comments.
7156 * frame-base.c (default_frame_args_address): Delete code
7157 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7158 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7159 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7160 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7161 (vax_frame_args_address_correct): Delete declaration.
7162
a9e5fdc2
AC
71632003-06-08 Andrew Cagney <cagney@redhat.com>
7164
7165 * gdbarch.sh (UNWIND_SP): Add.
7166 * gdbarch.h, gdbarch.c: Re-generate.
7167 * frame.c (frame_sp_unwind): New function.
7168 (get_frame_sp): New function.
7169 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7170 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7171 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7172 value.
7173 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7174 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7175
8983bd83
AC
71762003-06-08 Andrew Cagney <cagney@redhat.com>
7177
7fec2c59
AC
7178 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7179 REMOTE_BREAKPOINT.
7180 * remote.c: Update.
7181 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7182 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7183 * config/m68k/tm-sun3.h: Update.
7184 * config/m68k/tm-m68klynx.h: Update.
7185 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7186
8983bd83
AC
7187 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7188 trad_frame". Update comments.
7189 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7190 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7191 (trad_frame_register_value, trad_frame_prev_register): Update.
7192
b9362cc7
AC
71932003-06-08 Andrew Cagney <cagney@redhat.com>
7194
7195 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7196 from GCC's acinclude.m4.
7197 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7198 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7199 * main.c (error_init): Delete declaration.
7200 * defs.h (error_init): Declare.
7201 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7202 (rs6000_convert_from_func_ptr_addr): Make static.
7203 (_initialize_rs6000_tdep): Add declaration.
7204 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7205 (show_commands, set_verbose, show_history): Delete declaration.
7206 * top.h (set_verbose): Add declaration.
7207 (show_history, set_history, show_commands): Add declaration.
7208 (do_restore_instream_cleanup): Add declaration.
7209 * objc-lang.c (specialcmp): Make static.
7210 (print_object_command): Make static.
7211 (find_objc_msgsend): Make static.
7212 (find_objc_msgcall_submethod_helper): Make static.
7213 (find_objc_msgcall_submethod): Make static.
7214 (_initialize_objc_language): Add declaration.
7215 (find_implementation_from_class): Make static.
7216 (find_implementation): Make static.
7217 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7218 * objc-lang.h (lookup_struct_typedef): Add declaration.
7219 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7220 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7221 (do_restore_user_call_depth): Make static.
7222 (do_restore_instream_cleanup): Delete declaration.
7223 (dont_repeat): Delete declaration.
7224 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7225 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7226 * reggroups.c (_initialize_reggroup): Add declaration.
7227 * cp-support.c (_initialize_cp_support): Add declaration.
7228 * cp-abi.c (_initialize_cp_abi): Add declaration.
7229 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7230 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7231 (_initialize_gnu_v3_abi): Add declaration.
7232 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7233 (_initialize_gnu_v2_abi): Add declaration.
7234 * frame-base.c (_initialize_frame_base): Add declaration.
7235 * doublest.c (floatformat_from_length): Make static.
7236 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7237 * frame.c (create_sentinel_frame): Make static.
7238 (_initialize_frame): Add declaration.
7239 * top.c (do_catch_errors): Make static.
7240 (gdb_rl_operate_and_get_next_completion): Make static.
7241 * typeprint.c: Include "typeprint.h".
7242 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7243 (sentinel_frame_this_id): Make static.
7244 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7245 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7246 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7247 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7248 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7249 * maint.c (maintenance_print_architecture): Make static.
7250 * signals/signals.c (_initialize_signals): Add declaration.
7251 * std-regs.c (_initialize_frame_reg): Add declaration.
7252 * jv-exp.y (push_variable): ISO C definition.
7253 (push_qualified_expression_name): Ditto.
7254 * memattr.c (_initialize_mem): Add declaration.
7255 * remote.c (remote_check_watch_resources): Make static.
7256 (remote_stopped_by_watchpoint): Make static.
7257 (remote_stopped_data_address): Make static.
7258 * d10v-tdep.c (nr_dmap_regs): Make static.
7259 (a0_regnum): Make static.
7260 (d10v_frame_unwind_cache): Make static.
7261 (d10v_frame_p): Make static.
7262 * osabi.c (show_osabi): Make static.
7263 (_initialize_gdb_osabi): Add extern declaration.
7264 * gdbtypes.c (make_qualified_type): Make static.
7265 (safe_parse_type): Make static.
7266 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7267 * macrotab.c (macro_bcache_free): Make static.
7268 * interps.c (interp_set_quiet): Make static.
7269 (interpreter_exec_cmd): Make static.
7270 * stack.h (select_frame_command): New file.
7271 * stack.c: Include "stack.h".
7272 (select_frame_command_wrapper): Delete function.
7273 (select_frame_command): Make global.
7274 * infcall.c: Include "infcall.h".
7275 * linespec.c: Include "linespec.h".
7276 * symfile.c (sections_overlap): Make static.
7277 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7278 * charset.c (_initialize_charset): Add missing prototype.
7279 * regcache.c (init_legacy_regcache_descr): Make static.
7280 (do_regcache_xfree): Make static.
7281 (regcache_xfer_part): Make static.
7282 (_initialize_regcache): Add missing prototype.
7283 * breakpoint.c (parse_breakpoint_sals): Make static.
7284 (breakpoint_sals_to_pc): Make static.
7285 * interps.h (clear_interpreter_hooks): ISO C declaration.
7286 * Makefile.in (stack_h): Define.
7287 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7288 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7289
a0f267c7
AC
72902003-06-08 Andrew Cagney <cagney@redhat.com>
7291
7292 * Makefile.in (d10v-tdep.o): Update dependencies.
7293 (SFILES): Add trad-frame.c.
7294 (trad_frame_h): Define.
7295 (COMMON_OBS): Add trad-frame.o.
7296 (trad-frame.o): Specify dependencies.
7297 * d10v-tdep.c: Include "trad-frame.h".
7298 (saved_regs_unwinder): Delete function.
7299 (d10v_frame_prev_register): Use trad_frame_prev_register.
7300 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7301 trad_frame", delete "regs" and "prev_sp".
7302 (prologue_find_regs): Use trad-frame.
7303 * trad-frame.h, trad-frame.c: New files.
7304
4538b4f4
MK
73052003-06-08 Mark Kettenis <kettenis@gnu.org>
7306
7307 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7308
a0273b2f
AF
73092003-06-07 Adam Fedor <fedor@gnu.org>
7310
7311 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7312 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7313 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7314 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7315 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7316 Use it.
7317
3a6c3343
AC
73182003-06-07 Andrew Cagney <cagney@redhat.com>
7319
7320 * symfile.h: Re-indent, clean up comments.
7321
b46e02f6
AC
73222003-06-07 Andrew Cagney <cagney@redhat.com>
7323
7324 * inferior.h (deprecated_write_sp): Replace
7325 generic_target_write_sp.
7326 * regcache.c (deprecated_write_sp): Replace
7327 generic_target_write_sp.
7328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7329 * vax-tdep.c (vax_gdbarch_init): Update.
7330 * v850-tdep.c (v850_gdbarch_init): Update.
7331 * sparc-tdep.c (sparc_gdbarch_init): Update.
7332 * sh-tdep.c (sh_gdbarch_init): Update.
7333 * s390-tdep.c (s390_gdbarch_init): Update.
7334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7335 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7336 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7337 * mcore-tdep.c (mcore_gdbarch_init): Update.
7338 * m68k-tdep.c (m68k_gdbarch_init): Update.
7339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7340 * ia64-tdep.c (ia64_gdbarch_init): Update.
7341 * h8300-tdep.c (h8300_gdbarch_init): Update.
7342 * frv-tdep.c (frv_gdbarch_init): Update.
7343 * cris-tdep.c (cris_gdbarch_init): Update.
7344 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7345
a42e117c
AC
73462003-06-07 Andrew Cagney <cagney@redhat.com>
7347
7348 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7349 Assert that PC_REGNUM is valid.
7350 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7351
bd1ce8ba
AC
73522003-06-07 Andrew Cagney <cagney@redhat.com>
7353
7354 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7355 * gdbarch.h, gdbarch.c: Regenerate.
7356 * mn10300-tdep.c: Include "gdb_assert.h".
7357 (mn10300_read_fp): New function.
7358 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7359 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7360 * ia64-tdep.c: Include "gdb_assert.h".
7361 (ia64_read_fp): New function.
7362 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7363 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7364 * regcache.c (generic_target_read_sp): Delete function.
7365 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7366 * inferior.h (generic_target_read_sp): Delete declaration.
7367 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7368 generic_target_read_sp.
7369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7370 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7371 * sh-tdep.c (sh_gdbarch_init): Ditto.
7372 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7373 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7374
ec5cbaec
AC
73752003-06-07 Andrew Cagney <cagney@redhat.com>
7376
7377 * gdbarch.sh: Comment each field of startup_gdbarch.
7378 * gdbarch.h, gdbarch.c: Re-generate.
7379
cde9ea48
AC
73802003-06-07 Andrew Cagney <cagney@redhat.com>
7381
7382 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7383 * gdbarch.h, gdbarch.c: Re-generate.
7384 * regcache.c: Update comments on read_pc et.al.
7385 (generic_target_read_pc): Delete function.
7386 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7387 * inferior.h (generic_target_read_pc): Delete declaration.
7388 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7389 generic_target_read_pc.
7390 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7391 * sh-tdep.c (sh_gdbarch_init): Ditto.
7392 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7394
9a90a780
AC
73952003-06-07 Andrew Cagney <cagney@redhat.com>
7396
7397 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7398 "index" with "special_local_sect". Use strcmp instead of STREQ.
7399 Append period to coments.
7400
a39a16c4
MM
74012003-06-06 Mark Mitchell <mark@codesourcery.com>
7402
7403 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7404 (elfstab_offset_sections): Likewise.
7405 * gdb-stabs.h (stab_section_info): Likewise.
7406 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7407 * objfiles.c (objfile_relocate): Likewise.
7408 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7409 * remote.c (get_offsets): Likewise.
7410 (remote_cisco_objfile_relocate): Likewise.
7411 * somread.c (som_symfile_offsets): Likewise.
7412 * symfile.c (alloc_section_addr_info): New function.
7413 (build_section_addr_info_from_section_tab): Use it.
7414 (free_section_addr_info): Adjust.
7415 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7416 (syms_from_objfile): Allocate local_addr dynamically.
7417 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7418 dynamically.
7419 (add_symbol_file_command): Allocate sect_opts dynamically.
7420 (reread_symbols): Avoid use of SECT_OFF_MAX.
7421 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7422 (alloc_section_addr_info): Declare it.
7423 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7424 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7425 dynamically.
7426 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7427
20c6c2f8
AC
74282003-06-06 Andrew Cagney <cagney@redhat.com>
7429
7430 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7431 (d10v_frame_unwind_cache): Do not set "return_pc".
7432
884a26c8
MS
74332003-06-06 Michael Snyder <msnyder@redhat.com>
7434
7435 * h8300-tdep.c: Make tidy (long lines).
7436
088ce440
ML
74372003-06-06 Michal Ludvig <mludvig@suse.cz>
7438
8ffd9b1b 7439 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7440 to regcache_collect().
7441
7d773d96
JB
74422003-06-05 J. Brobecker <brobecker@gnat.com>
7443
7444 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7445 pc_in_sigtramp multiarch method.
7446 (hppa_hpux_som_init_abi): Use it.
7447 (hppa_hpux_elf_init_abi): Likewise.
7448 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7449 macro has been multiarched.
7450 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7451 macro here, as hppa64 isn't multiarched yet.
7452
1df6926e
AC
74532003-06-05 Andrew Cagney <cagney@redhat.com>
7454
7455 * Makefile.in (value_h): Add $(frame_h).
7456 * value.h: Include "frame.h".
7457 (struct value): Replace "frame_addr" with "frame_id".
7458 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7459 * values.c (allocate_value): Use VALUE_FRAME_ID.
7460 (value_copy): Use VALUE_FRAME_ID.
7461 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7462 * valops.c (value_assign): Update. Use frame_find_by_id.
7463
6b53acc6
ML
74642003-06-05 Michal Ludvig <mludvig@suse.cz>
7465
7466 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7467 in each pass.
7468
4d9850d3
JJ
74692003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7470
7471 * thread-db.c (check_event): For create/death event breakpoints,
7472 loop through all messages to ensure that we read the message
7473 corresponding to the breakpoint we are at.
7474
8efca6ba
MS
74752003-06-04 Michael Snyder <msnyder@redhat.com>
7476
7477 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7478
0912c7f2
MK
74792003-06-04 Mark Kettenis <kettenis@gnu.org>
7480
7481 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7482 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7483 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7484 when handling .eh_frame sections.
7485
4e370325
JB
74862003-06-04 J. Brobecker <brobecker@gnat.com>
7487
7488 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7489 prepare_to_proceed procedure instead of the hppa-specific one.
7490 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7491
b757528f 74922003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7493
b757528f
JJ
7494 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7495 * config.in: Regenerated.
7496 * configure.in: Add test for syscall function and check for
7497 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7498 * configure: Regenerated.
7499 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7500 <sys/syscall.h>.
7501 (kill_lwp): New function that uses tkill syscall or
7502 uses kill, depending on whether threading model is nptl or not.
7503 All callers of kill() changed to use kill_lwp().
7504 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7505 see if all threads have already exited in the nptl model.
7506 (stop_and_resume_callback): New callback function used by the
7507 lin_lwp_wait thread exit handling code.
7508 (stop_wait_callback): Check for threads already having exited and
7509 delete such threads fromt the lwp list when discovered.
7510 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7511
b757528f
JJ
7512 Roland McGrath <roland@redhat.com>
7513 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7514 nptl libthread_db.
7515
087779b1
RH
75162003-06-03 Richard Henderson <rth@redhat.com>
7517
b21fd293
RH
7518 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7519 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7520 (alpha_sigtramp_frame_prev_register): Likewise.
7521 (alpha_heuristic_frame_prev_register): Likewise.
7522 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7523
8ffd9b1b 7524 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7525 alpha-specific register id names.
7526 (alpha_mdebug_frame_unwind_cache): Likewise.
7527 (alpha_mdebug_frame_prev_register): Likewise.
7528
baa490c4
RH
75292003-06-03 Richard Henderson <rth@redhat.com>
7530
7531 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7532 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7533 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7534 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7535 unwind routines.
7536 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7537 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7538 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7539
7540 * alpha-linux-tdep.c: Remove unnecessary includes.
7541 * Makefile.in (alpha-linux-tdep.o): Update.
7542
75432003-06-03 Richard Henderson <rth@redhat.com>
7544
7545 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7546 (alphabsd_fill_fpreg): Likewise.
7547
f534e522
JB
75482003-06-03 J. Brobecker <brobecker@gnat.com>
7549
7550 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7551 references to struct frame_info fields by calls to the equivalent
7552 accessors. Necessary now that frame_info is opaque.
7553
4035536b
JB
75542003-06-03 J. Brobecker <brobecker@gnat.com>
7555
7556 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7557 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7558 structure, field no longer exists.
7559
0bd79c5c
JB
75602003-06-03 J. Brobecker <brobecker@gnat.com>
7561
7562 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7563 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7564
37bb6d9f
JB
75652003-06-03 J. Brobecker <brobecker@gnat.com>
7566
7567 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7568 references to struct frame_info fields by calls to the equivalent
7569 accessors. Necessary now that frame_info is opaque.
7570
852ee05c
JB
75712003-06-03 J. Brobecker <brobecker@gnat.com>
7572
7573 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7574 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7575 structure, field no longer exists.
7576
7d58c67d
TR
75772003-06-03 Theodore A. Roth <troth@openavr.org>
7578
8ffd9b1b 7579 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7580 accumulation of the size of all registers instead of blindly using
7581 DEPRECATED_REGISTER_BYTES.
7582
0a48e7e8
MS
75832003-06-03 Michael Snyder <msnyder@redhat.com>
7584
7585 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7586 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7587 for h8300sx.
7588
9798ab0d
JB
75892003-06-03 J. Brobecker <brobecker@gnat.com>
7590
7591 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7592 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7593
00b037e2
AC
75942003-06-03 Andrew Cagney <cagney@redhat.com>
7595
7596 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7597 (sparc_convert_to_raw): Delete function.
7598 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7599 register_convert_to_virtual.
7600
043b2f77
JJ
76012003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7602
7603 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7604 layer if not dealing with a statically-linked threaded program.
7605
f43caff8
KW
76062003-06-03 Kris Warkentin <kewarken@qnx.com>
7607
7608 * solib.c (solib_open): Update comment to reflect actual search order.
7609
ae1e7417
AC
76102003-06-03 Andrew Cagney <cagney@redhat.com>
7611
7612 * frame.c (get_frame_memory_signed): New function.
7613 (get_frame_memory, get_frame_memory_unsigned): New function.
7614 (get_frame_arch): New function.
7615 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7616 (get_frame_memory, get_frame_unsigned_memory): Declare.
7617 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7618 get_frame_memory_unsigned and get_frame_arch.
7619 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7620
cb123844
RG
76212003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7622
7623 * MAINTAINERS (write after approval): Add myself.
7624
1bb792e9
JB
76252003-06-03 Jim Blandy <jimb@redhat.com>
7626
7627 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7628 elements of gregset_t are 64 bits each, but access registers
7629 are still 32 bits, so they're packed two per gregset_t
7630 element. Unpack/pack them properly.
7631
aee8d8ba
DC
76322003-06-02 David Carlton <carlton@bactrian.org>
7633
7634 * linespec.c (find_methods): Break out code into
7635 add_matching_methods and add_constructors.
7636 (add_matching_methods): New.
7637 (add_constructors): Ditto.
7638
bf7488d2
AC
76392003-06-02 Andrew Cagney <cagney@redhat.com>
7640
bf7488d2
AC
7641 * sparc-tdep.c (sparc_print_registers): Delete call to
7642 REGISTER_CONVERTIBLE.
7643 (sparc_gdbarch_init): Do not set register_convertible.
7644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7645 * frv-tdep.c (frv_gdbarch_init): Ditto.
7646 * cris-tdep.c (cris_gdbarch_init): Ditto.
7647
adedef68
EZ
76482003-06-02 Elena Zannoni <ezannoni@redhat.com>
7649
8ffd9b1b 7650 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7651 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7652 (syms_from_objfile): Ditto.
7653
650fcc91
AS
76542003-06-03 Andreas Schwab <schwab@suse.de>
7655
7656 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7657 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7658
df4a182b
RH
76592003-06-02 Richard Henderson <rth@redhat.com>
7660
7661 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7662 a member of all_reggroup.
7663
c483c494
RH
76642003-06-02 Richard Henderson <rth@redhat.com>
7665
7666 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7667 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7668 (alpha_lds, alpha_sts): New.
7669 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7670 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7671 restructure and fail for type sizes other than 4 or 8.
7672 (alpha_value_to_register): Similarly.
7673 (alpha_extract_return_value): Use alpha_sts.
7674 (alpha_store_return_value): Use alpha_lds.
7675 (alpha_gdbarch_init): Update hooks.
7676
b38b6be2
RH
76772003-06-02 Richard Henderson <rth@redhat.com>
7678
7679 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7680 regnum identifiers.
7681 (alpha_sigtramp_register_address): Likewise.
7682
98a8e1e5
RH
76832003-06-02 Richard Henderson <rth@redhat.com>
7684
7685 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7686 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7687 * alpha-tdep.h: Declare them.
7688
7689 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7690 Remove zerobuf. Don't error on UNIQUE.
7691 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7692 (ALPHA_REGSET_UNIQUE): Provide default.
7693 (supply_gregset): Use alpha_supply_int_regs.
7694 (fill_gregset): Use alpha_fill_int_regs.
7695 (supply_fpregset): Use alpha_supply_fp_regs.
7696 (fill_fpregset): Use alpha_fill_fp_regs.
7697 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7698 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7699 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7700 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7701 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7702 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7703
67dfac52
RH
77042003-06-02 Richard Henderson <rth@redhat.com>
7705
f75d70cc
RH
7706 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7707
67dfac52
RH
7708 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7709 (alpha_store_return_value): Likewise.
7710
0cf566ec
DC
77112003-06-02 David Carlton <carlton@math.stanford.edu>
7712
7713 * block.c (contained_in): Add 'const' to arguments.
7714 (block_function): Ditto.
7715 * block.h: Update declarations for block_function and
7716 contained_in.
7717
cdef89d0
DC
77182003-06-02 David Carlton <carlton@math.stanford.edu>
7719
7720 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7721 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7722 * p-valprint.c (pascal_val_print): Ditto.
7723 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7724
72667056
RH
77252003-06-02 Richard Henderson <rth@redhat.com>
7726
98a8e1e5
RH
7727 * alpha-tdep.c (alpha_push_dummy_call): Use
7728 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7729
8ffd9b1b 7730 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7731 sign-extension of 32-bit values.
7732 (alpha_store_return_value): Similarly.
0ede8eca 7733
98a8e1e5
RH
7734 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7735 (alpha_extract_return_value): Likewise.
7736 (alpha_store_return_value): Likewise.
7b5e1cb3 7737
98a8e1e5
RH
7738 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7739 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7740
98a8e1e5
RH
7741 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7742 (alpha_extract_struct_value_address): Likewise.
7743 (alpha_store_return_value): Likewise.
7744 (alpha_store_struct_return): Remove.
7745 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7746
98a8e1e5
RH
7747 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7748 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7749 macros where appropriate.
7750 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7751 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7752
98a8e1e5
RH
7753 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7754 for SP, GP; void_func_ptr for PC; non-language-specific types
7755 for all others.
7756 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7757
6dd77b81
RH
77582003-06-02 Richard Henderson <rth@redhat.com>
7759
7760 * top.h (lim_at_start): Declare.
7761 * main.c (captured_main): Set it.
7762 * top.c (lim_at_start): Define.
7763 (command_loop): Use it instead of &environ.
7764 * event-top.c (command_handler): Likewise.
7765
f4dbdb54
JT
77662003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7767
7768 * mipsnbsd-tdep.c: Update copyright years.
7769 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7770
8f285956
RH
77712003-06-01 Richard Henderson <rth@redhat.com>
7772
98a8e1e5
RH
7773 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7774 (alpha-linux-tdep.o): Update dependencies.
7775 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7776 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7777
615967cb
RH
77782003-06-01 Richard Henderson <rth@redhat.com>
7779
98a8e1e5
RH
7780 * alpha-tdep.c (alpha_register_reggroup_p): New.
7781 (alpha_gdbarch_init): Register it.
615967cb 7782
b59661bd
AC
77832003-06-02 Andrew Cagney <cagney@redhat.com>
7784
7785 * dwarfread.c: Eliminate "register"
7786 (decode_die_type): Eliminate assignment within "if".
7787 (struct_type, decode_array_element_type): Ditto.
7788 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7789 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7790 (decode_modified_type, completedieinfo): Ditto.
7791 * block.c: Eliminate "register".
7792 (blockvector_for_pc_sect): Eliminate assignment within "if".
7793 * cp-support.h (struct symbol): Opaque declaration.
7794 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7795
5ef165c2
RH
77962003-06-01 Richard Henderson <rth@redhat.com>
7797
98a8e1e5
RH
7798 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7799 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7800
143985b7
AF
78012003-06-01 Adam Fedor <fedor@gnu.org>
7802
7803 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7804 * gdbarch.[ch]: Regenerate.
7805 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7806 (hppa_gdbarch_init): Set it in the gdbarch vector.
7807 * i386-tdep.c (i386_fetch_pointer_argument): New
7808 (i386_gdbarch_init): Set it into gdbarch.
7809 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7810 (rs6000_gdbarch_init): Set it in gdbarch.
7811 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7812 (sparc_gdbarch_init): Set it in gdbarch.
7813
ae0167b9
AC
78142003-06-01 Andrew Cagney <cagney@redhat.com>
7815
7c0b4a20
AC
7816 * defs.h (extract_address): Delete declaration.
7817 * findvar.c (extract_address): Delete function.
7818 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7819 extract_address with the inline equivalent,
7820 extract_unsigned_integer.
7821 (xstormy16_extract_struct_value_address): Ditto.
7822 (xstormy16_pointer_to_address): Ditto.
7823 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7824 * v850-tdep.c (v850_push_arguments): Ditto.
7825 (v850_extract_return_value): Ditto.
7826 (v850_extract_struct_value_address): Ditto.
7827 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7828 (sparcnbsd_get_longjmp_target_64): Ditto.
7829 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7830 (get_longjmp_target): Ditto.
7831 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7832 (sh64_extract_struct_value_address): Ditto.
7833 (sh_push_arguments): Ditto.
7834 (sh64_push_arguments): Ditto.
7835 * remote-vxsparc.c (vx_read_register): Ditto.
7836 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7837 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7838 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7839 * mipsv4-nat.c (get_longjmp_target): Ditto.
7840 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7841 * mips-nat.c (get_longjmp_target): Ditto.
7842 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7843 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7844 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7845 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7846 * irix5-nat.c (get_longjmp_target): Ditto.
7847 * irix4-nat.c (get_longjmp_target): Ditto.
7848 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7849 (ia64_push_arguments): Ditto.
7850 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7851 * h8300-tdep.c (h8300_push_arguments): Ditto.
7852 (h8300_store_return_value): Ditto.
7853 (h8300_extract_struct_value_address): Ditto.
7854 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7855 (frv_push_arguments): Ditto.
7856 * avr-tdep.c (avr_pointer_to_address): Ditto.
7857 (avr_push_arguments): Ditto.
7858 * arm-tdep.c (arm_push_dummy_call): Ditto.
7859 (arm_get_longjmp_target): Ditto.
7860 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7861 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7862 (alpha_get_longjmp_target): Ditto.
7863
ae0167b9
AC
7864 * solib-irix.c (extract_mips_address): Inline extract_address,
7865 replacing it with extract_signed_integer.
7866 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7867 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7868 (first_link_map_member, open_symbol_file_object): Ditto.
7869 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7870 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7871 (LM_NEXT, LM_NAME): Ditto.
7872
44d88583
RH
78732003-06-01 Richard Henderson <rth@redhat.com>
7874
98a8e1e5
RH
7875 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7876 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7877 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7878 (alpha_cannot_store_register): Likewise.
7879 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7880 * alpha-nat.c (supply_gregset): Likewise.
7881 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7882
310e9b6a
AC
78832003-06-01 Andrew Cagney <cagney@redhat.com>
7884
7885 * infcall.c (call_function_by_hand): Update comment on
7886 DEPRECATED_DUMMY_WRITE_SP.
7887
7888 * mips-tdep.c (mips_gdbarch_init): Do not set
7889 deprecated_dummy_write_sp.
7890 (mips_eabi_push_dummy_call): Set the SP register.
7891 (mips_o64_push_dummy_call): Set the SP register.
7892 (mips_o32_push_dummy_call): Set the SP register.
7893 (mips_n32n64_push_dummy_call): Set the SP register.
7894
5ab84872
RH
78952003-06-01 Richard Henderson <rth@redhat.com>
7896
98a8e1e5
RH
7897 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7898 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7899 (supply_gregset): Likewise.
7900 * alpha-tdep.c (alpha_store_return_value): Likewise.
7901 (alpha_get_longjmp_target): Likewise.
7902 (alpha_register_name): Constify array.
7903 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7904 deprecated_register_size, deprecated_register_bytes,
7905 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7906 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7907 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7908
09cc52fd
RH
79092003-06-01 Richard Henderson <rth@redhat.com>
7910
7911 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7912 from arg_reg_buffer to regcache to avoid double conversion.
7913
c7f16359
MK
79142003-06-01 Mark Kettenis <kettenis@gnu.org>
7915
7916 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7917 SP_REGNUM.
7918 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7919 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7920
7131cb6e
RH
79212003-06-01 Richard Henderson <rth@redhat.com>
7922
98a8e1e5
RH
7923 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7924 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7925
f3e0f90b
RH
79262003-06-01 Richard Henderson <rth@redhat.com>
7927
98a8e1e5
RH
7928 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7929 not overlapping PC_REGNUM.
f3e0f90b 7930
c88e30c0
RH
79312003-06-01 Richard Henderson <rth@redhat.com>
7932
98a8e1e5
RH
7933 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7934 alpha_push_arguments. Don't dump argument register data to
7935 the target stack. Fix float and 128-bit long double semantics.
7936 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7937 (alpha_fix_call_dummy): Remove.
7938 (alpha_call_dummy_words): Remove.
7939 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7940
f1a559ae
RH
79412003-06-01 Richard Henderson <rth@redhat.com>
7942
7943 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7944
5e045346
AC
79452003-06-01 Andrew Cagney <cagney@redhat.com>
7946
95404a3e
AC
7947 * mips-tdep.c (is_mips16_addr): New function.
7948 (make_mips16_addr, unmake_mips16_addr): New functions.
7949 (pc_is_mips16, mips_fetch_instruction): Use.
7950 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7951 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7952 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7953 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7954 TARGET_MIPS.
7955 * config/mips/tm-mips.h: Update copyright.
7956 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7957 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7958 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7959 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7960 (TM_PRINT_INSN_MACH): Delete.
7961 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7962
5e045346
AC
7963 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7964 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7965 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7966 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7967 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7968 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7969 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7970 mips*-*-riscos* and mips*-*-sysv* onto mips.
7971 * config/mips/mips64.mt: New file.
7972 * config/mips/mips.mt: New file.
7973 * config/mips/littlemips.mt: Delete file.
7974 * config/mips/decstation.mt: Delete file.
7975 * config/mips/vr4300el.mt: Delete file.
7976 * config/mips/vr5000el.mt: Delete file.
7977 * config/mips/vr5000.mt: Delete file.
7978 * config/mips/vr4100.mt: Delete file.
7979 * config/mips/vr4xxxel.mt: Delete file.
7980 * config/mips/vr4300.mt: Delete file.
7981 * config/mips/vr4xxx.mt: Delete file.
7982 * config/mips/bigmips.mt: Delete file.
7983 * config/mips/bigmips64.mt: Delete file.
7984 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7985 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7986 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7987 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7988 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7989 "tm-bigmips.h".
7990 * config/mips/tm-irix3.h: Ditto.
7991 * config/mips/tm-mipsv4.h: Ditto.
7992 * config/mips/tm-embed.h: Ditto.
7993 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7994 "tm-bigmips64.h".
7995 * config/mips/tm-vr5000el.h: Delete file.
7996 * config/mips/tm-tx39l.h: Delete file.
7997 * config/mips/tm-vr4300el.h: Delete file.
7998 * config/mips/tm-vr4xxxel.h: Delete file.
7999 * config/mips/tm-vr4300.h: Delete file.
8000 * config/mips/tm-vr4100.h: Delete file.
8001 * config/mips/tm-vr4xxx.h: Delete file.
8002 * config/mips/tm-vr5000.h: Delete file.
8003 * config/mips/tm-embedl64.h: Delete file.
8004 * config/mips/tm-embedl.h: Delete file.
8005 * config/mips/tm-embed64.h: Delete file.
8006 * config/mips/tm-bigmips64.h: Delete file.
8007 * config/mips/tm-bigmips.h: Delete file.
8008
2473a4a9
MK
80092003-06-01 Mark Kettenis <kettenis@gnu.org>
8010
97a5b208
MK
8011 Fix gdb/1216.
8012 * shnbsd-nat.c: Include "sh-tdep.h".
8013
2473a4a9
MK
8014 From Richard Henderson <rth@redhat.com>:
8015 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8016
e0f7ec59
AC
80172003-05-31 Andrew Cagney <cagney@redhat.com>
8018
8019 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8020 forward declaration.
8021 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8022 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8023 (mips_find_saved_regs): Use set_reg_offset.
8024 (mips_frame_init_saved_regs): Delete function.
8025 (mips_pop_frame): Call mips_find_saved_regs instead of
8026 DEPRECATED_FRAME_INIT_SAVED_REGS.
8027
68dcc709
AC
80282003-05-31 Andrew Cagney <cagney@redhat.com>
8029
8030 * mips-tdep.c (mips_gdbarch_init): Do not set
8031 deprecated_max_register_raw_size, register_virtual_size, and
8032 deprecated_max_register_virtual_size.
8033
cfc14b3a
MK
80342003-05-31 Mark Kettenis <kettenis@gnu.org>
8035
6405b0a6
MK
8036 * i386-tdep.c: Include "dwarf2-frame.h".
8037 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8038 * Makefile.in (i386-tdep.o): Update dependencies.
8039
cfc14b3a
MK
8040 * dwarf2-frame.c, dwarf2-frame.h: New files.
8041 * Makefile.in (SFILES): Add dwarf2-frame.c.
8042 (dwarf2_frame_h): Define.
8043 (COMMON_OBS): Add dwarf2-frame.o.
8044 (dwarf2-frame.o): Add dependencies.
8045
6a2751d2
AJ
80462003-05-31 Andreas Jaeger <aj@suse.de>
8047
8048 * x86-64-linux-nat.c: Fix comment.
8049
1c3545ae
MK
80502003-05-31 Mark Kettenis <kettenis@gnu.org>
8051
10f93086
MK
8052 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8053 function signature.
8054
1c3545ae
MK
8055 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8056 have a sigcontext_addr handler.
8057 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8058 sigcontext_addr handler.
8059
e11c53d2
AC
80602003-05-31 Andrew Cagney <cagney@redhat.com>
8061
8062 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8063 (print_fp_register_row): Replace do_fp_register_row.
8064 (mips_print_fp_register): Add "file" and "frame" parameters.
8065 (mips_print_register): Add "file" and "frame" parameters.
8066 (mips_print_registers_info): Replace mips_do_registers_info.
8067 (mips_gdbarch_init): Set print_registers_info instead of
8068 deprecated_do_registers_info.
8069 (mips_read_fp_register_single): Add "frame" parameter.
8070 (mips_read_fp_register_double): Add "frame" parameter.
8071
a3386186
MK
80722003-05-31 Mark Kettenis <kettenis@gnu.org>
8073
70913449
MK
8074 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8075 Fixes a bug where GDB would print the wrong register names for
8076 targets without SSE.
8077
2b5e0749
MK
8078 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8079 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8080 registers.
8081
8082 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8083 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8084 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8085 TDEP->sc_sp_offset.
8086
a3386186
MK
8087 From Michal Ludvig <mludvig@suse.cz>:
8088 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8089 and `sc_num_regs'.
8090 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8091 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8092 I386_ST0_REGNUM): Move here from...
8093 * i386-tdep.c: ... here.
8094 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8095 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8096 registers if possible.
8097 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8098 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8099 Remove variables.
8100 (i386bsd_sc_reg_offset): New variable.
8101 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8102 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8103 TDEP->sc_sp_offset.
8104 (i386fbsd_sc_reg_offset): New variable.
8105 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8106 TDEP->sc_num_regs.
8107 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8108 variables.
8109 (i386fbsd4_sc_reg_offset): New variable.
8110 (i3864bsd4_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 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8114 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8115 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8116 Remove variables.
8117 (i386nbsd_sc_reg_offset): New variable.
8118 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8119 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8120 TDEP->sc_sp_offset.
8121 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8122 Remove variables.
8123 (i386obsd_sc_reg_offset): New variable.
8124 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8125 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8126 TDEP->sc_sp_offset.
8127 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8128 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8129 for frame pointer offset in `struct sigcontext'.
8130
25ab4790
AC
81312003-05-31 Andrew Cagney <cagney@redhat.com>
8132
8133 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8134 architecture methods call_dummy_words, sizeof_call_dummy_words,
8135 push_return_address, store_struct_return, and fix_call_dummy. Set
8136 push_dummy_call instead of deprecated_push_arguments.
8137 (mips_store_struct_return): Delete function.
8138 (mips_fix_call_dummy): Delete function.
8139 (mips_push_return_address): Delete function.
8140 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8141 RA_REGNUM and T9_REGNUM.
8142 (mips_n32n64_push_dummy_call): Ditto for
8143 mips_n32n64_push_arguments.
8144 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8145 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8146
6a65450a
AC
81472003-05-31 Andrew Cagney <cagney@redhat.com>
8148
8149 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8150 "dummy_addr" to "bp_addr".
8151 * infcall.c (call_function_by_hand): Pass "funaddr" to
8152 gdbarch_push_dummy_call.
8153 * gdbarch.h, gdbarch.c: Re-generate.
8154 * i386-tdep.c (i386_push_dummy_call): Update.
8155 * arm-tdep.c (arm_push_dummy_call): Update.
8156 * d10v-tdep.c (d10v_push_dummy_call): Update.
8157
c4f35dd8
MK
81582003-05-31 Mark Kettenis <kettenis@gnu.org>
8159
8160 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8161 variable declarations.
8162 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8163 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8164 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8165 x86_64_init_frame_pc, x86_64_init_frame_pc,
8166 x86_64_function_has_prologue): Remove prototypes.
8167 (X86_64_NUM_GREGS): New define.
8168 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8169 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8170 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8171 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8172 XMM1_REGNUM): Remove defines.
8173 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8174 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8175 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8176 X86_64_XMM1_REGNUM): New defines.
8177 (struct x86_64_register_info): Renamed from `struct
8178 register_info'. Remove `size' member.
8179 (x86_64_register_info_table): Remove variable.
8180 (x86_64_register_info): New variable.
8181 (X86_64_NUM_REGS): New define.
8182 (X86_64_NUM_GREGS): Remove define.
8183 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8184 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8185 Remove variables.
8186 (x86_54_dwarf2_reg_to_regnum): Remove function.
8187 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8188 (x86_64_dwarf_reg_to_regnum): New function.
8189 (x86_64_register_name): Rewrite.
8190 (x86_64_register_raw_size): Remove function.
8191 (x86_64_register_byte_table): Remove variable.
8192 (x86_64_register_byte): Remove function.
8193 (x86_64_register_virtual_type): Remove function.
8194 (x86_64_register_type): New function.
8195 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8196 x86_64_register_convert_to_raw): Remove functions.
8197 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8198 (x86_64_use_struct_convention): Make static. Adjust for renamed
8199 defines.
8200 (x86_64_frame_init_saved_regs): Remove function.
8201 (x86_64_push_arguments): Make static. Change to accept a regcache
8202 as argument.
8203 (x86_64_store_return_value, x86_64_extract_return_value): Make
8204 static. Rewrite based on i386 counterparts.
8205 (x86_64_push_dummy_call): New function.
8206 (X86_64_NUM_SAVED_REGS): New define.
8207 (x86_64_register_number): Remove function.
8208 (x86_64_store_struct_return): Remove function.
8209 (x86_64_frameless_function_invocation,
8210 x86_64_function_has_prologue): Remove functions.
8211 (PROLOG_BUFSIZE): Remove define.
8212 (struct x86_64_frame_cache): New structure.
8213 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8214 x86_64_frame_cache, x86_64_frame_this_id,
8215 x86_64_frame_prev_register, x86_64_frame_p,
8216 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8217 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8218 functions.
8219 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8220 variables.
8221 (x86_64_skip_prologue): Rewrite in terms of
8222 x86_64_analyze_prologue.
8223 (x86_64_frame_base_address): New function.
8224 (x86_64_frame_base): New variable.
8225 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8226 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8227 set deprecated_fp_regnum, deprecated_register_size,
8228 deprecated_register_bytes, register_raw_size, register_byte,
8229 register_virtual_type, register_convertiable,
8230 register_convert_to_virtual, convert_to_raw,
8231 deprecated_get_saved_register, deprecated_target_read_fp,
8232 deprecated_push_arguments, deprecated_push_return_address,
8233 deprecated_pop_frame, deprecated_store_struct_return,
8234 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8235 frameless_function_invocation, deprecated_frame_saved_pc,
8236 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8237 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8238 deprecated_init_frame_pc and virtual_frame_pointer. Call
8239 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8240 and x86_64_frame_p. Call frame_base_set_default to register
8241 x86_64_frame_base.
8242 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8243 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8244 (_initialize_x86_64_tdep): Remove function.
8245 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8246 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8247 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8248 define.
8249 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8250 (x86_64_linux_sigcontext_addr): Rewrite.
8251 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8252 x86_64_linux_frame_saved_pc): Remove functions.
8253 (x86_64_linux_pc_in_sigtramp): Renamed from
8254 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8255 trampoline.
8256 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8257 Remove_functions.
8258 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8259 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8260 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8261 (x86_64_regmap): Rename to regmap.
8262 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8263 x86_64_num_gregs.
8264 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8265 x86_64_regmap.
8266 (x86_64_fxsave_offset): Remove function.
8267 (supply_fpregset): Simply call x86_64_supply_fxsave.
8268 (fill_fpregset): Simply call x86_64_fill_fxsave.
8269 (fetch_inferior_registers, store_inferior_registers): Avoid
8270 asignment in if-statement.
8271 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8272 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8273 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8274 (fetch_core_registers): Remove function.
8275 (linux_elf_core_fns): Remove.
8276 (offsetoff): Don't define.
8277 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8278 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8279 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8280 add core-regset.o.
8281 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8282 protection against multiple includes instead of NM_X86_64_h. Add
8283 various comments. Include "config/nm-linux.h". Don't include
8284 <signal.h>.
8285 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8286 GET_THREAD_SIGNALS): Remove defines.
8287 (x86_64_register_u_addr, kernel_u_size,
8288 lin_thread_get_thread_signals): Remove prototypes.
8289 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8290 [HAVE_LINK_H]: Don't include "solib.h".
8291 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8292 * config/i386/tm-x86-64linux.h: Fix comments.
8293 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8294 x86-64-tdep.o): Update dependencies.
8295
c25083af
AC
82962003-05-30 Andrew Cagney <cagney@redhat.com>
8297
c8f55a7b
AC
8298 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8299 Change parameter type to a "struct regcache *".
8300
c25083af
AC
8301 * gdbarch.sh: Regardless of the multi-arch level, always define
8302 the macro when not already defined.
8303 * gdbarch.h, gdbarch.c: Re-generate.
8304
fbe586ae
RH
83052003-05-30 Richard Henderson <rth@redhat.com>
8306
8307 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8308 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8309 (alpha_mdebug_frame_this_id): Likewise.
8310 (alpha_mdebug_frame_prev_register): Likewise.
8311 (alpha_mdebug_frame_base_address): Likewise.
8312 (alpha_mdebug_frame_locals_address): Likewise.
8313 (alpha_mdebug_frame_args_address): Likewise.
8314 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8315 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8316 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8317 loop increment.
8318 (alpha_heuristic_frame_this_id): Make static.
8319 (alpha_heuristic_frame_prev_register): Likewise.
8320 (alpha_heuristic_frame_base_address): Likewise.
8321 * alpha-tdep.h: Update.
8322
acd5c798
MK
83232003-05-30 Mark Kettenis <kettenis@gnu.org>
8324
8325 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8326 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8327 defenitions.
8328 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8329 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8330 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8331 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8332 I386_ST0_REGNUM): New defines.
8333 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8334 codestream_get): Remove define.
8335 (codestream_next_addr, condestream_addr, condestream_buf,
8336 codestream_off, codestream_cnt): Remove variables.
8337 (codestream_fill, codestream_seek, codestream_read): Remove
8338 functions.
8339 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8340 functionality.
8341 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8342 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8343 i386_frame_saved_pc, i386_saved_pc_after_call,
8344 i386_frame_num_args, i386_frame_init_saved_regs,
8345 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8346 i386_push_arguments): Remove functions.
8347 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8348 functionality. Use i386_analyze_prologue instead of
8349 i386_get_frame_setup.
8350 (I386_NUM_SAVED_REGS): New define.
8351 (struct i386_frame_cache): New structure.
8352 (i386_alloc_frame_cache, i386_analyze_struct_return,
8353 i386_skip_probe, i386_analyze_frame_setup,
8354 i386_analyze_register_saves, i386_analyze_prologue,
8355 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8356 i386_frame_prev_register, i386_sigtramp_frame_cache,
8357 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8358 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8359 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8360 New functions.
8361 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8362 New variables.
8363 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8364 I386_EAX_REGNUM and I386_EDX_REGNUM.
8365 (i386_extract_return_value, i386_store_return_value): Use
8366 I386_ST0_REGNUM where appropriate.
8367 (i386_extract_struct_value_address): Rewrite to use extract_address.
8368 (i386_svr4_pc_in_sigtramp): Add comment.
8369 (i386_svr4_sigcontext_addr): Rewrite.
8370 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8371 TDEP->sc_sp_offset.
8372 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8373 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8374 of new defines. Set push_dummy_call, don't set
8375 deprecated_push_arguments, deprecated_push_return_address,
8376 deprecated_pop_frame. Don't set parm_boundary. Don't set
8377 deprecated_frame_chain, deprecated_frame_saved_pc,
8378 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8379 save_dummy_frame_tos, unwind_pc. Call
8380 frame_unwind_append_predicate and frame_base_set_default. Don't
8381 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8382 Don't set frameless_function_invocation. Don't set
8383 deprecated_register_bytes, deprecated_register_size,
8384 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8385 * i386-linux-tdep.c: Fix formatting in some comments.
8386 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8387 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8388 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8389 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8390 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8391 redundant parentheses.
8392 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8393 (i386_linux_sigcontext_addr): Use it. Rewrite.
8394 (find_minsym_and_objfile): Change name of second argument.
8395 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8396 changed. Use frame_pc_unwind instead of
8397 DEPRECATED_SAVED_PC_AFTER_CALL.
8398 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8399 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8400 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8401 unwinder.
8402 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8403 "dummy-frame.h".
8404 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8405 (_initialize_i386_cygwin_tdep): New prototype.
8406 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8407 deprecated_frame_chain_valid.
8408 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8409 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8410 Rely on the SVR4 defaults.
8411 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8412 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8413
c89b70f1
AC
84142003-05-30 Andrew Cagney <cagney@redhat.com>
8415
8416 * infcall.c (call_function_by_hand): Always call
8417 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8418
85b32d22
RH
84192003-05-30 Richard Henderson <rth@redhat.com>
8420
c89b70f1
AC
8421 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8422 increment.
85b32d22 8423
bfe51b1e
JB
84242003-05-29 Jim Blandy <jimb@redhat.com>
8425
8426 Use gdbarch methods for solib stuff on PowerPC Linux.
8427 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8428 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8429 show through.
8430 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8431 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8432 giving the same effect as the #definitions above.
8433
1abf022c
AF
84342003-05-29 Adam Fedor <fedor@gnu.org>
8435
8436 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8437 (find_implementation_from_class): Replace it with the standard
8438 case i.e. do nothing.
8439
d2427a71
RH
84402003-05-29 Richard Henderson <rth@redhat.com>
8441
8442 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8443 (alpha_linux_sigtramp_offset): Use it. Make static.
8444 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8445 update for new frame model.
8446 * alpha-mdebug-tdep.c: New file.
8447 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8448 (alpha_osf1_init_abi): Install it.
8449 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8450 (linked_proc_desc_table): Remove.
8451 (alpha_frame_past_sigtramp_frame): Remove.
8452 (alpha_dynamic_sigtramp_offset): Remove.
8453 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8454 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8455 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8456 (push_sigtramp_desc): Remove.
8457 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8458 (alpha_cannot_store_register): Likewise.
8459 (alpha_sigcontext_addr): Remove.
8460 (alpha_find_saved_regs): Remove.
8461 (alpha_frame_init_saved_regs): Remove.
8462 (alpha_init_frame_pc_first): Remove.
8463 (read_next_frame_reg): Remove.
8464 (alpha_frame_saved_pc): Remove.
8465 (alpha_saved_pc_after_call): Remove.
8466 (temp_proc_desc, temp_saved_regs): Remove.
8467 (alpha_about_to_return): Remove.
8468 (cached_proc_desc): Remove.
8469 (alpha_frame_chain): Remove.
8470 (alpha_print_extra_frame_info): Remove.
8471 (alpha_init_extra_frame_info): Remove.
8472 (alpha_frame_locals_address): Remove.
8473 (alpha_frame_args_address): Remove.
8474 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8475 (alpha_push_dummy_frame): Remove.
8476 (alpha_pop_frame): Remove.
8477 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8478 (alpha_read_insn): New.
8479 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8480 for different insn encodings.
8481 (alpha_in_lenient_prologue): Remove.
8482 (struct alpha_sigtramp_unwind_cache): New.
8483 (alpha_sigtramp_frame_unwind_cache): New.
8484 (alpha_sigtramp_register_address): New.
8485 (alpha_sigtramp_frame_this_id): New.
8486 (alpha_sigtramp_frame_prev_register): New.
8487 (alpha_sigtramp_frame_unwind): New.
8488 (alpha_sigtramp_frame_p): New.
8489 (struct alpha_heuristic_unwind_cache): New.
8490 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8491 don't count nop insns that occur between functions.
8492 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8493 heuristic_proc_desc, but without the mdebug wrapping.
8494 (alpha_heuristic_frame_this_id): New.
8495 (alpha_heuristic_frame_prev_register): New.
8496 (alpha_heuristic_frame_unwind): New.
8497 (alpha_heuristic_frame_p): New.
8498 (alpha_heuristic_frame_base_address): New.
8499 (alpha_heuristic_frame_base): New.
8500 (alpha_unwind_dummy_id): New.
8501 (alpha_unwind_pc): New.
8502 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8503 frame related deprecated initializations; install replacements.
8504 (alpha_dump_tdep): Remove.
8505 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8506 (alpha_read_insn, alpha_after_prologue,
8507 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8508 alpha_heuristic_frame_prev_register,
8509 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8510 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8511 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8512 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8513
93ec1121
AC
85142003-05-29 Andrew Cagney <cagney@redhat.com>
8515
8516 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8517 dependant on the availability of ASSERT_FUNCTION.
8518 (ASSERT_FUNCTION): Do not define when there is no function name.
8519
98f08d3d
KB
85202003-05-29 Kevin Buettner <kevinb@redhat.com>
8521
8522 From Jimi X <jimix@watson.ibm.com>:
8523 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8524
0897f59b
JB
85252003-05-28 Jim Blandy <jimb@redhat.com>
8526
8527 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8528 argument to ptrace to int; the system headers should give it the
8529 right type, and pointers don't fit in ints on powerpc64-*-*.
8530
14898363
L
85312003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8532
8533 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8534 DW_TAG_catch_block.
8535
a7a48797
EZ
85362003-05-26 Elena Zannoni <ezannoni@redhat.com>
8537
8538 * stabsread.c (dbx_lookup_type): Make static.
8539 (read_type): Ditto.
8540 (add_undefined_type): Ditto.
8541 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8542 not export.
8543
f5479e9c
EZ
85442003-05-26 Elena Zannoni <ezannoni@redhat.com>
8545
8546 * hpread.c (hpread_has_name): Make static.
8547 (hpread_psymtab_to_symtab): Ditto.
8548 (file_exists): Ditto.
8549 (hpread_call_pxdb): Ditto.
8550 (hpread_pxdb_needed): Ditto.
8551 (hpread_quick_traverse): Ditto.
8552 (hpread_get_header): Ditto.
8553 (hpread_get_lntt): Ditto.
8554 (hpread_get_slt): Ditto.
8555 (class_of): Ditto.
8556
eb2e12d7
AS
85572003-05-25 Andreas Schwab <schwab@suse.de>
8558
78bf922a
AS
8559 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8560 stack_align and deprecated_extra_stack_alignment_needed.
8561 (m68k_stack_align): Delete.
8562
eb2e12d7
AS
8563 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8564 (m68k_register_virtual_size): Likewise.
8565 (altos_skip_prologue): Remove obsolete function.
8566 (isi_frame_num_args): Likewise.
8567 (news_frame_num_args): Likewise.
8568 (m68k_fix_call_dummy): Make static.
8569 (m68k_push_dummy_frame): Likewise.
8570 (m68k_pop_frame): Likewise.
8571 (m68k_skip_prologue): Likewise.
8572 (m68k_frame_init_saved_regs): Likewise.
8573 (m68k_saved_pc_after_call): Likewise.
8574 (m68k_get_longjmp_target): Make multi-arch.
8575 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8576 structure. Register m68k_get_longjmp_target if enabled.
8577 * m68k-tdep.h (struct gdbarch_tdep): Define.
8578 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8579
8580 * Makefile.in (config.status): Also depend on configure.tgt
8581 and configure.host.
8582 (m68klinux-tdep.o): Update dependencies.
8583 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8584 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8585 (M68K_LINUX_JB_PC): Define.
8586 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8587 and take additional parameter.
8588 (m68k_linux_sigtramp_saved_pc): Update.
8589 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8590 m68k_linux_pc_in_sigtramp, in_plt_section,
8591 find_solib_trampoline_target.
8592 * config/m68k/tm-linux.h: Don't include any tm headers.
8593 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8594 (JB_ELEMENT_SIZE): Likewise.
8595 (JB_PC): Likewise.
8596 (GET_LONGJMP_TARGET): Likewise.
8597 (IN_SIGTRAMP): Likewise.
8598 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8599
eb2c22dc
MK
86002003-05-25 Mark Kettenis <kettenis@gnu.org>
8601
8602 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8603 (sparc32_push_arguments): Re-implement by calling
8604 sparc32_do_push_arguments.
8605
44b7b84e
MK
86062003-05-25 Mark Kettenis <kettenis@gnu.org>
8607
8608 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8609 SPARC_O1_REGNUM): New defines.
8610 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8611 (sparc32_store_return_value): New function.
8612 (sparc_extract_struct_value_address): Rewrite to operate on a
8613 regcache.
8614 (sparc_gdbarch_init): Don't set
8615 deprecated_extract_struct_value_address. Set
8616 extract_struct_value_address instead. Don't set
8617 deprecated_extract_return_value and deprecated_store_return_value
8618 for 32-bit targets. Set extract_return_value and
8619 store_return_value instead.
8620 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8621 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8622 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8623 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8624 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8625 (sparc_store_return_value): Remove prototype.
8626 (sparc32_store_return_value): New prototype.
8627 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8628 Adjust prototypes.
8629
f6ad61e3
MK
86302003-05-24 Mark Kettenis <kettenis@gnu.org>
8631
8632 * sparcnbsd-tdep.c: Include "gdb_string.h".
8633
b276f1bb
AC
86342003-05-23 Andrew Cagney <cagney@redhat.com>
8635
8636 * p-valprint.c (pascal_val_print): Replace extract_address with
8637 the inline equivalent extract_unsigned_integer.
8638 * jv-valprint.c (java_value_print): Ditto.
8639 * ada-valprint.c (ada_val_print_1): Ditto.
8640 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8641
e76c5fcc
TR
86422003-05-23 Theodore A. Roth <troth@openavr.org>
8643
8644 * blockframe.c (frameless_look_for_prologue): Remove unused
8645 after_prologue variable.
8646
2cdd89cb
MK
86472003-05-23 Mark Kettenis <kettenis@gnu.org>
8648
8649 * blockframe.c (get_pc_function_start): Rewrite to avoid
8650 asignments in if-statements.
8651
182d43bc
EZ
86522003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8653
8654 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8655 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8656 files, don't relocate absolute symbols (and do use mst_abs).
8657
e8f3fcdd
AC
86582003-05-23 Andrew Cagney <cagney@redhat.com>
8659
8660 * objc-lang.c: Include "gdb_assert.h".
8661 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8662 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8663 (gdb_check, gdb_check_fatal): Delete functions.
8664 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8665 gdb_assert.
8666 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8667 * Makefile.in (objc-lang.o): Update dependencies.
8668
3c23e6fb
ILT
86692003-05-22 Ian Lance Taylor <ian@airs.com>
8670
8671 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8672 with fprintf_filtered, not fprintf_unfiltered.
8673
af1342ab
AC
86742003-05-22 Andrew Cagney <cagney@redhat.com>
8675
8676 * stack.c (frame_info): Inline extract_address, replacing it with
8677 extract_unsigned_integer.
8678 * findvar.c (unsigned_pointer_to_address): Ditto.
8679 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8680 * dwarf2expr.c (dwarf2_read_address): Ditto.
8681 * frame.c (frame_pc_unwind): Update comment.
8682 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8683
47e242ec
JJ
86842003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8685
8686 * infptrace.c (detach): Call print_sys_errmsg rather than
8687 perror_with_name to issue warning message when errno is non-zero
8688 after calling ptrace detach.
8689
e2ac8128
JB
86902003-05-21 J. Brobecker <brobecker@gnat.com>
8691
8692 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8693 macro definitions from here...
8694 * hppa-tdep.c: ...to there.
8695
92b3541e
KB
86962003-05-20 Kevin Buettner <kevinb@redhat.com>
8697
8698 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8699 register_ptrace_addr(). Fix all callers.
8700
55809acb
AS
87012003-05-21 Andreas Schwab <schwab@suse.de>
8702
8703 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8704 dependencies.
8705 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8706 end.
8707 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8708 (_initialize_m68k_linux_tdep): New function.
8709 (m68k_linux_frame_saved_pc): Make static.
8710 (m68k_linux_extract_return_value): Likewise.
8711 (m68k_linux_store_return_value): Likewise.
8712 (m68k_linux_extract_struct_value_address): Likewise.
8713 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8714 Remove.
8715 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8716 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8717 (DEPRECATED_FRAME_SAVED_PC): Remove.
8718
0fbc10f7
KW
87192003-05-20 Kris Warkentin <kewarken@qnx.com>
8720
8721 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8722 regset numbering rather than our own.
8723
58da2eb2
DC
87242003-05-19 David Carlton <carlton@bactrian.org>
8725
8726 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8727
1fcb5155
DC
87282003-05-19 David Carlton <carlton@bactrian.org>
8729
8730 Partial fix for PR c++/827.
8731 * cp-support.h: Include symtab.h.
8732 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8733 * cp-namespace.c: Update contributors.
8734 (cp_lookup_symbol_nonlocal): New.
8735 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8736 (lookup_symbol_file): Ditto.
8737 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8738 * block.h: Declare block_scope, block_using, block_global_block.
8739 * block.c (block_scope): New.
8740 (block_using, block_global_block): Ditto.
8741 * Makefile.in (cp_support_h): Depend on symtab_h.
8742 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8743
5f9a71c3
DC
87442003-05-19 David Carlton <carlton@bactrian.org>
8745
8746 * language.h (struct language_defn): Add 'la_value_of_this'
8747 and 'la_lookup_symbol_nonlocal' members.
8748 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8749 lookup_symbol_static, lookup_symbol_global,
8750 lookup_symbol_aux_block.
8751 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8752 if we should search fields of this and how to do static/global
8753 lookup.
8754 (lookup_symbol_aux_block): Make extern.
8755 (basic_lookup_symbol_nonlocal): New.
8756 (lookup_symbol_static, lookup_symbol_global): Ditto.
8757 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8758 'la_lookup_symbol_nonlocal' members.
8759 * c-lang.c (c_language_defn, cplus_language_defn)
8760 (asm_language_defn, minimal_language_defn): Ditto.
8761 * jv-lang.c (java_language_defn): Ditto.
8762 * language.c (unknown_language_defn, auto_language_defn)
8763 (local_language_defn): Ditto.
8764 * m2-lang.c (m2_language_defn): Ditto.
8765 * objc-lang.c (objc_language_defn): Ditto.
8766 * scm-lang.c (scm_language_defn): Ditto.
8767 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8768 * p-lang.c (pascal_language_defn): Ditto for both.
8769 * Makefile.in (f-lang.o): Depend on value_h.
8770 (p-lang.o): Ditto.
8771
89a9d1b1
DC
87722003-05-19 David Carlton <carlton@bactrian.org>
8773
8774 * block.h: Declare block_static_block.
8775 * block.c (block_static_block): New.
8776 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8777 lookup_symbol_aux_local, calling block_static_block instead.
8778 (lookup_symbol_aux_local): Delete 'static_block' argument.
8779
eed3f8ab
DC
87802003-05-19 David Carlton <carlton@bactrian.org>
8781
8782 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8783
a09d8bda
ML
87842003-05-19 Michal Ludvig <mludvig@suse.cz>
8785
8786 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8787 register numbers mapping.
8788
69636828
AF
87892003-05-18 Adam Fedor <fedor@gnu.org>
8790
8791 * symtab.c (completion_list_objc_symbol): New function.
8792 (make_symbol_completion_list): Use it to add ObjC symbols
8793 when looking though the list.
8794 (language_search_unquoted_string): New function.
8795 (make_file_symbol_completion_list): Use it.
8796
55baeb84
AS
87972003-05-18 Andreas Schwab <schwab@suse.de>
8798
d0b45d99
AS
8799 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8800 dependencies.
8801 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8802 as m68k_linux_extract_return_value.
8803 (DEPRECATED_STORE_RETURN_VALUE): Define as
8804 m68k_linux_store_return_value.
8805 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8806 m68k_linux_extract_struct_value_address.
8807 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8808 get_next_frame, get_frame_base, get_frame_pc.
8809 (m68k_linux_frame_saved_pc): Use get_frame_base.
8810 (m68k_linux_extract_return_value): New function.
8811 (m68k_linux_store_return_value): New function.
8812 (m68k_linux_extract_struct_value_address): New function.
8813 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8814
55baeb84
AS
8815 * c-exp.y (typebase): Remove duplicate occurence of
8816 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8817 of lookup_signed_typename.
55baeb84 8818
b6b08ebf
MK
88192003-05-18 Mark Kettenis <kettenis@gnu.org>
8820
8821 * dwarf2loc.c (find_location_expression): Change type of second
8822 argument to `size_t *'.
8823 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8824 for size variable.
8825
5ad1c190
DC
88262003-05-18 David Carlton <carlton@bactrian.org>
8827
8828 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8829 'linkage_name'. Add comment.
8830 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8831 'linkage_name'.
8832 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8833 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8834 (lookup_block_symbol): Ditto.
8835
b8b527c5
AC
88362003-05-16 Andrew Cagney <cagney@redhat.com>
8837
8838 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8839 * gdbarch.h, gdbarch.c: Re-generate.
8840 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8841 * TODO (REGISTER_BYTES): Delete reference.
8842 * alpha-tdep.c (alpha_gdbarch_init): Update.
8843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8844 * x86-64-tdep.c (x86_64_init_abi): Update.
8845 * vax-tdep.c (vax_gdbarch_init): Update.
8846 * v850-tdep.c (v850_gdbarch_init): Update.
8847 * sparc-tdep.c (sparc_gdbarch_init): Update.
8848 * sh-tdep.c (sh_gdbarch_init): Update.
8849 * s390-tdep.c (s390_gdbarch_init): Update.
8850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8851 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8852 (ns32k_gdbarch_init_32382): Update.
8853 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8854 * mcore-tdep.c (mcore_gdbarch_init): Update.
8855 * m68k-tdep.c (m68k_gdbarch_init): Update.
8856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8857 * ia64-tdep.c (ia64_gdbarch_init): Update.
8858 * i386-tdep.c (i386_gdbarch_init): Update.
8859 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8860 * hppa-tdep.c (hppa_gdbarch_init): Update.
8861 * h8300-tdep.c (h8300_gdbarch_init): Update.
8862 * frv-tdep.c (frv_gdbarch_init): Update.
8863 * cris-tdep.c (cris_gdbarch_init): Update.
8864 * avr-tdep.c (avr_gdbarch_init): Update.
8865 * arm-tdep.c (arm_gdbarch_init): Update.
8866 * sparc-tdep.c (sparc_pop_frame): Update.
8867 * rs6000-tdep.c (rs6000_pop_frame): Update.
8868 * remote.c (init_remote_state): Update.
8869 (remote_prepare_to_store): Update.
8870 * remote-vx.c (vx_prepare_to_store): Update.
8871 * remote-sds.c (sds_fetch_registers): Update.
8872 (sds_prepare_to_store): Update.
8873 * remote-array.c: Update.
8874 * regcache.c (init_legacy_regcache_descr): Update.
8875 (init_regcache_descr): Update.
8876 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8877 (mips_o64_extract_return_value): Update.
8878 * irix5-nat.c (fetch_core_registers): Update.
8879 * irix4-nat.c (fetch_core_registers): Update.
8880 * i386-tdep.h: Update.
8881 * hppa-tdep.c (pa_do_registers_info): Update.
8882 (pa_do_strcat_registers_info): Update.
8883 * cris-tdep.c (cris_register_bytes_ok): Update.
8884 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8885 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8886 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8887 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8888 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8889 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8890 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8891 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8892 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8893 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8894 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8895 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8896 (REGISTER_BYTES_OK): Update.
8897 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8898 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8899
ee2842e2
ILT
89002003-05-16 Ian Lance Taylor <ian@airs.com>
8901
8902 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8903 (vax_print_insn, print_insn_arg): Remove static functions.
8904 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8905 print_insn_vax from opcodes library.
8906 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8907
973177d3
AC
89082003-05-15 Andrew Cagney <cagney@redhat.com>
8909
aaab4dba
AC
8910 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8911 * target.h (memory_breakpoint_from_pc): Delete declaration.
8912 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8913 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8914 * monitor.c (monitor_insert_breakpoint): Use
8915 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8916 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8917 * gdbarch.h, gdbarch.c: Re-generate.
8918 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8919 (sparc_gdbarch_init): Set breakpoint_from_pc to
8920 sparc_breakpoint_from_pc.
8921 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8922 (BREAKPOINT_FROM_PC): Define.
8923 (sparc_breakpoint_from_pc): Declare.
8924 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8925 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8926 (BREAKPOINT_FROM_PC): Define.
8927 (BREAKPOINT): Delete macro.
8928 * target.h: Update comment.
8929 * s390-tdep.c (s390_gdbarch_init): Update comments.
8930 * remote.c: Update comments.
8931 * remote-mips.c: Update comments.
8932 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8933 * mem-break.c: Update comment.
8934 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8935 (ia64_memory_insert_breakpoint): Update.
8936 * config/sparc/tm-sparc.h: Update comment.
8937 * config/pa/tm-hppa64.h: Update comment.
8938 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8939 (rs6000_breakpoint_from_pc): Update.
8940 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8941 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8942 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8943 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8944 (mips_breakpoint_from_pc): Update.
8945 (mips_dump_tdep): Update.
8946
e06963ff
AC
8947 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8948 * minsyms.c (lookup_minimal_symbol): Inline
8949 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8950
973177d3
AC
8951 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8952 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8953 * p-lang.c (pascal_printstr): Ditto.
8954 * objc-lang.c (objc_printstr): Ditto.
8955 * m2-lang.c (m2_printstr): Ditto.
8956 * jv-valprint.c (java_print_value_fields): Ditto.
8957 * f-lang.c (f_printstr): Ditto.
8958 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8959 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8960 for repeat_count_threshold.
8961 * Makefile.in (cp-valprint.o): Update dependencies.
8962
5ea2bd7f 89632003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8964
5ea2bd7f
JJ
8965 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8966 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8967 they start with mov r2,r12. Support skipping over indirect stores
8968 of the input registers. Upon hitting a non-nop branch instruction
8969 or predicated instruction, bail out by setting lim_pc to the current
8970 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8971 beyond our calculated value and we have trust_limit set,
8972 use the lim_pc value.
8973
cc8c88f3
AC
89742003-05-15 Andrew Cagney <cagney@redhat.com>
8975
8976 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8977 generic_find_dummy_frame.
8978 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8979 (deprecated_generic_find_dummy_frame): Update.
8980 (deprecated_read_register_dummy): Update.
8981 * frame.c (deprecated_generic_get_saved_register): Update.
8982
909cd28e
TR
89832003-05-15 Theodore A. Roth <troth@openavr.org>
8984
8985 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8986 (avr_gdbarch_init): Set breakpoint_from_pc method.
8987
b923b08d
AC
89882003-05-15 Andrew Cagney <cagney@redhat.com>
8989
8990 * regcache.c (build_regcache): Set deprecated_register_valid
8991 directly.
8992 (deprecated_grub_regcache_for_register_valid): Delete function.
8993 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8994 declaration.
8995
ae2f03ac 89962003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8997
8998 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8999 * symtab.c (lookup_symbol_aux): Delete calls to
9000 lookup_symbol_aux_minsyms.
9001 (lookup_symbol_aux_minsyms): Comment out function and
9002 prototype. Delete lookup by mangled name.
ae2f03ac 9003
18ec9831
KB
90042003-05-14 Kevin Buettner <kevinb@redhat.com>
9005
9006 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9007 correctly indicate an empty stack and ``stack_allocated'' to the
9008 indicate the number of elements initially allocated.
9009 (dwarf_expr_grow_stack): Simplify method for computing new
9010 stack size. Don't loop infinitely if ``stack_len'' is zero.
9011 (execute_stack_op): Move ``ctx->in_reg'' initialization
9012 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9013 be used in conjuction with DW_OP_piece. Revise error message
9014 accordingly.
9015
de18ac1f
TR
90162003-05-14 Theodore A. Roth <troth@openavr.org>
9017
9018 * MAINTAINERS: Update my email address.
9019 * avr-tdep.c: Ditto.
9020
176620f1
EZ
90212003-05-14 Elena Zannoni <ezannoni@redhat.com>
9022
9023 * symtab.h (enum domain_enum): Rename from namespace_enum.
9024 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9025 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9026 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9027 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9028 TYPES_NAMESPACE, METHODS_NAMESPACE.
9029 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9030 (struct symbol, struct partial_symbol): Rename field
9031 'namespace_enum namespace' to 'domain_enum domain'.
9032 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9033 Delete old define kludge for namespace.
9034
9035 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9036 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9037 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9038 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9039 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9040 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9041 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9042 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9043 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9044 occurrences of the above.
9045
b7f31508
ILT
90462003-05-14 Ian Lance Taylor <ian@airs.com>
9047
9048 * Makefile.in (install-only): Use $(SHELL) when running
9049 mkinstalldirs.
9050
2fdbdd39
ILT
90512003-05-13 Ian Lance Taylor <ian@airs.com>
9052
a208d82c
ILT
9053 * MAINTAINERS (write after approval): Add myself.
9054
2fdbdd39
ILT
9055 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9056 second and third arguments.
9057 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9058 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9059
fbd9dcd3
AC
90602003-05-13 Andrew Cagney <cagney@redhat.com>
9061
9062 * defs.h (store_address): Delete declaration.
9063 findvar.c (store_address): Delete function.
9064 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9065 store_unsigned_integer.
9066 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9067 * v850-tdep.c (v850_push_arguments): Ditto.
9068 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9069 * sh-tdep.c (sh64_get_saved_register): Ditto.
9070 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9071 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9072 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9073 (mips_get_saved_register): Ditto.
9074 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9075 (find_func_descr, ia64_push_arguments): Ditto.
9076 * i386-tdep.c (i386_push_arguments): Ditto.
9077 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9078 * frv-tdep.c (frv_push_arguments): Ditto.
9079 * frame.c (legacy_saved_regs_prev_register): Ditto.
9080 (deprecated_generic_get_saved_register): Ditto.
9081 * findvar.c (unsigned_address_to_pointer): Ditto.
9082 * dwarf2read.c (dwarf2_const_value): Ditto.
9083 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9084 * alpha-tdep.c (alpha_push_arguments): Ditto.
9085
6760f9e6
JB
90862003-05-12 J. Brobecker <brobecker@gnat.com>
9087
9088 * NEWS: Mention that the hppa-hpux port has been partially
9089 multiarched (32bit ABIT only, so far).
9090
30e221b4
AC
90912003-05-11 Andrew Cagney <cagney@redhat.com>
9092
9093 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9094 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9095 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9096 sim/testsuite/sim/arm/misaligned2.ms, and
9097 sim/testsuite/sim/arm/misaligned3.ms.
9098 * disasm.h (struct ui_file): Add opaque struct declaration.
9099 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9100 * frame.h (struct ui_file): Ditto.
9101
dea7f9ba
MK
91022003-05-11 Mark Kettenis <kettenis@gnu.org>
9103
9104 * value.h: Pretty print.
9105
01986c48
MK
91062003-05-10 Mark Kettenis <kettenis@gnu.org>
9107
9108 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9109
123a958e
AC
91102003-05-08 Andrew Cagney <cagney@redhat.com>
9111
9112 * regcache.h (max_register_size): Delete declaration.
9113 * regcache.c (max_register_size): Delete function.
9114 (struct regcache_descr): Delete field "max_register_size".
9115 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9116 registers fit in MAX_REGISTER_SIZE.
9117 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9118 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9119 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9120 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9121 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9122 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9123 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9124 * dve3900-rom.c, hppa-tdep.c: Ditto.
9125
eb294659
DC
91262003-05-08 David Carlton <carlton@math.stanford.edu>
9127
9128 * valops.c (push_word): Fix typo.
9129
d9d9c31f
AC
91302003-05-08 Andrew Cagney <cagney@redhat.com>
9131
9132 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9133 * gdbarch.h: Re-generate.
9134 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9135 (legacy_max_register_raw_size): Delete declaration.
9136 * regcache.c (legacy_max_register_raw_size): Delete function.
9137 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9138 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9139 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9140 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9141 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9142 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9143 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9144 * findvar.c, dwarf2cfi.c: Ditto.
9145
22540ece
AC
91462003-05-08 Andrew Cagney <cagney@redhat.com>
9147
9148 * mips-tdep.c (read_signed_register): New function, moved to here
9149 from "regcache.c".
9150 (read_signed_register_pid): Ditto.
9151 * regcache.c (read_signed_register_pid): Delete function, moved to
9152 "mips-tdep.c".
9153 (read_signed_register): Ditto.
9154 * regcache.h (read_signed_register): Delete declaration.
9155 (read_signed_register_pid): Delete declaration.
9156
0c92afe8
AC
91572003-05-08 Andrew Cagney <cagney@redhat.com>
9158
9159 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9160 * gdbarch.h: Re-generate.
9161 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9162 (legacy_max_register_virtual_size): Delete declaration.
9163 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9164 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9165 * tracepoint.c (memrange_sortmerge): Ditto.
9166 * sparc-tdep.c (sparc_print_registers): Ditto.
9167 * regcache.c (legacy_max_register_virtual_size): Delete function.
9168
6037b830
JB
91692002-05-08 J. Brobecker <brobecker@gnat.com>
9170
9171 * fork-child.c (escape_bang_in_quoted_argument): New function.
9172 (fork_inferior): Escape '!' characters in quoted arguments
9173 only when needed.
9174
5d62c8b1
JB
91752003-05-08 J. Brobecker <brobecker@gnat.com>
9176
9177 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9178 the language of the CU is not currently supported by GDB.
9179
20a0e81d
JB
91802003-05-08 J. Brobecker <brobecker@gnat.com>
9181
9182 * defs.h (language): Add language_minimal enum value.
9183 * c-lang.c (minimal_language_defn): New language definition.
9184 (_initialize_c_language): Add the new minimal language to the list
9185 of languages known to GDB.
9186
710ee10a
KB
91872003-05-08 Kevin Buettner <kevinb@redhat.com>
9188
9189 * frame.c (get_frame_type): Don't attempt to lazily initialize
9190 frame's unwinder for legacy frames.
9191
1750fa04
AC
91922003-05-07 Andrew Cagney <cagney@redhat.com>
9193
9194 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9195 and "regcache" parameters.
9196 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9197
ddf9f258 91982003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9199
9200 * dwarf2read.c (dwarf_decode_lines): Only use output of
9201 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9202 the current address.
9203
87767c29
AC
92042003-05-07 Andrew Cagney <cagney@redhat.com>
9205
9206 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9207 code.
9208
5e7b2f39
JB
92092003-05-07 Jim Blandy <jimb@redhat.com>
9210
9211 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9212 'maint info symtabs' and 'maint info psymtabs'.
9213 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9214 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9215 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9216 Declarations updated.
9217 * maint.c (maintenance_list_command): Delete.
9218 (_initialize_maint_cmds): Update calls to add_cmd.
9219 * gdbcmd.h (maintenancelistlist): Delete declaration.
9220 * cli/cli-cmds.c (maintenancelistlist): Delete.
9221 (init_cmd_lists): Don't initialize it.
9222 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9223
f6684c31
AC
92242003-05-07 Andrew Cagney <cagney@redhat.com>
9225
9226 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9227 "regcache".
9228 (d10v_print_registers_info): Update.
9229 (d10v_dmap_register, d10v_imap_register): Delete functions.
9230 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9231 and "imap_register".
9232 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9233 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9234 * arch-utils.c (generic_remote_translate_xfer_address): Add
9235 "regcache" and "gdbarch" parameters.
9236 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9237 parameter. Change class to multi-arch.
9238 * gdbarch.h, gdbarch.c: Re-generate.
9239 * remote.c (remote_xfer_memory): Use
9240 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9241
e4846b08
JJ
92422003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9243
9244 * infrun.c (prev_pc): Move declaration ahead of proceed().
9245 (proceed): Refresh prev_pc value before resuming.
9246 (stop_stepping): Remove code to refresh prev_pc.
9247
6b71b8ac
KW
92482003-05-06 Kris Warkentin <kewarken@qnx.com>
9249
9250 * nto-tdep.c: Removed stray comment.
9251
47979a4b
KW
92522003-05-06 Kris Warkentin <kewarken@qnx.com>
9253
9254 * i386-nto-tdep.c: Fix old K&R function definitions.
9255 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9256 Also change add_show_from_set() call to add_setshow_cmd().
9257 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9258
00905d52
AC
92592003-05-05 Andrew Cagney <cagney@redhat.com>
9260
9261 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9262 (fprint_dummy_frames): New function.
9263 (maintenance_print_dummy_frames): New function.
9264 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9265 * frame.c (fprint_frame_id): Make global.
9266 * frame.h (fprint_frame_id): Declare.
9267 * Makefile.in (dummy-frame.o): Update dependencies.
9268
b1e29e33
AC
92692003-05-05 Andrew Cagney <cagney@redhat.com>
9270
9271 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9272 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9273 SIZEOF_CALL_DUMMY_WORDS.
9274 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9275 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9276 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9277 CALL_DUMMY_BREAKPOINT_OFFSET.
9278 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9279 CALL_DUMMY_START_OFFSET.
9280 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9283 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9284 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9285 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9286 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9287 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9288 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9289 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9290 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9291 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9292 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9293 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9294 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9295 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9296 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9297
92982003-05-05 Kris Warkentin <kewarken@qnx.com>
9299
9300 * configure.tgt: Add i[3456]86-*-nto*.
9301 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9302 * nto-tdep.c: New file. Neutrino target support routines.
9303 * nto-tdep.h: New file. Neutrino target header.
9304 * config/tm-qnxnto.h: New file.
9305 * config/i386/i386nto.mt: New file.
9306 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9307
0ce3d317
AC
93082003-05-04 Andrew Cagney <cagney@redhat.com>
9309
9310 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9311 (load_infrun_state): Ditto.
9312 (struct thread_info): Drop "prev_func_name" field.
9313 * thread.c (load_infrun_state): Update.
9314 (save_infrun_state): Update.
9315 * infrun.c (prev_func_name): Delete variable.
9316 (init_wait_for_inferior): Do not clear prev_func_name.
9317 (stop_stepping, keep_going, context_switch): Do not swap
9318 prev_func_name.
9319 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9320 instead of PC_IN_SIGTRAMP.
9321
46654a5b
AC
93222003-05-04 Andrew Cagney <cagney@redhat.com>
9323
9324 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9325 REGISTER_BYTE with register_offset_hack.
9326 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9327 that REGISTER_BYTE is consistent with the regcache.
9328 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9329 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9330
14b08c1b
MK
93312003-05-04 Mark Kettenis <kettenis@gnu.org>
9332
04c8243f
MK
9333 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9334 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9335
14b08c1b
MK
9336 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9337
c7a11e01
JB
93382003-05-03 J. Brobecker <brobecker@gnat.com>
9339
9340 From Thierry Schneider <tpschneider1@yahoo.com>
9341 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9342 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9343 (mi-cmd-symbol.o): Add rule.
9344
7043d8dc
AC
93452003-05-03 Andrew Cagney <cagney@redhat.com>
9346
9347 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9348 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9349 * gdbarch.h, gdbarch.c: Re-generate.
9350 * d10v-tdep.c (d10v_push_dummy_code): New function.
9351 (d10v_gdbarch_init): Set push_dummy_code.
9352 * infcall.c (legacy_push_dummy_code): New function.
9353 (generic_push_dummy_code): New function.
9354 (push_dummy_code): New function.
9355 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9356 instead of dummy_addr, to push_dummy_call. Move call to
9357 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9358 switch.
9359 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9360
92bf2b80
AC
93612003-05-03 Andrew Cagney <cagney@redhat.com>
9362
9363 * disasm.h (print_insn): Declare.
9364 * disasm.c (init_gdb_disassemble_info): New function.
9365 (gdb_disassembly): Call init_gdb_disassemble_info.
9366 (gdb_print_insn): New function.
9367 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9368 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9369 * mcore-tdep.c: Include "disasm.h"
9370 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9371 * d10v-tdep.c: Include "disasm.h".
9372 (display_trace): Call gdb_print_insn, instead of print_insn.
9373 (print_insn): Delete function.
9374 * printcmd.c: Include "disasm.h".
9375 (print_insn): Delete function.
9376 (print_formatted): Call gdb_print_insn, instead of print_insn.
9377 * Makefile.in (printcmd.o): Update dependencies.
9378 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9379
27d94c49
AC
93802003-05-02 Andrew Cagney <cagney@redhat.com>
9381
82de1e5b
AC
9382 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9383 PC_REGNUM, re-indent.
9384 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9385 PC_REGNUM isn't set.
9386
27d94c49
AC
9387 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9388 * gdbarch.h, gdbarch.c: Re-generate.
9389 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9390 register_virtual_size, pc_regnum, or register_bytes.
9391 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9392 (d10v_register_type): Use D10V_PC_REGNUM.
9393 (d10v_print_registers_info, d10v_read_pc): Ditto.
9394 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9395 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9396
a9c0dc7f
DC
93972003-05-02 David Carlton <carlton@bactrian.org>
9398
9399 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9400 the name with mstrsave.
9401
e33d66ec
EZ
94022003-05-02 Elena Zannoni <ezannoni@redhat.com>
9403
9404 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9405 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9406 (host_charset_name, target_charset_name): New vars for use by
9407 set/show commands.
9408 (host_charset_enum, target_charset_enum): New enums for set/show
9409 commands.
9410 (set_charset_sfunc, set_host_charset_sfunc,
9411 set_target_charset_sfunc): New functions.
9412 (set_host_charset, set_target_charset): Make static.
9413 (list_charsets, set_host_charset_command,
9414 set_target_charset_command): Delete functions.
9415 (show_charset_command): Rewrite as....
9416 (show_charset): Hook this up with the set/show command mechanism.
9417 (_initialize_charset): Change names of charsets to match the
9418 set/show enums. Use host_charset_name and target_charset_name.
9419 Use set/show mechanism for charset, host-charset, target-charset
9420 commands. Do not make 'show host-charset' and 'show
9421 target-charset' be aliases of 'show charset'.
9422
9423 * charset.h (set_host_charset, set_target_charset): Don't export,
9424 they are not used outside the file.
9425
2b6fd0d8
AC
94262003-05-01 Andrew Cagney <cagney@redhat.com>
9427
9428 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9429 (gdb_disassembly): Make "di" non static, always initialize and
9430 cleanup. Always use dis_asm_read_memory.
9431 (gdb_dis_asm_read_memory): Delete function.
9432
6ae2f580
AC
94332003-05-01 Andrew Cagney <cagney@redhat.com>
9434
9435 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9436 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9437
810ecf9f
AC
94382003-04-30 Andrew Cagney <cagney@redhat.com>
9439
9440 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9441 "tm_print_insn_info".
9442 (TARGET_PRINT_INSN_INFO): Delete macro.
9443 (dis_asm_read_memory): Delete function declaration.
9444 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9445 (tm_print_insn_info): Delete variable definition.
9446 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9447 * gdbarch.h, gdbarch.c: Re-generate.
9448 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9449 "deprecated_tm_print_insn_info".
9450 * mcore-tdep.c (mcore_dump_insn): Ditto.
9451 * mips-tdep.c (mips_gdbarch_init): Ditto.
9452 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9453 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9454 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9455 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9456 instead of TARGET_PRINT_INSN_INFO, add comment.
9457 * s390-tdep.c (s390_get_frame_info): Instead of
9458 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9459 (s390_check_function_end, s390_is_sigreturn): Ditto.
9460 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9461 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9462 * disasm.c: Include "gdbcore.h".
9463 (_initialize_disasm): New function, initialize
9464 "deprecated_tm_print_insn_info".
9465 (deprecated_tm_print_insn_info): New variable.
9466 (dis_asm_read_memory): Moved from "corefile.c", made static.
9467 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9468 * Makefile.in (disasm.o): Update dependencies.
9469
07020390
AC
94702003-04-30 Andrew Cagney <cagney@redhat.com>
9471
9472 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9473
a9fa03de
AF
94742003-04-29 Adam Fedor <fedor@gnu.org>
9475
9476 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9477 * infcall.c (find_function_addr): Make non-static.
9478 * infcall.h (find_function_addr): Declare.
9479 * Makefile.in (eval.o): Update dependencies.
9480
1bae87b9
AF
94812003-04-28 Adam Fedor <fedor@gnu.org>
9482
9483 * symtab.c (symbol_find_demangled_name): Check for and demangle
9484 ObjC symbols.
9485 (symbol_init_demangled_name): Init for language_objc as well.
9486
0ba6dca9
AC
94872003-04-28 Andrew Cagney <cagney@redhat.com>
9488
9489 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9490 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9491 * gdbarch.h, gdbarch.c: Re-generate.
9492 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9493 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9494 * inferior.h (deprecated_read_fp): Rename read_fp.
9495 (generic_target_read_fp): Delete declaration.
9496 * regcache.c (generic_target_read_fp): Delete function.
9497 (deprecated_read_fp): Replace read_fp, use
9498 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9499 * d10v-tdep.c (d10v_read_fp): Delete function.
9500 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9501
9502 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9503 deprecated_target_read_fp to generic_target_read_fp.
9504 * sh-tdep.c (sh_gdbarch_init): Ditto.
9505 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9507 * frv-tdep.c (frv_gdbarch_init): Ditto.
9508
9509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9510 deprecated_fp_regnum.
9511 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9512 * vax-tdep.c (vax_gdbarch_init): Ditto.
9513 * v850-tdep.c (v850_gdbarch_init): Ditto.
9514 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9515 * sh-tdep.c (sh_gdbarch_init): Ditto.
9516 * s390-tdep.c (s390_gdbarch_init): Ditto.
9517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9518 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9520 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9522 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9523 * i386-tdep.c (i386_gdbarch_init): Ditto.
9524 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9525 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9526 * frv-tdep.c (frv_gdbarch_init): Ditto.
9527 * cris-tdep.c (cris_gdbarch_init): Ditto.
9528 * avr-tdep.c (avr_gdbarch_init): Ditto.
9529 * arm-tdep.c (arm_gdbarch_init): Ditto.
9530 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9531
9532 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9533 * v850-tdep.c (v850_gdbarch_init): Ditto.
9534 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9535 * sh-tdep.c (sh_gdbarch_init): Ditto.
9536 * s390-tdep.c (s390_gdbarch_init): Ditto.
9537 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9538 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9539 * mips-tdep.c (mips_gdbarch_init): Ditto.
9540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9541 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9542 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9543 * frv-tdep.c (frv_gdbarch_init): Ditto.
9544 * avr-tdep.c (avr_gdbarch_init): Ditto.
9545 * arm-tdep.c (arm_gdbarch_init): Ditto.
9546
9547 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9548 DEPRECATED_FP_REGNUM.
9549 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9550 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9551 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9552 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9553 (sparc32_register_virtual_type): Ditto.
9554 * sh-tdep.c (sh64_frame_chain): Ditto.
9555 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9556 (sh_nofp_frame_init_saved_regs): Ditto.
9557 (sh64_nofp_frame_init_saved_regs): Ditto.
9558 (sh_fp_frame_init_saved_regs): Ditto.
9559 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9560 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9561 * procfs.c (procfs_fetch_registers): Ditto.
9562 (procfs_store_registers): Ditto.
9563 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9564 (store_inferior_registers, fetch_core_registers): Ditto.
9565 (fetch_kcore_registers, clear_regs): Ditto.
9566 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9567 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9568 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9569 * nlm/i386.c (do_status): Ditto.
9570 * mipsv4-nat.c (supply_gregset): Ditto.
9571 * mips-tdep.c: Ditto for comments.
9572 * mips-nat.c (fetch_inferior_registers): Ditto.
9573 (store_inferior_registers, fetch_core_registers): Ditto.
9574 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9575 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9576 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9577 (i386_do_pop_frame, i386_register_type): Ditto.
9578 * hppa-tdep.c (hppa_frame_chain): Ditto.
9579 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9580 (hppa_pop_frame, hppa_read_fp): Ditto.
9581 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9582 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9583 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9584 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9585 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9586 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9587 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9588 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9589 * blockframe.c: Ditto for comments.
9590 * arch-utils.h: Ditto for comments.
9591 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9592 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9593 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9594 * alpha-tdep.h: Ditto for comments.
9595 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9596 (alpha_cannot_store_register): Ditto.
9597 (alpha_push_dummy_frame): Ditto.
9598 * alpha-nat.c (supply_gregset): Ditto.
9599
9600 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9601 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9602 * config/sparc/tm-sparc.h: Update comment.
9603
9604 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9605 deprecated_read_fp instead of TARGET_READ_FP.
9606 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9607 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9608 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9609 deprecated_read_fp instead of read_fp.
9610 * s390-tdep.c (s390_push_arguments): Ditto.
9611 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9612 * frame.h: Ditto in comments.
9613 * frame.c (legacy_get_prev_frame): Ditto.
9614 * dummy-frame.c (dummy_frame_this_id): Ditto.
9615 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9616
d7a27068
AC
96172003-04-28 Andrew Cagney <cagney@redhat.com>
9618
9619 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9620 * gdbarch.h, gdbarch.c: Re-generate.
9621 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9622 * vax-tdep.c (_initialize_vax_tdep): Update.
9623 * v850-tdep.c (_initialize_v850_tdep): Update.
9624 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9625 * s390-tdep.c (_initialize_s390_tdep): Update.
9626 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9627 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9628 * mips-tdep.c (_initialize_mips_tdep): Update.
9629 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9630 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9631 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9632 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9633 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9634 * frv-tdep.c (_initialize_frv_tdep): Update.
9635 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9636 (_initialize_cris_tdep): Update.
9637 * arch-utils.c (legacy_print_insn): Update.
9638 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9639
d2630e69
AF
96402003-04-26 Adam Fedor <fedor@gnu.org>
9641
9642 * linespec.c (decode_objc): New function to decode ObjC calls
9643 (decode_line_1): Check for ObjC calls (using decode_objc)
9644 * Makefile (linespec.o): Update dependencies.
9645
3086aeae
DJ
96462003-04-26 Daniel Jacobowitz <drow@mvista.com>
9647
9648 * breakpoint.h (struct breakpoint_ops): New.
9649 (struct breakpoint): Add ops member.
9650
9651 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9652 (mention): Use new breakpoint ops member.
9653 (set_raw_breakpoint): Initialize ops field to NULL.
9654 (print_exception_catchpoint, print_one_exception_catchpoint)
9655 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9656 (gnu_v3_exception_catchpoint_ops): New.
9657 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9658
1fbec6c3
AF
96592003-04-25 Adam Fedor <fedor@gnu.org>
9660
9661 * Makefile.in (COMMON_OBS): Add objc-lang.o
9662
0ef21242
AC
96632003-04-25 Andrew Cagney <cagney@redhat.com>
9664
9665 * d10v-tdep.c (print_insn): Delete function.
9666 (display_trace): Use TARGET_PRINT_INSN.
9667 (_initialize_d10v_tdep): Do not set tm_print_insn.
9668 (d10v_gdbarch_init): Set print_insn.
9669
f75493ed
AC
96702003-04-25 Andrew Cagney <cagney@redhat.com>
9671
9672 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9673 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9674 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9675 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9676 (nr_dmap_regs, a0_regnum): ... new functions.
9677 (d10v_print_registers_info): Use a0_regnum, use register_size.
9678 (d10v_register_byte): Delete function.
9679 (d10v_register_raw_size): Delete function.
9680 (d10v_register_type): Use a0_regnum.
9681 (d10v_print_registers_info): Use a0_regnum.
9682 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9683 (d10v_gdbarch_init): Do not set register_byte or
9684 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9685 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9686 extract_address.
9687 (trace_command): Use XCALLOC.
9688 (print_insn): Delete reference to tm_print_insn.
9689 (saved_regs_unwinder): Use store_unsigned_integer instead of
9690 store_address.
9691 * frame.h (FRAME_OBSTACK_CALLOC): Define
9692
2202b100
DC
96932003-04-25 David Carlton <carlton@bactrian.org>
9694
9695 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9696
4e45ca2e
AF
96972003-04-24 Adam Fedor <fedor@gnu.org>
9698
9699 * objc-lang.c: Include "valprint.h"
9700 * Makefile.in (objc-lang.o): Update dependencies.
9701
93de3e7f
AF
97022003-04-24 Adam Fedor <fedor@gnu.org>
9703
8ffd9b1b 9704 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9705 architecture dependant compilation and mark as unimplemented
9706 (until they get put in the gdbarch vector).
9707
0f20eeea
DC
97082003-04-23 David Carlton <carlton@bactrian.org>
9709
9710 * cp-support.c (cp_find_first_component): Accept 'operator' in
9711 more locations.
9712
74cfe982
AC
97132003-04-23 Andrew Cagney <cagney@redhat.com>
9714
9715 * infcall.c (call_function_by_hand): Eliminate redundant
9716 indentation. Move "saved_async" and "old_cleanups" to where they
9717 are needed.
8ffd9b1b 9718
52557533
AC
97192003-04-23 Andrew Cagney <cagney@redhat.com>
9720
9721 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9722 and "buffer". Move the "name" code to where it is needed.
9723
158775de
AC
97242003-04-23 Andrew Cagney <cagney@redhat.com>
9725
9726 * infcall.c (call_function_by_hand): Move variables "start_sp",
9727 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9728 code to ON_STACK switch branch.
8ffd9b1b 9729
ebc7896c
AC
97302003-04-23 Andrew Cagney <cagney@redhat.com>
9731
9732 * infcall.c (call_function_by_hand): Make declaration of "i",
9733 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9734 lint.
9735
d727590f
AC
97362003-04-23 Andrew Cagney <cagney@redhat.com>
9737
9738 * infcall.c (call_function_by_hand): Delete variable
9739 "n_method_args". Localize "param_type"'s declaration to the loop
9740 that it is used. Reinstate code assigning to said variable -
9741 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9742 Rationalize code using "param_type".
9743
d585e13a
AC
97442003-04-22 Andrew Cagney <cagney@redhat.com>
9745
9746 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9747 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9748 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9749 to DEPRECATED_PUSH_RETURN_ADDRESS.
9750
051caad9
KB
97512003-04-22 Kevin Buettner <kevinb@redhat.com>
9752
9753 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9754 on the DWARF2 register number prior to fetching a register.
9755
77296879
JB
97562003-04-22 J. Brobecker <brobecker@gnat.com>
9757
9758 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9759 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9760 this macro was always set to 0.
77296879
JB
9761 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9762 considering the fact that this macro was always set to 0.
9763 * hppa-tdep.h (hppa_store_return_value): Likewise.
9764 (hppa_extract_return_value): Likewise.
9765
4252f1df
JB
97662003-04-22 J. Brobecker <brobecker@gnat.com>
9767
9768 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9769 the hppa-pro target only.
9770
14604c6b
JB
97712003-04-21 J. Brobecker <brobecker@gnat.com>
9772
9773 Ongoing multi-arch conversion effort for HP/UX:
9774 * config/pa/tm-hppa.h: Move all macro that are no longer
9775 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9776 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9777
77eb01d1
JB
97782003-04-21 J. Brobecker <brobecker@gnat.com>
9779
9780 * config/pa/tm-hppa.h: Obsolete a section that was only used
9781 for hppa-pro.
9782
61995b3b
JB
97832003-04-21 J. Brobecker <brobecker@gnat.com>
9784
9785 Ongoing multi-arch conversion for HP/UX.
9786 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9787 if already defined (allows hppa64 to stay non-multiarched for now).
9788 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9789
4aa79dcc
AC
97902003-04-21 Andrew Cagney <cagney@redhat.com>
9791
9792 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9793
0f751ff2
AC
97942003-04-21 Andrew Cagney <cagney@redhat.com>
9795
9796 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9797 "i386_num_mmx_regs".
9798
04714b91
AC
97992003-04-21 Andrew Cagney <cagney@redhat.com>
9800
9801 * infcall.c: New file.
9802 * infcall.h: New file.
9803 * valarith.c: Include "infcall.h".
9804 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9805 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9806 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9807 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9808 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9809 (SFILES): Add "infcall.c"
9810 (COMMON_OBS): Add "infcall.o".
9811 (infcall.o): Specify dependencies.
9812 * value.h (call_function_by_hand): Delete declaration.
9813 * inferior.h (run_stack_dummy): Delete declaration.
9814 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9815 (run_stack_dummy): Move to "infcall.c", merged into
9816 call_function_by_hand.
9817 * valops.c (call_function_by_hand): Moved to "infcall.c".
9818 (find_function_addr, value_arg_coerce): Ditto.
9819 (unwindonsignal_p, coerce_float_to_double): Ditto.
9820 (_initialize_valops): Move "set/show coerce-float-to-double", and
9821 "set/show unwindonsignal" commands to "infcall.c".
9822 * v850-tdep.c, target.h: Update comments.
9823 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9824 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9825 (sh64_init_extra_frame_info): Update comments.
9826 * mn10300-tdep.c: Update comments.
9827 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9828 * config/sparc/tm-sparc.h: Update comments.
9829 * breakpoint.h: Update comments.
9830 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9831 * arm-tdep.c: Update comment.
9832
f9d3c2a8
MK
98332003-04-19 Mark Kettenis <kettenis@gnu.org>
9834
c40e1eab
MK
9835 * i386-tdep.c (i386_num_register_names): New variable.
9836 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9837 (MM0_REGNUM): Remove redundant parentheses in define.
9838 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9839 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9840 i386_mxcsr_regnum_p): Remove redundant parentheses.
9841 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9842
94ea66b3
MK
9843 * i386-tdep.c (i386_extract_return_value,
9844 i386_store_return_value): Correct check for availability of
9845 floating-point registers.
9846
54299a1d
MK
9847 * i386-tdep.c (i386_frame_num_args): Remove function.
9848 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9849
c86c27af
MK
9850 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9851 mmx_regnum_to_fp_regnum. Adjust all callers.
9852
f9d3c2a8
MK
9853 * i386-tdep.c (i386_get_longjmp_target): Use
9854 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9855 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9856 extract_address.
9857
94ba74a9
MK
98582003-04-19 Mark Kettenis <kettenis@gnu.org>
9859
9860 * core-regset.c: Update comments to reflect reality. Re-order
9861 includes.
9862 (fetch_core_registers): Use switch instead of if. Remove
9863 redundant prototype.
9864
4074e13c
JB
98652003-04-18 Jim Blandy <jimb@redhat.com>
9866
9867 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9868 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9869
e3ab4aba
RH
98702003-04-17 Richard Henderson <rth@redhat.com>
9871
9872 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9873
627bf7c1
EZ
98742003-04-17 Michael Snyder <msnyder@redhat.com>
9875 Karen Bennet <bennet@redhat.com>
9876
9877 Committed by Elena Zannoni <ezannoni@redhat.com>
9878 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9879
514621a9
EZ
98802003-04-17 Elena Zannoni <ezannoni@redhat.com>
9881
9882 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9883 value if the return type is void.
514621a9 9884
b4acd559
JJ
98852003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9886
9887 * thread-db.c: Reindented.
8ffd9b1b 9888
530b167e 98892003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9890
9891 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9892 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9893 as types.
9894
0a48e7e8
MS
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
8ffd9b1b 9918
ab9fe00e
KB
99192003-04-16 Kevin Buettner <kevinb@redhat.com>
9920
610a3745 9921 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9922 the size of ``long double'' to 16, instead of 8.
9923
e64a344c
MK
99242003-04-16 Mark Kettenis <kettenis@gnu.org>
9925
9926 * i386-linux-nat.c: Add some whitespace to make things more
9927 readable.
9928 (fetch_register, store_register, fetch_inferior_registers,
9929 store_inferior_registers): Get rid of assignment in if-statement.
9930 (store_register): Fix typo in error message.
9931
25d41031
AC
99322003-04-16 Andrew Cagney <cagney@redhat.com>
9933
9934 * utils.c (xmmalloc): Always allocate something, matches
9935 libiberty/xmalloc's semantics.
9936 (xmrealloc, xmcalloc): Ditto.
9937
c50901fd
AC
99382003-04-16 Andrew Cagney <cagney@redhat.com>
9939
9940 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9941 update comments.
9942 (get_frame_type): Initialize unwind and type when needed.
9943 (get_frame_id, frame_register_unwind): Ditto.
9944
f81824a9
AC
99452003-04-16 Andrew Cagney <cagney@redhat.com>
9946
9947 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9948 obsolete.
9949 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9950 * sparcl-stub.c: Obsolete file.
9951 * config/sparc/tm-sparclet.h: Obsolete file.
9952 * sparclet-stub.c: Obsolete file.
9953 * sparclet-rom.c: Obsolete file.
9954 * sparcl-tdep.c: Obsolete file.
9955 * config/sparc/tm-sparclite.h: Obsolete file.
9956 * config/sparc/sparclite.mt: Obsolete file.
9957 * config/sparc/sparclet.mt: Obsolete file.
9958 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9959 sparc86x-*-* obsolete.
9960
9219021c
DC
99612003-04-15 David Carlton <carlton@math.stanford.edu>
9962
9963 * Makefile.in (SFILES): Add cp-namespace.c.
9964 (COMMON_OBS): Add cp-namespace.o.
9965 (block.o): Depend on gdb_obstack_h and cp_support_h.
9966 (buildsym.o): Depend on cp_support_h.
9967 (cp-namespace.o): New.
9968 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9969 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9970 (dwarf2read.o): Depend on cp_support_h.
9971 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9972 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9973 processing_current_namespace.
9974 (read_namespace): Update processing_current_namespace; check for
9975 anonymous namespaces.
9976 (dwarf2_name): New function.
9977 (dwarf2_extension): Ditto.
9978 * cp-support.h: Update copyright, contributors.
9979 Add inclusion guards.
9980 Add opaque declaration for structs obstack, block, symbol.
9981 (struct using_direct): New struct.
9982 Add declarations for cp_find_first_component,
9983 cp_entire_prefix_len, processing_has_namespace_info,
9984 processing_current_namespace, cp_is_anonymous,
9985 cp_add_using_directive, cp_initialize_namespace,
9986 cp_finalize_namespace, cp_set_block_scope,
9987 cp_scan_for_anonymous_namespaces.
9988 * cp-namespace.c: New file.
9989 * cp-support.c: Update copyright.
9990 Include ctype.h, gdb_assert.h, gdbcmd.h.
9991 New variable maint_cplus_cmd_list.
9992 (cp_find_first_component): New function.
9993 (cp_entire_prefix_len, maint_cplus_command)
9994 (first_component_command, _initialize_cp_support): Ditto.
9995 * buildsym.c: Include cp-support.h.
9996 New variable using_list.
9997 (add_symbol_to_list): Check for anonymous namespaces.
9998 (finish_block): Set block's scope.
9999 (start_symtab): Initialize C++ namespace support.
10000 (end_symtab): Finalize C++ namespace support.
10001 * block.h: Add opaque declarations for structs
10002 block_namespace_info, using_direct, and obstack.
10003 Add declarations for block_set_scope and block_set_using.
10004 (struct block): Add 'language_specific' member.
10005 (BLOCK_NAMESPACE): New macro.
10006 * block.c: Include gdb_obstack.h and cp-support.h.
10007 (struct block_namespace_info): New struct.
10008 (block_set_scope): New function.
10009 (block_set_using, block_initialize_namespace): Ditto.
10010
d5a921c9
KB
100112003-04-14 Kevin Buettner <kevinb@redhat.com>
10012
10013 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10014 (locate_base): Return early if there aren't any link map offsets.
10015 (svr4_solib_create_inferior_hook): Warn if shared library support
10016 is unavailable.
10017
d2a52b27
DC
100182003-04-14 David Carlton <carlton@math.stanford.edu>
10019
10020 * symtab.c (symbol_set_names): Add prefix when storing Java names
10021 in hash table. Fix for PR java/1039.
10022
980cae7a
DC
100232003-04-14 David Carlton <carlton@math.stanford.edu>
10024
10025 * symtab.c (symbol_set_names): Rename 'name' arg to
10026 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10027 * symtab.h: Change 'name' argument in declaration of
10028 symbol_set_names to 'linkage_name'.
10029 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10030
e227b13c
AC
100312003-04-14 Andrew Cagney <cagney@redhat.com>
10032
10033 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10034 return the fully sign-extended register value.
10035 (get_frame_pointer): Ditto.
10036 (mips_pop_frame): Initialize "proc_desc" after checking for a
10037 dummy frame.
10038
36712a20
AC
100392003-04-14 Andrew Cagney <cagney@redhat.com>
10040
10041 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10042 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10043 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10044 (mips_push_register): Delete function.
10045 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10046 PUSH_FP_REGNUM.
10047
44ea7b70
JB
100482003-04-14 Jim Blandy <jimb@redhat.com>
10049
10050 * symmisc.c: #include "gdb_regex.h".
10051 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10052 functions.
10053 * maint.c (maintenance_list_command): New function.
10054 (_initialize_maint_cmds): Register the above as commands.
10055 * symtab.h (maintenance_list_symtabs,
10056 maintenance_list_psymtabs): New declarations.
10057 * cli/cli-cmds.c (maintenancelistlist): New variable.
10058 (init_cmd_lists): Initialize it.
10059 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10060 * gdbcmd.h (maintenancelistlist): New declaration.
10061 * Makefile.in (symmisc.o): Update dependencies.
10062
2d0c7962
EZ
100632003-04-14 Elena Zannoni <ezannoni@redhat.com>
10064
10065 * s390-nat.c: Include asm/types.h for addr_t.
10066
1947a811
CV
100672003-04-14 Corinna Vinschen <vinschen@redhat.com>
10068
10069 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10070 actually incoming type.
10071
adb616d7
AC
100722003-04-13 Andrew Cagney <cagney@redhat.com>
10073
10074 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10075 get_next_frame and get_frame_saved_regs.
10076
9b5e151c
AC
100772003-04-13 Andrew Cagney <cagney@redhat.com>
10078
10079 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10080 of gdbarch_num_regs.
10081
ef6e7e13
AC
100822003-04-13 Andrew Cagney <cagney@redhat.com>
10083
10084 * frame.h: Mention what replaced what in "struct frame_info".
10085 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10086 deprecated_update_frame_base_hack and
10087 deprecated_update_frame_pc_hack.
10088 * hppa-tdep.c: Ditto.
10089
61fbb938
DJ
100902003-04-13 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10093 to read_reg and update its comment. Remove regnum member.
10094 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10095 Don't call read_reg when setting in_reg. Call read_reg to get
10096 the frame base if it's in a register. Return the register number
10097 on the stack instead of in the context. Remove extra arguments
10098 to read_reg.
10099 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10100 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10101 the register number on the expression stack.
10102 (needs_frame_read_reg): Remove extra arguments.
10103
0d53c4c4
DJ
101042003-04-13 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10107 made non-static.
10108 (execute_stack_op): All callers updated.
10109 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10110 * dwarf2loc.c (find_location_expression): New function.
10111 (dwarf_expr_frame_base): Call it.
10112 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10113 (dwarf2_tracepoint_var_ref): New function, broken out from
10114 locexpr_tracepoint_var_ref.
10115 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10116 Make static.
10117 (loclist_read_variable, loclist_read_needs_frame): New functions.
10118 (loclist_describe_location, loclist_tracepoint_var_ref): New
10119 functions.
10120 (dwarf2_loclist_funcs): New struct location_funcs.
10121 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10122 (struct dwarf2_locexpr_baton): Add comments.
10123 (dwarf2_loclist_funcs): New extern.
10124 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10125 base_address and base_known.
10126 (dwarf_loc_buffer): New variable.
10127 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10128 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10129 (dwarf2_has_info): Initialize dwarf_loc_offset.
10130 (dwarf2_build_psymtabs): Read in .debug_loc.
10131 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10132 DWARF_LOC_SIZE.
10133 (psymtab_to_symtab_1): Likewise. Move base address calculation
10134 here, from...
10135 (dwarf2_get_pc_bounds): ... here. Use the base address from
10136 cu_header.
10137 (dwarf2_symbol_mark_computed): Handle location lists.
10138
6aca59a3
DJ
101392003-04-13 Daniel Jacobowitz <drow@mvista.com>
10140
10141 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10142 if the linkage name demangled successfully.
10143
aca1fcd0
MK
101442003-04-13 Mark Kettenis <kettenis@gnu.org>
10145
97095916
MK
10146 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10147 disassmbly_flavour): Removed.
10148
aca1fcd0
MK
10149 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10150
562a961f
MK
101512003-04-13 Mark Kettenis <kettenis@gnu.org>
10152
10153 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10154
bd013d54
AC
101552003-04-12 Andrew Cagney <cagney@redhat.com>
10156
10157 * frame.h (struct frame_info): Move definition from here ...
10158 * frame.c (struct frame_info): ... to here.
10159
167ef8b1
AC
101602003-04-12 Andrew Cagney <cagney@redhat.com>
10161
10162 * gdbthread.h (save_infrun_state): Delete parameter
10163 "prev_func_start".
10164 (struct thread_info): Delete field "prev_func_start".
10165 (load_infrun_state): Ditto.
10166 * thread.c (load_infrun_state, save_infrun_state): Update.
10167 * infrun.c (prev_func_start): Delete variable.
10168 (context_switch, init_wait_for_inferior): Update.
10169 (stop_stepping, keep_going): Update.
10170
da3331ec
AC
101712003-04-12 Andrew Cagney <cagney@redhat.com>
10172
10173 * gdbarch.sh: Add missing opaque declarations.
10174 * gdbarch.h: Regnerate.
10175 * symtab.h: Add missing opaque declarations.
10176 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10177 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10178 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10179 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10180 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10181 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10182 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10183 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10184 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10185 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10186 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10187 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10188 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10189
18adea3f
AC
101902003-04-11 Andrew Cagney <cagney@redhat.com>
10191
10192 * frame.c (get_frame_id): Return this frame's "id".
10193 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10194 function start.
10195 (legacy_saved_regs_this_id): Replace function body with
10196 internal-error.
10197 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10198 FRAME_OBSTACK_ZALLOC.
10199 (create_new_frame): Mark the frame ID as valid.
10200
2252e863
AO
102012003-04-11 Alexandre Oliva <aoliva@redhat.com>
10202
10203 * Makefile.in (libbfd_h): Added missing setting.
10204 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10205 according to the selected ABI.
10206
a8245ab8
JJ
102072003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10208
10209 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10210
6913c89a
AC
102112003-04-11 Andrew Cagney <cagney@redhat.com>
10212
10213 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10214 SAVED_PC_AFTER_CALL.
10215 * gdbarch.h, gdbarch.c: Regenerate.
10216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10217 * x86-64-tdep.c (x86_64_init_abi): Update.
10218 * vax-tdep.c (vax_gdbarch_init): Update.
10219 * v850-tdep.c (v850_gdbarch_init): Update.
10220 * sparc-tdep.c (sparc_gdbarch_init): Update.
10221 * sh-tdep.c (sh_gdbarch_init): Update.
10222 * s390-tdep.c (s390_gdbarch_init): Update.
10223 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10224 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10225 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10226 * mips-tdep.c (mips_gdbarch_init): Update.
10227 * mcore-tdep.c (mcore_gdbarch_init): Update.
10228 * m68k-tdep.c (m68k_gdbarch_init): Update.
10229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10230 * ia64-tdep.c (ia64_gdbarch_init): Update.
10231 (ia64_saved_pc_after_call): Update declaration.
10232 * i386ly-tdep.c (i386lynx_init_abi): Update.
10233 * i386-tdep.c (i386_gdbarch_init): Update.
10234 * hppa-tdep.c (hppa_gdbarch_init): Update.
10235 * h8300-tdep.c (h8300_gdbarch_init): Update.
10236 * frv-tdep.c (frv_gdbarch_init): Update.
10237 * cris-tdep.c (cris_gdbarch_init): Update.
10238 * avr-tdep.c (avr_gdbarch_init): Update.
10239 * arm-tdep.c (arm_gdbarch_init): Update.
10240 * alpha-tdep.c (alpha_gdbarch_init): Update.
10241 * ns32knbsd-nat.c (frame_num_args): Update.
10242 * ns32k-tdep.c (umax_frame_num_args): Update.
10243 * mips-tdep.c (mips_init_frame_pc_first): Update.
10244 * infrun.c (step_over_function): Update.
10245 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10246 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10247 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10248 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10249 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10250 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10251 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10252 * arch-utils.c (init_frame_pc_default): Update.
10253 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10254 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10255 declaration.
8ffd9b1b 10256
38edeab8
AC
102572003-04-11 Andrew Cagney <cagney@redhat.com>
10258
10259 * i387-tdep.c: Update copyright.
10260 (i387_to_double): Delete function.
10261 (double_to_i387): Delete function.
10262
81f8a206
AC
102632003-04-10 Andrew Cagney <cagney@redhat.com>
10264
10265 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10266 frame's function's address. Simplify.
10267 (d10v_frame_unwind_cache): Check that the frame's function is
10268 non-zero.
10269
6e691f7a
JB
102702003-04-10 Jim Blandy <jimb@redhat.com>
10271
10272 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10273 call to set_gdbarch_deprecated_push_arguments.
10274
7f78e237
AC
102752003-04-10 Andrew Cagney <cagney@redhat.com>
10276
10277 * frame.c (fprint_frame_id): New function.
10278 (fprint_frame_type, fprint_frame): New function.
10279 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10280 (create_sentinel_frame, get_frame_id): Ditto.
10281 (frame_id_p, frame_id_eq): Ditto.
10282 (frame_id_inner, create_new_frame): Ditto.
10283 (legacy_get_prev_frame, get_prev_frame): Ditto.
10284 (deprecated_update_frame_pc_hack): Ditto.
10285 (frame_register_unwind): Ditto.
10286 (deprecated_update_frame_base_hack): Ditto.
10287
f870b49b
CV
102882003-04-10 Corinna Vinschen <vinschen@redhat.com>
10289
10290 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10291 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10292 frame_chain function.
10293 * Makefile.in: Add dependencies due to above change.
10294
7c86889b
CV
102952003-04-10 Corinna Vinschen <vinschen@redhat.com>
10296
10297 * blockframe.c (legacy_frame_chain_valid): Move call to
10298 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10299 inside_entry_file.
10300
d0a55772
AC
103012003-04-09 Andrew Cagney <cagney@redhat.com>
10302
10303 * frame.h (struct frame_id): Replace "pc" and "base" with
10304 "stack_addr" and "code_addr". Update comments.
10305 (frame_id_build): Update parameter names and comment.
10306 (struct frame_info): Replace "id_p" and "id" with "this_id".
10307 * dummy-frame.c (dummy_frame_this_id): Update.
10308 * breakpoint.c (print_one_breakpoint): Update.
10309 * frame.c (get_frame_id): Update.
10310 (get_frame_base, frame_id_build): Update.
10311 (create_sentinel_frame, legacy_get_prev_frame): Update.
10312 (deprecated_update_frame_base_hack): Update.
10313 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10314 (frame_id_inner): Ditto.
10315
ac16bf07
AC
103162003-04-09 Andrew Cagney <cagney@redhat.com>
10317
10318 * defs.h (gdb_print_host_address): Make "addr" parameter a
10319 pointer constant.
10320 * utils.c (gdb_print_host_address): Update.
10321
366cfc9e
KB
103222003-04-09 Kevin Buettner <kevinb@redhat.com>
10323
10324 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10325 register number for R0 is 0.
10326
cd983b5c
JB
103272003-04-09 J. Brobecker <brobecker@gnat.com>
10328
10329 * frame.h (struct gdbarch): Add opaque structure definition
10330 to avoid a compilation warning on LynxOS 4.0.
10331
d1340264
AC
103322003-04-09 Andrew Cagney <cagney@redhat.com>
10333
10334 * frame.h (struct frame_info): Delete field "pc". Replace
10335 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10336 structure.
10337 * frame.c (frame_pc_unwind): Update.
10338 (create_sentinel_frame): Do not set "pc".
10339 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10340 (get_frame_pc): Call frame_pc_unwind.
10341 (deprecated_update_frame_pc_hack): Update.
10342 (create_new_frame): Use "pc" not "->pc".
10343
90a6fffb
AC
103442003-04-09 Andrew Cagney <cagney@redhat.com>
10345
10346 * frame.c (get_frame_id): Eliminate code updating "frame".
10347 (legacy_get_prev_frame): Ditto.
10348 (get_frame_base): Return id.base directly.
10349 (deprecated_update_frame_base_hack): Update "id.base".
10350 * frame.h (struct frame_info): Delete field "frame".
10351
2fbce691
AC
103522003-04-09 Andrew Cagney <cagney@redhat.com>
10353
10354 * NEWS: Mention that the "Sequent family" is obsolete.
10355 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10356 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10357 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10358 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10359 * config/i386/tm-ptx4.h: Obsolete file.
10360 * config/i386/tm-ptx.h: Obsolete file.
10361 * symm-tdep.c: Obsolete file.
10362 * config/i386/symmetry.mt: Obsolete file.
10363 * config/i386/tm-symmetry.h: Obsolete file.
10364 * symm-nat.c: Obsolete file.
10365 * config/i386/nm-symmetry.h: Obsolete file.
10366 * config/i386/xm-symmetry.h: Obsolete file.
10367 * config/i386/symmetry.mh: Obsolete file.
10368 * config/i386/nm-ptx4.h: Obsolete file.
10369 * config/i386/ptx4.mh: Obsolete file.
10370 * config/i386/ptx.mt: Obsolete file.
10371 * config/i386/ptx.mh: Obsolete file.
10372 * config/i386/xm-ptx4.h: Obsolete file.
10373 * config/i386/xm-ptx.h: Obsolete file.
10374
78c43945
AC
103752003-04-09 Andrew Cagney <cagney@redhat.com>
10376
10377 Obsolete mips*-*-mach3*.
10378 * NEWS: Mention that mips*-*-mach3* is obsolete.
10379 * m3-nat.c: Obsolete file.
10380 * config/nm-m3.h: Obsolete file.
10381 * config/mips/tm-mipsm3.h: Obsolete file.
10382 * config/mips/mipsm3.mt: Obsolete file.
10383 * config/mips/mipsm3.mh: Obsolete file.
10384 * config/mips/xm-mipsm3.h: Obsolete file.
10385 * mipsm3-nat.c: Obsolete file.
10386 * configure.host: Obsolete mips-dec-mach3*.
10387 * configure.tgt: Obsolete mips*-*-mach3*.
10388
f1908289
AC
103892003-04-09 Andrew Cagney <cagney@redhat.com>
10390
10391 * doublest.h: Update copyright.
10392 (deprecated_store_floating, deprecated_extract_floating): Rename
10393 store_floating and extract_floating. Update comments.
10394 * doublest.c: Update copyright.
10395 (extract_floating_by_length): Replace extract_floating.
10396 (store_floating_by_length): Replace store_floating.
10397 (deprecated_extract_floating): New function.
10398 (deprecated_store_floating): New function.
10399 (extract_typed_floating): Call extract_floating_by_length.
10400 (store_typed_floating): Call store_floating_by_length.
10401 * x86-64-tdep.c (x86_64_store_return_value): Update.
10402 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10403 (sh64_extract_return_value): Update.
10404 (sh_sh4_register_convert_to_virtual): Update.
10405 (sh_sh64_register_convert_to_virtual): Update.
10406 (sh_sh4_register_convert_to_raw): Update.
10407 (sh_sh64_register_convert_to_raw): Update.
10408 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10409 (rs6000_register_convert_to_raw): Update.
10410 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10411 (ia64_register_convert_to_raw): Update.
10412 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10413 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10414 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10415 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10416 (alpha_register_convert_to_raw): Update.
10417
4443bd83
AC
104182003-04-08 Andrew Cagney <cagney@redhat.com>
10419
10420 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10421 * gdbarch.h, gdbarch.c: Re-generate.
10422 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10423 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10424 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10425 conditionally, use frame_pc_unwind as an alternative. Add
10426 comments.
10427 * arch-utils.c (init_frame_pc_default): Only call
10428 SAVED_PC_AFTER_CALL when available.
10429
c0236d92
EZ
104302003-04-08 Elena Zannoni <ezannoni@redhat.com>
10431
fbe586ae 10432 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10433 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10434 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10435 (start_remote): Ditto.
10436 (handle_inferior_event): Ditto.
10437 (save_inferior_status): Ditto.
10438 (restore_inferior_status): Ditto.
10439 * infcmd.c (attach_command): Ditto.
10440 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10441 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10442 * alpha-tdep.c (heuristic_proc_start): Ditto.
10443 * mips-tdep.c (heuristic_proc_start): Ditto.
10444 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10445 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10446 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10447 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10448 * remote-vx.c (vx_create_inferior): Ditto.
10449
104502003-04-08 Elena Zannoni <ezannoni@redhat.com>
10451
10452 * infrun.c (stop_soon_quietly): Make it an enum, to better
10453 override the default behavior of handle_inferior_event.
10454 (clear_proceed_status): Update uses of stop_soon_quietly to
10455 reflect that it is now an enum.
10456 (start_remote): Ditto.
10457 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10458 is set to handle the new GNU/Linux kernel behavior for
10459 attach/sigstop. Update uses of stop_soon_quietly.
10460 * inferior.h (enum stop_kind): New enum.
10461 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10462 Reset normal handle_inferior_event behavior, afterwards.
10463 * fork-child.c (startup_inferior): Update.
10464 * alpha-tdep.c (heuristic_proc_start): Update.
10465 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10466 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10467 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10468 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10469 * remote-vx.c (vx_create_inferior): Update.
10470 * mips-tdep.c (heuristic_proc_start): Update.
10471
1211bce3
EZ
104722003-04-07 Elena Zannoni <ezannoni@redhat.com>
10473
10474 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10475 be freed more than once, causing wild memory corruptions.
1211bce3 10476 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10477 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10478 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10479 with the "core" target.
1211bce3 10480
f0ef6b29
KB
104812003-04-07 Kevin Buettner <kevinb@redhat.com>
10482
10483 * mips-tdep.c (mips_print_fp_register): New function, created from
10484 do_fp_register_row(). Registers are now (also) printed as hex.
10485 Only one register is printed per row.
10486 (mips_print_register, do_fp_register_row): Print floating point
10487 registers with mips_print_fp_register().
10488
8cf71652
AC
104892003-04-06 Andrew Cagney <cagney@redhat.com>
10490
5e488a7b
AC
10491 * valprint.h (inspect_it): Add extern declaration.
10492 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10493 (selectors_info, classes_info): Ditto.
10494 (find_objc_msgcall): Fix indentation.
10495 (objc_printstr): Delete extern declarations.
10496
8cf71652
AC
10497 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10498
e6ba3bc9
AC
104992003-04-06 Andrew Cagney <cagney@redhat.com>
10500
10501 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10502 Update comment.
10503 * frame.c (legacy_saved_regs_this_id): Update.
10504 (legacy_get_prev_frame): Update.
10505 * xstormy16-tdep.c: Update comment.
10506 * sparc-tdep.c (sparc_frame_chain): Update comment.
10507 * blockframe.c (legacy_frame_chain_valid): Update.
10508
55e1d7e7
AC
105092003-04-06 Andrew Cagney <cagney@redhat.com>
10510
996179ee
AC
10511 * valprint.c (val_print_type_code_int): Delete #ifdef
10512 PRINT_TYPELESS_INTEGER code.
10513
55e1d7e7
AC
10514 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10515 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10516 multi-arch definition.
10517 * gdbarch.h: Re-generate.
10518
43bd9a9e
AC
105192003-04-05 Andrew Cagney <cagney@redhat.com>
10520
10521 Eliminate FRAME_FIND_SAVED_REGS.
10522 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10523 Change FSR parameter to a pointer.
10524 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10525 Assume FSR parameter is a pointer.
10526 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10527 Make fsr a pointer.
10528 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10529 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10530 saved_regs a pointer.
10531 (hppa_frame_saved_pc): Ditto.
10532 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10533 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10534 pointer.
10535 (restore_pc_queue): Make fsr a pointer.
10536 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10537 (hppa_frame_chain): Make saved_regs a pointer, call
10538 hppa_frame_init_saved_regs.
10539 * sparc-tdep.c: Include "gdb_assert.h".
10540 (sparc_frame_find_saved_regs): Replace internal_error with
10541 gdb_assert.
10542 * remote-vxsparc.c (vx_read_register): Delete reference to
10543 FRAME_FIND_SAVED_REGS.
10544 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10545 * gdbarch.h: Regenerate.
10546 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10547 (deprecated_get_frame_saved_regs): Delete declaration.
10548 (struct frame_saved_regs): Delete definition.
10549 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10550 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10551 (hppa_frame_find_saved_regs): Delete declaration.
10552 (FRAME_FIND_SAVED_REGS): Delete macro.
10553 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10554 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10555 FRAME_FIND_SAVED_REGS in comment.
10556
be41e9f4
AC
105572003-04-05 Andrew Cagney <cagney@redhat.com>
10558
10559 * frame.c (frame_func_unwind, get_frame_func): New functions.
10560 * frame.h (get_frame_func, frame_func_unwind): Declare.
10561 (struct frame_info): Add field "prev_func" for caching the
10562 previous frame's function address.
10563 * arm-tdep.c (arm_frameless_function_invocation): Combine
10564 get_pc_function_start and get_frame_pc into get_frame_func.
10565 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10566 (sh64_nofp_frame_init_saved_regs): Ditto.
10567 * s390-tdep.c (s390_function_start): Ditto.
10568 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10569 (rs6000_frameless_function_invocation): Ditto.
10570 (rs6000_frame_saved_pc): Ditto.
10571 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10572 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10573 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10574 (i386_frame_init_saved_regs): Ditto.
10575 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10576 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10577 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10578 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10579 * blockframe.c (frameless_look_for_prologue): Ditto.
10580
a01dd7cc
AC
105812003-04-05 Andrew Cagney <cagney@redhat.com>
10582
10583 * frame.c (legacy_get_prev_frame): Link prev to next at the
10584 function start. Update comments.
10585
5e5592e6
AC
105862003-04-05 Andrew Cagney <cagney@redhat.com>
10587
10588 * frame.c (get_frame_id): Update comment.
10589 (legacy_get_prev_frame): Update comment.
10590 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10591 * gdbarch.h: Regenerate.
10592 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10593 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10594
6fba5002
AC
105952003-04-05 Andrew Cagney <cagney@redhat.com>
10596
10597 * stack.c (print_frame_info): Use get_frame_pc.
10598
7df05f2b
AC
105992003-04-04 Andrew Cagney <cagney@redhat.com>
10600
10601 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10602 the frame's type from the unwinder.
10603 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10604 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10605 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10606 (get_frame_base_address): Use get_frame_type.
10607 (get_frame_locals_address, get_frame_args_address): Ditto.
10608 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10609 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10610 (struct frame_info): Add comment explaining why the frame contains
10611 a "type" field.
10612 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10613 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10614 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10615 NORMAL_FRAME.
10616 * frame-unwind.h: Include "frame.h".
10617 (struct frame_unwind): Add "type" field.
10618 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10619
11889732
AC
106202003-04-04 Andrew Cagney <cagney@redhat.com>
10621
10622 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10623 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10624 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10625 get_frame_base.
10626 (d10v_unwind_dummy_id): Use frame_id_build.
10627 * frame.c (find_frame_sal): Use get_frame_pc.
10628 (create_new_frame): Use deprecated_update_frame_pc_hack and
10629 deprecated_update_frame_base_hack.
10630 (create_sentinel_frame): Add comment about ->pc going away.
10631 (get_prev_frame): Add comment about ->pc going away.
10632 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10633 frame_id_build, deprecated_update_frame_pc_hack and
10634 deprecated_update_frame_base_hack.
10635 (select_frame): Use get_frame_pc.
10636 (legacy_saved_regs_this_id): Use frame_id_build.
10637
50c46a0d
EZ
106382003-04-04 Elena Zannoni <ezannoni@redhat.com>
10639
fbe586ae
RH
10640 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10641 signed integer case.
10642 (classify_argument): Handle enumerations and references.
50c46a0d 10643
50bbdbd9
AC
106442003-04-04 Andrew Cagney <cagney@redhat.com>
10645
10646 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10647 ID to NULL.
10648
36018d2e
AF
106492003-04-01 Adam Fedor <fedor@gnu.org>
10650
10651 * gdb/objc-lang.c (selectors_info): Replace calls to
10652 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10653 SYMBOL_NATURAL_NAME.
10654 (classes_info, find_methods): Likewise.
10655
35cec841
KB
106562003-04-03 Kevin Buettner <kevinb@redhat.com>
10657
10658 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10659 ``mach'' to the value determined by bfd_default_set_arch_mach().
10660
43136899
BR
106612003-04-02 Bob Rossi <bob_rossi@cox.net>
10662
10663 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10664 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10665 (mi-cmd-file.o): Update dependencies.
10666
040b99fd
KB
106672003-04-01 Kevin Buettner <kevinb@redhat.com>
10668
10669 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10670 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10671
9a3d7dfd
AF
106722003-04-01 Adam Fedor <fedor@gnu.org>
10673
10674 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10675 * language.h (struct language_defn): Add la_demangle.
10676 (language_demangle): Declare.
10677 * language.c (language_demangle): New function.
10678 (unk_lang_demangle): Likewise.
10679 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10680 Add ukn_lang_demangle.
9a3d7dfd 10681 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10682 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10683 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10684 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10685 * jv-lang.c (java_demangle): New function
10686 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10687 * objc-lang.c (objc_demangle): Add options argument
10688 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10689 * maint.c (maintenance_demangle): Replace switch with
10690 call to language_demangle.
10691 * utils.c (fprintf_symbol_filtered): Likewise.
10692
5e074003
AC
106932003-04-01 Andrew Cagney <cagney@redhat.com>
10694
10695 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10696 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10697 PRINT_TYPELESS_INTEGER.
10698 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10699 PUSH_RETURN_ADDRESS.
10700
270cb5d6
AC
107012003-04-01 Andrew Cagney <cagney@redhat.com>
10702
10703 * Makefile.in (d10v-tdep.o): Update dependencies.
10704 * d10v-tdep.c: Include "frame-base.h".
10705 (d10v_frame_unwind): Make constant.
10706 (d10v_frame_base_address): New function.
10707 (d10v_frame_base): New variable.
10708 (d10v_gdbarch_init): Set frame_base default.
10709 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10710 comment for base.
10711 (d10v_frame_unwind_cache): Set and use "prev_sp".
10712 (d10v_frame_this_id): Use the previous frame's inner most stack
10713 address and this frame's func address for the frame ID. Use
10714 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10715
6bfb3e36
AC
107162003-04-01 Andrew Cagney <cagney@redhat.com>
10717
10718 * frame.h (get_frame_locals_address, get_frame_args_address):
10719 Refer to the base address, instead of the address of the first
10720 local or parameter.
8ffd9b1b 10721
da62e633
AC
107222003-04-01 Andrew Cagney <cagney@redhat.com>
10723
10724 Add frame debug info addresses:
10725 * frame-base.c: New file.
10726 * frame-base.h: New file.
10727 * frame.h (struct frame_base): Add opaque declaration.
10728 (get_frame_base): Update comment.
10729 (get_frame_base_address): Declare.
10730 (get_frame_locals_address): Declare.
10731 (get_frame_args_address): Declare.
10732 (struct frame_info): Add "base" and "base_cache". Update
10733 comments on the unwinder.
10734 * frame.c: Include "frame-base.h".
10735 (get_frame_locals_address): New function.
10736 (get_frame_base_address): New function.
10737 (get_frame_args_address): New function.
10738 * findvar.c (read_var_value): Use get_frame_locals_address and
10739 get_frame_args_address.
10740 * stack.c (frame_info): Use get_frame_locals_address and
10741 get_frame_args_address.
10742 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10743 moved to "frame-base.c".
10744 * printcmd.c (print_frame_nameless_args): Ditto.
10745 * symtab.h (address_class): Update comments.
10746 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10747 get_frame_base_address.
10748 * dwarf2expr.c (execute_stack_op): Ditto.
10749 * Makefile.in (frame_base_h): Define.
10750 (frame.o): Update dependencies.
10751 (frame-base.o): Add dependencies.
10752 (SFILES): Add frame-base.c.
10753 (COMMON_OBS): Add frame-base.o.
10754
3d30e9c2
AC
107552003-04-01 Andrew Cagney <cagney@redhat.com>
10756
10757 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10758 CALL_DUMMY_LENGTH): Ditto.
10759 * gdbarch.c: Re-generate.
10760 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10761 (CALL_DUMMY_LENGTH): Delete macro.
10762 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10763 * arm-tdep.c (arm_gdbarch_init): Ditto.
10764 * avr-tdep.c (avr_gdbarch_init): Ditto.
10765 * cris-tdep.c (cris_gdbarch_init): Ditto.
10766 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10767 * frv-tdep.c (frv_gdbarch_init): Ditto.
10768 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10769 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10770 * i386-tdep.c (i386_gdbarch_init): Ditto.
10771 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10773 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10774 * mips-tdep.c (mips_gdbarch_init): Ditto.
10775 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10776 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10777 * s390-tdep.c (s390_gdbarch_init): Ditto.
10778 * sh-tdep.c (sh_gdbarch_init): Ditto.
10779 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10780 * v850-tdep.c (v850_gdbarch_init): Ditto.
10781 * vax-tdep.c (vax_gdbarch_init): Ditto.
10782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10783
ce0c7262
CV
107842003-04-01 Corinna Vinschen <vinschen@redhat.com>
10785
10786 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10787
73dd234f
AC
107882003-04-01 Andrew Cagney <cagney@redhat.com>
10789
10790 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10791 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10792 * gdbarch.h, gdbarch.c: Re-generate.
10793 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10794 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10795 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10796 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10797 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10798 * infcmd.c (run_stack_dummy): Simplify assuming
10799 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10800 * infrun.c (handle_inferior_event): Ditto.
10801 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10802 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10803 * arm-tdep.c (arm_gdbarch_init): Ditto.
10804 * avr-tdep.c (avr_gdbarch_init): Ditto.
10805 * cris-tdep.c (cris_gdbarch_init): Ditto.
10806 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10807 * frv-tdep.c (frv_gdbarch_init): Ditto.
10808 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10809 * i386-tdep.c (i386_gdbarch_init): Ditto.
10810 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10812 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10813 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10814 * mips-tdep.c (mips_gdbarch_init): Ditto.
10815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10816 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10817 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10818 * s390-tdep.c (s390_gdbarch_init): Ditto.
10819 * sh-tdep.c (sh_gdbarch_init): Ditto.
10820 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10821 * v850-tdep.c (v850_gdbarch_init): Ditto.
10822 * vax-tdep.c (vax_gdbarch_init): Ditto.
10823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10824
97606a13
DJ
108252003-04-01 Daniel Jacobowitz <drow@mvista.com>
10826
10827 * symfile.c (symfile_relocate_debug_section): Update call to
10828 bfd_simple_get_relocated_section_contents.
10829
e8ab51f7
AC
108302003-03-31 Andrew Cagney <cagney@redhat.com>
10831
10832 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10833 * gdbarch.h, gdbarch.c: Regenerate.
10834 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10835 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10836 available.
10837 * frame.h (generic_fix_call_dummy): Delete declaration.
10838 * dummy-frame.h: Update comment.
10839 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10841 fix_call_dummy.
10842 * sh-tdep.c (sh_gdbarch_init): Ditto.
10843 * s390-tdep.c (s390_gdbarch_init): Ditto.
10844 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10845 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10847 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10848 * i386-tdep.c (i386_gdbarch_init): Ditto.
10849 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10850 * frv-tdep.c (frv_gdbarch_init): Ditto.
10851 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10852 * cris-tdep.c (cris_gdbarch_init): Ditto.
10853 * avr-tdep.c (avr_gdbarch_init): Ditto.
10854 * arm-tdep.c (arm_gdbarch_init): Ditto.
10855
018d1b48
JB
108562003-03-31 J. Brobecker <brobecker@gnat.com>
10857
10858 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10859 (INIT_FRAME_AP): Likewise.
10860 (EXTRA_FRAME_INFO): Likewise.
10861
e9a2674e
AC
108622003-03-31 Andrew Cagney <cagney@redhat.com>
10863
10864 * gdbarch.sh: Include "symfile.h".
10865 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10866 * gdbarch.h, gdbarch.c: Re-generate.
10867 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10869 call_dummy_address, the default is at entry_point_address.
10870 * v850-tdep.c (v850_gdbarch_init): Ditto.
10871 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10872 * sh-tdep.c (sh_gdbarch_init): Ditto.
10873 * s390-tdep.c (s390_gdbarch_init): Ditto.
10874 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10875 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10876 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10877 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10878 * i386-tdep.c (i386_gdbarch_init): Ditto.
10879 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10880 * frv-tdep.c (frv_gdbarch_init): Ditto.
10881 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10882 * cris-tdep.c (cris_gdbarch_init): Ditto.
10883 * arm-tdep.c (arm_gdbarch_init): Ditto.
10884
e8a8712a
AC
108852003-03-31 Andrew Cagney <cagney@redhat.com>
10886
10887 * gdbarch.sh (CALL_DUMMY_P): Delete.
10888 * gdbarch.h, gdbarch.c: Re-generate.
10889 * inferior.h (CALL_DUMMY_P): Delete macro.
10890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10891 * vax-tdep.c (vax_gdbarch_init): Update.
10892 * v850-tdep.c (v850_gdbarch_init): Update.
10893 * sparc-tdep.c (sparc_gdbarch_init): Update.
10894 * sh-tdep.c (sh_gdbarch_init): Update.
10895 * s390-tdep.c (s390_gdbarch_init): Update.
10896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10897 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10898 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10899 * mips-tdep.c (mips_gdbarch_init): Update.
10900 * mcore-tdep.c (mcore_gdbarch_init): Update.
10901 * m68k-tdep.c (m68k_gdbarch_init): Update.
10902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10903 * ia64-tdep.c (ia64_gdbarch_init): Update.
10904 * i386-tdep.c (i386_gdbarch_init): Update.
10905 * h8300-tdep.c (h8300_gdbarch_init): Update.
10906 * frv-tdep.c (frv_gdbarch_init): Update.
10907 * d10v-tdep.c (d10v_gdbarch_init): Update.
10908 * cris-tdep.c (cris_gdbarch_init): Update.
10909 * breakpoint.c (deprecated_frame_in_dummy): Update.
10910 * avr-tdep.c (avr_gdbarch_init): Update.
10911 * alpha-tdep.c (alpha_gdbarch_init): Update.
10912 * arm-tdep.c (arm_gdbarch_init): Update.
10913 * dummy-frame.c (dummy_frame_this_id): Update comments.
10914 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10915 * frame.c (legacy_get_prev_frame): Ditto.
10916 * valops.c (call_function_by_hand): Delete function.
10917 (hand_function_call): Rename to call_function_by_hand
10918
ed234cf8
AC
109192003-03-30 Andrew Cagney <cagney@redhat.com>
10920
10921 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10922 * value.h (struct value): Update comment.
ed234cf8 10923
06c77151
AC
109242003-03-30 Andrew Cagney <cagney@redhat.com>
10925
6c2b5168
AC
10926 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10927 D10V_FP_REGNUM.
10928 (d10v_gdbarch_init): Do not set fp_regnum.
10929
06c77151
AC
10930 * frame.c (get_frame_base): Force ID initialization.
10931 (get_prev_frame): Move computation of the frame ID from here ...
10932 (get_frame_id): ... to here.
10933 (legacy_get_prev_frame): Mark the frame ID as valid.
10934 * frame.h (struct frame_info): Add field "id_p".
10935
97a1a11c
MK
109362003-03-30 Mark Kettenis <kettenis@gnu.org>
10937
10938 * i386-tdep.c (i386_store_struct_return): Removed.
10939 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10940
6c0e89ed
AC
109412003-03-30 Andrew Cagney <cagney@redhat.com>
10942
10943 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10944 * gdbarch.h, gdbarch.c: Regenerate.
10945 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10947 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10948 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10949 * i386-tdep.c (i386_gdbarch_init): Ditto.
10950 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10951 * cris-tdep.c (cris_gdbarch_init): Ditto.
10952 * vax-tdep.c (vax_gdbarch_init): Ditto.
10953 * s390-tdep.c (s390_gdbarch_init): Ditto.
10954 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10955 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10956 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10957 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10958 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10959 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10960 * sparc-tdep.c (sparc_gdbarch_init): Update.
10961 * sh-tdep.c (sh_gdbarch_init): Update.
10962 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10963 * mips-tdep.c (mips_gdbarch_init): Update.
10964 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10965 * ia64-tdep.c (ia64_gdbarch_init): Update.
10966 * frv-tdep.c (frv_gdbarch_init): Update.
10967 * avr-tdep.c (avr_gdbarch_init): Update.
10968 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10969 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10970 instead of when push_dummy_call is not available.
8ffd9b1b 10971
f7dd6af2
AC
109722003-03-30 Andrew Cagney <cagney@redhat.com>
10973
10974 * infttrace.c: Include "gdbthread.h".
10975 (parent_attach_all): Fix function signature.
10976 (call_ptrace): Update call.
10977 * Makefile.in (infttrace.o): Update dependencies.
10978
28f617b3
AC
109792003-03-30 Andrew Cagney <cagney@redhat.com>
10980
10981 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10982 PUSH_RETURN_ADDRESS.
10983 * gdbarch.h, gdbarch.c: Regenerate.
10984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10985 * x86-64-tdep.c (x86_64_init_abi): Update.
10986 * v850-tdep.c (v850_gdbarch_init): Update.
10987 * sparc-tdep.c (sparc_gdbarch_init): Update.
10988 * sh-tdep.c (sh_gdbarch_init): Update.
10989 * s390-tdep.c (s390_gdbarch_init): Update.
10990 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10991 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10992 * mips-tdep.c (mips_gdbarch_init): Update.
10993 * mcore-tdep.c (mcore_gdbarch_init): Update.
10994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10995 * ia64-tdep.c (ia64_gdbarch_init): Update.
10996 * i386-tdep.c (i386_gdbarch_init): Update.
10997 * h8300-tdep.c (h8300_gdbarch_init): Update.
10998 * frv-tdep.c (frv_gdbarch_init): Update.
10999 * cris-tdep.c (cris_gdbarch_init): Update.
11000 * avr-tdep.c (avr_gdbarch_init): Update.
11001 * arm-tdep.c (arm_gdbarch_init): Update.
11002 * valops.c (hand_function_call): Update.
11003
4d628cd7
AC
110042003-03-29 Andrew Cagney <cagney@redhat.com>
11005
11006 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11007 sizeof_call_dummy_words.
11008 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11009 define.
11010 * gdbarch.h: Regenerate.
8ffd9b1b 11011
65e82032
AC
110122003-03-29 Andrew Cagney <cagney@redhat.com>
11013
11014 * infttrace.h: New file.
11015 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11016 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11017 (hpread_read_doc_function_type): Detect an initialized type1.
11018 (hpread_quick_traverse): Initialize mod_name_string.
11019 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11020 (som_solib_get_solib_by_pc): Declare.
11021 (so_lib_thread_start_addr): Declare.
11022 (no_shared_libraries): Declare.
11023 * somread.c (init_import_symbols): Make static. Add forward
11024 declaration.
11025 * config/pa/nm-hppah.h: Include "infttrace.h" for
11026 parent_attach_all.
11027 (hppa_insert_hw_watchpoint): Declare.
11028 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11029 * hppah-nat.c: Include "gdb_string.h".
11030 (parent_attach_all): Delete extern declaration, moved to
11031 "infttrace.h".
11032 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11033 int.
11034 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11035 * Makefile.in (infttrace_h): Define.
11036 (hpread.o): Update dependencies.
11037 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11038 * hppa-hpux-tdep.c: Include "gdb_string.h".
11039 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11040 * infrun.c (handle_inferior_event): Always initialize
11041 stepped_after_stopped_by_watchpoint. Add default and remove
11042 fallthrough in switch statement.
11043 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11044 parameter to int.
11045 (hppa_remove_hw_watchpoint): Ditto.
11046
2c3bbe77
AC
110472003-03-29 Andrew Cagney <cagney@redhat.com>
11048
11049 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11050 offset.
11051
2dd604e7
RE
110522003-03-29 Richard Earnshaw <rearnsha@arm.com>
11053
11054 * arm-tdep.c (arm_push_arguments): Delete.
11055 (struct stack_item): New type.
11056 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11057 (arm_store_struct_return): Delte.
11058 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11059 arm_push_arguments or arm_store_struct_return.
11060
e8933a55
AC
110612003-03-28 Andrew Cagney <cagney@redhat.com>
11062
11063 * Makefile.in (d10v-tdep.o): Update dependencies.
11064 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11065 * d10v-tdep.c: Include "remote.h".
11066 (target_resume_hook): Delete extern declaration.
11067 (target_wait_loop_hook): Ditto.
11068 (tdisassemble_command): Eliminate assignment in "if" conditional.
11069 (d10v_ts2_register_sim_regno): Eliminate call to
11070 legacy_register_sim_regno.
11071 (d10v_ts3_register_sim_regno): Ditto.
11072
6949171e
JJ
110732003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11074
11075 * thread.c: Reindented.
11076 * lin-lwp.c: Ditto.
11077 * linux-proc.c: Ditto.
11078
98c7071f
BR
110792003-03-28 Bob Rossi <bob_rossi@cox.net>
11080
fbe586ae 11081 * MAINTAINERS (write after approval): Add myself.
98c7071f 11082
5edc9ca6
TR
110832003-03-27 Theodore A. Roth <troth@openavr.org>
11084
11085 * objc-exp.y: Add missing semi-colons.
11086
378bfd1b
AC
110872003-03-27 Andrew Cagney <cagney@redhat.com>
11088
11089 * regcache.c (write_sp): Delete function and references.
11090 * inferior.h (write_sp): Delete declaration.
11091 * valops.c (hand_function_call): Replace write_sp with
11092 TARGET_WRITE_SP.
11093 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11094 (sparc_pop_frame): Ditto.
8ffd9b1b 11095
56056df7
AC
110962003-03-27 Andrew Cagney <cagney@redhat.com>
11097
11098 * NEWS: Mention removal of support for hppa*-*-bsd* and
11099 hppa*-*-osf* natives, and hppa*-*-pro* target.
11100 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11101 * config/pa/xm-pa.h: Obsolete file.
11102 * config/pa/xm-hppab.h: Obsolete file.
11103 * config/pa/nm-hppab.h: Obsolete file.
11104 * config/pa/tm-hppab.h: Obsolete file.
11105 * config/pa/tm-hppao.h: Obsolete file.
11106 * config/pa/nm-hppao.h: Obsolete file.
11107 * config/pa/tm-pro.h: Obsolete file.
11108 * config/pa/hppaosf.mt: Obsolete file.
11109 * config/pa/hppaosf.mh: Obsolete file.
11110 * config/pa/hppapro.mt: Obsolete file.
11111 * config/pa/hppabsd.mt: Obsolete file.
11112 * config/pa/hppabsd.mh: Obsolete file.
11113 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11114 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11115 hppa*-*-osf*.
11116
5873a88d
AC
111172003-03-27 Andrew Cagney <cagney@redhat.com>
11118
11119 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11120 push_arguments. Don't set push_return_address or write_sp.
11121 (d10v_push_dummy_call): Replace d10v_push_arguments.
11122 (d10v_push_return_address, d10v_write_sp): Delete function,
11123 handled by push_dummy_call.
11124
b81774d8
AC
111252003-03-26 Andrew Cagney <cagney@redhat.com>
11126
11127 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11128 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11129 regcache and dummy_addr parameters.
11130 * gdbarch.h, gdbarch.c: Re-generate.
11131 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11132 available; assume it will handle stack alignment and return
11133 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11134 legacy_push_arguments.
11135 (legacy_push_arguments): Rename default_push_arguments.
11136 * value.h (legacy_push_arguments): Rename default_push_arguments.
11137 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11138 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11139 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11140 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11141 * config/i386/tm-symmetry.h: Update.
11142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11143 * x86-64-tdep.c (x86_64_init_abi): Update.
11144 * v850-tdep.c (v850_gdbarch_init): Update.
11145 * sparc-tdep.c (sparc_gdbarch_init): Update.
11146 * sh-tdep.c (sh_gdbarch_init): Update.
11147 * s390-tdep.c (s390_gdbarch_init): Update.
11148 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11149 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11150 * mips-tdep.c (mips_gdbarch_init): Update.
11151 * mcore-tdep.c (mcore_gdbarch_init): Update.
11152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11153 * ia64-tdep.c (ia64_gdbarch_init): Update.
11154 * i386-tdep.c (i386_gdbarch_init): Update.
11155 * hppa-tdep.c (hppa_gdbarch_init): Update.
11156 * h8300-tdep.c (h8300_gdbarch_init): Update.
11157 * frv-tdep.c (frv_gdbarch_init): Update.
11158 * d10v-tdep.c (d10v_gdbarch_init): Update.
11159 * cris-tdep.c (cris_gdbarch_init): Update.
11160 * avr-tdep.c (avr_gdbarch_init): Update.
11161 * arm-tdep.c (arm_gdbarch_init): Update.
11162 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11163 * alpha-tdep.c (alpha_gdbarch_init): Update.
11164
f541410f
DJ
111652003-03-26 Daniel Jacobowitz <drow@mvista.com>
11166
11167 * signals/signals.c (do_target_signal_to_host): Correct realtime
11168 signal range test.
11169
69f567ae
DJ
111702003-03-26 Daniel Jacobowitz <drow@mvista.com>
11171
11172 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11173 (struct sal_chain, map_catch_names): Remove.
11174 (catch_exception_command_1): Don't call
11175 handle_gnu_4_16_catch_command.
11176
d5d14a5a
DJ
111772003-03-26 Daniel Jacobowitz <drow@mvista.com>
11178
11179 From Mark Dettinger <dettinge@de.ibm.com>:
11180 * dwarf2cfi.c (read_2u): Increment pointer by two.
11181
bdd73e22
DJ
111822003-03-26 Daniel Jacobowitz <drow@mvista.com>
11183
11184 * signals/signals.c: Fix typos in last change.
11185
960cb555
DJ
111862003-03-26 Daniel Jacobowitz <drow@mvista.com>
11187
11188 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11189 not already defined. Use __SIGRTMIN if available.
11190 (target_signal_from_host): Remove SIGRTMIN block.
11191 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11192 the signal is within the realtime range.
11193
f636b87d
AF
111942003-03-25 Adam Fedor <fedor@gnu.org>
11195
11196 * Makefile.in (infrun.o): Add $(language_h)
11197 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11198 for language specific trampolines.
11199 * language.h (struct language_defn): Add skip_trampoline.
11200 (skip_language_trampoline): Declare.
11201 * language.c (unk_lang_trampoline, skip_language_trampoline):
11202 New functions.
11203 (unknown_language_defn, auto_language_defn, local_language_defn):
11204 Add ukn_lang_trampoline.
11205 * ada-lang.c (ada_language_defn): Add NULL for language
11206 specific skip_trampoline.
11207 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11208 scm-lang.c: Likewise.
11209 * objc-lang.c (objc_skip_trampoline): New function.
11210 (objc_language_defn): Add objc_skip_trampoline.
11211
28f617b3 112122003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11213
11214 * frame.c (get_prev_frame): Delay validating a frame's ID -
11215 non-NULL, didn't go backwards - until an attempt to unwind it to
11216 the previous frame.
11217
f933a9c5
AC
112182003-03-25 Andrew Cagney <cagney@redhat.com>
11219
11220 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11221 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11222 * gdbarch.h, gdbarch.c: Re-generate.
11223 * config/sparc/tm-sparc.h
11224 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11225 * sparc-tdep.c (sparc_gdbarch_init): Set
11226 deprecated_extra_stack_alignment_needed.
11227 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11229 extra_stack_alignment_needed.
11230 * v850-tdep.c (v850_gdbarch_init): Ditto.
11231 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11232 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11233 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11234 * cris-tdep.c (cris_gdbarch_init): Ditto.
11235 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11237
4183d812
AC
112382003-03-25 Andrew Cagney <cagney@redhat.com>
11239
11240 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11241 STORE_STRUCT_RETURN.
11242 * gdbarch.h, gdbarch.c: Regenerate.
11243 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11244 (d10v_push_arguments): Set the struct return register.
11245 (d10v_gdbarch_init): Update.
11246 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11247 * x86-64-tdep.c (x86_64_init_abi): Update.
11248 * vax-tdep.c (vax_gdbarch_init): Update.
11249 * v850-tdep.c (v850_gdbarch_init): Update.
11250 * sparc-tdep.c (sparc_gdbarch_init): Update.
11251 * sh-tdep.c (sh_gdbarch_init): Update.
11252 * s390-tdep.c (s390_gdbarch_init): Update.
11253 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11254 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11255 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11256 * mips-tdep.c (mips_gdbarch_init): Update.
11257 * mcore-tdep.c (mcore_gdbarch_init): Update.
11258 * m68k-tdep.c (m68k_gdbarch_init): Update.
11259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11260 * ia64-tdep.c (ia64_gdbarch_init): Update.
11261 * i386-tdep.c (i386_gdbarch_init): Update.
11262 * hppa-tdep.c (hppa_gdbarch_init): Update.
11263 * h8300-tdep.c (h8300_gdbarch_init): Update.
11264 * frv-tdep.c (frv_gdbarch_init): Update.
11265 * cris-tdep.c (cris_gdbarch_init): Update.
11266 * avr-tdep.c (avr_gdbarch_init): Update.
11267 * arm-tdep.c (arm_gdbarch_init): Update.
11268 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11269
1bf6d5cc
AC
112702003-03-25 Andrew Cagney <cagney@redhat.com>
11271
11272 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11273 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11274 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11275 * gdbarch.h, gdbarch.c: Regenerate.
11276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11277 call_dummy_stack_adjust_p.
11278 * vax-tdep.c (vax_gdbarch_init): Ditto.
11279 * v850-tdep.c (v850_gdbarch_init): Ditto.
11280 * sh-tdep.c (sh_gdbarch_init): Ditto.
11281 * s390-tdep.c (s390_gdbarch_init): Ditto.
11282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11283 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11284 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11285 * mips-tdep.c (mips_gdbarch_init): Ditto.
11286 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11287 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11289 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11290 * i386-tdep.c (i386_gdbarch_init): Ditto.
11291 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11292 * frv-tdep.c (frv_gdbarch_init): Ditto.
11293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11294 * cris-tdep.c (cris_gdbarch_init): Ditto.
11295 * avr-tdep.c (avr_gdbarch_init): Ditto.
11296 * arm-tdep.c (arm_gdbarch_init): Ditto.
11297 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11298 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11299 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11300 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11301 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11302 call_dummy_stack_adjust_p.
11303 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11304 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11305 * sparc-tdep.c (sparc32_push_arguments): Update.
11306 * valops.c (hand_function_call): Update.
11307
71c08af0
CV
113082003-03-25 Corinna Vinschen <vinschen@redhat.com>
11309
11310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11311 set_gdbarch_char_signed.
11312
30757f90
RE
113132003-03-25 Richard Earnshaw <rearnsha@arm.com>
11314
11315 PR cli/548
11316 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11317
03d48a7d
RE
113182003-03-25 Richard Earnshaw <rearnsha@arm.com>
11319
11320 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11321 (_initialize_arm_tdep): Don't set tm_print_insn.
11322
2cf6873c
AF
113232003-03-24 Adam Fedor <fedor@gnu.org>
11324
11325 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11326 * objc-lang.h: Add multiple inclusion protection.
11327 (start_msglist, add_msglist, end_msglist): Additional declarations.
11328
17c0759e
RE
113292003-03-24 Richard Earnshaw <rearnsha@arm.com>
11330
11331 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11332 value was renamed to ARM_FLOAT_SOFT_FPA.
11333
618ce49f
AC
113342003-03-23 Andrew Cagney <cagney@redhat.com>
11335
11336 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11337 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11338 * gdbarch.h, gdbarch.c: Regenerate.
11339 * valops.c (hand_function_call): Update.
11340 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11341 * frame.c (legacy_saved_regs_this_id): Update.
11342 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11343 * dummy-frame.h: Update.
11344 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11345 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11346 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11347 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11348 * config/m68k/tm-sun3.h: Update.
11349 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11351 * x86-64-tdep.c (x86_64_init_abi): Update.
11352 * vax-tdep.c (vax_gdbarch_init): Update.
11353 * v850-tdep.c (v850_gdbarch_init): Update.
11354 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11355 * sh-tdep.c (sh_gdbarch_init): Update.
11356 * s390-tdep.c (s390_gdbarch_init): Update.
11357 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11358 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11359 (frame_get_saved_regs): Update.
11360 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11361 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11363 * mips-tdep.c (mips_gdbarch_init): Update.
11364 * mcore-tdep.c (mcore_gdbarch_init): Update.
11365 * m68k-tdep.c (m68k_gdbarch_init): Update.
11366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11367 * ia64-tdep.c (ia64_gdbarch_init): Update.
11368 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11369 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11370 (i386_interix_back_one_frame): Update.
11371 * hppa-tdep.c (hppa_gdbarch_init): Update.
11372 (hppa_init_extra_frame_info): Update.
11373 * h8300-tdep.c (h8300_gdbarch_init): Update.
11374 * frv-tdep.c (frv_gdbarch_init): Update.
11375 * cris-tdep.c (cris_gdbarch_init): Update.
11376 * avr-tdep.c (avr_gdbarch_init): Update.
11377 * arm-tdep.c (arm_gdbarch_init): Update.
11378 * alpha-tdep.c (alpha_gdbarch_init): Update.
11379
fd50bc42
RE
113802003-03-22 Richard Earnshaw <rearnsha@arm.com>
11381
11382 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11383 (arm_get_fp_model): Declare.
11384 * arm-tdep.c (fp_model_strings): New string array.
11385 (arm_fp_model, current_fp_model): New variables.
11386 (arm_get_fp_model): New function.
11387 (arm_set_fp): New function.
11388 (set_fp_model_sfunc): New function.
11389 (show_fp_model): New function.
11390 (_initialize_arm_tdep): Add new command to set/show the FPU.
11391 (arm_extract_return_value): Use arm_get_fp_model.
11392 (arm_store_return_value): Likewise.
11393 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11394 to initialize the floating-point data types.
11395 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11396 model is FPA.
11397
26304000
RE
113982003-03-22 Richard Earnshaw <rearnsha@arm.com>
11399
11400 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11401 the current setting of each value.
11402 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11403 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11404 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11405 commands and add new version as subcommands of "set/show arm".
11406
afd7eef0
RE
114072003-03-22 Richard Earnshaw <rearnsha@arm.com>
11408
11409 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11410 (set_arm_command, show_arm_command): New functions.
11411 (_initialize_arm_tdep): Add them.
11412 (num_disassembly_options): Renamed from num_flavor_options.
11413 (valid_disassembly_styles): Renamed from valid_flavors.
11414 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11415 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11416 set_disassembly_flavor_sfunc.
11417 (set_disassembly_style): Renamed from set_disassembly_flavor.
11418 (arm_othernames): Updated.
11419 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11420 command. Add "set/show arm disassembly" commands. Deprecate
11421 "othernames" command.
11422
299a7944
RE
114232003-03-22 Richard Earnshaw <rearnsha@arm.com>
11424
11425 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11426 (arm-tdep.o): Depend on elf_arm_h.
11427
c1dac9e6
RE
114282003-03-22 Richard Earnshaw <rearnsha@arm.com>
11429
11430 * Makefile.in (coff_internal_h): Define.
11431 (arm-tdep.o): Update dependencies.
11432
2702d96c
RE
114332003-03-22 Richard Earnshaw <rearnsha@arm.com>
11434
11435 * arm-tdep.c (prologue_cache): Delete.
11436 (check_prologue_cache, save_prologue_cache): Delete.
11437 (arm_scan_prologue): Don't check or update the prologue_cache.
11438 (arm_gdb_arch_init): Don't initialize it.
11439 (_initialize_arm_tdep): Likewise.
11440
27d5d74b
SC
114412003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11442
11443 * MAINTAINERS (tui): Maintainer of tui code.
11444
1762d96d
CV
114452003-03-21 Corinna Vinschen <vinschen@redhat.com>
11446
11447 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11448 (i386-cygwin-tdep.o): Add dependencies.
11449 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11450 * i386-cygwin-tdep.c: New file.
11451 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11452 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11453
4c2e2391
AC
114542003-03-20 Andrew Cagney <cagney@redhat.com>
11455
f20d38b7
AC
11456 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11457 (handle_inferior_event): Remove code calling
11458 DYNAMIC_TRAMPOLINE_NEXTPC.
11459
0022b738
AC
11460 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11461 already has a full path.
11462
864dbc90
AC
11463 * main.c (gdb_main): Return 1.
11464 (captured_main): Call error to report an invalid interpreter.
11465
4c2e2391
AC
11466 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11467 * alpha-osf1-tdep.c: Include "gdb_string.h".
11468
5ef7553b
JB
114692003-03-19 J. Brobecker <brobecker@gnat.com>
11470
11471 Continuing work to convert the hppa targets to multiarch partial.
11472
11473 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11474 method, now that hppa_push_dummy_frame has a conformant prototype.
11475 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11476 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11477 for the switch to multiarch partial.
11478
7bde8967
KB
114792003-03-19 Kevin Buettner <kevinb@redhat.com>
11480
11481 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11482 when iss is issNull.
11483
b006a9e9
KB
114842003-03-18 Kevin Buettner <kevinb@redhat.com>
11485
11486 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11487 NUM_REGS bounds check.
11488
5e2e9765
KB
114892003-03-18 Kevin Buettner <kevinb@redhat.com>
11490
11491 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11492 * mips-tdep.c (gdb_assert.h): Include.
11493 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11494 (mips_register_name): Handle integer registers explicitly. Add
11495 bounds checking.
11496 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11497 (mips_lsi33k_reg_names): Don't list integer registers; they're
11498 handled by mips_register_name() now.
11499 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11500 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11501 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11502 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11503 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11504
a2867626
AC
115052003-03-18 Andrew Cagney <cagney@redhat.com>
11506
11507 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11508 a void pointer.
11509 * gdbtypes.h (print_scalar_formatted): Update declaration.
11510 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11511
06600e06
JB
115122003-03-18 J. Brobecker <brobecker@gnat.com>
11513
11514 * infrun.c (observer.h): Add #include.
11515 (normal_stop): Add call to observer_notify_normal_stop.
11516 * Makefile.in (infrun.o): Add dependency on observer.h.
11517
7daf4f5b
JB
115182003-03-18 J. Brobecker <brobecker@gnat.com>
11519
11520 Continuing work to convert the hppa targets to multiarch partial.
11521 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11522 parameter. Reformat comment.
11523 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11524 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11525 to match new profile.
11526
3371ccc0
JB
115272003-03-18 J. Brobecker <brobecker@gnat.com>
11528
11529 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11530 appear to be working in any case.
11531
4fbe891e
JB
115322003-03-18 J. Brobecker <brobecker@gnat.com>
11533
11534 * observer.c (observer_test_first_observer): New static variable.
11535 (observer_test_second_observer): Likewise.
11536 (observer_test_third_observer): Likewise.
11537 (observer_test_first_notification_function): New static function.
11538 (observer_test_second_notification_function): Likewise.
11539 (observer_test_third_notification_function): Likewise.
11540
a7ff40e7
JB
115412003-03-17 J. Brobecker <brobecker@gnat.com>
11542
11543 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11544 * somsolib.c (gdb_assert.h): Likewise.
11545 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11546 (somsolib.o): Likewise.
11547
26ca4152
AC
115482003-03-17 Andrew Cagney <cagney@redhat.com>
11549
11550 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11551 BFD. Simplify setting of di.endian.
11552
0a613259
AC
115532003-03-17 Andrew Cagney <cagney@redhat.com>
11554
11555 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11556 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11557
11558 From Elena Zannoni <ezannoni@redhat.com>
11559 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11560 vector and floating-point parameters.
11561 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11562 convention.
11563 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11564
1132738f
FN
115652003-03-17 Fernando Nasser <fnasser@redhat.com>
11566
11567 * MAINTAINERS: Remove my name from several maintainership roles.
11568
6dc42492
AC
115692003-03-17 Andrew Cagney <cagney@redhat.com>
11570
11571 Fix frame off-by-one bug.
11572 * frame-unwind.h (frame_this_id_ftype): Replace
11573 frame_unwind_id_ftype.
11574 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11575 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11576 with "prev_register".
11577 * frame-unwind.c (frame_unwind_find_by_pc): Return
11578 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11579 comment.
11580 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11581 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11582 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11583 (dummy_frame_unwind): Update.
11584 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11585 sentinel_frame_register_unwind.
11586 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11587 (sentinel_frame_unwinder): Update.
11588 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11589 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11590 * frame.c (create_sentinel_frame): Update. Initialize
11591 "prologue_cache" instead of "unwind_cache".
11592 (frame_register_unwind): Call this frame's prev_register with the
11593 next frame and this frame's prologue cache.
11594 (get_prev_frame): Simplify. Always call prev frame's this_id with
11595 this frame and prev frame's prologue cache. Document that this
11596 call is shifted one to the left when compared to the
11597 frame_register_unwind call.
11598 (legacy_saved_regs_prev_register): Replace
11599 frame_saved_regs_register_unwind.
11600 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11601 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11602 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11603 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11604 (d10v_frame_unwind): Update.
11605 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11606 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11607 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11608 "saved_regs" with "this_saved_regs".
11609
efd710d6
AC
116102003-03-16 Andrew Cagney <cagney@redhat.com>
11611
11612 * frame.c (frame_pop): Don't call target_store_registers. Fix
11613 problem reported by Mark Kettenis.
11614
4e259f09
MK
116152003-03-16 Mark Kettenis <kettenis@gnu.org>
11616
11617 * i386-tdep.c (i386_register_type): Renamed from
11618 i386_register_virtual_type. Adjust function signature.
11619 (i386_gdbarch_init): Set register_type instead of
11620 deprecated_max_register_raw_size,
11621 deprecated_max_register_virtual_size and register_virtual_type.
11622
055bb976
AC
116232003-03-14 Andrew Cagney <cagney@redhat.com>
11624
11625 * frame.c (get_prev_frame): When a legacy frame, always call
11626 legacy_get_prev_frame. Simplify unwind code using assumption that
11627 the unwinder is new.
11628 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11629 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11630 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11631
ac2adee5
AC
116322003-03-14 Andrew Cagney <cagney@redhat.com>
11633
11634 * frame.c (get_saved_register): Delete function.
11635 * frame.h (get_saved_register): Delete declaration.
11636 * xstormy16-tdep.c: Update comment.
11637 * regcache.h: Update comments.
11638 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11639 get_saved_register and extract_address, use
11640 frame_read_unsigned_register.
11641 (sparc_frame_saved_pc): Ditto.
11642 (sparc_get_saved_register): Instead of get_saved_register, use
11643 frame_register.
11644 (sparc_pop_frame): Ditto.
11645 * findvar.c: Update comments.
11646 (value_of_register): Call frame_register instead of
11647 get_saved_register.
11648 (value_from_register): Ditto.
11649 * config/sparc/tm-sparc.h: Update comment.
11650 * breakpoint.c: Update comment.
11651
129c1cd6
AC
116522003-03-14 Andrew Cagney <cagney@redhat.com>
11653
11654 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11655 GET_SAVED_REGISTER.
11656 * gdbarch.h, gdbarch.c: Re-generate.
11657 * frame.h: Update comments.
11658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11659 * x86-64-tdep.c (x86_64_init_abi): Update.
11660 * sparc-tdep.c (sparc_gdbarch_init): Update.
11661 * sh-tdep.c (sh_gdbarch_init): Update.
11662 * mips-tdep.c (mips_gdbarch_init): Update.
11663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11664 * cris-tdep.c (cris_gdbarch_init): Update.
11665 * ia64-tdep.c (ia64_gdbarch_init): Update.
11666 * frame.c (frame_register): Update.
11667 (get_saved_register): Update.
11668 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11669
749b82f6
AC
116702003-03-13 Andrew Cagney <cagney@redhat.com>
11671
11672 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11673 * gdbarch.h, gdbarch.c: Regenerate.
11674 * valops.c (hand_function_call): Update comment.
11675 * stack.c (return_command): Update comment.
11676 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11677 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11678 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11679 * x86-64-tdep.c (x86_64_init_abi): Update.
11680 * vax-tdep.c (vax_gdbarch_init): Update.
11681 * v850-tdep.c (v850_gdbarch_init): Update.
11682 * sparc-tdep.c (sparc_gdbarch_init): Update.
11683 * sh-tdep.c (sh_gdbarch_init): Update.
11684 * s390-tdep.c (s390_gdbarch_init): Update.
11685 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11686 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11687 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11688 * mips-tdep.c (mips_gdbarch_init): Update.
11689 * mcore-tdep.c (mcore_gdbarch_init): Update.
11690 * m68k-tdep.c (m68k_gdbarch_init): Update.
11691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11692 * ia64-tdep.c (ia64_gdbarch_init): Update.
11693 * i386-tdep.c (i386_gdbarch_init): Update.
11694 * hppa-tdep.c (hppa_gdbarch_init): Update.
11695 * h8300-tdep.c (h8300_gdbarch_init): Update.
11696 * frv-tdep.c (frv_gdbarch_init): Update.
11697 * cris-tdep.c (cris_gdbarch_init): Update.
11698 * avr-tdep.c (avr_gdbarch_init): Update.
11699 * arm-tdep.c (arm_gdbarch_init): Update.
11700 * alpha-tdep.c (alpha_gdbarch_init): Update.
11701
1594fa56
AC
117022003-03-13 Andrew Cagney <cagney@redhat.com>
11703
11704 * frame.c (legacy_frame_p): New function.
11705 (get_prev_frame): Use legacy_frame_p.
11706 * frame.h (legacy_frame_p): Declare.
11707
7717fda3
V
117082003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11709
fbe586ae 11710 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11711 listing corrected.
11712
0c67cbe9
V
117132003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11714
fbe586ae 11715 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11716
03febf99
AC
117172003-03-12 Andrew Cagney <cagney@redhat.com>
11718
11719 * frame.c (get_prev_frame): Rename the frame parameter to
11720 "this_frame".
11721 (get_next_frame, legacy_get_prev_frame): Ditto.
11722
0a1e1ca1
AC
117232003-03-12 Andrew Cagney <cagney@redhat.com>
11724
11725 * frame.c (get_current_frame): Check target_has_registers before
11726 checking target_has_stack.
11727 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11728 instead of deprecated_selected_frame.
11729 * findvar.c (value_of_register): Pass "frame", not
11730 deprecated_selected_frame, to value_of_builtin_reg.
11731
a66a9c23
AC
117322003-03-12 Andrew Cagney <cagney@redhat.com>
11733
11734 * regcache.c (regcache_cooked_write_signed): New function.
11735 (regcache_cooked_write_unsigned): New function.
11736 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11737 (regcache_cooked_read_signed): Fix regnum in range assertion.
11738 * regcache.h (regcache_cooked_write_signed): Declare.
11739 (regcache_cooked_write_unsigned): Declare.
11740
8bedc050
AC
117412003-03-12 Andrew Cagney <cagney@redhat.com>
11742
11743 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11744 * gdbarch.h, gdbarch.c: Re-generate.
11745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11746 * x86-64-tdep.h: Update.
11747 * x86-64-tdep.c (x86_64_init_abi): Update.
11748 * v850-tdep.c (v850_gdbarch_init): Update.
11749 * sparc-tdep.c (sparc_gdbarch_init): Update.
11750 * sh-tdep.c (sh_gdbarch_init): Update.
11751 * s390-tdep.c (s390_gdbarch_init): Update.
11752 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11753 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11754 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11755 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11756 * mips-tdep.c (mips_gdbarch_init): Update.
11757 * mcore-tdep.c (mcore_gdbarch_init): Update.
11758 * m68k-tdep.c (m68k_gdbarch_init): Update.
11759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11760 * ia64-tdep.c (ia64_gdbarch_init): Update.
11761 * i386-tdep.c (i386_gdbarch_init): Update.
11762 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11763 * hppa-tdep.c (hppa_gdbarch_init): Update.
11764 * h8300-tdep.c (h8300_gdbarch_init): Update.
11765 * frv-tdep.c (frv_gdbarch_init): Update.
11766 * cris-tdep.c (cris_gdbarch_init): Update.
11767 * avr-tdep.c (avr_gdbarch_init): Update.
11768 * arm-tdep.c (arm_gdbarch_init): Update.
11769 * alpha-tdep.c (alpha_gdbarch_init): Update.
11770 * sh-tdep.c (sh_init_extra_frame_info): Update.
11771 (sh64_init_extra_frame_info): Update.
11772 * ns32knbsd-nat.c (frame_num_args): Update.
11773 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11774 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11775 (xstormy16_frame_chain_valid): Update.
11776 * vax-tdep.c (vax_saved_pc_after_call): Update.
11777 * v850-tdep.c (v850_frame_chain): Update.
11778 (v850_pop_frame): Update.
11779 (v850_init_extra_frame_info): Update.
11780 * sparc-tdep.c (setup_arbitrary_frame): Update.
11781 * ns32k-tdep.c (umax_frame_num_args): Update.
11782 * s390-tdep.c (s390_pop_frame_regular): Update.
11783 * mn10300-tdep.c (mn10300_frame_chain): Update.
11784 (mn10300_pop_frame_regular): Update.
11785 (mn10300_init_extra_frame_info): Update.
11786 * mips-tdep.c (mips_init_frame_pc_first): Update.
11787 (mips_frame_chain): Update.
11788 (mips_pop_frame): Update.
11789 * mcore-tdep.c (mcore_frame_chain): Update.
11790 (mcore_pop_frame): Update.
11791 (mcore_init_extra_frame_info): Update.
11792 * arch-utils.c (init_frame_pc_default): Update.
11793 * m68k-tdep.c (isi_frame_num_args): Update.
11794 (delta68_frame_num_args): Update.
11795 (news_frame_num_args): Update.
11796 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11797 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11798 (alpha_frame_chain): Update.
11799 (alpha_pop_frame): Update.
11800 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11801 (hppa_init_extra_frame_info): Update.
11802 (hppa_frame_chain): Update.
11803 (hppa_frame_chain_valid): Update.
11804 * cris-tdep.c (cris_init_extra_frame_info): Update.
11805 * avr-tdep.c (avr_init_extra_frame_info): Update.
11806 * arm-tdep.c (arm_frame_chain_valid): Update.
11807 (arm_init_extra_frame_info): Update.
11808 (arm_pop_frame): Update.
11809 * frame.c (frame_pc_unwind): Update.
11810 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11811 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11812 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11813 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11814 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11815 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11816
7a25a7c1
AC
118172003-03-12 Andrew Cagney <cagney@redhat.com>
11818
11819 Eliminate the need for POP_FRAME.
11820 * frame.c (do_frame_unwind_register): New function.
11821 (frame_pop): When no POP_FRAME, pop the frame using register
11822 unwind and a scratch regcache.
11823 (frame_saved_regs_pop): Delete function.
11824 (trad_frame_unwinder): Update.
11825 * d10v-tdep.c (d10v_frame_pop): Delete function.
11826 (d10v_frame_unwind): Update.
11827 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11828 (sentinel_frame_unwinder): Update.
11829 * dummy-frame.c (dummy_frame_pop): Delete function.
11830 (dummy_frame_unwind): Update.
11831 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11832 (struct frame_unwind): Update.
11833
2f38ef89
KB
118342003-03-11 Kevin Buettner <kevinb@redhat.com>
11835
11836 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11837 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11838 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11839 Do range checks on register number obtained from debugging info.
11840 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11841 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11842 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11843 mapping function.
11844 (do_fp_register_row): Fix typo which caused double type to be
11845 used when attempting to unpack a float.
11846
552f4abf
JB
118472003-03-11 J. Brobecker <brobecker@gnat.com>
11848
11849 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11850
e0d2ae16
AC
118512003-03-11 Andrew Cagney <cagney@redhat.com>
11852
11853 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11854 frame. Problem found by Corinna Vinschen.
11855
ddbfdd06
PM
118562003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11857
11858 * doublest.c (floatformat_from_length): Accept also
11859 the real size of 'long double' type.
11860
088b2ddc 118612003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11862
088b2ddc 11863 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11864 * breakpoint.c (bpstat_copy): Copy the command lines as well
11865 as the old value, to match what is freed in bpstat_clear.
11866
f56f77c1
DC
118672003-03-10 David Carlton <carlton@math.stanford.edu>
11868
11869 * minsyms.c (add_minsym_to_hash_table): Replace
11870 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11871 (compare_minimal_symbols, compact_minimal_symbols)
11872 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11873 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11874 of DEPRECATED_SYMBOL_MATCHES_NAME.
11875 (lookup_minimal_symbol_solib_trampoline): Ditto.
11876
5602984a
AC
118772003-03-10 Andrew Cagney <cagney@redhat.com>
11878
11879 * regcache.h (regcache_cooked_read_ftype): Define.
11880 (regcache_save, regcache_restore): Add a cooked_read parameter.
11881 * regcache.c (regcache_save, regcache_restore): Update.
11882 (do_cooked_read): New function.
11883 (regcache_cpy): Pass do_cooked_read to regcache_save and
11884 regcache_restore.
11885
8bedc050
AC
118862003-03-10 Andrew Cagney <cagney@redhat.com>
11887
11888 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11889 * gdbarch.h, gdbarch.c: Re-generate.
11890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11891 * x86-64-tdep.h: Update.
11892 * x86-64-tdep.c (x86_64_init_abi): Update.
11893 * v850-tdep.c (v850_gdbarch_init): Update.
11894 * sparc-tdep.c (sparc_gdbarch_init): Update.
11895 * sh-tdep.c (sh_gdbarch_init): Update.
11896 * s390-tdep.c (s390_gdbarch_init): Update.
11897 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11898 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11899 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11900 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11901 * mips-tdep.c (mips_gdbarch_init): Update.
11902 * mcore-tdep.c (mcore_gdbarch_init): Update.
11903 * m68k-tdep.c (m68k_gdbarch_init): Update.
11904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11905 * ia64-tdep.c (ia64_gdbarch_init): Update.
11906 * i386-tdep.c (i386_gdbarch_init): Update.
11907 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11908 * hppa-tdep.c (hppa_gdbarch_init): Update.
11909 * h8300-tdep.c (h8300_gdbarch_init): Update.
11910 * frv-tdep.c (frv_gdbarch_init): Update.
11911 * cris-tdep.c (cris_gdbarch_init): Update.
11912 * avr-tdep.c (avr_gdbarch_init): Update.
11913 * arm-tdep.c (arm_gdbarch_init): Update.
11914 * alpha-tdep.c (alpha_gdbarch_init): Update.
11915 * sh-tdep.c (sh_init_extra_frame_info): Update.
11916 (sh64_init_extra_frame_info): Update.
11917 * ns32knbsd-nat.c (frame_num_args): Update.
11918 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11919 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11920 (xstormy16_frame_chain_valid): Update.
11921 * vax-tdep.c (vax_saved_pc_after_call): Update.
11922 * v850-tdep.c (v850_frame_chain): Update.
11923 (v850_pop_frame): Update.
11924 (v850_init_extra_frame_info): Update.
11925 * sparc-tdep.c (setup_arbitrary_frame): Update.
11926 * ns32k-tdep.c (umax_frame_num_args): Update.
11927 * s390-tdep.c (s390_pop_frame_regular): Update.
11928 * mn10300-tdep.c (mn10300_frame_chain): Update.
11929 (mn10300_pop_frame_regular): Update.
11930 (mn10300_init_extra_frame_info): Update.
11931 * mips-tdep.c (mips_init_frame_pc_first): Update.
11932 (mips_frame_chain): Update.
11933 (mips_pop_frame): Update.
11934 * mcore-tdep.c (mcore_frame_chain): Update.
11935 (mcore_pop_frame): Update.
11936 (mcore_init_extra_frame_info): Update.
11937 * arch-utils.c (init_frame_pc_default): Update.
11938 * m68k-tdep.c (isi_frame_num_args): Update.
11939 (delta68_frame_num_args): Update.
11940 (news_frame_num_args): Update.
11941 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11942 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11943 (alpha_frame_chain): Update.
11944 (alpha_pop_frame): Update.
11945 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11946 (hppa_init_extra_frame_info): Update.
11947 (hppa_frame_chain): Update.
11948 (hppa_frame_chain_valid): Update.
11949 * cris-tdep.c (cris_init_extra_frame_info): Update.
11950 * avr-tdep.c (avr_init_extra_frame_info): Update.
11951 * arm-tdep.c (arm_frame_chain_valid): Update.
11952 (arm_init_extra_frame_info): Update.
11953 (arm_pop_frame): Update.
11954 * frame.c (frame_pc_unwind): Update.
11955 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11956 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11957 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11958 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11959 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11960 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11961
12cc2063
AC
119622003-03-10 Andrew Cagney <cagney@redhat.com>
11963
11964 * gdbarch.sh (gdbarch_unwind_pc): New method.
11965 * gdbarch.h, gdbarch.c: Regenerate.
11966 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11967 but use read_pc and FRAME_SAVED_PC as fall backs.
11968 (frame_saved_regs_pc_unwind): Delete function.
11969 (trad_frame_unwinder): Update.
11970 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11971 (struct frame_unwind): Update.
11972 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11973 (dummy_frame_unwind): Update.
11974 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11975 (sentinel_frame_unwinder): Update.
11976 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11977 (d10v_frame_unwind): Update.
11978 (d10v_unwind_pc): New function.
11979 (d10v_gdbarch_init): Set unwind_pc.
11980
ef840a37
AC
119812003-03-10 Andrew Cagney <cagney@redhat.com>
11982
a2ce2e56
AC
11983 * gdbarch.h: Re-generate.
11984
ef840a37
AC
11985 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11986 PC.
11987 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11988 the PC register.
11989
08f3424b
MK
119902003-03-08 Mark Kettenis <kettenis@gnu.org>
11991
11992 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11993
1248ede2
AC
119942003-03-08 Andrew Cagney <cagney@redhat.com>
11995
11996 * cli-out.c: Update copyright.
11997 (cli_out_data): Define typedef. Use instead of ui_out_data.
11998
f49bacc8
AC
119992003-03-08 Andrew Cagney <cagney@redhat.com>
12000
12001 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12002 the result.
12003
9b05f993
AC
120042003-03-07 Andrew Cagney <cagney@redhat.com>
12005
12006 * gdbarch.sh: Don't generate two macro definitions when an
12007 undefined macro taking no arguments.
12008 * gdbarch.h: Regenerate.
8ffd9b1b 12009
166f4c7b
ML
120102002-03-07 Michal Ludvig <mludvig@suse.cz>
12011
12012 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12013 (x86_64_unwind_dummy_id): New functions.
12014 (x86_64_init_abi): Register these two new functions.
12015
6d686a84
ML
120162003-03-07 Michal Ludvig <mludvig@suse.cz>
12017
12018 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12019 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12020 separate function.
12021 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12022
6314f104
AC
120232003-03-05 Andrew Cagney <cagney@redhat.com>
12024
12025 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12026 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12027 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12028 to use unwind_dummy_id when a dummy frame.
12029 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12030 predicate.
12031 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12032
ceea5145
AC
120332003-03-05 Andrew Cagney <cagney@redhat.com>
12034
12035 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12036 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12037 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12038 values.
12039
0d843116
AC
120402003-03-05 Andrew Cagney <cagney@redhat.com>
12041
12042 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12043 (struct d10v_unwind_cache): Delete field "frameless". Replace
12044 "next_addr" with "sp_offset". Add "r11_offset".
12045 (d10v_frame_unwind_cache): Update.
12046 (prologue_find_regs): Update. When "mv r11, sp", save the
12047 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12048 RN was saved in r11_offset.
12049
b2579786
AC
120502003-03-05 Andrew Cagney <cagney@redhat.com>
12051
12052 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12053 cached PC value in the next frame.
12054
218e5956
AC
120552003-03-05 Andrew Cagney <cagney@redhat.com>
12056
12057 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12058 "id_unwind_cache" with "id".
12059 (frame_id_unwind): Delete declaration.
12060 * frame.c (frame_id_unwind): Delete function.
12061 (get_prev_frame): Call the frame id unwind method directly. Store
12062 the returned next frame's ID value in NEXT_FRAME. Note that there
12063 is a problem with the wrong unwind ID being called with the wrong
12064 unwind cache.
12065
ed363b1b
DJ
120662003-03-05 Daniel Jacobowitz <drow@mvista.com>
12067
12068 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12069
fe1f4a5e
DJ
120702003-03-05 James Ingham <jingham@apple.com>
12071 Daniel Jacobowitz <drow@mvista.com>
12072
12073 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12074 (auto_cp_abi): New variable.
12075 (current_cp_abi, num_cp_abis): Make static.
12076 (CP_ABI_MAX): Define.
12077 (cp_abis): Turn into an array.
12078 (value_virtual_fn_field): Fix formatting.
12079 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12080 takes a pointer.
12081 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12082 (list_cp_abis, _initialize_cp_abi): New functions.
12083 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12084 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12085 switch_to_cp_abi. Update prototype for register_cp_abi.
12086 * Makefile.in (cp-abi.o): Update dependencies.
12087 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12088 instead of switch_to_cp_abi.
12089 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12090 register_cp_abi.
12091 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12092 register_cp_abi.
12093 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12094
e4adbba9
DJ
120952003-03-05 Daniel Jacobowitz <drow@mvista.com>
12096
12097 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12098 * dwarf2loc.c: Include "regcache.h".
12099 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12100 register_size.
12101 * Makefile.in (dwarf2loc.o): Update dependencies.
12102
91ccbfc1
TR
121032003-03-04 Theodore A. Roth <troth@openavr.org>
12104
12105 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12106 number of io registers reported by remote target is not a multiple of
12107 step.
12108
3d4e8fd2
DC
121092003-03-04 David Carlton <carlton@math.stanford.edu>
12110
12111 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12112 (lookup_symbol_aux_psymtabs): Update call to
12113 lookup_partial_symbol.
12114 (lookup_transparent_type, find_main_psymtab)
12115 (make_symbol_overload_list): Ditto.
12116
ed42d87b
KH
121172003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12118
12119 * MAINTAINERS (Write after approval): Update my email address.
12120
a0ed5532
AC
121212003-03-03 Andrew Cagney <cagney@redhat.com>
12122
12123 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12124 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12125 predicate. Replace MAX_REGISTER_RAW_SIZE.
12126 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12127 MAX_REGISTER_VIRTUAL_SIZE.
12128 * regcache.c (legacy_max_register_raw_size): New function.
12129 (legacy_max_register_virtual_size): New function.
12130 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12131 (MAX_REGISTER_RAW_SIZE): Define.
12132 (legacy_max_register_raw_size): Declare.
12133 (legacy_max_register_virtual_size): Declare.
12134 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12135 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12136 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12137 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12138 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12139 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12140 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12141 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12142 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12144 * vax-tdep.c (vax_gdbarch_init): Update.
12145 * v850-tdep.c (v850_gdbarch_init): Update.
12146 * sparc-tdep.c (sparc_gdbarch_init): Update.
12147 * sh-tdep.c (sh_gdbarch_init): Update.
12148 * s390-tdep.c (s390_gdbarch_init): Update.
12149 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12150 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12151 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12152 * mips-tdep.c (mips_gdbarch_init): Update.
12153 * mcore-tdep.c (mcore_gdbarch_init): Update.
12154 * m68k-tdep.c (m68k_gdbarch_init): Update.
12155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12156 * ia64-tdep.c (ia64_gdbarch_init): Update.
12157 * i386-tdep.c (i386_gdbarch_init): Update.
12158 * hppa-tdep.c (hppa_gdbarch_init): Update.
12159 * h8300-tdep.c (h8300_gdbarch_init): Update.
12160 * frv-tdep.c (frv_gdbarch_init): Update.
12161 * cris-tdep.c (cris_gdbarch_init): Update.
12162 * avr-tdep.c (avr_gdbarch_init): Update.
12163 * arm-tdep.c (arm_gdbarch_init): Update.
12164 * alpha-tdep.c (alpha_gdbarch_init): Update.
12165 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12166 max_register_raw_size or max_register_virtual_size.
12167
8e437497
DC
121682003-03-03 David Carlton <carlton@math.stanford.edu>
12169
12170 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12171 SYMBOL_MATCHES_NAME, add comment.
12172 (SYMBOL_MATCHES_NATURAL_NAME): New.
12173 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12174 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12175 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12176 * symtab.c (lookup_partial_symbol): Use
12177 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12178 unhelpful comment.
12179 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12180 SYMBOL_MATCHES_NAME.
12181 Fix for PR c++/33.
12182
25120b0d
DC
121832003-03-03 David Carlton <carlton@math.stanford.edu>
12184
12185 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12186 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12187 by regexp matching against SYMBOL_NATURAL_NAME.
12188
78a11fb4
DC
121892003-03-03 David Carlton <carlton@math.stanford.edu>
12190
12191 * linespec.c (find_method): Extract code into collect_methods.
12192 (collect_methods): New.
12193
645dd519
MK
121942003-03-02 Mark Kettenis <kettenis@gnu.org>
12195
b4700d91
MK
12196 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12197 get_frame_base.
12198
645dd519
MK
12199 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12200 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12201
0aa7e1aa
SC
122022003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12203
8ffd9b1b 12204 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12205 and not regnum when summing the size of all registers up to regnum.
12206
f30ee0bc
AC
122072003-03-01 Andrew Cagney <cagney@redhat.com>
12208
12209 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12210 FRAME_INIT_SAVED_REGS.
12211 * gdbarch.h, gdbarch.c: Regenerate.
12212 * stack.c (frame_info): Update.
12213 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12214 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12215 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12216 * ns32k-tdep.c (ns32k_pop_frame): Update.
12217 * mips-tdep.c (mips_pop_frame): Update.
12218 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12219 * ia64-tdep.c (ia64_frame_chain): Update.
12220 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12221 (ia64_frameless_function_invocation): Update.
12222 (ia64_init_extra_frame_info): Update.
12223 (ia64_pop_frame_regular): Update.
12224 * frame.h (struct frame_info): Update comment.
12225 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12226 * frame.c (frame_saved_regs_register_unwind): Update.
12227 (frame_saved_regs_register_unwind): Update.
12228 (deprecated_generic_get_saved_register): Update.
12229 * cris-tdep.c: Update comment.
12230 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12231 Rename macro.
12232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12233 * x86-64-tdep.c (x86_64_init_abi): Update.
12234 * vax-tdep.c (vax_gdbarch_init): Update.
12235 * v850-tdep.c (v850_gdbarch_init): Update.
12236 * sparc-tdep.c (sparc_gdbarch_init): Update.
12237 * sh-tdep.c (sh_gdbarch_init): Update.
12238 * s390-tdep.c (s390_gdbarch_init): Update.
12239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12240 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12241 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12242 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12243 * mips-tdep.c (mips_gdbarch_init): Update.
12244 * mcore-tdep.c (mcore_gdbarch_init): Update.
12245 * m68k-tdep.c (m68k_gdbarch_init): Update.
12246 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12247 * ia64-tdep.c (ia64_gdbarch_init): Update.
12248 * i386-tdep.c (i386_gdbarch_init): Update.
12249 * frv-tdep.c (frv_gdbarch_init): Update.
12250 * avr-tdep.c (avr_gdbarch_init): Update.
12251 * arm-tdep.c (arm_gdbarch_init): Update.
12252 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12253
42fa7c0f
AC
122542003-03-01 Andrew Cagney <cagney@redhat.com>
12255
12256 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12257 option enum and switch. When no windows, set the interpreter to
12258 INTERP_CONSOLE.
8ffd9b1b 12259
49c7e338
AC
122602003-03-01 Andrew Cagney <cagney@redhat.com>
12261
12262 * main.c (captured_main): Replace magic option characters with an
12263 enum.
12264
e9582e71
AC
122652003-03-01 Andrew Cagney <cagney@redhat.com>
12266
12267 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12268 INIT_EXTRA_FRAME_INFO.
12269 * gdbarch.h, gdbarch.c: Regenerate.
12270 * arm-tdep.c: Update comments.
12271 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12272 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12273 * frame.h, avr-tdep.c: Ditto.
12274 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12275 (create_new_frame, legacy_get_prev_frame): Ditto.
12276 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12277 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12279 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12280 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12281 * v850-tdep.c (v850_gdbarch_init): Ditto.
12282 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12283 * sh-tdep.c (sh_gdbarch_init): Ditto.
12284 * s390-tdep.c (s390_gdbarch_init): Ditto.
12285 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12286 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12287 * mips-tdep.c (mips_gdbarch_init): Ditto.
12288 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12290 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12291 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12292 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12293 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12294 * frv-tdep.c (frv_gdbarch_init): Ditto.
12295 * cris-tdep.c (cris_gdbarch_init): Ditto.
12296 * avr-tdep.c (avr_gdbarch_init): Ditto.
12297 * arm-tdep.c (arm_gdbarch_init): Ditto.
12298 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12299 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12300
35cac7cf
AC
123012003-03-01 Andrew Cagney <cagney@redhat.com>
12302
12303 * gdbarch.sh (register_type): New function with predicate.
12304 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12305 * gdbarch.h, gdbarch.c: Re-generate.
12306 * arch-utils.c (generic_register_byte): Use generic_register_size.
12307 (generic_register_size): When available, use
12308 gdbarch_register_type.
12309 * regcache.c (init_regcache_descr): When available, initialize the
12310 register type array using gdbarch_register_type. If the
12311 architecture supplies gdbarch_register_type, do not use the legacy
12312 regcache layout.
12313 * d10v-tdep.c (d10v_register_type): Replace
12314 d10v_register_virtual_type.
12315 (d10v_gdbarch_init): Set register_type instead of
12316 register_virtual_type.
12317
7b83296f
AC
123182003-03-01 Andrew Cagney <cagney@redhat.com>
12319
12320 * Makefile.in (ax-gdb.o): Update dependencies.
12321 * ax-gdb.c: Include "regcache.h".
12322 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12323 * findvar.c (value_of_register): Ditto.
12324 * infcmd.c (default_print_registers_info): Ditto.
12325
eadc1c87
MK
123262003-03-01 Mark Kettenis <kettenis@gnu.org>
12327
12328 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12329 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12330
14143612
MK
123312003-03-01 Mark Kettenis <kettenis@gnu.org>
12332
12333 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12334 of STREQ.
12335
a55cc764
DJ
123362003-02-28 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * Makefile.in (dwarf2loc.o): Update dependencies.
12339 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12340 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12341 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12342 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12343 (locexpr_tracepoint_var_ref): New function.
12344 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12345
08a617da
AC
123462003-02-28 Andrew Cagney <cagney@redhat.com>
12347
12348 * regcache.c (register_size): New function.
12349 * regcache.h (register_size): Declare
12350 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12351 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12352
4224873a
DC
123532003-02-28 David Carlton <carlton@math.stanford.edu>
12354
12355 * linespec.c (decode_compound): Extract code into find_method.
12356 (find_method): New.
12357
ccdc5d7f
JB
123582003-02-28 J. Brobecker <brobecker@gnat.com>
12359
12360 * Makefile.in: Add rules to build and link in observer.o.
12361
974e8ced
JB
123622003-02-27 J. Brobecker <brobecker@gnat.com>
12363
12364 * observer.c: Minor comments edits.
12365
7a28f973
JB
123662003-02-27 J. Brobecker <brobecker@gnat.com>
12367
12368 * observer.h, observer.c: New file.
12369
27cddce2
AC
123702003-02-27 Andrew Cagney <cagney@redhat.com>
12371
12372 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12373
b94a41a1
SC
123742003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12375
12376 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12377 (M6812_OP_STS_EXT): Likewise.
12378 (m6811_prologue): Use the above to recognize prologue.
12379 (m6812_prologue): Likewise.
12380
c8be8951
DC
123812003-02-27 David Carlton <carlton@math.stanford.edu>
12382
12383 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12384 SYMBOL_PRINT_NAME.
12385 (compare_psymbols): Ditto.
12386 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12387
d05bb1fc
MS
123882003-02-27 Michael Snyder <msnyder@redhat.com>
12389
4e845cd3
MS
12390 * f-lang.c (build_fortran_types): New function.
12391 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12392 * doublest.c (extract_floating): Fix warning text.
12393
f3824013
AC
123942003-02-27 Andrew Cagney <cagney@redhat.com>
12395
12396 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12397 predicate. Replaces PUSH_DUMMY_FRAME.
12398 * gdbarch.h, gdbarch.c: Regnerate.
12399 * valops.c (hand_function_call): Update. Call
12400 generic_push_dummy_frame directly.
12401 * vax-tdep.c (vax_gdbarch_init): Update.
12402 * sparc-tdep.c (sparc_gdbarch_init): Update.
12403 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12404 * m68k-tdep.c (m68k_gdbarch_init): Update.
12405 * hppa-tdep.c (hppa_gdbarch_init): Update.
12406 * alpha-tdep.c (alpha_gdbarch_init): Update.
12407 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12408 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12409 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12410 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12411 push_dummy_frame to generic_push_dummy_frame.
12412 * v850-tdep.c (v850_gdbarch_init): Ditto.
12413 * sh-tdep.c (sh_gdbarch_init): Ditto.
12414 * s390-tdep.c (s390_gdbarch_init): Ditto.
12415 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12416 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12417 * mips-tdep.c (mips_gdbarch_init): Ditto.
12418 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12420 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12421 * i386-tdep.c (i386_gdbarch_init): Ditto.
12422 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12423 * frv-tdep.c (frv_gdbarch_init): Ditto.
12424 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12425 * cris-tdep.c (cris_gdbarch_init): Ditto.
12426 * avr-tdep.c (avr_gdbarch_init): Ditto.
12427 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12428
ad188201
KB
124292003-02-26 Kevin Buettner <kevinb@redhat.com>
12430
12431 * mips-tdep.c (show_mips_abi): New function.
12432 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12433 command ``show mips abi''.
12434
6b37567a 124352003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12436
6b37567a 12437 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12438 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12439 more sline entries have been seen for the function.
12440
d3e0a5bf
MC
124412003-02-26 Michael Chastain <mec@shout.net>
12442
12443 * configure: Regenerate with autoconf 000227.
12444
18972eea
MC
124452003-02-26 Michael Chastain <mec@shout.net>
12446
12447 Close PR build/660.
12448 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12449 for old libc5/glibc.
12450 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12451
0bbde931
KW
124522003-02-26 Kris Warkentin <kewarken@qnx.com>
12453
12454 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12455 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12456
27ca5dad
MC
124572003-02-26 Michael Chastain <mec@shout.net>
12458
12459 * configure.in: New variable HAVE_UINTPTR_T.
12460 * configure, config.in: Regenerated.
12461
6f88d630
DJ
124622003-02-26 Daniel Jacobowitz <drow@mvista.com>
12463
12464 Fix PR build/1097.
12465 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12466
b14185ce
AC
124672003-02-25 Andrew Cagney <cagney@redhat.com>
12468
12469 * frame.c (get_prev_frame): Add comment on check for
12470 inside_entry_func. Only check for inside_entry_file when not a
12471 dummy and not a sentinel. Check that the new frame is not inner
12472 to the old frame.
12473
ac2bd0a9
AC
124742003-02-25 Andrew Cagney <cagney@redhat.com>
12475
12476 * frame.c (frame_debug): New variable.
12477 (_initialize_frame): Add "set/show debug frame" command.
12478 (get_prev_frame): When frame_debug, print reason why unwind
12479 failed.
12480
b18a0fd2
MC
124812003-02-25 Michael Chastain <mec@shout.net>
12482
12483 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12484 to avoid uintptr_t definition problems.
12485
22abf04a
DC
124862003-02-25 David Carlton <carlton@math.stanford.edu>
12487
12488 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12489 (SYMBOL_LINKAGE_NAME): Ditto.
12490 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12491 SYMBOL_LINKAGE_NAME.
12492 (struct general_symbol_info): Expand comment.
12493 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12494 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12495 (SYMBOL_MATCHES_REGEXP): Ditto.
12496 * symtab.c (symbol_natural_name): New function.
12497 * objfiles.h: Replace all uses of SYMBOL_NAME by
12498 DEPRECATED_SYMBOL_NAME.
12499 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12500 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12501 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12502 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12503 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12504 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12505 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12506 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12507 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12508 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12509 * ada-exp.y: Ditto.
12510 * ada-exp.y: Update copyright.
12511 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12512 * cp-valprint.c: Ditto.
12513
1a5848f6
JJ
125142003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12515
12516 * infptrace.c (detach): Do not flag error if ptrace detach fails
12517 and errno is set to ESRCH.
12518
7343d46a
AC
125192003-02-24 Andrew Cagney <cagney@redhat.com>
12520
12521 * infptrace.c (udot_info): Change type of udot_off to long. Use
12522 paddr when printing udot_off's value.
12523
49fa1dc2
DC
125242003-02-24 David Carlton <carlton@math.stanford.edu>
12525
12526 * symtab.c (make_symbol_overload_list): Only read in partial
12527 symtabs containing a matching partial symbol.
12528
0fe19209
DC
125292003-02-24 David Carlton <carlton@math.stanford.edu>
12530
12531 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12532 do the comparison, not strcmp.
12533 * symfile.c (compare_psymbols): Ditto.
12534 * defs.h: Declare strcmp_iw_ordered.
12535 * utils.c (strcmp_iw_ordered): New function.
12536
8e3ee7b5
JB
125372003-02-24 Jim Blandy <jimb@redhat.com>
12538
12539 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12540 support, shared libs): Remove my name from here, to better reflect
12541 reality.
12542
7df1a324
KW
125432003-02-24 Kris Warkentin <kewarken@qnx.com>
12544
12545 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12546 (target_ops): Add to_have_continuable_watchpoint.
12547 * target.c (update_current_target): Add INHERIT line for
12548 to_have_continuable_watchpoint.
12549 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12550 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12551 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12552 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12553
d1c76907
EZ
125542003-02-24 Elena Zannoni <ezannoni@redhat.com>
12555
12556 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12557 maintainership.
12558
2610b0bf
KW
125592003-02-24 Kris Warkentin <kewarken@qnx.com>
12560
f46169db
KW
12561 * solib.c (solib_open): Call target defined search function after
12562 failing with solib-search-path.
12563 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12564 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12565
9a3c34fe
KW
125662003-02-24 Kris Warkentin <kewarken@qnx.com>
12567
f46169db 12568 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12569
2417dd25
SC
125702003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12571
12572 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12573
b631436b
SC
125742003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12575
12576 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12577 (m68hc11_add_reggroups): New function.
12578 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12579 (m68hc11_gdbarch_init): Install the reggroups.
12580 (_initialize_m68hc11_tdep): Initialize them.
12581
0aa8c1e4
JW
125822003-02-21 James E Wilson <wilson@tuliptree.org>
12583
12584 * MAINTAINERS: Update my email address.
12585
50ceaba5
DC
125862003-02-21 David Carlton <carlton@math.stanford.edu>
12587
12588 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12589
4c2df51b
DJ
125902003-02-21 Daniel Jacobowitz <drow@mvista.com>
12591
12592 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12593 * symtab.h: Add opaque declarations of struct axs_value and
12594 struct agent_expr.
12595 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12596 (struct location_funcs): New type.
12597 (struct symbol): Add "loc" to aux_value.
12598 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12599 * dwarf2read.c: Include "dwarf2expr.h".
12600 (dwarf2_symbol_mark_computed): New function.
12601 (read_func_scope): Use it.
12602 (var_decode_location): New function.
12603 (new_symbol): Use it.
12604 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12605
12606 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12607 (dwarf2expr_h, dwarf2loc_h): New variables.
12608 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12609 (dwarf2expr.o, dwarf2loc.o): New rules.
12610 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12611 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12612 LOC_COMPUTED_ARG.
12613 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12614 * m2-exp.y (yylex): Likewise.
12615 * printcmd.c (address_info, print_frame_args): Likewise.
12616 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12617 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12618 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12619 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12620 * symtab.c (lookup_block_symbol): Likewise.
12621
5784d15e
AF
126222003-02-20 Adam Fedor <fedor@gnu.org>
12623
12624 * symtab.h: Remove objc_specific struct
12625 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12626 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12627 Have language_objc use cplus_specific struct.
12628
d4cad8db
TT
126292003-02-20 Tom Tromey <tromey@redhat.com>
12630
12631 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12632 TYPE_NAME, when printing a String value. PR java/1075.
12633
2f9a90b4
AF
126342003-02-20 Adam Fedor <fedor@gnu.org>
12635
d38074a8 12636 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12637 * objc-lang.c (find_methods): Make static.
2f9a90b4 12638
6f17862b
CF
126392003-02-20 Christopher Faylor <cgf@redhat.com>
12640
12641 * win32-nat.c (get_image_name): Check return value from
12642 ReadProcessMemory.
12643 (child_xfer_memory): Ditto.
12644
715d1656
AO
126452003-02-20 Alexandre Oliva <aoliva@redhat.com>
12646
12647 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12648 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12649 '${exec_prefix}' (in addition to the expansion thereof) as
12650 relocatable.
12651 * configure: Rebuilt.
12652
b1262a02
DC
126532003-02-20 David Carlton <carlton@math.stanford.edu>
12654
12655 * symtab.c (search_symbols): Revert the search_symbols part of my
12656 2002-12-23 patch. Add comment.
12657
7134143f
DJ
126582002-02-20 Daniel Jacobowitz <drow@mvista.com>
12659
12660 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12661 * dbxread.c (elfstab_build_psymtabs): Don't call
12662 install_minimal_symbols.
12663 (stabsect_build_psymtabs): Likewise.
12664 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12665 earlier.
12666 * somread.c (som_symfile_read): Call install_minimal_symbols
12667 and do_cleanups earlier.
12668 * nlmread.c (nlm_symfile_read): Likewise.
12669 * mdebugread.c (elfmdebug_build_psymtabs): Call
12670 install_minimal_symbols and make appropriate cleanups.
12671
cf466558
KB
126722003-02-20 Kevin Buettner <kevinb@redhat.com>
12673
12674 * solib.c (reload_shared_libraries): New function.
12675 (_initialize_solib): Add callbacks for ``set solib-search-path''
12676 and ``set solib-absolute-prefix''.
12677
de5ad195
DC
126782003-02-20 David Carlton <carlton@math.stanford.edu>
12679
12680 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12681 expand comment.
12682 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12683 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12684 * ada-typeprint.c (ada_typedef_print): Ditto.
12685 * ax-gdb.c (gen_var_ref): Ditto.
12686 * breakpoint.c (print_one_breakpoint): Ditto.
12687 * buildsym.c (finish_block): Ditto.
12688 * c-valprint.c (c_val_print): Ditto.
12689 * expprint.c (print_subexp): Ditto.
12690 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12691 * infcmd.c (jump_command): Ditto.
12692 * linespec.c (decode_line_2, decode_compound): Ditto.
12693 * maint.c (maintenance_translate_address): Ditto.
12694 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12695 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12696 Ditto.
8ffd9b1b
AJ
12697 * p-valprint.c (pascal_val_print): Ditto.
12698 * stabsread.c (define_symbol): Ditto.
de5ad195 12699 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12700 (print_frame_arg_vars, return_command): Ditto.
12701 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12702 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12703 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12704 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12705 (rbreak_command): Ditto.
12706 * tracepoint.c (tracepoints_info): Ditto.
12707 * typeprint.c (typedef_print): Ditto.
12708 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12709 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12710 * ada-typeprint.c: Update Copyright.
12711 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12712 * tracepoint.c, cli/cli-cmds.c: Ditto.
12713
f796e4be
KB
127142003-02-20 Kevin Buettner <kevinb@redhat.com>
12715
12716 * frame.c (generic_unwind_get_saved_register): Make non-static.
12717 * frame.h (generic_unwind_get_saved_register): Declare.
12718 * mips-tdep.c (read_next_frame_reg): Fetch register from
12719 current regcache when frame is NULL.
12720 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12721 that must be NULL.
12722 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12723 instead of frame_register_unwind().
12724
836cc9f4
AC
127252003-02-20 Andrew Cagney <ac131313@redhat.com>
12726
12727 * remote-sim.c (gdbsim_insert_breakpoint)
12728 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12729 code.
12730
501eef12
AC
127312003-02-20 Andrew Cagney <ac131313@redhat.com>
12732
12733 * remote.c (_initialize_remote): Add commands "set/show remote
12734 hardware-watchpoint-limit" and "set/show remote
12735 hardware-breakpoint-limit".
12736 (remote_hw_watchpoint_limit): Initialize to -1.
12737 (remote_hw_breakpoint_limit): Ditto.
12738 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12739
1b6bc7e0
CF
127402003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12741
12742 * coff-pe-read.c: New file - support reading of minimal symbols from a
12743 portable executable using the export table.
12744 * coff-pe-read.h: New file.
12745 * coffread.c: Include coff-pe-read.h.
12746 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12747 debugging symbols found.
12748 * Makefile.in (SFILES): Add coff-pe-read.o.
12749 (coff_pe_read_h): Define.
12750 (COMMON_OBS): Add coff-pe-read.o.
12751 (coffread.o): Add coff_pe_read_h dependency.
12752 (coff-pe-read.o): New target.
12753
fe898f56
DC
127542003-02-19 David Carlton <carlton@math.stanford.edu>
12755
12756 * Makefile.in (SFILES): Add block.c.
12757 (block_h): New.
12758 (COMMON_OBS): Add block.o.
12759 (block.o): New.
12760 (x86-64-tdep.o): Add $(block_h).
12761 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12762 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12763 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12764 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12765 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12766 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12767 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12768 * value.h: Add opaque declaration for struct block.
12769 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12770 * ada-lang.h: Ditto.
12771 * x86-64-tdep.c: #include "block.h"
12772 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12773 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12774 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12775 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12776 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12777 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12778 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12779 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12780 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12781 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12782 * symtab.c (block_function): Ditto.
12783 (contained_in): Ditto.
12784 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12785 block.h. Add opaque declaration for struct block.
12786 * symtab.h: Move block_function and contained_in declarations to
12787 block.h. Add opaque declarations for struct block, struct
12788 blockvector.
12789 (struct block): Move to block.h.
12790 (struct blockvector): Ditto.
12791 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12792 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12793 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12794 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12795 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12796 Ditto.
12797 * block.c: New file.
12798 * block.h: New file.
12799
173345b5
TR
128002003-02-19 Theodore A. Roth <troth@openavr.org>
12801
12802 * avr-tdep.c (avr_extract_return_value): Remove function.
12803 (avr_store_return_value): Remove function.
12804 (avr_extract_struct_value_address): Remove function.
12805 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12806
338ef23d
AC
128072003-02-19 Andrew Cagney <ac131313@redhat.com>
12808
12809 * rs6000-tdep.c: Include "gdb_assert.h".
12810 (registers_e500): Add "acc" and "spefscr".
12811 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12812 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12813 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12814 really is "r0".
12815 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12816
5412f5f3
KS
128172003-02-18 Keith Seitz <keiths@redhat.com>
12818
12819 * Makefile.in: Add gdbtk-interps.c.
12820
881324eb
KB
128212003-02-18 Kevin Buettner <kevinb@redhat.com>
12822
12823 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12824 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12825
6a2f5abf
AC
128262003-02-18 Andrew Cagney <cagney@redhat.com>
12827
12828 * symtab.h (struct objfile): Add opaque declaration.
12829
54c7009d
EZ
128302003-02-18 Elena Zannoni <ezannoni@redhat.com>
12831
12832 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12833 * dbxread.c (process_one_symbol): Use last_function_start rather
12834 than function_start_offset to find the real beginning of the
12835 current function. The latter is just the text section offset on
12836 some systems, the former is always the real function start.
54c7009d 12837
7ee6d7eb
AC
128382003-02-17 Andrew Cagney <cagney@redhat.com>
12839
12840 * configure.in: Revert ${target} != ${host}.
12841
2846da9b
AC
128422003-02-17 Andrew Cagney <ac131313@redhat.com>
12843
12844 * configure.in (Makefile): Use the test ${target} != ${host},
12845 instead of the absence of the "nm.h" file, to determine of the
12846 configuration non-native.
12847 * configure: Regenerate.
8ffd9b1b 12848
3b27aeea
EZ
128492003-02-14 Elena Zannoni <ezannoni@redhat.com>
12850
fbe586ae 12851 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12852
12853 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12854 conditionalize tui_active test.
12855 (lookup_cmd_1): Ditto.
12856
b0b1c2c0
MK
128572003-02-14 Mark Kettenis <kettenis@gnu.org>
12858
12859 * configure.in: Add check for _etext.
12860 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12861 available.
12862 * config.in, configure: regenerated.
12863
8f05cde5
DJ
128642003-02-14 Daniel Jacobowitz <drow@mvista.com>
12865
12866 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12867
021e7609
AC
128682003-02-14 Andrew Cagney <ac131313@redhat.com>
12869
12870 * main.c (tui_version): Delete variable.
12871 (captured_main): When --tui, set interpreter_p to "tui" instead of
12872 enabling tui_version.
12873 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12874 tui_version.
12875 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12876 * cli/cli-cmds.c (disassemble_command): Ditto.
12877 * defs.h (tui_version): Delete declaration.
12878 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12879 (tui-interp.o): Add rules.
12880 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12881
e325dcec
CF
128822003-02-14 Christopher Faylor <cgf@redhat.com>
12883
36ffb041 12884 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12885 just-loaded dll.
12886
c4f90d87
JM
128872003-02-12 Jason Molenda (jmolenda@apple.com)
12888
fbe586ae
RH
12889 * symmisc.c (print_objfile_statistics): Include information about
12890 the number of psymtabs and symtabs in each object file.
c4f90d87 12891
e46e5ccd
KS
128922003-02-13 Keith R Seitz <keiths@redhat.com>
12893
12894 * main.h (struct captured_main_args): Add interpreter_p.
12895 * main.c (captured_main): Initialize interpreter_p from context.
12896 * gdb.c (main): Set interpreter_p argument.
12897 * Makefile.in (gdb.o): Add dependency for interps.h.
12898
fe97fe9c
AC
128992003-02-12 Andrew Cagney <ac131313@redhat.com>
12900
12901 * event-top.c (cli_command_loop): Delete declaration.
12902 (_initialize_event_loop): Delete function setting event_loop_hook.
12903 * event-top.h (cli_command_loop): Declare. Update copyright.
12904 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12905 * interps.c (current_interp_command_loop): When event_loop_p, call
12906 cli_command_loop.
12907
1cdac4ef
AC
129082003-02-12 Andrew Cagney <ac131313@redhat.com>
12909
12910 * interps.h (interp_command_loop_ftype): Change return type to
12911 void.
12912
48037ead
ML
129132003-02-12 Michal Ludvig <mludvig@suse.cz>
12914
12915 * x86-64-tdep.c (x86_64_extract_return_value)
12916 (x86_64_store_return_value): Use regcache instead of regbuf.
12917 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12918 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12919
033afc63
AC
129202003-02-11 Andrew Cagney <ac131313@redhat.com>
12921
12922 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12923 * aclocal.m4: Regenerate.
12924 * configure: Regenerate.
12925
12926 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12927 TCL_LD_SEARCH_FLAGS.
12928
40d02bca
ML
129292003-02-10 Michal Ludvig <mludvig@suse.cz>
12930
12931 * dwarf2cfi.c: Reindented.
12932
11308a41
AC
129332003-02-09 Andrew Cagney <ac131313@redhat.com>
12934
12935 * interps.c (clear_interpreter_hooks): Convert function definition
12936 to ISO C.
12937
e1c1c0f6
DC
129382003-02-07 David Carlton <carlton@math.stanford.edu>
12939
12940 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12941
ab5d3da6
KB
129422003-02-07 Kevin Buettner <kevinb@redhat.com>
12943
12944 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12945 (struct type): ...to here.
12946 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12947 field.
12948 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12949 (replace_type): Set length on all type variants for a given type.
12950
b8a92b82
AC
129512003-02-07 Andrew Cagney <ac131313@redhat.com>
12952
12953 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12954 <sys/stat.h>.
12955 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12956
5cb316ef
AC
129572003-02-06 Andrew Cagney <ac131313@redhat.com>
12958
2555fe1a
AC
12959 * Makefile.in (symm-nat.o): Update dependencies.
12960 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12961 (lynx-nat.o, ia64-linux-nat.): Ditto.
12962 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12963 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12964 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12965
44270758
AC
12966 * Makefile.in (inflow_h): Define.
12967 (procfs.o, inflow.o, procfs.o): Update dependencies.
12968 * inftarg.c (child_stop): Delete extern declaration of
12969 inferior_process_group. Include "inflow.h".
12970 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12971 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12972 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12973 (our_process_group, inferior_process_group): Extern declarations.
12974
df8f7274
AC
12975 * procfs.c: Include "gdb_assert.h".
12976
5cb316ef
AC
12977 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12978 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12979 * jv-typeprint.c (java_type_print_base): Ditto.
12980 * typeprint.c (typedef_print): Eliminate STREQ.
12981 * cli/cli-script.c (define_command, define_command): Ditto.
12982 * main.c (captured_main): Ditto.
12983 * values.c (lookup_internalvar): Ditto.
12984 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12985 within `if' conditional.
12986 * linespec.c (decode_line_2): Ditto.
12987 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12988 (bfd_openw_with_cleanup): Ditto.
12989
2a28ccea
MK
129902003-02-07 Mark Kettenis <kettenis@gnu.org>
12991
12992 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12993 legacy_extract_return_value and store_return_value to
12994 legacy_return_value.
12995
786b8124
CF
129962003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12997
12998 * win32-nat.c (get_relocated_section_addrs): New function. Find
12999 section load addresses for symbol handling in relocated DLLs.
13000 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13001
b871e4ec
FF
130022003-02-05 Fred Fish <fnf@intrinsity.com>
13003
13004 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13005 '=' and '!='.
13006 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13007 with '&' and '=='.
13008 (angel_RDI_info): Ditto.
13009 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13010 with '&' and '!='.
13011 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13012
4389a95a 130132003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13014 Keith Seitz <keiths@redhat.com>
13015 Elena Zannoni <ezannoni@redhat.com>
13016 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13017
13018 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13019 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13020 (SUBDIR_MI_OBS): Add "mi-interp.o".
13021 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13022 (SFILES): Add "interps.c".
13023 (COMMON_OBS): Add "interps.o".
13024 (interps_h, mi_main_h): Define.
13025 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13026 (mi-main.o, main.o, event-top.o): Update dependencies.
13027 * cli/cli-interp.c: New file.
13028 * interps.h, interps.c: New files.
13029 * top.c: (gdb_init): Don't install the default interpreter, handed
13030 by captured_main.
13031 * main.c: Include "interps.h".
13032 (interpreter_p): Note that it should malloc'ed.
13033 (captured_command_loop): Call current_interp_command_loop.
13034 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13035 xfree and xstrdup when updating interpreter_p. Install the
13036 default interpreter. Add hack to stop mi1's copyright notice
13037 being encoded.
13038 * event-top.h (gdb_setup_readline): Declare.
13039 (gdb_disable_readline): Declare.
13040 * event-top.c: Include "interps.h".
13041 (display_gdb_prompt): Call current_interp_display_prompt_p.
13042 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13043 gdb_stdlog, and gdb_stdtarg.
13044 (_initialize_event_loop): Don't call gdb_setup_readline.
13045 * cli-out.c (cli_out_set_stream): New function.
13046 * cli-out.h (cli_out_set_stream): Declare.
13047
ff3b5810
MK
130482003-02-06 Mark Kettenis <kettenis@gnu.org>
13049
13050 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13051 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13052 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13053 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13054 config/i386/i386v42mp.mt: Removed.
13055
5b729aa5
MK
130562003-02-05 Mark Kettenis <kettenis@gnu.org>
13057
13058 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13059 GDB_OSABI_SOLARIS.
13060
8cc15142
MC
130612003-02-05 Michael Chastain <mec@shout.net>
13062
13063 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13064 2.12.1 and earlier versions.
13065
5aa5d4b9
AC
130662003-02-05 Andrew Cagney <ac131313@redhat.com>
13067
13068 Remove orphaned hosts, targets and files.
13069 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13070 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13071 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13072 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13073 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13074 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13075 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13076 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13077 * config/sparc/tm-sp64sim.h: Delete.
13078 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13079 hosts.
13080 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13081 mips*-dec-mach3* targets.
13082
b68767c1
MC
130832003-02-04 Michael Chastain <mec@shout.net>
13084
13085 * NEWS: Fix typo: sepcifying -> specifying.
13086
5ae7ca1d
MC
130872003-02-04 Michael Chastain <mec@shout.net>
13088
13089 * dwarfread.c: Add documentation on the state of dwarf-1,
13090 looking towards obsoletion.
13091
d08a4280
MC
130922003-02-03 Michael Chastain <mec@shout.net>
13093
13094 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13095 gdb/testsuite/gdb.c++/pr-1023.exp.
13096
e9be73e4
AC
130972003-02-04 Andrew Cagney <ac131313@redhat.com>
13098
13099 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13100 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13101
13102 * utils.c (init_page_info): Delete reference to MPW in comments.
13103 * main.c (captured_main): Delete #ifdef MPW.
13104
05d57f6f
AC
131052003-02-04 Andrew Cagney <ac131313@redhat.com>
13106
8ffd9b1b 13107 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13108 * monitor.c (monitor_expect): Obsolete reference to m32r.
13109 * configure.tgt: Mark m32r-*-elf* as obsolete.
13110 * MAINTAINERS: Mark m32k as obsolete.
13111 * m32r-rom.c: Obsolete file.
13112 * config/m32r/m32r.mt: Obsolete file.
13113 * config/m32r/tm-m32r.h: Obsolete file.
13114 * m32r-stub.c: Obsolete file.
13115 * m32r-tdep.c: Obsolete file.
13116
8b0e5691
AC
131172003-02-04 Andrew Cagney <ac131313@redhat.com>
13118
13119 * NEWS: Mention that the z8k-zilog-none is obsolete.
13120 * MAINTAINERS: Mark z8k as obsolete.
13121 * configure.tgt: Obsolete the z8k-*-coff* target.
13122 * config/z8k/z8k.mt: Obsolete file.
13123 * config/z8k/tm-z8k.h: Obsolete file.
13124 * z8k-tdep.c: Obsolete file.
13125
67f16606
AC
131262003-02-04 Andrew Cagney <ac131313@redhat.com>
13127
13128 * NEWS: Mention that the mn10200-elf is obsolete.
13129 * configure.tgt: Obsolete mn10200-*-* target.
13130 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13131 mention that the mn10200 is obsolete.
13132 * breakpoint.h: Ditto.
13133 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13134 * config/mn10200/mn10200.mt: Obsolete file.
13135 * config/mn10200/tm-mn10200.h: Obsolete file.
13136 * mn10200-tdep.c: Obsolete file.
13137
fd2299bd
AC
131382003-02-04 Andrew Cagney <ac131313@redhat.com>
13139
13140 * MAINTAINERS: Mark h8500 as obsolete.
13141 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13142 * findvar.c (value_from_register): Ditto.
13143 * h8500-tdep.c: Mark file as obsolete.
13144 * config/h8500/h8500.mt: Ditto.
13145 * config/h8500/tm-h8500.h: Ditto.
13146 * NEWS: Mention that h8500 is obsolete.
13147
eb9a305d
DC
131482003-02-04 David Carlton <carlton@math.stanford.edu>
13149
13150 * objfiles.c (allocate_objfile): Always set name. Add comment at
13151 start of function.
13152 * jv-lang.c (get_dynamics_objfile): Add comment.
13153
406fc7fb
DC
131542003-02-04 David Carlton <carlton@math.stanford.edu>
13155
13156 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13157 * printcmd.c (build_address_symbolic): Replace uses of
13158 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13159 SYMBOL_NAME, and asm_demangle.
13160 Update copyright.
13161
93d91629
DC
131622003-02-04 David Carlton <carlton@math.stanford.edu>
13163
13164 * linespec.c (decode_compound): Extract code into
13165 lookup_prefix_sym.
13166 (lookup_prefix_sym): New function.
13167
1c5cb38e
DC
131682003-02-04 David Carlton <carlton@math.stanford.edu>
13169
13170 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13171 FLOAT_COERCION_BADNESS.
13172 * gdbtypes.c (rank_one_type): Replace all uses of
13173 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13174
0cf824c9
JB
131752003-02-04 Jim Blandy <jimb@redhat.com>
13176
13177 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13178 section, let dwarf_macinfo_section point to it, not
13179 dwarf_loc_section.
13180
a2d356b0
DJ
131812003-02-04 Daniel Jacobowitz <drow@mvista.com>
13182
13183 Pointed out by Anton Blanchard <anton@samba.org>.
13184 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13185 (ppc_linux_at_sigtramp_return_path): Use it.
13186
2de7ced7
DJ
131872003-02-04 Daniel Jacobowitz <drow@mvista.com>
13188
13189 * defs.h (streq): Add prototype.
13190 * utils.c (streq): New function.
13191
13192 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13193 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13194 * mdebugread.c (new_symbol): Likewise.
13195 * stabsread.c (define_symbol): Likewise.
13196 * coffread.c (process_coff_symbol): Likewise.
13197 * dwarfread.c (new_symbol): Likewise.
13198
13199 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13200 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13201 here.
13202 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13203 SYMBOL_INIT_DEMANGLED_NAME.
13204 * objfiles.c: Include "hashtab.h".
13205 (allocate_objfile): Call htab_set_functions_ex for the
13206 demangled_names_hash.
13207 (free_objfile): Call htab_delete for the demangled_names_hash.
13208 * objfiles.h (struct htab): Add declaration.
13209 (struct objfile): Add demangled_names_hash.
13210 * symfile.c: Include "hashtab.h".
13211 (reread_symbols): Call htab_delete for the demangled_names_hash.
13212 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13213 SYMBOL_NAME in the bcache.
13214 * symtab.c: Include "hashtab.h". Update comments.
13215 (create_demangled_names_hash, symbol_set_names): New functions.
13216 (symbol_find_demangled_name): New function, broken out from
13217 symbol_init_demangled_names.
13218 (symbol_init_demangled_names): Use it.
13219 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13220 (SYMBOL_SET_NAMES): New macro.
13221 (symbol_set_names): Add prototype.
13222
15831452
JB
132232003-02-03 Jim Blandy <jimb@redhat.com>
13224
13225 Use a single, consistent representation for an empty minimal
13226 symbol table in an objfile.
13227 * objfiles.c (terminate_minimal_symbol_table): New function.
13228 (allocate_objfile): Call it.
13229 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13230 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13231 non-NULL.
15831452
JB
13232 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13233 objfile has minimal symbols, compare minimal_symbol_count to zero,
13234 instead of comparing msymbols with NULL.
13235 * objfiles.c (have_minimal_symbols): Same.
13236 * solib-sunos.c (solib_add_common_symbols): Call
13237 terminate_minimal_symbol_table.
13238 * symfile.c (reread_symbols): Same.
8ffd9b1b 13239
ffc65945
KB
132402003-02-03 Kevin Buettner <kevinb@redhat.com>
13241
13242 * s390-tdep.c (s390_address_class_type_flags)
13243 (s390_address_class_type_flags_to_name)
13244 (s390_address_class_name_to_type_flags): New functions.
13245 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13246 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13247
f211c6d4
MS
132482003-02-03 Michael Snyder <msnyder@redhat.com>
13249
13250 * arm-tdep.c: Fix spell-o in comment.
13251
659b0389
ML
132522003-02-03 Michal Ludvig <mludvig@suse.cz>
13253
13254 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13255 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13256 error messages to contain BFD filename.
659b0389 13257
3b31d625
EZ
132582003-02-02 Elena Zannoni <ezannoni@redhat.com>
13259
997b089a 13260 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13261 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13262 (do_mixed_source_and_assembly): Use
13263 make_cleanup_ui_out_tuple_begin_end and
13264 make_cleanup_ui_out_tuple_begin_end.
13265 (do_mixed_source_and_assembly): Ditto.
13266 * thread.c (do_captured_list_thread_ids): Ditto.
13267 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13268 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13269 ui_out_tuple_end): Delete prototypes.
13270 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13271 ui_out_list_end, ui_out_tuple_end): Delete.
13272
13273 From Kevin Buettner <kevinb@redhat.com>:
13274 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13275 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13276 (do_cleanup_table_end): New functions.
13277 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13278 Use cleanups to invoke_ui_out_tuple_end().
13279 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13280 * cli/cli-setshow.c (cmd_show_list): Use
13281 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13282
5b181d62
AC
132832003-02-02 Andrew Cagney <ac131313@redhat.com>
13284
13285 * frame.c (frame_unwind_register): New function.
13286 (frame_unwind_unsigned_register): Use.
13287 (frame_unwind_signed_register): Use.
13288 (frame_read_register): New function.
13289 * frame.h (frame_unwind_register): Declare.
13290 (frame_read_register): Declare.
13291
13292 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13293 and frame_unwind_register instead of read_memory, write_register
13294 and deprecated_write_register_bytes.
13295
5f601589
AC
132962003-02-02 Andrew Cagney <ac131313@redhat.com>
13297
13298 * frame.h: Note that namelen can be negative.
13299 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13300 NAME's length.
13301
13302 * NEWS: Mention that the d10v's `regs' command is deprecated.
13303 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13304 (d10v_print_registers_info): New function.
13305 (show_regs): Call d10v_print_registers_info.
13306 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13307
6a3fe0a4
MK
133082003-02-02 Mark Kettenis <kettenis@gnu.org>
13309
13310 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13311 lost in the previous patch.
13312
075559bc
AC
133132003-02-01 Andrew Cagney <ac131313@redhat.com>
13314
13315 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13316 * stack.c (print_frame_info_base): Output complete FRAME tuple
13317 for synthesized frames.
075559bc 13318
6789195b
AC
133192003-02-02 Andrew Cagney <ac131313@redhat.com>
13320
13321 * mips-nat.c (zerobuf): Delete.
13322 (fetch_inferior_registers): Alloc local zerobuf.
13323 (fetch_core_registers): Alloc local zerobuf.
13324 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13325 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13326 * thread-db.c (thread_db_store_registers): Ditto.
13327 * sh-tdep.c (sh_do_register): Ditto.
13328 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13329 * remote-sim.c (gdbsim_store_register): Ditto.
13330 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13331 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13332 * monitor.c (monitor_supply_register): Ditto.
13333 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13334 * mips-nat.c (fetch_inferior_registers): Ditto.
13335 * m68klinux-nat.c (fetch_register): Ditto.
13336 * lynx-nat.c (fetch_inferior_registers): Ditto.
13337 (fetch_inferior_registers): Ditto.
13338 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13339 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13340 (hpux_thread_store_registers): Ditto.
13341 * hppah-nat.c (fetch_register): Ditto.
13342 * hppab-nat.c (fetch_register): Ditto.
13343 * hppa-tdep.c (pa_register_look_aside): Ditto.
13344 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13345 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13346
e669114a
AC
133472003-02-01 Andrew Cagney <ac131313@redhat.com>
13348
13349 * gdbarch.sh: Explictly specify all method levels. When a
13350 variable with an empty level, provide a non-multi-arch default.
13351 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13352 * gdbarch.h: Re-generate.
13353 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13354 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13355
9a043c1d
AC
133562003-02-01 Andrew Cagney <ac131313@redhat.com>
13357
13358 * defs.h (host_pointer_to_address): Delete declaration.
13359 (address_to_host_pointer): Delete declaration.
13360 * utils.c (host_pointer_to_address): Delete function.
13361 (address_to_host_pointer): Delete function.
13362 * procfs.c (procfs_address_to_host_pointer): New function.
13363 * procfs.c (proc_set_watchpoint): Use.
13364 (procfs_can_use_hw_breakpoint): Update comments.
13365 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13366 (som_solib_add): Use.
13367 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13368 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13369
7ca9f392
AC
133702003-02-01 Andrew Cagney <ac131313@redhat.com>
13371
94bbfd30
AC
13372 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13373 strlen d_name.
13374
7ca9f392
AC
13375 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13376 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13377 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13378 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13379 (define_symbol): Update.
13380 * symfile.c (generic_load): Remove references to nindy.
13381 * symtab.c: Remove references to nindy.
13382
31a85ea2
AC
133832003-02-01 Andrew Cagney <ac131313@redhat.com>
13384
13385 * infcmd.c (print_float_info): Delete code conditional on
13386 FLOAT_INFO.
13387 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13388 * config/m68k/nm-apollo68b.h: Ditto.
13389 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13390 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13391 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13392
f6e85fc8
MK
133932003-02-01 Mark Kettenis <kettenis@gnu.org>
13394
6015b6a0
MK
13395 * config/i386/tm-i386os9k.h: Removed.
13396
f7a30bdf
MK
13397 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13398 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13399 they're identical to i[3456]86-*-sysv* now.
13400 * config/i386/i386v32.mh: Removed.
13401 * config/i386/xm-i386v32.h: Removed.
13402 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13403
28d52111
MK
13404 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13405
4d3f6bce
MK
13406 * config/i386/i386dgux.mh: Removed.
13407 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13408
f6e85fc8
MK
13409 * configure.in: Fix typo.
13410 * configure: Regenerated.
13411
53955967
DC
134122003-01-31 David Carlton <carlton@math.stanford.edu>
13413
13414 * dwarf2read.c (dwarf2_locate_sections): Set
13415 dwarf_ranges_section.
13416
b1364885
AC
134172003-01-31 Andrew Cagney <ac131313@redhat.com>
13418
8dbb1c65
AC
13419 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13420 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13421
8731e58e
AC
13422 * utils.c: Re-indent.
13423
b1364885
AC
13424 * config/djgpp/fnchange.lst: Delete nindy files.
13425 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13426 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13427 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13428 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13429 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13430 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13431 * Makefile.in (init.c): Remove nindy references.
13432 (saber_gdb): Delete rule.
13433 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13434 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13435 and a68v-nat.c.
13436 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13437 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13438 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13439 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13440 nindy-share/stop.h.
13441 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13442 * saber.suppress: Delete file.
13443
086df311
DJ
134442003-01-31 Daniel Jacobowitz <drow@mvista.com>
13445
13446 * dbxread.c (stabs_data): New static variable.
13447 (fill_symbuf): Support an in-memory buffer for stabs data.
13448 (stabs_seek): New function.
13449 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13450 (read_ofile_symtab): Use stabs_seek.
13451 (elfstab_build_psymtabs): Take an asection* instead of
13452 an offset and size. Relocate the stabs data if necessary.
13453 Save the section* for dbx_psymtab_to_symtab.
13454 * dwarf2read.c: Add section variables for each debug section.
13455 (dwarf2_locate_sections): Fill them in.
13456 (dwarf2_read_section): Take an asection* argument.
13457 Relocate the section contents if necessary.
13458 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13459 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13460 it to dwarf2_read_section.
13461 (dwarf2_build_frame_info): Update callers.
13462 * elfread.c (elf_symfile_read): Update call to
13463 elfstab_build_psymtabs.
13464 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13465 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13466 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13467 * symfile.c (symfile_dummy_outputs): New function.
13468 (symfile_relocate_debug_section): New function.
13469 * symfile.h (symfile_relocate_debug_section): Add prototype.
13470
87d1b352
RH
134712003-01-31 Richard Henderson <rth@redhat.com>
13472
13473 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13474 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13475 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13476 * alpha-tdep.c (alpha_register_name): Add "unique".
13477 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13478 (ALPHA_UNIQUE_REGNUM): New.
13479 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13480
c48861fb
AC
134812003-01-31 Andrew Cagney <ac131313@redhat.com>
13482
13483 * README: Remove reference to Ericsson 1800 monitor.
13484 * Makefile.in (remote-es.o): Delete rule.
13485 (ALLDEPFILES): Delete remote-es.c.
13486 * remote-es.c: Delete file.
13487 * config/m68k/es1800.mt: Delete file.
13488 * config/djgpp/fnchange.lst: Update.
13489 * configure.tgt: Delete m68*-ericsson-* target.
13490
d764a824
AF
134912003-01-31 Adam Fedor <fedor@gnu.org>
13492
13493 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13494 Remove duplicate/shadowing variable of same name.
13495
fe36c4f4
JB
134962003-01-30 Jim Blandy <jimb@redhat.com>
13497
13498 * symfile.c (find_separate_debug_file): Assert that the objfile's
13499 directory name we compute ends with a slash, and then assume that
13500 that's so everywhere we use it.
13501
cb741690
DJ
135022003-01-30 Daniel Jacobowitz <drow@mvista.com>
13503
13504 * valops.c (value_assign): Flush frame cache after stores to memory
13505 also.
13506
96ee5227
AC
135072003-01-30 Andrew Cagney <ac131313@redhat.com>
13508
13509 * Makefile.in (mon960-rom.o): Delete rule.
13510 * mon960-rom.c: Delete file.
13511
7f6104a9
AC
135122003-01-30 Andrew Cagney <ac131313@redhat.com>
13513
13514 * d10v-tdep.c: Include "frame-unwind.h".
13515 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13516 list.
13517 (next_addr, uses_frame): Delete.
13518 (struct d10v_unwind_cache): Define.
13519 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13520 Use info instead of next_addr and uses_frame globals.
13521 (d10v_frame_init_saved_regs): Delete function.
13522 (d10v_init_extra_frame_info): Delete function.
13523 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13524 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13525 init_frame_pc or frame_saved_pc.
13526 (d10v_pop_frame): Delete function.
13527 (do_d10v_pop_frame): Delete function.
13528 (d10v_frame_chain): Delete function.
13529 (d10v_frame_chain_valid): Delete function.
13530 (d10v_frame_pc_unwind): New function.
13531 (d10v_frame_id_unwind): New function.
13532 (saved_regs_unwinder): New function.
13533 (d10v_frame_register_unwind): New function.
13534 (d10v_frame_pop): New function.
13535 (d10v_frame_unwind): New variable.
13536 (d10v_frame_p): New function.
13537 (d10v_frame_saved_pc): Delete function.
13538 * Makefile.in (d10v-tdep.o): Update dependencies.
13539
cad2e848
JB
135402003-01-30 J. Brobecker <brobecker@gnat.com>
13541
13542 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13543 causing some regressions due to a change in the default value
13544 for this macro.
13545
af34e669
DJ
135462003-01-29 Richard Henderson <rth@redhat.com>
13547 Elena Zannoni <ezannoni@redhat.com>
13548 Daniel Jacobowitz <drow@mvista.com>
13549
13550 Fix PR gdb/961.
8ffd9b1b 13551 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13552 variables.
13553 (RANGES_SECTION): New.
13554 (dwarf_ranges_buffer): New variable.
13555 (struct comp_unit_head): Add member "die".
13556 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13557 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13558 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13559 (dwarf2_locate_sections): Likewise.
13560 (dwarf2_build_psymtabs): Read .debug_ranges.
13561 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13562 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13563 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13564 Look for DW_AT_ranges and return the bounding box.
13565
baa93fa6
CF
135662003-01-29 Brian Ford <ford@vss.fsi.com>
13567
13568 * win32-nat.c (cygwin_pid): Removed as unused.
13569 (child_attach): Try fall back to Cygwin pid.
13570
c63f977f
JB
135712003-01-29 Jim Blandy <jimb@redhat.com>
13572
13573 * objfiles.h (struct objfile): Doc fix.
13574
d62d1979
AC
135752003-01-29 Andrew Cagney <ac131313@redhat.com>
13576
13577 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13578 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13579 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13580 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13581 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13582 (FRAME_SAVED_PC): Change to a function with predicate.
13583 * gdbarch.h, gdbarch.c: Re-generate.
13584
1ae18a04
AC
135852003-01-28 Andrew Cagney <ac131313@redhat.com>
13586
52287340
AC
13587 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13588
1ae18a04
AC
13589 * complaints.c (complain): Delete function.
13590 * complaints.h (struct deprecated_complaint): Delete definition.
13591 (complain): Delete declaration.
13592
f2c16bd6
KB
135932003-01-28 Kevin Buettner <kevinb@redhat.com>
13594
13595 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13596 dummy frames.
13597
a94dd1fd
AC
135982003-01-27 Andrew Cagney <ac131313@redhat.com>
13599
13600 * sentinel-frame.h, sentinel-frame.c: New files.
13601 * Makefile.in (frame.o): Update dependencies.
13602 (SFILES): Add sentinel-frame.c.
13603 (sentinel_frame_h): Define.
13604 (COMMON_OBS): Add sentinel-frame.o.
13605 (sentinel-frame.o): Specify dependencies.
13606 * frame.c: Include "sentinel-frame.h".
13607 (frame_register_unwind): Rewrite assuming that there is always a a
13608 ->next frame.
13609 (frame_register, generic_unwind_get_saved_register): Ditto.
13610 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13611 (create_sentinel_frame, unwind_to_current_frame): New functions.
13612 (get_current_frame): Rewrite using create_sentinel_frame and
13613 unwind_to_current_frame. When possible, always create a frame.
13614 (create_new_frame): Set next to the sentinel frame.
13615 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13616 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13617 ID cache when necessary.
13618 (frame_saved_regs_id_unwind): Use frame_relative_level.
13619 (deprecated_generic_get_saved_register): Use frame_relative_level,
13620 get_frame_saved_regs, get_frame_pc, get_frame_base and
13621 get_next_frame.
13622 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13623 frame_register.
13624
5378adc4
DJ
136252003-01-27 Daniel Jacobowitz <drow@mvista.com>
13626
13627 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13628
51ee2ddc
DJ
136292003-01-27 Daniel Jacobowitz <drow@mvista.com>
13630
13631 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13632 (maintenance_set_profile_cmd): Use error () instead of warning ().
13633
d9feb4e7
DJ
136342003-01-27 Daniel Jacobowitz <drow@mvista.com>
13635
13636 * configure.in: Check that -pg works if using --enable-profiling.
13637 Check for monstartup and _mcleanup regardless of --enable-profiling.
13638 * maint.c: Check for monstartup and _mcleanup before using them.
13639 * config.in: Regenerated.
13640 * configure: Regenerated.
13641
2d188dd3
NC
136422003-01-24 Nick Clifton <nickc@redhat.com>
13643
13644 * Add sh2e support:
13645
13646 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13647
13648 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13649 (sh2e_show_regs): New.
13650 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13651 * config/sh/tm-sh.h: Added sh2e to comments.
13652
cb3c37b2
JB
136532003-01-23 Jim Blandy <jimb@redhat.com>
13654
13655 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13656 symbols found)" message here; we haven't checked for a separate
13657 debug info file yet, so we don't know yet.
13658 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13659 we've looked everywhere. Also, there's no need to print a special
13660 message when we're loading the separate debug info file: the one
13661 symbol_file_add prints is fine.
13662
5b5d99cf
JB
136632003-01-23 Alexander Larsson <alexl@redhat.com>
13664 Jim Blandy <jimb@redhat.com>
13665
13666 Add support for executables whose debug info has been separated
13667 out into a separate file, leaving only a link behind.
13668 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13669 and separate_debug_objfile_backlink.
13670 (put_objfile_before): New declaration.
13671 * symfile.c: #include "filenames.h".
13672 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13673 debug info in a separate file, read that, too. Save the addrs
13674 argument, so we can use it again to read the separated debug info;
13675 syms_from_objfile modifies the table we pass it.
13676 (reread_symbols): After re-reading an objfile, call
13677 reread_separate_symbols to refresh its separate debug info
13678 objfile, if it has one.
13679 (reread_separate_symbols, find_separate_debug_file,
13680 get_debug_link_info, separate_debug_file_exists): New functions.
13681 (debug_file_directory): New global var.
13682 (_initialize_symfile): Initialize debug_file_directory, and
13683 provide the new `set debug-file-directory' command to let the user
13684 change it.
13685 * objfiles.c (free_objfile): If this objfile has its debug info in
13686 a separate objfile, free that one too. If this is itself a
13687 separate debug info objfile, clear our parent's backlink.
13688 (put_objfile_before): New function.
13689 * utils.c (gnu_debuglink_crc32): New function.
13690 * defs.h (gnu_debuglink_crc32): New declaration.
13691 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13692 * configure.in: Handle --with-separate-debug-dir config option.
13693 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13694 * acconfig.h (DEBUGDIR): New macro.
13695 * configure, aclocal.m4, config.in: Regenerated.
13696
7e8580c1
JB
136972003-01-22 Jim Blandy <jimb@redhat.com>
13698
7904e09f
JB
13699 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13700 like the old symbol_file_add, but taking new arguments: you can
13701 now pass in either a `struct section_addr_info' list to say where
13702 each section is loaded, or a `struct section_offsets' table. Pass
13703 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13704 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13705 with the appropriate quiescent values for the new arguments.
13706
7e8580c1
JB
13707 * symfile.c: #include "gdb_assert.h".
13708 (syms_from_objfile): Add the ability to pass in a section offset
13709 table directly, as an alternative to the section_addr_info table.
13710 Document arguments better.
13711 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13712 * symfile.h (syms_from_objfile): Update declaration.
13713 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13714 syms_from_objfile.
13715 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13716
d28f9cdf
DJ
137172003-01-22 Daniel Jacobowitz <drow@mvista.com>
13718
13719 Original patch by Tom Tromey <tromey@cygnus.com> and
13720 Jason Molenda <jmolenda@apple.com>.
13721 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13722 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13723 * NEWS: Mention profiling.
13724 * configure.in (--enable-gdbtk): Fix typo.
13725 (--enable-profiling): New. Set PROFILE_CFLAGS.
13726 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13727 Fill in function.
13728 (profiling_state): New variable.
13729 (mcleanup_wrapper): New function.
13730 (_initialize_maint): Remove NOTYET, fix call to
13731 add_setshow_boolean_cmd for "maint set profile".
13732 * configure: Regenerated.
13733
df21e465
MH
137342003-01-21 Martin M. Hunt <hunt@redhat.com>
13735
13736 * Makefile.in (install-gdbtk): Install PNG images too.
13737
73c1f219
AC
137382003-01-21 Andrew Cagney <ac131313@redhat.com>
13739
13740 * exec.c (text_start): Delete global variable.
13741 (exec_file_attach): Make text_start local to the function.
13742 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13743 * valops.c (hand_function_call): Delete code that handles
13744 BEFORE_TEXT_END and AFTER_TEXT_END.
13745 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13746 of CALL_DUMMY_LOCATION.
13747 * gdbarch.c: Regenerate.
13748 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13749 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13750 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13751 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13752 (text_end): Delete extern declaration.
13753
eb4f72c5
AC
137542003-01-21 Andrew Cagney <ac131313@redhat.com>
13755
13756 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13757 * blockframe.c (backtrace_below_main): Move to "frame.c".
13758 (frame_chain_valid): Delete check for backtrace_below_main.
13759 (_initialize_blockframe): Delete initialization, move ``set
13760 backtrace-below-main'' command to "frame.c".
13761 (do_flush_frames_sfunc): Delete function.
13762 * frame.c: Include "command.h" and "gdbcmd.h".
13763 (frame_type_from_pc): New function.
13764 (create_new_frame): Use frame_type_from_pc.
13765 (legacy_get_prev_frame): New function.
13766 (get_prev_frame): Rewrite. When an old style frame, call
13767 legacy_get_prev_frame. Otherwize, unwind the PC first.
13768 (_initialize_frame): Add ``set backtrace-below-main'' command.
13769 * Makefile.in (frame.o): Update dependencies.
13770
778ce8cc
AC
137712003-01-19 Andrew Cagney <ac131313@redhat.com>
13772
13773 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13774 DEPRECATED_REGISTERS_INFO.
13775
01c193c8
AC
137762003-01-19 Andrew Cagney <ac131313@redhat.com>
13777
13778 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13779 Maintainers'. Update `Various Maintainers'.
13780
dedc2a2b
AC
137812003-01-19 Andrew Cagney <ac131313@redhat.com>
13782
13783 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13784 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13785 Suppress actual parameters when `-'.
13786 * gdbarch.h, gdbarch.c: Regenerate.
13787
b7261c70
AC
137882003-01-19 Andrew Cagney <ac131313@redhat.com>
13789
13790 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13791 code handling dummy frames.
13792
dbe9fe58
AC
137932003-01-19 Andrew Cagney <ac131313@redhat.com>
13794
13795 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13796 (struct frame_unwind): Add field pop.
13797 * frame.h (frame_pop): Declare.
13798 * frame.c (frame_saved_regs_pop): New function.
13799 (trad_frame_unwinder): Add frame_saved_regs_pop.
13800 (frame_pop): New function.
13801 * dummy-frame.c (dummy_frame_pop): New function.
13802 (discard_innermost_dummy): New function.
13803 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13804 (dummy_frame_unwind): Add dummy_frame_pop.
13805 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13806 * valops.c (hand_function_call): Ditto.
13807 * stack.c (return_command): Ditto.
13808
570b8f7c
AC
138092003-01-18 Andrew Cagney <ac131313@redhat.com>
13810
13811 * cris-tdep.c: Fix function declaration indentation.
13812 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13813 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13814 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13815 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13816 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13817 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13818
138192003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13820
13821 * README (Unpacking and Installation -- quick overview):
13822 Warn against ".../gdb-5.3/gdb/configure".
13823
494cca16
AC
138242003-01-18 Andrew Cagney <ac131313@redhat.com>
13825
13826 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13827 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13828 (struct frame_unwind): Declare opaque.
13829 (dummy_frame_p): Declare function.
13830 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13831 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13832 * dummy-frame.c: Include "frame-unwind.h".
13833 (dummy_frame_p): New function.
13834 (dummy_frame_unwind): New variable.
13835 * frame.c: Include "frame-unwind.h".
13836 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13837 to use the new unwind field.
13838 (set_unwind_by_pc): Delete function.
13839 (create_new_frame, get_prev_frame): Set unwind field using
13840 frame_unwind_find_by_pc.
13841 (trad_frame_unwind, trad_frame_unwinder): New variables.
13842 * frame.h (trad_frame_unwind): Declare variable.
13843 (frame_id_unwind_ftype): Delete declaration.
13844 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13845 (struct frame_unwind): Declare opaque.
13846 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13847 register_unwind with a single unwind pointer.
13848 * frame-unwind.h, frame-unwind.c: New files.
13849 * Makefile.in (SFILES): Add frame-unwind.c.
13850 (frame_unwind_h): Define.
13851 (COMMON_OBS): Add frame-unwind.o.
13852 (frame-unwind.o): Specify dependencies.
13853 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13854
4efb68b1
AC
138552003-01-18 Andrew Cagney <ac131313@redhat.com>
13856
13857 * ada-valprint.c: Eliminate PTR.
13858 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13859 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13860 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13861 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13862 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13863 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13864 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13865
a84d24ee
AC
138662003-01-17 Andrew Cagney <ac131313@redhat.com>
13867
762f08a3
AC
13868 * main.c (captured_main): Don't use PTR.
13869 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13870 * gdbtypes.c (lookup_primitive_typename): Ditto.
13871 (lookup_struct_elt_type): Ditto.
13872 * f-valprint.c (info_common_command): Ditto.
13873 (list_all_visible_commons): Ditto.
13874 * jv-typeprint.c (java_type_print_base): Ditto.
13875
a84d24ee
AC
13876 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13877 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13878 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13879 i386-interix-nat.c and i386-interix-tdep.c. Rename
13880 m68klinux-nat.c and m68klinux-tdep.c. Rename
13881 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13882 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13883 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13884 * main.c (captured_main): Use xfree, not free.
13885
c170fb60
AC
138862003-01-16 Andrew Cagney <ac131313@redhat.com>
13887
13888 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13889 ID back using a parameter.
13890 * frame.c (frame_id_unwind): Update call.
13891 (frame_saved_regs_id_unwind): Update.
13892 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13893 * dummy-frame.h (struct frame_id): Add opaque declaration.
13894 (dummy_frame_id_unwind): Update declaration.
13895
867f3898
AC
138962003-01-15 Andrew Cagney <ac131313@redhat.com>
13897
13898 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13899
40622be8 139002003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13901
40622be8 13902 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13903
ae66c1fc
EZ
139042003-01-14 Elena Zannoni <ezannoni@redhat.com>
13905
997b089a 13906 Fix PR gdb/898
ae66c1fc
EZ
13907 * breakpoint.c (until_break_command): Add new argument. Use it to
13908 decide whether to stop only at the current frame or not.
13909 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13910 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13911 call.
13912 (advance_command): New function.
13913 (_initialize_infcmd): Update help string for 'until' command.
13914 Add new 'advance' command.
13915
a04257e6
DC
139162003-01-14 David Carlton <carlton@math.stanford.edu>
13917
13918 * linespec.c (decode_line_1): Normalize comments.
13919 (set_flags): Ditto.
13920 (locate_first_half): Ditto.
13921 (decode_compound): Ditto.
13922 (symtab_from_filename): Ditto.
13923 (decode_all_digits): Ditto.
13924 (decode_dollar): Ditto.
13925 (find_methods): Ditto.
13926 (find_toplevel_char): Ditto.
13927
1bac305b
AC
139282003-01-13 Andrew Cagney <ac131313@redhat.com>
13929
13930 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13931 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13932 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13933 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13934 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13935 * language.c, language.h, m32r-tdep.c: Update copyright.
13936 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13937 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13938 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13939 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13940 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13941 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13942
25caa7a8
EZ
139432003-01-13 Elena Zannoni <ezannoni@redhat.com>
13944
13945 * stabsread.h (process_later, resolve_cfront_continuation):
13946 Obsolete.
13947 Update copyright years.
13948 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13949 Update copyright year.
13950 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13951 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13952 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13953 Update copyright year.
13954 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13955 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13956 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13957 (parse_partial_symbols): Obsolete cfront support.
13958 * stabsread.c
13959 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13960 macros.
13961 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13962 read_cfront_baseclasses, read_cfront_member_functions,
13963 resolve_cfront_continuation,read_cfront_static_fields,
13964 copy_cfront_struct_fields): Obsolete functions.
13965 (define_symbol, read_one_struct_field): Obsolete cfront support.
13966 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13967 Update Copyright year.
13968
7789c6f5
EZ
139692003-01-13 Elena Zannoni <ezannoni@redhat.com>
13970
13971 * stack.c (print_frame_info, print_stack_frame_base_stub,
13972 print_stack_frame_base, show_and_print_stack_frame_stub,
13973 show_and_print_stack_frame, print_only_stack_frame_stub,
13974 print_only_stack_frame): Delete functions.
13975 (print_stack_frame_stub): Call print_frame_info instead of
13976 print_frame_info_base.
13977 (print_frame_info_base): Rename to print_frame_info.
13978 (backtrace_command_1): Call print_frame_info, instead of
13979 print_frame_info_base.
13980 (current_frame_command): Call print_stack_frame, instead of
13981 print_only_stack_frame.
13982 (frame_command): Call print_stack_frame, instead of
13983 show_and_print_stack_frame.
13984 (up_command): Ditto.
13985 (down_command): Ditto.
13986 * frame.h (print_only_stack_frame): Delete prototype.
13987 * infrun.c (normal_stop): Call print_stack_frame, instead of
13988 show_and_print_stack_frame.
13989 * thread.c (info_threads_command): Call print_stack_frame, instead
13990 of print_only_stack_frame.
13991
3f5a3016
AC
139922003-01-13 Andrew Cagney <ac131313@redhat.com>
13993
d99ba314
AC
13994 * README (Graphical interface to GDB): Update URL. Point at
13995 gdb/links/.
13996
3f5a3016
AC
13997 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13998 version match.
13999
083ae935
DJ
140002003-01-13 Daniel Jacobowitz <drow@mvista.com>
14001
14002 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14003 lines.
14004
5365276c
DJ
140052003-01-13 Daniel Jacobowitz <drow@mvista.com>
14006
14007 * thread-db.c (attach_thread): Prototype.
14008 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14009 thread information (ti), and valid flags (th_valid, ti_valid).
14010 (attach_thread): Move target_pid_to_str call to after the thread
14011 is added to GDB's list. Initialize the cache.
14012 (thread_get_info_callback, thread_db_map_id2thr)
14013 (thread_db_get_info): New functions.
14014 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14015 (thread_db_store_registers, thread_db_thread_alive)
14016 (thread_db_get_thread_local_address): Use them.
14017 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14018 of calling error() for threads in unknown state.
14019
14020 (clear_lwpid_callback): New function.
14021 (thread_db_resume): Use it to clear the cache.
14022
9fc30b6b
DJ
140232003-01-13 Daniel Jacobowitz <drow@mvista.com>
14024
14025 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14026 (resume_callback): Remove dead code.
14027
8f871025
AC
140282003-01-13 Andrew Cagney <ac131313@redhat.com>
14029
14030 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14031 predicate.
14032 * gdbarch.h, gdbarch.c: Regenerate.
14033 * stack.c (frame_info): Only initialize the saved registers when
14034 FRAME_INIT_SAVED_REGS_P.
14035 * frame.c (frame_saved_regs_register_unwind): Assert
14036 FRAME_INIT_SAVED_REGS_P.
14037 (deprecated_generic_get_saved_register): Ditto.
14038
3f565f1e
DJ
140392003-01-13 Daniel Jacobowitz <drow@mvista.com>
14040
14041 * source.c (openp): Squelch warning about "filename".
14042
072b1022
DJ
140432003-01-13 Daniel Jacobowitz <drow@mvista.com>
14044
14045 * source.c (openp): If the file does not exist don't necessarily
14046 search the path.
14047
973ccf8b
DJ
140482003-01-13 Daniel Jacobowitz <drow@mvista.com>
14049
14050 Fix PR gdb/872.
14051 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14052 (integer_types_same_name_p): New function.
14053 (rank_one_type): Use it.
14054 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14055
030292b7
DJ
140562003-01-13 Daniel Jacobowitz <drow@mvista.com>
14057
14058 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14059 variables.
14060 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14061 * configure.in: Add --with-sysroot.
14062 * configure: Regenerated.
14063 * main.c (gdb_sysroot): New variable.
14064 (captured_main): Initialize gdb_sysroot.
14065 * defs.h (gdb_sysroot): New extern declaration.
14066 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14067
afb5d334
MC
140682003-01-12 Michael Chastain <mec@shout.net>
14069
14070 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14071
751ceeb4
MC
140722003-01-12 Michael Chastain <mec@shout.net>
14073
14074 * top.c (print_gdb_version): Bump copyright year to 2003.
14075
94cd26f8
DC
140762003-01-12 David Carlton <carlton@bactrian.org>
14077
14078 * linespec.c (symtab_from_filename): Rename variable 's' to
14079 'file_symtab'.
14080
1ce79225
AC
140812003-01-12 Andrew Cagney <ac131313@redhat.com>
14082
14083 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14084 dummy frame.
14085 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14086
fa1fd571
AC
140872003-01-12 Andrew Cagney <ac131313@redhat.com>
14088
14089 * d10v-tdep.c: Include "gdb_assert.h".
14090 (d10v_store_return_value): Rewrite to match current interface.
14091 (d10v_extract_struct_value_address): Ditto.
14092 (d10v_extract_return_value): Ditto.
14093 (d10v_gdbarch_init): Set store_restore_value,
14094 extract_struct_value_address and extract_return_value.
14095
68b8d23e
JB
140962003-01-12 J. Brobecker <brobecker@gnat.com>
14097
14098 * hpread.c (set_namestring): New procedure replacing the
14099 SET_NAMESTRING macro.
14100 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14101 by calls to set_namestring.
14102
141032003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14104
14105 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14106 a compilation warning.
14107 (hpread_process_one_debug_symbol): Likewise.
14108
88d262ca
DC
141092003-01-10 David Carlton <carlton@math.stanford.edu>
14110
14111 * linespec.c (decode_line_1): Rename variable 's' to
14112 'file_symtab'.
14113 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14114 (decode_dollar): Ditto.
14115 (decode_variable): Ditto.
14116 (symbol_found): Ditto.
14117
86669319
MC
141182003-01-09 Michael Chastain <mec@shout.net>
14119
14120 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14121
616a9dc4
CV
141222003-01-07 Corinna Vinschen <vinschen@redhat.com>
14123
14124 * win32-nat.c (set_process_privilege): New function.
14125 (child_attach): Call set_process_privilege() to enable the
14126 SE_DEBUG_NAME user privilege if available in process token.
14127
3269bcfa
JB
141282003-01-10 J. Brobecker <brobecker@gnat.com>
14129
14130 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14131 compilation error in the previous revision.
14132
2b0ee454
DC
141332003-01-09 David Carlton <carlton@math.stanford.edu>
14134
14135 * linespec.c: Update copyright.
14136
b3ba1b44
DJ
141372003-01-09 Daniel Jacobowitz <drow@mvista.com>
14138
14139 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14140 than inferior_ptid.
14141 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14142
4ef3f3be
AC
141432003-01-09 Andrew Cagney <ac131313@redhat.com>
14144
479ab5a0
AC
14145 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14146 Update comments.
14147 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14148 (frame_saved_regs_zalloc): Update.
14149 (frame_saved_regs_register_unwind): Update.
14150 (create_new_frame): Update.
14151 (get_prev_frame): Update.
14152 (frame_extra_info_zalloc): Update.
14153 (deprecated_get_frame_saved_regs): Update.
14154 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14155 * cris-tdep.c: Update comment.
14156
bde58177
AC
14157 * somsolib.h: Fix function indentation.
14158 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14159 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14160 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14161 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14162 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14163
4ef3f3be
AC
14164 * infrun.c (follow_fork): Use ISO C definition.
14165 * expprint.c (print_subexp): Use xfree instead of free.
14166 * charset.c: Include "gdb_string.h" instead of <string.h>.
14167 (register_iconv_charsets): Use ISO C definition.
14168 (host_charset, target_charset): Ditto.
14169 * Makefile.in (charset.o): Update dependencies.
14170 (mi-cmd-env.o): Update dependencies.
14171
1c615f7a
AC
141722003-01-08 Andrew Cagney <cagney@redhat.com>
14173
14174 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14175 get_frame_base.
14176
c9a1dc08
AC
141772003-01-08 Andrew Cagney <ac131313@redhat.com>
14178
14179 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14180 build directories. Save edited gdb output in Mbuild.log. If a
14181 build fails, remove any final GDB executable.
14182
dbad9d94
AC
141832003-01-08 Andrew Cagney <ac131313@redhat.com>
14184
14185 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14186 replacing hex constants with function names and stripping leading
14187 file name directory prefixes.
14188
8d357cca
AC
141892003-01-08 Andrew Cagney <cagney@redhat.com>
14190
14191 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14192 get_frame_base.
14193
bca02a8a
DC
141942003-01-08 David Carlton <carlton@math.stanford.edu>
14195
14196 * linespec.c (decode_line_1): Move code into decode_variable.
14197 (decode_variable): New function.
14198
7f8ab3a0
AC
141992003-01-08 Andrew Cagney <ac131313@redhat.com>
14200
14201 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14202
7b5849cc
AC
142032003-01-08 Andrew Cagney <cagney@redhat.com>
14204
14205 * cris-tdep.c (cris_frame_init_saved_regs): Use
14206 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14207 saved_regs buffer.
14208 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14209 (sh64_nofp_frame_init_saved_regs): Ditto.
14210 (sh_fp_frame_init_saved_regs): Ditto.
14211 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14212 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14213 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14214 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14215
72a5efb3
DJ
142162003-01-08 Daniel Jacobowitz <drow@mvista.com>
14217
14218 * minsyms.c (lookup_minimal_symbol): Update comment.
14219 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14220 (lookup_minimal_symbol_solib_trampoline): Likewise.
14221
11c02a10
AC
142222003-01-08 Andrew Cagney <cagney@redhat.com>
14223
aab3ea25
AC
14224 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14225 frame_relative_level.
14226
da50a4b7
AC
14227 * alpha-tdep.c: Use get_frame_extra_info.
14228 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14229 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14230 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14231 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14232
11c02a10
AC
14233 * alpha-tdep.c: Use get_next_frame.
14234 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14235 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14236 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14237 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14238 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14239 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14240 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14241
1e2330ba
AC
142422003-01-07 Andrew Cagney <cagney@redhat.com>
14243
14244 * alpha-tdep.c: Use get_frame_base.
14245 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14246 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14247 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14248 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14249 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14250 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14251 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14252 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14253
2d75187b
AC
142542003-01-07 Andrew Cagney <cagney@redhat.com>
14255
14256 * frame.c (deprecated_get_frame_context): New function.
14257 (deprecated_set_frame_context): New function.
14258 * frame.h (deprecated_get_frame_context): Declare.
14259 (deprecated_set_frame_context): Declare.
14260 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14261 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14262
483d36b2
AC
142632003-01-07 Andrew Cagney <cagney@redhat.com>
14264
14265 * frame.c (deprecated_set_frame_next_hack): New function.
14266 (deprecated_set_frame_prev_hack): New function.
14267 * frame.h (deprecated_set_frame_next_hack): Declare.
14268 (deprecated_set_frame_prev_hack): Declare.
14269 * mcore-tdep.c (analyze_dummy_frame): Use
14270 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14271 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14272
14e91ac5
DC
142732003-01-07 David Carlton <carlton@math.stanford.edu>
14274
14275 * linespec.c (decode_line_1): Move code into decode_dollar.
14276 (decode_dollar): New function.
14277
b0c6b05c
AC
142782003-01-07 Andrew Cagney <cagney@redhat.com>
14279
14280 * arm-tdep.c (arm_init_extra_frame_info): Use
14281 deprecated_update_frame_base_hack.
14282 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14283 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14284 (fix_frame_pointer): Ditto.
14285 (mn10300_analyze_prologue): Ditto.
14286
a00a19e9
AC
142872003-01-07 Andrew Cagney <cagney@redhat.com>
14288
14289 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14290 extra_info using frame_extra_info_zalloc.
14291 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14292 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14293 (sh64_init_extra_frame_info): Ditto.
14294 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14295 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14296 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14297 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14298 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14299 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14300 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14301 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14302 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14303 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14304 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14305 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14306
14307 * mn10300-tdep.c (analyze_dummy_frame): Use
14308 deprecated_set_frame_extra_info_hack.
14309 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14310
1fb4c65b
JB
143112003-01-07 J. Brobecker <brobecker@gnat.com>
14312
14313 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14314 class is not scText. These do not define "real" procedures.
14315 (parse_partial_symbols): Likewise.
14316
9fe7d6bf
MS
143172003-01-06 Michael Snyder <msnyder@redhat.com>
14318
14319 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14320
f6c609c4
AC
143212003-01-06 Andrew Cagney <ac131313@redhat.com>
14322
14323 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14324 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14325 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14326 deprecated_frame_xmalloc_with_cleanup.
14327 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14328 deprecated_frame_xmalloc.
14329 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14330 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14331
d995ff4b
AC
143322003-01-06 Andrew Cagney <cagney@redhat.com>
14333
84dc46cb
AC
14334 * x86-64-linux-tdep.c: Include "osabi.h".
14335 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14336
d995ff4b
AC
14337 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14338
66140c26
AC
143392003-01-06 Andrew Cagney <cagney@redhat.com>
14340
14341 * MAINTAINERS (Target Instruction Set Architectures): Update
14342 arm-elf. Can be built with -Werror, has been multiarched.
14343
14344 * value.h (unpack_long): Make buffer parameter constant.
14345 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14346 * scm-lang.h (scm_parse): Ditto.
14347 * defs.h (extract_typed_address, extract_address): Ditto.
14348 (extract_long_unsigned_integer): Ditto.
14349 * inferior.h (unsigned_pointer_to_address): Ditto.
14350 (signed_pointer_to_address): Ditto.
14351 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14352 * gdbarch.h, gdbarch.c: Regenerate.
14353 * findvar.c (extract_long_unsigned_integer): Update.
14354 (extract_address): Update.
14355 (extract_typed_address): Update.
14356 (unsigned_pointer_to_address): Update.
14357 * values.c (unpack_long): Update.
14358 (unpack_double): Update.
14359 (unpack_pointer): Update.
14360 (unpack_field_as_long): Update.
14361 * d10v-tdep.c (d10v_pointer_to_address): Update.
14362 * avr-tdep.c (avr_pointer_to_address): Update.
14363 * scm-lang.c (scm_unpack): Update.
14364 * findvar.c (signed_pointer_to_address): Update.
14365
b089b3da
ML
143662003-01-06 Michal Ludvig <mludvig@suse.cz>
14367
8ffd9b1b 14368 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14369 since it is in i386-tdep.c.
14370
aff87235
JB
143712003-01-06 J. Brobecker <brobecker@gnat.com>
14372
14373 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14374 failure introduced in the previous change.
14375
34f5e845
MC
143762003-01-05 Michael Chastain <mec@shout.net>
14377
14378 * README: Remove references to deleted remote-*.c files:
14379 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14380 remote-nrom.c, remote-os9k.c, remote-udi.c.
14381
28bcfd30
MK
143822003-01-05 Mark Kettenis <kettenis@gnu.org>
14383
14384 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14385 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14386 i386_get_longjmp_target.
14387
15a5b3ee
AC
143882003-01-05 Andrew Cagney <ac131313@redhat.com>
14389
14390 * arm-tdep.c (prologue_cache): Change to a pointer.
14391 (_initialize_arm_tdep): Allocate prologue_cache.
14392 (check_prologue_cache): Update.
14393 (save_prologue_cache): Update.
14394 (arm_gdbarch_init): Update.
14395
c263362b
DJ
143962003-01-04 Daniel Jacobowitz <drow@mvista.com>
14397
14398 * stabsread.c (update_method_name_from_physname): Call complaint()
14399 instead of error.
14400
51603483
DJ
144012003-01-04 Daniel Jacobowitz <drow@mvista.com>
14402
14403 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14404 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14405 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14406
14407 * blockframe.c: Include "gdbcmd.h" and "command.h".
14408 (backtrace_below_main): New variable.
14409 (file_frame_chain_valid, func_frame_chain_valid)
14410 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14411 (generic_func_frame_chain_valid): Remove functions.
14412 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14413 (_initialize_blockframe): New function.
14414 * Makefile.in (blockframe.o): Update dependencies.
14415 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14416 comment. Call frame_chain_valid ().
14417 * frame.h: Remove old prototypes. Add prototype for
14418 frame_chain_valid and update comments to match.
14419 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14420 Remove old comment.
14421 * gdbarch.h: Regenerated.
14422 * gdbarch.c: Regenerated.
14423
14424 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14425 set_gdbarch_frame_chain_valid.
14426 * avr-tdep.c (avr_gdbarch_init): Likewise.
14427 * cris-tdep.c (cris_gdbarch_init): Likewise.
14428 * frv-tdep.c (frv_gdbarch_init): Likewise.
14429 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14430 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14431 (i386_nw_init_abi): Likewise.
14432 (i386_gdbarch_init): Likewise.
14433 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14435 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14436 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14437 * mips-tdep.c (mips_gdbarch_init): Likewise.
14438 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14439 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14440 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14441 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14442 * s390-tdep.c (s390_gdbarch_init): Likewise.
14443 * sh-tdep.c (sh_gdbarch_init): Likewise.
14444 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14445 * v850-tdep.c (v850_gdbarch_init): Likewise.
14446 * vax-tdep.c (vax_gdbarch_init): Likewise.
14447 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14448
14449 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14450 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14451 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14452 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14453 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14454 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14455 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14456 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14457
b00a8037
DJ
144582002-01-04 Daniel Jacobowitz <drow@mvista.com>
14459
14460 * Makefile.in (acconfig_h): Remove incorrect macro.
14461 (config_h): Define.
14462 (osabi.o): Update dependencies.
14463 * configure.tgt: Set gdb_osabi based on target triplet.
14464 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14465 * configure: Regenerated.
14466 * config.in: Regenerated.
14467 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14468 (GDB_OSABI_DEFAULT): Define if not already defined.
14469 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14470 (set_osabi_string): New variables.
14471 (gdbarch_register_osabi): Add new OS ABI to
14472 gdb_osabi_available_names.
14473 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14474 (set_osabi, show_osabi): New functions.
14475 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14476
4be87837
DJ
144772003-01-04 Daniel Jacobowitz <drow@mvista.com>
14478
14479 * arch-utils.c (gdbarch_info_init): Set osabi to
14480 GDB_OSABI_UNINITIALIZED.
14481 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14482 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14483 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14484 * gdbarch.c: Regenerated.
14485 * gdbarch.h: Regenerated.
14486 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14487 there's no BFD.
14488 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14489 * osabi.h (enum gdb_osabi): Move to defs.h.
14490 (gdbarch_init_osabi): Update prototype.
14491 * defs.h (enum gdb_osabi): Moved here.
14492 * Makefile.in: Update dependencies.
14493
14494 * alpha-tdep.h: Don't include "osabi.h".
14495 (struct gdbarch_tdep): Remove osabi member.
14496 * alpha-tdep.c: Include "osabi.h".
14497 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14498 iterate over arches. Update call to gdbarch_init_osabi.
14499 (alpha_dump_tdep): Don't dump osabi.
14500 * alpha-linux-tdep.c: Include "osabi.h".
14501 * alpha-osf1-tdep.c: Include "osabi.h".
14502 * alphafbsd-tdep.c: Include "osabi.h".
14503 * alphanbsd-tdep.c: Include "osabi.h".
14504
14505 * arm-tdep.h: Don't include "osabi.h".
14506 (struct gdbarch_tdep): Remove osabi member.
14507 * arm-tdep.c: Include "osabi.h".
14508 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14509 iterate over arches. Update call to gdbarch_init_osabi.
14510 (arm_dump_tdep): Don't dump osabi.
14511 * arm-linux-tdep.c: Include "osabi.h".
14512 * armnbsd-tdep.c: Include "osabi.h".
14513
14514 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14515 Update call to gdbarch_init_osabi.
14516
14517 * i386-tdep.h: Don't include "osabi.h".
14518 (struct gdbarch_tdep): Remove osabi member.
14519 * i386-tdep.c: Include "osabi.h".
14520 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14521 iterate over arches. Update call to gdbarch_init_osabi.
14522 (i386_dump_tdep): Don't dump osabi.
14523 * i386-linux-tdep.c: Include "osabi.h".
14524 * i386-sol2-tdep.c: Include "osabi.h".
14525 * i386bsd-tdep.c: Include "osabi.h".
14526 * i386gnu-tdep.c: Include "osabi.h".
14527 * i386ly-tdep.c: Include "osabi.h".
14528 * i386nbsd-tdep.c: Include "osabi.h".
14529 * i386obsd-tdep.c: Include "osabi.h".
14530
14531 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14532 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14533 check osabi when iterating over arches. Update call to
14534 gdbarch_init_osabi.
14535 (mips_dump_tdep): Don't dump osabi.
14536
14537 * ns32k-tdep.h: Don't include "osabi.h".
14538 (struct gdbarch_tdep): Remove.
14539 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14540 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14541 allocate tdep. Update call to gdbarch_init_osabi.
14542 (ns32k_dump_tdep): Remove.
14543 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14544 * ns32knbsd-tdep.c: Include "osabi.h".
14545
14546 * ppc-tdep.h: Don't include "osabi.h".
14547 (struct gdbarch_tdep): Remove osabi member.
14548 * rs6000-tdep.c: Include "osabi.h".
14549 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14550 osabi when iterating over arches. Update call to
14551 gdbarch_init_osabi.
14552 (rs6000_dump_tdep): Don't dump osabi.
14553 * ppc-linux-tdep.c: Include "osabi.h".
14554 * ppcnbsd-tdep.c: Include "osabi.h".
14555
14556 * sh-tdep.h: Don't include "osabi.h".
14557 (struct gdbarch_tdep): Remove osabi member.
14558 * sh-tdep.c: Include "osabi.h".
14559 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14560 iterate over arches. Update call to gdbarch_init_osabi.
14561 (sh_dump_tdep): Don't dump osabi.
14562 * shnbsd-tdep.c: Include "osabi.h".
14563
14564 * sparc-tdep.c: Include "osabi.h".
14565 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14566 iterate over arches. Update call to gdbarch_init_osabi.
14567 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14568 tdep structure.
14569
14570 * vax-tdep.h: Don't include "osabi.h".
14571 (struct gdbarch_tdep): Remove.
14572 * vax-tdep.c: Include "osabi.h".
14573 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14574 iterate over arches. Don't allocate tdep. Update call
14575 to gdbarch_init_osabi.
14576 (vax_dump_tdep): Remove.
14577 (_initialize_vax_tdep): Update call to gdbarch_register.
14578
a881cf8e
DJ
145792003-01-04 Daniel Jacobowitz <drow@mvista.com>
14580
14581 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14582 entirely.
14583 (breakpoint_re_set_one): Don't fetch the value for a disabled
14584 watchpoint.
14585
1e698235
DJ
145862003-01-04 Daniel Jacobowitz <drow@mvista.com>
14587
14588 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14589 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14590 (COERCE_FLOAT_TO_DOUBLE): Remove.
14591 * gdbarch.c: Regenerate.
14592 * gdbarch.h: Regenerate.
14593 * Makefile.in: Remove value_h from gdbarch_h.
14594 * valops.c (coerce_float_to_double): New variable.
14595 (default_coerce_float_to_double): Remove.
14596 (standard_coerce_float_to_double): Remove.
14597 (value_arg_coerce): Use coerce_float_to_double.
14598 (_initialize_valops): Add "set coerce-float-to-double".
14599 * value.h (default_coerce_float_to_double): Remove prototype.
14600 (standard_coerce_float_to_double): Remove prototype.
14601
14602 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14603 prototyped.
14604 * mdebugread.c (parse_symbol): Likewise.
14605 * stabsread.c (define_symbol): Mark all functions as prototyped.
14606
14607 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14608 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14609 set_gdbarch_coerce_float_to_double.
14610 * arm-tdep.c (arm_gdbarch_init): Likewise.
14611 * frv-tdep.c (frv_gdbarch_init): Likewise.
14612 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14613 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14614 * mips-tdep.c (mips_gdbarch_init): Likewise.
14615 (mips_coerce_float_to_double): Remove.
14616 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14617 (rs6000_coerce_float_to_double): Remove.
14618 * s390-tdep.c (s390_gdbarch_init): Likewise.
14619 * sh-tdep.c (sh_gdbarch_init): Likewise.
14620 (sh_coerce_float_to_double): Remove.
14621 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14622 (sparc_coerce_float_to_double): Remove.
14623 * v850-tdep.c (v850_gdbarch_init): Likewise.
14624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14625 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14626 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14627 (hppa_coerce_float_to_double): Remove prototype.
14628 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14629
f436a26a
DJ
146302003-01-04 Daniel Jacobowitz <drow@mvista.com>
14631
14632 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14633
248f8055
DJ
146342003-01-04 Daniel Jacobowitz <drow@mvista.com>
14635
14636 Suggested by Stewart Brown <sb24@avaya.com>:
14637 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14638 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14639 (c_type_print_varspec_suffix): Likewise.
14640
72cfdc76
MK
146412003-01-04 Mark Kettenis <kettenis@gnu.org>
14642
bfd260bb
MK
14643 * configure.in: Don't set and AC_SUBST SUBDIRS.
14644 * configure: Regenerated.
14645
72cfdc76
MK
14646 * configure.in: Remove code dealing with shared libraries.
14647 * Makefile.in: Remove HLDFLAGS and HLDENV.
14648 * configure: Regenerated.
14649
c8b8a898
AC
146502003-01-04 Andrew Cagney <ac131313@redhat.com>
14651
14652 * frame.c (deprecated_frame_xmalloc): New function.
14653 (deprecated_set_frame_saved_regs_hack): New function.
14654 (deprecated_set_frame_extra_info_hack): New function.
14655 * frame.h (deprecated_frame_xmalloc): Declare.
14656 (deprecated_set_frame_saved_regs_hack): Declare.
14657 (deprecated_set_frame_extra_info_hack): Declare.
14658
14abd0fb
MK
146592003-01-04 Mark Kettenis <kettenis@gnu.org>
14660
8ee53726
MK
14661 * configure.in: Move code that provides the --enable-gdbtk option
14662 right after the code that handles the --enable-tui option, and
14663 polish it somewhat.
14664 * configure: Regenerated.
14665
14abd0fb
MK
14666 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14667 AC_CHECK_FUNCS and remove the old check for pread64.
14668 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14669 * acconfig.h (_GNU_SOURCE): Add.
14670 (HAVE_PREAD64): Remove.
14671 * configure, aclocal.m4, config.in: Regenerated.
14672
b2fb4676
AC
146732003-01-03 Andrew Cagney <ac131313@redhat.com>
14674
14675 * alpha-tdep.c: Use get_frame_saved_regs.
14676 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14677 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14678 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14679 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14680 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14681
8dcde887
MK
146822003-01-03 Mark Kettenis <kettenis@gnu.org>
14683
14684 * configure.in: Remove all use of the SUBDIRS variable; add
14685 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14686 code providing the --enable-multi-ice option, and move it right in
14687 front of the code that checks whether gdbserver is supported.
14688 Polish that too.
14689 * configure: Regenerated.
14690 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14691 @SUBDIRS@.
14692
8ccd593b
AC
146932003-01-03 Andrew Cagney <cagney@redhat.com>
14694
14695 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14696 * avr-tdep.c, cris-tdep.c: Ditto.
14697 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14698 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14699
91151a06
MK
147002003-01-03 Mark Kettenis <kettenis@gnu.org>
14701
14702 * configure.in: Remove --enable-netrom option.
14703 * configure: Regenerated.
14704
8fe84d01
MK
147052003-01-03 Mark Kettenis <kettenis@gnu.org>
14706
14707 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14708 declaration for `struct re_pattern_buffer' instead.
14709 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14710
f0394be6
JB
147112003-01-03 J. Brobecker <brobecker@gnat.com>
14712
14713 * mdebugread.c (parse_symbol): Count until the stEnd matching
14714 the structure name.
14715
27e9bf90
MK
147162003-01-02 Mark Kettenis <kettenis@gnu.org>
14717
93d331ba
MK
14718 * configure.in: Remove --with-cpu option.
14719 subscripts. Remove evil changequotes here.
14720 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14721 * config.in, configure: Regenerated.
8ffd9b1b 14722
27e9bf90
MK
14723 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14724 * configure.in: Cleanup section that sources GDB and BFD configure
14725 subscripts. Remove evil changequotes here.
14726 * config.in, configure: Regenerated.
14727
50abf9e5
AC
147282003-01-02 Andrew Cagney <ac131313@redhat.com>
14729
14730 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14731 frame accessor methods.
14732 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14733 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14734 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14735 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14736 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14737 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14738 * z8k-tdep.c: Ditto.
8ffd9b1b 14739
287c1a40
MK
147402003-01-02 Mark Kettenis <kettenis@gnu.org>
14741
f5dbc56d
MK
14742 * configure.in: Remove UI_OUT configuration code.
14743 * ada-lang.c: Update assuming UI_OUT is always true.
14744 * Makefile.in (UIOUT_CFLAGS): Remove.
14745 * configure: Regenerated.
14746 * TODO: Remove blurb about elimination of -DUI_OUT.
14747
627af7ea
MK
14748 * configure.in: Move code that provides the --enable-gdbcli,
14749 --enable-gdbmi options right before the code that handles the
14750 --enable-tui option. Polish a bit.
14751 * configure: Regenerated.
14752
06825bd1
MK
14753 * configure.in: Rewrite check for GNU regex and the
14754 --without-included regex option, and move it into the "Checks for
14755 library functions" section. This makes us use the system regex
14756 again by default on systems with version 2 of the GNU C library.
14757 This was apparently broken.
14758 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14759 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14760 * config.in, configure: Regenerated.
14761
287c1a40
MK
14762 * configure.in: Move code that provides the --enable-tui option
14763 before the "Checks for libraries" section. Polish the code
14764 somewhat and set need_curses to yes if we build the TUI. Rewrite
14765 code that looks for a library providing termcap functionality to
14766 match more closely what's done in the Readline library, and move
14767 it into to the "Checks for libraries" section.
14768 * configure: Regenerated.
14769 * Makefile.in (TERMCAP): Remove variable.
14770 * config/i386/go32.mh (TERMCAP): Remove variable.
14771
684e56bf
AC
147722003-01-02 Andrew Cagney <ac131313@redhat.com>
14773
14774 * MAINTAINERS: Mention gdb_mbuild.sh.
14775 * gdb_mbuild.sh: Rewrite.
14776
e1ea1d75
MK
147772003-01-02 Mark Kettenis <kettenis@gnu.org>
14778
14779 * configure.in: Fix typo in last change.
14780 * config.in, configure: Regenerated.
14781
1b831c93
AC
147822003-01-02 Andrew Cagney <ac131313@redhat.com>
14783
14784 * valarith.c (value_binop): Delete obsolete code and comments.
14785 * configure.host: Ditto.
14786 * buildsym.h (make_blockvector): Ditto.
14787 * buildsym.c (make_blockvector): Ditto.
14788 * defs.h (enum language): Ditto.
14789 (chill_demangle): Ditto.
14790 * elfread.c (elf_symtab_read): Ditto.
14791 * dwarfread.c (CHILL_PRODUCER): Ditto.
14792 (set_cu_language): Ditto.
14793 (handle_producer): Ditto.
14794 * expprint.c (print_subexp): Ditto.
14795 * gdbtypes.c (chill_varying_type): Ditto.
14796 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14797 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14798 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14799 (chill_varying_type): Ditto.
14800 * language.h (_LANG_chill): Ditto.
14801 * language.c (binop_result_type, integral_type): Ditto.
14802 (character_type, string_type, structured_type): Ditto.
14803 (lang_bool_type, binop_type_check): Ditto.
14804 * stabsread.h (os9k_stabs): Ditto.
14805 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14806 (define_symbol, read_type, read_struct_fields): Ditto.
14807 (read_array_type, read_enum_type, read_huge_number): Ditto.
14808 (read_range_type, start_stabs): Ditto.
14809 * symfile.c (init_filename_language_table): Ditto.
14810 (add_psymbol_with_dem_name_to_list): Ditto.
14811 * symtab.c (symbol_init_language_specific): Ditto.
14812 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14813 * symtab.h (struct general_symbol_info): Ditto.
14814 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14815 * typeprint.c (typedef_print): Ditto.
14816 * utils.c (fprintf_symbol_filtered): Ditto.
14817 * valops.c (value_cast, search_struct_field, value_slice): Delete
14818 obsolete code.
14819 (varying_to_slice): Delete function.
14820 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14821 (varying_to_slice): Delete declaration.
14822 * MAINTAINERS: Update.
14823
8bb2c122
MK
148242003-01-02 Mark Kettenis <kettenis@gnu.org>
14825
97bf5e38
MK
14826 * configure.in: Reorganize "Checks for library functions section"
14827 a bit. Remove check for `btowc' and `isascii' functions.
14828 * configure: Regenerated.
14829
5ee754fc
MK
14830 * acconfig.h (_MSE_INT_H): Remove.
14831 * configure.in: Create "Checks for header files" section, and move
14832 appropriate tests there. Don't check for objlist.h, wchar.h,
14833 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14834 misdetection fix. Also add "Checks for types", "Checks for
14835 compiler characteristics" and "Checks for library functions"
14836 sections.
14837 * config.in, configure: Regenerated.
14838
8bb2c122
MK
14839 * configure.in: Create "Checks for programs" section, and move
14840 appropriate tests there.
14841
9a156167
MK
148422003-01-01 Mark Kettenis <kettenis@gnu.org>
14843
14844 * configure.in: Create "Checks for libraries" section, and move
14845 appropriate tests there. Cleanup check for wctype in libw. Use
14846 AC_SEARCH_LIBS to see whether we need libsocket.
14847 * configure: Regenerated.
14848
a80e2bcb 14849For older changes see ChangeLog-2002
c906108c
SS
14850\f
14851Local Variables:
14852mode: change-log
14853left-margin: 8
14854fill-column: 74
14855version-control: never
14856End:
This page took 1.147382 seconds and 4 git commands to generate.