2003-11-22 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
29dfb2ac
AC
12003-11-22 Andrew Cagney <cagney@redhat.com>
2
00d33403
AC
3 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
4 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
5 declaration.
6 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
7 * infcall.c (call_function_by_hand): Delete #ifdef
8 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
9 * infcmd.c (print_return_value): Ditto.
10
74da7425
AC
11 * mips-tdep.c (skip_prologue_using_sal): New function.
12 (mips32_skip_prologue, mips16_skip_prologue): Use
13 skip_prologue_using_sal to get an upper bound on the search.
14
369864a4
AC
15 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
16 #if 0'ed macro.
17 * infrun.c (step_into_function): Delete #ifdef
18 PROLOGUE_FIRSTLINE_OVERLAP code.
19 * symtab.c (find_function_start_sal): Ditto.
20
a5a12285
AC
21 * remote-rdp.c: Update copyright.
22 (rdp_init): #if 0 references to "target_byte_order".
23
29dfb2ac
AC
24 * mips-tdep.c (mips_o32_store_return_value): Delete function.
25 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
26 (mips_o32_extract_return_value): Delete function.
27 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
28 (mips_n32n64_extract_return_value): Delete function.
29 (mips_n32n64_store_return_value): Delete function.
30 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
31 instead of "store_return_value", "extract_return_value", and
32 "use_struct_convention".
33 (mips_n32n64_use_struct_convention): Delete function.
34
3a3da38c
KB
352003-11-21 Kevin Buettner <kevinb@redhat.com>
36
37 * frv-tdep.c (frv_frame_this_id): Eliminate call to
38 inside_entry_func().
39
c5e656c1
MK
402003-11-20 Mark Kettenis <kettenis@gnu.org>
41
42 * i386-tdep.c (i386_extract_return_value,
43 i386_store_return_value): Add gdbarch argument. Use it instead of
44 determining it from REGCACHE. Remove recursive call for
45 structures with a single member.
46 (i386_use_struct_convention): Remove.
47 (i386_reg_struct_return_p): New function.
48 (i386_return_value): New function.
49 (i386_gdbarch_init): Set return_value, don't set
50 extract_return_value, store_return_value and
51 use_struct_convention.
52 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
53
515cc92e
JB
542003-11-20 Jim Blandy <jimb@redhat.com>
55
56 * osabi.c (_initialize_gdb_osabi): Don't return before registering
57 the 'set osabi' and 'show osabi' commands.
58
3f1d7f16
MK
592003-11-19 Mark Kettenis <kettenis@gnu.org>
60
61 * frame.c (get_prev_frame): Use result from
62 get_frame_address_in_block instead of get_frame_pc as argument to
63 inside_main_func. Fixes PR backtrace/1435.
64
667e784f
AC
652003-11-19 Andrew Cagney <cagney@redhat.com>
66
67 * stack.c (return_command): Handle "void", "legacy" and "unknown
68 location" return values separatly.
69 * values.c (using_struct_return): Return 0 for a "void" return
70 type. Mention "register_value_being_returned".
71 (register_value_being_returned): Mention "using_struct_return".
72
4cecd739
DJ
732003-11-19 Daniel Jacobowitz <drow@mvista.com>
74
75 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
76 (frame_base_offset): Delete.
77 (read_func_scope): Delete call to decode_locdesc.
78 (decode_locdesc): Update comments. Don't set the removed variables.
79 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
80 DW_OP_fbreg support.
81
6b992462
DJ
822003-11-18 Daniel Jacobowitz <drow@mvista.com>
83
84 * dwarf2read.c (optimized_out, islocal): Remove.
85 (decode_locdesc): Update comments. Don't set optimized_out
86 or islocal.
87
968d1cb4
JJ
882003-11-17 Jeff Johnston <jjohnstn@redhat.com>
89 David Mosberger <davidm@hpl.hp.com>
90
91 * ia64-tdep.c: Include elf.h.
92 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
93 libunwind-ia64.h.
94 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
95 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
96 (ia64_is_fpreg, ia64_access_reg): Ditto.
97 (ia64_access_fpreg, ia64_access_mem): Ditto.
98 (get_kernel_table): Ditto.
99 (ia64_find_unwind_table): Ditto.
100 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
101 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
102 (ia64_libunwind_frame_prev_register): Ditto.
103 (ia64_libunwind_frame_sniffer): Ditto.
104 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
105 sniffer. Register libunwind functions needed by generic
106 libunwind frame code using libunwind_frame_set_descr().
107
d29caefc
DJ
1082003-11-16 Daniel Jacobowitz <drow@mvista.com>
109
110 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
111 bp_shlib_disabled breakpoint if there is a shared library mapped
112 at its expected address.
113
691c0433
AC
1142003-11-16 Andrew Cagney <cagney@redhat.com>
115
96cb1c2f
AC
116 * configure.tgt: Delete mips*tx39*-elf*.
117 * config/mips/tm-tx39.h: Delete file.
118 * config/mips/tx39.mt: Delete file.
119 * config/mips/tx39.mt: Delete file.
120
691c0433
AC
121 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
122 * remote-mips.c (common_open): Instead of
123 "mips_read_register_type" and "mips_set_processor_type_command"
124 call "deprecated_mips_set_processor_regs_hack".
125 * config/mips/tm-mips.h (mips_read_processor_type): Delete
126 declaration.
127 (mips_set_processor_type_command): Delete declaration.
128 * mips-tdep.c (mips_gdbarch_init): Update comment.
129 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
130 (mips_set_processor_type): Delete function.
131 (NUM_MIPS_PROCESSOR_REGS): Define.
132 (mips_show_processor_type_command): Delete function.
133 (mips_set_processor_type_command): Delete function.
134 (tmp_mips_processor_type): Delete.
135 (mips_processor_type): Delete.
136 (mips_processor_type_table): Delete.
137 (mips_r3051_reg_names): Delete.
138 (mips_r3081_reg_names): Delete.
139 (mips_lsi33k_reg_names): Delete.
140 (mips_processor_reg_names): Delete.
141 (mips_read_processor_type): Delete function.
142 (deprecated_mips_set_processor_regs_hack): New function.
143 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
144 (mips_register_name): Get the processor names from the tdep.
145 (mips_tx39_reg_names): New array.
146 (mips_generic_reg_names): Wire to a standard set of names.
147 (mips_gdbarch_init): Set "mips_processor_reg_names".
148 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
149 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
150 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
151
56cea623
AC
1522003-11-16 Andrew Cagney <cagney@redhat.com>
153
154 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
155 (mips_fpa0_regnum, mips_regnum): New function.
156 (mips_gdbarch_init): Fill in the "regnum" fields.
157 * mips-tdep.h (struct mips_regnum): Define.
158 (mips_regnum): Declare.
159 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
160 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
161 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
162 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
163 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
164 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
165 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
166 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
167 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
168 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
169 * remote-mips.c: Include "mips-tdep.h". Update.
170 * mipsnbsd-tdep.c: Update.
171 * mipsv4-nat.c: Update.
172 * mips-tdep.c: Update.
173 * mips-nat.c: Update.
174 * mips-linux-tdep.c: Update.
175 * mips-linux-nat.c: Update.
176 * irix5-nat.c: Update.
177 * dve3900-rom.c: Include "mips-tdep.h". Update.
178 (ignore_packet): Supress GCC warning.
179 * config/mips/nm-riscos.h: Update.
180
719ec221
AC
1812003-11-16 Andrew Cagney <cagney@redhat.com>
182
183 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
184 register_size.
185 (mips_register_raw_size): Delete function.
186 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
187 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
188 Check and set "mips64_transfers_32bit_regs_p".
189 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
190 (mips_register_convertible): Check the architecture's
191 "mips64_transfers_32bit_regs_p".
192 (set_mips64_transfers_32bit_regs): New function.
193 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
194 "set remote-mips64-transfers-32bit-regs" command. Specify
195 set_mips64_transfers_32bit_regs as the set function.
56cea623 196 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 197
20187ed5
MK
1982003-11-16 Mark Kettenis <kettenis@gnu.org>
199
200 * i386-tdep.h (i386_supply_gregset): Provide prototype.
201 * i386-tdep.c (i386_supply_gregset): Make public.
202
6771c427
AC
2032003-11-16 Andrew Cagney <cagney@redhat.com>
204
205 * mips-tdep.c (mips_register_byte): Delete function.
206 (mips_gdbarch_init): Do not set "deprecated_register_byte".
207 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
208 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
209 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
210
c8048956
MK
2112003-11-16 Mark Kettenis <kettenis@gnu.org>
212
213 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
214
cc8a868a
AC
2152003-11-16 Andrew Cagney <cagney@redhat.com>
216
217 * config/mips/linux64.mt: Delete file.
218 * config/mips/tm-linux64.h: Delete file.
219 * config/mips/tm-mips64.h: Delete file.
220 * config/mips/embed64.mt: Delete file.
221 * config/djgpp/fnchange.lst: Update.
222 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
223 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
224 * config/mips/tm-irix6.h: Update copyright. Include
225 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
226 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
227 "OP_LDGPR".
228
5ef80fb0
AC
2292003-11-15 Andrew Cagney <cagney@redhat.com>
230
231 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
232 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
233 n32 registers 64 bit.
234 (mips_register_raw_size, mips_register_byte): For pseudo
235 registers, use the register's pseudo size and not the
236 corresponding raw register's size.
237 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
238 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
239 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
240 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
241
4246e332
AC
2422003-11-15 Andrew Cagney <cagney@redhat.com>
243
8fa9cfa1
AC
244 * mips-tdep.c (struct gdbarch_tdep): Delete member
245 gdb_target_is_mips64.
246 (GDB_TARGET_IS_MIPS64): Delete macro.
247 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
248 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
249 (mips_addr_bits_remove): Simplify.
250
c73e8f27
AC
251 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
252 register_size.
253
4246e332
AC
254 Replace MIPS_REGSIZE with mips_regsize.
255 * mips-tdep.c (mips_regsize): New function.
256 * mips-tdep.h (mips_regsize): Declare.
257 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
258 (SIZEOF_STRUCT_REG): Update.
259 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
260 (mipsnbsd_fill_reg): Update.
261 (mipsnbsd_supply_fpreg): Update.
262 (mipsnbsd_fill_fpreg): Update.
263 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
264 * mips-tdep.c (mips_register_raw_size): Update.
265 (mips_register_type): Update.
266 (SIGFRAME_BASE): Update.
267 (SIGFRAME_PC_OFF): Update.
268 (SIGFRAME_REGSAVE_OFF): Update.
269 (SIGFRAME_FPREGSAVE_OFF): Update.
270 (SIGFRAME_REG_SIZE): Update.
271 (mips32_heuristic_proc_desc): Update.
272 (print_gp_register_row): Update.
273 (mips_dump_tdep): Do not print MIPS_REGSIZE.
274 * irix5-nat.c (supply_gregset): Update.
275 (fetch_core_registers): Update.
276 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
277 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
278 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
279 (MIPS_REGISTER_BYTE): Update.
280 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
281
5e044b1e
AC
2822003-11-15 Andrew Cagney <cagney@redhat.com>
283
284 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
285 USE_REGISTER_NOT_ARG.
286 * stabsread.c (define_symbol): Update.
287
3a16a68c
AC
2882003-11-15 Andrew Cagney <cagney@redhat.com>
289
290 * bcache.h (deprecated_bcache): Declare.
291 (bcache): Make returned buffer constant.
292 * bcache.c (deprecated_bcache): New function.
293 (bcache_data): New function.
294 (bcache): Call bcache data.
295 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
296 (add_psymbol_with_dem_name_to_list): Ditto.
297
bb41a796
MK
2982003-11-15 Mark Kettenis <kettenis@gnu.org>
299
300 * glibc-tdep.h (struct gdbarch): Declare opaque.
301 (glibc_skip_solib_resolver): Adjust prototype.
302 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
303 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
304 (arm_linux_init_abi): Set skip_solib_resolver.
305 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
306 (i386_linux_init_abi): Set skip_solib_resolver.
307 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
308 (arm_linux_skip_solib_resolver): Remove prototype.
309 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
310 (i386_linux_skip_solib_resolver): Remove prototype.
311
4c8c40e6
MK
3122003-11-14 Mark Kettenis <kettenis@gnu.org>
313
314 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
315 function.
316 * gdbarch.c, gdbarch.h: Regenerate.
317 * infrun.c (handle_inferior_event): Call
318 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
319 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
320 definition.
321 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
322 prototype.
323
0e5d83e3
JJ
3242003-11-14 Jeff Johnston <jjohnstn@redhat.com>
325
326 * libunwind-frame.c: New file.
327 * libunwind-frame.h: New file.
328 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
329 * configure.in: Add --with-libunwind option support. Define
330 HAVE_LIBUNWIND if libunwind support selected / defaulted.
331 Also check for libunwind.h and libunwind-ia64.h headers.
332 * configure: Regenerated.
333 * Makefile.in: Add support for libunwind-frame.o.
334 * config.in: Regenerated.
335
287a334e
JJ
3362003-11-14 Jeff Johnston <jjohnstn@redhat.com>
337
338 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
339 set up the ia64 linux native target method for getting the kernel
340 unwind table.
341 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
342 * inftarg.c (child_xfer_partial): Enable section of code to
343 handle TARGET_OBJECT_UNWIND_TABLE.
344 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
345
140be7b8
ILT
3462003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
347
348 * config/arm/nbsd.mt (TM_FILE): Define.
349 * config/arm/tm-nbsd.h: New file.
350
0a90bcdd
AC
3512003-11-14 Andrew Cagney <cagney@redhat.com>
352
353 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
354 * ppc-sysv-tdep.c: Include "objfiles.h".
355 (ppc64_sysv_abi_push_dummy_call): Provide the
356 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
357
358 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
359 "name_of_malloc" to ".malloc".
360
087f1027
MK
3612003-11-13 Mark Kettenis <kettenis@gnu.org>
362
363 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
364
3882f37a
DC
3652003-11-13 David Carlton <carlton@kealia.com>
366
367 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
368
a8cf2722
AC
3692003-11-13 Andrew Cagney <cagney@redhat.com>
370
371 * arch-utils.h (selected_architecture_name): Declare.
372 (selected_byte_order): Declare.
373 * arch-utils.c (selected_byte_order): New function.
374 (selected_architecture_name): New function.
375 (target_architecture_auto): Make static.
376 (set_architecture_string): Make static.
377 (target_byte_order): Make static.
378 (target_byte_order_auto): Make static.
379 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
380 non-multi-arch definition.
381 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
382 (target_byte_order, target_architecture): Delete declaration.
383 (target_byte_order_auto, target_architecture_auto): Ditto.
384 * gdbarch.h: Re-generate.
385 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
386 "selected_byte_order".
387
475b6ddd
AC
3882003-11-13 Andrew Cagney <cagney@redhat.com>
389
390 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
391
a22286a9
JB
3922003-11-13 Jim Blandy <jimb@redhat.com>
393
394 * cp-namespace.c: Doc fix.
395
7bb11558
MS
3962003-11-12 Michael Snyder <msnyder@redhat.com>
397
39add00a
MS
398 * sh64_tdep.c: Regularize some names.
399 (sh_sh64_register_name): Rename to sh64_register_name.
400 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
401 (sh_sh64_register_byte): Rename to sh64_register_byte.
402 (sh_sh64_build_float_register_type):
403 Rename to sh64_build_float_register_type.
404 (sh_sh64_register_convert_to_virtual):
405 Rename to sh64_register_convert_to_virtual.
406 (sh_sh64_register_convert_to_raw):
407 Rename to sh64_register_convert_to_raw.
408
2a314ed5
MS
409 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
410 sh64_media_reg_base_num, sh64_compact_reg_base_num,
411 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
412 sh64_extract_return_value, sh64_show_media_regs,
413 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
414 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
415 sh64_pseudo_register_read, sh64_pseudo_register_write,
416 sh64_do_pseudo_register, sh_compact_print_registers_info):
417 Delete unused variable 'tdep'.
418
7bb11558
MS
419 * sh64-tdep.c: Coding standard and spelling comment fixes.
420 (sh64_extract_return_value): Replace deprecated_store_floating
421 with store_typed_floating.
422 (sh_sh64_register_convert_to_raw): Replace
423 deprecated_store_floating with store_typed_floating.
424 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
425 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
426 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
427 sh64_extract_struct_value_address, sh64_pop_frame,
428 sh64_extract_return_value, sh64_store_return_value,
429 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
430 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
431 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
432 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
433 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
434 deprecated_register_virtual_type, deprecated_register_raw_size,
435 deprecated_max_register_raw_size, or
436 deprecated_max_register_virtual_size. Instead, just set
437 gdbarch_register_type.
39add00a
MS
438 (sh_sh64_register_raw_size): Delete.
439 (sh_sh64_register_virtual_size): Delete.
7bb11558 440
e7c27a73
DJ
4412003-11-12 Daniel Jacobowitz <drow@mvista.com>
442
443 * dwarf2read.c (struct dwarf2_cu): New type.
444
445 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
446 dwarf2_cu structure to pass down.
447
448 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
449 (add_partial_enumeration, locate_pdi_sibling, process_die)
450 (read_file_scope, read_func_scope)
451 (read_lexical_block_scope, dwarf2_get_pc_bounds)
452 (dwarf2_add_field, dwarf2_attach_fields_to_type)
453 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
454 (read_structure_scope, read_enumeration, read_array_type)
455 (read_common_block, read_namespace, read_tag_pointer_type)
456 (read_tag_ptr_to_member_type, read_tag_reference_type)
457 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
458 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
459 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
460 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
461 (read_full_die. read_attribute_value, read_attribute)
462 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
463 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
464 (die_containing_type, type_at_offset, tag_type_to_type)
465 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
466 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
467
1640b821
DJ
4682003-11-12 Daniel Jacobowitz <drow@mvista.com>
469
470 PR breakpoints/1450
471 * breakpoint.c (insert_bp_location): Fix a logic error by returning
472 0 after a catchpoint fails.
473
d7891507
MC
4742003-11-11 Michael Chastain <mec.gnu@mindspring.com>
475
476 * mips-tdep.c (msymbol_size): Delete.
477
f594e5e9
MC
4782003-11-07 Michael Chastain <mec@shout.net>
479
480 * symtab.h (struct minimal_symbol): Add size.
481 * dbxread.c: Use it.
482 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
483 Rename to record_minimal_symbol.
484 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
485 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
486 (install_minimal_symbols): Ditto.
487 * objfiles.c (terminate_minimal_symbol_table): Ditto.
488 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
489 * m68hc11-tdep.c: Ditto.
490 * mips-tdep.c: Ditto.
491 * sh64-tdep.c: Ditto.
492
68e39e73
MC
4932003-11-10 Michael Chastain <mec.gnu@mindspring.com>
494
495 * MAINTAINERS: Change my e-mail address.
496
b60eb90d
AC
4972003-11-10 Andrew Cagney <cagney@redhat.com>
498
963e2bb7
AC
499 * gdbarch.sh (return_value): Replace "inval" and "outval" with
500 "readbuf" and "writebuf".
501 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
502 * d10v-tdep.c (d10v_return_value): Ditto.
503 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
504 (ppc_sysv_abi_broken_return_value): Ditto.
505 (ppc64_sysv_abi_return_value): Ditto.
506 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
507 (ppc_sysv_abi_return_value): Ditto.
508 (ppc_sysv_abi_broken_return_value): Ditto.
509 (ppc64_sysv_abi_return_value): Ditto.
510 * values.c (register_value_being_returned): Update call.
511 * stack.c (return_command): Update call.
512 * gdbarch.h, gdbarch.c: Re-generate.
513
8aa91c1e
AC
514 * target.h (struct target_ops): Order xfer buffer parameters "read
515 write" not "write read".
516 * bfd-target.c (target_bfd_xfer_partial): Update.
517 * remote.c (remote_xfer_partial): Update.
518 * inftarg.c (child_xfer_partial): Update.
519 * target.c (default_xfer_partial): Update.
520 (target_read_partial, target_write_partial): Update.
521 (debug_to_xfer_partial): Update.
522
100bcc3f
AC
523 * arch-utils.h, arch-utils.c: Fix typo in comment.
524
b60eb90d
AC
525 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
526 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
527 (set_gdbarch_from_file): Call
528 "deprecated_current_gdbarch_select_hack".
b60eb90d 529
bf922ad9
AC
5302003-11-09 Andrew Cagney <cagney@redhat.com>
531
ebdba546
AC
532 * arch-utils.c (gdbarch_update_p): New function.
533 * gdbarch.sh (gdbarch_update_p): Delete function.
534 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 535 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
536 * gdbarch.c: Re-generate.
537
7de2341d
AC
538 * gdbarch.sh (clear_gdbarch_swap): Delete function.
539 (swapout_gdbarch_swap): Delete function.
540 (swapin_gdbarch_swap): Delete function.
541 (init_gdbarch_swap): Delete function.
542 (initialize_non_multiarch): Delete function.
543 (current_gdbarch_swap_in_hack): New function.
544 (current_gdbarch_swap_out_hack): New function.
545 (current_gdbarch_swap_init_hack): New function.
546 * gdbarch.c: Re-generate.
547
db446970
AC
548 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
549 parameter to "current_gdbarch". Add comment explaining why.
550 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
551 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
552 * gdbarch.c: Re-generate.
553
341e3d11
AC
554 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
555 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
556 * config/s390/xm-linux.h: Delete file.
557 * config/m88k/xm-delta88v4.h: Delete stray.
558
bf922ad9
AC
559 * Makefile.in (arch-utils.o): Update dependencies.
560 * arch-utils.c: Include "osabi.h".
561 (gdbarch_info_fill): New function.
562 * arch-utils.h (gdbarch_info_fill): Declare.
563 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
564 * gdbarch.c: Re-generate.
565
a3640c75
MK
5662003-11-09 Mark Kettenis <kettenis@gnu.org>
567 David S. Miller <davem@redhat.com>
568
569 * glibc-tdep.c, glibc-tdep.h: New files.
570 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
571 * config/i386/linux.mt (TDEPFILES): Likewise.
572 * i386-linux-tdep.c (glibc-tdep.h): Include.
573 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
574 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
575 * arm-linux-tdep.c (glibc-tdep.h): Include.
576 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
577 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
578 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
579 (glibc_tdep_h): Define.
580 (glibc-tdep.o): Add dependencies.
581 (arm-linux-tdep.o): Update dependencies.
582 (i386-linux-tdep.o): Likewise.
583
e60e0ab2
AC
5842003-11-09 Andrew Cagney <cagney@redhat.com>
585
586 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
587 * config/mips/nm-irix6.h: Delete file.
588 * config/mips/nm-linux.h: Update copyright.
589 (MIPS_GNULINUX_TARGET): Delete macro.
590 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
591 * config/mips/xm-irix6.h: Delete file.
592 * config/mips/linux.mh (XM_FILE): Delete definition.
593 * config/mips/xm-linux.h: Delete file.
594
181555e9
AC
5952003-11-09 Andrew Cagney <cagney@redhat.com>
596
597 * d10v-tdep.c (d10v_return_value): New function.
598 (d10v_use_struct_convention): Delete function.
599 (d10v_store_return_value): Delete function.
600 (d10v_extract_struct_value_address): Delete function.
601 (d10v_gdbarch_init): Set "return_value" instead of
602 "extract_return_value", "store_return_value",
603 "extract_struct_value_address", and "use_struct_convention".
604 (RET1_REGNUM): Delete const.
605
dea0c52f
MK
6062003-11-09 Mark Kettenis <kettenis@gnu.org>
607
608 From David S. Miller <davem@redhat.com>:
609 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
610 * gdbarch.c, gdbarch.h: Regenerated.
611 * arch-utils.c (generic_skip_solib_resolver): New function.
612 * arch-utils.h (generic_skip_solib_resolver): New prototype.
613 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
614
6314a349
AC
6152003-11-07 Andrew Cagney <cagney@redhat.com>
616
617 * top.c (print_gdb_version): Replace STREQ with strcmp.
618 * valops.c (value_struct_elt_for_reference): Ditto.
619 (value_struct_elt_for_reference): Ditto.
620 * symtab.c (gdb_mangle_name): Ditto.
621 (find_line_symtab): Ditto.
622 * symmisc.c (maintenance_print_symbols): Ditto.
623 * symfile.c (symbol_file_command): Ditto.
624 * stabsread.c (define_symbol, read_type): Ditto.
625 (cleanup_undefined_types, scan_file_globals): Ditto.
626 * solib.c (solib_map_sections): Ditto.
627 * solib-svr4.c (bfd_lookup_symbol): Ditto.
628 * rs6000-tdep.c (skip_prologue): Ditto.
629 * p-valprint.c (pascal_value_print): Ditto.
630 (pascal_object_is_vtbl_ptr_type): Ditto.
631 * objfiles.c (in_plt_section): Ditto.
632 * minsyms.c (lookup_minimal_symbol): Ditto.
633 (compact_minimal_symbols): Ditto.
634 (find_solib_trampoline_target): Ditto.
635 * mdebugread.c (parse_type): Ditto.
636 * language.c (set_language_command): Ditto.
637 (set_type_command, set_range_command): Ditto.
638 * f-lang.c (add_common_block): Ditto.
639 (add_common_block): Ditto.
640 (find_first_common_named): Ditto.
641 (patch_all_commons_by_name): Ditto.
642 * elfread.c (elf_locate_sections): Ditto.
643 (elf_locate_sections): Ditto.
644 (elfstab_offset_sections): Ditto.
645 * dwarf2read.c (dwarf2_locate_sections): Ditto.
646 * dbxread.c (add_old_header_file): Ditto.
647 (find_corresponding_bincl_psymtab): Ditto.
648 (read_dbx_symtab, process_one_symbol): Ditto.
649 * coffread.c (patch_opaque_types): Ditto.
650 * cli/cli-decode.c (delete_cmd): Ditto.
651 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
652 * c-typeprint.c (c_type_print_base): Ditto.
653 * breakpoint.c (bpstat_stop_status): Ditto.
654 (clear_command, breakpoint_re_set_one): Ditto.
655
49df298f
AC
6562003-11-07 Andrew Cagney <cagney@redhat.com>
657
658 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
659 * bcache.c (struct bstring): Make "length" an unsigned short, add
660 "half_hash".
661 (struct bcache): Add "half_hash_error_count".
662 (bcache): Compute and save the "half_hash". Compare the
663 "half_hash" before comparing the length. Update
664 half_hash_error_count.
665
f168dd80
AC
6662003-11-07 Andrew Cagney <cagney@redhat.com>
667
668 * inftarg.c (child_xfer_partial): New function
669 (init_child_ops): Set "to_xfer_partial".
670
05580c65
AC
6712003-11-07 Andrew Cagney <cagney@redhat.com>
672
673 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
674 set "return_value" instead of "use_struct_convention".
675 (ppc_linux_use_struct_convention): Delete function.
676 (ppc_linux_return_value): New function.
677 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
678 (ppc_sysv_abi_broken_return_value): New function.
679 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
680 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
681 static.
682 (ppc_sysv_abi_extract_return_value): Delete function.
683 (ppc_sysv_abi_broken_extract_return_value): Delete function.
684 (ppc_sysv_abi_store_return_value): Delete function.
685 (ppc_sysv_abi_broken_store_return_value): Delete function.
686 (ppc_sysv_abi_use_struct_convention): Delete function.
687 (ppc64_sysv_abi_use_struct_convention): Delete function.
688 (ppc64_sysv_abi_extract_return_value): Delete function.
689 (ppc64_sysv_abi_store_return_value): Delete function.
690 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
691 (ppcnbsd_init_abi): Set "return_value", instead of
692 "use_struct_convention", "extract_return_value", and
693 "store_return_value".
694 (ppcnbsd_use_struct_convention): Delete function.
695 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
696 (ppc_sysv_abi_return_value): Declare.
697 (ppc_sysv_abi_broken_return_value): Declare.
698 (ppc_sysv_abi_use_struct_convention): Delete.
699 (ppc_sysv_abi_store_return_value): Delete.
700 (ppc_sysv_abi_extract_return_value): Delete.
701 (ppc_sysv_abi_broken_store_return_value): Delete.
702 (ppc_sysv_abi_broken_extract_return_value): Delete.
703 (ppc64_sysv_abi_use_struct_convention): Delete.
704 (ppc64_sysv_abi_extract_return_value): Delete.
705 (ppc64_sysv_abi_store_return_value): Delete.
706 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
707 set "return_value" instead of "extract_return_value",
708 "store_return_value", and "use_struct_convention".
709
1763fba4
MK
7102003-11-07 Mark Kettenis <kettenis@gnu.org>
711
22c7ba1a
MK
712 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
713
1763fba4
MK
714 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
715 fscanf.
716
fc07cc2d
MK
7172003-11-07 Mark Kettenis <kettenis@gnu.org>
718
719 * fbsd-proc.c: Fix formatting.
720
6a748db6
KB
7212003-11-06 Kevin Buettner <kevinb@redhat.com>
722
723 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
724 Define.
725 (new_variant): Set name for iacc0_regnum.
726 (frv_register_name): Accommodate pseudo-registers.
727 (frv_register_type): Add case for iacc0_regnum.
728 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
729 (frv_gdbarch_init): Set number of pseudo registers. Establish
730 pseudo-register read/write methods.
731
bf896cb0
AC
7322003-11-06 Andrew Cagney <cagney@redhat.com>
733
734 * valops.c (destructor_name_p): Replace STREQN with strncmp.
735 * top.c (command_line_input): Ditto.
736 * objc-exp.y (yylex): Ditto.
737 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
738 * jv-exp.y (yylex): Ditto.
739 * f-exp.y (yylex): Ditto.
740 * event-top.c (command_line_handler): Ditto.
741 * environ.c (get_in_environ): Ditto.
742 (set_in_environ): Ditto.
743 * dwarfread.c (handle_producer): Ditto.
744 * dbxread.c (process_one_symbol): Ditto.
745 * c-typeprint.c (c_type_print_base): Ditto.
746 * c-exp.y (yylex): Ditto.
747
0b603eba
AC
7482003-11-06 Andrew Cagney <cagney@redhat.com>
749 Jeff Johnston <jjohnstn@redhat.com>
750
751 * target.c (add_target): Only set "to_xfer_partial" when NULL.
752 (init_dummy_target): Set "to_xfer_partial".
753
9cedbfec
AC
7542003-11-06 Andrew Cagney <cagney@redhat.com>
755
756 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
757 REGISTER_CONVENTION.
758
26bb91f3
DJ
7592003-11-06 Daniel Jacobowitz <drow@mvista.com>
760
761 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
762 static.
763
0bde7532
DJ
7642003-11-06 Daniel Jacobowitz <drow@mvista.com>
765
766 * breakpoint.c (remove_breakpoint): Take an bp_location
767 instead of a breakpoint argument. Check the bp_location's type.
768 Fix a reversed condition for hardware breakpoints.
769
770 (insert_bp_location): Update call to remove_breakpoint.
771 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
772 (remove_hw_watchpoints): Likewise.
773 (reattach_breakpoints): Likewise.
774 (detach_breakpoints): Likewise.
775 (delete_breakpoint): Likewise.
776
075f6582
DJ
7772003-11-06 Daniel Jacobowitz <drow@mvista.com>
778
779 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
780 (beakpoint_init_inferior): Likewise.
781 (breakpoint_here_p): Likewise. Only check addresses for software
782 or hardware breakpoints.
783 (breakpoint_inserted_here_p): Likewise.
784 (breakpoint_thread_match): Likewise. Correct comment.
785 (bpstat_have_active_hw_watchpoints): Likewise.
786 (check_duplicates): Likewise.
787
879bfdc2
DJ
7882003-11-06 Daniel Jacobowitz <drow@mvista.com>
789
790 * breakpoints.c (insert_bp_location): New function, broken out
791 from insert_breakpoints. Work on an bp_location instead of a
792 breakpoint.
793 (insert_breakpoints): Use it.
794
cf3a9e5b
DJ
7952003-11-06 Daniel Jacobowitz <drow@mvista.com>
796
797 * breakpoint.h (struct bp_location): Add section.
798 (struct breakpoint): Remove section.
799 * breakpoint.c (insert_breakpoints, remove_breakpoint)
800 (breakpoint_here_p, breakpoint_inserted_here_p)
801 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
802 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
803 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
804 section through loc.
805
ffce0d52
DJ
8062003-11-06 Daniel Jacobowitz <drow@mvista.com>
807
808 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
809 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
810
e049a4b5
DJ
8112003-11-06 Daniel Jacobowitz <drow@mvista.com>
812
813 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
814 arguments. Initialize owner and type for the new breakpoint
815 location item.
816 (set_raw_breakpoint): Update call to allocate_bp_location.
817
7cc221ef
DJ
8182003-11-06 Daniel Jacobowitz <drow@mvista.com>
819
820 * breakpoint.h (struct bp_location): Add a chain pointer.
821 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
822 macros.
823 (bp_location_chain): New variable.
824 (allocate_bp_location): New function.
825 (set_raw_breakpoint): Use it.
826 (delete_breakpoint): Remove ->loc from the bp_location_chain.
827
5cab636d
DJ
8282003-11-06 Daniel Jacobowitz <drow@mvista.com>
829
830 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
831 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 832 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
833 * breakpoint.c (condition_command, read_memory_nobpt)
834 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
835 (reattach_breakpoints, update_breakpoints_after_exec)
836 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
837 (breakpoint_init_inferior, breakpoint_here_p)
838 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
839 (breakpoint_thread_match, bpstat_stop_status)
840 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
841 (describe_other_breakpoints, check_duplicates)
842 (make_breakpoint_permanent, create_thread_event_breakpoint)
843 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
844 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
845 (watch_command_1, print_one_exception_catchpoint)
846 (clear_command, breakpoint_re_set_one): Adjust member accesses to
847 use the breakpoint's ->loc.
848 (set_raw_breakpoint): Likewise. Initialize ->loc.
849 (delete_breakpoint): Likewise. Free ->loc.
850
7be0c536
AC
8512003-11-05 Andrew Cagney <cagney@redhat.com>
852
4c7d882e
AC
853 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
854 macro.
855 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
856 * config/i386/tm-cygwin.h
857 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
858 * config/powerpc/tm-linux.h
859 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
860 (at_subroutine_call_instruction_target): Delete declaration.
861 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
862 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
863 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
864
7be0c536
AC
865 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
866 "struct bfd_section" and "struct bfd".
867 * target.h (struct section_table): Ditto.
868 * rs6000-nat.c (xcoff_relocate_core): Ditto.
869 * solib-svr4.c (elf_locate_base): Ditto.
870 * pa64solib.c (dld_cache_t): Ditto.
871 * objfiles.h (struct obj_section): Ditto.
872 * objfiles.c (add_to_objfile_sections): Ditto.
873 * exec.c (bfdsec_to_vmap): Ditto.
874 (add_to_section_table): Ditto.
875 (build_section_table): Ditto.
876 * corelow.c (get_core_register_section): Ditto.
877 * coffread.c (find_linenos): Ditto.
878 * elfread.c (elf_interpreter): Delete #if0'd function.
879
880 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
881 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
882 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
883 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
884
885 * arch-utils.h (generic_cannot_extract_struct_value_address):
886 Delete declaration.
887 * wince.c (_initialize_wince): Fix multi-line string.
888 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
889
d8fe84e3
EZ
8902003-11-05 Elena Zannoni <ezannoni@redhat.com>
891
892 * top.c (execute_command): Fix broken logic for command execution
893 while inferior is running in async mode.
894
cbdfc7c0
MK
8952003-11-06 Mark Kettenis <kettenis@gnu.org>
896
897 * dwarf2-frame.c (execute_cfa_program): Mark register as
898 REG_SAVED_REG for DW_CFA_register opcode.
899
dac94105
MK
9002003-11-05 Mark Kettenis <kettenis@gnu.org>
901
902 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
903 %rsp, %rip and %eflags to match ABI-change.
904
85bf2b91
JJ
9052003-11-05 Jeff Johnston <jjohnstn@redhat.com>
906
907 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
908 (ia64_gdbarch_init): Don't bother calculating the os.
909 Instead use the gdbarch_info struct and look at the osabi field.
910 Also use gdbarch_list_lookup_by_info() to look for a
911 candidate gdbarch.
912
cd31fb03
KB
9132003-11-05 Kevin Buettner <kevinb@redhat.com>
914
915 * frv-tdep.c (frv_register_byte): Delete.
916 (frv_extract_return_value, frv_store_return_value)
917 (frv_extract_struct_value_address): Don't call frv_register_byte().
918 Convert to non-deprecated form.
919 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
920 Convert calls to set_gdbarch_deprecated_extract_return_value(),
921 set_gdbarch_deprecated_store_return_value(), and
922 set_gdbarch_deprecated_extract_struct_value_address() into
923 non-deprecated forms.
924
0a056982
AC
9252003-11-05 Andrew Cagney <cagney@redhat.com>
926
927 * mips-tdep.c (mips_dump_tdep): Do not print
928 PRINT_EXTRA_FRAME_INFO.
929 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
930 Rename PRINT_EXTRA_FRAME_INFO.
931 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
932 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
933 (mips_print_extra_frame_info): Delete declaration.
934 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
935
29e0a062
EZ
9362003-11-05 Elena Zannoni <ezannoni@redhat.com>
937
938 * coffread.c (coff_symtab_read): Remove passing of info parameter
939 to prim_record_minimal_symbol_and_info.
940
8af580fc
EZ
9412003-11-05 Elena Zannoni <ezannoni@redhat.com>
942
943 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
944 (decode_base_type): Delete ifdeffed out code.
945
507836c0
AC
9462003-11-04 Andrew Cagney <cagney@redhat.com>
947
948 * symtab.c (find_active_alias): Delete function.
949 (lookup_block_symbol): Delete alias code.
950 * stabsread.c (resolve_live_range): Delete function.
951 (add_live_range): Delete function.
952 (resolve_symbol_reference): Delete function.
953 (define_symbol): Delete live range and alias code.
954 (scan_file_globals): Delete alias code.
955 * symtab.h (SYMBOL_RANGES): Delete macro.
956 (struct range_list): Delete structure.
957 (struct symbol): Delete field "ranges".
958 (SYMBOL_ALIASES): Delete macro.
959 (struct alias_list): Delete structure.
960 (struct symbol): Delete field "aliases".
961
1083b3bc
MS
9622003-11-04 Michael Snyder <msnyder@redhat.com>
963
964 * MAINTAINERS: Remove myself as owner of breakpoints and
965 of sparc/solaris.
966
474e5826
CV
9672003-11-03 Corinna Vinschen <vinschen@redhat.com>
968
969 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
970 (sh_sh4al_dsp_register_name): Ditto.
971 (sh4_nofpu_show_regs): Ditto.
972 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
973 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
974
2160782c
AC
9752003-11-03 Andrew Cagney <cagney@redhat.com>
976
977 * bcache.c: Include "gdb_assert.h".
978 (struct bcache): Add fields "expand_count" and
979 "expand_hash_count".
980 (expand_hash_table): Update the expand counts.
981 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
982 on object sizes and hashes.
983 * Makefile.in (bcache.o): Update dependencies.
984
85302095
AC
9852003-11-03 Andrew Cagney <cagney@redhat.com>
986
987 * exec.c (xfer_memory): Eliminate xfer_fn.
988
526eef89
KB
9892003-10-31 Kevin Buettner <kevinb@redhat.com>
990
991 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
992 (opcodes/frv-desc.h): Include.
993 (iacc0h_regnum, iacc0l_regnum): Define.
994 (last_spr_regnum, frv_num_regs): Update.
995 (new_variant): Don't supply default names for holes in the SPRs.
996 Supply names for iacc0h_regnum and iacc0l_regnum.
997 (frv_register_type): Use symbolic constants first_fpr_regnum and
998 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
999 builtin_type_int instead of builtin_type_int32.
1000 (frv_register_sim_regno): New function.
1001 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1002 * Makefile.in (gdb_sim_frv_h): Define.
1003 (frv-tdep.o): Update dependencies.
1004
9e815ec2
AC
10052003-10-31 Andrew Cagney <cagney@redhat.com>
1006
1007 * avr-tdep.c (avr_frame_this_id): Do not call
1008 deprecated_inside_entry_file.
1009 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1010 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1011 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1012 * arm-tdep.c (arm_prologue_this_id): Ditto.
1013 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1014
e372db49
JB
10152003-10-31 Jim Blandy <jimb@redhat.com>
1016
1017 * elfread.c (elf_symtab_read): Allocate correct number of tail
1018 elements to sectinfo structure. (Fix from Woody LaRue.)
1019
e8bcf01f
AC
10202003-10-31 Andrew Cagney <cagney@redhat.com>
1021
1022 * stack.c (return_command): Use get_frame_type, instead of
1023 CALL_DUMMY_HAS_COMPLETED.
1024 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1025 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1026
4c05fe53
MK
10272003-10-31 Mark Kettenis <kettenis@gnu.org>
1028
1029 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1030 explicitly specify size of array.
1031 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1032 TDEP->sc_num_regs.
1033
c8b91b89
AC
10342003-10-31 Andrew Cagney <cagney@redhat.com>
1035
1036 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1037 function.
1038 (s390_gdbarch_init): Set extract_struct_value_address.
1039 * arch-utils.c (generic_cannot_extract_struct_value_address):
1040 Delete function.
1041 * arch-utils.h (generic_cannot_extract_struct_value_address):
1042 Delete definition.
1043
fdfb6fc8
MK
10442003-10-31 Mark Kettenis <kettenis@gnu.org>
1045
1046 * i386-linux-nat.c (fetch_core_registers): Remove.
1047 (linux_elf_core_fns): Remove.
1048 (_initialize_i386_linux_nat): Remove.
1049
2f4950cd
AC
10502003-10-31 Andrew Cagney <cagney@redhat.com>
1051
1052 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1053 "exec.h".
1054 (exec_entry_point): New function.
1055 (enable_break): Create a "tmp_bfd_target", use that and
1056 entry_point_address when computing the relocation offset.
1057 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1058 * Makefile.in (solib-svr4.o): Update dependencies.
1059
bba2d28d
AC
10602003-10-31 Andrew Cagney <cagney@redhat.com>
1061
1062 * defs.h (XZALLOC): Define.
1063 * target.h (struct target_ops): Add "to_data";
1064 * bfd-target.h, bfd-target.c: New files.
1065 * Makefile.in (SFILES): Add "bfd-target.c".
1066 (COMMON_OBS): Add "bfd-target.o".
1067 (bfd-target.o): Specify dependencies.
1068 (bfd_target_h): Define.
1069 * defs.h (XZALLOC): Define.
1070
6066c3de
AC
10712003-10-31 Andrew Cagney <cagney@redhat.com>
1072
1073 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1074 adjust_breakpoint_address.
1075 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1076 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1077 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1078 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1079
4b8a223f
AC
10802003-10-31 Andrew Cagney <cagney@redhat.com>
1081
1082 * target.h (struct target_ops): Replace "to_read_partial" and
1083 "to_write_partial" with "to_xfer_partial". Update comments.
1084 * target.c (debug_to_write_partial): Delete function.
1085 (debug_to_xfer_partial): Replace debug_to_read_partial.
1086 (add_target, update_current_target, setup_target_debug): Set
1087 "to_xfer_partial" instead of "to_read_partial" and
1088 "to_write_partial".
1089 (default_xfer_partial): Replace "default_write_partial".
1090 (default_read_partial): Delete.
1091 (target_read_partial, target_write_partial): Call
1092 "to_xfer_partial".
1093 * remote.c (init_remote_ops): Set "to_xfer_partial".
1094 (init_remote_async_ops): Ditto.
1095 (remote_xfer_partial): Replace "remote_read_partial".
1096
66a72d25
MK
10972003-10-31 Mark Kettenis <kettenis@gnu.org>
1098
1099 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1100 registers in `fxsave' format.
1101 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1102
9a12a2a0
MK
11032003-10-30 Mark Kettenis <kettenis@gnu.org>
1104
e9f1aad5
MK
1105 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1106 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1107 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1108
bb489b3c
MK
1109 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1110 specify size of array.
1111 (i386_linux_init_abi): Remove initialization of
1112 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1113 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1114
da285bc4
MK
1115 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1116 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1117 core-regset.o.
1118
9a12a2a0
MK
1119 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1120 the ELF header.
1121
0e24ac5d
MK
11222003-10-29 Mark Kettenis <kettenis@gnu.org>
1123
6d6d8e9c
MK
1124 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1125 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1126 core-regset.o.
1127
25e60c9b
MK
1128 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1129
0e24ac5d
MK
1130 * corelow.c: Include "arch-utils.h", "regset.h" and
1131 "gdb_assert.h".
1132 (core_gdbarch): New variable.
1133 (sniff_core_bfd): Don't sniff if we have support for register sets
1134 in CORE_GDBARCH.
1135 (core_close): Reset CORE_GDBARCH.
1136 (core_open): Initialize CORE_GDBARCH.
1137 (get_core_register_section): Use register sets if they are
1138 supported by CORE_GDBARCH.
1139 (get_core_registers): Don't print error message if we have support
1140 for register sets in CORE_GDBARCH.
1141
0a0a4ac3
AC
11422003-10-29 Andrew Cagney <cagney@redhat.com>
1143
1144 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1145 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1146
7b097ae3
MK
11472003-10-29 Mark Kettenis <kettenis@gnu.org>
1148
1149 * objfiles.h (clear_objfile_data): New prototype.
1150 * objfiles.c (clear_objfile_data): New function.
1151 * symfile.c (reread_symbols): Clear per-objfile data.
1152
46f45a4a
JJ
11532003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1154
1155 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1156 printf_unfiltered instead of printf_filtered for output messages.
1157 (add_symbol_file_command): Ditto.
1158 (reread_symbols): Ditto.
1159 (overlay_auto_command): Ditto.
1160 (overlay_manual_command): Ditto.
1161 (overlay_off_command): Ditto.
1162
2b026650
MK
11632003-10-27 Mark Kettenis <kettenis@gnu.org>
1164
1165 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1166 (gdbarch_from_bfd): New function.
1167 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1168 deprecated_select_gdbarch_hack.
1169 * arch-utils.h (gdbarch_from_bfd): New prototype.
1170
0bcad584 11712003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1172
1173 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1174 arch_info. Use warning instead of fprintf_filtered. Do not use
1175 deprecated bfd_printable_arch_mach.
1176
7f398216
KB
11772003-10-26 Kevin Buettner <kevinb@redhat.com>
1178
1179 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1180 Delete.
1181 (frv_register_type): Rename from frv_register_virtual_type. Add
1182 ``struct gdbarch *'' parameter.
1183 (frv_gdbarch_init): Delete calls to the following functions:
1184 set_gdbarch_deprecated_size(),
1185 set_gdbarch_deprecated_register_bytes(),
1186 set_gdbarch_deprecated_register_raw_size(),
1187 set_gdbarch_deprecated_max_register_raw_size(),
1188 set_gdbarch_deprecated_register_virtual_size(),
1189 set_gdbarch_deprecated_max_register_virtual_size(),
1190 set_gdbarch_deprecated_register_virtual_size(),
1191 set_gdbarch_deprecated_register_virtual_type().
1192 Add call to function set_gdbarch_register_type().
1193
bcf48cc7
MK
11942003-10-26 Mark Kettenis <kettenis@gnu.org>
1195
6c7de422
MK
1196 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1197 FDOFF_REGNUM): Remove defines.
1198 * win32-nat.c (do_child_fetch_inferior_registers): Include
1199 "i387-tdep.h".
3e685d41 1200 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1201 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1202 undefine I387_ST0_REGNUM.
1203
f783586b
MK
1204 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1205 * x86-64-tdep.c (x86_64_store_return_value): Use
1206 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1207
bcf48cc7
MK
1208 Change register numbers to enumartion values.
1209 * i386-tdep.h (enum i386_regnum): New.
1210 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1211 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1212 I386_ST0_REGNUM): Remove defines.
1213 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1214 I386_EDI_REGNUM): Remove defines.
1215
b6591e8b
AC
12162003-10-24 Andrew Cagney <cagney@redhat.com>
1217
1218 * target.c: Include "gdbcore.h".
1219 (get_target_memory, get_target_memory_unsigned): New functions.
1220 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1221 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1222 Use get_target_memory_unsigned.
1223 * Makefile.in (target.o): Update dependencies.
1224
5f724446
AC
12252003-10-24 Andrew Cagney <cagney@redhat.com>
1226
ce2826aa
AC
1227 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1228 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1229 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1230 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1231 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1232
5f724446
AC
1233 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1234 (can_run_code_for): Use the OO term "singleton".
1235
fc70c2a0
AC
12362003-10-23 Andrew Cagney <cagney@redhat.com>
1237
1238 * Makefile.in (stack.o): Add $(regcache_h).
1239 * stack.c: Include "regcache.h"
1240 (return_command): Rewrite. Use get_frame_id and
1241 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1242 about unhandled return-values.
1243 * value.h (set_return_value): Delete declaration.
1244 * values.c (set_return_value): Delete function.
1245
4afcc598
JJ
12462003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1247
1248 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1249 (pseudo_regs): Add comment regarding register stack registers.
1250 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1251 (floatformat_valid): New static routine.
1252 (floatformat_ia64_ext): Add name field and set up is_valid routine
1253 to floatformat_valid().
1254 (examine_prologue): For the previous cfm, use
1255 frame_unwind_register()
1256 if the cfm is not stored in a register-stack register. Save the
1257 previous cfm value in the prev_cfm field. Add debug output.
1258 (ia64_frame_this_id): Use frame_id_build_special() to also register
1259 the bsp. Add debug output.
1260 (ia64_sigtramp_frame_this_id): Ditto.
1261 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1262 registers and also add some checks for framelessness before accepting
1263 current register values for fields such as return address. For cfm,
1264 use the cached prev_cfm field if available. Add comment to explain
1265 PSR logic. Add debug output.
1266 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1267 as part of initialization.
1268 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1269 calculated. Cache the bsp and cfm values.
1270 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1271 instead of using ia64_frame_prev_register() which doesn't expect most
1272 registers to be saved. The saved values for bsp and sp
1273 can be taken from the cache. Add debug output.
1274 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1275 the bsp.
1276
6cfae0bc
JB
12772003-10-23 Jim Blandy <jimb@redhat.com>
1278
1279 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1280 architecture the current arch can run code for --- but not if it's
1281 a superset.
1282 (can_run_code_for): New function.
1283
fcd182f9
JW
12842003-10-22 James E Wilson <wilson@specifixinc.com>
1285
1286 * MAINTAINERS: Move myself from paper trail section back to write
1287 after approval section.
1288
4646aa9d
AC
12892003-10-22 Andrew Cagney <cagney@redhat.com>
1290
1291 * exec.h: New file.
1292 * win32-nat.c: Include "exec.h".
1293 * solib.c: Include "exec.h".
1294 * target.h (build_section_table): Delete declaration.
1295 * somsolib.c: Include "exec.h".
1296 (exec_ops): Delete extern declaration.
1297 * rs6000-nat.c: Update copyright. Include "exec.h".
1298 (exec_ops): Delete extern declaration.
1299 * pa64solib.c: Update copyright. Include "exec.h".
1300 (exec_ops): Delete extern declaration.
1301 * exec.c: Update copyright. Include "exec.h".
1302 * corelow.c: Update dependencies. Include "exec.h".
1303 * Makefile.in (exec_h): Define.
1304 (exec.o, somsolib.o): Update dependencies.
1305 (pa64solib.o, corelow.o): Update dependencies.
1306
0088c768
AC
13072003-10-22 Andrew Cagney <cagney@redhat.com>
1308
1309 * target.c: Include "gdb_assert.h" (target_read): Call
1310 "target_read_partial", not "target_write_partial".
1311 (default_read_partial, default_write_partial): New function.
1312 (target_read_partial, target_write_partial): Simplify, assume that
1313 there is always a read/write method.
1314 (update_current_target, add_target): Always set "to_read_partial"
1315 and "to_write_partial".
1316 (target_write, target_read): Fail on a zero byte transfer.
1317 * Makefile.in (target.o): Update dependencies.
1318 * target.h: Update copyright date.
1319 (target_object): Fix typo.
1320
e2d0e7eb
AC
13212003-10-22 Andrew Cagney <cagney@redhat.com>
1322
1323 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1324 multi-arch method, add "targ" parameter.
1325 (struct target_ops): Declare.
1326 * gdbarch.h, gdbarch.c: Re-generate.
1327 * Makefile.in (c-valprint.o): Update dependencies.
1328 * arch-utils.h: Update copyright.
1329 (convert_from_func_ptr_addr_identity): Declare.
1330 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1331 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1332 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1333 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1334 * infcall.c (find_function_addr, call_function_by_hand): Update.
1335 * c-valprint.c: Include "target.h".
1336 (print_function_pointer_address): Update.
1337
f1c07ab0
AC
13382003-10-22 Andrew Cagney <cagney@redhat.com>
1339
1340 * target.c (target_close): New function.
1341 (debug_to_close): Use "target_close".
1342 (push_target): Use "target_close".
1343 (unpush_target): Use "target_close".
1344 (pop_target): Use "target_close".
1345 * target.h (struct target_ops): Add "to_xclose".
1346 (target_open): Delete macro. Move comment to "to_open".
1347 (target_close): Replace macro with function that takes a target.
1348 * top.c (quit_target): Pass "current_target" to "target_close".
1349
5520a790
EZ
13502003-10-21 Elena Zannoni <ezannoni@redhat.com>
1351
1352 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1353 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1354 * symtab.h (lookup_minimal_symbol_text): Update.
1355 * breakpoint.c (create_overlay_event_breakpoint,
1356 create_longjmp_breakpoint): Update callers.
1357 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1358 * symtab.c (find_pc_sect_line): Ditto.
1359
caa92b73
AC
13602003-10-21 Andrew Cagney <cagney@redhat.com>
1361
1362 * target.c (errno): Delete extern declaration.
1363
aa2a9a3c
JJ
13642003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1365
1366 * ia64-tdep.c: Change all occurrences of
1367 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1368 (ia64_frame_prev_register): Minor whitespace change.
1369
4beec2b7
MC
13702003-10-20 Michael Chastain <mec@shout.net>
1371
1372 * config/djgpp/fnchange.lst: Add lines for:
1373 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1374 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1375 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1376 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1377 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1378 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1379 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1380
92ad9cd9
AC
13812003-10-20 Andrew Cagney <cagney@redhat.com>
1382
1383 * values.c (register_value_being_returned): Update comments. Use
1384 "gdbarch_return_value" when available.
1385 (using_struct_return): Ditto.
1386 (set_return_value): Ditto. Use "gdbarch_return_value" when
1387 available.. Print a warning, and not an error, when an unhandled
1388 return type is encountered.
1389 * infcmd.c: Include "gdb_assert.h".
1390 (print_return_value): When gdbarch_return_value_p, and using
1391 struct return, assume that the value is not available.
1392 * defs.h (return_value_convention): Define.
1393 * gdbarch.sh (gdbarch_return_value): New predicate method.
1394 * gdbarch.h, gdbarch.c: Re-generate
1395 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1396
198beae2
AC
13972003-10-20 Andrew Cagney <cagney@redhat.com>
1398
1399 * symtab.c: Replace "struct sec" with "struct bfd_section".
1400 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1401
24d693a6 14022003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1403
1404 * config/djgpp/fnchange.lst: Add lines for:
1405 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1406 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1407 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1408
21ad8dc3
MK
14092003-10-19 Mark Kettenis <kettenis@gnu.org>
1410
1411 * amd64fbsd-nat.c (fetch_inferior_registers,
1412 store_inferior_registers): Remove functions.
1413 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1414
cced5e27
MK
14152003-10-18 Mark Kettenis <kettenis@gnu.org>
1416
1417 Add NetBSD/amd64 native configuration:
1418 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1419 * amd64nbsd-tdep.c: New file.
1420 * amd64nbsd-nat.c: New file.
1421 * amd64bsd-nat.c: New file.
1422 * config/i386/nbsd64.mh: New file.
1423 * config/i386/nbsd64.mt: New file.
1424 * configure.host: Add x86_64-*-netbsd*.
1425 * configure.tgt: Add x86_64-*-netbsd*.
1426 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1427 New targets.
1428 * NEWS (New native configurations): Mention NetBSD/amd64.
1429
666de3fd
MC
14302003-10-17 Michael Chastain <mec@shout.net>
1431
1432 * config/djgpp/fnchange.lst: Remove dead lines for:
1433 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1434 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1435 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1436 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1437 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1438 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1439 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1440 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1441 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1442 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1443 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1444 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1445 gdb/config/sparc/tm-sparclite.h,
1446 gdb/gdbtk/generic/ChangeLog-2001,
1447 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1448 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1449 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1450 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1451 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1452 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1453 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1454 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1455 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1456 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1457 itcl/iwidgets3.0.0/demos/fileselectionbox,
1458 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1459 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1460 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1461 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1462 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1463 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1464 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1465 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1466 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1467 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1468 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1469 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1470 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1471 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1472 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1473 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1474 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1475 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1476 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1477 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1478 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1479 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1480 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1481 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1482 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1483 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1484 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1485 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1486 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1487 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1488 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1489 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1490 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1491 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1492 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1493 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1494 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1495 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1496 itcl/iwidgets3.0.0/demos/scrolledframe,
1497 itcl/iwidgets3.0.0/demos/scrolledhtml,
1498 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1499 itcl/iwidgets3.0.0/demos/scrolledtext,
1500 itcl/iwidgets3.0.0/demos/selectionbox,
1501 itcl/iwidgets3.0.0/demos/selectiondialog,
1502 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1503 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1504 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1505 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1506 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1507 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1508 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1509 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1510 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1511 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1512 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1513 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1514 itcl/iwidgets3.0.0/doc/selectionbox.n,
1515 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1516 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1517 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1518 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1519 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1520 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1521 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1522 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1523 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1524 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1525 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1526 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1527 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1528 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1529 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1530 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1531 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1532 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1533 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1534 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1535 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1536 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1537 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1538 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1539 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1540 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1541 itcl/iwidgets3.0.0/tests/selectionbox.test,
1542 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1543 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1544 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1545 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1546 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1547 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1548 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1549 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1550 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1551 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1552 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1553 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1554 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1555 tk/mac/tkMacProjects.sit.hqx.
1556
1e3ff5ad
AC
15572003-10-17 Andrew Cagney <cagney@redhat.com>
1558
8db32d44
AC
1559 * target.c (target_section_by_addr): New function.
1560 (do_xfer_memory): Use "target_section_by_addr".
1561 * target.h (target_section_by_addr): Declare.
1562
1e3ff5ad
AC
1563 * target.h (struct target_ops): Add "to_read_partial" and
1564 "to_write_partial", delete "to_query".
1565 (target_read_partial, target_write_partial): Declare.
1566 (target_read, target_write): Declare.
1567 (target_query): Delete macro.
1568 * target.c (target_read_partial): New function.
1569 (target_write_partial, target_read, target_write): New function.
1570 (update_current_target): Delete inheritance of "to_query". Add
1571 comments about "to_read_partial" and "to_write_partial".
1572 (debug_to_partial_read, debug_to_partial_write): New functions.
1573 (debug_to_query): Delete function.
1574 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1575 instead of "to_query".
1576 * remote.c (remote_read_partial): Replace "remote_query".
1577 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1578 (init_remote_async_ops): Ditto.
1579 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1580 "target_read_partial" instead of "target_query".
1581 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1582 Use "target_read_partial" instead of "target_query".
1583
48c66725
JJ
15842003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1585
1586 * frame.h (struct frame_id): Add new field: special_addr.
1587 (frame_id_build_special): New prototype.
1588 * frame.c (frame_id_build_special): New function.
1589 (frame_id_build): Change to call frame_id_build_special().
1590 (frame_id_eq): Change to also test special_addr field.
1591 (frame_id_inner): Update comment.
1592
7998dfc3
AC
15932003-10-17 Andrew Cagney <cagney@redhat.com>
1594
1595 * target.c (update_current_target): Perform the target cleanup.
1596 Put the target stack beneath the squashed "current_target".
1597 (add_target): Delete disabled call to "cleanup_target".
1598 (cleanup_target): Delete function.
1599 (push_target, unpush_target): Do not call "cleanup_target".
1600
9c04404e 16012003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1602
1603 * target.c (target_stack): Change to a static target_ops.
1604 (update_current_target): Walk the "struct target_ops" stack.
1605 (pop_target, do_xfer_memory, target_info): Ditto.
1606 (find_target_beneath): Ditto.
1607 (push_target): Rewrite to use the "struct target_ops" stack.
1608 (unpush_target): Ditto.
1609 * target.h (struct target_stack_item): Delete definition.
1610 (target_stack): Delete declaration.
1611 (struct target_ops): Add field "beneath".
1612
c98a2b49 16132003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1614
1615 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1616 declaration.
1617 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1618 (h8300_examine_prologue): Use h8300_normal_mode flag
1619 (h8300_gdbarch_init): Set architecture info for normal mode
1620
506fb367
DJ
16212003-10-16 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * remote.c (remote_protocol_vcont): New variable.
1624 (set_remote_protocol_vcont_packet_cmd): New function.
1625 (show_remote_protocol_vcont_packet_cmd): New function.
1626 (init_all_packet_configs): Handle remote_protocol_vcont.
1627 (remote_vcont_probe): New function.
1628 (remote_vcont_resume): New function.
1629 (remote_resume): Use it.
1630 (remote_async_resume): Call remote_resume.
1631 (_initialize_remote): Add verbose-resume packet commands.
1632
65815ea1
AC
16332003-10-16 Andrew Cagney <cagney@redhat.com>
1634
1635 * infrun.c (handle_inferior_event): Add comment about
1636 "frame_id_inner" being too weak.
1637
40324f1b
EZ
16382003-10-16 Elena Zannoni <ezannoni@redhat.com>
1639
1640 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1641 second parameter, which is always null. Remove
1642 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1643 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1644 accordingly.
1645 * somsolib.c (som_solib_create_inferior_hook,
1646 som_solib_desire_dynamic_linker_symbols): Update callers.
1647 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1648
16492003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1650
1651 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1652 debug interface, SDI (Scalable Debug Interface).
1653 * NEWS: Mention m32r SDI protocol was supported.
1654 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1655 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1656
51931cbb
JJ
16572003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1658
1659 * ia64-linux-tdep.c: Include gdbcore.h.
1660 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1661 (ia64_linux_sigcontext_register_addr): Find the address of the
1662 sigcontext area stored in the sigframe instead of using
1663 a magic offset constant.
1664
84e7fd53
AC
16652003-10-15 Andrew Cagney <cagney@redhat.com>
1666
1667 * remote.c (remote_search): Delete function.
1668 * target.h (target_search): Delete disabled macro.
1669 (struct target_ops): Delete disabled field "to_search".
1670
0f4d7c52
KB
16712003-10-14 Kevin Buettner <kevinb@redhat.com>
1672
1673 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1674 instead of deprecated_inside_entry_file().
1675
2e952408
CV
16762003-10-14 Corinna Vinschen <vinschen@redhat.com>
1677
1678 * sh-tdep.c: Fix copy/paste hangover in comment.
1679 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1680 mode.
1681 (sh3e_sh4_extract_return_value): Ditto.
1682
7e86466e
RH
16832003-10-13 Richard Henderson <rth@redhat.com>
1684
1685 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1686 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1687 match c_val_print a bit closer.
1688
46a16dba
KB
16892003-10-13 Kevin Buettner <kevinb@redhat.com>
1690
1691 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1692 (frv_gdbarch_adjust_breakpoint_address): New function.
1693 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1694 method.
1695
76897487
KB
16962003-10-13 Kevin Buettner <kevinb@redhat.com>
1697
1698 * breakpoint.h (struct breakpoint): Add new member
1699 ``requested_address''.
1700 * breakpoint.c (breakpoint_adjustment_warning)
1701 (adjust_breakpoint_address): New static functions.
1702 (print_it_typical): Issue warning if breakpoint's address is different
1703 from its requested address.
1704 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1705 (breakpoint_re_set_one): Set breakpoint's
1706 ``requested_address'' field. Set ``address'' field to the
1707 result of calling adjust_breakpoint_address() on the requested
1708 address.
1709
a1131521
KB
17102003-10-13 Kevin Buettner <kevinb@redhat.com>
1711
1712 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1713 * gdbarch.h, gdbarch.c: Regenerate.
1714
6ce6d90f
MK
17152003-10-11 Mark Kettenis <kettenis@gnu.org>
1716
155c1d33
MK
1717 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1718 TDEP->sc_num_regs.
1719
8a96bc77
MK
1720 * i386fbsd-tdep.c: New file.
1721 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1722 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1723 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1724 i386bsd-tdep.c.
1725 (_initialize_i386fbsd_tdep): New function.
1726 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1727 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1728 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1729 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1730 TDEP->sc_num_regs.
1731 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1732 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1733 to initialize TDEP->sc_num_regs.
1734 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1735 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1736 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1737 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1738 FreeBSD ELF OS/ABI's here.
1739 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1740 (i386fbsd-tdep.o): New target.
1741 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1742 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1743
477f40d1
MK
1744 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1745 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1746 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1747 in initialization of TDEP->sc_num_regs.
1748
c6b33596
MK
1749 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1750 (x86_64_init_abi): Initialize regset_from_core_section if
1751 appropriate.
1752
8446b36a
MK
1753 * i386-tdep.c (i386_regset_from_core_section): New function.
1754 (i386_gdbarch_init): Initialize regset_from_core_section if
1755 appropriate.
1756 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1757
c783cbd6
MK
1758 * i386-tdep.h (struct regset): Declare opaque.
1759
6ce6d90f
MK
1760 * gdbarch.sh (regset_from_core_section): New method.
1761 (struct regset): Declare opaque.
1762 * gdbarch.c, gdbarch.h: Regenerated.
1763
b98ed7be
AM
17642003-10-11 Alan Modra <amodra@bigpond.net.au>
1765
1766 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1767 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1768 Correct test for pc within section.
1769
f6214256
MK
17702003-10-11 Mark Kettenis <kettenis@gnu.org>
1771
1772 * gdbarch.sh: Remove trailing whitepsace from comments.
1773
a8f4cde1
RM
17742003-10-08 Roland McGrath <roland@redhat.com>
1775
1776 * gcore.c (make_mem_sec): Function removed, folded into ...
1777 (gcore_create_callback): ... here. To omit a section, clear its
1778 SEC_LOAD bit rather than zeroing its size.
1779 Omit read-only sections only if they correspond to a known disk file.
1780 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1781
74276724
MS
17822003-10-10 Michael Snyder <msnyder@redhat.com>
1783
1784 * d10v-tdep.c: Fix typo in comment.
1785
e754ae69
AC
17862003-10-10 Andrew Cagney <cagney@redhat.com>
1787
1788 * rs6000-tdep.c (e500_store_return_value): Delete function.
1789 (e500_extract_return_value): Delete function.
1790 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1791 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1792 "ppc_sysv_abi_restore_return_value" where applicable.
1793 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1794 (ppc_sysv_abi_extract_return_value): Declare.
1795 (ppc_sysv_abi_broken_store_return_value): Declare.
1796 (ppc_sysv_abi_broken_extract_return_value): Declare.
1797 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1798 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1799 start of file.
1800 (do_ppc_sysv_return_value): New function.
1801 (ppc_sysv_abi_extract_return_value): New function.
1802 (ppc_sysv_abi_store_return_value): New function.
1803 (ppc_sysv_abi_broken_extract_return_value): New function.
1804 (ppc_sysv_abi_broken_store_return_value): New function.
1805 (ppc_sysv_abi_use_struct_convention): Call
1806 do_ppc_sysv_return_value.
1807
8d4ce20a
JB
18082003-10-10 J. Brobecker <brobecker@gnat.com>
1809
1810 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1811 to lookup the main function symbol.
1812
afce3d2a
CV
18132003-10-10 Corinna Vinschen <vinschen@redhat.com>
1814
1815 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1816 types correctly.
1817 (sh_push_dummy_call_fpu): Fix argument passing rules.
1818 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1819 float types.
1820 (sh3e_sh4_store_return_value): Ditto.
1821
7fe958be
EZ
18222003-10-10 Elena Zannoni <ezannoni@redhat.com>
1823
1824 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1825 comment.
1826
3f997a97
CV
18272003-10-10 Corinna Vinschen <vinschen@redhat.com>
1828
1829 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1830 more readable code. Accomodate passing of bitfields.
1831
8be9034a
AC
18322003-10-10 Andrew Cagney <cagney@redhat.com>
1833
1834 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1835 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1836 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1837 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1838 (ppc64_sysv_abi_push_dummy_call): New function.
1839 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1840 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1841 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1842
85a453d5
KI
18432003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1844
1845 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1846 * README: Ditto.
1847 * d10v-tdep.c: Ditto.
1848 * h8300-tdep.c: Ditto.
1849 * remote-e7000.c: Ditto.
1850 * remote-hms.c: Ditto.
1851 * ser-e7kpc.c: Ditto.
1852 * sh-stub.c: Ditto.
1853 * sh-tdep.c: Ditto.
1854 * sh-tdep.h: Ditto.
1855 * sh3-rom.c: Ditto.
1856 * sh64-tdep.c: Ditto.
1857 * top.c: Ditto.
1858 * wince.c: Ditto.
1859 * config/d10v/d10v.mt: Ditto.
1860 * config/sh/embed.mt: Ditto.
1861 * config/sh/linux.mt: Ditto.
1862 * config/sh/tm-linux.h: Ditto.
1863 * config/sh/tm-sh.h: Ditto.
1864 * config/sh/wince.mt: Ditto.
1865
221c12ff
AC
18662003-10-09 Andrew Cagney <cagney@redhat.com>
1867
1868 * ppc-tdep.h (struct type): Declare opaque.
1869 * x86-64-tdep.h (struct regcache): Declare opaque.
1870 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1871 coding style.
1872
ef5200c1
AC
18732003-10-09 Andrew Cagney <cagney@redhat.com>
1874
1875 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1876 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1877 (SOFTWARE_SINGLE_STEP_P): Ditto.
1878 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1879 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1880 (SOFTWARE_SINGLE_STEP_P): Ditto.
1881 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1882 software_single_step to rs6000_software_single_step.
a8f4cde1 1883
9644bbdd
AC
18842003-10-09 Andrew Cagney <cagney@redhat.com>
1885
1886 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1887
db72fa6b
MS
18882003-10-09 Michael Snyder <msnyder@redhat.com>
1889
f3efb16c
MS
1890 * frame.h: Fix typo in comment.
1891 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1892 * d10v-tdep.c: Random whitespace/comment tweaks.
1893
9a5cef92
EZ
18942003-10-09 Elena Zannoni <ezannoni@redhat.com>
1895
1896 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1897 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1898 on stack.
a8f4cde1 1899
9a5cef92
EZ
1900 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1901 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1902 in detail.
a8f4cde1 1903
0f317a0c
DJ
19042003-10-09 Daniel Jacobowitz <drow@mvista.com>
1905
1906 * remote-mips.c (mips_initialize): Remove unneeded call to
1907 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1908
bbab2f46
DJ
19092003-10-09 Daniel Jacobowitz <drow@mvista.com>
1910
1911 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1912 a memory pointer.
1913
550950b8
JJ
19142003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1915
1916 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1917 for any lwp we resume.
1918 (running_callback): Add lwps that have pending status events
1919 against them to be considered running.
1920
15c69bc7
KI
19212003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1922
1923 * m32r-tdep.c : Include "dis-asm.h".
1924 * Makefile.in (m32r-tdep.o): Update dependencies.
1925
51065942
JB
19262003-10-06 J. Brobecker <brobecker@gnat.com>
1927
1928 * completer.h (get_gdb_completer_word_break_characters): Delete.
1929 * completer.c: include language.h.
1930 (gdb_completer_word_break_characters): Delete.
1931 (get_gdb_completer_word_break_characters): Delete.
1932 (location_completer): Use the word break characters of the current
1933 language.
1934 (complete_line): Likewise.
1935 (line_completion_function): Likewise.
1936 (skip_quoted_chars): Likewise.
1937 * Makefile.in (completer.o): Add dependency on language.h.
1938 * top.c (init_main): Set the readline word break characters
1939 to GDB's default word break characters.
1940
6084f43a
JB
19412003-10-06 J. Brobecker <brobecker@gnat.com>
1942
1943 * language.h (language_defn): new field, la_word_break_characters.
1944 * language.c (unknown_language_defn): Set new field to
1945 default_word_break_characters.
1946 (auto_language_defn): Likewise.
1947 (local_language_defn): Likewise.
1948 * ada-lang.c (ada_language_defn): Likewise.
1949 * c-lang.c (c_language_defn): Likewise.
1950 (cplus_language_defn): Likewise.
1951 (asm_language_defn): Likewise.
1952 (minimal_language_defn): Likewise.
1953 * f-lang.c (f_language_defn): Likewise.
1954 * jv-lang.c (java_language_defn): Likewise.
1955 * m2-lang.c (m2_language_defn): Likewise.
1956 * objc-lang.c (objc_language_defn): Likewise.
1957 * p-lang.c (pascal_language_defn): Likewise.
1958 * scm-lang.c (scm_language_defn): Likewise.
1959
944fcfab
AC
19602003-10-06 Andrew Cagney <cagney@redhat.com>
1961
1962 * ppc-sysv-tdep.c: Re-indent.
1963
9f0a5303
JB
19642003-10-06 J. Brobecker <brobecker@gnat.com>
1965
1966 * language.h (default_word_break_characters): Add prototype.
1967 * language.c (default_word_break_characters): New function.
1968
7270b6ed
AS
19692003-10-06 Andreas Schwab <schwab@suse.de>
1970
1971 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1972 with %eax.
1973
a5d61f66
AC
19742003-10-06 Andrew Cagney <cagney@redhat.com>
1975
1976 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1977 "h8500-tdep.c".
1978 (z8k-tdep.o): Delete custom build rule.
1979
28a86f5c
AC
19802003-10-06 Andrew Cagney <cagney@redhat.com>
1981
1bfd8a83
AC
1982 * Makefile.in: Update all dependencies.
1983
17144ef8
AC
1984 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1985 No longer list PA as as obsolete candidate. List m32r as
1986 broken instead of obsolete.
a8f4cde1 1987
a5679ae5
AC
1988 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1989 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1990 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1991 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1992 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1993 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1994 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1995 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1996 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1997 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1998 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1999 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2000 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2001 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2002 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2003 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2004 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2005 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2006 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2007 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2008 * config/z8k/z8k.mt: Ditto.
2009
4a8269c0
AC
2010 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2011 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2012 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2013 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2014 sparclite were removed.
2015 * configure.host, configure.tgt: Remove corresponding tuples.
2016
41989fcd
AC
2017 * breakpoint.c, breakpoint.h: Remove obsolete code.
2018 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2019 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2020 * stabsread.h, xcoffread.c: Ditto.
2021
28a86f5c
AC
2022 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2023 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2024 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2025 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2026
4efdaa0d
DL
20272003-10-06 David Lecomber <dsl@sources.redhat.com>
2028
2029 * f-valprint.c: Reformatting
2030
ae53de43
MK
20312003-10-06 Mark Kettenis <kettenis@gnu.org>
2032
a8bb57e7
MK
2033 * x86-64-tdep.c: Remove duplicate comment.
2034
ae53de43
MK
2035 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2036 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2037 names for return values. This fixes a bug since we looked at %rbx
2038 instead of %rdx.
2039
473f17b0
MK
20402003-10-05 Mark Kettenis <kettenis@gnu.org>
2041
2c261fae
MK
2042 * x86-64-tdep.c: Include "regset.h".
2043
473f17b0
MK
2044 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2045 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2046 sizeof_fpregset.
2047 * i386-tdep.c: Include "regset.h".
2048 (i386_supply_gregset): New function.
2049 (i386_supply_fpregset): New function.
2050 (i386_gdbarch_init): Initialze register set-related members of
2051 TDEP.
2052 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2053 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2054
afd48b75
AC
20552003-10-03 Andrew Cagney <cagney@redhat.com>
2056
2057 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2058 set extract_return_value, store_return_value and
2059 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2060 ppc64_sysv_abi_store_return_value and
2061 ppc64_sysv_abi_use_struct_convention.
2062 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2063 (ppc64_sysv_abi_store_return_value): Declare.
2064 (ppc64_sysv_abi_use_struct_convention): Declare.
2065 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2066 (ppc64_sysv_abi_extract_return_value): New function.
2067 (ppc64_sysv_abi_store_return_value): New function.
2068 (ppc64_sysv_abi_use_struct_convention): New function.
2069 (ppc64_sysv_abi_return_value): New function.
2070
9b540880
AC
20712003-10-03 Andrew Cagney <cagney@redhat.com>
2072
2073 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2074 convert a descriptor to a function when it's in the ".opd"
2075 section.
2076
8748518b
CV
20772003-10-03 Corinna Vinschen <vinschen@redhat.com>
2078
2079 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2080 reg_size to keep GCC silent.
2081
0fd85043
CV
20822003-10-03 Corinna Vinschen <vinschen@redhat.com>
2083
2084 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2085 base for DW_EH_PE_textrel encodings.
2086 (read_encoded_value): Add a DW_EH_PE_textrel case.
2087 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2088 section.
2089
37b517aa
MK
20902003-10-03 Mark Kettenis <kettenis@gnu.org>
2091
2092 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2093
12c266ea
AC
20942003-10-02 Andrew Cagney <cagney@redhat.com>
2095
2096 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2097 REGISTER_RAW_SIZE.
2098 * gdbarch.h, gdbarch.c: Re-generate.
2099 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2100 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2101 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2102 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2103 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2104 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2105 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2106 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2107 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2108 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2109 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2110 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2111 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2112 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2113 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2114 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2115
78ba4af6
JB
21162003-10-02 Jim Blandy <jimb@redhat.com>
2117
2118 * dwarf2read.c (struct die_info): Doc fix.
2119
617daa0e
CV
21202003-10-02 Corinna Vinschen <vinschen@redhat.com>
2121
2122 * sh-tdep.c: Running thru gdb_indent.sh.
2123
e5e33cd9
CV
21242003-10-02 Corinna Vinschen <vinschen@redhat.com>
2125
2126 * sh-tdep.c (sh_justify_value_in_reg): New function.
2127 (sh_stack_allocsize): Ditto.
2128 (flt_argreg_array): New array used for floating point argument
2129 passing.
2130 (sh_init_flt_argreg): New function.
a8f4cde1 2131 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2132 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2133 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2134 Fix argument passing strategy.
2135 (sh_push_dummy_call_nofpu): Ditto.
2136
5fe830e4
AC
21372003-10-01 Andrew Cagney <cagney@redhat.com>
2138
2139 * value.h (register_value_being_returned): Declare. Replace
2140 "value_being_returned".
2141 * infcall.c (call_function_by_hand): Use
2142 register_value_being_returned.
2143 * infcmd.c (print_return_value): Call
2144 "register_value_being_returned", handle struct return locally.
2145 * values.c (register_value_being_returned): New function. Replace
2146 "value_being_returned".
a8f4cde1 2147
5fe830e4 21482003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2149
2150 * linux-proc.c (linux_do_registers): New function.
2151 (linux_make_note_section): Use linux_do_registers in case of
2152 single threaded inferior programs.
2153
64f395bf
AC
21542003-10-01 Andrew Cagney <cagney@redhat.com>
2155
2156 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2157 use STRUCT_ADDR. When not using "struct return convention", pass
2158 "0" to "value_being_returned". Add FIXMEs.
2159 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2160 value_being_returned. Add comments.
2161 * values.c (value_being_returned): Add fixme.
2162 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2163 (hppa_value_returned_from_stack): Add FIXME.
2164
639d11d3
DC
21652003-09-30 David Carlton <carlton@kealia.com>
2166
2167 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2168 'has_children' and 'next' by 'child' and 'sibling'.
2169 (read_comp_unit): Rework algorithm, breaking body into
2170 read_die_and_children and read_die_and_siblings.
2171 (read_die_and_children, read_die_and_siblings): New.
2172 (read_full_die): Add 'has_children' argument; set it instead of
2173 the die's 'has_children' field. Minor formatting cleanup.
2174 (free_die_list): Use die->child and die->sibling instead of
2175 die->next.
2176 (dump_die_list): Ditto.
2177 (sibling_die): Use die->sibling.
2178 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2179 'has_children' and 'next' fields.
a8f4cde1
RM
2180 (process_die, read_file_scope, read_func_scope)
2181 (read_lexical_block_scope, read_structure_scope)
2182 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2183 (read_namespace, read_subroutine_type, dump_die): Ditto.
2184
5bffac25
AC
21852003-09-30 Andrew Cagney <cagney@redhat.com>
2186
2187 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2188 to 224, not 220.
2189
f30992d4
AC
21902003-09-30 Andrew Cagney <cagney@redhat.com>
2191
2192 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2193 REGISTER_VIRTUAL_SIZE.
2194 * gdbarch.h, gdbarch.c: Regenerate.
2195 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2196 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2197 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2198
2e092625
AC
21992003-09-29 Andrew Cagney <cagney@redhat.com>
2200
2201 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2202 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2203 * gdbarch.h, gdbarch.c: Regenerate.
2204 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2205 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2206
2207 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2208 * remote-vxmips.c (vx_read_register): Ditto.
2209 * remote-vx68.c (vx_read_register): Ditto.
2210 * gnu-nat.c (inf_validate_procs): Ditto.
2211
7a5dd6ee
JB
22122003-09-29 J. Brobecker <brobecker@gnat.com>
2213
2214 * infcall.c (call_function_by_hand): Fix build failure
2215 introduced in the previous change to this file.
2216
1fe43d45
AC
22172003-09-29 Andrew Cagney <cagney@redhat.com>
2218
2219 * NEWS: Mention Objective-C.
2220
e28a332c
JG
22212003-09-29 Jerome Guitton <guitton@act-europe.fr>
2222
2223 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2224 test if the register has been saved on the stack.
2225 (arm_scan_prologue_cache): When analysing the instruction
2226 "str lr, [sp, #-4]", save the address where lr has been stored.
2227
9ff63c35
AC
22282003-09-28 Andrew Cagney <cagney@redhat.com>
2229
7f5f525d
AC
2230 * frame.c (frame_read_unsigned_register): Delete function.
2231 * frame.h (frame_read_unsigned_register): Delete declaration.
2232 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2233 get_frame_register_unsigned.
2234 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2235 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2236 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2237
7f5f525d
AC
2238 * frame.h (frame_read_register): Delete declaration.
2239 * frame.c (frame_read_register): Delete function.
2240 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2241 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2242 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2243 * mips-tdep.c (mips_register_to_value): Ditto.
2244 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2245 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2246
2247 * frame.c (frame_read_signed_register): Delete function.
2248 (frame_read_unsigned_register): Update comments.
2249 * frame.h (frame_read_signed_register): Delete declaration.
2250 * h8300-tdep.c (h8300_print_register): Use
2251 get_frame_register_signed.
2252 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2253
9ff63c35
AC
2254 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2255 Rename VALUE_RETURNED_FROM_STACK.
2256 * infcmd.c (print_return_value): Update.
2257 * infcall.c (call_function_by_hand): Update.
2258
41d041d6
MK
22592003-09-28 Mark Kettenis <kettenis@gnu.org>
2260
2261 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2262 regcache argument and reverse the order of the other two
2263 arguments. Remove local regcache variable. Determine
2264 architecture from REGCACHE. Update comments.
2265 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2266 reverse the order of the other two arguments. Remove local
2267 regcache variable. Determine architecture from REGCACHE. Update
2268 comments.
2269 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2270 prototypes. Update comments.
2271 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2272 comment.
2273 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2274 Update.
2275 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2276 * i386-interix-nat.c (supply_fpregset): Update.
2277 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2278 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2279 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2280 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2281 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2282 Update.
2283 * i386obsd-tdep.c (fetch_core_registers): Update.
2284 * i386v4-nat.c (supply_fpregset): Update.
2285 * x86-64-linux-nat.c (supply_fpregset): Update.
2286 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2287
1cb97e17
MK
22882003-09-27 Mark Kettenis <kettenis@gnu.org>
2289
5716833c
MK
2290 * i386-tdep.h: Put opaque declarations in alphabetical
2291 order. Remove spurious whitespace.
2292 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2293 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2294 * i386-tdep.c (MM0_REGNUM): Remove define.
2295 (i386_mmx_regnum_p): Add gdbarch argument.
2296 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2297 Rewrite using new macro definitions for FPU/SSE registers.
2298 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2299 definitions from i387-tdep.h.
2300 (i386_register_name): Update.
2301 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2302 new macro definitions for FPU/SSE registers.
2303 (i386_extract_return_value): Determine whether floating-point
2304 registers are present by examining REGCACHE's architecture.
2305 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2306 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2307 FPU/SSE registers.
2308 (i386_register_type): Update.
2309 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2310 definitions for FPU registers. Use REGCACHE's architecture to
2311 determine the appropriate register numbers.
2312 (i386_pseudo_register_read, i386_pseudo_register_write,
2313 i386_register_reggroup_p): Update.
2314 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2315 TDEP->mm0_regnum.
2316 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2317 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2318 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2319 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2320 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2321 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2322 *' to `void *'.
2323 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2324 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2325 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2326 definitions for FPU/SSE registers.
2327 (FXSAVE_MXCSR_ADDR): New define.
2328 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2329 TDEP->mm0_regnum.
2330 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2331 (I387_ST0_REGNUM): Define.
2332
41d35cb0
MK
2333 * regcache.h (get_regcache_arch): New prototype.
2334 * regcache.c (get_regcache_arch): New function.
2335
54e74f72
MK
2336 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2337 whitespace.
2338
1cb97e17
MK
2339 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2340 Initialize using ARRAY_SIZE.
2341
0968aa8c
AC
23422003-09-27 Andrew Cagney <cagney@redhat.com>
2343
2344 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2345 "init_frame_pc_default".
2346 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2347 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2348 * vax-tdep.c (vax_gdbarch_init): Update.
2349 * v850-tdep.c (v850_gdbarch_init): Update.
2350 * sh64-tdep.c (sh64_gdbarch_init): Update.
2351 * s390-tdep.c (s390_gdbarch_init): Update.
2352 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2353 * mcore-tdep.c (mcore_gdbarch_init): Update.
2354 * h8300-tdep.c (h8300_gdbarch_init): Update.
2355 * cris-tdep.c (cris_gdbarch_init): Update.
2356 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2357
54c84734
MK
23582003-09-26 Mark Kettenis <kettenis@gnu.org>
2359
2360 * regset.h: New file.
2361 * Makefile.in (regset_h): Add.
2362
1b1d3794
AC
23632003-09-25 Andrew Cagney <cagney@redhat.com>
2364
2365 * frame.h (deprecated_frame_saved_regs): Rename
2366 get_frame_saved_regs.
2367 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2368 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2369 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2370 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2371 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2372
e6beb428
AC
23732003-09-25 Andrew Cagney <cagney@redhat.com>
2374
2375 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2376 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2377 and Java.
2378 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2379 arm*-*-* do not use the new frame code.
2380
710122da
DC
23812003-09-25 David Carlton <carlton@kealia.com>
2382
2383 * c-exp.y: Remove 'register' declarations.
2384 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2385
79c2c32d
DC
23862003-09-25 David Carlton <carlton@kealia.com>
2387
2388 * c-exp.y: Include cp-support.h. Add qualified_type.
2389 (yylex): Delete nested type hack; add comments.
2390 * cp-namespace.c (cp_lookup_nested_type): New function.
2391 * cp-support.h: Declare cp_lookup_nested_type.
2392 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2393 instead of value_struct_elt_for_reference.
2394 * valops.c: Include cp-support.h.
2395 (value_aggregate_elt): New function.
2396 (value_namespace_elt): Ditto.
2397 (value_struct_elt_for_reference): Make static.
2398 * value.h: Delete declaration of value_struct_elt_for_reference;
2399 add declaration for value_aggregate_elt.
2400 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2401 (valops.o): Ditto.
2402
898c62f5
DJ
24032003-09-25 Daniel Jacobowitz <drow@mvista.com>
2404
2405 * stack.c: Include "reggroups.h".
2406 (frame_info): Only display registers in all_reggroup.
2407 * Makefile.in (stack.o): Update dependencies.
2408
28cd8767
JG
24092003-09-25 Jerome Guitton <guitton@act-europe.fr>
2410
2411 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2412 "add ip, sp #n" in the prologue.
2413 (arm_scan_prologue): Ditto.
2414
a4ab2b5d
JG
24152003-09-25 Jerome Guitton <guitton@act-europe.fr>
2416
2417 * MAINTAINERS (write after approval): Add myself.
2418
3f244638
AS
24192003-09-25 Andreas Schwab <schwab@suse.de>
2420
2421 * m68k-tdep.c: Include "dwarf2-frame.h".
2422 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2423 * Makefile.in (m68k-tdep.o): Update dependencies.
2424
1c0159e0
CV
24252003-09-25 Corinna Vinschen <vinschen@redhat.com>
2426
2427 * sh-tdep.c (struct frame_extra_info): Remove.
2428 (struct sh_frame_cache): New structure.
2429 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2430 (GET_TARGET_REG): Ditto but target register.
2431 (GET_PUSHED_REG): Remove.
2432 (IS_MOV_ARG_TO_REG): New macro.
2433 (IS_MOV_ARG_TO_IND_R14): New macro.
2434 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2435 (IS_MOVW_PCREL_TO_REG): New macro.
2436 (IS_MOVL_PCREL_TO_REG): New macro.
2437 (IS_SUB_REG_FROM_SP): New macro.
2438 (IS_ARG_MOV): Remove.
2439 (IS_MOV_TO_R14): Remove.
2440 (IS_RESTORE_FP): New macro.
2441 (IS_RTS): New macro.
2442 (IS_LDS): New macro.
2443 (IS_MOV_FP_SP): New macro.
2444 (IS_ADD_REG_TO_FP): New macro.
2445 (IS_ADD_IMM_FP): New macro.
2446 (sh_skip_prologue_hard_way): Remove.
2447 (sh_saved_pc_after_call): Remove.
2448 (sh_frame_chain): Remove.
2449 (sh_find_callers_reg): Remove.
a8f4cde1 2450 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2451 (sh_fp_frame_init_saved_regs): Remove.
2452 (sh_init_extra_frame_info): Remove.
2453 (sh_analyze_prologue): New function.
2454 (sh_skip_prologue): Remove deprecated code. Rely on new function
2455 sh_analyze_prologue when after_prologue fails.
2456 (sh_frame_saved_pc): Remove.
2457 (sh_alloc_frame_cache): New function.
2458 (sh_frame_cache): Ditto.
2459 (sh_frame_prev_register): Ditto.
2460 (sh_frame_this_id): Ditto.
2461 (sh_frame_unwind): New structure defining the heuristic frame
2462 sniffer interface.
2463 (sh_frame_sniffer): New function.
2464 (sh_unwind_sp): Ditto.
2465 (sh_unwind_pc): Ditto.
2466 (sh_unwind_dummy_id): Ditto.
2467 (sh_frame_base_address): Ditto.
2468 (sh_frame_base): New structure defining new frame base code.
2469 (sh_in_function_epilogue_p): New function.
2470 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2471 code and to call all new code instead. Initialize dwarf2 and
2472 heuristic frame sniffer.
2473
5f9769d1
PH
24742003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2475
a8f4cde1
RM
2476 * parser-defs.h (struct exp_descriptor): New definition, containing
2477 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2478 evaluating expressions.
2479 (exp_descriptor_standard): Declare new variable.
2480 (print_subexp): Make global and declare here (from expprint.c).
2481 (dump_subexp): Ditto.
2482 (dump_subexp_body_standard): Declare.
2483 (operator_length_standard): Declare.
2484 (op_name_standard): Declare.
2485 (print_subexp): Declare.
2486 (print_subexp_standard): Declare.
2487
2488 * language.h (struct language_defn): Add la_exp_desc field to hold
2489 pointer to table for language-specific operators.
2490 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2491
2492 * parse.c (operator_length): Move most code to new
5f9769d1 2493 operator_length_standard function. Use language-specific information.
a8f4cde1 2494 (operator_length_standard): New function taking most code from
5f9769d1
PH
2495 operator_length.
2496 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2497
2498 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2499 and OP_EXTENDED_LAST.
a8f4cde1
RM
2500
2501 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2502 Make global; remove static declaration.
2503 Move most code to print_subexp_standard.
a8f4cde1 2504 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2505 print_subexp.
2506 (op_name): Add expression to argument signature.
a8f4cde1 2507 Use langauge-specific op_name.
5f9769d1
PH
2508 Move most code to op_name_standard.
2509 (op_name_standard): New function, containing code formerly in op_name.
2510 (dump_subexp): Use new version of op_name function.
2511 Use language-specific dump_subexp_body, and move most existing code to
2512 dump_subexp_body_standard.
2513 (dump_raw_expression): Use new op_name interface.
2514 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2515 (dump_subexp_body_standard): New function, containing code formerly
2516 in dump_subexp_body.
a8f4cde1 2517
5f9769d1
PH
2518 * language.c (unknown_language): Add default la_exp_desc field and
2519 remove evaluate_exp field.
2520 (auto_language): Ditto.
2521 (local_language): Ditto.
2522 * f-lang.c (f_language_defn): Ditto.
2523 * c-lang.c (c_language_defn): Ditto.
2524 (cplus_language_defn): Ditto.
2525 (asm_language_defn): Ditto.
2526 (minimal_language_defn): Ditto.
2527 * p-lang.c (pascal_language_defn): Ditto.
2528 * m2-lang.c (m2_language_defn): Ditto.
2529 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2530
2531 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2532 Java-specific expression evaluator.
2533 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2534 field.
a8f4cde1 2535 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2536 Scheme-specific expression evaluator.
2537 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2538 field.
2539 * objc-lang.c (print_object_command): Take evaluate_exp from the
2540 la_exp_desc field.
a8f4cde1 2541
5f9769d1 2542 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2543
2544 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2545 la_exp_desc's type.
2546 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2547
24daaebc
PH
25482003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2549
2550 * parser-defs.h (operator_length): Declare.
a8f4cde1 2551
24daaebc
PH
2552 * parse.c (length_of_subexp): Use operator_length to get operator
2553 lengths and arities for operators.
2554 Move most code to new operator_length function.
a8f4cde1 2555 (operator_length): New function absorbing most code from
24daaebc
PH
2556 length_of_subexp.
2557 (prefixify_subexp): Remove large case and use operator_length instead.
2558 (parse_exp_1): Use renamings:
a8f4cde1 2559 dump_prefix_expression => dump_raw_expression and
24daaebc 2560 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2561
24daaebc
PH
2562 * expression.h (dump_prefix_expression): Rename to ...
2563 (dump_raw_expression): New name.
2564 (dump_postfix_expression): Rename to ...
2565 (dump_prefix_expression): New name.
a8f4cde1 2566
24daaebc
PH
2567 * expprint.c (dump_subexp): Make global. Add comment.
2568 Move most existing code to dump_subexp_body.
2569 (dump_subexp_body): New function.
2570 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2571 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2572 work before the expression is prefixified.
2573 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2574 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2575 that's what it does.
a8f4cde1 2576 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2577 prefixified expression.
2578 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2579
8c2957c4
JB
25802003-09-22 Jim Blandy <jimb@redhat.com>
2581
2582 * dwarf2read.c (read_array_type): When building the type for an
2583 array of unspecified length, make sure to choose the upper bound
2584 so that the array's total length comes out to be zero --- that's
2585 how we represent such arrays.
2586
592e3010
MC
25872003-09-22 Michael Chastain <mec@shout.net>
2588
2589 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2590
365c70b1
JJ
25912003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2592
2593 * top.c (quit_force): Fix indirect call to quit_target so
2594 a struct qt_args pointer is passed.
2595
5d6eb653
AC
25962003-09-22 Andrew Cagney <cagney@redhat.com>
2597
2598 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2599 * arch-utils.c (init_frame_pc_noop): Delete function.
2600 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2601 "init_frame_pc".
2602 * mips-tdep.c (mips_gdbarch_init): Ditto.
2603 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2604 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2605 declaration.
2606 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2607 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2608 declaration.
2609 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2610
b222a67f
AG
26112003-09-22 Anthony Green <green@redhat.com>
2612
2613 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2614 declaration.
2615
d5b5ac79
AC
26162003-09-20 Andrew Cagney <cagney@redhat.com>
2617
deafb061
AC
2618 * breakpoint.c: Eliminate ARGSUSED.
2619 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2620 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2621 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2622 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2623 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2624 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2625 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2626 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2627 * wince.c, remote-vx.c: Ditto.
2628
d5b5ac79
AC
2629 * cli/cli-script.c: Remove "register" attributes.
2630 * config/pa/tm-hppa.h: Ditto.
2631 * cli/cli-decode.c: Ditto.
2632 * cli/cli-cmds.c: Ditto.
2633
c6316faa
AC
26342003-09-19 Andrew Cagney <cagney@redhat.com>
2635
2636 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2637 DEPRECATED_NPC_REGNUM.
2638 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2639
f4f99b11
CF
26402003-09-19 Christopher Faylor <cgf@redhat.com>
2641
2642 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2643
1708f284
JB
26442003-09-19 Jim Blandy <jimb@redhat.com>
2645
2646 * macrotab.c (macro_include): Use the correct comparison to find
2647 the appropriate place for this inclusion in the list.
2648
b9fbf434
AC
26492003-09-19 Andrew Cagney <cagney@redhat.com>
2650
2651 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2652 (DEPRECATED_HPUX_TEXT_END): Define.
2653 (deprecated_hpux_text_end): Declare.
2654 (struct target_ops): Declare opaque.
2655 * hppah-nat.c (text_end): Make static.
2656 (deprecated_hpux_text_end): New function.
2657 * exec.c (text_end): Delete global variable.
2658 (NEED_TEXT_START_END): Do not define.
2659 (exec_file_attach): Replace code computing "text_end" code with
2660 call to DEPRECATED_HPUX_TEXT_END.
2661
5b03f266
AC
26622003-09-19 Andrew Cagney <cagney@redhat.com>
2663
2664 * utils.c (align_up, align_down): New functions.
2665 * defs.h (align_up, align_down): Declare.
2666 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2667 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2668 and "align_down".
2669 (round_up, round_down): Delete functions.
2670 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2671 "align_down".
2672 (ROUND_DOWN, ROUND_UP): Delete macros.
2673 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2674 * h8300-tdep.c: Replace "round_up" and "round_down" with
2675 "align_up" and "align_down".
2676 (round_up, round_down): Delete macros.
2677 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2678 "align_down".
2679 (ROUND_UP, ROUND_DOWN): Delete macros.
2680
51db5742
JB
26812003-09-18 J. Brobecker <brobecker@gnat.com>
2682
2683 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2684 hard-coded constant. Use the proper machine name instead.
2685
77949794
AC
26862003-09-17 Andrew Cagney <cagney@redhat.com>
2687
2688 * sparc-tdep.c (legacy_register_name): Delete function.
2689 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2690 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2691 * infcmd.c (gdb_register_name): Delete variable.
2692 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2693 REGISTER_NAME and "tm.h".
2694 * gdbarch.h, gdbarch.c: Regenerate.
2695 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2696 REGISTER_NAMES in comments.
2697 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2698 * m68klinux-nat.c (regmap): Ditto.
2699
b55c33cc
JB
27002003-09-17 Jim Blandy <jimb@redhat.com>
2701
2702 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2703
957e27ac
AC
27042003-09-17 Andrew Cagney <cagney@redhat.com>
2705
2706 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2707 (ppcnbsd_init_abi): Set "use_struct_convention" to
2708 "ppcnbsd_use_struct_convention".
2709
192cb3d4
MK
27102003-09-17 Mark Kettenis <kettenis@gnu.org>
2711
2712 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2713 * gdbarch.h, gdbarch.c: Regenerate.
2714 (stabs_argument_has_addr): New architecture method.
2715 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2716 * arch-utils.c: Include "buildsym.h".
2717 (default_stabs_argument_has_addr): New function.
2718 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2719 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2720
efe59759
AC
27212003-09-17 Andrew Cagney <cagney@redhat.com>
2722
2723 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2724 * gdbarch.h, gdbarch.c: Regenerate.
2725 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2726 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2727 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2728 * sparcnbsd-tdep.c: Update.
a8f4cde1 2729
62700349
AC
27302003-09-17 Andrew Cagney <cagney@redhat.com>
2731
2732 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2733 * gdbarch.h, gdbarch.c: Regenerate.
2734 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2735 * d10v-tdep.c, frame.c: Update.
2736 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2737 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2738 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2739 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2740 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2741 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2742 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2743 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2744 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2745 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2746 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2747 * config/pa/nm-hppah.h: Update.
2748
b9ff3018
AC
27492003-09-16 Andrew Cagney <cagney@redhat.com>
2750
2751 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2752 "use_struct_convention" to "ppc_linux_use_struct_convention".
2753 (ppc_linux_use_struct_convention): New function.
2754 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2755 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2756 "rs6000_use_struct_convention".
2757 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2758 declaration.
2759 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2760 Delete function.
2761
aa1ee363
AC
27622003-09-16 Andrew Cagney <cagney@redhat.com>
2763
2764 * buildsym.c: Remove more occurances of "register".
2765 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2766 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2767 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2768 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2769 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2770 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2771 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2772 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2773
f2ea0907
CV
27742003-09-16 Corinna Vinschen <vinschen@redhat.com>
2775
2776 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2777 numbers to enumeration values.
2778 * sh-tdep.c: Accomodate above change.
2779 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2780 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2781 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2782 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2783 (IS_FPUSH): Rename from IS_FMOV.
2784 (sh_extract_struct_value_address): Remove useless comment.
2785 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2786 instead of own local values.
2787 (sh_dump_tdep): Remove.
2788 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2789 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2790
1c704f11
AC
27912003-09-15 Andrew Cagney <cagney@redhat.com>
2792
2793 * doublest.c (convert_floatformat_to_doublest): No longer need to
2794 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2795
ac79b88b
DJ
27962003-09-15 Daniel Jacobowitz <drow@mvista.com>
2797
2798 * values.c (unpack_double): Call floatformat_is_valid.
2799
1c671366
MK
28002003-09-15 Mark Kettenis <kettenis@gnu.org>
2801
de5227fb
MK
2802 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2803 ps_strings into a long.
2804
1c671366
MK
2805 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2806 _initialize_am64fbsd_nat.
2807
a604369a
KB
28082003-09-15 Kevin Buettner <kevinb@redhat.com>
2809
2810 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2811 associated with DW_AT_ranges attribute is out of bounds.
2812
b3cacbee
DL
28132003-09-15 David Lecomber <dsl@sources.redhat.com>
2814
2815 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2816
d0f37bb2
MC
28172003-09-14 Michael Chastain <mec@shout.net>
2818
2819 * config/m68k/nm-apollo68v.h: Delete.
2820 * config/m68k/xm-apollo68v.h: Delete.
2821
69517000
AC
28222003-09-14 Andrew Cagney <cagney@redhat.com>
2823
2824 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2825 * dcache.c: Update copyrights and descriptions.
2826 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2827
ef8b349d
AC
28282003-09-14 Andrew Cagney <cagney@redhat.com>
2829
2830 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2831 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2832
52f0bd74
AC
28332003-09-14 Andrew Cagney <cagney@redhat.com>
2834
2835 * alpha-nat.c: Remove some occurances of "register".
2836 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2837 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2838 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2839 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2840 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2841 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2842 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2843 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2844 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2845 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2846 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2847 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2848 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2849 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2850 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2851 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2852 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2853 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2854 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2855 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2856 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2857 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2858
4a4b3fed
AC
28592003-09-13 Andrew Cagney <cagney@redhat.com>
2860
2861 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2862 * ppc-tdep.h (struct regcache): Declare opaque.
2863 * objfiles.h (struct objfile_data): Declare opaque.
2864 * cp-support.h (struct objfile): Declare opaque.
2865 * linux-nat.h (target_waitstatus): Declare opaque.
2866
2110b94f
MK
28672003-09-14 Mark Kettenis <kettenis@gnu.org>
2868
1c671366
MK
2869 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2870 (stabs_argument_has_addr): New architecture method.
2871 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2872 * arch-utils.c: Include "buildsym.h".
2873 (default_stabs_argument_has_addr): New function.
2874 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2875 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2876
2110b94f
MK
2877 * cris-tdep.c (cris_gdbarch_init): Set
2878 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2879 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2880 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2881 * mips-tdep.c (mips_gdbarch_init): Likewise.
2882 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2883 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2884
48436ce6
AC
28852003-09-13 Andrew Cagney <cagney@redhat.com>
2886
2887 * values.c (using_struct_return): Delete "function" and "funcaddr"
2888 parameters.
2889 * value.h (using_struct_return): Update declaration.
2890 * infcmd.c (finish_command_continuation): Update.
2891 (finish_command): Update.
2892 * infcall.c (call_function_by_hand): Update.
2893 * eval.c (evaluate_subexp_standard): Update.
2894
403d9909
CF
28952003-09-13 Christopher Faylor <cgf@redhat.com>
2896
2897 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2898 SSE registers since gdb will not operate correctly without this.
2899 Restore include file ordering munged in previous change.
2900 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2901
ebf7d56b
MK
29022003-09-13 Mark Kettenis <kettenis@gnu.org>
2903
8e823e25
MK
2904 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2905 REG_STRUCT_HAS_ADDR.
2906 * gdbarch.c, gdbarch.h: Updated.
2907 * infcall.c (call_function_by_hand): Update.
2908 * stabsread.c (define_symbol): Updated.
a8f4cde1 2909
ebf7d56b
MK
2910 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2911
d3f13f72
CF
29122003-09-12 Christopher Faylor <cgf@redhat.com>
2913
2914 * win32-nat.c: Reorganize so that defines used by target headers are
2915 actually defined by the system headers.
2916 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2917 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2918
14f75137
JB
29192003-09-12 Jim Blandy <jimb@redhat.com>
2920
d646061f
JB
2921 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2922 the file has no .data, .bss, or .rodata sections. Instead wait
2923 until we see a variable alleged to live in one of those sections.
2924
2a13f9bc
JB
2925 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2926 .bss section, presume that any variables we find live in the
2927 .rodata section.
2928
4f49b26b
JB
2929 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2930 offsets for global and static variables.
2931
14f75137
JB
2932 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2933 symbol types are, by definition, in the .data section, so it is
2934 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2935 If there is no .data section, there should be no N_DATA or N_DATA
2936 | N_EXT symbols.
2937
212c460c
MK
29382003-09-12 Mark Kettenis <kettenis@gnu.org>
2939
2940 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2941 (amd64fbsd_sigcontext_addr): Rewrite.
2942 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2943 with correct values.
2944 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2945 (amd64fbsd_init_abi): Fix typo.
2946
68856ea3
AC
29472003-09-12 Andrew Cagney <cagney@redhat.com>
2948
2949 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2950 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2951
627b3ba2
AC
29522003-09-12 Andrew Cagney <cagney@redhat.com>
2953
2954 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2955 "entry_file_highpc". Update comments.
2956 * defs.h (deprecated_inside_entry_file): Rename
2957 "inside_entry_file".
2958 * blockframe.c (deprecated_inside_entry_file): Rename
2959 "inside_entry_file".
2960 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2961 * vax-tdep.c (vax_frame_chain): Update.
2962 * sh64-tdep.c (sh64_frame_chain): Update.
2963 * sh-tdep.c (sh_frame_chain): Update.
2964 * rs6000-tdep.c (rs6000_frame_chain): Update.
2965 * ns32k-tdep.c (ns32k_frame_chain): Update.
2966 * mips-tdep.c (mips_frame_chain): Update.
2967 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2968 * m32r-tdep.c (m32r_frame_this_id): Update.
2969 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2970 * frv-tdep.c (frv_frame_this_id): Update.
2971 * d10v-tdep.c (d10v_frame_this_id): Update.
2972 * cris-tdep.c (cris_frame_chain): Update.
2973 * blockframe.c (legacy_frame_chain_valid): Update.
2974 * avr-tdep.c (avr_frame_this_id): Update.
2975 * arm-tdep.c (arm_prologue_this_id): Update.
2976 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2977 * objfiles.c (objfile_relocate): Update.
2978 * mipsread.c (mipscoff_symfile_read): Update.
2979 (mipscoff_symfile_read): Update.
2980 * mdebugread.c (parse_partial_symbols): Update.
2981 * dwarfread.c (read_file_scope): Update.
2982 * dwarf2read.c (read_file_scope): Update.
2983 * dbxread.c (read_dbx_symtab): Update.
2984 (read_dbx_symtab): Update.
2985 * coffread.c (complete_symtab): Update.
2986
b0abbc58
JJ
29872003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2988
2989 * top.c (quit_target): New static helper function.
2990 (quit_force): Moved code to quit_target(). Call quit_target()
2991 via catch_errors() to catch errors during quit.
2992
a1632d59
DC
29932003-09-11 David Carlton <carlton@kealia.com>
2994
2995 * buildsym.c (finish_block): Use allocate_block to allocate the
2996 block.
2997 * mdebugread.c (new_block): Add FIXME.
2998
5c4e30ca
DC
29992003-09-11 David Carlton <carlton@kealia.com>
3000
3001 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3002 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3003 (recursive_dump_type): Ditto.
3004 * printcmd.c (print_formatted): Ditto.
3005 * typeprint.c (print_type_scalar): Ditto.
3006 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3007 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3008 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3009 maint_cplus_cmd_list.
3010 * cp-support.c: Make maint_cplus_cmd_list extern.
3011 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3012 command.h.
3013 (lookup_symbol_file): Look in possible namespace blocks when
3014 appropriate.
3015 (initialize_namespace_symtab): New.
3016 (get_possible_namespace_block, free_namespace_block)
3017 (check_possible_namespace_symbols)
3018 (check_possible_namespace_symbols_loop)
3019 (check_one_possible_namespace_symbol)
3020 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3021 (_initialize_cp_namespace): Ditto.
3022 * block.h: Declare allocate_block.
3023 * block.c (allocate_block): New.
3024 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3025 allocate_block.
3026 * symfile.h: Update declaration of add_psymbol_to_list.
3027 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3028 question.
3029 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3030 scan_partial_symbols_call.
3031 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3032 helper functions.
3033 (add_partial_symbol): If necessary, scan mangled names for names
3034 of namespaces.
3035 (add_partial_namespace): Add NAMESPACE argument; generate partial
3036 symbols associated to namespaces.
3037 (add_partial_enumeration): Add NAMESPACE argument.
3038 (new_symbol): Allow namespace syms.
3039 (read_namespace): Generate namespace syms.
3040 * objfiles.h: Add opaque declaration of struct symtab.
3041 (struct objfile): Add cp_namespace_symtab member.
3042 * objfiles.c (allocate_objfile): Set
3043 objfile->cp_namespace_symtab.
3044 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3045 dictionary_h, command_h.
3046
33a7c2fc
AC
30472003-09-11 Andrew Cagney <cagney@redhat.com>
3048
3049 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3050 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3051 near the function's end.
3052 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3053 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3054 regcache_raw_write_signed to set SP_REGNUM.
3055
63cd24fe
EZ
30562003-09-11 Elena Zannoni <ezannoni@redhat.com>
3057
3058 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3059 orig_addrs is set up properly.
3060
f27dd7fd
AC
30612003-09-11 Andrew Cagney <cagney@redhat.com>
3062
3063 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3064 * gdbarch.h, gdbarch.c: Re-generate.
3065 * infcall.c (call_function_by_hand): Update.
3066 * hppa-tdep.c (hppa_push_arguments): Update.
3067 * ada-lang.c (place_on_stack): Update.
3068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3069 * sparc-tdep.c (sparc_gdbarch_init): Update.
3070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3071 * hppa-tdep.c (hppa_gdbarch_init): Update.
3072 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3073 stack_align.
3074
f630a401
DJ
30752003-09-11 Daniel Jacobowitz <drow@mvista.com>
3076
3077 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3078 register do need a frame.
3079
0ddabb4c
AC
30802003-09-11 Andrew Cagney <cagney@redhat.com>
3081
3082 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3083 buildable since GDB 5.0.
3084 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3085 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3086 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3087 * irix4-nat.c: Delete file.
3088 * config/mips/irix4.mh: Delete file.
3089 * config/mips/irix3.mh: Delete file.
3090 * config/mips/irix3.mt: Delete file.
3091 * config/mips/tm-irix3.h: Delete file.
3092 * config/mips/nm-irix3.h: Delete file.
3093 * config/mips/xm-irix3.h: Delete file.
3094 * config/mips/nm-irix4.h: Delete file.
3095 * config/mips/xm-irix4.h: Delete file.
3096 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3097
fde2cceb
JB
30982003-09-10 J. Brobecker <brobecker@gnat.com>
3099
3100 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3101 * Makefile.in (hppa-tdep.o): Update dependencies.
3102
66f667f5
JW
31032003-09-10 James E Wilson <wilson@specifixinc.com>
3104
ef5fd69f
JW
3105 * MAINTAINERS: Change my e-mail address. Move to paper trail
3106 section.
66f667f5 3107
53e8aaea
KB
31082003-09-10 Kevin Buettner <kevinb@redhat.com>
3109
3110 * MAINTAINERS (frv): New ISA entry.
3111
dcc6aaff
KB
31122003-09-10 Kevin Buettner <kevinb@redhat.com>
3113
3114 * frv-tdep.c (dis-asm.h): Include.
3115 * Makefile.in (frv-tdep.o): Update dependencies.
3116
932644f0
JJ
31172003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3118
3119 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3120 Fix typo for high range of floating registers.
3121
91c24f0a
DC
31222003-09-09 David Carlton <carlton@kealia.com>
3123
3124 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3125 highpc initialization here out of scan_partial_symbols.
3126 (scan_partial_symbols): Restructure into a recursive version,
3127 calling add_partial_namespace and add_partial_enumeration when
3128 appropriate.
3129 (add_partial_namespace): New.
3130 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3131
c9263853
AC
31322003-09-09 Andrew Cagney <cagney@redhat.com>
3133
e56a0ecc
AC
3134 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3135 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3136 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3137 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3138
794a477a
AC
3139 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3140 (rs6000_push_dummy_call): Set the "TOC" register.
3141
c9263853
AC
3142 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3143 methods "max_register_raw_size", "max_register_virtual_size" or
3144 "register_virtual_size".
3145
afa7d0b2
ILT
31462003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3147
3148 * MAINTAINERS: Update my e-mail address.
3149
7a41266b
AC
31502003-09-09 Andrew Cagney <cagney@redhat.com>
3151
3152 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3153 (rs6000_push_dummy_call): Store the struct return address.
3154 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3155
77b2b6d4
AC
31562003-09-09 Andrew Cagney <cagney@redhat.com>
3157
3158 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3159 "ppc_sysv_abi_push_arguments".
3160 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3161 "ppc_sysv_abi_push_arguments".
3162 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3163 instead of "push_arguments".
3164 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3165
e8a7b686
AC
31662003-09-09 Andrew Cagney <cagney@redhat.com>
3167
3168 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3169 instead of CALL_DUMMY_ADDRESS.
3170
f86f5ca3
PH
31712003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3172
3173 * p-lang.c: Eliminate "register".
3174 * c-lang.c: Ditto.
3175 * expprint.c: Ditto.
3176 * f-lang.c: Ditto.
3177 * jv-lang.c: Ditto.
3178 * language.c: Ditto.
3179 * m2-lang.c: Ditto.
3180 * parse.c: Ditto.
3181 * scm-lang.c: Ditto.
3182 * objc-lang.c: Ditto.
3183
83ee270e
NC
31842003-09-09 Nick Clifton <nickc@redhat.com>
3185
3186 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3187
a89aa300
AC
31882003-09-04 Andrew Cagney <cagney@redhat.com>
3189
3190 * avr-tdep.c: Include "dis-asm.h".
3191 * cris-tdep.c: Include "dis-asm.h".
3192 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3193 instead of corresponding typedef.
3194 * h8300-tdep.c: Include "dis-asm.h".
3195 * ia64-tdep.c: Include "dis-asm.h".
3196 * i386-tdep.c: Include "dis-asm.h".
3197 (i386_print_insn): Use "struct disassemble_info" instead of
3198 corresponding typedef.
3199 * m68k-tdep.c: Include "dis-asm.h".
3200 * mcore-tdep.c: Include "dis-asm.h".
3201 * mips-tdep.c: Include "dis-asm.h".
3202 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3203 instead of corresponding typedef.
3204 * ns32k-tdep.c: Include "dis-asm.h".
3205 * s390-tdep.c: Include "dis-asm.h".
3206 * sparc-tdep.c: Include "dis-asm.h".
3207 * vax-tdep.c: Include "dis-asm.h".
3208 * v850-tdep.c: Include "dis-asm.h".
3209 * mn10300-tdep.c: Include "dis-asm.h".
3210 * rs6000-tdep.c: Include "dis-asm.h".
3211 * xstormy16-tdep.c: Include "dis-asm.h".
3212 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3213 print_insn_xstormy16.
3214 * Makefile.in (v850-tdep.o): Update dependencies.
3215 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3216 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3217 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3218 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3219 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3220 (gdbarch_h): Remove $(dis_asm_h).
3221 * disasm.c: Include "dis-asm.h".
3222 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3223 corresponding typedef.
3224 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3225 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3226 * gdbarch.sh: Do not include "dis-asm.h".
3227 (struct disassemble_info): Declare opaque.
3228 (TARGET_PRINT_INSN): Update declaration.
3229 * gdbarch.h, gdbarch.c: Re-generate.
3230
88a82a65
AC
32312003-09-08 Andrew Cagney <cagney@redhat.com>
3232
3233 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3234 CALL_DUMMY_ADDRESS, change to a predicate.
3235 * gdbarch.h, gdbarch.c: Re-generate.
3236 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3237 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3238 * infcall.c (call_function_by_hand): Ditto.
3239 * sparc-tdep.c (sparc_push_return_address): Ditto.
3240 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3241 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3242 CALL_DUMMY_ADDRESS with entry_point_address.
3243 * v850-tdep.c (v850_push_return_address): Ditto.
3244 * s390-tdep.c (s390_push_return_address): Ditto.
3245 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3246 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3247 * mcore-tdep.c (mcore_push_return_address): Ditto.
3248 * cris-tdep.c (cris_push_return_address): Ditto.
3249 * arm-tdep.c (arm_push_return_address): Ditto.
3250
3e2c4033
AC
32512003-09-08 Andrew Cagney <cagney@redhat.com>
3252
3253 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3254 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3255 and REG_UNMODIFIED to REG_SAME_VALUE.
3256 (execute_cfa_program): Update.
3257 (dwarf2_frame_cache): Update. Initialize table to
3258 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3259 location.
3260 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3261
39efb398
AC
32622003-09-08 Andrew Cagney <cagney@redhat.com>
3263
3264 * gnu-nat.c: Remove "inline" function attribute.
3265 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3266
f5cb5aca
KB
32672003-09-08 Kevin Buettner <kevinb@redhat.com>
3268
3269 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3270 target.
3271
1cb761c7
KB
32722003-09-08 Kevin Buettner <kevinb@redhat.com>
3273
3274 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3275 (frame_extra_info): Rename this struct to frv_unwind_cache.
3276 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3277 Add fields ``prev_sp'' and ``base''.
3278 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3279 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3280 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3281 Delete.
3282 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3283 Revise all callers. Fill in the unwind cache argument and make
3284 other adjustments to account for new frame mechanisms.
3285 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3286 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3287 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3288 (frv_frame_unwind, frv_frame_base): New structs.
3289 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3290 additional arguments expected by this method and adjust function
3291 body accordingly.
3292 (frv_gdbarch_init): Remove calls to the following functions:
3293 set_gdbarch_deprecated_init_frame_pc(),
3294 set_gdbarch_deprecated_saved_pc_after_call(),
3295 set_gdbarch_deprecated_frame_chain(),
3296 set_gdbarch_deprecated_frame_saved_pc(),
3297 set_gdbarch_deprecated_frame_init_saved_regs(),
3298 set_gdbarch_deprecated_push_arguments(),
3299 set_gdbarch_deprecated_push_return_address(),
3300 set_gdbarch_deprecated_pop_frame(),
3301 set_gdbarch_deprecated_call_dummy_words(),
3302 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3303 set_gdbarch_deprecated_init_extra_frame_info(),
3304 set_gdbarch_deprecated_dummy_write_sp(), and
3305 set_gdbarch_deprecated_pc_in_call_dummy().
3306 Add calls to the following functions:
3307 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3308 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3309 frame_base_set_default().
3310 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3311
68f6cf99
MK
33122003-09-09 Mark Kettenis <kettenis@gnu.org>
3313
3314 * dwarf2-frame.c (read_encoded_value): Add support for
3315 DW_EH_PE_aligned encoding.
3316
73b65bb0
DJ
33172003-09-08 Daniel Jacobowitz <drow@mvista.com>
3318
3319 * infrun.c (normal_stop): Don't print a message if the inferior
3320 has exited.
3321
7c8a5605
JB
33222003-09-08 Jim Blandy <jimb@redhat.com>
3323
3324 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3325 * dbxread.c: #include "gdb_assert.h".
3326 (read_dbx_symtab): If the objfile has no .data section, use the
3327 section index for the .bss section instead.
3328
7dd88986
DJ
33292003-09-08 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * frame.c (deprecated_safe_get_selected_frame): New function.
3332 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3333 * findvar.c (read_var_value): Call it.
3334
55ff77ac
CV
33352003-09-08 Corinna Vinschen <vinschen@redhat.com>
3336
3337 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3338 (sh64-tdep.o): Add dependencies.
3339 * configure.tgt: Add FIXME to sh-*-linux*.
3340 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3341 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3342 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3343 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3344 * sh64-tdep.c: New file, containing all sh64 related code from
3345 sh-tdep.c.
3346 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3347 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3348 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3349 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3350 * config/sh/wince.mt (TDEPFILES): Ditto.
3351
bfb39158
DJ
33522003-09-07 Daniel Jacobowitz <drow@mvista.com>
3353
3354 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3355 (stop_wait_callback): Handle !lp->signalled also.
3356 (lin_lwp_has_pending, flush_callback): New functions.
3357 (lin_lwp_wait): Call flush_callback.
3358 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3359 (linux_proc_pending_signals): New function.
3360 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3361
9407de8e
DJ
33622003-09-07 Daniel Jacobowitz <drow@mvista.com>
3363
3364 From Nick Kelsey <nickk@ubicom.com>:
3365 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3366 when the stop PC is at the beginning of a function also.
3367
2ef47cd0
DJ
33682003-09-06 Daniel Jacobowitz <drow@mvista.com>
3369
3370 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3371 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3372
6f4492c8
MK
33732003-09-06 Mark Kettenis <kettenis@gnu.org>
3374
3375 * sol-thread.c: Include "gdb_string.h".
3376
d3420b2f
MK
33772003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3378
3379 * gcore.c: Reorder include files in alphabetical order. Include
3380 "gdb_assert.h". Various coding style fixes.
3381 (derive_stack_segment, derive_heap_segment): Replace check for
3382 non-null BOTTOM and TOP with gdb_assert.
3383 (derive_heap_segment): Replace check for successful creation of
3384 ZERO with gdb_assert.
3385 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3386
5220ea4c
AC
33872003-09-04 Andrew Cagney <cagney@redhat.com>
3388
3389 * thread-db.c (verbose_dlsym): New function.
3390 (thread_db_load): Use verbose_dlsym
3391 (thread_db_new_objfile): Print that libthread_db was loaded, and
3392 that thread debugging was enabled.
3393
6e8c2c06
AC
33942003-09-04 Andrew Cagney <cagney@redhat.com>
3395
3396 * configure.tgt: Add "mips64*-*-*" target. Delete
3397 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3398 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3399 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3400 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3401 mips*-sony-*, and mips64*-*-elf* targets.
3402 * config/mips/embedl.mt: Delete file.
3403 * config/mips/embedl64.mt: Delete file.
3404 * config/mips/mips.mt: Delete file.
3405 * config/mips/mips64.mt: Delete file.
3406 * config/mips/tm-embed.h: Delete file.
3407 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3408 * config/mips/embed64.mt: Delete out-of-date comment.
3409
3a3bc038
AC
34102003-09-04 Andrew Cagney <cagney@redhat.com>
3411
3412 * hppa-tdep.c (hppa_gdbarch_init): Set
3413 "have_nonsteppable_watchpoint".
3414 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3415 * mips-tdep.c (mips_dump_tdep): Do not print
3416 HAVE_NONSTEPPABLE_WATCHPOINT.
3417 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3418 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3419 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3420 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3421
a957e642
CV
34222003-09-04 Corinna Vinschen <vinschen@redhat.com>
3423
3424 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3425 unused code. Add comment.
3426
a6fbcf2f
CV
34272003-09-04 Corinna Vinschen <vinschen@redhat.com>
3428
3429 * breakpoint.c (watchpoint_check): Check for pc being in an
3430 epilogue if watchpoint frame couldn't be found.
3431
c14a44d5
AC
34322003-09-04 Andrew Cagney <cagney@redhat.com>
3433
3434 * Makefile.in: Re-generate all dependencies.
3435
f6c40618
AC
34362003-09-03 Andrew Cagney <cagney@redhat.com>
3437
3438 * arch-utils.h (legacy_print_insn): Delete declaration.
3439 * arch-utils.c (legacy_print_insn): Delete function.
3440 * disasm.c (deprecated_tm_print_insn_info): Delete.
3441 (_initialize_disasm): Delete function, contained code initializing
3442 deprecated_tm_print_insn_info.
3443 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3444 (deprecated_tm_print_insn_info): Delete.
3445 (TARGET_PRINT_INSN): Do not provide a default.
3446 * gdbarch.h, gdbarch.c: Re-generate.
3447
242e8be5
AC
34482003-09-03 Andrew Cagney <cagney@redhat.com>
3449
3450 * disasm.c (fprintf_disasm): New function.
3451 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3452 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3453 reverts 2003-08-14 change.
3454 (_initialize_disasm): Call "init_disassemble_info", instead of
3455 INIT_DISASSEMBLE_INFO_NO_ARCH.
3456
3ffc3dda
MS
34572003-09-03 Michael Snyder <msnyder@redhat.com>
3458
3459 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3460
52d16ba8
AC
34612003-09-03 Andrew Cagney <cagney@redhat.com>
3462
3463 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3464 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3465 * symfile.c (syms_from_objfile): Update.
3466 (reread_symbols): `Update
3467 * exec.c (exec_file_attach): Update.
3468 (exec_file_attach): Update.
3469 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3470 2003-08-29 change.
3471 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3472
eb5492fa
DJ
34732003-09-03 Daniel Jacobowitz <drow@mvista.com>
3474
3475 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3476 trad-frame.h.
3477 (arm_get_cache): Delete macro.
3478 (struct arm_prologue_cache): Update comments. Make saved_regs into
3479 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3480 to prev_sp.
3481 (thumb_scan_prologue): Update for cache changes. Don't call
3482 DEPRECATED_PC_IN_CALL_DUMMY.
3483 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3484 argument and use it in desperation search for our prologue. Do not
3485 search past the specified PC.
3486 (arm_make_prologue_cache): Simplify.
3487
3488 (arm_prologue_this_id, arm_prologue_prev_register)
3489 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3490 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3491 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3492 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3493 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3494
3495 (arm_frame_chain_valid, arm_find_callers_reg)
3496 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3497 (arm_pop_frame): Delete obsolete methods.
3498 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3499
3500 (arm_gdbarch_init): Update for new frame methods. Register prologue
3501 and sigtramp unwinders. Set the default frame base method.
3502
3503 * Makefile.in (arm-tdep.o): Update dependencies.
3504 * varobj.c (find_frame_addr_in_frame_chain): Call
3505 get_frame_base_address.
3506 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3507
24de872b
DJ
35082003-09-03 Daniel Jacobowitz <drow@mvista.com>
3509
3510 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3511 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3512 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3513 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3514 Take NEXT_FRAME and CACHE arguments. Call
3515 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3516 Set unwound_pc in CACHE instead of modifying the frame argument.
3517 Don't bother checking the frame type when looking for sigtramp
3518 frames.
3519 (arm_make_prologue_cache, arm_frame_chain)
3520 (arm_init_extra_frame_info): New functions.
3521
9b8d791a
DJ
35222003-09-03 Daniel Jacobowitz <drow@mvista.com>
3523
3524 * arm-tdep.c (arm_get_cache): Define.
3525 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3526 unwound_sp, unwound_pc, and saved_regs.
3527 (thumb_scan_prologue): Take a cache instead of the frame.
3528 (arm_scan_prologue): Likewise.
3529 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3530 instead of a temporary frame.
3531 (arm_init_extra_frame_info): Allocate and use a cache.
3532 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3533
7ee3275f
AC
35342003-09-03 Andrew Cagney <cagney@redhat.com>
3535
3536 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3537 * config/mips/wince.mt (TM_CLIBS): Ditto.
3538 * config/sh/wince.mt (TM_CLIBS): Ditto.
3539 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3540 * config/sparc/sp64.mt (CC): Delete.
3541
57b29be7
AC
35422003-09-03 Andrew Cagney <cagney@redhat.com>
3543
3544 * defs.h: Do not include "arch-utils.h".
3545 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3546 GDB_MULTI_ARCH_PURE.
3547 * configure.in (GDB_MULTI_ARCH): Do not define.
3548 * configure, config.in: Regenerate.
3549 * configure.tgt: Do not set variable "gdb_multi_arch".
3550 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3551 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3552 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3553 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3554 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3555 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3556 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3557 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3558 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3559 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3560 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3561 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3562 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3563 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3564 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3565 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3566 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3567 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3568
12e035e2
MC
35692003-08-30 Michael Chastain <mec@shout.net>
3570
3571 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3572 * config/m68k/nm-hp300hpux.h: Delete.
3573 * config/m68k/tm-hp300hpux.h: Delete.
3574 * config/m68k/xm-hp300hpux.h: Delete.
3575 * config/m68k/xm-hp300bsd.h: Delete.
3576 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3577 tm-hp300hpux.h, xm-hp300hpux.h.
3578 * somsolib.c: Remove comment about hp300 shared libraries.
3579
bda34dc2
MK
35802003-08-31 Mark Kettenis <kettenis@gnu.org>
3581
5bca7895
MK
3582 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3583 Only define PTRACE_GET_THREAD_AREA is not already defined.
3584 Various style fixes in code and comments and some additional
3585 spelling fixes in comments. Move after functions dealing with
3586 debug registers.
3587 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3588 Fix coding-style.
3589
bda34dc2
MK
3590 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3591 frame_unwind_register_unsigned instead of
3592 frame_unwind_unsigned_register.
3593
c890192f
MK
35942003-08-30 Mark Kettenis <kettenis@gnu.org>
3595
3596 * configure.in: Search for gethostbyname in libnsl.
3597 * configure: Regenerated.
3598
60fac5b8
MK
35992003-08-29 Mark Kettenis <kettenis@gnu.org>
3600
e294916c
MK
3601 * configure.in: Remove redundant AC_MSG_RESULT in check for
3602 uintptr_t in stdint.h.
3603 * configure: Regenerated.
3604
c40d267a
MK
3605 * amd64-nat.h (struct regcache): Add opaque declaration.
3606
60fac5b8
MK
3607 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3608 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3609 Change "register array" to "register cache" in comments.
3610 (x86_64_linux_gregset64_reg_offset): New variable.
3611 (GETREGS_SUPPLIES): Remove macro.
3612 (supply_gregset): Call amd64_supply_native_gregset instead of
3613 x86_64_linux_supply_gregset.
3614 (fill_gregset): Rename `regno' to `regnum'. Call
3615 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3616 (store_regs): Rename `regno' to `regnum'.
3617 (store_fpregs): Rename `regno' to `regnum'.
3618 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3619 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3620 Reorganize function a bit.
3621 (store_inferior_registers): Rename `regno' to `regnum'. Use
3622 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3623 Reorganize function a bit.
3624 (_initialize_x86_64_linux_nat): New function.
3625 * config/i386/x86-64linux.mh.
3626
546143b6
AC
36272003-08-29 Andrew Cagney <cagney@redhat.com>
3628
3629 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3630 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3631 (target_remove_watchpoint): Delete macro.
3632 (target_insert_watchpoint): Delete macro.
3633 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3634 (remote_mips_stopped_by_watchpoint): Delete declaration.
3635 (remote_mips_remove_watchpoint): Delete declaration.
3636 (remote_mips_set_watchpoint): Delete declaration.
3637 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3638 * remote-mips.c (_initialize_remote_mips): Set
3639 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3640 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3641 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3642 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3643 (mips_stopped_by_watchpoint): Rename
3644 remote_mips_stopped_by_watchpoint.
3645 (mips_can_hardware_watchpoint): Rename
3646 remote_mips_can_use_hardware_watchpoint, update function
3647 signature.
3648
7bace51b
MK
36492003-08-29 Mark Kettenis <kettenis@gnu.org>
3650
b0f5c6f2
MK
3651 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3652 USER_DS. We haven't given them a register number yet.
3653
2a6d284d
MK
3654 * amd64-nat.h: New file.
3655 * amd64-nat.c: New file.
3656 * amd64fbsd-nat.c: Include "amd64-nat.h".
3657 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3658 (amd64fbsd32_r_reg_offset): New variable.
3659 (supply_gregset): Simply call amd64_supply_native_gregset.
3660 (fill_gregset): Rename `regno' to `regnum'. Simply call
3661 amd64_collect_native_gregset.
3662 (fill_fpregset): Rename `regno' to `regnum'.
3663 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3664 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3665 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3666 `fpregset_t'. Call amd64_supply_native_gregset instead of
3667 supply_gregset. Call x86_64_supply_fxsave instead of
3668 supply_fpregset.
3669 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3670 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3671 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3672 `fpregset_t'. Call amd64_collect_native_gregset instead of
3673 fill_gregset. Call x86_64_collect_fxsave instead of
3674 fill_fpregset.
3675 (_initialize_am64fbsd_nat): Initialize
3676 amd64_native_gregset32_reg_offset and
3677 amd64_native_gregset64_reg_offset.
3678 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3679
a16d75cc
MK
3680 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3681 null pointer. Fix typo in comment.
3682
7bace51b
MK
3683 * regcache.c (supply_register): Reimplement to call
3684 regcache_raw_supply.
3685 (regcache_collect): Reimplement by calling regcache_raw_collect.
3686
9a661b68
MK
36872003-08-28 Mark Kettenis <kettenis@gnu.org>
3688
3689 * regcache.c (register_buffer): Consitify first argument.
3690 (regcache_raw_supply, regcache_raw_collect): New
3691 functions.
3692
e94cc8fa
DJ
36932003-08-28 Daniel Jacobowitz <drow@mvista.com>
3694
3695 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3696 by Nathan J. Williams.
3697
c64bd0ce
DJ
36982003-08-28 Daniel Jacobowitz <drow@mvista.com>
3699
3700 * lin-lwp.c (wait_lwp): New function, copied from
3701 stop_wait_callback. Clean up.
3702 (stop_wait_callback): Use wait_lwp.
3703
e5ab0dce
AC
37042003-08-28 Andrew Cagney <cagney@redhat.com>
3705
3706 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3707 flavour and disassembler options.
3708 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3709 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3710 deprecated_tm_print_insn_info.
a8f4cde1 3711
a788de9b
AC
37122003-08-27 Andrew Cagney <cagney@redhat.com>
3713
3714 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3715 Use target_read_memory.
3716 (s390_get_frame_info): Update. Do not reference
3717 deprecated_tm_print_insn_info.
3718 (s390_check_function_end, s390_is_sigreturn): Ditto.
3719
36482093
AC
37202003-08-27 Andrew Cagney <cagney@redhat.com>
3721
3722 * Makefile.in (cris-tdep.o): Update dependencies.
3723 * cris-tdep.c: Include "gdb_assert.h".
3724 (cris_gdbarch_init): Set print_insn.
3725 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3726 (cris_delayed_get_disassembler): Simplify, directly call the
3727 disassembler returned by cris_get_disassembler.
3728 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3729 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3730 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3731 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3732 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3733 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3734 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3735 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3736 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3737 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3738 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3739 (gdb_print_insn_sparc): Delete function.
3740 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3741 deprecated_tm_print_insn_info.
3742 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3743 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3744 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3746 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3747 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3748 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3749 (s390_gdbarch_init): Set print_insn.
3750
0285512f
AC
37512003-08-27 Andrew Cagney <cagney@redhat.com>
3752
3753 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3754 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3755 * infcall.c (call_function_by_hand): Convert the entry point
3756 address into a code address.
3757
cdcd5552
AC
37582003-08-27 Andrew Cagney <cagney@redhat.com>
3759
3760 * dsrec.c: Include "gdb_string.h".
3761 * Makefile.in (dsrec.o): Update dependencies.
3762
e85cddad
MC
37632003-08-27 Michael Chastain <mec@shout.net>
3764
3765 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3766
8bbfbb23
AC
37672003-08-27 Andrew Cagney <cagney@redhat.com>
3768
3769 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3770 (alpha_osf1_init_abi): Do not set call_dummy_address.
3771
ba058b66
DC
37722003-08-27 David Carlton <carlton@kealia.com>
3773
3774 From Randolph Chung <tausq@debian.org>:
3775 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3776 compiles with -Wformat-nonliteral -Werror.
3777
87f84c9d
JB
37782003-08-26 Jim Blandy <jimb@redhat.com>
3779
3780 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3781 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3782 bfd_lookup_symbol, since we only want symbols in code sections.
3783 (look_for_base): Pass zero as the SECT_FLAGS argument to
3784 bfd_lookup_symbol, since we're not concerned about which section
3785 the symbol is in.
3786
102d615a
JJ
37872003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3788
3789 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3790 we are frameless or the return address register is already known.
102d615a 3791
cc7ad3ea
AC
37922003-08-26 Andrew Cagney <cagney@redhat.com>
3793
3794 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3795 in size. Add comments.
3796
af8b88dd
JJ
37972003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3798
3799 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3800 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3801
e0a4f5a1
JM
38022003-08-26 Jason Merrill <jason@redhat.com>
3803
3804 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3805 case out of #ifdef MIPS block.
3806
4ae9ee8e
DJ
38072003-08-25 Daniel Jacobowitz <drow@mvista.com>
3808
3809 PR java/1322
3810 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3811 available before calling SECT_OFF_TEXT.
3c164570 3812 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3813
004d836a
JJ
38142003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3815
a8f4cde1 3816 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3817 bof, and nat0-nat127 as pseudo-registers.
3818 (ia64_frame_cache): New struct used to cache frame info.
3819 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3820 register grouping so registers without names are still saved and
004d836a 3821 restored.
a8f4cde1 3822 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3823 pseudo values.
3824 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3825 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3826 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3827 ia64_frame_cache.
3828 (examine_prologue): Change prototype to add next_frame pointer.
3829 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3830 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3831 alloc insn and if equal, mark as not frameless. At end of routine,
3832 if not frameless, calculate registers for the previous frame and store
3833 in the cache, if a cache is provided.
3834 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3835 and pass 0 for next_frame.
3836 (ia64_store_return_value): Change to use convert_typed_floating()
3837 instead of calling ia64_convert_to_raw().
3838 (ia64_extract_return_value): Change to use convert_typed_floating()
3839 instead of calling ia64_convert_to_virtual().
3840 (ia64_frame_cache): New routine to support new frame model.
3841 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3842 (ia64_frame_sniffer): Ditto.
3843 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3844 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3845 (ia64_sigtramp_frame_prev_register): Ditto.
3846 (ia64_sigtramp_frame_sniffer): Ditto.
3847 (ia64_frame_base_address): Ditto.
3848 (ia64_extract_struct_value_address): Change to issue error message.
3849 (ia64_frame_align): New routine to align sp.
3850 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3851 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3852 ia64_push_dummy_call().
3853 (ia64_push_return_address): Ditto.
3854 (ia64_unwind_dummy_id): New function.
3855 (ia64_unwind_pc): Ditto.
3856 (ia64_convert_register_p): Ditto.
3857 (ia64_register_to_value): Ditto.
3858 (ia64_value_to_register): Ditto.
3859 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3860 (ia64_register_byte, ia64_register_raw_size): Ditto.
3861 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3862 (ia64_saved_pc_after_call): Ditto.
3863 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3864 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3865 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3866 (ia64_register_convert_to_raw): Ditto.
3867 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3868 (ia64_init_extra_frame_info): Ditto.
3869 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3870 (ia64_gdbarch_init): Remove registering of deprecated functions that
3871 are no longer used. Add registration of new gdbarch functions.
3872 Remove registering deprecated_write_sp. Replace
3873 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3874 Delete set_gdbarch_deprecated_register_convertible(),
3875 set_gdbarch_deprecated_register_convert_to_virtual(), and
3876 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3877 set_gdbarch_deprecated_register_size(),
3878 set_gdbarch_deprecated_register_bytes(),
3879 set_gdbarch_pcregnum(),
3880 set_gdbarch_deprecated_register_byte(),
3881 set_gdbarch_deprecated_register_raw_size(),
3882 set_gdbarch_deprecated_max_register_raw_size(),
3883 set_gdbarch_deprecated_register_virtual_size(),
3884 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3885 Replace set_gdbarch_deprecated_extract_return_value() with
3886 set_gdbarch_extract_return_value(). Remove calls to:
3887 set_gdbarch_deprecated_saved_pc_after_call();
3888 set_gdbarch_deprecated_frame_chain(),
3889 set_gdbarch_deprecated_frame_saved_pc(),
3890 set_gdbarch_deprecated_frame_init_saved_regs(),
3891 set_gdbarch_deprecated_get_saved_register(),
3892 set_gdbarch_deprecated_call_dummy_words(),
3893 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3894 set_gdbarch_deprecated_init_extra_frame_info(),
3895 set_gdbarch_deprecated_frame_args_address(),
3896 set_gdbarch_deprecated_frame_locals_address(),
3897 and set_gdbarch_deprecated_dummy_write_sp().
3898 Add set_gdbarch_convert_register_p(),
3899 set_gdbarch_register_to_value(),
3900 set_gdbarch_value_to_register(),
3901 set_gdbarch_push_dummy_call(),
3902 set_gdbarch_frame_align(),
3903 set_gdbarch_unwind_dummy_id(),
3904 set_gdbarch_unwind_pc(),
3905 frame_unwind_append_sniffer(),
3906 frame_unwind_append_sniffer(),
3907 and frame_base_set_default().
3908
aede7613
CD
39092003-08-25 Chris Demetriou <cgd@broadcom.com>
3910
3911 * configure.tgt: Document need for special "mipsisa64" handling.
3912 (mipsisa64*-*-linux64): Handle as target linux64.
3913 (mipsisa64*-*-*): Handle as target embed64.
3914
43c3a82e
MC
39152003-08-18 Michael Chastain <mec@shout.net>
3916
3917 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3918 objfile bug.
3919
6564f77d
MK
39202003-08-24 Mark Kettenis <kettenis@gnu.org>
3921
2de139ba
MK
3922 * i387-tdep.h: Update copyright date.
3923 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3924
6564f77d
MK
3925 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3926 CFLAGS games to reflect reality.
3927
42cf1509
AC
39282003-08-24 Andrew Cagney <cagney@redhat.com>
3929
3930 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3931 GDB_MULTI_ARCH is always non-zero.
3932 * osabi.c (_initialize_gdb_osabi): Ditto.
3933 (gdbarch_init_osabi): Ditto.
3934 * sparc-tdep.c: Ditto for #if code.
3935
0485f6ad
MK
39362003-08-23 Mark Kettenis <kettenis@gnu.org>
3937
3938 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3939 Update comments.
3940 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3941 comments.
3942 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3943 x86_64_supply_fxsave.
3944 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3945 x86_64_supply_fxsave.
3946 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3947 x86_64_supply_fxsave.
3948
c7716133
AJ
39492003-08-23 Andreas Jaeger <aj@suse.de>
3950
3951 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3952 i387_supply_fxsave.
3953
ed504bdf
MK
39542003-08-23 Mark Kettenis <kettenis@gnu.org>
3955
3956 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3957 i387_supply_register.
3958 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3959 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3960 i387_supply_fsave.
3961 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3962 i387_supply_fxsave.
3963 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3964 i387_supply_fsave.
3965 * i386bsd-nat.c (supply_fpregset): Adjust call to
3966 i387_supply_fsave.
3967 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3968 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3969 supply_fpregset.
3970 (store_inferior_registers): Remove extraneous whitespace. Call
3971 i387_fill_fsave instead of fill_fpregset.
3972 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3973 (supply_fpregset): Likewise.
3974 * i386v4-nat.c (supply_fpregset): Adjust call to
3975 i387_supply_fsave.
3976 * i386-interix-nat.c (supply_fpregset): Adjust call to
3977 i387_supply_fsave.
3978 * i386-linux-nat.c (supply_fpregset): Adjust call to
3979 i387_supply_fsave.
3980 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3981 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3982 i387supply_fsave and i387_supply_fxsave.
3983 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3984 Incorporate code from `i387_supply_register.
3985 (i387_supply_register): Remove.
3986 (i387_supply_fxsave): Add `regnum' argument.
3987 Update comments.
3988 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3989 prototype.
3990 (i387_supply_register): remove prototype.
3991 Update comments.
a8f4cde1 3992
4be5d520
MC
39932003-08-22 Michael Chastain <mec@shout.net>
3994
3995 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3996 Add lines for files in gdb/testsuite/gdb.cp/* that are
3997 still not 8.3 unique.
3998
7ed85d26
DJ
39992003-08-22 Daniel Jacobowitz <drow@mvista.com>
4000
4001 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4002 TYPE_VPTR_FIELDNO is valid.
4003
eb0d3137
MK
40042003-08-19 Mark Kettenis <kettenis@gnu.org>
4005
4006 * utils.c (set_width_command): Remove prototypes.
4007 (set_screen_size): New prototype.
4008 (init_page_info): Simplify by fetching the screen size from
4009 Readline. Call set_screen_size.
4010 (set_screen_size): New function.
4011 (set_width): Add missing whitespace in comment.
4012 (set_width_command): Call set_screen_size.
4013 (set_height_command): New function.
4014 (initialize_utils): Fix formatting. Make "set height" command
4015 call set_height_command. Remove redundant code that turns off
4016 pagination if output isn't a terminal. Remove redundant call to
4017 set_width_command.
a8f4cde1 4018
7e6d0ac8
MK
40192003-08-22 Mark Kettenis <kettenis@gnu.org>
4020
3567a8ea
MK
4021 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4022 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4023 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4024 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4025 `case' keyword.
4026 (sparc64_register_info): Give the reister with number
4027 SPARC64_STATE_REGNUM a name.
4028 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4029 %asi and %ccr.
4030 (sparc64_push_dummy_call): Take BIAS into account when checking
4031 stcak alignment.
4032 (sparc_software_single_step): Remove assertions that check whether
4033 NPC and NNPC were zero.
4034 (sparc_supply_rwindow): Make public. Merge functionality with
4035 sparc64_supply_rwindow.
4036 (sparc_fill_rwindow): Make public. Merge functionality with
4037 sparc64_fill_rwindow.
4038 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4039 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4040 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4041 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4042 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4043
7e6d0ac8
MK
4044 * reggroups.c: Add whitespace after declarations of local
4045 variables in functions.
4046
72e5f484
MC
40472003-08-21 Michael Chastain <mec@shout.net>
4048
4049 * gdbtypes.h: Change array bound type from an int to enum.
4050
435ac228
AC
40512003-08-21 Andrew Cagney <cagney@redhat.com>
4052
4053 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4054 * config/sparc/tm-sparc.h: Ditto.
4055 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4056 unconditionally.
4057 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4058
0d0e1a63
MK
40592003-07-13 Mark Kettenis <kettenis@gnu.org>
4060
4061 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4062 (register_objfile_data, set_objfile_data, objfile_data): New
4063 prototypes.
4064 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4065 prototypes.
4066 (allocate_objfile): Call objfile_alloc_data.
4067 (free_objfile): Call objfile_free_data.
4068 (struct objfile_data): New.
4069 (struct objfile_data_registration): New.
4070 (struct objfile_data_registry): New.
4071 (objfile_data_registry): New variable.
4072 (register_objfile_data): New function.
4073 (objfile_alloc_data, objfile_free_data): New functions.
4074 (set_objfile_data, objfile_data): New functions.
4075 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4076 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4077 (_initialize_dwarf2_frame): New function and prototype.
4078
d90cf509
AC
40792003-08-21 Andrew Cagney <cagney@redhat.com>
4080
4081 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4082 a specific architecture.
4083 * arch-utils.h (set_architecture_from_arch_mach): Delete
4084 declaration.
4085 (target_architecture_hook): Delete declaration.
4086 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4087 (default_float_format): Assume GDB_MULTI_ARCH.
4088 (default_double_format): Assume GDB_MULTI_ARCH.
4089 (set_endian_from_file): Delete function.
4090 (arch_ok): Delete function.
4091 (set_arch): Delete function.
4092 (set_architecture_from_arch_mach): Delete function.
4093 (set_architecture_from_file): Delete function.
4094 (set_architecture): Assume GDB_MULTI_ARCH.
4095 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4096
8b39fe56
MK
40972003-08-21 Mark Kettenis <kettenis@gnu.org>
4098
4099 Rewrite FreeBSD/sparc64 native configuration.
4100 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4101 * sparc64fbsd-nat.c: New file.
4102 * sparc64fbsd-tdep.c: New file.
4103 * sparc64-tdep.c sparc64-tdep.h: New files.
4104 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4105 sparc64fbsd-tdep.o): New dependencies.
4106 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4107 and sparc64fbsd-tdep.c.
4108 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4109 * config/sparc/fbsd.mh: Remove copyright notice.
4110 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4111 sparcbsd-nat.o.
4112 * config/sparc/fbsd.mt: Remove copyright notice.
4113 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4114 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4115 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4116 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4117 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4118 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4119 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4120 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4121 "sparc/tm-sp64.h".
4122 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4123 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4124
a7f19c79
MC
41252003-08-21 Michael Chastain <mec@shout.net>
4126
4127 * symtab.h: Add doco on the space critical structures and
4128 some measurements of space usage.
4129
da08ea5b
MS
41302003-08-21 Michael Snyder <msnyder@redhat.com>
4131
4132 * tracepoint.c (trace_dump_command): Trace break address
4133 is subject to DECR_PC_AFTER_BREAK.
4134 (set_traceframe_context): Make "trace_line" an int.
4135 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4136
6df2bf50
MS
41372003-08-20 Michael Snyder <msnyder@redhat.com>
4138
4139 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4140 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4141 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4142 argument passing.
a8f4cde1 4143 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4144 functions, replace sh_push_dummy_call.
4145 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4146
0955bbf0
MC
41472003-08-20 Michael Chastain <mec@shout.net>
4148
4149 * gdbtypes.h (struct main_type): Rearrange to save space.
4150
260a4188
MS
41512003-08-20 Michael Snyder <msnyder@redhat.com>
4152
4153 * trad-frame.c: Comment typo fix.
4154
8baa6f92
KB
41552003-08-20 Michael Snyder <msnyder@redhat.com>
4156 Kevin Buettner <kevinb@redhat.com>
4157
4158 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4159 (frv_frame_init_saved_regs): Add declaration.
4160 (frame_extra_info): Add new field ``saved_regs''.
4161 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4162 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4163 Update frame related code.
4164 (frv_extract_struct_value_address): Adjust formatting.
4165 * Makefile.in (frv-tdep.o): Update dependencies.
4166 * config/frv/tm-frv.h (target_insert_watchpoint)
4167 (target_remove_watchpoint, target_insert_hw_breakpoint)
4168 (target_remove_hw_breakpoint): Delete these macros.
4169 (remote_insert_watchpoint, remote_remove_watchpoint)
4170 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4171 these declarations.
4172
87193939
MC
41732003-08-20 Michael Chastain <mec@shout.net>
4174
4175 * defs.h (ENUM_BITFIELD): New macro.
4176 * symtab.h (ENUM_BITFIELD): Use it.
4177 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4178
062103ba
SA
41792003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4180
4181 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4182
8b148df9
AC
41832003-08-18 Andrew Cagney <cagney@redhat.com>
4184
4185 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4186 * gdbarch.h, gdbarch.c: Re-generate.
4187 * infcall.c (call_function_by_hand): Adjust the SP by
4188 frame_red_zone_size before allocating any stack space.
4189 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4190 * x86-64-tdep.c (x86_64_frame_align): New function.
4191 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4192
4193 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4194 Remove code adjusting SP so that it skips over the Red Zone.
4195
954a4db8
MK
41962003-08-18 Mark Kettenis <kettenis@gnu.org>
4197
4198 * NEWS (New native configurations): Mention FreeBSD/amd64.
4199
1a241548
AC
42002003-08-18 Andrew Cagney <cagney@redhat.com>
4201
4202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4203 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4204 "m68k_frame_p".
4205 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4206
f82b2acd
MK
42072003-08-18 Mark Kettenis <kettenis@gnu.org>
4208
4209 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4210
4056d258
ML
42112003-08-18 Michal Ludvig <mludvig@suse.cz>
4212
4213 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4214 Define.
4215 * i386-linux-nat.c: Include "linux-nat.h".
4216 (child_post_startup_inferior): New function.
a8f4cde1 4217
99ab4326
MK
42182003-08-18 Mark Kettenis <kettenis@gnu.org>
4219
4220 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4221 at the start of a frameless function. This probably fixes PR
4222 backtrace/1338.
4223
c8d5f0d6
MC
42242003-08-17 Michael Chastain <mec@shout.net>
4225
4226 * symfile.c (find_sym_fns): Remove special case for apollo target.
4227
9016a515
DJ
42282003-08-17 Daniel Jacobowitz <drow@mvista.com>
4229
4230 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4231 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4232 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4233 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4234 (linux_supports_tracevforkdone): New function.
4235 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4236 TRACEVFORKDONE.
4237 (child_follow_fork): Handle vfork.
4238 (linux_handle_extended_wait): Likewise. Also handle exec.
4239 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4240 * NEWS: Mention fork tracing.
4241
c538c11c
DJ
42422003-08-17 Daniel Jacobowitz <drow@mvista.com>
4243
4244 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4245
4de4c07c
DJ
42462003-08-17 Daniel Jacobowitz <drow@mvista.com>
4247
4248 * Makefile.in (i386-linux-nat.o): Update dependencies.
4249 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4250 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4251 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4252 * i386-linux-nat.c: Include "linux-nat.h".
4253 (child_post_startup_inferior): New function.
4254 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4255 * infptrace.c (kill_inferior): Wrap in #ifdef.
4256 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4257 attaching to each LWP.
4258 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4259 (init_lin_lwp_ops): Fill in some more operations.
4260 * linux-nat.h (linux_enable_event_reporting)
4261 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4262 prototypes.
4263 * linux-nat.c (linux_enable_event_reporting): New function.
4264 (child_post_attach, linux_child_post_startup_inferior)
4265 (child_post_startup_inferior, child_follow_fork)
4266 (linux_handle_extended_wait, kill_inferior): New functions.
4267
7996bcec
AC
42682003-08-16 Andrew Cagney <cagney@redhat.com>
4269
4270 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4271 * gdbarch.h, gdbarch.c: Re-generate.
4272
3d48a7a0
MK
42732003-08-16 Mark Kettenis <kettenis@gnu.org>
4274
4275 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4276
7989c619
AC
42772003-08-16 Andrew Cagney <cagney@redhat.com>
4278
4279 * NEWS: Mention that "set prompt-escape-char" was deleted.
4280 * top.c (get_prompt_1): Delete function.
4281 (gdb_prompt_escape):
4282 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4283 prompt-escape-char" command.
4284 (MAX_PROMPT_SIZE): Delete macro.
4285 (get_prompt): Simplify, do not call get_prompt_1.
4286
07978cd8
AC
42872003-08-16 Andrew Cagney <cagney@redhat.com>
4288
4289 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4290 -Werror. -Wformat-nonliteral problems.
4291
3ff7cf9e
JB
42922003-08-15 J. Brobecker <brobecker@gnat.com>
4293
4294 Further multiarching work mostly for hppa64-*-hpux11:
4295 * hppa-tdep.h: New file.
4296 * hppa-tdep.c: #include hppa-tdep.c.
4297 (hppa32_num_regs): Renamed from hppa_num_regs.
4298 (hppa64_num_regs): New constant.
4299 (hppa64_call_dummy_breakpoint_offset): New constant.
4300 (hppa32_call_dummy_length): New constant.
4301 (hppa64_call_dummy_length): New constant.
4302 (hppa32_stack_align): Make name 32bit explicit.
4303 (hppa32_register_virtual_type): Likewise.
4304 (hppa32_extract_return_value): Likewise.
4305 (hppa32_use_struct_convention): Likewise.
4306 (hppa32_store_return_value): Likewise.
4307 (hppa64_register_virtual_type): New function.
4308 (hppa64_extract_return_value): New function.
4309 (hppa64_use_struct_convention): New function.
4310 (hppa64_store_return_value): New function.
4311 (hppa_frame_locals_address): Remove declaration, function does
4312 not exist anymore.
4313 (hppa_register_byte): Add support for PA64 ABI.
4314 (hppa_gdbarch_init): Add support for PA64 ABI.
4315 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4316 Make name 32bit explicit.
4317 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4318 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4319 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4320 (hppa64_hpux_frame_base_before_sigtramp): New function.
4321 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4322 * config/pa/tm-hppa64.h: Remove macros that are no longer
4323 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4324 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4325 * config/pa/tm-hppah.h: Update function calls in macros
4326 following the function renaming in hppa-hpux-tdep.c.
4327 * Makefile.in (hppa_tdep_h): New variable.
4328 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4329
5d05ca6d
MS
43302003-08-14 Michael Snyder <msnyder@redhat.com>
4331
4332 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4333
37ba2569
JB
43342003-08-13 J. Brobecker <brobecker@gnat.com>
4335
4336 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4337 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4338 routine.
4339
aed7f26a
MS
43402003-08-13 Michael Snyder <msnyder@redhat.com>
4341
4342 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4343 (frv_saved_pc_after_call): Use deprecated ftype.
4344 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4345 (frv_remote_translate_xfer_address): Remove.
4346 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4347
752d4ac1
JB
43482003-08-13 J. Brobecker <brobecker@gnat.com>
4349
4350 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4351 initialization after the common gdbarch initialization, not before.
4352
1426ac1d
JB
43532003-08-13 J. Brobecker <brobecker@gnat.com>
4354
4355 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4356 (ADDR_BITS_REMOVE): Remove, redundant.
4357
b6fbdd1d
JB
43582003-08-13 J. Brobecker <brobecker@gnat.com>
4359
4360 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4361 gdbarch method to clear the 2 low bits of text addresses.
4362
44160db3
AC
43632003-08-12 Andrew Cagney <cagney@redhat.com>
4364
4365 * Makefile.in (dsrec.o): Update dependencies.
4366 * dsrec.c: Include "gdb_assert.h".
4367 (make_srec): Use snprintf instead of sprintf, use a literal format
4368 string.
4369
bcf7d3ca
AC
43702003-08-12 Andrew Cagney <cagney@redhat.com>
4371
4372 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4373 FRAME_OBSTACK_ZALLOC.
4374
49ed40de
KB
43752003-08-12 Kevin Buettner <kevinb@redhat.com>
4376
4377 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4378 SSE registers.
4379
b246147c
MK
43802003-08-10 Mark Kettenis <kettenis@gnu.org>
4381
4382 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4383 amd64fbsd_sc_reg_offset): Add extern declarations.
4384 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4385 declarations.
4386
d95fdc0d
BE
43872003-08-11 Ben Elliston <bje@wasabisystems.com>
4388
4389 * MAINTAINERS (write after approval): Update my mail address.
4390
cf6a0e73
AC
43912003-08-10 Andrew Cagney <cagney@redhat.com>
4392
4393 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4394
f837910f
MK
43952003-08-10 Mark Kettenis <kettenis@gnu.org>
4396
e2dbbd2d
MK
4397 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4398 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4399 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4400 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4401 i386bsd_sc_reg_offset): Add extern declarations.
4402 * i386obsd-nat.c: Include "i386-tdep.h"
4403 (_initialize_i386obsd_nat): Remove extern declarations.
4404 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4405 declarations.
4406 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4407 declarations.
4408
f837910f
MK
4409 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4410 instead of frame_read_register.
4411 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4412 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4413 SP_REGNUM.
4414 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4415 instead of frame_unwind_unsigned_register. Use
4416 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4417 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4418 instead of read_register. Use builtin_type_void_data_ptr instead
4419 of builtin_type_void_func_ptr when extracting the address of the
4420 jmp_buf.
4421 (i386_extract_return_value, i386_store_return_value,
4422 i386_pseudo_register_read, i386_pseudo_register_write): Use
4423 register_size instead REGISTER_RAW_SIZE.
4424
edcf254d
AC
44252003-08-10 Andrew Cagney <cagney@redhat.com>
4426
4427 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4428 sprintf. Make "name" constant.
4429
26604a34
MK
44302003-08-10 Mark Kettenis <kettenis@gnu.org>
4431
192285c6
MK
4432 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4433 instead of frame_read_register.
f837910f
MK
4434 (i387_print_float_info): Use get_frame_register and
4435 get_frame_register_unsigned instead of frame_register_read.
192285c6 4436
f0925262
MK
4437 * i386fbsd-nat.c: Include "i386-tdep.h".
4438 (child_resume): Make `eflags' an ULONGEST. Use
4439 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4440 instead of register_read and register_write.
4441
a144416f
MK
4442 * i386bsd-nat.c (fetch_inferior_registers,
4443 store_inferior_registers): Don't use && at the end of a line.
4444 (_initialize_i386bsd_nat): Fix typo.
4445
fec74868
MK
4446 * frame.c (_initialize_frame): Add missing backslash.
4447
87232496
MK
4448 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4449 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4450 and supply_register instead of manipulating the register buffer
4451 directly.
4452
c9b9de0b
MK
4453 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4454 * config/i386/nm-i386sol2.h
4455 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4456
26604a34
MK
4457 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4458 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4459 instructions that GCC likes to mingle into the prologue. Fixes
4460 gdb/1253 and gdb/1255.
4461
25d29d70
AC
44622003-08-09 Andrew Cagney <cagney@redhat.com>
4463
4464 Fix GDB PR cli/926.
4465 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4466 * command.h (add_setshow_uinteger_cmd): Declare.
4467 * frame.c (set_backtrace_cmd): New function.
4468 (show_backtrace_cmd): New function.
4469 * frame.c (_initialize_frame): Replace "set/show
4470 backtrace-below-main" with "set/show backtrace past-main". Add
4471 command "set/show backtrace limit".
4472 (backtrace_past_main): Rename "backtrace_below_main".
4473 (backtrace_limit): New variable.
4474 (get_prev_frame): Update. Check the backtrace_limit.
4475
9ebf4acf
AC
44762003-08-09 Andrew Cagney <cagney@redhat.com>
4477
4478 * defs.h (xstrprintf): Declare.
4479 * utils.c (xstrprintf): New function.
4480 * breakpoint.c (insert_breakpoints): Replace sprintf and
4481 non-literal format strings, with xstrprintf and cleanups.
4482 (delete_breakpoint,breakpoint_re_set): Ditto.
4483 (commands_command, insert_breakpoints): Ditto.
4484 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4485 (break_at_finish_command_1): Ditto.
4486
3771659b
AC
44872003-08-09 Andrew Cagney <cagney@redhat.com>
4488
4489 * MAINTAINERS (language support): List Adam Fedor as Objective C
4490 maintainer.
4491
b4263afa
JB
44922003-08-08 J. Brobecker <brobecker@gnat.com>
4493
4494 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4495 are now multiarched.
4496
d84defb1
JB
44972003-08-08 J. Brobecker <brobecker@gnat.com>
4498
4499 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4500 longer necessary now that hppa64 is partially multiarch'ed.
4501
f786f615
AC
45022003-08-08 Andrew Cagney <cagney@redhat.com>
4503
4504 * interps.c (interp_set): Check for a NULL "old_interp".
4505
c938e9b0
L
45062003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4507
4508 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4509 (install-only): Support DESTDIR.
4510 (uninstall): Likewise.
4511 (install-gdbtk): Likewise.
4512
9a146a11
EZ
45132003-08-08 Elena Zannoni <ezannoni@redhat.com>
4514
4515 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4516 contains something meaningful at all times.
4517
4518Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4519
62599e99 4520 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4521
56296155
BC
4522Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4523
62599e99 4524 * MAINTAINERS (write after approval): Added self.
56296155 4525
9710e734
AC
45262003-08-07 Andrew Cagney <cagney@redhat.com>
4527
4528 * inferior.h (AT_SYMBOL): Define.
4529 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4530 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4531 * mips-tdep.c (mips_call_dummy_address): Delete function.
4532 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4533 set call_dummy_address.
4534
98b3ab73
AC
45352003-08-07 Andrew Cagney <cagney@redhat.com>
4536
4537 * language.c (op_error): Delete function.
4538 (binop_type_check): Delete function.
4539 * language.h (type_op_error, range_op_error): Delete macros.
4540 (op_error): Delete declaration.
4541
2fcf52f0
AC
45422003-08-07 Andrew Cagney <cagney@redhat.com>
4543
4544 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4545
abd4220e 45462003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4547
abd4220e 4548 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4549 (x86_64_push_arguments): Skip the red zone.
abd4220e 4550
9dd5f34f
AC
45512003-08-05 Andrew Cagney <cagney@redhat.com>
4552
4553 * reggroups.c (reggroup_next): Check for the final entry.
4554
e5e78edc
AC
45552003-08-04 Andrew Cagney <cagney@redhat.com>
4556
ab4e3d93
AC
4557 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4558 * cli/cli-script.c (define_command): Call query directly, instead
4559 of passing it a buffer.
4560 * ocd.c (ocd_error): Pass error a constant format string.
4561 * remote-mips.c (mips_error): Use fputs_filtered.
4562
1062ca82
AC
4563 * solib-svr4.c (_initialize_svr4_solib): Update
4564 register_gdbarch_data call.
4565 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4566
fcc1c85c
AC
4567 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4568 (register_gdbarch_data): Delete "free" parameter. Update
4569 comments.
4570 * gdbarch.h, gdbarch.c: Re-generate.
4571 * reggroups.c (_initialize_reggroup): Update.
4572 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4573 * frame-base.c (_initialize_frame_base): Update.
4574 * frame-unwind.c (_initialize_frame_unwind): Update.
4575 * user-regs.c (_initialize_user_regs): Update.
4576 * remote.c (_initialize_remote): Update.
4577 * regcache.c (_initialize_regcache): Update.
4578
116f06ea
AC
4579 * regcache.c (xfree_regcache_descr): Delete function.
4580 (_initialize_regcache): Update call to register_gdbarch_data.
4581 (init_regcache_descr, init_legacy_regcache_descr): Use
4582 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4583
e5e78edc
AC
4584 * remote.c (free_remote_state): Delete function.
4585 (_initialize_remote): Update register_gdbarch_data.
4586 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4587 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4588
6c7d17ba
AC
45892003-08-04 Andrew Cagney <cagney@redhat.com>
4590
4591 * reggroups.c (struct reggroup_el): Define.
4592 (struct reggroups): Delete field "nr_group". Replace array
4593 "group" with a "first" to "last" linked list.
4594 (reggroups_init): Update. Allocate using gdbarch's obstack.
4595 (reggroups_free): Delete function.
4596 (add_group): Update. Add "el" parameter.
4597 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4598 (default_groups): Update.
4599 (reggroup_next): Replace reggroups.
4600 (reggroups_dump): Update.
4601 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4602 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4603 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4604
89b7795b
DJ
46052003-08-04 Daniel Jacobowitz <drow@mvista.com>
4606
4607 * Makefile.in (tui-interp.o): Update dependencies.
4608
306d9ac5
DC
46092003-08-04 David Carlton <carlton@kealia.com>
4610
4611 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4612 to internal_error call.
4613 * source.c (forward_search_command): Add "%s" format argument.
4614 (reverse_search_command): Ditto.
4615 * top.c (quit_confirm): Ditto.
4616 * cli/cli-setshow.c (do_setshow_command): Ditto.
4617 * cp-valprint.c (cp_print_class_method): Replace
4618 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4619 (cp_print_class_member): Ditto.
4620 * event-top.c (command_line_handler): Ditto.
4621 * linux-proc.c (linux_info_proc_cmd): Ditto.
4622 * p-typeprint.c (pascal_type_print_base): Ditto.
4623 * p-valprint.c (pascal_object_print_class_method): Ditto.
4624 (pascal_object_print_class_member): Ditto.
4625 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4626 * remote.c (remote_cisco_section_offsets): Ditto.
4627 * top.c (command_line_input): Ditto.
4628 * utils.c (vwarning,error_stream,quit): Ditto.
4629 * valprint.c (print_floating,print_binary_chars)
4630 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4631
57bfe177
AC
46322003-08-04 Andrew Cagney <cagney@redhat.com>
4633
4634 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4635
e546b999
AC
46362003-08-02 Andrew Cagney <cagney@redhat.com>
4637
4638 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4639 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4640 amd64fbsd-nat.c.
4641
91092ee5
AC
46422003-08-02 Andrew Cagney <cagney@redhat.com>
4643
4644 * Makefile.in: Update all dependencies and definitions.
4645
889f28e2
AF
46462003-08-02 Adam Fedor <fedor@gnu.org>
4647
4648 * linespec.c (is_objc_method_format): New function
4649 (decode_line_1, locate_first_half): Use it.
4650 Fixes PR objc/1298
4651
880bc914
AC
46522003-08-01 Andrew Cagney <cagney@redhat.com>
4653
4654 * NEWS: Mention that m32r is multi-arch.
4655 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4656 * configure.tgt: Recognize m32r-*-*.
4657 * config/m32r/tm-m32r.h: Delete file.
4658 * config/m32r/m32r.mt: New file.
a8f4cde1 4659 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4660 gethostname succeeds, in order to avoid a compilation
4661 warning.
4662 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4663 compiler warning.
4664
19f59343
MS
46652003-08-01 Michael Snyder <msnyder@redhat.com>
4666
4667 * sh-tdep.c (sh_frame_align): New gdbarch method.
4668 (sh_gdbarch_init): Set up frame_align method.
4669
4e7d7511
MS
46702003-07-31 Michael Snyder <msnyder@redhat.com>
4671
4672 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4673 which is already covered by the new frames infrastructure.
4674
63022984
AC
46752003-07-31 Andrew Cagney <cagney@redhat.com>
4676
4677 * user-regs.c (struct user_reg): Add "next" link.
4678 (struct user_regs): Replace "user" with "first" and "last" links.
4679 (append_user_reg): Add pre-allocated "reg" parameter.
4680 (builtin_user_regs): Provide initial value for "last".
4681 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4682 (user_regs_init): Allocate memory from the gdbarch obstack.
4683 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4684 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4685 linked list.
4686 (usernum_to_user_reg): New function.
4687 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4688 (value_of_user_reg): Use usernum_to_user_reg.
4689 (user_regs_free): Delete function.
4690 (_initialize_user_regs): Update register_gdbarch_data call.
4691
7cf6e574
DJ
46922003-07-31 Daniel Jacobowitz <drow@mvista.com>
4693
4694 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4695
c48a845b
MS
46962003-07-30 Michael Snyder <msnyder@redhat.com>
4697
4e7d7511 4698 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4699 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4700 value_being_returned.
4701 * infcmd.c (print_return_value): Pass zero as struct_addr.
4702 * values.c (value_being_returned): If struct_addr is passed,
4703 use it instead of trying to recover it from the inferior.
4704
f0d8db19
KB
47052003-07-30 Kevin Buettner <kevinb@redhat.com>
4706
4707 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4708 the prologue analyzer won't need to attempt to extract the pc
4709 value from the woefully incomplete dummy frame.
4710 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4711 possible. Disable code which modifies the frame.
4712
e5c113a1
AC
47132003-07-28 Andrew Cagney <cagney@redhat.com>
4714
4715 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4716 to level 2.
4717 (annotate_breakpoints_table, annotate_record): Ditto.
4718 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4719 (annotate_field_name_end, annotate_field_value): Ditto.
4720 (annotate_field_end, annotate_frame_source_begin): Ditto.
4721 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4722 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4723 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4724 (annotate_frame_address_end, annotate_frame_address): Ditto.
4725 (annotate_frame_args, annotate_frame_end): Ditto.
4726 (annotate_frame_where, annotate_arg_begin): Ditto.
4727 (annotate_arg_name_end, annotate_arg_value): Ditto.
4728 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4729 (annotate_function_call, annotate_signal_name): Ditto.
4730 (annotate_signal_string, annotate_signal_name_end): Ditto.
4731 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4732 (annotate_value_begin, annotate_value_history_value): Ditto.
4733 (annotate_value_history_end, annotate_value_end): Ditto.
4734 (annotate_display_begin, annotate_display_number_end): Ditto.
4735 (annotate_display_format, annotate_display_expression): Ditto.
4736 (annotate_display_expression_end, annotate_display_value): Ditto.
4737 (annotate_display_end, annotate_array_section_begin): Ditto.
4738 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4739 (annotate_elt, annotate_array_section_end): Ditto.
4740
bb1db049
AC
47412003-07-28 Andrew Cagney <cagney@redhat.com>
4742
4743 * regcache.c (struct regcache_descr): Update comments on
4744 nr_raw_registers.
4745 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4746 sizeof_raw_register_valid_p.
4747 (init_regcache_descr): Set nr_raw_registers and
4748 sizeof_raw_register_valid_p before calling
4749 init_legacy_regcache_descr.
4750
20e6603c
AC
47512003-07-28 Andrew Cagney <cagney@redhat.com>
4752
4753 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4754 MOD NUM_REGS.
4755
db742940
DJ
47562003-07-28 Daniel Jacobowitz <drow@mvista.com>
4757
4758 * thread.c (info_threads_command): Use get_selected_frame ().
4759 Check that there is at least one non-sentinel frame.
4760
ce7f4371
SC
47612003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4762
4763 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4764 (m68hc11_pop_frame): Remove.
4765 (m68hc11_frame_saved_pc): Remove.
4766 (m68hc11_frame_chain): Remove.
4767 (m68hc11_frame_init_saved_regs): Remove.
4768 (m68hc11_init_extra_frame_info): Remove.
4769 (m68hc11_store_struct_return): Remove.
4770 (m68hc11_saved_pc_after_call): Remove.
4771
1ea653ae
SC
47722003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4773
4774 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4775 frame unwind information.
4776 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4777 and adapted for frame unwinding.
4778 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4779 (m68hc11_unwind_pc): New function.
4780 (m68hc11_frame_unwind_cache): New function to analyze frames.
4781 (m68hc11_frame_this_id): New function to create new frame struct.
4782 (m68hc11_frame_prev_register): New function to unwind a register from
4783 the frame.
4784 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4785 (m68hc11_frame_p): New function for the above.
4786 (m68hc11_frame_base_address): New function to return fp of frame.
4787 (m68hc11_frame_args_address): Update for frame.
4788 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4789 (m68hc11_unwind_sp): New function.
4790 (m68hc11_unwind_dummy_id): New function.
4791 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4792 calls.
4793
c8a7f6ac
SC
47942003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4795
4796 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4797 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4798 when we are beyond the current pc.
4799
3dc990bf
SC
48002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4801
4802 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4803 from m68hc11_push_arguments.
4804 (m68hc11_push_arguments): Remove.
4805 (m68hc11_push_return_address): Remove.
4806 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4807 handlers; remove deprecated_extra_stack_alignment_needed.
4808
222e5d1d
AC
48092003-07-27 Andrew Cagney <cagney@redhat.com>
4810
4811 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4812 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4813 REAL_PC and not the pointer.
4814 * hppa-hpux-tdep.c: Include frame.h
4815
a7e9a47e
AC
48162003-07-27 Andrew Cagney <cagney@redhat.com>
4817
4818 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4819 GDB_MULTI_ACH_PARTIAL.
4820
7e3dd49e
AC
48212003-07-27 Andrew Cagney <cagney@redhat.com>
4822
4823 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4824 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4825 operator at start and not end of line.
4826 (decode_prologue): Ditto.
4827 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4828 frame_unwind_register_unsigned instead of
4829 frame_unwind_unsigned_register.
4830 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4831 read_register.
4832 (m32r_push_dummy_call): Use register_size instead of
4833 REGISTER_RAW_SIZE.
4834 (m32r_frame_sniffer): Replace m32r_frame_p.
4835 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4836 * m32r-rom.c (report_transfer_performance): Delete extern
4837 declaration.
4838 (m32r_load, m32r_upload_command): Use print_transfer_performance
4839 instead of report_transfer_performance.
4840 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4841 / add_show_from_set.
4842
0880807f
AC
48432003-07-26 Andrew Cagney <cagney@redhat.com>
4844
4845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4846 store_return_value and extract_struct_value_address.
4847
64ae9269
DJ
48482003-07-26 Daniel Jacobowitz <drow@mvista.com>
4849
4850 PR c++/1267
4851 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4852 NULL, default to the section containing PC.
4853
e286caf2
SC
48542003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4855
4856 * NEWS: Mention "regs" deprecated for m68hc11 too.
4857
4858 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4859 (m68hc11_print_register): New function to print out one register.
4860 (m68hc11_print_registers_info): New function to print registers.
4861 (show_regs): Deprecate and use the above.
4862 (m68hc11_gdbarch_init): Install the print_registers_info.
4863
705b278b
JJ
48642003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4865
4866 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4867 that we have a SIGTRAP before returning non-zero.
4868
63cd4198
EZ
48692003-07-23 Michal Ludvig <mludvig@suse.cz>
4870 Elena Zannoni <ezannoni@redhat.com>
4871
a8f4cde1 4872 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4873 find_function_start_sal() returns empty record.
4874
6926787d
AS
48752003-07-23 Andreas Schwab <schwab@suse.de>
4876
4877 * ia64-tdep.c (ia64_print_insn): New function.
4878 (ia64_gdbarch_init): Set print_insn to it.
4879 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4880 deprecated_tm_print_insn_info.
4881
708cc1b6
MS
48822003-07-22 Michael Snyder <msnyder@redhat.com>
4883
4884 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4885 handle 8-bit returns (long long).
4886 (h8300h_extract_return_value): Ditto.
4887 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4888
aebd7893
AC
48892003-07-22 Andrew Cagney <cagney@redhat.com>
4890
4891 * gdbarch.c Include "gdb_obstack.h".
4892 (struct gdbarch): Add an "obstack".
4893 (alloc_gdbarch_data): Allocate the gdbarch data using
4894 GDBARCH_OBSTACK_CALLOC.
4895 (free_gdbarch_data): Delete function.
4896 (gdbarch_obstack_zalloc): New function.
4897 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4898 Assert that the architecture is not initialized.
4899 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4900 vector from the obstack.
4901 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4902 architecture obstack.
4903 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4904 (set_gdbarch_data): Assert that the data is not initialized.
4905 (struct gdbarch_data): Delete member "free".
4906 (register_gdbarch_data): Do not initialize "free".
4907 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4908
153721e6
AC
49092003-07-22 Andrew Cagney <cagney@redhat.com>
4910
4911 * configure.in (build_warnings): Add -Wformat-nonliteral.
4912 * configure: Re-generate.
4913
c193f044 49142003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4915
4916 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4917
c3228f12
EZ
49182003-07-22 Elena Zannoni <ezannoni@redhat.com>
4919
4920 * findvar.c (read_var_value): Remove case for thread local storage
4921 variables. It is now entirely handled by the dwarf2 location
4922 expression code.
4923 * printcmd.c (address_info): Ditto.
4924 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4925 enumeration value.
4926 (struct symbol): Remove objfile field, which was used by
4927 LOC_THREAD_LOCAL_STATIC only.
4928 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4929 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4930 usage of objfile pointer.
4931 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4932 thread local variables.
4933 Add include of objfiles.h.
4934 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4935 storage variables.
4936 * Makefile.in (dwarf2loc.o): Update dependencies.
4937
aef9bcd2
AC
49382003-07-22 Andrew Cagney <cagney@redhat.com>
4939
4940 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4941 get_frame_base.
4942 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4943 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4944 (struct value): Add opaque declaration.
4945 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4946
d95a8903
AC
49472003-07-21 Andrew Cagney <cagney@redhat.com>
4948
4949 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4950 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4951
4db73d49
SC
49522003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4953
a8f4cde1 4954 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4955 regcache_cooked_read_unsigned instead of read_register.
4956 (m68hc11_saved_pc_after_call): Likewise.
4957 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4958 instead of write_register.
4959 (m68hc11_register_type): New function.
4960 (m68hc11_register_virtual_type): Remove.
4961 (m68hc11_store_return_value): Convert to use the regcache.
4962 (m68hc11_extract_struct_value_address): Likewise.
4963 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4964 m68hc11_register_type; undeprecate store_return_value and
4965 extract_struct_value_address.
4966
ef2b8fcd
SC
49672003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4968
4969 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4970 and translate to use regcache.
4971 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4972
625b0b97
AC
49732003-07-18 Andrew Cagney <cagney@redhat.com>
4974
4975 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977 * i386-tdep.c (i386_gdbarch_init): Do not set
4978 DWARF2_BUILD_FRAME_INFO.
4979 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4980 unconditionally.
4981 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4982 DWARF2_BUILD_FRAME_INFO.
4983
22b0d388
AC
49842003-07-18 Andrew Cagney <cagney@redhat.com>
4985
4986 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4987 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4988
1ce5d6dd
AC
49892003-07-18 Andrew Cagney <cagney@redhat.com>
4990
4991 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4992 frame_unwind_address_in_block, instead of frame_pc_unwind.
4993 (dwarf2_frame_cache): Ditto.
4994
e6e5e94c
AC
49952003-07-18 Andrew Cagney <cagney@redhat.com>
4996
4997 * user-regs.h (struct gdbarch): Declare opaque.
4998 * ui-out.h (struct ui_file): Declare opaque.
4999 * dwarf2-frame.h (struct frame_info): Declare opaque.
5000
5483d879
KW
50012003-07-18 Kris Warkentin <kewarken@qnx.com>
5002
5003 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5004 #include "...".
5005 (procfs_meminfo): Change strerror to safe_strerror.
5006 (procfs_can_run): Remove K&R badness.
5007
278a7cf7
MS
50082003-07-17 Michael Snyder <msnyder@redhat.com>
5009
5010 * remote-sim.c: Comment typo fix.
5011
606e3b82
AC
50122003-07-17 Andrew Cagney <cagney@redhat.com>
5013
5014 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5015 configure.
5016 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5017 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5018 GDB_MULTI_ARCH_PARTIAL.
5019
c43af07c
EZ
50202003-07-17 Elena Zannoni <ezannoni@redhat.com>
5021
5022 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5023 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5024 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5025
3b85b0f1
TR
50262003-07-16 Theodore A. Roth <troth@openavr.org>
5027
5028 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5029 found.
5030 (avr_frame_unwind_cache): Don't unwind FP for main.
5031 Update a comment.
5032 Save the computed prev_sp.
5033 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5034 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5035 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5036
336d1bba
AC
50372003-07-16 Andrew Cagney <cagney@redhat.com>
5038
5039 * frame-base.h (frame_base_p_ftype): Delete definition.
5040 (frame_base_append_predicate): Delete declaration.
5041 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5042 (frame_unwind_append_predicate): Delete declaration.
5043 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5044 (append_predicate): Delete parameter "p".
5045 (frame_unwind_append_predicate): Delete function.
5046 (frame_unwind_append_sniffer): Update call to append_predicate.
5047 (frame_unwind_free): Delete function.
5048 (_initialize_frame_unwind): Pass NULL as "free" to
5049 register_gdbarch_data.
5050 (frame_unwind_init): Append the dummy_frame_sniffer.
5051 (frame_unwind_find_by_frame): Simplify.
5052 * frame-base.c (struct frame_base_table): Delete field "p".
5053 (append_predicate): Delete parameter "p".
5054 (frame_base_append_predicate): Delete function.
5055 (frame_base_append_sniffer): Update call to append_predicate.
5056 (frame_base_free): Delete function.
5057 (frame_base_find_by_frame): Simplify.
5058 (_initialize_frame_base): Pass NULL as "free" to
5059 register_gdbarch_data.
5060 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5061 (x86_64_sigtramp_frame_sniffer): Replace
5062 "x86_64_sigtramp_frame_p".
5063 (x86_64_init_abi): Set the frame unwind sniffers.
5064 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5065 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5066 (m68k_gdbarch_init): Set the frame unwind sniffers.
5067 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5068 "i386_sigtramp_frame_p".
5069 (i386_frame_sniffer): Replace "i386_frame_p".
5070 (i386_gdbarch_init): Set the frame unwind sniffers.
5071 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5072 (avr_gdbarch_init): Set the frame unwind sniffers.
5073 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5074 "alpha_sigtramp_frame_p"
5075 (alpha_heuristic_frame_sniffer): Replace
5076 "alpha_heuristic_frame_p".
5077 (alpha_gdbarch_init): Set the frame unwind sniffers.
5078 (alpha_dwarf2_init_abi): Ditto.
5079 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5080 "alpha_debug_frame_p".
5081 (alpha_mdebug_frame_base_sniffer): Replace
5082 "alpha_mdebug_frame_base_p".
5083 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5084 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5085 (d10v_gdbarch_init): Set the frame unwind sniffer.
5086 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5087 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5088 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5089 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5090 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5091 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5092
48db5a3c
CV
50932003-07-16 Michael Snyder <msnyder@redhat.com>
5094
5095 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5096 should go thru sh_dsp_register_sim_regno, else the dsp regs
5097 will not get the right values.
5098
50992003-07-16 Corinna Vinschen <vinschen@redhat.com>
5100
5101 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5102 deprecated_store_floating by call to store_typed_floating.
5103 (sh_sh4_register_convert_to_raw): Substitute call to
5104 deprecated_extract_floating by call to extract_typed_floating.
5105
51062003-07-16 Corinna Vinschen <vinschen@redhat.com>
5107
5108 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5109
51102003-07-16 Corinna Vinschen <vinschen@redhat.com>
5111
5112 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5113 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5114 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5115 as possible.
5116 (do_pseudo_register): Remove.
5117 (sh_push_dummy_code): New function.
5118 (sh64_store_struct_return): Rename from sh_store_struct_return.
5119 Only called for sh64 now.
5120 (sh_extract_struct_value_address): Regcache'ify.
5121 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5122 and accomodate new tasks.
5123 (sh64_push_return_address): Rename from sh_push_return_address.
5124 Only called for sh64 now.
5125 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5126 Regcache'ify.
5127 (sh3e_sh4_extract_return_value): Regcache'ify.
5128 (sh_default_store_return_value): Ditto.
5129 (sh3e_sh4_store_return_value): Ditto.
5130 (sh_default_register_byte): Remove.
5131 (sh_sh4_register_byte): Remove.
5132 (sh_default_register_raw_size): Remove.
5133 (sh_sh4_register_raw_size): Remove.
5134 (sh_register_virtual_size): Remove.
5135 (sh_sh3e_register_virtual_type): Remove.
5136 (sh_sh3e_register_type): New function.
5137 (sh_sh4_register_virtual_type): Remove.
5138 (sh_sh4_register_type): New function.
5139 (sh_default_register_virtual_type): Remove.
5140 (sh_default_register_type): New function.
5141 (do_fv_register_info): Add parameters to accomodate call from
5142 sh_print_registers_info.
5143 (do_dr_register_info): Ditto.
5144 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5145 Add parameters to accomodate call from sh_print_registers_info.
5146 (sh_do_fp_register): Ditto.
5147 (sh64_do_pseudo_register): Call do_dr_register_info,
5148 do_fv_register_info and sh_do_fp_register with default parameters.
5149 (sh_do_register): Add parameters to accomodate call from
5150 sh_print_registers_info.
5151 (sh_print_register): Ditto.
5152 (sh_print_registers_info): Rename from sh_do_registers_info.
5153 Add parameters to be used as gdbarch_print_registers_info
5154 implementation. Accomodate removed do_pseudo_register function
5155 pointer.
5156 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5157 function pointer. Call sh_print_register with default parameters.
5158 (sh64_do_registers_info): Call sh_print_registers_info instead of
5159 sh_do_registers_info.
5160 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5161 detection of deprecated vs. non-deprecated functionality.
5162 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5163 function pointer assignments by direct function calls.
5164
e8a89fe2
AC
51652003-07-15 Andrew Cagney <cagney@redhat.com>
5166
5167 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5168 (frame_register_unwind, create_new_frame): Ditto.
5169 (legacy_get_prev_frame, get_frame_type): Ditto.
5170 (get_frame_base_address): Use frame_base_find_by_frame.
5171 (get_frame_locals_address): Use frame_base_find_by_frame.
5172 (get_frame_args_address): Use frame_base_find_by_frame.
5173 * frame-base.h (frame_base_sniffer_ftype): Declare.
5174 (frame_base_append_sniffer): Declare.
5175 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5176 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5177 (frame_base_append_sniffer): New function.
5178 (frame_base_append_predicate): Add a NULL sniffer.
5179 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5180 (struct frame_base_table): Add "sniffer".
5181 (frame_base_free): Free the "sniffer" table.
5182 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5183 (frame_unwind_append_sniffer): Declare.
5184 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5185 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5186 (struct frame_unwind_table): Add "sniffer", delete "middle".
5187 (append_predicate): Add "sniffer" parameter, append the sniffer.
5188 (frame_unwind_init): Update append_predicate call.
5189 (frame_unwind_append_sniffer): New function.
5190 (frame_unwind_append_predicate): Update append_predicate call.
5191 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5192
0714963c
AC
51932003-07-15 Andrew Cagney <cagney@redhat.com>
5194
5195 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5196 before code inhibiting repeated unwind attempts. Add to
5197 commentary on that test's problems.
5198 * blockframe.c (inside_main_func): Look for "main" in the minimal
5199 symbol table.
5200 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5201 identical.
5202
d9170e22
AC
52032003-07-15 Andrew Cagney <cagney@redhat.com>
5204
5205 * complaints.c (struct explanation): Define.
5206 (struct complaints): Change type of "explanation" to "struct
5207 explanation".
5208 (symfile_explanations): Convert to a "struct explanation" table.
5209 (vcomplaint): Update.
5210
eba29c8c
ML
52112003-07-15 Michal Ludvig <mludvig@suse.cz>
5212
5213 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5214 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5215 x86_64_linux_(fill,supply)_gregset functions.
5216 * x86-64-linux-tdep.c (USER_*): New defines.
5217 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5218 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5219 New functions.
5220 (fetch_core_registers): Ditto.
5221 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5222 * x86-64-linux-tdep.h: New file.
5223 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5224 and core-regset.o.
5225 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5226
68cc0bfb
MK
52272003-07-13 Mark Kettenis <kettenis@gnu.org>
5228
88a115f7
MK
5229 * x86-64-tdep.c (x86_64_store_return_value): Use
5230 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5231
68cc0bfb
MK
5232 * configure.host: Add x86_64-*-freebsd*.
5233 * configure.tgt: Add x86_64-*-freebsd*.
5234 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5235 * amd64fbsd-nat.c: New file.
5236 * amd64fbsd-tdep.c: New file.
5237 * config/i386/nm-fbsd64.h: New file.
5238 * config/i386/fbsd64.mh: New file.
5239 * config/i386/fbsd64.mt: New file.
5240
138e7be5
MK
52412003-07-11 Mark Kettenis <kettenis@gnu.org>
5242
5243 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5244 `sc_regs_offset' and `sc_fpregs_offset'.
5245 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5246 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5247 (alpha_sigtramp_register_address): Rewrite to use new members of
5248 `struct gdbarch_tdep'.
5249 (alpha_gdbarch_init): Initialize new members of struct
5250 gdbarch_tdep'.
5251 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5252 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5253 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5254 (alphafbsd_pc_in_sigtramp): Implement.
5255 (alphafbsd_sigtramp_offset): New function.
5256 (alphafbsd_sigcontext_addr): New function.
5257 (alphafbsd_init_abi): Initialize signal trampoline related members
5258 of `struct gdbarch_tdep'.
5259 (_initialize_alphafbsd_tdep): Add prototype.
5260
95303a68
TR
52612003-07-11 Theodore A. Roth <troth@openavr.org>
5262
ba292e4c
TR
5263 * Makefile.in (install-only): Quote sed expression when generating
5264 transformed_name.
95303a68 5265
6896c0c7
RH
52662003-07-11 Richard Henderson <rth@redhat.com>
5267
5268 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5269 * dwarf2-frame.c: Include complaints.h.
5270 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5271 variable initialization; return NULL on error.
5272 (decode_frame_entry): New.
5273
8edd5d01
AC
52742003-07-11 Andrew Cagney <cagney@redhat.com>
5275
c4a09524
AC
5276 * frame.h (frame_address_in_block): Delete declaration.
5277 * blockframe.c (frame_address_in_block): Delete function.
5278 (get_frame_block): Use get_frame_address_in_block.
5279 (block_innermost_frame): Ditto.
5280 * stack.c (print_frame, backtrace_command_1): Ditto.
5281
8edd5d01
AC
5282 * frame.h (get_frame_address_in_block): Declare.
5283 (frame_unwind_address_in_block): Declare.
5284 * frame.c (frame_unwind_address_in_block): New function.
5285 (get_frame_address_in_block): New function.
5286
f7968451
AC
52872003-07-10 Andrew Cagney <cagney@redhat.com>
5288
5289 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5290 pre-default. Note: re-generate has no effect.
a8f4cde1 5291
ae99b398
AC
52922003-07-10 Andrew Cagney <cagney@redhat.com>
5293
5294 * gdbarch.sh: When a variable, but not a function, compare against
5295 0. Fix problem in previous patch.
5296 * gdbarch.c: Re-generate.
a8f4cde1 5297
956ac328
AC
52982003-07-10 Andrew Cagney <cagney@redhat.com>
5299
5300 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5301 functions against NULL, not 0.
5302 * gdbarch.c: Re-generate.
a8f4cde1 5303
287c3240
FF
53042003-07-10 Fred Fish <fnf@ninemoons.com>
5305
5306 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5307 null string instead of a null pointer.
5308 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5309
32f63c4b
MS
53102003-07-09 Michael Snyder <msnyder@redhat.com>
5311
5312 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5313
402ecd56
MK
53142003-07-09 Mark Kettenis <kettenis@gnu.org>
5315
5316 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5317 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5318 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5319 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5320 * x86-64-tdep.c: ... from here.
5321
c481dac7
AS
53222003-07-09 Andreas Schwab <schwab@suse.de>
5323
5324 * m68k-tdep.h (enum struct_return): Define.
5325 (struct gdbarch_tdep): Add struct_return.
5326 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5327 bytes are padded to the right, not to the left. Pass struct value
5328 address in register %a1, not on stack.
5329 (m68k_use_struct_convention): New function.
5330 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5331 struct_return in tdep to pcc_struct_return.
5332 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5333 reg_struct_return.
5334
a8f4cde1 53352003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5336
a8f4cde1 5337 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5338
96a4ee76
AC
53392003-07-09 Andrew Cagney <cagney@redhat.com>
5340
5341 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5342 Add comments about the checks.
5343
1517c6d1
AC
53442003-07-08 Andrew Cagney <cagney@redhat.com>
5345
5346 * Makefile.in: Make dependency section headers consistent.
5347 (config_h): Move to $BUILD headers section.
5348 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5349 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5350 (ada-exp.tab.c): Move to YACC/LEX section.
5351 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5352 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5353
dc5dd1eb
KW
53542003-07-08 Kris Warkentin <kewarken@qnx.com>
5355
5356 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5357 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5358 of strerror with safe_strerror, use ISO C function definitions,
5359 and replace instances of sprintf with snprintf.
dc5dd1eb 5360
612dde91
AC
53612003-07-07 Andrew Cagney <cagney@redhat.com>
5362
5363 * frame.c (get_prev_frame): Enable check for identical frames.
5364 Update comments. Update error messages.
5365
492c11d3
JB
53662003-07-07 Joel Brobecker <brobecker@gnat.com>
5367
5368 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5369
376a5a49
JB
53702003-07-07 Joel Brobecker <brobecker@gnat.com>
5371
5372 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5373 sort_symtab_syms, no longer necessary.
5374
22b4a9ad
JB
53752003-07-07 Joel Brobecker <brobecker@gnat.com>
5376
5377 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5378
5bbcb741
JB
53792003-07-07 Joel Brobecker <brobecker@gnat.com>
5380
5381 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5382 (mips_register_byte): Likewise.
5383
c139e7d9
DJ
53842003-07-07 Daniel Jacobowitz <drow@mvista.com>
5385
5386 * Makefile.in (sparc_tdep_h): New.
5387 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5388 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5389 * sparc-linux-nat.c: Include "sparc-tdep.h".
5390 * sparc-nat.c: Likewise.
5391 * sparc-tdep.c: Likewise.
5392 * sparc64nbsd-nat.c: Likewise.
5393 * sparcnbsd-nat.c: Likewise.
5394 * sparcnbsd-tdep.c: Likewise.
5395 * sparc-tdep.h: New file.
5396 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5397 and sparc_npc_regnum.
5398
fd8f87c5
DJ
53992003-07-07 Daniel Jacobowitz <drow@mvista.com>
5400
5401 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5402 (mips_linux_cannot_store_register): List supported instead of
5403 unsupported registers.
5404
13adf674
DJ
54052003-07-07 Daniel Jacobowitz <drow@mvista.com>
5406
5407 * disasm.c (dump_insns): Separate instructions from addresses.
5408
8de307e0
AS
54092003-07-07 Andreas Schwab <schwab@suse.de>
5410
5411 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5412 dependencies.
5413 * m68k-tdep.c (NUM_FREGS): Delete.
5414 (SIG_PC_FP_OFFSET): Delete.
5415 (TARGET_M68K): Delete.
5416 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5417 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5418 P_MOVEL_SP, P_MOVEML_SP): Define.
5419 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5420 P_TRAP): Delete.
5421 (m68k_register_raw_size): Delete.
5422 (m68k_register_virtual_size): Delete.
5423 (m68k_register_type): Renamed from m68k_register_virtual_type and
5424 add gdbarch argument.
5425 (m68k_store_struct_return): Delete.
5426 (m68k_deprecated_extract_return_value): Delete.
5427 (m68k_deprecated_extract_struct_value_address): Delete.
5428 (m68k_frame_chain): Delete.
5429 (m68k_frame_saved_pc): Delete.
5430 (m68k_fix_call_dummy): Delete.
5431 (m68k_push_dummy_frame): Delete.
5432 (m68k_pop_frame): Delete.
5433 (m68k_extract_return_value): New function.
5434 (m68k_store_return_value): Rewrite using regcache.
5435 (m68k_extract_struct_value_address): Rewrite using regcache.
5436 (m68k_push_dummy_call): New function.
5437 (struct m68k_frame_cache): Define.
5438 (m68k_alloc_frame_cache): New function.
5439 (m68k_analyze_frame_setup): New function.
5440 (m68k_analyze_register_saves): New function.
5441 (m68k_analyze_prologue): New function.
5442 (m68k_skip_prologue): Rewrite using above functions.
5443 (m68k_unwind_pc): New function.
5444 (m68k_frame_cache): New function.
5445 (m68k_frame_this_id): New function.
5446 (m68k_frame_prev_register): New function.
5447 (m68k_frame_unwind): New variable.
5448 (m68k_frame_p): New function.
5449 (m68k_sigtramp_frame_cache): New function.
5450 (m68k_sigtramp_frame_this_id): New function.
5451 (m68k_sigtramp_frame_prev_register): New function.
5452 (m68k_sigtramp_frame_unwind): New variable.
5453 (m68k_sigtramp_frame_p): New function.
5454 (m68k_frame_base_address): New function.
5455 (m68k_frame_base): New function.
5456 (m68k_unwind_dummy_id): New function.
5457 (fill_gregset): Use regcache_collect.
5458 (fill_fpregset): Likewise.
5459 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5460 defined.
5461 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5462 deprecated_init_frame_pc, deprecated_store_struct_return,
5463 deprecated_extract_return_value, deprecated_store_return_value,
5464 deprecated_frame_chain, deprecated_frame_saved_pc,
5465 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5466 deprecated_register_virtual_size,
5467 deprecated_max_register_raw_size,
5468 deprecated_max_register_virtual_size,
5469 deprecated_register_virtual_type, deprecated_register_size,
5470 deprecated_register_byte, deprecated_register_bytes,
5471 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5472 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5473 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5474 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5475 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5476 deprecated_push_dummy_frame, deprecated_pop_frame,
5477 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5478 only if SYSCALL_TRAP is defined. Set extract_return_value,
5479 store_return_value, extract_struct_value_address, register_type,
5480 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5481 predicates.
5482 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5483 M68K_MAX_REGISTER_SIZE): Define.
5484 (struct m68k_sigtramp_info): Define.
5485 (struct gdbarch_tdep): Add get_sigtramp_info.
5486 * m68klinux-nat.c (fetch_register): Use register_size instead of
5487 REGISTER_RAW_SIZE. Don't put assignment in if.
5488 (store_register): Likewise.
5489 (fetch_inferior_registers): Likewise.
5490 (store_inferior_registers): Likewise.
5491 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5492 (m68k_linux_frame_saved_pc): Delete.
5493 (m68k_linux_sigcontext_reg_offset,
5494 m68k_linux_ucontext_reg_offset): Define.
5495 (m68k_linux_get_sigtramp_info): New function.
5496 (m68k_linux_extract_return_value): Rewrite using regcache.
5497 (m68k_linux_store_return_value): Likewise.
5498 (m68k_linux_extract_struct_value_address): Likewise.
5499 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5500 Don't set deprecated_frame_saved_pc,
5501 deprecated_extract_return_value, deprecated_store_return_value,
5502 deprecated_extract_struct_value_address. Set
5503 extract_return_value, store_return_value,
5504 extract_struct_value_address.
5505
eb8bc282
AC
55062003-07-07 Andrew Cagney <cagney@redhat.com>
5507
5508 * expprint.c: Include "user-regs.h" instead of "frame.h".
5509 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5510 frame_map_regnum_to_name.
5511 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5512 (frame_map_name_to_regnum): Simplify, call
5513 user_reg_map_name_to_regnum.
5514 (frame_map_regnum_to_name): Simplify, call
5515 user_reg_map_regnum_to_name.
5516 (frame_register_unwind): Update.
5517 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5518 (_initialize_frame_reg): Call user_reg_add_builtin.
5519 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5520 (value_of_register): Use value_of_user_reg.
5521 * eval.c (evaluate_subexp_standard): Update.
5522 * parse.c (write_dollar_variable): Update.
5523 * d10v-tdep.c (d10v_print_registers_info): Update.
5524 * infcmd.c (registers_info): Update.
5525 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5526 (builtin_regs_h): Delete macro.
5527 (user_regs_h): Define.
5528 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5529 (builtin-regs.o): Delete target.
5530 (user-regs.o): Specify dependencies.
5531 (expprint.o): Update dependencies.
5532 (findvar.o): Update dependencies.
5533 (frame.o): Update dependencies.
5534 (std-regs.o): Update dependencies.
5535
9f476a01
CF
55362003-07-06 Christopher Faylor <cgf@redhat.com>
5537
5538 * win32-nat.c (solib_symbols_add): Use one variable for all section
5539 address stuff. Pass variable rather than address of variable to
5540 safe_symbol_file_add.
5541
a731b831
AS
55422003-07-06 Andreas Schwab <schwab@suse.de>
5543
5544 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5545
9f83329d
JB
55462003-07-04 Joel Brobecker <brobecker@gnat.com>
5547
5548 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5549
27e28cc5
KW
55502003-07-04 Kris Warkentin <kewarken@qnx.com>
5551
5552 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5553
55542003-07-04 Kris Warkentin <kewarken@qnx.com>
5555
5556 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5557 * config/i386/nto.mh: New file.
5558 * config/i386/nm-nto.h: New file.
5559 * configure.host: Add i[3456]86-*-nto*.
5560
100f2e98
JB
55612003-07-03 Joel Brobecker <brobecker@gnat.com>
5562
5563 * remote-vx.c (vx_add_symbols): Fix compilation error.
5564
e23457df
AC
55652003-07-03 Andrew Cagney <cagney@redhat.com>
5566
5567 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5568 * gdbarch.h, gdbarch.c: Re-generate.
5569 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5570 (legacy_register_name): Declare.
5571 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5572 (REGISTER_NAME): Define.
5573 * sparc-tdep.c (legacy_register_name): New function.
5574 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5575 (REGISTER_NAME): Define.
5576 (hppa64_register_name): Declare.
5577 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5578 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5579 (hppa64_register_name): New function.
5580 (hppa_register_name): New function.
5581 * arch-utils.c (legacy_register_name): Delete.
5582 * arch-utils.h (legacy_register_name): Delete.
5583
38caaeec
DJ
55842003-07-03 Daniel Jacobowitz <drow@mvista.com>
5585
5586 * cli/cli-interp.c (cli_interpreter_resume): Update the
5587 cli_uiout's stream to gdb_stdout.
5588
dadd712e
AC
55892003-07-03 Andrew Cagney <cagney@redhat.com>
5590
5591 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5592 predicate.
5593 * gdbarch.h, gdbarch.c: Re-generate.
5594 * regcache.c (init_regcache_descr): Use legacy code when either
5595 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5596
c7f1390e
DJ
55972003-07-02 Daniel Jacobowitz <drow@mvista.com>
5598
5599 * NEWS: Move "set logging" entry into GDB 6.0 section.
5600
4bc8c588
JB
56012003-07-02 Jim Blandy <jimb@redhat.com>
5602
a9dd42f1
JB
5603 * s390-tdep.c (struct frame_extra_info): new member:
5604 'stack_bought_valid'.
5605 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5606 initialize fextra_info->stack_bought.
5607 (s390_frameless_function_invocation): Don't trust the value of
5608 fextra_info_ptr->stack_bought unless
5609 fextra_info->stack_bought_valid is set.
5610
4bc8c588
JB
5611 New S390 prologue analyzer.
5612 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5613 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5614 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5615 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5616 compute_x_addr, s390_on_stack, s390_store,
5617 s390_get_signal_frame_info): New functions.
5618 (S390_NUM_SPILL_SLOTS): New macro.
5619 (s390_get_frame_info): Rewritten.
5620 (is_arg_reg): Deleted.
5621
5622 Break out the decoding of S/390 instructions into separate
5623 functions, to make it more legible, and easier to check
5624 against the spec.
5625 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5626 is_rx, is_rxe): New functions.
5627 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5628 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5629 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5630 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5631 enums for opcode values. (Is this an improvement?)
5632
fd13a04a
AC
56332003-07-02 Andrew Cagney <cagney@redhat.com>
5634
5635 * i386-tdep.c: Revert change committed as part of trad-frame code
5636 below.
5637
3f8091c1
DJ
56382003-07-02 Daniel Jacobowitz <drow@mvista.com>
5639
5640 * breakpoint.c (insert_catchpoint): Make static.
5641
8dd5115e
AS
56422003-07-02 Andreas Schwab <schwab@suse.de>
5643
5644 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5645 former ia64_push_arguments and ia64_push_return_address, and use
5646 regcache functions instead of read/write_register.
5647 (ia64_gdbarch_init): Set push_dummy_call instead of
5648 deprecated_push_arguments and deprecated_push_return_address.
5649
a2229c23
AJ
56502003-07-01 Andreas Jaeger <aj@suse.de>
5651
5652 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5653 before the call.
5654 Set %rax only to number of SSE registers used.
5655
3b3850e8
AC
56562003-07-01 Andrew Cagney <cagney@redhat.com>
5657
5658 * trad-frame.h: Update comments, a -1 .addr is reserved.
5659 (trad_frame_value_p, trad_frame_addr_p): Declare.
5660 (trad_frame_reg_p): Declare.
5661 (trad_frame_set_value): Rename trad_frame_register_value.
5662 (trad_frame_set_unknown): Declare.
5663 * trad-frame.c (trad_frame_realreg_p): New function.
5664 (trad_frame_addr_p, trad_frame_value_p): New function.
5665 (trad_frame_set_unknown): New function.
5666 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5667 (trad_frame_prev_register): Use trad_frame_realreg_p,
5668 trad_frame_addr_p and trad_frame_value_p.
5669 (trad_frame_set_value): Rename trad_frame_register_value.
5670 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5671 and trad_frame_set_value.
a2229c23 5672
4d819d0e
JB
56732003-06-30 Jim Blandy <jimb@redhat.com>
5674
5675 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5676 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5677 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5678 for 16 registers, and then 32 more bytes.
5679 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5680 New macros.
5681 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5682 Move up in the file, since it's now used by is_simple_arg.
5683 (is_simple_arg): Don't assume registers are four bytes long.
5684 Exclude all double arguments. Extended floats are not simple
5685 args.
5686 (is_power_of_two): New function.
5687 (pass_by_copy_ref): Call is_power_of_two, and check that the
5688 length fits in a register, rather than listing all the acceptable
5689 sizes. Extended floats are not passed by reference.
5690 (s390_push_arguments): Don't assume registers are four bytes long.
5691 Reserve an argument register to point to the buffer for structures
5692 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5693 S390_STACK_FRAME_OVERHEAD.
5694
1ad828f1
AS
56952003-06-30 Andreas Schwab <schwab@suse.de>
5696
5697 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5698 format error message.
5699
39b00981
JB
57002003-06-30 Joel Brobecker <brobecker@gnat.com>
5701
5702 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5703
b2a7f303
DC
57042003-06-30 David Carlton <carlton@kealia.com>
5705
5706 Band-aid for PR c++/1245.
5707 * Makefile.in (cp-support.o): Depend on complaints_h.
5708 * cp-support.c: Include complaints.h. Add declaration for
5709 find_last_component.
5710 (cp_find_first_component): Separate code into
5711 cp_find_first_component_aux.
5712 (cp_find_first_component_aux): Call demangled_name_complaint.
5713 (demangled_name_complaint): New.
5714
a257b5bb
AC
57152003-06-30 Andrew Cagney <cagney@redhat.com>
5716
5717 * remote.c (remote_write_bytes): Explicitly compute and then use
5718 the payload size. Update comments to reflect. Fixes problem of
5719 GDB not sending small packets as found by Fred Fish.
5720
0a2cfde4
AC
57212003-06-30 Andrew Cagney <cagney@redhat.com>
5722
5723 * remote.c (remote_async_wait): Fix -Wformat problem.
5724
3fcb8548
AC
57252003-06-29 Andrew Cagney <cagney@redhat.com>
5726
5727 * remote.c (remote_wait): Call error, and not warning, when the
5728 packet is corrupt.
5729 (remote_async_wait): Ditto.
5730
9f9970a3
DJ
57312003-06-29 Daniel Jacobowitz <drow@mvista.com>
5732
5733 * sparc-tdep.c (sparc_y_regnum): Make external again.
5734
83a8ccca
DJ
57352003-06-29 Daniel Jacobowitz <drow@mvista.com>
5736
5737 * cli/cli-logging.c (pop_output_files): Add void to function
5738 definition.
5739
d2cf594a
AC
57402003-06-29 Andrew Cagney <cagney@redhat.com>
5741
5742 * frame.c (frame_register_unwind): Use unsigned char when dumping
5743 the buffer contents.
5744
0fac0b41
DJ
57452003-06-28 Daniel Jacobowitz <drow@mvista.com>
5746
5747 * cli/cli-logging.c: New file.
5748 * cli-out.c (struct ui_out_data): Add original_stream.
5749 (cli_redirect): New function.
5750 (cli_ui_out_impl): Add cli_redirect.
5751 (cli_out_new): Initialize original_stream.
5752 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5753 (uo_redirect, ui_out_redirect): New.
5754 * ui-out.h (struct ui_out_impl): Add redirect member.
5755 (redirect_ftype): New.
5756 (ui_out_redirect): Add prototype.
5757 * Makefile.in: Add rules for cli-logging.c.
5758 * NEWS: Mention "set logging".
5759
88a07d7c
EZ
57602003-06-27 Elena Zannoni <ezannoni@redhat.com>
5761
5762 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5763
4eb58876
AC
57642003-06-27 Andrew Cagney <cagney@redhat.com>
5765
5766 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5767 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5768 * avr-tdep.c (avr_call_dummy_address): Delete function.
5769 (avr_gdbarch_init): Do not set call_dummy_address.
5770
1549f619
EZ
57712003-06-27 Elena Zannoni <ezannoni@redhat.com>
5772
5773 * symfile.c (syms_from_objfile): Move variables to inner block.
5774 Move the checks for the non-mainline case a bit earlier to avoid
5775 doing some useless computations.
5776
3cb3398d
EZ
57772003-06-27 Elena Zannoni <ezannoni@redhat.com>
5778
5779 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5780
3799ccc6
EZ
57812003-06-26 Elena Zannoni <ezannoni@redhat.com>
5782
5783 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5784 sections.
5785
ce1f6491
MC
57862003-06-26 Michael Chastain <mec@shout.net>
5787
5788 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5789 gdb/testsuite/gdb.c++/pr-1210.exp.
5790
d958dfd0
AC
57912003-06-26 Andrew Cagney <cagney@redhat.com>
5792
5793 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5794 altivec_expression.h and altivec_registers.h.
5795
d31431ed
AC
57962003-06-26 Andrew Cagney <cagney@redhat.com>
5797
5798 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5799 info->mach when MIPS16. Patch suggested by Fred Fish.
5800
714b1282
AC
58012003-06-26 Andrew Cagney <cagney@redhat.com>
5802
5803 * utils.c (internal_vproblem): Print the problem to a reason
5804 buffer and then pass to query. Make the msg variable more local.
5805
42efa47a
AC
58062003-06-26 Andrew Cagney <cagney@redhat.com>
5807
5808 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5809 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5810 * gdbarch.h, gdbarch.c: Re-generate.
5811 * frame-base.c (default_frame_args_address): Update. Use
5812 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5813 not available.
5814 (default_frame_locals_address): Ditto for
5815 DEPRECATED_FRAME_LOCALS_ADDRESS.
5816 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5817 (vax_frame_num_args): Update.
5818 (vax_gdbarch_init): Update.
5819 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5820 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5821 * mcore-tdep.c (mcore_gdbarch_init): Update.
5822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5823 * ia64-tdep.c (ia64_gdbarch_init): Update.
5824 * symtab.h (address_class): Update comments.
5825 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5826 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5827 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5828 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5829 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5830 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5831 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5832 * alpha-mdebug-tdep.c: Update.
5833 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5834
8ffd9b1b
AJ
58352003-06-26 Andreas Jaeger <aj@suse.de>
5836
5837 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5838 of SSE registers so that varargs functions work. Rework handling
5839 of passing arguments on the stack.
5840 (x86_64_store_return_value): Return double and float values in SSE
5841 register.
5842
e8ac10a6
MC
58432003-06-24 Michael Chastain <mec@shout.net>
5844
5845 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5846 the "constructor breakpoints ignored" bug.
5847
986af8e6
DC
58482003-06-25 David Carlton <carlton@kealia.com>
5849
5850 * MAINTAINERS: Update e-mail address.
5851
d64558a5
JB
58522003-06-24 Jim Blandy <jimb@redhat.com>
5853
e538d2d7
JB
5854 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5855
02631ec0
JB
5856 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5857 function.
5858 (ppc_linux_init_abi): Register it as the
5859 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5860
e716d87a
JB
5861 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5862 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5863 method.
5864
d64558a5
JB
5865 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5866 (ppc64_standard_linkage_target): Use it.
5867
449a5da4
AC
58682003-06-23 Andrew Cagney <cagney@redhat.com>
5869
5870 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5871 for 0 "int0" and 4 "int32" sized registers.
5872 * gdbtypes.c (builtin_type_int0): Define.
5873 (build_gdbtypes): Initialize builtin_type_int0.
5874 * gdbtypes.h (builtin_type_int0): Declare.
5875
b2a02dda
SC
58762003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5877
5878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5879 as characters are unsigned.
5880
fba3138e
DJ
58812003-06-22 Daniel Jacobowitz <drow@mvista.com>
5882
5883 PR gdb/1179
5884 * dwarfread.c (struct_type): Skip static fields without crashing.
5885
f6c8180b
AC
58862003-06-22 Andrew Cagney <cagney@redhat.com>
5887
5888 GDB 6.0 branch created.
f2c06f52
AC
5889 * README: Update.
5890 * PROBLEMS: Update. Empty.
5891 * NEWS: Update.
f6c8180b 5892
ae822768
DJ
58932003-06-22 Daniel Jacobowitz <drow@mvista.com>
5894
5895 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5896 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5897
261de166
AC
58982003-06-22 Andrew Cagney <cagney@redhat.com>
5899
5900 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5901 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5902 Velikov.
5903
30e94205
DJ
59042003-06-22 Daniel Jacobowitz <drow@mvista.com>
5905
5906 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5907 compilers.
5908
9e14d721
DJ
59092003-06-21 Daniel Jacobowitz <drow@mvista.com>
5910
5911 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5912 argument of val_print.
5913 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5914 to the address argument of baseclass_offset or target_read_memory.
5915 Do add it to the argument of cp_print_value_fields.
5916
a4b8ebc8
AC
59172003-06-21 Andrew Cagney <cagney@redhat.com>
5918
5919 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5920 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5921 instead of 0..NUM_REGS.
5922 (mips_register_reggroup_p): New function.
5923 (mips_pseudo_register_write): New function.
5924 (mips_pseudo_register_read): New function.
5925 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5926 based on the register's type.
5927 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5928 cooked.
5929 (mips_get_saved_register): Simplify. Assert that REGNO is a
5930 pseudo / cooked.
5931 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5932 (mips_register_type): Replace mips_register_virtual_type. Map
5933 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5934 when available.
5935 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5936 that the register is cooked / virtual.
5937 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5938 Only get the extra info when needed.
5939 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5940 (mips32_heuristic_proc_desc): Fetch the cooked register.
5941 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5942 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5943 (mips_print_register): Use gdbarch_register_type, instead of
5944 REGISTER_VIRTUAL_TYPE.
5945 (print_gp_register_row): Use gdbarch_register_type, instead of
5946 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5947 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5948 Print the pseudo / cooked registers.
5949 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5950 Print the pseudo / cooked registers.
5951 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5952 REG_NUM is pseudo / cooked.
5953 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5954 (mips_n32n64_xfer_return_value): Ditto.
5955 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5956 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5957 (mips_register_sim_regno): New function.
5958 (mips_gdbarch_init): Set deprecated_register_byte,
5959 register_group_p, pseudo_register_write, pseudo_register_read,
5960 register_sim_regno, and num_pseudo_regs. Set register_type,
5961 instead of register_virtual_type.
5962 * Makefile.in (mips-tdep.o): Update dependencies.
5963 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5964 REGISTER_VIRTUAL_TYPE.
5965 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5966 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5967 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5968 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5969 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5970
325ed089
DJ
59712003-06-21 Daniel Jacobowitz <drow@mvista.com>
5972
5973 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5974 * cli/cli-cmds.c: Include "gdb_vfork.h".
5975 (shell_escape): Use vfork.
5976
f0e7d0e8
AC
59772003-06-21 Andrew Cagney <cagney@redhat.com>
5978
c57bb9fa
AC
5979 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5980 32 bit floating-point register saves.
5981
6e51443a
AC
5982 * frame.h (deprecated_unwind_get_saved_register): Delete.
5983 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5984 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5985 and deprecated_get_next_frame_hack instead of
5986 deprecated_unwind_get_saved_register.
5987
ed183c7c
AC
5988 * mips-tdep.c (mips_dump_tdep): Do not print
5989 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5990
f0e7d0e8
AC
5991 * frame.c (get_frame_register): New function.
5992 (frame_unwind_register_signed): New function.
5993 (get_frame_register_signed): New function.
5994 (frame_unwind_register_unsigned): New function.
5995 (get_frame_register_unsigned): New function.
5996 * frame.h: Add comments on naming schema.
5997 (get_frame_register, frame_unwind_register_signed): Declare.
5998 (get_frame_register_signed, get_frame_register_signed): Declare.
5999 (frame_unwind_register_unsigned): Declare.
6000 (get_frame_register_unsigned): Declare.
6001
2224d941
TR
60022003-06-20 Theodore A. Roth <troth@openavr.org>
6003
6004 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6005
8619218d
TR
60062003-06-20 Theodore A. Roth <troth@openavr.org>
6007
6008 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6009 (avr_read_sp): Ditto.
6010
0b1b50c0
DJ
60112003-06-20 Daniel Jacobowitz <drow@mvista.com>
6012
6013 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6014 * config/arm/nm-linux.h: Likewise.
6015 * config/arm/tm-linux.h: Likewise.
6016 * config/ia64/nm-linux.h: Likewise.
6017 * config/ia64/tm-ia64.h: Likewise.
6018 * config/s390/tm-linux.h: Likewise.
6019 * config/s390/tm-s390.h: Likewise.
6020 * s390-nat.c: Likewise.
6021 * s390-tdep.c: Likewise.
6022
6023 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6024 * config/ia64/linux.mt: Likewise.
6025 * config/m68k/linux.mh: Likewise.
6026 * config/mips/linux.mt: Likewise.
6027 * config/powerpc/linux.mh: Likewise.
6028 * config/sh/linux.mt: Likewise.
6029
c8c18e65
KW
60302003-06-19 Kris Warkentin <kewarken@qnx.com>
6031
6032 * solib.c (solib_open): Change tests for whether to search
6033 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6034 comments.
6035
dcccef2e
TR
60362003-06-19 Theodore A. Roth <troth@openavr.org>
6037
6038 * avr-tdep.c (avr_frame_address): Delete function.
6039 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6040 set_gdbarch_frame_args_address.
6041
5861a190
AC
60422003-06-19 Andrew Cagney <cagney@redhat.com>
6043
6044 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6045 (REGISTER_CONVERT_FROM_TYPE): Delete.
6046 (mips_register_convert_to_type): Delete declaration.
6047 (mips_register_convert_from_type): Delete declaration.
6048 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6049 kernel/.
6050
0274a8ce
MS
60512003-06-19 Michael Snyder <msnyder@redhat.com>
6052
6053 * linux-nat.h: New file.
6054 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6055 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6056 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6057 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6058 (linux_make_note_section): Iterate over lwps instead of threads.
6059 (linux_do_thread_registers): Use lwp instead of merged pid.
6060 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6061 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6062 Add dependency on linux_nat_h.
6063
adf5f719
TR
60642003-06-19 Theodore A. Roth <troth@openavr.org>
6065
6066 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6067
6766a268
DJ
60682003-06-19 Daniel Jacobowitz <drow@mvista.com>
6069
6070 * varobj.c (get_type, get_target_type): Use check_typedef.
6071
1171114a
DJ
60722003-06-19 Daniel Jacobowitz <drow@mvista.com>
6073
6074 * breakpoint.c (insert_catchpoint): Call internal_error.
6075
adcf68a2
TR
60762003-06-19 Theodore A. Roth <troth@openavr.org>
6077
6078 * avr-tdep.c (avr_push_dummy_code): Delete function.
6079 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6080
ea67f13b
DJ
60812003-06-19 Daniel Jacobowitz <drow@mvista.com>
6082
6083 * arch-utils.c (default_prepare_to_proceed): Remove.
6084 (generic_prepare_to_proceed): Remove.
6085 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6086 (generic_prepare_to_proceed): Remove prototype.
6087 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6088 * gdbarch.c: Regenerate.
6089 * gdbarch.h: Regenerate.
6090 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6091 * hppah-nat.c (hppa_switched_threads): Remove.
6092 * infrun.c (prepare_to_proceed): New static function, copied from
6093 generic_prepare_to_proceed. Remove select_it argument.
6094 (proceed): Call prepare_to_proceed.
6095 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6096 variables.
6097 (ptrace_wait): Don't set the removed variables.
6098 (hppa_switched_threads): Remove.
6099 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6100 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6101 (lin_lwp_prepare_to_proceed): Remove prototype.
6102 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6103 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6104
4add8633
TR
61052003-06-18 Theodore A. Roth <troth@openavr.org>
6106
6107 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6108 trad-frame.h.
6109 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6110 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6111 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6112 (AVR_PROLOGUE_*): Enumerate prologue types.
6113 (struct frame_extra_info): Remove.
6114 (struct avr_unwind_cache): Define.
6115 (avr_write_sp): Delete function.
6116 (avr_read_fp): Ditto.
6117 (avr_init_extra_frame_info): Ditto.
6118 (avr_pop_frame): Ditto.
6119 (avr_frame_saved_pc): Ditto.
6120 (avr_saved_pc_after_call): Ditto.
6121 (avr_push_return_address): Ditto.
6122 (avr_frame_chain): Ditto.
6123 (avr_store_struct_return): Ditto.
6124 (avr_push_arguments): Ditto.
6125 (avr_scan_prologue): Update comments. Changed to set up the info for
6126 cache unwinding. Now returns end of prologue PC.
6127 (avr_skip_prologue): Better handling of functions lacking a prologue
6128 by using avr_scan_prologue.
6129 (avr_scan_arg_moves): New function.
6130 (avr_saved_regs_unwinder): Ditto.
6131 (avr_frame_unwind_cache): Ditto.
6132 (avr_unwind_pc): Ditto.
6133 (avr_frame_this_id): Ditto.
6134 (avr_frame_prev_register): Ditto.
6135 (avr_frame_p): Ditto.
6136 (avr_frame_base_address ): Ditto.
6137 (avr_unwind_dummy_id): Ditto.
6138 (avr_push_dummy_code): Ditto.
6139 (push_stack_item): Ditto.
6140 (pop_stack_item): Ditto.
6141 (avr_push_dummy_call): Ditto.
6142 (struct stack_item): Define.
6143 (avr_frame_unwind): Declare structure.
6144 (avr_frame_base): Ditto.
6145 (avr_gdbarch_init): Remove calls to
6146 set_gdbarch_deprecated_init_frame_pc,
6147 set_gdbarch_deprecated_target_read_fp,
6148 set_gdbarch_deprecated_dummy_write_sp,
6149 set_gdbarch_deprecated_fp_regnum,
6150 set_gdbarch_deprecated_push_arguments,
6151 set_gdbarch_deprecated_push_return_address,
6152 set_gdbarch_deprecated_pop_frame,
6153 set_gdbarch_deprecated_store_struct_return,
6154 set_gdbarch_deprecated_frame_init_saved_regs,
6155 set_gdbarch_deprecated_init_extra_frame_info,
6156 set_gdbarch_deprecated_frame_chain,
6157 set_gdbarch_deprecated_frame_saved_pc,
6158 set_gdbarch_deprecated_saved_pc_after_call.
6159 Add calls to set_gdbarch_push_dummy_call,
6160 set_gdbarch_push_dummy_code,
6161 frame_unwind_append_predicate,
6162 frame_base_set_default,
6163 set_gdbarch_unwind_dummy_id,
6164 set_gdbarch_unwind_pc.
6165 Wrap a long line.
6166
7be04a68
MS
61672003-06-18 Corinna Vinschen <vinschen@redhat.com>
6168
6169 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6170 registers for H8/300S.
6171 (h8300_print_registers_info): Ditto.
8ffd9b1b 6172 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6173
ae087d01
DJ
61742003-06-18 Daniel Jacobowitz <drow@mvista.com>
6175
6176 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6177 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6178 (lin_lwp_wait): Likewise. Update comments.
6179 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6180 (pull_pid_from_list, linux_record_stopped_pid): New.
6181
07d8f827
SC
61822003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6183
6184 * ada-lang.c (scan_discrim_bound): Name first argument.
6185 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6186 declared by ALL_BLOCK_SYMBOLS.
6187
7cb47b14
SC
61882003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6189
6190 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6191 ("regcache.h"): Include it.
6192 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6193
6ad8ae5c
DJ
61942003-06-17 Daniel Jacobowitz <drow@mvista.com>
6195
6196 * NEWS: Mention gdbserver detach change and "disconnect" command.
6197 * infcmd.c (disconnect_command): New function.
6198 (_initialize_infcmd): Add ``disconnect'' command.
6199 * remote.c (remote_async_detach): Delete.
6200 (remote_detach): Merge remote_async_detach.
6201 (remote_disconnect): New.
6202 (init_remote_ops): Set to_disconnect.
6203 (init_remote_cisco_ops): Likewise.
6204 (init_remote_async_ops): Likewise. Use remote_detach.
6205 * target.c (cleanup_target): Default to_disconnect.
6206 (update_current_target): Inherit to_disconnect.
6207 (target_disconnect, debug_to_disconnect): New functions.
6208 (setup_target_debug): Set to_disconnect.
6209 * target.h (struct target_ops): Add to_disconnect.
6210 (target_disconnect): Add prototype.
6211
687595f9
DJ
62122003-06-17 Daniel Jacobowitz <drow@mvista.com>
6213
6214 * breakpoint.c (insert_catchpoint): New function.
6215 (insert_breakpoints): Use catch_exceptions to call
6216 insert_catchpoint. Disable catchpoints if they fail to insert.
6217
29239a8f
DJ
62182003-06-17 Daniel Jacobowitz <drow@mvista.com>
6219
6220 * symfile.c (reread_symbols): Clear sym_private.
6221
2cdf3c63
AC
62222003-06-17 Andrew Cagney <cagney@redhat.com>
6223
6224 * trad-frame.h (struct frame_info): Add opaque declaration.
6225 * remote-fileio.h (struct cmd_list_element): Add opaque
6226 declaration.
6227 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6228 comments.
6229
cf0e1e0d
DJ
62302003-06-17 Daniel Jacobowitz <drow@mvista.com>
6231
6232 * remote.c (remote_prepare_to_store): Replace call to
6233 deprecated_read_register_bytes with multiple regcache_raw_read
6234 calls.
6235
192cdb19
KW
62362003-06-17 Kris Warkentin <kewarken@qnx.com>
6237
6238 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6239 (nto_find_and_open_solib): Likewise.
6240 (nto_init_solib_absolute_prefix): Likewise.
6241 (_initialize_nto_tdep): Fix indentation.
6242
89929b45
KW
62432003-06-17 Kris Warkentin <kewarken@qnx.com>
6244
6245 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6246
46019f27
KW
62472003-06-17 Kris Warkentin <kewarken@qnx.com>
6248
6249 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6250
1a38736e
JB
62512003-06-17 Jim Blandy <jimb@redhat.com>
6252
6253 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6254
3605c34a
TR
62552003-06-16 Theodore A. Roth <troth@openavr.org>
6256
6257 * avr-tdep.c (avr_extract_return_value): New function.
6258 (avr_gdbarch_init): Set extract_return_value method.
6259
870b3035
AC
62602003-06-16 Andrew Cagney <cagney@redhat.com>
6261
6262 * frame.h (deprecated_get_next_frame_hack): Declare.
6263 * frame.c (legacy_saved_regs_prev_register): Only require
6264 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6265 there are always saved regs.
6266 (deprecated_generic_get_saved_register): Do not require
6267 DEPRECATED_FRAME_INIT_SAVED_REGS.
6268 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6269 use frame ID unwind instead.
6270 (deprecated_get_next_frame_hack): New function.
6271
63d47a7d
CV
62722003-06-16 Corinna Vinschen <vinschen@redhat.com>
6273
6274 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6275 (h8300_push_dummy_call): ...this function. Some minor optimization.
6276 (h8300_push_return_address): Remove.
6277 (h8300_gdbarch_init): Remove calls to
6278 set_gdbarch_deprecated_dummy_write_sp,
6279 set_gdbarch_deprecated_push_arguments and
6280 set_gdbarch_deprecated_push_return_address.
6281 Add call to set_gdbarch_push_dummy_call.
6282
4bb1dc5e
CV
62832003-06-16 Corinna Vinschen <vinschen@redhat.com>
6284
6285 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6286 (E_PSEUDO_EXR_REGNUM): Ditto.
6287 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6288 registers into safe registers.
4bb1dc5e
CV
6289 (h8300_skip_prologue): Check for stm instruction to push registers
6290 used for register variables onto stack.
6291 (gdb_print_insn_h8300): Remove.
6292 (h8300_examine_prologue): Add a comment.
6293 (h8300_register_name): Take pseudo registers into account.
6294 (h8300s_register_name): Ditto.
6295 (h8300sx_register_name): Ditto.
6296 (h8300_print_register): Ditto.
6297 (h8300_print_registers_info): Define "nice" printing order.
6298 (h8300_saved_pc_after_call): Take pseudo registers into account.
6299 (h8300_register_type): Ditto. Return type used for remote connection
6300 when requesting real CCR or EXR register, return actual type when
6301 requesting pseudo CCR or EXR.
6302 (h8300_pseudo_register_read): New function.
6303 (h8300_pseudo_register_write): Ditto.
6304 (h8300_dbg_reg_to_regnum): Ditto.
6305 (h8300s_dbg_reg_to_regnum): Ditto.
6306 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6307 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6308 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6309 set_gdbarch_print_insn architecture dependent.
6310 Call set_gdbarch_pseudo_register_read and
6311 set_gdbarch_pseudo_register_write.
6312 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6313
a59fe496
AC
63142003-06-16 Andrew Cagney <cagney@redhat.com>
6315
6316 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6317 * gdbarch.h, gdbarch.c: Re-generate.
6318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6319 * s390-tdep.c (s390_gdbarch_init): Update.
6320 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6321 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6322 * mips-tdep.c (mips_gdbarch_init): Update.
6323 * mcore-tdep.c (mcore_gdbarch_init): Update.
6324 * cris-tdep.c (cris_gdbarch_init): Update.
6325 * infcall.c (call_function_by_hand): Update.
6326 * ia64-tdep.c (ia64_push_arguments): Update comment.
6327 * frame.c (legacy_get_prev_frame): Do not assume
6328 SAVE_DUMMY_FRAME_TOS_P.
6329 * dummy-frame.c (find_dummy_frame): Update comment.
6330
6f4e5a41
AC
63312003-06-16 Andrew Cagney <cagney@redhat.com>
6332
6333 * regcache.c (do_cooked_read): Do not use register_valid_p.
6334
72fab697
TR
63352003-06-15 Theodore A. Roth <troth@openavr.org>
6336
6337 * avr-tdep.c (avr_register_type): Remove a blank line.
6338 (avr_scan_prologue): Correct some comments.
6339
e3d8b004
TR
63402003-06-15 Theodore A. Roth <troth@openavr.org>
6341
6342 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6343 prologue types.
8ffd9b1b 6344 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6345 option.
6346 Add code to scan -mcall-prologues for mega devices.
6347
866b76ea
TR
63482003-06-15 Theodore A. Roth <troth@openavr.org>
6349
6350 * avr-tdep.c (avr_register_byte): Delete function.
6351 (avr_register_raw_size): Delete function.
6352 (avr_register_virtual_size): Delete function.
6353 (avr_register_virtual_type): Delete function.
6354 (avr_register_type): New function.
6355 (avr_address_to_pointer): Remove unused code.
6356 (avr_read_fp): Need to read FP as two separate bytes due to change to
6357 avr_register_type() usage.
6358 (avr_gdbarch_init): Don't set deprecated_register_size.
6359 Don't set deprecated_register_bytes.
6360 Don't set deprecated_register_byte.
6361 Don't set deprecated_register_raw_size.
6362 Don't set deprecated_max_register_raw_size.
6363 Don't set deprecated_register_virtual_size.
6364 Don't set deprecated_max_register_virtual_size.
6365 Don't set deprecated_register_virtual_type.
6366 Set register_type method.
6367
3993f6b1
DJ
63682003-06-15 Daniel Jacobowitz <drow@mvista.com>
6369
6370 * Makefile.in (linux-nat.o): Add rule.
6371 * linux-nat.c: New file.
6372 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6373 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6374 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6375 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6376 * config/arm/linux.mh (NATDEPFILES): Likewise.
6377 * config/i386/linux.mh (NATDEPFILES): Likewise.
6378 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6379 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6380 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6381 * config/mips/linux.mh (NATDEPFILES): Likewise.
6382 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6383 * config/s390/s390.mh (NATDEPFILES): Likewise.
6384 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6385
786a90bb
MK
63862003-06-15 Mark Kettenis <kettenis@gnu.org>
6387
6388 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6389 replace out-of-date comment.
6390
3bd3f01e
AC
63912003-06-15 Andrew Cagney <cagney@redhat.com>
6392
6393 * rdi-share/host.h (Fail): Change to a varargs function.
6394 * remote-rdi.c (Fail): Update.
8ffd9b1b 6395
de5b9bb9
MK
63962003-06-15 Mark Kettenis <kettenis@gnu.org>
6397
6398 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6399 (i386_convert_register_p, i386_register_to_value,
6400 i386_register_from_value): Handle types longer than 8 bytes.
6401
d532c08f
MK
64022003-06-15 Mark Kettenis <kettenis@gnu.org>
6403
6404 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6405 Move floating-point code to new function in i387-tdep.c.
6406 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6407 New functions containing code moved here from i386-tdep.c.
6408 * i387-tdep.h: Add opaque declaration for `struct type'.
6409 (i387_register_to_value, i387_value_to_register): New prototypes.
6410 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6411 (x86_64_init_abi): Set convert_register_p, register_to_value and
6412 value_to_register here.
8ffd9b1b 6413
42c466d7
AC
64142003-06-14 Andrew Cagney <cagney@redhat.com>
6415
6416 * mips-tdep.c (mips_register_to_value): Make static.
6417 (mips_value_to_register): Make static.
6418 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6419 * ia64-tdep.c (ia64_register_raw_size): Make static.
6420 (ia64_register_virtual_size): Make static.
6421 (ia64_register_byte): Make static.
6422 * i387-tdep.c: Include "i387-tdep.h".
6423 (print_387_control_word): Delete function.
6424 (print_387_status_word): Delete function.
6425 (print_387_status_bits): Delete function.
6426 (print_387_control_bits): Delete function.
6427 * Makefile.in (i387-tdep.o): Update dependencies.
6428 * rdi-share/host.h (Fail): Declare.
6429 * remote-rdi.c (Fail): Update to match declaration.
6430
2a9cda49
AC
64312003-06-14 Andrew Cagney <cagney@redhat.com>
6432
6433 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6434 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6435 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6436 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6437 * README: Delete reference to remote-array.
6438 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6439 (remote-array.o): Delete target.
6440 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6441 * remote-array.c: Delete file.
6442
ff2e87ac
AC
64432003-06-14 Andrew Cagney <cagney@redhat.com>
6444 Mark Kettenis <kettenis@gnu.org>
6445
6446 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6447 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6448 parameter with "frame".
6449 * gdbarch.h, gdbarch.c: Re-generate.
6450 * frame.h (put_frame_register): Declare.
6451 * frame.c (put_frame_register): New function.
6452 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6453 (legacy_register_to_value): Rewrite, use "frame" to get the
6454 register value.
6455 (legacy_value_to_register): Rewrite, use "frame" to find the
6456 register's location before storing.
6457 * arch-utils.h (legacy_convert_register_p): Update.
6458 (legacy_register_to_value, legacy_value_to_register): Update.
6459 * findvar.c (value_from_register): Rewrite, eliminate use of
6460 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6461 "frame" to REGISTER_TO_VALUE.
6462 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6463 lval_reg_frame_relative + lval_register branch of the switch. Do
6464 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6465 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6466 I386_EDI_REGNUM): New defines.
6467 (i386_next_regnum, i386_convert_register_p,
6468 i386_register_to_value, i386_value_to_register): New functions.
6469 (i386_register_convertible, i386_register_convert_to_virtual,
6470 i386_convert_to_raw): Remove functions.
6471 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6472 value_to_register instead of register_convertible,
6473 register_convert_to_virtual and register_convert_to_raw.
6474 * mips-tdep.c (mips_convert_register_p): New function.
6475 (mips_value_to_register): Replace mips_register_convert_from_type.
6476 (mips_register_to_value): Replace mips_register_convert_to_type.
6477 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6478 register_to_value.
6479 * alpha-tdep.c (alpha_convert_register_p): Update.
6480 (alpha_value_to_register): Update, store the register.
6481 (alpha_register_to_value): Update, fetch the register.
6482
98be1e77
TR
64832003-06-14 Theodore A. Roth <troth@openavr.org>
6484
6485 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6486 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6487 Don't set deprecated_call_dummy_words.
6488 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6489 Don't set remote_translate_xfer_address.
6490 (avr_io_reg_read_command): Remove commented out debug printf.
6491 Wrap a long line.
6492
57bc6122
TR
64932003-06-14 Theodore A. Roth <troth@openavr.org>
6494
6495 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6496 causes gdb to seg fault.
6497
eb01fc62
DJ
64982003-06-14 Daniel Jacobowitz <drow@mvista.com>
6499
6500 * sparc-nat.c (fetch_inferior_registers): Correct
6501 a reference to "registers".
6502
3b3e6bee
DJ
65032003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6504
6505 * Makefile.in (exc_request_U_h): Define
6506 (exc_request_S_h): Likewise.
6507 (msg_reply_S_h): Likewise.
6508 (msg_U_h): Likewise.
6509 (notify_S_h): Likewise.
6510 (process_reply_S_h): Likewise.
6511 (gnu-nat.o): Depend on gdb_obstack_h
6512 * gnu-nat.c: Include "gdb_obstack.h".
6513
b8de8283
AC
65142003-06-13 Andrew Cagney <cagney@redhat.com>
6515
6516 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6517 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6518
f3be58bc
AC
65192003-06-13 Andrew Cagney <cagney@redhat.com>
6520
6521 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6522 when deprecated REGISTER macros can be deleted.
6523 * gdbarch.h, gdbarch.c: Re-generate.
6524
4c0122c8
JB
65252003-06-13 Jim Blandy <jimb@redhat.com>
6526
6527 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6528 Linux entry point symbols for _dl_debug_state, too.
6529
3e210248
AC
65302003-06-13 Andrew Cagney <cagney@redhat.com>
6531
6532 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6533 available, do not use the FP register, and always save the TOS.
6534 * dummy-frame.c (dummy_frame_this_id): Do not assert
6535 SAVE_DUMMY_FRAME_TOS.
6536 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6537 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6538 (i386_push_dummy_call): Add 8 to the returned SP.
6539 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6540 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6541 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6542 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6543 (x86_64_push_dummy_call): Return "sp + 16".
6544 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6545 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6546 save_dummy_frame_tos.
6547
0b65af49
JB
65482003-06-13 Jim Blandy <jimb@redhat.com>
6549
6550 * frv-tdep.c (frv_use_struct_convention): Delete static
6551 declaration for function deleted in my change of 2003-06-12.
6552
4ea2465e
TR
65532003-06-13 Theodore A. Roth <troth@openavr.org>
6554
6555 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6556 (avr_pointer_to_address): Shift code addrs left 1 bit.
6557 (avr_convert_from_func_ptr_addr): Delete function since operation is
6558 better handled by avr_address_to_pointer and avr_pointer_to_address.
6559 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6560
1581182a
MK
65612003-06-13 Mark Kettenis <kettenis@gnu.org>
6562
6563 From Kelley Cook <kelleycook@wideopenwest.com>:
6564 * configure.host: Accept i[34567]86 variants.
6565 * configure.tgt: Likewise.
6566 * nlm/configure.in: Likewise.
6567 * nlm/configure: Regenerated.
6568
7aa1783e
RE
65692003-06-13 Richard Earnshaw <rearnsha@arm.com>
6570
6571 * arm-tdep.c (solib-svr4.h): Dont' include it.
6572 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6573 * arm-linux-tdep.c: ... here. Make static.
6574 (arm_linux_init_abi): Register it.
6575 (solib-svr4.h): Include it.
6576 * Makefile.in: Update dependencies.
6577 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6578 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6579
0261a0d0
CV
65802003-06-13 Corinna Vinschen <vinschen@redhat.com>
6581
6582 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6583 indicate registers used for return values.
6584 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6585 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6586 members.
6587 (h8300_init_extra_frame_info): Ditto.
6588 (h8300_frame_locals_address): Removed.
6589 (h8300_frame_args_address): Removed.
6590 (h8300_extract_return_value): Use new regcache structure. Only care
6591 for 16 bit CPUs.
6592 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6593 (h8300_store_return_value): Use new regcache structure. Only care
6594 for 16 bit CPUs.
6595 (h8300h_store_return_value): Same function for 32 bit CPUs.
6596 (h8300_store_struct_return): Removed.
6597 (h8300_extract_struct_value_address): Use new regcache structure.
6598 (h8300h_extract_struct_value_address): Removed.
6599 (h8300_push_dummy_code): New function.
6600 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6601 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6602 set_gdbarch_store_return_value architecture dependent.
6603 Call set_gdbarch_push_dummy_code and
6604 set_gdbarch_extract_struct_value_address.
6605 Remove calls to set_gdbarch_frame_args_address,
6606 set_gdbarch_frame_locals_address,
6607 set_gdbarch_deprecated_store_struct_return,
6608 set_gdbarch_deprecated_extract_return_value,
6609 set_gdbarch_deprecated_extract_struct_value_address,
6610 set_gdbarch_deprecated_call_dummy_words and
6611 set_gdbarch_deprecated_sizeof_call_dummy_words.
6612
055c394a
CV
66132003-06-13 Corinna Vinschen <vinschen@redhat.com>
6614
6615 * h8300-tdep.c (h8300_register_byte): Remove.
6616 (h8300h_register_byte): Remove.
6617 (h8300_register_virtual_type): Remove. Substitute by...
6618 (h8300_register_type): New function.
6619 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6620 (h8300h_extract_struct_value_address): Ditto.
6621 (h8300_gdbarch_init): Drop calls to
6622 set_gdbarch_deprecated_register_byte and
6623 set_gdbarch_deprecated_register_virtual_type.
6624 Add call to set_gdbarch_register_type.
6625
9c04cab7
AC
66262003-06-13 Andrew Cagney <cagney@redhat.com>
6627
6628 * gdbarch.sh: Update comments on registers.
6629 (deprecated_register_byte): Rename register_byte.
6630 (deprecated_register_raw_size): Rename register_raw_size.
6631 (deprecated_register_virtual_size): Rename register_virtual_size.
6632 (deprecated_register_virtual_type): Rename register_virtual_type.
6633 * gdbarch.h, gdbarch.c: Re-generate.
6634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6635 * vax-tdep.c (vax_gdbarch_init): Update.
6636 * v850-tdep.c (v850_gdbarch_init): Update.
6637 * sparc-tdep.c (sparc_gdbarch_init): Update.
6638 * sh-tdep.c (sh_gdbarch_init): Update.
6639 * s390-tdep.c (s390_gdbarch_init): Update.
6640 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6641 * ns32k-tdep.c: Update.
6642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6643 * mips-tdep.c (mips_gdbarch_init): Update.
6644 * mcore-tdep.c (mcore_gdbarch_init): Update.
6645 * m68k-tdep.c (m68k_gdbarch_init): Update.
6646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6647 * ia64-tdep.c (ia64_gdbarch_init): Update.
6648 * hppa-tdep.c (hppa_gdbarch_init): Update.
6649 * h8300-tdep.c (h8300_gdbarch_init): Update.
6650 * frv-tdep.c (frv_gdbarch_init): Update.
6651 * cris-tdep.c (cris_gdbarch_init): Update.
6652 * avr-tdep.c (avr_gdbarch_init): Update.
6653 * alpha-tdep.c (alpha_gdbarch_init): Update.
6654 * arm-tdep.c (arm_gdbarch_init): Update.
6655
b060cbea
AC
66562003-06-13 Andrew Cagney <cagney@redhat.com>
6657
6658 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6659 mips_o32_use_struct_convention with always_use_struct_convention.
6660
0fc9922a
DC
66612003-06-12 David Carlton <carlton@kealia.com>
6662
6663 * cp-namespace.c (cp_set_block_scope): Comment out
6664 processing_has_namespace_info branch.
6665
1fd35568
JB
66662003-06-12 Jim Blandy <jimb@redhat.com>
6667
f470a70a
JB
6668 Recognize and skip 64-bit PowerPC Linux linkage functions.
6669 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6670 insn_pattern, insns_match_pattern, d_field, ds_field): New
6671 functions, macros, and types for working with PPC instructions.
6672 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6673 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6674 ppc64_skip_trampoline_code): New functions, variables, and macros
6675 for recognizing and skipping linkage functions.
6676 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6677 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6678
49ff75ad
JB
6679 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6680 register offsets for both the 32- and 64-bit interfaces.
6681
bd918c83
JB
6682 Actually finish the job started by my change of 2003-05-29.
6683 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6684 other #definition of this.
6685 (ppc_linux_skip_trampoline_code): Remove declaration.
6686 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6687 static.
6688 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6689 method for GDBARCH.
6690
6691 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6692 'long' on ppc64-*-linux*.
6693
f8c59253
JB
6694 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6695 isn't #defined, assume the register doesn't exist: act as if
6696 tdep->ppc_mq_regnum were -1.
6697
8fbb30b1
JB
6698 * configure.host, configure.tgt: Add entries for
6699 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6700 powerpc/linux.mt.
6701 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6702 New files.
6703
1fd35568
JB
6704 * arch-utils.c (always_use_struct_convention): New function.
6705 * arch-utils.h (always_use_struct_convention): New prototype.
6706 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6707 (alpha_gdbarch_init): Register always_use_struct_convention,
6708 instead of alpha_use_struct_convention.
6709 * cris-tdep.c (cris_use_struct_convention): Delete.
6710 (cris_gdbarch_init): Register always_use_struct_convention,
6711 instead of cris_use_struct_convention.
6712 * frv-tdep.c (frv_use_struct_convention): Delete.
6713 (frv_gdbarch_init): Register always_use_struct_convention,
6714 instead of frv_use_struct_convention.
6715 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6716 (h8300_gdbarch_init): Register always_use_struct_convention,
6717 instead of h8300_use_struct_convention.
e3305dd9 6718 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6719 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6720 instead of mips_o32_use_struct_convention.
6721
e14e6e9c
AC
67222003-06-12 Andrew Cagney <cagney@redhat.com>
6723
6724 * wince.c: Include "mips-tdep.h".
6725 * mips-tdep.h (mips_next_pc): Declare.
6726 * mcore-tdep.c: Make more local functions static.
6727 * Makefile.in (wince.o): Update dependencies.
6728
2335f48e
DC
67292003-06-12 David Carlton <carlton@kealia.com>
6730
6731 * symtab.c (lookup_symbol_aux_minsyms): Replace
6732 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6733 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6734 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6735 SYMBOL_NATURAL_NAME.
6736
f70a7d61
AS
67372003-06-12 Andreas Schwab <schwab@suse.de>
6738
6739 * Makefile.in (tuiDisassem.o): Update dependencies.
6740
b6429628
DC
67412003-06-12 David Carlton <carlton@bactrian.org>
6742
6743 * symtab.h: Delete declaration of make_symbol_overload_list.
6744 Add declaration of lookup_partial_symbol.
6745 * symtab.c (remove_params): Move to cp-support.c.
6746 (overload_list_add_symbol, make_symbol_overload_list)
6747 (sym_return_val_size, sym_return_val_index): Ditto.
6748 (lookup_partial_symbol): Make extern.
6749 * cp-support.h: Add declaration of make_symbol_overload_list.
6750 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6751 symtab.h, and block.h.
6752 (remove_params): Move here from symtab.c.
6753 (overload_list_add_symbol, make_symbol_overload_list)
6754 (sym_return_val_size, sym_return_val_index): Ditto.
6755 * valops.c: Include cp-support.h.
6756 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6757 frame_h, and block_h.
6758 (valops.o): Depend on cp_support_h.
6759
084edea5
CV
67602003-06-12 Corinna Vinschen <vinschen@redhat.com>
6761
6762 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6763 substitute by NUM_REGS throughout.
6764 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6765 (h8300s_register_name): New function for H8S registers.
6766 (h8300sx_register_name): Ditto for H8SX registers.
6767 (h8300_print_register): Revise register printing, avoid depending
6768 on 32 bit long.
0261a0d0 6769 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6770 (h8300h_register_byte): New function for any other architecture.
6771 (h8300_register_raw_size): Remove.
6772 (h8300_register_virtual_type): Revise to return actually useful
6773 type.
6774 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6775 (h8300h_extract_struct_value_address): New function for any other
6776 architecture.
6777 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6778 set_gdbarch_register_name, set_gdbarch_register_byte,
6779 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6780 Remove calls to set_gdbarch_deprecated_register_size,
6781 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6782 set_gdbarch_deprecated_max_register_raw_size,
6783 set_gdbarch_register_virtual_size and
6784 set_gdbarch_deprecated_max_register_virtual_size entirely.
6785 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6786 set_gdbarch_long_double_bit.
6787
06194148
JJ
67882003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6789
8ffd9b1b
AJ
6790 * doublest.c (convert_doublest_to_floatformat): When dealing
6791 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6792 processing a full 32 bits of mantissa.
6793
de4f826b
DC
67942003-06-11 David Carlton <carlton@bactrian.org>
6795
6796 * dictionary.h: New.
6797 * dictionary.c: New.
6798 * block.h: Add opaque declaration for struct dictionary.
6799 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6800 'sym' members.
6801 (BLOCK_DICT): New macro.
6802 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6803 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6804 BLOCK_SHOULD_SORT.
6805 (ALL_BLOCK_SYMBOLS): Update definition.
6806 * Makefile.in (SFILES): Add dictionary.c.
6807 (dictionary_h): New.
6808 (COMMON_OBS): Add dictionary.o.
6809 (dictionary.o): New.
6810 (ada-lang.o): Depend on dictionary_h.
6811 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6812 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6813 (mi-cmd-stack.o): Ditto.
6814 (gdbtk-cmds.o): Update dependencies.
6815 (gdbtk-stack.o): Ditto.
6816 * ada-lang.c: Include dictionary.h.
6817 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6818 (fill_in_ada_prototype, debug_print_block): Ditto.
6819 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6820 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6821 'is_sorted'.
6822 * mdebugread.c: Include dictionary.h.
6823 (struct parse_stack): Delete 'maxsyms' member.
6824 (parse_symbol): Update calls to new_block. Delete calls to
6825 shrink_block. Use dictionary methods.
6826 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6827 Update calls to new_symtab. Don't maintain maxsyms data.
6828 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6829 (add_symbol): Just call dict_add_symbol.
6830 (new_symtab): Delete 'maxsyms' argument.
6831 (new_symtab): Update calls to new_block.
6832 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6833 (shrink_block): Delete function.
6834 (fixup_sigtramp): Update call to new_block. Add symbol via
6835 dict_add_symbol.
6836 * jv-lang.c: Include dictionary.h.
6837 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6838 appropriately. Set class_symtab->free_func. Make sure the
6839 blockvector is big enough to hold two blocks.
6840 (add_class_symtab_symbol): Use dictionary methods.
6841 (free_class_block): New function.
6842 (type_from_class): Replace explicit iteration by
6843 ALL_BLOCK_SYMBOLS.
6844 * symtab.h (struct symtab): Replace 'free_ptr' method by
6845 'free_func'.
6846 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6847 sort_symtab_syms.
6848 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6849 sort_symtab_syms.
6850 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6851 Include dictionary.h.
6852 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6853 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6854 sort_symtab_syms.
6855 * objfiles.c: Include dictionary.h.
6856 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6857 * buildsym.c: Include dictionary.h.
6858 (finish_block): Use dictionary methods.
6859 (end_symtab): Set free_func to NULL, not free_ptr.
6860 * tracepoint.c: Include dictionary.h.
6861 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6862 (scope_info): Ditto.
6863 * stack.c: Include dictionary.h.
6864 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6865 (print_block_frame_labels, print_frame_arg_vars)
6866 (print_frame_args): Ditto.
6867 * symmisc.c (free_symtab_block): Use dictionary methods.
6868 (dump_symtab): Ditto.
6869 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6870 Include dictionary.h.
6871 * symfile.h: Delete declarations of sort_block_syms,
6872 sort_symtab_syms.
6873 * symfile.c (sort_block_syms): Delete.
6874 (sort_symtab_syms): Delete.
6875 * symtab.c: Include dictionary.h.
6876 (lookup_block_symbol): Use dictionary iterators.
6877 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6878 (search_symbols, make_symbol_completion_list): Ditto.
6879 (make_symbol_overload_list): Ditto.
6880 * valops.c (value_of_local): Use dict_empty.
6881 Include dictionary.h.
6882
a31f978c
JB
68832003-06-11 J. Brobecker <brobecker@gnat.com>
6884
6885 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6886
526e70c0
DC
68872003-06-11 David Carlton <carlton@bactrian.org>
6888
6889 * block.h (BLOCK_SHOULD_SORT): Delete.
6890 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6891 blocks.
6892 * ada-lang.c (ada_add_block_symbols): Ditto.
6893 * symfile.c (sort_block_syms): Delete.
6894 (sort_symtab_syms): Ditto.
6895 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6896 declarations.
6897 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6898 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6899 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6900 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6901 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6902 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6903 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6904
33c08150
JJ
69052003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6906
8ffd9b1b 6907 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6908 bits to 128.
6909
781a750d
AC
69102003-06-11 Andrew Cagney <cagney@redhat.com>
6911
6912 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6913 REGISTER_CONVERTIBLE.
6914 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6915 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6916 * gdbarch.h, gdbarch.c: Re-generate.
6917 * arch-utils.h (deprecated_register_convertible_not): Rename
6918 generic_register_convertible_not.
6919 * arch-utils.c (deprecated_register_convertible_not): Rename
6920 generic_register_convertible.
6921 (legacy_convert_register_p, legacy_register_to_value): Update.
6922 * sh-tdep.c (sh64_push_arguments): Update.
6923 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6924 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6925 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6926 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6927 * arch-utils.c (legacy_value_to_register): Update.
6928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6929 (rs6000_register_convert_to_raw): Make parameter "from" const.
6930 * mips-tdep.c (mips_gdbarch_init): Update.
6931 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6932 * infcmd.c (default_print_registers_info): Update.
6933 * ia64-tdep.c (ia64_gdbarch_init): Update.
6934 (ia64_register_convert_to_raw): Make parameter "from" const.
6935 * i386-tdep.c (i386_gdbarch_init): Update.
6936 (i386_register_convert_to_raw): Update.
6937
cd90e54f
AC
69382003-06-11 Andrew Cagney <cagney@redhat.com>
6939
6940 * remote-fileio.c: Include "remote-fileio.h".
6941 * Makefile.in (remote-fileio.o): Update dependencies.
6942 (remote_fileio_h): Fix typo.
6943
a78f21af
AC
69442003-06-11 Andrew Cagney <cagney@redhat.com>
6945
6946 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6947 (xstormy16_save_dummy_frame_tos): Make static.
6948 (_initialize_xstormy16_tdep): Add declaration.
6949 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6950 * v850-tdep.c: Make local functions static.
6951 (_initialize_v850_tdep): Add declaration.
6952 * sparc-tdep.c: Make local functions static.
6953 (_initialize_sparc_tdep): Add declaration.
6954 * sh-tdep.c: Make local functions static.
6955 (_initialize_sh_tdep): Add declaration.
6956 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6957 * s390-tdep.c: Make local functions static.
6958 (_initialize_s390_tdep): Add declaration.
6959 * dbxread.c (find_stab_function_addr): Make static.
6960 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6961 * ocd.c (_initialize_remote_ocd): Add declaration.
6962 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6963 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6964 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6965 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6966 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6967 * remote-array.c (_initialize_array): Add declaration.
6968 (_initialize_remote_monitors): Add declaration.
6969 * remote-mips.c: Make local functions static.
6970 (_initialize_remote_mips): Add declaration.
6971 * mcore-tdep.c: Make all local functions static.
6972 (_initialize_mcore_tdep): Add declaration.
6973 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6974 * abug-rom.c (_initialize_abug_rom): Add declaration.
6975 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6976 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6977 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6978 * remote-est.c (_initialize_est): Add declaration.
6979 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6980 (m68hc11_call_dummy_address): Make static.
6981 * ia64-tdep.c: Make local functions static.
6982 (_initialize_ia64_tdep): Add declaration.
6983 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6984 * monitor.c (monitor_wait_filter): Make static.
6985 (_initialize_remote_monitors): Add declaration.
6986 * remote-hms.c (_initialize_remote_hms): Add declaration.
6987 * remote-e7000.c (fetch_regs_from_dump): Make static.
6988 (expect_n): Make static.
6989 (_initialize_remote_e7000): Add declaration.
6990 * ser-e7kpc.c: Always include "defs.h".
6991 (_initialize_ser_e7000pc): Add declaration.
6992 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6993 * cris-tdep.c: Make all but one function static.
6994 (_initialize_cris_tdep): Add declaration.
6995 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6996 * solib.c (update_solib_list): Make static.
6997 (_initialize_solib): Add declaration.
6998 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6999 (_initialize_avr_tdep): Add declaration.
7000 * remote-rdi.c (voiddummy): Make static.
7001 (_initialize_remote_rdi): Add declaration.
7002 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7003 * remote-rdp.c (send_rdp): Make static.
7004 (_initialize_remote_rdp): Add declaration.
7005 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7006
cbcdb1f5
CV
70072003-06-11 Corinna Vinschen <vinschen@redhat.com>
7008
7009 * remote-fileio.c: Make ari happy.
7010
a191ea8d
JB
70112003-06-10 J. Brobecker <brobecker@gnat.com>
7012
7013 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7014 fetching the trailing bytes of the buffer we are about to write.
7015
0ef75e11
AC
70162003-06-10 Andrew Cagney <cagney@redhat.com>
7017
7018 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7019 * Makefile.in (remote-fileio.o): Update dependencies.
7020 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7021 include <setjmp.h>, or <sys/types.h> conditional on USG.
7022 (remote_fio_jmp_buf): Delete global variable.
7023
449092f6 70242003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7025 Martin M. Hunt <hunt@redhat.com>
449092f6 7026
559fa028
AC
7027 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7028 (SFILES): Add remote-fileio.c.
7029 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7030 dependencies for building remote.o.
449092f6
CV
7031 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7032 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7033 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7034 static storage class.
7035 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7036 'F' packet.
7037 (_initialize_remote): Call initialize_remote_fileio().
7038 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7039 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7040 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7041 (captured_main): Initialize new ui_files.
7042 * ui-file.c: Add read and fgets input functions.
7043 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7044 (null_file_read): New function.
7045 (ui_file_read): New function.
7046 (set_ui_file_read): New function.
7047 (stdio_file_read): New function.
7048 * ui-file.h: New type ui_file_read_ftype.
7049 (set_ui_file_read): Declare.
7050 (ui_file_read): Declare.
7051
248de703
AC
70522003-06-09 Andrew Cagney <cagney@redhat.com>
7053
7054 * frame.h (deprecated_unwind_get_saved_register): Rename
7055 generic_unwind_get_saved_register, update comments.
7056 * mips-tdep.c (mips_get_saved_register): Update.
7057 * frame.c (deprecated_unwind_get_saved_register): Update.
7058
0ed8aa57
AC
70592003-06-09 Andrew Cagney <cagney@redhat.com>
7060
7061 * vax-tdep.c (vax_frame_locals_address): Delete function.
7062 (vax_gdbarch_init): Do not set frame_locals_address.
7063 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7064 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7065 * s390-tdep.c (s390_frame_args_address): Delete function.
7066 (s390_gdbarch_init): Do not set frame_args_address or
7067 frame_locals_address.
7068 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7069 (ns32k_gdbarch_init): Do not set frame_locals_address.
7070 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7071 (hppa_frame_locals_address): Delete function.
7072 (hppa_gdbarch_init): Do not set frame_args_address, or
7073 frame_locals_address.
7074 * arm-tdep.c (arm_frame_args_address): Delete.
7075 (arm_frame_locals_address): Delete.
7076 (arm_gdbarch_init): Do not set frame_args_address, or
7077 frame_locals_address.
7078
983a287a
AC
70792003-06-09 Andrew Cagney <cagney@redhat.com>
7080
7081 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7082 * gdbarch.h, gdbarch.c: Re-generate.
7083 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7084 * arch-utils.c (frame_num_args_unknown): Delete function.
7085 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7086 (frame_info): Use FRAME_NUM_ARGS_P.
7087 * arm-tdep.c (arm_frame_num_args): Delete function.
7088 (arm_gdbarch_init): Do not set frame_num_args.
7089 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7090 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7091 (hppa_gdbarch_init): Do not set frame_num_args.
7092 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7094 frame_num_args to default frame_num_args_unknown.
7095 * v850-tdep.c (v850_gdbarch_init): Ditto.
7096 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7097 * sh-tdep.c (sh_gdbarch_init): Ditto.
7098 * s390-tdep.c (s390_gdbarch_init): Ditto.
7099 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7100 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7101 * mips-tdep.c (mips_gdbarch_init): Ditto.
7102 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7103 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7106 * i386-tdep.c (i386_gdbarch_init): Ditto.
7107 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7108 * frv-tdep.c (frv_gdbarch_init): Ditto.
7109 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7110 * cris-tdep.c (cris_gdbarch_init): Ditto.
7111 * avr-tdep.c (avr_gdbarch_init): Ditto.
7112 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7113
8d3b0994
AC
71142003-06-09 Andrew Cagney <cagney@redhat.com>
7115
7116 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7117 (print_frame_args): Moved to "stack.c".
7118 * stack.c: Include "gdb_assert.h".
7119 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7120 (print_frame_args): Moved from "printcmd.c".
7121 * frame.h (print_frame_args): Delete declaration.
7122 * Makefile.in (stack.o): Update dependencies.
7123
25e3a86b
AC
71242003-06-08 Andrew Cagney <cagney@redhat.com>
7125
7126 * frame.c (get_prev_frame): Remove reference to
7127 frame_args_address_correct in comments.
7128 * frame-base.c (default_frame_args_address): Delete code
7129 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7130 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7131 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7132 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7133 (vax_frame_args_address_correct): Delete declaration.
7134
a9e5fdc2
AC
71352003-06-08 Andrew Cagney <cagney@redhat.com>
7136
7137 * gdbarch.sh (UNWIND_SP): Add.
7138 * gdbarch.h, gdbarch.c: Re-generate.
7139 * frame.c (frame_sp_unwind): New function.
7140 (get_frame_sp): New function.
7141 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7142 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7143 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7144 value.
7145 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7146 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7147
8983bd83
AC
71482003-06-08 Andrew Cagney <cagney@redhat.com>
7149
7fec2c59
AC
7150 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7151 REMOTE_BREAKPOINT.
7152 * remote.c: Update.
7153 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7154 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7155 * config/m68k/tm-sun3.h: Update.
7156 * config/m68k/tm-m68klynx.h: Update.
7157 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7158
8983bd83
AC
7159 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7160 trad_frame". Update comments.
7161 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7162 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7163 (trad_frame_register_value, trad_frame_prev_register): Update.
7164
b9362cc7
AC
71652003-06-08 Andrew Cagney <cagney@redhat.com>
7166
7167 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7168 from GCC's acinclude.m4.
7169 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7170 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7171 * main.c (error_init): Delete declaration.
7172 * defs.h (error_init): Declare.
7173 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7174 (rs6000_convert_from_func_ptr_addr): Make static.
7175 (_initialize_rs6000_tdep): Add declaration.
7176 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7177 (show_commands, set_verbose, show_history): Delete declaration.
7178 * top.h (set_verbose): Add declaration.
7179 (show_history, set_history, show_commands): Add declaration.
7180 (do_restore_instream_cleanup): Add declaration.
7181 * objc-lang.c (specialcmp): Make static.
7182 (print_object_command): Make static.
7183 (find_objc_msgsend): Make static.
7184 (find_objc_msgcall_submethod_helper): Make static.
7185 (find_objc_msgcall_submethod): Make static.
7186 (_initialize_objc_language): Add declaration.
7187 (find_implementation_from_class): Make static.
7188 (find_implementation): Make static.
7189 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7190 * objc-lang.h (lookup_struct_typedef): Add declaration.
7191 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7192 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7193 (do_restore_user_call_depth): Make static.
7194 (do_restore_instream_cleanup): Delete declaration.
7195 (dont_repeat): Delete declaration.
7196 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7197 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7198 * reggroups.c (_initialize_reggroup): Add declaration.
7199 * cp-support.c (_initialize_cp_support): Add declaration.
7200 * cp-abi.c (_initialize_cp_abi): Add declaration.
7201 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7202 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7203 (_initialize_gnu_v3_abi): Add declaration.
7204 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7205 (_initialize_gnu_v2_abi): Add declaration.
7206 * frame-base.c (_initialize_frame_base): Add declaration.
7207 * doublest.c (floatformat_from_length): Make static.
7208 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7209 * frame.c (create_sentinel_frame): Make static.
7210 (_initialize_frame): Add declaration.
7211 * top.c (do_catch_errors): Make static.
7212 (gdb_rl_operate_and_get_next_completion): Make static.
7213 * typeprint.c: Include "typeprint.h".
7214 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7215 (sentinel_frame_this_id): Make static.
7216 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7217 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7218 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7219 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7220 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7221 * maint.c (maintenance_print_architecture): Make static.
7222 * signals/signals.c (_initialize_signals): Add declaration.
7223 * std-regs.c (_initialize_frame_reg): Add declaration.
7224 * jv-exp.y (push_variable): ISO C definition.
7225 (push_qualified_expression_name): Ditto.
7226 * memattr.c (_initialize_mem): Add declaration.
7227 * remote.c (remote_check_watch_resources): Make static.
7228 (remote_stopped_by_watchpoint): Make static.
7229 (remote_stopped_data_address): Make static.
7230 * d10v-tdep.c (nr_dmap_regs): Make static.
7231 (a0_regnum): Make static.
7232 (d10v_frame_unwind_cache): Make static.
7233 (d10v_frame_p): Make static.
7234 * osabi.c (show_osabi): Make static.
7235 (_initialize_gdb_osabi): Add extern declaration.
7236 * gdbtypes.c (make_qualified_type): Make static.
7237 (safe_parse_type): Make static.
7238 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7239 * macrotab.c (macro_bcache_free): Make static.
7240 * interps.c (interp_set_quiet): Make static.
7241 (interpreter_exec_cmd): Make static.
7242 * stack.h (select_frame_command): New file.
7243 * stack.c: Include "stack.h".
7244 (select_frame_command_wrapper): Delete function.
7245 (select_frame_command): Make global.
7246 * infcall.c: Include "infcall.h".
7247 * linespec.c: Include "linespec.h".
7248 * symfile.c (sections_overlap): Make static.
7249 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7250 * charset.c (_initialize_charset): Add missing prototype.
7251 * regcache.c (init_legacy_regcache_descr): Make static.
7252 (do_regcache_xfree): Make static.
7253 (regcache_xfer_part): Make static.
7254 (_initialize_regcache): Add missing prototype.
7255 * breakpoint.c (parse_breakpoint_sals): Make static.
7256 (breakpoint_sals_to_pc): Make static.
7257 * interps.h (clear_interpreter_hooks): ISO C declaration.
7258 * Makefile.in (stack_h): Define.
7259 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7260 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7261
a0f267c7
AC
72622003-06-08 Andrew Cagney <cagney@redhat.com>
7263
7264 * Makefile.in (d10v-tdep.o): Update dependencies.
7265 (SFILES): Add trad-frame.c.
7266 (trad_frame_h): Define.
7267 (COMMON_OBS): Add trad-frame.o.
7268 (trad-frame.o): Specify dependencies.
7269 * d10v-tdep.c: Include "trad-frame.h".
7270 (saved_regs_unwinder): Delete function.
7271 (d10v_frame_prev_register): Use trad_frame_prev_register.
7272 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7273 trad_frame", delete "regs" and "prev_sp".
7274 (prologue_find_regs): Use trad-frame.
7275 * trad-frame.h, trad-frame.c: New files.
7276
4538b4f4
MK
72772003-06-08 Mark Kettenis <kettenis@gnu.org>
7278
7279 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7280
a0273b2f
AF
72812003-06-07 Adam Fedor <fedor@gnu.org>
7282
7283 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7284 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7285 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7286 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7287 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7288 Use it.
7289
3a6c3343
AC
72902003-06-07 Andrew Cagney <cagney@redhat.com>
7291
7292 * symfile.h: Re-indent, clean up comments.
7293
b46e02f6
AC
72942003-06-07 Andrew Cagney <cagney@redhat.com>
7295
7296 * inferior.h (deprecated_write_sp): Replace
7297 generic_target_write_sp.
7298 * regcache.c (deprecated_write_sp): Replace
7299 generic_target_write_sp.
7300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7301 * vax-tdep.c (vax_gdbarch_init): Update.
7302 * v850-tdep.c (v850_gdbarch_init): Update.
7303 * sparc-tdep.c (sparc_gdbarch_init): Update.
7304 * sh-tdep.c (sh_gdbarch_init): Update.
7305 * s390-tdep.c (s390_gdbarch_init): Update.
7306 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7309 * mcore-tdep.c (mcore_gdbarch_init): Update.
7310 * m68k-tdep.c (m68k_gdbarch_init): Update.
7311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7312 * ia64-tdep.c (ia64_gdbarch_init): Update.
7313 * h8300-tdep.c (h8300_gdbarch_init): Update.
7314 * frv-tdep.c (frv_gdbarch_init): Update.
7315 * cris-tdep.c (cris_gdbarch_init): Update.
7316 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7317
a42e117c
AC
73182003-06-07 Andrew Cagney <cagney@redhat.com>
7319
7320 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7321 Assert that PC_REGNUM is valid.
7322 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7323
bd1ce8ba
AC
73242003-06-07 Andrew Cagney <cagney@redhat.com>
7325
7326 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7327 * gdbarch.h, gdbarch.c: Regenerate.
7328 * mn10300-tdep.c: Include "gdb_assert.h".
7329 (mn10300_read_fp): New function.
7330 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7331 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7332 * ia64-tdep.c: Include "gdb_assert.h".
7333 (ia64_read_fp): New function.
7334 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7335 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7336 * regcache.c (generic_target_read_sp): Delete function.
7337 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7338 * inferior.h (generic_target_read_sp): Delete declaration.
7339 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7340 generic_target_read_sp.
7341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7342 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7343 * sh-tdep.c (sh_gdbarch_init): Ditto.
7344 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7345 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7346
ec5cbaec
AC
73472003-06-07 Andrew Cagney <cagney@redhat.com>
7348
7349 * gdbarch.sh: Comment each field of startup_gdbarch.
7350 * gdbarch.h, gdbarch.c: Re-generate.
7351
cde9ea48
AC
73522003-06-07 Andrew Cagney <cagney@redhat.com>
7353
7354 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7355 * gdbarch.h, gdbarch.c: Re-generate.
7356 * regcache.c: Update comments on read_pc et.al.
7357 (generic_target_read_pc): Delete function.
7358 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7359 * inferior.h (generic_target_read_pc): Delete declaration.
7360 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7361 generic_target_read_pc.
7362 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7363 * sh-tdep.c (sh_gdbarch_init): Ditto.
7364 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7366
9a90a780
AC
73672003-06-07 Andrew Cagney <cagney@redhat.com>
7368
7369 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7370 "index" with "special_local_sect". Use strcmp instead of STREQ.
7371 Append period to coments.
7372
a39a16c4
MM
73732003-06-06 Mark Mitchell <mark@codesourcery.com>
7374
7375 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7376 (elfstab_offset_sections): Likewise.
7377 * gdb-stabs.h (stab_section_info): Likewise.
7378 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7379 * objfiles.c (objfile_relocate): Likewise.
7380 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7381 * remote.c (get_offsets): Likewise.
7382 (remote_cisco_objfile_relocate): Likewise.
7383 * somread.c (som_symfile_offsets): Likewise.
7384 * symfile.c (alloc_section_addr_info): New function.
7385 (build_section_addr_info_from_section_tab): Use it.
7386 (free_section_addr_info): Adjust.
7387 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7388 (syms_from_objfile): Allocate local_addr dynamically.
7389 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7390 dynamically.
7391 (add_symbol_file_command): Allocate sect_opts dynamically.
7392 (reread_symbols): Avoid use of SECT_OFF_MAX.
7393 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7394 (alloc_section_addr_info): Declare it.
7395 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7396 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7397 dynamically.
7398 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7399
20c6c2f8
AC
74002003-06-06 Andrew Cagney <cagney@redhat.com>
7401
7402 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7403 (d10v_frame_unwind_cache): Do not set "return_pc".
7404
884a26c8
MS
74052003-06-06 Michael Snyder <msnyder@redhat.com>
7406
7407 * h8300-tdep.c: Make tidy (long lines).
7408
088ce440
ML
74092003-06-06 Michal Ludvig <mludvig@suse.cz>
7410
8ffd9b1b 7411 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7412 to regcache_collect().
7413
7d773d96
JB
74142003-06-05 J. Brobecker <brobecker@gnat.com>
7415
7416 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7417 pc_in_sigtramp multiarch method.
7418 (hppa_hpux_som_init_abi): Use it.
7419 (hppa_hpux_elf_init_abi): Likewise.
7420 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7421 macro has been multiarched.
7422 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7423 macro here, as hppa64 isn't multiarched yet.
7424
1df6926e
AC
74252003-06-05 Andrew Cagney <cagney@redhat.com>
7426
7427 * Makefile.in (value_h): Add $(frame_h).
7428 * value.h: Include "frame.h".
7429 (struct value): Replace "frame_addr" with "frame_id".
7430 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7431 * values.c (allocate_value): Use VALUE_FRAME_ID.
7432 (value_copy): Use VALUE_FRAME_ID.
7433 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7434 * valops.c (value_assign): Update. Use frame_find_by_id.
7435
6b53acc6
ML
74362003-06-05 Michal Ludvig <mludvig@suse.cz>
7437
7438 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7439 in each pass.
7440
4d9850d3
JJ
74412003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7442
7443 * thread-db.c (check_event): For create/death event breakpoints,
7444 loop through all messages to ensure that we read the message
7445 corresponding to the breakpoint we are at.
7446
8efca6ba
MS
74472003-06-04 Michael Snyder <msnyder@redhat.com>
7448
7449 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7450
0912c7f2
MK
74512003-06-04 Mark Kettenis <kettenis@gnu.org>
7452
7453 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7454 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7455 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7456 when handling .eh_frame sections.
7457
4e370325
JB
74582003-06-04 J. Brobecker <brobecker@gnat.com>
7459
7460 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7461 prepare_to_proceed procedure instead of the hppa-specific one.
7462 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7463
b757528f 74642003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7465
b757528f
JJ
7466 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7467 * config.in: Regenerated.
7468 * configure.in: Add test for syscall function and check for
7469 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7470 * configure: Regenerated.
7471 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7472 <sys/syscall.h>.
7473 (kill_lwp): New function that uses tkill syscall or
7474 uses kill, depending on whether threading model is nptl or not.
7475 All callers of kill() changed to use kill_lwp().
7476 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7477 see if all threads have already exited in the nptl model.
7478 (stop_and_resume_callback): New callback function used by the
7479 lin_lwp_wait thread exit handling code.
7480 (stop_wait_callback): Check for threads already having exited and
7481 delete such threads fromt the lwp list when discovered.
7482 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7483
b757528f
JJ
7484 Roland McGrath <roland@redhat.com>
7485 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7486 nptl libthread_db.
7487
087779b1
RH
74882003-06-03 Richard Henderson <rth@redhat.com>
7489
b21fd293
RH
7490 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7491 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7492 (alpha_sigtramp_frame_prev_register): Likewise.
7493 (alpha_heuristic_frame_prev_register): Likewise.
7494 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7495
8ffd9b1b 7496 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7497 alpha-specific register id names.
7498 (alpha_mdebug_frame_unwind_cache): Likewise.
7499 (alpha_mdebug_frame_prev_register): Likewise.
7500
baa490c4
RH
75012003-06-03 Richard Henderson <rth@redhat.com>
7502
7503 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7504 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7505 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7506 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7507 unwind routines.
7508 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7509 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7510 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7511
7512 * alpha-linux-tdep.c: Remove unnecessary includes.
7513 * Makefile.in (alpha-linux-tdep.o): Update.
7514
75152003-06-03 Richard Henderson <rth@redhat.com>
7516
7517 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7518 (alphabsd_fill_fpreg): Likewise.
7519
f534e522
JB
75202003-06-03 J. Brobecker <brobecker@gnat.com>
7521
7522 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7523 references to struct frame_info fields by calls to the equivalent
7524 accessors. Necessary now that frame_info is opaque.
7525
4035536b
JB
75262003-06-03 J. Brobecker <brobecker@gnat.com>
7527
7528 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7529 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7530 structure, field no longer exists.
7531
0bd79c5c
JB
75322003-06-03 J. Brobecker <brobecker@gnat.com>
7533
7534 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7535 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7536
37bb6d9f
JB
75372003-06-03 J. Brobecker <brobecker@gnat.com>
7538
7539 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7540 references to struct frame_info fields by calls to the equivalent
7541 accessors. Necessary now that frame_info is opaque.
7542
852ee05c
JB
75432003-06-03 J. Brobecker <brobecker@gnat.com>
7544
7545 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7546 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7547 structure, field no longer exists.
7548
7d58c67d
TR
75492003-06-03 Theodore A. Roth <troth@openavr.org>
7550
8ffd9b1b 7551 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7552 accumulation of the size of all registers instead of blindly using
7553 DEPRECATED_REGISTER_BYTES.
7554
0a48e7e8
MS
75552003-06-03 Michael Snyder <msnyder@redhat.com>
7556
7557 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7558 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7559 for h8300sx.
7560
9798ab0d
JB
75612003-06-03 J. Brobecker <brobecker@gnat.com>
7562
7563 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7564 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7565
00b037e2
AC
75662003-06-03 Andrew Cagney <cagney@redhat.com>
7567
7568 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7569 (sparc_convert_to_raw): Delete function.
7570 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7571 register_convert_to_virtual.
7572
043b2f77
JJ
75732003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7574
7575 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7576 layer if not dealing with a statically-linked threaded program.
7577
f43caff8
KW
75782003-06-03 Kris Warkentin <kewarken@qnx.com>
7579
7580 * solib.c (solib_open): Update comment to reflect actual search order.
7581
ae1e7417
AC
75822003-06-03 Andrew Cagney <cagney@redhat.com>
7583
7584 * frame.c (get_frame_memory_signed): New function.
7585 (get_frame_memory, get_frame_memory_unsigned): New function.
7586 (get_frame_arch): New function.
7587 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7588 (get_frame_memory, get_frame_unsigned_memory): Declare.
7589 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7590 get_frame_memory_unsigned and get_frame_arch.
7591 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7592
cb123844
RG
75932003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7594
7595 * MAINTAINERS (write after approval): Add myself.
7596
1bb792e9
JB
75972003-06-03 Jim Blandy <jimb@redhat.com>
7598
7599 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7600 elements of gregset_t are 64 bits each, but access registers
7601 are still 32 bits, so they're packed two per gregset_t
7602 element. Unpack/pack them properly.
7603
aee8d8ba
DC
76042003-06-02 David Carlton <carlton@bactrian.org>
7605
7606 * linespec.c (find_methods): Break out code into
7607 add_matching_methods and add_constructors.
7608 (add_matching_methods): New.
7609 (add_constructors): Ditto.
7610
bf7488d2
AC
76112003-06-02 Andrew Cagney <cagney@redhat.com>
7612
bf7488d2
AC
7613 * sparc-tdep.c (sparc_print_registers): Delete call to
7614 REGISTER_CONVERTIBLE.
7615 (sparc_gdbarch_init): Do not set register_convertible.
7616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7617 * frv-tdep.c (frv_gdbarch_init): Ditto.
7618 * cris-tdep.c (cris_gdbarch_init): Ditto.
7619
adedef68
EZ
76202003-06-02 Elena Zannoni <ezannoni@redhat.com>
7621
8ffd9b1b 7622 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7623 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7624 (syms_from_objfile): Ditto.
7625
650fcc91
AS
76262003-06-03 Andreas Schwab <schwab@suse.de>
7627
7628 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7629 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7630
df4a182b
RH
76312003-06-02 Richard Henderson <rth@redhat.com>
7632
7633 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7634 a member of all_reggroup.
7635
c483c494
RH
76362003-06-02 Richard Henderson <rth@redhat.com>
7637
7638 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7639 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7640 (alpha_lds, alpha_sts): New.
7641 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7642 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7643 restructure and fail for type sizes other than 4 or 8.
7644 (alpha_value_to_register): Similarly.
7645 (alpha_extract_return_value): Use alpha_sts.
7646 (alpha_store_return_value): Use alpha_lds.
7647 (alpha_gdbarch_init): Update hooks.
7648
b38b6be2
RH
76492003-06-02 Richard Henderson <rth@redhat.com>
7650
7651 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7652 regnum identifiers.
7653 (alpha_sigtramp_register_address): Likewise.
7654
98a8e1e5
RH
76552003-06-02 Richard Henderson <rth@redhat.com>
7656
7657 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7658 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7659 * alpha-tdep.h: Declare them.
7660
7661 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7662 Remove zerobuf. Don't error on UNIQUE.
7663 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7664 (ALPHA_REGSET_UNIQUE): Provide default.
7665 (supply_gregset): Use alpha_supply_int_regs.
7666 (fill_gregset): Use alpha_fill_int_regs.
7667 (supply_fpregset): Use alpha_supply_fp_regs.
7668 (fill_fpregset): Use alpha_fill_fp_regs.
7669 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7670 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7671 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7672 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7673 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7674 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7675
67dfac52
RH
76762003-06-02 Richard Henderson <rth@redhat.com>
7677
f75d70cc
RH
7678 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7679
67dfac52
RH
7680 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7681 (alpha_store_return_value): Likewise.
7682
0cf566ec
DC
76832003-06-02 David Carlton <carlton@math.stanford.edu>
7684
7685 * block.c (contained_in): Add 'const' to arguments.
7686 (block_function): Ditto.
7687 * block.h: Update declarations for block_function and
7688 contained_in.
7689
cdef89d0
DC
76902003-06-02 David Carlton <carlton@math.stanford.edu>
7691
7692 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7693 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7694 * p-valprint.c (pascal_val_print): Ditto.
7695 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7696
72667056
RH
76972003-06-02 Richard Henderson <rth@redhat.com>
7698
98a8e1e5
RH
7699 * alpha-tdep.c (alpha_push_dummy_call): Use
7700 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7701
8ffd9b1b 7702 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7703 sign-extension of 32-bit values.
7704 (alpha_store_return_value): Similarly.
0ede8eca 7705
98a8e1e5
RH
7706 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7707 (alpha_extract_return_value): Likewise.
7708 (alpha_store_return_value): Likewise.
7b5e1cb3 7709
98a8e1e5
RH
7710 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7711 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7712
98a8e1e5
RH
7713 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7714 (alpha_extract_struct_value_address): Likewise.
7715 (alpha_store_return_value): Likewise.
7716 (alpha_store_struct_return): Remove.
7717 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7718
98a8e1e5
RH
7719 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7720 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7721 macros where appropriate.
7722 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7723 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7724
98a8e1e5
RH
7725 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7726 for SP, GP; void_func_ptr for PC; non-language-specific types
7727 for all others.
7728 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7729
6dd77b81
RH
77302003-06-02 Richard Henderson <rth@redhat.com>
7731
7732 * top.h (lim_at_start): Declare.
7733 * main.c (captured_main): Set it.
7734 * top.c (lim_at_start): Define.
7735 (command_loop): Use it instead of &environ.
7736 * event-top.c (command_handler): Likewise.
7737
f4dbdb54
JT
77382003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7739
7740 * mipsnbsd-tdep.c: Update copyright years.
7741 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7742
8f285956
RH
77432003-06-01 Richard Henderson <rth@redhat.com>
7744
98a8e1e5
RH
7745 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7746 (alpha-linux-tdep.o): Update dependencies.
7747 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7748 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7749
615967cb
RH
77502003-06-01 Richard Henderson <rth@redhat.com>
7751
98a8e1e5
RH
7752 * alpha-tdep.c (alpha_register_reggroup_p): New.
7753 (alpha_gdbarch_init): Register it.
615967cb 7754
b59661bd
AC
77552003-06-02 Andrew Cagney <cagney@redhat.com>
7756
7757 * dwarfread.c: Eliminate "register"
7758 (decode_die_type): Eliminate assignment within "if".
7759 (struct_type, decode_array_element_type): Ditto.
7760 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7761 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7762 (decode_modified_type, completedieinfo): Ditto.
7763 * block.c: Eliminate "register".
7764 (blockvector_for_pc_sect): Eliminate assignment within "if".
7765 * cp-support.h (struct symbol): Opaque declaration.
7766 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7767
5ef165c2
RH
77682003-06-01 Richard Henderson <rth@redhat.com>
7769
98a8e1e5
RH
7770 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7771 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7772
143985b7
AF
77732003-06-01 Adam Fedor <fedor@gnu.org>
7774
7775 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7776 * gdbarch.[ch]: Regenerate.
7777 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7778 (hppa_gdbarch_init): Set it in the gdbarch vector.
7779 * i386-tdep.c (i386_fetch_pointer_argument): New
7780 (i386_gdbarch_init): Set it into gdbarch.
7781 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7782 (rs6000_gdbarch_init): Set it in gdbarch.
7783 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7784 (sparc_gdbarch_init): Set it in gdbarch.
7785
ae0167b9
AC
77862003-06-01 Andrew Cagney <cagney@redhat.com>
7787
7c0b4a20
AC
7788 * defs.h (extract_address): Delete declaration.
7789 * findvar.c (extract_address): Delete function.
7790 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7791 extract_address with the inline equivalent,
7792 extract_unsigned_integer.
7793 (xstormy16_extract_struct_value_address): Ditto.
7794 (xstormy16_pointer_to_address): Ditto.
7795 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7796 * v850-tdep.c (v850_push_arguments): Ditto.
7797 (v850_extract_return_value): Ditto.
7798 (v850_extract_struct_value_address): Ditto.
7799 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7800 (sparcnbsd_get_longjmp_target_64): Ditto.
7801 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7802 (get_longjmp_target): Ditto.
7803 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7804 (sh64_extract_struct_value_address): Ditto.
7805 (sh_push_arguments): Ditto.
7806 (sh64_push_arguments): Ditto.
7807 * remote-vxsparc.c (vx_read_register): Ditto.
7808 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7809 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7810 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7811 * mipsv4-nat.c (get_longjmp_target): Ditto.
7812 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7813 * mips-nat.c (get_longjmp_target): Ditto.
7814 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7815 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7816 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7817 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7818 * irix5-nat.c (get_longjmp_target): Ditto.
7819 * irix4-nat.c (get_longjmp_target): Ditto.
7820 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7821 (ia64_push_arguments): Ditto.
7822 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7823 * h8300-tdep.c (h8300_push_arguments): Ditto.
7824 (h8300_store_return_value): Ditto.
7825 (h8300_extract_struct_value_address): Ditto.
7826 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7827 (frv_push_arguments): Ditto.
7828 * avr-tdep.c (avr_pointer_to_address): Ditto.
7829 (avr_push_arguments): Ditto.
7830 * arm-tdep.c (arm_push_dummy_call): Ditto.
7831 (arm_get_longjmp_target): Ditto.
7832 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7833 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7834 (alpha_get_longjmp_target): Ditto.
7835
ae0167b9
AC
7836 * solib-irix.c (extract_mips_address): Inline extract_address,
7837 replacing it with extract_signed_integer.
7838 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7839 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7840 (first_link_map_member, open_symbol_file_object): Ditto.
7841 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7842 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7843 (LM_NEXT, LM_NAME): Ditto.
7844
44d88583
RH
78452003-06-01 Richard Henderson <rth@redhat.com>
7846
98a8e1e5
RH
7847 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7848 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7849 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7850 (alpha_cannot_store_register): Likewise.
7851 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7852 * alpha-nat.c (supply_gregset): Likewise.
7853 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7854
310e9b6a
AC
78552003-06-01 Andrew Cagney <cagney@redhat.com>
7856
7857 * infcall.c (call_function_by_hand): Update comment on
7858 DEPRECATED_DUMMY_WRITE_SP.
7859
7860 * mips-tdep.c (mips_gdbarch_init): Do not set
7861 deprecated_dummy_write_sp.
7862 (mips_eabi_push_dummy_call): Set the SP register.
7863 (mips_o64_push_dummy_call): Set the SP register.
7864 (mips_o32_push_dummy_call): Set the SP register.
7865 (mips_n32n64_push_dummy_call): Set the SP register.
7866
5ab84872
RH
78672003-06-01 Richard Henderson <rth@redhat.com>
7868
98a8e1e5
RH
7869 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7870 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7871 (supply_gregset): Likewise.
7872 * alpha-tdep.c (alpha_store_return_value): Likewise.
7873 (alpha_get_longjmp_target): Likewise.
7874 (alpha_register_name): Constify array.
7875 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7876 deprecated_register_size, deprecated_register_bytes,
7877 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7878 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7879 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7880
09cc52fd
RH
78812003-06-01 Richard Henderson <rth@redhat.com>
7882
7883 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7884 from arg_reg_buffer to regcache to avoid double conversion.
7885
c7f16359
MK
78862003-06-01 Mark Kettenis <kettenis@gnu.org>
7887
7888 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7889 SP_REGNUM.
7890 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7891 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7892
7131cb6e
RH
78932003-06-01 Richard Henderson <rth@redhat.com>
7894
98a8e1e5
RH
7895 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7896 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7897
f3e0f90b
RH
78982003-06-01 Richard Henderson <rth@redhat.com>
7899
98a8e1e5
RH
7900 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7901 not overlapping PC_REGNUM.
f3e0f90b 7902
c88e30c0
RH
79032003-06-01 Richard Henderson <rth@redhat.com>
7904
98a8e1e5
RH
7905 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7906 alpha_push_arguments. Don't dump argument register data to
7907 the target stack. Fix float and 128-bit long double semantics.
7908 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7909 (alpha_fix_call_dummy): Remove.
7910 (alpha_call_dummy_words): Remove.
7911 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7912
f1a559ae
RH
79132003-06-01 Richard Henderson <rth@redhat.com>
7914
7915 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7916
5e045346
AC
79172003-06-01 Andrew Cagney <cagney@redhat.com>
7918
95404a3e
AC
7919 * mips-tdep.c (is_mips16_addr): New function.
7920 (make_mips16_addr, unmake_mips16_addr): New functions.
7921 (pc_is_mips16, mips_fetch_instruction): Use.
7922 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7923 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7924 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7925 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7926 TARGET_MIPS.
7927 * config/mips/tm-mips.h: Update copyright.
7928 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7929 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7930 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7931 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7932 (TM_PRINT_INSN_MACH): Delete.
7933 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7934
5e045346
AC
7935 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7936 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7937 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7938 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7939 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7940 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7941 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7942 mips*-*-riscos* and mips*-*-sysv* onto mips.
7943 * config/mips/mips64.mt: New file.
7944 * config/mips/mips.mt: New file.
7945 * config/mips/littlemips.mt: Delete file.
7946 * config/mips/decstation.mt: Delete file.
7947 * config/mips/vr4300el.mt: Delete file.
7948 * config/mips/vr5000el.mt: Delete file.
7949 * config/mips/vr5000.mt: Delete file.
7950 * config/mips/vr4100.mt: Delete file.
7951 * config/mips/vr4xxxel.mt: Delete file.
7952 * config/mips/vr4300.mt: Delete file.
7953 * config/mips/vr4xxx.mt: Delete file.
7954 * config/mips/bigmips.mt: Delete file.
7955 * config/mips/bigmips64.mt: Delete file.
7956 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7957 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7958 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7959 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7960 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7961 "tm-bigmips.h".
7962 * config/mips/tm-irix3.h: Ditto.
7963 * config/mips/tm-mipsv4.h: Ditto.
7964 * config/mips/tm-embed.h: Ditto.
7965 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7966 "tm-bigmips64.h".
7967 * config/mips/tm-vr5000el.h: Delete file.
7968 * config/mips/tm-tx39l.h: Delete file.
7969 * config/mips/tm-vr4300el.h: Delete file.
7970 * config/mips/tm-vr4xxxel.h: Delete file.
7971 * config/mips/tm-vr4300.h: Delete file.
7972 * config/mips/tm-vr4100.h: Delete file.
7973 * config/mips/tm-vr4xxx.h: Delete file.
7974 * config/mips/tm-vr5000.h: Delete file.
7975 * config/mips/tm-embedl64.h: Delete file.
7976 * config/mips/tm-embedl.h: Delete file.
7977 * config/mips/tm-embed64.h: Delete file.
7978 * config/mips/tm-bigmips64.h: Delete file.
7979 * config/mips/tm-bigmips.h: Delete file.
7980
2473a4a9
MK
79812003-06-01 Mark Kettenis <kettenis@gnu.org>
7982
97a5b208
MK
7983 Fix gdb/1216.
7984 * shnbsd-nat.c: Include "sh-tdep.h".
7985
2473a4a9
MK
7986 From Richard Henderson <rth@redhat.com>:
7987 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7988
e0f7ec59
AC
79892003-05-31 Andrew Cagney <cagney@redhat.com>
7990
7991 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7992 forward declaration.
7993 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7994 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7995 (mips_find_saved_regs): Use set_reg_offset.
7996 (mips_frame_init_saved_regs): Delete function.
7997 (mips_pop_frame): Call mips_find_saved_regs instead of
7998 DEPRECATED_FRAME_INIT_SAVED_REGS.
7999
68dcc709
AC
80002003-05-31 Andrew Cagney <cagney@redhat.com>
8001
8002 * mips-tdep.c (mips_gdbarch_init): Do not set
8003 deprecated_max_register_raw_size, register_virtual_size, and
8004 deprecated_max_register_virtual_size.
8005
cfc14b3a
MK
80062003-05-31 Mark Kettenis <kettenis@gnu.org>
8007
6405b0a6
MK
8008 * i386-tdep.c: Include "dwarf2-frame.h".
8009 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8010 * Makefile.in (i386-tdep.o): Update dependencies.
8011
cfc14b3a
MK
8012 * dwarf2-frame.c, dwarf2-frame.h: New files.
8013 * Makefile.in (SFILES): Add dwarf2-frame.c.
8014 (dwarf2_frame_h): Define.
8015 (COMMON_OBS): Add dwarf2-frame.o.
8016 (dwarf2-frame.o): Add dependencies.
8017
6a2751d2
AJ
80182003-05-31 Andreas Jaeger <aj@suse.de>
8019
8020 * x86-64-linux-nat.c: Fix comment.
8021
1c3545ae
MK
80222003-05-31 Mark Kettenis <kettenis@gnu.org>
8023
10f93086
MK
8024 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8025 function signature.
8026
1c3545ae
MK
8027 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8028 have a sigcontext_addr handler.
8029 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8030 sigcontext_addr handler.
8031
e11c53d2
AC
80322003-05-31 Andrew Cagney <cagney@redhat.com>
8033
8034 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8035 (print_fp_register_row): Replace do_fp_register_row.
8036 (mips_print_fp_register): Add "file" and "frame" parameters.
8037 (mips_print_register): Add "file" and "frame" parameters.
8038 (mips_print_registers_info): Replace mips_do_registers_info.
8039 (mips_gdbarch_init): Set print_registers_info instead of
8040 deprecated_do_registers_info.
8041 (mips_read_fp_register_single): Add "frame" parameter.
8042 (mips_read_fp_register_double): Add "frame" parameter.
8043
a3386186
MK
80442003-05-31 Mark Kettenis <kettenis@gnu.org>
8045
70913449
MK
8046 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8047 Fixes a bug where GDB would print the wrong register names for
8048 targets without SSE.
8049
2b5e0749
MK
8050 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8051 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8052 registers.
8053
8054 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8055 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8056 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8057 TDEP->sc_sp_offset.
8058
a3386186
MK
8059 From Michal Ludvig <mludvig@suse.cz>:
8060 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8061 and `sc_num_regs'.
8062 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8063 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8064 I386_ST0_REGNUM): Move here from...
8065 * i386-tdep.c: ... here.
8066 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8067 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8068 registers if possible.
8069 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8070 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8071 Remove variables.
8072 (i386bsd_sc_reg_offset): New variable.
8073 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8074 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8075 TDEP->sc_sp_offset.
8076 (i386fbsd_sc_reg_offset): New variable.
8077 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8078 TDEP->sc_num_regs.
8079 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8080 variables.
8081 (i386fbsd4_sc_reg_offset): New variable.
8082 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8083 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8084 TDEP->sc_sp_offset.
8085 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8086 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8087 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8088 Remove variables.
8089 (i386nbsd_sc_reg_offset): New variable.
8090 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8091 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8092 TDEP->sc_sp_offset.
8093 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8094 Remove variables.
8095 (i386obsd_sc_reg_offset): New variable.
8096 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8097 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8098 TDEP->sc_sp_offset.
8099 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8100 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8101 for frame pointer offset in `struct sigcontext'.
8102
25ab4790
AC
81032003-05-31 Andrew Cagney <cagney@redhat.com>
8104
8105 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8106 architecture methods call_dummy_words, sizeof_call_dummy_words,
8107 push_return_address, store_struct_return, and fix_call_dummy. Set
8108 push_dummy_call instead of deprecated_push_arguments.
8109 (mips_store_struct_return): Delete function.
8110 (mips_fix_call_dummy): Delete function.
8111 (mips_push_return_address): Delete function.
8112 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8113 RA_REGNUM and T9_REGNUM.
8114 (mips_n32n64_push_dummy_call): Ditto for
8115 mips_n32n64_push_arguments.
8116 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8117 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8118
6a65450a
AC
81192003-05-31 Andrew Cagney <cagney@redhat.com>
8120
8121 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8122 "dummy_addr" to "bp_addr".
8123 * infcall.c (call_function_by_hand): Pass "funaddr" to
8124 gdbarch_push_dummy_call.
8125 * gdbarch.h, gdbarch.c: Re-generate.
8126 * i386-tdep.c (i386_push_dummy_call): Update.
8127 * arm-tdep.c (arm_push_dummy_call): Update.
8128 * d10v-tdep.c (d10v_push_dummy_call): Update.
8129
c4f35dd8
MK
81302003-05-31 Mark Kettenis <kettenis@gnu.org>
8131
8132 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8133 variable declarations.
8134 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8135 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8136 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8137 x86_64_init_frame_pc, x86_64_init_frame_pc,
8138 x86_64_function_has_prologue): Remove prototypes.
8139 (X86_64_NUM_GREGS): New define.
8140 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8141 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8142 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8143 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8144 XMM1_REGNUM): Remove defines.
8145 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8146 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8147 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8148 X86_64_XMM1_REGNUM): New defines.
8149 (struct x86_64_register_info): Renamed from `struct
8150 register_info'. Remove `size' member.
8151 (x86_64_register_info_table): Remove variable.
8152 (x86_64_register_info): New variable.
8153 (X86_64_NUM_REGS): New define.
8154 (X86_64_NUM_GREGS): Remove define.
8155 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8156 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8157 Remove variables.
8158 (x86_54_dwarf2_reg_to_regnum): Remove function.
8159 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8160 (x86_64_dwarf_reg_to_regnum): New function.
8161 (x86_64_register_name): Rewrite.
8162 (x86_64_register_raw_size): Remove function.
8163 (x86_64_register_byte_table): Remove variable.
8164 (x86_64_register_byte): Remove function.
8165 (x86_64_register_virtual_type): Remove function.
8166 (x86_64_register_type): New function.
8167 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8168 x86_64_register_convert_to_raw): Remove functions.
8169 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8170 (x86_64_use_struct_convention): Make static. Adjust for renamed
8171 defines.
8172 (x86_64_frame_init_saved_regs): Remove function.
8173 (x86_64_push_arguments): Make static. Change to accept a regcache
8174 as argument.
8175 (x86_64_store_return_value, x86_64_extract_return_value): Make
8176 static. Rewrite based on i386 counterparts.
8177 (x86_64_push_dummy_call): New function.
8178 (X86_64_NUM_SAVED_REGS): New define.
8179 (x86_64_register_number): Remove function.
8180 (x86_64_store_struct_return): Remove function.
8181 (x86_64_frameless_function_invocation,
8182 x86_64_function_has_prologue): Remove functions.
8183 (PROLOG_BUFSIZE): Remove define.
8184 (struct x86_64_frame_cache): New structure.
8185 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8186 x86_64_frame_cache, x86_64_frame_this_id,
8187 x86_64_frame_prev_register, x86_64_frame_p,
8188 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8189 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8190 functions.
8191 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8192 variables.
8193 (x86_64_skip_prologue): Rewrite in terms of
8194 x86_64_analyze_prologue.
8195 (x86_64_frame_base_address): New function.
8196 (x86_64_frame_base): New variable.
8197 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8198 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8199 set deprecated_fp_regnum, deprecated_register_size,
8200 deprecated_register_bytes, register_raw_size, register_byte,
8201 register_virtual_type, register_convertiable,
8202 register_convert_to_virtual, convert_to_raw,
8203 deprecated_get_saved_register, deprecated_target_read_fp,
8204 deprecated_push_arguments, deprecated_push_return_address,
8205 deprecated_pop_frame, deprecated_store_struct_return,
8206 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8207 frameless_function_invocation, deprecated_frame_saved_pc,
8208 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8209 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8210 deprecated_init_frame_pc and virtual_frame_pointer. Call
8211 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8212 and x86_64_frame_p. Call frame_base_set_default to register
8213 x86_64_frame_base.
8214 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8215 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8216 (_initialize_x86_64_tdep): Remove function.
8217 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8218 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8219 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8220 define.
8221 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8222 (x86_64_linux_sigcontext_addr): Rewrite.
8223 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8224 x86_64_linux_frame_saved_pc): Remove functions.
8225 (x86_64_linux_pc_in_sigtramp): Renamed from
8226 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8227 trampoline.
8228 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8229 Remove_functions.
8230 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8231 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8232 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8233 (x86_64_regmap): Rename to regmap.
8234 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8235 x86_64_num_gregs.
8236 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8237 x86_64_regmap.
8238 (x86_64_fxsave_offset): Remove function.
8239 (supply_fpregset): Simply call x86_64_supply_fxsave.
8240 (fill_fpregset): Simply call x86_64_fill_fxsave.
8241 (fetch_inferior_registers, store_inferior_registers): Avoid
8242 asignment in if-statement.
8243 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8244 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8245 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8246 (fetch_core_registers): Remove function.
8247 (linux_elf_core_fns): Remove.
8248 (offsetoff): Don't define.
8249 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8250 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8251 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8252 add core-regset.o.
8253 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8254 protection against multiple includes instead of NM_X86_64_h. Add
8255 various comments. Include "config/nm-linux.h". Don't include
8256 <signal.h>.
8257 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8258 GET_THREAD_SIGNALS): Remove defines.
8259 (x86_64_register_u_addr, kernel_u_size,
8260 lin_thread_get_thread_signals): Remove prototypes.
8261 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8262 [HAVE_LINK_H]: Don't include "solib.h".
8263 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8264 * config/i386/tm-x86-64linux.h: Fix comments.
8265 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8266 x86-64-tdep.o): Update dependencies.
8267
c25083af
AC
82682003-05-30 Andrew Cagney <cagney@redhat.com>
8269
c8f55a7b
AC
8270 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8271 Change parameter type to a "struct regcache *".
8272
c25083af
AC
8273 * gdbarch.sh: Regardless of the multi-arch level, always define
8274 the macro when not already defined.
8275 * gdbarch.h, gdbarch.c: Re-generate.
8276
fbe586ae
RH
82772003-05-30 Richard Henderson <rth@redhat.com>
8278
8279 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8280 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8281 (alpha_mdebug_frame_this_id): Likewise.
8282 (alpha_mdebug_frame_prev_register): Likewise.
8283 (alpha_mdebug_frame_base_address): Likewise.
8284 (alpha_mdebug_frame_locals_address): Likewise.
8285 (alpha_mdebug_frame_args_address): Likewise.
8286 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8287 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8288 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8289 loop increment.
8290 (alpha_heuristic_frame_this_id): Make static.
8291 (alpha_heuristic_frame_prev_register): Likewise.
8292 (alpha_heuristic_frame_base_address): Likewise.
8293 * alpha-tdep.h: Update.
8294
acd5c798
MK
82952003-05-30 Mark Kettenis <kettenis@gnu.org>
8296
8297 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8298 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8299 defenitions.
8300 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8301 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8302 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8303 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8304 I386_ST0_REGNUM): New defines.
8305 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8306 codestream_get): Remove define.
8307 (codestream_next_addr, condestream_addr, condestream_buf,
8308 codestream_off, codestream_cnt): Remove variables.
8309 (codestream_fill, codestream_seek, codestream_read): Remove
8310 functions.
8311 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8312 functionality.
8313 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8314 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8315 i386_frame_saved_pc, i386_saved_pc_after_call,
8316 i386_frame_num_args, i386_frame_init_saved_regs,
8317 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8318 i386_push_arguments): Remove functions.
8319 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8320 functionality. Use i386_analyze_prologue instead of
8321 i386_get_frame_setup.
8322 (I386_NUM_SAVED_REGS): New define.
8323 (struct i386_frame_cache): New structure.
8324 (i386_alloc_frame_cache, i386_analyze_struct_return,
8325 i386_skip_probe, i386_analyze_frame_setup,
8326 i386_analyze_register_saves, i386_analyze_prologue,
8327 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8328 i386_frame_prev_register, i386_sigtramp_frame_cache,
8329 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8330 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8331 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8332 New functions.
8333 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8334 New variables.
8335 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8336 I386_EAX_REGNUM and I386_EDX_REGNUM.
8337 (i386_extract_return_value, i386_store_return_value): Use
8338 I386_ST0_REGNUM where appropriate.
8339 (i386_extract_struct_value_address): Rewrite to use extract_address.
8340 (i386_svr4_pc_in_sigtramp): Add comment.
8341 (i386_svr4_sigcontext_addr): Rewrite.
8342 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8343 TDEP->sc_sp_offset.
8344 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8345 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8346 of new defines. Set push_dummy_call, don't set
8347 deprecated_push_arguments, deprecated_push_return_address,
8348 deprecated_pop_frame. Don't set parm_boundary. Don't set
8349 deprecated_frame_chain, deprecated_frame_saved_pc,
8350 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8351 save_dummy_frame_tos, unwind_pc. Call
8352 frame_unwind_append_predicate and frame_base_set_default. Don't
8353 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8354 Don't set frameless_function_invocation. Don't set
8355 deprecated_register_bytes, deprecated_register_size,
8356 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8357 * i386-linux-tdep.c: Fix formatting in some comments.
8358 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8359 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8360 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8361 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8362 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8363 redundant parentheses.
8364 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8365 (i386_linux_sigcontext_addr): Use it. Rewrite.
8366 (find_minsym_and_objfile): Change name of second argument.
8367 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8368 changed. Use frame_pc_unwind instead of
8369 DEPRECATED_SAVED_PC_AFTER_CALL.
8370 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8371 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8372 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8373 unwinder.
8374 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8375 "dummy-frame.h".
8376 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8377 (_initialize_i386_cygwin_tdep): New prototype.
8378 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8379 deprecated_frame_chain_valid.
8380 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8381 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8382 Rely on the SVR4 defaults.
8383 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8384 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8385
c89b70f1
AC
83862003-05-30 Andrew Cagney <cagney@redhat.com>
8387
8388 * infcall.c (call_function_by_hand): Always call
8389 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8390
85b32d22
RH
83912003-05-30 Richard Henderson <rth@redhat.com>
8392
c89b70f1
AC
8393 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8394 increment.
85b32d22 8395
bfe51b1e
JB
83962003-05-29 Jim Blandy <jimb@redhat.com>
8397
8398 Use gdbarch methods for solib stuff on PowerPC Linux.
8399 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8400 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8401 show through.
8402 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8403 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8404 giving the same effect as the #definitions above.
8405
1abf022c
AF
84062003-05-29 Adam Fedor <fedor@gnu.org>
8407
8408 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8409 (find_implementation_from_class): Replace it with the standard
8410 case i.e. do nothing.
8411
d2427a71
RH
84122003-05-29 Richard Henderson <rth@redhat.com>
8413
8414 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8415 (alpha_linux_sigtramp_offset): Use it. Make static.
8416 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8417 update for new frame model.
8418 * alpha-mdebug-tdep.c: New file.
8419 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8420 (alpha_osf1_init_abi): Install it.
8421 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8422 (linked_proc_desc_table): Remove.
8423 (alpha_frame_past_sigtramp_frame): Remove.
8424 (alpha_dynamic_sigtramp_offset): Remove.
8425 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8426 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8427 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8428 (push_sigtramp_desc): Remove.
8429 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8430 (alpha_cannot_store_register): Likewise.
8431 (alpha_sigcontext_addr): Remove.
8432 (alpha_find_saved_regs): Remove.
8433 (alpha_frame_init_saved_regs): Remove.
8434 (alpha_init_frame_pc_first): Remove.
8435 (read_next_frame_reg): Remove.
8436 (alpha_frame_saved_pc): Remove.
8437 (alpha_saved_pc_after_call): Remove.
8438 (temp_proc_desc, temp_saved_regs): Remove.
8439 (alpha_about_to_return): Remove.
8440 (cached_proc_desc): Remove.
8441 (alpha_frame_chain): Remove.
8442 (alpha_print_extra_frame_info): Remove.
8443 (alpha_init_extra_frame_info): Remove.
8444 (alpha_frame_locals_address): Remove.
8445 (alpha_frame_args_address): Remove.
8446 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8447 (alpha_push_dummy_frame): Remove.
8448 (alpha_pop_frame): Remove.
8449 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8450 (alpha_read_insn): New.
8451 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8452 for different insn encodings.
8453 (alpha_in_lenient_prologue): Remove.
8454 (struct alpha_sigtramp_unwind_cache): New.
8455 (alpha_sigtramp_frame_unwind_cache): New.
8456 (alpha_sigtramp_register_address): New.
8457 (alpha_sigtramp_frame_this_id): New.
8458 (alpha_sigtramp_frame_prev_register): New.
8459 (alpha_sigtramp_frame_unwind): New.
8460 (alpha_sigtramp_frame_p): New.
8461 (struct alpha_heuristic_unwind_cache): New.
8462 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8463 don't count nop insns that occur between functions.
8464 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8465 heuristic_proc_desc, but without the mdebug wrapping.
8466 (alpha_heuristic_frame_this_id): New.
8467 (alpha_heuristic_frame_prev_register): New.
8468 (alpha_heuristic_frame_unwind): New.
8469 (alpha_heuristic_frame_p): New.
8470 (alpha_heuristic_frame_base_address): New.
8471 (alpha_heuristic_frame_base): New.
8472 (alpha_unwind_dummy_id): New.
8473 (alpha_unwind_pc): New.
8474 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8475 frame related deprecated initializations; install replacements.
8476 (alpha_dump_tdep): Remove.
8477 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8478 (alpha_read_insn, alpha_after_prologue,
8479 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8480 alpha_heuristic_frame_prev_register,
8481 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8482 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8483 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8484 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8485
93ec1121
AC
84862003-05-29 Andrew Cagney <cagney@redhat.com>
8487
8488 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8489 dependant on the availability of ASSERT_FUNCTION.
8490 (ASSERT_FUNCTION): Do not define when there is no function name.
8491
98f08d3d
KB
84922003-05-29 Kevin Buettner <kevinb@redhat.com>
8493
8494 From Jimi X <jimix@watson.ibm.com>:
8495 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8496
0897f59b
JB
84972003-05-28 Jim Blandy <jimb@redhat.com>
8498
8499 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8500 argument to ptrace to int; the system headers should give it the
8501 right type, and pointers don't fit in ints on powerpc64-*-*.
8502
14898363
L
85032003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8504
8505 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8506 DW_TAG_catch_block.
8507
a7a48797
EZ
85082003-05-26 Elena Zannoni <ezannoni@redhat.com>
8509
8510 * stabsread.c (dbx_lookup_type): Make static.
8511 (read_type): Ditto.
8512 (add_undefined_type): Ditto.
8513 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8514 not export.
8515
f5479e9c
EZ
85162003-05-26 Elena Zannoni <ezannoni@redhat.com>
8517
8518 * hpread.c (hpread_has_name): Make static.
8519 (hpread_psymtab_to_symtab): Ditto.
8520 (file_exists): Ditto.
8521 (hpread_call_pxdb): Ditto.
8522 (hpread_pxdb_needed): Ditto.
8523 (hpread_quick_traverse): Ditto.
8524 (hpread_get_header): Ditto.
8525 (hpread_get_lntt): Ditto.
8526 (hpread_get_slt): Ditto.
8527 (class_of): Ditto.
8528
eb2e12d7
AS
85292003-05-25 Andreas Schwab <schwab@suse.de>
8530
78bf922a
AS
8531 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8532 stack_align and deprecated_extra_stack_alignment_needed.
8533 (m68k_stack_align): Delete.
8534
eb2e12d7
AS
8535 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8536 (m68k_register_virtual_size): Likewise.
8537 (altos_skip_prologue): Remove obsolete function.
8538 (isi_frame_num_args): Likewise.
8539 (news_frame_num_args): Likewise.
8540 (m68k_fix_call_dummy): Make static.
8541 (m68k_push_dummy_frame): Likewise.
8542 (m68k_pop_frame): Likewise.
8543 (m68k_skip_prologue): Likewise.
8544 (m68k_frame_init_saved_regs): Likewise.
8545 (m68k_saved_pc_after_call): Likewise.
8546 (m68k_get_longjmp_target): Make multi-arch.
8547 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8548 structure. Register m68k_get_longjmp_target if enabled.
8549 * m68k-tdep.h (struct gdbarch_tdep): Define.
8550 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8551
8552 * Makefile.in (config.status): Also depend on configure.tgt
8553 and configure.host.
8554 (m68klinux-tdep.o): Update dependencies.
8555 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8556 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8557 (M68K_LINUX_JB_PC): Define.
8558 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8559 and take additional parameter.
8560 (m68k_linux_sigtramp_saved_pc): Update.
8561 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8562 m68k_linux_pc_in_sigtramp, in_plt_section,
8563 find_solib_trampoline_target.
8564 * config/m68k/tm-linux.h: Don't include any tm headers.
8565 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8566 (JB_ELEMENT_SIZE): Likewise.
8567 (JB_PC): Likewise.
8568 (GET_LONGJMP_TARGET): Likewise.
8569 (IN_SIGTRAMP): Likewise.
8570 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8571
eb2c22dc
MK
85722003-05-25 Mark Kettenis <kettenis@gnu.org>
8573
8574 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8575 (sparc32_push_arguments): Re-implement by calling
8576 sparc32_do_push_arguments.
8577
44b7b84e
MK
85782003-05-25 Mark Kettenis <kettenis@gnu.org>
8579
8580 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8581 SPARC_O1_REGNUM): New defines.
8582 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8583 (sparc32_store_return_value): New function.
8584 (sparc_extract_struct_value_address): Rewrite to operate on a
8585 regcache.
8586 (sparc_gdbarch_init): Don't set
8587 deprecated_extract_struct_value_address. Set
8588 extract_struct_value_address instead. Don't set
8589 deprecated_extract_return_value and deprecated_store_return_value
8590 for 32-bit targets. Set extract_return_value and
8591 store_return_value instead.
8592 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8593 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8594 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8595 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8596 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8597 (sparc_store_return_value): Remove prototype.
8598 (sparc32_store_return_value): New prototype.
8599 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8600 Adjust prototypes.
8601
f6ad61e3
MK
86022003-05-24 Mark Kettenis <kettenis@gnu.org>
8603
8604 * sparcnbsd-tdep.c: Include "gdb_string.h".
8605
b276f1bb
AC
86062003-05-23 Andrew Cagney <cagney@redhat.com>
8607
8608 * p-valprint.c (pascal_val_print): Replace extract_address with
8609 the inline equivalent extract_unsigned_integer.
8610 * jv-valprint.c (java_value_print): Ditto.
8611 * ada-valprint.c (ada_val_print_1): Ditto.
8612 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8613
e76c5fcc
TR
86142003-05-23 Theodore A. Roth <troth@openavr.org>
8615
8616 * blockframe.c (frameless_look_for_prologue): Remove unused
8617 after_prologue variable.
8618
2cdd89cb
MK
86192003-05-23 Mark Kettenis <kettenis@gnu.org>
8620
8621 * blockframe.c (get_pc_function_start): Rewrite to avoid
8622 asignments in if-statements.
8623
182d43bc
EZ
86242003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8625
8626 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8627 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8628 files, don't relocate absolute symbols (and do use mst_abs).
8629
e8f3fcdd
AC
86302003-05-23 Andrew Cagney <cagney@redhat.com>
8631
8632 * objc-lang.c: Include "gdb_assert.h".
8633 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8634 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8635 (gdb_check, gdb_check_fatal): Delete functions.
8636 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8637 gdb_assert.
8638 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8639 * Makefile.in (objc-lang.o): Update dependencies.
8640
3c23e6fb
ILT
86412003-05-22 Ian Lance Taylor <ian@airs.com>
8642
8643 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8644 with fprintf_filtered, not fprintf_unfiltered.
8645
af1342ab
AC
86462003-05-22 Andrew Cagney <cagney@redhat.com>
8647
8648 * stack.c (frame_info): Inline extract_address, replacing it with
8649 extract_unsigned_integer.
8650 * findvar.c (unsigned_pointer_to_address): Ditto.
8651 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8652 * dwarf2expr.c (dwarf2_read_address): Ditto.
8653 * frame.c (frame_pc_unwind): Update comment.
8654 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8655
47e242ec
JJ
86562003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8657
8658 * infptrace.c (detach): Call print_sys_errmsg rather than
8659 perror_with_name to issue warning message when errno is non-zero
8660 after calling ptrace detach.
8661
e2ac8128
JB
86622003-05-21 J. Brobecker <brobecker@gnat.com>
8663
8664 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8665 macro definitions from here...
8666 * hppa-tdep.c: ...to there.
8667
92b3541e
KB
86682003-05-20 Kevin Buettner <kevinb@redhat.com>
8669
8670 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8671 register_ptrace_addr(). Fix all callers.
8672
55809acb
AS
86732003-05-21 Andreas Schwab <schwab@suse.de>
8674
8675 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8676 dependencies.
8677 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8678 end.
8679 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8680 (_initialize_m68k_linux_tdep): New function.
8681 (m68k_linux_frame_saved_pc): Make static.
8682 (m68k_linux_extract_return_value): Likewise.
8683 (m68k_linux_store_return_value): Likewise.
8684 (m68k_linux_extract_struct_value_address): Likewise.
8685 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8686 Remove.
8687 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8688 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8689 (DEPRECATED_FRAME_SAVED_PC): Remove.
8690
0fbc10f7
KW
86912003-05-20 Kris Warkentin <kewarken@qnx.com>
8692
8693 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8694 regset numbering rather than our own.
8695
58da2eb2
DC
86962003-05-19 David Carlton <carlton@bactrian.org>
8697
8698 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8699
1fcb5155
DC
87002003-05-19 David Carlton <carlton@bactrian.org>
8701
8702 Partial fix for PR c++/827.
8703 * cp-support.h: Include symtab.h.
8704 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8705 * cp-namespace.c: Update contributors.
8706 (cp_lookup_symbol_nonlocal): New.
8707 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8708 (lookup_symbol_file): Ditto.
8709 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8710 * block.h: Declare block_scope, block_using, block_global_block.
8711 * block.c (block_scope): New.
8712 (block_using, block_global_block): Ditto.
8713 * Makefile.in (cp_support_h): Depend on symtab_h.
8714 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8715
5f9a71c3
DC
87162003-05-19 David Carlton <carlton@bactrian.org>
8717
8718 * language.h (struct language_defn): Add 'la_value_of_this'
8719 and 'la_lookup_symbol_nonlocal' members.
8720 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8721 lookup_symbol_static, lookup_symbol_global,
8722 lookup_symbol_aux_block.
8723 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8724 if we should search fields of this and how to do static/global
8725 lookup.
8726 (lookup_symbol_aux_block): Make extern.
8727 (basic_lookup_symbol_nonlocal): New.
8728 (lookup_symbol_static, lookup_symbol_global): Ditto.
8729 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8730 'la_lookup_symbol_nonlocal' members.
8731 * c-lang.c (c_language_defn, cplus_language_defn)
8732 (asm_language_defn, minimal_language_defn): Ditto.
8733 * jv-lang.c (java_language_defn): Ditto.
8734 * language.c (unknown_language_defn, auto_language_defn)
8735 (local_language_defn): Ditto.
8736 * m2-lang.c (m2_language_defn): Ditto.
8737 * objc-lang.c (objc_language_defn): Ditto.
8738 * scm-lang.c (scm_language_defn): Ditto.
8739 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8740 * p-lang.c (pascal_language_defn): Ditto for both.
8741 * Makefile.in (f-lang.o): Depend on value_h.
8742 (p-lang.o): Ditto.
8743
89a9d1b1
DC
87442003-05-19 David Carlton <carlton@bactrian.org>
8745
8746 * block.h: Declare block_static_block.
8747 * block.c (block_static_block): New.
8748 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8749 lookup_symbol_aux_local, calling block_static_block instead.
8750 (lookup_symbol_aux_local): Delete 'static_block' argument.
8751
eed3f8ab
DC
87522003-05-19 David Carlton <carlton@bactrian.org>
8753
8754 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8755
a09d8bda
ML
87562003-05-19 Michal Ludvig <mludvig@suse.cz>
8757
8758 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8759 register numbers mapping.
8760
69636828
AF
87612003-05-18 Adam Fedor <fedor@gnu.org>
8762
8763 * symtab.c (completion_list_objc_symbol): New function.
8764 (make_symbol_completion_list): Use it to add ObjC symbols
8765 when looking though the list.
8766 (language_search_unquoted_string): New function.
8767 (make_file_symbol_completion_list): Use it.
8768
55baeb84
AS
87692003-05-18 Andreas Schwab <schwab@suse.de>
8770
d0b45d99
AS
8771 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8772 dependencies.
8773 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8774 as m68k_linux_extract_return_value.
8775 (DEPRECATED_STORE_RETURN_VALUE): Define as
8776 m68k_linux_store_return_value.
8777 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8778 m68k_linux_extract_struct_value_address.
8779 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8780 get_next_frame, get_frame_base, get_frame_pc.
8781 (m68k_linux_frame_saved_pc): Use get_frame_base.
8782 (m68k_linux_extract_return_value): New function.
8783 (m68k_linux_store_return_value): New function.
8784 (m68k_linux_extract_struct_value_address): New function.
8785 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8786
55baeb84
AS
8787 * c-exp.y (typebase): Remove duplicate occurence of
8788 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8789 of lookup_signed_typename.
55baeb84 8790
b6b08ebf
MK
87912003-05-18 Mark Kettenis <kettenis@gnu.org>
8792
8793 * dwarf2loc.c (find_location_expression): Change type of second
8794 argument to `size_t *'.
8795 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8796 for size variable.
8797
5ad1c190
DC
87982003-05-18 David Carlton <carlton@bactrian.org>
8799
8800 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8801 'linkage_name'. Add comment.
8802 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8803 'linkage_name'.
8804 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8805 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8806 (lookup_block_symbol): Ditto.
8807
b8b527c5
AC
88082003-05-16 Andrew Cagney <cagney@redhat.com>
8809
8810 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8811 * gdbarch.h, gdbarch.c: Re-generate.
8812 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8813 * TODO (REGISTER_BYTES): Delete reference.
8814 * alpha-tdep.c (alpha_gdbarch_init): Update.
8815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8816 * x86-64-tdep.c (x86_64_init_abi): Update.
8817 * vax-tdep.c (vax_gdbarch_init): Update.
8818 * v850-tdep.c (v850_gdbarch_init): Update.
8819 * sparc-tdep.c (sparc_gdbarch_init): Update.
8820 * sh-tdep.c (sh_gdbarch_init): Update.
8821 * s390-tdep.c (s390_gdbarch_init): Update.
8822 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8823 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8824 (ns32k_gdbarch_init_32382): Update.
8825 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8826 * mcore-tdep.c (mcore_gdbarch_init): Update.
8827 * m68k-tdep.c (m68k_gdbarch_init): Update.
8828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8829 * ia64-tdep.c (ia64_gdbarch_init): Update.
8830 * i386-tdep.c (i386_gdbarch_init): Update.
8831 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8832 * hppa-tdep.c (hppa_gdbarch_init): Update.
8833 * h8300-tdep.c (h8300_gdbarch_init): Update.
8834 * frv-tdep.c (frv_gdbarch_init): Update.
8835 * cris-tdep.c (cris_gdbarch_init): Update.
8836 * avr-tdep.c (avr_gdbarch_init): Update.
8837 * arm-tdep.c (arm_gdbarch_init): Update.
8838 * sparc-tdep.c (sparc_pop_frame): Update.
8839 * rs6000-tdep.c (rs6000_pop_frame): Update.
8840 * remote.c (init_remote_state): Update.
8841 (remote_prepare_to_store): Update.
8842 * remote-vx.c (vx_prepare_to_store): Update.
8843 * remote-sds.c (sds_fetch_registers): Update.
8844 (sds_prepare_to_store): Update.
8845 * remote-array.c: Update.
8846 * regcache.c (init_legacy_regcache_descr): Update.
8847 (init_regcache_descr): Update.
8848 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8849 (mips_o64_extract_return_value): Update.
8850 * irix5-nat.c (fetch_core_registers): Update.
8851 * irix4-nat.c (fetch_core_registers): Update.
8852 * i386-tdep.h: Update.
8853 * hppa-tdep.c (pa_do_registers_info): Update.
8854 (pa_do_strcat_registers_info): Update.
8855 * cris-tdep.c (cris_register_bytes_ok): Update.
8856 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8857 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8858 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8859 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8860 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8861 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8862 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8863 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8864 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8865 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8866 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8867 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8868 (REGISTER_BYTES_OK): Update.
8869 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8870 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8871
ee2842e2
ILT
88722003-05-16 Ian Lance Taylor <ian@airs.com>
8873
8874 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8875 (vax_print_insn, print_insn_arg): Remove static functions.
8876 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8877 print_insn_vax from opcodes library.
8878 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8879
973177d3
AC
88802003-05-15 Andrew Cagney <cagney@redhat.com>
8881
aaab4dba
AC
8882 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8883 * target.h (memory_breakpoint_from_pc): Delete declaration.
8884 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8885 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8886 * monitor.c (monitor_insert_breakpoint): Use
8887 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8888 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8889 * gdbarch.h, gdbarch.c: Re-generate.
8890 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8891 (sparc_gdbarch_init): Set breakpoint_from_pc to
8892 sparc_breakpoint_from_pc.
8893 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8894 (BREAKPOINT_FROM_PC): Define.
8895 (sparc_breakpoint_from_pc): Declare.
8896 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8897 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8898 (BREAKPOINT_FROM_PC): Define.
8899 (BREAKPOINT): Delete macro.
8900 * target.h: Update comment.
8901 * s390-tdep.c (s390_gdbarch_init): Update comments.
8902 * remote.c: Update comments.
8903 * remote-mips.c: Update comments.
8904 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8905 * mem-break.c: Update comment.
8906 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8907 (ia64_memory_insert_breakpoint): Update.
8908 * config/sparc/tm-sparc.h: Update comment.
8909 * config/pa/tm-hppa64.h: Update comment.
8910 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8911 (rs6000_breakpoint_from_pc): Update.
8912 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8913 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8914 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8915 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8916 (mips_breakpoint_from_pc): Update.
8917 (mips_dump_tdep): Update.
8918
e06963ff
AC
8919 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8920 * minsyms.c (lookup_minimal_symbol): Inline
8921 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8922
973177d3
AC
8923 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8924 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8925 * p-lang.c (pascal_printstr): Ditto.
8926 * objc-lang.c (objc_printstr): Ditto.
8927 * m2-lang.c (m2_printstr): Ditto.
8928 * jv-valprint.c (java_print_value_fields): Ditto.
8929 * f-lang.c (f_printstr): Ditto.
8930 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8931 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8932 for repeat_count_threshold.
8933 * Makefile.in (cp-valprint.o): Update dependencies.
8934
5ea2bd7f 89352003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8936
5ea2bd7f
JJ
8937 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8938 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8939 they start with mov r2,r12. Support skipping over indirect stores
8940 of the input registers. Upon hitting a non-nop branch instruction
8941 or predicated instruction, bail out by setting lim_pc to the current
8942 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8943 beyond our calculated value and we have trust_limit set,
8944 use the lim_pc value.
8945
cc8c88f3
AC
89462003-05-15 Andrew Cagney <cagney@redhat.com>
8947
8948 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8949 generic_find_dummy_frame.
8950 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8951 (deprecated_generic_find_dummy_frame): Update.
8952 (deprecated_read_register_dummy): Update.
8953 * frame.c (deprecated_generic_get_saved_register): Update.
8954
909cd28e
TR
89552003-05-15 Theodore A. Roth <troth@openavr.org>
8956
8957 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8958 (avr_gdbarch_init): Set breakpoint_from_pc method.
8959
b923b08d
AC
89602003-05-15 Andrew Cagney <cagney@redhat.com>
8961
8962 * regcache.c (build_regcache): Set deprecated_register_valid
8963 directly.
8964 (deprecated_grub_regcache_for_register_valid): Delete function.
8965 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8966 declaration.
8967
ae2f03ac 89682003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8969
8970 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8971 * symtab.c (lookup_symbol_aux): Delete calls to
8972 lookup_symbol_aux_minsyms.
8973 (lookup_symbol_aux_minsyms): Comment out function and
8974 prototype. Delete lookup by mangled name.
ae2f03ac 8975
18ec9831
KB
89762003-05-14 Kevin Buettner <kevinb@redhat.com>
8977
8978 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8979 correctly indicate an empty stack and ``stack_allocated'' to the
8980 indicate the number of elements initially allocated.
8981 (dwarf_expr_grow_stack): Simplify method for computing new
8982 stack size. Don't loop infinitely if ``stack_len'' is zero.
8983 (execute_stack_op): Move ``ctx->in_reg'' initialization
8984 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8985 be used in conjuction with DW_OP_piece. Revise error message
8986 accordingly.
8987
de18ac1f
TR
89882003-05-14 Theodore A. Roth <troth@openavr.org>
8989
8990 * MAINTAINERS: Update my email address.
8991 * avr-tdep.c: Ditto.
8992
176620f1
EZ
89932003-05-14 Elena Zannoni <ezannoni@redhat.com>
8994
8995 * symtab.h (enum domain_enum): Rename from namespace_enum.
8996 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8997 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8998 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8999 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9000 TYPES_NAMESPACE, METHODS_NAMESPACE.
9001 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9002 (struct symbol, struct partial_symbol): Rename field
9003 'namespace_enum namespace' to 'domain_enum domain'.
9004 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9005 Delete old define kludge for namespace.
9006
9007 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9008 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9009 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9010 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9011 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9012 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9013 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9014 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9015 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9016 occurrences of the above.
9017
b7f31508
ILT
90182003-05-14 Ian Lance Taylor <ian@airs.com>
9019
9020 * Makefile.in (install-only): Use $(SHELL) when running
9021 mkinstalldirs.
9022
2fdbdd39
ILT
90232003-05-13 Ian Lance Taylor <ian@airs.com>
9024
a208d82c
ILT
9025 * MAINTAINERS (write after approval): Add myself.
9026
2fdbdd39
ILT
9027 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9028 second and third arguments.
9029 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9030 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9031
fbd9dcd3
AC
90322003-05-13 Andrew Cagney <cagney@redhat.com>
9033
9034 * defs.h (store_address): Delete declaration.
9035 findvar.c (store_address): Delete function.
9036 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9037 store_unsigned_integer.
9038 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9039 * v850-tdep.c (v850_push_arguments): Ditto.
9040 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9041 * sh-tdep.c (sh64_get_saved_register): Ditto.
9042 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9043 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9044 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9045 (mips_get_saved_register): Ditto.
9046 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9047 (find_func_descr, ia64_push_arguments): Ditto.
9048 * i386-tdep.c (i386_push_arguments): Ditto.
9049 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9050 * frv-tdep.c (frv_push_arguments): Ditto.
9051 * frame.c (legacy_saved_regs_prev_register): Ditto.
9052 (deprecated_generic_get_saved_register): Ditto.
9053 * findvar.c (unsigned_address_to_pointer): Ditto.
9054 * dwarf2read.c (dwarf2_const_value): Ditto.
9055 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9056 * alpha-tdep.c (alpha_push_arguments): Ditto.
9057
6760f9e6
JB
90582003-05-12 J. Brobecker <brobecker@gnat.com>
9059
9060 * NEWS: Mention that the hppa-hpux port has been partially
9061 multiarched (32bit ABIT only, so far).
9062
30e221b4
AC
90632003-05-11 Andrew Cagney <cagney@redhat.com>
9064
9065 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9066 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9067 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9068 sim/testsuite/sim/arm/misaligned2.ms, and
9069 sim/testsuite/sim/arm/misaligned3.ms.
9070 * disasm.h (struct ui_file): Add opaque struct declaration.
9071 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9072 * frame.h (struct ui_file): Ditto.
9073
dea7f9ba
MK
90742003-05-11 Mark Kettenis <kettenis@gnu.org>
9075
9076 * value.h: Pretty print.
9077
01986c48
MK
90782003-05-10 Mark Kettenis <kettenis@gnu.org>
9079
9080 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9081
123a958e
AC
90822003-05-08 Andrew Cagney <cagney@redhat.com>
9083
9084 * regcache.h (max_register_size): Delete declaration.
9085 * regcache.c (max_register_size): Delete function.
9086 (struct regcache_descr): Delete field "max_register_size".
9087 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9088 registers fit in MAX_REGISTER_SIZE.
9089 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9090 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9091 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9092 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9093 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9094 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9095 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9096 * dve3900-rom.c, hppa-tdep.c: Ditto.
9097
eb294659
DC
90982003-05-08 David Carlton <carlton@math.stanford.edu>
9099
9100 * valops.c (push_word): Fix typo.
9101
d9d9c31f
AC
91022003-05-08 Andrew Cagney <cagney@redhat.com>
9103
9104 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9105 * gdbarch.h: Re-generate.
9106 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9107 (legacy_max_register_raw_size): Delete declaration.
9108 * regcache.c (legacy_max_register_raw_size): Delete function.
9109 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9110 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9111 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9112 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9113 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9114 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9115 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9116 * findvar.c, dwarf2cfi.c: Ditto.
9117
22540ece
AC
91182003-05-08 Andrew Cagney <cagney@redhat.com>
9119
9120 * mips-tdep.c (read_signed_register): New function, moved to here
9121 from "regcache.c".
9122 (read_signed_register_pid): Ditto.
9123 * regcache.c (read_signed_register_pid): Delete function, moved to
9124 "mips-tdep.c".
9125 (read_signed_register): Ditto.
9126 * regcache.h (read_signed_register): Delete declaration.
9127 (read_signed_register_pid): Delete declaration.
9128
0c92afe8
AC
91292003-05-08 Andrew Cagney <cagney@redhat.com>
9130
9131 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9132 * gdbarch.h: Re-generate.
9133 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9134 (legacy_max_register_virtual_size): Delete declaration.
9135 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9136 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9137 * tracepoint.c (memrange_sortmerge): Ditto.
9138 * sparc-tdep.c (sparc_print_registers): Ditto.
9139 * regcache.c (legacy_max_register_virtual_size): Delete function.
9140
6037b830
JB
91412002-05-08 J. Brobecker <brobecker@gnat.com>
9142
9143 * fork-child.c (escape_bang_in_quoted_argument): New function.
9144 (fork_inferior): Escape '!' characters in quoted arguments
9145 only when needed.
9146
5d62c8b1
JB
91472003-05-08 J. Brobecker <brobecker@gnat.com>
9148
9149 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9150 the language of the CU is not currently supported by GDB.
9151
20a0e81d
JB
91522003-05-08 J. Brobecker <brobecker@gnat.com>
9153
9154 * defs.h (language): Add language_minimal enum value.
9155 * c-lang.c (minimal_language_defn): New language definition.
9156 (_initialize_c_language): Add the new minimal language to the list
9157 of languages known to GDB.
9158
710ee10a
KB
91592003-05-08 Kevin Buettner <kevinb@redhat.com>
9160
9161 * frame.c (get_frame_type): Don't attempt to lazily initialize
9162 frame's unwinder for legacy frames.
9163
1750fa04
AC
91642003-05-07 Andrew Cagney <cagney@redhat.com>
9165
9166 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9167 and "regcache" parameters.
9168 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9169
ddf9f258 91702003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9171
9172 * dwarf2read.c (dwarf_decode_lines): Only use output of
9173 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9174 the current address.
9175
87767c29
AC
91762003-05-07 Andrew Cagney <cagney@redhat.com>
9177
9178 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9179 code.
9180
5e7b2f39
JB
91812003-05-07 Jim Blandy <jimb@redhat.com>
9182
9183 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9184 'maint info symtabs' and 'maint info psymtabs'.
9185 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9186 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9187 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9188 Declarations updated.
9189 * maint.c (maintenance_list_command): Delete.
9190 (_initialize_maint_cmds): Update calls to add_cmd.
9191 * gdbcmd.h (maintenancelistlist): Delete declaration.
9192 * cli/cli-cmds.c (maintenancelistlist): Delete.
9193 (init_cmd_lists): Don't initialize it.
9194 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9195
f6684c31
AC
91962003-05-07 Andrew Cagney <cagney@redhat.com>
9197
9198 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9199 "regcache".
9200 (d10v_print_registers_info): Update.
9201 (d10v_dmap_register, d10v_imap_register): Delete functions.
9202 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9203 and "imap_register".
9204 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9205 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9206 * arch-utils.c (generic_remote_translate_xfer_address): Add
9207 "regcache" and "gdbarch" parameters.
9208 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9209 parameter. Change class to multi-arch.
9210 * gdbarch.h, gdbarch.c: Re-generate.
9211 * remote.c (remote_xfer_memory): Use
9212 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9213
e4846b08
JJ
92142003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9215
9216 * infrun.c (prev_pc): Move declaration ahead of proceed().
9217 (proceed): Refresh prev_pc value before resuming.
9218 (stop_stepping): Remove code to refresh prev_pc.
9219
6b71b8ac
KW
92202003-05-06 Kris Warkentin <kewarken@qnx.com>
9221
9222 * nto-tdep.c: Removed stray comment.
9223
47979a4b
KW
92242003-05-06 Kris Warkentin <kewarken@qnx.com>
9225
9226 * i386-nto-tdep.c: Fix old K&R function definitions.
9227 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9228 Also change add_show_from_set() call to add_setshow_cmd().
9229 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9230
00905d52
AC
92312003-05-05 Andrew Cagney <cagney@redhat.com>
9232
9233 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9234 (fprint_dummy_frames): New function.
9235 (maintenance_print_dummy_frames): New function.
9236 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9237 * frame.c (fprint_frame_id): Make global.
9238 * frame.h (fprint_frame_id): Declare.
9239 * Makefile.in (dummy-frame.o): Update dependencies.
9240
b1e29e33
AC
92412003-05-05 Andrew Cagney <cagney@redhat.com>
9242
9243 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9244 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9245 SIZEOF_CALL_DUMMY_WORDS.
9246 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9247 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9248 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9249 CALL_DUMMY_BREAKPOINT_OFFSET.
9250 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9251 CALL_DUMMY_START_OFFSET.
9252 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9253 * gdbarch.h, gdbarch.c: Re-generate.
9254 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9255 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9256 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9257 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9258 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9259 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9260 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9261 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9262 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9263 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9264 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9265 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9266 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9267 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9268 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9269
92702003-05-05 Kris Warkentin <kewarken@qnx.com>
9271
9272 * configure.tgt: Add i[3456]86-*-nto*.
9273 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9274 * nto-tdep.c: New file. Neutrino target support routines.
9275 * nto-tdep.h: New file. Neutrino target header.
9276 * config/tm-qnxnto.h: New file.
9277 * config/i386/i386nto.mt: New file.
9278 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9279
0ce3d317
AC
92802003-05-04 Andrew Cagney <cagney@redhat.com>
9281
9282 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9283 (load_infrun_state): Ditto.
9284 (struct thread_info): Drop "prev_func_name" field.
9285 * thread.c (load_infrun_state): Update.
9286 (save_infrun_state): Update.
9287 * infrun.c (prev_func_name): Delete variable.
9288 (init_wait_for_inferior): Do not clear prev_func_name.
9289 (stop_stepping, keep_going, context_switch): Do not swap
9290 prev_func_name.
9291 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9292 instead of PC_IN_SIGTRAMP.
9293
46654a5b
AC
92942003-05-04 Andrew Cagney <cagney@redhat.com>
9295
9296 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9297 REGISTER_BYTE with register_offset_hack.
9298 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9299 that REGISTER_BYTE is consistent with the regcache.
9300 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9301 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9302
14b08c1b
MK
93032003-05-04 Mark Kettenis <kettenis@gnu.org>
9304
04c8243f
MK
9305 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9306 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9307
14b08c1b
MK
9308 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9309
c7a11e01
JB
93102003-05-03 J. Brobecker <brobecker@gnat.com>
9311
9312 From Thierry Schneider <tpschneider1@yahoo.com>
9313 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9314 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9315 (mi-cmd-symbol.o): Add rule.
9316
7043d8dc
AC
93172003-05-03 Andrew Cagney <cagney@redhat.com>
9318
9319 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9320 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9321 * gdbarch.h, gdbarch.c: Re-generate.
9322 * d10v-tdep.c (d10v_push_dummy_code): New function.
9323 (d10v_gdbarch_init): Set push_dummy_code.
9324 * infcall.c (legacy_push_dummy_code): New function.
9325 (generic_push_dummy_code): New function.
9326 (push_dummy_code): New function.
9327 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9328 instead of dummy_addr, to push_dummy_call. Move call to
9329 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9330 switch.
9331 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9332
92bf2b80
AC
93332003-05-03 Andrew Cagney <cagney@redhat.com>
9334
9335 * disasm.h (print_insn): Declare.
9336 * disasm.c (init_gdb_disassemble_info): New function.
9337 (gdb_disassembly): Call init_gdb_disassemble_info.
9338 (gdb_print_insn): New function.
9339 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9340 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9341 * mcore-tdep.c: Include "disasm.h"
9342 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9343 * d10v-tdep.c: Include "disasm.h".
9344 (display_trace): Call gdb_print_insn, instead of print_insn.
9345 (print_insn): Delete function.
9346 * printcmd.c: Include "disasm.h".
9347 (print_insn): Delete function.
9348 (print_formatted): Call gdb_print_insn, instead of print_insn.
9349 * Makefile.in (printcmd.o): Update dependencies.
9350 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9351
27d94c49
AC
93522003-05-02 Andrew Cagney <cagney@redhat.com>
9353
82de1e5b
AC
9354 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9355 PC_REGNUM, re-indent.
9356 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9357 PC_REGNUM isn't set.
9358
27d94c49
AC
9359 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9360 * gdbarch.h, gdbarch.c: Re-generate.
9361 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9362 register_virtual_size, pc_regnum, or register_bytes.
9363 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9364 (d10v_register_type): Use D10V_PC_REGNUM.
9365 (d10v_print_registers_info, d10v_read_pc): Ditto.
9366 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9367 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9368
a9c0dc7f
DC
93692003-05-02 David Carlton <carlton@bactrian.org>
9370
9371 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9372 the name with mstrsave.
9373
e33d66ec
EZ
93742003-05-02 Elena Zannoni <ezannoni@redhat.com>
9375
9376 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9377 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9378 (host_charset_name, target_charset_name): New vars for use by
9379 set/show commands.
9380 (host_charset_enum, target_charset_enum): New enums for set/show
9381 commands.
9382 (set_charset_sfunc, set_host_charset_sfunc,
9383 set_target_charset_sfunc): New functions.
9384 (set_host_charset, set_target_charset): Make static.
9385 (list_charsets, set_host_charset_command,
9386 set_target_charset_command): Delete functions.
9387 (show_charset_command): Rewrite as....
9388 (show_charset): Hook this up with the set/show command mechanism.
9389 (_initialize_charset): Change names of charsets to match the
9390 set/show enums. Use host_charset_name and target_charset_name.
9391 Use set/show mechanism for charset, host-charset, target-charset
9392 commands. Do not make 'show host-charset' and 'show
9393 target-charset' be aliases of 'show charset'.
9394
9395 * charset.h (set_host_charset, set_target_charset): Don't export,
9396 they are not used outside the file.
9397
2b6fd0d8
AC
93982003-05-01 Andrew Cagney <cagney@redhat.com>
9399
9400 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9401 (gdb_disassembly): Make "di" non static, always initialize and
9402 cleanup. Always use dis_asm_read_memory.
9403 (gdb_dis_asm_read_memory): Delete function.
9404
6ae2f580
AC
94052003-05-01 Andrew Cagney <cagney@redhat.com>
9406
9407 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9408 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9409
810ecf9f
AC
94102003-04-30 Andrew Cagney <cagney@redhat.com>
9411
9412 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9413 "tm_print_insn_info".
9414 (TARGET_PRINT_INSN_INFO): Delete macro.
9415 (dis_asm_read_memory): Delete function declaration.
9416 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9417 (tm_print_insn_info): Delete variable definition.
9418 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9419 * gdbarch.h, gdbarch.c: Re-generate.
9420 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9421 "deprecated_tm_print_insn_info".
9422 * mcore-tdep.c (mcore_dump_insn): Ditto.
9423 * mips-tdep.c (mips_gdbarch_init): Ditto.
9424 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9425 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9426 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9427 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9428 instead of TARGET_PRINT_INSN_INFO, add comment.
9429 * s390-tdep.c (s390_get_frame_info): Instead of
9430 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9431 (s390_check_function_end, s390_is_sigreturn): Ditto.
9432 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9433 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9434 * disasm.c: Include "gdbcore.h".
9435 (_initialize_disasm): New function, initialize
9436 "deprecated_tm_print_insn_info".
9437 (deprecated_tm_print_insn_info): New variable.
9438 (dis_asm_read_memory): Moved from "corefile.c", made static.
9439 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9440 * Makefile.in (disasm.o): Update dependencies.
9441
07020390
AC
94422003-04-30 Andrew Cagney <cagney@redhat.com>
9443
9444 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9445
a9fa03de
AF
94462003-04-29 Adam Fedor <fedor@gnu.org>
9447
9448 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9449 * infcall.c (find_function_addr): Make non-static.
9450 * infcall.h (find_function_addr): Declare.
9451 * Makefile.in (eval.o): Update dependencies.
9452
1bae87b9
AF
94532003-04-28 Adam Fedor <fedor@gnu.org>
9454
9455 * symtab.c (symbol_find_demangled_name): Check for and demangle
9456 ObjC symbols.
9457 (symbol_init_demangled_name): Init for language_objc as well.
9458
0ba6dca9
AC
94592003-04-28 Andrew Cagney <cagney@redhat.com>
9460
9461 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9462 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9463 * gdbarch.h, gdbarch.c: Re-generate.
9464 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9465 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9466 * inferior.h (deprecated_read_fp): Rename read_fp.
9467 (generic_target_read_fp): Delete declaration.
9468 * regcache.c (generic_target_read_fp): Delete function.
9469 (deprecated_read_fp): Replace read_fp, use
9470 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9471 * d10v-tdep.c (d10v_read_fp): Delete function.
9472 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9473
9474 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9475 deprecated_target_read_fp to generic_target_read_fp.
9476 * sh-tdep.c (sh_gdbarch_init): Ditto.
9477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9479 * frv-tdep.c (frv_gdbarch_init): Ditto.
9480
9481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9482 deprecated_fp_regnum.
9483 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9484 * vax-tdep.c (vax_gdbarch_init): Ditto.
9485 * v850-tdep.c (v850_gdbarch_init): Ditto.
9486 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9487 * sh-tdep.c (sh_gdbarch_init): Ditto.
9488 * s390-tdep.c (s390_gdbarch_init): Ditto.
9489 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9490 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9491 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9492 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9494 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9495 * i386-tdep.c (i386_gdbarch_init): Ditto.
9496 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9497 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9498 * frv-tdep.c (frv_gdbarch_init): Ditto.
9499 * cris-tdep.c (cris_gdbarch_init): Ditto.
9500 * avr-tdep.c (avr_gdbarch_init): Ditto.
9501 * arm-tdep.c (arm_gdbarch_init): Ditto.
9502 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9503
9504 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9505 * v850-tdep.c (v850_gdbarch_init): Ditto.
9506 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9507 * sh-tdep.c (sh_gdbarch_init): Ditto.
9508 * s390-tdep.c (s390_gdbarch_init): Ditto.
9509 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9510 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9511 * mips-tdep.c (mips_gdbarch_init): Ditto.
9512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9513 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9514 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9515 * frv-tdep.c (frv_gdbarch_init): Ditto.
9516 * avr-tdep.c (avr_gdbarch_init): Ditto.
9517 * arm-tdep.c (arm_gdbarch_init): Ditto.
9518
9519 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9520 DEPRECATED_FP_REGNUM.
9521 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9522 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9523 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9524 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9525 (sparc32_register_virtual_type): Ditto.
9526 * sh-tdep.c (sh64_frame_chain): Ditto.
9527 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9528 (sh_nofp_frame_init_saved_regs): Ditto.
9529 (sh64_nofp_frame_init_saved_regs): Ditto.
9530 (sh_fp_frame_init_saved_regs): Ditto.
9531 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9532 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9533 * procfs.c (procfs_fetch_registers): Ditto.
9534 (procfs_store_registers): Ditto.
9535 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9536 (store_inferior_registers, fetch_core_registers): Ditto.
9537 (fetch_kcore_registers, clear_regs): Ditto.
9538 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9539 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9540 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9541 * nlm/i386.c (do_status): Ditto.
9542 * mipsv4-nat.c (supply_gregset): Ditto.
9543 * mips-tdep.c: Ditto for comments.
9544 * mips-nat.c (fetch_inferior_registers): Ditto.
9545 (store_inferior_registers, fetch_core_registers): Ditto.
9546 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9547 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9548 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9549 (i386_do_pop_frame, i386_register_type): Ditto.
9550 * hppa-tdep.c (hppa_frame_chain): Ditto.
9551 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9552 (hppa_pop_frame, hppa_read_fp): Ditto.
9553 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9554 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9555 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9556 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9557 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9558 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9559 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9560 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9561 * blockframe.c: Ditto for comments.
9562 * arch-utils.h: Ditto for comments.
9563 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9564 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9565 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9566 * alpha-tdep.h: Ditto for comments.
9567 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9568 (alpha_cannot_store_register): Ditto.
9569 (alpha_push_dummy_frame): Ditto.
9570 * alpha-nat.c (supply_gregset): Ditto.
9571
9572 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9573 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9574 * config/sparc/tm-sparc.h: Update comment.
9575
9576 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9577 deprecated_read_fp instead of TARGET_READ_FP.
9578 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9579 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9580 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9581 deprecated_read_fp instead of read_fp.
9582 * s390-tdep.c (s390_push_arguments): Ditto.
9583 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9584 * frame.h: Ditto in comments.
9585 * frame.c (legacy_get_prev_frame): Ditto.
9586 * dummy-frame.c (dummy_frame_this_id): Ditto.
9587 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9588
d7a27068
AC
95892003-04-28 Andrew Cagney <cagney@redhat.com>
9590
9591 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9592 * gdbarch.h, gdbarch.c: Re-generate.
9593 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9594 * vax-tdep.c (_initialize_vax_tdep): Update.
9595 * v850-tdep.c (_initialize_v850_tdep): Update.
9596 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9597 * s390-tdep.c (_initialize_s390_tdep): Update.
9598 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9599 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9600 * mips-tdep.c (_initialize_mips_tdep): Update.
9601 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9602 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9603 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9604 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9605 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9606 * frv-tdep.c (_initialize_frv_tdep): Update.
9607 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9608 (_initialize_cris_tdep): Update.
9609 * arch-utils.c (legacy_print_insn): Update.
9610 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9611
d2630e69
AF
96122003-04-26 Adam Fedor <fedor@gnu.org>
9613
9614 * linespec.c (decode_objc): New function to decode ObjC calls
9615 (decode_line_1): Check for ObjC calls (using decode_objc)
9616 * Makefile (linespec.o): Update dependencies.
9617
3086aeae
DJ
96182003-04-26 Daniel Jacobowitz <drow@mvista.com>
9619
9620 * breakpoint.h (struct breakpoint_ops): New.
9621 (struct breakpoint): Add ops member.
9622
9623 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9624 (mention): Use new breakpoint ops member.
9625 (set_raw_breakpoint): Initialize ops field to NULL.
9626 (print_exception_catchpoint, print_one_exception_catchpoint)
9627 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9628 (gnu_v3_exception_catchpoint_ops): New.
9629 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9630
1fbec6c3
AF
96312003-04-25 Adam Fedor <fedor@gnu.org>
9632
9633 * Makefile.in (COMMON_OBS): Add objc-lang.o
9634
0ef21242
AC
96352003-04-25 Andrew Cagney <cagney@redhat.com>
9636
9637 * d10v-tdep.c (print_insn): Delete function.
9638 (display_trace): Use TARGET_PRINT_INSN.
9639 (_initialize_d10v_tdep): Do not set tm_print_insn.
9640 (d10v_gdbarch_init): Set print_insn.
9641
f75493ed
AC
96422003-04-25 Andrew Cagney <cagney@redhat.com>
9643
9644 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9645 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9646 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9647 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9648 (nr_dmap_regs, a0_regnum): ... new functions.
9649 (d10v_print_registers_info): Use a0_regnum, use register_size.
9650 (d10v_register_byte): Delete function.
9651 (d10v_register_raw_size): Delete function.
9652 (d10v_register_type): Use a0_regnum.
9653 (d10v_print_registers_info): Use a0_regnum.
9654 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9655 (d10v_gdbarch_init): Do not set register_byte or
9656 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9657 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9658 extract_address.
9659 (trace_command): Use XCALLOC.
9660 (print_insn): Delete reference to tm_print_insn.
9661 (saved_regs_unwinder): Use store_unsigned_integer instead of
9662 store_address.
9663 * frame.h (FRAME_OBSTACK_CALLOC): Define
9664
2202b100
DC
96652003-04-25 David Carlton <carlton@bactrian.org>
9666
9667 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9668
4e45ca2e
AF
96692003-04-24 Adam Fedor <fedor@gnu.org>
9670
9671 * objc-lang.c: Include "valprint.h"
9672 * Makefile.in (objc-lang.o): Update dependencies.
9673
93de3e7f
AF
96742003-04-24 Adam Fedor <fedor@gnu.org>
9675
8ffd9b1b 9676 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9677 architecture dependant compilation and mark as unimplemented
9678 (until they get put in the gdbarch vector).
9679
0f20eeea
DC
96802003-04-23 David Carlton <carlton@bactrian.org>
9681
9682 * cp-support.c (cp_find_first_component): Accept 'operator' in
9683 more locations.
9684
74cfe982
AC
96852003-04-23 Andrew Cagney <cagney@redhat.com>
9686
9687 * infcall.c (call_function_by_hand): Eliminate redundant
9688 indentation. Move "saved_async" and "old_cleanups" to where they
9689 are needed.
8ffd9b1b 9690
52557533
AC
96912003-04-23 Andrew Cagney <cagney@redhat.com>
9692
9693 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9694 and "buffer". Move the "name" code to where it is needed.
9695
158775de
AC
96962003-04-23 Andrew Cagney <cagney@redhat.com>
9697
9698 * infcall.c (call_function_by_hand): Move variables "start_sp",
9699 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9700 code to ON_STACK switch branch.
8ffd9b1b 9701
ebc7896c
AC
97022003-04-23 Andrew Cagney <cagney@redhat.com>
9703
9704 * infcall.c (call_function_by_hand): Make declaration of "i",
9705 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9706 lint.
9707
d727590f
AC
97082003-04-23 Andrew Cagney <cagney@redhat.com>
9709
9710 * infcall.c (call_function_by_hand): Delete variable
9711 "n_method_args". Localize "param_type"'s declaration to the loop
9712 that it is used. Reinstate code assigning to said variable -
9713 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9714 Rationalize code using "param_type".
9715
d585e13a
AC
97162003-04-22 Andrew Cagney <cagney@redhat.com>
9717
9718 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9719 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9720 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9721 to DEPRECATED_PUSH_RETURN_ADDRESS.
9722
051caad9
KB
97232003-04-22 Kevin Buettner <kevinb@redhat.com>
9724
9725 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9726 on the DWARF2 register number prior to fetching a register.
9727
77296879
JB
97282003-04-22 J. Brobecker <brobecker@gnat.com>
9729
9730 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9731 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9732 this macro was always set to 0.
77296879
JB
9733 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9734 considering the fact that this macro was always set to 0.
9735 * hppa-tdep.h (hppa_store_return_value): Likewise.
9736 (hppa_extract_return_value): Likewise.
9737
4252f1df
JB
97382003-04-22 J. Brobecker <brobecker@gnat.com>
9739
9740 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9741 the hppa-pro target only.
9742
14604c6b
JB
97432003-04-21 J. Brobecker <brobecker@gnat.com>
9744
9745 Ongoing multi-arch conversion effort for HP/UX:
9746 * config/pa/tm-hppa.h: Move all macro that are no longer
9747 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9748 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9749
77eb01d1
JB
97502003-04-21 J. Brobecker <brobecker@gnat.com>
9751
9752 * config/pa/tm-hppa.h: Obsolete a section that was only used
9753 for hppa-pro.
9754
61995b3b
JB
97552003-04-21 J. Brobecker <brobecker@gnat.com>
9756
9757 Ongoing multi-arch conversion for HP/UX.
9758 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9759 if already defined (allows hppa64 to stay non-multiarched for now).
9760 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9761
4aa79dcc
AC
97622003-04-21 Andrew Cagney <cagney@redhat.com>
9763
9764 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9765
0f751ff2
AC
97662003-04-21 Andrew Cagney <cagney@redhat.com>
9767
9768 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9769 "i386_num_mmx_regs".
9770
04714b91
AC
97712003-04-21 Andrew Cagney <cagney@redhat.com>
9772
9773 * infcall.c: New file.
9774 * infcall.h: New file.
9775 * valarith.c: Include "infcall.h".
9776 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9777 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9778 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9779 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9780 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9781 (SFILES): Add "infcall.c"
9782 (COMMON_OBS): Add "infcall.o".
9783 (infcall.o): Specify dependencies.
9784 * value.h (call_function_by_hand): Delete declaration.
9785 * inferior.h (run_stack_dummy): Delete declaration.
9786 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9787 (run_stack_dummy): Move to "infcall.c", merged into
9788 call_function_by_hand.
9789 * valops.c (call_function_by_hand): Moved to "infcall.c".
9790 (find_function_addr, value_arg_coerce): Ditto.
9791 (unwindonsignal_p, coerce_float_to_double): Ditto.
9792 (_initialize_valops): Move "set/show coerce-float-to-double", and
9793 "set/show unwindonsignal" commands to "infcall.c".
9794 * v850-tdep.c, target.h: Update comments.
9795 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9796 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9797 (sh64_init_extra_frame_info): Update comments.
9798 * mn10300-tdep.c: Update comments.
9799 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9800 * config/sparc/tm-sparc.h: Update comments.
9801 * breakpoint.h: Update comments.
9802 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9803 * arm-tdep.c: Update comment.
9804
f9d3c2a8
MK
98052003-04-19 Mark Kettenis <kettenis@gnu.org>
9806
c40e1eab
MK
9807 * i386-tdep.c (i386_num_register_names): New variable.
9808 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9809 (MM0_REGNUM): Remove redundant parentheses in define.
9810 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9811 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9812 i386_mxcsr_regnum_p): Remove redundant parentheses.
9813 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9814
94ea66b3
MK
9815 * i386-tdep.c (i386_extract_return_value,
9816 i386_store_return_value): Correct check for availability of
9817 floating-point registers.
9818
54299a1d
MK
9819 * i386-tdep.c (i386_frame_num_args): Remove function.
9820 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9821
c86c27af
MK
9822 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9823 mmx_regnum_to_fp_regnum. Adjust all callers.
9824
f9d3c2a8
MK
9825 * i386-tdep.c (i386_get_longjmp_target): Use
9826 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9827 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9828 extract_address.
9829
94ba74a9
MK
98302003-04-19 Mark Kettenis <kettenis@gnu.org>
9831
9832 * core-regset.c: Update comments to reflect reality. Re-order
9833 includes.
9834 (fetch_core_registers): Use switch instead of if. Remove
9835 redundant prototype.
9836
4074e13c
JB
98372003-04-18 Jim Blandy <jimb@redhat.com>
9838
9839 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9840 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9841
e3ab4aba
RH
98422003-04-17 Richard Henderson <rth@redhat.com>
9843
9844 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9845
627bf7c1
EZ
98462003-04-17 Michael Snyder <msnyder@redhat.com>
9847 Karen Bennet <bennet@redhat.com>
9848
9849 Committed by Elena Zannoni <ezannoni@redhat.com>
9850 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9851
514621a9
EZ
98522003-04-17 Elena Zannoni <ezannoni@redhat.com>
9853
9854 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9855 value if the return type is void.
514621a9 9856
b4acd559
JJ
98572003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9858
9859 * thread-db.c: Reindented.
8ffd9b1b 9860
530b167e 98612003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9862
9863 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9864 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9865 as types.
9866
0a48e7e8
MS
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
8ffd9b1b 9890
ab9fe00e
KB
98912003-04-16 Kevin Buettner <kevinb@redhat.com>
9892
610a3745 9893 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9894 the size of ``long double'' to 16, instead of 8.
9895
e64a344c
MK
98962003-04-16 Mark Kettenis <kettenis@gnu.org>
9897
9898 * i386-linux-nat.c: Add some whitespace to make things more
9899 readable.
9900 (fetch_register, store_register, fetch_inferior_registers,
9901 store_inferior_registers): Get rid of assignment in if-statement.
9902 (store_register): Fix typo in error message.
9903
25d41031
AC
99042003-04-16 Andrew Cagney <cagney@redhat.com>
9905
9906 * utils.c (xmmalloc): Always allocate something, matches
9907 libiberty/xmalloc's semantics.
9908 (xmrealloc, xmcalloc): Ditto.
9909
c50901fd
AC
99102003-04-16 Andrew Cagney <cagney@redhat.com>
9911
9912 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9913 update comments.
9914 (get_frame_type): Initialize unwind and type when needed.
9915 (get_frame_id, frame_register_unwind): Ditto.
9916
f81824a9
AC
99172003-04-16 Andrew Cagney <cagney@redhat.com>
9918
9919 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9920 obsolete.
9921 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9922 * sparcl-stub.c: Obsolete file.
9923 * config/sparc/tm-sparclet.h: Obsolete file.
9924 * sparclet-stub.c: Obsolete file.
9925 * sparclet-rom.c: Obsolete file.
9926 * sparcl-tdep.c: Obsolete file.
9927 * config/sparc/tm-sparclite.h: Obsolete file.
9928 * config/sparc/sparclite.mt: Obsolete file.
9929 * config/sparc/sparclet.mt: Obsolete file.
9930 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9931 sparc86x-*-* obsolete.
9932
9219021c
DC
99332003-04-15 David Carlton <carlton@math.stanford.edu>
9934
9935 * Makefile.in (SFILES): Add cp-namespace.c.
9936 (COMMON_OBS): Add cp-namespace.o.
9937 (block.o): Depend on gdb_obstack_h and cp_support_h.
9938 (buildsym.o): Depend on cp_support_h.
9939 (cp-namespace.o): New.
9940 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9941 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9942 (dwarf2read.o): Depend on cp_support_h.
9943 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9944 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9945 processing_current_namespace.
9946 (read_namespace): Update processing_current_namespace; check for
9947 anonymous namespaces.
9948 (dwarf2_name): New function.
9949 (dwarf2_extension): Ditto.
9950 * cp-support.h: Update copyright, contributors.
9951 Add inclusion guards.
9952 Add opaque declaration for structs obstack, block, symbol.
9953 (struct using_direct): New struct.
9954 Add declarations for cp_find_first_component,
9955 cp_entire_prefix_len, processing_has_namespace_info,
9956 processing_current_namespace, cp_is_anonymous,
9957 cp_add_using_directive, cp_initialize_namespace,
9958 cp_finalize_namespace, cp_set_block_scope,
9959 cp_scan_for_anonymous_namespaces.
9960 * cp-namespace.c: New file.
9961 * cp-support.c: Update copyright.
9962 Include ctype.h, gdb_assert.h, gdbcmd.h.
9963 New variable maint_cplus_cmd_list.
9964 (cp_find_first_component): New function.
9965 (cp_entire_prefix_len, maint_cplus_command)
9966 (first_component_command, _initialize_cp_support): Ditto.
9967 * buildsym.c: Include cp-support.h.
9968 New variable using_list.
9969 (add_symbol_to_list): Check for anonymous namespaces.
9970 (finish_block): Set block's scope.
9971 (start_symtab): Initialize C++ namespace support.
9972 (end_symtab): Finalize C++ namespace support.
9973 * block.h: Add opaque declarations for structs
9974 block_namespace_info, using_direct, and obstack.
9975 Add declarations for block_set_scope and block_set_using.
9976 (struct block): Add 'language_specific' member.
9977 (BLOCK_NAMESPACE): New macro.
9978 * block.c: Include gdb_obstack.h and cp-support.h.
9979 (struct block_namespace_info): New struct.
9980 (block_set_scope): New function.
9981 (block_set_using, block_initialize_namespace): Ditto.
9982
d5a921c9
KB
99832003-04-14 Kevin Buettner <kevinb@redhat.com>
9984
9985 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9986 (locate_base): Return early if there aren't any link map offsets.
9987 (svr4_solib_create_inferior_hook): Warn if shared library support
9988 is unavailable.
9989
d2a52b27
DC
99902003-04-14 David Carlton <carlton@math.stanford.edu>
9991
9992 * symtab.c (symbol_set_names): Add prefix when storing Java names
9993 in hash table. Fix for PR java/1039.
9994
980cae7a
DC
99952003-04-14 David Carlton <carlton@math.stanford.edu>
9996
9997 * symtab.c (symbol_set_names): Rename 'name' arg to
9998 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9999 * symtab.h: Change 'name' argument in declaration of
10000 symbol_set_names to 'linkage_name'.
10001 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10002
e227b13c
AC
100032003-04-14 Andrew Cagney <cagney@redhat.com>
10004
10005 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10006 return the fully sign-extended register value.
10007 (get_frame_pointer): Ditto.
10008 (mips_pop_frame): Initialize "proc_desc" after checking for a
10009 dummy frame.
10010
36712a20
AC
100112003-04-14 Andrew Cagney <cagney@redhat.com>
10012
10013 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10014 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10015 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10016 (mips_push_register): Delete function.
10017 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10018 PUSH_FP_REGNUM.
10019
44ea7b70
JB
100202003-04-14 Jim Blandy <jimb@redhat.com>
10021
10022 * symmisc.c: #include "gdb_regex.h".
10023 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10024 functions.
10025 * maint.c (maintenance_list_command): New function.
10026 (_initialize_maint_cmds): Register the above as commands.
10027 * symtab.h (maintenance_list_symtabs,
10028 maintenance_list_psymtabs): New declarations.
10029 * cli/cli-cmds.c (maintenancelistlist): New variable.
10030 (init_cmd_lists): Initialize it.
10031 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10032 * gdbcmd.h (maintenancelistlist): New declaration.
10033 * Makefile.in (symmisc.o): Update dependencies.
10034
2d0c7962
EZ
100352003-04-14 Elena Zannoni <ezannoni@redhat.com>
10036
10037 * s390-nat.c: Include asm/types.h for addr_t.
10038
1947a811
CV
100392003-04-14 Corinna Vinschen <vinschen@redhat.com>
10040
10041 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10042 actually incoming type.
10043
adb616d7
AC
100442003-04-13 Andrew Cagney <cagney@redhat.com>
10045
10046 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10047 get_next_frame and get_frame_saved_regs.
10048
9b5e151c
AC
100492003-04-13 Andrew Cagney <cagney@redhat.com>
10050
10051 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10052 of gdbarch_num_regs.
10053
ef6e7e13
AC
100542003-04-13 Andrew Cagney <cagney@redhat.com>
10055
10056 * frame.h: Mention what replaced what in "struct frame_info".
10057 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10058 deprecated_update_frame_base_hack and
10059 deprecated_update_frame_pc_hack.
10060 * hppa-tdep.c: Ditto.
10061
61fbb938
DJ
100622003-04-13 Daniel Jacobowitz <drow@mvista.com>
10063
10064 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10065 to read_reg and update its comment. Remove regnum member.
10066 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10067 Don't call read_reg when setting in_reg. Call read_reg to get
10068 the frame base if it's in a register. Return the register number
10069 on the stack instead of in the context. Remove extra arguments
10070 to read_reg.
10071 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10072 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10073 the register number on the expression stack.
10074 (needs_frame_read_reg): Remove extra arguments.
10075
0d53c4c4
DJ
100762003-04-13 Daniel Jacobowitz <drow@mvista.com>
10077
10078 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10079 made non-static.
10080 (execute_stack_op): All callers updated.
10081 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10082 * dwarf2loc.c (find_location_expression): New function.
10083 (dwarf_expr_frame_base): Call it.
10084 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10085 (dwarf2_tracepoint_var_ref): New function, broken out from
10086 locexpr_tracepoint_var_ref.
10087 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10088 Make static.
10089 (loclist_read_variable, loclist_read_needs_frame): New functions.
10090 (loclist_describe_location, loclist_tracepoint_var_ref): New
10091 functions.
10092 (dwarf2_loclist_funcs): New struct location_funcs.
10093 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10094 (struct dwarf2_locexpr_baton): Add comments.
10095 (dwarf2_loclist_funcs): New extern.
10096 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10097 base_address and base_known.
10098 (dwarf_loc_buffer): New variable.
10099 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10100 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10101 (dwarf2_has_info): Initialize dwarf_loc_offset.
10102 (dwarf2_build_psymtabs): Read in .debug_loc.
10103 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10104 DWARF_LOC_SIZE.
10105 (psymtab_to_symtab_1): Likewise. Move base address calculation
10106 here, from...
10107 (dwarf2_get_pc_bounds): ... here. Use the base address from
10108 cu_header.
10109 (dwarf2_symbol_mark_computed): Handle location lists.
10110
6aca59a3
DJ
101112003-04-13 Daniel Jacobowitz <drow@mvista.com>
10112
10113 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10114 if the linkage name demangled successfully.
10115
aca1fcd0
MK
101162003-04-13 Mark Kettenis <kettenis@gnu.org>
10117
97095916
MK
10118 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10119 disassmbly_flavour): Removed.
10120
aca1fcd0
MK
10121 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10122
562a961f
MK
101232003-04-13 Mark Kettenis <kettenis@gnu.org>
10124
10125 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10126
bd013d54
AC
101272003-04-12 Andrew Cagney <cagney@redhat.com>
10128
10129 * frame.h (struct frame_info): Move definition from here ...
10130 * frame.c (struct frame_info): ... to here.
10131
167ef8b1
AC
101322003-04-12 Andrew Cagney <cagney@redhat.com>
10133
10134 * gdbthread.h (save_infrun_state): Delete parameter
10135 "prev_func_start".
10136 (struct thread_info): Delete field "prev_func_start".
10137 (load_infrun_state): Ditto.
10138 * thread.c (load_infrun_state, save_infrun_state): Update.
10139 * infrun.c (prev_func_start): Delete variable.
10140 (context_switch, init_wait_for_inferior): Update.
10141 (stop_stepping, keep_going): Update.
10142
da3331ec
AC
101432003-04-12 Andrew Cagney <cagney@redhat.com>
10144
10145 * gdbarch.sh: Add missing opaque declarations.
10146 * gdbarch.h: Regnerate.
10147 * symtab.h: Add missing opaque declarations.
10148 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10149 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10150 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10151 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10152 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10153 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10154 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10155 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10156 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10157 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10158 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10159 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10160 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10161
18adea3f
AC
101622003-04-11 Andrew Cagney <cagney@redhat.com>
10163
10164 * frame.c (get_frame_id): Return this frame's "id".
10165 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10166 function start.
10167 (legacy_saved_regs_this_id): Replace function body with
10168 internal-error.
10169 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10170 FRAME_OBSTACK_ZALLOC.
10171 (create_new_frame): Mark the frame ID as valid.
10172
2252e863
AO
101732003-04-11 Alexandre Oliva <aoliva@redhat.com>
10174
10175 * Makefile.in (libbfd_h): Added missing setting.
10176 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10177 according to the selected ABI.
10178
a8245ab8
JJ
101792003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10180
10181 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10182
6913c89a
AC
101832003-04-11 Andrew Cagney <cagney@redhat.com>
10184
10185 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10186 SAVED_PC_AFTER_CALL.
10187 * gdbarch.h, gdbarch.c: Regenerate.
10188 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10189 * x86-64-tdep.c (x86_64_init_abi): Update.
10190 * vax-tdep.c (vax_gdbarch_init): Update.
10191 * v850-tdep.c (v850_gdbarch_init): Update.
10192 * sparc-tdep.c (sparc_gdbarch_init): Update.
10193 * sh-tdep.c (sh_gdbarch_init): Update.
10194 * s390-tdep.c (s390_gdbarch_init): Update.
10195 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10196 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10197 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10198 * mips-tdep.c (mips_gdbarch_init): Update.
10199 * mcore-tdep.c (mcore_gdbarch_init): Update.
10200 * m68k-tdep.c (m68k_gdbarch_init): Update.
10201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10202 * ia64-tdep.c (ia64_gdbarch_init): Update.
10203 (ia64_saved_pc_after_call): Update declaration.
10204 * i386ly-tdep.c (i386lynx_init_abi): Update.
10205 * i386-tdep.c (i386_gdbarch_init): Update.
10206 * hppa-tdep.c (hppa_gdbarch_init): Update.
10207 * h8300-tdep.c (h8300_gdbarch_init): Update.
10208 * frv-tdep.c (frv_gdbarch_init): Update.
10209 * cris-tdep.c (cris_gdbarch_init): Update.
10210 * avr-tdep.c (avr_gdbarch_init): Update.
10211 * arm-tdep.c (arm_gdbarch_init): Update.
10212 * alpha-tdep.c (alpha_gdbarch_init): Update.
10213 * ns32knbsd-nat.c (frame_num_args): Update.
10214 * ns32k-tdep.c (umax_frame_num_args): Update.
10215 * mips-tdep.c (mips_init_frame_pc_first): Update.
10216 * infrun.c (step_over_function): Update.
10217 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10218 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10219 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10220 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10221 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10222 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10223 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10224 * arch-utils.c (init_frame_pc_default): Update.
10225 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10226 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10227 declaration.
8ffd9b1b 10228
38edeab8
AC
102292003-04-11 Andrew Cagney <cagney@redhat.com>
10230
10231 * i387-tdep.c: Update copyright.
10232 (i387_to_double): Delete function.
10233 (double_to_i387): Delete function.
10234
81f8a206
AC
102352003-04-10 Andrew Cagney <cagney@redhat.com>
10236
10237 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10238 frame's function's address. Simplify.
10239 (d10v_frame_unwind_cache): Check that the frame's function is
10240 non-zero.
10241
6e691f7a
JB
102422003-04-10 Jim Blandy <jimb@redhat.com>
10243
10244 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10245 call to set_gdbarch_deprecated_push_arguments.
10246
7f78e237
AC
102472003-04-10 Andrew Cagney <cagney@redhat.com>
10248
10249 * frame.c (fprint_frame_id): New function.
10250 (fprint_frame_type, fprint_frame): New function.
10251 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10252 (create_sentinel_frame, get_frame_id): Ditto.
10253 (frame_id_p, frame_id_eq): Ditto.
10254 (frame_id_inner, create_new_frame): Ditto.
10255 (legacy_get_prev_frame, get_prev_frame): Ditto.
10256 (deprecated_update_frame_pc_hack): Ditto.
10257 (frame_register_unwind): Ditto.
10258 (deprecated_update_frame_base_hack): Ditto.
10259
f870b49b
CV
102602003-04-10 Corinna Vinschen <vinschen@redhat.com>
10261
10262 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10263 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10264 frame_chain function.
10265 * Makefile.in: Add dependencies due to above change.
10266
7c86889b
CV
102672003-04-10 Corinna Vinschen <vinschen@redhat.com>
10268
10269 * blockframe.c (legacy_frame_chain_valid): Move call to
10270 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10271 inside_entry_file.
10272
d0a55772
AC
102732003-04-09 Andrew Cagney <cagney@redhat.com>
10274
10275 * frame.h (struct frame_id): Replace "pc" and "base" with
10276 "stack_addr" and "code_addr". Update comments.
10277 (frame_id_build): Update parameter names and comment.
10278 (struct frame_info): Replace "id_p" and "id" with "this_id".
10279 * dummy-frame.c (dummy_frame_this_id): Update.
10280 * breakpoint.c (print_one_breakpoint): Update.
10281 * frame.c (get_frame_id): Update.
10282 (get_frame_base, frame_id_build): Update.
10283 (create_sentinel_frame, legacy_get_prev_frame): Update.
10284 (deprecated_update_frame_base_hack): Update.
10285 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10286 (frame_id_inner): Ditto.
10287
ac16bf07
AC
102882003-04-09 Andrew Cagney <cagney@redhat.com>
10289
10290 * defs.h (gdb_print_host_address): Make "addr" parameter a
10291 pointer constant.
10292 * utils.c (gdb_print_host_address): Update.
10293
366cfc9e
KB
102942003-04-09 Kevin Buettner <kevinb@redhat.com>
10295
10296 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10297 register number for R0 is 0.
10298
cd983b5c
JB
102992003-04-09 J. Brobecker <brobecker@gnat.com>
10300
10301 * frame.h (struct gdbarch): Add opaque structure definition
10302 to avoid a compilation warning on LynxOS 4.0.
10303
d1340264
AC
103042003-04-09 Andrew Cagney <cagney@redhat.com>
10305
10306 * frame.h (struct frame_info): Delete field "pc". Replace
10307 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10308 structure.
10309 * frame.c (frame_pc_unwind): Update.
10310 (create_sentinel_frame): Do not set "pc".
10311 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10312 (get_frame_pc): Call frame_pc_unwind.
10313 (deprecated_update_frame_pc_hack): Update.
10314 (create_new_frame): Use "pc" not "->pc".
10315
90a6fffb
AC
103162003-04-09 Andrew Cagney <cagney@redhat.com>
10317
10318 * frame.c (get_frame_id): Eliminate code updating "frame".
10319 (legacy_get_prev_frame): Ditto.
10320 (get_frame_base): Return id.base directly.
10321 (deprecated_update_frame_base_hack): Update "id.base".
10322 * frame.h (struct frame_info): Delete field "frame".
10323
2fbce691
AC
103242003-04-09 Andrew Cagney <cagney@redhat.com>
10325
10326 * NEWS: Mention that the "Sequent family" is obsolete.
10327 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10328 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10329 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10330 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10331 * config/i386/tm-ptx4.h: Obsolete file.
10332 * config/i386/tm-ptx.h: Obsolete file.
10333 * symm-tdep.c: Obsolete file.
10334 * config/i386/symmetry.mt: Obsolete file.
10335 * config/i386/tm-symmetry.h: Obsolete file.
10336 * symm-nat.c: Obsolete file.
10337 * config/i386/nm-symmetry.h: Obsolete file.
10338 * config/i386/xm-symmetry.h: Obsolete file.
10339 * config/i386/symmetry.mh: Obsolete file.
10340 * config/i386/nm-ptx4.h: Obsolete file.
10341 * config/i386/ptx4.mh: Obsolete file.
10342 * config/i386/ptx.mt: Obsolete file.
10343 * config/i386/ptx.mh: Obsolete file.
10344 * config/i386/xm-ptx4.h: Obsolete file.
10345 * config/i386/xm-ptx.h: Obsolete file.
10346
78c43945
AC
103472003-04-09 Andrew Cagney <cagney@redhat.com>
10348
10349 Obsolete mips*-*-mach3*.
10350 * NEWS: Mention that mips*-*-mach3* is obsolete.
10351 * m3-nat.c: Obsolete file.
10352 * config/nm-m3.h: Obsolete file.
10353 * config/mips/tm-mipsm3.h: Obsolete file.
10354 * config/mips/mipsm3.mt: Obsolete file.
10355 * config/mips/mipsm3.mh: Obsolete file.
10356 * config/mips/xm-mipsm3.h: Obsolete file.
10357 * mipsm3-nat.c: Obsolete file.
10358 * configure.host: Obsolete mips-dec-mach3*.
10359 * configure.tgt: Obsolete mips*-*-mach3*.
10360
f1908289
AC
103612003-04-09 Andrew Cagney <cagney@redhat.com>
10362
10363 * doublest.h: Update copyright.
10364 (deprecated_store_floating, deprecated_extract_floating): Rename
10365 store_floating and extract_floating. Update comments.
10366 * doublest.c: Update copyright.
10367 (extract_floating_by_length): Replace extract_floating.
10368 (store_floating_by_length): Replace store_floating.
10369 (deprecated_extract_floating): New function.
10370 (deprecated_store_floating): New function.
10371 (extract_typed_floating): Call extract_floating_by_length.
10372 (store_typed_floating): Call store_floating_by_length.
10373 * x86-64-tdep.c (x86_64_store_return_value): Update.
10374 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10375 (sh64_extract_return_value): Update.
10376 (sh_sh4_register_convert_to_virtual): Update.
10377 (sh_sh64_register_convert_to_virtual): Update.
10378 (sh_sh4_register_convert_to_raw): Update.
10379 (sh_sh64_register_convert_to_raw): Update.
10380 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10381 (rs6000_register_convert_to_raw): Update.
10382 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10383 (ia64_register_convert_to_raw): Update.
10384 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10385 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10386 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10387 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10388 (alpha_register_convert_to_raw): Update.
10389
4443bd83
AC
103902003-04-08 Andrew Cagney <cagney@redhat.com>
10391
10392 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10393 * gdbarch.h, gdbarch.c: Re-generate.
10394 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10395 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10396 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10397 conditionally, use frame_pc_unwind as an alternative. Add
10398 comments.
10399 * arch-utils.c (init_frame_pc_default): Only call
10400 SAVED_PC_AFTER_CALL when available.
10401
c0236d92
EZ
104022003-04-08 Elena Zannoni <ezannoni@redhat.com>
10403
fbe586ae 10404 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10405 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10406 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10407 (start_remote): Ditto.
10408 (handle_inferior_event): Ditto.
10409 (save_inferior_status): Ditto.
10410 (restore_inferior_status): Ditto.
10411 * infcmd.c (attach_command): Ditto.
10412 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10413 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10414 * alpha-tdep.c (heuristic_proc_start): Ditto.
10415 * mips-tdep.c (heuristic_proc_start): Ditto.
10416 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10417 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10418 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10419 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10420 * remote-vx.c (vx_create_inferior): Ditto.
10421
104222003-04-08 Elena Zannoni <ezannoni@redhat.com>
10423
10424 * infrun.c (stop_soon_quietly): Make it an enum, to better
10425 override the default behavior of handle_inferior_event.
10426 (clear_proceed_status): Update uses of stop_soon_quietly to
10427 reflect that it is now an enum.
10428 (start_remote): Ditto.
10429 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10430 is set to handle the new GNU/Linux kernel behavior for
10431 attach/sigstop. Update uses of stop_soon_quietly.
10432 * inferior.h (enum stop_kind): New enum.
10433 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10434 Reset normal handle_inferior_event behavior, afterwards.
10435 * fork-child.c (startup_inferior): Update.
10436 * alpha-tdep.c (heuristic_proc_start): Update.
10437 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10438 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10439 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10440 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10441 * remote-vx.c (vx_create_inferior): Update.
10442 * mips-tdep.c (heuristic_proc_start): Update.
10443
1211bce3
EZ
104442003-04-07 Elena Zannoni <ezannoni@redhat.com>
10445
10446 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10447 be freed more than once, causing wild memory corruptions.
1211bce3 10448 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10449 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10450 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10451 with the "core" target.
1211bce3 10452
f0ef6b29
KB
104532003-04-07 Kevin Buettner <kevinb@redhat.com>
10454
10455 * mips-tdep.c (mips_print_fp_register): New function, created from
10456 do_fp_register_row(). Registers are now (also) printed as hex.
10457 Only one register is printed per row.
10458 (mips_print_register, do_fp_register_row): Print floating point
10459 registers with mips_print_fp_register().
10460
8cf71652
AC
104612003-04-06 Andrew Cagney <cagney@redhat.com>
10462
5e488a7b
AC
10463 * valprint.h (inspect_it): Add extern declaration.
10464 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10465 (selectors_info, classes_info): Ditto.
10466 (find_objc_msgcall): Fix indentation.
10467 (objc_printstr): Delete extern declarations.
10468
8cf71652
AC
10469 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10470
e6ba3bc9
AC
104712003-04-06 Andrew Cagney <cagney@redhat.com>
10472
10473 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10474 Update comment.
10475 * frame.c (legacy_saved_regs_this_id): Update.
10476 (legacy_get_prev_frame): Update.
10477 * xstormy16-tdep.c: Update comment.
10478 * sparc-tdep.c (sparc_frame_chain): Update comment.
10479 * blockframe.c (legacy_frame_chain_valid): Update.
10480
55e1d7e7
AC
104812003-04-06 Andrew Cagney <cagney@redhat.com>
10482
996179ee
AC
10483 * valprint.c (val_print_type_code_int): Delete #ifdef
10484 PRINT_TYPELESS_INTEGER code.
10485
55e1d7e7
AC
10486 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10487 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10488 multi-arch definition.
10489 * gdbarch.h: Re-generate.
10490
43bd9a9e
AC
104912003-04-05 Andrew Cagney <cagney@redhat.com>
10492
10493 Eliminate FRAME_FIND_SAVED_REGS.
10494 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10495 Change FSR parameter to a pointer.
10496 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10497 Assume FSR parameter is a pointer.
10498 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10499 Make fsr a pointer.
10500 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10501 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10502 saved_regs a pointer.
10503 (hppa_frame_saved_pc): Ditto.
10504 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10505 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10506 pointer.
10507 (restore_pc_queue): Make fsr a pointer.
10508 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10509 (hppa_frame_chain): Make saved_regs a pointer, call
10510 hppa_frame_init_saved_regs.
10511 * sparc-tdep.c: Include "gdb_assert.h".
10512 (sparc_frame_find_saved_regs): Replace internal_error with
10513 gdb_assert.
10514 * remote-vxsparc.c (vx_read_register): Delete reference to
10515 FRAME_FIND_SAVED_REGS.
10516 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10517 * gdbarch.h: Regenerate.
10518 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10519 (deprecated_get_frame_saved_regs): Delete declaration.
10520 (struct frame_saved_regs): Delete definition.
10521 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10522 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10523 (hppa_frame_find_saved_regs): Delete declaration.
10524 (FRAME_FIND_SAVED_REGS): Delete macro.
10525 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10526 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10527 FRAME_FIND_SAVED_REGS in comment.
10528
be41e9f4
AC
105292003-04-05 Andrew Cagney <cagney@redhat.com>
10530
10531 * frame.c (frame_func_unwind, get_frame_func): New functions.
10532 * frame.h (get_frame_func, frame_func_unwind): Declare.
10533 (struct frame_info): Add field "prev_func" for caching the
10534 previous frame's function address.
10535 * arm-tdep.c (arm_frameless_function_invocation): Combine
10536 get_pc_function_start and get_frame_pc into get_frame_func.
10537 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10538 (sh64_nofp_frame_init_saved_regs): Ditto.
10539 * s390-tdep.c (s390_function_start): Ditto.
10540 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10541 (rs6000_frameless_function_invocation): Ditto.
10542 (rs6000_frame_saved_pc): Ditto.
10543 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10544 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10545 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10546 (i386_frame_init_saved_regs): Ditto.
10547 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10548 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10549 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10550 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10551 * blockframe.c (frameless_look_for_prologue): Ditto.
10552
a01dd7cc
AC
105532003-04-05 Andrew Cagney <cagney@redhat.com>
10554
10555 * frame.c (legacy_get_prev_frame): Link prev to next at the
10556 function start. Update comments.
10557
5e5592e6
AC
105582003-04-05 Andrew Cagney <cagney@redhat.com>
10559
10560 * frame.c (get_frame_id): Update comment.
10561 (legacy_get_prev_frame): Update comment.
10562 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10563 * gdbarch.h: Regenerate.
10564 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10565 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10566
6fba5002
AC
105672003-04-05 Andrew Cagney <cagney@redhat.com>
10568
10569 * stack.c (print_frame_info): Use get_frame_pc.
10570
7df05f2b
AC
105712003-04-04 Andrew Cagney <cagney@redhat.com>
10572
10573 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10574 the frame's type from the unwinder.
10575 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10576 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10577 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10578 (get_frame_base_address): Use get_frame_type.
10579 (get_frame_locals_address, get_frame_args_address): Ditto.
10580 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10581 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10582 (struct frame_info): Add comment explaining why the frame contains
10583 a "type" field.
10584 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10585 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10586 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10587 NORMAL_FRAME.
10588 * frame-unwind.h: Include "frame.h".
10589 (struct frame_unwind): Add "type" field.
10590 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10591
11889732
AC
105922003-04-04 Andrew Cagney <cagney@redhat.com>
10593
10594 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10595 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10596 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10597 get_frame_base.
10598 (d10v_unwind_dummy_id): Use frame_id_build.
10599 * frame.c (find_frame_sal): Use get_frame_pc.
10600 (create_new_frame): Use deprecated_update_frame_pc_hack and
10601 deprecated_update_frame_base_hack.
10602 (create_sentinel_frame): Add comment about ->pc going away.
10603 (get_prev_frame): Add comment about ->pc going away.
10604 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10605 frame_id_build, deprecated_update_frame_pc_hack and
10606 deprecated_update_frame_base_hack.
10607 (select_frame): Use get_frame_pc.
10608 (legacy_saved_regs_this_id): Use frame_id_build.
10609
50c46a0d
EZ
106102003-04-04 Elena Zannoni <ezannoni@redhat.com>
10611
fbe586ae
RH
10612 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10613 signed integer case.
10614 (classify_argument): Handle enumerations and references.
50c46a0d 10615
50bbdbd9
AC
106162003-04-04 Andrew Cagney <cagney@redhat.com>
10617
10618 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10619 ID to NULL.
10620
36018d2e
AF
106212003-04-01 Adam Fedor <fedor@gnu.org>
10622
10623 * gdb/objc-lang.c (selectors_info): Replace calls to
10624 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10625 SYMBOL_NATURAL_NAME.
10626 (classes_info, find_methods): Likewise.
10627
35cec841
KB
106282003-04-03 Kevin Buettner <kevinb@redhat.com>
10629
10630 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10631 ``mach'' to the value determined by bfd_default_set_arch_mach().
10632
43136899
BR
106332003-04-02 Bob Rossi <bob_rossi@cox.net>
10634
10635 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10636 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10637 (mi-cmd-file.o): Update dependencies.
10638
040b99fd
KB
106392003-04-01 Kevin Buettner <kevinb@redhat.com>
10640
10641 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10642 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10643
9a3d7dfd
AF
106442003-04-01 Adam Fedor <fedor@gnu.org>
10645
10646 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10647 * language.h (struct language_defn): Add la_demangle.
10648 (language_demangle): Declare.
10649 * language.c (language_demangle): New function.
10650 (unk_lang_demangle): Likewise.
10651 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10652 Add ukn_lang_demangle.
9a3d7dfd 10653 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10654 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10655 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10656 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10657 * jv-lang.c (java_demangle): New function
10658 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10659 * objc-lang.c (objc_demangle): Add options argument
10660 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10661 * maint.c (maintenance_demangle): Replace switch with
10662 call to language_demangle.
10663 * utils.c (fprintf_symbol_filtered): Likewise.
10664
5e074003
AC
106652003-04-01 Andrew Cagney <cagney@redhat.com>
10666
10667 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10668 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10669 PRINT_TYPELESS_INTEGER.
10670 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10671 PUSH_RETURN_ADDRESS.
10672
270cb5d6
AC
106732003-04-01 Andrew Cagney <cagney@redhat.com>
10674
10675 * Makefile.in (d10v-tdep.o): Update dependencies.
10676 * d10v-tdep.c: Include "frame-base.h".
10677 (d10v_frame_unwind): Make constant.
10678 (d10v_frame_base_address): New function.
10679 (d10v_frame_base): New variable.
10680 (d10v_gdbarch_init): Set frame_base default.
10681 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10682 comment for base.
10683 (d10v_frame_unwind_cache): Set and use "prev_sp".
10684 (d10v_frame_this_id): Use the previous frame's inner most stack
10685 address and this frame's func address for the frame ID. Use
10686 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10687
6bfb3e36
AC
106882003-04-01 Andrew Cagney <cagney@redhat.com>
10689
10690 * frame.h (get_frame_locals_address, get_frame_args_address):
10691 Refer to the base address, instead of the address of the first
10692 local or parameter.
8ffd9b1b 10693
da62e633
AC
106942003-04-01 Andrew Cagney <cagney@redhat.com>
10695
10696 Add frame debug info addresses:
10697 * frame-base.c: New file.
10698 * frame-base.h: New file.
10699 * frame.h (struct frame_base): Add opaque declaration.
10700 (get_frame_base): Update comment.
10701 (get_frame_base_address): Declare.
10702 (get_frame_locals_address): Declare.
10703 (get_frame_args_address): Declare.
10704 (struct frame_info): Add "base" and "base_cache". Update
10705 comments on the unwinder.
10706 * frame.c: Include "frame-base.h".
10707 (get_frame_locals_address): New function.
10708 (get_frame_base_address): New function.
10709 (get_frame_args_address): New function.
10710 * findvar.c (read_var_value): Use get_frame_locals_address and
10711 get_frame_args_address.
10712 * stack.c (frame_info): Use get_frame_locals_address and
10713 get_frame_args_address.
10714 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10715 moved to "frame-base.c".
10716 * printcmd.c (print_frame_nameless_args): Ditto.
10717 * symtab.h (address_class): Update comments.
10718 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10719 get_frame_base_address.
10720 * dwarf2expr.c (execute_stack_op): Ditto.
10721 * Makefile.in (frame_base_h): Define.
10722 (frame.o): Update dependencies.
10723 (frame-base.o): Add dependencies.
10724 (SFILES): Add frame-base.c.
10725 (COMMON_OBS): Add frame-base.o.
10726
3d30e9c2
AC
107272003-04-01 Andrew Cagney <cagney@redhat.com>
10728
10729 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10730 CALL_DUMMY_LENGTH): Ditto.
10731 * gdbarch.c: Re-generate.
10732 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10733 (CALL_DUMMY_LENGTH): Delete macro.
10734 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10735 * arm-tdep.c (arm_gdbarch_init): Ditto.
10736 * avr-tdep.c (avr_gdbarch_init): Ditto.
10737 * cris-tdep.c (cris_gdbarch_init): Ditto.
10738 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10739 * frv-tdep.c (frv_gdbarch_init): Ditto.
10740 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10741 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10742 * i386-tdep.c (i386_gdbarch_init): Ditto.
10743 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10745 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10746 * mips-tdep.c (mips_gdbarch_init): Ditto.
10747 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10748 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10749 * s390-tdep.c (s390_gdbarch_init): Ditto.
10750 * sh-tdep.c (sh_gdbarch_init): Ditto.
10751 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10752 * v850-tdep.c (v850_gdbarch_init): Ditto.
10753 * vax-tdep.c (vax_gdbarch_init): Ditto.
10754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10755
ce0c7262
CV
107562003-04-01 Corinna Vinschen <vinschen@redhat.com>
10757
10758 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10759
73dd234f
AC
107602003-04-01 Andrew Cagney <cagney@redhat.com>
10761
10762 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10763 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10764 * gdbarch.h, gdbarch.c: Re-generate.
10765 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10766 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10767 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10768 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10769 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10770 * infcmd.c (run_stack_dummy): Simplify assuming
10771 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10772 * infrun.c (handle_inferior_event): Ditto.
10773 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10774 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10775 * arm-tdep.c (arm_gdbarch_init): Ditto.
10776 * avr-tdep.c (avr_gdbarch_init): Ditto.
10777 * cris-tdep.c (cris_gdbarch_init): Ditto.
10778 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10779 * frv-tdep.c (frv_gdbarch_init): Ditto.
10780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10781 * i386-tdep.c (i386_gdbarch_init): Ditto.
10782 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10784 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10786 * mips-tdep.c (mips_gdbarch_init): Ditto.
10787 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10788 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10789 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10790 * s390-tdep.c (s390_gdbarch_init): Ditto.
10791 * sh-tdep.c (sh_gdbarch_init): Ditto.
10792 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10793 * v850-tdep.c (v850_gdbarch_init): Ditto.
10794 * vax-tdep.c (vax_gdbarch_init): Ditto.
10795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10796
97606a13
DJ
107972003-04-01 Daniel Jacobowitz <drow@mvista.com>
10798
10799 * symfile.c (symfile_relocate_debug_section): Update call to
10800 bfd_simple_get_relocated_section_contents.
10801
e8ab51f7
AC
108022003-03-31 Andrew Cagney <cagney@redhat.com>
10803
10804 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10805 * gdbarch.h, gdbarch.c: Regenerate.
10806 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10807 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10808 available.
10809 * frame.h (generic_fix_call_dummy): Delete declaration.
10810 * dummy-frame.h: Update comment.
10811 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10813 fix_call_dummy.
10814 * sh-tdep.c (sh_gdbarch_init): Ditto.
10815 * s390-tdep.c (s390_gdbarch_init): Ditto.
10816 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10817 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10819 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10820 * i386-tdep.c (i386_gdbarch_init): Ditto.
10821 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10822 * frv-tdep.c (frv_gdbarch_init): Ditto.
10823 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10824 * cris-tdep.c (cris_gdbarch_init): Ditto.
10825 * avr-tdep.c (avr_gdbarch_init): Ditto.
10826 * arm-tdep.c (arm_gdbarch_init): Ditto.
10827
018d1b48
JB
108282003-03-31 J. Brobecker <brobecker@gnat.com>
10829
10830 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10831 (INIT_FRAME_AP): Likewise.
10832 (EXTRA_FRAME_INFO): Likewise.
10833
e9a2674e
AC
108342003-03-31 Andrew Cagney <cagney@redhat.com>
10835
10836 * gdbarch.sh: Include "symfile.h".
10837 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10838 * gdbarch.h, gdbarch.c: Re-generate.
10839 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10841 call_dummy_address, the default is at entry_point_address.
10842 * v850-tdep.c (v850_gdbarch_init): Ditto.
10843 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10844 * sh-tdep.c (sh_gdbarch_init): Ditto.
10845 * s390-tdep.c (s390_gdbarch_init): Ditto.
10846 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10848 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10849 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10850 * i386-tdep.c (i386_gdbarch_init): Ditto.
10851 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10852 * frv-tdep.c (frv_gdbarch_init): Ditto.
10853 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10854 * cris-tdep.c (cris_gdbarch_init): Ditto.
10855 * arm-tdep.c (arm_gdbarch_init): Ditto.
10856
e8a8712a
AC
108572003-03-31 Andrew Cagney <cagney@redhat.com>
10858
10859 * gdbarch.sh (CALL_DUMMY_P): Delete.
10860 * gdbarch.h, gdbarch.c: Re-generate.
10861 * inferior.h (CALL_DUMMY_P): Delete macro.
10862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10863 * vax-tdep.c (vax_gdbarch_init): Update.
10864 * v850-tdep.c (v850_gdbarch_init): Update.
10865 * sparc-tdep.c (sparc_gdbarch_init): Update.
10866 * sh-tdep.c (sh_gdbarch_init): Update.
10867 * s390-tdep.c (s390_gdbarch_init): Update.
10868 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10869 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10870 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10871 * mips-tdep.c (mips_gdbarch_init): Update.
10872 * mcore-tdep.c (mcore_gdbarch_init): Update.
10873 * m68k-tdep.c (m68k_gdbarch_init): Update.
10874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10875 * ia64-tdep.c (ia64_gdbarch_init): Update.
10876 * i386-tdep.c (i386_gdbarch_init): Update.
10877 * h8300-tdep.c (h8300_gdbarch_init): Update.
10878 * frv-tdep.c (frv_gdbarch_init): Update.
10879 * d10v-tdep.c (d10v_gdbarch_init): Update.
10880 * cris-tdep.c (cris_gdbarch_init): Update.
10881 * breakpoint.c (deprecated_frame_in_dummy): Update.
10882 * avr-tdep.c (avr_gdbarch_init): Update.
10883 * alpha-tdep.c (alpha_gdbarch_init): Update.
10884 * arm-tdep.c (arm_gdbarch_init): Update.
10885 * dummy-frame.c (dummy_frame_this_id): Update comments.
10886 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10887 * frame.c (legacy_get_prev_frame): Ditto.
10888 * valops.c (call_function_by_hand): Delete function.
10889 (hand_function_call): Rename to call_function_by_hand
10890
ed234cf8
AC
108912003-03-30 Andrew Cagney <cagney@redhat.com>
10892
10893 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10894 * value.h (struct value): Update comment.
ed234cf8 10895
06c77151
AC
108962003-03-30 Andrew Cagney <cagney@redhat.com>
10897
6c2b5168
AC
10898 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10899 D10V_FP_REGNUM.
10900 (d10v_gdbarch_init): Do not set fp_regnum.
10901
06c77151
AC
10902 * frame.c (get_frame_base): Force ID initialization.
10903 (get_prev_frame): Move computation of the frame ID from here ...
10904 (get_frame_id): ... to here.
10905 (legacy_get_prev_frame): Mark the frame ID as valid.
10906 * frame.h (struct frame_info): Add field "id_p".
10907
97a1a11c
MK
109082003-03-30 Mark Kettenis <kettenis@gnu.org>
10909
10910 * i386-tdep.c (i386_store_struct_return): Removed.
10911 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10912
6c0e89ed
AC
109132003-03-30 Andrew Cagney <cagney@redhat.com>
10914
10915 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10916 * gdbarch.h, gdbarch.c: Regenerate.
10917 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10919 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10920 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10921 * i386-tdep.c (i386_gdbarch_init): Ditto.
10922 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10923 * cris-tdep.c (cris_gdbarch_init): Ditto.
10924 * vax-tdep.c (vax_gdbarch_init): Ditto.
10925 * s390-tdep.c (s390_gdbarch_init): Ditto.
10926 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10927 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10928 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10929 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10930 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10931 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10932 * sparc-tdep.c (sparc_gdbarch_init): Update.
10933 * sh-tdep.c (sh_gdbarch_init): Update.
10934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10935 * mips-tdep.c (mips_gdbarch_init): Update.
10936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10937 * ia64-tdep.c (ia64_gdbarch_init): Update.
10938 * frv-tdep.c (frv_gdbarch_init): Update.
10939 * avr-tdep.c (avr_gdbarch_init): Update.
10940 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10941 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10942 instead of when push_dummy_call is not available.
8ffd9b1b 10943
f7dd6af2
AC
109442003-03-30 Andrew Cagney <cagney@redhat.com>
10945
10946 * infttrace.c: Include "gdbthread.h".
10947 (parent_attach_all): Fix function signature.
10948 (call_ptrace): Update call.
10949 * Makefile.in (infttrace.o): Update dependencies.
10950
28f617b3
AC
109512003-03-30 Andrew Cagney <cagney@redhat.com>
10952
10953 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10954 PUSH_RETURN_ADDRESS.
10955 * gdbarch.h, gdbarch.c: Regenerate.
10956 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10957 * x86-64-tdep.c (x86_64_init_abi): Update.
10958 * v850-tdep.c (v850_gdbarch_init): Update.
10959 * sparc-tdep.c (sparc_gdbarch_init): Update.
10960 * sh-tdep.c (sh_gdbarch_init): Update.
10961 * s390-tdep.c (s390_gdbarch_init): Update.
10962 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10963 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10964 * mips-tdep.c (mips_gdbarch_init): Update.
10965 * mcore-tdep.c (mcore_gdbarch_init): Update.
10966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10967 * ia64-tdep.c (ia64_gdbarch_init): Update.
10968 * i386-tdep.c (i386_gdbarch_init): Update.
10969 * h8300-tdep.c (h8300_gdbarch_init): Update.
10970 * frv-tdep.c (frv_gdbarch_init): Update.
10971 * cris-tdep.c (cris_gdbarch_init): Update.
10972 * avr-tdep.c (avr_gdbarch_init): Update.
10973 * arm-tdep.c (arm_gdbarch_init): Update.
10974 * valops.c (hand_function_call): Update.
10975
4d628cd7
AC
109762003-03-29 Andrew Cagney <cagney@redhat.com>
10977
10978 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10979 sizeof_call_dummy_words.
10980 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10981 define.
10982 * gdbarch.h: Regenerate.
8ffd9b1b 10983
65e82032
AC
109842003-03-29 Andrew Cagney <cagney@redhat.com>
10985
10986 * infttrace.h: New file.
10987 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10988 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10989 (hpread_read_doc_function_type): Detect an initialized type1.
10990 (hpread_quick_traverse): Initialize mod_name_string.
10991 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10992 (som_solib_get_solib_by_pc): Declare.
10993 (so_lib_thread_start_addr): Declare.
10994 (no_shared_libraries): Declare.
10995 * somread.c (init_import_symbols): Make static. Add forward
10996 declaration.
10997 * config/pa/nm-hppah.h: Include "infttrace.h" for
10998 parent_attach_all.
10999 (hppa_insert_hw_watchpoint): Declare.
11000 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11001 * hppah-nat.c: Include "gdb_string.h".
11002 (parent_attach_all): Delete extern declaration, moved to
11003 "infttrace.h".
11004 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11005 int.
11006 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11007 * Makefile.in (infttrace_h): Define.
11008 (hpread.o): Update dependencies.
11009 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11010 * hppa-hpux-tdep.c: Include "gdb_string.h".
11011 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11012 * infrun.c (handle_inferior_event): Always initialize
11013 stepped_after_stopped_by_watchpoint. Add default and remove
11014 fallthrough in switch statement.
11015 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11016 parameter to int.
11017 (hppa_remove_hw_watchpoint): Ditto.
11018
2c3bbe77
AC
110192003-03-29 Andrew Cagney <cagney@redhat.com>
11020
11021 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11022 offset.
11023
2dd604e7
RE
110242003-03-29 Richard Earnshaw <rearnsha@arm.com>
11025
11026 * arm-tdep.c (arm_push_arguments): Delete.
11027 (struct stack_item): New type.
11028 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11029 (arm_store_struct_return): Delte.
11030 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11031 arm_push_arguments or arm_store_struct_return.
11032
e8933a55
AC
110332003-03-28 Andrew Cagney <cagney@redhat.com>
11034
11035 * Makefile.in (d10v-tdep.o): Update dependencies.
11036 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11037 * d10v-tdep.c: Include "remote.h".
11038 (target_resume_hook): Delete extern declaration.
11039 (target_wait_loop_hook): Ditto.
11040 (tdisassemble_command): Eliminate assignment in "if" conditional.
11041 (d10v_ts2_register_sim_regno): Eliminate call to
11042 legacy_register_sim_regno.
11043 (d10v_ts3_register_sim_regno): Ditto.
11044
6949171e
JJ
110452003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11046
11047 * thread.c: Reindented.
11048 * lin-lwp.c: Ditto.
11049 * linux-proc.c: Ditto.
11050
98c7071f
BR
110512003-03-28 Bob Rossi <bob_rossi@cox.net>
11052
fbe586ae 11053 * MAINTAINERS (write after approval): Add myself.
98c7071f 11054
5edc9ca6
TR
110552003-03-27 Theodore A. Roth <troth@openavr.org>
11056
11057 * objc-exp.y: Add missing semi-colons.
11058
378bfd1b
AC
110592003-03-27 Andrew Cagney <cagney@redhat.com>
11060
11061 * regcache.c (write_sp): Delete function and references.
11062 * inferior.h (write_sp): Delete declaration.
11063 * valops.c (hand_function_call): Replace write_sp with
11064 TARGET_WRITE_SP.
11065 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11066 (sparc_pop_frame): Ditto.
8ffd9b1b 11067
56056df7
AC
110682003-03-27 Andrew Cagney <cagney@redhat.com>
11069
11070 * NEWS: Mention removal of support for hppa*-*-bsd* and
11071 hppa*-*-osf* natives, and hppa*-*-pro* target.
11072 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11073 * config/pa/xm-pa.h: Obsolete file.
11074 * config/pa/xm-hppab.h: Obsolete file.
11075 * config/pa/nm-hppab.h: Obsolete file.
11076 * config/pa/tm-hppab.h: Obsolete file.
11077 * config/pa/tm-hppao.h: Obsolete file.
11078 * config/pa/nm-hppao.h: Obsolete file.
11079 * config/pa/tm-pro.h: Obsolete file.
11080 * config/pa/hppaosf.mt: Obsolete file.
11081 * config/pa/hppaosf.mh: Obsolete file.
11082 * config/pa/hppapro.mt: Obsolete file.
11083 * config/pa/hppabsd.mt: Obsolete file.
11084 * config/pa/hppabsd.mh: Obsolete file.
11085 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11086 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11087 hppa*-*-osf*.
11088
5873a88d
AC
110892003-03-27 Andrew Cagney <cagney@redhat.com>
11090
11091 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11092 push_arguments. Don't set push_return_address or write_sp.
11093 (d10v_push_dummy_call): Replace d10v_push_arguments.
11094 (d10v_push_return_address, d10v_write_sp): Delete function,
11095 handled by push_dummy_call.
11096
b81774d8
AC
110972003-03-26 Andrew Cagney <cagney@redhat.com>
11098
11099 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11100 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11101 regcache and dummy_addr parameters.
11102 * gdbarch.h, gdbarch.c: Re-generate.
11103 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11104 available; assume it will handle stack alignment and return
11105 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11106 legacy_push_arguments.
11107 (legacy_push_arguments): Rename default_push_arguments.
11108 * value.h (legacy_push_arguments): Rename default_push_arguments.
11109 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11110 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11111 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11112 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11113 * config/i386/tm-symmetry.h: Update.
11114 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11115 * x86-64-tdep.c (x86_64_init_abi): Update.
11116 * v850-tdep.c (v850_gdbarch_init): Update.
11117 * sparc-tdep.c (sparc_gdbarch_init): Update.
11118 * sh-tdep.c (sh_gdbarch_init): Update.
11119 * s390-tdep.c (s390_gdbarch_init): Update.
11120 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11121 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11122 * mips-tdep.c (mips_gdbarch_init): Update.
11123 * mcore-tdep.c (mcore_gdbarch_init): Update.
11124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11125 * ia64-tdep.c (ia64_gdbarch_init): Update.
11126 * i386-tdep.c (i386_gdbarch_init): Update.
11127 * hppa-tdep.c (hppa_gdbarch_init): Update.
11128 * h8300-tdep.c (h8300_gdbarch_init): Update.
11129 * frv-tdep.c (frv_gdbarch_init): Update.
11130 * d10v-tdep.c (d10v_gdbarch_init): Update.
11131 * cris-tdep.c (cris_gdbarch_init): Update.
11132 * avr-tdep.c (avr_gdbarch_init): Update.
11133 * arm-tdep.c (arm_gdbarch_init): Update.
11134 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11135 * alpha-tdep.c (alpha_gdbarch_init): Update.
11136
f541410f
DJ
111372003-03-26 Daniel Jacobowitz <drow@mvista.com>
11138
11139 * signals/signals.c (do_target_signal_to_host): Correct realtime
11140 signal range test.
11141
69f567ae
DJ
111422003-03-26 Daniel Jacobowitz <drow@mvista.com>
11143
11144 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11145 (struct sal_chain, map_catch_names): Remove.
11146 (catch_exception_command_1): Don't call
11147 handle_gnu_4_16_catch_command.
11148
d5d14a5a
DJ
111492003-03-26 Daniel Jacobowitz <drow@mvista.com>
11150
11151 From Mark Dettinger <dettinge@de.ibm.com>:
11152 * dwarf2cfi.c (read_2u): Increment pointer by two.
11153
bdd73e22
DJ
111542003-03-26 Daniel Jacobowitz <drow@mvista.com>
11155
11156 * signals/signals.c: Fix typos in last change.
11157
960cb555
DJ
111582003-03-26 Daniel Jacobowitz <drow@mvista.com>
11159
11160 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11161 not already defined. Use __SIGRTMIN if available.
11162 (target_signal_from_host): Remove SIGRTMIN block.
11163 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11164 the signal is within the realtime range.
11165
f636b87d
AF
111662003-03-25 Adam Fedor <fedor@gnu.org>
11167
11168 * Makefile.in (infrun.o): Add $(language_h)
11169 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11170 for language specific trampolines.
11171 * language.h (struct language_defn): Add skip_trampoline.
11172 (skip_language_trampoline): Declare.
11173 * language.c (unk_lang_trampoline, skip_language_trampoline):
11174 New functions.
11175 (unknown_language_defn, auto_language_defn, local_language_defn):
11176 Add ukn_lang_trampoline.
11177 * ada-lang.c (ada_language_defn): Add NULL for language
11178 specific skip_trampoline.
11179 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11180 scm-lang.c: Likewise.
11181 * objc-lang.c (objc_skip_trampoline): New function.
11182 (objc_language_defn): Add objc_skip_trampoline.
11183
28f617b3 111842003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11185
11186 * frame.c (get_prev_frame): Delay validating a frame's ID -
11187 non-NULL, didn't go backwards - until an attempt to unwind it to
11188 the previous frame.
11189
f933a9c5
AC
111902003-03-25 Andrew Cagney <cagney@redhat.com>
11191
11192 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11193 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11194 * gdbarch.h, gdbarch.c: Re-generate.
11195 * config/sparc/tm-sparc.h
11196 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11197 * sparc-tdep.c (sparc_gdbarch_init): Set
11198 deprecated_extra_stack_alignment_needed.
11199 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11201 extra_stack_alignment_needed.
11202 * v850-tdep.c (v850_gdbarch_init): Ditto.
11203 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11204 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11205 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11206 * cris-tdep.c (cris_gdbarch_init): Ditto.
11207 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11209
4183d812
AC
112102003-03-25 Andrew Cagney <cagney@redhat.com>
11211
11212 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11213 STORE_STRUCT_RETURN.
11214 * gdbarch.h, gdbarch.c: Regenerate.
11215 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11216 (d10v_push_arguments): Set the struct return register.
11217 (d10v_gdbarch_init): Update.
11218 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11219 * x86-64-tdep.c (x86_64_init_abi): Update.
11220 * vax-tdep.c (vax_gdbarch_init): Update.
11221 * v850-tdep.c (v850_gdbarch_init): Update.
11222 * sparc-tdep.c (sparc_gdbarch_init): Update.
11223 * sh-tdep.c (sh_gdbarch_init): Update.
11224 * s390-tdep.c (s390_gdbarch_init): Update.
11225 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11226 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11227 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11228 * mips-tdep.c (mips_gdbarch_init): Update.
11229 * mcore-tdep.c (mcore_gdbarch_init): Update.
11230 * m68k-tdep.c (m68k_gdbarch_init): Update.
11231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11232 * ia64-tdep.c (ia64_gdbarch_init): Update.
11233 * i386-tdep.c (i386_gdbarch_init): Update.
11234 * hppa-tdep.c (hppa_gdbarch_init): Update.
11235 * h8300-tdep.c (h8300_gdbarch_init): Update.
11236 * frv-tdep.c (frv_gdbarch_init): Update.
11237 * cris-tdep.c (cris_gdbarch_init): Update.
11238 * avr-tdep.c (avr_gdbarch_init): Update.
11239 * arm-tdep.c (arm_gdbarch_init): Update.
11240 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11241
1bf6d5cc
AC
112422003-03-25 Andrew Cagney <cagney@redhat.com>
11243
11244 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11245 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11246 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11247 * gdbarch.h, gdbarch.c: Regenerate.
11248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11249 call_dummy_stack_adjust_p.
11250 * vax-tdep.c (vax_gdbarch_init): Ditto.
11251 * v850-tdep.c (v850_gdbarch_init): Ditto.
11252 * sh-tdep.c (sh_gdbarch_init): Ditto.
11253 * s390-tdep.c (s390_gdbarch_init): Ditto.
11254 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11255 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11256 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11257 * mips-tdep.c (mips_gdbarch_init): Ditto.
11258 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11259 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11261 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11262 * i386-tdep.c (i386_gdbarch_init): Ditto.
11263 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11264 * frv-tdep.c (frv_gdbarch_init): Ditto.
11265 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11266 * cris-tdep.c (cris_gdbarch_init): Ditto.
11267 * avr-tdep.c (avr_gdbarch_init): Ditto.
11268 * arm-tdep.c (arm_gdbarch_init): Ditto.
11269 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11270 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11271 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11272 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11273 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11274 call_dummy_stack_adjust_p.
11275 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11276 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11277 * sparc-tdep.c (sparc32_push_arguments): Update.
11278 * valops.c (hand_function_call): Update.
11279
71c08af0
CV
112802003-03-25 Corinna Vinschen <vinschen@redhat.com>
11281
11282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11283 set_gdbarch_char_signed.
11284
30757f90
RE
112852003-03-25 Richard Earnshaw <rearnsha@arm.com>
11286
11287 PR cli/548
11288 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11289
03d48a7d
RE
112902003-03-25 Richard Earnshaw <rearnsha@arm.com>
11291
11292 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11293 (_initialize_arm_tdep): Don't set tm_print_insn.
11294
2cf6873c
AF
112952003-03-24 Adam Fedor <fedor@gnu.org>
11296
11297 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11298 * objc-lang.h: Add multiple inclusion protection.
11299 (start_msglist, add_msglist, end_msglist): Additional declarations.
11300
17c0759e
RE
113012003-03-24 Richard Earnshaw <rearnsha@arm.com>
11302
11303 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11304 value was renamed to ARM_FLOAT_SOFT_FPA.
11305
618ce49f
AC
113062003-03-23 Andrew Cagney <cagney@redhat.com>
11307
11308 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11309 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11310 * gdbarch.h, gdbarch.c: Regenerate.
11311 * valops.c (hand_function_call): Update.
11312 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11313 * frame.c (legacy_saved_regs_this_id): Update.
11314 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11315 * dummy-frame.h: Update.
11316 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11317 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11318 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11319 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11320 * config/m68k/tm-sun3.h: Update.
11321 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11323 * x86-64-tdep.c (x86_64_init_abi): Update.
11324 * vax-tdep.c (vax_gdbarch_init): Update.
11325 * v850-tdep.c (v850_gdbarch_init): Update.
11326 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11327 * sh-tdep.c (sh_gdbarch_init): Update.
11328 * s390-tdep.c (s390_gdbarch_init): Update.
11329 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11330 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11331 (frame_get_saved_regs): Update.
11332 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11333 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11334 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11335 * mips-tdep.c (mips_gdbarch_init): Update.
11336 * mcore-tdep.c (mcore_gdbarch_init): Update.
11337 * m68k-tdep.c (m68k_gdbarch_init): Update.
11338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11339 * ia64-tdep.c (ia64_gdbarch_init): Update.
11340 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11341 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11342 (i386_interix_back_one_frame): Update.
11343 * hppa-tdep.c (hppa_gdbarch_init): Update.
11344 (hppa_init_extra_frame_info): Update.
11345 * h8300-tdep.c (h8300_gdbarch_init): Update.
11346 * frv-tdep.c (frv_gdbarch_init): Update.
11347 * cris-tdep.c (cris_gdbarch_init): Update.
11348 * avr-tdep.c (avr_gdbarch_init): Update.
11349 * arm-tdep.c (arm_gdbarch_init): Update.
11350 * alpha-tdep.c (alpha_gdbarch_init): Update.
11351
fd50bc42
RE
113522003-03-22 Richard Earnshaw <rearnsha@arm.com>
11353
11354 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11355 (arm_get_fp_model): Declare.
11356 * arm-tdep.c (fp_model_strings): New string array.
11357 (arm_fp_model, current_fp_model): New variables.
11358 (arm_get_fp_model): New function.
11359 (arm_set_fp): New function.
11360 (set_fp_model_sfunc): New function.
11361 (show_fp_model): New function.
11362 (_initialize_arm_tdep): Add new command to set/show the FPU.
11363 (arm_extract_return_value): Use arm_get_fp_model.
11364 (arm_store_return_value): Likewise.
11365 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11366 to initialize the floating-point data types.
11367 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11368 model is FPA.
11369
26304000
RE
113702003-03-22 Richard Earnshaw <rearnsha@arm.com>
11371
11372 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11373 the current setting of each value.
11374 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11375 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11376 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11377 commands and add new version as subcommands of "set/show arm".
11378
afd7eef0
RE
113792003-03-22 Richard Earnshaw <rearnsha@arm.com>
11380
11381 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11382 (set_arm_command, show_arm_command): New functions.
11383 (_initialize_arm_tdep): Add them.
11384 (num_disassembly_options): Renamed from num_flavor_options.
11385 (valid_disassembly_styles): Renamed from valid_flavors.
11386 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11387 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11388 set_disassembly_flavor_sfunc.
11389 (set_disassembly_style): Renamed from set_disassembly_flavor.
11390 (arm_othernames): Updated.
11391 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11392 command. Add "set/show arm disassembly" commands. Deprecate
11393 "othernames" command.
11394
299a7944
RE
113952003-03-22 Richard Earnshaw <rearnsha@arm.com>
11396
11397 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11398 (arm-tdep.o): Depend on elf_arm_h.
11399
c1dac9e6
RE
114002003-03-22 Richard Earnshaw <rearnsha@arm.com>
11401
11402 * Makefile.in (coff_internal_h): Define.
11403 (arm-tdep.o): Update dependencies.
11404
2702d96c
RE
114052003-03-22 Richard Earnshaw <rearnsha@arm.com>
11406
11407 * arm-tdep.c (prologue_cache): Delete.
11408 (check_prologue_cache, save_prologue_cache): Delete.
11409 (arm_scan_prologue): Don't check or update the prologue_cache.
11410 (arm_gdb_arch_init): Don't initialize it.
11411 (_initialize_arm_tdep): Likewise.
11412
27d5d74b
SC
114132003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11414
11415 * MAINTAINERS (tui): Maintainer of tui code.
11416
1762d96d
CV
114172003-03-21 Corinna Vinschen <vinschen@redhat.com>
11418
11419 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11420 (i386-cygwin-tdep.o): Add dependencies.
11421 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11422 * i386-cygwin-tdep.c: New file.
11423 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11424 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11425
4c2e2391
AC
114262003-03-20 Andrew Cagney <cagney@redhat.com>
11427
f20d38b7
AC
11428 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11429 (handle_inferior_event): Remove code calling
11430 DYNAMIC_TRAMPOLINE_NEXTPC.
11431
0022b738
AC
11432 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11433 already has a full path.
11434
864dbc90
AC
11435 * main.c (gdb_main): Return 1.
11436 (captured_main): Call error to report an invalid interpreter.
11437
4c2e2391
AC
11438 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11439 * alpha-osf1-tdep.c: Include "gdb_string.h".
11440
5ef7553b
JB
114412003-03-19 J. Brobecker <brobecker@gnat.com>
11442
11443 Continuing work to convert the hppa targets to multiarch partial.
11444
11445 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11446 method, now that hppa_push_dummy_frame has a conformant prototype.
11447 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11448 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11449 for the switch to multiarch partial.
11450
7bde8967
KB
114512003-03-19 Kevin Buettner <kevinb@redhat.com>
11452
11453 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11454 when iss is issNull.
11455
b006a9e9
KB
114562003-03-18 Kevin Buettner <kevinb@redhat.com>
11457
11458 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11459 NUM_REGS bounds check.
11460
5e2e9765
KB
114612003-03-18 Kevin Buettner <kevinb@redhat.com>
11462
11463 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11464 * mips-tdep.c (gdb_assert.h): Include.
11465 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11466 (mips_register_name): Handle integer registers explicitly. Add
11467 bounds checking.
11468 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11469 (mips_lsi33k_reg_names): Don't list integer registers; they're
11470 handled by mips_register_name() now.
11471 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11472 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11473 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11474 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11475 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11476
a2867626
AC
114772003-03-18 Andrew Cagney <cagney@redhat.com>
11478
11479 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11480 a void pointer.
11481 * gdbtypes.h (print_scalar_formatted): Update declaration.
11482 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11483
06600e06
JB
114842003-03-18 J. Brobecker <brobecker@gnat.com>
11485
11486 * infrun.c (observer.h): Add #include.
11487 (normal_stop): Add call to observer_notify_normal_stop.
11488 * Makefile.in (infrun.o): Add dependency on observer.h.
11489
7daf4f5b
JB
114902003-03-18 J. Brobecker <brobecker@gnat.com>
11491
11492 Continuing work to convert the hppa targets to multiarch partial.
11493 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11494 parameter. Reformat comment.
11495 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11496 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11497 to match new profile.
11498
3371ccc0
JB
114992003-03-18 J. Brobecker <brobecker@gnat.com>
11500
11501 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11502 appear to be working in any case.
11503
4fbe891e
JB
115042003-03-18 J. Brobecker <brobecker@gnat.com>
11505
11506 * observer.c (observer_test_first_observer): New static variable.
11507 (observer_test_second_observer): Likewise.
11508 (observer_test_third_observer): Likewise.
11509 (observer_test_first_notification_function): New static function.
11510 (observer_test_second_notification_function): Likewise.
11511 (observer_test_third_notification_function): Likewise.
11512
a7ff40e7
JB
115132003-03-17 J. Brobecker <brobecker@gnat.com>
11514
11515 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11516 * somsolib.c (gdb_assert.h): Likewise.
11517 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11518 (somsolib.o): Likewise.
11519
26ca4152
AC
115202003-03-17 Andrew Cagney <cagney@redhat.com>
11521
11522 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11523 BFD. Simplify setting of di.endian.
11524
0a613259
AC
115252003-03-17 Andrew Cagney <cagney@redhat.com>
11526
11527 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11528 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11529
11530 From Elena Zannoni <ezannoni@redhat.com>
11531 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11532 vector and floating-point parameters.
11533 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11534 convention.
11535 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11536
1132738f
FN
115372003-03-17 Fernando Nasser <fnasser@redhat.com>
11538
11539 * MAINTAINERS: Remove my name from several maintainership roles.
11540
6dc42492
AC
115412003-03-17 Andrew Cagney <cagney@redhat.com>
11542
11543 Fix frame off-by-one bug.
11544 * frame-unwind.h (frame_this_id_ftype): Replace
11545 frame_unwind_id_ftype.
11546 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11547 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11548 with "prev_register".
11549 * frame-unwind.c (frame_unwind_find_by_pc): Return
11550 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11551 comment.
11552 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11553 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11554 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11555 (dummy_frame_unwind): Update.
11556 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11557 sentinel_frame_register_unwind.
11558 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11559 (sentinel_frame_unwinder): Update.
11560 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11561 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11562 * frame.c (create_sentinel_frame): Update. Initialize
11563 "prologue_cache" instead of "unwind_cache".
11564 (frame_register_unwind): Call this frame's prev_register with the
11565 next frame and this frame's prologue cache.
11566 (get_prev_frame): Simplify. Always call prev frame's this_id with
11567 this frame and prev frame's prologue cache. Document that this
11568 call is shifted one to the left when compared to the
11569 frame_register_unwind call.
11570 (legacy_saved_regs_prev_register): Replace
11571 frame_saved_regs_register_unwind.
11572 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11573 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11574 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11575 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11576 (d10v_frame_unwind): Update.
11577 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11578 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11579 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11580 "saved_regs" with "this_saved_regs".
11581
efd710d6
AC
115822003-03-16 Andrew Cagney <cagney@redhat.com>
11583
11584 * frame.c (frame_pop): Don't call target_store_registers. Fix
11585 problem reported by Mark Kettenis.
11586
4e259f09
MK
115872003-03-16 Mark Kettenis <kettenis@gnu.org>
11588
11589 * i386-tdep.c (i386_register_type): Renamed from
11590 i386_register_virtual_type. Adjust function signature.
11591 (i386_gdbarch_init): Set register_type instead of
11592 deprecated_max_register_raw_size,
11593 deprecated_max_register_virtual_size and register_virtual_type.
11594
055bb976
AC
115952003-03-14 Andrew Cagney <cagney@redhat.com>
11596
11597 * frame.c (get_prev_frame): When a legacy frame, always call
11598 legacy_get_prev_frame. Simplify unwind code using assumption that
11599 the unwinder is new.
11600 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11601 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11602 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11603
ac2adee5
AC
116042003-03-14 Andrew Cagney <cagney@redhat.com>
11605
11606 * frame.c (get_saved_register): Delete function.
11607 * frame.h (get_saved_register): Delete declaration.
11608 * xstormy16-tdep.c: Update comment.
11609 * regcache.h: Update comments.
11610 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11611 get_saved_register and extract_address, use
11612 frame_read_unsigned_register.
11613 (sparc_frame_saved_pc): Ditto.
11614 (sparc_get_saved_register): Instead of get_saved_register, use
11615 frame_register.
11616 (sparc_pop_frame): Ditto.
11617 * findvar.c: Update comments.
11618 (value_of_register): Call frame_register instead of
11619 get_saved_register.
11620 (value_from_register): Ditto.
11621 * config/sparc/tm-sparc.h: Update comment.
11622 * breakpoint.c: Update comment.
11623
129c1cd6
AC
116242003-03-14 Andrew Cagney <cagney@redhat.com>
11625
11626 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11627 GET_SAVED_REGISTER.
11628 * gdbarch.h, gdbarch.c: Re-generate.
11629 * frame.h: Update comments.
11630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11631 * x86-64-tdep.c (x86_64_init_abi): Update.
11632 * sparc-tdep.c (sparc_gdbarch_init): Update.
11633 * sh-tdep.c (sh_gdbarch_init): Update.
11634 * mips-tdep.c (mips_gdbarch_init): Update.
11635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11636 * cris-tdep.c (cris_gdbarch_init): Update.
11637 * ia64-tdep.c (ia64_gdbarch_init): Update.
11638 * frame.c (frame_register): Update.
11639 (get_saved_register): Update.
11640 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11641
749b82f6
AC
116422003-03-13 Andrew Cagney <cagney@redhat.com>
11643
11644 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11645 * gdbarch.h, gdbarch.c: Regenerate.
11646 * valops.c (hand_function_call): Update comment.
11647 * stack.c (return_command): Update comment.
11648 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11649 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11651 * x86-64-tdep.c (x86_64_init_abi): Update.
11652 * vax-tdep.c (vax_gdbarch_init): Update.
11653 * v850-tdep.c (v850_gdbarch_init): Update.
11654 * sparc-tdep.c (sparc_gdbarch_init): Update.
11655 * sh-tdep.c (sh_gdbarch_init): Update.
11656 * s390-tdep.c (s390_gdbarch_init): Update.
11657 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11658 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11659 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11660 * mips-tdep.c (mips_gdbarch_init): Update.
11661 * mcore-tdep.c (mcore_gdbarch_init): Update.
11662 * m68k-tdep.c (m68k_gdbarch_init): Update.
11663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11664 * ia64-tdep.c (ia64_gdbarch_init): Update.
11665 * i386-tdep.c (i386_gdbarch_init): Update.
11666 * hppa-tdep.c (hppa_gdbarch_init): Update.
11667 * h8300-tdep.c (h8300_gdbarch_init): Update.
11668 * frv-tdep.c (frv_gdbarch_init): Update.
11669 * cris-tdep.c (cris_gdbarch_init): Update.
11670 * avr-tdep.c (avr_gdbarch_init): Update.
11671 * arm-tdep.c (arm_gdbarch_init): Update.
11672 * alpha-tdep.c (alpha_gdbarch_init): Update.
11673
1594fa56
AC
116742003-03-13 Andrew Cagney <cagney@redhat.com>
11675
11676 * frame.c (legacy_frame_p): New function.
11677 (get_prev_frame): Use legacy_frame_p.
11678 * frame.h (legacy_frame_p): Declare.
11679
7717fda3
V
116802003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11681
fbe586ae 11682 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11683 listing corrected.
11684
0c67cbe9
V
116852003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11686
fbe586ae 11687 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11688
03febf99
AC
116892003-03-12 Andrew Cagney <cagney@redhat.com>
11690
11691 * frame.c (get_prev_frame): Rename the frame parameter to
11692 "this_frame".
11693 (get_next_frame, legacy_get_prev_frame): Ditto.
11694
0a1e1ca1
AC
116952003-03-12 Andrew Cagney <cagney@redhat.com>
11696
11697 * frame.c (get_current_frame): Check target_has_registers before
11698 checking target_has_stack.
11699 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11700 instead of deprecated_selected_frame.
11701 * findvar.c (value_of_register): Pass "frame", not
11702 deprecated_selected_frame, to value_of_builtin_reg.
11703
a66a9c23
AC
117042003-03-12 Andrew Cagney <cagney@redhat.com>
11705
11706 * regcache.c (regcache_cooked_write_signed): New function.
11707 (regcache_cooked_write_unsigned): New function.
11708 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11709 (regcache_cooked_read_signed): Fix regnum in range assertion.
11710 * regcache.h (regcache_cooked_write_signed): Declare.
11711 (regcache_cooked_write_unsigned): Declare.
11712
8bedc050
AC
117132003-03-12 Andrew Cagney <cagney@redhat.com>
11714
11715 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11716 * gdbarch.h, gdbarch.c: Re-generate.
11717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11718 * x86-64-tdep.h: Update.
11719 * x86-64-tdep.c (x86_64_init_abi): Update.
11720 * v850-tdep.c (v850_gdbarch_init): Update.
11721 * sparc-tdep.c (sparc_gdbarch_init): Update.
11722 * sh-tdep.c (sh_gdbarch_init): Update.
11723 * s390-tdep.c (s390_gdbarch_init): Update.
11724 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11725 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11726 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11727 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11728 * mips-tdep.c (mips_gdbarch_init): Update.
11729 * mcore-tdep.c (mcore_gdbarch_init): Update.
11730 * m68k-tdep.c (m68k_gdbarch_init): Update.
11731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11732 * ia64-tdep.c (ia64_gdbarch_init): Update.
11733 * i386-tdep.c (i386_gdbarch_init): Update.
11734 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11735 * hppa-tdep.c (hppa_gdbarch_init): Update.
11736 * h8300-tdep.c (h8300_gdbarch_init): Update.
11737 * frv-tdep.c (frv_gdbarch_init): Update.
11738 * cris-tdep.c (cris_gdbarch_init): Update.
11739 * avr-tdep.c (avr_gdbarch_init): Update.
11740 * arm-tdep.c (arm_gdbarch_init): Update.
11741 * alpha-tdep.c (alpha_gdbarch_init): Update.
11742 * sh-tdep.c (sh_init_extra_frame_info): Update.
11743 (sh64_init_extra_frame_info): Update.
11744 * ns32knbsd-nat.c (frame_num_args): Update.
11745 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11746 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11747 (xstormy16_frame_chain_valid): Update.
11748 * vax-tdep.c (vax_saved_pc_after_call): Update.
11749 * v850-tdep.c (v850_frame_chain): Update.
11750 (v850_pop_frame): Update.
11751 (v850_init_extra_frame_info): Update.
11752 * sparc-tdep.c (setup_arbitrary_frame): Update.
11753 * ns32k-tdep.c (umax_frame_num_args): Update.
11754 * s390-tdep.c (s390_pop_frame_regular): Update.
11755 * mn10300-tdep.c (mn10300_frame_chain): Update.
11756 (mn10300_pop_frame_regular): Update.
11757 (mn10300_init_extra_frame_info): Update.
11758 * mips-tdep.c (mips_init_frame_pc_first): Update.
11759 (mips_frame_chain): Update.
11760 (mips_pop_frame): Update.
11761 * mcore-tdep.c (mcore_frame_chain): Update.
11762 (mcore_pop_frame): Update.
11763 (mcore_init_extra_frame_info): Update.
11764 * arch-utils.c (init_frame_pc_default): Update.
11765 * m68k-tdep.c (isi_frame_num_args): Update.
11766 (delta68_frame_num_args): Update.
11767 (news_frame_num_args): Update.
11768 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11769 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11770 (alpha_frame_chain): Update.
11771 (alpha_pop_frame): Update.
11772 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11773 (hppa_init_extra_frame_info): Update.
11774 (hppa_frame_chain): Update.
11775 (hppa_frame_chain_valid): Update.
11776 * cris-tdep.c (cris_init_extra_frame_info): Update.
11777 * avr-tdep.c (avr_init_extra_frame_info): Update.
11778 * arm-tdep.c (arm_frame_chain_valid): Update.
11779 (arm_init_extra_frame_info): Update.
11780 (arm_pop_frame): Update.
11781 * frame.c (frame_pc_unwind): Update.
11782 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11783 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11784 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11785 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11786 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11787 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11788
7a25a7c1
AC
117892003-03-12 Andrew Cagney <cagney@redhat.com>
11790
11791 Eliminate the need for POP_FRAME.
11792 * frame.c (do_frame_unwind_register): New function.
11793 (frame_pop): When no POP_FRAME, pop the frame using register
11794 unwind and a scratch regcache.
11795 (frame_saved_regs_pop): Delete function.
11796 (trad_frame_unwinder): Update.
11797 * d10v-tdep.c (d10v_frame_pop): Delete function.
11798 (d10v_frame_unwind): Update.
11799 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11800 (sentinel_frame_unwinder): Update.
11801 * dummy-frame.c (dummy_frame_pop): Delete function.
11802 (dummy_frame_unwind): Update.
11803 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11804 (struct frame_unwind): Update.
11805
2f38ef89
KB
118062003-03-11 Kevin Buettner <kevinb@redhat.com>
11807
11808 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11809 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11810 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11811 Do range checks on register number obtained from debugging info.
11812 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11813 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11814 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11815 mapping function.
11816 (do_fp_register_row): Fix typo which caused double type to be
11817 used when attempting to unpack a float.
11818
552f4abf
JB
118192003-03-11 J. Brobecker <brobecker@gnat.com>
11820
11821 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11822
e0d2ae16
AC
118232003-03-11 Andrew Cagney <cagney@redhat.com>
11824
11825 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11826 frame. Problem found by Corinna Vinschen.
11827
ddbfdd06
PM
118282003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11829
11830 * doublest.c (floatformat_from_length): Accept also
11831 the real size of 'long double' type.
11832
088b2ddc 118332003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11834
088b2ddc 11835 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11836 * breakpoint.c (bpstat_copy): Copy the command lines as well
11837 as the old value, to match what is freed in bpstat_clear.
11838
f56f77c1
DC
118392003-03-10 David Carlton <carlton@math.stanford.edu>
11840
11841 * minsyms.c (add_minsym_to_hash_table): Replace
11842 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11843 (compare_minimal_symbols, compact_minimal_symbols)
11844 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11845 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11846 of DEPRECATED_SYMBOL_MATCHES_NAME.
11847 (lookup_minimal_symbol_solib_trampoline): Ditto.
11848
5602984a
AC
118492003-03-10 Andrew Cagney <cagney@redhat.com>
11850
11851 * regcache.h (regcache_cooked_read_ftype): Define.
11852 (regcache_save, regcache_restore): Add a cooked_read parameter.
11853 * regcache.c (regcache_save, regcache_restore): Update.
11854 (do_cooked_read): New function.
11855 (regcache_cpy): Pass do_cooked_read to regcache_save and
11856 regcache_restore.
11857
8bedc050
AC
118582003-03-10 Andrew Cagney <cagney@redhat.com>
11859
11860 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11861 * gdbarch.h, gdbarch.c: Re-generate.
11862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11863 * x86-64-tdep.h: Update.
11864 * x86-64-tdep.c (x86_64_init_abi): Update.
11865 * v850-tdep.c (v850_gdbarch_init): Update.
11866 * sparc-tdep.c (sparc_gdbarch_init): Update.
11867 * sh-tdep.c (sh_gdbarch_init): Update.
11868 * s390-tdep.c (s390_gdbarch_init): Update.
11869 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11870 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11871 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11872 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11873 * mips-tdep.c (mips_gdbarch_init): Update.
11874 * mcore-tdep.c (mcore_gdbarch_init): Update.
11875 * m68k-tdep.c (m68k_gdbarch_init): Update.
11876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11877 * ia64-tdep.c (ia64_gdbarch_init): Update.
11878 * i386-tdep.c (i386_gdbarch_init): Update.
11879 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11880 * hppa-tdep.c (hppa_gdbarch_init): Update.
11881 * h8300-tdep.c (h8300_gdbarch_init): Update.
11882 * frv-tdep.c (frv_gdbarch_init): Update.
11883 * cris-tdep.c (cris_gdbarch_init): Update.
11884 * avr-tdep.c (avr_gdbarch_init): Update.
11885 * arm-tdep.c (arm_gdbarch_init): Update.
11886 * alpha-tdep.c (alpha_gdbarch_init): Update.
11887 * sh-tdep.c (sh_init_extra_frame_info): Update.
11888 (sh64_init_extra_frame_info): Update.
11889 * ns32knbsd-nat.c (frame_num_args): Update.
11890 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11891 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11892 (xstormy16_frame_chain_valid): Update.
11893 * vax-tdep.c (vax_saved_pc_after_call): Update.
11894 * v850-tdep.c (v850_frame_chain): Update.
11895 (v850_pop_frame): Update.
11896 (v850_init_extra_frame_info): Update.
11897 * sparc-tdep.c (setup_arbitrary_frame): Update.
11898 * ns32k-tdep.c (umax_frame_num_args): Update.
11899 * s390-tdep.c (s390_pop_frame_regular): Update.
11900 * mn10300-tdep.c (mn10300_frame_chain): Update.
11901 (mn10300_pop_frame_regular): Update.
11902 (mn10300_init_extra_frame_info): Update.
11903 * mips-tdep.c (mips_init_frame_pc_first): Update.
11904 (mips_frame_chain): Update.
11905 (mips_pop_frame): Update.
11906 * mcore-tdep.c (mcore_frame_chain): Update.
11907 (mcore_pop_frame): Update.
11908 (mcore_init_extra_frame_info): Update.
11909 * arch-utils.c (init_frame_pc_default): Update.
11910 * m68k-tdep.c (isi_frame_num_args): Update.
11911 (delta68_frame_num_args): Update.
11912 (news_frame_num_args): Update.
11913 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11914 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11915 (alpha_frame_chain): Update.
11916 (alpha_pop_frame): Update.
11917 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11918 (hppa_init_extra_frame_info): Update.
11919 (hppa_frame_chain): Update.
11920 (hppa_frame_chain_valid): Update.
11921 * cris-tdep.c (cris_init_extra_frame_info): Update.
11922 * avr-tdep.c (avr_init_extra_frame_info): Update.
11923 * arm-tdep.c (arm_frame_chain_valid): Update.
11924 (arm_init_extra_frame_info): Update.
11925 (arm_pop_frame): Update.
11926 * frame.c (frame_pc_unwind): Update.
11927 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11928 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11929 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11930 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11931 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11932 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11933
12cc2063
AC
119342003-03-10 Andrew Cagney <cagney@redhat.com>
11935
11936 * gdbarch.sh (gdbarch_unwind_pc): New method.
11937 * gdbarch.h, gdbarch.c: Regenerate.
11938 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11939 but use read_pc and FRAME_SAVED_PC as fall backs.
11940 (frame_saved_regs_pc_unwind): Delete function.
11941 (trad_frame_unwinder): Update.
11942 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11943 (struct frame_unwind): Update.
11944 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11945 (dummy_frame_unwind): Update.
11946 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11947 (sentinel_frame_unwinder): Update.
11948 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11949 (d10v_frame_unwind): Update.
11950 (d10v_unwind_pc): New function.
11951 (d10v_gdbarch_init): Set unwind_pc.
11952
ef840a37
AC
119532003-03-10 Andrew Cagney <cagney@redhat.com>
11954
a2ce2e56
AC
11955 * gdbarch.h: Re-generate.
11956
ef840a37
AC
11957 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11958 PC.
11959 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11960 the PC register.
11961
08f3424b
MK
119622003-03-08 Mark Kettenis <kettenis@gnu.org>
11963
11964 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11965
1248ede2
AC
119662003-03-08 Andrew Cagney <cagney@redhat.com>
11967
11968 * cli-out.c: Update copyright.
11969 (cli_out_data): Define typedef. Use instead of ui_out_data.
11970
f49bacc8
AC
119712003-03-08 Andrew Cagney <cagney@redhat.com>
11972
11973 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11974 the result.
11975
9b05f993
AC
119762003-03-07 Andrew Cagney <cagney@redhat.com>
11977
11978 * gdbarch.sh: Don't generate two macro definitions when an
11979 undefined macro taking no arguments.
11980 * gdbarch.h: Regenerate.
8ffd9b1b 11981
166f4c7b
ML
119822002-03-07 Michal Ludvig <mludvig@suse.cz>
11983
11984 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11985 (x86_64_unwind_dummy_id): New functions.
11986 (x86_64_init_abi): Register these two new functions.
11987
6d686a84
ML
119882003-03-07 Michal Ludvig <mludvig@suse.cz>
11989
11990 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11991 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11992 separate function.
11993 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11994
6314f104
AC
119952003-03-05 Andrew Cagney <cagney@redhat.com>
11996
11997 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11998 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11999 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12000 to use unwind_dummy_id when a dummy frame.
12001 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12002 predicate.
12003 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12004
ceea5145
AC
120052003-03-05 Andrew Cagney <cagney@redhat.com>
12006
12007 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12008 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12009 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12010 values.
12011
0d843116
AC
120122003-03-05 Andrew Cagney <cagney@redhat.com>
12013
12014 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12015 (struct d10v_unwind_cache): Delete field "frameless". Replace
12016 "next_addr" with "sp_offset". Add "r11_offset".
12017 (d10v_frame_unwind_cache): Update.
12018 (prologue_find_regs): Update. When "mv r11, sp", save the
12019 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12020 RN was saved in r11_offset.
12021
b2579786
AC
120222003-03-05 Andrew Cagney <cagney@redhat.com>
12023
12024 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12025 cached PC value in the next frame.
12026
218e5956
AC
120272003-03-05 Andrew Cagney <cagney@redhat.com>
12028
12029 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12030 "id_unwind_cache" with "id".
12031 (frame_id_unwind): Delete declaration.
12032 * frame.c (frame_id_unwind): Delete function.
12033 (get_prev_frame): Call the frame id unwind method directly. Store
12034 the returned next frame's ID value in NEXT_FRAME. Note that there
12035 is a problem with the wrong unwind ID being called with the wrong
12036 unwind cache.
12037
ed363b1b
DJ
120382003-03-05 Daniel Jacobowitz <drow@mvista.com>
12039
12040 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12041
fe1f4a5e
DJ
120422003-03-05 James Ingham <jingham@apple.com>
12043 Daniel Jacobowitz <drow@mvista.com>
12044
12045 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12046 (auto_cp_abi): New variable.
12047 (current_cp_abi, num_cp_abis): Make static.
12048 (CP_ABI_MAX): Define.
12049 (cp_abis): Turn into an array.
12050 (value_virtual_fn_field): Fix formatting.
12051 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12052 takes a pointer.
12053 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12054 (list_cp_abis, _initialize_cp_abi): New functions.
12055 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12056 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12057 switch_to_cp_abi. Update prototype for register_cp_abi.
12058 * Makefile.in (cp-abi.o): Update dependencies.
12059 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12060 instead of switch_to_cp_abi.
12061 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12062 register_cp_abi.
12063 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12064 register_cp_abi.
12065 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12066
e4adbba9
DJ
120672003-03-05 Daniel Jacobowitz <drow@mvista.com>
12068
12069 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12070 * dwarf2loc.c: Include "regcache.h".
12071 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12072 register_size.
12073 * Makefile.in (dwarf2loc.o): Update dependencies.
12074
91ccbfc1
TR
120752003-03-04 Theodore A. Roth <troth@openavr.org>
12076
12077 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12078 number of io registers reported by remote target is not a multiple of
12079 step.
12080
3d4e8fd2
DC
120812003-03-04 David Carlton <carlton@math.stanford.edu>
12082
12083 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12084 (lookup_symbol_aux_psymtabs): Update call to
12085 lookup_partial_symbol.
12086 (lookup_transparent_type, find_main_psymtab)
12087 (make_symbol_overload_list): Ditto.
12088
ed42d87b
KH
120892003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12090
12091 * MAINTAINERS (Write after approval): Update my email address.
12092
a0ed5532
AC
120932003-03-03 Andrew Cagney <cagney@redhat.com>
12094
12095 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12096 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12097 predicate. Replace MAX_REGISTER_RAW_SIZE.
12098 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12099 MAX_REGISTER_VIRTUAL_SIZE.
12100 * regcache.c (legacy_max_register_raw_size): New function.
12101 (legacy_max_register_virtual_size): New function.
12102 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12103 (MAX_REGISTER_RAW_SIZE): Define.
12104 (legacy_max_register_raw_size): Declare.
12105 (legacy_max_register_virtual_size): Declare.
12106 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12107 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12108 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12109 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12110 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12111 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12112 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12113 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12114 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12116 * vax-tdep.c (vax_gdbarch_init): Update.
12117 * v850-tdep.c (v850_gdbarch_init): Update.
12118 * sparc-tdep.c (sparc_gdbarch_init): Update.
12119 * sh-tdep.c (sh_gdbarch_init): Update.
12120 * s390-tdep.c (s390_gdbarch_init): Update.
12121 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12122 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12123 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12124 * mips-tdep.c (mips_gdbarch_init): Update.
12125 * mcore-tdep.c (mcore_gdbarch_init): Update.
12126 * m68k-tdep.c (m68k_gdbarch_init): Update.
12127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12128 * ia64-tdep.c (ia64_gdbarch_init): Update.
12129 * i386-tdep.c (i386_gdbarch_init): Update.
12130 * hppa-tdep.c (hppa_gdbarch_init): Update.
12131 * h8300-tdep.c (h8300_gdbarch_init): Update.
12132 * frv-tdep.c (frv_gdbarch_init): Update.
12133 * cris-tdep.c (cris_gdbarch_init): Update.
12134 * avr-tdep.c (avr_gdbarch_init): Update.
12135 * arm-tdep.c (arm_gdbarch_init): Update.
12136 * alpha-tdep.c (alpha_gdbarch_init): Update.
12137 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12138 max_register_raw_size or max_register_virtual_size.
12139
8e437497
DC
121402003-03-03 David Carlton <carlton@math.stanford.edu>
12141
12142 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12143 SYMBOL_MATCHES_NAME, add comment.
12144 (SYMBOL_MATCHES_NATURAL_NAME): New.
12145 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12146 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12147 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12148 * symtab.c (lookup_partial_symbol): Use
12149 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12150 unhelpful comment.
12151 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12152 SYMBOL_MATCHES_NAME.
12153 Fix for PR c++/33.
12154
25120b0d
DC
121552003-03-03 David Carlton <carlton@math.stanford.edu>
12156
12157 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12158 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12159 by regexp matching against SYMBOL_NATURAL_NAME.
12160
78a11fb4
DC
121612003-03-03 David Carlton <carlton@math.stanford.edu>
12162
12163 * linespec.c (find_method): Extract code into collect_methods.
12164 (collect_methods): New.
12165
645dd519
MK
121662003-03-02 Mark Kettenis <kettenis@gnu.org>
12167
b4700d91
MK
12168 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12169 get_frame_base.
12170
645dd519
MK
12171 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12172 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12173
0aa7e1aa
SC
121742003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12175
8ffd9b1b 12176 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12177 and not regnum when summing the size of all registers up to regnum.
12178
f30ee0bc
AC
121792003-03-01 Andrew Cagney <cagney@redhat.com>
12180
12181 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12182 FRAME_INIT_SAVED_REGS.
12183 * gdbarch.h, gdbarch.c: Regenerate.
12184 * stack.c (frame_info): Update.
12185 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12186 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12187 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12188 * ns32k-tdep.c (ns32k_pop_frame): Update.
12189 * mips-tdep.c (mips_pop_frame): Update.
12190 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12191 * ia64-tdep.c (ia64_frame_chain): Update.
12192 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12193 (ia64_frameless_function_invocation): Update.
12194 (ia64_init_extra_frame_info): Update.
12195 (ia64_pop_frame_regular): Update.
12196 * frame.h (struct frame_info): Update comment.
12197 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12198 * frame.c (frame_saved_regs_register_unwind): Update.
12199 (frame_saved_regs_register_unwind): Update.
12200 (deprecated_generic_get_saved_register): Update.
12201 * cris-tdep.c: Update comment.
12202 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12203 Rename macro.
12204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12205 * x86-64-tdep.c (x86_64_init_abi): Update.
12206 * vax-tdep.c (vax_gdbarch_init): Update.
12207 * v850-tdep.c (v850_gdbarch_init): Update.
12208 * sparc-tdep.c (sparc_gdbarch_init): Update.
12209 * sh-tdep.c (sh_gdbarch_init): Update.
12210 * s390-tdep.c (s390_gdbarch_init): Update.
12211 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12212 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12213 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12214 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12215 * mips-tdep.c (mips_gdbarch_init): Update.
12216 * mcore-tdep.c (mcore_gdbarch_init): Update.
12217 * m68k-tdep.c (m68k_gdbarch_init): Update.
12218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12219 * ia64-tdep.c (ia64_gdbarch_init): Update.
12220 * i386-tdep.c (i386_gdbarch_init): Update.
12221 * frv-tdep.c (frv_gdbarch_init): Update.
12222 * avr-tdep.c (avr_gdbarch_init): Update.
12223 * arm-tdep.c (arm_gdbarch_init): Update.
12224 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12225
42fa7c0f
AC
122262003-03-01 Andrew Cagney <cagney@redhat.com>
12227
12228 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12229 option enum and switch. When no windows, set the interpreter to
12230 INTERP_CONSOLE.
8ffd9b1b 12231
49c7e338
AC
122322003-03-01 Andrew Cagney <cagney@redhat.com>
12233
12234 * main.c (captured_main): Replace magic option characters with an
12235 enum.
12236
e9582e71
AC
122372003-03-01 Andrew Cagney <cagney@redhat.com>
12238
12239 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12240 INIT_EXTRA_FRAME_INFO.
12241 * gdbarch.h, gdbarch.c: Regenerate.
12242 * arm-tdep.c: Update comments.
12243 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12244 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12245 * frame.h, avr-tdep.c: Ditto.
12246 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12247 (create_new_frame, legacy_get_prev_frame): Ditto.
12248 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12249 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12251 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12252 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12253 * v850-tdep.c (v850_gdbarch_init): Ditto.
12254 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12255 * sh-tdep.c (sh_gdbarch_init): Ditto.
12256 * s390-tdep.c (s390_gdbarch_init): Ditto.
12257 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12258 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12259 * mips-tdep.c (mips_gdbarch_init): Ditto.
12260 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12262 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12263 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12264 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12265 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12266 * frv-tdep.c (frv_gdbarch_init): Ditto.
12267 * cris-tdep.c (cris_gdbarch_init): Ditto.
12268 * avr-tdep.c (avr_gdbarch_init): Ditto.
12269 * arm-tdep.c (arm_gdbarch_init): Ditto.
12270 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12271 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12272
35cac7cf
AC
122732003-03-01 Andrew Cagney <cagney@redhat.com>
12274
12275 * gdbarch.sh (register_type): New function with predicate.
12276 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12277 * gdbarch.h, gdbarch.c: Re-generate.
12278 * arch-utils.c (generic_register_byte): Use generic_register_size.
12279 (generic_register_size): When available, use
12280 gdbarch_register_type.
12281 * regcache.c (init_regcache_descr): When available, initialize the
12282 register type array using gdbarch_register_type. If the
12283 architecture supplies gdbarch_register_type, do not use the legacy
12284 regcache layout.
12285 * d10v-tdep.c (d10v_register_type): Replace
12286 d10v_register_virtual_type.
12287 (d10v_gdbarch_init): Set register_type instead of
12288 register_virtual_type.
12289
7b83296f
AC
122902003-03-01 Andrew Cagney <cagney@redhat.com>
12291
12292 * Makefile.in (ax-gdb.o): Update dependencies.
12293 * ax-gdb.c: Include "regcache.h".
12294 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12295 * findvar.c (value_of_register): Ditto.
12296 * infcmd.c (default_print_registers_info): Ditto.
12297
eadc1c87
MK
122982003-03-01 Mark Kettenis <kettenis@gnu.org>
12299
12300 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12301 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12302
14143612
MK
123032003-03-01 Mark Kettenis <kettenis@gnu.org>
12304
12305 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12306 of STREQ.
12307
a55cc764
DJ
123082003-02-28 Daniel Jacobowitz <drow@mvista.com>
12309
12310 * Makefile.in (dwarf2loc.o): Update dependencies.
12311 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12312 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12313 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12314 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12315 (locexpr_tracepoint_var_ref): New function.
12316 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12317
08a617da
AC
123182003-02-28 Andrew Cagney <cagney@redhat.com>
12319
12320 * regcache.c (register_size): New function.
12321 * regcache.h (register_size): Declare
12322 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12323 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12324
4224873a
DC
123252003-02-28 David Carlton <carlton@math.stanford.edu>
12326
12327 * linespec.c (decode_compound): Extract code into find_method.
12328 (find_method): New.
12329
ccdc5d7f
JB
123302003-02-28 J. Brobecker <brobecker@gnat.com>
12331
12332 * Makefile.in: Add rules to build and link in observer.o.
12333
974e8ced
JB
123342003-02-27 J. Brobecker <brobecker@gnat.com>
12335
12336 * observer.c: Minor comments edits.
12337
7a28f973
JB
123382003-02-27 J. Brobecker <brobecker@gnat.com>
12339
12340 * observer.h, observer.c: New file.
12341
27cddce2
AC
123422003-02-27 Andrew Cagney <cagney@redhat.com>
12343
12344 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12345
b94a41a1
SC
123462003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12347
12348 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12349 (M6812_OP_STS_EXT): Likewise.
12350 (m6811_prologue): Use the above to recognize prologue.
12351 (m6812_prologue): Likewise.
12352
c8be8951
DC
123532003-02-27 David Carlton <carlton@math.stanford.edu>
12354
12355 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12356 SYMBOL_PRINT_NAME.
12357 (compare_psymbols): Ditto.
12358 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12359
d05bb1fc
MS
123602003-02-27 Michael Snyder <msnyder@redhat.com>
12361
4e845cd3
MS
12362 * f-lang.c (build_fortran_types): New function.
12363 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12364 * doublest.c (extract_floating): Fix warning text.
12365
f3824013
AC
123662003-02-27 Andrew Cagney <cagney@redhat.com>
12367
12368 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12369 predicate. Replaces PUSH_DUMMY_FRAME.
12370 * gdbarch.h, gdbarch.c: Regnerate.
12371 * valops.c (hand_function_call): Update. Call
12372 generic_push_dummy_frame directly.
12373 * vax-tdep.c (vax_gdbarch_init): Update.
12374 * sparc-tdep.c (sparc_gdbarch_init): Update.
12375 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12376 * m68k-tdep.c (m68k_gdbarch_init): Update.
12377 * hppa-tdep.c (hppa_gdbarch_init): Update.
12378 * alpha-tdep.c (alpha_gdbarch_init): Update.
12379 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12380 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12381 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12383 push_dummy_frame to generic_push_dummy_frame.
12384 * v850-tdep.c (v850_gdbarch_init): Ditto.
12385 * sh-tdep.c (sh_gdbarch_init): Ditto.
12386 * s390-tdep.c (s390_gdbarch_init): Ditto.
12387 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12388 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12389 * mips-tdep.c (mips_gdbarch_init): Ditto.
12390 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12391 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12392 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12393 * i386-tdep.c (i386_gdbarch_init): Ditto.
12394 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12395 * frv-tdep.c (frv_gdbarch_init): Ditto.
12396 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12397 * cris-tdep.c (cris_gdbarch_init): Ditto.
12398 * avr-tdep.c (avr_gdbarch_init): Ditto.
12399 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12400
ad188201
KB
124012003-02-26 Kevin Buettner <kevinb@redhat.com>
12402
12403 * mips-tdep.c (show_mips_abi): New function.
12404 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12405 command ``show mips abi''.
12406
6b37567a 124072003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12408
6b37567a 12409 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12410 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12411 more sline entries have been seen for the function.
12412
d3e0a5bf
MC
124132003-02-26 Michael Chastain <mec@shout.net>
12414
12415 * configure: Regenerate with autoconf 000227.
12416
18972eea
MC
124172003-02-26 Michael Chastain <mec@shout.net>
12418
12419 Close PR build/660.
12420 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12421 for old libc5/glibc.
12422 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12423
0bbde931
KW
124242003-02-26 Kris Warkentin <kewarken@qnx.com>
12425
12426 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12427 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12428
27ca5dad
MC
124292003-02-26 Michael Chastain <mec@shout.net>
12430
12431 * configure.in: New variable HAVE_UINTPTR_T.
12432 * configure, config.in: Regenerated.
12433
6f88d630
DJ
124342003-02-26 Daniel Jacobowitz <drow@mvista.com>
12435
12436 Fix PR build/1097.
12437 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12438
b14185ce
AC
124392003-02-25 Andrew Cagney <cagney@redhat.com>
12440
12441 * frame.c (get_prev_frame): Add comment on check for
12442 inside_entry_func. Only check for inside_entry_file when not a
12443 dummy and not a sentinel. Check that the new frame is not inner
12444 to the old frame.
12445
ac2bd0a9
AC
124462003-02-25 Andrew Cagney <cagney@redhat.com>
12447
12448 * frame.c (frame_debug): New variable.
12449 (_initialize_frame): Add "set/show debug frame" command.
12450 (get_prev_frame): When frame_debug, print reason why unwind
12451 failed.
12452
b18a0fd2
MC
124532003-02-25 Michael Chastain <mec@shout.net>
12454
12455 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12456 to avoid uintptr_t definition problems.
12457
22abf04a
DC
124582003-02-25 David Carlton <carlton@math.stanford.edu>
12459
12460 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12461 (SYMBOL_LINKAGE_NAME): Ditto.
12462 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12463 SYMBOL_LINKAGE_NAME.
12464 (struct general_symbol_info): Expand comment.
12465 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12466 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12467 (SYMBOL_MATCHES_REGEXP): Ditto.
12468 * symtab.c (symbol_natural_name): New function.
12469 * objfiles.h: Replace all uses of SYMBOL_NAME by
12470 DEPRECATED_SYMBOL_NAME.
12471 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12472 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12473 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12474 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12475 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12476 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12477 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12478 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12479 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12480 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12481 * ada-exp.y: Ditto.
12482 * ada-exp.y: Update copyright.
12483 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12484 * cp-valprint.c: Ditto.
12485
1a5848f6
JJ
124862003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12487
12488 * infptrace.c (detach): Do not flag error if ptrace detach fails
12489 and errno is set to ESRCH.
12490
7343d46a
AC
124912003-02-24 Andrew Cagney <cagney@redhat.com>
12492
12493 * infptrace.c (udot_info): Change type of udot_off to long. Use
12494 paddr when printing udot_off's value.
12495
49fa1dc2
DC
124962003-02-24 David Carlton <carlton@math.stanford.edu>
12497
12498 * symtab.c (make_symbol_overload_list): Only read in partial
12499 symtabs containing a matching partial symbol.
12500
0fe19209
DC
125012003-02-24 David Carlton <carlton@math.stanford.edu>
12502
12503 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12504 do the comparison, not strcmp.
12505 * symfile.c (compare_psymbols): Ditto.
12506 * defs.h: Declare strcmp_iw_ordered.
12507 * utils.c (strcmp_iw_ordered): New function.
12508
8e3ee7b5
JB
125092003-02-24 Jim Blandy <jimb@redhat.com>
12510
12511 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12512 support, shared libs): Remove my name from here, to better reflect
12513 reality.
12514
7df1a324
KW
125152003-02-24 Kris Warkentin <kewarken@qnx.com>
12516
12517 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12518 (target_ops): Add to_have_continuable_watchpoint.
12519 * target.c (update_current_target): Add INHERIT line for
12520 to_have_continuable_watchpoint.
12521 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12522 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12523 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12524 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12525
d1c76907
EZ
125262003-02-24 Elena Zannoni <ezannoni@redhat.com>
12527
12528 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12529 maintainership.
12530
2610b0bf
KW
125312003-02-24 Kris Warkentin <kewarken@qnx.com>
12532
f46169db
KW
12533 * solib.c (solib_open): Call target defined search function after
12534 failing with solib-search-path.
12535 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12536 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12537
9a3c34fe
KW
125382003-02-24 Kris Warkentin <kewarken@qnx.com>
12539
f46169db 12540 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12541
2417dd25
SC
125422003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12543
12544 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12545
b631436b
SC
125462003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12547
12548 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12549 (m68hc11_add_reggroups): New function.
12550 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12551 (m68hc11_gdbarch_init): Install the reggroups.
12552 (_initialize_m68hc11_tdep): Initialize them.
12553
0aa8c1e4
JW
125542003-02-21 James E Wilson <wilson@tuliptree.org>
12555
12556 * MAINTAINERS: Update my email address.
12557
50ceaba5
DC
125582003-02-21 David Carlton <carlton@math.stanford.edu>
12559
12560 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12561
4c2df51b
DJ
125622003-02-21 Daniel Jacobowitz <drow@mvista.com>
12563
12564 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12565 * symtab.h: Add opaque declarations of struct axs_value and
12566 struct agent_expr.
12567 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12568 (struct location_funcs): New type.
12569 (struct symbol): Add "loc" to aux_value.
12570 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12571 * dwarf2read.c: Include "dwarf2expr.h".
12572 (dwarf2_symbol_mark_computed): New function.
12573 (read_func_scope): Use it.
12574 (var_decode_location): New function.
12575 (new_symbol): Use it.
12576 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12577
12578 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12579 (dwarf2expr_h, dwarf2loc_h): New variables.
12580 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12581 (dwarf2expr.o, dwarf2loc.o): New rules.
12582 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12583 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12584 LOC_COMPUTED_ARG.
12585 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12586 * m2-exp.y (yylex): Likewise.
12587 * printcmd.c (address_info, print_frame_args): Likewise.
12588 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12589 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12590 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12591 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12592 * symtab.c (lookup_block_symbol): Likewise.
12593
5784d15e
AF
125942003-02-20 Adam Fedor <fedor@gnu.org>
12595
12596 * symtab.h: Remove objc_specific struct
12597 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12598 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12599 Have language_objc use cplus_specific struct.
12600
d4cad8db
TT
126012003-02-20 Tom Tromey <tromey@redhat.com>
12602
12603 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12604 TYPE_NAME, when printing a String value. PR java/1075.
12605
2f9a90b4
AF
126062003-02-20 Adam Fedor <fedor@gnu.org>
12607
d38074a8 12608 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12609 * objc-lang.c (find_methods): Make static.
2f9a90b4 12610
6f17862b
CF
126112003-02-20 Christopher Faylor <cgf@redhat.com>
12612
12613 * win32-nat.c (get_image_name): Check return value from
12614 ReadProcessMemory.
12615 (child_xfer_memory): Ditto.
12616
715d1656
AO
126172003-02-20 Alexandre Oliva <aoliva@redhat.com>
12618
12619 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12620 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12621 '${exec_prefix}' (in addition to the expansion thereof) as
12622 relocatable.
12623 * configure: Rebuilt.
12624
b1262a02
DC
126252003-02-20 David Carlton <carlton@math.stanford.edu>
12626
12627 * symtab.c (search_symbols): Revert the search_symbols part of my
12628 2002-12-23 patch. Add comment.
12629
7134143f
DJ
126302002-02-20 Daniel Jacobowitz <drow@mvista.com>
12631
12632 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12633 * dbxread.c (elfstab_build_psymtabs): Don't call
12634 install_minimal_symbols.
12635 (stabsect_build_psymtabs): Likewise.
12636 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12637 earlier.
12638 * somread.c (som_symfile_read): Call install_minimal_symbols
12639 and do_cleanups earlier.
12640 * nlmread.c (nlm_symfile_read): Likewise.
12641 * mdebugread.c (elfmdebug_build_psymtabs): Call
12642 install_minimal_symbols and make appropriate cleanups.
12643
cf466558
KB
126442003-02-20 Kevin Buettner <kevinb@redhat.com>
12645
12646 * solib.c (reload_shared_libraries): New function.
12647 (_initialize_solib): Add callbacks for ``set solib-search-path''
12648 and ``set solib-absolute-prefix''.
12649
de5ad195
DC
126502003-02-20 David Carlton <carlton@math.stanford.edu>
12651
12652 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12653 expand comment.
12654 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12655 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12656 * ada-typeprint.c (ada_typedef_print): Ditto.
12657 * ax-gdb.c (gen_var_ref): Ditto.
12658 * breakpoint.c (print_one_breakpoint): Ditto.
12659 * buildsym.c (finish_block): Ditto.
12660 * c-valprint.c (c_val_print): Ditto.
12661 * expprint.c (print_subexp): Ditto.
12662 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12663 * infcmd.c (jump_command): Ditto.
12664 * linespec.c (decode_line_2, decode_compound): Ditto.
12665 * maint.c (maintenance_translate_address): Ditto.
12666 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12667 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12668 Ditto.
8ffd9b1b
AJ
12669 * p-valprint.c (pascal_val_print): Ditto.
12670 * stabsread.c (define_symbol): Ditto.
de5ad195 12671 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12672 (print_frame_arg_vars, return_command): Ditto.
12673 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12674 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12675 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12676 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12677 (rbreak_command): Ditto.
12678 * tracepoint.c (tracepoints_info): Ditto.
12679 * typeprint.c (typedef_print): Ditto.
12680 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12681 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12682 * ada-typeprint.c: Update Copyright.
12683 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12684 * tracepoint.c, cli/cli-cmds.c: Ditto.
12685
f796e4be
KB
126862003-02-20 Kevin Buettner <kevinb@redhat.com>
12687
12688 * frame.c (generic_unwind_get_saved_register): Make non-static.
12689 * frame.h (generic_unwind_get_saved_register): Declare.
12690 * mips-tdep.c (read_next_frame_reg): Fetch register from
12691 current regcache when frame is NULL.
12692 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12693 that must be NULL.
12694 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12695 instead of frame_register_unwind().
12696
836cc9f4
AC
126972003-02-20 Andrew Cagney <ac131313@redhat.com>
12698
12699 * remote-sim.c (gdbsim_insert_breakpoint)
12700 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12701 code.
12702
501eef12
AC
127032003-02-20 Andrew Cagney <ac131313@redhat.com>
12704
12705 * remote.c (_initialize_remote): Add commands "set/show remote
12706 hardware-watchpoint-limit" and "set/show remote
12707 hardware-breakpoint-limit".
12708 (remote_hw_watchpoint_limit): Initialize to -1.
12709 (remote_hw_breakpoint_limit): Ditto.
12710 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12711
1b6bc7e0
CF
127122003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12713
12714 * coff-pe-read.c: New file - support reading of minimal symbols from a
12715 portable executable using the export table.
12716 * coff-pe-read.h: New file.
12717 * coffread.c: Include coff-pe-read.h.
12718 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12719 debugging symbols found.
12720 * Makefile.in (SFILES): Add coff-pe-read.o.
12721 (coff_pe_read_h): Define.
12722 (COMMON_OBS): Add coff-pe-read.o.
12723 (coffread.o): Add coff_pe_read_h dependency.
12724 (coff-pe-read.o): New target.
12725
fe898f56
DC
127262003-02-19 David Carlton <carlton@math.stanford.edu>
12727
12728 * Makefile.in (SFILES): Add block.c.
12729 (block_h): New.
12730 (COMMON_OBS): Add block.o.
12731 (block.o): New.
12732 (x86-64-tdep.o): Add $(block_h).
12733 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12734 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12735 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12736 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12737 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12738 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12739 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12740 * value.h: Add opaque declaration for struct block.
12741 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12742 * ada-lang.h: Ditto.
12743 * x86-64-tdep.c: #include "block.h"
12744 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12745 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12746 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12747 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12748 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12749 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12750 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12751 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12752 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12753 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12754 * symtab.c (block_function): Ditto.
12755 (contained_in): Ditto.
12756 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12757 block.h. Add opaque declaration for struct block.
12758 * symtab.h: Move block_function and contained_in declarations to
12759 block.h. Add opaque declarations for struct block, struct
12760 blockvector.
12761 (struct block): Move to block.h.
12762 (struct blockvector): Ditto.
12763 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12764 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12765 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12766 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12767 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12768 Ditto.
12769 * block.c: New file.
12770 * block.h: New file.
12771
173345b5
TR
127722003-02-19 Theodore A. Roth <troth@openavr.org>
12773
12774 * avr-tdep.c (avr_extract_return_value): Remove function.
12775 (avr_store_return_value): Remove function.
12776 (avr_extract_struct_value_address): Remove function.
12777 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12778
338ef23d
AC
127792003-02-19 Andrew Cagney <ac131313@redhat.com>
12780
12781 * rs6000-tdep.c: Include "gdb_assert.h".
12782 (registers_e500): Add "acc" and "spefscr".
12783 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12784 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12785 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12786 really is "r0".
12787 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12788
5412f5f3
KS
127892003-02-18 Keith Seitz <keiths@redhat.com>
12790
12791 * Makefile.in: Add gdbtk-interps.c.
12792
881324eb
KB
127932003-02-18 Kevin Buettner <kevinb@redhat.com>
12794
12795 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12796 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12797
6a2f5abf
AC
127982003-02-18 Andrew Cagney <cagney@redhat.com>
12799
12800 * symtab.h (struct objfile): Add opaque declaration.
12801
54c7009d
EZ
128022003-02-18 Elena Zannoni <ezannoni@redhat.com>
12803
12804 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12805 * dbxread.c (process_one_symbol): Use last_function_start rather
12806 than function_start_offset to find the real beginning of the
12807 current function. The latter is just the text section offset on
12808 some systems, the former is always the real function start.
54c7009d 12809
7ee6d7eb
AC
128102003-02-17 Andrew Cagney <cagney@redhat.com>
12811
12812 * configure.in: Revert ${target} != ${host}.
12813
2846da9b
AC
128142003-02-17 Andrew Cagney <ac131313@redhat.com>
12815
12816 * configure.in (Makefile): Use the test ${target} != ${host},
12817 instead of the absence of the "nm.h" file, to determine of the
12818 configuration non-native.
12819 * configure: Regenerate.
8ffd9b1b 12820
3b27aeea
EZ
128212003-02-14 Elena Zannoni <ezannoni@redhat.com>
12822
fbe586ae 12823 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12824
12825 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12826 conditionalize tui_active test.
12827 (lookup_cmd_1): Ditto.
12828
b0b1c2c0
MK
128292003-02-14 Mark Kettenis <kettenis@gnu.org>
12830
12831 * configure.in: Add check for _etext.
12832 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12833 available.
12834 * config.in, configure: regenerated.
12835
8f05cde5
DJ
128362003-02-14 Daniel Jacobowitz <drow@mvista.com>
12837
12838 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12839
021e7609
AC
128402003-02-14 Andrew Cagney <ac131313@redhat.com>
12841
12842 * main.c (tui_version): Delete variable.
12843 (captured_main): When --tui, set interpreter_p to "tui" instead of
12844 enabling tui_version.
12845 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12846 tui_version.
12847 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12848 * cli/cli-cmds.c (disassemble_command): Ditto.
12849 * defs.h (tui_version): Delete declaration.
12850 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12851 (tui-interp.o): Add rules.
12852 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12853
e325dcec
CF
128542003-02-14 Christopher Faylor <cgf@redhat.com>
12855
36ffb041 12856 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12857 just-loaded dll.
12858
c4f90d87
JM
128592003-02-12 Jason Molenda (jmolenda@apple.com)
12860
fbe586ae
RH
12861 * symmisc.c (print_objfile_statistics): Include information about
12862 the number of psymtabs and symtabs in each object file.
c4f90d87 12863
e46e5ccd
KS
128642003-02-13 Keith R Seitz <keiths@redhat.com>
12865
12866 * main.h (struct captured_main_args): Add interpreter_p.
12867 * main.c (captured_main): Initialize interpreter_p from context.
12868 * gdb.c (main): Set interpreter_p argument.
12869 * Makefile.in (gdb.o): Add dependency for interps.h.
12870
fe97fe9c
AC
128712003-02-12 Andrew Cagney <ac131313@redhat.com>
12872
12873 * event-top.c (cli_command_loop): Delete declaration.
12874 (_initialize_event_loop): Delete function setting event_loop_hook.
12875 * event-top.h (cli_command_loop): Declare. Update copyright.
12876 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12877 * interps.c (current_interp_command_loop): When event_loop_p, call
12878 cli_command_loop.
12879
1cdac4ef
AC
128802003-02-12 Andrew Cagney <ac131313@redhat.com>
12881
12882 * interps.h (interp_command_loop_ftype): Change return type to
12883 void.
12884
48037ead
ML
128852003-02-12 Michal Ludvig <mludvig@suse.cz>
12886
12887 * x86-64-tdep.c (x86_64_extract_return_value)
12888 (x86_64_store_return_value): Use regcache instead of regbuf.
12889 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12890 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12891
033afc63
AC
128922003-02-11 Andrew Cagney <ac131313@redhat.com>
12893
12894 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12895 * aclocal.m4: Regenerate.
12896 * configure: Regenerate.
12897
12898 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12899 TCL_LD_SEARCH_FLAGS.
12900
40d02bca
ML
129012003-02-10 Michal Ludvig <mludvig@suse.cz>
12902
12903 * dwarf2cfi.c: Reindented.
12904
11308a41
AC
129052003-02-09 Andrew Cagney <ac131313@redhat.com>
12906
12907 * interps.c (clear_interpreter_hooks): Convert function definition
12908 to ISO C.
12909
e1c1c0f6
DC
129102003-02-07 David Carlton <carlton@math.stanford.edu>
12911
12912 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12913
ab5d3da6
KB
129142003-02-07 Kevin Buettner <kevinb@redhat.com>
12915
12916 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12917 (struct type): ...to here.
12918 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12919 field.
12920 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12921 (replace_type): Set length on all type variants for a given type.
12922
b8a92b82
AC
129232003-02-07 Andrew Cagney <ac131313@redhat.com>
12924
12925 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12926 <sys/stat.h>.
12927 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12928
5cb316ef
AC
129292003-02-06 Andrew Cagney <ac131313@redhat.com>
12930
2555fe1a
AC
12931 * Makefile.in (symm-nat.o): Update dependencies.
12932 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12933 (lynx-nat.o, ia64-linux-nat.): Ditto.
12934 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12935 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12936 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12937
44270758
AC
12938 * Makefile.in (inflow_h): Define.
12939 (procfs.o, inflow.o, procfs.o): Update dependencies.
12940 * inftarg.c (child_stop): Delete extern declaration of
12941 inferior_process_group. Include "inflow.h".
12942 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12943 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12944 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12945 (our_process_group, inferior_process_group): Extern declarations.
12946
df8f7274
AC
12947 * procfs.c: Include "gdb_assert.h".
12948
5cb316ef
AC
12949 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12950 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12951 * jv-typeprint.c (java_type_print_base): Ditto.
12952 * typeprint.c (typedef_print): Eliminate STREQ.
12953 * cli/cli-script.c (define_command, define_command): Ditto.
12954 * main.c (captured_main): Ditto.
12955 * values.c (lookup_internalvar): Ditto.
12956 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12957 within `if' conditional.
12958 * linespec.c (decode_line_2): Ditto.
12959 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12960 (bfd_openw_with_cleanup): Ditto.
12961
2a28ccea
MK
129622003-02-07 Mark Kettenis <kettenis@gnu.org>
12963
12964 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12965 legacy_extract_return_value and store_return_value to
12966 legacy_return_value.
12967
786b8124
CF
129682003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12969
12970 * win32-nat.c (get_relocated_section_addrs): New function. Find
12971 section load addresses for symbol handling in relocated DLLs.
12972 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12973
b871e4ec
FF
129742003-02-05 Fred Fish <fnf@intrinsity.com>
12975
12976 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12977 '=' and '!='.
12978 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12979 with '&' and '=='.
12980 (angel_RDI_info): Ditto.
12981 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12982 with '&' and '!='.
12983 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12984
4389a95a 129852003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12986 Keith Seitz <keiths@redhat.com>
12987 Elena Zannoni <ezannoni@redhat.com>
12988 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12989
12990 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12991 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12992 (SUBDIR_MI_OBS): Add "mi-interp.o".
12993 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12994 (SFILES): Add "interps.c".
12995 (COMMON_OBS): Add "interps.o".
12996 (interps_h, mi_main_h): Define.
12997 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12998 (mi-main.o, main.o, event-top.o): Update dependencies.
12999 * cli/cli-interp.c: New file.
13000 * interps.h, interps.c: New files.
13001 * top.c: (gdb_init): Don't install the default interpreter, handed
13002 by captured_main.
13003 * main.c: Include "interps.h".
13004 (interpreter_p): Note that it should malloc'ed.
13005 (captured_command_loop): Call current_interp_command_loop.
13006 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13007 xfree and xstrdup when updating interpreter_p. Install the
13008 default interpreter. Add hack to stop mi1's copyright notice
13009 being encoded.
13010 * event-top.h (gdb_setup_readline): Declare.
13011 (gdb_disable_readline): Declare.
13012 * event-top.c: Include "interps.h".
13013 (display_gdb_prompt): Call current_interp_display_prompt_p.
13014 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13015 gdb_stdlog, and gdb_stdtarg.
13016 (_initialize_event_loop): Don't call gdb_setup_readline.
13017 * cli-out.c (cli_out_set_stream): New function.
13018 * cli-out.h (cli_out_set_stream): Declare.
13019
ff3b5810
MK
130202003-02-06 Mark Kettenis <kettenis@gnu.org>
13021
13022 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13023 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13024 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13025 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13026 config/i386/i386v42mp.mt: Removed.
13027
5b729aa5
MK
130282003-02-05 Mark Kettenis <kettenis@gnu.org>
13029
13030 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13031 GDB_OSABI_SOLARIS.
13032
8cc15142
MC
130332003-02-05 Michael Chastain <mec@shout.net>
13034
13035 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13036 2.12.1 and earlier versions.
13037
5aa5d4b9
AC
130382003-02-05 Andrew Cagney <ac131313@redhat.com>
13039
13040 Remove orphaned hosts, targets and files.
13041 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13042 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13043 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13044 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13045 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13046 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13047 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13048 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13049 * config/sparc/tm-sp64sim.h: Delete.
13050 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13051 hosts.
13052 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13053 mips*-dec-mach3* targets.
13054
b68767c1
MC
130552003-02-04 Michael Chastain <mec@shout.net>
13056
13057 * NEWS: Fix typo: sepcifying -> specifying.
13058
5ae7ca1d
MC
130592003-02-04 Michael Chastain <mec@shout.net>
13060
13061 * dwarfread.c: Add documentation on the state of dwarf-1,
13062 looking towards obsoletion.
13063
d08a4280
MC
130642003-02-03 Michael Chastain <mec@shout.net>
13065
13066 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13067 gdb/testsuite/gdb.c++/pr-1023.exp.
13068
e9be73e4
AC
130692003-02-04 Andrew Cagney <ac131313@redhat.com>
13070
13071 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13072 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13073
13074 * utils.c (init_page_info): Delete reference to MPW in comments.
13075 * main.c (captured_main): Delete #ifdef MPW.
13076
05d57f6f
AC
130772003-02-04 Andrew Cagney <ac131313@redhat.com>
13078
8ffd9b1b 13079 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13080 * monitor.c (monitor_expect): Obsolete reference to m32r.
13081 * configure.tgt: Mark m32r-*-elf* as obsolete.
13082 * MAINTAINERS: Mark m32k as obsolete.
13083 * m32r-rom.c: Obsolete file.
13084 * config/m32r/m32r.mt: Obsolete file.
13085 * config/m32r/tm-m32r.h: Obsolete file.
13086 * m32r-stub.c: Obsolete file.
13087 * m32r-tdep.c: Obsolete file.
13088
8b0e5691
AC
130892003-02-04 Andrew Cagney <ac131313@redhat.com>
13090
13091 * NEWS: Mention that the z8k-zilog-none is obsolete.
13092 * MAINTAINERS: Mark z8k as obsolete.
13093 * configure.tgt: Obsolete the z8k-*-coff* target.
13094 * config/z8k/z8k.mt: Obsolete file.
13095 * config/z8k/tm-z8k.h: Obsolete file.
13096 * z8k-tdep.c: Obsolete file.
13097
67f16606
AC
130982003-02-04 Andrew Cagney <ac131313@redhat.com>
13099
13100 * NEWS: Mention that the mn10200-elf is obsolete.
13101 * configure.tgt: Obsolete mn10200-*-* target.
13102 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13103 mention that the mn10200 is obsolete.
13104 * breakpoint.h: Ditto.
13105 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13106 * config/mn10200/mn10200.mt: Obsolete file.
13107 * config/mn10200/tm-mn10200.h: Obsolete file.
13108 * mn10200-tdep.c: Obsolete file.
13109
fd2299bd
AC
131102003-02-04 Andrew Cagney <ac131313@redhat.com>
13111
13112 * MAINTAINERS: Mark h8500 as obsolete.
13113 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13114 * findvar.c (value_from_register): Ditto.
13115 * h8500-tdep.c: Mark file as obsolete.
13116 * config/h8500/h8500.mt: Ditto.
13117 * config/h8500/tm-h8500.h: Ditto.
13118 * NEWS: Mention that h8500 is obsolete.
13119
eb9a305d
DC
131202003-02-04 David Carlton <carlton@math.stanford.edu>
13121
13122 * objfiles.c (allocate_objfile): Always set name. Add comment at
13123 start of function.
13124 * jv-lang.c (get_dynamics_objfile): Add comment.
13125
406fc7fb
DC
131262003-02-04 David Carlton <carlton@math.stanford.edu>
13127
13128 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13129 * printcmd.c (build_address_symbolic): Replace uses of
13130 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13131 SYMBOL_NAME, and asm_demangle.
13132 Update copyright.
13133
93d91629
DC
131342003-02-04 David Carlton <carlton@math.stanford.edu>
13135
13136 * linespec.c (decode_compound): Extract code into
13137 lookup_prefix_sym.
13138 (lookup_prefix_sym): New function.
13139
1c5cb38e
DC
131402003-02-04 David Carlton <carlton@math.stanford.edu>
13141
13142 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13143 FLOAT_COERCION_BADNESS.
13144 * gdbtypes.c (rank_one_type): Replace all uses of
13145 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13146
0cf824c9
JB
131472003-02-04 Jim Blandy <jimb@redhat.com>
13148
13149 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13150 section, let dwarf_macinfo_section point to it, not
13151 dwarf_loc_section.
13152
a2d356b0
DJ
131532003-02-04 Daniel Jacobowitz <drow@mvista.com>
13154
13155 Pointed out by Anton Blanchard <anton@samba.org>.
13156 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13157 (ppc_linux_at_sigtramp_return_path): Use it.
13158
2de7ced7
DJ
131592003-02-04 Daniel Jacobowitz <drow@mvista.com>
13160
13161 * defs.h (streq): Add prototype.
13162 * utils.c (streq): New function.
13163
13164 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13165 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13166 * mdebugread.c (new_symbol): Likewise.
13167 * stabsread.c (define_symbol): Likewise.
13168 * coffread.c (process_coff_symbol): Likewise.
13169 * dwarfread.c (new_symbol): Likewise.
13170
13171 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13172 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13173 here.
13174 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13175 SYMBOL_INIT_DEMANGLED_NAME.
13176 * objfiles.c: Include "hashtab.h".
13177 (allocate_objfile): Call htab_set_functions_ex for the
13178 demangled_names_hash.
13179 (free_objfile): Call htab_delete for the demangled_names_hash.
13180 * objfiles.h (struct htab): Add declaration.
13181 (struct objfile): Add demangled_names_hash.
13182 * symfile.c: Include "hashtab.h".
13183 (reread_symbols): Call htab_delete for the demangled_names_hash.
13184 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13185 SYMBOL_NAME in the bcache.
13186 * symtab.c: Include "hashtab.h". Update comments.
13187 (create_demangled_names_hash, symbol_set_names): New functions.
13188 (symbol_find_demangled_name): New function, broken out from
13189 symbol_init_demangled_names.
13190 (symbol_init_demangled_names): Use it.
13191 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13192 (SYMBOL_SET_NAMES): New macro.
13193 (symbol_set_names): Add prototype.
13194
15831452
JB
131952003-02-03 Jim Blandy <jimb@redhat.com>
13196
13197 Use a single, consistent representation for an empty minimal
13198 symbol table in an objfile.
13199 * objfiles.c (terminate_minimal_symbol_table): New function.
13200 (allocate_objfile): Call it.
13201 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13202 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13203 non-NULL.
15831452
JB
13204 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13205 objfile has minimal symbols, compare minimal_symbol_count to zero,
13206 instead of comparing msymbols with NULL.
13207 * objfiles.c (have_minimal_symbols): Same.
13208 * solib-sunos.c (solib_add_common_symbols): Call
13209 terminate_minimal_symbol_table.
13210 * symfile.c (reread_symbols): Same.
8ffd9b1b 13211
ffc65945
KB
132122003-02-03 Kevin Buettner <kevinb@redhat.com>
13213
13214 * s390-tdep.c (s390_address_class_type_flags)
13215 (s390_address_class_type_flags_to_name)
13216 (s390_address_class_name_to_type_flags): New functions.
13217 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13218 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13219
f211c6d4
MS
132202003-02-03 Michael Snyder <msnyder@redhat.com>
13221
13222 * arm-tdep.c: Fix spell-o in comment.
13223
659b0389
ML
132242003-02-03 Michal Ludvig <mludvig@suse.cz>
13225
13226 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13227 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13228 error messages to contain BFD filename.
659b0389 13229
3b31d625
EZ
132302003-02-02 Elena Zannoni <ezannoni@redhat.com>
13231
997b089a 13232 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13233 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13234 (do_mixed_source_and_assembly): Use
13235 make_cleanup_ui_out_tuple_begin_end and
13236 make_cleanup_ui_out_tuple_begin_end.
13237 (do_mixed_source_and_assembly): Ditto.
13238 * thread.c (do_captured_list_thread_ids): Ditto.
13239 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13240 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13241 ui_out_tuple_end): Delete prototypes.
13242 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13243 ui_out_list_end, ui_out_tuple_end): Delete.
13244
13245 From Kevin Buettner <kevinb@redhat.com>:
13246 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13247 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13248 (do_cleanup_table_end): New functions.
13249 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13250 Use cleanups to invoke_ui_out_tuple_end().
13251 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13252 * cli/cli-setshow.c (cmd_show_list): Use
13253 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13254
5b181d62
AC
132552003-02-02 Andrew Cagney <ac131313@redhat.com>
13256
13257 * frame.c (frame_unwind_register): New function.
13258 (frame_unwind_unsigned_register): Use.
13259 (frame_unwind_signed_register): Use.
13260 (frame_read_register): New function.
13261 * frame.h (frame_unwind_register): Declare.
13262 (frame_read_register): Declare.
13263
13264 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13265 and frame_unwind_register instead of read_memory, write_register
13266 and deprecated_write_register_bytes.
13267
5f601589
AC
132682003-02-02 Andrew Cagney <ac131313@redhat.com>
13269
13270 * frame.h: Note that namelen can be negative.
13271 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13272 NAME's length.
13273
13274 * NEWS: Mention that the d10v's `regs' command is deprecated.
13275 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13276 (d10v_print_registers_info): New function.
13277 (show_regs): Call d10v_print_registers_info.
13278 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13279
6a3fe0a4
MK
132802003-02-02 Mark Kettenis <kettenis@gnu.org>
13281
13282 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13283 lost in the previous patch.
13284
075559bc
AC
132852003-02-01 Andrew Cagney <ac131313@redhat.com>
13286
13287 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13288 * stack.c (print_frame_info_base): Output complete FRAME tuple
13289 for synthesized frames.
075559bc 13290
6789195b
AC
132912003-02-02 Andrew Cagney <ac131313@redhat.com>
13292
13293 * mips-nat.c (zerobuf): Delete.
13294 (fetch_inferior_registers): Alloc local zerobuf.
13295 (fetch_core_registers): Alloc local zerobuf.
13296 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13297 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13298 * thread-db.c (thread_db_store_registers): Ditto.
13299 * sh-tdep.c (sh_do_register): Ditto.
13300 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13301 * remote-sim.c (gdbsim_store_register): Ditto.
13302 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13303 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13304 * monitor.c (monitor_supply_register): Ditto.
13305 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13306 * mips-nat.c (fetch_inferior_registers): Ditto.
13307 * m68klinux-nat.c (fetch_register): Ditto.
13308 * lynx-nat.c (fetch_inferior_registers): Ditto.
13309 (fetch_inferior_registers): Ditto.
13310 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13311 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13312 (hpux_thread_store_registers): Ditto.
13313 * hppah-nat.c (fetch_register): Ditto.
13314 * hppab-nat.c (fetch_register): Ditto.
13315 * hppa-tdep.c (pa_register_look_aside): Ditto.
13316 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13317 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13318
e669114a
AC
133192003-02-01 Andrew Cagney <ac131313@redhat.com>
13320
13321 * gdbarch.sh: Explictly specify all method levels. When a
13322 variable with an empty level, provide a non-multi-arch default.
13323 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13324 * gdbarch.h: Re-generate.
13325 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13326 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13327
9a043c1d
AC
133282003-02-01 Andrew Cagney <ac131313@redhat.com>
13329
13330 * defs.h (host_pointer_to_address): Delete declaration.
13331 (address_to_host_pointer): Delete declaration.
13332 * utils.c (host_pointer_to_address): Delete function.
13333 (address_to_host_pointer): Delete function.
13334 * procfs.c (procfs_address_to_host_pointer): New function.
13335 * procfs.c (proc_set_watchpoint): Use.
13336 (procfs_can_use_hw_breakpoint): Update comments.
13337 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13338 (som_solib_add): Use.
13339 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13340 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13341
7ca9f392
AC
133422003-02-01 Andrew Cagney <ac131313@redhat.com>
13343
94bbfd30
AC
13344 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13345 strlen d_name.
13346
7ca9f392
AC
13347 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13348 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13349 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13350 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13351 (define_symbol): Update.
13352 * symfile.c (generic_load): Remove references to nindy.
13353 * symtab.c: Remove references to nindy.
13354
31a85ea2
AC
133552003-02-01 Andrew Cagney <ac131313@redhat.com>
13356
13357 * infcmd.c (print_float_info): Delete code conditional on
13358 FLOAT_INFO.
13359 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13360 * config/m68k/nm-apollo68b.h: Ditto.
13361 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13362 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13363 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13364
f6e85fc8
MK
133652003-02-01 Mark Kettenis <kettenis@gnu.org>
13366
6015b6a0
MK
13367 * config/i386/tm-i386os9k.h: Removed.
13368
f7a30bdf
MK
13369 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13370 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13371 they're identical to i[3456]86-*-sysv* now.
13372 * config/i386/i386v32.mh: Removed.
13373 * config/i386/xm-i386v32.h: Removed.
13374 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13375
28d52111
MK
13376 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13377
4d3f6bce
MK
13378 * config/i386/i386dgux.mh: Removed.
13379 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13380
f6e85fc8
MK
13381 * configure.in: Fix typo.
13382 * configure: Regenerated.
13383
53955967
DC
133842003-01-31 David Carlton <carlton@math.stanford.edu>
13385
13386 * dwarf2read.c (dwarf2_locate_sections): Set
13387 dwarf_ranges_section.
13388
b1364885
AC
133892003-01-31 Andrew Cagney <ac131313@redhat.com>
13390
8dbb1c65
AC
13391 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13392 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13393
8731e58e
AC
13394 * utils.c: Re-indent.
13395
b1364885
AC
13396 * config/djgpp/fnchange.lst: Delete nindy files.
13397 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13398 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13399 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13400 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13401 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13402 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13403 * Makefile.in (init.c): Remove nindy references.
13404 (saber_gdb): Delete rule.
13405 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13406 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13407 and a68v-nat.c.
13408 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13409 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13410 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13411 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13412 nindy-share/stop.h.
13413 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13414 * saber.suppress: Delete file.
13415
086df311
DJ
134162003-01-31 Daniel Jacobowitz <drow@mvista.com>
13417
13418 * dbxread.c (stabs_data): New static variable.
13419 (fill_symbuf): Support an in-memory buffer for stabs data.
13420 (stabs_seek): New function.
13421 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13422 (read_ofile_symtab): Use stabs_seek.
13423 (elfstab_build_psymtabs): Take an asection* instead of
13424 an offset and size. Relocate the stabs data if necessary.
13425 Save the section* for dbx_psymtab_to_symtab.
13426 * dwarf2read.c: Add section variables for each debug section.
13427 (dwarf2_locate_sections): Fill them in.
13428 (dwarf2_read_section): Take an asection* argument.
13429 Relocate the section contents if necessary.
13430 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13431 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13432 it to dwarf2_read_section.
13433 (dwarf2_build_frame_info): Update callers.
13434 * elfread.c (elf_symfile_read): Update call to
13435 elfstab_build_psymtabs.
13436 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13437 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13438 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13439 * symfile.c (symfile_dummy_outputs): New function.
13440 (symfile_relocate_debug_section): New function.
13441 * symfile.h (symfile_relocate_debug_section): Add prototype.
13442
87d1b352
RH
134432003-01-31 Richard Henderson <rth@redhat.com>
13444
13445 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13446 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13447 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13448 * alpha-tdep.c (alpha_register_name): Add "unique".
13449 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13450 (ALPHA_UNIQUE_REGNUM): New.
13451 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13452
c48861fb
AC
134532003-01-31 Andrew Cagney <ac131313@redhat.com>
13454
13455 * README: Remove reference to Ericsson 1800 monitor.
13456 * Makefile.in (remote-es.o): Delete rule.
13457 (ALLDEPFILES): Delete remote-es.c.
13458 * remote-es.c: Delete file.
13459 * config/m68k/es1800.mt: Delete file.
13460 * config/djgpp/fnchange.lst: Update.
13461 * configure.tgt: Delete m68*-ericsson-* target.
13462
d764a824
AF
134632003-01-31 Adam Fedor <fedor@gnu.org>
13464
13465 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13466 Remove duplicate/shadowing variable of same name.
13467
fe36c4f4
JB
134682003-01-30 Jim Blandy <jimb@redhat.com>
13469
13470 * symfile.c (find_separate_debug_file): Assert that the objfile's
13471 directory name we compute ends with a slash, and then assume that
13472 that's so everywhere we use it.
13473
cb741690
DJ
134742003-01-30 Daniel Jacobowitz <drow@mvista.com>
13475
13476 * valops.c (value_assign): Flush frame cache after stores to memory
13477 also.
13478
96ee5227
AC
134792003-01-30 Andrew Cagney <ac131313@redhat.com>
13480
13481 * Makefile.in (mon960-rom.o): Delete rule.
13482 * mon960-rom.c: Delete file.
13483
7f6104a9
AC
134842003-01-30 Andrew Cagney <ac131313@redhat.com>
13485
13486 * d10v-tdep.c: Include "frame-unwind.h".
13487 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13488 list.
13489 (next_addr, uses_frame): Delete.
13490 (struct d10v_unwind_cache): Define.
13491 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13492 Use info instead of next_addr and uses_frame globals.
13493 (d10v_frame_init_saved_regs): Delete function.
13494 (d10v_init_extra_frame_info): Delete function.
13495 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13496 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13497 init_frame_pc or frame_saved_pc.
13498 (d10v_pop_frame): Delete function.
13499 (do_d10v_pop_frame): Delete function.
13500 (d10v_frame_chain): Delete function.
13501 (d10v_frame_chain_valid): Delete function.
13502 (d10v_frame_pc_unwind): New function.
13503 (d10v_frame_id_unwind): New function.
13504 (saved_regs_unwinder): New function.
13505 (d10v_frame_register_unwind): New function.
13506 (d10v_frame_pop): New function.
13507 (d10v_frame_unwind): New variable.
13508 (d10v_frame_p): New function.
13509 (d10v_frame_saved_pc): Delete function.
13510 * Makefile.in (d10v-tdep.o): Update dependencies.
13511
cad2e848
JB
135122003-01-30 J. Brobecker <brobecker@gnat.com>
13513
13514 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13515 causing some regressions due to a change in the default value
13516 for this macro.
13517
af34e669
DJ
135182003-01-29 Richard Henderson <rth@redhat.com>
13519 Elena Zannoni <ezannoni@redhat.com>
13520 Daniel Jacobowitz <drow@mvista.com>
13521
13522 Fix PR gdb/961.
8ffd9b1b 13523 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13524 variables.
13525 (RANGES_SECTION): New.
13526 (dwarf_ranges_buffer): New variable.
13527 (struct comp_unit_head): Add member "die".
13528 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13529 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13530 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13531 (dwarf2_locate_sections): Likewise.
13532 (dwarf2_build_psymtabs): Read .debug_ranges.
13533 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13534 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13535 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13536 Look for DW_AT_ranges and return the bounding box.
13537
baa93fa6
CF
135382003-01-29 Brian Ford <ford@vss.fsi.com>
13539
13540 * win32-nat.c (cygwin_pid): Removed as unused.
13541 (child_attach): Try fall back to Cygwin pid.
13542
c63f977f
JB
135432003-01-29 Jim Blandy <jimb@redhat.com>
13544
13545 * objfiles.h (struct objfile): Doc fix.
13546
d62d1979
AC
135472003-01-29 Andrew Cagney <ac131313@redhat.com>
13548
13549 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13550 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13551 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13552 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13553 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13554 (FRAME_SAVED_PC): Change to a function with predicate.
13555 * gdbarch.h, gdbarch.c: Re-generate.
13556
1ae18a04
AC
135572003-01-28 Andrew Cagney <ac131313@redhat.com>
13558
52287340
AC
13559 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13560
1ae18a04
AC
13561 * complaints.c (complain): Delete function.
13562 * complaints.h (struct deprecated_complaint): Delete definition.
13563 (complain): Delete declaration.
13564
f2c16bd6
KB
135652003-01-28 Kevin Buettner <kevinb@redhat.com>
13566
13567 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13568 dummy frames.
13569
a94dd1fd
AC
135702003-01-27 Andrew Cagney <ac131313@redhat.com>
13571
13572 * sentinel-frame.h, sentinel-frame.c: New files.
13573 * Makefile.in (frame.o): Update dependencies.
13574 (SFILES): Add sentinel-frame.c.
13575 (sentinel_frame_h): Define.
13576 (COMMON_OBS): Add sentinel-frame.o.
13577 (sentinel-frame.o): Specify dependencies.
13578 * frame.c: Include "sentinel-frame.h".
13579 (frame_register_unwind): Rewrite assuming that there is always a a
13580 ->next frame.
13581 (frame_register, generic_unwind_get_saved_register): Ditto.
13582 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13583 (create_sentinel_frame, unwind_to_current_frame): New functions.
13584 (get_current_frame): Rewrite using create_sentinel_frame and
13585 unwind_to_current_frame. When possible, always create a frame.
13586 (create_new_frame): Set next to the sentinel frame.
13587 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13588 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13589 ID cache when necessary.
13590 (frame_saved_regs_id_unwind): Use frame_relative_level.
13591 (deprecated_generic_get_saved_register): Use frame_relative_level,
13592 get_frame_saved_regs, get_frame_pc, get_frame_base and
13593 get_next_frame.
13594 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13595 frame_register.
13596
5378adc4
DJ
135972003-01-27 Daniel Jacobowitz <drow@mvista.com>
13598
13599 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13600
51ee2ddc
DJ
136012003-01-27 Daniel Jacobowitz <drow@mvista.com>
13602
13603 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13604 (maintenance_set_profile_cmd): Use error () instead of warning ().
13605
d9feb4e7
DJ
136062003-01-27 Daniel Jacobowitz <drow@mvista.com>
13607
13608 * configure.in: Check that -pg works if using --enable-profiling.
13609 Check for monstartup and _mcleanup regardless of --enable-profiling.
13610 * maint.c: Check for monstartup and _mcleanup before using them.
13611 * config.in: Regenerated.
13612 * configure: Regenerated.
13613
2d188dd3
NC
136142003-01-24 Nick Clifton <nickc@redhat.com>
13615
13616 * Add sh2e support:
13617
13618 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13619
13620 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13621 (sh2e_show_regs): New.
13622 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13623 * config/sh/tm-sh.h: Added sh2e to comments.
13624
cb3c37b2
JB
136252003-01-23 Jim Blandy <jimb@redhat.com>
13626
13627 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13628 symbols found)" message here; we haven't checked for a separate
13629 debug info file yet, so we don't know yet.
13630 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13631 we've looked everywhere. Also, there's no need to print a special
13632 message when we're loading the separate debug info file: the one
13633 symbol_file_add prints is fine.
13634
5b5d99cf
JB
136352003-01-23 Alexander Larsson <alexl@redhat.com>
13636 Jim Blandy <jimb@redhat.com>
13637
13638 Add support for executables whose debug info has been separated
13639 out into a separate file, leaving only a link behind.
13640 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13641 and separate_debug_objfile_backlink.
13642 (put_objfile_before): New declaration.
13643 * symfile.c: #include "filenames.h".
13644 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13645 debug info in a separate file, read that, too. Save the addrs
13646 argument, so we can use it again to read the separated debug info;
13647 syms_from_objfile modifies the table we pass it.
13648 (reread_symbols): After re-reading an objfile, call
13649 reread_separate_symbols to refresh its separate debug info
13650 objfile, if it has one.
13651 (reread_separate_symbols, find_separate_debug_file,
13652 get_debug_link_info, separate_debug_file_exists): New functions.
13653 (debug_file_directory): New global var.
13654 (_initialize_symfile): Initialize debug_file_directory, and
13655 provide the new `set debug-file-directory' command to let the user
13656 change it.
13657 * objfiles.c (free_objfile): If this objfile has its debug info in
13658 a separate objfile, free that one too. If this is itself a
13659 separate debug info objfile, clear our parent's backlink.
13660 (put_objfile_before): New function.
13661 * utils.c (gnu_debuglink_crc32): New function.
13662 * defs.h (gnu_debuglink_crc32): New declaration.
13663 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13664 * configure.in: Handle --with-separate-debug-dir config option.
13665 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13666 * acconfig.h (DEBUGDIR): New macro.
13667 * configure, aclocal.m4, config.in: Regenerated.
13668
7e8580c1
JB
136692003-01-22 Jim Blandy <jimb@redhat.com>
13670
7904e09f
JB
13671 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13672 like the old symbol_file_add, but taking new arguments: you can
13673 now pass in either a `struct section_addr_info' list to say where
13674 each section is loaded, or a `struct section_offsets' table. Pass
13675 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13676 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13677 with the appropriate quiescent values for the new arguments.
13678
7e8580c1
JB
13679 * symfile.c: #include "gdb_assert.h".
13680 (syms_from_objfile): Add the ability to pass in a section offset
13681 table directly, as an alternative to the section_addr_info table.
13682 Document arguments better.
13683 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13684 * symfile.h (syms_from_objfile): Update declaration.
13685 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13686 syms_from_objfile.
13687 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13688
d28f9cdf
DJ
136892003-01-22 Daniel Jacobowitz <drow@mvista.com>
13690
13691 Original patch by Tom Tromey <tromey@cygnus.com> and
13692 Jason Molenda <jmolenda@apple.com>.
13693 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13694 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13695 * NEWS: Mention profiling.
13696 * configure.in (--enable-gdbtk): Fix typo.
13697 (--enable-profiling): New. Set PROFILE_CFLAGS.
13698 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13699 Fill in function.
13700 (profiling_state): New variable.
13701 (mcleanup_wrapper): New function.
13702 (_initialize_maint): Remove NOTYET, fix call to
13703 add_setshow_boolean_cmd for "maint set profile".
13704 * configure: Regenerated.
13705
df21e465
MH
137062003-01-21 Martin M. Hunt <hunt@redhat.com>
13707
13708 * Makefile.in (install-gdbtk): Install PNG images too.
13709
73c1f219
AC
137102003-01-21 Andrew Cagney <ac131313@redhat.com>
13711
13712 * exec.c (text_start): Delete global variable.
13713 (exec_file_attach): Make text_start local to the function.
13714 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13715 * valops.c (hand_function_call): Delete code that handles
13716 BEFORE_TEXT_END and AFTER_TEXT_END.
13717 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13718 of CALL_DUMMY_LOCATION.
13719 * gdbarch.c: Regenerate.
13720 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13721 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13722 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13723 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13724 (text_end): Delete extern declaration.
13725
eb4f72c5
AC
137262003-01-21 Andrew Cagney <ac131313@redhat.com>
13727
13728 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13729 * blockframe.c (backtrace_below_main): Move to "frame.c".
13730 (frame_chain_valid): Delete check for backtrace_below_main.
13731 (_initialize_blockframe): Delete initialization, move ``set
13732 backtrace-below-main'' command to "frame.c".
13733 (do_flush_frames_sfunc): Delete function.
13734 * frame.c: Include "command.h" and "gdbcmd.h".
13735 (frame_type_from_pc): New function.
13736 (create_new_frame): Use frame_type_from_pc.
13737 (legacy_get_prev_frame): New function.
13738 (get_prev_frame): Rewrite. When an old style frame, call
13739 legacy_get_prev_frame. Otherwize, unwind the PC first.
13740 (_initialize_frame): Add ``set backtrace-below-main'' command.
13741 * Makefile.in (frame.o): Update dependencies.
13742
778ce8cc
AC
137432003-01-19 Andrew Cagney <ac131313@redhat.com>
13744
13745 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13746 DEPRECATED_REGISTERS_INFO.
13747
01c193c8
AC
137482003-01-19 Andrew Cagney <ac131313@redhat.com>
13749
13750 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13751 Maintainers'. Update `Various Maintainers'.
13752
dedc2a2b
AC
137532003-01-19 Andrew Cagney <ac131313@redhat.com>
13754
13755 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13756 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13757 Suppress actual parameters when `-'.
13758 * gdbarch.h, gdbarch.c: Regenerate.
13759
b7261c70
AC
137602003-01-19 Andrew Cagney <ac131313@redhat.com>
13761
13762 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13763 code handling dummy frames.
13764
dbe9fe58
AC
137652003-01-19 Andrew Cagney <ac131313@redhat.com>
13766
13767 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13768 (struct frame_unwind): Add field pop.
13769 * frame.h (frame_pop): Declare.
13770 * frame.c (frame_saved_regs_pop): New function.
13771 (trad_frame_unwinder): Add frame_saved_regs_pop.
13772 (frame_pop): New function.
13773 * dummy-frame.c (dummy_frame_pop): New function.
13774 (discard_innermost_dummy): New function.
13775 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13776 (dummy_frame_unwind): Add dummy_frame_pop.
13777 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13778 * valops.c (hand_function_call): Ditto.
13779 * stack.c (return_command): Ditto.
13780
570b8f7c
AC
137812003-01-18 Andrew Cagney <ac131313@redhat.com>
13782
13783 * cris-tdep.c: Fix function declaration indentation.
13784 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13785 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13786 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13787 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13788 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13789 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13790
137912003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13792
13793 * README (Unpacking and Installation -- quick overview):
13794 Warn against ".../gdb-5.3/gdb/configure".
13795
494cca16
AC
137962003-01-18 Andrew Cagney <ac131313@redhat.com>
13797
13798 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13799 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13800 (struct frame_unwind): Declare opaque.
13801 (dummy_frame_p): Declare function.
13802 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13803 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13804 * dummy-frame.c: Include "frame-unwind.h".
13805 (dummy_frame_p): New function.
13806 (dummy_frame_unwind): New variable.
13807 * frame.c: Include "frame-unwind.h".
13808 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13809 to use the new unwind field.
13810 (set_unwind_by_pc): Delete function.
13811 (create_new_frame, get_prev_frame): Set unwind field using
13812 frame_unwind_find_by_pc.
13813 (trad_frame_unwind, trad_frame_unwinder): New variables.
13814 * frame.h (trad_frame_unwind): Declare variable.
13815 (frame_id_unwind_ftype): Delete declaration.
13816 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13817 (struct frame_unwind): Declare opaque.
13818 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13819 register_unwind with a single unwind pointer.
13820 * frame-unwind.h, frame-unwind.c: New files.
13821 * Makefile.in (SFILES): Add frame-unwind.c.
13822 (frame_unwind_h): Define.
13823 (COMMON_OBS): Add frame-unwind.o.
13824 (frame-unwind.o): Specify dependencies.
13825 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13826
4efb68b1
AC
138272003-01-18 Andrew Cagney <ac131313@redhat.com>
13828
13829 * ada-valprint.c: Eliminate PTR.
13830 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13831 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13832 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13833 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13834 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13835 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13836 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13837
a84d24ee
AC
138382003-01-17 Andrew Cagney <ac131313@redhat.com>
13839
762f08a3
AC
13840 * main.c (captured_main): Don't use PTR.
13841 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13842 * gdbtypes.c (lookup_primitive_typename): Ditto.
13843 (lookup_struct_elt_type): Ditto.
13844 * f-valprint.c (info_common_command): Ditto.
13845 (list_all_visible_commons): Ditto.
13846 * jv-typeprint.c (java_type_print_base): Ditto.
13847
a84d24ee
AC
13848 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13849 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13850 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13851 i386-interix-nat.c and i386-interix-tdep.c. Rename
13852 m68klinux-nat.c and m68klinux-tdep.c. Rename
13853 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13854 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13855 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13856 * main.c (captured_main): Use xfree, not free.
13857
c170fb60
AC
138582003-01-16 Andrew Cagney <ac131313@redhat.com>
13859
13860 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13861 ID back using a parameter.
13862 * frame.c (frame_id_unwind): Update call.
13863 (frame_saved_regs_id_unwind): Update.
13864 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13865 * dummy-frame.h (struct frame_id): Add opaque declaration.
13866 (dummy_frame_id_unwind): Update declaration.
13867
867f3898
AC
138682003-01-15 Andrew Cagney <ac131313@redhat.com>
13869
13870 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13871
40622be8 138722003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13873
40622be8 13874 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13875
ae66c1fc
EZ
138762003-01-14 Elena Zannoni <ezannoni@redhat.com>
13877
997b089a 13878 Fix PR gdb/898
ae66c1fc
EZ
13879 * breakpoint.c (until_break_command): Add new argument. Use it to
13880 decide whether to stop only at the current frame or not.
13881 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13882 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13883 call.
13884 (advance_command): New function.
13885 (_initialize_infcmd): Update help string for 'until' command.
13886 Add new 'advance' command.
13887
a04257e6
DC
138882003-01-14 David Carlton <carlton@math.stanford.edu>
13889
13890 * linespec.c (decode_line_1): Normalize comments.
13891 (set_flags): Ditto.
13892 (locate_first_half): Ditto.
13893 (decode_compound): Ditto.
13894 (symtab_from_filename): Ditto.
13895 (decode_all_digits): Ditto.
13896 (decode_dollar): Ditto.
13897 (find_methods): Ditto.
13898 (find_toplevel_char): Ditto.
13899
1bac305b
AC
139002003-01-13 Andrew Cagney <ac131313@redhat.com>
13901
13902 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13903 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13904 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13905 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13906 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13907 * language.c, language.h, m32r-tdep.c: Update copyright.
13908 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13909 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13910 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13911 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13912 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13913 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13914
25caa7a8
EZ
139152003-01-13 Elena Zannoni <ezannoni@redhat.com>
13916
13917 * stabsread.h (process_later, resolve_cfront_continuation):
13918 Obsolete.
13919 Update copyright years.
13920 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13921 Update copyright year.
13922 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13923 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13924 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13925 Update copyright year.
13926 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13927 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13928 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13929 (parse_partial_symbols): Obsolete cfront support.
13930 * stabsread.c
13931 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13932 macros.
13933 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13934 read_cfront_baseclasses, read_cfront_member_functions,
13935 resolve_cfront_continuation,read_cfront_static_fields,
13936 copy_cfront_struct_fields): Obsolete functions.
13937 (define_symbol, read_one_struct_field): Obsolete cfront support.
13938 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13939 Update Copyright year.
13940
7789c6f5
EZ
139412003-01-13 Elena Zannoni <ezannoni@redhat.com>
13942
13943 * stack.c (print_frame_info, print_stack_frame_base_stub,
13944 print_stack_frame_base, show_and_print_stack_frame_stub,
13945 show_and_print_stack_frame, print_only_stack_frame_stub,
13946 print_only_stack_frame): Delete functions.
13947 (print_stack_frame_stub): Call print_frame_info instead of
13948 print_frame_info_base.
13949 (print_frame_info_base): Rename to print_frame_info.
13950 (backtrace_command_1): Call print_frame_info, instead of
13951 print_frame_info_base.
13952 (current_frame_command): Call print_stack_frame, instead of
13953 print_only_stack_frame.
13954 (frame_command): Call print_stack_frame, instead of
13955 show_and_print_stack_frame.
13956 (up_command): Ditto.
13957 (down_command): Ditto.
13958 * frame.h (print_only_stack_frame): Delete prototype.
13959 * infrun.c (normal_stop): Call print_stack_frame, instead of
13960 show_and_print_stack_frame.
13961 * thread.c (info_threads_command): Call print_stack_frame, instead
13962 of print_only_stack_frame.
13963
3f5a3016
AC
139642003-01-13 Andrew Cagney <ac131313@redhat.com>
13965
d99ba314
AC
13966 * README (Graphical interface to GDB): Update URL. Point at
13967 gdb/links/.
13968
3f5a3016
AC
13969 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13970 version match.
13971
083ae935
DJ
139722003-01-13 Daniel Jacobowitz <drow@mvista.com>
13973
13974 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13975 lines.
13976
5365276c
DJ
139772003-01-13 Daniel Jacobowitz <drow@mvista.com>
13978
13979 * thread-db.c (attach_thread): Prototype.
13980 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13981 thread information (ti), and valid flags (th_valid, ti_valid).
13982 (attach_thread): Move target_pid_to_str call to after the thread
13983 is added to GDB's list. Initialize the cache.
13984 (thread_get_info_callback, thread_db_map_id2thr)
13985 (thread_db_get_info): New functions.
13986 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13987 (thread_db_store_registers, thread_db_thread_alive)
13988 (thread_db_get_thread_local_address): Use them.
13989 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13990 of calling error() for threads in unknown state.
13991
13992 (clear_lwpid_callback): New function.
13993 (thread_db_resume): Use it to clear the cache.
13994
9fc30b6b
DJ
139952003-01-13 Daniel Jacobowitz <drow@mvista.com>
13996
13997 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13998 (resume_callback): Remove dead code.
13999
8f871025
AC
140002003-01-13 Andrew Cagney <ac131313@redhat.com>
14001
14002 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14003 predicate.
14004 * gdbarch.h, gdbarch.c: Regenerate.
14005 * stack.c (frame_info): Only initialize the saved registers when
14006 FRAME_INIT_SAVED_REGS_P.
14007 * frame.c (frame_saved_regs_register_unwind): Assert
14008 FRAME_INIT_SAVED_REGS_P.
14009 (deprecated_generic_get_saved_register): Ditto.
14010
3f565f1e
DJ
140112003-01-13 Daniel Jacobowitz <drow@mvista.com>
14012
14013 * source.c (openp): Squelch warning about "filename".
14014
072b1022
DJ
140152003-01-13 Daniel Jacobowitz <drow@mvista.com>
14016
14017 * source.c (openp): If the file does not exist don't necessarily
14018 search the path.
14019
973ccf8b
DJ
140202003-01-13 Daniel Jacobowitz <drow@mvista.com>
14021
14022 Fix PR gdb/872.
14023 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14024 (integer_types_same_name_p): New function.
14025 (rank_one_type): Use it.
14026 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14027
030292b7
DJ
140282003-01-13 Daniel Jacobowitz <drow@mvista.com>
14029
14030 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14031 variables.
14032 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14033 * configure.in: Add --with-sysroot.
14034 * configure: Regenerated.
14035 * main.c (gdb_sysroot): New variable.
14036 (captured_main): Initialize gdb_sysroot.
14037 * defs.h (gdb_sysroot): New extern declaration.
14038 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14039
afb5d334
MC
140402003-01-12 Michael Chastain <mec@shout.net>
14041
14042 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14043
751ceeb4
MC
140442003-01-12 Michael Chastain <mec@shout.net>
14045
14046 * top.c (print_gdb_version): Bump copyright year to 2003.
14047
94cd26f8
DC
140482003-01-12 David Carlton <carlton@bactrian.org>
14049
14050 * linespec.c (symtab_from_filename): Rename variable 's' to
14051 'file_symtab'.
14052
1ce79225
AC
140532003-01-12 Andrew Cagney <ac131313@redhat.com>
14054
14055 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14056 dummy frame.
14057 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14058
fa1fd571
AC
140592003-01-12 Andrew Cagney <ac131313@redhat.com>
14060
14061 * d10v-tdep.c: Include "gdb_assert.h".
14062 (d10v_store_return_value): Rewrite to match current interface.
14063 (d10v_extract_struct_value_address): Ditto.
14064 (d10v_extract_return_value): Ditto.
14065 (d10v_gdbarch_init): Set store_restore_value,
14066 extract_struct_value_address and extract_return_value.
14067
68b8d23e
JB
140682003-01-12 J. Brobecker <brobecker@gnat.com>
14069
14070 * hpread.c (set_namestring): New procedure replacing the
14071 SET_NAMESTRING macro.
14072 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14073 by calls to set_namestring.
14074
140752003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14076
14077 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14078 a compilation warning.
14079 (hpread_process_one_debug_symbol): Likewise.
14080
88d262ca
DC
140812003-01-10 David Carlton <carlton@math.stanford.edu>
14082
14083 * linespec.c (decode_line_1): Rename variable 's' to
14084 'file_symtab'.
14085 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14086 (decode_dollar): Ditto.
14087 (decode_variable): Ditto.
14088 (symbol_found): Ditto.
14089
86669319
MC
140902003-01-09 Michael Chastain <mec@shout.net>
14091
14092 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14093
616a9dc4
CV
140942003-01-07 Corinna Vinschen <vinschen@redhat.com>
14095
14096 * win32-nat.c (set_process_privilege): New function.
14097 (child_attach): Call set_process_privilege() to enable the
14098 SE_DEBUG_NAME user privilege if available in process token.
14099
3269bcfa
JB
141002003-01-10 J. Brobecker <brobecker@gnat.com>
14101
14102 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14103 compilation error in the previous revision.
14104
2b0ee454
DC
141052003-01-09 David Carlton <carlton@math.stanford.edu>
14106
14107 * linespec.c: Update copyright.
14108
b3ba1b44
DJ
141092003-01-09 Daniel Jacobowitz <drow@mvista.com>
14110
14111 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14112 than inferior_ptid.
14113 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14114
4ef3f3be
AC
141152003-01-09 Andrew Cagney <ac131313@redhat.com>
14116
479ab5a0
AC
14117 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14118 Update comments.
14119 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14120 (frame_saved_regs_zalloc): Update.
14121 (frame_saved_regs_register_unwind): Update.
14122 (create_new_frame): Update.
14123 (get_prev_frame): Update.
14124 (frame_extra_info_zalloc): Update.
14125 (deprecated_get_frame_saved_regs): Update.
14126 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14127 * cris-tdep.c: Update comment.
14128
bde58177
AC
14129 * somsolib.h: Fix function indentation.
14130 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14131 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14132 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14133 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14134 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14135
4ef3f3be
AC
14136 * infrun.c (follow_fork): Use ISO C definition.
14137 * expprint.c (print_subexp): Use xfree instead of free.
14138 * charset.c: Include "gdb_string.h" instead of <string.h>.
14139 (register_iconv_charsets): Use ISO C definition.
14140 (host_charset, target_charset): Ditto.
14141 * Makefile.in (charset.o): Update dependencies.
14142 (mi-cmd-env.o): Update dependencies.
14143
1c615f7a
AC
141442003-01-08 Andrew Cagney <cagney@redhat.com>
14145
14146 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14147 get_frame_base.
14148
c9a1dc08
AC
141492003-01-08 Andrew Cagney <ac131313@redhat.com>
14150
14151 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14152 build directories. Save edited gdb output in Mbuild.log. If a
14153 build fails, remove any final GDB executable.
14154
dbad9d94
AC
141552003-01-08 Andrew Cagney <ac131313@redhat.com>
14156
14157 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14158 replacing hex constants with function names and stripping leading
14159 file name directory prefixes.
14160
8d357cca
AC
141612003-01-08 Andrew Cagney <cagney@redhat.com>
14162
14163 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14164 get_frame_base.
14165
bca02a8a
DC
141662003-01-08 David Carlton <carlton@math.stanford.edu>
14167
14168 * linespec.c (decode_line_1): Move code into decode_variable.
14169 (decode_variable): New function.
14170
7f8ab3a0
AC
141712003-01-08 Andrew Cagney <ac131313@redhat.com>
14172
14173 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14174
7b5849cc
AC
141752003-01-08 Andrew Cagney <cagney@redhat.com>
14176
14177 * cris-tdep.c (cris_frame_init_saved_regs): Use
14178 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14179 saved_regs buffer.
14180 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14181 (sh64_nofp_frame_init_saved_regs): Ditto.
14182 (sh_fp_frame_init_saved_regs): Ditto.
14183 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14184 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14185 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14186 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14187
72a5efb3
DJ
141882003-01-08 Daniel Jacobowitz <drow@mvista.com>
14189
14190 * minsyms.c (lookup_minimal_symbol): Update comment.
14191 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14192 (lookup_minimal_symbol_solib_trampoline): Likewise.
14193
11c02a10
AC
141942003-01-08 Andrew Cagney <cagney@redhat.com>
14195
aab3ea25
AC
14196 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14197 frame_relative_level.
14198
da50a4b7
AC
14199 * alpha-tdep.c: Use get_frame_extra_info.
14200 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14201 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14202 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14203 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14204
11c02a10
AC
14205 * alpha-tdep.c: Use get_next_frame.
14206 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14207 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14208 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14209 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14210 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14211 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14212 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14213
1e2330ba
AC
142142003-01-07 Andrew Cagney <cagney@redhat.com>
14215
14216 * alpha-tdep.c: Use get_frame_base.
14217 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14218 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14219 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14220 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14221 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14222 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14223 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14224 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14225
2d75187b
AC
142262003-01-07 Andrew Cagney <cagney@redhat.com>
14227
14228 * frame.c (deprecated_get_frame_context): New function.
14229 (deprecated_set_frame_context): New function.
14230 * frame.h (deprecated_get_frame_context): Declare.
14231 (deprecated_set_frame_context): Declare.
14232 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14233 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14234
483d36b2
AC
142352003-01-07 Andrew Cagney <cagney@redhat.com>
14236
14237 * frame.c (deprecated_set_frame_next_hack): New function.
14238 (deprecated_set_frame_prev_hack): New function.
14239 * frame.h (deprecated_set_frame_next_hack): Declare.
14240 (deprecated_set_frame_prev_hack): Declare.
14241 * mcore-tdep.c (analyze_dummy_frame): Use
14242 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14243 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14244
14e91ac5
DC
142452003-01-07 David Carlton <carlton@math.stanford.edu>
14246
14247 * linespec.c (decode_line_1): Move code into decode_dollar.
14248 (decode_dollar): New function.
14249
b0c6b05c
AC
142502003-01-07 Andrew Cagney <cagney@redhat.com>
14251
14252 * arm-tdep.c (arm_init_extra_frame_info): Use
14253 deprecated_update_frame_base_hack.
14254 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14255 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14256 (fix_frame_pointer): Ditto.
14257 (mn10300_analyze_prologue): Ditto.
14258
a00a19e9
AC
142592003-01-07 Andrew Cagney <cagney@redhat.com>
14260
14261 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14262 extra_info using frame_extra_info_zalloc.
14263 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14264 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14265 (sh64_init_extra_frame_info): Ditto.
14266 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14267 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14268 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14269 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14270 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14271 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14272 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14273 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14274 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14275 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14276 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14277 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14278
14279 * mn10300-tdep.c (analyze_dummy_frame): Use
14280 deprecated_set_frame_extra_info_hack.
14281 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14282
1fb4c65b
JB
142832003-01-07 J. Brobecker <brobecker@gnat.com>
14284
14285 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14286 class is not scText. These do not define "real" procedures.
14287 (parse_partial_symbols): Likewise.
14288
9fe7d6bf
MS
142892003-01-06 Michael Snyder <msnyder@redhat.com>
14290
14291 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14292
f6c609c4
AC
142932003-01-06 Andrew Cagney <ac131313@redhat.com>
14294
14295 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14296 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14297 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14298 deprecated_frame_xmalloc_with_cleanup.
14299 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14300 deprecated_frame_xmalloc.
14301 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14302 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14303
d995ff4b
AC
143042003-01-06 Andrew Cagney <cagney@redhat.com>
14305
84dc46cb
AC
14306 * x86-64-linux-tdep.c: Include "osabi.h".
14307 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14308
d995ff4b
AC
14309 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14310
66140c26
AC
143112003-01-06 Andrew Cagney <cagney@redhat.com>
14312
14313 * MAINTAINERS (Target Instruction Set Architectures): Update
14314 arm-elf. Can be built with -Werror, has been multiarched.
14315
14316 * value.h (unpack_long): Make buffer parameter constant.
14317 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14318 * scm-lang.h (scm_parse): Ditto.
14319 * defs.h (extract_typed_address, extract_address): Ditto.
14320 (extract_long_unsigned_integer): Ditto.
14321 * inferior.h (unsigned_pointer_to_address): Ditto.
14322 (signed_pointer_to_address): Ditto.
14323 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14324 * gdbarch.h, gdbarch.c: Regenerate.
14325 * findvar.c (extract_long_unsigned_integer): Update.
14326 (extract_address): Update.
14327 (extract_typed_address): Update.
14328 (unsigned_pointer_to_address): Update.
14329 * values.c (unpack_long): Update.
14330 (unpack_double): Update.
14331 (unpack_pointer): Update.
14332 (unpack_field_as_long): Update.
14333 * d10v-tdep.c (d10v_pointer_to_address): Update.
14334 * avr-tdep.c (avr_pointer_to_address): Update.
14335 * scm-lang.c (scm_unpack): Update.
14336 * findvar.c (signed_pointer_to_address): Update.
14337
b089b3da
ML
143382003-01-06 Michal Ludvig <mludvig@suse.cz>
14339
8ffd9b1b 14340 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14341 since it is in i386-tdep.c.
14342
aff87235
JB
143432003-01-06 J. Brobecker <brobecker@gnat.com>
14344
14345 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14346 failure introduced in the previous change.
14347
34f5e845
MC
143482003-01-05 Michael Chastain <mec@shout.net>
14349
14350 * README: Remove references to deleted remote-*.c files:
14351 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14352 remote-nrom.c, remote-os9k.c, remote-udi.c.
14353
28bcfd30
MK
143542003-01-05 Mark Kettenis <kettenis@gnu.org>
14355
14356 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14357 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14358 i386_get_longjmp_target.
14359
15a5b3ee
AC
143602003-01-05 Andrew Cagney <ac131313@redhat.com>
14361
14362 * arm-tdep.c (prologue_cache): Change to a pointer.
14363 (_initialize_arm_tdep): Allocate prologue_cache.
14364 (check_prologue_cache): Update.
14365 (save_prologue_cache): Update.
14366 (arm_gdbarch_init): Update.
14367
c263362b
DJ
143682003-01-04 Daniel Jacobowitz <drow@mvista.com>
14369
14370 * stabsread.c (update_method_name_from_physname): Call complaint()
14371 instead of error.
14372
51603483
DJ
143732003-01-04 Daniel Jacobowitz <drow@mvista.com>
14374
14375 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14376 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14377 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14378
14379 * blockframe.c: Include "gdbcmd.h" and "command.h".
14380 (backtrace_below_main): New variable.
14381 (file_frame_chain_valid, func_frame_chain_valid)
14382 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14383 (generic_func_frame_chain_valid): Remove functions.
14384 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14385 (_initialize_blockframe): New function.
14386 * Makefile.in (blockframe.o): Update dependencies.
14387 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14388 comment. Call frame_chain_valid ().
14389 * frame.h: Remove old prototypes. Add prototype for
14390 frame_chain_valid and update comments to match.
14391 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14392 Remove old comment.
14393 * gdbarch.h: Regenerated.
14394 * gdbarch.c: Regenerated.
14395
14396 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14397 set_gdbarch_frame_chain_valid.
14398 * avr-tdep.c (avr_gdbarch_init): Likewise.
14399 * cris-tdep.c (cris_gdbarch_init): Likewise.
14400 * frv-tdep.c (frv_gdbarch_init): Likewise.
14401 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14402 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14403 (i386_nw_init_abi): Likewise.
14404 (i386_gdbarch_init): Likewise.
14405 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14407 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14408 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14409 * mips-tdep.c (mips_gdbarch_init): Likewise.
14410 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14411 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14412 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14413 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14414 * s390-tdep.c (s390_gdbarch_init): Likewise.
14415 * sh-tdep.c (sh_gdbarch_init): Likewise.
14416 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14417 * v850-tdep.c (v850_gdbarch_init): Likewise.
14418 * vax-tdep.c (vax_gdbarch_init): Likewise.
14419 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14420
14421 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14422 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14423 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14424 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14425 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14426 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14427 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14428 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14429
b00a8037
DJ
144302002-01-04 Daniel Jacobowitz <drow@mvista.com>
14431
14432 * Makefile.in (acconfig_h): Remove incorrect macro.
14433 (config_h): Define.
14434 (osabi.o): Update dependencies.
14435 * configure.tgt: Set gdb_osabi based on target triplet.
14436 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14437 * configure: Regenerated.
14438 * config.in: Regenerated.
14439 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14440 (GDB_OSABI_DEFAULT): Define if not already defined.
14441 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14442 (set_osabi_string): New variables.
14443 (gdbarch_register_osabi): Add new OS ABI to
14444 gdb_osabi_available_names.
14445 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14446 (set_osabi, show_osabi): New functions.
14447 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14448
4be87837
DJ
144492003-01-04 Daniel Jacobowitz <drow@mvista.com>
14450
14451 * arch-utils.c (gdbarch_info_init): Set osabi to
14452 GDB_OSABI_UNINITIALIZED.
14453 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14454 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14455 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14456 * gdbarch.c: Regenerated.
14457 * gdbarch.h: Regenerated.
14458 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14459 there's no BFD.
14460 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14461 * osabi.h (enum gdb_osabi): Move to defs.h.
14462 (gdbarch_init_osabi): Update prototype.
14463 * defs.h (enum gdb_osabi): Moved here.
14464 * Makefile.in: Update dependencies.
14465
14466 * alpha-tdep.h: Don't include "osabi.h".
14467 (struct gdbarch_tdep): Remove osabi member.
14468 * alpha-tdep.c: Include "osabi.h".
14469 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14470 iterate over arches. Update call to gdbarch_init_osabi.
14471 (alpha_dump_tdep): Don't dump osabi.
14472 * alpha-linux-tdep.c: Include "osabi.h".
14473 * alpha-osf1-tdep.c: Include "osabi.h".
14474 * alphafbsd-tdep.c: Include "osabi.h".
14475 * alphanbsd-tdep.c: Include "osabi.h".
14476
14477 * arm-tdep.h: Don't include "osabi.h".
14478 (struct gdbarch_tdep): Remove osabi member.
14479 * arm-tdep.c: Include "osabi.h".
14480 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14481 iterate over arches. Update call to gdbarch_init_osabi.
14482 (arm_dump_tdep): Don't dump osabi.
14483 * arm-linux-tdep.c: Include "osabi.h".
14484 * armnbsd-tdep.c: Include "osabi.h".
14485
14486 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14487 Update call to gdbarch_init_osabi.
14488
14489 * i386-tdep.h: Don't include "osabi.h".
14490 (struct gdbarch_tdep): Remove osabi member.
14491 * i386-tdep.c: Include "osabi.h".
14492 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14493 iterate over arches. Update call to gdbarch_init_osabi.
14494 (i386_dump_tdep): Don't dump osabi.
14495 * i386-linux-tdep.c: Include "osabi.h".
14496 * i386-sol2-tdep.c: Include "osabi.h".
14497 * i386bsd-tdep.c: Include "osabi.h".
14498 * i386gnu-tdep.c: Include "osabi.h".
14499 * i386ly-tdep.c: Include "osabi.h".
14500 * i386nbsd-tdep.c: Include "osabi.h".
14501 * i386obsd-tdep.c: Include "osabi.h".
14502
14503 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14504 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14505 check osabi when iterating over arches. Update call to
14506 gdbarch_init_osabi.
14507 (mips_dump_tdep): Don't dump osabi.
14508
14509 * ns32k-tdep.h: Don't include "osabi.h".
14510 (struct gdbarch_tdep): Remove.
14511 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14512 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14513 allocate tdep. Update call to gdbarch_init_osabi.
14514 (ns32k_dump_tdep): Remove.
14515 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14516 * ns32knbsd-tdep.c: Include "osabi.h".
14517
14518 * ppc-tdep.h: Don't include "osabi.h".
14519 (struct gdbarch_tdep): Remove osabi member.
14520 * rs6000-tdep.c: Include "osabi.h".
14521 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14522 osabi when iterating over arches. Update call to
14523 gdbarch_init_osabi.
14524 (rs6000_dump_tdep): Don't dump osabi.
14525 * ppc-linux-tdep.c: Include "osabi.h".
14526 * ppcnbsd-tdep.c: Include "osabi.h".
14527
14528 * sh-tdep.h: Don't include "osabi.h".
14529 (struct gdbarch_tdep): Remove osabi member.
14530 * sh-tdep.c: Include "osabi.h".
14531 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14532 iterate over arches. Update call to gdbarch_init_osabi.
14533 (sh_dump_tdep): Don't dump osabi.
14534 * shnbsd-tdep.c: Include "osabi.h".
14535
14536 * sparc-tdep.c: Include "osabi.h".
14537 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14538 iterate over arches. Update call to gdbarch_init_osabi.
14539 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14540 tdep structure.
14541
14542 * vax-tdep.h: Don't include "osabi.h".
14543 (struct gdbarch_tdep): Remove.
14544 * vax-tdep.c: Include "osabi.h".
14545 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14546 iterate over arches. Don't allocate tdep. Update call
14547 to gdbarch_init_osabi.
14548 (vax_dump_tdep): Remove.
14549 (_initialize_vax_tdep): Update call to gdbarch_register.
14550
a881cf8e
DJ
145512003-01-04 Daniel Jacobowitz <drow@mvista.com>
14552
14553 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14554 entirely.
14555 (breakpoint_re_set_one): Don't fetch the value for a disabled
14556 watchpoint.
14557
1e698235
DJ
145582003-01-04 Daniel Jacobowitz <drow@mvista.com>
14559
14560 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14561 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14562 (COERCE_FLOAT_TO_DOUBLE): Remove.
14563 * gdbarch.c: Regenerate.
14564 * gdbarch.h: Regenerate.
14565 * Makefile.in: Remove value_h from gdbarch_h.
14566 * valops.c (coerce_float_to_double): New variable.
14567 (default_coerce_float_to_double): Remove.
14568 (standard_coerce_float_to_double): Remove.
14569 (value_arg_coerce): Use coerce_float_to_double.
14570 (_initialize_valops): Add "set coerce-float-to-double".
14571 * value.h (default_coerce_float_to_double): Remove prototype.
14572 (standard_coerce_float_to_double): Remove prototype.
14573
14574 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14575 prototyped.
14576 * mdebugread.c (parse_symbol): Likewise.
14577 * stabsread.c (define_symbol): Mark all functions as prototyped.
14578
14579 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14580 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14581 set_gdbarch_coerce_float_to_double.
14582 * arm-tdep.c (arm_gdbarch_init): Likewise.
14583 * frv-tdep.c (frv_gdbarch_init): Likewise.
14584 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14585 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14586 * mips-tdep.c (mips_gdbarch_init): Likewise.
14587 (mips_coerce_float_to_double): Remove.
14588 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14589 (rs6000_coerce_float_to_double): Remove.
14590 * s390-tdep.c (s390_gdbarch_init): Likewise.
14591 * sh-tdep.c (sh_gdbarch_init): Likewise.
14592 (sh_coerce_float_to_double): Remove.
14593 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14594 (sparc_coerce_float_to_double): Remove.
14595 * v850-tdep.c (v850_gdbarch_init): Likewise.
14596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14597 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14598 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14599 (hppa_coerce_float_to_double): Remove prototype.
14600 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14601
f436a26a
DJ
146022003-01-04 Daniel Jacobowitz <drow@mvista.com>
14603
14604 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14605
248f8055
DJ
146062003-01-04 Daniel Jacobowitz <drow@mvista.com>
14607
14608 Suggested by Stewart Brown <sb24@avaya.com>:
14609 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14610 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14611 (c_type_print_varspec_suffix): Likewise.
14612
72cfdc76
MK
146132003-01-04 Mark Kettenis <kettenis@gnu.org>
14614
bfd260bb
MK
14615 * configure.in: Don't set and AC_SUBST SUBDIRS.
14616 * configure: Regenerated.
14617
72cfdc76
MK
14618 * configure.in: Remove code dealing with shared libraries.
14619 * Makefile.in: Remove HLDFLAGS and HLDENV.
14620 * configure: Regenerated.
14621
c8b8a898
AC
146222003-01-04 Andrew Cagney <ac131313@redhat.com>
14623
14624 * frame.c (deprecated_frame_xmalloc): New function.
14625 (deprecated_set_frame_saved_regs_hack): New function.
14626 (deprecated_set_frame_extra_info_hack): New function.
14627 * frame.h (deprecated_frame_xmalloc): Declare.
14628 (deprecated_set_frame_saved_regs_hack): Declare.
14629 (deprecated_set_frame_extra_info_hack): Declare.
14630
14abd0fb
MK
146312003-01-04 Mark Kettenis <kettenis@gnu.org>
14632
8ee53726
MK
14633 * configure.in: Move code that provides the --enable-gdbtk option
14634 right after the code that handles the --enable-tui option, and
14635 polish it somewhat.
14636 * configure: Regenerated.
14637
14abd0fb
MK
14638 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14639 AC_CHECK_FUNCS and remove the old check for pread64.
14640 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14641 * acconfig.h (_GNU_SOURCE): Add.
14642 (HAVE_PREAD64): Remove.
14643 * configure, aclocal.m4, config.in: Regenerated.
14644
b2fb4676
AC
146452003-01-03 Andrew Cagney <ac131313@redhat.com>
14646
14647 * alpha-tdep.c: Use get_frame_saved_regs.
14648 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14649 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14650 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14651 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14652 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14653
8dcde887
MK
146542003-01-03 Mark Kettenis <kettenis@gnu.org>
14655
14656 * configure.in: Remove all use of the SUBDIRS variable; add
14657 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14658 code providing the --enable-multi-ice option, and move it right in
14659 front of the code that checks whether gdbserver is supported.
14660 Polish that too.
14661 * configure: Regenerated.
14662 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14663 @SUBDIRS@.
14664
8ccd593b
AC
146652003-01-03 Andrew Cagney <cagney@redhat.com>
14666
14667 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14668 * avr-tdep.c, cris-tdep.c: Ditto.
14669 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14670 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14671
91151a06
MK
146722003-01-03 Mark Kettenis <kettenis@gnu.org>
14673
14674 * configure.in: Remove --enable-netrom option.
14675 * configure: Regenerated.
14676
8fe84d01
MK
146772003-01-03 Mark Kettenis <kettenis@gnu.org>
14678
14679 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14680 declaration for `struct re_pattern_buffer' instead.
14681 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14682
f0394be6
JB
146832003-01-03 J. Brobecker <brobecker@gnat.com>
14684
14685 * mdebugread.c (parse_symbol): Count until the stEnd matching
14686 the structure name.
14687
27e9bf90
MK
146882003-01-02 Mark Kettenis <kettenis@gnu.org>
14689
93d331ba
MK
14690 * configure.in: Remove --with-cpu option.
14691 subscripts. Remove evil changequotes here.
14692 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14693 * config.in, configure: Regenerated.
8ffd9b1b 14694
27e9bf90
MK
14695 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14696 * configure.in: Cleanup section that sources GDB and BFD configure
14697 subscripts. Remove evil changequotes here.
14698 * config.in, configure: Regenerated.
14699
50abf9e5
AC
147002003-01-02 Andrew Cagney <ac131313@redhat.com>
14701
14702 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14703 frame accessor methods.
14704 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14705 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14706 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14707 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14708 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14709 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14710 * z8k-tdep.c: Ditto.
8ffd9b1b 14711
287c1a40
MK
147122003-01-02 Mark Kettenis <kettenis@gnu.org>
14713
f5dbc56d
MK
14714 * configure.in: Remove UI_OUT configuration code.
14715 * ada-lang.c: Update assuming UI_OUT is always true.
14716 * Makefile.in (UIOUT_CFLAGS): Remove.
14717 * configure: Regenerated.
14718 * TODO: Remove blurb about elimination of -DUI_OUT.
14719
627af7ea
MK
14720 * configure.in: Move code that provides the --enable-gdbcli,
14721 --enable-gdbmi options right before the code that handles the
14722 --enable-tui option. Polish a bit.
14723 * configure: Regenerated.
14724
06825bd1
MK
14725 * configure.in: Rewrite check for GNU regex and the
14726 --without-included regex option, and move it into the "Checks for
14727 library functions" section. This makes us use the system regex
14728 again by default on systems with version 2 of the GNU C library.
14729 This was apparently broken.
14730 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14731 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14732 * config.in, configure: Regenerated.
14733
287c1a40
MK
14734 * configure.in: Move code that provides the --enable-tui option
14735 before the "Checks for libraries" section. Polish the code
14736 somewhat and set need_curses to yes if we build the TUI. Rewrite
14737 code that looks for a library providing termcap functionality to
14738 match more closely what's done in the Readline library, and move
14739 it into to the "Checks for libraries" section.
14740 * configure: Regenerated.
14741 * Makefile.in (TERMCAP): Remove variable.
14742 * config/i386/go32.mh (TERMCAP): Remove variable.
14743
684e56bf
AC
147442003-01-02 Andrew Cagney <ac131313@redhat.com>
14745
14746 * MAINTAINERS: Mention gdb_mbuild.sh.
14747 * gdb_mbuild.sh: Rewrite.
14748
e1ea1d75
MK
147492003-01-02 Mark Kettenis <kettenis@gnu.org>
14750
14751 * configure.in: Fix typo in last change.
14752 * config.in, configure: Regenerated.
14753
1b831c93
AC
147542003-01-02 Andrew Cagney <ac131313@redhat.com>
14755
14756 * valarith.c (value_binop): Delete obsolete code and comments.
14757 * configure.host: Ditto.
14758 * buildsym.h (make_blockvector): Ditto.
14759 * buildsym.c (make_blockvector): Ditto.
14760 * defs.h (enum language): Ditto.
14761 (chill_demangle): Ditto.
14762 * elfread.c (elf_symtab_read): Ditto.
14763 * dwarfread.c (CHILL_PRODUCER): Ditto.
14764 (set_cu_language): Ditto.
14765 (handle_producer): Ditto.
14766 * expprint.c (print_subexp): Ditto.
14767 * gdbtypes.c (chill_varying_type): Ditto.
14768 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14769 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14770 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14771 (chill_varying_type): Ditto.
14772 * language.h (_LANG_chill): Ditto.
14773 * language.c (binop_result_type, integral_type): Ditto.
14774 (character_type, string_type, structured_type): Ditto.
14775 (lang_bool_type, binop_type_check): Ditto.
14776 * stabsread.h (os9k_stabs): Ditto.
14777 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14778 (define_symbol, read_type, read_struct_fields): Ditto.
14779 (read_array_type, read_enum_type, read_huge_number): Ditto.
14780 (read_range_type, start_stabs): Ditto.
14781 * symfile.c (init_filename_language_table): Ditto.
14782 (add_psymbol_with_dem_name_to_list): Ditto.
14783 * symtab.c (symbol_init_language_specific): Ditto.
14784 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14785 * symtab.h (struct general_symbol_info): Ditto.
14786 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14787 * typeprint.c (typedef_print): Ditto.
14788 * utils.c (fprintf_symbol_filtered): Ditto.
14789 * valops.c (value_cast, search_struct_field, value_slice): Delete
14790 obsolete code.
14791 (varying_to_slice): Delete function.
14792 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14793 (varying_to_slice): Delete declaration.
14794 * MAINTAINERS: Update.
14795
8bb2c122
MK
147962003-01-02 Mark Kettenis <kettenis@gnu.org>
14797
97bf5e38
MK
14798 * configure.in: Reorganize "Checks for library functions section"
14799 a bit. Remove check for `btowc' and `isascii' functions.
14800 * configure: Regenerated.
14801
5ee754fc
MK
14802 * acconfig.h (_MSE_INT_H): Remove.
14803 * configure.in: Create "Checks for header files" section, and move
14804 appropriate tests there. Don't check for objlist.h, wchar.h,
14805 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14806 misdetection fix. Also add "Checks for types", "Checks for
14807 compiler characteristics" and "Checks for library functions"
14808 sections.
14809 * config.in, configure: Regenerated.
14810
8bb2c122
MK
14811 * configure.in: Create "Checks for programs" section, and move
14812 appropriate tests there.
14813
9a156167
MK
148142003-01-01 Mark Kettenis <kettenis@gnu.org>
14815
14816 * configure.in: Create "Checks for libraries" section, and move
14817 appropriate tests there. Cleanup check for wctype in libw. Use
14818 AC_SEARCH_LIBS to see whether we need libsocket.
14819 * configure: Regenerated.
14820
a80e2bcb 14821For older changes see ChangeLog-2002
c906108c
SS
14822\f
14823Local Variables:
14824mode: change-log
14825left-margin: 8
14826fill-column: 74
14827version-control: never
14828End:
This page took 1.126079 seconds and 4 git commands to generate.