* gdb.arch/i386-unwind.exp: Don't use runto_main. Change
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
66c57289
AC
12003-11-23 Andrew Cagney <cagney@redhat.com>
2
3 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
4
5 * elfread.c (elf_symtab_read): Delete STREQ from comment.
6
29dfb2ac
AC
72003-11-22 Andrew Cagney <cagney@redhat.com>
8
213cc0ad
AC
9 * frame.c (deprecated_frame_xmalloc): Delete function.
10 (deprecated_set_frame_extra_info_hack): Delete function.
11 (deprecated_set_frame_saved_regs_hack): Delete function.
12 * frame.h (deprecated_frame_xmalloc): Delete declaration.
13 (deprecated_set_frame_extra_info_hack): Delete declaration.
14 (deprecated_set_frame_saved_regs_hack): Delete declaration.
15 * mcore-tdep.c (analyze_dummy_frame): Instead of
16 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
17 and deprecated_set_frame_extra_info_hack use
18 deprecated_frame_xmalloc_with_cleanup.
19 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
20 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
21 deprecated_set_frame_saved_regs_hack.
22
35bb18ac
AC
23 * mips-tdep.c (mips_frame_chain): Delete call to
24 deprecated_inside_entry_file.
25
38a7ce4b
AC
26 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
27 (deprecated_set_frame_prev_hack): Delete declaration.
28 * frame.c (deprecated_set_frame_next_hack): Delete function.
29 (deprecated_set_frame_prev_hack): Delete function.
30 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
31 "deprecated_set_frame_next_hack" and
32 "deprecated_set_frame_prev_hack".
33 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
34
47ebcfbe
AC
35 * mips-tdep.c (mips_register_convertible): Delete function.
36 (mips_register_convert_to_virtual): Delete function.
37 (mips_register_convert_to_raw): Delete function.
38 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
39 "deprecated_register_convert_to_virtual", or
40 "deprecated_register_convert_to_raw".
41 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
42 32/64 cooked to raw register conversions.
43
2a9264f1 44 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 45 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
46 (struct frame_info): Delete member "context".
47 * frame.h (deprecated_get_frame_context): Delete declaration.
48 (deprecated_set_frame_context): Delete declaration.
49
7af6341f
AC
50 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
51 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
52 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
53 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
54
10a08821
AC
55 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
56 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
57 mips_regsize.
58 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
59 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
60 * config/mips/tm-irix5.h: Update copyright.
61 (SIGFRAME_REG_SIZE): Delete macro.
62
00d33403
AC
63 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
64 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
65 declaration.
66 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
67 * infcall.c (call_function_by_hand): Delete #ifdef
68 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
69 * infcmd.c (print_return_value): Ditto.
70
74da7425
AC
71 * mips-tdep.c (skip_prologue_using_sal): New function.
72 (mips32_skip_prologue, mips16_skip_prologue): Use
73 skip_prologue_using_sal to get an upper bound on the search.
74
369864a4
AC
75 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
76 #if 0'ed macro.
77 * infrun.c (step_into_function): Delete #ifdef
78 PROLOGUE_FIRSTLINE_OVERLAP code.
79 * symtab.c (find_function_start_sal): Ditto.
80
a5a12285
AC
81 * remote-rdp.c: Update copyright.
82 (rdp_init): #if 0 references to "target_byte_order".
83
29dfb2ac
AC
84 * mips-tdep.c (mips_o32_store_return_value): Delete function.
85 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
86 (mips_o32_extract_return_value): Delete function.
87 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
88 (mips_n32n64_extract_return_value): Delete function.
89 (mips_n32n64_store_return_value): Delete function.
90 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
91 instead of "store_return_value", "extract_return_value", and
92 "use_struct_convention".
93 (mips_n32n64_use_struct_convention): Delete function.
94
3a3da38c
KB
952003-11-21 Kevin Buettner <kevinb@redhat.com>
96
97 * frv-tdep.c (frv_frame_this_id): Eliminate call to
98 inside_entry_func().
99
c5e656c1
MK
1002003-11-20 Mark Kettenis <kettenis@gnu.org>
101
102 * i386-tdep.c (i386_extract_return_value,
103 i386_store_return_value): Add gdbarch argument. Use it instead of
104 determining it from REGCACHE. Remove recursive call for
105 structures with a single member.
106 (i386_use_struct_convention): Remove.
107 (i386_reg_struct_return_p): New function.
108 (i386_return_value): New function.
109 (i386_gdbarch_init): Set return_value, don't set
110 extract_return_value, store_return_value and
111 use_struct_convention.
112 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
113
515cc92e
JB
1142003-11-20 Jim Blandy <jimb@redhat.com>
115
116 * osabi.c (_initialize_gdb_osabi): Don't return before registering
117 the 'set osabi' and 'show osabi' commands.
118
3f1d7f16
MK
1192003-11-19 Mark Kettenis <kettenis@gnu.org>
120
121 * frame.c (get_prev_frame): Use result from
122 get_frame_address_in_block instead of get_frame_pc as argument to
123 inside_main_func. Fixes PR backtrace/1435.
124
667e784f
AC
1252003-11-19 Andrew Cagney <cagney@redhat.com>
126
127 * stack.c (return_command): Handle "void", "legacy" and "unknown
128 location" return values separatly.
129 * values.c (using_struct_return): Return 0 for a "void" return
130 type. Mention "register_value_being_returned".
131 (register_value_being_returned): Mention "using_struct_return".
132
4cecd739
DJ
1332003-11-19 Daniel Jacobowitz <drow@mvista.com>
134
135 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
136 (frame_base_offset): Delete.
137 (read_func_scope): Delete call to decode_locdesc.
138 (decode_locdesc): Update comments. Don't set the removed variables.
139 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
140 DW_OP_fbreg support.
141
6b992462
DJ
1422003-11-18 Daniel Jacobowitz <drow@mvista.com>
143
144 * dwarf2read.c (optimized_out, islocal): Remove.
145 (decode_locdesc): Update comments. Don't set optimized_out
146 or islocal.
147
968d1cb4
JJ
1482003-11-17 Jeff Johnston <jjohnstn@redhat.com>
149 David Mosberger <davidm@hpl.hp.com>
150
151 * ia64-tdep.c: Include elf.h.
152 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
153 libunwind-ia64.h.
154 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
155 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
156 (ia64_is_fpreg, ia64_access_reg): Ditto.
157 (ia64_access_fpreg, ia64_access_mem): Ditto.
158 (get_kernel_table): Ditto.
159 (ia64_find_unwind_table): Ditto.
160 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
161 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
162 (ia64_libunwind_frame_prev_register): Ditto.
163 (ia64_libunwind_frame_sniffer): Ditto.
164 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
165 sniffer. Register libunwind functions needed by generic
166 libunwind frame code using libunwind_frame_set_descr().
167
d29caefc
DJ
1682003-11-16 Daniel Jacobowitz <drow@mvista.com>
169
170 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
171 bp_shlib_disabled breakpoint if there is a shared library mapped
172 at its expected address.
173
691c0433
AC
1742003-11-16 Andrew Cagney <cagney@redhat.com>
175
96cb1c2f
AC
176 * configure.tgt: Delete mips*tx39*-elf*.
177 * config/mips/tm-tx39.h: Delete file.
178 * config/mips/tx39.mt: Delete file.
179 * config/mips/tx39.mt: Delete file.
180
691c0433
AC
181 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
182 * remote-mips.c (common_open): Instead of
183 "mips_read_register_type" and "mips_set_processor_type_command"
184 call "deprecated_mips_set_processor_regs_hack".
185 * config/mips/tm-mips.h (mips_read_processor_type): Delete
186 declaration.
187 (mips_set_processor_type_command): Delete declaration.
188 * mips-tdep.c (mips_gdbarch_init): Update comment.
189 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
190 (mips_set_processor_type): Delete function.
191 (NUM_MIPS_PROCESSOR_REGS): Define.
192 (mips_show_processor_type_command): Delete function.
193 (mips_set_processor_type_command): Delete function.
194 (tmp_mips_processor_type): Delete.
195 (mips_processor_type): Delete.
196 (mips_processor_type_table): Delete.
197 (mips_r3051_reg_names): Delete.
198 (mips_r3081_reg_names): Delete.
199 (mips_lsi33k_reg_names): Delete.
200 (mips_processor_reg_names): Delete.
201 (mips_read_processor_type): Delete function.
202 (deprecated_mips_set_processor_regs_hack): New function.
203 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
204 (mips_register_name): Get the processor names from the tdep.
205 (mips_tx39_reg_names): New array.
206 (mips_generic_reg_names): Wire to a standard set of names.
207 (mips_gdbarch_init): Set "mips_processor_reg_names".
208 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
209 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
210 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
211
56cea623
AC
2122003-11-16 Andrew Cagney <cagney@redhat.com>
213
214 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
215 (mips_fpa0_regnum, mips_regnum): New function.
216 (mips_gdbarch_init): Fill in the "regnum" fields.
217 * mips-tdep.h (struct mips_regnum): Define.
218 (mips_regnum): Declare.
219 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
220 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
221 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
222 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
223 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
224 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
225 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
226 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
227 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
228 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
229 * remote-mips.c: Include "mips-tdep.h". Update.
230 * mipsnbsd-tdep.c: Update.
231 * mipsv4-nat.c: Update.
232 * mips-tdep.c: Update.
233 * mips-nat.c: Update.
234 * mips-linux-tdep.c: Update.
235 * mips-linux-nat.c: Update.
236 * irix5-nat.c: Update.
237 * dve3900-rom.c: Include "mips-tdep.h". Update.
238 (ignore_packet): Supress GCC warning.
239 * config/mips/nm-riscos.h: Update.
240
719ec221
AC
2412003-11-16 Andrew Cagney <cagney@redhat.com>
242
243 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
244 register_size.
245 (mips_register_raw_size): Delete function.
246 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
247 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
248 Check and set "mips64_transfers_32bit_regs_p".
249 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
250 (mips_register_convertible): Check the architecture's
251 "mips64_transfers_32bit_regs_p".
252 (set_mips64_transfers_32bit_regs): New function.
253 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
254 "set remote-mips64-transfers-32bit-regs" command. Specify
255 set_mips64_transfers_32bit_regs as the set function.
56cea623 256 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 257
20187ed5
MK
2582003-11-16 Mark Kettenis <kettenis@gnu.org>
259
260 * i386-tdep.h (i386_supply_gregset): Provide prototype.
261 * i386-tdep.c (i386_supply_gregset): Make public.
262
6771c427
AC
2632003-11-16 Andrew Cagney <cagney@redhat.com>
264
265 * mips-tdep.c (mips_register_byte): Delete function.
266 (mips_gdbarch_init): Do not set "deprecated_register_byte".
267 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
268 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
269 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
270
c8048956
MK
2712003-11-16 Mark Kettenis <kettenis@gnu.org>
272
273 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
274
cc8a868a
AC
2752003-11-16 Andrew Cagney <cagney@redhat.com>
276
277 * config/mips/linux64.mt: Delete file.
278 * config/mips/tm-linux64.h: Delete file.
279 * config/mips/tm-mips64.h: Delete file.
280 * config/mips/embed64.mt: Delete file.
281 * config/djgpp/fnchange.lst: Update.
282 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
283 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
284 * config/mips/tm-irix6.h: Update copyright. Include
285 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
286 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
287 "OP_LDGPR".
288
5ef80fb0
AC
2892003-11-15 Andrew Cagney <cagney@redhat.com>
290
291 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
292 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
293 n32 registers 64 bit.
294 (mips_register_raw_size, mips_register_byte): For pseudo
295 registers, use the register's pseudo size and not the
296 corresponding raw register's size.
297 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
298 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
299 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
300 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
301
4246e332
AC
3022003-11-15 Andrew Cagney <cagney@redhat.com>
303
8fa9cfa1
AC
304 * mips-tdep.c (struct gdbarch_tdep): Delete member
305 gdb_target_is_mips64.
306 (GDB_TARGET_IS_MIPS64): Delete macro.
307 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
308 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
309 (mips_addr_bits_remove): Simplify.
310
c73e8f27
AC
311 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
312 register_size.
313
4246e332
AC
314 Replace MIPS_REGSIZE with mips_regsize.
315 * mips-tdep.c (mips_regsize): New function.
316 * mips-tdep.h (mips_regsize): Declare.
317 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
318 (SIZEOF_STRUCT_REG): Update.
319 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
320 (mipsnbsd_fill_reg): Update.
321 (mipsnbsd_supply_fpreg): Update.
322 (mipsnbsd_fill_fpreg): Update.
323 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
324 * mips-tdep.c (mips_register_raw_size): Update.
325 (mips_register_type): Update.
326 (SIGFRAME_BASE): Update.
327 (SIGFRAME_PC_OFF): Update.
328 (SIGFRAME_REGSAVE_OFF): Update.
329 (SIGFRAME_FPREGSAVE_OFF): Update.
330 (SIGFRAME_REG_SIZE): Update.
331 (mips32_heuristic_proc_desc): Update.
332 (print_gp_register_row): Update.
333 (mips_dump_tdep): Do not print MIPS_REGSIZE.
334 * irix5-nat.c (supply_gregset): Update.
335 (fetch_core_registers): Update.
336 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
337 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
338 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
339 (MIPS_REGISTER_BYTE): Update.
340 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
341
5e044b1e
AC
3422003-11-15 Andrew Cagney <cagney@redhat.com>
343
344 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
345 USE_REGISTER_NOT_ARG.
346 * stabsread.c (define_symbol): Update.
347
3a16a68c
AC
3482003-11-15 Andrew Cagney <cagney@redhat.com>
349
350 * bcache.h (deprecated_bcache): Declare.
351 (bcache): Make returned buffer constant.
352 * bcache.c (deprecated_bcache): New function.
353 (bcache_data): New function.
354 (bcache): Call bcache data.
355 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
356 (add_psymbol_with_dem_name_to_list): Ditto.
357
bb41a796
MK
3582003-11-15 Mark Kettenis <kettenis@gnu.org>
359
360 * glibc-tdep.h (struct gdbarch): Declare opaque.
361 (glibc_skip_solib_resolver): Adjust prototype.
362 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
363 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
364 (arm_linux_init_abi): Set skip_solib_resolver.
365 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
366 (i386_linux_init_abi): Set skip_solib_resolver.
367 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
368 (arm_linux_skip_solib_resolver): Remove prototype.
369 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
370 (i386_linux_skip_solib_resolver): Remove prototype.
371
4c8c40e6
MK
3722003-11-14 Mark Kettenis <kettenis@gnu.org>
373
374 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
375 function.
376 * gdbarch.c, gdbarch.h: Regenerate.
377 * infrun.c (handle_inferior_event): Call
378 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
379 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
380 definition.
381 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
382 prototype.
383
0e5d83e3
JJ
3842003-11-14 Jeff Johnston <jjohnstn@redhat.com>
385
386 * libunwind-frame.c: New file.
387 * libunwind-frame.h: New file.
388 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
389 * configure.in: Add --with-libunwind option support. Define
390 HAVE_LIBUNWIND if libunwind support selected / defaulted.
391 Also check for libunwind.h and libunwind-ia64.h headers.
392 * configure: Regenerated.
393 * Makefile.in: Add support for libunwind-frame.o.
394 * config.in: Regenerated.
395
287a334e
JJ
3962003-11-14 Jeff Johnston <jjohnstn@redhat.com>
397
398 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
399 set up the ia64 linux native target method for getting the kernel
400 unwind table.
401 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
402 * inftarg.c (child_xfer_partial): Enable section of code to
403 handle TARGET_OBJECT_UNWIND_TABLE.
404 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
405
140be7b8
ILT
4062003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
407
408 * config/arm/nbsd.mt (TM_FILE): Define.
409 * config/arm/tm-nbsd.h: New file.
410
0a90bcdd
AC
4112003-11-14 Andrew Cagney <cagney@redhat.com>
412
413 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
414 * ppc-sysv-tdep.c: Include "objfiles.h".
415 (ppc64_sysv_abi_push_dummy_call): Provide the
416 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
417
418 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
419 "name_of_malloc" to ".malloc".
420
087f1027
MK
4212003-11-13 Mark Kettenis <kettenis@gnu.org>
422
423 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
424
3882f37a
DC
4252003-11-13 David Carlton <carlton@kealia.com>
426
427 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
428
a8cf2722
AC
4292003-11-13 Andrew Cagney <cagney@redhat.com>
430
431 * arch-utils.h (selected_architecture_name): Declare.
432 (selected_byte_order): Declare.
433 * arch-utils.c (selected_byte_order): New function.
434 (selected_architecture_name): New function.
435 (target_architecture_auto): Make static.
436 (set_architecture_string): Make static.
437 (target_byte_order): Make static.
438 (target_byte_order_auto): Make static.
439 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
440 non-multi-arch definition.
441 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
442 (target_byte_order, target_architecture): Delete declaration.
443 (target_byte_order_auto, target_architecture_auto): Ditto.
444 * gdbarch.h: Re-generate.
445 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
446 "selected_byte_order".
447
475b6ddd
AC
4482003-11-13 Andrew Cagney <cagney@redhat.com>
449
450 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
451
a22286a9
JB
4522003-11-13 Jim Blandy <jimb@redhat.com>
453
454 * cp-namespace.c: Doc fix.
455
7bb11558
MS
4562003-11-12 Michael Snyder <msnyder@redhat.com>
457
39add00a
MS
458 * sh64_tdep.c: Regularize some names.
459 (sh_sh64_register_name): Rename to sh64_register_name.
460 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
461 (sh_sh64_register_byte): Rename to sh64_register_byte.
462 (sh_sh64_build_float_register_type):
463 Rename to sh64_build_float_register_type.
464 (sh_sh64_register_convert_to_virtual):
465 Rename to sh64_register_convert_to_virtual.
466 (sh_sh64_register_convert_to_raw):
467 Rename to sh64_register_convert_to_raw.
468
2a314ed5
MS
469 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
470 sh64_media_reg_base_num, sh64_compact_reg_base_num,
471 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
472 sh64_extract_return_value, sh64_show_media_regs,
473 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
474 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
475 sh64_pseudo_register_read, sh64_pseudo_register_write,
476 sh64_do_pseudo_register, sh_compact_print_registers_info):
477 Delete unused variable 'tdep'.
478
7bb11558
MS
479 * sh64-tdep.c: Coding standard and spelling comment fixes.
480 (sh64_extract_return_value): Replace deprecated_store_floating
481 with store_typed_floating.
482 (sh_sh64_register_convert_to_raw): Replace
483 deprecated_store_floating with store_typed_floating.
484 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
485 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
486 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
487 sh64_extract_struct_value_address, sh64_pop_frame,
488 sh64_extract_return_value, sh64_store_return_value,
489 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
490 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
491 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
492 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
493 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
494 deprecated_register_virtual_type, deprecated_register_raw_size,
495 deprecated_max_register_raw_size, or
496 deprecated_max_register_virtual_size. Instead, just set
497 gdbarch_register_type.
39add00a
MS
498 (sh_sh64_register_raw_size): Delete.
499 (sh_sh64_register_virtual_size): Delete.
7bb11558 500
e7c27a73
DJ
5012003-11-12 Daniel Jacobowitz <drow@mvista.com>
502
503 * dwarf2read.c (struct dwarf2_cu): New type.
504
505 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
506 dwarf2_cu structure to pass down.
507
508 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
509 (add_partial_enumeration, locate_pdi_sibling, process_die)
510 (read_file_scope, read_func_scope)
511 (read_lexical_block_scope, dwarf2_get_pc_bounds)
512 (dwarf2_add_field, dwarf2_attach_fields_to_type)
513 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
514 (read_structure_scope, read_enumeration, read_array_type)
515 (read_common_block, read_namespace, read_tag_pointer_type)
516 (read_tag_ptr_to_member_type, read_tag_reference_type)
517 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
518 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
519 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
520 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
521 (read_full_die. read_attribute_value, read_attribute)
522 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
523 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
524 (die_containing_type, type_at_offset, tag_type_to_type)
525 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
526 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
527
1640b821
DJ
5282003-11-12 Daniel Jacobowitz <drow@mvista.com>
529
530 PR breakpoints/1450
531 * breakpoint.c (insert_bp_location): Fix a logic error by returning
532 0 after a catchpoint fails.
533
d7891507
MC
5342003-11-11 Michael Chastain <mec.gnu@mindspring.com>
535
536 * mips-tdep.c (msymbol_size): Delete.
537
f594e5e9
MC
5382003-11-07 Michael Chastain <mec@shout.net>
539
540 * symtab.h (struct minimal_symbol): Add size.
541 * dbxread.c: Use it.
542 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
543 Rename to record_minimal_symbol.
544 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
545 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
546 (install_minimal_symbols): Ditto.
547 * objfiles.c (terminate_minimal_symbol_table): Ditto.
548 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
549 * m68hc11-tdep.c: Ditto.
550 * mips-tdep.c: Ditto.
551 * sh64-tdep.c: Ditto.
552
68e39e73
MC
5532003-11-10 Michael Chastain <mec.gnu@mindspring.com>
554
555 * MAINTAINERS: Change my e-mail address.
556
b60eb90d
AC
5572003-11-10 Andrew Cagney <cagney@redhat.com>
558
963e2bb7
AC
559 * gdbarch.sh (return_value): Replace "inval" and "outval" with
560 "readbuf" and "writebuf".
561 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
562 * d10v-tdep.c (d10v_return_value): Ditto.
563 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
564 (ppc_sysv_abi_broken_return_value): Ditto.
565 (ppc64_sysv_abi_return_value): Ditto.
566 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
567 (ppc_sysv_abi_return_value): Ditto.
568 (ppc_sysv_abi_broken_return_value): Ditto.
569 (ppc64_sysv_abi_return_value): Ditto.
570 * values.c (register_value_being_returned): Update call.
571 * stack.c (return_command): Update call.
572 * gdbarch.h, gdbarch.c: Re-generate.
573
8aa91c1e
AC
574 * target.h (struct target_ops): Order xfer buffer parameters "read
575 write" not "write read".
576 * bfd-target.c (target_bfd_xfer_partial): Update.
577 * remote.c (remote_xfer_partial): Update.
578 * inftarg.c (child_xfer_partial): Update.
579 * target.c (default_xfer_partial): Update.
580 (target_read_partial, target_write_partial): Update.
581 (debug_to_xfer_partial): Update.
582
100bcc3f
AC
583 * arch-utils.h, arch-utils.c: Fix typo in comment.
584
b60eb90d
AC
585 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
586 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
587 (set_gdbarch_from_file): Call
588 "deprecated_current_gdbarch_select_hack".
b60eb90d 589
bf922ad9
AC
5902003-11-09 Andrew Cagney <cagney@redhat.com>
591
ebdba546
AC
592 * arch-utils.c (gdbarch_update_p): New function.
593 * gdbarch.sh (gdbarch_update_p): Delete function.
594 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 595 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
596 * gdbarch.c: Re-generate.
597
7de2341d
AC
598 * gdbarch.sh (clear_gdbarch_swap): Delete function.
599 (swapout_gdbarch_swap): Delete function.
600 (swapin_gdbarch_swap): Delete function.
601 (init_gdbarch_swap): Delete function.
602 (initialize_non_multiarch): Delete function.
603 (current_gdbarch_swap_in_hack): New function.
604 (current_gdbarch_swap_out_hack): New function.
605 (current_gdbarch_swap_init_hack): New function.
606 * gdbarch.c: Re-generate.
607
db446970
AC
608 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
609 parameter to "current_gdbarch". Add comment explaining why.
610 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
611 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
612 * gdbarch.c: Re-generate.
613
341e3d11
AC
614 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
615 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
616 * config/s390/xm-linux.h: Delete file.
617 * config/m88k/xm-delta88v4.h: Delete stray.
618
bf922ad9
AC
619 * Makefile.in (arch-utils.o): Update dependencies.
620 * arch-utils.c: Include "osabi.h".
621 (gdbarch_info_fill): New function.
622 * arch-utils.h (gdbarch_info_fill): Declare.
623 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
624 * gdbarch.c: Re-generate.
625
a3640c75
MK
6262003-11-09 Mark Kettenis <kettenis@gnu.org>
627 David S. Miller <davem@redhat.com>
628
629 * glibc-tdep.c, glibc-tdep.h: New files.
630 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
631 * config/i386/linux.mt (TDEPFILES): Likewise.
632 * i386-linux-tdep.c (glibc-tdep.h): Include.
633 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
634 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
635 * arm-linux-tdep.c (glibc-tdep.h): Include.
636 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
637 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
638 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
639 (glibc_tdep_h): Define.
640 (glibc-tdep.o): Add dependencies.
641 (arm-linux-tdep.o): Update dependencies.
642 (i386-linux-tdep.o): Likewise.
643
e60e0ab2
AC
6442003-11-09 Andrew Cagney <cagney@redhat.com>
645
646 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
647 * config/mips/nm-irix6.h: Delete file.
648 * config/mips/nm-linux.h: Update copyright.
649 (MIPS_GNULINUX_TARGET): Delete macro.
650 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
651 * config/mips/xm-irix6.h: Delete file.
652 * config/mips/linux.mh (XM_FILE): Delete definition.
653 * config/mips/xm-linux.h: Delete file.
654
181555e9
AC
6552003-11-09 Andrew Cagney <cagney@redhat.com>
656
657 * d10v-tdep.c (d10v_return_value): New function.
658 (d10v_use_struct_convention): Delete function.
659 (d10v_store_return_value): Delete function.
660 (d10v_extract_struct_value_address): Delete function.
661 (d10v_gdbarch_init): Set "return_value" instead of
662 "extract_return_value", "store_return_value",
663 "extract_struct_value_address", and "use_struct_convention".
664 (RET1_REGNUM): Delete const.
665
dea0c52f
MK
6662003-11-09 Mark Kettenis <kettenis@gnu.org>
667
668 From David S. Miller <davem@redhat.com>:
669 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
670 * gdbarch.c, gdbarch.h: Regenerated.
671 * arch-utils.c (generic_skip_solib_resolver): New function.
672 * arch-utils.h (generic_skip_solib_resolver): New prototype.
673 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
674
6314a349
AC
6752003-11-07 Andrew Cagney <cagney@redhat.com>
676
677 * top.c (print_gdb_version): Replace STREQ with strcmp.
678 * valops.c (value_struct_elt_for_reference): Ditto.
679 (value_struct_elt_for_reference): Ditto.
680 * symtab.c (gdb_mangle_name): Ditto.
681 (find_line_symtab): Ditto.
682 * symmisc.c (maintenance_print_symbols): Ditto.
683 * symfile.c (symbol_file_command): Ditto.
684 * stabsread.c (define_symbol, read_type): Ditto.
685 (cleanup_undefined_types, scan_file_globals): Ditto.
686 * solib.c (solib_map_sections): Ditto.
687 * solib-svr4.c (bfd_lookup_symbol): Ditto.
688 * rs6000-tdep.c (skip_prologue): Ditto.
689 * p-valprint.c (pascal_value_print): Ditto.
690 (pascal_object_is_vtbl_ptr_type): Ditto.
691 * objfiles.c (in_plt_section): Ditto.
692 * minsyms.c (lookup_minimal_symbol): Ditto.
693 (compact_minimal_symbols): Ditto.
694 (find_solib_trampoline_target): Ditto.
695 * mdebugread.c (parse_type): Ditto.
696 * language.c (set_language_command): Ditto.
697 (set_type_command, set_range_command): Ditto.
698 * f-lang.c (add_common_block): Ditto.
699 (add_common_block): Ditto.
700 (find_first_common_named): Ditto.
701 (patch_all_commons_by_name): Ditto.
702 * elfread.c (elf_locate_sections): Ditto.
703 (elf_locate_sections): Ditto.
704 (elfstab_offset_sections): Ditto.
705 * dwarf2read.c (dwarf2_locate_sections): Ditto.
706 * dbxread.c (add_old_header_file): Ditto.
707 (find_corresponding_bincl_psymtab): Ditto.
708 (read_dbx_symtab, process_one_symbol): Ditto.
709 * coffread.c (patch_opaque_types): Ditto.
710 * cli/cli-decode.c (delete_cmd): Ditto.
711 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
712 * c-typeprint.c (c_type_print_base): Ditto.
713 * breakpoint.c (bpstat_stop_status): Ditto.
714 (clear_command, breakpoint_re_set_one): Ditto.
715
49df298f
AC
7162003-11-07 Andrew Cagney <cagney@redhat.com>
717
718 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
719 * bcache.c (struct bstring): Make "length" an unsigned short, add
720 "half_hash".
721 (struct bcache): Add "half_hash_error_count".
722 (bcache): Compute and save the "half_hash". Compare the
723 "half_hash" before comparing the length. Update
724 half_hash_error_count.
725
f168dd80
AC
7262003-11-07 Andrew Cagney <cagney@redhat.com>
727
728 * inftarg.c (child_xfer_partial): New function
729 (init_child_ops): Set "to_xfer_partial".
730
05580c65
AC
7312003-11-07 Andrew Cagney <cagney@redhat.com>
732
733 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
734 set "return_value" instead of "use_struct_convention".
735 (ppc_linux_use_struct_convention): Delete function.
736 (ppc_linux_return_value): New function.
737 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
738 (ppc_sysv_abi_broken_return_value): New function.
739 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
740 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
741 static.
742 (ppc_sysv_abi_extract_return_value): Delete function.
743 (ppc_sysv_abi_broken_extract_return_value): Delete function.
744 (ppc_sysv_abi_store_return_value): Delete function.
745 (ppc_sysv_abi_broken_store_return_value): Delete function.
746 (ppc_sysv_abi_use_struct_convention): Delete function.
747 (ppc64_sysv_abi_use_struct_convention): Delete function.
748 (ppc64_sysv_abi_extract_return_value): Delete function.
749 (ppc64_sysv_abi_store_return_value): Delete function.
750 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
751 (ppcnbsd_init_abi): Set "return_value", instead of
752 "use_struct_convention", "extract_return_value", and
753 "store_return_value".
754 (ppcnbsd_use_struct_convention): Delete function.
755 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
756 (ppc_sysv_abi_return_value): Declare.
757 (ppc_sysv_abi_broken_return_value): Declare.
758 (ppc_sysv_abi_use_struct_convention): Delete.
759 (ppc_sysv_abi_store_return_value): Delete.
760 (ppc_sysv_abi_extract_return_value): Delete.
761 (ppc_sysv_abi_broken_store_return_value): Delete.
762 (ppc_sysv_abi_broken_extract_return_value): Delete.
763 (ppc64_sysv_abi_use_struct_convention): Delete.
764 (ppc64_sysv_abi_extract_return_value): Delete.
765 (ppc64_sysv_abi_store_return_value): Delete.
766 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
767 set "return_value" instead of "extract_return_value",
768 "store_return_value", and "use_struct_convention".
769
1763fba4
MK
7702003-11-07 Mark Kettenis <kettenis@gnu.org>
771
22c7ba1a
MK
772 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
773
1763fba4
MK
774 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
775 fscanf.
776
fc07cc2d
MK
7772003-11-07 Mark Kettenis <kettenis@gnu.org>
778
779 * fbsd-proc.c: Fix formatting.
780
6a748db6
KB
7812003-11-06 Kevin Buettner <kevinb@redhat.com>
782
783 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
784 Define.
785 (new_variant): Set name for iacc0_regnum.
786 (frv_register_name): Accommodate pseudo-registers.
787 (frv_register_type): Add case for iacc0_regnum.
788 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
789 (frv_gdbarch_init): Set number of pseudo registers. Establish
790 pseudo-register read/write methods.
791
bf896cb0
AC
7922003-11-06 Andrew Cagney <cagney@redhat.com>
793
794 * valops.c (destructor_name_p): Replace STREQN with strncmp.
795 * top.c (command_line_input): Ditto.
796 * objc-exp.y (yylex): Ditto.
797 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
798 * jv-exp.y (yylex): Ditto.
799 * f-exp.y (yylex): Ditto.
800 * event-top.c (command_line_handler): Ditto.
801 * environ.c (get_in_environ): Ditto.
802 (set_in_environ): Ditto.
803 * dwarfread.c (handle_producer): Ditto.
804 * dbxread.c (process_one_symbol): Ditto.
805 * c-typeprint.c (c_type_print_base): Ditto.
806 * c-exp.y (yylex): Ditto.
807
0b603eba
AC
8082003-11-06 Andrew Cagney <cagney@redhat.com>
809 Jeff Johnston <jjohnstn@redhat.com>
810
811 * target.c (add_target): Only set "to_xfer_partial" when NULL.
812 (init_dummy_target): Set "to_xfer_partial".
813
9cedbfec
AC
8142003-11-06 Andrew Cagney <cagney@redhat.com>
815
816 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
817 REGISTER_CONVENTION.
818
26bb91f3
DJ
8192003-11-06 Daniel Jacobowitz <drow@mvista.com>
820
821 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
822 static.
823
0bde7532
DJ
8242003-11-06 Daniel Jacobowitz <drow@mvista.com>
825
826 * breakpoint.c (remove_breakpoint): Take an bp_location
827 instead of a breakpoint argument. Check the bp_location's type.
828 Fix a reversed condition for hardware breakpoints.
829
830 (insert_bp_location): Update call to remove_breakpoint.
831 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
832 (remove_hw_watchpoints): Likewise.
833 (reattach_breakpoints): Likewise.
834 (detach_breakpoints): Likewise.
835 (delete_breakpoint): Likewise.
836
075f6582
DJ
8372003-11-06 Daniel Jacobowitz <drow@mvista.com>
838
839 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
840 (beakpoint_init_inferior): Likewise.
841 (breakpoint_here_p): Likewise. Only check addresses for software
842 or hardware breakpoints.
843 (breakpoint_inserted_here_p): Likewise.
844 (breakpoint_thread_match): Likewise. Correct comment.
845 (bpstat_have_active_hw_watchpoints): Likewise.
846 (check_duplicates): Likewise.
847
879bfdc2
DJ
8482003-11-06 Daniel Jacobowitz <drow@mvista.com>
849
850 * breakpoints.c (insert_bp_location): New function, broken out
851 from insert_breakpoints. Work on an bp_location instead of a
852 breakpoint.
853 (insert_breakpoints): Use it.
854
cf3a9e5b
DJ
8552003-11-06 Daniel Jacobowitz <drow@mvista.com>
856
857 * breakpoint.h (struct bp_location): Add section.
858 (struct breakpoint): Remove section.
859 * breakpoint.c (insert_breakpoints, remove_breakpoint)
860 (breakpoint_here_p, breakpoint_inserted_here_p)
861 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
862 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
863 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
864 section through loc.
865
ffce0d52
DJ
8662003-11-06 Daniel Jacobowitz <drow@mvista.com>
867
868 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
869 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
870
e049a4b5
DJ
8712003-11-06 Daniel Jacobowitz <drow@mvista.com>
872
873 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
874 arguments. Initialize owner and type for the new breakpoint
875 location item.
876 (set_raw_breakpoint): Update call to allocate_bp_location.
877
7cc221ef
DJ
8782003-11-06 Daniel Jacobowitz <drow@mvista.com>
879
880 * breakpoint.h (struct bp_location): Add a chain pointer.
881 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
882 macros.
883 (bp_location_chain): New variable.
884 (allocate_bp_location): New function.
885 (set_raw_breakpoint): Use it.
886 (delete_breakpoint): Remove ->loc from the bp_location_chain.
887
5cab636d
DJ
8882003-11-06 Daniel Jacobowitz <drow@mvista.com>
889
890 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
891 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 892 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
893 * breakpoint.c (condition_command, read_memory_nobpt)
894 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
895 (reattach_breakpoints, update_breakpoints_after_exec)
896 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
897 (breakpoint_init_inferior, breakpoint_here_p)
898 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
899 (breakpoint_thread_match, bpstat_stop_status)
900 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
901 (describe_other_breakpoints, check_duplicates)
902 (make_breakpoint_permanent, create_thread_event_breakpoint)
903 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
904 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
905 (watch_command_1, print_one_exception_catchpoint)
906 (clear_command, breakpoint_re_set_one): Adjust member accesses to
907 use the breakpoint's ->loc.
908 (set_raw_breakpoint): Likewise. Initialize ->loc.
909 (delete_breakpoint): Likewise. Free ->loc.
910
7be0c536
AC
9112003-11-05 Andrew Cagney <cagney@redhat.com>
912
4c7d882e
AC
913 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
914 macro.
915 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
916 * config/i386/tm-cygwin.h
917 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
918 * config/powerpc/tm-linux.h
919 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
920 (at_subroutine_call_instruction_target): Delete declaration.
921 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
922 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
923 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
924
7be0c536
AC
925 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
926 "struct bfd_section" and "struct bfd".
927 * target.h (struct section_table): Ditto.
928 * rs6000-nat.c (xcoff_relocate_core): Ditto.
929 * solib-svr4.c (elf_locate_base): Ditto.
930 * pa64solib.c (dld_cache_t): Ditto.
931 * objfiles.h (struct obj_section): Ditto.
932 * objfiles.c (add_to_objfile_sections): Ditto.
933 * exec.c (bfdsec_to_vmap): Ditto.
934 (add_to_section_table): Ditto.
935 (build_section_table): Ditto.
936 * corelow.c (get_core_register_section): Ditto.
937 * coffread.c (find_linenos): Ditto.
938 * elfread.c (elf_interpreter): Delete #if0'd function.
939
940 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
941 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
942 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
943 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
944
945 * arch-utils.h (generic_cannot_extract_struct_value_address):
946 Delete declaration.
947 * wince.c (_initialize_wince): Fix multi-line string.
948 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
949
d8fe84e3
EZ
9502003-11-05 Elena Zannoni <ezannoni@redhat.com>
951
952 * top.c (execute_command): Fix broken logic for command execution
953 while inferior is running in async mode.
954
cbdfc7c0
MK
9552003-11-06 Mark Kettenis <kettenis@gnu.org>
956
957 * dwarf2-frame.c (execute_cfa_program): Mark register as
958 REG_SAVED_REG for DW_CFA_register opcode.
959
dac94105
MK
9602003-11-05 Mark Kettenis <kettenis@gnu.org>
961
962 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
963 %rsp, %rip and %eflags to match ABI-change.
964
85bf2b91
JJ
9652003-11-05 Jeff Johnston <jjohnstn@redhat.com>
966
967 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
968 (ia64_gdbarch_init): Don't bother calculating the os.
969 Instead use the gdbarch_info struct and look at the osabi field.
970 Also use gdbarch_list_lookup_by_info() to look for a
971 candidate gdbarch.
972
cd31fb03
KB
9732003-11-05 Kevin Buettner <kevinb@redhat.com>
974
975 * frv-tdep.c (frv_register_byte): Delete.
976 (frv_extract_return_value, frv_store_return_value)
977 (frv_extract_struct_value_address): Don't call frv_register_byte().
978 Convert to non-deprecated form.
979 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
980 Convert calls to set_gdbarch_deprecated_extract_return_value(),
981 set_gdbarch_deprecated_store_return_value(), and
982 set_gdbarch_deprecated_extract_struct_value_address() into
983 non-deprecated forms.
984
0a056982
AC
9852003-11-05 Andrew Cagney <cagney@redhat.com>
986
987 * mips-tdep.c (mips_dump_tdep): Do not print
988 PRINT_EXTRA_FRAME_INFO.
989 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
990 Rename PRINT_EXTRA_FRAME_INFO.
991 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
992 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
993 (mips_print_extra_frame_info): Delete declaration.
994 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
995
29e0a062
EZ
9962003-11-05 Elena Zannoni <ezannoni@redhat.com>
997
998 * coffread.c (coff_symtab_read): Remove passing of info parameter
999 to prim_record_minimal_symbol_and_info.
1000
8af580fc
EZ
10012003-11-05 Elena Zannoni <ezannoni@redhat.com>
1002
1003 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1004 (decode_base_type): Delete ifdeffed out code.
1005
507836c0
AC
10062003-11-04 Andrew Cagney <cagney@redhat.com>
1007
1008 * symtab.c (find_active_alias): Delete function.
1009 (lookup_block_symbol): Delete alias code.
1010 * stabsread.c (resolve_live_range): Delete function.
1011 (add_live_range): Delete function.
1012 (resolve_symbol_reference): Delete function.
1013 (define_symbol): Delete live range and alias code.
1014 (scan_file_globals): Delete alias code.
1015 * symtab.h (SYMBOL_RANGES): Delete macro.
1016 (struct range_list): Delete structure.
1017 (struct symbol): Delete field "ranges".
1018 (SYMBOL_ALIASES): Delete macro.
1019 (struct alias_list): Delete structure.
1020 (struct symbol): Delete field "aliases".
1021
1083b3bc
MS
10222003-11-04 Michael Snyder <msnyder@redhat.com>
1023
1024 * MAINTAINERS: Remove myself as owner of breakpoints and
1025 of sparc/solaris.
1026
474e5826
CV
10272003-11-03 Corinna Vinschen <vinschen@redhat.com>
1028
1029 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1030 (sh_sh4al_dsp_register_name): Ditto.
1031 (sh4_nofpu_show_regs): Ditto.
1032 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1033 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1034
2160782c
AC
10352003-11-03 Andrew Cagney <cagney@redhat.com>
1036
1037 * bcache.c: Include "gdb_assert.h".
1038 (struct bcache): Add fields "expand_count" and
1039 "expand_hash_count".
1040 (expand_hash_table): Update the expand counts.
1041 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1042 on object sizes and hashes.
1043 * Makefile.in (bcache.o): Update dependencies.
1044
85302095
AC
10452003-11-03 Andrew Cagney <cagney@redhat.com>
1046
1047 * exec.c (xfer_memory): Eliminate xfer_fn.
1048
526eef89
KB
10492003-10-31 Kevin Buettner <kevinb@redhat.com>
1050
1051 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1052 (opcodes/frv-desc.h): Include.
1053 (iacc0h_regnum, iacc0l_regnum): Define.
1054 (last_spr_regnum, frv_num_regs): Update.
1055 (new_variant): Don't supply default names for holes in the SPRs.
1056 Supply names for iacc0h_regnum and iacc0l_regnum.
1057 (frv_register_type): Use symbolic constants first_fpr_regnum and
1058 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1059 builtin_type_int instead of builtin_type_int32.
1060 (frv_register_sim_regno): New function.
1061 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1062 * Makefile.in (gdb_sim_frv_h): Define.
1063 (frv-tdep.o): Update dependencies.
1064
9e815ec2
AC
10652003-10-31 Andrew Cagney <cagney@redhat.com>
1066
1067 * avr-tdep.c (avr_frame_this_id): Do not call
1068 deprecated_inside_entry_file.
1069 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1070 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1071 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1072 * arm-tdep.c (arm_prologue_this_id): Ditto.
1073 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1074
e372db49
JB
10752003-10-31 Jim Blandy <jimb@redhat.com>
1076
1077 * elfread.c (elf_symtab_read): Allocate correct number of tail
1078 elements to sectinfo structure. (Fix from Woody LaRue.)
1079
e8bcf01f
AC
10802003-10-31 Andrew Cagney <cagney@redhat.com>
1081
1082 * stack.c (return_command): Use get_frame_type, instead of
1083 CALL_DUMMY_HAS_COMPLETED.
1084 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1085 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1086
4c05fe53
MK
10872003-10-31 Mark Kettenis <kettenis@gnu.org>
1088
1089 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1090 explicitly specify size of array.
1091 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1092 TDEP->sc_num_regs.
1093
c8b91b89
AC
10942003-10-31 Andrew Cagney <cagney@redhat.com>
1095
1096 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1097 function.
1098 (s390_gdbarch_init): Set extract_struct_value_address.
1099 * arch-utils.c (generic_cannot_extract_struct_value_address):
1100 Delete function.
1101 * arch-utils.h (generic_cannot_extract_struct_value_address):
1102 Delete definition.
1103
fdfb6fc8
MK
11042003-10-31 Mark Kettenis <kettenis@gnu.org>
1105
1106 * i386-linux-nat.c (fetch_core_registers): Remove.
1107 (linux_elf_core_fns): Remove.
1108 (_initialize_i386_linux_nat): Remove.
1109
2f4950cd
AC
11102003-10-31 Andrew Cagney <cagney@redhat.com>
1111
1112 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1113 "exec.h".
1114 (exec_entry_point): New function.
1115 (enable_break): Create a "tmp_bfd_target", use that and
1116 entry_point_address when computing the relocation offset.
1117 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1118 * Makefile.in (solib-svr4.o): Update dependencies.
1119
bba2d28d
AC
11202003-10-31 Andrew Cagney <cagney@redhat.com>
1121
1122 * defs.h (XZALLOC): Define.
1123 * target.h (struct target_ops): Add "to_data";
1124 * bfd-target.h, bfd-target.c: New files.
1125 * Makefile.in (SFILES): Add "bfd-target.c".
1126 (COMMON_OBS): Add "bfd-target.o".
1127 (bfd-target.o): Specify dependencies.
1128 (bfd_target_h): Define.
1129 * defs.h (XZALLOC): Define.
1130
6066c3de
AC
11312003-10-31 Andrew Cagney <cagney@redhat.com>
1132
1133 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1134 adjust_breakpoint_address.
1135 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1136 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1137 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1138 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1139
4b8a223f
AC
11402003-10-31 Andrew Cagney <cagney@redhat.com>
1141
1142 * target.h (struct target_ops): Replace "to_read_partial" and
1143 "to_write_partial" with "to_xfer_partial". Update comments.
1144 * target.c (debug_to_write_partial): Delete function.
1145 (debug_to_xfer_partial): Replace debug_to_read_partial.
1146 (add_target, update_current_target, setup_target_debug): Set
1147 "to_xfer_partial" instead of "to_read_partial" and
1148 "to_write_partial".
1149 (default_xfer_partial): Replace "default_write_partial".
1150 (default_read_partial): Delete.
1151 (target_read_partial, target_write_partial): Call
1152 "to_xfer_partial".
1153 * remote.c (init_remote_ops): Set "to_xfer_partial".
1154 (init_remote_async_ops): Ditto.
1155 (remote_xfer_partial): Replace "remote_read_partial".
1156
66a72d25
MK
11572003-10-31 Mark Kettenis <kettenis@gnu.org>
1158
1159 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1160 registers in `fxsave' format.
1161 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1162
9a12a2a0
MK
11632003-10-30 Mark Kettenis <kettenis@gnu.org>
1164
e9f1aad5
MK
1165 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1166 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1167 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1168
bb489b3c
MK
1169 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1170 specify size of array.
1171 (i386_linux_init_abi): Remove initialization of
1172 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1173 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1174
da285bc4
MK
1175 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1176 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1177 core-regset.o.
1178
9a12a2a0
MK
1179 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1180 the ELF header.
1181
0e24ac5d
MK
11822003-10-29 Mark Kettenis <kettenis@gnu.org>
1183
6d6d8e9c
MK
1184 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1185 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1186 core-regset.o.
1187
25e60c9b
MK
1188 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1189
0e24ac5d
MK
1190 * corelow.c: Include "arch-utils.h", "regset.h" and
1191 "gdb_assert.h".
1192 (core_gdbarch): New variable.
1193 (sniff_core_bfd): Don't sniff if we have support for register sets
1194 in CORE_GDBARCH.
1195 (core_close): Reset CORE_GDBARCH.
1196 (core_open): Initialize CORE_GDBARCH.
1197 (get_core_register_section): Use register sets if they are
1198 supported by CORE_GDBARCH.
1199 (get_core_registers): Don't print error message if we have support
1200 for register sets in CORE_GDBARCH.
1201
0a0a4ac3
AC
12022003-10-29 Andrew Cagney <cagney@redhat.com>
1203
1204 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1205 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1206
7b097ae3
MK
12072003-10-29 Mark Kettenis <kettenis@gnu.org>
1208
1209 * objfiles.h (clear_objfile_data): New prototype.
1210 * objfiles.c (clear_objfile_data): New function.
1211 * symfile.c (reread_symbols): Clear per-objfile data.
1212
46f45a4a
JJ
12132003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1214
1215 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1216 printf_unfiltered instead of printf_filtered for output messages.
1217 (add_symbol_file_command): Ditto.
1218 (reread_symbols): Ditto.
1219 (overlay_auto_command): Ditto.
1220 (overlay_manual_command): Ditto.
1221 (overlay_off_command): Ditto.
1222
2b026650
MK
12232003-10-27 Mark Kettenis <kettenis@gnu.org>
1224
1225 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1226 (gdbarch_from_bfd): New function.
1227 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1228 deprecated_select_gdbarch_hack.
1229 * arch-utils.h (gdbarch_from_bfd): New prototype.
1230
0bcad584 12312003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1232
1233 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1234 arch_info. Use warning instead of fprintf_filtered. Do not use
1235 deprecated bfd_printable_arch_mach.
1236
7f398216
KB
12372003-10-26 Kevin Buettner <kevinb@redhat.com>
1238
1239 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1240 Delete.
1241 (frv_register_type): Rename from frv_register_virtual_type. Add
1242 ``struct gdbarch *'' parameter.
1243 (frv_gdbarch_init): Delete calls to the following functions:
1244 set_gdbarch_deprecated_size(),
1245 set_gdbarch_deprecated_register_bytes(),
1246 set_gdbarch_deprecated_register_raw_size(),
1247 set_gdbarch_deprecated_max_register_raw_size(),
1248 set_gdbarch_deprecated_register_virtual_size(),
1249 set_gdbarch_deprecated_max_register_virtual_size(),
1250 set_gdbarch_deprecated_register_virtual_size(),
1251 set_gdbarch_deprecated_register_virtual_type().
1252 Add call to function set_gdbarch_register_type().
1253
bcf48cc7
MK
12542003-10-26 Mark Kettenis <kettenis@gnu.org>
1255
6c7de422
MK
1256 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1257 FDOFF_REGNUM): Remove defines.
1258 * win32-nat.c (do_child_fetch_inferior_registers): Include
1259 "i387-tdep.h".
3e685d41 1260 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1261 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1262 undefine I387_ST0_REGNUM.
1263
f783586b
MK
1264 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1265 * x86-64-tdep.c (x86_64_store_return_value): Use
1266 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1267
bcf48cc7
MK
1268 Change register numbers to enumartion values.
1269 * i386-tdep.h (enum i386_regnum): New.
1270 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1271 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1272 I386_ST0_REGNUM): Remove defines.
1273 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1274 I386_EDI_REGNUM): Remove defines.
1275
b6591e8b
AC
12762003-10-24 Andrew Cagney <cagney@redhat.com>
1277
1278 * target.c: Include "gdbcore.h".
1279 (get_target_memory, get_target_memory_unsigned): New functions.
1280 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1281 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1282 Use get_target_memory_unsigned.
1283 * Makefile.in (target.o): Update dependencies.
1284
5f724446
AC
12852003-10-24 Andrew Cagney <cagney@redhat.com>
1286
ce2826aa
AC
1287 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1288 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1289 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1290 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1291 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1292
5f724446
AC
1293 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1294 (can_run_code_for): Use the OO term "singleton".
1295
fc70c2a0
AC
12962003-10-23 Andrew Cagney <cagney@redhat.com>
1297
1298 * Makefile.in (stack.o): Add $(regcache_h).
1299 * stack.c: Include "regcache.h"
1300 (return_command): Rewrite. Use get_frame_id and
1301 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1302 about unhandled return-values.
1303 * value.h (set_return_value): Delete declaration.
1304 * values.c (set_return_value): Delete function.
1305
4afcc598
JJ
13062003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1307
1308 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1309 (pseudo_regs): Add comment regarding register stack registers.
1310 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1311 (floatformat_valid): New static routine.
1312 (floatformat_ia64_ext): Add name field and set up is_valid routine
1313 to floatformat_valid().
1314 (examine_prologue): For the previous cfm, use
1315 frame_unwind_register()
1316 if the cfm is not stored in a register-stack register. Save the
1317 previous cfm value in the prev_cfm field. Add debug output.
1318 (ia64_frame_this_id): Use frame_id_build_special() to also register
1319 the bsp. Add debug output.
1320 (ia64_sigtramp_frame_this_id): Ditto.
1321 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1322 registers and also add some checks for framelessness before accepting
1323 current register values for fields such as return address. For cfm,
1324 use the cached prev_cfm field if available. Add comment to explain
1325 PSR logic. Add debug output.
1326 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1327 as part of initialization.
1328 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1329 calculated. Cache the bsp and cfm values.
1330 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1331 instead of using ia64_frame_prev_register() which doesn't expect most
1332 registers to be saved. The saved values for bsp and sp
1333 can be taken from the cache. Add debug output.
1334 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1335 the bsp.
1336
6cfae0bc
JB
13372003-10-23 Jim Blandy <jimb@redhat.com>
1338
1339 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1340 architecture the current arch can run code for --- but not if it's
1341 a superset.
1342 (can_run_code_for): New function.
1343
fcd182f9
JW
13442003-10-22 James E Wilson <wilson@specifixinc.com>
1345
1346 * MAINTAINERS: Move myself from paper trail section back to write
1347 after approval section.
1348
4646aa9d
AC
13492003-10-22 Andrew Cagney <cagney@redhat.com>
1350
1351 * exec.h: New file.
1352 * win32-nat.c: Include "exec.h".
1353 * solib.c: Include "exec.h".
1354 * target.h (build_section_table): Delete declaration.
1355 * somsolib.c: Include "exec.h".
1356 (exec_ops): Delete extern declaration.
1357 * rs6000-nat.c: Update copyright. Include "exec.h".
1358 (exec_ops): Delete extern declaration.
1359 * pa64solib.c: Update copyright. Include "exec.h".
1360 (exec_ops): Delete extern declaration.
1361 * exec.c: Update copyright. Include "exec.h".
1362 * corelow.c: Update dependencies. Include "exec.h".
1363 * Makefile.in (exec_h): Define.
1364 (exec.o, somsolib.o): Update dependencies.
1365 (pa64solib.o, corelow.o): Update dependencies.
1366
0088c768
AC
13672003-10-22 Andrew Cagney <cagney@redhat.com>
1368
1369 * target.c: Include "gdb_assert.h" (target_read): Call
1370 "target_read_partial", not "target_write_partial".
1371 (default_read_partial, default_write_partial): New function.
1372 (target_read_partial, target_write_partial): Simplify, assume that
1373 there is always a read/write method.
1374 (update_current_target, add_target): Always set "to_read_partial"
1375 and "to_write_partial".
1376 (target_write, target_read): Fail on a zero byte transfer.
1377 * Makefile.in (target.o): Update dependencies.
1378 * target.h: Update copyright date.
1379 (target_object): Fix typo.
1380
e2d0e7eb
AC
13812003-10-22 Andrew Cagney <cagney@redhat.com>
1382
1383 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1384 multi-arch method, add "targ" parameter.
1385 (struct target_ops): Declare.
1386 * gdbarch.h, gdbarch.c: Re-generate.
1387 * Makefile.in (c-valprint.o): Update dependencies.
1388 * arch-utils.h: Update copyright.
1389 (convert_from_func_ptr_addr_identity): Declare.
1390 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1391 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1392 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1393 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1394 * infcall.c (find_function_addr, call_function_by_hand): Update.
1395 * c-valprint.c: Include "target.h".
1396 (print_function_pointer_address): Update.
1397
f1c07ab0
AC
13982003-10-22 Andrew Cagney <cagney@redhat.com>
1399
1400 * target.c (target_close): New function.
1401 (debug_to_close): Use "target_close".
1402 (push_target): Use "target_close".
1403 (unpush_target): Use "target_close".
1404 (pop_target): Use "target_close".
1405 * target.h (struct target_ops): Add "to_xclose".
1406 (target_open): Delete macro. Move comment to "to_open".
1407 (target_close): Replace macro with function that takes a target.
1408 * top.c (quit_target): Pass "current_target" to "target_close".
1409
5520a790
EZ
14102003-10-21 Elena Zannoni <ezannoni@redhat.com>
1411
1412 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1413 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1414 * symtab.h (lookup_minimal_symbol_text): Update.
1415 * breakpoint.c (create_overlay_event_breakpoint,
1416 create_longjmp_breakpoint): Update callers.
1417 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1418 * symtab.c (find_pc_sect_line): Ditto.
1419
caa92b73
AC
14202003-10-21 Andrew Cagney <cagney@redhat.com>
1421
1422 * target.c (errno): Delete extern declaration.
1423
aa2a9a3c
JJ
14242003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1425
1426 * ia64-tdep.c: Change all occurrences of
1427 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1428 (ia64_frame_prev_register): Minor whitespace change.
1429
4beec2b7
MC
14302003-10-20 Michael Chastain <mec@shout.net>
1431
1432 * config/djgpp/fnchange.lst: Add lines for:
1433 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1434 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1435 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1436 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1437 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1438 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1439 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1440
92ad9cd9
AC
14412003-10-20 Andrew Cagney <cagney@redhat.com>
1442
1443 * values.c (register_value_being_returned): Update comments. Use
1444 "gdbarch_return_value" when available.
1445 (using_struct_return): Ditto.
1446 (set_return_value): Ditto. Use "gdbarch_return_value" when
1447 available.. Print a warning, and not an error, when an unhandled
1448 return type is encountered.
1449 * infcmd.c: Include "gdb_assert.h".
1450 (print_return_value): When gdbarch_return_value_p, and using
1451 struct return, assume that the value is not available.
1452 * defs.h (return_value_convention): Define.
1453 * gdbarch.sh (gdbarch_return_value): New predicate method.
1454 * gdbarch.h, gdbarch.c: Re-generate
1455 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1456
198beae2
AC
14572003-10-20 Andrew Cagney <cagney@redhat.com>
1458
1459 * symtab.c: Replace "struct sec" with "struct bfd_section".
1460 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1461
24d693a6 14622003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1463
1464 * config/djgpp/fnchange.lst: Add lines for:
1465 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1466 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1467 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1468
21ad8dc3
MK
14692003-10-19 Mark Kettenis <kettenis@gnu.org>
1470
1471 * amd64fbsd-nat.c (fetch_inferior_registers,
1472 store_inferior_registers): Remove functions.
1473 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1474
cced5e27
MK
14752003-10-18 Mark Kettenis <kettenis@gnu.org>
1476
1477 Add NetBSD/amd64 native configuration:
1478 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1479 * amd64nbsd-tdep.c: New file.
1480 * amd64nbsd-nat.c: New file.
1481 * amd64bsd-nat.c: New file.
1482 * config/i386/nbsd64.mh: New file.
1483 * config/i386/nbsd64.mt: New file.
1484 * configure.host: Add x86_64-*-netbsd*.
1485 * configure.tgt: Add x86_64-*-netbsd*.
1486 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1487 New targets.
1488 * NEWS (New native configurations): Mention NetBSD/amd64.
1489
666de3fd
MC
14902003-10-17 Michael Chastain <mec@shout.net>
1491
1492 * config/djgpp/fnchange.lst: Remove dead lines for:
1493 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1494 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1495 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1496 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1497 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1498 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1499 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1500 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1501 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1502 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1503 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1504 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1505 gdb/config/sparc/tm-sparclite.h,
1506 gdb/gdbtk/generic/ChangeLog-2001,
1507 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1508 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1509 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1510 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1511 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1512 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1513 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1514 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1515 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1516 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1517 itcl/iwidgets3.0.0/demos/fileselectionbox,
1518 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1519 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1520 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1521 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1522 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1523 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1524 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1525 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1526 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1527 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1528 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1529 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1530 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1531 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1532 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1533 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1534 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1535 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1536 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1537 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1538 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1539 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1540 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1541 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1542 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1543 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1544 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1545 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1546 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1547 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1548 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1549 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1550 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1551 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1552 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1553 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1554 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1555 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1556 itcl/iwidgets3.0.0/demos/scrolledframe,
1557 itcl/iwidgets3.0.0/demos/scrolledhtml,
1558 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1559 itcl/iwidgets3.0.0/demos/scrolledtext,
1560 itcl/iwidgets3.0.0/demos/selectionbox,
1561 itcl/iwidgets3.0.0/demos/selectiondialog,
1562 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1563 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1564 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1565 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1566 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1567 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1568 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1569 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1570 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1571 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1572 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1573 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1574 itcl/iwidgets3.0.0/doc/selectionbox.n,
1575 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1576 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1577 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1578 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1579 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1580 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1581 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1582 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1583 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1584 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1585 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1586 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1587 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1588 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1589 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1590 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1591 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1592 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1593 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1594 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1595 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1596 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1597 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1598 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1599 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1600 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1601 itcl/iwidgets3.0.0/tests/selectionbox.test,
1602 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1603 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1604 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1605 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1606 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1607 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1608 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1609 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1610 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1611 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1612 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1613 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1614 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1615 tk/mac/tkMacProjects.sit.hqx.
1616
1e3ff5ad
AC
16172003-10-17 Andrew Cagney <cagney@redhat.com>
1618
8db32d44
AC
1619 * target.c (target_section_by_addr): New function.
1620 (do_xfer_memory): Use "target_section_by_addr".
1621 * target.h (target_section_by_addr): Declare.
1622
1e3ff5ad
AC
1623 * target.h (struct target_ops): Add "to_read_partial" and
1624 "to_write_partial", delete "to_query".
1625 (target_read_partial, target_write_partial): Declare.
1626 (target_read, target_write): Declare.
1627 (target_query): Delete macro.
1628 * target.c (target_read_partial): New function.
1629 (target_write_partial, target_read, target_write): New function.
1630 (update_current_target): Delete inheritance of "to_query". Add
1631 comments about "to_read_partial" and "to_write_partial".
1632 (debug_to_partial_read, debug_to_partial_write): New functions.
1633 (debug_to_query): Delete function.
1634 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1635 instead of "to_query".
1636 * remote.c (remote_read_partial): Replace "remote_query".
1637 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1638 (init_remote_async_ops): Ditto.
1639 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1640 "target_read_partial" instead of "target_query".
1641 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1642 Use "target_read_partial" instead of "target_query".
1643
48c66725
JJ
16442003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1645
1646 * frame.h (struct frame_id): Add new field: special_addr.
1647 (frame_id_build_special): New prototype.
1648 * frame.c (frame_id_build_special): New function.
1649 (frame_id_build): Change to call frame_id_build_special().
1650 (frame_id_eq): Change to also test special_addr field.
1651 (frame_id_inner): Update comment.
1652
7998dfc3
AC
16532003-10-17 Andrew Cagney <cagney@redhat.com>
1654
1655 * target.c (update_current_target): Perform the target cleanup.
1656 Put the target stack beneath the squashed "current_target".
1657 (add_target): Delete disabled call to "cleanup_target".
1658 (cleanup_target): Delete function.
1659 (push_target, unpush_target): Do not call "cleanup_target".
1660
9c04404e 16612003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1662
1663 * target.c (target_stack): Change to a static target_ops.
1664 (update_current_target): Walk the "struct target_ops" stack.
1665 (pop_target, do_xfer_memory, target_info): Ditto.
1666 (find_target_beneath): Ditto.
1667 (push_target): Rewrite to use the "struct target_ops" stack.
1668 (unpush_target): Ditto.
1669 * target.h (struct target_stack_item): Delete definition.
1670 (target_stack): Delete declaration.
1671 (struct target_ops): Add field "beneath".
1672
c98a2b49 16732003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1674
1675 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1676 declaration.
1677 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1678 (h8300_examine_prologue): Use h8300_normal_mode flag
1679 (h8300_gdbarch_init): Set architecture info for normal mode
1680
506fb367
DJ
16812003-10-16 Daniel Jacobowitz <drow@mvista.com>
1682
1683 * remote.c (remote_protocol_vcont): New variable.
1684 (set_remote_protocol_vcont_packet_cmd): New function.
1685 (show_remote_protocol_vcont_packet_cmd): New function.
1686 (init_all_packet_configs): Handle remote_protocol_vcont.
1687 (remote_vcont_probe): New function.
1688 (remote_vcont_resume): New function.
1689 (remote_resume): Use it.
1690 (remote_async_resume): Call remote_resume.
1691 (_initialize_remote): Add verbose-resume packet commands.
1692
65815ea1
AC
16932003-10-16 Andrew Cagney <cagney@redhat.com>
1694
1695 * infrun.c (handle_inferior_event): Add comment about
1696 "frame_id_inner" being too weak.
1697
40324f1b
EZ
16982003-10-16 Elena Zannoni <ezannoni@redhat.com>
1699
1700 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1701 second parameter, which is always null. Remove
1702 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1703 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1704 accordingly.
1705 * somsolib.c (som_solib_create_inferior_hook,
1706 som_solib_desire_dynamic_linker_symbols): Update callers.
1707 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1708
17092003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1710
1711 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1712 debug interface, SDI (Scalable Debug Interface).
1713 * NEWS: Mention m32r SDI protocol was supported.
1714 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1715 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1716
51931cbb
JJ
17172003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1718
1719 * ia64-linux-tdep.c: Include gdbcore.h.
1720 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1721 (ia64_linux_sigcontext_register_addr): Find the address of the
1722 sigcontext area stored in the sigframe instead of using
1723 a magic offset constant.
1724
84e7fd53
AC
17252003-10-15 Andrew Cagney <cagney@redhat.com>
1726
1727 * remote.c (remote_search): Delete function.
1728 * target.h (target_search): Delete disabled macro.
1729 (struct target_ops): Delete disabled field "to_search".
1730
0f4d7c52
KB
17312003-10-14 Kevin Buettner <kevinb@redhat.com>
1732
1733 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1734 instead of deprecated_inside_entry_file().
1735
2e952408
CV
17362003-10-14 Corinna Vinschen <vinschen@redhat.com>
1737
1738 * sh-tdep.c: Fix copy/paste hangover in comment.
1739 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1740 mode.
1741 (sh3e_sh4_extract_return_value): Ditto.
1742
7e86466e
RH
17432003-10-13 Richard Henderson <rth@redhat.com>
1744
1745 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1746 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1747 match c_val_print a bit closer.
1748
46a16dba
KB
17492003-10-13 Kevin Buettner <kevinb@redhat.com>
1750
1751 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1752 (frv_gdbarch_adjust_breakpoint_address): New function.
1753 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1754 method.
1755
76897487
KB
17562003-10-13 Kevin Buettner <kevinb@redhat.com>
1757
1758 * breakpoint.h (struct breakpoint): Add new member
1759 ``requested_address''.
1760 * breakpoint.c (breakpoint_adjustment_warning)
1761 (adjust_breakpoint_address): New static functions.
1762 (print_it_typical): Issue warning if breakpoint's address is different
1763 from its requested address.
1764 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1765 (breakpoint_re_set_one): Set breakpoint's
1766 ``requested_address'' field. Set ``address'' field to the
1767 result of calling adjust_breakpoint_address() on the requested
1768 address.
1769
a1131521
KB
17702003-10-13 Kevin Buettner <kevinb@redhat.com>
1771
1772 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1773 * gdbarch.h, gdbarch.c: Regenerate.
1774
6ce6d90f
MK
17752003-10-11 Mark Kettenis <kettenis@gnu.org>
1776
155c1d33
MK
1777 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1778 TDEP->sc_num_regs.
1779
8a96bc77
MK
1780 * i386fbsd-tdep.c: New file.
1781 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1782 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1783 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1784 i386bsd-tdep.c.
1785 (_initialize_i386fbsd_tdep): New function.
1786 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1787 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1788 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1789 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1790 TDEP->sc_num_regs.
1791 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1792 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1793 to initialize TDEP->sc_num_regs.
1794 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1795 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1796 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1797 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1798 FreeBSD ELF OS/ABI's here.
1799 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1800 (i386fbsd-tdep.o): New target.
1801 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1802 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1803
477f40d1
MK
1804 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1805 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1806 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1807 in initialization of TDEP->sc_num_regs.
1808
c6b33596
MK
1809 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1810 (x86_64_init_abi): Initialize regset_from_core_section if
1811 appropriate.
1812
8446b36a
MK
1813 * i386-tdep.c (i386_regset_from_core_section): New function.
1814 (i386_gdbarch_init): Initialize regset_from_core_section if
1815 appropriate.
1816 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1817
c783cbd6
MK
1818 * i386-tdep.h (struct regset): Declare opaque.
1819
6ce6d90f
MK
1820 * gdbarch.sh (regset_from_core_section): New method.
1821 (struct regset): Declare opaque.
1822 * gdbarch.c, gdbarch.h: Regenerated.
1823
b98ed7be
AM
18242003-10-11 Alan Modra <amodra@bigpond.net.au>
1825
1826 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1827 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1828 Correct test for pc within section.
1829
f6214256
MK
18302003-10-11 Mark Kettenis <kettenis@gnu.org>
1831
1832 * gdbarch.sh: Remove trailing whitepsace from comments.
1833
a8f4cde1
RM
18342003-10-08 Roland McGrath <roland@redhat.com>
1835
1836 * gcore.c (make_mem_sec): Function removed, folded into ...
1837 (gcore_create_callback): ... here. To omit a section, clear its
1838 SEC_LOAD bit rather than zeroing its size.
1839 Omit read-only sections only if they correspond to a known disk file.
1840 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1841
74276724
MS
18422003-10-10 Michael Snyder <msnyder@redhat.com>
1843
1844 * d10v-tdep.c: Fix typo in comment.
1845
e754ae69
AC
18462003-10-10 Andrew Cagney <cagney@redhat.com>
1847
1848 * rs6000-tdep.c (e500_store_return_value): Delete function.
1849 (e500_extract_return_value): Delete function.
1850 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1851 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1852 "ppc_sysv_abi_restore_return_value" where applicable.
1853 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1854 (ppc_sysv_abi_extract_return_value): Declare.
1855 (ppc_sysv_abi_broken_store_return_value): Declare.
1856 (ppc_sysv_abi_broken_extract_return_value): Declare.
1857 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1858 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1859 start of file.
1860 (do_ppc_sysv_return_value): New function.
1861 (ppc_sysv_abi_extract_return_value): New function.
1862 (ppc_sysv_abi_store_return_value): New function.
1863 (ppc_sysv_abi_broken_extract_return_value): New function.
1864 (ppc_sysv_abi_broken_store_return_value): New function.
1865 (ppc_sysv_abi_use_struct_convention): Call
1866 do_ppc_sysv_return_value.
1867
8d4ce20a
JB
18682003-10-10 J. Brobecker <brobecker@gnat.com>
1869
1870 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1871 to lookup the main function symbol.
1872
afce3d2a
CV
18732003-10-10 Corinna Vinschen <vinschen@redhat.com>
1874
1875 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1876 types correctly.
1877 (sh_push_dummy_call_fpu): Fix argument passing rules.
1878 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1879 float types.
1880 (sh3e_sh4_store_return_value): Ditto.
1881
7fe958be
EZ
18822003-10-10 Elena Zannoni <ezannoni@redhat.com>
1883
1884 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1885 comment.
1886
3f997a97
CV
18872003-10-10 Corinna Vinschen <vinschen@redhat.com>
1888
1889 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1890 more readable code. Accomodate passing of bitfields.
1891
8be9034a
AC
18922003-10-10 Andrew Cagney <cagney@redhat.com>
1893
1894 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1895 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1896 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1897 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1898 (ppc64_sysv_abi_push_dummy_call): New function.
1899 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1900 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1901 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1902
85a453d5
KI
19032003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1904
1905 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1906 * README: Ditto.
1907 * d10v-tdep.c: Ditto.
1908 * h8300-tdep.c: Ditto.
1909 * remote-e7000.c: Ditto.
1910 * remote-hms.c: Ditto.
1911 * ser-e7kpc.c: Ditto.
1912 * sh-stub.c: Ditto.
1913 * sh-tdep.c: Ditto.
1914 * sh-tdep.h: Ditto.
1915 * sh3-rom.c: Ditto.
1916 * sh64-tdep.c: Ditto.
1917 * top.c: Ditto.
1918 * wince.c: Ditto.
1919 * config/d10v/d10v.mt: Ditto.
1920 * config/sh/embed.mt: Ditto.
1921 * config/sh/linux.mt: Ditto.
1922 * config/sh/tm-linux.h: Ditto.
1923 * config/sh/tm-sh.h: Ditto.
1924 * config/sh/wince.mt: Ditto.
1925
221c12ff
AC
19262003-10-09 Andrew Cagney <cagney@redhat.com>
1927
1928 * ppc-tdep.h (struct type): Declare opaque.
1929 * x86-64-tdep.h (struct regcache): Declare opaque.
1930 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1931 coding style.
1932
ef5200c1
AC
19332003-10-09 Andrew Cagney <cagney@redhat.com>
1934
1935 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1936 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1937 (SOFTWARE_SINGLE_STEP_P): Ditto.
1938 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1939 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1940 (SOFTWARE_SINGLE_STEP_P): Ditto.
1941 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1942 software_single_step to rs6000_software_single_step.
a8f4cde1 1943
9644bbdd
AC
19442003-10-09 Andrew Cagney <cagney@redhat.com>
1945
1946 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1947
db72fa6b
MS
19482003-10-09 Michael Snyder <msnyder@redhat.com>
1949
f3efb16c
MS
1950 * frame.h: Fix typo in comment.
1951 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1952 * d10v-tdep.c: Random whitespace/comment tweaks.
1953
9a5cef92
EZ
19542003-10-09 Elena Zannoni <ezannoni@redhat.com>
1955
1956 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1957 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1958 on stack.
a8f4cde1 1959
9a5cef92
EZ
1960 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1961 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1962 in detail.
a8f4cde1 1963
0f317a0c
DJ
19642003-10-09 Daniel Jacobowitz <drow@mvista.com>
1965
1966 * remote-mips.c (mips_initialize): Remove unneeded call to
1967 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1968
bbab2f46
DJ
19692003-10-09 Daniel Jacobowitz <drow@mvista.com>
1970
1971 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1972 a memory pointer.
1973
550950b8
JJ
19742003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1975
1976 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1977 for any lwp we resume.
1978 (running_callback): Add lwps that have pending status events
1979 against them to be considered running.
1980
15c69bc7
KI
19812003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1982
1983 * m32r-tdep.c : Include "dis-asm.h".
1984 * Makefile.in (m32r-tdep.o): Update dependencies.
1985
51065942
JB
19862003-10-06 J. Brobecker <brobecker@gnat.com>
1987
1988 * completer.h (get_gdb_completer_word_break_characters): Delete.
1989 * completer.c: include language.h.
1990 (gdb_completer_word_break_characters): Delete.
1991 (get_gdb_completer_word_break_characters): Delete.
1992 (location_completer): Use the word break characters of the current
1993 language.
1994 (complete_line): Likewise.
1995 (line_completion_function): Likewise.
1996 (skip_quoted_chars): Likewise.
1997 * Makefile.in (completer.o): Add dependency on language.h.
1998 * top.c (init_main): Set the readline word break characters
1999 to GDB's default word break characters.
2000
6084f43a
JB
20012003-10-06 J. Brobecker <brobecker@gnat.com>
2002
2003 * language.h (language_defn): new field, la_word_break_characters.
2004 * language.c (unknown_language_defn): Set new field to
2005 default_word_break_characters.
2006 (auto_language_defn): Likewise.
2007 (local_language_defn): Likewise.
2008 * ada-lang.c (ada_language_defn): Likewise.
2009 * c-lang.c (c_language_defn): Likewise.
2010 (cplus_language_defn): Likewise.
2011 (asm_language_defn): Likewise.
2012 (minimal_language_defn): Likewise.
2013 * f-lang.c (f_language_defn): Likewise.
2014 * jv-lang.c (java_language_defn): Likewise.
2015 * m2-lang.c (m2_language_defn): Likewise.
2016 * objc-lang.c (objc_language_defn): Likewise.
2017 * p-lang.c (pascal_language_defn): Likewise.
2018 * scm-lang.c (scm_language_defn): Likewise.
2019
944fcfab
AC
20202003-10-06 Andrew Cagney <cagney@redhat.com>
2021
2022 * ppc-sysv-tdep.c: Re-indent.
2023
9f0a5303
JB
20242003-10-06 J. Brobecker <brobecker@gnat.com>
2025
2026 * language.h (default_word_break_characters): Add prototype.
2027 * language.c (default_word_break_characters): New function.
2028
7270b6ed
AS
20292003-10-06 Andreas Schwab <schwab@suse.de>
2030
2031 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2032 with %eax.
2033
a5d61f66
AC
20342003-10-06 Andrew Cagney <cagney@redhat.com>
2035
2036 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2037 "h8500-tdep.c".
2038 (z8k-tdep.o): Delete custom build rule.
2039
28a86f5c
AC
20402003-10-06 Andrew Cagney <cagney@redhat.com>
2041
1bfd8a83
AC
2042 * Makefile.in: Update all dependencies.
2043
17144ef8
AC
2044 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2045 No longer list PA as as obsolete candidate. List m32r as
2046 broken instead of obsolete.
a8f4cde1 2047
a5679ae5
AC
2048 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2049 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2050 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2051 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2052 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2053 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2054 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2055 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2056 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2057 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2058 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2059 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2060 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2061 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2062 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2063 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2064 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2065 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2066 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2067 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2068 * config/z8k/z8k.mt: Ditto.
2069
4a8269c0
AC
2070 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2071 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2072 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2073 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2074 sparclite were removed.
2075 * configure.host, configure.tgt: Remove corresponding tuples.
2076
41989fcd
AC
2077 * breakpoint.c, breakpoint.h: Remove obsolete code.
2078 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2079 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2080 * stabsread.h, xcoffread.c: Ditto.
2081
28a86f5c
AC
2082 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2083 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2084 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2085 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2086
4efdaa0d
DL
20872003-10-06 David Lecomber <dsl@sources.redhat.com>
2088
2089 * f-valprint.c: Reformatting
2090
ae53de43
MK
20912003-10-06 Mark Kettenis <kettenis@gnu.org>
2092
a8bb57e7
MK
2093 * x86-64-tdep.c: Remove duplicate comment.
2094
ae53de43
MK
2095 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2096 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2097 names for return values. This fixes a bug since we looked at %rbx
2098 instead of %rdx.
2099
473f17b0
MK
21002003-10-05 Mark Kettenis <kettenis@gnu.org>
2101
2c261fae
MK
2102 * x86-64-tdep.c: Include "regset.h".
2103
473f17b0
MK
2104 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2105 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2106 sizeof_fpregset.
2107 * i386-tdep.c: Include "regset.h".
2108 (i386_supply_gregset): New function.
2109 (i386_supply_fpregset): New function.
2110 (i386_gdbarch_init): Initialze register set-related members of
2111 TDEP.
2112 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2113 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2114
afd48b75
AC
21152003-10-03 Andrew Cagney <cagney@redhat.com>
2116
2117 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2118 set extract_return_value, store_return_value and
2119 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2120 ppc64_sysv_abi_store_return_value and
2121 ppc64_sysv_abi_use_struct_convention.
2122 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2123 (ppc64_sysv_abi_store_return_value): Declare.
2124 (ppc64_sysv_abi_use_struct_convention): Declare.
2125 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2126 (ppc64_sysv_abi_extract_return_value): New function.
2127 (ppc64_sysv_abi_store_return_value): New function.
2128 (ppc64_sysv_abi_use_struct_convention): New function.
2129 (ppc64_sysv_abi_return_value): New function.
2130
9b540880
AC
21312003-10-03 Andrew Cagney <cagney@redhat.com>
2132
2133 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2134 convert a descriptor to a function when it's in the ".opd"
2135 section.
2136
8748518b
CV
21372003-10-03 Corinna Vinschen <vinschen@redhat.com>
2138
2139 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2140 reg_size to keep GCC silent.
2141
0fd85043
CV
21422003-10-03 Corinna Vinschen <vinschen@redhat.com>
2143
2144 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2145 base for DW_EH_PE_textrel encodings.
2146 (read_encoded_value): Add a DW_EH_PE_textrel case.
2147 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2148 section.
2149
37b517aa
MK
21502003-10-03 Mark Kettenis <kettenis@gnu.org>
2151
2152 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2153
12c266ea
AC
21542003-10-02 Andrew Cagney <cagney@redhat.com>
2155
2156 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2157 REGISTER_RAW_SIZE.
2158 * gdbarch.h, gdbarch.c: Re-generate.
2159 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2160 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2161 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2162 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2163 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2164 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2165 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2166 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2167 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2168 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2169 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2170 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2171 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2172 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2173 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2174 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2175
78ba4af6
JB
21762003-10-02 Jim Blandy <jimb@redhat.com>
2177
2178 * dwarf2read.c (struct die_info): Doc fix.
2179
617daa0e
CV
21802003-10-02 Corinna Vinschen <vinschen@redhat.com>
2181
2182 * sh-tdep.c: Running thru gdb_indent.sh.
2183
e5e33cd9
CV
21842003-10-02 Corinna Vinschen <vinschen@redhat.com>
2185
2186 * sh-tdep.c (sh_justify_value_in_reg): New function.
2187 (sh_stack_allocsize): Ditto.
2188 (flt_argreg_array): New array used for floating point argument
2189 passing.
2190 (sh_init_flt_argreg): New function.
a8f4cde1 2191 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2192 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2193 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2194 Fix argument passing strategy.
2195 (sh_push_dummy_call_nofpu): Ditto.
2196
5fe830e4
AC
21972003-10-01 Andrew Cagney <cagney@redhat.com>
2198
2199 * value.h (register_value_being_returned): Declare. Replace
2200 "value_being_returned".
2201 * infcall.c (call_function_by_hand): Use
2202 register_value_being_returned.
2203 * infcmd.c (print_return_value): Call
2204 "register_value_being_returned", handle struct return locally.
2205 * values.c (register_value_being_returned): New function. Replace
2206 "value_being_returned".
a8f4cde1 2207
5fe830e4 22082003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2209
2210 * linux-proc.c (linux_do_registers): New function.
2211 (linux_make_note_section): Use linux_do_registers in case of
2212 single threaded inferior programs.
2213
64f395bf
AC
22142003-10-01 Andrew Cagney <cagney@redhat.com>
2215
2216 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2217 use STRUCT_ADDR. When not using "struct return convention", pass
2218 "0" to "value_being_returned". Add FIXMEs.
2219 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2220 value_being_returned. Add comments.
2221 * values.c (value_being_returned): Add fixme.
2222 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2223 (hppa_value_returned_from_stack): Add FIXME.
2224
639d11d3
DC
22252003-09-30 David Carlton <carlton@kealia.com>
2226
2227 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2228 'has_children' and 'next' by 'child' and 'sibling'.
2229 (read_comp_unit): Rework algorithm, breaking body into
2230 read_die_and_children and read_die_and_siblings.
2231 (read_die_and_children, read_die_and_siblings): New.
2232 (read_full_die): Add 'has_children' argument; set it instead of
2233 the die's 'has_children' field. Minor formatting cleanup.
2234 (free_die_list): Use die->child and die->sibling instead of
2235 die->next.
2236 (dump_die_list): Ditto.
2237 (sibling_die): Use die->sibling.
2238 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2239 'has_children' and 'next' fields.
a8f4cde1
RM
2240 (process_die, read_file_scope, read_func_scope)
2241 (read_lexical_block_scope, read_structure_scope)
2242 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2243 (read_namespace, read_subroutine_type, dump_die): Ditto.
2244
5bffac25
AC
22452003-09-30 Andrew Cagney <cagney@redhat.com>
2246
2247 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2248 to 224, not 220.
2249
f30992d4
AC
22502003-09-30 Andrew Cagney <cagney@redhat.com>
2251
2252 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2253 REGISTER_VIRTUAL_SIZE.
2254 * gdbarch.h, gdbarch.c: Regenerate.
2255 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2256 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2257 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2258
2e092625
AC
22592003-09-29 Andrew Cagney <cagney@redhat.com>
2260
2261 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2262 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2263 * gdbarch.h, gdbarch.c: Regenerate.
2264 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2265 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2266
2267 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2268 * remote-vxmips.c (vx_read_register): Ditto.
2269 * remote-vx68.c (vx_read_register): Ditto.
2270 * gnu-nat.c (inf_validate_procs): Ditto.
2271
7a5dd6ee
JB
22722003-09-29 J. Brobecker <brobecker@gnat.com>
2273
2274 * infcall.c (call_function_by_hand): Fix build failure
2275 introduced in the previous change to this file.
2276
1fe43d45
AC
22772003-09-29 Andrew Cagney <cagney@redhat.com>
2278
2279 * NEWS: Mention Objective-C.
2280
e28a332c
JG
22812003-09-29 Jerome Guitton <guitton@act-europe.fr>
2282
2283 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2284 test if the register has been saved on the stack.
2285 (arm_scan_prologue_cache): When analysing the instruction
2286 "str lr, [sp, #-4]", save the address where lr has been stored.
2287
9ff63c35
AC
22882003-09-28 Andrew Cagney <cagney@redhat.com>
2289
7f5f525d
AC
2290 * frame.c (frame_read_unsigned_register): Delete function.
2291 * frame.h (frame_read_unsigned_register): Delete declaration.
2292 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2293 get_frame_register_unsigned.
2294 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2295 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2296 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2297
7f5f525d
AC
2298 * frame.h (frame_read_register): Delete declaration.
2299 * frame.c (frame_read_register): Delete function.
2300 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2301 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2302 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2303 * mips-tdep.c (mips_register_to_value): Ditto.
2304 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2305 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2306
2307 * frame.c (frame_read_signed_register): Delete function.
2308 (frame_read_unsigned_register): Update comments.
2309 * frame.h (frame_read_signed_register): Delete declaration.
2310 * h8300-tdep.c (h8300_print_register): Use
2311 get_frame_register_signed.
2312 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2313
9ff63c35
AC
2314 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2315 Rename VALUE_RETURNED_FROM_STACK.
2316 * infcmd.c (print_return_value): Update.
2317 * infcall.c (call_function_by_hand): Update.
2318
41d041d6
MK
23192003-09-28 Mark Kettenis <kettenis@gnu.org>
2320
2321 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2322 regcache argument and reverse the order of the other two
2323 arguments. Remove local regcache variable. Determine
2324 architecture from REGCACHE. Update comments.
2325 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2326 reverse the order of the other two arguments. Remove local
2327 regcache variable. Determine architecture from REGCACHE. Update
2328 comments.
2329 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2330 prototypes. Update comments.
2331 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2332 comment.
2333 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2334 Update.
2335 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2336 * i386-interix-nat.c (supply_fpregset): Update.
2337 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2338 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2339 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2340 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2341 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2342 Update.
2343 * i386obsd-tdep.c (fetch_core_registers): Update.
2344 * i386v4-nat.c (supply_fpregset): Update.
2345 * x86-64-linux-nat.c (supply_fpregset): Update.
2346 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2347
1cb97e17
MK
23482003-09-27 Mark Kettenis <kettenis@gnu.org>
2349
5716833c
MK
2350 * i386-tdep.h: Put opaque declarations in alphabetical
2351 order. Remove spurious whitespace.
2352 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2353 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2354 * i386-tdep.c (MM0_REGNUM): Remove define.
2355 (i386_mmx_regnum_p): Add gdbarch argument.
2356 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2357 Rewrite using new macro definitions for FPU/SSE registers.
2358 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2359 definitions from i387-tdep.h.
2360 (i386_register_name): Update.
2361 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2362 new macro definitions for FPU/SSE registers.
2363 (i386_extract_return_value): Determine whether floating-point
2364 registers are present by examining REGCACHE's architecture.
2365 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2366 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2367 FPU/SSE registers.
2368 (i386_register_type): Update.
2369 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2370 definitions for FPU registers. Use REGCACHE's architecture to
2371 determine the appropriate register numbers.
2372 (i386_pseudo_register_read, i386_pseudo_register_write,
2373 i386_register_reggroup_p): Update.
2374 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2375 TDEP->mm0_regnum.
2376 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2377 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2378 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2379 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2380 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2381 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2382 *' to `void *'.
2383 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2384 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2385 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2386 definitions for FPU/SSE registers.
2387 (FXSAVE_MXCSR_ADDR): New define.
2388 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2389 TDEP->mm0_regnum.
2390 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2391 (I387_ST0_REGNUM): Define.
2392
41d35cb0
MK
2393 * regcache.h (get_regcache_arch): New prototype.
2394 * regcache.c (get_regcache_arch): New function.
2395
54e74f72
MK
2396 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2397 whitespace.
2398
1cb97e17
MK
2399 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2400 Initialize using ARRAY_SIZE.
2401
0968aa8c
AC
24022003-09-27 Andrew Cagney <cagney@redhat.com>
2403
2404 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2405 "init_frame_pc_default".
2406 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2408 * vax-tdep.c (vax_gdbarch_init): Update.
2409 * v850-tdep.c (v850_gdbarch_init): Update.
2410 * sh64-tdep.c (sh64_gdbarch_init): Update.
2411 * s390-tdep.c (s390_gdbarch_init): Update.
2412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2413 * mcore-tdep.c (mcore_gdbarch_init): Update.
2414 * h8300-tdep.c (h8300_gdbarch_init): Update.
2415 * cris-tdep.c (cris_gdbarch_init): Update.
2416 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2417
54c84734
MK
24182003-09-26 Mark Kettenis <kettenis@gnu.org>
2419
2420 * regset.h: New file.
2421 * Makefile.in (regset_h): Add.
2422
1b1d3794
AC
24232003-09-25 Andrew Cagney <cagney@redhat.com>
2424
2425 * frame.h (deprecated_frame_saved_regs): Rename
2426 get_frame_saved_regs.
2427 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2428 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2429 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2430 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2431 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2432
e6beb428
AC
24332003-09-25 Andrew Cagney <cagney@redhat.com>
2434
2435 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2436 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2437 and Java.
2438 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2439 arm*-*-* do not use the new frame code.
2440
710122da
DC
24412003-09-25 David Carlton <carlton@kealia.com>
2442
2443 * c-exp.y: Remove 'register' declarations.
2444 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2445
79c2c32d
DC
24462003-09-25 David Carlton <carlton@kealia.com>
2447
2448 * c-exp.y: Include cp-support.h. Add qualified_type.
2449 (yylex): Delete nested type hack; add comments.
2450 * cp-namespace.c (cp_lookup_nested_type): New function.
2451 * cp-support.h: Declare cp_lookup_nested_type.
2452 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2453 instead of value_struct_elt_for_reference.
2454 * valops.c: Include cp-support.h.
2455 (value_aggregate_elt): New function.
2456 (value_namespace_elt): Ditto.
2457 (value_struct_elt_for_reference): Make static.
2458 * value.h: Delete declaration of value_struct_elt_for_reference;
2459 add declaration for value_aggregate_elt.
2460 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2461 (valops.o): Ditto.
2462
898c62f5
DJ
24632003-09-25 Daniel Jacobowitz <drow@mvista.com>
2464
2465 * stack.c: Include "reggroups.h".
2466 (frame_info): Only display registers in all_reggroup.
2467 * Makefile.in (stack.o): Update dependencies.
2468
28cd8767
JG
24692003-09-25 Jerome Guitton <guitton@act-europe.fr>
2470
2471 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2472 "add ip, sp #n" in the prologue.
2473 (arm_scan_prologue): Ditto.
2474
a4ab2b5d
JG
24752003-09-25 Jerome Guitton <guitton@act-europe.fr>
2476
2477 * MAINTAINERS (write after approval): Add myself.
2478
3f244638
AS
24792003-09-25 Andreas Schwab <schwab@suse.de>
2480
2481 * m68k-tdep.c: Include "dwarf2-frame.h".
2482 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2483 * Makefile.in (m68k-tdep.o): Update dependencies.
2484
1c0159e0
CV
24852003-09-25 Corinna Vinschen <vinschen@redhat.com>
2486
2487 * sh-tdep.c (struct frame_extra_info): Remove.
2488 (struct sh_frame_cache): New structure.
2489 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2490 (GET_TARGET_REG): Ditto but target register.
2491 (GET_PUSHED_REG): Remove.
2492 (IS_MOV_ARG_TO_REG): New macro.
2493 (IS_MOV_ARG_TO_IND_R14): New macro.
2494 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2495 (IS_MOVW_PCREL_TO_REG): New macro.
2496 (IS_MOVL_PCREL_TO_REG): New macro.
2497 (IS_SUB_REG_FROM_SP): New macro.
2498 (IS_ARG_MOV): Remove.
2499 (IS_MOV_TO_R14): Remove.
2500 (IS_RESTORE_FP): New macro.
2501 (IS_RTS): New macro.
2502 (IS_LDS): New macro.
2503 (IS_MOV_FP_SP): New macro.
2504 (IS_ADD_REG_TO_FP): New macro.
2505 (IS_ADD_IMM_FP): New macro.
2506 (sh_skip_prologue_hard_way): Remove.
2507 (sh_saved_pc_after_call): Remove.
2508 (sh_frame_chain): Remove.
2509 (sh_find_callers_reg): Remove.
a8f4cde1 2510 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2511 (sh_fp_frame_init_saved_regs): Remove.
2512 (sh_init_extra_frame_info): Remove.
2513 (sh_analyze_prologue): New function.
2514 (sh_skip_prologue): Remove deprecated code. Rely on new function
2515 sh_analyze_prologue when after_prologue fails.
2516 (sh_frame_saved_pc): Remove.
2517 (sh_alloc_frame_cache): New function.
2518 (sh_frame_cache): Ditto.
2519 (sh_frame_prev_register): Ditto.
2520 (sh_frame_this_id): Ditto.
2521 (sh_frame_unwind): New structure defining the heuristic frame
2522 sniffer interface.
2523 (sh_frame_sniffer): New function.
2524 (sh_unwind_sp): Ditto.
2525 (sh_unwind_pc): Ditto.
2526 (sh_unwind_dummy_id): Ditto.
2527 (sh_frame_base_address): Ditto.
2528 (sh_frame_base): New structure defining new frame base code.
2529 (sh_in_function_epilogue_p): New function.
2530 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2531 code and to call all new code instead. Initialize dwarf2 and
2532 heuristic frame sniffer.
2533
5f9769d1
PH
25342003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2535
a8f4cde1
RM
2536 * parser-defs.h (struct exp_descriptor): New definition, containing
2537 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2538 evaluating expressions.
2539 (exp_descriptor_standard): Declare new variable.
2540 (print_subexp): Make global and declare here (from expprint.c).
2541 (dump_subexp): Ditto.
2542 (dump_subexp_body_standard): Declare.
2543 (operator_length_standard): Declare.
2544 (op_name_standard): Declare.
2545 (print_subexp): Declare.
2546 (print_subexp_standard): Declare.
2547
2548 * language.h (struct language_defn): Add la_exp_desc field to hold
2549 pointer to table for language-specific operators.
2550 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2551
2552 * parse.c (operator_length): Move most code to new
5f9769d1 2553 operator_length_standard function. Use language-specific information.
a8f4cde1 2554 (operator_length_standard): New function taking most code from
5f9769d1
PH
2555 operator_length.
2556 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2557
2558 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2559 and OP_EXTENDED_LAST.
a8f4cde1
RM
2560
2561 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2562 Make global; remove static declaration.
2563 Move most code to print_subexp_standard.
a8f4cde1 2564 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2565 print_subexp.
2566 (op_name): Add expression to argument signature.
a8f4cde1 2567 Use langauge-specific op_name.
5f9769d1
PH
2568 Move most code to op_name_standard.
2569 (op_name_standard): New function, containing code formerly in op_name.
2570 (dump_subexp): Use new version of op_name function.
2571 Use language-specific dump_subexp_body, and move most existing code to
2572 dump_subexp_body_standard.
2573 (dump_raw_expression): Use new op_name interface.
2574 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2575 (dump_subexp_body_standard): New function, containing code formerly
2576 in dump_subexp_body.
a8f4cde1 2577
5f9769d1
PH
2578 * language.c (unknown_language): Add default la_exp_desc field and
2579 remove evaluate_exp field.
2580 (auto_language): Ditto.
2581 (local_language): Ditto.
2582 * f-lang.c (f_language_defn): Ditto.
2583 * c-lang.c (c_language_defn): Ditto.
2584 (cplus_language_defn): Ditto.
2585 (asm_language_defn): Ditto.
2586 (minimal_language_defn): Ditto.
2587 * p-lang.c (pascal_language_defn): Ditto.
2588 * m2-lang.c (m2_language_defn): Ditto.
2589 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2590
2591 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2592 Java-specific expression evaluator.
2593 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2594 field.
a8f4cde1 2595 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2596 Scheme-specific expression evaluator.
2597 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2598 field.
2599 * objc-lang.c (print_object_command): Take evaluate_exp from the
2600 la_exp_desc field.
a8f4cde1 2601
5f9769d1 2602 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2603
2604 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2605 la_exp_desc's type.
2606 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2607
24daaebc
PH
26082003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2609
2610 * parser-defs.h (operator_length): Declare.
a8f4cde1 2611
24daaebc
PH
2612 * parse.c (length_of_subexp): Use operator_length to get operator
2613 lengths and arities for operators.
2614 Move most code to new operator_length function.
a8f4cde1 2615 (operator_length): New function absorbing most code from
24daaebc
PH
2616 length_of_subexp.
2617 (prefixify_subexp): Remove large case and use operator_length instead.
2618 (parse_exp_1): Use renamings:
a8f4cde1 2619 dump_prefix_expression => dump_raw_expression and
24daaebc 2620 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2621
24daaebc
PH
2622 * expression.h (dump_prefix_expression): Rename to ...
2623 (dump_raw_expression): New name.
2624 (dump_postfix_expression): Rename to ...
2625 (dump_prefix_expression): New name.
a8f4cde1 2626
24daaebc
PH
2627 * expprint.c (dump_subexp): Make global. Add comment.
2628 Move most existing code to dump_subexp_body.
2629 (dump_subexp_body): New function.
2630 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2631 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2632 work before the expression is prefixified.
2633 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2634 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2635 that's what it does.
a8f4cde1 2636 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2637 prefixified expression.
2638 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2639
8c2957c4
JB
26402003-09-22 Jim Blandy <jimb@redhat.com>
2641
2642 * dwarf2read.c (read_array_type): When building the type for an
2643 array of unspecified length, make sure to choose the upper bound
2644 so that the array's total length comes out to be zero --- that's
2645 how we represent such arrays.
2646
592e3010
MC
26472003-09-22 Michael Chastain <mec@shout.net>
2648
2649 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2650
365c70b1
JJ
26512003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2652
2653 * top.c (quit_force): Fix indirect call to quit_target so
2654 a struct qt_args pointer is passed.
2655
5d6eb653
AC
26562003-09-22 Andrew Cagney <cagney@redhat.com>
2657
2658 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2659 * arch-utils.c (init_frame_pc_noop): Delete function.
2660 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2661 "init_frame_pc".
2662 * mips-tdep.c (mips_gdbarch_init): Ditto.
2663 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2664 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2665 declaration.
2666 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2667 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2668 declaration.
2669 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2670
b222a67f
AG
26712003-09-22 Anthony Green <green@redhat.com>
2672
2673 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2674 declaration.
2675
d5b5ac79
AC
26762003-09-20 Andrew Cagney <cagney@redhat.com>
2677
deafb061
AC
2678 * breakpoint.c: Eliminate ARGSUSED.
2679 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2680 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2681 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2682 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2683 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2684 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2685 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2686 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2687 * wince.c, remote-vx.c: Ditto.
2688
d5b5ac79
AC
2689 * cli/cli-script.c: Remove "register" attributes.
2690 * config/pa/tm-hppa.h: Ditto.
2691 * cli/cli-decode.c: Ditto.
2692 * cli/cli-cmds.c: Ditto.
2693
c6316faa
AC
26942003-09-19 Andrew Cagney <cagney@redhat.com>
2695
2696 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2697 DEPRECATED_NPC_REGNUM.
2698 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2699
f4f99b11
CF
27002003-09-19 Christopher Faylor <cgf@redhat.com>
2701
2702 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2703
1708f284
JB
27042003-09-19 Jim Blandy <jimb@redhat.com>
2705
2706 * macrotab.c (macro_include): Use the correct comparison to find
2707 the appropriate place for this inclusion in the list.
2708
b9fbf434
AC
27092003-09-19 Andrew Cagney <cagney@redhat.com>
2710
2711 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2712 (DEPRECATED_HPUX_TEXT_END): Define.
2713 (deprecated_hpux_text_end): Declare.
2714 (struct target_ops): Declare opaque.
2715 * hppah-nat.c (text_end): Make static.
2716 (deprecated_hpux_text_end): New function.
2717 * exec.c (text_end): Delete global variable.
2718 (NEED_TEXT_START_END): Do not define.
2719 (exec_file_attach): Replace code computing "text_end" code with
2720 call to DEPRECATED_HPUX_TEXT_END.
2721
5b03f266
AC
27222003-09-19 Andrew Cagney <cagney@redhat.com>
2723
2724 * utils.c (align_up, align_down): New functions.
2725 * defs.h (align_up, align_down): Declare.
2726 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2727 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2728 and "align_down".
2729 (round_up, round_down): Delete functions.
2730 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2731 "align_down".
2732 (ROUND_DOWN, ROUND_UP): Delete macros.
2733 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2734 * h8300-tdep.c: Replace "round_up" and "round_down" with
2735 "align_up" and "align_down".
2736 (round_up, round_down): Delete macros.
2737 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2738 "align_down".
2739 (ROUND_UP, ROUND_DOWN): Delete macros.
2740
51db5742
JB
27412003-09-18 J. Brobecker <brobecker@gnat.com>
2742
2743 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2744 hard-coded constant. Use the proper machine name instead.
2745
77949794
AC
27462003-09-17 Andrew Cagney <cagney@redhat.com>
2747
2748 * sparc-tdep.c (legacy_register_name): Delete function.
2749 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2750 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2751 * infcmd.c (gdb_register_name): Delete variable.
2752 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2753 REGISTER_NAME and "tm.h".
2754 * gdbarch.h, gdbarch.c: Regenerate.
2755 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2756 REGISTER_NAMES in comments.
2757 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2758 * m68klinux-nat.c (regmap): Ditto.
2759
b55c33cc
JB
27602003-09-17 Jim Blandy <jimb@redhat.com>
2761
2762 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2763
957e27ac
AC
27642003-09-17 Andrew Cagney <cagney@redhat.com>
2765
2766 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2767 (ppcnbsd_init_abi): Set "use_struct_convention" to
2768 "ppcnbsd_use_struct_convention".
2769
192cb3d4
MK
27702003-09-17 Mark Kettenis <kettenis@gnu.org>
2771
2772 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2773 * gdbarch.h, gdbarch.c: Regenerate.
2774 (stabs_argument_has_addr): New architecture method.
2775 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2776 * arch-utils.c: Include "buildsym.h".
2777 (default_stabs_argument_has_addr): New function.
2778 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2779 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2780
efe59759
AC
27812003-09-17 Andrew Cagney <cagney@redhat.com>
2782
2783 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2784 * gdbarch.h, gdbarch.c: Regenerate.
2785 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2786 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2787 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2788 * sparcnbsd-tdep.c: Update.
a8f4cde1 2789
62700349
AC
27902003-09-17 Andrew Cagney <cagney@redhat.com>
2791
2792 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2793 * gdbarch.h, gdbarch.c: Regenerate.
2794 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2795 * d10v-tdep.c, frame.c: Update.
2796 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2797 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2798 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2799 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2800 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2801 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2802 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2803 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2804 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2805 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2806 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2807 * config/pa/nm-hppah.h: Update.
2808
b9ff3018
AC
28092003-09-16 Andrew Cagney <cagney@redhat.com>
2810
2811 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2812 "use_struct_convention" to "ppc_linux_use_struct_convention".
2813 (ppc_linux_use_struct_convention): New function.
2814 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2815 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2816 "rs6000_use_struct_convention".
2817 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2818 declaration.
2819 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2820 Delete function.
2821
aa1ee363
AC
28222003-09-16 Andrew Cagney <cagney@redhat.com>
2823
2824 * buildsym.c: Remove more occurances of "register".
2825 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2826 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2827 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2828 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2829 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2830 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2831 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2832 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2833
f2ea0907
CV
28342003-09-16 Corinna Vinschen <vinschen@redhat.com>
2835
2836 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2837 numbers to enumeration values.
2838 * sh-tdep.c: Accomodate above change.
2839 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2840 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2841 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2842 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2843 (IS_FPUSH): Rename from IS_FMOV.
2844 (sh_extract_struct_value_address): Remove useless comment.
2845 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2846 instead of own local values.
2847 (sh_dump_tdep): Remove.
2848 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2849 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2850
1c704f11
AC
28512003-09-15 Andrew Cagney <cagney@redhat.com>
2852
2853 * doublest.c (convert_floatformat_to_doublest): No longer need to
2854 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2855
ac79b88b
DJ
28562003-09-15 Daniel Jacobowitz <drow@mvista.com>
2857
2858 * values.c (unpack_double): Call floatformat_is_valid.
2859
1c671366
MK
28602003-09-15 Mark Kettenis <kettenis@gnu.org>
2861
de5227fb
MK
2862 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2863 ps_strings into a long.
2864
1c671366
MK
2865 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2866 _initialize_am64fbsd_nat.
2867
a604369a
KB
28682003-09-15 Kevin Buettner <kevinb@redhat.com>
2869
2870 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2871 associated with DW_AT_ranges attribute is out of bounds.
2872
b3cacbee
DL
28732003-09-15 David Lecomber <dsl@sources.redhat.com>
2874
2875 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2876
d0f37bb2
MC
28772003-09-14 Michael Chastain <mec@shout.net>
2878
2879 * config/m68k/nm-apollo68v.h: Delete.
2880 * config/m68k/xm-apollo68v.h: Delete.
2881
69517000
AC
28822003-09-14 Andrew Cagney <cagney@redhat.com>
2883
2884 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2885 * dcache.c: Update copyrights and descriptions.
2886 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2887
ef8b349d
AC
28882003-09-14 Andrew Cagney <cagney@redhat.com>
2889
2890 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2891 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2892
52f0bd74
AC
28932003-09-14 Andrew Cagney <cagney@redhat.com>
2894
2895 * alpha-nat.c: Remove some occurances of "register".
2896 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2897 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2898 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2899 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2900 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2901 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2902 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2903 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2904 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2905 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2906 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2907 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2908 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2909 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2910 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2911 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2912 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2913 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2914 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2915 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2916 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2917 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2918
4a4b3fed
AC
29192003-09-13 Andrew Cagney <cagney@redhat.com>
2920
2921 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2922 * ppc-tdep.h (struct regcache): Declare opaque.
2923 * objfiles.h (struct objfile_data): Declare opaque.
2924 * cp-support.h (struct objfile): Declare opaque.
2925 * linux-nat.h (target_waitstatus): Declare opaque.
2926
2110b94f
MK
29272003-09-14 Mark Kettenis <kettenis@gnu.org>
2928
1c671366
MK
2929 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2930 (stabs_argument_has_addr): New architecture method.
2931 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2932 * arch-utils.c: Include "buildsym.h".
2933 (default_stabs_argument_has_addr): New function.
2934 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2935 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2936
2110b94f
MK
2937 * cris-tdep.c (cris_gdbarch_init): Set
2938 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2939 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2940 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2941 * mips-tdep.c (mips_gdbarch_init): Likewise.
2942 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2943 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2944
48436ce6
AC
29452003-09-13 Andrew Cagney <cagney@redhat.com>
2946
2947 * values.c (using_struct_return): Delete "function" and "funcaddr"
2948 parameters.
2949 * value.h (using_struct_return): Update declaration.
2950 * infcmd.c (finish_command_continuation): Update.
2951 (finish_command): Update.
2952 * infcall.c (call_function_by_hand): Update.
2953 * eval.c (evaluate_subexp_standard): Update.
2954
403d9909
CF
29552003-09-13 Christopher Faylor <cgf@redhat.com>
2956
2957 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2958 SSE registers since gdb will not operate correctly without this.
2959 Restore include file ordering munged in previous change.
2960 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2961
ebf7d56b
MK
29622003-09-13 Mark Kettenis <kettenis@gnu.org>
2963
8e823e25
MK
2964 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2965 REG_STRUCT_HAS_ADDR.
2966 * gdbarch.c, gdbarch.h: Updated.
2967 * infcall.c (call_function_by_hand): Update.
2968 * stabsread.c (define_symbol): Updated.
a8f4cde1 2969
ebf7d56b
MK
2970 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2971
d3f13f72
CF
29722003-09-12 Christopher Faylor <cgf@redhat.com>
2973
2974 * win32-nat.c: Reorganize so that defines used by target headers are
2975 actually defined by the system headers.
2976 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2977 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2978
14f75137
JB
29792003-09-12 Jim Blandy <jimb@redhat.com>
2980
d646061f
JB
2981 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2982 the file has no .data, .bss, or .rodata sections. Instead wait
2983 until we see a variable alleged to live in one of those sections.
2984
2a13f9bc
JB
2985 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2986 .bss section, presume that any variables we find live in the
2987 .rodata section.
2988
4f49b26b
JB
2989 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2990 offsets for global and static variables.
2991
14f75137
JB
2992 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2993 symbol types are, by definition, in the .data section, so it is
2994 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2995 If there is no .data section, there should be no N_DATA or N_DATA
2996 | N_EXT symbols.
2997
212c460c
MK
29982003-09-12 Mark Kettenis <kettenis@gnu.org>
2999
3000 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3001 (amd64fbsd_sigcontext_addr): Rewrite.
3002 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3003 with correct values.
3004 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3005 (amd64fbsd_init_abi): Fix typo.
3006
68856ea3
AC
30072003-09-12 Andrew Cagney <cagney@redhat.com>
3008
3009 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3010 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3011
627b3ba2
AC
30122003-09-12 Andrew Cagney <cagney@redhat.com>
3013
3014 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3015 "entry_file_highpc". Update comments.
3016 * defs.h (deprecated_inside_entry_file): Rename
3017 "inside_entry_file".
3018 * blockframe.c (deprecated_inside_entry_file): Rename
3019 "inside_entry_file".
3020 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3021 * vax-tdep.c (vax_frame_chain): Update.
3022 * sh64-tdep.c (sh64_frame_chain): Update.
3023 * sh-tdep.c (sh_frame_chain): Update.
3024 * rs6000-tdep.c (rs6000_frame_chain): Update.
3025 * ns32k-tdep.c (ns32k_frame_chain): Update.
3026 * mips-tdep.c (mips_frame_chain): Update.
3027 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3028 * m32r-tdep.c (m32r_frame_this_id): Update.
3029 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3030 * frv-tdep.c (frv_frame_this_id): Update.
3031 * d10v-tdep.c (d10v_frame_this_id): Update.
3032 * cris-tdep.c (cris_frame_chain): Update.
3033 * blockframe.c (legacy_frame_chain_valid): Update.
3034 * avr-tdep.c (avr_frame_this_id): Update.
3035 * arm-tdep.c (arm_prologue_this_id): Update.
3036 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3037 * objfiles.c (objfile_relocate): Update.
3038 * mipsread.c (mipscoff_symfile_read): Update.
3039 (mipscoff_symfile_read): Update.
3040 * mdebugread.c (parse_partial_symbols): Update.
3041 * dwarfread.c (read_file_scope): Update.
3042 * dwarf2read.c (read_file_scope): Update.
3043 * dbxread.c (read_dbx_symtab): Update.
3044 (read_dbx_symtab): Update.
3045 * coffread.c (complete_symtab): Update.
3046
b0abbc58
JJ
30472003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3048
3049 * top.c (quit_target): New static helper function.
3050 (quit_force): Moved code to quit_target(). Call quit_target()
3051 via catch_errors() to catch errors during quit.
3052
a1632d59
DC
30532003-09-11 David Carlton <carlton@kealia.com>
3054
3055 * buildsym.c (finish_block): Use allocate_block to allocate the
3056 block.
3057 * mdebugread.c (new_block): Add FIXME.
3058
5c4e30ca
DC
30592003-09-11 David Carlton <carlton@kealia.com>
3060
3061 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3062 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3063 (recursive_dump_type): Ditto.
3064 * printcmd.c (print_formatted): Ditto.
3065 * typeprint.c (print_type_scalar): Ditto.
3066 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3067 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3068 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3069 maint_cplus_cmd_list.
3070 * cp-support.c: Make maint_cplus_cmd_list extern.
3071 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3072 command.h.
3073 (lookup_symbol_file): Look in possible namespace blocks when
3074 appropriate.
3075 (initialize_namespace_symtab): New.
3076 (get_possible_namespace_block, free_namespace_block)
3077 (check_possible_namespace_symbols)
3078 (check_possible_namespace_symbols_loop)
3079 (check_one_possible_namespace_symbol)
3080 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3081 (_initialize_cp_namespace): Ditto.
3082 * block.h: Declare allocate_block.
3083 * block.c (allocate_block): New.
3084 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3085 allocate_block.
3086 * symfile.h: Update declaration of add_psymbol_to_list.
3087 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3088 question.
3089 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3090 scan_partial_symbols_call.
3091 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3092 helper functions.
3093 (add_partial_symbol): If necessary, scan mangled names for names
3094 of namespaces.
3095 (add_partial_namespace): Add NAMESPACE argument; generate partial
3096 symbols associated to namespaces.
3097 (add_partial_enumeration): Add NAMESPACE argument.
3098 (new_symbol): Allow namespace syms.
3099 (read_namespace): Generate namespace syms.
3100 * objfiles.h: Add opaque declaration of struct symtab.
3101 (struct objfile): Add cp_namespace_symtab member.
3102 * objfiles.c (allocate_objfile): Set
3103 objfile->cp_namespace_symtab.
3104 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3105 dictionary_h, command_h.
3106
33a7c2fc
AC
31072003-09-11 Andrew Cagney <cagney@redhat.com>
3108
3109 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3110 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3111 near the function's end.
3112 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3113 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3114 regcache_raw_write_signed to set SP_REGNUM.
3115
63cd24fe
EZ
31162003-09-11 Elena Zannoni <ezannoni@redhat.com>
3117
3118 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3119 orig_addrs is set up properly.
3120
f27dd7fd
AC
31212003-09-11 Andrew Cagney <cagney@redhat.com>
3122
3123 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3124 * gdbarch.h, gdbarch.c: Re-generate.
3125 * infcall.c (call_function_by_hand): Update.
3126 * hppa-tdep.c (hppa_push_arguments): Update.
3127 * ada-lang.c (place_on_stack): Update.
3128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3129 * sparc-tdep.c (sparc_gdbarch_init): Update.
3130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3131 * hppa-tdep.c (hppa_gdbarch_init): Update.
3132 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3133 stack_align.
3134
f630a401
DJ
31352003-09-11 Daniel Jacobowitz <drow@mvista.com>
3136
3137 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3138 register do need a frame.
3139
0ddabb4c
AC
31402003-09-11 Andrew Cagney <cagney@redhat.com>
3141
3142 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3143 buildable since GDB 5.0.
3144 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3145 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3146 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3147 * irix4-nat.c: Delete file.
3148 * config/mips/irix4.mh: Delete file.
3149 * config/mips/irix3.mh: Delete file.
3150 * config/mips/irix3.mt: Delete file.
3151 * config/mips/tm-irix3.h: Delete file.
3152 * config/mips/nm-irix3.h: Delete file.
3153 * config/mips/xm-irix3.h: Delete file.
3154 * config/mips/nm-irix4.h: Delete file.
3155 * config/mips/xm-irix4.h: Delete file.
3156 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3157
fde2cceb
JB
31582003-09-10 J. Brobecker <brobecker@gnat.com>
3159
3160 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3161 * Makefile.in (hppa-tdep.o): Update dependencies.
3162
66f667f5
JW
31632003-09-10 James E Wilson <wilson@specifixinc.com>
3164
ef5fd69f
JW
3165 * MAINTAINERS: Change my e-mail address. Move to paper trail
3166 section.
66f667f5 3167
53e8aaea
KB
31682003-09-10 Kevin Buettner <kevinb@redhat.com>
3169
3170 * MAINTAINERS (frv): New ISA entry.
3171
dcc6aaff
KB
31722003-09-10 Kevin Buettner <kevinb@redhat.com>
3173
3174 * frv-tdep.c (dis-asm.h): Include.
3175 * Makefile.in (frv-tdep.o): Update dependencies.
3176
932644f0
JJ
31772003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3178
3179 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3180 Fix typo for high range of floating registers.
3181
91c24f0a
DC
31822003-09-09 David Carlton <carlton@kealia.com>
3183
3184 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3185 highpc initialization here out of scan_partial_symbols.
3186 (scan_partial_symbols): Restructure into a recursive version,
3187 calling add_partial_namespace and add_partial_enumeration when
3188 appropriate.
3189 (add_partial_namespace): New.
3190 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3191
c9263853
AC
31922003-09-09 Andrew Cagney <cagney@redhat.com>
3193
e56a0ecc
AC
3194 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3195 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3196 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3197 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3198
794a477a
AC
3199 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3200 (rs6000_push_dummy_call): Set the "TOC" register.
3201
c9263853
AC
3202 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3203 methods "max_register_raw_size", "max_register_virtual_size" or
3204 "register_virtual_size".
3205
afa7d0b2
ILT
32062003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3207
3208 * MAINTAINERS: Update my e-mail address.
3209
7a41266b
AC
32102003-09-09 Andrew Cagney <cagney@redhat.com>
3211
3212 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3213 (rs6000_push_dummy_call): Store the struct return address.
3214 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3215
77b2b6d4
AC
32162003-09-09 Andrew Cagney <cagney@redhat.com>
3217
3218 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3219 "ppc_sysv_abi_push_arguments".
3220 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3221 "ppc_sysv_abi_push_arguments".
3222 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3223 instead of "push_arguments".
3224 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3225
e8a7b686
AC
32262003-09-09 Andrew Cagney <cagney@redhat.com>
3227
3228 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3229 instead of CALL_DUMMY_ADDRESS.
3230
f86f5ca3
PH
32312003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3232
3233 * p-lang.c: Eliminate "register".
3234 * c-lang.c: Ditto.
3235 * expprint.c: Ditto.
3236 * f-lang.c: Ditto.
3237 * jv-lang.c: Ditto.
3238 * language.c: Ditto.
3239 * m2-lang.c: Ditto.
3240 * parse.c: Ditto.
3241 * scm-lang.c: Ditto.
3242 * objc-lang.c: Ditto.
3243
83ee270e
NC
32442003-09-09 Nick Clifton <nickc@redhat.com>
3245
3246 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3247
a89aa300
AC
32482003-09-04 Andrew Cagney <cagney@redhat.com>
3249
3250 * avr-tdep.c: Include "dis-asm.h".
3251 * cris-tdep.c: Include "dis-asm.h".
3252 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3253 instead of corresponding typedef.
3254 * h8300-tdep.c: Include "dis-asm.h".
3255 * ia64-tdep.c: Include "dis-asm.h".
3256 * i386-tdep.c: Include "dis-asm.h".
3257 (i386_print_insn): Use "struct disassemble_info" instead of
3258 corresponding typedef.
3259 * m68k-tdep.c: Include "dis-asm.h".
3260 * mcore-tdep.c: Include "dis-asm.h".
3261 * mips-tdep.c: Include "dis-asm.h".
3262 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3263 instead of corresponding typedef.
3264 * ns32k-tdep.c: Include "dis-asm.h".
3265 * s390-tdep.c: Include "dis-asm.h".
3266 * sparc-tdep.c: Include "dis-asm.h".
3267 * vax-tdep.c: Include "dis-asm.h".
3268 * v850-tdep.c: Include "dis-asm.h".
3269 * mn10300-tdep.c: Include "dis-asm.h".
3270 * rs6000-tdep.c: Include "dis-asm.h".
3271 * xstormy16-tdep.c: Include "dis-asm.h".
3272 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3273 print_insn_xstormy16.
3274 * Makefile.in (v850-tdep.o): Update dependencies.
3275 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3276 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3277 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3278 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3279 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3280 (gdbarch_h): Remove $(dis_asm_h).
3281 * disasm.c: Include "dis-asm.h".
3282 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3283 corresponding typedef.
3284 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3285 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3286 * gdbarch.sh: Do not include "dis-asm.h".
3287 (struct disassemble_info): Declare opaque.
3288 (TARGET_PRINT_INSN): Update declaration.
3289 * gdbarch.h, gdbarch.c: Re-generate.
3290
88a82a65
AC
32912003-09-08 Andrew Cagney <cagney@redhat.com>
3292
3293 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3294 CALL_DUMMY_ADDRESS, change to a predicate.
3295 * gdbarch.h, gdbarch.c: Re-generate.
3296 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3297 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3298 * infcall.c (call_function_by_hand): Ditto.
3299 * sparc-tdep.c (sparc_push_return_address): Ditto.
3300 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3301 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3302 CALL_DUMMY_ADDRESS with entry_point_address.
3303 * v850-tdep.c (v850_push_return_address): Ditto.
3304 * s390-tdep.c (s390_push_return_address): Ditto.
3305 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3306 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3307 * mcore-tdep.c (mcore_push_return_address): Ditto.
3308 * cris-tdep.c (cris_push_return_address): Ditto.
3309 * arm-tdep.c (arm_push_return_address): Ditto.
3310
3e2c4033
AC
33112003-09-08 Andrew Cagney <cagney@redhat.com>
3312
3313 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3314 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3315 and REG_UNMODIFIED to REG_SAME_VALUE.
3316 (execute_cfa_program): Update.
3317 (dwarf2_frame_cache): Update. Initialize table to
3318 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3319 location.
3320 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3321
39efb398
AC
33222003-09-08 Andrew Cagney <cagney@redhat.com>
3323
3324 * gnu-nat.c: Remove "inline" function attribute.
3325 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3326
f5cb5aca
KB
33272003-09-08 Kevin Buettner <kevinb@redhat.com>
3328
3329 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3330 target.
3331
1cb761c7
KB
33322003-09-08 Kevin Buettner <kevinb@redhat.com>
3333
3334 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3335 (frame_extra_info): Rename this struct to frv_unwind_cache.
3336 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3337 Add fields ``prev_sp'' and ``base''.
3338 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3339 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3340 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3341 Delete.
3342 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3343 Revise all callers. Fill in the unwind cache argument and make
3344 other adjustments to account for new frame mechanisms.
3345 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3346 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3347 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3348 (frv_frame_unwind, frv_frame_base): New structs.
3349 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3350 additional arguments expected by this method and adjust function
3351 body accordingly.
3352 (frv_gdbarch_init): Remove calls to the following functions:
3353 set_gdbarch_deprecated_init_frame_pc(),
3354 set_gdbarch_deprecated_saved_pc_after_call(),
3355 set_gdbarch_deprecated_frame_chain(),
3356 set_gdbarch_deprecated_frame_saved_pc(),
3357 set_gdbarch_deprecated_frame_init_saved_regs(),
3358 set_gdbarch_deprecated_push_arguments(),
3359 set_gdbarch_deprecated_push_return_address(),
3360 set_gdbarch_deprecated_pop_frame(),
3361 set_gdbarch_deprecated_call_dummy_words(),
3362 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3363 set_gdbarch_deprecated_init_extra_frame_info(),
3364 set_gdbarch_deprecated_dummy_write_sp(), and
3365 set_gdbarch_deprecated_pc_in_call_dummy().
3366 Add calls to the following functions:
3367 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3368 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3369 frame_base_set_default().
3370 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3371
68f6cf99
MK
33722003-09-09 Mark Kettenis <kettenis@gnu.org>
3373
3374 * dwarf2-frame.c (read_encoded_value): Add support for
3375 DW_EH_PE_aligned encoding.
3376
73b65bb0
DJ
33772003-09-08 Daniel Jacobowitz <drow@mvista.com>
3378
3379 * infrun.c (normal_stop): Don't print a message if the inferior
3380 has exited.
3381
7c8a5605
JB
33822003-09-08 Jim Blandy <jimb@redhat.com>
3383
3384 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3385 * dbxread.c: #include "gdb_assert.h".
3386 (read_dbx_symtab): If the objfile has no .data section, use the
3387 section index for the .bss section instead.
3388
7dd88986
DJ
33892003-09-08 Daniel Jacobowitz <drow@mvista.com>
3390
3391 * frame.c (deprecated_safe_get_selected_frame): New function.
3392 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3393 * findvar.c (read_var_value): Call it.
3394
55ff77ac
CV
33952003-09-08 Corinna Vinschen <vinschen@redhat.com>
3396
3397 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3398 (sh64-tdep.o): Add dependencies.
3399 * configure.tgt: Add FIXME to sh-*-linux*.
3400 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3401 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3402 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3403 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3404 * sh64-tdep.c: New file, containing all sh64 related code from
3405 sh-tdep.c.
3406 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3407 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3408 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3409 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3410 * config/sh/wince.mt (TDEPFILES): Ditto.
3411
bfb39158
DJ
34122003-09-07 Daniel Jacobowitz <drow@mvista.com>
3413
3414 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3415 (stop_wait_callback): Handle !lp->signalled also.
3416 (lin_lwp_has_pending, flush_callback): New functions.
3417 (lin_lwp_wait): Call flush_callback.
3418 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3419 (linux_proc_pending_signals): New function.
3420 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3421
9407de8e
DJ
34222003-09-07 Daniel Jacobowitz <drow@mvista.com>
3423
3424 From Nick Kelsey <nickk@ubicom.com>:
3425 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3426 when the stop PC is at the beginning of a function also.
3427
2ef47cd0
DJ
34282003-09-06 Daniel Jacobowitz <drow@mvista.com>
3429
3430 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3431 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3432
6f4492c8
MK
34332003-09-06 Mark Kettenis <kettenis@gnu.org>
3434
3435 * sol-thread.c: Include "gdb_string.h".
3436
d3420b2f
MK
34372003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3438
3439 * gcore.c: Reorder include files in alphabetical order. Include
3440 "gdb_assert.h". Various coding style fixes.
3441 (derive_stack_segment, derive_heap_segment): Replace check for
3442 non-null BOTTOM and TOP with gdb_assert.
3443 (derive_heap_segment): Replace check for successful creation of
3444 ZERO with gdb_assert.
3445 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3446
5220ea4c
AC
34472003-09-04 Andrew Cagney <cagney@redhat.com>
3448
3449 * thread-db.c (verbose_dlsym): New function.
3450 (thread_db_load): Use verbose_dlsym
3451 (thread_db_new_objfile): Print that libthread_db was loaded, and
3452 that thread debugging was enabled.
3453
6e8c2c06
AC
34542003-09-04 Andrew Cagney <cagney@redhat.com>
3455
3456 * configure.tgt: Add "mips64*-*-*" target. Delete
3457 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3458 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3459 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3460 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3461 mips*-sony-*, and mips64*-*-elf* targets.
3462 * config/mips/embedl.mt: Delete file.
3463 * config/mips/embedl64.mt: Delete file.
3464 * config/mips/mips.mt: Delete file.
3465 * config/mips/mips64.mt: Delete file.
3466 * config/mips/tm-embed.h: Delete file.
3467 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3468 * config/mips/embed64.mt: Delete out-of-date comment.
3469
3a3bc038
AC
34702003-09-04 Andrew Cagney <cagney@redhat.com>
3471
3472 * hppa-tdep.c (hppa_gdbarch_init): Set
3473 "have_nonsteppable_watchpoint".
3474 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3475 * mips-tdep.c (mips_dump_tdep): Do not print
3476 HAVE_NONSTEPPABLE_WATCHPOINT.
3477 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3478 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3479 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3480 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3481
a957e642
CV
34822003-09-04 Corinna Vinschen <vinschen@redhat.com>
3483
3484 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3485 unused code. Add comment.
3486
a6fbcf2f
CV
34872003-09-04 Corinna Vinschen <vinschen@redhat.com>
3488
3489 * breakpoint.c (watchpoint_check): Check for pc being in an
3490 epilogue if watchpoint frame couldn't be found.
3491
c14a44d5
AC
34922003-09-04 Andrew Cagney <cagney@redhat.com>
3493
3494 * Makefile.in: Re-generate all dependencies.
3495
f6c40618
AC
34962003-09-03 Andrew Cagney <cagney@redhat.com>
3497
3498 * arch-utils.h (legacy_print_insn): Delete declaration.
3499 * arch-utils.c (legacy_print_insn): Delete function.
3500 * disasm.c (deprecated_tm_print_insn_info): Delete.
3501 (_initialize_disasm): Delete function, contained code initializing
3502 deprecated_tm_print_insn_info.
3503 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3504 (deprecated_tm_print_insn_info): Delete.
3505 (TARGET_PRINT_INSN): Do not provide a default.
3506 * gdbarch.h, gdbarch.c: Re-generate.
3507
242e8be5
AC
35082003-09-03 Andrew Cagney <cagney@redhat.com>
3509
3510 * disasm.c (fprintf_disasm): New function.
3511 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3512 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3513 reverts 2003-08-14 change.
3514 (_initialize_disasm): Call "init_disassemble_info", instead of
3515 INIT_DISASSEMBLE_INFO_NO_ARCH.
3516
3ffc3dda
MS
35172003-09-03 Michael Snyder <msnyder@redhat.com>
3518
3519 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3520
52d16ba8
AC
35212003-09-03 Andrew Cagney <cagney@redhat.com>
3522
3523 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3524 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3525 * symfile.c (syms_from_objfile): Update.
3526 (reread_symbols): `Update
3527 * exec.c (exec_file_attach): Update.
3528 (exec_file_attach): Update.
3529 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3530 2003-08-29 change.
3531 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3532
eb5492fa
DJ
35332003-09-03 Daniel Jacobowitz <drow@mvista.com>
3534
3535 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3536 trad-frame.h.
3537 (arm_get_cache): Delete macro.
3538 (struct arm_prologue_cache): Update comments. Make saved_regs into
3539 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3540 to prev_sp.
3541 (thumb_scan_prologue): Update for cache changes. Don't call
3542 DEPRECATED_PC_IN_CALL_DUMMY.
3543 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3544 argument and use it in desperation search for our prologue. Do not
3545 search past the specified PC.
3546 (arm_make_prologue_cache): Simplify.
3547
3548 (arm_prologue_this_id, arm_prologue_prev_register)
3549 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3550 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3551 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3552 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3553 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3554
3555 (arm_frame_chain_valid, arm_find_callers_reg)
3556 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3557 (arm_pop_frame): Delete obsolete methods.
3558 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3559
3560 (arm_gdbarch_init): Update for new frame methods. Register prologue
3561 and sigtramp unwinders. Set the default frame base method.
3562
3563 * Makefile.in (arm-tdep.o): Update dependencies.
3564 * varobj.c (find_frame_addr_in_frame_chain): Call
3565 get_frame_base_address.
3566 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3567
24de872b
DJ
35682003-09-03 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3571 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3572 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3573 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3574 Take NEXT_FRAME and CACHE arguments. Call
3575 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3576 Set unwound_pc in CACHE instead of modifying the frame argument.
3577 Don't bother checking the frame type when looking for sigtramp
3578 frames.
3579 (arm_make_prologue_cache, arm_frame_chain)
3580 (arm_init_extra_frame_info): New functions.
3581
9b8d791a
DJ
35822003-09-03 Daniel Jacobowitz <drow@mvista.com>
3583
3584 * arm-tdep.c (arm_get_cache): Define.
3585 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3586 unwound_sp, unwound_pc, and saved_regs.
3587 (thumb_scan_prologue): Take a cache instead of the frame.
3588 (arm_scan_prologue): Likewise.
3589 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3590 instead of a temporary frame.
3591 (arm_init_extra_frame_info): Allocate and use a cache.
3592 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3593
7ee3275f
AC
35942003-09-03 Andrew Cagney <cagney@redhat.com>
3595
3596 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3597 * config/mips/wince.mt (TM_CLIBS): Ditto.
3598 * config/sh/wince.mt (TM_CLIBS): Ditto.
3599 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3600 * config/sparc/sp64.mt (CC): Delete.
3601
57b29be7
AC
36022003-09-03 Andrew Cagney <cagney@redhat.com>
3603
3604 * defs.h: Do not include "arch-utils.h".
3605 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3606 GDB_MULTI_ARCH_PURE.
3607 * configure.in (GDB_MULTI_ARCH): Do not define.
3608 * configure, config.in: Regenerate.
3609 * configure.tgt: Do not set variable "gdb_multi_arch".
3610 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3611 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3612 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3613 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3614 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3615 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3616 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3617 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3618 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3619 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3620 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3621 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3622 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3623 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3624 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3625 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3626 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3627 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3628
12e035e2
MC
36292003-08-30 Michael Chastain <mec@shout.net>
3630
3631 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3632 * config/m68k/nm-hp300hpux.h: Delete.
3633 * config/m68k/tm-hp300hpux.h: Delete.
3634 * config/m68k/xm-hp300hpux.h: Delete.
3635 * config/m68k/xm-hp300bsd.h: Delete.
3636 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3637 tm-hp300hpux.h, xm-hp300hpux.h.
3638 * somsolib.c: Remove comment about hp300 shared libraries.
3639
bda34dc2
MK
36402003-08-31 Mark Kettenis <kettenis@gnu.org>
3641
5bca7895
MK
3642 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3643 Only define PTRACE_GET_THREAD_AREA is not already defined.
3644 Various style fixes in code and comments and some additional
3645 spelling fixes in comments. Move after functions dealing with
3646 debug registers.
3647 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3648 Fix coding-style.
3649
bda34dc2
MK
3650 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3651 frame_unwind_register_unsigned instead of
3652 frame_unwind_unsigned_register.
3653
c890192f
MK
36542003-08-30 Mark Kettenis <kettenis@gnu.org>
3655
3656 * configure.in: Search for gethostbyname in libnsl.
3657 * configure: Regenerated.
3658
60fac5b8
MK
36592003-08-29 Mark Kettenis <kettenis@gnu.org>
3660
e294916c
MK
3661 * configure.in: Remove redundant AC_MSG_RESULT in check for
3662 uintptr_t in stdint.h.
3663 * configure: Regenerated.
3664
c40d267a
MK
3665 * amd64-nat.h (struct regcache): Add opaque declaration.
3666
60fac5b8
MK
3667 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3668 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3669 Change "register array" to "register cache" in comments.
3670 (x86_64_linux_gregset64_reg_offset): New variable.
3671 (GETREGS_SUPPLIES): Remove macro.
3672 (supply_gregset): Call amd64_supply_native_gregset instead of
3673 x86_64_linux_supply_gregset.
3674 (fill_gregset): Rename `regno' to `regnum'. Call
3675 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3676 (store_regs): Rename `regno' to `regnum'.
3677 (store_fpregs): Rename `regno' to `regnum'.
3678 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3679 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3680 Reorganize function a bit.
3681 (store_inferior_registers): Rename `regno' to `regnum'. Use
3682 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3683 Reorganize function a bit.
3684 (_initialize_x86_64_linux_nat): New function.
3685 * config/i386/x86-64linux.mh.
3686
546143b6
AC
36872003-08-29 Andrew Cagney <cagney@redhat.com>
3688
3689 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3690 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3691 (target_remove_watchpoint): Delete macro.
3692 (target_insert_watchpoint): Delete macro.
3693 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3694 (remote_mips_stopped_by_watchpoint): Delete declaration.
3695 (remote_mips_remove_watchpoint): Delete declaration.
3696 (remote_mips_set_watchpoint): Delete declaration.
3697 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3698 * remote-mips.c (_initialize_remote_mips): Set
3699 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3700 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3701 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3702 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3703 (mips_stopped_by_watchpoint): Rename
3704 remote_mips_stopped_by_watchpoint.
3705 (mips_can_hardware_watchpoint): Rename
3706 remote_mips_can_use_hardware_watchpoint, update function
3707 signature.
3708
7bace51b
MK
37092003-08-29 Mark Kettenis <kettenis@gnu.org>
3710
b0f5c6f2
MK
3711 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3712 USER_DS. We haven't given them a register number yet.
3713
2a6d284d
MK
3714 * amd64-nat.h: New file.
3715 * amd64-nat.c: New file.
3716 * amd64fbsd-nat.c: Include "amd64-nat.h".
3717 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3718 (amd64fbsd32_r_reg_offset): New variable.
3719 (supply_gregset): Simply call amd64_supply_native_gregset.
3720 (fill_gregset): Rename `regno' to `regnum'. Simply call
3721 amd64_collect_native_gregset.
3722 (fill_fpregset): Rename `regno' to `regnum'.
3723 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3724 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3725 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3726 `fpregset_t'. Call amd64_supply_native_gregset instead of
3727 supply_gregset. Call x86_64_supply_fxsave instead of
3728 supply_fpregset.
3729 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3730 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3731 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3732 `fpregset_t'. Call amd64_collect_native_gregset instead of
3733 fill_gregset. Call x86_64_collect_fxsave instead of
3734 fill_fpregset.
3735 (_initialize_am64fbsd_nat): Initialize
3736 amd64_native_gregset32_reg_offset and
3737 amd64_native_gregset64_reg_offset.
3738 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3739
a16d75cc
MK
3740 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3741 null pointer. Fix typo in comment.
3742
7bace51b
MK
3743 * regcache.c (supply_register): Reimplement to call
3744 regcache_raw_supply.
3745 (regcache_collect): Reimplement by calling regcache_raw_collect.
3746
9a661b68
MK
37472003-08-28 Mark Kettenis <kettenis@gnu.org>
3748
3749 * regcache.c (register_buffer): Consitify first argument.
3750 (regcache_raw_supply, regcache_raw_collect): New
3751 functions.
3752
e94cc8fa
DJ
37532003-08-28 Daniel Jacobowitz <drow@mvista.com>
3754
3755 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3756 by Nathan J. Williams.
3757
c64bd0ce
DJ
37582003-08-28 Daniel Jacobowitz <drow@mvista.com>
3759
3760 * lin-lwp.c (wait_lwp): New function, copied from
3761 stop_wait_callback. Clean up.
3762 (stop_wait_callback): Use wait_lwp.
3763
e5ab0dce
AC
37642003-08-28 Andrew Cagney <cagney@redhat.com>
3765
3766 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3767 flavour and disassembler options.
3768 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3769 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3770 deprecated_tm_print_insn_info.
a8f4cde1 3771
a788de9b
AC
37722003-08-27 Andrew Cagney <cagney@redhat.com>
3773
3774 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3775 Use target_read_memory.
3776 (s390_get_frame_info): Update. Do not reference
3777 deprecated_tm_print_insn_info.
3778 (s390_check_function_end, s390_is_sigreturn): Ditto.
3779
36482093
AC
37802003-08-27 Andrew Cagney <cagney@redhat.com>
3781
3782 * Makefile.in (cris-tdep.o): Update dependencies.
3783 * cris-tdep.c: Include "gdb_assert.h".
3784 (cris_gdbarch_init): Set print_insn.
3785 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3786 (cris_delayed_get_disassembler): Simplify, directly call the
3787 disassembler returned by cris_get_disassembler.
3788 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3789 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3790 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3791 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3792 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3793 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3794 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3795 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3796 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3797 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3798 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3799 (gdb_print_insn_sparc): Delete function.
3800 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3801 deprecated_tm_print_insn_info.
3802 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3803 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3804 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3806 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3807 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3808 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3809 (s390_gdbarch_init): Set print_insn.
3810
0285512f
AC
38112003-08-27 Andrew Cagney <cagney@redhat.com>
3812
3813 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3814 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3815 * infcall.c (call_function_by_hand): Convert the entry point
3816 address into a code address.
3817
cdcd5552
AC
38182003-08-27 Andrew Cagney <cagney@redhat.com>
3819
3820 * dsrec.c: Include "gdb_string.h".
3821 * Makefile.in (dsrec.o): Update dependencies.
3822
e85cddad
MC
38232003-08-27 Michael Chastain <mec@shout.net>
3824
3825 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3826
8bbfbb23
AC
38272003-08-27 Andrew Cagney <cagney@redhat.com>
3828
3829 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3830 (alpha_osf1_init_abi): Do not set call_dummy_address.
3831
ba058b66
DC
38322003-08-27 David Carlton <carlton@kealia.com>
3833
3834 From Randolph Chung <tausq@debian.org>:
3835 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3836 compiles with -Wformat-nonliteral -Werror.
3837
87f84c9d
JB
38382003-08-26 Jim Blandy <jimb@redhat.com>
3839
3840 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3841 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3842 bfd_lookup_symbol, since we only want symbols in code sections.
3843 (look_for_base): Pass zero as the SECT_FLAGS argument to
3844 bfd_lookup_symbol, since we're not concerned about which section
3845 the symbol is in.
3846
102d615a
JJ
38472003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3848
3849 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3850 we are frameless or the return address register is already known.
102d615a 3851
cc7ad3ea
AC
38522003-08-26 Andrew Cagney <cagney@redhat.com>
3853
3854 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3855 in size. Add comments.
3856
af8b88dd
JJ
38572003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3858
3859 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3860 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3861
e0a4f5a1
JM
38622003-08-26 Jason Merrill <jason@redhat.com>
3863
3864 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3865 case out of #ifdef MIPS block.
3866
4ae9ee8e
DJ
38672003-08-25 Daniel Jacobowitz <drow@mvista.com>
3868
3869 PR java/1322
3870 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3871 available before calling SECT_OFF_TEXT.
3c164570 3872 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3873
004d836a
JJ
38742003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3875
a8f4cde1 3876 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3877 bof, and nat0-nat127 as pseudo-registers.
3878 (ia64_frame_cache): New struct used to cache frame info.
3879 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3880 register grouping so registers without names are still saved and
004d836a 3881 restored.
a8f4cde1 3882 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3883 pseudo values.
3884 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3885 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3886 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3887 ia64_frame_cache.
3888 (examine_prologue): Change prototype to add next_frame pointer.
3889 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3890 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3891 alloc insn and if equal, mark as not frameless. At end of routine,
3892 if not frameless, calculate registers for the previous frame and store
3893 in the cache, if a cache is provided.
3894 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3895 and pass 0 for next_frame.
3896 (ia64_store_return_value): Change to use convert_typed_floating()
3897 instead of calling ia64_convert_to_raw().
3898 (ia64_extract_return_value): Change to use convert_typed_floating()
3899 instead of calling ia64_convert_to_virtual().
3900 (ia64_frame_cache): New routine to support new frame model.
3901 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3902 (ia64_frame_sniffer): Ditto.
3903 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3904 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3905 (ia64_sigtramp_frame_prev_register): Ditto.
3906 (ia64_sigtramp_frame_sniffer): Ditto.
3907 (ia64_frame_base_address): Ditto.
3908 (ia64_extract_struct_value_address): Change to issue error message.
3909 (ia64_frame_align): New routine to align sp.
3910 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3911 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3912 ia64_push_dummy_call().
3913 (ia64_push_return_address): Ditto.
3914 (ia64_unwind_dummy_id): New function.
3915 (ia64_unwind_pc): Ditto.
3916 (ia64_convert_register_p): Ditto.
3917 (ia64_register_to_value): Ditto.
3918 (ia64_value_to_register): Ditto.
3919 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3920 (ia64_register_byte, ia64_register_raw_size): Ditto.
3921 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3922 (ia64_saved_pc_after_call): Ditto.
3923 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3924 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3925 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3926 (ia64_register_convert_to_raw): Ditto.
3927 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3928 (ia64_init_extra_frame_info): Ditto.
3929 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3930 (ia64_gdbarch_init): Remove registering of deprecated functions that
3931 are no longer used. Add registration of new gdbarch functions.
3932 Remove registering deprecated_write_sp. Replace
3933 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3934 Delete set_gdbarch_deprecated_register_convertible(),
3935 set_gdbarch_deprecated_register_convert_to_virtual(), and
3936 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3937 set_gdbarch_deprecated_register_size(),
3938 set_gdbarch_deprecated_register_bytes(),
3939 set_gdbarch_pcregnum(),
3940 set_gdbarch_deprecated_register_byte(),
3941 set_gdbarch_deprecated_register_raw_size(),
3942 set_gdbarch_deprecated_max_register_raw_size(),
3943 set_gdbarch_deprecated_register_virtual_size(),
3944 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3945 Replace set_gdbarch_deprecated_extract_return_value() with
3946 set_gdbarch_extract_return_value(). Remove calls to:
3947 set_gdbarch_deprecated_saved_pc_after_call();
3948 set_gdbarch_deprecated_frame_chain(),
3949 set_gdbarch_deprecated_frame_saved_pc(),
3950 set_gdbarch_deprecated_frame_init_saved_regs(),
3951 set_gdbarch_deprecated_get_saved_register(),
3952 set_gdbarch_deprecated_call_dummy_words(),
3953 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3954 set_gdbarch_deprecated_init_extra_frame_info(),
3955 set_gdbarch_deprecated_frame_args_address(),
3956 set_gdbarch_deprecated_frame_locals_address(),
3957 and set_gdbarch_deprecated_dummy_write_sp().
3958 Add set_gdbarch_convert_register_p(),
3959 set_gdbarch_register_to_value(),
3960 set_gdbarch_value_to_register(),
3961 set_gdbarch_push_dummy_call(),
3962 set_gdbarch_frame_align(),
3963 set_gdbarch_unwind_dummy_id(),
3964 set_gdbarch_unwind_pc(),
3965 frame_unwind_append_sniffer(),
3966 frame_unwind_append_sniffer(),
3967 and frame_base_set_default().
3968
aede7613
CD
39692003-08-25 Chris Demetriou <cgd@broadcom.com>
3970
3971 * configure.tgt: Document need for special "mipsisa64" handling.
3972 (mipsisa64*-*-linux64): Handle as target linux64.
3973 (mipsisa64*-*-*): Handle as target embed64.
3974
43c3a82e
MC
39752003-08-18 Michael Chastain <mec@shout.net>
3976
3977 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3978 objfile bug.
3979
6564f77d
MK
39802003-08-24 Mark Kettenis <kettenis@gnu.org>
3981
2de139ba
MK
3982 * i387-tdep.h: Update copyright date.
3983 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3984
6564f77d
MK
3985 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3986 CFLAGS games to reflect reality.
3987
42cf1509
AC
39882003-08-24 Andrew Cagney <cagney@redhat.com>
3989
3990 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3991 GDB_MULTI_ARCH is always non-zero.
3992 * osabi.c (_initialize_gdb_osabi): Ditto.
3993 (gdbarch_init_osabi): Ditto.
3994 * sparc-tdep.c: Ditto for #if code.
3995
0485f6ad
MK
39962003-08-23 Mark Kettenis <kettenis@gnu.org>
3997
3998 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3999 Update comments.
4000 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4001 comments.
4002 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4003 x86_64_supply_fxsave.
4004 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4005 x86_64_supply_fxsave.
4006 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4007 x86_64_supply_fxsave.
4008
c7716133
AJ
40092003-08-23 Andreas Jaeger <aj@suse.de>
4010
4011 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4012 i387_supply_fxsave.
4013
ed504bdf
MK
40142003-08-23 Mark Kettenis <kettenis@gnu.org>
4015
4016 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4017 i387_supply_register.
4018 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4019 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4020 i387_supply_fsave.
4021 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4022 i387_supply_fxsave.
4023 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4024 i387_supply_fsave.
4025 * i386bsd-nat.c (supply_fpregset): Adjust call to
4026 i387_supply_fsave.
4027 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4028 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4029 supply_fpregset.
4030 (store_inferior_registers): Remove extraneous whitespace. Call
4031 i387_fill_fsave instead of fill_fpregset.
4032 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4033 (supply_fpregset): Likewise.
4034 * i386v4-nat.c (supply_fpregset): Adjust call to
4035 i387_supply_fsave.
4036 * i386-interix-nat.c (supply_fpregset): Adjust call to
4037 i387_supply_fsave.
4038 * i386-linux-nat.c (supply_fpregset): Adjust call to
4039 i387_supply_fsave.
4040 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4041 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4042 i387supply_fsave and i387_supply_fxsave.
4043 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4044 Incorporate code from `i387_supply_register.
4045 (i387_supply_register): Remove.
4046 (i387_supply_fxsave): Add `regnum' argument.
4047 Update comments.
4048 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4049 prototype.
4050 (i387_supply_register): remove prototype.
4051 Update comments.
a8f4cde1 4052
4be5d520
MC
40532003-08-22 Michael Chastain <mec@shout.net>
4054
4055 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4056 Add lines for files in gdb/testsuite/gdb.cp/* that are
4057 still not 8.3 unique.
4058
7ed85d26
DJ
40592003-08-22 Daniel Jacobowitz <drow@mvista.com>
4060
4061 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4062 TYPE_VPTR_FIELDNO is valid.
4063
eb0d3137
MK
40642003-08-19 Mark Kettenis <kettenis@gnu.org>
4065
4066 * utils.c (set_width_command): Remove prototypes.
4067 (set_screen_size): New prototype.
4068 (init_page_info): Simplify by fetching the screen size from
4069 Readline. Call set_screen_size.
4070 (set_screen_size): New function.
4071 (set_width): Add missing whitespace in comment.
4072 (set_width_command): Call set_screen_size.
4073 (set_height_command): New function.
4074 (initialize_utils): Fix formatting. Make "set height" command
4075 call set_height_command. Remove redundant code that turns off
4076 pagination if output isn't a terminal. Remove redundant call to
4077 set_width_command.
a8f4cde1 4078
7e6d0ac8
MK
40792003-08-22 Mark Kettenis <kettenis@gnu.org>
4080
3567a8ea
MK
4081 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4082 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4083 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4084 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4085 `case' keyword.
4086 (sparc64_register_info): Give the reister with number
4087 SPARC64_STATE_REGNUM a name.
4088 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4089 %asi and %ccr.
4090 (sparc64_push_dummy_call): Take BIAS into account when checking
4091 stcak alignment.
4092 (sparc_software_single_step): Remove assertions that check whether
4093 NPC and NNPC were zero.
4094 (sparc_supply_rwindow): Make public. Merge functionality with
4095 sparc64_supply_rwindow.
4096 (sparc_fill_rwindow): Make public. Merge functionality with
4097 sparc64_fill_rwindow.
4098 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4099 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4100 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4101 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4102 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4103
7e6d0ac8
MK
4104 * reggroups.c: Add whitespace after declarations of local
4105 variables in functions.
4106
72e5f484
MC
41072003-08-21 Michael Chastain <mec@shout.net>
4108
4109 * gdbtypes.h: Change array bound type from an int to enum.
4110
435ac228
AC
41112003-08-21 Andrew Cagney <cagney@redhat.com>
4112
4113 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4114 * config/sparc/tm-sparc.h: Ditto.
4115 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4116 unconditionally.
4117 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4118
0d0e1a63
MK
41192003-07-13 Mark Kettenis <kettenis@gnu.org>
4120
4121 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4122 (register_objfile_data, set_objfile_data, objfile_data): New
4123 prototypes.
4124 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4125 prototypes.
4126 (allocate_objfile): Call objfile_alloc_data.
4127 (free_objfile): Call objfile_free_data.
4128 (struct objfile_data): New.
4129 (struct objfile_data_registration): New.
4130 (struct objfile_data_registry): New.
4131 (objfile_data_registry): New variable.
4132 (register_objfile_data): New function.
4133 (objfile_alloc_data, objfile_free_data): New functions.
4134 (set_objfile_data, objfile_data): New functions.
4135 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4136 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4137 (_initialize_dwarf2_frame): New function and prototype.
4138
d90cf509
AC
41392003-08-21 Andrew Cagney <cagney@redhat.com>
4140
4141 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4142 a specific architecture.
4143 * arch-utils.h (set_architecture_from_arch_mach): Delete
4144 declaration.
4145 (target_architecture_hook): Delete declaration.
4146 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4147 (default_float_format): Assume GDB_MULTI_ARCH.
4148 (default_double_format): Assume GDB_MULTI_ARCH.
4149 (set_endian_from_file): Delete function.
4150 (arch_ok): Delete function.
4151 (set_arch): Delete function.
4152 (set_architecture_from_arch_mach): Delete function.
4153 (set_architecture_from_file): Delete function.
4154 (set_architecture): Assume GDB_MULTI_ARCH.
4155 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4156
8b39fe56
MK
41572003-08-21 Mark Kettenis <kettenis@gnu.org>
4158
4159 Rewrite FreeBSD/sparc64 native configuration.
4160 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4161 * sparc64fbsd-nat.c: New file.
4162 * sparc64fbsd-tdep.c: New file.
4163 * sparc64-tdep.c sparc64-tdep.h: New files.
4164 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4165 sparc64fbsd-tdep.o): New dependencies.
4166 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4167 and sparc64fbsd-tdep.c.
4168 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4169 * config/sparc/fbsd.mh: Remove copyright notice.
4170 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4171 sparcbsd-nat.o.
4172 * config/sparc/fbsd.mt: Remove copyright notice.
4173 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4174 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4175 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4176 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4177 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4178 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4179 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4180 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4181 "sparc/tm-sp64.h".
4182 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4183 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4184
a7f19c79
MC
41852003-08-21 Michael Chastain <mec@shout.net>
4186
4187 * symtab.h: Add doco on the space critical structures and
4188 some measurements of space usage.
4189
da08ea5b
MS
41902003-08-21 Michael Snyder <msnyder@redhat.com>
4191
4192 * tracepoint.c (trace_dump_command): Trace break address
4193 is subject to DECR_PC_AFTER_BREAK.
4194 (set_traceframe_context): Make "trace_line" an int.
4195 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4196
6df2bf50
MS
41972003-08-20 Michael Snyder <msnyder@redhat.com>
4198
4199 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4200 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4201 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4202 argument passing.
a8f4cde1 4203 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4204 functions, replace sh_push_dummy_call.
4205 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4206
0955bbf0
MC
42072003-08-20 Michael Chastain <mec@shout.net>
4208
4209 * gdbtypes.h (struct main_type): Rearrange to save space.
4210
260a4188
MS
42112003-08-20 Michael Snyder <msnyder@redhat.com>
4212
4213 * trad-frame.c: Comment typo fix.
4214
8baa6f92
KB
42152003-08-20 Michael Snyder <msnyder@redhat.com>
4216 Kevin Buettner <kevinb@redhat.com>
4217
4218 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4219 (frv_frame_init_saved_regs): Add declaration.
4220 (frame_extra_info): Add new field ``saved_regs''.
4221 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4222 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4223 Update frame related code.
4224 (frv_extract_struct_value_address): Adjust formatting.
4225 * Makefile.in (frv-tdep.o): Update dependencies.
4226 * config/frv/tm-frv.h (target_insert_watchpoint)
4227 (target_remove_watchpoint, target_insert_hw_breakpoint)
4228 (target_remove_hw_breakpoint): Delete these macros.
4229 (remote_insert_watchpoint, remote_remove_watchpoint)
4230 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4231 these declarations.
4232
87193939
MC
42332003-08-20 Michael Chastain <mec@shout.net>
4234
4235 * defs.h (ENUM_BITFIELD): New macro.
4236 * symtab.h (ENUM_BITFIELD): Use it.
4237 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4238
062103ba
SA
42392003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4240
4241 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4242
8b148df9
AC
42432003-08-18 Andrew Cagney <cagney@redhat.com>
4244
4245 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4246 * gdbarch.h, gdbarch.c: Re-generate.
4247 * infcall.c (call_function_by_hand): Adjust the SP by
4248 frame_red_zone_size before allocating any stack space.
4249 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4250 * x86-64-tdep.c (x86_64_frame_align): New function.
4251 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4252
4253 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4254 Remove code adjusting SP so that it skips over the Red Zone.
4255
954a4db8
MK
42562003-08-18 Mark Kettenis <kettenis@gnu.org>
4257
4258 * NEWS (New native configurations): Mention FreeBSD/amd64.
4259
1a241548
AC
42602003-08-18 Andrew Cagney <cagney@redhat.com>
4261
4262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4263 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4264 "m68k_frame_p".
4265 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4266
f82b2acd
MK
42672003-08-18 Mark Kettenis <kettenis@gnu.org>
4268
4269 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4270
4056d258
ML
42712003-08-18 Michal Ludvig <mludvig@suse.cz>
4272
4273 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4274 Define.
4275 * i386-linux-nat.c: Include "linux-nat.h".
4276 (child_post_startup_inferior): New function.
a8f4cde1 4277
99ab4326
MK
42782003-08-18 Mark Kettenis <kettenis@gnu.org>
4279
4280 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4281 at the start of a frameless function. This probably fixes PR
4282 backtrace/1338.
4283
c8d5f0d6
MC
42842003-08-17 Michael Chastain <mec@shout.net>
4285
4286 * symfile.c (find_sym_fns): Remove special case for apollo target.
4287
9016a515
DJ
42882003-08-17 Daniel Jacobowitz <drow@mvista.com>
4289
4290 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4291 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4292 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4293 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4294 (linux_supports_tracevforkdone): New function.
4295 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4296 TRACEVFORKDONE.
4297 (child_follow_fork): Handle vfork.
4298 (linux_handle_extended_wait): Likewise. Also handle exec.
4299 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4300 * NEWS: Mention fork tracing.
4301
c538c11c
DJ
43022003-08-17 Daniel Jacobowitz <drow@mvista.com>
4303
4304 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4305
4de4c07c
DJ
43062003-08-17 Daniel Jacobowitz <drow@mvista.com>
4307
4308 * Makefile.in (i386-linux-nat.o): Update dependencies.
4309 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4310 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4311 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4312 * i386-linux-nat.c: Include "linux-nat.h".
4313 (child_post_startup_inferior): New function.
4314 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4315 * infptrace.c (kill_inferior): Wrap in #ifdef.
4316 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4317 attaching to each LWP.
4318 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4319 (init_lin_lwp_ops): Fill in some more operations.
4320 * linux-nat.h (linux_enable_event_reporting)
4321 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4322 prototypes.
4323 * linux-nat.c (linux_enable_event_reporting): New function.
4324 (child_post_attach, linux_child_post_startup_inferior)
4325 (child_post_startup_inferior, child_follow_fork)
4326 (linux_handle_extended_wait, kill_inferior): New functions.
4327
7996bcec
AC
43282003-08-16 Andrew Cagney <cagney@redhat.com>
4329
4330 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4331 * gdbarch.h, gdbarch.c: Re-generate.
4332
3d48a7a0
MK
43332003-08-16 Mark Kettenis <kettenis@gnu.org>
4334
4335 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4336
7989c619
AC
43372003-08-16 Andrew Cagney <cagney@redhat.com>
4338
4339 * NEWS: Mention that "set prompt-escape-char" was deleted.
4340 * top.c (get_prompt_1): Delete function.
4341 (gdb_prompt_escape):
4342 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4343 prompt-escape-char" command.
4344 (MAX_PROMPT_SIZE): Delete macro.
4345 (get_prompt): Simplify, do not call get_prompt_1.
4346
07978cd8
AC
43472003-08-16 Andrew Cagney <cagney@redhat.com>
4348
4349 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4350 -Werror. -Wformat-nonliteral problems.
4351
3ff7cf9e
JB
43522003-08-15 J. Brobecker <brobecker@gnat.com>
4353
4354 Further multiarching work mostly for hppa64-*-hpux11:
4355 * hppa-tdep.h: New file.
4356 * hppa-tdep.c: #include hppa-tdep.c.
4357 (hppa32_num_regs): Renamed from hppa_num_regs.
4358 (hppa64_num_regs): New constant.
4359 (hppa64_call_dummy_breakpoint_offset): New constant.
4360 (hppa32_call_dummy_length): New constant.
4361 (hppa64_call_dummy_length): New constant.
4362 (hppa32_stack_align): Make name 32bit explicit.
4363 (hppa32_register_virtual_type): Likewise.
4364 (hppa32_extract_return_value): Likewise.
4365 (hppa32_use_struct_convention): Likewise.
4366 (hppa32_store_return_value): Likewise.
4367 (hppa64_register_virtual_type): New function.
4368 (hppa64_extract_return_value): New function.
4369 (hppa64_use_struct_convention): New function.
4370 (hppa64_store_return_value): New function.
4371 (hppa_frame_locals_address): Remove declaration, function does
4372 not exist anymore.
4373 (hppa_register_byte): Add support for PA64 ABI.
4374 (hppa_gdbarch_init): Add support for PA64 ABI.
4375 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4376 Make name 32bit explicit.
4377 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4378 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4379 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4380 (hppa64_hpux_frame_base_before_sigtramp): New function.
4381 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4382 * config/pa/tm-hppa64.h: Remove macros that are no longer
4383 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4384 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4385 * config/pa/tm-hppah.h: Update function calls in macros
4386 following the function renaming in hppa-hpux-tdep.c.
4387 * Makefile.in (hppa_tdep_h): New variable.
4388 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4389
5d05ca6d
MS
43902003-08-14 Michael Snyder <msnyder@redhat.com>
4391
4392 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4393
37ba2569
JB
43942003-08-13 J. Brobecker <brobecker@gnat.com>
4395
4396 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4397 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4398 routine.
4399
aed7f26a
MS
44002003-08-13 Michael Snyder <msnyder@redhat.com>
4401
4402 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4403 (frv_saved_pc_after_call): Use deprecated ftype.
4404 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4405 (frv_remote_translate_xfer_address): Remove.
4406 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4407
752d4ac1
JB
44082003-08-13 J. Brobecker <brobecker@gnat.com>
4409
4410 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4411 initialization after the common gdbarch initialization, not before.
4412
1426ac1d
JB
44132003-08-13 J. Brobecker <brobecker@gnat.com>
4414
4415 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4416 (ADDR_BITS_REMOVE): Remove, redundant.
4417
b6fbdd1d
JB
44182003-08-13 J. Brobecker <brobecker@gnat.com>
4419
4420 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4421 gdbarch method to clear the 2 low bits of text addresses.
4422
44160db3
AC
44232003-08-12 Andrew Cagney <cagney@redhat.com>
4424
4425 * Makefile.in (dsrec.o): Update dependencies.
4426 * dsrec.c: Include "gdb_assert.h".
4427 (make_srec): Use snprintf instead of sprintf, use a literal format
4428 string.
4429
bcf7d3ca
AC
44302003-08-12 Andrew Cagney <cagney@redhat.com>
4431
4432 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4433 FRAME_OBSTACK_ZALLOC.
4434
49ed40de
KB
44352003-08-12 Kevin Buettner <kevinb@redhat.com>
4436
4437 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4438 SSE registers.
4439
b246147c
MK
44402003-08-10 Mark Kettenis <kettenis@gnu.org>
4441
4442 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4443 amd64fbsd_sc_reg_offset): Add extern declarations.
4444 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4445 declarations.
4446
d95fdc0d
BE
44472003-08-11 Ben Elliston <bje@wasabisystems.com>
4448
4449 * MAINTAINERS (write after approval): Update my mail address.
4450
cf6a0e73
AC
44512003-08-10 Andrew Cagney <cagney@redhat.com>
4452
4453 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4454
f837910f
MK
44552003-08-10 Mark Kettenis <kettenis@gnu.org>
4456
e2dbbd2d
MK
4457 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4458 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4459 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4460 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4461 i386bsd_sc_reg_offset): Add extern declarations.
4462 * i386obsd-nat.c: Include "i386-tdep.h"
4463 (_initialize_i386obsd_nat): Remove extern declarations.
4464 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4465 declarations.
4466 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4467 declarations.
4468
f837910f
MK
4469 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4470 instead of frame_read_register.
4471 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4472 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4473 SP_REGNUM.
4474 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4475 instead of frame_unwind_unsigned_register. Use
4476 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4477 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4478 instead of read_register. Use builtin_type_void_data_ptr instead
4479 of builtin_type_void_func_ptr when extracting the address of the
4480 jmp_buf.
4481 (i386_extract_return_value, i386_store_return_value,
4482 i386_pseudo_register_read, i386_pseudo_register_write): Use
4483 register_size instead REGISTER_RAW_SIZE.
4484
edcf254d
AC
44852003-08-10 Andrew Cagney <cagney@redhat.com>
4486
4487 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4488 sprintf. Make "name" constant.
4489
26604a34
MK
44902003-08-10 Mark Kettenis <kettenis@gnu.org>
4491
192285c6
MK
4492 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4493 instead of frame_read_register.
f837910f
MK
4494 (i387_print_float_info): Use get_frame_register and
4495 get_frame_register_unsigned instead of frame_register_read.
192285c6 4496
f0925262
MK
4497 * i386fbsd-nat.c: Include "i386-tdep.h".
4498 (child_resume): Make `eflags' an ULONGEST. Use
4499 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4500 instead of register_read and register_write.
4501
a144416f
MK
4502 * i386bsd-nat.c (fetch_inferior_registers,
4503 store_inferior_registers): Don't use && at the end of a line.
4504 (_initialize_i386bsd_nat): Fix typo.
4505
fec74868
MK
4506 * frame.c (_initialize_frame): Add missing backslash.
4507
87232496
MK
4508 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4509 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4510 and supply_register instead of manipulating the register buffer
4511 directly.
4512
c9b9de0b
MK
4513 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4514 * config/i386/nm-i386sol2.h
4515 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4516
26604a34
MK
4517 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4518 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4519 instructions that GCC likes to mingle into the prologue. Fixes
4520 gdb/1253 and gdb/1255.
4521
25d29d70
AC
45222003-08-09 Andrew Cagney <cagney@redhat.com>
4523
4524 Fix GDB PR cli/926.
4525 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4526 * command.h (add_setshow_uinteger_cmd): Declare.
4527 * frame.c (set_backtrace_cmd): New function.
4528 (show_backtrace_cmd): New function.
4529 * frame.c (_initialize_frame): Replace "set/show
4530 backtrace-below-main" with "set/show backtrace past-main". Add
4531 command "set/show backtrace limit".
4532 (backtrace_past_main): Rename "backtrace_below_main".
4533 (backtrace_limit): New variable.
4534 (get_prev_frame): Update. Check the backtrace_limit.
4535
9ebf4acf
AC
45362003-08-09 Andrew Cagney <cagney@redhat.com>
4537
4538 * defs.h (xstrprintf): Declare.
4539 * utils.c (xstrprintf): New function.
4540 * breakpoint.c (insert_breakpoints): Replace sprintf and
4541 non-literal format strings, with xstrprintf and cleanups.
4542 (delete_breakpoint,breakpoint_re_set): Ditto.
4543 (commands_command, insert_breakpoints): Ditto.
4544 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4545 (break_at_finish_command_1): Ditto.
4546
3771659b
AC
45472003-08-09 Andrew Cagney <cagney@redhat.com>
4548
4549 * MAINTAINERS (language support): List Adam Fedor as Objective C
4550 maintainer.
4551
b4263afa
JB
45522003-08-08 J. Brobecker <brobecker@gnat.com>
4553
4554 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4555 are now multiarched.
4556
d84defb1
JB
45572003-08-08 J. Brobecker <brobecker@gnat.com>
4558
4559 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4560 longer necessary now that hppa64 is partially multiarch'ed.
4561
f786f615
AC
45622003-08-08 Andrew Cagney <cagney@redhat.com>
4563
4564 * interps.c (interp_set): Check for a NULL "old_interp".
4565
c938e9b0
L
45662003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4567
4568 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4569 (install-only): Support DESTDIR.
4570 (uninstall): Likewise.
4571 (install-gdbtk): Likewise.
4572
9a146a11
EZ
45732003-08-08 Elena Zannoni <ezannoni@redhat.com>
4574
4575 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4576 contains something meaningful at all times.
4577
4578Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4579
62599e99 4580 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4581
56296155
BC
4582Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4583
62599e99 4584 * MAINTAINERS (write after approval): Added self.
56296155 4585
9710e734
AC
45862003-08-07 Andrew Cagney <cagney@redhat.com>
4587
4588 * inferior.h (AT_SYMBOL): Define.
4589 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4590 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4591 * mips-tdep.c (mips_call_dummy_address): Delete function.
4592 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4593 set call_dummy_address.
4594
98b3ab73
AC
45952003-08-07 Andrew Cagney <cagney@redhat.com>
4596
4597 * language.c (op_error): Delete function.
4598 (binop_type_check): Delete function.
4599 * language.h (type_op_error, range_op_error): Delete macros.
4600 (op_error): Delete declaration.
4601
2fcf52f0
AC
46022003-08-07 Andrew Cagney <cagney@redhat.com>
4603
4604 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4605
abd4220e 46062003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4607
abd4220e 4608 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4609 (x86_64_push_arguments): Skip the red zone.
abd4220e 4610
9dd5f34f
AC
46112003-08-05 Andrew Cagney <cagney@redhat.com>
4612
4613 * reggroups.c (reggroup_next): Check for the final entry.
4614
e5e78edc
AC
46152003-08-04 Andrew Cagney <cagney@redhat.com>
4616
ab4e3d93
AC
4617 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4618 * cli/cli-script.c (define_command): Call query directly, instead
4619 of passing it a buffer.
4620 * ocd.c (ocd_error): Pass error a constant format string.
4621 * remote-mips.c (mips_error): Use fputs_filtered.
4622
1062ca82
AC
4623 * solib-svr4.c (_initialize_svr4_solib): Update
4624 register_gdbarch_data call.
4625 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4626
fcc1c85c
AC
4627 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4628 (register_gdbarch_data): Delete "free" parameter. Update
4629 comments.
4630 * gdbarch.h, gdbarch.c: Re-generate.
4631 * reggroups.c (_initialize_reggroup): Update.
4632 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4633 * frame-base.c (_initialize_frame_base): Update.
4634 * frame-unwind.c (_initialize_frame_unwind): Update.
4635 * user-regs.c (_initialize_user_regs): Update.
4636 * remote.c (_initialize_remote): Update.
4637 * regcache.c (_initialize_regcache): Update.
4638
116f06ea
AC
4639 * regcache.c (xfree_regcache_descr): Delete function.
4640 (_initialize_regcache): Update call to register_gdbarch_data.
4641 (init_regcache_descr, init_legacy_regcache_descr): Use
4642 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4643
e5e78edc
AC
4644 * remote.c (free_remote_state): Delete function.
4645 (_initialize_remote): Update register_gdbarch_data.
4646 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4647 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4648
6c7d17ba
AC
46492003-08-04 Andrew Cagney <cagney@redhat.com>
4650
4651 * reggroups.c (struct reggroup_el): Define.
4652 (struct reggroups): Delete field "nr_group". Replace array
4653 "group" with a "first" to "last" linked list.
4654 (reggroups_init): Update. Allocate using gdbarch's obstack.
4655 (reggroups_free): Delete function.
4656 (add_group): Update. Add "el" parameter.
4657 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4658 (default_groups): Update.
4659 (reggroup_next): Replace reggroups.
4660 (reggroups_dump): Update.
4661 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4662 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4663 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4664
89b7795b
DJ
46652003-08-04 Daniel Jacobowitz <drow@mvista.com>
4666
4667 * Makefile.in (tui-interp.o): Update dependencies.
4668
306d9ac5
DC
46692003-08-04 David Carlton <carlton@kealia.com>
4670
4671 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4672 to internal_error call.
4673 * source.c (forward_search_command): Add "%s" format argument.
4674 (reverse_search_command): Ditto.
4675 * top.c (quit_confirm): Ditto.
4676 * cli/cli-setshow.c (do_setshow_command): Ditto.
4677 * cp-valprint.c (cp_print_class_method): Replace
4678 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4679 (cp_print_class_member): Ditto.
4680 * event-top.c (command_line_handler): Ditto.
4681 * linux-proc.c (linux_info_proc_cmd): Ditto.
4682 * p-typeprint.c (pascal_type_print_base): Ditto.
4683 * p-valprint.c (pascal_object_print_class_method): Ditto.
4684 (pascal_object_print_class_member): Ditto.
4685 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4686 * remote.c (remote_cisco_section_offsets): Ditto.
4687 * top.c (command_line_input): Ditto.
4688 * utils.c (vwarning,error_stream,quit): Ditto.
4689 * valprint.c (print_floating,print_binary_chars)
4690 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4691
57bfe177
AC
46922003-08-04 Andrew Cagney <cagney@redhat.com>
4693
4694 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4695
e546b999
AC
46962003-08-02 Andrew Cagney <cagney@redhat.com>
4697
4698 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4699 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4700 amd64fbsd-nat.c.
4701
91092ee5
AC
47022003-08-02 Andrew Cagney <cagney@redhat.com>
4703
4704 * Makefile.in: Update all dependencies and definitions.
4705
889f28e2
AF
47062003-08-02 Adam Fedor <fedor@gnu.org>
4707
4708 * linespec.c (is_objc_method_format): New function
4709 (decode_line_1, locate_first_half): Use it.
4710 Fixes PR objc/1298
4711
880bc914
AC
47122003-08-01 Andrew Cagney <cagney@redhat.com>
4713
4714 * NEWS: Mention that m32r is multi-arch.
4715 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4716 * configure.tgt: Recognize m32r-*-*.
4717 * config/m32r/tm-m32r.h: Delete file.
4718 * config/m32r/m32r.mt: New file.
a8f4cde1 4719 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4720 gethostname succeeds, in order to avoid a compilation
4721 warning.
4722 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4723 compiler warning.
4724
19f59343
MS
47252003-08-01 Michael Snyder <msnyder@redhat.com>
4726
4727 * sh-tdep.c (sh_frame_align): New gdbarch method.
4728 (sh_gdbarch_init): Set up frame_align method.
4729
4e7d7511
MS
47302003-07-31 Michael Snyder <msnyder@redhat.com>
4731
4732 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4733 which is already covered by the new frames infrastructure.
4734
63022984
AC
47352003-07-31 Andrew Cagney <cagney@redhat.com>
4736
4737 * user-regs.c (struct user_reg): Add "next" link.
4738 (struct user_regs): Replace "user" with "first" and "last" links.
4739 (append_user_reg): Add pre-allocated "reg" parameter.
4740 (builtin_user_regs): Provide initial value for "last".
4741 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4742 (user_regs_init): Allocate memory from the gdbarch obstack.
4743 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4744 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4745 linked list.
4746 (usernum_to_user_reg): New function.
4747 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4748 (value_of_user_reg): Use usernum_to_user_reg.
4749 (user_regs_free): Delete function.
4750 (_initialize_user_regs): Update register_gdbarch_data call.
4751
7cf6e574
DJ
47522003-07-31 Daniel Jacobowitz <drow@mvista.com>
4753
4754 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4755
c48a845b
MS
47562003-07-30 Michael Snyder <msnyder@redhat.com>
4757
4e7d7511 4758 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4759 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4760 value_being_returned.
4761 * infcmd.c (print_return_value): Pass zero as struct_addr.
4762 * values.c (value_being_returned): If struct_addr is passed,
4763 use it instead of trying to recover it from the inferior.
4764
f0d8db19
KB
47652003-07-30 Kevin Buettner <kevinb@redhat.com>
4766
4767 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4768 the prologue analyzer won't need to attempt to extract the pc
4769 value from the woefully incomplete dummy frame.
4770 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4771 possible. Disable code which modifies the frame.
4772
e5c113a1
AC
47732003-07-28 Andrew Cagney <cagney@redhat.com>
4774
4775 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4776 to level 2.
4777 (annotate_breakpoints_table, annotate_record): Ditto.
4778 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4779 (annotate_field_name_end, annotate_field_value): Ditto.
4780 (annotate_field_end, annotate_frame_source_begin): Ditto.
4781 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4782 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4783 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4784 (annotate_frame_address_end, annotate_frame_address): Ditto.
4785 (annotate_frame_args, annotate_frame_end): Ditto.
4786 (annotate_frame_where, annotate_arg_begin): Ditto.
4787 (annotate_arg_name_end, annotate_arg_value): Ditto.
4788 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4789 (annotate_function_call, annotate_signal_name): Ditto.
4790 (annotate_signal_string, annotate_signal_name_end): Ditto.
4791 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4792 (annotate_value_begin, annotate_value_history_value): Ditto.
4793 (annotate_value_history_end, annotate_value_end): Ditto.
4794 (annotate_display_begin, annotate_display_number_end): Ditto.
4795 (annotate_display_format, annotate_display_expression): Ditto.
4796 (annotate_display_expression_end, annotate_display_value): Ditto.
4797 (annotate_display_end, annotate_array_section_begin): Ditto.
4798 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4799 (annotate_elt, annotate_array_section_end): Ditto.
4800
bb1db049
AC
48012003-07-28 Andrew Cagney <cagney@redhat.com>
4802
4803 * regcache.c (struct regcache_descr): Update comments on
4804 nr_raw_registers.
4805 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4806 sizeof_raw_register_valid_p.
4807 (init_regcache_descr): Set nr_raw_registers and
4808 sizeof_raw_register_valid_p before calling
4809 init_legacy_regcache_descr.
4810
20e6603c
AC
48112003-07-28 Andrew Cagney <cagney@redhat.com>
4812
4813 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4814 MOD NUM_REGS.
4815
db742940
DJ
48162003-07-28 Daniel Jacobowitz <drow@mvista.com>
4817
4818 * thread.c (info_threads_command): Use get_selected_frame ().
4819 Check that there is at least one non-sentinel frame.
4820
ce7f4371
SC
48212003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4822
4823 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4824 (m68hc11_pop_frame): Remove.
4825 (m68hc11_frame_saved_pc): Remove.
4826 (m68hc11_frame_chain): Remove.
4827 (m68hc11_frame_init_saved_regs): Remove.
4828 (m68hc11_init_extra_frame_info): Remove.
4829 (m68hc11_store_struct_return): Remove.
4830 (m68hc11_saved_pc_after_call): Remove.
4831
1ea653ae
SC
48322003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4833
4834 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4835 frame unwind information.
4836 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4837 and adapted for frame unwinding.
4838 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4839 (m68hc11_unwind_pc): New function.
4840 (m68hc11_frame_unwind_cache): New function to analyze frames.
4841 (m68hc11_frame_this_id): New function to create new frame struct.
4842 (m68hc11_frame_prev_register): New function to unwind a register from
4843 the frame.
4844 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4845 (m68hc11_frame_p): New function for the above.
4846 (m68hc11_frame_base_address): New function to return fp of frame.
4847 (m68hc11_frame_args_address): Update for frame.
4848 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4849 (m68hc11_unwind_sp): New function.
4850 (m68hc11_unwind_dummy_id): New function.
4851 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4852 calls.
4853
c8a7f6ac
SC
48542003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4855
4856 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4857 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4858 when we are beyond the current pc.
4859
3dc990bf
SC
48602003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4861
4862 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4863 from m68hc11_push_arguments.
4864 (m68hc11_push_arguments): Remove.
4865 (m68hc11_push_return_address): Remove.
4866 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4867 handlers; remove deprecated_extra_stack_alignment_needed.
4868
222e5d1d
AC
48692003-07-27 Andrew Cagney <cagney@redhat.com>
4870
4871 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4872 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4873 REAL_PC and not the pointer.
4874 * hppa-hpux-tdep.c: Include frame.h
4875
a7e9a47e
AC
48762003-07-27 Andrew Cagney <cagney@redhat.com>
4877
4878 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4879 GDB_MULTI_ACH_PARTIAL.
4880
7e3dd49e
AC
48812003-07-27 Andrew Cagney <cagney@redhat.com>
4882
4883 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4884 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4885 operator at start and not end of line.
4886 (decode_prologue): Ditto.
4887 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4888 frame_unwind_register_unsigned instead of
4889 frame_unwind_unsigned_register.
4890 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4891 read_register.
4892 (m32r_push_dummy_call): Use register_size instead of
4893 REGISTER_RAW_SIZE.
4894 (m32r_frame_sniffer): Replace m32r_frame_p.
4895 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4896 * m32r-rom.c (report_transfer_performance): Delete extern
4897 declaration.
4898 (m32r_load, m32r_upload_command): Use print_transfer_performance
4899 instead of report_transfer_performance.
4900 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4901 / add_show_from_set.
4902
0880807f
AC
49032003-07-26 Andrew Cagney <cagney@redhat.com>
4904
4905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4906 store_return_value and extract_struct_value_address.
4907
64ae9269
DJ
49082003-07-26 Daniel Jacobowitz <drow@mvista.com>
4909
4910 PR c++/1267
4911 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4912 NULL, default to the section containing PC.
4913
e286caf2
SC
49142003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4915
4916 * NEWS: Mention "regs" deprecated for m68hc11 too.
4917
4918 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4919 (m68hc11_print_register): New function to print out one register.
4920 (m68hc11_print_registers_info): New function to print registers.
4921 (show_regs): Deprecate and use the above.
4922 (m68hc11_gdbarch_init): Install the print_registers_info.
4923
705b278b
JJ
49242003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4925
4926 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4927 that we have a SIGTRAP before returning non-zero.
4928
63cd4198
EZ
49292003-07-23 Michal Ludvig <mludvig@suse.cz>
4930 Elena Zannoni <ezannoni@redhat.com>
4931
a8f4cde1 4932 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4933 find_function_start_sal() returns empty record.
4934
6926787d
AS
49352003-07-23 Andreas Schwab <schwab@suse.de>
4936
4937 * ia64-tdep.c (ia64_print_insn): New function.
4938 (ia64_gdbarch_init): Set print_insn to it.
4939 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4940 deprecated_tm_print_insn_info.
4941
708cc1b6
MS
49422003-07-22 Michael Snyder <msnyder@redhat.com>
4943
4944 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4945 handle 8-bit returns (long long).
4946 (h8300h_extract_return_value): Ditto.
4947 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4948
aebd7893
AC
49492003-07-22 Andrew Cagney <cagney@redhat.com>
4950
4951 * gdbarch.c Include "gdb_obstack.h".
4952 (struct gdbarch): Add an "obstack".
4953 (alloc_gdbarch_data): Allocate the gdbarch data using
4954 GDBARCH_OBSTACK_CALLOC.
4955 (free_gdbarch_data): Delete function.
4956 (gdbarch_obstack_zalloc): New function.
4957 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4958 Assert that the architecture is not initialized.
4959 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4960 vector from the obstack.
4961 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4962 architecture obstack.
4963 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4964 (set_gdbarch_data): Assert that the data is not initialized.
4965 (struct gdbarch_data): Delete member "free".
4966 (register_gdbarch_data): Do not initialize "free".
4967 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4968
153721e6
AC
49692003-07-22 Andrew Cagney <cagney@redhat.com>
4970
4971 * configure.in (build_warnings): Add -Wformat-nonliteral.
4972 * configure: Re-generate.
4973
c193f044 49742003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4975
4976 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4977
c3228f12
EZ
49782003-07-22 Elena Zannoni <ezannoni@redhat.com>
4979
4980 * findvar.c (read_var_value): Remove case for thread local storage
4981 variables. It is now entirely handled by the dwarf2 location
4982 expression code.
4983 * printcmd.c (address_info): Ditto.
4984 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4985 enumeration value.
4986 (struct symbol): Remove objfile field, which was used by
4987 LOC_THREAD_LOCAL_STATIC only.
4988 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4989 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4990 usage of objfile pointer.
4991 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4992 thread local variables.
4993 Add include of objfiles.h.
4994 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4995 storage variables.
4996 * Makefile.in (dwarf2loc.o): Update dependencies.
4997
aef9bcd2
AC
49982003-07-22 Andrew Cagney <cagney@redhat.com>
4999
5000 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5001 get_frame_base.
5002 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5003 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5004 (struct value): Add opaque declaration.
5005 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5006
d95a8903
AC
50072003-07-21 Andrew Cagney <cagney@redhat.com>
5008
5009 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5010 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5011
4db73d49
SC
50122003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5013
a8f4cde1 5014 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5015 regcache_cooked_read_unsigned instead of read_register.
5016 (m68hc11_saved_pc_after_call): Likewise.
5017 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5018 instead of write_register.
5019 (m68hc11_register_type): New function.
5020 (m68hc11_register_virtual_type): Remove.
5021 (m68hc11_store_return_value): Convert to use the regcache.
5022 (m68hc11_extract_struct_value_address): Likewise.
5023 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5024 m68hc11_register_type; undeprecate store_return_value and
5025 extract_struct_value_address.
5026
ef2b8fcd
SC
50272003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5028
5029 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5030 and translate to use regcache.
5031 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5032
625b0b97
AC
50332003-07-18 Andrew Cagney <cagney@redhat.com>
5034
5035 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5036 * gdbarch.h, gdbarch.c: Re-generate.
5037 * i386-tdep.c (i386_gdbarch_init): Do not set
5038 DWARF2_BUILD_FRAME_INFO.
5039 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5040 unconditionally.
5041 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5042 DWARF2_BUILD_FRAME_INFO.
5043
22b0d388
AC
50442003-07-18 Andrew Cagney <cagney@redhat.com>
5045
5046 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5047 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5048
1ce5d6dd
AC
50492003-07-18 Andrew Cagney <cagney@redhat.com>
5050
5051 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5052 frame_unwind_address_in_block, instead of frame_pc_unwind.
5053 (dwarf2_frame_cache): Ditto.
5054
e6e5e94c
AC
50552003-07-18 Andrew Cagney <cagney@redhat.com>
5056
5057 * user-regs.h (struct gdbarch): Declare opaque.
5058 * ui-out.h (struct ui_file): Declare opaque.
5059 * dwarf2-frame.h (struct frame_info): Declare opaque.
5060
5483d879
KW
50612003-07-18 Kris Warkentin <kewarken@qnx.com>
5062
5063 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5064 #include "...".
5065 (procfs_meminfo): Change strerror to safe_strerror.
5066 (procfs_can_run): Remove K&R badness.
5067
278a7cf7
MS
50682003-07-17 Michael Snyder <msnyder@redhat.com>
5069
5070 * remote-sim.c: Comment typo fix.
5071
606e3b82
AC
50722003-07-17 Andrew Cagney <cagney@redhat.com>
5073
5074 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5075 configure.
5076 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5077 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5078 GDB_MULTI_ARCH_PARTIAL.
5079
c43af07c
EZ
50802003-07-17 Elena Zannoni <ezannoni@redhat.com>
5081
5082 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5083 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5084 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5085
3b85b0f1
TR
50862003-07-16 Theodore A. Roth <troth@openavr.org>
5087
5088 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5089 found.
5090 (avr_frame_unwind_cache): Don't unwind FP for main.
5091 Update a comment.
5092 Save the computed prev_sp.
5093 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5094 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5095 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5096
336d1bba
AC
50972003-07-16 Andrew Cagney <cagney@redhat.com>
5098
5099 * frame-base.h (frame_base_p_ftype): Delete definition.
5100 (frame_base_append_predicate): Delete declaration.
5101 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5102 (frame_unwind_append_predicate): Delete declaration.
5103 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5104 (append_predicate): Delete parameter "p".
5105 (frame_unwind_append_predicate): Delete function.
5106 (frame_unwind_append_sniffer): Update call to append_predicate.
5107 (frame_unwind_free): Delete function.
5108 (_initialize_frame_unwind): Pass NULL as "free" to
5109 register_gdbarch_data.
5110 (frame_unwind_init): Append the dummy_frame_sniffer.
5111 (frame_unwind_find_by_frame): Simplify.
5112 * frame-base.c (struct frame_base_table): Delete field "p".
5113 (append_predicate): Delete parameter "p".
5114 (frame_base_append_predicate): Delete function.
5115 (frame_base_append_sniffer): Update call to append_predicate.
5116 (frame_base_free): Delete function.
5117 (frame_base_find_by_frame): Simplify.
5118 (_initialize_frame_base): Pass NULL as "free" to
5119 register_gdbarch_data.
5120 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5121 (x86_64_sigtramp_frame_sniffer): Replace
5122 "x86_64_sigtramp_frame_p".
5123 (x86_64_init_abi): Set the frame unwind sniffers.
5124 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5125 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5126 (m68k_gdbarch_init): Set the frame unwind sniffers.
5127 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5128 "i386_sigtramp_frame_p".
5129 (i386_frame_sniffer): Replace "i386_frame_p".
5130 (i386_gdbarch_init): Set the frame unwind sniffers.
5131 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5132 (avr_gdbarch_init): Set the frame unwind sniffers.
5133 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5134 "alpha_sigtramp_frame_p"
5135 (alpha_heuristic_frame_sniffer): Replace
5136 "alpha_heuristic_frame_p".
5137 (alpha_gdbarch_init): Set the frame unwind sniffers.
5138 (alpha_dwarf2_init_abi): Ditto.
5139 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5140 "alpha_debug_frame_p".
5141 (alpha_mdebug_frame_base_sniffer): Replace
5142 "alpha_mdebug_frame_base_p".
5143 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5144 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5145 (d10v_gdbarch_init): Set the frame unwind sniffer.
5146 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5147 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5148 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5149 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5150 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5151 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5152
48db5a3c
CV
51532003-07-16 Michael Snyder <msnyder@redhat.com>
5154
5155 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5156 should go thru sh_dsp_register_sim_regno, else the dsp regs
5157 will not get the right values.
5158
51592003-07-16 Corinna Vinschen <vinschen@redhat.com>
5160
5161 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5162 deprecated_store_floating by call to store_typed_floating.
5163 (sh_sh4_register_convert_to_raw): Substitute call to
5164 deprecated_extract_floating by call to extract_typed_floating.
5165
51662003-07-16 Corinna Vinschen <vinschen@redhat.com>
5167
5168 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5169
51702003-07-16 Corinna Vinschen <vinschen@redhat.com>
5171
5172 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5173 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5174 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5175 as possible.
5176 (do_pseudo_register): Remove.
5177 (sh_push_dummy_code): New function.
5178 (sh64_store_struct_return): Rename from sh_store_struct_return.
5179 Only called for sh64 now.
5180 (sh_extract_struct_value_address): Regcache'ify.
5181 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5182 and accomodate new tasks.
5183 (sh64_push_return_address): Rename from sh_push_return_address.
5184 Only called for sh64 now.
5185 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5186 Regcache'ify.
5187 (sh3e_sh4_extract_return_value): Regcache'ify.
5188 (sh_default_store_return_value): Ditto.
5189 (sh3e_sh4_store_return_value): Ditto.
5190 (sh_default_register_byte): Remove.
5191 (sh_sh4_register_byte): Remove.
5192 (sh_default_register_raw_size): Remove.
5193 (sh_sh4_register_raw_size): Remove.
5194 (sh_register_virtual_size): Remove.
5195 (sh_sh3e_register_virtual_type): Remove.
5196 (sh_sh3e_register_type): New function.
5197 (sh_sh4_register_virtual_type): Remove.
5198 (sh_sh4_register_type): New function.
5199 (sh_default_register_virtual_type): Remove.
5200 (sh_default_register_type): New function.
5201 (do_fv_register_info): Add parameters to accomodate call from
5202 sh_print_registers_info.
5203 (do_dr_register_info): Ditto.
5204 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5205 Add parameters to accomodate call from sh_print_registers_info.
5206 (sh_do_fp_register): Ditto.
5207 (sh64_do_pseudo_register): Call do_dr_register_info,
5208 do_fv_register_info and sh_do_fp_register with default parameters.
5209 (sh_do_register): Add parameters to accomodate call from
5210 sh_print_registers_info.
5211 (sh_print_register): Ditto.
5212 (sh_print_registers_info): Rename from sh_do_registers_info.
5213 Add parameters to be used as gdbarch_print_registers_info
5214 implementation. Accomodate removed do_pseudo_register function
5215 pointer.
5216 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5217 function pointer. Call sh_print_register with default parameters.
5218 (sh64_do_registers_info): Call sh_print_registers_info instead of
5219 sh_do_registers_info.
5220 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5221 detection of deprecated vs. non-deprecated functionality.
5222 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5223 function pointer assignments by direct function calls.
5224
e8a89fe2
AC
52252003-07-15 Andrew Cagney <cagney@redhat.com>
5226
5227 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5228 (frame_register_unwind, create_new_frame): Ditto.
5229 (legacy_get_prev_frame, get_frame_type): Ditto.
5230 (get_frame_base_address): Use frame_base_find_by_frame.
5231 (get_frame_locals_address): Use frame_base_find_by_frame.
5232 (get_frame_args_address): Use frame_base_find_by_frame.
5233 * frame-base.h (frame_base_sniffer_ftype): Declare.
5234 (frame_base_append_sniffer): Declare.
5235 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5236 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5237 (frame_base_append_sniffer): New function.
5238 (frame_base_append_predicate): Add a NULL sniffer.
5239 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5240 (struct frame_base_table): Add "sniffer".
5241 (frame_base_free): Free the "sniffer" table.
5242 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5243 (frame_unwind_append_sniffer): Declare.
5244 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5245 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5246 (struct frame_unwind_table): Add "sniffer", delete "middle".
5247 (append_predicate): Add "sniffer" parameter, append the sniffer.
5248 (frame_unwind_init): Update append_predicate call.
5249 (frame_unwind_append_sniffer): New function.
5250 (frame_unwind_append_predicate): Update append_predicate call.
5251 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5252
0714963c
AC
52532003-07-15 Andrew Cagney <cagney@redhat.com>
5254
5255 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5256 before code inhibiting repeated unwind attempts. Add to
5257 commentary on that test's problems.
5258 * blockframe.c (inside_main_func): Look for "main" in the minimal
5259 symbol table.
5260 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5261 identical.
5262
d9170e22
AC
52632003-07-15 Andrew Cagney <cagney@redhat.com>
5264
5265 * complaints.c (struct explanation): Define.
5266 (struct complaints): Change type of "explanation" to "struct
5267 explanation".
5268 (symfile_explanations): Convert to a "struct explanation" table.
5269 (vcomplaint): Update.
5270
eba29c8c
ML
52712003-07-15 Michal Ludvig <mludvig@suse.cz>
5272
5273 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5274 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5275 x86_64_linux_(fill,supply)_gregset functions.
5276 * x86-64-linux-tdep.c (USER_*): New defines.
5277 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5278 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5279 New functions.
5280 (fetch_core_registers): Ditto.
5281 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5282 * x86-64-linux-tdep.h: New file.
5283 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5284 and core-regset.o.
5285 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5286
68cc0bfb
MK
52872003-07-13 Mark Kettenis <kettenis@gnu.org>
5288
88a115f7
MK
5289 * x86-64-tdep.c (x86_64_store_return_value): Use
5290 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5291
68cc0bfb
MK
5292 * configure.host: Add x86_64-*-freebsd*.
5293 * configure.tgt: Add x86_64-*-freebsd*.
5294 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5295 * amd64fbsd-nat.c: New file.
5296 * amd64fbsd-tdep.c: New file.
5297 * config/i386/nm-fbsd64.h: New file.
5298 * config/i386/fbsd64.mh: New file.
5299 * config/i386/fbsd64.mt: New file.
5300
138e7be5
MK
53012003-07-11 Mark Kettenis <kettenis@gnu.org>
5302
5303 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5304 `sc_regs_offset' and `sc_fpregs_offset'.
5305 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5306 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5307 (alpha_sigtramp_register_address): Rewrite to use new members of
5308 `struct gdbarch_tdep'.
5309 (alpha_gdbarch_init): Initialize new members of struct
5310 gdbarch_tdep'.
5311 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5312 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5313 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5314 (alphafbsd_pc_in_sigtramp): Implement.
5315 (alphafbsd_sigtramp_offset): New function.
5316 (alphafbsd_sigcontext_addr): New function.
5317 (alphafbsd_init_abi): Initialize signal trampoline related members
5318 of `struct gdbarch_tdep'.
5319 (_initialize_alphafbsd_tdep): Add prototype.
5320
95303a68
TR
53212003-07-11 Theodore A. Roth <troth@openavr.org>
5322
ba292e4c
TR
5323 * Makefile.in (install-only): Quote sed expression when generating
5324 transformed_name.
95303a68 5325
6896c0c7
RH
53262003-07-11 Richard Henderson <rth@redhat.com>
5327
5328 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5329 * dwarf2-frame.c: Include complaints.h.
5330 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5331 variable initialization; return NULL on error.
5332 (decode_frame_entry): New.
5333
8edd5d01
AC
53342003-07-11 Andrew Cagney <cagney@redhat.com>
5335
c4a09524
AC
5336 * frame.h (frame_address_in_block): Delete declaration.
5337 * blockframe.c (frame_address_in_block): Delete function.
5338 (get_frame_block): Use get_frame_address_in_block.
5339 (block_innermost_frame): Ditto.
5340 * stack.c (print_frame, backtrace_command_1): Ditto.
5341
8edd5d01
AC
5342 * frame.h (get_frame_address_in_block): Declare.
5343 (frame_unwind_address_in_block): Declare.
5344 * frame.c (frame_unwind_address_in_block): New function.
5345 (get_frame_address_in_block): New function.
5346
f7968451
AC
53472003-07-10 Andrew Cagney <cagney@redhat.com>
5348
5349 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5350 pre-default. Note: re-generate has no effect.
a8f4cde1 5351
ae99b398
AC
53522003-07-10 Andrew Cagney <cagney@redhat.com>
5353
5354 * gdbarch.sh: When a variable, but not a function, compare against
5355 0. Fix problem in previous patch.
5356 * gdbarch.c: Re-generate.
a8f4cde1 5357
956ac328
AC
53582003-07-10 Andrew Cagney <cagney@redhat.com>
5359
5360 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5361 functions against NULL, not 0.
5362 * gdbarch.c: Re-generate.
a8f4cde1 5363
287c3240
FF
53642003-07-10 Fred Fish <fnf@ninemoons.com>
5365
5366 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5367 null string instead of a null pointer.
5368 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5369
32f63c4b
MS
53702003-07-09 Michael Snyder <msnyder@redhat.com>
5371
5372 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5373
402ecd56
MK
53742003-07-09 Mark Kettenis <kettenis@gnu.org>
5375
5376 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5377 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5378 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5379 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5380 * x86-64-tdep.c: ... from here.
5381
c481dac7
AS
53822003-07-09 Andreas Schwab <schwab@suse.de>
5383
5384 * m68k-tdep.h (enum struct_return): Define.
5385 (struct gdbarch_tdep): Add struct_return.
5386 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5387 bytes are padded to the right, not to the left. Pass struct value
5388 address in register %a1, not on stack.
5389 (m68k_use_struct_convention): New function.
5390 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5391 struct_return in tdep to pcc_struct_return.
5392 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5393 reg_struct_return.
5394
a8f4cde1 53952003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5396
a8f4cde1 5397 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5398
96a4ee76
AC
53992003-07-09 Andrew Cagney <cagney@redhat.com>
5400
5401 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5402 Add comments about the checks.
5403
1517c6d1
AC
54042003-07-08 Andrew Cagney <cagney@redhat.com>
5405
5406 * Makefile.in: Make dependency section headers consistent.
5407 (config_h): Move to $BUILD headers section.
5408 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5409 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5410 (ada-exp.tab.c): Move to YACC/LEX section.
5411 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5412 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5413
dc5dd1eb
KW
54142003-07-08 Kris Warkentin <kewarken@qnx.com>
5415
5416 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5417 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5418 of strerror with safe_strerror, use ISO C function definitions,
5419 and replace instances of sprintf with snprintf.
dc5dd1eb 5420
612dde91
AC
54212003-07-07 Andrew Cagney <cagney@redhat.com>
5422
5423 * frame.c (get_prev_frame): Enable check for identical frames.
5424 Update comments. Update error messages.
5425
492c11d3
JB
54262003-07-07 Joel Brobecker <brobecker@gnat.com>
5427
5428 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5429
376a5a49
JB
54302003-07-07 Joel Brobecker <brobecker@gnat.com>
5431
5432 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5433 sort_symtab_syms, no longer necessary.
5434
22b4a9ad
JB
54352003-07-07 Joel Brobecker <brobecker@gnat.com>
5436
5437 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5438
5bbcb741
JB
54392003-07-07 Joel Brobecker <brobecker@gnat.com>
5440
5441 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5442 (mips_register_byte): Likewise.
5443
c139e7d9
DJ
54442003-07-07 Daniel Jacobowitz <drow@mvista.com>
5445
5446 * Makefile.in (sparc_tdep_h): New.
5447 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5448 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5449 * sparc-linux-nat.c: Include "sparc-tdep.h".
5450 * sparc-nat.c: Likewise.
5451 * sparc-tdep.c: Likewise.
5452 * sparc64nbsd-nat.c: Likewise.
5453 * sparcnbsd-nat.c: Likewise.
5454 * sparcnbsd-tdep.c: Likewise.
5455 * sparc-tdep.h: New file.
5456 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5457 and sparc_npc_regnum.
5458
fd8f87c5
DJ
54592003-07-07 Daniel Jacobowitz <drow@mvista.com>
5460
5461 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5462 (mips_linux_cannot_store_register): List supported instead of
5463 unsupported registers.
5464
13adf674
DJ
54652003-07-07 Daniel Jacobowitz <drow@mvista.com>
5466
5467 * disasm.c (dump_insns): Separate instructions from addresses.
5468
8de307e0
AS
54692003-07-07 Andreas Schwab <schwab@suse.de>
5470
5471 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5472 dependencies.
5473 * m68k-tdep.c (NUM_FREGS): Delete.
5474 (SIG_PC_FP_OFFSET): Delete.
5475 (TARGET_M68K): Delete.
5476 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5477 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5478 P_MOVEL_SP, P_MOVEML_SP): Define.
5479 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5480 P_TRAP): Delete.
5481 (m68k_register_raw_size): Delete.
5482 (m68k_register_virtual_size): Delete.
5483 (m68k_register_type): Renamed from m68k_register_virtual_type and
5484 add gdbarch argument.
5485 (m68k_store_struct_return): Delete.
5486 (m68k_deprecated_extract_return_value): Delete.
5487 (m68k_deprecated_extract_struct_value_address): Delete.
5488 (m68k_frame_chain): Delete.
5489 (m68k_frame_saved_pc): Delete.
5490 (m68k_fix_call_dummy): Delete.
5491 (m68k_push_dummy_frame): Delete.
5492 (m68k_pop_frame): Delete.
5493 (m68k_extract_return_value): New function.
5494 (m68k_store_return_value): Rewrite using regcache.
5495 (m68k_extract_struct_value_address): Rewrite using regcache.
5496 (m68k_push_dummy_call): New function.
5497 (struct m68k_frame_cache): Define.
5498 (m68k_alloc_frame_cache): New function.
5499 (m68k_analyze_frame_setup): New function.
5500 (m68k_analyze_register_saves): New function.
5501 (m68k_analyze_prologue): New function.
5502 (m68k_skip_prologue): Rewrite using above functions.
5503 (m68k_unwind_pc): New function.
5504 (m68k_frame_cache): New function.
5505 (m68k_frame_this_id): New function.
5506 (m68k_frame_prev_register): New function.
5507 (m68k_frame_unwind): New variable.
5508 (m68k_frame_p): New function.
5509 (m68k_sigtramp_frame_cache): New function.
5510 (m68k_sigtramp_frame_this_id): New function.
5511 (m68k_sigtramp_frame_prev_register): New function.
5512 (m68k_sigtramp_frame_unwind): New variable.
5513 (m68k_sigtramp_frame_p): New function.
5514 (m68k_frame_base_address): New function.
5515 (m68k_frame_base): New function.
5516 (m68k_unwind_dummy_id): New function.
5517 (fill_gregset): Use regcache_collect.
5518 (fill_fpregset): Likewise.
5519 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5520 defined.
5521 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5522 deprecated_init_frame_pc, deprecated_store_struct_return,
5523 deprecated_extract_return_value, deprecated_store_return_value,
5524 deprecated_frame_chain, deprecated_frame_saved_pc,
5525 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5526 deprecated_register_virtual_size,
5527 deprecated_max_register_raw_size,
5528 deprecated_max_register_virtual_size,
5529 deprecated_register_virtual_type, deprecated_register_size,
5530 deprecated_register_byte, deprecated_register_bytes,
5531 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5532 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5533 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5534 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5535 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5536 deprecated_push_dummy_frame, deprecated_pop_frame,
5537 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5538 only if SYSCALL_TRAP is defined. Set extract_return_value,
5539 store_return_value, extract_struct_value_address, register_type,
5540 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5541 predicates.
5542 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5543 M68K_MAX_REGISTER_SIZE): Define.
5544 (struct m68k_sigtramp_info): Define.
5545 (struct gdbarch_tdep): Add get_sigtramp_info.
5546 * m68klinux-nat.c (fetch_register): Use register_size instead of
5547 REGISTER_RAW_SIZE. Don't put assignment in if.
5548 (store_register): Likewise.
5549 (fetch_inferior_registers): Likewise.
5550 (store_inferior_registers): Likewise.
5551 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5552 (m68k_linux_frame_saved_pc): Delete.
5553 (m68k_linux_sigcontext_reg_offset,
5554 m68k_linux_ucontext_reg_offset): Define.
5555 (m68k_linux_get_sigtramp_info): New function.
5556 (m68k_linux_extract_return_value): Rewrite using regcache.
5557 (m68k_linux_store_return_value): Likewise.
5558 (m68k_linux_extract_struct_value_address): Likewise.
5559 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5560 Don't set deprecated_frame_saved_pc,
5561 deprecated_extract_return_value, deprecated_store_return_value,
5562 deprecated_extract_struct_value_address. Set
5563 extract_return_value, store_return_value,
5564 extract_struct_value_address.
5565
eb8bc282
AC
55662003-07-07 Andrew Cagney <cagney@redhat.com>
5567
5568 * expprint.c: Include "user-regs.h" instead of "frame.h".
5569 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5570 frame_map_regnum_to_name.
5571 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5572 (frame_map_name_to_regnum): Simplify, call
5573 user_reg_map_name_to_regnum.
5574 (frame_map_regnum_to_name): Simplify, call
5575 user_reg_map_regnum_to_name.
5576 (frame_register_unwind): Update.
5577 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5578 (_initialize_frame_reg): Call user_reg_add_builtin.
5579 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5580 (value_of_register): Use value_of_user_reg.
5581 * eval.c (evaluate_subexp_standard): Update.
5582 * parse.c (write_dollar_variable): Update.
5583 * d10v-tdep.c (d10v_print_registers_info): Update.
5584 * infcmd.c (registers_info): Update.
5585 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5586 (builtin_regs_h): Delete macro.
5587 (user_regs_h): Define.
5588 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5589 (builtin-regs.o): Delete target.
5590 (user-regs.o): Specify dependencies.
5591 (expprint.o): Update dependencies.
5592 (findvar.o): Update dependencies.
5593 (frame.o): Update dependencies.
5594 (std-regs.o): Update dependencies.
5595
9f476a01
CF
55962003-07-06 Christopher Faylor <cgf@redhat.com>
5597
5598 * win32-nat.c (solib_symbols_add): Use one variable for all section
5599 address stuff. Pass variable rather than address of variable to
5600 safe_symbol_file_add.
5601
a731b831
AS
56022003-07-06 Andreas Schwab <schwab@suse.de>
5603
5604 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5605
9f83329d
JB
56062003-07-04 Joel Brobecker <brobecker@gnat.com>
5607
5608 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5609
27e28cc5
KW
56102003-07-04 Kris Warkentin <kewarken@qnx.com>
5611
5612 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5613
56142003-07-04 Kris Warkentin <kewarken@qnx.com>
5615
5616 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5617 * config/i386/nto.mh: New file.
5618 * config/i386/nm-nto.h: New file.
5619 * configure.host: Add i[3456]86-*-nto*.
5620
100f2e98
JB
56212003-07-03 Joel Brobecker <brobecker@gnat.com>
5622
5623 * remote-vx.c (vx_add_symbols): Fix compilation error.
5624
e23457df
AC
56252003-07-03 Andrew Cagney <cagney@redhat.com>
5626
5627 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5628 * gdbarch.h, gdbarch.c: Re-generate.
5629 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5630 (legacy_register_name): Declare.
5631 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5632 (REGISTER_NAME): Define.
5633 * sparc-tdep.c (legacy_register_name): New function.
5634 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5635 (REGISTER_NAME): Define.
5636 (hppa64_register_name): Declare.
5637 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5638 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5639 (hppa64_register_name): New function.
5640 (hppa_register_name): New function.
5641 * arch-utils.c (legacy_register_name): Delete.
5642 * arch-utils.h (legacy_register_name): Delete.
5643
38caaeec
DJ
56442003-07-03 Daniel Jacobowitz <drow@mvista.com>
5645
5646 * cli/cli-interp.c (cli_interpreter_resume): Update the
5647 cli_uiout's stream to gdb_stdout.
5648
dadd712e
AC
56492003-07-03 Andrew Cagney <cagney@redhat.com>
5650
5651 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5652 predicate.
5653 * gdbarch.h, gdbarch.c: Re-generate.
5654 * regcache.c (init_regcache_descr): Use legacy code when either
5655 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5656
c7f1390e
DJ
56572003-07-02 Daniel Jacobowitz <drow@mvista.com>
5658
5659 * NEWS: Move "set logging" entry into GDB 6.0 section.
5660
4bc8c588
JB
56612003-07-02 Jim Blandy <jimb@redhat.com>
5662
a9dd42f1
JB
5663 * s390-tdep.c (struct frame_extra_info): new member:
5664 'stack_bought_valid'.
5665 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5666 initialize fextra_info->stack_bought.
5667 (s390_frameless_function_invocation): Don't trust the value of
5668 fextra_info_ptr->stack_bought unless
5669 fextra_info->stack_bought_valid is set.
5670
4bc8c588
JB
5671 New S390 prologue analyzer.
5672 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5673 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5674 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5675 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5676 compute_x_addr, s390_on_stack, s390_store,
5677 s390_get_signal_frame_info): New functions.
5678 (S390_NUM_SPILL_SLOTS): New macro.
5679 (s390_get_frame_info): Rewritten.
5680 (is_arg_reg): Deleted.
5681
5682 Break out the decoding of S/390 instructions into separate
5683 functions, to make it more legible, and easier to check
5684 against the spec.
5685 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5686 is_rx, is_rxe): New functions.
5687 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5688 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5689 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5690 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5691 enums for opcode values. (Is this an improvement?)
5692
fd13a04a
AC
56932003-07-02 Andrew Cagney <cagney@redhat.com>
5694
5695 * i386-tdep.c: Revert change committed as part of trad-frame code
5696 below.
5697
3f8091c1
DJ
56982003-07-02 Daniel Jacobowitz <drow@mvista.com>
5699
5700 * breakpoint.c (insert_catchpoint): Make static.
5701
8dd5115e
AS
57022003-07-02 Andreas Schwab <schwab@suse.de>
5703
5704 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5705 former ia64_push_arguments and ia64_push_return_address, and use
5706 regcache functions instead of read/write_register.
5707 (ia64_gdbarch_init): Set push_dummy_call instead of
5708 deprecated_push_arguments and deprecated_push_return_address.
5709
a2229c23
AJ
57102003-07-01 Andreas Jaeger <aj@suse.de>
5711
5712 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5713 before the call.
5714 Set %rax only to number of SSE registers used.
5715
3b3850e8
AC
57162003-07-01 Andrew Cagney <cagney@redhat.com>
5717
5718 * trad-frame.h: Update comments, a -1 .addr is reserved.
5719 (trad_frame_value_p, trad_frame_addr_p): Declare.
5720 (trad_frame_reg_p): Declare.
5721 (trad_frame_set_value): Rename trad_frame_register_value.
5722 (trad_frame_set_unknown): Declare.
5723 * trad-frame.c (trad_frame_realreg_p): New function.
5724 (trad_frame_addr_p, trad_frame_value_p): New function.
5725 (trad_frame_set_unknown): New function.
5726 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5727 (trad_frame_prev_register): Use trad_frame_realreg_p,
5728 trad_frame_addr_p and trad_frame_value_p.
5729 (trad_frame_set_value): Rename trad_frame_register_value.
5730 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5731 and trad_frame_set_value.
a2229c23 5732
4d819d0e
JB
57332003-06-30 Jim Blandy <jimb@redhat.com>
5734
5735 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5736 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5737 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5738 for 16 registers, and then 32 more bytes.
5739 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5740 New macros.
5741 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5742 Move up in the file, since it's now used by is_simple_arg.
5743 (is_simple_arg): Don't assume registers are four bytes long.
5744 Exclude all double arguments. Extended floats are not simple
5745 args.
5746 (is_power_of_two): New function.
5747 (pass_by_copy_ref): Call is_power_of_two, and check that the
5748 length fits in a register, rather than listing all the acceptable
5749 sizes. Extended floats are not passed by reference.
5750 (s390_push_arguments): Don't assume registers are four bytes long.
5751 Reserve an argument register to point to the buffer for structures
5752 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5753 S390_STACK_FRAME_OVERHEAD.
5754
1ad828f1
AS
57552003-06-30 Andreas Schwab <schwab@suse.de>
5756
5757 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5758 format error message.
5759
39b00981
JB
57602003-06-30 Joel Brobecker <brobecker@gnat.com>
5761
5762 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5763
b2a7f303
DC
57642003-06-30 David Carlton <carlton@kealia.com>
5765
5766 Band-aid for PR c++/1245.
5767 * Makefile.in (cp-support.o): Depend on complaints_h.
5768 * cp-support.c: Include complaints.h. Add declaration for
5769 find_last_component.
5770 (cp_find_first_component): Separate code into
5771 cp_find_first_component_aux.
5772 (cp_find_first_component_aux): Call demangled_name_complaint.
5773 (demangled_name_complaint): New.
5774
a257b5bb
AC
57752003-06-30 Andrew Cagney <cagney@redhat.com>
5776
5777 * remote.c (remote_write_bytes): Explicitly compute and then use
5778 the payload size. Update comments to reflect. Fixes problem of
5779 GDB not sending small packets as found by Fred Fish.
5780
0a2cfde4
AC
57812003-06-30 Andrew Cagney <cagney@redhat.com>
5782
5783 * remote.c (remote_async_wait): Fix -Wformat problem.
5784
3fcb8548
AC
57852003-06-29 Andrew Cagney <cagney@redhat.com>
5786
5787 * remote.c (remote_wait): Call error, and not warning, when the
5788 packet is corrupt.
5789 (remote_async_wait): Ditto.
5790
9f9970a3
DJ
57912003-06-29 Daniel Jacobowitz <drow@mvista.com>
5792
5793 * sparc-tdep.c (sparc_y_regnum): Make external again.
5794
83a8ccca
DJ
57952003-06-29 Daniel Jacobowitz <drow@mvista.com>
5796
5797 * cli/cli-logging.c (pop_output_files): Add void to function
5798 definition.
5799
d2cf594a
AC
58002003-06-29 Andrew Cagney <cagney@redhat.com>
5801
5802 * frame.c (frame_register_unwind): Use unsigned char when dumping
5803 the buffer contents.
5804
0fac0b41
DJ
58052003-06-28 Daniel Jacobowitz <drow@mvista.com>
5806
5807 * cli/cli-logging.c: New file.
5808 * cli-out.c (struct ui_out_data): Add original_stream.
5809 (cli_redirect): New function.
5810 (cli_ui_out_impl): Add cli_redirect.
5811 (cli_out_new): Initialize original_stream.
5812 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5813 (uo_redirect, ui_out_redirect): New.
5814 * ui-out.h (struct ui_out_impl): Add redirect member.
5815 (redirect_ftype): New.
5816 (ui_out_redirect): Add prototype.
5817 * Makefile.in: Add rules for cli-logging.c.
5818 * NEWS: Mention "set logging".
5819
88a07d7c
EZ
58202003-06-27 Elena Zannoni <ezannoni@redhat.com>
5821
5822 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5823
4eb58876
AC
58242003-06-27 Andrew Cagney <cagney@redhat.com>
5825
5826 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5827 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5828 * avr-tdep.c (avr_call_dummy_address): Delete function.
5829 (avr_gdbarch_init): Do not set call_dummy_address.
5830
1549f619
EZ
58312003-06-27 Elena Zannoni <ezannoni@redhat.com>
5832
5833 * symfile.c (syms_from_objfile): Move variables to inner block.
5834 Move the checks for the non-mainline case a bit earlier to avoid
5835 doing some useless computations.
5836
3cb3398d
EZ
58372003-06-27 Elena Zannoni <ezannoni@redhat.com>
5838
5839 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5840
3799ccc6
EZ
58412003-06-26 Elena Zannoni <ezannoni@redhat.com>
5842
5843 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5844 sections.
5845
ce1f6491
MC
58462003-06-26 Michael Chastain <mec@shout.net>
5847
5848 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5849 gdb/testsuite/gdb.c++/pr-1210.exp.
5850
d958dfd0
AC
58512003-06-26 Andrew Cagney <cagney@redhat.com>
5852
5853 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5854 altivec_expression.h and altivec_registers.h.
5855
d31431ed
AC
58562003-06-26 Andrew Cagney <cagney@redhat.com>
5857
5858 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5859 info->mach when MIPS16. Patch suggested by Fred Fish.
5860
714b1282
AC
58612003-06-26 Andrew Cagney <cagney@redhat.com>
5862
5863 * utils.c (internal_vproblem): Print the problem to a reason
5864 buffer and then pass to query. Make the msg variable more local.
5865
42efa47a
AC
58662003-06-26 Andrew Cagney <cagney@redhat.com>
5867
5868 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5869 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5870 * gdbarch.h, gdbarch.c: Re-generate.
5871 * frame-base.c (default_frame_args_address): Update. Use
5872 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5873 not available.
5874 (default_frame_locals_address): Ditto for
5875 DEPRECATED_FRAME_LOCALS_ADDRESS.
5876 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5877 (vax_frame_num_args): Update.
5878 (vax_gdbarch_init): Update.
5879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5880 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5881 * mcore-tdep.c (mcore_gdbarch_init): Update.
5882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5883 * ia64-tdep.c (ia64_gdbarch_init): Update.
5884 * symtab.h (address_class): Update comments.
5885 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5886 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5887 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5888 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5889 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5890 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5891 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5892 * alpha-mdebug-tdep.c: Update.
5893 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5894
8ffd9b1b
AJ
58952003-06-26 Andreas Jaeger <aj@suse.de>
5896
5897 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5898 of SSE registers so that varargs functions work. Rework handling
5899 of passing arguments on the stack.
5900 (x86_64_store_return_value): Return double and float values in SSE
5901 register.
5902
e8ac10a6
MC
59032003-06-24 Michael Chastain <mec@shout.net>
5904
5905 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5906 the "constructor breakpoints ignored" bug.
5907
986af8e6
DC
59082003-06-25 David Carlton <carlton@kealia.com>
5909
5910 * MAINTAINERS: Update e-mail address.
5911
d64558a5
JB
59122003-06-24 Jim Blandy <jimb@redhat.com>
5913
e538d2d7
JB
5914 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5915
02631ec0
JB
5916 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5917 function.
5918 (ppc_linux_init_abi): Register it as the
5919 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5920
e716d87a
JB
5921 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5922 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5923 method.
5924
d64558a5
JB
5925 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5926 (ppc64_standard_linkage_target): Use it.
5927
449a5da4
AC
59282003-06-23 Andrew Cagney <cagney@redhat.com>
5929
5930 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5931 for 0 "int0" and 4 "int32" sized registers.
5932 * gdbtypes.c (builtin_type_int0): Define.
5933 (build_gdbtypes): Initialize builtin_type_int0.
5934 * gdbtypes.h (builtin_type_int0): Declare.
5935
b2a02dda
SC
59362003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5937
5938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5939 as characters are unsigned.
5940
fba3138e
DJ
59412003-06-22 Daniel Jacobowitz <drow@mvista.com>
5942
5943 PR gdb/1179
5944 * dwarfread.c (struct_type): Skip static fields without crashing.
5945
f6c8180b
AC
59462003-06-22 Andrew Cagney <cagney@redhat.com>
5947
5948 GDB 6.0 branch created.
f2c06f52
AC
5949 * README: Update.
5950 * PROBLEMS: Update. Empty.
5951 * NEWS: Update.
f6c8180b 5952
ae822768
DJ
59532003-06-22 Daniel Jacobowitz <drow@mvista.com>
5954
5955 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5956 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5957
261de166
AC
59582003-06-22 Andrew Cagney <cagney@redhat.com>
5959
5960 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5961 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5962 Velikov.
5963
30e94205
DJ
59642003-06-22 Daniel Jacobowitz <drow@mvista.com>
5965
5966 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5967 compilers.
5968
9e14d721
DJ
59692003-06-21 Daniel Jacobowitz <drow@mvista.com>
5970
5971 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5972 argument of val_print.
5973 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5974 to the address argument of baseclass_offset or target_read_memory.
5975 Do add it to the argument of cp_print_value_fields.
5976
a4b8ebc8
AC
59772003-06-21 Andrew Cagney <cagney@redhat.com>
5978
5979 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5980 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5981 instead of 0..NUM_REGS.
5982 (mips_register_reggroup_p): New function.
5983 (mips_pseudo_register_write): New function.
5984 (mips_pseudo_register_read): New function.
5985 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5986 based on the register's type.
5987 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5988 cooked.
5989 (mips_get_saved_register): Simplify. Assert that REGNO is a
5990 pseudo / cooked.
5991 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5992 (mips_register_type): Replace mips_register_virtual_type. Map
5993 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5994 when available.
5995 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5996 that the register is cooked / virtual.
5997 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5998 Only get the extra info when needed.
5999 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6000 (mips32_heuristic_proc_desc): Fetch the cooked register.
6001 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6002 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6003 (mips_print_register): Use gdbarch_register_type, instead of
6004 REGISTER_VIRTUAL_TYPE.
6005 (print_gp_register_row): Use gdbarch_register_type, instead of
6006 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6007 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6008 Print the pseudo / cooked registers.
6009 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6010 Print the pseudo / cooked registers.
6011 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6012 REG_NUM is pseudo / cooked.
6013 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6014 (mips_n32n64_xfer_return_value): Ditto.
6015 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6016 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6017 (mips_register_sim_regno): New function.
6018 (mips_gdbarch_init): Set deprecated_register_byte,
6019 register_group_p, pseudo_register_write, pseudo_register_read,
6020 register_sim_regno, and num_pseudo_regs. Set register_type,
6021 instead of register_virtual_type.
6022 * Makefile.in (mips-tdep.o): Update dependencies.
6023 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6024 REGISTER_VIRTUAL_TYPE.
6025 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6026 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6027 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6028 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6029 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6030
325ed089
DJ
60312003-06-21 Daniel Jacobowitz <drow@mvista.com>
6032
6033 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6034 * cli/cli-cmds.c: Include "gdb_vfork.h".
6035 (shell_escape): Use vfork.
6036
f0e7d0e8
AC
60372003-06-21 Andrew Cagney <cagney@redhat.com>
6038
c57bb9fa
AC
6039 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6040 32 bit floating-point register saves.
6041
6e51443a
AC
6042 * frame.h (deprecated_unwind_get_saved_register): Delete.
6043 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6044 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6045 and deprecated_get_next_frame_hack instead of
6046 deprecated_unwind_get_saved_register.
6047
ed183c7c
AC
6048 * mips-tdep.c (mips_dump_tdep): Do not print
6049 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6050
f0e7d0e8
AC
6051 * frame.c (get_frame_register): New function.
6052 (frame_unwind_register_signed): New function.
6053 (get_frame_register_signed): New function.
6054 (frame_unwind_register_unsigned): New function.
6055 (get_frame_register_unsigned): New function.
6056 * frame.h: Add comments on naming schema.
6057 (get_frame_register, frame_unwind_register_signed): Declare.
6058 (get_frame_register_signed, get_frame_register_signed): Declare.
6059 (frame_unwind_register_unsigned): Declare.
6060 (get_frame_register_unsigned): Declare.
6061
2224d941
TR
60622003-06-20 Theodore A. Roth <troth@openavr.org>
6063
6064 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6065
8619218d
TR
60662003-06-20 Theodore A. Roth <troth@openavr.org>
6067
6068 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6069 (avr_read_sp): Ditto.
6070
0b1b50c0
DJ
60712003-06-20 Daniel Jacobowitz <drow@mvista.com>
6072
6073 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6074 * config/arm/nm-linux.h: Likewise.
6075 * config/arm/tm-linux.h: Likewise.
6076 * config/ia64/nm-linux.h: Likewise.
6077 * config/ia64/tm-ia64.h: Likewise.
6078 * config/s390/tm-linux.h: Likewise.
6079 * config/s390/tm-s390.h: Likewise.
6080 * s390-nat.c: Likewise.
6081 * s390-tdep.c: Likewise.
6082
6083 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6084 * config/ia64/linux.mt: Likewise.
6085 * config/m68k/linux.mh: Likewise.
6086 * config/mips/linux.mt: Likewise.
6087 * config/powerpc/linux.mh: Likewise.
6088 * config/sh/linux.mt: Likewise.
6089
c8c18e65
KW
60902003-06-19 Kris Warkentin <kewarken@qnx.com>
6091
6092 * solib.c (solib_open): Change tests for whether to search
6093 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6094 comments.
6095
dcccef2e
TR
60962003-06-19 Theodore A. Roth <troth@openavr.org>
6097
6098 * avr-tdep.c (avr_frame_address): Delete function.
6099 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6100 set_gdbarch_frame_args_address.
6101
5861a190
AC
61022003-06-19 Andrew Cagney <cagney@redhat.com>
6103
6104 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6105 (REGISTER_CONVERT_FROM_TYPE): Delete.
6106 (mips_register_convert_to_type): Delete declaration.
6107 (mips_register_convert_from_type): Delete declaration.
6108 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6109 kernel/.
6110
0274a8ce
MS
61112003-06-19 Michael Snyder <msnyder@redhat.com>
6112
6113 * linux-nat.h: New file.
6114 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6115 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6116 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6117 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6118 (linux_make_note_section): Iterate over lwps instead of threads.
6119 (linux_do_thread_registers): Use lwp instead of merged pid.
6120 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6121 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6122 Add dependency on linux_nat_h.
6123
adf5f719
TR
61242003-06-19 Theodore A. Roth <troth@openavr.org>
6125
6126 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6127
6766a268
DJ
61282003-06-19 Daniel Jacobowitz <drow@mvista.com>
6129
6130 * varobj.c (get_type, get_target_type): Use check_typedef.
6131
1171114a
DJ
61322003-06-19 Daniel Jacobowitz <drow@mvista.com>
6133
6134 * breakpoint.c (insert_catchpoint): Call internal_error.
6135
adcf68a2
TR
61362003-06-19 Theodore A. Roth <troth@openavr.org>
6137
6138 * avr-tdep.c (avr_push_dummy_code): Delete function.
6139 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6140
ea67f13b
DJ
61412003-06-19 Daniel Jacobowitz <drow@mvista.com>
6142
6143 * arch-utils.c (default_prepare_to_proceed): Remove.
6144 (generic_prepare_to_proceed): Remove.
6145 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6146 (generic_prepare_to_proceed): Remove prototype.
6147 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6148 * gdbarch.c: Regenerate.
6149 * gdbarch.h: Regenerate.
6150 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6151 * hppah-nat.c (hppa_switched_threads): Remove.
6152 * infrun.c (prepare_to_proceed): New static function, copied from
6153 generic_prepare_to_proceed. Remove select_it argument.
6154 (proceed): Call prepare_to_proceed.
6155 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6156 variables.
6157 (ptrace_wait): Don't set the removed variables.
6158 (hppa_switched_threads): Remove.
6159 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6160 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6161 (lin_lwp_prepare_to_proceed): Remove prototype.
6162 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6163 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6164
4add8633
TR
61652003-06-18 Theodore A. Roth <troth@openavr.org>
6166
6167 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6168 trad-frame.h.
6169 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6170 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6171 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6172 (AVR_PROLOGUE_*): Enumerate prologue types.
6173 (struct frame_extra_info): Remove.
6174 (struct avr_unwind_cache): Define.
6175 (avr_write_sp): Delete function.
6176 (avr_read_fp): Ditto.
6177 (avr_init_extra_frame_info): Ditto.
6178 (avr_pop_frame): Ditto.
6179 (avr_frame_saved_pc): Ditto.
6180 (avr_saved_pc_after_call): Ditto.
6181 (avr_push_return_address): Ditto.
6182 (avr_frame_chain): Ditto.
6183 (avr_store_struct_return): Ditto.
6184 (avr_push_arguments): Ditto.
6185 (avr_scan_prologue): Update comments. Changed to set up the info for
6186 cache unwinding. Now returns end of prologue PC.
6187 (avr_skip_prologue): Better handling of functions lacking a prologue
6188 by using avr_scan_prologue.
6189 (avr_scan_arg_moves): New function.
6190 (avr_saved_regs_unwinder): Ditto.
6191 (avr_frame_unwind_cache): Ditto.
6192 (avr_unwind_pc): Ditto.
6193 (avr_frame_this_id): Ditto.
6194 (avr_frame_prev_register): Ditto.
6195 (avr_frame_p): Ditto.
6196 (avr_frame_base_address ): Ditto.
6197 (avr_unwind_dummy_id): Ditto.
6198 (avr_push_dummy_code): Ditto.
6199 (push_stack_item): Ditto.
6200 (pop_stack_item): Ditto.
6201 (avr_push_dummy_call): Ditto.
6202 (struct stack_item): Define.
6203 (avr_frame_unwind): Declare structure.
6204 (avr_frame_base): Ditto.
6205 (avr_gdbarch_init): Remove calls to
6206 set_gdbarch_deprecated_init_frame_pc,
6207 set_gdbarch_deprecated_target_read_fp,
6208 set_gdbarch_deprecated_dummy_write_sp,
6209 set_gdbarch_deprecated_fp_regnum,
6210 set_gdbarch_deprecated_push_arguments,
6211 set_gdbarch_deprecated_push_return_address,
6212 set_gdbarch_deprecated_pop_frame,
6213 set_gdbarch_deprecated_store_struct_return,
6214 set_gdbarch_deprecated_frame_init_saved_regs,
6215 set_gdbarch_deprecated_init_extra_frame_info,
6216 set_gdbarch_deprecated_frame_chain,
6217 set_gdbarch_deprecated_frame_saved_pc,
6218 set_gdbarch_deprecated_saved_pc_after_call.
6219 Add calls to set_gdbarch_push_dummy_call,
6220 set_gdbarch_push_dummy_code,
6221 frame_unwind_append_predicate,
6222 frame_base_set_default,
6223 set_gdbarch_unwind_dummy_id,
6224 set_gdbarch_unwind_pc.
6225 Wrap a long line.
6226
7be04a68
MS
62272003-06-18 Corinna Vinschen <vinschen@redhat.com>
6228
6229 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6230 registers for H8/300S.
6231 (h8300_print_registers_info): Ditto.
8ffd9b1b 6232 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6233
ae087d01
DJ
62342003-06-18 Daniel Jacobowitz <drow@mvista.com>
6235
6236 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6237 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6238 (lin_lwp_wait): Likewise. Update comments.
6239 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6240 (pull_pid_from_list, linux_record_stopped_pid): New.
6241
07d8f827
SC
62422003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6243
6244 * ada-lang.c (scan_discrim_bound): Name first argument.
6245 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6246 declared by ALL_BLOCK_SYMBOLS.
6247
7cb47b14
SC
62482003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6249
6250 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6251 ("regcache.h"): Include it.
6252 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6253
6ad8ae5c
DJ
62542003-06-17 Daniel Jacobowitz <drow@mvista.com>
6255
6256 * NEWS: Mention gdbserver detach change and "disconnect" command.
6257 * infcmd.c (disconnect_command): New function.
6258 (_initialize_infcmd): Add ``disconnect'' command.
6259 * remote.c (remote_async_detach): Delete.
6260 (remote_detach): Merge remote_async_detach.
6261 (remote_disconnect): New.
6262 (init_remote_ops): Set to_disconnect.
6263 (init_remote_cisco_ops): Likewise.
6264 (init_remote_async_ops): Likewise. Use remote_detach.
6265 * target.c (cleanup_target): Default to_disconnect.
6266 (update_current_target): Inherit to_disconnect.
6267 (target_disconnect, debug_to_disconnect): New functions.
6268 (setup_target_debug): Set to_disconnect.
6269 * target.h (struct target_ops): Add to_disconnect.
6270 (target_disconnect): Add prototype.
6271
687595f9
DJ
62722003-06-17 Daniel Jacobowitz <drow@mvista.com>
6273
6274 * breakpoint.c (insert_catchpoint): New function.
6275 (insert_breakpoints): Use catch_exceptions to call
6276 insert_catchpoint. Disable catchpoints if they fail to insert.
6277
29239a8f
DJ
62782003-06-17 Daniel Jacobowitz <drow@mvista.com>
6279
6280 * symfile.c (reread_symbols): Clear sym_private.
6281
2cdf3c63
AC
62822003-06-17 Andrew Cagney <cagney@redhat.com>
6283
6284 * trad-frame.h (struct frame_info): Add opaque declaration.
6285 * remote-fileio.h (struct cmd_list_element): Add opaque
6286 declaration.
6287 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6288 comments.
6289
cf0e1e0d
DJ
62902003-06-17 Daniel Jacobowitz <drow@mvista.com>
6291
6292 * remote.c (remote_prepare_to_store): Replace call to
6293 deprecated_read_register_bytes with multiple regcache_raw_read
6294 calls.
6295
192cdb19
KW
62962003-06-17 Kris Warkentin <kewarken@qnx.com>
6297
6298 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6299 (nto_find_and_open_solib): Likewise.
6300 (nto_init_solib_absolute_prefix): Likewise.
6301 (_initialize_nto_tdep): Fix indentation.
6302
89929b45
KW
63032003-06-17 Kris Warkentin <kewarken@qnx.com>
6304
6305 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6306
46019f27
KW
63072003-06-17 Kris Warkentin <kewarken@qnx.com>
6308
6309 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6310
1a38736e
JB
63112003-06-17 Jim Blandy <jimb@redhat.com>
6312
6313 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6314
3605c34a
TR
63152003-06-16 Theodore A. Roth <troth@openavr.org>
6316
6317 * avr-tdep.c (avr_extract_return_value): New function.
6318 (avr_gdbarch_init): Set extract_return_value method.
6319
870b3035
AC
63202003-06-16 Andrew Cagney <cagney@redhat.com>
6321
6322 * frame.h (deprecated_get_next_frame_hack): Declare.
6323 * frame.c (legacy_saved_regs_prev_register): Only require
6324 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6325 there are always saved regs.
6326 (deprecated_generic_get_saved_register): Do not require
6327 DEPRECATED_FRAME_INIT_SAVED_REGS.
6328 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6329 use frame ID unwind instead.
6330 (deprecated_get_next_frame_hack): New function.
6331
63d47a7d
CV
63322003-06-16 Corinna Vinschen <vinschen@redhat.com>
6333
6334 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6335 (h8300_push_dummy_call): ...this function. Some minor optimization.
6336 (h8300_push_return_address): Remove.
6337 (h8300_gdbarch_init): Remove calls to
6338 set_gdbarch_deprecated_dummy_write_sp,
6339 set_gdbarch_deprecated_push_arguments and
6340 set_gdbarch_deprecated_push_return_address.
6341 Add call to set_gdbarch_push_dummy_call.
6342
4bb1dc5e
CV
63432003-06-16 Corinna Vinschen <vinschen@redhat.com>
6344
6345 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6346 (E_PSEUDO_EXR_REGNUM): Ditto.
6347 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6348 registers into safe registers.
4bb1dc5e
CV
6349 (h8300_skip_prologue): Check for stm instruction to push registers
6350 used for register variables onto stack.
6351 (gdb_print_insn_h8300): Remove.
6352 (h8300_examine_prologue): Add a comment.
6353 (h8300_register_name): Take pseudo registers into account.
6354 (h8300s_register_name): Ditto.
6355 (h8300sx_register_name): Ditto.
6356 (h8300_print_register): Ditto.
6357 (h8300_print_registers_info): Define "nice" printing order.
6358 (h8300_saved_pc_after_call): Take pseudo registers into account.
6359 (h8300_register_type): Ditto. Return type used for remote connection
6360 when requesting real CCR or EXR register, return actual type when
6361 requesting pseudo CCR or EXR.
6362 (h8300_pseudo_register_read): New function.
6363 (h8300_pseudo_register_write): Ditto.
6364 (h8300_dbg_reg_to_regnum): Ditto.
6365 (h8300s_dbg_reg_to_regnum): Ditto.
6366 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6367 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6368 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6369 set_gdbarch_print_insn architecture dependent.
6370 Call set_gdbarch_pseudo_register_read and
6371 set_gdbarch_pseudo_register_write.
6372 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6373
a59fe496
AC
63742003-06-16 Andrew Cagney <cagney@redhat.com>
6375
6376 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6377 * gdbarch.h, gdbarch.c: Re-generate.
6378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6379 * s390-tdep.c (s390_gdbarch_init): Update.
6380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6382 * mips-tdep.c (mips_gdbarch_init): Update.
6383 * mcore-tdep.c (mcore_gdbarch_init): Update.
6384 * cris-tdep.c (cris_gdbarch_init): Update.
6385 * infcall.c (call_function_by_hand): Update.
6386 * ia64-tdep.c (ia64_push_arguments): Update comment.
6387 * frame.c (legacy_get_prev_frame): Do not assume
6388 SAVE_DUMMY_FRAME_TOS_P.
6389 * dummy-frame.c (find_dummy_frame): Update comment.
6390
6f4e5a41
AC
63912003-06-16 Andrew Cagney <cagney@redhat.com>
6392
6393 * regcache.c (do_cooked_read): Do not use register_valid_p.
6394
72fab697
TR
63952003-06-15 Theodore A. Roth <troth@openavr.org>
6396
6397 * avr-tdep.c (avr_register_type): Remove a blank line.
6398 (avr_scan_prologue): Correct some comments.
6399
e3d8b004
TR
64002003-06-15 Theodore A. Roth <troth@openavr.org>
6401
6402 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6403 prologue types.
8ffd9b1b 6404 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6405 option.
6406 Add code to scan -mcall-prologues for mega devices.
6407
866b76ea
TR
64082003-06-15 Theodore A. Roth <troth@openavr.org>
6409
6410 * avr-tdep.c (avr_register_byte): Delete function.
6411 (avr_register_raw_size): Delete function.
6412 (avr_register_virtual_size): Delete function.
6413 (avr_register_virtual_type): Delete function.
6414 (avr_register_type): New function.
6415 (avr_address_to_pointer): Remove unused code.
6416 (avr_read_fp): Need to read FP as two separate bytes due to change to
6417 avr_register_type() usage.
6418 (avr_gdbarch_init): Don't set deprecated_register_size.
6419 Don't set deprecated_register_bytes.
6420 Don't set deprecated_register_byte.
6421 Don't set deprecated_register_raw_size.
6422 Don't set deprecated_max_register_raw_size.
6423 Don't set deprecated_register_virtual_size.
6424 Don't set deprecated_max_register_virtual_size.
6425 Don't set deprecated_register_virtual_type.
6426 Set register_type method.
6427
3993f6b1
DJ
64282003-06-15 Daniel Jacobowitz <drow@mvista.com>
6429
6430 * Makefile.in (linux-nat.o): Add rule.
6431 * linux-nat.c: New file.
6432 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6433 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6434 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6435 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6436 * config/arm/linux.mh (NATDEPFILES): Likewise.
6437 * config/i386/linux.mh (NATDEPFILES): Likewise.
6438 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6439 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6440 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6441 * config/mips/linux.mh (NATDEPFILES): Likewise.
6442 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6443 * config/s390/s390.mh (NATDEPFILES): Likewise.
6444 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6445
786a90bb
MK
64462003-06-15 Mark Kettenis <kettenis@gnu.org>
6447
6448 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6449 replace out-of-date comment.
6450
3bd3f01e
AC
64512003-06-15 Andrew Cagney <cagney@redhat.com>
6452
6453 * rdi-share/host.h (Fail): Change to a varargs function.
6454 * remote-rdi.c (Fail): Update.
8ffd9b1b 6455
de5b9bb9
MK
64562003-06-15 Mark Kettenis <kettenis@gnu.org>
6457
6458 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6459 (i386_convert_register_p, i386_register_to_value,
6460 i386_register_from_value): Handle types longer than 8 bytes.
6461
d532c08f
MK
64622003-06-15 Mark Kettenis <kettenis@gnu.org>
6463
6464 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6465 Move floating-point code to new function in i387-tdep.c.
6466 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6467 New functions containing code moved here from i386-tdep.c.
6468 * i387-tdep.h: Add opaque declaration for `struct type'.
6469 (i387_register_to_value, i387_value_to_register): New prototypes.
6470 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6471 (x86_64_init_abi): Set convert_register_p, register_to_value and
6472 value_to_register here.
8ffd9b1b 6473
42c466d7
AC
64742003-06-14 Andrew Cagney <cagney@redhat.com>
6475
6476 * mips-tdep.c (mips_register_to_value): Make static.
6477 (mips_value_to_register): Make static.
6478 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6479 * ia64-tdep.c (ia64_register_raw_size): Make static.
6480 (ia64_register_virtual_size): Make static.
6481 (ia64_register_byte): Make static.
6482 * i387-tdep.c: Include "i387-tdep.h".
6483 (print_387_control_word): Delete function.
6484 (print_387_status_word): Delete function.
6485 (print_387_status_bits): Delete function.
6486 (print_387_control_bits): Delete function.
6487 * Makefile.in (i387-tdep.o): Update dependencies.
6488 * rdi-share/host.h (Fail): Declare.
6489 * remote-rdi.c (Fail): Update to match declaration.
6490
2a9cda49
AC
64912003-06-14 Andrew Cagney <cagney@redhat.com>
6492
6493 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6494 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6495 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6496 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6497 * README: Delete reference to remote-array.
6498 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6499 (remote-array.o): Delete target.
6500 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6501 * remote-array.c: Delete file.
6502
ff2e87ac
AC
65032003-06-14 Andrew Cagney <cagney@redhat.com>
6504 Mark Kettenis <kettenis@gnu.org>
6505
6506 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6507 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6508 parameter with "frame".
6509 * gdbarch.h, gdbarch.c: Re-generate.
6510 * frame.h (put_frame_register): Declare.
6511 * frame.c (put_frame_register): New function.
6512 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6513 (legacy_register_to_value): Rewrite, use "frame" to get the
6514 register value.
6515 (legacy_value_to_register): Rewrite, use "frame" to find the
6516 register's location before storing.
6517 * arch-utils.h (legacy_convert_register_p): Update.
6518 (legacy_register_to_value, legacy_value_to_register): Update.
6519 * findvar.c (value_from_register): Rewrite, eliminate use of
6520 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6521 "frame" to REGISTER_TO_VALUE.
6522 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6523 lval_reg_frame_relative + lval_register branch of the switch. Do
6524 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6525 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6526 I386_EDI_REGNUM): New defines.
6527 (i386_next_regnum, i386_convert_register_p,
6528 i386_register_to_value, i386_value_to_register): New functions.
6529 (i386_register_convertible, i386_register_convert_to_virtual,
6530 i386_convert_to_raw): Remove functions.
6531 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6532 value_to_register instead of register_convertible,
6533 register_convert_to_virtual and register_convert_to_raw.
6534 * mips-tdep.c (mips_convert_register_p): New function.
6535 (mips_value_to_register): Replace mips_register_convert_from_type.
6536 (mips_register_to_value): Replace mips_register_convert_to_type.
6537 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6538 register_to_value.
6539 * alpha-tdep.c (alpha_convert_register_p): Update.
6540 (alpha_value_to_register): Update, store the register.
6541 (alpha_register_to_value): Update, fetch the register.
6542
98be1e77
TR
65432003-06-14 Theodore A. Roth <troth@openavr.org>
6544
6545 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6546 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6547 Don't set deprecated_call_dummy_words.
6548 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6549 Don't set remote_translate_xfer_address.
6550 (avr_io_reg_read_command): Remove commented out debug printf.
6551 Wrap a long line.
6552
57bc6122
TR
65532003-06-14 Theodore A. Roth <troth@openavr.org>
6554
6555 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6556 causes gdb to seg fault.
6557
eb01fc62
DJ
65582003-06-14 Daniel Jacobowitz <drow@mvista.com>
6559
6560 * sparc-nat.c (fetch_inferior_registers): Correct
6561 a reference to "registers".
6562
3b3e6bee
DJ
65632003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6564
6565 * Makefile.in (exc_request_U_h): Define
6566 (exc_request_S_h): Likewise.
6567 (msg_reply_S_h): Likewise.
6568 (msg_U_h): Likewise.
6569 (notify_S_h): Likewise.
6570 (process_reply_S_h): Likewise.
6571 (gnu-nat.o): Depend on gdb_obstack_h
6572 * gnu-nat.c: Include "gdb_obstack.h".
6573
b8de8283
AC
65742003-06-13 Andrew Cagney <cagney@redhat.com>
6575
6576 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6577 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6578
f3be58bc
AC
65792003-06-13 Andrew Cagney <cagney@redhat.com>
6580
6581 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6582 when deprecated REGISTER macros can be deleted.
6583 * gdbarch.h, gdbarch.c: Re-generate.
6584
4c0122c8
JB
65852003-06-13 Jim Blandy <jimb@redhat.com>
6586
6587 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6588 Linux entry point symbols for _dl_debug_state, too.
6589
3e210248
AC
65902003-06-13 Andrew Cagney <cagney@redhat.com>
6591
6592 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6593 available, do not use the FP register, and always save the TOS.
6594 * dummy-frame.c (dummy_frame_this_id): Do not assert
6595 SAVE_DUMMY_FRAME_TOS.
6596 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6597 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6598 (i386_push_dummy_call): Add 8 to the returned SP.
6599 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6600 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6601 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6602 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6603 (x86_64_push_dummy_call): Return "sp + 16".
6604 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6605 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6606 save_dummy_frame_tos.
6607
0b65af49
JB
66082003-06-13 Jim Blandy <jimb@redhat.com>
6609
6610 * frv-tdep.c (frv_use_struct_convention): Delete static
6611 declaration for function deleted in my change of 2003-06-12.
6612
4ea2465e
TR
66132003-06-13 Theodore A. Roth <troth@openavr.org>
6614
6615 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6616 (avr_pointer_to_address): Shift code addrs left 1 bit.
6617 (avr_convert_from_func_ptr_addr): Delete function since operation is
6618 better handled by avr_address_to_pointer and avr_pointer_to_address.
6619 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6620
1581182a
MK
66212003-06-13 Mark Kettenis <kettenis@gnu.org>
6622
6623 From Kelley Cook <kelleycook@wideopenwest.com>:
6624 * configure.host: Accept i[34567]86 variants.
6625 * configure.tgt: Likewise.
6626 * nlm/configure.in: Likewise.
6627 * nlm/configure: Regenerated.
6628
7aa1783e
RE
66292003-06-13 Richard Earnshaw <rearnsha@arm.com>
6630
6631 * arm-tdep.c (solib-svr4.h): Dont' include it.
6632 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6633 * arm-linux-tdep.c: ... here. Make static.
6634 (arm_linux_init_abi): Register it.
6635 (solib-svr4.h): Include it.
6636 * Makefile.in: Update dependencies.
6637 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6638 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6639
0261a0d0
CV
66402003-06-13 Corinna Vinschen <vinschen@redhat.com>
6641
6642 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6643 indicate registers used for return values.
6644 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6645 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6646 members.
6647 (h8300_init_extra_frame_info): Ditto.
6648 (h8300_frame_locals_address): Removed.
6649 (h8300_frame_args_address): Removed.
6650 (h8300_extract_return_value): Use new regcache structure. Only care
6651 for 16 bit CPUs.
6652 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6653 (h8300_store_return_value): Use new regcache structure. Only care
6654 for 16 bit CPUs.
6655 (h8300h_store_return_value): Same function for 32 bit CPUs.
6656 (h8300_store_struct_return): Removed.
6657 (h8300_extract_struct_value_address): Use new regcache structure.
6658 (h8300h_extract_struct_value_address): Removed.
6659 (h8300_push_dummy_code): New function.
6660 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6661 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6662 set_gdbarch_store_return_value architecture dependent.
6663 Call set_gdbarch_push_dummy_code and
6664 set_gdbarch_extract_struct_value_address.
6665 Remove calls to set_gdbarch_frame_args_address,
6666 set_gdbarch_frame_locals_address,
6667 set_gdbarch_deprecated_store_struct_return,
6668 set_gdbarch_deprecated_extract_return_value,
6669 set_gdbarch_deprecated_extract_struct_value_address,
6670 set_gdbarch_deprecated_call_dummy_words and
6671 set_gdbarch_deprecated_sizeof_call_dummy_words.
6672
055c394a
CV
66732003-06-13 Corinna Vinschen <vinschen@redhat.com>
6674
6675 * h8300-tdep.c (h8300_register_byte): Remove.
6676 (h8300h_register_byte): Remove.
6677 (h8300_register_virtual_type): Remove. Substitute by...
6678 (h8300_register_type): New function.
6679 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6680 (h8300h_extract_struct_value_address): Ditto.
6681 (h8300_gdbarch_init): Drop calls to
6682 set_gdbarch_deprecated_register_byte and
6683 set_gdbarch_deprecated_register_virtual_type.
6684 Add call to set_gdbarch_register_type.
6685
9c04cab7
AC
66862003-06-13 Andrew Cagney <cagney@redhat.com>
6687
6688 * gdbarch.sh: Update comments on registers.
6689 (deprecated_register_byte): Rename register_byte.
6690 (deprecated_register_raw_size): Rename register_raw_size.
6691 (deprecated_register_virtual_size): Rename register_virtual_size.
6692 (deprecated_register_virtual_type): Rename register_virtual_type.
6693 * gdbarch.h, gdbarch.c: Re-generate.
6694 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6695 * vax-tdep.c (vax_gdbarch_init): Update.
6696 * v850-tdep.c (v850_gdbarch_init): Update.
6697 * sparc-tdep.c (sparc_gdbarch_init): Update.
6698 * sh-tdep.c (sh_gdbarch_init): Update.
6699 * s390-tdep.c (s390_gdbarch_init): Update.
6700 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6701 * ns32k-tdep.c: Update.
6702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6703 * mips-tdep.c (mips_gdbarch_init): Update.
6704 * mcore-tdep.c (mcore_gdbarch_init): Update.
6705 * m68k-tdep.c (m68k_gdbarch_init): Update.
6706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6707 * ia64-tdep.c (ia64_gdbarch_init): Update.
6708 * hppa-tdep.c (hppa_gdbarch_init): Update.
6709 * h8300-tdep.c (h8300_gdbarch_init): Update.
6710 * frv-tdep.c (frv_gdbarch_init): Update.
6711 * cris-tdep.c (cris_gdbarch_init): Update.
6712 * avr-tdep.c (avr_gdbarch_init): Update.
6713 * alpha-tdep.c (alpha_gdbarch_init): Update.
6714 * arm-tdep.c (arm_gdbarch_init): Update.
6715
b060cbea
AC
67162003-06-13 Andrew Cagney <cagney@redhat.com>
6717
6718 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6719 mips_o32_use_struct_convention with always_use_struct_convention.
6720
0fc9922a
DC
67212003-06-12 David Carlton <carlton@kealia.com>
6722
6723 * cp-namespace.c (cp_set_block_scope): Comment out
6724 processing_has_namespace_info branch.
6725
1fd35568
JB
67262003-06-12 Jim Blandy <jimb@redhat.com>
6727
f470a70a
JB
6728 Recognize and skip 64-bit PowerPC Linux linkage functions.
6729 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6730 insn_pattern, insns_match_pattern, d_field, ds_field): New
6731 functions, macros, and types for working with PPC instructions.
6732 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6733 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6734 ppc64_skip_trampoline_code): New functions, variables, and macros
6735 for recognizing and skipping linkage functions.
6736 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6737 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6738
49ff75ad
JB
6739 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6740 register offsets for both the 32- and 64-bit interfaces.
6741
bd918c83
JB
6742 Actually finish the job started by my change of 2003-05-29.
6743 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6744 other #definition of this.
6745 (ppc_linux_skip_trampoline_code): Remove declaration.
6746 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6747 static.
6748 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6749 method for GDBARCH.
6750
6751 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6752 'long' on ppc64-*-linux*.
6753
f8c59253
JB
6754 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6755 isn't #defined, assume the register doesn't exist: act as if
6756 tdep->ppc_mq_regnum were -1.
6757
8fbb30b1
JB
6758 * configure.host, configure.tgt: Add entries for
6759 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6760 powerpc/linux.mt.
6761 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6762 New files.
6763
1fd35568
JB
6764 * arch-utils.c (always_use_struct_convention): New function.
6765 * arch-utils.h (always_use_struct_convention): New prototype.
6766 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6767 (alpha_gdbarch_init): Register always_use_struct_convention,
6768 instead of alpha_use_struct_convention.
6769 * cris-tdep.c (cris_use_struct_convention): Delete.
6770 (cris_gdbarch_init): Register always_use_struct_convention,
6771 instead of cris_use_struct_convention.
6772 * frv-tdep.c (frv_use_struct_convention): Delete.
6773 (frv_gdbarch_init): Register always_use_struct_convention,
6774 instead of frv_use_struct_convention.
6775 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6776 (h8300_gdbarch_init): Register always_use_struct_convention,
6777 instead of h8300_use_struct_convention.
e3305dd9 6778 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6779 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6780 instead of mips_o32_use_struct_convention.
6781
e14e6e9c
AC
67822003-06-12 Andrew Cagney <cagney@redhat.com>
6783
6784 * wince.c: Include "mips-tdep.h".
6785 * mips-tdep.h (mips_next_pc): Declare.
6786 * mcore-tdep.c: Make more local functions static.
6787 * Makefile.in (wince.o): Update dependencies.
6788
2335f48e
DC
67892003-06-12 David Carlton <carlton@kealia.com>
6790
6791 * symtab.c (lookup_symbol_aux_minsyms): Replace
6792 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6793 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6794 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6795 SYMBOL_NATURAL_NAME.
6796
f70a7d61
AS
67972003-06-12 Andreas Schwab <schwab@suse.de>
6798
6799 * Makefile.in (tuiDisassem.o): Update dependencies.
6800
b6429628
DC
68012003-06-12 David Carlton <carlton@bactrian.org>
6802
6803 * symtab.h: Delete declaration of make_symbol_overload_list.
6804 Add declaration of lookup_partial_symbol.
6805 * symtab.c (remove_params): Move to cp-support.c.
6806 (overload_list_add_symbol, make_symbol_overload_list)
6807 (sym_return_val_size, sym_return_val_index): Ditto.
6808 (lookup_partial_symbol): Make extern.
6809 * cp-support.h: Add declaration of make_symbol_overload_list.
6810 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6811 symtab.h, and block.h.
6812 (remove_params): Move here from symtab.c.
6813 (overload_list_add_symbol, make_symbol_overload_list)
6814 (sym_return_val_size, sym_return_val_index): Ditto.
6815 * valops.c: Include cp-support.h.
6816 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6817 frame_h, and block_h.
6818 (valops.o): Depend on cp_support_h.
6819
084edea5
CV
68202003-06-12 Corinna Vinschen <vinschen@redhat.com>
6821
6822 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6823 substitute by NUM_REGS throughout.
6824 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6825 (h8300s_register_name): New function for H8S registers.
6826 (h8300sx_register_name): Ditto for H8SX registers.
6827 (h8300_print_register): Revise register printing, avoid depending
6828 on 32 bit long.
0261a0d0 6829 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6830 (h8300h_register_byte): New function for any other architecture.
6831 (h8300_register_raw_size): Remove.
6832 (h8300_register_virtual_type): Revise to return actually useful
6833 type.
6834 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6835 (h8300h_extract_struct_value_address): New function for any other
6836 architecture.
6837 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6838 set_gdbarch_register_name, set_gdbarch_register_byte,
6839 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6840 Remove calls to set_gdbarch_deprecated_register_size,
6841 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6842 set_gdbarch_deprecated_max_register_raw_size,
6843 set_gdbarch_register_virtual_size and
6844 set_gdbarch_deprecated_max_register_virtual_size entirely.
6845 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6846 set_gdbarch_long_double_bit.
6847
06194148
JJ
68482003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6849
8ffd9b1b
AJ
6850 * doublest.c (convert_doublest_to_floatformat): When dealing
6851 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6852 processing a full 32 bits of mantissa.
6853
de4f826b
DC
68542003-06-11 David Carlton <carlton@bactrian.org>
6855
6856 * dictionary.h: New.
6857 * dictionary.c: New.
6858 * block.h: Add opaque declaration for struct dictionary.
6859 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6860 'sym' members.
6861 (BLOCK_DICT): New macro.
6862 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6863 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6864 BLOCK_SHOULD_SORT.
6865 (ALL_BLOCK_SYMBOLS): Update definition.
6866 * Makefile.in (SFILES): Add dictionary.c.
6867 (dictionary_h): New.
6868 (COMMON_OBS): Add dictionary.o.
6869 (dictionary.o): New.
6870 (ada-lang.o): Depend on dictionary_h.
6871 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6872 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6873 (mi-cmd-stack.o): Ditto.
6874 (gdbtk-cmds.o): Update dependencies.
6875 (gdbtk-stack.o): Ditto.
6876 * ada-lang.c: Include dictionary.h.
6877 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6878 (fill_in_ada_prototype, debug_print_block): Ditto.
6879 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6880 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6881 'is_sorted'.
6882 * mdebugread.c: Include dictionary.h.
6883 (struct parse_stack): Delete 'maxsyms' member.
6884 (parse_symbol): Update calls to new_block. Delete calls to
6885 shrink_block. Use dictionary methods.
6886 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6887 Update calls to new_symtab. Don't maintain maxsyms data.
6888 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6889 (add_symbol): Just call dict_add_symbol.
6890 (new_symtab): Delete 'maxsyms' argument.
6891 (new_symtab): Update calls to new_block.
6892 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6893 (shrink_block): Delete function.
6894 (fixup_sigtramp): Update call to new_block. Add symbol via
6895 dict_add_symbol.
6896 * jv-lang.c: Include dictionary.h.
6897 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6898 appropriately. Set class_symtab->free_func. Make sure the
6899 blockvector is big enough to hold two blocks.
6900 (add_class_symtab_symbol): Use dictionary methods.
6901 (free_class_block): New function.
6902 (type_from_class): Replace explicit iteration by
6903 ALL_BLOCK_SYMBOLS.
6904 * symtab.h (struct symtab): Replace 'free_ptr' method by
6905 'free_func'.
6906 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6907 sort_symtab_syms.
6908 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6909 sort_symtab_syms.
6910 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6911 Include dictionary.h.
6912 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6913 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6914 sort_symtab_syms.
6915 * objfiles.c: Include dictionary.h.
6916 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6917 * buildsym.c: Include dictionary.h.
6918 (finish_block): Use dictionary methods.
6919 (end_symtab): Set free_func to NULL, not free_ptr.
6920 * tracepoint.c: Include dictionary.h.
6921 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6922 (scope_info): Ditto.
6923 * stack.c: Include dictionary.h.
6924 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6925 (print_block_frame_labels, print_frame_arg_vars)
6926 (print_frame_args): Ditto.
6927 * symmisc.c (free_symtab_block): Use dictionary methods.
6928 (dump_symtab): Ditto.
6929 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6930 Include dictionary.h.
6931 * symfile.h: Delete declarations of sort_block_syms,
6932 sort_symtab_syms.
6933 * symfile.c (sort_block_syms): Delete.
6934 (sort_symtab_syms): Delete.
6935 * symtab.c: Include dictionary.h.
6936 (lookup_block_symbol): Use dictionary iterators.
6937 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6938 (search_symbols, make_symbol_completion_list): Ditto.
6939 (make_symbol_overload_list): Ditto.
6940 * valops.c (value_of_local): Use dict_empty.
6941 Include dictionary.h.
6942
a31f978c
JB
69432003-06-11 J. Brobecker <brobecker@gnat.com>
6944
6945 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6946
526e70c0
DC
69472003-06-11 David Carlton <carlton@bactrian.org>
6948
6949 * block.h (BLOCK_SHOULD_SORT): Delete.
6950 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6951 blocks.
6952 * ada-lang.c (ada_add_block_symbols): Ditto.
6953 * symfile.c (sort_block_syms): Delete.
6954 (sort_symtab_syms): Ditto.
6955 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6956 declarations.
6957 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6958 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6959 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6960 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6961 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6962 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6963 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6964
33c08150
JJ
69652003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6966
8ffd9b1b 6967 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6968 bits to 128.
6969
781a750d
AC
69702003-06-11 Andrew Cagney <cagney@redhat.com>
6971
6972 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6973 REGISTER_CONVERTIBLE.
6974 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6975 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6976 * gdbarch.h, gdbarch.c: Re-generate.
6977 * arch-utils.h (deprecated_register_convertible_not): Rename
6978 generic_register_convertible_not.
6979 * arch-utils.c (deprecated_register_convertible_not): Rename
6980 generic_register_convertible.
6981 (legacy_convert_register_p, legacy_register_to_value): Update.
6982 * sh-tdep.c (sh64_push_arguments): Update.
6983 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6984 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6985 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6986 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6987 * arch-utils.c (legacy_value_to_register): Update.
6988 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6989 (rs6000_register_convert_to_raw): Make parameter "from" const.
6990 * mips-tdep.c (mips_gdbarch_init): Update.
6991 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6992 * infcmd.c (default_print_registers_info): Update.
6993 * ia64-tdep.c (ia64_gdbarch_init): Update.
6994 (ia64_register_convert_to_raw): Make parameter "from" const.
6995 * i386-tdep.c (i386_gdbarch_init): Update.
6996 (i386_register_convert_to_raw): Update.
6997
cd90e54f
AC
69982003-06-11 Andrew Cagney <cagney@redhat.com>
6999
7000 * remote-fileio.c: Include "remote-fileio.h".
7001 * Makefile.in (remote-fileio.o): Update dependencies.
7002 (remote_fileio_h): Fix typo.
7003
a78f21af
AC
70042003-06-11 Andrew Cagney <cagney@redhat.com>
7005
7006 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7007 (xstormy16_save_dummy_frame_tos): Make static.
7008 (_initialize_xstormy16_tdep): Add declaration.
7009 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7010 * v850-tdep.c: Make local functions static.
7011 (_initialize_v850_tdep): Add declaration.
7012 * sparc-tdep.c: Make local functions static.
7013 (_initialize_sparc_tdep): Add declaration.
7014 * sh-tdep.c: Make local functions static.
7015 (_initialize_sh_tdep): Add declaration.
7016 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7017 * s390-tdep.c: Make local functions static.
7018 (_initialize_s390_tdep): Add declaration.
7019 * dbxread.c (find_stab_function_addr): Make static.
7020 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7021 * ocd.c (_initialize_remote_ocd): Add declaration.
7022 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7023 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7024 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7025 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7026 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7027 * remote-array.c (_initialize_array): Add declaration.
7028 (_initialize_remote_monitors): Add declaration.
7029 * remote-mips.c: Make local functions static.
7030 (_initialize_remote_mips): Add declaration.
7031 * mcore-tdep.c: Make all local functions static.
7032 (_initialize_mcore_tdep): Add declaration.
7033 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7034 * abug-rom.c (_initialize_abug_rom): Add declaration.
7035 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7036 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7037 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7038 * remote-est.c (_initialize_est): Add declaration.
7039 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7040 (m68hc11_call_dummy_address): Make static.
7041 * ia64-tdep.c: Make local functions static.
7042 (_initialize_ia64_tdep): Add declaration.
7043 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7044 * monitor.c (monitor_wait_filter): Make static.
7045 (_initialize_remote_monitors): Add declaration.
7046 * remote-hms.c (_initialize_remote_hms): Add declaration.
7047 * remote-e7000.c (fetch_regs_from_dump): Make static.
7048 (expect_n): Make static.
7049 (_initialize_remote_e7000): Add declaration.
7050 * ser-e7kpc.c: Always include "defs.h".
7051 (_initialize_ser_e7000pc): Add declaration.
7052 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7053 * cris-tdep.c: Make all but one function static.
7054 (_initialize_cris_tdep): Add declaration.
7055 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7056 * solib.c (update_solib_list): Make static.
7057 (_initialize_solib): Add declaration.
7058 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7059 (_initialize_avr_tdep): Add declaration.
7060 * remote-rdi.c (voiddummy): Make static.
7061 (_initialize_remote_rdi): Add declaration.
7062 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7063 * remote-rdp.c (send_rdp): Make static.
7064 (_initialize_remote_rdp): Add declaration.
7065 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7066
cbcdb1f5
CV
70672003-06-11 Corinna Vinschen <vinschen@redhat.com>
7068
7069 * remote-fileio.c: Make ari happy.
7070
a191ea8d
JB
70712003-06-10 J. Brobecker <brobecker@gnat.com>
7072
7073 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7074 fetching the trailing bytes of the buffer we are about to write.
7075
0ef75e11
AC
70762003-06-10 Andrew Cagney <cagney@redhat.com>
7077
7078 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7079 * Makefile.in (remote-fileio.o): Update dependencies.
7080 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7081 include <setjmp.h>, or <sys/types.h> conditional on USG.
7082 (remote_fio_jmp_buf): Delete global variable.
7083
449092f6 70842003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7085 Martin M. Hunt <hunt@redhat.com>
449092f6 7086
559fa028
AC
7087 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7088 (SFILES): Add remote-fileio.c.
7089 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7090 dependencies for building remote.o.
449092f6
CV
7091 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7092 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7093 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7094 static storage class.
7095 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7096 'F' packet.
7097 (_initialize_remote): Call initialize_remote_fileio().
7098 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7099 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7100 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7101 (captured_main): Initialize new ui_files.
7102 * ui-file.c: Add read and fgets input functions.
7103 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7104 (null_file_read): New function.
7105 (ui_file_read): New function.
7106 (set_ui_file_read): New function.
7107 (stdio_file_read): New function.
7108 * ui-file.h: New type ui_file_read_ftype.
7109 (set_ui_file_read): Declare.
7110 (ui_file_read): Declare.
7111
248de703
AC
71122003-06-09 Andrew Cagney <cagney@redhat.com>
7113
7114 * frame.h (deprecated_unwind_get_saved_register): Rename
7115 generic_unwind_get_saved_register, update comments.
7116 * mips-tdep.c (mips_get_saved_register): Update.
7117 * frame.c (deprecated_unwind_get_saved_register): Update.
7118
0ed8aa57
AC
71192003-06-09 Andrew Cagney <cagney@redhat.com>
7120
7121 * vax-tdep.c (vax_frame_locals_address): Delete function.
7122 (vax_gdbarch_init): Do not set frame_locals_address.
7123 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7124 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7125 * s390-tdep.c (s390_frame_args_address): Delete function.
7126 (s390_gdbarch_init): Do not set frame_args_address or
7127 frame_locals_address.
7128 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7129 (ns32k_gdbarch_init): Do not set frame_locals_address.
7130 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7131 (hppa_frame_locals_address): Delete function.
7132 (hppa_gdbarch_init): Do not set frame_args_address, or
7133 frame_locals_address.
7134 * arm-tdep.c (arm_frame_args_address): Delete.
7135 (arm_frame_locals_address): Delete.
7136 (arm_gdbarch_init): Do not set frame_args_address, or
7137 frame_locals_address.
7138
983a287a
AC
71392003-06-09 Andrew Cagney <cagney@redhat.com>
7140
7141 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7142 * gdbarch.h, gdbarch.c: Re-generate.
7143 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7144 * arch-utils.c (frame_num_args_unknown): Delete function.
7145 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7146 (frame_info): Use FRAME_NUM_ARGS_P.
7147 * arm-tdep.c (arm_frame_num_args): Delete function.
7148 (arm_gdbarch_init): Do not set frame_num_args.
7149 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7150 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7151 (hppa_gdbarch_init): Do not set frame_num_args.
7152 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7154 frame_num_args to default frame_num_args_unknown.
7155 * v850-tdep.c (v850_gdbarch_init): Ditto.
7156 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7157 * sh-tdep.c (sh_gdbarch_init): Ditto.
7158 * s390-tdep.c (s390_gdbarch_init): Ditto.
7159 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7160 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7161 * mips-tdep.c (mips_gdbarch_init): Ditto.
7162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7163 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7166 * i386-tdep.c (i386_gdbarch_init): Ditto.
7167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7168 * frv-tdep.c (frv_gdbarch_init): Ditto.
7169 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7170 * cris-tdep.c (cris_gdbarch_init): Ditto.
7171 * avr-tdep.c (avr_gdbarch_init): Ditto.
7172 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7173
8d3b0994
AC
71742003-06-09 Andrew Cagney <cagney@redhat.com>
7175
7176 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7177 (print_frame_args): Moved to "stack.c".
7178 * stack.c: Include "gdb_assert.h".
7179 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7180 (print_frame_args): Moved from "printcmd.c".
7181 * frame.h (print_frame_args): Delete declaration.
7182 * Makefile.in (stack.o): Update dependencies.
7183
25e3a86b
AC
71842003-06-08 Andrew Cagney <cagney@redhat.com>
7185
7186 * frame.c (get_prev_frame): Remove reference to
7187 frame_args_address_correct in comments.
7188 * frame-base.c (default_frame_args_address): Delete code
7189 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7190 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7191 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7192 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7193 (vax_frame_args_address_correct): Delete declaration.
7194
a9e5fdc2
AC
71952003-06-08 Andrew Cagney <cagney@redhat.com>
7196
7197 * gdbarch.sh (UNWIND_SP): Add.
7198 * gdbarch.h, gdbarch.c: Re-generate.
7199 * frame.c (frame_sp_unwind): New function.
7200 (get_frame_sp): New function.
7201 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7202 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7203 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7204 value.
7205 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7206 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7207
8983bd83
AC
72082003-06-08 Andrew Cagney <cagney@redhat.com>
7209
7fec2c59
AC
7210 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7211 REMOTE_BREAKPOINT.
7212 * remote.c: Update.
7213 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7214 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7215 * config/m68k/tm-sun3.h: Update.
7216 * config/m68k/tm-m68klynx.h: Update.
7217 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7218
8983bd83
AC
7219 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7220 trad_frame". Update comments.
7221 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7222 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7223 (trad_frame_register_value, trad_frame_prev_register): Update.
7224
b9362cc7
AC
72252003-06-08 Andrew Cagney <cagney@redhat.com>
7226
7227 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7228 from GCC's acinclude.m4.
7229 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7230 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7231 * main.c (error_init): Delete declaration.
7232 * defs.h (error_init): Declare.
7233 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7234 (rs6000_convert_from_func_ptr_addr): Make static.
7235 (_initialize_rs6000_tdep): Add declaration.
7236 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7237 (show_commands, set_verbose, show_history): Delete declaration.
7238 * top.h (set_verbose): Add declaration.
7239 (show_history, set_history, show_commands): Add declaration.
7240 (do_restore_instream_cleanup): Add declaration.
7241 * objc-lang.c (specialcmp): Make static.
7242 (print_object_command): Make static.
7243 (find_objc_msgsend): Make static.
7244 (find_objc_msgcall_submethod_helper): Make static.
7245 (find_objc_msgcall_submethod): Make static.
7246 (_initialize_objc_language): Add declaration.
7247 (find_implementation_from_class): Make static.
7248 (find_implementation): Make static.
7249 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7250 * objc-lang.h (lookup_struct_typedef): Add declaration.
7251 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7252 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7253 (do_restore_user_call_depth): Make static.
7254 (do_restore_instream_cleanup): Delete declaration.
7255 (dont_repeat): Delete declaration.
7256 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7257 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7258 * reggroups.c (_initialize_reggroup): Add declaration.
7259 * cp-support.c (_initialize_cp_support): Add declaration.
7260 * cp-abi.c (_initialize_cp_abi): Add declaration.
7261 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7262 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7263 (_initialize_gnu_v3_abi): Add declaration.
7264 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7265 (_initialize_gnu_v2_abi): Add declaration.
7266 * frame-base.c (_initialize_frame_base): Add declaration.
7267 * doublest.c (floatformat_from_length): Make static.
7268 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7269 * frame.c (create_sentinel_frame): Make static.
7270 (_initialize_frame): Add declaration.
7271 * top.c (do_catch_errors): Make static.
7272 (gdb_rl_operate_and_get_next_completion): Make static.
7273 * typeprint.c: Include "typeprint.h".
7274 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7275 (sentinel_frame_this_id): Make static.
7276 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7277 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7278 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7279 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7280 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7281 * maint.c (maintenance_print_architecture): Make static.
7282 * signals/signals.c (_initialize_signals): Add declaration.
7283 * std-regs.c (_initialize_frame_reg): Add declaration.
7284 * jv-exp.y (push_variable): ISO C definition.
7285 (push_qualified_expression_name): Ditto.
7286 * memattr.c (_initialize_mem): Add declaration.
7287 * remote.c (remote_check_watch_resources): Make static.
7288 (remote_stopped_by_watchpoint): Make static.
7289 (remote_stopped_data_address): Make static.
7290 * d10v-tdep.c (nr_dmap_regs): Make static.
7291 (a0_regnum): Make static.
7292 (d10v_frame_unwind_cache): Make static.
7293 (d10v_frame_p): Make static.
7294 * osabi.c (show_osabi): Make static.
7295 (_initialize_gdb_osabi): Add extern declaration.
7296 * gdbtypes.c (make_qualified_type): Make static.
7297 (safe_parse_type): Make static.
7298 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7299 * macrotab.c (macro_bcache_free): Make static.
7300 * interps.c (interp_set_quiet): Make static.
7301 (interpreter_exec_cmd): Make static.
7302 * stack.h (select_frame_command): New file.
7303 * stack.c: Include "stack.h".
7304 (select_frame_command_wrapper): Delete function.
7305 (select_frame_command): Make global.
7306 * infcall.c: Include "infcall.h".
7307 * linespec.c: Include "linespec.h".
7308 * symfile.c (sections_overlap): Make static.
7309 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7310 * charset.c (_initialize_charset): Add missing prototype.
7311 * regcache.c (init_legacy_regcache_descr): Make static.
7312 (do_regcache_xfree): Make static.
7313 (regcache_xfer_part): Make static.
7314 (_initialize_regcache): Add missing prototype.
7315 * breakpoint.c (parse_breakpoint_sals): Make static.
7316 (breakpoint_sals_to_pc): Make static.
7317 * interps.h (clear_interpreter_hooks): ISO C declaration.
7318 * Makefile.in (stack_h): Define.
7319 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7320 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7321
a0f267c7
AC
73222003-06-08 Andrew Cagney <cagney@redhat.com>
7323
7324 * Makefile.in (d10v-tdep.o): Update dependencies.
7325 (SFILES): Add trad-frame.c.
7326 (trad_frame_h): Define.
7327 (COMMON_OBS): Add trad-frame.o.
7328 (trad-frame.o): Specify dependencies.
7329 * d10v-tdep.c: Include "trad-frame.h".
7330 (saved_regs_unwinder): Delete function.
7331 (d10v_frame_prev_register): Use trad_frame_prev_register.
7332 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7333 trad_frame", delete "regs" and "prev_sp".
7334 (prologue_find_regs): Use trad-frame.
7335 * trad-frame.h, trad-frame.c: New files.
7336
4538b4f4
MK
73372003-06-08 Mark Kettenis <kettenis@gnu.org>
7338
7339 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7340
a0273b2f
AF
73412003-06-07 Adam Fedor <fedor@gnu.org>
7342
7343 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7344 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7345 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7346 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7347 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7348 Use it.
7349
3a6c3343
AC
73502003-06-07 Andrew Cagney <cagney@redhat.com>
7351
7352 * symfile.h: Re-indent, clean up comments.
7353
b46e02f6
AC
73542003-06-07 Andrew Cagney <cagney@redhat.com>
7355
7356 * inferior.h (deprecated_write_sp): Replace
7357 generic_target_write_sp.
7358 * regcache.c (deprecated_write_sp): Replace
7359 generic_target_write_sp.
7360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7361 * vax-tdep.c (vax_gdbarch_init): Update.
7362 * v850-tdep.c (v850_gdbarch_init): Update.
7363 * sparc-tdep.c (sparc_gdbarch_init): Update.
7364 * sh-tdep.c (sh_gdbarch_init): Update.
7365 * s390-tdep.c (s390_gdbarch_init): Update.
7366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7369 * mcore-tdep.c (mcore_gdbarch_init): Update.
7370 * m68k-tdep.c (m68k_gdbarch_init): Update.
7371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7372 * ia64-tdep.c (ia64_gdbarch_init): Update.
7373 * h8300-tdep.c (h8300_gdbarch_init): Update.
7374 * frv-tdep.c (frv_gdbarch_init): Update.
7375 * cris-tdep.c (cris_gdbarch_init): Update.
7376 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7377
a42e117c
AC
73782003-06-07 Andrew Cagney <cagney@redhat.com>
7379
7380 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7381 Assert that PC_REGNUM is valid.
7382 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7383
bd1ce8ba
AC
73842003-06-07 Andrew Cagney <cagney@redhat.com>
7385
7386 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7387 * gdbarch.h, gdbarch.c: Regenerate.
7388 * mn10300-tdep.c: Include "gdb_assert.h".
7389 (mn10300_read_fp): New function.
7390 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7391 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7392 * ia64-tdep.c: Include "gdb_assert.h".
7393 (ia64_read_fp): New function.
7394 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7395 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7396 * regcache.c (generic_target_read_sp): Delete function.
7397 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7398 * inferior.h (generic_target_read_sp): Delete declaration.
7399 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7400 generic_target_read_sp.
7401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7402 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7403 * sh-tdep.c (sh_gdbarch_init): Ditto.
7404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7405 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7406
ec5cbaec
AC
74072003-06-07 Andrew Cagney <cagney@redhat.com>
7408
7409 * gdbarch.sh: Comment each field of startup_gdbarch.
7410 * gdbarch.h, gdbarch.c: Re-generate.
7411
cde9ea48
AC
74122003-06-07 Andrew Cagney <cagney@redhat.com>
7413
7414 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7415 * gdbarch.h, gdbarch.c: Re-generate.
7416 * regcache.c: Update comments on read_pc et.al.
7417 (generic_target_read_pc): Delete function.
7418 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7419 * inferior.h (generic_target_read_pc): Delete declaration.
7420 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7421 generic_target_read_pc.
7422 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7423 * sh-tdep.c (sh_gdbarch_init): Ditto.
7424 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7426
9a90a780
AC
74272003-06-07 Andrew Cagney <cagney@redhat.com>
7428
7429 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7430 "index" with "special_local_sect". Use strcmp instead of STREQ.
7431 Append period to coments.
7432
a39a16c4
MM
74332003-06-06 Mark Mitchell <mark@codesourcery.com>
7434
7435 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7436 (elfstab_offset_sections): Likewise.
7437 * gdb-stabs.h (stab_section_info): Likewise.
7438 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7439 * objfiles.c (objfile_relocate): Likewise.
7440 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7441 * remote.c (get_offsets): Likewise.
7442 (remote_cisco_objfile_relocate): Likewise.
7443 * somread.c (som_symfile_offsets): Likewise.
7444 * symfile.c (alloc_section_addr_info): New function.
7445 (build_section_addr_info_from_section_tab): Use it.
7446 (free_section_addr_info): Adjust.
7447 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7448 (syms_from_objfile): Allocate local_addr dynamically.
7449 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7450 dynamically.
7451 (add_symbol_file_command): Allocate sect_opts dynamically.
7452 (reread_symbols): Avoid use of SECT_OFF_MAX.
7453 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7454 (alloc_section_addr_info): Declare it.
7455 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7456 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7457 dynamically.
7458 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7459
20c6c2f8
AC
74602003-06-06 Andrew Cagney <cagney@redhat.com>
7461
7462 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7463 (d10v_frame_unwind_cache): Do not set "return_pc".
7464
884a26c8
MS
74652003-06-06 Michael Snyder <msnyder@redhat.com>
7466
7467 * h8300-tdep.c: Make tidy (long lines).
7468
088ce440
ML
74692003-06-06 Michal Ludvig <mludvig@suse.cz>
7470
8ffd9b1b 7471 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7472 to regcache_collect().
7473
7d773d96
JB
74742003-06-05 J. Brobecker <brobecker@gnat.com>
7475
7476 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7477 pc_in_sigtramp multiarch method.
7478 (hppa_hpux_som_init_abi): Use it.
7479 (hppa_hpux_elf_init_abi): Likewise.
7480 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7481 macro has been multiarched.
7482 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7483 macro here, as hppa64 isn't multiarched yet.
7484
1df6926e
AC
74852003-06-05 Andrew Cagney <cagney@redhat.com>
7486
7487 * Makefile.in (value_h): Add $(frame_h).
7488 * value.h: Include "frame.h".
7489 (struct value): Replace "frame_addr" with "frame_id".
7490 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7491 * values.c (allocate_value): Use VALUE_FRAME_ID.
7492 (value_copy): Use VALUE_FRAME_ID.
7493 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7494 * valops.c (value_assign): Update. Use frame_find_by_id.
7495
6b53acc6
ML
74962003-06-05 Michal Ludvig <mludvig@suse.cz>
7497
7498 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7499 in each pass.
7500
4d9850d3
JJ
75012003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7502
7503 * thread-db.c (check_event): For create/death event breakpoints,
7504 loop through all messages to ensure that we read the message
7505 corresponding to the breakpoint we are at.
7506
8efca6ba
MS
75072003-06-04 Michael Snyder <msnyder@redhat.com>
7508
7509 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7510
0912c7f2
MK
75112003-06-04 Mark Kettenis <kettenis@gnu.org>
7512
7513 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7514 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7515 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7516 when handling .eh_frame sections.
7517
4e370325
JB
75182003-06-04 J. Brobecker <brobecker@gnat.com>
7519
7520 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7521 prepare_to_proceed procedure instead of the hppa-specific one.
7522 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7523
b757528f 75242003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7525
b757528f
JJ
7526 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7527 * config.in: Regenerated.
7528 * configure.in: Add test for syscall function and check for
7529 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7530 * configure: Regenerated.
7531 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7532 <sys/syscall.h>.
7533 (kill_lwp): New function that uses tkill syscall or
7534 uses kill, depending on whether threading model is nptl or not.
7535 All callers of kill() changed to use kill_lwp().
7536 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7537 see if all threads have already exited in the nptl model.
7538 (stop_and_resume_callback): New callback function used by the
7539 lin_lwp_wait thread exit handling code.
7540 (stop_wait_callback): Check for threads already having exited and
7541 delete such threads fromt the lwp list when discovered.
7542 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7543
b757528f
JJ
7544 Roland McGrath <roland@redhat.com>
7545 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7546 nptl libthread_db.
7547
087779b1
RH
75482003-06-03 Richard Henderson <rth@redhat.com>
7549
b21fd293
RH
7550 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7551 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7552 (alpha_sigtramp_frame_prev_register): Likewise.
7553 (alpha_heuristic_frame_prev_register): Likewise.
7554 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7555
8ffd9b1b 7556 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7557 alpha-specific register id names.
7558 (alpha_mdebug_frame_unwind_cache): Likewise.
7559 (alpha_mdebug_frame_prev_register): Likewise.
7560
baa490c4
RH
75612003-06-03 Richard Henderson <rth@redhat.com>
7562
7563 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7564 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7565 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7566 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7567 unwind routines.
7568 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7569 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7570 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7571
7572 * alpha-linux-tdep.c: Remove unnecessary includes.
7573 * Makefile.in (alpha-linux-tdep.o): Update.
7574
75752003-06-03 Richard Henderson <rth@redhat.com>
7576
7577 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7578 (alphabsd_fill_fpreg): Likewise.
7579
f534e522
JB
75802003-06-03 J. Brobecker <brobecker@gnat.com>
7581
7582 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7583 references to struct frame_info fields by calls to the equivalent
7584 accessors. Necessary now that frame_info is opaque.
7585
4035536b
JB
75862003-06-03 J. Brobecker <brobecker@gnat.com>
7587
7588 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7589 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7590 structure, field no longer exists.
7591
0bd79c5c
JB
75922003-06-03 J. Brobecker <brobecker@gnat.com>
7593
7594 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7595 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7596
37bb6d9f
JB
75972003-06-03 J. Brobecker <brobecker@gnat.com>
7598
7599 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7600 references to struct frame_info fields by calls to the equivalent
7601 accessors. Necessary now that frame_info is opaque.
7602
852ee05c
JB
76032003-06-03 J. Brobecker <brobecker@gnat.com>
7604
7605 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7606 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7607 structure, field no longer exists.
7608
7d58c67d
TR
76092003-06-03 Theodore A. Roth <troth@openavr.org>
7610
8ffd9b1b 7611 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7612 accumulation of the size of all registers instead of blindly using
7613 DEPRECATED_REGISTER_BYTES.
7614
0a48e7e8
MS
76152003-06-03 Michael Snyder <msnyder@redhat.com>
7616
7617 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7618 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7619 for h8300sx.
7620
9798ab0d
JB
76212003-06-03 J. Brobecker <brobecker@gnat.com>
7622
7623 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7624 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7625
00b037e2
AC
76262003-06-03 Andrew Cagney <cagney@redhat.com>
7627
7628 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7629 (sparc_convert_to_raw): Delete function.
7630 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7631 register_convert_to_virtual.
7632
043b2f77
JJ
76332003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7634
7635 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7636 layer if not dealing with a statically-linked threaded program.
7637
f43caff8
KW
76382003-06-03 Kris Warkentin <kewarken@qnx.com>
7639
7640 * solib.c (solib_open): Update comment to reflect actual search order.
7641
ae1e7417
AC
76422003-06-03 Andrew Cagney <cagney@redhat.com>
7643
7644 * frame.c (get_frame_memory_signed): New function.
7645 (get_frame_memory, get_frame_memory_unsigned): New function.
7646 (get_frame_arch): New function.
7647 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7648 (get_frame_memory, get_frame_unsigned_memory): Declare.
7649 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7650 get_frame_memory_unsigned and get_frame_arch.
7651 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7652
cb123844
RG
76532003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7654
7655 * MAINTAINERS (write after approval): Add myself.
7656
1bb792e9
JB
76572003-06-03 Jim Blandy <jimb@redhat.com>
7658
7659 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7660 elements of gregset_t are 64 bits each, but access registers
7661 are still 32 bits, so they're packed two per gregset_t
7662 element. Unpack/pack them properly.
7663
aee8d8ba
DC
76642003-06-02 David Carlton <carlton@bactrian.org>
7665
7666 * linespec.c (find_methods): Break out code into
7667 add_matching_methods and add_constructors.
7668 (add_matching_methods): New.
7669 (add_constructors): Ditto.
7670
bf7488d2
AC
76712003-06-02 Andrew Cagney <cagney@redhat.com>
7672
bf7488d2
AC
7673 * sparc-tdep.c (sparc_print_registers): Delete call to
7674 REGISTER_CONVERTIBLE.
7675 (sparc_gdbarch_init): Do not set register_convertible.
7676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7677 * frv-tdep.c (frv_gdbarch_init): Ditto.
7678 * cris-tdep.c (cris_gdbarch_init): Ditto.
7679
adedef68
EZ
76802003-06-02 Elena Zannoni <ezannoni@redhat.com>
7681
8ffd9b1b 7682 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7683 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7684 (syms_from_objfile): Ditto.
7685
650fcc91
AS
76862003-06-03 Andreas Schwab <schwab@suse.de>
7687
7688 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7689 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7690
df4a182b
RH
76912003-06-02 Richard Henderson <rth@redhat.com>
7692
7693 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7694 a member of all_reggroup.
7695
c483c494
RH
76962003-06-02 Richard Henderson <rth@redhat.com>
7697
7698 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7699 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7700 (alpha_lds, alpha_sts): New.
7701 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7702 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7703 restructure and fail for type sizes other than 4 or 8.
7704 (alpha_value_to_register): Similarly.
7705 (alpha_extract_return_value): Use alpha_sts.
7706 (alpha_store_return_value): Use alpha_lds.
7707 (alpha_gdbarch_init): Update hooks.
7708
b38b6be2
RH
77092003-06-02 Richard Henderson <rth@redhat.com>
7710
7711 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7712 regnum identifiers.
7713 (alpha_sigtramp_register_address): Likewise.
7714
98a8e1e5
RH
77152003-06-02 Richard Henderson <rth@redhat.com>
7716
7717 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7718 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7719 * alpha-tdep.h: Declare them.
7720
7721 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7722 Remove zerobuf. Don't error on UNIQUE.
7723 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7724 (ALPHA_REGSET_UNIQUE): Provide default.
7725 (supply_gregset): Use alpha_supply_int_regs.
7726 (fill_gregset): Use alpha_fill_int_regs.
7727 (supply_fpregset): Use alpha_supply_fp_regs.
7728 (fill_fpregset): Use alpha_fill_fp_regs.
7729 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7730 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7731 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7732 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7733 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7734 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7735
67dfac52
RH
77362003-06-02 Richard Henderson <rth@redhat.com>
7737
f75d70cc
RH
7738 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7739
67dfac52
RH
7740 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7741 (alpha_store_return_value): Likewise.
7742
0cf566ec
DC
77432003-06-02 David Carlton <carlton@math.stanford.edu>
7744
7745 * block.c (contained_in): Add 'const' to arguments.
7746 (block_function): Ditto.
7747 * block.h: Update declarations for block_function and
7748 contained_in.
7749
cdef89d0
DC
77502003-06-02 David Carlton <carlton@math.stanford.edu>
7751
7752 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7753 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7754 * p-valprint.c (pascal_val_print): Ditto.
7755 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7756
72667056
RH
77572003-06-02 Richard Henderson <rth@redhat.com>
7758
98a8e1e5
RH
7759 * alpha-tdep.c (alpha_push_dummy_call): Use
7760 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7761
8ffd9b1b 7762 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7763 sign-extension of 32-bit values.
7764 (alpha_store_return_value): Similarly.
0ede8eca 7765
98a8e1e5
RH
7766 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7767 (alpha_extract_return_value): Likewise.
7768 (alpha_store_return_value): Likewise.
7b5e1cb3 7769
98a8e1e5
RH
7770 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7771 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7772
98a8e1e5
RH
7773 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7774 (alpha_extract_struct_value_address): Likewise.
7775 (alpha_store_return_value): Likewise.
7776 (alpha_store_struct_return): Remove.
7777 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7778
98a8e1e5
RH
7779 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7780 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7781 macros where appropriate.
7782 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7783 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7784
98a8e1e5
RH
7785 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7786 for SP, GP; void_func_ptr for PC; non-language-specific types
7787 for all others.
7788 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7789
6dd77b81
RH
77902003-06-02 Richard Henderson <rth@redhat.com>
7791
7792 * top.h (lim_at_start): Declare.
7793 * main.c (captured_main): Set it.
7794 * top.c (lim_at_start): Define.
7795 (command_loop): Use it instead of &environ.
7796 * event-top.c (command_handler): Likewise.
7797
f4dbdb54
JT
77982003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7799
7800 * mipsnbsd-tdep.c: Update copyright years.
7801 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7802
8f285956
RH
78032003-06-01 Richard Henderson <rth@redhat.com>
7804
98a8e1e5
RH
7805 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7806 (alpha-linux-tdep.o): Update dependencies.
7807 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7808 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7809
615967cb
RH
78102003-06-01 Richard Henderson <rth@redhat.com>
7811
98a8e1e5
RH
7812 * alpha-tdep.c (alpha_register_reggroup_p): New.
7813 (alpha_gdbarch_init): Register it.
615967cb 7814
b59661bd
AC
78152003-06-02 Andrew Cagney <cagney@redhat.com>
7816
7817 * dwarfread.c: Eliminate "register"
7818 (decode_die_type): Eliminate assignment within "if".
7819 (struct_type, decode_array_element_type): Ditto.
7820 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7821 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7822 (decode_modified_type, completedieinfo): Ditto.
7823 * block.c: Eliminate "register".
7824 (blockvector_for_pc_sect): Eliminate assignment within "if".
7825 * cp-support.h (struct symbol): Opaque declaration.
7826 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7827
5ef165c2
RH
78282003-06-01 Richard Henderson <rth@redhat.com>
7829
98a8e1e5
RH
7830 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7831 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7832
143985b7
AF
78332003-06-01 Adam Fedor <fedor@gnu.org>
7834
7835 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7836 * gdbarch.[ch]: Regenerate.
7837 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7838 (hppa_gdbarch_init): Set it in the gdbarch vector.
7839 * i386-tdep.c (i386_fetch_pointer_argument): New
7840 (i386_gdbarch_init): Set it into gdbarch.
7841 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7842 (rs6000_gdbarch_init): Set it in gdbarch.
7843 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7844 (sparc_gdbarch_init): Set it in gdbarch.
7845
ae0167b9
AC
78462003-06-01 Andrew Cagney <cagney@redhat.com>
7847
7c0b4a20
AC
7848 * defs.h (extract_address): Delete declaration.
7849 * findvar.c (extract_address): Delete function.
7850 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7851 extract_address with the inline equivalent,
7852 extract_unsigned_integer.
7853 (xstormy16_extract_struct_value_address): Ditto.
7854 (xstormy16_pointer_to_address): Ditto.
7855 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7856 * v850-tdep.c (v850_push_arguments): Ditto.
7857 (v850_extract_return_value): Ditto.
7858 (v850_extract_struct_value_address): Ditto.
7859 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7860 (sparcnbsd_get_longjmp_target_64): Ditto.
7861 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7862 (get_longjmp_target): Ditto.
7863 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7864 (sh64_extract_struct_value_address): Ditto.
7865 (sh_push_arguments): Ditto.
7866 (sh64_push_arguments): Ditto.
7867 * remote-vxsparc.c (vx_read_register): Ditto.
7868 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7869 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7870 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7871 * mipsv4-nat.c (get_longjmp_target): Ditto.
7872 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7873 * mips-nat.c (get_longjmp_target): Ditto.
7874 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7875 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7876 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7877 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7878 * irix5-nat.c (get_longjmp_target): Ditto.
7879 * irix4-nat.c (get_longjmp_target): Ditto.
7880 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7881 (ia64_push_arguments): Ditto.
7882 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7883 * h8300-tdep.c (h8300_push_arguments): Ditto.
7884 (h8300_store_return_value): Ditto.
7885 (h8300_extract_struct_value_address): Ditto.
7886 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7887 (frv_push_arguments): Ditto.
7888 * avr-tdep.c (avr_pointer_to_address): Ditto.
7889 (avr_push_arguments): Ditto.
7890 * arm-tdep.c (arm_push_dummy_call): Ditto.
7891 (arm_get_longjmp_target): Ditto.
7892 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7893 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7894 (alpha_get_longjmp_target): Ditto.
7895
ae0167b9
AC
7896 * solib-irix.c (extract_mips_address): Inline extract_address,
7897 replacing it with extract_signed_integer.
7898 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7899 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7900 (first_link_map_member, open_symbol_file_object): Ditto.
7901 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7902 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7903 (LM_NEXT, LM_NAME): Ditto.
7904
44d88583
RH
79052003-06-01 Richard Henderson <rth@redhat.com>
7906
98a8e1e5
RH
7907 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7908 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7909 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7910 (alpha_cannot_store_register): Likewise.
7911 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7912 * alpha-nat.c (supply_gregset): Likewise.
7913 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7914
310e9b6a
AC
79152003-06-01 Andrew Cagney <cagney@redhat.com>
7916
7917 * infcall.c (call_function_by_hand): Update comment on
7918 DEPRECATED_DUMMY_WRITE_SP.
7919
7920 * mips-tdep.c (mips_gdbarch_init): Do not set
7921 deprecated_dummy_write_sp.
7922 (mips_eabi_push_dummy_call): Set the SP register.
7923 (mips_o64_push_dummy_call): Set the SP register.
7924 (mips_o32_push_dummy_call): Set the SP register.
7925 (mips_n32n64_push_dummy_call): Set the SP register.
7926
5ab84872
RH
79272003-06-01 Richard Henderson <rth@redhat.com>
7928
98a8e1e5
RH
7929 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7930 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7931 (supply_gregset): Likewise.
7932 * alpha-tdep.c (alpha_store_return_value): Likewise.
7933 (alpha_get_longjmp_target): Likewise.
7934 (alpha_register_name): Constify array.
7935 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7936 deprecated_register_size, deprecated_register_bytes,
7937 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7938 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7939 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7940
09cc52fd
RH
79412003-06-01 Richard Henderson <rth@redhat.com>
7942
7943 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7944 from arg_reg_buffer to regcache to avoid double conversion.
7945
c7f16359
MK
79462003-06-01 Mark Kettenis <kettenis@gnu.org>
7947
7948 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7949 SP_REGNUM.
7950 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7951 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7952
7131cb6e
RH
79532003-06-01 Richard Henderson <rth@redhat.com>
7954
98a8e1e5
RH
7955 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7956 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7957
f3e0f90b
RH
79582003-06-01 Richard Henderson <rth@redhat.com>
7959
98a8e1e5
RH
7960 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7961 not overlapping PC_REGNUM.
f3e0f90b 7962
c88e30c0
RH
79632003-06-01 Richard Henderson <rth@redhat.com>
7964
98a8e1e5
RH
7965 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7966 alpha_push_arguments. Don't dump argument register data to
7967 the target stack. Fix float and 128-bit long double semantics.
7968 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7969 (alpha_fix_call_dummy): Remove.
7970 (alpha_call_dummy_words): Remove.
7971 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7972
f1a559ae
RH
79732003-06-01 Richard Henderson <rth@redhat.com>
7974
7975 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7976
5e045346
AC
79772003-06-01 Andrew Cagney <cagney@redhat.com>
7978
95404a3e
AC
7979 * mips-tdep.c (is_mips16_addr): New function.
7980 (make_mips16_addr, unmake_mips16_addr): New functions.
7981 (pc_is_mips16, mips_fetch_instruction): Use.
7982 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7983 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7984 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7985 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7986 TARGET_MIPS.
7987 * config/mips/tm-mips.h: Update copyright.
7988 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7989 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7990 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7991 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7992 (TM_PRINT_INSN_MACH): Delete.
7993 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7994
5e045346
AC
7995 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7996 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7997 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7998 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7999 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8000 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8001 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8002 mips*-*-riscos* and mips*-*-sysv* onto mips.
8003 * config/mips/mips64.mt: New file.
8004 * config/mips/mips.mt: New file.
8005 * config/mips/littlemips.mt: Delete file.
8006 * config/mips/decstation.mt: Delete file.
8007 * config/mips/vr4300el.mt: Delete file.
8008 * config/mips/vr5000el.mt: Delete file.
8009 * config/mips/vr5000.mt: Delete file.
8010 * config/mips/vr4100.mt: Delete file.
8011 * config/mips/vr4xxxel.mt: Delete file.
8012 * config/mips/vr4300.mt: Delete file.
8013 * config/mips/vr4xxx.mt: Delete file.
8014 * config/mips/bigmips.mt: Delete file.
8015 * config/mips/bigmips64.mt: Delete file.
8016 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8017 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8018 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8019 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8020 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8021 "tm-bigmips.h".
8022 * config/mips/tm-irix3.h: Ditto.
8023 * config/mips/tm-mipsv4.h: Ditto.
8024 * config/mips/tm-embed.h: Ditto.
8025 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8026 "tm-bigmips64.h".
8027 * config/mips/tm-vr5000el.h: Delete file.
8028 * config/mips/tm-tx39l.h: Delete file.
8029 * config/mips/tm-vr4300el.h: Delete file.
8030 * config/mips/tm-vr4xxxel.h: Delete file.
8031 * config/mips/tm-vr4300.h: Delete file.
8032 * config/mips/tm-vr4100.h: Delete file.
8033 * config/mips/tm-vr4xxx.h: Delete file.
8034 * config/mips/tm-vr5000.h: Delete file.
8035 * config/mips/tm-embedl64.h: Delete file.
8036 * config/mips/tm-embedl.h: Delete file.
8037 * config/mips/tm-embed64.h: Delete file.
8038 * config/mips/tm-bigmips64.h: Delete file.
8039 * config/mips/tm-bigmips.h: Delete file.
8040
2473a4a9
MK
80412003-06-01 Mark Kettenis <kettenis@gnu.org>
8042
97a5b208
MK
8043 Fix gdb/1216.
8044 * shnbsd-nat.c: Include "sh-tdep.h".
8045
2473a4a9
MK
8046 From Richard Henderson <rth@redhat.com>:
8047 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8048
e0f7ec59
AC
80492003-05-31 Andrew Cagney <cagney@redhat.com>
8050
8051 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8052 forward declaration.
8053 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8054 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8055 (mips_find_saved_regs): Use set_reg_offset.
8056 (mips_frame_init_saved_regs): Delete function.
8057 (mips_pop_frame): Call mips_find_saved_regs instead of
8058 DEPRECATED_FRAME_INIT_SAVED_REGS.
8059
68dcc709
AC
80602003-05-31 Andrew Cagney <cagney@redhat.com>
8061
8062 * mips-tdep.c (mips_gdbarch_init): Do not set
8063 deprecated_max_register_raw_size, register_virtual_size, and
8064 deprecated_max_register_virtual_size.
8065
cfc14b3a
MK
80662003-05-31 Mark Kettenis <kettenis@gnu.org>
8067
6405b0a6
MK
8068 * i386-tdep.c: Include "dwarf2-frame.h".
8069 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8070 * Makefile.in (i386-tdep.o): Update dependencies.
8071
cfc14b3a
MK
8072 * dwarf2-frame.c, dwarf2-frame.h: New files.
8073 * Makefile.in (SFILES): Add dwarf2-frame.c.
8074 (dwarf2_frame_h): Define.
8075 (COMMON_OBS): Add dwarf2-frame.o.
8076 (dwarf2-frame.o): Add dependencies.
8077
6a2751d2
AJ
80782003-05-31 Andreas Jaeger <aj@suse.de>
8079
8080 * x86-64-linux-nat.c: Fix comment.
8081
1c3545ae
MK
80822003-05-31 Mark Kettenis <kettenis@gnu.org>
8083
10f93086
MK
8084 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8085 function signature.
8086
1c3545ae
MK
8087 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8088 have a sigcontext_addr handler.
8089 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8090 sigcontext_addr handler.
8091
e11c53d2
AC
80922003-05-31 Andrew Cagney <cagney@redhat.com>
8093
8094 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8095 (print_fp_register_row): Replace do_fp_register_row.
8096 (mips_print_fp_register): Add "file" and "frame" parameters.
8097 (mips_print_register): Add "file" and "frame" parameters.
8098 (mips_print_registers_info): Replace mips_do_registers_info.
8099 (mips_gdbarch_init): Set print_registers_info instead of
8100 deprecated_do_registers_info.
8101 (mips_read_fp_register_single): Add "frame" parameter.
8102 (mips_read_fp_register_double): Add "frame" parameter.
8103
a3386186
MK
81042003-05-31 Mark Kettenis <kettenis@gnu.org>
8105
70913449
MK
8106 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8107 Fixes a bug where GDB would print the wrong register names for
8108 targets without SSE.
8109
2b5e0749
MK
8110 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8111 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8112 registers.
8113
8114 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8115 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8116 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8117 TDEP->sc_sp_offset.
8118
a3386186
MK
8119 From Michal Ludvig <mludvig@suse.cz>:
8120 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8121 and `sc_num_regs'.
8122 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8123 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8124 I386_ST0_REGNUM): Move here from...
8125 * i386-tdep.c: ... here.
8126 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8127 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8128 registers if possible.
8129 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8130 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8131 Remove variables.
8132 (i386bsd_sc_reg_offset): New variable.
8133 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8134 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8135 TDEP->sc_sp_offset.
8136 (i386fbsd_sc_reg_offset): New variable.
8137 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8138 TDEP->sc_num_regs.
8139 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8140 variables.
8141 (i386fbsd4_sc_reg_offset): New variable.
8142 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8143 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8144 TDEP->sc_sp_offset.
8145 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8146 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8147 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8148 Remove variables.
8149 (i386nbsd_sc_reg_offset): New variable.
8150 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8151 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8152 TDEP->sc_sp_offset.
8153 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8154 Remove variables.
8155 (i386obsd_sc_reg_offset): New variable.
8156 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8157 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8158 TDEP->sc_sp_offset.
8159 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8160 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8161 for frame pointer offset in `struct sigcontext'.
8162
25ab4790
AC
81632003-05-31 Andrew Cagney <cagney@redhat.com>
8164
8165 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8166 architecture methods call_dummy_words, sizeof_call_dummy_words,
8167 push_return_address, store_struct_return, and fix_call_dummy. Set
8168 push_dummy_call instead of deprecated_push_arguments.
8169 (mips_store_struct_return): Delete function.
8170 (mips_fix_call_dummy): Delete function.
8171 (mips_push_return_address): Delete function.
8172 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8173 RA_REGNUM and T9_REGNUM.
8174 (mips_n32n64_push_dummy_call): Ditto for
8175 mips_n32n64_push_arguments.
8176 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8177 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8178
6a65450a
AC
81792003-05-31 Andrew Cagney <cagney@redhat.com>
8180
8181 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8182 "dummy_addr" to "bp_addr".
8183 * infcall.c (call_function_by_hand): Pass "funaddr" to
8184 gdbarch_push_dummy_call.
8185 * gdbarch.h, gdbarch.c: Re-generate.
8186 * i386-tdep.c (i386_push_dummy_call): Update.
8187 * arm-tdep.c (arm_push_dummy_call): Update.
8188 * d10v-tdep.c (d10v_push_dummy_call): Update.
8189
c4f35dd8
MK
81902003-05-31 Mark Kettenis <kettenis@gnu.org>
8191
8192 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8193 variable declarations.
8194 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8195 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8196 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8197 x86_64_init_frame_pc, x86_64_init_frame_pc,
8198 x86_64_function_has_prologue): Remove prototypes.
8199 (X86_64_NUM_GREGS): New define.
8200 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8201 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8202 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8203 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8204 XMM1_REGNUM): Remove defines.
8205 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8206 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8207 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8208 X86_64_XMM1_REGNUM): New defines.
8209 (struct x86_64_register_info): Renamed from `struct
8210 register_info'. Remove `size' member.
8211 (x86_64_register_info_table): Remove variable.
8212 (x86_64_register_info): New variable.
8213 (X86_64_NUM_REGS): New define.
8214 (X86_64_NUM_GREGS): Remove define.
8215 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8216 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8217 Remove variables.
8218 (x86_54_dwarf2_reg_to_regnum): Remove function.
8219 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8220 (x86_64_dwarf_reg_to_regnum): New function.
8221 (x86_64_register_name): Rewrite.
8222 (x86_64_register_raw_size): Remove function.
8223 (x86_64_register_byte_table): Remove variable.
8224 (x86_64_register_byte): Remove function.
8225 (x86_64_register_virtual_type): Remove function.
8226 (x86_64_register_type): New function.
8227 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8228 x86_64_register_convert_to_raw): Remove functions.
8229 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8230 (x86_64_use_struct_convention): Make static. Adjust for renamed
8231 defines.
8232 (x86_64_frame_init_saved_regs): Remove function.
8233 (x86_64_push_arguments): Make static. Change to accept a regcache
8234 as argument.
8235 (x86_64_store_return_value, x86_64_extract_return_value): Make
8236 static. Rewrite based on i386 counterparts.
8237 (x86_64_push_dummy_call): New function.
8238 (X86_64_NUM_SAVED_REGS): New define.
8239 (x86_64_register_number): Remove function.
8240 (x86_64_store_struct_return): Remove function.
8241 (x86_64_frameless_function_invocation,
8242 x86_64_function_has_prologue): Remove functions.
8243 (PROLOG_BUFSIZE): Remove define.
8244 (struct x86_64_frame_cache): New structure.
8245 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8246 x86_64_frame_cache, x86_64_frame_this_id,
8247 x86_64_frame_prev_register, x86_64_frame_p,
8248 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8249 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8250 functions.
8251 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8252 variables.
8253 (x86_64_skip_prologue): Rewrite in terms of
8254 x86_64_analyze_prologue.
8255 (x86_64_frame_base_address): New function.
8256 (x86_64_frame_base): New variable.
8257 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8258 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8259 set deprecated_fp_regnum, deprecated_register_size,
8260 deprecated_register_bytes, register_raw_size, register_byte,
8261 register_virtual_type, register_convertiable,
8262 register_convert_to_virtual, convert_to_raw,
8263 deprecated_get_saved_register, deprecated_target_read_fp,
8264 deprecated_push_arguments, deprecated_push_return_address,
8265 deprecated_pop_frame, deprecated_store_struct_return,
8266 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8267 frameless_function_invocation, deprecated_frame_saved_pc,
8268 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8269 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8270 deprecated_init_frame_pc and virtual_frame_pointer. Call
8271 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8272 and x86_64_frame_p. Call frame_base_set_default to register
8273 x86_64_frame_base.
8274 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8275 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8276 (_initialize_x86_64_tdep): Remove function.
8277 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8278 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8279 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8280 define.
8281 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8282 (x86_64_linux_sigcontext_addr): Rewrite.
8283 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8284 x86_64_linux_frame_saved_pc): Remove functions.
8285 (x86_64_linux_pc_in_sigtramp): Renamed from
8286 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8287 trampoline.
8288 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8289 Remove_functions.
8290 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8291 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8292 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8293 (x86_64_regmap): Rename to regmap.
8294 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8295 x86_64_num_gregs.
8296 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8297 x86_64_regmap.
8298 (x86_64_fxsave_offset): Remove function.
8299 (supply_fpregset): Simply call x86_64_supply_fxsave.
8300 (fill_fpregset): Simply call x86_64_fill_fxsave.
8301 (fetch_inferior_registers, store_inferior_registers): Avoid
8302 asignment in if-statement.
8303 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8304 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8305 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8306 (fetch_core_registers): Remove function.
8307 (linux_elf_core_fns): Remove.
8308 (offsetoff): Don't define.
8309 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8310 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8311 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8312 add core-regset.o.
8313 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8314 protection against multiple includes instead of NM_X86_64_h. Add
8315 various comments. Include "config/nm-linux.h". Don't include
8316 <signal.h>.
8317 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8318 GET_THREAD_SIGNALS): Remove defines.
8319 (x86_64_register_u_addr, kernel_u_size,
8320 lin_thread_get_thread_signals): Remove prototypes.
8321 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8322 [HAVE_LINK_H]: Don't include "solib.h".
8323 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8324 * config/i386/tm-x86-64linux.h: Fix comments.
8325 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8326 x86-64-tdep.o): Update dependencies.
8327
c25083af
AC
83282003-05-30 Andrew Cagney <cagney@redhat.com>
8329
c8f55a7b
AC
8330 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8331 Change parameter type to a "struct regcache *".
8332
c25083af
AC
8333 * gdbarch.sh: Regardless of the multi-arch level, always define
8334 the macro when not already defined.
8335 * gdbarch.h, gdbarch.c: Re-generate.
8336
fbe586ae
RH
83372003-05-30 Richard Henderson <rth@redhat.com>
8338
8339 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8340 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8341 (alpha_mdebug_frame_this_id): Likewise.
8342 (alpha_mdebug_frame_prev_register): Likewise.
8343 (alpha_mdebug_frame_base_address): Likewise.
8344 (alpha_mdebug_frame_locals_address): Likewise.
8345 (alpha_mdebug_frame_args_address): Likewise.
8346 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8347 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8348 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8349 loop increment.
8350 (alpha_heuristic_frame_this_id): Make static.
8351 (alpha_heuristic_frame_prev_register): Likewise.
8352 (alpha_heuristic_frame_base_address): Likewise.
8353 * alpha-tdep.h: Update.
8354
acd5c798
MK
83552003-05-30 Mark Kettenis <kettenis@gnu.org>
8356
8357 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8358 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8359 defenitions.
8360 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8361 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8362 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8363 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8364 I386_ST0_REGNUM): New defines.
8365 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8366 codestream_get): Remove define.
8367 (codestream_next_addr, condestream_addr, condestream_buf,
8368 codestream_off, codestream_cnt): Remove variables.
8369 (codestream_fill, codestream_seek, codestream_read): Remove
8370 functions.
8371 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8372 functionality.
8373 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8374 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8375 i386_frame_saved_pc, i386_saved_pc_after_call,
8376 i386_frame_num_args, i386_frame_init_saved_regs,
8377 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8378 i386_push_arguments): Remove functions.
8379 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8380 functionality. Use i386_analyze_prologue instead of
8381 i386_get_frame_setup.
8382 (I386_NUM_SAVED_REGS): New define.
8383 (struct i386_frame_cache): New structure.
8384 (i386_alloc_frame_cache, i386_analyze_struct_return,
8385 i386_skip_probe, i386_analyze_frame_setup,
8386 i386_analyze_register_saves, i386_analyze_prologue,
8387 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8388 i386_frame_prev_register, i386_sigtramp_frame_cache,
8389 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8390 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8391 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8392 New functions.
8393 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8394 New variables.
8395 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8396 I386_EAX_REGNUM and I386_EDX_REGNUM.
8397 (i386_extract_return_value, i386_store_return_value): Use
8398 I386_ST0_REGNUM where appropriate.
8399 (i386_extract_struct_value_address): Rewrite to use extract_address.
8400 (i386_svr4_pc_in_sigtramp): Add comment.
8401 (i386_svr4_sigcontext_addr): Rewrite.
8402 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8403 TDEP->sc_sp_offset.
8404 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8405 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8406 of new defines. Set push_dummy_call, don't set
8407 deprecated_push_arguments, deprecated_push_return_address,
8408 deprecated_pop_frame. Don't set parm_boundary. Don't set
8409 deprecated_frame_chain, deprecated_frame_saved_pc,
8410 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8411 save_dummy_frame_tos, unwind_pc. Call
8412 frame_unwind_append_predicate and frame_base_set_default. Don't
8413 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8414 Don't set frameless_function_invocation. Don't set
8415 deprecated_register_bytes, deprecated_register_size,
8416 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8417 * i386-linux-tdep.c: Fix formatting in some comments.
8418 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8419 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8420 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8421 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8422 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8423 redundant parentheses.
8424 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8425 (i386_linux_sigcontext_addr): Use it. Rewrite.
8426 (find_minsym_and_objfile): Change name of second argument.
8427 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8428 changed. Use frame_pc_unwind instead of
8429 DEPRECATED_SAVED_PC_AFTER_CALL.
8430 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8431 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8432 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8433 unwinder.
8434 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8435 "dummy-frame.h".
8436 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8437 (_initialize_i386_cygwin_tdep): New prototype.
8438 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8439 deprecated_frame_chain_valid.
8440 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8441 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8442 Rely on the SVR4 defaults.
8443 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8444 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8445
c89b70f1
AC
84462003-05-30 Andrew Cagney <cagney@redhat.com>
8447
8448 * infcall.c (call_function_by_hand): Always call
8449 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8450
85b32d22
RH
84512003-05-30 Richard Henderson <rth@redhat.com>
8452
c89b70f1
AC
8453 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8454 increment.
85b32d22 8455
bfe51b1e
JB
84562003-05-29 Jim Blandy <jimb@redhat.com>
8457
8458 Use gdbarch methods for solib stuff on PowerPC Linux.
8459 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8460 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8461 show through.
8462 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8463 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8464 giving the same effect as the #definitions above.
8465
1abf022c
AF
84662003-05-29 Adam Fedor <fedor@gnu.org>
8467
8468 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8469 (find_implementation_from_class): Replace it with the standard
8470 case i.e. do nothing.
8471
d2427a71
RH
84722003-05-29 Richard Henderson <rth@redhat.com>
8473
8474 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8475 (alpha_linux_sigtramp_offset): Use it. Make static.
8476 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8477 update for new frame model.
8478 * alpha-mdebug-tdep.c: New file.
8479 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8480 (alpha_osf1_init_abi): Install it.
8481 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8482 (linked_proc_desc_table): Remove.
8483 (alpha_frame_past_sigtramp_frame): Remove.
8484 (alpha_dynamic_sigtramp_offset): Remove.
8485 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8486 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8487 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8488 (push_sigtramp_desc): Remove.
8489 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8490 (alpha_cannot_store_register): Likewise.
8491 (alpha_sigcontext_addr): Remove.
8492 (alpha_find_saved_regs): Remove.
8493 (alpha_frame_init_saved_regs): Remove.
8494 (alpha_init_frame_pc_first): Remove.
8495 (read_next_frame_reg): Remove.
8496 (alpha_frame_saved_pc): Remove.
8497 (alpha_saved_pc_after_call): Remove.
8498 (temp_proc_desc, temp_saved_regs): Remove.
8499 (alpha_about_to_return): Remove.
8500 (cached_proc_desc): Remove.
8501 (alpha_frame_chain): Remove.
8502 (alpha_print_extra_frame_info): Remove.
8503 (alpha_init_extra_frame_info): Remove.
8504 (alpha_frame_locals_address): Remove.
8505 (alpha_frame_args_address): Remove.
8506 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8507 (alpha_push_dummy_frame): Remove.
8508 (alpha_pop_frame): Remove.
8509 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8510 (alpha_read_insn): New.
8511 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8512 for different insn encodings.
8513 (alpha_in_lenient_prologue): Remove.
8514 (struct alpha_sigtramp_unwind_cache): New.
8515 (alpha_sigtramp_frame_unwind_cache): New.
8516 (alpha_sigtramp_register_address): New.
8517 (alpha_sigtramp_frame_this_id): New.
8518 (alpha_sigtramp_frame_prev_register): New.
8519 (alpha_sigtramp_frame_unwind): New.
8520 (alpha_sigtramp_frame_p): New.
8521 (struct alpha_heuristic_unwind_cache): New.
8522 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8523 don't count nop insns that occur between functions.
8524 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8525 heuristic_proc_desc, but without the mdebug wrapping.
8526 (alpha_heuristic_frame_this_id): New.
8527 (alpha_heuristic_frame_prev_register): New.
8528 (alpha_heuristic_frame_unwind): New.
8529 (alpha_heuristic_frame_p): New.
8530 (alpha_heuristic_frame_base_address): New.
8531 (alpha_heuristic_frame_base): New.
8532 (alpha_unwind_dummy_id): New.
8533 (alpha_unwind_pc): New.
8534 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8535 frame related deprecated initializations; install replacements.
8536 (alpha_dump_tdep): Remove.
8537 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8538 (alpha_read_insn, alpha_after_prologue,
8539 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8540 alpha_heuristic_frame_prev_register,
8541 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8542 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8543 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8544 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8545
93ec1121
AC
85462003-05-29 Andrew Cagney <cagney@redhat.com>
8547
8548 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8549 dependant on the availability of ASSERT_FUNCTION.
8550 (ASSERT_FUNCTION): Do not define when there is no function name.
8551
98f08d3d
KB
85522003-05-29 Kevin Buettner <kevinb@redhat.com>
8553
8554 From Jimi X <jimix@watson.ibm.com>:
8555 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8556
0897f59b
JB
85572003-05-28 Jim Blandy <jimb@redhat.com>
8558
8559 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8560 argument to ptrace to int; the system headers should give it the
8561 right type, and pointers don't fit in ints on powerpc64-*-*.
8562
14898363
L
85632003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8564
8565 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8566 DW_TAG_catch_block.
8567
a7a48797
EZ
85682003-05-26 Elena Zannoni <ezannoni@redhat.com>
8569
8570 * stabsread.c (dbx_lookup_type): Make static.
8571 (read_type): Ditto.
8572 (add_undefined_type): Ditto.
8573 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8574 not export.
8575
f5479e9c
EZ
85762003-05-26 Elena Zannoni <ezannoni@redhat.com>
8577
8578 * hpread.c (hpread_has_name): Make static.
8579 (hpread_psymtab_to_symtab): Ditto.
8580 (file_exists): Ditto.
8581 (hpread_call_pxdb): Ditto.
8582 (hpread_pxdb_needed): Ditto.
8583 (hpread_quick_traverse): Ditto.
8584 (hpread_get_header): Ditto.
8585 (hpread_get_lntt): Ditto.
8586 (hpread_get_slt): Ditto.
8587 (class_of): Ditto.
8588
eb2e12d7
AS
85892003-05-25 Andreas Schwab <schwab@suse.de>
8590
78bf922a
AS
8591 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8592 stack_align and deprecated_extra_stack_alignment_needed.
8593 (m68k_stack_align): Delete.
8594
eb2e12d7
AS
8595 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8596 (m68k_register_virtual_size): Likewise.
8597 (altos_skip_prologue): Remove obsolete function.
8598 (isi_frame_num_args): Likewise.
8599 (news_frame_num_args): Likewise.
8600 (m68k_fix_call_dummy): Make static.
8601 (m68k_push_dummy_frame): Likewise.
8602 (m68k_pop_frame): Likewise.
8603 (m68k_skip_prologue): Likewise.
8604 (m68k_frame_init_saved_regs): Likewise.
8605 (m68k_saved_pc_after_call): Likewise.
8606 (m68k_get_longjmp_target): Make multi-arch.
8607 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8608 structure. Register m68k_get_longjmp_target if enabled.
8609 * m68k-tdep.h (struct gdbarch_tdep): Define.
8610 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8611
8612 * Makefile.in (config.status): Also depend on configure.tgt
8613 and configure.host.
8614 (m68klinux-tdep.o): Update dependencies.
8615 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8616 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8617 (M68K_LINUX_JB_PC): Define.
8618 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8619 and take additional parameter.
8620 (m68k_linux_sigtramp_saved_pc): Update.
8621 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8622 m68k_linux_pc_in_sigtramp, in_plt_section,
8623 find_solib_trampoline_target.
8624 * config/m68k/tm-linux.h: Don't include any tm headers.
8625 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8626 (JB_ELEMENT_SIZE): Likewise.
8627 (JB_PC): Likewise.
8628 (GET_LONGJMP_TARGET): Likewise.
8629 (IN_SIGTRAMP): Likewise.
8630 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8631
eb2c22dc
MK
86322003-05-25 Mark Kettenis <kettenis@gnu.org>
8633
8634 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8635 (sparc32_push_arguments): Re-implement by calling
8636 sparc32_do_push_arguments.
8637
44b7b84e
MK
86382003-05-25 Mark Kettenis <kettenis@gnu.org>
8639
8640 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8641 SPARC_O1_REGNUM): New defines.
8642 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8643 (sparc32_store_return_value): New function.
8644 (sparc_extract_struct_value_address): Rewrite to operate on a
8645 regcache.
8646 (sparc_gdbarch_init): Don't set
8647 deprecated_extract_struct_value_address. Set
8648 extract_struct_value_address instead. Don't set
8649 deprecated_extract_return_value and deprecated_store_return_value
8650 for 32-bit targets. Set extract_return_value and
8651 store_return_value instead.
8652 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8653 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8654 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8655 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8656 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8657 (sparc_store_return_value): Remove prototype.
8658 (sparc32_store_return_value): New prototype.
8659 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8660 Adjust prototypes.
8661
f6ad61e3
MK
86622003-05-24 Mark Kettenis <kettenis@gnu.org>
8663
8664 * sparcnbsd-tdep.c: Include "gdb_string.h".
8665
b276f1bb
AC
86662003-05-23 Andrew Cagney <cagney@redhat.com>
8667
8668 * p-valprint.c (pascal_val_print): Replace extract_address with
8669 the inline equivalent extract_unsigned_integer.
8670 * jv-valprint.c (java_value_print): Ditto.
8671 * ada-valprint.c (ada_val_print_1): Ditto.
8672 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8673
e76c5fcc
TR
86742003-05-23 Theodore A. Roth <troth@openavr.org>
8675
8676 * blockframe.c (frameless_look_for_prologue): Remove unused
8677 after_prologue variable.
8678
2cdd89cb
MK
86792003-05-23 Mark Kettenis <kettenis@gnu.org>
8680
8681 * blockframe.c (get_pc_function_start): Rewrite to avoid
8682 asignments in if-statements.
8683
182d43bc
EZ
86842003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8685
8686 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8687 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8688 files, don't relocate absolute symbols (and do use mst_abs).
8689
e8f3fcdd
AC
86902003-05-23 Andrew Cagney <cagney@redhat.com>
8691
8692 * objc-lang.c: Include "gdb_assert.h".
8693 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8694 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8695 (gdb_check, gdb_check_fatal): Delete functions.
8696 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8697 gdb_assert.
8698 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8699 * Makefile.in (objc-lang.o): Update dependencies.
8700
3c23e6fb
ILT
87012003-05-22 Ian Lance Taylor <ian@airs.com>
8702
8703 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8704 with fprintf_filtered, not fprintf_unfiltered.
8705
af1342ab
AC
87062003-05-22 Andrew Cagney <cagney@redhat.com>
8707
8708 * stack.c (frame_info): Inline extract_address, replacing it with
8709 extract_unsigned_integer.
8710 * findvar.c (unsigned_pointer_to_address): Ditto.
8711 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8712 * dwarf2expr.c (dwarf2_read_address): Ditto.
8713 * frame.c (frame_pc_unwind): Update comment.
8714 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8715
47e242ec
JJ
87162003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8717
8718 * infptrace.c (detach): Call print_sys_errmsg rather than
8719 perror_with_name to issue warning message when errno is non-zero
8720 after calling ptrace detach.
8721
e2ac8128
JB
87222003-05-21 J. Brobecker <brobecker@gnat.com>
8723
8724 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8725 macro definitions from here...
8726 * hppa-tdep.c: ...to there.
8727
92b3541e
KB
87282003-05-20 Kevin Buettner <kevinb@redhat.com>
8729
8730 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8731 register_ptrace_addr(). Fix all callers.
8732
55809acb
AS
87332003-05-21 Andreas Schwab <schwab@suse.de>
8734
8735 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8736 dependencies.
8737 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8738 end.
8739 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8740 (_initialize_m68k_linux_tdep): New function.
8741 (m68k_linux_frame_saved_pc): Make static.
8742 (m68k_linux_extract_return_value): Likewise.
8743 (m68k_linux_store_return_value): Likewise.
8744 (m68k_linux_extract_struct_value_address): Likewise.
8745 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8746 Remove.
8747 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8748 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8749 (DEPRECATED_FRAME_SAVED_PC): Remove.
8750
0fbc10f7
KW
87512003-05-20 Kris Warkentin <kewarken@qnx.com>
8752
8753 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8754 regset numbering rather than our own.
8755
58da2eb2
DC
87562003-05-19 David Carlton <carlton@bactrian.org>
8757
8758 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8759
1fcb5155
DC
87602003-05-19 David Carlton <carlton@bactrian.org>
8761
8762 Partial fix for PR c++/827.
8763 * cp-support.h: Include symtab.h.
8764 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8765 * cp-namespace.c: Update contributors.
8766 (cp_lookup_symbol_nonlocal): New.
8767 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8768 (lookup_symbol_file): Ditto.
8769 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8770 * block.h: Declare block_scope, block_using, block_global_block.
8771 * block.c (block_scope): New.
8772 (block_using, block_global_block): Ditto.
8773 * Makefile.in (cp_support_h): Depend on symtab_h.
8774 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8775
5f9a71c3
DC
87762003-05-19 David Carlton <carlton@bactrian.org>
8777
8778 * language.h (struct language_defn): Add 'la_value_of_this'
8779 and 'la_lookup_symbol_nonlocal' members.
8780 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8781 lookup_symbol_static, lookup_symbol_global,
8782 lookup_symbol_aux_block.
8783 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8784 if we should search fields of this and how to do static/global
8785 lookup.
8786 (lookup_symbol_aux_block): Make extern.
8787 (basic_lookup_symbol_nonlocal): New.
8788 (lookup_symbol_static, lookup_symbol_global): Ditto.
8789 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8790 'la_lookup_symbol_nonlocal' members.
8791 * c-lang.c (c_language_defn, cplus_language_defn)
8792 (asm_language_defn, minimal_language_defn): Ditto.
8793 * jv-lang.c (java_language_defn): Ditto.
8794 * language.c (unknown_language_defn, auto_language_defn)
8795 (local_language_defn): Ditto.
8796 * m2-lang.c (m2_language_defn): Ditto.
8797 * objc-lang.c (objc_language_defn): Ditto.
8798 * scm-lang.c (scm_language_defn): Ditto.
8799 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8800 * p-lang.c (pascal_language_defn): Ditto for both.
8801 * Makefile.in (f-lang.o): Depend on value_h.
8802 (p-lang.o): Ditto.
8803
89a9d1b1
DC
88042003-05-19 David Carlton <carlton@bactrian.org>
8805
8806 * block.h: Declare block_static_block.
8807 * block.c (block_static_block): New.
8808 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8809 lookup_symbol_aux_local, calling block_static_block instead.
8810 (lookup_symbol_aux_local): Delete 'static_block' argument.
8811
eed3f8ab
DC
88122003-05-19 David Carlton <carlton@bactrian.org>
8813
8814 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8815
a09d8bda
ML
88162003-05-19 Michal Ludvig <mludvig@suse.cz>
8817
8818 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8819 register numbers mapping.
8820
69636828
AF
88212003-05-18 Adam Fedor <fedor@gnu.org>
8822
8823 * symtab.c (completion_list_objc_symbol): New function.
8824 (make_symbol_completion_list): Use it to add ObjC symbols
8825 when looking though the list.
8826 (language_search_unquoted_string): New function.
8827 (make_file_symbol_completion_list): Use it.
8828
55baeb84
AS
88292003-05-18 Andreas Schwab <schwab@suse.de>
8830
d0b45d99
AS
8831 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8832 dependencies.
8833 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8834 as m68k_linux_extract_return_value.
8835 (DEPRECATED_STORE_RETURN_VALUE): Define as
8836 m68k_linux_store_return_value.
8837 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8838 m68k_linux_extract_struct_value_address.
8839 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8840 get_next_frame, get_frame_base, get_frame_pc.
8841 (m68k_linux_frame_saved_pc): Use get_frame_base.
8842 (m68k_linux_extract_return_value): New function.
8843 (m68k_linux_store_return_value): New function.
8844 (m68k_linux_extract_struct_value_address): New function.
8845 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8846
55baeb84
AS
8847 * c-exp.y (typebase): Remove duplicate occurence of
8848 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8849 of lookup_signed_typename.
55baeb84 8850
b6b08ebf
MK
88512003-05-18 Mark Kettenis <kettenis@gnu.org>
8852
8853 * dwarf2loc.c (find_location_expression): Change type of second
8854 argument to `size_t *'.
8855 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8856 for size variable.
8857
5ad1c190
DC
88582003-05-18 David Carlton <carlton@bactrian.org>
8859
8860 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8861 'linkage_name'. Add comment.
8862 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8863 'linkage_name'.
8864 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8865 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8866 (lookup_block_symbol): Ditto.
8867
b8b527c5
AC
88682003-05-16 Andrew Cagney <cagney@redhat.com>
8869
8870 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8871 * gdbarch.h, gdbarch.c: Re-generate.
8872 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8873 * TODO (REGISTER_BYTES): Delete reference.
8874 * alpha-tdep.c (alpha_gdbarch_init): Update.
8875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8876 * x86-64-tdep.c (x86_64_init_abi): Update.
8877 * vax-tdep.c (vax_gdbarch_init): Update.
8878 * v850-tdep.c (v850_gdbarch_init): Update.
8879 * sparc-tdep.c (sparc_gdbarch_init): Update.
8880 * sh-tdep.c (sh_gdbarch_init): Update.
8881 * s390-tdep.c (s390_gdbarch_init): Update.
8882 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8883 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8884 (ns32k_gdbarch_init_32382): Update.
8885 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8886 * mcore-tdep.c (mcore_gdbarch_init): Update.
8887 * m68k-tdep.c (m68k_gdbarch_init): Update.
8888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8889 * ia64-tdep.c (ia64_gdbarch_init): Update.
8890 * i386-tdep.c (i386_gdbarch_init): Update.
8891 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8892 * hppa-tdep.c (hppa_gdbarch_init): Update.
8893 * h8300-tdep.c (h8300_gdbarch_init): Update.
8894 * frv-tdep.c (frv_gdbarch_init): Update.
8895 * cris-tdep.c (cris_gdbarch_init): Update.
8896 * avr-tdep.c (avr_gdbarch_init): Update.
8897 * arm-tdep.c (arm_gdbarch_init): Update.
8898 * sparc-tdep.c (sparc_pop_frame): Update.
8899 * rs6000-tdep.c (rs6000_pop_frame): Update.
8900 * remote.c (init_remote_state): Update.
8901 (remote_prepare_to_store): Update.
8902 * remote-vx.c (vx_prepare_to_store): Update.
8903 * remote-sds.c (sds_fetch_registers): Update.
8904 (sds_prepare_to_store): Update.
8905 * remote-array.c: Update.
8906 * regcache.c (init_legacy_regcache_descr): Update.
8907 (init_regcache_descr): Update.
8908 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8909 (mips_o64_extract_return_value): Update.
8910 * irix5-nat.c (fetch_core_registers): Update.
8911 * irix4-nat.c (fetch_core_registers): Update.
8912 * i386-tdep.h: Update.
8913 * hppa-tdep.c (pa_do_registers_info): Update.
8914 (pa_do_strcat_registers_info): Update.
8915 * cris-tdep.c (cris_register_bytes_ok): Update.
8916 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8917 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8918 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8919 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8920 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8921 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8922 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8923 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8924 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8925 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8926 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8927 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8928 (REGISTER_BYTES_OK): Update.
8929 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8930 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8931
ee2842e2
ILT
89322003-05-16 Ian Lance Taylor <ian@airs.com>
8933
8934 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8935 (vax_print_insn, print_insn_arg): Remove static functions.
8936 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8937 print_insn_vax from opcodes library.
8938 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8939
973177d3
AC
89402003-05-15 Andrew Cagney <cagney@redhat.com>
8941
aaab4dba
AC
8942 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8943 * target.h (memory_breakpoint_from_pc): Delete declaration.
8944 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8945 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8946 * monitor.c (monitor_insert_breakpoint): Use
8947 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8948 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8949 * gdbarch.h, gdbarch.c: Re-generate.
8950 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8951 (sparc_gdbarch_init): Set breakpoint_from_pc to
8952 sparc_breakpoint_from_pc.
8953 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8954 (BREAKPOINT_FROM_PC): Define.
8955 (sparc_breakpoint_from_pc): Declare.
8956 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8957 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8958 (BREAKPOINT_FROM_PC): Define.
8959 (BREAKPOINT): Delete macro.
8960 * target.h: Update comment.
8961 * s390-tdep.c (s390_gdbarch_init): Update comments.
8962 * remote.c: Update comments.
8963 * remote-mips.c: Update comments.
8964 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8965 * mem-break.c: Update comment.
8966 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8967 (ia64_memory_insert_breakpoint): Update.
8968 * config/sparc/tm-sparc.h: Update comment.
8969 * config/pa/tm-hppa64.h: Update comment.
8970 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8971 (rs6000_breakpoint_from_pc): Update.
8972 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8973 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8974 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8975 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8976 (mips_breakpoint_from_pc): Update.
8977 (mips_dump_tdep): Update.
8978
e06963ff
AC
8979 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8980 * minsyms.c (lookup_minimal_symbol): Inline
8981 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8982
973177d3
AC
8983 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8984 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8985 * p-lang.c (pascal_printstr): Ditto.
8986 * objc-lang.c (objc_printstr): Ditto.
8987 * m2-lang.c (m2_printstr): Ditto.
8988 * jv-valprint.c (java_print_value_fields): Ditto.
8989 * f-lang.c (f_printstr): Ditto.
8990 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8991 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8992 for repeat_count_threshold.
8993 * Makefile.in (cp-valprint.o): Update dependencies.
8994
5ea2bd7f 89952003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8996
5ea2bd7f
JJ
8997 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8998 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8999 they start with mov r2,r12. Support skipping over indirect stores
9000 of the input registers. Upon hitting a non-nop branch instruction
9001 or predicated instruction, bail out by setting lim_pc to the current
9002 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9003 beyond our calculated value and we have trust_limit set,
9004 use the lim_pc value.
9005
cc8c88f3
AC
90062003-05-15 Andrew Cagney <cagney@redhat.com>
9007
9008 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9009 generic_find_dummy_frame.
9010 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9011 (deprecated_generic_find_dummy_frame): Update.
9012 (deprecated_read_register_dummy): Update.
9013 * frame.c (deprecated_generic_get_saved_register): Update.
9014
909cd28e
TR
90152003-05-15 Theodore A. Roth <troth@openavr.org>
9016
9017 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9018 (avr_gdbarch_init): Set breakpoint_from_pc method.
9019
b923b08d
AC
90202003-05-15 Andrew Cagney <cagney@redhat.com>
9021
9022 * regcache.c (build_regcache): Set deprecated_register_valid
9023 directly.
9024 (deprecated_grub_regcache_for_register_valid): Delete function.
9025 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9026 declaration.
9027
ae2f03ac 90282003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9029
9030 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9031 * symtab.c (lookup_symbol_aux): Delete calls to
9032 lookup_symbol_aux_minsyms.
9033 (lookup_symbol_aux_minsyms): Comment out function and
9034 prototype. Delete lookup by mangled name.
ae2f03ac 9035
18ec9831
KB
90362003-05-14 Kevin Buettner <kevinb@redhat.com>
9037
9038 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9039 correctly indicate an empty stack and ``stack_allocated'' to the
9040 indicate the number of elements initially allocated.
9041 (dwarf_expr_grow_stack): Simplify method for computing new
9042 stack size. Don't loop infinitely if ``stack_len'' is zero.
9043 (execute_stack_op): Move ``ctx->in_reg'' initialization
9044 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9045 be used in conjuction with DW_OP_piece. Revise error message
9046 accordingly.
9047
de18ac1f
TR
90482003-05-14 Theodore A. Roth <troth@openavr.org>
9049
9050 * MAINTAINERS: Update my email address.
9051 * avr-tdep.c: Ditto.
9052
176620f1
EZ
90532003-05-14 Elena Zannoni <ezannoni@redhat.com>
9054
9055 * symtab.h (enum domain_enum): Rename from namespace_enum.
9056 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9057 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9058 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9059 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9060 TYPES_NAMESPACE, METHODS_NAMESPACE.
9061 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9062 (struct symbol, struct partial_symbol): Rename field
9063 'namespace_enum namespace' to 'domain_enum domain'.
9064 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9065 Delete old define kludge for namespace.
9066
9067 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9068 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9069 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9070 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9071 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9072 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9073 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9074 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9075 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9076 occurrences of the above.
9077
b7f31508
ILT
90782003-05-14 Ian Lance Taylor <ian@airs.com>
9079
9080 * Makefile.in (install-only): Use $(SHELL) when running
9081 mkinstalldirs.
9082
2fdbdd39
ILT
90832003-05-13 Ian Lance Taylor <ian@airs.com>
9084
a208d82c
ILT
9085 * MAINTAINERS (write after approval): Add myself.
9086
2fdbdd39
ILT
9087 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9088 second and third arguments.
9089 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9090 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9091
fbd9dcd3
AC
90922003-05-13 Andrew Cagney <cagney@redhat.com>
9093
9094 * defs.h (store_address): Delete declaration.
9095 findvar.c (store_address): Delete function.
9096 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9097 store_unsigned_integer.
9098 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9099 * v850-tdep.c (v850_push_arguments): Ditto.
9100 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9101 * sh-tdep.c (sh64_get_saved_register): Ditto.
9102 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9103 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9104 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9105 (mips_get_saved_register): Ditto.
9106 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9107 (find_func_descr, ia64_push_arguments): Ditto.
9108 * i386-tdep.c (i386_push_arguments): Ditto.
9109 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9110 * frv-tdep.c (frv_push_arguments): Ditto.
9111 * frame.c (legacy_saved_regs_prev_register): Ditto.
9112 (deprecated_generic_get_saved_register): Ditto.
9113 * findvar.c (unsigned_address_to_pointer): Ditto.
9114 * dwarf2read.c (dwarf2_const_value): Ditto.
9115 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9116 * alpha-tdep.c (alpha_push_arguments): Ditto.
9117
6760f9e6
JB
91182003-05-12 J. Brobecker <brobecker@gnat.com>
9119
9120 * NEWS: Mention that the hppa-hpux port has been partially
9121 multiarched (32bit ABIT only, so far).
9122
30e221b4
AC
91232003-05-11 Andrew Cagney <cagney@redhat.com>
9124
9125 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9126 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9127 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9128 sim/testsuite/sim/arm/misaligned2.ms, and
9129 sim/testsuite/sim/arm/misaligned3.ms.
9130 * disasm.h (struct ui_file): Add opaque struct declaration.
9131 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9132 * frame.h (struct ui_file): Ditto.
9133
dea7f9ba
MK
91342003-05-11 Mark Kettenis <kettenis@gnu.org>
9135
9136 * value.h: Pretty print.
9137
01986c48
MK
91382003-05-10 Mark Kettenis <kettenis@gnu.org>
9139
9140 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9141
123a958e
AC
91422003-05-08 Andrew Cagney <cagney@redhat.com>
9143
9144 * regcache.h (max_register_size): Delete declaration.
9145 * regcache.c (max_register_size): Delete function.
9146 (struct regcache_descr): Delete field "max_register_size".
9147 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9148 registers fit in MAX_REGISTER_SIZE.
9149 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9150 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9151 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9152 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9153 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9154 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9155 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9156 * dve3900-rom.c, hppa-tdep.c: Ditto.
9157
eb294659
DC
91582003-05-08 David Carlton <carlton@math.stanford.edu>
9159
9160 * valops.c (push_word): Fix typo.
9161
d9d9c31f
AC
91622003-05-08 Andrew Cagney <cagney@redhat.com>
9163
9164 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9165 * gdbarch.h: Re-generate.
9166 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9167 (legacy_max_register_raw_size): Delete declaration.
9168 * regcache.c (legacy_max_register_raw_size): Delete function.
9169 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9170 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9171 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9172 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9173 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9174 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9175 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9176 * findvar.c, dwarf2cfi.c: Ditto.
9177
22540ece
AC
91782003-05-08 Andrew Cagney <cagney@redhat.com>
9179
9180 * mips-tdep.c (read_signed_register): New function, moved to here
9181 from "regcache.c".
9182 (read_signed_register_pid): Ditto.
9183 * regcache.c (read_signed_register_pid): Delete function, moved to
9184 "mips-tdep.c".
9185 (read_signed_register): Ditto.
9186 * regcache.h (read_signed_register): Delete declaration.
9187 (read_signed_register_pid): Delete declaration.
9188
0c92afe8
AC
91892003-05-08 Andrew Cagney <cagney@redhat.com>
9190
9191 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9192 * gdbarch.h: Re-generate.
9193 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9194 (legacy_max_register_virtual_size): Delete declaration.
9195 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9196 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9197 * tracepoint.c (memrange_sortmerge): Ditto.
9198 * sparc-tdep.c (sparc_print_registers): Ditto.
9199 * regcache.c (legacy_max_register_virtual_size): Delete function.
9200
6037b830
JB
92012002-05-08 J. Brobecker <brobecker@gnat.com>
9202
9203 * fork-child.c (escape_bang_in_quoted_argument): New function.
9204 (fork_inferior): Escape '!' characters in quoted arguments
9205 only when needed.
9206
5d62c8b1
JB
92072003-05-08 J. Brobecker <brobecker@gnat.com>
9208
9209 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9210 the language of the CU is not currently supported by GDB.
9211
20a0e81d
JB
92122003-05-08 J. Brobecker <brobecker@gnat.com>
9213
9214 * defs.h (language): Add language_minimal enum value.
9215 * c-lang.c (minimal_language_defn): New language definition.
9216 (_initialize_c_language): Add the new minimal language to the list
9217 of languages known to GDB.
9218
710ee10a
KB
92192003-05-08 Kevin Buettner <kevinb@redhat.com>
9220
9221 * frame.c (get_frame_type): Don't attempt to lazily initialize
9222 frame's unwinder for legacy frames.
9223
1750fa04
AC
92242003-05-07 Andrew Cagney <cagney@redhat.com>
9225
9226 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9227 and "regcache" parameters.
9228 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9229
ddf9f258 92302003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9231
9232 * dwarf2read.c (dwarf_decode_lines): Only use output of
9233 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9234 the current address.
9235
87767c29
AC
92362003-05-07 Andrew Cagney <cagney@redhat.com>
9237
9238 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9239 code.
9240
5e7b2f39
JB
92412003-05-07 Jim Blandy <jimb@redhat.com>
9242
9243 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9244 'maint info symtabs' and 'maint info psymtabs'.
9245 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9246 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9247 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9248 Declarations updated.
9249 * maint.c (maintenance_list_command): Delete.
9250 (_initialize_maint_cmds): Update calls to add_cmd.
9251 * gdbcmd.h (maintenancelistlist): Delete declaration.
9252 * cli/cli-cmds.c (maintenancelistlist): Delete.
9253 (init_cmd_lists): Don't initialize it.
9254 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9255
f6684c31
AC
92562003-05-07 Andrew Cagney <cagney@redhat.com>
9257
9258 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9259 "regcache".
9260 (d10v_print_registers_info): Update.
9261 (d10v_dmap_register, d10v_imap_register): Delete functions.
9262 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9263 and "imap_register".
9264 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9265 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9266 * arch-utils.c (generic_remote_translate_xfer_address): Add
9267 "regcache" and "gdbarch" parameters.
9268 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9269 parameter. Change class to multi-arch.
9270 * gdbarch.h, gdbarch.c: Re-generate.
9271 * remote.c (remote_xfer_memory): Use
9272 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9273
e4846b08
JJ
92742003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9275
9276 * infrun.c (prev_pc): Move declaration ahead of proceed().
9277 (proceed): Refresh prev_pc value before resuming.
9278 (stop_stepping): Remove code to refresh prev_pc.
9279
6b71b8ac
KW
92802003-05-06 Kris Warkentin <kewarken@qnx.com>
9281
9282 * nto-tdep.c: Removed stray comment.
9283
47979a4b
KW
92842003-05-06 Kris Warkentin <kewarken@qnx.com>
9285
9286 * i386-nto-tdep.c: Fix old K&R function definitions.
9287 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9288 Also change add_show_from_set() call to add_setshow_cmd().
9289 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9290
00905d52
AC
92912003-05-05 Andrew Cagney <cagney@redhat.com>
9292
9293 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9294 (fprint_dummy_frames): New function.
9295 (maintenance_print_dummy_frames): New function.
9296 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9297 * frame.c (fprint_frame_id): Make global.
9298 * frame.h (fprint_frame_id): Declare.
9299 * Makefile.in (dummy-frame.o): Update dependencies.
9300
b1e29e33
AC
93012003-05-05 Andrew Cagney <cagney@redhat.com>
9302
9303 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9304 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9305 SIZEOF_CALL_DUMMY_WORDS.
9306 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9307 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9308 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9309 CALL_DUMMY_BREAKPOINT_OFFSET.
9310 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9311 CALL_DUMMY_START_OFFSET.
9312 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9313 * gdbarch.h, gdbarch.c: Re-generate.
9314 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9315 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9316 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9317 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9318 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9319 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9320 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9321 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9322 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9323 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9324 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9325 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9326 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9327 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9328 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9329
93302003-05-05 Kris Warkentin <kewarken@qnx.com>
9331
9332 * configure.tgt: Add i[3456]86-*-nto*.
9333 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9334 * nto-tdep.c: New file. Neutrino target support routines.
9335 * nto-tdep.h: New file. Neutrino target header.
9336 * config/tm-qnxnto.h: New file.
9337 * config/i386/i386nto.mt: New file.
9338 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9339
0ce3d317
AC
93402003-05-04 Andrew Cagney <cagney@redhat.com>
9341
9342 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9343 (load_infrun_state): Ditto.
9344 (struct thread_info): Drop "prev_func_name" field.
9345 * thread.c (load_infrun_state): Update.
9346 (save_infrun_state): Update.
9347 * infrun.c (prev_func_name): Delete variable.
9348 (init_wait_for_inferior): Do not clear prev_func_name.
9349 (stop_stepping, keep_going, context_switch): Do not swap
9350 prev_func_name.
9351 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9352 instead of PC_IN_SIGTRAMP.
9353
46654a5b
AC
93542003-05-04 Andrew Cagney <cagney@redhat.com>
9355
9356 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9357 REGISTER_BYTE with register_offset_hack.
9358 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9359 that REGISTER_BYTE is consistent with the regcache.
9360 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9361 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9362
14b08c1b
MK
93632003-05-04 Mark Kettenis <kettenis@gnu.org>
9364
04c8243f
MK
9365 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9366 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9367
14b08c1b
MK
9368 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9369
c7a11e01
JB
93702003-05-03 J. Brobecker <brobecker@gnat.com>
9371
9372 From Thierry Schneider <tpschneider1@yahoo.com>
9373 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9374 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9375 (mi-cmd-symbol.o): Add rule.
9376
7043d8dc
AC
93772003-05-03 Andrew Cagney <cagney@redhat.com>
9378
9379 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9380 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9381 * gdbarch.h, gdbarch.c: Re-generate.
9382 * d10v-tdep.c (d10v_push_dummy_code): New function.
9383 (d10v_gdbarch_init): Set push_dummy_code.
9384 * infcall.c (legacy_push_dummy_code): New function.
9385 (generic_push_dummy_code): New function.
9386 (push_dummy_code): New function.
9387 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9388 instead of dummy_addr, to push_dummy_call. Move call to
9389 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9390 switch.
9391 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9392
92bf2b80
AC
93932003-05-03 Andrew Cagney <cagney@redhat.com>
9394
9395 * disasm.h (print_insn): Declare.
9396 * disasm.c (init_gdb_disassemble_info): New function.
9397 (gdb_disassembly): Call init_gdb_disassemble_info.
9398 (gdb_print_insn): New function.
9399 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9400 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9401 * mcore-tdep.c: Include "disasm.h"
9402 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9403 * d10v-tdep.c: Include "disasm.h".
9404 (display_trace): Call gdb_print_insn, instead of print_insn.
9405 (print_insn): Delete function.
9406 * printcmd.c: Include "disasm.h".
9407 (print_insn): Delete function.
9408 (print_formatted): Call gdb_print_insn, instead of print_insn.
9409 * Makefile.in (printcmd.o): Update dependencies.
9410 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9411
27d94c49
AC
94122003-05-02 Andrew Cagney <cagney@redhat.com>
9413
82de1e5b
AC
9414 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9415 PC_REGNUM, re-indent.
9416 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9417 PC_REGNUM isn't set.
9418
27d94c49
AC
9419 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9420 * gdbarch.h, gdbarch.c: Re-generate.
9421 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9422 register_virtual_size, pc_regnum, or register_bytes.
9423 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9424 (d10v_register_type): Use D10V_PC_REGNUM.
9425 (d10v_print_registers_info, d10v_read_pc): Ditto.
9426 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9427 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9428
a9c0dc7f
DC
94292003-05-02 David Carlton <carlton@bactrian.org>
9430
9431 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9432 the name with mstrsave.
9433
e33d66ec
EZ
94342003-05-02 Elena Zannoni <ezannoni@redhat.com>
9435
9436 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9437 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9438 (host_charset_name, target_charset_name): New vars for use by
9439 set/show commands.
9440 (host_charset_enum, target_charset_enum): New enums for set/show
9441 commands.
9442 (set_charset_sfunc, set_host_charset_sfunc,
9443 set_target_charset_sfunc): New functions.
9444 (set_host_charset, set_target_charset): Make static.
9445 (list_charsets, set_host_charset_command,
9446 set_target_charset_command): Delete functions.
9447 (show_charset_command): Rewrite as....
9448 (show_charset): Hook this up with the set/show command mechanism.
9449 (_initialize_charset): Change names of charsets to match the
9450 set/show enums. Use host_charset_name and target_charset_name.
9451 Use set/show mechanism for charset, host-charset, target-charset
9452 commands. Do not make 'show host-charset' and 'show
9453 target-charset' be aliases of 'show charset'.
9454
9455 * charset.h (set_host_charset, set_target_charset): Don't export,
9456 they are not used outside the file.
9457
2b6fd0d8
AC
94582003-05-01 Andrew Cagney <cagney@redhat.com>
9459
9460 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9461 (gdb_disassembly): Make "di" non static, always initialize and
9462 cleanup. Always use dis_asm_read_memory.
9463 (gdb_dis_asm_read_memory): Delete function.
9464
6ae2f580
AC
94652003-05-01 Andrew Cagney <cagney@redhat.com>
9466
9467 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9468 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9469
810ecf9f
AC
94702003-04-30 Andrew Cagney <cagney@redhat.com>
9471
9472 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9473 "tm_print_insn_info".
9474 (TARGET_PRINT_INSN_INFO): Delete macro.
9475 (dis_asm_read_memory): Delete function declaration.
9476 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9477 (tm_print_insn_info): Delete variable definition.
9478 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9479 * gdbarch.h, gdbarch.c: Re-generate.
9480 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9481 "deprecated_tm_print_insn_info".
9482 * mcore-tdep.c (mcore_dump_insn): Ditto.
9483 * mips-tdep.c (mips_gdbarch_init): Ditto.
9484 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9485 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9486 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9487 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9488 instead of TARGET_PRINT_INSN_INFO, add comment.
9489 * s390-tdep.c (s390_get_frame_info): Instead of
9490 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9491 (s390_check_function_end, s390_is_sigreturn): Ditto.
9492 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9493 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9494 * disasm.c: Include "gdbcore.h".
9495 (_initialize_disasm): New function, initialize
9496 "deprecated_tm_print_insn_info".
9497 (deprecated_tm_print_insn_info): New variable.
9498 (dis_asm_read_memory): Moved from "corefile.c", made static.
9499 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9500 * Makefile.in (disasm.o): Update dependencies.
9501
07020390
AC
95022003-04-30 Andrew Cagney <cagney@redhat.com>
9503
9504 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9505
a9fa03de
AF
95062003-04-29 Adam Fedor <fedor@gnu.org>
9507
9508 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9509 * infcall.c (find_function_addr): Make non-static.
9510 * infcall.h (find_function_addr): Declare.
9511 * Makefile.in (eval.o): Update dependencies.
9512
1bae87b9
AF
95132003-04-28 Adam Fedor <fedor@gnu.org>
9514
9515 * symtab.c (symbol_find_demangled_name): Check for and demangle
9516 ObjC symbols.
9517 (symbol_init_demangled_name): Init for language_objc as well.
9518
0ba6dca9
AC
95192003-04-28 Andrew Cagney <cagney@redhat.com>
9520
9521 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9522 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9523 * gdbarch.h, gdbarch.c: Re-generate.
9524 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9525 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9526 * inferior.h (deprecated_read_fp): Rename read_fp.
9527 (generic_target_read_fp): Delete declaration.
9528 * regcache.c (generic_target_read_fp): Delete function.
9529 (deprecated_read_fp): Replace read_fp, use
9530 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9531 * d10v-tdep.c (d10v_read_fp): Delete function.
9532 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9533
9534 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9535 deprecated_target_read_fp to generic_target_read_fp.
9536 * sh-tdep.c (sh_gdbarch_init): Ditto.
9537 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9539 * frv-tdep.c (frv_gdbarch_init): Ditto.
9540
9541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9542 deprecated_fp_regnum.
9543 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9544 * vax-tdep.c (vax_gdbarch_init): Ditto.
9545 * v850-tdep.c (v850_gdbarch_init): Ditto.
9546 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9547 * sh-tdep.c (sh_gdbarch_init): Ditto.
9548 * s390-tdep.c (s390_gdbarch_init): Ditto.
9549 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9552 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9554 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9555 * i386-tdep.c (i386_gdbarch_init): Ditto.
9556 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9557 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9558 * frv-tdep.c (frv_gdbarch_init): Ditto.
9559 * cris-tdep.c (cris_gdbarch_init): Ditto.
9560 * avr-tdep.c (avr_gdbarch_init): Ditto.
9561 * arm-tdep.c (arm_gdbarch_init): Ditto.
9562 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9563
9564 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9565 * v850-tdep.c (v850_gdbarch_init): Ditto.
9566 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9567 * sh-tdep.c (sh_gdbarch_init): Ditto.
9568 * s390-tdep.c (s390_gdbarch_init): Ditto.
9569 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9570 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9571 * mips-tdep.c (mips_gdbarch_init): Ditto.
9572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9574 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9575 * frv-tdep.c (frv_gdbarch_init): Ditto.
9576 * avr-tdep.c (avr_gdbarch_init): Ditto.
9577 * arm-tdep.c (arm_gdbarch_init): Ditto.
9578
9579 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9580 DEPRECATED_FP_REGNUM.
9581 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9582 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9583 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9584 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9585 (sparc32_register_virtual_type): Ditto.
9586 * sh-tdep.c (sh64_frame_chain): Ditto.
9587 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9588 (sh_nofp_frame_init_saved_regs): Ditto.
9589 (sh64_nofp_frame_init_saved_regs): Ditto.
9590 (sh_fp_frame_init_saved_regs): Ditto.
9591 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9592 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9593 * procfs.c (procfs_fetch_registers): Ditto.
9594 (procfs_store_registers): Ditto.
9595 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9596 (store_inferior_registers, fetch_core_registers): Ditto.
9597 (fetch_kcore_registers, clear_regs): Ditto.
9598 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9599 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9600 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9601 * nlm/i386.c (do_status): Ditto.
9602 * mipsv4-nat.c (supply_gregset): Ditto.
9603 * mips-tdep.c: Ditto for comments.
9604 * mips-nat.c (fetch_inferior_registers): Ditto.
9605 (store_inferior_registers, fetch_core_registers): Ditto.
9606 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9607 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9608 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9609 (i386_do_pop_frame, i386_register_type): Ditto.
9610 * hppa-tdep.c (hppa_frame_chain): Ditto.
9611 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9612 (hppa_pop_frame, hppa_read_fp): Ditto.
9613 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9614 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9615 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9616 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9617 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9618 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9619 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9620 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9621 * blockframe.c: Ditto for comments.
9622 * arch-utils.h: Ditto for comments.
9623 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9624 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9625 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9626 * alpha-tdep.h: Ditto for comments.
9627 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9628 (alpha_cannot_store_register): Ditto.
9629 (alpha_push_dummy_frame): Ditto.
9630 * alpha-nat.c (supply_gregset): Ditto.
9631
9632 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9633 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9634 * config/sparc/tm-sparc.h: Update comment.
9635
9636 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9637 deprecated_read_fp instead of TARGET_READ_FP.
9638 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9639 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9640 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9641 deprecated_read_fp instead of read_fp.
9642 * s390-tdep.c (s390_push_arguments): Ditto.
9643 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9644 * frame.h: Ditto in comments.
9645 * frame.c (legacy_get_prev_frame): Ditto.
9646 * dummy-frame.c (dummy_frame_this_id): Ditto.
9647 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9648
d7a27068
AC
96492003-04-28 Andrew Cagney <cagney@redhat.com>
9650
9651 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9652 * gdbarch.h, gdbarch.c: Re-generate.
9653 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9654 * vax-tdep.c (_initialize_vax_tdep): Update.
9655 * v850-tdep.c (_initialize_v850_tdep): Update.
9656 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9657 * s390-tdep.c (_initialize_s390_tdep): Update.
9658 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9659 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9660 * mips-tdep.c (_initialize_mips_tdep): Update.
9661 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9662 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9663 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9664 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9665 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9666 * frv-tdep.c (_initialize_frv_tdep): Update.
9667 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9668 (_initialize_cris_tdep): Update.
9669 * arch-utils.c (legacy_print_insn): Update.
9670 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9671
d2630e69
AF
96722003-04-26 Adam Fedor <fedor@gnu.org>
9673
9674 * linespec.c (decode_objc): New function to decode ObjC calls
9675 (decode_line_1): Check for ObjC calls (using decode_objc)
9676 * Makefile (linespec.o): Update dependencies.
9677
3086aeae
DJ
96782003-04-26 Daniel Jacobowitz <drow@mvista.com>
9679
9680 * breakpoint.h (struct breakpoint_ops): New.
9681 (struct breakpoint): Add ops member.
9682
9683 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9684 (mention): Use new breakpoint ops member.
9685 (set_raw_breakpoint): Initialize ops field to NULL.
9686 (print_exception_catchpoint, print_one_exception_catchpoint)
9687 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9688 (gnu_v3_exception_catchpoint_ops): New.
9689 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9690
1fbec6c3
AF
96912003-04-25 Adam Fedor <fedor@gnu.org>
9692
9693 * Makefile.in (COMMON_OBS): Add objc-lang.o
9694
0ef21242
AC
96952003-04-25 Andrew Cagney <cagney@redhat.com>
9696
9697 * d10v-tdep.c (print_insn): Delete function.
9698 (display_trace): Use TARGET_PRINT_INSN.
9699 (_initialize_d10v_tdep): Do not set tm_print_insn.
9700 (d10v_gdbarch_init): Set print_insn.
9701
f75493ed
AC
97022003-04-25 Andrew Cagney <cagney@redhat.com>
9703
9704 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9705 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9706 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9707 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9708 (nr_dmap_regs, a0_regnum): ... new functions.
9709 (d10v_print_registers_info): Use a0_regnum, use register_size.
9710 (d10v_register_byte): Delete function.
9711 (d10v_register_raw_size): Delete function.
9712 (d10v_register_type): Use a0_regnum.
9713 (d10v_print_registers_info): Use a0_regnum.
9714 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9715 (d10v_gdbarch_init): Do not set register_byte or
9716 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9717 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9718 extract_address.
9719 (trace_command): Use XCALLOC.
9720 (print_insn): Delete reference to tm_print_insn.
9721 (saved_regs_unwinder): Use store_unsigned_integer instead of
9722 store_address.
9723 * frame.h (FRAME_OBSTACK_CALLOC): Define
9724
2202b100
DC
97252003-04-25 David Carlton <carlton@bactrian.org>
9726
9727 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9728
4e45ca2e
AF
97292003-04-24 Adam Fedor <fedor@gnu.org>
9730
9731 * objc-lang.c: Include "valprint.h"
9732 * Makefile.in (objc-lang.o): Update dependencies.
9733
93de3e7f
AF
97342003-04-24 Adam Fedor <fedor@gnu.org>
9735
8ffd9b1b 9736 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9737 architecture dependant compilation and mark as unimplemented
9738 (until they get put in the gdbarch vector).
9739
0f20eeea
DC
97402003-04-23 David Carlton <carlton@bactrian.org>
9741
9742 * cp-support.c (cp_find_first_component): Accept 'operator' in
9743 more locations.
9744
74cfe982
AC
97452003-04-23 Andrew Cagney <cagney@redhat.com>
9746
9747 * infcall.c (call_function_by_hand): Eliminate redundant
9748 indentation. Move "saved_async" and "old_cleanups" to where they
9749 are needed.
8ffd9b1b 9750
52557533
AC
97512003-04-23 Andrew Cagney <cagney@redhat.com>
9752
9753 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9754 and "buffer". Move the "name" code to where it is needed.
9755
158775de
AC
97562003-04-23 Andrew Cagney <cagney@redhat.com>
9757
9758 * infcall.c (call_function_by_hand): Move variables "start_sp",
9759 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9760 code to ON_STACK switch branch.
8ffd9b1b 9761
ebc7896c
AC
97622003-04-23 Andrew Cagney <cagney@redhat.com>
9763
9764 * infcall.c (call_function_by_hand): Make declaration of "i",
9765 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9766 lint.
9767
d727590f
AC
97682003-04-23 Andrew Cagney <cagney@redhat.com>
9769
9770 * infcall.c (call_function_by_hand): Delete variable
9771 "n_method_args". Localize "param_type"'s declaration to the loop
9772 that it is used. Reinstate code assigning to said variable -
9773 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9774 Rationalize code using "param_type".
9775
d585e13a
AC
97762003-04-22 Andrew Cagney <cagney@redhat.com>
9777
9778 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9779 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9780 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9781 to DEPRECATED_PUSH_RETURN_ADDRESS.
9782
051caad9
KB
97832003-04-22 Kevin Buettner <kevinb@redhat.com>
9784
9785 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9786 on the DWARF2 register number prior to fetching a register.
9787
77296879
JB
97882003-04-22 J. Brobecker <brobecker@gnat.com>
9789
9790 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9791 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9792 this macro was always set to 0.
77296879
JB
9793 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9794 considering the fact that this macro was always set to 0.
9795 * hppa-tdep.h (hppa_store_return_value): Likewise.
9796 (hppa_extract_return_value): Likewise.
9797
4252f1df
JB
97982003-04-22 J. Brobecker <brobecker@gnat.com>
9799
9800 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9801 the hppa-pro target only.
9802
14604c6b
JB
98032003-04-21 J. Brobecker <brobecker@gnat.com>
9804
9805 Ongoing multi-arch conversion effort for HP/UX:
9806 * config/pa/tm-hppa.h: Move all macro that are no longer
9807 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9808 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9809
77eb01d1
JB
98102003-04-21 J. Brobecker <brobecker@gnat.com>
9811
9812 * config/pa/tm-hppa.h: Obsolete a section that was only used
9813 for hppa-pro.
9814
61995b3b
JB
98152003-04-21 J. Brobecker <brobecker@gnat.com>
9816
9817 Ongoing multi-arch conversion for HP/UX.
9818 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9819 if already defined (allows hppa64 to stay non-multiarched for now).
9820 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9821
4aa79dcc
AC
98222003-04-21 Andrew Cagney <cagney@redhat.com>
9823
9824 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9825
0f751ff2
AC
98262003-04-21 Andrew Cagney <cagney@redhat.com>
9827
9828 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9829 "i386_num_mmx_regs".
9830
04714b91
AC
98312003-04-21 Andrew Cagney <cagney@redhat.com>
9832
9833 * infcall.c: New file.
9834 * infcall.h: New file.
9835 * valarith.c: Include "infcall.h".
9836 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9837 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9838 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9839 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9840 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9841 (SFILES): Add "infcall.c"
9842 (COMMON_OBS): Add "infcall.o".
9843 (infcall.o): Specify dependencies.
9844 * value.h (call_function_by_hand): Delete declaration.
9845 * inferior.h (run_stack_dummy): Delete declaration.
9846 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9847 (run_stack_dummy): Move to "infcall.c", merged into
9848 call_function_by_hand.
9849 * valops.c (call_function_by_hand): Moved to "infcall.c".
9850 (find_function_addr, value_arg_coerce): Ditto.
9851 (unwindonsignal_p, coerce_float_to_double): Ditto.
9852 (_initialize_valops): Move "set/show coerce-float-to-double", and
9853 "set/show unwindonsignal" commands to "infcall.c".
9854 * v850-tdep.c, target.h: Update comments.
9855 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9856 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9857 (sh64_init_extra_frame_info): Update comments.
9858 * mn10300-tdep.c: Update comments.
9859 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9860 * config/sparc/tm-sparc.h: Update comments.
9861 * breakpoint.h: Update comments.
9862 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9863 * arm-tdep.c: Update comment.
9864
f9d3c2a8
MK
98652003-04-19 Mark Kettenis <kettenis@gnu.org>
9866
c40e1eab
MK
9867 * i386-tdep.c (i386_num_register_names): New variable.
9868 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9869 (MM0_REGNUM): Remove redundant parentheses in define.
9870 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9871 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9872 i386_mxcsr_regnum_p): Remove redundant parentheses.
9873 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9874
94ea66b3
MK
9875 * i386-tdep.c (i386_extract_return_value,
9876 i386_store_return_value): Correct check for availability of
9877 floating-point registers.
9878
54299a1d
MK
9879 * i386-tdep.c (i386_frame_num_args): Remove function.
9880 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9881
c86c27af
MK
9882 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9883 mmx_regnum_to_fp_regnum. Adjust all callers.
9884
f9d3c2a8
MK
9885 * i386-tdep.c (i386_get_longjmp_target): Use
9886 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9887 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9888 extract_address.
9889
94ba74a9
MK
98902003-04-19 Mark Kettenis <kettenis@gnu.org>
9891
9892 * core-regset.c: Update comments to reflect reality. Re-order
9893 includes.
9894 (fetch_core_registers): Use switch instead of if. Remove
9895 redundant prototype.
9896
4074e13c
JB
98972003-04-18 Jim Blandy <jimb@redhat.com>
9898
9899 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9900 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9901
e3ab4aba
RH
99022003-04-17 Richard Henderson <rth@redhat.com>
9903
9904 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9905
627bf7c1
EZ
99062003-04-17 Michael Snyder <msnyder@redhat.com>
9907 Karen Bennet <bennet@redhat.com>
9908
9909 Committed by Elena Zannoni <ezannoni@redhat.com>
9910 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9911
514621a9
EZ
99122003-04-17 Elena Zannoni <ezannoni@redhat.com>
9913
9914 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9915 value if the return type is void.
514621a9 9916
b4acd559
JJ
99172003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9918
9919 * thread-db.c: Reindented.
8ffd9b1b 9920
530b167e 99212003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9922
9923 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9924 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9925 as types.
9926
0a48e7e8
MS
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
8ffd9b1b 9950
ab9fe00e
KB
99512003-04-16 Kevin Buettner <kevinb@redhat.com>
9952
610a3745 9953 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9954 the size of ``long double'' to 16, instead of 8.
9955
e64a344c
MK
99562003-04-16 Mark Kettenis <kettenis@gnu.org>
9957
9958 * i386-linux-nat.c: Add some whitespace to make things more
9959 readable.
9960 (fetch_register, store_register, fetch_inferior_registers,
9961 store_inferior_registers): Get rid of assignment in if-statement.
9962 (store_register): Fix typo in error message.
9963
25d41031
AC
99642003-04-16 Andrew Cagney <cagney@redhat.com>
9965
9966 * utils.c (xmmalloc): Always allocate something, matches
9967 libiberty/xmalloc's semantics.
9968 (xmrealloc, xmcalloc): Ditto.
9969
c50901fd
AC
99702003-04-16 Andrew Cagney <cagney@redhat.com>
9971
9972 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9973 update comments.
9974 (get_frame_type): Initialize unwind and type when needed.
9975 (get_frame_id, frame_register_unwind): Ditto.
9976
f81824a9
AC
99772003-04-16 Andrew Cagney <cagney@redhat.com>
9978
9979 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9980 obsolete.
9981 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9982 * sparcl-stub.c: Obsolete file.
9983 * config/sparc/tm-sparclet.h: Obsolete file.
9984 * sparclet-stub.c: Obsolete file.
9985 * sparclet-rom.c: Obsolete file.
9986 * sparcl-tdep.c: Obsolete file.
9987 * config/sparc/tm-sparclite.h: Obsolete file.
9988 * config/sparc/sparclite.mt: Obsolete file.
9989 * config/sparc/sparclet.mt: Obsolete file.
9990 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9991 sparc86x-*-* obsolete.
9992
9219021c
DC
99932003-04-15 David Carlton <carlton@math.stanford.edu>
9994
9995 * Makefile.in (SFILES): Add cp-namespace.c.
9996 (COMMON_OBS): Add cp-namespace.o.
9997 (block.o): Depend on gdb_obstack_h and cp_support_h.
9998 (buildsym.o): Depend on cp_support_h.
9999 (cp-namespace.o): New.
10000 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10001 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10002 (dwarf2read.o): Depend on cp_support_h.
10003 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10004 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10005 processing_current_namespace.
10006 (read_namespace): Update processing_current_namespace; check for
10007 anonymous namespaces.
10008 (dwarf2_name): New function.
10009 (dwarf2_extension): Ditto.
10010 * cp-support.h: Update copyright, contributors.
10011 Add inclusion guards.
10012 Add opaque declaration for structs obstack, block, symbol.
10013 (struct using_direct): New struct.
10014 Add declarations for cp_find_first_component,
10015 cp_entire_prefix_len, processing_has_namespace_info,
10016 processing_current_namespace, cp_is_anonymous,
10017 cp_add_using_directive, cp_initialize_namespace,
10018 cp_finalize_namespace, cp_set_block_scope,
10019 cp_scan_for_anonymous_namespaces.
10020 * cp-namespace.c: New file.
10021 * cp-support.c: Update copyright.
10022 Include ctype.h, gdb_assert.h, gdbcmd.h.
10023 New variable maint_cplus_cmd_list.
10024 (cp_find_first_component): New function.
10025 (cp_entire_prefix_len, maint_cplus_command)
10026 (first_component_command, _initialize_cp_support): Ditto.
10027 * buildsym.c: Include cp-support.h.
10028 New variable using_list.
10029 (add_symbol_to_list): Check for anonymous namespaces.
10030 (finish_block): Set block's scope.
10031 (start_symtab): Initialize C++ namespace support.
10032 (end_symtab): Finalize C++ namespace support.
10033 * block.h: Add opaque declarations for structs
10034 block_namespace_info, using_direct, and obstack.
10035 Add declarations for block_set_scope and block_set_using.
10036 (struct block): Add 'language_specific' member.
10037 (BLOCK_NAMESPACE): New macro.
10038 * block.c: Include gdb_obstack.h and cp-support.h.
10039 (struct block_namespace_info): New struct.
10040 (block_set_scope): New function.
10041 (block_set_using, block_initialize_namespace): Ditto.
10042
d5a921c9
KB
100432003-04-14 Kevin Buettner <kevinb@redhat.com>
10044
10045 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10046 (locate_base): Return early if there aren't any link map offsets.
10047 (svr4_solib_create_inferior_hook): Warn if shared library support
10048 is unavailable.
10049
d2a52b27
DC
100502003-04-14 David Carlton <carlton@math.stanford.edu>
10051
10052 * symtab.c (symbol_set_names): Add prefix when storing Java names
10053 in hash table. Fix for PR java/1039.
10054
980cae7a
DC
100552003-04-14 David Carlton <carlton@math.stanford.edu>
10056
10057 * symtab.c (symbol_set_names): Rename 'name' arg to
10058 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10059 * symtab.h: Change 'name' argument in declaration of
10060 symbol_set_names to 'linkage_name'.
10061 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10062
e227b13c
AC
100632003-04-14 Andrew Cagney <cagney@redhat.com>
10064
10065 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10066 return the fully sign-extended register value.
10067 (get_frame_pointer): Ditto.
10068 (mips_pop_frame): Initialize "proc_desc" after checking for a
10069 dummy frame.
10070
36712a20
AC
100712003-04-14 Andrew Cagney <cagney@redhat.com>
10072
10073 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10074 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10075 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10076 (mips_push_register): Delete function.
10077 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10078 PUSH_FP_REGNUM.
10079
44ea7b70
JB
100802003-04-14 Jim Blandy <jimb@redhat.com>
10081
10082 * symmisc.c: #include "gdb_regex.h".
10083 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10084 functions.
10085 * maint.c (maintenance_list_command): New function.
10086 (_initialize_maint_cmds): Register the above as commands.
10087 * symtab.h (maintenance_list_symtabs,
10088 maintenance_list_psymtabs): New declarations.
10089 * cli/cli-cmds.c (maintenancelistlist): New variable.
10090 (init_cmd_lists): Initialize it.
10091 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10092 * gdbcmd.h (maintenancelistlist): New declaration.
10093 * Makefile.in (symmisc.o): Update dependencies.
10094
2d0c7962
EZ
100952003-04-14 Elena Zannoni <ezannoni@redhat.com>
10096
10097 * s390-nat.c: Include asm/types.h for addr_t.
10098
1947a811
CV
100992003-04-14 Corinna Vinschen <vinschen@redhat.com>
10100
10101 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10102 actually incoming type.
10103
adb616d7
AC
101042003-04-13 Andrew Cagney <cagney@redhat.com>
10105
10106 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10107 get_next_frame and get_frame_saved_regs.
10108
9b5e151c
AC
101092003-04-13 Andrew Cagney <cagney@redhat.com>
10110
10111 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10112 of gdbarch_num_regs.
10113
ef6e7e13
AC
101142003-04-13 Andrew Cagney <cagney@redhat.com>
10115
10116 * frame.h: Mention what replaced what in "struct frame_info".
10117 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10118 deprecated_update_frame_base_hack and
10119 deprecated_update_frame_pc_hack.
10120 * hppa-tdep.c: Ditto.
10121
61fbb938
DJ
101222003-04-13 Daniel Jacobowitz <drow@mvista.com>
10123
10124 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10125 to read_reg and update its comment. Remove regnum member.
10126 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10127 Don't call read_reg when setting in_reg. Call read_reg to get
10128 the frame base if it's in a register. Return the register number
10129 on the stack instead of in the context. Remove extra arguments
10130 to read_reg.
10131 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10132 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10133 the register number on the expression stack.
10134 (needs_frame_read_reg): Remove extra arguments.
10135
0d53c4c4
DJ
101362003-04-13 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10139 made non-static.
10140 (execute_stack_op): All callers updated.
10141 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10142 * dwarf2loc.c (find_location_expression): New function.
10143 (dwarf_expr_frame_base): Call it.
10144 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10145 (dwarf2_tracepoint_var_ref): New function, broken out from
10146 locexpr_tracepoint_var_ref.
10147 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10148 Make static.
10149 (loclist_read_variable, loclist_read_needs_frame): New functions.
10150 (loclist_describe_location, loclist_tracepoint_var_ref): New
10151 functions.
10152 (dwarf2_loclist_funcs): New struct location_funcs.
10153 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10154 (struct dwarf2_locexpr_baton): Add comments.
10155 (dwarf2_loclist_funcs): New extern.
10156 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10157 base_address and base_known.
10158 (dwarf_loc_buffer): New variable.
10159 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10160 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10161 (dwarf2_has_info): Initialize dwarf_loc_offset.
10162 (dwarf2_build_psymtabs): Read in .debug_loc.
10163 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10164 DWARF_LOC_SIZE.
10165 (psymtab_to_symtab_1): Likewise. Move base address calculation
10166 here, from...
10167 (dwarf2_get_pc_bounds): ... here. Use the base address from
10168 cu_header.
10169 (dwarf2_symbol_mark_computed): Handle location lists.
10170
6aca59a3
DJ
101712003-04-13 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10174 if the linkage name demangled successfully.
10175
aca1fcd0
MK
101762003-04-13 Mark Kettenis <kettenis@gnu.org>
10177
97095916
MK
10178 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10179 disassmbly_flavour): Removed.
10180
aca1fcd0
MK
10181 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10182
562a961f
MK
101832003-04-13 Mark Kettenis <kettenis@gnu.org>
10184
10185 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10186
bd013d54
AC
101872003-04-12 Andrew Cagney <cagney@redhat.com>
10188
10189 * frame.h (struct frame_info): Move definition from here ...
10190 * frame.c (struct frame_info): ... to here.
10191
167ef8b1
AC
101922003-04-12 Andrew Cagney <cagney@redhat.com>
10193
10194 * gdbthread.h (save_infrun_state): Delete parameter
10195 "prev_func_start".
10196 (struct thread_info): Delete field "prev_func_start".
10197 (load_infrun_state): Ditto.
10198 * thread.c (load_infrun_state, save_infrun_state): Update.
10199 * infrun.c (prev_func_start): Delete variable.
10200 (context_switch, init_wait_for_inferior): Update.
10201 (stop_stepping, keep_going): Update.
10202
da3331ec
AC
102032003-04-12 Andrew Cagney <cagney@redhat.com>
10204
10205 * gdbarch.sh: Add missing opaque declarations.
10206 * gdbarch.h: Regnerate.
10207 * symtab.h: Add missing opaque declarations.
10208 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10209 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10210 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10211 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10212 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10213 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10214 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10215 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10216 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10217 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10218 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10219 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10220 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10221
18adea3f
AC
102222003-04-11 Andrew Cagney <cagney@redhat.com>
10223
10224 * frame.c (get_frame_id): Return this frame's "id".
10225 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10226 function start.
10227 (legacy_saved_regs_this_id): Replace function body with
10228 internal-error.
10229 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10230 FRAME_OBSTACK_ZALLOC.
10231 (create_new_frame): Mark the frame ID as valid.
10232
2252e863
AO
102332003-04-11 Alexandre Oliva <aoliva@redhat.com>
10234
10235 * Makefile.in (libbfd_h): Added missing setting.
10236 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10237 according to the selected ABI.
10238
a8245ab8
JJ
102392003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10240
10241 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10242
6913c89a
AC
102432003-04-11 Andrew Cagney <cagney@redhat.com>
10244
10245 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10246 SAVED_PC_AFTER_CALL.
10247 * gdbarch.h, gdbarch.c: Regenerate.
10248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10249 * x86-64-tdep.c (x86_64_init_abi): Update.
10250 * vax-tdep.c (vax_gdbarch_init): Update.
10251 * v850-tdep.c (v850_gdbarch_init): Update.
10252 * sparc-tdep.c (sparc_gdbarch_init): Update.
10253 * sh-tdep.c (sh_gdbarch_init): Update.
10254 * s390-tdep.c (s390_gdbarch_init): Update.
10255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10257 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10258 * mips-tdep.c (mips_gdbarch_init): Update.
10259 * mcore-tdep.c (mcore_gdbarch_init): Update.
10260 * m68k-tdep.c (m68k_gdbarch_init): Update.
10261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10262 * ia64-tdep.c (ia64_gdbarch_init): Update.
10263 (ia64_saved_pc_after_call): Update declaration.
10264 * i386ly-tdep.c (i386lynx_init_abi): Update.
10265 * i386-tdep.c (i386_gdbarch_init): Update.
10266 * hppa-tdep.c (hppa_gdbarch_init): Update.
10267 * h8300-tdep.c (h8300_gdbarch_init): Update.
10268 * frv-tdep.c (frv_gdbarch_init): Update.
10269 * cris-tdep.c (cris_gdbarch_init): Update.
10270 * avr-tdep.c (avr_gdbarch_init): Update.
10271 * arm-tdep.c (arm_gdbarch_init): Update.
10272 * alpha-tdep.c (alpha_gdbarch_init): Update.
10273 * ns32knbsd-nat.c (frame_num_args): Update.
10274 * ns32k-tdep.c (umax_frame_num_args): Update.
10275 * mips-tdep.c (mips_init_frame_pc_first): Update.
10276 * infrun.c (step_over_function): Update.
10277 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10278 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10279 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10280 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10281 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10282 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10283 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10284 * arch-utils.c (init_frame_pc_default): Update.
10285 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10286 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10287 declaration.
8ffd9b1b 10288
38edeab8
AC
102892003-04-11 Andrew Cagney <cagney@redhat.com>
10290
10291 * i387-tdep.c: Update copyright.
10292 (i387_to_double): Delete function.
10293 (double_to_i387): Delete function.
10294
81f8a206
AC
102952003-04-10 Andrew Cagney <cagney@redhat.com>
10296
10297 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10298 frame's function's address. Simplify.
10299 (d10v_frame_unwind_cache): Check that the frame's function is
10300 non-zero.
10301
6e691f7a
JB
103022003-04-10 Jim Blandy <jimb@redhat.com>
10303
10304 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10305 call to set_gdbarch_deprecated_push_arguments.
10306
7f78e237
AC
103072003-04-10 Andrew Cagney <cagney@redhat.com>
10308
10309 * frame.c (fprint_frame_id): New function.
10310 (fprint_frame_type, fprint_frame): New function.
10311 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10312 (create_sentinel_frame, get_frame_id): Ditto.
10313 (frame_id_p, frame_id_eq): Ditto.
10314 (frame_id_inner, create_new_frame): Ditto.
10315 (legacy_get_prev_frame, get_prev_frame): Ditto.
10316 (deprecated_update_frame_pc_hack): Ditto.
10317 (frame_register_unwind): Ditto.
10318 (deprecated_update_frame_base_hack): Ditto.
10319
f870b49b
CV
103202003-04-10 Corinna Vinschen <vinschen@redhat.com>
10321
10322 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10323 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10324 frame_chain function.
10325 * Makefile.in: Add dependencies due to above change.
10326
7c86889b
CV
103272003-04-10 Corinna Vinschen <vinschen@redhat.com>
10328
10329 * blockframe.c (legacy_frame_chain_valid): Move call to
10330 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10331 inside_entry_file.
10332
d0a55772
AC
103332003-04-09 Andrew Cagney <cagney@redhat.com>
10334
10335 * frame.h (struct frame_id): Replace "pc" and "base" with
10336 "stack_addr" and "code_addr". Update comments.
10337 (frame_id_build): Update parameter names and comment.
10338 (struct frame_info): Replace "id_p" and "id" with "this_id".
10339 * dummy-frame.c (dummy_frame_this_id): Update.
10340 * breakpoint.c (print_one_breakpoint): Update.
10341 * frame.c (get_frame_id): Update.
10342 (get_frame_base, frame_id_build): Update.
10343 (create_sentinel_frame, legacy_get_prev_frame): Update.
10344 (deprecated_update_frame_base_hack): Update.
10345 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10346 (frame_id_inner): Ditto.
10347
ac16bf07
AC
103482003-04-09 Andrew Cagney <cagney@redhat.com>
10349
10350 * defs.h (gdb_print_host_address): Make "addr" parameter a
10351 pointer constant.
10352 * utils.c (gdb_print_host_address): Update.
10353
366cfc9e
KB
103542003-04-09 Kevin Buettner <kevinb@redhat.com>
10355
10356 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10357 register number for R0 is 0.
10358
cd983b5c
JB
103592003-04-09 J. Brobecker <brobecker@gnat.com>
10360
10361 * frame.h (struct gdbarch): Add opaque structure definition
10362 to avoid a compilation warning on LynxOS 4.0.
10363
d1340264
AC
103642003-04-09 Andrew Cagney <cagney@redhat.com>
10365
10366 * frame.h (struct frame_info): Delete field "pc". Replace
10367 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10368 structure.
10369 * frame.c (frame_pc_unwind): Update.
10370 (create_sentinel_frame): Do not set "pc".
10371 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10372 (get_frame_pc): Call frame_pc_unwind.
10373 (deprecated_update_frame_pc_hack): Update.
10374 (create_new_frame): Use "pc" not "->pc".
10375
90a6fffb
AC
103762003-04-09 Andrew Cagney <cagney@redhat.com>
10377
10378 * frame.c (get_frame_id): Eliminate code updating "frame".
10379 (legacy_get_prev_frame): Ditto.
10380 (get_frame_base): Return id.base directly.
10381 (deprecated_update_frame_base_hack): Update "id.base".
10382 * frame.h (struct frame_info): Delete field "frame".
10383
2fbce691
AC
103842003-04-09 Andrew Cagney <cagney@redhat.com>
10385
10386 * NEWS: Mention that the "Sequent family" is obsolete.
10387 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10388 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10389 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10390 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10391 * config/i386/tm-ptx4.h: Obsolete file.
10392 * config/i386/tm-ptx.h: Obsolete file.
10393 * symm-tdep.c: Obsolete file.
10394 * config/i386/symmetry.mt: Obsolete file.
10395 * config/i386/tm-symmetry.h: Obsolete file.
10396 * symm-nat.c: Obsolete file.
10397 * config/i386/nm-symmetry.h: Obsolete file.
10398 * config/i386/xm-symmetry.h: Obsolete file.
10399 * config/i386/symmetry.mh: Obsolete file.
10400 * config/i386/nm-ptx4.h: Obsolete file.
10401 * config/i386/ptx4.mh: Obsolete file.
10402 * config/i386/ptx.mt: Obsolete file.
10403 * config/i386/ptx.mh: Obsolete file.
10404 * config/i386/xm-ptx4.h: Obsolete file.
10405 * config/i386/xm-ptx.h: Obsolete file.
10406
78c43945
AC
104072003-04-09 Andrew Cagney <cagney@redhat.com>
10408
10409 Obsolete mips*-*-mach3*.
10410 * NEWS: Mention that mips*-*-mach3* is obsolete.
10411 * m3-nat.c: Obsolete file.
10412 * config/nm-m3.h: Obsolete file.
10413 * config/mips/tm-mipsm3.h: Obsolete file.
10414 * config/mips/mipsm3.mt: Obsolete file.
10415 * config/mips/mipsm3.mh: Obsolete file.
10416 * config/mips/xm-mipsm3.h: Obsolete file.
10417 * mipsm3-nat.c: Obsolete file.
10418 * configure.host: Obsolete mips-dec-mach3*.
10419 * configure.tgt: Obsolete mips*-*-mach3*.
10420
f1908289
AC
104212003-04-09 Andrew Cagney <cagney@redhat.com>
10422
10423 * doublest.h: Update copyright.
10424 (deprecated_store_floating, deprecated_extract_floating): Rename
10425 store_floating and extract_floating. Update comments.
10426 * doublest.c: Update copyright.
10427 (extract_floating_by_length): Replace extract_floating.
10428 (store_floating_by_length): Replace store_floating.
10429 (deprecated_extract_floating): New function.
10430 (deprecated_store_floating): New function.
10431 (extract_typed_floating): Call extract_floating_by_length.
10432 (store_typed_floating): Call store_floating_by_length.
10433 * x86-64-tdep.c (x86_64_store_return_value): Update.
10434 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10435 (sh64_extract_return_value): Update.
10436 (sh_sh4_register_convert_to_virtual): Update.
10437 (sh_sh64_register_convert_to_virtual): Update.
10438 (sh_sh4_register_convert_to_raw): Update.
10439 (sh_sh64_register_convert_to_raw): Update.
10440 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10441 (rs6000_register_convert_to_raw): Update.
10442 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10443 (ia64_register_convert_to_raw): Update.
10444 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10445 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10446 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10447 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10448 (alpha_register_convert_to_raw): Update.
10449
4443bd83
AC
104502003-04-08 Andrew Cagney <cagney@redhat.com>
10451
10452 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10453 * gdbarch.h, gdbarch.c: Re-generate.
10454 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10455 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10456 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10457 conditionally, use frame_pc_unwind as an alternative. Add
10458 comments.
10459 * arch-utils.c (init_frame_pc_default): Only call
10460 SAVED_PC_AFTER_CALL when available.
10461
c0236d92
EZ
104622003-04-08 Elena Zannoni <ezannoni@redhat.com>
10463
fbe586ae 10464 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10465 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10466 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10467 (start_remote): Ditto.
10468 (handle_inferior_event): Ditto.
10469 (save_inferior_status): Ditto.
10470 (restore_inferior_status): Ditto.
10471 * infcmd.c (attach_command): Ditto.
10472 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10473 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10474 * alpha-tdep.c (heuristic_proc_start): Ditto.
10475 * mips-tdep.c (heuristic_proc_start): Ditto.
10476 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10477 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10478 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10479 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10480 * remote-vx.c (vx_create_inferior): Ditto.
10481
104822003-04-08 Elena Zannoni <ezannoni@redhat.com>
10483
10484 * infrun.c (stop_soon_quietly): Make it an enum, to better
10485 override the default behavior of handle_inferior_event.
10486 (clear_proceed_status): Update uses of stop_soon_quietly to
10487 reflect that it is now an enum.
10488 (start_remote): Ditto.
10489 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10490 is set to handle the new GNU/Linux kernel behavior for
10491 attach/sigstop. Update uses of stop_soon_quietly.
10492 * inferior.h (enum stop_kind): New enum.
10493 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10494 Reset normal handle_inferior_event behavior, afterwards.
10495 * fork-child.c (startup_inferior): Update.
10496 * alpha-tdep.c (heuristic_proc_start): Update.
10497 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10498 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10499 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10500 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10501 * remote-vx.c (vx_create_inferior): Update.
10502 * mips-tdep.c (heuristic_proc_start): Update.
10503
1211bce3
EZ
105042003-04-07 Elena Zannoni <ezannoni@redhat.com>
10505
10506 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10507 be freed more than once, causing wild memory corruptions.
1211bce3 10508 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10509 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10510 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10511 with the "core" target.
1211bce3 10512
f0ef6b29
KB
105132003-04-07 Kevin Buettner <kevinb@redhat.com>
10514
10515 * mips-tdep.c (mips_print_fp_register): New function, created from
10516 do_fp_register_row(). Registers are now (also) printed as hex.
10517 Only one register is printed per row.
10518 (mips_print_register, do_fp_register_row): Print floating point
10519 registers with mips_print_fp_register().
10520
8cf71652
AC
105212003-04-06 Andrew Cagney <cagney@redhat.com>
10522
5e488a7b
AC
10523 * valprint.h (inspect_it): Add extern declaration.
10524 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10525 (selectors_info, classes_info): Ditto.
10526 (find_objc_msgcall): Fix indentation.
10527 (objc_printstr): Delete extern declarations.
10528
8cf71652
AC
10529 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10530
e6ba3bc9
AC
105312003-04-06 Andrew Cagney <cagney@redhat.com>
10532
10533 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10534 Update comment.
10535 * frame.c (legacy_saved_regs_this_id): Update.
10536 (legacy_get_prev_frame): Update.
10537 * xstormy16-tdep.c: Update comment.
10538 * sparc-tdep.c (sparc_frame_chain): Update comment.
10539 * blockframe.c (legacy_frame_chain_valid): Update.
10540
55e1d7e7
AC
105412003-04-06 Andrew Cagney <cagney@redhat.com>
10542
996179ee
AC
10543 * valprint.c (val_print_type_code_int): Delete #ifdef
10544 PRINT_TYPELESS_INTEGER code.
10545
55e1d7e7
AC
10546 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10547 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10548 multi-arch definition.
10549 * gdbarch.h: Re-generate.
10550
43bd9a9e
AC
105512003-04-05 Andrew Cagney <cagney@redhat.com>
10552
10553 Eliminate FRAME_FIND_SAVED_REGS.
10554 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10555 Change FSR parameter to a pointer.
10556 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10557 Assume FSR parameter is a pointer.
10558 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10559 Make fsr a pointer.
10560 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10561 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10562 saved_regs a pointer.
10563 (hppa_frame_saved_pc): Ditto.
10564 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10565 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10566 pointer.
10567 (restore_pc_queue): Make fsr a pointer.
10568 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10569 (hppa_frame_chain): Make saved_regs a pointer, call
10570 hppa_frame_init_saved_regs.
10571 * sparc-tdep.c: Include "gdb_assert.h".
10572 (sparc_frame_find_saved_regs): Replace internal_error with
10573 gdb_assert.
10574 * remote-vxsparc.c (vx_read_register): Delete reference to
10575 FRAME_FIND_SAVED_REGS.
10576 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10577 * gdbarch.h: Regenerate.
10578 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10579 (deprecated_get_frame_saved_regs): Delete declaration.
10580 (struct frame_saved_regs): Delete definition.
10581 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10582 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10583 (hppa_frame_find_saved_regs): Delete declaration.
10584 (FRAME_FIND_SAVED_REGS): Delete macro.
10585 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10586 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10587 FRAME_FIND_SAVED_REGS in comment.
10588
be41e9f4
AC
105892003-04-05 Andrew Cagney <cagney@redhat.com>
10590
10591 * frame.c (frame_func_unwind, get_frame_func): New functions.
10592 * frame.h (get_frame_func, frame_func_unwind): Declare.
10593 (struct frame_info): Add field "prev_func" for caching the
10594 previous frame's function address.
10595 * arm-tdep.c (arm_frameless_function_invocation): Combine
10596 get_pc_function_start and get_frame_pc into get_frame_func.
10597 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10598 (sh64_nofp_frame_init_saved_regs): Ditto.
10599 * s390-tdep.c (s390_function_start): Ditto.
10600 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10601 (rs6000_frameless_function_invocation): Ditto.
10602 (rs6000_frame_saved_pc): Ditto.
10603 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10604 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10605 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10606 (i386_frame_init_saved_regs): Ditto.
10607 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10608 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10609 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10610 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10611 * blockframe.c (frameless_look_for_prologue): Ditto.
10612
a01dd7cc
AC
106132003-04-05 Andrew Cagney <cagney@redhat.com>
10614
10615 * frame.c (legacy_get_prev_frame): Link prev to next at the
10616 function start. Update comments.
10617
5e5592e6
AC
106182003-04-05 Andrew Cagney <cagney@redhat.com>
10619
10620 * frame.c (get_frame_id): Update comment.
10621 (legacy_get_prev_frame): Update comment.
10622 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10623 * gdbarch.h: Regenerate.
10624 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10625 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10626
6fba5002
AC
106272003-04-05 Andrew Cagney <cagney@redhat.com>
10628
10629 * stack.c (print_frame_info): Use get_frame_pc.
10630
7df05f2b
AC
106312003-04-04 Andrew Cagney <cagney@redhat.com>
10632
10633 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10634 the frame's type from the unwinder.
10635 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10636 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10637 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10638 (get_frame_base_address): Use get_frame_type.
10639 (get_frame_locals_address, get_frame_args_address): Ditto.
10640 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10641 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10642 (struct frame_info): Add comment explaining why the frame contains
10643 a "type" field.
10644 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10645 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10646 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10647 NORMAL_FRAME.
10648 * frame-unwind.h: Include "frame.h".
10649 (struct frame_unwind): Add "type" field.
10650 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10651
11889732
AC
106522003-04-04 Andrew Cagney <cagney@redhat.com>
10653
10654 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10655 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10656 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10657 get_frame_base.
10658 (d10v_unwind_dummy_id): Use frame_id_build.
10659 * frame.c (find_frame_sal): Use get_frame_pc.
10660 (create_new_frame): Use deprecated_update_frame_pc_hack and
10661 deprecated_update_frame_base_hack.
10662 (create_sentinel_frame): Add comment about ->pc going away.
10663 (get_prev_frame): Add comment about ->pc going away.
10664 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10665 frame_id_build, deprecated_update_frame_pc_hack and
10666 deprecated_update_frame_base_hack.
10667 (select_frame): Use get_frame_pc.
10668 (legacy_saved_regs_this_id): Use frame_id_build.
10669
50c46a0d
EZ
106702003-04-04 Elena Zannoni <ezannoni@redhat.com>
10671
fbe586ae
RH
10672 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10673 signed integer case.
10674 (classify_argument): Handle enumerations and references.
50c46a0d 10675
50bbdbd9
AC
106762003-04-04 Andrew Cagney <cagney@redhat.com>
10677
10678 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10679 ID to NULL.
10680
36018d2e
AF
106812003-04-01 Adam Fedor <fedor@gnu.org>
10682
10683 * gdb/objc-lang.c (selectors_info): Replace calls to
10684 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10685 SYMBOL_NATURAL_NAME.
10686 (classes_info, find_methods): Likewise.
10687
35cec841
KB
106882003-04-03 Kevin Buettner <kevinb@redhat.com>
10689
10690 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10691 ``mach'' to the value determined by bfd_default_set_arch_mach().
10692
43136899
BR
106932003-04-02 Bob Rossi <bob_rossi@cox.net>
10694
10695 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10696 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10697 (mi-cmd-file.o): Update dependencies.
10698
040b99fd
KB
106992003-04-01 Kevin Buettner <kevinb@redhat.com>
10700
10701 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10702 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10703
9a3d7dfd
AF
107042003-04-01 Adam Fedor <fedor@gnu.org>
10705
10706 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10707 * language.h (struct language_defn): Add la_demangle.
10708 (language_demangle): Declare.
10709 * language.c (language_demangle): New function.
10710 (unk_lang_demangle): Likewise.
10711 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10712 Add ukn_lang_demangle.
9a3d7dfd 10713 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10714 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10715 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10716 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10717 * jv-lang.c (java_demangle): New function
10718 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10719 * objc-lang.c (objc_demangle): Add options argument
10720 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10721 * maint.c (maintenance_demangle): Replace switch with
10722 call to language_demangle.
10723 * utils.c (fprintf_symbol_filtered): Likewise.
10724
5e074003
AC
107252003-04-01 Andrew Cagney <cagney@redhat.com>
10726
10727 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10728 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10729 PRINT_TYPELESS_INTEGER.
10730 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10731 PUSH_RETURN_ADDRESS.
10732
270cb5d6
AC
107332003-04-01 Andrew Cagney <cagney@redhat.com>
10734
10735 * Makefile.in (d10v-tdep.o): Update dependencies.
10736 * d10v-tdep.c: Include "frame-base.h".
10737 (d10v_frame_unwind): Make constant.
10738 (d10v_frame_base_address): New function.
10739 (d10v_frame_base): New variable.
10740 (d10v_gdbarch_init): Set frame_base default.
10741 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10742 comment for base.
10743 (d10v_frame_unwind_cache): Set and use "prev_sp".
10744 (d10v_frame_this_id): Use the previous frame's inner most stack
10745 address and this frame's func address for the frame ID. Use
10746 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10747
6bfb3e36
AC
107482003-04-01 Andrew Cagney <cagney@redhat.com>
10749
10750 * frame.h (get_frame_locals_address, get_frame_args_address):
10751 Refer to the base address, instead of the address of the first
10752 local or parameter.
8ffd9b1b 10753
da62e633
AC
107542003-04-01 Andrew Cagney <cagney@redhat.com>
10755
10756 Add frame debug info addresses:
10757 * frame-base.c: New file.
10758 * frame-base.h: New file.
10759 * frame.h (struct frame_base): Add opaque declaration.
10760 (get_frame_base): Update comment.
10761 (get_frame_base_address): Declare.
10762 (get_frame_locals_address): Declare.
10763 (get_frame_args_address): Declare.
10764 (struct frame_info): Add "base" and "base_cache". Update
10765 comments on the unwinder.
10766 * frame.c: Include "frame-base.h".
10767 (get_frame_locals_address): New function.
10768 (get_frame_base_address): New function.
10769 (get_frame_args_address): New function.
10770 * findvar.c (read_var_value): Use get_frame_locals_address and
10771 get_frame_args_address.
10772 * stack.c (frame_info): Use get_frame_locals_address and
10773 get_frame_args_address.
10774 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10775 moved to "frame-base.c".
10776 * printcmd.c (print_frame_nameless_args): Ditto.
10777 * symtab.h (address_class): Update comments.
10778 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10779 get_frame_base_address.
10780 * dwarf2expr.c (execute_stack_op): Ditto.
10781 * Makefile.in (frame_base_h): Define.
10782 (frame.o): Update dependencies.
10783 (frame-base.o): Add dependencies.
10784 (SFILES): Add frame-base.c.
10785 (COMMON_OBS): Add frame-base.o.
10786
3d30e9c2
AC
107872003-04-01 Andrew Cagney <cagney@redhat.com>
10788
10789 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10790 CALL_DUMMY_LENGTH): Ditto.
10791 * gdbarch.c: Re-generate.
10792 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10793 (CALL_DUMMY_LENGTH): Delete macro.
10794 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10795 * arm-tdep.c (arm_gdbarch_init): Ditto.
10796 * avr-tdep.c (avr_gdbarch_init): Ditto.
10797 * cris-tdep.c (cris_gdbarch_init): Ditto.
10798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10799 * frv-tdep.c (frv_gdbarch_init): Ditto.
10800 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10801 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10802 * i386-tdep.c (i386_gdbarch_init): Ditto.
10803 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10806 * mips-tdep.c (mips_gdbarch_init): Ditto.
10807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10808 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10809 * s390-tdep.c (s390_gdbarch_init): Ditto.
10810 * sh-tdep.c (sh_gdbarch_init): Ditto.
10811 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10812 * v850-tdep.c (v850_gdbarch_init): Ditto.
10813 * vax-tdep.c (vax_gdbarch_init): Ditto.
10814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10815
ce0c7262
CV
108162003-04-01 Corinna Vinschen <vinschen@redhat.com>
10817
10818 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10819
73dd234f
AC
108202003-04-01 Andrew Cagney <cagney@redhat.com>
10821
10822 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10823 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10824 * gdbarch.h, gdbarch.c: Re-generate.
10825 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10826 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10827 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10828 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10829 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10830 * infcmd.c (run_stack_dummy): Simplify assuming
10831 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10832 * infrun.c (handle_inferior_event): Ditto.
10833 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10834 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10835 * arm-tdep.c (arm_gdbarch_init): Ditto.
10836 * avr-tdep.c (avr_gdbarch_init): Ditto.
10837 * cris-tdep.c (cris_gdbarch_init): Ditto.
10838 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10839 * frv-tdep.c (frv_gdbarch_init): Ditto.
10840 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10841 * i386-tdep.c (i386_gdbarch_init): Ditto.
10842 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10844 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10845 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10846 * mips-tdep.c (mips_gdbarch_init): Ditto.
10847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10848 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10849 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10850 * s390-tdep.c (s390_gdbarch_init): Ditto.
10851 * sh-tdep.c (sh_gdbarch_init): Ditto.
10852 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10853 * v850-tdep.c (v850_gdbarch_init): Ditto.
10854 * vax-tdep.c (vax_gdbarch_init): Ditto.
10855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10856
97606a13
DJ
108572003-04-01 Daniel Jacobowitz <drow@mvista.com>
10858
10859 * symfile.c (symfile_relocate_debug_section): Update call to
10860 bfd_simple_get_relocated_section_contents.
10861
e8ab51f7
AC
108622003-03-31 Andrew Cagney <cagney@redhat.com>
10863
10864 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10865 * gdbarch.h, gdbarch.c: Regenerate.
10866 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10867 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10868 available.
10869 * frame.h (generic_fix_call_dummy): Delete declaration.
10870 * dummy-frame.h: Update comment.
10871 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10873 fix_call_dummy.
10874 * sh-tdep.c (sh_gdbarch_init): Ditto.
10875 * s390-tdep.c (s390_gdbarch_init): Ditto.
10876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10877 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10879 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10880 * i386-tdep.c (i386_gdbarch_init): Ditto.
10881 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10882 * frv-tdep.c (frv_gdbarch_init): Ditto.
10883 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10884 * cris-tdep.c (cris_gdbarch_init): Ditto.
10885 * avr-tdep.c (avr_gdbarch_init): Ditto.
10886 * arm-tdep.c (arm_gdbarch_init): Ditto.
10887
018d1b48
JB
108882003-03-31 J. Brobecker <brobecker@gnat.com>
10889
10890 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10891 (INIT_FRAME_AP): Likewise.
10892 (EXTRA_FRAME_INFO): Likewise.
10893
e9a2674e
AC
108942003-03-31 Andrew Cagney <cagney@redhat.com>
10895
10896 * gdbarch.sh: Include "symfile.h".
10897 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10898 * gdbarch.h, gdbarch.c: Re-generate.
10899 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10901 call_dummy_address, the default is at entry_point_address.
10902 * v850-tdep.c (v850_gdbarch_init): Ditto.
10903 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10904 * sh-tdep.c (sh_gdbarch_init): Ditto.
10905 * s390-tdep.c (s390_gdbarch_init): Ditto.
10906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10909 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10910 * i386-tdep.c (i386_gdbarch_init): Ditto.
10911 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10912 * frv-tdep.c (frv_gdbarch_init): Ditto.
10913 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10914 * cris-tdep.c (cris_gdbarch_init): Ditto.
10915 * arm-tdep.c (arm_gdbarch_init): Ditto.
10916
e8a8712a
AC
109172003-03-31 Andrew Cagney <cagney@redhat.com>
10918
10919 * gdbarch.sh (CALL_DUMMY_P): Delete.
10920 * gdbarch.h, gdbarch.c: Re-generate.
10921 * inferior.h (CALL_DUMMY_P): Delete macro.
10922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10923 * vax-tdep.c (vax_gdbarch_init): Update.
10924 * v850-tdep.c (v850_gdbarch_init): Update.
10925 * sparc-tdep.c (sparc_gdbarch_init): Update.
10926 * sh-tdep.c (sh_gdbarch_init): Update.
10927 * s390-tdep.c (s390_gdbarch_init): Update.
10928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10931 * mips-tdep.c (mips_gdbarch_init): Update.
10932 * mcore-tdep.c (mcore_gdbarch_init): Update.
10933 * m68k-tdep.c (m68k_gdbarch_init): Update.
10934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10935 * ia64-tdep.c (ia64_gdbarch_init): Update.
10936 * i386-tdep.c (i386_gdbarch_init): Update.
10937 * h8300-tdep.c (h8300_gdbarch_init): Update.
10938 * frv-tdep.c (frv_gdbarch_init): Update.
10939 * d10v-tdep.c (d10v_gdbarch_init): Update.
10940 * cris-tdep.c (cris_gdbarch_init): Update.
10941 * breakpoint.c (deprecated_frame_in_dummy): Update.
10942 * avr-tdep.c (avr_gdbarch_init): Update.
10943 * alpha-tdep.c (alpha_gdbarch_init): Update.
10944 * arm-tdep.c (arm_gdbarch_init): Update.
10945 * dummy-frame.c (dummy_frame_this_id): Update comments.
10946 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10947 * frame.c (legacy_get_prev_frame): Ditto.
10948 * valops.c (call_function_by_hand): Delete function.
10949 (hand_function_call): Rename to call_function_by_hand
10950
ed234cf8
AC
109512003-03-30 Andrew Cagney <cagney@redhat.com>
10952
10953 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10954 * value.h (struct value): Update comment.
ed234cf8 10955
06c77151
AC
109562003-03-30 Andrew Cagney <cagney@redhat.com>
10957
6c2b5168
AC
10958 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10959 D10V_FP_REGNUM.
10960 (d10v_gdbarch_init): Do not set fp_regnum.
10961
06c77151
AC
10962 * frame.c (get_frame_base): Force ID initialization.
10963 (get_prev_frame): Move computation of the frame ID from here ...
10964 (get_frame_id): ... to here.
10965 (legacy_get_prev_frame): Mark the frame ID as valid.
10966 * frame.h (struct frame_info): Add field "id_p".
10967
97a1a11c
MK
109682003-03-30 Mark Kettenis <kettenis@gnu.org>
10969
10970 * i386-tdep.c (i386_store_struct_return): Removed.
10971 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10972
6c0e89ed
AC
109732003-03-30 Andrew Cagney <cagney@redhat.com>
10974
10975 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10976 * gdbarch.h, gdbarch.c: Regenerate.
10977 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10980 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10981 * i386-tdep.c (i386_gdbarch_init): Ditto.
10982 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10983 * cris-tdep.c (cris_gdbarch_init): Ditto.
10984 * vax-tdep.c (vax_gdbarch_init): Ditto.
10985 * s390-tdep.c (s390_gdbarch_init): Ditto.
10986 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10987 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10988 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10989 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10990 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10991 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10992 * sparc-tdep.c (sparc_gdbarch_init): Update.
10993 * sh-tdep.c (sh_gdbarch_init): Update.
10994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10995 * mips-tdep.c (mips_gdbarch_init): Update.
10996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10997 * ia64-tdep.c (ia64_gdbarch_init): Update.
10998 * frv-tdep.c (frv_gdbarch_init): Update.
10999 * avr-tdep.c (avr_gdbarch_init): Update.
11000 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11001 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11002 instead of when push_dummy_call is not available.
8ffd9b1b 11003
f7dd6af2
AC
110042003-03-30 Andrew Cagney <cagney@redhat.com>
11005
11006 * infttrace.c: Include "gdbthread.h".
11007 (parent_attach_all): Fix function signature.
11008 (call_ptrace): Update call.
11009 * Makefile.in (infttrace.o): Update dependencies.
11010
28f617b3
AC
110112003-03-30 Andrew Cagney <cagney@redhat.com>
11012
11013 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11014 PUSH_RETURN_ADDRESS.
11015 * gdbarch.h, gdbarch.c: Regenerate.
11016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11017 * x86-64-tdep.c (x86_64_init_abi): Update.
11018 * v850-tdep.c (v850_gdbarch_init): Update.
11019 * sparc-tdep.c (sparc_gdbarch_init): Update.
11020 * sh-tdep.c (sh_gdbarch_init): Update.
11021 * s390-tdep.c (s390_gdbarch_init): Update.
11022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11024 * mips-tdep.c (mips_gdbarch_init): Update.
11025 * mcore-tdep.c (mcore_gdbarch_init): Update.
11026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11027 * ia64-tdep.c (ia64_gdbarch_init): Update.
11028 * i386-tdep.c (i386_gdbarch_init): Update.
11029 * h8300-tdep.c (h8300_gdbarch_init): Update.
11030 * frv-tdep.c (frv_gdbarch_init): Update.
11031 * cris-tdep.c (cris_gdbarch_init): Update.
11032 * avr-tdep.c (avr_gdbarch_init): Update.
11033 * arm-tdep.c (arm_gdbarch_init): Update.
11034 * valops.c (hand_function_call): Update.
11035
4d628cd7
AC
110362003-03-29 Andrew Cagney <cagney@redhat.com>
11037
11038 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11039 sizeof_call_dummy_words.
11040 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11041 define.
11042 * gdbarch.h: Regenerate.
8ffd9b1b 11043
65e82032
AC
110442003-03-29 Andrew Cagney <cagney@redhat.com>
11045
11046 * infttrace.h: New file.
11047 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11048 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11049 (hpread_read_doc_function_type): Detect an initialized type1.
11050 (hpread_quick_traverse): Initialize mod_name_string.
11051 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11052 (som_solib_get_solib_by_pc): Declare.
11053 (so_lib_thread_start_addr): Declare.
11054 (no_shared_libraries): Declare.
11055 * somread.c (init_import_symbols): Make static. Add forward
11056 declaration.
11057 * config/pa/nm-hppah.h: Include "infttrace.h" for
11058 parent_attach_all.
11059 (hppa_insert_hw_watchpoint): Declare.
11060 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11061 * hppah-nat.c: Include "gdb_string.h".
11062 (parent_attach_all): Delete extern declaration, moved to
11063 "infttrace.h".
11064 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11065 int.
11066 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11067 * Makefile.in (infttrace_h): Define.
11068 (hpread.o): Update dependencies.
11069 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11070 * hppa-hpux-tdep.c: Include "gdb_string.h".
11071 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11072 * infrun.c (handle_inferior_event): Always initialize
11073 stepped_after_stopped_by_watchpoint. Add default and remove
11074 fallthrough in switch statement.
11075 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11076 parameter to int.
11077 (hppa_remove_hw_watchpoint): Ditto.
11078
2c3bbe77
AC
110792003-03-29 Andrew Cagney <cagney@redhat.com>
11080
11081 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11082 offset.
11083
2dd604e7
RE
110842003-03-29 Richard Earnshaw <rearnsha@arm.com>
11085
11086 * arm-tdep.c (arm_push_arguments): Delete.
11087 (struct stack_item): New type.
11088 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11089 (arm_store_struct_return): Delte.
11090 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11091 arm_push_arguments or arm_store_struct_return.
11092
e8933a55
AC
110932003-03-28 Andrew Cagney <cagney@redhat.com>
11094
11095 * Makefile.in (d10v-tdep.o): Update dependencies.
11096 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11097 * d10v-tdep.c: Include "remote.h".
11098 (target_resume_hook): Delete extern declaration.
11099 (target_wait_loop_hook): Ditto.
11100 (tdisassemble_command): Eliminate assignment in "if" conditional.
11101 (d10v_ts2_register_sim_regno): Eliminate call to
11102 legacy_register_sim_regno.
11103 (d10v_ts3_register_sim_regno): Ditto.
11104
6949171e
JJ
111052003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11106
11107 * thread.c: Reindented.
11108 * lin-lwp.c: Ditto.
11109 * linux-proc.c: Ditto.
11110
98c7071f
BR
111112003-03-28 Bob Rossi <bob_rossi@cox.net>
11112
fbe586ae 11113 * MAINTAINERS (write after approval): Add myself.
98c7071f 11114
5edc9ca6
TR
111152003-03-27 Theodore A. Roth <troth@openavr.org>
11116
11117 * objc-exp.y: Add missing semi-colons.
11118
378bfd1b
AC
111192003-03-27 Andrew Cagney <cagney@redhat.com>
11120
11121 * regcache.c (write_sp): Delete function and references.
11122 * inferior.h (write_sp): Delete declaration.
11123 * valops.c (hand_function_call): Replace write_sp with
11124 TARGET_WRITE_SP.
11125 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11126 (sparc_pop_frame): Ditto.
8ffd9b1b 11127
56056df7
AC
111282003-03-27 Andrew Cagney <cagney@redhat.com>
11129
11130 * NEWS: Mention removal of support for hppa*-*-bsd* and
11131 hppa*-*-osf* natives, and hppa*-*-pro* target.
11132 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11133 * config/pa/xm-pa.h: Obsolete file.
11134 * config/pa/xm-hppab.h: Obsolete file.
11135 * config/pa/nm-hppab.h: Obsolete file.
11136 * config/pa/tm-hppab.h: Obsolete file.
11137 * config/pa/tm-hppao.h: Obsolete file.
11138 * config/pa/nm-hppao.h: Obsolete file.
11139 * config/pa/tm-pro.h: Obsolete file.
11140 * config/pa/hppaosf.mt: Obsolete file.
11141 * config/pa/hppaosf.mh: Obsolete file.
11142 * config/pa/hppapro.mt: Obsolete file.
11143 * config/pa/hppabsd.mt: Obsolete file.
11144 * config/pa/hppabsd.mh: Obsolete file.
11145 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11146 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11147 hppa*-*-osf*.
11148
5873a88d
AC
111492003-03-27 Andrew Cagney <cagney@redhat.com>
11150
11151 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11152 push_arguments. Don't set push_return_address or write_sp.
11153 (d10v_push_dummy_call): Replace d10v_push_arguments.
11154 (d10v_push_return_address, d10v_write_sp): Delete function,
11155 handled by push_dummy_call.
11156
b81774d8
AC
111572003-03-26 Andrew Cagney <cagney@redhat.com>
11158
11159 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11160 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11161 regcache and dummy_addr parameters.
11162 * gdbarch.h, gdbarch.c: Re-generate.
11163 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11164 available; assume it will handle stack alignment and return
11165 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11166 legacy_push_arguments.
11167 (legacy_push_arguments): Rename default_push_arguments.
11168 * value.h (legacy_push_arguments): Rename default_push_arguments.
11169 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11170 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11171 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11172 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11173 * config/i386/tm-symmetry.h: Update.
11174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11175 * x86-64-tdep.c (x86_64_init_abi): Update.
11176 * v850-tdep.c (v850_gdbarch_init): Update.
11177 * sparc-tdep.c (sparc_gdbarch_init): Update.
11178 * sh-tdep.c (sh_gdbarch_init): Update.
11179 * s390-tdep.c (s390_gdbarch_init): Update.
11180 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11181 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11182 * mips-tdep.c (mips_gdbarch_init): Update.
11183 * mcore-tdep.c (mcore_gdbarch_init): Update.
11184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11185 * ia64-tdep.c (ia64_gdbarch_init): Update.
11186 * i386-tdep.c (i386_gdbarch_init): Update.
11187 * hppa-tdep.c (hppa_gdbarch_init): Update.
11188 * h8300-tdep.c (h8300_gdbarch_init): Update.
11189 * frv-tdep.c (frv_gdbarch_init): Update.
11190 * d10v-tdep.c (d10v_gdbarch_init): Update.
11191 * cris-tdep.c (cris_gdbarch_init): Update.
11192 * avr-tdep.c (avr_gdbarch_init): Update.
11193 * arm-tdep.c (arm_gdbarch_init): Update.
11194 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11195 * alpha-tdep.c (alpha_gdbarch_init): Update.
11196
f541410f
DJ
111972003-03-26 Daniel Jacobowitz <drow@mvista.com>
11198
11199 * signals/signals.c (do_target_signal_to_host): Correct realtime
11200 signal range test.
11201
69f567ae
DJ
112022003-03-26 Daniel Jacobowitz <drow@mvista.com>
11203
11204 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11205 (struct sal_chain, map_catch_names): Remove.
11206 (catch_exception_command_1): Don't call
11207 handle_gnu_4_16_catch_command.
11208
d5d14a5a
DJ
112092003-03-26 Daniel Jacobowitz <drow@mvista.com>
11210
11211 From Mark Dettinger <dettinge@de.ibm.com>:
11212 * dwarf2cfi.c (read_2u): Increment pointer by two.
11213
bdd73e22
DJ
112142003-03-26 Daniel Jacobowitz <drow@mvista.com>
11215
11216 * signals/signals.c: Fix typos in last change.
11217
960cb555
DJ
112182003-03-26 Daniel Jacobowitz <drow@mvista.com>
11219
11220 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11221 not already defined. Use __SIGRTMIN if available.
11222 (target_signal_from_host): Remove SIGRTMIN block.
11223 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11224 the signal is within the realtime range.
11225
f636b87d
AF
112262003-03-25 Adam Fedor <fedor@gnu.org>
11227
11228 * Makefile.in (infrun.o): Add $(language_h)
11229 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11230 for language specific trampolines.
11231 * language.h (struct language_defn): Add skip_trampoline.
11232 (skip_language_trampoline): Declare.
11233 * language.c (unk_lang_trampoline, skip_language_trampoline):
11234 New functions.
11235 (unknown_language_defn, auto_language_defn, local_language_defn):
11236 Add ukn_lang_trampoline.
11237 * ada-lang.c (ada_language_defn): Add NULL for language
11238 specific skip_trampoline.
11239 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11240 scm-lang.c: Likewise.
11241 * objc-lang.c (objc_skip_trampoline): New function.
11242 (objc_language_defn): Add objc_skip_trampoline.
11243
28f617b3 112442003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11245
11246 * frame.c (get_prev_frame): Delay validating a frame's ID -
11247 non-NULL, didn't go backwards - until an attempt to unwind it to
11248 the previous frame.
11249
f933a9c5
AC
112502003-03-25 Andrew Cagney <cagney@redhat.com>
11251
11252 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11253 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11254 * gdbarch.h, gdbarch.c: Re-generate.
11255 * config/sparc/tm-sparc.h
11256 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11257 * sparc-tdep.c (sparc_gdbarch_init): Set
11258 deprecated_extra_stack_alignment_needed.
11259 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11260 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11261 extra_stack_alignment_needed.
11262 * v850-tdep.c (v850_gdbarch_init): Ditto.
11263 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11264 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11265 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11266 * cris-tdep.c (cris_gdbarch_init): Ditto.
11267 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11269
4183d812
AC
112702003-03-25 Andrew Cagney <cagney@redhat.com>
11271
11272 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11273 STORE_STRUCT_RETURN.
11274 * gdbarch.h, gdbarch.c: Regenerate.
11275 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11276 (d10v_push_arguments): Set the struct return register.
11277 (d10v_gdbarch_init): Update.
11278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11279 * x86-64-tdep.c (x86_64_init_abi): Update.
11280 * vax-tdep.c (vax_gdbarch_init): Update.
11281 * v850-tdep.c (v850_gdbarch_init): Update.
11282 * sparc-tdep.c (sparc_gdbarch_init): Update.
11283 * sh-tdep.c (sh_gdbarch_init): Update.
11284 * s390-tdep.c (s390_gdbarch_init): Update.
11285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11288 * mips-tdep.c (mips_gdbarch_init): Update.
11289 * mcore-tdep.c (mcore_gdbarch_init): Update.
11290 * m68k-tdep.c (m68k_gdbarch_init): Update.
11291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11292 * ia64-tdep.c (ia64_gdbarch_init): Update.
11293 * i386-tdep.c (i386_gdbarch_init): Update.
11294 * hppa-tdep.c (hppa_gdbarch_init): Update.
11295 * h8300-tdep.c (h8300_gdbarch_init): Update.
11296 * frv-tdep.c (frv_gdbarch_init): Update.
11297 * cris-tdep.c (cris_gdbarch_init): Update.
11298 * avr-tdep.c (avr_gdbarch_init): Update.
11299 * arm-tdep.c (arm_gdbarch_init): Update.
11300 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11301
1bf6d5cc
AC
113022003-03-25 Andrew Cagney <cagney@redhat.com>
11303
11304 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11305 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11306 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11307 * gdbarch.h, gdbarch.c: Regenerate.
11308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11309 call_dummy_stack_adjust_p.
11310 * vax-tdep.c (vax_gdbarch_init): Ditto.
11311 * v850-tdep.c (v850_gdbarch_init): Ditto.
11312 * sh-tdep.c (sh_gdbarch_init): Ditto.
11313 * s390-tdep.c (s390_gdbarch_init): Ditto.
11314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11315 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11316 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11317 * mips-tdep.c (mips_gdbarch_init): Ditto.
11318 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11319 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11321 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11322 * i386-tdep.c (i386_gdbarch_init): Ditto.
11323 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11324 * frv-tdep.c (frv_gdbarch_init): Ditto.
11325 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11326 * cris-tdep.c (cris_gdbarch_init): Ditto.
11327 * avr-tdep.c (avr_gdbarch_init): Ditto.
11328 * arm-tdep.c (arm_gdbarch_init): Ditto.
11329 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11330 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11331 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11332 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11333 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11334 call_dummy_stack_adjust_p.
11335 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11336 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11337 * sparc-tdep.c (sparc32_push_arguments): Update.
11338 * valops.c (hand_function_call): Update.
11339
71c08af0
CV
113402003-03-25 Corinna Vinschen <vinschen@redhat.com>
11341
11342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11343 set_gdbarch_char_signed.
11344
30757f90
RE
113452003-03-25 Richard Earnshaw <rearnsha@arm.com>
11346
11347 PR cli/548
11348 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11349
03d48a7d
RE
113502003-03-25 Richard Earnshaw <rearnsha@arm.com>
11351
11352 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11353 (_initialize_arm_tdep): Don't set tm_print_insn.
11354
2cf6873c
AF
113552003-03-24 Adam Fedor <fedor@gnu.org>
11356
11357 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11358 * objc-lang.h: Add multiple inclusion protection.
11359 (start_msglist, add_msglist, end_msglist): Additional declarations.
11360
17c0759e
RE
113612003-03-24 Richard Earnshaw <rearnsha@arm.com>
11362
11363 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11364 value was renamed to ARM_FLOAT_SOFT_FPA.
11365
618ce49f
AC
113662003-03-23 Andrew Cagney <cagney@redhat.com>
11367
11368 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11369 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11370 * gdbarch.h, gdbarch.c: Regenerate.
11371 * valops.c (hand_function_call): Update.
11372 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11373 * frame.c (legacy_saved_regs_this_id): Update.
11374 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11375 * dummy-frame.h: Update.
11376 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11377 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11378 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11379 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11380 * config/m68k/tm-sun3.h: Update.
11381 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11383 * x86-64-tdep.c (x86_64_init_abi): Update.
11384 * vax-tdep.c (vax_gdbarch_init): Update.
11385 * v850-tdep.c (v850_gdbarch_init): Update.
11386 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11387 * sh-tdep.c (sh_gdbarch_init): Update.
11388 * s390-tdep.c (s390_gdbarch_init): Update.
11389 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11390 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11391 (frame_get_saved_regs): Update.
11392 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11395 * mips-tdep.c (mips_gdbarch_init): Update.
11396 * mcore-tdep.c (mcore_gdbarch_init): Update.
11397 * m68k-tdep.c (m68k_gdbarch_init): Update.
11398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11399 * ia64-tdep.c (ia64_gdbarch_init): Update.
11400 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11401 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11402 (i386_interix_back_one_frame): Update.
11403 * hppa-tdep.c (hppa_gdbarch_init): Update.
11404 (hppa_init_extra_frame_info): Update.
11405 * h8300-tdep.c (h8300_gdbarch_init): Update.
11406 * frv-tdep.c (frv_gdbarch_init): Update.
11407 * cris-tdep.c (cris_gdbarch_init): Update.
11408 * avr-tdep.c (avr_gdbarch_init): Update.
11409 * arm-tdep.c (arm_gdbarch_init): Update.
11410 * alpha-tdep.c (alpha_gdbarch_init): Update.
11411
fd50bc42
RE
114122003-03-22 Richard Earnshaw <rearnsha@arm.com>
11413
11414 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11415 (arm_get_fp_model): Declare.
11416 * arm-tdep.c (fp_model_strings): New string array.
11417 (arm_fp_model, current_fp_model): New variables.
11418 (arm_get_fp_model): New function.
11419 (arm_set_fp): New function.
11420 (set_fp_model_sfunc): New function.
11421 (show_fp_model): New function.
11422 (_initialize_arm_tdep): Add new command to set/show the FPU.
11423 (arm_extract_return_value): Use arm_get_fp_model.
11424 (arm_store_return_value): Likewise.
11425 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11426 to initialize the floating-point data types.
11427 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11428 model is FPA.
11429
26304000
RE
114302003-03-22 Richard Earnshaw <rearnsha@arm.com>
11431
11432 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11433 the current setting of each value.
11434 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11435 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11436 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11437 commands and add new version as subcommands of "set/show arm".
11438
afd7eef0
RE
114392003-03-22 Richard Earnshaw <rearnsha@arm.com>
11440
11441 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11442 (set_arm_command, show_arm_command): New functions.
11443 (_initialize_arm_tdep): Add them.
11444 (num_disassembly_options): Renamed from num_flavor_options.
11445 (valid_disassembly_styles): Renamed from valid_flavors.
11446 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11447 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11448 set_disassembly_flavor_sfunc.
11449 (set_disassembly_style): Renamed from set_disassembly_flavor.
11450 (arm_othernames): Updated.
11451 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11452 command. Add "set/show arm disassembly" commands. Deprecate
11453 "othernames" command.
11454
299a7944
RE
114552003-03-22 Richard Earnshaw <rearnsha@arm.com>
11456
11457 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11458 (arm-tdep.o): Depend on elf_arm_h.
11459
c1dac9e6
RE
114602003-03-22 Richard Earnshaw <rearnsha@arm.com>
11461
11462 * Makefile.in (coff_internal_h): Define.
11463 (arm-tdep.o): Update dependencies.
11464
2702d96c
RE
114652003-03-22 Richard Earnshaw <rearnsha@arm.com>
11466
11467 * arm-tdep.c (prologue_cache): Delete.
11468 (check_prologue_cache, save_prologue_cache): Delete.
11469 (arm_scan_prologue): Don't check or update the prologue_cache.
11470 (arm_gdb_arch_init): Don't initialize it.
11471 (_initialize_arm_tdep): Likewise.
11472
27d5d74b
SC
114732003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11474
11475 * MAINTAINERS (tui): Maintainer of tui code.
11476
1762d96d
CV
114772003-03-21 Corinna Vinschen <vinschen@redhat.com>
11478
11479 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11480 (i386-cygwin-tdep.o): Add dependencies.
11481 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11482 * i386-cygwin-tdep.c: New file.
11483 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11484 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11485
4c2e2391
AC
114862003-03-20 Andrew Cagney <cagney@redhat.com>
11487
f20d38b7
AC
11488 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11489 (handle_inferior_event): Remove code calling
11490 DYNAMIC_TRAMPOLINE_NEXTPC.
11491
0022b738
AC
11492 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11493 already has a full path.
11494
864dbc90
AC
11495 * main.c (gdb_main): Return 1.
11496 (captured_main): Call error to report an invalid interpreter.
11497
4c2e2391
AC
11498 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11499 * alpha-osf1-tdep.c: Include "gdb_string.h".
11500
5ef7553b
JB
115012003-03-19 J. Brobecker <brobecker@gnat.com>
11502
11503 Continuing work to convert the hppa targets to multiarch partial.
11504
11505 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11506 method, now that hppa_push_dummy_frame has a conformant prototype.
11507 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11508 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11509 for the switch to multiarch partial.
11510
7bde8967
KB
115112003-03-19 Kevin Buettner <kevinb@redhat.com>
11512
11513 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11514 when iss is issNull.
11515
b006a9e9
KB
115162003-03-18 Kevin Buettner <kevinb@redhat.com>
11517
11518 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11519 NUM_REGS bounds check.
11520
5e2e9765
KB
115212003-03-18 Kevin Buettner <kevinb@redhat.com>
11522
11523 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11524 * mips-tdep.c (gdb_assert.h): Include.
11525 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11526 (mips_register_name): Handle integer registers explicitly. Add
11527 bounds checking.
11528 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11529 (mips_lsi33k_reg_names): Don't list integer registers; they're
11530 handled by mips_register_name() now.
11531 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11532 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11533 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11534 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11535 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11536
a2867626
AC
115372003-03-18 Andrew Cagney <cagney@redhat.com>
11538
11539 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11540 a void pointer.
11541 * gdbtypes.h (print_scalar_formatted): Update declaration.
11542 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11543
06600e06
JB
115442003-03-18 J. Brobecker <brobecker@gnat.com>
11545
11546 * infrun.c (observer.h): Add #include.
11547 (normal_stop): Add call to observer_notify_normal_stop.
11548 * Makefile.in (infrun.o): Add dependency on observer.h.
11549
7daf4f5b
JB
115502003-03-18 J. Brobecker <brobecker@gnat.com>
11551
11552 Continuing work to convert the hppa targets to multiarch partial.
11553 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11554 parameter. Reformat comment.
11555 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11556 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11557 to match new profile.
11558
3371ccc0
JB
115592003-03-18 J. Brobecker <brobecker@gnat.com>
11560
11561 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11562 appear to be working in any case.
11563
4fbe891e
JB
115642003-03-18 J. Brobecker <brobecker@gnat.com>
11565
11566 * observer.c (observer_test_first_observer): New static variable.
11567 (observer_test_second_observer): Likewise.
11568 (observer_test_third_observer): Likewise.
11569 (observer_test_first_notification_function): New static function.
11570 (observer_test_second_notification_function): Likewise.
11571 (observer_test_third_notification_function): Likewise.
11572
a7ff40e7
JB
115732003-03-17 J. Brobecker <brobecker@gnat.com>
11574
11575 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11576 * somsolib.c (gdb_assert.h): Likewise.
11577 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11578 (somsolib.o): Likewise.
11579
26ca4152
AC
115802003-03-17 Andrew Cagney <cagney@redhat.com>
11581
11582 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11583 BFD. Simplify setting of di.endian.
11584
0a613259
AC
115852003-03-17 Andrew Cagney <cagney@redhat.com>
11586
11587 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11588 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11589
11590 From Elena Zannoni <ezannoni@redhat.com>
11591 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11592 vector and floating-point parameters.
11593 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11594 convention.
11595 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11596
1132738f
FN
115972003-03-17 Fernando Nasser <fnasser@redhat.com>
11598
11599 * MAINTAINERS: Remove my name from several maintainership roles.
11600
6dc42492
AC
116012003-03-17 Andrew Cagney <cagney@redhat.com>
11602
11603 Fix frame off-by-one bug.
11604 * frame-unwind.h (frame_this_id_ftype): Replace
11605 frame_unwind_id_ftype.
11606 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11607 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11608 with "prev_register".
11609 * frame-unwind.c (frame_unwind_find_by_pc): Return
11610 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11611 comment.
11612 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11613 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11614 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11615 (dummy_frame_unwind): Update.
11616 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11617 sentinel_frame_register_unwind.
11618 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11619 (sentinel_frame_unwinder): Update.
11620 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11621 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11622 * frame.c (create_sentinel_frame): Update. Initialize
11623 "prologue_cache" instead of "unwind_cache".
11624 (frame_register_unwind): Call this frame's prev_register with the
11625 next frame and this frame's prologue cache.
11626 (get_prev_frame): Simplify. Always call prev frame's this_id with
11627 this frame and prev frame's prologue cache. Document that this
11628 call is shifted one to the left when compared to the
11629 frame_register_unwind call.
11630 (legacy_saved_regs_prev_register): Replace
11631 frame_saved_regs_register_unwind.
11632 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11633 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11634 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11635 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11636 (d10v_frame_unwind): Update.
11637 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11638 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11639 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11640 "saved_regs" with "this_saved_regs".
11641
efd710d6
AC
116422003-03-16 Andrew Cagney <cagney@redhat.com>
11643
11644 * frame.c (frame_pop): Don't call target_store_registers. Fix
11645 problem reported by Mark Kettenis.
11646
4e259f09
MK
116472003-03-16 Mark Kettenis <kettenis@gnu.org>
11648
11649 * i386-tdep.c (i386_register_type): Renamed from
11650 i386_register_virtual_type. Adjust function signature.
11651 (i386_gdbarch_init): Set register_type instead of
11652 deprecated_max_register_raw_size,
11653 deprecated_max_register_virtual_size and register_virtual_type.
11654
055bb976
AC
116552003-03-14 Andrew Cagney <cagney@redhat.com>
11656
11657 * frame.c (get_prev_frame): When a legacy frame, always call
11658 legacy_get_prev_frame. Simplify unwind code using assumption that
11659 the unwinder is new.
11660 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11661 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11662 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11663
ac2adee5
AC
116642003-03-14 Andrew Cagney <cagney@redhat.com>
11665
11666 * frame.c (get_saved_register): Delete function.
11667 * frame.h (get_saved_register): Delete declaration.
11668 * xstormy16-tdep.c: Update comment.
11669 * regcache.h: Update comments.
11670 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11671 get_saved_register and extract_address, use
11672 frame_read_unsigned_register.
11673 (sparc_frame_saved_pc): Ditto.
11674 (sparc_get_saved_register): Instead of get_saved_register, use
11675 frame_register.
11676 (sparc_pop_frame): Ditto.
11677 * findvar.c: Update comments.
11678 (value_of_register): Call frame_register instead of
11679 get_saved_register.
11680 (value_from_register): Ditto.
11681 * config/sparc/tm-sparc.h: Update comment.
11682 * breakpoint.c: Update comment.
11683
129c1cd6
AC
116842003-03-14 Andrew Cagney <cagney@redhat.com>
11685
11686 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11687 GET_SAVED_REGISTER.
11688 * gdbarch.h, gdbarch.c: Re-generate.
11689 * frame.h: Update comments.
11690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11691 * x86-64-tdep.c (x86_64_init_abi): Update.
11692 * sparc-tdep.c (sparc_gdbarch_init): Update.
11693 * sh-tdep.c (sh_gdbarch_init): Update.
11694 * mips-tdep.c (mips_gdbarch_init): Update.
11695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11696 * cris-tdep.c (cris_gdbarch_init): Update.
11697 * ia64-tdep.c (ia64_gdbarch_init): Update.
11698 * frame.c (frame_register): Update.
11699 (get_saved_register): Update.
11700 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11701
749b82f6
AC
117022003-03-13 Andrew Cagney <cagney@redhat.com>
11703
11704 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11705 * gdbarch.h, gdbarch.c: Regenerate.
11706 * valops.c (hand_function_call): Update comment.
11707 * stack.c (return_command): Update comment.
11708 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11709 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11711 * x86-64-tdep.c (x86_64_init_abi): Update.
11712 * vax-tdep.c (vax_gdbarch_init): Update.
11713 * v850-tdep.c (v850_gdbarch_init): Update.
11714 * sparc-tdep.c (sparc_gdbarch_init): Update.
11715 * sh-tdep.c (sh_gdbarch_init): Update.
11716 * s390-tdep.c (s390_gdbarch_init): Update.
11717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11719 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11720 * mips-tdep.c (mips_gdbarch_init): Update.
11721 * mcore-tdep.c (mcore_gdbarch_init): Update.
11722 * m68k-tdep.c (m68k_gdbarch_init): Update.
11723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11724 * ia64-tdep.c (ia64_gdbarch_init): Update.
11725 * i386-tdep.c (i386_gdbarch_init): Update.
11726 * hppa-tdep.c (hppa_gdbarch_init): Update.
11727 * h8300-tdep.c (h8300_gdbarch_init): Update.
11728 * frv-tdep.c (frv_gdbarch_init): Update.
11729 * cris-tdep.c (cris_gdbarch_init): Update.
11730 * avr-tdep.c (avr_gdbarch_init): Update.
11731 * arm-tdep.c (arm_gdbarch_init): Update.
11732 * alpha-tdep.c (alpha_gdbarch_init): Update.
11733
1594fa56
AC
117342003-03-13 Andrew Cagney <cagney@redhat.com>
11735
11736 * frame.c (legacy_frame_p): New function.
11737 (get_prev_frame): Use legacy_frame_p.
11738 * frame.h (legacy_frame_p): Declare.
11739
7717fda3
V
117402003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11741
fbe586ae 11742 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11743 listing corrected.
11744
0c67cbe9
V
117452003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11746
fbe586ae 11747 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11748
03febf99
AC
117492003-03-12 Andrew Cagney <cagney@redhat.com>
11750
11751 * frame.c (get_prev_frame): Rename the frame parameter to
11752 "this_frame".
11753 (get_next_frame, legacy_get_prev_frame): Ditto.
11754
0a1e1ca1
AC
117552003-03-12 Andrew Cagney <cagney@redhat.com>
11756
11757 * frame.c (get_current_frame): Check target_has_registers before
11758 checking target_has_stack.
11759 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11760 instead of deprecated_selected_frame.
11761 * findvar.c (value_of_register): Pass "frame", not
11762 deprecated_selected_frame, to value_of_builtin_reg.
11763
a66a9c23
AC
117642003-03-12 Andrew Cagney <cagney@redhat.com>
11765
11766 * regcache.c (regcache_cooked_write_signed): New function.
11767 (regcache_cooked_write_unsigned): New function.
11768 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11769 (regcache_cooked_read_signed): Fix regnum in range assertion.
11770 * regcache.h (regcache_cooked_write_signed): Declare.
11771 (regcache_cooked_write_unsigned): Declare.
11772
8bedc050
AC
117732003-03-12 Andrew Cagney <cagney@redhat.com>
11774
11775 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11776 * gdbarch.h, gdbarch.c: Re-generate.
11777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11778 * x86-64-tdep.h: Update.
11779 * x86-64-tdep.c (x86_64_init_abi): Update.
11780 * v850-tdep.c (v850_gdbarch_init): Update.
11781 * sparc-tdep.c (sparc_gdbarch_init): Update.
11782 * sh-tdep.c (sh_gdbarch_init): Update.
11783 * s390-tdep.c (s390_gdbarch_init): Update.
11784 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11785 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11786 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11788 * mips-tdep.c (mips_gdbarch_init): Update.
11789 * mcore-tdep.c (mcore_gdbarch_init): Update.
11790 * m68k-tdep.c (m68k_gdbarch_init): Update.
11791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11792 * ia64-tdep.c (ia64_gdbarch_init): Update.
11793 * i386-tdep.c (i386_gdbarch_init): Update.
11794 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11795 * hppa-tdep.c (hppa_gdbarch_init): Update.
11796 * h8300-tdep.c (h8300_gdbarch_init): Update.
11797 * frv-tdep.c (frv_gdbarch_init): Update.
11798 * cris-tdep.c (cris_gdbarch_init): Update.
11799 * avr-tdep.c (avr_gdbarch_init): Update.
11800 * arm-tdep.c (arm_gdbarch_init): Update.
11801 * alpha-tdep.c (alpha_gdbarch_init): Update.
11802 * sh-tdep.c (sh_init_extra_frame_info): Update.
11803 (sh64_init_extra_frame_info): Update.
11804 * ns32knbsd-nat.c (frame_num_args): Update.
11805 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11806 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11807 (xstormy16_frame_chain_valid): Update.
11808 * vax-tdep.c (vax_saved_pc_after_call): Update.
11809 * v850-tdep.c (v850_frame_chain): Update.
11810 (v850_pop_frame): Update.
11811 (v850_init_extra_frame_info): Update.
11812 * sparc-tdep.c (setup_arbitrary_frame): Update.
11813 * ns32k-tdep.c (umax_frame_num_args): Update.
11814 * s390-tdep.c (s390_pop_frame_regular): Update.
11815 * mn10300-tdep.c (mn10300_frame_chain): Update.
11816 (mn10300_pop_frame_regular): Update.
11817 (mn10300_init_extra_frame_info): Update.
11818 * mips-tdep.c (mips_init_frame_pc_first): Update.
11819 (mips_frame_chain): Update.
11820 (mips_pop_frame): Update.
11821 * mcore-tdep.c (mcore_frame_chain): Update.
11822 (mcore_pop_frame): Update.
11823 (mcore_init_extra_frame_info): Update.
11824 * arch-utils.c (init_frame_pc_default): Update.
11825 * m68k-tdep.c (isi_frame_num_args): Update.
11826 (delta68_frame_num_args): Update.
11827 (news_frame_num_args): Update.
11828 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11829 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11830 (alpha_frame_chain): Update.
11831 (alpha_pop_frame): Update.
11832 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11833 (hppa_init_extra_frame_info): Update.
11834 (hppa_frame_chain): Update.
11835 (hppa_frame_chain_valid): Update.
11836 * cris-tdep.c (cris_init_extra_frame_info): Update.
11837 * avr-tdep.c (avr_init_extra_frame_info): Update.
11838 * arm-tdep.c (arm_frame_chain_valid): Update.
11839 (arm_init_extra_frame_info): Update.
11840 (arm_pop_frame): Update.
11841 * frame.c (frame_pc_unwind): Update.
11842 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11843 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11844 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11845 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11846 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11847 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11848
7a25a7c1
AC
118492003-03-12 Andrew Cagney <cagney@redhat.com>
11850
11851 Eliminate the need for POP_FRAME.
11852 * frame.c (do_frame_unwind_register): New function.
11853 (frame_pop): When no POP_FRAME, pop the frame using register
11854 unwind and a scratch regcache.
11855 (frame_saved_regs_pop): Delete function.
11856 (trad_frame_unwinder): Update.
11857 * d10v-tdep.c (d10v_frame_pop): Delete function.
11858 (d10v_frame_unwind): Update.
11859 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11860 (sentinel_frame_unwinder): Update.
11861 * dummy-frame.c (dummy_frame_pop): Delete function.
11862 (dummy_frame_unwind): Update.
11863 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11864 (struct frame_unwind): Update.
11865
2f38ef89
KB
118662003-03-11 Kevin Buettner <kevinb@redhat.com>
11867
11868 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11869 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11870 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11871 Do range checks on register number obtained from debugging info.
11872 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11873 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11874 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11875 mapping function.
11876 (do_fp_register_row): Fix typo which caused double type to be
11877 used when attempting to unpack a float.
11878
552f4abf
JB
118792003-03-11 J. Brobecker <brobecker@gnat.com>
11880
11881 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11882
e0d2ae16
AC
118832003-03-11 Andrew Cagney <cagney@redhat.com>
11884
11885 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11886 frame. Problem found by Corinna Vinschen.
11887
ddbfdd06
PM
118882003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11889
11890 * doublest.c (floatformat_from_length): Accept also
11891 the real size of 'long double' type.
11892
088b2ddc 118932003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11894
088b2ddc 11895 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11896 * breakpoint.c (bpstat_copy): Copy the command lines as well
11897 as the old value, to match what is freed in bpstat_clear.
11898
f56f77c1
DC
118992003-03-10 David Carlton <carlton@math.stanford.edu>
11900
11901 * minsyms.c (add_minsym_to_hash_table): Replace
11902 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11903 (compare_minimal_symbols, compact_minimal_symbols)
11904 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11905 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11906 of DEPRECATED_SYMBOL_MATCHES_NAME.
11907 (lookup_minimal_symbol_solib_trampoline): Ditto.
11908
5602984a
AC
119092003-03-10 Andrew Cagney <cagney@redhat.com>
11910
11911 * regcache.h (regcache_cooked_read_ftype): Define.
11912 (regcache_save, regcache_restore): Add a cooked_read parameter.
11913 * regcache.c (regcache_save, regcache_restore): Update.
11914 (do_cooked_read): New function.
11915 (regcache_cpy): Pass do_cooked_read to regcache_save and
11916 regcache_restore.
11917
8bedc050
AC
119182003-03-10 Andrew Cagney <cagney@redhat.com>
11919
11920 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11921 * gdbarch.h, gdbarch.c: Re-generate.
11922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11923 * x86-64-tdep.h: Update.
11924 * x86-64-tdep.c (x86_64_init_abi): Update.
11925 * v850-tdep.c (v850_gdbarch_init): Update.
11926 * sparc-tdep.c (sparc_gdbarch_init): Update.
11927 * sh-tdep.c (sh_gdbarch_init): Update.
11928 * s390-tdep.c (s390_gdbarch_init): Update.
11929 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11930 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11931 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11932 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11933 * mips-tdep.c (mips_gdbarch_init): Update.
11934 * mcore-tdep.c (mcore_gdbarch_init): Update.
11935 * m68k-tdep.c (m68k_gdbarch_init): Update.
11936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11937 * ia64-tdep.c (ia64_gdbarch_init): Update.
11938 * i386-tdep.c (i386_gdbarch_init): Update.
11939 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11940 * hppa-tdep.c (hppa_gdbarch_init): Update.
11941 * h8300-tdep.c (h8300_gdbarch_init): Update.
11942 * frv-tdep.c (frv_gdbarch_init): Update.
11943 * cris-tdep.c (cris_gdbarch_init): Update.
11944 * avr-tdep.c (avr_gdbarch_init): Update.
11945 * arm-tdep.c (arm_gdbarch_init): Update.
11946 * alpha-tdep.c (alpha_gdbarch_init): Update.
11947 * sh-tdep.c (sh_init_extra_frame_info): Update.
11948 (sh64_init_extra_frame_info): Update.
11949 * ns32knbsd-nat.c (frame_num_args): Update.
11950 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11951 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11952 (xstormy16_frame_chain_valid): Update.
11953 * vax-tdep.c (vax_saved_pc_after_call): Update.
11954 * v850-tdep.c (v850_frame_chain): Update.
11955 (v850_pop_frame): Update.
11956 (v850_init_extra_frame_info): Update.
11957 * sparc-tdep.c (setup_arbitrary_frame): Update.
11958 * ns32k-tdep.c (umax_frame_num_args): Update.
11959 * s390-tdep.c (s390_pop_frame_regular): Update.
11960 * mn10300-tdep.c (mn10300_frame_chain): Update.
11961 (mn10300_pop_frame_regular): Update.
11962 (mn10300_init_extra_frame_info): Update.
11963 * mips-tdep.c (mips_init_frame_pc_first): Update.
11964 (mips_frame_chain): Update.
11965 (mips_pop_frame): Update.
11966 * mcore-tdep.c (mcore_frame_chain): Update.
11967 (mcore_pop_frame): Update.
11968 (mcore_init_extra_frame_info): Update.
11969 * arch-utils.c (init_frame_pc_default): Update.
11970 * m68k-tdep.c (isi_frame_num_args): Update.
11971 (delta68_frame_num_args): Update.
11972 (news_frame_num_args): Update.
11973 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11974 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11975 (alpha_frame_chain): Update.
11976 (alpha_pop_frame): Update.
11977 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11978 (hppa_init_extra_frame_info): Update.
11979 (hppa_frame_chain): Update.
11980 (hppa_frame_chain_valid): Update.
11981 * cris-tdep.c (cris_init_extra_frame_info): Update.
11982 * avr-tdep.c (avr_init_extra_frame_info): Update.
11983 * arm-tdep.c (arm_frame_chain_valid): Update.
11984 (arm_init_extra_frame_info): Update.
11985 (arm_pop_frame): Update.
11986 * frame.c (frame_pc_unwind): Update.
11987 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11988 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11989 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11990 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11991 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11992 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11993
12cc2063
AC
119942003-03-10 Andrew Cagney <cagney@redhat.com>
11995
11996 * gdbarch.sh (gdbarch_unwind_pc): New method.
11997 * gdbarch.h, gdbarch.c: Regenerate.
11998 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11999 but use read_pc and FRAME_SAVED_PC as fall backs.
12000 (frame_saved_regs_pc_unwind): Delete function.
12001 (trad_frame_unwinder): Update.
12002 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12003 (struct frame_unwind): Update.
12004 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12005 (dummy_frame_unwind): Update.
12006 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12007 (sentinel_frame_unwinder): Update.
12008 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12009 (d10v_frame_unwind): Update.
12010 (d10v_unwind_pc): New function.
12011 (d10v_gdbarch_init): Set unwind_pc.
12012
ef840a37
AC
120132003-03-10 Andrew Cagney <cagney@redhat.com>
12014
a2ce2e56
AC
12015 * gdbarch.h: Re-generate.
12016
ef840a37
AC
12017 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12018 PC.
12019 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12020 the PC register.
12021
08f3424b
MK
120222003-03-08 Mark Kettenis <kettenis@gnu.org>
12023
12024 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12025
1248ede2
AC
120262003-03-08 Andrew Cagney <cagney@redhat.com>
12027
12028 * cli-out.c: Update copyright.
12029 (cli_out_data): Define typedef. Use instead of ui_out_data.
12030
f49bacc8
AC
120312003-03-08 Andrew Cagney <cagney@redhat.com>
12032
12033 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12034 the result.
12035
9b05f993
AC
120362003-03-07 Andrew Cagney <cagney@redhat.com>
12037
12038 * gdbarch.sh: Don't generate two macro definitions when an
12039 undefined macro taking no arguments.
12040 * gdbarch.h: Regenerate.
8ffd9b1b 12041
166f4c7b
ML
120422002-03-07 Michal Ludvig <mludvig@suse.cz>
12043
12044 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12045 (x86_64_unwind_dummy_id): New functions.
12046 (x86_64_init_abi): Register these two new functions.
12047
6d686a84
ML
120482003-03-07 Michal Ludvig <mludvig@suse.cz>
12049
12050 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12051 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12052 separate function.
12053 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12054
6314f104
AC
120552003-03-05 Andrew Cagney <cagney@redhat.com>
12056
12057 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12058 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12059 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12060 to use unwind_dummy_id when a dummy frame.
12061 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12062 predicate.
12063 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12064
ceea5145
AC
120652003-03-05 Andrew Cagney <cagney@redhat.com>
12066
12067 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12068 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12069 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12070 values.
12071
0d843116
AC
120722003-03-05 Andrew Cagney <cagney@redhat.com>
12073
12074 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12075 (struct d10v_unwind_cache): Delete field "frameless". Replace
12076 "next_addr" with "sp_offset". Add "r11_offset".
12077 (d10v_frame_unwind_cache): Update.
12078 (prologue_find_regs): Update. When "mv r11, sp", save the
12079 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12080 RN was saved in r11_offset.
12081
b2579786
AC
120822003-03-05 Andrew Cagney <cagney@redhat.com>
12083
12084 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12085 cached PC value in the next frame.
12086
218e5956
AC
120872003-03-05 Andrew Cagney <cagney@redhat.com>
12088
12089 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12090 "id_unwind_cache" with "id".
12091 (frame_id_unwind): Delete declaration.
12092 * frame.c (frame_id_unwind): Delete function.
12093 (get_prev_frame): Call the frame id unwind method directly. Store
12094 the returned next frame's ID value in NEXT_FRAME. Note that there
12095 is a problem with the wrong unwind ID being called with the wrong
12096 unwind cache.
12097
ed363b1b
DJ
120982003-03-05 Daniel Jacobowitz <drow@mvista.com>
12099
12100 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12101
fe1f4a5e
DJ
121022003-03-05 James Ingham <jingham@apple.com>
12103 Daniel Jacobowitz <drow@mvista.com>
12104
12105 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12106 (auto_cp_abi): New variable.
12107 (current_cp_abi, num_cp_abis): Make static.
12108 (CP_ABI_MAX): Define.
12109 (cp_abis): Turn into an array.
12110 (value_virtual_fn_field): Fix formatting.
12111 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12112 takes a pointer.
12113 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12114 (list_cp_abis, _initialize_cp_abi): New functions.
12115 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12116 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12117 switch_to_cp_abi. Update prototype for register_cp_abi.
12118 * Makefile.in (cp-abi.o): Update dependencies.
12119 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12120 instead of switch_to_cp_abi.
12121 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12122 register_cp_abi.
12123 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12124 register_cp_abi.
12125 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12126
e4adbba9
DJ
121272003-03-05 Daniel Jacobowitz <drow@mvista.com>
12128
12129 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12130 * dwarf2loc.c: Include "regcache.h".
12131 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12132 register_size.
12133 * Makefile.in (dwarf2loc.o): Update dependencies.
12134
91ccbfc1
TR
121352003-03-04 Theodore A. Roth <troth@openavr.org>
12136
12137 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12138 number of io registers reported by remote target is not a multiple of
12139 step.
12140
3d4e8fd2
DC
121412003-03-04 David Carlton <carlton@math.stanford.edu>
12142
12143 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12144 (lookup_symbol_aux_psymtabs): Update call to
12145 lookup_partial_symbol.
12146 (lookup_transparent_type, find_main_psymtab)
12147 (make_symbol_overload_list): Ditto.
12148
ed42d87b
KH
121492003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12150
12151 * MAINTAINERS (Write after approval): Update my email address.
12152
a0ed5532
AC
121532003-03-03 Andrew Cagney <cagney@redhat.com>
12154
12155 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12156 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12157 predicate. Replace MAX_REGISTER_RAW_SIZE.
12158 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12159 MAX_REGISTER_VIRTUAL_SIZE.
12160 * regcache.c (legacy_max_register_raw_size): New function.
12161 (legacy_max_register_virtual_size): New function.
12162 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12163 (MAX_REGISTER_RAW_SIZE): Define.
12164 (legacy_max_register_raw_size): Declare.
12165 (legacy_max_register_virtual_size): Declare.
12166 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12167 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12168 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12169 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12170 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12171 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12172 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12173 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12174 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12176 * vax-tdep.c (vax_gdbarch_init): Update.
12177 * v850-tdep.c (v850_gdbarch_init): Update.
12178 * sparc-tdep.c (sparc_gdbarch_init): Update.
12179 * sh-tdep.c (sh_gdbarch_init): Update.
12180 * s390-tdep.c (s390_gdbarch_init): Update.
12181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12184 * mips-tdep.c (mips_gdbarch_init): Update.
12185 * mcore-tdep.c (mcore_gdbarch_init): Update.
12186 * m68k-tdep.c (m68k_gdbarch_init): Update.
12187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12188 * ia64-tdep.c (ia64_gdbarch_init): Update.
12189 * i386-tdep.c (i386_gdbarch_init): Update.
12190 * hppa-tdep.c (hppa_gdbarch_init): Update.
12191 * h8300-tdep.c (h8300_gdbarch_init): Update.
12192 * frv-tdep.c (frv_gdbarch_init): Update.
12193 * cris-tdep.c (cris_gdbarch_init): Update.
12194 * avr-tdep.c (avr_gdbarch_init): Update.
12195 * arm-tdep.c (arm_gdbarch_init): Update.
12196 * alpha-tdep.c (alpha_gdbarch_init): Update.
12197 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12198 max_register_raw_size or max_register_virtual_size.
12199
8e437497
DC
122002003-03-03 David Carlton <carlton@math.stanford.edu>
12201
12202 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12203 SYMBOL_MATCHES_NAME, add comment.
12204 (SYMBOL_MATCHES_NATURAL_NAME): New.
12205 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12206 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12207 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12208 * symtab.c (lookup_partial_symbol): Use
12209 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12210 unhelpful comment.
12211 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12212 SYMBOL_MATCHES_NAME.
12213 Fix for PR c++/33.
12214
25120b0d
DC
122152003-03-03 David Carlton <carlton@math.stanford.edu>
12216
12217 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12218 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12219 by regexp matching against SYMBOL_NATURAL_NAME.
12220
78a11fb4
DC
122212003-03-03 David Carlton <carlton@math.stanford.edu>
12222
12223 * linespec.c (find_method): Extract code into collect_methods.
12224 (collect_methods): New.
12225
645dd519
MK
122262003-03-02 Mark Kettenis <kettenis@gnu.org>
12227
b4700d91
MK
12228 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12229 get_frame_base.
12230
645dd519
MK
12231 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12232 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12233
0aa7e1aa
SC
122342003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12235
8ffd9b1b 12236 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12237 and not regnum when summing the size of all registers up to regnum.
12238
f30ee0bc
AC
122392003-03-01 Andrew Cagney <cagney@redhat.com>
12240
12241 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12242 FRAME_INIT_SAVED_REGS.
12243 * gdbarch.h, gdbarch.c: Regenerate.
12244 * stack.c (frame_info): Update.
12245 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12246 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12247 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12248 * ns32k-tdep.c (ns32k_pop_frame): Update.
12249 * mips-tdep.c (mips_pop_frame): Update.
12250 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12251 * ia64-tdep.c (ia64_frame_chain): Update.
12252 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12253 (ia64_frameless_function_invocation): Update.
12254 (ia64_init_extra_frame_info): Update.
12255 (ia64_pop_frame_regular): Update.
12256 * frame.h (struct frame_info): Update comment.
12257 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12258 * frame.c (frame_saved_regs_register_unwind): Update.
12259 (frame_saved_regs_register_unwind): Update.
12260 (deprecated_generic_get_saved_register): Update.
12261 * cris-tdep.c: Update comment.
12262 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12263 Rename macro.
12264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12265 * x86-64-tdep.c (x86_64_init_abi): Update.
12266 * vax-tdep.c (vax_gdbarch_init): Update.
12267 * v850-tdep.c (v850_gdbarch_init): Update.
12268 * sparc-tdep.c (sparc_gdbarch_init): Update.
12269 * sh-tdep.c (sh_gdbarch_init): Update.
12270 * s390-tdep.c (s390_gdbarch_init): Update.
12271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12272 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12275 * mips-tdep.c (mips_gdbarch_init): Update.
12276 * mcore-tdep.c (mcore_gdbarch_init): Update.
12277 * m68k-tdep.c (m68k_gdbarch_init): Update.
12278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12279 * ia64-tdep.c (ia64_gdbarch_init): Update.
12280 * i386-tdep.c (i386_gdbarch_init): Update.
12281 * frv-tdep.c (frv_gdbarch_init): Update.
12282 * avr-tdep.c (avr_gdbarch_init): Update.
12283 * arm-tdep.c (arm_gdbarch_init): Update.
12284 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12285
42fa7c0f
AC
122862003-03-01 Andrew Cagney <cagney@redhat.com>
12287
12288 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12289 option enum and switch. When no windows, set the interpreter to
12290 INTERP_CONSOLE.
8ffd9b1b 12291
49c7e338
AC
122922003-03-01 Andrew Cagney <cagney@redhat.com>
12293
12294 * main.c (captured_main): Replace magic option characters with an
12295 enum.
12296
e9582e71
AC
122972003-03-01 Andrew Cagney <cagney@redhat.com>
12298
12299 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12300 INIT_EXTRA_FRAME_INFO.
12301 * gdbarch.h, gdbarch.c: Regenerate.
12302 * arm-tdep.c: Update comments.
12303 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12304 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12305 * frame.h, avr-tdep.c: Ditto.
12306 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12307 (create_new_frame, legacy_get_prev_frame): Ditto.
12308 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12309 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12311 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12312 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12313 * v850-tdep.c (v850_gdbarch_init): Ditto.
12314 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12315 * sh-tdep.c (sh_gdbarch_init): Ditto.
12316 * s390-tdep.c (s390_gdbarch_init): Ditto.
12317 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12318 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12319 * mips-tdep.c (mips_gdbarch_init): Ditto.
12320 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12322 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12323 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12324 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12325 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12326 * frv-tdep.c (frv_gdbarch_init): Ditto.
12327 * cris-tdep.c (cris_gdbarch_init): Ditto.
12328 * avr-tdep.c (avr_gdbarch_init): Ditto.
12329 * arm-tdep.c (arm_gdbarch_init): Ditto.
12330 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12332
35cac7cf
AC
123332003-03-01 Andrew Cagney <cagney@redhat.com>
12334
12335 * gdbarch.sh (register_type): New function with predicate.
12336 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12337 * gdbarch.h, gdbarch.c: Re-generate.
12338 * arch-utils.c (generic_register_byte): Use generic_register_size.
12339 (generic_register_size): When available, use
12340 gdbarch_register_type.
12341 * regcache.c (init_regcache_descr): When available, initialize the
12342 register type array using gdbarch_register_type. If the
12343 architecture supplies gdbarch_register_type, do not use the legacy
12344 regcache layout.
12345 * d10v-tdep.c (d10v_register_type): Replace
12346 d10v_register_virtual_type.
12347 (d10v_gdbarch_init): Set register_type instead of
12348 register_virtual_type.
12349
7b83296f
AC
123502003-03-01 Andrew Cagney <cagney@redhat.com>
12351
12352 * Makefile.in (ax-gdb.o): Update dependencies.
12353 * ax-gdb.c: Include "regcache.h".
12354 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12355 * findvar.c (value_of_register): Ditto.
12356 * infcmd.c (default_print_registers_info): Ditto.
12357
eadc1c87
MK
123582003-03-01 Mark Kettenis <kettenis@gnu.org>
12359
12360 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12361 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12362
14143612
MK
123632003-03-01 Mark Kettenis <kettenis@gnu.org>
12364
12365 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12366 of STREQ.
12367
a55cc764
DJ
123682003-02-28 Daniel Jacobowitz <drow@mvista.com>
12369
12370 * Makefile.in (dwarf2loc.o): Update dependencies.
12371 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12372 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12373 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12374 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12375 (locexpr_tracepoint_var_ref): New function.
12376 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12377
08a617da
AC
123782003-02-28 Andrew Cagney <cagney@redhat.com>
12379
12380 * regcache.c (register_size): New function.
12381 * regcache.h (register_size): Declare
12382 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12383 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12384
4224873a
DC
123852003-02-28 David Carlton <carlton@math.stanford.edu>
12386
12387 * linespec.c (decode_compound): Extract code into find_method.
12388 (find_method): New.
12389
ccdc5d7f
JB
123902003-02-28 J. Brobecker <brobecker@gnat.com>
12391
12392 * Makefile.in: Add rules to build and link in observer.o.
12393
974e8ced
JB
123942003-02-27 J. Brobecker <brobecker@gnat.com>
12395
12396 * observer.c: Minor comments edits.
12397
7a28f973
JB
123982003-02-27 J. Brobecker <brobecker@gnat.com>
12399
12400 * observer.h, observer.c: New file.
12401
27cddce2
AC
124022003-02-27 Andrew Cagney <cagney@redhat.com>
12403
12404 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12405
b94a41a1
SC
124062003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12407
12408 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12409 (M6812_OP_STS_EXT): Likewise.
12410 (m6811_prologue): Use the above to recognize prologue.
12411 (m6812_prologue): Likewise.
12412
c8be8951
DC
124132003-02-27 David Carlton <carlton@math.stanford.edu>
12414
12415 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12416 SYMBOL_PRINT_NAME.
12417 (compare_psymbols): Ditto.
12418 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12419
d05bb1fc
MS
124202003-02-27 Michael Snyder <msnyder@redhat.com>
12421
4e845cd3
MS
12422 * f-lang.c (build_fortran_types): New function.
12423 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12424 * doublest.c (extract_floating): Fix warning text.
12425
f3824013
AC
124262003-02-27 Andrew Cagney <cagney@redhat.com>
12427
12428 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12429 predicate. Replaces PUSH_DUMMY_FRAME.
12430 * gdbarch.h, gdbarch.c: Regnerate.
12431 * valops.c (hand_function_call): Update. Call
12432 generic_push_dummy_frame directly.
12433 * vax-tdep.c (vax_gdbarch_init): Update.
12434 * sparc-tdep.c (sparc_gdbarch_init): Update.
12435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12436 * m68k-tdep.c (m68k_gdbarch_init): Update.
12437 * hppa-tdep.c (hppa_gdbarch_init): Update.
12438 * alpha-tdep.c (alpha_gdbarch_init): Update.
12439 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12440 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12441 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12443 push_dummy_frame to generic_push_dummy_frame.
12444 * v850-tdep.c (v850_gdbarch_init): Ditto.
12445 * sh-tdep.c (sh_gdbarch_init): Ditto.
12446 * s390-tdep.c (s390_gdbarch_init): Ditto.
12447 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12448 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12449 * mips-tdep.c (mips_gdbarch_init): Ditto.
12450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12452 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12453 * i386-tdep.c (i386_gdbarch_init): Ditto.
12454 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12455 * frv-tdep.c (frv_gdbarch_init): Ditto.
12456 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12457 * cris-tdep.c (cris_gdbarch_init): Ditto.
12458 * avr-tdep.c (avr_gdbarch_init): Ditto.
12459 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12460
ad188201
KB
124612003-02-26 Kevin Buettner <kevinb@redhat.com>
12462
12463 * mips-tdep.c (show_mips_abi): New function.
12464 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12465 command ``show mips abi''.
12466
6b37567a 124672003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12468
6b37567a 12469 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12470 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12471 more sline entries have been seen for the function.
12472
d3e0a5bf
MC
124732003-02-26 Michael Chastain <mec@shout.net>
12474
12475 * configure: Regenerate with autoconf 000227.
12476
18972eea
MC
124772003-02-26 Michael Chastain <mec@shout.net>
12478
12479 Close PR build/660.
12480 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12481 for old libc5/glibc.
12482 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12483
0bbde931
KW
124842003-02-26 Kris Warkentin <kewarken@qnx.com>
12485
12486 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12487 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12488
27ca5dad
MC
124892003-02-26 Michael Chastain <mec@shout.net>
12490
12491 * configure.in: New variable HAVE_UINTPTR_T.
12492 * configure, config.in: Regenerated.
12493
6f88d630
DJ
124942003-02-26 Daniel Jacobowitz <drow@mvista.com>
12495
12496 Fix PR build/1097.
12497 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12498
b14185ce
AC
124992003-02-25 Andrew Cagney <cagney@redhat.com>
12500
12501 * frame.c (get_prev_frame): Add comment on check for
12502 inside_entry_func. Only check for inside_entry_file when not a
12503 dummy and not a sentinel. Check that the new frame is not inner
12504 to the old frame.
12505
ac2bd0a9
AC
125062003-02-25 Andrew Cagney <cagney@redhat.com>
12507
12508 * frame.c (frame_debug): New variable.
12509 (_initialize_frame): Add "set/show debug frame" command.
12510 (get_prev_frame): When frame_debug, print reason why unwind
12511 failed.
12512
b18a0fd2
MC
125132003-02-25 Michael Chastain <mec@shout.net>
12514
12515 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12516 to avoid uintptr_t definition problems.
12517
22abf04a
DC
125182003-02-25 David Carlton <carlton@math.stanford.edu>
12519
12520 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12521 (SYMBOL_LINKAGE_NAME): Ditto.
12522 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12523 SYMBOL_LINKAGE_NAME.
12524 (struct general_symbol_info): Expand comment.
12525 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12526 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12527 (SYMBOL_MATCHES_REGEXP): Ditto.
12528 * symtab.c (symbol_natural_name): New function.
12529 * objfiles.h: Replace all uses of SYMBOL_NAME by
12530 DEPRECATED_SYMBOL_NAME.
12531 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12532 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12533 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12534 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12535 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12536 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12537 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12538 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12539 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12540 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12541 * ada-exp.y: Ditto.
12542 * ada-exp.y: Update copyright.
12543 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12544 * cp-valprint.c: Ditto.
12545
1a5848f6
JJ
125462003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12547
12548 * infptrace.c (detach): Do not flag error if ptrace detach fails
12549 and errno is set to ESRCH.
12550
7343d46a
AC
125512003-02-24 Andrew Cagney <cagney@redhat.com>
12552
12553 * infptrace.c (udot_info): Change type of udot_off to long. Use
12554 paddr when printing udot_off's value.
12555
49fa1dc2
DC
125562003-02-24 David Carlton <carlton@math.stanford.edu>
12557
12558 * symtab.c (make_symbol_overload_list): Only read in partial
12559 symtabs containing a matching partial symbol.
12560
0fe19209
DC
125612003-02-24 David Carlton <carlton@math.stanford.edu>
12562
12563 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12564 do the comparison, not strcmp.
12565 * symfile.c (compare_psymbols): Ditto.
12566 * defs.h: Declare strcmp_iw_ordered.
12567 * utils.c (strcmp_iw_ordered): New function.
12568
8e3ee7b5
JB
125692003-02-24 Jim Blandy <jimb@redhat.com>
12570
12571 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12572 support, shared libs): Remove my name from here, to better reflect
12573 reality.
12574
7df1a324
KW
125752003-02-24 Kris Warkentin <kewarken@qnx.com>
12576
12577 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12578 (target_ops): Add to_have_continuable_watchpoint.
12579 * target.c (update_current_target): Add INHERIT line for
12580 to_have_continuable_watchpoint.
12581 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12582 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12583 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12584 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12585
d1c76907
EZ
125862003-02-24 Elena Zannoni <ezannoni@redhat.com>
12587
12588 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12589 maintainership.
12590
2610b0bf
KW
125912003-02-24 Kris Warkentin <kewarken@qnx.com>
12592
f46169db
KW
12593 * solib.c (solib_open): Call target defined search function after
12594 failing with solib-search-path.
12595 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12596 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12597
9a3c34fe
KW
125982003-02-24 Kris Warkentin <kewarken@qnx.com>
12599
f46169db 12600 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12601
2417dd25
SC
126022003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12603
12604 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12605
b631436b
SC
126062003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12607
12608 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12609 (m68hc11_add_reggroups): New function.
12610 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12611 (m68hc11_gdbarch_init): Install the reggroups.
12612 (_initialize_m68hc11_tdep): Initialize them.
12613
0aa8c1e4
JW
126142003-02-21 James E Wilson <wilson@tuliptree.org>
12615
12616 * MAINTAINERS: Update my email address.
12617
50ceaba5
DC
126182003-02-21 David Carlton <carlton@math.stanford.edu>
12619
12620 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12621
4c2df51b
DJ
126222003-02-21 Daniel Jacobowitz <drow@mvista.com>
12623
12624 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12625 * symtab.h: Add opaque declarations of struct axs_value and
12626 struct agent_expr.
12627 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12628 (struct location_funcs): New type.
12629 (struct symbol): Add "loc" to aux_value.
12630 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12631 * dwarf2read.c: Include "dwarf2expr.h".
12632 (dwarf2_symbol_mark_computed): New function.
12633 (read_func_scope): Use it.
12634 (var_decode_location): New function.
12635 (new_symbol): Use it.
12636 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12637
12638 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12639 (dwarf2expr_h, dwarf2loc_h): New variables.
12640 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12641 (dwarf2expr.o, dwarf2loc.o): New rules.
12642 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12643 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12644 LOC_COMPUTED_ARG.
12645 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12646 * m2-exp.y (yylex): Likewise.
12647 * printcmd.c (address_info, print_frame_args): Likewise.
12648 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12649 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12650 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12651 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12652 * symtab.c (lookup_block_symbol): Likewise.
12653
5784d15e
AF
126542003-02-20 Adam Fedor <fedor@gnu.org>
12655
12656 * symtab.h: Remove objc_specific struct
12657 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12658 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12659 Have language_objc use cplus_specific struct.
12660
d4cad8db
TT
126612003-02-20 Tom Tromey <tromey@redhat.com>
12662
12663 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12664 TYPE_NAME, when printing a String value. PR java/1075.
12665
2f9a90b4
AF
126662003-02-20 Adam Fedor <fedor@gnu.org>
12667
d38074a8 12668 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12669 * objc-lang.c (find_methods): Make static.
2f9a90b4 12670
6f17862b
CF
126712003-02-20 Christopher Faylor <cgf@redhat.com>
12672
12673 * win32-nat.c (get_image_name): Check return value from
12674 ReadProcessMemory.
12675 (child_xfer_memory): Ditto.
12676
715d1656
AO
126772003-02-20 Alexandre Oliva <aoliva@redhat.com>
12678
12679 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12680 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12681 '${exec_prefix}' (in addition to the expansion thereof) as
12682 relocatable.
12683 * configure: Rebuilt.
12684
b1262a02
DC
126852003-02-20 David Carlton <carlton@math.stanford.edu>
12686
12687 * symtab.c (search_symbols): Revert the search_symbols part of my
12688 2002-12-23 patch. Add comment.
12689
7134143f
DJ
126902002-02-20 Daniel Jacobowitz <drow@mvista.com>
12691
12692 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12693 * dbxread.c (elfstab_build_psymtabs): Don't call
12694 install_minimal_symbols.
12695 (stabsect_build_psymtabs): Likewise.
12696 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12697 earlier.
12698 * somread.c (som_symfile_read): Call install_minimal_symbols
12699 and do_cleanups earlier.
12700 * nlmread.c (nlm_symfile_read): Likewise.
12701 * mdebugread.c (elfmdebug_build_psymtabs): Call
12702 install_minimal_symbols and make appropriate cleanups.
12703
cf466558
KB
127042003-02-20 Kevin Buettner <kevinb@redhat.com>
12705
12706 * solib.c (reload_shared_libraries): New function.
12707 (_initialize_solib): Add callbacks for ``set solib-search-path''
12708 and ``set solib-absolute-prefix''.
12709
de5ad195
DC
127102003-02-20 David Carlton <carlton@math.stanford.edu>
12711
12712 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12713 expand comment.
12714 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12715 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12716 * ada-typeprint.c (ada_typedef_print): Ditto.
12717 * ax-gdb.c (gen_var_ref): Ditto.
12718 * breakpoint.c (print_one_breakpoint): Ditto.
12719 * buildsym.c (finish_block): Ditto.
12720 * c-valprint.c (c_val_print): Ditto.
12721 * expprint.c (print_subexp): Ditto.
12722 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12723 * infcmd.c (jump_command): Ditto.
12724 * linespec.c (decode_line_2, decode_compound): Ditto.
12725 * maint.c (maintenance_translate_address): Ditto.
12726 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12727 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12728 Ditto.
8ffd9b1b
AJ
12729 * p-valprint.c (pascal_val_print): Ditto.
12730 * stabsread.c (define_symbol): Ditto.
de5ad195 12731 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12732 (print_frame_arg_vars, return_command): Ditto.
12733 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12734 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12735 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12736 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12737 (rbreak_command): Ditto.
12738 * tracepoint.c (tracepoints_info): Ditto.
12739 * typeprint.c (typedef_print): Ditto.
12740 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12741 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12742 * ada-typeprint.c: Update Copyright.
12743 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12744 * tracepoint.c, cli/cli-cmds.c: Ditto.
12745
f796e4be
KB
127462003-02-20 Kevin Buettner <kevinb@redhat.com>
12747
12748 * frame.c (generic_unwind_get_saved_register): Make non-static.
12749 * frame.h (generic_unwind_get_saved_register): Declare.
12750 * mips-tdep.c (read_next_frame_reg): Fetch register from
12751 current regcache when frame is NULL.
12752 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12753 that must be NULL.
12754 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12755 instead of frame_register_unwind().
12756
836cc9f4
AC
127572003-02-20 Andrew Cagney <ac131313@redhat.com>
12758
12759 * remote-sim.c (gdbsim_insert_breakpoint)
12760 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12761 code.
12762
501eef12
AC
127632003-02-20 Andrew Cagney <ac131313@redhat.com>
12764
12765 * remote.c (_initialize_remote): Add commands "set/show remote
12766 hardware-watchpoint-limit" and "set/show remote
12767 hardware-breakpoint-limit".
12768 (remote_hw_watchpoint_limit): Initialize to -1.
12769 (remote_hw_breakpoint_limit): Ditto.
12770 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12771
1b6bc7e0
CF
127722003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12773
12774 * coff-pe-read.c: New file - support reading of minimal symbols from a
12775 portable executable using the export table.
12776 * coff-pe-read.h: New file.
12777 * coffread.c: Include coff-pe-read.h.
12778 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12779 debugging symbols found.
12780 * Makefile.in (SFILES): Add coff-pe-read.o.
12781 (coff_pe_read_h): Define.
12782 (COMMON_OBS): Add coff-pe-read.o.
12783 (coffread.o): Add coff_pe_read_h dependency.
12784 (coff-pe-read.o): New target.
12785
fe898f56
DC
127862003-02-19 David Carlton <carlton@math.stanford.edu>
12787
12788 * Makefile.in (SFILES): Add block.c.
12789 (block_h): New.
12790 (COMMON_OBS): Add block.o.
12791 (block.o): New.
12792 (x86-64-tdep.o): Add $(block_h).
12793 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12794 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12795 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12796 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12797 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12798 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12799 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12800 * value.h: Add opaque declaration for struct block.
12801 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12802 * ada-lang.h: Ditto.
12803 * x86-64-tdep.c: #include "block.h"
12804 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12805 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12806 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12807 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12808 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12809 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12810 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12811 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12812 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12813 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12814 * symtab.c (block_function): Ditto.
12815 (contained_in): Ditto.
12816 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12817 block.h. Add opaque declaration for struct block.
12818 * symtab.h: Move block_function and contained_in declarations to
12819 block.h. Add opaque declarations for struct block, struct
12820 blockvector.
12821 (struct block): Move to block.h.
12822 (struct blockvector): Ditto.
12823 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12824 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12825 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12826 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12827 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12828 Ditto.
12829 * block.c: New file.
12830 * block.h: New file.
12831
173345b5
TR
128322003-02-19 Theodore A. Roth <troth@openavr.org>
12833
12834 * avr-tdep.c (avr_extract_return_value): Remove function.
12835 (avr_store_return_value): Remove function.
12836 (avr_extract_struct_value_address): Remove function.
12837 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12838
338ef23d
AC
128392003-02-19 Andrew Cagney <ac131313@redhat.com>
12840
12841 * rs6000-tdep.c: Include "gdb_assert.h".
12842 (registers_e500): Add "acc" and "spefscr".
12843 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12844 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12845 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12846 really is "r0".
12847 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12848
5412f5f3
KS
128492003-02-18 Keith Seitz <keiths@redhat.com>
12850
12851 * Makefile.in: Add gdbtk-interps.c.
12852
881324eb
KB
128532003-02-18 Kevin Buettner <kevinb@redhat.com>
12854
12855 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12856 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12857
6a2f5abf
AC
128582003-02-18 Andrew Cagney <cagney@redhat.com>
12859
12860 * symtab.h (struct objfile): Add opaque declaration.
12861
54c7009d
EZ
128622003-02-18 Elena Zannoni <ezannoni@redhat.com>
12863
12864 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12865 * dbxread.c (process_one_symbol): Use last_function_start rather
12866 than function_start_offset to find the real beginning of the
12867 current function. The latter is just the text section offset on
12868 some systems, the former is always the real function start.
54c7009d 12869
7ee6d7eb
AC
128702003-02-17 Andrew Cagney <cagney@redhat.com>
12871
12872 * configure.in: Revert ${target} != ${host}.
12873
2846da9b
AC
128742003-02-17 Andrew Cagney <ac131313@redhat.com>
12875
12876 * configure.in (Makefile): Use the test ${target} != ${host},
12877 instead of the absence of the "nm.h" file, to determine of the
12878 configuration non-native.
12879 * configure: Regenerate.
8ffd9b1b 12880
3b27aeea
EZ
128812003-02-14 Elena Zannoni <ezannoni@redhat.com>
12882
fbe586ae 12883 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12884
12885 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12886 conditionalize tui_active test.
12887 (lookup_cmd_1): Ditto.
12888
b0b1c2c0
MK
128892003-02-14 Mark Kettenis <kettenis@gnu.org>
12890
12891 * configure.in: Add check for _etext.
12892 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12893 available.
12894 * config.in, configure: regenerated.
12895
8f05cde5
DJ
128962003-02-14 Daniel Jacobowitz <drow@mvista.com>
12897
12898 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12899
021e7609
AC
129002003-02-14 Andrew Cagney <ac131313@redhat.com>
12901
12902 * main.c (tui_version): Delete variable.
12903 (captured_main): When --tui, set interpreter_p to "tui" instead of
12904 enabling tui_version.
12905 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12906 tui_version.
12907 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12908 * cli/cli-cmds.c (disassemble_command): Ditto.
12909 * defs.h (tui_version): Delete declaration.
12910 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12911 (tui-interp.o): Add rules.
12912 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12913
e325dcec
CF
129142003-02-14 Christopher Faylor <cgf@redhat.com>
12915
36ffb041 12916 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12917 just-loaded dll.
12918
c4f90d87
JM
129192003-02-12 Jason Molenda (jmolenda@apple.com)
12920
fbe586ae
RH
12921 * symmisc.c (print_objfile_statistics): Include information about
12922 the number of psymtabs and symtabs in each object file.
c4f90d87 12923
e46e5ccd
KS
129242003-02-13 Keith R Seitz <keiths@redhat.com>
12925
12926 * main.h (struct captured_main_args): Add interpreter_p.
12927 * main.c (captured_main): Initialize interpreter_p from context.
12928 * gdb.c (main): Set interpreter_p argument.
12929 * Makefile.in (gdb.o): Add dependency for interps.h.
12930
fe97fe9c
AC
129312003-02-12 Andrew Cagney <ac131313@redhat.com>
12932
12933 * event-top.c (cli_command_loop): Delete declaration.
12934 (_initialize_event_loop): Delete function setting event_loop_hook.
12935 * event-top.h (cli_command_loop): Declare. Update copyright.
12936 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12937 * interps.c (current_interp_command_loop): When event_loop_p, call
12938 cli_command_loop.
12939
1cdac4ef
AC
129402003-02-12 Andrew Cagney <ac131313@redhat.com>
12941
12942 * interps.h (interp_command_loop_ftype): Change return type to
12943 void.
12944
48037ead
ML
129452003-02-12 Michal Ludvig <mludvig@suse.cz>
12946
12947 * x86-64-tdep.c (x86_64_extract_return_value)
12948 (x86_64_store_return_value): Use regcache instead of regbuf.
12949 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12950 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12951
033afc63
AC
129522003-02-11 Andrew Cagney <ac131313@redhat.com>
12953
12954 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12955 * aclocal.m4: Regenerate.
12956 * configure: Regenerate.
12957
12958 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12959 TCL_LD_SEARCH_FLAGS.
12960
40d02bca
ML
129612003-02-10 Michal Ludvig <mludvig@suse.cz>
12962
12963 * dwarf2cfi.c: Reindented.
12964
11308a41
AC
129652003-02-09 Andrew Cagney <ac131313@redhat.com>
12966
12967 * interps.c (clear_interpreter_hooks): Convert function definition
12968 to ISO C.
12969
e1c1c0f6
DC
129702003-02-07 David Carlton <carlton@math.stanford.edu>
12971
12972 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12973
ab5d3da6
KB
129742003-02-07 Kevin Buettner <kevinb@redhat.com>
12975
12976 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12977 (struct type): ...to here.
12978 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12979 field.
12980 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12981 (replace_type): Set length on all type variants for a given type.
12982
b8a92b82
AC
129832003-02-07 Andrew Cagney <ac131313@redhat.com>
12984
12985 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12986 <sys/stat.h>.
12987 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12988
5cb316ef
AC
129892003-02-06 Andrew Cagney <ac131313@redhat.com>
12990
2555fe1a
AC
12991 * Makefile.in (symm-nat.o): Update dependencies.
12992 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12993 (lynx-nat.o, ia64-linux-nat.): Ditto.
12994 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12995 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12996 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12997
44270758
AC
12998 * Makefile.in (inflow_h): Define.
12999 (procfs.o, inflow.o, procfs.o): Update dependencies.
13000 * inftarg.c (child_stop): Delete extern declaration of
13001 inferior_process_group. Include "inflow.h".
13002 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13003 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13004 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13005 (our_process_group, inferior_process_group): Extern declarations.
13006
df8f7274
AC
13007 * procfs.c: Include "gdb_assert.h".
13008
5cb316ef
AC
13009 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13010 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13011 * jv-typeprint.c (java_type_print_base): Ditto.
13012 * typeprint.c (typedef_print): Eliminate STREQ.
13013 * cli/cli-script.c (define_command, define_command): Ditto.
13014 * main.c (captured_main): Ditto.
13015 * values.c (lookup_internalvar): Ditto.
13016 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13017 within `if' conditional.
13018 * linespec.c (decode_line_2): Ditto.
13019 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13020 (bfd_openw_with_cleanup): Ditto.
13021
2a28ccea
MK
130222003-02-07 Mark Kettenis <kettenis@gnu.org>
13023
13024 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13025 legacy_extract_return_value and store_return_value to
13026 legacy_return_value.
13027
786b8124
CF
130282003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13029
13030 * win32-nat.c (get_relocated_section_addrs): New function. Find
13031 section load addresses for symbol handling in relocated DLLs.
13032 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13033
b871e4ec
FF
130342003-02-05 Fred Fish <fnf@intrinsity.com>
13035
13036 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13037 '=' and '!='.
13038 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13039 with '&' and '=='.
13040 (angel_RDI_info): Ditto.
13041 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13042 with '&' and '!='.
13043 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13044
4389a95a 130452003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13046 Keith Seitz <keiths@redhat.com>
13047 Elena Zannoni <ezannoni@redhat.com>
13048 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13049
13050 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13051 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13052 (SUBDIR_MI_OBS): Add "mi-interp.o".
13053 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13054 (SFILES): Add "interps.c".
13055 (COMMON_OBS): Add "interps.o".
13056 (interps_h, mi_main_h): Define.
13057 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13058 (mi-main.o, main.o, event-top.o): Update dependencies.
13059 * cli/cli-interp.c: New file.
13060 * interps.h, interps.c: New files.
13061 * top.c: (gdb_init): Don't install the default interpreter, handed
13062 by captured_main.
13063 * main.c: Include "interps.h".
13064 (interpreter_p): Note that it should malloc'ed.
13065 (captured_command_loop): Call current_interp_command_loop.
13066 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13067 xfree and xstrdup when updating interpreter_p. Install the
13068 default interpreter. Add hack to stop mi1's copyright notice
13069 being encoded.
13070 * event-top.h (gdb_setup_readline): Declare.
13071 (gdb_disable_readline): Declare.
13072 * event-top.c: Include "interps.h".
13073 (display_gdb_prompt): Call current_interp_display_prompt_p.
13074 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13075 gdb_stdlog, and gdb_stdtarg.
13076 (_initialize_event_loop): Don't call gdb_setup_readline.
13077 * cli-out.c (cli_out_set_stream): New function.
13078 * cli-out.h (cli_out_set_stream): Declare.
13079
ff3b5810
MK
130802003-02-06 Mark Kettenis <kettenis@gnu.org>
13081
13082 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13083 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13084 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13085 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13086 config/i386/i386v42mp.mt: Removed.
13087
5b729aa5
MK
130882003-02-05 Mark Kettenis <kettenis@gnu.org>
13089
13090 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13091 GDB_OSABI_SOLARIS.
13092
8cc15142
MC
130932003-02-05 Michael Chastain <mec@shout.net>
13094
13095 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13096 2.12.1 and earlier versions.
13097
5aa5d4b9
AC
130982003-02-05 Andrew Cagney <ac131313@redhat.com>
13099
13100 Remove orphaned hosts, targets and files.
13101 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13102 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13103 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13104 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13105 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13106 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13107 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13108 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13109 * config/sparc/tm-sp64sim.h: Delete.
13110 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13111 hosts.
13112 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13113 mips*-dec-mach3* targets.
13114
b68767c1
MC
131152003-02-04 Michael Chastain <mec@shout.net>
13116
13117 * NEWS: Fix typo: sepcifying -> specifying.
13118
5ae7ca1d
MC
131192003-02-04 Michael Chastain <mec@shout.net>
13120
13121 * dwarfread.c: Add documentation on the state of dwarf-1,
13122 looking towards obsoletion.
13123
d08a4280
MC
131242003-02-03 Michael Chastain <mec@shout.net>
13125
13126 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13127 gdb/testsuite/gdb.c++/pr-1023.exp.
13128
e9be73e4
AC
131292003-02-04 Andrew Cagney <ac131313@redhat.com>
13130
13131 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13132 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13133
13134 * utils.c (init_page_info): Delete reference to MPW in comments.
13135 * main.c (captured_main): Delete #ifdef MPW.
13136
05d57f6f
AC
131372003-02-04 Andrew Cagney <ac131313@redhat.com>
13138
8ffd9b1b 13139 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13140 * monitor.c (monitor_expect): Obsolete reference to m32r.
13141 * configure.tgt: Mark m32r-*-elf* as obsolete.
13142 * MAINTAINERS: Mark m32k as obsolete.
13143 * m32r-rom.c: Obsolete file.
13144 * config/m32r/m32r.mt: Obsolete file.
13145 * config/m32r/tm-m32r.h: Obsolete file.
13146 * m32r-stub.c: Obsolete file.
13147 * m32r-tdep.c: Obsolete file.
13148
8b0e5691
AC
131492003-02-04 Andrew Cagney <ac131313@redhat.com>
13150
13151 * NEWS: Mention that the z8k-zilog-none is obsolete.
13152 * MAINTAINERS: Mark z8k as obsolete.
13153 * configure.tgt: Obsolete the z8k-*-coff* target.
13154 * config/z8k/z8k.mt: Obsolete file.
13155 * config/z8k/tm-z8k.h: Obsolete file.
13156 * z8k-tdep.c: Obsolete file.
13157
67f16606
AC
131582003-02-04 Andrew Cagney <ac131313@redhat.com>
13159
13160 * NEWS: Mention that the mn10200-elf is obsolete.
13161 * configure.tgt: Obsolete mn10200-*-* target.
13162 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13163 mention that the mn10200 is obsolete.
13164 * breakpoint.h: Ditto.
13165 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13166 * config/mn10200/mn10200.mt: Obsolete file.
13167 * config/mn10200/tm-mn10200.h: Obsolete file.
13168 * mn10200-tdep.c: Obsolete file.
13169
fd2299bd
AC
131702003-02-04 Andrew Cagney <ac131313@redhat.com>
13171
13172 * MAINTAINERS: Mark h8500 as obsolete.
13173 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13174 * findvar.c (value_from_register): Ditto.
13175 * h8500-tdep.c: Mark file as obsolete.
13176 * config/h8500/h8500.mt: Ditto.
13177 * config/h8500/tm-h8500.h: Ditto.
13178 * NEWS: Mention that h8500 is obsolete.
13179
eb9a305d
DC
131802003-02-04 David Carlton <carlton@math.stanford.edu>
13181
13182 * objfiles.c (allocate_objfile): Always set name. Add comment at
13183 start of function.
13184 * jv-lang.c (get_dynamics_objfile): Add comment.
13185
406fc7fb
DC
131862003-02-04 David Carlton <carlton@math.stanford.edu>
13187
13188 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13189 * printcmd.c (build_address_symbolic): Replace uses of
13190 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13191 SYMBOL_NAME, and asm_demangle.
13192 Update copyright.
13193
93d91629
DC
131942003-02-04 David Carlton <carlton@math.stanford.edu>
13195
13196 * linespec.c (decode_compound): Extract code into
13197 lookup_prefix_sym.
13198 (lookup_prefix_sym): New function.
13199
1c5cb38e
DC
132002003-02-04 David Carlton <carlton@math.stanford.edu>
13201
13202 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13203 FLOAT_COERCION_BADNESS.
13204 * gdbtypes.c (rank_one_type): Replace all uses of
13205 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13206
0cf824c9
JB
132072003-02-04 Jim Blandy <jimb@redhat.com>
13208
13209 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13210 section, let dwarf_macinfo_section point to it, not
13211 dwarf_loc_section.
13212
a2d356b0
DJ
132132003-02-04 Daniel Jacobowitz <drow@mvista.com>
13214
13215 Pointed out by Anton Blanchard <anton@samba.org>.
13216 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13217 (ppc_linux_at_sigtramp_return_path): Use it.
13218
2de7ced7
DJ
132192003-02-04 Daniel Jacobowitz <drow@mvista.com>
13220
13221 * defs.h (streq): Add prototype.
13222 * utils.c (streq): New function.
13223
13224 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13225 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13226 * mdebugread.c (new_symbol): Likewise.
13227 * stabsread.c (define_symbol): Likewise.
13228 * coffread.c (process_coff_symbol): Likewise.
13229 * dwarfread.c (new_symbol): Likewise.
13230
13231 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13232 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13233 here.
13234 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13235 SYMBOL_INIT_DEMANGLED_NAME.
13236 * objfiles.c: Include "hashtab.h".
13237 (allocate_objfile): Call htab_set_functions_ex for the
13238 demangled_names_hash.
13239 (free_objfile): Call htab_delete for the demangled_names_hash.
13240 * objfiles.h (struct htab): Add declaration.
13241 (struct objfile): Add demangled_names_hash.
13242 * symfile.c: Include "hashtab.h".
13243 (reread_symbols): Call htab_delete for the demangled_names_hash.
13244 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13245 SYMBOL_NAME in the bcache.
13246 * symtab.c: Include "hashtab.h". Update comments.
13247 (create_demangled_names_hash, symbol_set_names): New functions.
13248 (symbol_find_demangled_name): New function, broken out from
13249 symbol_init_demangled_names.
13250 (symbol_init_demangled_names): Use it.
13251 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13252 (SYMBOL_SET_NAMES): New macro.
13253 (symbol_set_names): Add prototype.
13254
15831452
JB
132552003-02-03 Jim Blandy <jimb@redhat.com>
13256
13257 Use a single, consistent representation for an empty minimal
13258 symbol table in an objfile.
13259 * objfiles.c (terminate_minimal_symbol_table): New function.
13260 (allocate_objfile): Call it.
13261 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13262 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13263 non-NULL.
15831452
JB
13264 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13265 objfile has minimal symbols, compare minimal_symbol_count to zero,
13266 instead of comparing msymbols with NULL.
13267 * objfiles.c (have_minimal_symbols): Same.
13268 * solib-sunos.c (solib_add_common_symbols): Call
13269 terminate_minimal_symbol_table.
13270 * symfile.c (reread_symbols): Same.
8ffd9b1b 13271
ffc65945
KB
132722003-02-03 Kevin Buettner <kevinb@redhat.com>
13273
13274 * s390-tdep.c (s390_address_class_type_flags)
13275 (s390_address_class_type_flags_to_name)
13276 (s390_address_class_name_to_type_flags): New functions.
13277 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13278 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13279
f211c6d4
MS
132802003-02-03 Michael Snyder <msnyder@redhat.com>
13281
13282 * arm-tdep.c: Fix spell-o in comment.
13283
659b0389
ML
132842003-02-03 Michal Ludvig <mludvig@suse.cz>
13285
13286 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13287 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13288 error messages to contain BFD filename.
659b0389 13289
3b31d625
EZ
132902003-02-02 Elena Zannoni <ezannoni@redhat.com>
13291
997b089a 13292 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13293 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13294 (do_mixed_source_and_assembly): Use
13295 make_cleanup_ui_out_tuple_begin_end and
13296 make_cleanup_ui_out_tuple_begin_end.
13297 (do_mixed_source_and_assembly): Ditto.
13298 * thread.c (do_captured_list_thread_ids): Ditto.
13299 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13300 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13301 ui_out_tuple_end): Delete prototypes.
13302 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13303 ui_out_list_end, ui_out_tuple_end): Delete.
13304
13305 From Kevin Buettner <kevinb@redhat.com>:
13306 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13307 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13308 (do_cleanup_table_end): New functions.
13309 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13310 Use cleanups to invoke_ui_out_tuple_end().
13311 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13312 * cli/cli-setshow.c (cmd_show_list): Use
13313 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13314
5b181d62
AC
133152003-02-02 Andrew Cagney <ac131313@redhat.com>
13316
13317 * frame.c (frame_unwind_register): New function.
13318 (frame_unwind_unsigned_register): Use.
13319 (frame_unwind_signed_register): Use.
13320 (frame_read_register): New function.
13321 * frame.h (frame_unwind_register): Declare.
13322 (frame_read_register): Declare.
13323
13324 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13325 and frame_unwind_register instead of read_memory, write_register
13326 and deprecated_write_register_bytes.
13327
5f601589
AC
133282003-02-02 Andrew Cagney <ac131313@redhat.com>
13329
13330 * frame.h: Note that namelen can be negative.
13331 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13332 NAME's length.
13333
13334 * NEWS: Mention that the d10v's `regs' command is deprecated.
13335 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13336 (d10v_print_registers_info): New function.
13337 (show_regs): Call d10v_print_registers_info.
13338 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13339
6a3fe0a4
MK
133402003-02-02 Mark Kettenis <kettenis@gnu.org>
13341
13342 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13343 lost in the previous patch.
13344
075559bc
AC
133452003-02-01 Andrew Cagney <ac131313@redhat.com>
13346
13347 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13348 * stack.c (print_frame_info_base): Output complete FRAME tuple
13349 for synthesized frames.
075559bc 13350
6789195b
AC
133512003-02-02 Andrew Cagney <ac131313@redhat.com>
13352
13353 * mips-nat.c (zerobuf): Delete.
13354 (fetch_inferior_registers): Alloc local zerobuf.
13355 (fetch_core_registers): Alloc local zerobuf.
13356 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13357 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13358 * thread-db.c (thread_db_store_registers): Ditto.
13359 * sh-tdep.c (sh_do_register): Ditto.
13360 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13361 * remote-sim.c (gdbsim_store_register): Ditto.
13362 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13363 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13364 * monitor.c (monitor_supply_register): Ditto.
13365 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13366 * mips-nat.c (fetch_inferior_registers): Ditto.
13367 * m68klinux-nat.c (fetch_register): Ditto.
13368 * lynx-nat.c (fetch_inferior_registers): Ditto.
13369 (fetch_inferior_registers): Ditto.
13370 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13371 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13372 (hpux_thread_store_registers): Ditto.
13373 * hppah-nat.c (fetch_register): Ditto.
13374 * hppab-nat.c (fetch_register): Ditto.
13375 * hppa-tdep.c (pa_register_look_aside): Ditto.
13376 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13377 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13378
e669114a
AC
133792003-02-01 Andrew Cagney <ac131313@redhat.com>
13380
13381 * gdbarch.sh: Explictly specify all method levels. When a
13382 variable with an empty level, provide a non-multi-arch default.
13383 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13384 * gdbarch.h: Re-generate.
13385 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13386 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13387
9a043c1d
AC
133882003-02-01 Andrew Cagney <ac131313@redhat.com>
13389
13390 * defs.h (host_pointer_to_address): Delete declaration.
13391 (address_to_host_pointer): Delete declaration.
13392 * utils.c (host_pointer_to_address): Delete function.
13393 (address_to_host_pointer): Delete function.
13394 * procfs.c (procfs_address_to_host_pointer): New function.
13395 * procfs.c (proc_set_watchpoint): Use.
13396 (procfs_can_use_hw_breakpoint): Update comments.
13397 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13398 (som_solib_add): Use.
13399 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13400 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13401
7ca9f392
AC
134022003-02-01 Andrew Cagney <ac131313@redhat.com>
13403
94bbfd30
AC
13404 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13405 strlen d_name.
13406
7ca9f392
AC
13407 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13408 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13409 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13410 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13411 (define_symbol): Update.
13412 * symfile.c (generic_load): Remove references to nindy.
13413 * symtab.c: Remove references to nindy.
13414
31a85ea2
AC
134152003-02-01 Andrew Cagney <ac131313@redhat.com>
13416
13417 * infcmd.c (print_float_info): Delete code conditional on
13418 FLOAT_INFO.
13419 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13420 * config/m68k/nm-apollo68b.h: Ditto.
13421 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13422 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13423 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13424
f6e85fc8
MK
134252003-02-01 Mark Kettenis <kettenis@gnu.org>
13426
6015b6a0
MK
13427 * config/i386/tm-i386os9k.h: Removed.
13428
f7a30bdf
MK
13429 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13430 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13431 they're identical to i[3456]86-*-sysv* now.
13432 * config/i386/i386v32.mh: Removed.
13433 * config/i386/xm-i386v32.h: Removed.
13434 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13435
28d52111
MK
13436 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13437
4d3f6bce
MK
13438 * config/i386/i386dgux.mh: Removed.
13439 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13440
f6e85fc8
MK
13441 * configure.in: Fix typo.
13442 * configure: Regenerated.
13443
53955967
DC
134442003-01-31 David Carlton <carlton@math.stanford.edu>
13445
13446 * dwarf2read.c (dwarf2_locate_sections): Set
13447 dwarf_ranges_section.
13448
b1364885
AC
134492003-01-31 Andrew Cagney <ac131313@redhat.com>
13450
8dbb1c65
AC
13451 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13452 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13453
8731e58e
AC
13454 * utils.c: Re-indent.
13455
b1364885
AC
13456 * config/djgpp/fnchange.lst: Delete nindy files.
13457 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13458 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13459 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13460 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13461 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13462 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13463 * Makefile.in (init.c): Remove nindy references.
13464 (saber_gdb): Delete rule.
13465 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13466 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13467 and a68v-nat.c.
13468 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13469 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13470 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13471 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13472 nindy-share/stop.h.
13473 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13474 * saber.suppress: Delete file.
13475
086df311
DJ
134762003-01-31 Daniel Jacobowitz <drow@mvista.com>
13477
13478 * dbxread.c (stabs_data): New static variable.
13479 (fill_symbuf): Support an in-memory buffer for stabs data.
13480 (stabs_seek): New function.
13481 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13482 (read_ofile_symtab): Use stabs_seek.
13483 (elfstab_build_psymtabs): Take an asection* instead of
13484 an offset and size. Relocate the stabs data if necessary.
13485 Save the section* for dbx_psymtab_to_symtab.
13486 * dwarf2read.c: Add section variables for each debug section.
13487 (dwarf2_locate_sections): Fill them in.
13488 (dwarf2_read_section): Take an asection* argument.
13489 Relocate the section contents if necessary.
13490 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13491 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13492 it to dwarf2_read_section.
13493 (dwarf2_build_frame_info): Update callers.
13494 * elfread.c (elf_symfile_read): Update call to
13495 elfstab_build_psymtabs.
13496 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13497 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13498 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13499 * symfile.c (symfile_dummy_outputs): New function.
13500 (symfile_relocate_debug_section): New function.
13501 * symfile.h (symfile_relocate_debug_section): Add prototype.
13502
87d1b352
RH
135032003-01-31 Richard Henderson <rth@redhat.com>
13504
13505 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13506 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13507 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13508 * alpha-tdep.c (alpha_register_name): Add "unique".
13509 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13510 (ALPHA_UNIQUE_REGNUM): New.
13511 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13512
c48861fb
AC
135132003-01-31 Andrew Cagney <ac131313@redhat.com>
13514
13515 * README: Remove reference to Ericsson 1800 monitor.
13516 * Makefile.in (remote-es.o): Delete rule.
13517 (ALLDEPFILES): Delete remote-es.c.
13518 * remote-es.c: Delete file.
13519 * config/m68k/es1800.mt: Delete file.
13520 * config/djgpp/fnchange.lst: Update.
13521 * configure.tgt: Delete m68*-ericsson-* target.
13522
d764a824
AF
135232003-01-31 Adam Fedor <fedor@gnu.org>
13524
13525 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13526 Remove duplicate/shadowing variable of same name.
13527
fe36c4f4
JB
135282003-01-30 Jim Blandy <jimb@redhat.com>
13529
13530 * symfile.c (find_separate_debug_file): Assert that the objfile's
13531 directory name we compute ends with a slash, and then assume that
13532 that's so everywhere we use it.
13533
cb741690
DJ
135342003-01-30 Daniel Jacobowitz <drow@mvista.com>
13535
13536 * valops.c (value_assign): Flush frame cache after stores to memory
13537 also.
13538
96ee5227
AC
135392003-01-30 Andrew Cagney <ac131313@redhat.com>
13540
13541 * Makefile.in (mon960-rom.o): Delete rule.
13542 * mon960-rom.c: Delete file.
13543
7f6104a9
AC
135442003-01-30 Andrew Cagney <ac131313@redhat.com>
13545
13546 * d10v-tdep.c: Include "frame-unwind.h".
13547 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13548 list.
13549 (next_addr, uses_frame): Delete.
13550 (struct d10v_unwind_cache): Define.
13551 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13552 Use info instead of next_addr and uses_frame globals.
13553 (d10v_frame_init_saved_regs): Delete function.
13554 (d10v_init_extra_frame_info): Delete function.
13555 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13556 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13557 init_frame_pc or frame_saved_pc.
13558 (d10v_pop_frame): Delete function.
13559 (do_d10v_pop_frame): Delete function.
13560 (d10v_frame_chain): Delete function.
13561 (d10v_frame_chain_valid): Delete function.
13562 (d10v_frame_pc_unwind): New function.
13563 (d10v_frame_id_unwind): New function.
13564 (saved_regs_unwinder): New function.
13565 (d10v_frame_register_unwind): New function.
13566 (d10v_frame_pop): New function.
13567 (d10v_frame_unwind): New variable.
13568 (d10v_frame_p): New function.
13569 (d10v_frame_saved_pc): Delete function.
13570 * Makefile.in (d10v-tdep.o): Update dependencies.
13571
cad2e848
JB
135722003-01-30 J. Brobecker <brobecker@gnat.com>
13573
13574 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13575 causing some regressions due to a change in the default value
13576 for this macro.
13577
af34e669
DJ
135782003-01-29 Richard Henderson <rth@redhat.com>
13579 Elena Zannoni <ezannoni@redhat.com>
13580 Daniel Jacobowitz <drow@mvista.com>
13581
13582 Fix PR gdb/961.
8ffd9b1b 13583 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13584 variables.
13585 (RANGES_SECTION): New.
13586 (dwarf_ranges_buffer): New variable.
13587 (struct comp_unit_head): Add member "die".
13588 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13589 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13590 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13591 (dwarf2_locate_sections): Likewise.
13592 (dwarf2_build_psymtabs): Read .debug_ranges.
13593 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13594 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13595 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13596 Look for DW_AT_ranges and return the bounding box.
13597
baa93fa6
CF
135982003-01-29 Brian Ford <ford@vss.fsi.com>
13599
13600 * win32-nat.c (cygwin_pid): Removed as unused.
13601 (child_attach): Try fall back to Cygwin pid.
13602
c63f977f
JB
136032003-01-29 Jim Blandy <jimb@redhat.com>
13604
13605 * objfiles.h (struct objfile): Doc fix.
13606
d62d1979
AC
136072003-01-29 Andrew Cagney <ac131313@redhat.com>
13608
13609 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13610 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13611 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13612 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13613 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13614 (FRAME_SAVED_PC): Change to a function with predicate.
13615 * gdbarch.h, gdbarch.c: Re-generate.
13616
1ae18a04
AC
136172003-01-28 Andrew Cagney <ac131313@redhat.com>
13618
52287340
AC
13619 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13620
1ae18a04
AC
13621 * complaints.c (complain): Delete function.
13622 * complaints.h (struct deprecated_complaint): Delete definition.
13623 (complain): Delete declaration.
13624
f2c16bd6
KB
136252003-01-28 Kevin Buettner <kevinb@redhat.com>
13626
13627 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13628 dummy frames.
13629
a94dd1fd
AC
136302003-01-27 Andrew Cagney <ac131313@redhat.com>
13631
13632 * sentinel-frame.h, sentinel-frame.c: New files.
13633 * Makefile.in (frame.o): Update dependencies.
13634 (SFILES): Add sentinel-frame.c.
13635 (sentinel_frame_h): Define.
13636 (COMMON_OBS): Add sentinel-frame.o.
13637 (sentinel-frame.o): Specify dependencies.
13638 * frame.c: Include "sentinel-frame.h".
13639 (frame_register_unwind): Rewrite assuming that there is always a a
13640 ->next frame.
13641 (frame_register, generic_unwind_get_saved_register): Ditto.
13642 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13643 (create_sentinel_frame, unwind_to_current_frame): New functions.
13644 (get_current_frame): Rewrite using create_sentinel_frame and
13645 unwind_to_current_frame. When possible, always create a frame.
13646 (create_new_frame): Set next to the sentinel frame.
13647 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13648 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13649 ID cache when necessary.
13650 (frame_saved_regs_id_unwind): Use frame_relative_level.
13651 (deprecated_generic_get_saved_register): Use frame_relative_level,
13652 get_frame_saved_regs, get_frame_pc, get_frame_base and
13653 get_next_frame.
13654 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13655 frame_register.
13656
5378adc4
DJ
136572003-01-27 Daniel Jacobowitz <drow@mvista.com>
13658
13659 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13660
51ee2ddc
DJ
136612003-01-27 Daniel Jacobowitz <drow@mvista.com>
13662
13663 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13664 (maintenance_set_profile_cmd): Use error () instead of warning ().
13665
d9feb4e7
DJ
136662003-01-27 Daniel Jacobowitz <drow@mvista.com>
13667
13668 * configure.in: Check that -pg works if using --enable-profiling.
13669 Check for monstartup and _mcleanup regardless of --enable-profiling.
13670 * maint.c: Check for monstartup and _mcleanup before using them.
13671 * config.in: Regenerated.
13672 * configure: Regenerated.
13673
2d188dd3
NC
136742003-01-24 Nick Clifton <nickc@redhat.com>
13675
13676 * Add sh2e support:
13677
13678 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13679
13680 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13681 (sh2e_show_regs): New.
13682 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13683 * config/sh/tm-sh.h: Added sh2e to comments.
13684
cb3c37b2
JB
136852003-01-23 Jim Blandy <jimb@redhat.com>
13686
13687 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13688 symbols found)" message here; we haven't checked for a separate
13689 debug info file yet, so we don't know yet.
13690 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13691 we've looked everywhere. Also, there's no need to print a special
13692 message when we're loading the separate debug info file: the one
13693 symbol_file_add prints is fine.
13694
5b5d99cf
JB
136952003-01-23 Alexander Larsson <alexl@redhat.com>
13696 Jim Blandy <jimb@redhat.com>
13697
13698 Add support for executables whose debug info has been separated
13699 out into a separate file, leaving only a link behind.
13700 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13701 and separate_debug_objfile_backlink.
13702 (put_objfile_before): New declaration.
13703 * symfile.c: #include "filenames.h".
13704 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13705 debug info in a separate file, read that, too. Save the addrs
13706 argument, so we can use it again to read the separated debug info;
13707 syms_from_objfile modifies the table we pass it.
13708 (reread_symbols): After re-reading an objfile, call
13709 reread_separate_symbols to refresh its separate debug info
13710 objfile, if it has one.
13711 (reread_separate_symbols, find_separate_debug_file,
13712 get_debug_link_info, separate_debug_file_exists): New functions.
13713 (debug_file_directory): New global var.
13714 (_initialize_symfile): Initialize debug_file_directory, and
13715 provide the new `set debug-file-directory' command to let the user
13716 change it.
13717 * objfiles.c (free_objfile): If this objfile has its debug info in
13718 a separate objfile, free that one too. If this is itself a
13719 separate debug info objfile, clear our parent's backlink.
13720 (put_objfile_before): New function.
13721 * utils.c (gnu_debuglink_crc32): New function.
13722 * defs.h (gnu_debuglink_crc32): New declaration.
13723 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13724 * configure.in: Handle --with-separate-debug-dir config option.
13725 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13726 * acconfig.h (DEBUGDIR): New macro.
13727 * configure, aclocal.m4, config.in: Regenerated.
13728
7e8580c1
JB
137292003-01-22 Jim Blandy <jimb@redhat.com>
13730
7904e09f
JB
13731 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13732 like the old symbol_file_add, but taking new arguments: you can
13733 now pass in either a `struct section_addr_info' list to say where
13734 each section is loaded, or a `struct section_offsets' table. Pass
13735 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13736 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13737 with the appropriate quiescent values for the new arguments.
13738
7e8580c1
JB
13739 * symfile.c: #include "gdb_assert.h".
13740 (syms_from_objfile): Add the ability to pass in a section offset
13741 table directly, as an alternative to the section_addr_info table.
13742 Document arguments better.
13743 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13744 * symfile.h (syms_from_objfile): Update declaration.
13745 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13746 syms_from_objfile.
13747 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13748
d28f9cdf
DJ
137492003-01-22 Daniel Jacobowitz <drow@mvista.com>
13750
13751 Original patch by Tom Tromey <tromey@cygnus.com> and
13752 Jason Molenda <jmolenda@apple.com>.
13753 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13754 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13755 * NEWS: Mention profiling.
13756 * configure.in (--enable-gdbtk): Fix typo.
13757 (--enable-profiling): New. Set PROFILE_CFLAGS.
13758 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13759 Fill in function.
13760 (profiling_state): New variable.
13761 (mcleanup_wrapper): New function.
13762 (_initialize_maint): Remove NOTYET, fix call to
13763 add_setshow_boolean_cmd for "maint set profile".
13764 * configure: Regenerated.
13765
df21e465
MH
137662003-01-21 Martin M. Hunt <hunt@redhat.com>
13767
13768 * Makefile.in (install-gdbtk): Install PNG images too.
13769
73c1f219
AC
137702003-01-21 Andrew Cagney <ac131313@redhat.com>
13771
13772 * exec.c (text_start): Delete global variable.
13773 (exec_file_attach): Make text_start local to the function.
13774 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13775 * valops.c (hand_function_call): Delete code that handles
13776 BEFORE_TEXT_END and AFTER_TEXT_END.
13777 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13778 of CALL_DUMMY_LOCATION.
13779 * gdbarch.c: Regenerate.
13780 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13781 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13782 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13783 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13784 (text_end): Delete extern declaration.
13785
eb4f72c5
AC
137862003-01-21 Andrew Cagney <ac131313@redhat.com>
13787
13788 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13789 * blockframe.c (backtrace_below_main): Move to "frame.c".
13790 (frame_chain_valid): Delete check for backtrace_below_main.
13791 (_initialize_blockframe): Delete initialization, move ``set
13792 backtrace-below-main'' command to "frame.c".
13793 (do_flush_frames_sfunc): Delete function.
13794 * frame.c: Include "command.h" and "gdbcmd.h".
13795 (frame_type_from_pc): New function.
13796 (create_new_frame): Use frame_type_from_pc.
13797 (legacy_get_prev_frame): New function.
13798 (get_prev_frame): Rewrite. When an old style frame, call
13799 legacy_get_prev_frame. Otherwize, unwind the PC first.
13800 (_initialize_frame): Add ``set backtrace-below-main'' command.
13801 * Makefile.in (frame.o): Update dependencies.
13802
778ce8cc
AC
138032003-01-19 Andrew Cagney <ac131313@redhat.com>
13804
13805 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13806 DEPRECATED_REGISTERS_INFO.
13807
01c193c8
AC
138082003-01-19 Andrew Cagney <ac131313@redhat.com>
13809
13810 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13811 Maintainers'. Update `Various Maintainers'.
13812
dedc2a2b
AC
138132003-01-19 Andrew Cagney <ac131313@redhat.com>
13814
13815 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13816 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13817 Suppress actual parameters when `-'.
13818 * gdbarch.h, gdbarch.c: Regenerate.
13819
b7261c70
AC
138202003-01-19 Andrew Cagney <ac131313@redhat.com>
13821
13822 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13823 code handling dummy frames.
13824
dbe9fe58
AC
138252003-01-19 Andrew Cagney <ac131313@redhat.com>
13826
13827 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13828 (struct frame_unwind): Add field pop.
13829 * frame.h (frame_pop): Declare.
13830 * frame.c (frame_saved_regs_pop): New function.
13831 (trad_frame_unwinder): Add frame_saved_regs_pop.
13832 (frame_pop): New function.
13833 * dummy-frame.c (dummy_frame_pop): New function.
13834 (discard_innermost_dummy): New function.
13835 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13836 (dummy_frame_unwind): Add dummy_frame_pop.
13837 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13838 * valops.c (hand_function_call): Ditto.
13839 * stack.c (return_command): Ditto.
13840
570b8f7c
AC
138412003-01-18 Andrew Cagney <ac131313@redhat.com>
13842
13843 * cris-tdep.c: Fix function declaration indentation.
13844 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13845 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13846 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13847 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13848 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13849 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13850
138512003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13852
13853 * README (Unpacking and Installation -- quick overview):
13854 Warn against ".../gdb-5.3/gdb/configure".
13855
494cca16
AC
138562003-01-18 Andrew Cagney <ac131313@redhat.com>
13857
13858 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13859 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13860 (struct frame_unwind): Declare opaque.
13861 (dummy_frame_p): Declare function.
13862 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13863 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13864 * dummy-frame.c: Include "frame-unwind.h".
13865 (dummy_frame_p): New function.
13866 (dummy_frame_unwind): New variable.
13867 * frame.c: Include "frame-unwind.h".
13868 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13869 to use the new unwind field.
13870 (set_unwind_by_pc): Delete function.
13871 (create_new_frame, get_prev_frame): Set unwind field using
13872 frame_unwind_find_by_pc.
13873 (trad_frame_unwind, trad_frame_unwinder): New variables.
13874 * frame.h (trad_frame_unwind): Declare variable.
13875 (frame_id_unwind_ftype): Delete declaration.
13876 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13877 (struct frame_unwind): Declare opaque.
13878 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13879 register_unwind with a single unwind pointer.
13880 * frame-unwind.h, frame-unwind.c: New files.
13881 * Makefile.in (SFILES): Add frame-unwind.c.
13882 (frame_unwind_h): Define.
13883 (COMMON_OBS): Add frame-unwind.o.
13884 (frame-unwind.o): Specify dependencies.
13885 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13886
4efb68b1
AC
138872003-01-18 Andrew Cagney <ac131313@redhat.com>
13888
13889 * ada-valprint.c: Eliminate PTR.
13890 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13891 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13892 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13893 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13894 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13895 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13896 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13897
a84d24ee
AC
138982003-01-17 Andrew Cagney <ac131313@redhat.com>
13899
762f08a3
AC
13900 * main.c (captured_main): Don't use PTR.
13901 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13902 * gdbtypes.c (lookup_primitive_typename): Ditto.
13903 (lookup_struct_elt_type): Ditto.
13904 * f-valprint.c (info_common_command): Ditto.
13905 (list_all_visible_commons): Ditto.
13906 * jv-typeprint.c (java_type_print_base): Ditto.
13907
a84d24ee
AC
13908 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13909 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13910 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13911 i386-interix-nat.c and i386-interix-tdep.c. Rename
13912 m68klinux-nat.c and m68klinux-tdep.c. Rename
13913 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13914 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13915 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13916 * main.c (captured_main): Use xfree, not free.
13917
c170fb60
AC
139182003-01-16 Andrew Cagney <ac131313@redhat.com>
13919
13920 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13921 ID back using a parameter.
13922 * frame.c (frame_id_unwind): Update call.
13923 (frame_saved_regs_id_unwind): Update.
13924 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13925 * dummy-frame.h (struct frame_id): Add opaque declaration.
13926 (dummy_frame_id_unwind): Update declaration.
13927
867f3898
AC
139282003-01-15 Andrew Cagney <ac131313@redhat.com>
13929
13930 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13931
40622be8 139322003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13933
40622be8 13934 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13935
ae66c1fc
EZ
139362003-01-14 Elena Zannoni <ezannoni@redhat.com>
13937
997b089a 13938 Fix PR gdb/898
ae66c1fc
EZ
13939 * breakpoint.c (until_break_command): Add new argument. Use it to
13940 decide whether to stop only at the current frame or not.
13941 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13942 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13943 call.
13944 (advance_command): New function.
13945 (_initialize_infcmd): Update help string for 'until' command.
13946 Add new 'advance' command.
13947
a04257e6
DC
139482003-01-14 David Carlton <carlton@math.stanford.edu>
13949
13950 * linespec.c (decode_line_1): Normalize comments.
13951 (set_flags): Ditto.
13952 (locate_first_half): Ditto.
13953 (decode_compound): Ditto.
13954 (symtab_from_filename): Ditto.
13955 (decode_all_digits): Ditto.
13956 (decode_dollar): Ditto.
13957 (find_methods): Ditto.
13958 (find_toplevel_char): Ditto.
13959
1bac305b
AC
139602003-01-13 Andrew Cagney <ac131313@redhat.com>
13961
13962 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13963 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13964 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13965 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13966 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13967 * language.c, language.h, m32r-tdep.c: Update copyright.
13968 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13969 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13970 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13971 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13972 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13973 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13974
25caa7a8
EZ
139752003-01-13 Elena Zannoni <ezannoni@redhat.com>
13976
13977 * stabsread.h (process_later, resolve_cfront_continuation):
13978 Obsolete.
13979 Update copyright years.
13980 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13981 Update copyright year.
13982 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13983 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13984 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13985 Update copyright year.
13986 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13987 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13988 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13989 (parse_partial_symbols): Obsolete cfront support.
13990 * stabsread.c
13991 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13992 macros.
13993 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13994 read_cfront_baseclasses, read_cfront_member_functions,
13995 resolve_cfront_continuation,read_cfront_static_fields,
13996 copy_cfront_struct_fields): Obsolete functions.
13997 (define_symbol, read_one_struct_field): Obsolete cfront support.
13998 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13999 Update Copyright year.
14000
7789c6f5
EZ
140012003-01-13 Elena Zannoni <ezannoni@redhat.com>
14002
14003 * stack.c (print_frame_info, print_stack_frame_base_stub,
14004 print_stack_frame_base, show_and_print_stack_frame_stub,
14005 show_and_print_stack_frame, print_only_stack_frame_stub,
14006 print_only_stack_frame): Delete functions.
14007 (print_stack_frame_stub): Call print_frame_info instead of
14008 print_frame_info_base.
14009 (print_frame_info_base): Rename to print_frame_info.
14010 (backtrace_command_1): Call print_frame_info, instead of
14011 print_frame_info_base.
14012 (current_frame_command): Call print_stack_frame, instead of
14013 print_only_stack_frame.
14014 (frame_command): Call print_stack_frame, instead of
14015 show_and_print_stack_frame.
14016 (up_command): Ditto.
14017 (down_command): Ditto.
14018 * frame.h (print_only_stack_frame): Delete prototype.
14019 * infrun.c (normal_stop): Call print_stack_frame, instead of
14020 show_and_print_stack_frame.
14021 * thread.c (info_threads_command): Call print_stack_frame, instead
14022 of print_only_stack_frame.
14023
3f5a3016
AC
140242003-01-13 Andrew Cagney <ac131313@redhat.com>
14025
d99ba314
AC
14026 * README (Graphical interface to GDB): Update URL. Point at
14027 gdb/links/.
14028
3f5a3016
AC
14029 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14030 version match.
14031
083ae935
DJ
140322003-01-13 Daniel Jacobowitz <drow@mvista.com>
14033
14034 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14035 lines.
14036
5365276c
DJ
140372003-01-13 Daniel Jacobowitz <drow@mvista.com>
14038
14039 * thread-db.c (attach_thread): Prototype.
14040 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14041 thread information (ti), and valid flags (th_valid, ti_valid).
14042 (attach_thread): Move target_pid_to_str call to after the thread
14043 is added to GDB's list. Initialize the cache.
14044 (thread_get_info_callback, thread_db_map_id2thr)
14045 (thread_db_get_info): New functions.
14046 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14047 (thread_db_store_registers, thread_db_thread_alive)
14048 (thread_db_get_thread_local_address): Use them.
14049 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14050 of calling error() for threads in unknown state.
14051
14052 (clear_lwpid_callback): New function.
14053 (thread_db_resume): Use it to clear the cache.
14054
9fc30b6b
DJ
140552003-01-13 Daniel Jacobowitz <drow@mvista.com>
14056
14057 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14058 (resume_callback): Remove dead code.
14059
8f871025
AC
140602003-01-13 Andrew Cagney <ac131313@redhat.com>
14061
14062 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14063 predicate.
14064 * gdbarch.h, gdbarch.c: Regenerate.
14065 * stack.c (frame_info): Only initialize the saved registers when
14066 FRAME_INIT_SAVED_REGS_P.
14067 * frame.c (frame_saved_regs_register_unwind): Assert
14068 FRAME_INIT_SAVED_REGS_P.
14069 (deprecated_generic_get_saved_register): Ditto.
14070
3f565f1e
DJ
140712003-01-13 Daniel Jacobowitz <drow@mvista.com>
14072
14073 * source.c (openp): Squelch warning about "filename".
14074
072b1022
DJ
140752003-01-13 Daniel Jacobowitz <drow@mvista.com>
14076
14077 * source.c (openp): If the file does not exist don't necessarily
14078 search the path.
14079
973ccf8b
DJ
140802003-01-13 Daniel Jacobowitz <drow@mvista.com>
14081
14082 Fix PR gdb/872.
14083 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14084 (integer_types_same_name_p): New function.
14085 (rank_one_type): Use it.
14086 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14087
030292b7
DJ
140882003-01-13 Daniel Jacobowitz <drow@mvista.com>
14089
14090 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14091 variables.
14092 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14093 * configure.in: Add --with-sysroot.
14094 * configure: Regenerated.
14095 * main.c (gdb_sysroot): New variable.
14096 (captured_main): Initialize gdb_sysroot.
14097 * defs.h (gdb_sysroot): New extern declaration.
14098 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14099
afb5d334
MC
141002003-01-12 Michael Chastain <mec@shout.net>
14101
14102 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14103
751ceeb4
MC
141042003-01-12 Michael Chastain <mec@shout.net>
14105
14106 * top.c (print_gdb_version): Bump copyright year to 2003.
14107
94cd26f8
DC
141082003-01-12 David Carlton <carlton@bactrian.org>
14109
14110 * linespec.c (symtab_from_filename): Rename variable 's' to
14111 'file_symtab'.
14112
1ce79225
AC
141132003-01-12 Andrew Cagney <ac131313@redhat.com>
14114
14115 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14116 dummy frame.
14117 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14118
fa1fd571
AC
141192003-01-12 Andrew Cagney <ac131313@redhat.com>
14120
14121 * d10v-tdep.c: Include "gdb_assert.h".
14122 (d10v_store_return_value): Rewrite to match current interface.
14123 (d10v_extract_struct_value_address): Ditto.
14124 (d10v_extract_return_value): Ditto.
14125 (d10v_gdbarch_init): Set store_restore_value,
14126 extract_struct_value_address and extract_return_value.
14127
68b8d23e
JB
141282003-01-12 J. Brobecker <brobecker@gnat.com>
14129
14130 * hpread.c (set_namestring): New procedure replacing the
14131 SET_NAMESTRING macro.
14132 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14133 by calls to set_namestring.
14134
141352003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14136
14137 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14138 a compilation warning.
14139 (hpread_process_one_debug_symbol): Likewise.
14140
88d262ca
DC
141412003-01-10 David Carlton <carlton@math.stanford.edu>
14142
14143 * linespec.c (decode_line_1): Rename variable 's' to
14144 'file_symtab'.
14145 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14146 (decode_dollar): Ditto.
14147 (decode_variable): Ditto.
14148 (symbol_found): Ditto.
14149
86669319
MC
141502003-01-09 Michael Chastain <mec@shout.net>
14151
14152 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14153
616a9dc4
CV
141542003-01-07 Corinna Vinschen <vinschen@redhat.com>
14155
14156 * win32-nat.c (set_process_privilege): New function.
14157 (child_attach): Call set_process_privilege() to enable the
14158 SE_DEBUG_NAME user privilege if available in process token.
14159
3269bcfa
JB
141602003-01-10 J. Brobecker <brobecker@gnat.com>
14161
14162 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14163 compilation error in the previous revision.
14164
2b0ee454
DC
141652003-01-09 David Carlton <carlton@math.stanford.edu>
14166
14167 * linespec.c: Update copyright.
14168
b3ba1b44
DJ
141692003-01-09 Daniel Jacobowitz <drow@mvista.com>
14170
14171 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14172 than inferior_ptid.
14173 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14174
4ef3f3be
AC
141752003-01-09 Andrew Cagney <ac131313@redhat.com>
14176
479ab5a0
AC
14177 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14178 Update comments.
14179 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14180 (frame_saved_regs_zalloc): Update.
14181 (frame_saved_regs_register_unwind): Update.
14182 (create_new_frame): Update.
14183 (get_prev_frame): Update.
14184 (frame_extra_info_zalloc): Update.
14185 (deprecated_get_frame_saved_regs): Update.
14186 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14187 * cris-tdep.c: Update comment.
14188
bde58177
AC
14189 * somsolib.h: Fix function indentation.
14190 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14191 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14192 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14193 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14194 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14195
4ef3f3be
AC
14196 * infrun.c (follow_fork): Use ISO C definition.
14197 * expprint.c (print_subexp): Use xfree instead of free.
14198 * charset.c: Include "gdb_string.h" instead of <string.h>.
14199 (register_iconv_charsets): Use ISO C definition.
14200 (host_charset, target_charset): Ditto.
14201 * Makefile.in (charset.o): Update dependencies.
14202 (mi-cmd-env.o): Update dependencies.
14203
1c615f7a
AC
142042003-01-08 Andrew Cagney <cagney@redhat.com>
14205
14206 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14207 get_frame_base.
14208
c9a1dc08
AC
142092003-01-08 Andrew Cagney <ac131313@redhat.com>
14210
14211 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14212 build directories. Save edited gdb output in Mbuild.log. If a
14213 build fails, remove any final GDB executable.
14214
dbad9d94
AC
142152003-01-08 Andrew Cagney <ac131313@redhat.com>
14216
14217 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14218 replacing hex constants with function names and stripping leading
14219 file name directory prefixes.
14220
8d357cca
AC
142212003-01-08 Andrew Cagney <cagney@redhat.com>
14222
14223 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14224 get_frame_base.
14225
bca02a8a
DC
142262003-01-08 David Carlton <carlton@math.stanford.edu>
14227
14228 * linespec.c (decode_line_1): Move code into decode_variable.
14229 (decode_variable): New function.
14230
7f8ab3a0
AC
142312003-01-08 Andrew Cagney <ac131313@redhat.com>
14232
14233 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14234
7b5849cc
AC
142352003-01-08 Andrew Cagney <cagney@redhat.com>
14236
14237 * cris-tdep.c (cris_frame_init_saved_regs): Use
14238 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14239 saved_regs buffer.
14240 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14241 (sh64_nofp_frame_init_saved_regs): Ditto.
14242 (sh_fp_frame_init_saved_regs): Ditto.
14243 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14244 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14245 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14246 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14247
72a5efb3
DJ
142482003-01-08 Daniel Jacobowitz <drow@mvista.com>
14249
14250 * minsyms.c (lookup_minimal_symbol): Update comment.
14251 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14252 (lookup_minimal_symbol_solib_trampoline): Likewise.
14253
11c02a10
AC
142542003-01-08 Andrew Cagney <cagney@redhat.com>
14255
aab3ea25
AC
14256 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14257 frame_relative_level.
14258
da50a4b7
AC
14259 * alpha-tdep.c: Use get_frame_extra_info.
14260 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14261 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14262 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14263 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14264
11c02a10
AC
14265 * alpha-tdep.c: Use get_next_frame.
14266 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14267 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14268 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14269 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14270 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14271 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14272 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14273
1e2330ba
AC
142742003-01-07 Andrew Cagney <cagney@redhat.com>
14275
14276 * alpha-tdep.c: Use get_frame_base.
14277 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14278 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14279 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14280 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14281 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14282 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14283 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14284 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14285
2d75187b
AC
142862003-01-07 Andrew Cagney <cagney@redhat.com>
14287
14288 * frame.c (deprecated_get_frame_context): New function.
14289 (deprecated_set_frame_context): New function.
14290 * frame.h (deprecated_get_frame_context): Declare.
14291 (deprecated_set_frame_context): Declare.
14292 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14293 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14294
483d36b2
AC
142952003-01-07 Andrew Cagney <cagney@redhat.com>
14296
14297 * frame.c (deprecated_set_frame_next_hack): New function.
14298 (deprecated_set_frame_prev_hack): New function.
14299 * frame.h (deprecated_set_frame_next_hack): Declare.
14300 (deprecated_set_frame_prev_hack): Declare.
14301 * mcore-tdep.c (analyze_dummy_frame): Use
14302 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14303 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14304
14e91ac5
DC
143052003-01-07 David Carlton <carlton@math.stanford.edu>
14306
14307 * linespec.c (decode_line_1): Move code into decode_dollar.
14308 (decode_dollar): New function.
14309
b0c6b05c
AC
143102003-01-07 Andrew Cagney <cagney@redhat.com>
14311
14312 * arm-tdep.c (arm_init_extra_frame_info): Use
14313 deprecated_update_frame_base_hack.
14314 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14315 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14316 (fix_frame_pointer): Ditto.
14317 (mn10300_analyze_prologue): Ditto.
14318
a00a19e9
AC
143192003-01-07 Andrew Cagney <cagney@redhat.com>
14320
14321 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14322 extra_info using frame_extra_info_zalloc.
14323 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14324 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14325 (sh64_init_extra_frame_info): Ditto.
14326 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14327 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14328 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14329 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14330 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14331 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14332 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14333 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14334 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14335 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14336 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14337 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14338
14339 * mn10300-tdep.c (analyze_dummy_frame): Use
14340 deprecated_set_frame_extra_info_hack.
14341 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14342
1fb4c65b
JB
143432003-01-07 J. Brobecker <brobecker@gnat.com>
14344
14345 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14346 class is not scText. These do not define "real" procedures.
14347 (parse_partial_symbols): Likewise.
14348
9fe7d6bf
MS
143492003-01-06 Michael Snyder <msnyder@redhat.com>
14350
14351 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14352
f6c609c4
AC
143532003-01-06 Andrew Cagney <ac131313@redhat.com>
14354
14355 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14356 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14357 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14358 deprecated_frame_xmalloc_with_cleanup.
14359 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14360 deprecated_frame_xmalloc.
14361 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14362 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14363
d995ff4b
AC
143642003-01-06 Andrew Cagney <cagney@redhat.com>
14365
84dc46cb
AC
14366 * x86-64-linux-tdep.c: Include "osabi.h".
14367 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14368
d995ff4b
AC
14369 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14370
66140c26
AC
143712003-01-06 Andrew Cagney <cagney@redhat.com>
14372
14373 * MAINTAINERS (Target Instruction Set Architectures): Update
14374 arm-elf. Can be built with -Werror, has been multiarched.
14375
14376 * value.h (unpack_long): Make buffer parameter constant.
14377 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14378 * scm-lang.h (scm_parse): Ditto.
14379 * defs.h (extract_typed_address, extract_address): Ditto.
14380 (extract_long_unsigned_integer): Ditto.
14381 * inferior.h (unsigned_pointer_to_address): Ditto.
14382 (signed_pointer_to_address): Ditto.
14383 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14384 * gdbarch.h, gdbarch.c: Regenerate.
14385 * findvar.c (extract_long_unsigned_integer): Update.
14386 (extract_address): Update.
14387 (extract_typed_address): Update.
14388 (unsigned_pointer_to_address): Update.
14389 * values.c (unpack_long): Update.
14390 (unpack_double): Update.
14391 (unpack_pointer): Update.
14392 (unpack_field_as_long): Update.
14393 * d10v-tdep.c (d10v_pointer_to_address): Update.
14394 * avr-tdep.c (avr_pointer_to_address): Update.
14395 * scm-lang.c (scm_unpack): Update.
14396 * findvar.c (signed_pointer_to_address): Update.
14397
b089b3da
ML
143982003-01-06 Michal Ludvig <mludvig@suse.cz>
14399
8ffd9b1b 14400 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14401 since it is in i386-tdep.c.
14402
aff87235
JB
144032003-01-06 J. Brobecker <brobecker@gnat.com>
14404
14405 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14406 failure introduced in the previous change.
14407
34f5e845
MC
144082003-01-05 Michael Chastain <mec@shout.net>
14409
14410 * README: Remove references to deleted remote-*.c files:
14411 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14412 remote-nrom.c, remote-os9k.c, remote-udi.c.
14413
28bcfd30
MK
144142003-01-05 Mark Kettenis <kettenis@gnu.org>
14415
14416 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14417 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14418 i386_get_longjmp_target.
14419
15a5b3ee
AC
144202003-01-05 Andrew Cagney <ac131313@redhat.com>
14421
14422 * arm-tdep.c (prologue_cache): Change to a pointer.
14423 (_initialize_arm_tdep): Allocate prologue_cache.
14424 (check_prologue_cache): Update.
14425 (save_prologue_cache): Update.
14426 (arm_gdbarch_init): Update.
14427
c263362b
DJ
144282003-01-04 Daniel Jacobowitz <drow@mvista.com>
14429
14430 * stabsread.c (update_method_name_from_physname): Call complaint()
14431 instead of error.
14432
51603483
DJ
144332003-01-04 Daniel Jacobowitz <drow@mvista.com>
14434
14435 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14436 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14437 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14438
14439 * blockframe.c: Include "gdbcmd.h" and "command.h".
14440 (backtrace_below_main): New variable.
14441 (file_frame_chain_valid, func_frame_chain_valid)
14442 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14443 (generic_func_frame_chain_valid): Remove functions.
14444 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14445 (_initialize_blockframe): New function.
14446 * Makefile.in (blockframe.o): Update dependencies.
14447 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14448 comment. Call frame_chain_valid ().
14449 * frame.h: Remove old prototypes. Add prototype for
14450 frame_chain_valid and update comments to match.
14451 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14452 Remove old comment.
14453 * gdbarch.h: Regenerated.
14454 * gdbarch.c: Regenerated.
14455
14456 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14457 set_gdbarch_frame_chain_valid.
14458 * avr-tdep.c (avr_gdbarch_init): Likewise.
14459 * cris-tdep.c (cris_gdbarch_init): Likewise.
14460 * frv-tdep.c (frv_gdbarch_init): Likewise.
14461 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14462 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14463 (i386_nw_init_abi): Likewise.
14464 (i386_gdbarch_init): Likewise.
14465 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14467 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14468 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14469 * mips-tdep.c (mips_gdbarch_init): Likewise.
14470 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14471 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14472 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14473 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14474 * s390-tdep.c (s390_gdbarch_init): Likewise.
14475 * sh-tdep.c (sh_gdbarch_init): Likewise.
14476 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14477 * v850-tdep.c (v850_gdbarch_init): Likewise.
14478 * vax-tdep.c (vax_gdbarch_init): Likewise.
14479 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14480
14481 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14482 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14483 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14484 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14485 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14486 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14487 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14488 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14489
b00a8037
DJ
144902002-01-04 Daniel Jacobowitz <drow@mvista.com>
14491
14492 * Makefile.in (acconfig_h): Remove incorrect macro.
14493 (config_h): Define.
14494 (osabi.o): Update dependencies.
14495 * configure.tgt: Set gdb_osabi based on target triplet.
14496 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14497 * configure: Regenerated.
14498 * config.in: Regenerated.
14499 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14500 (GDB_OSABI_DEFAULT): Define if not already defined.
14501 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14502 (set_osabi_string): New variables.
14503 (gdbarch_register_osabi): Add new OS ABI to
14504 gdb_osabi_available_names.
14505 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14506 (set_osabi, show_osabi): New functions.
14507 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14508
4be87837
DJ
145092003-01-04 Daniel Jacobowitz <drow@mvista.com>
14510
14511 * arch-utils.c (gdbarch_info_init): Set osabi to
14512 GDB_OSABI_UNINITIALIZED.
14513 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14514 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14515 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14516 * gdbarch.c: Regenerated.
14517 * gdbarch.h: Regenerated.
14518 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14519 there's no BFD.
14520 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14521 * osabi.h (enum gdb_osabi): Move to defs.h.
14522 (gdbarch_init_osabi): Update prototype.
14523 * defs.h (enum gdb_osabi): Moved here.
14524 * Makefile.in: Update dependencies.
14525
14526 * alpha-tdep.h: Don't include "osabi.h".
14527 (struct gdbarch_tdep): Remove osabi member.
14528 * alpha-tdep.c: Include "osabi.h".
14529 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14530 iterate over arches. Update call to gdbarch_init_osabi.
14531 (alpha_dump_tdep): Don't dump osabi.
14532 * alpha-linux-tdep.c: Include "osabi.h".
14533 * alpha-osf1-tdep.c: Include "osabi.h".
14534 * alphafbsd-tdep.c: Include "osabi.h".
14535 * alphanbsd-tdep.c: Include "osabi.h".
14536
14537 * arm-tdep.h: Don't include "osabi.h".
14538 (struct gdbarch_tdep): Remove osabi member.
14539 * arm-tdep.c: Include "osabi.h".
14540 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14541 iterate over arches. Update call to gdbarch_init_osabi.
14542 (arm_dump_tdep): Don't dump osabi.
14543 * arm-linux-tdep.c: Include "osabi.h".
14544 * armnbsd-tdep.c: Include "osabi.h".
14545
14546 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14547 Update call to gdbarch_init_osabi.
14548
14549 * i386-tdep.h: Don't include "osabi.h".
14550 (struct gdbarch_tdep): Remove osabi member.
14551 * i386-tdep.c: Include "osabi.h".
14552 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14553 iterate over arches. Update call to gdbarch_init_osabi.
14554 (i386_dump_tdep): Don't dump osabi.
14555 * i386-linux-tdep.c: Include "osabi.h".
14556 * i386-sol2-tdep.c: Include "osabi.h".
14557 * i386bsd-tdep.c: Include "osabi.h".
14558 * i386gnu-tdep.c: Include "osabi.h".
14559 * i386ly-tdep.c: Include "osabi.h".
14560 * i386nbsd-tdep.c: Include "osabi.h".
14561 * i386obsd-tdep.c: Include "osabi.h".
14562
14563 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14564 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14565 check osabi when iterating over arches. Update call to
14566 gdbarch_init_osabi.
14567 (mips_dump_tdep): Don't dump osabi.
14568
14569 * ns32k-tdep.h: Don't include "osabi.h".
14570 (struct gdbarch_tdep): Remove.
14571 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14572 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14573 allocate tdep. Update call to gdbarch_init_osabi.
14574 (ns32k_dump_tdep): Remove.
14575 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14576 * ns32knbsd-tdep.c: Include "osabi.h".
14577
14578 * ppc-tdep.h: Don't include "osabi.h".
14579 (struct gdbarch_tdep): Remove osabi member.
14580 * rs6000-tdep.c: Include "osabi.h".
14581 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14582 osabi when iterating over arches. Update call to
14583 gdbarch_init_osabi.
14584 (rs6000_dump_tdep): Don't dump osabi.
14585 * ppc-linux-tdep.c: Include "osabi.h".
14586 * ppcnbsd-tdep.c: Include "osabi.h".
14587
14588 * sh-tdep.h: Don't include "osabi.h".
14589 (struct gdbarch_tdep): Remove osabi member.
14590 * sh-tdep.c: Include "osabi.h".
14591 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14592 iterate over arches. Update call to gdbarch_init_osabi.
14593 (sh_dump_tdep): Don't dump osabi.
14594 * shnbsd-tdep.c: Include "osabi.h".
14595
14596 * sparc-tdep.c: Include "osabi.h".
14597 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14598 iterate over arches. Update call to gdbarch_init_osabi.
14599 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14600 tdep structure.
14601
14602 * vax-tdep.h: Don't include "osabi.h".
14603 (struct gdbarch_tdep): Remove.
14604 * vax-tdep.c: Include "osabi.h".
14605 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14606 iterate over arches. Don't allocate tdep. Update call
14607 to gdbarch_init_osabi.
14608 (vax_dump_tdep): Remove.
14609 (_initialize_vax_tdep): Update call to gdbarch_register.
14610
a881cf8e
DJ
146112003-01-04 Daniel Jacobowitz <drow@mvista.com>
14612
14613 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14614 entirely.
14615 (breakpoint_re_set_one): Don't fetch the value for a disabled
14616 watchpoint.
14617
1e698235
DJ
146182003-01-04 Daniel Jacobowitz <drow@mvista.com>
14619
14620 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14621 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14622 (COERCE_FLOAT_TO_DOUBLE): Remove.
14623 * gdbarch.c: Regenerate.
14624 * gdbarch.h: Regenerate.
14625 * Makefile.in: Remove value_h from gdbarch_h.
14626 * valops.c (coerce_float_to_double): New variable.
14627 (default_coerce_float_to_double): Remove.
14628 (standard_coerce_float_to_double): Remove.
14629 (value_arg_coerce): Use coerce_float_to_double.
14630 (_initialize_valops): Add "set coerce-float-to-double".
14631 * value.h (default_coerce_float_to_double): Remove prototype.
14632 (standard_coerce_float_to_double): Remove prototype.
14633
14634 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14635 prototyped.
14636 * mdebugread.c (parse_symbol): Likewise.
14637 * stabsread.c (define_symbol): Mark all functions as prototyped.
14638
14639 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14640 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14641 set_gdbarch_coerce_float_to_double.
14642 * arm-tdep.c (arm_gdbarch_init): Likewise.
14643 * frv-tdep.c (frv_gdbarch_init): Likewise.
14644 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14645 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14646 * mips-tdep.c (mips_gdbarch_init): Likewise.
14647 (mips_coerce_float_to_double): Remove.
14648 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14649 (rs6000_coerce_float_to_double): Remove.
14650 * s390-tdep.c (s390_gdbarch_init): Likewise.
14651 * sh-tdep.c (sh_gdbarch_init): Likewise.
14652 (sh_coerce_float_to_double): Remove.
14653 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14654 (sparc_coerce_float_to_double): Remove.
14655 * v850-tdep.c (v850_gdbarch_init): Likewise.
14656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14657 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14658 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14659 (hppa_coerce_float_to_double): Remove prototype.
14660 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14661
f436a26a
DJ
146622003-01-04 Daniel Jacobowitz <drow@mvista.com>
14663
14664 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14665
248f8055
DJ
146662003-01-04 Daniel Jacobowitz <drow@mvista.com>
14667
14668 Suggested by Stewart Brown <sb24@avaya.com>:
14669 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14670 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14671 (c_type_print_varspec_suffix): Likewise.
14672
72cfdc76
MK
146732003-01-04 Mark Kettenis <kettenis@gnu.org>
14674
bfd260bb
MK
14675 * configure.in: Don't set and AC_SUBST SUBDIRS.
14676 * configure: Regenerated.
14677
72cfdc76
MK
14678 * configure.in: Remove code dealing with shared libraries.
14679 * Makefile.in: Remove HLDFLAGS and HLDENV.
14680 * configure: Regenerated.
14681
c8b8a898
AC
146822003-01-04 Andrew Cagney <ac131313@redhat.com>
14683
14684 * frame.c (deprecated_frame_xmalloc): New function.
14685 (deprecated_set_frame_saved_regs_hack): New function.
14686 (deprecated_set_frame_extra_info_hack): New function.
14687 * frame.h (deprecated_frame_xmalloc): Declare.
14688 (deprecated_set_frame_saved_regs_hack): Declare.
14689 (deprecated_set_frame_extra_info_hack): Declare.
14690
14abd0fb
MK
146912003-01-04 Mark Kettenis <kettenis@gnu.org>
14692
8ee53726
MK
14693 * configure.in: Move code that provides the --enable-gdbtk option
14694 right after the code that handles the --enable-tui option, and
14695 polish it somewhat.
14696 * configure: Regenerated.
14697
14abd0fb
MK
14698 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14699 AC_CHECK_FUNCS and remove the old check for pread64.
14700 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14701 * acconfig.h (_GNU_SOURCE): Add.
14702 (HAVE_PREAD64): Remove.
14703 * configure, aclocal.m4, config.in: Regenerated.
14704
b2fb4676
AC
147052003-01-03 Andrew Cagney <ac131313@redhat.com>
14706
14707 * alpha-tdep.c: Use get_frame_saved_regs.
14708 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14709 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14710 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14711 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14712 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14713
8dcde887
MK
147142003-01-03 Mark Kettenis <kettenis@gnu.org>
14715
14716 * configure.in: Remove all use of the SUBDIRS variable; add
14717 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14718 code providing the --enable-multi-ice option, and move it right in
14719 front of the code that checks whether gdbserver is supported.
14720 Polish that too.
14721 * configure: Regenerated.
14722 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14723 @SUBDIRS@.
14724
8ccd593b
AC
147252003-01-03 Andrew Cagney <cagney@redhat.com>
14726
14727 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14728 * avr-tdep.c, cris-tdep.c: Ditto.
14729 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14730 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14731
91151a06
MK
147322003-01-03 Mark Kettenis <kettenis@gnu.org>
14733
14734 * configure.in: Remove --enable-netrom option.
14735 * configure: Regenerated.
14736
8fe84d01
MK
147372003-01-03 Mark Kettenis <kettenis@gnu.org>
14738
14739 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14740 declaration for `struct re_pattern_buffer' instead.
14741 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14742
f0394be6
JB
147432003-01-03 J. Brobecker <brobecker@gnat.com>
14744
14745 * mdebugread.c (parse_symbol): Count until the stEnd matching
14746 the structure name.
14747
27e9bf90
MK
147482003-01-02 Mark Kettenis <kettenis@gnu.org>
14749
93d331ba
MK
14750 * configure.in: Remove --with-cpu option.
14751 subscripts. Remove evil changequotes here.
14752 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14753 * config.in, configure: Regenerated.
8ffd9b1b 14754
27e9bf90
MK
14755 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14756 * configure.in: Cleanup section that sources GDB and BFD configure
14757 subscripts. Remove evil changequotes here.
14758 * config.in, configure: Regenerated.
14759
50abf9e5
AC
147602003-01-02 Andrew Cagney <ac131313@redhat.com>
14761
14762 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14763 frame accessor methods.
14764 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14765 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14766 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14767 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14768 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14769 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14770 * z8k-tdep.c: Ditto.
8ffd9b1b 14771
287c1a40
MK
147722003-01-02 Mark Kettenis <kettenis@gnu.org>
14773
f5dbc56d
MK
14774 * configure.in: Remove UI_OUT configuration code.
14775 * ada-lang.c: Update assuming UI_OUT is always true.
14776 * Makefile.in (UIOUT_CFLAGS): Remove.
14777 * configure: Regenerated.
14778 * TODO: Remove blurb about elimination of -DUI_OUT.
14779
627af7ea
MK
14780 * configure.in: Move code that provides the --enable-gdbcli,
14781 --enable-gdbmi options right before the code that handles the
14782 --enable-tui option. Polish a bit.
14783 * configure: Regenerated.
14784
06825bd1
MK
14785 * configure.in: Rewrite check for GNU regex and the
14786 --without-included regex option, and move it into the "Checks for
14787 library functions" section. This makes us use the system regex
14788 again by default on systems with version 2 of the GNU C library.
14789 This was apparently broken.
14790 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14791 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14792 * config.in, configure: Regenerated.
14793
287c1a40
MK
14794 * configure.in: Move code that provides the --enable-tui option
14795 before the "Checks for libraries" section. Polish the code
14796 somewhat and set need_curses to yes if we build the TUI. Rewrite
14797 code that looks for a library providing termcap functionality to
14798 match more closely what's done in the Readline library, and move
14799 it into to the "Checks for libraries" section.
14800 * configure: Regenerated.
14801 * Makefile.in (TERMCAP): Remove variable.
14802 * config/i386/go32.mh (TERMCAP): Remove variable.
14803
684e56bf
AC
148042003-01-02 Andrew Cagney <ac131313@redhat.com>
14805
14806 * MAINTAINERS: Mention gdb_mbuild.sh.
14807 * gdb_mbuild.sh: Rewrite.
14808
e1ea1d75
MK
148092003-01-02 Mark Kettenis <kettenis@gnu.org>
14810
14811 * configure.in: Fix typo in last change.
14812 * config.in, configure: Regenerated.
14813
1b831c93
AC
148142003-01-02 Andrew Cagney <ac131313@redhat.com>
14815
14816 * valarith.c (value_binop): Delete obsolete code and comments.
14817 * configure.host: Ditto.
14818 * buildsym.h (make_blockvector): Ditto.
14819 * buildsym.c (make_blockvector): Ditto.
14820 * defs.h (enum language): Ditto.
14821 (chill_demangle): Ditto.
14822 * elfread.c (elf_symtab_read): Ditto.
14823 * dwarfread.c (CHILL_PRODUCER): Ditto.
14824 (set_cu_language): Ditto.
14825 (handle_producer): Ditto.
14826 * expprint.c (print_subexp): Ditto.
14827 * gdbtypes.c (chill_varying_type): Ditto.
14828 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14829 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14830 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14831 (chill_varying_type): Ditto.
14832 * language.h (_LANG_chill): Ditto.
14833 * language.c (binop_result_type, integral_type): Ditto.
14834 (character_type, string_type, structured_type): Ditto.
14835 (lang_bool_type, binop_type_check): Ditto.
14836 * stabsread.h (os9k_stabs): Ditto.
14837 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14838 (define_symbol, read_type, read_struct_fields): Ditto.
14839 (read_array_type, read_enum_type, read_huge_number): Ditto.
14840 (read_range_type, start_stabs): Ditto.
14841 * symfile.c (init_filename_language_table): Ditto.
14842 (add_psymbol_with_dem_name_to_list): Ditto.
14843 * symtab.c (symbol_init_language_specific): Ditto.
14844 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14845 * symtab.h (struct general_symbol_info): Ditto.
14846 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14847 * typeprint.c (typedef_print): Ditto.
14848 * utils.c (fprintf_symbol_filtered): Ditto.
14849 * valops.c (value_cast, search_struct_field, value_slice): Delete
14850 obsolete code.
14851 (varying_to_slice): Delete function.
14852 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14853 (varying_to_slice): Delete declaration.
14854 * MAINTAINERS: Update.
14855
8bb2c122
MK
148562003-01-02 Mark Kettenis <kettenis@gnu.org>
14857
97bf5e38
MK
14858 * configure.in: Reorganize "Checks for library functions section"
14859 a bit. Remove check for `btowc' and `isascii' functions.
14860 * configure: Regenerated.
14861
5ee754fc
MK
14862 * acconfig.h (_MSE_INT_H): Remove.
14863 * configure.in: Create "Checks for header files" section, and move
14864 appropriate tests there. Don't check for objlist.h, wchar.h,
14865 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14866 misdetection fix. Also add "Checks for types", "Checks for
14867 compiler characteristics" and "Checks for library functions"
14868 sections.
14869 * config.in, configure: Regenerated.
14870
8bb2c122
MK
14871 * configure.in: Create "Checks for programs" section, and move
14872 appropriate tests there.
14873
9a156167
MK
148742003-01-01 Mark Kettenis <kettenis@gnu.org>
14875
14876 * configure.in: Create "Checks for libraries" section, and move
14877 appropriate tests there. Cleanup check for wctype in libw. Use
14878 AC_SEARCH_LIBS to see whether we need libsocket.
14879 * configure: Regenerated.
14880
a80e2bcb 14881For older changes see ChangeLog-2002
c906108c
SS
14882\f
14883Local Variables:
14884mode: change-log
14885left-margin: 8
14886fill-column: 74
14887version-control: never
14888End:
This page took 1.112542 seconds and 4 git commands to generate.