* NEWS: Mention improved location expression support.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9e08b29b
DJ
12003-11-24 Daniel Jacobowitz <drow@mvista.com>
2
3 * NEWS: Mention improved location expression support.
4
603942cc
AC
52003-11-23 Andrew Cagney <cagney@redhat.com>
6
7 * Makefile.in (infrun.o): Update dependencies.
8 * infrun.c: Include "exec.h".
9 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
10
66c57289
AC
112003-11-23 Andrew Cagney <cagney@redhat.com>
12
dd3ecc14
AC
13 * frame.c (frame_unwind_signed_register): Delete function.
14 * frame.h (frame_unwind_register_signed): Delete declaration.
15 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
16
eec1a560
AC
17 * arch-utils.h (generic_cannot_extract_struct_value_address):
18 Delete declaration.
19
cb137aa5
AC
20 * defs.h (DEPRECATED_STREQN): Rename STREQN.
21 (DEPRECATED_STREQ): Rename STREQ.
22 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
23 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
24 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
25 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
26 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
27 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
28 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
29 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
30 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 31
cb137aa5 32 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
33 * elfread.c (elf_symtab_read): Delete STREQ from comment.
34
29dfb2ac
AC
352003-11-22 Andrew Cagney <cagney@redhat.com>
36
213cc0ad
AC
37 * frame.c (deprecated_frame_xmalloc): Delete function.
38 (deprecated_set_frame_extra_info_hack): Delete function.
39 (deprecated_set_frame_saved_regs_hack): Delete function.
40 * frame.h (deprecated_frame_xmalloc): Delete declaration.
41 (deprecated_set_frame_extra_info_hack): Delete declaration.
42 (deprecated_set_frame_saved_regs_hack): Delete declaration.
43 * mcore-tdep.c (analyze_dummy_frame): Instead of
44 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
45 and deprecated_set_frame_extra_info_hack use
46 deprecated_frame_xmalloc_with_cleanup.
47 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
48 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
49 deprecated_set_frame_saved_regs_hack.
50
35bb18ac
AC
51 * mips-tdep.c (mips_frame_chain): Delete call to
52 deprecated_inside_entry_file.
53
38a7ce4b
AC
54 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
55 (deprecated_set_frame_prev_hack): Delete declaration.
56 * frame.c (deprecated_set_frame_next_hack): Delete function.
57 (deprecated_set_frame_prev_hack): Delete function.
58 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
59 "deprecated_set_frame_next_hack" and
60 "deprecated_set_frame_prev_hack".
61 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
62
47ebcfbe
AC
63 * mips-tdep.c (mips_register_convertible): Delete function.
64 (mips_register_convert_to_virtual): Delete function.
65 (mips_register_convert_to_raw): Delete function.
66 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
67 "deprecated_register_convert_to_virtual", or
68 "deprecated_register_convert_to_raw".
69 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
70 32/64 cooked to raw register conversions.
71
2a9264f1 72 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 73 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
74 (struct frame_info): Delete member "context".
75 * frame.h (deprecated_get_frame_context): Delete declaration.
76 (deprecated_set_frame_context): Delete declaration.
77
7af6341f
AC
78 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
79 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
80 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
81 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
82
10a08821
AC
83 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
84 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
85 mips_regsize.
86 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
87 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
88 * config/mips/tm-irix5.h: Update copyright.
89 (SIGFRAME_REG_SIZE): Delete macro.
90
00d33403
AC
91 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
92 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
93 declaration.
94 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
95 * infcall.c (call_function_by_hand): Delete #ifdef
96 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
97 * infcmd.c (print_return_value): Ditto.
98
74da7425
AC
99 * mips-tdep.c (skip_prologue_using_sal): New function.
100 (mips32_skip_prologue, mips16_skip_prologue): Use
101 skip_prologue_using_sal to get an upper bound on the search.
102
369864a4
AC
103 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
104 #if 0'ed macro.
105 * infrun.c (step_into_function): Delete #ifdef
106 PROLOGUE_FIRSTLINE_OVERLAP code.
107 * symtab.c (find_function_start_sal): Ditto.
108
a5a12285
AC
109 * remote-rdp.c: Update copyright.
110 (rdp_init): #if 0 references to "target_byte_order".
111
29dfb2ac
AC
112 * mips-tdep.c (mips_o32_store_return_value): Delete function.
113 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
114 (mips_o32_extract_return_value): Delete function.
115 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
116 (mips_n32n64_extract_return_value): Delete function.
117 (mips_n32n64_store_return_value): Delete function.
118 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
119 instead of "store_return_value", "extract_return_value", and
120 "use_struct_convention".
121 (mips_n32n64_use_struct_convention): Delete function.
122
3a3da38c
KB
1232003-11-21 Kevin Buettner <kevinb@redhat.com>
124
125 * frv-tdep.c (frv_frame_this_id): Eliminate call to
126 inside_entry_func().
127
c5e656c1
MK
1282003-11-20 Mark Kettenis <kettenis@gnu.org>
129
130 * i386-tdep.c (i386_extract_return_value,
131 i386_store_return_value): Add gdbarch argument. Use it instead of
132 determining it from REGCACHE. Remove recursive call for
133 structures with a single member.
134 (i386_use_struct_convention): Remove.
135 (i386_reg_struct_return_p): New function.
136 (i386_return_value): New function.
137 (i386_gdbarch_init): Set return_value, don't set
138 extract_return_value, store_return_value and
139 use_struct_convention.
140 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
141
515cc92e
JB
1422003-11-20 Jim Blandy <jimb@redhat.com>
143
144 * osabi.c (_initialize_gdb_osabi): Don't return before registering
145 the 'set osabi' and 'show osabi' commands.
146
3f1d7f16
MK
1472003-11-19 Mark Kettenis <kettenis@gnu.org>
148
149 * frame.c (get_prev_frame): Use result from
150 get_frame_address_in_block instead of get_frame_pc as argument to
151 inside_main_func. Fixes PR backtrace/1435.
152
667e784f
AC
1532003-11-19 Andrew Cagney <cagney@redhat.com>
154
155 * stack.c (return_command): Handle "void", "legacy" and "unknown
156 location" return values separatly.
157 * values.c (using_struct_return): Return 0 for a "void" return
158 type. Mention "register_value_being_returned".
159 (register_value_being_returned): Mention "using_struct_return".
160
4cecd739
DJ
1612003-11-19 Daniel Jacobowitz <drow@mvista.com>
162
163 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
164 (frame_base_offset): Delete.
165 (read_func_scope): Delete call to decode_locdesc.
166 (decode_locdesc): Update comments. Don't set the removed variables.
167 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
168 DW_OP_fbreg support.
169
6b992462
DJ
1702003-11-18 Daniel Jacobowitz <drow@mvista.com>
171
172 * dwarf2read.c (optimized_out, islocal): Remove.
173 (decode_locdesc): Update comments. Don't set optimized_out
174 or islocal.
175
968d1cb4
JJ
1762003-11-17 Jeff Johnston <jjohnstn@redhat.com>
177 David Mosberger <davidm@hpl.hp.com>
178
179 * ia64-tdep.c: Include elf.h.
180 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
181 libunwind-ia64.h.
182 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
183 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
184 (ia64_is_fpreg, ia64_access_reg): Ditto.
185 (ia64_access_fpreg, ia64_access_mem): Ditto.
186 (get_kernel_table): Ditto.
187 (ia64_find_unwind_table): Ditto.
188 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
189 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
190 (ia64_libunwind_frame_prev_register): Ditto.
191 (ia64_libunwind_frame_sniffer): Ditto.
192 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
193 sniffer. Register libunwind functions needed by generic
194 libunwind frame code using libunwind_frame_set_descr().
195
d29caefc
DJ
1962003-11-16 Daniel Jacobowitz <drow@mvista.com>
197
198 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
199 bp_shlib_disabled breakpoint if there is a shared library mapped
200 at its expected address.
201
691c0433
AC
2022003-11-16 Andrew Cagney <cagney@redhat.com>
203
96cb1c2f
AC
204 * configure.tgt: Delete mips*tx39*-elf*.
205 * config/mips/tm-tx39.h: Delete file.
206 * config/mips/tx39.mt: Delete file.
207 * config/mips/tx39.mt: Delete file.
208
691c0433
AC
209 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
210 * remote-mips.c (common_open): Instead of
211 "mips_read_register_type" and "mips_set_processor_type_command"
212 call "deprecated_mips_set_processor_regs_hack".
213 * config/mips/tm-mips.h (mips_read_processor_type): Delete
214 declaration.
215 (mips_set_processor_type_command): Delete declaration.
216 * mips-tdep.c (mips_gdbarch_init): Update comment.
217 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
218 (mips_set_processor_type): Delete function.
219 (NUM_MIPS_PROCESSOR_REGS): Define.
220 (mips_show_processor_type_command): Delete function.
221 (mips_set_processor_type_command): Delete function.
222 (tmp_mips_processor_type): Delete.
223 (mips_processor_type): Delete.
224 (mips_processor_type_table): Delete.
225 (mips_r3051_reg_names): Delete.
226 (mips_r3081_reg_names): Delete.
227 (mips_lsi33k_reg_names): Delete.
228 (mips_processor_reg_names): Delete.
229 (mips_read_processor_type): Delete function.
230 (deprecated_mips_set_processor_regs_hack): New function.
231 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
232 (mips_register_name): Get the processor names from the tdep.
233 (mips_tx39_reg_names): New array.
234 (mips_generic_reg_names): Wire to a standard set of names.
235 (mips_gdbarch_init): Set "mips_processor_reg_names".
236 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
237 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
238 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
239
56cea623
AC
2402003-11-16 Andrew Cagney <cagney@redhat.com>
241
242 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
243 (mips_fpa0_regnum, mips_regnum): New function.
244 (mips_gdbarch_init): Fill in the "regnum" fields.
245 * mips-tdep.h (struct mips_regnum): Define.
246 (mips_regnum): Declare.
247 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
248 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
249 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
250 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
251 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
252 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
253 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
254 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
255 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
256 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
257 * remote-mips.c: Include "mips-tdep.h". Update.
258 * mipsnbsd-tdep.c: Update.
259 * mipsv4-nat.c: Update.
260 * mips-tdep.c: Update.
261 * mips-nat.c: Update.
262 * mips-linux-tdep.c: Update.
263 * mips-linux-nat.c: Update.
264 * irix5-nat.c: Update.
265 * dve3900-rom.c: Include "mips-tdep.h". Update.
266 (ignore_packet): Supress GCC warning.
267 * config/mips/nm-riscos.h: Update.
268
719ec221
AC
2692003-11-16 Andrew Cagney <cagney@redhat.com>
270
271 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
272 register_size.
273 (mips_register_raw_size): Delete function.
274 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
275 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
276 Check and set "mips64_transfers_32bit_regs_p".
277 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
278 (mips_register_convertible): Check the architecture's
279 "mips64_transfers_32bit_regs_p".
280 (set_mips64_transfers_32bit_regs): New function.
281 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
282 "set remote-mips64-transfers-32bit-regs" command. Specify
283 set_mips64_transfers_32bit_regs as the set function.
56cea623 284 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 285
20187ed5
MK
2862003-11-16 Mark Kettenis <kettenis@gnu.org>
287
288 * i386-tdep.h (i386_supply_gregset): Provide prototype.
289 * i386-tdep.c (i386_supply_gregset): Make public.
290
6771c427
AC
2912003-11-16 Andrew Cagney <cagney@redhat.com>
292
293 * mips-tdep.c (mips_register_byte): Delete function.
294 (mips_gdbarch_init): Do not set "deprecated_register_byte".
295 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
296 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
297 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
298
c8048956
MK
2992003-11-16 Mark Kettenis <kettenis@gnu.org>
300
301 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
302
cc8a868a
AC
3032003-11-16 Andrew Cagney <cagney@redhat.com>
304
305 * config/mips/linux64.mt: Delete file.
306 * config/mips/tm-linux64.h: Delete file.
307 * config/mips/tm-mips64.h: Delete file.
308 * config/mips/embed64.mt: Delete file.
309 * config/djgpp/fnchange.lst: Update.
310 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
311 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
312 * config/mips/tm-irix6.h: Update copyright. Include
313 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
314 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
315 "OP_LDGPR".
316
5ef80fb0
AC
3172003-11-15 Andrew Cagney <cagney@redhat.com>
318
319 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
320 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
321 n32 registers 64 bit.
322 (mips_register_raw_size, mips_register_byte): For pseudo
323 registers, use the register's pseudo size and not the
324 corresponding raw register's size.
325 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
326 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
327 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
328 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
329
4246e332
AC
3302003-11-15 Andrew Cagney <cagney@redhat.com>
331
8fa9cfa1
AC
332 * mips-tdep.c (struct gdbarch_tdep): Delete member
333 gdb_target_is_mips64.
334 (GDB_TARGET_IS_MIPS64): Delete macro.
335 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
336 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
337 (mips_addr_bits_remove): Simplify.
338
c73e8f27
AC
339 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
340 register_size.
341
4246e332
AC
342 Replace MIPS_REGSIZE with mips_regsize.
343 * mips-tdep.c (mips_regsize): New function.
344 * mips-tdep.h (mips_regsize): Declare.
345 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
346 (SIZEOF_STRUCT_REG): Update.
347 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
348 (mipsnbsd_fill_reg): Update.
349 (mipsnbsd_supply_fpreg): Update.
350 (mipsnbsd_fill_fpreg): Update.
351 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
352 * mips-tdep.c (mips_register_raw_size): Update.
353 (mips_register_type): Update.
354 (SIGFRAME_BASE): Update.
355 (SIGFRAME_PC_OFF): Update.
356 (SIGFRAME_REGSAVE_OFF): Update.
357 (SIGFRAME_FPREGSAVE_OFF): Update.
358 (SIGFRAME_REG_SIZE): Update.
359 (mips32_heuristic_proc_desc): Update.
360 (print_gp_register_row): Update.
361 (mips_dump_tdep): Do not print MIPS_REGSIZE.
362 * irix5-nat.c (supply_gregset): Update.
363 (fetch_core_registers): Update.
364 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
365 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
366 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
367 (MIPS_REGISTER_BYTE): Update.
368 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
369
5e044b1e
AC
3702003-11-15 Andrew Cagney <cagney@redhat.com>
371
372 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
373 USE_REGISTER_NOT_ARG.
374 * stabsread.c (define_symbol): Update.
375
3a16a68c
AC
3762003-11-15 Andrew Cagney <cagney@redhat.com>
377
378 * bcache.h (deprecated_bcache): Declare.
379 (bcache): Make returned buffer constant.
380 * bcache.c (deprecated_bcache): New function.
381 (bcache_data): New function.
382 (bcache): Call bcache data.
383 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
384 (add_psymbol_with_dem_name_to_list): Ditto.
385
bb41a796
MK
3862003-11-15 Mark Kettenis <kettenis@gnu.org>
387
388 * glibc-tdep.h (struct gdbarch): Declare opaque.
389 (glibc_skip_solib_resolver): Adjust prototype.
390 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
391 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
392 (arm_linux_init_abi): Set skip_solib_resolver.
393 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
394 (i386_linux_init_abi): Set skip_solib_resolver.
395 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
396 (arm_linux_skip_solib_resolver): Remove prototype.
397 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
398 (i386_linux_skip_solib_resolver): Remove prototype.
399
4c8c40e6
MK
4002003-11-14 Mark Kettenis <kettenis@gnu.org>
401
402 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
403 function.
404 * gdbarch.c, gdbarch.h: Regenerate.
405 * infrun.c (handle_inferior_event): Call
406 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
407 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
408 definition.
409 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
410 prototype.
411
0e5d83e3
JJ
4122003-11-14 Jeff Johnston <jjohnstn@redhat.com>
413
414 * libunwind-frame.c: New file.
415 * libunwind-frame.h: New file.
416 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
417 * configure.in: Add --with-libunwind option support. Define
418 HAVE_LIBUNWIND if libunwind support selected / defaulted.
419 Also check for libunwind.h and libunwind-ia64.h headers.
420 * configure: Regenerated.
421 * Makefile.in: Add support for libunwind-frame.o.
422 * config.in: Regenerated.
423
287a334e
JJ
4242003-11-14 Jeff Johnston <jjohnstn@redhat.com>
425
426 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
427 set up the ia64 linux native target method for getting the kernel
428 unwind table.
429 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
430 * inftarg.c (child_xfer_partial): Enable section of code to
431 handle TARGET_OBJECT_UNWIND_TABLE.
432 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
433
140be7b8
ILT
4342003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
435
436 * config/arm/nbsd.mt (TM_FILE): Define.
437 * config/arm/tm-nbsd.h: New file.
438
0a90bcdd
AC
4392003-11-14 Andrew Cagney <cagney@redhat.com>
440
441 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
442 * ppc-sysv-tdep.c: Include "objfiles.h".
443 (ppc64_sysv_abi_push_dummy_call): Provide the
444 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
445
446 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
447 "name_of_malloc" to ".malloc".
448
087f1027
MK
4492003-11-13 Mark Kettenis <kettenis@gnu.org>
450
451 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
452
3882f37a
DC
4532003-11-13 David Carlton <carlton@kealia.com>
454
455 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
456
a8cf2722
AC
4572003-11-13 Andrew Cagney <cagney@redhat.com>
458
459 * arch-utils.h (selected_architecture_name): Declare.
460 (selected_byte_order): Declare.
461 * arch-utils.c (selected_byte_order): New function.
462 (selected_architecture_name): New function.
463 (target_architecture_auto): Make static.
464 (set_architecture_string): Make static.
465 (target_byte_order): Make static.
466 (target_byte_order_auto): Make static.
467 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
468 non-multi-arch definition.
469 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
470 (target_byte_order, target_architecture): Delete declaration.
471 (target_byte_order_auto, target_architecture_auto): Ditto.
472 * gdbarch.h: Re-generate.
473 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
474 "selected_byte_order".
475
475b6ddd
AC
4762003-11-13 Andrew Cagney <cagney@redhat.com>
477
478 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
479
a22286a9
JB
4802003-11-13 Jim Blandy <jimb@redhat.com>
481
482 * cp-namespace.c: Doc fix.
483
7bb11558
MS
4842003-11-12 Michael Snyder <msnyder@redhat.com>
485
39add00a
MS
486 * sh64_tdep.c: Regularize some names.
487 (sh_sh64_register_name): Rename to sh64_register_name.
488 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
489 (sh_sh64_register_byte): Rename to sh64_register_byte.
490 (sh_sh64_build_float_register_type):
491 Rename to sh64_build_float_register_type.
492 (sh_sh64_register_convert_to_virtual):
493 Rename to sh64_register_convert_to_virtual.
494 (sh_sh64_register_convert_to_raw):
495 Rename to sh64_register_convert_to_raw.
496
2a314ed5
MS
497 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
498 sh64_media_reg_base_num, sh64_compact_reg_base_num,
499 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
500 sh64_extract_return_value, sh64_show_media_regs,
501 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
502 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
503 sh64_pseudo_register_read, sh64_pseudo_register_write,
504 sh64_do_pseudo_register, sh_compact_print_registers_info):
505 Delete unused variable 'tdep'.
506
7bb11558
MS
507 * sh64-tdep.c: Coding standard and spelling comment fixes.
508 (sh64_extract_return_value): Replace deprecated_store_floating
509 with store_typed_floating.
510 (sh_sh64_register_convert_to_raw): Replace
511 deprecated_store_floating with store_typed_floating.
512 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
513 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
514 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
515 sh64_extract_struct_value_address, sh64_pop_frame,
516 sh64_extract_return_value, sh64_store_return_value,
517 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
518 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
519 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
520 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
521 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
522 deprecated_register_virtual_type, deprecated_register_raw_size,
523 deprecated_max_register_raw_size, or
524 deprecated_max_register_virtual_size. Instead, just set
525 gdbarch_register_type.
39add00a
MS
526 (sh_sh64_register_raw_size): Delete.
527 (sh_sh64_register_virtual_size): Delete.
7bb11558 528
e7c27a73
DJ
5292003-11-12 Daniel Jacobowitz <drow@mvista.com>
530
531 * dwarf2read.c (struct dwarf2_cu): New type.
532
533 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
534 dwarf2_cu structure to pass down.
535
536 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
537 (add_partial_enumeration, locate_pdi_sibling, process_die)
538 (read_file_scope, read_func_scope)
539 (read_lexical_block_scope, dwarf2_get_pc_bounds)
540 (dwarf2_add_field, dwarf2_attach_fields_to_type)
541 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
542 (read_structure_scope, read_enumeration, read_array_type)
543 (read_common_block, read_namespace, read_tag_pointer_type)
544 (read_tag_ptr_to_member_type, read_tag_reference_type)
545 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
546 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
547 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
548 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
549 (read_full_die. read_attribute_value, read_attribute)
550 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
551 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
552 (die_containing_type, type_at_offset, tag_type_to_type)
553 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
554 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
555
1640b821
DJ
5562003-11-12 Daniel Jacobowitz <drow@mvista.com>
557
558 PR breakpoints/1450
559 * breakpoint.c (insert_bp_location): Fix a logic error by returning
560 0 after a catchpoint fails.
561
d7891507
MC
5622003-11-11 Michael Chastain <mec.gnu@mindspring.com>
563
564 * mips-tdep.c (msymbol_size): Delete.
565
f594e5e9
MC
5662003-11-07 Michael Chastain <mec@shout.net>
567
568 * symtab.h (struct minimal_symbol): Add size.
569 * dbxread.c: Use it.
570 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
571 Rename to record_minimal_symbol.
572 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
573 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
574 (install_minimal_symbols): Ditto.
575 * objfiles.c (terminate_minimal_symbol_table): Ditto.
576 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
577 * m68hc11-tdep.c: Ditto.
578 * mips-tdep.c: Ditto.
579 * sh64-tdep.c: Ditto.
580
68e39e73
MC
5812003-11-10 Michael Chastain <mec.gnu@mindspring.com>
582
583 * MAINTAINERS: Change my e-mail address.
584
b60eb90d
AC
5852003-11-10 Andrew Cagney <cagney@redhat.com>
586
963e2bb7
AC
587 * gdbarch.sh (return_value): Replace "inval" and "outval" with
588 "readbuf" and "writebuf".
589 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
590 * d10v-tdep.c (d10v_return_value): Ditto.
591 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
592 (ppc_sysv_abi_broken_return_value): Ditto.
593 (ppc64_sysv_abi_return_value): Ditto.
594 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
595 (ppc_sysv_abi_return_value): Ditto.
596 (ppc_sysv_abi_broken_return_value): Ditto.
597 (ppc64_sysv_abi_return_value): Ditto.
598 * values.c (register_value_being_returned): Update call.
599 * stack.c (return_command): Update call.
600 * gdbarch.h, gdbarch.c: Re-generate.
601
8aa91c1e
AC
602 * target.h (struct target_ops): Order xfer buffer parameters "read
603 write" not "write read".
604 * bfd-target.c (target_bfd_xfer_partial): Update.
605 * remote.c (remote_xfer_partial): Update.
606 * inftarg.c (child_xfer_partial): Update.
607 * target.c (default_xfer_partial): Update.
608 (target_read_partial, target_write_partial): Update.
609 (debug_to_xfer_partial): Update.
610
100bcc3f
AC
611 * arch-utils.h, arch-utils.c: Fix typo in comment.
612
b60eb90d
AC
613 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
614 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
615 (set_gdbarch_from_file): Call
616 "deprecated_current_gdbarch_select_hack".
b60eb90d 617
bf922ad9
AC
6182003-11-09 Andrew Cagney <cagney@redhat.com>
619
ebdba546
AC
620 * arch-utils.c (gdbarch_update_p): New function.
621 * gdbarch.sh (gdbarch_update_p): Delete function.
622 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 623 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
624 * gdbarch.c: Re-generate.
625
7de2341d
AC
626 * gdbarch.sh (clear_gdbarch_swap): Delete function.
627 (swapout_gdbarch_swap): Delete function.
628 (swapin_gdbarch_swap): Delete function.
629 (init_gdbarch_swap): Delete function.
630 (initialize_non_multiarch): Delete function.
631 (current_gdbarch_swap_in_hack): New function.
632 (current_gdbarch_swap_out_hack): New function.
633 (current_gdbarch_swap_init_hack): New function.
634 * gdbarch.c: Re-generate.
635
db446970
AC
636 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
637 parameter to "current_gdbarch". Add comment explaining why.
638 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
639 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
640 * gdbarch.c: Re-generate.
641
341e3d11
AC
642 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
643 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
644 * config/s390/xm-linux.h: Delete file.
645 * config/m88k/xm-delta88v4.h: Delete stray.
646
bf922ad9
AC
647 * Makefile.in (arch-utils.o): Update dependencies.
648 * arch-utils.c: Include "osabi.h".
649 (gdbarch_info_fill): New function.
650 * arch-utils.h (gdbarch_info_fill): Declare.
651 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
652 * gdbarch.c: Re-generate.
653
a3640c75
MK
6542003-11-09 Mark Kettenis <kettenis@gnu.org>
655 David S. Miller <davem@redhat.com>
656
657 * glibc-tdep.c, glibc-tdep.h: New files.
658 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
659 * config/i386/linux.mt (TDEPFILES): Likewise.
660 * i386-linux-tdep.c (glibc-tdep.h): Include.
661 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
662 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
663 * arm-linux-tdep.c (glibc-tdep.h): Include.
664 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
665 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
666 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
667 (glibc_tdep_h): Define.
668 (glibc-tdep.o): Add dependencies.
669 (arm-linux-tdep.o): Update dependencies.
670 (i386-linux-tdep.o): Likewise.
671
e60e0ab2
AC
6722003-11-09 Andrew Cagney <cagney@redhat.com>
673
674 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
675 * config/mips/nm-irix6.h: Delete file.
676 * config/mips/nm-linux.h: Update copyright.
677 (MIPS_GNULINUX_TARGET): Delete macro.
678 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
679 * config/mips/xm-irix6.h: Delete file.
680 * config/mips/linux.mh (XM_FILE): Delete definition.
681 * config/mips/xm-linux.h: Delete file.
682
181555e9
AC
6832003-11-09 Andrew Cagney <cagney@redhat.com>
684
685 * d10v-tdep.c (d10v_return_value): New function.
686 (d10v_use_struct_convention): Delete function.
687 (d10v_store_return_value): Delete function.
688 (d10v_extract_struct_value_address): Delete function.
689 (d10v_gdbarch_init): Set "return_value" instead of
690 "extract_return_value", "store_return_value",
691 "extract_struct_value_address", and "use_struct_convention".
692 (RET1_REGNUM): Delete const.
693
dea0c52f
MK
6942003-11-09 Mark Kettenis <kettenis@gnu.org>
695
696 From David S. Miller <davem@redhat.com>:
697 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
698 * gdbarch.c, gdbarch.h: Regenerated.
699 * arch-utils.c (generic_skip_solib_resolver): New function.
700 * arch-utils.h (generic_skip_solib_resolver): New prototype.
701 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
702
6314a349
AC
7032003-11-07 Andrew Cagney <cagney@redhat.com>
704
705 * top.c (print_gdb_version): Replace STREQ with strcmp.
706 * valops.c (value_struct_elt_for_reference): Ditto.
707 (value_struct_elt_for_reference): Ditto.
708 * symtab.c (gdb_mangle_name): Ditto.
709 (find_line_symtab): Ditto.
710 * symmisc.c (maintenance_print_symbols): Ditto.
711 * symfile.c (symbol_file_command): Ditto.
712 * stabsread.c (define_symbol, read_type): Ditto.
713 (cleanup_undefined_types, scan_file_globals): Ditto.
714 * solib.c (solib_map_sections): Ditto.
715 * solib-svr4.c (bfd_lookup_symbol): Ditto.
716 * rs6000-tdep.c (skip_prologue): Ditto.
717 * p-valprint.c (pascal_value_print): Ditto.
718 (pascal_object_is_vtbl_ptr_type): Ditto.
719 * objfiles.c (in_plt_section): Ditto.
720 * minsyms.c (lookup_minimal_symbol): Ditto.
721 (compact_minimal_symbols): Ditto.
722 (find_solib_trampoline_target): Ditto.
723 * mdebugread.c (parse_type): Ditto.
724 * language.c (set_language_command): Ditto.
725 (set_type_command, set_range_command): Ditto.
726 * f-lang.c (add_common_block): Ditto.
727 (add_common_block): Ditto.
728 (find_first_common_named): Ditto.
729 (patch_all_commons_by_name): Ditto.
730 * elfread.c (elf_locate_sections): Ditto.
731 (elf_locate_sections): Ditto.
732 (elfstab_offset_sections): Ditto.
733 * dwarf2read.c (dwarf2_locate_sections): Ditto.
734 * dbxread.c (add_old_header_file): Ditto.
735 (find_corresponding_bincl_psymtab): Ditto.
736 (read_dbx_symtab, process_one_symbol): Ditto.
737 * coffread.c (patch_opaque_types): Ditto.
738 * cli/cli-decode.c (delete_cmd): Ditto.
739 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
740 * c-typeprint.c (c_type_print_base): Ditto.
741 * breakpoint.c (bpstat_stop_status): Ditto.
742 (clear_command, breakpoint_re_set_one): Ditto.
743
49df298f
AC
7442003-11-07 Andrew Cagney <cagney@redhat.com>
745
746 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
747 * bcache.c (struct bstring): Make "length" an unsigned short, add
748 "half_hash".
749 (struct bcache): Add "half_hash_error_count".
750 (bcache): Compute and save the "half_hash". Compare the
751 "half_hash" before comparing the length. Update
752 half_hash_error_count.
753
f168dd80
AC
7542003-11-07 Andrew Cagney <cagney@redhat.com>
755
756 * inftarg.c (child_xfer_partial): New function
757 (init_child_ops): Set "to_xfer_partial".
758
05580c65
AC
7592003-11-07 Andrew Cagney <cagney@redhat.com>
760
761 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
762 set "return_value" instead of "use_struct_convention".
763 (ppc_linux_use_struct_convention): Delete function.
764 (ppc_linux_return_value): New function.
765 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
766 (ppc_sysv_abi_broken_return_value): New function.
767 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
768 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
769 static.
770 (ppc_sysv_abi_extract_return_value): Delete function.
771 (ppc_sysv_abi_broken_extract_return_value): Delete function.
772 (ppc_sysv_abi_store_return_value): Delete function.
773 (ppc_sysv_abi_broken_store_return_value): Delete function.
774 (ppc_sysv_abi_use_struct_convention): Delete function.
775 (ppc64_sysv_abi_use_struct_convention): Delete function.
776 (ppc64_sysv_abi_extract_return_value): Delete function.
777 (ppc64_sysv_abi_store_return_value): Delete function.
778 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
779 (ppcnbsd_init_abi): Set "return_value", instead of
780 "use_struct_convention", "extract_return_value", and
781 "store_return_value".
782 (ppcnbsd_use_struct_convention): Delete function.
783 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
784 (ppc_sysv_abi_return_value): Declare.
785 (ppc_sysv_abi_broken_return_value): Declare.
786 (ppc_sysv_abi_use_struct_convention): Delete.
787 (ppc_sysv_abi_store_return_value): Delete.
788 (ppc_sysv_abi_extract_return_value): Delete.
789 (ppc_sysv_abi_broken_store_return_value): Delete.
790 (ppc_sysv_abi_broken_extract_return_value): Delete.
791 (ppc64_sysv_abi_use_struct_convention): Delete.
792 (ppc64_sysv_abi_extract_return_value): Delete.
793 (ppc64_sysv_abi_store_return_value): Delete.
794 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
795 set "return_value" instead of "extract_return_value",
796 "store_return_value", and "use_struct_convention".
797
1763fba4
MK
7982003-11-07 Mark Kettenis <kettenis@gnu.org>
799
22c7ba1a
MK
800 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
801
1763fba4
MK
802 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
803 fscanf.
804
fc07cc2d
MK
8052003-11-07 Mark Kettenis <kettenis@gnu.org>
806
807 * fbsd-proc.c: Fix formatting.
808
6a748db6
KB
8092003-11-06 Kevin Buettner <kevinb@redhat.com>
810
811 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
812 Define.
813 (new_variant): Set name for iacc0_regnum.
814 (frv_register_name): Accommodate pseudo-registers.
815 (frv_register_type): Add case for iacc0_regnum.
816 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
817 (frv_gdbarch_init): Set number of pseudo registers. Establish
818 pseudo-register read/write methods.
819
bf896cb0
AC
8202003-11-06 Andrew Cagney <cagney@redhat.com>
821
822 * valops.c (destructor_name_p): Replace STREQN with strncmp.
823 * top.c (command_line_input): Ditto.
824 * objc-exp.y (yylex): Ditto.
825 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
826 * jv-exp.y (yylex): Ditto.
827 * f-exp.y (yylex): Ditto.
828 * event-top.c (command_line_handler): Ditto.
829 * environ.c (get_in_environ): Ditto.
830 (set_in_environ): Ditto.
831 * dwarfread.c (handle_producer): Ditto.
832 * dbxread.c (process_one_symbol): Ditto.
833 * c-typeprint.c (c_type_print_base): Ditto.
834 * c-exp.y (yylex): Ditto.
835
0b603eba
AC
8362003-11-06 Andrew Cagney <cagney@redhat.com>
837 Jeff Johnston <jjohnstn@redhat.com>
838
839 * target.c (add_target): Only set "to_xfer_partial" when NULL.
840 (init_dummy_target): Set "to_xfer_partial".
841
9cedbfec
AC
8422003-11-06 Andrew Cagney <cagney@redhat.com>
843
844 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
845 REGISTER_CONVENTION.
846
26bb91f3
DJ
8472003-11-06 Daniel Jacobowitz <drow@mvista.com>
848
849 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
850 static.
851
0bde7532
DJ
8522003-11-06 Daniel Jacobowitz <drow@mvista.com>
853
854 * breakpoint.c (remove_breakpoint): Take an bp_location
855 instead of a breakpoint argument. Check the bp_location's type.
856 Fix a reversed condition for hardware breakpoints.
857
858 (insert_bp_location): Update call to remove_breakpoint.
859 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
860 (remove_hw_watchpoints): Likewise.
861 (reattach_breakpoints): Likewise.
862 (detach_breakpoints): Likewise.
863 (delete_breakpoint): Likewise.
864
075f6582
DJ
8652003-11-06 Daniel Jacobowitz <drow@mvista.com>
866
867 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
868 (beakpoint_init_inferior): Likewise.
869 (breakpoint_here_p): Likewise. Only check addresses for software
870 or hardware breakpoints.
871 (breakpoint_inserted_here_p): Likewise.
872 (breakpoint_thread_match): Likewise. Correct comment.
873 (bpstat_have_active_hw_watchpoints): Likewise.
874 (check_duplicates): Likewise.
875
879bfdc2
DJ
8762003-11-06 Daniel Jacobowitz <drow@mvista.com>
877
878 * breakpoints.c (insert_bp_location): New function, broken out
879 from insert_breakpoints. Work on an bp_location instead of a
880 breakpoint.
881 (insert_breakpoints): Use it.
882
cf3a9e5b
DJ
8832003-11-06 Daniel Jacobowitz <drow@mvista.com>
884
885 * breakpoint.h (struct bp_location): Add section.
886 (struct breakpoint): Remove section.
887 * breakpoint.c (insert_breakpoints, remove_breakpoint)
888 (breakpoint_here_p, breakpoint_inserted_here_p)
889 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
890 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
891 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
892 section through loc.
893
ffce0d52
DJ
8942003-11-06 Daniel Jacobowitz <drow@mvista.com>
895
896 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
897 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
898
e049a4b5
DJ
8992003-11-06 Daniel Jacobowitz <drow@mvista.com>
900
901 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
902 arguments. Initialize owner and type for the new breakpoint
903 location item.
904 (set_raw_breakpoint): Update call to allocate_bp_location.
905
7cc221ef
DJ
9062003-11-06 Daniel Jacobowitz <drow@mvista.com>
907
908 * breakpoint.h (struct bp_location): Add a chain pointer.
909 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
910 macros.
911 (bp_location_chain): New variable.
912 (allocate_bp_location): New function.
913 (set_raw_breakpoint): Use it.
914 (delete_breakpoint): Remove ->loc from the bp_location_chain.
915
5cab636d
DJ
9162003-11-06 Daniel Jacobowitz <drow@mvista.com>
917
918 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
919 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 920 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
921 * breakpoint.c (condition_command, read_memory_nobpt)
922 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
923 (reattach_breakpoints, update_breakpoints_after_exec)
924 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
925 (breakpoint_init_inferior, breakpoint_here_p)
926 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
927 (breakpoint_thread_match, bpstat_stop_status)
928 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
929 (describe_other_breakpoints, check_duplicates)
930 (make_breakpoint_permanent, create_thread_event_breakpoint)
931 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
932 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
933 (watch_command_1, print_one_exception_catchpoint)
934 (clear_command, breakpoint_re_set_one): Adjust member accesses to
935 use the breakpoint's ->loc.
936 (set_raw_breakpoint): Likewise. Initialize ->loc.
937 (delete_breakpoint): Likewise. Free ->loc.
938
7be0c536
AC
9392003-11-05 Andrew Cagney <cagney@redhat.com>
940
4c7d882e
AC
941 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
942 macro.
943 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
944 * config/i386/tm-cygwin.h
945 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
946 * config/powerpc/tm-linux.h
947 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
948 (at_subroutine_call_instruction_target): Delete declaration.
949 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
950 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
951 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
952
7be0c536
AC
953 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
954 "struct bfd_section" and "struct bfd".
955 * target.h (struct section_table): Ditto.
956 * rs6000-nat.c (xcoff_relocate_core): Ditto.
957 * solib-svr4.c (elf_locate_base): Ditto.
958 * pa64solib.c (dld_cache_t): Ditto.
959 * objfiles.h (struct obj_section): Ditto.
960 * objfiles.c (add_to_objfile_sections): Ditto.
961 * exec.c (bfdsec_to_vmap): Ditto.
962 (add_to_section_table): Ditto.
963 (build_section_table): Ditto.
964 * corelow.c (get_core_register_section): Ditto.
965 * coffread.c (find_linenos): Ditto.
966 * elfread.c (elf_interpreter): Delete #if0'd function.
967
968 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
969 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
970 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
971 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
972
973 * arch-utils.h (generic_cannot_extract_struct_value_address):
974 Delete declaration.
975 * wince.c (_initialize_wince): Fix multi-line string.
976 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
977
d8fe84e3
EZ
9782003-11-05 Elena Zannoni <ezannoni@redhat.com>
979
980 * top.c (execute_command): Fix broken logic for command execution
981 while inferior is running in async mode.
982
cbdfc7c0
MK
9832003-11-06 Mark Kettenis <kettenis@gnu.org>
984
985 * dwarf2-frame.c (execute_cfa_program): Mark register as
986 REG_SAVED_REG for DW_CFA_register opcode.
987
dac94105
MK
9882003-11-05 Mark Kettenis <kettenis@gnu.org>
989
990 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
991 %rsp, %rip and %eflags to match ABI-change.
992
85bf2b91
JJ
9932003-11-05 Jeff Johnston <jjohnstn@redhat.com>
994
995 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
996 (ia64_gdbarch_init): Don't bother calculating the os.
997 Instead use the gdbarch_info struct and look at the osabi field.
998 Also use gdbarch_list_lookup_by_info() to look for a
999 candidate gdbarch.
1000
cd31fb03
KB
10012003-11-05 Kevin Buettner <kevinb@redhat.com>
1002
1003 * frv-tdep.c (frv_register_byte): Delete.
1004 (frv_extract_return_value, frv_store_return_value)
1005 (frv_extract_struct_value_address): Don't call frv_register_byte().
1006 Convert to non-deprecated form.
1007 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1008 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1009 set_gdbarch_deprecated_store_return_value(), and
1010 set_gdbarch_deprecated_extract_struct_value_address() into
1011 non-deprecated forms.
1012
0a056982
AC
10132003-11-05 Andrew Cagney <cagney@redhat.com>
1014
1015 * mips-tdep.c (mips_dump_tdep): Do not print
1016 PRINT_EXTRA_FRAME_INFO.
1017 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1018 Rename PRINT_EXTRA_FRAME_INFO.
1019 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1020 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1021 (mips_print_extra_frame_info): Delete declaration.
1022 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1023
29e0a062
EZ
10242003-11-05 Elena Zannoni <ezannoni@redhat.com>
1025
1026 * coffread.c (coff_symtab_read): Remove passing of info parameter
1027 to prim_record_minimal_symbol_and_info.
1028
8af580fc
EZ
10292003-11-05 Elena Zannoni <ezannoni@redhat.com>
1030
1031 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1032 (decode_base_type): Delete ifdeffed out code.
1033
507836c0
AC
10342003-11-04 Andrew Cagney <cagney@redhat.com>
1035
1036 * symtab.c (find_active_alias): Delete function.
1037 (lookup_block_symbol): Delete alias code.
1038 * stabsread.c (resolve_live_range): Delete function.
1039 (add_live_range): Delete function.
1040 (resolve_symbol_reference): Delete function.
1041 (define_symbol): Delete live range and alias code.
1042 (scan_file_globals): Delete alias code.
1043 * symtab.h (SYMBOL_RANGES): Delete macro.
1044 (struct range_list): Delete structure.
1045 (struct symbol): Delete field "ranges".
1046 (SYMBOL_ALIASES): Delete macro.
1047 (struct alias_list): Delete structure.
1048 (struct symbol): Delete field "aliases".
1049
1083b3bc
MS
10502003-11-04 Michael Snyder <msnyder@redhat.com>
1051
1052 * MAINTAINERS: Remove myself as owner of breakpoints and
1053 of sparc/solaris.
1054
474e5826
CV
10552003-11-03 Corinna Vinschen <vinschen@redhat.com>
1056
1057 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1058 (sh_sh4al_dsp_register_name): Ditto.
1059 (sh4_nofpu_show_regs): Ditto.
1060 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1061 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1062
2160782c
AC
10632003-11-03 Andrew Cagney <cagney@redhat.com>
1064
1065 * bcache.c: Include "gdb_assert.h".
1066 (struct bcache): Add fields "expand_count" and
1067 "expand_hash_count".
1068 (expand_hash_table): Update the expand counts.
1069 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1070 on object sizes and hashes.
1071 * Makefile.in (bcache.o): Update dependencies.
1072
85302095
AC
10732003-11-03 Andrew Cagney <cagney@redhat.com>
1074
1075 * exec.c (xfer_memory): Eliminate xfer_fn.
1076
526eef89
KB
10772003-10-31 Kevin Buettner <kevinb@redhat.com>
1078
1079 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1080 (opcodes/frv-desc.h): Include.
1081 (iacc0h_regnum, iacc0l_regnum): Define.
1082 (last_spr_regnum, frv_num_regs): Update.
1083 (new_variant): Don't supply default names for holes in the SPRs.
1084 Supply names for iacc0h_regnum and iacc0l_regnum.
1085 (frv_register_type): Use symbolic constants first_fpr_regnum and
1086 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1087 builtin_type_int instead of builtin_type_int32.
1088 (frv_register_sim_regno): New function.
1089 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1090 * Makefile.in (gdb_sim_frv_h): Define.
1091 (frv-tdep.o): Update dependencies.
1092
9e815ec2
AC
10932003-10-31 Andrew Cagney <cagney@redhat.com>
1094
1095 * avr-tdep.c (avr_frame_this_id): Do not call
1096 deprecated_inside_entry_file.
1097 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1098 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1099 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1100 * arm-tdep.c (arm_prologue_this_id): Ditto.
1101 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1102
e372db49
JB
11032003-10-31 Jim Blandy <jimb@redhat.com>
1104
1105 * elfread.c (elf_symtab_read): Allocate correct number of tail
1106 elements to sectinfo structure. (Fix from Woody LaRue.)
1107
e8bcf01f
AC
11082003-10-31 Andrew Cagney <cagney@redhat.com>
1109
1110 * stack.c (return_command): Use get_frame_type, instead of
1111 CALL_DUMMY_HAS_COMPLETED.
1112 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1113 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1114
4c05fe53
MK
11152003-10-31 Mark Kettenis <kettenis@gnu.org>
1116
1117 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1118 explicitly specify size of array.
1119 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1120 TDEP->sc_num_regs.
1121
c8b91b89
AC
11222003-10-31 Andrew Cagney <cagney@redhat.com>
1123
1124 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1125 function.
1126 (s390_gdbarch_init): Set extract_struct_value_address.
1127 * arch-utils.c (generic_cannot_extract_struct_value_address):
1128 Delete function.
1129 * arch-utils.h (generic_cannot_extract_struct_value_address):
1130 Delete definition.
1131
fdfb6fc8
MK
11322003-10-31 Mark Kettenis <kettenis@gnu.org>
1133
1134 * i386-linux-nat.c (fetch_core_registers): Remove.
1135 (linux_elf_core_fns): Remove.
1136 (_initialize_i386_linux_nat): Remove.
1137
2f4950cd
AC
11382003-10-31 Andrew Cagney <cagney@redhat.com>
1139
1140 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1141 "exec.h".
1142 (exec_entry_point): New function.
1143 (enable_break): Create a "tmp_bfd_target", use that and
1144 entry_point_address when computing the relocation offset.
1145 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1146 * Makefile.in (solib-svr4.o): Update dependencies.
1147
bba2d28d
AC
11482003-10-31 Andrew Cagney <cagney@redhat.com>
1149
1150 * defs.h (XZALLOC): Define.
1151 * target.h (struct target_ops): Add "to_data";
1152 * bfd-target.h, bfd-target.c: New files.
1153 * Makefile.in (SFILES): Add "bfd-target.c".
1154 (COMMON_OBS): Add "bfd-target.o".
1155 (bfd-target.o): Specify dependencies.
1156 (bfd_target_h): Define.
1157 * defs.h (XZALLOC): Define.
1158
6066c3de
AC
11592003-10-31 Andrew Cagney <cagney@redhat.com>
1160
1161 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1162 adjust_breakpoint_address.
1163 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1164 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1165 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1166 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1167
4b8a223f
AC
11682003-10-31 Andrew Cagney <cagney@redhat.com>
1169
1170 * target.h (struct target_ops): Replace "to_read_partial" and
1171 "to_write_partial" with "to_xfer_partial". Update comments.
1172 * target.c (debug_to_write_partial): Delete function.
1173 (debug_to_xfer_partial): Replace debug_to_read_partial.
1174 (add_target, update_current_target, setup_target_debug): Set
1175 "to_xfer_partial" instead of "to_read_partial" and
1176 "to_write_partial".
1177 (default_xfer_partial): Replace "default_write_partial".
1178 (default_read_partial): Delete.
1179 (target_read_partial, target_write_partial): Call
1180 "to_xfer_partial".
1181 * remote.c (init_remote_ops): Set "to_xfer_partial".
1182 (init_remote_async_ops): Ditto.
1183 (remote_xfer_partial): Replace "remote_read_partial".
1184
66a72d25
MK
11852003-10-31 Mark Kettenis <kettenis@gnu.org>
1186
1187 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1188 registers in `fxsave' format.
1189 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1190
9a12a2a0
MK
11912003-10-30 Mark Kettenis <kettenis@gnu.org>
1192
e9f1aad5
MK
1193 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1194 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1195 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1196
bb489b3c
MK
1197 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1198 specify size of array.
1199 (i386_linux_init_abi): Remove initialization of
1200 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1201 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1202
da285bc4
MK
1203 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1204 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1205 core-regset.o.
1206
9a12a2a0
MK
1207 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1208 the ELF header.
1209
0e24ac5d
MK
12102003-10-29 Mark Kettenis <kettenis@gnu.org>
1211
6d6d8e9c
MK
1212 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1213 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1214 core-regset.o.
1215
25e60c9b
MK
1216 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1217
0e24ac5d
MK
1218 * corelow.c: Include "arch-utils.h", "regset.h" and
1219 "gdb_assert.h".
1220 (core_gdbarch): New variable.
1221 (sniff_core_bfd): Don't sniff if we have support for register sets
1222 in CORE_GDBARCH.
1223 (core_close): Reset CORE_GDBARCH.
1224 (core_open): Initialize CORE_GDBARCH.
1225 (get_core_register_section): Use register sets if they are
1226 supported by CORE_GDBARCH.
1227 (get_core_registers): Don't print error message if we have support
1228 for register sets in CORE_GDBARCH.
1229
0a0a4ac3
AC
12302003-10-29 Andrew Cagney <cagney@redhat.com>
1231
1232 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1233 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1234
7b097ae3
MK
12352003-10-29 Mark Kettenis <kettenis@gnu.org>
1236
1237 * objfiles.h (clear_objfile_data): New prototype.
1238 * objfiles.c (clear_objfile_data): New function.
1239 * symfile.c (reread_symbols): Clear per-objfile data.
1240
46f45a4a
JJ
12412003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1242
1243 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1244 printf_unfiltered instead of printf_filtered for output messages.
1245 (add_symbol_file_command): Ditto.
1246 (reread_symbols): Ditto.
1247 (overlay_auto_command): Ditto.
1248 (overlay_manual_command): Ditto.
1249 (overlay_off_command): Ditto.
1250
2b026650
MK
12512003-10-27 Mark Kettenis <kettenis@gnu.org>
1252
1253 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1254 (gdbarch_from_bfd): New function.
1255 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1256 deprecated_select_gdbarch_hack.
1257 * arch-utils.h (gdbarch_from_bfd): New prototype.
1258
0bcad584 12592003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1260
1261 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1262 arch_info. Use warning instead of fprintf_filtered. Do not use
1263 deprecated bfd_printable_arch_mach.
1264
7f398216
KB
12652003-10-26 Kevin Buettner <kevinb@redhat.com>
1266
1267 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1268 Delete.
1269 (frv_register_type): Rename from frv_register_virtual_type. Add
1270 ``struct gdbarch *'' parameter.
1271 (frv_gdbarch_init): Delete calls to the following functions:
1272 set_gdbarch_deprecated_size(),
1273 set_gdbarch_deprecated_register_bytes(),
1274 set_gdbarch_deprecated_register_raw_size(),
1275 set_gdbarch_deprecated_max_register_raw_size(),
1276 set_gdbarch_deprecated_register_virtual_size(),
1277 set_gdbarch_deprecated_max_register_virtual_size(),
1278 set_gdbarch_deprecated_register_virtual_size(),
1279 set_gdbarch_deprecated_register_virtual_type().
1280 Add call to function set_gdbarch_register_type().
1281
bcf48cc7
MK
12822003-10-26 Mark Kettenis <kettenis@gnu.org>
1283
6c7de422
MK
1284 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1285 FDOFF_REGNUM): Remove defines.
1286 * win32-nat.c (do_child_fetch_inferior_registers): Include
1287 "i387-tdep.h".
3e685d41 1288 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1289 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1290 undefine I387_ST0_REGNUM.
1291
f783586b
MK
1292 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1293 * x86-64-tdep.c (x86_64_store_return_value): Use
1294 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1295
bcf48cc7
MK
1296 Change register numbers to enumartion values.
1297 * i386-tdep.h (enum i386_regnum): New.
1298 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1299 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1300 I386_ST0_REGNUM): Remove defines.
1301 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1302 I386_EDI_REGNUM): Remove defines.
1303
b6591e8b
AC
13042003-10-24 Andrew Cagney <cagney@redhat.com>
1305
1306 * target.c: Include "gdbcore.h".
1307 (get_target_memory, get_target_memory_unsigned): New functions.
1308 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1309 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1310 Use get_target_memory_unsigned.
1311 * Makefile.in (target.o): Update dependencies.
1312
5f724446
AC
13132003-10-24 Andrew Cagney <cagney@redhat.com>
1314
ce2826aa
AC
1315 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1316 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1317 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1318 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1319 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1320
5f724446
AC
1321 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1322 (can_run_code_for): Use the OO term "singleton".
1323
fc70c2a0
AC
13242003-10-23 Andrew Cagney <cagney@redhat.com>
1325
1326 * Makefile.in (stack.o): Add $(regcache_h).
1327 * stack.c: Include "regcache.h"
1328 (return_command): Rewrite. Use get_frame_id and
1329 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1330 about unhandled return-values.
1331 * value.h (set_return_value): Delete declaration.
1332 * values.c (set_return_value): Delete function.
1333
4afcc598
JJ
13342003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1335
1336 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1337 (pseudo_regs): Add comment regarding register stack registers.
1338 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1339 (floatformat_valid): New static routine.
1340 (floatformat_ia64_ext): Add name field and set up is_valid routine
1341 to floatformat_valid().
1342 (examine_prologue): For the previous cfm, use
1343 frame_unwind_register()
1344 if the cfm is not stored in a register-stack register. Save the
1345 previous cfm value in the prev_cfm field. Add debug output.
1346 (ia64_frame_this_id): Use frame_id_build_special() to also register
1347 the bsp. Add debug output.
1348 (ia64_sigtramp_frame_this_id): Ditto.
1349 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1350 registers and also add some checks for framelessness before accepting
1351 current register values for fields such as return address. For cfm,
1352 use the cached prev_cfm field if available. Add comment to explain
1353 PSR logic. Add debug output.
1354 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1355 as part of initialization.
1356 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1357 calculated. Cache the bsp and cfm values.
1358 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1359 instead of using ia64_frame_prev_register() which doesn't expect most
1360 registers to be saved. The saved values for bsp and sp
1361 can be taken from the cache. Add debug output.
1362 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1363 the bsp.
1364
6cfae0bc
JB
13652003-10-23 Jim Blandy <jimb@redhat.com>
1366
1367 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1368 architecture the current arch can run code for --- but not if it's
1369 a superset.
1370 (can_run_code_for): New function.
1371
fcd182f9
JW
13722003-10-22 James E Wilson <wilson@specifixinc.com>
1373
1374 * MAINTAINERS: Move myself from paper trail section back to write
1375 after approval section.
1376
4646aa9d
AC
13772003-10-22 Andrew Cagney <cagney@redhat.com>
1378
1379 * exec.h: New file.
1380 * win32-nat.c: Include "exec.h".
1381 * solib.c: Include "exec.h".
1382 * target.h (build_section_table): Delete declaration.
1383 * somsolib.c: Include "exec.h".
1384 (exec_ops): Delete extern declaration.
1385 * rs6000-nat.c: Update copyright. Include "exec.h".
1386 (exec_ops): Delete extern declaration.
1387 * pa64solib.c: Update copyright. Include "exec.h".
1388 (exec_ops): Delete extern declaration.
1389 * exec.c: Update copyright. Include "exec.h".
1390 * corelow.c: Update dependencies. Include "exec.h".
1391 * Makefile.in (exec_h): Define.
1392 (exec.o, somsolib.o): Update dependencies.
1393 (pa64solib.o, corelow.o): Update dependencies.
1394
0088c768
AC
13952003-10-22 Andrew Cagney <cagney@redhat.com>
1396
1397 * target.c: Include "gdb_assert.h" (target_read): Call
1398 "target_read_partial", not "target_write_partial".
1399 (default_read_partial, default_write_partial): New function.
1400 (target_read_partial, target_write_partial): Simplify, assume that
1401 there is always a read/write method.
1402 (update_current_target, add_target): Always set "to_read_partial"
1403 and "to_write_partial".
1404 (target_write, target_read): Fail on a zero byte transfer.
1405 * Makefile.in (target.o): Update dependencies.
1406 * target.h: Update copyright date.
1407 (target_object): Fix typo.
1408
e2d0e7eb
AC
14092003-10-22 Andrew Cagney <cagney@redhat.com>
1410
1411 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1412 multi-arch method, add "targ" parameter.
1413 (struct target_ops): Declare.
1414 * gdbarch.h, gdbarch.c: Re-generate.
1415 * Makefile.in (c-valprint.o): Update dependencies.
1416 * arch-utils.h: Update copyright.
1417 (convert_from_func_ptr_addr_identity): Declare.
1418 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1419 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1420 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1421 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1422 * infcall.c (find_function_addr, call_function_by_hand): Update.
1423 * c-valprint.c: Include "target.h".
1424 (print_function_pointer_address): Update.
1425
f1c07ab0
AC
14262003-10-22 Andrew Cagney <cagney@redhat.com>
1427
1428 * target.c (target_close): New function.
1429 (debug_to_close): Use "target_close".
1430 (push_target): Use "target_close".
1431 (unpush_target): Use "target_close".
1432 (pop_target): Use "target_close".
1433 * target.h (struct target_ops): Add "to_xclose".
1434 (target_open): Delete macro. Move comment to "to_open".
1435 (target_close): Replace macro with function that takes a target.
1436 * top.c (quit_target): Pass "current_target" to "target_close".
1437
5520a790
EZ
14382003-10-21 Elena Zannoni <ezannoni@redhat.com>
1439
1440 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1441 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1442 * symtab.h (lookup_minimal_symbol_text): Update.
1443 * breakpoint.c (create_overlay_event_breakpoint,
1444 create_longjmp_breakpoint): Update callers.
1445 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1446 * symtab.c (find_pc_sect_line): Ditto.
1447
caa92b73
AC
14482003-10-21 Andrew Cagney <cagney@redhat.com>
1449
1450 * target.c (errno): Delete extern declaration.
1451
aa2a9a3c
JJ
14522003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1453
1454 * ia64-tdep.c: Change all occurrences of
1455 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1456 (ia64_frame_prev_register): Minor whitespace change.
1457
4beec2b7
MC
14582003-10-20 Michael Chastain <mec@shout.net>
1459
1460 * config/djgpp/fnchange.lst: Add lines for:
1461 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1462 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1463 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1464 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1465 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1466 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1467 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1468
92ad9cd9
AC
14692003-10-20 Andrew Cagney <cagney@redhat.com>
1470
1471 * values.c (register_value_being_returned): Update comments. Use
1472 "gdbarch_return_value" when available.
1473 (using_struct_return): Ditto.
1474 (set_return_value): Ditto. Use "gdbarch_return_value" when
1475 available.. Print a warning, and not an error, when an unhandled
1476 return type is encountered.
1477 * infcmd.c: Include "gdb_assert.h".
1478 (print_return_value): When gdbarch_return_value_p, and using
1479 struct return, assume that the value is not available.
1480 * defs.h (return_value_convention): Define.
1481 * gdbarch.sh (gdbarch_return_value): New predicate method.
1482 * gdbarch.h, gdbarch.c: Re-generate
1483 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1484
198beae2
AC
14852003-10-20 Andrew Cagney <cagney@redhat.com>
1486
1487 * symtab.c: Replace "struct sec" with "struct bfd_section".
1488 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1489
24d693a6 14902003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1491
1492 * config/djgpp/fnchange.lst: Add lines for:
1493 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1494 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1495 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1496
21ad8dc3
MK
14972003-10-19 Mark Kettenis <kettenis@gnu.org>
1498
1499 * amd64fbsd-nat.c (fetch_inferior_registers,
1500 store_inferior_registers): Remove functions.
1501 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1502
cced5e27
MK
15032003-10-18 Mark Kettenis <kettenis@gnu.org>
1504
1505 Add NetBSD/amd64 native configuration:
1506 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1507 * amd64nbsd-tdep.c: New file.
1508 * amd64nbsd-nat.c: New file.
1509 * amd64bsd-nat.c: New file.
1510 * config/i386/nbsd64.mh: New file.
1511 * config/i386/nbsd64.mt: New file.
1512 * configure.host: Add x86_64-*-netbsd*.
1513 * configure.tgt: Add x86_64-*-netbsd*.
1514 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1515 New targets.
1516 * NEWS (New native configurations): Mention NetBSD/amd64.
1517
666de3fd
MC
15182003-10-17 Michael Chastain <mec@shout.net>
1519
1520 * config/djgpp/fnchange.lst: Remove dead lines for:
1521 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1522 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1523 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1524 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1525 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1526 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1527 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1528 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1529 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1530 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1531 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1532 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1533 gdb/config/sparc/tm-sparclite.h,
1534 gdb/gdbtk/generic/ChangeLog-2001,
1535 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1536 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1537 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1538 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1539 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1540 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1541 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1542 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1543 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1544 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1545 itcl/iwidgets3.0.0/demos/fileselectionbox,
1546 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1547 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1548 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1549 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1550 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1551 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1552 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1553 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1554 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1555 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1556 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1557 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1558 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1559 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1560 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1561 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1562 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1563 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1564 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1565 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1566 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1567 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1568 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1569 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1570 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1571 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1572 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1573 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1574 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1575 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1576 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1577 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1578 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1579 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1580 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1581 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1582 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1583 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1584 itcl/iwidgets3.0.0/demos/scrolledframe,
1585 itcl/iwidgets3.0.0/demos/scrolledhtml,
1586 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1587 itcl/iwidgets3.0.0/demos/scrolledtext,
1588 itcl/iwidgets3.0.0/demos/selectionbox,
1589 itcl/iwidgets3.0.0/demos/selectiondialog,
1590 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1591 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1592 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1593 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1594 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1595 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1596 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1597 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1598 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1599 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1600 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1601 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1602 itcl/iwidgets3.0.0/doc/selectionbox.n,
1603 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1604 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1605 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1606 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1607 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1608 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1609 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1610 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1611 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1612 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1613 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1614 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1615 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1616 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1617 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1618 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1619 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1620 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1621 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1622 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1623 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1624 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1625 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1626 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1627 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1628 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1629 itcl/iwidgets3.0.0/tests/selectionbox.test,
1630 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1631 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1632 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1633 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1634 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1635 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1636 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1637 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1638 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1639 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1640 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1641 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1642 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1643 tk/mac/tkMacProjects.sit.hqx.
1644
1e3ff5ad
AC
16452003-10-17 Andrew Cagney <cagney@redhat.com>
1646
8db32d44
AC
1647 * target.c (target_section_by_addr): New function.
1648 (do_xfer_memory): Use "target_section_by_addr".
1649 * target.h (target_section_by_addr): Declare.
1650
1e3ff5ad
AC
1651 * target.h (struct target_ops): Add "to_read_partial" and
1652 "to_write_partial", delete "to_query".
1653 (target_read_partial, target_write_partial): Declare.
1654 (target_read, target_write): Declare.
1655 (target_query): Delete macro.
1656 * target.c (target_read_partial): New function.
1657 (target_write_partial, target_read, target_write): New function.
1658 (update_current_target): Delete inheritance of "to_query". Add
1659 comments about "to_read_partial" and "to_write_partial".
1660 (debug_to_partial_read, debug_to_partial_write): New functions.
1661 (debug_to_query): Delete function.
1662 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1663 instead of "to_query".
1664 * remote.c (remote_read_partial): Replace "remote_query".
1665 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1666 (init_remote_async_ops): Ditto.
1667 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1668 "target_read_partial" instead of "target_query".
1669 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1670 Use "target_read_partial" instead of "target_query".
1671
48c66725
JJ
16722003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1673
1674 * frame.h (struct frame_id): Add new field: special_addr.
1675 (frame_id_build_special): New prototype.
1676 * frame.c (frame_id_build_special): New function.
1677 (frame_id_build): Change to call frame_id_build_special().
1678 (frame_id_eq): Change to also test special_addr field.
1679 (frame_id_inner): Update comment.
1680
7998dfc3
AC
16812003-10-17 Andrew Cagney <cagney@redhat.com>
1682
1683 * target.c (update_current_target): Perform the target cleanup.
1684 Put the target stack beneath the squashed "current_target".
1685 (add_target): Delete disabled call to "cleanup_target".
1686 (cleanup_target): Delete function.
1687 (push_target, unpush_target): Do not call "cleanup_target".
1688
9c04404e 16892003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1690
1691 * target.c (target_stack): Change to a static target_ops.
1692 (update_current_target): Walk the "struct target_ops" stack.
1693 (pop_target, do_xfer_memory, target_info): Ditto.
1694 (find_target_beneath): Ditto.
1695 (push_target): Rewrite to use the "struct target_ops" stack.
1696 (unpush_target): Ditto.
1697 * target.h (struct target_stack_item): Delete definition.
1698 (target_stack): Delete declaration.
1699 (struct target_ops): Add field "beneath".
1700
c98a2b49 17012003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1702
1703 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1704 declaration.
1705 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1706 (h8300_examine_prologue): Use h8300_normal_mode flag
1707 (h8300_gdbarch_init): Set architecture info for normal mode
1708
506fb367
DJ
17092003-10-16 Daniel Jacobowitz <drow@mvista.com>
1710
1711 * remote.c (remote_protocol_vcont): New variable.
1712 (set_remote_protocol_vcont_packet_cmd): New function.
1713 (show_remote_protocol_vcont_packet_cmd): New function.
1714 (init_all_packet_configs): Handle remote_protocol_vcont.
1715 (remote_vcont_probe): New function.
1716 (remote_vcont_resume): New function.
1717 (remote_resume): Use it.
1718 (remote_async_resume): Call remote_resume.
1719 (_initialize_remote): Add verbose-resume packet commands.
1720
65815ea1
AC
17212003-10-16 Andrew Cagney <cagney@redhat.com>
1722
1723 * infrun.c (handle_inferior_event): Add comment about
1724 "frame_id_inner" being too weak.
1725
40324f1b
EZ
17262003-10-16 Elena Zannoni <ezannoni@redhat.com>
1727
1728 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1729 second parameter, which is always null. Remove
1730 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1731 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1732 accordingly.
1733 * somsolib.c (som_solib_create_inferior_hook,
1734 som_solib_desire_dynamic_linker_symbols): Update callers.
1735 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1736
17372003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1738
1739 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1740 debug interface, SDI (Scalable Debug Interface).
1741 * NEWS: Mention m32r SDI protocol was supported.
1742 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1743 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1744
51931cbb
JJ
17452003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1746
1747 * ia64-linux-tdep.c: Include gdbcore.h.
1748 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1749 (ia64_linux_sigcontext_register_addr): Find the address of the
1750 sigcontext area stored in the sigframe instead of using
1751 a magic offset constant.
1752
84e7fd53
AC
17532003-10-15 Andrew Cagney <cagney@redhat.com>
1754
1755 * remote.c (remote_search): Delete function.
1756 * target.h (target_search): Delete disabled macro.
1757 (struct target_ops): Delete disabled field "to_search".
1758
0f4d7c52
KB
17592003-10-14 Kevin Buettner <kevinb@redhat.com>
1760
1761 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1762 instead of deprecated_inside_entry_file().
1763
2e952408
CV
17642003-10-14 Corinna Vinschen <vinschen@redhat.com>
1765
1766 * sh-tdep.c: Fix copy/paste hangover in comment.
1767 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1768 mode.
1769 (sh3e_sh4_extract_return_value): Ditto.
1770
7e86466e
RH
17712003-10-13 Richard Henderson <rth@redhat.com>
1772
1773 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1774 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1775 match c_val_print a bit closer.
1776
46a16dba
KB
17772003-10-13 Kevin Buettner <kevinb@redhat.com>
1778
1779 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1780 (frv_gdbarch_adjust_breakpoint_address): New function.
1781 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1782 method.
1783
76897487
KB
17842003-10-13 Kevin Buettner <kevinb@redhat.com>
1785
1786 * breakpoint.h (struct breakpoint): Add new member
1787 ``requested_address''.
1788 * breakpoint.c (breakpoint_adjustment_warning)
1789 (adjust_breakpoint_address): New static functions.
1790 (print_it_typical): Issue warning if breakpoint's address is different
1791 from its requested address.
1792 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1793 (breakpoint_re_set_one): Set breakpoint's
1794 ``requested_address'' field. Set ``address'' field to the
1795 result of calling adjust_breakpoint_address() on the requested
1796 address.
1797
a1131521
KB
17982003-10-13 Kevin Buettner <kevinb@redhat.com>
1799
1800 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1801 * gdbarch.h, gdbarch.c: Regenerate.
1802
6ce6d90f
MK
18032003-10-11 Mark Kettenis <kettenis@gnu.org>
1804
155c1d33
MK
1805 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1806 TDEP->sc_num_regs.
1807
8a96bc77
MK
1808 * i386fbsd-tdep.c: New file.
1809 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1810 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1811 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1812 i386bsd-tdep.c.
1813 (_initialize_i386fbsd_tdep): New function.
1814 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1815 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1816 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1817 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1818 TDEP->sc_num_regs.
1819 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1820 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1821 to initialize TDEP->sc_num_regs.
1822 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1823 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1824 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1825 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1826 FreeBSD ELF OS/ABI's here.
1827 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1828 (i386fbsd-tdep.o): New target.
1829 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1830 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1831
477f40d1
MK
1832 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1833 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1834 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1835 in initialization of TDEP->sc_num_regs.
1836
c6b33596
MK
1837 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1838 (x86_64_init_abi): Initialize regset_from_core_section if
1839 appropriate.
1840
8446b36a
MK
1841 * i386-tdep.c (i386_regset_from_core_section): New function.
1842 (i386_gdbarch_init): Initialize regset_from_core_section if
1843 appropriate.
1844 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1845
c783cbd6
MK
1846 * i386-tdep.h (struct regset): Declare opaque.
1847
6ce6d90f
MK
1848 * gdbarch.sh (regset_from_core_section): New method.
1849 (struct regset): Declare opaque.
1850 * gdbarch.c, gdbarch.h: Regenerated.
1851
b98ed7be
AM
18522003-10-11 Alan Modra <amodra@bigpond.net.au>
1853
1854 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1855 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1856 Correct test for pc within section.
1857
f6214256
MK
18582003-10-11 Mark Kettenis <kettenis@gnu.org>
1859
1860 * gdbarch.sh: Remove trailing whitepsace from comments.
1861
a8f4cde1
RM
18622003-10-08 Roland McGrath <roland@redhat.com>
1863
1864 * gcore.c (make_mem_sec): Function removed, folded into ...
1865 (gcore_create_callback): ... here. To omit a section, clear its
1866 SEC_LOAD bit rather than zeroing its size.
1867 Omit read-only sections only if they correspond to a known disk file.
1868 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1869
74276724
MS
18702003-10-10 Michael Snyder <msnyder@redhat.com>
1871
1872 * d10v-tdep.c: Fix typo in comment.
1873
e754ae69
AC
18742003-10-10 Andrew Cagney <cagney@redhat.com>
1875
1876 * rs6000-tdep.c (e500_store_return_value): Delete function.
1877 (e500_extract_return_value): Delete function.
1878 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1879 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1880 "ppc_sysv_abi_restore_return_value" where applicable.
1881 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1882 (ppc_sysv_abi_extract_return_value): Declare.
1883 (ppc_sysv_abi_broken_store_return_value): Declare.
1884 (ppc_sysv_abi_broken_extract_return_value): Declare.
1885 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1886 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1887 start of file.
1888 (do_ppc_sysv_return_value): New function.
1889 (ppc_sysv_abi_extract_return_value): New function.
1890 (ppc_sysv_abi_store_return_value): New function.
1891 (ppc_sysv_abi_broken_extract_return_value): New function.
1892 (ppc_sysv_abi_broken_store_return_value): New function.
1893 (ppc_sysv_abi_use_struct_convention): Call
1894 do_ppc_sysv_return_value.
1895
8d4ce20a
JB
18962003-10-10 J. Brobecker <brobecker@gnat.com>
1897
1898 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1899 to lookup the main function symbol.
1900
afce3d2a
CV
19012003-10-10 Corinna Vinschen <vinschen@redhat.com>
1902
1903 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1904 types correctly.
1905 (sh_push_dummy_call_fpu): Fix argument passing rules.
1906 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1907 float types.
1908 (sh3e_sh4_store_return_value): Ditto.
1909
7fe958be
EZ
19102003-10-10 Elena Zannoni <ezannoni@redhat.com>
1911
1912 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1913 comment.
1914
3f997a97
CV
19152003-10-10 Corinna Vinschen <vinschen@redhat.com>
1916
1917 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1918 more readable code. Accomodate passing of bitfields.
1919
8be9034a
AC
19202003-10-10 Andrew Cagney <cagney@redhat.com>
1921
1922 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1923 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1924 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1925 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1926 (ppc64_sysv_abi_push_dummy_call): New function.
1927 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1928 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1929 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1930
85a453d5
KI
19312003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1932
1933 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1934 * README: Ditto.
1935 * d10v-tdep.c: Ditto.
1936 * h8300-tdep.c: Ditto.
1937 * remote-e7000.c: Ditto.
1938 * remote-hms.c: Ditto.
1939 * ser-e7kpc.c: Ditto.
1940 * sh-stub.c: Ditto.
1941 * sh-tdep.c: Ditto.
1942 * sh-tdep.h: Ditto.
1943 * sh3-rom.c: Ditto.
1944 * sh64-tdep.c: Ditto.
1945 * top.c: Ditto.
1946 * wince.c: Ditto.
1947 * config/d10v/d10v.mt: Ditto.
1948 * config/sh/embed.mt: Ditto.
1949 * config/sh/linux.mt: Ditto.
1950 * config/sh/tm-linux.h: Ditto.
1951 * config/sh/tm-sh.h: Ditto.
1952 * config/sh/wince.mt: Ditto.
1953
221c12ff
AC
19542003-10-09 Andrew Cagney <cagney@redhat.com>
1955
1956 * ppc-tdep.h (struct type): Declare opaque.
1957 * x86-64-tdep.h (struct regcache): Declare opaque.
1958 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1959 coding style.
1960
ef5200c1
AC
19612003-10-09 Andrew Cagney <cagney@redhat.com>
1962
1963 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1964 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1965 (SOFTWARE_SINGLE_STEP_P): Ditto.
1966 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1967 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1968 (SOFTWARE_SINGLE_STEP_P): Ditto.
1969 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1970 software_single_step to rs6000_software_single_step.
a8f4cde1 1971
9644bbdd
AC
19722003-10-09 Andrew Cagney <cagney@redhat.com>
1973
1974 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1975
db72fa6b
MS
19762003-10-09 Michael Snyder <msnyder@redhat.com>
1977
f3efb16c
MS
1978 * frame.h: Fix typo in comment.
1979 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1980 * d10v-tdep.c: Random whitespace/comment tweaks.
1981
9a5cef92
EZ
19822003-10-09 Elena Zannoni <ezannoni@redhat.com>
1983
1984 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1985 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1986 on stack.
a8f4cde1 1987
9a5cef92
EZ
1988 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1989 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1990 in detail.
a8f4cde1 1991
0f317a0c
DJ
19922003-10-09 Daniel Jacobowitz <drow@mvista.com>
1993
1994 * remote-mips.c (mips_initialize): Remove unneeded call to
1995 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1996
bbab2f46
DJ
19972003-10-09 Daniel Jacobowitz <drow@mvista.com>
1998
1999 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2000 a memory pointer.
2001
550950b8
JJ
20022003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2003
2004 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2005 for any lwp we resume.
2006 (running_callback): Add lwps that have pending status events
2007 against them to be considered running.
2008
15c69bc7
KI
20092003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2010
2011 * m32r-tdep.c : Include "dis-asm.h".
2012 * Makefile.in (m32r-tdep.o): Update dependencies.
2013
51065942
JB
20142003-10-06 J. Brobecker <brobecker@gnat.com>
2015
2016 * completer.h (get_gdb_completer_word_break_characters): Delete.
2017 * completer.c: include language.h.
2018 (gdb_completer_word_break_characters): Delete.
2019 (get_gdb_completer_word_break_characters): Delete.
2020 (location_completer): Use the word break characters of the current
2021 language.
2022 (complete_line): Likewise.
2023 (line_completion_function): Likewise.
2024 (skip_quoted_chars): Likewise.
2025 * Makefile.in (completer.o): Add dependency on language.h.
2026 * top.c (init_main): Set the readline word break characters
2027 to GDB's default word break characters.
2028
6084f43a
JB
20292003-10-06 J. Brobecker <brobecker@gnat.com>
2030
2031 * language.h (language_defn): new field, la_word_break_characters.
2032 * language.c (unknown_language_defn): Set new field to
2033 default_word_break_characters.
2034 (auto_language_defn): Likewise.
2035 (local_language_defn): Likewise.
2036 * ada-lang.c (ada_language_defn): Likewise.
2037 * c-lang.c (c_language_defn): Likewise.
2038 (cplus_language_defn): Likewise.
2039 (asm_language_defn): Likewise.
2040 (minimal_language_defn): Likewise.
2041 * f-lang.c (f_language_defn): Likewise.
2042 * jv-lang.c (java_language_defn): Likewise.
2043 * m2-lang.c (m2_language_defn): Likewise.
2044 * objc-lang.c (objc_language_defn): Likewise.
2045 * p-lang.c (pascal_language_defn): Likewise.
2046 * scm-lang.c (scm_language_defn): Likewise.
2047
944fcfab
AC
20482003-10-06 Andrew Cagney <cagney@redhat.com>
2049
2050 * ppc-sysv-tdep.c: Re-indent.
2051
9f0a5303
JB
20522003-10-06 J. Brobecker <brobecker@gnat.com>
2053
2054 * language.h (default_word_break_characters): Add prototype.
2055 * language.c (default_word_break_characters): New function.
2056
7270b6ed
AS
20572003-10-06 Andreas Schwab <schwab@suse.de>
2058
2059 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2060 with %eax.
2061
a5d61f66
AC
20622003-10-06 Andrew Cagney <cagney@redhat.com>
2063
2064 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2065 "h8500-tdep.c".
2066 (z8k-tdep.o): Delete custom build rule.
2067
28a86f5c
AC
20682003-10-06 Andrew Cagney <cagney@redhat.com>
2069
1bfd8a83
AC
2070 * Makefile.in: Update all dependencies.
2071
17144ef8
AC
2072 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2073 No longer list PA as as obsolete candidate. List m32r as
2074 broken instead of obsolete.
a8f4cde1 2075
a5679ae5
AC
2076 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2077 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2078 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2079 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2080 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2081 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2082 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2083 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2084 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2085 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2086 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2087 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2088 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2089 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2090 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2091 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2092 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2093 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2094 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2095 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2096 * config/z8k/z8k.mt: Ditto.
2097
4a8269c0
AC
2098 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2099 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2100 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2101 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2102 sparclite were removed.
2103 * configure.host, configure.tgt: Remove corresponding tuples.
2104
41989fcd
AC
2105 * breakpoint.c, breakpoint.h: Remove obsolete code.
2106 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2107 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2108 * stabsread.h, xcoffread.c: Ditto.
2109
28a86f5c
AC
2110 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2111 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2112 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2113 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2114
4efdaa0d
DL
21152003-10-06 David Lecomber <dsl@sources.redhat.com>
2116
2117 * f-valprint.c: Reformatting
2118
ae53de43
MK
21192003-10-06 Mark Kettenis <kettenis@gnu.org>
2120
a8bb57e7
MK
2121 * x86-64-tdep.c: Remove duplicate comment.
2122
ae53de43
MK
2123 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2124 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2125 names for return values. This fixes a bug since we looked at %rbx
2126 instead of %rdx.
2127
473f17b0
MK
21282003-10-05 Mark Kettenis <kettenis@gnu.org>
2129
2c261fae
MK
2130 * x86-64-tdep.c: Include "regset.h".
2131
473f17b0
MK
2132 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2133 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2134 sizeof_fpregset.
2135 * i386-tdep.c: Include "regset.h".
2136 (i386_supply_gregset): New function.
2137 (i386_supply_fpregset): New function.
2138 (i386_gdbarch_init): Initialze register set-related members of
2139 TDEP.
2140 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2141 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2142
afd48b75
AC
21432003-10-03 Andrew Cagney <cagney@redhat.com>
2144
2145 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2146 set extract_return_value, store_return_value and
2147 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2148 ppc64_sysv_abi_store_return_value and
2149 ppc64_sysv_abi_use_struct_convention.
2150 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2151 (ppc64_sysv_abi_store_return_value): Declare.
2152 (ppc64_sysv_abi_use_struct_convention): Declare.
2153 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2154 (ppc64_sysv_abi_extract_return_value): New function.
2155 (ppc64_sysv_abi_store_return_value): New function.
2156 (ppc64_sysv_abi_use_struct_convention): New function.
2157 (ppc64_sysv_abi_return_value): New function.
2158
9b540880
AC
21592003-10-03 Andrew Cagney <cagney@redhat.com>
2160
2161 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2162 convert a descriptor to a function when it's in the ".opd"
2163 section.
2164
8748518b
CV
21652003-10-03 Corinna Vinschen <vinschen@redhat.com>
2166
2167 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2168 reg_size to keep GCC silent.
2169
0fd85043
CV
21702003-10-03 Corinna Vinschen <vinschen@redhat.com>
2171
2172 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2173 base for DW_EH_PE_textrel encodings.
2174 (read_encoded_value): Add a DW_EH_PE_textrel case.
2175 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2176 section.
2177
37b517aa
MK
21782003-10-03 Mark Kettenis <kettenis@gnu.org>
2179
2180 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2181
12c266ea
AC
21822003-10-02 Andrew Cagney <cagney@redhat.com>
2183
2184 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2185 REGISTER_RAW_SIZE.
2186 * gdbarch.h, gdbarch.c: Re-generate.
2187 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2188 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2189 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2190 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2191 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2192 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2193 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2194 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2195 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2196 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2197 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2198 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2199 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2200 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2201 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2202 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2203
78ba4af6
JB
22042003-10-02 Jim Blandy <jimb@redhat.com>
2205
2206 * dwarf2read.c (struct die_info): Doc fix.
2207
617daa0e
CV
22082003-10-02 Corinna Vinschen <vinschen@redhat.com>
2209
2210 * sh-tdep.c: Running thru gdb_indent.sh.
2211
e5e33cd9
CV
22122003-10-02 Corinna Vinschen <vinschen@redhat.com>
2213
2214 * sh-tdep.c (sh_justify_value_in_reg): New function.
2215 (sh_stack_allocsize): Ditto.
2216 (flt_argreg_array): New array used for floating point argument
2217 passing.
2218 (sh_init_flt_argreg): New function.
a8f4cde1 2219 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2220 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2221 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2222 Fix argument passing strategy.
2223 (sh_push_dummy_call_nofpu): Ditto.
2224
5fe830e4
AC
22252003-10-01 Andrew Cagney <cagney@redhat.com>
2226
2227 * value.h (register_value_being_returned): Declare. Replace
2228 "value_being_returned".
2229 * infcall.c (call_function_by_hand): Use
2230 register_value_being_returned.
2231 * infcmd.c (print_return_value): Call
2232 "register_value_being_returned", handle struct return locally.
2233 * values.c (register_value_being_returned): New function. Replace
2234 "value_being_returned".
a8f4cde1 2235
5fe830e4 22362003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2237
2238 * linux-proc.c (linux_do_registers): New function.
2239 (linux_make_note_section): Use linux_do_registers in case of
2240 single threaded inferior programs.
2241
64f395bf
AC
22422003-10-01 Andrew Cagney <cagney@redhat.com>
2243
2244 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2245 use STRUCT_ADDR. When not using "struct return convention", pass
2246 "0" to "value_being_returned". Add FIXMEs.
2247 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2248 value_being_returned. Add comments.
2249 * values.c (value_being_returned): Add fixme.
2250 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2251 (hppa_value_returned_from_stack): Add FIXME.
2252
639d11d3
DC
22532003-09-30 David Carlton <carlton@kealia.com>
2254
2255 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2256 'has_children' and 'next' by 'child' and 'sibling'.
2257 (read_comp_unit): Rework algorithm, breaking body into
2258 read_die_and_children and read_die_and_siblings.
2259 (read_die_and_children, read_die_and_siblings): New.
2260 (read_full_die): Add 'has_children' argument; set it instead of
2261 the die's 'has_children' field. Minor formatting cleanup.
2262 (free_die_list): Use die->child and die->sibling instead of
2263 die->next.
2264 (dump_die_list): Ditto.
2265 (sibling_die): Use die->sibling.
2266 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2267 'has_children' and 'next' fields.
a8f4cde1
RM
2268 (process_die, read_file_scope, read_func_scope)
2269 (read_lexical_block_scope, read_structure_scope)
2270 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2271 (read_namespace, read_subroutine_type, dump_die): Ditto.
2272
5bffac25
AC
22732003-09-30 Andrew Cagney <cagney@redhat.com>
2274
2275 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2276 to 224, not 220.
2277
f30992d4
AC
22782003-09-30 Andrew Cagney <cagney@redhat.com>
2279
2280 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2281 REGISTER_VIRTUAL_SIZE.
2282 * gdbarch.h, gdbarch.c: Regenerate.
2283 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2284 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2285 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2286
2e092625
AC
22872003-09-29 Andrew Cagney <cagney@redhat.com>
2288
2289 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2290 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2291 * gdbarch.h, gdbarch.c: Regenerate.
2292 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2293 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2294
2295 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2296 * remote-vxmips.c (vx_read_register): Ditto.
2297 * remote-vx68.c (vx_read_register): Ditto.
2298 * gnu-nat.c (inf_validate_procs): Ditto.
2299
7a5dd6ee
JB
23002003-09-29 J. Brobecker <brobecker@gnat.com>
2301
2302 * infcall.c (call_function_by_hand): Fix build failure
2303 introduced in the previous change to this file.
2304
1fe43d45
AC
23052003-09-29 Andrew Cagney <cagney@redhat.com>
2306
2307 * NEWS: Mention Objective-C.
2308
e28a332c
JG
23092003-09-29 Jerome Guitton <guitton@act-europe.fr>
2310
2311 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2312 test if the register has been saved on the stack.
2313 (arm_scan_prologue_cache): When analysing the instruction
2314 "str lr, [sp, #-4]", save the address where lr has been stored.
2315
9ff63c35
AC
23162003-09-28 Andrew Cagney <cagney@redhat.com>
2317
7f5f525d
AC
2318 * frame.c (frame_read_unsigned_register): Delete function.
2319 * frame.h (frame_read_unsigned_register): Delete declaration.
2320 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2321 get_frame_register_unsigned.
2322 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2323 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2324 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2325
7f5f525d
AC
2326 * frame.h (frame_read_register): Delete declaration.
2327 * frame.c (frame_read_register): Delete function.
2328 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2329 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2330 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2331 * mips-tdep.c (mips_register_to_value): Ditto.
2332 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2333 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2334
2335 * frame.c (frame_read_signed_register): Delete function.
2336 (frame_read_unsigned_register): Update comments.
2337 * frame.h (frame_read_signed_register): Delete declaration.
2338 * h8300-tdep.c (h8300_print_register): Use
2339 get_frame_register_signed.
2340 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2341
9ff63c35
AC
2342 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2343 Rename VALUE_RETURNED_FROM_STACK.
2344 * infcmd.c (print_return_value): Update.
2345 * infcall.c (call_function_by_hand): Update.
2346
41d041d6
MK
23472003-09-28 Mark Kettenis <kettenis@gnu.org>
2348
2349 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2350 regcache argument and reverse the order of the other two
2351 arguments. Remove local regcache variable. Determine
2352 architecture from REGCACHE. Update comments.
2353 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2354 reverse the order of the other two arguments. Remove local
2355 regcache variable. Determine architecture from REGCACHE. Update
2356 comments.
2357 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2358 prototypes. Update comments.
2359 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2360 comment.
2361 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2362 Update.
2363 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2364 * i386-interix-nat.c (supply_fpregset): Update.
2365 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2366 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2367 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2368 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2369 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2370 Update.
2371 * i386obsd-tdep.c (fetch_core_registers): Update.
2372 * i386v4-nat.c (supply_fpregset): Update.
2373 * x86-64-linux-nat.c (supply_fpregset): Update.
2374 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2375
1cb97e17
MK
23762003-09-27 Mark Kettenis <kettenis@gnu.org>
2377
5716833c
MK
2378 * i386-tdep.h: Put opaque declarations in alphabetical
2379 order. Remove spurious whitespace.
2380 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2381 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2382 * i386-tdep.c (MM0_REGNUM): Remove define.
2383 (i386_mmx_regnum_p): Add gdbarch argument.
2384 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2385 Rewrite using new macro definitions for FPU/SSE registers.
2386 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2387 definitions from i387-tdep.h.
2388 (i386_register_name): Update.
2389 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2390 new macro definitions for FPU/SSE registers.
2391 (i386_extract_return_value): Determine whether floating-point
2392 registers are present by examining REGCACHE's architecture.
2393 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2394 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2395 FPU/SSE registers.
2396 (i386_register_type): Update.
2397 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2398 definitions for FPU registers. Use REGCACHE's architecture to
2399 determine the appropriate register numbers.
2400 (i386_pseudo_register_read, i386_pseudo_register_write,
2401 i386_register_reggroup_p): Update.
2402 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2403 TDEP->mm0_regnum.
2404 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2405 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2406 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2407 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2408 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2409 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2410 *' to `void *'.
2411 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2412 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2413 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2414 definitions for FPU/SSE registers.
2415 (FXSAVE_MXCSR_ADDR): New define.
2416 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2417 TDEP->mm0_regnum.
2418 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2419 (I387_ST0_REGNUM): Define.
2420
41d35cb0
MK
2421 * regcache.h (get_regcache_arch): New prototype.
2422 * regcache.c (get_regcache_arch): New function.
2423
54e74f72
MK
2424 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2425 whitespace.
2426
1cb97e17
MK
2427 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2428 Initialize using ARRAY_SIZE.
2429
0968aa8c
AC
24302003-09-27 Andrew Cagney <cagney@redhat.com>
2431
2432 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2433 "init_frame_pc_default".
2434 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2436 * vax-tdep.c (vax_gdbarch_init): Update.
2437 * v850-tdep.c (v850_gdbarch_init): Update.
2438 * sh64-tdep.c (sh64_gdbarch_init): Update.
2439 * s390-tdep.c (s390_gdbarch_init): Update.
2440 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2441 * mcore-tdep.c (mcore_gdbarch_init): Update.
2442 * h8300-tdep.c (h8300_gdbarch_init): Update.
2443 * cris-tdep.c (cris_gdbarch_init): Update.
2444 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2445
54c84734
MK
24462003-09-26 Mark Kettenis <kettenis@gnu.org>
2447
2448 * regset.h: New file.
2449 * Makefile.in (regset_h): Add.
2450
1b1d3794
AC
24512003-09-25 Andrew Cagney <cagney@redhat.com>
2452
2453 * frame.h (deprecated_frame_saved_regs): Rename
2454 get_frame_saved_regs.
2455 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2456 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2457 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2458 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2459 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2460
e6beb428
AC
24612003-09-25 Andrew Cagney <cagney@redhat.com>
2462
2463 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2464 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2465 and Java.
2466 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2467 arm*-*-* do not use the new frame code.
2468
710122da
DC
24692003-09-25 David Carlton <carlton@kealia.com>
2470
2471 * c-exp.y: Remove 'register' declarations.
2472 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2473
79c2c32d
DC
24742003-09-25 David Carlton <carlton@kealia.com>
2475
2476 * c-exp.y: Include cp-support.h. Add qualified_type.
2477 (yylex): Delete nested type hack; add comments.
2478 * cp-namespace.c (cp_lookup_nested_type): New function.
2479 * cp-support.h: Declare cp_lookup_nested_type.
2480 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2481 instead of value_struct_elt_for_reference.
2482 * valops.c: Include cp-support.h.
2483 (value_aggregate_elt): New function.
2484 (value_namespace_elt): Ditto.
2485 (value_struct_elt_for_reference): Make static.
2486 * value.h: Delete declaration of value_struct_elt_for_reference;
2487 add declaration for value_aggregate_elt.
2488 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2489 (valops.o): Ditto.
2490
898c62f5
DJ
24912003-09-25 Daniel Jacobowitz <drow@mvista.com>
2492
2493 * stack.c: Include "reggroups.h".
2494 (frame_info): Only display registers in all_reggroup.
2495 * Makefile.in (stack.o): Update dependencies.
2496
28cd8767
JG
24972003-09-25 Jerome Guitton <guitton@act-europe.fr>
2498
2499 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2500 "add ip, sp #n" in the prologue.
2501 (arm_scan_prologue): Ditto.
2502
a4ab2b5d
JG
25032003-09-25 Jerome Guitton <guitton@act-europe.fr>
2504
2505 * MAINTAINERS (write after approval): Add myself.
2506
3f244638
AS
25072003-09-25 Andreas Schwab <schwab@suse.de>
2508
2509 * m68k-tdep.c: Include "dwarf2-frame.h".
2510 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2511 * Makefile.in (m68k-tdep.o): Update dependencies.
2512
1c0159e0
CV
25132003-09-25 Corinna Vinschen <vinschen@redhat.com>
2514
2515 * sh-tdep.c (struct frame_extra_info): Remove.
2516 (struct sh_frame_cache): New structure.
2517 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2518 (GET_TARGET_REG): Ditto but target register.
2519 (GET_PUSHED_REG): Remove.
2520 (IS_MOV_ARG_TO_REG): New macro.
2521 (IS_MOV_ARG_TO_IND_R14): New macro.
2522 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2523 (IS_MOVW_PCREL_TO_REG): New macro.
2524 (IS_MOVL_PCREL_TO_REG): New macro.
2525 (IS_SUB_REG_FROM_SP): New macro.
2526 (IS_ARG_MOV): Remove.
2527 (IS_MOV_TO_R14): Remove.
2528 (IS_RESTORE_FP): New macro.
2529 (IS_RTS): New macro.
2530 (IS_LDS): New macro.
2531 (IS_MOV_FP_SP): New macro.
2532 (IS_ADD_REG_TO_FP): New macro.
2533 (IS_ADD_IMM_FP): New macro.
2534 (sh_skip_prologue_hard_way): Remove.
2535 (sh_saved_pc_after_call): Remove.
2536 (sh_frame_chain): Remove.
2537 (sh_find_callers_reg): Remove.
a8f4cde1 2538 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2539 (sh_fp_frame_init_saved_regs): Remove.
2540 (sh_init_extra_frame_info): Remove.
2541 (sh_analyze_prologue): New function.
2542 (sh_skip_prologue): Remove deprecated code. Rely on new function
2543 sh_analyze_prologue when after_prologue fails.
2544 (sh_frame_saved_pc): Remove.
2545 (sh_alloc_frame_cache): New function.
2546 (sh_frame_cache): Ditto.
2547 (sh_frame_prev_register): Ditto.
2548 (sh_frame_this_id): Ditto.
2549 (sh_frame_unwind): New structure defining the heuristic frame
2550 sniffer interface.
2551 (sh_frame_sniffer): New function.
2552 (sh_unwind_sp): Ditto.
2553 (sh_unwind_pc): Ditto.
2554 (sh_unwind_dummy_id): Ditto.
2555 (sh_frame_base_address): Ditto.
2556 (sh_frame_base): New structure defining new frame base code.
2557 (sh_in_function_epilogue_p): New function.
2558 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2559 code and to call all new code instead. Initialize dwarf2 and
2560 heuristic frame sniffer.
2561
5f9769d1
PH
25622003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2563
a8f4cde1
RM
2564 * parser-defs.h (struct exp_descriptor): New definition, containing
2565 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2566 evaluating expressions.
2567 (exp_descriptor_standard): Declare new variable.
2568 (print_subexp): Make global and declare here (from expprint.c).
2569 (dump_subexp): Ditto.
2570 (dump_subexp_body_standard): Declare.
2571 (operator_length_standard): Declare.
2572 (op_name_standard): Declare.
2573 (print_subexp): Declare.
2574 (print_subexp_standard): Declare.
2575
2576 * language.h (struct language_defn): Add la_exp_desc field to hold
2577 pointer to table for language-specific operators.
2578 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2579
2580 * parse.c (operator_length): Move most code to new
5f9769d1 2581 operator_length_standard function. Use language-specific information.
a8f4cde1 2582 (operator_length_standard): New function taking most code from
5f9769d1
PH
2583 operator_length.
2584 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2585
2586 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2587 and OP_EXTENDED_LAST.
a8f4cde1
RM
2588
2589 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2590 Make global; remove static declaration.
2591 Move most code to print_subexp_standard.
a8f4cde1 2592 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2593 print_subexp.
2594 (op_name): Add expression to argument signature.
a8f4cde1 2595 Use langauge-specific op_name.
5f9769d1
PH
2596 Move most code to op_name_standard.
2597 (op_name_standard): New function, containing code formerly in op_name.
2598 (dump_subexp): Use new version of op_name function.
2599 Use language-specific dump_subexp_body, and move most existing code to
2600 dump_subexp_body_standard.
2601 (dump_raw_expression): Use new op_name interface.
2602 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2603 (dump_subexp_body_standard): New function, containing code formerly
2604 in dump_subexp_body.
a8f4cde1 2605
5f9769d1
PH
2606 * language.c (unknown_language): Add default la_exp_desc field and
2607 remove evaluate_exp field.
2608 (auto_language): Ditto.
2609 (local_language): Ditto.
2610 * f-lang.c (f_language_defn): Ditto.
2611 * c-lang.c (c_language_defn): Ditto.
2612 (cplus_language_defn): Ditto.
2613 (asm_language_defn): Ditto.
2614 (minimal_language_defn): Ditto.
2615 * p-lang.c (pascal_language_defn): Ditto.
2616 * m2-lang.c (m2_language_defn): Ditto.
2617 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2618
2619 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2620 Java-specific expression evaluator.
2621 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2622 field.
a8f4cde1 2623 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2624 Scheme-specific expression evaluator.
2625 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2626 field.
2627 * objc-lang.c (print_object_command): Take evaluate_exp from the
2628 la_exp_desc field.
a8f4cde1 2629
5f9769d1 2630 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2631
2632 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2633 la_exp_desc's type.
2634 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2635
24daaebc
PH
26362003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2637
2638 * parser-defs.h (operator_length): Declare.
a8f4cde1 2639
24daaebc
PH
2640 * parse.c (length_of_subexp): Use operator_length to get operator
2641 lengths and arities for operators.
2642 Move most code to new operator_length function.
a8f4cde1 2643 (operator_length): New function absorbing most code from
24daaebc
PH
2644 length_of_subexp.
2645 (prefixify_subexp): Remove large case and use operator_length instead.
2646 (parse_exp_1): Use renamings:
a8f4cde1 2647 dump_prefix_expression => dump_raw_expression and
24daaebc 2648 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2649
24daaebc
PH
2650 * expression.h (dump_prefix_expression): Rename to ...
2651 (dump_raw_expression): New name.
2652 (dump_postfix_expression): Rename to ...
2653 (dump_prefix_expression): New name.
a8f4cde1 2654
24daaebc
PH
2655 * expprint.c (dump_subexp): Make global. Add comment.
2656 Move most existing code to dump_subexp_body.
2657 (dump_subexp_body): New function.
2658 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2659 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2660 work before the expression is prefixified.
2661 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2662 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2663 that's what it does.
a8f4cde1 2664 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2665 prefixified expression.
2666 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2667
8c2957c4
JB
26682003-09-22 Jim Blandy <jimb@redhat.com>
2669
2670 * dwarf2read.c (read_array_type): When building the type for an
2671 array of unspecified length, make sure to choose the upper bound
2672 so that the array's total length comes out to be zero --- that's
2673 how we represent such arrays.
2674
592e3010
MC
26752003-09-22 Michael Chastain <mec@shout.net>
2676
2677 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2678
365c70b1
JJ
26792003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2680
2681 * top.c (quit_force): Fix indirect call to quit_target so
2682 a struct qt_args pointer is passed.
2683
5d6eb653
AC
26842003-09-22 Andrew Cagney <cagney@redhat.com>
2685
2686 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2687 * arch-utils.c (init_frame_pc_noop): Delete function.
2688 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2689 "init_frame_pc".
2690 * mips-tdep.c (mips_gdbarch_init): Ditto.
2691 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2692 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2693 declaration.
2694 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2695 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2696 declaration.
2697 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2698
b222a67f
AG
26992003-09-22 Anthony Green <green@redhat.com>
2700
2701 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2702 declaration.
2703
d5b5ac79
AC
27042003-09-20 Andrew Cagney <cagney@redhat.com>
2705
deafb061
AC
2706 * breakpoint.c: Eliminate ARGSUSED.
2707 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2708 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2709 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2710 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2711 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2712 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2713 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2714 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2715 * wince.c, remote-vx.c: Ditto.
2716
d5b5ac79
AC
2717 * cli/cli-script.c: Remove "register" attributes.
2718 * config/pa/tm-hppa.h: Ditto.
2719 * cli/cli-decode.c: Ditto.
2720 * cli/cli-cmds.c: Ditto.
2721
c6316faa
AC
27222003-09-19 Andrew Cagney <cagney@redhat.com>
2723
2724 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2725 DEPRECATED_NPC_REGNUM.
2726 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2727
f4f99b11
CF
27282003-09-19 Christopher Faylor <cgf@redhat.com>
2729
2730 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2731
1708f284
JB
27322003-09-19 Jim Blandy <jimb@redhat.com>
2733
2734 * macrotab.c (macro_include): Use the correct comparison to find
2735 the appropriate place for this inclusion in the list.
2736
b9fbf434
AC
27372003-09-19 Andrew Cagney <cagney@redhat.com>
2738
2739 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2740 (DEPRECATED_HPUX_TEXT_END): Define.
2741 (deprecated_hpux_text_end): Declare.
2742 (struct target_ops): Declare opaque.
2743 * hppah-nat.c (text_end): Make static.
2744 (deprecated_hpux_text_end): New function.
2745 * exec.c (text_end): Delete global variable.
2746 (NEED_TEXT_START_END): Do not define.
2747 (exec_file_attach): Replace code computing "text_end" code with
2748 call to DEPRECATED_HPUX_TEXT_END.
2749
5b03f266
AC
27502003-09-19 Andrew Cagney <cagney@redhat.com>
2751
2752 * utils.c (align_up, align_down): New functions.
2753 * defs.h (align_up, align_down): Declare.
2754 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2755 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2756 and "align_down".
2757 (round_up, round_down): Delete functions.
2758 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2759 "align_down".
2760 (ROUND_DOWN, ROUND_UP): Delete macros.
2761 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2762 * h8300-tdep.c: Replace "round_up" and "round_down" with
2763 "align_up" and "align_down".
2764 (round_up, round_down): Delete macros.
2765 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2766 "align_down".
2767 (ROUND_UP, ROUND_DOWN): Delete macros.
2768
51db5742
JB
27692003-09-18 J. Brobecker <brobecker@gnat.com>
2770
2771 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2772 hard-coded constant. Use the proper machine name instead.
2773
77949794
AC
27742003-09-17 Andrew Cagney <cagney@redhat.com>
2775
2776 * sparc-tdep.c (legacy_register_name): Delete function.
2777 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2778 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2779 * infcmd.c (gdb_register_name): Delete variable.
2780 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2781 REGISTER_NAME and "tm.h".
2782 * gdbarch.h, gdbarch.c: Regenerate.
2783 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2784 REGISTER_NAMES in comments.
2785 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2786 * m68klinux-nat.c (regmap): Ditto.
2787
b55c33cc
JB
27882003-09-17 Jim Blandy <jimb@redhat.com>
2789
2790 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2791
957e27ac
AC
27922003-09-17 Andrew Cagney <cagney@redhat.com>
2793
2794 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2795 (ppcnbsd_init_abi): Set "use_struct_convention" to
2796 "ppcnbsd_use_struct_convention".
2797
192cb3d4
MK
27982003-09-17 Mark Kettenis <kettenis@gnu.org>
2799
2800 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2801 * gdbarch.h, gdbarch.c: Regenerate.
2802 (stabs_argument_has_addr): New architecture method.
2803 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2804 * arch-utils.c: Include "buildsym.h".
2805 (default_stabs_argument_has_addr): New function.
2806 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2807 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2808
efe59759
AC
28092003-09-17 Andrew Cagney <cagney@redhat.com>
2810
2811 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2812 * gdbarch.h, gdbarch.c: Regenerate.
2813 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2814 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2815 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2816 * sparcnbsd-tdep.c: Update.
a8f4cde1 2817
62700349
AC
28182003-09-17 Andrew Cagney <cagney@redhat.com>
2819
2820 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2821 * gdbarch.h, gdbarch.c: Regenerate.
2822 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2823 * d10v-tdep.c, frame.c: Update.
2824 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2825 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2826 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2827 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2828 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2829 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2830 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2831 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2832 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2833 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2834 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2835 * config/pa/nm-hppah.h: Update.
2836
b9ff3018
AC
28372003-09-16 Andrew Cagney <cagney@redhat.com>
2838
2839 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2840 "use_struct_convention" to "ppc_linux_use_struct_convention".
2841 (ppc_linux_use_struct_convention): New function.
2842 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2843 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2844 "rs6000_use_struct_convention".
2845 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2846 declaration.
2847 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2848 Delete function.
2849
aa1ee363
AC
28502003-09-16 Andrew Cagney <cagney@redhat.com>
2851
2852 * buildsym.c: Remove more occurances of "register".
2853 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2854 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2855 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2856 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2857 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2858 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2859 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2860 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2861
f2ea0907
CV
28622003-09-16 Corinna Vinschen <vinschen@redhat.com>
2863
2864 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2865 numbers to enumeration values.
2866 * sh-tdep.c: Accomodate above change.
2867 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2868 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2869 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2870 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2871 (IS_FPUSH): Rename from IS_FMOV.
2872 (sh_extract_struct_value_address): Remove useless comment.
2873 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2874 instead of own local values.
2875 (sh_dump_tdep): Remove.
2876 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2877 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2878
1c704f11
AC
28792003-09-15 Andrew Cagney <cagney@redhat.com>
2880
2881 * doublest.c (convert_floatformat_to_doublest): No longer need to
2882 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2883
ac79b88b
DJ
28842003-09-15 Daniel Jacobowitz <drow@mvista.com>
2885
2886 * values.c (unpack_double): Call floatformat_is_valid.
2887
1c671366
MK
28882003-09-15 Mark Kettenis <kettenis@gnu.org>
2889
de5227fb
MK
2890 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2891 ps_strings into a long.
2892
1c671366
MK
2893 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2894 _initialize_am64fbsd_nat.
2895
a604369a
KB
28962003-09-15 Kevin Buettner <kevinb@redhat.com>
2897
2898 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2899 associated with DW_AT_ranges attribute is out of bounds.
2900
b3cacbee
DL
29012003-09-15 David Lecomber <dsl@sources.redhat.com>
2902
2903 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2904
d0f37bb2
MC
29052003-09-14 Michael Chastain <mec@shout.net>
2906
2907 * config/m68k/nm-apollo68v.h: Delete.
2908 * config/m68k/xm-apollo68v.h: Delete.
2909
69517000
AC
29102003-09-14 Andrew Cagney <cagney@redhat.com>
2911
2912 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2913 * dcache.c: Update copyrights and descriptions.
2914 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2915
ef8b349d
AC
29162003-09-14 Andrew Cagney <cagney@redhat.com>
2917
2918 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2919 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2920
52f0bd74
AC
29212003-09-14 Andrew Cagney <cagney@redhat.com>
2922
2923 * alpha-nat.c: Remove some occurances of "register".
2924 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2925 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2926 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2927 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2928 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2929 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2930 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2931 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2932 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2933 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2934 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2935 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2936 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2937 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2938 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2939 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2940 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2941 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2942 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2943 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2944 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2945 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2946
4a4b3fed
AC
29472003-09-13 Andrew Cagney <cagney@redhat.com>
2948
2949 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2950 * ppc-tdep.h (struct regcache): Declare opaque.
2951 * objfiles.h (struct objfile_data): Declare opaque.
2952 * cp-support.h (struct objfile): Declare opaque.
2953 * linux-nat.h (target_waitstatus): Declare opaque.
2954
2110b94f
MK
29552003-09-14 Mark Kettenis <kettenis@gnu.org>
2956
1c671366
MK
2957 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2958 (stabs_argument_has_addr): New architecture method.
2959 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2960 * arch-utils.c: Include "buildsym.h".
2961 (default_stabs_argument_has_addr): New function.
2962 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2963 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2964
2110b94f
MK
2965 * cris-tdep.c (cris_gdbarch_init): Set
2966 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2967 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2968 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2969 * mips-tdep.c (mips_gdbarch_init): Likewise.
2970 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2971 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2972
48436ce6
AC
29732003-09-13 Andrew Cagney <cagney@redhat.com>
2974
2975 * values.c (using_struct_return): Delete "function" and "funcaddr"
2976 parameters.
2977 * value.h (using_struct_return): Update declaration.
2978 * infcmd.c (finish_command_continuation): Update.
2979 (finish_command): Update.
2980 * infcall.c (call_function_by_hand): Update.
2981 * eval.c (evaluate_subexp_standard): Update.
2982
403d9909
CF
29832003-09-13 Christopher Faylor <cgf@redhat.com>
2984
2985 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2986 SSE registers since gdb will not operate correctly without this.
2987 Restore include file ordering munged in previous change.
2988 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2989
ebf7d56b
MK
29902003-09-13 Mark Kettenis <kettenis@gnu.org>
2991
8e823e25
MK
2992 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2993 REG_STRUCT_HAS_ADDR.
2994 * gdbarch.c, gdbarch.h: Updated.
2995 * infcall.c (call_function_by_hand): Update.
2996 * stabsread.c (define_symbol): Updated.
a8f4cde1 2997
ebf7d56b
MK
2998 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2999
d3f13f72
CF
30002003-09-12 Christopher Faylor <cgf@redhat.com>
3001
3002 * win32-nat.c: Reorganize so that defines used by target headers are
3003 actually defined by the system headers.
3004 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3005 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3006
14f75137
JB
30072003-09-12 Jim Blandy <jimb@redhat.com>
3008
d646061f
JB
3009 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3010 the file has no .data, .bss, or .rodata sections. Instead wait
3011 until we see a variable alleged to live in one of those sections.
3012
2a13f9bc
JB
3013 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3014 .bss section, presume that any variables we find live in the
3015 .rodata section.
3016
4f49b26b
JB
3017 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3018 offsets for global and static variables.
3019
14f75137
JB
3020 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3021 symbol types are, by definition, in the .data section, so it is
3022 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3023 If there is no .data section, there should be no N_DATA or N_DATA
3024 | N_EXT symbols.
3025
212c460c
MK
30262003-09-12 Mark Kettenis <kettenis@gnu.org>
3027
3028 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3029 (amd64fbsd_sigcontext_addr): Rewrite.
3030 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3031 with correct values.
3032 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3033 (amd64fbsd_init_abi): Fix typo.
3034
68856ea3
AC
30352003-09-12 Andrew Cagney <cagney@redhat.com>
3036
3037 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3038 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3039
627b3ba2
AC
30402003-09-12 Andrew Cagney <cagney@redhat.com>
3041
3042 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3043 "entry_file_highpc". Update comments.
3044 * defs.h (deprecated_inside_entry_file): Rename
3045 "inside_entry_file".
3046 * blockframe.c (deprecated_inside_entry_file): Rename
3047 "inside_entry_file".
3048 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3049 * vax-tdep.c (vax_frame_chain): Update.
3050 * sh64-tdep.c (sh64_frame_chain): Update.
3051 * sh-tdep.c (sh_frame_chain): Update.
3052 * rs6000-tdep.c (rs6000_frame_chain): Update.
3053 * ns32k-tdep.c (ns32k_frame_chain): Update.
3054 * mips-tdep.c (mips_frame_chain): Update.
3055 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3056 * m32r-tdep.c (m32r_frame_this_id): Update.
3057 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3058 * frv-tdep.c (frv_frame_this_id): Update.
3059 * d10v-tdep.c (d10v_frame_this_id): Update.
3060 * cris-tdep.c (cris_frame_chain): Update.
3061 * blockframe.c (legacy_frame_chain_valid): Update.
3062 * avr-tdep.c (avr_frame_this_id): Update.
3063 * arm-tdep.c (arm_prologue_this_id): Update.
3064 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3065 * objfiles.c (objfile_relocate): Update.
3066 * mipsread.c (mipscoff_symfile_read): Update.
3067 (mipscoff_symfile_read): Update.
3068 * mdebugread.c (parse_partial_symbols): Update.
3069 * dwarfread.c (read_file_scope): Update.
3070 * dwarf2read.c (read_file_scope): Update.
3071 * dbxread.c (read_dbx_symtab): Update.
3072 (read_dbx_symtab): Update.
3073 * coffread.c (complete_symtab): Update.
3074
b0abbc58
JJ
30752003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3076
3077 * top.c (quit_target): New static helper function.
3078 (quit_force): Moved code to quit_target(). Call quit_target()
3079 via catch_errors() to catch errors during quit.
3080
a1632d59
DC
30812003-09-11 David Carlton <carlton@kealia.com>
3082
3083 * buildsym.c (finish_block): Use allocate_block to allocate the
3084 block.
3085 * mdebugread.c (new_block): Add FIXME.
3086
5c4e30ca
DC
30872003-09-11 David Carlton <carlton@kealia.com>
3088
3089 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3090 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3091 (recursive_dump_type): Ditto.
3092 * printcmd.c (print_formatted): Ditto.
3093 * typeprint.c (print_type_scalar): Ditto.
3094 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3095 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3096 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3097 maint_cplus_cmd_list.
3098 * cp-support.c: Make maint_cplus_cmd_list extern.
3099 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3100 command.h.
3101 (lookup_symbol_file): Look in possible namespace blocks when
3102 appropriate.
3103 (initialize_namespace_symtab): New.
3104 (get_possible_namespace_block, free_namespace_block)
3105 (check_possible_namespace_symbols)
3106 (check_possible_namespace_symbols_loop)
3107 (check_one_possible_namespace_symbol)
3108 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3109 (_initialize_cp_namespace): Ditto.
3110 * block.h: Declare allocate_block.
3111 * block.c (allocate_block): New.
3112 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3113 allocate_block.
3114 * symfile.h: Update declaration of add_psymbol_to_list.
3115 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3116 question.
3117 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3118 scan_partial_symbols_call.
3119 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3120 helper functions.
3121 (add_partial_symbol): If necessary, scan mangled names for names
3122 of namespaces.
3123 (add_partial_namespace): Add NAMESPACE argument; generate partial
3124 symbols associated to namespaces.
3125 (add_partial_enumeration): Add NAMESPACE argument.
3126 (new_symbol): Allow namespace syms.
3127 (read_namespace): Generate namespace syms.
3128 * objfiles.h: Add opaque declaration of struct symtab.
3129 (struct objfile): Add cp_namespace_symtab member.
3130 * objfiles.c (allocate_objfile): Set
3131 objfile->cp_namespace_symtab.
3132 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3133 dictionary_h, command_h.
3134
33a7c2fc
AC
31352003-09-11 Andrew Cagney <cagney@redhat.com>
3136
3137 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3138 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3139 near the function's end.
3140 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3141 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3142 regcache_raw_write_signed to set SP_REGNUM.
3143
63cd24fe
EZ
31442003-09-11 Elena Zannoni <ezannoni@redhat.com>
3145
3146 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3147 orig_addrs is set up properly.
3148
f27dd7fd
AC
31492003-09-11 Andrew Cagney <cagney@redhat.com>
3150
3151 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3152 * gdbarch.h, gdbarch.c: Re-generate.
3153 * infcall.c (call_function_by_hand): Update.
3154 * hppa-tdep.c (hppa_push_arguments): Update.
3155 * ada-lang.c (place_on_stack): Update.
3156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3157 * sparc-tdep.c (sparc_gdbarch_init): Update.
3158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3159 * hppa-tdep.c (hppa_gdbarch_init): Update.
3160 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3161 stack_align.
3162
f630a401
DJ
31632003-09-11 Daniel Jacobowitz <drow@mvista.com>
3164
3165 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3166 register do need a frame.
3167
0ddabb4c
AC
31682003-09-11 Andrew Cagney <cagney@redhat.com>
3169
3170 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3171 buildable since GDB 5.0.
3172 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3173 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3174 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3175 * irix4-nat.c: Delete file.
3176 * config/mips/irix4.mh: Delete file.
3177 * config/mips/irix3.mh: Delete file.
3178 * config/mips/irix3.mt: Delete file.
3179 * config/mips/tm-irix3.h: Delete file.
3180 * config/mips/nm-irix3.h: Delete file.
3181 * config/mips/xm-irix3.h: Delete file.
3182 * config/mips/nm-irix4.h: Delete file.
3183 * config/mips/xm-irix4.h: Delete file.
3184 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3185
fde2cceb
JB
31862003-09-10 J. Brobecker <brobecker@gnat.com>
3187
3188 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3189 * Makefile.in (hppa-tdep.o): Update dependencies.
3190
66f667f5
JW
31912003-09-10 James E Wilson <wilson@specifixinc.com>
3192
ef5fd69f
JW
3193 * MAINTAINERS: Change my e-mail address. Move to paper trail
3194 section.
66f667f5 3195
53e8aaea
KB
31962003-09-10 Kevin Buettner <kevinb@redhat.com>
3197
3198 * MAINTAINERS (frv): New ISA entry.
3199
dcc6aaff
KB
32002003-09-10 Kevin Buettner <kevinb@redhat.com>
3201
3202 * frv-tdep.c (dis-asm.h): Include.
3203 * Makefile.in (frv-tdep.o): Update dependencies.
3204
932644f0
JJ
32052003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3206
3207 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3208 Fix typo for high range of floating registers.
3209
91c24f0a
DC
32102003-09-09 David Carlton <carlton@kealia.com>
3211
3212 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3213 highpc initialization here out of scan_partial_symbols.
3214 (scan_partial_symbols): Restructure into a recursive version,
3215 calling add_partial_namespace and add_partial_enumeration when
3216 appropriate.
3217 (add_partial_namespace): New.
3218 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3219
c9263853
AC
32202003-09-09 Andrew Cagney <cagney@redhat.com>
3221
e56a0ecc
AC
3222 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3223 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3224 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3225 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3226
794a477a
AC
3227 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3228 (rs6000_push_dummy_call): Set the "TOC" register.
3229
c9263853
AC
3230 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3231 methods "max_register_raw_size", "max_register_virtual_size" or
3232 "register_virtual_size".
3233
afa7d0b2
ILT
32342003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3235
3236 * MAINTAINERS: Update my e-mail address.
3237
7a41266b
AC
32382003-09-09 Andrew Cagney <cagney@redhat.com>
3239
3240 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3241 (rs6000_push_dummy_call): Store the struct return address.
3242 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3243
77b2b6d4
AC
32442003-09-09 Andrew Cagney <cagney@redhat.com>
3245
3246 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3247 "ppc_sysv_abi_push_arguments".
3248 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3249 "ppc_sysv_abi_push_arguments".
3250 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3251 instead of "push_arguments".
3252 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3253
e8a7b686
AC
32542003-09-09 Andrew Cagney <cagney@redhat.com>
3255
3256 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3257 instead of CALL_DUMMY_ADDRESS.
3258
f86f5ca3
PH
32592003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3260
3261 * p-lang.c: Eliminate "register".
3262 * c-lang.c: Ditto.
3263 * expprint.c: Ditto.
3264 * f-lang.c: Ditto.
3265 * jv-lang.c: Ditto.
3266 * language.c: Ditto.
3267 * m2-lang.c: Ditto.
3268 * parse.c: Ditto.
3269 * scm-lang.c: Ditto.
3270 * objc-lang.c: Ditto.
3271
83ee270e
NC
32722003-09-09 Nick Clifton <nickc@redhat.com>
3273
3274 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3275
a89aa300
AC
32762003-09-04 Andrew Cagney <cagney@redhat.com>
3277
3278 * avr-tdep.c: Include "dis-asm.h".
3279 * cris-tdep.c: Include "dis-asm.h".
3280 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3281 instead of corresponding typedef.
3282 * h8300-tdep.c: Include "dis-asm.h".
3283 * ia64-tdep.c: Include "dis-asm.h".
3284 * i386-tdep.c: Include "dis-asm.h".
3285 (i386_print_insn): Use "struct disassemble_info" instead of
3286 corresponding typedef.
3287 * m68k-tdep.c: Include "dis-asm.h".
3288 * mcore-tdep.c: Include "dis-asm.h".
3289 * mips-tdep.c: Include "dis-asm.h".
3290 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3291 instead of corresponding typedef.
3292 * ns32k-tdep.c: Include "dis-asm.h".
3293 * s390-tdep.c: Include "dis-asm.h".
3294 * sparc-tdep.c: Include "dis-asm.h".
3295 * vax-tdep.c: Include "dis-asm.h".
3296 * v850-tdep.c: Include "dis-asm.h".
3297 * mn10300-tdep.c: Include "dis-asm.h".
3298 * rs6000-tdep.c: Include "dis-asm.h".
3299 * xstormy16-tdep.c: Include "dis-asm.h".
3300 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3301 print_insn_xstormy16.
3302 * Makefile.in (v850-tdep.o): Update dependencies.
3303 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3304 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3305 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3306 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3307 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3308 (gdbarch_h): Remove $(dis_asm_h).
3309 * disasm.c: Include "dis-asm.h".
3310 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3311 corresponding typedef.
3312 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3313 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3314 * gdbarch.sh: Do not include "dis-asm.h".
3315 (struct disassemble_info): Declare opaque.
3316 (TARGET_PRINT_INSN): Update declaration.
3317 * gdbarch.h, gdbarch.c: Re-generate.
3318
88a82a65
AC
33192003-09-08 Andrew Cagney <cagney@redhat.com>
3320
3321 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3322 CALL_DUMMY_ADDRESS, change to a predicate.
3323 * gdbarch.h, gdbarch.c: Re-generate.
3324 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3325 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3326 * infcall.c (call_function_by_hand): Ditto.
3327 * sparc-tdep.c (sparc_push_return_address): Ditto.
3328 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3329 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3330 CALL_DUMMY_ADDRESS with entry_point_address.
3331 * v850-tdep.c (v850_push_return_address): Ditto.
3332 * s390-tdep.c (s390_push_return_address): Ditto.
3333 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3334 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3335 * mcore-tdep.c (mcore_push_return_address): Ditto.
3336 * cris-tdep.c (cris_push_return_address): Ditto.
3337 * arm-tdep.c (arm_push_return_address): Ditto.
3338
3e2c4033
AC
33392003-09-08 Andrew Cagney <cagney@redhat.com>
3340
3341 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3342 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3343 and REG_UNMODIFIED to REG_SAME_VALUE.
3344 (execute_cfa_program): Update.
3345 (dwarf2_frame_cache): Update. Initialize table to
3346 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3347 location.
3348 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3349
39efb398
AC
33502003-09-08 Andrew Cagney <cagney@redhat.com>
3351
3352 * gnu-nat.c: Remove "inline" function attribute.
3353 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3354
f5cb5aca
KB
33552003-09-08 Kevin Buettner <kevinb@redhat.com>
3356
3357 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3358 target.
3359
1cb761c7
KB
33602003-09-08 Kevin Buettner <kevinb@redhat.com>
3361
3362 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3363 (frame_extra_info): Rename this struct to frv_unwind_cache.
3364 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3365 Add fields ``prev_sp'' and ``base''.
3366 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3367 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3368 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3369 Delete.
3370 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3371 Revise all callers. Fill in the unwind cache argument and make
3372 other adjustments to account for new frame mechanisms.
3373 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3374 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3375 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3376 (frv_frame_unwind, frv_frame_base): New structs.
3377 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3378 additional arguments expected by this method and adjust function
3379 body accordingly.
3380 (frv_gdbarch_init): Remove calls to the following functions:
3381 set_gdbarch_deprecated_init_frame_pc(),
3382 set_gdbarch_deprecated_saved_pc_after_call(),
3383 set_gdbarch_deprecated_frame_chain(),
3384 set_gdbarch_deprecated_frame_saved_pc(),
3385 set_gdbarch_deprecated_frame_init_saved_regs(),
3386 set_gdbarch_deprecated_push_arguments(),
3387 set_gdbarch_deprecated_push_return_address(),
3388 set_gdbarch_deprecated_pop_frame(),
3389 set_gdbarch_deprecated_call_dummy_words(),
3390 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3391 set_gdbarch_deprecated_init_extra_frame_info(),
3392 set_gdbarch_deprecated_dummy_write_sp(), and
3393 set_gdbarch_deprecated_pc_in_call_dummy().
3394 Add calls to the following functions:
3395 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3396 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3397 frame_base_set_default().
3398 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3399
68f6cf99
MK
34002003-09-09 Mark Kettenis <kettenis@gnu.org>
3401
3402 * dwarf2-frame.c (read_encoded_value): Add support for
3403 DW_EH_PE_aligned encoding.
3404
73b65bb0
DJ
34052003-09-08 Daniel Jacobowitz <drow@mvista.com>
3406
3407 * infrun.c (normal_stop): Don't print a message if the inferior
3408 has exited.
3409
7c8a5605
JB
34102003-09-08 Jim Blandy <jimb@redhat.com>
3411
3412 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3413 * dbxread.c: #include "gdb_assert.h".
3414 (read_dbx_symtab): If the objfile has no .data section, use the
3415 section index for the .bss section instead.
3416
7dd88986
DJ
34172003-09-08 Daniel Jacobowitz <drow@mvista.com>
3418
3419 * frame.c (deprecated_safe_get_selected_frame): New function.
3420 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3421 * findvar.c (read_var_value): Call it.
3422
55ff77ac
CV
34232003-09-08 Corinna Vinschen <vinschen@redhat.com>
3424
3425 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3426 (sh64-tdep.o): Add dependencies.
3427 * configure.tgt: Add FIXME to sh-*-linux*.
3428 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3429 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3430 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3431 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3432 * sh64-tdep.c: New file, containing all sh64 related code from
3433 sh-tdep.c.
3434 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3435 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3436 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3437 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3438 * config/sh/wince.mt (TDEPFILES): Ditto.
3439
bfb39158
DJ
34402003-09-07 Daniel Jacobowitz <drow@mvista.com>
3441
3442 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3443 (stop_wait_callback): Handle !lp->signalled also.
3444 (lin_lwp_has_pending, flush_callback): New functions.
3445 (lin_lwp_wait): Call flush_callback.
3446 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3447 (linux_proc_pending_signals): New function.
3448 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3449
9407de8e
DJ
34502003-09-07 Daniel Jacobowitz <drow@mvista.com>
3451
3452 From Nick Kelsey <nickk@ubicom.com>:
3453 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3454 when the stop PC is at the beginning of a function also.
3455
2ef47cd0
DJ
34562003-09-06 Daniel Jacobowitz <drow@mvista.com>
3457
3458 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3459 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3460
6f4492c8
MK
34612003-09-06 Mark Kettenis <kettenis@gnu.org>
3462
3463 * sol-thread.c: Include "gdb_string.h".
3464
d3420b2f
MK
34652003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3466
3467 * gcore.c: Reorder include files in alphabetical order. Include
3468 "gdb_assert.h". Various coding style fixes.
3469 (derive_stack_segment, derive_heap_segment): Replace check for
3470 non-null BOTTOM and TOP with gdb_assert.
3471 (derive_heap_segment): Replace check for successful creation of
3472 ZERO with gdb_assert.
3473 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3474
5220ea4c
AC
34752003-09-04 Andrew Cagney <cagney@redhat.com>
3476
3477 * thread-db.c (verbose_dlsym): New function.
3478 (thread_db_load): Use verbose_dlsym
3479 (thread_db_new_objfile): Print that libthread_db was loaded, and
3480 that thread debugging was enabled.
3481
6e8c2c06
AC
34822003-09-04 Andrew Cagney <cagney@redhat.com>
3483
3484 * configure.tgt: Add "mips64*-*-*" target. Delete
3485 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3486 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3487 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3488 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3489 mips*-sony-*, and mips64*-*-elf* targets.
3490 * config/mips/embedl.mt: Delete file.
3491 * config/mips/embedl64.mt: Delete file.
3492 * config/mips/mips.mt: Delete file.
3493 * config/mips/mips64.mt: Delete file.
3494 * config/mips/tm-embed.h: Delete file.
3495 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3496 * config/mips/embed64.mt: Delete out-of-date comment.
3497
3a3bc038
AC
34982003-09-04 Andrew Cagney <cagney@redhat.com>
3499
3500 * hppa-tdep.c (hppa_gdbarch_init): Set
3501 "have_nonsteppable_watchpoint".
3502 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3503 * mips-tdep.c (mips_dump_tdep): Do not print
3504 HAVE_NONSTEPPABLE_WATCHPOINT.
3505 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3506 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3507 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3508 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3509
a957e642
CV
35102003-09-04 Corinna Vinschen <vinschen@redhat.com>
3511
3512 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3513 unused code. Add comment.
3514
a6fbcf2f
CV
35152003-09-04 Corinna Vinschen <vinschen@redhat.com>
3516
3517 * breakpoint.c (watchpoint_check): Check for pc being in an
3518 epilogue if watchpoint frame couldn't be found.
3519
c14a44d5
AC
35202003-09-04 Andrew Cagney <cagney@redhat.com>
3521
3522 * Makefile.in: Re-generate all dependencies.
3523
f6c40618
AC
35242003-09-03 Andrew Cagney <cagney@redhat.com>
3525
3526 * arch-utils.h (legacy_print_insn): Delete declaration.
3527 * arch-utils.c (legacy_print_insn): Delete function.
3528 * disasm.c (deprecated_tm_print_insn_info): Delete.
3529 (_initialize_disasm): Delete function, contained code initializing
3530 deprecated_tm_print_insn_info.
3531 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3532 (deprecated_tm_print_insn_info): Delete.
3533 (TARGET_PRINT_INSN): Do not provide a default.
3534 * gdbarch.h, gdbarch.c: Re-generate.
3535
242e8be5
AC
35362003-09-03 Andrew Cagney <cagney@redhat.com>
3537
3538 * disasm.c (fprintf_disasm): New function.
3539 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3540 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3541 reverts 2003-08-14 change.
3542 (_initialize_disasm): Call "init_disassemble_info", instead of
3543 INIT_DISASSEMBLE_INFO_NO_ARCH.
3544
3ffc3dda
MS
35452003-09-03 Michael Snyder <msnyder@redhat.com>
3546
3547 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3548
52d16ba8
AC
35492003-09-03 Andrew Cagney <cagney@redhat.com>
3550
3551 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3552 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3553 * symfile.c (syms_from_objfile): Update.
3554 (reread_symbols): `Update
3555 * exec.c (exec_file_attach): Update.
3556 (exec_file_attach): Update.
3557 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3558 2003-08-29 change.
3559 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3560
eb5492fa
DJ
35612003-09-03 Daniel Jacobowitz <drow@mvista.com>
3562
3563 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3564 trad-frame.h.
3565 (arm_get_cache): Delete macro.
3566 (struct arm_prologue_cache): Update comments. Make saved_regs into
3567 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3568 to prev_sp.
3569 (thumb_scan_prologue): Update for cache changes. Don't call
3570 DEPRECATED_PC_IN_CALL_DUMMY.
3571 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3572 argument and use it in desperation search for our prologue. Do not
3573 search past the specified PC.
3574 (arm_make_prologue_cache): Simplify.
3575
3576 (arm_prologue_this_id, arm_prologue_prev_register)
3577 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3578 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3579 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3580 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3581 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3582
3583 (arm_frame_chain_valid, arm_find_callers_reg)
3584 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3585 (arm_pop_frame): Delete obsolete methods.
3586 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3587
3588 (arm_gdbarch_init): Update for new frame methods. Register prologue
3589 and sigtramp unwinders. Set the default frame base method.
3590
3591 * Makefile.in (arm-tdep.o): Update dependencies.
3592 * varobj.c (find_frame_addr_in_frame_chain): Call
3593 get_frame_base_address.
3594 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3595
24de872b
DJ
35962003-09-03 Daniel Jacobowitz <drow@mvista.com>
3597
3598 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3599 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3600 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3601 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3602 Take NEXT_FRAME and CACHE arguments. Call
3603 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3604 Set unwound_pc in CACHE instead of modifying the frame argument.
3605 Don't bother checking the frame type when looking for sigtramp
3606 frames.
3607 (arm_make_prologue_cache, arm_frame_chain)
3608 (arm_init_extra_frame_info): New functions.
3609
9b8d791a
DJ
36102003-09-03 Daniel Jacobowitz <drow@mvista.com>
3611
3612 * arm-tdep.c (arm_get_cache): Define.
3613 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3614 unwound_sp, unwound_pc, and saved_regs.
3615 (thumb_scan_prologue): Take a cache instead of the frame.
3616 (arm_scan_prologue): Likewise.
3617 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3618 instead of a temporary frame.
3619 (arm_init_extra_frame_info): Allocate and use a cache.
3620 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3621
7ee3275f
AC
36222003-09-03 Andrew Cagney <cagney@redhat.com>
3623
3624 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3625 * config/mips/wince.mt (TM_CLIBS): Ditto.
3626 * config/sh/wince.mt (TM_CLIBS): Ditto.
3627 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3628 * config/sparc/sp64.mt (CC): Delete.
3629
57b29be7
AC
36302003-09-03 Andrew Cagney <cagney@redhat.com>
3631
3632 * defs.h: Do not include "arch-utils.h".
3633 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3634 GDB_MULTI_ARCH_PURE.
3635 * configure.in (GDB_MULTI_ARCH): Do not define.
3636 * configure, config.in: Regenerate.
3637 * configure.tgt: Do not set variable "gdb_multi_arch".
3638 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3639 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3640 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3641 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3642 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3643 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3644 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3645 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3646 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3647 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3648 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3649 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3650 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3651 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3652 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3653 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3654 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3655 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3656
12e035e2
MC
36572003-08-30 Michael Chastain <mec@shout.net>
3658
3659 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3660 * config/m68k/nm-hp300hpux.h: Delete.
3661 * config/m68k/tm-hp300hpux.h: Delete.
3662 * config/m68k/xm-hp300hpux.h: Delete.
3663 * config/m68k/xm-hp300bsd.h: Delete.
3664 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3665 tm-hp300hpux.h, xm-hp300hpux.h.
3666 * somsolib.c: Remove comment about hp300 shared libraries.
3667
bda34dc2
MK
36682003-08-31 Mark Kettenis <kettenis@gnu.org>
3669
5bca7895
MK
3670 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3671 Only define PTRACE_GET_THREAD_AREA is not already defined.
3672 Various style fixes in code and comments and some additional
3673 spelling fixes in comments. Move after functions dealing with
3674 debug registers.
3675 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3676 Fix coding-style.
3677
bda34dc2
MK
3678 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3679 frame_unwind_register_unsigned instead of
3680 frame_unwind_unsigned_register.
3681
c890192f
MK
36822003-08-30 Mark Kettenis <kettenis@gnu.org>
3683
3684 * configure.in: Search for gethostbyname in libnsl.
3685 * configure: Regenerated.
3686
60fac5b8
MK
36872003-08-29 Mark Kettenis <kettenis@gnu.org>
3688
e294916c
MK
3689 * configure.in: Remove redundant AC_MSG_RESULT in check for
3690 uintptr_t in stdint.h.
3691 * configure: Regenerated.
3692
c40d267a
MK
3693 * amd64-nat.h (struct regcache): Add opaque declaration.
3694
60fac5b8
MK
3695 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3696 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3697 Change "register array" to "register cache" in comments.
3698 (x86_64_linux_gregset64_reg_offset): New variable.
3699 (GETREGS_SUPPLIES): Remove macro.
3700 (supply_gregset): Call amd64_supply_native_gregset instead of
3701 x86_64_linux_supply_gregset.
3702 (fill_gregset): Rename `regno' to `regnum'. Call
3703 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3704 (store_regs): Rename `regno' to `regnum'.
3705 (store_fpregs): Rename `regno' to `regnum'.
3706 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3707 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3708 Reorganize function a bit.
3709 (store_inferior_registers): Rename `regno' to `regnum'. Use
3710 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3711 Reorganize function a bit.
3712 (_initialize_x86_64_linux_nat): New function.
3713 * config/i386/x86-64linux.mh.
3714
546143b6
AC
37152003-08-29 Andrew Cagney <cagney@redhat.com>
3716
3717 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3718 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3719 (target_remove_watchpoint): Delete macro.
3720 (target_insert_watchpoint): Delete macro.
3721 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3722 (remote_mips_stopped_by_watchpoint): Delete declaration.
3723 (remote_mips_remove_watchpoint): Delete declaration.
3724 (remote_mips_set_watchpoint): Delete declaration.
3725 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3726 * remote-mips.c (_initialize_remote_mips): Set
3727 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3728 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3729 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3730 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3731 (mips_stopped_by_watchpoint): Rename
3732 remote_mips_stopped_by_watchpoint.
3733 (mips_can_hardware_watchpoint): Rename
3734 remote_mips_can_use_hardware_watchpoint, update function
3735 signature.
3736
7bace51b
MK
37372003-08-29 Mark Kettenis <kettenis@gnu.org>
3738
b0f5c6f2
MK
3739 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3740 USER_DS. We haven't given them a register number yet.
3741
2a6d284d
MK
3742 * amd64-nat.h: New file.
3743 * amd64-nat.c: New file.
3744 * amd64fbsd-nat.c: Include "amd64-nat.h".
3745 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3746 (amd64fbsd32_r_reg_offset): New variable.
3747 (supply_gregset): Simply call amd64_supply_native_gregset.
3748 (fill_gregset): Rename `regno' to `regnum'. Simply call
3749 amd64_collect_native_gregset.
3750 (fill_fpregset): Rename `regno' to `regnum'.
3751 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3752 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3753 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3754 `fpregset_t'. Call amd64_supply_native_gregset instead of
3755 supply_gregset. Call x86_64_supply_fxsave instead of
3756 supply_fpregset.
3757 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3758 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3759 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3760 `fpregset_t'. Call amd64_collect_native_gregset instead of
3761 fill_gregset. Call x86_64_collect_fxsave instead of
3762 fill_fpregset.
3763 (_initialize_am64fbsd_nat): Initialize
3764 amd64_native_gregset32_reg_offset and
3765 amd64_native_gregset64_reg_offset.
3766 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3767
a16d75cc
MK
3768 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3769 null pointer. Fix typo in comment.
3770
7bace51b
MK
3771 * regcache.c (supply_register): Reimplement to call
3772 regcache_raw_supply.
3773 (regcache_collect): Reimplement by calling regcache_raw_collect.
3774
9a661b68
MK
37752003-08-28 Mark Kettenis <kettenis@gnu.org>
3776
3777 * regcache.c (register_buffer): Consitify first argument.
3778 (regcache_raw_supply, regcache_raw_collect): New
3779 functions.
3780
e94cc8fa
DJ
37812003-08-28 Daniel Jacobowitz <drow@mvista.com>
3782
3783 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3784 by Nathan J. Williams.
3785
c64bd0ce
DJ
37862003-08-28 Daniel Jacobowitz <drow@mvista.com>
3787
3788 * lin-lwp.c (wait_lwp): New function, copied from
3789 stop_wait_callback. Clean up.
3790 (stop_wait_callback): Use wait_lwp.
3791
e5ab0dce
AC
37922003-08-28 Andrew Cagney <cagney@redhat.com>
3793
3794 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3795 flavour and disassembler options.
3796 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3797 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3798 deprecated_tm_print_insn_info.
a8f4cde1 3799
a788de9b
AC
38002003-08-27 Andrew Cagney <cagney@redhat.com>
3801
3802 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3803 Use target_read_memory.
3804 (s390_get_frame_info): Update. Do not reference
3805 deprecated_tm_print_insn_info.
3806 (s390_check_function_end, s390_is_sigreturn): Ditto.
3807
36482093
AC
38082003-08-27 Andrew Cagney <cagney@redhat.com>
3809
3810 * Makefile.in (cris-tdep.o): Update dependencies.
3811 * cris-tdep.c: Include "gdb_assert.h".
3812 (cris_gdbarch_init): Set print_insn.
3813 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3814 (cris_delayed_get_disassembler): Simplify, directly call the
3815 disassembler returned by cris_get_disassembler.
3816 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3817 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3818 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3819 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3820 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3821 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3822 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3823 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3824 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3825 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3826 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3827 (gdb_print_insn_sparc): Delete function.
3828 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3829 deprecated_tm_print_insn_info.
3830 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3831 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3832 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3834 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3835 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3836 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3837 (s390_gdbarch_init): Set print_insn.
3838
0285512f
AC
38392003-08-27 Andrew Cagney <cagney@redhat.com>
3840
3841 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3842 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3843 * infcall.c (call_function_by_hand): Convert the entry point
3844 address into a code address.
3845
cdcd5552
AC
38462003-08-27 Andrew Cagney <cagney@redhat.com>
3847
3848 * dsrec.c: Include "gdb_string.h".
3849 * Makefile.in (dsrec.o): Update dependencies.
3850
e85cddad
MC
38512003-08-27 Michael Chastain <mec@shout.net>
3852
3853 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3854
8bbfbb23
AC
38552003-08-27 Andrew Cagney <cagney@redhat.com>
3856
3857 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3858 (alpha_osf1_init_abi): Do not set call_dummy_address.
3859
ba058b66
DC
38602003-08-27 David Carlton <carlton@kealia.com>
3861
3862 From Randolph Chung <tausq@debian.org>:
3863 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3864 compiles with -Wformat-nonliteral -Werror.
3865
87f84c9d
JB
38662003-08-26 Jim Blandy <jimb@redhat.com>
3867
3868 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3869 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3870 bfd_lookup_symbol, since we only want symbols in code sections.
3871 (look_for_base): Pass zero as the SECT_FLAGS argument to
3872 bfd_lookup_symbol, since we're not concerned about which section
3873 the symbol is in.
3874
102d615a
JJ
38752003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3876
3877 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3878 we are frameless or the return address register is already known.
102d615a 3879
cc7ad3ea
AC
38802003-08-26 Andrew Cagney <cagney@redhat.com>
3881
3882 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3883 in size. Add comments.
3884
af8b88dd
JJ
38852003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3886
3887 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3888 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3889
e0a4f5a1
JM
38902003-08-26 Jason Merrill <jason@redhat.com>
3891
3892 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3893 case out of #ifdef MIPS block.
3894
4ae9ee8e
DJ
38952003-08-25 Daniel Jacobowitz <drow@mvista.com>
3896
3897 PR java/1322
3898 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3899 available before calling SECT_OFF_TEXT.
3c164570 3900 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3901
004d836a
JJ
39022003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3903
a8f4cde1 3904 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3905 bof, and nat0-nat127 as pseudo-registers.
3906 (ia64_frame_cache): New struct used to cache frame info.
3907 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3908 register grouping so registers without names are still saved and
004d836a 3909 restored.
a8f4cde1 3910 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3911 pseudo values.
3912 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3913 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3914 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3915 ia64_frame_cache.
3916 (examine_prologue): Change prototype to add next_frame pointer.
3917 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3918 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3919 alloc insn and if equal, mark as not frameless. At end of routine,
3920 if not frameless, calculate registers for the previous frame and store
3921 in the cache, if a cache is provided.
3922 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3923 and pass 0 for next_frame.
3924 (ia64_store_return_value): Change to use convert_typed_floating()
3925 instead of calling ia64_convert_to_raw().
3926 (ia64_extract_return_value): Change to use convert_typed_floating()
3927 instead of calling ia64_convert_to_virtual().
3928 (ia64_frame_cache): New routine to support new frame model.
3929 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3930 (ia64_frame_sniffer): Ditto.
3931 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3932 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3933 (ia64_sigtramp_frame_prev_register): Ditto.
3934 (ia64_sigtramp_frame_sniffer): Ditto.
3935 (ia64_frame_base_address): Ditto.
3936 (ia64_extract_struct_value_address): Change to issue error message.
3937 (ia64_frame_align): New routine to align sp.
3938 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3939 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3940 ia64_push_dummy_call().
3941 (ia64_push_return_address): Ditto.
3942 (ia64_unwind_dummy_id): New function.
3943 (ia64_unwind_pc): Ditto.
3944 (ia64_convert_register_p): Ditto.
3945 (ia64_register_to_value): Ditto.
3946 (ia64_value_to_register): Ditto.
3947 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3948 (ia64_register_byte, ia64_register_raw_size): Ditto.
3949 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3950 (ia64_saved_pc_after_call): Ditto.
3951 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3952 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3953 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3954 (ia64_register_convert_to_raw): Ditto.
3955 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3956 (ia64_init_extra_frame_info): Ditto.
3957 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3958 (ia64_gdbarch_init): Remove registering of deprecated functions that
3959 are no longer used. Add registration of new gdbarch functions.
3960 Remove registering deprecated_write_sp. Replace
3961 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3962 Delete set_gdbarch_deprecated_register_convertible(),
3963 set_gdbarch_deprecated_register_convert_to_virtual(), and
3964 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3965 set_gdbarch_deprecated_register_size(),
3966 set_gdbarch_deprecated_register_bytes(),
3967 set_gdbarch_pcregnum(),
3968 set_gdbarch_deprecated_register_byte(),
3969 set_gdbarch_deprecated_register_raw_size(),
3970 set_gdbarch_deprecated_max_register_raw_size(),
3971 set_gdbarch_deprecated_register_virtual_size(),
3972 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3973 Replace set_gdbarch_deprecated_extract_return_value() with
3974 set_gdbarch_extract_return_value(). Remove calls to:
3975 set_gdbarch_deprecated_saved_pc_after_call();
3976 set_gdbarch_deprecated_frame_chain(),
3977 set_gdbarch_deprecated_frame_saved_pc(),
3978 set_gdbarch_deprecated_frame_init_saved_regs(),
3979 set_gdbarch_deprecated_get_saved_register(),
3980 set_gdbarch_deprecated_call_dummy_words(),
3981 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3982 set_gdbarch_deprecated_init_extra_frame_info(),
3983 set_gdbarch_deprecated_frame_args_address(),
3984 set_gdbarch_deprecated_frame_locals_address(),
3985 and set_gdbarch_deprecated_dummy_write_sp().
3986 Add set_gdbarch_convert_register_p(),
3987 set_gdbarch_register_to_value(),
3988 set_gdbarch_value_to_register(),
3989 set_gdbarch_push_dummy_call(),
3990 set_gdbarch_frame_align(),
3991 set_gdbarch_unwind_dummy_id(),
3992 set_gdbarch_unwind_pc(),
3993 frame_unwind_append_sniffer(),
3994 frame_unwind_append_sniffer(),
3995 and frame_base_set_default().
3996
aede7613
CD
39972003-08-25 Chris Demetriou <cgd@broadcom.com>
3998
3999 * configure.tgt: Document need for special "mipsisa64" handling.
4000 (mipsisa64*-*-linux64): Handle as target linux64.
4001 (mipsisa64*-*-*): Handle as target embed64.
4002
43c3a82e
MC
40032003-08-18 Michael Chastain <mec@shout.net>
4004
4005 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4006 objfile bug.
4007
6564f77d
MK
40082003-08-24 Mark Kettenis <kettenis@gnu.org>
4009
2de139ba
MK
4010 * i387-tdep.h: Update copyright date.
4011 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4012
6564f77d
MK
4013 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4014 CFLAGS games to reflect reality.
4015
42cf1509
AC
40162003-08-24 Andrew Cagney <cagney@redhat.com>
4017
4018 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4019 GDB_MULTI_ARCH is always non-zero.
4020 * osabi.c (_initialize_gdb_osabi): Ditto.
4021 (gdbarch_init_osabi): Ditto.
4022 * sparc-tdep.c: Ditto for #if code.
4023
0485f6ad
MK
40242003-08-23 Mark Kettenis <kettenis@gnu.org>
4025
4026 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4027 Update comments.
4028 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4029 comments.
4030 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4031 x86_64_supply_fxsave.
4032 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4033 x86_64_supply_fxsave.
4034 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4035 x86_64_supply_fxsave.
4036
c7716133
AJ
40372003-08-23 Andreas Jaeger <aj@suse.de>
4038
4039 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4040 i387_supply_fxsave.
4041
ed504bdf
MK
40422003-08-23 Mark Kettenis <kettenis@gnu.org>
4043
4044 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4045 i387_supply_register.
4046 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4047 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4048 i387_supply_fsave.
4049 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4050 i387_supply_fxsave.
4051 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4052 i387_supply_fsave.
4053 * i386bsd-nat.c (supply_fpregset): Adjust call to
4054 i387_supply_fsave.
4055 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4056 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4057 supply_fpregset.
4058 (store_inferior_registers): Remove extraneous whitespace. Call
4059 i387_fill_fsave instead of fill_fpregset.
4060 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4061 (supply_fpregset): Likewise.
4062 * i386v4-nat.c (supply_fpregset): Adjust call to
4063 i387_supply_fsave.
4064 * i386-interix-nat.c (supply_fpregset): Adjust call to
4065 i387_supply_fsave.
4066 * i386-linux-nat.c (supply_fpregset): Adjust call to
4067 i387_supply_fsave.
4068 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4069 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4070 i387supply_fsave and i387_supply_fxsave.
4071 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4072 Incorporate code from `i387_supply_register.
4073 (i387_supply_register): Remove.
4074 (i387_supply_fxsave): Add `regnum' argument.
4075 Update comments.
4076 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4077 prototype.
4078 (i387_supply_register): remove prototype.
4079 Update comments.
a8f4cde1 4080
4be5d520
MC
40812003-08-22 Michael Chastain <mec@shout.net>
4082
4083 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4084 Add lines for files in gdb/testsuite/gdb.cp/* that are
4085 still not 8.3 unique.
4086
7ed85d26
DJ
40872003-08-22 Daniel Jacobowitz <drow@mvista.com>
4088
4089 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4090 TYPE_VPTR_FIELDNO is valid.
4091
eb0d3137
MK
40922003-08-19 Mark Kettenis <kettenis@gnu.org>
4093
4094 * utils.c (set_width_command): Remove prototypes.
4095 (set_screen_size): New prototype.
4096 (init_page_info): Simplify by fetching the screen size from
4097 Readline. Call set_screen_size.
4098 (set_screen_size): New function.
4099 (set_width): Add missing whitespace in comment.
4100 (set_width_command): Call set_screen_size.
4101 (set_height_command): New function.
4102 (initialize_utils): Fix formatting. Make "set height" command
4103 call set_height_command. Remove redundant code that turns off
4104 pagination if output isn't a terminal. Remove redundant call to
4105 set_width_command.
a8f4cde1 4106
7e6d0ac8
MK
41072003-08-22 Mark Kettenis <kettenis@gnu.org>
4108
3567a8ea
MK
4109 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4110 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4111 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4112 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4113 `case' keyword.
4114 (sparc64_register_info): Give the reister with number
4115 SPARC64_STATE_REGNUM a name.
4116 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4117 %asi and %ccr.
4118 (sparc64_push_dummy_call): Take BIAS into account when checking
4119 stcak alignment.
4120 (sparc_software_single_step): Remove assertions that check whether
4121 NPC and NNPC were zero.
4122 (sparc_supply_rwindow): Make public. Merge functionality with
4123 sparc64_supply_rwindow.
4124 (sparc_fill_rwindow): Make public. Merge functionality with
4125 sparc64_fill_rwindow.
4126 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4127 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4128 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4129 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4130 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4131
7e6d0ac8
MK
4132 * reggroups.c: Add whitespace after declarations of local
4133 variables in functions.
4134
72e5f484
MC
41352003-08-21 Michael Chastain <mec@shout.net>
4136
4137 * gdbtypes.h: Change array bound type from an int to enum.
4138
435ac228
AC
41392003-08-21 Andrew Cagney <cagney@redhat.com>
4140
4141 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4142 * config/sparc/tm-sparc.h: Ditto.
4143 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4144 unconditionally.
4145 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4146
0d0e1a63
MK
41472003-07-13 Mark Kettenis <kettenis@gnu.org>
4148
4149 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4150 (register_objfile_data, set_objfile_data, objfile_data): New
4151 prototypes.
4152 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4153 prototypes.
4154 (allocate_objfile): Call objfile_alloc_data.
4155 (free_objfile): Call objfile_free_data.
4156 (struct objfile_data): New.
4157 (struct objfile_data_registration): New.
4158 (struct objfile_data_registry): New.
4159 (objfile_data_registry): New variable.
4160 (register_objfile_data): New function.
4161 (objfile_alloc_data, objfile_free_data): New functions.
4162 (set_objfile_data, objfile_data): New functions.
4163 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4164 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4165 (_initialize_dwarf2_frame): New function and prototype.
4166
d90cf509
AC
41672003-08-21 Andrew Cagney <cagney@redhat.com>
4168
4169 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4170 a specific architecture.
4171 * arch-utils.h (set_architecture_from_arch_mach): Delete
4172 declaration.
4173 (target_architecture_hook): Delete declaration.
4174 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4175 (default_float_format): Assume GDB_MULTI_ARCH.
4176 (default_double_format): Assume GDB_MULTI_ARCH.
4177 (set_endian_from_file): Delete function.
4178 (arch_ok): Delete function.
4179 (set_arch): Delete function.
4180 (set_architecture_from_arch_mach): Delete function.
4181 (set_architecture_from_file): Delete function.
4182 (set_architecture): Assume GDB_MULTI_ARCH.
4183 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4184
8b39fe56
MK
41852003-08-21 Mark Kettenis <kettenis@gnu.org>
4186
4187 Rewrite FreeBSD/sparc64 native configuration.
4188 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4189 * sparc64fbsd-nat.c: New file.
4190 * sparc64fbsd-tdep.c: New file.
4191 * sparc64-tdep.c sparc64-tdep.h: New files.
4192 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4193 sparc64fbsd-tdep.o): New dependencies.
4194 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4195 and sparc64fbsd-tdep.c.
4196 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4197 * config/sparc/fbsd.mh: Remove copyright notice.
4198 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4199 sparcbsd-nat.o.
4200 * config/sparc/fbsd.mt: Remove copyright notice.
4201 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4202 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4203 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4204 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4205 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4206 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4207 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4208 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4209 "sparc/tm-sp64.h".
4210 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4211 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4212
a7f19c79
MC
42132003-08-21 Michael Chastain <mec@shout.net>
4214
4215 * symtab.h: Add doco on the space critical structures and
4216 some measurements of space usage.
4217
da08ea5b
MS
42182003-08-21 Michael Snyder <msnyder@redhat.com>
4219
4220 * tracepoint.c (trace_dump_command): Trace break address
4221 is subject to DECR_PC_AFTER_BREAK.
4222 (set_traceframe_context): Make "trace_line" an int.
4223 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4224
6df2bf50
MS
42252003-08-20 Michael Snyder <msnyder@redhat.com>
4226
4227 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4228 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4229 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4230 argument passing.
a8f4cde1 4231 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4232 functions, replace sh_push_dummy_call.
4233 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4234
0955bbf0
MC
42352003-08-20 Michael Chastain <mec@shout.net>
4236
4237 * gdbtypes.h (struct main_type): Rearrange to save space.
4238
260a4188
MS
42392003-08-20 Michael Snyder <msnyder@redhat.com>
4240
4241 * trad-frame.c: Comment typo fix.
4242
8baa6f92
KB
42432003-08-20 Michael Snyder <msnyder@redhat.com>
4244 Kevin Buettner <kevinb@redhat.com>
4245
4246 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4247 (frv_frame_init_saved_regs): Add declaration.
4248 (frame_extra_info): Add new field ``saved_regs''.
4249 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4250 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4251 Update frame related code.
4252 (frv_extract_struct_value_address): Adjust formatting.
4253 * Makefile.in (frv-tdep.o): Update dependencies.
4254 * config/frv/tm-frv.h (target_insert_watchpoint)
4255 (target_remove_watchpoint, target_insert_hw_breakpoint)
4256 (target_remove_hw_breakpoint): Delete these macros.
4257 (remote_insert_watchpoint, remote_remove_watchpoint)
4258 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4259 these declarations.
4260
87193939
MC
42612003-08-20 Michael Chastain <mec@shout.net>
4262
4263 * defs.h (ENUM_BITFIELD): New macro.
4264 * symtab.h (ENUM_BITFIELD): Use it.
4265 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4266
062103ba
SA
42672003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4268
4269 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4270
8b148df9
AC
42712003-08-18 Andrew Cagney <cagney@redhat.com>
4272
4273 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4274 * gdbarch.h, gdbarch.c: Re-generate.
4275 * infcall.c (call_function_by_hand): Adjust the SP by
4276 frame_red_zone_size before allocating any stack space.
4277 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4278 * x86-64-tdep.c (x86_64_frame_align): New function.
4279 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4280
4281 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4282 Remove code adjusting SP so that it skips over the Red Zone.
4283
954a4db8
MK
42842003-08-18 Mark Kettenis <kettenis@gnu.org>
4285
4286 * NEWS (New native configurations): Mention FreeBSD/amd64.
4287
1a241548
AC
42882003-08-18 Andrew Cagney <cagney@redhat.com>
4289
4290 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4291 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4292 "m68k_frame_p".
4293 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4294
f82b2acd
MK
42952003-08-18 Mark Kettenis <kettenis@gnu.org>
4296
4297 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4298
4056d258
ML
42992003-08-18 Michal Ludvig <mludvig@suse.cz>
4300
4301 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4302 Define.
4303 * i386-linux-nat.c: Include "linux-nat.h".
4304 (child_post_startup_inferior): New function.
a8f4cde1 4305
99ab4326
MK
43062003-08-18 Mark Kettenis <kettenis@gnu.org>
4307
4308 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4309 at the start of a frameless function. This probably fixes PR
4310 backtrace/1338.
4311
c8d5f0d6
MC
43122003-08-17 Michael Chastain <mec@shout.net>
4313
4314 * symfile.c (find_sym_fns): Remove special case for apollo target.
4315
9016a515
DJ
43162003-08-17 Daniel Jacobowitz <drow@mvista.com>
4317
4318 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4319 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4320 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4321 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4322 (linux_supports_tracevforkdone): New function.
4323 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4324 TRACEVFORKDONE.
4325 (child_follow_fork): Handle vfork.
4326 (linux_handle_extended_wait): Likewise. Also handle exec.
4327 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4328 * NEWS: Mention fork tracing.
4329
c538c11c
DJ
43302003-08-17 Daniel Jacobowitz <drow@mvista.com>
4331
4332 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4333
4de4c07c
DJ
43342003-08-17 Daniel Jacobowitz <drow@mvista.com>
4335
4336 * Makefile.in (i386-linux-nat.o): Update dependencies.
4337 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4338 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4339 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4340 * i386-linux-nat.c: Include "linux-nat.h".
4341 (child_post_startup_inferior): New function.
4342 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4343 * infptrace.c (kill_inferior): Wrap in #ifdef.
4344 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4345 attaching to each LWP.
4346 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4347 (init_lin_lwp_ops): Fill in some more operations.
4348 * linux-nat.h (linux_enable_event_reporting)
4349 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4350 prototypes.
4351 * linux-nat.c (linux_enable_event_reporting): New function.
4352 (child_post_attach, linux_child_post_startup_inferior)
4353 (child_post_startup_inferior, child_follow_fork)
4354 (linux_handle_extended_wait, kill_inferior): New functions.
4355
7996bcec
AC
43562003-08-16 Andrew Cagney <cagney@redhat.com>
4357
4358 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4359 * gdbarch.h, gdbarch.c: Re-generate.
4360
3d48a7a0
MK
43612003-08-16 Mark Kettenis <kettenis@gnu.org>
4362
4363 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4364
7989c619
AC
43652003-08-16 Andrew Cagney <cagney@redhat.com>
4366
4367 * NEWS: Mention that "set prompt-escape-char" was deleted.
4368 * top.c (get_prompt_1): Delete function.
4369 (gdb_prompt_escape):
4370 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4371 prompt-escape-char" command.
4372 (MAX_PROMPT_SIZE): Delete macro.
4373 (get_prompt): Simplify, do not call get_prompt_1.
4374
07978cd8
AC
43752003-08-16 Andrew Cagney <cagney@redhat.com>
4376
4377 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4378 -Werror. -Wformat-nonliteral problems.
4379
3ff7cf9e
JB
43802003-08-15 J. Brobecker <brobecker@gnat.com>
4381
4382 Further multiarching work mostly for hppa64-*-hpux11:
4383 * hppa-tdep.h: New file.
4384 * hppa-tdep.c: #include hppa-tdep.c.
4385 (hppa32_num_regs): Renamed from hppa_num_regs.
4386 (hppa64_num_regs): New constant.
4387 (hppa64_call_dummy_breakpoint_offset): New constant.
4388 (hppa32_call_dummy_length): New constant.
4389 (hppa64_call_dummy_length): New constant.
4390 (hppa32_stack_align): Make name 32bit explicit.
4391 (hppa32_register_virtual_type): Likewise.
4392 (hppa32_extract_return_value): Likewise.
4393 (hppa32_use_struct_convention): Likewise.
4394 (hppa32_store_return_value): Likewise.
4395 (hppa64_register_virtual_type): New function.
4396 (hppa64_extract_return_value): New function.
4397 (hppa64_use_struct_convention): New function.
4398 (hppa64_store_return_value): New function.
4399 (hppa_frame_locals_address): Remove declaration, function does
4400 not exist anymore.
4401 (hppa_register_byte): Add support for PA64 ABI.
4402 (hppa_gdbarch_init): Add support for PA64 ABI.
4403 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4404 Make name 32bit explicit.
4405 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4406 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4407 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4408 (hppa64_hpux_frame_base_before_sigtramp): New function.
4409 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4410 * config/pa/tm-hppa64.h: Remove macros that are no longer
4411 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4412 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4413 * config/pa/tm-hppah.h: Update function calls in macros
4414 following the function renaming in hppa-hpux-tdep.c.
4415 * Makefile.in (hppa_tdep_h): New variable.
4416 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4417
5d05ca6d
MS
44182003-08-14 Michael Snyder <msnyder@redhat.com>
4419
4420 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4421
37ba2569
JB
44222003-08-13 J. Brobecker <brobecker@gnat.com>
4423
4424 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4425 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4426 routine.
4427
aed7f26a
MS
44282003-08-13 Michael Snyder <msnyder@redhat.com>
4429
4430 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4431 (frv_saved_pc_after_call): Use deprecated ftype.
4432 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4433 (frv_remote_translate_xfer_address): Remove.
4434 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4435
752d4ac1
JB
44362003-08-13 J. Brobecker <brobecker@gnat.com>
4437
4438 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4439 initialization after the common gdbarch initialization, not before.
4440
1426ac1d
JB
44412003-08-13 J. Brobecker <brobecker@gnat.com>
4442
4443 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4444 (ADDR_BITS_REMOVE): Remove, redundant.
4445
b6fbdd1d
JB
44462003-08-13 J. Brobecker <brobecker@gnat.com>
4447
4448 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4449 gdbarch method to clear the 2 low bits of text addresses.
4450
44160db3
AC
44512003-08-12 Andrew Cagney <cagney@redhat.com>
4452
4453 * Makefile.in (dsrec.o): Update dependencies.
4454 * dsrec.c: Include "gdb_assert.h".
4455 (make_srec): Use snprintf instead of sprintf, use a literal format
4456 string.
4457
bcf7d3ca
AC
44582003-08-12 Andrew Cagney <cagney@redhat.com>
4459
4460 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4461 FRAME_OBSTACK_ZALLOC.
4462
49ed40de
KB
44632003-08-12 Kevin Buettner <kevinb@redhat.com>
4464
4465 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4466 SSE registers.
4467
b246147c
MK
44682003-08-10 Mark Kettenis <kettenis@gnu.org>
4469
4470 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4471 amd64fbsd_sc_reg_offset): Add extern declarations.
4472 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4473 declarations.
4474
d95fdc0d
BE
44752003-08-11 Ben Elliston <bje@wasabisystems.com>
4476
4477 * MAINTAINERS (write after approval): Update my mail address.
4478
cf6a0e73
AC
44792003-08-10 Andrew Cagney <cagney@redhat.com>
4480
4481 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4482
f837910f
MK
44832003-08-10 Mark Kettenis <kettenis@gnu.org>
4484
e2dbbd2d
MK
4485 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4486 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4487 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4488 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4489 i386bsd_sc_reg_offset): Add extern declarations.
4490 * i386obsd-nat.c: Include "i386-tdep.h"
4491 (_initialize_i386obsd_nat): Remove extern declarations.
4492 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4493 declarations.
4494 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4495 declarations.
4496
f837910f
MK
4497 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4498 instead of frame_read_register.
4499 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4500 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4501 SP_REGNUM.
4502 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4503 instead of frame_unwind_unsigned_register. Use
4504 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4505 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4506 instead of read_register. Use builtin_type_void_data_ptr instead
4507 of builtin_type_void_func_ptr when extracting the address of the
4508 jmp_buf.
4509 (i386_extract_return_value, i386_store_return_value,
4510 i386_pseudo_register_read, i386_pseudo_register_write): Use
4511 register_size instead REGISTER_RAW_SIZE.
4512
edcf254d
AC
45132003-08-10 Andrew Cagney <cagney@redhat.com>
4514
4515 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4516 sprintf. Make "name" constant.
4517
26604a34
MK
45182003-08-10 Mark Kettenis <kettenis@gnu.org>
4519
192285c6
MK
4520 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4521 instead of frame_read_register.
f837910f
MK
4522 (i387_print_float_info): Use get_frame_register and
4523 get_frame_register_unsigned instead of frame_register_read.
192285c6 4524
f0925262
MK
4525 * i386fbsd-nat.c: Include "i386-tdep.h".
4526 (child_resume): Make `eflags' an ULONGEST. Use
4527 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4528 instead of register_read and register_write.
4529
a144416f
MK
4530 * i386bsd-nat.c (fetch_inferior_registers,
4531 store_inferior_registers): Don't use && at the end of a line.
4532 (_initialize_i386bsd_nat): Fix typo.
4533
fec74868
MK
4534 * frame.c (_initialize_frame): Add missing backslash.
4535
87232496
MK
4536 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4537 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4538 and supply_register instead of manipulating the register buffer
4539 directly.
4540
c9b9de0b
MK
4541 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4542 * config/i386/nm-i386sol2.h
4543 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4544
26604a34
MK
4545 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4546 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4547 instructions that GCC likes to mingle into the prologue. Fixes
4548 gdb/1253 and gdb/1255.
4549
25d29d70
AC
45502003-08-09 Andrew Cagney <cagney@redhat.com>
4551
4552 Fix GDB PR cli/926.
4553 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4554 * command.h (add_setshow_uinteger_cmd): Declare.
4555 * frame.c (set_backtrace_cmd): New function.
4556 (show_backtrace_cmd): New function.
4557 * frame.c (_initialize_frame): Replace "set/show
4558 backtrace-below-main" with "set/show backtrace past-main". Add
4559 command "set/show backtrace limit".
4560 (backtrace_past_main): Rename "backtrace_below_main".
4561 (backtrace_limit): New variable.
4562 (get_prev_frame): Update. Check the backtrace_limit.
4563
9ebf4acf
AC
45642003-08-09 Andrew Cagney <cagney@redhat.com>
4565
4566 * defs.h (xstrprintf): Declare.
4567 * utils.c (xstrprintf): New function.
4568 * breakpoint.c (insert_breakpoints): Replace sprintf and
4569 non-literal format strings, with xstrprintf and cleanups.
4570 (delete_breakpoint,breakpoint_re_set): Ditto.
4571 (commands_command, insert_breakpoints): Ditto.
4572 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4573 (break_at_finish_command_1): Ditto.
4574
3771659b
AC
45752003-08-09 Andrew Cagney <cagney@redhat.com>
4576
4577 * MAINTAINERS (language support): List Adam Fedor as Objective C
4578 maintainer.
4579
b4263afa
JB
45802003-08-08 J. Brobecker <brobecker@gnat.com>
4581
4582 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4583 are now multiarched.
4584
d84defb1
JB
45852003-08-08 J. Brobecker <brobecker@gnat.com>
4586
4587 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4588 longer necessary now that hppa64 is partially multiarch'ed.
4589
f786f615
AC
45902003-08-08 Andrew Cagney <cagney@redhat.com>
4591
4592 * interps.c (interp_set): Check for a NULL "old_interp".
4593
c938e9b0
L
45942003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4595
4596 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4597 (install-only): Support DESTDIR.
4598 (uninstall): Likewise.
4599 (install-gdbtk): Likewise.
4600
9a146a11
EZ
46012003-08-08 Elena Zannoni <ezannoni@redhat.com>
4602
4603 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4604 contains something meaningful at all times.
4605
4606Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4607
62599e99 4608 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4609
56296155
BC
4610Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4611
62599e99 4612 * MAINTAINERS (write after approval): Added self.
56296155 4613
9710e734
AC
46142003-08-07 Andrew Cagney <cagney@redhat.com>
4615
4616 * inferior.h (AT_SYMBOL): Define.
4617 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4618 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4619 * mips-tdep.c (mips_call_dummy_address): Delete function.
4620 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4621 set call_dummy_address.
4622
98b3ab73
AC
46232003-08-07 Andrew Cagney <cagney@redhat.com>
4624
4625 * language.c (op_error): Delete function.
4626 (binop_type_check): Delete function.
4627 * language.h (type_op_error, range_op_error): Delete macros.
4628 (op_error): Delete declaration.
4629
2fcf52f0
AC
46302003-08-07 Andrew Cagney <cagney@redhat.com>
4631
4632 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4633
abd4220e 46342003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4635
abd4220e 4636 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4637 (x86_64_push_arguments): Skip the red zone.
abd4220e 4638
9dd5f34f
AC
46392003-08-05 Andrew Cagney <cagney@redhat.com>
4640
4641 * reggroups.c (reggroup_next): Check for the final entry.
4642
e5e78edc
AC
46432003-08-04 Andrew Cagney <cagney@redhat.com>
4644
ab4e3d93
AC
4645 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4646 * cli/cli-script.c (define_command): Call query directly, instead
4647 of passing it a buffer.
4648 * ocd.c (ocd_error): Pass error a constant format string.
4649 * remote-mips.c (mips_error): Use fputs_filtered.
4650
1062ca82
AC
4651 * solib-svr4.c (_initialize_svr4_solib): Update
4652 register_gdbarch_data call.
4653 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4654
fcc1c85c
AC
4655 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4656 (register_gdbarch_data): Delete "free" parameter. Update
4657 comments.
4658 * gdbarch.h, gdbarch.c: Re-generate.
4659 * reggroups.c (_initialize_reggroup): Update.
4660 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4661 * frame-base.c (_initialize_frame_base): Update.
4662 * frame-unwind.c (_initialize_frame_unwind): Update.
4663 * user-regs.c (_initialize_user_regs): Update.
4664 * remote.c (_initialize_remote): Update.
4665 * regcache.c (_initialize_regcache): Update.
4666
116f06ea
AC
4667 * regcache.c (xfree_regcache_descr): Delete function.
4668 (_initialize_regcache): Update call to register_gdbarch_data.
4669 (init_regcache_descr, init_legacy_regcache_descr): Use
4670 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4671
e5e78edc
AC
4672 * remote.c (free_remote_state): Delete function.
4673 (_initialize_remote): Update register_gdbarch_data.
4674 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4675 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4676
6c7d17ba
AC
46772003-08-04 Andrew Cagney <cagney@redhat.com>
4678
4679 * reggroups.c (struct reggroup_el): Define.
4680 (struct reggroups): Delete field "nr_group". Replace array
4681 "group" with a "first" to "last" linked list.
4682 (reggroups_init): Update. Allocate using gdbarch's obstack.
4683 (reggroups_free): Delete function.
4684 (add_group): Update. Add "el" parameter.
4685 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4686 (default_groups): Update.
4687 (reggroup_next): Replace reggroups.
4688 (reggroups_dump): Update.
4689 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4690 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4691 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4692
89b7795b
DJ
46932003-08-04 Daniel Jacobowitz <drow@mvista.com>
4694
4695 * Makefile.in (tui-interp.o): Update dependencies.
4696
306d9ac5
DC
46972003-08-04 David Carlton <carlton@kealia.com>
4698
4699 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4700 to internal_error call.
4701 * source.c (forward_search_command): Add "%s" format argument.
4702 (reverse_search_command): Ditto.
4703 * top.c (quit_confirm): Ditto.
4704 * cli/cli-setshow.c (do_setshow_command): Ditto.
4705 * cp-valprint.c (cp_print_class_method): Replace
4706 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4707 (cp_print_class_member): Ditto.
4708 * event-top.c (command_line_handler): Ditto.
4709 * linux-proc.c (linux_info_proc_cmd): Ditto.
4710 * p-typeprint.c (pascal_type_print_base): Ditto.
4711 * p-valprint.c (pascal_object_print_class_method): Ditto.
4712 (pascal_object_print_class_member): Ditto.
4713 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4714 * remote.c (remote_cisco_section_offsets): Ditto.
4715 * top.c (command_line_input): Ditto.
4716 * utils.c (vwarning,error_stream,quit): Ditto.
4717 * valprint.c (print_floating,print_binary_chars)
4718 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4719
57bfe177
AC
47202003-08-04 Andrew Cagney <cagney@redhat.com>
4721
4722 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4723
e546b999
AC
47242003-08-02 Andrew Cagney <cagney@redhat.com>
4725
4726 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4727 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4728 amd64fbsd-nat.c.
4729
91092ee5
AC
47302003-08-02 Andrew Cagney <cagney@redhat.com>
4731
4732 * Makefile.in: Update all dependencies and definitions.
4733
889f28e2
AF
47342003-08-02 Adam Fedor <fedor@gnu.org>
4735
4736 * linespec.c (is_objc_method_format): New function
4737 (decode_line_1, locate_first_half): Use it.
4738 Fixes PR objc/1298
4739
880bc914
AC
47402003-08-01 Andrew Cagney <cagney@redhat.com>
4741
4742 * NEWS: Mention that m32r is multi-arch.
4743 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4744 * configure.tgt: Recognize m32r-*-*.
4745 * config/m32r/tm-m32r.h: Delete file.
4746 * config/m32r/m32r.mt: New file.
a8f4cde1 4747 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4748 gethostname succeeds, in order to avoid a compilation
4749 warning.
4750 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4751 compiler warning.
4752
19f59343
MS
47532003-08-01 Michael Snyder <msnyder@redhat.com>
4754
4755 * sh-tdep.c (sh_frame_align): New gdbarch method.
4756 (sh_gdbarch_init): Set up frame_align method.
4757
4e7d7511
MS
47582003-07-31 Michael Snyder <msnyder@redhat.com>
4759
4760 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4761 which is already covered by the new frames infrastructure.
4762
63022984
AC
47632003-07-31 Andrew Cagney <cagney@redhat.com>
4764
4765 * user-regs.c (struct user_reg): Add "next" link.
4766 (struct user_regs): Replace "user" with "first" and "last" links.
4767 (append_user_reg): Add pre-allocated "reg" parameter.
4768 (builtin_user_regs): Provide initial value for "last".
4769 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4770 (user_regs_init): Allocate memory from the gdbarch obstack.
4771 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4772 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4773 linked list.
4774 (usernum_to_user_reg): New function.
4775 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4776 (value_of_user_reg): Use usernum_to_user_reg.
4777 (user_regs_free): Delete function.
4778 (_initialize_user_regs): Update register_gdbarch_data call.
4779
7cf6e574
DJ
47802003-07-31 Daniel Jacobowitz <drow@mvista.com>
4781
4782 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4783
c48a845b
MS
47842003-07-30 Michael Snyder <msnyder@redhat.com>
4785
4e7d7511 4786 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4787 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4788 value_being_returned.
4789 * infcmd.c (print_return_value): Pass zero as struct_addr.
4790 * values.c (value_being_returned): If struct_addr is passed,
4791 use it instead of trying to recover it from the inferior.
4792
f0d8db19
KB
47932003-07-30 Kevin Buettner <kevinb@redhat.com>
4794
4795 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4796 the prologue analyzer won't need to attempt to extract the pc
4797 value from the woefully incomplete dummy frame.
4798 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4799 possible. Disable code which modifies the frame.
4800
e5c113a1
AC
48012003-07-28 Andrew Cagney <cagney@redhat.com>
4802
4803 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4804 to level 2.
4805 (annotate_breakpoints_table, annotate_record): Ditto.
4806 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4807 (annotate_field_name_end, annotate_field_value): Ditto.
4808 (annotate_field_end, annotate_frame_source_begin): Ditto.
4809 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4810 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4811 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4812 (annotate_frame_address_end, annotate_frame_address): Ditto.
4813 (annotate_frame_args, annotate_frame_end): Ditto.
4814 (annotate_frame_where, annotate_arg_begin): Ditto.
4815 (annotate_arg_name_end, annotate_arg_value): Ditto.
4816 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4817 (annotate_function_call, annotate_signal_name): Ditto.
4818 (annotate_signal_string, annotate_signal_name_end): Ditto.
4819 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4820 (annotate_value_begin, annotate_value_history_value): Ditto.
4821 (annotate_value_history_end, annotate_value_end): Ditto.
4822 (annotate_display_begin, annotate_display_number_end): Ditto.
4823 (annotate_display_format, annotate_display_expression): Ditto.
4824 (annotate_display_expression_end, annotate_display_value): Ditto.
4825 (annotate_display_end, annotate_array_section_begin): Ditto.
4826 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4827 (annotate_elt, annotate_array_section_end): Ditto.
4828
bb1db049
AC
48292003-07-28 Andrew Cagney <cagney@redhat.com>
4830
4831 * regcache.c (struct regcache_descr): Update comments on
4832 nr_raw_registers.
4833 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4834 sizeof_raw_register_valid_p.
4835 (init_regcache_descr): Set nr_raw_registers and
4836 sizeof_raw_register_valid_p before calling
4837 init_legacy_regcache_descr.
4838
20e6603c
AC
48392003-07-28 Andrew Cagney <cagney@redhat.com>
4840
4841 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4842 MOD NUM_REGS.
4843
db742940
DJ
48442003-07-28 Daniel Jacobowitz <drow@mvista.com>
4845
4846 * thread.c (info_threads_command): Use get_selected_frame ().
4847 Check that there is at least one non-sentinel frame.
4848
ce7f4371
SC
48492003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4850
4851 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4852 (m68hc11_pop_frame): Remove.
4853 (m68hc11_frame_saved_pc): Remove.
4854 (m68hc11_frame_chain): Remove.
4855 (m68hc11_frame_init_saved_regs): Remove.
4856 (m68hc11_init_extra_frame_info): Remove.
4857 (m68hc11_store_struct_return): Remove.
4858 (m68hc11_saved_pc_after_call): Remove.
4859
1ea653ae
SC
48602003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4861
4862 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4863 frame unwind information.
4864 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4865 and adapted for frame unwinding.
4866 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4867 (m68hc11_unwind_pc): New function.
4868 (m68hc11_frame_unwind_cache): New function to analyze frames.
4869 (m68hc11_frame_this_id): New function to create new frame struct.
4870 (m68hc11_frame_prev_register): New function to unwind a register from
4871 the frame.
4872 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4873 (m68hc11_frame_p): New function for the above.
4874 (m68hc11_frame_base_address): New function to return fp of frame.
4875 (m68hc11_frame_args_address): Update for frame.
4876 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4877 (m68hc11_unwind_sp): New function.
4878 (m68hc11_unwind_dummy_id): New function.
4879 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4880 calls.
4881
c8a7f6ac
SC
48822003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4883
4884 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4885 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4886 when we are beyond the current pc.
4887
3dc990bf
SC
48882003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4889
4890 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4891 from m68hc11_push_arguments.
4892 (m68hc11_push_arguments): Remove.
4893 (m68hc11_push_return_address): Remove.
4894 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4895 handlers; remove deprecated_extra_stack_alignment_needed.
4896
222e5d1d
AC
48972003-07-27 Andrew Cagney <cagney@redhat.com>
4898
4899 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4900 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4901 REAL_PC and not the pointer.
4902 * hppa-hpux-tdep.c: Include frame.h
4903
a7e9a47e
AC
49042003-07-27 Andrew Cagney <cagney@redhat.com>
4905
4906 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4907 GDB_MULTI_ACH_PARTIAL.
4908
7e3dd49e
AC
49092003-07-27 Andrew Cagney <cagney@redhat.com>
4910
4911 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4912 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4913 operator at start and not end of line.
4914 (decode_prologue): Ditto.
4915 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4916 frame_unwind_register_unsigned instead of
4917 frame_unwind_unsigned_register.
4918 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4919 read_register.
4920 (m32r_push_dummy_call): Use register_size instead of
4921 REGISTER_RAW_SIZE.
4922 (m32r_frame_sniffer): Replace m32r_frame_p.
4923 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4924 * m32r-rom.c (report_transfer_performance): Delete extern
4925 declaration.
4926 (m32r_load, m32r_upload_command): Use print_transfer_performance
4927 instead of report_transfer_performance.
4928 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4929 / add_show_from_set.
4930
0880807f
AC
49312003-07-26 Andrew Cagney <cagney@redhat.com>
4932
4933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4934 store_return_value and extract_struct_value_address.
4935
64ae9269
DJ
49362003-07-26 Daniel Jacobowitz <drow@mvista.com>
4937
4938 PR c++/1267
4939 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4940 NULL, default to the section containing PC.
4941
e286caf2
SC
49422003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4943
4944 * NEWS: Mention "regs" deprecated for m68hc11 too.
4945
4946 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4947 (m68hc11_print_register): New function to print out one register.
4948 (m68hc11_print_registers_info): New function to print registers.
4949 (show_regs): Deprecate and use the above.
4950 (m68hc11_gdbarch_init): Install the print_registers_info.
4951
705b278b
JJ
49522003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4953
4954 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4955 that we have a SIGTRAP before returning non-zero.
4956
63cd4198
EZ
49572003-07-23 Michal Ludvig <mludvig@suse.cz>
4958 Elena Zannoni <ezannoni@redhat.com>
4959
a8f4cde1 4960 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4961 find_function_start_sal() returns empty record.
4962
6926787d
AS
49632003-07-23 Andreas Schwab <schwab@suse.de>
4964
4965 * ia64-tdep.c (ia64_print_insn): New function.
4966 (ia64_gdbarch_init): Set print_insn to it.
4967 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4968 deprecated_tm_print_insn_info.
4969
708cc1b6
MS
49702003-07-22 Michael Snyder <msnyder@redhat.com>
4971
4972 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4973 handle 8-bit returns (long long).
4974 (h8300h_extract_return_value): Ditto.
4975 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4976
aebd7893
AC
49772003-07-22 Andrew Cagney <cagney@redhat.com>
4978
4979 * gdbarch.c Include "gdb_obstack.h".
4980 (struct gdbarch): Add an "obstack".
4981 (alloc_gdbarch_data): Allocate the gdbarch data using
4982 GDBARCH_OBSTACK_CALLOC.
4983 (free_gdbarch_data): Delete function.
4984 (gdbarch_obstack_zalloc): New function.
4985 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4986 Assert that the architecture is not initialized.
4987 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4988 vector from the obstack.
4989 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4990 architecture obstack.
4991 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4992 (set_gdbarch_data): Assert that the data is not initialized.
4993 (struct gdbarch_data): Delete member "free".
4994 (register_gdbarch_data): Do not initialize "free".
4995 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4996
153721e6
AC
49972003-07-22 Andrew Cagney <cagney@redhat.com>
4998
4999 * configure.in (build_warnings): Add -Wformat-nonliteral.
5000 * configure: Re-generate.
5001
c193f044 50022003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5003
5004 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5005
c3228f12
EZ
50062003-07-22 Elena Zannoni <ezannoni@redhat.com>
5007
5008 * findvar.c (read_var_value): Remove case for thread local storage
5009 variables. It is now entirely handled by the dwarf2 location
5010 expression code.
5011 * printcmd.c (address_info): Ditto.
5012 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5013 enumeration value.
5014 (struct symbol): Remove objfile field, which was used by
5015 LOC_THREAD_LOCAL_STATIC only.
5016 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5017 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5018 usage of objfile pointer.
5019 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5020 thread local variables.
5021 Add include of objfiles.h.
5022 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5023 storage variables.
5024 * Makefile.in (dwarf2loc.o): Update dependencies.
5025
aef9bcd2
AC
50262003-07-22 Andrew Cagney <cagney@redhat.com>
5027
5028 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5029 get_frame_base.
5030 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5031 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5032 (struct value): Add opaque declaration.
5033 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5034
d95a8903
AC
50352003-07-21 Andrew Cagney <cagney@redhat.com>
5036
5037 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5038 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5039
4db73d49
SC
50402003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5041
a8f4cde1 5042 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5043 regcache_cooked_read_unsigned instead of read_register.
5044 (m68hc11_saved_pc_after_call): Likewise.
5045 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5046 instead of write_register.
5047 (m68hc11_register_type): New function.
5048 (m68hc11_register_virtual_type): Remove.
5049 (m68hc11_store_return_value): Convert to use the regcache.
5050 (m68hc11_extract_struct_value_address): Likewise.
5051 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5052 m68hc11_register_type; undeprecate store_return_value and
5053 extract_struct_value_address.
5054
ef2b8fcd
SC
50552003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5056
5057 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5058 and translate to use regcache.
5059 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5060
625b0b97
AC
50612003-07-18 Andrew Cagney <cagney@redhat.com>
5062
5063 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5064 * gdbarch.h, gdbarch.c: Re-generate.
5065 * i386-tdep.c (i386_gdbarch_init): Do not set
5066 DWARF2_BUILD_FRAME_INFO.
5067 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5068 unconditionally.
5069 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5070 DWARF2_BUILD_FRAME_INFO.
5071
22b0d388
AC
50722003-07-18 Andrew Cagney <cagney@redhat.com>
5073
5074 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5075 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5076
1ce5d6dd
AC
50772003-07-18 Andrew Cagney <cagney@redhat.com>
5078
5079 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5080 frame_unwind_address_in_block, instead of frame_pc_unwind.
5081 (dwarf2_frame_cache): Ditto.
5082
e6e5e94c
AC
50832003-07-18 Andrew Cagney <cagney@redhat.com>
5084
5085 * user-regs.h (struct gdbarch): Declare opaque.
5086 * ui-out.h (struct ui_file): Declare opaque.
5087 * dwarf2-frame.h (struct frame_info): Declare opaque.
5088
5483d879
KW
50892003-07-18 Kris Warkentin <kewarken@qnx.com>
5090
5091 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5092 #include "...".
5093 (procfs_meminfo): Change strerror to safe_strerror.
5094 (procfs_can_run): Remove K&R badness.
5095
278a7cf7
MS
50962003-07-17 Michael Snyder <msnyder@redhat.com>
5097
5098 * remote-sim.c: Comment typo fix.
5099
606e3b82
AC
51002003-07-17 Andrew Cagney <cagney@redhat.com>
5101
5102 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5103 configure.
5104 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5105 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5106 GDB_MULTI_ARCH_PARTIAL.
5107
c43af07c
EZ
51082003-07-17 Elena Zannoni <ezannoni@redhat.com>
5109
5110 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5111 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5112 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5113
3b85b0f1
TR
51142003-07-16 Theodore A. Roth <troth@openavr.org>
5115
5116 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5117 found.
5118 (avr_frame_unwind_cache): Don't unwind FP for main.
5119 Update a comment.
5120 Save the computed prev_sp.
5121 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5122 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5123 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5124
336d1bba
AC
51252003-07-16 Andrew Cagney <cagney@redhat.com>
5126
5127 * frame-base.h (frame_base_p_ftype): Delete definition.
5128 (frame_base_append_predicate): Delete declaration.
5129 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5130 (frame_unwind_append_predicate): Delete declaration.
5131 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5132 (append_predicate): Delete parameter "p".
5133 (frame_unwind_append_predicate): Delete function.
5134 (frame_unwind_append_sniffer): Update call to append_predicate.
5135 (frame_unwind_free): Delete function.
5136 (_initialize_frame_unwind): Pass NULL as "free" to
5137 register_gdbarch_data.
5138 (frame_unwind_init): Append the dummy_frame_sniffer.
5139 (frame_unwind_find_by_frame): Simplify.
5140 * frame-base.c (struct frame_base_table): Delete field "p".
5141 (append_predicate): Delete parameter "p".
5142 (frame_base_append_predicate): Delete function.
5143 (frame_base_append_sniffer): Update call to append_predicate.
5144 (frame_base_free): Delete function.
5145 (frame_base_find_by_frame): Simplify.
5146 (_initialize_frame_base): Pass NULL as "free" to
5147 register_gdbarch_data.
5148 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5149 (x86_64_sigtramp_frame_sniffer): Replace
5150 "x86_64_sigtramp_frame_p".
5151 (x86_64_init_abi): Set the frame unwind sniffers.
5152 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5153 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5154 (m68k_gdbarch_init): Set the frame unwind sniffers.
5155 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5156 "i386_sigtramp_frame_p".
5157 (i386_frame_sniffer): Replace "i386_frame_p".
5158 (i386_gdbarch_init): Set the frame unwind sniffers.
5159 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5160 (avr_gdbarch_init): Set the frame unwind sniffers.
5161 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5162 "alpha_sigtramp_frame_p"
5163 (alpha_heuristic_frame_sniffer): Replace
5164 "alpha_heuristic_frame_p".
5165 (alpha_gdbarch_init): Set the frame unwind sniffers.
5166 (alpha_dwarf2_init_abi): Ditto.
5167 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5168 "alpha_debug_frame_p".
5169 (alpha_mdebug_frame_base_sniffer): Replace
5170 "alpha_mdebug_frame_base_p".
5171 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5172 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5173 (d10v_gdbarch_init): Set the frame unwind sniffer.
5174 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5175 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5176 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5177 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5178 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5179 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5180
48db5a3c
CV
51812003-07-16 Michael Snyder <msnyder@redhat.com>
5182
5183 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5184 should go thru sh_dsp_register_sim_regno, else the dsp regs
5185 will not get the right values.
5186
51872003-07-16 Corinna Vinschen <vinschen@redhat.com>
5188
5189 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5190 deprecated_store_floating by call to store_typed_floating.
5191 (sh_sh4_register_convert_to_raw): Substitute call to
5192 deprecated_extract_floating by call to extract_typed_floating.
5193
51942003-07-16 Corinna Vinschen <vinschen@redhat.com>
5195
5196 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5197
51982003-07-16 Corinna Vinschen <vinschen@redhat.com>
5199
5200 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5201 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5202 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5203 as possible.
5204 (do_pseudo_register): Remove.
5205 (sh_push_dummy_code): New function.
5206 (sh64_store_struct_return): Rename from sh_store_struct_return.
5207 Only called for sh64 now.
5208 (sh_extract_struct_value_address): Regcache'ify.
5209 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5210 and accomodate new tasks.
5211 (sh64_push_return_address): Rename from sh_push_return_address.
5212 Only called for sh64 now.
5213 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5214 Regcache'ify.
5215 (sh3e_sh4_extract_return_value): Regcache'ify.
5216 (sh_default_store_return_value): Ditto.
5217 (sh3e_sh4_store_return_value): Ditto.
5218 (sh_default_register_byte): Remove.
5219 (sh_sh4_register_byte): Remove.
5220 (sh_default_register_raw_size): Remove.
5221 (sh_sh4_register_raw_size): Remove.
5222 (sh_register_virtual_size): Remove.
5223 (sh_sh3e_register_virtual_type): Remove.
5224 (sh_sh3e_register_type): New function.
5225 (sh_sh4_register_virtual_type): Remove.
5226 (sh_sh4_register_type): New function.
5227 (sh_default_register_virtual_type): Remove.
5228 (sh_default_register_type): New function.
5229 (do_fv_register_info): Add parameters to accomodate call from
5230 sh_print_registers_info.
5231 (do_dr_register_info): Ditto.
5232 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5233 Add parameters to accomodate call from sh_print_registers_info.
5234 (sh_do_fp_register): Ditto.
5235 (sh64_do_pseudo_register): Call do_dr_register_info,
5236 do_fv_register_info and sh_do_fp_register with default parameters.
5237 (sh_do_register): Add parameters to accomodate call from
5238 sh_print_registers_info.
5239 (sh_print_register): Ditto.
5240 (sh_print_registers_info): Rename from sh_do_registers_info.
5241 Add parameters to be used as gdbarch_print_registers_info
5242 implementation. Accomodate removed do_pseudo_register function
5243 pointer.
5244 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5245 function pointer. Call sh_print_register with default parameters.
5246 (sh64_do_registers_info): Call sh_print_registers_info instead of
5247 sh_do_registers_info.
5248 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5249 detection of deprecated vs. non-deprecated functionality.
5250 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5251 function pointer assignments by direct function calls.
5252
e8a89fe2
AC
52532003-07-15 Andrew Cagney <cagney@redhat.com>
5254
5255 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5256 (frame_register_unwind, create_new_frame): Ditto.
5257 (legacy_get_prev_frame, get_frame_type): Ditto.
5258 (get_frame_base_address): Use frame_base_find_by_frame.
5259 (get_frame_locals_address): Use frame_base_find_by_frame.
5260 (get_frame_args_address): Use frame_base_find_by_frame.
5261 * frame-base.h (frame_base_sniffer_ftype): Declare.
5262 (frame_base_append_sniffer): Declare.
5263 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5264 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5265 (frame_base_append_sniffer): New function.
5266 (frame_base_append_predicate): Add a NULL sniffer.
5267 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5268 (struct frame_base_table): Add "sniffer".
5269 (frame_base_free): Free the "sniffer" table.
5270 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5271 (frame_unwind_append_sniffer): Declare.
5272 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5273 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5274 (struct frame_unwind_table): Add "sniffer", delete "middle".
5275 (append_predicate): Add "sniffer" parameter, append the sniffer.
5276 (frame_unwind_init): Update append_predicate call.
5277 (frame_unwind_append_sniffer): New function.
5278 (frame_unwind_append_predicate): Update append_predicate call.
5279 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5280
0714963c
AC
52812003-07-15 Andrew Cagney <cagney@redhat.com>
5282
5283 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5284 before code inhibiting repeated unwind attempts. Add to
5285 commentary on that test's problems.
5286 * blockframe.c (inside_main_func): Look for "main" in the minimal
5287 symbol table.
5288 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5289 identical.
5290
d9170e22
AC
52912003-07-15 Andrew Cagney <cagney@redhat.com>
5292
5293 * complaints.c (struct explanation): Define.
5294 (struct complaints): Change type of "explanation" to "struct
5295 explanation".
5296 (symfile_explanations): Convert to a "struct explanation" table.
5297 (vcomplaint): Update.
5298
eba29c8c
ML
52992003-07-15 Michal Ludvig <mludvig@suse.cz>
5300
5301 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5302 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5303 x86_64_linux_(fill,supply)_gregset functions.
5304 * x86-64-linux-tdep.c (USER_*): New defines.
5305 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5306 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5307 New functions.
5308 (fetch_core_registers): Ditto.
5309 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5310 * x86-64-linux-tdep.h: New file.
5311 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5312 and core-regset.o.
5313 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5314
68cc0bfb
MK
53152003-07-13 Mark Kettenis <kettenis@gnu.org>
5316
88a115f7
MK
5317 * x86-64-tdep.c (x86_64_store_return_value): Use
5318 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5319
68cc0bfb
MK
5320 * configure.host: Add x86_64-*-freebsd*.
5321 * configure.tgt: Add x86_64-*-freebsd*.
5322 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5323 * amd64fbsd-nat.c: New file.
5324 * amd64fbsd-tdep.c: New file.
5325 * config/i386/nm-fbsd64.h: New file.
5326 * config/i386/fbsd64.mh: New file.
5327 * config/i386/fbsd64.mt: New file.
5328
138e7be5
MK
53292003-07-11 Mark Kettenis <kettenis@gnu.org>
5330
5331 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5332 `sc_regs_offset' and `sc_fpregs_offset'.
5333 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5334 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5335 (alpha_sigtramp_register_address): Rewrite to use new members of
5336 `struct gdbarch_tdep'.
5337 (alpha_gdbarch_init): Initialize new members of struct
5338 gdbarch_tdep'.
5339 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5340 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5341 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5342 (alphafbsd_pc_in_sigtramp): Implement.
5343 (alphafbsd_sigtramp_offset): New function.
5344 (alphafbsd_sigcontext_addr): New function.
5345 (alphafbsd_init_abi): Initialize signal trampoline related members
5346 of `struct gdbarch_tdep'.
5347 (_initialize_alphafbsd_tdep): Add prototype.
5348
95303a68
TR
53492003-07-11 Theodore A. Roth <troth@openavr.org>
5350
ba292e4c
TR
5351 * Makefile.in (install-only): Quote sed expression when generating
5352 transformed_name.
95303a68 5353
6896c0c7
RH
53542003-07-11 Richard Henderson <rth@redhat.com>
5355
5356 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5357 * dwarf2-frame.c: Include complaints.h.
5358 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5359 variable initialization; return NULL on error.
5360 (decode_frame_entry): New.
5361
8edd5d01
AC
53622003-07-11 Andrew Cagney <cagney@redhat.com>
5363
c4a09524
AC
5364 * frame.h (frame_address_in_block): Delete declaration.
5365 * blockframe.c (frame_address_in_block): Delete function.
5366 (get_frame_block): Use get_frame_address_in_block.
5367 (block_innermost_frame): Ditto.
5368 * stack.c (print_frame, backtrace_command_1): Ditto.
5369
8edd5d01
AC
5370 * frame.h (get_frame_address_in_block): Declare.
5371 (frame_unwind_address_in_block): Declare.
5372 * frame.c (frame_unwind_address_in_block): New function.
5373 (get_frame_address_in_block): New function.
5374
f7968451
AC
53752003-07-10 Andrew Cagney <cagney@redhat.com>
5376
5377 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5378 pre-default. Note: re-generate has no effect.
a8f4cde1 5379
ae99b398
AC
53802003-07-10 Andrew Cagney <cagney@redhat.com>
5381
5382 * gdbarch.sh: When a variable, but not a function, compare against
5383 0. Fix problem in previous patch.
5384 * gdbarch.c: Re-generate.
a8f4cde1 5385
956ac328
AC
53862003-07-10 Andrew Cagney <cagney@redhat.com>
5387
5388 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5389 functions against NULL, not 0.
5390 * gdbarch.c: Re-generate.
a8f4cde1 5391
287c3240
FF
53922003-07-10 Fred Fish <fnf@ninemoons.com>
5393
5394 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5395 null string instead of a null pointer.
5396 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5397
32f63c4b
MS
53982003-07-09 Michael Snyder <msnyder@redhat.com>
5399
5400 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5401
402ecd56
MK
54022003-07-09 Mark Kettenis <kettenis@gnu.org>
5403
5404 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5405 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5406 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5407 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5408 * x86-64-tdep.c: ... from here.
5409
c481dac7
AS
54102003-07-09 Andreas Schwab <schwab@suse.de>
5411
5412 * m68k-tdep.h (enum struct_return): Define.
5413 (struct gdbarch_tdep): Add struct_return.
5414 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5415 bytes are padded to the right, not to the left. Pass struct value
5416 address in register %a1, not on stack.
5417 (m68k_use_struct_convention): New function.
5418 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5419 struct_return in tdep to pcc_struct_return.
5420 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5421 reg_struct_return.
5422
a8f4cde1 54232003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5424
a8f4cde1 5425 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5426
96a4ee76
AC
54272003-07-09 Andrew Cagney <cagney@redhat.com>
5428
5429 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5430 Add comments about the checks.
5431
1517c6d1
AC
54322003-07-08 Andrew Cagney <cagney@redhat.com>
5433
5434 * Makefile.in: Make dependency section headers consistent.
5435 (config_h): Move to $BUILD headers section.
5436 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5437 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5438 (ada-exp.tab.c): Move to YACC/LEX section.
5439 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5440 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5441
dc5dd1eb
KW
54422003-07-08 Kris Warkentin <kewarken@qnx.com>
5443
5444 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5445 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5446 of strerror with safe_strerror, use ISO C function definitions,
5447 and replace instances of sprintf with snprintf.
dc5dd1eb 5448
612dde91
AC
54492003-07-07 Andrew Cagney <cagney@redhat.com>
5450
5451 * frame.c (get_prev_frame): Enable check for identical frames.
5452 Update comments. Update error messages.
5453
492c11d3
JB
54542003-07-07 Joel Brobecker <brobecker@gnat.com>
5455
5456 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5457
376a5a49
JB
54582003-07-07 Joel Brobecker <brobecker@gnat.com>
5459
5460 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5461 sort_symtab_syms, no longer necessary.
5462
22b4a9ad
JB
54632003-07-07 Joel Brobecker <brobecker@gnat.com>
5464
5465 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5466
5bbcb741
JB
54672003-07-07 Joel Brobecker <brobecker@gnat.com>
5468
5469 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5470 (mips_register_byte): Likewise.
5471
c139e7d9
DJ
54722003-07-07 Daniel Jacobowitz <drow@mvista.com>
5473
5474 * Makefile.in (sparc_tdep_h): New.
5475 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5476 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5477 * sparc-linux-nat.c: Include "sparc-tdep.h".
5478 * sparc-nat.c: Likewise.
5479 * sparc-tdep.c: Likewise.
5480 * sparc64nbsd-nat.c: Likewise.
5481 * sparcnbsd-nat.c: Likewise.
5482 * sparcnbsd-tdep.c: Likewise.
5483 * sparc-tdep.h: New file.
5484 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5485 and sparc_npc_regnum.
5486
fd8f87c5
DJ
54872003-07-07 Daniel Jacobowitz <drow@mvista.com>
5488
5489 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5490 (mips_linux_cannot_store_register): List supported instead of
5491 unsupported registers.
5492
13adf674
DJ
54932003-07-07 Daniel Jacobowitz <drow@mvista.com>
5494
5495 * disasm.c (dump_insns): Separate instructions from addresses.
5496
8de307e0
AS
54972003-07-07 Andreas Schwab <schwab@suse.de>
5498
5499 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5500 dependencies.
5501 * m68k-tdep.c (NUM_FREGS): Delete.
5502 (SIG_PC_FP_OFFSET): Delete.
5503 (TARGET_M68K): Delete.
5504 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5505 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5506 P_MOVEL_SP, P_MOVEML_SP): Define.
5507 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5508 P_TRAP): Delete.
5509 (m68k_register_raw_size): Delete.
5510 (m68k_register_virtual_size): Delete.
5511 (m68k_register_type): Renamed from m68k_register_virtual_type and
5512 add gdbarch argument.
5513 (m68k_store_struct_return): Delete.
5514 (m68k_deprecated_extract_return_value): Delete.
5515 (m68k_deprecated_extract_struct_value_address): Delete.
5516 (m68k_frame_chain): Delete.
5517 (m68k_frame_saved_pc): Delete.
5518 (m68k_fix_call_dummy): Delete.
5519 (m68k_push_dummy_frame): Delete.
5520 (m68k_pop_frame): Delete.
5521 (m68k_extract_return_value): New function.
5522 (m68k_store_return_value): Rewrite using regcache.
5523 (m68k_extract_struct_value_address): Rewrite using regcache.
5524 (m68k_push_dummy_call): New function.
5525 (struct m68k_frame_cache): Define.
5526 (m68k_alloc_frame_cache): New function.
5527 (m68k_analyze_frame_setup): New function.
5528 (m68k_analyze_register_saves): New function.
5529 (m68k_analyze_prologue): New function.
5530 (m68k_skip_prologue): Rewrite using above functions.
5531 (m68k_unwind_pc): New function.
5532 (m68k_frame_cache): New function.
5533 (m68k_frame_this_id): New function.
5534 (m68k_frame_prev_register): New function.
5535 (m68k_frame_unwind): New variable.
5536 (m68k_frame_p): New function.
5537 (m68k_sigtramp_frame_cache): New function.
5538 (m68k_sigtramp_frame_this_id): New function.
5539 (m68k_sigtramp_frame_prev_register): New function.
5540 (m68k_sigtramp_frame_unwind): New variable.
5541 (m68k_sigtramp_frame_p): New function.
5542 (m68k_frame_base_address): New function.
5543 (m68k_frame_base): New function.
5544 (m68k_unwind_dummy_id): New function.
5545 (fill_gregset): Use regcache_collect.
5546 (fill_fpregset): Likewise.
5547 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5548 defined.
5549 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5550 deprecated_init_frame_pc, deprecated_store_struct_return,
5551 deprecated_extract_return_value, deprecated_store_return_value,
5552 deprecated_frame_chain, deprecated_frame_saved_pc,
5553 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5554 deprecated_register_virtual_size,
5555 deprecated_max_register_raw_size,
5556 deprecated_max_register_virtual_size,
5557 deprecated_register_virtual_type, deprecated_register_size,
5558 deprecated_register_byte, deprecated_register_bytes,
5559 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5560 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5561 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5562 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5563 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5564 deprecated_push_dummy_frame, deprecated_pop_frame,
5565 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5566 only if SYSCALL_TRAP is defined. Set extract_return_value,
5567 store_return_value, extract_struct_value_address, register_type,
5568 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5569 predicates.
5570 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5571 M68K_MAX_REGISTER_SIZE): Define.
5572 (struct m68k_sigtramp_info): Define.
5573 (struct gdbarch_tdep): Add get_sigtramp_info.
5574 * m68klinux-nat.c (fetch_register): Use register_size instead of
5575 REGISTER_RAW_SIZE. Don't put assignment in if.
5576 (store_register): Likewise.
5577 (fetch_inferior_registers): Likewise.
5578 (store_inferior_registers): Likewise.
5579 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5580 (m68k_linux_frame_saved_pc): Delete.
5581 (m68k_linux_sigcontext_reg_offset,
5582 m68k_linux_ucontext_reg_offset): Define.
5583 (m68k_linux_get_sigtramp_info): New function.
5584 (m68k_linux_extract_return_value): Rewrite using regcache.
5585 (m68k_linux_store_return_value): Likewise.
5586 (m68k_linux_extract_struct_value_address): Likewise.
5587 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5588 Don't set deprecated_frame_saved_pc,
5589 deprecated_extract_return_value, deprecated_store_return_value,
5590 deprecated_extract_struct_value_address. Set
5591 extract_return_value, store_return_value,
5592 extract_struct_value_address.
5593
eb8bc282
AC
55942003-07-07 Andrew Cagney <cagney@redhat.com>
5595
5596 * expprint.c: Include "user-regs.h" instead of "frame.h".
5597 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5598 frame_map_regnum_to_name.
5599 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5600 (frame_map_name_to_regnum): Simplify, call
5601 user_reg_map_name_to_regnum.
5602 (frame_map_regnum_to_name): Simplify, call
5603 user_reg_map_regnum_to_name.
5604 (frame_register_unwind): Update.
5605 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5606 (_initialize_frame_reg): Call user_reg_add_builtin.
5607 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5608 (value_of_register): Use value_of_user_reg.
5609 * eval.c (evaluate_subexp_standard): Update.
5610 * parse.c (write_dollar_variable): Update.
5611 * d10v-tdep.c (d10v_print_registers_info): Update.
5612 * infcmd.c (registers_info): Update.
5613 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5614 (builtin_regs_h): Delete macro.
5615 (user_regs_h): Define.
5616 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5617 (builtin-regs.o): Delete target.
5618 (user-regs.o): Specify dependencies.
5619 (expprint.o): Update dependencies.
5620 (findvar.o): Update dependencies.
5621 (frame.o): Update dependencies.
5622 (std-regs.o): Update dependencies.
5623
9f476a01
CF
56242003-07-06 Christopher Faylor <cgf@redhat.com>
5625
5626 * win32-nat.c (solib_symbols_add): Use one variable for all section
5627 address stuff. Pass variable rather than address of variable to
5628 safe_symbol_file_add.
5629
a731b831
AS
56302003-07-06 Andreas Schwab <schwab@suse.de>
5631
5632 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5633
9f83329d
JB
56342003-07-04 Joel Brobecker <brobecker@gnat.com>
5635
5636 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5637
27e28cc5
KW
56382003-07-04 Kris Warkentin <kewarken@qnx.com>
5639
5640 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5641
56422003-07-04 Kris Warkentin <kewarken@qnx.com>
5643
5644 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5645 * config/i386/nto.mh: New file.
5646 * config/i386/nm-nto.h: New file.
5647 * configure.host: Add i[3456]86-*-nto*.
5648
100f2e98
JB
56492003-07-03 Joel Brobecker <brobecker@gnat.com>
5650
5651 * remote-vx.c (vx_add_symbols): Fix compilation error.
5652
e23457df
AC
56532003-07-03 Andrew Cagney <cagney@redhat.com>
5654
5655 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5656 * gdbarch.h, gdbarch.c: Re-generate.
5657 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5658 (legacy_register_name): Declare.
5659 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5660 (REGISTER_NAME): Define.
5661 * sparc-tdep.c (legacy_register_name): New function.
5662 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5663 (REGISTER_NAME): Define.
5664 (hppa64_register_name): Declare.
5665 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5666 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5667 (hppa64_register_name): New function.
5668 (hppa_register_name): New function.
5669 * arch-utils.c (legacy_register_name): Delete.
5670 * arch-utils.h (legacy_register_name): Delete.
5671
38caaeec
DJ
56722003-07-03 Daniel Jacobowitz <drow@mvista.com>
5673
5674 * cli/cli-interp.c (cli_interpreter_resume): Update the
5675 cli_uiout's stream to gdb_stdout.
5676
dadd712e
AC
56772003-07-03 Andrew Cagney <cagney@redhat.com>
5678
5679 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5680 predicate.
5681 * gdbarch.h, gdbarch.c: Re-generate.
5682 * regcache.c (init_regcache_descr): Use legacy code when either
5683 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5684
c7f1390e
DJ
56852003-07-02 Daniel Jacobowitz <drow@mvista.com>
5686
5687 * NEWS: Move "set logging" entry into GDB 6.0 section.
5688
4bc8c588
JB
56892003-07-02 Jim Blandy <jimb@redhat.com>
5690
a9dd42f1
JB
5691 * s390-tdep.c (struct frame_extra_info): new member:
5692 'stack_bought_valid'.
5693 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5694 initialize fextra_info->stack_bought.
5695 (s390_frameless_function_invocation): Don't trust the value of
5696 fextra_info_ptr->stack_bought unless
5697 fextra_info->stack_bought_valid is set.
5698
4bc8c588
JB
5699 New S390 prologue analyzer.
5700 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5701 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5702 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5703 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5704 compute_x_addr, s390_on_stack, s390_store,
5705 s390_get_signal_frame_info): New functions.
5706 (S390_NUM_SPILL_SLOTS): New macro.
5707 (s390_get_frame_info): Rewritten.
5708 (is_arg_reg): Deleted.
5709
5710 Break out the decoding of S/390 instructions into separate
5711 functions, to make it more legible, and easier to check
5712 against the spec.
5713 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5714 is_rx, is_rxe): New functions.
5715 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5716 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5717 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5718 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5719 enums for opcode values. (Is this an improvement?)
5720
fd13a04a
AC
57212003-07-02 Andrew Cagney <cagney@redhat.com>
5722
5723 * i386-tdep.c: Revert change committed as part of trad-frame code
5724 below.
5725
3f8091c1
DJ
57262003-07-02 Daniel Jacobowitz <drow@mvista.com>
5727
5728 * breakpoint.c (insert_catchpoint): Make static.
5729
8dd5115e
AS
57302003-07-02 Andreas Schwab <schwab@suse.de>
5731
5732 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5733 former ia64_push_arguments and ia64_push_return_address, and use
5734 regcache functions instead of read/write_register.
5735 (ia64_gdbarch_init): Set push_dummy_call instead of
5736 deprecated_push_arguments and deprecated_push_return_address.
5737
a2229c23
AJ
57382003-07-01 Andreas Jaeger <aj@suse.de>
5739
5740 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5741 before the call.
5742 Set %rax only to number of SSE registers used.
5743
3b3850e8
AC
57442003-07-01 Andrew Cagney <cagney@redhat.com>
5745
5746 * trad-frame.h: Update comments, a -1 .addr is reserved.
5747 (trad_frame_value_p, trad_frame_addr_p): Declare.
5748 (trad_frame_reg_p): Declare.
5749 (trad_frame_set_value): Rename trad_frame_register_value.
5750 (trad_frame_set_unknown): Declare.
5751 * trad-frame.c (trad_frame_realreg_p): New function.
5752 (trad_frame_addr_p, trad_frame_value_p): New function.
5753 (trad_frame_set_unknown): New function.
5754 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5755 (trad_frame_prev_register): Use trad_frame_realreg_p,
5756 trad_frame_addr_p and trad_frame_value_p.
5757 (trad_frame_set_value): Rename trad_frame_register_value.
5758 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5759 and trad_frame_set_value.
a2229c23 5760
4d819d0e
JB
57612003-06-30 Jim Blandy <jimb@redhat.com>
5762
5763 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5764 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5765 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5766 for 16 registers, and then 32 more bytes.
5767 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5768 New macros.
5769 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5770 Move up in the file, since it's now used by is_simple_arg.
5771 (is_simple_arg): Don't assume registers are four bytes long.
5772 Exclude all double arguments. Extended floats are not simple
5773 args.
5774 (is_power_of_two): New function.
5775 (pass_by_copy_ref): Call is_power_of_two, and check that the
5776 length fits in a register, rather than listing all the acceptable
5777 sizes. Extended floats are not passed by reference.
5778 (s390_push_arguments): Don't assume registers are four bytes long.
5779 Reserve an argument register to point to the buffer for structures
5780 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5781 S390_STACK_FRAME_OVERHEAD.
5782
1ad828f1
AS
57832003-06-30 Andreas Schwab <schwab@suse.de>
5784
5785 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5786 format error message.
5787
39b00981
JB
57882003-06-30 Joel Brobecker <brobecker@gnat.com>
5789
5790 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5791
b2a7f303
DC
57922003-06-30 David Carlton <carlton@kealia.com>
5793
5794 Band-aid for PR c++/1245.
5795 * Makefile.in (cp-support.o): Depend on complaints_h.
5796 * cp-support.c: Include complaints.h. Add declaration for
5797 find_last_component.
5798 (cp_find_first_component): Separate code into
5799 cp_find_first_component_aux.
5800 (cp_find_first_component_aux): Call demangled_name_complaint.
5801 (demangled_name_complaint): New.
5802
a257b5bb
AC
58032003-06-30 Andrew Cagney <cagney@redhat.com>
5804
5805 * remote.c (remote_write_bytes): Explicitly compute and then use
5806 the payload size. Update comments to reflect. Fixes problem of
5807 GDB not sending small packets as found by Fred Fish.
5808
0a2cfde4
AC
58092003-06-30 Andrew Cagney <cagney@redhat.com>
5810
5811 * remote.c (remote_async_wait): Fix -Wformat problem.
5812
3fcb8548
AC
58132003-06-29 Andrew Cagney <cagney@redhat.com>
5814
5815 * remote.c (remote_wait): Call error, and not warning, when the
5816 packet is corrupt.
5817 (remote_async_wait): Ditto.
5818
9f9970a3
DJ
58192003-06-29 Daniel Jacobowitz <drow@mvista.com>
5820
5821 * sparc-tdep.c (sparc_y_regnum): Make external again.
5822
83a8ccca
DJ
58232003-06-29 Daniel Jacobowitz <drow@mvista.com>
5824
5825 * cli/cli-logging.c (pop_output_files): Add void to function
5826 definition.
5827
d2cf594a
AC
58282003-06-29 Andrew Cagney <cagney@redhat.com>
5829
5830 * frame.c (frame_register_unwind): Use unsigned char when dumping
5831 the buffer contents.
5832
0fac0b41
DJ
58332003-06-28 Daniel Jacobowitz <drow@mvista.com>
5834
5835 * cli/cli-logging.c: New file.
5836 * cli-out.c (struct ui_out_data): Add original_stream.
5837 (cli_redirect): New function.
5838 (cli_ui_out_impl): Add cli_redirect.
5839 (cli_out_new): Initialize original_stream.
5840 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5841 (uo_redirect, ui_out_redirect): New.
5842 * ui-out.h (struct ui_out_impl): Add redirect member.
5843 (redirect_ftype): New.
5844 (ui_out_redirect): Add prototype.
5845 * Makefile.in: Add rules for cli-logging.c.
5846 * NEWS: Mention "set logging".
5847
88a07d7c
EZ
58482003-06-27 Elena Zannoni <ezannoni@redhat.com>
5849
5850 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5851
4eb58876
AC
58522003-06-27 Andrew Cagney <cagney@redhat.com>
5853
5854 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5855 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5856 * avr-tdep.c (avr_call_dummy_address): Delete function.
5857 (avr_gdbarch_init): Do not set call_dummy_address.
5858
1549f619
EZ
58592003-06-27 Elena Zannoni <ezannoni@redhat.com>
5860
5861 * symfile.c (syms_from_objfile): Move variables to inner block.
5862 Move the checks for the non-mainline case a bit earlier to avoid
5863 doing some useless computations.
5864
3cb3398d
EZ
58652003-06-27 Elena Zannoni <ezannoni@redhat.com>
5866
5867 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5868
3799ccc6
EZ
58692003-06-26 Elena Zannoni <ezannoni@redhat.com>
5870
5871 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5872 sections.
5873
ce1f6491
MC
58742003-06-26 Michael Chastain <mec@shout.net>
5875
5876 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5877 gdb/testsuite/gdb.c++/pr-1210.exp.
5878
d958dfd0
AC
58792003-06-26 Andrew Cagney <cagney@redhat.com>
5880
5881 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5882 altivec_expression.h and altivec_registers.h.
5883
d31431ed
AC
58842003-06-26 Andrew Cagney <cagney@redhat.com>
5885
5886 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5887 info->mach when MIPS16. Patch suggested by Fred Fish.
5888
714b1282
AC
58892003-06-26 Andrew Cagney <cagney@redhat.com>
5890
5891 * utils.c (internal_vproblem): Print the problem to a reason
5892 buffer and then pass to query. Make the msg variable more local.
5893
42efa47a
AC
58942003-06-26 Andrew Cagney <cagney@redhat.com>
5895
5896 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5897 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5898 * gdbarch.h, gdbarch.c: Re-generate.
5899 * frame-base.c (default_frame_args_address): Update. Use
5900 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5901 not available.
5902 (default_frame_locals_address): Ditto for
5903 DEPRECATED_FRAME_LOCALS_ADDRESS.
5904 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5905 (vax_frame_num_args): Update.
5906 (vax_gdbarch_init): Update.
5907 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5908 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5909 * mcore-tdep.c (mcore_gdbarch_init): Update.
5910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5911 * ia64-tdep.c (ia64_gdbarch_init): Update.
5912 * symtab.h (address_class): Update comments.
5913 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5914 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5915 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5916 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5917 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5918 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5919 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5920 * alpha-mdebug-tdep.c: Update.
5921 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5922
8ffd9b1b
AJ
59232003-06-26 Andreas Jaeger <aj@suse.de>
5924
5925 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5926 of SSE registers so that varargs functions work. Rework handling
5927 of passing arguments on the stack.
5928 (x86_64_store_return_value): Return double and float values in SSE
5929 register.
5930
e8ac10a6
MC
59312003-06-24 Michael Chastain <mec@shout.net>
5932
5933 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5934 the "constructor breakpoints ignored" bug.
5935
986af8e6
DC
59362003-06-25 David Carlton <carlton@kealia.com>
5937
5938 * MAINTAINERS: Update e-mail address.
5939
d64558a5
JB
59402003-06-24 Jim Blandy <jimb@redhat.com>
5941
e538d2d7
JB
5942 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5943
02631ec0
JB
5944 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5945 function.
5946 (ppc_linux_init_abi): Register it as the
5947 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5948
e716d87a
JB
5949 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5950 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5951 method.
5952
d64558a5
JB
5953 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5954 (ppc64_standard_linkage_target): Use it.
5955
449a5da4
AC
59562003-06-23 Andrew Cagney <cagney@redhat.com>
5957
5958 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5959 for 0 "int0" and 4 "int32" sized registers.
5960 * gdbtypes.c (builtin_type_int0): Define.
5961 (build_gdbtypes): Initialize builtin_type_int0.
5962 * gdbtypes.h (builtin_type_int0): Declare.
5963
b2a02dda
SC
59642003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5965
5966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5967 as characters are unsigned.
5968
fba3138e
DJ
59692003-06-22 Daniel Jacobowitz <drow@mvista.com>
5970
5971 PR gdb/1179
5972 * dwarfread.c (struct_type): Skip static fields without crashing.
5973
f6c8180b
AC
59742003-06-22 Andrew Cagney <cagney@redhat.com>
5975
5976 GDB 6.0 branch created.
f2c06f52
AC
5977 * README: Update.
5978 * PROBLEMS: Update. Empty.
5979 * NEWS: Update.
f6c8180b 5980
ae822768
DJ
59812003-06-22 Daniel Jacobowitz <drow@mvista.com>
5982
5983 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5984 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5985
261de166
AC
59862003-06-22 Andrew Cagney <cagney@redhat.com>
5987
5988 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5989 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5990 Velikov.
5991
30e94205
DJ
59922003-06-22 Daniel Jacobowitz <drow@mvista.com>
5993
5994 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5995 compilers.
5996
9e14d721
DJ
59972003-06-21 Daniel Jacobowitz <drow@mvista.com>
5998
5999 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6000 argument of val_print.
6001 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6002 to the address argument of baseclass_offset or target_read_memory.
6003 Do add it to the argument of cp_print_value_fields.
6004
a4b8ebc8
AC
60052003-06-21 Andrew Cagney <cagney@redhat.com>
6006
6007 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6008 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6009 instead of 0..NUM_REGS.
6010 (mips_register_reggroup_p): New function.
6011 (mips_pseudo_register_write): New function.
6012 (mips_pseudo_register_read): New function.
6013 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6014 based on the register's type.
6015 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6016 cooked.
6017 (mips_get_saved_register): Simplify. Assert that REGNO is a
6018 pseudo / cooked.
6019 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6020 (mips_register_type): Replace mips_register_virtual_type. Map
6021 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6022 when available.
6023 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6024 that the register is cooked / virtual.
6025 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6026 Only get the extra info when needed.
6027 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6028 (mips32_heuristic_proc_desc): Fetch the cooked register.
6029 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6030 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6031 (mips_print_register): Use gdbarch_register_type, instead of
6032 REGISTER_VIRTUAL_TYPE.
6033 (print_gp_register_row): Use gdbarch_register_type, instead of
6034 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6035 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6036 Print the pseudo / cooked registers.
6037 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6038 Print the pseudo / cooked registers.
6039 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6040 REG_NUM is pseudo / cooked.
6041 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6042 (mips_n32n64_xfer_return_value): Ditto.
6043 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6044 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6045 (mips_register_sim_regno): New function.
6046 (mips_gdbarch_init): Set deprecated_register_byte,
6047 register_group_p, pseudo_register_write, pseudo_register_read,
6048 register_sim_regno, and num_pseudo_regs. Set register_type,
6049 instead of register_virtual_type.
6050 * Makefile.in (mips-tdep.o): Update dependencies.
6051 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6052 REGISTER_VIRTUAL_TYPE.
6053 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6054 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6055 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6056 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6057 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6058
325ed089
DJ
60592003-06-21 Daniel Jacobowitz <drow@mvista.com>
6060
6061 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6062 * cli/cli-cmds.c: Include "gdb_vfork.h".
6063 (shell_escape): Use vfork.
6064
f0e7d0e8
AC
60652003-06-21 Andrew Cagney <cagney@redhat.com>
6066
c57bb9fa
AC
6067 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6068 32 bit floating-point register saves.
6069
6e51443a
AC
6070 * frame.h (deprecated_unwind_get_saved_register): Delete.
6071 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6072 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6073 and deprecated_get_next_frame_hack instead of
6074 deprecated_unwind_get_saved_register.
6075
ed183c7c
AC
6076 * mips-tdep.c (mips_dump_tdep): Do not print
6077 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6078
f0e7d0e8
AC
6079 * frame.c (get_frame_register): New function.
6080 (frame_unwind_register_signed): New function.
6081 (get_frame_register_signed): New function.
6082 (frame_unwind_register_unsigned): New function.
6083 (get_frame_register_unsigned): New function.
6084 * frame.h: Add comments on naming schema.
6085 (get_frame_register, frame_unwind_register_signed): Declare.
6086 (get_frame_register_signed, get_frame_register_signed): Declare.
6087 (frame_unwind_register_unsigned): Declare.
6088 (get_frame_register_unsigned): Declare.
6089
2224d941
TR
60902003-06-20 Theodore A. Roth <troth@openavr.org>
6091
6092 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6093
8619218d
TR
60942003-06-20 Theodore A. Roth <troth@openavr.org>
6095
6096 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6097 (avr_read_sp): Ditto.
6098
0b1b50c0
DJ
60992003-06-20 Daniel Jacobowitz <drow@mvista.com>
6100
6101 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6102 * config/arm/nm-linux.h: Likewise.
6103 * config/arm/tm-linux.h: Likewise.
6104 * config/ia64/nm-linux.h: Likewise.
6105 * config/ia64/tm-ia64.h: Likewise.
6106 * config/s390/tm-linux.h: Likewise.
6107 * config/s390/tm-s390.h: Likewise.
6108 * s390-nat.c: Likewise.
6109 * s390-tdep.c: Likewise.
6110
6111 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6112 * config/ia64/linux.mt: Likewise.
6113 * config/m68k/linux.mh: Likewise.
6114 * config/mips/linux.mt: Likewise.
6115 * config/powerpc/linux.mh: Likewise.
6116 * config/sh/linux.mt: Likewise.
6117
c8c18e65
KW
61182003-06-19 Kris Warkentin <kewarken@qnx.com>
6119
6120 * solib.c (solib_open): Change tests for whether to search
6121 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6122 comments.
6123
dcccef2e
TR
61242003-06-19 Theodore A. Roth <troth@openavr.org>
6125
6126 * avr-tdep.c (avr_frame_address): Delete function.
6127 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6128 set_gdbarch_frame_args_address.
6129
5861a190
AC
61302003-06-19 Andrew Cagney <cagney@redhat.com>
6131
6132 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6133 (REGISTER_CONVERT_FROM_TYPE): Delete.
6134 (mips_register_convert_to_type): Delete declaration.
6135 (mips_register_convert_from_type): Delete declaration.
6136 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6137 kernel/.
6138
0274a8ce
MS
61392003-06-19 Michael Snyder <msnyder@redhat.com>
6140
6141 * linux-nat.h: New file.
6142 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6143 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6144 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6145 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6146 (linux_make_note_section): Iterate over lwps instead of threads.
6147 (linux_do_thread_registers): Use lwp instead of merged pid.
6148 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6149 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6150 Add dependency on linux_nat_h.
6151
adf5f719
TR
61522003-06-19 Theodore A. Roth <troth@openavr.org>
6153
6154 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6155
6766a268
DJ
61562003-06-19 Daniel Jacobowitz <drow@mvista.com>
6157
6158 * varobj.c (get_type, get_target_type): Use check_typedef.
6159
1171114a
DJ
61602003-06-19 Daniel Jacobowitz <drow@mvista.com>
6161
6162 * breakpoint.c (insert_catchpoint): Call internal_error.
6163
adcf68a2
TR
61642003-06-19 Theodore A. Roth <troth@openavr.org>
6165
6166 * avr-tdep.c (avr_push_dummy_code): Delete function.
6167 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6168
ea67f13b
DJ
61692003-06-19 Daniel Jacobowitz <drow@mvista.com>
6170
6171 * arch-utils.c (default_prepare_to_proceed): Remove.
6172 (generic_prepare_to_proceed): Remove.
6173 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6174 (generic_prepare_to_proceed): Remove prototype.
6175 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6176 * gdbarch.c: Regenerate.
6177 * gdbarch.h: Regenerate.
6178 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6179 * hppah-nat.c (hppa_switched_threads): Remove.
6180 * infrun.c (prepare_to_proceed): New static function, copied from
6181 generic_prepare_to_proceed. Remove select_it argument.
6182 (proceed): Call prepare_to_proceed.
6183 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6184 variables.
6185 (ptrace_wait): Don't set the removed variables.
6186 (hppa_switched_threads): Remove.
6187 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6188 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6189 (lin_lwp_prepare_to_proceed): Remove prototype.
6190 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6191 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6192
4add8633
TR
61932003-06-18 Theodore A. Roth <troth@openavr.org>
6194
6195 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6196 trad-frame.h.
6197 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6198 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6199 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6200 (AVR_PROLOGUE_*): Enumerate prologue types.
6201 (struct frame_extra_info): Remove.
6202 (struct avr_unwind_cache): Define.
6203 (avr_write_sp): Delete function.
6204 (avr_read_fp): Ditto.
6205 (avr_init_extra_frame_info): Ditto.
6206 (avr_pop_frame): Ditto.
6207 (avr_frame_saved_pc): Ditto.
6208 (avr_saved_pc_after_call): Ditto.
6209 (avr_push_return_address): Ditto.
6210 (avr_frame_chain): Ditto.
6211 (avr_store_struct_return): Ditto.
6212 (avr_push_arguments): Ditto.
6213 (avr_scan_prologue): Update comments. Changed to set up the info for
6214 cache unwinding. Now returns end of prologue PC.
6215 (avr_skip_prologue): Better handling of functions lacking a prologue
6216 by using avr_scan_prologue.
6217 (avr_scan_arg_moves): New function.
6218 (avr_saved_regs_unwinder): Ditto.
6219 (avr_frame_unwind_cache): Ditto.
6220 (avr_unwind_pc): Ditto.
6221 (avr_frame_this_id): Ditto.
6222 (avr_frame_prev_register): Ditto.
6223 (avr_frame_p): Ditto.
6224 (avr_frame_base_address ): Ditto.
6225 (avr_unwind_dummy_id): Ditto.
6226 (avr_push_dummy_code): Ditto.
6227 (push_stack_item): Ditto.
6228 (pop_stack_item): Ditto.
6229 (avr_push_dummy_call): Ditto.
6230 (struct stack_item): Define.
6231 (avr_frame_unwind): Declare structure.
6232 (avr_frame_base): Ditto.
6233 (avr_gdbarch_init): Remove calls to
6234 set_gdbarch_deprecated_init_frame_pc,
6235 set_gdbarch_deprecated_target_read_fp,
6236 set_gdbarch_deprecated_dummy_write_sp,
6237 set_gdbarch_deprecated_fp_regnum,
6238 set_gdbarch_deprecated_push_arguments,
6239 set_gdbarch_deprecated_push_return_address,
6240 set_gdbarch_deprecated_pop_frame,
6241 set_gdbarch_deprecated_store_struct_return,
6242 set_gdbarch_deprecated_frame_init_saved_regs,
6243 set_gdbarch_deprecated_init_extra_frame_info,
6244 set_gdbarch_deprecated_frame_chain,
6245 set_gdbarch_deprecated_frame_saved_pc,
6246 set_gdbarch_deprecated_saved_pc_after_call.
6247 Add calls to set_gdbarch_push_dummy_call,
6248 set_gdbarch_push_dummy_code,
6249 frame_unwind_append_predicate,
6250 frame_base_set_default,
6251 set_gdbarch_unwind_dummy_id,
6252 set_gdbarch_unwind_pc.
6253 Wrap a long line.
6254
7be04a68
MS
62552003-06-18 Corinna Vinschen <vinschen@redhat.com>
6256
6257 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6258 registers for H8/300S.
6259 (h8300_print_registers_info): Ditto.
8ffd9b1b 6260 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6261
ae087d01
DJ
62622003-06-18 Daniel Jacobowitz <drow@mvista.com>
6263
6264 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6265 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6266 (lin_lwp_wait): Likewise. Update comments.
6267 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6268 (pull_pid_from_list, linux_record_stopped_pid): New.
6269
07d8f827
SC
62702003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6271
6272 * ada-lang.c (scan_discrim_bound): Name first argument.
6273 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6274 declared by ALL_BLOCK_SYMBOLS.
6275
7cb47b14
SC
62762003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6277
6278 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6279 ("regcache.h"): Include it.
6280 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6281
6ad8ae5c
DJ
62822003-06-17 Daniel Jacobowitz <drow@mvista.com>
6283
6284 * NEWS: Mention gdbserver detach change and "disconnect" command.
6285 * infcmd.c (disconnect_command): New function.
6286 (_initialize_infcmd): Add ``disconnect'' command.
6287 * remote.c (remote_async_detach): Delete.
6288 (remote_detach): Merge remote_async_detach.
6289 (remote_disconnect): New.
6290 (init_remote_ops): Set to_disconnect.
6291 (init_remote_cisco_ops): Likewise.
6292 (init_remote_async_ops): Likewise. Use remote_detach.
6293 * target.c (cleanup_target): Default to_disconnect.
6294 (update_current_target): Inherit to_disconnect.
6295 (target_disconnect, debug_to_disconnect): New functions.
6296 (setup_target_debug): Set to_disconnect.
6297 * target.h (struct target_ops): Add to_disconnect.
6298 (target_disconnect): Add prototype.
6299
687595f9
DJ
63002003-06-17 Daniel Jacobowitz <drow@mvista.com>
6301
6302 * breakpoint.c (insert_catchpoint): New function.
6303 (insert_breakpoints): Use catch_exceptions to call
6304 insert_catchpoint. Disable catchpoints if they fail to insert.
6305
29239a8f
DJ
63062003-06-17 Daniel Jacobowitz <drow@mvista.com>
6307
6308 * symfile.c (reread_symbols): Clear sym_private.
6309
2cdf3c63
AC
63102003-06-17 Andrew Cagney <cagney@redhat.com>
6311
6312 * trad-frame.h (struct frame_info): Add opaque declaration.
6313 * remote-fileio.h (struct cmd_list_element): Add opaque
6314 declaration.
6315 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6316 comments.
6317
cf0e1e0d
DJ
63182003-06-17 Daniel Jacobowitz <drow@mvista.com>
6319
6320 * remote.c (remote_prepare_to_store): Replace call to
6321 deprecated_read_register_bytes with multiple regcache_raw_read
6322 calls.
6323
192cdb19
KW
63242003-06-17 Kris Warkentin <kewarken@qnx.com>
6325
6326 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6327 (nto_find_and_open_solib): Likewise.
6328 (nto_init_solib_absolute_prefix): Likewise.
6329 (_initialize_nto_tdep): Fix indentation.
6330
89929b45
KW
63312003-06-17 Kris Warkentin <kewarken@qnx.com>
6332
6333 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6334
46019f27
KW
63352003-06-17 Kris Warkentin <kewarken@qnx.com>
6336
6337 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6338
1a38736e
JB
63392003-06-17 Jim Blandy <jimb@redhat.com>
6340
6341 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6342
3605c34a
TR
63432003-06-16 Theodore A. Roth <troth@openavr.org>
6344
6345 * avr-tdep.c (avr_extract_return_value): New function.
6346 (avr_gdbarch_init): Set extract_return_value method.
6347
870b3035
AC
63482003-06-16 Andrew Cagney <cagney@redhat.com>
6349
6350 * frame.h (deprecated_get_next_frame_hack): Declare.
6351 * frame.c (legacy_saved_regs_prev_register): Only require
6352 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6353 there are always saved regs.
6354 (deprecated_generic_get_saved_register): Do not require
6355 DEPRECATED_FRAME_INIT_SAVED_REGS.
6356 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6357 use frame ID unwind instead.
6358 (deprecated_get_next_frame_hack): New function.
6359
63d47a7d
CV
63602003-06-16 Corinna Vinschen <vinschen@redhat.com>
6361
6362 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6363 (h8300_push_dummy_call): ...this function. Some minor optimization.
6364 (h8300_push_return_address): Remove.
6365 (h8300_gdbarch_init): Remove calls to
6366 set_gdbarch_deprecated_dummy_write_sp,
6367 set_gdbarch_deprecated_push_arguments and
6368 set_gdbarch_deprecated_push_return_address.
6369 Add call to set_gdbarch_push_dummy_call.
6370
4bb1dc5e
CV
63712003-06-16 Corinna Vinschen <vinschen@redhat.com>
6372
6373 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6374 (E_PSEUDO_EXR_REGNUM): Ditto.
6375 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6376 registers into safe registers.
4bb1dc5e
CV
6377 (h8300_skip_prologue): Check for stm instruction to push registers
6378 used for register variables onto stack.
6379 (gdb_print_insn_h8300): Remove.
6380 (h8300_examine_prologue): Add a comment.
6381 (h8300_register_name): Take pseudo registers into account.
6382 (h8300s_register_name): Ditto.
6383 (h8300sx_register_name): Ditto.
6384 (h8300_print_register): Ditto.
6385 (h8300_print_registers_info): Define "nice" printing order.
6386 (h8300_saved_pc_after_call): Take pseudo registers into account.
6387 (h8300_register_type): Ditto. Return type used for remote connection
6388 when requesting real CCR or EXR register, return actual type when
6389 requesting pseudo CCR or EXR.
6390 (h8300_pseudo_register_read): New function.
6391 (h8300_pseudo_register_write): Ditto.
6392 (h8300_dbg_reg_to_regnum): Ditto.
6393 (h8300s_dbg_reg_to_regnum): Ditto.
6394 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6395 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6396 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6397 set_gdbarch_print_insn architecture dependent.
6398 Call set_gdbarch_pseudo_register_read and
6399 set_gdbarch_pseudo_register_write.
6400 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6401
a59fe496
AC
64022003-06-16 Andrew Cagney <cagney@redhat.com>
6403
6404 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6405 * gdbarch.h, gdbarch.c: Re-generate.
6406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6407 * s390-tdep.c (s390_gdbarch_init): Update.
6408 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6409 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6410 * mips-tdep.c (mips_gdbarch_init): Update.
6411 * mcore-tdep.c (mcore_gdbarch_init): Update.
6412 * cris-tdep.c (cris_gdbarch_init): Update.
6413 * infcall.c (call_function_by_hand): Update.
6414 * ia64-tdep.c (ia64_push_arguments): Update comment.
6415 * frame.c (legacy_get_prev_frame): Do not assume
6416 SAVE_DUMMY_FRAME_TOS_P.
6417 * dummy-frame.c (find_dummy_frame): Update comment.
6418
6f4e5a41
AC
64192003-06-16 Andrew Cagney <cagney@redhat.com>
6420
6421 * regcache.c (do_cooked_read): Do not use register_valid_p.
6422
72fab697
TR
64232003-06-15 Theodore A. Roth <troth@openavr.org>
6424
6425 * avr-tdep.c (avr_register_type): Remove a blank line.
6426 (avr_scan_prologue): Correct some comments.
6427
e3d8b004
TR
64282003-06-15 Theodore A. Roth <troth@openavr.org>
6429
6430 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6431 prologue types.
8ffd9b1b 6432 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6433 option.
6434 Add code to scan -mcall-prologues for mega devices.
6435
866b76ea
TR
64362003-06-15 Theodore A. Roth <troth@openavr.org>
6437
6438 * avr-tdep.c (avr_register_byte): Delete function.
6439 (avr_register_raw_size): Delete function.
6440 (avr_register_virtual_size): Delete function.
6441 (avr_register_virtual_type): Delete function.
6442 (avr_register_type): New function.
6443 (avr_address_to_pointer): Remove unused code.
6444 (avr_read_fp): Need to read FP as two separate bytes due to change to
6445 avr_register_type() usage.
6446 (avr_gdbarch_init): Don't set deprecated_register_size.
6447 Don't set deprecated_register_bytes.
6448 Don't set deprecated_register_byte.
6449 Don't set deprecated_register_raw_size.
6450 Don't set deprecated_max_register_raw_size.
6451 Don't set deprecated_register_virtual_size.
6452 Don't set deprecated_max_register_virtual_size.
6453 Don't set deprecated_register_virtual_type.
6454 Set register_type method.
6455
3993f6b1
DJ
64562003-06-15 Daniel Jacobowitz <drow@mvista.com>
6457
6458 * Makefile.in (linux-nat.o): Add rule.
6459 * linux-nat.c: New file.
6460 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6461 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6462 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6463 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6464 * config/arm/linux.mh (NATDEPFILES): Likewise.
6465 * config/i386/linux.mh (NATDEPFILES): Likewise.
6466 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6467 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6468 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6469 * config/mips/linux.mh (NATDEPFILES): Likewise.
6470 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6471 * config/s390/s390.mh (NATDEPFILES): Likewise.
6472 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6473
786a90bb
MK
64742003-06-15 Mark Kettenis <kettenis@gnu.org>
6475
6476 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6477 replace out-of-date comment.
6478
3bd3f01e
AC
64792003-06-15 Andrew Cagney <cagney@redhat.com>
6480
6481 * rdi-share/host.h (Fail): Change to a varargs function.
6482 * remote-rdi.c (Fail): Update.
8ffd9b1b 6483
de5b9bb9
MK
64842003-06-15 Mark Kettenis <kettenis@gnu.org>
6485
6486 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6487 (i386_convert_register_p, i386_register_to_value,
6488 i386_register_from_value): Handle types longer than 8 bytes.
6489
d532c08f
MK
64902003-06-15 Mark Kettenis <kettenis@gnu.org>
6491
6492 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6493 Move floating-point code to new function in i387-tdep.c.
6494 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6495 New functions containing code moved here from i386-tdep.c.
6496 * i387-tdep.h: Add opaque declaration for `struct type'.
6497 (i387_register_to_value, i387_value_to_register): New prototypes.
6498 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6499 (x86_64_init_abi): Set convert_register_p, register_to_value and
6500 value_to_register here.
8ffd9b1b 6501
42c466d7
AC
65022003-06-14 Andrew Cagney <cagney@redhat.com>
6503
6504 * mips-tdep.c (mips_register_to_value): Make static.
6505 (mips_value_to_register): Make static.
6506 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6507 * ia64-tdep.c (ia64_register_raw_size): Make static.
6508 (ia64_register_virtual_size): Make static.
6509 (ia64_register_byte): Make static.
6510 * i387-tdep.c: Include "i387-tdep.h".
6511 (print_387_control_word): Delete function.
6512 (print_387_status_word): Delete function.
6513 (print_387_status_bits): Delete function.
6514 (print_387_control_bits): Delete function.
6515 * Makefile.in (i387-tdep.o): Update dependencies.
6516 * rdi-share/host.h (Fail): Declare.
6517 * remote-rdi.c (Fail): Update to match declaration.
6518
2a9cda49
AC
65192003-06-14 Andrew Cagney <cagney@redhat.com>
6520
6521 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6522 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6523 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6524 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6525 * README: Delete reference to remote-array.
6526 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6527 (remote-array.o): Delete target.
6528 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6529 * remote-array.c: Delete file.
6530
ff2e87ac
AC
65312003-06-14 Andrew Cagney <cagney@redhat.com>
6532 Mark Kettenis <kettenis@gnu.org>
6533
6534 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6535 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6536 parameter with "frame".
6537 * gdbarch.h, gdbarch.c: Re-generate.
6538 * frame.h (put_frame_register): Declare.
6539 * frame.c (put_frame_register): New function.
6540 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6541 (legacy_register_to_value): Rewrite, use "frame" to get the
6542 register value.
6543 (legacy_value_to_register): Rewrite, use "frame" to find the
6544 register's location before storing.
6545 * arch-utils.h (legacy_convert_register_p): Update.
6546 (legacy_register_to_value, legacy_value_to_register): Update.
6547 * findvar.c (value_from_register): Rewrite, eliminate use of
6548 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6549 "frame" to REGISTER_TO_VALUE.
6550 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6551 lval_reg_frame_relative + lval_register branch of the switch. Do
6552 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6553 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6554 I386_EDI_REGNUM): New defines.
6555 (i386_next_regnum, i386_convert_register_p,
6556 i386_register_to_value, i386_value_to_register): New functions.
6557 (i386_register_convertible, i386_register_convert_to_virtual,
6558 i386_convert_to_raw): Remove functions.
6559 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6560 value_to_register instead of register_convertible,
6561 register_convert_to_virtual and register_convert_to_raw.
6562 * mips-tdep.c (mips_convert_register_p): New function.
6563 (mips_value_to_register): Replace mips_register_convert_from_type.
6564 (mips_register_to_value): Replace mips_register_convert_to_type.
6565 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6566 register_to_value.
6567 * alpha-tdep.c (alpha_convert_register_p): Update.
6568 (alpha_value_to_register): Update, store the register.
6569 (alpha_register_to_value): Update, fetch the register.
6570
98be1e77
TR
65712003-06-14 Theodore A. Roth <troth@openavr.org>
6572
6573 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6574 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6575 Don't set deprecated_call_dummy_words.
6576 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6577 Don't set remote_translate_xfer_address.
6578 (avr_io_reg_read_command): Remove commented out debug printf.
6579 Wrap a long line.
6580
57bc6122
TR
65812003-06-14 Theodore A. Roth <troth@openavr.org>
6582
6583 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6584 causes gdb to seg fault.
6585
eb01fc62
DJ
65862003-06-14 Daniel Jacobowitz <drow@mvista.com>
6587
6588 * sparc-nat.c (fetch_inferior_registers): Correct
6589 a reference to "registers".
6590
3b3e6bee
DJ
65912003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6592
6593 * Makefile.in (exc_request_U_h): Define
6594 (exc_request_S_h): Likewise.
6595 (msg_reply_S_h): Likewise.
6596 (msg_U_h): Likewise.
6597 (notify_S_h): Likewise.
6598 (process_reply_S_h): Likewise.
6599 (gnu-nat.o): Depend on gdb_obstack_h
6600 * gnu-nat.c: Include "gdb_obstack.h".
6601
b8de8283
AC
66022003-06-13 Andrew Cagney <cagney@redhat.com>
6603
6604 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6605 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6606
f3be58bc
AC
66072003-06-13 Andrew Cagney <cagney@redhat.com>
6608
6609 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6610 when deprecated REGISTER macros can be deleted.
6611 * gdbarch.h, gdbarch.c: Re-generate.
6612
4c0122c8
JB
66132003-06-13 Jim Blandy <jimb@redhat.com>
6614
6615 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6616 Linux entry point symbols for _dl_debug_state, too.
6617
3e210248
AC
66182003-06-13 Andrew Cagney <cagney@redhat.com>
6619
6620 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6621 available, do not use the FP register, and always save the TOS.
6622 * dummy-frame.c (dummy_frame_this_id): Do not assert
6623 SAVE_DUMMY_FRAME_TOS.
6624 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6625 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6626 (i386_push_dummy_call): Add 8 to the returned SP.
6627 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6628 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6629 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6630 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6631 (x86_64_push_dummy_call): Return "sp + 16".
6632 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6633 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6634 save_dummy_frame_tos.
6635
0b65af49
JB
66362003-06-13 Jim Blandy <jimb@redhat.com>
6637
6638 * frv-tdep.c (frv_use_struct_convention): Delete static
6639 declaration for function deleted in my change of 2003-06-12.
6640
4ea2465e
TR
66412003-06-13 Theodore A. Roth <troth@openavr.org>
6642
6643 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6644 (avr_pointer_to_address): Shift code addrs left 1 bit.
6645 (avr_convert_from_func_ptr_addr): Delete function since operation is
6646 better handled by avr_address_to_pointer and avr_pointer_to_address.
6647 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6648
1581182a
MK
66492003-06-13 Mark Kettenis <kettenis@gnu.org>
6650
6651 From Kelley Cook <kelleycook@wideopenwest.com>:
6652 * configure.host: Accept i[34567]86 variants.
6653 * configure.tgt: Likewise.
6654 * nlm/configure.in: Likewise.
6655 * nlm/configure: Regenerated.
6656
7aa1783e
RE
66572003-06-13 Richard Earnshaw <rearnsha@arm.com>
6658
6659 * arm-tdep.c (solib-svr4.h): Dont' include it.
6660 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6661 * arm-linux-tdep.c: ... here. Make static.
6662 (arm_linux_init_abi): Register it.
6663 (solib-svr4.h): Include it.
6664 * Makefile.in: Update dependencies.
6665 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6666 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6667
0261a0d0
CV
66682003-06-13 Corinna Vinschen <vinschen@redhat.com>
6669
6670 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6671 indicate registers used for return values.
6672 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6673 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6674 members.
6675 (h8300_init_extra_frame_info): Ditto.
6676 (h8300_frame_locals_address): Removed.
6677 (h8300_frame_args_address): Removed.
6678 (h8300_extract_return_value): Use new regcache structure. Only care
6679 for 16 bit CPUs.
6680 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6681 (h8300_store_return_value): Use new regcache structure. Only care
6682 for 16 bit CPUs.
6683 (h8300h_store_return_value): Same function for 32 bit CPUs.
6684 (h8300_store_struct_return): Removed.
6685 (h8300_extract_struct_value_address): Use new regcache structure.
6686 (h8300h_extract_struct_value_address): Removed.
6687 (h8300_push_dummy_code): New function.
6688 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6689 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6690 set_gdbarch_store_return_value architecture dependent.
6691 Call set_gdbarch_push_dummy_code and
6692 set_gdbarch_extract_struct_value_address.
6693 Remove calls to set_gdbarch_frame_args_address,
6694 set_gdbarch_frame_locals_address,
6695 set_gdbarch_deprecated_store_struct_return,
6696 set_gdbarch_deprecated_extract_return_value,
6697 set_gdbarch_deprecated_extract_struct_value_address,
6698 set_gdbarch_deprecated_call_dummy_words and
6699 set_gdbarch_deprecated_sizeof_call_dummy_words.
6700
055c394a
CV
67012003-06-13 Corinna Vinschen <vinschen@redhat.com>
6702
6703 * h8300-tdep.c (h8300_register_byte): Remove.
6704 (h8300h_register_byte): Remove.
6705 (h8300_register_virtual_type): Remove. Substitute by...
6706 (h8300_register_type): New function.
6707 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6708 (h8300h_extract_struct_value_address): Ditto.
6709 (h8300_gdbarch_init): Drop calls to
6710 set_gdbarch_deprecated_register_byte and
6711 set_gdbarch_deprecated_register_virtual_type.
6712 Add call to set_gdbarch_register_type.
6713
9c04cab7
AC
67142003-06-13 Andrew Cagney <cagney@redhat.com>
6715
6716 * gdbarch.sh: Update comments on registers.
6717 (deprecated_register_byte): Rename register_byte.
6718 (deprecated_register_raw_size): Rename register_raw_size.
6719 (deprecated_register_virtual_size): Rename register_virtual_size.
6720 (deprecated_register_virtual_type): Rename register_virtual_type.
6721 * gdbarch.h, gdbarch.c: Re-generate.
6722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6723 * vax-tdep.c (vax_gdbarch_init): Update.
6724 * v850-tdep.c (v850_gdbarch_init): Update.
6725 * sparc-tdep.c (sparc_gdbarch_init): Update.
6726 * sh-tdep.c (sh_gdbarch_init): Update.
6727 * s390-tdep.c (s390_gdbarch_init): Update.
6728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6729 * ns32k-tdep.c: Update.
6730 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6731 * mips-tdep.c (mips_gdbarch_init): Update.
6732 * mcore-tdep.c (mcore_gdbarch_init): Update.
6733 * m68k-tdep.c (m68k_gdbarch_init): Update.
6734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6735 * ia64-tdep.c (ia64_gdbarch_init): Update.
6736 * hppa-tdep.c (hppa_gdbarch_init): Update.
6737 * h8300-tdep.c (h8300_gdbarch_init): Update.
6738 * frv-tdep.c (frv_gdbarch_init): Update.
6739 * cris-tdep.c (cris_gdbarch_init): Update.
6740 * avr-tdep.c (avr_gdbarch_init): Update.
6741 * alpha-tdep.c (alpha_gdbarch_init): Update.
6742 * arm-tdep.c (arm_gdbarch_init): Update.
6743
b060cbea
AC
67442003-06-13 Andrew Cagney <cagney@redhat.com>
6745
6746 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6747 mips_o32_use_struct_convention with always_use_struct_convention.
6748
0fc9922a
DC
67492003-06-12 David Carlton <carlton@kealia.com>
6750
6751 * cp-namespace.c (cp_set_block_scope): Comment out
6752 processing_has_namespace_info branch.
6753
1fd35568
JB
67542003-06-12 Jim Blandy <jimb@redhat.com>
6755
f470a70a
JB
6756 Recognize and skip 64-bit PowerPC Linux linkage functions.
6757 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6758 insn_pattern, insns_match_pattern, d_field, ds_field): New
6759 functions, macros, and types for working with PPC instructions.
6760 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6761 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6762 ppc64_skip_trampoline_code): New functions, variables, and macros
6763 for recognizing and skipping linkage functions.
6764 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6765 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6766
49ff75ad
JB
6767 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6768 register offsets for both the 32- and 64-bit interfaces.
6769
bd918c83
JB
6770 Actually finish the job started by my change of 2003-05-29.
6771 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6772 other #definition of this.
6773 (ppc_linux_skip_trampoline_code): Remove declaration.
6774 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6775 static.
6776 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6777 method for GDBARCH.
6778
6779 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6780 'long' on ppc64-*-linux*.
6781
f8c59253
JB
6782 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6783 isn't #defined, assume the register doesn't exist: act as if
6784 tdep->ppc_mq_regnum were -1.
6785
8fbb30b1
JB
6786 * configure.host, configure.tgt: Add entries for
6787 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6788 powerpc/linux.mt.
6789 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6790 New files.
6791
1fd35568
JB
6792 * arch-utils.c (always_use_struct_convention): New function.
6793 * arch-utils.h (always_use_struct_convention): New prototype.
6794 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6795 (alpha_gdbarch_init): Register always_use_struct_convention,
6796 instead of alpha_use_struct_convention.
6797 * cris-tdep.c (cris_use_struct_convention): Delete.
6798 (cris_gdbarch_init): Register always_use_struct_convention,
6799 instead of cris_use_struct_convention.
6800 * frv-tdep.c (frv_use_struct_convention): Delete.
6801 (frv_gdbarch_init): Register always_use_struct_convention,
6802 instead of frv_use_struct_convention.
6803 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6804 (h8300_gdbarch_init): Register always_use_struct_convention,
6805 instead of h8300_use_struct_convention.
e3305dd9 6806 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6807 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6808 instead of mips_o32_use_struct_convention.
6809
e14e6e9c
AC
68102003-06-12 Andrew Cagney <cagney@redhat.com>
6811
6812 * wince.c: Include "mips-tdep.h".
6813 * mips-tdep.h (mips_next_pc): Declare.
6814 * mcore-tdep.c: Make more local functions static.
6815 * Makefile.in (wince.o): Update dependencies.
6816
2335f48e
DC
68172003-06-12 David Carlton <carlton@kealia.com>
6818
6819 * symtab.c (lookup_symbol_aux_minsyms): Replace
6820 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6821 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6822 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6823 SYMBOL_NATURAL_NAME.
6824
f70a7d61
AS
68252003-06-12 Andreas Schwab <schwab@suse.de>
6826
6827 * Makefile.in (tuiDisassem.o): Update dependencies.
6828
b6429628
DC
68292003-06-12 David Carlton <carlton@bactrian.org>
6830
6831 * symtab.h: Delete declaration of make_symbol_overload_list.
6832 Add declaration of lookup_partial_symbol.
6833 * symtab.c (remove_params): Move to cp-support.c.
6834 (overload_list_add_symbol, make_symbol_overload_list)
6835 (sym_return_val_size, sym_return_val_index): Ditto.
6836 (lookup_partial_symbol): Make extern.
6837 * cp-support.h: Add declaration of make_symbol_overload_list.
6838 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6839 symtab.h, and block.h.
6840 (remove_params): Move here from symtab.c.
6841 (overload_list_add_symbol, make_symbol_overload_list)
6842 (sym_return_val_size, sym_return_val_index): Ditto.
6843 * valops.c: Include cp-support.h.
6844 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6845 frame_h, and block_h.
6846 (valops.o): Depend on cp_support_h.
6847
084edea5
CV
68482003-06-12 Corinna Vinschen <vinschen@redhat.com>
6849
6850 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6851 substitute by NUM_REGS throughout.
6852 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6853 (h8300s_register_name): New function for H8S registers.
6854 (h8300sx_register_name): Ditto for H8SX registers.
6855 (h8300_print_register): Revise register printing, avoid depending
6856 on 32 bit long.
0261a0d0 6857 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6858 (h8300h_register_byte): New function for any other architecture.
6859 (h8300_register_raw_size): Remove.
6860 (h8300_register_virtual_type): Revise to return actually useful
6861 type.
6862 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6863 (h8300h_extract_struct_value_address): New function for any other
6864 architecture.
6865 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6866 set_gdbarch_register_name, set_gdbarch_register_byte,
6867 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6868 Remove calls to set_gdbarch_deprecated_register_size,
6869 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6870 set_gdbarch_deprecated_max_register_raw_size,
6871 set_gdbarch_register_virtual_size and
6872 set_gdbarch_deprecated_max_register_virtual_size entirely.
6873 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6874 set_gdbarch_long_double_bit.
6875
06194148
JJ
68762003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6877
8ffd9b1b
AJ
6878 * doublest.c (convert_doublest_to_floatformat): When dealing
6879 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6880 processing a full 32 bits of mantissa.
6881
de4f826b
DC
68822003-06-11 David Carlton <carlton@bactrian.org>
6883
6884 * dictionary.h: New.
6885 * dictionary.c: New.
6886 * block.h: Add opaque declaration for struct dictionary.
6887 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6888 'sym' members.
6889 (BLOCK_DICT): New macro.
6890 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6891 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6892 BLOCK_SHOULD_SORT.
6893 (ALL_BLOCK_SYMBOLS): Update definition.
6894 * Makefile.in (SFILES): Add dictionary.c.
6895 (dictionary_h): New.
6896 (COMMON_OBS): Add dictionary.o.
6897 (dictionary.o): New.
6898 (ada-lang.o): Depend on dictionary_h.
6899 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6900 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6901 (mi-cmd-stack.o): Ditto.
6902 (gdbtk-cmds.o): Update dependencies.
6903 (gdbtk-stack.o): Ditto.
6904 * ada-lang.c: Include dictionary.h.
6905 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6906 (fill_in_ada_prototype, debug_print_block): Ditto.
6907 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6908 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6909 'is_sorted'.
6910 * mdebugread.c: Include dictionary.h.
6911 (struct parse_stack): Delete 'maxsyms' member.
6912 (parse_symbol): Update calls to new_block. Delete calls to
6913 shrink_block. Use dictionary methods.
6914 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6915 Update calls to new_symtab. Don't maintain maxsyms data.
6916 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6917 (add_symbol): Just call dict_add_symbol.
6918 (new_symtab): Delete 'maxsyms' argument.
6919 (new_symtab): Update calls to new_block.
6920 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6921 (shrink_block): Delete function.
6922 (fixup_sigtramp): Update call to new_block. Add symbol via
6923 dict_add_symbol.
6924 * jv-lang.c: Include dictionary.h.
6925 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6926 appropriately. Set class_symtab->free_func. Make sure the
6927 blockvector is big enough to hold two blocks.
6928 (add_class_symtab_symbol): Use dictionary methods.
6929 (free_class_block): New function.
6930 (type_from_class): Replace explicit iteration by
6931 ALL_BLOCK_SYMBOLS.
6932 * symtab.h (struct symtab): Replace 'free_ptr' method by
6933 'free_func'.
6934 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6935 sort_symtab_syms.
6936 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6937 sort_symtab_syms.
6938 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6939 Include dictionary.h.
6940 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6941 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6942 sort_symtab_syms.
6943 * objfiles.c: Include dictionary.h.
6944 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6945 * buildsym.c: Include dictionary.h.
6946 (finish_block): Use dictionary methods.
6947 (end_symtab): Set free_func to NULL, not free_ptr.
6948 * tracepoint.c: Include dictionary.h.
6949 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6950 (scope_info): Ditto.
6951 * stack.c: Include dictionary.h.
6952 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6953 (print_block_frame_labels, print_frame_arg_vars)
6954 (print_frame_args): Ditto.
6955 * symmisc.c (free_symtab_block): Use dictionary methods.
6956 (dump_symtab): Ditto.
6957 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6958 Include dictionary.h.
6959 * symfile.h: Delete declarations of sort_block_syms,
6960 sort_symtab_syms.
6961 * symfile.c (sort_block_syms): Delete.
6962 (sort_symtab_syms): Delete.
6963 * symtab.c: Include dictionary.h.
6964 (lookup_block_symbol): Use dictionary iterators.
6965 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6966 (search_symbols, make_symbol_completion_list): Ditto.
6967 (make_symbol_overload_list): Ditto.
6968 * valops.c (value_of_local): Use dict_empty.
6969 Include dictionary.h.
6970
a31f978c
JB
69712003-06-11 J. Brobecker <brobecker@gnat.com>
6972
6973 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6974
526e70c0
DC
69752003-06-11 David Carlton <carlton@bactrian.org>
6976
6977 * block.h (BLOCK_SHOULD_SORT): Delete.
6978 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6979 blocks.
6980 * ada-lang.c (ada_add_block_symbols): Ditto.
6981 * symfile.c (sort_block_syms): Delete.
6982 (sort_symtab_syms): Ditto.
6983 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6984 declarations.
6985 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6986 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6987 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6988 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6989 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6990 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6991 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6992
33c08150
JJ
69932003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6994
8ffd9b1b 6995 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6996 bits to 128.
6997
781a750d
AC
69982003-06-11 Andrew Cagney <cagney@redhat.com>
6999
7000 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7001 REGISTER_CONVERTIBLE.
7002 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7003 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7004 * gdbarch.h, gdbarch.c: Re-generate.
7005 * arch-utils.h (deprecated_register_convertible_not): Rename
7006 generic_register_convertible_not.
7007 * arch-utils.c (deprecated_register_convertible_not): Rename
7008 generic_register_convertible.
7009 (legacy_convert_register_p, legacy_register_to_value): Update.
7010 * sh-tdep.c (sh64_push_arguments): Update.
7011 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7012 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7013 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7014 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7015 * arch-utils.c (legacy_value_to_register): Update.
7016 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7017 (rs6000_register_convert_to_raw): Make parameter "from" const.
7018 * mips-tdep.c (mips_gdbarch_init): Update.
7019 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7020 * infcmd.c (default_print_registers_info): Update.
7021 * ia64-tdep.c (ia64_gdbarch_init): Update.
7022 (ia64_register_convert_to_raw): Make parameter "from" const.
7023 * i386-tdep.c (i386_gdbarch_init): Update.
7024 (i386_register_convert_to_raw): Update.
7025
cd90e54f
AC
70262003-06-11 Andrew Cagney <cagney@redhat.com>
7027
7028 * remote-fileio.c: Include "remote-fileio.h".
7029 * Makefile.in (remote-fileio.o): Update dependencies.
7030 (remote_fileio_h): Fix typo.
7031
a78f21af
AC
70322003-06-11 Andrew Cagney <cagney@redhat.com>
7033
7034 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7035 (xstormy16_save_dummy_frame_tos): Make static.
7036 (_initialize_xstormy16_tdep): Add declaration.
7037 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7038 * v850-tdep.c: Make local functions static.
7039 (_initialize_v850_tdep): Add declaration.
7040 * sparc-tdep.c: Make local functions static.
7041 (_initialize_sparc_tdep): Add declaration.
7042 * sh-tdep.c: Make local functions static.
7043 (_initialize_sh_tdep): Add declaration.
7044 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7045 * s390-tdep.c: Make local functions static.
7046 (_initialize_s390_tdep): Add declaration.
7047 * dbxread.c (find_stab_function_addr): Make static.
7048 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7049 * ocd.c (_initialize_remote_ocd): Add declaration.
7050 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7051 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7052 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7053 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7054 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7055 * remote-array.c (_initialize_array): Add declaration.
7056 (_initialize_remote_monitors): Add declaration.
7057 * remote-mips.c: Make local functions static.
7058 (_initialize_remote_mips): Add declaration.
7059 * mcore-tdep.c: Make all local functions static.
7060 (_initialize_mcore_tdep): Add declaration.
7061 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7062 * abug-rom.c (_initialize_abug_rom): Add declaration.
7063 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7064 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7065 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7066 * remote-est.c (_initialize_est): Add declaration.
7067 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7068 (m68hc11_call_dummy_address): Make static.
7069 * ia64-tdep.c: Make local functions static.
7070 (_initialize_ia64_tdep): Add declaration.
7071 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7072 * monitor.c (monitor_wait_filter): Make static.
7073 (_initialize_remote_monitors): Add declaration.
7074 * remote-hms.c (_initialize_remote_hms): Add declaration.
7075 * remote-e7000.c (fetch_regs_from_dump): Make static.
7076 (expect_n): Make static.
7077 (_initialize_remote_e7000): Add declaration.
7078 * ser-e7kpc.c: Always include "defs.h".
7079 (_initialize_ser_e7000pc): Add declaration.
7080 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7081 * cris-tdep.c: Make all but one function static.
7082 (_initialize_cris_tdep): Add declaration.
7083 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7084 * solib.c (update_solib_list): Make static.
7085 (_initialize_solib): Add declaration.
7086 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7087 (_initialize_avr_tdep): Add declaration.
7088 * remote-rdi.c (voiddummy): Make static.
7089 (_initialize_remote_rdi): Add declaration.
7090 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7091 * remote-rdp.c (send_rdp): Make static.
7092 (_initialize_remote_rdp): Add declaration.
7093 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7094
cbcdb1f5
CV
70952003-06-11 Corinna Vinschen <vinschen@redhat.com>
7096
7097 * remote-fileio.c: Make ari happy.
7098
a191ea8d
JB
70992003-06-10 J. Brobecker <brobecker@gnat.com>
7100
7101 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7102 fetching the trailing bytes of the buffer we are about to write.
7103
0ef75e11
AC
71042003-06-10 Andrew Cagney <cagney@redhat.com>
7105
7106 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7107 * Makefile.in (remote-fileio.o): Update dependencies.
7108 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7109 include <setjmp.h>, or <sys/types.h> conditional on USG.
7110 (remote_fio_jmp_buf): Delete global variable.
7111
449092f6 71122003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7113 Martin M. Hunt <hunt@redhat.com>
449092f6 7114
559fa028
AC
7115 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7116 (SFILES): Add remote-fileio.c.
7117 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7118 dependencies for building remote.o.
449092f6
CV
7119 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7120 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7121 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7122 static storage class.
7123 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7124 'F' packet.
7125 (_initialize_remote): Call initialize_remote_fileio().
7126 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7127 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7128 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7129 (captured_main): Initialize new ui_files.
7130 * ui-file.c: Add read and fgets input functions.
7131 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7132 (null_file_read): New function.
7133 (ui_file_read): New function.
7134 (set_ui_file_read): New function.
7135 (stdio_file_read): New function.
7136 * ui-file.h: New type ui_file_read_ftype.
7137 (set_ui_file_read): Declare.
7138 (ui_file_read): Declare.
7139
248de703
AC
71402003-06-09 Andrew Cagney <cagney@redhat.com>
7141
7142 * frame.h (deprecated_unwind_get_saved_register): Rename
7143 generic_unwind_get_saved_register, update comments.
7144 * mips-tdep.c (mips_get_saved_register): Update.
7145 * frame.c (deprecated_unwind_get_saved_register): Update.
7146
0ed8aa57
AC
71472003-06-09 Andrew Cagney <cagney@redhat.com>
7148
7149 * vax-tdep.c (vax_frame_locals_address): Delete function.
7150 (vax_gdbarch_init): Do not set frame_locals_address.
7151 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7152 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7153 * s390-tdep.c (s390_frame_args_address): Delete function.
7154 (s390_gdbarch_init): Do not set frame_args_address or
7155 frame_locals_address.
7156 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7157 (ns32k_gdbarch_init): Do not set frame_locals_address.
7158 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7159 (hppa_frame_locals_address): Delete function.
7160 (hppa_gdbarch_init): Do not set frame_args_address, or
7161 frame_locals_address.
7162 * arm-tdep.c (arm_frame_args_address): Delete.
7163 (arm_frame_locals_address): Delete.
7164 (arm_gdbarch_init): Do not set frame_args_address, or
7165 frame_locals_address.
7166
983a287a
AC
71672003-06-09 Andrew Cagney <cagney@redhat.com>
7168
7169 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7170 * gdbarch.h, gdbarch.c: Re-generate.
7171 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7172 * arch-utils.c (frame_num_args_unknown): Delete function.
7173 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7174 (frame_info): Use FRAME_NUM_ARGS_P.
7175 * arm-tdep.c (arm_frame_num_args): Delete function.
7176 (arm_gdbarch_init): Do not set frame_num_args.
7177 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7178 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7179 (hppa_gdbarch_init): Do not set frame_num_args.
7180 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7181 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7182 frame_num_args to default frame_num_args_unknown.
7183 * v850-tdep.c (v850_gdbarch_init): Ditto.
7184 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7185 * sh-tdep.c (sh_gdbarch_init): Ditto.
7186 * s390-tdep.c (s390_gdbarch_init): Ditto.
7187 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7188 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7189 * mips-tdep.c (mips_gdbarch_init): Ditto.
7190 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7191 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7193 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7194 * i386-tdep.c (i386_gdbarch_init): Ditto.
7195 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7196 * frv-tdep.c (frv_gdbarch_init): Ditto.
7197 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7198 * cris-tdep.c (cris_gdbarch_init): Ditto.
7199 * avr-tdep.c (avr_gdbarch_init): Ditto.
7200 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7201
8d3b0994
AC
72022003-06-09 Andrew Cagney <cagney@redhat.com>
7203
7204 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7205 (print_frame_args): Moved to "stack.c".
7206 * stack.c: Include "gdb_assert.h".
7207 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7208 (print_frame_args): Moved from "printcmd.c".
7209 * frame.h (print_frame_args): Delete declaration.
7210 * Makefile.in (stack.o): Update dependencies.
7211
25e3a86b
AC
72122003-06-08 Andrew Cagney <cagney@redhat.com>
7213
7214 * frame.c (get_prev_frame): Remove reference to
7215 frame_args_address_correct in comments.
7216 * frame-base.c (default_frame_args_address): Delete code
7217 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7218 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7219 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7220 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7221 (vax_frame_args_address_correct): Delete declaration.
7222
a9e5fdc2
AC
72232003-06-08 Andrew Cagney <cagney@redhat.com>
7224
7225 * gdbarch.sh (UNWIND_SP): Add.
7226 * gdbarch.h, gdbarch.c: Re-generate.
7227 * frame.c (frame_sp_unwind): New function.
7228 (get_frame_sp): New function.
7229 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7230 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7231 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7232 value.
7233 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7234 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7235
8983bd83
AC
72362003-06-08 Andrew Cagney <cagney@redhat.com>
7237
7fec2c59
AC
7238 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7239 REMOTE_BREAKPOINT.
7240 * remote.c: Update.
7241 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7242 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7243 * config/m68k/tm-sun3.h: Update.
7244 * config/m68k/tm-m68klynx.h: Update.
7245 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7246
8983bd83
AC
7247 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7248 trad_frame". Update comments.
7249 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7250 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7251 (trad_frame_register_value, trad_frame_prev_register): Update.
7252
b9362cc7
AC
72532003-06-08 Andrew Cagney <cagney@redhat.com>
7254
7255 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7256 from GCC's acinclude.m4.
7257 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7258 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7259 * main.c (error_init): Delete declaration.
7260 * defs.h (error_init): Declare.
7261 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7262 (rs6000_convert_from_func_ptr_addr): Make static.
7263 (_initialize_rs6000_tdep): Add declaration.
7264 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7265 (show_commands, set_verbose, show_history): Delete declaration.
7266 * top.h (set_verbose): Add declaration.
7267 (show_history, set_history, show_commands): Add declaration.
7268 (do_restore_instream_cleanup): Add declaration.
7269 * objc-lang.c (specialcmp): Make static.
7270 (print_object_command): Make static.
7271 (find_objc_msgsend): Make static.
7272 (find_objc_msgcall_submethod_helper): Make static.
7273 (find_objc_msgcall_submethod): Make static.
7274 (_initialize_objc_language): Add declaration.
7275 (find_implementation_from_class): Make static.
7276 (find_implementation): Make static.
7277 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7278 * objc-lang.h (lookup_struct_typedef): Add declaration.
7279 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7280 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7281 (do_restore_user_call_depth): Make static.
7282 (do_restore_instream_cleanup): Delete declaration.
7283 (dont_repeat): Delete declaration.
7284 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7285 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7286 * reggroups.c (_initialize_reggroup): Add declaration.
7287 * cp-support.c (_initialize_cp_support): Add declaration.
7288 * cp-abi.c (_initialize_cp_abi): Add declaration.
7289 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7290 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7291 (_initialize_gnu_v3_abi): Add declaration.
7292 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7293 (_initialize_gnu_v2_abi): Add declaration.
7294 * frame-base.c (_initialize_frame_base): Add declaration.
7295 * doublest.c (floatformat_from_length): Make static.
7296 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7297 * frame.c (create_sentinel_frame): Make static.
7298 (_initialize_frame): Add declaration.
7299 * top.c (do_catch_errors): Make static.
7300 (gdb_rl_operate_and_get_next_completion): Make static.
7301 * typeprint.c: Include "typeprint.h".
7302 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7303 (sentinel_frame_this_id): Make static.
7304 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7305 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7306 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7307 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7308 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7309 * maint.c (maintenance_print_architecture): Make static.
7310 * signals/signals.c (_initialize_signals): Add declaration.
7311 * std-regs.c (_initialize_frame_reg): Add declaration.
7312 * jv-exp.y (push_variable): ISO C definition.
7313 (push_qualified_expression_name): Ditto.
7314 * memattr.c (_initialize_mem): Add declaration.
7315 * remote.c (remote_check_watch_resources): Make static.
7316 (remote_stopped_by_watchpoint): Make static.
7317 (remote_stopped_data_address): Make static.
7318 * d10v-tdep.c (nr_dmap_regs): Make static.
7319 (a0_regnum): Make static.
7320 (d10v_frame_unwind_cache): Make static.
7321 (d10v_frame_p): Make static.
7322 * osabi.c (show_osabi): Make static.
7323 (_initialize_gdb_osabi): Add extern declaration.
7324 * gdbtypes.c (make_qualified_type): Make static.
7325 (safe_parse_type): Make static.
7326 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7327 * macrotab.c (macro_bcache_free): Make static.
7328 * interps.c (interp_set_quiet): Make static.
7329 (interpreter_exec_cmd): Make static.
7330 * stack.h (select_frame_command): New file.
7331 * stack.c: Include "stack.h".
7332 (select_frame_command_wrapper): Delete function.
7333 (select_frame_command): Make global.
7334 * infcall.c: Include "infcall.h".
7335 * linespec.c: Include "linespec.h".
7336 * symfile.c (sections_overlap): Make static.
7337 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7338 * charset.c (_initialize_charset): Add missing prototype.
7339 * regcache.c (init_legacy_regcache_descr): Make static.
7340 (do_regcache_xfree): Make static.
7341 (regcache_xfer_part): Make static.
7342 (_initialize_regcache): Add missing prototype.
7343 * breakpoint.c (parse_breakpoint_sals): Make static.
7344 (breakpoint_sals_to_pc): Make static.
7345 * interps.h (clear_interpreter_hooks): ISO C declaration.
7346 * Makefile.in (stack_h): Define.
7347 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7348 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7349
a0f267c7
AC
73502003-06-08 Andrew Cagney <cagney@redhat.com>
7351
7352 * Makefile.in (d10v-tdep.o): Update dependencies.
7353 (SFILES): Add trad-frame.c.
7354 (trad_frame_h): Define.
7355 (COMMON_OBS): Add trad-frame.o.
7356 (trad-frame.o): Specify dependencies.
7357 * d10v-tdep.c: Include "trad-frame.h".
7358 (saved_regs_unwinder): Delete function.
7359 (d10v_frame_prev_register): Use trad_frame_prev_register.
7360 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7361 trad_frame", delete "regs" and "prev_sp".
7362 (prologue_find_regs): Use trad-frame.
7363 * trad-frame.h, trad-frame.c: New files.
7364
4538b4f4
MK
73652003-06-08 Mark Kettenis <kettenis@gnu.org>
7366
7367 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7368
a0273b2f
AF
73692003-06-07 Adam Fedor <fedor@gnu.org>
7370
7371 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7372 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7373 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7374 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7375 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7376 Use it.
7377
3a6c3343
AC
73782003-06-07 Andrew Cagney <cagney@redhat.com>
7379
7380 * symfile.h: Re-indent, clean up comments.
7381
b46e02f6
AC
73822003-06-07 Andrew Cagney <cagney@redhat.com>
7383
7384 * inferior.h (deprecated_write_sp): Replace
7385 generic_target_write_sp.
7386 * regcache.c (deprecated_write_sp): Replace
7387 generic_target_write_sp.
7388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7389 * vax-tdep.c (vax_gdbarch_init): Update.
7390 * v850-tdep.c (v850_gdbarch_init): Update.
7391 * sparc-tdep.c (sparc_gdbarch_init): Update.
7392 * sh-tdep.c (sh_gdbarch_init): Update.
7393 * s390-tdep.c (s390_gdbarch_init): Update.
7394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7395 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7396 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7397 * mcore-tdep.c (mcore_gdbarch_init): Update.
7398 * m68k-tdep.c (m68k_gdbarch_init): Update.
7399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7400 * ia64-tdep.c (ia64_gdbarch_init): Update.
7401 * h8300-tdep.c (h8300_gdbarch_init): Update.
7402 * frv-tdep.c (frv_gdbarch_init): Update.
7403 * cris-tdep.c (cris_gdbarch_init): Update.
7404 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7405
a42e117c
AC
74062003-06-07 Andrew Cagney <cagney@redhat.com>
7407
7408 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7409 Assert that PC_REGNUM is valid.
7410 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7411
bd1ce8ba
AC
74122003-06-07 Andrew Cagney <cagney@redhat.com>
7413
7414 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7415 * gdbarch.h, gdbarch.c: Regenerate.
7416 * mn10300-tdep.c: Include "gdb_assert.h".
7417 (mn10300_read_fp): New function.
7418 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7419 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7420 * ia64-tdep.c: Include "gdb_assert.h".
7421 (ia64_read_fp): New function.
7422 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7423 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7424 * regcache.c (generic_target_read_sp): Delete function.
7425 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7426 * inferior.h (generic_target_read_sp): Delete declaration.
7427 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7428 generic_target_read_sp.
7429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7430 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7431 * sh-tdep.c (sh_gdbarch_init): Ditto.
7432 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7433 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7434
ec5cbaec
AC
74352003-06-07 Andrew Cagney <cagney@redhat.com>
7436
7437 * gdbarch.sh: Comment each field of startup_gdbarch.
7438 * gdbarch.h, gdbarch.c: Re-generate.
7439
cde9ea48
AC
74402003-06-07 Andrew Cagney <cagney@redhat.com>
7441
7442 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7443 * gdbarch.h, gdbarch.c: Re-generate.
7444 * regcache.c: Update comments on read_pc et.al.
7445 (generic_target_read_pc): Delete function.
7446 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7447 * inferior.h (generic_target_read_pc): Delete declaration.
7448 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7449 generic_target_read_pc.
7450 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7451 * sh-tdep.c (sh_gdbarch_init): Ditto.
7452 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7454
9a90a780
AC
74552003-06-07 Andrew Cagney <cagney@redhat.com>
7456
7457 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7458 "index" with "special_local_sect". Use strcmp instead of STREQ.
7459 Append period to coments.
7460
a39a16c4
MM
74612003-06-06 Mark Mitchell <mark@codesourcery.com>
7462
7463 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7464 (elfstab_offset_sections): Likewise.
7465 * gdb-stabs.h (stab_section_info): Likewise.
7466 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7467 * objfiles.c (objfile_relocate): Likewise.
7468 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7469 * remote.c (get_offsets): Likewise.
7470 (remote_cisco_objfile_relocate): Likewise.
7471 * somread.c (som_symfile_offsets): Likewise.
7472 * symfile.c (alloc_section_addr_info): New function.
7473 (build_section_addr_info_from_section_tab): Use it.
7474 (free_section_addr_info): Adjust.
7475 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7476 (syms_from_objfile): Allocate local_addr dynamically.
7477 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7478 dynamically.
7479 (add_symbol_file_command): Allocate sect_opts dynamically.
7480 (reread_symbols): Avoid use of SECT_OFF_MAX.
7481 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7482 (alloc_section_addr_info): Declare it.
7483 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7484 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7485 dynamically.
7486 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7487
20c6c2f8
AC
74882003-06-06 Andrew Cagney <cagney@redhat.com>
7489
7490 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7491 (d10v_frame_unwind_cache): Do not set "return_pc".
7492
884a26c8
MS
74932003-06-06 Michael Snyder <msnyder@redhat.com>
7494
7495 * h8300-tdep.c: Make tidy (long lines).
7496
088ce440
ML
74972003-06-06 Michal Ludvig <mludvig@suse.cz>
7498
8ffd9b1b 7499 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7500 to regcache_collect().
7501
7d773d96
JB
75022003-06-05 J. Brobecker <brobecker@gnat.com>
7503
7504 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7505 pc_in_sigtramp multiarch method.
7506 (hppa_hpux_som_init_abi): Use it.
7507 (hppa_hpux_elf_init_abi): Likewise.
7508 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7509 macro has been multiarched.
7510 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7511 macro here, as hppa64 isn't multiarched yet.
7512
1df6926e
AC
75132003-06-05 Andrew Cagney <cagney@redhat.com>
7514
7515 * Makefile.in (value_h): Add $(frame_h).
7516 * value.h: Include "frame.h".
7517 (struct value): Replace "frame_addr" with "frame_id".
7518 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7519 * values.c (allocate_value): Use VALUE_FRAME_ID.
7520 (value_copy): Use VALUE_FRAME_ID.
7521 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7522 * valops.c (value_assign): Update. Use frame_find_by_id.
7523
6b53acc6
ML
75242003-06-05 Michal Ludvig <mludvig@suse.cz>
7525
7526 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7527 in each pass.
7528
4d9850d3
JJ
75292003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7530
7531 * thread-db.c (check_event): For create/death event breakpoints,
7532 loop through all messages to ensure that we read the message
7533 corresponding to the breakpoint we are at.
7534
8efca6ba
MS
75352003-06-04 Michael Snyder <msnyder@redhat.com>
7536
7537 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7538
0912c7f2
MK
75392003-06-04 Mark Kettenis <kettenis@gnu.org>
7540
7541 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7542 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7543 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7544 when handling .eh_frame sections.
7545
4e370325
JB
75462003-06-04 J. Brobecker <brobecker@gnat.com>
7547
7548 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7549 prepare_to_proceed procedure instead of the hppa-specific one.
7550 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7551
b757528f 75522003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7553
b757528f
JJ
7554 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7555 * config.in: Regenerated.
7556 * configure.in: Add test for syscall function and check for
7557 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7558 * configure: Regenerated.
7559 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7560 <sys/syscall.h>.
7561 (kill_lwp): New function that uses tkill syscall or
7562 uses kill, depending on whether threading model is nptl or not.
7563 All callers of kill() changed to use kill_lwp().
7564 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7565 see if all threads have already exited in the nptl model.
7566 (stop_and_resume_callback): New callback function used by the
7567 lin_lwp_wait thread exit handling code.
7568 (stop_wait_callback): Check for threads already having exited and
7569 delete such threads fromt the lwp list when discovered.
7570 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7571
b757528f
JJ
7572 Roland McGrath <roland@redhat.com>
7573 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7574 nptl libthread_db.
7575
087779b1
RH
75762003-06-03 Richard Henderson <rth@redhat.com>
7577
b21fd293
RH
7578 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7579 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7580 (alpha_sigtramp_frame_prev_register): Likewise.
7581 (alpha_heuristic_frame_prev_register): Likewise.
7582 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7583
8ffd9b1b 7584 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7585 alpha-specific register id names.
7586 (alpha_mdebug_frame_unwind_cache): Likewise.
7587 (alpha_mdebug_frame_prev_register): Likewise.
7588
baa490c4
RH
75892003-06-03 Richard Henderson <rth@redhat.com>
7590
7591 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7592 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7593 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7594 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7595 unwind routines.
7596 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7597 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7598 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7599
7600 * alpha-linux-tdep.c: Remove unnecessary includes.
7601 * Makefile.in (alpha-linux-tdep.o): Update.
7602
76032003-06-03 Richard Henderson <rth@redhat.com>
7604
7605 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7606 (alphabsd_fill_fpreg): Likewise.
7607
f534e522
JB
76082003-06-03 J. Brobecker <brobecker@gnat.com>
7609
7610 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7611 references to struct frame_info fields by calls to the equivalent
7612 accessors. Necessary now that frame_info is opaque.
7613
4035536b
JB
76142003-06-03 J. Brobecker <brobecker@gnat.com>
7615
7616 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7617 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7618 structure, field no longer exists.
7619
0bd79c5c
JB
76202003-06-03 J. Brobecker <brobecker@gnat.com>
7621
7622 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7623 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7624
37bb6d9f
JB
76252003-06-03 J. Brobecker <brobecker@gnat.com>
7626
7627 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7628 references to struct frame_info fields by calls to the equivalent
7629 accessors. Necessary now that frame_info is opaque.
7630
852ee05c
JB
76312003-06-03 J. Brobecker <brobecker@gnat.com>
7632
7633 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7634 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7635 structure, field no longer exists.
7636
7d58c67d
TR
76372003-06-03 Theodore A. Roth <troth@openavr.org>
7638
8ffd9b1b 7639 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7640 accumulation of the size of all registers instead of blindly using
7641 DEPRECATED_REGISTER_BYTES.
7642
0a48e7e8
MS
76432003-06-03 Michael Snyder <msnyder@redhat.com>
7644
7645 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7646 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7647 for h8300sx.
7648
9798ab0d
JB
76492003-06-03 J. Brobecker <brobecker@gnat.com>
7650
7651 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7652 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7653
00b037e2
AC
76542003-06-03 Andrew Cagney <cagney@redhat.com>
7655
7656 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7657 (sparc_convert_to_raw): Delete function.
7658 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7659 register_convert_to_virtual.
7660
043b2f77
JJ
76612003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7662
7663 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7664 layer if not dealing with a statically-linked threaded program.
7665
f43caff8
KW
76662003-06-03 Kris Warkentin <kewarken@qnx.com>
7667
7668 * solib.c (solib_open): Update comment to reflect actual search order.
7669
ae1e7417
AC
76702003-06-03 Andrew Cagney <cagney@redhat.com>
7671
7672 * frame.c (get_frame_memory_signed): New function.
7673 (get_frame_memory, get_frame_memory_unsigned): New function.
7674 (get_frame_arch): New function.
7675 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7676 (get_frame_memory, get_frame_unsigned_memory): Declare.
7677 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7678 get_frame_memory_unsigned and get_frame_arch.
7679 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7680
cb123844
RG
76812003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7682
7683 * MAINTAINERS (write after approval): Add myself.
7684
1bb792e9
JB
76852003-06-03 Jim Blandy <jimb@redhat.com>
7686
7687 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7688 elements of gregset_t are 64 bits each, but access registers
7689 are still 32 bits, so they're packed two per gregset_t
7690 element. Unpack/pack them properly.
7691
aee8d8ba
DC
76922003-06-02 David Carlton <carlton@bactrian.org>
7693
7694 * linespec.c (find_methods): Break out code into
7695 add_matching_methods and add_constructors.
7696 (add_matching_methods): New.
7697 (add_constructors): Ditto.
7698
bf7488d2
AC
76992003-06-02 Andrew Cagney <cagney@redhat.com>
7700
bf7488d2
AC
7701 * sparc-tdep.c (sparc_print_registers): Delete call to
7702 REGISTER_CONVERTIBLE.
7703 (sparc_gdbarch_init): Do not set register_convertible.
7704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7705 * frv-tdep.c (frv_gdbarch_init): Ditto.
7706 * cris-tdep.c (cris_gdbarch_init): Ditto.
7707
adedef68
EZ
77082003-06-02 Elena Zannoni <ezannoni@redhat.com>
7709
8ffd9b1b 7710 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7711 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7712 (syms_from_objfile): Ditto.
7713
650fcc91
AS
77142003-06-03 Andreas Schwab <schwab@suse.de>
7715
7716 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7717 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7718
df4a182b
RH
77192003-06-02 Richard Henderson <rth@redhat.com>
7720
7721 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7722 a member of all_reggroup.
7723
c483c494
RH
77242003-06-02 Richard Henderson <rth@redhat.com>
7725
7726 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7727 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7728 (alpha_lds, alpha_sts): New.
7729 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7730 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7731 restructure and fail for type sizes other than 4 or 8.
7732 (alpha_value_to_register): Similarly.
7733 (alpha_extract_return_value): Use alpha_sts.
7734 (alpha_store_return_value): Use alpha_lds.
7735 (alpha_gdbarch_init): Update hooks.
7736
b38b6be2
RH
77372003-06-02 Richard Henderson <rth@redhat.com>
7738
7739 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7740 regnum identifiers.
7741 (alpha_sigtramp_register_address): Likewise.
7742
98a8e1e5
RH
77432003-06-02 Richard Henderson <rth@redhat.com>
7744
7745 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7746 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7747 * alpha-tdep.h: Declare them.
7748
7749 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7750 Remove zerobuf. Don't error on UNIQUE.
7751 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7752 (ALPHA_REGSET_UNIQUE): Provide default.
7753 (supply_gregset): Use alpha_supply_int_regs.
7754 (fill_gregset): Use alpha_fill_int_regs.
7755 (supply_fpregset): Use alpha_supply_fp_regs.
7756 (fill_fpregset): Use alpha_fill_fp_regs.
7757 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7758 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7759 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7760 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7761 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7762 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7763
67dfac52
RH
77642003-06-02 Richard Henderson <rth@redhat.com>
7765
f75d70cc
RH
7766 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7767
67dfac52
RH
7768 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7769 (alpha_store_return_value): Likewise.
7770
0cf566ec
DC
77712003-06-02 David Carlton <carlton@math.stanford.edu>
7772
7773 * block.c (contained_in): Add 'const' to arguments.
7774 (block_function): Ditto.
7775 * block.h: Update declarations for block_function and
7776 contained_in.
7777
cdef89d0
DC
77782003-06-02 David Carlton <carlton@math.stanford.edu>
7779
7780 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7781 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7782 * p-valprint.c (pascal_val_print): Ditto.
7783 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7784
72667056
RH
77852003-06-02 Richard Henderson <rth@redhat.com>
7786
98a8e1e5
RH
7787 * alpha-tdep.c (alpha_push_dummy_call): Use
7788 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7789
8ffd9b1b 7790 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7791 sign-extension of 32-bit values.
7792 (alpha_store_return_value): Similarly.
0ede8eca 7793
98a8e1e5
RH
7794 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7795 (alpha_extract_return_value): Likewise.
7796 (alpha_store_return_value): Likewise.
7b5e1cb3 7797
98a8e1e5
RH
7798 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7799 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7800
98a8e1e5
RH
7801 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7802 (alpha_extract_struct_value_address): Likewise.
7803 (alpha_store_return_value): Likewise.
7804 (alpha_store_struct_return): Remove.
7805 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7806
98a8e1e5
RH
7807 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7808 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7809 macros where appropriate.
7810 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7811 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7812
98a8e1e5
RH
7813 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7814 for SP, GP; void_func_ptr for PC; non-language-specific types
7815 for all others.
7816 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7817
6dd77b81
RH
78182003-06-02 Richard Henderson <rth@redhat.com>
7819
7820 * top.h (lim_at_start): Declare.
7821 * main.c (captured_main): Set it.
7822 * top.c (lim_at_start): Define.
7823 (command_loop): Use it instead of &environ.
7824 * event-top.c (command_handler): Likewise.
7825
f4dbdb54
JT
78262003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7827
7828 * mipsnbsd-tdep.c: Update copyright years.
7829 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7830
8f285956
RH
78312003-06-01 Richard Henderson <rth@redhat.com>
7832
98a8e1e5
RH
7833 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7834 (alpha-linux-tdep.o): Update dependencies.
7835 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7836 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7837
615967cb
RH
78382003-06-01 Richard Henderson <rth@redhat.com>
7839
98a8e1e5
RH
7840 * alpha-tdep.c (alpha_register_reggroup_p): New.
7841 (alpha_gdbarch_init): Register it.
615967cb 7842
b59661bd
AC
78432003-06-02 Andrew Cagney <cagney@redhat.com>
7844
7845 * dwarfread.c: Eliminate "register"
7846 (decode_die_type): Eliminate assignment within "if".
7847 (struct_type, decode_array_element_type): Ditto.
7848 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7849 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7850 (decode_modified_type, completedieinfo): Ditto.
7851 * block.c: Eliminate "register".
7852 (blockvector_for_pc_sect): Eliminate assignment within "if".
7853 * cp-support.h (struct symbol): Opaque declaration.
7854 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7855
5ef165c2
RH
78562003-06-01 Richard Henderson <rth@redhat.com>
7857
98a8e1e5
RH
7858 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7859 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7860
143985b7
AF
78612003-06-01 Adam Fedor <fedor@gnu.org>
7862
7863 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7864 * gdbarch.[ch]: Regenerate.
7865 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7866 (hppa_gdbarch_init): Set it in the gdbarch vector.
7867 * i386-tdep.c (i386_fetch_pointer_argument): New
7868 (i386_gdbarch_init): Set it into gdbarch.
7869 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7870 (rs6000_gdbarch_init): Set it in gdbarch.
7871 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7872 (sparc_gdbarch_init): Set it in gdbarch.
7873
ae0167b9
AC
78742003-06-01 Andrew Cagney <cagney@redhat.com>
7875
7c0b4a20
AC
7876 * defs.h (extract_address): Delete declaration.
7877 * findvar.c (extract_address): Delete function.
7878 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7879 extract_address with the inline equivalent,
7880 extract_unsigned_integer.
7881 (xstormy16_extract_struct_value_address): Ditto.
7882 (xstormy16_pointer_to_address): Ditto.
7883 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7884 * v850-tdep.c (v850_push_arguments): Ditto.
7885 (v850_extract_return_value): Ditto.
7886 (v850_extract_struct_value_address): Ditto.
7887 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7888 (sparcnbsd_get_longjmp_target_64): Ditto.
7889 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7890 (get_longjmp_target): Ditto.
7891 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7892 (sh64_extract_struct_value_address): Ditto.
7893 (sh_push_arguments): Ditto.
7894 (sh64_push_arguments): Ditto.
7895 * remote-vxsparc.c (vx_read_register): Ditto.
7896 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7897 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7898 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7899 * mipsv4-nat.c (get_longjmp_target): Ditto.
7900 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7901 * mips-nat.c (get_longjmp_target): Ditto.
7902 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7903 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7904 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7905 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7906 * irix5-nat.c (get_longjmp_target): Ditto.
7907 * irix4-nat.c (get_longjmp_target): Ditto.
7908 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7909 (ia64_push_arguments): Ditto.
7910 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7911 * h8300-tdep.c (h8300_push_arguments): Ditto.
7912 (h8300_store_return_value): Ditto.
7913 (h8300_extract_struct_value_address): Ditto.
7914 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7915 (frv_push_arguments): Ditto.
7916 * avr-tdep.c (avr_pointer_to_address): Ditto.
7917 (avr_push_arguments): Ditto.
7918 * arm-tdep.c (arm_push_dummy_call): Ditto.
7919 (arm_get_longjmp_target): Ditto.
7920 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7921 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7922 (alpha_get_longjmp_target): Ditto.
7923
ae0167b9
AC
7924 * solib-irix.c (extract_mips_address): Inline extract_address,
7925 replacing it with extract_signed_integer.
7926 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7927 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7928 (first_link_map_member, open_symbol_file_object): Ditto.
7929 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7930 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7931 (LM_NEXT, LM_NAME): Ditto.
7932
44d88583
RH
79332003-06-01 Richard Henderson <rth@redhat.com>
7934
98a8e1e5
RH
7935 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7936 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7937 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7938 (alpha_cannot_store_register): Likewise.
7939 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7940 * alpha-nat.c (supply_gregset): Likewise.
7941 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7942
310e9b6a
AC
79432003-06-01 Andrew Cagney <cagney@redhat.com>
7944
7945 * infcall.c (call_function_by_hand): Update comment on
7946 DEPRECATED_DUMMY_WRITE_SP.
7947
7948 * mips-tdep.c (mips_gdbarch_init): Do not set
7949 deprecated_dummy_write_sp.
7950 (mips_eabi_push_dummy_call): Set the SP register.
7951 (mips_o64_push_dummy_call): Set the SP register.
7952 (mips_o32_push_dummy_call): Set the SP register.
7953 (mips_n32n64_push_dummy_call): Set the SP register.
7954
5ab84872
RH
79552003-06-01 Richard Henderson <rth@redhat.com>
7956
98a8e1e5
RH
7957 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7958 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7959 (supply_gregset): Likewise.
7960 * alpha-tdep.c (alpha_store_return_value): Likewise.
7961 (alpha_get_longjmp_target): Likewise.
7962 (alpha_register_name): Constify array.
7963 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7964 deprecated_register_size, deprecated_register_bytes,
7965 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7966 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7967 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7968
09cc52fd
RH
79692003-06-01 Richard Henderson <rth@redhat.com>
7970
7971 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7972 from arg_reg_buffer to regcache to avoid double conversion.
7973
c7f16359
MK
79742003-06-01 Mark Kettenis <kettenis@gnu.org>
7975
7976 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7977 SP_REGNUM.
7978 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7979 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7980
7131cb6e
RH
79812003-06-01 Richard Henderson <rth@redhat.com>
7982
98a8e1e5
RH
7983 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7984 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7985
f3e0f90b
RH
79862003-06-01 Richard Henderson <rth@redhat.com>
7987
98a8e1e5
RH
7988 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7989 not overlapping PC_REGNUM.
f3e0f90b 7990
c88e30c0
RH
79912003-06-01 Richard Henderson <rth@redhat.com>
7992
98a8e1e5
RH
7993 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7994 alpha_push_arguments. Don't dump argument register data to
7995 the target stack. Fix float and 128-bit long double semantics.
7996 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7997 (alpha_fix_call_dummy): Remove.
7998 (alpha_call_dummy_words): Remove.
7999 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8000
f1a559ae
RH
80012003-06-01 Richard Henderson <rth@redhat.com>
8002
8003 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8004
5e045346
AC
80052003-06-01 Andrew Cagney <cagney@redhat.com>
8006
95404a3e
AC
8007 * mips-tdep.c (is_mips16_addr): New function.
8008 (make_mips16_addr, unmake_mips16_addr): New functions.
8009 (pc_is_mips16, mips_fetch_instruction): Use.
8010 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8011 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8012 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8013 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8014 TARGET_MIPS.
8015 * config/mips/tm-mips.h: Update copyright.
8016 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8017 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8018 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8019 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8020 (TM_PRINT_INSN_MACH): Delete.
8021 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8022
5e045346
AC
8023 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8024 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8025 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8026 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8027 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8028 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8029 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8030 mips*-*-riscos* and mips*-*-sysv* onto mips.
8031 * config/mips/mips64.mt: New file.
8032 * config/mips/mips.mt: New file.
8033 * config/mips/littlemips.mt: Delete file.
8034 * config/mips/decstation.mt: Delete file.
8035 * config/mips/vr4300el.mt: Delete file.
8036 * config/mips/vr5000el.mt: Delete file.
8037 * config/mips/vr5000.mt: Delete file.
8038 * config/mips/vr4100.mt: Delete file.
8039 * config/mips/vr4xxxel.mt: Delete file.
8040 * config/mips/vr4300.mt: Delete file.
8041 * config/mips/vr4xxx.mt: Delete file.
8042 * config/mips/bigmips.mt: Delete file.
8043 * config/mips/bigmips64.mt: Delete file.
8044 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8045 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8046 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8047 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8048 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8049 "tm-bigmips.h".
8050 * config/mips/tm-irix3.h: Ditto.
8051 * config/mips/tm-mipsv4.h: Ditto.
8052 * config/mips/tm-embed.h: Ditto.
8053 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8054 "tm-bigmips64.h".
8055 * config/mips/tm-vr5000el.h: Delete file.
8056 * config/mips/tm-tx39l.h: Delete file.
8057 * config/mips/tm-vr4300el.h: Delete file.
8058 * config/mips/tm-vr4xxxel.h: Delete file.
8059 * config/mips/tm-vr4300.h: Delete file.
8060 * config/mips/tm-vr4100.h: Delete file.
8061 * config/mips/tm-vr4xxx.h: Delete file.
8062 * config/mips/tm-vr5000.h: Delete file.
8063 * config/mips/tm-embedl64.h: Delete file.
8064 * config/mips/tm-embedl.h: Delete file.
8065 * config/mips/tm-embed64.h: Delete file.
8066 * config/mips/tm-bigmips64.h: Delete file.
8067 * config/mips/tm-bigmips.h: Delete file.
8068
2473a4a9
MK
80692003-06-01 Mark Kettenis <kettenis@gnu.org>
8070
97a5b208
MK
8071 Fix gdb/1216.
8072 * shnbsd-nat.c: Include "sh-tdep.h".
8073
2473a4a9
MK
8074 From Richard Henderson <rth@redhat.com>:
8075 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8076
e0f7ec59
AC
80772003-05-31 Andrew Cagney <cagney@redhat.com>
8078
8079 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8080 forward declaration.
8081 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8082 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8083 (mips_find_saved_regs): Use set_reg_offset.
8084 (mips_frame_init_saved_regs): Delete function.
8085 (mips_pop_frame): Call mips_find_saved_regs instead of
8086 DEPRECATED_FRAME_INIT_SAVED_REGS.
8087
68dcc709
AC
80882003-05-31 Andrew Cagney <cagney@redhat.com>
8089
8090 * mips-tdep.c (mips_gdbarch_init): Do not set
8091 deprecated_max_register_raw_size, register_virtual_size, and
8092 deprecated_max_register_virtual_size.
8093
cfc14b3a
MK
80942003-05-31 Mark Kettenis <kettenis@gnu.org>
8095
6405b0a6
MK
8096 * i386-tdep.c: Include "dwarf2-frame.h".
8097 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8098 * Makefile.in (i386-tdep.o): Update dependencies.
8099
cfc14b3a
MK
8100 * dwarf2-frame.c, dwarf2-frame.h: New files.
8101 * Makefile.in (SFILES): Add dwarf2-frame.c.
8102 (dwarf2_frame_h): Define.
8103 (COMMON_OBS): Add dwarf2-frame.o.
8104 (dwarf2-frame.o): Add dependencies.
8105
6a2751d2
AJ
81062003-05-31 Andreas Jaeger <aj@suse.de>
8107
8108 * x86-64-linux-nat.c: Fix comment.
8109
1c3545ae
MK
81102003-05-31 Mark Kettenis <kettenis@gnu.org>
8111
10f93086
MK
8112 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8113 function signature.
8114
1c3545ae
MK
8115 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8116 have a sigcontext_addr handler.
8117 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8118 sigcontext_addr handler.
8119
e11c53d2
AC
81202003-05-31 Andrew Cagney <cagney@redhat.com>
8121
8122 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8123 (print_fp_register_row): Replace do_fp_register_row.
8124 (mips_print_fp_register): Add "file" and "frame" parameters.
8125 (mips_print_register): Add "file" and "frame" parameters.
8126 (mips_print_registers_info): Replace mips_do_registers_info.
8127 (mips_gdbarch_init): Set print_registers_info instead of
8128 deprecated_do_registers_info.
8129 (mips_read_fp_register_single): Add "frame" parameter.
8130 (mips_read_fp_register_double): Add "frame" parameter.
8131
a3386186
MK
81322003-05-31 Mark Kettenis <kettenis@gnu.org>
8133
70913449
MK
8134 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8135 Fixes a bug where GDB would print the wrong register names for
8136 targets without SSE.
8137
2b5e0749
MK
8138 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8139 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8140 registers.
8141
8142 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8143 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8144 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8145 TDEP->sc_sp_offset.
8146
a3386186
MK
8147 From Michal Ludvig <mludvig@suse.cz>:
8148 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8149 and `sc_num_regs'.
8150 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8151 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8152 I386_ST0_REGNUM): Move here from...
8153 * i386-tdep.c: ... here.
8154 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8155 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8156 registers if possible.
8157 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8158 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8159 Remove variables.
8160 (i386bsd_sc_reg_offset): New variable.
8161 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8162 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8163 TDEP->sc_sp_offset.
8164 (i386fbsd_sc_reg_offset): New variable.
8165 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8166 TDEP->sc_num_regs.
8167 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8168 variables.
8169 (i386fbsd4_sc_reg_offset): New variable.
8170 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8171 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8172 TDEP->sc_sp_offset.
8173 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8174 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8175 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8176 Remove variables.
8177 (i386nbsd_sc_reg_offset): New variable.
8178 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8179 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8180 TDEP->sc_sp_offset.
8181 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8182 Remove variables.
8183 (i386obsd_sc_reg_offset): New variable.
8184 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8185 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8186 TDEP->sc_sp_offset.
8187 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8188 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8189 for frame pointer offset in `struct sigcontext'.
8190
25ab4790
AC
81912003-05-31 Andrew Cagney <cagney@redhat.com>
8192
8193 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8194 architecture methods call_dummy_words, sizeof_call_dummy_words,
8195 push_return_address, store_struct_return, and fix_call_dummy. Set
8196 push_dummy_call instead of deprecated_push_arguments.
8197 (mips_store_struct_return): Delete function.
8198 (mips_fix_call_dummy): Delete function.
8199 (mips_push_return_address): Delete function.
8200 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8201 RA_REGNUM and T9_REGNUM.
8202 (mips_n32n64_push_dummy_call): Ditto for
8203 mips_n32n64_push_arguments.
8204 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8205 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8206
6a65450a
AC
82072003-05-31 Andrew Cagney <cagney@redhat.com>
8208
8209 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8210 "dummy_addr" to "bp_addr".
8211 * infcall.c (call_function_by_hand): Pass "funaddr" to
8212 gdbarch_push_dummy_call.
8213 * gdbarch.h, gdbarch.c: Re-generate.
8214 * i386-tdep.c (i386_push_dummy_call): Update.
8215 * arm-tdep.c (arm_push_dummy_call): Update.
8216 * d10v-tdep.c (d10v_push_dummy_call): Update.
8217
c4f35dd8
MK
82182003-05-31 Mark Kettenis <kettenis@gnu.org>
8219
8220 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8221 variable declarations.
8222 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8223 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8224 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8225 x86_64_init_frame_pc, x86_64_init_frame_pc,
8226 x86_64_function_has_prologue): Remove prototypes.
8227 (X86_64_NUM_GREGS): New define.
8228 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8229 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8230 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8231 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8232 XMM1_REGNUM): Remove defines.
8233 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8234 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8235 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8236 X86_64_XMM1_REGNUM): New defines.
8237 (struct x86_64_register_info): Renamed from `struct
8238 register_info'. Remove `size' member.
8239 (x86_64_register_info_table): Remove variable.
8240 (x86_64_register_info): New variable.
8241 (X86_64_NUM_REGS): New define.
8242 (X86_64_NUM_GREGS): Remove define.
8243 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8244 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8245 Remove variables.
8246 (x86_54_dwarf2_reg_to_regnum): Remove function.
8247 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8248 (x86_64_dwarf_reg_to_regnum): New function.
8249 (x86_64_register_name): Rewrite.
8250 (x86_64_register_raw_size): Remove function.
8251 (x86_64_register_byte_table): Remove variable.
8252 (x86_64_register_byte): Remove function.
8253 (x86_64_register_virtual_type): Remove function.
8254 (x86_64_register_type): New function.
8255 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8256 x86_64_register_convert_to_raw): Remove functions.
8257 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8258 (x86_64_use_struct_convention): Make static. Adjust for renamed
8259 defines.
8260 (x86_64_frame_init_saved_regs): Remove function.
8261 (x86_64_push_arguments): Make static. Change to accept a regcache
8262 as argument.
8263 (x86_64_store_return_value, x86_64_extract_return_value): Make
8264 static. Rewrite based on i386 counterparts.
8265 (x86_64_push_dummy_call): New function.
8266 (X86_64_NUM_SAVED_REGS): New define.
8267 (x86_64_register_number): Remove function.
8268 (x86_64_store_struct_return): Remove function.
8269 (x86_64_frameless_function_invocation,
8270 x86_64_function_has_prologue): Remove functions.
8271 (PROLOG_BUFSIZE): Remove define.
8272 (struct x86_64_frame_cache): New structure.
8273 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8274 x86_64_frame_cache, x86_64_frame_this_id,
8275 x86_64_frame_prev_register, x86_64_frame_p,
8276 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8277 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8278 functions.
8279 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8280 variables.
8281 (x86_64_skip_prologue): Rewrite in terms of
8282 x86_64_analyze_prologue.
8283 (x86_64_frame_base_address): New function.
8284 (x86_64_frame_base): New variable.
8285 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8286 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8287 set deprecated_fp_regnum, deprecated_register_size,
8288 deprecated_register_bytes, register_raw_size, register_byte,
8289 register_virtual_type, register_convertiable,
8290 register_convert_to_virtual, convert_to_raw,
8291 deprecated_get_saved_register, deprecated_target_read_fp,
8292 deprecated_push_arguments, deprecated_push_return_address,
8293 deprecated_pop_frame, deprecated_store_struct_return,
8294 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8295 frameless_function_invocation, deprecated_frame_saved_pc,
8296 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8297 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8298 deprecated_init_frame_pc and virtual_frame_pointer. Call
8299 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8300 and x86_64_frame_p. Call frame_base_set_default to register
8301 x86_64_frame_base.
8302 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8303 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8304 (_initialize_x86_64_tdep): Remove function.
8305 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8306 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8307 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8308 define.
8309 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8310 (x86_64_linux_sigcontext_addr): Rewrite.
8311 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8312 x86_64_linux_frame_saved_pc): Remove functions.
8313 (x86_64_linux_pc_in_sigtramp): Renamed from
8314 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8315 trampoline.
8316 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8317 Remove_functions.
8318 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8319 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8320 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8321 (x86_64_regmap): Rename to regmap.
8322 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8323 x86_64_num_gregs.
8324 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8325 x86_64_regmap.
8326 (x86_64_fxsave_offset): Remove function.
8327 (supply_fpregset): Simply call x86_64_supply_fxsave.
8328 (fill_fpregset): Simply call x86_64_fill_fxsave.
8329 (fetch_inferior_registers, store_inferior_registers): Avoid
8330 asignment in if-statement.
8331 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8332 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8333 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8334 (fetch_core_registers): Remove function.
8335 (linux_elf_core_fns): Remove.
8336 (offsetoff): Don't define.
8337 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8338 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8339 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8340 add core-regset.o.
8341 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8342 protection against multiple includes instead of NM_X86_64_h. Add
8343 various comments. Include "config/nm-linux.h". Don't include
8344 <signal.h>.
8345 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8346 GET_THREAD_SIGNALS): Remove defines.
8347 (x86_64_register_u_addr, kernel_u_size,
8348 lin_thread_get_thread_signals): Remove prototypes.
8349 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8350 [HAVE_LINK_H]: Don't include "solib.h".
8351 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8352 * config/i386/tm-x86-64linux.h: Fix comments.
8353 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8354 x86-64-tdep.o): Update dependencies.
8355
c25083af
AC
83562003-05-30 Andrew Cagney <cagney@redhat.com>
8357
c8f55a7b
AC
8358 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8359 Change parameter type to a "struct regcache *".
8360
c25083af
AC
8361 * gdbarch.sh: Regardless of the multi-arch level, always define
8362 the macro when not already defined.
8363 * gdbarch.h, gdbarch.c: Re-generate.
8364
fbe586ae
RH
83652003-05-30 Richard Henderson <rth@redhat.com>
8366
8367 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8368 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8369 (alpha_mdebug_frame_this_id): Likewise.
8370 (alpha_mdebug_frame_prev_register): Likewise.
8371 (alpha_mdebug_frame_base_address): Likewise.
8372 (alpha_mdebug_frame_locals_address): Likewise.
8373 (alpha_mdebug_frame_args_address): Likewise.
8374 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8375 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8376 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8377 loop increment.
8378 (alpha_heuristic_frame_this_id): Make static.
8379 (alpha_heuristic_frame_prev_register): Likewise.
8380 (alpha_heuristic_frame_base_address): Likewise.
8381 * alpha-tdep.h: Update.
8382
acd5c798
MK
83832003-05-30 Mark Kettenis <kettenis@gnu.org>
8384
8385 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8386 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8387 defenitions.
8388 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8389 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8390 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8391 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8392 I386_ST0_REGNUM): New defines.
8393 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8394 codestream_get): Remove define.
8395 (codestream_next_addr, condestream_addr, condestream_buf,
8396 codestream_off, codestream_cnt): Remove variables.
8397 (codestream_fill, codestream_seek, codestream_read): Remove
8398 functions.
8399 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8400 functionality.
8401 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8402 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8403 i386_frame_saved_pc, i386_saved_pc_after_call,
8404 i386_frame_num_args, i386_frame_init_saved_regs,
8405 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8406 i386_push_arguments): Remove functions.
8407 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8408 functionality. Use i386_analyze_prologue instead of
8409 i386_get_frame_setup.
8410 (I386_NUM_SAVED_REGS): New define.
8411 (struct i386_frame_cache): New structure.
8412 (i386_alloc_frame_cache, i386_analyze_struct_return,
8413 i386_skip_probe, i386_analyze_frame_setup,
8414 i386_analyze_register_saves, i386_analyze_prologue,
8415 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8416 i386_frame_prev_register, i386_sigtramp_frame_cache,
8417 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8418 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8419 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8420 New functions.
8421 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8422 New variables.
8423 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8424 I386_EAX_REGNUM and I386_EDX_REGNUM.
8425 (i386_extract_return_value, i386_store_return_value): Use
8426 I386_ST0_REGNUM where appropriate.
8427 (i386_extract_struct_value_address): Rewrite to use extract_address.
8428 (i386_svr4_pc_in_sigtramp): Add comment.
8429 (i386_svr4_sigcontext_addr): Rewrite.
8430 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8431 TDEP->sc_sp_offset.
8432 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8433 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8434 of new defines. Set push_dummy_call, don't set
8435 deprecated_push_arguments, deprecated_push_return_address,
8436 deprecated_pop_frame. Don't set parm_boundary. Don't set
8437 deprecated_frame_chain, deprecated_frame_saved_pc,
8438 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8439 save_dummy_frame_tos, unwind_pc. Call
8440 frame_unwind_append_predicate and frame_base_set_default. Don't
8441 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8442 Don't set frameless_function_invocation. Don't set
8443 deprecated_register_bytes, deprecated_register_size,
8444 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8445 * i386-linux-tdep.c: Fix formatting in some comments.
8446 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8447 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8448 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8449 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8450 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8451 redundant parentheses.
8452 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8453 (i386_linux_sigcontext_addr): Use it. Rewrite.
8454 (find_minsym_and_objfile): Change name of second argument.
8455 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8456 changed. Use frame_pc_unwind instead of
8457 DEPRECATED_SAVED_PC_AFTER_CALL.
8458 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8459 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8460 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8461 unwinder.
8462 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8463 "dummy-frame.h".
8464 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8465 (_initialize_i386_cygwin_tdep): New prototype.
8466 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8467 deprecated_frame_chain_valid.
8468 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8469 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8470 Rely on the SVR4 defaults.
8471 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8472 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8473
c89b70f1
AC
84742003-05-30 Andrew Cagney <cagney@redhat.com>
8475
8476 * infcall.c (call_function_by_hand): Always call
8477 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8478
85b32d22
RH
84792003-05-30 Richard Henderson <rth@redhat.com>
8480
c89b70f1
AC
8481 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8482 increment.
85b32d22 8483
bfe51b1e
JB
84842003-05-29 Jim Blandy <jimb@redhat.com>
8485
8486 Use gdbarch methods for solib stuff on PowerPC Linux.
8487 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8488 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8489 show through.
8490 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8491 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8492 giving the same effect as the #definitions above.
8493
1abf022c
AF
84942003-05-29 Adam Fedor <fedor@gnu.org>
8495
8496 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8497 (find_implementation_from_class): Replace it with the standard
8498 case i.e. do nothing.
8499
d2427a71
RH
85002003-05-29 Richard Henderson <rth@redhat.com>
8501
8502 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8503 (alpha_linux_sigtramp_offset): Use it. Make static.
8504 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8505 update for new frame model.
8506 * alpha-mdebug-tdep.c: New file.
8507 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8508 (alpha_osf1_init_abi): Install it.
8509 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8510 (linked_proc_desc_table): Remove.
8511 (alpha_frame_past_sigtramp_frame): Remove.
8512 (alpha_dynamic_sigtramp_offset): Remove.
8513 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8514 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8515 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8516 (push_sigtramp_desc): Remove.
8517 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8518 (alpha_cannot_store_register): Likewise.
8519 (alpha_sigcontext_addr): Remove.
8520 (alpha_find_saved_regs): Remove.
8521 (alpha_frame_init_saved_regs): Remove.
8522 (alpha_init_frame_pc_first): Remove.
8523 (read_next_frame_reg): Remove.
8524 (alpha_frame_saved_pc): Remove.
8525 (alpha_saved_pc_after_call): Remove.
8526 (temp_proc_desc, temp_saved_regs): Remove.
8527 (alpha_about_to_return): Remove.
8528 (cached_proc_desc): Remove.
8529 (alpha_frame_chain): Remove.
8530 (alpha_print_extra_frame_info): Remove.
8531 (alpha_init_extra_frame_info): Remove.
8532 (alpha_frame_locals_address): Remove.
8533 (alpha_frame_args_address): Remove.
8534 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8535 (alpha_push_dummy_frame): Remove.
8536 (alpha_pop_frame): Remove.
8537 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8538 (alpha_read_insn): New.
8539 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8540 for different insn encodings.
8541 (alpha_in_lenient_prologue): Remove.
8542 (struct alpha_sigtramp_unwind_cache): New.
8543 (alpha_sigtramp_frame_unwind_cache): New.
8544 (alpha_sigtramp_register_address): New.
8545 (alpha_sigtramp_frame_this_id): New.
8546 (alpha_sigtramp_frame_prev_register): New.
8547 (alpha_sigtramp_frame_unwind): New.
8548 (alpha_sigtramp_frame_p): New.
8549 (struct alpha_heuristic_unwind_cache): New.
8550 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8551 don't count nop insns that occur between functions.
8552 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8553 heuristic_proc_desc, but without the mdebug wrapping.
8554 (alpha_heuristic_frame_this_id): New.
8555 (alpha_heuristic_frame_prev_register): New.
8556 (alpha_heuristic_frame_unwind): New.
8557 (alpha_heuristic_frame_p): New.
8558 (alpha_heuristic_frame_base_address): New.
8559 (alpha_heuristic_frame_base): New.
8560 (alpha_unwind_dummy_id): New.
8561 (alpha_unwind_pc): New.
8562 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8563 frame related deprecated initializations; install replacements.
8564 (alpha_dump_tdep): Remove.
8565 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8566 (alpha_read_insn, alpha_after_prologue,
8567 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8568 alpha_heuristic_frame_prev_register,
8569 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8570 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8571 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8572 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8573
93ec1121
AC
85742003-05-29 Andrew Cagney <cagney@redhat.com>
8575
8576 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8577 dependant on the availability of ASSERT_FUNCTION.
8578 (ASSERT_FUNCTION): Do not define when there is no function name.
8579
98f08d3d
KB
85802003-05-29 Kevin Buettner <kevinb@redhat.com>
8581
8582 From Jimi X <jimix@watson.ibm.com>:
8583 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8584
0897f59b
JB
85852003-05-28 Jim Blandy <jimb@redhat.com>
8586
8587 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8588 argument to ptrace to int; the system headers should give it the
8589 right type, and pointers don't fit in ints on powerpc64-*-*.
8590
14898363
L
85912003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8592
8593 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8594 DW_TAG_catch_block.
8595
a7a48797
EZ
85962003-05-26 Elena Zannoni <ezannoni@redhat.com>
8597
8598 * stabsread.c (dbx_lookup_type): Make static.
8599 (read_type): Ditto.
8600 (add_undefined_type): Ditto.
8601 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8602 not export.
8603
f5479e9c
EZ
86042003-05-26 Elena Zannoni <ezannoni@redhat.com>
8605
8606 * hpread.c (hpread_has_name): Make static.
8607 (hpread_psymtab_to_symtab): Ditto.
8608 (file_exists): Ditto.
8609 (hpread_call_pxdb): Ditto.
8610 (hpread_pxdb_needed): Ditto.
8611 (hpread_quick_traverse): Ditto.
8612 (hpread_get_header): Ditto.
8613 (hpread_get_lntt): Ditto.
8614 (hpread_get_slt): Ditto.
8615 (class_of): Ditto.
8616
eb2e12d7
AS
86172003-05-25 Andreas Schwab <schwab@suse.de>
8618
78bf922a
AS
8619 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8620 stack_align and deprecated_extra_stack_alignment_needed.
8621 (m68k_stack_align): Delete.
8622
eb2e12d7
AS
8623 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8624 (m68k_register_virtual_size): Likewise.
8625 (altos_skip_prologue): Remove obsolete function.
8626 (isi_frame_num_args): Likewise.
8627 (news_frame_num_args): Likewise.
8628 (m68k_fix_call_dummy): Make static.
8629 (m68k_push_dummy_frame): Likewise.
8630 (m68k_pop_frame): Likewise.
8631 (m68k_skip_prologue): Likewise.
8632 (m68k_frame_init_saved_regs): Likewise.
8633 (m68k_saved_pc_after_call): Likewise.
8634 (m68k_get_longjmp_target): Make multi-arch.
8635 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8636 structure. Register m68k_get_longjmp_target if enabled.
8637 * m68k-tdep.h (struct gdbarch_tdep): Define.
8638 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8639
8640 * Makefile.in (config.status): Also depend on configure.tgt
8641 and configure.host.
8642 (m68klinux-tdep.o): Update dependencies.
8643 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8644 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8645 (M68K_LINUX_JB_PC): Define.
8646 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8647 and take additional parameter.
8648 (m68k_linux_sigtramp_saved_pc): Update.
8649 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8650 m68k_linux_pc_in_sigtramp, in_plt_section,
8651 find_solib_trampoline_target.
8652 * config/m68k/tm-linux.h: Don't include any tm headers.
8653 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8654 (JB_ELEMENT_SIZE): Likewise.
8655 (JB_PC): Likewise.
8656 (GET_LONGJMP_TARGET): Likewise.
8657 (IN_SIGTRAMP): Likewise.
8658 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8659
eb2c22dc
MK
86602003-05-25 Mark Kettenis <kettenis@gnu.org>
8661
8662 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8663 (sparc32_push_arguments): Re-implement by calling
8664 sparc32_do_push_arguments.
8665
44b7b84e
MK
86662003-05-25 Mark Kettenis <kettenis@gnu.org>
8667
8668 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8669 SPARC_O1_REGNUM): New defines.
8670 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8671 (sparc32_store_return_value): New function.
8672 (sparc_extract_struct_value_address): Rewrite to operate on a
8673 regcache.
8674 (sparc_gdbarch_init): Don't set
8675 deprecated_extract_struct_value_address. Set
8676 extract_struct_value_address instead. Don't set
8677 deprecated_extract_return_value and deprecated_store_return_value
8678 for 32-bit targets. Set extract_return_value and
8679 store_return_value instead.
8680 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8681 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8682 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8683 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8684 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8685 (sparc_store_return_value): Remove prototype.
8686 (sparc32_store_return_value): New prototype.
8687 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8688 Adjust prototypes.
8689
f6ad61e3
MK
86902003-05-24 Mark Kettenis <kettenis@gnu.org>
8691
8692 * sparcnbsd-tdep.c: Include "gdb_string.h".
8693
b276f1bb
AC
86942003-05-23 Andrew Cagney <cagney@redhat.com>
8695
8696 * p-valprint.c (pascal_val_print): Replace extract_address with
8697 the inline equivalent extract_unsigned_integer.
8698 * jv-valprint.c (java_value_print): Ditto.
8699 * ada-valprint.c (ada_val_print_1): Ditto.
8700 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8701
e76c5fcc
TR
87022003-05-23 Theodore A. Roth <troth@openavr.org>
8703
8704 * blockframe.c (frameless_look_for_prologue): Remove unused
8705 after_prologue variable.
8706
2cdd89cb
MK
87072003-05-23 Mark Kettenis <kettenis@gnu.org>
8708
8709 * blockframe.c (get_pc_function_start): Rewrite to avoid
8710 asignments in if-statements.
8711
182d43bc
EZ
87122003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8713
8714 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8715 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8716 files, don't relocate absolute symbols (and do use mst_abs).
8717
e8f3fcdd
AC
87182003-05-23 Andrew Cagney <cagney@redhat.com>
8719
8720 * objc-lang.c: Include "gdb_assert.h".
8721 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8722 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8723 (gdb_check, gdb_check_fatal): Delete functions.
8724 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8725 gdb_assert.
8726 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8727 * Makefile.in (objc-lang.o): Update dependencies.
8728
3c23e6fb
ILT
87292003-05-22 Ian Lance Taylor <ian@airs.com>
8730
8731 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8732 with fprintf_filtered, not fprintf_unfiltered.
8733
af1342ab
AC
87342003-05-22 Andrew Cagney <cagney@redhat.com>
8735
8736 * stack.c (frame_info): Inline extract_address, replacing it with
8737 extract_unsigned_integer.
8738 * findvar.c (unsigned_pointer_to_address): Ditto.
8739 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8740 * dwarf2expr.c (dwarf2_read_address): Ditto.
8741 * frame.c (frame_pc_unwind): Update comment.
8742 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8743
47e242ec
JJ
87442003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8745
8746 * infptrace.c (detach): Call print_sys_errmsg rather than
8747 perror_with_name to issue warning message when errno is non-zero
8748 after calling ptrace detach.
8749
e2ac8128
JB
87502003-05-21 J. Brobecker <brobecker@gnat.com>
8751
8752 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8753 macro definitions from here...
8754 * hppa-tdep.c: ...to there.
8755
92b3541e
KB
87562003-05-20 Kevin Buettner <kevinb@redhat.com>
8757
8758 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8759 register_ptrace_addr(). Fix all callers.
8760
55809acb
AS
87612003-05-21 Andreas Schwab <schwab@suse.de>
8762
8763 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8764 dependencies.
8765 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8766 end.
8767 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8768 (_initialize_m68k_linux_tdep): New function.
8769 (m68k_linux_frame_saved_pc): Make static.
8770 (m68k_linux_extract_return_value): Likewise.
8771 (m68k_linux_store_return_value): Likewise.
8772 (m68k_linux_extract_struct_value_address): Likewise.
8773 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8774 Remove.
8775 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8776 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8777 (DEPRECATED_FRAME_SAVED_PC): Remove.
8778
0fbc10f7
KW
87792003-05-20 Kris Warkentin <kewarken@qnx.com>
8780
8781 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8782 regset numbering rather than our own.
8783
58da2eb2
DC
87842003-05-19 David Carlton <carlton@bactrian.org>
8785
8786 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8787
1fcb5155
DC
87882003-05-19 David Carlton <carlton@bactrian.org>
8789
8790 Partial fix for PR c++/827.
8791 * cp-support.h: Include symtab.h.
8792 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8793 * cp-namespace.c: Update contributors.
8794 (cp_lookup_symbol_nonlocal): New.
8795 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8796 (lookup_symbol_file): Ditto.
8797 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8798 * block.h: Declare block_scope, block_using, block_global_block.
8799 * block.c (block_scope): New.
8800 (block_using, block_global_block): Ditto.
8801 * Makefile.in (cp_support_h): Depend on symtab_h.
8802 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8803
5f9a71c3
DC
88042003-05-19 David Carlton <carlton@bactrian.org>
8805
8806 * language.h (struct language_defn): Add 'la_value_of_this'
8807 and 'la_lookup_symbol_nonlocal' members.
8808 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8809 lookup_symbol_static, lookup_symbol_global,
8810 lookup_symbol_aux_block.
8811 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8812 if we should search fields of this and how to do static/global
8813 lookup.
8814 (lookup_symbol_aux_block): Make extern.
8815 (basic_lookup_symbol_nonlocal): New.
8816 (lookup_symbol_static, lookup_symbol_global): Ditto.
8817 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8818 'la_lookup_symbol_nonlocal' members.
8819 * c-lang.c (c_language_defn, cplus_language_defn)
8820 (asm_language_defn, minimal_language_defn): Ditto.
8821 * jv-lang.c (java_language_defn): Ditto.
8822 * language.c (unknown_language_defn, auto_language_defn)
8823 (local_language_defn): Ditto.
8824 * m2-lang.c (m2_language_defn): Ditto.
8825 * objc-lang.c (objc_language_defn): Ditto.
8826 * scm-lang.c (scm_language_defn): Ditto.
8827 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8828 * p-lang.c (pascal_language_defn): Ditto for both.
8829 * Makefile.in (f-lang.o): Depend on value_h.
8830 (p-lang.o): Ditto.
8831
89a9d1b1
DC
88322003-05-19 David Carlton <carlton@bactrian.org>
8833
8834 * block.h: Declare block_static_block.
8835 * block.c (block_static_block): New.
8836 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8837 lookup_symbol_aux_local, calling block_static_block instead.
8838 (lookup_symbol_aux_local): Delete 'static_block' argument.
8839
eed3f8ab
DC
88402003-05-19 David Carlton <carlton@bactrian.org>
8841
8842 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8843
a09d8bda
ML
88442003-05-19 Michal Ludvig <mludvig@suse.cz>
8845
8846 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8847 register numbers mapping.
8848
69636828
AF
88492003-05-18 Adam Fedor <fedor@gnu.org>
8850
8851 * symtab.c (completion_list_objc_symbol): New function.
8852 (make_symbol_completion_list): Use it to add ObjC symbols
8853 when looking though the list.
8854 (language_search_unquoted_string): New function.
8855 (make_file_symbol_completion_list): Use it.
8856
55baeb84
AS
88572003-05-18 Andreas Schwab <schwab@suse.de>
8858
d0b45d99
AS
8859 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8860 dependencies.
8861 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8862 as m68k_linux_extract_return_value.
8863 (DEPRECATED_STORE_RETURN_VALUE): Define as
8864 m68k_linux_store_return_value.
8865 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8866 m68k_linux_extract_struct_value_address.
8867 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8868 get_next_frame, get_frame_base, get_frame_pc.
8869 (m68k_linux_frame_saved_pc): Use get_frame_base.
8870 (m68k_linux_extract_return_value): New function.
8871 (m68k_linux_store_return_value): New function.
8872 (m68k_linux_extract_struct_value_address): New function.
8873 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8874
55baeb84
AS
8875 * c-exp.y (typebase): Remove duplicate occurence of
8876 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8877 of lookup_signed_typename.
55baeb84 8878
b6b08ebf
MK
88792003-05-18 Mark Kettenis <kettenis@gnu.org>
8880
8881 * dwarf2loc.c (find_location_expression): Change type of second
8882 argument to `size_t *'.
8883 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8884 for size variable.
8885
5ad1c190
DC
88862003-05-18 David Carlton <carlton@bactrian.org>
8887
8888 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8889 'linkage_name'. Add comment.
8890 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8891 'linkage_name'.
8892 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8893 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8894 (lookup_block_symbol): Ditto.
8895
b8b527c5
AC
88962003-05-16 Andrew Cagney <cagney@redhat.com>
8897
8898 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8899 * gdbarch.h, gdbarch.c: Re-generate.
8900 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8901 * TODO (REGISTER_BYTES): Delete reference.
8902 * alpha-tdep.c (alpha_gdbarch_init): Update.
8903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8904 * x86-64-tdep.c (x86_64_init_abi): Update.
8905 * vax-tdep.c (vax_gdbarch_init): Update.
8906 * v850-tdep.c (v850_gdbarch_init): Update.
8907 * sparc-tdep.c (sparc_gdbarch_init): Update.
8908 * sh-tdep.c (sh_gdbarch_init): Update.
8909 * s390-tdep.c (s390_gdbarch_init): Update.
8910 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8911 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8912 (ns32k_gdbarch_init_32382): Update.
8913 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8914 * mcore-tdep.c (mcore_gdbarch_init): Update.
8915 * m68k-tdep.c (m68k_gdbarch_init): Update.
8916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8917 * ia64-tdep.c (ia64_gdbarch_init): Update.
8918 * i386-tdep.c (i386_gdbarch_init): Update.
8919 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8920 * hppa-tdep.c (hppa_gdbarch_init): Update.
8921 * h8300-tdep.c (h8300_gdbarch_init): Update.
8922 * frv-tdep.c (frv_gdbarch_init): Update.
8923 * cris-tdep.c (cris_gdbarch_init): Update.
8924 * avr-tdep.c (avr_gdbarch_init): Update.
8925 * arm-tdep.c (arm_gdbarch_init): Update.
8926 * sparc-tdep.c (sparc_pop_frame): Update.
8927 * rs6000-tdep.c (rs6000_pop_frame): Update.
8928 * remote.c (init_remote_state): Update.
8929 (remote_prepare_to_store): Update.
8930 * remote-vx.c (vx_prepare_to_store): Update.
8931 * remote-sds.c (sds_fetch_registers): Update.
8932 (sds_prepare_to_store): Update.
8933 * remote-array.c: Update.
8934 * regcache.c (init_legacy_regcache_descr): Update.
8935 (init_regcache_descr): Update.
8936 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8937 (mips_o64_extract_return_value): Update.
8938 * irix5-nat.c (fetch_core_registers): Update.
8939 * irix4-nat.c (fetch_core_registers): Update.
8940 * i386-tdep.h: Update.
8941 * hppa-tdep.c (pa_do_registers_info): Update.
8942 (pa_do_strcat_registers_info): Update.
8943 * cris-tdep.c (cris_register_bytes_ok): Update.
8944 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8945 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8946 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8947 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8948 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8949 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8950 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8951 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8952 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8953 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8954 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8955 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8956 (REGISTER_BYTES_OK): Update.
8957 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8958 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8959
ee2842e2
ILT
89602003-05-16 Ian Lance Taylor <ian@airs.com>
8961
8962 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8963 (vax_print_insn, print_insn_arg): Remove static functions.
8964 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8965 print_insn_vax from opcodes library.
8966 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8967
973177d3
AC
89682003-05-15 Andrew Cagney <cagney@redhat.com>
8969
aaab4dba
AC
8970 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8971 * target.h (memory_breakpoint_from_pc): Delete declaration.
8972 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8973 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8974 * monitor.c (monitor_insert_breakpoint): Use
8975 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8976 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8977 * gdbarch.h, gdbarch.c: Re-generate.
8978 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8979 (sparc_gdbarch_init): Set breakpoint_from_pc to
8980 sparc_breakpoint_from_pc.
8981 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8982 (BREAKPOINT_FROM_PC): Define.
8983 (sparc_breakpoint_from_pc): Declare.
8984 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8985 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8986 (BREAKPOINT_FROM_PC): Define.
8987 (BREAKPOINT): Delete macro.
8988 * target.h: Update comment.
8989 * s390-tdep.c (s390_gdbarch_init): Update comments.
8990 * remote.c: Update comments.
8991 * remote-mips.c: Update comments.
8992 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8993 * mem-break.c: Update comment.
8994 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8995 (ia64_memory_insert_breakpoint): Update.
8996 * config/sparc/tm-sparc.h: Update comment.
8997 * config/pa/tm-hppa64.h: Update comment.
8998 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8999 (rs6000_breakpoint_from_pc): Update.
9000 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9001 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9002 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9003 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9004 (mips_breakpoint_from_pc): Update.
9005 (mips_dump_tdep): Update.
9006
e06963ff
AC
9007 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9008 * minsyms.c (lookup_minimal_symbol): Inline
9009 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9010
973177d3
AC
9011 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9012 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9013 * p-lang.c (pascal_printstr): Ditto.
9014 * objc-lang.c (objc_printstr): Ditto.
9015 * m2-lang.c (m2_printstr): Ditto.
9016 * jv-valprint.c (java_print_value_fields): Ditto.
9017 * f-lang.c (f_printstr): Ditto.
9018 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9019 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9020 for repeat_count_threshold.
9021 * Makefile.in (cp-valprint.o): Update dependencies.
9022
5ea2bd7f 90232003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9024
5ea2bd7f
JJ
9025 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9026 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9027 they start with mov r2,r12. Support skipping over indirect stores
9028 of the input registers. Upon hitting a non-nop branch instruction
9029 or predicated instruction, bail out by setting lim_pc to the current
9030 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9031 beyond our calculated value and we have trust_limit set,
9032 use the lim_pc value.
9033
cc8c88f3
AC
90342003-05-15 Andrew Cagney <cagney@redhat.com>
9035
9036 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9037 generic_find_dummy_frame.
9038 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9039 (deprecated_generic_find_dummy_frame): Update.
9040 (deprecated_read_register_dummy): Update.
9041 * frame.c (deprecated_generic_get_saved_register): Update.
9042
909cd28e
TR
90432003-05-15 Theodore A. Roth <troth@openavr.org>
9044
9045 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9046 (avr_gdbarch_init): Set breakpoint_from_pc method.
9047
b923b08d
AC
90482003-05-15 Andrew Cagney <cagney@redhat.com>
9049
9050 * regcache.c (build_regcache): Set deprecated_register_valid
9051 directly.
9052 (deprecated_grub_regcache_for_register_valid): Delete function.
9053 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9054 declaration.
9055
ae2f03ac 90562003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9057
9058 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9059 * symtab.c (lookup_symbol_aux): Delete calls to
9060 lookup_symbol_aux_minsyms.
9061 (lookup_symbol_aux_minsyms): Comment out function and
9062 prototype. Delete lookup by mangled name.
ae2f03ac 9063
18ec9831
KB
90642003-05-14 Kevin Buettner <kevinb@redhat.com>
9065
9066 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9067 correctly indicate an empty stack and ``stack_allocated'' to the
9068 indicate the number of elements initially allocated.
9069 (dwarf_expr_grow_stack): Simplify method for computing new
9070 stack size. Don't loop infinitely if ``stack_len'' is zero.
9071 (execute_stack_op): Move ``ctx->in_reg'' initialization
9072 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9073 be used in conjuction with DW_OP_piece. Revise error message
9074 accordingly.
9075
de18ac1f
TR
90762003-05-14 Theodore A. Roth <troth@openavr.org>
9077
9078 * MAINTAINERS: Update my email address.
9079 * avr-tdep.c: Ditto.
9080
176620f1
EZ
90812003-05-14 Elena Zannoni <ezannoni@redhat.com>
9082
9083 * symtab.h (enum domain_enum): Rename from namespace_enum.
9084 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9085 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9086 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9087 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9088 TYPES_NAMESPACE, METHODS_NAMESPACE.
9089 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9090 (struct symbol, struct partial_symbol): Rename field
9091 'namespace_enum namespace' to 'domain_enum domain'.
9092 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9093 Delete old define kludge for namespace.
9094
9095 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9096 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9097 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9098 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9099 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9100 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9101 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9102 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9103 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9104 occurrences of the above.
9105
b7f31508
ILT
91062003-05-14 Ian Lance Taylor <ian@airs.com>
9107
9108 * Makefile.in (install-only): Use $(SHELL) when running
9109 mkinstalldirs.
9110
2fdbdd39
ILT
91112003-05-13 Ian Lance Taylor <ian@airs.com>
9112
a208d82c
ILT
9113 * MAINTAINERS (write after approval): Add myself.
9114
2fdbdd39
ILT
9115 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9116 second and third arguments.
9117 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9118 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9119
fbd9dcd3
AC
91202003-05-13 Andrew Cagney <cagney@redhat.com>
9121
9122 * defs.h (store_address): Delete declaration.
9123 findvar.c (store_address): Delete function.
9124 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9125 store_unsigned_integer.
9126 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9127 * v850-tdep.c (v850_push_arguments): Ditto.
9128 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9129 * sh-tdep.c (sh64_get_saved_register): Ditto.
9130 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9131 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9132 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9133 (mips_get_saved_register): Ditto.
9134 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9135 (find_func_descr, ia64_push_arguments): Ditto.
9136 * i386-tdep.c (i386_push_arguments): Ditto.
9137 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9138 * frv-tdep.c (frv_push_arguments): Ditto.
9139 * frame.c (legacy_saved_regs_prev_register): Ditto.
9140 (deprecated_generic_get_saved_register): Ditto.
9141 * findvar.c (unsigned_address_to_pointer): Ditto.
9142 * dwarf2read.c (dwarf2_const_value): Ditto.
9143 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9144 * alpha-tdep.c (alpha_push_arguments): Ditto.
9145
6760f9e6
JB
91462003-05-12 J. Brobecker <brobecker@gnat.com>
9147
9148 * NEWS: Mention that the hppa-hpux port has been partially
9149 multiarched (32bit ABIT only, so far).
9150
30e221b4
AC
91512003-05-11 Andrew Cagney <cagney@redhat.com>
9152
9153 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9154 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9155 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9156 sim/testsuite/sim/arm/misaligned2.ms, and
9157 sim/testsuite/sim/arm/misaligned3.ms.
9158 * disasm.h (struct ui_file): Add opaque struct declaration.
9159 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9160 * frame.h (struct ui_file): Ditto.
9161
dea7f9ba
MK
91622003-05-11 Mark Kettenis <kettenis@gnu.org>
9163
9164 * value.h: Pretty print.
9165
01986c48
MK
91662003-05-10 Mark Kettenis <kettenis@gnu.org>
9167
9168 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9169
123a958e
AC
91702003-05-08 Andrew Cagney <cagney@redhat.com>
9171
9172 * regcache.h (max_register_size): Delete declaration.
9173 * regcache.c (max_register_size): Delete function.
9174 (struct regcache_descr): Delete field "max_register_size".
9175 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9176 registers fit in MAX_REGISTER_SIZE.
9177 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9178 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9179 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9180 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9181 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9182 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9183 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9184 * dve3900-rom.c, hppa-tdep.c: Ditto.
9185
eb294659
DC
91862003-05-08 David Carlton <carlton@math.stanford.edu>
9187
9188 * valops.c (push_word): Fix typo.
9189
d9d9c31f
AC
91902003-05-08 Andrew Cagney <cagney@redhat.com>
9191
9192 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9193 * gdbarch.h: Re-generate.
9194 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9195 (legacy_max_register_raw_size): Delete declaration.
9196 * regcache.c (legacy_max_register_raw_size): Delete function.
9197 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9198 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9199 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9200 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9201 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9202 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9203 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9204 * findvar.c, dwarf2cfi.c: Ditto.
9205
22540ece
AC
92062003-05-08 Andrew Cagney <cagney@redhat.com>
9207
9208 * mips-tdep.c (read_signed_register): New function, moved to here
9209 from "regcache.c".
9210 (read_signed_register_pid): Ditto.
9211 * regcache.c (read_signed_register_pid): Delete function, moved to
9212 "mips-tdep.c".
9213 (read_signed_register): Ditto.
9214 * regcache.h (read_signed_register): Delete declaration.
9215 (read_signed_register_pid): Delete declaration.
9216
0c92afe8
AC
92172003-05-08 Andrew Cagney <cagney@redhat.com>
9218
9219 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9220 * gdbarch.h: Re-generate.
9221 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9222 (legacy_max_register_virtual_size): Delete declaration.
9223 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9224 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9225 * tracepoint.c (memrange_sortmerge): Ditto.
9226 * sparc-tdep.c (sparc_print_registers): Ditto.
9227 * regcache.c (legacy_max_register_virtual_size): Delete function.
9228
6037b830
JB
92292002-05-08 J. Brobecker <brobecker@gnat.com>
9230
9231 * fork-child.c (escape_bang_in_quoted_argument): New function.
9232 (fork_inferior): Escape '!' characters in quoted arguments
9233 only when needed.
9234
5d62c8b1
JB
92352003-05-08 J. Brobecker <brobecker@gnat.com>
9236
9237 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9238 the language of the CU is not currently supported by GDB.
9239
20a0e81d
JB
92402003-05-08 J. Brobecker <brobecker@gnat.com>
9241
9242 * defs.h (language): Add language_minimal enum value.
9243 * c-lang.c (minimal_language_defn): New language definition.
9244 (_initialize_c_language): Add the new minimal language to the list
9245 of languages known to GDB.
9246
710ee10a
KB
92472003-05-08 Kevin Buettner <kevinb@redhat.com>
9248
9249 * frame.c (get_frame_type): Don't attempt to lazily initialize
9250 frame's unwinder for legacy frames.
9251
1750fa04
AC
92522003-05-07 Andrew Cagney <cagney@redhat.com>
9253
9254 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9255 and "regcache" parameters.
9256 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9257
ddf9f258 92582003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9259
9260 * dwarf2read.c (dwarf_decode_lines): Only use output of
9261 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9262 the current address.
9263
87767c29
AC
92642003-05-07 Andrew Cagney <cagney@redhat.com>
9265
9266 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9267 code.
9268
5e7b2f39
JB
92692003-05-07 Jim Blandy <jimb@redhat.com>
9270
9271 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9272 'maint info symtabs' and 'maint info psymtabs'.
9273 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9274 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9275 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9276 Declarations updated.
9277 * maint.c (maintenance_list_command): Delete.
9278 (_initialize_maint_cmds): Update calls to add_cmd.
9279 * gdbcmd.h (maintenancelistlist): Delete declaration.
9280 * cli/cli-cmds.c (maintenancelistlist): Delete.
9281 (init_cmd_lists): Don't initialize it.
9282 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9283
f6684c31
AC
92842003-05-07 Andrew Cagney <cagney@redhat.com>
9285
9286 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9287 "regcache".
9288 (d10v_print_registers_info): Update.
9289 (d10v_dmap_register, d10v_imap_register): Delete functions.
9290 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9291 and "imap_register".
9292 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9293 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9294 * arch-utils.c (generic_remote_translate_xfer_address): Add
9295 "regcache" and "gdbarch" parameters.
9296 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9297 parameter. Change class to multi-arch.
9298 * gdbarch.h, gdbarch.c: Re-generate.
9299 * remote.c (remote_xfer_memory): Use
9300 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9301
e4846b08
JJ
93022003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9303
9304 * infrun.c (prev_pc): Move declaration ahead of proceed().
9305 (proceed): Refresh prev_pc value before resuming.
9306 (stop_stepping): Remove code to refresh prev_pc.
9307
6b71b8ac
KW
93082003-05-06 Kris Warkentin <kewarken@qnx.com>
9309
9310 * nto-tdep.c: Removed stray comment.
9311
47979a4b
KW
93122003-05-06 Kris Warkentin <kewarken@qnx.com>
9313
9314 * i386-nto-tdep.c: Fix old K&R function definitions.
9315 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9316 Also change add_show_from_set() call to add_setshow_cmd().
9317 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9318
00905d52
AC
93192003-05-05 Andrew Cagney <cagney@redhat.com>
9320
9321 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9322 (fprint_dummy_frames): New function.
9323 (maintenance_print_dummy_frames): New function.
9324 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9325 * frame.c (fprint_frame_id): Make global.
9326 * frame.h (fprint_frame_id): Declare.
9327 * Makefile.in (dummy-frame.o): Update dependencies.
9328
b1e29e33
AC
93292003-05-05 Andrew Cagney <cagney@redhat.com>
9330
9331 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9332 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9333 SIZEOF_CALL_DUMMY_WORDS.
9334 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9335 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9336 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9337 CALL_DUMMY_BREAKPOINT_OFFSET.
9338 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9339 CALL_DUMMY_START_OFFSET.
9340 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9341 * gdbarch.h, gdbarch.c: Re-generate.
9342 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9343 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9344 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9345 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9346 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9347 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9348 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9349 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9350 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9351 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9352 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9353 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9354 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9355 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9356 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9357
93582003-05-05 Kris Warkentin <kewarken@qnx.com>
9359
9360 * configure.tgt: Add i[3456]86-*-nto*.
9361 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9362 * nto-tdep.c: New file. Neutrino target support routines.
9363 * nto-tdep.h: New file. Neutrino target header.
9364 * config/tm-qnxnto.h: New file.
9365 * config/i386/i386nto.mt: New file.
9366 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9367
0ce3d317
AC
93682003-05-04 Andrew Cagney <cagney@redhat.com>
9369
9370 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9371 (load_infrun_state): Ditto.
9372 (struct thread_info): Drop "prev_func_name" field.
9373 * thread.c (load_infrun_state): Update.
9374 (save_infrun_state): Update.
9375 * infrun.c (prev_func_name): Delete variable.
9376 (init_wait_for_inferior): Do not clear prev_func_name.
9377 (stop_stepping, keep_going, context_switch): Do not swap
9378 prev_func_name.
9379 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9380 instead of PC_IN_SIGTRAMP.
9381
46654a5b
AC
93822003-05-04 Andrew Cagney <cagney@redhat.com>
9383
9384 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9385 REGISTER_BYTE with register_offset_hack.
9386 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9387 that REGISTER_BYTE is consistent with the regcache.
9388 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9389 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9390
14b08c1b
MK
93912003-05-04 Mark Kettenis <kettenis@gnu.org>
9392
04c8243f
MK
9393 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9394 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9395
14b08c1b
MK
9396 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9397
c7a11e01
JB
93982003-05-03 J. Brobecker <brobecker@gnat.com>
9399
9400 From Thierry Schneider <tpschneider1@yahoo.com>
9401 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9402 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9403 (mi-cmd-symbol.o): Add rule.
9404
7043d8dc
AC
94052003-05-03 Andrew Cagney <cagney@redhat.com>
9406
9407 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9408 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9409 * gdbarch.h, gdbarch.c: Re-generate.
9410 * d10v-tdep.c (d10v_push_dummy_code): New function.
9411 (d10v_gdbarch_init): Set push_dummy_code.
9412 * infcall.c (legacy_push_dummy_code): New function.
9413 (generic_push_dummy_code): New function.
9414 (push_dummy_code): New function.
9415 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9416 instead of dummy_addr, to push_dummy_call. Move call to
9417 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9418 switch.
9419 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9420
92bf2b80
AC
94212003-05-03 Andrew Cagney <cagney@redhat.com>
9422
9423 * disasm.h (print_insn): Declare.
9424 * disasm.c (init_gdb_disassemble_info): New function.
9425 (gdb_disassembly): Call init_gdb_disassemble_info.
9426 (gdb_print_insn): New function.
9427 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9428 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9429 * mcore-tdep.c: Include "disasm.h"
9430 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9431 * d10v-tdep.c: Include "disasm.h".
9432 (display_trace): Call gdb_print_insn, instead of print_insn.
9433 (print_insn): Delete function.
9434 * printcmd.c: Include "disasm.h".
9435 (print_insn): Delete function.
9436 (print_formatted): Call gdb_print_insn, instead of print_insn.
9437 * Makefile.in (printcmd.o): Update dependencies.
9438 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9439
27d94c49
AC
94402003-05-02 Andrew Cagney <cagney@redhat.com>
9441
82de1e5b
AC
9442 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9443 PC_REGNUM, re-indent.
9444 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9445 PC_REGNUM isn't set.
9446
27d94c49
AC
9447 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9448 * gdbarch.h, gdbarch.c: Re-generate.
9449 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9450 register_virtual_size, pc_regnum, or register_bytes.
9451 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9452 (d10v_register_type): Use D10V_PC_REGNUM.
9453 (d10v_print_registers_info, d10v_read_pc): Ditto.
9454 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9455 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9456
a9c0dc7f
DC
94572003-05-02 David Carlton <carlton@bactrian.org>
9458
9459 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9460 the name with mstrsave.
9461
e33d66ec
EZ
94622003-05-02 Elena Zannoni <ezannoni@redhat.com>
9463
9464 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9465 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9466 (host_charset_name, target_charset_name): New vars for use by
9467 set/show commands.
9468 (host_charset_enum, target_charset_enum): New enums for set/show
9469 commands.
9470 (set_charset_sfunc, set_host_charset_sfunc,
9471 set_target_charset_sfunc): New functions.
9472 (set_host_charset, set_target_charset): Make static.
9473 (list_charsets, set_host_charset_command,
9474 set_target_charset_command): Delete functions.
9475 (show_charset_command): Rewrite as....
9476 (show_charset): Hook this up with the set/show command mechanism.
9477 (_initialize_charset): Change names of charsets to match the
9478 set/show enums. Use host_charset_name and target_charset_name.
9479 Use set/show mechanism for charset, host-charset, target-charset
9480 commands. Do not make 'show host-charset' and 'show
9481 target-charset' be aliases of 'show charset'.
9482
9483 * charset.h (set_host_charset, set_target_charset): Don't export,
9484 they are not used outside the file.
9485
2b6fd0d8
AC
94862003-05-01 Andrew Cagney <cagney@redhat.com>
9487
9488 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9489 (gdb_disassembly): Make "di" non static, always initialize and
9490 cleanup. Always use dis_asm_read_memory.
9491 (gdb_dis_asm_read_memory): Delete function.
9492
6ae2f580
AC
94932003-05-01 Andrew Cagney <cagney@redhat.com>
9494
9495 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9496 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9497
810ecf9f
AC
94982003-04-30 Andrew Cagney <cagney@redhat.com>
9499
9500 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9501 "tm_print_insn_info".
9502 (TARGET_PRINT_INSN_INFO): Delete macro.
9503 (dis_asm_read_memory): Delete function declaration.
9504 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9505 (tm_print_insn_info): Delete variable definition.
9506 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9507 * gdbarch.h, gdbarch.c: Re-generate.
9508 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9509 "deprecated_tm_print_insn_info".
9510 * mcore-tdep.c (mcore_dump_insn): Ditto.
9511 * mips-tdep.c (mips_gdbarch_init): Ditto.
9512 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9513 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9514 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9515 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9516 instead of TARGET_PRINT_INSN_INFO, add comment.
9517 * s390-tdep.c (s390_get_frame_info): Instead of
9518 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9519 (s390_check_function_end, s390_is_sigreturn): Ditto.
9520 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9521 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9522 * disasm.c: Include "gdbcore.h".
9523 (_initialize_disasm): New function, initialize
9524 "deprecated_tm_print_insn_info".
9525 (deprecated_tm_print_insn_info): New variable.
9526 (dis_asm_read_memory): Moved from "corefile.c", made static.
9527 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9528 * Makefile.in (disasm.o): Update dependencies.
9529
07020390
AC
95302003-04-30 Andrew Cagney <cagney@redhat.com>
9531
9532 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9533
a9fa03de
AF
95342003-04-29 Adam Fedor <fedor@gnu.org>
9535
9536 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9537 * infcall.c (find_function_addr): Make non-static.
9538 * infcall.h (find_function_addr): Declare.
9539 * Makefile.in (eval.o): Update dependencies.
9540
1bae87b9
AF
95412003-04-28 Adam Fedor <fedor@gnu.org>
9542
9543 * symtab.c (symbol_find_demangled_name): Check for and demangle
9544 ObjC symbols.
9545 (symbol_init_demangled_name): Init for language_objc as well.
9546
0ba6dca9
AC
95472003-04-28 Andrew Cagney <cagney@redhat.com>
9548
9549 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9550 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9551 * gdbarch.h, gdbarch.c: Re-generate.
9552 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9553 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9554 * inferior.h (deprecated_read_fp): Rename read_fp.
9555 (generic_target_read_fp): Delete declaration.
9556 * regcache.c (generic_target_read_fp): Delete function.
9557 (deprecated_read_fp): Replace read_fp, use
9558 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9559 * d10v-tdep.c (d10v_read_fp): Delete function.
9560 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9561
9562 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9563 deprecated_target_read_fp to generic_target_read_fp.
9564 * sh-tdep.c (sh_gdbarch_init): Ditto.
9565 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9567 * frv-tdep.c (frv_gdbarch_init): Ditto.
9568
9569 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9570 deprecated_fp_regnum.
9571 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9572 * vax-tdep.c (vax_gdbarch_init): Ditto.
9573 * v850-tdep.c (v850_gdbarch_init): Ditto.
9574 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9575 * sh-tdep.c (sh_gdbarch_init): Ditto.
9576 * s390-tdep.c (s390_gdbarch_init): Ditto.
9577 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9578 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9579 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9580 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9582 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9583 * i386-tdep.c (i386_gdbarch_init): Ditto.
9584 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9585 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9586 * frv-tdep.c (frv_gdbarch_init): Ditto.
9587 * cris-tdep.c (cris_gdbarch_init): Ditto.
9588 * avr-tdep.c (avr_gdbarch_init): Ditto.
9589 * arm-tdep.c (arm_gdbarch_init): Ditto.
9590 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9591
9592 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9593 * v850-tdep.c (v850_gdbarch_init): Ditto.
9594 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9595 * sh-tdep.c (sh_gdbarch_init): Ditto.
9596 * s390-tdep.c (s390_gdbarch_init): Ditto.
9597 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9598 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9599 * mips-tdep.c (mips_gdbarch_init): Ditto.
9600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9601 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9602 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9603 * frv-tdep.c (frv_gdbarch_init): Ditto.
9604 * avr-tdep.c (avr_gdbarch_init): Ditto.
9605 * arm-tdep.c (arm_gdbarch_init): Ditto.
9606
9607 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9608 DEPRECATED_FP_REGNUM.
9609 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9610 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9611 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9612 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9613 (sparc32_register_virtual_type): Ditto.
9614 * sh-tdep.c (sh64_frame_chain): Ditto.
9615 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9616 (sh_nofp_frame_init_saved_regs): Ditto.
9617 (sh64_nofp_frame_init_saved_regs): Ditto.
9618 (sh_fp_frame_init_saved_regs): Ditto.
9619 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9620 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9621 * procfs.c (procfs_fetch_registers): Ditto.
9622 (procfs_store_registers): Ditto.
9623 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9624 (store_inferior_registers, fetch_core_registers): Ditto.
9625 (fetch_kcore_registers, clear_regs): Ditto.
9626 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9627 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9628 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9629 * nlm/i386.c (do_status): Ditto.
9630 * mipsv4-nat.c (supply_gregset): Ditto.
9631 * mips-tdep.c: Ditto for comments.
9632 * mips-nat.c (fetch_inferior_registers): Ditto.
9633 (store_inferior_registers, fetch_core_registers): Ditto.
9634 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9635 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9636 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9637 (i386_do_pop_frame, i386_register_type): Ditto.
9638 * hppa-tdep.c (hppa_frame_chain): Ditto.
9639 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9640 (hppa_pop_frame, hppa_read_fp): Ditto.
9641 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9642 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9643 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9644 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9645 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9646 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9647 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9648 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9649 * blockframe.c: Ditto for comments.
9650 * arch-utils.h: Ditto for comments.
9651 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9652 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9653 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9654 * alpha-tdep.h: Ditto for comments.
9655 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9656 (alpha_cannot_store_register): Ditto.
9657 (alpha_push_dummy_frame): Ditto.
9658 * alpha-nat.c (supply_gregset): Ditto.
9659
9660 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9661 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9662 * config/sparc/tm-sparc.h: Update comment.
9663
9664 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9665 deprecated_read_fp instead of TARGET_READ_FP.
9666 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9667 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9668 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9669 deprecated_read_fp instead of read_fp.
9670 * s390-tdep.c (s390_push_arguments): Ditto.
9671 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9672 * frame.h: Ditto in comments.
9673 * frame.c (legacy_get_prev_frame): Ditto.
9674 * dummy-frame.c (dummy_frame_this_id): Ditto.
9675 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9676
d7a27068
AC
96772003-04-28 Andrew Cagney <cagney@redhat.com>
9678
9679 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9680 * gdbarch.h, gdbarch.c: Re-generate.
9681 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9682 * vax-tdep.c (_initialize_vax_tdep): Update.
9683 * v850-tdep.c (_initialize_v850_tdep): Update.
9684 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9685 * s390-tdep.c (_initialize_s390_tdep): Update.
9686 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9687 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9688 * mips-tdep.c (_initialize_mips_tdep): Update.
9689 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9690 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9691 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9692 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9693 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9694 * frv-tdep.c (_initialize_frv_tdep): Update.
9695 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9696 (_initialize_cris_tdep): Update.
9697 * arch-utils.c (legacy_print_insn): Update.
9698 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9699
d2630e69
AF
97002003-04-26 Adam Fedor <fedor@gnu.org>
9701
9702 * linespec.c (decode_objc): New function to decode ObjC calls
9703 (decode_line_1): Check for ObjC calls (using decode_objc)
9704 * Makefile (linespec.o): Update dependencies.
9705
3086aeae
DJ
97062003-04-26 Daniel Jacobowitz <drow@mvista.com>
9707
9708 * breakpoint.h (struct breakpoint_ops): New.
9709 (struct breakpoint): Add ops member.
9710
9711 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9712 (mention): Use new breakpoint ops member.
9713 (set_raw_breakpoint): Initialize ops field to NULL.
9714 (print_exception_catchpoint, print_one_exception_catchpoint)
9715 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9716 (gnu_v3_exception_catchpoint_ops): New.
9717 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9718
1fbec6c3
AF
97192003-04-25 Adam Fedor <fedor@gnu.org>
9720
9721 * Makefile.in (COMMON_OBS): Add objc-lang.o
9722
0ef21242
AC
97232003-04-25 Andrew Cagney <cagney@redhat.com>
9724
9725 * d10v-tdep.c (print_insn): Delete function.
9726 (display_trace): Use TARGET_PRINT_INSN.
9727 (_initialize_d10v_tdep): Do not set tm_print_insn.
9728 (d10v_gdbarch_init): Set print_insn.
9729
f75493ed
AC
97302003-04-25 Andrew Cagney <cagney@redhat.com>
9731
9732 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9733 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9734 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9735 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9736 (nr_dmap_regs, a0_regnum): ... new functions.
9737 (d10v_print_registers_info): Use a0_regnum, use register_size.
9738 (d10v_register_byte): Delete function.
9739 (d10v_register_raw_size): Delete function.
9740 (d10v_register_type): Use a0_regnum.
9741 (d10v_print_registers_info): Use a0_regnum.
9742 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9743 (d10v_gdbarch_init): Do not set register_byte or
9744 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9745 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9746 extract_address.
9747 (trace_command): Use XCALLOC.
9748 (print_insn): Delete reference to tm_print_insn.
9749 (saved_regs_unwinder): Use store_unsigned_integer instead of
9750 store_address.
9751 * frame.h (FRAME_OBSTACK_CALLOC): Define
9752
2202b100
DC
97532003-04-25 David Carlton <carlton@bactrian.org>
9754
9755 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9756
4e45ca2e
AF
97572003-04-24 Adam Fedor <fedor@gnu.org>
9758
9759 * objc-lang.c: Include "valprint.h"
9760 * Makefile.in (objc-lang.o): Update dependencies.
9761
93de3e7f
AF
97622003-04-24 Adam Fedor <fedor@gnu.org>
9763
8ffd9b1b 9764 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9765 architecture dependant compilation and mark as unimplemented
9766 (until they get put in the gdbarch vector).
9767
0f20eeea
DC
97682003-04-23 David Carlton <carlton@bactrian.org>
9769
9770 * cp-support.c (cp_find_first_component): Accept 'operator' in
9771 more locations.
9772
74cfe982
AC
97732003-04-23 Andrew Cagney <cagney@redhat.com>
9774
9775 * infcall.c (call_function_by_hand): Eliminate redundant
9776 indentation. Move "saved_async" and "old_cleanups" to where they
9777 are needed.
8ffd9b1b 9778
52557533
AC
97792003-04-23 Andrew Cagney <cagney@redhat.com>
9780
9781 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9782 and "buffer". Move the "name" code to where it is needed.
9783
158775de
AC
97842003-04-23 Andrew Cagney <cagney@redhat.com>
9785
9786 * infcall.c (call_function_by_hand): Move variables "start_sp",
9787 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9788 code to ON_STACK switch branch.
8ffd9b1b 9789
ebc7896c
AC
97902003-04-23 Andrew Cagney <cagney@redhat.com>
9791
9792 * infcall.c (call_function_by_hand): Make declaration of "i",
9793 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9794 lint.
9795
d727590f
AC
97962003-04-23 Andrew Cagney <cagney@redhat.com>
9797
9798 * infcall.c (call_function_by_hand): Delete variable
9799 "n_method_args". Localize "param_type"'s declaration to the loop
9800 that it is used. Reinstate code assigning to said variable -
9801 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9802 Rationalize code using "param_type".
9803
d585e13a
AC
98042003-04-22 Andrew Cagney <cagney@redhat.com>
9805
9806 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9807 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9808 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9809 to DEPRECATED_PUSH_RETURN_ADDRESS.
9810
051caad9
KB
98112003-04-22 Kevin Buettner <kevinb@redhat.com>
9812
9813 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9814 on the DWARF2 register number prior to fetching a register.
9815
77296879
JB
98162003-04-22 J. Brobecker <brobecker@gnat.com>
9817
9818 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9819 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9820 this macro was always set to 0.
77296879
JB
9821 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9822 considering the fact that this macro was always set to 0.
9823 * hppa-tdep.h (hppa_store_return_value): Likewise.
9824 (hppa_extract_return_value): Likewise.
9825
4252f1df
JB
98262003-04-22 J. Brobecker <brobecker@gnat.com>
9827
9828 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9829 the hppa-pro target only.
9830
14604c6b
JB
98312003-04-21 J. Brobecker <brobecker@gnat.com>
9832
9833 Ongoing multi-arch conversion effort for HP/UX:
9834 * config/pa/tm-hppa.h: Move all macro that are no longer
9835 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9836 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9837
77eb01d1
JB
98382003-04-21 J. Brobecker <brobecker@gnat.com>
9839
9840 * config/pa/tm-hppa.h: Obsolete a section that was only used
9841 for hppa-pro.
9842
61995b3b
JB
98432003-04-21 J. Brobecker <brobecker@gnat.com>
9844
9845 Ongoing multi-arch conversion for HP/UX.
9846 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9847 if already defined (allows hppa64 to stay non-multiarched for now).
9848 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9849
4aa79dcc
AC
98502003-04-21 Andrew Cagney <cagney@redhat.com>
9851
9852 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9853
0f751ff2
AC
98542003-04-21 Andrew Cagney <cagney@redhat.com>
9855
9856 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9857 "i386_num_mmx_regs".
9858
04714b91
AC
98592003-04-21 Andrew Cagney <cagney@redhat.com>
9860
9861 * infcall.c: New file.
9862 * infcall.h: New file.
9863 * valarith.c: Include "infcall.h".
9864 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9865 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9866 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9867 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9868 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9869 (SFILES): Add "infcall.c"
9870 (COMMON_OBS): Add "infcall.o".
9871 (infcall.o): Specify dependencies.
9872 * value.h (call_function_by_hand): Delete declaration.
9873 * inferior.h (run_stack_dummy): Delete declaration.
9874 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9875 (run_stack_dummy): Move to "infcall.c", merged into
9876 call_function_by_hand.
9877 * valops.c (call_function_by_hand): Moved to "infcall.c".
9878 (find_function_addr, value_arg_coerce): Ditto.
9879 (unwindonsignal_p, coerce_float_to_double): Ditto.
9880 (_initialize_valops): Move "set/show coerce-float-to-double", and
9881 "set/show unwindonsignal" commands to "infcall.c".
9882 * v850-tdep.c, target.h: Update comments.
9883 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9884 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9885 (sh64_init_extra_frame_info): Update comments.
9886 * mn10300-tdep.c: Update comments.
9887 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9888 * config/sparc/tm-sparc.h: Update comments.
9889 * breakpoint.h: Update comments.
9890 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9891 * arm-tdep.c: Update comment.
9892
f9d3c2a8
MK
98932003-04-19 Mark Kettenis <kettenis@gnu.org>
9894
c40e1eab
MK
9895 * i386-tdep.c (i386_num_register_names): New variable.
9896 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9897 (MM0_REGNUM): Remove redundant parentheses in define.
9898 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9899 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9900 i386_mxcsr_regnum_p): Remove redundant parentheses.
9901 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9902
94ea66b3
MK
9903 * i386-tdep.c (i386_extract_return_value,
9904 i386_store_return_value): Correct check for availability of
9905 floating-point registers.
9906
54299a1d
MK
9907 * i386-tdep.c (i386_frame_num_args): Remove function.
9908 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9909
c86c27af
MK
9910 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9911 mmx_regnum_to_fp_regnum. Adjust all callers.
9912
f9d3c2a8
MK
9913 * i386-tdep.c (i386_get_longjmp_target): Use
9914 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9915 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9916 extract_address.
9917
94ba74a9
MK
99182003-04-19 Mark Kettenis <kettenis@gnu.org>
9919
9920 * core-regset.c: Update comments to reflect reality. Re-order
9921 includes.
9922 (fetch_core_registers): Use switch instead of if. Remove
9923 redundant prototype.
9924
4074e13c
JB
99252003-04-18 Jim Blandy <jimb@redhat.com>
9926
9927 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9928 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9929
e3ab4aba
RH
99302003-04-17 Richard Henderson <rth@redhat.com>
9931
9932 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9933
627bf7c1
EZ
99342003-04-17 Michael Snyder <msnyder@redhat.com>
9935 Karen Bennet <bennet@redhat.com>
9936
9937 Committed by Elena Zannoni <ezannoni@redhat.com>
9938 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9939
514621a9
EZ
99402003-04-17 Elena Zannoni <ezannoni@redhat.com>
9941
9942 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9943 value if the return type is void.
514621a9 9944
b4acd559
JJ
99452003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9946
9947 * thread-db.c: Reindented.
8ffd9b1b 9948
530b167e 99492003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9950
9951 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9952 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9953 as types.
9954
0a48e7e8
MS
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
8ffd9b1b 9978
ab9fe00e
KB
99792003-04-16 Kevin Buettner <kevinb@redhat.com>
9980
610a3745 9981 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9982 the size of ``long double'' to 16, instead of 8.
9983
e64a344c
MK
99842003-04-16 Mark Kettenis <kettenis@gnu.org>
9985
9986 * i386-linux-nat.c: Add some whitespace to make things more
9987 readable.
9988 (fetch_register, store_register, fetch_inferior_registers,
9989 store_inferior_registers): Get rid of assignment in if-statement.
9990 (store_register): Fix typo in error message.
9991
25d41031
AC
99922003-04-16 Andrew Cagney <cagney@redhat.com>
9993
9994 * utils.c (xmmalloc): Always allocate something, matches
9995 libiberty/xmalloc's semantics.
9996 (xmrealloc, xmcalloc): Ditto.
9997
c50901fd
AC
99982003-04-16 Andrew Cagney <cagney@redhat.com>
9999
10000 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10001 update comments.
10002 (get_frame_type): Initialize unwind and type when needed.
10003 (get_frame_id, frame_register_unwind): Ditto.
10004
f81824a9
AC
100052003-04-16 Andrew Cagney <cagney@redhat.com>
10006
10007 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10008 obsolete.
10009 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10010 * sparcl-stub.c: Obsolete file.
10011 * config/sparc/tm-sparclet.h: Obsolete file.
10012 * sparclet-stub.c: Obsolete file.
10013 * sparclet-rom.c: Obsolete file.
10014 * sparcl-tdep.c: Obsolete file.
10015 * config/sparc/tm-sparclite.h: Obsolete file.
10016 * config/sparc/sparclite.mt: Obsolete file.
10017 * config/sparc/sparclet.mt: Obsolete file.
10018 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10019 sparc86x-*-* obsolete.
10020
9219021c
DC
100212003-04-15 David Carlton <carlton@math.stanford.edu>
10022
10023 * Makefile.in (SFILES): Add cp-namespace.c.
10024 (COMMON_OBS): Add cp-namespace.o.
10025 (block.o): Depend on gdb_obstack_h and cp_support_h.
10026 (buildsym.o): Depend on cp_support_h.
10027 (cp-namespace.o): New.
10028 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10029 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10030 (dwarf2read.o): Depend on cp_support_h.
10031 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10032 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10033 processing_current_namespace.
10034 (read_namespace): Update processing_current_namespace; check for
10035 anonymous namespaces.
10036 (dwarf2_name): New function.
10037 (dwarf2_extension): Ditto.
10038 * cp-support.h: Update copyright, contributors.
10039 Add inclusion guards.
10040 Add opaque declaration for structs obstack, block, symbol.
10041 (struct using_direct): New struct.
10042 Add declarations for cp_find_first_component,
10043 cp_entire_prefix_len, processing_has_namespace_info,
10044 processing_current_namespace, cp_is_anonymous,
10045 cp_add_using_directive, cp_initialize_namespace,
10046 cp_finalize_namespace, cp_set_block_scope,
10047 cp_scan_for_anonymous_namespaces.
10048 * cp-namespace.c: New file.
10049 * cp-support.c: Update copyright.
10050 Include ctype.h, gdb_assert.h, gdbcmd.h.
10051 New variable maint_cplus_cmd_list.
10052 (cp_find_first_component): New function.
10053 (cp_entire_prefix_len, maint_cplus_command)
10054 (first_component_command, _initialize_cp_support): Ditto.
10055 * buildsym.c: Include cp-support.h.
10056 New variable using_list.
10057 (add_symbol_to_list): Check for anonymous namespaces.
10058 (finish_block): Set block's scope.
10059 (start_symtab): Initialize C++ namespace support.
10060 (end_symtab): Finalize C++ namespace support.
10061 * block.h: Add opaque declarations for structs
10062 block_namespace_info, using_direct, and obstack.
10063 Add declarations for block_set_scope and block_set_using.
10064 (struct block): Add 'language_specific' member.
10065 (BLOCK_NAMESPACE): New macro.
10066 * block.c: Include gdb_obstack.h and cp-support.h.
10067 (struct block_namespace_info): New struct.
10068 (block_set_scope): New function.
10069 (block_set_using, block_initialize_namespace): Ditto.
10070
d5a921c9
KB
100712003-04-14 Kevin Buettner <kevinb@redhat.com>
10072
10073 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10074 (locate_base): Return early if there aren't any link map offsets.
10075 (svr4_solib_create_inferior_hook): Warn if shared library support
10076 is unavailable.
10077
d2a52b27
DC
100782003-04-14 David Carlton <carlton@math.stanford.edu>
10079
10080 * symtab.c (symbol_set_names): Add prefix when storing Java names
10081 in hash table. Fix for PR java/1039.
10082
980cae7a
DC
100832003-04-14 David Carlton <carlton@math.stanford.edu>
10084
10085 * symtab.c (symbol_set_names): Rename 'name' arg to
10086 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10087 * symtab.h: Change 'name' argument in declaration of
10088 symbol_set_names to 'linkage_name'.
10089 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10090
e227b13c
AC
100912003-04-14 Andrew Cagney <cagney@redhat.com>
10092
10093 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10094 return the fully sign-extended register value.
10095 (get_frame_pointer): Ditto.
10096 (mips_pop_frame): Initialize "proc_desc" after checking for a
10097 dummy frame.
10098
36712a20
AC
100992003-04-14 Andrew Cagney <cagney@redhat.com>
10100
10101 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10102 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10103 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10104 (mips_push_register): Delete function.
10105 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10106 PUSH_FP_REGNUM.
10107
44ea7b70
JB
101082003-04-14 Jim Blandy <jimb@redhat.com>
10109
10110 * symmisc.c: #include "gdb_regex.h".
10111 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10112 functions.
10113 * maint.c (maintenance_list_command): New function.
10114 (_initialize_maint_cmds): Register the above as commands.
10115 * symtab.h (maintenance_list_symtabs,
10116 maintenance_list_psymtabs): New declarations.
10117 * cli/cli-cmds.c (maintenancelistlist): New variable.
10118 (init_cmd_lists): Initialize it.
10119 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10120 * gdbcmd.h (maintenancelistlist): New declaration.
10121 * Makefile.in (symmisc.o): Update dependencies.
10122
2d0c7962
EZ
101232003-04-14 Elena Zannoni <ezannoni@redhat.com>
10124
10125 * s390-nat.c: Include asm/types.h for addr_t.
10126
1947a811
CV
101272003-04-14 Corinna Vinschen <vinschen@redhat.com>
10128
10129 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10130 actually incoming type.
10131
adb616d7
AC
101322003-04-13 Andrew Cagney <cagney@redhat.com>
10133
10134 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10135 get_next_frame and get_frame_saved_regs.
10136
9b5e151c
AC
101372003-04-13 Andrew Cagney <cagney@redhat.com>
10138
10139 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10140 of gdbarch_num_regs.
10141
ef6e7e13
AC
101422003-04-13 Andrew Cagney <cagney@redhat.com>
10143
10144 * frame.h: Mention what replaced what in "struct frame_info".
10145 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10146 deprecated_update_frame_base_hack and
10147 deprecated_update_frame_pc_hack.
10148 * hppa-tdep.c: Ditto.
10149
61fbb938
DJ
101502003-04-13 Daniel Jacobowitz <drow@mvista.com>
10151
10152 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10153 to read_reg and update its comment. Remove regnum member.
10154 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10155 Don't call read_reg when setting in_reg. Call read_reg to get
10156 the frame base if it's in a register. Return the register number
10157 on the stack instead of in the context. Remove extra arguments
10158 to read_reg.
10159 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10160 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10161 the register number on the expression stack.
10162 (needs_frame_read_reg): Remove extra arguments.
10163
0d53c4c4
DJ
101642003-04-13 Daniel Jacobowitz <drow@mvista.com>
10165
10166 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10167 made non-static.
10168 (execute_stack_op): All callers updated.
10169 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10170 * dwarf2loc.c (find_location_expression): New function.
10171 (dwarf_expr_frame_base): Call it.
10172 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10173 (dwarf2_tracepoint_var_ref): New function, broken out from
10174 locexpr_tracepoint_var_ref.
10175 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10176 Make static.
10177 (loclist_read_variable, loclist_read_needs_frame): New functions.
10178 (loclist_describe_location, loclist_tracepoint_var_ref): New
10179 functions.
10180 (dwarf2_loclist_funcs): New struct location_funcs.
10181 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10182 (struct dwarf2_locexpr_baton): Add comments.
10183 (dwarf2_loclist_funcs): New extern.
10184 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10185 base_address and base_known.
10186 (dwarf_loc_buffer): New variable.
10187 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10188 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10189 (dwarf2_has_info): Initialize dwarf_loc_offset.
10190 (dwarf2_build_psymtabs): Read in .debug_loc.
10191 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10192 DWARF_LOC_SIZE.
10193 (psymtab_to_symtab_1): Likewise. Move base address calculation
10194 here, from...
10195 (dwarf2_get_pc_bounds): ... here. Use the base address from
10196 cu_header.
10197 (dwarf2_symbol_mark_computed): Handle location lists.
10198
6aca59a3
DJ
101992003-04-13 Daniel Jacobowitz <drow@mvista.com>
10200
10201 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10202 if the linkage name demangled successfully.
10203
aca1fcd0
MK
102042003-04-13 Mark Kettenis <kettenis@gnu.org>
10205
97095916
MK
10206 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10207 disassmbly_flavour): Removed.
10208
aca1fcd0
MK
10209 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10210
562a961f
MK
102112003-04-13 Mark Kettenis <kettenis@gnu.org>
10212
10213 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10214
bd013d54
AC
102152003-04-12 Andrew Cagney <cagney@redhat.com>
10216
10217 * frame.h (struct frame_info): Move definition from here ...
10218 * frame.c (struct frame_info): ... to here.
10219
167ef8b1
AC
102202003-04-12 Andrew Cagney <cagney@redhat.com>
10221
10222 * gdbthread.h (save_infrun_state): Delete parameter
10223 "prev_func_start".
10224 (struct thread_info): Delete field "prev_func_start".
10225 (load_infrun_state): Ditto.
10226 * thread.c (load_infrun_state, save_infrun_state): Update.
10227 * infrun.c (prev_func_start): Delete variable.
10228 (context_switch, init_wait_for_inferior): Update.
10229 (stop_stepping, keep_going): Update.
10230
da3331ec
AC
102312003-04-12 Andrew Cagney <cagney@redhat.com>
10232
10233 * gdbarch.sh: Add missing opaque declarations.
10234 * gdbarch.h: Regnerate.
10235 * symtab.h: Add missing opaque declarations.
10236 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10237 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10238 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10239 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10240 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10241 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10242 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10243 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10244 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10245 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10246 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10247 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10248 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10249
18adea3f
AC
102502003-04-11 Andrew Cagney <cagney@redhat.com>
10251
10252 * frame.c (get_frame_id): Return this frame's "id".
10253 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10254 function start.
10255 (legacy_saved_regs_this_id): Replace function body with
10256 internal-error.
10257 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10258 FRAME_OBSTACK_ZALLOC.
10259 (create_new_frame): Mark the frame ID as valid.
10260
2252e863
AO
102612003-04-11 Alexandre Oliva <aoliva@redhat.com>
10262
10263 * Makefile.in (libbfd_h): Added missing setting.
10264 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10265 according to the selected ABI.
10266
a8245ab8
JJ
102672003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10268
10269 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10270
6913c89a
AC
102712003-04-11 Andrew Cagney <cagney@redhat.com>
10272
10273 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10274 SAVED_PC_AFTER_CALL.
10275 * gdbarch.h, gdbarch.c: Regenerate.
10276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10277 * x86-64-tdep.c (x86_64_init_abi): Update.
10278 * vax-tdep.c (vax_gdbarch_init): Update.
10279 * v850-tdep.c (v850_gdbarch_init): Update.
10280 * sparc-tdep.c (sparc_gdbarch_init): Update.
10281 * sh-tdep.c (sh_gdbarch_init): Update.
10282 * s390-tdep.c (s390_gdbarch_init): Update.
10283 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10284 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10285 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10286 * mips-tdep.c (mips_gdbarch_init): Update.
10287 * mcore-tdep.c (mcore_gdbarch_init): Update.
10288 * m68k-tdep.c (m68k_gdbarch_init): Update.
10289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10290 * ia64-tdep.c (ia64_gdbarch_init): Update.
10291 (ia64_saved_pc_after_call): Update declaration.
10292 * i386ly-tdep.c (i386lynx_init_abi): Update.
10293 * i386-tdep.c (i386_gdbarch_init): Update.
10294 * hppa-tdep.c (hppa_gdbarch_init): Update.
10295 * h8300-tdep.c (h8300_gdbarch_init): Update.
10296 * frv-tdep.c (frv_gdbarch_init): Update.
10297 * cris-tdep.c (cris_gdbarch_init): Update.
10298 * avr-tdep.c (avr_gdbarch_init): Update.
10299 * arm-tdep.c (arm_gdbarch_init): Update.
10300 * alpha-tdep.c (alpha_gdbarch_init): Update.
10301 * ns32knbsd-nat.c (frame_num_args): Update.
10302 * ns32k-tdep.c (umax_frame_num_args): Update.
10303 * mips-tdep.c (mips_init_frame_pc_first): Update.
10304 * infrun.c (step_over_function): Update.
10305 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10306 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10307 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10308 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10309 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10310 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10311 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10312 * arch-utils.c (init_frame_pc_default): Update.
10313 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10314 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10315 declaration.
8ffd9b1b 10316
38edeab8
AC
103172003-04-11 Andrew Cagney <cagney@redhat.com>
10318
10319 * i387-tdep.c: Update copyright.
10320 (i387_to_double): Delete function.
10321 (double_to_i387): Delete function.
10322
81f8a206
AC
103232003-04-10 Andrew Cagney <cagney@redhat.com>
10324
10325 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10326 frame's function's address. Simplify.
10327 (d10v_frame_unwind_cache): Check that the frame's function is
10328 non-zero.
10329
6e691f7a
JB
103302003-04-10 Jim Blandy <jimb@redhat.com>
10331
10332 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10333 call to set_gdbarch_deprecated_push_arguments.
10334
7f78e237
AC
103352003-04-10 Andrew Cagney <cagney@redhat.com>
10336
10337 * frame.c (fprint_frame_id): New function.
10338 (fprint_frame_type, fprint_frame): New function.
10339 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10340 (create_sentinel_frame, get_frame_id): Ditto.
10341 (frame_id_p, frame_id_eq): Ditto.
10342 (frame_id_inner, create_new_frame): Ditto.
10343 (legacy_get_prev_frame, get_prev_frame): Ditto.
10344 (deprecated_update_frame_pc_hack): Ditto.
10345 (frame_register_unwind): Ditto.
10346 (deprecated_update_frame_base_hack): Ditto.
10347
f870b49b
CV
103482003-04-10 Corinna Vinschen <vinschen@redhat.com>
10349
10350 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10351 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10352 frame_chain function.
10353 * Makefile.in: Add dependencies due to above change.
10354
7c86889b
CV
103552003-04-10 Corinna Vinschen <vinschen@redhat.com>
10356
10357 * blockframe.c (legacy_frame_chain_valid): Move call to
10358 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10359 inside_entry_file.
10360
d0a55772
AC
103612003-04-09 Andrew Cagney <cagney@redhat.com>
10362
10363 * frame.h (struct frame_id): Replace "pc" and "base" with
10364 "stack_addr" and "code_addr". Update comments.
10365 (frame_id_build): Update parameter names and comment.
10366 (struct frame_info): Replace "id_p" and "id" with "this_id".
10367 * dummy-frame.c (dummy_frame_this_id): Update.
10368 * breakpoint.c (print_one_breakpoint): Update.
10369 * frame.c (get_frame_id): Update.
10370 (get_frame_base, frame_id_build): Update.
10371 (create_sentinel_frame, legacy_get_prev_frame): Update.
10372 (deprecated_update_frame_base_hack): Update.
10373 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10374 (frame_id_inner): Ditto.
10375
ac16bf07
AC
103762003-04-09 Andrew Cagney <cagney@redhat.com>
10377
10378 * defs.h (gdb_print_host_address): Make "addr" parameter a
10379 pointer constant.
10380 * utils.c (gdb_print_host_address): Update.
10381
366cfc9e
KB
103822003-04-09 Kevin Buettner <kevinb@redhat.com>
10383
10384 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10385 register number for R0 is 0.
10386
cd983b5c
JB
103872003-04-09 J. Brobecker <brobecker@gnat.com>
10388
10389 * frame.h (struct gdbarch): Add opaque structure definition
10390 to avoid a compilation warning on LynxOS 4.0.
10391
d1340264
AC
103922003-04-09 Andrew Cagney <cagney@redhat.com>
10393
10394 * frame.h (struct frame_info): Delete field "pc". Replace
10395 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10396 structure.
10397 * frame.c (frame_pc_unwind): Update.
10398 (create_sentinel_frame): Do not set "pc".
10399 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10400 (get_frame_pc): Call frame_pc_unwind.
10401 (deprecated_update_frame_pc_hack): Update.
10402 (create_new_frame): Use "pc" not "->pc".
10403
90a6fffb
AC
104042003-04-09 Andrew Cagney <cagney@redhat.com>
10405
10406 * frame.c (get_frame_id): Eliminate code updating "frame".
10407 (legacy_get_prev_frame): Ditto.
10408 (get_frame_base): Return id.base directly.
10409 (deprecated_update_frame_base_hack): Update "id.base".
10410 * frame.h (struct frame_info): Delete field "frame".
10411
2fbce691
AC
104122003-04-09 Andrew Cagney <cagney@redhat.com>
10413
10414 * NEWS: Mention that the "Sequent family" is obsolete.
10415 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10416 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10417 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10418 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10419 * config/i386/tm-ptx4.h: Obsolete file.
10420 * config/i386/tm-ptx.h: Obsolete file.
10421 * symm-tdep.c: Obsolete file.
10422 * config/i386/symmetry.mt: Obsolete file.
10423 * config/i386/tm-symmetry.h: Obsolete file.
10424 * symm-nat.c: Obsolete file.
10425 * config/i386/nm-symmetry.h: Obsolete file.
10426 * config/i386/xm-symmetry.h: Obsolete file.
10427 * config/i386/symmetry.mh: Obsolete file.
10428 * config/i386/nm-ptx4.h: Obsolete file.
10429 * config/i386/ptx4.mh: Obsolete file.
10430 * config/i386/ptx.mt: Obsolete file.
10431 * config/i386/ptx.mh: Obsolete file.
10432 * config/i386/xm-ptx4.h: Obsolete file.
10433 * config/i386/xm-ptx.h: Obsolete file.
10434
78c43945
AC
104352003-04-09 Andrew Cagney <cagney@redhat.com>
10436
10437 Obsolete mips*-*-mach3*.
10438 * NEWS: Mention that mips*-*-mach3* is obsolete.
10439 * m3-nat.c: Obsolete file.
10440 * config/nm-m3.h: Obsolete file.
10441 * config/mips/tm-mipsm3.h: Obsolete file.
10442 * config/mips/mipsm3.mt: Obsolete file.
10443 * config/mips/mipsm3.mh: Obsolete file.
10444 * config/mips/xm-mipsm3.h: Obsolete file.
10445 * mipsm3-nat.c: Obsolete file.
10446 * configure.host: Obsolete mips-dec-mach3*.
10447 * configure.tgt: Obsolete mips*-*-mach3*.
10448
f1908289
AC
104492003-04-09 Andrew Cagney <cagney@redhat.com>
10450
10451 * doublest.h: Update copyright.
10452 (deprecated_store_floating, deprecated_extract_floating): Rename
10453 store_floating and extract_floating. Update comments.
10454 * doublest.c: Update copyright.
10455 (extract_floating_by_length): Replace extract_floating.
10456 (store_floating_by_length): Replace store_floating.
10457 (deprecated_extract_floating): New function.
10458 (deprecated_store_floating): New function.
10459 (extract_typed_floating): Call extract_floating_by_length.
10460 (store_typed_floating): Call store_floating_by_length.
10461 * x86-64-tdep.c (x86_64_store_return_value): Update.
10462 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10463 (sh64_extract_return_value): Update.
10464 (sh_sh4_register_convert_to_virtual): Update.
10465 (sh_sh64_register_convert_to_virtual): Update.
10466 (sh_sh4_register_convert_to_raw): Update.
10467 (sh_sh64_register_convert_to_raw): Update.
10468 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10469 (rs6000_register_convert_to_raw): Update.
10470 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10471 (ia64_register_convert_to_raw): Update.
10472 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10473 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10474 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10475 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10476 (alpha_register_convert_to_raw): Update.
10477
4443bd83
AC
104782003-04-08 Andrew Cagney <cagney@redhat.com>
10479
10480 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10481 * gdbarch.h, gdbarch.c: Re-generate.
10482 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10483 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10484 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10485 conditionally, use frame_pc_unwind as an alternative. Add
10486 comments.
10487 * arch-utils.c (init_frame_pc_default): Only call
10488 SAVED_PC_AFTER_CALL when available.
10489
c0236d92
EZ
104902003-04-08 Elena Zannoni <ezannoni@redhat.com>
10491
fbe586ae 10492 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10493 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10494 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10495 (start_remote): Ditto.
10496 (handle_inferior_event): Ditto.
10497 (save_inferior_status): Ditto.
10498 (restore_inferior_status): Ditto.
10499 * infcmd.c (attach_command): Ditto.
10500 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10501 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10502 * alpha-tdep.c (heuristic_proc_start): Ditto.
10503 * mips-tdep.c (heuristic_proc_start): Ditto.
10504 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10505 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10506 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10507 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10508 * remote-vx.c (vx_create_inferior): Ditto.
10509
105102003-04-08 Elena Zannoni <ezannoni@redhat.com>
10511
10512 * infrun.c (stop_soon_quietly): Make it an enum, to better
10513 override the default behavior of handle_inferior_event.
10514 (clear_proceed_status): Update uses of stop_soon_quietly to
10515 reflect that it is now an enum.
10516 (start_remote): Ditto.
10517 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10518 is set to handle the new GNU/Linux kernel behavior for
10519 attach/sigstop. Update uses of stop_soon_quietly.
10520 * inferior.h (enum stop_kind): New enum.
10521 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10522 Reset normal handle_inferior_event behavior, afterwards.
10523 * fork-child.c (startup_inferior): Update.
10524 * alpha-tdep.c (heuristic_proc_start): Update.
10525 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10526 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10527 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10528 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10529 * remote-vx.c (vx_create_inferior): Update.
10530 * mips-tdep.c (heuristic_proc_start): Update.
10531
1211bce3
EZ
105322003-04-07 Elena Zannoni <ezannoni@redhat.com>
10533
10534 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10535 be freed more than once, causing wild memory corruptions.
1211bce3 10536 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10537 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10538 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10539 with the "core" target.
1211bce3 10540
f0ef6b29
KB
105412003-04-07 Kevin Buettner <kevinb@redhat.com>
10542
10543 * mips-tdep.c (mips_print_fp_register): New function, created from
10544 do_fp_register_row(). Registers are now (also) printed as hex.
10545 Only one register is printed per row.
10546 (mips_print_register, do_fp_register_row): Print floating point
10547 registers with mips_print_fp_register().
10548
8cf71652
AC
105492003-04-06 Andrew Cagney <cagney@redhat.com>
10550
5e488a7b
AC
10551 * valprint.h (inspect_it): Add extern declaration.
10552 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10553 (selectors_info, classes_info): Ditto.
10554 (find_objc_msgcall): Fix indentation.
10555 (objc_printstr): Delete extern declarations.
10556
8cf71652
AC
10557 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10558
e6ba3bc9
AC
105592003-04-06 Andrew Cagney <cagney@redhat.com>
10560
10561 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10562 Update comment.
10563 * frame.c (legacy_saved_regs_this_id): Update.
10564 (legacy_get_prev_frame): Update.
10565 * xstormy16-tdep.c: Update comment.
10566 * sparc-tdep.c (sparc_frame_chain): Update comment.
10567 * blockframe.c (legacy_frame_chain_valid): Update.
10568
55e1d7e7
AC
105692003-04-06 Andrew Cagney <cagney@redhat.com>
10570
996179ee
AC
10571 * valprint.c (val_print_type_code_int): Delete #ifdef
10572 PRINT_TYPELESS_INTEGER code.
10573
55e1d7e7
AC
10574 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10575 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10576 multi-arch definition.
10577 * gdbarch.h: Re-generate.
10578
43bd9a9e
AC
105792003-04-05 Andrew Cagney <cagney@redhat.com>
10580
10581 Eliminate FRAME_FIND_SAVED_REGS.
10582 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10583 Change FSR parameter to a pointer.
10584 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10585 Assume FSR parameter is a pointer.
10586 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10587 Make fsr a pointer.
10588 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10589 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10590 saved_regs a pointer.
10591 (hppa_frame_saved_pc): Ditto.
10592 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10593 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10594 pointer.
10595 (restore_pc_queue): Make fsr a pointer.
10596 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10597 (hppa_frame_chain): Make saved_regs a pointer, call
10598 hppa_frame_init_saved_regs.
10599 * sparc-tdep.c: Include "gdb_assert.h".
10600 (sparc_frame_find_saved_regs): Replace internal_error with
10601 gdb_assert.
10602 * remote-vxsparc.c (vx_read_register): Delete reference to
10603 FRAME_FIND_SAVED_REGS.
10604 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10605 * gdbarch.h: Regenerate.
10606 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10607 (deprecated_get_frame_saved_regs): Delete declaration.
10608 (struct frame_saved_regs): Delete definition.
10609 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10610 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10611 (hppa_frame_find_saved_regs): Delete declaration.
10612 (FRAME_FIND_SAVED_REGS): Delete macro.
10613 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10614 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10615 FRAME_FIND_SAVED_REGS in comment.
10616
be41e9f4
AC
106172003-04-05 Andrew Cagney <cagney@redhat.com>
10618
10619 * frame.c (frame_func_unwind, get_frame_func): New functions.
10620 * frame.h (get_frame_func, frame_func_unwind): Declare.
10621 (struct frame_info): Add field "prev_func" for caching the
10622 previous frame's function address.
10623 * arm-tdep.c (arm_frameless_function_invocation): Combine
10624 get_pc_function_start and get_frame_pc into get_frame_func.
10625 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10626 (sh64_nofp_frame_init_saved_regs): Ditto.
10627 * s390-tdep.c (s390_function_start): Ditto.
10628 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10629 (rs6000_frameless_function_invocation): Ditto.
10630 (rs6000_frame_saved_pc): Ditto.
10631 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10632 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10633 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10634 (i386_frame_init_saved_regs): Ditto.
10635 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10636 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10637 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10638 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10639 * blockframe.c (frameless_look_for_prologue): Ditto.
10640
a01dd7cc
AC
106412003-04-05 Andrew Cagney <cagney@redhat.com>
10642
10643 * frame.c (legacy_get_prev_frame): Link prev to next at the
10644 function start. Update comments.
10645
5e5592e6
AC
106462003-04-05 Andrew Cagney <cagney@redhat.com>
10647
10648 * frame.c (get_frame_id): Update comment.
10649 (legacy_get_prev_frame): Update comment.
10650 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10651 * gdbarch.h: Regenerate.
10652 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10653 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10654
6fba5002
AC
106552003-04-05 Andrew Cagney <cagney@redhat.com>
10656
10657 * stack.c (print_frame_info): Use get_frame_pc.
10658
7df05f2b
AC
106592003-04-04 Andrew Cagney <cagney@redhat.com>
10660
10661 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10662 the frame's type from the unwinder.
10663 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10664 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10665 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10666 (get_frame_base_address): Use get_frame_type.
10667 (get_frame_locals_address, get_frame_args_address): Ditto.
10668 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10669 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10670 (struct frame_info): Add comment explaining why the frame contains
10671 a "type" field.
10672 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10673 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10674 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10675 NORMAL_FRAME.
10676 * frame-unwind.h: Include "frame.h".
10677 (struct frame_unwind): Add "type" field.
10678 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10679
11889732
AC
106802003-04-04 Andrew Cagney <cagney@redhat.com>
10681
10682 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10683 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10684 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10685 get_frame_base.
10686 (d10v_unwind_dummy_id): Use frame_id_build.
10687 * frame.c (find_frame_sal): Use get_frame_pc.
10688 (create_new_frame): Use deprecated_update_frame_pc_hack and
10689 deprecated_update_frame_base_hack.
10690 (create_sentinel_frame): Add comment about ->pc going away.
10691 (get_prev_frame): Add comment about ->pc going away.
10692 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10693 frame_id_build, deprecated_update_frame_pc_hack and
10694 deprecated_update_frame_base_hack.
10695 (select_frame): Use get_frame_pc.
10696 (legacy_saved_regs_this_id): Use frame_id_build.
10697
50c46a0d
EZ
106982003-04-04 Elena Zannoni <ezannoni@redhat.com>
10699
fbe586ae
RH
10700 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10701 signed integer case.
10702 (classify_argument): Handle enumerations and references.
50c46a0d 10703
50bbdbd9
AC
107042003-04-04 Andrew Cagney <cagney@redhat.com>
10705
10706 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10707 ID to NULL.
10708
36018d2e
AF
107092003-04-01 Adam Fedor <fedor@gnu.org>
10710
10711 * gdb/objc-lang.c (selectors_info): Replace calls to
10712 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10713 SYMBOL_NATURAL_NAME.
10714 (classes_info, find_methods): Likewise.
10715
35cec841
KB
107162003-04-03 Kevin Buettner <kevinb@redhat.com>
10717
10718 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10719 ``mach'' to the value determined by bfd_default_set_arch_mach().
10720
43136899
BR
107212003-04-02 Bob Rossi <bob_rossi@cox.net>
10722
10723 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10724 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10725 (mi-cmd-file.o): Update dependencies.
10726
040b99fd
KB
107272003-04-01 Kevin Buettner <kevinb@redhat.com>
10728
10729 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10730 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10731
9a3d7dfd
AF
107322003-04-01 Adam Fedor <fedor@gnu.org>
10733
10734 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10735 * language.h (struct language_defn): Add la_demangle.
10736 (language_demangle): Declare.
10737 * language.c (language_demangle): New function.
10738 (unk_lang_demangle): Likewise.
10739 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10740 Add ukn_lang_demangle.
9a3d7dfd 10741 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10742 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10743 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10744 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10745 * jv-lang.c (java_demangle): New function
10746 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10747 * objc-lang.c (objc_demangle): Add options argument
10748 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10749 * maint.c (maintenance_demangle): Replace switch with
10750 call to language_demangle.
10751 * utils.c (fprintf_symbol_filtered): Likewise.
10752
5e074003
AC
107532003-04-01 Andrew Cagney <cagney@redhat.com>
10754
10755 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10756 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10757 PRINT_TYPELESS_INTEGER.
10758 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10759 PUSH_RETURN_ADDRESS.
10760
270cb5d6
AC
107612003-04-01 Andrew Cagney <cagney@redhat.com>
10762
10763 * Makefile.in (d10v-tdep.o): Update dependencies.
10764 * d10v-tdep.c: Include "frame-base.h".
10765 (d10v_frame_unwind): Make constant.
10766 (d10v_frame_base_address): New function.
10767 (d10v_frame_base): New variable.
10768 (d10v_gdbarch_init): Set frame_base default.
10769 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10770 comment for base.
10771 (d10v_frame_unwind_cache): Set and use "prev_sp".
10772 (d10v_frame_this_id): Use the previous frame's inner most stack
10773 address and this frame's func address for the frame ID. Use
10774 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10775
6bfb3e36
AC
107762003-04-01 Andrew Cagney <cagney@redhat.com>
10777
10778 * frame.h (get_frame_locals_address, get_frame_args_address):
10779 Refer to the base address, instead of the address of the first
10780 local or parameter.
8ffd9b1b 10781
da62e633
AC
107822003-04-01 Andrew Cagney <cagney@redhat.com>
10783
10784 Add frame debug info addresses:
10785 * frame-base.c: New file.
10786 * frame-base.h: New file.
10787 * frame.h (struct frame_base): Add opaque declaration.
10788 (get_frame_base): Update comment.
10789 (get_frame_base_address): Declare.
10790 (get_frame_locals_address): Declare.
10791 (get_frame_args_address): Declare.
10792 (struct frame_info): Add "base" and "base_cache". Update
10793 comments on the unwinder.
10794 * frame.c: Include "frame-base.h".
10795 (get_frame_locals_address): New function.
10796 (get_frame_base_address): New function.
10797 (get_frame_args_address): New function.
10798 * findvar.c (read_var_value): Use get_frame_locals_address and
10799 get_frame_args_address.
10800 * stack.c (frame_info): Use get_frame_locals_address and
10801 get_frame_args_address.
10802 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10803 moved to "frame-base.c".
10804 * printcmd.c (print_frame_nameless_args): Ditto.
10805 * symtab.h (address_class): Update comments.
10806 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10807 get_frame_base_address.
10808 * dwarf2expr.c (execute_stack_op): Ditto.
10809 * Makefile.in (frame_base_h): Define.
10810 (frame.o): Update dependencies.
10811 (frame-base.o): Add dependencies.
10812 (SFILES): Add frame-base.c.
10813 (COMMON_OBS): Add frame-base.o.
10814
3d30e9c2
AC
108152003-04-01 Andrew Cagney <cagney@redhat.com>
10816
10817 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10818 CALL_DUMMY_LENGTH): Ditto.
10819 * gdbarch.c: Re-generate.
10820 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10821 (CALL_DUMMY_LENGTH): Delete macro.
10822 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10823 * arm-tdep.c (arm_gdbarch_init): Ditto.
10824 * avr-tdep.c (avr_gdbarch_init): Ditto.
10825 * cris-tdep.c (cris_gdbarch_init): Ditto.
10826 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10827 * frv-tdep.c (frv_gdbarch_init): Ditto.
10828 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10829 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10830 * i386-tdep.c (i386_gdbarch_init): Ditto.
10831 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10833 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10834 * mips-tdep.c (mips_gdbarch_init): Ditto.
10835 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10837 * s390-tdep.c (s390_gdbarch_init): Ditto.
10838 * sh-tdep.c (sh_gdbarch_init): Ditto.
10839 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10840 * v850-tdep.c (v850_gdbarch_init): Ditto.
10841 * vax-tdep.c (vax_gdbarch_init): Ditto.
10842 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10843
ce0c7262
CV
108442003-04-01 Corinna Vinschen <vinschen@redhat.com>
10845
10846 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10847
73dd234f
AC
108482003-04-01 Andrew Cagney <cagney@redhat.com>
10849
10850 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10851 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10852 * gdbarch.h, gdbarch.c: Re-generate.
10853 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10854 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10855 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10856 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10857 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10858 * infcmd.c (run_stack_dummy): Simplify assuming
10859 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10860 * infrun.c (handle_inferior_event): Ditto.
10861 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10862 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10863 * arm-tdep.c (arm_gdbarch_init): Ditto.
10864 * avr-tdep.c (avr_gdbarch_init): Ditto.
10865 * cris-tdep.c (cris_gdbarch_init): Ditto.
10866 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10867 * frv-tdep.c (frv_gdbarch_init): Ditto.
10868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10869 * i386-tdep.c (i386_gdbarch_init): Ditto.
10870 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10872 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10873 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10874 * mips-tdep.c (mips_gdbarch_init): Ditto.
10875 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10876 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10877 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10878 * s390-tdep.c (s390_gdbarch_init): Ditto.
10879 * sh-tdep.c (sh_gdbarch_init): Ditto.
10880 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10881 * v850-tdep.c (v850_gdbarch_init): Ditto.
10882 * vax-tdep.c (vax_gdbarch_init): Ditto.
10883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10884
97606a13
DJ
108852003-04-01 Daniel Jacobowitz <drow@mvista.com>
10886
10887 * symfile.c (symfile_relocate_debug_section): Update call to
10888 bfd_simple_get_relocated_section_contents.
10889
e8ab51f7
AC
108902003-03-31 Andrew Cagney <cagney@redhat.com>
10891
10892 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10893 * gdbarch.h, gdbarch.c: Regenerate.
10894 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10895 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10896 available.
10897 * frame.h (generic_fix_call_dummy): Delete declaration.
10898 * dummy-frame.h: Update comment.
10899 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10901 fix_call_dummy.
10902 * sh-tdep.c (sh_gdbarch_init): Ditto.
10903 * s390-tdep.c (s390_gdbarch_init): Ditto.
10904 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10905 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10907 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10908 * i386-tdep.c (i386_gdbarch_init): Ditto.
10909 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10910 * frv-tdep.c (frv_gdbarch_init): Ditto.
10911 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10912 * cris-tdep.c (cris_gdbarch_init): Ditto.
10913 * avr-tdep.c (avr_gdbarch_init): Ditto.
10914 * arm-tdep.c (arm_gdbarch_init): Ditto.
10915
018d1b48
JB
109162003-03-31 J. Brobecker <brobecker@gnat.com>
10917
10918 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10919 (INIT_FRAME_AP): Likewise.
10920 (EXTRA_FRAME_INFO): Likewise.
10921
e9a2674e
AC
109222003-03-31 Andrew Cagney <cagney@redhat.com>
10923
10924 * gdbarch.sh: Include "symfile.h".
10925 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10926 * gdbarch.h, gdbarch.c: Re-generate.
10927 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10929 call_dummy_address, the default is at entry_point_address.
10930 * v850-tdep.c (v850_gdbarch_init): Ditto.
10931 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10932 * sh-tdep.c (sh_gdbarch_init): Ditto.
10933 * s390-tdep.c (s390_gdbarch_init): Ditto.
10934 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10935 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10936 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10937 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10938 * i386-tdep.c (i386_gdbarch_init): Ditto.
10939 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10940 * frv-tdep.c (frv_gdbarch_init): Ditto.
10941 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10942 * cris-tdep.c (cris_gdbarch_init): Ditto.
10943 * arm-tdep.c (arm_gdbarch_init): Ditto.
10944
e8a8712a
AC
109452003-03-31 Andrew Cagney <cagney@redhat.com>
10946
10947 * gdbarch.sh (CALL_DUMMY_P): Delete.
10948 * gdbarch.h, gdbarch.c: Re-generate.
10949 * inferior.h (CALL_DUMMY_P): Delete macro.
10950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10951 * vax-tdep.c (vax_gdbarch_init): Update.
10952 * v850-tdep.c (v850_gdbarch_init): Update.
10953 * sparc-tdep.c (sparc_gdbarch_init): Update.
10954 * sh-tdep.c (sh_gdbarch_init): Update.
10955 * s390-tdep.c (s390_gdbarch_init): Update.
10956 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10957 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10958 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10959 * mips-tdep.c (mips_gdbarch_init): Update.
10960 * mcore-tdep.c (mcore_gdbarch_init): Update.
10961 * m68k-tdep.c (m68k_gdbarch_init): Update.
10962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10963 * ia64-tdep.c (ia64_gdbarch_init): Update.
10964 * i386-tdep.c (i386_gdbarch_init): Update.
10965 * h8300-tdep.c (h8300_gdbarch_init): Update.
10966 * frv-tdep.c (frv_gdbarch_init): Update.
10967 * d10v-tdep.c (d10v_gdbarch_init): Update.
10968 * cris-tdep.c (cris_gdbarch_init): Update.
10969 * breakpoint.c (deprecated_frame_in_dummy): Update.
10970 * avr-tdep.c (avr_gdbarch_init): Update.
10971 * alpha-tdep.c (alpha_gdbarch_init): Update.
10972 * arm-tdep.c (arm_gdbarch_init): Update.
10973 * dummy-frame.c (dummy_frame_this_id): Update comments.
10974 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10975 * frame.c (legacy_get_prev_frame): Ditto.
10976 * valops.c (call_function_by_hand): Delete function.
10977 (hand_function_call): Rename to call_function_by_hand
10978
ed234cf8
AC
109792003-03-30 Andrew Cagney <cagney@redhat.com>
10980
10981 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10982 * value.h (struct value): Update comment.
ed234cf8 10983
06c77151
AC
109842003-03-30 Andrew Cagney <cagney@redhat.com>
10985
6c2b5168
AC
10986 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10987 D10V_FP_REGNUM.
10988 (d10v_gdbarch_init): Do not set fp_regnum.
10989
06c77151
AC
10990 * frame.c (get_frame_base): Force ID initialization.
10991 (get_prev_frame): Move computation of the frame ID from here ...
10992 (get_frame_id): ... to here.
10993 (legacy_get_prev_frame): Mark the frame ID as valid.
10994 * frame.h (struct frame_info): Add field "id_p".
10995
97a1a11c
MK
109962003-03-30 Mark Kettenis <kettenis@gnu.org>
10997
10998 * i386-tdep.c (i386_store_struct_return): Removed.
10999 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11000
6c0e89ed
AC
110012003-03-30 Andrew Cagney <cagney@redhat.com>
11002
11003 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11004 * gdbarch.h, gdbarch.c: Regenerate.
11005 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11007 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11008 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11009 * i386-tdep.c (i386_gdbarch_init): Ditto.
11010 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11011 * cris-tdep.c (cris_gdbarch_init): Ditto.
11012 * vax-tdep.c (vax_gdbarch_init): Ditto.
11013 * s390-tdep.c (s390_gdbarch_init): Ditto.
11014 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11015 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11016 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11017 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11018 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11019 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11020 * sparc-tdep.c (sparc_gdbarch_init): Update.
11021 * sh-tdep.c (sh_gdbarch_init): Update.
11022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11023 * mips-tdep.c (mips_gdbarch_init): Update.
11024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11025 * ia64-tdep.c (ia64_gdbarch_init): Update.
11026 * frv-tdep.c (frv_gdbarch_init): Update.
11027 * avr-tdep.c (avr_gdbarch_init): Update.
11028 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11029 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11030 instead of when push_dummy_call is not available.
8ffd9b1b 11031
f7dd6af2
AC
110322003-03-30 Andrew Cagney <cagney@redhat.com>
11033
11034 * infttrace.c: Include "gdbthread.h".
11035 (parent_attach_all): Fix function signature.
11036 (call_ptrace): Update call.
11037 * Makefile.in (infttrace.o): Update dependencies.
11038
28f617b3
AC
110392003-03-30 Andrew Cagney <cagney@redhat.com>
11040
11041 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11042 PUSH_RETURN_ADDRESS.
11043 * gdbarch.h, gdbarch.c: Regenerate.
11044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11045 * x86-64-tdep.c (x86_64_init_abi): Update.
11046 * v850-tdep.c (v850_gdbarch_init): Update.
11047 * sparc-tdep.c (sparc_gdbarch_init): Update.
11048 * sh-tdep.c (sh_gdbarch_init): Update.
11049 * s390-tdep.c (s390_gdbarch_init): Update.
11050 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11051 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11052 * mips-tdep.c (mips_gdbarch_init): Update.
11053 * mcore-tdep.c (mcore_gdbarch_init): Update.
11054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11055 * ia64-tdep.c (ia64_gdbarch_init): Update.
11056 * i386-tdep.c (i386_gdbarch_init): Update.
11057 * h8300-tdep.c (h8300_gdbarch_init): Update.
11058 * frv-tdep.c (frv_gdbarch_init): Update.
11059 * cris-tdep.c (cris_gdbarch_init): Update.
11060 * avr-tdep.c (avr_gdbarch_init): Update.
11061 * arm-tdep.c (arm_gdbarch_init): Update.
11062 * valops.c (hand_function_call): Update.
11063
4d628cd7
AC
110642003-03-29 Andrew Cagney <cagney@redhat.com>
11065
11066 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11067 sizeof_call_dummy_words.
11068 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11069 define.
11070 * gdbarch.h: Regenerate.
8ffd9b1b 11071
65e82032
AC
110722003-03-29 Andrew Cagney <cagney@redhat.com>
11073
11074 * infttrace.h: New file.
11075 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11076 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11077 (hpread_read_doc_function_type): Detect an initialized type1.
11078 (hpread_quick_traverse): Initialize mod_name_string.
11079 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11080 (som_solib_get_solib_by_pc): Declare.
11081 (so_lib_thread_start_addr): Declare.
11082 (no_shared_libraries): Declare.
11083 * somread.c (init_import_symbols): Make static. Add forward
11084 declaration.
11085 * config/pa/nm-hppah.h: Include "infttrace.h" for
11086 parent_attach_all.
11087 (hppa_insert_hw_watchpoint): Declare.
11088 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11089 * hppah-nat.c: Include "gdb_string.h".
11090 (parent_attach_all): Delete extern declaration, moved to
11091 "infttrace.h".
11092 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11093 int.
11094 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11095 * Makefile.in (infttrace_h): Define.
11096 (hpread.o): Update dependencies.
11097 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11098 * hppa-hpux-tdep.c: Include "gdb_string.h".
11099 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11100 * infrun.c (handle_inferior_event): Always initialize
11101 stepped_after_stopped_by_watchpoint. Add default and remove
11102 fallthrough in switch statement.
11103 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11104 parameter to int.
11105 (hppa_remove_hw_watchpoint): Ditto.
11106
2c3bbe77
AC
111072003-03-29 Andrew Cagney <cagney@redhat.com>
11108
11109 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11110 offset.
11111
2dd604e7
RE
111122003-03-29 Richard Earnshaw <rearnsha@arm.com>
11113
11114 * arm-tdep.c (arm_push_arguments): Delete.
11115 (struct stack_item): New type.
11116 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11117 (arm_store_struct_return): Delte.
11118 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11119 arm_push_arguments or arm_store_struct_return.
11120
e8933a55
AC
111212003-03-28 Andrew Cagney <cagney@redhat.com>
11122
11123 * Makefile.in (d10v-tdep.o): Update dependencies.
11124 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11125 * d10v-tdep.c: Include "remote.h".
11126 (target_resume_hook): Delete extern declaration.
11127 (target_wait_loop_hook): Ditto.
11128 (tdisassemble_command): Eliminate assignment in "if" conditional.
11129 (d10v_ts2_register_sim_regno): Eliminate call to
11130 legacy_register_sim_regno.
11131 (d10v_ts3_register_sim_regno): Ditto.
11132
6949171e
JJ
111332003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11134
11135 * thread.c: Reindented.
11136 * lin-lwp.c: Ditto.
11137 * linux-proc.c: Ditto.
11138
98c7071f
BR
111392003-03-28 Bob Rossi <bob_rossi@cox.net>
11140
fbe586ae 11141 * MAINTAINERS (write after approval): Add myself.
98c7071f 11142
5edc9ca6
TR
111432003-03-27 Theodore A. Roth <troth@openavr.org>
11144
11145 * objc-exp.y: Add missing semi-colons.
11146
378bfd1b
AC
111472003-03-27 Andrew Cagney <cagney@redhat.com>
11148
11149 * regcache.c (write_sp): Delete function and references.
11150 * inferior.h (write_sp): Delete declaration.
11151 * valops.c (hand_function_call): Replace write_sp with
11152 TARGET_WRITE_SP.
11153 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11154 (sparc_pop_frame): Ditto.
8ffd9b1b 11155
56056df7
AC
111562003-03-27 Andrew Cagney <cagney@redhat.com>
11157
11158 * NEWS: Mention removal of support for hppa*-*-bsd* and
11159 hppa*-*-osf* natives, and hppa*-*-pro* target.
11160 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11161 * config/pa/xm-pa.h: Obsolete file.
11162 * config/pa/xm-hppab.h: Obsolete file.
11163 * config/pa/nm-hppab.h: Obsolete file.
11164 * config/pa/tm-hppab.h: Obsolete file.
11165 * config/pa/tm-hppao.h: Obsolete file.
11166 * config/pa/nm-hppao.h: Obsolete file.
11167 * config/pa/tm-pro.h: Obsolete file.
11168 * config/pa/hppaosf.mt: Obsolete file.
11169 * config/pa/hppaosf.mh: Obsolete file.
11170 * config/pa/hppapro.mt: Obsolete file.
11171 * config/pa/hppabsd.mt: Obsolete file.
11172 * config/pa/hppabsd.mh: Obsolete file.
11173 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11174 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11175 hppa*-*-osf*.
11176
5873a88d
AC
111772003-03-27 Andrew Cagney <cagney@redhat.com>
11178
11179 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11180 push_arguments. Don't set push_return_address or write_sp.
11181 (d10v_push_dummy_call): Replace d10v_push_arguments.
11182 (d10v_push_return_address, d10v_write_sp): Delete function,
11183 handled by push_dummy_call.
11184
b81774d8
AC
111852003-03-26 Andrew Cagney <cagney@redhat.com>
11186
11187 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11188 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11189 regcache and dummy_addr parameters.
11190 * gdbarch.h, gdbarch.c: Re-generate.
11191 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11192 available; assume it will handle stack alignment and return
11193 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11194 legacy_push_arguments.
11195 (legacy_push_arguments): Rename default_push_arguments.
11196 * value.h (legacy_push_arguments): Rename default_push_arguments.
11197 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11198 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11199 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11200 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11201 * config/i386/tm-symmetry.h: Update.
11202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11203 * x86-64-tdep.c (x86_64_init_abi): Update.
11204 * v850-tdep.c (v850_gdbarch_init): Update.
11205 * sparc-tdep.c (sparc_gdbarch_init): Update.
11206 * sh-tdep.c (sh_gdbarch_init): Update.
11207 * s390-tdep.c (s390_gdbarch_init): Update.
11208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11210 * mips-tdep.c (mips_gdbarch_init): Update.
11211 * mcore-tdep.c (mcore_gdbarch_init): Update.
11212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11213 * ia64-tdep.c (ia64_gdbarch_init): Update.
11214 * i386-tdep.c (i386_gdbarch_init): Update.
11215 * hppa-tdep.c (hppa_gdbarch_init): Update.
11216 * h8300-tdep.c (h8300_gdbarch_init): Update.
11217 * frv-tdep.c (frv_gdbarch_init): Update.
11218 * d10v-tdep.c (d10v_gdbarch_init): Update.
11219 * cris-tdep.c (cris_gdbarch_init): Update.
11220 * avr-tdep.c (avr_gdbarch_init): Update.
11221 * arm-tdep.c (arm_gdbarch_init): Update.
11222 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11223 * alpha-tdep.c (alpha_gdbarch_init): Update.
11224
f541410f
DJ
112252003-03-26 Daniel Jacobowitz <drow@mvista.com>
11226
11227 * signals/signals.c (do_target_signal_to_host): Correct realtime
11228 signal range test.
11229
69f567ae
DJ
112302003-03-26 Daniel Jacobowitz <drow@mvista.com>
11231
11232 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11233 (struct sal_chain, map_catch_names): Remove.
11234 (catch_exception_command_1): Don't call
11235 handle_gnu_4_16_catch_command.
11236
d5d14a5a
DJ
112372003-03-26 Daniel Jacobowitz <drow@mvista.com>
11238
11239 From Mark Dettinger <dettinge@de.ibm.com>:
11240 * dwarf2cfi.c (read_2u): Increment pointer by two.
11241
bdd73e22
DJ
112422003-03-26 Daniel Jacobowitz <drow@mvista.com>
11243
11244 * signals/signals.c: Fix typos in last change.
11245
960cb555
DJ
112462003-03-26 Daniel Jacobowitz <drow@mvista.com>
11247
11248 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11249 not already defined. Use __SIGRTMIN if available.
11250 (target_signal_from_host): Remove SIGRTMIN block.
11251 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11252 the signal is within the realtime range.
11253
f636b87d
AF
112542003-03-25 Adam Fedor <fedor@gnu.org>
11255
11256 * Makefile.in (infrun.o): Add $(language_h)
11257 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11258 for language specific trampolines.
11259 * language.h (struct language_defn): Add skip_trampoline.
11260 (skip_language_trampoline): Declare.
11261 * language.c (unk_lang_trampoline, skip_language_trampoline):
11262 New functions.
11263 (unknown_language_defn, auto_language_defn, local_language_defn):
11264 Add ukn_lang_trampoline.
11265 * ada-lang.c (ada_language_defn): Add NULL for language
11266 specific skip_trampoline.
11267 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11268 scm-lang.c: Likewise.
11269 * objc-lang.c (objc_skip_trampoline): New function.
11270 (objc_language_defn): Add objc_skip_trampoline.
11271
28f617b3 112722003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11273
11274 * frame.c (get_prev_frame): Delay validating a frame's ID -
11275 non-NULL, didn't go backwards - until an attempt to unwind it to
11276 the previous frame.
11277
f933a9c5
AC
112782003-03-25 Andrew Cagney <cagney@redhat.com>
11279
11280 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11281 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11282 * gdbarch.h, gdbarch.c: Re-generate.
11283 * config/sparc/tm-sparc.h
11284 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11285 * sparc-tdep.c (sparc_gdbarch_init): Set
11286 deprecated_extra_stack_alignment_needed.
11287 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11289 extra_stack_alignment_needed.
11290 * v850-tdep.c (v850_gdbarch_init): Ditto.
11291 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11292 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11294 * cris-tdep.c (cris_gdbarch_init): Ditto.
11295 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11297
4183d812
AC
112982003-03-25 Andrew Cagney <cagney@redhat.com>
11299
11300 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11301 STORE_STRUCT_RETURN.
11302 * gdbarch.h, gdbarch.c: Regenerate.
11303 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11304 (d10v_push_arguments): Set the struct return register.
11305 (d10v_gdbarch_init): Update.
11306 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11307 * x86-64-tdep.c (x86_64_init_abi): Update.
11308 * vax-tdep.c (vax_gdbarch_init): Update.
11309 * v850-tdep.c (v850_gdbarch_init): Update.
11310 * sparc-tdep.c (sparc_gdbarch_init): Update.
11311 * sh-tdep.c (sh_gdbarch_init): Update.
11312 * s390-tdep.c (s390_gdbarch_init): Update.
11313 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11314 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11316 * mips-tdep.c (mips_gdbarch_init): Update.
11317 * mcore-tdep.c (mcore_gdbarch_init): Update.
11318 * m68k-tdep.c (m68k_gdbarch_init): Update.
11319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11320 * ia64-tdep.c (ia64_gdbarch_init): Update.
11321 * i386-tdep.c (i386_gdbarch_init): Update.
11322 * hppa-tdep.c (hppa_gdbarch_init): Update.
11323 * h8300-tdep.c (h8300_gdbarch_init): Update.
11324 * frv-tdep.c (frv_gdbarch_init): Update.
11325 * cris-tdep.c (cris_gdbarch_init): Update.
11326 * avr-tdep.c (avr_gdbarch_init): Update.
11327 * arm-tdep.c (arm_gdbarch_init): Update.
11328 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11329
1bf6d5cc
AC
113302003-03-25 Andrew Cagney <cagney@redhat.com>
11331
11332 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11333 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11334 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11335 * gdbarch.h, gdbarch.c: Regenerate.
11336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11337 call_dummy_stack_adjust_p.
11338 * vax-tdep.c (vax_gdbarch_init): Ditto.
11339 * v850-tdep.c (v850_gdbarch_init): Ditto.
11340 * sh-tdep.c (sh_gdbarch_init): Ditto.
11341 * s390-tdep.c (s390_gdbarch_init): Ditto.
11342 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11343 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11345 * mips-tdep.c (mips_gdbarch_init): Ditto.
11346 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11347 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11349 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11350 * i386-tdep.c (i386_gdbarch_init): Ditto.
11351 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11352 * frv-tdep.c (frv_gdbarch_init): Ditto.
11353 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11354 * cris-tdep.c (cris_gdbarch_init): Ditto.
11355 * avr-tdep.c (avr_gdbarch_init): Ditto.
11356 * arm-tdep.c (arm_gdbarch_init): Ditto.
11357 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11358 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11359 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11360 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11361 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11362 call_dummy_stack_adjust_p.
11363 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11364 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11365 * sparc-tdep.c (sparc32_push_arguments): Update.
11366 * valops.c (hand_function_call): Update.
11367
71c08af0
CV
113682003-03-25 Corinna Vinschen <vinschen@redhat.com>
11369
11370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11371 set_gdbarch_char_signed.
11372
30757f90
RE
113732003-03-25 Richard Earnshaw <rearnsha@arm.com>
11374
11375 PR cli/548
11376 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11377
03d48a7d
RE
113782003-03-25 Richard Earnshaw <rearnsha@arm.com>
11379
11380 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11381 (_initialize_arm_tdep): Don't set tm_print_insn.
11382
2cf6873c
AF
113832003-03-24 Adam Fedor <fedor@gnu.org>
11384
11385 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11386 * objc-lang.h: Add multiple inclusion protection.
11387 (start_msglist, add_msglist, end_msglist): Additional declarations.
11388
17c0759e
RE
113892003-03-24 Richard Earnshaw <rearnsha@arm.com>
11390
11391 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11392 value was renamed to ARM_FLOAT_SOFT_FPA.
11393
618ce49f
AC
113942003-03-23 Andrew Cagney <cagney@redhat.com>
11395
11396 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11397 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11398 * gdbarch.h, gdbarch.c: Regenerate.
11399 * valops.c (hand_function_call): Update.
11400 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11401 * frame.c (legacy_saved_regs_this_id): Update.
11402 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11403 * dummy-frame.h: Update.
11404 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11405 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11406 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11407 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11408 * config/m68k/tm-sun3.h: Update.
11409 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11410 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11411 * x86-64-tdep.c (x86_64_init_abi): Update.
11412 * vax-tdep.c (vax_gdbarch_init): Update.
11413 * v850-tdep.c (v850_gdbarch_init): Update.
11414 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11415 * sh-tdep.c (sh_gdbarch_init): Update.
11416 * s390-tdep.c (s390_gdbarch_init): Update.
11417 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11418 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11419 (frame_get_saved_regs): Update.
11420 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11421 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11423 * mips-tdep.c (mips_gdbarch_init): Update.
11424 * mcore-tdep.c (mcore_gdbarch_init): Update.
11425 * m68k-tdep.c (m68k_gdbarch_init): Update.
11426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11427 * ia64-tdep.c (ia64_gdbarch_init): Update.
11428 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11429 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11430 (i386_interix_back_one_frame): Update.
11431 * hppa-tdep.c (hppa_gdbarch_init): Update.
11432 (hppa_init_extra_frame_info): Update.
11433 * h8300-tdep.c (h8300_gdbarch_init): Update.
11434 * frv-tdep.c (frv_gdbarch_init): Update.
11435 * cris-tdep.c (cris_gdbarch_init): Update.
11436 * avr-tdep.c (avr_gdbarch_init): Update.
11437 * arm-tdep.c (arm_gdbarch_init): Update.
11438 * alpha-tdep.c (alpha_gdbarch_init): Update.
11439
fd50bc42
RE
114402003-03-22 Richard Earnshaw <rearnsha@arm.com>
11441
11442 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11443 (arm_get_fp_model): Declare.
11444 * arm-tdep.c (fp_model_strings): New string array.
11445 (arm_fp_model, current_fp_model): New variables.
11446 (arm_get_fp_model): New function.
11447 (arm_set_fp): New function.
11448 (set_fp_model_sfunc): New function.
11449 (show_fp_model): New function.
11450 (_initialize_arm_tdep): Add new command to set/show the FPU.
11451 (arm_extract_return_value): Use arm_get_fp_model.
11452 (arm_store_return_value): Likewise.
11453 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11454 to initialize the floating-point data types.
11455 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11456 model is FPA.
11457
26304000
RE
114582003-03-22 Richard Earnshaw <rearnsha@arm.com>
11459
11460 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11461 the current setting of each value.
11462 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11463 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11464 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11465 commands and add new version as subcommands of "set/show arm".
11466
afd7eef0
RE
114672003-03-22 Richard Earnshaw <rearnsha@arm.com>
11468
11469 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11470 (set_arm_command, show_arm_command): New functions.
11471 (_initialize_arm_tdep): Add them.
11472 (num_disassembly_options): Renamed from num_flavor_options.
11473 (valid_disassembly_styles): Renamed from valid_flavors.
11474 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11475 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11476 set_disassembly_flavor_sfunc.
11477 (set_disassembly_style): Renamed from set_disassembly_flavor.
11478 (arm_othernames): Updated.
11479 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11480 command. Add "set/show arm disassembly" commands. Deprecate
11481 "othernames" command.
11482
299a7944
RE
114832003-03-22 Richard Earnshaw <rearnsha@arm.com>
11484
11485 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11486 (arm-tdep.o): Depend on elf_arm_h.
11487
c1dac9e6
RE
114882003-03-22 Richard Earnshaw <rearnsha@arm.com>
11489
11490 * Makefile.in (coff_internal_h): Define.
11491 (arm-tdep.o): Update dependencies.
11492
2702d96c
RE
114932003-03-22 Richard Earnshaw <rearnsha@arm.com>
11494
11495 * arm-tdep.c (prologue_cache): Delete.
11496 (check_prologue_cache, save_prologue_cache): Delete.
11497 (arm_scan_prologue): Don't check or update the prologue_cache.
11498 (arm_gdb_arch_init): Don't initialize it.
11499 (_initialize_arm_tdep): Likewise.
11500
27d5d74b
SC
115012003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11502
11503 * MAINTAINERS (tui): Maintainer of tui code.
11504
1762d96d
CV
115052003-03-21 Corinna Vinschen <vinschen@redhat.com>
11506
11507 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11508 (i386-cygwin-tdep.o): Add dependencies.
11509 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11510 * i386-cygwin-tdep.c: New file.
11511 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11512 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11513
4c2e2391
AC
115142003-03-20 Andrew Cagney <cagney@redhat.com>
11515
f20d38b7
AC
11516 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11517 (handle_inferior_event): Remove code calling
11518 DYNAMIC_TRAMPOLINE_NEXTPC.
11519
0022b738
AC
11520 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11521 already has a full path.
11522
864dbc90
AC
11523 * main.c (gdb_main): Return 1.
11524 (captured_main): Call error to report an invalid interpreter.
11525
4c2e2391
AC
11526 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11527 * alpha-osf1-tdep.c: Include "gdb_string.h".
11528
5ef7553b
JB
115292003-03-19 J. Brobecker <brobecker@gnat.com>
11530
11531 Continuing work to convert the hppa targets to multiarch partial.
11532
11533 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11534 method, now that hppa_push_dummy_frame has a conformant prototype.
11535 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11536 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11537 for the switch to multiarch partial.
11538
7bde8967
KB
115392003-03-19 Kevin Buettner <kevinb@redhat.com>
11540
11541 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11542 when iss is issNull.
11543
b006a9e9
KB
115442003-03-18 Kevin Buettner <kevinb@redhat.com>
11545
11546 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11547 NUM_REGS bounds check.
11548
5e2e9765
KB
115492003-03-18 Kevin Buettner <kevinb@redhat.com>
11550
11551 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11552 * mips-tdep.c (gdb_assert.h): Include.
11553 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11554 (mips_register_name): Handle integer registers explicitly. Add
11555 bounds checking.
11556 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11557 (mips_lsi33k_reg_names): Don't list integer registers; they're
11558 handled by mips_register_name() now.
11559 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11560 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11561 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11562 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11563 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11564
a2867626
AC
115652003-03-18 Andrew Cagney <cagney@redhat.com>
11566
11567 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11568 a void pointer.
11569 * gdbtypes.h (print_scalar_formatted): Update declaration.
11570 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11571
06600e06
JB
115722003-03-18 J. Brobecker <brobecker@gnat.com>
11573
11574 * infrun.c (observer.h): Add #include.
11575 (normal_stop): Add call to observer_notify_normal_stop.
11576 * Makefile.in (infrun.o): Add dependency on observer.h.
11577
7daf4f5b
JB
115782003-03-18 J. Brobecker <brobecker@gnat.com>
11579
11580 Continuing work to convert the hppa targets to multiarch partial.
11581 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11582 parameter. Reformat comment.
11583 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11584 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11585 to match new profile.
11586
3371ccc0
JB
115872003-03-18 J. Brobecker <brobecker@gnat.com>
11588
11589 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11590 appear to be working in any case.
11591
4fbe891e
JB
115922003-03-18 J. Brobecker <brobecker@gnat.com>
11593
11594 * observer.c (observer_test_first_observer): New static variable.
11595 (observer_test_second_observer): Likewise.
11596 (observer_test_third_observer): Likewise.
11597 (observer_test_first_notification_function): New static function.
11598 (observer_test_second_notification_function): Likewise.
11599 (observer_test_third_notification_function): Likewise.
11600
a7ff40e7
JB
116012003-03-17 J. Brobecker <brobecker@gnat.com>
11602
11603 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11604 * somsolib.c (gdb_assert.h): Likewise.
11605 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11606 (somsolib.o): Likewise.
11607
26ca4152
AC
116082003-03-17 Andrew Cagney <cagney@redhat.com>
11609
11610 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11611 BFD. Simplify setting of di.endian.
11612
0a613259
AC
116132003-03-17 Andrew Cagney <cagney@redhat.com>
11614
11615 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11616 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11617
11618 From Elena Zannoni <ezannoni@redhat.com>
11619 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11620 vector and floating-point parameters.
11621 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11622 convention.
11623 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11624
1132738f
FN
116252003-03-17 Fernando Nasser <fnasser@redhat.com>
11626
11627 * MAINTAINERS: Remove my name from several maintainership roles.
11628
6dc42492
AC
116292003-03-17 Andrew Cagney <cagney@redhat.com>
11630
11631 Fix frame off-by-one bug.
11632 * frame-unwind.h (frame_this_id_ftype): Replace
11633 frame_unwind_id_ftype.
11634 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11635 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11636 with "prev_register".
11637 * frame-unwind.c (frame_unwind_find_by_pc): Return
11638 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11639 comment.
11640 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11641 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11642 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11643 (dummy_frame_unwind): Update.
11644 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11645 sentinel_frame_register_unwind.
11646 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11647 (sentinel_frame_unwinder): Update.
11648 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11649 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11650 * frame.c (create_sentinel_frame): Update. Initialize
11651 "prologue_cache" instead of "unwind_cache".
11652 (frame_register_unwind): Call this frame's prev_register with the
11653 next frame and this frame's prologue cache.
11654 (get_prev_frame): Simplify. Always call prev frame's this_id with
11655 this frame and prev frame's prologue cache. Document that this
11656 call is shifted one to the left when compared to the
11657 frame_register_unwind call.
11658 (legacy_saved_regs_prev_register): Replace
11659 frame_saved_regs_register_unwind.
11660 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11661 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11662 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11663 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11664 (d10v_frame_unwind): Update.
11665 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11666 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11667 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11668 "saved_regs" with "this_saved_regs".
11669
efd710d6
AC
116702003-03-16 Andrew Cagney <cagney@redhat.com>
11671
11672 * frame.c (frame_pop): Don't call target_store_registers. Fix
11673 problem reported by Mark Kettenis.
11674
4e259f09
MK
116752003-03-16 Mark Kettenis <kettenis@gnu.org>
11676
11677 * i386-tdep.c (i386_register_type): Renamed from
11678 i386_register_virtual_type. Adjust function signature.
11679 (i386_gdbarch_init): Set register_type instead of
11680 deprecated_max_register_raw_size,
11681 deprecated_max_register_virtual_size and register_virtual_type.
11682
055bb976
AC
116832003-03-14 Andrew Cagney <cagney@redhat.com>
11684
11685 * frame.c (get_prev_frame): When a legacy frame, always call
11686 legacy_get_prev_frame. Simplify unwind code using assumption that
11687 the unwinder is new.
11688 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11689 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11690 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11691
ac2adee5
AC
116922003-03-14 Andrew Cagney <cagney@redhat.com>
11693
11694 * frame.c (get_saved_register): Delete function.
11695 * frame.h (get_saved_register): Delete declaration.
11696 * xstormy16-tdep.c: Update comment.
11697 * regcache.h: Update comments.
11698 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11699 get_saved_register and extract_address, use
11700 frame_read_unsigned_register.
11701 (sparc_frame_saved_pc): Ditto.
11702 (sparc_get_saved_register): Instead of get_saved_register, use
11703 frame_register.
11704 (sparc_pop_frame): Ditto.
11705 * findvar.c: Update comments.
11706 (value_of_register): Call frame_register instead of
11707 get_saved_register.
11708 (value_from_register): Ditto.
11709 * config/sparc/tm-sparc.h: Update comment.
11710 * breakpoint.c: Update comment.
11711
129c1cd6
AC
117122003-03-14 Andrew Cagney <cagney@redhat.com>
11713
11714 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11715 GET_SAVED_REGISTER.
11716 * gdbarch.h, gdbarch.c: Re-generate.
11717 * frame.h: Update comments.
11718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11719 * x86-64-tdep.c (x86_64_init_abi): Update.
11720 * sparc-tdep.c (sparc_gdbarch_init): Update.
11721 * sh-tdep.c (sh_gdbarch_init): Update.
11722 * mips-tdep.c (mips_gdbarch_init): Update.
11723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11724 * cris-tdep.c (cris_gdbarch_init): Update.
11725 * ia64-tdep.c (ia64_gdbarch_init): Update.
11726 * frame.c (frame_register): Update.
11727 (get_saved_register): Update.
11728 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11729
749b82f6
AC
117302003-03-13 Andrew Cagney <cagney@redhat.com>
11731
11732 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11733 * gdbarch.h, gdbarch.c: Regenerate.
11734 * valops.c (hand_function_call): Update comment.
11735 * stack.c (return_command): Update comment.
11736 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11737 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11738 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11739 * x86-64-tdep.c (x86_64_init_abi): Update.
11740 * vax-tdep.c (vax_gdbarch_init): Update.
11741 * v850-tdep.c (v850_gdbarch_init): Update.
11742 * sparc-tdep.c (sparc_gdbarch_init): Update.
11743 * sh-tdep.c (sh_gdbarch_init): Update.
11744 * s390-tdep.c (s390_gdbarch_init): Update.
11745 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11746 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11748 * mips-tdep.c (mips_gdbarch_init): Update.
11749 * mcore-tdep.c (mcore_gdbarch_init): Update.
11750 * m68k-tdep.c (m68k_gdbarch_init): Update.
11751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11752 * ia64-tdep.c (ia64_gdbarch_init): Update.
11753 * i386-tdep.c (i386_gdbarch_init): Update.
11754 * hppa-tdep.c (hppa_gdbarch_init): Update.
11755 * h8300-tdep.c (h8300_gdbarch_init): Update.
11756 * frv-tdep.c (frv_gdbarch_init): Update.
11757 * cris-tdep.c (cris_gdbarch_init): Update.
11758 * avr-tdep.c (avr_gdbarch_init): Update.
11759 * arm-tdep.c (arm_gdbarch_init): Update.
11760 * alpha-tdep.c (alpha_gdbarch_init): Update.
11761
1594fa56
AC
117622003-03-13 Andrew Cagney <cagney@redhat.com>
11763
11764 * frame.c (legacy_frame_p): New function.
11765 (get_prev_frame): Use legacy_frame_p.
11766 * frame.h (legacy_frame_p): Declare.
11767
7717fda3
V
117682003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11769
fbe586ae 11770 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11771 listing corrected.
11772
0c67cbe9
V
117732003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11774
fbe586ae 11775 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11776
03febf99
AC
117772003-03-12 Andrew Cagney <cagney@redhat.com>
11778
11779 * frame.c (get_prev_frame): Rename the frame parameter to
11780 "this_frame".
11781 (get_next_frame, legacy_get_prev_frame): Ditto.
11782
0a1e1ca1
AC
117832003-03-12 Andrew Cagney <cagney@redhat.com>
11784
11785 * frame.c (get_current_frame): Check target_has_registers before
11786 checking target_has_stack.
11787 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11788 instead of deprecated_selected_frame.
11789 * findvar.c (value_of_register): Pass "frame", not
11790 deprecated_selected_frame, to value_of_builtin_reg.
11791
a66a9c23
AC
117922003-03-12 Andrew Cagney <cagney@redhat.com>
11793
11794 * regcache.c (regcache_cooked_write_signed): New function.
11795 (regcache_cooked_write_unsigned): New function.
11796 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11797 (regcache_cooked_read_signed): Fix regnum in range assertion.
11798 * regcache.h (regcache_cooked_write_signed): Declare.
11799 (regcache_cooked_write_unsigned): Declare.
11800
8bedc050
AC
118012003-03-12 Andrew Cagney <cagney@redhat.com>
11802
11803 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11804 * gdbarch.h, gdbarch.c: Re-generate.
11805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11806 * x86-64-tdep.h: Update.
11807 * x86-64-tdep.c (x86_64_init_abi): Update.
11808 * v850-tdep.c (v850_gdbarch_init): Update.
11809 * sparc-tdep.c (sparc_gdbarch_init): Update.
11810 * sh-tdep.c (sh_gdbarch_init): Update.
11811 * s390-tdep.c (s390_gdbarch_init): Update.
11812 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11813 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11814 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11815 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11816 * mips-tdep.c (mips_gdbarch_init): Update.
11817 * mcore-tdep.c (mcore_gdbarch_init): Update.
11818 * m68k-tdep.c (m68k_gdbarch_init): Update.
11819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11820 * ia64-tdep.c (ia64_gdbarch_init): Update.
11821 * i386-tdep.c (i386_gdbarch_init): Update.
11822 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11823 * hppa-tdep.c (hppa_gdbarch_init): Update.
11824 * h8300-tdep.c (h8300_gdbarch_init): Update.
11825 * frv-tdep.c (frv_gdbarch_init): Update.
11826 * cris-tdep.c (cris_gdbarch_init): Update.
11827 * avr-tdep.c (avr_gdbarch_init): Update.
11828 * arm-tdep.c (arm_gdbarch_init): Update.
11829 * alpha-tdep.c (alpha_gdbarch_init): Update.
11830 * sh-tdep.c (sh_init_extra_frame_info): Update.
11831 (sh64_init_extra_frame_info): Update.
11832 * ns32knbsd-nat.c (frame_num_args): Update.
11833 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11834 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11835 (xstormy16_frame_chain_valid): Update.
11836 * vax-tdep.c (vax_saved_pc_after_call): Update.
11837 * v850-tdep.c (v850_frame_chain): Update.
11838 (v850_pop_frame): Update.
11839 (v850_init_extra_frame_info): Update.
11840 * sparc-tdep.c (setup_arbitrary_frame): Update.
11841 * ns32k-tdep.c (umax_frame_num_args): Update.
11842 * s390-tdep.c (s390_pop_frame_regular): Update.
11843 * mn10300-tdep.c (mn10300_frame_chain): Update.
11844 (mn10300_pop_frame_regular): Update.
11845 (mn10300_init_extra_frame_info): Update.
11846 * mips-tdep.c (mips_init_frame_pc_first): Update.
11847 (mips_frame_chain): Update.
11848 (mips_pop_frame): Update.
11849 * mcore-tdep.c (mcore_frame_chain): Update.
11850 (mcore_pop_frame): Update.
11851 (mcore_init_extra_frame_info): Update.
11852 * arch-utils.c (init_frame_pc_default): Update.
11853 * m68k-tdep.c (isi_frame_num_args): Update.
11854 (delta68_frame_num_args): Update.
11855 (news_frame_num_args): Update.
11856 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11857 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11858 (alpha_frame_chain): Update.
11859 (alpha_pop_frame): Update.
11860 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11861 (hppa_init_extra_frame_info): Update.
11862 (hppa_frame_chain): Update.
11863 (hppa_frame_chain_valid): Update.
11864 * cris-tdep.c (cris_init_extra_frame_info): Update.
11865 * avr-tdep.c (avr_init_extra_frame_info): Update.
11866 * arm-tdep.c (arm_frame_chain_valid): Update.
11867 (arm_init_extra_frame_info): Update.
11868 (arm_pop_frame): Update.
11869 * frame.c (frame_pc_unwind): Update.
11870 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11871 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11872 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11873 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11874 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11875 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11876
7a25a7c1
AC
118772003-03-12 Andrew Cagney <cagney@redhat.com>
11878
11879 Eliminate the need for POP_FRAME.
11880 * frame.c (do_frame_unwind_register): New function.
11881 (frame_pop): When no POP_FRAME, pop the frame using register
11882 unwind and a scratch regcache.
11883 (frame_saved_regs_pop): Delete function.
11884 (trad_frame_unwinder): Update.
11885 * d10v-tdep.c (d10v_frame_pop): Delete function.
11886 (d10v_frame_unwind): Update.
11887 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11888 (sentinel_frame_unwinder): Update.
11889 * dummy-frame.c (dummy_frame_pop): Delete function.
11890 (dummy_frame_unwind): Update.
11891 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11892 (struct frame_unwind): Update.
11893
2f38ef89
KB
118942003-03-11 Kevin Buettner <kevinb@redhat.com>
11895
11896 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11897 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11898 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11899 Do range checks on register number obtained from debugging info.
11900 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11901 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11902 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11903 mapping function.
11904 (do_fp_register_row): Fix typo which caused double type to be
11905 used when attempting to unpack a float.
11906
552f4abf
JB
119072003-03-11 J. Brobecker <brobecker@gnat.com>
11908
11909 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11910
e0d2ae16
AC
119112003-03-11 Andrew Cagney <cagney@redhat.com>
11912
11913 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11914 frame. Problem found by Corinna Vinschen.
11915
ddbfdd06
PM
119162003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11917
11918 * doublest.c (floatformat_from_length): Accept also
11919 the real size of 'long double' type.
11920
088b2ddc 119212003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11922
088b2ddc 11923 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11924 * breakpoint.c (bpstat_copy): Copy the command lines as well
11925 as the old value, to match what is freed in bpstat_clear.
11926
f56f77c1
DC
119272003-03-10 David Carlton <carlton@math.stanford.edu>
11928
11929 * minsyms.c (add_minsym_to_hash_table): Replace
11930 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11931 (compare_minimal_symbols, compact_minimal_symbols)
11932 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11933 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11934 of DEPRECATED_SYMBOL_MATCHES_NAME.
11935 (lookup_minimal_symbol_solib_trampoline): Ditto.
11936
5602984a
AC
119372003-03-10 Andrew Cagney <cagney@redhat.com>
11938
11939 * regcache.h (regcache_cooked_read_ftype): Define.
11940 (regcache_save, regcache_restore): Add a cooked_read parameter.
11941 * regcache.c (regcache_save, regcache_restore): Update.
11942 (do_cooked_read): New function.
11943 (regcache_cpy): Pass do_cooked_read to regcache_save and
11944 regcache_restore.
11945
8bedc050
AC
119462003-03-10 Andrew Cagney <cagney@redhat.com>
11947
11948 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11949 * gdbarch.h, gdbarch.c: Re-generate.
11950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11951 * x86-64-tdep.h: Update.
11952 * x86-64-tdep.c (x86_64_init_abi): Update.
11953 * v850-tdep.c (v850_gdbarch_init): Update.
11954 * sparc-tdep.c (sparc_gdbarch_init): Update.
11955 * sh-tdep.c (sh_gdbarch_init): Update.
11956 * s390-tdep.c (s390_gdbarch_init): Update.
11957 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11958 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11959 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11960 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11961 * mips-tdep.c (mips_gdbarch_init): Update.
11962 * mcore-tdep.c (mcore_gdbarch_init): Update.
11963 * m68k-tdep.c (m68k_gdbarch_init): Update.
11964 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11965 * ia64-tdep.c (ia64_gdbarch_init): Update.
11966 * i386-tdep.c (i386_gdbarch_init): Update.
11967 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11968 * hppa-tdep.c (hppa_gdbarch_init): Update.
11969 * h8300-tdep.c (h8300_gdbarch_init): Update.
11970 * frv-tdep.c (frv_gdbarch_init): Update.
11971 * cris-tdep.c (cris_gdbarch_init): Update.
11972 * avr-tdep.c (avr_gdbarch_init): Update.
11973 * arm-tdep.c (arm_gdbarch_init): Update.
11974 * alpha-tdep.c (alpha_gdbarch_init): Update.
11975 * sh-tdep.c (sh_init_extra_frame_info): Update.
11976 (sh64_init_extra_frame_info): Update.
11977 * ns32knbsd-nat.c (frame_num_args): Update.
11978 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11979 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11980 (xstormy16_frame_chain_valid): Update.
11981 * vax-tdep.c (vax_saved_pc_after_call): Update.
11982 * v850-tdep.c (v850_frame_chain): Update.
11983 (v850_pop_frame): Update.
11984 (v850_init_extra_frame_info): Update.
11985 * sparc-tdep.c (setup_arbitrary_frame): Update.
11986 * ns32k-tdep.c (umax_frame_num_args): Update.
11987 * s390-tdep.c (s390_pop_frame_regular): Update.
11988 * mn10300-tdep.c (mn10300_frame_chain): Update.
11989 (mn10300_pop_frame_regular): Update.
11990 (mn10300_init_extra_frame_info): Update.
11991 * mips-tdep.c (mips_init_frame_pc_first): Update.
11992 (mips_frame_chain): Update.
11993 (mips_pop_frame): Update.
11994 * mcore-tdep.c (mcore_frame_chain): Update.
11995 (mcore_pop_frame): Update.
11996 (mcore_init_extra_frame_info): Update.
11997 * arch-utils.c (init_frame_pc_default): Update.
11998 * m68k-tdep.c (isi_frame_num_args): Update.
11999 (delta68_frame_num_args): Update.
12000 (news_frame_num_args): Update.
12001 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12002 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12003 (alpha_frame_chain): Update.
12004 (alpha_pop_frame): Update.
12005 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12006 (hppa_init_extra_frame_info): Update.
12007 (hppa_frame_chain): Update.
12008 (hppa_frame_chain_valid): Update.
12009 * cris-tdep.c (cris_init_extra_frame_info): Update.
12010 * avr-tdep.c (avr_init_extra_frame_info): Update.
12011 * arm-tdep.c (arm_frame_chain_valid): Update.
12012 (arm_init_extra_frame_info): Update.
12013 (arm_pop_frame): Update.
12014 * frame.c (frame_pc_unwind): Update.
12015 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12016 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12017 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12018 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12019 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12020 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12021
12cc2063
AC
120222003-03-10 Andrew Cagney <cagney@redhat.com>
12023
12024 * gdbarch.sh (gdbarch_unwind_pc): New method.
12025 * gdbarch.h, gdbarch.c: Regenerate.
12026 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12027 but use read_pc and FRAME_SAVED_PC as fall backs.
12028 (frame_saved_regs_pc_unwind): Delete function.
12029 (trad_frame_unwinder): Update.
12030 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12031 (struct frame_unwind): Update.
12032 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12033 (dummy_frame_unwind): Update.
12034 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12035 (sentinel_frame_unwinder): Update.
12036 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12037 (d10v_frame_unwind): Update.
12038 (d10v_unwind_pc): New function.
12039 (d10v_gdbarch_init): Set unwind_pc.
12040
ef840a37
AC
120412003-03-10 Andrew Cagney <cagney@redhat.com>
12042
a2ce2e56
AC
12043 * gdbarch.h: Re-generate.
12044
ef840a37
AC
12045 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12046 PC.
12047 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12048 the PC register.
12049
08f3424b
MK
120502003-03-08 Mark Kettenis <kettenis@gnu.org>
12051
12052 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12053
1248ede2
AC
120542003-03-08 Andrew Cagney <cagney@redhat.com>
12055
12056 * cli-out.c: Update copyright.
12057 (cli_out_data): Define typedef. Use instead of ui_out_data.
12058
f49bacc8
AC
120592003-03-08 Andrew Cagney <cagney@redhat.com>
12060
12061 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12062 the result.
12063
9b05f993
AC
120642003-03-07 Andrew Cagney <cagney@redhat.com>
12065
12066 * gdbarch.sh: Don't generate two macro definitions when an
12067 undefined macro taking no arguments.
12068 * gdbarch.h: Regenerate.
8ffd9b1b 12069
166f4c7b
ML
120702002-03-07 Michal Ludvig <mludvig@suse.cz>
12071
12072 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12073 (x86_64_unwind_dummy_id): New functions.
12074 (x86_64_init_abi): Register these two new functions.
12075
6d686a84
ML
120762003-03-07 Michal Ludvig <mludvig@suse.cz>
12077
12078 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12079 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12080 separate function.
12081 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12082
6314f104
AC
120832003-03-05 Andrew Cagney <cagney@redhat.com>
12084
12085 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12086 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12087 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12088 to use unwind_dummy_id when a dummy frame.
12089 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12090 predicate.
12091 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12092
ceea5145
AC
120932003-03-05 Andrew Cagney <cagney@redhat.com>
12094
12095 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12096 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12097 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12098 values.
12099
0d843116
AC
121002003-03-05 Andrew Cagney <cagney@redhat.com>
12101
12102 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12103 (struct d10v_unwind_cache): Delete field "frameless". Replace
12104 "next_addr" with "sp_offset". Add "r11_offset".
12105 (d10v_frame_unwind_cache): Update.
12106 (prologue_find_regs): Update. When "mv r11, sp", save the
12107 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12108 RN was saved in r11_offset.
12109
b2579786
AC
121102003-03-05 Andrew Cagney <cagney@redhat.com>
12111
12112 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12113 cached PC value in the next frame.
12114
218e5956
AC
121152003-03-05 Andrew Cagney <cagney@redhat.com>
12116
12117 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12118 "id_unwind_cache" with "id".
12119 (frame_id_unwind): Delete declaration.
12120 * frame.c (frame_id_unwind): Delete function.
12121 (get_prev_frame): Call the frame id unwind method directly. Store
12122 the returned next frame's ID value in NEXT_FRAME. Note that there
12123 is a problem with the wrong unwind ID being called with the wrong
12124 unwind cache.
12125
ed363b1b
DJ
121262003-03-05 Daniel Jacobowitz <drow@mvista.com>
12127
12128 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12129
fe1f4a5e
DJ
121302003-03-05 James Ingham <jingham@apple.com>
12131 Daniel Jacobowitz <drow@mvista.com>
12132
12133 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12134 (auto_cp_abi): New variable.
12135 (current_cp_abi, num_cp_abis): Make static.
12136 (CP_ABI_MAX): Define.
12137 (cp_abis): Turn into an array.
12138 (value_virtual_fn_field): Fix formatting.
12139 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12140 takes a pointer.
12141 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12142 (list_cp_abis, _initialize_cp_abi): New functions.
12143 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12144 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12145 switch_to_cp_abi. Update prototype for register_cp_abi.
12146 * Makefile.in (cp-abi.o): Update dependencies.
12147 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12148 instead of switch_to_cp_abi.
12149 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12150 register_cp_abi.
12151 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12152 register_cp_abi.
12153 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12154
e4adbba9
DJ
121552003-03-05 Daniel Jacobowitz <drow@mvista.com>
12156
12157 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12158 * dwarf2loc.c: Include "regcache.h".
12159 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12160 register_size.
12161 * Makefile.in (dwarf2loc.o): Update dependencies.
12162
91ccbfc1
TR
121632003-03-04 Theodore A. Roth <troth@openavr.org>
12164
12165 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12166 number of io registers reported by remote target is not a multiple of
12167 step.
12168
3d4e8fd2
DC
121692003-03-04 David Carlton <carlton@math.stanford.edu>
12170
12171 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12172 (lookup_symbol_aux_psymtabs): Update call to
12173 lookup_partial_symbol.
12174 (lookup_transparent_type, find_main_psymtab)
12175 (make_symbol_overload_list): Ditto.
12176
ed42d87b
KH
121772003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12178
12179 * MAINTAINERS (Write after approval): Update my email address.
12180
a0ed5532
AC
121812003-03-03 Andrew Cagney <cagney@redhat.com>
12182
12183 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12184 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12185 predicate. Replace MAX_REGISTER_RAW_SIZE.
12186 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12187 MAX_REGISTER_VIRTUAL_SIZE.
12188 * regcache.c (legacy_max_register_raw_size): New function.
12189 (legacy_max_register_virtual_size): New function.
12190 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12191 (MAX_REGISTER_RAW_SIZE): Define.
12192 (legacy_max_register_raw_size): Declare.
12193 (legacy_max_register_virtual_size): Declare.
12194 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12195 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12196 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12197 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12198 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12199 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12200 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12201 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12202 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12204 * vax-tdep.c (vax_gdbarch_init): Update.
12205 * v850-tdep.c (v850_gdbarch_init): Update.
12206 * sparc-tdep.c (sparc_gdbarch_init): Update.
12207 * sh-tdep.c (sh_gdbarch_init): Update.
12208 * s390-tdep.c (s390_gdbarch_init): Update.
12209 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12211 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12212 * mips-tdep.c (mips_gdbarch_init): Update.
12213 * mcore-tdep.c (mcore_gdbarch_init): Update.
12214 * m68k-tdep.c (m68k_gdbarch_init): Update.
12215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12216 * ia64-tdep.c (ia64_gdbarch_init): Update.
12217 * i386-tdep.c (i386_gdbarch_init): Update.
12218 * hppa-tdep.c (hppa_gdbarch_init): Update.
12219 * h8300-tdep.c (h8300_gdbarch_init): Update.
12220 * frv-tdep.c (frv_gdbarch_init): Update.
12221 * cris-tdep.c (cris_gdbarch_init): Update.
12222 * avr-tdep.c (avr_gdbarch_init): Update.
12223 * arm-tdep.c (arm_gdbarch_init): Update.
12224 * alpha-tdep.c (alpha_gdbarch_init): Update.
12225 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12226 max_register_raw_size or max_register_virtual_size.
12227
8e437497
DC
122282003-03-03 David Carlton <carlton@math.stanford.edu>
12229
12230 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12231 SYMBOL_MATCHES_NAME, add comment.
12232 (SYMBOL_MATCHES_NATURAL_NAME): New.
12233 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12234 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12235 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12236 * symtab.c (lookup_partial_symbol): Use
12237 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12238 unhelpful comment.
12239 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12240 SYMBOL_MATCHES_NAME.
12241 Fix for PR c++/33.
12242
25120b0d
DC
122432003-03-03 David Carlton <carlton@math.stanford.edu>
12244
12245 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12246 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12247 by regexp matching against SYMBOL_NATURAL_NAME.
12248
78a11fb4
DC
122492003-03-03 David Carlton <carlton@math.stanford.edu>
12250
12251 * linespec.c (find_method): Extract code into collect_methods.
12252 (collect_methods): New.
12253
645dd519
MK
122542003-03-02 Mark Kettenis <kettenis@gnu.org>
12255
b4700d91
MK
12256 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12257 get_frame_base.
12258
645dd519
MK
12259 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12260 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12261
0aa7e1aa
SC
122622003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12263
8ffd9b1b 12264 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12265 and not regnum when summing the size of all registers up to regnum.
12266
f30ee0bc
AC
122672003-03-01 Andrew Cagney <cagney@redhat.com>
12268
12269 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12270 FRAME_INIT_SAVED_REGS.
12271 * gdbarch.h, gdbarch.c: Regenerate.
12272 * stack.c (frame_info): Update.
12273 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12274 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12275 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12276 * ns32k-tdep.c (ns32k_pop_frame): Update.
12277 * mips-tdep.c (mips_pop_frame): Update.
12278 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12279 * ia64-tdep.c (ia64_frame_chain): Update.
12280 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12281 (ia64_frameless_function_invocation): Update.
12282 (ia64_init_extra_frame_info): Update.
12283 (ia64_pop_frame_regular): Update.
12284 * frame.h (struct frame_info): Update comment.
12285 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12286 * frame.c (frame_saved_regs_register_unwind): Update.
12287 (frame_saved_regs_register_unwind): Update.
12288 (deprecated_generic_get_saved_register): Update.
12289 * cris-tdep.c: Update comment.
12290 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12291 Rename macro.
12292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12293 * x86-64-tdep.c (x86_64_init_abi): Update.
12294 * vax-tdep.c (vax_gdbarch_init): Update.
12295 * v850-tdep.c (v850_gdbarch_init): Update.
12296 * sparc-tdep.c (sparc_gdbarch_init): Update.
12297 * sh-tdep.c (sh_gdbarch_init): Update.
12298 * s390-tdep.c (s390_gdbarch_init): Update.
12299 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12300 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12301 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12303 * mips-tdep.c (mips_gdbarch_init): Update.
12304 * mcore-tdep.c (mcore_gdbarch_init): Update.
12305 * m68k-tdep.c (m68k_gdbarch_init): Update.
12306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12307 * ia64-tdep.c (ia64_gdbarch_init): Update.
12308 * i386-tdep.c (i386_gdbarch_init): Update.
12309 * frv-tdep.c (frv_gdbarch_init): Update.
12310 * avr-tdep.c (avr_gdbarch_init): Update.
12311 * arm-tdep.c (arm_gdbarch_init): Update.
12312 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12313
42fa7c0f
AC
123142003-03-01 Andrew Cagney <cagney@redhat.com>
12315
12316 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12317 option enum and switch. When no windows, set the interpreter to
12318 INTERP_CONSOLE.
8ffd9b1b 12319
49c7e338
AC
123202003-03-01 Andrew Cagney <cagney@redhat.com>
12321
12322 * main.c (captured_main): Replace magic option characters with an
12323 enum.
12324
e9582e71
AC
123252003-03-01 Andrew Cagney <cagney@redhat.com>
12326
12327 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12328 INIT_EXTRA_FRAME_INFO.
12329 * gdbarch.h, gdbarch.c: Regenerate.
12330 * arm-tdep.c: Update comments.
12331 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12332 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12333 * frame.h, avr-tdep.c: Ditto.
12334 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12335 (create_new_frame, legacy_get_prev_frame): Ditto.
12336 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12337 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12338 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12339 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12340 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12341 * v850-tdep.c (v850_gdbarch_init): Ditto.
12342 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12343 * sh-tdep.c (sh_gdbarch_init): Ditto.
12344 * s390-tdep.c (s390_gdbarch_init): Ditto.
12345 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12346 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12347 * mips-tdep.c (mips_gdbarch_init): Ditto.
12348 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12350 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12351 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12352 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12353 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12354 * frv-tdep.c (frv_gdbarch_init): Ditto.
12355 * cris-tdep.c (cris_gdbarch_init): Ditto.
12356 * avr-tdep.c (avr_gdbarch_init): Ditto.
12357 * arm-tdep.c (arm_gdbarch_init): Ditto.
12358 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12359 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12360
35cac7cf
AC
123612003-03-01 Andrew Cagney <cagney@redhat.com>
12362
12363 * gdbarch.sh (register_type): New function with predicate.
12364 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12365 * gdbarch.h, gdbarch.c: Re-generate.
12366 * arch-utils.c (generic_register_byte): Use generic_register_size.
12367 (generic_register_size): When available, use
12368 gdbarch_register_type.
12369 * regcache.c (init_regcache_descr): When available, initialize the
12370 register type array using gdbarch_register_type. If the
12371 architecture supplies gdbarch_register_type, do not use the legacy
12372 regcache layout.
12373 * d10v-tdep.c (d10v_register_type): Replace
12374 d10v_register_virtual_type.
12375 (d10v_gdbarch_init): Set register_type instead of
12376 register_virtual_type.
12377
7b83296f
AC
123782003-03-01 Andrew Cagney <cagney@redhat.com>
12379
12380 * Makefile.in (ax-gdb.o): Update dependencies.
12381 * ax-gdb.c: Include "regcache.h".
12382 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12383 * findvar.c (value_of_register): Ditto.
12384 * infcmd.c (default_print_registers_info): Ditto.
12385
eadc1c87
MK
123862003-03-01 Mark Kettenis <kettenis@gnu.org>
12387
12388 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12389 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12390
14143612
MK
123912003-03-01 Mark Kettenis <kettenis@gnu.org>
12392
12393 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12394 of STREQ.
12395
a55cc764
DJ
123962003-02-28 Daniel Jacobowitz <drow@mvista.com>
12397
12398 * Makefile.in (dwarf2loc.o): Update dependencies.
12399 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12400 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12401 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12402 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12403 (locexpr_tracepoint_var_ref): New function.
12404 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12405
08a617da
AC
124062003-02-28 Andrew Cagney <cagney@redhat.com>
12407
12408 * regcache.c (register_size): New function.
12409 * regcache.h (register_size): Declare
12410 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12411 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12412
4224873a
DC
124132003-02-28 David Carlton <carlton@math.stanford.edu>
12414
12415 * linespec.c (decode_compound): Extract code into find_method.
12416 (find_method): New.
12417
ccdc5d7f
JB
124182003-02-28 J. Brobecker <brobecker@gnat.com>
12419
12420 * Makefile.in: Add rules to build and link in observer.o.
12421
974e8ced
JB
124222003-02-27 J. Brobecker <brobecker@gnat.com>
12423
12424 * observer.c: Minor comments edits.
12425
7a28f973
JB
124262003-02-27 J. Brobecker <brobecker@gnat.com>
12427
12428 * observer.h, observer.c: New file.
12429
27cddce2
AC
124302003-02-27 Andrew Cagney <cagney@redhat.com>
12431
12432 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12433
b94a41a1
SC
124342003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12435
12436 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12437 (M6812_OP_STS_EXT): Likewise.
12438 (m6811_prologue): Use the above to recognize prologue.
12439 (m6812_prologue): Likewise.
12440
c8be8951
DC
124412003-02-27 David Carlton <carlton@math.stanford.edu>
12442
12443 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12444 SYMBOL_PRINT_NAME.
12445 (compare_psymbols): Ditto.
12446 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12447
d05bb1fc
MS
124482003-02-27 Michael Snyder <msnyder@redhat.com>
12449
4e845cd3
MS
12450 * f-lang.c (build_fortran_types): New function.
12451 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12452 * doublest.c (extract_floating): Fix warning text.
12453
f3824013
AC
124542003-02-27 Andrew Cagney <cagney@redhat.com>
12455
12456 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12457 predicate. Replaces PUSH_DUMMY_FRAME.
12458 * gdbarch.h, gdbarch.c: Regnerate.
12459 * valops.c (hand_function_call): Update. Call
12460 generic_push_dummy_frame directly.
12461 * vax-tdep.c (vax_gdbarch_init): Update.
12462 * sparc-tdep.c (sparc_gdbarch_init): Update.
12463 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12464 * m68k-tdep.c (m68k_gdbarch_init): Update.
12465 * hppa-tdep.c (hppa_gdbarch_init): Update.
12466 * alpha-tdep.c (alpha_gdbarch_init): Update.
12467 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12468 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12469 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12470 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12471 push_dummy_frame to generic_push_dummy_frame.
12472 * v850-tdep.c (v850_gdbarch_init): Ditto.
12473 * sh-tdep.c (sh_gdbarch_init): Ditto.
12474 * s390-tdep.c (s390_gdbarch_init): Ditto.
12475 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12476 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12477 * mips-tdep.c (mips_gdbarch_init): Ditto.
12478 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12480 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12481 * i386-tdep.c (i386_gdbarch_init): Ditto.
12482 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12483 * frv-tdep.c (frv_gdbarch_init): Ditto.
12484 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12485 * cris-tdep.c (cris_gdbarch_init): Ditto.
12486 * avr-tdep.c (avr_gdbarch_init): Ditto.
12487 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12488
ad188201
KB
124892003-02-26 Kevin Buettner <kevinb@redhat.com>
12490
12491 * mips-tdep.c (show_mips_abi): New function.
12492 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12493 command ``show mips abi''.
12494
6b37567a 124952003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12496
6b37567a 12497 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12498 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12499 more sline entries have been seen for the function.
12500
d3e0a5bf
MC
125012003-02-26 Michael Chastain <mec@shout.net>
12502
12503 * configure: Regenerate with autoconf 000227.
12504
18972eea
MC
125052003-02-26 Michael Chastain <mec@shout.net>
12506
12507 Close PR build/660.
12508 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12509 for old libc5/glibc.
12510 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12511
0bbde931
KW
125122003-02-26 Kris Warkentin <kewarken@qnx.com>
12513
12514 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12515 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12516
27ca5dad
MC
125172003-02-26 Michael Chastain <mec@shout.net>
12518
12519 * configure.in: New variable HAVE_UINTPTR_T.
12520 * configure, config.in: Regenerated.
12521
6f88d630
DJ
125222003-02-26 Daniel Jacobowitz <drow@mvista.com>
12523
12524 Fix PR build/1097.
12525 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12526
b14185ce
AC
125272003-02-25 Andrew Cagney <cagney@redhat.com>
12528
12529 * frame.c (get_prev_frame): Add comment on check for
12530 inside_entry_func. Only check for inside_entry_file when not a
12531 dummy and not a sentinel. Check that the new frame is not inner
12532 to the old frame.
12533
ac2bd0a9
AC
125342003-02-25 Andrew Cagney <cagney@redhat.com>
12535
12536 * frame.c (frame_debug): New variable.
12537 (_initialize_frame): Add "set/show debug frame" command.
12538 (get_prev_frame): When frame_debug, print reason why unwind
12539 failed.
12540
b18a0fd2
MC
125412003-02-25 Michael Chastain <mec@shout.net>
12542
12543 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12544 to avoid uintptr_t definition problems.
12545
22abf04a
DC
125462003-02-25 David Carlton <carlton@math.stanford.edu>
12547
12548 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12549 (SYMBOL_LINKAGE_NAME): Ditto.
12550 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12551 SYMBOL_LINKAGE_NAME.
12552 (struct general_symbol_info): Expand comment.
12553 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12554 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12555 (SYMBOL_MATCHES_REGEXP): Ditto.
12556 * symtab.c (symbol_natural_name): New function.
12557 * objfiles.h: Replace all uses of SYMBOL_NAME by
12558 DEPRECATED_SYMBOL_NAME.
12559 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12560 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12561 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12562 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12563 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12564 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12565 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12566 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12567 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12568 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12569 * ada-exp.y: Ditto.
12570 * ada-exp.y: Update copyright.
12571 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12572 * cp-valprint.c: Ditto.
12573
1a5848f6
JJ
125742003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12575
12576 * infptrace.c (detach): Do not flag error if ptrace detach fails
12577 and errno is set to ESRCH.
12578
7343d46a
AC
125792003-02-24 Andrew Cagney <cagney@redhat.com>
12580
12581 * infptrace.c (udot_info): Change type of udot_off to long. Use
12582 paddr when printing udot_off's value.
12583
49fa1dc2
DC
125842003-02-24 David Carlton <carlton@math.stanford.edu>
12585
12586 * symtab.c (make_symbol_overload_list): Only read in partial
12587 symtabs containing a matching partial symbol.
12588
0fe19209
DC
125892003-02-24 David Carlton <carlton@math.stanford.edu>
12590
12591 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12592 do the comparison, not strcmp.
12593 * symfile.c (compare_psymbols): Ditto.
12594 * defs.h: Declare strcmp_iw_ordered.
12595 * utils.c (strcmp_iw_ordered): New function.
12596
8e3ee7b5
JB
125972003-02-24 Jim Blandy <jimb@redhat.com>
12598
12599 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12600 support, shared libs): Remove my name from here, to better reflect
12601 reality.
12602
7df1a324
KW
126032003-02-24 Kris Warkentin <kewarken@qnx.com>
12604
12605 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12606 (target_ops): Add to_have_continuable_watchpoint.
12607 * target.c (update_current_target): Add INHERIT line for
12608 to_have_continuable_watchpoint.
12609 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12610 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12611 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12612 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12613
d1c76907
EZ
126142003-02-24 Elena Zannoni <ezannoni@redhat.com>
12615
12616 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12617 maintainership.
12618
2610b0bf
KW
126192003-02-24 Kris Warkentin <kewarken@qnx.com>
12620
f46169db
KW
12621 * solib.c (solib_open): Call target defined search function after
12622 failing with solib-search-path.
12623 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12624 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12625
9a3c34fe
KW
126262003-02-24 Kris Warkentin <kewarken@qnx.com>
12627
f46169db 12628 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12629
2417dd25
SC
126302003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12631
12632 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12633
b631436b
SC
126342003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12635
12636 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12637 (m68hc11_add_reggroups): New function.
12638 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12639 (m68hc11_gdbarch_init): Install the reggroups.
12640 (_initialize_m68hc11_tdep): Initialize them.
12641
0aa8c1e4
JW
126422003-02-21 James E Wilson <wilson@tuliptree.org>
12643
12644 * MAINTAINERS: Update my email address.
12645
50ceaba5
DC
126462003-02-21 David Carlton <carlton@math.stanford.edu>
12647
12648 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12649
4c2df51b
DJ
126502003-02-21 Daniel Jacobowitz <drow@mvista.com>
12651
12652 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12653 * symtab.h: Add opaque declarations of struct axs_value and
12654 struct agent_expr.
12655 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12656 (struct location_funcs): New type.
12657 (struct symbol): Add "loc" to aux_value.
12658 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12659 * dwarf2read.c: Include "dwarf2expr.h".
12660 (dwarf2_symbol_mark_computed): New function.
12661 (read_func_scope): Use it.
12662 (var_decode_location): New function.
12663 (new_symbol): Use it.
12664 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12665
12666 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12667 (dwarf2expr_h, dwarf2loc_h): New variables.
12668 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12669 (dwarf2expr.o, dwarf2loc.o): New rules.
12670 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12671 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12672 LOC_COMPUTED_ARG.
12673 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12674 * m2-exp.y (yylex): Likewise.
12675 * printcmd.c (address_info, print_frame_args): Likewise.
12676 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12677 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12678 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12679 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12680 * symtab.c (lookup_block_symbol): Likewise.
12681
5784d15e
AF
126822003-02-20 Adam Fedor <fedor@gnu.org>
12683
12684 * symtab.h: Remove objc_specific struct
12685 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12686 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12687 Have language_objc use cplus_specific struct.
12688
d4cad8db
TT
126892003-02-20 Tom Tromey <tromey@redhat.com>
12690
12691 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12692 TYPE_NAME, when printing a String value. PR java/1075.
12693
2f9a90b4
AF
126942003-02-20 Adam Fedor <fedor@gnu.org>
12695
d38074a8 12696 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12697 * objc-lang.c (find_methods): Make static.
2f9a90b4 12698
6f17862b
CF
126992003-02-20 Christopher Faylor <cgf@redhat.com>
12700
12701 * win32-nat.c (get_image_name): Check return value from
12702 ReadProcessMemory.
12703 (child_xfer_memory): Ditto.
12704
715d1656
AO
127052003-02-20 Alexandre Oliva <aoliva@redhat.com>
12706
12707 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12708 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12709 '${exec_prefix}' (in addition to the expansion thereof) as
12710 relocatable.
12711 * configure: Rebuilt.
12712
b1262a02
DC
127132003-02-20 David Carlton <carlton@math.stanford.edu>
12714
12715 * symtab.c (search_symbols): Revert the search_symbols part of my
12716 2002-12-23 patch. Add comment.
12717
7134143f
DJ
127182002-02-20 Daniel Jacobowitz <drow@mvista.com>
12719
12720 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12721 * dbxread.c (elfstab_build_psymtabs): Don't call
12722 install_minimal_symbols.
12723 (stabsect_build_psymtabs): Likewise.
12724 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12725 earlier.
12726 * somread.c (som_symfile_read): Call install_minimal_symbols
12727 and do_cleanups earlier.
12728 * nlmread.c (nlm_symfile_read): Likewise.
12729 * mdebugread.c (elfmdebug_build_psymtabs): Call
12730 install_minimal_symbols and make appropriate cleanups.
12731
cf466558
KB
127322003-02-20 Kevin Buettner <kevinb@redhat.com>
12733
12734 * solib.c (reload_shared_libraries): New function.
12735 (_initialize_solib): Add callbacks for ``set solib-search-path''
12736 and ``set solib-absolute-prefix''.
12737
de5ad195
DC
127382003-02-20 David Carlton <carlton@math.stanford.edu>
12739
12740 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12741 expand comment.
12742 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12743 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12744 * ada-typeprint.c (ada_typedef_print): Ditto.
12745 * ax-gdb.c (gen_var_ref): Ditto.
12746 * breakpoint.c (print_one_breakpoint): Ditto.
12747 * buildsym.c (finish_block): Ditto.
12748 * c-valprint.c (c_val_print): Ditto.
12749 * expprint.c (print_subexp): Ditto.
12750 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12751 * infcmd.c (jump_command): Ditto.
12752 * linespec.c (decode_line_2, decode_compound): Ditto.
12753 * maint.c (maintenance_translate_address): Ditto.
12754 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12755 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12756 Ditto.
8ffd9b1b
AJ
12757 * p-valprint.c (pascal_val_print): Ditto.
12758 * stabsread.c (define_symbol): Ditto.
de5ad195 12759 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12760 (print_frame_arg_vars, return_command): Ditto.
12761 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12762 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12763 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12764 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12765 (rbreak_command): Ditto.
12766 * tracepoint.c (tracepoints_info): Ditto.
12767 * typeprint.c (typedef_print): Ditto.
12768 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12769 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12770 * ada-typeprint.c: Update Copyright.
12771 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12772 * tracepoint.c, cli/cli-cmds.c: Ditto.
12773
f796e4be
KB
127742003-02-20 Kevin Buettner <kevinb@redhat.com>
12775
12776 * frame.c (generic_unwind_get_saved_register): Make non-static.
12777 * frame.h (generic_unwind_get_saved_register): Declare.
12778 * mips-tdep.c (read_next_frame_reg): Fetch register from
12779 current regcache when frame is NULL.
12780 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12781 that must be NULL.
12782 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12783 instead of frame_register_unwind().
12784
836cc9f4
AC
127852003-02-20 Andrew Cagney <ac131313@redhat.com>
12786
12787 * remote-sim.c (gdbsim_insert_breakpoint)
12788 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12789 code.
12790
501eef12
AC
127912003-02-20 Andrew Cagney <ac131313@redhat.com>
12792
12793 * remote.c (_initialize_remote): Add commands "set/show remote
12794 hardware-watchpoint-limit" and "set/show remote
12795 hardware-breakpoint-limit".
12796 (remote_hw_watchpoint_limit): Initialize to -1.
12797 (remote_hw_breakpoint_limit): Ditto.
12798 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12799
1b6bc7e0
CF
128002003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12801
12802 * coff-pe-read.c: New file - support reading of minimal symbols from a
12803 portable executable using the export table.
12804 * coff-pe-read.h: New file.
12805 * coffread.c: Include coff-pe-read.h.
12806 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12807 debugging symbols found.
12808 * Makefile.in (SFILES): Add coff-pe-read.o.
12809 (coff_pe_read_h): Define.
12810 (COMMON_OBS): Add coff-pe-read.o.
12811 (coffread.o): Add coff_pe_read_h dependency.
12812 (coff-pe-read.o): New target.
12813
fe898f56
DC
128142003-02-19 David Carlton <carlton@math.stanford.edu>
12815
12816 * Makefile.in (SFILES): Add block.c.
12817 (block_h): New.
12818 (COMMON_OBS): Add block.o.
12819 (block.o): New.
12820 (x86-64-tdep.o): Add $(block_h).
12821 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12822 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12823 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12824 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12825 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12826 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12827 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12828 * value.h: Add opaque declaration for struct block.
12829 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12830 * ada-lang.h: Ditto.
12831 * x86-64-tdep.c: #include "block.h"
12832 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12833 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12834 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12835 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12836 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12837 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12838 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12839 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12840 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12841 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12842 * symtab.c (block_function): Ditto.
12843 (contained_in): Ditto.
12844 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12845 block.h. Add opaque declaration for struct block.
12846 * symtab.h: Move block_function and contained_in declarations to
12847 block.h. Add opaque declarations for struct block, struct
12848 blockvector.
12849 (struct block): Move to block.h.
12850 (struct blockvector): Ditto.
12851 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12852 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12853 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12854 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12855 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12856 Ditto.
12857 * block.c: New file.
12858 * block.h: New file.
12859
173345b5
TR
128602003-02-19 Theodore A. Roth <troth@openavr.org>
12861
12862 * avr-tdep.c (avr_extract_return_value): Remove function.
12863 (avr_store_return_value): Remove function.
12864 (avr_extract_struct_value_address): Remove function.
12865 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12866
338ef23d
AC
128672003-02-19 Andrew Cagney <ac131313@redhat.com>
12868
12869 * rs6000-tdep.c: Include "gdb_assert.h".
12870 (registers_e500): Add "acc" and "spefscr".
12871 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12872 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12873 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12874 really is "r0".
12875 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12876
5412f5f3
KS
128772003-02-18 Keith Seitz <keiths@redhat.com>
12878
12879 * Makefile.in: Add gdbtk-interps.c.
12880
881324eb
KB
128812003-02-18 Kevin Buettner <kevinb@redhat.com>
12882
12883 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12884 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12885
6a2f5abf
AC
128862003-02-18 Andrew Cagney <cagney@redhat.com>
12887
12888 * symtab.h (struct objfile): Add opaque declaration.
12889
54c7009d
EZ
128902003-02-18 Elena Zannoni <ezannoni@redhat.com>
12891
12892 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12893 * dbxread.c (process_one_symbol): Use last_function_start rather
12894 than function_start_offset to find the real beginning of the
12895 current function. The latter is just the text section offset on
12896 some systems, the former is always the real function start.
54c7009d 12897
7ee6d7eb
AC
128982003-02-17 Andrew Cagney <cagney@redhat.com>
12899
12900 * configure.in: Revert ${target} != ${host}.
12901
2846da9b
AC
129022003-02-17 Andrew Cagney <ac131313@redhat.com>
12903
12904 * configure.in (Makefile): Use the test ${target} != ${host},
12905 instead of the absence of the "nm.h" file, to determine of the
12906 configuration non-native.
12907 * configure: Regenerate.
8ffd9b1b 12908
3b27aeea
EZ
129092003-02-14 Elena Zannoni <ezannoni@redhat.com>
12910
fbe586ae 12911 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12912
12913 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12914 conditionalize tui_active test.
12915 (lookup_cmd_1): Ditto.
12916
b0b1c2c0
MK
129172003-02-14 Mark Kettenis <kettenis@gnu.org>
12918
12919 * configure.in: Add check for _etext.
12920 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12921 available.
12922 * config.in, configure: regenerated.
12923
8f05cde5
DJ
129242003-02-14 Daniel Jacobowitz <drow@mvista.com>
12925
12926 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12927
021e7609
AC
129282003-02-14 Andrew Cagney <ac131313@redhat.com>
12929
12930 * main.c (tui_version): Delete variable.
12931 (captured_main): When --tui, set interpreter_p to "tui" instead of
12932 enabling tui_version.
12933 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12934 tui_version.
12935 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12936 * cli/cli-cmds.c (disassemble_command): Ditto.
12937 * defs.h (tui_version): Delete declaration.
12938 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12939 (tui-interp.o): Add rules.
12940 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12941
e325dcec
CF
129422003-02-14 Christopher Faylor <cgf@redhat.com>
12943
36ffb041 12944 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12945 just-loaded dll.
12946
c4f90d87
JM
129472003-02-12 Jason Molenda (jmolenda@apple.com)
12948
fbe586ae
RH
12949 * symmisc.c (print_objfile_statistics): Include information about
12950 the number of psymtabs and symtabs in each object file.
c4f90d87 12951
e46e5ccd
KS
129522003-02-13 Keith R Seitz <keiths@redhat.com>
12953
12954 * main.h (struct captured_main_args): Add interpreter_p.
12955 * main.c (captured_main): Initialize interpreter_p from context.
12956 * gdb.c (main): Set interpreter_p argument.
12957 * Makefile.in (gdb.o): Add dependency for interps.h.
12958
fe97fe9c
AC
129592003-02-12 Andrew Cagney <ac131313@redhat.com>
12960
12961 * event-top.c (cli_command_loop): Delete declaration.
12962 (_initialize_event_loop): Delete function setting event_loop_hook.
12963 * event-top.h (cli_command_loop): Declare. Update copyright.
12964 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12965 * interps.c (current_interp_command_loop): When event_loop_p, call
12966 cli_command_loop.
12967
1cdac4ef
AC
129682003-02-12 Andrew Cagney <ac131313@redhat.com>
12969
12970 * interps.h (interp_command_loop_ftype): Change return type to
12971 void.
12972
48037ead
ML
129732003-02-12 Michal Ludvig <mludvig@suse.cz>
12974
12975 * x86-64-tdep.c (x86_64_extract_return_value)
12976 (x86_64_store_return_value): Use regcache instead of regbuf.
12977 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12978 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12979
033afc63
AC
129802003-02-11 Andrew Cagney <ac131313@redhat.com>
12981
12982 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12983 * aclocal.m4: Regenerate.
12984 * configure: Regenerate.
12985
12986 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12987 TCL_LD_SEARCH_FLAGS.
12988
40d02bca
ML
129892003-02-10 Michal Ludvig <mludvig@suse.cz>
12990
12991 * dwarf2cfi.c: Reindented.
12992
11308a41
AC
129932003-02-09 Andrew Cagney <ac131313@redhat.com>
12994
12995 * interps.c (clear_interpreter_hooks): Convert function definition
12996 to ISO C.
12997
e1c1c0f6
DC
129982003-02-07 David Carlton <carlton@math.stanford.edu>
12999
13000 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13001
ab5d3da6
KB
130022003-02-07 Kevin Buettner <kevinb@redhat.com>
13003
13004 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13005 (struct type): ...to here.
13006 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13007 field.
13008 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13009 (replace_type): Set length on all type variants for a given type.
13010
b8a92b82
AC
130112003-02-07 Andrew Cagney <ac131313@redhat.com>
13012
13013 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13014 <sys/stat.h>.
13015 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13016
5cb316ef
AC
130172003-02-06 Andrew Cagney <ac131313@redhat.com>
13018
2555fe1a
AC
13019 * Makefile.in (symm-nat.o): Update dependencies.
13020 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13021 (lynx-nat.o, ia64-linux-nat.): Ditto.
13022 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13023 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13024 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13025
44270758
AC
13026 * Makefile.in (inflow_h): Define.
13027 (procfs.o, inflow.o, procfs.o): Update dependencies.
13028 * inftarg.c (child_stop): Delete extern declaration of
13029 inferior_process_group. Include "inflow.h".
13030 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13031 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13032 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13033 (our_process_group, inferior_process_group): Extern declarations.
13034
df8f7274
AC
13035 * procfs.c: Include "gdb_assert.h".
13036
5cb316ef
AC
13037 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13038 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13039 * jv-typeprint.c (java_type_print_base): Ditto.
13040 * typeprint.c (typedef_print): Eliminate STREQ.
13041 * cli/cli-script.c (define_command, define_command): Ditto.
13042 * main.c (captured_main): Ditto.
13043 * values.c (lookup_internalvar): Ditto.
13044 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13045 within `if' conditional.
13046 * linespec.c (decode_line_2): Ditto.
13047 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13048 (bfd_openw_with_cleanup): Ditto.
13049
2a28ccea
MK
130502003-02-07 Mark Kettenis <kettenis@gnu.org>
13051
13052 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13053 legacy_extract_return_value and store_return_value to
13054 legacy_return_value.
13055
786b8124
CF
130562003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13057
13058 * win32-nat.c (get_relocated_section_addrs): New function. Find
13059 section load addresses for symbol handling in relocated DLLs.
13060 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13061
b871e4ec
FF
130622003-02-05 Fred Fish <fnf@intrinsity.com>
13063
13064 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13065 '=' and '!='.
13066 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13067 with '&' and '=='.
13068 (angel_RDI_info): Ditto.
13069 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13070 with '&' and '!='.
13071 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13072
4389a95a 130732003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13074 Keith Seitz <keiths@redhat.com>
13075 Elena Zannoni <ezannoni@redhat.com>
13076 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13077
13078 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13079 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13080 (SUBDIR_MI_OBS): Add "mi-interp.o".
13081 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13082 (SFILES): Add "interps.c".
13083 (COMMON_OBS): Add "interps.o".
13084 (interps_h, mi_main_h): Define.
13085 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13086 (mi-main.o, main.o, event-top.o): Update dependencies.
13087 * cli/cli-interp.c: New file.
13088 * interps.h, interps.c: New files.
13089 * top.c: (gdb_init): Don't install the default interpreter, handed
13090 by captured_main.
13091 * main.c: Include "interps.h".
13092 (interpreter_p): Note that it should malloc'ed.
13093 (captured_command_loop): Call current_interp_command_loop.
13094 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13095 xfree and xstrdup when updating interpreter_p. Install the
13096 default interpreter. Add hack to stop mi1's copyright notice
13097 being encoded.
13098 * event-top.h (gdb_setup_readline): Declare.
13099 (gdb_disable_readline): Declare.
13100 * event-top.c: Include "interps.h".
13101 (display_gdb_prompt): Call current_interp_display_prompt_p.
13102 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13103 gdb_stdlog, and gdb_stdtarg.
13104 (_initialize_event_loop): Don't call gdb_setup_readline.
13105 * cli-out.c (cli_out_set_stream): New function.
13106 * cli-out.h (cli_out_set_stream): Declare.
13107
ff3b5810
MK
131082003-02-06 Mark Kettenis <kettenis@gnu.org>
13109
13110 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13111 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13112 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13113 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13114 config/i386/i386v42mp.mt: Removed.
13115
5b729aa5
MK
131162003-02-05 Mark Kettenis <kettenis@gnu.org>
13117
13118 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13119 GDB_OSABI_SOLARIS.
13120
8cc15142
MC
131212003-02-05 Michael Chastain <mec@shout.net>
13122
13123 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13124 2.12.1 and earlier versions.
13125
5aa5d4b9
AC
131262003-02-05 Andrew Cagney <ac131313@redhat.com>
13127
13128 Remove orphaned hosts, targets and files.
13129 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13130 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13131 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13132 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13133 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13134 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13135 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13136 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13137 * config/sparc/tm-sp64sim.h: Delete.
13138 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13139 hosts.
13140 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13141 mips*-dec-mach3* targets.
13142
b68767c1
MC
131432003-02-04 Michael Chastain <mec@shout.net>
13144
13145 * NEWS: Fix typo: sepcifying -> specifying.
13146
5ae7ca1d
MC
131472003-02-04 Michael Chastain <mec@shout.net>
13148
13149 * dwarfread.c: Add documentation on the state of dwarf-1,
13150 looking towards obsoletion.
13151
d08a4280
MC
131522003-02-03 Michael Chastain <mec@shout.net>
13153
13154 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13155 gdb/testsuite/gdb.c++/pr-1023.exp.
13156
e9be73e4
AC
131572003-02-04 Andrew Cagney <ac131313@redhat.com>
13158
13159 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13160 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13161
13162 * utils.c (init_page_info): Delete reference to MPW in comments.
13163 * main.c (captured_main): Delete #ifdef MPW.
13164
05d57f6f
AC
131652003-02-04 Andrew Cagney <ac131313@redhat.com>
13166
8ffd9b1b 13167 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13168 * monitor.c (monitor_expect): Obsolete reference to m32r.
13169 * configure.tgt: Mark m32r-*-elf* as obsolete.
13170 * MAINTAINERS: Mark m32k as obsolete.
13171 * m32r-rom.c: Obsolete file.
13172 * config/m32r/m32r.mt: Obsolete file.
13173 * config/m32r/tm-m32r.h: Obsolete file.
13174 * m32r-stub.c: Obsolete file.
13175 * m32r-tdep.c: Obsolete file.
13176
8b0e5691
AC
131772003-02-04 Andrew Cagney <ac131313@redhat.com>
13178
13179 * NEWS: Mention that the z8k-zilog-none is obsolete.
13180 * MAINTAINERS: Mark z8k as obsolete.
13181 * configure.tgt: Obsolete the z8k-*-coff* target.
13182 * config/z8k/z8k.mt: Obsolete file.
13183 * config/z8k/tm-z8k.h: Obsolete file.
13184 * z8k-tdep.c: Obsolete file.
13185
67f16606
AC
131862003-02-04 Andrew Cagney <ac131313@redhat.com>
13187
13188 * NEWS: Mention that the mn10200-elf is obsolete.
13189 * configure.tgt: Obsolete mn10200-*-* target.
13190 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13191 mention that the mn10200 is obsolete.
13192 * breakpoint.h: Ditto.
13193 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13194 * config/mn10200/mn10200.mt: Obsolete file.
13195 * config/mn10200/tm-mn10200.h: Obsolete file.
13196 * mn10200-tdep.c: Obsolete file.
13197
fd2299bd
AC
131982003-02-04 Andrew Cagney <ac131313@redhat.com>
13199
13200 * MAINTAINERS: Mark h8500 as obsolete.
13201 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13202 * findvar.c (value_from_register): Ditto.
13203 * h8500-tdep.c: Mark file as obsolete.
13204 * config/h8500/h8500.mt: Ditto.
13205 * config/h8500/tm-h8500.h: Ditto.
13206 * NEWS: Mention that h8500 is obsolete.
13207
eb9a305d
DC
132082003-02-04 David Carlton <carlton@math.stanford.edu>
13209
13210 * objfiles.c (allocate_objfile): Always set name. Add comment at
13211 start of function.
13212 * jv-lang.c (get_dynamics_objfile): Add comment.
13213
406fc7fb
DC
132142003-02-04 David Carlton <carlton@math.stanford.edu>
13215
13216 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13217 * printcmd.c (build_address_symbolic): Replace uses of
13218 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13219 SYMBOL_NAME, and asm_demangle.
13220 Update copyright.
13221
93d91629
DC
132222003-02-04 David Carlton <carlton@math.stanford.edu>
13223
13224 * linespec.c (decode_compound): Extract code into
13225 lookup_prefix_sym.
13226 (lookup_prefix_sym): New function.
13227
1c5cb38e
DC
132282003-02-04 David Carlton <carlton@math.stanford.edu>
13229
13230 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13231 FLOAT_COERCION_BADNESS.
13232 * gdbtypes.c (rank_one_type): Replace all uses of
13233 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13234
0cf824c9
JB
132352003-02-04 Jim Blandy <jimb@redhat.com>
13236
13237 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13238 section, let dwarf_macinfo_section point to it, not
13239 dwarf_loc_section.
13240
a2d356b0
DJ
132412003-02-04 Daniel Jacobowitz <drow@mvista.com>
13242
13243 Pointed out by Anton Blanchard <anton@samba.org>.
13244 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13245 (ppc_linux_at_sigtramp_return_path): Use it.
13246
2de7ced7
DJ
132472003-02-04 Daniel Jacobowitz <drow@mvista.com>
13248
13249 * defs.h (streq): Add prototype.
13250 * utils.c (streq): New function.
13251
13252 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13253 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13254 * mdebugread.c (new_symbol): Likewise.
13255 * stabsread.c (define_symbol): Likewise.
13256 * coffread.c (process_coff_symbol): Likewise.
13257 * dwarfread.c (new_symbol): Likewise.
13258
13259 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13260 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13261 here.
13262 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13263 SYMBOL_INIT_DEMANGLED_NAME.
13264 * objfiles.c: Include "hashtab.h".
13265 (allocate_objfile): Call htab_set_functions_ex for the
13266 demangled_names_hash.
13267 (free_objfile): Call htab_delete for the demangled_names_hash.
13268 * objfiles.h (struct htab): Add declaration.
13269 (struct objfile): Add demangled_names_hash.
13270 * symfile.c: Include "hashtab.h".
13271 (reread_symbols): Call htab_delete for the demangled_names_hash.
13272 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13273 SYMBOL_NAME in the bcache.
13274 * symtab.c: Include "hashtab.h". Update comments.
13275 (create_demangled_names_hash, symbol_set_names): New functions.
13276 (symbol_find_demangled_name): New function, broken out from
13277 symbol_init_demangled_names.
13278 (symbol_init_demangled_names): Use it.
13279 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13280 (SYMBOL_SET_NAMES): New macro.
13281 (symbol_set_names): Add prototype.
13282
15831452
JB
132832003-02-03 Jim Blandy <jimb@redhat.com>
13284
13285 Use a single, consistent representation for an empty minimal
13286 symbol table in an objfile.
13287 * objfiles.c (terminate_minimal_symbol_table): New function.
13288 (allocate_objfile): Call it.
13289 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13290 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13291 non-NULL.
15831452
JB
13292 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13293 objfile has minimal symbols, compare minimal_symbol_count to zero,
13294 instead of comparing msymbols with NULL.
13295 * objfiles.c (have_minimal_symbols): Same.
13296 * solib-sunos.c (solib_add_common_symbols): Call
13297 terminate_minimal_symbol_table.
13298 * symfile.c (reread_symbols): Same.
8ffd9b1b 13299
ffc65945
KB
133002003-02-03 Kevin Buettner <kevinb@redhat.com>
13301
13302 * s390-tdep.c (s390_address_class_type_flags)
13303 (s390_address_class_type_flags_to_name)
13304 (s390_address_class_name_to_type_flags): New functions.
13305 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13306 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13307
f211c6d4
MS
133082003-02-03 Michael Snyder <msnyder@redhat.com>
13309
13310 * arm-tdep.c: Fix spell-o in comment.
13311
659b0389
ML
133122003-02-03 Michal Ludvig <mludvig@suse.cz>
13313
13314 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13315 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13316 error messages to contain BFD filename.
659b0389 13317
3b31d625
EZ
133182003-02-02 Elena Zannoni <ezannoni@redhat.com>
13319
997b089a 13320 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13321 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13322 (do_mixed_source_and_assembly): Use
13323 make_cleanup_ui_out_tuple_begin_end and
13324 make_cleanup_ui_out_tuple_begin_end.
13325 (do_mixed_source_and_assembly): Ditto.
13326 * thread.c (do_captured_list_thread_ids): Ditto.
13327 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13328 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13329 ui_out_tuple_end): Delete prototypes.
13330 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13331 ui_out_list_end, ui_out_tuple_end): Delete.
13332
13333 From Kevin Buettner <kevinb@redhat.com>:
13334 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13335 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13336 (do_cleanup_table_end): New functions.
13337 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13338 Use cleanups to invoke_ui_out_tuple_end().
13339 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13340 * cli/cli-setshow.c (cmd_show_list): Use
13341 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13342
5b181d62
AC
133432003-02-02 Andrew Cagney <ac131313@redhat.com>
13344
13345 * frame.c (frame_unwind_register): New function.
13346 (frame_unwind_unsigned_register): Use.
13347 (frame_unwind_signed_register): Use.
13348 (frame_read_register): New function.
13349 * frame.h (frame_unwind_register): Declare.
13350 (frame_read_register): Declare.
13351
13352 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13353 and frame_unwind_register instead of read_memory, write_register
13354 and deprecated_write_register_bytes.
13355
5f601589
AC
133562003-02-02 Andrew Cagney <ac131313@redhat.com>
13357
13358 * frame.h: Note that namelen can be negative.
13359 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13360 NAME's length.
13361
13362 * NEWS: Mention that the d10v's `regs' command is deprecated.
13363 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13364 (d10v_print_registers_info): New function.
13365 (show_regs): Call d10v_print_registers_info.
13366 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13367
6a3fe0a4
MK
133682003-02-02 Mark Kettenis <kettenis@gnu.org>
13369
13370 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13371 lost in the previous patch.
13372
075559bc
AC
133732003-02-01 Andrew Cagney <ac131313@redhat.com>
13374
13375 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13376 * stack.c (print_frame_info_base): Output complete FRAME tuple
13377 for synthesized frames.
075559bc 13378
6789195b
AC
133792003-02-02 Andrew Cagney <ac131313@redhat.com>
13380
13381 * mips-nat.c (zerobuf): Delete.
13382 (fetch_inferior_registers): Alloc local zerobuf.
13383 (fetch_core_registers): Alloc local zerobuf.
13384 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13385 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13386 * thread-db.c (thread_db_store_registers): Ditto.
13387 * sh-tdep.c (sh_do_register): Ditto.
13388 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13389 * remote-sim.c (gdbsim_store_register): Ditto.
13390 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13391 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13392 * monitor.c (monitor_supply_register): Ditto.
13393 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13394 * mips-nat.c (fetch_inferior_registers): Ditto.
13395 * m68klinux-nat.c (fetch_register): Ditto.
13396 * lynx-nat.c (fetch_inferior_registers): Ditto.
13397 (fetch_inferior_registers): Ditto.
13398 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13399 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13400 (hpux_thread_store_registers): Ditto.
13401 * hppah-nat.c (fetch_register): Ditto.
13402 * hppab-nat.c (fetch_register): Ditto.
13403 * hppa-tdep.c (pa_register_look_aside): Ditto.
13404 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13405 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13406
e669114a
AC
134072003-02-01 Andrew Cagney <ac131313@redhat.com>
13408
13409 * gdbarch.sh: Explictly specify all method levels. When a
13410 variable with an empty level, provide a non-multi-arch default.
13411 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13412 * gdbarch.h: Re-generate.
13413 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13414 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13415
9a043c1d
AC
134162003-02-01 Andrew Cagney <ac131313@redhat.com>
13417
13418 * defs.h (host_pointer_to_address): Delete declaration.
13419 (address_to_host_pointer): Delete declaration.
13420 * utils.c (host_pointer_to_address): Delete function.
13421 (address_to_host_pointer): Delete function.
13422 * procfs.c (procfs_address_to_host_pointer): New function.
13423 * procfs.c (proc_set_watchpoint): Use.
13424 (procfs_can_use_hw_breakpoint): Update comments.
13425 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13426 (som_solib_add): Use.
13427 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13428 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13429
7ca9f392
AC
134302003-02-01 Andrew Cagney <ac131313@redhat.com>
13431
94bbfd30
AC
13432 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13433 strlen d_name.
13434
7ca9f392
AC
13435 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13436 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13437 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13438 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13439 (define_symbol): Update.
13440 * symfile.c (generic_load): Remove references to nindy.
13441 * symtab.c: Remove references to nindy.
13442
31a85ea2
AC
134432003-02-01 Andrew Cagney <ac131313@redhat.com>
13444
13445 * infcmd.c (print_float_info): Delete code conditional on
13446 FLOAT_INFO.
13447 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13448 * config/m68k/nm-apollo68b.h: Ditto.
13449 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13450 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13451 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13452
f6e85fc8
MK
134532003-02-01 Mark Kettenis <kettenis@gnu.org>
13454
6015b6a0
MK
13455 * config/i386/tm-i386os9k.h: Removed.
13456
f7a30bdf
MK
13457 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13458 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13459 they're identical to i[3456]86-*-sysv* now.
13460 * config/i386/i386v32.mh: Removed.
13461 * config/i386/xm-i386v32.h: Removed.
13462 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13463
28d52111
MK
13464 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13465
4d3f6bce
MK
13466 * config/i386/i386dgux.mh: Removed.
13467 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13468
f6e85fc8
MK
13469 * configure.in: Fix typo.
13470 * configure: Regenerated.
13471
53955967
DC
134722003-01-31 David Carlton <carlton@math.stanford.edu>
13473
13474 * dwarf2read.c (dwarf2_locate_sections): Set
13475 dwarf_ranges_section.
13476
b1364885
AC
134772003-01-31 Andrew Cagney <ac131313@redhat.com>
13478
8dbb1c65
AC
13479 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13480 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13481
8731e58e
AC
13482 * utils.c: Re-indent.
13483
b1364885
AC
13484 * config/djgpp/fnchange.lst: Delete nindy files.
13485 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13486 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13487 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13488 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13489 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13490 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13491 * Makefile.in (init.c): Remove nindy references.
13492 (saber_gdb): Delete rule.
13493 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13494 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13495 and a68v-nat.c.
13496 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13497 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13498 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13499 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13500 nindy-share/stop.h.
13501 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13502 * saber.suppress: Delete file.
13503
086df311
DJ
135042003-01-31 Daniel Jacobowitz <drow@mvista.com>
13505
13506 * dbxread.c (stabs_data): New static variable.
13507 (fill_symbuf): Support an in-memory buffer for stabs data.
13508 (stabs_seek): New function.
13509 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13510 (read_ofile_symtab): Use stabs_seek.
13511 (elfstab_build_psymtabs): Take an asection* instead of
13512 an offset and size. Relocate the stabs data if necessary.
13513 Save the section* for dbx_psymtab_to_symtab.
13514 * dwarf2read.c: Add section variables for each debug section.
13515 (dwarf2_locate_sections): Fill them in.
13516 (dwarf2_read_section): Take an asection* argument.
13517 Relocate the section contents if necessary.
13518 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13519 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13520 it to dwarf2_read_section.
13521 (dwarf2_build_frame_info): Update callers.
13522 * elfread.c (elf_symfile_read): Update call to
13523 elfstab_build_psymtabs.
13524 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13525 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13526 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13527 * symfile.c (symfile_dummy_outputs): New function.
13528 (symfile_relocate_debug_section): New function.
13529 * symfile.h (symfile_relocate_debug_section): Add prototype.
13530
87d1b352
RH
135312003-01-31 Richard Henderson <rth@redhat.com>
13532
13533 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13534 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13535 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13536 * alpha-tdep.c (alpha_register_name): Add "unique".
13537 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13538 (ALPHA_UNIQUE_REGNUM): New.
13539 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13540
c48861fb
AC
135412003-01-31 Andrew Cagney <ac131313@redhat.com>
13542
13543 * README: Remove reference to Ericsson 1800 monitor.
13544 * Makefile.in (remote-es.o): Delete rule.
13545 (ALLDEPFILES): Delete remote-es.c.
13546 * remote-es.c: Delete file.
13547 * config/m68k/es1800.mt: Delete file.
13548 * config/djgpp/fnchange.lst: Update.
13549 * configure.tgt: Delete m68*-ericsson-* target.
13550
d764a824
AF
135512003-01-31 Adam Fedor <fedor@gnu.org>
13552
13553 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13554 Remove duplicate/shadowing variable of same name.
13555
fe36c4f4
JB
135562003-01-30 Jim Blandy <jimb@redhat.com>
13557
13558 * symfile.c (find_separate_debug_file): Assert that the objfile's
13559 directory name we compute ends with a slash, and then assume that
13560 that's so everywhere we use it.
13561
cb741690
DJ
135622003-01-30 Daniel Jacobowitz <drow@mvista.com>
13563
13564 * valops.c (value_assign): Flush frame cache after stores to memory
13565 also.
13566
96ee5227
AC
135672003-01-30 Andrew Cagney <ac131313@redhat.com>
13568
13569 * Makefile.in (mon960-rom.o): Delete rule.
13570 * mon960-rom.c: Delete file.
13571
7f6104a9
AC
135722003-01-30 Andrew Cagney <ac131313@redhat.com>
13573
13574 * d10v-tdep.c: Include "frame-unwind.h".
13575 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13576 list.
13577 (next_addr, uses_frame): Delete.
13578 (struct d10v_unwind_cache): Define.
13579 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13580 Use info instead of next_addr and uses_frame globals.
13581 (d10v_frame_init_saved_regs): Delete function.
13582 (d10v_init_extra_frame_info): Delete function.
13583 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13584 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13585 init_frame_pc or frame_saved_pc.
13586 (d10v_pop_frame): Delete function.
13587 (do_d10v_pop_frame): Delete function.
13588 (d10v_frame_chain): Delete function.
13589 (d10v_frame_chain_valid): Delete function.
13590 (d10v_frame_pc_unwind): New function.
13591 (d10v_frame_id_unwind): New function.
13592 (saved_regs_unwinder): New function.
13593 (d10v_frame_register_unwind): New function.
13594 (d10v_frame_pop): New function.
13595 (d10v_frame_unwind): New variable.
13596 (d10v_frame_p): New function.
13597 (d10v_frame_saved_pc): Delete function.
13598 * Makefile.in (d10v-tdep.o): Update dependencies.
13599
cad2e848
JB
136002003-01-30 J. Brobecker <brobecker@gnat.com>
13601
13602 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13603 causing some regressions due to a change in the default value
13604 for this macro.
13605
af34e669
DJ
136062003-01-29 Richard Henderson <rth@redhat.com>
13607 Elena Zannoni <ezannoni@redhat.com>
13608 Daniel Jacobowitz <drow@mvista.com>
13609
13610 Fix PR gdb/961.
8ffd9b1b 13611 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13612 variables.
13613 (RANGES_SECTION): New.
13614 (dwarf_ranges_buffer): New variable.
13615 (struct comp_unit_head): Add member "die".
13616 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13617 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13618 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13619 (dwarf2_locate_sections): Likewise.
13620 (dwarf2_build_psymtabs): Read .debug_ranges.
13621 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13622 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13623 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13624 Look for DW_AT_ranges and return the bounding box.
13625
baa93fa6
CF
136262003-01-29 Brian Ford <ford@vss.fsi.com>
13627
13628 * win32-nat.c (cygwin_pid): Removed as unused.
13629 (child_attach): Try fall back to Cygwin pid.
13630
c63f977f
JB
136312003-01-29 Jim Blandy <jimb@redhat.com>
13632
13633 * objfiles.h (struct objfile): Doc fix.
13634
d62d1979
AC
136352003-01-29 Andrew Cagney <ac131313@redhat.com>
13636
13637 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13638 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13639 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13640 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13641 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13642 (FRAME_SAVED_PC): Change to a function with predicate.
13643 * gdbarch.h, gdbarch.c: Re-generate.
13644
1ae18a04
AC
136452003-01-28 Andrew Cagney <ac131313@redhat.com>
13646
52287340
AC
13647 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13648
1ae18a04
AC
13649 * complaints.c (complain): Delete function.
13650 * complaints.h (struct deprecated_complaint): Delete definition.
13651 (complain): Delete declaration.
13652
f2c16bd6
KB
136532003-01-28 Kevin Buettner <kevinb@redhat.com>
13654
13655 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13656 dummy frames.
13657
a94dd1fd
AC
136582003-01-27 Andrew Cagney <ac131313@redhat.com>
13659
13660 * sentinel-frame.h, sentinel-frame.c: New files.
13661 * Makefile.in (frame.o): Update dependencies.
13662 (SFILES): Add sentinel-frame.c.
13663 (sentinel_frame_h): Define.
13664 (COMMON_OBS): Add sentinel-frame.o.
13665 (sentinel-frame.o): Specify dependencies.
13666 * frame.c: Include "sentinel-frame.h".
13667 (frame_register_unwind): Rewrite assuming that there is always a a
13668 ->next frame.
13669 (frame_register, generic_unwind_get_saved_register): Ditto.
13670 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13671 (create_sentinel_frame, unwind_to_current_frame): New functions.
13672 (get_current_frame): Rewrite using create_sentinel_frame and
13673 unwind_to_current_frame. When possible, always create a frame.
13674 (create_new_frame): Set next to the sentinel frame.
13675 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13676 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13677 ID cache when necessary.
13678 (frame_saved_regs_id_unwind): Use frame_relative_level.
13679 (deprecated_generic_get_saved_register): Use frame_relative_level,
13680 get_frame_saved_regs, get_frame_pc, get_frame_base and
13681 get_next_frame.
13682 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13683 frame_register.
13684
5378adc4
DJ
136852003-01-27 Daniel Jacobowitz <drow@mvista.com>
13686
13687 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13688
51ee2ddc
DJ
136892003-01-27 Daniel Jacobowitz <drow@mvista.com>
13690
13691 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13692 (maintenance_set_profile_cmd): Use error () instead of warning ().
13693
d9feb4e7
DJ
136942003-01-27 Daniel Jacobowitz <drow@mvista.com>
13695
13696 * configure.in: Check that -pg works if using --enable-profiling.
13697 Check for monstartup and _mcleanup regardless of --enable-profiling.
13698 * maint.c: Check for monstartup and _mcleanup before using them.
13699 * config.in: Regenerated.
13700 * configure: Regenerated.
13701
2d188dd3
NC
137022003-01-24 Nick Clifton <nickc@redhat.com>
13703
13704 * Add sh2e support:
13705
13706 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13707
13708 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13709 (sh2e_show_regs): New.
13710 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13711 * config/sh/tm-sh.h: Added sh2e to comments.
13712
cb3c37b2
JB
137132003-01-23 Jim Blandy <jimb@redhat.com>
13714
13715 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13716 symbols found)" message here; we haven't checked for a separate
13717 debug info file yet, so we don't know yet.
13718 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13719 we've looked everywhere. Also, there's no need to print a special
13720 message when we're loading the separate debug info file: the one
13721 symbol_file_add prints is fine.
13722
5b5d99cf
JB
137232003-01-23 Alexander Larsson <alexl@redhat.com>
13724 Jim Blandy <jimb@redhat.com>
13725
13726 Add support for executables whose debug info has been separated
13727 out into a separate file, leaving only a link behind.
13728 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13729 and separate_debug_objfile_backlink.
13730 (put_objfile_before): New declaration.
13731 * symfile.c: #include "filenames.h".
13732 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13733 debug info in a separate file, read that, too. Save the addrs
13734 argument, so we can use it again to read the separated debug info;
13735 syms_from_objfile modifies the table we pass it.
13736 (reread_symbols): After re-reading an objfile, call
13737 reread_separate_symbols to refresh its separate debug info
13738 objfile, if it has one.
13739 (reread_separate_symbols, find_separate_debug_file,
13740 get_debug_link_info, separate_debug_file_exists): New functions.
13741 (debug_file_directory): New global var.
13742 (_initialize_symfile): Initialize debug_file_directory, and
13743 provide the new `set debug-file-directory' command to let the user
13744 change it.
13745 * objfiles.c (free_objfile): If this objfile has its debug info in
13746 a separate objfile, free that one too. If this is itself a
13747 separate debug info objfile, clear our parent's backlink.
13748 (put_objfile_before): New function.
13749 * utils.c (gnu_debuglink_crc32): New function.
13750 * defs.h (gnu_debuglink_crc32): New declaration.
13751 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13752 * configure.in: Handle --with-separate-debug-dir config option.
13753 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13754 * acconfig.h (DEBUGDIR): New macro.
13755 * configure, aclocal.m4, config.in: Regenerated.
13756
7e8580c1
JB
137572003-01-22 Jim Blandy <jimb@redhat.com>
13758
7904e09f
JB
13759 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13760 like the old symbol_file_add, but taking new arguments: you can
13761 now pass in either a `struct section_addr_info' list to say where
13762 each section is loaded, or a `struct section_offsets' table. Pass
13763 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13764 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13765 with the appropriate quiescent values for the new arguments.
13766
7e8580c1
JB
13767 * symfile.c: #include "gdb_assert.h".
13768 (syms_from_objfile): Add the ability to pass in a section offset
13769 table directly, as an alternative to the section_addr_info table.
13770 Document arguments better.
13771 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13772 * symfile.h (syms_from_objfile): Update declaration.
13773 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13774 syms_from_objfile.
13775 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13776
d28f9cdf
DJ
137772003-01-22 Daniel Jacobowitz <drow@mvista.com>
13778
13779 Original patch by Tom Tromey <tromey@cygnus.com> and
13780 Jason Molenda <jmolenda@apple.com>.
13781 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13782 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13783 * NEWS: Mention profiling.
13784 * configure.in (--enable-gdbtk): Fix typo.
13785 (--enable-profiling): New. Set PROFILE_CFLAGS.
13786 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13787 Fill in function.
13788 (profiling_state): New variable.
13789 (mcleanup_wrapper): New function.
13790 (_initialize_maint): Remove NOTYET, fix call to
13791 add_setshow_boolean_cmd for "maint set profile".
13792 * configure: Regenerated.
13793
df21e465
MH
137942003-01-21 Martin M. Hunt <hunt@redhat.com>
13795
13796 * Makefile.in (install-gdbtk): Install PNG images too.
13797
73c1f219
AC
137982003-01-21 Andrew Cagney <ac131313@redhat.com>
13799
13800 * exec.c (text_start): Delete global variable.
13801 (exec_file_attach): Make text_start local to the function.
13802 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13803 * valops.c (hand_function_call): Delete code that handles
13804 BEFORE_TEXT_END and AFTER_TEXT_END.
13805 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13806 of CALL_DUMMY_LOCATION.
13807 * gdbarch.c: Regenerate.
13808 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13809 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13810 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13811 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13812 (text_end): Delete extern declaration.
13813
eb4f72c5
AC
138142003-01-21 Andrew Cagney <ac131313@redhat.com>
13815
13816 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13817 * blockframe.c (backtrace_below_main): Move to "frame.c".
13818 (frame_chain_valid): Delete check for backtrace_below_main.
13819 (_initialize_blockframe): Delete initialization, move ``set
13820 backtrace-below-main'' command to "frame.c".
13821 (do_flush_frames_sfunc): Delete function.
13822 * frame.c: Include "command.h" and "gdbcmd.h".
13823 (frame_type_from_pc): New function.
13824 (create_new_frame): Use frame_type_from_pc.
13825 (legacy_get_prev_frame): New function.
13826 (get_prev_frame): Rewrite. When an old style frame, call
13827 legacy_get_prev_frame. Otherwize, unwind the PC first.
13828 (_initialize_frame): Add ``set backtrace-below-main'' command.
13829 * Makefile.in (frame.o): Update dependencies.
13830
778ce8cc
AC
138312003-01-19 Andrew Cagney <ac131313@redhat.com>
13832
13833 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13834 DEPRECATED_REGISTERS_INFO.
13835
01c193c8
AC
138362003-01-19 Andrew Cagney <ac131313@redhat.com>
13837
13838 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13839 Maintainers'. Update `Various Maintainers'.
13840
dedc2a2b
AC
138412003-01-19 Andrew Cagney <ac131313@redhat.com>
13842
13843 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13844 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13845 Suppress actual parameters when `-'.
13846 * gdbarch.h, gdbarch.c: Regenerate.
13847
b7261c70
AC
138482003-01-19 Andrew Cagney <ac131313@redhat.com>
13849
13850 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13851 code handling dummy frames.
13852
dbe9fe58
AC
138532003-01-19 Andrew Cagney <ac131313@redhat.com>
13854
13855 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13856 (struct frame_unwind): Add field pop.
13857 * frame.h (frame_pop): Declare.
13858 * frame.c (frame_saved_regs_pop): New function.
13859 (trad_frame_unwinder): Add frame_saved_regs_pop.
13860 (frame_pop): New function.
13861 * dummy-frame.c (dummy_frame_pop): New function.
13862 (discard_innermost_dummy): New function.
13863 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13864 (dummy_frame_unwind): Add dummy_frame_pop.
13865 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13866 * valops.c (hand_function_call): Ditto.
13867 * stack.c (return_command): Ditto.
13868
570b8f7c
AC
138692003-01-18 Andrew Cagney <ac131313@redhat.com>
13870
13871 * cris-tdep.c: Fix function declaration indentation.
13872 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13873 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13874 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13875 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13876 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13877 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13878
138792003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13880
13881 * README (Unpacking and Installation -- quick overview):
13882 Warn against ".../gdb-5.3/gdb/configure".
13883
494cca16
AC
138842003-01-18 Andrew Cagney <ac131313@redhat.com>
13885
13886 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13887 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13888 (struct frame_unwind): Declare opaque.
13889 (dummy_frame_p): Declare function.
13890 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13891 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13892 * dummy-frame.c: Include "frame-unwind.h".
13893 (dummy_frame_p): New function.
13894 (dummy_frame_unwind): New variable.
13895 * frame.c: Include "frame-unwind.h".
13896 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13897 to use the new unwind field.
13898 (set_unwind_by_pc): Delete function.
13899 (create_new_frame, get_prev_frame): Set unwind field using
13900 frame_unwind_find_by_pc.
13901 (trad_frame_unwind, trad_frame_unwinder): New variables.
13902 * frame.h (trad_frame_unwind): Declare variable.
13903 (frame_id_unwind_ftype): Delete declaration.
13904 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13905 (struct frame_unwind): Declare opaque.
13906 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13907 register_unwind with a single unwind pointer.
13908 * frame-unwind.h, frame-unwind.c: New files.
13909 * Makefile.in (SFILES): Add frame-unwind.c.
13910 (frame_unwind_h): Define.
13911 (COMMON_OBS): Add frame-unwind.o.
13912 (frame-unwind.o): Specify dependencies.
13913 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13914
4efb68b1
AC
139152003-01-18 Andrew Cagney <ac131313@redhat.com>
13916
13917 * ada-valprint.c: Eliminate PTR.
13918 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13919 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13920 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13921 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13922 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13923 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13924 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13925
a84d24ee
AC
139262003-01-17 Andrew Cagney <ac131313@redhat.com>
13927
762f08a3
AC
13928 * main.c (captured_main): Don't use PTR.
13929 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13930 * gdbtypes.c (lookup_primitive_typename): Ditto.
13931 (lookup_struct_elt_type): Ditto.
13932 * f-valprint.c (info_common_command): Ditto.
13933 (list_all_visible_commons): Ditto.
13934 * jv-typeprint.c (java_type_print_base): Ditto.
13935
a84d24ee
AC
13936 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13937 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13938 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13939 i386-interix-nat.c and i386-interix-tdep.c. Rename
13940 m68klinux-nat.c and m68klinux-tdep.c. Rename
13941 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13942 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13943 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13944 * main.c (captured_main): Use xfree, not free.
13945
c170fb60
AC
139462003-01-16 Andrew Cagney <ac131313@redhat.com>
13947
13948 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13949 ID back using a parameter.
13950 * frame.c (frame_id_unwind): Update call.
13951 (frame_saved_regs_id_unwind): Update.
13952 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13953 * dummy-frame.h (struct frame_id): Add opaque declaration.
13954 (dummy_frame_id_unwind): Update declaration.
13955
867f3898
AC
139562003-01-15 Andrew Cagney <ac131313@redhat.com>
13957
13958 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13959
40622be8 139602003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13961
40622be8 13962 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13963
ae66c1fc
EZ
139642003-01-14 Elena Zannoni <ezannoni@redhat.com>
13965
997b089a 13966 Fix PR gdb/898
ae66c1fc
EZ
13967 * breakpoint.c (until_break_command): Add new argument. Use it to
13968 decide whether to stop only at the current frame or not.
13969 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13970 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13971 call.
13972 (advance_command): New function.
13973 (_initialize_infcmd): Update help string for 'until' command.
13974 Add new 'advance' command.
13975
a04257e6
DC
139762003-01-14 David Carlton <carlton@math.stanford.edu>
13977
13978 * linespec.c (decode_line_1): Normalize comments.
13979 (set_flags): Ditto.
13980 (locate_first_half): Ditto.
13981 (decode_compound): Ditto.
13982 (symtab_from_filename): Ditto.
13983 (decode_all_digits): Ditto.
13984 (decode_dollar): Ditto.
13985 (find_methods): Ditto.
13986 (find_toplevel_char): Ditto.
13987
1bac305b
AC
139882003-01-13 Andrew Cagney <ac131313@redhat.com>
13989
13990 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13991 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13992 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13993 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13994 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13995 * language.c, language.h, m32r-tdep.c: Update copyright.
13996 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13997 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13998 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13999 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14000 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14001 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14002
25caa7a8
EZ
140032003-01-13 Elena Zannoni <ezannoni@redhat.com>
14004
14005 * stabsread.h (process_later, resolve_cfront_continuation):
14006 Obsolete.
14007 Update copyright years.
14008 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14009 Update copyright year.
14010 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14011 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14012 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14013 Update copyright year.
14014 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14015 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14016 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14017 (parse_partial_symbols): Obsolete cfront support.
14018 * stabsread.c
14019 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14020 macros.
14021 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14022 read_cfront_baseclasses, read_cfront_member_functions,
14023 resolve_cfront_continuation,read_cfront_static_fields,
14024 copy_cfront_struct_fields): Obsolete functions.
14025 (define_symbol, read_one_struct_field): Obsolete cfront support.
14026 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14027 Update Copyright year.
14028
7789c6f5
EZ
140292003-01-13 Elena Zannoni <ezannoni@redhat.com>
14030
14031 * stack.c (print_frame_info, print_stack_frame_base_stub,
14032 print_stack_frame_base, show_and_print_stack_frame_stub,
14033 show_and_print_stack_frame, print_only_stack_frame_stub,
14034 print_only_stack_frame): Delete functions.
14035 (print_stack_frame_stub): Call print_frame_info instead of
14036 print_frame_info_base.
14037 (print_frame_info_base): Rename to print_frame_info.
14038 (backtrace_command_1): Call print_frame_info, instead of
14039 print_frame_info_base.
14040 (current_frame_command): Call print_stack_frame, instead of
14041 print_only_stack_frame.
14042 (frame_command): Call print_stack_frame, instead of
14043 show_and_print_stack_frame.
14044 (up_command): Ditto.
14045 (down_command): Ditto.
14046 * frame.h (print_only_stack_frame): Delete prototype.
14047 * infrun.c (normal_stop): Call print_stack_frame, instead of
14048 show_and_print_stack_frame.
14049 * thread.c (info_threads_command): Call print_stack_frame, instead
14050 of print_only_stack_frame.
14051
3f5a3016
AC
140522003-01-13 Andrew Cagney <ac131313@redhat.com>
14053
d99ba314
AC
14054 * README (Graphical interface to GDB): Update URL. Point at
14055 gdb/links/.
14056
3f5a3016
AC
14057 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14058 version match.
14059
083ae935
DJ
140602003-01-13 Daniel Jacobowitz <drow@mvista.com>
14061
14062 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14063 lines.
14064
5365276c
DJ
140652003-01-13 Daniel Jacobowitz <drow@mvista.com>
14066
14067 * thread-db.c (attach_thread): Prototype.
14068 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14069 thread information (ti), and valid flags (th_valid, ti_valid).
14070 (attach_thread): Move target_pid_to_str call to after the thread
14071 is added to GDB's list. Initialize the cache.
14072 (thread_get_info_callback, thread_db_map_id2thr)
14073 (thread_db_get_info): New functions.
14074 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14075 (thread_db_store_registers, thread_db_thread_alive)
14076 (thread_db_get_thread_local_address): Use them.
14077 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14078 of calling error() for threads in unknown state.
14079
14080 (clear_lwpid_callback): New function.
14081 (thread_db_resume): Use it to clear the cache.
14082
9fc30b6b
DJ
140832003-01-13 Daniel Jacobowitz <drow@mvista.com>
14084
14085 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14086 (resume_callback): Remove dead code.
14087
8f871025
AC
140882003-01-13 Andrew Cagney <ac131313@redhat.com>
14089
14090 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14091 predicate.
14092 * gdbarch.h, gdbarch.c: Regenerate.
14093 * stack.c (frame_info): Only initialize the saved registers when
14094 FRAME_INIT_SAVED_REGS_P.
14095 * frame.c (frame_saved_regs_register_unwind): Assert
14096 FRAME_INIT_SAVED_REGS_P.
14097 (deprecated_generic_get_saved_register): Ditto.
14098
3f565f1e
DJ
140992003-01-13 Daniel Jacobowitz <drow@mvista.com>
14100
14101 * source.c (openp): Squelch warning about "filename".
14102
072b1022
DJ
141032003-01-13 Daniel Jacobowitz <drow@mvista.com>
14104
14105 * source.c (openp): If the file does not exist don't necessarily
14106 search the path.
14107
973ccf8b
DJ
141082003-01-13 Daniel Jacobowitz <drow@mvista.com>
14109
14110 Fix PR gdb/872.
14111 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14112 (integer_types_same_name_p): New function.
14113 (rank_one_type): Use it.
14114 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14115
030292b7
DJ
141162003-01-13 Daniel Jacobowitz <drow@mvista.com>
14117
14118 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14119 variables.
14120 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14121 * configure.in: Add --with-sysroot.
14122 * configure: Regenerated.
14123 * main.c (gdb_sysroot): New variable.
14124 (captured_main): Initialize gdb_sysroot.
14125 * defs.h (gdb_sysroot): New extern declaration.
14126 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14127
afb5d334
MC
141282003-01-12 Michael Chastain <mec@shout.net>
14129
14130 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14131
751ceeb4
MC
141322003-01-12 Michael Chastain <mec@shout.net>
14133
14134 * top.c (print_gdb_version): Bump copyright year to 2003.
14135
94cd26f8
DC
141362003-01-12 David Carlton <carlton@bactrian.org>
14137
14138 * linespec.c (symtab_from_filename): Rename variable 's' to
14139 'file_symtab'.
14140
1ce79225
AC
141412003-01-12 Andrew Cagney <ac131313@redhat.com>
14142
14143 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14144 dummy frame.
14145 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14146
fa1fd571
AC
141472003-01-12 Andrew Cagney <ac131313@redhat.com>
14148
14149 * d10v-tdep.c: Include "gdb_assert.h".
14150 (d10v_store_return_value): Rewrite to match current interface.
14151 (d10v_extract_struct_value_address): Ditto.
14152 (d10v_extract_return_value): Ditto.
14153 (d10v_gdbarch_init): Set store_restore_value,
14154 extract_struct_value_address and extract_return_value.
14155
68b8d23e
JB
141562003-01-12 J. Brobecker <brobecker@gnat.com>
14157
14158 * hpread.c (set_namestring): New procedure replacing the
14159 SET_NAMESTRING macro.
14160 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14161 by calls to set_namestring.
14162
141632003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14164
14165 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14166 a compilation warning.
14167 (hpread_process_one_debug_symbol): Likewise.
14168
88d262ca
DC
141692003-01-10 David Carlton <carlton@math.stanford.edu>
14170
14171 * linespec.c (decode_line_1): Rename variable 's' to
14172 'file_symtab'.
14173 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14174 (decode_dollar): Ditto.
14175 (decode_variable): Ditto.
14176 (symbol_found): Ditto.
14177
86669319
MC
141782003-01-09 Michael Chastain <mec@shout.net>
14179
14180 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14181
616a9dc4
CV
141822003-01-07 Corinna Vinschen <vinschen@redhat.com>
14183
14184 * win32-nat.c (set_process_privilege): New function.
14185 (child_attach): Call set_process_privilege() to enable the
14186 SE_DEBUG_NAME user privilege if available in process token.
14187
3269bcfa
JB
141882003-01-10 J. Brobecker <brobecker@gnat.com>
14189
14190 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14191 compilation error in the previous revision.
14192
2b0ee454
DC
141932003-01-09 David Carlton <carlton@math.stanford.edu>
14194
14195 * linespec.c: Update copyright.
14196
b3ba1b44
DJ
141972003-01-09 Daniel Jacobowitz <drow@mvista.com>
14198
14199 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14200 than inferior_ptid.
14201 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14202
4ef3f3be
AC
142032003-01-09 Andrew Cagney <ac131313@redhat.com>
14204
479ab5a0
AC
14205 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14206 Update comments.
14207 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14208 (frame_saved_regs_zalloc): Update.
14209 (frame_saved_regs_register_unwind): Update.
14210 (create_new_frame): Update.
14211 (get_prev_frame): Update.
14212 (frame_extra_info_zalloc): Update.
14213 (deprecated_get_frame_saved_regs): Update.
14214 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14215 * cris-tdep.c: Update comment.
14216
bde58177
AC
14217 * somsolib.h: Fix function indentation.
14218 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14219 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14220 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14221 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14222 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14223
4ef3f3be
AC
14224 * infrun.c (follow_fork): Use ISO C definition.
14225 * expprint.c (print_subexp): Use xfree instead of free.
14226 * charset.c: Include "gdb_string.h" instead of <string.h>.
14227 (register_iconv_charsets): Use ISO C definition.
14228 (host_charset, target_charset): Ditto.
14229 * Makefile.in (charset.o): Update dependencies.
14230 (mi-cmd-env.o): Update dependencies.
14231
1c615f7a
AC
142322003-01-08 Andrew Cagney <cagney@redhat.com>
14233
14234 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14235 get_frame_base.
14236
c9a1dc08
AC
142372003-01-08 Andrew Cagney <ac131313@redhat.com>
14238
14239 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14240 build directories. Save edited gdb output in Mbuild.log. If a
14241 build fails, remove any final GDB executable.
14242
dbad9d94
AC
142432003-01-08 Andrew Cagney <ac131313@redhat.com>
14244
14245 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14246 replacing hex constants with function names and stripping leading
14247 file name directory prefixes.
14248
8d357cca
AC
142492003-01-08 Andrew Cagney <cagney@redhat.com>
14250
14251 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14252 get_frame_base.
14253
bca02a8a
DC
142542003-01-08 David Carlton <carlton@math.stanford.edu>
14255
14256 * linespec.c (decode_line_1): Move code into decode_variable.
14257 (decode_variable): New function.
14258
7f8ab3a0
AC
142592003-01-08 Andrew Cagney <ac131313@redhat.com>
14260
14261 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14262
7b5849cc
AC
142632003-01-08 Andrew Cagney <cagney@redhat.com>
14264
14265 * cris-tdep.c (cris_frame_init_saved_regs): Use
14266 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14267 saved_regs buffer.
14268 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14269 (sh64_nofp_frame_init_saved_regs): Ditto.
14270 (sh_fp_frame_init_saved_regs): Ditto.
14271 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14272 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14273 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14274 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14275
72a5efb3
DJ
142762003-01-08 Daniel Jacobowitz <drow@mvista.com>
14277
14278 * minsyms.c (lookup_minimal_symbol): Update comment.
14279 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14280 (lookup_minimal_symbol_solib_trampoline): Likewise.
14281
11c02a10
AC
142822003-01-08 Andrew Cagney <cagney@redhat.com>
14283
aab3ea25
AC
14284 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14285 frame_relative_level.
14286
da50a4b7
AC
14287 * alpha-tdep.c: Use get_frame_extra_info.
14288 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14289 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14290 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14291 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14292
11c02a10
AC
14293 * alpha-tdep.c: Use get_next_frame.
14294 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14295 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14296 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14297 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14298 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14299 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14300 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14301
1e2330ba
AC
143022003-01-07 Andrew Cagney <cagney@redhat.com>
14303
14304 * alpha-tdep.c: Use get_frame_base.
14305 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14306 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14307 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14308 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14309 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14310 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14311 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14312 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14313
2d75187b
AC
143142003-01-07 Andrew Cagney <cagney@redhat.com>
14315
14316 * frame.c (deprecated_get_frame_context): New function.
14317 (deprecated_set_frame_context): New function.
14318 * frame.h (deprecated_get_frame_context): Declare.
14319 (deprecated_set_frame_context): Declare.
14320 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14321 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14322
483d36b2
AC
143232003-01-07 Andrew Cagney <cagney@redhat.com>
14324
14325 * frame.c (deprecated_set_frame_next_hack): New function.
14326 (deprecated_set_frame_prev_hack): New function.
14327 * frame.h (deprecated_set_frame_next_hack): Declare.
14328 (deprecated_set_frame_prev_hack): Declare.
14329 * mcore-tdep.c (analyze_dummy_frame): Use
14330 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14331 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14332
14e91ac5
DC
143332003-01-07 David Carlton <carlton@math.stanford.edu>
14334
14335 * linespec.c (decode_line_1): Move code into decode_dollar.
14336 (decode_dollar): New function.
14337
b0c6b05c
AC
143382003-01-07 Andrew Cagney <cagney@redhat.com>
14339
14340 * arm-tdep.c (arm_init_extra_frame_info): Use
14341 deprecated_update_frame_base_hack.
14342 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14343 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14344 (fix_frame_pointer): Ditto.
14345 (mn10300_analyze_prologue): Ditto.
14346
a00a19e9
AC
143472003-01-07 Andrew Cagney <cagney@redhat.com>
14348
14349 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14350 extra_info using frame_extra_info_zalloc.
14351 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14352 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14353 (sh64_init_extra_frame_info): Ditto.
14354 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14355 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14356 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14357 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14358 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14359 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14360 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14361 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14362 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14363 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14364 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14365 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14366
14367 * mn10300-tdep.c (analyze_dummy_frame): Use
14368 deprecated_set_frame_extra_info_hack.
14369 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14370
1fb4c65b
JB
143712003-01-07 J. Brobecker <brobecker@gnat.com>
14372
14373 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14374 class is not scText. These do not define "real" procedures.
14375 (parse_partial_symbols): Likewise.
14376
9fe7d6bf
MS
143772003-01-06 Michael Snyder <msnyder@redhat.com>
14378
14379 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14380
f6c609c4
AC
143812003-01-06 Andrew Cagney <ac131313@redhat.com>
14382
14383 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14384 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14385 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14386 deprecated_frame_xmalloc_with_cleanup.
14387 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14388 deprecated_frame_xmalloc.
14389 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14390 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14391
d995ff4b
AC
143922003-01-06 Andrew Cagney <cagney@redhat.com>
14393
84dc46cb
AC
14394 * x86-64-linux-tdep.c: Include "osabi.h".
14395 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14396
d995ff4b
AC
14397 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14398
66140c26
AC
143992003-01-06 Andrew Cagney <cagney@redhat.com>
14400
14401 * MAINTAINERS (Target Instruction Set Architectures): Update
14402 arm-elf. Can be built with -Werror, has been multiarched.
14403
14404 * value.h (unpack_long): Make buffer parameter constant.
14405 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14406 * scm-lang.h (scm_parse): Ditto.
14407 * defs.h (extract_typed_address, extract_address): Ditto.
14408 (extract_long_unsigned_integer): Ditto.
14409 * inferior.h (unsigned_pointer_to_address): Ditto.
14410 (signed_pointer_to_address): Ditto.
14411 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14412 * gdbarch.h, gdbarch.c: Regenerate.
14413 * findvar.c (extract_long_unsigned_integer): Update.
14414 (extract_address): Update.
14415 (extract_typed_address): Update.
14416 (unsigned_pointer_to_address): Update.
14417 * values.c (unpack_long): Update.
14418 (unpack_double): Update.
14419 (unpack_pointer): Update.
14420 (unpack_field_as_long): Update.
14421 * d10v-tdep.c (d10v_pointer_to_address): Update.
14422 * avr-tdep.c (avr_pointer_to_address): Update.
14423 * scm-lang.c (scm_unpack): Update.
14424 * findvar.c (signed_pointer_to_address): Update.
14425
b089b3da
ML
144262003-01-06 Michal Ludvig <mludvig@suse.cz>
14427
8ffd9b1b 14428 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14429 since it is in i386-tdep.c.
14430
aff87235
JB
144312003-01-06 J. Brobecker <brobecker@gnat.com>
14432
14433 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14434 failure introduced in the previous change.
14435
34f5e845
MC
144362003-01-05 Michael Chastain <mec@shout.net>
14437
14438 * README: Remove references to deleted remote-*.c files:
14439 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14440 remote-nrom.c, remote-os9k.c, remote-udi.c.
14441
28bcfd30
MK
144422003-01-05 Mark Kettenis <kettenis@gnu.org>
14443
14444 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14445 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14446 i386_get_longjmp_target.
14447
15a5b3ee
AC
144482003-01-05 Andrew Cagney <ac131313@redhat.com>
14449
14450 * arm-tdep.c (prologue_cache): Change to a pointer.
14451 (_initialize_arm_tdep): Allocate prologue_cache.
14452 (check_prologue_cache): Update.
14453 (save_prologue_cache): Update.
14454 (arm_gdbarch_init): Update.
14455
c263362b
DJ
144562003-01-04 Daniel Jacobowitz <drow@mvista.com>
14457
14458 * stabsread.c (update_method_name_from_physname): Call complaint()
14459 instead of error.
14460
51603483
DJ
144612003-01-04 Daniel Jacobowitz <drow@mvista.com>
14462
14463 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14464 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14465 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14466
14467 * blockframe.c: Include "gdbcmd.h" and "command.h".
14468 (backtrace_below_main): New variable.
14469 (file_frame_chain_valid, func_frame_chain_valid)
14470 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14471 (generic_func_frame_chain_valid): Remove functions.
14472 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14473 (_initialize_blockframe): New function.
14474 * Makefile.in (blockframe.o): Update dependencies.
14475 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14476 comment. Call frame_chain_valid ().
14477 * frame.h: Remove old prototypes. Add prototype for
14478 frame_chain_valid and update comments to match.
14479 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14480 Remove old comment.
14481 * gdbarch.h: Regenerated.
14482 * gdbarch.c: Regenerated.
14483
14484 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14485 set_gdbarch_frame_chain_valid.
14486 * avr-tdep.c (avr_gdbarch_init): Likewise.
14487 * cris-tdep.c (cris_gdbarch_init): Likewise.
14488 * frv-tdep.c (frv_gdbarch_init): Likewise.
14489 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14490 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14491 (i386_nw_init_abi): Likewise.
14492 (i386_gdbarch_init): Likewise.
14493 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14495 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14496 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14497 * mips-tdep.c (mips_gdbarch_init): Likewise.
14498 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14499 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14500 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14501 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14502 * s390-tdep.c (s390_gdbarch_init): Likewise.
14503 * sh-tdep.c (sh_gdbarch_init): Likewise.
14504 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14505 * v850-tdep.c (v850_gdbarch_init): Likewise.
14506 * vax-tdep.c (vax_gdbarch_init): Likewise.
14507 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14508
14509 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14510 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14511 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14512 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14513 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14514 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14515 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14516 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14517
b00a8037
DJ
145182002-01-04 Daniel Jacobowitz <drow@mvista.com>
14519
14520 * Makefile.in (acconfig_h): Remove incorrect macro.
14521 (config_h): Define.
14522 (osabi.o): Update dependencies.
14523 * configure.tgt: Set gdb_osabi based on target triplet.
14524 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14525 * configure: Regenerated.
14526 * config.in: Regenerated.
14527 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14528 (GDB_OSABI_DEFAULT): Define if not already defined.
14529 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14530 (set_osabi_string): New variables.
14531 (gdbarch_register_osabi): Add new OS ABI to
14532 gdb_osabi_available_names.
14533 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14534 (set_osabi, show_osabi): New functions.
14535 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14536
4be87837
DJ
145372003-01-04 Daniel Jacobowitz <drow@mvista.com>
14538
14539 * arch-utils.c (gdbarch_info_init): Set osabi to
14540 GDB_OSABI_UNINITIALIZED.
14541 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14542 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14543 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14544 * gdbarch.c: Regenerated.
14545 * gdbarch.h: Regenerated.
14546 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14547 there's no BFD.
14548 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14549 * osabi.h (enum gdb_osabi): Move to defs.h.
14550 (gdbarch_init_osabi): Update prototype.
14551 * defs.h (enum gdb_osabi): Moved here.
14552 * Makefile.in: Update dependencies.
14553
14554 * alpha-tdep.h: Don't include "osabi.h".
14555 (struct gdbarch_tdep): Remove osabi member.
14556 * alpha-tdep.c: Include "osabi.h".
14557 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14558 iterate over arches. Update call to gdbarch_init_osabi.
14559 (alpha_dump_tdep): Don't dump osabi.
14560 * alpha-linux-tdep.c: Include "osabi.h".
14561 * alpha-osf1-tdep.c: Include "osabi.h".
14562 * alphafbsd-tdep.c: Include "osabi.h".
14563 * alphanbsd-tdep.c: Include "osabi.h".
14564
14565 * arm-tdep.h: Don't include "osabi.h".
14566 (struct gdbarch_tdep): Remove osabi member.
14567 * arm-tdep.c: Include "osabi.h".
14568 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14569 iterate over arches. Update call to gdbarch_init_osabi.
14570 (arm_dump_tdep): Don't dump osabi.
14571 * arm-linux-tdep.c: Include "osabi.h".
14572 * armnbsd-tdep.c: Include "osabi.h".
14573
14574 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14575 Update call to gdbarch_init_osabi.
14576
14577 * i386-tdep.h: Don't include "osabi.h".
14578 (struct gdbarch_tdep): Remove osabi member.
14579 * i386-tdep.c: Include "osabi.h".
14580 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14581 iterate over arches. Update call to gdbarch_init_osabi.
14582 (i386_dump_tdep): Don't dump osabi.
14583 * i386-linux-tdep.c: Include "osabi.h".
14584 * i386-sol2-tdep.c: Include "osabi.h".
14585 * i386bsd-tdep.c: Include "osabi.h".
14586 * i386gnu-tdep.c: Include "osabi.h".
14587 * i386ly-tdep.c: Include "osabi.h".
14588 * i386nbsd-tdep.c: Include "osabi.h".
14589 * i386obsd-tdep.c: Include "osabi.h".
14590
14591 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14592 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14593 check osabi when iterating over arches. Update call to
14594 gdbarch_init_osabi.
14595 (mips_dump_tdep): Don't dump osabi.
14596
14597 * ns32k-tdep.h: Don't include "osabi.h".
14598 (struct gdbarch_tdep): Remove.
14599 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14600 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14601 allocate tdep. Update call to gdbarch_init_osabi.
14602 (ns32k_dump_tdep): Remove.
14603 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14604 * ns32knbsd-tdep.c: Include "osabi.h".
14605
14606 * ppc-tdep.h: Don't include "osabi.h".
14607 (struct gdbarch_tdep): Remove osabi member.
14608 * rs6000-tdep.c: Include "osabi.h".
14609 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14610 osabi when iterating over arches. Update call to
14611 gdbarch_init_osabi.
14612 (rs6000_dump_tdep): Don't dump osabi.
14613 * ppc-linux-tdep.c: Include "osabi.h".
14614 * ppcnbsd-tdep.c: Include "osabi.h".
14615
14616 * sh-tdep.h: Don't include "osabi.h".
14617 (struct gdbarch_tdep): Remove osabi member.
14618 * sh-tdep.c: Include "osabi.h".
14619 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14620 iterate over arches. Update call to gdbarch_init_osabi.
14621 (sh_dump_tdep): Don't dump osabi.
14622 * shnbsd-tdep.c: Include "osabi.h".
14623
14624 * sparc-tdep.c: Include "osabi.h".
14625 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14626 iterate over arches. Update call to gdbarch_init_osabi.
14627 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14628 tdep structure.
14629
14630 * vax-tdep.h: Don't include "osabi.h".
14631 (struct gdbarch_tdep): Remove.
14632 * vax-tdep.c: Include "osabi.h".
14633 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14634 iterate over arches. Don't allocate tdep. Update call
14635 to gdbarch_init_osabi.
14636 (vax_dump_tdep): Remove.
14637 (_initialize_vax_tdep): Update call to gdbarch_register.
14638
a881cf8e
DJ
146392003-01-04 Daniel Jacobowitz <drow@mvista.com>
14640
14641 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14642 entirely.
14643 (breakpoint_re_set_one): Don't fetch the value for a disabled
14644 watchpoint.
14645
1e698235
DJ
146462003-01-04 Daniel Jacobowitz <drow@mvista.com>
14647
14648 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14649 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14650 (COERCE_FLOAT_TO_DOUBLE): Remove.
14651 * gdbarch.c: Regenerate.
14652 * gdbarch.h: Regenerate.
14653 * Makefile.in: Remove value_h from gdbarch_h.
14654 * valops.c (coerce_float_to_double): New variable.
14655 (default_coerce_float_to_double): Remove.
14656 (standard_coerce_float_to_double): Remove.
14657 (value_arg_coerce): Use coerce_float_to_double.
14658 (_initialize_valops): Add "set coerce-float-to-double".
14659 * value.h (default_coerce_float_to_double): Remove prototype.
14660 (standard_coerce_float_to_double): Remove prototype.
14661
14662 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14663 prototyped.
14664 * mdebugread.c (parse_symbol): Likewise.
14665 * stabsread.c (define_symbol): Mark all functions as prototyped.
14666
14667 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14668 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14669 set_gdbarch_coerce_float_to_double.
14670 * arm-tdep.c (arm_gdbarch_init): Likewise.
14671 * frv-tdep.c (frv_gdbarch_init): Likewise.
14672 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14673 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14674 * mips-tdep.c (mips_gdbarch_init): Likewise.
14675 (mips_coerce_float_to_double): Remove.
14676 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14677 (rs6000_coerce_float_to_double): Remove.
14678 * s390-tdep.c (s390_gdbarch_init): Likewise.
14679 * sh-tdep.c (sh_gdbarch_init): Likewise.
14680 (sh_coerce_float_to_double): Remove.
14681 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14682 (sparc_coerce_float_to_double): Remove.
14683 * v850-tdep.c (v850_gdbarch_init): Likewise.
14684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14685 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14686 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14687 (hppa_coerce_float_to_double): Remove prototype.
14688 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14689
f436a26a
DJ
146902003-01-04 Daniel Jacobowitz <drow@mvista.com>
14691
14692 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14693
248f8055
DJ
146942003-01-04 Daniel Jacobowitz <drow@mvista.com>
14695
14696 Suggested by Stewart Brown <sb24@avaya.com>:
14697 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14698 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14699 (c_type_print_varspec_suffix): Likewise.
14700
72cfdc76
MK
147012003-01-04 Mark Kettenis <kettenis@gnu.org>
14702
bfd260bb
MK
14703 * configure.in: Don't set and AC_SUBST SUBDIRS.
14704 * configure: Regenerated.
14705
72cfdc76
MK
14706 * configure.in: Remove code dealing with shared libraries.
14707 * Makefile.in: Remove HLDFLAGS and HLDENV.
14708 * configure: Regenerated.
14709
c8b8a898
AC
147102003-01-04 Andrew Cagney <ac131313@redhat.com>
14711
14712 * frame.c (deprecated_frame_xmalloc): New function.
14713 (deprecated_set_frame_saved_regs_hack): New function.
14714 (deprecated_set_frame_extra_info_hack): New function.
14715 * frame.h (deprecated_frame_xmalloc): Declare.
14716 (deprecated_set_frame_saved_regs_hack): Declare.
14717 (deprecated_set_frame_extra_info_hack): Declare.
14718
14abd0fb
MK
147192003-01-04 Mark Kettenis <kettenis@gnu.org>
14720
8ee53726
MK
14721 * configure.in: Move code that provides the --enable-gdbtk option
14722 right after the code that handles the --enable-tui option, and
14723 polish it somewhat.
14724 * configure: Regenerated.
14725
14abd0fb
MK
14726 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14727 AC_CHECK_FUNCS and remove the old check for pread64.
14728 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14729 * acconfig.h (_GNU_SOURCE): Add.
14730 (HAVE_PREAD64): Remove.
14731 * configure, aclocal.m4, config.in: Regenerated.
14732
b2fb4676
AC
147332003-01-03 Andrew Cagney <ac131313@redhat.com>
14734
14735 * alpha-tdep.c: Use get_frame_saved_regs.
14736 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14737 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14738 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14739 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14740 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14741
8dcde887
MK
147422003-01-03 Mark Kettenis <kettenis@gnu.org>
14743
14744 * configure.in: Remove all use of the SUBDIRS variable; add
14745 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14746 code providing the --enable-multi-ice option, and move it right in
14747 front of the code that checks whether gdbserver is supported.
14748 Polish that too.
14749 * configure: Regenerated.
14750 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14751 @SUBDIRS@.
14752
8ccd593b
AC
147532003-01-03 Andrew Cagney <cagney@redhat.com>
14754
14755 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14756 * avr-tdep.c, cris-tdep.c: Ditto.
14757 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14758 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14759
91151a06
MK
147602003-01-03 Mark Kettenis <kettenis@gnu.org>
14761
14762 * configure.in: Remove --enable-netrom option.
14763 * configure: Regenerated.
14764
8fe84d01
MK
147652003-01-03 Mark Kettenis <kettenis@gnu.org>
14766
14767 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14768 declaration for `struct re_pattern_buffer' instead.
14769 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14770
f0394be6
JB
147712003-01-03 J. Brobecker <brobecker@gnat.com>
14772
14773 * mdebugread.c (parse_symbol): Count until the stEnd matching
14774 the structure name.
14775
27e9bf90
MK
147762003-01-02 Mark Kettenis <kettenis@gnu.org>
14777
93d331ba
MK
14778 * configure.in: Remove --with-cpu option.
14779 subscripts. Remove evil changequotes here.
14780 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14781 * config.in, configure: Regenerated.
8ffd9b1b 14782
27e9bf90
MK
14783 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14784 * configure.in: Cleanup section that sources GDB and BFD configure
14785 subscripts. Remove evil changequotes here.
14786 * config.in, configure: Regenerated.
14787
50abf9e5
AC
147882003-01-02 Andrew Cagney <ac131313@redhat.com>
14789
14790 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14791 frame accessor methods.
14792 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14793 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14794 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14795 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14796 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14797 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14798 * z8k-tdep.c: Ditto.
8ffd9b1b 14799
287c1a40
MK
148002003-01-02 Mark Kettenis <kettenis@gnu.org>
14801
f5dbc56d
MK
14802 * configure.in: Remove UI_OUT configuration code.
14803 * ada-lang.c: Update assuming UI_OUT is always true.
14804 * Makefile.in (UIOUT_CFLAGS): Remove.
14805 * configure: Regenerated.
14806 * TODO: Remove blurb about elimination of -DUI_OUT.
14807
627af7ea
MK
14808 * configure.in: Move code that provides the --enable-gdbcli,
14809 --enable-gdbmi options right before the code that handles the
14810 --enable-tui option. Polish a bit.
14811 * configure: Regenerated.
14812
06825bd1
MK
14813 * configure.in: Rewrite check for GNU regex and the
14814 --without-included regex option, and move it into the "Checks for
14815 library functions" section. This makes us use the system regex
14816 again by default on systems with version 2 of the GNU C library.
14817 This was apparently broken.
14818 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14819 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14820 * config.in, configure: Regenerated.
14821
287c1a40
MK
14822 * configure.in: Move code that provides the --enable-tui option
14823 before the "Checks for libraries" section. Polish the code
14824 somewhat and set need_curses to yes if we build the TUI. Rewrite
14825 code that looks for a library providing termcap functionality to
14826 match more closely what's done in the Readline library, and move
14827 it into to the "Checks for libraries" section.
14828 * configure: Regenerated.
14829 * Makefile.in (TERMCAP): Remove variable.
14830 * config/i386/go32.mh (TERMCAP): Remove variable.
14831
684e56bf
AC
148322003-01-02 Andrew Cagney <ac131313@redhat.com>
14833
14834 * MAINTAINERS: Mention gdb_mbuild.sh.
14835 * gdb_mbuild.sh: Rewrite.
14836
e1ea1d75
MK
148372003-01-02 Mark Kettenis <kettenis@gnu.org>
14838
14839 * configure.in: Fix typo in last change.
14840 * config.in, configure: Regenerated.
14841
1b831c93
AC
148422003-01-02 Andrew Cagney <ac131313@redhat.com>
14843
14844 * valarith.c (value_binop): Delete obsolete code and comments.
14845 * configure.host: Ditto.
14846 * buildsym.h (make_blockvector): Ditto.
14847 * buildsym.c (make_blockvector): Ditto.
14848 * defs.h (enum language): Ditto.
14849 (chill_demangle): Ditto.
14850 * elfread.c (elf_symtab_read): Ditto.
14851 * dwarfread.c (CHILL_PRODUCER): Ditto.
14852 (set_cu_language): Ditto.
14853 (handle_producer): Ditto.
14854 * expprint.c (print_subexp): Ditto.
14855 * gdbtypes.c (chill_varying_type): Ditto.
14856 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14857 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14858 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14859 (chill_varying_type): Ditto.
14860 * language.h (_LANG_chill): Ditto.
14861 * language.c (binop_result_type, integral_type): Ditto.
14862 (character_type, string_type, structured_type): Ditto.
14863 (lang_bool_type, binop_type_check): Ditto.
14864 * stabsread.h (os9k_stabs): Ditto.
14865 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14866 (define_symbol, read_type, read_struct_fields): Ditto.
14867 (read_array_type, read_enum_type, read_huge_number): Ditto.
14868 (read_range_type, start_stabs): Ditto.
14869 * symfile.c (init_filename_language_table): Ditto.
14870 (add_psymbol_with_dem_name_to_list): Ditto.
14871 * symtab.c (symbol_init_language_specific): Ditto.
14872 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14873 * symtab.h (struct general_symbol_info): Ditto.
14874 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14875 * typeprint.c (typedef_print): Ditto.
14876 * utils.c (fprintf_symbol_filtered): Ditto.
14877 * valops.c (value_cast, search_struct_field, value_slice): Delete
14878 obsolete code.
14879 (varying_to_slice): Delete function.
14880 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14881 (varying_to_slice): Delete declaration.
14882 * MAINTAINERS: Update.
14883
8bb2c122
MK
148842003-01-02 Mark Kettenis <kettenis@gnu.org>
14885
97bf5e38
MK
14886 * configure.in: Reorganize "Checks for library functions section"
14887 a bit. Remove check for `btowc' and `isascii' functions.
14888 * configure: Regenerated.
14889
5ee754fc
MK
14890 * acconfig.h (_MSE_INT_H): Remove.
14891 * configure.in: Create "Checks for header files" section, and move
14892 appropriate tests there. Don't check for objlist.h, wchar.h,
14893 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14894 misdetection fix. Also add "Checks for types", "Checks for
14895 compiler characteristics" and "Checks for library functions"
14896 sections.
14897 * config.in, configure: Regenerated.
14898
8bb2c122
MK
14899 * configure.in: Create "Checks for programs" section, and move
14900 appropriate tests there.
14901
9a156167
MK
149022003-01-01 Mark Kettenis <kettenis@gnu.org>
14903
14904 * configure.in: Create "Checks for libraries" section, and move
14905 appropriate tests there. Cleanup check for wctype in libw. Use
14906 AC_SEARCH_LIBS to see whether we need libsocket.
14907 * configure: Regenerated.
14908
a80e2bcb 14909For older changes see ChangeLog-2002
c906108c
SS
14910\f
14911Local Variables:
14912mode: change-log
14913left-margin: 8
14914fill-column: 74
14915version-control: never
14916End:
This page took 1.291979 seconds and 4 git commands to generate.